import{z as setToString,A as overRest,B as identity$5,C as toString$1,D as baseEach,E as isArray$3,G as baseIteratee$3,H as root,I as isObject$6,J as isObjectLike$1,K as isArrayLike$1,L as baseAssignValue$1,M as hasPath,N as baseForOwn,O as baseProperty,Q as getTag,T as baseKeys,U as Set$1,V as setToArray,W as SetCache,X as cacheHas,Y as baseFlatten,r as react$1,j as jsx,d as jsxs,x as require$$0,$ as $2AODx$react,Z as reactDom,q as isEmpty,_ as removeQuery,m as useStoreData,i as get$1,y as ReactDOM,a0 as commonjsGlobal,b as useLocale,c as useStoreGeneralSettings,F as Fragment$1,l as useSelector,a1 as useCurrency,a2 as useKeyToPropsMap,h as useStoreContentSettings,a3 as map$1,a4 as entries,e as classNames,a5 as sanitizeUrl,a6 as INFINITE_PREFIX,a7 as serialize,a8 as withMiddleware,a as useSWR,a9 as SWRGlobalState,aa as cache,ab as createCacheHelper,ac as isUndefined$1,ad as shim,ae as useIsomorphicLayoutEffect$4,af as UNDEFINED,ag as isFunction$2,u as useStoreId,o as useStoreCheckoutSettings,ah as PhotoIcon$2,ai as twMerge,aj as keys,ak as twJoin,al as hasStockExceeded,v as useLocale$1,p as useStorePlan,am as uniques,an as flatten,ao as compact$1,ap as values,aq as getVariantKey,ar as placeholder,as as convert_1,at as curry_1,au as _falseOptions,av as identity_1,aw as isSymbol_1,ax as _baseIteratee,ay as _baseAssignValue,az as eq_1,aA as _copyObject,aB as keysIn_1,aC as _cloneBuffer,aD as _cloneTypedArray,aE as _copyArray,aF as _initCloneObject,aG as isArguments_1,aH as isArray_1,aI as isBuffer$1,aJ as isFunction_1,aK as isObject_1,aL as isPlainObject_1,aM as isTypedArray_1,aN as _Stack,aO as isArrayLike_1,aP as _isIndex,aQ as _baseRest,aR as _baseLt,aS as _baseGet,aT as _castPath,aU as _toKey,aV as _flatRest,aW as _arrayMap,aX as _getAllKeysIn,aY as _baseClone,aZ as _baseUnary,a_ as _baseGetTag,a$ as isObjectLike_1,b0 as _nodeUtil,b1 as _hasUnicode,b2 as _baseToString,b3 as toString_1,b4 as toNumber_1,b5 as flow,b6 as get$2,b7 as size$1,b8 as slugify,b9 as cond,ba as T$5,bb as useSpecsColumns,k as usePageContext,n as useStoreDesignSettings,bc as useVariantColumns,bd as useTagColors,be as generateProductId,bf as getProductStock}from"./chunk-06e5dacf.js";import{n as navigate}from"./chunk-06db561b.js";import"./chunk-5d6d9427.js";import"./chunk-8505b20b.js";import{j as baseIndexOf,k as createCompounder,t as toNumber$1,m as isString$2,n as createEntityAdapter,o as createSlice,d as selectCart,p as pickBy,q as useLivePreviewContext,u as useDispatch,r as revalidateCart,v as updateItemQty,w as removeItemFromCart,x as selectAllcartItems,s as selectTotalCartQty,y as selectIsbelowMinimumOrderQuantity,z as clearCart,A as setUnavailableProducts,B as setPriceChange,C as find$1,D as lowerCase,E as head$2,F as omitBy,G as isNil,H as isArrayLikeObject_1,_ as _baseFor,I as _baseMap,J as map$2,K as find$2,M as selectcartItemEntities,N as selectActiveVariant,O as addItemToCart}from"./chunk-ea82ba7b.js";import{b as baseSlice$3}from"./chunk-e4587ebd.js";function _extends(){return _extends=Object.assign?Object.assign.bind():function(L){for(var V=1;V<arguments.length;V++){var G=arguments[V];for(var K in G)Object.prototype.hasOwnProperty.call(G,K)&&(L[K]=G[K])}return L},_extends.apply(this,arguments)}function noop$1(){}function arrayIncludes(L,V){var G=L==null?0:L.length;return!!G&&baseIndexOf(L,V,0)>-1}function baseRest$1(L,V){return setToString(overRest(L,V,identity$5),L+"")}function castSlice$2(L,V,G){var K=L.length;return G=G===void 0?K:G,!V&&G>=K?L:baseSlice$3(L,V,G)}var rsAstralRange$3="\\ud800-\\udfff",rsComboMarksRange$3="\\u0300-\\u036f",reComboHalfMarksRange$3="\\ufe20-\\ufe2f",rsComboSymbolsRange$3="\\u20d0-\\u20ff",rsComboRange$3=rsComboMarksRange$3+reComboHalfMarksRange$3+rsComboSymbolsRange$3,rsVarRange$3="\\ufe0e\\ufe0f",rsZWJ$3="\\u200d",reHasUnicode=RegExp("["+rsZWJ$3+rsAstralRange$3+rsComboRange$3+rsVarRange$3+"]");function hasUnicode$2(L){return reHasUnicode.test(L)}function asciiToArray$2(L){return L.split("")}var rsAstralRange$2="\\ud800-\\udfff",rsComboMarksRange$2="\\u0300-\\u036f",reComboHalfMarksRange$2="\\ufe20-\\ufe2f",rsComboSymbolsRange$2="\\u20d0-\\u20ff",rsComboRange$2=rsComboMarksRange$2+reComboHalfMarksRange$2+rsComboSymbolsRange$2,rsVarRange$2="\\ufe0e\\ufe0f",rsAstral$2="["+rsAstralRange$2+"]",rsCombo$2="["+rsComboRange$2+"]",rsFitz$2="\\ud83c[\\udffb-\\udfff]",rsModifier$2="(?:"+rsCombo$2+"|"+rsFitz$2+")",rsNonAstral$2="[^"+rsAstralRange$2+"]",rsRegional$2="(?:\\ud83c[\\udde6-\\uddff]){2}",rsSurrPair$2="[\\ud800-\\udbff][\\udc00-\\udfff]",rsZWJ$2="\\u200d",reOptMod$2=rsModifier$2+"?",rsOptVar$2="["+rsVarRange$2+"]?",rsOptJoin$2="(?:"+rsZWJ$2+"(?:"+[rsNonAstral$2,rsRegional$2,rsSurrPair$2].join("|")+")"+rsOptVar$2+reOptMod$2+")*",rsSeq$2=rsOptVar$2+reOptMod$2+rsOptJoin$2,rsSymbol$2="(?:"+[rsNonAstral$2+rsCombo$2+"?",rsCombo$2,rsRegional$2,rsSurrPair$2,rsAstral$2].join("|")+")",reUnicode$2=RegExp(rsFitz$2+"(?="+rsFitz$2+")|"+rsSymbol$2+rsSeq$2,"g");function unicodeToArray$2(L){return L.match(reUnicode$2)||[]}function stringToArray$2(L){return hasUnicode$2(L)?unicodeToArray$2(L):asciiToArray$2(L)}function createCaseFirst(L){return function(V){V=toString$1(V);var G=hasUnicode$2(V)?stringToArray$2(V):void 0,K=G?G[0]:V.charAt(0),ee=G?castSlice$2(G,1).join(""):V.slice(1);return K[L]()+ee}}var upperFirst=createCaseFirst("toUpperCase"),upperFirst$1=upperFirst;function capitalize(L){return upperFirst$1(toString$1(L).toLowerCase())}var camelCase=createCompounder(function(L,V,G){return V=V.toLowerCase(),L+(G?capitalize(V):V)}),camelCase$1=camelCase;function arrayAggregator(L,V,G,K){for(var ee=-1,te=L==null?0:L.length;++ee<te;){var re=L[ee];V(K,re,G(re),L)}return K}function baseAggregator(L,V,G,K){return baseEach(L,function(ee,te,re){V(K,ee,G(ee),re)}),K}function createAggregator(L,V){return function(G,K){var ee=isArray$3(G)?arrayAggregator:baseAggregator,te=V?V():{};return ee(G,L,baseIteratee$3(K),te)}}var now=function(){return root.Date.now()},now$1=now,FUNC_ERROR_TEXT$1="Expected a function",nativeMax=Math.max,nativeMin=Math.min;function debounce(L,V,G){var K,ee,te,re,ce,ue,de=0,ve=!1,st=!1,Ae=!0;if(typeof L!="function")throw new TypeError(FUNC_ERROR_TEXT$1);V=toNumber$1(V)||0,isObject$6(G)&&(ve=!!G.leading,st="maxWait"in G,te=st?nativeMax(toNumber$1(G.maxWait)||0,V):te,Ae="trailing"in G?!!G.trailing:Ae);function at(ut){var bt=K,gt=ee;return K=ee=void 0,de=ut,re=L.apply(gt,bt),re}function ot(ut){return de=ut,ce=setTimeout(Oe,V),ve?at(ut):re}function rt(ut){var bt=ut-ue,gt=ut-de,Pt=V-bt;return st?nativeMin(Pt,te-gt):Pt}function ft(ut){var bt=ut-ue,gt=ut-de;return ue===void 0||bt>=V||bt<0||st&&gt>=te}function Oe(){var ut=now$1();if(ft(ut))return nt(ut);ce=setTimeout(Oe,rt(ut))}function nt(ut){return ce=void 0,Ae&&K?at(ut):(K=ee=void 0,re)}function it(){ce!==void 0&&clearTimeout(ce),de=0,K=ue=ee=ce=void 0}function lt(){return ce===void 0?re:nt(now$1())}function ct(){var ut=now$1(),bt=ft(ut);if(K=arguments,ee=this,ue=ut,bt){if(ce===void 0)return ot(ue);if(st)return clearTimeout(ce),ce=setTimeout(Oe,V),at(ue)}return ce===void 0&&(ce=setTimeout(Oe,V)),re}return ct.cancel=it,ct.flush=lt,ct}function isArrayLikeObject$1(L){return isObjectLike$1(L)&&isArrayLike$1(L)}function arrayIncludesWith(L,V,G){for(var K=-1,ee=L==null?0:L.length;++K<ee;)if(G(V,L[K]))return!0;return!1}var objectProto$1=Object.prototype,hasOwnProperty$2=objectProto$1.hasOwnProperty,groupBy=createAggregator(function(L,V,G){hasOwnProperty$2.call(L,G)?L[G].push(V):baseAssignValue$1(L,G,[V])}),groupBy$1=groupBy,objectProto=Object.prototype,hasOwnProperty$1=objectProto.hasOwnProperty;function baseHas(L,V){return L!=null&&hasOwnProperty$1.call(L,V)}function has(L,V){return L!=null&&hasPath(L,V,baseHas)}function mapValues(L,V){var G={};return V=baseIteratee$3(V),baseForOwn(L,function(K,ee,te){baseAssignValue$1(G,ee,V(K,ee,te))}),G}var asciiSize=baseProperty("length"),asciiSize$1=asciiSize,rsAstralRange$1="\\ud800-\\udfff",rsComboMarksRange$1="\\u0300-\\u036f",reComboHalfMarksRange$1="\\ufe20-\\ufe2f",rsComboSymbolsRange$1="\\u20d0-\\u20ff",rsComboRange$1=rsComboMarksRange$1+reComboHalfMarksRange$1+rsComboSymbolsRange$1,rsVarRange$1="\\ufe0e\\ufe0f",rsAstral$1="["+rsAstralRange$1+"]",rsCombo$1="["+rsComboRange$1+"]",rsFitz$1="\\ud83c[\\udffb-\\udfff]",rsModifier$1="(?:"+rsCombo$1+"|"+rsFitz$1+")",rsNonAstral$1="[^"+rsAstralRange$1+"]",rsRegional$1="(?:\\ud83c[\\udde6-\\uddff]){2}",rsSurrPair$1="[\\ud800-\\udbff][\\udc00-\\udfff]",rsZWJ$1="\\u200d",reOptMod$1=rsModifier$1+"?",rsOptVar$1="["+rsVarRange$1+"]?",rsOptJoin$1="(?:"+rsZWJ$1+"(?:"+[rsNonAstral$1,rsRegional$1,rsSurrPair$1].join("|")+")"+rsOptVar$1+reOptMod$1+")*",rsSeq$1=rsOptVar$1+reOptMod$1+rsOptJoin$1,rsSymbol$1="(?:"+[rsNonAstral$1+rsCombo$1+"?",rsCombo$1,rsRegional$1,rsSurrPair$1,rsAstral$1].join("|")+")",reUnicode$1=RegExp(rsFitz$1+"(?="+rsFitz$1+")|"+rsSymbol$1+rsSeq$1,"g");function unicodeSize(L){for(var V=reUnicode$1.lastIndex=0;reUnicode$1.test(L);)++V;return V}function stringSize(L){return hasUnicode$2(L)?unicodeSize(L):asciiSize$1(L)}var mapTag="[object Map]",setTag="[object Set]";function size(L){if(L==null)return 0;if(isArrayLike$1(L))return isString$2(L)?stringSize(L):L.length;var V=getTag(L);return V==mapTag||V==setTag?L.size:baseKeys(L).length}var FUNC_ERROR_TEXT="Expected a function";function throttle(L,V,G){var K=!0,ee=!0;if(typeof L!="function")throw new TypeError(FUNC_ERROR_TEXT);return isObject$6(G)&&(K="leading"in G?!!G.leading:K,ee="trailing"in G?!!G.trailing:ee),debounce(L,V,{leading:K,maxWait:V,trailing:ee})}var INFINITY=1/0,createSet=Set$1&&1/setToArray(new Set$1([,-0]))[1]==INFINITY?function(L){return new Set$1(L)}:noop$1,createSet$1=createSet,LARGE_ARRAY_SIZE=200;function baseUniq(L,V,G){var K=-1,ee=arrayIncludes,te=L.length,re=!0,ce=[],ue=ce;if(G)re=!1,ee=arrayIncludesWith;else if(te>=LARGE_ARRAY_SIZE){var de=V?null:createSet$1(L);if(de)return setToArray(de);re=!1,ee=cacheHas,ue=new SetCache}else ue=V?[]:ce;e:for(;++K<te;){var ve=L[K],st=V?V(ve):ve;if(ve=G||ve!==0?ve:0,re&&st===st){for(var Ae=ue.length;Ae--;)if(ue[Ae]===st)continue e;V&&ue.push(st),ce.push(ve)}else ee(ue,st,G)||(ue!==ce&&ue.push(st),ce.push(ve))}return ce}var union=baseRest$1(function(L){return baseUniq(baseFlatten(L,1,isArrayLikeObject$1,!0))}),union$1=union;function uniq(L){return L&&L.length?baseUniq(L):[]}createEntityAdapter();const initialState={activeCategory:null},productsSlice=createSlice({name:"products",initialState,reducers:{setCategory(L,V){L.activeCategory=V.payload}}}),{setCategory}=productsSlice.actions,selectActiveCategory=L=>L.products.activeCategory;var productsReducer=productsSlice.reducer;class StorelinkEvents{constructor(){typeof window!="undefined"&&typeof window.storelink!="undefined"&&(this.storelink=window.storelink),this.currentPath=""}emit(V,G){typeof window!="undefined"&&typeof window.storelink!="undefined"&&typeof window.storelink.emit=="function"&&this.storelink.emit(V,G)}emitPageChange(V){var G;this.currentPath!==(V==null?void 0:V.urlPathname)&&(this.currentPath=V==null?void 0:V.urlPathname,this.emit("pagechange",{pathname:this.currentPath,search:(G=V==null?void 0:V.urlParsed)==null?void 0:G.search}))}emitAddToCart(V){this.emit("addtocart",V)}emitRemoveFromCart(V){this.emit("removefromcart",V)}emitOrderPlaced(V){this.emit("orderplaced",V)}}const slEvents=new StorelinkEvents;function CheckCircleIcon({title:L,titleId:V,...G},K){return react$1.exports.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true",ref:K,"aria-labelledby":V},G),L?react$1.exports.createElement("title",{id:V},L):null,react$1.exports.createElement("path",{fillRule:"evenodd",d:"M2.25 12c0-5.385 4.365-9.75 9.75-9.75s9.75 4.365 9.75 9.75-4.365 9.75-9.75 9.75S2.25 17.385 2.25 12zm13.36-1.814a.75.75 0 10-1.22-.872l-3.236 4.53L9.53 12.22a.75.75 0 00-1.06 1.06l2.25 2.25a.75.75 0 001.14-.094l3.75-5.25z",clipRule:"evenodd"}))}const ForwardRef$d=react$1.exports.forwardRef(CheckCircleIcon);var CheckCircleIcon$1=ForwardRef$d;function ChevronLeftIcon({title:L,titleId:V,...G},K){return react$1.exports.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true",ref:K,"aria-labelledby":V},G),L?react$1.exports.createElement("title",{id:V},L):null,react$1.exports.createElement("path",{fillRule:"evenodd",d:"M7.72 12.53a.75.75 0 010-1.06l7.5-7.5a.75.75 0 111.06 1.06L9.31 12l6.97 6.97a.75.75 0 11-1.06 1.06l-7.5-7.5z",clipRule:"evenodd"}))}const ForwardRef$c=react$1.exports.forwardRef(ChevronLeftIcon);var ChevronLeftIcon$1=ForwardRef$c;function ChevronRightIcon({title:L,titleId:V,...G},K){return react$1.exports.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true",ref:K,"aria-labelledby":V},G),L?react$1.exports.createElement("title",{id:V},L):null,react$1.exports.createElement("path",{fillRule:"evenodd",d:"M16.28 11.47a.75.75 0 010 1.06l-7.5 7.5a.75.75 0 01-1.06-1.06L14.69 12 7.72 5.03a.75.75 0 011.06-1.06l7.5 7.5z",clipRule:"evenodd"}))}const ForwardRef$b=react$1.exports.forwardRef(ChevronRightIcon);var ChevronRightIcon$1=ForwardRef$b;function ExclamationTriangleIcon({title:L,titleId:V,...G},K){return react$1.exports.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true",ref:K,"aria-labelledby":V},G),L?react$1.exports.createElement("title",{id:V},L):null,react$1.exports.createElement("path",{fillRule:"evenodd",d:"M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z",clipRule:"evenodd"}))}const ForwardRef$a=react$1.exports.forwardRef(ExclamationTriangleIcon);var ExclamationTriangleIcon$1=ForwardRef$a;function MinusIcon({title:L,titleId:V,...G},K){return react$1.exports.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true",ref:K,"aria-labelledby":V},G),L?react$1.exports.createElement("title",{id:V},L):null,react$1.exports.createElement("path",{fillRule:"evenodd",d:"M3.75 12a.75.75 0 01.75-.75h15a.75.75 0 010 1.5h-15a.75.75 0 01-.75-.75z",clipRule:"evenodd"}))}const ForwardRef$9=react$1.exports.forwardRef(MinusIcon);var MinusIcon$1=ForwardRef$9;function PhotoIcon({title:L,titleId:V,...G},K){return react$1.exports.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true",ref:K,"aria-labelledby":V},G),L?react$1.exports.createElement("title",{id:V},L):null,react$1.exports.createElement("path",{fillRule:"evenodd",d:"M1.5 6a2.25 2.25 0 012.25-2.25h16.5A2.25 2.25 0 0122.5 6v12a2.25 2.25 0 01-2.25 2.25H3.75A2.25 2.25 0 011.5 18V6zM3 16.06V18c0 .414.336.75.75.75h16.5A.75.75 0 0021 18v-1.94l-2.69-2.689a1.5 1.5 0 00-2.12 0l-.88.879.97.97a.75.75 0 11-1.06 1.06l-5.16-5.159a1.5 1.5 0 00-2.12 0L3 16.061zm10.125-7.81a1.125 1.125 0 112.25 0 1.125 1.125 0 01-2.25 0z",clipRule:"evenodd"}))}const ForwardRef$8=react$1.exports.forwardRef(PhotoIcon);var PhotoIcon$1=ForwardRef$8;function PlusIcon({title:L,titleId:V,...G},K){return react$1.exports.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true",ref:K,"aria-labelledby":V},G),L?react$1.exports.createElement("title",{id:V},L):null,react$1.exports.createElement("path",{fillRule:"evenodd",d:"M12 3.75a.75.75 0 01.75.75v6.75h6.75a.75.75 0 010 1.5h-6.75v6.75a.75.75 0 01-1.5 0v-6.75H4.5a.75.75 0 010-1.5h6.75V4.5a.75.75 0 01.75-.75z",clipRule:"evenodd"}))}const ForwardRef$7=react$1.exports.forwardRef(PlusIcon);var PlusIcon$1=ForwardRef$7;function ShoppingBagIcon({title:L,titleId:V,...G},K){return react$1.exports.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true",ref:K,"aria-labelledby":V},G),L?react$1.exports.createElement("title",{id:V},L):null,react$1.exports.createElement("path",{fillRule:"evenodd",d:"M7.5 6v.75H5.513c-.96 0-1.764.724-1.865 1.679l-1.263 12A1.875 1.875 0 004.25 22.5h15.5a1.875 1.875 0 001.865-2.071l-1.263-12a1.875 1.875 0 00-1.865-1.679H16.5V6a4.5 4.5 0 10-9 0zM12 3a3 3 0 00-3 3v.75h6V6a3 3 0 00-3-3zm-3 8.25a3 3 0 106 0v-.75a.75.75 0 011.5 0v.75a4.5 4.5 0 11-9 0v-.75a.75.75 0 011.5 0v.75z",clipRule:"evenodd"}))}const ForwardRef$6=react$1.exports.forwardRef(ShoppingBagIcon);var ShoppingBagIcon$1=ForwardRef$6;function XCircleIcon({title:L,titleId:V,...G},K){return react$1.exports.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true",ref:K,"aria-labelledby":V},G),L?react$1.exports.createElement("title",{id:V},L):null,react$1.exports.createElement("path",{fillRule:"evenodd",d:"M12 2.25c-5.385 0-9.75 4.365-9.75 9.75s4.365 9.75 9.75 9.75 9.75-4.365 9.75-9.75S17.385 2.25 12 2.25zm-1.72 6.97a.75.75 0 10-1.06 1.06L10.94 12l-1.72 1.72a.75.75 0 101.06 1.06L12 13.06l1.72 1.72a.75.75 0 101.06-1.06L13.06 12l1.72-1.72a.75.75 0 10-1.06-1.06L12 10.94l-1.72-1.72z",clipRule:"evenodd"}))}const ForwardRef$5=react$1.exports.forwardRef(XCircleIcon);var XCircleIcon$1=ForwardRef$5;function XMarkIcon({title:L,titleId:V,...G},K){return react$1.exports.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true",ref:K,"aria-labelledby":V},G),L?react$1.exports.createElement("title",{id:V},L):null,react$1.exports.createElement("path",{fillRule:"evenodd",d:"M5.47 5.47a.75.75 0 011.06 0L12 10.94l5.47-5.47a.75.75 0 111.06 1.06L13.06 12l5.47 5.47a.75.75 0 11-1.06 1.06L12 13.06l-5.47 5.47a.75.75 0 01-1.06-1.06L10.94 12 5.47 6.53a.75.75 0 010-1.06z",clipRule:"evenodd"}))}const ForwardRef$4=react$1.exports.forwardRef(XMarkIcon);var XMarkIcon$1=ForwardRef$4;const ErrorAlert=({title:L,close:V,children:G})=>jsx("div",{className:"error-alert error-alert-container rounded-lg bg-red-50 p-4",children:jsxs("div",{className:"error-alert-content flex",children:[jsx("div",{className:"error-alert-icon flex-shrink-0",children:jsx(XCircleIcon$1,{className:"h-5 w-5 text-red-400","aria-hidden":"true"})}),jsxs("div",{className:"error-alert-message ml-3 space-y-2",children:[L&&jsx("h3",{className:"error-alert-title text-sm font-medium text-red-800",children:L}),G&&jsx("div",{className:"error-alert-description text-sm text-red-700",children:jsx("p",{children:G})})]}),V&&jsx("div",{className:"error-alert-close-button-wrapper ml-auto pl-3",children:jsx("div",{className:"-mx-1.5 -my-1.5",children:jsxs("button",{type:"button",className:"error-alert-close-button inline-flex rounded-lg bg-red-50 p-1.5 text-red-800 hover:bg-red-100 focus:outline-none focus:ring-2 focus:ring-red-600 focus:ring-offset-2 focus:ring-offset-red-50",onClick:V,children:[jsx("span",{className:"sr-only",children:"Dismiss"}),jsx(XMarkIcon$1,{className:"h-5 w-5","aria-hidden":"true"})]})})})]})}),WarningAlert=({title:L,close:V,children:G})=>jsx("div",{className:"warning-alert warning-alert-container mt-8 rounded-lg bg-yellow-50 p-4",children:jsxs("div",{className:"warning-alert-content flex",children:[jsx("div",{className:"warning-alert-icon flex-shrink-0",children:jsx(ExclamationTriangleIcon$1,{className:"h-5 w-5 text-yellow-400","aria-hidden":"true"})}),jsxs("div",{className:"warning-alert-message ml-3 space-y-2",children:[L&&jsx("h3",{className:"warning-alert-title text-sm font-medium text-yellow-800",children:L}),jsx("div",{className:"warning-alert-description text-sm text-yellow-700",children:jsx("p",{children:G})})]}),V&&jsx("div",{className:"warning-alert-close-button-wrapper ml-auto pl-3",children:jsx("div",{className:"-mx-1.5 -my-1.5",children:jsxs("button",{type:"button",className:"warning-alert-close-button inline-flex rounded-lg bg-yellow-50 p-1.5 text-yellow-800 hover:bg-yellow-100 focus:outline-none focus:ring-2 focus:ring-yellow-600 focus:ring-offset-2 focus:ring-offset-yellow-50",onClick:V,children:[jsx("span",{className:"sr-only",children:"Dismiss"}),jsx(XMarkIcon$1,{className:"h-5 w-5","aria-hidden":"true"})]})})})]})});var i$4=Object.defineProperty,d$6=(L,V,G)=>V in L?i$4(L,V,{enumerable:!0,configurable:!0,writable:!0,value:G}):L[V]=G,r$5=(L,V,G)=>(d$6(L,typeof V!="symbol"?V+"":V,G),G);class o$6{constructor(){r$5(this,"current",this.detect()),r$5(this,"handoffState","pending"),r$5(this,"currentId",0)}set(V){this.current!==V&&(this.handoffState="pending",this.currentId=0,this.current=V)}reset(){this.set(this.detect())}nextId(){return++this.currentId}get isServer(){return this.current==="server"}get isClient(){return this.current==="client"}detect(){return typeof window=="undefined"||typeof document=="undefined"?"server":"client"}handoff(){this.handoffState==="pending"&&(this.handoffState="complete")}get isHandoffComplete(){return this.handoffState==="complete"}}let s$8=new o$6,l$6=(L,V)=>{s$8.isServer?react$1.exports.useEffect(L,V):react$1.exports.useLayoutEffect(L,V)};function s$7(L){let V=react$1.exports.useRef(L);return l$6(()=>{V.current=L},[L]),V}function t$6(L){typeof queueMicrotask=="function"?queueMicrotask(L):Promise.resolve().then(L).catch(V=>setTimeout(()=>{throw V}))}function o$5(){let L=[],V={addEventListener(G,K,ee,te){return G.addEventListener(K,ee,te),V.add(()=>G.removeEventListener(K,ee,te))},requestAnimationFrame(...G){let K=requestAnimationFrame(...G);return V.add(()=>cancelAnimationFrame(K))},nextFrame(...G){return V.requestAnimationFrame(()=>V.requestAnimationFrame(...G))},setTimeout(...G){let K=setTimeout(...G);return V.add(()=>clearTimeout(K))},microTask(...G){let K={current:!0};return t$6(()=>{K.current&&G[0]()}),V.add(()=>{K.current=!1})},style(G,K,ee){let te=G.style.getPropertyValue(K);return Object.assign(G.style,{[K]:ee}),this.add(()=>{Object.assign(G.style,{[K]:te})})},group(G){let K=o$5();return G(K),this.add(()=>K.dispose())},add(G){return L.push(G),()=>{let K=L.indexOf(G);if(K>=0)for(let ee of L.splice(K,1))ee()}},dispose(){for(let G of L.splice(0))G()}};return V}function p$6(){let[L]=react$1.exports.useState(o$5);return react$1.exports.useEffect(()=>()=>L.dispose(),[L]),L}let o$4=function(L){let V=s$7(L);return require$$0.useCallback((...G)=>V.current(...G),[V])};function s$6(){let L=typeof document=="undefined";return"useSyncExternalStore"in $2AODx$react?(V=>V.useSyncExternalStore)($2AODx$react)(()=>()=>{},()=>!1,()=>!L):!1}function l$5(){let L=s$6(),[V,G]=react$1.exports.useState(s$8.isHandoffComplete);return V&&s$8.isHandoffComplete===!1&&G(!1),react$1.exports.useEffect(()=>{V!==!0&&G(!0)},[V]),react$1.exports.useEffect(()=>s$8.handoff(),[]),L?!1:V}var o$3;let I$3=(o$3=require$$0.useId)!=null?o$3:function(){let L=l$5(),[V,G]=require$$0.useState(L?()=>s$8.nextId():null);return l$6(()=>{V===null&&G(s$8.nextId())},[V]),V!=null?""+V:void 0};function u$4(L,V,...G){if(L in V){let ee=V[L];return typeof ee=="function"?ee(...G):ee}let K=new Error(`Tried to handle "${L}" but there is no handler defined. Only defined handlers are: ${Object.keys(V).map(ee=>`"${ee}"`).join(", ")}.`);throw Error.captureStackTrace&&Error.captureStackTrace(K,u$4),K}function e$3(L){return s$8.isServer?null:L instanceof Node?L.ownerDocument:L!=null&&L.hasOwnProperty("current")&&L.current instanceof Node?L.current.ownerDocument:document}let c$9=["[contentEditable=true]","[tabindex]","a[href]","area[href]","button:not([disabled])","iframe","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].map(L=>`${L}:not([tabindex='-1'])`).join(",");var M$5=(L=>(L[L.First=1]="First",L[L.Previous=2]="Previous",L[L.Next=4]="Next",L[L.Last=8]="Last",L[L.WrapAround=16]="WrapAround",L[L.NoScroll=32]="NoScroll",L))(M$5||{}),N$2=(L=>(L[L.Error=0]="Error",L[L.Overflow=1]="Overflow",L[L.Success=2]="Success",L[L.Underflow=3]="Underflow",L))(N$2||{}),F$3=(L=>(L[L.Previous=-1]="Previous",L[L.Next=1]="Next",L))(F$3||{});function f$6(L=document.body){return L==null?[]:Array.from(L.querySelectorAll(c$9)).sort((V,G)=>Math.sign((V.tabIndex||Number.MAX_SAFE_INTEGER)-(G.tabIndex||Number.MAX_SAFE_INTEGER)))}var T$4=(L=>(L[L.Strict=0]="Strict",L[L.Loose=1]="Loose",L))(T$4||{});function h$8(L,V=0){var G;return L===((G=e$3(L))==null?void 0:G.body)?!1:u$4(V,{[0](){return L.matches(c$9)},[1](){let K=L;for(;K!==null;){if(K.matches(c$9))return!0;K=K.parentElement}return!1}})}function D$2(L){let V=e$3(L);o$5().nextFrame(()=>{V&&!h$8(V.activeElement,0)&&y$5(L)})}var w$3=(L=>(L[L.Keyboard=0]="Keyboard",L[L.Mouse=1]="Mouse",L))(w$3||{});typeof window!="undefined"&&typeof document!="undefined"&&(document.addEventListener("keydown",L=>{L.metaKey||L.altKey||L.ctrlKey||(document.documentElement.dataset.headlessuiFocusVisible="")},!0),document.addEventListener("click",L=>{L.detail===1?delete document.documentElement.dataset.headlessuiFocusVisible:L.detail===0&&(document.documentElement.dataset.headlessuiFocusVisible="")},!0));function y$5(L){L==null||L.focus({preventScroll:!0})}let S$6=["textarea","input"].join(",");function H$1(L){var V,G;return(G=(V=L==null?void 0:L.matches)==null?void 0:V.call(L,S$6))!=null?G:!1}function I$2(L,V=G=>G){return L.slice().sort((G,K)=>{let ee=V(G),te=V(K);if(ee===null||te===null)return 0;let re=ee.compareDocumentPosition(te);return re&Node.DOCUMENT_POSITION_FOLLOWING?-1:re&Node.DOCUMENT_POSITION_PRECEDING?1:0})}function _$1(L,V){return O(f$6(),V,{relativeTo:L})}function O(L,V,{sorted:G=!0,relativeTo:K=null,skipElements:ee=[]}={}){let te=Array.isArray(L)?L.length>0?L[0].ownerDocument:document:L.ownerDocument,re=Array.isArray(L)?G?I$2(L):L:f$6(L);ee.length>0&&re.length>1&&(re=re.filter(at=>!ee.includes(at))),K=K!=null?K:te.activeElement;let ce=(()=>{if(V&5)return 1;if(V&10)return-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),ue=(()=>{if(V&1)return 0;if(V&2)return Math.max(0,re.indexOf(K))-1;if(V&4)return Math.max(0,re.indexOf(K))+1;if(V&8)return re.length-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),de=V&32?{preventScroll:!0}:{},ve=0,st=re.length,Ae;do{if(ve>=st||ve+st<=0)return 0;let at=ue+ve;if(V&16)at=(at+st)%st;else{if(at<0)return 3;if(at>=st)return 1}Ae=re[at],Ae==null||Ae.focus(de),ve+=ce}while(Ae!==te.activeElement);return V&6&&H$1(Ae)&&Ae.select(),2}function d$5(L,V,G){let K=s$7(V);react$1.exports.useEffect(()=>{function ee(te){K.current(te)}return document.addEventListener(L,ee,G),()=>document.removeEventListener(L,ee,G)},[L,G])}function s$5(L,V,G){let K=s$7(V);react$1.exports.useEffect(()=>{function ee(te){K.current(te)}return window.addEventListener(L,ee,G),()=>window.removeEventListener(L,ee,G)},[L,G])}function h$7(L,V,G=!0){let K=react$1.exports.useRef(!1);react$1.exports.useEffect(()=>{requestAnimationFrame(()=>{K.current=G})},[G]);function ee(re,ce){if(!K.current||re.defaultPrevented)return;let ue=ce(re);if(ue===null||!ue.getRootNode().contains(ue)||!ue.isConnected)return;let de=function ve(st){return typeof st=="function"?ve(st()):Array.isArray(st)||st instanceof Set?st:[st]}(L);for(let ve of de){if(ve===null)continue;let st=ve instanceof HTMLElement?ve:ve.current;if(st!=null&&st.contains(ue)||re.composed&&re.composedPath().includes(st))return}return!h$8(ue,T$4.Loose)&&ue.tabIndex!==-1&&re.preventDefault(),V(re,ue)}let te=react$1.exports.useRef(null);d$5("pointerdown",re=>{var ce,ue;K.current&&(te.current=((ue=(ce=re.composedPath)==null?void 0:ce.call(re))==null?void 0:ue[0])||re.target)},!0),d$5("mousedown",re=>{var ce,ue;K.current&&(te.current=((ue=(ce=re.composedPath)==null?void 0:ce.call(re))==null?void 0:ue[0])||re.target)},!0),d$5("click",re=>{te.current&&(ee(re,()=>te.current),te.current=null)},!0),d$5("touchend",re=>ee(re,()=>re.target instanceof HTMLElement?re.target:null),!0),s$5("blur",re=>ee(re,()=>window.document.activeElement instanceof HTMLIFrameElement?window.document.activeElement:null),!0)}let u$3=Symbol();function T$3(L,V=!0){return Object.assign(L,{[u$3]:V})}function y$4(...L){let V=react$1.exports.useRef(L);react$1.exports.useEffect(()=>{V.current=L},[L]);let G=o$4(K=>{for(let ee of V.current)ee!=null&&(typeof ee=="function"?ee(K):ee.current=K)});return L.every(K=>K==null||(K==null?void 0:K[u$3]))?void 0:G}function F$2({container:L,accept:V,walk:G,enabled:K=!0}){let ee=react$1.exports.useRef(V),te=react$1.exports.useRef(G);react$1.exports.useEffect(()=>{ee.current=V,te.current=G},[V,G]),l$6(()=>{if(!L||!K)return;let re=e$3(L);if(!re)return;let ce=ee.current,ue=te.current,de=Object.assign(st=>ce(st),{acceptNode:ce}),ve=re.createTreeWalker(L,NodeFilter.SHOW_ELEMENT,de,!1);for(;ve.nextNode();)ue(ve.currentNode)},[L,K,ee,te])}function t$5(...L){return Array.from(new Set(L.flatMap(V=>typeof V=="string"?V.split(" "):[]))).filter(Boolean).join(" ")}var S$5=(L=>(L[L.None=0]="None",L[L.RenderStrategy=1]="RenderStrategy",L[L.Static=2]="Static",L))(S$5||{}),j$2=(L=>(L[L.Unmount=0]="Unmount",L[L.Hidden=1]="Hidden",L))(j$2||{});function X$1({ourProps:L,theirProps:V,slot:G,defaultTag:K,features:ee,visible:te=!0,name:re}){let ce=N$1(V,L);if(te)return c$8(ce,G,K,re);let ue=ee!=null?ee:0;if(ue&2){let{static:de=!1,...ve}=ce;if(de)return c$8(ve,G,K,re)}if(ue&1){let{unmount:de=!0,...ve}=ce;return u$4(de?0:1,{[0](){return null},[1](){return c$8({...ve,hidden:!0,style:{display:"none"}},G,K,re)}})}return c$8(ce,G,K,re)}function c$8(L,V={},G,K){let{as:ee=G,children:te,refName:re="ref",...ce}=g$2(L,["unmount","static"]),ue=L.ref!==void 0?{[re]:L.ref}:{},de=typeof te=="function"?te(V):te;"className"in ce&&ce.className&&typeof ce.className=="function"&&(ce.className=ce.className(V));let ve={};if(V){let st=!1,Ae=[];for(let[at,ot]of Object.entries(V))typeof ot=="boolean"&&(st=!0),ot===!0&&Ae.push(at);st&&(ve["data-headlessui-state"]=Ae.join(" "))}if(ee===react$1.exports.Fragment&&Object.keys(R$1(ce)).length>0){if(!react$1.exports.isValidElement(de)||Array.isArray(de)&&de.length>1)throw new Error(['Passing props on "Fragment"!',"",`The current component <${K} /> is rendering a "Fragment".`,"However we need to passthrough the following props:",Object.keys(ce).map(ot=>`  - ${ot}`).join(`
`),"","You can apply a few solutions:",['Add an `as="..."` prop, to ensure that we render an actual element instead of a "Fragment".',"Render a single element as the child so that we can forward the props onto that element."].map(ot=>`  - ${ot}`).join(`
`)].join(`
`));let st=de.props,Ae=typeof(st==null?void 0:st.className)=="function"?(...ot)=>t$5(st==null?void 0:st.className(...ot),ce.className):t$5(st==null?void 0:st.className,ce.className),at=Ae?{className:Ae}:{};return react$1.exports.cloneElement(de,Object.assign({},N$1(de.props,R$1(g$2(ce,["ref"]))),ve,ue,w$2(de.ref,ue.ref),at))}return react$1.exports.createElement(ee,Object.assign({},g$2(ce,["ref"]),ee!==react$1.exports.Fragment&&ue,ee!==react$1.exports.Fragment&&ve),de)}function w$2(...L){return{ref:L.every(V=>V==null)?void 0:V=>{for(let G of L)G!=null&&(typeof G=="function"?G(V):G.current=V)}}}function N$1(...L){if(L.length===0)return{};if(L.length===1)return L[0];let V={},G={};for(let K of L)for(let ee in K)ee.startsWith("on")&&typeof K[ee]=="function"?(G[ee]!=null||(G[ee]=[]),G[ee].push(K[ee])):V[ee]=K[ee];if(V.disabled||V["aria-disabled"])return Object.assign(V,Object.fromEntries(Object.keys(G).map(K=>[K,void 0])));for(let K in G)Object.assign(V,{[K](ee,...te){let re=G[K];for(let ce of re){if((ee instanceof Event||(ee==null?void 0:ee.nativeEvent)instanceof Event)&&ee.defaultPrevented)return;ce(ee,...te)}}});return V}function D$1(L){var V;return Object.assign(react$1.exports.forwardRef(L),{displayName:(V=L.displayName)!=null?V:L.name})}function R$1(L){let V=Object.assign({},L);for(let G in V)V[G]===void 0&&delete V[G];return V}function g$2(L,V=[]){let G=Object.assign({},L);for(let K of V)K in G&&delete G[K];return G}function r$4(L){let V=L.parentElement,G=null;for(;V&&!(V instanceof HTMLFieldSetElement);)V instanceof HTMLLegendElement&&(G=V),V=V.parentElement;let K=(V==null?void 0:V.getAttribute("disabled"))==="";return K&&i$3(G)?!1:K}function i$3(L){if(!L)return!1;let V=L.previousElementSibling;for(;V!==null;){if(V instanceof HTMLLegendElement)return!1;V=V.previousElementSibling}return!0}function e$2(L={},V=null,G=[]){for(let[K,ee]of Object.entries(L))o$2(G,f$5(V,K),ee);return G}function f$5(L,V){return L?L+"["+V+"]":V}function o$2(L,V,G){if(Array.isArray(G))for(let[K,ee]of G.entries())o$2(L,f$5(V,K.toString()),ee);else G instanceof Date?L.push([V,G.toISOString()]):typeof G=="boolean"?L.push([V,G?"1":"0"]):typeof G=="string"?L.push([V,G]):typeof G=="number"?L.push([V,`${G}`]):G==null?L.push([V,""]):e$2(G,V,L)}function p$5(L){var V,G;let K=(V=L==null?void 0:L.form)!=null?V:L.closest("form");if(K){for(let ee of K.elements)if(ee!==L&&(ee.tagName==="INPUT"&&ee.type==="submit"||ee.tagName==="BUTTON"&&ee.type==="submit"||ee.nodeName==="INPUT"&&ee.type==="image")){ee.click();return}(G=K.requestSubmit)==null||G.call(K)}}let a$6="div";var p$4=(L=>(L[L.None=1]="None",L[L.Focusable=2]="Focusable",L[L.Hidden=4]="Hidden",L))(p$4||{});function s$4(L,V){let{features:G=1,...K}=L,ee={ref:V,"aria-hidden":(G&2)===2?!0:void 0,style:{position:"fixed",top:1,left:1,width:1,height:0,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0",...(G&4)===4&&(G&2)!==2&&{display:"none"}}};return X$1({ourProps:ee,theirProps:K,slot:{},defaultTag:a$6,name:"Hidden"})}let c$7=D$1(s$4),n$5=react$1.exports.createContext(null);n$5.displayName="OpenClosedContext";var d$4=(L=>(L[L.Open=1]="Open",L[L.Closed=2]="Closed",L[L.Closing=4]="Closing",L[L.Opening=8]="Opening",L))(d$4||{});function C(){return react$1.exports.useContext(n$5)}function c$6({value:L,children:V}){return require$$0.createElement(n$5.Provider,{value:L},V)}var o$1=(L=>(L.Space=" ",L.Enter="Enter",L.Escape="Escape",L.Backspace="Backspace",L.Delete="Delete",L.ArrowLeft="ArrowLeft",L.ArrowUp="ArrowUp",L.ArrowRight="ArrowRight",L.ArrowDown="ArrowDown",L.Home="Home",L.End="End",L.PageUp="PageUp",L.PageDown="PageDown",L.Tab="Tab",L))(o$1||{});function T$2(L,V,G){let[K,ee]=react$1.exports.useState(G),te=L!==void 0,re=react$1.exports.useRef(te),ce=react$1.exports.useRef(!1),ue=react$1.exports.useRef(!1);return te&&!re.current&&!ce.current?(ce.current=!0,re.current=te,console.error("A component is changing from uncontrolled to controlled. This may be caused by the value changing from undefined to a defined value, which should not happen.")):!te&&re.current&&!ue.current&&(ue.current=!0,re.current=te,console.error("A component is changing from controlled to uncontrolled. This may be caused by the value changing from a defined value to undefined, which should not happen.")),[te?L:K,o$4(de=>(te||ee(de),V==null?void 0:V(de)))]}function m$2(L,V){let G=react$1.exports.useRef([]),K=o$4(L);react$1.exports.useEffect(()=>{let ee=[...G.current];for(let[te,re]of V.entries())if(G.current[te]!==re){let ce=K(V,ee);return G.current=V,ce}},[K,...V])}function t$4(){return/iPhone/gi.test(window.navigator.platform)||/Mac/gi.test(window.navigator.platform)&&window.navigator.maxTouchPoints>0}function i$2(){return/Android/gi.test(window.navigator.userAgent)}function n$4(){return t$4()||i$2()}function n$3(...L){return react$1.exports.useMemo(()=>e$3(...L),[...L])}var s$3=(L=>(L[L.Forwards=0]="Forwards",L[L.Backwards=1]="Backwards",L))(s$3||{});function n$2(){let L=react$1.exports.useRef(0);return s$5("keydown",V=>{V.key==="Tab"&&(L.current=V.shiftKey?1:0)},!0),L}function f$4(){let L=react$1.exports.useRef(!1);return l$6(()=>(L.current=!0,()=>{L.current=!1}),[]),L}function E$1(L,V,G,K){let ee=s$7(G);react$1.exports.useEffect(()=>{L=L!=null?L:window;function te(re){ee.current(re)}return L.addEventListener(V,te,K),()=>L.removeEventListener(V,te,K)},[L,V,K])}function t$3(L){function V(){document.readyState!=="loading"&&(L(),document.removeEventListener("DOMContentLoaded",V))}typeof window!="undefined"&&typeof document!="undefined"&&(document.addEventListener("DOMContentLoaded",V),V())}function c$5(L){let V=o$4(L),G=react$1.exports.useRef(!1);react$1.exports.useEffect(()=>(G.current=!1,()=>{G.current=!0,t$6(()=>{G.current&&V()})}),[V])}function P$1(L){if(!L)return new Set;if(typeof L=="function")return new Set(L());let V=new Set;for(let G of L.current)G.current instanceof HTMLElement&&V.add(G.current);return V}let J="div";var h$6=(L=>(L[L.None=1]="None",L[L.InitialFocus=2]="InitialFocus",L[L.TabLock=4]="TabLock",L[L.FocusLock=8]="FocusLock",L[L.RestoreFocus=16]="RestoreFocus",L[L.All=30]="All",L))(h$6||{});function X(L,V){let G=react$1.exports.useRef(null),K=y$4(G,V),{initialFocus:ee,containers:te,features:re=30,...ce}=L;l$5()||(re=1);let ue=n$3(G);Y({ownerDocument:ue},Boolean(re&16));let de=Z({ownerDocument:ue,container:G,initialFocus:ee},Boolean(re&2));$$1({ownerDocument:ue,container:G,containers:te,previousActiveElement:de},Boolean(re&8));let ve=n$2(),st=o$4(rt=>{let ft=G.current;!ft||(Oe=>Oe())(()=>{u$4(ve.current,{[s$3.Forwards]:()=>{O(ft,M$5.First,{skipElements:[rt.relatedTarget]})},[s$3.Backwards]:()=>{O(ft,M$5.Last,{skipElements:[rt.relatedTarget]})}})})}),Ae=p$6(),at=react$1.exports.useRef(!1),ot={ref:K,onKeyDown(rt){rt.key=="Tab"&&(at.current=!0,Ae.requestAnimationFrame(()=>{at.current=!1}))},onBlur(rt){let ft=P$1(te);G.current instanceof HTMLElement&&ft.add(G.current);let Oe=rt.relatedTarget;Oe instanceof HTMLElement&&Oe.dataset.headlessuiFocusGuard!=="true"&&(S$4(ft,Oe)||(at.current?O(G.current,u$4(ve.current,{[s$3.Forwards]:()=>M$5.Next,[s$3.Backwards]:()=>M$5.Previous})|M$5.WrapAround,{relativeTo:rt.target}):rt.target instanceof HTMLElement&&y$5(rt.target)))}};return require$$0.createElement(require$$0.Fragment,null,Boolean(re&4)&&require$$0.createElement(c$7,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:st,features:p$4.Focusable}),X$1({ourProps:ot,theirProps:ce,defaultTag:J,name:"FocusTrap"}),Boolean(re&4)&&require$$0.createElement(c$7,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:st,features:p$4.Focusable}))}let z$2=D$1(X),ge$1=Object.assign(z$2,{features:h$6}),a$5=[];t$3(()=>{function L(V){V.target instanceof HTMLElement&&V.target!==document.body&&a$5[0]!==V.target&&(a$5.unshift(V.target),a$5=a$5.filter(G=>G!=null&&G.isConnected),a$5.splice(10))}window.addEventListener("click",L,{capture:!0}),window.addEventListener("mousedown",L,{capture:!0}),window.addEventListener("focus",L,{capture:!0}),document.body.addEventListener("click",L,{capture:!0}),document.body.addEventListener("mousedown",L,{capture:!0}),document.body.addEventListener("focus",L,{capture:!0})});function Q(L=!0){let V=react$1.exports.useRef(a$5.slice());return m$2(([G],[K])=>{K===!0&&G===!1&&t$6(()=>{V.current.splice(0)}),K===!1&&G===!0&&(V.current=a$5.slice())},[L,a$5,V]),o$4(()=>{var G;return(G=V.current.find(K=>K!=null&&K.isConnected))!=null?G:null})}function Y({ownerDocument:L},V){let G=Q(V);m$2(()=>{V||(L==null?void 0:L.activeElement)===(L==null?void 0:L.body)&&y$5(G())},[V]),c$5(()=>{V&&y$5(G())})}function Z({ownerDocument:L,container:V,initialFocus:G},K){let ee=react$1.exports.useRef(null),te=f$4();return m$2(()=>{if(!K)return;let re=V.current;re&&t$6(()=>{if(!te.current)return;let ce=L==null?void 0:L.activeElement;if(G!=null&&G.current){if((G==null?void 0:G.current)===ce){ee.current=ce;return}}else if(re.contains(ce)){ee.current=ce;return}G!=null&&G.current?y$5(G.current):O(re,M$5.First)===N$2.Error&&console.warn("There are no focusable elements inside the <FocusTrap />"),ee.current=L==null?void 0:L.activeElement})},[K]),ee}function $$1({ownerDocument:L,container:V,containers:G,previousActiveElement:K},ee){let te=f$4();E$1(L==null?void 0:L.defaultView,"focus",re=>{if(!ee||!te.current)return;let ce=P$1(G);V.current instanceof HTMLElement&&ce.add(V.current);let ue=K.current;if(!ue)return;let de=re.target;de&&de instanceof HTMLElement?S$4(ce,de)?(K.current=de,y$5(de)):(re.preventDefault(),re.stopPropagation(),y$5(ue)):y$5(K.current)},!0)}function S$4(L,V){for(let G of L)if(G.contains(V))return!0;return!1}let e$1=react$1.exports.createContext(!1);function l$4(){return react$1.exports.useContext(e$1)}function P(L){return require$$0.createElement(e$1.Provider,{value:L.force},L.children)}function F$1(L){let V=l$4(),G=react$1.exports.useContext(v$4),K=n$3(L),[ee,te]=react$1.exports.useState(()=>{if(!V&&G!==null||s$8.isServer)return null;let re=K==null?void 0:K.getElementById("headlessui-portal-root");if(re)return re;if(K===null)return null;let ce=K.createElement("div");return ce.setAttribute("id","headlessui-portal-root"),K.body.appendChild(ce)});return react$1.exports.useEffect(()=>{ee!==null&&(K!=null&&K.body.contains(ee)||K==null||K.body.appendChild(ee))},[ee,K]),react$1.exports.useEffect(()=>{V||G!==null&&te(G.current)},[G,te,V]),ee}let U$1=react$1.exports.Fragment;function N(L,V){let G=L,K=react$1.exports.useRef(null),ee=y$4(T$3(ve=>{K.current=ve}),V),te=n$3(K),re=F$1(K),[ce]=react$1.exports.useState(()=>{var ve;return s$8.isServer?null:(ve=te==null?void 0:te.createElement("div"))!=null?ve:null}),ue=react$1.exports.useContext(f$3),de=l$5();return l$6(()=>{!re||!ce||re.contains(ce)||(ce.setAttribute("data-headlessui-portal",""),re.appendChild(ce))},[re,ce]),l$6(()=>{if(ce&&ue)return ue.register(ce)},[ue,ce]),c$5(()=>{var ve;!re||!ce||(ce instanceof Node&&re.contains(ce)&&re.removeChild(ce),re.childNodes.length<=0&&((ve=re.parentElement)==null||ve.removeChild(re)))}),de?!re||!ce?null:reactDom.exports.createPortal(X$1({ourProps:{ref:ee},theirProps:G,defaultTag:U$1,name:"Portal"}),ce):null}let S$3=react$1.exports.Fragment,v$4=react$1.exports.createContext(null);function j$1(L,V){let{target:G,...K}=L,ee={ref:y$4(V)};return require$$0.createElement(v$4.Provider,{value:G},X$1({ourProps:ee,theirProps:K,defaultTag:S$3,name:"Popover.Group"}))}let f$3=react$1.exports.createContext(null);function ae$2(){let L=react$1.exports.useContext(f$3),V=react$1.exports.useRef([]),G=o$4(te=>(V.current.push(te),L&&L.register(te),()=>K(te))),K=o$4(te=>{let re=V.current.indexOf(te);re!==-1&&V.current.splice(re,1),L&&L.unregister(te)}),ee=react$1.exports.useMemo(()=>({register:G,unregister:K,portals:V}),[G,K,V]);return[V,react$1.exports.useMemo(()=>function({children:te}){return require$$0.createElement(f$3.Provider,{value:ee},te)},[ee])]}let D=D$1(N),I$1=D$1(j$1),pe=Object.assign(D,{Group:I$1}),d$3=react$1.exports.createContext(null);function f$2(){let L=react$1.exports.useContext(d$3);if(L===null){let V=new Error("You used a <Description /> component, but it is not inside a relevant parent.");throw Error.captureStackTrace&&Error.captureStackTrace(V,f$2),V}return L}function M$4(){let[L,V]=react$1.exports.useState([]);return[L.length>0?L.join(" "):void 0,react$1.exports.useMemo(()=>function(G){let K=o$4(te=>(V(re=>[...re,te]),()=>V(re=>{let ce=re.slice(),ue=ce.indexOf(te);return ue!==-1&&ce.splice(ue,1),ce}))),ee=react$1.exports.useMemo(()=>({register:K,slot:G.slot,name:G.name,props:G.props}),[K,G.slot,G.name,G.props]);return require$$0.createElement(d$3.Provider,{value:ee},G.children)},[V])]}let S$2="p";function h$5(L,V){let G=I$3(),{id:K=`headlessui-description-${G}`,...ee}=L,te=f$2(),re=y$4(V);l$6(()=>te.register(K),[K,te.register]);let ce={ref:re,...te.props,id:K};return X$1({ourProps:ce,theirProps:ee,slot:te.slot||{},defaultTag:S$2,name:te.name||"Description"})}let y$3=D$1(h$5),b$3=Object.assign(y$3,{}),a$4=react$1.exports.createContext(()=>{});a$4.displayName="StackContext";var s$2=(L=>(L[L.Add=0]="Add",L[L.Remove=1]="Remove",L))(s$2||{});function x$1(){return react$1.exports.useContext(a$4)}function M$3({children:L,onUpdate:V,type:G,element:K,enabled:ee}){let te=x$1(),re=o$4((...ce)=>{V==null||V(...ce),te(...ce)});return l$6(()=>{let ce=ee===void 0||ee===!0;return ce&&re(0,G,K),()=>{ce&&re(1,G,K)}},[re,G,K,ee]),require$$0.createElement(a$4.Provider,{value:re},L)}function i$1(L,V){return L===V&&(L!==0||1/L===1/V)||L!==L&&V!==V}const d$2=typeof Object.is=="function"?Object.is:i$1,{useState:u$2,useEffect:h$4,useLayoutEffect:f$1,useDebugValue:p$3}=$2AODx$react;function y$2(L,V,G){const K=V(),[{inst:ee},te]=u$2({inst:{value:K,getSnapshot:V}});return f$1(()=>{ee.value=K,ee.getSnapshot=V,r$3(ee)&&te({inst:ee})},[L,K,V]),h$4(()=>(r$3(ee)&&te({inst:ee}),L(()=>{r$3(ee)&&te({inst:ee})})),[L]),p$3(K),K}function r$3(L){const V=L.getSnapshot,G=L.value;try{const K=V();return!d$2(G,K)}catch{return!0}}function t$2(L,V,G){return V()}const r$2=typeof window!="undefined"&&typeof window.document!="undefined"&&typeof window.document.createElement!="undefined",s$1=!r$2,c$4=s$1?t$2:y$2,a$3="useSyncExternalStore"in $2AODx$react?(L=>L.useSyncExternalStore)($2AODx$react):c$4;function S$1(L){return a$3(L.subscribe,L.getSnapshot,L.getSnapshot)}function a$2(L,V){let G=L(),K=new Set;return{getSnapshot(){return G},subscribe(ee){return K.add(ee),()=>K.delete(ee)},dispatch(ee,...te){let re=V[ee].call(G,...te);re&&(G=re,K.forEach(ce=>ce()))}}}function c$3(){let L;return{before({doc:V}){var G;let K=V.documentElement;L=((G=V.defaultView)!=null?G:window).innerWidth-K.clientWidth},after({doc:V,d:G}){let K=V.documentElement,ee=K.clientWidth-K.offsetWidth,te=L-ee;G.style(K,"paddingRight",`${te}px`)}}}function T$1(){if(!t$4())return{};let L;return{before(){L=window.pageYOffset},after({doc:V,d:G,meta:K}){function ee(te){return K.containers.flatMap(re=>re()).some(re=>re.contains(te))}G.microTask(()=>{if(window.getComputedStyle(V.documentElement).scrollBehavior!=="auto"){let re=o$5();re.style(V.documentElement,"scroll-behavior","auto"),G.add(()=>G.microTask(()=>re.dispose()))}G.style(V.body,"marginTop",`-${L}px`),window.scrollTo(0,0);let te=null;G.addEventListener(V,"click",re=>{if(re.target instanceof HTMLElement)try{let ce=re.target.closest("a");if(!ce)return;let{hash:ue}=new URL(ce.href),de=V.querySelector(ue);de&&!ee(de)&&(te=de)}catch{}},!0),G.addEventListener(V,"touchmove",re=>{re.target instanceof HTMLElement&&!ee(re.target)&&re.preventDefault()},{passive:!1}),G.add(()=>{window.scrollTo(0,window.pageYOffset+L),te&&te.isConnected&&(te.scrollIntoView({block:"nearest"}),te=null)})})}}}function l$3(){return{before({doc:L,d:V}){V.style(L.documentElement,"overflow","hidden")}}}function m$1(L){let V={};for(let G of L)Object.assign(V,G(V));return V}let a$1=a$2(()=>new Map,{PUSH(L,V){var G;let K=(G=this.get(L))!=null?G:{doc:L,count:0,d:o$5(),meta:new Set};return K.count++,K.meta.add(V),this.set(L,K),this},POP(L,V){let G=this.get(L);return G&&(G.count--,G.meta.delete(V)),this},SCROLL_PREVENT({doc:L,d:V,meta:G}){let K={doc:L,d:V,meta:m$1(G)},ee=[T$1(),c$3(),l$3()];ee.forEach(({before:te})=>te==null?void 0:te(K)),ee.forEach(({after:te})=>te==null?void 0:te(K))},SCROLL_ALLOW({d:L}){L.dispose()},TEARDOWN({doc:L}){this.delete(L)}});a$1.subscribe(()=>{let L=a$1.getSnapshot(),V=new Map;for(let[G]of L)V.set(G,G.documentElement.style.overflow);for(let G of L.values()){let K=V.get(G.doc)==="hidden",ee=G.count!==0;(ee&&!K||!ee&&K)&&a$1.dispatch(G.count>0?"SCROLL_PREVENT":"SCROLL_ALLOW",G),G.count===0&&a$1.dispatch("TEARDOWN",G)}});function p$2(L,V,G){let K=S$1(a$1),ee=L?K.get(L):void 0,te=ee?ee.count>0:!1;return l$6(()=>{if(!(!L||!V))return a$1.dispatch("PUSH",L,G),()=>a$1.dispatch("POP",L,G)},[V,L]),te}let u$1=new Map,t$1=new Map;function h$3(L,V=!0){l$6(()=>{var G;if(!V)return;let K=typeof L=="function"?L():L.current;if(!K)return;function ee(){var re;if(!K)return;let ce=(re=t$1.get(K))!=null?re:1;if(ce===1?t$1.delete(K):t$1.set(K,ce-1),ce!==1)return;let ue=u$1.get(K);ue&&(ue["aria-hidden"]===null?K.removeAttribute("aria-hidden"):K.setAttribute("aria-hidden",ue["aria-hidden"]),K.inert=ue.inert,u$1.delete(K))}let te=(G=t$1.get(K))!=null?G:0;return t$1.set(K,te+1),te!==0||(u$1.set(K,{"aria-hidden":K.getAttribute("aria-hidden"),inert:K.inert}),K.setAttribute("aria-hidden","true"),K.inert=!0),ee},[L,V])}function j({defaultContainers:L=[],portals:V,mainTreeNodeRef:G}={}){var K;let ee=react$1.exports.useRef((K=G==null?void 0:G.current)!=null?K:null),te=n$3(ee),re=o$4(()=>{var ce;let ue=[];for(let de of L)de!==null&&(de instanceof HTMLElement?ue.push(de):"current"in de&&de.current instanceof HTMLElement&&ue.push(de.current));if(V!=null&&V.current)for(let de of V.current)ue.push(de);for(let de of(ce=te==null?void 0:te.querySelectorAll("html > *, body > *"))!=null?ce:[])de!==document.body&&de!==document.head&&de instanceof HTMLElement&&de.id!=="headlessui-portal-root"&&(de.contains(ee.current)||ue.some(ve=>de.contains(ve))||ue.push(de));return ue});return{resolveContainers:re,contains:o$4(ce=>re().some(ue=>ue.contains(ce))),mainTreeNodeRef:ee,MainTreeNode:react$1.exports.useMemo(()=>function(){return G!=null?null:require$$0.createElement(c$7,{features:p$4.Hidden,ref:ee})},[ee,G])}}var _e$2=(L=>(L[L.Open=0]="Open",L[L.Closed=1]="Closed",L))(_e$2||{}),Ie$1=(L=>(L[L.SetTitleId=0]="SetTitleId",L))(Ie$1||{});let Me={[0](L,V){return L.titleId===V.id?L:{...L,titleId:V.id}}},I=react$1.exports.createContext(null);I.displayName="DialogContext";function b$2(L){let V=react$1.exports.useContext(I);if(V===null){let G=new Error(`<${L} /> is missing a parent <Dialog /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(G,b$2),G}return V}function we$1(L,V,G=()=>[document.body]){p$2(L,V,K=>{var ee;return{containers:[...(ee=K.containers)!=null?ee:[],G]}})}function Be(L,V){return u$4(V.type,Me,L,V)}let He$2="div",Ge$1=S$5.RenderStrategy|S$5.Static;function Ne$1(L,V){var G;let K=I$3(),{id:ee=`headlessui-dialog-${K}`,open:te,onClose:re,initialFocus:ce,__demoMode:ue=!1,...de}=L,[ve,st]=react$1.exports.useState(0),Ae=C();te===void 0&&Ae!==null&&(te=(Ae&d$4.Open)===d$4.Open);let at=react$1.exports.useRef(null),ot=y$4(at,V),rt=n$3(at),ft=L.hasOwnProperty("open")||Ae!==null,Oe=L.hasOwnProperty("onClose");if(!ft&&!Oe)throw new Error("You have to provide an `open` and an `onClose` prop to the `Dialog` component.");if(!ft)throw new Error("You provided an `onClose` prop to the `Dialog`, but forgot an `open` prop.");if(!Oe)throw new Error("You provided an `open` prop to the `Dialog`, but forgot an `onClose` prop.");if(typeof te!="boolean")throw new Error(`You provided an \`open\` prop to the \`Dialog\`, but the value is not a boolean. Received: ${te}`);if(typeof re!="function")throw new Error(`You provided an \`onClose\` prop to the \`Dialog\`, but the value is not a function. Received: ${re}`);let nt=te?0:1,[it,lt]=react$1.exports.useReducer(Be,{titleId:null,descriptionId:null,panelRef:react$1.exports.createRef()}),ct=o$4(()=>re(!1)),ut=o$4(pr=>lt({type:0,id:pr})),bt=l$5()?ue?!1:nt===0:!1,gt=ve>1,Pt=react$1.exports.useContext(I)!==null,[Nt,Ot]=ae$2(),{resolveContainers:Ft,mainTreeNodeRef:jt,MainTreeNode:Bt}=j({portals:Nt,defaultContainers:[(G=it.panelRef.current)!=null?G:at.current]}),At=gt?"parent":"leaf",$t=Ae!==null?(Ae&d$4.Closing)===d$4.Closing:!1,Ct=(()=>Pt||$t?!1:bt)(),dt=react$1.exports.useCallback(()=>{var pr,gr;return(gr=Array.from((pr=rt==null?void 0:rt.querySelectorAll("body > *"))!=null?pr:[]).find(ir=>ir.id==="headlessui-portal-root"?!1:ir.contains(jt.current)&&ir instanceof HTMLElement))!=null?gr:null},[jt]);h$3(dt,Ct);let mt=(()=>gt?!0:bt)(),kt=react$1.exports.useCallback(()=>{var pr,gr;return(gr=Array.from((pr=rt==null?void 0:rt.querySelectorAll("[data-headlessui-portal]"))!=null?pr:[]).find(ir=>ir.contains(jt.current)&&ir instanceof HTMLElement))!=null?gr:null},[jt]);h$3(kt,mt);let It=(()=>!(!bt||gt))();h$7(Ft,ct,It);let Kt=(()=>!(gt||nt!==0))();E$1(rt==null?void 0:rt.defaultView,"keydown",pr=>{Kt&&(pr.defaultPrevented||pr.key===o$1.Escape&&(pr.preventDefault(),pr.stopPropagation(),ct()))});let Yt=(()=>!($t||nt!==0||Pt))();we$1(rt,Yt,Ft),react$1.exports.useEffect(()=>{if(nt!==0||!at.current)return;let pr=new ResizeObserver(gr=>{for(let ir of gr){let Jt=ir.target.getBoundingClientRect();Jt.x===0&&Jt.y===0&&Jt.width===0&&Jt.height===0&&ct()}});return pr.observe(at.current),()=>pr.disconnect()},[nt,at,ct]);let[nr,ur]=M$4(),Vt=react$1.exports.useMemo(()=>[{dialogState:nt,close:ct,setTitleId:ut},it],[nt,it,ct,ut]),lr=react$1.exports.useMemo(()=>({open:nt===0}),[nt]),sr={ref:ot,id:ee,role:"dialog","aria-modal":nt===0?!0:void 0,"aria-labelledby":it.titleId,"aria-describedby":nr};return require$$0.createElement(M$3,{type:"Dialog",enabled:nt===0,element:at,onUpdate:o$4((pr,gr)=>{gr==="Dialog"&&u$4(pr,{[s$2.Add]:()=>st(ir=>ir+1),[s$2.Remove]:()=>st(ir=>ir-1)})})},require$$0.createElement(P,{force:!0},require$$0.createElement(pe,null,require$$0.createElement(I.Provider,{value:Vt},require$$0.createElement(pe.Group,{target:at},require$$0.createElement(P,{force:!1},require$$0.createElement(ur,{slot:lr,name:"Dialog.Description"},require$$0.createElement(ge$1,{initialFocus:ce,containers:Ft,features:bt?u$4(At,{parent:ge$1.features.RestoreFocus,leaf:ge$1.features.All&~ge$1.features.FocusLock}):ge$1.features.None},require$$0.createElement(Ot,null,X$1({ourProps:sr,theirProps:de,slot:lr,defaultTag:He$2,features:Ge$1,visible:nt===0,name:"Dialog"}))))))))),require$$0.createElement(Bt,null))}let Ue$1="div";function We$1(L,V){let G=I$3(),{id:K=`headlessui-dialog-overlay-${G}`,...ee}=L,[{dialogState:te,close:re}]=b$2("Dialog.Overlay"),ce=y$4(V),ue=o$4(ve=>{if(ve.target===ve.currentTarget){if(r$4(ve.currentTarget))return ve.preventDefault();ve.preventDefault(),ve.stopPropagation(),re()}}),de=react$1.exports.useMemo(()=>({open:te===0}),[te]);return X$1({ourProps:{ref:ce,id:K,"aria-hidden":!0,onClick:ue},theirProps:ee,slot:de,defaultTag:Ue$1,name:"Dialog.Overlay"})}let Ye$1="div";function $e(L,V){let G=I$3(),{id:K=`headlessui-dialog-backdrop-${G}`,...ee}=L,[{dialogState:te},re]=b$2("Dialog.Backdrop"),ce=y$4(V);react$1.exports.useEffect(()=>{if(re.panelRef.current===null)throw new Error("A <Dialog.Backdrop /> component is being used, but a <Dialog.Panel /> component is missing.")},[re.panelRef]);let ue=react$1.exports.useMemo(()=>({open:te===0}),[te]);return require$$0.createElement(P,{force:!0},require$$0.createElement(pe,null,X$1({ourProps:{ref:ce,id:K,"aria-hidden":!0},theirProps:ee,slot:ue,defaultTag:Ye$1,name:"Dialog.Backdrop"})))}let Je$1="div";function Xe$1(L,V){let G=I$3(),{id:K=`headlessui-dialog-panel-${G}`,...ee}=L,[{dialogState:te},re]=b$2("Dialog.Panel"),ce=y$4(V,re.panelRef),ue=react$1.exports.useMemo(()=>({open:te===0}),[te]),de=o$4(ve=>{ve.stopPropagation()});return X$1({ourProps:{ref:ce,id:K,onClick:de},theirProps:ee,slot:ue,defaultTag:Je$1,name:"Dialog.Panel"})}let je$1="h2";function Ke$1(L,V){let G=I$3(),{id:K=`headlessui-dialog-title-${G}`,...ee}=L,[{dialogState:te,setTitleId:re}]=b$2("Dialog.Title"),ce=y$4(V);react$1.exports.useEffect(()=>(re(K),()=>re(null)),[K,re]);let ue=react$1.exports.useMemo(()=>({open:te===0}),[te]);return X$1({ourProps:{ref:ce,id:K},theirProps:ee,slot:ue,defaultTag:je$1,name:"Dialog.Title"})}let Ve=D$1(Ne$1),qe$1=D$1($e),ze$1=D$1(Xe$1),Qe$1=D$1(We$1),Ze$1=D$1(Ke$1),_t=Object.assign(Ve,{Backdrop:qe$1,Panel:ze$1,Overlay:Qe$1,Title:Ze$1,Description:b$3});function c$2(L=0){let[V,G]=react$1.exports.useState(L),K=f$4(),ee=react$1.exports.useCallback(ue=>{K.current&&G(de=>de|ue)},[V,K]),te=react$1.exports.useCallback(ue=>Boolean(V&ue),[V]),re=react$1.exports.useCallback(ue=>{K.current&&G(de=>de&~ue)},[G,K]),ce=react$1.exports.useCallback(ue=>{K.current&&G(de=>de^ue)},[G]);return{flags:V,addFlag:ee,hasFlag:te,removeFlag:re,toggleFlag:ce}}let d$1=react$1.exports.createContext(null);function u(){let L=react$1.exports.useContext(d$1);if(L===null){let V=new Error("You used a <Label /> component, but it is not inside a relevant parent.");throw Error.captureStackTrace&&Error.captureStackTrace(V,u),V}return L}function H(){let[L,V]=react$1.exports.useState([]);return[L.length>0?L.join(" "):void 0,react$1.exports.useMemo(()=>function(G){let K=o$4(te=>(V(re=>[...re,te]),()=>V(re=>{let ce=re.slice(),ue=ce.indexOf(te);return ue!==-1&&ce.splice(ue,1),ce}))),ee=react$1.exports.useMemo(()=>({register:K,slot:G.slot,name:G.name,props:G.props}),[K,G.slot,G.name,G.props]);return require$$0.createElement(d$1.Provider,{value:ee},G.children)},[V])]}let A$1="label";function h$2(L,V){let G=I$3(),{id:K=`headlessui-label-${G}`,passive:ee=!1,...te}=L,re=u(),ce=y$4(V);l$6(()=>re.register(K),[K,re.register]);let ue={ref:ce,...re.props,id:K};return ee&&("onClick"in ue&&(delete ue.htmlFor,delete ue.onClick),"onClick"in te&&delete te.onClick),X$1({ourProps:ue,theirProps:te,slot:re.slot||{},defaultTag:A$1,name:re.name||"Label"})}let v$3=D$1(h$2),M$2=Object.assign(v$3,{});var Ce=(L=>(L[L.RegisterOption=0]="RegisterOption",L[L.UnregisterOption=1]="UnregisterOption",L))(Ce||{});let ke$1={[0](L,V){let G=[...L.options,{id:V.id,element:V.element,propsRef:V.propsRef}];return{...L,options:I$2(G,K=>K.element.current)}},[1](L,V){let G=L.options.slice(),K=L.options.findIndex(ee=>ee.id===V.id);return K===-1?L:(G.splice(K,1),{...L,options:G})}},B=react$1.exports.createContext(null);B.displayName="RadioGroupDataContext";function oe$2(L){let V=react$1.exports.useContext(B);if(V===null){let G=new Error(`<${L} /> is missing a parent <RadioGroup /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(G,oe$2),G}return V}let $=react$1.exports.createContext(null);$.displayName="RadioGroupActionsContext";function ne(L){let V=react$1.exports.useContext($);if(V===null){let G=new Error(`<${L} /> is missing a parent <RadioGroup /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(G,ne),G}return V}function Le$1(L,V){return u$4(V.type,ke$1,L,V)}let he="div";function Fe$2(L,V){let G=I$3(),{id:K=`headlessui-radiogroup-${G}`,value:ee,defaultValue:te,form:re,name:ce,onChange:ue,by:de=(mt,kt)=>mt===kt,disabled:ve=!1,...st}=L,Ae=o$4(typeof de=="string"?(mt,kt)=>{let It=de;return(mt==null?void 0:mt[It])===(kt==null?void 0:kt[It])}:de),[at,ot]=react$1.exports.useReducer(Le$1,{options:[]}),rt=at.options,[ft,Oe]=H(),[nt,it]=M$4(),lt=react$1.exports.useRef(null),ct=y$4(lt,V),[ut,bt]=T$2(ee,ue,te),gt=react$1.exports.useMemo(()=>rt.find(mt=>!mt.propsRef.current.disabled),[rt]),Pt=react$1.exports.useMemo(()=>rt.some(mt=>Ae(mt.propsRef.current.value,ut)),[rt,ut]),Nt=o$4(mt=>{var kt;if(ve||Ae(mt,ut))return!1;let It=(kt=rt.find(Kt=>Ae(Kt.propsRef.current.value,mt)))==null?void 0:kt.propsRef.current;return It!=null&&It.disabled?!1:(bt==null||bt(mt),!0)});F$2({container:lt.current,accept(mt){return mt.getAttribute("role")==="radio"?NodeFilter.FILTER_REJECT:mt.hasAttribute("role")?NodeFilter.FILTER_SKIP:NodeFilter.FILTER_ACCEPT},walk(mt){mt.setAttribute("role","none")}});let Ot=o$4(mt=>{let kt=lt.current;if(!kt)return;let It=e$3(kt),Kt=rt.filter(Yt=>Yt.propsRef.current.disabled===!1).map(Yt=>Yt.element.current);switch(mt.key){case o$1.Enter:p$5(mt.currentTarget);break;case o$1.ArrowLeft:case o$1.ArrowUp:if(mt.preventDefault(),mt.stopPropagation(),O(Kt,M$5.Previous|M$5.WrapAround)===N$2.Success){let Yt=rt.find(nr=>nr.element.current===(It==null?void 0:It.activeElement));Yt&&Nt(Yt.propsRef.current.value)}break;case o$1.ArrowRight:case o$1.ArrowDown:if(mt.preventDefault(),mt.stopPropagation(),O(Kt,M$5.Next|M$5.WrapAround)===N$2.Success){let Yt=rt.find(nr=>nr.element.current===(It==null?void 0:It.activeElement));Yt&&Nt(Yt.propsRef.current.value)}break;case o$1.Space:{mt.preventDefault(),mt.stopPropagation();let Yt=rt.find(nr=>nr.element.current===(It==null?void 0:It.activeElement));Yt&&Nt(Yt.propsRef.current.value)}break}}),Ft=o$4(mt=>(ot({type:0,...mt}),()=>ot({type:1,id:mt.id}))),jt=react$1.exports.useMemo(()=>({value:ut,firstOption:gt,containsCheckedOption:Pt,disabled:ve,compare:Ae,...at}),[ut,gt,Pt,ve,Ae,at]),Bt=react$1.exports.useMemo(()=>({registerOption:Ft,change:Nt}),[Ft,Nt]),At={ref:ct,id:K,role:"radiogroup","aria-labelledby":ft,"aria-describedby":nt,onKeyDown:Ot},$t=react$1.exports.useMemo(()=>({value:ut}),[ut]),Ct=react$1.exports.useRef(null),dt=p$6();return react$1.exports.useEffect(()=>{Ct.current&&te!==void 0&&dt.addEventListener(Ct.current,"reset",()=>{Nt(te)})},[Ct,Nt]),require$$0.createElement(it,{name:"RadioGroup.Description"},require$$0.createElement(Oe,{name:"RadioGroup.Label"},require$$0.createElement($.Provider,{value:Bt},require$$0.createElement(B.Provider,{value:jt},ce!=null&&ut!=null&&e$2({[ce]:ut}).map(([mt,kt],It)=>require$$0.createElement(c$7,{features:p$4.Hidden,ref:It===0?Kt=>{var Yt;Ct.current=(Yt=Kt==null?void 0:Kt.closest("form"))!=null?Yt:null}:void 0,...R$1({key:mt,as:"input",type:"radio",checked:kt!=null,hidden:!0,readOnly:!0,form:re,name:mt,value:kt})})),X$1({ourProps:At,theirProps:st,slot:$t,defaultTag:he,name:"RadioGroup"})))))}var xe$2=(L=>(L[L.Empty=1]="Empty",L[L.Active=2]="Active",L))(xe$2||{});let _e$1="div";function we(L,V){var G;let K=I$3(),{id:ee=`headlessui-radiogroup-option-${K}`,value:te,disabled:re=!1,...ce}=L,ue=react$1.exports.useRef(null),de=y$4(ue,V),[ve,st]=H(),[Ae,at]=M$4(),{addFlag:ot,removeFlag:rt,hasFlag:ft}=c$2(1),Oe=s$7({value:te,disabled:re}),nt=oe$2("RadioGroup.Option"),it=ne("RadioGroup.Option");l$6(()=>it.registerOption({id:ee,element:ue,propsRef:Oe}),[ee,it,ue,L]);let lt=o$4(Ft=>{var jt;if(r$4(Ft.currentTarget))return Ft.preventDefault();it.change(te)&&(ot(2),(jt=ue.current)==null||jt.focus())}),ct=o$4(Ft=>{if(r$4(Ft.currentTarget))return Ft.preventDefault();ot(2)}),ut=o$4(()=>rt(2)),bt=((G=nt.firstOption)==null?void 0:G.id)===ee,gt=nt.disabled||re,Pt=nt.compare(nt.value,te),Nt={ref:de,id:ee,role:"radio","aria-checked":Pt?"true":"false","aria-labelledby":ve,"aria-describedby":Ae,"aria-disabled":gt?!0:void 0,tabIndex:(()=>gt?-1:Pt||!nt.containsCheckedOption&&bt?0:-1)(),onClick:gt?void 0:lt,onFocus:gt?void 0:ct,onBlur:gt?void 0:ut},Ot=react$1.exports.useMemo(()=>({checked:Pt,disabled:gt,active:ft(2)}),[Pt,gt,ft]);return require$$0.createElement(at,{name:"RadioGroup.Description"},require$$0.createElement(st,{name:"RadioGroup.Label"},X$1({ourProps:Nt,theirProps:ce,slot:Ot,defaultTag:_e$1,name:"RadioGroup.Option"})))}let Ie=D$1(Fe$2),Se$2=D$1(we),yt$1=Object.assign(Ie,{Option:Se$2,Label:M$2,Description:b$3});function l$2(L){let V={called:!1};return(...G)=>{if(!V.called)return V.called=!0,L(...G)}}function g$1(L,...V){L&&V.length>0&&L.classList.add(...V)}function v$2(L,...V){L&&V.length>0&&L.classList.remove(...V)}function b$1(L,V){let G=o$5();if(!L)return G.dispose;let{transitionDuration:K,transitionDelay:ee}=getComputedStyle(L),[te,re]=[K,ee].map(ue=>{let[de=0]=ue.split(",").filter(Boolean).map(ve=>ve.includes("ms")?parseFloat(ve):parseFloat(ve)*1e3).sort((ve,st)=>st-ve);return de}),ce=te+re;if(ce!==0){G.group(de=>{de.setTimeout(()=>{V(),de.dispose()},ce),de.addEventListener(L,"transitionrun",ve=>{ve.target===ve.currentTarget&&de.dispose()})});let ue=G.addEventListener(L,"transitionend",de=>{de.target===de.currentTarget&&(V(),ue())})}else V();return G.add(()=>V()),G.dispose}function M$1(L,V,G,K){let ee=G?"enter":"leave",te=o$5(),re=K!==void 0?l$2(K):()=>{};ee==="enter"&&(L.removeAttribute("hidden"),L.style.display="");let ce=u$4(ee,{enter:()=>V.enter,leave:()=>V.leave}),ue=u$4(ee,{enter:()=>V.enterTo,leave:()=>V.leaveTo}),de=u$4(ee,{enter:()=>V.enterFrom,leave:()=>V.leaveFrom});return v$2(L,...V.base,...V.enter,...V.enterTo,...V.enterFrom,...V.leave,...V.leaveFrom,...V.leaveTo,...V.entered),g$1(L,...V.base,...ce,...de),te.nextFrame(()=>{v$2(L,...V.base,...ce,...de),g$1(L,...V.base,...ce,...ue),b$1(L,()=>(v$2(L,...V.base,...ce),g$1(L,...V.base,...V.entered),re()))}),te.dispose}function E({immediate:L,container:V,direction:G,classes:K,onStart:ee,onStop:te}){let re=f$4(),ce=p$6(),ue=s$7(G);l$6(()=>{L&&(ue.current="enter")},[L]),l$6(()=>{let de=o$5();ce.add(de.dispose);let ve=V.current;if(ve&&ue.current!=="idle"&&re.current)return de.dispose(),ee.current(ue.current),de.add(M$1(ve,K.current,ue.current==="enter",()=>{de.dispose(),te.current(ue.current)})),de.dispose},[G])}function S(L=""){return L.split(" ").filter(V=>V.trim().length>1)}let _=react$1.exports.createContext(null);_.displayName="TransitionContext";var be$1=(L=>(L.Visible="visible",L.Hidden="hidden",L))(be$1||{});function Se$1(){let L=react$1.exports.useContext(_);if(L===null)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return L}function Ne(){let L=react$1.exports.useContext(M);if(L===null)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return L}let M=react$1.exports.createContext(null);M.displayName="NestingContext";function U(L){return"children"in L?U(L.children):L.current.filter(({el:V})=>V.current!==null).filter(({state:V})=>V==="visible").length>0}function oe$1(L,V){let G=s$7(L),K=react$1.exports.useRef([]),ee=f$4(),te=p$6(),re=o$4((at,ot=j$2.Hidden)=>{let rt=K.current.findIndex(({el:ft})=>ft===at);rt!==-1&&(u$4(ot,{[j$2.Unmount](){K.current.splice(rt,1)},[j$2.Hidden](){K.current[rt].state="hidden"}}),te.microTask(()=>{var ft;!U(K)&&ee.current&&((ft=G.current)==null||ft.call(G))}))}),ce=o$4(at=>{let ot=K.current.find(({el:rt})=>rt===at);return ot?ot.state!=="visible"&&(ot.state="visible"):K.current.push({el:at,state:"visible"}),()=>re(at,j$2.Unmount)}),ue=react$1.exports.useRef([]),de=react$1.exports.useRef(Promise.resolve()),ve=react$1.exports.useRef({enter:[],leave:[],idle:[]}),st=o$4((at,ot,rt)=>{ue.current.splice(0),V&&(V.chains.current[ot]=V.chains.current[ot].filter(([ft])=>ft!==at)),V==null||V.chains.current[ot].push([at,new Promise(ft=>{ue.current.push(ft)})]),V==null||V.chains.current[ot].push([at,new Promise(ft=>{Promise.all(ve.current[ot].map(([Oe,nt])=>nt)).then(()=>ft())})]),ot==="enter"?de.current=de.current.then(()=>V==null?void 0:V.wait.current).then(()=>rt(ot)):rt(ot)}),Ae=o$4((at,ot,rt)=>{Promise.all(ve.current[ot].splice(0).map(([ft,Oe])=>Oe)).then(()=>{var ft;(ft=ue.current.shift())==null||ft()}).then(()=>rt(ot))});return react$1.exports.useMemo(()=>({children:K,register:ce,unregister:re,onStart:st,onStop:Ae,wait:de,chains:ve}),[ce,re,K,st,Ae,ve,de])}function xe$1(){}let Pe=["beforeEnter","afterEnter","beforeLeave","afterLeave"];function se(L){var V;let G={};for(let K of Pe)G[K]=(V=L[K])!=null?V:xe$1;return G}function Re$1(L){let V=react$1.exports.useRef(se(L));return react$1.exports.useEffect(()=>{V.current=se(L)},[L]),V}let ye$1="div",ae$1=S$5.RenderStrategy;function De$1(L,V){var G,K;let{beforeEnter:ee,afterEnter:te,beforeLeave:re,afterLeave:ce,enter:ue,enterFrom:de,enterTo:ve,entered:st,leave:Ae,leaveFrom:at,leaveTo:ot,...rt}=L,ft=react$1.exports.useRef(null),Oe=y$4(ft,V),nt=(G=rt.unmount)==null||G?j$2.Unmount:j$2.Hidden,{show:it,appear:lt,initial:ct}=Se$1(),[ut,bt]=react$1.exports.useState(it?"visible":"hidden"),gt=Ne(),{register:Pt,unregister:Nt}=gt;react$1.exports.useEffect(()=>Pt(ft),[Pt,ft]),react$1.exports.useEffect(()=>{if(nt===j$2.Hidden&&ft.current){if(it&&ut!=="visible"){bt("visible");return}return u$4(ut,{hidden:()=>Nt(ft),visible:()=>Pt(ft)})}},[ut,ft,Pt,Nt,it,nt]);let Ot=s$7({base:S(rt.className),enter:S(ue),enterFrom:S(de),enterTo:S(ve),entered:S(st),leave:S(Ae),leaveFrom:S(at),leaveTo:S(ot)}),Ft=Re$1({beforeEnter:ee,afterEnter:te,beforeLeave:re,afterLeave:ce}),jt=l$5();react$1.exports.useEffect(()=>{if(jt&&ut==="visible"&&ft.current===null)throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?")},[ft,ut,jt]);let Bt=ct&&!lt,At=lt&&it&&ct,$t=(()=>!jt||Bt?"idle":it?"enter":"leave")(),Ct=c$2(0),dt=o$4(Yt=>u$4(Yt,{enter:()=>{Ct.addFlag(d$4.Opening),Ft.current.beforeEnter()},leave:()=>{Ct.addFlag(d$4.Closing),Ft.current.beforeLeave()},idle:()=>{}})),mt=o$4(Yt=>u$4(Yt,{enter:()=>{Ct.removeFlag(d$4.Opening),Ft.current.afterEnter()},leave:()=>{Ct.removeFlag(d$4.Closing),Ft.current.afterLeave()},idle:()=>{}})),kt=oe$1(()=>{bt("hidden"),Nt(ft)},gt);E({immediate:At,container:ft,classes:Ot,direction:$t,onStart:s$7(Yt=>{kt.onStart(ft,Yt,dt)}),onStop:s$7(Yt=>{kt.onStop(ft,Yt,mt),Yt==="leave"&&!U(kt)&&(bt("hidden"),Nt(ft))})});let It=rt,Kt={ref:Oe};return At?It={...It,className:t$5(rt.className,...Ot.current.enter,...Ot.current.enterFrom)}:(It.className=t$5(rt.className,(K=ft.current)==null?void 0:K.className),It.className===""&&delete It.className),require$$0.createElement(M.Provider,{value:kt},require$$0.createElement(c$6,{value:u$4(ut,{visible:d$4.Open,hidden:d$4.Closed})|Ct.flags},X$1({ourProps:Kt,theirProps:It,defaultTag:ye$1,features:ae$1,visible:ut==="visible",name:"Transition.Child"})))}function He$1(L,V){let{show:G,appear:K=!1,unmount:ee=!0,...te}=L,re=react$1.exports.useRef(null),ce=y$4(re,V);l$5();let ue=C();if(G===void 0&&ue!==null&&(G=(ue&d$4.Open)===d$4.Open),![!0,!1].includes(G))throw new Error("A <Transition /> is used but it is missing a `show={true | false}` prop.");let[de,ve]=react$1.exports.useState(G?"visible":"hidden"),st=oe$1(()=>{ve("hidden")}),[Ae,at]=react$1.exports.useState(!0),ot=react$1.exports.useRef([G]);l$6(()=>{Ae!==!1&&ot.current[ot.current.length-1]!==G&&(ot.current.push(G),at(!1))},[ot,G]);let rt=react$1.exports.useMemo(()=>({show:G,appear:K,initial:Ae}),[G,K,Ae]);react$1.exports.useEffect(()=>{if(G)ve("visible");else if(!U(st))ve("hidden");else{let it=re.current;if(!it)return;let lt=it.getBoundingClientRect();lt.x===0&&lt.y===0&&lt.width===0&&lt.height===0&&ve("hidden")}},[G,st]);let ft={unmount:ee},Oe=o$4(()=>{var it;Ae&&at(!1),(it=L.beforeEnter)==null||it.call(L)}),nt=o$4(()=>{var it;Ae&&at(!1),(it=L.beforeLeave)==null||it.call(L)});return require$$0.createElement(M.Provider,{value:st},require$$0.createElement(_.Provider,{value:rt},X$1({ourProps:{...ft,as:react$1.exports.Fragment,children:require$$0.createElement(le,{ref:ce,...ft,...te,beforeEnter:Oe,beforeLeave:nt})},theirProps:{},defaultTag:react$1.exports.Fragment,features:ae$1,visible:de==="visible",name:"Transition"})))}function Fe$1(L,V){let G=react$1.exports.useContext(_)!==null,K=C()!==null;return require$$0.createElement(require$$0.Fragment,null,!G&&K?require$$0.createElement(W,{ref:V,...L}):require$$0.createElement(le,{ref:V,...L}))}let W=D$1(He$1),le=D$1(De$1),Le=D$1(Fe$1),tt$1=Object.assign(W,{Child:Le,Root:W});const parseFilterParams=(L,V)=>{if(isEmpty(L))return{};const K=[...new URLSearchParams((L==null?void 0:L.searchOriginal)||"").entries()],ee={ids:[],entities:{},filterCount:{}};let te="",re="",ce=1;return K.forEach(([ue,de])=>{if(ue==="page")return ce=+de;if(ue==="query")return te=de;if(ue==="sortBy")return re=de;if(ue==="preview")return;let ve=`${ue}-${de}`;V&&!V.includes(ue)||(ue==="price"&&(ve=ue),ee.ids.push(ve),ee.entities[ve]={id:ve,value:de,type:ue},ee.filterCount[ue]=(ee.filterCount[ue]||0)+1)}),ee.ids=uniq(ee.ids),{appliedFilters:ee,searchQuery:te,sortQuery:re,pageNo:ce}},addFilterHandler=(L,V)=>{const G=new URL(window.location);V==="sortBy"||V==="price"?G.searchParams.set(V,L.value):G.searchParams.append(V,L.value),G.searchParams.delete("page"),G.searchParams.sort(),navigate(`${G.pathname}${G.search}`,{keepScrollPosition:!0})},removeFilterHandler=(L,V)=>{const G=new URL(window.location);G.searchParams.delete("page");const K=new URL(removeQuery(G.href,V,L.value));navigate(`${G.pathname}${K.search}`,{keepScrollPosition:!0})};var isCheckBoxInput=L=>L.type==="checkbox",isDateObject=L=>L instanceof Date,isNullOrUndefined=L=>L==null;const isObjectType=L=>typeof L=="object";var isObject$5=L=>!isNullOrUndefined(L)&&!Array.isArray(L)&&isObjectType(L)&&!isDateObject(L),getEventValue=L=>isObject$5(L)&&L.target?isCheckBoxInput(L.target)?L.target.checked:L.target.value:L,getNodeParentName=L=>L.substring(0,L.search(/\.\d+(\.|$)/))||L,isNameInFieldArray=(L,V)=>L.has(getNodeParentName(V)),isPlainObject$2=L=>{const V=L.constructor&&L.constructor.prototype;return isObject$5(V)&&V.hasOwnProperty("isPrototypeOf")},isWeb=typeof window!="undefined"&&typeof window.HTMLElement!="undefined"&&typeof document!="undefined";function cloneObject(L){let V;const G=Array.isArray(L);if(L instanceof Date)V=new Date(L);else if(L instanceof Set)V=new Set(L);else if(!(isWeb&&(L instanceof Blob||L instanceof FileList))&&(G||isObject$5(L)))if(V=G?[]:{},!G&&!isPlainObject$2(L))V=L;else for(const K in L)L.hasOwnProperty(K)&&(V[K]=cloneObject(L[K]));else return L;return V}var compact=L=>Array.isArray(L)?L.filter(Boolean):[],isUndefined=L=>L===void 0,get=(L,V,G)=>{if(!V||!isObject$5(L))return G;const K=compact(V.split(/[,[\].]+?/)).reduce((ee,te)=>isNullOrUndefined(ee)?ee:ee[te],L);return isUndefined(K)||K===L?isUndefined(L[V])?G:L[V]:K},isBoolean$1=L=>typeof L=="boolean";const EVENTS={BLUR:"blur",FOCUS_OUT:"focusout",CHANGE:"change"},VALIDATION_MODE={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},INPUT_VALIDATION_RULES={max:"max",min:"min",maxLength:"maxLength",minLength:"minLength",pattern:"pattern",required:"required",validate:"validate"},HookFormContext=require$$0.createContext(null),useFormContext=()=>require$$0.useContext(HookFormContext),FormProvider=L=>{const{children:V,...G}=L;return require$$0.createElement(HookFormContext.Provider,{value:G},V)};var getProxyFormState=(L,V,G,K=!0)=>{const ee={defaultValues:V._defaultValues};for(const te in L)Object.defineProperty(ee,te,{get:()=>{const re=te;return V._proxyFormState[re]!==VALIDATION_MODE.all&&(V._proxyFormState[re]=!K||VALIDATION_MODE.all),G&&(G[re]=!0),L[re]}});return ee},isEmptyObject=L=>isObject$5(L)&&!Object.keys(L).length,shouldRenderFormState=(L,V,G,K)=>{G(L);const{name:ee,...te}=L;return isEmptyObject(te)||Object.keys(te).length>=Object.keys(V).length||Object.keys(te).find(re=>V[re]===(!K||VALIDATION_MODE.all))},convertToArrayPayload=L=>Array.isArray(L)?L:[L],shouldSubscribeByName=(L,V,G)=>!L||!V||L===V||convertToArrayPayload(L).some(K=>K&&(G?K===V:K.startsWith(V)||V.startsWith(K)));function useSubscribe(L){const V=require$$0.useRef(L);V.current=L,require$$0.useEffect(()=>{const G=!L.disabled&&V.current.subject&&V.current.subject.subscribe({next:V.current.next});return()=>{G&&G.unsubscribe()}},[L.disabled])}function useFormState(L){const V=useFormContext(),{control:G=V.control,disabled:K,name:ee,exact:te}=L||{},[re,ce]=require$$0.useState(G._formState),ue=require$$0.useRef(!0),de=require$$0.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1}),ve=require$$0.useRef(ee);return ve.current=ee,useSubscribe({disabled:K,next:st=>ue.current&&shouldSubscribeByName(ve.current,st.name,te)&&shouldRenderFormState(st,de.current,G._updateFormState)&&ce({...G._formState,...st}),subject:G._subjects.state}),require$$0.useEffect(()=>(ue.current=!0,de.current.isValid&&G._updateValid(!0),()=>{ue.current=!1}),[G]),getProxyFormState(re,G,de.current,!1)}var isString$1=L=>typeof L=="string",generateWatchOutput=(L,V,G,K,ee)=>isString$1(L)?(K&&V.watch.add(L),get(G,L,ee)):Array.isArray(L)?L.map(te=>(K&&V.watch.add(te),get(G,te))):(K&&(V.watchAll=!0),G);function useWatch(L){const V=useFormContext(),{control:G=V.control,name:K,defaultValue:ee,disabled:te,exact:re}=L||{},ce=require$$0.useRef(K);ce.current=K,useSubscribe({disabled:te,subject:G._subjects.values,next:ve=>{shouldSubscribeByName(ce.current,ve.name,re)&&de(cloneObject(generateWatchOutput(ce.current,G._names,ve.values||G._formValues,!1,ee)))}});const[ue,de]=require$$0.useState(G._getWatch(K,ee));return require$$0.useEffect(()=>G._removeUnmounted()),ue}var isKey=L=>/^\w*$/.test(L),stringToPath=L=>compact(L.replace(/["|']|\]/g,"").split(/\.|\[/));function set(L,V,G){let K=-1;const ee=isKey(V)?[V]:stringToPath(V),te=ee.length,re=te-1;for(;++K<te;){const ce=ee[K];let ue=G;if(K!==re){const de=L[ce];ue=isObject$5(de)||Array.isArray(de)?de:isNaN(+ee[K+1])?{}:[]}L[ce]=ue,L=L[ce]}return L}function useController(L){const V=useFormContext(),{name:G,disabled:K,control:ee=V.control,shouldUnregister:te}=L,re=isNameInFieldArray(ee._names.array,G),ce=useWatch({control:ee,name:G,defaultValue:get(ee._formValues,G,get(ee._defaultValues,G,L.defaultValue)),exact:!0}),ue=useFormState({control:ee,name:G}),de=require$$0.useRef(ee.register(G,{...L.rules,value:ce}));return de.current=ee.register(G,L.rules),require$$0.useEffect(()=>{const ve=ee._options.shouldUnregister||te,st=(Ae,at)=>{const ot=get(ee._fields,Ae);ot&&(ot._f.mount=at)};if(st(G,!0),ve){const Ae=cloneObject(get(ee._options.defaultValues,G));set(ee._defaultValues,G,Ae),isUndefined(get(ee._formValues,G))&&set(ee._formValues,G,Ae)}return()=>{(re?ve&&!ee._state.action:ve)?ee.unregister(G):st(G,!1)}},[G,ee,re,te]),require$$0.useEffect(()=>{get(ee._fields,G)&&ee._updateDisabledField({disabled:K,fields:ee._fields,name:G,value:get(ee._fields,G)._f.value})},[K,G,ee]),{field:{name:G,value:ce,...isBoolean$1(K)||isBoolean$1(ue.disabled)?{disabled:ue.disabled||K}:{},onChange:require$$0.useCallback(ve=>de.current.onChange({target:{value:getEventValue(ve),name:G},type:EVENTS.CHANGE}),[G]),onBlur:require$$0.useCallback(()=>de.current.onBlur({target:{value:get(ee._formValues,G),name:G},type:EVENTS.BLUR}),[G,ee]),ref:ve=>{const st=get(ee._fields,G);st&&ve&&(st._f.ref={focus:()=>ve.focus(),select:()=>ve.select(),setCustomValidity:Ae=>ve.setCustomValidity(Ae),reportValidity:()=>ve.reportValidity()})}},formState:ue,fieldState:Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!get(ue.errors,G)},isDirty:{enumerable:!0,get:()=>!!get(ue.dirtyFields,G)},isTouched:{enumerable:!0,get:()=>!!get(ue.touchedFields,G)},error:{enumerable:!0,get:()=>get(ue.errors,G)}})}}const Controller=L=>L.render(useController(L));var appendErrors=(L,V,G,K,ee)=>V?{...G[L],types:{...G[L]&&G[L].types?G[L].types:{},[K]:ee||!0}}:{},getValidationModes=L=>({isOnSubmit:!L||L===VALIDATION_MODE.onSubmit,isOnBlur:L===VALIDATION_MODE.onBlur,isOnChange:L===VALIDATION_MODE.onChange,isOnAll:L===VALIDATION_MODE.all,isOnTouch:L===VALIDATION_MODE.onTouched}),isWatched=(L,V,G)=>!G&&(V.watchAll||V.watch.has(L)||[...V.watch].some(K=>L.startsWith(K)&&/^\.\w+/.test(L.slice(K.length))));const iterateFieldsByAction=(L,V,G,K)=>{for(const ee of G||Object.keys(L)){const te=get(L,ee);if(te){const{_f:re,...ce}=te;if(re){if(re.refs&&re.refs[0]&&V(re.refs[0],ee)&&!K)break;if(re.ref&&V(re.ref,re.name)&&!K)break}else isObject$5(ce)&&iterateFieldsByAction(ce,V)}}};var updateFieldArrayRootError=(L,V,G)=>{const K=compact(get(L,G));return set(K,"root",V[G]),set(L,G,K),L},isFileInput=L=>L.type==="file",isFunction$1=L=>typeof L=="function",isHTMLElement=L=>{if(!isWeb)return!1;const V=L?L.ownerDocument:0;return L instanceof(V&&V.defaultView?V.defaultView.HTMLElement:HTMLElement)},isMessage=L=>isString$1(L),isRadioInput=L=>L.type==="radio",isRegex=L=>L instanceof RegExp;const defaultResult={value:!1,isValid:!1},validResult={value:!0,isValid:!0};var getCheckboxValue=L=>{if(Array.isArray(L)){if(L.length>1){const V=L.filter(G=>G&&G.checked&&!G.disabled).map(G=>G.value);return{value:V,isValid:!!V.length}}return L[0].checked&&!L[0].disabled?L[0].attributes&&!isUndefined(L[0].attributes.value)?isUndefined(L[0].value)||L[0].value===""?validResult:{value:L[0].value,isValid:!0}:validResult:defaultResult}return defaultResult};const defaultReturn={isValid:!1,value:null};var getRadioValue=L=>Array.isArray(L)?L.reduce((V,G)=>G&&G.checked&&!G.disabled?{isValid:!0,value:G.value}:V,defaultReturn):defaultReturn;function getValidateError(L,V,G="validate"){if(isMessage(L)||Array.isArray(L)&&L.every(isMessage)||isBoolean$1(L)&&!L)return{type:G,message:isMessage(L)?L:"",ref:V}}var getValueAndMessage=L=>isObject$5(L)&&!isRegex(L)?L:{value:L,message:""},validateField=async(L,V,G,K,ee)=>{const{ref:te,refs:re,required:ce,maxLength:ue,minLength:de,min:ve,max:st,pattern:Ae,validate:at,name:ot,valueAsNumber:rt,mount:ft,disabled:Oe}=L._f,nt=get(V,ot);if(!ft||Oe)return{};const it=re?re[0]:te,lt=Ft=>{K&&it.reportValidity&&(it.setCustomValidity(isBoolean$1(Ft)?"":Ft||""),it.reportValidity())},ct={},ut=isRadioInput(te),bt=isCheckBoxInput(te),gt=ut||bt,Pt=(rt||isFileInput(te))&&isUndefined(te.value)&&isUndefined(nt)||isHTMLElement(te)&&te.value===""||nt===""||Array.isArray(nt)&&!nt.length,Nt=appendErrors.bind(null,ot,G,ct),Ot=(Ft,jt,Bt,At=INPUT_VALIDATION_RULES.maxLength,$t=INPUT_VALIDATION_RULES.minLength)=>{const Ct=Ft?jt:Bt;ct[ot]={type:Ft?At:$t,message:Ct,ref:te,...Nt(Ft?At:$t,Ct)}};if(ee?!Array.isArray(nt)||!nt.length:ce&&(!gt&&(Pt||isNullOrUndefined(nt))||isBoolean$1(nt)&&!nt||bt&&!getCheckboxValue(re).isValid||ut&&!getRadioValue(re).isValid)){const{value:Ft,message:jt}=isMessage(ce)?{value:!!ce,message:ce}:getValueAndMessage(ce);if(Ft&&(ct[ot]={type:INPUT_VALIDATION_RULES.required,message:jt,ref:it,...Nt(INPUT_VALIDATION_RULES.required,jt)},!G))return lt(jt),ct}if(!Pt&&(!isNullOrUndefined(ve)||!isNullOrUndefined(st))){let Ft,jt;const Bt=getValueAndMessage(st),At=getValueAndMessage(ve);if(!isNullOrUndefined(nt)&&!isNaN(nt)){const $t=te.valueAsNumber||nt&&+nt;isNullOrUndefined(Bt.value)||(Ft=$t>Bt.value),isNullOrUndefined(At.value)||(jt=$t<At.value)}else{const $t=te.valueAsDate||new Date(nt),Ct=kt=>new Date(new Date().toDateString()+" "+kt),dt=te.type=="time",mt=te.type=="week";isString$1(Bt.value)&&nt&&(Ft=dt?Ct(nt)>Ct(Bt.value):mt?nt>Bt.value:$t>new Date(Bt.value)),isString$1(At.value)&&nt&&(jt=dt?Ct(nt)<Ct(At.value):mt?nt<At.value:$t<new Date(At.value))}if((Ft||jt)&&(Ot(!!Ft,Bt.message,At.message,INPUT_VALIDATION_RULES.max,INPUT_VALIDATION_RULES.min),!G))return lt(ct[ot].message),ct}if((ue||de)&&!Pt&&(isString$1(nt)||ee&&Array.isArray(nt))){const Ft=getValueAndMessage(ue),jt=getValueAndMessage(de),Bt=!isNullOrUndefined(Ft.value)&&nt.length>+Ft.value,At=!isNullOrUndefined(jt.value)&&nt.length<+jt.value;if((Bt||At)&&(Ot(Bt,Ft.message,jt.message),!G))return lt(ct[ot].message),ct}if(Ae&&!Pt&&isString$1(nt)){const{value:Ft,message:jt}=getValueAndMessage(Ae);if(isRegex(Ft)&&!nt.match(Ft)&&(ct[ot]={type:INPUT_VALIDATION_RULES.pattern,message:jt,ref:te,...Nt(INPUT_VALIDATION_RULES.pattern,jt)},!G))return lt(jt),ct}if(at){if(isFunction$1(at)){const Ft=await at(nt,V),jt=getValidateError(Ft,it);if(jt&&(ct[ot]={...jt,...Nt(INPUT_VALIDATION_RULES.validate,jt.message)},!G))return lt(jt.message),ct}else if(isObject$5(at)){let Ft={};for(const jt in at){if(!isEmptyObject(Ft)&&!G)break;const Bt=getValidateError(await at[jt](nt,V),it,jt);Bt&&(Ft={...Bt,...Nt(jt,Bt.message)},lt(Bt.message),G&&(ct[ot]=Ft))}if(!isEmptyObject(Ft)&&(ct[ot]={ref:it,...Ft},!G))return ct}}return lt(!0),ct};function baseGet$2(L,V){const G=V.slice(0,-1).length;let K=0;for(;K<G;)L=isUndefined(L)?K++:L[V[K++]];return L}function isEmptyArray(L){for(const V in L)if(L.hasOwnProperty(V)&&!isUndefined(L[V]))return!1;return!0}function unset(L,V){const G=Array.isArray(V)?V:isKey(V)?[V]:stringToPath(V),K=G.length===1?L:baseGet$2(L,G),ee=G.length-1,te=G[ee];return K&&delete K[te],ee!==0&&(isObject$5(K)&&isEmptyObject(K)||Array.isArray(K)&&isEmptyArray(K))&&unset(L,G.slice(0,-1)),L}function createSubject(){let L=[];return{get observers(){return L},next:ee=>{for(const te of L)te.next&&te.next(ee)},subscribe:ee=>(L.push(ee),{unsubscribe:()=>{L=L.filter(te=>te!==ee)}}),unsubscribe:()=>{L=[]}}}var isPrimitive=L=>isNullOrUndefined(L)||!isObjectType(L);function deepEqual(L,V){if(isPrimitive(L)||isPrimitive(V))return L===V;if(isDateObject(L)&&isDateObject(V))return L.getTime()===V.getTime();const G=Object.keys(L),K=Object.keys(V);if(G.length!==K.length)return!1;for(const ee of G){const te=L[ee];if(!K.includes(ee))return!1;if(ee!=="ref"){const re=V[ee];if(isDateObject(te)&&isDateObject(re)||isObject$5(te)&&isObject$5(re)||Array.isArray(te)&&Array.isArray(re)?!deepEqual(te,re):te!==re)return!1}}return!0}var isMultipleSelect=L=>L.type==="select-multiple",isRadioOrCheckbox=L=>isRadioInput(L)||isCheckBoxInput(L),live=L=>isHTMLElement(L)&&L.isConnected,objectHasFunction=L=>{for(const V in L)if(isFunction$1(L[V]))return!0;return!1};function markFieldsDirty(L,V={}){const G=Array.isArray(L);if(isObject$5(L)||G)for(const K in L)Array.isArray(L[K])||isObject$5(L[K])&&!objectHasFunction(L[K])?(V[K]=Array.isArray(L[K])?[]:{},markFieldsDirty(L[K],V[K])):isNullOrUndefined(L[K])||(V[K]=!0);return V}function getDirtyFieldsFromDefaultValues(L,V,G){const K=Array.isArray(L);if(isObject$5(L)||K)for(const ee in L)Array.isArray(L[ee])||isObject$5(L[ee])&&!objectHasFunction(L[ee])?isUndefined(V)||isPrimitive(G[ee])?G[ee]=Array.isArray(L[ee])?markFieldsDirty(L[ee],[]):{...markFieldsDirty(L[ee])}:getDirtyFieldsFromDefaultValues(L[ee],isNullOrUndefined(V)?{}:V[ee],G[ee]):G[ee]=!deepEqual(L[ee],V[ee]);return G}var getDirtyFields=(L,V)=>getDirtyFieldsFromDefaultValues(L,V,markFieldsDirty(V)),getFieldValueAs=(L,{valueAsNumber:V,valueAsDate:G,setValueAs:K})=>isUndefined(L)?L:V?L===""?NaN:L&&+L:G&&isString$1(L)?new Date(L):K?K(L):L;function getFieldValue(L){const V=L.ref;if(!(L.refs?L.refs.every(G=>G.disabled):V.disabled))return isFileInput(V)?V.files:isRadioInput(V)?getRadioValue(L.refs).value:isMultipleSelect(V)?[...V.selectedOptions].map(({value:G})=>G):isCheckBoxInput(V)?getCheckboxValue(L.refs).value:getFieldValueAs(isUndefined(V.value)?L.ref.value:V.value,L)}var getResolverOptions=(L,V,G,K)=>{const ee={};for(const te of L){const re=get(V,te);re&&set(ee,te,re._f)}return{criteriaMode:G,names:[...L],fields:ee,shouldUseNativeValidation:K}},getRuleValue=L=>isUndefined(L)?L:isRegex(L)?L.source:isObject$5(L)?isRegex(L.value)?L.value.source:L.value:L,hasValidation=L=>L.mount&&(L.required||L.min||L.max||L.maxLength||L.minLength||L.pattern||L.validate);function schemaErrorLookup(L,V,G){const K=get(L,G);if(K||isKey(G))return{error:K,name:G};const ee=G.split(".");for(;ee.length;){const te=ee.join("."),re=get(V,te),ce=get(L,te);if(re&&!Array.isArray(re)&&G!==te)return{name:G};if(ce&&ce.type)return{name:te,error:ce};ee.pop()}return{name:G}}var skipValidation=(L,V,G,K,ee)=>ee.isOnAll?!1:!G&&ee.isOnTouch?!(V||L):(G?K.isOnBlur:ee.isOnBlur)?!L:(G?K.isOnChange:ee.isOnChange)?L:!0,unsetEmptyArray=(L,V)=>!compact(get(L,V)).length&&unset(L,V);const defaultOptions$1={mode:VALIDATION_MODE.onSubmit,reValidateMode:VALIDATION_MODE.onChange,shouldFocusError:!0};function createFormControl(L={},V){let G={...defaultOptions$1,...L},K={submitCount:0,isDirty:!1,isLoading:isFunction$1(G.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},errors:{},disabled:!1},ee={},te=isObject$5(G.defaultValues)||isObject$5(G.values)?cloneObject(G.defaultValues||G.values)||{}:{},re=G.shouldUnregister?{}:cloneObject(te),ce={action:!1,mount:!1,watch:!1},ue={mount:new Set,unMount:new Set,array:new Set,watch:new Set},de,ve=0;const st={isDirty:!1,dirtyFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},Ae={values:createSubject(),array:createSubject(),state:createSubject()},at=L.resetOptions&&L.resetOptions.keepDirtyValues,ot=getValidationModes(G.mode),rt=getValidationModes(G.reValidateMode),ft=G.criteriaMode===VALIDATION_MODE.all,Oe=Lt=>Gt=>{clearTimeout(ve),ve=setTimeout(Lt,Gt)},nt=async Lt=>{if(st.isValid||Lt){const Gt=G.resolver?isEmptyObject((await Pt()).errors):await Ot(ee,!0);Gt!==K.isValid&&Ae.state.next({isValid:Gt})}},it=Lt=>st.isValidating&&Ae.state.next({isValidating:Lt}),lt=(Lt,Gt=[],Xt,ar,rr=!0,er=!0)=>{if(ar&&Xt){if(ce.action=!0,er&&Array.isArray(get(ee,Lt))){const mr=Xt(get(ee,Lt),ar.argA,ar.argB);rr&&set(ee,Lt,mr)}if(er&&Array.isArray(get(K.errors,Lt))){const mr=Xt(get(K.errors,Lt),ar.argA,ar.argB);rr&&set(K.errors,Lt,mr),unsetEmptyArray(K.errors,Lt)}if(st.touchedFields&&er&&Array.isArray(get(K.touchedFields,Lt))){const mr=Xt(get(K.touchedFields,Lt),ar.argA,ar.argB);rr&&set(K.touchedFields,Lt,mr)}st.dirtyFields&&(K.dirtyFields=getDirtyFields(te,re)),Ae.state.next({name:Lt,isDirty:jt(Lt,Gt),dirtyFields:K.dirtyFields,errors:K.errors,isValid:K.isValid})}else set(re,Lt,Gt)},ct=(Lt,Gt)=>{set(K.errors,Lt,Gt),Ae.state.next({errors:K.errors})},ut=(Lt,Gt,Xt,ar)=>{const rr=get(ee,Lt);if(rr){const er=get(re,Lt,isUndefined(Xt)?get(te,Lt):Xt);isUndefined(er)||ar&&ar.defaultChecked||Gt?set(re,Lt,Gt?er:getFieldValue(rr._f)):$t(Lt,er),ce.mount&&nt()}},bt=(Lt,Gt,Xt,ar,rr)=>{let er=!1,mr=!1;const $r={name:Lt};if(!Xt||ar){st.isDirty&&(mr=K.isDirty,K.isDirty=$r.isDirty=jt(),er=mr!==$r.isDirty);const qt=deepEqual(get(te,Lt),Gt);mr=get(K.dirtyFields,Lt),qt?unset(K.dirtyFields,Lt):set(K.dirtyFields,Lt,!0),$r.dirtyFields=K.dirtyFields,er=er||st.dirtyFields&&mr!==!qt}if(Xt){const qt=get(K.touchedFields,Lt);qt||(set(K.touchedFields,Lt,Xt),$r.touchedFields=K.touchedFields,er=er||st.touchedFields&&qt!==Xt)}return er&&rr&&Ae.state.next($r),er?$r:{}},gt=(Lt,Gt,Xt,ar)=>{const rr=get(K.errors,Lt),er=st.isValid&&isBoolean$1(Gt)&&K.isValid!==Gt;if(L.delayError&&Xt?(de=Oe(()=>ct(Lt,Xt)),de(L.delayError)):(clearTimeout(ve),de=null,Xt?set(K.errors,Lt,Xt):unset(K.errors,Lt)),(Xt?!deepEqual(rr,Xt):rr)||!isEmptyObject(ar)||er){const mr={...ar,...er&&isBoolean$1(Gt)?{isValid:Gt}:{},errors:K.errors,name:Lt};K={...K,...mr},Ae.state.next(mr)}it(!1)},Pt=async Lt=>G.resolver(re,G.context,getResolverOptions(Lt||ue.mount,ee,G.criteriaMode,G.shouldUseNativeValidation)),Nt=async Lt=>{const{errors:Gt}=await Pt(Lt);if(Lt)for(const Xt of Lt){const ar=get(Gt,Xt);ar?set(K.errors,Xt,ar):unset(K.errors,Xt)}else K.errors=Gt;return Gt},Ot=async(Lt,Gt,Xt={valid:!0})=>{for(const ar in Lt){const rr=Lt[ar];if(rr){const{_f:er,...mr}=rr;if(er){const $r=ue.array.has(er.name),qt=await validateField(rr,re,ft,G.shouldUseNativeValidation&&!Gt,$r);if(qt[er.name]&&(Xt.valid=!1,Gt))break;!Gt&&(get(qt,er.name)?$r?updateFieldArrayRootError(K.errors,qt,er.name):set(K.errors,er.name,qt[er.name]):unset(K.errors,er.name))}mr&&await Ot(mr,Gt,Xt)}}return Xt.valid},Ft=()=>{for(const Lt of ue.unMount){const Gt=get(ee,Lt);Gt&&(Gt._f.refs?Gt._f.refs.every(Xt=>!live(Xt)):!live(Gt._f.ref))&&lr(Lt)}ue.unMount=new Set},jt=(Lt,Gt)=>(Lt&&Gt&&set(re,Lt,Gt),!deepEqual(Kt(),te)),Bt=(Lt,Gt,Xt)=>generateWatchOutput(Lt,ue,{...ce.mount?re:isUndefined(Gt)?te:isString$1(Lt)?{[Lt]:Gt}:Gt},Xt,Gt),At=Lt=>compact(get(ce.mount?re:te,Lt,L.shouldUnregister?get(te,Lt,[]):[])),$t=(Lt,Gt,Xt={})=>{const ar=get(ee,Lt);let rr=Gt;if(ar){const er=ar._f;er&&(!er.disabled&&set(re,Lt,getFieldValueAs(Gt,er)),rr=isHTMLElement(er.ref)&&isNullOrUndefined(Gt)?"":Gt,isMultipleSelect(er.ref)?[...er.ref.options].forEach(mr=>mr.selected=rr.includes(mr.value)):er.refs?isCheckBoxInput(er.ref)?er.refs.length>1?er.refs.forEach(mr=>(!mr.defaultChecked||!mr.disabled)&&(mr.checked=Array.isArray(rr)?!!rr.find($r=>$r===mr.value):rr===mr.value)):er.refs[0]&&(er.refs[0].checked=!!rr):er.refs.forEach(mr=>mr.checked=mr.value===rr):isFileInput(er.ref)?er.ref.value="":(er.ref.value=rr,er.ref.type||Ae.values.next({name:Lt,values:{...re}})))}(Xt.shouldDirty||Xt.shouldTouch)&&bt(Lt,rr,Xt.shouldTouch,Xt.shouldDirty,!0),Xt.shouldValidate&&It(Lt)},Ct=(Lt,Gt,Xt)=>{for(const ar in Gt){const rr=Gt[ar],er=`${Lt}.${ar}`,mr=get(ee,er);(ue.array.has(Lt)||!isPrimitive(rr)||mr&&!mr._f)&&!isDateObject(rr)?Ct(er,rr,Xt):$t(er,rr,Xt)}},dt=(Lt,Gt,Xt={})=>{const ar=get(ee,Lt),rr=ue.array.has(Lt),er=cloneObject(Gt);set(re,Lt,er),rr?(Ae.array.next({name:Lt,values:{...re}}),(st.isDirty||st.dirtyFields)&&Xt.shouldDirty&&Ae.state.next({name:Lt,dirtyFields:getDirtyFields(te,re),isDirty:jt(Lt,er)})):ar&&!ar._f&&!isNullOrUndefined(er)?Ct(Lt,er,Xt):$t(Lt,er,Xt),isWatched(Lt,ue)&&Ae.state.next({...K}),Ae.values.next({name:Lt,values:{...re}}),!ce.mount&&V()},mt=async Lt=>{const Gt=Lt.target;let Xt=Gt.name,ar=!0;const rr=get(ee,Xt),er=()=>Gt.type?getFieldValue(rr._f):getEventValue(Lt),mr=$r=>{ar=Number.isNaN($r)||$r===get(re,Xt,$r)};if(rr){let $r,qt;const zt=er(),Qt=Lt.type===EVENTS.BLUR||Lt.type===EVENTS.FOCUS_OUT,Ut=!hasValidation(rr._f)&&!G.resolver&&!get(K.errors,Xt)&&!rr._f.deps||skipValidation(Qt,get(K.touchedFields,Xt),K.isSubmitted,rt,ot),or=isWatched(Xt,ue,Qt);set(re,Xt,zt),Qt?(rr._f.onBlur&&rr._f.onBlur(Lt),de&&de(0)):rr._f.onChange&&rr._f.onChange(Lt);const hr=bt(Xt,zt,Qt,!1),br=!isEmptyObject(hr)||or;if(!Qt&&Ae.values.next({name:Xt,type:Lt.type,values:{...re}}),Ut)return st.isValid&&nt(),br&&Ae.state.next({name:Xt,...or?{}:hr});if(!Qt&&or&&Ae.state.next({...K}),it(!0),G.resolver){const{errors:Wt}=await Pt([Xt]);if(mr(zt),ar){const Zt=schemaErrorLookup(K.errors,ee,Xt),dr=schemaErrorLookup(Wt,ee,Zt.name||Xt);$r=dr.error,Xt=dr.name,qt=isEmptyObject(Wt)}}else $r=(await validateField(rr,re,ft,G.shouldUseNativeValidation))[Xt],mr(zt),ar&&($r?qt=!1:st.isValid&&(qt=await Ot(ee,!0)));ar&&(rr._f.deps&&It(rr._f.deps),gt(Xt,qt,$r,hr))}},kt=(Lt,Gt)=>{if(get(K.errors,Gt)&&Lt.focus)return Lt.focus(),1},It=async(Lt,Gt={})=>{let Xt,ar;const rr=convertToArrayPayload(Lt);if(it(!0),G.resolver){const er=await Nt(isUndefined(Lt)?Lt:rr);Xt=isEmptyObject(er),ar=Lt?!rr.some(mr=>get(er,mr)):Xt}else Lt?(ar=(await Promise.all(rr.map(async er=>{const mr=get(ee,er);return await Ot(mr&&mr._f?{[er]:mr}:mr)}))).every(Boolean),!(!ar&&!K.isValid)&&nt()):ar=Xt=await Ot(ee);return Ae.state.next({...!isString$1(Lt)||st.isValid&&Xt!==K.isValid?{}:{name:Lt},...G.resolver||!Lt?{isValid:Xt}:{},errors:K.errors,isValidating:!1}),Gt.shouldFocus&&!ar&&iterateFieldsByAction(ee,kt,Lt?rr:ue.mount),ar},Kt=Lt=>{const Gt={...te,...ce.mount?re:{}};return isUndefined(Lt)?Gt:isString$1(Lt)?get(Gt,Lt):Lt.map(Xt=>get(Gt,Xt))},Yt=(Lt,Gt)=>({invalid:!!get((Gt||K).errors,Lt),isDirty:!!get((Gt||K).dirtyFields,Lt),isTouched:!!get((Gt||K).touchedFields,Lt),error:get((Gt||K).errors,Lt)}),nr=Lt=>{Lt&&convertToArrayPayload(Lt).forEach(Gt=>unset(K.errors,Gt)),Ae.state.next({errors:Lt?K.errors:{}})},ur=(Lt,Gt,Xt)=>{const ar=(get(ee,Lt,{_f:{}})._f||{}).ref;set(K.errors,Lt,{...Gt,ref:ar}),Ae.state.next({name:Lt,errors:K.errors,isValid:!1}),Xt&&Xt.shouldFocus&&ar&&ar.focus&&ar.focus()},Vt=(Lt,Gt)=>isFunction$1(Lt)?Ae.values.subscribe({next:Xt=>Lt(Bt(void 0,Gt),Xt)}):Bt(Lt,Gt,!0),lr=(Lt,Gt={})=>{for(const Xt of Lt?convertToArrayPayload(Lt):ue.mount)ue.mount.delete(Xt),ue.array.delete(Xt),Gt.keepValue||(unset(ee,Xt),unset(re,Xt)),!Gt.keepError&&unset(K.errors,Xt),!Gt.keepDirty&&unset(K.dirtyFields,Xt),!Gt.keepTouched&&unset(K.touchedFields,Xt),!G.shouldUnregister&&!Gt.keepDefaultValue&&unset(te,Xt);Ae.values.next({values:{...re}}),Ae.state.next({...K,...Gt.keepDirty?{isDirty:jt()}:{}}),!Gt.keepIsValid&&nt()},sr=({disabled:Lt,name:Gt,field:Xt,fields:ar,value:rr})=>{if(isBoolean$1(Lt)){const er=Lt?void 0:isUndefined(rr)?getFieldValue(Xt?Xt._f:get(ar,Gt)._f):rr;set(re,Gt,er),bt(Gt,er,!1,!1,!0)}},pr=(Lt,Gt={})=>{let Xt=get(ee,Lt);const ar=isBoolean$1(Gt.disabled);return set(ee,Lt,{...Xt||{},_f:{...Xt&&Xt._f?Xt._f:{ref:{name:Lt}},name:Lt,mount:!0,...Gt}}),ue.mount.add(Lt),Xt?sr({field:Xt,disabled:Gt.disabled,name:Lt}):ut(Lt,!0,Gt.value),{...ar?{disabled:Gt.disabled}:{},...G.progressive?{required:!!Gt.required,min:getRuleValue(Gt.min),max:getRuleValue(Gt.max),minLength:getRuleValue(Gt.minLength),maxLength:getRuleValue(Gt.maxLength),pattern:getRuleValue(Gt.pattern)}:{},name:Lt,onChange:mt,onBlur:mt,ref:rr=>{if(rr){pr(Lt,Gt),Xt=get(ee,Lt);const er=isUndefined(rr.value)&&rr.querySelectorAll&&rr.querySelectorAll("input,select,textarea")[0]||rr,mr=isRadioOrCheckbox(er),$r=Xt._f.refs||[];if(mr?$r.find(qt=>qt===er):er===Xt._f.ref)return;set(ee,Lt,{_f:{...Xt._f,...mr?{refs:[...$r.filter(live),er,...Array.isArray(get(te,Lt))?[{}]:[]],ref:{type:er.type,name:Lt}}:{ref:er}}}),ut(Lt,!1,void 0,er)}else Xt=get(ee,Lt,{}),Xt._f&&(Xt._f.mount=!1),(G.shouldUnregister||Gt.shouldUnregister)&&!(isNameInFieldArray(ue.array,Lt)&&ce.action)&&ue.unMount.add(Lt)}}},gr=()=>G.shouldFocusError&&iterateFieldsByAction(ee,kt,ue.mount),ir=Lt=>{isBoolean$1(Lt)&&(Ae.state.next({disabled:Lt}),iterateFieldsByAction(ee,Gt=>{Gt.disabled=Lt},0,!1))},Jt=(Lt,Gt)=>async Xt=>{Xt&&(Xt.preventDefault&&Xt.preventDefault(),Xt.persist&&Xt.persist());let ar=cloneObject(re);if(Ae.state.next({isSubmitting:!0}),G.resolver){const{errors:rr,values:er}=await Pt();K.errors=rr,ar=er}else await Ot(ee);unset(K.errors,"root"),isEmptyObject(K.errors)?(Ae.state.next({errors:{}}),await Lt(ar,Xt)):(Gt&&await Gt({...K.errors},Xt),gr(),setTimeout(gr)),Ae.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:isEmptyObject(K.errors),submitCount:K.submitCount+1,errors:K.errors})},cr=(Lt,Gt={})=>{get(ee,Lt)&&(isUndefined(Gt.defaultValue)?dt(Lt,get(te,Lt)):(dt(Lt,Gt.defaultValue),set(te,Lt,Gt.defaultValue)),Gt.keepTouched||unset(K.touchedFields,Lt),Gt.keepDirty||(unset(K.dirtyFields,Lt),K.isDirty=Gt.defaultValue?jt(Lt,get(te,Lt)):jt()),Gt.keepError||(unset(K.errors,Lt),st.isValid&&nt()),Ae.state.next({...K}))},tr=(Lt,Gt={})=>{const Xt=Lt?cloneObject(Lt):te,ar=cloneObject(Xt),rr=Lt&&!isEmptyObject(Lt)?ar:te;if(Gt.keepDefaultValues||(te=Xt),!Gt.keepValues){if(Gt.keepDirtyValues||at)for(const er of ue.mount)get(K.dirtyFields,er)?set(rr,er,get(re,er)):dt(er,get(rr,er));else{if(isWeb&&isUndefined(Lt))for(const er of ue.mount){const mr=get(ee,er);if(mr&&mr._f){const $r=Array.isArray(mr._f.refs)?mr._f.refs[0]:mr._f.ref;if(isHTMLElement($r)){const qt=$r.closest("form");if(qt){qt.reset();break}}}}ee={}}re=L.shouldUnregister?Gt.keepDefaultValues?cloneObject(te):{}:cloneObject(rr),Ae.array.next({values:{...rr}}),Ae.values.next({values:{...rr}})}ue={mount:new Set,unMount:new Set,array:new Set,watch:new Set,watchAll:!1,focus:""},!ce.mount&&V(),ce.mount=!st.isValid||!!Gt.keepIsValid,ce.watch=!!L.shouldUnregister,Ae.state.next({submitCount:Gt.keepSubmitCount?K.submitCount:0,isDirty:Gt.keepDirty?K.isDirty:!!(Gt.keepDefaultValues&&!deepEqual(Lt,te)),isSubmitted:Gt.keepIsSubmitted?K.isSubmitted:!1,dirtyFields:Gt.keepDirtyValues?K.dirtyFields:Gt.keepDefaultValues&&Lt?getDirtyFields(te,Lt):{},touchedFields:Gt.keepTouched?K.touchedFields:{},errors:Gt.keepErrors?K.errors:{},isSubmitSuccessful:Gt.keepIsSubmitSuccessful?K.isSubmitSuccessful:!1,isSubmitting:!1})},xr=(Lt,Gt)=>tr(isFunction$1(Lt)?Lt(re):Lt,Gt);return{control:{register:pr,unregister:lr,getFieldState:Yt,handleSubmit:Jt,setError:ur,_executeSchema:Pt,_getWatch:Bt,_getDirty:jt,_updateValid:nt,_removeUnmounted:Ft,_updateFieldArray:lt,_updateDisabledField:sr,_getFieldArray:At,_reset:tr,_resetDefaultValues:()=>isFunction$1(G.defaultValues)&&G.defaultValues().then(Lt=>{xr(Lt,G.resetOptions),Ae.state.next({isLoading:!1})}),_updateFormState:Lt=>{K={...K,...Lt}},_disableForm:ir,_subjects:Ae,_proxyFormState:st,get _fields(){return ee},get _formValues(){return re},get _state(){return ce},set _state(Lt){ce=Lt},get _defaultValues(){return te},get _names(){return ue},set _names(Lt){ue=Lt},get _formState(){return K},set _formState(Lt){K=Lt},get _options(){return G},set _options(Lt){G={...G,...Lt}}},trigger:It,register:pr,handleSubmit:Jt,watch:Vt,setValue:dt,getValues:Kt,reset:xr,resetField:cr,clearErrors:nr,unregister:lr,setError:ur,setFocus:(Lt,Gt={})=>{const Xt=get(ee,Lt),ar=Xt&&Xt._f;if(ar){const rr=ar.refs?ar.refs[0]:ar.ref;rr.focus&&(rr.focus(),Gt.shouldSelect&&rr.select())}},getFieldState:Yt}}function useForm(L={}){const V=require$$0.useRef(),G=require$$0.useRef(),[K,ee]=require$$0.useState({isDirty:!1,isValidating:!1,isLoading:isFunction$1(L.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},errors:{},disabled:!1,defaultValues:isFunction$1(L.defaultValues)?void 0:L.defaultValues});V.current||(V.current={...createFormControl(L,()=>ee(re=>({...re}))),formState:K});const te=V.current.control;return te._options=L,useSubscribe({subject:te._subjects.state,next:re=>{shouldRenderFormState(re,te._proxyFormState,te._updateFormState,!0)&&ee({...te._formState})}}),require$$0.useEffect(()=>te._disableForm(L.disabled),[te,L.disabled]),require$$0.useEffect(()=>{if(te._proxyFormState.isDirty){const re=te._getDirty();re!==K.isDirty&&te._subjects.state.next({isDirty:re})}},[te,K.isDirty]),require$$0.useEffect(()=>{L.values&&!deepEqual(L.values,G.current)?(te._reset(L.values,te._options.resetOptions),G.current=L.values):te._resetDefaultValues()},[L.values,te]),require$$0.useEffect(()=>{te._state.mount||(te._updateValid(),te._state.mount=!0),te._state.watch&&(te._state.watch=!1,te._subjects.state.next({...te._formState})),te._removeUnmounted()}),V.current.formState=getProxyFormState(K,te),V.current}var classnames={exports:{}};/*!
	Copyright (c) 2018 Jed Watson.
	Licensed under the MIT License (MIT), see
	http://jedwatson.github.io/classnames
*/(function(L){(function(){var V={}.hasOwnProperty;function G(){for(var K=[],ee=0;ee<arguments.length;ee++){var te=arguments[ee];if(!!te){var re=typeof te;if(re==="string"||re==="number")K.push(te);else if(Array.isArray(te)){if(te.length){var ce=G.apply(null,te);ce&&K.push(ce)}}else if(re==="object"){if(te.toString!==Object.prototype.toString&&!te.toString.toString().includes("[native code]")){K.push(te.toString());continue}for(var ue in te)V.call(te,ue)&&te[ue]&&K.push(ue)}}}return K.join(" ")}L.exports?(G.default=G,L.exports=G):window.classNames=G})()})(classnames);var cls=classnames.exports,warned={},preMessage=function(V){};function warning(L,V){}function note(L,V){}function resetWarned(){warned={}}function call$1(L,V,G){!V&&!warned[G]&&(L(!1,G),warned[G]=!0)}function warningOnce(L,V){call$1(warning,L,V)}function noteOnce(L,V){call$1(note,L,V)}warningOnce.preMessage=preMessage;warningOnce.resetWarned=resetWarned;warningOnce.noteOnce=noteOnce;var index="",slider="";const defaultFeatures={singleProductRedirect:!0,showCartSteps:!0,skipCartView:!1,showProductsInSummary:!1,showAddToCartNotification:!0,showLineItemTotal:!1,showQuickCart:!1},features={"Digital Download":{showCartSteps:!1,skipCartView:!0,singleProductRedirect:!0,showProductsInSummary:!0},"Quick Order":{showCartSteps:!1,skipCartView:!0,showProductsInSummary:!1,showAddToCartNotification:!1,showQuickCart:!0},Wholesale:{showCartSteps:!1,skipCartView:!0,showProductsInSummary:!1,showAddToCartNotification:!1,showQuickCart:!0,showLineItemTotal:!0}},getTemplateFeatures=L=>V=>features[L]&&V in features[L]?features[L][V]:defaultFeatures[V],useTemplateFeature=()=>{const L=useStoreData(),V=get$1(L,"templateName","");return{checkFeature:react$1.exports.useMemo(()=>getTemplateFeatures(V),[V]),templateName:V}};function ArrowRightIcon({title:L,titleId:V,...G},K){return react$1.exports.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:K,"aria-labelledby":V},G),L?react$1.exports.createElement("title",{id:V},L):null,react$1.exports.createElement("path",{fillRule:"evenodd",d:"M3 10a.75.75 0 01.75-.75h10.638L10.23 5.29a.75.75 0 111.04-1.08l5.5 5.25a.75.75 0 010 1.08l-5.5 5.25a.75.75 0 11-1.04-1.08l4.158-3.96H3.75A.75.75 0 013 10z",clipRule:"evenodd"}))}const ForwardRef$3=react$1.exports.forwardRef(ArrowRightIcon);var ArrowRightIcon$1=ForwardRef$3;function Squares2X2Icon({title:L,titleId:V,...G},K){return react$1.exports.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:K,"aria-labelledby":V},G),L?react$1.exports.createElement("title",{id:V},L):null,react$1.exports.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M3.75 6A2.25 2.25 0 016 3.75h2.25A2.25 2.25 0 0110.5 6v2.25a2.25 2.25 0 01-2.25 2.25H6a2.25 2.25 0 01-2.25-2.25V6zM3.75 15.75A2.25 2.25 0 016 13.5h2.25a2.25 2.25 0 012.25 2.25V18a2.25 2.25 0 01-2.25 2.25H6A2.25 2.25 0 013.75 18v-2.25zM13.5 6a2.25 2.25 0 012.25-2.25H18A2.25 2.25 0 0120.25 6v2.25A2.25 2.25 0 0118 10.5h-2.25a2.25 2.25 0 01-2.25-2.25V6zM13.5 15.75a2.25 2.25 0 012.25-2.25H18a2.25 2.25 0 012.25 2.25V18A2.25 2.25 0 0118 20.25h-2.25A2.25 2.25 0 0113.5 18v-2.25z"}))}const ForwardRef$2=react$1.exports.forwardRef(Squares2X2Icon);var Squares2X2Icon$1=ForwardRef$2;function TrashIcon({title:L,titleId:V,...G},K){return react$1.exports.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:K,"aria-labelledby":V},G),L?react$1.exports.createElement("title",{id:V},L):null,react$1.exports.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M14.74 9l-.346 9m-4.788 0L9.26 9m9.968-3.21c.342.052.682.107 1.022.166m-1.022-.165L18.16 19.673a2.25 2.25 0 01-2.244 2.077H8.084a2.25 2.25 0 01-2.244-2.077L4.772 5.79m14.456 0a48.108 48.108 0 00-3.478-.397m-12 .562c.34-.059.68-.114 1.022-.165m0 0a48.11 48.11 0 013.478-.397m7.5 0v-.916c0-1.18-.91-2.164-2.09-2.201a51.964 51.964 0 00-3.32 0c-1.18.037-2.09 1.022-2.09 2.201v.916m7.5 0a48.667 48.667 0 00-7.5 0"}))}const ForwardRef$1=react$1.exports.forwardRef(TrashIcon);var TrashIcon$1=ForwardRef$1;function $e42e1063c40fb3ef$export$b9ecd428b558ff10(L,V,{checkForDefaultPrevented:G=!0}={}){return function(ee){if(L==null||L(ee),G===!1||!ee.defaultPrevented)return V==null?void 0:V(ee)}}function $6ed0406888f73fc4$var$setRef(L,V){typeof L=="function"?L(V):L!=null&&(L.current=V)}function $6ed0406888f73fc4$export$43e446d32b3d21af(...L){return V=>L.forEach(G=>$6ed0406888f73fc4$var$setRef(G,V))}function $6ed0406888f73fc4$export$c7b2cbe3552a0d05(...L){return react$1.exports.useCallback($6ed0406888f73fc4$export$43e446d32b3d21af(...L),L)}function $c512c27ab02ef895$export$50c7b4e9d9f19c1(L,V=[]){let G=[];function K(te,re){const ce=react$1.exports.createContext(re),ue=G.length;G=[...G,re];function de(st){const{scope:Ae,children:at,...ot}=st,rt=(Ae==null?void 0:Ae[L][ue])||ce,ft=react$1.exports.useMemo(()=>ot,Object.values(ot));return react$1.exports.createElement(rt.Provider,{value:ft},at)}function ve(st,Ae){const at=(Ae==null?void 0:Ae[L][ue])||ce,ot=react$1.exports.useContext(at);if(ot)return ot;if(re!==void 0)return re;throw new Error(`\`${st}\` must be used within \`${te}\``)}return de.displayName=te+"Provider",[de,ve]}const ee=()=>{const te=G.map(re=>react$1.exports.createContext(re));return function(ce){const ue=(ce==null?void 0:ce[L])||te;return react$1.exports.useMemo(()=>({[`__scope${L}`]:{...ce,[L]:ue}}),[ce,ue])}};return ee.scopeName=L,[K,$c512c27ab02ef895$var$composeContextScopes(ee,...V)]}function $c512c27ab02ef895$var$composeContextScopes(...L){const V=L[0];if(L.length===1)return V;const G=()=>{const K=L.map(ee=>({useScope:ee(),scopeName:ee.scopeName}));return function(te){const re=K.reduce((ce,{useScope:ue,scopeName:de})=>{const st=ue(te)[`__scope${de}`];return{...ce,...st}},{});return react$1.exports.useMemo(()=>({[`__scope${V.scopeName}`]:re}),[re])}};return G.scopeName=V.scopeName,G}const $9f79659886946c16$export$e5c5a5f917a5871c=Boolean(globalThis==null?void 0:globalThis.document)?react$1.exports.useLayoutEffect:()=>{},$1746a345f3d73bb7$var$useReactId=$2AODx$react["useId".toString()]||(()=>{});let $1746a345f3d73bb7$var$count=0;function $1746a345f3d73bb7$export$f680877a34711e37(L){const[V,G]=react$1.exports.useState($1746a345f3d73bb7$var$useReactId());return $9f79659886946c16$export$e5c5a5f917a5871c(()=>{L||G(K=>K!=null?K:String($1746a345f3d73bb7$var$count++))},[L]),L||(V?`radix-${V}`:"")}function $b1b2314f5f9a1d84$export$25bec8c6f54ee79a(L){const V=react$1.exports.useRef(L);return react$1.exports.useEffect(()=>{V.current=L}),react$1.exports.useMemo(()=>(...G)=>{var K;return(K=V.current)===null||K===void 0?void 0:K.call(V,...G)},[])}function $71cd76cc60e0454e$export$6f32135080cb4c3({prop:L,defaultProp:V,onChange:G=()=>{}}){const[K,ee]=$71cd76cc60e0454e$var$useUncontrolledState({defaultProp:V,onChange:G}),te=L!==void 0,re=te?L:K,ce=$b1b2314f5f9a1d84$export$25bec8c6f54ee79a(G),ue=react$1.exports.useCallback(de=>{if(te){const st=typeof de=="function"?de(L):de;st!==L&&ce(st)}else ee(de)},[te,L,ee,ce]);return[re,ue]}function $71cd76cc60e0454e$var$useUncontrolledState({defaultProp:L,onChange:V}){const G=react$1.exports.useState(L),[K]=G,ee=react$1.exports.useRef(K),te=$b1b2314f5f9a1d84$export$25bec8c6f54ee79a(V);return react$1.exports.useEffect(()=>{ee.current!==K&&(te(K),ee.current=K)},[K,ee,te]),G}const $5e63c961fc1ce211$export$8c6ed5c666ac1360=react$1.exports.forwardRef((L,V)=>{const{children:G,...K}=L,ee=react$1.exports.Children.toArray(G),te=ee.find($5e63c961fc1ce211$var$isSlottable);if(te){const re=te.props.children,ce=ee.map(ue=>ue===te?react$1.exports.Children.count(re)>1?react$1.exports.Children.only(null):react$1.exports.isValidElement(re)?re.props.children:null:ue);return react$1.exports.createElement($5e63c961fc1ce211$var$SlotClone,_extends({},K,{ref:V}),react$1.exports.isValidElement(re)?react$1.exports.cloneElement(re,void 0,ce):null)}return react$1.exports.createElement($5e63c961fc1ce211$var$SlotClone,_extends({},K,{ref:V}),G)});$5e63c961fc1ce211$export$8c6ed5c666ac1360.displayName="Slot";const $5e63c961fc1ce211$var$SlotClone=react$1.exports.forwardRef((L,V)=>{const{children:G,...K}=L;return react$1.exports.isValidElement(G)?react$1.exports.cloneElement(G,{...$5e63c961fc1ce211$var$mergeProps(K,G.props),ref:V?$6ed0406888f73fc4$export$43e446d32b3d21af(V,G.ref):G.ref}):react$1.exports.Children.count(G)>1?react$1.exports.Children.only(null):null});$5e63c961fc1ce211$var$SlotClone.displayName="SlotClone";const $5e63c961fc1ce211$export$d9f1ccf0bdb05d45=({children:L})=>react$1.exports.createElement(react$1.exports.Fragment,null,L);function $5e63c961fc1ce211$var$isSlottable(L){return react$1.exports.isValidElement(L)&&L.type===$5e63c961fc1ce211$export$d9f1ccf0bdb05d45}function $5e63c961fc1ce211$var$mergeProps(L,V){const G={...V};for(const K in V){const ee=L[K],te=V[K];/^on[A-Z]/.test(K)?ee&&te?G[K]=(...ce)=>{te(...ce),ee(...ce)}:ee&&(G[K]=ee):K==="style"?G[K]={...ee,...te}:K==="className"&&(G[K]=[ee,te].filter(Boolean).join(" "))}return{...L,...G}}const $8927f6f2acc4f386$var$NODES=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],$8927f6f2acc4f386$export$250ffa63cdc0d034=$8927f6f2acc4f386$var$NODES.reduce((L,V)=>{const G=react$1.exports.forwardRef((K,ee)=>{const{asChild:te,...re}=K,ce=te?$5e63c961fc1ce211$export$8c6ed5c666ac1360:V;return react$1.exports.useEffect(()=>{window[Symbol.for("radix-ui")]=!0},[]),react$1.exports.createElement(ce,_extends({},re,{ref:ee}))});return G.displayName=`Primitive.${V}`,{...L,[V]:G}},{});function $8927f6f2acc4f386$export$6d1a0317bde7de7f(L,V){L&&reactDom.exports.flushSync(()=>L.dispatchEvent(V))}function $addc16e1bbe58fd0$export$3a72a57244d6e765(L,V=globalThis==null?void 0:globalThis.document){const G=$b1b2314f5f9a1d84$export$25bec8c6f54ee79a(L);react$1.exports.useEffect(()=>{const K=ee=>{ee.key==="Escape"&&G(ee)};return V.addEventListener("keydown",K),()=>V.removeEventListener("keydown",K)},[G,V])}const $5cb92bef7577960e$var$CONTEXT_UPDATE="dismissableLayer.update",$5cb92bef7577960e$var$POINTER_DOWN_OUTSIDE="dismissableLayer.pointerDownOutside",$5cb92bef7577960e$var$FOCUS_OUTSIDE="dismissableLayer.focusOutside";let $5cb92bef7577960e$var$originalBodyPointerEvents;const $5cb92bef7577960e$var$DismissableLayerContext=react$1.exports.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),$5cb92bef7577960e$export$177fb62ff3ec1f22=react$1.exports.forwardRef((L,V)=>{var G;const{disableOutsidePointerEvents:K=!1,onEscapeKeyDown:ee,onPointerDownOutside:te,onFocusOutside:re,onInteractOutside:ce,onDismiss:ue,...de}=L,ve=react$1.exports.useContext($5cb92bef7577960e$var$DismissableLayerContext),[st,Ae]=react$1.exports.useState(null),at=(G=st==null?void 0:st.ownerDocument)!==null&&G!==void 0?G:globalThis==null?void 0:globalThis.document,[,ot]=react$1.exports.useState({}),rt=$6ed0406888f73fc4$export$c7b2cbe3552a0d05(V,gt=>Ae(gt)),ft=Array.from(ve.layers),[Oe]=[...ve.layersWithOutsidePointerEventsDisabled].slice(-1),nt=ft.indexOf(Oe),it=st?ft.indexOf(st):-1,lt=ve.layersWithOutsidePointerEventsDisabled.size>0,ct=it>=nt,ut=$5cb92bef7577960e$var$usePointerDownOutside(gt=>{const Pt=gt.target,Nt=[...ve.branches].some(Ot=>Ot.contains(Pt));!ct||Nt||(te==null||te(gt),ce==null||ce(gt),gt.defaultPrevented||ue==null||ue())},at),bt=$5cb92bef7577960e$var$useFocusOutside(gt=>{const Pt=gt.target;[...ve.branches].some(Ot=>Ot.contains(Pt))||(re==null||re(gt),ce==null||ce(gt),gt.defaultPrevented||ue==null||ue())},at);return $addc16e1bbe58fd0$export$3a72a57244d6e765(gt=>{it===ve.layers.size-1&&(ee==null||ee(gt),!gt.defaultPrevented&&ue&&(gt.preventDefault(),ue()))},at),react$1.exports.useEffect(()=>{if(!!st)return K&&(ve.layersWithOutsidePointerEventsDisabled.size===0&&($5cb92bef7577960e$var$originalBodyPointerEvents=at.body.style.pointerEvents,at.body.style.pointerEvents="none"),ve.layersWithOutsidePointerEventsDisabled.add(st)),ve.layers.add(st),$5cb92bef7577960e$var$dispatchUpdate(),()=>{K&&ve.layersWithOutsidePointerEventsDisabled.size===1&&(at.body.style.pointerEvents=$5cb92bef7577960e$var$originalBodyPointerEvents)}},[st,at,K,ve]),react$1.exports.useEffect(()=>()=>{!st||(ve.layers.delete(st),ve.layersWithOutsidePointerEventsDisabled.delete(st),$5cb92bef7577960e$var$dispatchUpdate())},[st,ve]),react$1.exports.useEffect(()=>{const gt=()=>ot({});return document.addEventListener($5cb92bef7577960e$var$CONTEXT_UPDATE,gt),()=>document.removeEventListener($5cb92bef7577960e$var$CONTEXT_UPDATE,gt)},[]),react$1.exports.createElement($8927f6f2acc4f386$export$250ffa63cdc0d034.div,_extends({},de,{ref:rt,style:{pointerEvents:lt?ct?"auto":"none":void 0,...L.style},onFocusCapture:$e42e1063c40fb3ef$export$b9ecd428b558ff10(L.onFocusCapture,bt.onFocusCapture),onBlurCapture:$e42e1063c40fb3ef$export$b9ecd428b558ff10(L.onBlurCapture,bt.onBlurCapture),onPointerDownCapture:$e42e1063c40fb3ef$export$b9ecd428b558ff10(L.onPointerDownCapture,ut.onPointerDownCapture)}))});function $5cb92bef7577960e$var$usePointerDownOutside(L,V=globalThis==null?void 0:globalThis.document){const G=$b1b2314f5f9a1d84$export$25bec8c6f54ee79a(L),K=react$1.exports.useRef(!1),ee=react$1.exports.useRef(()=>{});return react$1.exports.useEffect(()=>{const te=ce=>{if(ce.target&&!K.current){let de=function(){$5cb92bef7577960e$var$handleAndDispatchCustomEvent($5cb92bef7577960e$var$POINTER_DOWN_OUTSIDE,G,ue,{discrete:!0})};const ue={originalEvent:ce};ce.pointerType==="touch"?(V.removeEventListener("click",ee.current),ee.current=de,V.addEventListener("click",ee.current,{once:!0})):de()}else V.removeEventListener("click",ee.current);K.current=!1},re=window.setTimeout(()=>{V.addEventListener("pointerdown",te)},0);return()=>{window.clearTimeout(re),V.removeEventListener("pointerdown",te),V.removeEventListener("click",ee.current)}},[V,G]),{onPointerDownCapture:()=>K.current=!0}}function $5cb92bef7577960e$var$useFocusOutside(L,V=globalThis==null?void 0:globalThis.document){const G=$b1b2314f5f9a1d84$export$25bec8c6f54ee79a(L),K=react$1.exports.useRef(!1);return react$1.exports.useEffect(()=>{const ee=te=>{te.target&&!K.current&&$5cb92bef7577960e$var$handleAndDispatchCustomEvent($5cb92bef7577960e$var$FOCUS_OUTSIDE,G,{originalEvent:te},{discrete:!1})};return V.addEventListener("focusin",ee),()=>V.removeEventListener("focusin",ee)},[V,G]),{onFocusCapture:()=>K.current=!0,onBlurCapture:()=>K.current=!1}}function $5cb92bef7577960e$var$dispatchUpdate(){const L=new CustomEvent($5cb92bef7577960e$var$CONTEXT_UPDATE);document.dispatchEvent(L)}function $5cb92bef7577960e$var$handleAndDispatchCustomEvent(L,V,G,{discrete:K}){const ee=G.originalEvent.target,te=new CustomEvent(L,{bubbles:!1,cancelable:!0,detail:G});V&&ee.addEventListener(L,V,{once:!0}),K?$8927f6f2acc4f386$export$6d1a0317bde7de7f(ee,te):ee.dispatchEvent(te)}const $d3863c46a17e8a28$var$AUTOFOCUS_ON_MOUNT="focusScope.autoFocusOnMount",$d3863c46a17e8a28$var$AUTOFOCUS_ON_UNMOUNT="focusScope.autoFocusOnUnmount",$d3863c46a17e8a28$var$EVENT_OPTIONS={bubbles:!1,cancelable:!0},$d3863c46a17e8a28$export$20e40289641fbbb6=react$1.exports.forwardRef((L,V)=>{const{loop:G=!1,trapped:K=!1,onMountAutoFocus:ee,onUnmountAutoFocus:te,...re}=L,[ce,ue]=react$1.exports.useState(null),de=$b1b2314f5f9a1d84$export$25bec8c6f54ee79a(ee),ve=$b1b2314f5f9a1d84$export$25bec8c6f54ee79a(te),st=react$1.exports.useRef(null),Ae=$6ed0406888f73fc4$export$c7b2cbe3552a0d05(V,rt=>ue(rt)),at=react$1.exports.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;react$1.exports.useEffect(()=>{if(K){let rt=function(it){if(at.paused||!ce)return;const lt=it.target;ce.contains(lt)?st.current=lt:$d3863c46a17e8a28$var$focus(st.current,{select:!0})},ft=function(it){if(at.paused||!ce)return;const lt=it.relatedTarget;lt!==null&&(ce.contains(lt)||$d3863c46a17e8a28$var$focus(st.current,{select:!0}))},Oe=function(it){if(document.activeElement===document.body)for(const ct of it)ct.removedNodes.length>0&&$d3863c46a17e8a28$var$focus(ce)};document.addEventListener("focusin",rt),document.addEventListener("focusout",ft);const nt=new MutationObserver(Oe);return ce&&nt.observe(ce,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",rt),document.removeEventListener("focusout",ft),nt.disconnect()}}},[K,ce,at.paused]),react$1.exports.useEffect(()=>{if(ce){$d3863c46a17e8a28$var$focusScopesStack.add(at);const rt=document.activeElement;if(!ce.contains(rt)){const Oe=new CustomEvent($d3863c46a17e8a28$var$AUTOFOCUS_ON_MOUNT,$d3863c46a17e8a28$var$EVENT_OPTIONS);ce.addEventListener($d3863c46a17e8a28$var$AUTOFOCUS_ON_MOUNT,de),ce.dispatchEvent(Oe),Oe.defaultPrevented||($d3863c46a17e8a28$var$focusFirst($d3863c46a17e8a28$var$removeLinks($d3863c46a17e8a28$var$getTabbableCandidates(ce)),{select:!0}),document.activeElement===rt&&$d3863c46a17e8a28$var$focus(ce))}return()=>{ce.removeEventListener($d3863c46a17e8a28$var$AUTOFOCUS_ON_MOUNT,de),setTimeout(()=>{const Oe=new CustomEvent($d3863c46a17e8a28$var$AUTOFOCUS_ON_UNMOUNT,$d3863c46a17e8a28$var$EVENT_OPTIONS);ce.addEventListener($d3863c46a17e8a28$var$AUTOFOCUS_ON_UNMOUNT,ve),ce.dispatchEvent(Oe),Oe.defaultPrevented||$d3863c46a17e8a28$var$focus(rt!=null?rt:document.body,{select:!0}),ce.removeEventListener($d3863c46a17e8a28$var$AUTOFOCUS_ON_UNMOUNT,ve),$d3863c46a17e8a28$var$focusScopesStack.remove(at)},0)}}},[ce,de,ve,at]);const ot=react$1.exports.useCallback(rt=>{if(!G&&!K||at.paused)return;const ft=rt.key==="Tab"&&!rt.altKey&&!rt.ctrlKey&&!rt.metaKey,Oe=document.activeElement;if(ft&&Oe){const nt=rt.currentTarget,[it,lt]=$d3863c46a17e8a28$var$getTabbableEdges(nt);it&&lt?!rt.shiftKey&&Oe===lt?(rt.preventDefault(),G&&$d3863c46a17e8a28$var$focus(it,{select:!0})):rt.shiftKey&&Oe===it&&(rt.preventDefault(),G&&$d3863c46a17e8a28$var$focus(lt,{select:!0})):Oe===nt&&rt.preventDefault()}},[G,K,at.paused]);return react$1.exports.createElement($8927f6f2acc4f386$export$250ffa63cdc0d034.div,_extends({tabIndex:-1},re,{ref:Ae,onKeyDown:ot}))});function $d3863c46a17e8a28$var$focusFirst(L,{select:V=!1}={}){const G=document.activeElement;for(const K of L)if($d3863c46a17e8a28$var$focus(K,{select:V}),document.activeElement!==G)return}function $d3863c46a17e8a28$var$getTabbableEdges(L){const V=$d3863c46a17e8a28$var$getTabbableCandidates(L),G=$d3863c46a17e8a28$var$findVisible(V,L),K=$d3863c46a17e8a28$var$findVisible(V.reverse(),L);return[G,K]}function $d3863c46a17e8a28$var$getTabbableCandidates(L){const V=[],G=document.createTreeWalker(L,NodeFilter.SHOW_ELEMENT,{acceptNode:K=>{const ee=K.tagName==="INPUT"&&K.type==="hidden";return K.disabled||K.hidden||ee?NodeFilter.FILTER_SKIP:K.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;G.nextNode();)V.push(G.currentNode);return V}function $d3863c46a17e8a28$var$findVisible(L,V){for(const G of L)if(!$d3863c46a17e8a28$var$isHidden(G,{upTo:V}))return G}function $d3863c46a17e8a28$var$isHidden(L,{upTo:V}){if(getComputedStyle(L).visibility==="hidden")return!0;for(;L;){if(V!==void 0&&L===V)return!1;if(getComputedStyle(L).display==="none")return!0;L=L.parentElement}return!1}function $d3863c46a17e8a28$var$isSelectableInput(L){return L instanceof HTMLInputElement&&"select"in L}function $d3863c46a17e8a28$var$focus(L,{select:V=!1}={}){if(L&&L.focus){const G=document.activeElement;L.focus({preventScroll:!0}),L!==G&&$d3863c46a17e8a28$var$isSelectableInput(L)&&V&&L.select()}}const $d3863c46a17e8a28$var$focusScopesStack=$d3863c46a17e8a28$var$createFocusScopesStack();function $d3863c46a17e8a28$var$createFocusScopesStack(){let L=[];return{add(V){const G=L[0];V!==G&&(G==null||G.pause()),L=$d3863c46a17e8a28$var$arrayRemove(L,V),L.unshift(V)},remove(V){var G;L=$d3863c46a17e8a28$var$arrayRemove(L,V),(G=L[0])===null||G===void 0||G.resume()}}}function $d3863c46a17e8a28$var$arrayRemove(L,V){const G=[...L],K=G.indexOf(V);return K!==-1&&G.splice(K,1),G}function $d3863c46a17e8a28$var$removeLinks(L){return L.filter(V=>V.tagName!=="A")}const $f1701beae083dbae$export$602eac185826482c=react$1.exports.forwardRef((L,V)=>{var G;const{container:K=globalThis==null||(G=globalThis.document)===null||G===void 0?void 0:G.body,...ee}=L;return K?ReactDOM.createPortal(react$1.exports.createElement($8927f6f2acc4f386$export$250ffa63cdc0d034.div,_extends({},ee,{ref:V})),K):null});function $fe963b355347cc68$export$3e6543de14f8614f(L,V){return react$1.exports.useReducer((G,K)=>{const ee=V[G][K];return ee!=null?ee:G},L)}const $921a889cee6df7e8$export$99c2b779aa4e8b8b=L=>{const{present:V,children:G}=L,K=$921a889cee6df7e8$var$usePresence(V),ee=typeof G=="function"?G({present:K.isPresent}):react$1.exports.Children.only(G),te=$6ed0406888f73fc4$export$c7b2cbe3552a0d05(K.ref,ee.ref);return typeof G=="function"||K.isPresent?react$1.exports.cloneElement(ee,{ref:te}):null};$921a889cee6df7e8$export$99c2b779aa4e8b8b.displayName="Presence";function $921a889cee6df7e8$var$usePresence(L){const[V,G]=react$1.exports.useState(),K=react$1.exports.useRef({}),ee=react$1.exports.useRef(L),te=react$1.exports.useRef("none"),re=L?"mounted":"unmounted",[ce,ue]=$fe963b355347cc68$export$3e6543de14f8614f(re,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return react$1.exports.useEffect(()=>{const de=$921a889cee6df7e8$var$getAnimationName(K.current);te.current=ce==="mounted"?de:"none"},[ce]),$9f79659886946c16$export$e5c5a5f917a5871c(()=>{const de=K.current,ve=ee.current;if(ve!==L){const Ae=te.current,at=$921a889cee6df7e8$var$getAnimationName(de);L?ue("MOUNT"):at==="none"||(de==null?void 0:de.display)==="none"?ue("UNMOUNT"):ue(ve&&Ae!==at?"ANIMATION_OUT":"UNMOUNT"),ee.current=L}},[L,ue]),$9f79659886946c16$export$e5c5a5f917a5871c(()=>{if(V){const de=st=>{const at=$921a889cee6df7e8$var$getAnimationName(K.current).includes(st.animationName);st.target===V&&at&&reactDom.exports.flushSync(()=>ue("ANIMATION_END"))},ve=st=>{st.target===V&&(te.current=$921a889cee6df7e8$var$getAnimationName(K.current))};return V.addEventListener("animationstart",ve),V.addEventListener("animationcancel",de),V.addEventListener("animationend",de),()=>{V.removeEventListener("animationstart",ve),V.removeEventListener("animationcancel",de),V.removeEventListener("animationend",de)}}else ue("ANIMATION_END")},[V,ue]),{isPresent:["mounted","unmountSuspended"].includes(ce),ref:react$1.exports.useCallback(de=>{de&&(K.current=getComputedStyle(de)),G(de)},[])}}function $921a889cee6df7e8$var$getAnimationName(L){return(L==null?void 0:L.animationName)||"none"}let $3db38b7d1fb3fe6a$var$count=0;function $3db38b7d1fb3fe6a$export$b7ece24a22aeda8c(){react$1.exports.useEffect(()=>{var L,V;const G=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",(L=G[0])!==null&&L!==void 0?L:$3db38b7d1fb3fe6a$var$createFocusGuard()),document.body.insertAdjacentElement("beforeend",(V=G[1])!==null&&V!==void 0?V:$3db38b7d1fb3fe6a$var$createFocusGuard()),$3db38b7d1fb3fe6a$var$count++,()=>{$3db38b7d1fb3fe6a$var$count===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(K=>K.remove()),$3db38b7d1fb3fe6a$var$count--}},[])}function $3db38b7d1fb3fe6a$var$createFocusGuard(){const L=document.createElement("span");return L.setAttribute("data-radix-focus-guard",""),L.tabIndex=0,L.style.cssText="outline: none; opacity: 0; position: fixed; pointer-events: none",L}var __assign=function(){return __assign=Object.assign||function(V){for(var G,K=1,ee=arguments.length;K<ee;K++){G=arguments[K];for(var te in G)Object.prototype.hasOwnProperty.call(G,te)&&(V[te]=G[te])}return V},__assign.apply(this,arguments)};function __rest(L,V){var G={};for(var K in L)Object.prototype.hasOwnProperty.call(L,K)&&V.indexOf(K)<0&&(G[K]=L[K]);if(L!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ee=0,K=Object.getOwnPropertySymbols(L);ee<K.length;ee++)V.indexOf(K[ee])<0&&Object.prototype.propertyIsEnumerable.call(L,K[ee])&&(G[K[ee]]=L[K[ee]]);return G}function __spreadArray(L,V,G){if(G||arguments.length===2)for(var K=0,ee=V.length,te;K<ee;K++)(te||!(K in V))&&(te||(te=Array.prototype.slice.call(V,0,K)),te[K]=V[K]);return L.concat(te||Array.prototype.slice.call(V))}typeof SuppressedError=="function"&&SuppressedError;var zeroRightClassName="right-scroll-bar-position",fullWidthClassName="width-before-scroll-bar",noScrollbarsClassName="with-scroll-bars-hidden",removedBarSizeVariable="--removed-body-scroll-bar-size";function assignRef(L,V){return typeof L=="function"?L(V):L&&(L.current=V),L}function useCallbackRef(L,V){var G=react$1.exports.useState(function(){return{value:L,callback:V,facade:{get current(){return G.value},set current(K){var ee=G.value;ee!==K&&(G.value=K,G.callback(K,ee))}}}})[0];return G.callback=V,G.facade}var useIsomorphicLayoutEffect$3=typeof window!="undefined"?react$1.exports.useLayoutEffect:react$1.exports.useEffect,currentValues=new WeakMap;function useMergeRefs(L,V){var G=useCallbackRef(V||null,function(K){return L.forEach(function(ee){return assignRef(ee,K)})});return useIsomorphicLayoutEffect$3(function(){var K=currentValues.get(G);if(K){var ee=new Set(K),te=new Set(L),re=G.current;ee.forEach(function(ce){te.has(ce)||assignRef(ce,null)}),te.forEach(function(ce){ee.has(ce)||assignRef(ce,re)})}currentValues.set(G,L)},[L]),G}function ItoI(L){return L}function innerCreateMedium(L,V){V===void 0&&(V=ItoI);var G=[],K=!1,ee={read:function(){if(K)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return G.length?G[G.length-1]:L},useMedium:function(te){var re=V(te,K);return G.push(re),function(){G=G.filter(function(ce){return ce!==re})}},assignSyncMedium:function(te){for(K=!0;G.length;){var re=G;G=[],re.forEach(te)}G={push:function(ce){return te(ce)},filter:function(){return G}}},assignMedium:function(te){K=!0;var re=[];if(G.length){var ce=G;G=[],ce.forEach(te),re=G}var ue=function(){var ve=re;re=[],ve.forEach(te)},de=function(){return Promise.resolve().then(ue)};de(),G={push:function(ve){re.push(ve),de()},filter:function(ve){return re=re.filter(ve),G}}}};return ee}function createSidecarMedium(L){L===void 0&&(L={});var V=innerCreateMedium(null);return V.options=__assign({async:!0,ssr:!1},L),V}var SideCar$1=function(L){var V=L.sideCar,G=__rest(L,["sideCar"]);if(!V)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var K=V.read();if(!K)throw new Error("Sidecar medium not found");return react$1.exports.createElement(K,__assign({},G))};SideCar$1.isSideCarExport=!0;function exportSidecar(L,V){return L.useMedium(V),SideCar$1}var effectCar=createSidecarMedium(),nothing=function(){},RemoveScroll=react$1.exports.forwardRef(function(L,V){var G=react$1.exports.useRef(null),K=react$1.exports.useState({onScrollCapture:nothing,onWheelCapture:nothing,onTouchMoveCapture:nothing}),ee=K[0],te=K[1],re=L.forwardProps,ce=L.children,ue=L.className,de=L.removeScrollBar,ve=L.enabled,st=L.shards,Ae=L.sideCar,at=L.noIsolation,ot=L.inert,rt=L.allowPinchZoom,ft=L.as,Oe=ft===void 0?"div":ft,nt=__rest(L,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as"]),it=Ae,lt=useMergeRefs([G,V]),ct=__assign(__assign({},nt),ee);return react$1.exports.createElement(react$1.exports.Fragment,null,ve&&react$1.exports.createElement(it,{sideCar:effectCar,removeScrollBar:de,shards:st,noIsolation:at,inert:ot,setCallbacks:te,allowPinchZoom:!!rt,lockRef:G}),re?react$1.exports.cloneElement(react$1.exports.Children.only(ce),__assign(__assign({},ct),{ref:lt})):react$1.exports.createElement(Oe,__assign({},ct,{className:ue,ref:lt}),ce))});RemoveScroll.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};RemoveScroll.classNames={fullWidth:fullWidthClassName,zeroRight:zeroRightClassName};var getNonce=function(){if(typeof __webpack_nonce__!="undefined")return __webpack_nonce__};function makeStyleTag(){if(!document)return null;var L=document.createElement("style");L.type="text/css";var V=getNonce();return V&&L.setAttribute("nonce",V),L}function injectStyles(L,V){L.styleSheet?L.styleSheet.cssText=V:L.appendChild(document.createTextNode(V))}function insertStyleTag(L){var V=document.head||document.getElementsByTagName("head")[0];V.appendChild(L)}var stylesheetSingleton=function(){var L=0,V=null;return{add:function(G){L==0&&(V=makeStyleTag())&&(injectStyles(V,G),insertStyleTag(V)),L++},remove:function(){L--,!L&&V&&(V.parentNode&&V.parentNode.removeChild(V),V=null)}}},styleHookSingleton=function(){var L=stylesheetSingleton();return function(V,G){react$1.exports.useEffect(function(){return L.add(V),function(){L.remove()}},[V&&G])}},styleSingleton=function(){var L=styleHookSingleton(),V=function(G){var K=G.styles,ee=G.dynamic;return L(K,ee),null};return V},zeroGap={left:0,top:0,right:0,gap:0},parse=function(L){return parseInt(L||"",10)||0},getOffset=function(L){var V=window.getComputedStyle(document.body),G=V[L==="padding"?"paddingLeft":"marginLeft"],K=V[L==="padding"?"paddingTop":"marginTop"],ee=V[L==="padding"?"paddingRight":"marginRight"];return[parse(G),parse(K),parse(ee)]},getGapWidth=function(L){if(L===void 0&&(L="margin"),typeof window=="undefined")return zeroGap;var V=getOffset(L),G=document.documentElement.clientWidth,K=window.innerWidth;return{left:V[0],top:V[1],right:V[2],gap:Math.max(0,K-G+V[2]-V[0])}},Style=styleSingleton(),lockAttribute="data-scroll-locked",getStyles=function(L,V,G,K){var ee=L.left,te=L.top,re=L.right,ce=L.gap;return G===void 0&&(G="margin"),`
  .`.concat(noScrollbarsClassName,` {
   overflow: hidden `).concat(K,`;
   padding-right: `).concat(ce,"px ").concat(K,`;
  }
  body[`).concat(lockAttribute,`] {
    overflow: hidden `).concat(K,`;
    overscroll-behavior: contain;
    `).concat([V&&"position: relative ".concat(K,";"),G==="margin"&&`
    padding-left: `.concat(ee,`px;
    padding-top: `).concat(te,`px;
    padding-right: `).concat(re,`px;
    margin-left:0;
    margin-top:0;
    margin-right: `).concat(ce,"px ").concat(K,`;
    `),G==="padding"&&"padding-right: ".concat(ce,"px ").concat(K,";")].filter(Boolean).join(""),`
  }
  
  .`).concat(zeroRightClassName,` {
    right: `).concat(ce,"px ").concat(K,`;
  }
  
  .`).concat(fullWidthClassName,` {
    margin-right: `).concat(ce,"px ").concat(K,`;
  }
  
  .`).concat(zeroRightClassName," .").concat(zeroRightClassName,` {
    right: 0 `).concat(K,`;
  }
  
  .`).concat(fullWidthClassName," .").concat(fullWidthClassName,` {
    margin-right: 0 `).concat(K,`;
  }
  
  body[`).concat(lockAttribute,`] {
    `).concat(removedBarSizeVariable,": ").concat(ce,`px;
  }
`)},getCurrentUseCounter=function(){var L=parseInt(document.body.getAttribute(lockAttribute)||"0",10);return isFinite(L)?L:0},useLockAttribute=function(){react$1.exports.useEffect(function(){return document.body.setAttribute(lockAttribute,(getCurrentUseCounter()+1).toString()),function(){var L=getCurrentUseCounter()-1;L<=0?document.body.removeAttribute(lockAttribute):document.body.setAttribute(lockAttribute,L.toString())}},[])},RemoveScrollBar=function(L){var V=L.noRelative,G=L.noImportant,K=L.gapMode,ee=K===void 0?"margin":K;useLockAttribute();var te=react$1.exports.useMemo(function(){return getGapWidth(ee)},[ee]);return react$1.exports.createElement(Style,{styles:getStyles(te,!V,ee,G?"":"!important")})},passiveSupported=!1;if(typeof window!="undefined")try{var options=Object.defineProperty({},"passive",{get:function(){return passiveSupported=!0,!0}});window.addEventListener("test",options,options),window.removeEventListener("test",options,options)}catch{passiveSupported=!1}var nonPassive=passiveSupported?{passive:!1}:!1,alwaysContainsScroll=function(L){return L.tagName==="TEXTAREA"},elementCanBeScrolled=function(L,V){var G=window.getComputedStyle(L);return G[V]!=="hidden"&&!(G.overflowY===G.overflowX&&!alwaysContainsScroll(L)&&G[V]==="visible")},elementCouldBeVScrolled=function(L){return elementCanBeScrolled(L,"overflowY")},elementCouldBeHScrolled=function(L){return elementCanBeScrolled(L,"overflowX")},locationCouldBeScrolled=function(L,V){var G=V;do{typeof ShadowRoot!="undefined"&&G instanceof ShadowRoot&&(G=G.host);var K=elementCouldBeScrolled(L,G);if(K){var ee=getScrollVariables(L,G),te=ee[1],re=ee[2];if(te>re)return!0}G=G.parentNode}while(G&&G!==document.body);return!1},getVScrollVariables=function(L){var V=L.scrollTop,G=L.scrollHeight,K=L.clientHeight;return[V,G,K]},getHScrollVariables=function(L){var V=L.scrollLeft,G=L.scrollWidth,K=L.clientWidth;return[V,G,K]},elementCouldBeScrolled=function(L,V){return L==="v"?elementCouldBeVScrolled(V):elementCouldBeHScrolled(V)},getScrollVariables=function(L,V){return L==="v"?getVScrollVariables(V):getHScrollVariables(V)},getDirectionFactor=function(L,V){return L==="h"&&V==="rtl"?-1:1},handleScroll=function(L,V,G,K,ee){var te=getDirectionFactor(L,window.getComputedStyle(V).direction),re=te*K,ce=G.target,ue=V.contains(ce),de=!1,ve=re>0,st=0,Ae=0;do{var at=getScrollVariables(L,ce),ot=at[0],rt=at[1],ft=at[2],Oe=rt-ft-te*ot;(ot||Oe)&&elementCouldBeScrolled(L,ce)&&(st+=Oe,Ae+=ot),ce=ce.parentNode}while(!ue&&ce!==document.body||ue&&(V.contains(ce)||V===ce));return(ve&&(ee&&st===0||!ee&&re>st)||!ve&&(ee&&Ae===0||!ee&&-re>Ae))&&(de=!0),de},getTouchXY=function(L){return"changedTouches"in L?[L.changedTouches[0].clientX,L.changedTouches[0].clientY]:[0,0]},getDeltaXY=function(L){return[L.deltaX,L.deltaY]},extractRef=function(L){return L&&"current"in L?L.current:L},deltaCompare=function(L,V){return L[0]===V[0]&&L[1]===V[1]},generateStyle=function(L){return`
  .block-interactivity-`.concat(L,` {pointer-events: none;}
  .allow-interactivity-`).concat(L,` {pointer-events: all;}
`)},idCounter=0,lockStack=[];function RemoveScrollSideCar(L){var V=react$1.exports.useRef([]),G=react$1.exports.useRef([0,0]),K=react$1.exports.useRef(),ee=react$1.exports.useState(idCounter++)[0],te=react$1.exports.useState(function(){return styleSingleton()})[0],re=react$1.exports.useRef(L);react$1.exports.useEffect(function(){re.current=L},[L]),react$1.exports.useEffect(function(){if(L.inert){document.body.classList.add("block-interactivity-".concat(ee));var rt=__spreadArray([L.lockRef.current],(L.shards||[]).map(extractRef),!0).filter(Boolean);return rt.forEach(function(ft){return ft.classList.add("allow-interactivity-".concat(ee))}),function(){document.body.classList.remove("block-interactivity-".concat(ee)),rt.forEach(function(ft){return ft.classList.remove("allow-interactivity-".concat(ee))})}}},[L.inert,L.lockRef.current,L.shards]);var ce=react$1.exports.useCallback(function(rt,ft){if("touches"in rt&&rt.touches.length===2)return!re.current.allowPinchZoom;var Oe=getTouchXY(rt),nt=G.current,it="deltaX"in rt?rt.deltaX:nt[0]-Oe[0],lt="deltaY"in rt?rt.deltaY:nt[1]-Oe[1],ct,ut=rt.target,bt=Math.abs(it)>Math.abs(lt)?"h":"v";if("touches"in rt&&bt==="h"&&ut.type==="range")return!1;var gt=locationCouldBeScrolled(bt,ut);if(!gt)return!0;if(gt?ct=bt:(ct=bt==="v"?"h":"v",gt=locationCouldBeScrolled(bt,ut)),!gt)return!1;if(!K.current&&"changedTouches"in rt&&(it||lt)&&(K.current=ct),!ct)return!0;var Pt=K.current||ct;return handleScroll(Pt,ft,rt,Pt==="h"?it:lt,!0)},[]),ue=react$1.exports.useCallback(function(rt){var ft=rt;if(!(!lockStack.length||lockStack[lockStack.length-1]!==te)){var Oe="deltaY"in ft?getDeltaXY(ft):getTouchXY(ft),nt=V.current.filter(function(ct){return ct.name===ft.type&&ct.target===ft.target&&deltaCompare(ct.delta,Oe)})[0];if(nt&&nt.should){ft.cancelable&&ft.preventDefault();return}if(!nt){var it=(re.current.shards||[]).map(extractRef).filter(Boolean).filter(function(ct){return ct.contains(ft.target)}),lt=it.length>0?ce(ft,it[0]):!re.current.noIsolation;lt&&ft.cancelable&&ft.preventDefault()}}},[]),de=react$1.exports.useCallback(function(rt,ft,Oe,nt){var it={name:rt,delta:ft,target:Oe,should:nt};V.current.push(it),setTimeout(function(){V.current=V.current.filter(function(lt){return lt!==it})},1)},[]),ve=react$1.exports.useCallback(function(rt){G.current=getTouchXY(rt),K.current=void 0},[]),st=react$1.exports.useCallback(function(rt){de(rt.type,getDeltaXY(rt),rt.target,ce(rt,L.lockRef.current))},[]),Ae=react$1.exports.useCallback(function(rt){de(rt.type,getTouchXY(rt),rt.target,ce(rt,L.lockRef.current))},[]);react$1.exports.useEffect(function(){return lockStack.push(te),L.setCallbacks({onScrollCapture:st,onWheelCapture:st,onTouchMoveCapture:Ae}),document.addEventListener("wheel",ue,nonPassive),document.addEventListener("touchmove",ue,nonPassive),document.addEventListener("touchstart",ve,nonPassive),function(){lockStack=lockStack.filter(function(rt){return rt!==te}),document.removeEventListener("wheel",ue,nonPassive),document.removeEventListener("touchmove",ue,nonPassive),document.removeEventListener("touchstart",ve,nonPassive)}},[]);var at=L.removeScrollBar,ot=L.inert;return react$1.exports.createElement(react$1.exports.Fragment,null,ot?react$1.exports.createElement(te,{styles:generateStyle(ee)}):null,at?react$1.exports.createElement(RemoveScrollBar,{gapMode:"margin"}):null)}var SideCar=exportSidecar(effectCar,RemoveScrollSideCar),ReactRemoveScroll=react$1.exports.forwardRef(function(L,V){return react$1.exports.createElement(RemoveScroll,__assign({},L,{ref:V,sideCar:SideCar}))});ReactRemoveScroll.classNames=RemoveScroll.classNames;var $67UHm$RemoveScroll=ReactRemoveScroll,getDefaultParent=function(L){if(typeof document=="undefined")return null;var V=Array.isArray(L)?L[0]:L;return V.ownerDocument.body},counterMap=new WeakMap,uncontrolledNodes=new WeakMap,markerMap={},lockCount=0,unwrapHost=function(L){return L&&(L.host||unwrapHost(L.parentNode))},correctTargets=function(L,V){return V.map(function(G){if(L.contains(G))return G;var K=unwrapHost(G);return K&&L.contains(K)?K:(console.error("aria-hidden",G,"in not contained inside",L,". Doing nothing"),null)}).filter(function(G){return Boolean(G)})},applyAttributeToOthers=function(L,V,G,K){var ee=correctTargets(V,Array.isArray(L)?L:[L]);markerMap[G]||(markerMap[G]=new WeakMap);var te=markerMap[G],re=[],ce=new Set,ue=new Set(ee),de=function(st){!st||ce.has(st)||(ce.add(st),de(st.parentNode))};ee.forEach(de);var ve=function(st){!st||ue.has(st)||Array.prototype.forEach.call(st.children,function(Ae){if(ce.has(Ae))ve(Ae);else try{var at=Ae.getAttribute(K),ot=at!==null&&at!=="false",rt=(counterMap.get(Ae)||0)+1,ft=(te.get(Ae)||0)+1;counterMap.set(Ae,rt),te.set(Ae,ft),re.push(Ae),rt===1&&ot&&uncontrolledNodes.set(Ae,!0),ft===1&&Ae.setAttribute(G,"true"),ot||Ae.setAttribute(K,"true")}catch(Oe){console.error("aria-hidden: cannot operate on ",Ae,Oe)}})};return ve(V),ce.clear(),lockCount++,function(){re.forEach(function(st){var Ae=counterMap.get(st)-1,at=te.get(st)-1;counterMap.set(st,Ae),te.set(st,at),Ae||(uncontrolledNodes.has(st)||st.removeAttribute(K),uncontrolledNodes.delete(st)),at||st.removeAttribute(G)}),lockCount--,lockCount||(counterMap=new WeakMap,counterMap=new WeakMap,uncontrolledNodes=new WeakMap,markerMap={})}},hideOthers=function(L,V,G){G===void 0&&(G="data-aria-hidden");var K=Array.from(Array.isArray(L)?L:[L]),ee=V||getDefaultParent(L);return ee?(K.push.apply(K,Array.from(ee.querySelectorAll("[aria-live]"))),applyAttributeToOthers(K,ee,G,"aria-hidden")):function(){return null}};const $5d3850c4d0b4e6c7$var$DIALOG_NAME="Dialog",[$5d3850c4d0b4e6c7$var$createDialogContext,$5d3850c4d0b4e6c7$export$cc702773b8ea3e41]=$c512c27ab02ef895$export$50c7b4e9d9f19c1($5d3850c4d0b4e6c7$var$DIALOG_NAME),[$5d3850c4d0b4e6c7$var$DialogProvider,$5d3850c4d0b4e6c7$var$useDialogContext]=$5d3850c4d0b4e6c7$var$createDialogContext($5d3850c4d0b4e6c7$var$DIALOG_NAME),$5d3850c4d0b4e6c7$export$3ddf2d174ce01153=L=>{const{__scopeDialog:V,children:G,open:K,defaultOpen:ee,onOpenChange:te,modal:re=!0}=L,ce=react$1.exports.useRef(null),ue=react$1.exports.useRef(null),[de=!1,ve]=$71cd76cc60e0454e$export$6f32135080cb4c3({prop:K,defaultProp:ee,onChange:te});return react$1.exports.createElement($5d3850c4d0b4e6c7$var$DialogProvider,{scope:V,triggerRef:ce,contentRef:ue,contentId:$1746a345f3d73bb7$export$f680877a34711e37(),titleId:$1746a345f3d73bb7$export$f680877a34711e37(),descriptionId:$1746a345f3d73bb7$export$f680877a34711e37(),open:de,onOpenChange:ve,onOpenToggle:react$1.exports.useCallback(()=>ve(st=>!st),[ve]),modal:re},G)},$5d3850c4d0b4e6c7$var$TRIGGER_NAME="DialogTrigger",$5d3850c4d0b4e6c7$export$2e1e1122cf0cba88=react$1.exports.forwardRef((L,V)=>{const{__scopeDialog:G,...K}=L,ee=$5d3850c4d0b4e6c7$var$useDialogContext($5d3850c4d0b4e6c7$var$TRIGGER_NAME,G),te=$6ed0406888f73fc4$export$c7b2cbe3552a0d05(V,ee.triggerRef);return react$1.exports.createElement($8927f6f2acc4f386$export$250ffa63cdc0d034.button,_extends({type:"button","aria-haspopup":"dialog","aria-expanded":ee.open,"aria-controls":ee.contentId,"data-state":$5d3850c4d0b4e6c7$var$getState(ee.open)},K,{ref:te,onClick:$e42e1063c40fb3ef$export$b9ecd428b558ff10(L.onClick,ee.onOpenToggle)}))}),$5d3850c4d0b4e6c7$var$PORTAL_NAME="DialogPortal",[$5d3850c4d0b4e6c7$var$PortalProvider,$5d3850c4d0b4e6c7$var$usePortalContext]=$5d3850c4d0b4e6c7$var$createDialogContext($5d3850c4d0b4e6c7$var$PORTAL_NAME,{forceMount:void 0}),$5d3850c4d0b4e6c7$export$dad7c95542bacce0=L=>{const{__scopeDialog:V,forceMount:G,children:K,container:ee}=L,te=$5d3850c4d0b4e6c7$var$useDialogContext($5d3850c4d0b4e6c7$var$PORTAL_NAME,V);return react$1.exports.createElement($5d3850c4d0b4e6c7$var$PortalProvider,{scope:V,forceMount:G},react$1.exports.Children.map(K,re=>react$1.exports.createElement($921a889cee6df7e8$export$99c2b779aa4e8b8b,{present:G||te.open},react$1.exports.createElement($f1701beae083dbae$export$602eac185826482c,{asChild:!0,container:ee},re))))},$5d3850c4d0b4e6c7$var$OVERLAY_NAME="DialogOverlay",$5d3850c4d0b4e6c7$export$bd1d06c79be19e17=react$1.exports.forwardRef((L,V)=>{const G=$5d3850c4d0b4e6c7$var$usePortalContext($5d3850c4d0b4e6c7$var$OVERLAY_NAME,L.__scopeDialog),{forceMount:K=G.forceMount,...ee}=L,te=$5d3850c4d0b4e6c7$var$useDialogContext($5d3850c4d0b4e6c7$var$OVERLAY_NAME,L.__scopeDialog);return te.modal?react$1.exports.createElement($921a889cee6df7e8$export$99c2b779aa4e8b8b,{present:K||te.open},react$1.exports.createElement($5d3850c4d0b4e6c7$var$DialogOverlayImpl,_extends({},ee,{ref:V}))):null}),$5d3850c4d0b4e6c7$var$DialogOverlayImpl=react$1.exports.forwardRef((L,V)=>{const{__scopeDialog:G,...K}=L,ee=$5d3850c4d0b4e6c7$var$useDialogContext($5d3850c4d0b4e6c7$var$OVERLAY_NAME,G);return react$1.exports.createElement($67UHm$RemoveScroll,{as:$5e63c961fc1ce211$export$8c6ed5c666ac1360,allowPinchZoom:!0,shards:[ee.contentRef]},react$1.exports.createElement($8927f6f2acc4f386$export$250ffa63cdc0d034.div,_extends({"data-state":$5d3850c4d0b4e6c7$var$getState(ee.open)},K,{ref:V,style:{pointerEvents:"auto",...K.style}})))}),$5d3850c4d0b4e6c7$var$CONTENT_NAME="DialogContent",$5d3850c4d0b4e6c7$export$b6d9565de1e068cf=react$1.exports.forwardRef((L,V)=>{const G=$5d3850c4d0b4e6c7$var$usePortalContext($5d3850c4d0b4e6c7$var$CONTENT_NAME,L.__scopeDialog),{forceMount:K=G.forceMount,...ee}=L,te=$5d3850c4d0b4e6c7$var$useDialogContext($5d3850c4d0b4e6c7$var$CONTENT_NAME,L.__scopeDialog);return react$1.exports.createElement($921a889cee6df7e8$export$99c2b779aa4e8b8b,{present:K||te.open},te.modal?react$1.exports.createElement($5d3850c4d0b4e6c7$var$DialogContentModal,_extends({},ee,{ref:V})):react$1.exports.createElement($5d3850c4d0b4e6c7$var$DialogContentNonModal,_extends({},ee,{ref:V})))}),$5d3850c4d0b4e6c7$var$DialogContentModal=react$1.exports.forwardRef((L,V)=>{const G=$5d3850c4d0b4e6c7$var$useDialogContext($5d3850c4d0b4e6c7$var$CONTENT_NAME,L.__scopeDialog),K=react$1.exports.useRef(null),ee=$6ed0406888f73fc4$export$c7b2cbe3552a0d05(V,G.contentRef,K);return react$1.exports.useEffect(()=>{const te=K.current;if(te)return hideOthers(te)},[]),react$1.exports.createElement($5d3850c4d0b4e6c7$var$DialogContentImpl,_extends({},L,{ref:ee,trapFocus:G.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:$e42e1063c40fb3ef$export$b9ecd428b558ff10(L.onCloseAutoFocus,te=>{var re;te.preventDefault(),(re=G.triggerRef.current)===null||re===void 0||re.focus()}),onPointerDownOutside:$e42e1063c40fb3ef$export$b9ecd428b558ff10(L.onPointerDownOutside,te=>{const re=te.detail.originalEvent,ce=re.button===0&&re.ctrlKey===!0;(re.button===2||ce)&&te.preventDefault()}),onFocusOutside:$e42e1063c40fb3ef$export$b9ecd428b558ff10(L.onFocusOutside,te=>te.preventDefault())}))}),$5d3850c4d0b4e6c7$var$DialogContentNonModal=react$1.exports.forwardRef((L,V)=>{const G=$5d3850c4d0b4e6c7$var$useDialogContext($5d3850c4d0b4e6c7$var$CONTENT_NAME,L.__scopeDialog),K=react$1.exports.useRef(!1),ee=react$1.exports.useRef(!1);return react$1.exports.createElement($5d3850c4d0b4e6c7$var$DialogContentImpl,_extends({},L,{ref:V,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:te=>{var re;if((re=L.onCloseAutoFocus)===null||re===void 0||re.call(L,te),!te.defaultPrevented){var ce;K.current||(ce=G.triggerRef.current)===null||ce===void 0||ce.focus(),te.preventDefault()}K.current=!1,ee.current=!1},onInteractOutside:te=>{var re,ce;(re=L.onInteractOutside)===null||re===void 0||re.call(L,te),te.defaultPrevented||(K.current=!0,te.detail.originalEvent.type==="pointerdown"&&(ee.current=!0));const ue=te.target;((ce=G.triggerRef.current)===null||ce===void 0?void 0:ce.contains(ue))&&te.preventDefault(),te.detail.originalEvent.type==="focusin"&&ee.current&&te.preventDefault()}}))}),$5d3850c4d0b4e6c7$var$DialogContentImpl=react$1.exports.forwardRef((L,V)=>{const{__scopeDialog:G,trapFocus:K,onOpenAutoFocus:ee,onCloseAutoFocus:te,...re}=L,ce=$5d3850c4d0b4e6c7$var$useDialogContext($5d3850c4d0b4e6c7$var$CONTENT_NAME,G),ue=react$1.exports.useRef(null),de=$6ed0406888f73fc4$export$c7b2cbe3552a0d05(V,ue);return $3db38b7d1fb3fe6a$export$b7ece24a22aeda8c(),react$1.exports.createElement(react$1.exports.Fragment,null,react$1.exports.createElement($d3863c46a17e8a28$export$20e40289641fbbb6,{asChild:!0,loop:!0,trapped:K,onMountAutoFocus:ee,onUnmountAutoFocus:te},react$1.exports.createElement($5cb92bef7577960e$export$177fb62ff3ec1f22,_extends({role:"dialog",id:ce.contentId,"aria-describedby":ce.descriptionId,"aria-labelledby":ce.titleId,"data-state":$5d3850c4d0b4e6c7$var$getState(ce.open)},re,{ref:de,onDismiss:()=>ce.onOpenChange(!1)}))),!1)}),$5d3850c4d0b4e6c7$var$TITLE_NAME="DialogTitle",$5d3850c4d0b4e6c7$export$16f7638e4a34b909=react$1.exports.forwardRef((L,V)=>{const{__scopeDialog:G,...K}=L,ee=$5d3850c4d0b4e6c7$var$useDialogContext($5d3850c4d0b4e6c7$var$TITLE_NAME,G);return react$1.exports.createElement($8927f6f2acc4f386$export$250ffa63cdc0d034.h2,_extends({id:ee.titleId},K,{ref:V}))}),$5d3850c4d0b4e6c7$var$DESCRIPTION_NAME="DialogDescription",$5d3850c4d0b4e6c7$export$94e94c2ec2c954d5=react$1.exports.forwardRef((L,V)=>{const{__scopeDialog:G,...K}=L,ee=$5d3850c4d0b4e6c7$var$useDialogContext($5d3850c4d0b4e6c7$var$DESCRIPTION_NAME,G);return react$1.exports.createElement($8927f6f2acc4f386$export$250ffa63cdc0d034.p,_extends({id:ee.descriptionId},K,{ref:V}))}),$5d3850c4d0b4e6c7$var$CLOSE_NAME="DialogClose",$5d3850c4d0b4e6c7$export$fba2fb7cd781b7ac=react$1.exports.forwardRef((L,V)=>{const{__scopeDialog:G,...K}=L,ee=$5d3850c4d0b4e6c7$var$useDialogContext($5d3850c4d0b4e6c7$var$CLOSE_NAME,G);return react$1.exports.createElement($8927f6f2acc4f386$export$250ffa63cdc0d034.button,_extends({type:"button"},K,{ref:V,onClick:$e42e1063c40fb3ef$export$b9ecd428b558ff10(L.onClick,()=>ee.onOpenChange(!1))}))});function $5d3850c4d0b4e6c7$var$getState(L){return L?"open":"closed"}const $5d3850c4d0b4e6c7$export$be92b6f5f03c0fe9=$5d3850c4d0b4e6c7$export$3ddf2d174ce01153,$5d3850c4d0b4e6c7$export$41fb9f06171c75f4=$5d3850c4d0b4e6c7$export$2e1e1122cf0cba88,$5d3850c4d0b4e6c7$export$602eac185826482c=$5d3850c4d0b4e6c7$export$dad7c95542bacce0,$5d3850c4d0b4e6c7$export$c6fdb837b070b4ff=$5d3850c4d0b4e6c7$export$bd1d06c79be19e17,$5d3850c4d0b4e6c7$export$7c6e2c02157bb7d2=$5d3850c4d0b4e6c7$export$b6d9565de1e068cf,$5d3850c4d0b4e6c7$export$f99233281efd08a0=$5d3850c4d0b4e6c7$export$16f7638e4a34b909,$5d3850c4d0b4e6c7$export$393edc798c47379d=$5d3850c4d0b4e6c7$export$94e94c2ec2c954d5,$5d3850c4d0b4e6c7$export$f39c2d165cd861fe=$5d3850c4d0b4e6c7$export$fba2fb7cd781b7ac;var Ee=require$$0.createContext({drawerRef:{current:null},overlayRef:{current:null},scaleBackground:()=>{},onPress:()=>{},onRelease:()=>{},onDrag:()=>{},onNestedDrag:()=>{},onNestedOpenChange:()=>{},onNestedRelease:()=>{},openProp:void 0,dismissible:!1,isOpen:!1,keyboardIsOpen:{current:!1},snapPointsOffset:null,snapPoints:null,modal:!1,shouldFade:!1,activeSnapPoint:null,onOpenChange:()=>{},setActiveSnapPoint:()=>{},visible:!1,closeDrawer:()=>{},setVisible:()=>{},direction:"bottom"}),fe=()=>require$$0.useContext(Ee);function Te(L,{insertAt:V}={}){if(!L||typeof document=="undefined")return;let G=document.head||document.getElementsByTagName("head")[0],K=document.createElement("style");K.type="text/css",V==="top"&&G.firstChild?G.insertBefore(K,G.firstChild):G.appendChild(K),K.styleSheet?K.styleSheet.cssText=L:K.appendChild(document.createTextNode(L))}Te(`[vaul-drawer]{touch-action:none;transition:transform .5s cubic-bezier(.32,.72,0,1)}[vaul-drawer][vaul-drawer-direction=bottom]{transform:translate3d(0,100%,0)}[vaul-drawer][vaul-drawer-direction=top]{transform:translate3d(0,-100%,0)}[vaul-drawer][vaul-drawer-direction=left]{transform:translate3d(-100%,0,0)}[vaul-drawer][vaul-drawer-direction=right]{transform:translate3d(100%,0,0)}.vaul-dragging .vaul-scrollable [vault-drawer-direction=top],.vaul-dragging .vaul-scrollable [vault-drawer-direction=bottom]{overflow-y:hidden!important}.vaul-dragging .vaul-scrollable [vault-drawer-direction=left],.vaul-dragging .vaul-scrollable [vault-drawer-direction=right]{overflow-x:hidden!important}[vaul-drawer][vaul-drawer-visible=true][vaul-drawer-direction=top],[vaul-drawer][vaul-drawer-visible=true][vaul-drawer-direction=bottom]{transform:translate3d(0,var(--snap-point-height, 0),0)}[vaul-drawer][vaul-drawer-visible=true][vaul-drawer-direction=left],[vaul-drawer][vaul-drawer-visible=true][vaul-drawer-direction=right]{transform:translate3d(var(--snap-point-height, 0),0,0)}[vaul-overlay]{opacity:0;transition:opacity .5s cubic-bezier(.32,.72,0,1)}[vaul-overlay][vaul-drawer-visible=true]{opacity:1}[vaul-drawer]:after{content:"";position:absolute;background:inherit;background-color:inherit}[vaul-drawer][vaul-drawer-direction=top]:after{top:initial;bottom:100%;left:0;right:0;height:200%}[vaul-drawer][vaul-drawer-direction=bottom]:after{top:100%;bottom:initial;left:0;right:0;height:200%}[vaul-drawer][vaul-drawer-direction=left]:after{left:initial;right:100%;top:0;bottom:0;width:200%}[vaul-drawer][vaul-drawer-direction=right]:after{left:100%;right:initial;top:0;bottom:0;width:200%}[vaul-overlay][vaul-snap-points=true]:not([vaul-snap-points-overlay="true"]):not([data-state="closed"]){opacity:0}[vaul-overlay][vaul-snap-points-overlay=true]:not([vaul-drawer-visible="false"]){opacity:1}@keyframes fake-animation{}@media (hover: hover) and (pointer: fine){[vaul-drawer]{user-select:none}}
`);var pt=typeof window!="undefined"?react$1.exports.useLayoutEffect:react$1.exports.useEffect;function Se(...L){return(...V)=>{for(let G of L)typeof G=="function"&&G(...V)}}function vt(){return xe(/^Mac/)}function wt(){return xe(/^iPhone/)}function ht(){return xe(/^iPad/)||vt()&&navigator.maxTouchPoints>1}function Re(){return wt()||ht()}function xe(L){return typeof window!="undefined"&&window.navigator!=null?L.test(window.navigator.platform):void 0}var ye=typeof document!="undefined"&&window.visualViewport;function We(L){let V=window.getComputedStyle(L);return/(auto|scroll)/.test(V.overflow+V.overflowX+V.overflowY)}function Ue(L){for(We(L)&&(L=L.parentElement);L&&!We(L);)L=L.parentElement;return L||document.scrollingElement||document.documentElement}var Et=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]),me=0,De;function je(L={}){let{isDisabled:V}=L;pt(()=>{if(!V)return me++,me===1&&(Re()?De=yt():De=Tt()),()=>{me--,me===0&&De()}},[V])}function Tt(){return Se(ke(document.documentElement,"paddingRight",`${window.innerWidth-document.documentElement.clientWidth}px`))}function yt(){let L,V=0,G=st=>{L=Ue(st.target),!(L===document.documentElement&&L===document.body)&&(V=st.changedTouches[0].pageY)},K=st=>{if(!L||L===document.documentElement||L===document.body){st.preventDefault();return}let Ae=st.changedTouches[0].pageY,at=L.scrollTop,ot=L.scrollHeight-L.clientHeight;ot!==0&&((at<=0&&Ae>V||at>=ot&&Ae<V)&&st.preventDefault(),V=Ae)},ee=st=>{let Ae=st.target;ge(Ae)&&Ae!==document.activeElement&&(st.preventDefault(),Ae.style.transform="translateY(-2000px)",Ae.focus(),requestAnimationFrame(()=>{Ae.style.transform=""}))},te=st=>{let Ae=st.target;ge(Ae)&&(Ae.style.transform="translateY(-2000px)",requestAnimationFrame(()=>{Ae.style.transform="",ye&&(ye.height<window.innerHeight?requestAnimationFrame(()=>{Fe(Ae)}):ye.addEventListener("resize",()=>Fe(Ae),{once:!0}))}))},re=()=>{window.scrollTo(0,0)},ce=window.pageXOffset,ue=window.pageYOffset,de=Se(ke(document.documentElement,"paddingRight",`${window.innerWidth-document.documentElement.clientWidth}px`));window.scrollTo(0,0);let ve=Se(oe(document,"touchstart",G,{passive:!1,capture:!0}),oe(document,"touchmove",K,{passive:!1,capture:!0}),oe(document,"touchend",ee,{passive:!1,capture:!0}),oe(document,"focus",te,!0),oe(window,"scroll",re));return()=>{de(),ve(),window.scrollTo(ce,ue)}}function ke(L,V,G){let K=L.style[V];return L.style[V]=G,()=>{L.style[V]=K}}function oe(L,V,G,K){return L.addEventListener(V,G,K),()=>{L.removeEventListener(V,G,K)}}function Fe(L){let V=document.scrollingElement||document.documentElement;for(;L&&L!==V;){let G=Ue(L);if(G!==document.documentElement&&G!==document.body&&G!==L){let K=G.getBoundingClientRect().top,ee=L.getBoundingClientRect().top,te=L.getBoundingClientRect().bottom,re=G.getBoundingClientRect().bottom;te>re&&(G.scrollTop+=ee-K)}L=G.parentElement}}function ge(L){return L instanceof HTMLInputElement&&!Et.has(L.type)||L instanceof HTMLTextAreaElement||L instanceof HTMLElement&&L.isContentEditable}function Dt(L,V){typeof L=="function"?L(V):L!=null&&(L.current=V)}function St(...L){return V=>L.forEach(G=>Dt(G,V))}function He(...L){return react$1.exports.useCallback(St(...L),L)}var F=null;function ze({isOpen:L,modal:V,nested:G,hasBeenOpened:K,preventScrollRestoration:ee}){let[te,re]=require$$0.useState(typeof window!="undefined"?window.location.href:""),ce=require$$0.useRef(0),ue=require$$0.useCallback(()=>{if(F===null&&L){F={position:document.body.style.position,top:document.body.style.top,left:document.body.style.left,height:document.body.style.height};let{scrollX:ve,innerHeight:st}=window;document.body.style.setProperty("position","fixed","important"),document.body.style.top=`${-ce.current}px`,document.body.style.left=`${-ve}px`,document.body.style.right="0px",document.body.style.height="auto",setTimeout(()=>requestAnimationFrame(()=>{let Ae=st-window.innerHeight;Ae&&ce.current>=st&&(document.body.style.top=`${-(ce.current+Ae)}px`)}),300)}},[L]),de=require$$0.useCallback(()=>{if(F!==null){let ve=-parseInt(document.body.style.top,10),st=-parseInt(document.body.style.left,10);document.body.style.position=F.position,document.body.style.top=F.top,document.body.style.left=F.left,document.body.style.height=F.height,document.body.style.right="unset",requestAnimationFrame(()=>{if(ee&&te!==window.location.href){re(window.location.href);return}window.scrollTo(st,ve)}),F=null}},[te]);return require$$0.useEffect(()=>{function ve(){ce.current=window.scrollY}return ve(),window.addEventListener("scroll",ve),()=>{window.removeEventListener("scroll",ve)}},[]),require$$0.useEffect(()=>{G||!K||(L?(ue(),V||setTimeout(()=>{de()},500)):de())},[L,K,te,V,G,ue,de]),{restorePositionSetting:de}}var Ye=new WeakMap;function y$1(L,V,G=!1){if(!L||!(L instanceof HTMLElement)||!V)return;let K={};Object.entries(V).forEach(([ee,te])=>{if(ee.startsWith("--")){L.style.setProperty(ee,te);return}K[ee]=L.style[ee],L.style[ee]=te}),!G&&Ye.set(L,K)}function ie(L,V){if(!L||!(L instanceof HTMLElement))return;let G=Ye.get(L);G&&(V?L.style[V]=G[V]:Object.entries(G).forEach(([K,ee])=>{L.style[K]=ee}))}var R=L=>{switch(L){case"top":case"bottom":return!0;case"left":case"right":return!1;default:return L}};function ae(L,V){let G=window.getComputedStyle(L),K=G.transform||G.webkitTransform||G.mozTransform,ee=K.match(/^matrix3d\((.+)\)$/);return ee?parseFloat(ee[1].split(", ")[R(V)?13:12]):(ee=K.match(/^matrix\((.+)\)$/),ee?parseFloat(ee[1].split(", ")[R(V)?5:4]):null)}function _e(L){return 8*(Math.log(L+1)-2)}var T={DURATION:.5,EASE:[.32,.72,0,1]},be=.4;function qe(L){let V=require$$0.useRef(L);return require$$0.useEffect(()=>{V.current=L}),require$$0.useMemo(()=>(...G)=>{var K;return(K=V.current)==null?void 0:K.call(V,...G)},[])}function Rt({defaultProp:L,onChange:V}){let G=require$$0.useState(L),[K]=G,ee=require$$0.useRef(K),te=qe(V);return require$$0.useEffect(()=>{ee.current!==K&&(te(K),ee.current=K)},[K,ee,te]),G}function Xe({prop:L,defaultProp:V,onChange:G=()=>{}}){let[K,ee]=Rt({defaultProp:V,onChange:G}),te=L!==void 0,re=te?L:K,ce=qe(G),ue=require$$0.useCallback(de=>{if(te){let ve=typeof de=="function"?de(L):de;ve!==L&&ce(ve)}else ee(de)},[te,L,ee,ce]);return[re,ue]}function Ke({activeSnapPointProp:L,setActiveSnapPointProp:V,snapPoints:G,drawerRef:K,overlayRef:ee,fadeFromIndex:te,onSnapPointChange:re,direction:ce="bottom"}){let[ue,de]=Xe({prop:L,defaultProp:G==null?void 0:G[0],onChange:V}),ve=require$$0.useMemo(()=>ue===(G==null?void 0:G[G.length-1])||null,[G,ue]),st=G&&G.length>0&&(te||te===0)&&!Number.isNaN(te)&&G[te]===ue||!G,Ae=require$$0.useMemo(()=>G==null?void 0:G.findIndex(it=>it===ue),[G,ue]),at=require$$0.useMemo(()=>{var it;return(it=G==null?void 0:G.map(lt=>{let ct=typeof window!="undefined",ut=typeof lt=="string",bt=0;if(ut&&(bt=parseInt(lt,10)),R(ce)){let Pt=ut?bt:ct?lt*window.innerHeight:0;return ct?ce==="bottom"?window.innerHeight-Pt:-window.innerHeight+Pt:Pt}let gt=ut?bt:ct?lt*window.innerWidth:0;return ct?ce==="right"?window.innerWidth-gt:-window.innerWidth+gt:gt}))!=null?it:[]},[G]),ot=require$$0.useMemo(()=>Ae!==null?at==null?void 0:at[Ae]:null,[at,Ae]),rt=require$$0.useCallback(it=>{var lt;let ct=(lt=at==null?void 0:at.findIndex(ut=>ut===it))!=null?lt:null;re(ct),y$1(K.current,{transition:`transform ${T.DURATION}s cubic-bezier(${T.EASE.join(",")})`,transform:R(ce)?`translate3d(0, ${it}px, 0)`:`translate3d(${it}px, 0, 0)`}),at&&ct!==at.length-1&&ct!==te?y$1(ee.current,{transition:`opacity ${T.DURATION}s cubic-bezier(${T.EASE.join(",")})`,opacity:"0"}):y$1(ee.current,{transition:`opacity ${T.DURATION}s cubic-bezier(${T.EASE.join(",")})`,opacity:"1"}),de(ct!==null?G==null?void 0:G[ct]:null)},[K.current,G,at,te,ee,de]);require$$0.useEffect(()=>{var it;if(L){let lt=(it=G==null?void 0:G.findIndex(ct=>ct===L))!=null?it:-1;at&&lt!==-1&&typeof at[lt]=="number"&&rt(at[lt])}},[L,G,at,rt]);function ft({draggedDistance:it,closeDrawer:lt,velocity:ct,dismissible:ut}){if(te===void 0)return;let bt=ce==="bottom"||ce==="right"?(ot!=null?ot:0)-it:(ot!=null?ot:0)+it,gt=Ae===te-1,Pt=Ae===0,Nt=it>0;if(gt&&y$1(ee.current,{transition:`opacity ${T.DURATION}s cubic-bezier(${T.EASE.join(",")})`}),ct>2&&!Nt){ut?lt():rt(at[0]);return}if(ct>2&&Nt&&at&&G){rt(at[G.length-1]);return}let Ot=at==null?void 0:at.reduce((jt,Bt)=>typeof jt!="number"||typeof Bt!="number"?jt:Math.abs(Bt-bt)<Math.abs(jt-bt)?Bt:jt),Ft=R(ce)?window.innerHeight:window.innerWidth;if(ct>be&&Math.abs(it)<Ft*.4){let jt=Nt?1:-1;if(jt>0&&ve){rt(at[G.length-1]);return}if(Pt&&jt<0&&ut&&lt(),Ae===null)return;rt(at[Ae+jt]);return}rt(Ot)}function Oe({draggedDistance:it}){if(ot===null)return;let lt=ce==="bottom"||ce==="right"?ot-it:ot+it;(ce==="bottom"||ce==="right")&&lt<at[at.length-1]||(ce==="top"||ce==="left")&&lt>at[at.length-1]||y$1(K.current,{transform:R(ce)?`translate3d(0, ${lt}px, 0)`:`translate3d(${lt}px, 0, 0)`})}function nt(it,lt){if(!G||typeof Ae!="number"||!at||te===void 0)return null;let ct=Ae===te-1;if(Ae>=te&&lt)return 0;if(ct&&!lt)return 1;if(!st&&!ct)return null;let ut=ct?Ae+1:Ae-1,bt=ct?at[ut]-at[ut-1]:at[ut+1]-at[ut],gt=it/Math.abs(bt);return ct?1-gt:gt}return{isLastSnapPoint:ve,activeSnapPoint:ue,shouldFade:st,getPercentageDragged:nt,setActiveSnapPoint:de,activeSnapPointIndex:Ae,onRelease:ft,onDrag:Oe,snapPointsOffset:at}}var xt=.25,Ht=100,Ge=8,z$1=16,Je=26,Qe="vaul-dragging";function Ze({open:L,onOpenChange:V,children:G,shouldScaleBackground:K,onDrag:ee,onRelease:te,snapPoints:re,nested:ce=!1,closeThreshold:ue=xt,scrollLockTimeout:de=Ht,dismissible:ve=!0,fadeFromIndex:st=re&&re.length-1,activeSnapPoint:Ae,setActiveSnapPoint:at,fixed:ot,modal:rt=!0,onClose:ft,direction:Oe="bottom",preventScrollRestoration:nt=!0}){var it;let[lt=!1,ct]=require$$0.useState(!1),[ut,bt]=require$$0.useState(!1),[gt,Pt]=require$$0.useState(!1),[Nt,Ot]=require$$0.useState(!1),[Ft,jt]=require$$0.useState(!1),[Bt,At]=require$$0.useState(!1),$t=require$$0.useRef(null),Ct=require$$0.useRef(null),dt=require$$0.useRef(null),mt=require$$0.useRef(null),kt=require$$0.useRef(null),It=require$$0.useRef(!1),Kt=require$$0.useRef(null),Yt=require$$0.useRef(0),nr=require$$0.useRef(!1),ur=require$$0.useRef(0),Vt=require$$0.useRef(null),lr=require$$0.useRef(((it=Vt.current)==null?void 0:it.getBoundingClientRect().height)||0),sr=require$$0.useRef(0),pr=require$$0.useCallback(Ut=>{re&&Ut===tr.length-1&&(Ct.current=new Date)},[]),{activeSnapPoint:gr,activeSnapPointIndex:ir,setActiveSnapPoint:Jt,onRelease:cr,snapPointsOffset:tr,onDrag:xr,shouldFade:Sr,getPercentageDragged:Cr}=Ke({snapPoints:re,activeSnapPointProp:Ae,setActiveSnapPointProp:at,drawerRef:Vt,fadeFromIndex:st,overlayRef:$t,onSnapPointChange:pr,direction:Oe});je({isDisabled:!lt||Ft||!rt||Bt||!ut});let{restorePositionSetting:wr}=ze({isOpen:lt,modal:rt,nested:ce,hasBeenOpened:ut,preventScrollRestoration:nt});function Lt(){return(window.innerWidth-Je)/window.innerWidth}function Gt(Ut){var or;!ve&&!re||Vt.current&&!Vt.current.contains(Ut.target)||(lr.current=((or=Vt.current)==null?void 0:or.getBoundingClientRect().height)||0,jt(!0),dt.current=new Date,Re()&&window.addEventListener("touchend",()=>It.current=!1,{once:!0}),Ut.target.setPointerCapture(Ut.pointerId),Yt.current=R(Oe)?Ut.screenY:Ut.screenX)}function Xt(Ut,or){var hr;let br=Ut,Wt=(hr=window.getSelection())==null?void 0:hr.toString(),Zt=Vt.current?ae(Vt.current,Oe):null,dr=new Date;if(br.hasAttribute("data-vaul-no-drag"))return!1;if(Oe==="right"||Oe==="left")return!0;if(Ct.current&&dr.getTime()-Ct.current.getTime()<500)return!1;if(Zt!==null&&(Oe==="bottom"?Zt>0:Zt<0))return!0;if(Wt&&Wt.length>0)return!1;if(kt.current&&dr.getTime()-kt.current.getTime()<de&&Zt===0||or)return kt.current=dr,!1;for(;br;){if(br.scrollHeight>br.clientHeight){if(br.scrollTop!==0)return kt.current=new Date,!1;if(br.getAttribute("role")==="dialog")return!0}br=br.parentNode}return!0}function ar(Ut){if(Vt.current&&Ft){let or=Oe==="bottom"||Oe==="right"?1:-1,hr=(Yt.current-(R(Oe)?Ut.screenY:Ut.screenX))*or,br=hr>0;if(re&&ir===0&&!ve||!It.current&&!Xt(Ut.target,br))return;if(Vt.current.classList.add(Qe),It.current=!0,y$1(Vt.current,{transition:"none"}),y$1($t.current,{transition:"none"}),re&&xr({draggedDistance:hr}),br&&!re){let Er=_e(hr),Pr=Math.min(Er*-1,0)*or;y$1(Vt.current,{transform:R(Oe)?`translate3d(0, ${Pr}px, 0)`:`translate3d(${Pr}px, 0, 0)`});return}let Wt=Math.abs(hr),Zt=document.querySelector("[vaul-drawer-wrapper]"),dr=Wt/lr.current,yr=Cr(Wt,br);yr!==null&&(dr=yr);let vr=1-dr;if((Sr||st&&ir===st-1)&&(ee==null||ee(Ut,dr),y$1($t.current,{opacity:`${vr}`,transition:"none"},!0)),Zt&&$t.current&&K){let Er=Math.min(Lt()+dr*(1-Lt()),1),Pr=8-dr*8,Tr=Math.max(0,14-dr*14);y$1(Zt,{borderRadius:`${Pr}px`,transform:R(Oe)?`scale(${Er}) translate3d(0, ${Tr}px, 0)`:`scale(${Er}) translate3d(${Tr}px, 0, 0)`,transition:"none"},!0)}if(!re){let Er=Wt*or;y$1(Vt.current,{transform:R(Oe)?`translate3d(0, ${Er}px, 0)`:`translate3d(${Er}px, 0, 0)`})}}}require$$0.useEffect(()=>()=>{$r(!1),wr()},[]),require$$0.useEffect(()=>{var Ut;function or(){var hr;if(!Vt.current)return;let br=document.activeElement;if(ge(br)||nr.current){let Wt=((hr=window.visualViewport)==null?void 0:hr.height)||0,Zt=window.innerHeight-Wt,dr=Vt.current.getBoundingClientRect().height||0;sr.current||(sr.current=dr);let yr=Vt.current.getBoundingClientRect().top;if(Math.abs(ur.current-Zt)>60&&(nr.current=!nr.current),re&&re.length>0&&tr&&ir&&(Zt+=tr[ir]||0),ur.current=Zt,dr>Wt||nr.current){let vr=Vt.current.getBoundingClientRect().height,Er=vr;vr>Wt&&(Er=Wt-Je),ot?Vt.current.style.height=`${vr-Math.max(Zt,0)}px`:Vt.current.style.height=`${Math.max(Er,Wt-yr)}px`}else Vt.current.style.height=`${sr.current}px`;re&&re.length>0&&!nr.current?Vt.current.style.bottom="0px":Vt.current.style.bottom=`${Math.max(Zt,0)}px`}}return(Ut=window.visualViewport)==null||Ut.addEventListener("resize",or),()=>{var hr;return(hr=window.visualViewport)==null?void 0:hr.removeEventListener("resize",or)}},[ir,re,tr]);function rr(){Vt.current&&(ft==null||ft(),y$1(Vt.current,{transform:R(Oe)?`translate3d(0, ${Oe==="bottom"?"100%":"-100%"}, 0)`:`translate3d(${Oe==="right"?"100%":"-100%"}, 0, 0)`,transition:`transform ${T.DURATION}s cubic-bezier(${T.EASE.join(",")})`}),y$1($t.current,{opacity:"0",transition:`opacity ${T.DURATION}s cubic-bezier(${T.EASE.join(",")})`}),$r(!1),setTimeout(()=>{Pt(!1),ct(!1)},300),setTimeout(()=>{re&&Jt(re[0])},T.DURATION*1e3))}require$$0.useEffect(()=>{if(!lt&&K){let Ut=setTimeout(()=>{ie(document.body)},200);return()=>clearTimeout(Ut)}},[lt,K]),require$$0.useEffect(()=>{L?(ct(!0),bt(!0)):rr()},[L]),require$$0.useEffect(()=>{Nt&&(V==null||V(lt))},[lt]),require$$0.useEffect(()=>{Ot(!0)},[]);function er(){if(!Vt.current)return;let Ut=document.querySelector("[vaul-drawer-wrapper]"),or=ae(Vt.current,Oe);y$1(Vt.current,{transform:"translate3d(0, 0, 0)",transition:`transform ${T.DURATION}s cubic-bezier(${T.EASE.join(",")})`}),y$1($t.current,{transition:`opacity ${T.DURATION}s cubic-bezier(${T.EASE.join(",")})`,opacity:"1"}),K&&or&&or>0&&lt&&y$1(Ut,{borderRadius:`${Ge}px`,overflow:"hidden",...R(Oe)?{transform:`scale(${Lt()}) translate3d(0, calc(env(safe-area-inset-top) + 14px), 0)`,transformOrigin:"top"}:{transform:`scale(${Lt()}) translate3d(calc(env(safe-area-inset-top) + 14px), 0, 0)`,transformOrigin:"left"},transitionProperty:"transform, border-radius",transitionDuration:`${T.DURATION}s`,transitionTimingFunction:`cubic-bezier(${T.EASE.join(",")})`},!0)}function mr(Ut){var or;if(!Ft||!Vt.current)return;Vt.current.classList.remove(Qe),It.current=!1,jt(!1),mt.current=new Date;let hr=ae(Vt.current,Oe);if(!Xt(Ut.target,!1)||!hr||Number.isNaN(hr)||dt.current===null)return;let br=mt.current.getTime()-dt.current.getTime(),Wt=Yt.current-(R(Oe)?Ut.screenY:Ut.screenX),Zt=Math.abs(Wt)/br;if(Zt>.05&&(At(!0),setTimeout(()=>{At(!1)},200)),re){cr({draggedDistance:Wt*(Oe==="bottom"||Oe==="right"?1:-1),closeDrawer:rr,velocity:Zt,dismissible:ve}),te==null||te(Ut,!0);return}if(Oe==="bottom"||Oe==="right"?Wt>0:Wt<0){er(),te==null||te(Ut,!0);return}if(Zt>be){rr(),te==null||te(Ut,!1);return}let dr=Math.min((or=Vt.current.getBoundingClientRect().height)!=null?or:0,window.innerHeight);if(hr>=dr*ue){rr(),te==null||te(Ut,!1);return}te==null||te(Ut,!0),er()}require$$0.useEffect(()=>{lt&&(y$1(document.documentElement,{scrollBehavior:"auto"}),Ct.current=new Date,$r(!0))},[lt]),require$$0.useEffect(()=>{var Ut;if(Vt.current&&gt){let or=(Ut=Vt==null?void 0:Vt.current)==null?void 0:Ut.querySelectorAll("*");or==null||or.forEach(hr=>{let br=hr;(br.scrollHeight>br.clientHeight||br.scrollWidth>br.clientWidth)&&br.classList.add("vaul-scrollable")})}},[gt]);function $r(Ut){let or=document.querySelector("[vaul-drawer-wrapper]");!or||!K||(Ut?(y$1(document.body,{background:document.body.style.backgroundColor||document.body.style.background}),y$1(document.body,{background:"black"},!0),y$1(or,{borderRadius:`${Ge}px`,overflow:"hidden",...R(Oe)?{transform:`scale(${Lt()}) translate3d(0, calc(env(safe-area-inset-top) + 14px), 0)`,transformOrigin:"top"}:{transform:`scale(${Lt()}) translate3d(calc(env(safe-area-inset-top) + 14px), 0, 0)`,transformOrigin:"left"},transitionProperty:"transform, border-radius",transitionDuration:`${T.DURATION}s`,transitionTimingFunction:`cubic-bezier(${T.EASE.join(",")})`})):(ie(or,"overflow"),ie(or,"transform"),ie(or,"borderRadius"),y$1(or,{transitionProperty:"transform, border-radius",transitionDuration:`${T.DURATION}s`,transitionTimingFunction:`cubic-bezier(${T.EASE.join(",")})`})))}function qt(Ut){let or=Ut?(window.innerWidth-z$1)/window.innerWidth:1,hr=Ut?-z$1:0;Kt.current&&window.clearTimeout(Kt.current),y$1(Vt.current,{transition:`transform ${T.DURATION}s cubic-bezier(${T.EASE.join(",")})`,transform:`scale(${or}) translate3d(0, ${hr}px, 0)`}),!Ut&&Vt.current&&(Kt.current=setTimeout(()=>{let br=ae(Vt.current,Oe);y$1(Vt.current,{transition:"none",transform:R(Oe)?`translate3d(0, ${br}px, 0)`:`translate3d(${br}px, 0, 0)`})},500))}function zt(Ut,or){if(or<0)return;let hr=R(Oe)?window.innerHeight:window.innerWidth,br=(hr-z$1)/hr,Wt=br+or*(1-br),Zt=-z$1+or*z$1;y$1(Vt.current,{transform:R(Oe)?`scale(${Wt}) translate3d(0, ${Zt}px, 0)`:`scale(${Wt}) translate3d(${Zt}px, 0, 0)`,transition:"none"})}function Qt(Ut,or){let hr=R(Oe)?window.innerHeight:window.innerWidth,br=or?(hr-z$1)/hr:1,Wt=or?-z$1:0;or&&y$1(Vt.current,{transition:`transform ${T.DURATION}s cubic-bezier(${T.EASE.join(",")})`,transform:R(Oe)?`scale(${br}) translate3d(0, ${Wt}px, 0)`:`scale(${br}) translate3d(${Wt}px, 0, 0)`})}return require$$0.createElement($5d3850c4d0b4e6c7$export$be92b6f5f03c0fe9,{modal:rt,onOpenChange:Ut=>{if(L!==void 0){V==null||V(Ut);return}Ut?(bt(!0),ct(Ut)):rr()},open:lt},require$$0.createElement(Ee.Provider,{value:{visible:gt,activeSnapPoint:gr,snapPoints:re,setActiveSnapPoint:Jt,drawerRef:Vt,overlayRef:$t,scaleBackground:$r,onOpenChange:V,onPress:Gt,setVisible:Pt,onRelease:mr,onDrag:ar,dismissible:ve,isOpen:lt,shouldFade:Sr,closeDrawer:rr,onNestedDrag:zt,onNestedOpenChange:qt,onNestedRelease:Qt,keyboardIsOpen:nr,openProp:L,modal:rt,snapPointsOffset:tr,direction:Oe}},G))}var et=require$$0.forwardRef(function({children:L,...V},G){let{overlayRef:K,snapPoints:ee,onRelease:te,shouldFade:re,isOpen:ce,visible:ue}=fe(),de=He(G,K),ve=ee&&ee.length>0;return require$$0.createElement($5d3850c4d0b4e6c7$export$c6fdb837b070b4ff,{onMouseUp:te,ref:de,"vaul-drawer-visible":ue?"true":"false","vaul-overlay":"","vaul-snap-points":ce&&ve?"true":"false","vaul-snap-points-overlay":ce&&re?"true":"false",...V})});et.displayName="Drawer.Overlay";var tt=require$$0.forwardRef(function({onOpenAutoFocus:L,onPointerDownOutside:V,onAnimationEnd:G,style:K,...ee},te){let{drawerRef:re,onPress:ce,onRelease:ue,onDrag:de,dismissible:ve,keyboardIsOpen:st,snapPointsOffset:Ae,visible:at,closeDrawer:ot,modal:rt,openProp:ft,onOpenChange:Oe,setVisible:nt,direction:it}=fe(),lt=He(te,re);return require$$0.useEffect(()=>{nt(!0)},[]),require$$0.createElement($5d3850c4d0b4e6c7$export$7c6e2c02157bb7d2,{onOpenAutoFocus:ct=>{var ut;L?L(ct):(ct.preventDefault(),(ut=re.current)==null||ut.focus())},onPointerDown:ce,onPointerDownOutside:ct=>{if(V==null||V(ct),!rt||ct.defaultPrevented){ct.preventDefault();return}st.current&&(st.current=!1),ct.preventDefault(),Oe==null||Oe(!1),!(!ve||ft!==void 0)&&ot()},onPointerMove:de,onPointerUp:ue,ref:lt,style:Ae&&Ae.length>0?{"--snap-point-height":`${Ae[0]}px`,...K}:K,...ee,"vaul-drawer":"","vaul-drawer-direction":it,"vaul-drawer-visible":at?"true":"false"})});tt.displayName="Drawer.Content";function Mt({onDrag:L,onOpenChange:V,...G}){let{onNestedDrag:K,onNestedOpenChange:ee,onNestedRelease:te}=fe();if(!K)throw new Error("Drawer.NestedRoot must be placed in another drawer");return require$$0.createElement(Ze,{nested:!0,onClose:()=>{ee(!1)},onDrag:(re,ce)=>{K(re,ce),L==null||L(re,ce)},onOpenChange:re=>{re&&ee(re),V==null||V(re)},onRelease:te,...G})}var nn={Root:Ze,NestedRoot:Mt,Content:tt,Overlay:et,Trigger:$5d3850c4d0b4e6c7$export$41fb9f06171c75f4,Portal:$5d3850c4d0b4e6c7$export$602eac185826482c,Close:$5d3850c4d0b4e6c7$export$f39c2d165cd861fe,Title:$5d3850c4d0b4e6c7$export$f99233281efd08a0,Description:$5d3850c4d0b4e6c7$export$393edc798c47379d},lottie$1={exports:{}};(function(module,exports){typeof navigator!="undefined"&&function(L,V){module.exports=V()}(commonjsGlobal,function(){var svgNS="http://www.w3.org/2000/svg",locationHref="",_useWebWorker=!1,initialDefaultFrame=-999999,setWebWorker=function(V){_useWebWorker=!!V},getWebWorker=function(){return _useWebWorker},setLocationHref=function(V){locationHref=V},getLocationHref=function(){return locationHref};function createTag(L){return document.createElement(L)}function extendPrototype(L,V){var G,K=L.length,ee;for(G=0;G<K;G+=1){ee=L[G].prototype;for(var te in ee)Object.prototype.hasOwnProperty.call(ee,te)&&(V.prototype[te]=ee[te])}}function getDescriptor(L,V){return Object.getOwnPropertyDescriptor(L,V)}function createProxyFunction(L){function V(){}return V.prototype=L,V}var audioControllerFactory=function(){function L(V){this.audios=[],this.audioFactory=V,this._volume=1,this._isMuted=!1}return L.prototype={addAudio:function(G){this.audios.push(G)},pause:function(){var G,K=this.audios.length;for(G=0;G<K;G+=1)this.audios[G].pause()},resume:function(){var G,K=this.audios.length;for(G=0;G<K;G+=1)this.audios[G].resume()},setRate:function(G){var K,ee=this.audios.length;for(K=0;K<ee;K+=1)this.audios[K].setRate(G)},createAudio:function(G){return this.audioFactory?this.audioFactory(G):window.Howl?new window.Howl({src:[G]}):{isPlaying:!1,play:function(){this.isPlaying=!0},seek:function(){this.isPlaying=!1},playing:function(){},rate:function(){},setVolume:function(){}}},setAudioFactory:function(G){this.audioFactory=G},setVolume:function(G){this._volume=G,this._updateVolume()},mute:function(){this._isMuted=!0,this._updateVolume()},unmute:function(){this._isMuted=!1,this._updateVolume()},getVolume:function(){return this._volume},_updateVolume:function(){var G,K=this.audios.length;for(G=0;G<K;G+=1)this.audios[G].volume(this._volume*(this._isMuted?0:1))}},function(){return new L}}(),createTypedArray=function(){function L(G,K){var ee=0,te=[],re;switch(G){case"int16":case"uint8c":re=1;break;default:re=1.1;break}for(ee=0;ee<K;ee+=1)te.push(re);return te}function V(G,K){return G==="float32"?new Float32Array(K):G==="int16"?new Int16Array(K):G==="uint8c"?new Uint8ClampedArray(K):L(G,K)}return typeof Uint8ClampedArray=="function"&&typeof Float32Array=="function"?V:L}();function createSizedArray(L){return Array.apply(null,{length:L})}function _typeof$6(L){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof$6=function(G){return typeof G}:_typeof$6=function(G){return G&&typeof Symbol=="function"&&G.constructor===Symbol&&G!==Symbol.prototype?"symbol":typeof G},_typeof$6(L)}var subframeEnabled=!0,expressionsPlugin=null,expressionsInterfaces=null,idPrefix$1="",isSafari=/^((?!chrome|android).)*safari/i.test(navigator.userAgent),bmPow=Math.pow,bmSqrt=Math.sqrt,bmFloor=Math.floor,bmMax=Math.max,bmMin=Math.min,BMMath={};(function(){var L=["abs","acos","acosh","asin","asinh","atan","atanh","atan2","ceil","cbrt","expm1","clz32","cos","cosh","exp","floor","fround","hypot","imul","log","log1p","log2","log10","max","min","pow","random","round","sign","sin","sinh","sqrt","tan","tanh","trunc","E","LN10","LN2","LOG10E","LOG2E","PI","SQRT1_2","SQRT2"],V,G=L.length;for(V=0;V<G;V+=1)BMMath[L[V]]=Math[L[V]]})(),BMMath.random=Math.random,BMMath.abs=function(L){var V=_typeof$6(L);if(V==="object"&&L.length){var G=createSizedArray(L.length),K,ee=L.length;for(K=0;K<ee;K+=1)G[K]=Math.abs(L[K]);return G}return Math.abs(L)};var defaultCurveSegments=150,degToRads=Math.PI/180,roundCorner=.5519;function styleDiv(L){L.style.position="absolute",L.style.top=0,L.style.left=0,L.style.display="block",L.style.transformOrigin="0 0",L.style.webkitTransformOrigin="0 0",L.style.backfaceVisibility="visible",L.style.webkitBackfaceVisibility="visible",L.style.transformStyle="preserve-3d",L.style.webkitTransformStyle="preserve-3d",L.style.mozTransformStyle="preserve-3d"}function BMEnterFrameEvent(L,V,G,K){this.type=L,this.currentTime=V,this.totalTime=G,this.direction=K<0?-1:1}function BMCompleteEvent(L,V){this.type=L,this.direction=V<0?-1:1}function BMCompleteLoopEvent(L,V,G,K){this.type=L,this.currentLoop=G,this.totalLoops=V,this.direction=K<0?-1:1}function BMSegmentStartEvent(L,V,G){this.type=L,this.firstFrame=V,this.totalFrames=G}function BMDestroyEvent(L,V){this.type=L,this.target=V}function BMRenderFrameErrorEvent(L,V){this.type="renderFrameError",this.nativeError=L,this.currentTime=V}function BMConfigErrorEvent(L){this.type="configError",this.nativeError=L}var createElementID=function(){var L=0;return function(){return L+=1,idPrefix$1+"__lottie_element_"+L}}();function HSVtoRGB(L,V,G){var K,ee,te,re,ce,ue,de,ve;switch(re=Math.floor(L*6),ce=L*6-re,ue=G*(1-V),de=G*(1-ce*V),ve=G*(1-(1-ce)*V),re%6){case 0:K=G,ee=ve,te=ue;break;case 1:K=de,ee=G,te=ue;break;case 2:K=ue,ee=G,te=ve;break;case 3:K=ue,ee=de,te=G;break;case 4:K=ve,ee=ue,te=G;break;case 5:K=G,ee=ue,te=de;break}return[K,ee,te]}function RGBtoHSV(L,V,G){var K=Math.max(L,V,G),ee=Math.min(L,V,G),te=K-ee,re,ce=K===0?0:te/K,ue=K/255;switch(K){case ee:re=0;break;case L:re=V-G+te*(V<G?6:0),re/=6*te;break;case V:re=G-L+te*2,re/=6*te;break;case G:re=L-V+te*4,re/=6*te;break}return[re,ce,ue]}function addSaturationToRGB(L,V){var G=RGBtoHSV(L[0]*255,L[1]*255,L[2]*255);return G[1]+=V,G[1]>1?G[1]=1:G[1]<=0&&(G[1]=0),HSVtoRGB(G[0],G[1],G[2])}function addBrightnessToRGB(L,V){var G=RGBtoHSV(L[0]*255,L[1]*255,L[2]*255);return G[2]+=V,G[2]>1?G[2]=1:G[2]<0&&(G[2]=0),HSVtoRGB(G[0],G[1],G[2])}function addHueToRGB(L,V){var G=RGBtoHSV(L[0]*255,L[1]*255,L[2]*255);return G[0]+=V/360,G[0]>1?G[0]-=1:G[0]<0&&(G[0]+=1),HSVtoRGB(G[0],G[1],G[2])}var rgbToHex=function(){var L=[],V,G;for(V=0;V<256;V+=1)G=V.toString(16),L[V]=G.length===1?"0"+G:G;return function(K,ee,te){return K<0&&(K=0),ee<0&&(ee=0),te<0&&(te=0),"#"+L[K]+L[ee]+L[te]}}(),setSubframeEnabled=function(V){subframeEnabled=!!V},getSubframeEnabled=function(){return subframeEnabled},setExpressionsPlugin=function(V){expressionsPlugin=V},getExpressionsPlugin=function(){return expressionsPlugin},setExpressionInterfaces=function(V){expressionsInterfaces=V},getExpressionInterfaces=function(){return expressionsInterfaces},setDefaultCurveSegments=function(V){defaultCurveSegments=V},getDefaultCurveSegments=function(){return defaultCurveSegments},setIdPrefix=function(V){idPrefix$1=V};function createNS(L){return document.createElementNS(svgNS,L)}function _typeof$5(L){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof$5=function(G){return typeof G}:_typeof$5=function(G){return G&&typeof Symbol=="function"&&G.constructor===Symbol&&G!==Symbol.prototype?"symbol":typeof G},_typeof$5(L)}var dataManager=function(){var L=1,V=[],G,K,ee={onmessage:function(){},postMessage:function(at){G({data:at})}},te={postMessage:function(at){ee.onmessage({data:at})}};function re(Ae){if(window.Worker&&window.Blob&&getWebWorker()){var at=new Blob(["var _workerSelf = self; self.onmessage = ",Ae.toString()],{type:"text/javascript"}),ot=URL.createObjectURL(at);return new Worker(ot)}return G=Ae,ee}function ce(){K||(K=re(function(at){function ot(){function ft(At,$t){var Ct,dt,mt=At.length,kt,It,Kt,Yt;for(dt=0;dt<mt;dt+=1)if(Ct=At[dt],"ks"in Ct&&!Ct.completed){if(Ct.completed=!0,Ct.hasMask){var nr=Ct.masksProperties;for(It=nr.length,kt=0;kt<It;kt+=1)if(nr[kt].pt.k.i)ct(nr[kt].pt.k);else for(Yt=nr[kt].pt.k.length,Kt=0;Kt<Yt;Kt+=1)nr[kt].pt.k[Kt].s&&ct(nr[kt].pt.k[Kt].s[0]),nr[kt].pt.k[Kt].e&&ct(nr[kt].pt.k[Kt].e[0])}Ct.ty===0?(Ct.layers=it(Ct.refId,$t),ft(Ct.layers,$t)):Ct.ty===4?lt(Ct.shapes):Ct.ty===5&&jt(Ct)}}function Oe(At,$t){if(At){var Ct=0,dt=At.length;for(Ct=0;Ct<dt;Ct+=1)At[Ct].t===1&&(At[Ct].data.layers=it(At[Ct].data.refId,$t),ft(At[Ct].data.layers,$t))}}function nt(At,$t){for(var Ct=0,dt=$t.length;Ct<dt;){if($t[Ct].id===At)return $t[Ct];Ct+=1}return null}function it(At,$t){var Ct=nt(At,$t);return Ct?Ct.layers.__used?JSON.parse(JSON.stringify(Ct.layers)):(Ct.layers.__used=!0,Ct.layers):null}function lt(At){var $t,Ct=At.length,dt,mt;for($t=Ct-1;$t>=0;$t-=1)if(At[$t].ty==="sh")if(At[$t].ks.k.i)ct(At[$t].ks.k);else for(mt=At[$t].ks.k.length,dt=0;dt<mt;dt+=1)At[$t].ks.k[dt].s&&ct(At[$t].ks.k[dt].s[0]),At[$t].ks.k[dt].e&&ct(At[$t].ks.k[dt].e[0]);else At[$t].ty==="gr"&&lt(At[$t].it)}function ct(At){var $t,Ct=At.i.length;for($t=0;$t<Ct;$t+=1)At.i[$t][0]+=At.v[$t][0],At.i[$t][1]+=At.v[$t][1],At.o[$t][0]+=At.v[$t][0],At.o[$t][1]+=At.v[$t][1]}function ut(At,$t){var Ct=$t?$t.split("."):[100,100,100];return At[0]>Ct[0]?!0:Ct[0]>At[0]?!1:At[1]>Ct[1]?!0:Ct[1]>At[1]?!1:At[2]>Ct[2]?!0:Ct[2]>At[2]?!1:null}var bt=function(){var At=[4,4,14];function $t(dt){var mt=dt.t.d;dt.t.d={k:[{s:mt,t:0}]}}function Ct(dt){var mt,kt=dt.length;for(mt=0;mt<kt;mt+=1)dt[mt].ty===5&&$t(dt[mt])}return function(dt){if(ut(At,dt.v)&&(Ct(dt.layers),dt.assets)){var mt,kt=dt.assets.length;for(mt=0;mt<kt;mt+=1)dt.assets[mt].layers&&Ct(dt.assets[mt].layers)}}}(),gt=function(){var At=[4,7,99];return function($t){if($t.chars&&!ut(At,$t.v)){var Ct,dt=$t.chars.length;for(Ct=0;Ct<dt;Ct+=1){var mt=$t.chars[Ct];mt.data&&mt.data.shapes&&(lt(mt.data.shapes),mt.data.ip=0,mt.data.op=99999,mt.data.st=0,mt.data.sr=1,mt.data.ks={p:{k:[0,0],a:0},s:{k:[100,100],a:0},a:{k:[0,0],a:0},r:{k:0,a:0},o:{k:100,a:0}},$t.chars[Ct].t||(mt.data.shapes.push({ty:"no"}),mt.data.shapes[0].it.push({p:{k:[0,0],a:0},s:{k:[100,100],a:0},a:{k:[0,0],a:0},r:{k:0,a:0},o:{k:100,a:0},sk:{k:0,a:0},sa:{k:0,a:0},ty:"tr"})))}}}}(),Pt=function(){var At=[5,7,15];function $t(dt){var mt=dt.t.p;typeof mt.a=="number"&&(mt.a={a:0,k:mt.a}),typeof mt.p=="number"&&(mt.p={a:0,k:mt.p}),typeof mt.r=="number"&&(mt.r={a:0,k:mt.r})}function Ct(dt){var mt,kt=dt.length;for(mt=0;mt<kt;mt+=1)dt[mt].ty===5&&$t(dt[mt])}return function(dt){if(ut(At,dt.v)&&(Ct(dt.layers),dt.assets)){var mt,kt=dt.assets.length;for(mt=0;mt<kt;mt+=1)dt.assets[mt].layers&&Ct(dt.assets[mt].layers)}}}(),Nt=function(){var At=[4,1,9];function $t(dt){var mt,kt=dt.length,It,Kt;for(mt=0;mt<kt;mt+=1)if(dt[mt].ty==="gr")$t(dt[mt].it);else if(dt[mt].ty==="fl"||dt[mt].ty==="st")if(dt[mt].c.k&&dt[mt].c.k[0].i)for(Kt=dt[mt].c.k.length,It=0;It<Kt;It+=1)dt[mt].c.k[It].s&&(dt[mt].c.k[It].s[0]/=255,dt[mt].c.k[It].s[1]/=255,dt[mt].c.k[It].s[2]/=255,dt[mt].c.k[It].s[3]/=255),dt[mt].c.k[It].e&&(dt[mt].c.k[It].e[0]/=255,dt[mt].c.k[It].e[1]/=255,dt[mt].c.k[It].e[2]/=255,dt[mt].c.k[It].e[3]/=255);else dt[mt].c.k[0]/=255,dt[mt].c.k[1]/=255,dt[mt].c.k[2]/=255,dt[mt].c.k[3]/=255}function Ct(dt){var mt,kt=dt.length;for(mt=0;mt<kt;mt+=1)dt[mt].ty===4&&$t(dt[mt].shapes)}return function(dt){if(ut(At,dt.v)&&(Ct(dt.layers),dt.assets)){var mt,kt=dt.assets.length;for(mt=0;mt<kt;mt+=1)dt.assets[mt].layers&&Ct(dt.assets[mt].layers)}}}(),Ot=function(){var At=[4,4,18];function $t(dt){var mt,kt=dt.length,It,Kt;for(mt=kt-1;mt>=0;mt-=1)if(dt[mt].ty==="sh")if(dt[mt].ks.k.i)dt[mt].ks.k.c=dt[mt].closed;else for(Kt=dt[mt].ks.k.length,It=0;It<Kt;It+=1)dt[mt].ks.k[It].s&&(dt[mt].ks.k[It].s[0].c=dt[mt].closed),dt[mt].ks.k[It].e&&(dt[mt].ks.k[It].e[0].c=dt[mt].closed);else dt[mt].ty==="gr"&&$t(dt[mt].it)}function Ct(dt){var mt,kt,It=dt.length,Kt,Yt,nr,ur;for(kt=0;kt<It;kt+=1){if(mt=dt[kt],mt.hasMask){var Vt=mt.masksProperties;for(Yt=Vt.length,Kt=0;Kt<Yt;Kt+=1)if(Vt[Kt].pt.k.i)Vt[Kt].pt.k.c=Vt[Kt].cl;else for(ur=Vt[Kt].pt.k.length,nr=0;nr<ur;nr+=1)Vt[Kt].pt.k[nr].s&&(Vt[Kt].pt.k[nr].s[0].c=Vt[Kt].cl),Vt[Kt].pt.k[nr].e&&(Vt[Kt].pt.k[nr].e[0].c=Vt[Kt].cl)}mt.ty===4&&$t(mt.shapes)}}return function(dt){if(ut(At,dt.v)&&(Ct(dt.layers),dt.assets)){var mt,kt=dt.assets.length;for(mt=0;mt<kt;mt+=1)dt.assets[mt].layers&&Ct(dt.assets[mt].layers)}}}();function Ft(At){At.__complete||(Nt(At),bt(At),gt(At),Pt(At),Ot(At),ft(At.layers,At.assets),Oe(At.chars,At.assets),At.__complete=!0)}function jt(At){At.t.a.length===0&&"m"in At.t.p}var Bt={};return Bt.completeData=Ft,Bt.checkColors=Nt,Bt.checkChars=gt,Bt.checkPathProperties=Pt,Bt.checkShapes=Ot,Bt.completeLayers=ft,Bt}if(te.dataManager||(te.dataManager=ot()),te.assetLoader||(te.assetLoader=function(){function ft(nt){var it=nt.getResponseHeader("content-type");return it&&nt.responseType==="json"&&it.indexOf("json")!==-1||nt.response&&_typeof$5(nt.response)==="object"?nt.response:nt.response&&typeof nt.response=="string"?JSON.parse(nt.response):nt.responseText?JSON.parse(nt.responseText):null}function Oe(nt,it,lt,ct){var ut,bt=new XMLHttpRequest;try{bt.responseType="json"}catch{}bt.onreadystatechange=function(){if(bt.readyState===4)if(bt.status===200)ut=ft(bt),lt(ut);else try{ut=ft(bt),lt(ut)}catch(gt){ct&&ct(gt)}};try{bt.open(["G","E","T"].join(""),nt,!0)}catch{bt.open(["G","E","T"].join(""),it+"/"+nt,!0)}bt.send()}return{load:Oe}}()),at.data.type==="loadAnimation")te.assetLoader.load(at.data.path,at.data.fullPath,function(ft){te.dataManager.completeData(ft),te.postMessage({id:at.data.id,payload:ft,status:"success"})},function(){te.postMessage({id:at.data.id,status:"error"})});else if(at.data.type==="complete"){var rt=at.data.animation;te.dataManager.completeData(rt),te.postMessage({id:at.data.id,payload:rt,status:"success"})}else at.data.type==="loadData"&&te.assetLoader.load(at.data.path,at.data.fullPath,function(ft){te.postMessage({id:at.data.id,payload:ft,status:"success"})},function(){te.postMessage({id:at.data.id,status:"error"})})}),K.onmessage=function(Ae){var at=Ae.data,ot=at.id,rt=V[ot];V[ot]=null,at.status==="success"?rt.onComplete(at.payload):rt.onError&&rt.onError()})}function ue(Ae,at){L+=1;var ot="processId_"+L;return V[ot]={onComplete:Ae,onError:at},ot}function de(Ae,at,ot){ce();var rt=ue(at,ot);K.postMessage({type:"loadAnimation",path:Ae,fullPath:window.location.origin+window.location.pathname,id:rt})}function ve(Ae,at,ot){ce();var rt=ue(at,ot);K.postMessage({type:"loadData",path:Ae,fullPath:window.location.origin+window.location.pathname,id:rt})}function st(Ae,at,ot){ce();var rt=ue(at,ot);K.postMessage({type:"complete",animation:Ae,id:rt})}return{loadAnimation:de,loadData:ve,completeAnimation:st}}(),ImagePreloader=function(){var L=function(){var Oe=createTag("canvas");Oe.width=1,Oe.height=1;var nt=Oe.getContext("2d");return nt.fillStyle="rgba(0,0,0,0)",nt.fillRect(0,0,1,1),Oe}();function V(){this.loadedAssets+=1,this.loadedAssets===this.totalImages&&this.loadedFootagesCount===this.totalFootages&&this.imagesLoadedCb&&this.imagesLoadedCb(null)}function G(){this.loadedFootagesCount+=1,this.loadedAssets===this.totalImages&&this.loadedFootagesCount===this.totalFootages&&this.imagesLoadedCb&&this.imagesLoadedCb(null)}function K(Oe,nt,it){var lt="";if(Oe.e)lt=Oe.p;else if(nt){var ct=Oe.p;ct.indexOf("images/")!==-1&&(ct=ct.split("/")[1]),lt=nt+ct}else lt=it,lt+=Oe.u?Oe.u:"",lt+=Oe.p;return lt}function ee(Oe){var nt=0,it=setInterval(function(){var lt=Oe.getBBox();(lt.width||nt>500)&&(this._imageLoaded(),clearInterval(it)),nt+=1}.bind(this),50)}function te(Oe){var nt=K(Oe,this.assetsPath,this.path),it=createNS("image");isSafari?this.testImageLoaded(it):it.addEventListener("load",this._imageLoaded,!1),it.addEventListener("error",function(){lt.img=L,this._imageLoaded()}.bind(this),!1),it.setAttributeNS("http://www.w3.org/1999/xlink","href",nt),this._elementHelper.append?this._elementHelper.append(it):this._elementHelper.appendChild(it);var lt={img:it,assetData:Oe};return lt}function re(Oe){var nt=K(Oe,this.assetsPath,this.path),it=createTag("img");it.crossOrigin="anonymous",it.addEventListener("load",this._imageLoaded,!1),it.addEventListener("error",function(){lt.img=L,this._imageLoaded()}.bind(this),!1),it.src=nt;var lt={img:it,assetData:Oe};return lt}function ce(Oe){var nt={assetData:Oe},it=K(Oe,this.assetsPath,this.path);return dataManager.loadData(it,function(lt){nt.img=lt,this._footageLoaded()}.bind(this),function(){nt.img={},this._footageLoaded()}.bind(this)),nt}function ue(Oe,nt){this.imagesLoadedCb=nt;var it,lt=Oe.length;for(it=0;it<lt;it+=1)Oe[it].layers||(!Oe[it].t||Oe[it].t==="seq"?(this.totalImages+=1,this.images.push(this._createImageData(Oe[it]))):Oe[it].t===3&&(this.totalFootages+=1,this.images.push(this.createFootageData(Oe[it]))))}function de(Oe){this.path=Oe||""}function ve(Oe){this.assetsPath=Oe||""}function st(Oe){for(var nt=0,it=this.images.length;nt<it;){if(this.images[nt].assetData===Oe)return this.images[nt].img;nt+=1}return null}function Ae(){this.imagesLoadedCb=null,this.images.length=0}function at(){return this.totalImages===this.loadedAssets}function ot(){return this.totalFootages===this.loadedFootagesCount}function rt(Oe,nt){Oe==="svg"?(this._elementHelper=nt,this._createImageData=this.createImageData.bind(this)):this._createImageData=this.createImgData.bind(this)}function ft(){this._imageLoaded=V.bind(this),this._footageLoaded=G.bind(this),this.testImageLoaded=ee.bind(this),this.createFootageData=ce.bind(this),this.assetsPath="",this.path="",this.totalImages=0,this.totalFootages=0,this.loadedAssets=0,this.loadedFootagesCount=0,this.imagesLoadedCb=null,this.images=[]}return ft.prototype={loadAssets:ue,setAssetsPath:ve,setPath:de,loadedImages:at,loadedFootages:ot,destroy:Ae,getAsset:st,createImgData:re,createImageData:te,imageLoaded:V,footageLoaded:G,setCacheType:rt},ft}();function BaseEvent(){}BaseEvent.prototype={triggerEvent:function(V,G){if(this._cbs[V])for(var K=this._cbs[V],ee=0;ee<K.length;ee+=1)K[ee](G)},addEventListener:function(V,G){return this._cbs[V]||(this._cbs[V]=[]),this._cbs[V].push(G),function(){this.removeEventListener(V,G)}.bind(this)},removeEventListener:function(V,G){if(!G)this._cbs[V]=null;else if(this._cbs[V]){for(var K=0,ee=this._cbs[V].length;K<ee;)this._cbs[V][K]===G&&(this._cbs[V].splice(K,1),K-=1,ee-=1),K+=1;this._cbs[V].length||(this._cbs[V]=null)}}};var markerParser=function(){function L(V){for(var G=V.split(`\r
`),K={},ee,te=0,re=0;re<G.length;re+=1)ee=G[re].split(":"),ee.length===2&&(K[ee[0]]=ee[1].trim(),te+=1);if(te===0)throw new Error;return K}return function(V){for(var G=[],K=0;K<V.length;K+=1){var ee=V[K],te={time:ee.tm,duration:ee.dr};try{te.payload=JSON.parse(V[K].cm)}catch{try{te.payload=L(V[K].cm)}catch{te.payload={name:V[K].cm}}}G.push(te)}return G}}(),ProjectInterface=function(){function L(V){this.compositions.push(V)}return function(){function V(G){for(var K=0,ee=this.compositions.length;K<ee;){if(this.compositions[K].data&&this.compositions[K].data.nm===G)return this.compositions[K].prepareFrame&&this.compositions[K].data.xt&&this.compositions[K].prepareFrame(this.currentFrame),this.compositions[K].compInterface;K+=1}return null}return V.compositions=[],V.currentFrame=0,V.registerComposition=L,V}}(),renderers={},registerRenderer=function(V,G){renderers[V]=G};function getRenderer(L){return renderers[L]}function getRegisteredRenderer(){if(renderers.canvas)return"canvas";for(var L in renderers)if(renderers[L])return L;return""}function _typeof$4(L){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof$4=function(G){return typeof G}:_typeof$4=function(G){return G&&typeof Symbol=="function"&&G.constructor===Symbol&&G!==Symbol.prototype?"symbol":typeof G},_typeof$4(L)}var AnimationItem=function(){this._cbs=[],this.name="",this.path="",this.isLoaded=!1,this.currentFrame=0,this.currentRawFrame=0,this.firstFrame=0,this.totalFrames=0,this.frameRate=0,this.frameMult=0,this.playSpeed=1,this.playDirection=1,this.playCount=0,this.animationData={},this.assets=[],this.isPaused=!0,this.autoplay=!1,this.loop=!0,this.renderer=null,this.animationID=createElementID(),this.assetsPath="",this.timeCompleted=0,this.segmentPos=0,this.isSubframeEnabled=getSubframeEnabled(),this.segments=[],this._idle=!0,this._completedLoop=!1,this.projectInterface=ProjectInterface(),this.imagePreloader=new ImagePreloader,this.audioController=audioControllerFactory(),this.markers=[],this.configAnimation=this.configAnimation.bind(this),this.onSetupError=this.onSetupError.bind(this),this.onSegmentComplete=this.onSegmentComplete.bind(this),this.drawnFrameEvent=new BMEnterFrameEvent("drawnFrame",0,0,0),this.expressionsPlugin=getExpressionsPlugin()};extendPrototype([BaseEvent],AnimationItem),AnimationItem.prototype.setParams=function(L){(L.wrapper||L.container)&&(this.wrapper=L.wrapper||L.container);var V="svg";L.animType?V=L.animType:L.renderer&&(V=L.renderer);var G=getRenderer(V);this.renderer=new G(this,L.rendererSettings),this.imagePreloader.setCacheType(V,this.renderer.globalData.defs),this.renderer.setProjectInterface(this.projectInterface),this.animType=V,L.loop===""||L.loop===null||L.loop===void 0||L.loop===!0?this.loop=!0:L.loop===!1?this.loop=!1:this.loop=parseInt(L.loop,10),this.autoplay="autoplay"in L?L.autoplay:!0,this.name=L.name?L.name:"",this.autoloadSegments=Object.prototype.hasOwnProperty.call(L,"autoloadSegments")?L.autoloadSegments:!0,this.assetsPath=L.assetsPath,this.initialSegment=L.initialSegment,L.audioFactory&&this.audioController.setAudioFactory(L.audioFactory),L.animationData?this.setupAnimation(L.animationData):L.path&&(L.path.lastIndexOf("\\")!==-1?this.path=L.path.substr(0,L.path.lastIndexOf("\\")+1):this.path=L.path.substr(0,L.path.lastIndexOf("/")+1),this.fileName=L.path.substr(L.path.lastIndexOf("/")+1),this.fileName=this.fileName.substr(0,this.fileName.lastIndexOf(".json")),dataManager.loadAnimation(L.path,this.configAnimation,this.onSetupError))},AnimationItem.prototype.onSetupError=function(){this.trigger("data_failed")},AnimationItem.prototype.setupAnimation=function(L){dataManager.completeAnimation(L,this.configAnimation)},AnimationItem.prototype.setData=function(L,V){V&&_typeof$4(V)!=="object"&&(V=JSON.parse(V));var G={wrapper:L,animationData:V},K=L.attributes;G.path=K.getNamedItem("data-animation-path")?K.getNamedItem("data-animation-path").value:K.getNamedItem("data-bm-path")?K.getNamedItem("data-bm-path").value:K.getNamedItem("bm-path")?K.getNamedItem("bm-path").value:"",G.animType=K.getNamedItem("data-anim-type")?K.getNamedItem("data-anim-type").value:K.getNamedItem("data-bm-type")?K.getNamedItem("data-bm-type").value:K.getNamedItem("bm-type")?K.getNamedItem("bm-type").value:K.getNamedItem("data-bm-renderer")?K.getNamedItem("data-bm-renderer").value:K.getNamedItem("bm-renderer")?K.getNamedItem("bm-renderer").value:getRegisteredRenderer()||"canvas";var ee=K.getNamedItem("data-anim-loop")?K.getNamedItem("data-anim-loop").value:K.getNamedItem("data-bm-loop")?K.getNamedItem("data-bm-loop").value:K.getNamedItem("bm-loop")?K.getNamedItem("bm-loop").value:"";ee==="false"?G.loop=!1:ee==="true"?G.loop=!0:ee!==""&&(G.loop=parseInt(ee,10));var te=K.getNamedItem("data-anim-autoplay")?K.getNamedItem("data-anim-autoplay").value:K.getNamedItem("data-bm-autoplay")?K.getNamedItem("data-bm-autoplay").value:K.getNamedItem("bm-autoplay")?K.getNamedItem("bm-autoplay").value:!0;G.autoplay=te!=="false",G.name=K.getNamedItem("data-name")?K.getNamedItem("data-name").value:K.getNamedItem("data-bm-name")?K.getNamedItem("data-bm-name").value:K.getNamedItem("bm-name")?K.getNamedItem("bm-name").value:"";var re=K.getNamedItem("data-anim-prerender")?K.getNamedItem("data-anim-prerender").value:K.getNamedItem("data-bm-prerender")?K.getNamedItem("data-bm-prerender").value:K.getNamedItem("bm-prerender")?K.getNamedItem("bm-prerender").value:"";re==="false"&&(G.prerender=!1),G.path?this.setParams(G):this.trigger("destroy")},AnimationItem.prototype.includeLayers=function(L){L.op>this.animationData.op&&(this.animationData.op=L.op,this.totalFrames=Math.floor(L.op-this.animationData.ip));var V=this.animationData.layers,G,K=V.length,ee=L.layers,te,re=ee.length;for(te=0;te<re;te+=1)for(G=0;G<K;){if(V[G].id===ee[te].id){V[G]=ee[te];break}G+=1}if((L.chars||L.fonts)&&(this.renderer.globalData.fontManager.addChars(L.chars),this.renderer.globalData.fontManager.addFonts(L.fonts,this.renderer.globalData.defs)),L.assets)for(K=L.assets.length,G=0;G<K;G+=1)this.animationData.assets.push(L.assets[G]);this.animationData.__complete=!1,dataManager.completeAnimation(this.animationData,this.onSegmentComplete)},AnimationItem.prototype.onSegmentComplete=function(L){this.animationData=L;var V=getExpressionsPlugin();V&&V.initExpressions(this),this.loadNextSegment()},AnimationItem.prototype.loadNextSegment=function(){var L=this.animationData.segments;if(!L||L.length===0||!this.autoloadSegments){this.trigger("data_ready"),this.timeCompleted=this.totalFrames;return}var V=L.shift();this.timeCompleted=V.time*this.frameRate;var G=this.path+this.fileName+"_"+this.segmentPos+".json";this.segmentPos+=1,dataManager.loadData(G,this.includeLayers.bind(this),function(){this.trigger("data_failed")}.bind(this))},AnimationItem.prototype.loadSegments=function(){var L=this.animationData.segments;L||(this.timeCompleted=this.totalFrames),this.loadNextSegment()},AnimationItem.prototype.imagesLoaded=function(){this.trigger("loaded_images"),this.checkLoaded()},AnimationItem.prototype.preloadImages=function(){this.imagePreloader.setAssetsPath(this.assetsPath),this.imagePreloader.setPath(this.path),this.imagePreloader.loadAssets(this.animationData.assets,this.imagesLoaded.bind(this))},AnimationItem.prototype.configAnimation=function(L){if(!!this.renderer)try{this.animationData=L,this.initialSegment?(this.totalFrames=Math.floor(this.initialSegment[1]-this.initialSegment[0]),this.firstFrame=Math.round(this.initialSegment[0])):(this.totalFrames=Math.floor(this.animationData.op-this.animationData.ip),this.firstFrame=Math.round(this.animationData.ip)),this.renderer.configAnimation(L),L.assets||(L.assets=[]),this.assets=this.animationData.assets,this.frameRate=this.animationData.fr,this.frameMult=this.animationData.fr/1e3,this.renderer.searchExtraCompositions(L.assets),this.markers=markerParser(L.markers||[]),this.trigger("config_ready"),this.preloadImages(),this.loadSegments(),this.updaFrameModifier(),this.waitForFontsLoaded(),this.isPaused&&this.audioController.pause()}catch(V){this.triggerConfigError(V)}},AnimationItem.prototype.waitForFontsLoaded=function(){!this.renderer||(this.renderer.globalData.fontManager.isLoaded?this.checkLoaded():setTimeout(this.waitForFontsLoaded.bind(this),20))},AnimationItem.prototype.checkLoaded=function(){if(!this.isLoaded&&this.renderer.globalData.fontManager.isLoaded&&(this.imagePreloader.loadedImages()||this.renderer.rendererType!=="canvas")&&this.imagePreloader.loadedFootages()){this.isLoaded=!0;var L=getExpressionsPlugin();L&&L.initExpressions(this),this.renderer.initItems(),setTimeout(function(){this.trigger("DOMLoaded")}.bind(this),0),this.gotoFrame(),this.autoplay&&this.play()}},AnimationItem.prototype.resize=function(L,V){var G=typeof L=="number"?L:void 0,K=typeof V=="number"?V:void 0;this.renderer.updateContainerSize(G,K)},AnimationItem.prototype.setSubframe=function(L){this.isSubframeEnabled=!!L},AnimationItem.prototype.gotoFrame=function(){this.currentFrame=this.isSubframeEnabled?this.currentRawFrame:~~this.currentRawFrame,this.timeCompleted!==this.totalFrames&&this.currentFrame>this.timeCompleted&&(this.currentFrame=this.timeCompleted),this.trigger("enterFrame"),this.renderFrame(),this.trigger("drawnFrame")},AnimationItem.prototype.renderFrame=function(){if(!(this.isLoaded===!1||!this.renderer))try{this.expressionsPlugin&&this.expressionsPlugin.resetFrame(),this.renderer.renderFrame(this.currentFrame+this.firstFrame)}catch(L){this.triggerRenderFrameError(L)}},AnimationItem.prototype.play=function(L){L&&this.name!==L||this.isPaused===!0&&(this.isPaused=!1,this.trigger("_play"),this.audioController.resume(),this._idle&&(this._idle=!1,this.trigger("_active")))},AnimationItem.prototype.pause=function(L){L&&this.name!==L||this.isPaused===!1&&(this.isPaused=!0,this.trigger("_pause"),this._idle=!0,this.trigger("_idle"),this.audioController.pause())},AnimationItem.prototype.togglePause=function(L){L&&this.name!==L||(this.isPaused===!0?this.play():this.pause())},AnimationItem.prototype.stop=function(L){L&&this.name!==L||(this.pause(),this.playCount=0,this._completedLoop=!1,this.setCurrentRawFrameValue(0))},AnimationItem.prototype.getMarkerData=function(L){for(var V,G=0;G<this.markers.length;G+=1)if(V=this.markers[G],V.payload&&V.payload.name===L)return V;return null},AnimationItem.prototype.goToAndStop=function(L,V,G){if(!(G&&this.name!==G)){var K=Number(L);if(isNaN(K)){var ee=this.getMarkerData(L);ee&&this.goToAndStop(ee.time,!0)}else V?this.setCurrentRawFrameValue(L):this.setCurrentRawFrameValue(L*this.frameModifier);this.pause()}},AnimationItem.prototype.goToAndPlay=function(L,V,G){if(!(G&&this.name!==G)){var K=Number(L);if(isNaN(K)){var ee=this.getMarkerData(L);ee&&(ee.duration?this.playSegments([ee.time,ee.time+ee.duration],!0):this.goToAndStop(ee.time,!0))}else this.goToAndStop(K,V,G);this.play()}},AnimationItem.prototype.advanceTime=function(L){if(!(this.isPaused===!0||this.isLoaded===!1)){var V=this.currentRawFrame+L*this.frameModifier,G=!1;V>=this.totalFrames-1&&this.frameModifier>0?!this.loop||this.playCount===this.loop?this.checkSegments(V>this.totalFrames?V%this.totalFrames:0)||(G=!0,V=this.totalFrames-1):V>=this.totalFrames?(this.playCount+=1,this.checkSegments(V%this.totalFrames)||(this.setCurrentRawFrameValue(V%this.totalFrames),this._completedLoop=!0,this.trigger("loopComplete"))):this.setCurrentRawFrameValue(V):V<0?this.checkSegments(V%this.totalFrames)||(this.loop&&!(this.playCount--<=0&&this.loop!==!0)?(this.setCurrentRawFrameValue(this.totalFrames+V%this.totalFrames),this._completedLoop?this.trigger("loopComplete"):this._completedLoop=!0):(G=!0,V=0)):this.setCurrentRawFrameValue(V),G&&(this.setCurrentRawFrameValue(V),this.pause(),this.trigger("complete"))}},AnimationItem.prototype.adjustSegment=function(L,V){this.playCount=0,L[1]<L[0]?(this.frameModifier>0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(-1)),this.totalFrames=L[0]-L[1],this.timeCompleted=this.totalFrames,this.firstFrame=L[1],this.setCurrentRawFrameValue(this.totalFrames-.001-V)):L[1]>L[0]&&(this.frameModifier<0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(1)),this.totalFrames=L[1]-L[0],this.timeCompleted=this.totalFrames,this.firstFrame=L[0],this.setCurrentRawFrameValue(.001+V)),this.trigger("segmentStart")},AnimationItem.prototype.setSegment=function(L,V){var G=-1;this.isPaused&&(this.currentRawFrame+this.firstFrame<L?G=L:this.currentRawFrame+this.firstFrame>V&&(G=V-L)),this.firstFrame=L,this.totalFrames=V-L,this.timeCompleted=this.totalFrames,G!==-1&&this.goToAndStop(G,!0)},AnimationItem.prototype.playSegments=function(L,V){if(V&&(this.segments.length=0),_typeof$4(L[0])==="object"){var G,K=L.length;for(G=0;G<K;G+=1)this.segments.push(L[G])}else this.segments.push(L);this.segments.length&&V&&this.adjustSegment(this.segments.shift(),0),this.isPaused&&this.play()},AnimationItem.prototype.resetSegments=function(L){this.segments.length=0,this.segments.push([this.animationData.ip,this.animationData.op]),L&&this.checkSegments(0)},AnimationItem.prototype.checkSegments=function(L){return this.segments.length?(this.adjustSegment(this.segments.shift(),L),!0):!1},AnimationItem.prototype.destroy=function(L){L&&this.name!==L||!this.renderer||(this.renderer.destroy(),this.imagePreloader.destroy(),this.trigger("destroy"),this._cbs=null,this.onEnterFrame=null,this.onLoopComplete=null,this.onComplete=null,this.onSegmentStart=null,this.onDestroy=null,this.renderer=null,this.expressionsPlugin=null,this.imagePreloader=null,this.projectInterface=null)},AnimationItem.prototype.setCurrentRawFrameValue=function(L){this.currentRawFrame=L,this.gotoFrame()},AnimationItem.prototype.setSpeed=function(L){this.playSpeed=L,this.updaFrameModifier()},AnimationItem.prototype.setDirection=function(L){this.playDirection=L<0?-1:1,this.updaFrameModifier()},AnimationItem.prototype.setLoop=function(L){this.loop=L},AnimationItem.prototype.setVolume=function(L,V){V&&this.name!==V||this.audioController.setVolume(L)},AnimationItem.prototype.getVolume=function(){return this.audioController.getVolume()},AnimationItem.prototype.mute=function(L){L&&this.name!==L||this.audioController.mute()},AnimationItem.prototype.unmute=function(L){L&&this.name!==L||this.audioController.unmute()},AnimationItem.prototype.updaFrameModifier=function(){this.frameModifier=this.frameMult*this.playSpeed*this.playDirection,this.audioController.setRate(this.playSpeed*this.playDirection)},AnimationItem.prototype.getPath=function(){return this.path},AnimationItem.prototype.getAssetsPath=function(L){var V="";if(L.e)V=L.p;else if(this.assetsPath){var G=L.p;G.indexOf("images/")!==-1&&(G=G.split("/")[1]),V=this.assetsPath+G}else V=this.path,V+=L.u?L.u:"",V+=L.p;return V},AnimationItem.prototype.getAssetData=function(L){for(var V=0,G=this.assets.length;V<G;){if(L===this.assets[V].id)return this.assets[V];V+=1}return null},AnimationItem.prototype.hide=function(){this.renderer.hide()},AnimationItem.prototype.show=function(){this.renderer.show()},AnimationItem.prototype.getDuration=function(L){return L?this.totalFrames:this.totalFrames/this.frameRate},AnimationItem.prototype.updateDocumentData=function(L,V,G){try{var K=this.renderer.getElementByPath(L);K.updateDocumentData(V,G)}catch{}},AnimationItem.prototype.trigger=function(L){if(this._cbs&&this._cbs[L])switch(L){case"enterFrame":this.triggerEvent(L,new BMEnterFrameEvent(L,this.currentFrame,this.totalFrames,this.frameModifier));break;case"drawnFrame":this.drawnFrameEvent.currentTime=this.currentFrame,this.drawnFrameEvent.totalTime=this.totalFrames,this.drawnFrameEvent.direction=this.frameModifier,this.triggerEvent(L,this.drawnFrameEvent);break;case"loopComplete":this.triggerEvent(L,new BMCompleteLoopEvent(L,this.loop,this.playCount,this.frameMult));break;case"complete":this.triggerEvent(L,new BMCompleteEvent(L,this.frameMult));break;case"segmentStart":this.triggerEvent(L,new BMSegmentStartEvent(L,this.firstFrame,this.totalFrames));break;case"destroy":this.triggerEvent(L,new BMDestroyEvent(L,this));break;default:this.triggerEvent(L)}L==="enterFrame"&&this.onEnterFrame&&this.onEnterFrame.call(this,new BMEnterFrameEvent(L,this.currentFrame,this.totalFrames,this.frameMult)),L==="loopComplete"&&this.onLoopComplete&&this.onLoopComplete.call(this,new BMCompleteLoopEvent(L,this.loop,this.playCount,this.frameMult)),L==="complete"&&this.onComplete&&this.onComplete.call(this,new BMCompleteEvent(L,this.frameMult)),L==="segmentStart"&&this.onSegmentStart&&this.onSegmentStart.call(this,new BMSegmentStartEvent(L,this.firstFrame,this.totalFrames)),L==="destroy"&&this.onDestroy&&this.onDestroy.call(this,new BMDestroyEvent(L,this))},AnimationItem.prototype.triggerRenderFrameError=function(L){var V=new BMRenderFrameErrorEvent(L,this.currentFrame);this.triggerEvent("error",V),this.onError&&this.onError.call(this,V)},AnimationItem.prototype.triggerConfigError=function(L){var V=new BMConfigErrorEvent(L,this.currentFrame);this.triggerEvent("error",V),this.onError&&this.onError.call(this,V)};var animationManager=function(){var L={},V=[],G=0,K=0,ee=0,te=!0,re=!1;function ce($t){for(var Ct=0,dt=$t.target;Ct<K;)V[Ct].animation===dt&&(V.splice(Ct,1),Ct-=1,K-=1,dt.isPaused||st()),Ct+=1}function ue($t,Ct){if(!$t)return null;for(var dt=0;dt<K;){if(V[dt].elem===$t&&V[dt].elem!==null)return V[dt].animation;dt+=1}var mt=new AnimationItem;return Ae(mt,$t),mt.setData($t,Ct),mt}function de(){var $t,Ct=V.length,dt=[];for($t=0;$t<Ct;$t+=1)dt.push(V[$t].animation);return dt}function ve(){ee+=1,Nt()}function st(){ee-=1}function Ae($t,Ct){$t.addEventListener("destroy",ce),$t.addEventListener("_active",ve),$t.addEventListener("_idle",st),V.push({elem:Ct,animation:$t}),K+=1}function at($t){var Ct=new AnimationItem;return Ae(Ct,null),Ct.setParams($t),Ct}function ot($t,Ct){var dt;for(dt=0;dt<K;dt+=1)V[dt].animation.setSpeed($t,Ct)}function rt($t,Ct){var dt;for(dt=0;dt<K;dt+=1)V[dt].animation.setDirection($t,Ct)}function ft($t){var Ct;for(Ct=0;Ct<K;Ct+=1)V[Ct].animation.play($t)}function Oe($t){var Ct=$t-G,dt;for(dt=0;dt<K;dt+=1)V[dt].animation.advanceTime(Ct);G=$t,ee&&!re?window.requestAnimationFrame(Oe):te=!0}function nt($t){G=$t,window.requestAnimationFrame(Oe)}function it($t){var Ct;for(Ct=0;Ct<K;Ct+=1)V[Ct].animation.pause($t)}function lt($t,Ct,dt){var mt;for(mt=0;mt<K;mt+=1)V[mt].animation.goToAndStop($t,Ct,dt)}function ct($t){var Ct;for(Ct=0;Ct<K;Ct+=1)V[Ct].animation.stop($t)}function ut($t){var Ct;for(Ct=0;Ct<K;Ct+=1)V[Ct].animation.togglePause($t)}function bt($t){var Ct;for(Ct=K-1;Ct>=0;Ct-=1)V[Ct].animation.destroy($t)}function gt($t,Ct,dt){var mt=[].concat([].slice.call(document.getElementsByClassName("lottie")),[].slice.call(document.getElementsByClassName("bodymovin"))),kt,It=mt.length;for(kt=0;kt<It;kt+=1)dt&&mt[kt].setAttribute("data-bm-type",dt),ue(mt[kt],$t);if(Ct&&It===0){dt||(dt="svg");var Kt=document.getElementsByTagName("body")[0];Kt.innerText="";var Yt=createTag("div");Yt.style.width="100%",Yt.style.height="100%",Yt.setAttribute("data-bm-type",dt),Kt.appendChild(Yt),ue(Yt,$t)}}function Pt(){var $t;for($t=0;$t<K;$t+=1)V[$t].animation.resize()}function Nt(){!re&&ee&&te&&(window.requestAnimationFrame(nt),te=!1)}function Ot(){re=!0}function Ft(){re=!1,Nt()}function jt($t,Ct){var dt;for(dt=0;dt<K;dt+=1)V[dt].animation.setVolume($t,Ct)}function Bt($t){var Ct;for(Ct=0;Ct<K;Ct+=1)V[Ct].animation.mute($t)}function At($t){var Ct;for(Ct=0;Ct<K;Ct+=1)V[Ct].animation.unmute($t)}return L.registerAnimation=ue,L.loadAnimation=at,L.setSpeed=ot,L.setDirection=rt,L.play=ft,L.pause=it,L.stop=ct,L.togglePause=ut,L.searchAnimations=gt,L.resize=Pt,L.goToAndStop=lt,L.destroy=bt,L.freeze=Ot,L.unfreeze=Ft,L.setVolume=jt,L.mute=Bt,L.unmute=At,L.getRegisteredAnimations=de,L}(),BezierFactory=function(){var L={};L.getBezierEasing=G;var V={};function G(nt,it,lt,ct,ut){var bt=ut||("bez_"+nt+"_"+it+"_"+lt+"_"+ct).replace(/\./g,"p");if(V[bt])return V[bt];var gt=new Oe([nt,it,lt,ct]);return V[bt]=gt,gt}var K=4,ee=.001,te=1e-7,re=10,ce=11,ue=1/(ce-1),de=typeof Float32Array=="function";function ve(nt,it){return 1-3*it+3*nt}function st(nt,it){return 3*it-6*nt}function Ae(nt){return 3*nt}function at(nt,it,lt){return((ve(it,lt)*nt+st(it,lt))*nt+Ae(it))*nt}function ot(nt,it,lt){return 3*ve(it,lt)*nt*nt+2*st(it,lt)*nt+Ae(it)}function rt(nt,it,lt,ct,ut){var bt,gt,Pt=0;do gt=it+(lt-it)/2,bt=at(gt,ct,ut)-nt,bt>0?lt=gt:it=gt;while(Math.abs(bt)>te&&++Pt<re);return gt}function ft(nt,it,lt,ct){for(var ut=0;ut<K;++ut){var bt=ot(it,lt,ct);if(bt===0)return it;var gt=at(it,lt,ct)-nt;it-=gt/bt}return it}function Oe(nt){this._p=nt,this._mSampleValues=de?new Float32Array(ce):new Array(ce),this._precomputed=!1,this.get=this.get.bind(this)}return Oe.prototype={get:function(it){var lt=this._p[0],ct=this._p[1],ut=this._p[2],bt=this._p[3];return this._precomputed||this._precompute(),lt===ct&&ut===bt?it:it===0?0:it===1?1:at(this._getTForX(it),ct,bt)},_precompute:function(){var it=this._p[0],lt=this._p[1],ct=this._p[2],ut=this._p[3];this._precomputed=!0,(it!==lt||ct!==ut)&&this._calcSampleValues()},_calcSampleValues:function(){for(var it=this._p[0],lt=this._p[2],ct=0;ct<ce;++ct)this._mSampleValues[ct]=at(ct*ue,it,lt)},_getTForX:function(it){for(var lt=this._p[0],ct=this._p[2],ut=this._mSampleValues,bt=0,gt=1,Pt=ce-1;gt!==Pt&&ut[gt]<=it;++gt)bt+=ue;--gt;var Nt=(it-ut[gt])/(ut[gt+1]-ut[gt]),Ot=bt+Nt*ue,Ft=ot(Ot,lt,ct);return Ft>=ee?ft(it,Ot,lt,ct):Ft===0?Ot:rt(it,bt,bt+ue,lt,ct)}},L}(),pooling=function(){function L(V){return V.concat(createSizedArray(V.length))}return{double:L}}(),poolFactory=function(){return function(L,V,G){var K=0,ee=L,te=createSizedArray(ee),re={newElement:ce,release:ue};function ce(){var de;return K?(K-=1,de=te[K]):de=V(),de}function ue(de){K===ee&&(te=pooling.double(te),ee*=2),G&&G(de),te[K]=de,K+=1}return re}}(),bezierLengthPool=function(){function L(){return{addedLength:0,percents:createTypedArray("float32",getDefaultCurveSegments()),lengths:createTypedArray("float32",getDefaultCurveSegments())}}return poolFactory(8,L)}(),segmentsLengthPool=function(){function L(){return{lengths:[],totalLength:0}}function V(G){var K,ee=G.lengths.length;for(K=0;K<ee;K+=1)bezierLengthPool.release(G.lengths[K]);G.lengths.length=0}return poolFactory(8,L,V)}();function bezFunction(){var L=Math;function V(Ae,at,ot,rt,ft,Oe){var nt=Ae*rt+at*ft+ot*Oe-ft*rt-Oe*Ae-ot*at;return nt>-.001&&nt<.001}function G(Ae,at,ot,rt,ft,Oe,nt,it,lt){if(ot===0&&Oe===0&&lt===0)return V(Ae,at,rt,ft,nt,it);var ct=L.sqrt(L.pow(rt-Ae,2)+L.pow(ft-at,2)+L.pow(Oe-ot,2)),ut=L.sqrt(L.pow(nt-Ae,2)+L.pow(it-at,2)+L.pow(lt-ot,2)),bt=L.sqrt(L.pow(nt-rt,2)+L.pow(it-ft,2)+L.pow(lt-Oe,2)),gt;return ct>ut?ct>bt?gt=ct-ut-bt:gt=bt-ut-ct:bt>ut?gt=bt-ut-ct:gt=ut-ct-bt,gt>-1e-4&&gt<1e-4}var K=function(){return function(Ae,at,ot,rt){var ft=getDefaultCurveSegments(),Oe,nt,it,lt,ct,ut=0,bt,gt=[],Pt=[],Nt=bezierLengthPool.newElement();for(it=ot.length,Oe=0;Oe<ft;Oe+=1){for(ct=Oe/(ft-1),bt=0,nt=0;nt<it;nt+=1)lt=bmPow(1-ct,3)*Ae[nt]+3*bmPow(1-ct,2)*ct*ot[nt]+3*(1-ct)*bmPow(ct,2)*rt[nt]+bmPow(ct,3)*at[nt],gt[nt]=lt,Pt[nt]!==null&&(bt+=bmPow(gt[nt]-Pt[nt],2)),Pt[nt]=gt[nt];bt&&(bt=bmSqrt(bt),ut+=bt),Nt.percents[Oe]=ct,Nt.lengths[Oe]=ut}return Nt.addedLength=ut,Nt}}();function ee(Ae){var at=segmentsLengthPool.newElement(),ot=Ae.c,rt=Ae.v,ft=Ae.o,Oe=Ae.i,nt,it=Ae._length,lt=at.lengths,ct=0;for(nt=0;nt<it-1;nt+=1)lt[nt]=K(rt[nt],rt[nt+1],ft[nt],Oe[nt+1]),ct+=lt[nt].addedLength;return ot&&it&&(lt[nt]=K(rt[nt],rt[0],ft[nt],Oe[0]),ct+=lt[nt].addedLength),at.totalLength=ct,at}function te(Ae){this.segmentLength=0,this.points=new Array(Ae)}function re(Ae,at){this.partialLength=Ae,this.point=at}var ce=function(){var Ae={};return function(at,ot,rt,ft){var Oe=(at[0]+"_"+at[1]+"_"+ot[0]+"_"+ot[1]+"_"+rt[0]+"_"+rt[1]+"_"+ft[0]+"_"+ft[1]).replace(/\./g,"p");if(!Ae[Oe]){var nt=getDefaultCurveSegments(),it,lt,ct,ut,bt,gt=0,Pt,Nt,Ot=null;at.length===2&&(at[0]!==ot[0]||at[1]!==ot[1])&&V(at[0],at[1],ot[0],ot[1],at[0]+rt[0],at[1]+rt[1])&&V(at[0],at[1],ot[0],ot[1],ot[0]+ft[0],ot[1]+ft[1])&&(nt=2);var Ft=new te(nt);for(ct=rt.length,it=0;it<nt;it+=1){for(Nt=createSizedArray(ct),bt=it/(nt-1),Pt=0,lt=0;lt<ct;lt+=1)ut=bmPow(1-bt,3)*at[lt]+3*bmPow(1-bt,2)*bt*(at[lt]+rt[lt])+3*(1-bt)*bmPow(bt,2)*(ot[lt]+ft[lt])+bmPow(bt,3)*ot[lt],Nt[lt]=ut,Ot!==null&&(Pt+=bmPow(Nt[lt]-Ot[lt],2));Pt=bmSqrt(Pt),gt+=Pt,Ft.points[it]=new re(Pt,Nt),Ot=Nt}Ft.segmentLength=gt,Ae[Oe]=Ft}return Ae[Oe]}}();function ue(Ae,at){var ot=at.percents,rt=at.lengths,ft=ot.length,Oe=bmFloor((ft-1)*Ae),nt=Ae*at.addedLength,it=0;if(Oe===ft-1||Oe===0||nt===rt[Oe])return ot[Oe];for(var lt=rt[Oe]>nt?-1:1,ct=!0;ct;)if(rt[Oe]<=nt&&rt[Oe+1]>nt?(it=(nt-rt[Oe])/(rt[Oe+1]-rt[Oe]),ct=!1):Oe+=lt,Oe<0||Oe>=ft-1){if(Oe===ft-1)return ot[Oe];ct=!1}return ot[Oe]+(ot[Oe+1]-ot[Oe])*it}function de(Ae,at,ot,rt,ft,Oe){var nt=ue(ft,Oe),it=1-nt,lt=L.round((it*it*it*Ae[0]+(nt*it*it+it*nt*it+it*it*nt)*ot[0]+(nt*nt*it+it*nt*nt+nt*it*nt)*rt[0]+nt*nt*nt*at[0])*1e3)/1e3,ct=L.round((it*it*it*Ae[1]+(nt*it*it+it*nt*it+it*it*nt)*ot[1]+(nt*nt*it+it*nt*nt+nt*it*nt)*rt[1]+nt*nt*nt*at[1])*1e3)/1e3;return[lt,ct]}var ve=createTypedArray("float32",8);function st(Ae,at,ot,rt,ft,Oe,nt){ft<0?ft=0:ft>1&&(ft=1);var it=ue(ft,nt);Oe=Oe>1?1:Oe;var lt=ue(Oe,nt),ct,ut=Ae.length,bt=1-it,gt=1-lt,Pt=bt*bt*bt,Nt=it*bt*bt*3,Ot=it*it*bt*3,Ft=it*it*it,jt=bt*bt*gt,Bt=it*bt*gt+bt*it*gt+bt*bt*lt,At=it*it*gt+bt*it*lt+it*bt*lt,$t=it*it*lt,Ct=bt*gt*gt,dt=it*gt*gt+bt*lt*gt+bt*gt*lt,mt=it*lt*gt+bt*lt*lt+it*gt*lt,kt=it*lt*lt,It=gt*gt*gt,Kt=lt*gt*gt+gt*lt*gt+gt*gt*lt,Yt=lt*lt*gt+gt*lt*lt+lt*gt*lt,nr=lt*lt*lt;for(ct=0;ct<ut;ct+=1)ve[ct*4]=L.round((Pt*Ae[ct]+Nt*ot[ct]+Ot*rt[ct]+Ft*at[ct])*1e3)/1e3,ve[ct*4+1]=L.round((jt*Ae[ct]+Bt*ot[ct]+At*rt[ct]+$t*at[ct])*1e3)/1e3,ve[ct*4+2]=L.round((Ct*Ae[ct]+dt*ot[ct]+mt*rt[ct]+kt*at[ct])*1e3)/1e3,ve[ct*4+3]=L.round((It*Ae[ct]+Kt*ot[ct]+Yt*rt[ct]+nr*at[ct])*1e3)/1e3;return ve}return{getSegmentsLength:ee,getNewSegment:st,getPointInSegment:de,buildBezierData:ce,pointOnLine2D:V,pointOnLine3D:G}}var bez=bezFunction(),initFrame=initialDefaultFrame,mathAbs=Math.abs;function interpolateValue(L,V){var G=this.offsetTime,K;this.propType==="multidimensional"&&(K=createTypedArray("float32",this.pv.length));for(var ee=V.lastIndex,te=ee,re=this.keyframes.length-1,ce=!0,ue,de,ve;ce;){if(ue=this.keyframes[te],de=this.keyframes[te+1],te===re-1&&L>=de.t-G){ue.h&&(ue=de),ee=0;break}if(de.t-G>L){ee=te;break}te<re-1?te+=1:(ee=0,ce=!1)}ve=this.keyframesMetadata[te]||{};var st,Ae,at,ot,rt,ft,Oe=de.t-G,nt=ue.t-G,it;if(ue.to){ve.bezierData||(ve.bezierData=bez.buildBezierData(ue.s,de.s||ue.e,ue.to,ue.ti));var lt=ve.bezierData;if(L>=Oe||L<nt){var ct=L>=Oe?lt.points.length-1:0;for(Ae=lt.points[ct].point.length,st=0;st<Ae;st+=1)K[st]=lt.points[ct].point[st]}else{ve.__fnct?ft=ve.__fnct:(ft=BezierFactory.getBezierEasing(ue.o.x,ue.o.y,ue.i.x,ue.i.y,ue.n).get,ve.__fnct=ft),at=ft((L-nt)/(Oe-nt));var ut=lt.segmentLength*at,bt,gt=V.lastFrame<L&&V._lastKeyframeIndex===te?V._lastAddedLength:0;for(rt=V.lastFrame<L&&V._lastKeyframeIndex===te?V._lastPoint:0,ce=!0,ot=lt.points.length;ce;){if(gt+=lt.points[rt].partialLength,ut===0||at===0||rt===lt.points.length-1){for(Ae=lt.points[rt].point.length,st=0;st<Ae;st+=1)K[st]=lt.points[rt].point[st];break}else if(ut>=gt&&ut<gt+lt.points[rt+1].partialLength){for(bt=(ut-gt)/lt.points[rt+1].partialLength,Ae=lt.points[rt].point.length,st=0;st<Ae;st+=1)K[st]=lt.points[rt].point[st]+(lt.points[rt+1].point[st]-lt.points[rt].point[st])*bt;break}rt<ot-1?rt+=1:ce=!1}V._lastPoint=rt,V._lastAddedLength=gt-lt.points[rt].partialLength,V._lastKeyframeIndex=te}}else{var Pt,Nt,Ot,Ft,jt;if(re=ue.s.length,it=de.s||ue.e,this.sh&&ue.h!==1)if(L>=Oe)K[0]=it[0],K[1]=it[1],K[2]=it[2];else if(L<=nt)K[0]=ue.s[0],K[1]=ue.s[1],K[2]=ue.s[2];else{var Bt=createQuaternion(ue.s),At=createQuaternion(it),$t=(L-nt)/(Oe-nt);quaternionToEuler(K,slerp(Bt,At,$t))}else for(te=0;te<re;te+=1)ue.h!==1&&(L>=Oe?at=1:L<nt?at=0:(ue.o.x.constructor===Array?(ve.__fnct||(ve.__fnct=[]),ve.__fnct[te]?ft=ve.__fnct[te]:(Pt=ue.o.x[te]===void 0?ue.o.x[0]:ue.o.x[te],Nt=ue.o.y[te]===void 0?ue.o.y[0]:ue.o.y[te],Ot=ue.i.x[te]===void 0?ue.i.x[0]:ue.i.x[te],Ft=ue.i.y[te]===void 0?ue.i.y[0]:ue.i.y[te],ft=BezierFactory.getBezierEasing(Pt,Nt,Ot,Ft).get,ve.__fnct[te]=ft)):ve.__fnct?ft=ve.__fnct:(Pt=ue.o.x,Nt=ue.o.y,Ot=ue.i.x,Ft=ue.i.y,ft=BezierFactory.getBezierEasing(Pt,Nt,Ot,Ft).get,ue.keyframeMetadata=ft),at=ft((L-nt)/(Oe-nt)))),it=de.s||ue.e,jt=ue.h===1?ue.s[te]:ue.s[te]+(it[te]-ue.s[te])*at,this.propType==="multidimensional"?K[te]=jt:K=jt}return V.lastIndex=ee,K}function slerp(L,V,G){var K=[],ee=L[0],te=L[1],re=L[2],ce=L[3],ue=V[0],de=V[1],ve=V[2],st=V[3],Ae,at,ot,rt,ft;return at=ee*ue+te*de+re*ve+ce*st,at<0&&(at=-at,ue=-ue,de=-de,ve=-ve,st=-st),1-at>1e-6?(Ae=Math.acos(at),ot=Math.sin(Ae),rt=Math.sin((1-G)*Ae)/ot,ft=Math.sin(G*Ae)/ot):(rt=1-G,ft=G),K[0]=rt*ee+ft*ue,K[1]=rt*te+ft*de,K[2]=rt*re+ft*ve,K[3]=rt*ce+ft*st,K}function quaternionToEuler(L,V){var G=V[0],K=V[1],ee=V[2],te=V[3],re=Math.atan2(2*K*te-2*G*ee,1-2*K*K-2*ee*ee),ce=Math.asin(2*G*K+2*ee*te),ue=Math.atan2(2*G*te-2*K*ee,1-2*G*G-2*ee*ee);L[0]=re/degToRads,L[1]=ce/degToRads,L[2]=ue/degToRads}function createQuaternion(L){var V=L[0]*degToRads,G=L[1]*degToRads,K=L[2]*degToRads,ee=Math.cos(V/2),te=Math.cos(G/2),re=Math.cos(K/2),ce=Math.sin(V/2),ue=Math.sin(G/2),de=Math.sin(K/2),ve=ee*te*re-ce*ue*de,st=ce*ue*re+ee*te*de,Ae=ce*te*re+ee*ue*de,at=ee*ue*re-ce*te*de;return[st,Ae,at,ve]}function getValueAtCurrentTime(){var L=this.comp.renderedFrame-this.offsetTime,V=this.keyframes[0].t-this.offsetTime,G=this.keyframes[this.keyframes.length-1].t-this.offsetTime;if(!(L===this._caching.lastFrame||this._caching.lastFrame!==initFrame&&(this._caching.lastFrame>=G&&L>=G||this._caching.lastFrame<V&&L<V))){this._caching.lastFrame>=L&&(this._caching._lastKeyframeIndex=-1,this._caching.lastIndex=0);var K=this.interpolateValue(L,this._caching);this.pv=K}return this._caching.lastFrame=L,this.pv}function setVValue(L){var V;if(this.propType==="unidimensional")V=L*this.mult,mathAbs(this.v-V)>1e-5&&(this.v=V,this._mdf=!0);else for(var G=0,K=this.v.length;G<K;)V=L[G]*this.mult,mathAbs(this.v[G]-V)>1e-5&&(this.v[G]=V,this._mdf=!0),G+=1}function processEffectsSequence(){if(!(this.elem.globalData.frameId===this.frameId||!this.effectsSequence.length)){if(this.lock){this.setVValue(this.pv);return}this.lock=!0,this._mdf=this._isFirstFrame;var L,V=this.effectsSequence.length,G=this.kf?this.pv:this.data.k;for(L=0;L<V;L+=1)G=this.effectsSequence[L](G);this.setVValue(G),this._isFirstFrame=!1,this.lock=!1,this.frameId=this.elem.globalData.frameId}}function addEffect(L){this.effectsSequence.push(L),this.container.addDynamicProperty(this)}function ValueProperty(L,V,G,K){this.propType="unidimensional",this.mult=G||1,this.data=V,this.v=G?V.k*G:V.k,this.pv=V.k,this._mdf=!1,this.elem=L,this.container=K,this.comp=L.comp,this.k=!1,this.kf=!1,this.vel=0,this.effectsSequence=[],this._isFirstFrame=!0,this.getValue=processEffectsSequence,this.setVValue=setVValue,this.addEffect=addEffect}function MultiDimensionalProperty(L,V,G,K){this.propType="multidimensional",this.mult=G||1,this.data=V,this._mdf=!1,this.elem=L,this.container=K,this.comp=L.comp,this.k=!1,this.kf=!1,this.frameId=-1;var ee,te=V.k.length;for(this.v=createTypedArray("float32",te),this.pv=createTypedArray("float32",te),this.vel=createTypedArray("float32",te),ee=0;ee<te;ee+=1)this.v[ee]=V.k[ee]*this.mult,this.pv[ee]=V.k[ee];this._isFirstFrame=!0,this.effectsSequence=[],this.getValue=processEffectsSequence,this.setVValue=setVValue,this.addEffect=addEffect}function KeyframedValueProperty(L,V,G,K){this.propType="unidimensional",this.keyframes=V.k,this.keyframesMetadata=[],this.offsetTime=L.data.st,this.frameId=-1,this._caching={lastFrame:initFrame,lastIndex:0,value:0,_lastKeyframeIndex:-1},this.k=!0,this.kf=!0,this.data=V,this.mult=G||1,this.elem=L,this.container=K,this.comp=L.comp,this.v=initFrame,this.pv=initFrame,this._isFirstFrame=!0,this.getValue=processEffectsSequence,this.setVValue=setVValue,this.interpolateValue=interpolateValue,this.effectsSequence=[getValueAtCurrentTime.bind(this)],this.addEffect=addEffect}function KeyframedMultidimensionalProperty(L,V,G,K){this.propType="multidimensional";var ee,te=V.k.length,re,ce,ue,de;for(ee=0;ee<te-1;ee+=1)V.k[ee].to&&V.k[ee].s&&V.k[ee+1]&&V.k[ee+1].s&&(re=V.k[ee].s,ce=V.k[ee+1].s,ue=V.k[ee].to,de=V.k[ee].ti,(re.length===2&&!(re[0]===ce[0]&&re[1]===ce[1])&&bez.pointOnLine2D(re[0],re[1],ce[0],ce[1],re[0]+ue[0],re[1]+ue[1])&&bez.pointOnLine2D(re[0],re[1],ce[0],ce[1],ce[0]+de[0],ce[1]+de[1])||re.length===3&&!(re[0]===ce[0]&&re[1]===ce[1]&&re[2]===ce[2])&&bez.pointOnLine3D(re[0],re[1],re[2],ce[0],ce[1],ce[2],re[0]+ue[0],re[1]+ue[1],re[2]+ue[2])&&bez.pointOnLine3D(re[0],re[1],re[2],ce[0],ce[1],ce[2],ce[0]+de[0],ce[1]+de[1],ce[2]+de[2]))&&(V.k[ee].to=null,V.k[ee].ti=null),re[0]===ce[0]&&re[1]===ce[1]&&ue[0]===0&&ue[1]===0&&de[0]===0&&de[1]===0&&(re.length===2||re[2]===ce[2]&&ue[2]===0&&de[2]===0)&&(V.k[ee].to=null,V.k[ee].ti=null));this.effectsSequence=[getValueAtCurrentTime.bind(this)],this.data=V,this.keyframes=V.k,this.keyframesMetadata=[],this.offsetTime=L.data.st,this.k=!0,this.kf=!0,this._isFirstFrame=!0,this.mult=G||1,this.elem=L,this.container=K,this.comp=L.comp,this.getValue=processEffectsSequence,this.setVValue=setVValue,this.interpolateValue=interpolateValue,this.frameId=-1;var ve=V.k[0].s.length;for(this.v=createTypedArray("float32",ve),this.pv=createTypedArray("float32",ve),ee=0;ee<ve;ee+=1)this.v[ee]=initFrame,this.pv[ee]=initFrame;this._caching={lastFrame:initFrame,lastIndex:0,value:createTypedArray("float32",ve)},this.addEffect=addEffect}var PropertyFactory=function(){function L(G,K,ee,te,re){K.sid&&(K=G.globalData.slotManager.getProp(K));var ce;if(!K.k.length)ce=new ValueProperty(G,K,te,re);else if(typeof K.k[0]=="number")ce=new MultiDimensionalProperty(G,K,te,re);else switch(ee){case 0:ce=new KeyframedValueProperty(G,K,te,re);break;case 1:ce=new KeyframedMultidimensionalProperty(G,K,te,re);break}return ce.effectsSequence.length&&re.addDynamicProperty(ce),ce}var V={getProp:L};return V}();function DynamicPropertyContainer(){}DynamicPropertyContainer.prototype={addDynamicProperty:function(V){this.dynamicProperties.indexOf(V)===-1&&(this.dynamicProperties.push(V),this.container.addDynamicProperty(this),this._isAnimated=!0)},iterateDynamicProperties:function(){this._mdf=!1;var V,G=this.dynamicProperties.length;for(V=0;V<G;V+=1)this.dynamicProperties[V].getValue(),this.dynamicProperties[V]._mdf&&(this._mdf=!0)},initDynamicPropertyContainer:function(V){this.container=V,this.dynamicProperties=[],this._mdf=!1,this._isAnimated=!1}};var pointPool=function(){function L(){return createTypedArray("float32",2)}return poolFactory(8,L)}();function ShapePath(){this.c=!1,this._length=0,this._maxLength=8,this.v=createSizedArray(this._maxLength),this.o=createSizedArray(this._maxLength),this.i=createSizedArray(this._maxLength)}ShapePath.prototype.setPathData=function(L,V){this.c=L,this.setLength(V);for(var G=0;G<V;)this.v[G]=pointPool.newElement(),this.o[G]=pointPool.newElement(),this.i[G]=pointPool.newElement(),G+=1},ShapePath.prototype.setLength=function(L){for(;this._maxLength<L;)this.doubleArrayLength();this._length=L},ShapePath.prototype.doubleArrayLength=function(){this.v=this.v.concat(createSizedArray(this._maxLength)),this.i=this.i.concat(createSizedArray(this._maxLength)),this.o=this.o.concat(createSizedArray(this._maxLength)),this._maxLength*=2},ShapePath.prototype.setXYAt=function(L,V,G,K,ee){var te;switch(this._length=Math.max(this._length,K+1),this._length>=this._maxLength&&this.doubleArrayLength(),G){case"v":te=this.v;break;case"i":te=this.i;break;case"o":te=this.o;break;default:te=[];break}(!te[K]||te[K]&&!ee)&&(te[K]=pointPool.newElement()),te[K][0]=L,te[K][1]=V},ShapePath.prototype.setTripleAt=function(L,V,G,K,ee,te,re,ce){this.setXYAt(L,V,"v",re,ce),this.setXYAt(G,K,"o",re,ce),this.setXYAt(ee,te,"i",re,ce)},ShapePath.prototype.reverse=function(){var L=new ShapePath;L.setPathData(this.c,this._length);var V=this.v,G=this.o,K=this.i,ee=0;this.c&&(L.setTripleAt(V[0][0],V[0][1],K[0][0],K[0][1],G[0][0],G[0][1],0,!1),ee=1);var te=this._length-1,re=this._length,ce;for(ce=ee;ce<re;ce+=1)L.setTripleAt(V[te][0],V[te][1],K[te][0],K[te][1],G[te][0],G[te][1],ce,!1),te-=1;return L},ShapePath.prototype.length=function(){return this._length};var shapePool=function(){function L(){return new ShapePath}function V(ee){var te=ee._length,re;for(re=0;re<te;re+=1)pointPool.release(ee.v[re]),pointPool.release(ee.i[re]),pointPool.release(ee.o[re]),ee.v[re]=null,ee.i[re]=null,ee.o[re]=null;ee._length=0,ee.c=!1}function G(ee){var te=K.newElement(),re,ce=ee._length===void 0?ee.v.length:ee._length;for(te.setLength(ce),te.c=ee.c,re=0;re<ce;re+=1)te.setTripleAt(ee.v[re][0],ee.v[re][1],ee.o[re][0],ee.o[re][1],ee.i[re][0],ee.i[re][1],re);return te}var K=poolFactory(4,L,V);return K.clone=G,K}();function ShapeCollection(){this._length=0,this._maxLength=4,this.shapes=createSizedArray(this._maxLength)}ShapeCollection.prototype.addShape=function(L){this._length===this._maxLength&&(this.shapes=this.shapes.concat(createSizedArray(this._maxLength)),this._maxLength*=2),this.shapes[this._length]=L,this._length+=1},ShapeCollection.prototype.releaseShapes=function(){var L;for(L=0;L<this._length;L+=1)shapePool.release(this.shapes[L]);this._length=0};var shapeCollectionPool=function(){var L={newShapeCollection:ee,release:te},V=0,G=4,K=createSizedArray(G);function ee(){var re;return V?(V-=1,re=K[V]):re=new ShapeCollection,re}function te(re){var ce,ue=re._length;for(ce=0;ce<ue;ce+=1)shapePool.release(re.shapes[ce]);re._length=0,V===G&&(K=pooling.double(K),G*=2),K[V]=re,V+=1}return L}(),ShapePropertyFactory=function(){var L=-999999;function V(Oe,nt,it){var lt=it.lastIndex,ct,ut,bt,gt,Pt,Nt,Ot,Ft,jt,Bt=this.keyframes;if(Oe<Bt[0].t-this.offsetTime)ct=Bt[0].s[0],bt=!0,lt=0;else if(Oe>=Bt[Bt.length-1].t-this.offsetTime)ct=Bt[Bt.length-1].s?Bt[Bt.length-1].s[0]:Bt[Bt.length-2].e[0],bt=!0;else{for(var At=lt,$t=Bt.length-1,Ct=!0,dt,mt,kt;Ct&&(dt=Bt[At],mt=Bt[At+1],!(mt.t-this.offsetTime>Oe));)At<$t-1?At+=1:Ct=!1;if(kt=this.keyframesMetadata[At]||{},bt=dt.h===1,lt=At,!bt){if(Oe>=mt.t-this.offsetTime)Ft=1;else if(Oe<dt.t-this.offsetTime)Ft=0;else{var It;kt.__fnct?It=kt.__fnct:(It=BezierFactory.getBezierEasing(dt.o.x,dt.o.y,dt.i.x,dt.i.y).get,kt.__fnct=It),Ft=It((Oe-(dt.t-this.offsetTime))/(mt.t-this.offsetTime-(dt.t-this.offsetTime)))}ut=mt.s?mt.s[0]:dt.e[0]}ct=dt.s[0]}for(Nt=nt._length,Ot=ct.i[0].length,it.lastIndex=lt,gt=0;gt<Nt;gt+=1)for(Pt=0;Pt<Ot;Pt+=1)jt=bt?ct.i[gt][Pt]:ct.i[gt][Pt]+(ut.i[gt][Pt]-ct.i[gt][Pt])*Ft,nt.i[gt][Pt]=jt,jt=bt?ct.o[gt][Pt]:ct.o[gt][Pt]+(ut.o[gt][Pt]-ct.o[gt][Pt])*Ft,nt.o[gt][Pt]=jt,jt=bt?ct.v[gt][Pt]:ct.v[gt][Pt]+(ut.v[gt][Pt]-ct.v[gt][Pt])*Ft,nt.v[gt][Pt]=jt}function G(){var Oe=this.comp.renderedFrame-this.offsetTime,nt=this.keyframes[0].t-this.offsetTime,it=this.keyframes[this.keyframes.length-1].t-this.offsetTime,lt=this._caching.lastFrame;return lt!==L&&(lt<nt&&Oe<nt||lt>it&&Oe>it)||(this._caching.lastIndex=lt<Oe?this._caching.lastIndex:0,this.interpolateShape(Oe,this.pv,this._caching)),this._caching.lastFrame=Oe,this.pv}function K(){this.paths=this.localShapeCollection}function ee(Oe,nt){if(Oe._length!==nt._length||Oe.c!==nt.c)return!1;var it,lt=Oe._length;for(it=0;it<lt;it+=1)if(Oe.v[it][0]!==nt.v[it][0]||Oe.v[it][1]!==nt.v[it][1]||Oe.o[it][0]!==nt.o[it][0]||Oe.o[it][1]!==nt.o[it][1]||Oe.i[it][0]!==nt.i[it][0]||Oe.i[it][1]!==nt.i[it][1])return!1;return!0}function te(Oe){ee(this.v,Oe)||(this.v=shapePool.clone(Oe),this.localShapeCollection.releaseShapes(),this.localShapeCollection.addShape(this.v),this._mdf=!0,this.paths=this.localShapeCollection)}function re(){if(this.elem.globalData.frameId!==this.frameId){if(!this.effectsSequence.length){this._mdf=!1;return}if(this.lock){this.setVValue(this.pv);return}this.lock=!0,this._mdf=!1;var Oe;this.kf?Oe=this.pv:this.data.ks?Oe=this.data.ks.k:Oe=this.data.pt.k;var nt,it=this.effectsSequence.length;for(nt=0;nt<it;nt+=1)Oe=this.effectsSequence[nt](Oe);this.setVValue(Oe),this.lock=!1,this.frameId=this.elem.globalData.frameId}}function ce(Oe,nt,it){this.propType="shape",this.comp=Oe.comp,this.container=Oe,this.elem=Oe,this.data=nt,this.k=!1,this.kf=!1,this._mdf=!1;var lt=it===3?nt.pt.k:nt.ks.k;this.v=shapePool.clone(lt),this.pv=shapePool.clone(this.v),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.reset=K,this.effectsSequence=[]}function ue(Oe){this.effectsSequence.push(Oe),this.container.addDynamicProperty(this)}ce.prototype.interpolateShape=V,ce.prototype.getValue=re,ce.prototype.setVValue=te,ce.prototype.addEffect=ue;function de(Oe,nt,it){this.propType="shape",this.comp=Oe.comp,this.elem=Oe,this.container=Oe,this.offsetTime=Oe.data.st,this.keyframes=it===3?nt.pt.k:nt.ks.k,this.keyframesMetadata=[],this.k=!0,this.kf=!0;var lt=this.keyframes[0].s[0].i.length;this.v=shapePool.newElement(),this.v.setPathData(this.keyframes[0].s[0].c,lt),this.pv=shapePool.clone(this.v),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.lastFrame=L,this.reset=K,this._caching={lastFrame:L,lastIndex:0},this.effectsSequence=[G.bind(this)]}de.prototype.getValue=re,de.prototype.interpolateShape=V,de.prototype.setVValue=te,de.prototype.addEffect=ue;var ve=function(){var Oe=roundCorner;function nt(it,lt){this.v=shapePool.newElement(),this.v.setPathData(!0,4),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.paths=this.localShapeCollection,this.localShapeCollection.addShape(this.v),this.d=lt.d,this.elem=it,this.comp=it.comp,this.frameId=-1,this.initDynamicPropertyContainer(it),this.p=PropertyFactory.getProp(it,lt.p,1,0,this),this.s=PropertyFactory.getProp(it,lt.s,1,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertEllToPath())}return nt.prototype={reset:K,getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertEllToPath())},convertEllToPath:function(){var lt=this.p.v[0],ct=this.p.v[1],ut=this.s.v[0]/2,bt=this.s.v[1]/2,gt=this.d!==3,Pt=this.v;Pt.v[0][0]=lt,Pt.v[0][1]=ct-bt,Pt.v[1][0]=gt?lt+ut:lt-ut,Pt.v[1][1]=ct,Pt.v[2][0]=lt,Pt.v[2][1]=ct+bt,Pt.v[3][0]=gt?lt-ut:lt+ut,Pt.v[3][1]=ct,Pt.i[0][0]=gt?lt-ut*Oe:lt+ut*Oe,Pt.i[0][1]=ct-bt,Pt.i[1][0]=gt?lt+ut:lt-ut,Pt.i[1][1]=ct-bt*Oe,Pt.i[2][0]=gt?lt+ut*Oe:lt-ut*Oe,Pt.i[2][1]=ct+bt,Pt.i[3][0]=gt?lt-ut:lt+ut,Pt.i[3][1]=ct+bt*Oe,Pt.o[0][0]=gt?lt+ut*Oe:lt-ut*Oe,Pt.o[0][1]=ct-bt,Pt.o[1][0]=gt?lt+ut:lt-ut,Pt.o[1][1]=ct+bt*Oe,Pt.o[2][0]=gt?lt-ut*Oe:lt+ut*Oe,Pt.o[2][1]=ct+bt,Pt.o[3][0]=gt?lt-ut:lt+ut,Pt.o[3][1]=ct-bt*Oe}},extendPrototype([DynamicPropertyContainer],nt),nt}(),st=function(){function Oe(nt,it){this.v=shapePool.newElement(),this.v.setPathData(!0,0),this.elem=nt,this.comp=nt.comp,this.data=it,this.frameId=-1,this.d=it.d,this.initDynamicPropertyContainer(nt),it.sy===1?(this.ir=PropertyFactory.getProp(nt,it.ir,0,0,this),this.is=PropertyFactory.getProp(nt,it.is,0,.01,this),this.convertToPath=this.convertStarToPath):this.convertToPath=this.convertPolygonToPath,this.pt=PropertyFactory.getProp(nt,it.pt,0,0,this),this.p=PropertyFactory.getProp(nt,it.p,1,0,this),this.r=PropertyFactory.getProp(nt,it.r,0,degToRads,this),this.or=PropertyFactory.getProp(nt,it.or,0,0,this),this.os=PropertyFactory.getProp(nt,it.os,0,.01,this),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertToPath())}return Oe.prototype={reset:K,getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertToPath())},convertStarToPath:function(){var it=Math.floor(this.pt.v)*2,lt=Math.PI*2/it,ct=!0,ut=this.or.v,bt=this.ir.v,gt=this.os.v,Pt=this.is.v,Nt=2*Math.PI*ut/(it*2),Ot=2*Math.PI*bt/(it*2),Ft,jt,Bt,At,$t=-Math.PI/2;$t+=this.r.v;var Ct=this.data.d===3?-1:1;for(this.v._length=0,Ft=0;Ft<it;Ft+=1){jt=ct?ut:bt,Bt=ct?gt:Pt,At=ct?Nt:Ot;var dt=jt*Math.cos($t),mt=jt*Math.sin($t),kt=dt===0&&mt===0?0:mt/Math.sqrt(dt*dt+mt*mt),It=dt===0&&mt===0?0:-dt/Math.sqrt(dt*dt+mt*mt);dt+=+this.p.v[0],mt+=+this.p.v[1],this.v.setTripleAt(dt,mt,dt-kt*At*Bt*Ct,mt-It*At*Bt*Ct,dt+kt*At*Bt*Ct,mt+It*At*Bt*Ct,Ft,!0),ct=!ct,$t+=lt*Ct}},convertPolygonToPath:function(){var it=Math.floor(this.pt.v),lt=Math.PI*2/it,ct=this.or.v,ut=this.os.v,bt=2*Math.PI*ct/(it*4),gt,Pt=-Math.PI*.5,Nt=this.data.d===3?-1:1;for(Pt+=this.r.v,this.v._length=0,gt=0;gt<it;gt+=1){var Ot=ct*Math.cos(Pt),Ft=ct*Math.sin(Pt),jt=Ot===0&&Ft===0?0:Ft/Math.sqrt(Ot*Ot+Ft*Ft),Bt=Ot===0&&Ft===0?0:-Ot/Math.sqrt(Ot*Ot+Ft*Ft);Ot+=+this.p.v[0],Ft+=+this.p.v[1],this.v.setTripleAt(Ot,Ft,Ot-jt*bt*ut*Nt,Ft-Bt*bt*ut*Nt,Ot+jt*bt*ut*Nt,Ft+Bt*bt*ut*Nt,gt,!0),Pt+=lt*Nt}this.paths.length=0,this.paths[0]=this.v}},extendPrototype([DynamicPropertyContainer],Oe),Oe}(),Ae=function(){function Oe(nt,it){this.v=shapePool.newElement(),this.v.c=!0,this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.elem=nt,this.comp=nt.comp,this.frameId=-1,this.d=it.d,this.initDynamicPropertyContainer(nt),this.p=PropertyFactory.getProp(nt,it.p,1,0,this),this.s=PropertyFactory.getProp(nt,it.s,1,0,this),this.r=PropertyFactory.getProp(nt,it.r,0,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertRectToPath())}return Oe.prototype={convertRectToPath:function(){var it=this.p.v[0],lt=this.p.v[1],ct=this.s.v[0]/2,ut=this.s.v[1]/2,bt=bmMin(ct,ut,this.r.v),gt=bt*(1-roundCorner);this.v._length=0,this.d===2||this.d===1?(this.v.setTripleAt(it+ct,lt-ut+bt,it+ct,lt-ut+bt,it+ct,lt-ut+gt,0,!0),this.v.setTripleAt(it+ct,lt+ut-bt,it+ct,lt+ut-gt,it+ct,lt+ut-bt,1,!0),bt!==0?(this.v.setTripleAt(it+ct-bt,lt+ut,it+ct-bt,lt+ut,it+ct-gt,lt+ut,2,!0),this.v.setTripleAt(it-ct+bt,lt+ut,it-ct+gt,lt+ut,it-ct+bt,lt+ut,3,!0),this.v.setTripleAt(it-ct,lt+ut-bt,it-ct,lt+ut-bt,it-ct,lt+ut-gt,4,!0),this.v.setTripleAt(it-ct,lt-ut+bt,it-ct,lt-ut+gt,it-ct,lt-ut+bt,5,!0),this.v.setTripleAt(it-ct+bt,lt-ut,it-ct+bt,lt-ut,it-ct+gt,lt-ut,6,!0),this.v.setTripleAt(it+ct-bt,lt-ut,it+ct-gt,lt-ut,it+ct-bt,lt-ut,7,!0)):(this.v.setTripleAt(it-ct,lt+ut,it-ct+gt,lt+ut,it-ct,lt+ut,2),this.v.setTripleAt(it-ct,lt-ut,it-ct,lt-ut+gt,it-ct,lt-ut,3))):(this.v.setTripleAt(it+ct,lt-ut+bt,it+ct,lt-ut+gt,it+ct,lt-ut+bt,0,!0),bt!==0?(this.v.setTripleAt(it+ct-bt,lt-ut,it+ct-bt,lt-ut,it+ct-gt,lt-ut,1,!0),this.v.setTripleAt(it-ct+bt,lt-ut,it-ct+gt,lt-ut,it-ct+bt,lt-ut,2,!0),this.v.setTripleAt(it-ct,lt-ut+bt,it-ct,lt-ut+bt,it-ct,lt-ut+gt,3,!0),this.v.setTripleAt(it-ct,lt+ut-bt,it-ct,lt+ut-gt,it-ct,lt+ut-bt,4,!0),this.v.setTripleAt(it-ct+bt,lt+ut,it-ct+bt,lt+ut,it-ct+gt,lt+ut,5,!0),this.v.setTripleAt(it+ct-bt,lt+ut,it+ct-gt,lt+ut,it+ct-bt,lt+ut,6,!0),this.v.setTripleAt(it+ct,lt+ut-bt,it+ct,lt+ut-bt,it+ct,lt+ut-gt,7,!0)):(this.v.setTripleAt(it-ct,lt-ut,it-ct+gt,lt-ut,it-ct,lt-ut,1,!0),this.v.setTripleAt(it-ct,lt+ut,it-ct,lt+ut-gt,it-ct,lt+ut,2,!0),this.v.setTripleAt(it+ct,lt+ut,it+ct-gt,lt+ut,it+ct,lt+ut,3,!0)))},getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertRectToPath())},reset:K},extendPrototype([DynamicPropertyContainer],Oe),Oe}();function at(Oe,nt,it){var lt;if(it===3||it===4){var ct=it===3?nt.pt:nt.ks,ut=ct.k;ut.length?lt=new de(Oe,nt,it):lt=new ce(Oe,nt,it)}else it===5?lt=new Ae(Oe,nt):it===6?lt=new ve(Oe,nt):it===7&&(lt=new st(Oe,nt));return lt.k&&Oe.addDynamicProperty(lt),lt}function ot(){return ce}function rt(){return de}var ft={};return ft.getShapeProp=at,ft.getConstructorFunction=ot,ft.getKeyframedConstructorFunction=rt,ft}();/*!
 Transformation Matrix v2.0
 (c) Epistemex 2014-2015
 www.epistemex.com
 By Ken Fyrstenberg
 Contributions by leeoniya.
 License: MIT, header required.
 */var Matrix=function(){var L=Math.cos,V=Math.sin,G=Math.tan,K=Math.round;function ee(){return this.props[0]=1,this.props[1]=0,this.props[2]=0,this.props[3]=0,this.props[4]=0,this.props[5]=1,this.props[6]=0,this.props[7]=0,this.props[8]=0,this.props[9]=0,this.props[10]=1,this.props[11]=0,this.props[12]=0,this.props[13]=0,this.props[14]=0,this.props[15]=1,this}function te(dt){if(dt===0)return this;var mt=L(dt),kt=V(dt);return this._t(mt,-kt,0,0,kt,mt,0,0,0,0,1,0,0,0,0,1)}function re(dt){if(dt===0)return this;var mt=L(dt),kt=V(dt);return this._t(1,0,0,0,0,mt,-kt,0,0,kt,mt,0,0,0,0,1)}function ce(dt){if(dt===0)return this;var mt=L(dt),kt=V(dt);return this._t(mt,0,kt,0,0,1,0,0,-kt,0,mt,0,0,0,0,1)}function ue(dt){if(dt===0)return this;var mt=L(dt),kt=V(dt);return this._t(mt,-kt,0,0,kt,mt,0,0,0,0,1,0,0,0,0,1)}function de(dt,mt){return this._t(1,mt,dt,1,0,0)}function ve(dt,mt){return this.shear(G(dt),G(mt))}function st(dt,mt){var kt=L(mt),It=V(mt);return this._t(kt,It,0,0,-It,kt,0,0,0,0,1,0,0,0,0,1)._t(1,0,0,0,G(dt),1,0,0,0,0,1,0,0,0,0,1)._t(kt,-It,0,0,It,kt,0,0,0,0,1,0,0,0,0,1)}function Ae(dt,mt,kt){return!kt&&kt!==0&&(kt=1),dt===1&&mt===1&&kt===1?this:this._t(dt,0,0,0,0,mt,0,0,0,0,kt,0,0,0,0,1)}function at(dt,mt,kt,It,Kt,Yt,nr,ur,Vt,lr,sr,pr,gr,ir,Jt,cr){return this.props[0]=dt,this.props[1]=mt,this.props[2]=kt,this.props[3]=It,this.props[4]=Kt,this.props[5]=Yt,this.props[6]=nr,this.props[7]=ur,this.props[8]=Vt,this.props[9]=lr,this.props[10]=sr,this.props[11]=pr,this.props[12]=gr,this.props[13]=ir,this.props[14]=Jt,this.props[15]=cr,this}function ot(dt,mt,kt){return kt=kt||0,dt!==0||mt!==0||kt!==0?this._t(1,0,0,0,0,1,0,0,0,0,1,0,dt,mt,kt,1):this}function rt(dt,mt,kt,It,Kt,Yt,nr,ur,Vt,lr,sr,pr,gr,ir,Jt,cr){var tr=this.props;if(dt===1&&mt===0&&kt===0&&It===0&&Kt===0&&Yt===1&&nr===0&&ur===0&&Vt===0&&lr===0&&sr===1&&pr===0)return tr[12]=tr[12]*dt+tr[15]*gr,tr[13]=tr[13]*Yt+tr[15]*ir,tr[14]=tr[14]*sr+tr[15]*Jt,tr[15]*=cr,this._identityCalculated=!1,this;var xr=tr[0],Sr=tr[1],Cr=tr[2],wr=tr[3],Lt=tr[4],Gt=tr[5],Xt=tr[6],ar=tr[7],rr=tr[8],er=tr[9],mr=tr[10],$r=tr[11],qt=tr[12],zt=tr[13],Qt=tr[14],Ut=tr[15];return tr[0]=xr*dt+Sr*Kt+Cr*Vt+wr*gr,tr[1]=xr*mt+Sr*Yt+Cr*lr+wr*ir,tr[2]=xr*kt+Sr*nr+Cr*sr+wr*Jt,tr[3]=xr*It+Sr*ur+Cr*pr+wr*cr,tr[4]=Lt*dt+Gt*Kt+Xt*Vt+ar*gr,tr[5]=Lt*mt+Gt*Yt+Xt*lr+ar*ir,tr[6]=Lt*kt+Gt*nr+Xt*sr+ar*Jt,tr[7]=Lt*It+Gt*ur+Xt*pr+ar*cr,tr[8]=rr*dt+er*Kt+mr*Vt+$r*gr,tr[9]=rr*mt+er*Yt+mr*lr+$r*ir,tr[10]=rr*kt+er*nr+mr*sr+$r*Jt,tr[11]=rr*It+er*ur+mr*pr+$r*cr,tr[12]=qt*dt+zt*Kt+Qt*Vt+Ut*gr,tr[13]=qt*mt+zt*Yt+Qt*lr+Ut*ir,tr[14]=qt*kt+zt*nr+Qt*sr+Ut*Jt,tr[15]=qt*It+zt*ur+Qt*pr+Ut*cr,this._identityCalculated=!1,this}function ft(dt){var mt=dt.props;return this.transform(mt[0],mt[1],mt[2],mt[3],mt[4],mt[5],mt[6],mt[7],mt[8],mt[9],mt[10],mt[11],mt[12],mt[13],mt[14],mt[15])}function Oe(){return this._identityCalculated||(this._identity=!(this.props[0]!==1||this.props[1]!==0||this.props[2]!==0||this.props[3]!==0||this.props[4]!==0||this.props[5]!==1||this.props[6]!==0||this.props[7]!==0||this.props[8]!==0||this.props[9]!==0||this.props[10]!==1||this.props[11]!==0||this.props[12]!==0||this.props[13]!==0||this.props[14]!==0||this.props[15]!==1),this._identityCalculated=!0),this._identity}function nt(dt){for(var mt=0;mt<16;){if(dt.props[mt]!==this.props[mt])return!1;mt+=1}return!0}function it(dt){var mt;for(mt=0;mt<16;mt+=1)dt.props[mt]=this.props[mt];return dt}function lt(dt){var mt;for(mt=0;mt<16;mt+=1)this.props[mt]=dt[mt]}function ct(dt,mt,kt){return{x:dt*this.props[0]+mt*this.props[4]+kt*this.props[8]+this.props[12],y:dt*this.props[1]+mt*this.props[5]+kt*this.props[9]+this.props[13],z:dt*this.props[2]+mt*this.props[6]+kt*this.props[10]+this.props[14]}}function ut(dt,mt,kt){return dt*this.props[0]+mt*this.props[4]+kt*this.props[8]+this.props[12]}function bt(dt,mt,kt){return dt*this.props[1]+mt*this.props[5]+kt*this.props[9]+this.props[13]}function gt(dt,mt,kt){return dt*this.props[2]+mt*this.props[6]+kt*this.props[10]+this.props[14]}function Pt(){var dt=this.props[0]*this.props[5]-this.props[1]*this.props[4],mt=this.props[5]/dt,kt=-this.props[1]/dt,It=-this.props[4]/dt,Kt=this.props[0]/dt,Yt=(this.props[4]*this.props[13]-this.props[5]*this.props[12])/dt,nr=-(this.props[0]*this.props[13]-this.props[1]*this.props[12])/dt,ur=new Matrix;return ur.props[0]=mt,ur.props[1]=kt,ur.props[4]=It,ur.props[5]=Kt,ur.props[12]=Yt,ur.props[13]=nr,ur}function Nt(dt){var mt=this.getInverseMatrix();return mt.applyToPointArray(dt[0],dt[1],dt[2]||0)}function Ot(dt){var mt,kt=dt.length,It=[];for(mt=0;mt<kt;mt+=1)It[mt]=Nt(dt[mt]);return It}function Ft(dt,mt,kt){var It=createTypedArray("float32",6);if(this.isIdentity())It[0]=dt[0],It[1]=dt[1],It[2]=mt[0],It[3]=mt[1],It[4]=kt[0],It[5]=kt[1];else{var Kt=this.props[0],Yt=this.props[1],nr=this.props[4],ur=this.props[5],Vt=this.props[12],lr=this.props[13];It[0]=dt[0]*Kt+dt[1]*nr+Vt,It[1]=dt[0]*Yt+dt[1]*ur+lr,It[2]=mt[0]*Kt+mt[1]*nr+Vt,It[3]=mt[0]*Yt+mt[1]*ur+lr,It[4]=kt[0]*Kt+kt[1]*nr+Vt,It[5]=kt[0]*Yt+kt[1]*ur+lr}return It}function jt(dt,mt,kt){var It;return this.isIdentity()?It=[dt,mt,kt]:It=[dt*this.props[0]+mt*this.props[4]+kt*this.props[8]+this.props[12],dt*this.props[1]+mt*this.props[5]+kt*this.props[9]+this.props[13],dt*this.props[2]+mt*this.props[6]+kt*this.props[10]+this.props[14]],It}function Bt(dt,mt){if(this.isIdentity())return dt+","+mt;var kt=this.props;return Math.round((dt*kt[0]+mt*kt[4]+kt[12])*100)/100+","+Math.round((dt*kt[1]+mt*kt[5]+kt[13])*100)/100}function At(){for(var dt=0,mt=this.props,kt="matrix3d(",It=1e4;dt<16;)kt+=K(mt[dt]*It)/It,kt+=dt===15?")":",",dt+=1;return kt}function $t(dt){var mt=1e4;return dt<1e-6&&dt>0||dt>-1e-6&&dt<0?K(dt*mt)/mt:dt}function Ct(){var dt=this.props,mt=$t(dt[0]),kt=$t(dt[1]),It=$t(dt[4]),Kt=$t(dt[5]),Yt=$t(dt[12]),nr=$t(dt[13]);return"matrix("+mt+","+kt+","+It+","+Kt+","+Yt+","+nr+")"}return function(){this.reset=ee,this.rotate=te,this.rotateX=re,this.rotateY=ce,this.rotateZ=ue,this.skew=ve,this.skewFromAxis=st,this.shear=de,this.scale=Ae,this.setTransform=at,this.translate=ot,this.transform=rt,this.multiply=ft,this.applyToPoint=ct,this.applyToX=ut,this.applyToY=bt,this.applyToZ=gt,this.applyToPointArray=jt,this.applyToTriplePoints=Ft,this.applyToPointStringified=Bt,this.toCSS=At,this.to2dCSS=Ct,this.clone=it,this.cloneFromProps=lt,this.equals=nt,this.inversePoints=Ot,this.inversePoint=Nt,this.getInverseMatrix=Pt,this._t=this.transform,this.isIdentity=Oe,this._identity=!0,this._identityCalculated=!1,this.props=createTypedArray("float32",16),this.reset()}}();function _typeof$3(L){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof$3=function(G){return typeof G}:_typeof$3=function(G){return G&&typeof Symbol=="function"&&G.constructor===Symbol&&G!==Symbol.prototype?"symbol":typeof G},_typeof$3(L)}var lottie={};function setLocation(L){setLocationHref(L)}function searchAnimations(){animationManager.searchAnimations()}function setSubframeRendering(L){setSubframeEnabled(L)}function setPrefix(L){setIdPrefix(L)}function loadAnimation(L){return animationManager.loadAnimation(L)}function setQuality(L){if(typeof L=="string")switch(L){case"high":setDefaultCurveSegments(200);break;default:case"medium":setDefaultCurveSegments(50);break;case"low":setDefaultCurveSegments(10);break}else!isNaN(L)&&L>1&&setDefaultCurveSegments(L)}function inBrowser(){return typeof navigator!="undefined"}function installPlugin(L,V){L==="expressions"&&setExpressionsPlugin(V)}function getFactory(L){switch(L){case"propertyFactory":return PropertyFactory;case"shapePropertyFactory":return ShapePropertyFactory;case"matrix":return Matrix;default:return null}}lottie.play=animationManager.play,lottie.pause=animationManager.pause,lottie.setLocationHref=setLocation,lottie.togglePause=animationManager.togglePause,lottie.setSpeed=animationManager.setSpeed,lottie.setDirection=animationManager.setDirection,lottie.stop=animationManager.stop,lottie.searchAnimations=searchAnimations,lottie.registerAnimation=animationManager.registerAnimation,lottie.loadAnimation=loadAnimation,lottie.setSubframeRendering=setSubframeRendering,lottie.resize=animationManager.resize,lottie.goToAndStop=animationManager.goToAndStop,lottie.destroy=animationManager.destroy,lottie.setQuality=setQuality,lottie.inBrowser=inBrowser,lottie.installPlugin=installPlugin,lottie.freeze=animationManager.freeze,lottie.unfreeze=animationManager.unfreeze,lottie.setVolume=animationManager.setVolume,lottie.mute=animationManager.mute,lottie.unmute=animationManager.unmute,lottie.getRegisteredAnimations=animationManager.getRegisteredAnimations,lottie.useWebWorker=setWebWorker,lottie.setIDPrefix=setPrefix,lottie.__getFactory=getFactory,lottie.version="5.12.2";function checkReady(){document.readyState==="complete"&&(clearInterval(readyStateCheckInterval),searchAnimations())}function getQueryVariable(L){for(var V=queryString.split("&"),G=0;G<V.length;G+=1){var K=V[G].split("=");if(decodeURIComponent(K[0])==L)return decodeURIComponent(K[1])}return null}var queryString="";{var scripts=document.getElementsByTagName("script"),index=scripts.length-1,myScript=scripts[index]||{src:""};queryString=myScript.src?myScript.src.replace(/^[^\?]+\??/,""):"",getQueryVariable("renderer")}var readyStateCheckInterval=setInterval(checkReady,100);try{_typeof$3(exports)!=="object"&&(window.bodymovin=lottie)}catch(L){}var ShapeModifiers=function(){var L={},V={};L.registerModifier=G,L.getModifier=K;function G(ee,te){V[ee]||(V[ee]=te)}function K(ee,te,re){return new V[ee](te,re)}return L}();function ShapeModifier(){}ShapeModifier.prototype.initModifierProperties=function(){},ShapeModifier.prototype.addShapeToModifier=function(){},ShapeModifier.prototype.addShape=function(L){if(!this.closed){L.sh.container.addDynamicProperty(L.sh);var V={shape:L.sh,data:L,localShapeCollection:shapeCollectionPool.newShapeCollection()};this.shapes.push(V),this.addShapeToModifier(V),this._isAnimated&&L.setAsAnimated()}},ShapeModifier.prototype.init=function(L,V){this.shapes=[],this.elem=L,this.initDynamicPropertyContainer(L),this.initModifierProperties(L,V),this.frameId=initialDefaultFrame,this.closed=!1,this.k=!1,this.dynamicProperties.length?this.k=!0:this.getValue(!0)},ShapeModifier.prototype.processKeys=function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties())},extendPrototype([DynamicPropertyContainer],ShapeModifier);function TrimModifier(){}extendPrototype([ShapeModifier],TrimModifier),TrimModifier.prototype.initModifierProperties=function(L,V){this.s=PropertyFactory.getProp(L,V.s,0,.01,this),this.e=PropertyFactory.getProp(L,V.e,0,.01,this),this.o=PropertyFactory.getProp(L,V.o,0,0,this),this.sValue=0,this.eValue=0,this.getValue=this.processKeys,this.m=V.m,this._isAnimated=!!this.s.effectsSequence.length||!!this.e.effectsSequence.length||!!this.o.effectsSequence.length},TrimModifier.prototype.addShapeToModifier=function(L){L.pathsData=[]},TrimModifier.prototype.calculateShapeEdges=function(L,V,G,K,ee){var te=[];V<=1?te.push({s:L,e:V}):L>=1?te.push({s:L-1,e:V-1}):(te.push({s:L,e:1}),te.push({s:0,e:V-1}));var re=[],ce,ue=te.length,de;for(ce=0;ce<ue;ce+=1)if(de=te[ce],!(de.e*ee<K||de.s*ee>K+G)){var ve,st;de.s*ee<=K?ve=0:ve=(de.s*ee-K)/G,de.e*ee>=K+G?st=1:st=(de.e*ee-K)/G,re.push([ve,st])}return re.length||re.push([0,0]),re},TrimModifier.prototype.releasePathsData=function(L){var V,G=L.length;for(V=0;V<G;V+=1)segmentsLengthPool.release(L[V]);return L.length=0,L},TrimModifier.prototype.processShapes=function(L){var V,G;if(this._mdf||L){var K=this.o.v%360/360;if(K<0&&(K+=1),this.s.v>1?V=1+K:this.s.v<0?V=0+K:V=this.s.v+K,this.e.v>1?G=1+K:this.e.v<0?G=0+K:G=this.e.v+K,V>G){var ee=V;V=G,G=ee}V=Math.round(V*1e4)*1e-4,G=Math.round(G*1e4)*1e-4,this.sValue=V,this.eValue=G}else V=this.sValue,G=this.eValue;var te,re,ce=this.shapes.length,ue,de,ve,st,Ae,at=0;if(G===V)for(re=0;re<ce;re+=1)this.shapes[re].localShapeCollection.releaseShapes(),this.shapes[re].shape._mdf=!0,this.shapes[re].shape.paths=this.shapes[re].localShapeCollection,this._mdf&&(this.shapes[re].pathsData.length=0);else if(G===1&&V===0||G===0&&V===1){if(this._mdf)for(re=0;re<ce;re+=1)this.shapes[re].pathsData.length=0,this.shapes[re].shape._mdf=!0}else{var ot=[],rt,ft;for(re=0;re<ce;re+=1)if(rt=this.shapes[re],!rt.shape._mdf&&!this._mdf&&!L&&this.m!==2)rt.shape.paths=rt.localShapeCollection;else{if(te=rt.shape.paths,de=te._length,Ae=0,!rt.shape._mdf&&rt.pathsData.length)Ae=rt.totalShapeLength;else{for(ve=this.releasePathsData(rt.pathsData),ue=0;ue<de;ue+=1)st=bez.getSegmentsLength(te.shapes[ue]),ve.push(st),Ae+=st.totalLength;rt.totalShapeLength=Ae,rt.pathsData=ve}at+=Ae,rt.shape._mdf=!0}var Oe=V,nt=G,it=0,lt;for(re=ce-1;re>=0;re-=1)if(rt=this.shapes[re],rt.shape._mdf){for(ft=rt.localShapeCollection,ft.releaseShapes(),this.m===2&&ce>1?(lt=this.calculateShapeEdges(V,G,rt.totalShapeLength,it,at),it+=rt.totalShapeLength):lt=[[Oe,nt]],de=lt.length,ue=0;ue<de;ue+=1){Oe=lt[ue][0],nt=lt[ue][1],ot.length=0,nt<=1?ot.push({s:rt.totalShapeLength*Oe,e:rt.totalShapeLength*nt}):Oe>=1?ot.push({s:rt.totalShapeLength*(Oe-1),e:rt.totalShapeLength*(nt-1)}):(ot.push({s:rt.totalShapeLength*Oe,e:rt.totalShapeLength}),ot.push({s:0,e:rt.totalShapeLength*(nt-1)}));var ct=this.addShapes(rt,ot[0]);if(ot[0].s!==ot[0].e){if(ot.length>1){var ut=rt.shape.paths.shapes[rt.shape.paths._length-1];if(ut.c){var bt=ct.pop();this.addPaths(ct,ft),ct=this.addShapes(rt,ot[1],bt)}else this.addPaths(ct,ft),ct=this.addShapes(rt,ot[1])}this.addPaths(ct,ft)}}rt.shape.paths=ft}}},TrimModifier.prototype.addPaths=function(L,V){var G,K=L.length;for(G=0;G<K;G+=1)V.addShape(L[G])},TrimModifier.prototype.addSegment=function(L,V,G,K,ee,te,re){ee.setXYAt(V[0],V[1],"o",te),ee.setXYAt(G[0],G[1],"i",te+1),re&&ee.setXYAt(L[0],L[1],"v",te),ee.setXYAt(K[0],K[1],"v",te+1)},TrimModifier.prototype.addSegmentFromArray=function(L,V,G,K){V.setXYAt(L[1],L[5],"o",G),V.setXYAt(L[2],L[6],"i",G+1),K&&V.setXYAt(L[0],L[4],"v",G),V.setXYAt(L[3],L[7],"v",G+1)},TrimModifier.prototype.addShapes=function(L,V,G){var K=L.pathsData,ee=L.shape.paths.shapes,te,re=L.shape.paths._length,ce,ue,de=0,ve,st,Ae,at,ot=[],rt,ft=!0;for(G?(st=G._length,rt=G._length):(G=shapePool.newElement(),st=0,rt=0),ot.push(G),te=0;te<re;te+=1){for(Ae=K[te].lengths,G.c=ee[te].c,ue=ee[te].c?Ae.length:Ae.length+1,ce=1;ce<ue;ce+=1)if(ve=Ae[ce-1],de+ve.addedLength<V.s)de+=ve.addedLength,G.c=!1;else if(de>V.e){G.c=!1;break}else V.s<=de&&V.e>=de+ve.addedLength?(this.addSegment(ee[te].v[ce-1],ee[te].o[ce-1],ee[te].i[ce],ee[te].v[ce],G,st,ft),ft=!1):(at=bez.getNewSegment(ee[te].v[ce-1],ee[te].v[ce],ee[te].o[ce-1],ee[te].i[ce],(V.s-de)/ve.addedLength,(V.e-de)/ve.addedLength,Ae[ce-1]),this.addSegmentFromArray(at,G,st,ft),ft=!1,G.c=!1),de+=ve.addedLength,st+=1;if(ee[te].c&&Ae.length){if(ve=Ae[ce-1],de<=V.e){var Oe=Ae[ce-1].addedLength;V.s<=de&&V.e>=de+Oe?(this.addSegment(ee[te].v[ce-1],ee[te].o[ce-1],ee[te].i[0],ee[te].v[0],G,st,ft),ft=!1):(at=bez.getNewSegment(ee[te].v[ce-1],ee[te].v[0],ee[te].o[ce-1],ee[te].i[0],(V.s-de)/Oe,(V.e-de)/Oe,Ae[ce-1]),this.addSegmentFromArray(at,G,st,ft),ft=!1,G.c=!1)}else G.c=!1;de+=ve.addedLength,st+=1}if(G._length&&(G.setXYAt(G.v[rt][0],G.v[rt][1],"i",rt),G.setXYAt(G.v[G._length-1][0],G.v[G._length-1][1],"o",G._length-1)),de>V.e)break;te<re-1&&(G=shapePool.newElement(),ft=!0,ot.push(G),st=0)}return ot};function PuckerAndBloatModifier(){}extendPrototype([ShapeModifier],PuckerAndBloatModifier),PuckerAndBloatModifier.prototype.initModifierProperties=function(L,V){this.getValue=this.processKeys,this.amount=PropertyFactory.getProp(L,V.a,0,null,this),this._isAnimated=!!this.amount.effectsSequence.length},PuckerAndBloatModifier.prototype.processPath=function(L,V){var G=V/100,K=[0,0],ee=L._length,te=0;for(te=0;te<ee;te+=1)K[0]+=L.v[te][0],K[1]+=L.v[te][1];K[0]/=ee,K[1]/=ee;var re=shapePool.newElement();re.c=L.c;var ce,ue,de,ve,st,Ae;for(te=0;te<ee;te+=1)ce=L.v[te][0]+(K[0]-L.v[te][0])*G,ue=L.v[te][1]+(K[1]-L.v[te][1])*G,de=L.o[te][0]+(K[0]-L.o[te][0])*-G,ve=L.o[te][1]+(K[1]-L.o[te][1])*-G,st=L.i[te][0]+(K[0]-L.i[te][0])*-G,Ae=L.i[te][1]+(K[1]-L.i[te][1])*-G,re.setTripleAt(ce,ue,de,ve,st,Ae,te);return re},PuckerAndBloatModifier.prototype.processShapes=function(L){var V,G,K=this.shapes.length,ee,te,re=this.amount.v;if(re!==0){var ce,ue;for(G=0;G<K;G+=1){if(ce=this.shapes[G],ue=ce.localShapeCollection,!(!ce.shape._mdf&&!this._mdf&&!L))for(ue.releaseShapes(),ce.shape._mdf=!0,V=ce.shape.paths.shapes,te=ce.shape.paths._length,ee=0;ee<te;ee+=1)ue.addShape(this.processPath(V[ee],re));ce.shape.paths=ce.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};var TransformPropertyFactory=function(){var L=[0,0];function V(ue){var de=this._mdf;this.iterateDynamicProperties(),this._mdf=this._mdf||de,this.a&&ue.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.s&&ue.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.sk&&ue.skewFromAxis(-this.sk.v,this.sa.v),this.r?ue.rotate(-this.r.v):ue.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.data.p.s?this.data.p.z?ue.translate(this.px.v,this.py.v,-this.pz.v):ue.translate(this.px.v,this.py.v,0):ue.translate(this.p.v[0],this.p.v[1],-this.p.v[2])}function G(ue){if(this.elem.globalData.frameId!==this.frameId){if(this._isDirty&&(this.precalculateMatrix(),this._isDirty=!1),this.iterateDynamicProperties(),this._mdf||ue){var de;if(this.v.cloneFromProps(this.pre.props),this.appliedTransformations<1&&this.v.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.appliedTransformations<2&&this.v.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.sk&&this.appliedTransformations<3&&this.v.skewFromAxis(-this.sk.v,this.sa.v),this.r&&this.appliedTransformations<4?this.v.rotate(-this.r.v):!this.r&&this.appliedTransformations<4&&this.v.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.autoOriented){var ve,st;if(de=this.elem.globalData.frameRate,this.p&&this.p.keyframes&&this.p.getValueAtTime)this.p._caching.lastFrame+this.p.offsetTime<=this.p.keyframes[0].t?(ve=this.p.getValueAtTime((this.p.keyframes[0].t+.01)/de,0),st=this.p.getValueAtTime(this.p.keyframes[0].t/de,0)):this.p._caching.lastFrame+this.p.offsetTime>=this.p.keyframes[this.p.keyframes.length-1].t?(ve=this.p.getValueAtTime(this.p.keyframes[this.p.keyframes.length-1].t/de,0),st=this.p.getValueAtTime((this.p.keyframes[this.p.keyframes.length-1].t-.05)/de,0)):(ve=this.p.pv,st=this.p.getValueAtTime((this.p._caching.lastFrame+this.p.offsetTime-.01)/de,this.p.offsetTime));else if(this.px&&this.px.keyframes&&this.py.keyframes&&this.px.getValueAtTime&&this.py.getValueAtTime){ve=[],st=[];var Ae=this.px,at=this.py;Ae._caching.lastFrame+Ae.offsetTime<=Ae.keyframes[0].t?(ve[0]=Ae.getValueAtTime((Ae.keyframes[0].t+.01)/de,0),ve[1]=at.getValueAtTime((at.keyframes[0].t+.01)/de,0),st[0]=Ae.getValueAtTime(Ae.keyframes[0].t/de,0),st[1]=at.getValueAtTime(at.keyframes[0].t/de,0)):Ae._caching.lastFrame+Ae.offsetTime>=Ae.keyframes[Ae.keyframes.length-1].t?(ve[0]=Ae.getValueAtTime(Ae.keyframes[Ae.keyframes.length-1].t/de,0),ve[1]=at.getValueAtTime(at.keyframes[at.keyframes.length-1].t/de,0),st[0]=Ae.getValueAtTime((Ae.keyframes[Ae.keyframes.length-1].t-.01)/de,0),st[1]=at.getValueAtTime((at.keyframes[at.keyframes.length-1].t-.01)/de,0)):(ve=[Ae.pv,at.pv],st[0]=Ae.getValueAtTime((Ae._caching.lastFrame+Ae.offsetTime-.01)/de,Ae.offsetTime),st[1]=at.getValueAtTime((at._caching.lastFrame+at.offsetTime-.01)/de,at.offsetTime))}else st=L,ve=st;this.v.rotate(-Math.atan2(ve[1]-st[1],ve[0]-st[0]))}this.data.p&&this.data.p.s?this.data.p.z?this.v.translate(this.px.v,this.py.v,-this.pz.v):this.v.translate(this.px.v,this.py.v,0):this.v.translate(this.p.v[0],this.p.v[1],-this.p.v[2])}this.frameId=this.elem.globalData.frameId}}function K(){if(this.appliedTransformations=0,this.pre.reset(),!this.a.effectsSequence.length)this.pre.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.appliedTransformations=1;else return;if(!this.s.effectsSequence.length)this.pre.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.appliedTransformations=2;else return;if(this.sk)if(!this.sk.effectsSequence.length&&!this.sa.effectsSequence.length)this.pre.skewFromAxis(-this.sk.v,this.sa.v),this.appliedTransformations=3;else return;this.r?this.r.effectsSequence.length||(this.pre.rotate(-this.r.v),this.appliedTransformations=4):!this.rz.effectsSequence.length&&!this.ry.effectsSequence.length&&!this.rx.effectsSequence.length&&!this.or.effectsSequence.length&&(this.pre.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.appliedTransformations=4)}function ee(){}function te(ue){this._addDynamicProperty(ue),this.elem.addDynamicProperty(ue),this._isDirty=!0}function re(ue,de,ve){if(this.elem=ue,this.frameId=-1,this.propType="transform",this.data=de,this.v=new Matrix,this.pre=new Matrix,this.appliedTransformations=0,this.initDynamicPropertyContainer(ve||ue),de.p&&de.p.s?(this.px=PropertyFactory.getProp(ue,de.p.x,0,0,this),this.py=PropertyFactory.getProp(ue,de.p.y,0,0,this),de.p.z&&(this.pz=PropertyFactory.getProp(ue,de.p.z,0,0,this))):this.p=PropertyFactory.getProp(ue,de.p||{k:[0,0,0]},1,0,this),de.rx){if(this.rx=PropertyFactory.getProp(ue,de.rx,0,degToRads,this),this.ry=PropertyFactory.getProp(ue,de.ry,0,degToRads,this),this.rz=PropertyFactory.getProp(ue,de.rz,0,degToRads,this),de.or.k[0].ti){var st,Ae=de.or.k.length;for(st=0;st<Ae;st+=1)de.or.k[st].to=null,de.or.k[st].ti=null}this.or=PropertyFactory.getProp(ue,de.or,1,degToRads,this),this.or.sh=!0}else this.r=PropertyFactory.getProp(ue,de.r||{k:0},0,degToRads,this);de.sk&&(this.sk=PropertyFactory.getProp(ue,de.sk,0,degToRads,this),this.sa=PropertyFactory.getProp(ue,de.sa,0,degToRads,this)),this.a=PropertyFactory.getProp(ue,de.a||{k:[0,0,0]},1,0,this),this.s=PropertyFactory.getProp(ue,de.s||{k:[100,100,100]},1,.01,this),de.o?this.o=PropertyFactory.getProp(ue,de.o,0,.01,ue):this.o={_mdf:!1,v:1},this._isDirty=!0,this.dynamicProperties.length||this.getValue(!0)}re.prototype={applyToMatrix:V,getValue:G,precalculateMatrix:K,autoOrient:ee},extendPrototype([DynamicPropertyContainer],re),re.prototype.addDynamicProperty=te,re.prototype._addDynamicProperty=DynamicPropertyContainer.prototype.addDynamicProperty;function ce(ue,de,ve){return new re(ue,de,ve)}return{getTransformProperty:ce}}();function RepeaterModifier(){}extendPrototype([ShapeModifier],RepeaterModifier),RepeaterModifier.prototype.initModifierProperties=function(L,V){this.getValue=this.processKeys,this.c=PropertyFactory.getProp(L,V.c,0,null,this),this.o=PropertyFactory.getProp(L,V.o,0,null,this),this.tr=TransformPropertyFactory.getTransformProperty(L,V.tr,this),this.so=PropertyFactory.getProp(L,V.tr.so,0,.01,this),this.eo=PropertyFactory.getProp(L,V.tr.eo,0,.01,this),this.data=V,this.dynamicProperties.length||this.getValue(!0),this._isAnimated=!!this.dynamicProperties.length,this.pMatrix=new Matrix,this.rMatrix=new Matrix,this.sMatrix=new Matrix,this.tMatrix=new Matrix,this.matrix=new Matrix},RepeaterModifier.prototype.applyTransforms=function(L,V,G,K,ee,te){var re=te?-1:1,ce=K.s.v[0]+(1-K.s.v[0])*(1-ee),ue=K.s.v[1]+(1-K.s.v[1])*(1-ee);L.translate(K.p.v[0]*re*ee,K.p.v[1]*re*ee,K.p.v[2]),V.translate(-K.a.v[0],-K.a.v[1],K.a.v[2]),V.rotate(-K.r.v*re*ee),V.translate(K.a.v[0],K.a.v[1],K.a.v[2]),G.translate(-K.a.v[0],-K.a.v[1],K.a.v[2]),G.scale(te?1/ce:ce,te?1/ue:ue),G.translate(K.a.v[0],K.a.v[1],K.a.v[2])},RepeaterModifier.prototype.init=function(L,V,G,K){for(this.elem=L,this.arr=V,this.pos=G,this.elemsData=K,this._currentCopies=0,this._elements=[],this._groups=[],this.frameId=-1,this.initDynamicPropertyContainer(L),this.initModifierProperties(L,V[G]);G>0;)G-=1,this._elements.unshift(V[G]);this.dynamicProperties.length?this.k=!0:this.getValue(!0)},RepeaterModifier.prototype.resetElements=function(L){var V,G=L.length;for(V=0;V<G;V+=1)L[V]._processed=!1,L[V].ty==="gr"&&this.resetElements(L[V].it)},RepeaterModifier.prototype.cloneElements=function(L){var V=JSON.parse(JSON.stringify(L));return this.resetElements(V),V},RepeaterModifier.prototype.changeGroupRender=function(L,V){var G,K=L.length;for(G=0;G<K;G+=1)L[G]._render=V,L[G].ty==="gr"&&this.changeGroupRender(L[G].it,V)},RepeaterModifier.prototype.processShapes=function(L){var V,G,K,ee,te,re=!1;if(this._mdf||L){var ce=Math.ceil(this.c.v);if(this._groups.length<ce){for(;this._groups.length<ce;){var ue={it:this.cloneElements(this._elements),ty:"gr"};ue.it.push({a:{a:0,ix:1,k:[0,0]},nm:"Transform",o:{a:0,ix:7,k:100},p:{a:0,ix:2,k:[0,0]},r:{a:1,ix:6,k:[{s:0,e:0,t:0},{s:0,e:0,t:1}]},s:{a:0,ix:3,k:[100,100]},sa:{a:0,ix:5,k:0},sk:{a:0,ix:4,k:0},ty:"tr"}),this.arr.splice(0,0,ue),this._groups.splice(0,0,ue),this._currentCopies+=1}this.elem.reloadShapes(),re=!0}te=0;var de;for(K=0;K<=this._groups.length-1;K+=1){if(de=te<ce,this._groups[K]._render=de,this.changeGroupRender(this._groups[K].it,de),!de){var ve=this.elemsData[K].it,st=ve[ve.length-1];st.transform.op.v!==0?(st.transform.op._mdf=!0,st.transform.op.v=0):st.transform.op._mdf=!1}te+=1}this._currentCopies=ce;var Ae=this.o.v,at=Ae%1,ot=Ae>0?Math.floor(Ae):Math.ceil(Ae),rt=this.pMatrix.props,ft=this.rMatrix.props,Oe=this.sMatrix.props;this.pMatrix.reset(),this.rMatrix.reset(),this.sMatrix.reset(),this.tMatrix.reset(),this.matrix.reset();var nt=0;if(Ae>0){for(;nt<ot;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),nt+=1;at&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,at,!1),nt+=at)}else if(Ae<0){for(;nt>ot;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!0),nt-=1;at&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,-at,!0),nt-=at)}K=this.data.m===1?0:this._currentCopies-1,ee=this.data.m===1?1:-1,te=this._currentCopies;for(var it,lt;te;){if(V=this.elemsData[K].it,G=V[V.length-1].transform.mProps.v.props,lt=G.length,V[V.length-1].transform.mProps._mdf=!0,V[V.length-1].transform.op._mdf=!0,V[V.length-1].transform.op.v=this._currentCopies===1?this.so.v:this.so.v+(this.eo.v-this.so.v)*(K/(this._currentCopies-1)),nt!==0){for((K!==0&&ee===1||K!==this._currentCopies-1&&ee===-1)&&this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),this.matrix.transform(ft[0],ft[1],ft[2],ft[3],ft[4],ft[5],ft[6],ft[7],ft[8],ft[9],ft[10],ft[11],ft[12],ft[13],ft[14],ft[15]),this.matrix.transform(Oe[0],Oe[1],Oe[2],Oe[3],Oe[4],Oe[5],Oe[6],Oe[7],Oe[8],Oe[9],Oe[10],Oe[11],Oe[12],Oe[13],Oe[14],Oe[15]),this.matrix.transform(rt[0],rt[1],rt[2],rt[3],rt[4],rt[5],rt[6],rt[7],rt[8],rt[9],rt[10],rt[11],rt[12],rt[13],rt[14],rt[15]),it=0;it<lt;it+=1)G[it]=this.matrix.props[it];this.matrix.reset()}else for(this.matrix.reset(),it=0;it<lt;it+=1)G[it]=this.matrix.props[it];nt+=1,te-=1,K+=ee}}else for(te=this._currentCopies,K=0,ee=1;te;)V=this.elemsData[K].it,G=V[V.length-1].transform.mProps.v.props,V[V.length-1].transform.mProps._mdf=!1,V[V.length-1].transform.op._mdf=!1,te-=1,K+=ee;return re},RepeaterModifier.prototype.addShape=function(){};function RoundCornersModifier(){}extendPrototype([ShapeModifier],RoundCornersModifier),RoundCornersModifier.prototype.initModifierProperties=function(L,V){this.getValue=this.processKeys,this.rd=PropertyFactory.getProp(L,V.r,0,null,this),this._isAnimated=!!this.rd.effectsSequence.length},RoundCornersModifier.prototype.processPath=function(L,V){var G=shapePool.newElement();G.c=L.c;var K,ee=L._length,te,re,ce,ue,de,ve,st=0,Ae,at,ot,rt,ft,Oe;for(K=0;K<ee;K+=1)te=L.v[K],ce=L.o[K],re=L.i[K],te[0]===ce[0]&&te[1]===ce[1]&&te[0]===re[0]&&te[1]===re[1]?(K===0||K===ee-1)&&!L.c?(G.setTripleAt(te[0],te[1],ce[0],ce[1],re[0],re[1],st),st+=1):(K===0?ue=L.v[ee-1]:ue=L.v[K-1],de=Math.sqrt(Math.pow(te[0]-ue[0],2)+Math.pow(te[1]-ue[1],2)),ve=de?Math.min(de/2,V)/de:0,ft=te[0]+(ue[0]-te[0])*ve,Ae=ft,Oe=te[1]-(te[1]-ue[1])*ve,at=Oe,ot=Ae-(Ae-te[0])*roundCorner,rt=at-(at-te[1])*roundCorner,G.setTripleAt(Ae,at,ot,rt,ft,Oe,st),st+=1,K===ee-1?ue=L.v[0]:ue=L.v[K+1],de=Math.sqrt(Math.pow(te[0]-ue[0],2)+Math.pow(te[1]-ue[1],2)),ve=de?Math.min(de/2,V)/de:0,ot=te[0]+(ue[0]-te[0])*ve,Ae=ot,rt=te[1]+(ue[1]-te[1])*ve,at=rt,ft=Ae-(Ae-te[0])*roundCorner,Oe=at-(at-te[1])*roundCorner,G.setTripleAt(Ae,at,ot,rt,ft,Oe,st),st+=1):(G.setTripleAt(L.v[K][0],L.v[K][1],L.o[K][0],L.o[K][1],L.i[K][0],L.i[K][1],st),st+=1);return G},RoundCornersModifier.prototype.processShapes=function(L){var V,G,K=this.shapes.length,ee,te,re=this.rd.v;if(re!==0){var ce,ue;for(G=0;G<K;G+=1){if(ce=this.shapes[G],ue=ce.localShapeCollection,!(!ce.shape._mdf&&!this._mdf&&!L))for(ue.releaseShapes(),ce.shape._mdf=!0,V=ce.shape.paths.shapes,te=ce.shape.paths._length,ee=0;ee<te;ee+=1)ue.addShape(this.processPath(V[ee],re));ce.shape.paths=ce.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};function floatEqual(L,V){return Math.abs(L-V)*1e5<=Math.min(Math.abs(L),Math.abs(V))}function floatZero(L){return Math.abs(L)<=1e-5}function lerp(L,V,G){return L*(1-G)+V*G}function lerpPoint(L,V,G){return[lerp(L[0],V[0],G),lerp(L[1],V[1],G)]}function quadRoots(L,V,G){if(L===0)return[];var K=V*V-4*L*G;if(K<0)return[];var ee=-V/(2*L);if(K===0)return[ee];var te=Math.sqrt(K)/(2*L);return[ee-te,ee+te]}function polynomialCoefficients(L,V,G,K){return[-L+3*V-3*G+K,3*L-6*V+3*G,-3*L+3*V,L]}function singlePoint(L){return new PolynomialBezier(L,L,L,L,!1)}function PolynomialBezier(L,V,G,K,ee){ee&&pointEqual(L,V)&&(V=lerpPoint(L,K,1/3)),ee&&pointEqual(G,K)&&(G=lerpPoint(L,K,2/3));var te=polynomialCoefficients(L[0],V[0],G[0],K[0]),re=polynomialCoefficients(L[1],V[1],G[1],K[1]);this.a=[te[0],re[0]],this.b=[te[1],re[1]],this.c=[te[2],re[2]],this.d=[te[3],re[3]],this.points=[L,V,G,K]}PolynomialBezier.prototype.point=function(L){return[((this.a[0]*L+this.b[0])*L+this.c[0])*L+this.d[0],((this.a[1]*L+this.b[1])*L+this.c[1])*L+this.d[1]]},PolynomialBezier.prototype.derivative=function(L){return[(3*L*this.a[0]+2*this.b[0])*L+this.c[0],(3*L*this.a[1]+2*this.b[1])*L+this.c[1]]},PolynomialBezier.prototype.tangentAngle=function(L){var V=this.derivative(L);return Math.atan2(V[1],V[0])},PolynomialBezier.prototype.normalAngle=function(L){var V=this.derivative(L);return Math.atan2(V[0],V[1])},PolynomialBezier.prototype.inflectionPoints=function(){var L=this.a[1]*this.b[0]-this.a[0]*this.b[1];if(floatZero(L))return[];var V=-.5*(this.a[1]*this.c[0]-this.a[0]*this.c[1])/L,G=V*V-1/3*(this.b[1]*this.c[0]-this.b[0]*this.c[1])/L;if(G<0)return[];var K=Math.sqrt(G);return floatZero(K)?K>0&&K<1?[V]:[]:[V-K,V+K].filter(function(ee){return ee>0&&ee<1})},PolynomialBezier.prototype.split=function(L){if(L<=0)return[singlePoint(this.points[0]),this];if(L>=1)return[this,singlePoint(this.points[this.points.length-1])];var V=lerpPoint(this.points[0],this.points[1],L),G=lerpPoint(this.points[1],this.points[2],L),K=lerpPoint(this.points[2],this.points[3],L),ee=lerpPoint(V,G,L),te=lerpPoint(G,K,L),re=lerpPoint(ee,te,L);return[new PolynomialBezier(this.points[0],V,ee,re,!0),new PolynomialBezier(re,te,K,this.points[3],!0)]};function extrema(L,V){var G=L.points[0][V],K=L.points[L.points.length-1][V];if(G>K){var ee=K;K=G,G=ee}for(var te=quadRoots(3*L.a[V],2*L.b[V],L.c[V]),re=0;re<te.length;re+=1)if(te[re]>0&&te[re]<1){var ce=L.point(te[re])[V];ce<G?G=ce:ce>K&&(K=ce)}return{min:G,max:K}}PolynomialBezier.prototype.bounds=function(){return{x:extrema(this,0),y:extrema(this,1)}},PolynomialBezier.prototype.boundingBox=function(){var L=this.bounds();return{left:L.x.min,right:L.x.max,top:L.y.min,bottom:L.y.max,width:L.x.max-L.x.min,height:L.y.max-L.y.min,cx:(L.x.max+L.x.min)/2,cy:(L.y.max+L.y.min)/2}};function intersectData(L,V,G){var K=L.boundingBox();return{cx:K.cx,cy:K.cy,width:K.width,height:K.height,bez:L,t:(V+G)/2,t1:V,t2:G}}function splitData(L){var V=L.bez.split(.5);return[intersectData(V[0],L.t1,L.t),intersectData(V[1],L.t,L.t2)]}function boxIntersect(L,V){return Math.abs(L.cx-V.cx)*2<L.width+V.width&&Math.abs(L.cy-V.cy)*2<L.height+V.height}function intersectsImpl(L,V,G,K,ee,te){if(!!boxIntersect(L,V)){if(G>=te||L.width<=K&&L.height<=K&&V.width<=K&&V.height<=K){ee.push([L.t,V.t]);return}var re=splitData(L),ce=splitData(V);intersectsImpl(re[0],ce[0],G+1,K,ee,te),intersectsImpl(re[0],ce[1],G+1,K,ee,te),intersectsImpl(re[1],ce[0],G+1,K,ee,te),intersectsImpl(re[1],ce[1],G+1,K,ee,te)}}PolynomialBezier.prototype.intersections=function(L,V,G){V===void 0&&(V=2),G===void 0&&(G=7);var K=[];return intersectsImpl(intersectData(this,0,1),intersectData(L,0,1),0,V,K,G),K},PolynomialBezier.shapeSegment=function(L,V){var G=(V+1)%L.length();return new PolynomialBezier(L.v[V],L.o[V],L.i[G],L.v[G],!0)},PolynomialBezier.shapeSegmentInverted=function(L,V){var G=(V+1)%L.length();return new PolynomialBezier(L.v[G],L.i[G],L.o[V],L.v[V],!0)};function crossProduct(L,V){return[L[1]*V[2]-L[2]*V[1],L[2]*V[0]-L[0]*V[2],L[0]*V[1]-L[1]*V[0]]}function lineIntersection(L,V,G,K){var ee=[L[0],L[1],1],te=[V[0],V[1],1],re=[G[0],G[1],1],ce=[K[0],K[1],1],ue=crossProduct(crossProduct(ee,te),crossProduct(re,ce));return floatZero(ue[2])?null:[ue[0]/ue[2],ue[1]/ue[2]]}function polarOffset(L,V,G){return[L[0]+Math.cos(V)*G,L[1]-Math.sin(V)*G]}function pointDistance(L,V){return Math.hypot(L[0]-V[0],L[1]-V[1])}function pointEqual(L,V){return floatEqual(L[0],V[0])&&floatEqual(L[1],V[1])}function ZigZagModifier(){}extendPrototype([ShapeModifier],ZigZagModifier),ZigZagModifier.prototype.initModifierProperties=function(L,V){this.getValue=this.processKeys,this.amplitude=PropertyFactory.getProp(L,V.s,0,null,this),this.frequency=PropertyFactory.getProp(L,V.r,0,null,this),this.pointsType=PropertyFactory.getProp(L,V.pt,0,null,this),this._isAnimated=this.amplitude.effectsSequence.length!==0||this.frequency.effectsSequence.length!==0||this.pointsType.effectsSequence.length!==0};function setPoint(L,V,G,K,ee,te,re){var ce=G-Math.PI/2,ue=G+Math.PI/2,de=V[0]+Math.cos(G)*K*ee,ve=V[1]-Math.sin(G)*K*ee;L.setTripleAt(de,ve,de+Math.cos(ce)*te,ve-Math.sin(ce)*te,de+Math.cos(ue)*re,ve-Math.sin(ue)*re,L.length())}function getPerpendicularVector(L,V){var G=[V[0]-L[0],V[1]-L[1]],K=-Math.PI*.5,ee=[Math.cos(K)*G[0]-Math.sin(K)*G[1],Math.sin(K)*G[0]+Math.cos(K)*G[1]];return ee}function getProjectingAngle(L,V){var G=V===0?L.length()-1:V-1,K=(V+1)%L.length(),ee=L.v[G],te=L.v[K],re=getPerpendicularVector(ee,te);return Math.atan2(0,1)-Math.atan2(re[1],re[0])}function zigZagCorner(L,V,G,K,ee,te,re){var ce=getProjectingAngle(V,G),ue=V.v[G%V._length],de=V.v[G===0?V._length-1:G-1],ve=V.v[(G+1)%V._length],st=te===2?Math.sqrt(Math.pow(ue[0]-de[0],2)+Math.pow(ue[1]-de[1],2)):0,Ae=te===2?Math.sqrt(Math.pow(ue[0]-ve[0],2)+Math.pow(ue[1]-ve[1],2)):0;setPoint(L,V.v[G%V._length],ce,re,K,Ae/((ee+1)*2),st/((ee+1)*2))}function zigZagSegment(L,V,G,K,ee,te){for(var re=0;re<K;re+=1){var ce=(re+1)/(K+1),ue=ee===2?Math.sqrt(Math.pow(V.points[3][0]-V.points[0][0],2)+Math.pow(V.points[3][1]-V.points[0][1],2)):0,de=V.normalAngle(ce),ve=V.point(ce);setPoint(L,ve,de,te,G,ue/((K+1)*2),ue/((K+1)*2)),te=-te}return te}ZigZagModifier.prototype.processPath=function(L,V,G,K){var ee=L._length,te=shapePool.newElement();if(te.c=L.c,L.c||(ee-=1),ee===0)return te;var re=-1,ce=PolynomialBezier.shapeSegment(L,0);zigZagCorner(te,L,0,V,G,K,re);for(var ue=0;ue<ee;ue+=1)re=zigZagSegment(te,ce,V,G,K,-re),ue===ee-1&&!L.c?ce=null:ce=PolynomialBezier.shapeSegment(L,(ue+1)%ee),zigZagCorner(te,L,ue+1,V,G,K,re);return te},ZigZagModifier.prototype.processShapes=function(L){var V,G,K=this.shapes.length,ee,te,re=this.amplitude.v,ce=Math.max(0,Math.round(this.frequency.v)),ue=this.pointsType.v;if(re!==0){var de,ve;for(G=0;G<K;G+=1){if(de=this.shapes[G],ve=de.localShapeCollection,!(!de.shape._mdf&&!this._mdf&&!L))for(ve.releaseShapes(),de.shape._mdf=!0,V=de.shape.paths.shapes,te=de.shape.paths._length,ee=0;ee<te;ee+=1)ve.addShape(this.processPath(V[ee],re,ce,ue));de.shape.paths=de.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};function linearOffset(L,V,G){var K=Math.atan2(V[0]-L[0],V[1]-L[1]);return[polarOffset(L,K,G),polarOffset(V,K,G)]}function offsetSegment(L,V){var G,K,ee,te,re,ce,ue;ue=linearOffset(L.points[0],L.points[1],V),G=ue[0],K=ue[1],ue=linearOffset(L.points[1],L.points[2],V),ee=ue[0],te=ue[1],ue=linearOffset(L.points[2],L.points[3],V),re=ue[0],ce=ue[1];var de=lineIntersection(G,K,ee,te);de===null&&(de=K);var ve=lineIntersection(re,ce,ee,te);return ve===null&&(ve=re),new PolynomialBezier(G,de,ve,ce)}function joinLines(L,V,G,K,ee){var te=V.points[3],re=G.points[0];if(K===3||pointEqual(te,re))return te;if(K===2){var ce=-V.tangentAngle(1),ue=-G.tangentAngle(0)+Math.PI,de=lineIntersection(te,polarOffset(te,ce+Math.PI/2,100),re,polarOffset(re,ce+Math.PI/2,100)),ve=de?pointDistance(de,te):pointDistance(te,re)/2,st=polarOffset(te,ce,2*ve*roundCorner);return L.setXYAt(st[0],st[1],"o",L.length()-1),st=polarOffset(re,ue,2*ve*roundCorner),L.setTripleAt(re[0],re[1],re[0],re[1],st[0],st[1],L.length()),re}var Ae=pointEqual(te,V.points[2])?V.points[0]:V.points[2],at=pointEqual(re,G.points[1])?G.points[3]:G.points[1],ot=lineIntersection(Ae,te,re,at);return ot&&pointDistance(ot,te)<ee?(L.setTripleAt(ot[0],ot[1],ot[0],ot[1],ot[0],ot[1],L.length()),ot):te}function getIntersection(L,V){var G=L.intersections(V);return G.length&&floatEqual(G[0][0],1)&&G.shift(),G.length?G[0]:null}function pruneSegmentIntersection(L,V){var G=L.slice(),K=V.slice(),ee=getIntersection(L[L.length-1],V[0]);return ee&&(G[L.length-1]=L[L.length-1].split(ee[0])[0],K[0]=V[0].split(ee[1])[1]),L.length>1&&V.length>1&&(ee=getIntersection(L[0],V[V.length-1]),ee)?[[L[0].split(ee[0])[0]],[V[V.length-1].split(ee[1])[1]]]:[G,K]}function pruneIntersections(L){for(var V,G=1;G<L.length;G+=1)V=pruneSegmentIntersection(L[G-1],L[G]),L[G-1]=V[0],L[G]=V[1];return L.length>1&&(V=pruneSegmentIntersection(L[L.length-1],L[0]),L[L.length-1]=V[0],L[0]=V[1]),L}function offsetSegmentSplit(L,V){var G=L.inflectionPoints(),K,ee,te,re;if(G.length===0)return[offsetSegment(L,V)];if(G.length===1||floatEqual(G[1],1))return te=L.split(G[0]),K=te[0],ee=te[1],[offsetSegment(K,V),offsetSegment(ee,V)];te=L.split(G[0]),K=te[0];var ce=(G[1]-G[0])/(1-G[0]);return te=te[1].split(ce),re=te[0],ee=te[1],[offsetSegment(K,V),offsetSegment(re,V),offsetSegment(ee,V)]}function OffsetPathModifier(){}extendPrototype([ShapeModifier],OffsetPathModifier),OffsetPathModifier.prototype.initModifierProperties=function(L,V){this.getValue=this.processKeys,this.amount=PropertyFactory.getProp(L,V.a,0,null,this),this.miterLimit=PropertyFactory.getProp(L,V.ml,0,null,this),this.lineJoin=V.lj,this._isAnimated=this.amount.effectsSequence.length!==0},OffsetPathModifier.prototype.processPath=function(L,V,G,K){var ee=shapePool.newElement();ee.c=L.c;var te=L.length();L.c||(te-=1);var re,ce,ue,de=[];for(re=0;re<te;re+=1)ue=PolynomialBezier.shapeSegment(L,re),de.push(offsetSegmentSplit(ue,V));if(!L.c)for(re=te-1;re>=0;re-=1)ue=PolynomialBezier.shapeSegmentInverted(L,re),de.push(offsetSegmentSplit(ue,V));de=pruneIntersections(de);var ve=null,st=null;for(re=0;re<de.length;re+=1){var Ae=de[re];for(st&&(ve=joinLines(ee,st,Ae[0],G,K)),st=Ae[Ae.length-1],ce=0;ce<Ae.length;ce+=1)ue=Ae[ce],ve&&pointEqual(ue.points[0],ve)?ee.setXYAt(ue.points[1][0],ue.points[1][1],"o",ee.length()-1):ee.setTripleAt(ue.points[0][0],ue.points[0][1],ue.points[1][0],ue.points[1][1],ue.points[0][0],ue.points[0][1],ee.length()),ee.setTripleAt(ue.points[3][0],ue.points[3][1],ue.points[3][0],ue.points[3][1],ue.points[2][0],ue.points[2][1],ee.length()),ve=ue.points[3]}return de.length&&joinLines(ee,st,de[0][0],G,K),ee},OffsetPathModifier.prototype.processShapes=function(L){var V,G,K=this.shapes.length,ee,te,re=this.amount.v,ce=this.miterLimit.v,ue=this.lineJoin;if(re!==0){var de,ve;for(G=0;G<K;G+=1){if(de=this.shapes[G],ve=de.localShapeCollection,!(!de.shape._mdf&&!this._mdf&&!L))for(ve.releaseShapes(),de.shape._mdf=!0,V=de.shape.paths.shapes,te=de.shape.paths._length,ee=0;ee<te;ee+=1)ve.addShape(this.processPath(V[ee],re,ue,ce));de.shape.paths=de.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};function getFontProperties(L){for(var V=L.fStyle?L.fStyle.split(" "):[],G="normal",K="normal",ee=V.length,te,re=0;re<ee;re+=1)switch(te=V[re].toLowerCase(),te){case"italic":K="italic";break;case"bold":G="700";break;case"black":G="900";break;case"medium":G="500";break;case"regular":case"normal":G="400";break;case"light":case"thin":G="200";break}return{style:K,weight:L.fWeight||G}}var FontManager=function(){var L=5e3,V={w:0,size:0,shapes:[],data:{shapes:[]}},G=[];G=G.concat([2304,2305,2306,2307,2362,2363,2364,2364,2366,2367,2368,2369,2370,2371,2372,2373,2374,2375,2376,2377,2378,2379,2380,2381,2382,2383,2387,2388,2389,2390,2391,2402,2403]);var K=127988,ee=917631,te=917601,re=917626,ce=65039,ue=8205,de=127462,ve=127487,st=["d83cdffb","d83cdffc","d83cdffd","d83cdffe","d83cdfff"];function Ae($t){var Ct=$t.split(","),dt,mt=Ct.length,kt=[];for(dt=0;dt<mt;dt+=1)Ct[dt]!=="sans-serif"&&Ct[dt]!=="monospace"&&kt.push(Ct[dt]);return kt.join(",")}function at($t,Ct){var dt=createTag("span");dt.setAttribute("aria-hidden",!0),dt.style.fontFamily=Ct;var mt=createTag("span");mt.innerText="giItT1WQy@!-/#",dt.style.position="absolute",dt.style.left="-10000px",dt.style.top="-10000px",dt.style.fontSize="300px",dt.style.fontVariant="normal",dt.style.fontStyle="normal",dt.style.fontWeight="normal",dt.style.letterSpacing="0",dt.appendChild(mt),document.body.appendChild(dt);var kt=mt.offsetWidth;return mt.style.fontFamily=Ae($t)+", "+Ct,{node:mt,w:kt,parent:dt}}function ot(){var $t,Ct=this.fonts.length,dt,mt,kt=Ct;for($t=0;$t<Ct;$t+=1)this.fonts[$t].loaded?kt-=1:this.fonts[$t].fOrigin==="n"||this.fonts[$t].origin===0?this.fonts[$t].loaded=!0:(dt=this.fonts[$t].monoCase.node,mt=this.fonts[$t].monoCase.w,dt.offsetWidth!==mt?(kt-=1,this.fonts[$t].loaded=!0):(dt=this.fonts[$t].sansCase.node,mt=this.fonts[$t].sansCase.w,dt.offsetWidth!==mt&&(kt-=1,this.fonts[$t].loaded=!0)),this.fonts[$t].loaded&&(this.fonts[$t].sansCase.parent.parentNode.removeChild(this.fonts[$t].sansCase.parent),this.fonts[$t].monoCase.parent.parentNode.removeChild(this.fonts[$t].monoCase.parent)));kt!==0&&Date.now()-this.initTime<L?setTimeout(this.checkLoadedFontsBinded,20):setTimeout(this.setIsLoadedBinded,10)}function rt($t,Ct){var dt=document.body&&Ct?"svg":"canvas",mt,kt=getFontProperties($t);if(dt==="svg"){var It=createNS("text");It.style.fontSize="100px",It.setAttribute("font-family",$t.fFamily),It.setAttribute("font-style",kt.style),It.setAttribute("font-weight",kt.weight),It.textContent="1",$t.fClass?(It.style.fontFamily="inherit",It.setAttribute("class",$t.fClass)):It.style.fontFamily=$t.fFamily,Ct.appendChild(It),mt=It}else{var Kt=new OffscreenCanvas(500,500).getContext("2d");Kt.font=kt.style+" "+kt.weight+" 100px "+$t.fFamily,mt=Kt}function Yt(nr){return dt==="svg"?(mt.textContent=nr,mt.getComputedTextLength()):mt.measureText(nr).width}return{measureText:Yt}}function ft($t,Ct){if(!$t){this.isLoaded=!0;return}if(this.chars){this.isLoaded=!0,this.fonts=$t.list;return}if(!document.body){this.isLoaded=!0,$t.list.forEach(function(sr){sr.helper=rt(sr),sr.cache={}}),this.fonts=$t.list;return}var dt=$t.list,mt,kt=dt.length,It=kt;for(mt=0;mt<kt;mt+=1){var Kt=!0,Yt,nr;if(dt[mt].loaded=!1,dt[mt].monoCase=at(dt[mt].fFamily,"monospace"),dt[mt].sansCase=at(dt[mt].fFamily,"sans-serif"),!dt[mt].fPath)dt[mt].loaded=!0,It-=1;else if(dt[mt].fOrigin==="p"||dt[mt].origin===3){if(Yt=document.querySelectorAll('style[f-forigin="p"][f-family="'+dt[mt].fFamily+'"], style[f-origin="3"][f-family="'+dt[mt].fFamily+'"]'),Yt.length>0&&(Kt=!1),Kt){var ur=createTag("style");ur.setAttribute("f-forigin",dt[mt].fOrigin),ur.setAttribute("f-origin",dt[mt].origin),ur.setAttribute("f-family",dt[mt].fFamily),ur.type="text/css",ur.innerText="@font-face {font-family: "+dt[mt].fFamily+"; font-style: normal; src: url('"+dt[mt].fPath+"');}",Ct.appendChild(ur)}}else if(dt[mt].fOrigin==="g"||dt[mt].origin===1){for(Yt=document.querySelectorAll('link[f-forigin="g"], link[f-origin="1"]'),nr=0;nr<Yt.length;nr+=1)Yt[nr].href.indexOf(dt[mt].fPath)!==-1&&(Kt=!1);if(Kt){var Vt=createTag("link");Vt.setAttribute("f-forigin",dt[mt].fOrigin),Vt.setAttribute("f-origin",dt[mt].origin),Vt.type="text/css",Vt.rel="stylesheet",Vt.href=dt[mt].fPath,document.body.appendChild(Vt)}}else if(dt[mt].fOrigin==="t"||dt[mt].origin===2){for(Yt=document.querySelectorAll('script[f-forigin="t"], script[f-origin="2"]'),nr=0;nr<Yt.length;nr+=1)dt[mt].fPath===Yt[nr].src&&(Kt=!1);if(Kt){var lr=createTag("link");lr.setAttribute("f-forigin",dt[mt].fOrigin),lr.setAttribute("f-origin",dt[mt].origin),lr.setAttribute("rel","stylesheet"),lr.setAttribute("href",dt[mt].fPath),Ct.appendChild(lr)}}dt[mt].helper=rt(dt[mt],Ct),dt[mt].cache={},this.fonts.push(dt[mt])}It===0?this.isLoaded=!0:setTimeout(this.checkLoadedFonts.bind(this),100)}function Oe($t){if(!!$t){this.chars||(this.chars=[]);var Ct,dt=$t.length,mt,kt=this.chars.length,It;for(Ct=0;Ct<dt;Ct+=1){for(mt=0,It=!1;mt<kt;)this.chars[mt].style===$t[Ct].style&&this.chars[mt].fFamily===$t[Ct].fFamily&&this.chars[mt].ch===$t[Ct].ch&&(It=!0),mt+=1;It||(this.chars.push($t[Ct]),kt+=1)}}}function nt($t,Ct,dt){for(var mt=0,kt=this.chars.length;mt<kt;){if(this.chars[mt].ch===$t&&this.chars[mt].style===Ct&&this.chars[mt].fFamily===dt)return this.chars[mt];mt+=1}return(typeof $t=="string"&&$t.charCodeAt(0)!==13||!$t)&&console&&console.warn&&!this._warned&&(this._warned=!0,console.warn("Missing character from exported characters list: ",$t,Ct,dt)),V}function it($t,Ct,dt){var mt=this.getFontByName(Ct),kt=$t;if(!mt.cache[kt]){var It=mt.helper;if($t===" "){var Kt=It.measureText("|"+$t+"|"),Yt=It.measureText("||");mt.cache[kt]=(Kt-Yt)/100}else mt.cache[kt]=It.measureText($t)/100}return mt.cache[kt]*dt}function lt($t){for(var Ct=0,dt=this.fonts.length;Ct<dt;){if(this.fonts[Ct].fName===$t)return this.fonts[Ct];Ct+=1}return this.fonts[0]}function ct($t){var Ct=0,dt=$t.charCodeAt(0);if(dt>=55296&&dt<=56319){var mt=$t.charCodeAt(1);mt>=56320&&mt<=57343&&(Ct=(dt-55296)*1024+mt-56320+65536)}return Ct}function ut($t,Ct){var dt=$t.toString(16)+Ct.toString(16);return st.indexOf(dt)!==-1}function bt($t){return $t===ue}function gt($t){return $t===ce}function Pt($t){var Ct=ct($t);return Ct>=de&&Ct<=ve}function Nt($t){return Pt($t.substr(0,2))&&Pt($t.substr(2,2))}function Ot($t){return G.indexOf($t)!==-1}function Ft($t,Ct){var dt=ct($t.substr(Ct,2));if(dt!==K)return!1;var mt=0;for(Ct+=2;mt<5;){if(dt=ct($t.substr(Ct,2)),dt<te||dt>re)return!1;mt+=1,Ct+=2}return ct($t.substr(Ct,2))===ee}function jt(){this.isLoaded=!0}var Bt=function(){this.fonts=[],this.chars=null,this.typekitLoaded=0,this.isLoaded=!1,this._warned=!1,this.initTime=Date.now(),this.setIsLoadedBinded=this.setIsLoaded.bind(this),this.checkLoadedFontsBinded=this.checkLoadedFonts.bind(this)};Bt.isModifier=ut,Bt.isZeroWidthJoiner=bt,Bt.isFlagEmoji=Nt,Bt.isRegionalCode=Pt,Bt.isCombinedCharacter=Ot,Bt.isRegionalFlag=Ft,Bt.isVariationSelector=gt,Bt.BLACK_FLAG_CODE_POINT=K;var At={addChars:Oe,addFonts:ft,getCharData:nt,getFontByName:lt,measureText:it,checkLoadedFonts:ot,setIsLoaded:jt};return Bt.prototype=At,Bt}();function SlotManager(L){this.animationData=L}SlotManager.prototype.getProp=function(L){return this.animationData.slots&&this.animationData.slots[L.sid]?Object.assign(L,this.animationData.slots[L.sid].p):L};function slotFactory(L){return new SlotManager(L)}function RenderableElement(){}RenderableElement.prototype={initRenderable:function(){this.isInRange=!1,this.hidden=!1,this.isTransparent=!1,this.renderableComponents=[]},addRenderableComponent:function(V){this.renderableComponents.indexOf(V)===-1&&this.renderableComponents.push(V)},removeRenderableComponent:function(V){this.renderableComponents.indexOf(V)!==-1&&this.renderableComponents.splice(this.renderableComponents.indexOf(V),1)},prepareRenderableFrame:function(V){this.checkLayerLimits(V)},checkTransparency:function(){this.finalTransform.mProp.o.v<=0?!this.isTransparent&&this.globalData.renderConfig.hideOnTransparent&&(this.isTransparent=!0,this.hide()):this.isTransparent&&(this.isTransparent=!1,this.show())},checkLayerLimits:function(V){this.data.ip-this.data.st<=V&&this.data.op-this.data.st>V?this.isInRange!==!0&&(this.globalData._mdf=!0,this._mdf=!0,this.isInRange=!0,this.show()):this.isInRange!==!1&&(this.globalData._mdf=!0,this.isInRange=!1,this.hide())},renderRenderable:function(){var V,G=this.renderableComponents.length;for(V=0;V<G;V+=1)this.renderableComponents[V].renderFrame(this._isFirstFrame)},sourceRectAtTime:function(){return{top:0,left:0,width:100,height:100}},getLayerSize:function(){return this.data.ty===5?{w:this.data.textData.width,h:this.data.textData.height}:{w:this.data.width,h:this.data.height}}};var getBlendMode=function(){var L={0:"source-over",1:"multiply",2:"screen",3:"overlay",4:"darken",5:"lighten",6:"color-dodge",7:"color-burn",8:"hard-light",9:"soft-light",10:"difference",11:"exclusion",12:"hue",13:"saturation",14:"color",15:"luminosity"};return function(V){return L[V]||""}}();function SliderEffect(L,V,G){this.p=PropertyFactory.getProp(V,L.v,0,0,G)}function AngleEffect(L,V,G){this.p=PropertyFactory.getProp(V,L.v,0,0,G)}function ColorEffect(L,V,G){this.p=PropertyFactory.getProp(V,L.v,1,0,G)}function PointEffect(L,V,G){this.p=PropertyFactory.getProp(V,L.v,1,0,G)}function LayerIndexEffect(L,V,G){this.p=PropertyFactory.getProp(V,L.v,0,0,G)}function MaskIndexEffect(L,V,G){this.p=PropertyFactory.getProp(V,L.v,0,0,G)}function CheckboxEffect(L,V,G){this.p=PropertyFactory.getProp(V,L.v,0,0,G)}function NoValueEffect(){this.p={}}function EffectsManager(L,V){var G=L.ef||[];this.effectElements=[];var K,ee=G.length,te;for(K=0;K<ee;K+=1)te=new GroupEffect(G[K],V),this.effectElements.push(te)}function GroupEffect(L,V){this.init(L,V)}extendPrototype([DynamicPropertyContainer],GroupEffect),GroupEffect.prototype.getValue=GroupEffect.prototype.iterateDynamicProperties,GroupEffect.prototype.init=function(L,V){this.data=L,this.effectElements=[],this.initDynamicPropertyContainer(V);var G,K=this.data.ef.length,ee,te=this.data.ef;for(G=0;G<K;G+=1){switch(ee=null,te[G].ty){case 0:ee=new SliderEffect(te[G],V,this);break;case 1:ee=new AngleEffect(te[G],V,this);break;case 2:ee=new ColorEffect(te[G],V,this);break;case 3:ee=new PointEffect(te[G],V,this);break;case 4:case 7:ee=new CheckboxEffect(te[G],V,this);break;case 10:ee=new LayerIndexEffect(te[G],V,this);break;case 11:ee=new MaskIndexEffect(te[G],V,this);break;case 5:ee=new EffectsManager(te[G],V);break;default:ee=new NoValueEffect(te[G]);break}ee&&this.effectElements.push(ee)}};function BaseElement(){}BaseElement.prototype={checkMasks:function(){if(!this.data.hasMask)return!1;for(var V=0,G=this.data.masksProperties.length;V<G;){if(this.data.masksProperties[V].mode!=="n"&&this.data.masksProperties[V].cl!==!1)return!0;V+=1}return!1},initExpressions:function(){var V=getExpressionInterfaces();if(!!V){var G=V("layer"),K=V("effects"),ee=V("shape"),te=V("text"),re=V("comp");this.layerInterface=G(this),this.data.hasMask&&this.maskManager&&this.layerInterface.registerMaskInterface(this.maskManager);var ce=K.createEffectsInterface(this,this.layerInterface);this.layerInterface.registerEffectsInterface(ce),this.data.ty===0||this.data.xt?this.compInterface=re(this):this.data.ty===4?(this.layerInterface.shapeInterface=ee(this.shapesData,this.itemsData,this.layerInterface),this.layerInterface.content=this.layerInterface.shapeInterface):this.data.ty===5&&(this.layerInterface.textInterface=te(this),this.layerInterface.text=this.layerInterface.textInterface)}},setBlendMode:function(){var V=getBlendMode(this.data.bm),G=this.baseElement||this.layerElement;G.style["mix-blend-mode"]=V},initBaseData:function(V,G,K){this.globalData=G,this.comp=K,this.data=V,this.layerId=createElementID(),this.data.sr||(this.data.sr=1),this.effectsManager=new EffectsManager(this.data,this,this.dynamicProperties)},getType:function(){return this.type},sourceRectAtTime:function(){}};function FrameElement(){}FrameElement.prototype={initFrame:function(){this._isFirstFrame=!1,this.dynamicProperties=[],this._mdf=!1},prepareProperties:function(V,G){var K,ee=this.dynamicProperties.length;for(K=0;K<ee;K+=1)(G||this._isParent&&this.dynamicProperties[K].propType==="transform")&&(this.dynamicProperties[K].getValue(),this.dynamicProperties[K]._mdf&&(this.globalData._mdf=!0,this._mdf=!0))},addDynamicProperty:function(V){this.dynamicProperties.indexOf(V)===-1&&this.dynamicProperties.push(V)}};function FootageElement(L,V,G){this.initFrame(),this.initRenderable(),this.assetData=V.getAssetData(L.refId),this.footageData=V.imageLoader.getAsset(this.assetData),this.initBaseData(L,V,G)}FootageElement.prototype.prepareFrame=function(){},extendPrototype([RenderableElement,BaseElement,FrameElement],FootageElement),FootageElement.prototype.getBaseElement=function(){return null},FootageElement.prototype.renderFrame=function(){},FootageElement.prototype.destroy=function(){},FootageElement.prototype.initExpressions=function(){var L=getExpressionInterfaces();if(!!L){var V=L("footage");this.layerInterface=V(this)}},FootageElement.prototype.getFootageData=function(){return this.footageData};function AudioElement(L,V,G){this.initFrame(),this.initRenderable(),this.assetData=V.getAssetData(L.refId),this.initBaseData(L,V,G),this._isPlaying=!1,this._canPlay=!1;var K=this.globalData.getAssetsPath(this.assetData);this.audio=this.globalData.audioController.createAudio(K),this._currentTime=0,this.globalData.audioController.addAudio(this),this._volumeMultiplier=1,this._volume=1,this._previousVolume=null,this.tm=L.tm?PropertyFactory.getProp(this,L.tm,0,V.frameRate,this):{_placeholder:!0},this.lv=PropertyFactory.getProp(this,L.au&&L.au.lv?L.au.lv:{k:[100]},1,.01,this)}AudioElement.prototype.prepareFrame=function(L){if(this.prepareRenderableFrame(L,!0),this.prepareProperties(L,!0),this.tm._placeholder)this._currentTime=L/this.data.sr;else{var V=this.tm.v;this._currentTime=V}this._volume=this.lv.v[0];var G=this._volume*this._volumeMultiplier;this._previousVolume!==G&&(this._previousVolume=G,this.audio.volume(G))},extendPrototype([RenderableElement,BaseElement,FrameElement],AudioElement),AudioElement.prototype.renderFrame=function(){this.isInRange&&this._canPlay&&(this._isPlaying?(!this.audio.playing()||Math.abs(this._currentTime/this.globalData.frameRate-this.audio.seek())>.1)&&this.audio.seek(this._currentTime/this.globalData.frameRate):(this.audio.play(),this.audio.seek(this._currentTime/this.globalData.frameRate),this._isPlaying=!0))},AudioElement.prototype.show=function(){},AudioElement.prototype.hide=function(){this.audio.pause(),this._isPlaying=!1},AudioElement.prototype.pause=function(){this.audio.pause(),this._isPlaying=!1,this._canPlay=!1},AudioElement.prototype.resume=function(){this._canPlay=!0},AudioElement.prototype.setRate=function(L){this.audio.rate(L)},AudioElement.prototype.volume=function(L){this._volumeMultiplier=L,this._previousVolume=L*this._volume,this.audio.volume(this._previousVolume)},AudioElement.prototype.getBaseElement=function(){return null},AudioElement.prototype.destroy=function(){},AudioElement.prototype.sourceRectAtTime=function(){},AudioElement.prototype.initExpressions=function(){};function BaseRenderer(){}BaseRenderer.prototype.checkLayers=function(L){var V,G=this.layers.length,K;for(this.completeLayers=!0,V=G-1;V>=0;V-=1)this.elements[V]||(K=this.layers[V],K.ip-K.st<=L-this.layers[V].st&&K.op-K.st>L-this.layers[V].st&&this.buildItem(V)),this.completeLayers=this.elements[V]?this.completeLayers:!1;this.checkPendingElements()},BaseRenderer.prototype.createItem=function(L){switch(L.ty){case 2:return this.createImage(L);case 0:return this.createComp(L);case 1:return this.createSolid(L);case 3:return this.createNull(L);case 4:return this.createShape(L);case 5:return this.createText(L);case 6:return this.createAudio(L);case 13:return this.createCamera(L);case 15:return this.createFootage(L);default:return this.createNull(L)}},BaseRenderer.prototype.createCamera=function(){throw new Error("You're using a 3d camera. Try the html renderer.")},BaseRenderer.prototype.createAudio=function(L){return new AudioElement(L,this.globalData,this)},BaseRenderer.prototype.createFootage=function(L){return new FootageElement(L,this.globalData,this)},BaseRenderer.prototype.buildAllItems=function(){var L,V=this.layers.length;for(L=0;L<V;L+=1)this.buildItem(L);this.checkPendingElements()},BaseRenderer.prototype.includeLayers=function(L){this.completeLayers=!1;var V,G=L.length,K,ee=this.layers.length;for(V=0;V<G;V+=1)for(K=0;K<ee;){if(this.layers[K].id===L[V].id){this.layers[K]=L[V];break}K+=1}},BaseRenderer.prototype.setProjectInterface=function(L){this.globalData.projectInterface=L},BaseRenderer.prototype.initItems=function(){this.globalData.progressiveLoad||this.buildAllItems()},BaseRenderer.prototype.buildElementParenting=function(L,V,G){for(var K=this.elements,ee=this.layers,te=0,re=ee.length;te<re;)ee[te].ind==V&&(!K[te]||K[te]===!0?(this.buildItem(te),this.addPendingElement(L)):(G.push(K[te]),K[te].setAsParent(),ee[te].parent!==void 0?this.buildElementParenting(L,ee[te].parent,G):L.setHierarchy(G))),te+=1},BaseRenderer.prototype.addPendingElement=function(L){this.pendingElements.push(L)},BaseRenderer.prototype.searchExtraCompositions=function(L){var V,G=L.length;for(V=0;V<G;V+=1)if(L[V].xt){var K=this.createComp(L[V]);K.initExpressions(),this.globalData.projectInterface.registerComposition(K)}},BaseRenderer.prototype.getElementById=function(L){var V,G=this.elements.length;for(V=0;V<G;V+=1)if(this.elements[V].data.ind===L)return this.elements[V];return null},BaseRenderer.prototype.getElementByPath=function(L){var V=L.shift(),G;if(typeof V=="number")G=this.elements[V];else{var K,ee=this.elements.length;for(K=0;K<ee;K+=1)if(this.elements[K].data.nm===V){G=this.elements[K];break}}return L.length===0?G:G.getElementByPath(L)},BaseRenderer.prototype.setupGlobalData=function(L,V){this.globalData.fontManager=new FontManager,this.globalData.slotManager=slotFactory(L),this.globalData.fontManager.addChars(L.chars),this.globalData.fontManager.addFonts(L.fonts,V),this.globalData.getAssetData=this.animationItem.getAssetData.bind(this.animationItem),this.globalData.getAssetsPath=this.animationItem.getAssetsPath.bind(this.animationItem),this.globalData.imageLoader=this.animationItem.imagePreloader,this.globalData.audioController=this.animationItem.audioController,this.globalData.frameId=0,this.globalData.frameRate=L.fr,this.globalData.nm=L.nm,this.globalData.compSize={w:L.w,h:L.h}};var effectTypes={TRANSFORM_EFFECT:"transformEFfect"};function TransformElement(){}TransformElement.prototype={initTransform:function(){var V=new Matrix;this.finalTransform={mProp:this.data.ks?TransformPropertyFactory.getTransformProperty(this,this.data.ks,this):{o:0},_matMdf:!1,_localMatMdf:!1,_opMdf:!1,mat:V,localMat:V,localOpacity:1},this.data.ao&&(this.finalTransform.mProp.autoOriented=!0),this.data.ty},renderTransform:function(){if(this.finalTransform._opMdf=this.finalTransform.mProp.o._mdf||this._isFirstFrame,this.finalTransform._matMdf=this.finalTransform.mProp._mdf||this._isFirstFrame,this.hierarchy){var V,G=this.finalTransform.mat,K=0,ee=this.hierarchy.length;if(!this.finalTransform._matMdf)for(;K<ee;){if(this.hierarchy[K].finalTransform.mProp._mdf){this.finalTransform._matMdf=!0;break}K+=1}if(this.finalTransform._matMdf)for(V=this.finalTransform.mProp.v.props,G.cloneFromProps(V),K=0;K<ee;K+=1)G.multiply(this.hierarchy[K].finalTransform.mProp.v)}this.finalTransform._matMdf&&(this.finalTransform._localMatMdf=this.finalTransform._matMdf),this.finalTransform._opMdf&&(this.finalTransform.localOpacity=this.finalTransform.mProp.o.v)},renderLocalTransform:function(){if(this.localTransforms){var V=0,G=this.localTransforms.length;if(this.finalTransform._localMatMdf=this.finalTransform._matMdf,!this.finalTransform._localMatMdf||!this.finalTransform._opMdf)for(;V<G;)this.localTransforms[V]._mdf&&(this.finalTransform._localMatMdf=!0),this.localTransforms[V]._opMdf&&!this.finalTransform._opMdf&&(this.finalTransform.localOpacity=this.finalTransform.mProp.o.v,this.finalTransform._opMdf=!0),V+=1;if(this.finalTransform._localMatMdf){var K=this.finalTransform.localMat;for(this.localTransforms[0].matrix.clone(K),V=1;V<G;V+=1){var ee=this.localTransforms[V].matrix;K.multiply(ee)}K.multiply(this.finalTransform.mat)}if(this.finalTransform._opMdf){var te=this.finalTransform.localOpacity;for(V=0;V<G;V+=1)te*=this.localTransforms[V].opacity*.01;this.finalTransform.localOpacity=te}}},searchEffectTransforms:function(){if(this.renderableEffectsManager){var V=this.renderableEffectsManager.getEffects(effectTypes.TRANSFORM_EFFECT);if(V.length){this.localTransforms=[],this.finalTransform.localMat=new Matrix;var G=0,K=V.length;for(G=0;G<K;G+=1)this.localTransforms.push(V[G])}}},globalToLocal:function(V){var G=[];G.push(this.finalTransform);for(var K=!0,ee=this.comp;K;)ee.finalTransform?(ee.data.hasMask&&G.splice(0,0,ee.finalTransform),ee=ee.comp):K=!1;var te,re=G.length,ce;for(te=0;te<re;te+=1)ce=G[te].mat.applyToPointArray(0,0,0),V=[V[0]-ce[0],V[1]-ce[1],0];return V},mHelper:new Matrix};function MaskElement(L,V,G){this.data=L,this.element=V,this.globalData=G,this.storedData=[],this.masksProperties=this.data.masksProperties||[],this.maskElement=null;var K=this.globalData.defs,ee,te=this.masksProperties?this.masksProperties.length:0;this.viewData=createSizedArray(te),this.solidPath="";var re,ce=this.masksProperties,ue=0,de=[],ve,st,Ae=createElementID(),at,ot,rt,ft,Oe="clipPath",nt="clip-path";for(ee=0;ee<te;ee+=1)if((ce[ee].mode!=="a"&&ce[ee].mode!=="n"||ce[ee].inv||ce[ee].o.k!==100||ce[ee].o.x)&&(Oe="mask",nt="mask"),(ce[ee].mode==="s"||ce[ee].mode==="i")&&ue===0?(at=createNS("rect"),at.setAttribute("fill","#ffffff"),at.setAttribute("width",this.element.comp.data.w||0),at.setAttribute("height",this.element.comp.data.h||0),de.push(at)):at=null,re=createNS("path"),ce[ee].mode==="n")this.viewData[ee]={op:PropertyFactory.getProp(this.element,ce[ee].o,0,.01,this.element),prop:ShapePropertyFactory.getShapeProp(this.element,ce[ee],3),elem:re,lastPath:""},K.appendChild(re);else{ue+=1,re.setAttribute("fill",ce[ee].mode==="s"?"#000000":"#ffffff"),re.setAttribute("clip-rule","nonzero");var it;if(ce[ee].x.k!==0?(Oe="mask",nt="mask",ft=PropertyFactory.getProp(this.element,ce[ee].x,0,null,this.element),it=createElementID(),ot=createNS("filter"),ot.setAttribute("id",it),rt=createNS("feMorphology"),rt.setAttribute("operator","erode"),rt.setAttribute("in","SourceGraphic"),rt.setAttribute("radius","0"),ot.appendChild(rt),K.appendChild(ot),re.setAttribute("stroke",ce[ee].mode==="s"?"#000000":"#ffffff")):(rt=null,ft=null),this.storedData[ee]={elem:re,x:ft,expan:rt,lastPath:"",lastOperator:"",filterId:it,lastRadius:0},ce[ee].mode==="i"){st=de.length;var lt=createNS("g");for(ve=0;ve<st;ve+=1)lt.appendChild(de[ve]);var ct=createNS("mask");ct.setAttribute("mask-type","alpha"),ct.setAttribute("id",Ae+"_"+ue),ct.appendChild(re),K.appendChild(ct),lt.setAttribute("mask","url("+getLocationHref()+"#"+Ae+"_"+ue+")"),de.length=0,de.push(lt)}else de.push(re);ce[ee].inv&&!this.solidPath&&(this.solidPath=this.createLayerSolidPath()),this.viewData[ee]={elem:re,lastPath:"",op:PropertyFactory.getProp(this.element,ce[ee].o,0,.01,this.element),prop:ShapePropertyFactory.getShapeProp(this.element,ce[ee],3),invRect:at},this.viewData[ee].prop.k||this.drawPath(ce[ee],this.viewData[ee].prop.v,this.viewData[ee])}for(this.maskElement=createNS(Oe),te=de.length,ee=0;ee<te;ee+=1)this.maskElement.appendChild(de[ee]);ue>0&&(this.maskElement.setAttribute("id",Ae),this.element.maskedElement.setAttribute(nt,"url("+getLocationHref()+"#"+Ae+")"),K.appendChild(this.maskElement)),this.viewData.length&&this.element.addRenderableComponent(this)}MaskElement.prototype.getMaskProperty=function(L){return this.viewData[L].prop},MaskElement.prototype.renderFrame=function(L){var V=this.element.finalTransform.mat,G,K=this.masksProperties.length;for(G=0;G<K;G+=1)if((this.viewData[G].prop._mdf||L)&&this.drawPath(this.masksProperties[G],this.viewData[G].prop.v,this.viewData[G]),(this.viewData[G].op._mdf||L)&&this.viewData[G].elem.setAttribute("fill-opacity",this.viewData[G].op.v),this.masksProperties[G].mode!=="n"&&(this.viewData[G].invRect&&(this.element.finalTransform.mProp._mdf||L)&&this.viewData[G].invRect.setAttribute("transform",V.getInverseMatrix().to2dCSS()),this.storedData[G].x&&(this.storedData[G].x._mdf||L))){var ee=this.storedData[G].expan;this.storedData[G].x.v<0?(this.storedData[G].lastOperator!=="erode"&&(this.storedData[G].lastOperator="erode",this.storedData[G].elem.setAttribute("filter","url("+getLocationHref()+"#"+this.storedData[G].filterId+")")),ee.setAttribute("radius",-this.storedData[G].x.v)):(this.storedData[G].lastOperator!=="dilate"&&(this.storedData[G].lastOperator="dilate",this.storedData[G].elem.setAttribute("filter",null)),this.storedData[G].elem.setAttribute("stroke-width",this.storedData[G].x.v*2))}},MaskElement.prototype.getMaskelement=function(){return this.maskElement},MaskElement.prototype.createLayerSolidPath=function(){var L="M0,0 ";return L+=" h"+this.globalData.compSize.w,L+=" v"+this.globalData.compSize.h,L+=" h-"+this.globalData.compSize.w,L+=" v-"+this.globalData.compSize.h+" ",L},MaskElement.prototype.drawPath=function(L,V,G){var K=" M"+V.v[0][0]+","+V.v[0][1],ee,te;for(te=V._length,ee=1;ee<te;ee+=1)K+=" C"+V.o[ee-1][0]+","+V.o[ee-1][1]+" "+V.i[ee][0]+","+V.i[ee][1]+" "+V.v[ee][0]+","+V.v[ee][1];if(V.c&&te>1&&(K+=" C"+V.o[ee-1][0]+","+V.o[ee-1][1]+" "+V.i[0][0]+","+V.i[0][1]+" "+V.v[0][0]+","+V.v[0][1]),G.lastPath!==K){var re="";G.elem&&(V.c&&(re=L.inv?this.solidPath+K:K),G.elem.setAttribute("d",re)),G.lastPath=K}},MaskElement.prototype.destroy=function(){this.element=null,this.globalData=null,this.maskElement=null,this.data=null,this.masksProperties=null};var filtersFactory=function(){var L={};L.createFilter=V,L.createAlphaToLuminanceFilter=G;function V(K,ee){var te=createNS("filter");return te.setAttribute("id",K),ee!==!0&&(te.setAttribute("filterUnits","objectBoundingBox"),te.setAttribute("x","0%"),te.setAttribute("y","0%"),te.setAttribute("width","100%"),te.setAttribute("height","100%")),te}function G(){var K=createNS("feColorMatrix");return K.setAttribute("type","matrix"),K.setAttribute("color-interpolation-filters","sRGB"),K.setAttribute("values","0 0 0 1 0  0 0 0 1 0  0 0 0 1 0  0 0 0 1 1"),K}return L}(),featureSupport=function(){var L={maskType:!0,svgLumaHidden:!0,offscreenCanvas:typeof OffscreenCanvas!="undefined"};return(/MSIE 10/i.test(navigator.userAgent)||/MSIE 9/i.test(navigator.userAgent)||/rv:11.0/i.test(navigator.userAgent)||/Edge\/\d./i.test(navigator.userAgent))&&(L.maskType=!1),/firefox/i.test(navigator.userAgent)&&(L.svgLumaHidden=!1),L}(),registeredEffects$1={},idPrefix="filter_result_";function SVGEffects(L){var V,G="SourceGraphic",K=L.data.ef?L.data.ef.length:0,ee=createElementID(),te=filtersFactory.createFilter(ee,!0),re=0;this.filters=[];var ce;for(V=0;V<K;V+=1){ce=null;var ue=L.data.ef[V].ty;if(registeredEffects$1[ue]){var de=registeredEffects$1[ue].effect;ce=new de(te,L.effectsManager.effectElements[V],L,idPrefix+re,G),G=idPrefix+re,registeredEffects$1[ue].countsAsEffect&&(re+=1)}ce&&this.filters.push(ce)}re&&(L.globalData.defs.appendChild(te),L.layerElement.setAttribute("filter","url("+getLocationHref()+"#"+ee+")")),this.filters.length&&L.addRenderableComponent(this)}SVGEffects.prototype.renderFrame=function(L){var V,G=this.filters.length;for(V=0;V<G;V+=1)this.filters[V].renderFrame(L)},SVGEffects.prototype.getEffects=function(L){var V,G=this.filters.length,K=[];for(V=0;V<G;V+=1)this.filters[V].type===L&&K.push(this.filters[V]);return K};function registerEffect$1(L,V,G){registeredEffects$1[L]={effect:V,countsAsEffect:G}}function SVGBaseElement(){}SVGBaseElement.prototype={initRendererElement:function(){this.layerElement=createNS("g")},createContainerElements:function(){this.matteElement=createNS("g"),this.transformedElement=this.layerElement,this.maskedElement=this.layerElement,this._sizeChanged=!1;var V=null;if(this.data.td){this.matteMasks={};var G=createNS("g");G.setAttribute("id",this.layerId),G.appendChild(this.layerElement),V=G,this.globalData.defs.appendChild(G)}else this.data.tt?(this.matteElement.appendChild(this.layerElement),V=this.matteElement,this.baseElement=this.matteElement):this.baseElement=this.layerElement;if(this.data.ln&&this.layerElement.setAttribute("id",this.data.ln),this.data.cl&&this.layerElement.setAttribute("class",this.data.cl),this.data.ty===0&&!this.data.hd){var K=createNS("clipPath"),ee=createNS("path");ee.setAttribute("d","M0,0 L"+this.data.w+",0 L"+this.data.w+","+this.data.h+" L0,"+this.data.h+"z");var te=createElementID();if(K.setAttribute("id",te),K.appendChild(ee),this.globalData.defs.appendChild(K),this.checkMasks()){var re=createNS("g");re.setAttribute("clip-path","url("+getLocationHref()+"#"+te+")"),re.appendChild(this.layerElement),this.transformedElement=re,V?V.appendChild(this.transformedElement):this.baseElement=this.transformedElement}else this.layerElement.setAttribute("clip-path","url("+getLocationHref()+"#"+te+")")}this.data.bm!==0&&this.setBlendMode()},renderElement:function(){this.finalTransform._localMatMdf&&this.transformedElement.setAttribute("transform",this.finalTransform.localMat.to2dCSS()),this.finalTransform._opMdf&&this.transformedElement.setAttribute("opacity",this.finalTransform.localOpacity)},destroyBaseElement:function(){this.layerElement=null,this.matteElement=null,this.maskManager.destroy()},getBaseElement:function(){return this.data.hd?null:this.baseElement},createRenderableComponents:function(){this.maskManager=new MaskElement(this.data,this,this.globalData),this.renderableEffectsManager=new SVGEffects(this),this.searchEffectTransforms()},getMatte:function(V){if(this.matteMasks||(this.matteMasks={}),!this.matteMasks[V]){var G=this.layerId+"_"+V,K,ee,te,re;if(V===1||V===3){var ce=createNS("mask");ce.setAttribute("id",G),ce.setAttribute("mask-type",V===3?"luminance":"alpha"),te=createNS("use"),te.setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),ce.appendChild(te),this.globalData.defs.appendChild(ce),!featureSupport.maskType&&V===1&&(ce.setAttribute("mask-type","luminance"),K=createElementID(),ee=filtersFactory.createFilter(K),this.globalData.defs.appendChild(ee),ee.appendChild(filtersFactory.createAlphaToLuminanceFilter()),re=createNS("g"),re.appendChild(te),ce.appendChild(re),re.setAttribute("filter","url("+getLocationHref()+"#"+K+")"))}else if(V===2){var ue=createNS("mask");ue.setAttribute("id",G),ue.setAttribute("mask-type","alpha");var de=createNS("g");ue.appendChild(de),K=createElementID(),ee=filtersFactory.createFilter(K);var ve=createNS("feComponentTransfer");ve.setAttribute("in","SourceGraphic"),ee.appendChild(ve);var st=createNS("feFuncA");st.setAttribute("type","table"),st.setAttribute("tableValues","1.0 0.0"),ve.appendChild(st),this.globalData.defs.appendChild(ee);var Ae=createNS("rect");Ae.setAttribute("width",this.comp.data.w),Ae.setAttribute("height",this.comp.data.h),Ae.setAttribute("x","0"),Ae.setAttribute("y","0"),Ae.setAttribute("fill","#ffffff"),Ae.setAttribute("opacity","0"),de.setAttribute("filter","url("+getLocationHref()+"#"+K+")"),de.appendChild(Ae),te=createNS("use"),te.setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),de.appendChild(te),featureSupport.maskType||(ue.setAttribute("mask-type","luminance"),ee.appendChild(filtersFactory.createAlphaToLuminanceFilter()),re=createNS("g"),de.appendChild(Ae),re.appendChild(this.layerElement),de.appendChild(re)),this.globalData.defs.appendChild(ue)}this.matteMasks[V]=G}return this.matteMasks[V]},setMatte:function(V){!this.matteElement||this.matteElement.setAttribute("mask","url("+getLocationHref()+"#"+V+")")}};function HierarchyElement(){}HierarchyElement.prototype={initHierarchy:function(){this.hierarchy=[],this._isParent=!1,this.checkParenting()},setHierarchy:function(V){this.hierarchy=V},setAsParent:function(){this._isParent=!0},checkParenting:function(){this.data.parent!==void 0&&this.comp.buildElementParenting(this,this.data.parent,[])}};function RenderableDOMElement(){}(function(){var L={initElement:function(G,K,ee){this.initFrame(),this.initBaseData(G,K,ee),this.initTransform(G,K,ee),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.createContent(),this.hide()},hide:function(){if(!this.hidden&&(!this.isInRange||this.isTransparent)){var G=this.baseElement||this.layerElement;G.style.display="none",this.hidden=!0}},show:function(){if(this.isInRange&&!this.isTransparent){if(!this.data.hd){var G=this.baseElement||this.layerElement;G.style.display="block"}this.hidden=!1,this._isFirstFrame=!0}},renderFrame:function(){this.data.hd||this.hidden||(this.renderTransform(),this.renderRenderable(),this.renderLocalTransform(),this.renderElement(),this.renderInnerContent(),this._isFirstFrame&&(this._isFirstFrame=!1))},renderInnerContent:function(){},prepareFrame:function(G){this._mdf=!1,this.prepareRenderableFrame(G),this.prepareProperties(G,this.isInRange),this.checkTransparency()},destroy:function(){this.innerElem=null,this.destroyBaseElement()}};extendPrototype([RenderableElement,createProxyFunction(L)],RenderableDOMElement)})();function IImageElement(L,V,G){this.assetData=V.getAssetData(L.refId),this.assetData&&this.assetData.sid&&(this.assetData=V.slotManager.getProp(this.assetData)),this.initElement(L,V,G),this.sourceRect={top:0,left:0,width:this.assetData.w,height:this.assetData.h}}extendPrototype([BaseElement,TransformElement,SVGBaseElement,HierarchyElement,FrameElement,RenderableDOMElement],IImageElement),IImageElement.prototype.createContent=function(){var L=this.globalData.getAssetsPath(this.assetData);this.innerElem=createNS("image"),this.innerElem.setAttribute("width",this.assetData.w+"px"),this.innerElem.setAttribute("height",this.assetData.h+"px"),this.innerElem.setAttribute("preserveAspectRatio",this.assetData.pr||this.globalData.renderConfig.imagePreserveAspectRatio),this.innerElem.setAttributeNS("http://www.w3.org/1999/xlink","href",L),this.layerElement.appendChild(this.innerElem)},IImageElement.prototype.sourceRectAtTime=function(){return this.sourceRect};function ProcessedElement(L,V){this.elem=L,this.pos=V}function IShapeElement(){}IShapeElement.prototype={addShapeToModifiers:function(V){var G,K=this.shapeModifiers.length;for(G=0;G<K;G+=1)this.shapeModifiers[G].addShape(V)},isShapeInAnimatedModifiers:function(V){for(var G=0,K=this.shapeModifiers.length;G<K;)if(this.shapeModifiers[G].isAnimatedWithShape(V))return!0;return!1},renderModifiers:function(){if(!!this.shapeModifiers.length){var V,G=this.shapes.length;for(V=0;V<G;V+=1)this.shapes[V].sh.reset();G=this.shapeModifiers.length;var K;for(V=G-1;V>=0&&(K=this.shapeModifiers[V].processShapes(this._isFirstFrame),!K);V-=1);}},searchProcessedElement:function(V){for(var G=this.processedElements,K=0,ee=G.length;K<ee;){if(G[K].elem===V)return G[K].pos;K+=1}return 0},addProcessedElement:function(V,G){for(var K=this.processedElements,ee=K.length;ee;)if(ee-=1,K[ee].elem===V){K[ee].pos=G;return}K.push(new ProcessedElement(V,G))},prepareFrame:function(V){this.prepareRenderableFrame(V),this.prepareProperties(V,this.isInRange)}};var lineCapEnum={1:"butt",2:"round",3:"square"},lineJoinEnum={1:"miter",2:"round",3:"bevel"};function SVGShapeData(L,V,G){this.caches=[],this.styles=[],this.transformers=L,this.lStr="",this.sh=G,this.lvl=V,this._isAnimated=!!G.k;for(var K=0,ee=L.length;K<ee;){if(L[K].mProps.dynamicProperties.length){this._isAnimated=!0;break}K+=1}}SVGShapeData.prototype.setAsAnimated=function(){this._isAnimated=!0};function SVGStyleData(L,V){this.data=L,this.type=L.ty,this.d="",this.lvl=V,this._mdf=!1,this.closed=L.hd===!0,this.pElem=createNS("path"),this.msElem=null}SVGStyleData.prototype.reset=function(){this.d="",this._mdf=!1};function DashProperty(L,V,G,K){this.elem=L,this.frameId=-1,this.dataProps=createSizedArray(V.length),this.renderer=G,this.k=!1,this.dashStr="",this.dashArray=createTypedArray("float32",V.length?V.length-1:0),this.dashoffset=createTypedArray("float32",1),this.initDynamicPropertyContainer(K);var ee,te=V.length||0,re;for(ee=0;ee<te;ee+=1)re=PropertyFactory.getProp(L,V[ee].v,0,0,this),this.k=re.k||this.k,this.dataProps[ee]={n:V[ee].n,p:re};this.k||this.getValue(!0),this._isAnimated=this.k}DashProperty.prototype.getValue=function(L){if(!(this.elem.globalData.frameId===this.frameId&&!L)&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf=this._mdf||L,this._mdf)){var V=0,G=this.dataProps.length;for(this.renderer==="svg"&&(this.dashStr=""),V=0;V<G;V+=1)this.dataProps[V].n!=="o"?this.renderer==="svg"?this.dashStr+=" "+this.dataProps[V].p.v:this.dashArray[V]=this.dataProps[V].p.v:this.dashoffset[0]=this.dataProps[V].p.v}},extendPrototype([DynamicPropertyContainer],DashProperty);function SVGStrokeStyleData(L,V,G){this.initDynamicPropertyContainer(L),this.getValue=this.iterateDynamicProperties,this.o=PropertyFactory.getProp(L,V.o,0,.01,this),this.w=PropertyFactory.getProp(L,V.w,0,null,this),this.d=new DashProperty(L,V.d||{},"svg",this),this.c=PropertyFactory.getProp(L,V.c,1,255,this),this.style=G,this._isAnimated=!!this._isAnimated}extendPrototype([DynamicPropertyContainer],SVGStrokeStyleData);function SVGFillStyleData(L,V,G){this.initDynamicPropertyContainer(L),this.getValue=this.iterateDynamicProperties,this.o=PropertyFactory.getProp(L,V.o,0,.01,this),this.c=PropertyFactory.getProp(L,V.c,1,255,this),this.style=G}extendPrototype([DynamicPropertyContainer],SVGFillStyleData);function SVGNoStyleData(L,V,G){this.initDynamicPropertyContainer(L),this.getValue=this.iterateDynamicProperties,this.style=G}extendPrototype([DynamicPropertyContainer],SVGNoStyleData);function GradientProperty(L,V,G){this.data=V,this.c=createTypedArray("uint8c",V.p*4);var K=V.k.k[0].s?V.k.k[0].s.length-V.p*4:V.k.k.length-V.p*4;this.o=createTypedArray("float32",K),this._cmdf=!1,this._omdf=!1,this._collapsable=this.checkCollapsable(),this._hasOpacity=K,this.initDynamicPropertyContainer(G),this.prop=PropertyFactory.getProp(L,V.k,1,null,this),this.k=this.prop.k,this.getValue(!0)}GradientProperty.prototype.comparePoints=function(L,V){for(var G=0,K=this.o.length/2,ee;G<K;){if(ee=Math.abs(L[G*4]-L[V*4+G*2]),ee>.01)return!1;G+=1}return!0},GradientProperty.prototype.checkCollapsable=function(){if(this.o.length/2!==this.c.length/4)return!1;if(this.data.k.k[0].s)for(var L=0,V=this.data.k.k.length;L<V;){if(!this.comparePoints(this.data.k.k[L].s,this.data.p))return!1;L+=1}else if(!this.comparePoints(this.data.k.k,this.data.p))return!1;return!0},GradientProperty.prototype.getValue=function(L){if(this.prop.getValue(),this._mdf=!1,this._cmdf=!1,this._omdf=!1,this.prop._mdf||L){var V,G=this.data.p*4,K,ee;for(V=0;V<G;V+=1)K=V%4===0?100:255,ee=Math.round(this.prop.v[V]*K),this.c[V]!==ee&&(this.c[V]=ee,this._cmdf=!L);if(this.o.length)for(G=this.prop.v.length,V=this.data.p*4;V<G;V+=1)K=V%2===0?100:1,ee=V%2===0?Math.round(this.prop.v[V]*100):this.prop.v[V],this.o[V-this.data.p*4]!==ee&&(this.o[V-this.data.p*4]=ee,this._omdf=!L);this._mdf=!L}},extendPrototype([DynamicPropertyContainer],GradientProperty);function SVGGradientFillStyleData(L,V,G){this.initDynamicPropertyContainer(L),this.getValue=this.iterateDynamicProperties,this.initGradientData(L,V,G)}SVGGradientFillStyleData.prototype.initGradientData=function(L,V,G){this.o=PropertyFactory.getProp(L,V.o,0,.01,this),this.s=PropertyFactory.getProp(L,V.s,1,null,this),this.e=PropertyFactory.getProp(L,V.e,1,null,this),this.h=PropertyFactory.getProp(L,V.h||{k:0},0,.01,this),this.a=PropertyFactory.getProp(L,V.a||{k:0},0,degToRads,this),this.g=new GradientProperty(L,V.g,this),this.style=G,this.stops=[],this.setGradientData(G.pElem,V),this.setGradientOpacity(V,G),this._isAnimated=!!this._isAnimated},SVGGradientFillStyleData.prototype.setGradientData=function(L,V){var G=createElementID(),K=createNS(V.t===1?"linearGradient":"radialGradient");K.setAttribute("id",G),K.setAttribute("spreadMethod","pad"),K.setAttribute("gradientUnits","userSpaceOnUse");var ee=[],te,re,ce;for(ce=V.g.p*4,re=0;re<ce;re+=4)te=createNS("stop"),K.appendChild(te),ee.push(te);L.setAttribute(V.ty==="gf"?"fill":"stroke","url("+getLocationHref()+"#"+G+")"),this.gf=K,this.cst=ee},SVGGradientFillStyleData.prototype.setGradientOpacity=function(L,V){if(this.g._hasOpacity&&!this.g._collapsable){var G,K,ee,te=createNS("mask"),re=createNS("path");te.appendChild(re);var ce=createElementID(),ue=createElementID();te.setAttribute("id",ue);var de=createNS(L.t===1?"linearGradient":"radialGradient");de.setAttribute("id",ce),de.setAttribute("spreadMethod","pad"),de.setAttribute("gradientUnits","userSpaceOnUse"),ee=L.g.k.k[0].s?L.g.k.k[0].s.length:L.g.k.k.length;var ve=this.stops;for(K=L.g.p*4;K<ee;K+=2)G=createNS("stop"),G.setAttribute("stop-color","rgb(255,255,255)"),de.appendChild(G),ve.push(G);re.setAttribute(L.ty==="gf"?"fill":"stroke","url("+getLocationHref()+"#"+ce+")"),L.ty==="gs"&&(re.setAttribute("stroke-linecap",lineCapEnum[L.lc||2]),re.setAttribute("stroke-linejoin",lineJoinEnum[L.lj||2]),L.lj===1&&re.setAttribute("stroke-miterlimit",L.ml)),this.of=de,this.ms=te,this.ost=ve,this.maskId=ue,V.msElem=re}},extendPrototype([DynamicPropertyContainer],SVGGradientFillStyleData);function SVGGradientStrokeStyleData(L,V,G){this.initDynamicPropertyContainer(L),this.getValue=this.iterateDynamicProperties,this.w=PropertyFactory.getProp(L,V.w,0,null,this),this.d=new DashProperty(L,V.d||{},"svg",this),this.initGradientData(L,V,G),this._isAnimated=!!this._isAnimated}extendPrototype([SVGGradientFillStyleData,DynamicPropertyContainer],SVGGradientStrokeStyleData);function ShapeGroupData(){this.it=[],this.prevViewData=[],this.gr=createNS("g")}function SVGTransformData(L,V,G){this.transform={mProps:L,op:V,container:G},this.elements=[],this._isAnimated=this.transform.mProps.dynamicProperties.length||this.transform.op.effectsSequence.length}var buildShapeString=function(V,G,K,ee){if(G===0)return"";var te=V.o,re=V.i,ce=V.v,ue,de=" M"+ee.applyToPointStringified(ce[0][0],ce[0][1]);for(ue=1;ue<G;ue+=1)de+=" C"+ee.applyToPointStringified(te[ue-1][0],te[ue-1][1])+" "+ee.applyToPointStringified(re[ue][0],re[ue][1])+" "+ee.applyToPointStringified(ce[ue][0],ce[ue][1]);return K&&G&&(de+=" C"+ee.applyToPointStringified(te[ue-1][0],te[ue-1][1])+" "+ee.applyToPointStringified(re[0][0],re[0][1])+" "+ee.applyToPointStringified(ce[0][0],ce[0][1]),de+="z"),de},SVGElementsRenderer=function(){var L=new Matrix,V=new Matrix,G={createRenderFunction:K};function K(st){switch(st.ty){case"fl":return ce;case"gf":return de;case"gs":return ue;case"st":return ve;case"sh":case"el":case"rc":case"sr":return re;case"tr":return ee;case"no":return te;default:return null}}function ee(st,Ae,at){(at||Ae.transform.op._mdf)&&Ae.transform.container.setAttribute("opacity",Ae.transform.op.v),(at||Ae.transform.mProps._mdf)&&Ae.transform.container.setAttribute("transform",Ae.transform.mProps.v.to2dCSS())}function te(){}function re(st,Ae,at){var ot,rt,ft,Oe,nt,it,lt=Ae.styles.length,ct=Ae.lvl,ut,bt,gt,Pt;for(it=0;it<lt;it+=1){if(Oe=Ae.sh._mdf||at,Ae.styles[it].lvl<ct){for(bt=V.reset(),gt=ct-Ae.styles[it].lvl,Pt=Ae.transformers.length-1;!Oe&&gt>0;)Oe=Ae.transformers[Pt].mProps._mdf||Oe,gt-=1,Pt-=1;if(Oe)for(gt=ct-Ae.styles[it].lvl,Pt=Ae.transformers.length-1;gt>0;)bt.multiply(Ae.transformers[Pt].mProps.v),gt-=1,Pt-=1}else bt=L;if(ut=Ae.sh.paths,rt=ut._length,Oe){for(ft="",ot=0;ot<rt;ot+=1)nt=ut.shapes[ot],nt&&nt._length&&(ft+=buildShapeString(nt,nt._length,nt.c,bt));Ae.caches[it]=ft}else ft=Ae.caches[it];Ae.styles[it].d+=st.hd===!0?"":ft,Ae.styles[it]._mdf=Oe||Ae.styles[it]._mdf}}function ce(st,Ae,at){var ot=Ae.style;(Ae.c._mdf||at)&&ot.pElem.setAttribute("fill","rgb("+bmFloor(Ae.c.v[0])+","+bmFloor(Ae.c.v[1])+","+bmFloor(Ae.c.v[2])+")"),(Ae.o._mdf||at)&&ot.pElem.setAttribute("fill-opacity",Ae.o.v)}function ue(st,Ae,at){de(st,Ae,at),ve(st,Ae,at)}function de(st,Ae,at){var ot=Ae.gf,rt=Ae.g._hasOpacity,ft=Ae.s.v,Oe=Ae.e.v;if(Ae.o._mdf||at){var nt=st.ty==="gf"?"fill-opacity":"stroke-opacity";Ae.style.pElem.setAttribute(nt,Ae.o.v)}if(Ae.s._mdf||at){var it=st.t===1?"x1":"cx",lt=it==="x1"?"y1":"cy";ot.setAttribute(it,ft[0]),ot.setAttribute(lt,ft[1]),rt&&!Ae.g._collapsable&&(Ae.of.setAttribute(it,ft[0]),Ae.of.setAttribute(lt,ft[1]))}var ct,ut,bt,gt;if(Ae.g._cmdf||at){ct=Ae.cst;var Pt=Ae.g.c;for(bt=ct.length,ut=0;ut<bt;ut+=1)gt=ct[ut],gt.setAttribute("offset",Pt[ut*4]+"%"),gt.setAttribute("stop-color","rgb("+Pt[ut*4+1]+","+Pt[ut*4+2]+","+Pt[ut*4+3]+")")}if(rt&&(Ae.g._omdf||at)){var Nt=Ae.g.o;for(Ae.g._collapsable?ct=Ae.cst:ct=Ae.ost,bt=ct.length,ut=0;ut<bt;ut+=1)gt=ct[ut],Ae.g._collapsable||gt.setAttribute("offset",Nt[ut*2]+"%"),gt.setAttribute("stop-opacity",Nt[ut*2+1])}if(st.t===1)(Ae.e._mdf||at)&&(ot.setAttribute("x2",Oe[0]),ot.setAttribute("y2",Oe[1]),rt&&!Ae.g._collapsable&&(Ae.of.setAttribute("x2",Oe[0]),Ae.of.setAttribute("y2",Oe[1])));else{var Ot;if((Ae.s._mdf||Ae.e._mdf||at)&&(Ot=Math.sqrt(Math.pow(ft[0]-Oe[0],2)+Math.pow(ft[1]-Oe[1],2)),ot.setAttribute("r",Ot),rt&&!Ae.g._collapsable&&Ae.of.setAttribute("r",Ot)),Ae.e._mdf||Ae.h._mdf||Ae.a._mdf||at){Ot||(Ot=Math.sqrt(Math.pow(ft[0]-Oe[0],2)+Math.pow(ft[1]-Oe[1],2)));var Ft=Math.atan2(Oe[1]-ft[1],Oe[0]-ft[0]),jt=Ae.h.v;jt>=1?jt=.99:jt<=-1&&(jt=-.99);var Bt=Ot*jt,At=Math.cos(Ft+Ae.a.v)*Bt+ft[0],$t=Math.sin(Ft+Ae.a.v)*Bt+ft[1];ot.setAttribute("fx",At),ot.setAttribute("fy",$t),rt&&!Ae.g._collapsable&&(Ae.of.setAttribute("fx",At),Ae.of.setAttribute("fy",$t))}}}function ve(st,Ae,at){var ot=Ae.style,rt=Ae.d;rt&&(rt._mdf||at)&&rt.dashStr&&(ot.pElem.setAttribute("stroke-dasharray",rt.dashStr),ot.pElem.setAttribute("stroke-dashoffset",rt.dashoffset[0])),Ae.c&&(Ae.c._mdf||at)&&ot.pElem.setAttribute("stroke","rgb("+bmFloor(Ae.c.v[0])+","+bmFloor(Ae.c.v[1])+","+bmFloor(Ae.c.v[2])+")"),(Ae.o._mdf||at)&&ot.pElem.setAttribute("stroke-opacity",Ae.o.v),(Ae.w._mdf||at)&&(ot.pElem.setAttribute("stroke-width",Ae.w.v),ot.msElem&&ot.msElem.setAttribute("stroke-width",Ae.w.v))}return G}();function SVGShapeElement(L,V,G){this.shapes=[],this.shapesData=L.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.animatedContents=[],this.initElement(L,V,G),this.prevViewData=[]}extendPrototype([BaseElement,TransformElement,SVGBaseElement,IShapeElement,HierarchyElement,FrameElement,RenderableDOMElement],SVGShapeElement),SVGShapeElement.prototype.initSecondaryElement=function(){},SVGShapeElement.prototype.identityMatrix=new Matrix,SVGShapeElement.prototype.buildExpressionInterface=function(){},SVGShapeElement.prototype.createContent=function(){this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes()},SVGShapeElement.prototype.filterUniqueShapes=function(){var L,V=this.shapes.length,G,K,ee=this.stylesList.length,te,re=[],ce=!1;for(K=0;K<ee;K+=1){for(te=this.stylesList[K],ce=!1,re.length=0,L=0;L<V;L+=1)G=this.shapes[L],G.styles.indexOf(te)!==-1&&(re.push(G),ce=G._isAnimated||ce);re.length>1&&ce&&this.setShapesAsAnimated(re)}},SVGShapeElement.prototype.setShapesAsAnimated=function(L){var V,G=L.length;for(V=0;V<G;V+=1)L[V].setAsAnimated()},SVGShapeElement.prototype.createStyleElement=function(L,V){var G,K=new SVGStyleData(L,V),ee=K.pElem;if(L.ty==="st")G=new SVGStrokeStyleData(this,L,K);else if(L.ty==="fl")G=new SVGFillStyleData(this,L,K);else if(L.ty==="gf"||L.ty==="gs"){var te=L.ty==="gf"?SVGGradientFillStyleData:SVGGradientStrokeStyleData;G=new te(this,L,K),this.globalData.defs.appendChild(G.gf),G.maskId&&(this.globalData.defs.appendChild(G.ms),this.globalData.defs.appendChild(G.of),ee.setAttribute("mask","url("+getLocationHref()+"#"+G.maskId+")"))}else L.ty==="no"&&(G=new SVGNoStyleData(this,L,K));return(L.ty==="st"||L.ty==="gs")&&(ee.setAttribute("stroke-linecap",lineCapEnum[L.lc||2]),ee.setAttribute("stroke-linejoin",lineJoinEnum[L.lj||2]),ee.setAttribute("fill-opacity","0"),L.lj===1&&ee.setAttribute("stroke-miterlimit",L.ml)),L.r===2&&ee.setAttribute("fill-rule","evenodd"),L.ln&&ee.setAttribute("id",L.ln),L.cl&&ee.setAttribute("class",L.cl),L.bm&&(ee.style["mix-blend-mode"]=getBlendMode(L.bm)),this.stylesList.push(K),this.addToAnimatedContents(L,G),G},SVGShapeElement.prototype.createGroupElement=function(L){var V=new ShapeGroupData;return L.ln&&V.gr.setAttribute("id",L.ln),L.cl&&V.gr.setAttribute("class",L.cl),L.bm&&(V.gr.style["mix-blend-mode"]=getBlendMode(L.bm)),V},SVGShapeElement.prototype.createTransformElement=function(L,V){var G=TransformPropertyFactory.getTransformProperty(this,L,this),K=new SVGTransformData(G,G.o,V);return this.addToAnimatedContents(L,K),K},SVGShapeElement.prototype.createShapeElement=function(L,V,G){var K=4;L.ty==="rc"?K=5:L.ty==="el"?K=6:L.ty==="sr"&&(K=7);var ee=ShapePropertyFactory.getShapeProp(this,L,K,this),te=new SVGShapeData(V,G,ee);return this.shapes.push(te),this.addShapeToModifiers(te),this.addToAnimatedContents(L,te),te},SVGShapeElement.prototype.addToAnimatedContents=function(L,V){for(var G=0,K=this.animatedContents.length;G<K;){if(this.animatedContents[G].element===V)return;G+=1}this.animatedContents.push({fn:SVGElementsRenderer.createRenderFunction(L),element:V,data:L})},SVGShapeElement.prototype.setElementStyles=function(L){var V=L.styles,G,K=this.stylesList.length;for(G=0;G<K;G+=1)this.stylesList[G].closed||V.push(this.stylesList[G])},SVGShapeElement.prototype.reloadShapes=function(){this._isFirstFrame=!0;var L,V=this.itemsData.length;for(L=0;L<V;L+=1)this.prevViewData[L]=this.itemsData[L];for(this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes(),V=this.dynamicProperties.length,L=0;L<V;L+=1)this.dynamicProperties[L].getValue();this.renderModifiers()},SVGShapeElement.prototype.searchShapes=function(L,V,G,K,ee,te,re){var ce=[].concat(te),ue,de=L.length-1,ve,st,Ae=[],at=[],ot,rt,ft;for(ue=de;ue>=0;ue-=1){if(ft=this.searchProcessedElement(L[ue]),ft?V[ue]=G[ft-1]:L[ue]._render=re,L[ue].ty==="fl"||L[ue].ty==="st"||L[ue].ty==="gf"||L[ue].ty==="gs"||L[ue].ty==="no")ft?V[ue].style.closed=!1:V[ue]=this.createStyleElement(L[ue],ee),L[ue]._render&&V[ue].style.pElem.parentNode!==K&&K.appendChild(V[ue].style.pElem),Ae.push(V[ue].style);else if(L[ue].ty==="gr"){if(!ft)V[ue]=this.createGroupElement(L[ue]);else for(st=V[ue].it.length,ve=0;ve<st;ve+=1)V[ue].prevViewData[ve]=V[ue].it[ve];this.searchShapes(L[ue].it,V[ue].it,V[ue].prevViewData,V[ue].gr,ee+1,ce,re),L[ue]._render&&V[ue].gr.parentNode!==K&&K.appendChild(V[ue].gr)}else L[ue].ty==="tr"?(ft||(V[ue]=this.createTransformElement(L[ue],K)),ot=V[ue].transform,ce.push(ot)):L[ue].ty==="sh"||L[ue].ty==="rc"||L[ue].ty==="el"||L[ue].ty==="sr"?(ft||(V[ue]=this.createShapeElement(L[ue],ce,ee)),this.setElementStyles(V[ue])):L[ue].ty==="tm"||L[ue].ty==="rd"||L[ue].ty==="ms"||L[ue].ty==="pb"||L[ue].ty==="zz"||L[ue].ty==="op"?(ft?(rt=V[ue],rt.closed=!1):(rt=ShapeModifiers.getModifier(L[ue].ty),rt.init(this,L[ue]),V[ue]=rt,this.shapeModifiers.push(rt)),at.push(rt)):L[ue].ty==="rp"&&(ft?(rt=V[ue],rt.closed=!0):(rt=ShapeModifiers.getModifier(L[ue].ty),V[ue]=rt,rt.init(this,L,ue,V),this.shapeModifiers.push(rt),re=!1),at.push(rt));this.addProcessedElement(L[ue],ue+1)}for(de=Ae.length,ue=0;ue<de;ue+=1)Ae[ue].closed=!0;for(de=at.length,ue=0;ue<de;ue+=1)at[ue].closed=!0},SVGShapeElement.prototype.renderInnerContent=function(){this.renderModifiers();var L,V=this.stylesList.length;for(L=0;L<V;L+=1)this.stylesList[L].reset();for(this.renderShape(),L=0;L<V;L+=1)(this.stylesList[L]._mdf||this._isFirstFrame)&&(this.stylesList[L].msElem&&(this.stylesList[L].msElem.setAttribute("d",this.stylesList[L].d),this.stylesList[L].d="M0 0"+this.stylesList[L].d),this.stylesList[L].pElem.setAttribute("d",this.stylesList[L].d||"M0 0"))},SVGShapeElement.prototype.renderShape=function(){var L,V=this.animatedContents.length,G;for(L=0;L<V;L+=1)G=this.animatedContents[L],(this._isFirstFrame||G.element._isAnimated)&&G.data!==!0&&G.fn(G.data,G.element,this._isFirstFrame)},SVGShapeElement.prototype.destroy=function(){this.destroyBaseElement(),this.shapesData=null,this.itemsData=null};function LetterProps(L,V,G,K,ee,te){this.o=L,this.sw=V,this.sc=G,this.fc=K,this.m=ee,this.p=te,this._mdf={o:!0,sw:!!V,sc:!!G,fc:!!K,m:!0,p:!0}}LetterProps.prototype.update=function(L,V,G,K,ee,te){this._mdf.o=!1,this._mdf.sw=!1,this._mdf.sc=!1,this._mdf.fc=!1,this._mdf.m=!1,this._mdf.p=!1;var re=!1;return this.o!==L&&(this.o=L,this._mdf.o=!0,re=!0),this.sw!==V&&(this.sw=V,this._mdf.sw=!0,re=!0),this.sc!==G&&(this.sc=G,this._mdf.sc=!0,re=!0),this.fc!==K&&(this.fc=K,this._mdf.fc=!0,re=!0),this.m!==ee&&(this.m=ee,this._mdf.m=!0,re=!0),te.length&&(this.p[0]!==te[0]||this.p[1]!==te[1]||this.p[4]!==te[4]||this.p[5]!==te[5]||this.p[12]!==te[12]||this.p[13]!==te[13])&&(this.p=te,this._mdf.p=!0,re=!0),re};function TextProperty(L,V){this._frameId=initialDefaultFrame,this.pv="",this.v="",this.kf=!1,this._isFirstFrame=!0,this._mdf=!1,V.d&&V.d.sid&&(V.d=L.globalData.slotManager.getProp(V.d)),this.data=V,this.elem=L,this.comp=this.elem.comp,this.keysIndex=0,this.canResize=!1,this.minimumFontSize=1,this.effectsSequence=[],this.currentData={ascent:0,boxWidth:this.defaultBoxWidth,f:"",fStyle:"",fWeight:"",fc:"",j:"",justifyOffset:"",l:[],lh:0,lineWidths:[],ls:"",of:"",s:"",sc:"",sw:0,t:0,tr:0,sz:0,ps:null,fillColorAnim:!1,strokeColorAnim:!1,strokeWidthAnim:!1,yOffset:0,finalSize:0,finalText:[],finalLineHeight:0,__complete:!1},this.copyData(this.currentData,this.data.d.k[0].s),this.searchProperty()||this.completeTextData(this.currentData)}TextProperty.prototype.defaultBoxWidth=[0,0],TextProperty.prototype.copyData=function(L,V){for(var G in V)Object.prototype.hasOwnProperty.call(V,G)&&(L[G]=V[G]);return L},TextProperty.prototype.setCurrentData=function(L){L.__complete||this.completeTextData(L),this.currentData=L,this.currentData.boxWidth=this.currentData.boxWidth||this.defaultBoxWidth,this._mdf=!0},TextProperty.prototype.searchProperty=function(){return this.searchKeyframes()},TextProperty.prototype.searchKeyframes=function(){return this.kf=this.data.d.k.length>1,this.kf&&this.addEffect(this.getKeyframeValue.bind(this)),this.kf},TextProperty.prototype.addEffect=function(L){this.effectsSequence.push(L),this.elem.addDynamicProperty(this)},TextProperty.prototype.getValue=function(L){if(!((this.elem.globalData.frameId===this.frameId||!this.effectsSequence.length)&&!L)){this.currentData.t=this.data.d.k[this.keysIndex].s.t;var V=this.currentData,G=this.keysIndex;if(this.lock){this.setCurrentData(this.currentData);return}this.lock=!0,this._mdf=!1;var K,ee=this.effectsSequence.length,te=L||this.data.d.k[this.keysIndex].s;for(K=0;K<ee;K+=1)G!==this.keysIndex?te=this.effectsSequence[K](te,te.t):te=this.effectsSequence[K](this.currentData,te.t);V!==te&&this.setCurrentData(te),this.v=this.currentData,this.pv=this.v,this.lock=!1,this.frameId=this.elem.globalData.frameId}},TextProperty.prototype.getKeyframeValue=function(){for(var L=this.data.d.k,V=this.elem.comp.renderedFrame,G=0,K=L.length;G<=K-1&&!(G===K-1||L[G+1].t>V);)G+=1;return this.keysIndex!==G&&(this.keysIndex=G),this.data.d.k[this.keysIndex].s},TextProperty.prototype.buildFinalText=function(L){for(var V=[],G=0,K=L.length,ee,te,re=!1,ce=!1,ue="";G<K;)re=ce,ce=!1,ee=L.charCodeAt(G),ue=L.charAt(G),FontManager.isCombinedCharacter(ee)?re=!0:ee>=55296&&ee<=56319?FontManager.isRegionalFlag(L,G)?ue=L.substr(G,14):(te=L.charCodeAt(G+1),te>=56320&&te<=57343&&(FontManager.isModifier(ee,te)?(ue=L.substr(G,2),re=!0):FontManager.isFlagEmoji(L.substr(G,4))?ue=L.substr(G,4):ue=L.substr(G,2))):ee>56319?(te=L.charCodeAt(G+1),FontManager.isVariationSelector(ee)&&(re=!0)):FontManager.isZeroWidthJoiner(ee)&&(re=!0,ce=!0),re?(V[V.length-1]+=ue,re=!1):V.push(ue),G+=ue.length;return V},TextProperty.prototype.completeTextData=function(L){L.__complete=!0;var V=this.elem.globalData.fontManager,G=this.data,K=[],ee,te,re,ce=0,ue,de=G.m.g,ve=0,st=0,Ae=0,at=[],ot=0,rt=0,ft,Oe,nt=V.getFontByName(L.f),it,lt=0,ct=getFontProperties(nt);L.fWeight=ct.weight,L.fStyle=ct.style,L.finalSize=L.s,L.finalText=this.buildFinalText(L.t),te=L.finalText.length,L.finalLineHeight=L.lh;var ut=L.tr/1e3*L.finalSize,bt;if(L.sz)for(var gt=!0,Pt=L.sz[0],Nt=L.sz[1],Ot,Ft;gt;){Ft=this.buildFinalText(L.t),Ot=0,ot=0,te=Ft.length,ut=L.tr/1e3*L.finalSize;var jt=-1;for(ee=0;ee<te;ee+=1)bt=Ft[ee].charCodeAt(0),re=!1,Ft[ee]===" "?jt=ee:(bt===13||bt===3)&&(ot=0,re=!0,Ot+=L.finalLineHeight||L.finalSize*1.2),V.chars?(it=V.getCharData(Ft[ee],nt.fStyle,nt.fFamily),lt=re?0:it.w*L.finalSize/100):lt=V.measureText(Ft[ee],L.f,L.finalSize),ot+lt>Pt&&Ft[ee]!==" "?(jt===-1?te+=1:ee=jt,Ot+=L.finalLineHeight||L.finalSize*1.2,Ft.splice(ee,jt===ee?1:0,"\r"),jt=-1,ot=0):(ot+=lt,ot+=ut);Ot+=nt.ascent*L.finalSize/100,this.canResize&&L.finalSize>this.minimumFontSize&&Nt<Ot?(L.finalSize-=1,L.finalLineHeight=L.finalSize*L.lh/L.s):(L.finalText=Ft,te=L.finalText.length,gt=!1)}ot=-ut,lt=0;var Bt=0,At;for(ee=0;ee<te;ee+=1)if(re=!1,At=L.finalText[ee],bt=At.charCodeAt(0),bt===13||bt===3?(Bt=0,at.push(ot),rt=ot>rt?ot:rt,ot=-2*ut,ue="",re=!0,Ae+=1):ue=At,V.chars?(it=V.getCharData(At,nt.fStyle,V.getFontByName(L.f).fFamily),lt=re?0:it.w*L.finalSize/100):lt=V.measureText(ue,L.f,L.finalSize),At===" "?Bt+=lt+ut:(ot+=lt+ut+Bt,Bt=0),K.push({l:lt,an:lt,add:ve,n:re,anIndexes:[],val:ue,line:Ae,animatorJustifyOffset:0}),de==2){if(ve+=lt,ue===""||ue===" "||ee===te-1){for((ue===""||ue===" ")&&(ve-=lt);st<=ee;)K[st].an=ve,K[st].ind=ce,K[st].extra=lt,st+=1;ce+=1,ve=0}}else if(de==3){if(ve+=lt,ue===""||ee===te-1){for(ue===""&&(ve-=lt);st<=ee;)K[st].an=ve,K[st].ind=ce,K[st].extra=lt,st+=1;ve=0,ce+=1}}else K[ce].ind=ce,K[ce].extra=0,ce+=1;if(L.l=K,rt=ot>rt?ot:rt,at.push(ot),L.sz)L.boxWidth=L.sz[0],L.justifyOffset=0;else switch(L.boxWidth=rt,L.j){case 1:L.justifyOffset=-L.boxWidth;break;case 2:L.justifyOffset=-L.boxWidth/2;break;default:L.justifyOffset=0}L.lineWidths=at;var $t=G.a,Ct,dt;Oe=$t.length;var mt,kt,It=[];for(ft=0;ft<Oe;ft+=1){for(Ct=$t[ft],Ct.a.sc&&(L.strokeColorAnim=!0),Ct.a.sw&&(L.strokeWidthAnim=!0),(Ct.a.fc||Ct.a.fh||Ct.a.fs||Ct.a.fb)&&(L.fillColorAnim=!0),kt=0,mt=Ct.s.b,ee=0;ee<te;ee+=1)dt=K[ee],dt.anIndexes[ft]=kt,(mt==1&&dt.val!==""||mt==2&&dt.val!==""&&dt.val!==" "||mt==3&&(dt.n||dt.val==" "||ee==te-1)||mt==4&&(dt.n||ee==te-1))&&(Ct.s.rn===1&&It.push(kt),kt+=1);G.a[ft].s.totalChars=kt;var Kt=-1,Yt;if(Ct.s.rn===1)for(ee=0;ee<te;ee+=1)dt=K[ee],Kt!=dt.anIndexes[ft]&&(Kt=dt.anIndexes[ft],Yt=It.splice(Math.floor(Math.random()*It.length),1)[0]),dt.anIndexes[ft]=Yt}L.yOffset=L.finalLineHeight||L.finalSize*1.2,L.ls=L.ls||0,L.ascent=nt.ascent*L.finalSize/100},TextProperty.prototype.updateDocumentData=function(L,V){V=V===void 0?this.keysIndex:V;var G=this.copyData({},this.data.d.k[V].s);G=this.copyData(G,L),this.data.d.k[V].s=G,this.recalculate(V),this.setCurrentData(G),this.elem.addDynamicProperty(this)},TextProperty.prototype.recalculate=function(L){var V=this.data.d.k[L].s;V.__complete=!1,this.keysIndex=0,this._isFirstFrame=!0,this.getValue(V)},TextProperty.prototype.canResizeFont=function(L){this.canResize=L,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)},TextProperty.prototype.setMinimumFontSize=function(L){this.minimumFontSize=Math.floor(L)||1,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)};var TextSelectorProp=function(){var L=Math.max,V=Math.min,G=Math.floor;function K(te,re){this._currentTextLength=-1,this.k=!1,this.data=re,this.elem=te,this.comp=te.comp,this.finalS=0,this.finalE=0,this.initDynamicPropertyContainer(te),this.s=PropertyFactory.getProp(te,re.s||{k:0},0,0,this),"e"in re?this.e=PropertyFactory.getProp(te,re.e,0,0,this):this.e={v:100},this.o=PropertyFactory.getProp(te,re.o||{k:0},0,0,this),this.xe=PropertyFactory.getProp(te,re.xe||{k:0},0,0,this),this.ne=PropertyFactory.getProp(te,re.ne||{k:0},0,0,this),this.sm=PropertyFactory.getProp(te,re.sm||{k:100},0,0,this),this.a=PropertyFactory.getProp(te,re.a,0,.01,this),this.dynamicProperties.length||this.getValue()}K.prototype={getMult:function(re){this._currentTextLength!==this.elem.textProperty.currentData.l.length&&this.getValue();var ce=0,ue=0,de=1,ve=1;this.ne.v>0?ce=this.ne.v/100:ue=-this.ne.v/100,this.xe.v>0?de=1-this.xe.v/100:ve=1+this.xe.v/100;var st=BezierFactory.getBezierEasing(ce,ue,de,ve).get,Ae=0,at=this.finalS,ot=this.finalE,rt=this.data.sh;if(rt===2)ot===at?Ae=re>=ot?1:0:Ae=L(0,V(.5/(ot-at)+(re-at)/(ot-at),1)),Ae=st(Ae);else if(rt===3)ot===at?Ae=re>=ot?0:1:Ae=1-L(0,V(.5/(ot-at)+(re-at)/(ot-at),1)),Ae=st(Ae);else if(rt===4)ot===at?Ae=0:(Ae=L(0,V(.5/(ot-at)+(re-at)/(ot-at),1)),Ae<.5?Ae*=2:Ae=1-2*(Ae-.5)),Ae=st(Ae);else if(rt===5){if(ot===at)Ae=0;else{var ft=ot-at;re=V(L(0,re+.5-at),ot-at);var Oe=-ft/2+re,nt=ft/2;Ae=Math.sqrt(1-Oe*Oe/(nt*nt))}Ae=st(Ae)}else rt===6?(ot===at?Ae=0:(re=V(L(0,re+.5-at),ot-at),Ae=(1+Math.cos(Math.PI+Math.PI*2*re/(ot-at)))/2),Ae=st(Ae)):(re>=G(at)&&(re-at<0?Ae=L(0,V(V(ot,1)-(at-re),1)):Ae=L(0,V(ot-re,1))),Ae=st(Ae));if(this.sm.v!==100){var it=this.sm.v*.01;it===0&&(it=1e-8);var lt=.5-it*.5;Ae<lt?Ae=0:(Ae=(Ae-lt)/it,Ae>1&&(Ae=1))}return Ae*this.a.v},getValue:function(re){this.iterateDynamicProperties(),this._mdf=re||this._mdf,this._currentTextLength=this.elem.textProperty.currentData.l.length||0,re&&this.data.r===2&&(this.e.v=this._currentTextLength);var ce=this.data.r===2?1:100/this.data.totalChars,ue=this.o.v/ce,de=this.s.v/ce+ue,ve=this.e.v/ce+ue;if(de>ve){var st=de;de=ve,ve=st}this.finalS=de,this.finalE=ve}},extendPrototype([DynamicPropertyContainer],K);function ee(te,re,ce){return new K(te,re)}return{getTextSelectorProp:ee}}();function TextAnimatorDataProperty(L,V,G){var K={propType:!1},ee=PropertyFactory.getProp,te=V.a;this.a={r:te.r?ee(L,te.r,0,degToRads,G):K,rx:te.rx?ee(L,te.rx,0,degToRads,G):K,ry:te.ry?ee(L,te.ry,0,degToRads,G):K,sk:te.sk?ee(L,te.sk,0,degToRads,G):K,sa:te.sa?ee(L,te.sa,0,degToRads,G):K,s:te.s?ee(L,te.s,1,.01,G):K,a:te.a?ee(L,te.a,1,0,G):K,o:te.o?ee(L,te.o,0,.01,G):K,p:te.p?ee(L,te.p,1,0,G):K,sw:te.sw?ee(L,te.sw,0,0,G):K,sc:te.sc?ee(L,te.sc,1,0,G):K,fc:te.fc?ee(L,te.fc,1,0,G):K,fh:te.fh?ee(L,te.fh,0,0,G):K,fs:te.fs?ee(L,te.fs,0,.01,G):K,fb:te.fb?ee(L,te.fb,0,.01,G):K,t:te.t?ee(L,te.t,0,0,G):K},this.s=TextSelectorProp.getTextSelectorProp(L,V.s,G),this.s.t=V.s.t}function TextAnimatorProperty(L,V,G){this._isFirstFrame=!0,this._hasMaskedPath=!1,this._frameId=-1,this._textData=L,this._renderType=V,this._elem=G,this._animatorsData=createSizedArray(this._textData.a.length),this._pathData={},this._moreOptions={alignment:{}},this.renderedLetters=[],this.lettersChangedFlag=!1,this.initDynamicPropertyContainer(G)}TextAnimatorProperty.prototype.searchProperties=function(){var L,V=this._textData.a.length,G,K=PropertyFactory.getProp;for(L=0;L<V;L+=1)G=this._textData.a[L],this._animatorsData[L]=new TextAnimatorDataProperty(this._elem,G,this);this._textData.p&&"m"in this._textData.p?(this._pathData={a:K(this._elem,this._textData.p.a,0,0,this),f:K(this._elem,this._textData.p.f,0,0,this),l:K(this._elem,this._textData.p.l,0,0,this),r:K(this._elem,this._textData.p.r,0,0,this),p:K(this._elem,this._textData.p.p,0,0,this),m:this._elem.maskManager.getMaskProperty(this._textData.p.m)},this._hasMaskedPath=!0):this._hasMaskedPath=!1,this._moreOptions.alignment=K(this._elem,this._textData.m.a,1,0,this)},TextAnimatorProperty.prototype.getMeasures=function(L,V){if(this.lettersChangedFlag=V,!(!this._mdf&&!this._isFirstFrame&&!V&&(!this._hasMaskedPath||!this._pathData.m._mdf))){this._isFirstFrame=!1;var G=this._moreOptions.alignment.v,K=this._animatorsData,ee=this._textData,te=this.mHelper,re=this._renderType,ce=this.renderedLetters.length,ue,de,ve,st,Ae=L.l,at,ot,rt,ft,Oe,nt,it,lt,ct,ut,bt,gt,Pt,Nt,Ot;if(this._hasMaskedPath){if(Ot=this._pathData.m,!this._pathData.n||this._pathData._mdf){var Ft=Ot.v;this._pathData.r.v&&(Ft=Ft.reverse()),at={tLength:0,segments:[]},st=Ft._length-1;var jt;for(gt=0,ve=0;ve<st;ve+=1)jt=bez.buildBezierData(Ft.v[ve],Ft.v[ve+1],[Ft.o[ve][0]-Ft.v[ve][0],Ft.o[ve][1]-Ft.v[ve][1]],[Ft.i[ve+1][0]-Ft.v[ve+1][0],Ft.i[ve+1][1]-Ft.v[ve+1][1]]),at.tLength+=jt.segmentLength,at.segments.push(jt),gt+=jt.segmentLength;ve=st,Ot.v.c&&(jt=bez.buildBezierData(Ft.v[ve],Ft.v[0],[Ft.o[ve][0]-Ft.v[ve][0],Ft.o[ve][1]-Ft.v[ve][1]],[Ft.i[0][0]-Ft.v[0][0],Ft.i[0][1]-Ft.v[0][1]]),at.tLength+=jt.segmentLength,at.segments.push(jt),gt+=jt.segmentLength),this._pathData.pi=at}if(at=this._pathData.pi,ot=this._pathData.f.v,it=0,nt=1,ft=0,Oe=!0,ut=at.segments,ot<0&&Ot.v.c)for(at.tLength<Math.abs(ot)&&(ot=-Math.abs(ot)%at.tLength),it=ut.length-1,ct=ut[it].points,nt=ct.length-1;ot<0;)ot+=ct[nt].partialLength,nt-=1,nt<0&&(it-=1,ct=ut[it].points,nt=ct.length-1);ct=ut[it].points,lt=ct[nt-1],rt=ct[nt],bt=rt.partialLength}st=Ae.length,ue=0,de=0;var Bt=L.finalSize*1.2*.714,At=!0,$t,Ct,dt,mt,kt;mt=K.length;var It,Kt=-1,Yt,nr,ur,Vt=ot,lr=it,sr=nt,pr=-1,gr,ir,Jt,cr,tr,xr,Sr,Cr,wr="",Lt=this.defaultPropsArray,Gt;if(L.j===2||L.j===1){var Xt=0,ar=0,rr=L.j===2?-.5:-1,er=0,mr=!0;for(ve=0;ve<st;ve+=1)if(Ae[ve].n){for(Xt&&(Xt+=ar);er<ve;)Ae[er].animatorJustifyOffset=Xt,er+=1;Xt=0,mr=!0}else{for(dt=0;dt<mt;dt+=1)$t=K[dt].a,$t.t.propType&&(mr&&L.j===2&&(ar+=$t.t.v*rr),Ct=K[dt].s,It=Ct.getMult(Ae[ve].anIndexes[dt],ee.a[dt].s.totalChars),It.length?Xt+=$t.t.v*It[0]*rr:Xt+=$t.t.v*It*rr);mr=!1}for(Xt&&(Xt+=ar);er<ve;)Ae[er].animatorJustifyOffset=Xt,er+=1}for(ve=0;ve<st;ve+=1){if(te.reset(),gr=1,Ae[ve].n)ue=0,de+=L.yOffset,de+=At?1:0,ot=Vt,At=!1,this._hasMaskedPath&&(it=lr,nt=sr,ct=ut[it].points,lt=ct[nt-1],rt=ct[nt],bt=rt.partialLength,ft=0),wr="",Cr="",xr="",Gt="",Lt=this.defaultPropsArray;else{if(this._hasMaskedPath){if(pr!==Ae[ve].line){switch(L.j){case 1:ot+=gt-L.lineWidths[Ae[ve].line];break;case 2:ot+=(gt-L.lineWidths[Ae[ve].line])/2;break}pr=Ae[ve].line}Kt!==Ae[ve].ind&&(Ae[Kt]&&(ot+=Ae[Kt].extra),ot+=Ae[ve].an/2,Kt=Ae[ve].ind),ot+=G[0]*Ae[ve].an*.005;var $r=0;for(dt=0;dt<mt;dt+=1)$t=K[dt].a,$t.p.propType&&(Ct=K[dt].s,It=Ct.getMult(Ae[ve].anIndexes[dt],ee.a[dt].s.totalChars),It.length?$r+=$t.p.v[0]*It[0]:$r+=$t.p.v[0]*It),$t.a.propType&&(Ct=K[dt].s,It=Ct.getMult(Ae[ve].anIndexes[dt],ee.a[dt].s.totalChars),It.length?$r+=$t.a.v[0]*It[0]:$r+=$t.a.v[0]*It);for(Oe=!0,this._pathData.a.v&&(ot=Ae[0].an*.5+(gt-this._pathData.f.v-Ae[0].an*.5-Ae[Ae.length-1].an*.5)*Kt/(st-1),ot+=this._pathData.f.v);Oe;)ft+bt>=ot+$r||!ct?(Pt=(ot+$r-ft)/rt.partialLength,nr=lt.point[0]+(rt.point[0]-lt.point[0])*Pt,ur=lt.point[1]+(rt.point[1]-lt.point[1])*Pt,te.translate(-G[0]*Ae[ve].an*.005,-(G[1]*Bt)*.01),Oe=!1):ct&&(ft+=rt.partialLength,nt+=1,nt>=ct.length&&(nt=0,it+=1,ut[it]?ct=ut[it].points:Ot.v.c?(nt=0,it=0,ct=ut[it].points):(ft-=rt.partialLength,ct=null)),ct&&(lt=rt,rt=ct[nt],bt=rt.partialLength));Yt=Ae[ve].an/2-Ae[ve].add,te.translate(-Yt,0,0)}else Yt=Ae[ve].an/2-Ae[ve].add,te.translate(-Yt,0,0),te.translate(-G[0]*Ae[ve].an*.005,-G[1]*Bt*.01,0);for(dt=0;dt<mt;dt+=1)$t=K[dt].a,$t.t.propType&&(Ct=K[dt].s,It=Ct.getMult(Ae[ve].anIndexes[dt],ee.a[dt].s.totalChars),(ue!==0||L.j!==0)&&(this._hasMaskedPath?It.length?ot+=$t.t.v*It[0]:ot+=$t.t.v*It:It.length?ue+=$t.t.v*It[0]:ue+=$t.t.v*It));for(L.strokeWidthAnim&&(Jt=L.sw||0),L.strokeColorAnim&&(L.sc?ir=[L.sc[0],L.sc[1],L.sc[2]]:ir=[0,0,0]),L.fillColorAnim&&L.fc&&(cr=[L.fc[0],L.fc[1],L.fc[2]]),dt=0;dt<mt;dt+=1)$t=K[dt].a,$t.a.propType&&(Ct=K[dt].s,It=Ct.getMult(Ae[ve].anIndexes[dt],ee.a[dt].s.totalChars),It.length?te.translate(-$t.a.v[0]*It[0],-$t.a.v[1]*It[1],$t.a.v[2]*It[2]):te.translate(-$t.a.v[0]*It,-$t.a.v[1]*It,$t.a.v[2]*It));for(dt=0;dt<mt;dt+=1)$t=K[dt].a,$t.s.propType&&(Ct=K[dt].s,It=Ct.getMult(Ae[ve].anIndexes[dt],ee.a[dt].s.totalChars),It.length?te.scale(1+($t.s.v[0]-1)*It[0],1+($t.s.v[1]-1)*It[1],1):te.scale(1+($t.s.v[0]-1)*It,1+($t.s.v[1]-1)*It,1));for(dt=0;dt<mt;dt+=1){if($t=K[dt].a,Ct=K[dt].s,It=Ct.getMult(Ae[ve].anIndexes[dt],ee.a[dt].s.totalChars),$t.sk.propType&&(It.length?te.skewFromAxis(-$t.sk.v*It[0],$t.sa.v*It[1]):te.skewFromAxis(-$t.sk.v*It,$t.sa.v*It)),$t.r.propType&&(It.length?te.rotateZ(-$t.r.v*It[2]):te.rotateZ(-$t.r.v*It)),$t.ry.propType&&(It.length?te.rotateY($t.ry.v*It[1]):te.rotateY($t.ry.v*It)),$t.rx.propType&&(It.length?te.rotateX($t.rx.v*It[0]):te.rotateX($t.rx.v*It)),$t.o.propType&&(It.length?gr+=($t.o.v*It[0]-gr)*It[0]:gr+=($t.o.v*It-gr)*It),L.strokeWidthAnim&&$t.sw.propType&&(It.length?Jt+=$t.sw.v*It[0]:Jt+=$t.sw.v*It),L.strokeColorAnim&&$t.sc.propType)for(tr=0;tr<3;tr+=1)It.length?ir[tr]+=($t.sc.v[tr]-ir[tr])*It[0]:ir[tr]+=($t.sc.v[tr]-ir[tr])*It;if(L.fillColorAnim&&L.fc){if($t.fc.propType)for(tr=0;tr<3;tr+=1)It.length?cr[tr]+=($t.fc.v[tr]-cr[tr])*It[0]:cr[tr]+=($t.fc.v[tr]-cr[tr])*It;$t.fh.propType&&(It.length?cr=addHueToRGB(cr,$t.fh.v*It[0]):cr=addHueToRGB(cr,$t.fh.v*It)),$t.fs.propType&&(It.length?cr=addSaturationToRGB(cr,$t.fs.v*It[0]):cr=addSaturationToRGB(cr,$t.fs.v*It)),$t.fb.propType&&(It.length?cr=addBrightnessToRGB(cr,$t.fb.v*It[0]):cr=addBrightnessToRGB(cr,$t.fb.v*It))}}for(dt=0;dt<mt;dt+=1)$t=K[dt].a,$t.p.propType&&(Ct=K[dt].s,It=Ct.getMult(Ae[ve].anIndexes[dt],ee.a[dt].s.totalChars),this._hasMaskedPath?It.length?te.translate(0,$t.p.v[1]*It[0],-$t.p.v[2]*It[1]):te.translate(0,$t.p.v[1]*It,-$t.p.v[2]*It):It.length?te.translate($t.p.v[0]*It[0],$t.p.v[1]*It[1],-$t.p.v[2]*It[2]):te.translate($t.p.v[0]*It,$t.p.v[1]*It,-$t.p.v[2]*It));if(L.strokeWidthAnim&&(xr=Jt<0?0:Jt),L.strokeColorAnim&&(Sr="rgb("+Math.round(ir[0]*255)+","+Math.round(ir[1]*255)+","+Math.round(ir[2]*255)+")"),L.fillColorAnim&&L.fc&&(Cr="rgb("+Math.round(cr[0]*255)+","+Math.round(cr[1]*255)+","+Math.round(cr[2]*255)+")"),this._hasMaskedPath){if(te.translate(0,-L.ls),te.translate(0,G[1]*Bt*.01+de,0),this._pathData.p.v){Nt=(rt.point[1]-lt.point[1])/(rt.point[0]-lt.point[0]);var qt=Math.atan(Nt)*180/Math.PI;rt.point[0]<lt.point[0]&&(qt+=180),te.rotate(-qt*Math.PI/180)}te.translate(nr,ur,0),ot-=G[0]*Ae[ve].an*.005,Ae[ve+1]&&Kt!==Ae[ve+1].ind&&(ot+=Ae[ve].an/2,ot+=L.tr*.001*L.finalSize)}else{switch(te.translate(ue,de,0),L.ps&&te.translate(L.ps[0],L.ps[1]+L.ascent,0),L.j){case 1:te.translate(Ae[ve].animatorJustifyOffset+L.justifyOffset+(L.boxWidth-L.lineWidths[Ae[ve].line]),0,0);break;case 2:te.translate(Ae[ve].animatorJustifyOffset+L.justifyOffset+(L.boxWidth-L.lineWidths[Ae[ve].line])/2,0,0);break}te.translate(0,-L.ls),te.translate(Yt,0,0),te.translate(G[0]*Ae[ve].an*.005,G[1]*Bt*.01,0),ue+=Ae[ve].l+L.tr*.001*L.finalSize}re==="html"?wr=te.toCSS():re==="svg"?wr=te.to2dCSS():Lt=[te.props[0],te.props[1],te.props[2],te.props[3],te.props[4],te.props[5],te.props[6],te.props[7],te.props[8],te.props[9],te.props[10],te.props[11],te.props[12],te.props[13],te.props[14],te.props[15]],Gt=gr}ce<=ve?(kt=new LetterProps(Gt,xr,Sr,Cr,wr,Lt),this.renderedLetters.push(kt),ce+=1,this.lettersChangedFlag=!0):(kt=this.renderedLetters[ve],this.lettersChangedFlag=kt.update(Gt,xr,Sr,Cr,wr,Lt)||this.lettersChangedFlag)}}},TextAnimatorProperty.prototype.getValue=function(){this._elem.globalData.frameId!==this._frameId&&(this._frameId=this._elem.globalData.frameId,this.iterateDynamicProperties())},TextAnimatorProperty.prototype.mHelper=new Matrix,TextAnimatorProperty.prototype.defaultPropsArray=[],extendPrototype([DynamicPropertyContainer],TextAnimatorProperty);function ITextElement(){}ITextElement.prototype.initElement=function(L,V,G){this.lettersChangedFlag=!0,this.initFrame(),this.initBaseData(L,V,G),this.textProperty=new TextProperty(this,L.t,this.dynamicProperties),this.textAnimator=new TextAnimatorProperty(L.t,this.renderType,this),this.initTransform(L,V,G),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.createContent(),this.hide(),this.textAnimator.searchProperties(this.dynamicProperties)},ITextElement.prototype.prepareFrame=function(L){this._mdf=!1,this.prepareRenderableFrame(L),this.prepareProperties(L,this.isInRange)},ITextElement.prototype.createPathShape=function(L,V){var G,K=V.length,ee,te="";for(G=0;G<K;G+=1)V[G].ty==="sh"&&(ee=V[G].ks.k,te+=buildShapeString(ee,ee.i.length,!0,L));return te},ITextElement.prototype.updateDocumentData=function(L,V){this.textProperty.updateDocumentData(L,V)},ITextElement.prototype.canResizeFont=function(L){this.textProperty.canResizeFont(L)},ITextElement.prototype.setMinimumFontSize=function(L){this.textProperty.setMinimumFontSize(L)},ITextElement.prototype.applyTextPropertiesToMatrix=function(L,V,G,K,ee){switch(L.ps&&V.translate(L.ps[0],L.ps[1]+L.ascent,0),V.translate(0,-L.ls,0),L.j){case 1:V.translate(L.justifyOffset+(L.boxWidth-L.lineWidths[G]),0,0);break;case 2:V.translate(L.justifyOffset+(L.boxWidth-L.lineWidths[G])/2,0,0);break}V.translate(K,ee,0)},ITextElement.prototype.buildColor=function(L){return"rgb("+Math.round(L[0]*255)+","+Math.round(L[1]*255)+","+Math.round(L[2]*255)+")"},ITextElement.prototype.emptyProp=new LetterProps,ITextElement.prototype.destroy=function(){},ITextElement.prototype.validateText=function(){(this.textProperty._mdf||this.textProperty._isFirstFrame)&&(this.buildNewText(),this.textProperty._isFirstFrame=!1,this.textProperty._mdf=!1)};var emptyShapeData={shapes:[]};function SVGTextLottieElement(L,V,G){this.textSpans=[],this.renderType="svg",this.initElement(L,V,G)}extendPrototype([BaseElement,TransformElement,SVGBaseElement,HierarchyElement,FrameElement,RenderableDOMElement,ITextElement],SVGTextLottieElement),SVGTextLottieElement.prototype.createContent=function(){this.data.singleShape&&!this.globalData.fontManager.chars&&(this.textContainer=createNS("text"))},SVGTextLottieElement.prototype.buildTextContents=function(L){for(var V=0,G=L.length,K=[],ee="";V<G;)L[V]===String.fromCharCode(13)||L[V]===String.fromCharCode(3)?(K.push(ee),ee=""):ee+=L[V],V+=1;return K.push(ee),K},SVGTextLottieElement.prototype.buildShapeData=function(L,V){if(L.shapes&&L.shapes.length){var G=L.shapes[0];if(G.it){var K=G.it[G.it.length-1];K.s&&(K.s.k[0]=V,K.s.k[1]=V)}}return L},SVGTextLottieElement.prototype.buildNewText=function(){this.addDynamicProperty(this);var L,V,G=this.textProperty.currentData;this.renderedLetters=createSizedArray(G?G.l.length:0),G.fc?this.layerElement.setAttribute("fill",this.buildColor(G.fc)):this.layerElement.setAttribute("fill","rgba(0,0,0,0)"),G.sc&&(this.layerElement.setAttribute("stroke",this.buildColor(G.sc)),this.layerElement.setAttribute("stroke-width",G.sw)),this.layerElement.setAttribute("font-size",G.finalSize);var K=this.globalData.fontManager.getFontByName(G.f);if(K.fClass)this.layerElement.setAttribute("class",K.fClass);else{this.layerElement.setAttribute("font-family",K.fFamily);var ee=G.fWeight,te=G.fStyle;this.layerElement.setAttribute("font-style",te),this.layerElement.setAttribute("font-weight",ee)}this.layerElement.setAttribute("aria-label",G.t);var re=G.l||[],ce=!!this.globalData.fontManager.chars;V=re.length;var ue,de=this.mHelper,ve="",st=this.data.singleShape,Ae=0,at=0,ot=!0,rt=G.tr*.001*G.finalSize;if(st&&!ce&&!G.sz){var ft=this.textContainer,Oe="start";switch(G.j){case 1:Oe="end";break;case 2:Oe="middle";break;default:Oe="start";break}ft.setAttribute("text-anchor",Oe),ft.setAttribute("letter-spacing",rt);var nt=this.buildTextContents(G.finalText);for(V=nt.length,at=G.ps?G.ps[1]+G.ascent:0,L=0;L<V;L+=1)ue=this.textSpans[L].span||createNS("tspan"),ue.textContent=nt[L],ue.setAttribute("x",0),ue.setAttribute("y",at),ue.style.display="inherit",ft.appendChild(ue),this.textSpans[L]||(this.textSpans[L]={span:null,glyph:null}),this.textSpans[L].span=ue,at+=G.finalLineHeight;this.layerElement.appendChild(ft)}else{var it=this.textSpans.length,lt;for(L=0;L<V;L+=1){if(this.textSpans[L]||(this.textSpans[L]={span:null,childSpan:null,glyph:null}),!ce||!st||L===0){if(ue=it>L?this.textSpans[L].span:createNS(ce?"g":"text"),it<=L){if(ue.setAttribute("stroke-linecap","butt"),ue.setAttribute("stroke-linejoin","round"),ue.setAttribute("stroke-miterlimit","4"),this.textSpans[L].span=ue,ce){var ct=createNS("g");ue.appendChild(ct),this.textSpans[L].childSpan=ct}this.textSpans[L].span=ue,this.layerElement.appendChild(ue)}ue.style.display="inherit"}if(de.reset(),st&&(re[L].n&&(Ae=-rt,at+=G.yOffset,at+=ot?1:0,ot=!1),this.applyTextPropertiesToMatrix(G,de,re[L].line,Ae,at),Ae+=re[L].l||0,Ae+=rt),ce){lt=this.globalData.fontManager.getCharData(G.finalText[L],K.fStyle,this.globalData.fontManager.getFontByName(G.f).fFamily);var ut;if(lt.t===1)ut=new SVGCompElement(lt.data,this.globalData,this);else{var bt=emptyShapeData;lt.data&&lt.data.shapes&&(bt=this.buildShapeData(lt.data,G.finalSize)),ut=new SVGShapeElement(bt,this.globalData,this)}if(this.textSpans[L].glyph){var gt=this.textSpans[L].glyph;this.textSpans[L].childSpan.removeChild(gt.layerElement),gt.destroy()}this.textSpans[L].glyph=ut,ut._debug=!0,ut.prepareFrame(0),ut.renderFrame(),this.textSpans[L].childSpan.appendChild(ut.layerElement),lt.t===1&&this.textSpans[L].childSpan.setAttribute("transform","scale("+G.finalSize/100+","+G.finalSize/100+")")}else st&&ue.setAttribute("transform","translate("+de.props[12]+","+de.props[13]+")"),ue.textContent=re[L].val,ue.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve")}st&&ue&&ue.setAttribute("d",ve)}for(;L<this.textSpans.length;)this.textSpans[L].span.style.display="none",L+=1;this._sizeChanged=!0},SVGTextLottieElement.prototype.sourceRectAtTime=function(){if(this.prepareFrame(this.comp.renderedFrame-this.data.st),this.renderInnerContent(),this._sizeChanged){this._sizeChanged=!1;var L=this.layerElement.getBBox();this.bbox={top:L.y,left:L.x,width:L.width,height:L.height}}return this.bbox},SVGTextLottieElement.prototype.getValue=function(){var L,V=this.textSpans.length,G;for(this.renderedFrame=this.comp.renderedFrame,L=0;L<V;L+=1)G=this.textSpans[L].glyph,G&&(G.prepareFrame(this.comp.renderedFrame-this.data.st),G._mdf&&(this._mdf=!0))},SVGTextLottieElement.prototype.renderInnerContent=function(){if(this.validateText(),(!this.data.singleShape||this._mdf)&&(this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag),this.lettersChangedFlag||this.textAnimator.lettersChangedFlag)){this._sizeChanged=!0;var L,V,G=this.textAnimator.renderedLetters,K=this.textProperty.currentData.l;V=K.length;var ee,te,re;for(L=0;L<V;L+=1)K[L].n||(ee=G[L],te=this.textSpans[L].span,re=this.textSpans[L].glyph,re&&re.renderFrame(),ee._mdf.m&&te.setAttribute("transform",ee.m),ee._mdf.o&&te.setAttribute("opacity",ee.o),ee._mdf.sw&&te.setAttribute("stroke-width",ee.sw),ee._mdf.sc&&te.setAttribute("stroke",ee.sc),ee._mdf.fc&&te.setAttribute("fill",ee.fc))}};function ISolidElement(L,V,G){this.initElement(L,V,G)}extendPrototype([IImageElement],ISolidElement),ISolidElement.prototype.createContent=function(){var L=createNS("rect");L.setAttribute("width",this.data.sw),L.setAttribute("height",this.data.sh),L.setAttribute("fill",this.data.sc),this.layerElement.appendChild(L)};function NullElement(L,V,G){this.initFrame(),this.initBaseData(L,V,G),this.initFrame(),this.initTransform(L,V,G),this.initHierarchy()}NullElement.prototype.prepareFrame=function(L){this.prepareProperties(L,!0)},NullElement.prototype.renderFrame=function(){},NullElement.prototype.getBaseElement=function(){return null},NullElement.prototype.destroy=function(){},NullElement.prototype.sourceRectAtTime=function(){},NullElement.prototype.hide=function(){},extendPrototype([BaseElement,TransformElement,HierarchyElement,FrameElement],NullElement);function SVGRendererBase(){}extendPrototype([BaseRenderer],SVGRendererBase),SVGRendererBase.prototype.createNull=function(L){return new NullElement(L,this.globalData,this)},SVGRendererBase.prototype.createShape=function(L){return new SVGShapeElement(L,this.globalData,this)},SVGRendererBase.prototype.createText=function(L){return new SVGTextLottieElement(L,this.globalData,this)},SVGRendererBase.prototype.createImage=function(L){return new IImageElement(L,this.globalData,this)},SVGRendererBase.prototype.createSolid=function(L){return new ISolidElement(L,this.globalData,this)},SVGRendererBase.prototype.configAnimation=function(L){this.svgElement.setAttribute("xmlns","http://www.w3.org/2000/svg"),this.svgElement.setAttribute("xmlns:xlink","http://www.w3.org/1999/xlink"),this.renderConfig.viewBoxSize?this.svgElement.setAttribute("viewBox",this.renderConfig.viewBoxSize):this.svgElement.setAttribute("viewBox","0 0 "+L.w+" "+L.h),this.renderConfig.viewBoxOnly||(this.svgElement.setAttribute("width",L.w),this.svgElement.setAttribute("height",L.h),this.svgElement.style.width="100%",this.svgElement.style.height="100%",this.svgElement.style.transform="translate3d(0,0,0)",this.svgElement.style.contentVisibility=this.renderConfig.contentVisibility),this.renderConfig.width&&this.svgElement.setAttribute("width",this.renderConfig.width),this.renderConfig.height&&this.svgElement.setAttribute("height",this.renderConfig.height),this.renderConfig.className&&this.svgElement.setAttribute("class",this.renderConfig.className),this.renderConfig.id&&this.svgElement.setAttribute("id",this.renderConfig.id),this.renderConfig.focusable!==void 0&&this.svgElement.setAttribute("focusable",this.renderConfig.focusable),this.svgElement.setAttribute("preserveAspectRatio",this.renderConfig.preserveAspectRatio),this.animationItem.wrapper.appendChild(this.svgElement);var V=this.globalData.defs;this.setupGlobalData(L,V),this.globalData.progressiveLoad=this.renderConfig.progressiveLoad,this.data=L;var G=createNS("clipPath"),K=createNS("rect");K.setAttribute("width",L.w),K.setAttribute("height",L.h),K.setAttribute("x",0),K.setAttribute("y",0);var ee=createElementID();G.setAttribute("id",ee),G.appendChild(K),this.layerElement.setAttribute("clip-path","url("+getLocationHref()+"#"+ee+")"),V.appendChild(G),this.layers=L.layers,this.elements=createSizedArray(L.layers.length)},SVGRendererBase.prototype.destroy=function(){this.animationItem.wrapper&&(this.animationItem.wrapper.innerText=""),this.layerElement=null,this.globalData.defs=null;var L,V=this.layers?this.layers.length:0;for(L=0;L<V;L+=1)this.elements[L]&&this.elements[L].destroy&&this.elements[L].destroy();this.elements.length=0,this.destroyed=!0,this.animationItem=null},SVGRendererBase.prototype.updateContainerSize=function(){},SVGRendererBase.prototype.findIndexByInd=function(L){var V=0,G=this.layers.length;for(V=0;V<G;V+=1)if(this.layers[V].ind===L)return V;return-1},SVGRendererBase.prototype.buildItem=function(L){var V=this.elements;if(!(V[L]||this.layers[L].ty===99)){V[L]=!0;var G=this.createItem(this.layers[L]);if(V[L]=G,getExpressionsPlugin()&&(this.layers[L].ty===0&&this.globalData.projectInterface.registerComposition(G),G.initExpressions()),this.appendElementInPos(G,L),this.layers[L].tt){var K="tp"in this.layers[L]?this.findIndexByInd(this.layers[L].tp):L-1;if(K===-1)return;if(!this.elements[K]||this.elements[K]===!0)this.buildItem(K),this.addPendingElement(G);else{var ee=V[K],te=ee.getMatte(this.layers[L].tt);G.setMatte(te)}}}},SVGRendererBase.prototype.checkPendingElements=function(){for(;this.pendingElements.length;){var L=this.pendingElements.pop();if(L.checkParenting(),L.data.tt)for(var V=0,G=this.elements.length;V<G;){if(this.elements[V]===L){var K="tp"in L.data?this.findIndexByInd(L.data.tp):V-1,ee=this.elements[K],te=ee.getMatte(this.layers[V].tt);L.setMatte(te);break}V+=1}}},SVGRendererBase.prototype.renderFrame=function(L){if(!(this.renderedFrame===L||this.destroyed)){L===null?L=this.renderedFrame:this.renderedFrame=L,this.globalData.frameNum=L,this.globalData.frameId+=1,this.globalData.projectInterface.currentFrame=L,this.globalData._mdf=!1;var V,G=this.layers.length;for(this.completeLayers||this.checkLayers(L),V=G-1;V>=0;V-=1)(this.completeLayers||this.elements[V])&&this.elements[V].prepareFrame(L-this.layers[V].st);if(this.globalData._mdf)for(V=0;V<G;V+=1)(this.completeLayers||this.elements[V])&&this.elements[V].renderFrame()}},SVGRendererBase.prototype.appendElementInPos=function(L,V){var G=L.getBaseElement();if(!!G){for(var K=0,ee;K<V;)this.elements[K]&&this.elements[K]!==!0&&this.elements[K].getBaseElement()&&(ee=this.elements[K].getBaseElement()),K+=1;ee?this.layerElement.insertBefore(G,ee):this.layerElement.appendChild(G)}},SVGRendererBase.prototype.hide=function(){this.layerElement.style.display="none"},SVGRendererBase.prototype.show=function(){this.layerElement.style.display="block"};function ICompElement(){}extendPrototype([BaseElement,TransformElement,HierarchyElement,FrameElement,RenderableDOMElement],ICompElement),ICompElement.prototype.initElement=function(L,V,G){this.initFrame(),this.initBaseData(L,V,G),this.initTransform(L,V,G),this.initRenderable(),this.initHierarchy(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),(this.data.xt||!V.progressiveLoad)&&this.buildAllItems(),this.hide()},ICompElement.prototype.prepareFrame=function(L){if(this._mdf=!1,this.prepareRenderableFrame(L),this.prepareProperties(L,this.isInRange),!(!this.isInRange&&!this.data.xt)){if(this.tm._placeholder)this.renderedFrame=L/this.data.sr;else{var V=this.tm.v;V===this.data.op&&(V=this.data.op-1),this.renderedFrame=V}var G,K=this.elements.length;for(this.completeLayers||this.checkLayers(this.renderedFrame),G=K-1;G>=0;G-=1)(this.completeLayers||this.elements[G])&&(this.elements[G].prepareFrame(this.renderedFrame-this.layers[G].st),this.elements[G]._mdf&&(this._mdf=!0))}},ICompElement.prototype.renderInnerContent=function(){var L,V=this.layers.length;for(L=0;L<V;L+=1)(this.completeLayers||this.elements[L])&&this.elements[L].renderFrame()},ICompElement.prototype.setElements=function(L){this.elements=L},ICompElement.prototype.getElements=function(){return this.elements},ICompElement.prototype.destroyElements=function(){var L,V=this.layers.length;for(L=0;L<V;L+=1)this.elements[L]&&this.elements[L].destroy()},ICompElement.prototype.destroy=function(){this.destroyElements(),this.destroyBaseElement()};function SVGCompElement(L,V,G){this.layers=L.layers,this.supports3d=!0,this.completeLayers=!1,this.pendingElements=[],this.elements=this.layers?createSizedArray(this.layers.length):[],this.initElement(L,V,G),this.tm=L.tm?PropertyFactory.getProp(this,L.tm,0,V.frameRate,this):{_placeholder:!0}}extendPrototype([SVGRendererBase,ICompElement,SVGBaseElement],SVGCompElement),SVGCompElement.prototype.createComp=function(L){return new SVGCompElement(L,this.globalData,this)};function SVGRenderer(L,V){this.animationItem=L,this.layers=null,this.renderedFrame=-1,this.svgElement=createNS("svg");var G="";if(V&&V.title){var K=createNS("title"),ee=createElementID();K.setAttribute("id",ee),K.textContent=V.title,this.svgElement.appendChild(K),G+=ee}if(V&&V.description){var te=createNS("desc"),re=createElementID();te.setAttribute("id",re),te.textContent=V.description,this.svgElement.appendChild(te),G+=" "+re}G&&this.svgElement.setAttribute("aria-labelledby",G);var ce=createNS("defs");this.svgElement.appendChild(ce);var ue=createNS("g");this.svgElement.appendChild(ue),this.layerElement=ue,this.renderConfig={preserveAspectRatio:V&&V.preserveAspectRatio||"xMidYMid meet",imagePreserveAspectRatio:V&&V.imagePreserveAspectRatio||"xMidYMid slice",contentVisibility:V&&V.contentVisibility||"visible",progressiveLoad:V&&V.progressiveLoad||!1,hideOnTransparent:!(V&&V.hideOnTransparent===!1),viewBoxOnly:V&&V.viewBoxOnly||!1,viewBoxSize:V&&V.viewBoxSize||!1,className:V&&V.className||"",id:V&&V.id||"",focusable:V&&V.focusable,filterSize:{width:V&&V.filterSize&&V.filterSize.width||"100%",height:V&&V.filterSize&&V.filterSize.height||"100%",x:V&&V.filterSize&&V.filterSize.x||"0%",y:V&&V.filterSize&&V.filterSize.y||"0%"},width:V&&V.width,height:V&&V.height,runExpressions:!V||V.runExpressions===void 0||V.runExpressions},this.globalData={_mdf:!1,frameNum:-1,defs:ce,renderConfig:this.renderConfig},this.elements=[],this.pendingElements=[],this.destroyed=!1,this.rendererType="svg"}extendPrototype([SVGRendererBase],SVGRenderer),SVGRenderer.prototype.createComp=function(L){return new SVGCompElement(L,this.globalData,this)};function ShapeTransformManager(){this.sequences={},this.sequenceList=[],this.transform_key_count=0}ShapeTransformManager.prototype={addTransformSequence:function(V){var G,K=V.length,ee="_";for(G=0;G<K;G+=1)ee+=V[G].transform.key+"_";var te=this.sequences[ee];return te||(te={transforms:[].concat(V),finalTransform:new Matrix,_mdf:!1},this.sequences[ee]=te,this.sequenceList.push(te)),te},processSequence:function(V,G){for(var K=0,ee=V.transforms.length,te=G;K<ee&&!G;){if(V.transforms[K].transform.mProps._mdf){te=!0;break}K+=1}if(te)for(V.finalTransform.reset(),K=ee-1;K>=0;K-=1)V.finalTransform.multiply(V.transforms[K].transform.mProps.v);V._mdf=te},processSequences:function(V){var G,K=this.sequenceList.length;for(G=0;G<K;G+=1)this.processSequence(this.sequenceList[G],V)},getNewKey:function(){return this.transform_key_count+=1,"_"+this.transform_key_count}};var lumaLoader=function(){var V="__lottie_element_luma_buffer",G=null,K=null,ee=null;function te(){var ue=createNS("svg"),de=createNS("filter"),ve=createNS("feColorMatrix");return de.setAttribute("id",V),ve.setAttribute("type","matrix"),ve.setAttribute("color-interpolation-filters","sRGB"),ve.setAttribute("values","0.3, 0.3, 0.3, 0, 0, 0.3, 0.3, 0.3, 0, 0, 0.3, 0.3, 0.3, 0, 0, 0.3, 0.3, 0.3, 0, 0"),de.appendChild(ve),ue.appendChild(de),ue.setAttribute("id",V+"_svg"),featureSupport.svgLumaHidden&&(ue.style.display="none"),ue}function re(){G||(ee=te(),document.body.appendChild(ee),G=createTag("canvas"),K=G.getContext("2d"),K.filter="url(#"+V+")",K.fillStyle="rgba(0,0,0,0)",K.fillRect(0,0,1,1))}function ce(ue){return G||re(),G.width=ue.width,G.height=ue.height,K.filter="url(#"+V+")",G}return{load:re,get:ce}};function createCanvas(L,V){if(featureSupport.offscreenCanvas)return new OffscreenCanvas(L,V);var G=createTag("canvas");return G.width=L,G.height=V,G}var assetLoader=function(){return{loadLumaCanvas:lumaLoader.load,getLumaCanvas:lumaLoader.get,createCanvas}}(),registeredEffects={};function CVEffects(L){var V,G=L.data.ef?L.data.ef.length:0;this.filters=[];var K;for(V=0;V<G;V+=1){K=null;var ee=L.data.ef[V].ty;if(registeredEffects[ee]){var te=registeredEffects[ee].effect;K=new te(L.effectsManager.effectElements[V],L)}K&&this.filters.push(K)}this.filters.length&&L.addRenderableComponent(this)}CVEffects.prototype.renderFrame=function(L){var V,G=this.filters.length;for(V=0;V<G;V+=1)this.filters[V].renderFrame(L)},CVEffects.prototype.getEffects=function(L){var V,G=this.filters.length,K=[];for(V=0;V<G;V+=1)this.filters[V].type===L&&K.push(this.filters[V]);return K};function registerEffect(L,V){registeredEffects[L]={effect:V}}function CVMaskElement(L,V){this.data=L,this.element=V,this.masksProperties=this.data.masksProperties||[],this.viewData=createSizedArray(this.masksProperties.length);var G,K=this.masksProperties.length,ee=!1;for(G=0;G<K;G+=1)this.masksProperties[G].mode!=="n"&&(ee=!0),this.viewData[G]=ShapePropertyFactory.getShapeProp(this.element,this.masksProperties[G],3);this.hasMasks=ee,ee&&this.element.addRenderableComponent(this)}CVMaskElement.prototype.renderFrame=function(){if(!!this.hasMasks){var L=this.element.finalTransform.mat,V=this.element.canvasContext,G,K=this.masksProperties.length,ee,te,re;for(V.beginPath(),G=0;G<K;G+=1)if(this.masksProperties[G].mode!=="n"){this.masksProperties[G].inv&&(V.moveTo(0,0),V.lineTo(this.element.globalData.compSize.w,0),V.lineTo(this.element.globalData.compSize.w,this.element.globalData.compSize.h),V.lineTo(0,this.element.globalData.compSize.h),V.lineTo(0,0)),re=this.viewData[G].v,ee=L.applyToPointArray(re.v[0][0],re.v[0][1],0),V.moveTo(ee[0],ee[1]);var ce,ue=re._length;for(ce=1;ce<ue;ce+=1)te=L.applyToTriplePoints(re.o[ce-1],re.i[ce],re.v[ce]),V.bezierCurveTo(te[0],te[1],te[2],te[3],te[4],te[5]);te=L.applyToTriplePoints(re.o[ce-1],re.i[0],re.v[0]),V.bezierCurveTo(te[0],te[1],te[2],te[3],te[4],te[5])}this.element.globalData.renderer.save(!0),V.clip()}},CVMaskElement.prototype.getMaskProperty=MaskElement.prototype.getMaskProperty,CVMaskElement.prototype.destroy=function(){this.element=null};function CVBaseElement(){}var operationsMap={1:"source-in",2:"source-out",3:"source-in",4:"source-out"};CVBaseElement.prototype={createElements:function(){},initRendererElement:function(){},createContainerElements:function(){if(this.data.tt>=1){this.buffers=[];var V=this.globalData.canvasContext,G=assetLoader.createCanvas(V.canvas.width,V.canvas.height);this.buffers.push(G);var K=assetLoader.createCanvas(V.canvas.width,V.canvas.height);this.buffers.push(K),this.data.tt>=3&&!document._isProxy&&assetLoader.loadLumaCanvas()}this.canvasContext=this.globalData.canvasContext,this.transformCanvas=this.globalData.transformCanvas,this.renderableEffectsManager=new CVEffects(this),this.searchEffectTransforms()},createContent:function(){},setBlendMode:function(){var V=this.globalData;if(V.blendMode!==this.data.bm){V.blendMode=this.data.bm;var G=getBlendMode(this.data.bm);V.canvasContext.globalCompositeOperation=G}},createRenderableComponents:function(){this.maskManager=new CVMaskElement(this.data,this),this.transformEffects=this.renderableEffectsManager.getEffects(effectTypes.TRANSFORM_EFFECT)},hideElement:function(){!this.hidden&&(!this.isInRange||this.isTransparent)&&(this.hidden=!0)},showElement:function(){this.isInRange&&!this.isTransparent&&(this.hidden=!1,this._isFirstFrame=!0,this.maskManager._isFirstFrame=!0)},clearCanvas:function(V){V.clearRect(this.transformCanvas.tx,this.transformCanvas.ty,this.transformCanvas.w*this.transformCanvas.sx,this.transformCanvas.h*this.transformCanvas.sy)},prepareLayer:function(){if(this.data.tt>=1){var V=this.buffers[0],G=V.getContext("2d");this.clearCanvas(G),G.drawImage(this.canvasContext.canvas,0,0),this.currentTransform=this.canvasContext.getTransform(),this.canvasContext.setTransform(1,0,0,1,0,0),this.clearCanvas(this.canvasContext),this.canvasContext.setTransform(this.currentTransform)}},exitLayer:function(){if(this.data.tt>=1){var V=this.buffers[1],G=V.getContext("2d");this.clearCanvas(G),G.drawImage(this.canvasContext.canvas,0,0),this.canvasContext.setTransform(1,0,0,1,0,0),this.clearCanvas(this.canvasContext),this.canvasContext.setTransform(this.currentTransform);var K=this.comp.getElementById("tp"in this.data?this.data.tp:this.data.ind-1);if(K.renderFrame(!0),this.canvasContext.setTransform(1,0,0,1,0,0),this.data.tt>=3&&!document._isProxy){var ee=assetLoader.getLumaCanvas(this.canvasContext.canvas),te=ee.getContext("2d");te.drawImage(this.canvasContext.canvas,0,0),this.clearCanvas(this.canvasContext),this.canvasContext.drawImage(ee,0,0)}this.canvasContext.globalCompositeOperation=operationsMap[this.data.tt],this.canvasContext.drawImage(V,0,0),this.canvasContext.globalCompositeOperation="destination-over",this.canvasContext.drawImage(this.buffers[0],0,0),this.canvasContext.setTransform(this.currentTransform),this.canvasContext.globalCompositeOperation="source-over"}},renderFrame:function(V){if(!(this.hidden||this.data.hd)&&!(this.data.td===1&&!V)){this.renderTransform(),this.renderRenderable(),this.renderLocalTransform(),this.setBlendMode();var G=this.data.ty===0;this.prepareLayer(),this.globalData.renderer.save(G),this.globalData.renderer.ctxTransform(this.finalTransform.localMat.props),this.globalData.renderer.ctxOpacity(this.finalTransform.localOpacity),this.renderInnerContent(),this.globalData.renderer.restore(G),this.exitLayer(),this.maskManager.hasMasks&&this.globalData.renderer.restore(!0),this._isFirstFrame&&(this._isFirstFrame=!1)}},destroy:function(){this.canvasContext=null,this.data=null,this.globalData=null,this.maskManager.destroy()},mHelper:new Matrix},CVBaseElement.prototype.hide=CVBaseElement.prototype.hideElement,CVBaseElement.prototype.show=CVBaseElement.prototype.showElement;function CVShapeData(L,V,G,K){this.styledShapes=[],this.tr=[0,0,0,0,0,0];var ee=4;V.ty==="rc"?ee=5:V.ty==="el"?ee=6:V.ty==="sr"&&(ee=7),this.sh=ShapePropertyFactory.getShapeProp(L,V,ee,L);var te,re=G.length,ce;for(te=0;te<re;te+=1)G[te].closed||(ce={transforms:K.addTransformSequence(G[te].transforms),trNodes:[]},this.styledShapes.push(ce),G[te].elements.push(ce))}CVShapeData.prototype.setAsAnimated=SVGShapeData.prototype.setAsAnimated;function CVShapeElement(L,V,G){this.shapes=[],this.shapesData=L.shapes,this.stylesList=[],this.itemsData=[],this.prevViewData=[],this.shapeModifiers=[],this.processedElements=[],this.transformsManager=new ShapeTransformManager,this.initElement(L,V,G)}extendPrototype([BaseElement,TransformElement,CVBaseElement,IShapeElement,HierarchyElement,FrameElement,RenderableElement],CVShapeElement),CVShapeElement.prototype.initElement=RenderableDOMElement.prototype.initElement,CVShapeElement.prototype.transformHelper={opacity:1,_opMdf:!1},CVShapeElement.prototype.dashResetter=[],CVShapeElement.prototype.createContent=function(){this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,!0,[])},CVShapeElement.prototype.createStyleElement=function(L,V){var G={data:L,type:L.ty,preTransforms:this.transformsManager.addTransformSequence(V),transforms:[],elements:[],closed:L.hd===!0},K={};if(L.ty==="fl"||L.ty==="st"?(K.c=PropertyFactory.getProp(this,L.c,1,255,this),K.c.k||(G.co="rgb("+bmFloor(K.c.v[0])+","+bmFloor(K.c.v[1])+","+bmFloor(K.c.v[2])+")")):(L.ty==="gf"||L.ty==="gs")&&(K.s=PropertyFactory.getProp(this,L.s,1,null,this),K.e=PropertyFactory.getProp(this,L.e,1,null,this),K.h=PropertyFactory.getProp(this,L.h||{k:0},0,.01,this),K.a=PropertyFactory.getProp(this,L.a||{k:0},0,degToRads,this),K.g=new GradientProperty(this,L.g,this)),K.o=PropertyFactory.getProp(this,L.o,0,.01,this),L.ty==="st"||L.ty==="gs"){if(G.lc=lineCapEnum[L.lc||2],G.lj=lineJoinEnum[L.lj||2],L.lj==1&&(G.ml=L.ml),K.w=PropertyFactory.getProp(this,L.w,0,null,this),K.w.k||(G.wi=K.w.v),L.d){var ee=new DashProperty(this,L.d,"canvas",this);K.d=ee,K.d.k||(G.da=K.d.dashArray,G.do=K.d.dashoffset[0])}}else G.r=L.r===2?"evenodd":"nonzero";return this.stylesList.push(G),K.style=G,K},CVShapeElement.prototype.createGroupElement=function(){var L={it:[],prevViewData:[]};return L},CVShapeElement.prototype.createTransformElement=function(L){var V={transform:{opacity:1,_opMdf:!1,key:this.transformsManager.getNewKey(),op:PropertyFactory.getProp(this,L.o,0,.01,this),mProps:TransformPropertyFactory.getTransformProperty(this,L,this)}};return V},CVShapeElement.prototype.createShapeElement=function(L){var V=new CVShapeData(this,L,this.stylesList,this.transformsManager);return this.shapes.push(V),this.addShapeToModifiers(V),V},CVShapeElement.prototype.reloadShapes=function(){this._isFirstFrame=!0;var L,V=this.itemsData.length;for(L=0;L<V;L+=1)this.prevViewData[L]=this.itemsData[L];for(this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,!0,[]),V=this.dynamicProperties.length,L=0;L<V;L+=1)this.dynamicProperties[L].getValue();this.renderModifiers(),this.transformsManager.processSequences(this._isFirstFrame)},CVShapeElement.prototype.addTransformToStyleList=function(L){var V,G=this.stylesList.length;for(V=0;V<G;V+=1)this.stylesList[V].closed||this.stylesList[V].transforms.push(L)},CVShapeElement.prototype.removeTransformFromStyleList=function(){var L,V=this.stylesList.length;for(L=0;L<V;L+=1)this.stylesList[L].closed||this.stylesList[L].transforms.pop()},CVShapeElement.prototype.closeStyles=function(L){var V,G=L.length;for(V=0;V<G;V+=1)L[V].closed=!0},CVShapeElement.prototype.searchShapes=function(L,V,G,K,ee){var te,re=L.length-1,ce,ue,de=[],ve=[],st,Ae,at,ot=[].concat(ee);for(te=re;te>=0;te-=1){if(st=this.searchProcessedElement(L[te]),st?V[te]=G[st-1]:L[te]._shouldRender=K,L[te].ty==="fl"||L[te].ty==="st"||L[te].ty==="gf"||L[te].ty==="gs")st?V[te].style.closed=!1:V[te]=this.createStyleElement(L[te],ot),de.push(V[te].style);else if(L[te].ty==="gr"){if(!st)V[te]=this.createGroupElement(L[te]);else for(ue=V[te].it.length,ce=0;ce<ue;ce+=1)V[te].prevViewData[ce]=V[te].it[ce];this.searchShapes(L[te].it,V[te].it,V[te].prevViewData,K,ot)}else L[te].ty==="tr"?(st||(at=this.createTransformElement(L[te]),V[te]=at),ot.push(V[te]),this.addTransformToStyleList(V[te])):L[te].ty==="sh"||L[te].ty==="rc"||L[te].ty==="el"||L[te].ty==="sr"?st||(V[te]=this.createShapeElement(L[te])):L[te].ty==="tm"||L[te].ty==="rd"||L[te].ty==="pb"||L[te].ty==="zz"||L[te].ty==="op"?(st?(Ae=V[te],Ae.closed=!1):(Ae=ShapeModifiers.getModifier(L[te].ty),Ae.init(this,L[te]),V[te]=Ae,this.shapeModifiers.push(Ae)),ve.push(Ae)):L[te].ty==="rp"&&(st?(Ae=V[te],Ae.closed=!0):(Ae=ShapeModifiers.getModifier(L[te].ty),V[te]=Ae,Ae.init(this,L,te,V),this.shapeModifiers.push(Ae),K=!1),ve.push(Ae));this.addProcessedElement(L[te],te+1)}for(this.removeTransformFromStyleList(),this.closeStyles(de),re=ve.length,te=0;te<re;te+=1)ve[te].closed=!0},CVShapeElement.prototype.renderInnerContent=function(){this.transformHelper.opacity=1,this.transformHelper._opMdf=!1,this.renderModifiers(),this.transformsManager.processSequences(this._isFirstFrame),this.renderShape(this.transformHelper,this.shapesData,this.itemsData,!0)},CVShapeElement.prototype.renderShapeTransform=function(L,V){(L._opMdf||V.op._mdf||this._isFirstFrame)&&(V.opacity=L.opacity,V.opacity*=V.op.v,V._opMdf=!0)},CVShapeElement.prototype.drawLayer=function(){var L,V=this.stylesList.length,G,K,ee,te,re,ce,ue=this.globalData.renderer,de=this.globalData.canvasContext,ve,st;for(L=0;L<V;L+=1)if(st=this.stylesList[L],ve=st.type,!((ve==="st"||ve==="gs")&&st.wi===0||!st.data._shouldRender||st.coOp===0||this.globalData.currentGlobalAlpha===0)){for(ue.save(),re=st.elements,ve==="st"||ve==="gs"?(ue.ctxStrokeStyle(ve==="st"?st.co:st.grd),ue.ctxLineWidth(st.wi),ue.ctxLineCap(st.lc),ue.ctxLineJoin(st.lj),ue.ctxMiterLimit(st.ml||0)):ue.ctxFillStyle(ve==="fl"?st.co:st.grd),ue.ctxOpacity(st.coOp),ve!=="st"&&ve!=="gs"&&de.beginPath(),ue.ctxTransform(st.preTransforms.finalTransform.props),K=re.length,G=0;G<K;G+=1){for((ve==="st"||ve==="gs")&&(de.beginPath(),st.da&&(de.setLineDash(st.da),de.lineDashOffset=st.do)),ce=re[G].trNodes,te=ce.length,ee=0;ee<te;ee+=1)ce[ee].t==="m"?de.moveTo(ce[ee].p[0],ce[ee].p[1]):ce[ee].t==="c"?de.bezierCurveTo(ce[ee].pts[0],ce[ee].pts[1],ce[ee].pts[2],ce[ee].pts[3],ce[ee].pts[4],ce[ee].pts[5]):de.closePath();(ve==="st"||ve==="gs")&&(ue.ctxStroke(),st.da&&de.setLineDash(this.dashResetter))}ve!=="st"&&ve!=="gs"&&this.globalData.renderer.ctxFill(st.r),ue.restore()}},CVShapeElement.prototype.renderShape=function(L,V,G,K){var ee,te=V.length-1,re;for(re=L,ee=te;ee>=0;ee-=1)V[ee].ty==="tr"?(re=G[ee].transform,this.renderShapeTransform(L,re)):V[ee].ty==="sh"||V[ee].ty==="el"||V[ee].ty==="rc"||V[ee].ty==="sr"?this.renderPath(V[ee],G[ee]):V[ee].ty==="fl"?this.renderFill(V[ee],G[ee],re):V[ee].ty==="st"?this.renderStroke(V[ee],G[ee],re):V[ee].ty==="gf"||V[ee].ty==="gs"?this.renderGradientFill(V[ee],G[ee],re):V[ee].ty==="gr"?this.renderShape(re,V[ee].it,G[ee].it):V[ee].ty;K&&this.drawLayer()},CVShapeElement.prototype.renderStyledShape=function(L,V){if(this._isFirstFrame||V._mdf||L.transforms._mdf){var G=L.trNodes,K=V.paths,ee,te,re,ce=K._length;G.length=0;var ue=L.transforms.finalTransform;for(re=0;re<ce;re+=1){var de=K.shapes[re];if(de&&de.v){for(te=de._length,ee=1;ee<te;ee+=1)ee===1&&G.push({t:"m",p:ue.applyToPointArray(de.v[0][0],de.v[0][1],0)}),G.push({t:"c",pts:ue.applyToTriplePoints(de.o[ee-1],de.i[ee],de.v[ee])});te===1&&G.push({t:"m",p:ue.applyToPointArray(de.v[0][0],de.v[0][1],0)}),de.c&&te&&(G.push({t:"c",pts:ue.applyToTriplePoints(de.o[ee-1],de.i[0],de.v[0])}),G.push({t:"z"}))}}L.trNodes=G}},CVShapeElement.prototype.renderPath=function(L,V){if(L.hd!==!0&&L._shouldRender){var G,K=V.styledShapes.length;for(G=0;G<K;G+=1)this.renderStyledShape(V.styledShapes[G],V.sh)}},CVShapeElement.prototype.renderFill=function(L,V,G){var K=V.style;(V.c._mdf||this._isFirstFrame)&&(K.co="rgb("+bmFloor(V.c.v[0])+","+bmFloor(V.c.v[1])+","+bmFloor(V.c.v[2])+")"),(V.o._mdf||G._opMdf||this._isFirstFrame)&&(K.coOp=V.o.v*G.opacity)},CVShapeElement.prototype.renderGradientFill=function(L,V,G){var K=V.style,ee;if(!K.grd||V.g._mdf||V.s._mdf||V.e._mdf||L.t!==1&&(V.h._mdf||V.a._mdf)){var te=this.globalData.canvasContext,re=V.s.v,ce=V.e.v;if(L.t===1)ee=te.createLinearGradient(re[0],re[1],ce[0],ce[1]);else{var ue=Math.sqrt(Math.pow(re[0]-ce[0],2)+Math.pow(re[1]-ce[1],2)),de=Math.atan2(ce[1]-re[1],ce[0]-re[0]),ve=V.h.v;ve>=1?ve=.99:ve<=-1&&(ve=-.99);var st=ue*ve,Ae=Math.cos(de+V.a.v)*st+re[0],at=Math.sin(de+V.a.v)*st+re[1];ee=te.createRadialGradient(Ae,at,0,re[0],re[1],ue)}var ot,rt=L.g.p,ft=V.g.c,Oe=1;for(ot=0;ot<rt;ot+=1)V.g._hasOpacity&&V.g._collapsable&&(Oe=V.g.o[ot*2+1]),ee.addColorStop(ft[ot*4]/100,"rgba("+ft[ot*4+1]+","+ft[ot*4+2]+","+ft[ot*4+3]+","+Oe+")");K.grd=ee}K.coOp=V.o.v*G.opacity},CVShapeElement.prototype.renderStroke=function(L,V,G){var K=V.style,ee=V.d;ee&&(ee._mdf||this._isFirstFrame)&&(K.da=ee.dashArray,K.do=ee.dashoffset[0]),(V.c._mdf||this._isFirstFrame)&&(K.co="rgb("+bmFloor(V.c.v[0])+","+bmFloor(V.c.v[1])+","+bmFloor(V.c.v[2])+")"),(V.o._mdf||G._opMdf||this._isFirstFrame)&&(K.coOp=V.o.v*G.opacity),(V.w._mdf||this._isFirstFrame)&&(K.wi=V.w.v)},CVShapeElement.prototype.destroy=function(){this.shapesData=null,this.globalData=null,this.canvasContext=null,this.stylesList.length=0,this.itemsData.length=0};function CVTextElement(L,V,G){this.textSpans=[],this.yOffset=0,this.fillColorAnim=!1,this.strokeColorAnim=!1,this.strokeWidthAnim=!1,this.stroke=!1,this.fill=!1,this.justifyOffset=0,this.currentRender=null,this.renderType="canvas",this.values={fill:"rgba(0,0,0,0)",stroke:"rgba(0,0,0,0)",sWidth:0,fValue:""},this.initElement(L,V,G)}extendPrototype([BaseElement,TransformElement,CVBaseElement,HierarchyElement,FrameElement,RenderableElement,ITextElement],CVTextElement),CVTextElement.prototype.tHelper=createTag("canvas").getContext("2d"),CVTextElement.prototype.buildNewText=function(){var L=this.textProperty.currentData;this.renderedLetters=createSizedArray(L.l?L.l.length:0);var V=!1;L.fc?(V=!0,this.values.fill=this.buildColor(L.fc)):this.values.fill="rgba(0,0,0,0)",this.fill=V;var G=!1;L.sc&&(G=!0,this.values.stroke=this.buildColor(L.sc),this.values.sWidth=L.sw);var K=this.globalData.fontManager.getFontByName(L.f),ee,te,re=L.l,ce=this.mHelper;this.stroke=G,this.values.fValue=L.finalSize+"px "+this.globalData.fontManager.getFontByName(L.f).fFamily,te=L.finalText.length;var ue,de,ve,st,Ae,at,ot,rt,ft,Oe,nt=this.data.singleShape,it=L.tr*.001*L.finalSize,lt=0,ct=0,ut=!0,bt=0;for(ee=0;ee<te;ee+=1){ue=this.globalData.fontManager.getCharData(L.finalText[ee],K.fStyle,this.globalData.fontManager.getFontByName(L.f).fFamily),de=ue&&ue.data||{},ce.reset(),nt&&re[ee].n&&(lt=-it,ct+=L.yOffset,ct+=ut?1:0,ut=!1),Ae=de.shapes?de.shapes[0].it:[],ot=Ae.length,ce.scale(L.finalSize/100,L.finalSize/100),nt&&this.applyTextPropertiesToMatrix(L,ce,re[ee].line,lt,ct),ft=createSizedArray(ot-1);var gt=0;for(at=0;at<ot;at+=1)if(Ae[at].ty==="sh"){for(st=Ae[at].ks.k.i.length,rt=Ae[at].ks.k,Oe=[],ve=1;ve<st;ve+=1)ve===1&&Oe.push(ce.applyToX(rt.v[0][0],rt.v[0][1],0),ce.applyToY(rt.v[0][0],rt.v[0][1],0)),Oe.push(ce.applyToX(rt.o[ve-1][0],rt.o[ve-1][1],0),ce.applyToY(rt.o[ve-1][0],rt.o[ve-1][1],0),ce.applyToX(rt.i[ve][0],rt.i[ve][1],0),ce.applyToY(rt.i[ve][0],rt.i[ve][1],0),ce.applyToX(rt.v[ve][0],rt.v[ve][1],0),ce.applyToY(rt.v[ve][0],rt.v[ve][1],0));Oe.push(ce.applyToX(rt.o[ve-1][0],rt.o[ve-1][1],0),ce.applyToY(rt.o[ve-1][0],rt.o[ve-1][1],0),ce.applyToX(rt.i[0][0],rt.i[0][1],0),ce.applyToY(rt.i[0][0],rt.i[0][1],0),ce.applyToX(rt.v[0][0],rt.v[0][1],0),ce.applyToY(rt.v[0][0],rt.v[0][1],0)),ft[gt]=Oe,gt+=1}nt&&(lt+=re[ee].l,lt+=it),this.textSpans[bt]?this.textSpans[bt].elem=ft:this.textSpans[bt]={elem:ft},bt+=1}},CVTextElement.prototype.renderInnerContent=function(){this.validateText();var L=this.canvasContext;L.font=this.values.fValue,this.globalData.renderer.ctxLineCap("butt"),this.globalData.renderer.ctxLineJoin("miter"),this.globalData.renderer.ctxMiterLimit(4),this.data.singleShape||this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag);var V,G,K,ee,te,re,ce=this.textAnimator.renderedLetters,ue=this.textProperty.currentData.l;G=ue.length;var de,ve=null,st=null,Ae=null,at,ot,rt=this.globalData.renderer;for(V=0;V<G;V+=1)if(!ue[V].n){if(de=ce[V],de&&(rt.save(),rt.ctxTransform(de.p),rt.ctxOpacity(de.o)),this.fill){for(de&&de.fc?ve!==de.fc&&(rt.ctxFillStyle(de.fc),ve=de.fc):ve!==this.values.fill&&(ve=this.values.fill,rt.ctxFillStyle(this.values.fill)),at=this.textSpans[V].elem,ee=at.length,this.globalData.canvasContext.beginPath(),K=0;K<ee;K+=1)for(ot=at[K],re=ot.length,this.globalData.canvasContext.moveTo(ot[0],ot[1]),te=2;te<re;te+=6)this.globalData.canvasContext.bezierCurveTo(ot[te],ot[te+1],ot[te+2],ot[te+3],ot[te+4],ot[te+5]);this.globalData.canvasContext.closePath(),rt.ctxFill()}if(this.stroke){for(de&&de.sw?Ae!==de.sw&&(Ae=de.sw,rt.ctxLineWidth(de.sw)):Ae!==this.values.sWidth&&(Ae=this.values.sWidth,rt.ctxLineWidth(this.values.sWidth)),de&&de.sc?st!==de.sc&&(st=de.sc,rt.ctxStrokeStyle(de.sc)):st!==this.values.stroke&&(st=this.values.stroke,rt.ctxStrokeStyle(this.values.stroke)),at=this.textSpans[V].elem,ee=at.length,this.globalData.canvasContext.beginPath(),K=0;K<ee;K+=1)for(ot=at[K],re=ot.length,this.globalData.canvasContext.moveTo(ot[0],ot[1]),te=2;te<re;te+=6)this.globalData.canvasContext.bezierCurveTo(ot[te],ot[te+1],ot[te+2],ot[te+3],ot[te+4],ot[te+5]);this.globalData.canvasContext.closePath(),rt.ctxStroke()}de&&this.globalData.renderer.restore()}};function CVImageElement(L,V,G){this.assetData=V.getAssetData(L.refId),this.img=V.imageLoader.getAsset(this.assetData),this.initElement(L,V,G)}extendPrototype([BaseElement,TransformElement,CVBaseElement,HierarchyElement,FrameElement,RenderableElement],CVImageElement),CVImageElement.prototype.initElement=SVGShapeElement.prototype.initElement,CVImageElement.prototype.prepareFrame=IImageElement.prototype.prepareFrame,CVImageElement.prototype.createContent=function(){if(this.img.width&&(this.assetData.w!==this.img.width||this.assetData.h!==this.img.height)){var L=createTag("canvas");L.width=this.assetData.w,L.height=this.assetData.h;var V=L.getContext("2d"),G=this.img.width,K=this.img.height,ee=G/K,te=this.assetData.w/this.assetData.h,re,ce,ue=this.assetData.pr||this.globalData.renderConfig.imagePreserveAspectRatio;ee>te&&ue==="xMidYMid slice"||ee<te&&ue!=="xMidYMid slice"?(ce=K,re=ce*te):(re=G,ce=re/te),V.drawImage(this.img,(G-re)/2,(K-ce)/2,re,ce,0,0,this.assetData.w,this.assetData.h),this.img=L}},CVImageElement.prototype.renderInnerContent=function(){this.canvasContext.drawImage(this.img,0,0)},CVImageElement.prototype.destroy=function(){this.img=null};function CVSolidElement(L,V,G){this.initElement(L,V,G)}extendPrototype([BaseElement,TransformElement,CVBaseElement,HierarchyElement,FrameElement,RenderableElement],CVSolidElement),CVSolidElement.prototype.initElement=SVGShapeElement.prototype.initElement,CVSolidElement.prototype.prepareFrame=IImageElement.prototype.prepareFrame,CVSolidElement.prototype.renderInnerContent=function(){this.globalData.renderer.ctxFillStyle(this.data.sc),this.globalData.renderer.ctxFillRect(0,0,this.data.sw,this.data.sh)};function CanvasRendererBase(){}extendPrototype([BaseRenderer],CanvasRendererBase),CanvasRendererBase.prototype.createShape=function(L){return new CVShapeElement(L,this.globalData,this)},CanvasRendererBase.prototype.createText=function(L){return new CVTextElement(L,this.globalData,this)},CanvasRendererBase.prototype.createImage=function(L){return new CVImageElement(L,this.globalData,this)},CanvasRendererBase.prototype.createSolid=function(L){return new CVSolidElement(L,this.globalData,this)},CanvasRendererBase.prototype.createNull=SVGRenderer.prototype.createNull,CanvasRendererBase.prototype.ctxTransform=function(L){L[0]===1&&L[1]===0&&L[4]===0&&L[5]===1&&L[12]===0&&L[13]===0||this.canvasContext.transform(L[0],L[1],L[4],L[5],L[12],L[13])},CanvasRendererBase.prototype.ctxOpacity=function(L){this.canvasContext.globalAlpha*=L<0?0:L},CanvasRendererBase.prototype.ctxFillStyle=function(L){this.canvasContext.fillStyle=L},CanvasRendererBase.prototype.ctxStrokeStyle=function(L){this.canvasContext.strokeStyle=L},CanvasRendererBase.prototype.ctxLineWidth=function(L){this.canvasContext.lineWidth=L},CanvasRendererBase.prototype.ctxLineCap=function(L){this.canvasContext.lineCap=L},CanvasRendererBase.prototype.ctxLineJoin=function(L){this.canvasContext.lineJoin=L},CanvasRendererBase.prototype.ctxMiterLimit=function(L){this.canvasContext.miterLimit=L},CanvasRendererBase.prototype.ctxFill=function(L){this.canvasContext.fill(L)},CanvasRendererBase.prototype.ctxFillRect=function(L,V,G,K){this.canvasContext.fillRect(L,V,G,K)},CanvasRendererBase.prototype.ctxStroke=function(){this.canvasContext.stroke()},CanvasRendererBase.prototype.reset=function(){if(!this.renderConfig.clearCanvas){this.canvasContext.restore();return}this.contextData.reset()},CanvasRendererBase.prototype.save=function(){this.canvasContext.save()},CanvasRendererBase.prototype.restore=function(L){if(!this.renderConfig.clearCanvas){this.canvasContext.restore();return}L&&(this.globalData.blendMode="source-over"),this.contextData.restore(L)},CanvasRendererBase.prototype.configAnimation=function(L){if(this.animationItem.wrapper){this.animationItem.container=createTag("canvas");var V=this.animationItem.container.style;V.width="100%",V.height="100%";var G="0px 0px 0px";V.transformOrigin=G,V.mozTransformOrigin=G,V.webkitTransformOrigin=G,V["-webkit-transform"]=G,V.contentVisibility=this.renderConfig.contentVisibility,this.animationItem.wrapper.appendChild(this.animationItem.container),this.canvasContext=this.animationItem.container.getContext("2d"),this.renderConfig.className&&this.animationItem.container.setAttribute("class",this.renderConfig.className),this.renderConfig.id&&this.animationItem.container.setAttribute("id",this.renderConfig.id)}else this.canvasContext=this.renderConfig.context;this.contextData.setContext(this.canvasContext),this.data=L,this.layers=L.layers,this.transformCanvas={w:L.w,h:L.h,sx:0,sy:0,tx:0,ty:0},this.setupGlobalData(L,document.body),this.globalData.canvasContext=this.canvasContext,this.globalData.renderer=this,this.globalData.isDashed=!1,this.globalData.progressiveLoad=this.renderConfig.progressiveLoad,this.globalData.transformCanvas=this.transformCanvas,this.elements=createSizedArray(L.layers.length),this.updateContainerSize()},CanvasRendererBase.prototype.updateContainerSize=function(L,V){this.reset();var G,K;L?(G=L,K=V,this.canvasContext.canvas.width=G,this.canvasContext.canvas.height=K):(this.animationItem.wrapper&&this.animationItem.container?(G=this.animationItem.wrapper.offsetWidth,K=this.animationItem.wrapper.offsetHeight):(G=this.canvasContext.canvas.width,K=this.canvasContext.canvas.height),this.canvasContext.canvas.width=G*this.renderConfig.dpr,this.canvasContext.canvas.height=K*this.renderConfig.dpr);var ee,te;if(this.renderConfig.preserveAspectRatio.indexOf("meet")!==-1||this.renderConfig.preserveAspectRatio.indexOf("slice")!==-1){var re=this.renderConfig.preserveAspectRatio.split(" "),ce=re[1]||"meet",ue=re[0]||"xMidYMid",de=ue.substr(0,4),ve=ue.substr(4);ee=G/K,te=this.transformCanvas.w/this.transformCanvas.h,te>ee&&ce==="meet"||te<ee&&ce==="slice"?(this.transformCanvas.sx=G/(this.transformCanvas.w/this.renderConfig.dpr),this.transformCanvas.sy=G/(this.transformCanvas.w/this.renderConfig.dpr)):(this.transformCanvas.sx=K/(this.transformCanvas.h/this.renderConfig.dpr),this.transformCanvas.sy=K/(this.transformCanvas.h/this.renderConfig.dpr)),de==="xMid"&&(te<ee&&ce==="meet"||te>ee&&ce==="slice")?this.transformCanvas.tx=(G-this.transformCanvas.w*(K/this.transformCanvas.h))/2*this.renderConfig.dpr:de==="xMax"&&(te<ee&&ce==="meet"||te>ee&&ce==="slice")?this.transformCanvas.tx=(G-this.transformCanvas.w*(K/this.transformCanvas.h))*this.renderConfig.dpr:this.transformCanvas.tx=0,ve==="YMid"&&(te>ee&&ce==="meet"||te<ee&&ce==="slice")?this.transformCanvas.ty=(K-this.transformCanvas.h*(G/this.transformCanvas.w))/2*this.renderConfig.dpr:ve==="YMax"&&(te>ee&&ce==="meet"||te<ee&&ce==="slice")?this.transformCanvas.ty=(K-this.transformCanvas.h*(G/this.transformCanvas.w))*this.renderConfig.dpr:this.transformCanvas.ty=0}else this.renderConfig.preserveAspectRatio==="none"?(this.transformCanvas.sx=G/(this.transformCanvas.w/this.renderConfig.dpr),this.transformCanvas.sy=K/(this.transformCanvas.h/this.renderConfig.dpr),this.transformCanvas.tx=0,this.transformCanvas.ty=0):(this.transformCanvas.sx=this.renderConfig.dpr,this.transformCanvas.sy=this.renderConfig.dpr,this.transformCanvas.tx=0,this.transformCanvas.ty=0);this.transformCanvas.props=[this.transformCanvas.sx,0,0,0,0,this.transformCanvas.sy,0,0,0,0,1,0,this.transformCanvas.tx,this.transformCanvas.ty,0,1],this.ctxTransform(this.transformCanvas.props),this.canvasContext.beginPath(),this.canvasContext.rect(0,0,this.transformCanvas.w,this.transformCanvas.h),this.canvasContext.closePath(),this.canvasContext.clip(),this.renderFrame(this.renderedFrame,!0)},CanvasRendererBase.prototype.destroy=function(){this.renderConfig.clearCanvas&&this.animationItem.wrapper&&(this.animationItem.wrapper.innerText="");var L,V=this.layers?this.layers.length:0;for(L=V-1;L>=0;L-=1)this.elements[L]&&this.elements[L].destroy&&this.elements[L].destroy();this.elements.length=0,this.globalData.canvasContext=null,this.animationItem.container=null,this.destroyed=!0},CanvasRendererBase.prototype.renderFrame=function(L,V){if(!(this.renderedFrame===L&&this.renderConfig.clearCanvas===!0&&!V||this.destroyed||L===-1)){this.renderedFrame=L,this.globalData.frameNum=L-this.animationItem._isFirstFrame,this.globalData.frameId+=1,this.globalData._mdf=!this.renderConfig.clearCanvas||V,this.globalData.projectInterface.currentFrame=L;var G,K=this.layers.length;for(this.completeLayers||this.checkLayers(L),G=K-1;G>=0;G-=1)(this.completeLayers||this.elements[G])&&this.elements[G].prepareFrame(L-this.layers[G].st);if(this.globalData._mdf){for(this.renderConfig.clearCanvas===!0?this.canvasContext.clearRect(0,0,this.transformCanvas.w,this.transformCanvas.h):this.save(),G=K-1;G>=0;G-=1)(this.completeLayers||this.elements[G])&&this.elements[G].renderFrame();this.renderConfig.clearCanvas!==!0&&this.restore()}}},CanvasRendererBase.prototype.buildItem=function(L){var V=this.elements;if(!(V[L]||this.layers[L].ty===99)){var G=this.createItem(this.layers[L],this,this.globalData);V[L]=G,G.initExpressions()}},CanvasRendererBase.prototype.checkPendingElements=function(){for(;this.pendingElements.length;){var L=this.pendingElements.pop();L.checkParenting()}},CanvasRendererBase.prototype.hide=function(){this.animationItem.container.style.display="none"},CanvasRendererBase.prototype.show=function(){this.animationItem.container.style.display="block"};function CanvasContext(){this.opacity=-1,this.transform=createTypedArray("float32",16),this.fillStyle="",this.strokeStyle="",this.lineWidth="",this.lineCap="",this.lineJoin="",this.miterLimit="",this.id=Math.random()}function CVContextData(){this.stack=[],this.cArrPos=0,this.cTr=new Matrix;var L,V=15;for(L=0;L<V;L+=1){var G=new CanvasContext;this.stack[L]=G}this._length=V,this.nativeContext=null,this.transformMat=new Matrix,this.currentOpacity=1,this.currentFillStyle="",this.appliedFillStyle="",this.currentStrokeStyle="",this.appliedStrokeStyle="",this.currentLineWidth="",this.appliedLineWidth="",this.currentLineCap="",this.appliedLineCap="",this.currentLineJoin="",this.appliedLineJoin="",this.appliedMiterLimit="",this.currentMiterLimit=""}CVContextData.prototype.duplicate=function(){var L=this._length*2,V=0;for(V=this._length;V<L;V+=1)this.stack[V]=new CanvasContext;this._length=L},CVContextData.prototype.reset=function(){this.cArrPos=0,this.cTr.reset(),this.stack[this.cArrPos].opacity=1},CVContextData.prototype.restore=function(L){this.cArrPos-=1;var V=this.stack[this.cArrPos],G=V.transform,K,ee=this.cTr.props;for(K=0;K<16;K+=1)ee[K]=G[K];if(L){this.nativeContext.restore();var te=this.stack[this.cArrPos+1];this.appliedFillStyle=te.fillStyle,this.appliedStrokeStyle=te.strokeStyle,this.appliedLineWidth=te.lineWidth,this.appliedLineCap=te.lineCap,this.appliedLineJoin=te.lineJoin,this.appliedMiterLimit=te.miterLimit}this.nativeContext.setTransform(G[0],G[1],G[4],G[5],G[12],G[13]),(L||V.opacity!==-1&&this.currentOpacity!==V.opacity)&&(this.nativeContext.globalAlpha=V.opacity,this.currentOpacity=V.opacity),this.currentFillStyle=V.fillStyle,this.currentStrokeStyle=V.strokeStyle,this.currentLineWidth=V.lineWidth,this.currentLineCap=V.lineCap,this.currentLineJoin=V.lineJoin,this.currentMiterLimit=V.miterLimit},CVContextData.prototype.save=function(L){L&&this.nativeContext.save();var V=this.cTr.props;this._length<=this.cArrPos&&this.duplicate();var G=this.stack[this.cArrPos],K;for(K=0;K<16;K+=1)G.transform[K]=V[K];this.cArrPos+=1;var ee=this.stack[this.cArrPos];ee.opacity=G.opacity,ee.fillStyle=G.fillStyle,ee.strokeStyle=G.strokeStyle,ee.lineWidth=G.lineWidth,ee.lineCap=G.lineCap,ee.lineJoin=G.lineJoin,ee.miterLimit=G.miterLimit},CVContextData.prototype.setOpacity=function(L){this.stack[this.cArrPos].opacity=L},CVContextData.prototype.setContext=function(L){this.nativeContext=L},CVContextData.prototype.fillStyle=function(L){this.stack[this.cArrPos].fillStyle!==L&&(this.currentFillStyle=L,this.stack[this.cArrPos].fillStyle=L)},CVContextData.prototype.strokeStyle=function(L){this.stack[this.cArrPos].strokeStyle!==L&&(this.currentStrokeStyle=L,this.stack[this.cArrPos].strokeStyle=L)},CVContextData.prototype.lineWidth=function(L){this.stack[this.cArrPos].lineWidth!==L&&(this.currentLineWidth=L,this.stack[this.cArrPos].lineWidth=L)},CVContextData.prototype.lineCap=function(L){this.stack[this.cArrPos].lineCap!==L&&(this.currentLineCap=L,this.stack[this.cArrPos].lineCap=L)},CVContextData.prototype.lineJoin=function(L){this.stack[this.cArrPos].lineJoin!==L&&(this.currentLineJoin=L,this.stack[this.cArrPos].lineJoin=L)},CVContextData.prototype.miterLimit=function(L){this.stack[this.cArrPos].miterLimit!==L&&(this.currentMiterLimit=L,this.stack[this.cArrPos].miterLimit=L)},CVContextData.prototype.transform=function(L){this.transformMat.cloneFromProps(L);var V=this.cTr;this.transformMat.multiply(V),V.cloneFromProps(this.transformMat.props);var G=V.props;this.nativeContext.setTransform(G[0],G[1],G[4],G[5],G[12],G[13])},CVContextData.prototype.opacity=function(L){var V=this.stack[this.cArrPos].opacity;V*=L<0?0:L,this.stack[this.cArrPos].opacity!==V&&(this.currentOpacity!==L&&(this.nativeContext.globalAlpha=L,this.currentOpacity=L),this.stack[this.cArrPos].opacity=V)},CVContextData.prototype.fill=function(L){this.appliedFillStyle!==this.currentFillStyle&&(this.appliedFillStyle=this.currentFillStyle,this.nativeContext.fillStyle=this.appliedFillStyle),this.nativeContext.fill(L)},CVContextData.prototype.fillRect=function(L,V,G,K){this.appliedFillStyle!==this.currentFillStyle&&(this.appliedFillStyle=this.currentFillStyle,this.nativeContext.fillStyle=this.appliedFillStyle),this.nativeContext.fillRect(L,V,G,K)},CVContextData.prototype.stroke=function(){this.appliedStrokeStyle!==this.currentStrokeStyle&&(this.appliedStrokeStyle=this.currentStrokeStyle,this.nativeContext.strokeStyle=this.appliedStrokeStyle),this.appliedLineWidth!==this.currentLineWidth&&(this.appliedLineWidth=this.currentLineWidth,this.nativeContext.lineWidth=this.appliedLineWidth),this.appliedLineCap!==this.currentLineCap&&(this.appliedLineCap=this.currentLineCap,this.nativeContext.lineCap=this.appliedLineCap),this.appliedLineJoin!==this.currentLineJoin&&(this.appliedLineJoin=this.currentLineJoin,this.nativeContext.lineJoin=this.appliedLineJoin),this.appliedMiterLimit!==this.currentMiterLimit&&(this.appliedMiterLimit=this.currentMiterLimit,this.nativeContext.miterLimit=this.appliedMiterLimit),this.nativeContext.stroke()};function CVCompElement(L,V,G){this.completeLayers=!1,this.layers=L.layers,this.pendingElements=[],this.elements=createSizedArray(this.layers.length),this.initElement(L,V,G),this.tm=L.tm?PropertyFactory.getProp(this,L.tm,0,V.frameRate,this):{_placeholder:!0}}extendPrototype([CanvasRendererBase,ICompElement,CVBaseElement],CVCompElement),CVCompElement.prototype.renderInnerContent=function(){var L=this.canvasContext;L.beginPath(),L.moveTo(0,0),L.lineTo(this.data.w,0),L.lineTo(this.data.w,this.data.h),L.lineTo(0,this.data.h),L.lineTo(0,0),L.clip();var V,G=this.layers.length;for(V=G-1;V>=0;V-=1)(this.completeLayers||this.elements[V])&&this.elements[V].renderFrame()},CVCompElement.prototype.destroy=function(){var L,V=this.layers.length;for(L=V-1;L>=0;L-=1)this.elements[L]&&this.elements[L].destroy();this.layers=null,this.elements=null},CVCompElement.prototype.createComp=function(L){return new CVCompElement(L,this.globalData,this)};function CanvasRenderer(L,V){this.animationItem=L,this.renderConfig={clearCanvas:V&&V.clearCanvas!==void 0?V.clearCanvas:!0,context:V&&V.context||null,progressiveLoad:V&&V.progressiveLoad||!1,preserveAspectRatio:V&&V.preserveAspectRatio||"xMidYMid meet",imagePreserveAspectRatio:V&&V.imagePreserveAspectRatio||"xMidYMid slice",contentVisibility:V&&V.contentVisibility||"visible",className:V&&V.className||"",id:V&&V.id||"",runExpressions:!V||V.runExpressions===void 0||V.runExpressions},this.renderConfig.dpr=V&&V.dpr||1,this.animationItem.wrapper&&(this.renderConfig.dpr=V&&V.dpr||window.devicePixelRatio||1),this.renderedFrame=-1,this.globalData={frameNum:-1,_mdf:!1,renderConfig:this.renderConfig,currentGlobalAlpha:-1},this.contextData=new CVContextData,this.elements=[],this.pendingElements=[],this.transformMat=new Matrix,this.completeLayers=!1,this.rendererType="canvas",this.renderConfig.clearCanvas&&(this.ctxTransform=this.contextData.transform.bind(this.contextData),this.ctxOpacity=this.contextData.opacity.bind(this.contextData),this.ctxFillStyle=this.contextData.fillStyle.bind(this.contextData),this.ctxStrokeStyle=this.contextData.strokeStyle.bind(this.contextData),this.ctxLineWidth=this.contextData.lineWidth.bind(this.contextData),this.ctxLineCap=this.contextData.lineCap.bind(this.contextData),this.ctxLineJoin=this.contextData.lineJoin.bind(this.contextData),this.ctxMiterLimit=this.contextData.miterLimit.bind(this.contextData),this.ctxFill=this.contextData.fill.bind(this.contextData),this.ctxFillRect=this.contextData.fillRect.bind(this.contextData),this.ctxStroke=this.contextData.stroke.bind(this.contextData),this.save=this.contextData.save.bind(this.contextData))}extendPrototype([CanvasRendererBase],CanvasRenderer),CanvasRenderer.prototype.createComp=function(L){return new CVCompElement(L,this.globalData,this)};function HBaseElement(){}HBaseElement.prototype={checkBlendMode:function(){},initRendererElement:function(){this.baseElement=createTag(this.data.tg||"div"),this.data.hasMask?(this.svgElement=createNS("svg"),this.layerElement=createNS("g"),this.maskedElement=this.layerElement,this.svgElement.appendChild(this.layerElement),this.baseElement.appendChild(this.svgElement)):this.layerElement=this.baseElement,styleDiv(this.baseElement)},createContainerElements:function(){this.renderableEffectsManager=new CVEffects(this),this.transformedElement=this.baseElement,this.maskedElement=this.layerElement,this.data.ln&&this.layerElement.setAttribute("id",this.data.ln),this.data.cl&&this.layerElement.setAttribute("class",this.data.cl),this.data.bm!==0&&this.setBlendMode()},renderElement:function(){var V=this.transformedElement?this.transformedElement.style:{};if(this.finalTransform._matMdf){var G=this.finalTransform.mat.toCSS();V.transform=G,V.webkitTransform=G}this.finalTransform._opMdf&&(V.opacity=this.finalTransform.mProp.o.v)},renderFrame:function(){this.data.hd||this.hidden||(this.renderTransform(),this.renderRenderable(),this.renderElement(),this.renderInnerContent(),this._isFirstFrame&&(this._isFirstFrame=!1))},destroy:function(){this.layerElement=null,this.transformedElement=null,this.matteElement&&(this.matteElement=null),this.maskManager&&(this.maskManager.destroy(),this.maskManager=null)},createRenderableComponents:function(){this.maskManager=new MaskElement(this.data,this,this.globalData)},addEffects:function(){},setMatte:function(){}},HBaseElement.prototype.getBaseElement=SVGBaseElement.prototype.getBaseElement,HBaseElement.prototype.destroyBaseElement=HBaseElement.prototype.destroy,HBaseElement.prototype.buildElementParenting=BaseRenderer.prototype.buildElementParenting;function HSolidElement(L,V,G){this.initElement(L,V,G)}extendPrototype([BaseElement,TransformElement,HBaseElement,HierarchyElement,FrameElement,RenderableDOMElement],HSolidElement),HSolidElement.prototype.createContent=function(){var L;this.data.hasMask?(L=createNS("rect"),L.setAttribute("width",this.data.sw),L.setAttribute("height",this.data.sh),L.setAttribute("fill",this.data.sc),this.svgElement.setAttribute("width",this.data.sw),this.svgElement.setAttribute("height",this.data.sh)):(L=createTag("div"),L.style.width=this.data.sw+"px",L.style.height=this.data.sh+"px",L.style.backgroundColor=this.data.sc),this.layerElement.appendChild(L)};function HShapeElement(L,V,G){this.shapes=[],this.shapesData=L.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.animatedContents=[],this.shapesContainer=createNS("g"),this.initElement(L,V,G),this.prevViewData=[],this.currentBBox={x:999999,y:-999999,h:0,w:0}}extendPrototype([BaseElement,TransformElement,HSolidElement,SVGShapeElement,HBaseElement,HierarchyElement,FrameElement,RenderableElement],HShapeElement),HShapeElement.prototype._renderShapeFrame=HShapeElement.prototype.renderInnerContent,HShapeElement.prototype.createContent=function(){var L;if(this.baseElement.style.fontSize=0,this.data.hasMask)this.layerElement.appendChild(this.shapesContainer),L=this.svgElement;else{L=createNS("svg");var V=this.comp.data?this.comp.data:this.globalData.compSize;L.setAttribute("width",V.w),L.setAttribute("height",V.h),L.appendChild(this.shapesContainer),this.layerElement.appendChild(L)}this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.shapesContainer,0,[],!0),this.filterUniqueShapes(),this.shapeCont=L},HShapeElement.prototype.getTransformedPoint=function(L,V){var G,K=L.length;for(G=0;G<K;G+=1)V=L[G].mProps.v.applyToPointArray(V[0],V[1],0);return V},HShapeElement.prototype.calculateShapeBoundingBox=function(L,V){var G=L.sh.v,K=L.transformers,ee,te=G._length,re,ce,ue,de;if(!(te<=1)){for(ee=0;ee<te-1;ee+=1)re=this.getTransformedPoint(K,G.v[ee]),ce=this.getTransformedPoint(K,G.o[ee]),ue=this.getTransformedPoint(K,G.i[ee+1]),de=this.getTransformedPoint(K,G.v[ee+1]),this.checkBounds(re,ce,ue,de,V);G.c&&(re=this.getTransformedPoint(K,G.v[ee]),ce=this.getTransformedPoint(K,G.o[ee]),ue=this.getTransformedPoint(K,G.i[0]),de=this.getTransformedPoint(K,G.v[0]),this.checkBounds(re,ce,ue,de,V))}},HShapeElement.prototype.checkBounds=function(L,V,G,K,ee){this.getBoundsOfCurve(L,V,G,K);var te=this.shapeBoundingBox;ee.x=bmMin(te.left,ee.x),ee.xMax=bmMax(te.right,ee.xMax),ee.y=bmMin(te.top,ee.y),ee.yMax=bmMax(te.bottom,ee.yMax)},HShapeElement.prototype.shapeBoundingBox={left:0,right:0,top:0,bottom:0},HShapeElement.prototype.tempBoundingBox={x:0,xMax:0,y:0,yMax:0,width:0,height:0},HShapeElement.prototype.getBoundsOfCurve=function(L,V,G,K){for(var ee=[[L[0],K[0]],[L[1],K[1]]],te,re,ce,ue,de,ve,st,Ae=0;Ae<2;++Ae)re=6*L[Ae]-12*V[Ae]+6*G[Ae],te=-3*L[Ae]+9*V[Ae]-9*G[Ae]+3*K[Ae],ce=3*V[Ae]-3*L[Ae],re|=0,te|=0,ce|=0,te===0&&re===0||(te===0?(ue=-ce/re,ue>0&&ue<1&&ee[Ae].push(this.calculateF(ue,L,V,G,K,Ae))):(de=re*re-4*ce*te,de>=0&&(ve=(-re+bmSqrt(de))/(2*te),ve>0&&ve<1&&ee[Ae].push(this.calculateF(ve,L,V,G,K,Ae)),st=(-re-bmSqrt(de))/(2*te),st>0&&st<1&&ee[Ae].push(this.calculateF(st,L,V,G,K,Ae)))));this.shapeBoundingBox.left=bmMin.apply(null,ee[0]),this.shapeBoundingBox.top=bmMin.apply(null,ee[1]),this.shapeBoundingBox.right=bmMax.apply(null,ee[0]),this.shapeBoundingBox.bottom=bmMax.apply(null,ee[1])},HShapeElement.prototype.calculateF=function(L,V,G,K,ee,te){return bmPow(1-L,3)*V[te]+3*bmPow(1-L,2)*L*G[te]+3*(1-L)*bmPow(L,2)*K[te]+bmPow(L,3)*ee[te]},HShapeElement.prototype.calculateBoundingBox=function(L,V){var G,K=L.length;for(G=0;G<K;G+=1)L[G]&&L[G].sh?this.calculateShapeBoundingBox(L[G],V):L[G]&&L[G].it?this.calculateBoundingBox(L[G].it,V):L[G]&&L[G].style&&L[G].w&&this.expandStrokeBoundingBox(L[G].w,V)},HShapeElement.prototype.expandStrokeBoundingBox=function(L,V){var G=0;if(L.keyframes){for(var K=0;K<L.keyframes.length;K+=1){var ee=L.keyframes[K].s;ee>G&&(G=ee)}G*=L.mult}else G=L.v*L.mult;V.x-=G,V.xMax+=G,V.y-=G,V.yMax+=G},HShapeElement.prototype.currentBoxContains=function(L){return this.currentBBox.x<=L.x&&this.currentBBox.y<=L.y&&this.currentBBox.width+this.currentBBox.x>=L.x+L.width&&this.currentBBox.height+this.currentBBox.y>=L.y+L.height},HShapeElement.prototype.renderInnerContent=function(){if(this._renderShapeFrame(),!this.hidden&&(this._isFirstFrame||this._mdf)){var L=this.tempBoundingBox,V=999999;if(L.x=V,L.xMax=-V,L.y=V,L.yMax=-V,this.calculateBoundingBox(this.itemsData,L),L.width=L.xMax<L.x?0:L.xMax-L.x,L.height=L.yMax<L.y?0:L.yMax-L.y,this.currentBoxContains(L))return;var G=!1;if(this.currentBBox.w!==L.width&&(this.currentBBox.w=L.width,this.shapeCont.setAttribute("width",L.width),G=!0),this.currentBBox.h!==L.height&&(this.currentBBox.h=L.height,this.shapeCont.setAttribute("height",L.height),G=!0),G||this.currentBBox.x!==L.x||this.currentBBox.y!==L.y){this.currentBBox.w=L.width,this.currentBBox.h=L.height,this.currentBBox.x=L.x,this.currentBBox.y=L.y,this.shapeCont.setAttribute("viewBox",this.currentBBox.x+" "+this.currentBBox.y+" "+this.currentBBox.w+" "+this.currentBBox.h);var K=this.shapeCont.style,ee="translate("+this.currentBBox.x+"px,"+this.currentBBox.y+"px)";K.transform=ee,K.webkitTransform=ee}}};function HTextElement(L,V,G){this.textSpans=[],this.textPaths=[],this.currentBBox={x:999999,y:-999999,h:0,w:0},this.renderType="svg",this.isMasked=!1,this.initElement(L,V,G)}extendPrototype([BaseElement,TransformElement,HBaseElement,HierarchyElement,FrameElement,RenderableDOMElement,ITextElement],HTextElement),HTextElement.prototype.createContent=function(){if(this.isMasked=this.checkMasks(),this.isMasked){this.renderType="svg",this.compW=this.comp.data.w,this.compH=this.comp.data.h,this.svgElement.setAttribute("width",this.compW),this.svgElement.setAttribute("height",this.compH);var L=createNS("g");this.maskedElement.appendChild(L),this.innerElem=L}else this.renderType="html",this.innerElem=this.layerElement;this.checkParenting()},HTextElement.prototype.buildNewText=function(){var L=this.textProperty.currentData;this.renderedLetters=createSizedArray(L.l?L.l.length:0);var V=this.innerElem.style,G=L.fc?this.buildColor(L.fc):"rgba(0,0,0,0)";V.fill=G,V.color=G,L.sc&&(V.stroke=this.buildColor(L.sc),V.strokeWidth=L.sw+"px");var K=this.globalData.fontManager.getFontByName(L.f);if(!this.globalData.fontManager.chars)if(V.fontSize=L.finalSize+"px",V.lineHeight=L.finalSize+"px",K.fClass)this.innerElem.className=K.fClass;else{V.fontFamily=K.fFamily;var ee=L.fWeight,te=L.fStyle;V.fontStyle=te,V.fontWeight=ee}var re,ce,ue=L.l;ce=ue.length;var de,ve,st,Ae=this.mHelper,at,ot="",rt=0;for(re=0;re<ce;re+=1){if(this.globalData.fontManager.chars?(this.textPaths[rt]?de=this.textPaths[rt]:(de=createNS("path"),de.setAttribute("stroke-linecap",lineCapEnum[1]),de.setAttribute("stroke-linejoin",lineJoinEnum[2]),de.setAttribute("stroke-miterlimit","4")),this.isMasked||(this.textSpans[rt]?(ve=this.textSpans[rt],st=ve.children[0]):(ve=createTag("div"),ve.style.lineHeight=0,st=createNS("svg"),st.appendChild(de),styleDiv(ve)))):this.isMasked?de=this.textPaths[rt]?this.textPaths[rt]:createNS("text"):this.textSpans[rt]?(ve=this.textSpans[rt],de=this.textPaths[rt]):(ve=createTag("span"),styleDiv(ve),de=createTag("span"),styleDiv(de),ve.appendChild(de)),this.globalData.fontManager.chars){var ft=this.globalData.fontManager.getCharData(L.finalText[re],K.fStyle,this.globalData.fontManager.getFontByName(L.f).fFamily),Oe;if(ft?Oe=ft.data:Oe=null,Ae.reset(),Oe&&Oe.shapes&&Oe.shapes.length&&(at=Oe.shapes[0].it,Ae.scale(L.finalSize/100,L.finalSize/100),ot=this.createPathShape(Ae,at),de.setAttribute("d",ot)),this.isMasked)this.innerElem.appendChild(de);else{if(this.innerElem.appendChild(ve),Oe&&Oe.shapes){document.body.appendChild(st);var nt=st.getBBox();st.setAttribute("width",nt.width+2),st.setAttribute("height",nt.height+2),st.setAttribute("viewBox",nt.x-1+" "+(nt.y-1)+" "+(nt.width+2)+" "+(nt.height+2));var it=st.style,lt="translate("+(nt.x-1)+"px,"+(nt.y-1)+"px)";it.transform=lt,it.webkitTransform=lt,ue[re].yOffset=nt.y-1}else st.setAttribute("width",1),st.setAttribute("height",1);ve.appendChild(st)}}else if(de.textContent=ue[re].val,de.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),this.isMasked)this.innerElem.appendChild(de);else{this.innerElem.appendChild(ve);var ct=de.style,ut="translate3d(0,"+-L.finalSize/1.2+"px,0)";ct.transform=ut,ct.webkitTransform=ut}this.isMasked?this.textSpans[rt]=de:this.textSpans[rt]=ve,this.textSpans[rt].style.display="block",this.textPaths[rt]=de,rt+=1}for(;rt<this.textSpans.length;)this.textSpans[rt].style.display="none",rt+=1},HTextElement.prototype.renderInnerContent=function(){this.validateText();var L;if(this.data.singleShape){if(!this._isFirstFrame&&!this.lettersChangedFlag)return;if(this.isMasked&&this.finalTransform._matMdf){this.svgElement.setAttribute("viewBox",-this.finalTransform.mProp.p.v[0]+" "+-this.finalTransform.mProp.p.v[1]+" "+this.compW+" "+this.compH),L=this.svgElement.style;var V="translate("+-this.finalTransform.mProp.p.v[0]+"px,"+-this.finalTransform.mProp.p.v[1]+"px)";L.transform=V,L.webkitTransform=V}}if(this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag),!(!this.lettersChangedFlag&&!this.textAnimator.lettersChangedFlag)){var G,K,ee=0,te=this.textAnimator.renderedLetters,re=this.textProperty.currentData.l;K=re.length;var ce,ue,de;for(G=0;G<K;G+=1)re[G].n?ee+=1:(ue=this.textSpans[G],de=this.textPaths[G],ce=te[ee],ee+=1,ce._mdf.m&&(this.isMasked?ue.setAttribute("transform",ce.m):(ue.style.webkitTransform=ce.m,ue.style.transform=ce.m)),ue.style.opacity=ce.o,ce.sw&&ce._mdf.sw&&de.setAttribute("stroke-width",ce.sw),ce.sc&&ce._mdf.sc&&de.setAttribute("stroke",ce.sc),ce.fc&&ce._mdf.fc&&(de.setAttribute("fill",ce.fc),de.style.color=ce.fc));if(this.innerElem.getBBox&&!this.hidden&&(this._isFirstFrame||this._mdf)){var ve=this.innerElem.getBBox();this.currentBBox.w!==ve.width&&(this.currentBBox.w=ve.width,this.svgElement.setAttribute("width",ve.width)),this.currentBBox.h!==ve.height&&(this.currentBBox.h=ve.height,this.svgElement.setAttribute("height",ve.height));var st=1;if(this.currentBBox.w!==ve.width+st*2||this.currentBBox.h!==ve.height+st*2||this.currentBBox.x!==ve.x-st||this.currentBBox.y!==ve.y-st){this.currentBBox.w=ve.width+st*2,this.currentBBox.h=ve.height+st*2,this.currentBBox.x=ve.x-st,this.currentBBox.y=ve.y-st,this.svgElement.setAttribute("viewBox",this.currentBBox.x+" "+this.currentBBox.y+" "+this.currentBBox.w+" "+this.currentBBox.h),L=this.svgElement.style;var Ae="translate("+this.currentBBox.x+"px,"+this.currentBBox.y+"px)";L.transform=Ae,L.webkitTransform=Ae}}}};function HCameraElement(L,V,G){this.initFrame(),this.initBaseData(L,V,G),this.initHierarchy();var K=PropertyFactory.getProp;if(this.pe=K(this,L.pe,0,0,this),L.ks.p.s?(this.px=K(this,L.ks.p.x,1,0,this),this.py=K(this,L.ks.p.y,1,0,this),this.pz=K(this,L.ks.p.z,1,0,this)):this.p=K(this,L.ks.p,1,0,this),L.ks.a&&(this.a=K(this,L.ks.a,1,0,this)),L.ks.or.k.length&&L.ks.or.k[0].to){var ee,te=L.ks.or.k.length;for(ee=0;ee<te;ee+=1)L.ks.or.k[ee].to=null,L.ks.or.k[ee].ti=null}this.or=K(this,L.ks.or,1,degToRads,this),this.or.sh=!0,this.rx=K(this,L.ks.rx,0,degToRads,this),this.ry=K(this,L.ks.ry,0,degToRads,this),this.rz=K(this,L.ks.rz,0,degToRads,this),this.mat=new Matrix,this._prevMat=new Matrix,this._isFirstFrame=!0,this.finalTransform={mProp:this}}extendPrototype([BaseElement,FrameElement,HierarchyElement],HCameraElement),HCameraElement.prototype.setup=function(){var L,V=this.comp.threeDElements.length,G,K,ee;for(L=0;L<V;L+=1)if(G=this.comp.threeDElements[L],G.type==="3d"){K=G.perspectiveElem.style,ee=G.container.style;var te=this.pe.v+"px",re="0px 0px 0px",ce="matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1)";K.perspective=te,K.webkitPerspective=te,ee.transformOrigin=re,ee.mozTransformOrigin=re,ee.webkitTransformOrigin=re,K.transform=ce,K.webkitTransform=ce}},HCameraElement.prototype.createElements=function(){},HCameraElement.prototype.hide=function(){},HCameraElement.prototype.renderFrame=function(){var L=this._isFirstFrame,V,G;if(this.hierarchy)for(G=this.hierarchy.length,V=0;V<G;V+=1)L=this.hierarchy[V].finalTransform.mProp._mdf||L;if(L||this.pe._mdf||this.p&&this.p._mdf||this.px&&(this.px._mdf||this.py._mdf||this.pz._mdf)||this.rx._mdf||this.ry._mdf||this.rz._mdf||this.or._mdf||this.a&&this.a._mdf){if(this.mat.reset(),this.hierarchy)for(G=this.hierarchy.length-1,V=G;V>=0;V-=1){var K=this.hierarchy[V].finalTransform.mProp;this.mat.translate(-K.p.v[0],-K.p.v[1],K.p.v[2]),this.mat.rotateX(-K.or.v[0]).rotateY(-K.or.v[1]).rotateZ(K.or.v[2]),this.mat.rotateX(-K.rx.v).rotateY(-K.ry.v).rotateZ(K.rz.v),this.mat.scale(1/K.s.v[0],1/K.s.v[1],1/K.s.v[2]),this.mat.translate(K.a.v[0],K.a.v[1],K.a.v[2])}if(this.p?this.mat.translate(-this.p.v[0],-this.p.v[1],this.p.v[2]):this.mat.translate(-this.px.v,-this.py.v,this.pz.v),this.a){var ee;this.p?ee=[this.p.v[0]-this.a.v[0],this.p.v[1]-this.a.v[1],this.p.v[2]-this.a.v[2]]:ee=[this.px.v-this.a.v[0],this.py.v-this.a.v[1],this.pz.v-this.a.v[2]];var te=Math.sqrt(Math.pow(ee[0],2)+Math.pow(ee[1],2)+Math.pow(ee[2],2)),re=[ee[0]/te,ee[1]/te,ee[2]/te],ce=Math.sqrt(re[2]*re[2]+re[0]*re[0]),ue=Math.atan2(re[1],ce),de=Math.atan2(re[0],-re[2]);this.mat.rotateY(de).rotateX(-ue)}this.mat.rotateX(-this.rx.v).rotateY(-this.ry.v).rotateZ(this.rz.v),this.mat.rotateX(-this.or.v[0]).rotateY(-this.or.v[1]).rotateZ(this.or.v[2]),this.mat.translate(this.globalData.compSize.w/2,this.globalData.compSize.h/2,0),this.mat.translate(0,0,this.pe.v);var ve=!this._prevMat.equals(this.mat);if((ve||this.pe._mdf)&&this.comp.threeDElements){G=this.comp.threeDElements.length;var st,Ae,at;for(V=0;V<G;V+=1)if(st=this.comp.threeDElements[V],st.type==="3d"){if(ve){var ot=this.mat.toCSS();at=st.container.style,at.transform=ot,at.webkitTransform=ot}this.pe._mdf&&(Ae=st.perspectiveElem.style,Ae.perspective=this.pe.v+"px",Ae.webkitPerspective=this.pe.v+"px")}this.mat.clone(this._prevMat)}}this._isFirstFrame=!1},HCameraElement.prototype.prepareFrame=function(L){this.prepareProperties(L,!0)},HCameraElement.prototype.destroy=function(){},HCameraElement.prototype.getBaseElement=function(){return null};function HImageElement(L,V,G){this.assetData=V.getAssetData(L.refId),this.initElement(L,V,G)}extendPrototype([BaseElement,TransformElement,HBaseElement,HSolidElement,HierarchyElement,FrameElement,RenderableElement],HImageElement),HImageElement.prototype.createContent=function(){var L=this.globalData.getAssetsPath(this.assetData),V=new Image;this.data.hasMask?(this.imageElem=createNS("image"),this.imageElem.setAttribute("width",this.assetData.w+"px"),this.imageElem.setAttribute("height",this.assetData.h+"px"),this.imageElem.setAttributeNS("http://www.w3.org/1999/xlink","href",L),this.layerElement.appendChild(this.imageElem),this.baseElement.setAttribute("width",this.assetData.w),this.baseElement.setAttribute("height",this.assetData.h)):this.layerElement.appendChild(V),V.crossOrigin="anonymous",V.src=L,this.data.ln&&this.baseElement.setAttribute("id",this.data.ln)};function HybridRendererBase(L,V){this.animationItem=L,this.layers=null,this.renderedFrame=-1,this.renderConfig={className:V&&V.className||"",imagePreserveAspectRatio:V&&V.imagePreserveAspectRatio||"xMidYMid slice",hideOnTransparent:!(V&&V.hideOnTransparent===!1),filterSize:{width:V&&V.filterSize&&V.filterSize.width||"400%",height:V&&V.filterSize&&V.filterSize.height||"400%",x:V&&V.filterSize&&V.filterSize.x||"-100%",y:V&&V.filterSize&&V.filterSize.y||"-100%"}},this.globalData={_mdf:!1,frameNum:-1,renderConfig:this.renderConfig},this.pendingElements=[],this.elements=[],this.threeDElements=[],this.destroyed=!1,this.camera=null,this.supports3d=!0,this.rendererType="html"}extendPrototype([BaseRenderer],HybridRendererBase),HybridRendererBase.prototype.buildItem=SVGRenderer.prototype.buildItem,HybridRendererBase.prototype.checkPendingElements=function(){for(;this.pendingElements.length;){var L=this.pendingElements.pop();L.checkParenting()}},HybridRendererBase.prototype.appendElementInPos=function(L,V){var G=L.getBaseElement();if(!!G){var K=this.layers[V];if(!K.ddd||!this.supports3d)if(this.threeDElements)this.addTo3dContainer(G,V);else{for(var ee=0,te,re,ce;ee<V;)this.elements[ee]&&this.elements[ee]!==!0&&this.elements[ee].getBaseElement&&(re=this.elements[ee],ce=this.layers[ee].ddd?this.getThreeDContainerByPos(ee):re.getBaseElement(),te=ce||te),ee+=1;te?(!K.ddd||!this.supports3d)&&this.layerElement.insertBefore(G,te):(!K.ddd||!this.supports3d)&&this.layerElement.appendChild(G)}else this.addTo3dContainer(G,V)}},HybridRendererBase.prototype.createShape=function(L){return this.supports3d?new HShapeElement(L,this.globalData,this):new SVGShapeElement(L,this.globalData,this)},HybridRendererBase.prototype.createText=function(L){return this.supports3d?new HTextElement(L,this.globalData,this):new SVGTextLottieElement(L,this.globalData,this)},HybridRendererBase.prototype.createCamera=function(L){return this.camera=new HCameraElement(L,this.globalData,this),this.camera},HybridRendererBase.prototype.createImage=function(L){return this.supports3d?new HImageElement(L,this.globalData,this):new IImageElement(L,this.globalData,this)},HybridRendererBase.prototype.createSolid=function(L){return this.supports3d?new HSolidElement(L,this.globalData,this):new ISolidElement(L,this.globalData,this)},HybridRendererBase.prototype.createNull=SVGRenderer.prototype.createNull,HybridRendererBase.prototype.getThreeDContainerByPos=function(L){for(var V=0,G=this.threeDElements.length;V<G;){if(this.threeDElements[V].startPos<=L&&this.threeDElements[V].endPos>=L)return this.threeDElements[V].perspectiveElem;V+=1}return null},HybridRendererBase.prototype.createThreeDContainer=function(L,V){var G=createTag("div"),K,ee;styleDiv(G);var te=createTag("div");if(styleDiv(te),V==="3d"){K=G.style,K.width=this.globalData.compSize.w+"px",K.height=this.globalData.compSize.h+"px";var re="50% 50%";K.webkitTransformOrigin=re,K.mozTransformOrigin=re,K.transformOrigin=re,ee=te.style;var ce="matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1)";ee.transform=ce,ee.webkitTransform=ce}G.appendChild(te);var ue={container:te,perspectiveElem:G,startPos:L,endPos:L,type:V};return this.threeDElements.push(ue),ue},HybridRendererBase.prototype.build3dContainers=function(){var L,V=this.layers.length,G,K="";for(L=0;L<V;L+=1)this.layers[L].ddd&&this.layers[L].ty!==3?(K!=="3d"&&(K="3d",G=this.createThreeDContainer(L,"3d")),G.endPos=Math.max(G.endPos,L)):(K!=="2d"&&(K="2d",G=this.createThreeDContainer(L,"2d")),G.endPos=Math.max(G.endPos,L));for(V=this.threeDElements.length,L=V-1;L>=0;L-=1)this.resizerElem.appendChild(this.threeDElements[L].perspectiveElem)},HybridRendererBase.prototype.addTo3dContainer=function(L,V){for(var G=0,K=this.threeDElements.length;G<K;){if(V<=this.threeDElements[G].endPos){for(var ee=this.threeDElements[G].startPos,te;ee<V;)this.elements[ee]&&this.elements[ee].getBaseElement&&(te=this.elements[ee].getBaseElement()),ee+=1;te?this.threeDElements[G].container.insertBefore(L,te):this.threeDElements[G].container.appendChild(L);break}G+=1}},HybridRendererBase.prototype.configAnimation=function(L){var V=createTag("div"),G=this.animationItem.wrapper,K=V.style;K.width=L.w+"px",K.height=L.h+"px",this.resizerElem=V,styleDiv(V),K.transformStyle="flat",K.mozTransformStyle="flat",K.webkitTransformStyle="flat",this.renderConfig.className&&V.setAttribute("class",this.renderConfig.className),G.appendChild(V),K.overflow="hidden";var ee=createNS("svg");ee.setAttribute("width","1"),ee.setAttribute("height","1"),styleDiv(ee),this.resizerElem.appendChild(ee);var te=createNS("defs");ee.appendChild(te),this.data=L,this.setupGlobalData(L,ee),this.globalData.defs=te,this.layers=L.layers,this.layerElement=this.resizerElem,this.build3dContainers(),this.updateContainerSize()},HybridRendererBase.prototype.destroy=function(){this.animationItem.wrapper&&(this.animationItem.wrapper.innerText=""),this.animationItem.container=null,this.globalData.defs=null;var L,V=this.layers?this.layers.length:0;for(L=0;L<V;L+=1)this.elements[L]&&this.elements[L].destroy&&this.elements[L].destroy();this.elements.length=0,this.destroyed=!0,this.animationItem=null},HybridRendererBase.prototype.updateContainerSize=function(){var L=this.animationItem.wrapper.offsetWidth,V=this.animationItem.wrapper.offsetHeight,G=L/V,K=this.globalData.compSize.w/this.globalData.compSize.h,ee,te,re,ce;K>G?(ee=L/this.globalData.compSize.w,te=L/this.globalData.compSize.w,re=0,ce=(V-this.globalData.compSize.h*(L/this.globalData.compSize.w))/2):(ee=V/this.globalData.compSize.h,te=V/this.globalData.compSize.h,re=(L-this.globalData.compSize.w*(V/this.globalData.compSize.h))/2,ce=0);var ue=this.resizerElem.style;ue.webkitTransform="matrix3d("+ee+",0,0,0,0,"+te+",0,0,0,0,1,0,"+re+","+ce+",0,1)",ue.transform=ue.webkitTransform},HybridRendererBase.prototype.renderFrame=SVGRenderer.prototype.renderFrame,HybridRendererBase.prototype.hide=function(){this.resizerElem.style.display="none"},HybridRendererBase.prototype.show=function(){this.resizerElem.style.display="block"},HybridRendererBase.prototype.initItems=function(){if(this.buildAllItems(),this.camera)this.camera.setup();else{var L=this.globalData.compSize.w,V=this.globalData.compSize.h,G,K=this.threeDElements.length;for(G=0;G<K;G+=1){var ee=this.threeDElements[G].perspectiveElem.style;ee.webkitPerspective=Math.sqrt(Math.pow(L,2)+Math.pow(V,2))+"px",ee.perspective=ee.webkitPerspective}}},HybridRendererBase.prototype.searchExtraCompositions=function(L){var V,G=L.length,K=createTag("div");for(V=0;V<G;V+=1)if(L[V].xt){var ee=this.createComp(L[V],K,this.globalData.comp,null);ee.initExpressions(),this.globalData.projectInterface.registerComposition(ee)}};function HCompElement(L,V,G){this.layers=L.layers,this.supports3d=!L.hasMask,this.completeLayers=!1,this.pendingElements=[],this.elements=this.layers?createSizedArray(this.layers.length):[],this.initElement(L,V,G),this.tm=L.tm?PropertyFactory.getProp(this,L.tm,0,V.frameRate,this):{_placeholder:!0}}extendPrototype([HybridRendererBase,ICompElement,HBaseElement],HCompElement),HCompElement.prototype._createBaseContainerElements=HCompElement.prototype.createContainerElements,HCompElement.prototype.createContainerElements=function(){this._createBaseContainerElements(),this.data.hasMask?(this.svgElement.setAttribute("width",this.data.w),this.svgElement.setAttribute("height",this.data.h),this.transformedElement=this.baseElement):this.transformedElement=this.layerElement},HCompElement.prototype.addTo3dContainer=function(L,V){for(var G=0,K;G<V;)this.elements[G]&&this.elements[G].getBaseElement&&(K=this.elements[G].getBaseElement()),G+=1;K?this.layerElement.insertBefore(L,K):this.layerElement.appendChild(L)},HCompElement.prototype.createComp=function(L){return this.supports3d?new HCompElement(L,this.globalData,this):new SVGCompElement(L,this.globalData,this)};function HybridRenderer(L,V){this.animationItem=L,this.layers=null,this.renderedFrame=-1,this.renderConfig={className:V&&V.className||"",imagePreserveAspectRatio:V&&V.imagePreserveAspectRatio||"xMidYMid slice",hideOnTransparent:!(V&&V.hideOnTransparent===!1),filterSize:{width:V&&V.filterSize&&V.filterSize.width||"400%",height:V&&V.filterSize&&V.filterSize.height||"400%",x:V&&V.filterSize&&V.filterSize.x||"-100%",y:V&&V.filterSize&&V.filterSize.y||"-100%"},runExpressions:!V||V.runExpressions===void 0||V.runExpressions},this.globalData={_mdf:!1,frameNum:-1,renderConfig:this.renderConfig},this.pendingElements=[],this.elements=[],this.threeDElements=[],this.destroyed=!1,this.camera=null,this.supports3d=!0,this.rendererType="html"}extendPrototype([HybridRendererBase],HybridRenderer),HybridRenderer.prototype.createComp=function(L){return this.supports3d?new HCompElement(L,this.globalData,this):new SVGCompElement(L,this.globalData,this)};var CompExpressionInterface=function(){return function(L){function V(G){for(var K=0,ee=L.layers.length;K<ee;){if(L.layers[K].nm===G||L.layers[K].ind===G)return L.elements[K].layerInterface;K+=1}return null}return Object.defineProperty(V,"_name",{value:L.data.nm}),V.layer=V,V.pixelAspect=1,V.height=L.data.h||L.globalData.compSize.h,V.width=L.data.w||L.globalData.compSize.w,V.pixelAspect=1,V.frameDuration=1/L.globalData.frameRate,V.displayStartTime=0,V.numLayers=L.layers.length,V}}();function _typeof$2(L){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof$2=function(G){return typeof G}:_typeof$2=function(G){return G&&typeof Symbol=="function"&&G.constructor===Symbol&&G!==Symbol.prototype?"symbol":typeof G},_typeof$2(L)}function seedRandom(L,V){var G=this,K=256,ee=6,te=52,re="random",ce=V.pow(K,ee),ue=V.pow(2,te),de=ue*2,ve=K-1,st;function Ae(it,lt,ct){var ut=[];lt=lt===!0?{entropy:!0}:lt||{};var bt=ft(rt(lt.entropy?[it,nt(L)]:it===null?Oe():it,3),ut),gt=new at(ut),Pt=function(){for(var Ot=gt.g(ee),Ft=ce,jt=0;Ot<ue;)Ot=(Ot+jt)*K,Ft*=K,jt=gt.g(1);for(;Ot>=de;)Ot/=2,Ft/=2,jt>>>=1;return(Ot+jt)/Ft};return Pt.int32=function(){return gt.g(4)|0},Pt.quick=function(){return gt.g(4)/4294967296},Pt.double=Pt,ft(nt(gt.S),L),(lt.pass||ct||function(Nt,Ot,Ft,jt){return jt&&(jt.S&&ot(jt,gt),Nt.state=function(){return ot(gt,{})}),Ft?(V[re]=Nt,Ot):Nt})(Pt,bt,"global"in lt?lt.global:this==V,lt.state)}V["seed"+re]=Ae;function at(it){var lt,ct=it.length,ut=this,bt=0,gt=ut.i=ut.j=0,Pt=ut.S=[];for(ct||(it=[ct++]);bt<K;)Pt[bt]=bt++;for(bt=0;bt<K;bt++)Pt[bt]=Pt[gt=ve&gt+it[bt%ct]+(lt=Pt[bt])],Pt[gt]=lt;ut.g=function(Nt){for(var Ot,Ft=0,jt=ut.i,Bt=ut.j,At=ut.S;Nt--;)Ot=At[jt=ve&jt+1],Ft=Ft*K+At[ve&(At[jt]=At[Bt=ve&Bt+Ot])+(At[Bt]=Ot)];return ut.i=jt,ut.j=Bt,Ft}}function ot(it,lt){return lt.i=it.i,lt.j=it.j,lt.S=it.S.slice(),lt}function rt(it,lt){var ct=[],ut=_typeof$2(it),bt;if(lt&&ut=="object")for(bt in it)try{ct.push(rt(it[bt],lt-1))}catch{}return ct.length?ct:ut=="string"?it:it+"\0"}function ft(it,lt){for(var ct=it+"",ut,bt=0;bt<ct.length;)lt[ve&bt]=ve&(ut^=lt[ve&bt]*19)+ct.charCodeAt(bt++);return nt(lt)}function Oe(){try{var it=new Uint8Array(K);return(G.crypto||G.msCrypto).getRandomValues(it),nt(it)}catch{var lt=G.navigator,ct=lt&&lt.plugins;return[+new Date,G,ct,G.screen,nt(L)]}}function nt(it){return String.fromCharCode.apply(0,it)}ft(V.random(),L)}function initialize$2(L){seedRandom([],L)}var propTypes={SHAPE:"shape"};function _typeof$1(L){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof$1=function(G){return typeof G}:_typeof$1=function(G){return G&&typeof Symbol=="function"&&G.constructor===Symbol&&G!==Symbol.prototype?"symbol":typeof G},_typeof$1(L)}var ExpressionManager=function(){var ob={},Math=BMMath,window=null,document=null,XMLHttpRequest=null,fetch=null,frames=null,_lottieGlobal={};initialize$2(BMMath);function resetFrame(){_lottieGlobal={}}function $bm_isInstanceOfArray(L){return L.constructor===Array||L.constructor===Float32Array}function isNumerable(L,V){return L==="number"||V instanceof Number||L==="boolean"||L==="string"}function $bm_neg(L){var V=_typeof$1(L);if(V==="number"||L instanceof Number||V==="boolean")return-L;if($bm_isInstanceOfArray(L)){var G,K=L.length,ee=[];for(G=0;G<K;G+=1)ee[G]=-L[G];return ee}return L.propType?L.v:-L}var easeInBez=BezierFactory.getBezierEasing(.333,0,.833,.833,"easeIn").get,easeOutBez=BezierFactory.getBezierEasing(.167,.167,.667,1,"easeOut").get,easeInOutBez=BezierFactory.getBezierEasing(.33,0,.667,1,"easeInOut").get;function sum(L,V){var G=_typeof$1(L),K=_typeof$1(V);if(isNumerable(G,L)&&isNumerable(K,V)||G==="string"||K==="string")return L+V;if($bm_isInstanceOfArray(L)&&isNumerable(K,V))return L=L.slice(0),L[0]+=V,L;if(isNumerable(G,L)&&$bm_isInstanceOfArray(V))return V=V.slice(0),V[0]=L+V[0],V;if($bm_isInstanceOfArray(L)&&$bm_isInstanceOfArray(V)){for(var ee=0,te=L.length,re=V.length,ce=[];ee<te||ee<re;)(typeof L[ee]=="number"||L[ee]instanceof Number)&&(typeof V[ee]=="number"||V[ee]instanceof Number)?ce[ee]=L[ee]+V[ee]:ce[ee]=V[ee]===void 0?L[ee]:L[ee]||V[ee],ee+=1;return ce}return 0}var add=sum;function sub(L,V){var G=_typeof$1(L),K=_typeof$1(V);if(isNumerable(G,L)&&isNumerable(K,V))return G==="string"&&(L=parseInt(L,10)),K==="string"&&(V=parseInt(V,10)),L-V;if($bm_isInstanceOfArray(L)&&isNumerable(K,V))return L=L.slice(0),L[0]-=V,L;if(isNumerable(G,L)&&$bm_isInstanceOfArray(V))return V=V.slice(0),V[0]=L-V[0],V;if($bm_isInstanceOfArray(L)&&$bm_isInstanceOfArray(V)){for(var ee=0,te=L.length,re=V.length,ce=[];ee<te||ee<re;)(typeof L[ee]=="number"||L[ee]instanceof Number)&&(typeof V[ee]=="number"||V[ee]instanceof Number)?ce[ee]=L[ee]-V[ee]:ce[ee]=V[ee]===void 0?L[ee]:L[ee]||V[ee],ee+=1;return ce}return 0}function mul(L,V){var G=_typeof$1(L),K=_typeof$1(V),ee;if(isNumerable(G,L)&&isNumerable(K,V))return L*V;var te,re;if($bm_isInstanceOfArray(L)&&isNumerable(K,V)){for(re=L.length,ee=createTypedArray("float32",re),te=0;te<re;te+=1)ee[te]=L[te]*V;return ee}if(isNumerable(G,L)&&$bm_isInstanceOfArray(V)){for(re=V.length,ee=createTypedArray("float32",re),te=0;te<re;te+=1)ee[te]=L*V[te];return ee}return 0}function div(L,V){var G=_typeof$1(L),K=_typeof$1(V),ee;if(isNumerable(G,L)&&isNumerable(K,V))return L/V;var te,re;if($bm_isInstanceOfArray(L)&&isNumerable(K,V)){for(re=L.length,ee=createTypedArray("float32",re),te=0;te<re;te+=1)ee[te]=L[te]/V;return ee}if(isNumerable(G,L)&&$bm_isInstanceOfArray(V)){for(re=V.length,ee=createTypedArray("float32",re),te=0;te<re;te+=1)ee[te]=L/V[te];return ee}return 0}function mod(L,V){return typeof L=="string"&&(L=parseInt(L,10)),typeof V=="string"&&(V=parseInt(V,10)),L%V}var $bm_sum=sum,$bm_sub=sub,$bm_mul=mul,$bm_div=div,$bm_mod=mod;function clamp(L,V,G){if(V>G){var K=G;G=V,V=K}return Math.min(Math.max(L,V),G)}function radiansToDegrees(L){return L/degToRads}var radians_to_degrees=radiansToDegrees;function degreesToRadians(L){return L*degToRads}var degrees_to_radians=radiansToDegrees,helperLengthArray=[0,0,0,0,0,0];function length(L,V){if(typeof L=="number"||L instanceof Number)return V=V||0,Math.abs(L-V);V||(V=helperLengthArray);var G,K=Math.min(L.length,V.length),ee=0;for(G=0;G<K;G+=1)ee+=Math.pow(V[G]-L[G],2);return Math.sqrt(ee)}function normalize(L){return div(L,length(L))}function rgbToHsl(L){var V=L[0],G=L[1],K=L[2],ee=Math.max(V,G,K),te=Math.min(V,G,K),re,ce,ue=(ee+te)/2;if(ee===te)re=0,ce=0;else{var de=ee-te;switch(ce=ue>.5?de/(2-ee-te):de/(ee+te),ee){case V:re=(G-K)/de+(G<K?6:0);break;case G:re=(K-V)/de+2;break;case K:re=(V-G)/de+4;break}re/=6}return[re,ce,ue,L[3]]}function hue2rgb(L,V,G){return G<0&&(G+=1),G>1&&(G-=1),G<1/6?L+(V-L)*6*G:G<1/2?V:G<2/3?L+(V-L)*(2/3-G)*6:L}function hslToRgb(L){var V=L[0],G=L[1],K=L[2],ee,te,re;if(G===0)ee=K,re=K,te=K;else{var ce=K<.5?K*(1+G):K+G-K*G,ue=2*K-ce;ee=hue2rgb(ue,ce,V+1/3),te=hue2rgb(ue,ce,V),re=hue2rgb(ue,ce,V-1/3)}return[ee,te,re,L[3]]}function linear(L,V,G,K,ee){if((K===void 0||ee===void 0)&&(K=V,ee=G,V=0,G=1),G<V){var te=G;G=V,V=te}if(L<=V)return K;if(L>=G)return ee;var re=G===V?0:(L-V)/(G-V);if(!K.length)return K+(ee-K)*re;var ce,ue=K.length,de=createTypedArray("float32",ue);for(ce=0;ce<ue;ce+=1)de[ce]=K[ce]+(ee[ce]-K[ce])*re;return de}function random(L,V){if(V===void 0&&(L===void 0?(L=0,V=1):(V=L,L=void 0)),V.length){var G,K=V.length;L||(L=createTypedArray("float32",K));var ee=createTypedArray("float32",K),te=BMMath.random();for(G=0;G<K;G+=1)ee[G]=L[G]+te*(V[G]-L[G]);return ee}L===void 0&&(L=0);var re=BMMath.random();return L+re*(V-L)}function createPath(L,V,G,K){var ee,te=L.length,re=shapePool.newElement();re.setPathData(!!K,te);var ce=[0,0],ue,de;for(ee=0;ee<te;ee+=1)ue=V&&V[ee]?V[ee]:ce,de=G&&G[ee]?G[ee]:ce,re.setTripleAt(L[ee][0],L[ee][1],de[0]+L[ee][0],de[1]+L[ee][1],ue[0]+L[ee][0],ue[1]+L[ee][1],ee,!0);return re}function initiateExpression(elem,data,property){function noOp(L){return L}if(!elem.globalData.renderConfig.runExpressions)return noOp;var val=data.x,needsVelocity=/velocity(?![\w\d])/.test(val),_needsRandom=val.indexOf("random")!==-1,elemType=elem.data.ty,transform,$bm_transform,content,effect,thisProperty=property;thisProperty.valueAtTime=thisProperty.getValueAtTime,Object.defineProperty(thisProperty,"value",{get:function(){return thisProperty.v}}),elem.comp.frameDuration=1/elem.comp.globalData.frameRate,elem.comp.displayStartTime=0;var inPoint=elem.data.ip/elem.comp.globalData.frameRate,outPoint=elem.data.op/elem.comp.globalData.frameRate,width=elem.data.sw?elem.data.sw:0,height=elem.data.sh?elem.data.sh:0,name=elem.data.nm,loopIn,loop_in,loopOut,loop_out,smooth,toWorld,fromWorld,fromComp,toComp,fromCompToSurface,position,rotation,anchorPoint,scale,thisLayer,thisComp,mask,valueAtTime,velocityAtTime,scoped_bm_rt,expression_function=eval("[function _expression_function(){"+val+";scoped_bm_rt=$bm_rt}]")[0],numKeys=property.kf?data.k.length:0,active=!this.data||this.data.hd!==!0,wiggle=function L(V,G){var K,ee,te=this.pv.length?this.pv.length:1,re=createTypedArray("float32",te);V=5;var ce=Math.floor(time*V);for(K=0,ee=0;K<ce;){for(ee=0;ee<te;ee+=1)re[ee]+=-G+G*2*BMMath.random();K+=1}var ue=time*V,de=ue-Math.floor(ue),ve=createTypedArray("float32",te);if(te>1){for(ee=0;ee<te;ee+=1)ve[ee]=this.pv[ee]+re[ee]+(-G+G*2*BMMath.random())*de;return ve}return this.pv+re[0]+(-G+G*2*BMMath.random())*de}.bind(this);thisProperty.loopIn&&(loopIn=thisProperty.loopIn.bind(thisProperty),loop_in=loopIn),thisProperty.loopOut&&(loopOut=thisProperty.loopOut.bind(thisProperty),loop_out=loopOut),thisProperty.smooth&&(smooth=thisProperty.smooth.bind(thisProperty));function loopInDuration(L,V){return loopIn(L,V,!0)}function loopOutDuration(L,V){return loopOut(L,V,!0)}this.getValueAtTime&&(valueAtTime=this.getValueAtTime.bind(this)),this.getVelocityAtTime&&(velocityAtTime=this.getVelocityAtTime.bind(this));var comp=elem.comp.globalData.projectInterface.bind(elem.comp.globalData.projectInterface);function lookAt(L,V){var G=[V[0]-L[0],V[1]-L[1],V[2]-L[2]],K=Math.atan2(G[0],Math.sqrt(G[1]*G[1]+G[2]*G[2]))/degToRads,ee=-Math.atan2(G[1],G[2])/degToRads;return[ee,K,0]}function easeOut(L,V,G,K,ee){return applyEase(easeOutBez,L,V,G,K,ee)}function easeIn(L,V,G,K,ee){return applyEase(easeInBez,L,V,G,K,ee)}function ease(L,V,G,K,ee){return applyEase(easeInOutBez,L,V,G,K,ee)}function applyEase(L,V,G,K,ee,te){ee===void 0?(ee=G,te=K):V=(V-G)/(K-G),V>1?V=1:V<0&&(V=0);var re=L(V);if($bm_isInstanceOfArray(ee)){var ce,ue=ee.length,de=createTypedArray("float32",ue);for(ce=0;ce<ue;ce+=1)de[ce]=(te[ce]-ee[ce])*re+ee[ce];return de}return(te-ee)*re+ee}function nearestKey(L){var V,G=data.k.length,K,ee;if(!data.k.length||typeof data.k[0]=="number")K=0,ee=0;else if(K=-1,L*=elem.comp.globalData.frameRate,L<data.k[0].t)K=1,ee=data.k[0].t;else{for(V=0;V<G-1;V+=1)if(L===data.k[V].t){K=V+1,ee=data.k[V].t;break}else if(L>data.k[V].t&&L<data.k[V+1].t){L-data.k[V].t>data.k[V+1].t-L?(K=V+2,ee=data.k[V+1].t):(K=V+1,ee=data.k[V].t);break}K===-1&&(K=V+1,ee=data.k[V].t)}var te={};return te.index=K,te.time=ee/elem.comp.globalData.frameRate,te}function key(L){var V,G,K;if(!data.k.length||typeof data.k[0]=="number")throw new Error("The property has no keyframe at index "+L);L-=1,V={time:data.k[L].t/elem.comp.globalData.frameRate,value:[]};var ee=Object.prototype.hasOwnProperty.call(data.k[L],"s")?data.k[L].s:data.k[L-1].e;for(K=ee.length,G=0;G<K;G+=1)V[G]=ee[G],V.value[G]=ee[G];return V}function framesToTime(L,V){return V||(V=elem.comp.globalData.frameRate),L/V}function timeToFrames(L,V){return!L&&L!==0&&(L=time),V||(V=elem.comp.globalData.frameRate),L*V}function seedRandom(L){BMMath.seedrandom(randSeed+L)}function sourceRectAtTime(){return elem.sourceRectAtTime()}function substring(L,V){return typeof value=="string"?V===void 0?value.substring(L):value.substring(L,V):""}function substr(L,V){return typeof value=="string"?V===void 0?value.substr(L):value.substr(L,V):""}function posterizeTime(L){time=L===0?0:Math.floor(time*L)/L,value=valueAtTime(time)}var time,velocity,value,text,textIndex,textTotal,selectorValue,index=elem.data.ind,hasParent=!!(elem.hierarchy&&elem.hierarchy.length),parent,randSeed=Math.floor(Math.random()*1e6),globalData=elem.globalData;function executeExpression(L){return value=L,this.frameExpressionId===elem.globalData.frameId&&this.propType!=="textSelector"?value:(this.propType==="textSelector"&&(textIndex=this.textIndex,textTotal=this.textTotal,selectorValue=this.selectorValue),thisLayer||(text=elem.layerInterface.text,thisLayer=elem.layerInterface,thisComp=elem.comp.compInterface,toWorld=thisLayer.toWorld.bind(thisLayer),fromWorld=thisLayer.fromWorld.bind(thisLayer),fromComp=thisLayer.fromComp.bind(thisLayer),toComp=thisLayer.toComp.bind(thisLayer),mask=thisLayer.mask?thisLayer.mask.bind(thisLayer):null,fromCompToSurface=fromComp),transform||(transform=elem.layerInterface("ADBE Transform Group"),$bm_transform=transform,transform&&(anchorPoint=transform.anchorPoint)),elemType===4&&!content&&(content=thisLayer("ADBE Root Vectors Group")),effect||(effect=thisLayer(4)),hasParent=!!(elem.hierarchy&&elem.hierarchy.length),hasParent&&!parent&&(parent=elem.hierarchy[0].layerInterface),time=this.comp.renderedFrame/this.comp.globalData.frameRate,_needsRandom&&seedRandom(randSeed+time),needsVelocity&&(velocity=velocityAtTime(time)),expression_function(),this.frameExpressionId=elem.globalData.frameId,scoped_bm_rt=scoped_bm_rt.propType===propTypes.SHAPE?scoped_bm_rt.v:scoped_bm_rt,scoped_bm_rt)}return executeExpression.__preventDeadCodeRemoval=[$bm_transform,anchorPoint,time,velocity,inPoint,outPoint,width,height,name,loop_in,loop_out,smooth,toComp,fromCompToSurface,toWorld,fromWorld,mask,position,rotation,scale,thisComp,numKeys,active,wiggle,loopInDuration,loopOutDuration,comp,lookAt,easeOut,easeIn,ease,nearestKey,key,text,textIndex,textTotal,selectorValue,framesToTime,timeToFrames,sourceRectAtTime,substring,substr,posterizeTime,index,globalData],executeExpression}return ob.initiateExpression=initiateExpression,ob.__preventDeadCodeRemoval=[window,document,XMLHttpRequest,fetch,frames,$bm_neg,add,$bm_sum,$bm_sub,$bm_mul,$bm_div,$bm_mod,clamp,radians_to_degrees,degreesToRadians,degrees_to_radians,normalize,rgbToHsl,hslToRgb,linear,random,createPath,_lottieGlobal],ob.resetFrame=resetFrame,ob}(),Expressions=function(){var L={};L.initExpressions=V,L.resetFrame=ExpressionManager.resetFrame;function V(G){var K=0,ee=[];function te(){K+=1}function re(){K-=1,K===0&&ue()}function ce(de){ee.indexOf(de)===-1&&ee.push(de)}function ue(){var de,ve=ee.length;for(de=0;de<ve;de+=1)ee[de].release();ee.length=0}G.renderer.compInterface=CompExpressionInterface(G.renderer),G.renderer.globalData.projectInterface.registerComposition(G.renderer),G.renderer.globalData.pushExpression=te,G.renderer.globalData.popExpression=re,G.renderer.globalData.registerExpressionProperty=ce}return L}(),MaskManagerInterface=function(){function L(G,K){this._mask=G,this._data=K}Object.defineProperty(L.prototype,"maskPath",{get:function(){return this._mask.prop.k&&this._mask.prop.getValue(),this._mask.prop}}),Object.defineProperty(L.prototype,"maskOpacity",{get:function(){return this._mask.op.k&&this._mask.op.getValue(),this._mask.op.v*100}});var V=function(K){var ee=createSizedArray(K.viewData.length),te,re=K.viewData.length;for(te=0;te<re;te+=1)ee[te]=new L(K.viewData[te],K.masksProperties[te]);var ce=function(de){for(te=0;te<re;){if(K.masksProperties[te].nm===de)return ee[te];te+=1}return null};return ce};return V}(),ExpressionPropertyInterface=function(){var L={pv:0,v:0,mult:1},V={pv:[0,0,0],v:[0,0,0],mult:1};function G(re,ce,ue){Object.defineProperty(re,"velocity",{get:function(){return ce.getVelocityAtTime(ce.comp.currentFrame)}}),re.numKeys=ce.keyframes?ce.keyframes.length:0,re.key=function(de){if(!re.numKeys)return 0;var ve="";"s"in ce.keyframes[de-1]?ve=ce.keyframes[de-1].s:"e"in ce.keyframes[de-2]?ve=ce.keyframes[de-2].e:ve=ce.keyframes[de-2].s;var st=ue==="unidimensional"?new Number(ve):Object.assign({},ve);return st.time=ce.keyframes[de-1].t/ce.elem.comp.globalData.frameRate,st.value=ue==="unidimensional"?ve[0]:ve,st},re.valueAtTime=ce.getValueAtTime,re.speedAtTime=ce.getSpeedAtTime,re.velocityAtTime=ce.getVelocityAtTime,re.propertyGroup=ce.propertyGroup}function K(re){(!re||!("pv"in re))&&(re=L);var ce=1/re.mult,ue=re.pv*ce,de=new Number(ue);return de.value=ue,G(de,re,"unidimensional"),function(){return re.k&&re.getValue(),ue=re.v*ce,de.value!==ue&&(de=new Number(ue),de.value=ue,G(de,re,"unidimensional")),de}}function ee(re){(!re||!("pv"in re))&&(re=V);var ce=1/re.mult,ue=re.data&&re.data.l||re.pv.length,de=createTypedArray("float32",ue),ve=createTypedArray("float32",ue);return de.value=ve,G(de,re,"multidimensional"),function(){re.k&&re.getValue();for(var st=0;st<ue;st+=1)ve[st]=re.v[st]*ce,de[st]=ve[st];return de}}function te(){return L}return function(re){return re?re.propType==="unidimensional"?K(re):ee(re):te}}(),TransformExpressionInterface=function(){return function(L){function V(re){switch(re){case"scale":case"Scale":case"ADBE Scale":case 6:return V.scale;case"rotation":case"Rotation":case"ADBE Rotation":case"ADBE Rotate Z":case 10:return V.rotation;case"ADBE Rotate X":return V.xRotation;case"ADBE Rotate Y":return V.yRotation;case"position":case"Position":case"ADBE Position":case 2:return V.position;case"ADBE Position_0":return V.xPosition;case"ADBE Position_1":return V.yPosition;case"ADBE Position_2":return V.zPosition;case"anchorPoint":case"AnchorPoint":case"Anchor Point":case"ADBE AnchorPoint":case 1:return V.anchorPoint;case"opacity":case"Opacity":case 11:return V.opacity;default:return null}}Object.defineProperty(V,"rotation",{get:ExpressionPropertyInterface(L.r||L.rz)}),Object.defineProperty(V,"zRotation",{get:ExpressionPropertyInterface(L.rz||L.r)}),Object.defineProperty(V,"xRotation",{get:ExpressionPropertyInterface(L.rx)}),Object.defineProperty(V,"yRotation",{get:ExpressionPropertyInterface(L.ry)}),Object.defineProperty(V,"scale",{get:ExpressionPropertyInterface(L.s)});var G,K,ee,te;return L.p?te=ExpressionPropertyInterface(L.p):(G=ExpressionPropertyInterface(L.px),K=ExpressionPropertyInterface(L.py),L.pz&&(ee=ExpressionPropertyInterface(L.pz))),Object.defineProperty(V,"position",{get:function(){return L.p?te():[G(),K(),ee?ee():0]}}),Object.defineProperty(V,"xPosition",{get:ExpressionPropertyInterface(L.px)}),Object.defineProperty(V,"yPosition",{get:ExpressionPropertyInterface(L.py)}),Object.defineProperty(V,"zPosition",{get:ExpressionPropertyInterface(L.pz)}),Object.defineProperty(V,"anchorPoint",{get:ExpressionPropertyInterface(L.a)}),Object.defineProperty(V,"opacity",{get:ExpressionPropertyInterface(L.o)}),Object.defineProperty(V,"skew",{get:ExpressionPropertyInterface(L.sk)}),Object.defineProperty(V,"skewAxis",{get:ExpressionPropertyInterface(L.sa)}),Object.defineProperty(V,"orientation",{get:ExpressionPropertyInterface(L.or)}),V}}(),LayerExpressionInterface=function(){function L(de){var ve=new Matrix;if(de!==void 0){var st=this._elem.finalTransform.mProp.getValueAtTime(de);st.clone(ve)}else{var Ae=this._elem.finalTransform.mProp;Ae.applyToMatrix(ve)}return ve}function V(de,ve){var st=this.getMatrix(ve);return st.props[12]=0,st.props[13]=0,st.props[14]=0,this.applyPoint(st,de)}function G(de,ve){var st=this.getMatrix(ve);return this.applyPoint(st,de)}function K(de,ve){var st=this.getMatrix(ve);return st.props[12]=0,st.props[13]=0,st.props[14]=0,this.invertPoint(st,de)}function ee(de,ve){var st=this.getMatrix(ve);return this.invertPoint(st,de)}function te(de,ve){if(this._elem.hierarchy&&this._elem.hierarchy.length){var st,Ae=this._elem.hierarchy.length;for(st=0;st<Ae;st+=1)this._elem.hierarchy[st].finalTransform.mProp.applyToMatrix(de)}return de.applyToPointArray(ve[0],ve[1],ve[2]||0)}function re(de,ve){if(this._elem.hierarchy&&this._elem.hierarchy.length){var st,Ae=this._elem.hierarchy.length;for(st=0;st<Ae;st+=1)this._elem.hierarchy[st].finalTransform.mProp.applyToMatrix(de)}return de.inversePoint(ve)}function ce(de){var ve=new Matrix;if(ve.reset(),this._elem.finalTransform.mProp.applyToMatrix(ve),this._elem.hierarchy&&this._elem.hierarchy.length){var st,Ae=this._elem.hierarchy.length;for(st=0;st<Ae;st+=1)this._elem.hierarchy[st].finalTransform.mProp.applyToMatrix(ve);return ve.inversePoint(de)}return ve.inversePoint(de)}function ue(){return[1,1,1,1]}return function(de){var ve;function st(rt){at.mask=new MaskManagerInterface(rt,de)}function Ae(rt){at.effect=rt}function at(rt){switch(rt){case"ADBE Root Vectors Group":case"Contents":case 2:return at.shapeInterface;case 1:case 6:case"Transform":case"transform":case"ADBE Transform Group":return ve;case 4:case"ADBE Effect Parade":case"effects":case"Effects":return at.effect;case"ADBE Text Properties":return at.textInterface;default:return null}}at.getMatrix=L,at.invertPoint=re,at.applyPoint=te,at.toWorld=G,at.toWorldVec=V,at.fromWorld=ee,at.fromWorldVec=K,at.toComp=G,at.fromComp=ce,at.sampleImage=ue,at.sourceRectAtTime=de.sourceRectAtTime.bind(de),at._elem=de,ve=TransformExpressionInterface(de.finalTransform.mProp);var ot=getDescriptor(ve,"anchorPoint");return Object.defineProperties(at,{hasParent:{get:function(){return de.hierarchy.length}},parent:{get:function(){return de.hierarchy[0].layerInterface}},rotation:getDescriptor(ve,"rotation"),scale:getDescriptor(ve,"scale"),position:getDescriptor(ve,"position"),opacity:getDescriptor(ve,"opacity"),anchorPoint:ot,anchor_point:ot,transform:{get:function(){return ve}},active:{get:function(){return de.isInRange}}}),at.startTime=de.data.st,at.index=de.data.ind,at.source=de.data.refId,at.height=de.data.ty===0?de.data.h:100,at.width=de.data.ty===0?de.data.w:100,at.inPoint=de.data.ip/de.comp.globalData.frameRate,at.outPoint=de.data.op/de.comp.globalData.frameRate,at._name=de.data.nm,at.registerMaskInterface=st,at.registerEffectsInterface=Ae,at}}(),propertyGroupFactory=function(){return function(L,V){return function(G){return G=G===void 0?1:G,G<=0?L:V(G-1)}}}(),PropertyInterface=function(){return function(L,V){var G={_name:L};function K(ee){return ee=ee===void 0?1:ee,ee<=0?G:V(ee-1)}return K}}(),EffectsExpressionInterface=function(){var L={createEffectsInterface:V};function V(ee,te){if(ee.effectsManager){var re=[],ce=ee.data.ef,ue,de=ee.effectsManager.effectElements.length;for(ue=0;ue<de;ue+=1)re.push(G(ce[ue],ee.effectsManager.effectElements[ue],te,ee));var ve=ee.data.ef||[],st=function(at){for(ue=0,de=ve.length;ue<de;){if(at===ve[ue].nm||at===ve[ue].mn||at===ve[ue].ix)return re[ue];ue+=1}return null};return Object.defineProperty(st,"numProperties",{get:function(){return ve.length}}),st}return null}function G(ee,te,re,ce){function ue(at){for(var ot=ee.ef,rt=0,ft=ot.length;rt<ft;){if(at===ot[rt].nm||at===ot[rt].mn||at===ot[rt].ix)return ot[rt].ty===5?ve[rt]:ve[rt]();rt+=1}throw new Error}var de=propertyGroupFactory(ue,re),ve=[],st,Ae=ee.ef.length;for(st=0;st<Ae;st+=1)ee.ef[st].ty===5?ve.push(G(ee.ef[st],te.effectElements[st],te.effectElements[st].propertyGroup,ce)):ve.push(K(te.effectElements[st],ee.ef[st].ty,ce,de));return ee.mn==="ADBE Color Control"&&Object.defineProperty(ue,"color",{get:function(){return ve[0]()}}),Object.defineProperties(ue,{numProperties:{get:function(){return ee.np}},_name:{value:ee.nm},propertyGroup:{value:de}}),ue.enabled=ee.en!==0,ue.active=ue.enabled,ue}function K(ee,te,re,ce){var ue=ExpressionPropertyInterface(ee.p);function de(){return te===10?re.comp.compInterface(ee.p.v):ue()}return ee.p.setGroupProperty&&ee.p.setGroupProperty(PropertyInterface("",ce)),de}return L}(),ShapePathInterface=function(){return function(V,G,K){var ee=G.sh;function te(ce){return ce==="Shape"||ce==="shape"||ce==="Path"||ce==="path"||ce==="ADBE Vector Shape"||ce===2?te.path:null}var re=propertyGroupFactory(te,K);return ee.setGroupProperty(PropertyInterface("Path",re)),Object.defineProperties(te,{path:{get:function(){return ee.k&&ee.getValue(),ee}},shape:{get:function(){return ee.k&&ee.getValue(),ee}},_name:{value:V.nm},ix:{value:V.ix},propertyIndex:{value:V.ix},mn:{value:V.mn},propertyGroup:{value:K}}),te}}(),ShapeExpressionInterface=function(){function L(ot,rt,ft){var Oe=[],nt,it=ot?ot.length:0;for(nt=0;nt<it;nt+=1)ot[nt].ty==="gr"?Oe.push(G(ot[nt],rt[nt],ft)):ot[nt].ty==="fl"?Oe.push(K(ot[nt],rt[nt],ft)):ot[nt].ty==="st"?Oe.push(re(ot[nt],rt[nt],ft)):ot[nt].ty==="tm"?Oe.push(ce(ot[nt],rt[nt],ft)):ot[nt].ty==="tr"||(ot[nt].ty==="el"?Oe.push(de(ot[nt],rt[nt],ft)):ot[nt].ty==="sr"?Oe.push(ve(ot[nt],rt[nt],ft)):ot[nt].ty==="sh"?Oe.push(ShapePathInterface(ot[nt],rt[nt],ft)):ot[nt].ty==="rc"?Oe.push(st(ot[nt],rt[nt],ft)):ot[nt].ty==="rd"?Oe.push(Ae(ot[nt],rt[nt],ft)):ot[nt].ty==="rp"?Oe.push(at(ot[nt],rt[nt],ft)):ot[nt].ty==="gf"?Oe.push(ee(ot[nt],rt[nt],ft)):Oe.push(te(ot[nt],rt[nt])));return Oe}function V(ot,rt,ft){var Oe,nt=function(ct){for(var ut=0,bt=Oe.length;ut<bt;){if(Oe[ut]._name===ct||Oe[ut].mn===ct||Oe[ut].propertyIndex===ct||Oe[ut].ix===ct||Oe[ut].ind===ct)return Oe[ut];ut+=1}return typeof ct=="number"?Oe[ct-1]:null};nt.propertyGroup=propertyGroupFactory(nt,ft),Oe=L(ot.it,rt.it,nt.propertyGroup),nt.numProperties=Oe.length;var it=ue(ot.it[ot.it.length-1],rt.it[rt.it.length-1],nt.propertyGroup);return nt.transform=it,nt.propertyIndex=ot.cix,nt._name=ot.nm,nt}function G(ot,rt,ft){var Oe=function(ct){switch(ct){case"ADBE Vectors Group":case"Contents":case 2:return Oe.content;default:return Oe.transform}};Oe.propertyGroup=propertyGroupFactory(Oe,ft);var nt=V(ot,rt,Oe.propertyGroup),it=ue(ot.it[ot.it.length-1],rt.it[rt.it.length-1],Oe.propertyGroup);return Oe.content=nt,Oe.transform=it,Object.defineProperty(Oe,"_name",{get:function(){return ot.nm}}),Oe.numProperties=ot.np,Oe.propertyIndex=ot.ix,Oe.nm=ot.nm,Oe.mn=ot.mn,Oe}function K(ot,rt,ft){function Oe(nt){return nt==="Color"||nt==="color"?Oe.color:nt==="Opacity"||nt==="opacity"?Oe.opacity:null}return Object.defineProperties(Oe,{color:{get:ExpressionPropertyInterface(rt.c)},opacity:{get:ExpressionPropertyInterface(rt.o)},_name:{value:ot.nm},mn:{value:ot.mn}}),rt.c.setGroupProperty(PropertyInterface("Color",ft)),rt.o.setGroupProperty(PropertyInterface("Opacity",ft)),Oe}function ee(ot,rt,ft){function Oe(nt){return nt==="Start Point"||nt==="start point"?Oe.startPoint:nt==="End Point"||nt==="end point"?Oe.endPoint:nt==="Opacity"||nt==="opacity"?Oe.opacity:null}return Object.defineProperties(Oe,{startPoint:{get:ExpressionPropertyInterface(rt.s)},endPoint:{get:ExpressionPropertyInterface(rt.e)},opacity:{get:ExpressionPropertyInterface(rt.o)},type:{get:function(){return"a"}},_name:{value:ot.nm},mn:{value:ot.mn}}),rt.s.setGroupProperty(PropertyInterface("Start Point",ft)),rt.e.setGroupProperty(PropertyInterface("End Point",ft)),rt.o.setGroupProperty(PropertyInterface("Opacity",ft)),Oe}function te(){function ot(){return null}return ot}function re(ot,rt,ft){var Oe=propertyGroupFactory(bt,ft),nt=propertyGroupFactory(ut,Oe);function it(gt){Object.defineProperty(ut,ot.d[gt].nm,{get:ExpressionPropertyInterface(rt.d.dataProps[gt].p)})}var lt,ct=ot.d?ot.d.length:0,ut={};for(lt=0;lt<ct;lt+=1)it(lt),rt.d.dataProps[lt].p.setGroupProperty(nt);function bt(gt){return gt==="Color"||gt==="color"?bt.color:gt==="Opacity"||gt==="opacity"?bt.opacity:gt==="Stroke Width"||gt==="stroke width"?bt.strokeWidth:null}return Object.defineProperties(bt,{color:{get:ExpressionPropertyInterface(rt.c)},opacity:{get:ExpressionPropertyInterface(rt.o)},strokeWidth:{get:ExpressionPropertyInterface(rt.w)},dash:{get:function(){return ut}},_name:{value:ot.nm},mn:{value:ot.mn}}),rt.c.setGroupProperty(PropertyInterface("Color",Oe)),rt.o.setGroupProperty(PropertyInterface("Opacity",Oe)),rt.w.setGroupProperty(PropertyInterface("Stroke Width",Oe)),bt}function ce(ot,rt,ft){function Oe(it){return it===ot.e.ix||it==="End"||it==="end"?Oe.end:it===ot.s.ix?Oe.start:it===ot.o.ix?Oe.offset:null}var nt=propertyGroupFactory(Oe,ft);return Oe.propertyIndex=ot.ix,rt.s.setGroupProperty(PropertyInterface("Start",nt)),rt.e.setGroupProperty(PropertyInterface("End",nt)),rt.o.setGroupProperty(PropertyInterface("Offset",nt)),Oe.propertyIndex=ot.ix,Oe.propertyGroup=ft,Object.defineProperties(Oe,{start:{get:ExpressionPropertyInterface(rt.s)},end:{get:ExpressionPropertyInterface(rt.e)},offset:{get:ExpressionPropertyInterface(rt.o)},_name:{value:ot.nm}}),Oe.mn=ot.mn,Oe}function ue(ot,rt,ft){function Oe(it){return ot.a.ix===it||it==="Anchor Point"?Oe.anchorPoint:ot.o.ix===it||it==="Opacity"?Oe.opacity:ot.p.ix===it||it==="Position"?Oe.position:ot.r.ix===it||it==="Rotation"||it==="ADBE Vector Rotation"?Oe.rotation:ot.s.ix===it||it==="Scale"?Oe.scale:ot.sk&&ot.sk.ix===it||it==="Skew"?Oe.skew:ot.sa&&ot.sa.ix===it||it==="Skew Axis"?Oe.skewAxis:null}var nt=propertyGroupFactory(Oe,ft);return rt.transform.mProps.o.setGroupProperty(PropertyInterface("Opacity",nt)),rt.transform.mProps.p.setGroupProperty(PropertyInterface("Position",nt)),rt.transform.mProps.a.setGroupProperty(PropertyInterface("Anchor Point",nt)),rt.transform.mProps.s.setGroupProperty(PropertyInterface("Scale",nt)),rt.transform.mProps.r.setGroupProperty(PropertyInterface("Rotation",nt)),rt.transform.mProps.sk&&(rt.transform.mProps.sk.setGroupProperty(PropertyInterface("Skew",nt)),rt.transform.mProps.sa.setGroupProperty(PropertyInterface("Skew Angle",nt))),rt.transform.op.setGroupProperty(PropertyInterface("Opacity",nt)),Object.defineProperties(Oe,{opacity:{get:ExpressionPropertyInterface(rt.transform.mProps.o)},position:{get:ExpressionPropertyInterface(rt.transform.mProps.p)},anchorPoint:{get:ExpressionPropertyInterface(rt.transform.mProps.a)},scale:{get:ExpressionPropertyInterface(rt.transform.mProps.s)},rotation:{get:ExpressionPropertyInterface(rt.transform.mProps.r)},skew:{get:ExpressionPropertyInterface(rt.transform.mProps.sk)},skewAxis:{get:ExpressionPropertyInterface(rt.transform.mProps.sa)},_name:{value:ot.nm}}),Oe.ty="tr",Oe.mn=ot.mn,Oe.propertyGroup=ft,Oe}function de(ot,rt,ft){function Oe(lt){return ot.p.ix===lt?Oe.position:ot.s.ix===lt?Oe.size:null}var nt=propertyGroupFactory(Oe,ft);Oe.propertyIndex=ot.ix;var it=rt.sh.ty==="tm"?rt.sh.prop:rt.sh;return it.s.setGroupProperty(PropertyInterface("Size",nt)),it.p.setGroupProperty(PropertyInterface("Position",nt)),Object.defineProperties(Oe,{size:{get:ExpressionPropertyInterface(it.s)},position:{get:ExpressionPropertyInterface(it.p)},_name:{value:ot.nm}}),Oe.mn=ot.mn,Oe}function ve(ot,rt,ft){function Oe(lt){return ot.p.ix===lt?Oe.position:ot.r.ix===lt?Oe.rotation:ot.pt.ix===lt?Oe.points:ot.or.ix===lt||lt==="ADBE Vector Star Outer Radius"?Oe.outerRadius:ot.os.ix===lt?Oe.outerRoundness:ot.ir&&(ot.ir.ix===lt||lt==="ADBE Vector Star Inner Radius")?Oe.innerRadius:ot.is&&ot.is.ix===lt?Oe.innerRoundness:null}var nt=propertyGroupFactory(Oe,ft),it=rt.sh.ty==="tm"?rt.sh.prop:rt.sh;return Oe.propertyIndex=ot.ix,it.or.setGroupProperty(PropertyInterface("Outer Radius",nt)),it.os.setGroupProperty(PropertyInterface("Outer Roundness",nt)),it.pt.setGroupProperty(PropertyInterface("Points",nt)),it.p.setGroupProperty(PropertyInterface("Position",nt)),it.r.setGroupProperty(PropertyInterface("Rotation",nt)),ot.ir&&(it.ir.setGroupProperty(PropertyInterface("Inner Radius",nt)),it.is.setGroupProperty(PropertyInterface("Inner Roundness",nt))),Object.defineProperties(Oe,{position:{get:ExpressionPropertyInterface(it.p)},rotation:{get:ExpressionPropertyInterface(it.r)},points:{get:ExpressionPropertyInterface(it.pt)},outerRadius:{get:ExpressionPropertyInterface(it.or)},outerRoundness:{get:ExpressionPropertyInterface(it.os)},innerRadius:{get:ExpressionPropertyInterface(it.ir)},innerRoundness:{get:ExpressionPropertyInterface(it.is)},_name:{value:ot.nm}}),Oe.mn=ot.mn,Oe}function st(ot,rt,ft){function Oe(lt){return ot.p.ix===lt?Oe.position:ot.r.ix===lt?Oe.roundness:ot.s.ix===lt||lt==="Size"||lt==="ADBE Vector Rect Size"?Oe.size:null}var nt=propertyGroupFactory(Oe,ft),it=rt.sh.ty==="tm"?rt.sh.prop:rt.sh;return Oe.propertyIndex=ot.ix,it.p.setGroupProperty(PropertyInterface("Position",nt)),it.s.setGroupProperty(PropertyInterface("Size",nt)),it.r.setGroupProperty(PropertyInterface("Rotation",nt)),Object.defineProperties(Oe,{position:{get:ExpressionPropertyInterface(it.p)},roundness:{get:ExpressionPropertyInterface(it.r)},size:{get:ExpressionPropertyInterface(it.s)},_name:{value:ot.nm}}),Oe.mn=ot.mn,Oe}function Ae(ot,rt,ft){function Oe(lt){return ot.r.ix===lt||lt==="Round Corners 1"?Oe.radius:null}var nt=propertyGroupFactory(Oe,ft),it=rt;return Oe.propertyIndex=ot.ix,it.rd.setGroupProperty(PropertyInterface("Radius",nt)),Object.defineProperties(Oe,{radius:{get:ExpressionPropertyInterface(it.rd)},_name:{value:ot.nm}}),Oe.mn=ot.mn,Oe}function at(ot,rt,ft){function Oe(lt){return ot.c.ix===lt||lt==="Copies"?Oe.copies:ot.o.ix===lt||lt==="Offset"?Oe.offset:null}var nt=propertyGroupFactory(Oe,ft),it=rt;return Oe.propertyIndex=ot.ix,it.c.setGroupProperty(PropertyInterface("Copies",nt)),it.o.setGroupProperty(PropertyInterface("Offset",nt)),Object.defineProperties(Oe,{copies:{get:ExpressionPropertyInterface(it.c)},offset:{get:ExpressionPropertyInterface(it.o)},_name:{value:ot.nm}}),Oe.mn=ot.mn,Oe}return function(ot,rt,ft){var Oe;function nt(lt){if(typeof lt=="number")return lt=lt===void 0?1:lt,lt===0?ft:Oe[lt-1];for(var ct=0,ut=Oe.length;ct<ut;){if(Oe[ct]._name===lt)return Oe[ct];ct+=1}return null}function it(){return ft}return nt.propertyGroup=propertyGroupFactory(nt,it),Oe=L(ot,rt,nt.propertyGroup),nt.numProperties=Oe.length,nt._name="Contents",nt}}(),TextExpressionInterface=function(){return function(L){var V;function G(K){switch(K){case"ADBE Text Document":return G.sourceText;default:return null}}return Object.defineProperty(G,"sourceText",{get:function(){L.textProperty.getValue();var ee=L.textProperty.currentData.t;return(!V||ee!==V.value)&&(V=new String(ee),V.value=ee||new String(ee),Object.defineProperty(V,"style",{get:function(){return{fillColor:L.textProperty.currentData.fc}}})),V}}),G}}();function _typeof(L){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof=function(G){return typeof G}:_typeof=function(G){return G&&typeof Symbol=="function"&&G.constructor===Symbol&&G!==Symbol.prototype?"symbol":typeof G},_typeof(L)}var FootageInterface=function(){var L=function(K){var ee="",te=K.getFootageData();function re(){return ee="",te=K.getFootageData(),ce}function ce(ue){if(te[ue])return ee=ue,te=te[ue],_typeof(te)==="object"?ce:te;var de=ue.indexOf(ee);if(de!==-1){var ve=parseInt(ue.substr(de+ee.length),10);return te=te[ve],_typeof(te)==="object"?ce:te}return""}return re},V=function(K){function ee(te){return te==="Outline"?ee.outlineInterface():null}return ee._name="Outline",ee.outlineInterface=L(K),ee};return function(G){function K(ee){return ee==="Data"?K.dataInterface:null}return K._name="Data",K.dataInterface=V(G),K}}(),interfaces={layer:LayerExpressionInterface,effects:EffectsExpressionInterface,comp:CompExpressionInterface,shape:ShapeExpressionInterface,text:TextExpressionInterface,footage:FootageInterface};function getInterface(L){return interfaces[L]||null}var expressionHelpers=function(){function L(re,ce,ue){ce.x&&(ue.k=!0,ue.x=!0,ue.initiateExpression=ExpressionManager.initiateExpression,ue.effectsSequence.push(ue.initiateExpression(re,ce,ue).bind(ue)))}function V(re){return re*=this.elem.globalData.frameRate,re-=this.offsetTime,re!==this._cachingAtTime.lastFrame&&(this._cachingAtTime.lastIndex=this._cachingAtTime.lastFrame<re?this._cachingAtTime.lastIndex:0,this._cachingAtTime.value=this.interpolateValue(re,this._cachingAtTime),this._cachingAtTime.lastFrame=re),this._cachingAtTime.value}function G(re){var ce=-.01,ue=this.getValueAtTime(re),de=this.getValueAtTime(re+ce),ve=0;if(ue.length){var st;for(st=0;st<ue.length;st+=1)ve+=Math.pow(de[st]-ue[st],2);ve=Math.sqrt(ve)*100}else ve=0;return ve}function K(re){if(this.vel!==void 0)return this.vel;var ce=-.001,ue=this.getValueAtTime(re),de=this.getValueAtTime(re+ce),ve;if(ue.length){ve=createTypedArray("float32",ue.length);var st;for(st=0;st<ue.length;st+=1)ve[st]=(de[st]-ue[st])/ce}else ve=(de-ue)/ce;return ve}function ee(){return this.pv}function te(re){this.propertyGroup=re}return{searchExpressions:L,getSpeedAtTime:G,getVelocityAtTime:K,getValueAtTime:V,getStaticValueAtTime:ee,setGroupProperty:te}}();function addPropertyDecorator(){function L(Ae,at,ot){if(!this.k||!this.keyframes)return this.pv;Ae=Ae?Ae.toLowerCase():"";var rt=this.comp.renderedFrame,ft=this.keyframes,Oe=ft[ft.length-1].t;if(rt<=Oe)return this.pv;var nt,it;ot?(at?nt=Math.abs(Oe-this.elem.comp.globalData.frameRate*at):nt=Math.max(0,Oe-this.elem.data.ip),it=Oe-nt):((!at||at>ft.length-1)&&(at=ft.length-1),it=ft[ft.length-1-at].t,nt=Oe-it);var lt,ct,ut;if(Ae==="pingpong"){var bt=Math.floor((rt-it)/nt);if(bt%2!==0)return this.getValueAtTime((nt-(rt-it)%nt+it)/this.comp.globalData.frameRate,0)}else if(Ae==="offset"){var gt=this.getValueAtTime(it/this.comp.globalData.frameRate,0),Pt=this.getValueAtTime(Oe/this.comp.globalData.frameRate,0),Nt=this.getValueAtTime(((rt-it)%nt+it)/this.comp.globalData.frameRate,0),Ot=Math.floor((rt-it)/nt);if(this.pv.length){for(ut=new Array(gt.length),ct=ut.length,lt=0;lt<ct;lt+=1)ut[lt]=(Pt[lt]-gt[lt])*Ot+Nt[lt];return ut}return(Pt-gt)*Ot+Nt}else if(Ae==="continue"){var Ft=this.getValueAtTime(Oe/this.comp.globalData.frameRate,0),jt=this.getValueAtTime((Oe-.001)/this.comp.globalData.frameRate,0);if(this.pv.length){for(ut=new Array(Ft.length),ct=ut.length,lt=0;lt<ct;lt+=1)ut[lt]=Ft[lt]+(Ft[lt]-jt[lt])*((rt-Oe)/this.comp.globalData.frameRate)/5e-4;return ut}return Ft+(Ft-jt)*((rt-Oe)/.001)}return this.getValueAtTime(((rt-it)%nt+it)/this.comp.globalData.frameRate,0)}function V(Ae,at,ot){if(!this.k)return this.pv;Ae=Ae?Ae.toLowerCase():"";var rt=this.comp.renderedFrame,ft=this.keyframes,Oe=ft[0].t;if(rt>=Oe)return this.pv;var nt,it;ot?(at?nt=Math.abs(this.elem.comp.globalData.frameRate*at):nt=Math.max(0,this.elem.data.op-Oe),it=Oe+nt):((!at||at>ft.length-1)&&(at=ft.length-1),it=ft[at].t,nt=it-Oe);var lt,ct,ut;if(Ae==="pingpong"){var bt=Math.floor((Oe-rt)/nt);if(bt%2===0)return this.getValueAtTime(((Oe-rt)%nt+Oe)/this.comp.globalData.frameRate,0)}else if(Ae==="offset"){var gt=this.getValueAtTime(Oe/this.comp.globalData.frameRate,0),Pt=this.getValueAtTime(it/this.comp.globalData.frameRate,0),Nt=this.getValueAtTime((nt-(Oe-rt)%nt+Oe)/this.comp.globalData.frameRate,0),Ot=Math.floor((Oe-rt)/nt)+1;if(this.pv.length){for(ut=new Array(gt.length),ct=ut.length,lt=0;lt<ct;lt+=1)ut[lt]=Nt[lt]-(Pt[lt]-gt[lt])*Ot;return ut}return Nt-(Pt-gt)*Ot}else if(Ae==="continue"){var Ft=this.getValueAtTime(Oe/this.comp.globalData.frameRate,0),jt=this.getValueAtTime((Oe+.001)/this.comp.globalData.frameRate,0);if(this.pv.length){for(ut=new Array(Ft.length),ct=ut.length,lt=0;lt<ct;lt+=1)ut[lt]=Ft[lt]+(Ft[lt]-jt[lt])*(Oe-rt)/.001;return ut}return Ft+(Ft-jt)*(Oe-rt)/.001}return this.getValueAtTime((nt-((Oe-rt)%nt+Oe))/this.comp.globalData.frameRate,0)}function G(Ae,at){if(!this.k)return this.pv;if(Ae=(Ae||.4)*.5,at=Math.floor(at||5),at<=1)return this.pv;var ot=this.comp.renderedFrame/this.comp.globalData.frameRate,rt=ot-Ae,ft=ot+Ae,Oe=at>1?(ft-rt)/(at-1):1,nt=0,it=0,lt;this.pv.length?lt=createTypedArray("float32",this.pv.length):lt=0;for(var ct;nt<at;){if(ct=this.getValueAtTime(rt+nt*Oe),this.pv.length)for(it=0;it<this.pv.length;it+=1)lt[it]+=ct[it];else lt+=ct;nt+=1}if(this.pv.length)for(it=0;it<this.pv.length;it+=1)lt[it]/=at;else lt/=at;return lt}function K(Ae){this._transformCachingAtTime||(this._transformCachingAtTime={v:new Matrix});var at=this._transformCachingAtTime.v;if(at.cloneFromProps(this.pre.props),this.appliedTransformations<1){var ot=this.a.getValueAtTime(Ae);at.translate(-ot[0]*this.a.mult,-ot[1]*this.a.mult,ot[2]*this.a.mult)}if(this.appliedTransformations<2){var rt=this.s.getValueAtTime(Ae);at.scale(rt[0]*this.s.mult,rt[1]*this.s.mult,rt[2]*this.s.mult)}if(this.sk&&this.appliedTransformations<3){var ft=this.sk.getValueAtTime(Ae),Oe=this.sa.getValueAtTime(Ae);at.skewFromAxis(-ft*this.sk.mult,Oe*this.sa.mult)}if(this.r&&this.appliedTransformations<4){var nt=this.r.getValueAtTime(Ae);at.rotate(-nt*this.r.mult)}else if(!this.r&&this.appliedTransformations<4){var it=this.rz.getValueAtTime(Ae),lt=this.ry.getValueAtTime(Ae),ct=this.rx.getValueAtTime(Ae),ut=this.or.getValueAtTime(Ae);at.rotateZ(-it*this.rz.mult).rotateY(lt*this.ry.mult).rotateX(ct*this.rx.mult).rotateZ(-ut[2]*this.or.mult).rotateY(ut[1]*this.or.mult).rotateX(ut[0]*this.or.mult)}if(this.data.p&&this.data.p.s){var bt=this.px.getValueAtTime(Ae),gt=this.py.getValueAtTime(Ae);if(this.data.p.z){var Pt=this.pz.getValueAtTime(Ae);at.translate(bt*this.px.mult,gt*this.py.mult,-Pt*this.pz.mult)}else at.translate(bt*this.px.mult,gt*this.py.mult,0)}else{var Nt=this.p.getValueAtTime(Ae);at.translate(Nt[0]*this.p.mult,Nt[1]*this.p.mult,-Nt[2]*this.p.mult)}return at}function ee(){return this.v.clone(new Matrix)}var te=TransformPropertyFactory.getTransformProperty;TransformPropertyFactory.getTransformProperty=function(Ae,at,ot){var rt=te(Ae,at,ot);return rt.dynamicProperties.length?rt.getValueAtTime=K.bind(rt):rt.getValueAtTime=ee.bind(rt),rt.setGroupProperty=expressionHelpers.setGroupProperty,rt};var re=PropertyFactory.getProp;PropertyFactory.getProp=function(Ae,at,ot,rt,ft){var Oe=re(Ae,at,ot,rt,ft);Oe.kf?Oe.getValueAtTime=expressionHelpers.getValueAtTime.bind(Oe):Oe.getValueAtTime=expressionHelpers.getStaticValueAtTime.bind(Oe),Oe.setGroupProperty=expressionHelpers.setGroupProperty,Oe.loopOut=L,Oe.loopIn=V,Oe.smooth=G,Oe.getVelocityAtTime=expressionHelpers.getVelocityAtTime.bind(Oe),Oe.getSpeedAtTime=expressionHelpers.getSpeedAtTime.bind(Oe),Oe.numKeys=at.a===1?at.k.length:0,Oe.propertyIndex=at.ix;var nt=0;return ot!==0&&(nt=createTypedArray("float32",at.a===1?at.k[0].s.length:at.k.length)),Oe._cachingAtTime={lastFrame:initialDefaultFrame,lastIndex:0,value:nt},expressionHelpers.searchExpressions(Ae,at,Oe),Oe.k&&ft.addDynamicProperty(Oe),Oe};function ce(Ae){return this._cachingAtTime||(this._cachingAtTime={shapeValue:shapePool.clone(this.pv),lastIndex:0,lastTime:initialDefaultFrame}),Ae*=this.elem.globalData.frameRate,Ae-=this.offsetTime,Ae!==this._cachingAtTime.lastTime&&(this._cachingAtTime.lastIndex=this._cachingAtTime.lastTime<Ae?this._caching.lastIndex:0,this._cachingAtTime.lastTime=Ae,this.interpolateShape(Ae,this._cachingAtTime.shapeValue,this._cachingAtTime)),this._cachingAtTime.shapeValue}var ue=ShapePropertyFactory.getConstructorFunction(),de=ShapePropertyFactory.getKeyframedConstructorFunction();function ve(){}ve.prototype={vertices:function(at,ot){this.k&&this.getValue();var rt=this.v;ot!==void 0&&(rt=this.getValueAtTime(ot,0));var ft,Oe=rt._length,nt=rt[at],it=rt.v,lt=createSizedArray(Oe);for(ft=0;ft<Oe;ft+=1)at==="i"||at==="o"?lt[ft]=[nt[ft][0]-it[ft][0],nt[ft][1]-it[ft][1]]:lt[ft]=[nt[ft][0],nt[ft][1]];return lt},points:function(at){return this.vertices("v",at)},inTangents:function(at){return this.vertices("i",at)},outTangents:function(at){return this.vertices("o",at)},isClosed:function(){return this.v.c},pointOnPath:function(at,ot){var rt=this.v;ot!==void 0&&(rt=this.getValueAtTime(ot,0)),this._segmentsLength||(this._segmentsLength=bez.getSegmentsLength(rt));for(var ft=this._segmentsLength,Oe=ft.lengths,nt=ft.totalLength*at,it=0,lt=Oe.length,ct=0,ut;it<lt;){if(ct+Oe[it].addedLength>nt){var bt=it,gt=rt.c&&it===lt-1?0:it+1,Pt=(nt-ct)/Oe[it].addedLength;ut=bez.getPointInSegment(rt.v[bt],rt.v[gt],rt.o[bt],rt.i[gt],Pt,Oe[it]);break}else ct+=Oe[it].addedLength;it+=1}return ut||(ut=rt.c?[rt.v[0][0],rt.v[0][1]]:[rt.v[rt._length-1][0],rt.v[rt._length-1][1]]),ut},vectorOnPath:function(at,ot,rt){at==1?at=this.v.c:at==0&&(at=.999);var ft=this.pointOnPath(at,ot),Oe=this.pointOnPath(at+.001,ot),nt=Oe[0]-ft[0],it=Oe[1]-ft[1],lt=Math.sqrt(Math.pow(nt,2)+Math.pow(it,2));if(lt===0)return[0,0];var ct=rt==="tangent"?[nt/lt,it/lt]:[-it/lt,nt/lt];return ct},tangentOnPath:function(at,ot){return this.vectorOnPath(at,ot,"tangent")},normalOnPath:function(at,ot){return this.vectorOnPath(at,ot,"normal")},setGroupProperty:expressionHelpers.setGroupProperty,getValueAtTime:expressionHelpers.getStaticValueAtTime},extendPrototype([ve],ue),extendPrototype([ve],de),de.prototype.getValueAtTime=ce,de.prototype.initiateExpression=ExpressionManager.initiateExpression;var st=ShapePropertyFactory.getShapeProp;ShapePropertyFactory.getShapeProp=function(Ae,at,ot,rt,ft){var Oe=st(Ae,at,ot,rt,ft);return Oe.propertyIndex=at.ix,Oe.lock=!1,ot===3?expressionHelpers.searchExpressions(Ae,at.pt,Oe):ot===4&&expressionHelpers.searchExpressions(Ae,at.ks,Oe),Oe.k&&Ae.addDynamicProperty(Oe),Oe}}function initialize$1(){addPropertyDecorator()}function addDecorator(){function L(){return this.data.d.x?(this.calculateExpression=ExpressionManager.initiateExpression.bind(this)(this.elem,this.data.d,this),this.addEffect(this.getExpressionValue.bind(this)),!0):null}TextProperty.prototype.getExpressionValue=function(V,G){var K=this.calculateExpression(G);if(V.t!==K){var ee={};return this.copyData(ee,V),ee.t=K.toString(),ee.__complete=!1,ee}return V},TextProperty.prototype.searchProperty=function(){var V=this.searchKeyframes(),G=this.searchExpressions();return this.kf=V||G,this.kf},TextProperty.prototype.searchExpressions=L}function initialize(){addDecorator()}function SVGComposableEffect(){}SVGComposableEffect.prototype={createMergeNode:function L(V,G){var K=createNS("feMerge");K.setAttribute("result",V);var ee,te;for(te=0;te<G.length;te+=1)ee=createNS("feMergeNode"),ee.setAttribute("in",G[te]),K.appendChild(ee),K.appendChild(ee);return K}};var linearFilterValue="0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0";function SVGTintFilter(L,V,G,K,ee){this.filterManager=V;var te=createNS("feColorMatrix");te.setAttribute("type","matrix"),te.setAttribute("color-interpolation-filters","linearRGB"),te.setAttribute("values",linearFilterValue+" 1 0"),this.linearFilter=te,te.setAttribute("result",K+"_tint_1"),L.appendChild(te),te=createNS("feColorMatrix"),te.setAttribute("type","matrix"),te.setAttribute("color-interpolation-filters","sRGB"),te.setAttribute("values","1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"),te.setAttribute("result",K+"_tint_2"),L.appendChild(te),this.matrixFilter=te;var re=this.createMergeNode(K,[ee,K+"_tint_1",K+"_tint_2"]);L.appendChild(re)}extendPrototype([SVGComposableEffect],SVGTintFilter),SVGTintFilter.prototype.renderFrame=function(L){if(L||this.filterManager._mdf){var V=this.filterManager.effectElements[0].p.v,G=this.filterManager.effectElements[1].p.v,K=this.filterManager.effectElements[2].p.v/100;this.linearFilter.setAttribute("values",linearFilterValue+" "+K+" 0"),this.matrixFilter.setAttribute("values",G[0]-V[0]+" 0 0 0 "+V[0]+" "+(G[1]-V[1])+" 0 0 0 "+V[1]+" "+(G[2]-V[2])+" 0 0 0 "+V[2]+" 0 0 0 1 0")}};function SVGFillFilter(L,V,G,K){this.filterManager=V;var ee=createNS("feColorMatrix");ee.setAttribute("type","matrix"),ee.setAttribute("color-interpolation-filters","sRGB"),ee.setAttribute("values","1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"),ee.setAttribute("result",K),L.appendChild(ee),this.matrixFilter=ee}SVGFillFilter.prototype.renderFrame=function(L){if(L||this.filterManager._mdf){var V=this.filterManager.effectElements[2].p.v,G=this.filterManager.effectElements[6].p.v;this.matrixFilter.setAttribute("values","0 0 0 0 "+V[0]+" 0 0 0 0 "+V[1]+" 0 0 0 0 "+V[2]+" 0 0 0 "+G+" 0")}};function SVGStrokeEffect(L,V,G){this.initialized=!1,this.filterManager=V,this.elem=G,this.paths=[]}SVGStrokeEffect.prototype.initialize=function(){var L=this.elem.layerElement.children||this.elem.layerElement.childNodes,V,G,K,ee;for(this.filterManager.effectElements[1].p.v===1?(ee=this.elem.maskManager.masksProperties.length,K=0):(K=this.filterManager.effectElements[0].p.v-1,ee=K+1),G=createNS("g"),G.setAttribute("fill","none"),G.setAttribute("stroke-linecap","round"),G.setAttribute("stroke-dashoffset",1),K;K<ee;K+=1)V=createNS("path"),G.appendChild(V),this.paths.push({p:V,m:K});if(this.filterManager.effectElements[10].p.v===3){var te=createNS("mask"),re=createElementID();te.setAttribute("id",re),te.setAttribute("mask-type","alpha"),te.appendChild(G),this.elem.globalData.defs.appendChild(te);var ce=createNS("g");for(ce.setAttribute("mask","url("+getLocationHref()+"#"+re+")");L[0];)ce.appendChild(L[0]);this.elem.layerElement.appendChild(ce),this.masker=te,G.setAttribute("stroke","#fff")}else if(this.filterManager.effectElements[10].p.v===1||this.filterManager.effectElements[10].p.v===2){if(this.filterManager.effectElements[10].p.v===2)for(L=this.elem.layerElement.children||this.elem.layerElement.childNodes;L.length;)this.elem.layerElement.removeChild(L[0]);this.elem.layerElement.appendChild(G),this.elem.layerElement.removeAttribute("mask"),G.setAttribute("stroke","#fff")}this.initialized=!0,this.pathMasker=G},SVGStrokeEffect.prototype.renderFrame=function(L){this.initialized||this.initialize();var V,G=this.paths.length,K,ee;for(V=0;V<G;V+=1)if(this.paths[V].m!==-1&&(K=this.elem.maskManager.viewData[this.paths[V].m],ee=this.paths[V].p,(L||this.filterManager._mdf||K.prop._mdf)&&ee.setAttribute("d",K.lastPath),L||this.filterManager.effectElements[9].p._mdf||this.filterManager.effectElements[4].p._mdf||this.filterManager.effectElements[7].p._mdf||this.filterManager.effectElements[8].p._mdf||K.prop._mdf)){var te;if(this.filterManager.effectElements[7].p.v!==0||this.filterManager.effectElements[8].p.v!==100){var re=Math.min(this.filterManager.effectElements[7].p.v,this.filterManager.effectElements[8].p.v)*.01,ce=Math.max(this.filterManager.effectElements[7].p.v,this.filterManager.effectElements[8].p.v)*.01,ue=ee.getTotalLength();te="0 0 0 "+ue*re+" ";var de=ue*(ce-re),ve=1+this.filterManager.effectElements[4].p.v*2*this.filterManager.effectElements[9].p.v*.01,st=Math.floor(de/ve),Ae;for(Ae=0;Ae<st;Ae+=1)te+="1 "+this.filterManager.effectElements[4].p.v*2*this.filterManager.effectElements[9].p.v*.01+" ";te+="0 "+ue*10+" 0 0"}else te="1 "+this.filterManager.effectElements[4].p.v*2*this.filterManager.effectElements[9].p.v*.01;ee.setAttribute("stroke-dasharray",te)}if((L||this.filterManager.effectElements[4].p._mdf)&&this.pathMasker.setAttribute("stroke-width",this.filterManager.effectElements[4].p.v*2),(L||this.filterManager.effectElements[6].p._mdf)&&this.pathMasker.setAttribute("opacity",this.filterManager.effectElements[6].p.v),(this.filterManager.effectElements[10].p.v===1||this.filterManager.effectElements[10].p.v===2)&&(L||this.filterManager.effectElements[3].p._mdf)){var at=this.filterManager.effectElements[3].p.v;this.pathMasker.setAttribute("stroke","rgb("+bmFloor(at[0]*255)+","+bmFloor(at[1]*255)+","+bmFloor(at[2]*255)+")")}};function SVGTritoneFilter(L,V,G,K){this.filterManager=V;var ee=createNS("feColorMatrix");ee.setAttribute("type","matrix"),ee.setAttribute("color-interpolation-filters","linearRGB"),ee.setAttribute("values","0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0 1 0"),L.appendChild(ee);var te=createNS("feComponentTransfer");te.setAttribute("color-interpolation-filters","sRGB"),te.setAttribute("result",K),this.matrixFilter=te;var re=createNS("feFuncR");re.setAttribute("type","table"),te.appendChild(re),this.feFuncR=re;var ce=createNS("feFuncG");ce.setAttribute("type","table"),te.appendChild(ce),this.feFuncG=ce;var ue=createNS("feFuncB");ue.setAttribute("type","table"),te.appendChild(ue),this.feFuncB=ue,L.appendChild(te)}SVGTritoneFilter.prototype.renderFrame=function(L){if(L||this.filterManager._mdf){var V=this.filterManager.effectElements[0].p.v,G=this.filterManager.effectElements[1].p.v,K=this.filterManager.effectElements[2].p.v,ee=K[0]+" "+G[0]+" "+V[0],te=K[1]+" "+G[1]+" "+V[1],re=K[2]+" "+G[2]+" "+V[2];this.feFuncR.setAttribute("tableValues",ee),this.feFuncG.setAttribute("tableValues",te),this.feFuncB.setAttribute("tableValues",re)}};function SVGProLevelsFilter(L,V,G,K){this.filterManager=V;var ee=this.filterManager.effectElements,te=createNS("feComponentTransfer");(ee[10].p.k||ee[10].p.v!==0||ee[11].p.k||ee[11].p.v!==1||ee[12].p.k||ee[12].p.v!==1||ee[13].p.k||ee[13].p.v!==0||ee[14].p.k||ee[14].p.v!==1)&&(this.feFuncR=this.createFeFunc("feFuncR",te)),(ee[17].p.k||ee[17].p.v!==0||ee[18].p.k||ee[18].p.v!==1||ee[19].p.k||ee[19].p.v!==1||ee[20].p.k||ee[20].p.v!==0||ee[21].p.k||ee[21].p.v!==1)&&(this.feFuncG=this.createFeFunc("feFuncG",te)),(ee[24].p.k||ee[24].p.v!==0||ee[25].p.k||ee[25].p.v!==1||ee[26].p.k||ee[26].p.v!==1||ee[27].p.k||ee[27].p.v!==0||ee[28].p.k||ee[28].p.v!==1)&&(this.feFuncB=this.createFeFunc("feFuncB",te)),(ee[31].p.k||ee[31].p.v!==0||ee[32].p.k||ee[32].p.v!==1||ee[33].p.k||ee[33].p.v!==1||ee[34].p.k||ee[34].p.v!==0||ee[35].p.k||ee[35].p.v!==1)&&(this.feFuncA=this.createFeFunc("feFuncA",te)),(this.feFuncR||this.feFuncG||this.feFuncB||this.feFuncA)&&(te.setAttribute("color-interpolation-filters","sRGB"),L.appendChild(te)),(ee[3].p.k||ee[3].p.v!==0||ee[4].p.k||ee[4].p.v!==1||ee[5].p.k||ee[5].p.v!==1||ee[6].p.k||ee[6].p.v!==0||ee[7].p.k||ee[7].p.v!==1)&&(te=createNS("feComponentTransfer"),te.setAttribute("color-interpolation-filters","sRGB"),te.setAttribute("result",K),L.appendChild(te),this.feFuncRComposed=this.createFeFunc("feFuncR",te),this.feFuncGComposed=this.createFeFunc("feFuncG",te),this.feFuncBComposed=this.createFeFunc("feFuncB",te))}SVGProLevelsFilter.prototype.createFeFunc=function(L,V){var G=createNS(L);return G.setAttribute("type","table"),V.appendChild(G),G},SVGProLevelsFilter.prototype.getTableValue=function(L,V,G,K,ee){for(var te=0,re=256,ce,ue=Math.min(L,V),de=Math.max(L,V),ve=Array.call(null,{length:re}),st,Ae=0,at=ee-K,ot=V-L;te<=256;)ce=te/256,ce<=ue?st=ot<0?ee:K:ce>=de?st=ot<0?K:ee:st=K+at*Math.pow((ce-L)/ot,1/G),ve[Ae]=st,Ae+=1,te+=256/(re-1);return ve.join(" ")},SVGProLevelsFilter.prototype.renderFrame=function(L){if(L||this.filterManager._mdf){var V,G=this.filterManager.effectElements;this.feFuncRComposed&&(L||G[3].p._mdf||G[4].p._mdf||G[5].p._mdf||G[6].p._mdf||G[7].p._mdf)&&(V=this.getTableValue(G[3].p.v,G[4].p.v,G[5].p.v,G[6].p.v,G[7].p.v),this.feFuncRComposed.setAttribute("tableValues",V),this.feFuncGComposed.setAttribute("tableValues",V),this.feFuncBComposed.setAttribute("tableValues",V)),this.feFuncR&&(L||G[10].p._mdf||G[11].p._mdf||G[12].p._mdf||G[13].p._mdf||G[14].p._mdf)&&(V=this.getTableValue(G[10].p.v,G[11].p.v,G[12].p.v,G[13].p.v,G[14].p.v),this.feFuncR.setAttribute("tableValues",V)),this.feFuncG&&(L||G[17].p._mdf||G[18].p._mdf||G[19].p._mdf||G[20].p._mdf||G[21].p._mdf)&&(V=this.getTableValue(G[17].p.v,G[18].p.v,G[19].p.v,G[20].p.v,G[21].p.v),this.feFuncG.setAttribute("tableValues",V)),this.feFuncB&&(L||G[24].p._mdf||G[25].p._mdf||G[26].p._mdf||G[27].p._mdf||G[28].p._mdf)&&(V=this.getTableValue(G[24].p.v,G[25].p.v,G[26].p.v,G[27].p.v,G[28].p.v),this.feFuncB.setAttribute("tableValues",V)),this.feFuncA&&(L||G[31].p._mdf||G[32].p._mdf||G[33].p._mdf||G[34].p._mdf||G[35].p._mdf)&&(V=this.getTableValue(G[31].p.v,G[32].p.v,G[33].p.v,G[34].p.v,G[35].p.v),this.feFuncA.setAttribute("tableValues",V))}};function SVGDropShadowEffect(L,V,G,K,ee){var te=V.container.globalData.renderConfig.filterSize,re=V.data.fs||te;L.setAttribute("x",re.x||te.x),L.setAttribute("y",re.y||te.y),L.setAttribute("width",re.width||te.width),L.setAttribute("height",re.height||te.height),this.filterManager=V;var ce=createNS("feGaussianBlur");ce.setAttribute("in","SourceAlpha"),ce.setAttribute("result",K+"_drop_shadow_1"),ce.setAttribute("stdDeviation","0"),this.feGaussianBlur=ce,L.appendChild(ce);var ue=createNS("feOffset");ue.setAttribute("dx","25"),ue.setAttribute("dy","0"),ue.setAttribute("in",K+"_drop_shadow_1"),ue.setAttribute("result",K+"_drop_shadow_2"),this.feOffset=ue,L.appendChild(ue);var de=createNS("feFlood");de.setAttribute("flood-color","#00ff00"),de.setAttribute("flood-opacity","1"),de.setAttribute("result",K+"_drop_shadow_3"),this.feFlood=de,L.appendChild(de);var ve=createNS("feComposite");ve.setAttribute("in",K+"_drop_shadow_3"),ve.setAttribute("in2",K+"_drop_shadow_2"),ve.setAttribute("operator","in"),ve.setAttribute("result",K+"_drop_shadow_4"),L.appendChild(ve);var st=this.createMergeNode(K,[K+"_drop_shadow_4",ee]);L.appendChild(st)}extendPrototype([SVGComposableEffect],SVGDropShadowEffect),SVGDropShadowEffect.prototype.renderFrame=function(L){if(L||this.filterManager._mdf){if((L||this.filterManager.effectElements[4].p._mdf)&&this.feGaussianBlur.setAttribute("stdDeviation",this.filterManager.effectElements[4].p.v/4),L||this.filterManager.effectElements[0].p._mdf){var V=this.filterManager.effectElements[0].p.v;this.feFlood.setAttribute("flood-color",rgbToHex(Math.round(V[0]*255),Math.round(V[1]*255),Math.round(V[2]*255)))}if((L||this.filterManager.effectElements[1].p._mdf)&&this.feFlood.setAttribute("flood-opacity",this.filterManager.effectElements[1].p.v/255),L||this.filterManager.effectElements[2].p._mdf||this.filterManager.effectElements[3].p._mdf){var G=this.filterManager.effectElements[3].p.v,K=(this.filterManager.effectElements[2].p.v-90)*degToRads,ee=G*Math.cos(K),te=G*Math.sin(K);this.feOffset.setAttribute("dx",ee),this.feOffset.setAttribute("dy",te)}}};var _svgMatteSymbols=[];function SVGMatte3Effect(L,V,G){this.initialized=!1,this.filterManager=V,this.filterElem=L,this.elem=G,G.matteElement=createNS("g"),G.matteElement.appendChild(G.layerElement),G.matteElement.appendChild(G.transformedElement),G.baseElement=G.matteElement}SVGMatte3Effect.prototype.findSymbol=function(L){for(var V=0,G=_svgMatteSymbols.length;V<G;){if(_svgMatteSymbols[V]===L)return _svgMatteSymbols[V];V+=1}return null},SVGMatte3Effect.prototype.replaceInParent=function(L,V){var G=L.layerElement.parentNode;if(!!G){for(var K=G.children,ee=0,te=K.length;ee<te&&K[ee]!==L.layerElement;)ee+=1;var re;ee<=te-2&&(re=K[ee+1]);var ce=createNS("use");ce.setAttribute("href","#"+V),re?G.insertBefore(ce,re):G.appendChild(ce)}},SVGMatte3Effect.prototype.setElementAsMask=function(L,V){if(!this.findSymbol(V)){var G=createElementID(),K=createNS("mask");K.setAttribute("id",V.layerId),K.setAttribute("mask-type","alpha"),_svgMatteSymbols.push(V);var ee=L.globalData.defs;ee.appendChild(K);var te=createNS("symbol");te.setAttribute("id",G),this.replaceInParent(V,G),te.appendChild(V.layerElement),ee.appendChild(te);var re=createNS("use");re.setAttribute("href","#"+G),K.appendChild(re),V.data.hd=!1,V.show()}L.setMatte(V.layerId)},SVGMatte3Effect.prototype.initialize=function(){for(var L=this.filterManager.effectElements[0].p.v,V=this.elem.comp.elements,G=0,K=V.length;G<K;)V[G]&&V[G].data.ind===L&&this.setElementAsMask(this.elem,V[G]),G+=1;this.initialized=!0},SVGMatte3Effect.prototype.renderFrame=function(){this.initialized||this.initialize()};function SVGGaussianBlurEffect(L,V,G,K){L.setAttribute("x","-100%"),L.setAttribute("y","-100%"),L.setAttribute("width","300%"),L.setAttribute("height","300%"),this.filterManager=V;var ee=createNS("feGaussianBlur");ee.setAttribute("result",K),L.appendChild(ee),this.feGaussianBlur=ee}SVGGaussianBlurEffect.prototype.renderFrame=function(L){if(L||this.filterManager._mdf){var V=.3,G=this.filterManager.effectElements[0].p.v*V,K=this.filterManager.effectElements[1].p.v,ee=K==3?0:G,te=K==2?0:G;this.feGaussianBlur.setAttribute("stdDeviation",ee+" "+te);var re=this.filterManager.effectElements[2].p.v==1?"wrap":"duplicate";this.feGaussianBlur.setAttribute("edgeMode",re)}};function TransformEffect(){}TransformEffect.prototype.init=function(L){this.effectsManager=L,this.type=effectTypes.TRANSFORM_EFFECT,this.matrix=new Matrix,this.opacity=-1,this._mdf=!1,this._opMdf=!1},TransformEffect.prototype.renderFrame=function(L){if(this._opMdf=!1,this._mdf=!1,L||this.effectsManager._mdf){var V=this.effectsManager.effectElements,G=V[0].p.v,K=V[1].p.v,ee=V[2].p.v===1,te=V[3].p.v,re=ee?te:V[4].p.v,ce=V[5].p.v,ue=V[6].p.v,de=V[7].p.v;this.matrix.reset(),this.matrix.translate(-G[0],-G[1],G[2]),this.matrix.scale(re*.01,te*.01,1),this.matrix.rotate(-de*degToRads),this.matrix.skewFromAxis(-ce*degToRads,(ue+90)*degToRads),this.matrix.translate(K[0],K[1],0),this._mdf=!0,this.opacity!==V[8].p.v&&(this.opacity=V[8].p.v,this._opMdf=!0)}};function SVGTransformEffect(L,V){this.init(V)}extendPrototype([TransformEffect],SVGTransformEffect);function CVTransformEffect(L){this.init(L)}return extendPrototype([TransformEffect],CVTransformEffect),registerRenderer("canvas",CanvasRenderer),registerRenderer("html",HybridRenderer),registerRenderer("svg",SVGRenderer),ShapeModifiers.registerModifier("tm",TrimModifier),ShapeModifiers.registerModifier("pb",PuckerAndBloatModifier),ShapeModifiers.registerModifier("rp",RepeaterModifier),ShapeModifiers.registerModifier("rd",RoundCornersModifier),ShapeModifiers.registerModifier("zz",ZigZagModifier),ShapeModifiers.registerModifier("op",OffsetPathModifier),setExpressionsPlugin(Expressions),setExpressionInterfaces(getInterface),initialize$1(),initialize(),registerEffect$1(20,SVGTintFilter,!0),registerEffect$1(21,SVGFillFilter,!0),registerEffect$1(22,SVGStrokeEffect,!1),registerEffect$1(23,SVGTritoneFilter,!0),registerEffect$1(24,SVGProLevelsFilter,!0),registerEffect$1(25,SVGDropShadowEffect,!0),registerEffect$1(28,SVGMatte3Effect,!1),registerEffect$1(29,SVGGaussianBlurEffect,!0),registerEffect$1(35,SVGTransformEffect,!1),registerEffect(35,CVTransformEffect),lottie})})(lottie$1,lottie$1.exports);var lottie=lottie$1.exports,react=function L(V,G){if(V===G)return!0;if(V&&G&&typeof V=="object"&&typeof G=="object"){if(V.constructor!==G.constructor)return!1;var K,ee,te;if(Array.isArray(V)){if(K=V.length,K!=G.length)return!1;for(ee=K;ee--!==0;)if(!L(V[ee],G[ee]))return!1;return!0}if(V instanceof Map&&G instanceof Map){if(V.size!==G.size)return!1;for(ee of V.entries())if(!G.has(ee[0]))return!1;for(ee of V.entries())if(!L(ee[1],G.get(ee[0])))return!1;return!0}if(V instanceof Set&&G instanceof Set){if(V.size!==G.size)return!1;for(ee of V.entries())if(!G.has(ee[0]))return!1;return!0}if(ArrayBuffer.isView(V)&&ArrayBuffer.isView(G)){if(K=V.length,K!=G.length)return!1;for(ee=K;ee--!==0;)if(V[ee]!==G[ee])return!1;return!0}if(V.constructor===RegExp)return V.source===G.source&&V.flags===G.flags;if(V.valueOf!==Object.prototype.valueOf)return V.valueOf()===G.valueOf();if(V.toString!==Object.prototype.toString)return V.toString()===G.toString();if(te=Object.keys(V),K=te.length,K!==Object.keys(G).length)return!1;for(ee=K;ee--!==0;)if(!Object.prototype.hasOwnProperty.call(G,te[ee]))return!1;for(ee=K;ee--!==0;){var re=te[ee];if(!(re==="_owner"&&V.$$typeof)&&!L(V[re],G[re]))return!1}return!0}return V!==V&&G!==G},rfdc_1=rfdc;function copyBuffer(L){return L instanceof Buffer?Buffer.from(L):new L.constructor(L.buffer.slice(),L.byteOffset,L.length)}function rfdc(L){if(L=L||{},L.circles)return rfdcCircles(L);return L.proto?K:G;function V(ee,te){for(var re=Object.keys(ee),ce=new Array(re.length),ue=0;ue<re.length;ue++){var de=re[ue],ve=ee[de];typeof ve!="object"||ve===null?ce[de]=ve:ve instanceof Date?ce[de]=new Date(ve):ArrayBuffer.isView(ve)?ce[de]=copyBuffer(ve):ce[de]=te(ve)}return ce}function G(ee){if(typeof ee!="object"||ee===null)return ee;if(ee instanceof Date)return new Date(ee);if(Array.isArray(ee))return V(ee,G);if(ee instanceof Map)return new Map(V(Array.from(ee),G));if(ee instanceof Set)return new Set(V(Array.from(ee),G));var te={};for(var re in ee)if(Object.hasOwnProperty.call(ee,re)!==!1){var ce=ee[re];typeof ce!="object"||ce===null?te[re]=ce:ce instanceof Date?te[re]=new Date(ce):ce instanceof Map?te[re]=new Map(V(Array.from(ce),G)):ce instanceof Set?te[re]=new Set(V(Array.from(ce),G)):ArrayBuffer.isView(ce)?te[re]=copyBuffer(ce):te[re]=G(ce)}return te}function K(ee){if(typeof ee!="object"||ee===null)return ee;if(ee instanceof Date)return new Date(ee);if(Array.isArray(ee))return V(ee,K);if(ee instanceof Map)return new Map(V(Array.from(ee),K));if(ee instanceof Set)return new Set(V(Array.from(ee),K));var te={};for(var re in ee){var ce=ee[re];typeof ce!="object"||ce===null?te[re]=ce:ce instanceof Date?te[re]=new Date(ce):ce instanceof Map?te[re]=new Map(V(Array.from(ce),K)):ce instanceof Set?te[re]=new Set(V(Array.from(ce),K)):ArrayBuffer.isView(ce)?te[re]=copyBuffer(ce):te[re]=K(ce)}return te}}function rfdcCircles(L){var V=[],G=[];return L.proto?te:ee;function K(re,ce){for(var ue=Object.keys(re),de=new Array(ue.length),ve=0;ve<ue.length;ve++){var st=ue[ve],Ae=re[st];if(typeof Ae!="object"||Ae===null)de[st]=Ae;else if(Ae instanceof Date)de[st]=new Date(Ae);else if(ArrayBuffer.isView(Ae))de[st]=copyBuffer(Ae);else{var at=V.indexOf(Ae);at!==-1?de[st]=G[at]:de[st]=ce(Ae)}}return de}function ee(re){if(typeof re!="object"||re===null)return re;if(re instanceof Date)return new Date(re);if(Array.isArray(re))return K(re,ee);if(re instanceof Map)return new Map(K(Array.from(re),ee));if(re instanceof Set)return new Set(K(Array.from(re),ee));var ce={};V.push(re),G.push(ce);for(var ue in re)if(Object.hasOwnProperty.call(re,ue)!==!1){var de=re[ue];if(typeof de!="object"||de===null)ce[ue]=de;else if(de instanceof Date)ce[ue]=new Date(de);else if(de instanceof Map)ce[ue]=new Map(K(Array.from(de),ee));else if(de instanceof Set)ce[ue]=new Set(K(Array.from(de),ee));else if(ArrayBuffer.isView(de))ce[ue]=copyBuffer(de);else{var ve=V.indexOf(de);ve!==-1?ce[ue]=G[ve]:ce[ue]=ee(de)}}return V.pop(),G.pop(),ce}function te(re){if(typeof re!="object"||re===null)return re;if(re instanceof Date)return new Date(re);if(Array.isArray(re))return K(re,te);if(re instanceof Map)return new Map(K(Array.from(re),te));if(re instanceof Set)return new Set(K(Array.from(re),te));var ce={};V.push(re),G.push(ce);for(var ue in re){var de=re[ue];if(typeof de!="object"||de===null)ce[ue]=de;else if(de instanceof Date)ce[ue]=new Date(de);else if(de instanceof Map)ce[ue]=new Map(K(Array.from(de),te));else if(de instanceof Set)ce[ue]=new Set(K(Array.from(de),te));else if(ArrayBuffer.isView(de))ce[ue]=copyBuffer(de);else{var ve=V.indexOf(de);ve!==-1?ce[ue]=G[ve]:ce[ue]=te(de)}}return V.pop(),G.pop(),ce}}var _default=rfdc_1();function _objectWithoutPropertiesLoose(L,V){if(L==null)return{};var G={},K=Object.keys(L),ee,te;for(te=0;te<K.length;te++)ee=K[te],!(V.indexOf(ee)>=0)&&(G[ee]=L[ee]);return G}function createCommonjsModule(L,V){return V={exports:{}},L(V,V.exports),V.exports}/** @license React v16.13.1
 * react-is.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var b=typeof Symbol=="function"&&Symbol.for,c$1=b?Symbol.for("react.element"):60103,d=b?Symbol.for("react.portal"):60106,e=b?Symbol.for("react.fragment"):60107,f=b?Symbol.for("react.strict_mode"):60108,g=b?Symbol.for("react.profiler"):60114,h$1=b?Symbol.for("react.provider"):60109,k=b?Symbol.for("react.context"):60110,l$1=b?Symbol.for("react.async_mode"):60111,m=b?Symbol.for("react.concurrent_mode"):60111,n$1=b?Symbol.for("react.forward_ref"):60112,p$1=b?Symbol.for("react.suspense"):60113,q=b?Symbol.for("react.suspense_list"):60120,r$1=b?Symbol.for("react.memo"):60115,t=b?Symbol.for("react.lazy"):60116,v$1=b?Symbol.for("react.block"):60121,w$1=b?Symbol.for("react.fundamental"):60117,x=b?Symbol.for("react.responder"):60118,y=b?Symbol.for("react.scope"):60119;function z(L){if(typeof L=="object"&&L!==null){var V=L.$$typeof;switch(V){case c$1:switch(L=L.type,L){case l$1:case m:case e:case g:case f:case p$1:return L;default:switch(L=L&&L.$$typeof,L){case k:case n$1:case t:case r$1:case h$1:return L;default:return V}}case d:return V}}}function A(L){return z(L)===m}var AsyncMode=l$1,ConcurrentMode=m,ContextConsumer=k,ContextProvider=h$1,Element=c$1,ForwardRef=n$1,Fragment=e,Lazy=t,Memo=r$1,Portal=d,Profiler=g,StrictMode=f,Suspense=p$1,isAsyncMode=function(L){return A(L)||z(L)===l$1},isConcurrentMode=A,isContextConsumer=function(L){return z(L)===k},isContextProvider=function(L){return z(L)===h$1},isElement=function(L){return typeof L=="object"&&L!==null&&L.$$typeof===c$1},isForwardRef=function(L){return z(L)===n$1},isFragment=function(L){return z(L)===e},isLazy=function(L){return z(L)===t},isMemo=function(L){return z(L)===r$1},isPortal=function(L){return z(L)===d},isProfiler=function(L){return z(L)===g},isStrictMode=function(L){return z(L)===f},isSuspense=function(L){return z(L)===p$1},isValidElementType=function(L){return typeof L=="string"||typeof L=="function"||L===e||L===m||L===g||L===f||L===p$1||L===q||typeof L=="object"&&L!==null&&(L.$$typeof===t||L.$$typeof===r$1||L.$$typeof===h$1||L.$$typeof===k||L.$$typeof===n$1||L.$$typeof===w$1||L.$$typeof===x||L.$$typeof===y||L.$$typeof===v$1)},typeOf=z,reactIs_production_min={AsyncMode,ConcurrentMode,ContextConsumer,ContextProvider,Element,ForwardRef,Fragment,Lazy,Memo,Portal,Profiler,StrictMode,Suspense,isAsyncMode,isConcurrentMode,isContextConsumer,isContextProvider,isElement,isForwardRef,isFragment,isLazy,isMemo,isPortal,isProfiler,isStrictMode,isSuspense,isValidElementType,typeOf};createCommonjsModule(function(L,V){});createCommonjsModule(function(L){L.exports=reactIs_production_min});/*
object-assign
(c) Sindre Sorhus
@license MIT
*/var getOwnPropertySymbols=Object.getOwnPropertySymbols,hasOwnProperty=Object.prototype.hasOwnProperty,propIsEnumerable=Object.prototype.propertyIsEnumerable;function toObject(L){if(L==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(L)}function shouldUseNative(){try{if(!Object.assign)return!1;var L=new String("abc");if(L[5]="de",Object.getOwnPropertyNames(L)[0]==="5")return!1;for(var V={},G=0;G<10;G++)V["_"+String.fromCharCode(G)]=G;var K=Object.getOwnPropertyNames(V).map(function(te){return V[te]});if(K.join("")!=="0123456789")return!1;var ee={};return"abcdefghijklmnopqrst".split("").forEach(function(te){ee[te]=te}),Object.keys(Object.assign({},ee)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}shouldUseNative();var ReactPropTypesSecret="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",ReactPropTypesSecret_1=ReactPropTypesSecret;Function.call.bind(Object.prototype.hasOwnProperty);function emptyFunction(){}function emptyFunctionWithReset(){}emptyFunctionWithReset.resetWarningCache=emptyFunction;var factoryWithThrowingShims=function(){function L(K,ee,te,re,ce,ue){if(ue!==ReactPropTypesSecret_1){var de=new 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 de.name="Invariant Violation",de}}L.isRequired=L;function V(){return L}var G={array:L,bigint:L,bool:L,func:L,number:L,object:L,string:L,symbol:L,any:L,arrayOf:V,element:L,elementType:L,instanceOf:V,node:L,objectOf:V,oneOf:V,oneOfType:V,shape:V,exact:V,checkPropTypes:emptyFunctionWithReset,resetWarningCache:emptyFunction};return G.PropTypes=G,G},propTypes=createCommonjsModule(function(L){L.exports=factoryWithThrowingShims()}),propTypes$1={animationData:propTypes.object,path:propTypes.string,play:propTypes.bool,goTo:propTypes.number,speed:propTypes.number,direction:propTypes.number,loop:propTypes.oneOfType([propTypes.number,propTypes.bool]),useSubframes:propTypes.bool,segments:propTypes.oneOfType([propTypes.arrayOf(propTypes.number),propTypes.bool]),rendererSettings:propTypes.object,renderer:propTypes.string,audioFactory:propTypes.func,onComplete:propTypes.func,onLoopComplete:propTypes.func,onEnterFrame:propTypes.func,onSegmentStart:propTypes.func},emptyObject={},noOp=function L(){},makeLottiePlayer=function L(V){var G=V.loadAnimation,K=react$1.exports.memo(react$1.exports.forwardRef(function(ee,te){var re=ee.animationData,ce=re===void 0?null:re,ue=ee.path,de=ue===void 0?null:ue,ve=ee.play,st=ve===void 0?null:ve,Ae=ee.speed,at=Ae===void 0?1:Ae,ot=ee.direction,rt=ot===void 0?1:ot,ft=ee.segments,Oe=ft===void 0?null:ft,nt=ee.goTo,it=nt===void 0?null:nt,lt=ee.useSubframes,ct=lt===void 0?!0:lt,ut=ee.renderer,bt=ut===void 0?"svg":ut,gt=ee.loop,Pt=gt===void 0?!0:gt,Nt=ee.rendererSettings,Ot=Nt===void 0?emptyObject:Nt,Ft=ee.audioFactory,jt=Ft===void 0?null:Ft,Bt=ee.onLoad,At=Bt===void 0?noOp:Bt,$t=ee.onComplete,Ct=$t===void 0?noOp:$t,dt=ee.onLoopComplete,mt=dt===void 0?noOp:dt,kt=ee.onEnterFrame,It=kt===void 0?noOp:kt,Kt=ee.onSegmentStart,Yt=Kt===void 0?noOp:Kt,nr=_objectWithoutPropertiesLoose(ee,["animationData","path","play","speed","direction","segments","goTo","useSubframes","renderer","loop","rendererSettings","audioFactory","onLoad","onComplete","onLoopComplete","onEnterFrame","onSegmentStart"]),ur=react$1.exports.useRef(),Vt=react$1.exports.useRef(),lr=react$1.exports.useState(!1),sr=lr[0],pr=lr[1],gr=react$1.exports.useState(Oe),ir=gr[0],Jt=gr[1];react$1.exports.useEffect(function(){react(ir,Oe)||Jt(Oe)},[Oe,ir]);var cr=react$1.exports.useState(Ot),tr=cr[0],xr=cr[1];react$1.exports.useEffect(function(){react(tr,Ot)||xr(Ot)},[Ot,tr]),react$1.exports.useEffect(function(){return function(){return Vt.current.removeEventListener("complete",Ct)}},[Ct]),react$1.exports.useEffect(function(){return function(){return Vt.current.removeEventListener("loopComplete",mt)}},[mt]),react$1.exports.useEffect(function(){return function(){return Vt.current.removeEventListener("enterFrame",It)}},[It]),react$1.exports.useEffect(function(){return function(){return Vt.current.removeEventListener("segmentStart",Yt)}},[Yt]),react$1.exports.useEffect(function(){return function(){return Vt.current.removeEventListener("DOMLoaded",At)}},[At]);var Sr=react$1.exports.useCallback(function(wr){Vt.current=wr,te&&(te.current=wr)},[]);react$1.exports.useEffect(function(){function wr(){return ce==null||typeof ce!="object"?ce:typeof ce.default=="object"?_default(ce.default):_default(ce)}var Lt=G({animationData:wr(),path:de,container:ur.current,renderer:bt,loop:!1,autoplay:!1,rendererSettings:tr,audioFactory:jt});Sr(Lt);var Gt=function(){return pr(!0)};return Vt.current.addEventListener("DOMLoaded",Gt),function(){Vt.current.removeEventListener("DOMLoaded",Gt),pr(!1),Vt.current.destroy(),Sr(void 0)}},[Pt,bt,tr,ce,de,jt,Sr]),react$1.exports.useEffect(function(){Vt.current.addEventListener("DOMLoaded",At)},[At]),react$1.exports.useEffect(function(){Vt.current.addEventListener("complete",Ct)},[Ct]),react$1.exports.useEffect(function(){Vt.current.addEventListener("loopComplete",mt)},[mt]),react$1.exports.useEffect(function(){Vt.current.addEventListener("enterFrame",It)},[It]),react$1.exports.useEffect(function(){Vt.current.addEventListener("segmentStart",Yt)},[Yt]),react$1.exports.useEffect(function(){!sr||(Vt.current.loop=Pt)},[sr,Pt]);var Cr=react$1.exports.useRef(!1);return react$1.exports.useEffect(function(){if(!sr)return;function wr(ar){Vt.current.goToAndPlay(ar,!0),Vt.current.setDirection(rt)}if(st===!0){var Lt=!0;if(ir){if(Vt.current.playSegments(ir,Lt),Cr.current=!0,rt===-1){var Gt=ir[1];wr(Gt)}}else if(Cr.current&&Vt.current.resetSegments(Lt),Cr.current=!1,rt===-1){var Xt=Vt.current.getDuration(!0);wr(Xt)}else Vt.current.play()}else st===!1&&Vt.current.pause()},[st,ir,sr,rt]),react$1.exports.useEffect(function(){!sr||Number.isNaN(at)||Vt.current.setSpeed(at)},[at,sr]),react$1.exports.useEffect(function(){!sr||Vt.current.setDirection(rt)},[rt,sr]),react$1.exports.useEffect(function(){if(!!sr&&it!=null){var wr=!0;st?Vt.current.goToAndPlay(it,wr):Vt.current.goToAndStop(it,wr)}},[it,st,sr]),react$1.exports.useEffect(function(){Vt.current.setSubframe&&Vt.current.setSubframe(ct)},[ct]),jsx("div",{...nr,ref:ur})}));return K.propTypes=propTypes$1,K},LottiePlayer=makeLottiePlayer(lottie);const v="5.7.13",fr=50,ip=83,op=132,w=415,h=415,nm="icon list 2",ddd=0,assets=[{id:"comp_0",nm:"pop circle",layers:[{ddd:0,ind:1,ty:4,nm:"circle",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[207.5,207.5,0],ix:2,l:2},a:{a:0,k:[0,0,0],ix:1,l:2},s:{a:1,k:[{i:{x:[.833,.833,.833],y:[.694,.694,1]},o:{x:[.167,.167,.167],y:[.167,.167,0]},t:83,s:[0,0,100]},{i:{x:[.833,.833,.833],y:[.793,.793,1]},o:{x:[.167,.167,.167],y:[.115,.115,0]},t:84,s:[1.006,1.006,100]},{i:{x:[.833,.833,.833],y:[.811,.811,1]},o:{x:[.167,.167,.167],y:[.139,.139,0]},t:85,s:[3.689,3.689,100]},{i:{x:[.833,.833,.833],y:[.819,.819,1]},o:{x:[.167,.167,.167],y:[.149,.149,0]},t:86,s:[7.678,7.678,100]},{i:{x:[.833,.833,.833],y:[.823,.823,1]},o:{x:[.167,.167,.167],y:[.154,.154,0]},t:87,s:[12.718,12.718,100]},{i:{x:[.833,.833,.833],y:[.826,.826,1]},o:{x:[.167,.167,.167],y:[.158,.158,0]},t:88,s:[18.623,18.623,100]},{i:{x:[.833,.833,.833],y:[.827,.827,1]},o:{x:[.167,.167,.167],y:[.16,.16,0]},t:89,s:[25.248,25.248,100]},{i:{x:[.833,.833,.833],y:[.829,.829,1]},o:{x:[.167,.167,.167],y:[.161,.161,0]},t:90,s:[32.48,32.48,100]},{i:{x:[.833,.833,.833],y:[.83,.83,1]},o:{x:[.167,.167,.167],y:[.162,.162,0]},t:91,s:[40.224,40.224,100]},{i:{x:[.833,.833,.833],y:[.831,.831,1]},o:{x:[.167,.167,.167],y:[.163,.163,0]},t:92,s:[48.393,48.393,100]},{i:{x:[.833,.833,.833],y:[.832,.832,1]},o:{x:[.167,.167,.167],y:[.164,.164,0]},t:93,s:[56.906,56.906,100]},{i:{x:[.833,.833,.833],y:[.833,.833,1]},o:{x:[.167,.167,.167],y:[.165,.165,0]},t:94,s:[65.68,65.68,100]},{i:{x:[.833,.833,.833],y:[.836,.836,1]},o:{x:[.167,.167,.167],y:[.167,.167,0]},t:95,s:[74.611,74.611,100]},{i:{x:[.833,.833,.833],y:[.842,.842,1]},o:{x:[.167,.167,.167],y:[.169,.169,0]},t:96,s:[83.555,83.555,100]},{i:{x:[.833,.833,.833],y:[.842,.842,1]},o:{x:[.167,.167,.167],y:[.177,.177,0]},t:97,s:[92.25,92.25,100]},{i:{x:[.833,.833,.833],y:[.857,.857,1]},o:{x:[.167,.167,.167],y:[.176,.176,0]},t:98,s:[100,100,100]},{i:{x:[.833,.833,.833],y:[.865,.865,1]},o:{x:[.167,.167,.167],y:[.199,.199,0]},t:99,s:[106.934,106.934,100]},{i:{x:[.833,.833,.833],y:[.879,.879,1]},o:{x:[.167,.167,.167],y:[.217,.217,0]},t:100,s:[111.913,111.913,100]},{i:{x:[.833,.833,.833],y:[.918,.918,1]},o:{x:[.167,.167,.167],y:[.267,.267,0]},t:101,s:[115.014,115.014,100]},{i:{x:[.833,.833,.833],y:[-5.048,-5.048,1]},o:{x:[.167,.167,.167],y:[-7.317,-7.317,0]},t:102,s:[116.424,116.424,100]},{i:{x:[.833,.833,.833],y:[.774,.774,1]},o:{x:[.167,.167,.167],y:[.084,.084,0]},t:103,s:[116.408,116.408,100]},{i:{x:[.833,.833,.833],y:[.812,.812,1]},o:{x:[.167,.167,.167],y:[.132,.132,0]},t:104,s:[115.272,115.272,100]},{i:{x:[.833,.833,.833],y:[.826,.826,1]},o:{x:[.167,.167,.167],y:[.15,.15,0]},t:105,s:[113.331,113.331,100]},{i:{x:[.833,.833,.833],y:[.833,.833,1]},o:{x:[.167,.167,.167],y:[.16,.16,0]},t:106,s:[110.891,110.891,100]},{i:{x:[.833,.833,.833],y:[.839,.839,1]},o:{x:[.167,.167,.167],y:[.167,.167,0]},t:107,s:[108.226,108.226,100]},{i:{x:[.833,.833,.833],y:[.844,.844,1]},o:{x:[.167,.167,.167],y:[.173,.173,0]},t:108,s:[105.565,105.565,100]},{i:{x:[.833,.833,.833],y:[.849,.849,1]},o:{x:[.167,.167,.167],y:[.179,.179,0]},t:109,s:[103.091,103.091,100]},{i:{x:[.833,.833,.833],y:[.854,.854,1]},o:{x:[.167,.167,.167],y:[.185,.185,0]},t:110,s:[100.933,100.933,100]},{i:{x:[.833,.833,.833],y:[.86,.86,1]},o:{x:[.167,.167,.167],y:[.194,.194,0]},t:111,s:[99.172,99.172,100]},{i:{x:[.833,.833,.833],y:[.871,.871,1]},o:{x:[.167,.167,.167],y:[.207,.207,0]},t:112,s:[97.843,97.843,100]},{i:{x:[.833,.833,.833],y:[.892,.892,1]},o:{x:[.167,.167,.167],y:[.234,.234,0]},t:113,s:[96.946,96.946,100]},{i:{x:[.833,.833,.833],y:[.994,.994,1]},o:{x:[.167,.167,.167],y:[.364,.364,0]},t:114,s:[96.449,96.449,100]},{i:{x:[.833,.833,.833],y:[.703,.703,1]},o:{x:[.167,.167,.167],y:[-.006,-.006,0]},t:115,s:[96.301,96.301,100]},{i:{x:[.833,.833,.833],y:[.799,.799,1]},o:{x:[.167,.167,.167],y:[.116,.116,0]},t:116,s:[96.439,96.439,100]},{i:{x:[.833,.833,.833],y:[.82,.82,1]},o:{x:[.167,.167,.167],y:[.142,.142,0]},t:117,s:[96.791,96.791,100]},{i:{x:[.833,.833,.833],y:[.83,.83,1]},o:{x:[.167,.167,.167],y:[.155,.155,0]},t:118,s:[97.288,97.288,100]},{i:{x:[.833,.833,.833],y:[.836,.836,1]},o:{x:[.167,.167,.167],y:[.163,.163,0]},t:119,s:[97.864,97.864,100]},{i:{x:[.833,.833,.833],y:[.842,.842,1]},o:{x:[.167,.167,.167],y:[.17,.17,0]},t:120,s:[98.464,98.464,100]},{i:{x:[.833,.833,.833],y:[.846,.846,1]},o:{x:[.167,.167,.167],y:[.176,.176,0]},t:121,s:[99.041,99.041,100]},{i:{x:[.833,.833,.833],y:[.851,.851,1]},o:{x:[.167,.167,.167],y:[.182,.182,0]},t:122,s:[99.561,99.561,100]},{i:{x:[.833,.833,.833],y:[.857,.857,1]},o:{x:[.167,.167,.167],y:[.189,.189,0]},t:123,s:[100,100,100]},{i:{x:[.833,.833,.833],y:[.865,.865,1]},o:{x:[.167,.167,.167],y:[.199,.199,0]},t:124,s:[100.345,100.345,100]},{i:{x:[.833,.833,.833],y:[.879,.879,1]},o:{x:[.167,.167,.167],y:[.217,.217,0]},t:125,s:[100.593,100.593,100]},{i:{x:[.833,.833,.833],y:[.918,.918,1]},o:{x:[.167,.167,.167],y:[.267,.267,0]},t:126,s:[100.747,100.747,100]},{i:{x:[.833,.833,.833],y:[-5.048,-5.048,1]},o:{x:[.167,.167,.167],y:[-7.317,-7.317,0]},t:127,s:[100.818,100.818,100]},{i:{x:[.833,.833,.833],y:[.774,.774,1]},o:{x:[.167,.167,.167],y:[.084,.084,0]},t:128,s:[100.817,100.817,100]},{i:{x:[.833,.833,.833],y:[.812,.812,1]},o:{x:[.167,.167,.167],y:[.132,.132,0]},t:129,s:[100.76,100.76,100]},{i:{x:[.833,.833,.833],y:[.833,.833,1]},o:{x:[.167,.167,.167],y:[.15,.15,0]},t:130,s:[100.664,100.664,100]},{t:131,s:[100.542,100.542,100]}],ix:6,l:2}},ao:0,ef:[{ty:5,nm:"BOUNCr overSHOOT+",np:8,mn:"Pseudo/pse bouncR overSHOOT+",ix:1,en:1,ef:[{ty:0,nm:"Amplitude",mn:"Pseudo/pse bouncR overSHOOT+-0001",ix:1,v:{a:0,k:90,ix:1}},{ty:0,nm:"Frequency",mn:"Pseudo/pse bouncR overSHOOT+-0002",ix:2,v:{a:0,k:2,ix:2}},{ty:0,nm:"Decay",mn:"Pseudo/pse bouncR overSHOOT+-0003",ix:3,v:{a:0,k:6,ix:3}},{ty:0,nm:"Floor",mn:"Pseudo/pse bouncR overSHOOT+-0004",ix:4,v:{a:0,k:0,ix:4}},{ty:6,nm:"\xA92018 pixelbot - BOUNCr_v1.1",mn:"Pseudo/pse bouncR overSHOOT+-0005",ix:5,v:0},{ty:6,nm:"BOUNCr overSHOOT+",mn:"Pseudo/pse bouncR overSHOOT+-0006",ix:6,v:0}]}],shapes:[{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[-2.16,8.155],[-46.128,0],[0,-54.963],[54.963,0],[0,54.963]],o:[[11.281,-42.58],[54.963,0],[0,54.963],[-54.963,0],[0,-8.834]],v:[[-96.207,-25.555],[0,-99.519],[99.519,0],[0,99.519],[-99.519,0]],c:!0},ix:2},nm:"Path 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"tr",p:{a:0,k:[0,0],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transform"}],nm:"Group 1",np:2,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1},{ty:"tm",s:{a:0,k:0,ix:1},e:{a:0,k:100,ix:2},o:{a:0,k:0,ix:3},m:1,ix:2,nm:"Trim Paths 1",mn:"ADBE Vector Filter - Trim",hd:!1},{ty:"fl",c:{a:0,k:[.2314,.7216,.298,1],ix:4},o:{a:0,k:100,ix:5},r:1,bm:0,nm:"Fill 1",mn:"ADBE Vector Graphic - Fill",hd:!1}],ip:0,op:500,st:0,bm:0}]}],layers=[{ddd:0,ind:1,ty:4,nm:"list oke",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[212.33,210.502,0],ix:2,l:2},a:{a:0,k:[0,0,0],ix:1,l:2},s:{a:0,k:[100,100,100],ix:6,l:2,x:`var $bm_rt;
var _0x9233 = [
    'BOUNCr overSHOOT+',
    'Amplitude',
    'Frequency',
    'Decay',
    'Floor',
    'index',
    'time',
    'frameDuration',
    'PI',
    'sin',
    'exp',
    'abs'
];
try {
    var effecto = effect(_0x9233[0]);
    var amp = $bm_div(effecto(_0x9233[1]), 1000);
    var freq = effecto(_0x9233[2]);
    var decay = effecto(_0x9233[3]);
    var floor = effecto(_0x9233[4]);
    var n, numkeys, v, t;
    if (floor != true) {
        $bm_rt = n = 0;
        if (numKeys > 0) {
            $bm_rt = n = nearestKey(time)[_0x9233[5]];
            if (key(n)[_0x9233[6]] > time) {
                n--;
            }
        }
        ;
        if (n == 0) {
            $bm_rt = t = 0;
        } else {
            $bm_rt = t = $bm_sub(time, key(n)[_0x9233[6]]);
        }
        ;
        if (n > 0) {
            v = velocityAtTime($bm_sub(key(n)[_0x9233[6]], $bm_div(thisComp[_0x9233[7]], 10)));
            $bm_rt = $bm_sum(value, $bm_mul($bm_mul(v, amp), $bm_div(Math[_0x9233[9]]($bm_mul($bm_mul($bm_mul(freq, t), 2), Math[_0x9233[8]])), Math[_0x9233[10]]($bm_mul(decay, t)))));
        } else {
            $bm_rt = value;
        }
    } else {
        $bm_rt = n = 0;
        if (numKeys > 0) {
            $bm_rt = n = nearestKey(time)[_0x9233[5]];
            if (key(n)[_0x9233[6]] > time) {
                n--;
            }
        }
        ;
        if (n == 0) {
            $bm_rt = t = 0;
        } else {
            $bm_rt = t = $bm_sub(time, key(n)[_0x9233[6]]);
        }
        ;
        if (n > 0) {
            v = velocityAtTime($bm_sub(key(n)[_0x9233[6]], $bm_div(thisComp[_0x9233[7]], 10)));
            $bm_rt = $bm_sum(value, $bm_mul($bm_mul(v, amp), $bm_neg($bm_div(Math[_0x9233[11]](Math[_0x9233[9]]($bm_mul($bm_mul($bm_mul(freq, t), 2), Math[_0x9233[8]]))), Math[_0x9233[10]]($bm_mul(decay, t))))));
        } else {
            $bm_rt = value;
        }
    }
} catch (err) {
    $bm_rt = value;
}`}},ao:0,ef:[{ty:5,nm:"BOUNCr overSHOOT+",np:8,mn:"Pseudo/pse bouncR overSHOOT+",ix:1,en:1,ef:[{ty:0,nm:"Amplitude",mn:"Pseudo/pse bouncR overSHOOT+-0001",ix:1,v:{a:0,k:50,ix:1}},{ty:0,nm:"Frequency",mn:"Pseudo/pse bouncR overSHOOT+-0002",ix:2,v:{a:0,k:2,ix:2}},{ty:0,nm:"Decay",mn:"Pseudo/pse bouncR overSHOOT+-0003",ix:3,v:{a:0,k:6.8,ix:3}},{ty:0,nm:"Floor",mn:"Pseudo/pse bouncR overSHOOT+-0004",ix:4,v:{a:0,k:0,ix:4}},{ty:6,nm:"\xA92018 pixelbot - BOUNCr_v1.1",mn:"Pseudo/pse bouncR overSHOOT+-0005",ix:5,v:0},{ty:6,nm:"BOUNCr overSHOOT+",mn:"Pseudo/pse bouncR overSHOOT+-0006",ix:6,v:0}]}],shapes:[{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0]],v:[[-100.488,-27.787],[-9.604,24.675],[34.488,-36.175]],c:!1},ix:2},nm:"Path 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"tm",s:{a:0,k:40,ix:1},e:{a:0,k:96,ix:2},o:{a:0,k:0,ix:3},m:1,ix:2,nm:"Trim Paths 1",mn:"ADBE Vector Filter - Trim",hd:!1},{ty:"st",c:{a:0,k:[1,1,1,1],ix:3},o:{a:0,k:100,ix:4},w:{a:0,k:13,ix:5},lc:2,lj:2,bm:0,nm:"Stroke 1",mn:"ADBE Vector Graphic - Stroke",hd:!1},{ty:"tr",p:{a:0,k:[0,0],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transform"}],nm:"Group 1",np:3,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1},{ty:"tm",s:{a:0,k:0,ix:1},e:{a:1,k:[{i:{x:[.667],y:[.3]},o:{x:[.333],y:[0]},t:103,s:[0]},{i:{x:[.667],y:[1]},o:{x:[.333],y:[.257]},t:116,s:[54.407]},{t:120,s:[100]}],ix:2},o:{a:0,k:0,ix:3},m:1,ix:2,nm:"Trim Paths 1",mn:"ADBE Vector Filter - Trim",hd:!1}],ip:0,op:500,st:0,bm:0},{ddd:0,ind:2,ty:0,nm:"pop circle",refId:"comp_0",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[207.5,207.5,0],ix:2,l:2},a:{a:0,k:[207.5,207.5,0],ix:1,l:2},s:{a:0,k:[100,100,100],ix:6,l:2}},ao:0,w:415,h:415,ip:0,op:500,st:0,bm:0}],markers=[];var checkJson={v,fr,ip,op,w,h,nm,ddd,assets,layers,markers};function Notification({show:L,close:V,action:G,message:K}){var re;const ee=useLocale(),{isRtlLanguage:te}=useStoreGeneralSettings();return jsx(Fragment$1,{children:jsx("div",{"aria-live":"assertive",className:"notification-container pointer-events-none fixed inset-0 z-30 hidden items-end px-4 py-6 sm:flex sm:items-start sm:p-6",children:jsx("div",{className:"notification-wrapper hidden w-full flex-col items-center space-y-4 sm:flex sm:items-center ",children:jsx(tt$1,{show:L,as:react$1.exports.Fragment,enter:"transform ease-out duration-300 transition",enterFrom:"-translate-y-12 opacity-0",enterTo:"translate-y-0 opacity-100",leave:"transition ease-in duration-100",leaveFrom:"opacity-100 translate-y-0",leaveTo:"opacity-0 translate-y-4 sm:translate-y-0",children:jsx("div",{className:"notification-panel pointer-events-auto w-full max-w-lg overflow-hidden rounded-lg bg-white shadow-lg ring-1 ring-black ring-opacity-5",children:jsx("div",{className:"notification-content p-4",children:jsxs("div",{className:"notification-inner flex items-center",children:[jsxs("div",{className:"notification-message-wrapper flex w-0 flex-1 items-center justify-start",children:[jsx("div",{className:"notification-icon flex-shrink-0",children:jsx(CheckCircleIcon$1,{className:"notification-check-icon h-5 w-5 text-primary xs:h-6 xs:w-6","aria-hidden":"true"})}),jsx("p",{className:"notification-message multiline-truncate ms-3 w-0 flex-1 text-tiny font-medium text-gray-900 xs:text-sm",children:K!=null?K:"Item added to cart"}),jsxs("button",{type:"button",className:"notification-action-button ms-3 flex-shrink-0 rounded-lg bg-primary/10 px-3 py-1 text-tiny font-medium text-primary-alt  hover:bg-primary/20 hover:text-primary-alt focus:outline-none focus:ring-2 focus:ring-primary/75 focus:ring-offset-2 xs:text-sm",onClick:G,children:[(re=ee.checkout)!=null?re:"Checkout",jsx("span",{"aria-hidden":"true",className:"notification-arrow rtl:rotate-90",children:te?jsx(Fragment$1,{children:" \u2190"}):jsx(Fragment$1,{children:" \u2192"})})]})]}),jsx("div",{className:"notification-close-wrapper ms-4 flex flex-shrink-0",children:jsxs("button",{className:"notification-close-button inline-flex rounded-lg bg-white text-gray-400 hover:text-gray-500 focus:outline-none focus:ring-2 focus:ring-primary/75 focus:ring-offset-2",onClick:V,children:[jsx("span",{className:"sr-only",children:"Close"}),jsx(XMarkIcon$1,{className:"notification-close-icon h-4 w-4 xs:h-5 xs:w-5","aria-hidden":"true"})]})})]})})})})})})})}function AddedToCartPopup({item:L,open:V,setOpen:G,setItem:K}){var st,Ae,at,ot,rt;const ee=useLocale();useSelector(selectCart),useCurrency();const te=useKeyToPropsMap(),re=useStoreContentSettings(),ce=get$1(re,"detailsPage.enabled",!1),ue=map$1(entries(pickBy(get$1(L,"selectedVariant.value"),identity$5)),([ft,Oe])=>`${te[ft]}: ${Oe}`).join(", "),[de,ve]=react$1.exports.useState(!1);return jsx(tt$1,{show:V,as:react$1.exports.Fragment,unmount:!0,afterEnter:()=>ve(!0),afterLeave:()=>{ve(!1),K(null)},children:jsxs(_t,{as:"div",className:classNames("added-to-cart-popup relative z-30",!ce&&"hidden sm:block"),onClose:()=>G(!1),children:[jsx(tt$1.Child,{as:react$1.exports.Fragment,enter:"ease-in-out duration-500",enterFrom:"opacity-0",enterTo:"opacity-100",leave:"ease-in-out duration-500",leaveFrom:"opacity-100",leaveTo:"opacity-0",children:jsx("div",{className:"added-to-cart-popup-overlay fixed inset-0 bg-black/30 transition-opacity"})}),jsx("div",{className:"added-to-cart-popup-container fixed inset-0 overflow-hidden",children:jsx("div",{className:"added-to-cart-popup-wrapper absolute inset-0 overflow-hidden",children:jsx("div",{className:"added-to-cart-popup-content pointer-events-none fixed inset-x-0 bottom-0 flex max-w-full",children:jsx(tt$1.Child,{as:react$1.exports.Fragment,enter:"transform transition ease-in-out duration-500 sm:duration-700",enterFrom:"translate-y-full",enterTo:"translate-y-0",leave:"transform transition ease-in-out duration-500 sm:duration-700",leaveFrom:"translate-y-0",leaveTo:"translate-y-full",children:jsxs("div",{className:"added-to-cart-popup-panel pointer-events-auto relative w-full",children:[V&&jsxs("button",{type:"button",className:"added-to-cart-popup-close absolute -top-8 rounded-md text-white focus:outline-none ltr:right-2 rtl:left-2",onClick:()=>G(!1),children:[jsx("span",{className:"sr-only",children:"Close panel"}),jsx(XMarkIcon$1,{className:"h-6 w-6","aria-hidden":"true"})]}),jsx("div",{className:"added-to-cart-popup-inner flex h-full flex-col  bg-white py-4 shadow-xl",children:jsxs("div",{className:"added-to-cart-popup-content px-4",children:[jsx("div",{className:"flex justify-between",children:jsxs("div",{className:"flex flex-1 items-center",children:[jsx("div",{className:"added-to-cart-popup-product-image h-14 w-14 flex-shrink-0 rounded-md",children:L!=null&&L.thumbnail?jsx("img",{src:sanitizeUrl(L==null?void 0:L.thumbnail),alt:(st=L==null?void 0:L.selectedProduct)==null?void 0:st.name,className:"broken-image-fallback h-full w-full rounded-md object-cover after:bg-[length:18px]"}):jsx("div",{className:"flex h-14 w-14 cursor-default items-center justify-center rounded-md bg-gray-100",children:jsx(PhotoIcon$1,{className:"h-5 w-5 text-gray-400"})})}),jsxs("div",{className:"added-to-cart-popup-product-info ms-4",children:[jsx("p",{className:"singleline-truncate added-to-cart-popup-product-name text-sm font-normal text-gray-900",children:(Ae=L==null?void 0:L.selectedProduct)==null?void 0:Ae.name}),ue&&jsx("p",{className:"singleline-truncate added-to-cart-popup-product-variant text-sm font-normal text-gray-600",children:ue}),jsxs("div",{className:"added-to-cart-popup-product-status relative mt-1 flex items-center ps-7 text-sm font-medium text-primary",children:[jsx("span",{className:"absolute me-1 inline-block h-10 w-10 ltr:-left-2.5 rtl:-right-2.5",children:jsx(LottiePlayer,{animationData:checkJson,play:de,loop:!1,speed:2})}),(at=ee.addedToCart)!=null?at:"Added to cart"]})]})]})}),jsxs("div",{className:"added-to-cart-popup-actions mt-4 flex flex-col-reverse items-center justify-between gap-2",children:[jsx("button",{className:"added-to-cart-popup-view-cart flex w-full items-center justify-center rounded-lg border border-transparent bg-primary px-4 py-2.5 text-sm font-medium text-white shadow-sm hover:bg-primary-dark focus:outline-none focus:ring-2 focus:ring-primary/75 focus:ring-offset-2",onClick:()=>navigate("/cart").then(()=>G(!1)),children:(ot=ee.viewCart)!=null?ot:"View Cart"}),jsx("button",{type:"button",className:"added-to-cart-popup-continue-shopping flex w-full items-center justify-center rounded-lg border border-primary px-4 py-2.5 text-sm font-medium text-primary shadow-sm focus:outline-none focus:ring-2 focus:ring-primary/75 focus:ring-offset-2",onClick:()=>G(!1),children:(rt=ee.continueShopping)!=null?rt:"Continue Shopping"})]})]})})]})})})})})]})})}function AddedToCartMiniPopup({item:L,open:V,setOpen:G,setItem:K}){var ce,ue,de,ve;const ee=useLocale();useSelector(selectCart),useCurrency();const te=useKeyToPropsMap(),re=map$1(entries(pickBy(get$1(L,"selectedVariant.value"),identity$5)),([st,Ae])=>`${te[st]}: ${Ae}`).join(", ");return jsx(Fragment$1,{children:jsx("div",{"aria-live":"assertive",className:"added-to-cart-mini-popup-container pointer-events-none fixed inset-0 z-30 hidden items-end sm:flex sm:items-start sm:py-6",children:jsx("div",{className:"added-to-cart-mini-popup-wrapper scale mx-auto mt-11 hidden w-full max-w-7xl flex-col items-center space-y-4 px-4 sm:flex sm:items-end sm:px-6 ltr:lg:px-8 rtl:lg:px-16",children:jsx(tt$1,{show:V,as:react$1.exports.Fragment,enter:"transform ease-[cubic-bezier(0,1.2,1,1)] duration-300 transition origin-top-right",enterFrom:"scale-50 opacity-0",enterTo:"scale-1 opacity-100",leave:"transition ease-in duration-[50ms] origin-top-right",leaveFrom:"scale-1 opacity-100",leaveTo:"scale-50 opacity-0",afterLeave:()=>K(null),children:jsxs("div",{className:"added-to-cart-mini-popup relative min-w-[340px] max-w-[420px]",children:[jsxs("div",{className:"added-to-cart-mini-popup-content pointer-events-auto relative overflow-hidden rounded-lg bg-white py-4 pt-5 shadow-lg ring-1 ring-black ring-opacity-10",children:[jsxs("div",{className:"added-to-cart-mini-popup-inner px-4",children:[jsx("div",{className:"added-to-cart-mini-popup-product flex justify-between",children:jsxs("div",{className:"flex flex-1 items-center",children:[jsx("div",{className:"added-to-cart-mini-popup-product-image h-16 w-16 flex-shrink-0 self-start rounded-md",children:L!=null&&L.thumbnail?jsx("img",{src:sanitizeUrl(L==null?void 0:L.thumbnail),alt:(ce=L==null?void 0:L.selectedProduct)==null?void 0:ce.name,className:"broken-image-fallback h-full w-full rounded-md object-cover after:bg-[length:16px]"}):jsx("div",{className:"flex h-12 w-12 cursor-default items-center justify-center rounded-md bg-gray-100",children:jsx(PhotoIcon$1,{className:"h-5 w-5 text-gray-400"})})}),jsxs("div",{className:"added-to-cart-mini-popup-product-info ms-4",children:[jsx("p",{className:"singleline-truncate text-sm font-medium text-gray-900",children:(ue=L==null?void 0:L.selectedProduct)==null?void 0:ue.name}),re&&jsx("p",{className:"singleline-truncate added-to-cart-mini-popup-product-variant text-sm font-normal text-gray-600",children:re}),jsxs("p",{className:"added-to-cart-mini-popup-product-status mt-1 flex items-center text-sm font-semibold text-primary",children:[jsx(CheckCircleIcon$1,{className:"me-1 h-4 w-4 animate-scale-in opacity-0"}),(de=ee.addedToCart)!=null?de:"Added to cart"]})]})]})}),jsx("div",{className:"added-to-cart-mini-popup-actions mt-4 flex flex-col-reverse items-center justify-between gap-2",children:jsx("button",{className:"added-to-cart-mini-popup-view-cart flex w-full items-center justify-center rounded-lg border border-transparent bg-primary px-4 py-2 text-sm font-medium text-white shadow-sm hover:bg-primary-dark focus:outline-none focus:ring-2 focus:ring-primary/75 focus:ring-offset-2",onClick:()=>{navigate("/cart").then(()=>G(!1))},children:(ve=ee.viewCart)!=null?ve:"View Cart"})})]}),jsxs("button",{type:"button",className:"added-to-cart-mini-popup-close absolute top-2.5 rounded-md bg-white text-gray-700 hover:text-gray-900 focus:outline-none ltr:right-2.5 rtl:left-2.5",onClick:()=>G(!1),children:[jsx("span",{className:"sr-only",children:"Close panel"}),jsx(XMarkIcon$1,{className:"h-4 w-4","aria-hidden":"true"})]})]}),jsx("div",{className:"added-to-cart-mini-popup-arrow absolute -top-4 h-4 w-4 -translate-x-1/2 translate-y-1/2 rotate-45 transform border-l border-t bg-white ltr:right-5 rtl:left-5 "})]})})})})})}let clientRendered=!1;const useIsSSR=()=>{const[L,V]=react$1.exports.useState(!clientRendered);return react$1.exports.useEffect(()=>{!clientRendered&&!!(typeof window!="undefined"&&window.document&&window.document.createElement)&&(clientRendered=!0),V(!1)},[]),L};function useMediaQuery(L){const V=te=>typeof window!="undefined"?window.matchMedia(te).matches:!1,[G,K]=react$1.exports.useState(V(L));function ee(){K(V(L))}return react$1.exports.useEffect(()=>{const te=window.matchMedia(L);return ee(),te.addEventListener("change",ee),()=>{te.removeEventListener("change",ee)}},[L]),G}const Context=require$$0.createContext({});function AddToCartNotificationContext({children:L}){const V=useIsSSR(),G=useMediaQuery("(min-width:640px)"),K=react$1.exports.useRef(null),{checkFeature:ee}=useTemplateFeature(),[te,re]=react$1.exports.useState(!1),[ce,ue]=react$1.exports.useState(null),de=react$1.exports.useCallback(st=>{!ee("showAddToCartNotification")||(te?(re(!1),K.current=setTimeout(()=>{re(!0),ue(st)},250)):(re(!0),ue(st)))},[te,ee]);react$1.exports.useEffect(()=>()=>{clearTimeout(K.current)},[]);const ve=react$1.exports.useMemo(()=>({addedToCartIndicator:te,showAddedToCartIndicator:de,setAddedToCartIndicator:re}),[te,de,re]);return jsx(Context.Provider,{value:ve,children:jsxs(Fragment$1,{children:[L,!V&&jsx(Fragment$1,{children:G?jsx(AddedToCartMiniPopup,{item:ce,setItem:ue,open:te,setOpen:re}):jsx(AddedToCartPopup,{item:ce,setItem:ue,open:te,setOpen:re})})]})})}function useAddToCartNotification(){return react$1.exports.useContext(Context)}/*! *****************************************************************************
Copyright (c) Microsoft Corporation.

Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.

THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */var n=function(L,V){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(G,K){G.__proto__=K}||function(G,K){for(var ee in K)K.hasOwnProperty(ee)&&(G[ee]=K[ee])})(L,V)},o,r,i=(function(L){/*!
  Copyright (c) 2017 Jed Watson.
  Licensed under the MIT License (MIT), see
  http://jedwatson.github.io/classnames
*/(function(){var V={}.hasOwnProperty;function G(){for(var K=[],ee=0;ee<arguments.length;ee++){var te=arguments[ee];if(te){var re=typeof te;if(re==="string"||re==="number")K.push(te);else if(Array.isArray(te)&&te.length){var ce=G.apply(null,te);ce&&K.push(ce)}else if(re==="object")for(var ue in te)V.call(te,ue)&&te[ue]&&K.push(ue)}}return K.join(" ")}L.exports?(G.default=G,L.exports=G):window.classNames=G})()}(r={path:o,exports:{},require:function(L,V){return function(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}(V==null&&r.path)}},r.exports),r.exports);function s(L,V,G){var K,ee,te,re,ce;function ue(){var ve=Date.now()-re;ve<V&&ve>=0?K=setTimeout(ue,V-ve):(K=null,G||(ce=L.apply(te,ee),te=ee=null))}V==null&&(V=100);var de=function(){te=this,ee=arguments,re=Date.now();var ve=G&&!K;return K||(K=setTimeout(ue,V)),ve&&(ce=L.apply(te,ee),te=ee=null),ce};return de.clear=function(){K&&(clearTimeout(K),K=null)},de.flush=function(){K&&(ce=L.apply(te,ee),te=ee=null,clearTimeout(K),K=null)},de}s.debounce=s;var l=s;(function(L,V){V===void 0&&(V={});var G=V.insertAt;if(L&&typeof document!="undefined"){var K=document.head||document.getElementsByTagName("head")[0],ee=document.createElement("style");ee.type="text/css",G==="top"&&K.firstChild?K.insertBefore(ee,K.firstChild):K.appendChild(ee),ee.styleSheet?ee.styleSheet.cssText=L:ee.appendChild(document.createTextNode(L))}})(`.indiana-scroll-container {
  overflow: auto; }
  .indiana-scroll-container--dragging {
    scroll-behavior: auto !important; }
    .indiana-scroll-container--dragging > * {
      pointer-events: none;
      cursor: -webkit-grab;
      cursor: grab; }
  .indiana-scroll-container--hide-scrollbars {
    overflow: hidden;
    overflow: -moz-scrollbars-none;
    -ms-overflow-style: none;
    scrollbar-width: none; }
    .indiana-scroll-container--hide-scrollbars::-webkit-scrollbar {
      display: none !important;
      height: 0 !important;
      width: 0 !important;
      background: transparent !important;
      -webkit-appearance: none !important; }
  .indiana-scroll-container--native-scroll {
    overflow: auto; }

.indiana-dragging {
  cursor: -webkit-grab;
  cursor: grab; }
`);var a,c=(a="indiana-scroll-container",function(L,V){if(!L)return a;var G;typeof L=="string"?G=L:V=L;var K=a;return G&&(K+="__"+G),K+(V?Object.keys(V).reduce(function(ee,te){var re=V[te];return re&&(ee+=" "+(typeof re=="boolean"?K+"--"+te:K+"--"+te+"_"+re)),ee},""):"")}),p=function(L){function V(G){var K=L.call(this,G)||this;return K.onEndScroll=function(){K.scrolling=!1,!K.pressed&&K.started&&K.processEnd()},K.onScroll=function(ee){var te=K.container.current;te.scrollLeft===K.scrollLeft&&te.scrollTop===K.scrollTop||(K.scrolling=!0,K.processScroll(ee),K.onEndScroll())},K.onTouchStart=function(ee){var te=K.props.nativeMobileScroll;if(K.isDraggable(ee.target))if(K.internal=!0,te&&K.scrolling)K.pressed=!0;else{var re=ee.touches[0];K.processClick(ee,re.clientX,re.clientY),!te&&K.props.stopPropagation&&ee.stopPropagation()}},K.onTouchEnd=function(ee){var te=K.props.nativeMobileScroll;K.pressed&&(!K.started||K.scrolling&&te?K.pressed=!1:K.processEnd(),K.forceUpdate())},K.onTouchMove=function(ee){var te=K.props.nativeMobileScroll;if(K.pressed&&(!te||!K.isMobile)){var re=ee.touches[0];re&&K.processMove(ee,re.clientX,re.clientY),ee.preventDefault(),K.props.stopPropagation&&ee.stopPropagation()}},K.onMouseDown=function(ee){K.isDraggable(ee.target)&&K.isScrollable()&&(K.internal=!0,K.props.buttons.indexOf(ee.button)!==-1&&(K.processClick(ee,ee.clientX,ee.clientY),ee.preventDefault(),K.props.stopPropagation&&ee.stopPropagation()))},K.onMouseMove=function(ee){K.pressed&&(K.processMove(ee,ee.clientX,ee.clientY),ee.preventDefault(),K.props.stopPropagation&&ee.stopPropagation())},K.onMouseUp=function(ee){K.pressed&&(K.started?K.processEnd():(K.internal=!1,K.pressed=!1,K.forceUpdate(),K.props.onClick&&K.props.onClick(ee)),ee.preventDefault(),K.props.stopPropagation&&ee.stopPropagation())},K.container=require$$0.createRef(),K.onEndScroll=l(K.onEndScroll,300),K.scrolling=!1,K.started=!1,K.pressed=!1,K.internal=!1,K.getRef=K.getRef.bind(K),K}return function(G,K){function ee(){this.constructor=G}n(G,K),G.prototype=K===null?Object.create(K):(ee.prototype=K.prototype,new ee)}(V,L),V.prototype.componentDidMount=function(){var G=this.props.nativeMobileScroll,K=this.container.current;window.addEventListener("mouseup",this.onMouseUp),window.addEventListener("mousemove",this.onMouseMove),window.addEventListener("touchmove",this.onTouchMove,{passive:!1}),window.addEventListener("touchend",this.onTouchEnd),K.addEventListener("touchstart",this.onTouchStart,{passive:!1}),K.addEventListener("mousedown",this.onMouseDown,{passive:!1}),G&&(this.isMobile=this.isMobileDevice(),this.isMobile&&this.forceUpdate())},V.prototype.componentWillUnmount=function(){window.removeEventListener("mouseup",this.onMouseUp),window.removeEventListener("mousemove",this.onMouseMove),window.removeEventListener("touchmove",this.onTouchMove),window.removeEventListener("touchend",this.onTouchEnd)},V.prototype.getElement=function(){return this.container.current},V.prototype.isMobileDevice=function(){return window.orientation!==void 0||navigator.userAgent.indexOf("IEMobile")!==-1},V.prototype.isDraggable=function(G){var K=this.props.ignoreElements;if(K){var ee=G.closest(K);return ee===null||ee.contains(this.getElement())}return!0},V.prototype.isScrollable=function(){var G=this.container.current;return G&&(G.scrollWidth>G.clientWidth||G.scrollHeight>G.clientHeight)},V.prototype.processClick=function(G,K,ee){var te=this.container.current;this.scrollLeft=te.scrollLeft,this.scrollTop=te.scrollTop,this.clientX=K,this.clientY=ee,this.pressed=!0},V.prototype.processStart=function(G){G===void 0&&(G=!0);var K=this.props.onStartScroll;this.started=!0,G&&document.body.classList.add("indiana-dragging"),K&&K({external:!this.internal}),this.forceUpdate()},V.prototype.processScroll=function(G){if(this.started){var K=this.props.onScroll;K&&K({external:!this.internal})}else this.processStart(!1)},V.prototype.processMove=function(G,K,ee){var te=this.props,re=te.horizontal,ce=te.vertical,ue=te.activationDistance,de=te.onScroll,ve=this.container.current;this.started?(re&&(ve.scrollLeft-=K-this.clientX),ce&&(ve.scrollTop-=ee-this.clientY),de&&de({external:!this.internal}),this.clientX=K,this.clientY=ee,this.scrollLeft=ve.scrollLeft,this.scrollTop=ve.scrollTop):(re&&Math.abs(K-this.clientX)>ue||ce&&Math.abs(ee-this.clientY)>ue)&&(this.clientX=K,this.clientY=ee,this.processStart())},V.prototype.processEnd=function(){var G=this.props.onEndScroll;this.container.current&&G&&G({external:!this.internal}),this.pressed=!1,this.started=!1,this.scrolling=!1,this.internal=!1,document.body.classList.remove("indiana-dragging"),this.forceUpdate()},V.prototype.getRef=function(G){[this.container,this.props.innerRef].forEach(function(K){K&&(typeof K=="function"?K(G):K.current=G)})},V.prototype.render=function(){var G=this.props,K=G.children,ee=G.draggingClassName,te=G.className,re=G.style,ce=G.hideScrollbars,ue=G.component;return require$$0.createElement(ue,{className:i(te,this.pressed&&ee,c({dragging:this.pressed,"hide-scrollbars":ce,"native-scroll":this.isMobile})),style:re,ref:this.getRef,onScroll:this.onScroll},K)},V.defaultProps={nativeMobileScroll:!0,hideScrollbars:!0,activationDistance:10,vertical:!0,horizontal:!0,stopPropagation:!1,style:{},component:"div",buttons:[0]},V}(react$1.exports.PureComponent);const PUBLISH=0,SUBSCRIBE=1,RESET=2,VALUE=4;function compose(L,V){return G=>L(V(G))}function thrush(L,V){return V(L)}function curry2to1(L,V){return G=>L(V,G)}function curry1to0(L,V){return()=>L(V)}function tap(L,V){return V(L),L}function tup(...L){return L}function call(L){L()}function always(L){return()=>L}function joinProc(...L){return()=>{L.map(call)}}function isDefined(L){return L!==void 0}function noop(){}function subscribe(L,V){return L(SUBSCRIBE,V)}function publish(L,V){L(PUBLISH,V)}function reset(L){L(RESET)}function getValue(L){return L(VALUE)}function connect(L,V){return subscribe(L,curry2to1(V,PUBLISH))}function handleNext(L,V){const G=L(SUBSCRIBE,K=>{G(),V(K)});return G}function stream(){const L=[];return(V,G)=>{switch(V){case RESET:L.splice(0,L.length);return;case SUBSCRIBE:return L.push(G),()=>{const K=L.indexOf(G);K>-1&&L.splice(K,1)};case PUBLISH:L.slice().forEach(K=>{K(G)});return;default:throw new Error(`unrecognized action ${V}`)}}}function statefulStream(L){let V=L;const G=stream();return(K,ee)=>{switch(K){case SUBSCRIBE:ee(V);break;case PUBLISH:V=ee;break;case VALUE:return V}return G(K,ee)}}function eventHandler(L){let V,G;const K=()=>V&&V();return function(ee,te){switch(ee){case SUBSCRIBE:return te?G===te?void 0:(K(),G=te,V=subscribe(L,te),V):(K(),noop);case RESET:K(),G=null;return;default:throw new Error(`unrecognized action ${ee}`)}}}function streamFromEmitter(L){return tap(stream(),V=>connect(L,V))}function statefulStreamFromEmitter(L,V){return tap(statefulStream(V),G=>connect(L,G))}function combineOperators(...L){return V=>L.reduceRight(thrush,V)}function pipe(L,...V){const G=combineOperators(...V);return(K,ee)=>{switch(K){case SUBSCRIBE:return subscribe(L,G(ee));case RESET:reset(L);return}}}function defaultComparator(L,V){return L===V}function distinctUntilChanged(L=defaultComparator){let V;return G=>K=>{L(V,K)||(V=K,G(K))}}function filter(L){return V=>G=>{L(G)&&V(G)}}function map(L){return V=>compose(V,L)}function mapTo(L){return V=>()=>V(L)}function scan(L,V){return G=>K=>G(V=L(V,K))}function skip(L){return V=>G=>{L>0?L--:V(G)}}function throttleTime(L){let V=null,G;return K=>ee=>{V=ee,!G&&(G=setTimeout(()=>{G=void 0,K(V)},L))}}function debounceTime(L){let V,G;return K=>ee=>{V=ee,G&&clearTimeout(G),G=setTimeout(()=>{K(V)},L)}}function withLatestFrom(...L){const V=new Array(L.length);let G=0,K=null;const ee=Math.pow(2,L.length)-1;return L.forEach((te,re)=>{const ce=Math.pow(2,re);subscribe(te,ue=>{const de=G;G=G|ce,V[re]=ue,de!==ee&&G===ee&&K&&(K(),K=null)})}),te=>re=>{const ce=()=>te([re].concat(V));G===ee?ce():K=ce}}function merge$2(...L){return function(V,G){switch(V){case SUBSCRIBE:return joinProc(...L.map(K=>subscribe(K,G)));case RESET:return;default:throw new Error(`unrecognized action ${V}`)}}}function duc(L,V=defaultComparator){return pipe(L,distinctUntilChanged(V))}function combineLatest(...L){const V=stream(),G=new Array(L.length);let K=0;const ee=Math.pow(2,L.length)-1;return L.forEach((te,re)=>{const ce=Math.pow(2,re);subscribe(te,ue=>{G[re]=ue,K=K|ce,K===ee&&publish(V,G)})}),function(te,re){switch(te){case SUBSCRIBE:return K===ee&&re(G),subscribe(V,re);case RESET:return reset(V);default:throw new Error(`unrecognized action ${te}`)}}}function system(L,V=[],{singleton:G}={singleton:!0}){return{id:id(),constructor:L,dependencies:V,singleton:G}}const id=()=>Symbol();function init(L){const V=new Map,G=({id:K,constructor:ee,dependencies:te,singleton:re})=>{if(re&&V.has(K))return V.get(K);const ce=ee(te.map(ue=>G(ue)));return re&&V.set(K,ce),ce};return G(L)}function omit$2(L,V){const G={},K={};let ee=0;const te=L.length;for(;ee<te;)K[L[ee]]=1,ee+=1;for(const re in V)K.hasOwnProperty(re)||(G[re]=V[re]);return G}const useIsomorphicLayoutEffect$2=typeof document!="undefined"?require$$0.useLayoutEffect:require$$0.useEffect;function systemToComponent(L,V,G){const K=Object.keys(V.required||{}),ee=Object.keys(V.optional||{}),te=Object.keys(V.methods||{}),re=Object.keys(V.events||{}),ce=require$$0.createContext({});function ue(Oe,nt){Oe.propsReady&&publish(Oe.propsReady,!1);for(const it of K){const lt=Oe[V.required[it]];publish(lt,nt[it])}for(const it of ee)if(it in nt){const lt=Oe[V.optional[it]];publish(lt,nt[it])}Oe.propsReady&&publish(Oe.propsReady,!0)}function de(Oe){return te.reduce((nt,it)=>(nt[it]=lt=>{const ct=Oe[V.methods[it]];publish(ct,lt)},nt),{})}function ve(Oe){return re.reduce((nt,it)=>(nt[it]=eventHandler(Oe[V.events[it]]),nt),{})}const st=require$$0.forwardRef((Oe,nt)=>{const{children:it,...lt}=Oe,[ct]=require$$0.useState(()=>tap(init(L),bt=>ue(bt,lt))),[ut]=require$$0.useState(curry1to0(ve,ct));return useIsomorphicLayoutEffect$2(()=>{for(const bt of re)bt in lt&&subscribe(ut[bt],lt[bt]);return()=>{Object.values(ut).map(reset)}},[lt,ut,ct]),useIsomorphicLayoutEffect$2(()=>{ue(ct,lt)}),require$$0.useImperativeHandle(nt,always(de(ct))),require$$0.createElement(ce.Provider,{value:ct},G?require$$0.createElement(G,omit$2([...K,...ee,...re],lt),it):it)}),Ae=Oe=>require$$0.useCallback(curry2to1(publish,require$$0.useContext(ce)[Oe]),[Oe]),at=Oe=>{const it=require$$0.useContext(ce)[Oe],lt=require$$0.useCallback(ct=>subscribe(it,ct),[it]);return require$$0.useSyncExternalStore(lt,()=>getValue(it),()=>getValue(it))},ot=Oe=>{const it=require$$0.useContext(ce)[Oe],[lt,ct]=require$$0.useState(curry1to0(getValue,it));return useIsomorphicLayoutEffect$2(()=>subscribe(it,ut=>{ut!==lt&&ct(always(ut))}),[it,lt]),lt},rt=require$$0.version.startsWith("18")?at:ot;return{Component:st,usePublisher:Ae,useEmitterValue:rt,useEmitter:(Oe,nt)=>{const lt=require$$0.useContext(ce)[Oe];useIsomorphicLayoutEffect$2(()=>subscribe(lt,nt),[nt,lt])}}}const useIsomorphicLayoutEffect=typeof document!="undefined"?require$$0.useLayoutEffect:require$$0.useEffect,useIsomorphicLayoutEffect$1=useIsomorphicLayoutEffect;var LogLevel=(L=>(L[L.DEBUG=0]="DEBUG",L[L.INFO=1]="INFO",L[L.WARN=2]="WARN",L[L.ERROR=3]="ERROR",L))(LogLevel||{});const CONSOLE_METHOD_MAP={[0]:"debug",[1]:"log",[2]:"warn",[3]:"error"},getGlobalThis=()=>typeof globalThis=="undefined"?window:globalThis,loggerSystem=system(()=>{const L=statefulStream(3);return{log:statefulStream((G,K,ee=1)=>{var te;const re=(te=getGlobalThis().VIRTUOSO_LOG_LEVEL)!=null?te:getValue(L);ee>=re&&console[CONSOLE_METHOD_MAP[ee]]("%creact-virtuoso: %c%s %o","color: #0253b3; font-weight: bold","color: initial",G,K)}),logLevel:L}},[],{singleton:!0});function useSizeWithElRef(L,V=!0){const G=require$$0.useRef(null);let K=ee=>{};if(typeof ResizeObserver!="undefined"){const ee=require$$0.useMemo(()=>new ResizeObserver(te=>{requestAnimationFrame(()=>{const re=te[0].target;re.offsetParent!==null&&L(re)})}),[L]);K=te=>{te&&V?(ee.observe(te),G.current=te):(G.current&&ee.unobserve(G.current),G.current=null)}}return{ref:G,callbackRef:K}}function useSize(L,V=!0){return useSizeWithElRef(L,V).callbackRef}function useChangedListContentsSizes(L,V,G,K,ee,te,re){const ce=require$$0.useCallback(ue=>{const de=getChangedChildSizes(ue.children,V,"offsetHeight",ee);let ve=ue.parentElement;for(;!ve.dataset.virtuosoScroller;)ve=ve.parentElement;const st=ve.lastElementChild.dataset.viewportType==="window",Ae=re?re.scrollTop:st?window.pageYOffset||document.documentElement.scrollTop:ve.scrollTop,at=re?re.scrollHeight:st?document.documentElement.scrollHeight:ve.scrollHeight,ot=re?re.offsetHeight:st?window.innerHeight:ve.offsetHeight;K({scrollTop:Math.max(Ae,0),scrollHeight:at,viewportHeight:ot}),te==null||te(resolveGapValue$1("row-gap",getComputedStyle(ue).rowGap,ee)),de!==null&&L(de)},[L,V,ee,te,re,K]);return useSizeWithElRef(ce,G)}function getChangedChildSizes(L,V,G,K){const ee=L.length;if(ee===0)return null;const te=[];for(let re=0;re<ee;re++){const ce=L.item(re);if(!ce||ce.dataset.index===void 0)continue;const ue=parseInt(ce.dataset.index),de=parseFloat(ce.dataset.knownSize),ve=V(ce,G);if(ve===0&&K("Zero-sized element, this should not happen",{child:ce},LogLevel.ERROR),ve===de)continue;const st=te[te.length-1];te.length===0||st.size!==ve||st.endIndex!==ue-1?te.push({startIndex:ue,endIndex:ue,size:ve}):te[te.length-1].endIndex++}return te}function resolveGapValue$1(L,V,G){return V!=="normal"&&!(V!=null&&V.endsWith("px"))&&G(`${L} was not resolved to pixel value correctly`,V,LogLevel.WARN),V==="normal"?0:parseInt(V!=null?V:"0",10)}function correctItemSize(L,V){return Math.round(L.getBoundingClientRect()[V])}function approximatelyEqual(L,V){return Math.abs(L-V)<1.01}function useScrollTop(L,V,G,K=noop,ee){const te=require$$0.useRef(null),re=require$$0.useRef(null),ce=require$$0.useRef(null),ue=require$$0.useCallback(st=>{const Ae=st.target,at=Ae===window||Ae===document,ot=at?window.pageYOffset||document.documentElement.scrollTop:Ae.scrollTop,rt=at?document.documentElement.scrollHeight:Ae.scrollHeight,ft=at?window.innerHeight:Ae.offsetHeight,Oe=()=>{L({scrollTop:Math.max(ot,0),scrollHeight:rt,viewportHeight:ft})};st.suppressFlushSync?Oe():ReactDOM.flushSync(Oe),re.current!==null&&(ot===re.current||ot<=0||ot===rt-ft)&&(re.current=null,V(!0),ce.current&&(clearTimeout(ce.current),ce.current=null))},[L,V]);require$$0.useEffect(()=>{const st=ee||te.current;return K(ee||te.current),ue({target:st,suppressFlushSync:!0}),st.addEventListener("scroll",ue,{passive:!0}),()=>{K(null),st.removeEventListener("scroll",ue)}},[te,ue,G,K,ee]);function de(st){const Ae=te.current;if(!Ae||"offsetHeight"in Ae&&Ae.offsetHeight===0)return;const at=st.behavior==="smooth";let ot,rt,ft;Ae===window?(rt=Math.max(correctItemSize(document.documentElement,"height"),document.documentElement.scrollHeight),ot=window.innerHeight,ft=document.documentElement.scrollTop):(rt=Ae.scrollHeight,ot=correctItemSize(Ae,"height"),ft=Ae.scrollTop);const Oe=rt-ot;if(st.top=Math.ceil(Math.max(Math.min(Oe,st.top),0)),approximatelyEqual(ot,rt)||st.top===ft){L({scrollTop:ft,scrollHeight:rt,viewportHeight:ot}),at&&V(!0);return}at?(re.current=st.top,ce.current&&clearTimeout(ce.current),ce.current=setTimeout(()=>{ce.current=null,re.current=null,V(!0)},1e3)):re.current=null,Ae.scrollTo(st)}function ve(st){te.current.scrollBy(st)}return{scrollerRef:te,scrollByCallback:ve,scrollToCallback:de}}const domIOSystem=system(()=>{const L=stream(),V=stream(),G=statefulStream(0),K=stream(),ee=statefulStream(0),te=stream(),re=stream(),ce=statefulStream(0),ue=statefulStream(0),de=statefulStream(0),ve=statefulStream(0),st=stream(),Ae=stream(),at=statefulStream(!1);return connect(pipe(L,map(({scrollTop:ot})=>ot)),V),connect(pipe(L,map(({scrollHeight:ot})=>ot)),re),connect(V,ee),{scrollContainerState:L,scrollTop:V,viewportHeight:te,headerHeight:ce,fixedHeaderHeight:ue,fixedFooterHeight:de,footerHeight:ve,scrollHeight:re,smoothScrollTargetReached:K,scrollTo:st,scrollBy:Ae,statefulScrollTop:ee,deviation:G,scrollingInProgress:at}},[],{singleton:!0}),NIL_NODE={lvl:0};function newAANode(L,V,G,K=NIL_NODE,ee=NIL_NODE){return{k:L,v:V,lvl:G,l:K,r:ee}}function empty(L){return L===NIL_NODE}function newTree(){return NIL_NODE}function remove(L,V){if(empty(L))return NIL_NODE;const{k:G,l:K,r:ee}=L;if(V===G){if(empty(K))return ee;if(empty(ee))return K;{const[te,re]=last$2(K);return adjust(clone(L,{k:te,v:re,l:deleteLast(K)}))}}else return V<G?adjust(clone(L,{l:remove(K,V)})):adjust(clone(L,{r:remove(ee,V)}))}function find(L,V){if(!empty(L))return V===L.k?L.v:V<L.k?find(L.l,V):find(L.r,V)}function findMaxKeyValue(L,V,G="k"){if(empty(L))return[-1/0,void 0];if(Number(L[G])===V)return[L.k,L.v];if(Number(L[G])<V){const K=findMaxKeyValue(L.r,V,G);return K[0]===-1/0?[L.k,L.v]:K}return findMaxKeyValue(L.l,V,G)}function insert(L,V,G){return empty(L)?newAANode(V,G,1):V===L.k?clone(L,{k:V,v:G}):V<L.k?rebalance(clone(L,{l:insert(L.l,V,G)})):rebalance(clone(L,{r:insert(L.r,V,G)}))}function walkWithin(L,V,G){if(empty(L))return[];const{k:K,v:ee,l:te,r:re}=L;let ce=[];return K>V&&(ce=ce.concat(walkWithin(te,V,G))),K>=V&&K<=G&&ce.push({k:K,v:ee}),K<=G&&(ce=ce.concat(walkWithin(re,V,G))),ce}function walk(L){return empty(L)?[]:[...walk(L.l),{k:L.k,v:L.v},...walk(L.r)]}function last$2(L){return empty(L.r)?[L.k,L.v]:last$2(L.r)}function deleteLast(L){return empty(L.r)?L.l:adjust(clone(L,{r:deleteLast(L.r)}))}function clone(L,V){return newAANode(V.k!==void 0?V.k:L.k,V.v!==void 0?V.v:L.v,V.lvl!==void 0?V.lvl:L.lvl,V.l!==void 0?V.l:L.l,V.r!==void 0?V.r:L.r)}function isSingle(L){return empty(L)||L.lvl>L.r.lvl}function rebalance(L){return split$2(skew(L))}function adjust(L){const{l:V,r:G,lvl:K}=L;if(G.lvl>=K-1&&V.lvl>=K-1)return L;if(K>G.lvl+1){if(isSingle(V))return skew(clone(L,{lvl:K-1}));if(!empty(V)&&!empty(V.r))return clone(V.r,{l:clone(V,{r:V.r.l}),r:clone(L,{l:V.r.r,lvl:K-1}),lvl:K});throw new Error("Unexpected empty nodes")}else{if(isSingle(L))return split$2(clone(L,{lvl:K-1}));if(!empty(G)&&!empty(G.l)){const ee=G.l,te=isSingle(ee)?G.lvl-1:G.lvl;return clone(ee,{l:clone(L,{r:ee.l,lvl:K-1}),r:split$2(clone(G,{l:ee.r,lvl:te})),lvl:ee.lvl+1})}else throw new Error("Unexpected empty nodes")}}function rangesWithin(L,V,G){if(empty(L))return[];const K=findMaxKeyValue(L,V)[0];return toRanges(walkWithin(L,K,G))}function arrayToRanges(L,V){const G=L.length;if(G===0)return[];let{index:K,value:ee}=V(L[0]);const te=[];for(let re=1;re<G;re++){const{index:ce,value:ue}=V(L[re]);te.push({start:K,end:ce-1,value:ee}),K=ce,ee=ue}return te.push({start:K,end:1/0,value:ee}),te}function toRanges(L){return arrayToRanges(L,({k:V,v:G})=>({index:V,value:G}))}function split$2(L){const{r:V,lvl:G}=L;return!empty(V)&&!empty(V.r)&&V.lvl===G&&V.r.lvl===G?clone(V,{l:clone(L,{r:V.l}),lvl:G+1}):L}function skew(L){const{l:V}=L;return!empty(V)&&V.lvl===L.lvl?clone(V,{r:clone(L,{l:V.r})}):L}function findIndexOfClosestSmallerOrEqual(L,V,G,K=0){let ee=L.length-1;for(;K<=ee;){const te=Math.floor((K+ee)/2),re=L[te],ce=G(re,V);if(ce===0)return te;if(ce===-1){if(ee-K<2)return te-1;ee=te-1}else{if(ee===K)return te;K=te+1}}throw new Error(`Failed binary finding record in array - ${L.join(",")}, searched for ${V}`)}function findClosestSmallerOrEqual(L,V,G){return L[findIndexOfClosestSmallerOrEqual(L,V,G)]}function findRange(L,V,G,K){const ee=findIndexOfClosestSmallerOrEqual(L,V,K),te=findIndexOfClosestSmallerOrEqual(L,G,K,ee);return L.slice(ee,te+1)}const recalcSystem=system(()=>({recalcInProgress:statefulStream(!1)}),[],{singleton:!0});function rangeIncludes(L){const{size:V,startIndex:G,endIndex:K}=L;return ee=>ee.start===G&&(ee.end===K||ee.end===1/0)&&ee.value===V}function affectedGroupCount(L,V){let G=0,K=0;for(;G<L;)G+=V[K+1]-V[K]-1,K++;return K-(G===L?0:1)}function insertRanges(L,V){let G=empty(L)?0:1/0;for(const K of V){const{size:ee,startIndex:te,endIndex:re}=K;if(G=Math.min(G,te),empty(L)){L=insert(L,0,ee);continue}const ce=rangesWithin(L,te-1,re+1);if(ce.some(rangeIncludes(K)))continue;let ue=!1,de=!1;for(const{start:ve,end:st,value:Ae}of ce)ue?(re>=ve||ee===Ae)&&(L=remove(L,ve)):(de=Ae!==ee,ue=!0),st>re&&re>=ve&&Ae!==ee&&(L=insert(L,re+1,Ae));de&&(L=insert(L,te,ee))}return[L,G]}function initialSizeState(){return{offsetTree:[],sizeTree:newTree(),groupOffsetTree:newTree(),lastIndex:0,lastOffset:0,lastSize:0,groupIndices:[]}}function indexComparator({index:L},V){return V===L?0:V<L?-1:1}function offsetComparator({offset:L},V){return V===L?0:V<L?-1:1}function offsetPointParser(L){return{index:L.index,value:L}}function rangesWithinOffsets(L,V,G,K=0){return K>0&&(V=Math.max(V,findClosestSmallerOrEqual(L,K,indexComparator).offset)),arrayToRanges(findRange(L,V,G,offsetComparator),offsetPointParser)}function createOffsetTree(L,V,G,K){let ee=L,te=0,re=0,ce=0,ue=0;if(V!==0){ue=findIndexOfClosestSmallerOrEqual(ee,V-1,indexComparator),ce=ee[ue].offset;const ve=findMaxKeyValue(G,V-1);te=ve[0],re=ve[1],ee.length&&ee[ue].size===findMaxKeyValue(G,V)[1]&&(ue-=1),ee=ee.slice(0,ue+1)}else ee=[];for(const{start:de,value:ve}of rangesWithin(G,V,1/0)){const st=de-te,Ae=st*re+ce+st*K;ee.push({offset:Ae,size:ve,index:de}),te=de,ce=Ae,re=ve}return{offsetTree:ee,lastIndex:te,lastOffset:ce,lastSize:re}}function sizeStateReducer(L,[V,G,K,ee]){V.length>0&&K("received item sizes",V,LogLevel.DEBUG);const te=L.sizeTree;let re=te,ce=0;if(G.length>0&&empty(te)&&V.length===2){const Ae=V[0].size,at=V[1].size;re=G.reduce((ot,rt)=>insert(insert(ot,rt,Ae),rt+1,at),re)}else[re,ce]=insertRanges(re,V);if(re===te)return L;const{offsetTree:ue,lastIndex:de,lastSize:ve,lastOffset:st}=createOffsetTree(L.offsetTree,ce,re,ee);return{sizeTree:re,offsetTree:ue,lastIndex:de,lastOffset:st,lastSize:ve,groupOffsetTree:G.reduce((Ae,at)=>insert(Ae,at,offsetOf(at,ue,ee)),newTree()),groupIndices:G}}function offsetOf(L,V,G){if(V.length===0)return 0;const{offset:K,index:ee,size:te}=findClosestSmallerOrEqual(V,L,indexComparator),re=L-ee,ce=te*re+(re-1)*G+K;return ce>0?ce+G:ce}function isGroupLocation(L){return typeof L.groupIndex!="undefined"}function originalIndexFromLocation(L,V,G){if(isGroupLocation(L))return V.groupIndices[L.groupIndex]+1;{const K=L.index==="LAST"?G:L.index;let ee=originalIndexFromItemIndex(K,V);return ee=Math.max(0,ee,Math.min(G,ee)),ee}}function originalIndexFromItemIndex(L,V){if(!hasGroups(V))return L;let G=0;for(;V.groupIndices[G]<=L+G;)G++;return L+G}function hasGroups(L){return!empty(L.groupOffsetTree)}function sizeTreeToRanges(L){return walk(L).map(({k:V,v:G},K,ee)=>{const te=ee[K+1],re=te?te.k-1:1/0;return{startIndex:V,endIndex:re,size:G}})}const SIZE_MAP={offsetHeight:"height",offsetWidth:"width"},sizeSystem=system(([{log:L},{recalcInProgress:V}])=>{const G=stream(),K=stream(),ee=statefulStreamFromEmitter(K,0),te=stream(),re=stream(),ce=statefulStream(0),ue=statefulStream([]),de=statefulStream(void 0),ve=statefulStream(void 0),st=statefulStream((ct,ut)=>correctItemSize(ct,SIZE_MAP[ut])),Ae=statefulStream(void 0),at=statefulStream(0),ot=initialSizeState(),rt=statefulStreamFromEmitter(pipe(G,withLatestFrom(ue,L,at),scan(sizeStateReducer,ot),distinctUntilChanged()),ot),ft=statefulStreamFromEmitter(pipe(ue,distinctUntilChanged(),scan((ct,ut)=>({prev:ct.current,current:ut}),{prev:[],current:[]}),map(({prev:ct})=>ct)),[]);connect(pipe(ue,filter(ct=>ct.length>0),withLatestFrom(rt,at),map(([ct,ut,bt])=>{const gt=ct.reduce((Pt,Nt,Ot)=>insert(Pt,Nt,offsetOf(Nt,ut.offsetTree,bt)||Ot),newTree());return{...ut,groupIndices:ct,groupOffsetTree:gt}})),rt),connect(pipe(K,withLatestFrom(rt),filter(([ct,{lastIndex:ut}])=>ct<ut),map(([ct,{lastIndex:ut,lastSize:bt}])=>[{startIndex:ct,endIndex:ut,size:bt}])),G),connect(de,ve);const Oe=statefulStreamFromEmitter(pipe(de,map(ct=>ct===void 0)),!0);connect(pipe(ve,filter(ct=>ct!==void 0&&empty(getValue(rt).sizeTree)),map(ct=>[{startIndex:0,endIndex:0,size:ct}])),G);const nt=streamFromEmitter(pipe(G,withLatestFrom(rt),scan(({sizes:ct},[ut,bt])=>({changed:bt!==ct,sizes:bt}),{changed:!1,sizes:ot}),map(ct=>ct.changed)));subscribe(pipe(ce,scan((ct,ut)=>({diff:ct.prev-ut,prev:ut}),{diff:0,prev:0}),map(ct=>ct.diff)),ct=>{const{groupIndices:ut}=getValue(rt);if(ct>0)publish(V,!0),publish(te,ct+affectedGroupCount(ct,ut));else if(ct<0){const bt=getValue(ft);bt.length>0&&(ct-=affectedGroupCount(-ct,bt)),publish(re,ct)}}),subscribe(pipe(ce,withLatestFrom(L)),([ct,ut])=>{ct<0&&ut("`firstItemIndex` prop should not be set to less than zero. If you don't know the total count, just use a very high value",{firstItemIndex:ce},LogLevel.ERROR)});const it=streamFromEmitter(te);connect(pipe(te,withLatestFrom(rt),map(([ct,ut])=>{const bt=ut.groupIndices.length>0,gt=[],Pt=ut.lastSize;if(bt){const Nt=find(ut.sizeTree,0);let Ot=0,Ft=0;for(;Ot<ct;){const At=ut.groupIndices[Ft],$t=ut.groupIndices.length===Ft+1?1/0:ut.groupIndices[Ft+1]-At-1;gt.push({startIndex:At,endIndex:At,size:Nt}),gt.push({startIndex:At+1,endIndex:At+1+$t-1,size:Pt}),Ft++,Ot+=$t+1}const jt=walk(ut.sizeTree);return Ot!==ct&&jt.shift(),jt.reduce((At,{k:$t,v:Ct})=>{let dt=At.ranges;return At.prevSize!==0&&(dt=[...At.ranges,{startIndex:At.prevIndex,endIndex:$t+ct-1,size:At.prevSize}]),{ranges:dt,prevIndex:$t+ct,prevSize:Ct}},{ranges:gt,prevIndex:ct,prevSize:0}).ranges}return walk(ut.sizeTree).reduce((Nt,{k:Ot,v:Ft})=>({ranges:[...Nt.ranges,{startIndex:Nt.prevIndex,endIndex:Ot+ct-1,size:Nt.prevSize}],prevIndex:Ot+ct,prevSize:Ft}),{ranges:[],prevIndex:0,prevSize:Pt}).ranges})),G);const lt=streamFromEmitter(pipe(re,withLatestFrom(rt,at),map(([ct,{offsetTree:ut},bt])=>{const gt=-ct;return offsetOf(gt,ut,bt)})));return connect(pipe(re,withLatestFrom(rt,at),map(([ct,ut,bt])=>{if(ut.groupIndices.length>0){if(empty(ut.sizeTree))return ut;let Pt=newTree();const Nt=getValue(ft);let Ot=0,Ft=0,jt=0;for(;Ot<-ct;){jt=Nt[Ft];const At=Nt[Ft+1]-jt-1;Ft++,Ot+=At+1}if(Pt=walk(ut.sizeTree).reduce((At,{k:$t,v:Ct})=>insert(At,Math.max(0,$t+ct),Ct),Pt),Ot!==-ct){const At=find(ut.sizeTree,jt);Pt=insert(Pt,0,At);const $t=findMaxKeyValue(ut.sizeTree,-ct+1)[1];Pt=insert(Pt,1,$t)}return{...ut,sizeTree:Pt,...createOffsetTree(ut.offsetTree,0,Pt,bt)}}else{const Pt=walk(ut.sizeTree).reduce((Nt,{k:Ot,v:Ft})=>insert(Nt,Math.max(0,Ot+ct),Ft),newTree());return{...ut,sizeTree:Pt,...createOffsetTree(ut.offsetTree,0,Pt,bt)}}})),rt),{data:Ae,totalCount:K,sizeRanges:G,groupIndices:ue,defaultItemSize:ve,fixedItemSize:de,unshiftWith:te,shiftWith:re,shiftWithOffset:lt,beforeUnshiftWith:it,firstItemIndex:ce,gap:at,sizes:rt,listRefresh:nt,statefulTotalCount:ee,trackItemSizes:Oe,itemSize:st}},tup(loggerSystem,recalcSystem),{singleton:!0}),SUPPORTS_SCROLL_TO_OPTIONS=typeof document!="undefined"&&"scrollBehavior"in document.documentElement.style;function normalizeIndexLocation(L){const V=typeof L=="number"?{index:L}:L;return V.align||(V.align="start"),(!V.behavior||!SUPPORTS_SCROLL_TO_OPTIONS)&&(V.behavior="auto"),V.offset||(V.offset=0),V}const scrollToIndexSystem=system(([{sizes:L,totalCount:V,listRefresh:G,gap:K},{scrollingInProgress:ee,viewportHeight:te,scrollTo:re,smoothScrollTargetReached:ce,headerHeight:ue,footerHeight:de,fixedHeaderHeight:ve,fixedFooterHeight:st},{log:Ae}])=>{const at=stream(),ot=stream(),rt=statefulStream(0);let ft=null,Oe=null,nt=null;function it(){ft&&(ft(),ft=null),nt&&(nt(),nt=null),Oe&&(clearTimeout(Oe),Oe=null),publish(ee,!1)}return connect(pipe(at,withLatestFrom(L,te,V,rt,ue,de,Ae),withLatestFrom(K,ve,st),map(([[lt,ct,ut,bt,gt,Pt,Nt,Ot],Ft,jt,Bt])=>{const At=normalizeIndexLocation(lt),{align:$t,behavior:Ct,offset:dt}=At,mt=bt-1,kt=originalIndexFromLocation(At,ct,mt);let It=offsetOf(kt,ct.offsetTree,Ft)+Pt;$t==="end"?(It+=jt+findMaxKeyValue(ct.sizeTree,kt)[1]-ut+Bt,kt===mt&&(It+=Nt)):$t==="center"?It+=(jt+findMaxKeyValue(ct.sizeTree,kt)[1]-ut+Bt)/2:It-=gt,dt&&(It+=dt);const Kt=Yt=>{it(),Yt?(Ot("retrying to scroll to",{location:lt},LogLevel.DEBUG),publish(at,lt)):(publish(ot,!0),Ot("list did not change, scroll successful",{},LogLevel.DEBUG))};if(it(),Ct==="smooth"){let Yt=!1;nt=subscribe(G,nr=>{Yt=Yt||nr}),ft=handleNext(ce,()=>{Kt(Yt)})}else ft=handleNext(pipe(G,watchChangesFor(150)),Kt);return Oe=setTimeout(()=>{it()},1200),publish(ee,!0),Ot("scrolling from index to",{index:kt,top:It,behavior:Ct},LogLevel.DEBUG),{top:It,behavior:Ct}})),re),{scrollToIndex:at,scrollTargetReached:ot,topListHeight:rt}},tup(sizeSystem,domIOSystem,loggerSystem),{singleton:!0});function watchChangesFor(L){return V=>{const G=setTimeout(()=>{V(!1)},L);return K=>{K&&(V(!0),clearTimeout(G))}}}const UP="up",DOWN="down",NONE$1="none",INITIAL_BOTTOM_STATE={atBottom:!1,notAtBottomBecause:"NOT_SHOWING_LAST_ITEM",state:{offsetBottom:0,scrollTop:0,viewportHeight:0,scrollHeight:0}},DEFAULT_AT_TOP_THRESHOLD=0,stateFlagsSystem=system(([{scrollContainerState:L,scrollTop:V,viewportHeight:G,headerHeight:K,footerHeight:ee,scrollBy:te}])=>{const re=statefulStream(!1),ce=statefulStream(!0),ue=stream(),de=stream(),ve=statefulStream(4),st=statefulStream(DEFAULT_AT_TOP_THRESHOLD),Ae=statefulStreamFromEmitter(pipe(merge$2(pipe(duc(V),skip(1),mapTo(!0)),pipe(duc(V),skip(1),mapTo(!1),debounceTime(100))),distinctUntilChanged()),!1),at=statefulStreamFromEmitter(pipe(merge$2(pipe(te,mapTo(!0)),pipe(te,mapTo(!1),debounceTime(200))),distinctUntilChanged()),!1);connect(pipe(combineLatest(duc(V),duc(st)),map(([nt,it])=>nt<=it),distinctUntilChanged()),ce),connect(pipe(ce,throttleTime(50)),de);const ot=streamFromEmitter(pipe(combineLatest(L,duc(G),duc(K),duc(ee),duc(ve)),scan((nt,[{scrollTop:it,scrollHeight:lt},ct,ut,bt,gt])=>{const Pt=it+ct-lt>-gt,Nt={viewportHeight:ct,scrollTop:it,scrollHeight:lt};if(Pt){let Ft,jt;return it>nt.state.scrollTop?(Ft="SCROLLED_DOWN",jt=nt.state.scrollTop-it):(Ft="SIZE_DECREASED",jt=nt.state.scrollTop-it||nt.scrollTopDelta),{atBottom:!0,state:Nt,atBottomBecause:Ft,scrollTopDelta:jt}}let Ot;return Nt.scrollHeight>nt.state.scrollHeight?Ot="SIZE_INCREASED":ct<nt.state.viewportHeight?Ot="VIEWPORT_HEIGHT_DECREASING":it<nt.state.scrollTop?Ot="SCROLLING_UPWARDS":Ot="NOT_FULLY_SCROLLED_TO_LAST_ITEM_BOTTOM",{atBottom:!1,notAtBottomBecause:Ot,state:Nt}},INITIAL_BOTTOM_STATE),distinctUntilChanged((nt,it)=>nt&&nt.atBottom===it.atBottom))),rt=statefulStreamFromEmitter(pipe(L,scan((nt,{scrollTop:it,scrollHeight:lt,viewportHeight:ct})=>{if(approximatelyEqual(nt.scrollHeight,lt))return{scrollTop:it,scrollHeight:lt,jump:0,changed:!1};{const ut=lt-(it+ct)<1;return nt.scrollTop!==it&&ut?{scrollHeight:lt,scrollTop:it,jump:nt.scrollTop-it,changed:!0}:{scrollHeight:lt,scrollTop:it,jump:0,changed:!0}}},{scrollHeight:0,jump:0,scrollTop:0,changed:!1}),filter(nt=>nt.changed),map(nt=>nt.jump)),0);connect(pipe(ot,map(nt=>nt.atBottom)),re),connect(pipe(re,throttleTime(50)),ue);const ft=statefulStream(DOWN);connect(pipe(L,map(({scrollTop:nt})=>nt),distinctUntilChanged(),scan((nt,it)=>getValue(at)?{direction:nt.direction,prevScrollTop:it}:{direction:it<nt.prevScrollTop?UP:DOWN,prevScrollTop:it},{direction:DOWN,prevScrollTop:0}),map(nt=>nt.direction)),ft),connect(pipe(L,throttleTime(50),mapTo(NONE$1)),ft);const Oe=statefulStream(0);return connect(pipe(Ae,filter(nt=>!nt),mapTo(0)),Oe),connect(pipe(V,throttleTime(100),withLatestFrom(Ae),filter(([nt,it])=>!!it),scan(([nt,it],[lt])=>[it,lt],[0,0]),map(([nt,it])=>it-nt)),Oe),{isScrolling:Ae,isAtTop:ce,isAtBottom:re,atBottomState:ot,atTopStateChange:de,atBottomStateChange:ue,scrollDirection:ft,atBottomThreshold:ve,atTopThreshold:st,scrollVelocity:Oe,lastJumpDueToItemResize:rt}},tup(domIOSystem)),propsReadySystem=system(([{log:L}])=>{const V=statefulStream(!1),G=streamFromEmitter(pipe(V,filter(K=>K),distinctUntilChanged()));return subscribe(V,K=>{K&&getValue(L)("props updated",{},LogLevel.DEBUG)}),{propsReady:V,didMount:G}},tup(loggerSystem),{singleton:!0});function skipFrames(L,V){L==0?V():requestAnimationFrame(()=>skipFrames(L-1,V))}function getInitialTopMostItemIndexNumber(L,V){const G=V-1;return typeof L=="number"?L:L.index==="LAST"?G:L.index}const initialTopMostItemIndexSystem=system(([{sizes:L,listRefresh:V,defaultItemSize:G},{scrollTop:K},{scrollToIndex:ee,scrollTargetReached:te},{didMount:re}])=>{const ce=statefulStream(!0),ue=statefulStream(0),de=statefulStream(!0);return connect(pipe(re,withLatestFrom(ue),filter(([ve,st])=>!!st),mapTo(!1)),ce),connect(pipe(re,withLatestFrom(ue),filter(([ve,st])=>!!st),mapTo(!1)),de),subscribe(pipe(combineLatest(V,re),withLatestFrom(ce,L,G,de),filter(([[,ve],st,{sizeTree:Ae},at,ot])=>ve&&(!empty(Ae)||isDefined(at))&&!st&&!ot),withLatestFrom(ue)),([,ve])=>{handleNext(te,()=>{publish(de,!0)}),skipFrames(4,()=>{handleNext(K,()=>{publish(ce,!0)}),publish(ee,ve)})}),{scrolledToInitialItem:ce,initialTopMostItemIndex:ue,initialItemFinalLocationReached:de}},tup(sizeSystem,domIOSystem,scrollToIndexSystem,propsReadySystem),{singleton:!0});function normalizeFollowOutput(L){return L?L==="smooth"?"smooth":"auto":!1}const behaviorFromFollowOutput=(L,V)=>typeof L=="function"?normalizeFollowOutput(L(V)):V&&normalizeFollowOutput(L),followOutputSystem=system(([{totalCount:L,listRefresh:V},{isAtBottom:G,atBottomState:K},{scrollToIndex:ee},{scrolledToInitialItem:te},{propsReady:re,didMount:ce},{log:ue},{scrollingInProgress:de}])=>{const ve=statefulStream(!1),st=stream();let Ae=null;function at(rt){publish(ee,{index:"LAST",align:"end",behavior:rt})}subscribe(pipe(combineLatest(pipe(duc(L),skip(1)),ce),withLatestFrom(duc(ve),G,te,de),map(([[rt,ft],Oe,nt,it,lt])=>{let ct=ft&&it,ut="auto";return ct&&(ut=behaviorFromFollowOutput(Oe,nt||lt),ct=ct&&!!ut),{totalCount:rt,shouldFollow:ct,followOutputBehavior:ut}}),filter(({shouldFollow:rt})=>rt)),({totalCount:rt,followOutputBehavior:ft})=>{Ae&&(Ae(),Ae=null),Ae=handleNext(V,()=>{getValue(ue)("following output to ",{totalCount:rt},LogLevel.DEBUG),at(ft),Ae=null})});function ot(rt){const ft=handleNext(K,Oe=>{rt&&!Oe.atBottom&&Oe.notAtBottomBecause==="SIZE_INCREASED"&&!Ae&&(getValue(ue)("scrolling to bottom due to increased size",{},LogLevel.DEBUG),at("auto"))});setTimeout(ft,100)}return subscribe(pipe(combineLatest(duc(ve),L,re),filter(([rt,,ft])=>rt&&ft),scan(({value:rt},[,ft])=>({refreshed:rt===ft,value:ft}),{refreshed:!1,value:0}),filter(({refreshed:rt})=>rt),withLatestFrom(ve,L)),([,rt])=>{getValue(te)&&ot(rt!==!1)}),subscribe(st,()=>{ot(getValue(ve)!==!1)}),subscribe(combineLatest(duc(ve),K),([rt,ft])=>{rt&&!ft.atBottom&&ft.notAtBottomBecause==="VIEWPORT_HEIGHT_DECREASING"&&at("auto")}),{followOutput:ve,autoscrollToBottom:st}},tup(sizeSystem,stateFlagsSystem,scrollToIndexSystem,initialTopMostItemIndexSystem,propsReadySystem,loggerSystem,domIOSystem));function groupCountsToIndicesAndCount(L){return L.reduce((V,G)=>(V.groupIndices.push(V.totalCount),V.totalCount+=G+1,V),{totalCount:0,groupIndices:[]})}const groupedListSystem=system(([{totalCount:L,groupIndices:V,sizes:G},{scrollTop:K,headerHeight:ee}])=>{const te=stream(),re=stream(),ce=streamFromEmitter(pipe(te,map(groupCountsToIndicesAndCount)));return connect(pipe(ce,map(ue=>ue.totalCount)),L),connect(pipe(ce,map(ue=>ue.groupIndices)),V),connect(pipe(combineLatest(K,G,ee),filter(([ue,de])=>hasGroups(de)),map(([ue,de,ve])=>findMaxKeyValue(de.groupOffsetTree,Math.max(ue-ve,0),"v")[0]),distinctUntilChanged(),map(ue=>[ue])),re),{groupCounts:te,topItemsIndexes:re}},tup(sizeSystem,domIOSystem));function tupleComparator(L,V){return!!(L&&L[0]===V[0]&&L[1]===V[1])}function rangeComparator(L,V){return!!(L&&L.startIndex===V.startIndex&&L.endIndex===V.endIndex)}const TOP="top",BOTTOM="bottom",NONE="none";function getOverscan(L,V,G){return typeof L=="number"?G===UP&&V===TOP||G===DOWN&&V===BOTTOM?L:0:G===UP?V===TOP?L.main:L.reverse:V===BOTTOM?L.main:L.reverse}function getViewportIncrease(L,V){return typeof L=="number"?L:L[V]||0}const sizeRangeSystem=system(([{scrollTop:L,viewportHeight:V,deviation:G,headerHeight:K,fixedHeaderHeight:ee}])=>{const te=stream(),re=statefulStream(0),ce=statefulStream(0),ue=statefulStream(0),de=statefulStreamFromEmitter(pipe(combineLatest(duc(L),duc(V),duc(K),duc(te,tupleComparator),duc(ue),duc(re),duc(ee),duc(G),duc(ce)),map(([ve,st,Ae,[at,ot],rt,ft,Oe,nt,it])=>{const lt=ve-nt,ct=ft+Oe,ut=Math.max(Ae-lt,0);let bt=NONE;const gt=getViewportIncrease(it,TOP),Pt=getViewportIncrease(it,BOTTOM);return at-=nt,at+=Ae+Oe,ot+=Ae+Oe,ot-=nt,at>ve+ct-gt&&(bt=UP),ot<ve-ut+st+Pt&&(bt=DOWN),bt!==NONE?[Math.max(lt-Ae-getOverscan(rt,TOP,bt)-gt,0),lt-ut-Oe+st+getOverscan(rt,BOTTOM,bt)+Pt]:null}),filter(ve=>ve!=null),distinctUntilChanged(tupleComparator)),[0,0]);return{listBoundary:te,overscan:ue,topListHeight:re,increaseViewportBy:ce,visibleRange:de}},tup(domIOSystem),{singleton:!0});function probeItemSet(L,V,G){if(hasGroups(V)){const K=originalIndexFromItemIndex(L,V);return[{index:findMaxKeyValue(V.groupOffsetTree,K)[0],size:0,offset:0},{index:K,size:0,offset:0,data:G&&G[0]}]}return[{index:L,size:0,offset:0,data:G&&G[0]}]}const EMPTY_LIST_STATE={items:[],topItems:[],offsetTop:0,offsetBottom:0,top:0,bottom:0,topListHeight:0,totalCount:0,firstItemIndex:0};function transposeItems(L,V,G){if(L.length===0)return[];if(!hasGroups(V))return L.map(de=>({...de,index:de.index+G,originalIndex:de.index}));const K=L[0].index,ee=L[L.length-1].index,te=[],re=rangesWithin(V.groupOffsetTree,K,ee);let ce,ue=0;for(const de of L){(!ce||ce.end<de.index)&&(ce=re.shift(),ue=V.groupIndices.indexOf(ce.start));let ve;de.index===ce.start?ve={type:"group",index:ue}:ve={index:de.index-(ue+1)+G,groupIndex:ue},te.push({...ve,size:de.size,offset:de.offset,originalIndex:de.index,data:de.data})}return te}function buildListState(L,V,G,K,ee,te){const{lastSize:re,lastOffset:ce,lastIndex:ue}=ee;let de=0,ve=0;if(L.length>0){de=L[0].offset;const rt=L[L.length-1];ve=rt.offset+rt.size}const st=G-ue,Ae=ce+st*re+(st-1)*K,at=de,ot=Ae-ve;return{items:transposeItems(L,ee,te),topItems:transposeItems(V,ee,te),topListHeight:V.reduce((rt,ft)=>ft.size+rt,0),offsetTop:de,offsetBottom:ot,top:at,bottom:ve,totalCount:G,firstItemIndex:te}}function buildListStateFromItemCount(L,V,G,K,ee,te){let re=0;if(G.groupIndices.length>0)for(const ve of G.groupIndices){if(ve-re>=L)break;re++}const ce=L+re,ue=getInitialTopMostItemIndexNumber(V,ce),de=Array.from({length:ce}).map((ve,st)=>({index:st+ue,size:0,offset:0,data:te[st+ue]}));return buildListState(de,[],ce,ee,G,K)}const listStateSystem=system(([{sizes:L,totalCount:V,data:G,firstItemIndex:K,gap:ee},te,{visibleRange:re,listBoundary:ce,topListHeight:ue},{scrolledToInitialItem:de,initialTopMostItemIndex:ve},{topListHeight:st},Ae,{didMount:at},{recalcInProgress:ot}])=>{const rt=statefulStream([]),ft=statefulStream(0),Oe=stream();connect(te.topItemsIndexes,rt);const nt=statefulStreamFromEmitter(pipe(combineLatest(at,ot,duc(re,tupleComparator),duc(V),duc(L),duc(ve),de,duc(rt),duc(K),duc(ee),G),filter(([ut,bt,,gt,,,,,,,Pt])=>{const Nt=Pt&&Pt.length!==gt;return ut&&!bt&&!Nt}),map(([,,[ut,bt],gt,Pt,Nt,Ot,Ft,jt,Bt,At])=>{const $t=Pt,{sizeTree:Ct,offsetTree:dt}=$t,mt=getValue(ft);if(gt===0)return{...EMPTY_LIST_STATE,totalCount:gt};if(ut===0&&bt===0)return mt===0?{...EMPTY_LIST_STATE,totalCount:gt}:buildListStateFromItemCount(mt,Nt,Pt,jt,Bt,At||[]);if(empty(Ct))return mt>0?null:buildListState(probeItemSet(getInitialTopMostItemIndexNumber(Nt,gt),$t,At),[],gt,Bt,$t,jt);const kt=[];if(Ft.length>0){const ur=Ft[0],Vt=Ft[Ft.length-1];let lr=0;for(const sr of rangesWithin(Ct,ur,Vt)){const pr=sr.value,gr=Math.max(sr.start,ur),ir=Math.min(sr.end,Vt);for(let Jt=gr;Jt<=ir;Jt++)kt.push({index:Jt,size:pr,offset:lr,data:At&&At[Jt]}),lr+=pr}}if(!Ot)return buildListState([],kt,gt,Bt,$t,jt);const It=Ft.length>0?Ft[Ft.length-1]+1:0,Kt=rangesWithinOffsets(dt,ut,bt,It);if(Kt.length===0)return null;const Yt=gt-1,nr=tap([],ur=>{for(const Vt of Kt){const lr=Vt.value;let sr=lr.offset,pr=Vt.start;const gr=lr.size;if(lr.offset<ut){pr+=Math.floor((ut-lr.offset+Bt)/(gr+Bt));const Jt=pr-Vt.start;sr+=Jt*gr+Jt*Bt}pr<It&&(sr+=(It-pr)*gr,pr=It);const ir=Math.min(Vt.end,Yt);for(let Jt=pr;Jt<=ir&&!(sr>=bt);Jt++)ur.push({index:Jt,size:gr,offset:sr,data:At&&At[Jt]}),sr+=gr+Bt}});return buildListState(nr,kt,gt,Bt,$t,jt)}),filter(ut=>ut!==null),distinctUntilChanged()),EMPTY_LIST_STATE);connect(pipe(G,filter(isDefined),map(ut=>ut==null?void 0:ut.length)),V),connect(pipe(nt,map(ut=>ut.topListHeight)),st),connect(st,ue),connect(pipe(nt,map(ut=>[ut.top,ut.bottom])),ce),connect(pipe(nt,map(ut=>ut.items)),Oe);const it=streamFromEmitter(pipe(nt,filter(({items:ut})=>ut.length>0),withLatestFrom(V,G),filter(([{items:ut},bt])=>ut[ut.length-1].originalIndex===bt-1),map(([,ut,bt])=>[ut-1,bt]),distinctUntilChanged(tupleComparator),map(([ut])=>ut))),lt=streamFromEmitter(pipe(nt,throttleTime(200),filter(({items:ut,topItems:bt})=>ut.length>0&&ut[0].originalIndex===bt.length),map(({items:ut})=>ut[0].index),distinctUntilChanged())),ct=streamFromEmitter(pipe(nt,filter(({items:ut})=>ut.length>0),map(({items:ut})=>{let bt=0,gt=ut.length-1;for(;ut[bt].type==="group"&&bt<gt;)bt++;for(;ut[gt].type==="group"&&gt>bt;)gt--;return{startIndex:ut[bt].index,endIndex:ut[gt].index}}),distinctUntilChanged(rangeComparator)));return{listState:nt,topItemsIndexes:rt,endReached:it,startReached:lt,rangeChanged:ct,itemsRendered:Oe,initialItemCount:ft,...Ae}},tup(sizeSystem,groupedListSystem,sizeRangeSystem,initialTopMostItemIndexSystem,scrollToIndexSystem,stateFlagsSystem,propsReadySystem,recalcSystem),{singleton:!0}),initialItemCountSystem=system(([{sizes:L,firstItemIndex:V,data:G,gap:K},{initialTopMostItemIndex:ee},{initialItemCount:te,listState:re},{didMount:ce}])=>(connect(pipe(ce,withLatestFrom(te),filter(([,ue])=>ue!==0),withLatestFrom(ee,L,V,K,G),map(([[,ue],de,ve,st,Ae,at=[]])=>buildListStateFromItemCount(ue,de,ve,st,Ae,at))),re),{}),tup(sizeSystem,initialTopMostItemIndexSystem,listStateSystem,propsReadySystem),{singleton:!0}),scrollSeekSystem=system(([{scrollVelocity:L}])=>{const V=statefulStream(!1),G=stream(),K=statefulStream(!1);return connect(pipe(L,withLatestFrom(K,V,G),filter(([ee,te])=>!!te),map(([ee,te,re,ce])=>{const{exit:ue,enter:de}=te;if(re){if(ue(ee,ce))return!1}else if(de(ee,ce))return!0;return re}),distinctUntilChanged()),V),subscribe(pipe(combineLatest(V,L,G),withLatestFrom(K)),([[ee,te,re],ce])=>ee&&ce&&ce.change&&ce.change(te,re)),{isSeeking:V,scrollSeekConfiguration:K,scrollVelocity:L,scrollSeekRangeChanged:G}},tup(stateFlagsSystem),{singleton:!0}),topItemCountSystem=system(([{topItemsIndexes:L}])=>{const V=statefulStream(0);return connect(pipe(V,filter(G=>G>0),map(G=>Array.from({length:G}).map((K,ee)=>ee))),L),{topItemCount:V}},tup(listStateSystem)),totalListHeightSystem=system(([{footerHeight:L,headerHeight:V,fixedHeaderHeight:G,fixedFooterHeight:K},{listState:ee}])=>{const te=stream(),re=statefulStreamFromEmitter(pipe(combineLatest(L,K,V,G,ee),map(([ce,ue,de,ve,st])=>ce+ue+de+ve+st.offsetBottom+st.bottom)),0);return connect(duc(re),te),{totalListHeight:re,totalListHeightChanged:te}},tup(domIOSystem,listStateSystem),{singleton:!0});function simpleMemoize(L){let V=!1,G;return()=>(V||(V=!0,G=L()),G)}const isMobileSafari=simpleMemoize(()=>/iP(ad|od|hone)/i.test(navigator.userAgent)&&/WebKit/i.test(navigator.userAgent)),upwardScrollFixSystem=system(([{scrollBy:L,scrollTop:V,deviation:G,scrollingInProgress:K},{isScrolling:ee,isAtBottom:te,scrollDirection:re,lastJumpDueToItemResize:ce},{listState:ue},{beforeUnshiftWith:de,shiftWithOffset:ve,sizes:st,gap:Ae},{log:at},{recalcInProgress:ot}])=>{const rt=streamFromEmitter(pipe(ue,withLatestFrom(ce),scan(([,Oe,nt,it],[{items:lt,totalCount:ct,bottom:ut,offsetBottom:bt},gt])=>{const Pt=ut+bt;let Nt=0;return nt===ct&&Oe.length>0&&lt.length>0&&(lt[0].originalIndex===0&&Oe[0].originalIndex===0||(Nt=Pt-it,Nt!==0&&(Nt+=gt))),[Nt,lt,ct,Pt]},[0,[],0,0]),filter(([Oe])=>Oe!==0),withLatestFrom(V,re,K,te,at,ot),filter(([,Oe,nt,it,,,lt])=>!lt&&!it&&Oe!==0&&nt===UP),map(([[Oe],,,,,nt])=>(nt("Upward scrolling compensation",{amount:Oe},LogLevel.DEBUG),Oe))));function ft(Oe){Oe>0?(publish(L,{top:-Oe,behavior:"auto"}),publish(G,0)):(publish(G,0),publish(L,{top:-Oe,behavior:"auto"}))}return subscribe(pipe(rt,withLatestFrom(G,ee)),([Oe,nt,it])=>{it&&isMobileSafari()?publish(G,nt-Oe):ft(-Oe)}),subscribe(pipe(combineLatest(statefulStreamFromEmitter(ee,!1),G,ot),filter(([Oe,nt,it])=>!Oe&&!it&&nt!==0),map(([Oe,nt])=>nt),throttleTime(1)),ft),connect(pipe(ve,map(Oe=>({top:-Oe}))),L),subscribe(pipe(de,withLatestFrom(st,Ae),map(([Oe,{lastSize:nt,groupIndices:it,sizeTree:lt},ct])=>{function ut(bt){return bt*(nt+ct)}if(it.length===0)return ut(Oe);{let bt=0;const gt=find(lt,0);let Pt=0,Nt=0;for(;Pt<Oe;){Pt++,bt+=gt;let Ot=it.length===Nt+1?1/0:it[Nt+1]-it[Nt]-1;Pt+Ot>Oe&&(bt-=gt,Ot=Oe-Pt+1),Pt+=Ot,bt+=ut(Ot),Nt++}return bt}})),Oe=>{publish(G,Oe),requestAnimationFrame(()=>{publish(L,{top:Oe}),requestAnimationFrame(()=>{publish(G,0),publish(ot,!1)})})}),{deviation:G}},tup(domIOSystem,stateFlagsSystem,listStateSystem,sizeSystem,loggerSystem,recalcSystem)),initialScrollTopSystem=system(([{didMount:L},{scrollTo:V},{listState:G}])=>{const K=statefulStream(0);return subscribe(pipe(L,withLatestFrom(K),filter(([,ee])=>ee!==0),map(([,ee])=>({top:ee}))),ee=>{handleNext(pipe(G,skip(1),filter(te=>te.items.length>1)),()=>{requestAnimationFrame(()=>{publish(V,ee)})})}),{initialScrollTop:K}},tup(propsReadySystem,domIOSystem,listStateSystem),{singleton:!0}),alignToBottomSystem=system(([{viewportHeight:L},{totalListHeight:V}])=>{const G=statefulStream(!1),K=statefulStreamFromEmitter(pipe(combineLatest(G,L,V),filter(([ee])=>ee),map(([,ee,te])=>Math.max(0,ee-te)),throttleTime(0),distinctUntilChanged()),0);return{alignToBottom:G,paddingTopAddition:K}},tup(domIOSystem,totalListHeightSystem),{singleton:!0}),windowScrollerSystem=system(([{scrollTo:L,scrollContainerState:V}])=>{const G=stream(),K=stream(),ee=stream(),te=statefulStream(!1),re=statefulStream(void 0);return connect(pipe(combineLatest(G,K),map(([{viewportHeight:ce,scrollTop:ue,scrollHeight:de},{offsetTop:ve}])=>({scrollTop:Math.max(0,ue-ve),scrollHeight:de,viewportHeight:ce}))),V),connect(pipe(L,withLatestFrom(K),map(([ce,{offsetTop:ue}])=>({...ce,top:ce.top+ue}))),ee),{useWindowScroll:te,customScrollParent:re,windowScrollContainerState:G,windowViewportRect:K,windowScrollTo:ee}},tup(domIOSystem)),defaultCalculateViewLocation=({itemTop:L,itemBottom:V,viewportTop:G,viewportBottom:K,locationParams:{behavior:ee,align:te,...re}})=>L<G?{...re,behavior:ee,align:te!=null?te:"start"}:V>K?{...re,behavior:ee,align:te!=null?te:"end"}:null,scrollIntoViewSystem=system(([{sizes:L,totalCount:V,gap:G},{scrollTop:K,viewportHeight:ee,headerHeight:te,fixedHeaderHeight:re,fixedFooterHeight:ce,scrollingInProgress:ue},{scrollToIndex:de}])=>{const ve=stream();return connect(pipe(ve,withLatestFrom(L,ee,V,te,re,ce,K),withLatestFrom(G),map(([[st,Ae,at,ot,rt,ft,Oe,nt],it])=>{const{done:lt,behavior:ct,align:ut,calculateViewLocation:bt=defaultCalculateViewLocation,...gt}=st,Pt=originalIndexFromLocation(st,Ae,ot-1),Nt=offsetOf(Pt,Ae.offsetTree,it)+rt+ft,Ot=Nt+findMaxKeyValue(Ae.sizeTree,Pt)[1],Ft=nt+ft,jt=nt+at-Oe,Bt=bt({itemTop:Nt,itemBottom:Ot,viewportTop:Ft,viewportBottom:jt,locationParams:{behavior:ct,align:ut,...gt}});return Bt?lt&&handleNext(pipe(ue,filter(At=>At===!1),skip(getValue(ue)?1:2)),lt):lt&&lt(),Bt}),filter(st=>st!==null)),de),{scrollIntoView:ve}},tup(sizeSystem,domIOSystem,scrollToIndexSystem,listStateSystem,loggerSystem),{singleton:!0}),stateLoadSystem=system(([{sizes:L,sizeRanges:V},{scrollTop:G},{initialTopMostItemIndex:K},{didMount:ee},{useWindowScroll:te,windowScrollContainerState:re,windowViewportRect:ce}])=>{const ue=stream(),de=statefulStream(void 0),ve=statefulStream(null),st=statefulStream(null);return connect(re,ve),connect(ce,st),subscribe(pipe(ue,withLatestFrom(L,G,te,ve,st)),([Ae,at,ot,rt,ft,Oe])=>{const nt=sizeTreeToRanges(at.sizeTree);rt&&ft!==null&&Oe!==null&&(ot=ft.scrollTop-Oe.offsetTop),Ae({ranges:nt,scrollTop:ot})}),connect(pipe(de,filter(isDefined),map(locationFromSnapshot)),K),connect(pipe(ee,withLatestFrom(de),filter(([,Ae])=>Ae!==void 0),distinctUntilChanged(),map(([,Ae])=>Ae.ranges)),V),{getState:ue,restoreStateFrom:de}},tup(sizeSystem,domIOSystem,initialTopMostItemIndexSystem,propsReadySystem,windowScrollerSystem));function locationFromSnapshot(L){return{offset:L.scrollTop,index:0,align:"start"}}const featureGroup1System=system(([L,V,G,K,ee,te,re,ce,ue,de])=>({...L,...V,...G,...K,...ee,...te,...re,...ce,...ue,...de}),tup(sizeRangeSystem,initialItemCountSystem,propsReadySystem,scrollSeekSystem,totalListHeightSystem,initialScrollTopSystem,alignToBottomSystem,windowScrollerSystem,scrollIntoViewSystem,loggerSystem)),listSystem=system(([{totalCount:L,sizeRanges:V,fixedItemSize:G,defaultItemSize:K,trackItemSizes:ee,itemSize:te,data:re,firstItemIndex:ce,groupIndices:ue,statefulTotalCount:de,gap:ve,sizes:st},{initialTopMostItemIndex:Ae,scrolledToInitialItem:at,initialItemFinalLocationReached:ot},rt,ft,Oe,{listState:nt,topItemsIndexes:it,...lt},{scrollToIndex:ct},ut,{topItemCount:bt},{groupCounts:gt},Pt])=>(connect(lt.rangeChanged,Pt.scrollSeekRangeChanged),connect(pipe(Pt.windowViewportRect,map(Nt=>Nt.visibleHeight)),rt.viewportHeight),{totalCount:L,data:re,firstItemIndex:ce,sizeRanges:V,initialTopMostItemIndex:Ae,scrolledToInitialItem:at,initialItemFinalLocationReached:ot,topItemsIndexes:it,topItemCount:bt,groupCounts:gt,fixedItemHeight:G,defaultItemHeight:K,gap:ve,...Oe,statefulTotalCount:de,listState:nt,scrollToIndex:ct,trackItemSizes:ee,itemSize:te,groupIndices:ue,...lt,...Pt,...rt,sizes:st,...ft}),tup(sizeSystem,initialTopMostItemIndexSystem,domIOSystem,stateLoadSystem,followOutputSystem,listStateSystem,scrollToIndexSystem,upwardScrollFixSystem,topItemCountSystem,groupedListSystem,featureGroup1System)),WEBKIT_STICKY="-webkit-sticky",STICKY="sticky",positionStickyCssValue=simpleMemoize(()=>{if(typeof document=="undefined")return STICKY;const L=document.createElement("div");return L.style.position=WEBKIT_STICKY,L.style.position===WEBKIT_STICKY?WEBKIT_STICKY:STICKY});function useWindowViewportRectRef(L,V){const G=require$$0.useRef(null),K=require$$0.useCallback(ce=>{if(ce===null||!ce.offsetParent)return;const ue=ce.getBoundingClientRect(),de=ue.width;let ve,st;if(V){const Ae=V.getBoundingClientRect(),at=ue.top-Ae.top;ve=Ae.height-Math.max(0,at),st=at+V.scrollTop}else ve=window.innerHeight-Math.max(0,ue.top),st=ue.top+window.pageYOffset;G.current={offsetTop:st,visibleHeight:ve,visibleWidth:de},L(G.current)},[L,V]),{callbackRef:ee,ref:te}=useSizeWithElRef(K),re=require$$0.useCallback(()=>{K(te.current)},[K,te]);return require$$0.useEffect(()=>{if(V){V.addEventListener("scroll",re);const ce=new ResizeObserver(()=>{requestAnimationFrame(re)});return ce.observe(V),()=>{V.removeEventListener("scroll",re),ce.unobserve(V)}}else return window.addEventListener("scroll",re),window.addEventListener("resize",re),()=>{window.removeEventListener("scroll",re),window.removeEventListener("resize",re)}},[re,V]),ee}const VirtuosoMockContext=require$$0.createContext(void 0),VirtuosoGridMockContext=require$$0.createContext(void 0);function identity$4(L){return L}const listComponentPropsSystem=system(()=>{const L=statefulStream(ue=>`Item ${ue}`),V=statefulStream(null),G=statefulStream(ue=>`Group ${ue}`),K=statefulStream({}),ee=statefulStream(identity$4),te=statefulStream("div"),re=statefulStream(noop),ce=(ue,de=null)=>statefulStreamFromEmitter(pipe(K,map(ve=>ve[ue]),distinctUntilChanged()),de);return{context:V,itemContent:L,groupContent:G,components:K,computeItemKey:ee,headerFooterTag:te,scrollerRef:re,FooterComponent:ce("Footer"),HeaderComponent:ce("Header"),TopItemListComponent:ce("TopItemList"),ListComponent:ce("List","div"),ItemComponent:ce("Item","div"),GroupComponent:ce("Group","div"),ScrollerComponent:ce("Scroller","div"),EmptyPlaceholder:ce("EmptyPlaceholder"),ScrollSeekPlaceholder:ce("ScrollSeekPlaceholder")}}),combinedSystem$2=system(([L,V])=>({...L,...V}),tup(listSystem,listComponentPropsSystem)),DefaultScrollSeekPlaceholder$1=({height:L})=>require$$0.createElement("div",{style:{height:L}}),GROUP_STYLE={position:positionStickyCssValue(),zIndex:1,overflowAnchor:"none"},ITEM_STYLE$1={overflowAnchor:"none"},Items$1=require$$0.memo(function L({showTopList:V=!1}){const G=useEmitterValue$2("listState"),K=usePublisher$2("sizeRanges"),ee=useEmitterValue$2("useWindowScroll"),te=useEmitterValue$2("customScrollParent"),re=usePublisher$2("windowScrollContainerState"),ce=usePublisher$2("scrollContainerState"),ue=te||ee?re:ce,de=useEmitterValue$2("itemContent"),ve=useEmitterValue$2("context"),st=useEmitterValue$2("groupContent"),Ae=useEmitterValue$2("trackItemSizes"),at=useEmitterValue$2("itemSize"),ot=useEmitterValue$2("log"),rt=usePublisher$2("gap"),{callbackRef:ft}=useChangedListContentsSizes(K,at,Ae,V?noop:ue,ot,rt,te),[Oe,nt]=require$$0.useState(0);useEmitter$2("deviation",Bt=>{Oe!==Bt&&nt(Bt)});const it=useEmitterValue$2("EmptyPlaceholder"),lt=useEmitterValue$2("ScrollSeekPlaceholder")||DefaultScrollSeekPlaceholder$1,ct=useEmitterValue$2("ListComponent"),ut=useEmitterValue$2("ItemComponent"),bt=useEmitterValue$2("GroupComponent"),gt=useEmitterValue$2("computeItemKey"),Pt=useEmitterValue$2("isSeeking"),Nt=useEmitterValue$2("groupIndices").length>0,Ot=useEmitterValue$2("alignToBottom"),Ft=useEmitterValue$2("initialItemFinalLocationReached"),jt=V?{}:{boxSizing:"border-box",paddingTop:G.offsetTop,paddingBottom:G.offsetBottom,marginTop:Oe!==0?Oe:Ot?"auto":0,...Ft?{}:{visibility:"hidden"}};return!V&&G.totalCount===0&&it?require$$0.createElement(it,contextPropIfNotDomElement(it,ve)):require$$0.createElement(ct,{...contextPropIfNotDomElement(ct,ve),ref:ft,style:jt,"data-testid":V?"virtuoso-top-item-list":"virtuoso-item-list"},(V?G.topItems:G.items).map(Bt=>{const At=Bt.originalIndex,$t=gt(At+G.firstItemIndex,Bt.data,ve);return Pt?require$$0.createElement(lt,{...contextPropIfNotDomElement(lt,ve),key:$t,index:Bt.index,height:Bt.size,type:Bt.type||"item",...Bt.type==="group"?{}:{groupIndex:Bt.groupIndex}}):Bt.type==="group"?require$$0.createElement(bt,{...contextPropIfNotDomElement(bt,ve),key:$t,"data-index":At,"data-known-size":Bt.size,"data-item-index":Bt.index,style:GROUP_STYLE},st(Bt.index,ve)):require$$0.createElement(ut,{...contextPropIfNotDomElement(ut,ve),...itemPropIfNotDomElement(ut,Bt.data),key:$t,"data-index":At,"data-known-size":Bt.size,"data-item-index":Bt.index,"data-item-group-index":Bt.groupIndex,style:ITEM_STYLE$1},Nt?de(Bt.index,Bt.groupIndex,Bt.data,ve):de(Bt.index,Bt.data,ve))}))}),scrollerStyle={height:"100%",outline:"none",overflowY:"auto",position:"relative",WebkitOverflowScrolling:"touch"},viewportStyle=L=>({width:"100%",height:"100%",position:"absolute",top:0,...L?{display:"flex",flexDirection:"column"}:{}}),topItemListStyle={width:"100%",position:positionStickyCssValue(),top:0,zIndex:1};function contextPropIfNotDomElement(L,V){if(typeof L!="string")return{context:V}}function itemPropIfNotDomElement(L,V){return{item:typeof L=="string"?void 0:V}}const Header$1=require$$0.memo(function L(){const V=useEmitterValue$2("HeaderComponent"),G=usePublisher$2("headerHeight"),K=useEmitterValue$2("headerFooterTag"),ee=useSize(re=>G(correctItemSize(re,"height"))),te=useEmitterValue$2("context");return V?require$$0.createElement(K,{ref:ee},require$$0.createElement(V,contextPropIfNotDomElement(V,te))):null}),Footer$1=require$$0.memo(function L(){const V=useEmitterValue$2("FooterComponent"),G=usePublisher$2("footerHeight"),K=useEmitterValue$2("headerFooterTag"),ee=useSize(re=>G(correctItemSize(re,"height"))),te=useEmitterValue$2("context");return V?require$$0.createElement(K,{ref:ee},require$$0.createElement(V,contextPropIfNotDomElement(V,te))):null});function buildScroller({usePublisher:L,useEmitter:V,useEmitterValue:G}){return require$$0.memo(function({style:te,children:re,...ce}){const ue=L("scrollContainerState"),de=G("ScrollerComponent"),ve=L("smoothScrollTargetReached"),st=G("scrollerRef"),Ae=G("context"),{scrollerRef:at,scrollByCallback:ot,scrollToCallback:rt}=useScrollTop(ue,ve,de,st);return V("scrollTo",rt),V("scrollBy",ot),require$$0.createElement(de,{ref:at,style:{...scrollerStyle,...te},"data-testid":"virtuoso-scroller","data-virtuoso-scroller":!0,tabIndex:0,...ce,...contextPropIfNotDomElement(de,Ae)},re)})}function buildWindowScroller({usePublisher:L,useEmitter:V,useEmitterValue:G}){return require$$0.memo(function({style:te,children:re,...ce}){const ue=L("windowScrollContainerState"),de=G("ScrollerComponent"),ve=L("smoothScrollTargetReached"),st=G("totalListHeight"),Ae=G("deviation"),at=G("customScrollParent"),ot=G("context"),{scrollerRef:rt,scrollByCallback:ft,scrollToCallback:Oe}=useScrollTop(ue,ve,de,noop,at);return useIsomorphicLayoutEffect$1(()=>(rt.current=at||window,()=>{rt.current=null}),[rt,at]),V("windowScrollTo",Oe),V("scrollBy",ft),require$$0.createElement(de,{style:{position:"relative",...te,...st!==0?{height:st+Ae}:{}},"data-virtuoso-scroller":!0,...ce,...contextPropIfNotDomElement(de,ot)},re)})}const Viewport$2=({children:L})=>{const V=require$$0.useContext(VirtuosoMockContext),G=usePublisher$2("viewportHeight"),K=usePublisher$2("fixedItemHeight"),ee=useEmitterValue$2("alignToBottom"),te=useSize(compose(G,re=>correctItemSize(re,"height")));return require$$0.useEffect(()=>{V&&(G(V.viewportHeight),K(V.itemHeight))},[V,G,K]),require$$0.createElement("div",{style:viewportStyle(ee),ref:te,"data-viewport-type":"element"},L)},WindowViewport$2=({children:L})=>{const V=require$$0.useContext(VirtuosoMockContext),G=usePublisher$2("windowViewportRect"),K=usePublisher$2("fixedItemHeight"),ee=useEmitterValue$2("customScrollParent"),te=useWindowViewportRectRef(G,ee),re=useEmitterValue$2("alignToBottom");return require$$0.useEffect(()=>{V&&(K(V.itemHeight),G({offsetTop:0,visibleHeight:V.viewportHeight,visibleWidth:100}))},[V,G,K]),require$$0.createElement("div",{ref:te,style:viewportStyle(re),"data-viewport-type":"window"},L)},TopItemListContainer=({children:L})=>{const V=useEmitterValue$2("TopItemListComponent")||"div",G=useEmitterValue$2("headerHeight"),K={...topItemListStyle,marginTop:`${G}px`},ee=useEmitterValue$2("context");return require$$0.createElement(V,{style:K,...contextPropIfNotDomElement(V,ee)},L)},ListRoot=require$$0.memo(function L(V){const G=useEmitterValue$2("useWindowScroll"),K=useEmitterValue$2("topItemsIndexes").length>0,ee=useEmitterValue$2("customScrollParent"),te=ee||G?WindowScroller$2:Scroller$2,re=ee||G?WindowViewport$2:Viewport$2;return require$$0.createElement(te,{...V},K&&require$$0.createElement(TopItemListContainer,null,require$$0.createElement(Items$1,{showTopList:!0})),require$$0.createElement(re,null,require$$0.createElement(Header$1,null),require$$0.createElement(Items$1,null),require$$0.createElement(Footer$1,null)))}),{Component:List,usePublisher:usePublisher$2,useEmitterValue:useEmitterValue$2,useEmitter:useEmitter$2}=systemToComponent(combinedSystem$2,{required:{},optional:{restoreStateFrom:"restoreStateFrom",context:"context",followOutput:"followOutput",itemContent:"itemContent",groupContent:"groupContent",overscan:"overscan",increaseViewportBy:"increaseViewportBy",totalCount:"totalCount",groupCounts:"groupCounts",topItemCount:"topItemCount",firstItemIndex:"firstItemIndex",initialTopMostItemIndex:"initialTopMostItemIndex",components:"components",atBottomThreshold:"atBottomThreshold",atTopThreshold:"atTopThreshold",computeItemKey:"computeItemKey",defaultItemHeight:"defaultItemHeight",fixedItemHeight:"fixedItemHeight",itemSize:"itemSize",scrollSeekConfiguration:"scrollSeekConfiguration",headerFooterTag:"headerFooterTag",data:"data",initialItemCount:"initialItemCount",initialScrollTop:"initialScrollTop",alignToBottom:"alignToBottom",useWindowScroll:"useWindowScroll",customScrollParent:"customScrollParent",scrollerRef:"scrollerRef",logLevel:"logLevel"},methods:{scrollToIndex:"scrollToIndex",scrollIntoView:"scrollIntoView",scrollTo:"scrollTo",scrollBy:"scrollBy",autoscrollToBottom:"autoscrollToBottom",getState:"getState"},events:{isScrolling:"isScrolling",endReached:"endReached",startReached:"startReached",rangeChanged:"rangeChanged",atBottomStateChange:"atBottomStateChange",atTopStateChange:"atTopStateChange",totalListHeightChanged:"totalListHeightChanged",itemsRendered:"itemsRendered",groupIndices:"groupIndices"}},ListRoot),Scroller$2=buildScroller({usePublisher:usePublisher$2,useEmitterValue:useEmitterValue$2,useEmitter:useEmitter$2}),WindowScroller$2=buildWindowScroller({usePublisher:usePublisher$2,useEmitterValue:useEmitterValue$2,useEmitter:useEmitter$2}),GroupedVirtuoso=List,INITIAL_GRID_STATE={items:[],offsetBottom:0,offsetTop:0,top:0,bottom:0,itemHeight:0,itemWidth:0},PROBE_GRID_STATE={items:[{index:0}],offsetBottom:0,offsetTop:0,top:0,bottom:0,itemHeight:0,itemWidth:0},{round,ceil,floor,min:min$2,max:max$2}=Math;function buildProbeGridState(L){return{...PROBE_GRID_STATE,items:L}}function buildItems(L,V,G){return Array.from({length:V-L+1}).map((K,ee)=>{const te=G===null?null:G[ee+L];return{index:ee+L,data:te}})}function gapComparator(L,V){return L&&L.column===V.column&&L.row===V.row}function dimensionComparator(L,V){return L&&L.width===V.width&&L.height===V.height}const gridSystem=system(([{overscan:L,visibleRange:V,listBoundary:G},{scrollTop:K,viewportHeight:ee,scrollBy:te,scrollTo:re,smoothScrollTargetReached:ce,scrollContainerState:ue,footerHeight:de,headerHeight:ve},st,Ae,{propsReady:at,didMount:ot},{windowViewportRect:rt,useWindowScroll:ft,customScrollParent:Oe,windowScrollContainerState:nt,windowScrollTo:it},lt])=>{const ct=statefulStream(0),ut=statefulStream(0),bt=statefulStream(INITIAL_GRID_STATE),gt=statefulStream({height:0,width:0}),Pt=statefulStream({height:0,width:0}),Nt=stream(),Ot=stream(),Ft=statefulStream(0),jt=statefulStream(null),Bt=statefulStream({row:0,column:0}),At=stream(),$t=stream(),Ct=statefulStream(!1),dt=statefulStream(0),mt=statefulStream(!0),kt=statefulStream(!1);subscribe(pipe(ot,withLatestFrom(dt),filter(([Vt,lr])=>!!lr)),()=>{publish(mt,!1),publish(ut,0)}),subscribe(pipe(combineLatest(ot,mt,Pt,gt,dt,kt),filter(([Vt,lr,sr,pr,,gr])=>Vt&&!lr&&sr.height!==0&&pr.height!==0&&!gr)),([,,,,Vt])=>{publish(kt,!0),skipFrames(1,()=>{publish(Nt,Vt)}),handleNext(pipe(K),()=>{publish(G,[0,0]),publish(mt,!0)})}),connect(pipe($t,filter(Vt=>Vt!=null&&Vt.scrollTop>0),mapTo(0)),ut),subscribe(pipe(ot,withLatestFrom($t),filter(([,Vt])=>Vt!=null)),([,Vt])=>{!Vt||(publish(gt,Vt.viewport),publish(Pt,Vt==null?void 0:Vt.item),publish(Bt,Vt.gap),Vt.scrollTop>0&&(publish(Ct,!0),handleNext(pipe(K,skip(1)),lr=>{publish(Ct,!1)}),publish(re,{top:Vt.scrollTop})))}),connect(pipe(gt,map(({height:Vt})=>Vt)),ee),connect(pipe(combineLatest(duc(gt,dimensionComparator),duc(Pt,dimensionComparator),duc(Bt,(Vt,lr)=>Vt&&Vt.column===lr.column&&Vt.row===lr.row),duc(K)),map(([Vt,lr,sr,pr])=>({viewport:Vt,item:lr,gap:sr,scrollTop:pr}))),At),connect(pipe(combineLatest(duc(ct),V,duc(Bt,gapComparator),duc(Pt,dimensionComparator),duc(gt,dimensionComparator),duc(jt),duc(ut),duc(Ct),duc(mt),duc(dt)),filter(([,,,,,,,Vt])=>!Vt),map(([Vt,[lr,sr],pr,gr,ir,Jt,cr,,tr,xr])=>{const{row:Sr,column:Cr}=pr,{height:wr,width:Lt}=gr,{width:Gt}=ir;if(cr===0&&(Vt===0||Gt===0))return INITIAL_GRID_STATE;if(Lt===0){const Ut=getInitialTopMostItemIndexNumber(xr,Vt),or=Ut===0?Math.max(cr-1,0):Ut;return buildProbeGridState(buildItems(Ut,or,Jt))}const Xt=itemsPerRow(Gt,Lt,Cr);let ar,rr;tr?lr===0&&sr===0&&cr>0?(ar=0,rr=cr-1):(ar=Xt*floor((lr+Sr)/(wr+Sr)),rr=Xt*ceil((sr+Sr)/(wr+Sr))-1,rr=min$2(Vt-1,max$2(rr,Xt-1)),ar=min$2(rr,max$2(0,ar))):(ar=0,rr=-1);const er=buildItems(ar,rr,Jt),{top:mr,bottom:$r}=gridLayout(ir,pr,gr,er),qt=ceil(Vt/Xt),Qt=qt*wr+(qt-1)*Sr-$r;return{items:er,offsetTop:mr,offsetBottom:Qt,top:mr,bottom:$r,itemHeight:wr,itemWidth:Lt}})),bt),connect(pipe(jt,filter(Vt=>Vt!==null),map(Vt=>Vt.length)),ct),connect(pipe(combineLatest(gt,Pt,bt,Bt),filter(([Vt,lr,{items:sr}])=>sr.length>0&&lr.height!==0&&Vt.height!==0),map(([Vt,lr,{items:sr},pr])=>{const{top:gr,bottom:ir}=gridLayout(Vt,pr,lr,sr);return[gr,ir]}),distinctUntilChanged(tupleComparator)),G);const It=statefulStream(!1);connect(pipe(K,withLatestFrom(It),map(([Vt,lr])=>lr||Vt!==0)),It);const Kt=streamFromEmitter(pipe(duc(bt),filter(({items:Vt})=>Vt.length>0),withLatestFrom(ct,It),filter(([{items:Vt},lr,sr])=>sr&&Vt[Vt.length-1].index===lr-1),map(([,Vt])=>Vt-1),distinctUntilChanged())),Yt=streamFromEmitter(pipe(duc(bt),filter(({items:Vt})=>Vt.length>0&&Vt[0].index===0),mapTo(0),distinctUntilChanged())),nr=streamFromEmitter(pipe(duc(bt),withLatestFrom(Ct),filter(([{items:Vt},lr])=>Vt.length>0&&!lr),map(([{items:Vt}])=>({startIndex:Vt[0].index,endIndex:Vt[Vt.length-1].index})),distinctUntilChanged(rangeComparator),throttleTime(0)));connect(nr,Ae.scrollSeekRangeChanged),connect(pipe(Nt,withLatestFrom(gt,Pt,ct,Bt),map(([Vt,lr,sr,pr,gr])=>{const ir=normalizeIndexLocation(Vt),{align:Jt,behavior:cr,offset:tr}=ir;let xr=ir.index;xr==="LAST"&&(xr=pr-1),xr=max$2(0,xr,min$2(pr-1,xr));let Sr=itemTop(lr,gr,sr,xr);return Jt==="end"?Sr=round(Sr-lr.height+sr.height):Jt==="center"&&(Sr=round(Sr-lr.height/2+sr.height/2)),tr&&(Sr+=tr),{top:Sr,behavior:cr}})),re);const ur=statefulStreamFromEmitter(pipe(bt,map(Vt=>Vt.offsetBottom+Vt.bottom)),0);return connect(pipe(rt,map(Vt=>({width:Vt.visibleWidth,height:Vt.visibleHeight}))),gt),{data:jt,totalCount:ct,viewportDimensions:gt,itemDimensions:Pt,scrollTop:K,scrollHeight:Ot,overscan:L,scrollBy:te,scrollTo:re,scrollToIndex:Nt,smoothScrollTargetReached:ce,windowViewportRect:rt,windowScrollTo:it,useWindowScroll:ft,customScrollParent:Oe,windowScrollContainerState:nt,deviation:Ft,scrollContainerState:ue,footerHeight:de,headerHeight:ve,initialItemCount:ut,gap:Bt,restoreStateFrom:$t,...Ae,initialTopMostItemIndex:dt,gridState:bt,totalListHeight:ur,...st,startReached:Yt,endReached:Kt,rangeChanged:nr,stateChanged:At,propsReady:at,stateRestoreInProgress:Ct,...lt}},tup(sizeRangeSystem,domIOSystem,stateFlagsSystem,scrollSeekSystem,propsReadySystem,windowScrollerSystem,loggerSystem));function gridLayout(L,V,G,K){const{height:ee}=G;if(ee===void 0||K.length===0)return{top:0,bottom:0};const te=itemTop(L,V,G,K[0].index),re=itemTop(L,V,G,K[K.length-1].index)+ee;return{top:te,bottom:re}}function itemTop(L,V,G,K){const ee=itemsPerRow(L.width,G.width,V.column),te=floor(K/ee),re=te*G.height+max$2(0,te-1)*V.row;return re>0?re+V.row:re}function itemsPerRow(L,V,G){return max$2(1,floor((L+G)/(floor(V)+G)))}const gridComponentPropsSystem=system(()=>{const L=statefulStream(de=>`Item ${de}`),V=statefulStream({}),G=statefulStream(null),K=statefulStream("virtuoso-grid-item"),ee=statefulStream("virtuoso-grid-list"),te=statefulStream(identity$4),re=statefulStream("div"),ce=statefulStream(noop),ue=(de,ve=null)=>statefulStreamFromEmitter(pipe(V,map(st=>st[de]),distinctUntilChanged()),ve);return{context:G,itemContent:L,components:V,computeItemKey:te,itemClassName:K,listClassName:ee,headerFooterTag:re,scrollerRef:ce,FooterComponent:ue("Footer"),HeaderComponent:ue("Header"),ListComponent:ue("List","div"),ItemComponent:ue("Item","div"),ScrollerComponent:ue("Scroller","div"),ScrollSeekPlaceholder:ue("ScrollSeekPlaceholder","div")}}),combinedSystem$1=system(([L,V])=>({...L,...V}),tup(gridSystem,gridComponentPropsSystem)),GridItems=require$$0.memo(function L(){const V=useEmitterValue$1("gridState"),G=useEmitterValue$1("listClassName"),K=useEmitterValue$1("itemClassName"),ee=useEmitterValue$1("itemContent"),te=useEmitterValue$1("computeItemKey"),re=useEmitterValue$1("isSeeking"),ce=usePublisher$1("scrollHeight"),ue=useEmitterValue$1("ItemComponent"),de=useEmitterValue$1("ListComponent"),ve=useEmitterValue$1("ScrollSeekPlaceholder"),st=useEmitterValue$1("context"),Ae=usePublisher$1("itemDimensions"),at=usePublisher$1("gap"),ot=useEmitterValue$1("log"),rt=useEmitterValue$1("stateRestoreInProgress"),ft=useSize(Oe=>{const nt=Oe.parentElement.parentElement.scrollHeight;ce(nt);const it=Oe.firstChild;if(it){const{width:lt,height:ct}=it.getBoundingClientRect();Ae({width:lt,height:ct})}at({row:resolveGapValue("row-gap",getComputedStyle(Oe).rowGap,ot),column:resolveGapValue("column-gap",getComputedStyle(Oe).columnGap,ot)})});return rt?null:require$$0.createElement(de,{ref:ft,className:G,...contextPropIfNotDomElement(de,st),style:{paddingTop:V.offsetTop,paddingBottom:V.offsetBottom},"data-testid":"virtuoso-item-list"},V.items.map(Oe=>{const nt=te(Oe.index,Oe.data,st);return re?require$$0.createElement(ve,{key:nt,...contextPropIfNotDomElement(ve,st),index:Oe.index,height:V.itemHeight,width:V.itemWidth}):require$$0.createElement(ue,{...contextPropIfNotDomElement(ue,st),className:K,"data-index":Oe.index,key:nt},ee(Oe.index,Oe.data,st))}))}),Header=require$$0.memo(function L(){const V=useEmitterValue$1("HeaderComponent"),G=usePublisher$1("headerHeight"),K=useEmitterValue$1("headerFooterTag"),ee=useSize(re=>G(correctItemSize(re,"height"))),te=useEmitterValue$1("context");return V?require$$0.createElement(K,{ref:ee},require$$0.createElement(V,contextPropIfNotDomElement(V,te))):null}),Footer=require$$0.memo(function L(){const V=useEmitterValue$1("FooterComponent"),G=usePublisher$1("footerHeight"),K=useEmitterValue$1("headerFooterTag"),ee=useSize(re=>G(correctItemSize(re,"height"))),te=useEmitterValue$1("context");return V?require$$0.createElement(K,{ref:ee},require$$0.createElement(V,contextPropIfNotDomElement(V,te))):null}),Viewport$1=({children:L})=>{const V=require$$0.useContext(VirtuosoGridMockContext),G=usePublisher$1("itemDimensions"),K=usePublisher$1("viewportDimensions"),ee=useSize(te=>{K(te.getBoundingClientRect())});return require$$0.useEffect(()=>{V&&(K({height:V.viewportHeight,width:V.viewportWidth}),G({height:V.itemHeight,width:V.itemWidth}))},[V,K,G]),require$$0.createElement("div",{style:viewportStyle(!1),ref:ee},L)},WindowViewport$1=({children:L})=>{const V=require$$0.useContext(VirtuosoGridMockContext),G=usePublisher$1("windowViewportRect"),K=usePublisher$1("itemDimensions"),ee=useEmitterValue$1("customScrollParent"),te=useWindowViewportRectRef(G,ee);return require$$0.useEffect(()=>{V&&(K({height:V.itemHeight,width:V.itemWidth}),G({offsetTop:0,visibleHeight:V.viewportHeight,visibleWidth:V.viewportWidth}))},[V,G,K]),require$$0.createElement("div",{ref:te,style:viewportStyle(!1)},L)},GridRoot=require$$0.memo(function L({...V}){const G=useEmitterValue$1("useWindowScroll"),K=useEmitterValue$1("customScrollParent"),ee=K||G?WindowScroller$1:Scroller$1,te=K||G?WindowViewport$1:Viewport$1;return require$$0.createElement(ee,{...V},require$$0.createElement(te,null,require$$0.createElement(Header,null),require$$0.createElement(GridItems,null),require$$0.createElement(Footer,null)))}),{Component:Grid,usePublisher:usePublisher$1,useEmitterValue:useEmitterValue$1,useEmitter:useEmitter$1}=systemToComponent(combinedSystem$1,{optional:{context:"context",totalCount:"totalCount",overscan:"overscan",itemContent:"itemContent",components:"components",computeItemKey:"computeItemKey",data:"data",initialItemCount:"initialItemCount",scrollSeekConfiguration:"scrollSeekConfiguration",headerFooterTag:"headerFooterTag",listClassName:"listClassName",itemClassName:"itemClassName",useWindowScroll:"useWindowScroll",customScrollParent:"customScrollParent",scrollerRef:"scrollerRef",logLevel:"logLevel",restoreStateFrom:"restoreStateFrom",initialTopMostItemIndex:"initialTopMostItemIndex"},methods:{scrollTo:"scrollTo",scrollBy:"scrollBy",scrollToIndex:"scrollToIndex"},events:{isScrolling:"isScrolling",endReached:"endReached",startReached:"startReached",rangeChanged:"rangeChanged",atBottomStateChange:"atBottomStateChange",atTopStateChange:"atTopStateChange",stateChanged:"stateChanged"}},GridRoot),Scroller$1=buildScroller({usePublisher:usePublisher$1,useEmitterValue:useEmitterValue$1,useEmitter:useEmitter$1}),WindowScroller$1=buildWindowScroller({usePublisher:usePublisher$1,useEmitterValue:useEmitterValue$1,useEmitter:useEmitter$1});function resolveGapValue(L,V,G){return V!=="normal"&&!(V!=null&&V.endsWith("px"))&&G(`${L} was not resolved to pixel value correctly`,V,LogLevel.WARN),V==="normal"?0:parseInt(V!=null?V:"0",10)}const getFirstPageKey=L=>serialize(L?L(0,null):null)[0],unstable_serialize=L=>INFINITE_PREFIX+getFirstPageKey(L),EMPTY_PROMISE=Promise.resolve(),infinite=L=>(V,G,K)=>{const ee=react$1.exports.useRef(!1),{cache:te,initialSize:re=1,revalidateAll:ce=!1,persistSize:ue=!1,revalidateFirstPage:de=!0,revalidateOnMount:ve=!1,parallel:st=!1}=K,[,,,Ae]=SWRGlobalState.get(cache);let at;try{at=getFirstPageKey(V),at&&(at=INFINITE_PREFIX+at)}catch{}const[ot,rt,ft]=createCacheHelper(te,at),Oe=react$1.exports.useCallback(()=>isUndefined$1(ot()._l)?re:ot()._l,[te,at,re]);shim.exports.useSyncExternalStore(react$1.exports.useCallback(gt=>at?ft(at,()=>{gt()}):()=>{},[te,at]),Oe,Oe);const nt=react$1.exports.useCallback(()=>{const gt=ot()._l;return isUndefined$1(gt)?re:gt},[at,re]),it=react$1.exports.useRef(nt());useIsomorphicLayoutEffect$4(()=>{if(!ee.current){ee.current=!0;return}at&&rt({_l:ue?it.current:nt()})},[at,te]);const lt=ve&&!ee.current,ct=L(at,async gt=>{const Pt=ot()._i,Nt=[],Ot=nt(),[Ft]=createCacheHelper(te,gt),jt=Ft().data,Bt=[];let At=null;for(let $t=0;$t<Ot;++$t){const[Ct,dt]=serialize(V($t,st?null:At));if(!Ct)break;const[mt,kt]=createCacheHelper(te,Ct);let It=mt().data;const Kt=ce||Pt||isUndefined$1(It)||de&&!$t&&!isUndefined$1(jt)||lt||jt&&!isUndefined$1(jt[$t])&&!K.compare(jt[$t],It);if(G&&Kt){const Yt=async()=>{if(!(Ct in Ae))It=await G(dt);else{const ur=Ae[Ct];delete Ae[Ct],It=await ur}kt({data:It,_k:dt}),Nt[$t]=It};st?Bt.push(Yt):await Yt()}else Nt[$t]=It;st||(At=It)}return st&&await Promise.all(Bt.map($t=>$t())),rt({_i:UNDEFINED}),Nt},K),ut=react$1.exports.useCallback(function(gt,Pt){const Nt=typeof Pt=="boolean"?{revalidate:Pt}:Pt||{},Ot=Nt.revalidate!==!1;return at?(Ot&&(isUndefined$1(gt)?rt({_i:!0}):rt({_i:!1})),arguments.length?ct.mutate(gt,{...Nt,revalidate:Ot}):ct.mutate()):EMPTY_PROMISE},[at,te]),bt=react$1.exports.useCallback(gt=>{if(!at)return EMPTY_PROMISE;const[,Pt]=createCacheHelper(te,at);let Nt;if(isFunction$2(gt)?Nt=gt(nt()):typeof gt=="number"&&(Nt=gt),typeof Nt!="number")return EMPTY_PROMISE;Pt({_l:Nt}),it.current=Nt;const Ot=[],[Ft]=createCacheHelper(te,at);let jt=null;for(let Bt=0;Bt<Nt;++Bt){const[At]=serialize(V(Bt,jt)),[$t]=createCacheHelper(te,At),Ct=At?$t().data:UNDEFINED;if(isUndefined$1(Ct))return ut(Ft().data);Ot.push(Ct),jt=Ct}return ut(Ot)},[at,te,ut,nt]);return{size:nt(),setSize:bt,mutate:ut,get data(){return ct.data},get error(){return ct.error},get isValidating(){return ct.isValidating},get isLoading(){return ct.isLoading}}},useSWRInfinite=withMiddleware(useSWR,infinite),HOME_PAGE_SIZE=20,PRODUCTS_PAGE_SIZE=40,useCartRevalidation=()=>{const L=useStoreId(),{isPreview:V}=useLivePreviewContext(),G=useStoreCheckoutSettings(),{revalidating:K}=useSelector(selectCart),ee=useDispatch();return react$1.exports.useEffect(()=>{V||ee(revalidateCart({storeId:L,checkoutSettings:G}))},[ee,V,L,G]),{revalidating:K}},variants={small:{thumbnail:"h-12 w-12",inputQtyContainer:"h-7",buttonIcon:"text-lg",removeButton:"p-1"},normal:{thumbnail:"h-20 w-20",inputQtyContainer:"h-9",buttonIcon:"text-2xl"}},CartItems=({items:L,variant:V="normal"})=>{var lt;const G=useDispatch(),K=useKeyToPropsMap(),ee=useLocale(),{formatCurrency:te}=useCurrency(),re=useStoreCheckoutSettings(),{limitToOneQuantityPerProduct:ce=!1}=re||{},ue=useStoreContentSettings(),de=get$1(ue,"detailsPage.enabled",!1),{templateName:ve}=useTemplateFeature(),st=ve==="Quick Order",Ae=ve==="Wholesale",at=ct=>ut=>{let{value:bt}=ut.target;bt&&bt.startsWith("0")&&(bt=bt.slice(1)),+bt<=0&&(bt=1),G(updateItemQty({id:ct.id,qty:+bt}))},ot=ct=>ut=>{const bt=Math.max(ct.qty-1,0);if(bt===0)return ft(ct.id);G(updateItemQty({id:ct.id,qty:bt}))},rt=ct=>ut=>{const bt=+ct.qty+1;G(updateItemQty({id:ct.id,qty:bt}))},ft=ct=>{G(removeItemFromCart(ct))},Oe=ct=>{const{selectedProduct:ut,selectedVariant:bt}=ct;return isEmpty(ut.variants)?ut.stock:bt==null?void 0:bt.stock},nt=(lt=variants[V])!=null?lt:variants.normal,it=ct=>get$1(ct,"selectedVariant.minimumQuantity",1);return jsxs("section",{"aria-labelledby":"cart-heading",id:"cart-items",children:[jsx("h2",{id:"cart-heading",className:"sr-only",children:"Items in your shopping cart"}),jsx("ul",{role:"list",className:"cart-items-list divide-y divide-gray-200 border-gray-200",children:L.map(ct=>{var gt,Pt,Nt,Ot,Ft,jt,Bt,At;const{selectedProduct:ut,selectedVariant:bt}=ct!=null?ct:{};return(gt=ut.thumbnail)!=null||ut.image,jsxs("li",{className:"cart-item space-y-6 py-6 first:pt-1 sm:space-y-10 sm:py-10",children:[jsxs("div",{className:"cart-item-content flex",children:[jsx("div",{className:"cart-item-image flex-shrink-0",children:((Pt=ct.thumbnail)!=null?Pt:ut.thumbnail)?jsx("img",{src:sanitizeUrl((Nt=ct.thumbnail)!=null?Nt:ut.thumbnail),alt:ut.name,className:classNames("cart-item-thumbnail broken-image-fallback overflow-hidden rounded-lg object-cover object-center after:bg-[length:24px]",nt.thumbnail)}):jsx("div",{className:classNames("cart-item-placeholder flex cursor-default items-center justify-center rounded-lg bg-gray-100",nt.thumbnail,st&&"hidden"),children:jsx(PhotoIcon$2,{className:"cart-item-placeholder-icon h-5 w-5 text-gray-400"})})}),jsx("div",{className:"cart-item-details ms-4 flex flex-1 flex-col justify-between sm:ms-4",children:jsxs("div",{className:twMerge("cart-item-info relative pr-9 sm:grid sm:grid-cols-2 sm:gap-x-4 sm:pr-0"),children:[jsxs("div",{className:twMerge("cart-item-main-info",V==="small"&&"col-span-2"),children:[jsx("div",{className:"cart-item-header flex justify-between",children:jsx("h3",{className:"cart-item-name text-sm",children:de?jsx("a",{href:`/product/${ut.slug}`,className:"cart-item-link font-medium text-gray-900 hover:text-gray-800",children:ut.name}):jsx("span",{className:"cart-item-name-text font-medium text-gray-900 hover:text-gray-800",children:ut.name})})}),jsx("div",{className:"cart-item-variants mt-1 text-sm empty:hidden",children:(Ot=keys(bt==null?void 0:bt.value))==null?void 0:Ot.map(($t,Ct)=>jsx(react$1.exports.Fragment,{children:bt.value[$t]&&jsxs("p",{className:"cart-item-variant text-gray-500",children:[K[$t]," - ",bt.value[$t]]})},Ct))}),jsxs("p",{className:twJoin("cart-item-price mt-1 text-sm font-medium text-gray-700",!((Ft=ct==null?void 0:ct.selectedVariant)!=null&&Ft.price)&&"hidden"),children:[te(ct.price)," ",((jt=ct==null?void 0:ct.selectedVariant)==null?void 0:jt.unitLabel)&&`/ ${ct.selectedVariant.unitLabel}`]})]}),jsxs("div",{className:V==="small"?"cart-item-actions col-span-2 mt-4 flex flex-wrap items-center justify-between":"cart-item-actions mt-4 sm:mt-0 sm:pe-9",children:[ce?jsx("div",{type:"number",className:"cart-item-quantity hidden w-10 rounded border border-gray-200 px-0 py-1 text-center text-base font-medium leading-5  text-gray-700 shadow-sm focus:border-primary focus:outline-none focus:ring-1 focus:ring-primary focus:[margin-inline-end:1px] disabled:bg-gray-50 disabled:text-gray-600 sm:text-sm",children:ct.qty}):jsx(ItemQtyInput,{item:ct,handlers:{updateQty:at,reduceQty:ot,addQty:rt},variant:V}),V!=="small"&&jsx("div",{className:"cart-item-remove absolute end-0 top-0",children:jsxs("button",{type:"button",className:"cart-item-remove-button -m-2 inline-flex p-2 text-gray-400 hover:text-gray-500",onClick:()=>ft(ct.id),children:[jsx("span",{className:"sr-only",children:"Remove"}),jsx(XMarkIcon$1,{className:"cart-item-remove-icon h-5 w-5","aria-hidden":"true"})]})}),Ae&&jsx("p",{className:"cart-item-total text-gray-90 col-span-2 ml-auto mt-1 min-w-fit text-sm font-semibold text-gray-900",children:te(ct.price*ct.qty)})]})]})})]}),hasStockExceeded(ct)&&jsx("div",{className:"cart-item-stock-error mt-8",children:jsxs(ErrorAlert,{children:[(Bt=ee.stockExceeded)!=null?Bt:"Unable to proceed. Available stock is"," ",Oe(ct)]})}),(ct==null?void 0:ct.qty)<it(ct)&&jsx("div",{className:"cart-item-min-qty-warning mt-8",children:jsxs(WarningAlert,{children:[(At=ee.minimumOrderQuantity)!=null?At:"Minimum order quantity is"," ",it(ct)]})})]},ct.id)})})]})},ItemQtyInput=({item:L,handlers:V,variant:G})=>{var ee;const K=(ee=variants[G])!=null?ee:variants.normal;return jsx("div",{className:"cart-item-qty-input custom-number-input h-9 w-24",children:jsxs("div",{className:classNames("cart-item-qty-input-container relative mt-1 flex h-7 w-full rounded-lg bg-transparent",K.inputQtyContainer),children:[jsx("button",{"data-action":"decrement",className:"cart-item-qty-decrease h-full w-20 cursor-pointer rounded-s border border-e-0 border-gray-300 bg-gray-50 text-gray-600 hover:bg-gray-100 hover:text-gray-700 active:bg-gray-300 active:text-gray-900",onClick:V.reduceQty(L),type:"button",children:jsx("span",{className:classNames("cart-item-qty-decrease-icon m-auto text-lg font-thin",K.buttonIcon),children:"\u2212"})}),jsx("input",{type:"number",className:"cart-item-qty-input w-10 border border-gray-300 px-0 py-1.5 text-center text-sm font-medium leading-5 text-gray-700 [-moz-appearance:textfield] focus:border-primary focus:outline-none focus:ring-1 focus:ring-primary focus:[margin-inline-end:1px] disabled:bg-gray-50 disabled:text-gray-600",name:"custom-input-number",value:+L.qty,onChange:V.updateQty(L),"aria-label":"Quantity"}),jsx("button",{"data-action":"increment",className:"cart-item-qty-increase h-full w-20 cursor-pointer rounded-e border border-s-0 border-gray-300 bg-gray-50 text-gray-600 hover:bg-gray-100 hover:text-gray-700 active:bg-gray-300 active:text-gray-900 disabled:cursor-not-allowed disabled:bg-gray-50 disabled:text-gray-400",onClick:V.addQty(L),type:"button",children:jsx("span",{className:classNames("cart-item-qty-increase-icon m-auto text-lg font-thin",K.buttonIcon),children:"+"})})]})})},PageLoading=({className:L={overlay:"bg-opacity-50"}})=>jsx("div",{className:twMerge("fixed inset-0 z-20 flex items-center justify-center bg-gray-100",L.overlay),children:jsx("div",{className:twMerge("h-8 w-8 animate-spin rounded-full border-4 border-solid border-t-primary/75",L==null?void 0:L.spinner)})});function QuickOrderList({categories:L}){const V=useStoreId();useSelector(selectAllcartItems),react$1.exports.useState(!1),useIsSSR();const{hasFeature:G}=useStorePlan();G("removeBranding");const K=useMediaQuery("(max-width:767px)"),ee=useMediaQuery("(min-width:768px)"),te=useMediaQuery("(min-width:1024px)"),{data:re,isLoading:ce,isValidating:ue,size:de,setSize:ve,mutate:st}=useSWRInfinite((At,$t)=>`/store/${V}/grouped-products-by-category?page=${At+1}&products=${100}`,{revalidateFirstPage:!1}),Ae=react$1.exports.useMemo(()=>{var At;return(At=re==null?void 0:re.reduce(($t,Ct)=>(Object.keys(Ct).forEach(mt=>{var kt;return $t[mt]=[...(kt=$t[mt])!=null?kt:[],...Ct[mt]]}),$t),{}))!=null?At:{}},[re]),at=ce||de>0&&re&&typeof re[de-1]=="undefined",ot=react$1.exports.useRef(),rt=react$1.exports.useRef(!0);useCartRevalidation(),react$1.exports.useEffect(()=>{if(!ot.current||!Ae||Ae&&L.length===Object.keys(Ae).length)return;const At=new IntersectionObserver(([$t])=>{if(rt.current){rt.current=!1;return}$t.isIntersecting&&ve(Ct=>Ct+1)},{rootMargin:"50px"});return rt.current=!0,At.observe(ot.current),()=>{At.disconnect()}},[ot,ve,Ae,L]);const[ft,Oe]=react$1.exports.useState({value:L[0],trigger:null}),[nt,it]=react$1.exports.useState(null),lt=react$1.exports.useRef(),ct=react$1.exports.useRef(),ut=react$1.exports.useRef(),bt=react$1.exports.useRef(null);react$1.exports.useEffect(()=>{const At=setTimeout(()=>{if(!ut.current)return;const Ct=ut.current.querySelector('[data-testid="virtuoso-top-item-list"]'),dt=Ct==null?void 0:Ct.parentElement;!dt||dt.classList.add("sticky","!top-[110px]","md:!top-[124px]","lg:!top-[68px]","mt-0","w-full")},500);return()=>{clearTimeout(At)}},[ut]);const gt=react$1.exports.useCallback((At,$t)=>{var kt;if(!At)return;const{slug:Ct}=At,dt=$t!=null?$t:L.findIndex(It=>It.slug===Ct);let mt=0;K&&(mt=-110),ee&&(mt=-124),te&&(mt=-68),(kt=bt.current)==null||kt.scrollIntoView({groupIndex:dt,align:"start",calculateViewLocation:It=>({...It.locationParams,offset:mt})}),lt.current&&clearTimeout(lt.current),Oe({value:At,trigger:"click"}),lt.current=setTimeout(()=>{Oe({value:At,trigger:null})},500)},[te,K,ee,L]);react$1.exports.useEffect(()=>{!at&&nt&&(gt(nt),it(null))},[at,gt,nt]);const Pt=async At=>{if(!At)return;const{slug:$t}=At,Ct=L.findIndex(mt=>mt.slug===$t),dt=HOME_PAGE_SIZE;if(Ct>=de*dt){const mt=Math.ceil((Ct+1)/dt);it(At),ve(mt)}else gt(At,Ct)},Nt=At=>{const{startIndex:$t}=At;if((ft==null?void 0:ft.trigger)!=="click"){for(let Ct=0;Ct<=(L==null?void 0:L.length);Ct++)if(Bt[Ct]>$t){Oe({value:L[Ct],trigger:"scroll"});const dt=ct.current;if(dt.scrollHeight>dt.clientHeight){const kt=dt.querySelector(`[data-category-menu="${L[Ct].slug}"]`);kt.getBoundingClientRect().bottom-24<dt.getBoundingClientRect().top?kt.scrollIntoView({block:"nearest"}):kt.getBoundingClientRect().top-24>dt.getBoundingClientRect().height&&kt.scrollIntoView({block:"end"})}break}}},Ot=L==null?void 0:L.filter(({slug:At})=>!!Ae[At]),Ft=Ot==null?void 0:Ot.map(({slug:At})=>Ae[At].length),jt=Ot==null?void 0:Ot.flatMap(({slug:At})=>{const $t=Ae[At];return($t==null?void 0:$t.length)>=100?[...$t.slice(0,99),{slug:"view-all",category:{slug:At}}]:$t}),Bt=react$1.exports.useMemo(()=>Ft.reduce((At,$t,Ct)=>(Ct===0?At.push($t):At.push(At[Ct-1]+$t),At),[]),[Ft]);return jsxs("div",{id:"quick-order-list",children:[at&&nt&&jsx(PageLoading,{}),jsx("nav",{className:"quick-order-horizontal-menu",children:jsx(HorizontalCategoryMenu,{categories:L,activeCategory:ft,onCategoryClick:Pt})}),jsxs("section",{"aria-labelledby":"products-heading",className:"quick-order-content relative mx-auto max-w-full lg:max-w-7xl lg:px-8",children:[jsxs("div",{className:classNames("quick-order-layout grid grid-cols-1 gap-y-10 md:grid-cols-12"),children:[jsx("aside",{className:"quick-order-vertical-menu hidden pt-0 lg:col-span-2 lg:block",children:jsx(VerticalCategoryMenu,{categories:L,activeCategory:ft,onCategoryClick:Pt,ref:ct})}),jsx("div",{className:"quick-order-mobile-cart absolute md:hidden",children:jsx(MobileQuickCart,{})}),jsxs("main",{className:"quick-order-product-list relative col-span-1 min-h-screen pb-4 md:col-span-8 md:border-r lg:col-span-7 lg:border-l",ref:ut,children:[jsx("h2",{id:"products-heading",className:"sr-only",children:"Products"}),!re&&ce?jsx("div",{className:"quick-order-loading animate-pulse space-y-4 px-4 py-4",children:Array.from({length:6}).map((At,$t)=>jsx("div",{className:"quick-order-loading-item flex h-full min-h-[128px] rounded-lg bg-gray-200"},$t))}):jsx(GroupedVirtuoso,{ref:bt,groupCounts:Ft,useWindowScroll:!0,atTopThreshold:-68,rangeChanged:Nt,initialItemCount:5,groupContent:At=>{const $t=L[At];return jsx("p",{className:"quick-order-category-title text-lg font-bold",children:$t==null?void 0:$t.value})},itemContent:(At,$t)=>{var dt;const Ct=jt[At];return(Ct==null?void 0:Ct.slug)==="view-all"?jsx("div",{className:"quick-order-view-all flex items-center justify-center p-2",children:jsxs("a",{type:"button",className:"quick-order-view-all-link flex w-fit items-center rounded-lg px-4 py-2 text-sm font-medium text-primary hover:bg-primary/10 focus:outline-none",href:`/category/${(dt=Ct==null?void 0:Ct.category)==null?void 0:dt.slug}`,children:["View all",jsx(ArrowRightIcon$1,{className:"ms-2 h-4 w-4 text-primary","aria-hidden":"true"})]})},At):jsx("div",{className:"quick-order-product-item min-h-[128px]",children:jsx(ProductCard,{product:Ct,layout:"list"})},At)},components:{Group:({children:At,context:$t,...Ct})=>{const dt=Ct["data-item-index"],mt=L[dt];return jsx("div",{className:"quick-order-category-section category-section sticky top-[110px] z-10 mx-auto max-w-3xl bg-white px-4 pb-4 pt-6 shadow-sm sm:px-6 md:top-[124px] lg:top-[68px] lg:max-w-7xl lg:px-8","data-category":mt==null?void 0:mt.slug,...Ct,children:At})}}}),at&&jsx("div",{className:"quick-order-loading-more animate-pulse space-y-4 px-4 py-4",children:Array.from({length:6}).map((At,$t)=>jsx("div",{className:"quick-order-loading-item flex h-full min-h-[128px] rounded-lg bg-gray-200"},$t))})]}),jsx("aside",{className:"quick-order-cart hidden md:col-span-4 md:block lg:col-span-3",children:jsx(QuickCart,{})})]}),jsx("div",{ref:ot,className:"quick-order-end-marker absolute bottom-0 left-0 right-0 z-30 h-6"})]})]})}function HorizontalCategoryMenu({categories:L,activeCategory:V,onCategoryClick:G}){const K=react$1.exports.useRef(),ee=react$1.exports.useRef(),te=react$1.exports.useRef(),re=react$1.exports.useRef();useDispatch(),useIsSSR(),useLocale$1();const{storeOpen:ce}=useStoreGeneralSettings(),ue=!ce,[de,ve]=react$1.exports.useState(!1),st=()=>(te.current||(te.current=new Map),te.current),Ae=rt=>{const{current:ft}=K,{current:Oe}=ee;Oe.scrollWidth<Oe.clientWidth||((Oe.scrollLeft===0||Oe.scrollLeft!==Oe.scrollWidth-Oe.clientWidth)&&(ft.classList.contains("scroll-content-right-shadow")||ft.classList.add("scroll-content-right-shadow")),(Oe.scrollLeft!==0||Oe.scrollLeft===Oe.scrollWidth-Oe.clientWidth)&&(ft.classList.contains("scroll-content-left-shadow")||ft.classList.toggle("scroll-content-left-shadow")),Oe.scrollLeft===0&&ft.classList.remove("scroll-content-left-shadow"),Oe.scrollLeft===Oe.scrollWidth-Oe.clientWidth&&ft.classList.remove("scroll-content-right-shadow"))},at=react$1.exports.useMemo(()=>throttle(Ae,300,{leading:!0,trailing:!0}),[]),ot=react$1.exports.useCallback(rt=>{const Oe=st().get(rt),nt=re.current?{behavior:"smooth"}:{};re.current=!0,setTimeout(()=>{Oe==null||Oe.scrollIntoView({block:"nearest",inline:"center",...nt})})},[]);return react$1.exports.useEffect(()=>{var rt;ot((rt=V==null?void 0:V.slug)!=null?rt:"/")},[ot,V]),react$1.exports.useEffect(()=>{Ae()},[]),jsxs("div",{id:"category-menu",className:classNames("sticky z-[12] border-y border-gray-200 bg-white pl-14 before:relative lg:hidden",ue?"top-[94px] md:top-[108px]":"top-[54px] md:top-[68px]"),children:[jsxs(nn.Root,{open:de,onOpenChange:ve,children:[jsx(nn.Trigger,{asChild:!0,children:jsx("button",{id:"category-menu-view-all-button",className:"absolute left-2 top-1/2 inline-flex -translate-y-1/2 rounded-md p-2 transition-colors hover:bg-gray-100 focus:outline-none","aria-label":"View all categories",children:jsx(Squares2X2Icon$1,{className:"h-6 w-6 text-gray-600 ","aria-hidden":"true"})})}),jsxs(nn.Portal,{children:[jsx(nn.Overlay,{className:"fixed inset-0 z-30 bg-black/40",id:"category-menu-overlay"}),jsxs(nn.Content,{className:"fixed bottom-0 left-0 right-0 z-50 mt-24 flex max-h-[90%] flex-col rounded-t-[10px] bg-white",id:"category-menu-mobile-drawer",children:[jsx(nn.Title,{className:"category-menu-mobile-title px-4 py-4 text-lg font-bold",id:"category-menu-title",children:"Categories"}),jsx("div",{id:"category-menu-mobile-list",className:"overflow-y-auto",children:jsx("div",{className:"flex w-full flex-col gap-1 px-2 pb-4",children:L==null?void 0:L.map((rt,ft)=>jsx("button",{className:classNames("focus:ring-primary-500 category-menu-mobile-item block w-full rounded-l rounded-r px-4 py-2 text-left text-sm font-medium hover:bg-gray-50 focus:outline-none"),onClick:()=>{ve(!1),setTimeout(()=>{G(rt)},500)},children:rt==null?void 0:rt.value},rt==null?void 0:rt.slug))})})]})]})]}),jsx("div",{id:"category-menu-list",className:"scroll-content-shadow relative mx-auto max-w-7xl border-l py-3",ref:K,children:jsx(p,{className:"no-scrollbar category-menu-scroll-container items-center overflow-x-auto whitespace-nowrap pl-2 pr-4 sm:pr-6 lg:pr-8",hideScrollbars:!1,innerRef:ee,onScroll:at,children:jsx("div",{id:"category-menu-items",className:"flex gap-x-2",children:L==null?void 0:L.map((rt,ft)=>{var Oe;return jsx("div",{className:"category-menu-item-wrapper last:pe-6",children:jsx("button",{onClick:()=>G(rt),className:twMerge("category-menu-item inline-flex h-8 min-w-[12px] max-w-[20rem] items-center overflow-hidden text-ellipsis rounded-full border border-gray-200 bg-white px-4 text-sm font-medium text-gray-600 transition hover:bg-gray-50",((Oe=V==null?void 0:V.value)==null?void 0:Oe.slug)===rt.slug&&"category-menu-item-active border-primary/20 bg-primary/10 font-semibold text-primary-alt hover:text-primary"),ref:nt=>{const it=st();nt?it.set(rt.slug,nt):it.delete(rt.slug)},children:rt.value})},rt.slug+ft)})})})})]})}const VerticalCategoryMenu=react$1.exports.forwardRef(function L({categories:V,activeCategory:G,onCategoryClick:K},ee){return jsx("div",{ref:ee,className:"sticky top-[68px] max-h-[calc(100svh-68px)] scroll-pb-4 scroll-pt-4 space-y-1 overflow-y-auto pt-6",id:"vertical-category-menu",children:V==null?void 0:V.map((te,re)=>{var ce;return jsx("button",{"data-category-menu":te==null?void 0:te.slug,className:classNames("focus:ring-primary-500 vertical-category-menu-item block w-full rounded-l rounded-r-none px-3 py-2 text-left text-sm font-medium focus:outline-none ",((ce=G==null?void 0:G.value)==null?void 0:ce.slug)===(te==null?void 0:te.slug)?"vertical-category-menu-item--active border-r-4 border-primary bg-primary/10 text-primary":"text-gray-900 hover:bg-gray-50"),onClick:()=>K(te),children:te==null?void 0:te.value},te==null?void 0:te.slug)})})});function QuickCart({styles:L}){var it,lt,ct,ut,bt,gt,Pt,Nt,Ot,Ft;const V=useDispatch(),{revalidating:G,unavailableProducts:K,priceChange:ee,stockExceededItems:te}=useSelector(selectCart),re=useSelector(selectAllcartItems),ce=useSelector(selectCart),ue=useSelector(selectTotalCartQty),de=useSelector(selectIsbelowMinimumOrderQuantity),{formatCurrency:ve,currencyCode:st}=useCurrency(),Ae=useLocale$1(),at=useIsSSR(),{hasFeature:ot}=useStorePlan(),rt=!ot("removeBranding"),ft=useStoreGeneralSettings(),{storeOpen:Oe}=ft,nt=!Oe;return at?null:jsxs("div",{className:twMerge("quick-cart sticky top-32 min-h-screen lg:top-16",L==null?void 0:L.root),id:"quick-cart",children:[ue>0&&G&&jsx(PageLoading,{className:{overlay:"quick-cart-loading-overlay absolute h-full items-start bg-gray-50 bg-opacity-50",spinner:"quick-cart-loading-spinner sticky top-1/2 mt-[50%]"}}),jsxs("div",{className:"quick-cart-header flex items-center justify-between px-4 pb-4 pt-6",children:[jsx("p",{className:"quick-cart-title text-lg font-bold",children:(it=Ae.cart)!=null?it:"Cart"}),ue>0&&jsxs("button",{type:"button",className:"quick-cart-clear-button inline-flex items-center text-sm text-gray-700 underline hover:text-gray-900 focus:outline-none",onClick:()=>V(clearCart()),children:[jsx("span",{className:"sr-only",children:"Clear cart"}),(lt=Ae.clearCart)!=null?lt:"Clear cart"]})]}),K&&jsx("div",{className:"quick-cart-alert unavailable-products-alert -mt-8 mb-4 px-2",children:jsx(WarningAlert,{close:()=>V(setUnavailableProducts(!1)),title:(ct=Ae.attentionNeeded)!=null?ct:"Attention needed",children:(ut=Ae.unavailableProductAlert)!=null?ut:"Some of the products has been removed from cart as they are currently unavailable."})}),ee&&jsx("div",{className:"quick-cart-alert price-change-alert -mt-8 mb-4 px-2",children:jsx(WarningAlert,{close:()=>V(setPriceChange(!1)),title:(bt=Ae.attentionNeeded)!=null?bt:"Attention needed",children:(gt=Ae.priceChangeAlert)!=null?gt:"Prices of some products have changed since you last added them to the cart."})}),isEmpty(re)?jsx("div",{className:"quick-cart-empty px-4",children:jsxs("div",{className:"quick-cart-empty-content flex h-64 flex-col items-center justify-center gap-2",children:[jsx(ShoppingBagIcon$1,{className:"quick-cart-empty-icon h-12 w-12 text-gray-300"}),jsx("p",{className:"quick-cart-empty-text text-sm text-gray-500",children:(Pt=Ae.cartIsEmpty)!=null?Pt:"Cart is empty"})]})}):jsxs("div",{className:"quick-cart-filled",children:[jsx("div",{className:twMerge("quick-cart-items-container mb-2 h-[calc(100svh-330px)] overflow-y-auto px-4 md:h-[calc(100vh-350px)] lg:h-[calc(100vh-274px)]",rt&&"md:h-[calc(100vh-386px)] lg:h-[calc(100vh-310px)]",L==null?void 0:L.cartItems),children:jsx(CartItems,{items:re,variant:"small"})}),jsxs("div",{className:classNames("quick-cart-summary sticky mx-3 border-t bg-white px-4 py-6 pb-8 outline-gray-200 lg:mr-0",rt?"md:bottom-9":"md:bottom-0"),children:[jsx("dl",{className:"quick-cart-totals space-y-4",children:jsxs("div",{className:"quick-cart-subtotal flex items-center justify-between",children:[jsx("dt",{className:"quick-cart-subtotal-label text-sm text-gray-600",children:`${(Nt=Ae.subtotal)!=null?Nt:"Subtotal"} (${ue} ${(Ot=Ae.items)!=null?Ot:"items"})`}),jsx("dd",{className:"quick-cart-subtotal-value text-sm font-medium text-gray-900",children:ve(ce==null?void 0:ce.subTotal)})]})}),jsx("div",{className:"quick-cart-checkout-button-container mt-6",children:jsx("button",{type:"button",id:"quick-checkout-button",className:classNames(nt?"bg-gray-300":"bg-primary hover:bg-primary-dark focus:ring-primary/75","quick-cart-checkout-button inline-flex w-full items-center justify-center rounded-lg border border-transparent px-4 py-2 text-base font-medium text-primary-text shadow-sm transition-colors focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-offset-gray-50 disabled:cursor-not-allowed disabled:bg-gray-300"),onClick:()=>navigate("/cart"),disabled:!isEmpty(te)||de||nt,children:(Ft=Ae.proceedToCheckout)!=null?Ft:"Proceed to checkout"})})]})]})]})}function MobileQuickCart(){var te;const{hasFeature:L}=useStorePlan(),V=!L("removeBranding"),G=useLocale$1(),K=useIsSSR(),ee=useSelector(selectTotalCartQty);return jsx("div",{className:classNames("mobile-quick-cart-container fixed bottom-0 left-0 right-0 z-40 flex items-center justify-center px-8",V?"bottom-14":"bottom-8"),children:jsxs(nn.Root,{children:[jsx(tt$1,{show:!0,as:"div",appear:!0,unmount:!1,enter:"transform ease-in-out duration-300 transition",enterFrom:"opacity-0 translate-y-8 sm:translate-x-2",enterTo:"opacity-100 translate-y-0 sm:translate-x-0",leave:"transition ease-in duration-100",leaveFrom:"opacity-100 translate-y-0",leaveTo:"opacity-0 translate-y-8",children:jsx(nn.Trigger,{asChild:!0,children:jsx("div",{type:"button",className:"quick-cart-trigger pointer-events-auto flex w-fit max-w-2xl cursor-pointer items-center justify-center overflow-hidden rounded-full bg-primary shadow-2xl ring-1 ring-black ring-opacity-5 transition-colors hover:bg-primary-dark",children:jsx("div",{className:"quick-cart-trigger-inner p-3 px-3",children:jsx("div",{className:"quick-cart-content flex items-center",children:jsxs("div",{className:"quick-cart-info flex flex-1 items-center justify-start",children:[jsxs("div",{className:"quick-cart-icon-wrapper flex flex-shrink-0 items-center",children:[jsx(ShoppingBagIcon$1,{className:"quick-cart-icon -mt-1 h-6 text-primary-text xs:w-6","aria-hidden":"true"}),!K&&ee>0&&jsx("p",{className:"quick-cart-count ms-1 flex-1 text-lg font-bold text-primary-text",children:ee>999?"999+":ee})]}),jsx("button",{className:"quick-cart-button ms-0 flex-shrink-0 rounded-lg py-1 pl-3 pr-2 text-sm font-medium text-primary-text transition focus:outline-none",children:(te=G.viewCart)!=null?te:"View cart"})]})})})})})}),jsxs(nn.Portal,{children:[jsx(nn.Content,{className:"quick-cart-drawer fixed bottom-0 left-0 right-0 z-50 mt-24 flex max-h-[90%] flex-col rounded-t-[10px] bg-white",children:jsx(QuickCart,{styles:{root:"relative min-h-fit top-0 overflow-auto w-full mx-auto flex flex-col quick-cart-content"}})}),jsx(nn.Overlay,{className:"quick-cart-overlay fixed inset-0 z-30 bg-black/40"})]})]})})}var style="";const groupVariantsByValues=(L,V)=>{const{variants:G}=L,K=G.map(ee=>ee.value);return V==null?void 0:V.reduce((ee,te)=>{const re=groupBy$1(K,te);return re.undefined&&delete re.undefined,ee={...ee,...re},ee},{})},VariantSelector=({variantForm:L,selectedProduct:V,variantOptions:G,isMini:K=!1})=>{const{reset:ee,getValues:te,control:re}=L,ce=te(),ue=react$1.exports.useMemo(()=>st(V,G,ce),[V,G,ce]),de=useKeyToPropsMap(),ve=react$1.exports.useMemo(()=>G.reduce((nt,it)=>(nt[it]=null,nt),{}),[G]);function st(nt,it,lt){var Nt;const{variants:ct}=nt,ut=find$1(ct,Ot=>lowerCase(Ot==null?void 0:Ot.availability)!=="out of stock"&&(Ot==null?void 0:Ot.stock)>0)||head$2(ct),bt=(Nt=ct==null?void 0:ct.map(Ot=>size(omitBy(Ot==null?void 0:Ot.value,Ft=>!Ft))))==null?void 0:Nt.some(Ot=>Ot>1);if(!(size(nt.variants)>1&&bt))return null;const gt=groupVariantsByValues(nt,it),Pt=uniques(flatten(compact$1(values(lt!=null?lt:ut==null?void 0:ut.value)).map(Ot=>gt[Ot])));return Pt!=null?Pt:null}const Ae=(nt,it,lt)=>{if(!size(V.variants)>1)return null;const{variants:ct}=V,ut=ct.map(Nt=>Nt.value),bt=head$2(ut);if(Object.keys(bt).length<=1)return null;let gt=te();find$1(ut,gt)||(gt=find$1(ut,{[nt]:it}),ee({...ve,...gt},{keepValues:!1}))},at=(nt,it)=>{if(ue){const ct={...omitBy(te(),isNil),[nt]:it};return!find$1(ue,ct)}return!1},ot=(nt,it)=>{const lt=omitBy(te(),isNil),ct=find$1(V.variants,ut=>(ut==null?void 0:ut.key)===getVariantKey(lt));return(lowerCase(ct==null?void 0:ct.availability)==="out of stock"||(ct==null?void 0:ct.stock)<=0)&&lt[nt]===it},rt=nt=>isArray$3(nt)?isEmpty(nt):!nt,ft=react$1.exports.useMemo(()=>{var it,lt;return(lt=((it=V==null?void 0:V.variants)!=null?it:[]).reduce((ct,ut)=>{const bt=ut==null?void 0:ut.value;return G==null||G.forEach(gt=>{ct.has(gt)?ct.set(gt,compact$1(union$1(ct.get(gt),[bt[gt]]))):ct.set(gt,compact$1([bt[gt]]))}),ct},new Map))!=null?lt:new Map},[V,G]);return jsx("div",{className:classNames("variant-selector empty:hidden",K?"variant-selector--mini flex flex-1 flex-col justify-end empty:hidden":"variant-selector--full"),children:G==null?void 0:G.map((nt,it)=>rt(ft.get(nt))?jsx(react$1.exports.Fragment,{},it):jsxs("div",{className:classNames(K?"my-1 sm:my-2":"mt-8","variant-option"),id:`variant-option-${it}`,children:[jsx("div",{className:"variant-option-header flex items-center justify-between",children:jsx("h2",{className:"text-xs font-medium text-gray-700 sm:text-sm",children:de[nt]})}),jsx(Controller,{render:({field:{value:lt,onChange:ct}})=>jsx(yt$1,{className:"variant-option-radio-group mt-2",value:lt!=null?lt:null,onChange:ut=>{ct(ut),Ae(nt,ut)},children:jsx("div",{className:classNames("flex flex-wrap gap-2","variant-option-values"),children:isArray$3(ft.get(nt))?ft.get(nt).map((ut,bt)=>jsx(yt$1.Option,{value:ut,className:({active:gt,checked:Pt})=>classNames(at(nt,ut)?"variant-value--invalid cursor-pointer opacity-30":"variant-value cursor-pointer focus:outline-none",gt?"variant-value--active ring-2 ring-primary/25":"",ot(nt,ut)?"variant-value--out-of-stock border-primary/75 text-gray-400 hover:bg-gray-50":Pt?" variant-value--checked border-primary text-gray-900 hover:bg-gray-50":"border-gray-200 bg-white text-gray-900 hover:bg-gray-50",K?"flex-0 variant-value--mini min-w-[15%] px-1.5 py-1.5 sm:min-w-[58px]":"sm:flex-0 variant-value--full min-w-[80px] px-3 py-3","flex items-center justify-center rounded-lg border text-xs font-medium sm:text-sm"),children:jsx(yt$1.Label,{as:"p",className:"variant-value-label",children:ut})},`${bt}-${ut}`)):jsx(yt$1.Option,{value:ft.get(nt),className:({active:ut,checked:bt})=>classNames(lowerCase(V==null?void 0:V.availability)==="out of stock"?"variant-value--out-of-stock border-gray-300 text-gray-400":bt?" variant-value--checked border-primary text-gray-900":"border-gray-200 bg-white text-gray-900 hover:bg-gray-50",K?"flex-0 variant-value--mini min-w-[25%] px-2 py-1.5":"sm:flex-0 variant-value--full min-w-[80px] px-3 py-3","variant-value flex items-center justify-center rounded-lg border px-3 py-3 text-xs font-medium sm:text-sm"),children:jsx(yt$1.Label,{as:"p",className:"variant-value-label",children:ft.get(nt)})},ft.get(nt))})}),name:nt,control:re})]},it))})};function isObject$4(L){return Object.prototype.toString.call(L)==="[object Object]"}function isRecord(L){return isObject$4(L)||Array.isArray(L)}function canUseDOM(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}function areOptionsEqual(L,V){const G=Object.keys(L),K=Object.keys(V);if(G.length!==K.length)return!1;const ee=JSON.stringify(Object.keys(L.breakpoints||{})),te=JSON.stringify(Object.keys(V.breakpoints||{}));return ee!==te?!1:G.every(re=>{const ce=L[re],ue=V[re];return typeof ce=="function"?`${ce}`==`${ue}`:!isRecord(ce)||!isRecord(ue)?ce===ue:areOptionsEqual(ce,ue)})}function sortAndMapPluginToOptions(L){return L.concat().sort((V,G)=>V.name>G.name?1:-1).map(V=>V.options)}function arePluginsEqual(L,V){if(L.length!==V.length)return!1;const G=sortAndMapPluginToOptions(L),K=sortAndMapPluginToOptions(V);return G.every((ee,te)=>{const re=K[te];return areOptionsEqual(ee,re)})}function isNumber(L){return typeof L=="number"}function isString(L){return typeof L=="string"}function isBoolean(L){return typeof L=="boolean"}function isObject$3(L){return Object.prototype.toString.call(L)==="[object Object]"}function mathAbs(L){return Math.abs(L)}function mathSign(L){return Math.sign(L)}function deltaAbs(L,V){return mathAbs(L-V)}function factorAbs(L,V){if(L===0||V===0||mathAbs(L)<=mathAbs(V))return 0;const G=deltaAbs(mathAbs(L),mathAbs(V));return mathAbs(G/L)}function arrayKeys(L){return objectKeys(L).map(Number)}function arrayLast(L){return L[arrayLastIndex(L)]}function arrayLastIndex(L){return Math.max(0,L.length-1)}function arrayIsLastIndex(L,V){return V===arrayLastIndex(L)}function arrayFromNumber(L,V=0){return Array.from(Array(L),(G,K)=>V+K)}function objectKeys(L){return Object.keys(L)}function objectsMergeDeep(L,V){return[L,V].reduce((G,K)=>(objectKeys(K).forEach(ee=>{const te=G[ee],re=K[ee],ce=isObject$3(te)&&isObject$3(re);G[ee]=ce?objectsMergeDeep(te,re):re}),G),{})}function isMouseEvent(L,V){return typeof V.MouseEvent!="undefined"&&L instanceof V.MouseEvent}function Alignment(L,V){const G={start:K,center:ee,end:te};function K(){return 0}function ee(ue){return te(ue)/2}function te(ue){return V-ue}function re(ue,de){return isString(L)?G[L](ue):L(V,ue,de)}return{measure:re}}function EventStore(){let L=[];function V(ee,te,re,ce={passive:!0}){let ue;if("addEventListener"in ee)ee.addEventListener(te,re,ce),ue=()=>ee.removeEventListener(te,re,ce);else{const de=ee;de.addListener(re),ue=()=>de.removeListener(re)}return L.push(ue),K}function G(){L=L.filter(ee=>ee())}const K={add:V,clear:G};return K}function Animations(L,V,G){const K=EventStore(),ee=1e3/60;let te=null,re=0,ce=0;function ue(){K.add(L,"visibilitychange",()=>{L.hidden&&at()})}function de(){Ae(),K.clear()}function ve(rt){if(!re)return;te||(te=rt);const ft=rt-te;for(te=rt,ce+=ft;ce>=ee;)G(),ce-=ee;re&&V.requestAnimationFrame(ve)}function st(){re||(re=V.requestAnimationFrame(ve))}function Ae(){V.cancelAnimationFrame(re),te=null,ce=0,re=0}function at(){te=null,ce=0}return{init:ue,destroy:de,start:st,stop:Ae,update:G}}function Axis(L,V){const G=V==="rtl",K=L==="y",ee=K?"y":"x",te=K?"x":"y",re=!K&&G?-1:1,ce=ve(),ue=st();function de(ot){const{height:rt,width:ft}=ot;return K?rt:ft}function ve(){return K?"top":G?"right":"left"}function st(){return K?"bottom":G?"left":"right"}function Ae(ot){return ot*re}return{scroll:ee,cross:te,startEdge:ce,endEdge:ue,measureSize:de,direction:Ae}}function Limit(L=0,V=0){const G=mathAbs(L-V);function K(de){return de<L}function ee(de){return de>V}function te(de){return K(de)||ee(de)}function re(de){return te(de)?K(de)?L:V:de}function ce(de){return G?de-G*Math.ceil((de-V)/G):de}return{length:G,max:V,min:L,constrain:re,reachedAny:te,reachedMax:ee,reachedMin:K,removeOffset:ce}}function Counter(L,V,G){const{constrain:K}=Limit(0,L),ee=L+1;let te=re(V);function re(Ae){return G?mathAbs((ee+Ae)%ee):K(Ae)}function ce(){return te}function ue(Ae){return te=re(Ae),st}function de(Ae){return ve().set(ce()+Ae)}function ve(){return Counter(L,ce(),G)}const st={get:ce,set:ue,add:de,clone:ve};return st}function DragHandler(L,V,G,K,ee,te,re,ce,ue,de,ve,st,Ae,at,ot,rt,ft,Oe,nt){const{cross:it,direction:lt}=L,ct=["INPUT","SELECT","TEXTAREA"],ut={passive:!1},bt=EventStore(),gt=EventStore(),Pt=Limit(50,225).constrain(at.measure(20)),Nt={mouse:300,touch:400},Ot={mouse:500,touch:600},Ft=ot?43:25;let jt=!1,Bt=0,At=0,$t=!1,Ct=!1,dt=!1,mt=!1;function kt(Jt){if(!nt)return;function cr(xr){(isBoolean(nt)||nt(Jt,xr))&&Vt(xr)}const tr=V;bt.add(tr,"dragstart",xr=>xr.preventDefault(),ut).add(tr,"touchmove",()=>{},ut).add(tr,"touchend",()=>{}).add(tr,"touchstart",cr).add(tr,"mousedown",cr).add(tr,"touchcancel",sr).add(tr,"contextmenu",sr).add(tr,"click",pr,!0)}function It(){bt.clear(),gt.clear()}function Kt(){const Jt=mt?G:V;gt.add(Jt,"touchmove",lr,ut).add(Jt,"touchend",sr).add(Jt,"mousemove",lr,ut).add(Jt,"mouseup",sr)}function Yt(Jt){const cr=Jt.nodeName||"";return ct.includes(cr)}function nr(){return(ot?Ot:Nt)[mt?"mouse":"touch"]}function ur(Jt,cr){const tr=st.add(mathSign(Jt)*-1),xr=ve.byDistance(Jt,!ot).distance;return ot||mathAbs(Jt)<Pt?xr:ft&&cr?xr*.5:ve.byIndex(tr.get(),0).distance}function Vt(Jt){const cr=isMouseEvent(Jt,K);mt=cr,dt=ot&&cr&&!Jt.buttons&&jt,jt=deltaAbs(ee.get(),re.get())>=2,!(cr&&Jt.button!==0)&&(Yt(Jt.target)||($t=!0,te.pointerDown(Jt),de.useFriction(0).useDuration(0),ee.set(re),Kt(),Bt=te.readPoint(Jt),At=te.readPoint(Jt,it),Ae.emit("pointerDown")))}function lr(Jt){if(!isMouseEvent(Jt,K)&&Jt.touches.length>=2)return sr(Jt);const tr=te.readPoint(Jt),xr=te.readPoint(Jt,it),Sr=deltaAbs(tr,Bt),Cr=deltaAbs(xr,At);if(!Ct&&!mt&&(!Jt.cancelable||(Ct=Sr>Cr,!Ct)))return sr(Jt);const wr=te.pointerMove(Jt);Sr>rt&&(dt=!0),de.useFriction(.3).useDuration(.75),ce.start(),ee.add(lt(wr)),Jt.preventDefault()}function sr(Jt){const tr=ve.byDistance(0,!1).index!==st.get(),xr=te.pointerUp(Jt)*nr(),Sr=ur(lt(xr),tr),Cr=factorAbs(xr,Sr),wr=Ft-10*Cr,Lt=Oe+Cr/50;Ct=!1,$t=!1,gt.clear(),de.useDuration(wr).useFriction(Lt),ue.distance(Sr,!ot),mt=!1,Ae.emit("pointerUp")}function pr(Jt){dt&&(Jt.stopPropagation(),Jt.preventDefault(),dt=!1)}function gr(){return $t}return{init:kt,destroy:It,pointerDown:gr}}function DragTracker(L,V){let K,ee;function te(st){return st.timeStamp}function re(st,Ae){const ot=`client${(Ae||L.scroll)==="x"?"X":"Y"}`;return(isMouseEvent(st,V)?st:st.touches[0])[ot]}function ce(st){return K=st,ee=st,re(st)}function ue(st){const Ae=re(st)-re(ee),at=te(st)-te(K)>170;return ee=st,at&&(K=st),Ae}function de(st){if(!K||!ee)return 0;const Ae=re(ee)-re(K),at=te(st)-te(K),ot=te(st)-te(ee)>170,rt=Ae/at;return at&&!ot&&mathAbs(rt)>.1?rt:0}return{pointerDown:ce,pointerMove:ue,pointerUp:de,readPoint:re}}function NodeRects(){function L(G){const{offsetTop:K,offsetLeft:ee,offsetWidth:te,offsetHeight:re}=G;return{top:K,right:ee+te,bottom:K+re,left:ee,width:te,height:re}}return{measure:L}}function PercentOfView(L){function V(K){return L*(K/100)}return{measure:V}}function ResizeHandler(L,V,G,K,ee,te,re){let ce,ue,de=[],ve=!1;function st(rt){return ee.measureSize(re.measure(rt))}function Ae(rt){if(!te)return;ue=st(L),de=K.map(st);function ft(nt){for(const it of nt){const lt=it.target===L,ct=K.indexOf(it.target),ut=lt?ue:de[ct],bt=st(lt?L:K[ct]);if(mathAbs(bt-ut)>=.5){G.requestAnimationFrame(()=>{rt.reInit(),V.emit("resize")});break}}}ce=new ResizeObserver(nt=>{ve||(isBoolean(te)||te(rt,nt))&&ft(nt)}),[L].concat(K).forEach(nt=>ce.observe(nt))}function at(){ce&&ce.disconnect(),ve=!0}return{init:Ae,destroy:at}}function ScrollBody(L,V,G,K){let ee=0,te=0,re=G,ce=K,ue=L.get(),de=0;function ve(){const lt=V.get()-L.get(),ct=!re;let ut=0;return ct?(ee=0,L.set(V),ut=lt):(ee+=lt/re,ee*=ce,ue+=ee,L.add(ee),ut=ue-de),te=mathSign(ut),de=ue,it}function st(){const lt=V.get()-L.get();return mathAbs(lt)<.001}function Ae(){return re}function at(){return te}function ot(){return ee}function rt(){return Oe(G)}function ft(){return nt(K)}function Oe(lt){return re=lt,it}function nt(lt){return ce=lt,it}const it={direction:at,duration:Ae,velocity:ot,seek:ve,settled:st,useBaseFriction:ft,useBaseDuration:rt,useFriction:nt,useDuration:Oe};return it}function ScrollBounds(L,V,G,K,ee){const te=ee.measure(10),re=ee.measure(50),ce=Limit(.1,.99);let ue=!1;function de(){return!(ue||!L.reachedAny(G.get())||!L.reachedAny(V.get()))}function ve(at){if(!de())return;const ot=L.reachedMin(V.get())?"min":"max",rt=mathAbs(L[ot]-V.get()),ft=G.get()-V.get(),Oe=ce.constrain(rt/re);G.subtract(ft*Oe),!at&&mathAbs(ft)<te&&(G.set(L.constrain(G.get())),K.useDuration(25).useBaseFriction())}function st(at){ue=!at}return{shouldConstrain:de,constrain:ve,toggleActive:st}}function ScrollContain(L,V,G,K,ee){const te=Limit(-V+L,0),re=st(),ce=ve(),ue=Ae();function de(ot,rt){return deltaAbs(ot,rt)<1}function ve(){const ot=re[0],rt=arrayLast(re),ft=re.lastIndexOf(ot),Oe=re.indexOf(rt)+1;return Limit(ft,Oe)}function st(){return G.map((ot,rt)=>{const{min:ft,max:Oe}=te,nt=te.constrain(ot),it=!rt,lt=arrayIsLastIndex(G,rt);return it?Oe:lt||de(ft,nt)?ft:de(Oe,nt)?Oe:nt}).map(ot=>parseFloat(ot.toFixed(3)))}function Ae(){if(V<=L+ee)return[te.max];if(K==="keepSnaps")return re;const{min:ot,max:rt}=ce;return re.slice(ot,rt)}return{snapsContained:ue,scrollContainLimit:ce}}function ScrollLimit(L,V,G){const K=V[0],ee=G?K-L:arrayLast(V);return{limit:Limit(ee,K)}}function ScrollLooper(L,V,G,K){const te=V.min+.1,re=V.max+.1,{reachedMin:ce,reachedMax:ue}=Limit(te,re);function de(Ae){return Ae===1?ue(G.get()):Ae===-1?ce(G.get()):!1}function ve(Ae){if(!de(Ae))return;const at=L*(Ae*-1);K.forEach(ot=>ot.add(at))}return{loop:ve}}function ScrollProgress(L){const{max:V,length:G}=L;function K(te){const re=te-V;return G?re/-G:0}return{get:K}}function ScrollSnaps(L,V,G,K,ee){const{startEdge:te,endEdge:re}=L,{groupSlides:ce}=ee,ue=st().map(V.measure),de=Ae(),ve=at();function st(){return ce(K).map(rt=>arrayLast(rt)[re]-rt[0][te]).map(mathAbs)}function Ae(){return K.map(rt=>G[te]-rt[te]).map(rt=>-mathAbs(rt))}function at(){return ce(de).map(rt=>rt[0]).map((rt,ft)=>rt+ue[ft])}return{snaps:de,snapsAligned:ve}}function SlideRegistry(L,V,G,K,ee,te){const{groupSlides:re}=ee,{min:ce,max:ue}=K,de=ve();function ve(){const Ae=re(te),at=!L||V==="keepSnaps";return G.length===1?[te]:at?Ae:Ae.slice(ce,ue).map((ot,rt,ft)=>{const Oe=!rt,nt=arrayIsLastIndex(ft,rt);if(Oe){const it=arrayLast(ft[0])+1;return arrayFromNumber(it)}if(nt){const it=arrayLastIndex(te)-arrayLast(ft)[0]+1;return arrayFromNumber(it,arrayLast(ft)[0])}return ot})}return{slideRegistry:de}}function ScrollTarget(L,V,G,K,ee){const{reachedAny:te,removeOffset:re,constrain:ce}=K;function ue(ot){return ot.concat().sort((rt,ft)=>mathAbs(rt)-mathAbs(ft))[0]}function de(ot){const rt=L?re(ot):ce(ot),ft=V.map((nt,it)=>({diff:ve(nt-rt,0),index:it})).sort((nt,it)=>mathAbs(nt.diff)-mathAbs(it.diff)),{index:Oe}=ft[0];return{index:Oe,distance:rt}}function ve(ot,rt){const ft=[ot,ot+G,ot-G];if(!L)return ot;if(!rt)return ue(ft);const Oe=ft.filter(nt=>mathSign(nt)===rt);return Oe.length?ue(Oe):arrayLast(ft)-G}function st(ot,rt){const ft=V[ot]-ee.get(),Oe=ve(ft,rt);return{index:ot,distance:Oe}}function Ae(ot,rt){const ft=ee.get()+ot,{index:Oe,distance:nt}=de(ft),it=!L&&te(ft);if(!rt||it)return{index:Oe,distance:ot};const lt=V[Oe]-nt,ct=ot+ve(lt,0);return{index:Oe,distance:ct}}return{byDistance:Ae,byIndex:st,shortcut:ve}}function ScrollTo(L,V,G,K,ee,te){function re(ve){const st=ve.distance,Ae=ve.index!==V.get();ee.add(st),st&&L.start(),Ae&&(G.set(V.get()),V.set(ve.index),te.emit("select"))}function ce(ve,st){const Ae=K.byDistance(ve,st);re(Ae)}function ue(ve,st){const Ae=V.clone().set(ve),at=K.byIndex(Ae.get(),st);re(at)}return{distance:ce,index:ue}}function SlideFocus(L,V,G,K,ee,te,re){let ce=0;function ue(){te.add(document,"keydown",de,!1),V.forEach(ve)}function de(Ae){Ae.code==="Tab"&&(ce=new Date().getTime())}function ve(Ae){const at=()=>{if(new Date().getTime()-ce>10)return;L.scrollLeft=0;const ft=V.indexOf(Ae),Oe=G.findIndex(nt=>nt.includes(ft));!isNumber(Oe)||(ee.useDuration(0),K.index(Oe,0),re.emit("slideFocus"))};te.add(Ae,"focus",at,{passive:!0,capture:!0})}return{init:ue}}function Vector1D(L){let V=L;function G(){return V}function K(ue){V=re(ue)}function ee(ue){V+=re(ue)}function te(ue){V-=re(ue)}function re(ue){return isNumber(ue)?ue:ue.get()}return{get:G,set:K,add:ee,subtract:te}}function Translate(L,V){const G=L.scroll==="x"?te:re,K=V.style;let ee=!1;function te(st){return`translate3d(${st}px,0px,0px)`}function re(st){return`translate3d(0px,${st}px,0px)`}function ce(st){ee||(K.transform=G(L.direction(st)))}function ue(st){ee=!st}function de(){ee||(K.transform="",V.getAttribute("style")||V.removeAttribute("style"))}return{clear:de,to:ce,toggleActive:ue}}function SlideLooper(L,V,G,K,ee,te,re,ce,ue){const ve=arrayKeys(ee),st=arrayKeys(ee).reverse(),Ae=Oe().concat(nt());function at(bt,gt){return bt.reduce((Pt,Nt)=>Pt-ee[Nt],gt)}function ot(bt,gt){return bt.reduce((Pt,Nt)=>at(Pt,gt)>0?Pt.concat([Nt]):Pt,[])}function rt(bt){return te.map((gt,Pt)=>({start:gt-K[Pt]+.5+bt,end:gt+V-.5+bt}))}function ft(bt,gt,Pt){const Nt=rt(gt);return bt.map(Ot=>{const Ft=Pt?0:-G,jt=Pt?G:0,Bt=Pt?"end":"start",At=Nt[Ot][Bt];return{index:Ot,loopPoint:At,slideLocation:Vector1D(-1),translate:Translate(L,ue[Ot]),target:()=>ce.get()>At?Ft:jt}})}function Oe(){const bt=re[0],gt=ot(st,bt);return ft(gt,G,!1)}function nt(){const bt=V-re[0]-1,gt=ot(ve,bt);return ft(gt,-G,!0)}function it(){return Ae.every(({index:bt})=>{const gt=ve.filter(Pt=>Pt!==bt);return at(gt,V)<=.1})}function lt(){Ae.forEach(bt=>{const{target:gt,translate:Pt,slideLocation:Nt}=bt,Ot=gt();Ot!==Nt.get()&&(Pt.to(Ot),Nt.set(Ot))})}function ct(){Ae.forEach(bt=>bt.translate.clear())}return{canLoop:it,clear:ct,loop:lt,loopPoints:Ae}}function SlidesHandler(L,V,G){let K,ee=!1;function te(ue){if(!G)return;function de(ve){for(const st of ve)if(st.type==="childList"){ue.reInit(),V.emit("slidesChanged");break}}K=new MutationObserver(ve=>{ee||(isBoolean(G)||G(ue,ve))&&de(ve)}),K.observe(L,{childList:!0})}function re(){K&&K.disconnect(),ee=!0}return{init:te,destroy:re}}function SlidesInView(L,V,G,K){const ee={};let te=null,re=null,ce,ue=!1;function de(){ce=new IntersectionObserver(ot=>{ue||(ot.forEach(rt=>{const ft=V.indexOf(rt.target);ee[ft]=rt}),te=null,re=null,G.emit("slidesInView"))},{root:L.parentElement,threshold:K}),V.forEach(ot=>ce.observe(ot))}function ve(){ce&&ce.disconnect(),ue=!0}function st(ot){return objectKeys(ee).reduce((rt,ft)=>{const Oe=parseInt(ft),{isIntersecting:nt}=ee[Oe];return(ot&&nt||!ot&&!nt)&&rt.push(Oe),rt},[])}function Ae(ot=!0){if(ot&&te)return te;if(!ot&&re)return re;const rt=st(ot);return ot&&(te=rt),ot||(re=rt),rt}return{init:de,destroy:ve,get:Ae}}function SlideSizes(L,V,G,K,ee,te){const{measureSize:re,startEdge:ce,endEdge:ue}=L,de=G[0]&&ee,ve=ot(),st=rt(),Ae=G.map(re),at=ft();function ot(){if(!de)return 0;const nt=G[0];return mathAbs(V[ce]-nt[ce])}function rt(){if(!de)return 0;const nt=te.getComputedStyle(arrayLast(K));return parseFloat(nt.getPropertyValue(`margin-${ue}`))}function ft(){return G.map((nt,it,lt)=>{const ct=!it,ut=arrayIsLastIndex(lt,it);return ct?Ae[it]+ve:ut?Ae[it]+st:lt[it+1][ce]-nt[ce]}).map(mathAbs)}return{slideSizes:Ae,slideSizesWithGaps:at,startGap:ve,endGap:st}}function SlidesToScroll(L,V,G,K,ee,te,re,ce,ue){const{startEdge:de,endEdge:ve,direction:st}=L,Ae=isNumber(G);function at(Oe,nt){return arrayKeys(Oe).filter(it=>it%nt===0).map(it=>Oe.slice(it,it+nt))}function ot(Oe){return Oe.length?arrayKeys(Oe).reduce((nt,it,lt)=>{const ct=arrayLast(nt)||0,ut=ct===0,bt=it===arrayLastIndex(Oe),gt=ee[de]-te[ct][de],Pt=ee[de]-te[it][ve],Nt=!K&&ut?st(re):0,Ot=!K&&bt?st(ce):0,Ft=mathAbs(Pt-Ot-(gt+Nt));return lt&&Ft>V+ue&&nt.push(it),bt&&nt.push(Oe.length),nt},[]).map((nt,it,lt)=>{const ct=Math.max(lt[it-1]||0);return Oe.slice(ct,nt)}):[]}function rt(Oe){return Ae?at(Oe,G):ot(Oe)}return{groupSlides:rt}}function Engine(L,V,G,K,ee,te,re){const{align:ce,axis:ue,direction:de,startIndex:ve,loop:st,duration:Ae,dragFree:at,dragThreshold:ot,inViewThreshold:rt,slidesToScroll:ft,skipSnaps:Oe,containScroll:nt,watchResize:it,watchSlides:lt,watchDrag:ct}=te,ut=2,bt=NodeRects(),gt=bt.measure(V),Pt=G.map(bt.measure),Nt=Axis(ue,de),Ot=Nt.measureSize(gt),Ft=PercentOfView(Ot),jt=Alignment(ce,Ot),Bt=!st&&!!nt,At=st||!!nt,{slideSizes:$t,slideSizesWithGaps:Ct,startGap:dt,endGap:mt}=SlideSizes(Nt,gt,Pt,G,At,ee),kt=SlidesToScroll(Nt,Ot,ft,st,gt,Pt,dt,mt,ut),{snaps:It,snapsAligned:Kt}=ScrollSnaps(Nt,jt,gt,Pt,kt),Yt=-arrayLast(It)+arrayLast(Ct),{snapsContained:nr,scrollContainLimit:ur}=ScrollContain(Ot,Yt,Kt,nt,ut),Vt=Bt?nr:Kt,{limit:lr}=ScrollLimit(Yt,Vt,st),sr=Counter(arrayLastIndex(Vt),ve,st),pr=sr.clone(),gr=arrayKeys(G),ir=({dragHandler:$r,eventHandler:qt,scrollBody:zt,scrollBounds:Qt,scrollLooper:Ut,slideLooper:or,translate:hr,location:br,animation:Wt,options:{loop:Zt}})=>{Zt||Qt.constrain($r.pointerDown()),zt.seek();const dr=zt.settled(),yr=!Qt.shouldConstrain(),vr=Zt?dr:dr&&yr;vr&&!$r.pointerDown()&&(Wt.stop(),qt.emit("settle")),vr||qt.emit("scroll"),Zt&&(Ut.loop(zt.direction()),or.loop()),hr.to(br.get())},Jt=Animations(K,ee,()=>ir(mr)),cr=.68,tr=Vt[sr.get()],xr=Vector1D(tr),Sr=Vector1D(tr),Cr=ScrollBody(xr,Sr,Ae,cr),wr=ScrollTarget(st,Vt,Yt,lr,Sr),Lt=ScrollTo(Jt,sr,pr,wr,Sr,re),Gt=ScrollProgress(lr),Xt=EventStore(),ar=SlidesInView(V,G,re,rt),{slideRegistry:rr}=SlideRegistry(Bt,nt,Vt,ur,kt,gr),er=SlideFocus(L,G,rr,Lt,Cr,Xt,re),mr={ownerDocument:K,ownerWindow:ee,eventHandler:re,containerRect:gt,slideRects:Pt,animation:Jt,axis:Nt,dragHandler:DragHandler(Nt,L,K,ee,Sr,DragTracker(Nt,ee),xr,Jt,Lt,Cr,wr,sr,re,Ft,at,ot,Oe,cr,ct),eventStore:Xt,percentOfView:Ft,index:sr,indexPrevious:pr,limit:lr,location:xr,options:te,resizeHandler:ResizeHandler(V,re,ee,G,Nt,it,bt),scrollBody:Cr,scrollBounds:ScrollBounds(lr,xr,Sr,Cr,Ft),scrollLooper:ScrollLooper(Yt,lr,xr,[xr,Sr]),scrollProgress:Gt,scrollSnapList:Vt.map(Gt.get),scrollSnaps:Vt,scrollTarget:wr,scrollTo:Lt,slideLooper:SlideLooper(Nt,Ot,Yt,$t,Ct,It,Vt,xr,G),slideFocus:er,slidesHandler:SlidesHandler(V,re,lt),slidesInView:ar,slideIndexes:gr,slideRegistry:rr,slidesToScroll:kt,target:Sr,translate:Translate(Nt,V)};return mr}function EventHandler(){let L={},V;function G(de){V=de}function K(de){return L[de]||[]}function ee(de){return K(de).forEach(ve=>ve(V,de)),ue}function te(de,ve){return L[de]=K(de).concat([ve]),ue}function re(de,ve){return L[de]=K(de).filter(st=>st!==ve),ue}function ce(){L={}}const ue={init:G,emit:ee,off:re,on:te,clear:ce};return ue}const defaultOptions={align:"center",axis:"x",container:null,slides:null,containScroll:"trimSnaps",direction:"ltr",slidesToScroll:1,inViewThreshold:0,breakpoints:{},dragFree:!1,dragThreshold:10,loop:!1,skipSnaps:!1,duration:25,startIndex:0,active:!0,watchDrag:!0,watchResize:!0,watchSlides:!0};function OptionsHandler(L){function V(te,re){return objectsMergeDeep(te,re||{})}function G(te){const re=te.breakpoints||{},ce=objectKeys(re).filter(ue=>L.matchMedia(ue).matches).map(ue=>re[ue]).reduce((ue,de)=>V(ue,de),{});return V(te,ce)}function K(te){return te.map(re=>objectKeys(re.breakpoints||{})).reduce((re,ce)=>re.concat(ce),[]).map(L.matchMedia)}return{mergeOptions:V,optionsAtMedia:G,optionsMediaQueries:K}}function PluginsHandler(L){let V=[];function G(te,re){return V=re.filter(({options:ce})=>L.optionsAtMedia(ce).active!==!1),V.forEach(ce=>ce.init(te,L)),re.reduce((ce,ue)=>Object.assign(ce,{[ue.name]:ue}),{})}function K(){V=V.filter(te=>te.destroy())}return{init:G,destroy:K}}function EmblaCarousel(L,V,G){const K=L.ownerDocument,ee=K.defaultView,te=OptionsHandler(ee),re=PluginsHandler(te),ce=EventStore(),ue=EventHandler(),{mergeOptions:de,optionsAtMedia:ve,optionsMediaQueries:st}=te,{on:Ae,off:at,emit:ot}=ue,rt=Ot;let ft=!1,Oe,nt=de(defaultOptions,EmblaCarousel.globalOptions),it=de(nt),lt=[],ct,ut,bt;function gt(){const{container:ir,slides:Jt}=it;ut=(isString(ir)?L.querySelector(ir):ir)||L.children[0];const tr=isString(Jt)?ut.querySelectorAll(Jt):Jt;bt=[].slice.call(tr||ut.children)}function Pt(ir){const Jt=Engine(L,ut,bt,K,ee,ir,ue);if(ir.loop&&!Jt.slideLooper.canLoop()){const cr=Object.assign({},ir,{loop:!1});return Pt(cr)}return Jt}function Nt(ir,Jt){ft||(nt=de(nt,ir),it=ve(nt),lt=Jt||lt,gt(),Oe=Pt(it),st([nt,...lt.map(({options:cr})=>cr)]).forEach(cr=>ce.add(cr,"change",Ot)),it.active&&(Oe.translate.to(Oe.location.get()),Oe.animation.init(),Oe.slidesInView.init(),Oe.slideFocus.init(),Oe.eventHandler.init(gr),Oe.resizeHandler.init(gr),Oe.slidesHandler.init(gr),Oe.options.loop&&Oe.slideLooper.loop(),ut.offsetParent&&bt.length&&Oe.dragHandler.init(gr),ct=re.init(gr,lt)))}function Ot(ir,Jt){const cr=It();Ft(),Nt(de({startIndex:cr},ir),Jt),ue.emit("reInit")}function Ft(){Oe.dragHandler.destroy(),Oe.eventStore.clear(),Oe.translate.clear(),Oe.slideLooper.clear(),Oe.resizeHandler.destroy(),Oe.slidesHandler.destroy(),Oe.slidesInView.destroy(),Oe.animation.destroy(),re.destroy(),ce.clear()}function jt(){ft||(ft=!0,ce.clear(),Ft(),ue.emit("destroy"),ue.clear())}function Bt(ir,Jt,cr){!it.active||ft||(Oe.scrollBody.useBaseFriction().useDuration(Jt===!0?0:it.duration),Oe.scrollTo.index(ir,cr||0))}function At(ir){const Jt=Oe.index.add(1).get();Bt(Jt,ir,-1)}function $t(ir){const Jt=Oe.index.add(-1).get();Bt(Jt,ir,1)}function Ct(){return Oe.index.add(1).get()!==It()}function dt(){return Oe.index.add(-1).get()!==It()}function mt(){return Oe.scrollSnapList}function kt(){return Oe.scrollProgress.get(Oe.location.get())}function It(){return Oe.index.get()}function Kt(){return Oe.indexPrevious.get()}function Yt(){return Oe.slidesInView.get()}function nr(){return Oe.slidesInView.get(!1)}function ur(){return ct}function Vt(){return Oe}function lr(){return L}function sr(){return ut}function pr(){return bt}const gr={canScrollNext:Ct,canScrollPrev:dt,containerNode:sr,internalEngine:Vt,destroy:jt,off:at,on:Ae,emit:ot,plugins:ur,previousScrollSnap:Kt,reInit:rt,rootNode:lr,scrollNext:At,scrollPrev:$t,scrollProgress:kt,scrollSnapList:mt,scrollTo:Bt,selectedScrollSnap:It,slideNodes:pr,slidesInView:Yt,slidesNotInView:nr};return Nt(V,G),setTimeout(()=>ue.emit("init"),0),gr}EmblaCarousel.globalOptions=void 0;function useEmblaCarousel(L={},V=[]){const G=react$1.exports.useRef(L),K=react$1.exports.useRef(V),[ee,te]=react$1.exports.useState(),[re,ce]=react$1.exports.useState(),ue=react$1.exports.useCallback(()=>{ee&&ee.reInit(G.current,K.current)},[ee]);return react$1.exports.useEffect(()=>{if(canUseDOM()&&re){EmblaCarousel.globalOptions=useEmblaCarousel.globalOptions;const de=EmblaCarousel(re,G.current,K.current);return te(de),()=>de.destroy()}else te(void 0)},[re,te]),react$1.exports.useEffect(()=>{areOptionsEqual(G.current,L)||(G.current=L,ue())},[L,ue]),react$1.exports.useEffect(()=>{arePluginsEqual(K.current,V)||(K.current=V,ue())},[V,ue]),[ce,ee]}useEmblaCarousel.globalOptions=void 0;const usePrevNextButtons=L=>{const[V,G]=react$1.exports.useState(!0),[K,ee]=react$1.exports.useState(!0),te=react$1.exports.useCallback(()=>{!L||L.scrollPrev()},[L]),re=react$1.exports.useCallback(()=>{!L||L.scrollNext()},[L]),ce=react$1.exports.useCallback(ue=>{G(!ue.canScrollPrev()),ee(!ue.canScrollNext())},[]);return react$1.exports.useEffect(()=>{!L||(ce(L),L.on("reInit",ce).on("select",ce))},[L,ce]),{prevBtnDisabled:V,nextBtnDisabled:K,onPrevButtonClick:te,onNextButtonClick:re}},useDotButton=L=>{const[V,G]=react$1.exports.useState(0),[K,ee]=react$1.exports.useState([]),te=react$1.exports.useCallback(ue=>{!L||L.scrollTo(ue)},[L]),re=react$1.exports.useCallback(ue=>{ee(ue.scrollSnapList())},[]),ce=react$1.exports.useCallback(ue=>{G(ue.selectedScrollSnap())},[]);return react$1.exports.useEffect(()=>{!L||(re(L),ce(L),L.on("reInit",re).on("reInit",ce).on("select",ce))},[L,re,ce]),{selectedIndex:V,scrollSnaps:K,onDotButtonClick:te}},CarouselContext=react$1.exports.createContext(null);function useCarousel(){const L=react$1.exports.useContext(CarouselContext);if(!L)throw new Error("useCarousel must be used within a <Carousel />");return L}const Carousel=react$1.exports.forwardRef(({orientation:L="horizontal",opts:V,setApi:G,plugins:K,withControls:ee=!1,className:te,children:re,...ce},ue)=>{const[de,ve]=useEmblaCarousel({...V,duration:20,axis:L==="horizontal"?"x":"y"},K);react$1.exports.useState(!1);const st=react$1.exports.useCallback(()=>{ve==null||ve.scrollPrev()},[ve]),Ae=react$1.exports.useCallback(()=>{ve==null||ve.scrollNext()},[ve]),at=react$1.exports.useCallback(ot=>{ot.key==="ArrowLeft"?(ot.preventDefault(),st()):ot.key==="ArrowRight"&&(ot.preventDefault(),Ae())},[st,Ae]);return react$1.exports.useEffect(()=>{!ve||!G||G(ve)},[ve,G]),jsxs(CarouselContext.Provider,{value:{carouselRef:de,api:ve,opts:V,orientation:L||((V==null?void 0:V.axis)==="y"?"vertical":"horizontal"),scrollPrev:st,scrollNext:Ae},children:[jsx("div",{ref:ue,onKeyDownCapture:at,className:twMerge("relative",te),role:"region","aria-roledescription":"carousel",...ce,children:re}),ee&&jsx(CarouselControls,{})]})});Carousel.displayName="Carousel";const CarouselContent=react$1.exports.forwardRef(({className:L,...V},G)=>{const{carouselRef:K,orientation:ee}=useCarousel();return jsx("div",{ref:K,className:"overflow-hidden",children:jsx("div",{ref:G,className:twMerge("flex",ee==="horizontal"?"-ml-4":"-mt-4 flex-col",L),...V})})});CarouselContent.displayName="CarouselContent";const CarouselItem=react$1.exports.forwardRef(({className:L,...V},G)=>{const{orientation:K}=useCarousel();return jsx("div",{ref:G,role:"group","aria-roledescription":"slide",className:twMerge("min-w-0 shrink-0 grow-0 basis-full",K==="horizontal"?"pl-4":"pt-4",L),...V})});CarouselItem.displayName="CarouselItem";const CarouselControls=react$1.exports.forwardRef(({className:L,...V},G)=>{const{api:K,opts:ee}=useCarousel(),{selectedIndex:te,scrollSnaps:re,onDotButtonClick:ce}=useDotButton(K),{prevBtnDisabled:ue,nextBtnDisabled:de,onPrevButtonClick:ve,onNextButtonClick:st}=usePrevNextButtons(K),Ae=(ee==null?void 0:ee.direction)==="rtl";return jsxs("div",{className:twMerge("mt-6 flex justify-center gap-4 sm:mt-10",L),ref:G,...V,children:[jsx("button",{type:"button",onClick:ve,disabled:ue,className:twMerge("flex rounded-full border border-primary p-1.5 text-sm font-semibold text-primary transition-colors md:p-2.5 md:text-base",ue?"opacity-30":"hover:bg-primary/10 hover:text-primary"),children:jsx("span",{className:"flex h-4 w-4 items-center justify-center",children:Ae?jsx(Fragment$1,{children:"\u2192"}):jsx(Fragment$1,{children:"\u2190"})})}),jsx("div",{className:"flex flex-wrap items-center justify-center gap-2",children:re.map((at,ot)=>jsx("button",{type:"button",onClick:()=>ce(ot),className:twMerge("rounded-full",ot===te?"text-gray-700":"text-gray-300"),children:jsx("svg",{className:"h-2 w-2 sm:h-3 sm:w-3",viewBox:"0 0 24 24",fill:"currentColor",children:jsx("circle",{cx:"12",cy:"12",r:"10"})})},ot))}),jsx("button",{type:"button",onClick:st,disabled:de,className:twMerge("flex items-center rounded-full border border-primary p-1.5 text-sm font-semibold text-primary transition-colors md:p-2.5 md:text-base",de?"opacity-30":"hover:bg-primary/10 hover:text-primary"),children:jsx("span",{className:"flex h-4 w-4 items-center justify-center",children:Ae?jsx(Fragment$1,{children:"\u2190"}):jsx(Fragment$1,{children:"\u2192"})})})]})});CarouselControls.displayName="CarouselControls";const CarouselPrevious=react$1.exports.forwardRef(({className:L,stopPropagation:V,...G},K)=>{const{api:ee}=useCarousel(),{prevBtnDisabled:te,onPrevButtonClick:re}=usePrevNextButtons(ee);return jsx("button",{className:twMerge("h-10 w-10",L),ref:K,onClick:ce=>{V&&ce.stopPropagation(),re()},disabled:te,...G})});CarouselPrevious.displayName="CarouselPrevious";const CarouselNext=react$1.exports.forwardRef(({className:L,stopPropagation:V,...G},K)=>{const{api:ee}=useCarousel(),{nextBtnDisabled:te,onNextButtonClick:re}=usePrevNextButtons(ee);return jsx("button",{className:twMerge("h-10 w-10",L),ref:K,onClick:ce=>{V&&ce.stopPropagation(),re()},disabled:te,...G})});CarouselNext.displayName="CarouselNext";var convert$b=convert_1,func$b=convert$b("curry",curry_1);func$b.placeholder=placeholder;var curry=func$b;function head$1(L){return L&&L.length?L[0]:void 0}var head_1=head$1,convert$a=convert_1,func$a=convert$a("head",head_1,_falseOptions);func$a.placeholder=placeholder;var head=func$a,convert$9=convert_1,func$9=convert$9("identity",identity_1,_falseOptions);func$9.placeholder=placeholder;var identity$3=func$9,isSymbol$1=isSymbol_1;function baseExtremum$4(L,V,G){for(var K=-1,ee=L.length;++K<ee;){var te=L[K],re=V(te);if(re!=null&&(ce===void 0?re===re&&!isSymbol$1(re):G(re,ce)))var ce=re,ue=te}return ue}var _baseExtremum=baseExtremum$4;function baseGt$2(L,V){return L>V}var _baseGt=baseGt$2,baseExtremum$3=_baseExtremum,baseGt$1=_baseGt,identity$2=identity_1;function max$1(L){return L&&L.length?baseExtremum$3(L,identity$2,baseGt$1):void 0}var max_1=max$1,convert$8=convert_1,func$8=convert$8("max",max_1,_falseOptions);func$8.placeholder=placeholder;var max=func$8,baseExtremum$2=_baseExtremum,baseGt=_baseGt,baseIteratee$2=_baseIteratee;function maxBy$1(L,V){return L&&L.length?baseExtremum$2(L,baseIteratee$2(V),baseGt):void 0}var maxBy_1=maxBy$1,convert$7=convert_1,func$7=convert$7("maxBy",maxBy_1);func$7.placeholder=placeholder;var maxBy=func$7,baseAssignValue=_baseAssignValue,eq$1=eq_1;function assignMergeValue$2(L,V,G){(G!==void 0&&!eq$1(L[V],G)||G===void 0&&!(V in L))&&baseAssignValue(L,V,G)}var _assignMergeValue=assignMergeValue$2;function safeGet$2(L,V){if(!(V==="constructor"&&typeof L[V]=="function")&&V!="__proto__")return L[V]}var _safeGet=safeGet$2,copyObject$1=_copyObject,keysIn$1=keysIn_1;function toPlainObject$1(L){return copyObject$1(L,keysIn$1(L))}var toPlainObject_1=toPlainObject$1,assignMergeValue$1=_assignMergeValue,cloneBuffer=_cloneBuffer.exports,cloneTypedArray=_cloneTypedArray,copyArray=_copyArray,initCloneObject=_initCloneObject,isArguments=isArguments_1,isArray$2=isArray_1,isArrayLikeObject=isArrayLikeObject_1,isBuffer=isBuffer$1.exports,isFunction=isFunction_1,isObject$2=isObject_1,isPlainObject$1=isPlainObject_1,isTypedArray=isTypedArray_1,safeGet$1=_safeGet,toPlainObject=toPlainObject_1;function baseMergeDeep$1(L,V,G,K,ee,te,re){var ce=safeGet$1(L,G),ue=safeGet$1(V,G),de=re.get(ue);if(de){assignMergeValue$1(L,G,de);return}var ve=te?te(ce,ue,G+"",L,V,re):void 0,st=ve===void 0;if(st){var Ae=isArray$2(ue),at=!Ae&&isBuffer(ue),ot=!Ae&&!at&&isTypedArray(ue);ve=ue,Ae||at||ot?isArray$2(ce)?ve=ce:isArrayLikeObject(ce)?ve=copyArray(ce):at?(st=!1,ve=cloneBuffer(ue,!0)):ot?(st=!1,ve=cloneTypedArray(ue,!0)):ve=[]:isPlainObject$1(ue)||isArguments(ue)?(ve=ce,isArguments(ce)?ve=toPlainObject(ce):(!isObject$2(ce)||isFunction(ce))&&(ve=initCloneObject(ue))):st=!1}st&&(re.set(ue,ve),ee(ve,ue,K,te,re),re.delete(ue)),assignMergeValue$1(L,G,ve)}var _baseMergeDeep=baseMergeDeep$1,Stack=_Stack,assignMergeValue=_assignMergeValue,baseFor=_baseFor,baseMergeDeep=_baseMergeDeep,isObject$1=isObject_1,keysIn=keysIn_1,safeGet=_safeGet;function baseMerge$1(L,V,G,K,ee){L!==V&&baseFor(V,function(te,re){if(ee||(ee=new Stack),isObject$1(te))baseMergeDeep(L,V,re,G,baseMerge$1,K,ee);else{var ce=K?K(safeGet(L,re),te,re+"",L,V,ee):void 0;ce===void 0&&(ce=te),assignMergeValue(L,re,ce)}},keysIn)}var _baseMerge=baseMerge$1,eq=eq_1,isArrayLike=isArrayLike_1,isIndex=_isIndex,isObject=isObject_1;function isIterateeCall$2(L,V,G){if(!isObject(G))return!1;var K=typeof V;return(K=="number"?isArrayLike(G)&&isIndex(V,G.length):K=="string"&&V in G)?eq(G[V],L):!1}var _isIterateeCall=isIterateeCall$2,baseRest=_baseRest,isIterateeCall$1=_isIterateeCall;function createAssigner$1(L){return baseRest(function(V,G){var K=-1,ee=G.length,te=ee>1?G[ee-1]:void 0,re=ee>2?G[2]:void 0;for(te=L.length>3&&typeof te=="function"?(ee--,te):void 0,re&&isIterateeCall$1(G[0],G[1],re)&&(te=ee<3?void 0:te,ee=1),V=Object(V);++K<ee;){var ce=G[K];ce&&L(V,ce,K,te)}return V})}var _createAssigner=createAssigner$1,baseMerge=_baseMerge,createAssigner=_createAssigner,merge$1=createAssigner(function(L,V,G){baseMerge(L,V,G)}),merge_1=merge$1,convert$6=convert_1,func$6=convert$6("merge",merge_1);func$6.placeholder=placeholder;var merge=func$6,baseExtremum$1=_baseExtremum,baseLt$1=_baseLt,identity$1=identity_1;function min$1(L){return L&&L.length?baseExtremum$1(L,identity$1,baseLt$1):void 0}var min_1=min$1,convert$5=convert_1,func$5=convert$5("min",min_1,_falseOptions);func$5.placeholder=placeholder;var min=func$5,baseExtremum=_baseExtremum,baseIteratee$1=_baseIteratee,baseLt=_baseLt;function minBy$1(L,V){return L&&L.length?baseExtremum(L,baseIteratee$1(V),baseLt):void 0}var minBy_1=minBy$1,convert$4=convert_1,func$4=convert$4("minBy",minBy_1);func$4.placeholder=placeholder;var minBy=func$4;function last$1(L){var V=L==null?0:L.length;return V?L[V-1]:void 0}var last_1=last$1;function baseSlice$2(L,V,G){var K=-1,ee=L.length;V<0&&(V=-V>ee?0:ee+V),G=G>ee?ee:G,G<0&&(G+=ee),ee=V>G?0:G-V>>>0,V>>>=0;for(var te=Array(ee);++K<ee;)te[K]=L[K+V];return te}var _baseSlice=baseSlice$2,baseGet$1=_baseGet,baseSlice$1=_baseSlice;function parent$1(L,V){return V.length<2?L:baseGet$1(L,baseSlice$1(V,0,-1))}var _parent=parent$1,castPath$1=_castPath,last=last_1,parent=_parent,toKey=_toKey;function baseUnset$1(L,V){return V=castPath$1(V,L),L=parent(L,V),L==null||delete L[toKey(last(V))]}var _baseUnset=baseUnset$1,isPlainObject=isPlainObject_1;function customOmitClone$1(L){return isPlainObject(L)?void 0:L}var _customOmitClone=customOmitClone$1,arrayMap$1=_arrayMap,baseClone=_baseClone,baseUnset=_baseUnset,castPath=_castPath,copyObject=_copyObject,customOmitClone=_customOmitClone,flatRest=_flatRest,getAllKeysIn=_getAllKeysIn,CLONE_DEEP_FLAG=1,CLONE_FLAT_FLAG=2,CLONE_SYMBOLS_FLAG=4,omit$1=flatRest(function(L,V){var G={};if(L==null)return G;var K=!1;V=arrayMap$1(V,function(te){return te=castPath(te,L),K||(K=te.length>1),te}),copyObject(L,getAllKeysIn(L),G),K&&(G=baseClone(G,CLONE_DEEP_FLAG|CLONE_FLAT_FLAG|CLONE_SYMBOLS_FLAG,customOmitClone));for(var ee=V.length;ee--;)baseUnset(G,V[ee]);return G}),omit_1=omit$1,convert$3=convert_1,func$3=convert$3("omit",omit_1);func$3.placeholder=placeholder;var omit=func$3;function baseSortBy$1(L,V){var G=L.length;for(L.sort(V);G--;)L[G]=L[G].value;return L}var _baseSortBy=baseSortBy$1,isSymbol=isSymbol_1;function compareAscending$1(L,V){if(L!==V){var G=L!==void 0,K=L===null,ee=L===L,te=isSymbol(L),re=V!==void 0,ce=V===null,ue=V===V,de=isSymbol(V);if(!ce&&!de&&!te&&L>V||te&&re&&ue&&!ce&&!de||K&&re&&ue||!G&&ue||!ee)return 1;if(!K&&!te&&!de&&L<V||de&&G&&ee&&!K&&!te||ce&&G&&ee||!re&&ee||!ue)return-1}return 0}var _compareAscending=compareAscending$1,compareAscending=_compareAscending;function compareMultiple$1(L,V,G){for(var K=-1,ee=L.criteria,te=V.criteria,re=ee.length,ce=G.length;++K<re;){var ue=compareAscending(ee[K],te[K]);if(ue){if(K>=ce)return ue;var de=G[K];return ue*(de=="desc"?-1:1)}}return L.index-V.index}var _compareMultiple=compareMultiple$1,arrayMap=_arrayMap,baseGet=_baseGet,baseIteratee=_baseIteratee,baseMap=_baseMap,baseSortBy=_baseSortBy,baseUnary$1=_baseUnary,compareMultiple=_compareMultiple,identity=identity_1,isArray$1=isArray_1;function baseOrderBy$1(L,V,G){V.length?V=arrayMap(V,function(te){return isArray$1(te)?function(re){return baseGet(re,te.length===1?te[0]:te)}:te}):V=[identity];var K=-1;V=arrayMap(V,baseUnary$1(baseIteratee));var ee=baseMap(L,function(te,re,ce){var ue=arrayMap(V,function(de){return de(te)});return{criteria:ue,index:++K,value:te}});return baseSortBy(ee,function(te,re){return compareMultiple(te,re,G)})}var _baseOrderBy=baseOrderBy$1,baseOrderBy=_baseOrderBy,isArray=isArray_1;function orderBy$1(L,V,G,K){return L==null?[]:(isArray(V)||(V=V==null?[]:[V]),G=K?void 0:G,isArray(G)||(G=G==null?[]:[G]),baseOrderBy(L,V,G))}var orderBy_1=orderBy$1,convert$2=convert_1,func$2=convert$2("orderBy",orderBy_1);func$2.placeholder=placeholder;var orderBy=func$2,baseSlice=_baseSlice;function castSlice$1(L,V,G){var K=L.length;return G=G===void 0?K:G,!V&&G>=K?L:baseSlice(L,V,G)}var _castSlice=castSlice$1,baseGetTag=_baseGetTag,isObjectLike=isObjectLike_1,regexpTag="[object RegExp]";function baseIsRegExp$1(L){return isObjectLike(L)&&baseGetTag(L)==regexpTag}var _baseIsRegExp=baseIsRegExp$1,baseIsRegExp=_baseIsRegExp,baseUnary=_baseUnary,nodeUtil=_nodeUtil.exports,nodeIsRegExp=nodeUtil&&nodeUtil.isRegExp,isRegExp$1=nodeIsRegExp?baseUnary(nodeIsRegExp):baseIsRegExp,isRegExp_1=isRegExp$1;function asciiToArray$1(L){return L.split("")}var _asciiToArray=asciiToArray$1,rsAstralRange="\\ud800-\\udfff",rsComboMarksRange="\\u0300-\\u036f",reComboHalfMarksRange="\\ufe20-\\ufe2f",rsComboSymbolsRange="\\u20d0-\\u20ff",rsComboRange=rsComboMarksRange+reComboHalfMarksRange+rsComboSymbolsRange,rsVarRange="\\ufe0e\\ufe0f",rsAstral="["+rsAstralRange+"]",rsCombo="["+rsComboRange+"]",rsFitz="\\ud83c[\\udffb-\\udfff]",rsModifier="(?:"+rsCombo+"|"+rsFitz+")",rsNonAstral="[^"+rsAstralRange+"]",rsRegional="(?:\\ud83c[\\udde6-\\uddff]){2}",rsSurrPair="[\\ud800-\\udbff][\\udc00-\\udfff]",rsZWJ="\\u200d",reOptMod=rsModifier+"?",rsOptVar="["+rsVarRange+"]?",rsOptJoin="(?:"+rsZWJ+"(?:"+[rsNonAstral,rsRegional,rsSurrPair].join("|")+")"+rsOptVar+reOptMod+")*",rsSeq=rsOptVar+reOptMod+rsOptJoin,rsSymbol="(?:"+[rsNonAstral+rsCombo+"?",rsCombo,rsRegional,rsSurrPair,rsAstral].join("|")+")",reUnicode=RegExp(rsFitz+"(?="+rsFitz+")|"+rsSymbol+rsSeq,"g");function unicodeToArray$1(L){return L.match(reUnicode)||[]}var _unicodeToArray=unicodeToArray$1,asciiToArray=_asciiToArray,hasUnicode$1=_hasUnicode,unicodeToArray=_unicodeToArray;function stringToArray$1(L){return hasUnicode$1(L)?unicodeToArray(L):asciiToArray(L)}var _stringToArray=stringToArray$1,baseToString=_baseToString,castSlice=_castSlice,hasUnicode=_hasUnicode,isIterateeCall=_isIterateeCall,isRegExp=isRegExp_1,stringToArray=_stringToArray,toString=toString_1,MAX_ARRAY_LENGTH=4294967295;function split$1(L,V,G){return G&&typeof G!="number"&&isIterateeCall(L,V,G)&&(V=G=void 0),G=G===void 0?MAX_ARRAY_LENGTH:G>>>0,G?(L=toString(L),L&&(typeof V=="string"||V!=null&&!isRegExp(V))&&(V=baseToString(V),!V&&hasUnicode(L))?castSlice(stringToArray(L),0,G):L.split(V,G)):[]}var split_1=split$1,convert$1=convert_1,func$1=convert$1("split",split_1);func$1.placeholder=placeholder;var split=func$1,convert=convert_1,func=convert("toNumber",toNumber_1,_falseOptions);func.placeholder=placeholder;var toNumber=func;const constructFilterEntity=(L,V)=>{if(isEmpty(L))return{};const K=[...new URLSearchParams((L==null?void 0:L.searchOriginal)||"").entries()],ee={ids:[],entities:{},filterCount:{}};let te="",re="",ce=1;return K.forEach(([ue,de])=>{if(ue==="page")return ce=+de;if(ue==="query")return te=de;if(ue==="sortBy")return re=de;let ve=`${ue}-${de}`;V&&!V.includes(ue)||(ue==="price"&&(ve=ue),ee.ids.push(ve),ee.entities[ve]={id:ve,value:de,type:ue},ee.filterCount[ue]=(ee.filterCount[ue]||0)+1)}),ee.ids=uniq(ee.ids),{appliedFilters:ee,searchQuery:te,sortQuery:re,pageNo:ce}},applyFiltersToProducts=(L,V,G,K)=>{let ee=L;return K&&K!=="All"&&(ee=L.filter(re=>{var ce;return!!(re!=null&&re.category)&&!!((ce=re.category)!=null&&ce.find(ue=>ue.slug===K))})),isEmpty(V)?ee:ee.filter(re=>{e:for(const ce of G){const ue=re.filters||{};if(isArray$3(ue[ce])){const de=ue[ce].map(st=>`${ce}-${st}`);let ve=0;for(;ve<de.length;){if(V[de[ve]])continue e;ve+=1}if(ve>=de.length)return!1}else if(ce==="price"){const ve=V[ce].value.split(",");if(size$1(re.variants)>0){const{variants:st}=re;let Ae=0;for(;Ae<st.length;){const at=st[Ae],ot=get$2("discountedPrice")(at)||get$2("price")(at);if(+ot>=+ve[0]&&+ot<=+ve[1])continue e;Ae+=1}if(Ae>=st.length)return!1}else{const st=get$2("discountedPrice")(re)||get$2("price")(re);return+st>=+ve[0]&&+st<=+ve[1]}}else{const de=slugify(`${ce} ${ue[ce]}`);if(!V[de])return!1}}return!0})},isSortByAsc=curry((L,V)=>L==="price acend"),isSortByDesc=curry((L,V)=>L==="price decend"),hasVariants=flow(get$2("variants"),size$1,Boolean),variantDataList=flow(get$2("variants"));curry((L,V)=>!L);const applySortByToProducts=(L,V,G)=>{const K=orderBy("priceForSorting","asc"),ee=orderBy("priceForSorting","desc"),te=isSortByAsc(V),re=isSortByDesc(V),ce=rt=>({...rt,priceForSorting:toNumber(rt.discountedPrice||rt.price)}),de=map$2(flow(rt=>get$2("discountedPrice")(rt)||get$2("price")(rt),toNumber)),ve=cond([[te,K],[re,ee],[T$5,identity$3]]),st=cond([[te,min],[re,max],[T$5,head]]),Ae=rt=>{const ft=flow(variantDataList,de,st)(rt);return{...rt,priceForSorting:ft}},at=map$2(omit("priceForSorting")),ot=map$2(cond([[hasVariants,Ae],[T$5,ce]]));return flow(ot,ve,at)(L)},getInitialVariantFormValues=(L,V,G,K={})=>{if(!L)return{};const ee=isSortByAsc(G),te=isSortByDesc(G),re=V.reduce((Oe,nt)=>(has(L,`properties.${nt}`)&&(Oe[nt]=null),Oe),{}),ce=flow(get$2("variants"),head,get$2("value")),ue=map$2(Oe=>({...Oe,discountedPrice:toNumber(Oe.discountedPrice),price:toNumber(Oe.price)})),de=maxBy(Oe=>!(Oe!=null&&Oe.discountedPrice)||Oe.price>Oe.discountedPrice?Oe.price:Oe.discountedPrice),ve=minBy(Oe=>!(Oe!=null&&Oe.discountedPrice)||Oe.price<Oe.discountedPrice?Oe.price:Oe.discountedPrice),st=flow(ue,de),Ae=flow(ue,ve),ot=cond([[ee,Ae],[te,st],[T$5,Oe=>find$2(nt=>{const it=lowerCase(nt==null?void 0:nt.availability)!=="out of stock"&&(nt==null?void 0:nt.stock)>0,{price:lt,...ct}=K;let ut=new Map;keys(ct).forEach(Ft=>{var At;const jt=ct[Ft],Bt=flatten([(At=nt==null?void 0:nt.properties)==null?void 0:At[Ft]]);if(!Bt||!Bt.length){ut.set(Ft,!1);return}ut.set(Ft,!!jt.some($t=>Bt.includes($t)))});const bt=[...ut.values()].every(Boolean),gt=toNumber(nt==null?void 0:nt.discountedPrice)||toNumber(nt==null?void 0:nt.price),[Pt,Nt]=flow(head,split(","),map$2(toNumber))(lt),Ot=!lt||lt&&gt>=Pt&&gt<=Nt;return isEmpty(K)?it:bt&&Ot},Oe)||head(Oe)]]),rt=flow(variantDataList,ot,get$2("value"),merge(re));return cond([[hasVariants,rt],[T$5,ce]])(L)};var productHelper={constructFilterEntity,applyFiltersToProducts,applySortByToProducts,getInitialVariantFormValues};(()=>{var L={296:(ee,te,re)=>{var ce=/^\s+|\s+$/g,ue=/^[-+]0x[0-9a-f]+$/i,de=/^0b[01]+$/i,ve=/^0o[0-7]+$/i,st=parseInt,Ae=typeof re.g=="object"&&re.g&&re.g.Object===Object&&re.g,at=typeof self=="object"&&self&&self.Object===Object&&self,ot=Ae||at||Function("return this")(),rt=Object.prototype.toString,ft=Math.max,Oe=Math.min,nt=function(){return ot.Date.now()};function it(ct){var ut=typeof ct;return!!ct&&(ut=="object"||ut=="function")}function lt(ct){if(typeof ct=="number")return ct;if(function(gt){return typeof gt=="symbol"||function(Pt){return!!Pt&&typeof Pt=="object"}(gt)&&rt.call(gt)=="[object Symbol]"}(ct))return NaN;if(it(ct)){var ut=typeof ct.valueOf=="function"?ct.valueOf():ct;ct=it(ut)?ut+"":ut}if(typeof ct!="string")return ct===0?ct:+ct;ct=ct.replace(ce,"");var bt=de.test(ct);return bt||ve.test(ct)?st(ct.slice(2),bt?2:8):ue.test(ct)?NaN:+ct}ee.exports=function(ct,ut,bt){var gt,Pt,Nt,Ot,Ft,jt,Bt=0,At=!1,$t=!1,Ct=!0;if(typeof ct!="function")throw new TypeError("Expected a function");function dt(Yt){var nr=gt,ur=Pt;return gt=Pt=void 0,Bt=Yt,Ot=ct.apply(ur,nr)}function mt(Yt){var nr=Yt-jt;return jt===void 0||nr>=ut||nr<0||$t&&Yt-Bt>=Nt}function kt(){var Yt=nt();if(mt(Yt))return It(Yt);Ft=setTimeout(kt,function(nr){var ur=ut-(nr-jt);return $t?Oe(ur,Nt-(nr-Bt)):ur}(Yt))}function It(Yt){return Ft=void 0,Ct&&gt?dt(Yt):(gt=Pt=void 0,Ot)}function Kt(){var Yt=nt(),nr=mt(Yt);if(gt=arguments,Pt=this,jt=Yt,nr){if(Ft===void 0)return function(ur){return Bt=ur,Ft=setTimeout(kt,ut),At?dt(ur):Ot}(jt);if($t)return Ft=setTimeout(kt,ut),dt(jt)}return Ft===void 0&&(Ft=setTimeout(kt,ut)),Ot}return ut=lt(ut)||0,it(bt)&&(At=!!bt.leading,Nt=($t="maxWait"in bt)?ft(lt(bt.maxWait)||0,ut):Nt,Ct="trailing"in bt?!!bt.trailing:Ct),Kt.cancel=function(){Ft!==void 0&&clearTimeout(Ft),Bt=0,gt=jt=Pt=Ft=void 0},Kt.flush=function(){return Ft===void 0?Ot:It(nt())},Kt}},96:(ee,te,re)=>{var ce="Expected a function",ue=NaN,de="[object Symbol]",ve=/^\s+|\s+$/g,st=/^[-+]0x[0-9a-f]+$/i,Ae=/^0b[01]+$/i,at=/^0o[0-7]+$/i,ot=parseInt,rt=typeof re.g=="object"&&re.g&&re.g.Object===Object&&re.g,ft=typeof self=="object"&&self&&self.Object===Object&&self,Oe=rt||ft||Function("return this")(),nt=Object.prototype.toString,it=Math.max,lt=Math.min,ct=function(){return Oe.Date.now()};function ut(gt){var Pt=typeof gt;return!!gt&&(Pt=="object"||Pt=="function")}function bt(gt){if(typeof gt=="number")return gt;if(function(Ot){return typeof Ot=="symbol"||function(Ft){return!!Ft&&typeof Ft=="object"}(Ot)&&nt.call(Ot)==de}(gt))return ue;if(ut(gt)){var Pt=typeof gt.valueOf=="function"?gt.valueOf():gt;gt=ut(Pt)?Pt+"":Pt}if(typeof gt!="string")return gt===0?gt:+gt;gt=gt.replace(ve,"");var Nt=Ae.test(gt);return Nt||at.test(gt)?ot(gt.slice(2),Nt?2:8):st.test(gt)?ue:+gt}ee.exports=function(gt,Pt,Nt){var Ot=!0,Ft=!0;if(typeof gt!="function")throw new TypeError(ce);return ut(Nt)&&(Ot="leading"in Nt?!!Nt.leading:Ot,Ft="trailing"in Nt?!!Nt.trailing:Ft),function(jt,Bt,At){var $t,Ct,dt,mt,kt,It,Kt=0,Yt=!1,nr=!1,ur=!0;if(typeof jt!="function")throw new TypeError(ce);function Vt(ir){var Jt=$t,cr=Ct;return $t=Ct=void 0,Kt=ir,mt=jt.apply(cr,Jt)}function lr(ir){var Jt=ir-It;return It===void 0||Jt>=Bt||Jt<0||nr&&ir-Kt>=dt}function sr(){var ir=ct();if(lr(ir))return pr(ir);kt=setTimeout(sr,function(Jt){var cr=Bt-(Jt-It);return nr?lt(cr,dt-(Jt-Kt)):cr}(ir))}function pr(ir){return kt=void 0,ur&&$t?Vt(ir):($t=Ct=void 0,mt)}function gr(){var ir=ct(),Jt=lr(ir);if($t=arguments,Ct=this,It=ir,Jt){if(kt===void 0)return function(cr){return Kt=cr,kt=setTimeout(sr,Bt),Yt?Vt(cr):mt}(It);if(nr)return kt=setTimeout(sr,Bt),Vt(It)}return kt===void 0&&(kt=setTimeout(sr,Bt)),mt}return Bt=bt(Bt)||0,ut(At)&&(Yt=!!At.leading,dt=(nr="maxWait"in At)?it(bt(At.maxWait)||0,Bt):dt,ur="trailing"in At?!!At.trailing:ur),gr.cancel=function(){kt!==void 0&&clearTimeout(kt),Kt=0,$t=It=Ct=kt=void 0},gr.flush=function(){return kt===void 0?mt:pr(ct())},gr}(gt,Pt,{leading:Ot,maxWait:Pt,trailing:Ft})}},703:(ee,te,re)=>{var ce=re(414);function ue(){}function de(){}de.resetWarningCache=ue,ee.exports=function(){function ve(at,ot,rt,ft,Oe,nt){if(nt!==ce){var it=new 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 it.name="Invariant Violation",it}}function st(){return ve}ve.isRequired=ve;var Ae={array:ve,bigint:ve,bool:ve,func:ve,number:ve,object:ve,string:ve,symbol:ve,any:ve,arrayOf:st,element:ve,elementType:ve,instanceOf:st,node:ve,objectOf:st,oneOf:st,oneOfType:st,shape:st,exact:st,checkPropTypes:de,resetWarningCache:ue};return Ae.PropTypes=Ae,Ae}},697:(ee,te,re)=>{ee.exports=re(703)()},414:ee=>{ee.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"}},V={};function G(ee){var te=V[ee];if(te!==void 0)return te.exports;var re=V[ee]={exports:{}};return L[ee](re,re.exports,G),re.exports}G.n=ee=>{var te=ee&&ee.__esModule?()=>ee.default:()=>ee;return G.d(te,{a:te}),te},G.d=(ee,te)=>{for(var re in te)G.o(te,re)&&!G.o(ee,re)&&Object.defineProperty(ee,re,{enumerable:!0,get:te[re]})},G.g=function(){if(typeof globalThis=="object")return globalThis;try{return this||new Function("return this")()}catch{if(typeof window=="object")return window}}(),G.o=(ee,te)=>Object.prototype.hasOwnProperty.call(ee,te),G.r=ee=>{typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(ee,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(ee,"__esModule",{value:!0})};var K={};(()=>{G.r(K),G.d(K,{LazyLoadComponent:()=>tr,LazyLoadImage:()=>$r,trackWindowScroll:()=>It});const ee=react$1.exports;var te=G.n(ee),re=G(697);const ce=reactDom.exports;var ue=G.n(ce);function de(){return typeof window!="undefined"&&"IntersectionObserver"in window&&"isIntersecting"in window.IntersectionObserverEntry.prototype}function ve(qt){return ve=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(zt){return typeof zt}:function(zt){return zt&&typeof Symbol=="function"&&zt.constructor===Symbol&&zt!==Symbol.prototype?"symbol":typeof zt},ve(qt)}function st(qt,zt){var Qt=Object.keys(qt);if(Object.getOwnPropertySymbols){var Ut=Object.getOwnPropertySymbols(qt);zt&&(Ut=Ut.filter(function(or){return Object.getOwnPropertyDescriptor(qt,or).enumerable})),Qt.push.apply(Qt,Ut)}return Qt}function Ae(qt,zt,Qt){return(zt=ot(zt))in qt?Object.defineProperty(qt,zt,{value:Qt,enumerable:!0,configurable:!0,writable:!0}):qt[zt]=Qt,qt}function at(qt,zt){for(var Qt=0;Qt<zt.length;Qt++){var Ut=zt[Qt];Ut.enumerable=Ut.enumerable||!1,Ut.configurable=!0,"value"in Ut&&(Ut.writable=!0),Object.defineProperty(qt,ot(Ut.key),Ut)}}function ot(qt){var zt=function(Qt,Ut){if(ve(Qt)!=="object"||Qt===null)return Qt;var or=Qt[Symbol.toPrimitive];if(or!==void 0){var hr=or.call(Qt,"string");if(ve(hr)!=="object")return hr;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(Qt)}(qt);return ve(zt)==="symbol"?zt:String(zt)}function rt(qt,zt){return rt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(Qt,Ut){return Qt.__proto__=Ut,Qt},rt(qt,zt)}function ft(qt){return ft=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(zt){return zt.__proto__||Object.getPrototypeOf(zt)},ft(qt)}var Oe=function(qt){qt.forEach(function(zt){zt.isIntersecting&&zt.target.onVisible()})},nt={},it=function(qt){(function(Wt,Zt){if(typeof Zt!="function"&&Zt!==null)throw new TypeError("Super expression must either be null or a function");Wt.prototype=Object.create(Zt&&Zt.prototype,{constructor:{value:Wt,writable:!0,configurable:!0}}),Object.defineProperty(Wt,"prototype",{writable:!1}),Zt&&rt(Wt,Zt)})(br,qt);var zt,Qt,Ut,or,hr=(Ut=br,or=function(){if(typeof Reflect=="undefined"||!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(){var Wt,Zt=ft(Ut);if(or){var dr=ft(this).constructor;Wt=Reflect.construct(Zt,arguments,dr)}else Wt=Zt.apply(this,arguments);return function(yr,vr){if(vr&&(ve(vr)==="object"||typeof vr=="function"))return vr;if(vr!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(Er){if(Er===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return Er}(yr)}(this,Wt)});function br(Wt){var Zt;if(function(yr,vr){if(!(yr instanceof vr))throw new TypeError("Cannot call a class as a function")}(this,br),(Zt=hr.call(this,Wt)).supportsObserver=!Wt.scrollPosition&&Wt.useIntersectionObserver&&de(),Zt.supportsObserver){var dr=Wt.threshold;Zt.observer=function(yr){return nt[yr]=nt[yr]||new IntersectionObserver(Oe,{rootMargin:yr+"px"}),nt[yr]}(dr)}return Zt}return zt=br,Qt=[{key:"componentDidMount",value:function(){this.placeholder&&this.observer&&(this.placeholder.onVisible=this.props.onVisible,this.observer.observe(this.placeholder)),this.supportsObserver||this.updateVisibility()}},{key:"componentWillUnmount",value:function(){this.observer&&this.placeholder&&this.observer.unobserve(this.placeholder)}},{key:"componentDidUpdate",value:function(){this.supportsObserver||this.updateVisibility()}},{key:"getPlaceholderBoundingBox",value:function(){var Wt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.props.scrollPosition,Zt=this.placeholder.getBoundingClientRect(),dr=ue().findDOMNode(this.placeholder).style,yr=parseInt(dr.getPropertyValue("margin-left"),10)||0,vr=parseInt(dr.getPropertyValue("margin-top"),10)||0;return{bottom:Wt.y+Zt.bottom+vr,left:Wt.x+Zt.left+yr,right:Wt.x+Zt.right+yr,top:Wt.y+Zt.top+vr}}},{key:"isPlaceholderInViewport",value:function(){if(typeof window=="undefined"||!this.placeholder)return!1;var Wt=this.props,Zt=Wt.scrollPosition,dr=Wt.threshold,yr=this.getPlaceholderBoundingBox(Zt),vr=Zt.y+window.innerHeight,Er=Zt.x,Pr=Zt.x+window.innerWidth,Tr=Zt.y;return Boolean(Tr-dr<=yr.bottom&&vr+dr>=yr.top&&Er-dr<=yr.right&&Pr+dr>=yr.left)}},{key:"updateVisibility",value:function(){this.isPlaceholderInViewport()&&this.props.onVisible()}},{key:"render",value:function(){var Wt=this,Zt=this.props,dr=Zt.className,yr=Zt.height,vr=Zt.placeholder,Er=Zt.style,Pr=Zt.width;if(vr&&typeof vr.type!="function")return te().cloneElement(vr,{ref:function(_r){return Wt.placeholder=_r}});var Tr=function(_r){for(var Ir=1;Ir<arguments.length;Ir++){var Ar=arguments[Ir]!=null?arguments[Ir]:{};Ir%2?st(Object(Ar),!0).forEach(function(kr){Ae(_r,kr,Ar[kr])}):Object.getOwnPropertyDescriptors?Object.defineProperties(_r,Object.getOwnPropertyDescriptors(Ar)):st(Object(Ar)).forEach(function(kr){Object.defineProperty(_r,kr,Object.getOwnPropertyDescriptor(Ar,kr))})}return _r}({display:"inline-block"},Er);return Pr!==void 0&&(Tr.width=Pr),yr!==void 0&&(Tr.height=yr),te().createElement("span",{className:dr,ref:function(_r){return Wt.placeholder=_r},style:Tr},vr)}}],Qt&&at(zt.prototype,Qt),Object.defineProperty(zt,"prototype",{writable:!1}),br}(te().Component);it.propTypes={onVisible:re.PropTypes.func.isRequired,className:re.PropTypes.string,height:re.PropTypes.oneOfType([re.PropTypes.number,re.PropTypes.string]),placeholder:re.PropTypes.element,threshold:re.PropTypes.number,useIntersectionObserver:re.PropTypes.bool,scrollPosition:re.PropTypes.shape({x:re.PropTypes.number.isRequired,y:re.PropTypes.number.isRequired}),width:re.PropTypes.oneOfType([re.PropTypes.number,re.PropTypes.string])},it.defaultProps={className:"",placeholder:null,threshold:100,useIntersectionObserver:!0};const lt=it;var ct=G(296),ut=G.n(ct),bt=G(96),gt=G.n(bt),Pt=function(qt){var zt=getComputedStyle(qt,null);return zt.getPropertyValue("overflow")+zt.getPropertyValue("overflow-y")+zt.getPropertyValue("overflow-x")};const Nt=function(qt){if(!(qt instanceof HTMLElement))return window;for(var zt=qt;zt&&zt instanceof HTMLElement;){if(/(scroll|auto)/.test(Pt(zt)))return zt;zt=zt.parentNode}return window};function Ot(qt){return Ot=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(zt){return typeof zt}:function(zt){return zt&&typeof Symbol=="function"&&zt.constructor===Symbol&&zt!==Symbol.prototype?"symbol":typeof zt},Ot(qt)}var Ft=["delayMethod","delayTime"];function jt(){return jt=Object.assign?Object.assign.bind():function(qt){for(var zt=1;zt<arguments.length;zt++){var Qt=arguments[zt];for(var Ut in Qt)Object.prototype.hasOwnProperty.call(Qt,Ut)&&(qt[Ut]=Qt[Ut])}return qt},jt.apply(this,arguments)}function Bt(qt,zt){for(var Qt=0;Qt<zt.length;Qt++){var Ut=zt[Qt];Ut.enumerable=Ut.enumerable||!1,Ut.configurable=!0,"value"in Ut&&(Ut.writable=!0),Object.defineProperty(qt,(or=function(hr,br){if(Ot(hr)!=="object"||hr===null)return hr;var Wt=hr[Symbol.toPrimitive];if(Wt!==void 0){var Zt=Wt.call(hr,"string");if(Ot(Zt)!=="object")return Zt;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(hr)}(Ut.key),Ot(or)==="symbol"?or:String(or)),Ut)}var or}function At(qt,zt){return At=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(Qt,Ut){return Qt.__proto__=Ut,Qt},At(qt,zt)}function $t(qt,zt){if(zt&&(Ot(zt)==="object"||typeof zt=="function"))return zt;if(zt!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Ct(qt)}function Ct(qt){if(qt===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return qt}function dt(qt){return dt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(zt){return zt.__proto__||Object.getPrototypeOf(zt)},dt(qt)}var mt=function(){return typeof window=="undefined"?0:window.scrollX||window.pageXOffset},kt=function(){return typeof window=="undefined"?0:window.scrollY||window.pageYOffset};const It=function(qt){var zt=function(Qt){(function(dr,yr){if(typeof yr!="function"&&yr!==null)throw new TypeError("Super expression must either be null or a function");dr.prototype=Object.create(yr&&yr.prototype,{constructor:{value:dr,writable:!0,configurable:!0}}),Object.defineProperty(dr,"prototype",{writable:!1}),yr&&At(dr,yr)})(Zt,Qt);var Ut,or,hr,br,Wt=(hr=Zt,br=function(){if(typeof Reflect=="undefined"||!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(){var dr,yr=dt(hr);if(br){var vr=dt(this).constructor;dr=Reflect.construct(yr,arguments,vr)}else dr=yr.apply(this,arguments);return $t(this,dr)});function Zt(dr){var yr;if(function(Er,Pr){if(!(Er instanceof Pr))throw new TypeError("Cannot call a class as a function")}(this,Zt),(yr=Wt.call(this,dr)).useIntersectionObserver=dr.useIntersectionObserver&&de(),yr.useIntersectionObserver)return $t(yr);var vr=yr.onChangeScroll.bind(Ct(yr));return dr.delayMethod==="debounce"?yr.delayedScroll=ut()(vr,dr.delayTime):dr.delayMethod==="throttle"&&(yr.delayedScroll=gt()(vr,dr.delayTime)),yr.state={scrollPosition:{x:mt(),y:kt()}},yr.baseComponentRef=te().createRef(),yr}return Ut=Zt,(or=[{key:"componentDidMount",value:function(){this.addListeners()}},{key:"componentWillUnmount",value:function(){this.removeListeners()}},{key:"componentDidUpdate",value:function(){typeof window=="undefined"||this.useIntersectionObserver||Nt(ue().findDOMNode(this.baseComponentRef.current))!==this.scrollElement&&(this.removeListeners(),this.addListeners())}},{key:"addListeners",value:function(){typeof window=="undefined"||this.useIntersectionObserver||(this.scrollElement=Nt(ue().findDOMNode(this.baseComponentRef.current)),this.scrollElement.addEventListener("scroll",this.delayedScroll,{passive:!0}),window.addEventListener("resize",this.delayedScroll,{passive:!0}),this.scrollElement!==window&&window.addEventListener("scroll",this.delayedScroll,{passive:!0}))}},{key:"removeListeners",value:function(){typeof window=="undefined"||this.useIntersectionObserver||(this.scrollElement.removeEventListener("scroll",this.delayedScroll),window.removeEventListener("resize",this.delayedScroll),this.scrollElement!==window&&window.removeEventListener("scroll",this.delayedScroll))}},{key:"onChangeScroll",value:function(){this.useIntersectionObserver||this.setState({scrollPosition:{x:mt(),y:kt()}})}},{key:"render",value:function(){var dr=this.props,yr=(dr.delayMethod,dr.delayTime,function(Er,Pr){if(Er==null)return{};var Tr,_r,Ir=function(kr,Fr){if(kr==null)return{};var Mr,Or,Rr={},Lr=Object.keys(kr);for(Or=0;Or<Lr.length;Or++)Mr=Lr[Or],Fr.indexOf(Mr)>=0||(Rr[Mr]=kr[Mr]);return Rr}(Er,Pr);if(Object.getOwnPropertySymbols){var Ar=Object.getOwnPropertySymbols(Er);for(_r=0;_r<Ar.length;_r++)Tr=Ar[_r],Pr.indexOf(Tr)>=0||Object.prototype.propertyIsEnumerable.call(Er,Tr)&&(Ir[Tr]=Er[Tr])}return Ir}(dr,Ft)),vr=this.useIntersectionObserver?null:this.state.scrollPosition;return te().createElement(qt,jt({forwardRef:this.baseComponentRef,scrollPosition:vr},yr))}}])&&Bt(Ut.prototype,or),Object.defineProperty(Ut,"prototype",{writable:!1}),Zt}(te().Component);return zt.propTypes={delayMethod:re.PropTypes.oneOf(["debounce","throttle"]),delayTime:re.PropTypes.number,useIntersectionObserver:re.PropTypes.bool},zt.defaultProps={delayMethod:"throttle",delayTime:300,useIntersectionObserver:!0},zt};function Kt(qt){return Kt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(zt){return typeof zt}:function(zt){return zt&&typeof Symbol=="function"&&zt.constructor===Symbol&&zt!==Symbol.prototype?"symbol":typeof zt},Kt(qt)}function Yt(qt,zt){for(var Qt=0;Qt<zt.length;Qt++){var Ut=zt[Qt];Ut.enumerable=Ut.enumerable||!1,Ut.configurable=!0,"value"in Ut&&(Ut.writable=!0),Object.defineProperty(qt,(or=function(hr,br){if(Kt(hr)!=="object"||hr===null)return hr;var Wt=hr[Symbol.toPrimitive];if(Wt!==void 0){var Zt=Wt.call(hr,"string");if(Kt(Zt)!=="object")return Zt;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(hr)}(Ut.key),Kt(or)==="symbol"?or:String(or)),Ut)}var or}function nr(qt,zt){return nr=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(Qt,Ut){return Qt.__proto__=Ut,Qt},nr(qt,zt)}function ur(qt){return ur=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(zt){return zt.__proto__||Object.getPrototypeOf(zt)},ur(qt)}var Vt=function(qt){(function(Wt,Zt){if(typeof Zt!="function"&&Zt!==null)throw new TypeError("Super expression must either be null or a function");Wt.prototype=Object.create(Zt&&Zt.prototype,{constructor:{value:Wt,writable:!0,configurable:!0}}),Object.defineProperty(Wt,"prototype",{writable:!1}),Zt&&nr(Wt,Zt)})(br,qt);var zt,Qt,Ut,or,hr=(Ut=br,or=function(){if(typeof Reflect=="undefined"||!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(){var Wt,Zt=ur(Ut);if(or){var dr=ur(this).constructor;Wt=Reflect.construct(Zt,arguments,dr)}else Wt=Zt.apply(this,arguments);return function(yr,vr){if(vr&&(Kt(vr)==="object"||typeof vr=="function"))return vr;if(vr!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(Er){if(Er===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return Er}(yr)}(this,Wt)});function br(Wt){return function(Zt,dr){if(!(Zt instanceof dr))throw new TypeError("Cannot call a class as a function")}(this,br),hr.call(this,Wt)}return zt=br,(Qt=[{key:"render",value:function(){return te().createElement(lt,this.props)}}])&&Yt(zt.prototype,Qt),Object.defineProperty(zt,"prototype",{writable:!1}),br}(te().Component);const lr=It(Vt);function sr(qt){return sr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(zt){return typeof zt}:function(zt){return zt&&typeof Symbol=="function"&&zt.constructor===Symbol&&zt!==Symbol.prototype?"symbol":typeof zt},sr(qt)}function pr(qt,zt){for(var Qt=0;Qt<zt.length;Qt++){var Ut=zt[Qt];Ut.enumerable=Ut.enumerable||!1,Ut.configurable=!0,"value"in Ut&&(Ut.writable=!0),Object.defineProperty(qt,(or=function(hr,br){if(sr(hr)!=="object"||hr===null)return hr;var Wt=hr[Symbol.toPrimitive];if(Wt!==void 0){var Zt=Wt.call(hr,"string");if(sr(Zt)!=="object")return Zt;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(hr)}(Ut.key),sr(or)==="symbol"?or:String(or)),Ut)}var or}function gr(qt,zt){return gr=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(Qt,Ut){return Qt.__proto__=Ut,Qt},gr(qt,zt)}function ir(qt){if(qt===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return qt}function Jt(qt){return Jt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(zt){return zt.__proto__||Object.getPrototypeOf(zt)},Jt(qt)}var cr=function(qt){(function(Wt,Zt){if(typeof Zt!="function"&&Zt!==null)throw new TypeError("Super expression must either be null or a function");Wt.prototype=Object.create(Zt&&Zt.prototype,{constructor:{value:Wt,writable:!0,configurable:!0}}),Object.defineProperty(Wt,"prototype",{writable:!1}),Zt&&gr(Wt,Zt)})(br,qt);var zt,Qt,Ut,or,hr=(Ut=br,or=function(){if(typeof Reflect=="undefined"||!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(){var Wt,Zt=Jt(Ut);if(or){var dr=Jt(this).constructor;Wt=Reflect.construct(Zt,arguments,dr)}else Wt=Zt.apply(this,arguments);return function(yr,vr){if(vr&&(sr(vr)==="object"||typeof vr=="function"))return vr;if(vr!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return ir(yr)}(this,Wt)});function br(Wt){var Zt;(function(Pr,Tr){if(!(Pr instanceof Tr))throw new TypeError("Cannot call a class as a function")})(this,br),Zt=hr.call(this,Wt);var dr=Wt.afterLoad,yr=Wt.beforeLoad,vr=Wt.scrollPosition,Er=Wt.visibleByDefault;return Zt.state={visible:Er},Er&&(yr(),dr()),Zt.onVisible=Zt.onVisible.bind(ir(Zt)),Zt.isScrollTracked=Boolean(vr&&Number.isFinite(vr.x)&&vr.x>=0&&Number.isFinite(vr.y)&&vr.y>=0),Zt}return zt=br,(Qt=[{key:"componentDidUpdate",value:function(Wt,Zt){Zt.visible!==this.state.visible&&this.props.afterLoad()}},{key:"onVisible",value:function(){this.props.beforeLoad(),this.setState({visible:!0})}},{key:"render",value:function(){if(this.state.visible)return this.props.children;var Wt=this.props,Zt=Wt.className,dr=Wt.delayMethod,yr=Wt.delayTime,vr=Wt.height,Er=Wt.placeholder,Pr=Wt.scrollPosition,Tr=Wt.style,_r=Wt.threshold,Ir=Wt.useIntersectionObserver,Ar=Wt.width;return this.isScrollTracked||Ir&&de()?te().createElement(lt,{className:Zt,height:vr,onVisible:this.onVisible,placeholder:Er,scrollPosition:Pr,style:Tr,threshold:_r,useIntersectionObserver:Ir,width:Ar}):te().createElement(lr,{className:Zt,delayMethod:dr,delayTime:yr,height:vr,onVisible:this.onVisible,placeholder:Er,style:Tr,threshold:_r,width:Ar})}}])&&pr(zt.prototype,Qt),Object.defineProperty(zt,"prototype",{writable:!1}),br}(te().Component);cr.propTypes={afterLoad:re.PropTypes.func,beforeLoad:re.PropTypes.func,useIntersectionObserver:re.PropTypes.bool,visibleByDefault:re.PropTypes.bool},cr.defaultProps={afterLoad:function(){return{}},beforeLoad:function(){return{}},useIntersectionObserver:!0,visibleByDefault:!1};const tr=cr;function xr(qt){return xr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(zt){return typeof zt}:function(zt){return zt&&typeof Symbol=="function"&&zt.constructor===Symbol&&zt!==Symbol.prototype?"symbol":typeof zt},xr(qt)}var Sr=["afterLoad","beforeLoad","delayMethod","delayTime","effect","placeholder","placeholderSrc","scrollPosition","threshold","useIntersectionObserver","visibleByDefault","wrapperClassName","wrapperProps"];function Cr(qt,zt){var Qt=Object.keys(qt);if(Object.getOwnPropertySymbols){var Ut=Object.getOwnPropertySymbols(qt);zt&&(Ut=Ut.filter(function(or){return Object.getOwnPropertyDescriptor(qt,or).enumerable})),Qt.push.apply(Qt,Ut)}return Qt}function wr(qt){for(var zt=1;zt<arguments.length;zt++){var Qt=arguments[zt]!=null?arguments[zt]:{};zt%2?Cr(Object(Qt),!0).forEach(function(Ut){Lt(qt,Ut,Qt[Ut])}):Object.getOwnPropertyDescriptors?Object.defineProperties(qt,Object.getOwnPropertyDescriptors(Qt)):Cr(Object(Qt)).forEach(function(Ut){Object.defineProperty(qt,Ut,Object.getOwnPropertyDescriptor(Qt,Ut))})}return qt}function Lt(qt,zt,Qt){return(zt=ar(zt))in qt?Object.defineProperty(qt,zt,{value:Qt,enumerable:!0,configurable:!0,writable:!0}):qt[zt]=Qt,qt}function Gt(){return Gt=Object.assign?Object.assign.bind():function(qt){for(var zt=1;zt<arguments.length;zt++){var Qt=arguments[zt];for(var Ut in Qt)Object.prototype.hasOwnProperty.call(Qt,Ut)&&(qt[Ut]=Qt[Ut])}return qt},Gt.apply(this,arguments)}function Xt(qt,zt){for(var Qt=0;Qt<zt.length;Qt++){var Ut=zt[Qt];Ut.enumerable=Ut.enumerable||!1,Ut.configurable=!0,"value"in Ut&&(Ut.writable=!0),Object.defineProperty(qt,ar(Ut.key),Ut)}}function ar(qt){var zt=function(Qt,Ut){if(xr(Qt)!=="object"||Qt===null)return Qt;var or=Qt[Symbol.toPrimitive];if(or!==void 0){var hr=or.call(Qt,"string");if(xr(hr)!=="object")return hr;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(Qt)}(qt);return xr(zt)==="symbol"?zt:String(zt)}function rr(qt,zt){return rr=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(Qt,Ut){return Qt.__proto__=Ut,Qt},rr(qt,zt)}function er(qt){return er=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(zt){return zt.__proto__||Object.getPrototypeOf(zt)},er(qt)}var mr=function(qt){(function(Wt,Zt){if(typeof Zt!="function"&&Zt!==null)throw new TypeError("Super expression must either be null or a function");Wt.prototype=Object.create(Zt&&Zt.prototype,{constructor:{value:Wt,writable:!0,configurable:!0}}),Object.defineProperty(Wt,"prototype",{writable:!1}),Zt&&rr(Wt,Zt)})(br,qt);var zt,Qt,Ut,or,hr=(Ut=br,or=function(){if(typeof Reflect=="undefined"||!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(){var Wt,Zt=er(Ut);if(or){var dr=er(this).constructor;Wt=Reflect.construct(Zt,arguments,dr)}else Wt=Zt.apply(this,arguments);return function(yr,vr){if(vr&&(xr(vr)==="object"||typeof vr=="function"))return vr;if(vr!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(Er){if(Er===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return Er}(yr)}(this,Wt)});function br(Wt){var Zt;return function(dr,yr){if(!(dr instanceof yr))throw new TypeError("Cannot call a class as a function")}(this,br),(Zt=hr.call(this,Wt)).state={loaded:!1},Zt}return zt=br,(Qt=[{key:"onImageLoad",value:function(){var Wt=this;return this.state.loaded?null:function(Zt){Wt.props.onLoad(Zt),Wt.props.afterLoad(),Wt.setState({loaded:!0})}}},{key:"getImg",value:function(){var Wt=this.props,Zt=(Wt.afterLoad,Wt.beforeLoad,Wt.delayMethod,Wt.delayTime,Wt.effect,Wt.placeholder,Wt.placeholderSrc,Wt.scrollPosition,Wt.threshold,Wt.useIntersectionObserver,Wt.visibleByDefault,Wt.wrapperClassName,Wt.wrapperProps,function(dr,yr){if(dr==null)return{};var vr,Er,Pr=function(_r,Ir){if(_r==null)return{};var Ar,kr,Fr={},Mr=Object.keys(_r);for(kr=0;kr<Mr.length;kr++)Ar=Mr[kr],Ir.indexOf(Ar)>=0||(Fr[Ar]=_r[Ar]);return Fr}(dr,yr);if(Object.getOwnPropertySymbols){var Tr=Object.getOwnPropertySymbols(dr);for(Er=0;Er<Tr.length;Er++)vr=Tr[Er],yr.indexOf(vr)>=0||Object.prototype.propertyIsEnumerable.call(dr,vr)&&(Pr[vr]=dr[vr])}return Pr}(Wt,Sr));return te().createElement("img",Gt({},Zt,{onLoad:this.onImageLoad()}))}},{key:"getLazyLoadImage",value:function(){var Wt=this.props,Zt=Wt.beforeLoad,dr=Wt.className,yr=Wt.delayMethod,vr=Wt.delayTime,Er=Wt.height,Pr=Wt.placeholder,Tr=Wt.scrollPosition,_r=Wt.style,Ir=Wt.threshold,Ar=Wt.useIntersectionObserver,kr=Wt.visibleByDefault,Fr=Wt.width;return te().createElement(tr,{beforeLoad:Zt,className:dr,delayMethod:yr,delayTime:vr,height:Er,placeholder:Pr,scrollPosition:Tr,style:_r,threshold:Ir,useIntersectionObserver:Ar,visibleByDefault:kr,width:Fr},this.getImg())}},{key:"getWrappedLazyLoadImage",value:function(Wt){var Zt=this.props,dr=Zt.effect,yr=Zt.height,vr=Zt.placeholderSrc,Er=Zt.width,Pr=Zt.wrapperClassName,Tr=Zt.wrapperProps,_r=this.state.loaded,Ir=_r?" lazy-load-image-loaded":"",Ar=_r||!vr?{}:{backgroundImage:"url(".concat(vr,")"),backgroundSize:"100% 100%"};return te().createElement("span",Gt({className:Pr+" lazy-load-image-background "+dr+Ir,style:wr(wr({},Ar),{},{color:"transparent",display:"inline-block",height:yr,width:Er})},Tr),Wt)}},{key:"render",value:function(){var Wt=this.props,Zt=Wt.effect,dr=Wt.placeholderSrc,yr=Wt.visibleByDefault,vr=Wt.wrapperClassName,Er=Wt.wrapperProps,Pr=this.getLazyLoadImage();return(Zt||dr)&&!yr||vr||Er?this.getWrappedLazyLoadImage(Pr):Pr}}])&&Xt(zt.prototype,Qt),Object.defineProperty(zt,"prototype",{writable:!1}),br}(te().Component);mr.propTypes={onLoad:re.PropTypes.func,afterLoad:re.PropTypes.func,beforeLoad:re.PropTypes.func,delayMethod:re.PropTypes.string,delayTime:re.PropTypes.number,effect:re.PropTypes.string,placeholderSrc:re.PropTypes.string,threshold:re.PropTypes.number,useIntersectionObserver:re.PropTypes.bool,visibleByDefault:re.PropTypes.bool,wrapperClassName:re.PropTypes.string,wrapperProps:re.PropTypes.object},mr.defaultProps={onLoad:function(){},afterLoad:function(){return{}},beforeLoad:function(){return{}},delayMethod:"throttle",delayTime:300,effect:"",placeholderSrc:null,threshold:100,useIntersectionObserver:!0,visibleByDefault:!1,wrapperClassName:""};const $r=mr})()})();var blur$1="",blur="";function ProductCard({layout:L="card",product:V,openToast:G,carouselId:K}){var Vt,lr,sr,pr,gr,ir,Jt,cr,tr,xr,Sr,Cr,wr,Lt,Gt,Xt,ar,rr,er,mr,$r;const ee=useDispatch(),te=useSelector(selectcartItemEntities),re=useStoreContentSettings(),ce=get$1(re,"detailsPage.enabled",!1),ue=useStoreCheckoutSettings(),{limitToOneQuantityPerProduct:de=!1}=ue||{},ve=useSpecsColumns(),st=useKeyToPropsMap(),{storeOpen:Ae,isRtlLanguage:at}=useStoreGeneralSettings(),ot=!Ae,{showAddedToCartIndicator:rt}=useAddToCartNotification(),{urlParsed:ft}=usePageContext(),{appliedFilters:Oe,sortQuery:nt}=react$1.exports.useMemo(()=>parseFilterParams(ft),[ft]),it=react$1.exports.useMemo(()=>mapValues(groupBy$1(Oe==null?void 0:Oe.ids.reduce((qt,zt)=>(qt.push(Oe.entities[zt]),qt),[]),"type"),qt=>map$1(qt,"value")),[Oe]),{enabled:lt}=useStoreCheckoutSettings(),ct=useStoreDesignSettings(),ut=get$1(ct,"productCard.buttonText","Add to cart"),bt=useVariantColumns(),gt=useIsSSR(),Pt=useLocale(),Nt=useTagColors();useCurrency();const Ot=useForm({defaultValues:productHelper.getInitialVariantFormValues(V,bt,nt,it)}),{watch:Ft,handleSubmit:jt,reset:Bt}=Ot,[At,$t]=react$1.exports.useState(selectActiveVariant(V,Ot.getValues())),Ct=react$1.exports.useCallback(qt=>{const zt=selectActiveVariant(V,qt);zt&&$t(zt)},[V]);react$1.exports.useEffect(()=>{const qt=Ft(Ct);return()=>qt.unsubscribe()},[Ft,$t,Ct]),react$1.exports.useEffect(()=>{Bt(productHelper.getInitialVariantFormValues(V,bt,nt,it))},[V,bt,nt,it,Bt]);const dt=qt=>{const zt=omitBy(qt,isNil);if(!lt){At.link&&window.open(At.link,"_blank");return}const Ut={id:generateProductId(V.slug,zt),qty:ur!=null?ur:1,thumbnail:get$1(At,"images.0"),price:At.discountedPrice?+At.discountedPrice:+At.price,selectedVariant:At,selectedProduct:V};ee(addItemToCart(Ut)),rt(Ut),slEvents.emitAddToCart(Ut)};if(!V)return null;const mt=qt=>{if(!qt)return;const zt=qt.qty-1;if(qt.qty<=1||zt<ur)return ee(removeItemFromCart(qt.id));ee(updateItemQty({id:qt.id,qty:zt})),slEvents.emitRemoveFromCart({...qt,qty:zt})},kt=qt=>{omitBy(Ot.getValues(),isNil),qt&&(de&&qt.qty>=1||(ee(updateItemQty({id:qt.id,qty:qt.qty+1})),rt(qt),slEvents.emitAddToCart({...qt,qty:qt.qty+1})))},It=qt=>zt=>{let{value:Qt}=zt.target;Qt&&Qt.startsWith("0")&&(Qt=Qt.slice(1)),+Qt<=0&&(Qt=1),ee(updateItemQty({id:qt.id,qty:+Qt}))},Kt=lowerCase(get$1(At,"availability"))==="out of stock"||(At==null?void 0:At.stock)<=0,Yt=generateProductId(V.slug,Ot.getValues());if(!At)return null;const nr=!isEmpty(At.images),ur=get$1(At,"minimumQuantity",1);return L==="list"?jsx("div",{className:"product-item group relative overflow-hidden bg-white",children:jsxs("div",{className:"product-item-content px-4 py-6 transition-colors hover:bg-gray-50 sm:px-6 lg:px-8",children:[jsxs("div",{className:"product-item-layout flex",children:[jsx("div",{className:"product-item-image h-24 w-24 flex-shrink-0 overflow-clip rounded-md bg-gray-200 empty:hidden",children:nr&&jsx("img",{src:sanitizeUrl(At.images[0]),alt:V.name,className:"h-full w-full object-cover"})}),jsxs("div",{className:twJoin("product-item-details flex-1",nr?"ms-4 max-w-[calc(100%-112px)]":"ms-0 max-w-full"),children:[jsxs("div",{className:"product-item-title flex items-center gap-2",children:[jsx("h3",{className:classNames(Kt?"text-gray-400":"text-gray-900","w-fit text-sm font-semibold sm:text-base"),children:ce?jsxs("a",{href:`/product/${V==null?void 0:V.slug}`,className:"multiline-truncate w-full",title:V.name,children:[jsx("span",{"aria-hidden":"true",className:"pointer-events-none absolute inset-0"}),V.name]}):jsx("span",{className:"multiline-truncate w-full",title:V.name,children:V.name})}),jsx("div",{className:"product-item-tags inline-flex min-w-fit empty:hidden",children:isArray$3(get$1(At,"properties.tag"))&&((Vt=get$1(At,"properties.tag"))==null?void 0:Vt.map((qt,zt)=>jsx("span",{className:twMerge(Nt[qt],"rounded-full px-3 py-0.5 text-xs font-medium sm:text-sm",Kt&&"bg-gray-100 text-gray-800"),children:qt},zt)))})]}),jsx("p",{className:classNames(!ce&&"hidden",Kt?"text-gray-400":"text-gray-500","product-item-brand mt-1 text-xs empty:hidden sm:text-sm"),children:get$1(At,"properties.brand")}),jsxs("form",{onSubmit:jt(dt),children:[jsx("div",{className:"product-item-variant-selector my-2",children:jsx(VariantSelector,{selectedProduct:V,variantForm:Ot,variantOptions:bt,isMini:!0})}),!isEmpty(ve)&&jsxs(Fragment$1,{children:[!isEmpty(ve)&&jsx("div",{className:"mt-4 w-full border-t border-gray-100 pb-4"}),jsx("div",{className:"product-item-specs flex flex-1 flex-col",children:ve==null?void 0:ve.map((qt,zt)=>{var Ut,or,hr;let Qt=(or=(Ut=At==null?void 0:At.properties[qt])!=null?Ut:At[qt])!=null?or:At[camelCase$1(qt)];return isArray$3(Qt)&&(Qt=Qt.join(",")),!isNil(Qt)&&Qt!==""&&!(typeof Qt=="number"&&isNaN(Qt))&&jsxs("div",{className:classNames("flex items-center justify-between gap-4 py-1"),children:[jsx("span",{className:"text-xs text-gray-600 sm:text-sm",children:capitalize((hr=st[qt])!=null?hr:qt)}),jsx("span",{className:"mt-1 truncate text-xs font-medium text-gray-700 sm:col-span-2 sm:mt-0 sm:text-sm",dangerouslySetInnerHTML:{__html:Qt},title:Qt})]},zt)})})]}),jsxs("div",{className:twMerge("product-item-price-qty mt-auto flex flex-wrap items-center justify-between gap-2 pt-2",!isEmpty(ve)&&"pt-4"),children:[jsx(ProductPrice,{activeVariantData:At}),gt?jsx("div",{className:"h-[30px] w-[108px] animate-pulse rounded-lg bg-gray-200"}):jsx(Fragment$1,{children:!Kt&&te[Yt]&&!de?jsxs("span",{className:"product-item-qty-selector relative z-0 ms-auto flex self-end",children:[jsxs("button",{type:"button",className:"product-item-qty-btn relative inline-flex items-center rounded-s-md border border-e-0 border-primary px-2 py-1.5 text-sm font-medium text-primary transition hover:bg-primary/10 focus:z-10 focus:outline-none sm:px-2.5 sm:py-2",onClick:()=>mt(te[Yt]),children:[jsx("span",{className:"sr-only",children:"remove"}),((lr=te[Yt])==null?void 0:lr.qty)===1?jsx(TrashIcon$1,{className:"h-4 w-4","aria-hidden":"true"}):jsx(MinusIcon$1,{className:"h-4 w-4","aria-hidden":"true"})]}),jsx("input",{type:"number",className:"product-item-qty-input inline-flex w-11 min-w-[44px] max-w-[90px] flex-1 items-center justify-center border border-primary bg-primary/0 px-0 py-0 text-center text-xs font-semibold text-primary [-moz-appearance:textfield] focus:border-primary focus:outline-none focus:ring-1 focus:ring-primary disabled:bg-gray-50 disabled:text-gray-600 sm:text-sm",name:"custom-input-number","aria-label":"Quantity",style:{width:`${(sr=te[Yt])==null?void 0:sr.qty.toString().length}ch`},value:+((pr=te[Yt])==null?void 0:pr.qty),onChange:It(te[Yt])}),jsxs("button",{type:"button",className:"product-item-qty-btn relative inline-flex items-center rounded-e-md border border-s-0 border-primary px-2 py-1.5 text-sm font-medium text-primary transition hover:bg-primary/10 focus:z-10 focus:outline-none disabled:cursor-not-allowed disabled:bg-gray-100 disabled:text-gray-400 disabled:hover:bg-gray-100 sm:px-2.5 sm:py-2",onClick:()=>kt(te[Yt]),children:[jsx("span",{className:"sr-only",children:"add"}),jsx(PlusIcon$1,{className:"h-4 w-4","aria-hidden":"true"})]})]}):jsxs("button",{className:"product-item-add-to-cart-btn ms-auto flex min-w-fit cursor-pointer items-center justify-center self-end rounded-lg border border-primary px-2 py-1.5 text-xs font-medium text-primary transition hover:bg-primary/10 focus:outline-none focus:ring-2 focus:ring-primary/75 focus:ring-offset-2 disabled:cursor-not-allowed disabled:bg-gray-100 disabled:text-gray-400 disabled:hover:bg-gray-100 sm:text-sm",type:"submit",disabled:Kt||de&&((gr=te[Yt])==null?void 0:gr.qty)>=1,children:[Kt?`${(ir=Pt.outOfStock)!=null?ir:"Out of stock"}`:`${(cr=(Jt=Pt.addToCart)!=null?Jt:ut)!=null?cr:"Add to Cart"}`,jsxs("span",{className:"sr-only",children:[", ",V.name]}),!Kt&&jsx(PlusIcon$1,{className:"ms-2 h-4 w-4 text-primary","aria-hidden":"true"})]})})]})]})]})]}),hasStockExceeded(te[Yt])&&jsx("div",{className:"product-item-stock-exceeded mt-4",children:jsxs(ErrorAlert,{children:[(tr=Pt.stockExceeded)!=null?tr:"Unable to proceed. Available stock is"," ",getProductStock(te[Yt])]})}),((xr=te[Yt])==null?void 0:xr.qty)<ur&&jsx("div",{className:"product-item-min-order-qty mt-4",children:jsxs(WarningAlert,{children:[(Sr=Pt.minimumOrderQuantity)!=null?Sr:"Minimum order quantity is"," ",ur]})})]})}):jsxs("div",{className:"product-card group relative flex h-full flex-col overflow-hidden rounded-lg border border-gray-200 bg-white",children:[jsx("div",{className:classNames("product-card-image bg-white focus:outline-none sm:p-0"),onClick:qt=>{if(ce)return navigate(`/product/${V==null?void 0:V.slug}`);if(!lt){const zt=At==null?void 0:At.link;zt&&window.open(zt,"_blank")}},children:nr?jsxs(Carousel,{opts:{direction:at?"rtl":"ltr"},className:"product-card-carousel",children:[jsx(CarouselContent,{className:"product-card-carousel-content group",children:(Cr=At==null?void 0:At.images)==null?void 0:Cr.map((qt,zt)=>jsx(CarouselItem,{className:"product-card-carousel-item h-48 sm:h-72",children:jsx("img",{loading:"lazy",src:sanitizeUrl(qt),alt:V.name,"data-slide":`Slide ${zt+1}`,className:classNames(ce||!lt&&(At==null?void 0:At.link)?"cursor-pointer":"cursor-default",Kt?"grayscale":"","product-card-image broken-image-fallback relative h-full w-full object-cover object-center text-transparent focus:outline-none")},zt)},zt))}),((wr=At==null?void 0:At.images)==null?void 0:wr.length)>1&&jsxs("div",{className:"product-card-carousel-controls carousel-controls",children:[jsx(CarouselPrevious,{className:"product-card-carousel-prev absolute top-1/2 z-30 flex h-auto w-auto -translate-y-1/2 items-center justify-center rounded-full bg-white p-1 opacity-0 shadow-sm transition hover:shadow-lg active:scale-90 active:shadow-md group-hover:opacity-100 ltr:left-2 rtl:right-2",stopPropagation:!0,children:jsx(ChevronLeftIcon$1,{className:"h-5 w-5 rtl:rotate-180"})}),jsx(CarouselNext,{className:"product-card-carousel-next absolute top-1/2 z-30 flex h-auto w-auto -translate-y-1/2 items-center justify-center rounded-full bg-white p-1 opacity-0 shadow-sm transition hover:shadow-lg active:scale-90 active:shadow-md group-hover:opacity-100 ltr:right-2 rtl:left-2",stopPropagation:!0,children:jsx(ChevronRightIcon$1,{className:"h-5 w-5 rtl:rotate-180"})})]})]}):jsx("div",{className:classNames("product-card-placeholder flex h-[192px] items-center justify-center bg-gray-100 sm:h-[288px]",ce||!lt&&(At==null?void 0:At.link)?"cursor-pointer":"cursor-default"),"data-slide":"Slide 1",children:jsx(PhotoIcon$2,{className:"h-12 w-12 text-gray-400"})})}),jsx("div",{className:"product-card-tags absolute right-3 top-3 flex flex-row-reverse flex-wrap items-center gap-2 pl-3 empty:hidden",children:isArray$3(get$1(At,"properties.tag"))&&((Lt=get$1(At,"properties.tag"))==null?void 0:Lt.map((qt,zt)=>jsx("span",{className:twMerge(Nt[qt],"product-card-tag rounded-full px-3 py-0.5 text-xs font-medium sm:text-sm",Kt&&"bg-gray-100 text-gray-800"),children:qt},zt)))}),jsxs("div",{className:classNames("product-card-content flex flex-1 flex-col space-y-1 p-2 sm:space-y-2 sm:p-4"),children:[jsx("h3",{className:classNames(Kt?"text-gray-400":"text-gray-900","product-card-title text-sm font-semibold sm:text-base"),children:ce?jsxs("a",{href:`/product/${V==null?void 0:V.slug}`,className:"product-card-title-link multiline-truncate w-full",title:V.name,children:[jsx("span",{"aria-hidden":"true",className:"pointer-events-none absolute inset-0"}),V.name]}):jsx("span",{className:"product-card-title-text multiline-truncate w-full",title:V.name,children:V.name})}),jsx("p",{className:classNames(!ce&&"hidden",Kt?"text-gray-400":"text-gray-500","product-card-brand mt-1 text-xs empty:hidden sm:text-sm"),children:get$1(At,"properties.brand")}),ce?jsx(ProductPrice,{activeVariantData:At}):jsxs("form",{onSubmit:jt(dt),className:"product-card-form product-card-form flex h-full flex-col",children:[jsx("div",{className:"product-card-variant-selector product-card-variant-selector mb-2 mt-6",children:jsx(VariantSelector,{selectedProduct:V,variantForm:Ot,variantOptions:bt,isMini:!0})}),!isEmpty(ve)&&jsxs(Fragment$1,{children:[jsx("div",{className:"product-card-specs-divider mt-2 w-full border-t border-gray-100 pb-4"}),jsx("div",{className:"product-card-specs flex flex-1 flex-col",children:ve==null?void 0:ve.map((qt,zt)=>{var Ut,or,hr;let Qt=(or=(Ut=At==null?void 0:At.properties[qt])!=null?Ut:At[qt])!=null?or:At[camelCase$1(qt)];return isArray$3(Qt)&&(Qt=Qt.join(",")),!isNil(Qt)&&Qt!==""&&!(typeof Qt=="number"&&isNaN(Qt))&&jsxs("div",{className:classNames("product-card-spec flex items-center justify-between gap-4 py-1"),children:[jsx("span",{className:"product-card-spec-key text-xs text-gray-600 sm:text-sm",children:capitalize((hr=st[qt])!=null?hr:qt)}),jsx("span",{className:"product-card-spec-value mt-1 truncate text-xs font-medium text-gray-700 sm:col-span-2 sm:mt-0 sm:text-sm",dangerouslySetInnerHTML:{__html:Qt},title:Qt})]},zt)})})]}),jsxs("div",{className:"product-card-footer mt-auto pt-2 sm:pt-4",children:[jsx(ProductPrice,{activeVariantData:At}),gt?jsx("div",{className:"product-card-button-skeleton mt-2 h-[34px] w-full animate-pulse rounded-lg bg-gray-200 sm:mt-4 sm:h-[38px]"}):jsx(Fragment$1,{children:!Kt&&te[Yt]&&!de?jsxs("span",{className:"product-card-quantity-selector relative z-0 mt-2 flex rounded-lg sm:mt-4",children:[jsxs("button",{type:"button",className:"product-card-quantity-decrease relative inline-flex items-center rounded-lg border-transparent bg-primary px-3 py-2 text-sm font-medium text-primary-text transition hover:bg-primary-dark focus:z-10 focus:outline-none focus:ring-2 focus:ring-primary/75 focus:ring-offset-2 sm:px-4",onClick:()=>mt(te[Yt]),children:[jsx("span",{className:"sr-only",children:"remove"}),jsx(MinusIcon$1,{className:"h-4 w-4 sm:h-5 sm:w-5","aria-hidden":"true"})]}),jsx("span",{className:"product-card-quantity inline-flex flex-1 items-center justify-center border-b border-t border-transparent px-4 py-2 text-xs sm:px-6 sm:text-sm",children:(Gt=te[Yt])==null?void 0:Gt.qty}),jsxs("button",{type:"button",className:"product-card-quantity-increase relative inline-flex items-center rounded-lg border-transparent bg-primary px-3 py-2 text-sm font-medium text-primary-text transition hover:bg-primary-dark focus:z-10 focus:outline-none focus:ring-2 focus:ring-primary/75 focus:ring-offset-2 disabled:cursor-not-allowed disabled:bg-gray-100 disabled:text-gray-400 disabled:hover:bg-gray-100 sm:px-4",onClick:()=>kt(te[Yt]),disabled:((Xt=te[Yt])==null?void 0:Xt.qty)>=(At==null?void 0:At.stock)||de&&((ar=te[Yt])==null?void 0:ar.qty)>=1,children:[jsx("span",{className:"sr-only",children:"add"}),jsx(PlusIcon$1,{className:"h-4 w-4 sm:h-5 sm:w-5","aria-hidden":"true"})]})]}):jsxs("button",{className:"product-card-add-to-cart mt-2 w-full cursor-pointer items-center justify-center rounded-lg border border-transparent bg-primary p-2 text-xs font-medium text-primary-text transition hover:bg-primary-dark focus:outline-none focus:ring-2 focus:ring-primary/75 focus:ring-offset-2 disabled:cursor-not-allowed disabled:bg-gray-100 disabled:text-gray-400 disabled:hover:bg-gray-100 sm:mt-4 sm:text-sm",type:"submit",disabled:ot||Kt||de&&((rr=te[Yt])==null?void 0:rr.qty)>=1,children:[Kt?`${(er=Pt.outOfStock)!=null?er:"Out of stock"}`:`${($r=(mr=Pt.addToCart)!=null?mr:ut)!=null?$r:"Add to Cart"}`,jsxs("span",{className:"sr-only",children:[", ",V.name]})]})})]})]})]})]})}const ProductPrice=({activeVariantData:L})=>{const{formatCurrency:V}=useCurrency();if(!L)return null;const G=lowerCase(get$1(L,"availability"))==="out of stock"||(L==null?void 0:L.stock)<=0;return L.discountedPrice?jsxs("p",{className:classNames("product-price-discounted text-sm font-medium text-red-600 sm:text-base",!L.price&&"invisible"),children:[V(L.discountedPrice)," ",jsx("span",{className:"product-price-regular--line-through text-xs font-medium text-gray-400 line-through sm:text-sm",children:V(L==null?void 0:L.price)}),(L==null?void 0:L.unitLabel)&&jsx("span",{className:"product-price-unit-label text-xs font-medium text-gray-400",children:`/ ${L==null?void 0:L.unitLabel}`})]}):jsxs("p",{className:classNames("product-price-regular text-sm font-medium text-gray-900 sm:text-base",!L.price&&"invisible",G&&"text-gray-400"),children:[V(L==null?void 0:L.price),"",(L==null?void 0:L.unitLabel)&&jsx("span",{className:"product-price-unit-label text-xs font-medium text-gray-400",children:`/ ${L==null?void 0:L.unitLabel}`})]})};export{ErrorAlert as $,ArrowRightIcon$1 as A,n$3 as B,C,D$1 as D,o$5 as E,F$2 as F,_$1 as G,D$2 as H,I$3 as I,l$6 as J,I$2 as K,baseRest$1 as L,M$5 as M,s$7 as N,T$2 as O,e$2 as P,QuickCart as Q,c$7 as R,ShoppingBagIcon$1 as S,T$3 as T,p$4 as U,R$1 as V,Controller as W,X$1 as X,yt$1 as Y,FormProvider as Z,_extends as _,__assign as a,WarningAlert as a0,CartItems as a1,PhotoIcon$1 as a2,XMarkIcon$1 as a3,useFormContext as a4,selectActiveCategory as a5,throttle as a6,Squares2X2Icon$1 as a7,p as a8,parseFilterParams as a9,m$2 as aA,n$4 as aB,curry as aC,useWatch as aD,capitalize as aa,addFilterHandler as ab,removeFilterHandler as ac,warningOnce as ad,cls as ae,debounce as af,ChevronRightIcon$1 as ag,ChevronLeftIcon$1 as ah,ProductCard as ai,PRODUCTS_PAGE_SIZE as aj,MobileQuickCart as ak,Notification as al,HOME_PAGE_SIZE as am,Carousel as an,CarouselContent as ao,CarouselItem as ap,useSWRInfinite as aq,QuickOrderList as ar,unstable_serialize as as,f$4 as at,N$2 as au,O as av,t$6 as aw,productHelper as ax,VariantSelector as ay,has as az,useIsSSR as b,useTemplateFeature as c,useMediaQuery as d,useForm as e,_t as f,AddToCartNotificationContext as g,slEvents as h,S$5 as i,e$3 as j,c$6 as k,u$4 as l,d$4 as m,nn as n,o$4 as o,productsReducer as p,o$1 as q,r$4 as r,setCategory as s,tt$1 as t,useAddToCartNotification as u,h$7 as v,h$8 as w,T$4 as x,y$4 as y,p$6 as z};
