PageSourceSearch

https://recrutement.restaurantleon.fr/_nuxt/jobAdsListing-CJbs421b.js

js restaurantleon.fr collected 2026-09-30 20:47:20 UTC 529,572 bytes, 35 lines download raw bytes

1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./FilterMenu-BCVV3lG9.js","./client-SG2CFJX7.js","./client-oCWVNMUM.css","./JobAdCard-BrNegEQB.js","./_setToString-BoLQpde3.js","./ApplyJob-6E24R_Rz.js","./ButtonCheckbox-Bv7x_ar1.js"])))=>i.map(i=>d[i]);
2import{d as defineComponent,n as normalizeComponent,g as getDefaultExportFromCjs,r as requireDebounce,I as Icon,a as IconTypeValues,b as IsArray,V as ValidateNested,c as IsString,u as useNuxtApp,l as logAndThrowError,C as CURRENT_LOCATION_PLACEHOLDER,D as DEFAULT_LOCATION_PLACEHOLDER,e as useJobAdsStore,f as useCareersSiteStore,h as require_Set,i as require_setToArray,j as require_SetCache,k as require_cacheHas,m as require_hasPath,o as requireGet,p as require_baseSet,q as require_assignValue,s as require_baseAssignValue,t as requireKeys,v as requireKeysIn,w as require_root,x as require_getSymbols,y as require_getSymbolsIn,z as require_Uint8Array,A as require_Symbol,B as requireIsObject,E as require_getPrototype,F as require_isPrototype,G as require_getTag,H as requireIsObjectLike,J as require_baseUnary,K as require_nodeUtil,L as require_Stack,M as require_getAllKeys,N as require_getAllKeysIn,O as requireIsArray,P as requireIsBuffer,Q as isEmpty,R as getKeywordsSuggestions,S as convertGoogleViewportToEsViewport,T as FiltersValue,U as getTranslationForKey,W as REMOTE_WORK_FILTER_MIN_JOB_ADS_COUNT,_ as __vitePreload,X as Link,Y as isAndroid,Z as Button,$ as MATCHING_BUTTON_MIN_JOB_ADS_NUMBER,a0 as Picture,a1 as sanitizeHtmlText,a2 as getJobAdPreview,a3 as makeFnfDatabaseLocale,a4 as throttle,a5 as MATCHING_BUTTON_VISIBILITY_SCROLL_THROTTLE,a6 as getJobAdCard,a7 as splitComposedJobAdId,a8 as LIMIT_JOB_ADS_PER_PAGE,a9 as JOB_ADS_LIST_NO_BRANDS_CLASS,aa as JOB_ADS_LIST_FULL_PAGE_CLASS,ab as JOB_ADS_LIST_MAIN_CLASS,ac as require_baseIsEqual,ad as require_baseGetTag,ae as convertEsToGoogleViewport,af as MAP_MAX_ZOOM,ag as compareGeolocationJobAdIds,ah as PoweredBy,ai as MAP_GEOLOCATION_ZOOM,aj as maybeRedirectToMaintenance,ak as SELECT_AREA_PLACEHOLDER,al as toLinkProp,am as MAP_MIN_ZOOM,an as DEFAULT_MAP_ZOOM,ao as IsNumber,ap as useCandidateDashboardStore,aq as BaseModalMixin,ar as IndexedDBService,as as MATCHING_CV_STORAGE_KEY,at as MATCHING_CV_STORAGE_MAX_AGE,au as logError,av as MATCHING_LOADING_SLIDES_NUMBER,aw as MATCHING_LOADING_SLIDE_DELAY,ax as getJobAds,ay as MIN_WIDTH_TABLET,az as now,aA as MATCHING_LOADING_ANIMATION_DURATION,aB as MAX_WIDTH_TABLET,aC as TOP_POSITION,aD as PAGE_OFFSET,aE as MAX_WIDTH_MOBILE,aF as makeHead,aG as LinkLogicValue,aH as createError,aI as PageLinkTypeEnum,aJ as getColors,aK as GoogleMapModes}from"./client-SG2CFJX7.js";import{i as isArray,A as APPLY_BUTTON_SPONTANEOUS,M as ModalConsent,C as ConsentMixin,t as trackClickApply,u as useModalStore,a as ModalFooter,b as Modal,c as CommonConfigurationMixin,B as BreakpointsMixin,d as ApplyJob,g as getInteractiveElementsWithin,e as APPLY_BUTTON_JOB_AD_PREVIEW,f as APPLY_BUTTON_SPONTANEOUS_MATCHING}from"./ApplyJob-6E24R_Rz.js";import{T as Title,C as Card,P as Paragraph,I as IconButton,D as DRTag,A as Avatar,a as Carousel,b as Divider,R as RichTextRender,J as JobAdCard,c as JobAdCardAppearanceEnum,d as DROPBOX_DEFAULT_IMAGE,e as delay$1}from"./JobAdCard-BrNegEQB.js";import{B as ButtonCheckbox,g as getLoadedPage}from"./ButtonCheckbox-Bv7x_ar1.js";const _sfc_main$T=defineComponent({name:"InputText",props:{value:{type:String,default:""},placeholder:{type:String,default:""},required:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1}}});var _sfc_render$T=function(){var e=this,r=e._self._c;return e._self._setupProxy,r("input",{attrs:{type:"text",placeholder:e.placeholder,required:e.required,disabled:e.disabled,readonly:e.readonly,tabindex:"0"},domProps:{value:e.value},on:{input:function(s){return e.$emit("input",s.target.value)},change:function(s){return e.$emit("change",s.target.value)}}})},_sfc_staticRenderFns$T=[],__component__$T=normalizeComponent(_sfc_main$T,_sfc_render$T,_sfc_staticRenderFns$T);const InputText=__component__$T.exports;var debounceExports=requireDebounce();const debounce=getDefaultExportFromCjs(debounceExports),_sfc_main$S=defineComponent({components:{Paragraph,Icon,Card,Title},props:{title:{type:String,required:!0},text:{type:String,required:!0},icon:{type:Object,default:void 0}},data(){return{isVisible:!0,closeIcon:{text:"",type:IconTypeValues.CLOSE}}},methods:{close(){this.isVisible=!1,this.$emit("close")}}});var _sfc_render$S=function(){var e=this,r=e._self._c;return e._self._setupProxy,e.isVisible?r("Card",{staticClass:"notification notification--visible",attrs:{role:"alert","aria-live":"polite"}},[e.icon?r("Icon",{staticClass:"notification__leftIcon",attrs:{text:e.icon.text,type:e.icon.type,"aria-hidden":"true"}}
2):e._e(),r("div",{staticClass:"notification__content"},[r("Title",{staticClass:"notification__title"},[e._v(e._s(e.title))]),r("Paragraph",{staticClass:"notification__text"},[e._v(e._s(e.text))])],1),r("Icon",e._b({staticClass:"notification__close",attrs:{role:"button",tabindex:"0"},on:{click:e.close}},"Icon",e.closeIcon,!1))],1):e._e()},_sfc_staticRenderFns$S=[],__component__$S=normalizeComponent(_sfc_main$S,_sfc_render$S,_sfc_staticRenderFns$S);const Notification=__component__$S.exports;var getRandomValues,rnds8=new Uint8Array(16);function rng(){if(!getRandomValues&&(getRandomValues=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto<"u"&&typeof msCrypto.getRandomValues=="function"&&msCrypto.getRandomValues.bind(msCrypto),!getRandomValues))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return getRandomValues(rnds8)}const REGEX=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;function validate(t){return typeof t=="string"&&REGEX.test(t)}var byteToHex=[];for(var i=0;i<256;++i)byteToHex.push((i+256).toString(16).substr(1));function stringify(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,r=(byteToHex[t[e+0]]+byteToHex[t[e+1]]+byteToHex[t[e+2]]+byteToHex[t[e+3]]+"-"+byteToHex[t[e+4]]+byteToHex[t[e+5]]+"-"+byteToHex[t[e+6]]+byteToHex[t[e+7]]+"-"+byteToHex[t[e+8]]+byteToHex[t[e+9]]+"-"+byteToHex[t[e+10]]+byteToHex[t[e+11]]+byteToHex[t[e+12]]+byteToHex[t[e+13]]+byteToHex[t[e+14]]+byteToHex[t[e+15]]).toLowerCase();if(!validate(r))throw TypeError("Stringified UUID is invalid");return r}function v4(t,e,r){t=t||{};var s=t.random||(t.rng||rng)();return s[6]=s[6]&15|64,s[8]=s[8]&63|128,stringify(s)}var vueSelect$1={exports:{}},vueSelect=vueSelect$1.exports,hasRequiredVueSelect;function requireVueSelect(){return hasRequiredVueSelect||(hasRequiredVueSelect=1,(function(t,e){(function(r,s){t.exports=s()})(typeof self<"u"?self:vueSelect,(function(){return(()=>{var r={646:o=>{o.exports=function(h){if(Array.isArray(h)){for(var l=0,c=new Array(h.length);l<h.length;l++)c[l]=h[l];return c}}},713:o=>{o.exports=function(h,l,c){return l in h?Object.defineProperty(h,l,{value:c,enumerable:!0,configurable:!0,writable:!0}):h[l]=c,h}},860:o=>{o.exports=function(h){if(Symbol.iterator in Object(h)||Object.prototype.toString.call(h)==="[object Arguments]")return Array.from(h)}},206:o=>{o.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}},319:(o,h,l)=>{var c=l(646),m=l(860),C=l(206);o.exports=function(u){return c(u)||m(u)||C()}},8:o=>{function h(l){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?o.exports=h=function(c){return typeof c}:o.exports=h=function(c){return c&&typeof Symbol=="function"&&c.constructor===Symbol&&c!==Symbol.prototype?"symbol":typeof c},h(l)}o.exports=h}},s={};function n(o){var h=s[o];if(h!==void 0)return h.exports;var l=s[o]={exports:{}};return r[o](l,l.exports,n),l.exports}n.n=o=>{var h=o&&o.__esModule?()=>o.default:()=>o;return n.d(h,{a:h}),h},n.d=(o,h)=>{for(var l in h)n.o(h,l)&&!n.o(o,l)&&Object.defineProperty(o,l,{enumerable:!0,get:h[l]})},n.o=(o,h)=>Object.prototype.hasOwnProperty.call(o,h),n.r=o=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(o,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(o,"__esModule",{value:!0})};var a={};return(()=>{n.r(a),n.d(a,{VueSelect:()=>w,default:()=>B,mixins:()=>I});var o=n(319),h=n.n(o),l=n(8),c=n.n(l),m=n(713),C=n.n(m);const u={props:{autoscroll:{type:Boolean,default:!0}},watch:{typeAheadPointer:function(){this.autoscroll&&this.maybeAdjustScroll()},open:function(x){var L=this;this.autoscroll&&x&&this.$nextTick((function(){return L.maybeAdjustScroll()}))}},methods:{maybeAdjustScroll:function(){var x,L=((x=this.$refs.dropdownMenu)===null||x===void 0?void 0:x.children[this.typeAheadPointer])||!1;if(L){var F=this.getDropdownViewport(),O=L.getBoundingClientRect(),$=O.top,D=O.bottom,A=O.height;if($<F.top)return this.$refs.dropdownMenu.scrollTop=L.offsetTop;if(D>F.bottom)return this.$refs.dropdownMenu.scrollTop=L.offsetTop-(F.height-A)}},getDropdownViewport:function(){return this.$refs.dropdownMenu?this.$refs.dropdownMenu.getBoundingClientRect():{height:0,top:0,bottom:0}}}},b={data:function(){return{typeAheadPointer:-1}},watch:{filteredOptions:function(){for(var x=0;x<this.filteredOptions.length;x++)if(this.selectable(this.filteredOptions[x])){this.typeAheadPointer=x;break}},open:function(x){x&&this.typeAheadToLastSelected()},selectedValue:function(){this.open&&this.typeAheadToLastSelected()}},methods:{typeAheadUp:function(){for(var x=this.typeAheadPointer-1;x>=0;x--)if(this.selectable(this.filteredOptions[x])){this.typeAheadPointer=x;break}},typeAheadDown:function(){for(var x=this.typeAheadPointer+1;x<this.filteredOptions.length;x++)if(this.selectable(this.filteredOptions[x])){this.typeAheadPointer=x;break}},typeAheadSelect:function(){var x=this.filteredOptions[this.typeAheadPointer];x&&this.selectable(x)&&this.select(x)},typeAheadToLastSelected:function(){var x=this.selectedValue.length!==0?this.filteredOptions.indexOf(this.selectedValue[this.selectedValue.length-1]):-1;
2x!==-1&&(this.typeAheadPointer=x)}}},_={props:{loading:{type:Boolean,default:!1}},data:function(){return{mutableLoading:!1}},watch:{search:function(){this.$emit("search",this.search,this.toggleLoading)},loading:function(x){this.mutableLoading=x}},methods:{toggleLoading:function(){var x=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null;return this.mutableLoading=x??!this.mutableLoading}}};function g(x,L,F,O,$,D,A,T){var y,S=typeof x=="function"?x.options:x;return L&&(S.render=L,S.staticRenderFns=F,S._compiled=!0),{exports:x,options:S}}const E={Deselect:g({},(function(){var x=this.$createElement,L=this._self._c||x;return L("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"10",height:"10"}},[L("path",{attrs:{d:"M6.895455 5l2.842897-2.842898c.348864-.348863.348864-.914488 0-1.263636L9.106534.261648c-.348864-.348864-.914489-.348864-1.263636 0L5 3.104545 2.157102.261648c-.348863-.348864-.914488-.348864-1.263636 0L.261648.893466c-.348864.348864-.348864.914489 0 1.263636L3.104545 5 .261648 7.842898c-.348864.348863-.348864.914488 0 1.263636l.631818.631818c.348864.348864.914773.348864 1.263636 0L5 6.895455l2.842898 2.842897c.348863.348864.914772.348864 1.263636 0l.631818-.631818c.348864-.348864.348864-.914489 0-1.263636L6.895455 5z"}})])}),[]).exports,OpenIndicator:g({},(function(){var x=this.$createElement,L=this._self._c||x;return L("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"14",height:"10"}},[L("path",{attrs:{d:"M9.211364 7.59931l4.48338-4.867229c.407008-.441854.407008-1.158247 0-1.60046l-.73712-.80023c-.407008-.441854-1.066904-.441854-1.474243 0L7 5.198617 2.51662.33139c-.407008-.441853-1.066904-.441853-1.474243 0l-.737121.80023c-.407008.441854-.407008 1.158248 0 1.600461l4.48338 4.867228L7 10l2.211364-2.40069z"}})])}),[]).exports},d={inserted:function(x,L,F){var O=F.context;if(O.appendToBody){var $=O.$refs.toggle.getBoundingClientRect(),D=$.height,A=$.top,T=$.left,y=$.width,S=window.scrollX||window.pageXOffset,R=window.scrollY||window.pageYOffset;x.unbindPosition=O.calculatePosition(x,O,{width:y+"px",left:S+T+"px",top:R+A+D+"px"}),document.body.appendChild(x)}},unbind:function(x,L,F){F.context.appendToBody&&(x.unbindPosition&&typeof x.unbindPosition=="function"&&x.unbindPosition(),x.parentNode&&x.parentNode.removeChild(x))}},f=function(x){var L={};return Object.keys(x).sort().forEach((function(F){L[F]=x[F]})),JSON.stringify(L)};var p=0;const v=function(){return++p};function P(x,L){var F=Object.keys(x);if(Object.getOwnPropertySymbols){var O=Object.getOwnPropertySymbols(x);L&&(O=O.filter((function($){return Object.getOwnPropertyDescriptor(x,$).enumerable}))),F.push.apply(F,O)}return F}function M(x){for(var L=1;L<arguments.length;L++){var F=arguments[L]!=null?arguments[L]:{};L%2?P(Object(F),!0).forEach((function(O){C()(x,O,F[O])})):Object.getOwnPropertyDescriptors?Object.defineProperties(x,Object.getOwnPropertyDescriptors(F)):P(Object(F)).forEach((function(O){Object.defineProperty(x,O,Object.getOwnPropertyDescriptor(F,O))}))}return x}const w=g({components:M({},E),directives:{appendToBody:d},mixins:[u,b,_],props:{value:{},components:{type:Object,default:function(){return{}}},options:{type:Array,default:function(){return[]}},disabled:{type:Boolean,default:!1},clearable:{type:Boolean,default:!0},deselectFromDropdown:{type:Boolean,default:!1},searchable:{type:Boolean,default:!0},multiple:{type:Boolean,default:!1},placeholder:{type:String,default:""},transition:{type:String,default:"vs__fade"},clearSearchOnSelect:{type:Boolean,default:!0},closeOnSelect:{type:Boolean,default:!0},label:{type:String,default:"label"},autocomplete:{type:String,default:"off"},reduce:{type:Function,default:function(x){return x}},selectable:{type:Function,default:function(x){return!0}},getOptionLabel:{type:Function,default:function(x){return c()(x)==="object"?x.hasOwnProperty(this.label)?x[this.label]:console.warn('[vue-select warn]: Label key "option.'.concat(this.label,'" does not')+" exist in options object ".concat(JSON.stringify(x),`.
3`)+"https://vue-select.org/api/props.html#getoptionlabel"):x}},getOptionKey:{type:Function,default:function(x){if(c()(x)!=="object")return x;try{return x.hasOwnProperty("id")?x.id:f(x)}catch(L){return console.warn(`[vue-select warn]: Could not stringify this option to generate unique key. Please provide'getOptionKey' prop to return a unique key for each option.
4https://vue-select.org/api/props.html#getoptionkey`,x,L)}}},onTab:{type:Function,default:function(){this.selectOnTab&&!this.isComposing&&this.typeAheadSelect()}},taggable:{type:Boolean,default:!1},tabindex:{type:Number,default:null},pushTags:{type:Boolean,default:!1},filterable:{type:Boolean,default:!0},filterBy:{type:Function,default:function(x,L,F){return(L||"").toLocaleLowerCase().indexOf(F.toLocaleLowerCase())>-1}},filter:{type:Function,default:function(x,L){var F=this;return x.filter((function(O){var $=F.getOptionLabel(O);return typeof $=="number"&&($=$.toString()),F.filterBy(O,$,L)}))}},createOption:{type:Function,default:function(x){return c()(this.optionList[0])==="object"?C()({},this.label,x):x}},resetOnOptionsChange:{default:!1,validator:function(x){return["function","boolean"].includes(c()(x))}},clearSearchOnBlur:{type:Function,default:function(x){var L=x.clearSearchOnSelect,F=x.multiple;return L&&!F}},noDrop:{type:Boolean,default:!1},inputId:{type:String},dir:{type:String,default:"auto"},selectOnTab:{type:Boolean,default:!1},selectOnKeyCodes:{type:Array,default:function(){return[13]}},searchInputQuerySelector:{type:String,default:"[type=search]"},mapKeydown:{type:Function,default:function(x,L){return x}},appendToBody:{type:Boolean,default:!1},calculatePosition:{type:Function,default:function(x,L,F){var O=F.width,$=F.top,D=F.left;x.style.top=$,x.style.left=D,x.style.width=O}},dropdownShouldOpen:{type:Function,default:function(x){var L=x.noDrop,F=x.open,O=x.mutableLoading;return!L&&F&&!O}},uid:{type:[String,Number],default:function(){return v()}}},data:function(){return{search:"",open:!1,isComposing:!1,pushedTags:[],_value:[]}},computed:{isTrackingValues:function(){return this.value===void 0||this.$options.propsData.hasOwnProperty("reduce")},selectedValue:function(){var x=this.value;return this.isTrackingValues&&(x=this.$data._value),x!=null&&x!==""?[].concat(x):[]},optionList:function(){return this.options.concat(this.pushTags?this.pushedTags:[])},searchEl:function(){return this.$scopedSlots.search?this.$refs.selectedOptions.querySelector(this.searchInputQuerySelector):this.$refs.search},scope:function(){var x=this,L={search:this.search,loading:this.loading,searching:this.searching,filteredOptions:this.filteredOptions};return{search:{attributes:M({disabled:this.disabled,placeholder:this.searchPlaceholder,tabindex:this.tabindex,readonly:!this.searchable,id:this.inputId,"aria-autocomplete":"list","aria-labelledby":"vs".concat(this.uid,"__combobox"),"aria-controls":"vs".concat(this.uid,"__listbox"),ref:"search",type:"search",autocomplete:this.autocomplete,value:this.search},this.dropdownOpen&&this.filteredOptions[this.typeAheadPointer]?{"aria-activedescendant":"vs".concat(this.uid,"__option-").concat(this.t
vendor: 7,686 bytes, lines 4-6
4ypeAheadPointer)}:{}),events:{compositionstart:function(){return x.isComposing=!0},compositionend:function(){return x.isComposing=!1},keydown:this.onSearchKeyDown,keypress:this.onSearchKeyPress,blur:this.onSearchBlur,focus:this.onSearchFocus,input:function(F){return x.search=F.target.value}}},spinner:{loading:this.mutableLoading},noOptions:{search:this.search,loading:this.mutableLoading,searching:this.searching},openIndicator:{attributes:{ref:"openIndicator",role:"presentation",class:"vs__open-indicator"}},listHeader:L,listFooter:L,header:M({},L,{deselect:this.deselect}),footer:M({},L,{deselect:this.deselect})}},childComponents:function(){return M({},E,{},this.components)},stateClasses:function(){return{"vs--open":this.dropdownOpen,"vs--single":!this.multiple,"vs--multiple":this.multiple,"vs--searching":this.searching&&!this.noDrop,"vs--searchable":this.searchable&&!this.noDrop,"vs--unsearchable":!this.searchable,"vs--loading":this.mutableLoading,"vs--disabled":this.disabled}},searching:function(){return!!this.search},dropdownOpen:function(){return this.dropdownShouldOpen(this)},searchPlaceholder:function(){return this.isValueEmpty&&this.placeholder?this.placeholder:void 0},filteredOptions:function(){var x=[].concat(this.optionList);if(!this.filterable&&!this.taggable)return x;var L=this.search.length?this.filter(x,this.search,this):x;if(this.taggable&&this.search.length){var F=this.createOption(this.search);this.optionExists(F)||L.unshift(F)}return L},isValueEmpty:function(){return this.selectedValue.length===0},showClearButton:function(){return!this.multiple&&this.clearable&&!this.open&&!this.isValueEmpty}},watch:{options:function(x,L){var F=this;!this.taggable&&(typeof F.resetOnOptionsChange=="function"?F.resetOnOptionsChange(x,L,F.selectedValue):F.resetOnOptionsChange)&&this.clearSelection(),this.value&&this.isTrackingValues&&this.setInternalValueFromOptions(this.value)},value:{immediate:!0,handler:function(x){this.isTrackingValues&&this.setInternalValueFromOptions(x)}},multiple:function(){this.clearSelection()},open:function(x){this.$emit(x?"open":"close")},search:function(x){x.length&&(this.open=!0)}},created:function(){this.mutableLoading=this.loading,this.$on("option:created",this.pushTag)},methods:{setInternalValueFromOptions:function(x){var L=this;Array.isArray(x)?this.$data._value=x.map((function(F){return L.findOptionFromReducedValue(F)})):this.$data._value=this.findOptionFromReducedValue(x)},select:function(x){this.$emit("option:selecting",x),this.isOptionSelected(x)?this.deselectFromDropdown&&(this.clearable||this.multiple&&this.selectedValue.length>1)&&this.deselect(x):(this.taggable&&!this.optionExists(x)&&this.$emit("option:created",x),this.multiple&&(x=this.selectedValue.concat(x)),this.updateValue(x),this.$emit("option:selected",x)),this.onAfterSelect(x)},deselect:function(x){var L=this;this.$emit("option:deselecting",x),this.updateValue(this.selectedValue.filter((function(F){return!L.optionComparator(F,x)}))),this.$emit("option:deselected",x)},clearSelection:function(){this.updateValue(this.multiple?[]:null)},onAfterSelect:function(x){var L=this;this.closeOnSelect&&(this.open=!this.open),this.clearSearchOnSelect&&(this.search=""),this.noDrop&&this.multiple&&this.$nextTick((function(){return L.$refs.search.focus()}))},updateValue:function(x){var L=this;this.value===void 0&&(this.$data._value=x),x!==null&&(x=Array.isArray(x)?x.map((function(F){return L.reduce(F)})):this.reduce(x)),this.$emit("input",x)},toggleDropdown:function(x){var L=x.target!==this.searchEl;L&&x.preventDefault();var F=[].concat(h()(this.$refs.deselectButtons||[]),h()([this.$refs.clearButton]));this.searchEl===void 0||F.filter(Boolean).some((function(O){return O.contains(x.target)||O===x.target}))?x.preventDefault():this.open&&L?this.searchEl.blur():this.disabled||(this.open=!0,this.searchEl.focus())},isOptionSelected:function(x){var L=this;return this.selectedValue.some((function(F){return L.optionComparator(F,x)}))},isOptionDeselectable:function(x){return this.isOptionSelected(x)&&this.deselectFromDropdown},optionComparator:function(x,L){return this.getOptionKey(x)===this.getOptionKey(L)},findOptionFromReducedValue:function(x){var L=this,F=[].concat(h()(this.options),h()(this.pushedTags)).filter((function(O){return JSON.stringify(L.reduce(O))===JSON.stringify(x)}));return F.length===1?F[0]:F.find((function(O){return L.optionComparator(O,L.$data._value)}))||x},closeSearchOptions:function(){this.open=!1,this.$emit("search:blur")},maybeDeleteValue:function(){if(!this.searchEl.value.length&&this.selectedValue&&this.selectedValue.length&&this.clearable){var x=null;this.multiple&&(x=h()(this.selectedValue.slice(0,this.selectedValue.length-1))),this.updateValue(x)}},optionExists:function(x){var L=this;return this.optionList.some((function(F){return L.optionComparator(F,x)}))},normalizeOptionForSlot:function(x){return c()(x)==="object"?x:C()({},this.label,x)},pushTag:function(x){this.pushedTags.push(x)},onEscape:function(){this.search.length?this.search="":this.open=!1},onSearchBlur:function(){if(!this.mousedown||this.searching){var x=this.clearSearchOnSelect,L=this.multiple;return this.clearSearchOnBlur({clearSearchOnSelect:x,multiple:L})&&(this.search=""),void this.closeSearchOptions()}this.mousedown=!1,this.search.length!==0||this.options.length!==0||this.closeSearchOptions()},onSearchFocus:function(){this.open=!0,this.$emit("search:focus")},onMousedown:function(){this.mousedown=!0},onMouseUp:function(){this.mousedown=!1},onSearchKeyDown:function(x){var L=this,F=function(D){return D.preventDefault(),!L.isComposing&&L.typeAheadSelect()},O={8:function(D){return L.maybeDeleteValue()},9:function(D){return L.onTab()},27:function(D){return L.onEscape()},38:function(D){if(D.preventDefault(),L.open)return L.typeAheadUp();L.open=!0},40:function(D){if(D.preventDefault(),L.open)return L.typeAheadDown();L.open=!0}};this.selectOnKeyCodes.forEach((function(D){return O[D]=F}));var $=this.mapKeydown(O,this);if(typeof $[x.keyCode]=="function")return $[x.keyCode](x)},onSearchKeyPress:function(x){this.open||x.keyCode!==32||(x.preventDefault(),this.open=!0)}}},(function(){var x=this,L=x.$createElement,F=x._self._c||L;return F("div",{staticClass:"v-select",class:x.stateClasses,attrs:{dir:x.dir}},[x._t("header",null,null,x.scope.header),x._v(" "),F("div",{ref:"toggle",staticClass:"vs__dropdown-toggle",attrs:{id:"vs"+x.uid+"__combobox",role:"combobox","aria-expanded":x.dropdownOpen.toString(),"aria-owns":"vs"+x.uid+"__listbox","aria-label":"Search for option"},on:{mousedown:function(O){return x.toggleDropdown(O)}}},[F("div",{ref:"selectedOptions",staticClass:"vs__selected-options"},[x._l(x.selectedValue,(function(O){return x._t("selected-option-container",[F("span",{key:x.getOptionKey(O),staticClass:"vs__selected"},[x._t("selected-option",[x._v(`
5            `+x._s(x.getOptionLabel(O))+`
6          `)],null,x.normalizeOptionForSlot(O)),x._v(" "),x.multiple?F("button",{ref:"deselectButtons",refInFor:!0,staticClass:"vs__deselect",attrs:{disabled:x.disabled,type:"button",title:"Deselect "+x.getOptionLabel(O),"aria-label":"Deselect "+x.getOptionLabel(O)},on:{click:function($){return x.deselect(O)}}},[F(x.childComponents.Deselect,{tag:"component"})],1):x._e()],2)],{option:x.normalizeOptionForSlot(O),deselect:x.deselect,multiple:x.multiple,disabled:x.disabled})})),x._v(" "),x._t("search",[F("input",x._g(x._b({staticClass:"vs__search"},"input",x.scope.search.attributes,!1),x.scope.search.events))],null,x.scope.search)],2),x._v(" "),F("div",{ref:"actions",staticClass:"vs__actions"},[F("button",{directives:[{name:"show",rawName:"v-show",value:x.showClearButton,expression:"showClearButton"}
6],ref:"clearButton",staticClass:"vs__clear",attrs:{disabled:x.disabled,type:"button",title:"Clear Selected","aria-label":"Clear Selected"},on:{click:x.clearSelection}},[F(x.childComponents.Deselect,{tag:"component"})],1),x._v(" "),x._t("open-indicator",[x.noDrop?x._e():F(x.childComponents.OpenIndicator,x._b({tag:"component"},"component",x.scope.openIndicator.attributes,!1))],null,x.scope.openIndicator),x._v(" "),x._t("spinner",[F("div",{directives:[{name:"show",rawName:"v-show",value:x.mutableLoading,expression:"mutableLoading"}],staticClass:"vs__spinner"},[x._v("Loading...")])],null,x.scope.spinner)],2)]),x._v(" "),F("transition",{attrs:{name:x.transition}},[x.dropdownOpen?F("ul",{directives:[{name:"append-to-body",rawName:"v-append-to-body"}],key:"vs"+x.uid+"__listbox",ref:"dropdownMenu",staticClass:"vs__dropdown-menu",attrs:{id:"vs"+x.uid+"__listbox",role:"listbox",tabindex:"-1"},on:{mousedown:function(O){return O.preventDefault(),x.onMousedown(O)},mouseup:x.onMouseUp}},[x._t("list-header",null,null,x.scope.listHeader),x._v(" "),x._l(x.filteredOptions,(function(O,$){return F("li",{key:x.getOptionKey(O),staticClass:"vs__dropdown-option",class:{"vs__dropdown-option--deselect":x.isOptionDeselectable(O)&&$===x.typeAheadPointer,"vs__dropdown-option--selected":x.isOptionSelected(O),"vs__dropdown-option--highlight":$===x.typeAheadPointer,"vs__dropdown-option--disabled":!x.selectable(O)},attrs:{id:"vs"+x.uid+"__option-"+$,role:"option","aria-selected":$===x.typeAheadPointer||null},on:{mouseover:function(D){x.selectable(O)&&(x.typeAheadPointer=$)},click:function(D){D.preventDefault(),D.stopPropagation(),x.selectable(O)&&x.select(O)}}},[x._t("option",[x._v(`
7          `+x._s(x.getOptionLabel(O))+`
8        `)],null,x.normalizeOptionForSlot(O))],2)})),x._v(" "),x.filteredOptions.length===0?F("li",{staticClass:"vs__no-options"},[x._t("no-options",[x._v(`
9          Sorry, no matching options.
10        `)],null,x.scope.noOptions)],2):x._e(),x._v(" "),x._t("list-footer",null,null,x.scope.listFooter)],2):F("ul",{staticStyle:{display:"none",visibility:"hidden"},attrs:{id:"vs"+x.uid+"__listbox",role:"listbox"}})]),x._v(" "),x._t("footer",null,null,x.scope.footer)],2)}),[]).exports,I={ajax:_,pointer:b,pointerScroll:u},B=w})(),a})()}))})(vueSelect$1)),vueSelect$1.exports}var vueSelectExports=requireVueSelect();const vSelect=getDefaultExportFromCjs(vueSelectExports),_sfc_main$R=defineComponent({name:"InputLabel",props:{label:{type:String,required:!1}}});var _sfc_render$R=function(){var e=this,r=e._self._c;return e._self._setupProxy,r("label",{staticClass:"label"},[e._v(e._s(e.label))])},_sfc_staticRenderFns$R=[],__component__$R=normalizeComponent(_sfc_main$R,_sfc_render$R,_sfc_staticRenderFns$R);const InputLabel=__component__$R.exports,_sfc_main$Q=defineComponent({name:"SearchInput",components:{Icon,InputLabel,InputText,"v-select":vSelect},props:{value:{},icon:{type:Object,validator:t=>!!(!t||{}.hasOwnProperty.call(t,"text")&&{}.hasOwnProperty.call(t,"type"))},label:{type:Object},input:{type:Object,required:!0},autocomplete:{type:Boolean,default:!1},autocompleteOptions:{type:Array},multiple:{type:Boolean,default:!1},vueSelectOptions:{type:Object,default:()=>({})}},methods:{autocompleteSearch(t){this.$emit("search",t)},onInput(t){this.$emit("input",t)},onFocus(){this.$emit("search-focus")},onBlur(){this.$emit("search-blur")},onOptionDeselected(t){this.$emit("option-deselected",t)}},computed:{hasLabel(){return!!this.label},searchInputClass(){return{"search-input":!0,"search-input--autocomplete":this.autocomplete,"search-input--multiple":this.multiple}}}});var _sfc_render$Q=function(){var e=this,r=e._self._c;return e._self._setupProxy,r("div",{class:e.searchInputClass},[e.icon?r("Icon",e._b({staticClass:"search-input__icon"},"Icon",e.icon,!1)):e._e(),r("div",{staticClass:"search-input-container"},[e.hasLabel?r("input-label",e._b({staticClass:"search-input__label"},"input-label",e.label,!1)):e._e(),e.autocomplete?r("v-select",e._b({staticClass:"search-input__select",attrs:{value:e.value,placeholder:e.input.placeholder,multiple:e.multiple,options:e.autocompleteOptions,"filter-by":()=>!0},on:{search:e.autocompleteSearch,input:e.onInput,"search:blur":e.onBlur,"search:focus":e.onFocus,"option:deselected":e.onOptionDeselected},scopedSlots:e._u([{key:"option",fn:function(s){return[s.icon?r("Icon",e._b({staticClass:"search-input__option-icon"}
10,"Icon",s.icon,!1)):e._e(),r("span",{staticClass:"search-input__option-label"},[e._v(e._s(s.label))])]}},{key:"no-options",fn:function(){return[e._t("no-options")]},proxy:!0},{key:"open-indicator",fn:function(){return[e._t("open-indicator")]},proxy:!0}],null,!0)},"v-select",e.vueSelectOptions,!1)):r("InputText",e._b({staticClass:"search-input__input"},"InputText",e.input,!1))],1)],1)},_sfc_staticRenderFns$Q=[],__component__$Q=normalizeComponent(_sfc_main$Q,_sfc_render$Q,_sfc_staticRenderFns$Q);const SearchInput=__component__$Q.exports;var __defProp$2=Object.defineProperty,__decorateClass$2=(t,e,r,s)=>{for(var n=void 0,a=t.length-1,o;a>=0;a--)(o=t[a])&&(n=o(e,r,n)||n);return n&&__defProp$2(e,r,n),n};class LocationSuggestions{items;constructor(e){this.items=e.items}}__decorateClass$2([IsArray()],LocationSuggestions.prototype,"items");var __defProp$1=Object.defineProperty,__decorateClass$1=(t,e,r,s)=>{for(var n=void 0,a=t.length-1,o;a>=0;a--)(o=t[a])&&(n=o(e,r,n)||n);return n&&__defProp$1(e,r,n),n};class PlaceDetails{place_id;geometry;place_type;constructor(e){this.place_id=e.place_id,this.geometry=e.geometry,this.place_type=e.place_type}}__decorateClass$1([IsString()],PlaceDetails.prototype,"place_id");__decorateClass$1([ValidateNested()],PlaceDetails.prototype,"geometry");__decorateClass$1([IsString()],PlaceDetails.prototype,"place_type");async function getLocationSuggestions(t,e,r){let s;try{const n=await useNuxtApp().$commonApi.getLocationSuggestions(t,e,r);s=new LocationSuggestions(n)}catch(n){logAndThrowError(n)}return s}async function getPlaceDetails(t,e,r){let s;try{const n=await useNuxtApp().$commonApi.getPlaceDetails(t,e,r);s=new PlaceDetails(n)}catch(n){logAndThrowError(n)}return s}const _sfc_main$P=defineComponent({name:"AutocompletePendingStateMixin",data(){return{isPending:!0}},computed:{pendingClass(){return this.isPending?" vs--pending":""}},methods:{setPendingState(t){this.isPending=t}}}),_sfc_render$P=null,_sfc_staticRenderFns$P=null;var __component__$P=normalizeComponent(_sfc_main$P,_sfc_render$P,_sfc_staticRenderFns$P);const AutocompletePendingStateMixin=__component__$P.exports,_sfc_main$O=defineComponent({name:"LocationAutocomplete",mixins:[AutocompletePendingStateMixin],components:{SearchInput},props:{value:{type:Object}},data(){return{options:[],userGeolocationOption:[{id:"0",label:"",icon:{text:"Location target",type:IconTypeValues.LOCATION_TARGET}}],debounceFetch:(()=>{}),googleSessionToken:null,settings:{icon:{text:"Search",type:IconTypeValues.LOCATION},label:{label:"ui.location_research"},input:{title:"text",placeholder:"",value:"",readonly:!1,disabled:!1},autocomplete:!0,vueSelectOptions:{clearable:!0,searchable:!0}}}},computed:{jobAdsStore(){return useJobAdsStore(this.$pinia)},locationPlaceholder(){return this.jobAdsStore.locationPlaceholder},domainName(){return useCareersSiteStore().domainName},computedClass(){return`vs--location${this.pendingClass}`},locationOptions(){return[...this.userGeolocationOption,...this.options]}},methods:{autocomplete(t){this.options=[],t.length>2&&this.debounceFetch(t,this)},fetchSuggestions(t){this.domainName&&getLocationSuggestions(this.domainName,t,this.googleSessionToken||"").then(e=>{const r={text:"Search",type:IconTypeValues.SEARCH};e&&e.items&&(this.options=e.items.map(s=>({...s,icon:r}))),this.$nextTick(()=>{this.$emit("on-dropdown")})})},onSelectOption(t){if(this.domainName)if(t){const e=useJobAdsStore();if(!t.id||t.id==="0"){this.getNearByJobs(),e.locationPlaceholder=CURRENT_LOCATION_PLACEHOLDER;return}getPlaceDetails(this.domainName,t.id,this.googleSessionToken||"").then(r=>{e.locationPlaceholder===CURRENT_LOCATION_PLACEHOLDER&&(e.locationPlaceholder=DEFAULT_LOCATION_PLACEHOLDER),t.details=r,this.$emit("input",t)})}else this.$emit("input",null)},getNearByJobs(){navigator.geolocation?navigator.geolocation.getCurrentPosition(this.onGeolocationSuccess,this.onGeolocationError):this.$router.push({query:{...this.$route.query,errorKey:"ui.location_current_location_no-support"}})},onGeolocationSuccess(t){useJobAdsStore().geolocation={lat:t.coords.latitude,lng:t.coords.longitude}},onGeolocationError(t){console.error(t.message),this.$router.push({query:{...this.$route.query,errorKey:"ui.location_current_location_error"}})},onBlur(){this.googleSessionToken=null,this.$emit("on-dropdown-hidden")},onFocus(){this.googleSessionToken=v4(),useJobAdsStore().locationPlaceholder=DEFAULT_LOCATION_PLACEHOLDER,this.$nextTick(()=>{this.$emit("on-dropdown")})}},watch:{locationPlaceholder:{handler(){const t=this.value?.label;typeof t=="string"&&!t.includes(",")||(this.settings.input.placeholder=this.$t(this.locationPlaceholder),this.locationPlaceholder!==DEFAULT_LOCATION_PLACEHOLDER&&this.$emit("input",null))}}},created(){this.debounceFetch=debounce(t=>this.fetchSuggestions(t),350),this.settings.label&&(this.settings.label.label=this.$t(this.settings.label.label)),this.settings.input.placeholder=this.$t(this.locationPlaceholder),this.userGeolocationOption[0].label=this.$t(CURRENT_LOCATION_PLACEHOLDER)}});var _sfc_render$O=function(){var e=this,r=e._self._c;return e._self._setupProxy,r("search-input",e._b({class:e.computedClass,attrs:{"autocomplete-options":e.locationOptions,value:e.value},on:{search:e.autocomplete,input:e.onSelectOption,"search-focus":e.onFocus,"search-blur":e.onBlur},scopedSlots:e._u([{key:"no-options",fn:function(){return[e._v(e._s(e.$t("ui.no-matching-options")))]},proxy:!0}])},"search-input",e.settings,!1))},_sfc_staticRenderFns$O=[],__component__$O=normalizeComponent(_sfc_main$O,_sfc_render$O,_sfc_staticRenderFns$O);const LocationAutocomplete=__component__$O.exports;var _baseFindIndex,hasRequired_baseFindIndex;function require_baseFindIndex(){if(hasRequired_baseFindIndex)return _baseFindIndex;hasRequired_baseFindIndex=1;function t(e,r,s,n){for(var a=e.length,o=s+(n?1:-1);n?o--:++o<a;)if(r(e[o],o,e))return o;return-1}return _baseFindIndex=t,_baseFindIndex}var _baseIsNaN,hasRequired_baseIsNaN;function require_baseIsNaN(){if(hasRequired_baseIsNaN)return _baseIsNaN;hasRequired_baseIsNaN=1;function t(e){return e!==e}return _baseIsNaN=t,_baseIsNaN}var _strictIndexOf,hasRequired_strictIndexOf;function require_strictIndexOf(){if(hasRequired_strictIndexOf)return _strictIndexOf;hasRequired_strictIndexOf=1;function t(e,r,s){for(var n=s-1,a=e.length;++n<a;)if(e[n]===r)return n;return-1}return _strictIndexOf=t,_strictIndexOf}var _baseIndexOf,hasRequired_baseIndexOf;function require_baseIndexOf(){if(hasRequired_baseIndexOf)return _baseIndexOf;hasRequired_baseIndexOf=1;var t=require_baseFindIndex(),e=require_baseIsNaN(),r=require_strictIndexOf();function s(n,a,o){return a===a?r(n,a,o):t(n,e,o)}return _baseIndexOf=s,_baseIndexOf}var _arrayIncludes,hasRequired_arrayIncludes;function require_arrayIncludes(){if(hasRequired_arrayIncludes)return _arrayIncludes;hasRequired_arrayIncludes=1;var t=require_baseIndexOf();function e(r,s){var n=r==null?0:r.length;return!!n&&t(r,s,0)>-1}return _arrayIncludes=e,_arrayIncludes}var _arrayIncludesWith,hasRequired_arrayIncludesWith;function require_arrayIncludesWith(){if(hasRequired_arrayIncludesWith)return _arrayIncludesWith;hasRequired_arrayIncludesWith=1;function t(e,r,s){for(var n=-1,a=e==null?0:e.length;++n<a;)if(s(r,e[n]))return!0;return!1}return _arrayIncludesWith=t,_arrayIncludesWith}var noop_1,hasRequiredNoop;function requireNoop(){if(hasRequiredNoop)return noop_1;hasRequiredNoop=1;function t(){}return noop_1=t,noop_1}var _createSet,hasRequired_createSet;function require_createSet(){if(hasRequired_createSet)return _createSet;hasRequired_createSet=1;var t=require_Set(),e=requireNoop(),r=require_setToArray(),s=1/0,n=t&&1/r(new t([,-0]))[1]==s?function(a){return new t(a)}:e;return _createSet=n,_createSet}var _baseUniq,hasRequired_baseUniq;
10function require_baseUniq(){if(hasRequired_baseUniq)return _baseUniq;hasRequired_baseUniq=1;var t=require_SetCache(),e=require_arrayIncludes(),r=require_arrayIncludesWith(),s=require_cacheHas(),n=require_createSet(),a=require_setToArray(),o=200;function h(l,c,m){var C=-1,u=e,b=l.length,_=!0,g=[],E=g;if(m)_=!1,u=r;else if(b>=o){var d=c?null:n(l);if(d)return a(d);_=!1,u=s,E=new t}else E=c?[]:g;e:for(;++C<b;){var f=l[C],p=c?c(f):f;if(f=m||f!==0?f:0,_&&p===p){for(var v=E.length;v--;)if(E[v]===p)continue e;c&&E.push(p),g.push(f)}else u(E,p,m)||(E!==g&&E.push(p),g.push(f))}return g}return _baseUniq=h,_baseUniq}var uniq_1,hasRequiredUniq;function requireUniq(){if(hasRequiredUniq)return uniq_1;hasRequiredUniq=1;var t=require_baseUniq();function e(r){return r&&r.length?t(r):[]}return uniq_1=e,uniq_1}var uniqExports=requireUniq();const uniq=getDefaultExportFromCjs(uniqExports);var _baseHas,hasRequired_baseHas;function require_baseHas(){if(hasRequired_baseHas)return _baseHas;hasRequired_baseHas=1;var t=Object.prototype,e=t.hasOwnProperty;function r(s,n){return s!=null&&e.call(s,n)}return _baseHas=r,_baseHas}var has_1,hasRequiredHas;function requireHas(){if(hasRequiredHas)return has_1;hasRequiredHas=1;var t=require_baseHas(),e=require_hasPath();function r(s,n){return s!=null&&e(s,n,t)}return has_1=r,has_1}var hasExports=requireHas();const _has=getDefaultExportFromCjs(hasExports);var getExports=requireGet();const _get=getDefaultExportFromCjs(getExports);var set_1,hasRequiredSet;function requireSet(){if(hasRequiredSet)return set_1;hasRequiredSet=1;var t=require_baseSet();function e(r,s,n){return r==null?r:t(r,s,n)}return set_1=e,set_1}var setExports=requireSet();const _set=getDefaultExportFromCjs(setExports);var _arrayEach,hasRequired_arrayEach;function require_arrayEach(){if(hasRequired_arrayEach)return _arrayEach;hasRequired_arrayEach=1;function t(e,r){for(var s=-1,n=e==null?0:e.length;++s<n&&r(e[s],s,e)!==!1;);return e}return _arrayEach=t,_arrayEach}var _copyObject,hasRequired_copyObject;function require_copyObject(){if(hasRequired_copyObject)return _copyObject;hasRequired_copyObject=1;var t=require_assignValue(),e=require_baseAssignValue();function r(s,n,a,o){var h=!a;a||(a={});for(var l=-1,c=n.length;++l<c;){var m=n[l],C=o?o(a[m],s[m],m,a,s):void 0;C===void 0&&(C=s[m]),h?e(a,m,C):t(a,m,C)}return a}return _copyObject=r,_copyObject}var _baseAssign,hasRequired_baseAssign;function require_baseAssign(){if(hasRequired_baseAssign)return _baseAssign;hasRequired_baseAssign=1;var t=require_copyObject(),e=requireKeys();function r(s,n){return s&&t(n,e(n),s)}return _baseAssign=r,_baseAssign}var _baseAssignIn,hasRequired_baseAssignIn;function require_baseAssignIn(){if(hasRequired_baseAssignIn)return _baseAssignIn;hasRequired_baseAssignIn=1;var t=require_copyObject(),e=requireKeysIn();function r(s,n){return s&&t(n,e(n),s)}return _baseAssignIn=r,_baseAssignIn}var _cloneBuffer={exports:{}};_cloneBuffer.exports;var hasRequired_cloneBuffer;function require_cloneBuffer(){return hasRequired_cloneBuffer||(hasRequired_cloneBuffer=1,(function(t,e){var r=require_root(),s=e&&!e.nodeType&&e,n=s&&!0&&t&&!t.nodeType&&t,a=n&&n.exports===s,o=a?r.Buffer:void 0,h=o?o.allocUnsafe:void 0;function l(c,m){if(m)return c.slice();var C=c.length,u=h?h(C):new c.constructor(C);return c.copy(u),u}t.exports=l})(_cloneBuffer,_cloneBuffer.exports)),_cloneBuffer.exports}var _copyArray,hasRequired_copyArray;function require_copyArray(){if(hasRequired_copyArray)return _copyArray;hasRequired_copyArray=1;function t(e,r){var s=-1,n=e.length;for(r||(r=Array(n));++s<n;)r[s]=e[s];return r}return _copyArray=t,_copyArray}var _copySymbols,hasRequired_copySymbols;function require_copySymbols(){if(hasRequired_copySymbols)return _copySymbols;hasRequired_copySymbols=1;var t=require_copyObject(),e=require_getSymbols();function r(s,n){return t(s,e(s),n)}return _copySymbols=r,_copySymbols}var _copySymbolsIn,hasRequired_copySymbolsIn;function require_copySymbolsIn(){if(hasRequired_copySymbolsIn)return _copySymbolsIn;hasRequired_copySymbolsIn=1;var t=require_copyObject(),e=require_getSymbolsIn();function r(s,n){return t(s,e(s),n)}return _copySymbolsIn=r,_copySymbolsIn}
10var _initCloneArray,hasRequired_initCloneArray;function require_initCloneArray(){if(hasRequired_initCloneArray)return _initCloneArray;hasRequired_initCloneArray=1;var t=Object.prototype,e=t.hasOwnProperty;function r(s){var n=s.length,a=new s.constructor(n);return n&&typeof s[0]=="string"&&e.call(s,"index")&&(a.index=s.index,a.input=s.input),a}return _initCloneArray=r,_initCloneArray}var _cloneArrayBuffer,hasRequired_cloneArrayBuffer;function require_cloneArrayBuffer(){if(hasRequired_cloneArrayBuffer)return _cloneArrayBuffer;hasRequired_cloneArrayBuffer=1;var t=require_Uint8Array();function e(r){var s=new r.constructor(r.byteLength);return new t(s).set(new t(r)),s}return _cloneArrayBuffer=e,_cloneArrayBuffer}var _cloneDataView,hasRequired_cloneDataView;function require_cloneDataView(){if(hasRequired_cloneDataView)return _cloneDataView;hasRequired_cloneDataView=1;var t=require_cloneArrayBuffer();function e(r,s){var n=s?t(r.buffer):r.buffer;return new r.constructor(n,r.byteOffset,r.byteLength)}return _cloneDataView=e,_cloneDataView}var _cloneRegExp,hasRequired_cloneRegExp;function require_cloneRegExp(){if(hasRequired_cloneRegExp)return _cloneRegExp;hasRequired_cloneRegExp=1;var t=/\w*$/;function e(r){var s=new r.constructor(r.source,t.exec(r));return s.lastIndex=r.lastIndex,s}return _cloneRegExp=e,_cloneRegExp}var _cloneSymbol,hasRequired_cloneSymbol;function require_cloneSymbol(){if(hasRequired_cloneSymbol)return _cloneSymbol;hasRequired_cloneSymbol=1;var t=require_Symbol(),e=t?t.prototype:void 0,r=e?e.valueOf:void 0;function s(n){return r?Object(r.call(n)):{}}return _cloneSymbol=s,_cloneSymbol}var _cloneTypedArray,hasRequired_cloneTypedArray;function require_cloneTypedArray(){if(hasRequired_cloneTypedArray)return _cloneTypedArray;hasRequired_cloneTypedArray=1;var t=require_cloneArrayBuffer();function e(r,s){var n=s?t(r.buffer):r.buffer;return new r.constructor(n,r.byteOffset,r.length)}return _cloneTypedArray=e,_cloneTypedArray}var _initCloneByTag,hasRequired_initCloneByTag;function require_initCloneByTag(){if(hasRequired_initCloneByTag)return _initCloneByTag;hasRequired_initCloneByTag=1;var t=require_cloneArrayBuffer(),e=require_cloneDataView(),r=require_cloneRegExp(),s=require_cloneSymbol(),n=require_cloneTypedArray(),a="[object Boolean]",o="[object Date]",h="[object Map]",l="[object Number]",c="[object RegExp]",m="[object Set]",C="[object String]",u="[object Symbol]",b="[object ArrayBuffer]",_="[object DataView]",g="[object Float32Array]",E="[object Float64Array]",d="[object Int8Array]",f="[object Int16Array]",p="[object Int32Array]",v="[object Uint8Array]",P="[object Uint8ClampedArray]",M="[object Uint16Array]",w="[object Uint32Array]";function I(B,x,L){var F=B.constructor;switch(x){case b:return t(B);case a:case o:return new F(+B);case _:return e(B,L);case g:case E:case d:case f:case p:case v:case P:case M:case w:return n(B,L);case h:return new F;case l:case C:return new F(B);case c:return r(B);case m:return new F;case u:return s(B)}}return _initCloneByTag=I,_initCloneByTag}var _baseCreate,hasRequired_baseCreate;function require_baseCreate(){if(hasRequired_baseCreate)return _baseCreate;hasRequired_baseCreate=1;var t=requireIsObject(),e=Object.create,r=(function(){function s(){}return function(n){if(!t(n))return{};if(e)return e(n);s.prototype=n;var a=new s;return s.prototype=void 0,a}})();return _baseCreate=r,_baseCreate}var _initCloneObject,hasRequired_initCloneObject;function require_initCloneObject(){if(hasRequired_initCloneObject)return _initCloneObject;hasRequired_initCloneObject=1;var t=require_baseCreate(),e=require_getPrototype(),r=require_isPrototype();function s(n){return typeof n.constructor=="function"&&!r(n)?t(e(n)):{}}return _initCloneObject=s,_initCloneObject}var _baseIsMap,hasRequired_baseIsMap;function require_baseIsMap(){if(hasRequired_baseIsMap)return _baseIsMap;hasRequired_baseIsMap=1;var t=require_getTag(),e=requireIsObjectLike(),r="[object Map]";function s(n){return e(n)&&t(n)==r}return _baseIsMap=s,_baseIsMap}var isMap_1,hasRequiredIsMap;function requireIsMap(){if(hasRequiredIsMap)return isMap_1;hasRequiredIsMap=1;var t=require_baseIsMap(),e=require_baseUnary(),r=require_nodeUtil(),s=r&&r.isMap,n=s?e(s):t;return isMap_1=n,isMap_1}var _baseIsSet,hasRequired_baseIsSet;function require_baseIsSet(){if(hasRequired_baseIsSet)return _baseIsSet;hasRequired_baseIsSet=1;var t=require_getTag(),e=requireIsObjectLike(),r="[object Set]";function s(n){return e(n)&&t(n)==r}return _baseIsSet=s,_baseIsSet}var isSet_1,hasRequiredIsSet;function requireIsSet(){if(hasRequiredIsSet)return isSet_1;hasRequiredIsSet=1;var t=require_baseIsSet(),e=require_baseUnary(),r=require_nodeUtil(),s=r&&r.isSet,n=s?e(s):t;return isSet_1=n,isSet_1}var _baseClone,hasRequired_baseClone;function require_baseClone(){if(hasRequired_baseClone)return _baseClone;hasRequired_baseClone=1;var t=require_Stack(),e=require_arrayEach(),r=require_assignValue(),s=require_baseAssign(),n=require_baseAssignIn(),a=require_cloneBuffer(),o=require_copyArray(),h=require_copySymbols(),l=require_copySymbolsIn(),c=require_getAllKeys(),m=require_getAllKeysIn(),C=require_getTag(),u=require_initCloneArray(),b=require_initCloneByTag(),_=require_initCloneObject(),g=requireIsArray(),E=requireIsBuffer(),d=requireIsMap(),f=requireIsObject(),p=requireIsSet(),v=requireKeys(),P=requireKeysIn(),M=1,w=2,I=4,B="[object Arguments]",x="[object Array]",L="[object Boolean]",F="[object Date]",O="[object Error]",$="[object Function]",D="[object GeneratorFunction]",A="[object Map]",T="[object Number]",y="[object Object]",S="[object RegExp]",R="[object Set]",k="[object String]",V="[object Symbol]",q="[object WeakMap]",G="[object ArrayBuffer]",H="[object DataView]",W="[object Float32Array]",K="[object Float64Array
10]",ee="[object Int8Array]",le="[object Int16Array]",te="[object Int32Array]",Y="[object Uint8Array]",se="[object Uint8ClampedArray]",J="[object Uint16Array]",N="[object Uint32Array]",z={};z[B]=z[x]=z[G]=z[H]=z[L]=z[F]=z[W]=z[K]=z[ee]=z[le]=z[te]=z[A]=z[T]=z[y]=z[S]=z[R]=z[k]=z[V]=z[Y]=z[se]=z[J]=z[N]=!0,z[O]=z[$]=z[q]=!1;function ne(j,X,re,he,Z,Q){var U,ie=X&M,ae=X&w,oe=X&I;if(re&&(U=Z?re(j,he,Z,Q):re(j)),U!==void 0)return U;if(!f(j))return j;var pe=g(j);if(pe){if(U=u(j),!ie)return o(j,U)}else{var ce=C(j),de=ce==$||ce==D;if(E(j))return a(j,ie);if(ce==y||ce==B||de&&!Z){if(U=ae||de?{}:_(j),!ie)return ae?l(j,n(U,j)):h(j,s(U,j))}else{if(!z[ce])return Z?j:{};U=b(j,ce,ie)}}Q||(Q=new t);var fe=Q.get(j);if(fe)return fe;Q.set(j,U),p(j)?j.forEach(function(ue){U.add(ne(ue,X,re,ue,j,Q))}):d(j)&&j.forEach(function(ue,me){U.set(me,ne(ue,X,re,me,j,Q))});var ve=oe?ae?m:c:ae?P:v,ge=pe?void 0:ve(j);return e(ge||j,function(ue,me){ge&&(me=ue,ue=j[me]),r(U,me,ne(ue,X,re,me,j,Q))}),U}return _baseClone=ne,_baseClone}var cloneDeep_1,hasRequiredCloneDeep;function requireCloneDeep(){if(hasRequiredCloneDeep)return cloneDeep_1;hasRequiredCloneDeep=1;var t=require_baseClone(),e=1,r=4;function s(n){return t(n,e|r)}return cloneDeep_1=s,cloneDeep_1}var cloneDeepExports=requireCloneDeep();const _cloneDeep=getDefaultExportFromCjs(cloneDeepExports);function translateArray(t,e){const r=_cloneDeep(e.settings);for(let s=0;s<r.length;s++)r[s]=translateSingleItem(t,r[s],e.translatableKeys);return r}function translateObject(t,e){return translateSingleItem(t,e.settings,e.translatableKeys)}function translateSingleItem(t,e,r){const s=_cloneDeep(e);for(const n of r)if(_has(s,n)){const{lastChildKey:a,ancestorsKey:o}=decomposeProperty(n);if(o){const h=_get(s,o),l=createTranslationProxy(h,a,t);_set(s,o,l)}else _set(s,a,t.$t(s[a]))}return s}function decomposeProperty(t){const e=t.split("."),[r]=e.splice(-1),s=e.join(".");return{lastChildKey:r,ancestorsKey:s}}const createTranslationProxy=(t,e,r)=>new Proxy(t,{get:(s,n,a)=>n===e?r.$t(s[n]):Reflect.get(s,n,a)}),_sfc_main$N=defineComponent({name:"KeywordsAutocompleteMixin",mixins:[AutocompletePendingStateMixin],props:{initialValues:{type:Array}},data(){return{selectedOptions:[],options:[],debounceFetch:{},initialSettings:{settings:{icon:{text:"ui.job_research",type:IconTypeValues.LABEL},label:{label:"ui.job_research"},input:{title:"ui.job_research_placeholder",placeholder:"ui.job_research_placeholder",value:"",readonly:!1,disabled:!1},autocomplete:!0,multiple:!0,vueSelectOptions:{taggable:!0,closeOnSelect:!1}},translatableKeys:["icon.text","label.label","input.text","input.placeholder"]},settings:{}}},computed:{domainName(){return useCareersSiteStore().domainName},localizedCareersSite(){return useCareersSiteStore().localizedCareersSite},searchInputComputedClass(){return this.pendingClass},wrapperClass(){return{"vs-keywords":!0}}},methods:{autocomplete(t){this.options=[],t.length>2?this.debounceFetch(t,this):this.setPendingState(!0)},fetchSuggestions(t){this.domainName&&getKeywordsSuggestions(this.domainName,t,this.localizedCareersSite.locale.iso_code).then(e=>{this.setPendingState(!1),e.items&&(this.options=e.items.map(r=>r.label))})},addOption(t){if(this.debounceFetch.cancel(),isEmpty(t))return this.selectedOptions;const e=isArray(t)?t[0]:t;return e&&(this.selectedOptions.push(e),this.selectedOptions=uniq(this.selectedOptions)),this.$emit("input",this.selectedOptions),this.selectedOptions},removeOption(t){const e=this.selectedOptions.findIndex(r=>r===t);return this.selectedOptions.splice(e,1),this.$emit("input",this.selectedOptions),this.selectedOptions}},watch:{initialValues:{handler(){this.selectedOptions=this.initialValues?[...this.initialValues]:[]}}},created(){this.selectedOptions=this.initialValues?[...this.initialValues]:[],this.debounceFetch=debounce(t=>this.fetchSuggestions(t),350),this.settings=translateObject(this,this.initialSettings)}}),_sfc_render$N=null,_sfc_staticRenderFns$N=null;var __component__$N=normalizeComponent(_sfc_main$N,_sfc_render$N,_sfc_staticRenderFns$N);const KeywordsAutocompleteMixin=__component__$N.exports,_sfc_main$M=defineComponent({name:"DesktopKeywordsAutocomplete",mixins:[KeywordsAutocompleteMixin
10],components:{SearchInput,DRTag,IconButton},data(){return{placeholderOptions:"",openSelection:!1}},computed:{wrapperClass(){return{"vs-keywords":!0,"vs-keywords--with-preview":!0,"vs-keywords--open-selection":this.openSelection}},showSelectedKeywordsList(){return this.openSelection&&this.isPending},showOpenIndicator(){return this.selectedOptions.length>0},openIndicatorIcon(){return this.openSelection?{type:IconTypeValues.CHEVRON_UP,text:this.$t("ui.close")}:{type:IconTypeValues.CHEVRON_DOWN,text:this.$t("ui.open")}}},methods:{onFocus(){this.placeholderOptions="",this.selectedOptions.length>0&&(this.openSelection=!0)},onBlur(){this.setPlaceholderOptions(),this.openSelection=!1},onOptionSelect(t){this.addOption(t),this.$nextTick(()=>{this.onFocus()})},onOptionDeselect(t){this.removeOption(t),this.setPlaceholderOptions()},setPlaceholderOptions(){this.placeholderOptions=this.selectedOptions.join(", ")}},watch:{initialValues:{immediate:!0,handler(){this.selectedOptions=this.initialValues?[...this.initialValues]:[],this.setPlaceholderOptions()}}}});var _sfc_render$M=function(){var e=this,r=e._self._c;return e._self._setupProxy,r("div",{class:e.wrapperClass},[r("search-input",e._b({class:e.searchInputComputedClass,attrs:{value:e.placeholderOptions,"autocomplete-options":e.options,multiple:!1},on:{search:e.autocomplete,"search-focus":e.onFocus,"search-blur":e.onBlur,input:e.onOptionSelect,"option-deselected":e.onOptionDeselect},scopedSlots:e._u([{key:"open-indicator",fn:function(){return[e.showOpenIndicator?r("IconButton",{staticClass:"vs__open-indicator",attrs:{label:e.selectedOptions.length,"right-icon":e.openIndicatorIcon,variant:"secondary-outlined"}}):r("span")]},proxy:!0}])},"search-input",e.settings,!1)),r("div",{directives:[{name:"show",rawName:"v-show",value:e.showSelectedKeywordsList,expression:"showSelectedKeywordsList"}],staticClass:"selected-keywords selected-keywords--dropdown"},[r("p",{staticClass:"selected-keywords__header"},[e._v(e._s(e.$t("ui.your-research")))]),r("div",{staticClass:"selected-keywords__list"},e._l(e.selectedOptions,function(s){return r("div",{key:s},[r("d-r-tag",{staticClass:"selected-keywords__item",attrs:{removable:!0},on:{delete:function(n){return e.removeOption(s)}},scopedSlots:e._u([{key:"description",fn:function(){return[e._v(e._s(s))]},proxy:!0}],null,!0)})],1)}),0)])],1)},_sfc_staticRenderFns$M=[],__component__$M=normalizeComponent(_sfc_main$M,_sfc_render$M,_sfc_staticRenderFns$M);const DesktopKeywordsAutocomplete=__component__$M.exports,_sfc_main$L=defineComponent({name:"ResearchFields",components:{IconButton,LocationAutocomplete,DesktopKeywordsAutocomplete},data(){return{keywords:[],place:null,researchButton:{leftIcon:{text:"ui.research",type:IconTypeValues.SEARCH,display_sr_only_text:!1},label:"ui.research"}}},computed:{jobAdsStore(){return useJobAdsStore(this.$pinia)},searchParameters(){return this.jobAdsStore.searchParameters}},methods:{translateResearchButtonText(){this.researchButton.label=this.$t(this.researchButton.label),this.researchButton.leftIcon&&(this.researchButton.leftIcon.text=this.$t(this.researchButton.leftIcon.text))},updateSearchParameters(t){const e=useJobAdsStore();e.locationPlaceholder!==CURRENT_LOCATION_PLACEHOLDER&&this.$commonApi.setEraseCoordinates(!0),e.searchParameters=t,e.isMapIdle=!1,t.place&&t.place.details?.geometry?.viewport&&(e.googleLocationViewport=convertGoogleViewportToEsViewport(t.place.details.geometry.viewport))},onKeywordsChange(t){this.keywords=t},initializeValues(){const{keywords:t,place:e}=this.searchParameters;this.keywords=t??[],this.place=e},search(){return this.updateSearchParameters({keywords:this.keywords,place:this.place}),this.$emit("search",{locationSearch:this.place}),{locationSearch:this.place}}},watch:{searchParameters:{handler(){this.initializeValues()},deep:!0}},created(){this.initializeValues(),this.translateResearchButtonText()}});var _sfc_render$L=function(){var e=this,r=e._self._c;return e._self._setupProxy,r("div",{staticClass:"research-container"},[r("desktop-keywords-autocomplete",{attrs:{"initial-values":e.keywords},on:{input:e.onKeywordsChange}}),r("LocationAutocomplete",{staticClass:"vs-location",model:{value:e.place,callback:function(s){e.place=s},expression:"place"}}),r("IconButton",e._b({staticClass:"research-container__action research-container__action--search",on:{click:e.search}},"IconButton",e.researchButton,!1))],1)},_sfc_staticRenderFns$L=[],__component__$L=normalizeComponent(_sfc_main$L,_sfc_render$L,_sfc_staticRenderFns$L);
10const ResearchFields=__component__$L.exports,_sfc_main$K=defineComponent({name:"AvatarCheckbox",components:{Icon,Avatar},props:{value:{type:Boolean,required:!0},id:{type:String},avatar:{type:Object,required:!0}},data(){return{closeIcon:{text:"close",type:IconTypeValues.CLOSE,display_sr_only_text:!1}}},computed:{avatarCheckboxClass(){return{"avatar-checkbox":!0,"avatar-checkbox--checked":this.value}},ariaPressed(){return this.value?"true":"false"}},methods:{input(){this.$emit("input",!this.value)}}});var _sfc_render$K=function(){var e=this,r=e._self._c;return e._self._setupProxy,r("button",{class:e.avatarCheckboxClass,attrs:{"aria-pressed":e.ariaPressed},on:{click:e.input}},[r("Avatar",{attrs:{img:e.avatar}}),e.value?r("Icon",e._b({},"Icon",e.closeIcon,!1)):e._e()],1)},_sfc_staticRenderFns$K=[],__component__$K=normalizeComponent(_sfc_main$K,_sfc_render$K,_sfc_staticRenderFns$K);const AvatarCheckbox=__component__$K.exports;var last_1,hasRequiredLast;function requireLast(){if(hasRequiredLast)return last_1;hasRequiredLast=1;function t(e){var r=e==null?0:e.length;return r?e[r-1]:void 0}return last_1=t,last_1}var lastExports=requireLast();const last=getDefaultExportFromCjs(lastExports);var BrandsFilterWidthType=(t=>(t.FULL_PAGE="full-page",t.HALF_PAGE="half-page",t))(BrandsFilterWidthType||{});const LISTING_PAGE_MARGINS=64,LISTING_PAGE_GAP=16,BRAND_WIDTH=88,BRAND_WIDTH_EXTENDED=162,MAX_MOBILE_WIDTH=767,MIN_DESKTOP_WIDTH=768,MAX_DESKTOP_WIDTH=1920,initialBreakpointSettings={breakpoint:MAX_MOBILE_WIDTH,settings:{slidesToShow:1,slidesToScroll:1}};function getBreakpointsSettings(t,e,r=!1){const s=[initialBreakpointSettings];s.push(getFirstBreakpointSetting(t,e,r));let n=last(s);for(;n&&checkIfNextBreakpointSettingCanBeAdded(n,e);){const a=createNextBreakpointSetting(t,n,r);s.push(a),n=a}return s}function getFirstBreakpointSetting(t,e,r=!1){const s=calculateTheNumberOfSlides(t,MIN_DESKTOP_WIDTH,r),n=getWidthForTheNumberOfSlides(t,s+1,r)-1,a=s<e?s:e;return{breakpoint:n,settings:{slidesToShow:a,slidesToScroll:a-1}}}function calculateTheNumberOfSlides(t,e,r=!1){let s;return t===BrandsFilterWidthType.FULL_PAGE?s=Math.floor((e-LISTING_PAGE_MARGINS)/(r?BRAND_WIDTH_EXTENDED:BRAND_WIDTH)):s=Math.floor((e/2-LISTING_PAGE_MARGINS-LISTING_PAGE_GAP)/(r?BRAND_WIDTH_EXTENDED:BRAND_WIDTH)),s}function getWidthForTheNumberOfSlides(t,e,r=!1){let s;return t===BrandsFilterWidthType.FULL_PAGE?s=e*(r?BRAND_WIDTH_EXTENDED:BRAND_WIDTH)+LISTING_PAGE_MARGINS:s=(e*(r?BRAND_WIDTH_EXTENDED:BRAND_WIDTH)+LISTING_PAGE_MARGINS+LISTING_PAGE_GAP)*2,s}function createNextBreakpointSetting(t,e,r=!1){return{breakpoint:t===BrandsFilterWidthType.FULL_PAGE?e.breakpoint+(r?BRAND_WIDTH_EXTENDED:BRAND_WIDTH):e.breakpoint+(r?BRAND_WIDTH_EXTENDED:BRAND_WIDTH)*2,settings:{slidesToShow:e.settings.slidesToShow?e.settings.slidesToShow+1:void 0,slidesToScroll:e.settings.slidesToScroll?e.settings.slidesToScroll+1:void 0}}}function checkIfNextBreakpointSettingCanBeAdded(t,e){return t.breakpoint<=MAX_DESKTOP_WIDTH&&!!t.settings.slidesToShow&&t.settings.slidesToShow<e}const brandsFilterSettings={dots:!1,swipe:!1,infinite:!1,slidesToShow:1,slidesToScroll:1,centerPadding:"20px",initialSlide:0,centerMode:!1,focusOnSelect:!1,variableWidth:!0,responsive:[initialBreakpointSettings]};function getBrandsFilterSettings(t,e,r=!1){return brandsFilterSettings.slidesToShow=e,brandsFilterSettings.slidesToScroll=e-1,brandsFilterSettings.responsive=getBreakpointsSettings(t,e,r),brandsFilterSettings}const _sfc_main$J=defineComponent({name:"BrandsFilter",components:{AvatarCheckbox,Carousel,IconButton,Title},props:{pageWidthType:{type:String,default:BrandsFilterWidthType.HALF_PAGE},extended:{type:Boolean,default:!1}},data(){return{settings:{},prevIcon:{type:IconTypeValues.ARROW_LEFT,text:getTranslationForKey("ui.previous_brands",this)},nextIcon:{type:IconTypeValues.ARROW_RIGHT,text:getTranslationForKey("ui.next_brands",this)},currentHoverIndex:null,currentSlideIndex:0,slidesToShow:0}},computed:{filters(){return useJobAdsStore().filters},filterParameters(){return useJobAdsStore().filterParameters}
10,brands(){return useCareersSiteStore().brands},sliderClass(){return t=>{let e="brands-filter__item";if(this.currentHoverIndex!==null&&!this.extended){const r=t-this.currentHoverIndex;Math.abs(r)===0?e+=" --genius-main-hover":Math.abs(r)===1&&(e+=" --genius-secondary-hover"),r>0?e+=" --genius-translate-to-right":r<0&&(e+=" --genius-translate-to-left")}return e}},options(){const t=this.filterParameters[FiltersValue.BrandFilter];return this.brands.map((e,r)=>({id:e.id.toString(10),value:t.includes(e.id.toString(10)),avatar:e.image,index:r}))},displayOptions(){return this.options.length>0},nextSlidesNumber(){const t=this.brands.length-this.currentSlideIndex-this.slidesToShow;return t>0?t:0},prevSlidesNumber(){return this.currentSlideIndex},domainName(){return useCareersSiteStore().domainName}},methods:{getCarousel(){return this.$refs.carousel},updateSearchBrands(t){useJobAdsStore().updateFilters({type:FiltersValue.BrandFilter,values:t})},mouseOver(t){this.currentHoverIndex=this.options.findIndex(e=>e.index===t)},mouseLeave(){this.currentHoverIndex=null},beforeSlidesChange(t,e){this.currentSlideIndex=e},refreshSlidesToShow(){const t=this.getCarousel()?.getInnerCarousel().$refs.innerSlider;this.slidesToShow=t.$props.slidesToShow},change(t,e){this.$mixpanel?.track("Click_Brand_filter",{domain:this.domainName,page_type:"job_ad_list",brand_name:this.brands.find(n=>n.id.toString(10)===t)?.name,brand_id:t});const r=this.filterParameters[FiltersValue.BrandFilter];let s;e?s=[...r,t]:s=r.filter(n=>n!==t),this.updateSearchBrands(s),this.$emit("change",t,e)}},created(){this.settings=getBrandsFilterSettings(this.pageWidthType,this.brands.length,this.extended)}});var _sfc_render$J=function(){var e=this,r=e._self._c;return e._self._setupProxy,r("div",{staticClass:"brands-filter",class:{"brands-filter--extended":e.extended},on:{mouseleave:e.mouseLeave}},[r("Title",{attrs:{tag:"h2"}},[e._v(e._s(e.$t("ui.offers-by-brands")))]),e.displayOptions?r("Carousel",e._b({ref:"carousel",staticClass:"brands-filter__carousel",on:{"re-init":e.refreshSlidesToShow,"before-change":e.beforeSlidesChange},scopedSlots:e._u([{key:"prevArrow",fn:function(){return[r("IconButton",{attrs:{"left-icon":e.prevIcon,label:`+${e.prevSlidesNumber}`}})]},proxy:!0},{key:"nextArrow",fn:function(){return[r("IconButton",{attrs:{"right-icon":e.nextIcon,label:`+${e.nextSlidesNumber}`}})]},proxy:!0}],null,!1,566242052)},"Carousel",e.settings,!1),e._l(e.options,function(s,n){return r("div",{key:s.id,class:e.sliderClass(n),on:{mouseover:function(a){return e.mouseOver(n)}}},[r("div",{staticClass:"genius-wrapper"},[r("AvatarCheckbox",e._b({on:{input:a=>e.change(s.id,a)}},"AvatarCheckbox",s,!1))],1)])}),0):e._e()],1)},_sfc_staticRenderFns$J=[],__component__$J=normalizeComponent(_sfc_main$J,_sfc_render$J,_sfc_staticRenderFns$J);const BrandsFilter=__component__$J.exports,_sfc_main$I=defineComponent({name:"TextBlockAction",components:{IconButton,Title},props:{title:{type:String,default:""},button:{type:Object,required:!0}},methods:{emitClick(){this.$emit("click")}}});var _sfc_render$I=function(){var e=this,r=e._self._c;return e._self._setupProxy,r("section",{staticClass:"text-block-action"},[e.title?r("Title",{staticClass:"text-block-action__title"},[e._v(" "+e._s(e.title)+" ")]):e._e(),r("IconButton",e._b({staticClass:"text-block-action__button",on:{click:e.emitClick}},"IconButton",e.button,!1))],1)},_sfc_staticRenderFns$I=[],__component__$I=normalizeComponent(_sfc_main$I,_sfc_render$I,_sfc_staticRenderFns$I);const TextBlockAction=__component__$I.exports,_sfc_main$H=defineComponent({name:"SpontaneousApplicationBlock",mixins:[ConsentMixin],components:{ModalConsent,TextBlockAction},props:{extended:{type:Boolean,default:!1},buttonName:{type:String,default:APPLY_BUTTON_SPONTANEOUS}},data(){return{iconButton:{rightIcon:{text:"Image",type:IconTypeValues.IMAGE,display_sr_only_text:!1},label:"ui.spontaneous-application_button"}}},methods:{apply(){trackClickApply({domain:this.domainName,button_name:this.buttonName}),this.triggerApplication()}},created(){this.iconButton.label=this.$t(this.iconButton.label)}});var _sfc_render$H=function(){var e=this,r=e._self._c;return e._self._setupProxy,r("div",{class:{"spontaneous-application-block-parent-extended":e.extended}},[r("TextBlockAction",{staticClass:"spontaneous-application-block",class:{"spontaneous-application-block--extended":e.extended},attrs:{title:e.$t("ui.spontaneous-application_title"),button:e.iconButton},on:{click:e.apply}}),r("portal",{attrs:{to:"overlay"}},[e.shouldDisplayConsentModal?r("ModalConsent",{attrs:{"consent-src":e.consentIframeSrc}
10,on:{"modal-opened":e.consentModalOpened,"close-modal":e.closeConsentModal}}):e._e()],1)],1)},_sfc_staticRenderFns$H=[],__component__$H=normalizeComponent(_sfc_main$H,_sfc_render$H,_sfc_staticRenderFns$H);const SpontaneousApplicationBlock=__component__$H.exports,_sfc_main$G=defineComponent({computed:{page(){return useModalStore().page},currentIndex(){return useModalStore().index}},methods:{next(t,e){const r=useModalStore();r.next(),r.text=e,this.currentIndex<0&&(r.index=t),this.$emit("next",t,e)}}}),_sfc_render$G=null,_sfc_staticRenderFns$G=null;var __component__$G=normalizeComponent(_sfc_main$G,_sfc_render$G,_sfc_staticRenderFns$G);const ModalMixin=__component__$G.exports,_sfc_main$F=defineComponent({name:"RemoteWorkingMixin",computed:{jobAdFilters(){return useJobAdsStore().jobAdFilters}},methods:{hasRemoteWorkFilter(){let t=0;return this.jobAdFilters?.remoteWorkTypes?.forEach(e=>{t+=e.count}),t>=REMOTE_WORK_FILTER_MIN_JOB_ADS_COUNT}}}),_sfc_render$F=null,_sfc_staticRenderFns$F=null;var __component__$F=normalizeComponent(_sfc_main$F,_sfc_render$F,_sfc_staticRenderFns$F);const RemoteWorkingMixin=__component__$F.exports,FilterMenu=()=>__vitePreload(()=>import("./FilterMenu-BCVV3lG9.js"),__vite__mapDeps([0,1,2,3,4,5,6]),import.meta.url),_sfc_main$E=defineComponent({name:"NavigationFilter",components:{FilterMenu},mixins:[RemoteWorkingMixin,ModalMixin],props:{components:{type:Array},extended:{type:Boolean,default:!1}},computed:{jobAdFilters(){return useJobAdsStore().jobAdFilters},filterParameters(){return useJobAdsStore().filterParameters}},methods:{getCount(t){const e=this.filterParameters[t];return!e||e.length===0?0:t===FiltersValue.JobFilter&&this.jobAdFilters&&this.jobAdFilters[t]?this.jobAdFilters[t].reduce((r,s)=>String(s.merged_ids||s.id).split(",").some(o=>e.includes(o)||e.includes(Number(o)))?r+1:r,0):e.length},isDisabled(t){return!!this.jobAdFilters&&this.jobAdFilters[t].length<=0},displayFilterMenu(t,e){return this.displayRemoteWorkFilter(t)&&(this.currentIndex<0||e===this.currentIndex)},displayRemoteWorkFilter(t){return t!==FiltersValue.RemoteWorkFilter?!0:this.hasRemoteWorkFilter()}},watch:{page:{handler(){const t=this.page===0?null:this.components[this.currentIndex].data.filterType;useJobAdsStore().currentFilterSelected=t,this.$emit("current-filter-type",this.currentIndex)}}}});var _sfc_render$E=function(){var e=this,r=e._self._c;return e._self._setupProxy,r("div",[e._l(e.components,function(s,n){return[r("FilterMenu",e._b({directives:[{name:"show",rawName:"v-show",value:e.displayFilterMenu(s.data.filterType,n),expression:"displayFilterMenu(component.data.filterType, index)"}],key:n,attrs:{index:n,count:e.getCount(s.data.filterType),disabled:e.isDisabled(s.data.filterType),extended:e.extended}},"FilterMenu",s.data,!1))]})],2)},_sfc_staticRenderFns$E=[],__component__$E=normalizeComponent(_sfc_main$E,_sfc_render$E,_sfc_staticRenderFns$E);const NavigationFilter=__component__$E.exports,_sfc_main$D=defineComponent({name:"MobileKeywordsAutocomplete",mixins:[KeywordsAutocompleteMixin],components:{Link,SearchInput,DRTag},props:{clearable:{type:Boolean,default:!1}},computed:{yourResearchText(){return this.$t("ui.your-research")},resetAllText(){return this.$t("ui.reset")}},methods:{emitDropdownEvents(){this.$nextTick(()=>{this.options.length?this.$emit("on-dropdown"):this.$emit("on-dropdown-hidden")})}},watch:{options:{handler:"emitDropdownEvents"}}});var _sfc_render$D=function(){var e=this,r=e._self._c;return e._self._setupProxy,r("div",{class:e.wrapperClass},[r("search-input",e._b({class:e.searchInputComputedClass,attrs:{"autocomplete-options":e.options,multiple:!1},on:{search:e.autocomplete,input:e.addOption,"option-deselected":e.removeOption,"search-focus":e.emitDropdownEvents,"search-blur":function(s){return e.$emit("on-dropdown-hidden")}}},"search-input",e.settings,!1)),e.clearable?r("div",{staticClass:"action--clear"},[r("span",[e._v(e._s(e.yourResearchText))])]):e._e(),r("div",{staticClass:"selected-keywords"},[r("div",{staticClass:"selected-keywords__list"},e._l(e.selectedOptions,function(s){return r("div",{key:s},[r("d-r-tag",{staticClass:"selected-keywords__item",attrs:{removable:!0},on:{delete:function(n){return e.removeOption(s)}},scopedSlots:e._u([{key:"description",fn:function(){return[e._v(e._s(s))]},proxy:!0}],null,!0)})],1)}),0)])],1)},_sfc_staticRenderFns$D=[],__component__$D=normalizeComponent(_sfc_main$D,_sfc_render$D,_sfc_staticRenderFns$D);const MobileKeywordsAutocomplete=__component__$D.exports,CheckboxFilter$2=()=>__vitePreload(()=>Promise.resolve().then(()=>CheckboxFilter$1),void 0,import.meta.url),FiltersComponent=[{data:{iconProp:{text:"ui.contracts",type:IconTypeValues.FILE},title:"ui.contract-types",component:CheckboxFilter$2,panelTitle:"ui.contract-types",filterType:FiltersValue.ContractFilter}},{data:{iconProp:{text:"ui.working-time",type:IconTypeValues.CLOCK},title:"ui.working-time",component:CheckboxFilter$2,panelTitle:"ui.working-time",filterType:FiltersValue.WorkingTimeFilter}},{data:{iconProp:{text:"ui.functions",type:IconTypeValues.BUSINESS_CASE},title:"ui.functions",component:CheckboxFilter$2,panelTitle:"ui.functions",filterType:FiltersValue.JobFilter}},{data:{iconProp:{text:"ui.brands",type:IconTypeValues.BUILDING},title:"ui.brands",component:CheckboxFilter$2,panelTitle:"ui.brands",filterType:FiltersValue.BrandFilter}},{data:{iconProp:{text:"ui.remote-work",type:IconTypeValues.BUILDING},title:"ui.remote-work",component:CheckboxFilter$2,panelTitle:"ui.remote-work",filterType:FiltersValue.RemoteWorkFilter}}],translatableKeys$4=["data.iconProp.text","data.title","data.panelTitle"],filtersComponentSettings={settings:FiltersComponent,translatableKeys:translatableKeys$4},settings$3={headerSettings:{text:"ui.filters",textExtended:"",textActionButton:"ui.clear",iconNavigation:{type:IconTypeValues.CLOSE,text:"ui.close"},iconTitle:{type:IconTypeValues.FILTER,text:"ui.filters"},iconExtended:void 0},footerSettings:{text:"ui.perform-research",textExtended:"ui.research",textExtendedButton:"ui.reset",extendedButtonIcon:{type:IconTypeValues.RESET,text:"ui.reset"}}},translatableKeys$3=["headerSettings.text","headerSettings.textExtended","headerSettings.textActionButton","headerSettings.iconNavigation.text","headerSettings.iconTitle.text","footerSettings.text","footerSettings.textExtended","footerSettings.textExtendedButton"],modalFiltersSettings={settings:settings$3,translatableKeys:translatableKeys$3},settings$2={headerSettings:{text:"ui.your-research",textExtended:"",textActionButton:"ui.clear",iconNavigation:{type:IconTypeValues.CLOSE,text:"ui.close"},iconTitle:{type:IconTypeValues.SEARCH,text:"ui.search"},iconExtended:void 0},footerSettings:{text:"ui.research",textExtended:"ui.research",textExtendedButton:"ui.reset",extendedButtonIcon:{type:IconTypeValues.RESET,text:"ui.reset"}}},translatableKeys$2=["headerSettings.text","headerSettings.textExtended","headerSettings.textActionButton","headerSettings.iconNavigation.text","headerSettings.iconTitle.text","footerSettings.text","footerSettings.textExtended","footerSettings.textExtendedButton"],modalResearchSettings={settings:settings$2,translatableKeys:translatableKeys$2},settings$1={headerSettings:{text:"ui.filters",textExtended:"",textActionButton:"ui.clear",iconNavigation:{type:IconTypeValues.CLOSE,text:"ui.close"},iconTitle:void 0,iconExtended:{type:IconTypeValues.CLOSE,text:"ui.close"}},footerSettings:{text:"ui.perform-research",textExtended:"ui.research",textExtendedButton:"ui.clear",extendedButtonIcon:void 0}},translatableKeys$1=["headerSettings.text","headerSettings.textExtended","headerSettings.textActionButton","headerSettings.iconNavigation.text","headerSettings.iconTitle.text","footerSettings.text","footerSettings.textExtended","footerSettings.textExtendedButton"],modalSelectedFilterSettings={settings:settings$1,translatableKeys:translatableKeys$1},getFiltersComponent=t=>translateArray(t,filtersComponentSettings),getModalFiltersSettings=t=>
10translateObject(t,modalFiltersSettings),getModalSelectedFilterSettings=t=>translateObject(t,modalSelectedFilterSettings),getModalResearchSettings=t=>translateObject(t,modalResearchSettings),_sfc_main$C=defineComponent({components:{MobileKeywordsAutocomplete,LocationAutocomplete,Modal,ModalFooter,NavigationFilter,Divider},props:{filtersComponent:{type:Array,required:!0},isResearchFilter:{type:Boolean,default:!1},isDefaultFilter:{type:Boolean,default:!0},extended:{type:Boolean,default:!1},isModalDisplayed:{type:Boolean,default:!1}},data(){return{filtersSettings:{headerSettings:{},footerSettings:{}},selectedFilterSettings:{headerSettings:{},footerSettings:{}},researchSettings:{headerSettings:{},footerSettings:{}},isFilterSelected:!1,currentFilterIndex:-1,rewind:!1,keywords:[],place:null}},computed:{searchParameters(){return useJobAdsStore().searchParameters},filterParameters(){return useJobAdsStore().filterParameters},isFilterParametersEmpty(){return useJobAdsStore().isFilterParametersEmpty},isCurrentViewportEmpty(){return useJobAdsStore().isCurrentViewportEmpty},researchClasses(){return{"research-modal-container":!0,"research-modal-container--full":this.isResearchFilter&&!this.isFilterSelected&&this.isDefaultFilter,"research-modal-container--extended":this.extended}},isSearchParametersEmpty(){return isEmpty(this.keywords)&&isEmpty(this.place)},displayClearButton(){return!this.isSearchParametersEmpty||!this.isFilterParametersEmpty||useJobAdsStore().locationPlaceholder===CURRENT_LOCATION_PLACEHOLDER},headerSettings(){return this.updateDisplayStatusOfClearButton(),this.isDefaultFilter?this.isFilterSelected?this.selectedFilterSettings.headerSettings:this.filtersSettings.headerSettings:this.researchSettings.headerSettings},footerSettings(){return this.isDefaultFilter?this.isFilterSelected?this.selectedFilterSettings.footerSettings:this.filtersSettings.footerSettings:this.researchSettings.footerSettings}},created(){this.isResearchFilter&&this.initializeValues(),this.filtersSettings=getModalFiltersSettings(this),this.selectedFilterSettings=getModalSelectedFilterSettings(this),this.researchSettings=getModalResearchSettings(this)},mounted(){window.addEventListener("scroll",this.setVhProp),window.addEventListener("resize",this.setVhProp),this.$nextTick(this.setVhProp)},beforeDestroy(){window.removeEventListener("scroll",this.setVhProp),window.removeEventListener("resize",this.setVhProp)},methods:{initializeValues(){this.keywords=this.searchParameters.keywords??[],this.place=this.searchParameters.place},eraseFilters(){this.isResearchFilter&&!this.isFilterSelected&&(this.keywords=[],this.place=null,this.$emit("erase-search-parameters")),this.isDefaultFilter&&this.$emit("erase-filters")},closeModal(){const t=useModalStore();t.page!==0&&t.previous(),this.$emit("close-modal")},search(){this.updateSearchParameters({keywords:this.keywords,place:this.place});const t={locationSearch:this.place};return this.$emit("get-job-ads",t),t},setVhProp(){const t=window.innerHeight*.01;document.documentElement.style.setProperty("--vh",`${t}px`)},updateSearchParameters(t){const e=useJobAdsStore();e.locationPlaceholder!==CURRENT_LOCATION_PLACEHOLDER&&this.$commonApi.setEraseCoordinates(!0),e.searchParameters=t,e.isMapIdle=!1,t.place&&t.place.details?.geometry?.viewport&&(e.googleLocationViewport=convertGoogleViewportToEsViewport(t.place.details.geometry.viewport))},onCurrentFilterChange(t){this.currentFilterIndex=t,this.isFilterSelected=t>=0,this.setIconTitle(),this.currentFilterIndex===-1&&this.search()},setIconTitle(){this.selectedFilterSettings.headerSettings.iconTitle=this.isFilterSelected?this.filtersComponent[this.currentFilterIndex].data.iconProp:this.selectedFilterSettings.headerSettings.iconTitle},updateDisplayStatusOfClearButton(){const t=this.isDefaultFilter?this.filtersSettings.headerSettings:this.researchSettings.headerSettings;t.textActionButton=this.shouldClearButtonBeDisplayed()?this.$t("ui.clear"):""},shouldClearButtonBeDisplayed(){return useJobAdsStore().locationPlaceholder===CURRENT_LOCATION_PLACEHOLDER?!0:this.isFilterSelected?this.isTheFilterOfTheCurrentPageEmpty():this.isResearchFilter&&this.isDefaultFilter?!this.isFilterParametersEmpty||!this.isSearchParametersEmpty:this.isResearchFilter?!this.isSearchParametersEmpty:!this.isFilterParametersEmpty},isTheFilterOfTheCurrentPageEmpty(){const t=this.filtersComponent[this.currentFilterIndex].data.filterType;return this.filterParameters[t].length>0},commitAndClose(){this.rewind=!0,this.$nextTick(()=>{this.closeModal(),this.search()})},onKeywordsChange(t){this.keywords=t}
10,modalHeightShouldBeExtended(){return!this.isDefaultFilter&&isAndroid(window.navigator.userAgent)},onDropdown(){const t=this.$refs.research;t&&this.modalHeightShouldBeExtended()&&(t.setAttribute("style",""),this.$nextTick(()=>{const e=t.scrollHeight+15;t.setAttribute("style",`min-height: ${e}px;`)}))},onDropdownHidden(){const t=this.$refs.research;t&&t.setAttribute("style","")}},watch:{searchParameters:{deep:!0,immediate:!0,handler:"initializeValues"}}});var _sfc_render$C=function(){var e=this,r=e._self._c;return e._self._setupProxy,r("transition",{attrs:{appear:"",name:e.extended?"filters-modal-extended":"filters-modal"}},[r("Modal",{staticClass:"filters-modal",class:{"filters-modal--extended":e.extended,"filters-modal--extended-filter-selected":e.extended&&e.isFilterSelected},attrs:{"header-settings":e.headerSettings,rewind:e.rewind,extended:e.extended},on:{"close-modal":e.closeModal,"header-extended-event":e.closeModal,"modal-action":e.eraseFilters,"clear-all-filters":function(s){return e.$emit("clear-all-filters")}},scopedSlots:e._u([{key:"body",fn:function(){return[e.isResearchFilter&&!e.isFilterSelected?r("div",{ref:"research",class:e.researchClasses},[r("MobileKeywordsAutocomplete",{attrs:{"initial-values":e.keywords,clearable:e.displayClearButton},on:{input:e.onKeywordsChange,"clear-all-filters":function(s){return e.$emit("clear-all-filters")},"on-dropdown":e.onDropdown,"on-dropdown-hidden":e.onDropdownHidden}}),r("divider"),r("LocationAutocomplete",{on:{"on-dropdown":e.onDropdown,"on-dropdown-hidden":e.onDropdownHidden},model:{value:e.place,callback:function(s){e.place=s},expression:"place"}})],1):e._e(),e.isDefaultFilter?r("NavigationFilter",{attrs:{components:e.filtersComponent,extended:e.extended},on:{"current-filter-type":e.onCurrentFilterChange}}):e._e()]},proxy:!0},{key:"footer",fn:function(){return[r("div",{staticClass:"filters-modal__footer-wrapper"},[r("ModalFooter",e._b({attrs:{"is-extended-button-disabled":!e.displayClearButton,extended:e.extended},on:{"footer-event":e.commitAndClose,"footer-extended-event":e.eraseFilters}},"ModalFooter",e.footerSettings,!1))],1)]},proxy:!0}])})],1)},_sfc_staticRenderFns$C=[],__component__$C=normalizeComponent(_sfc_main$C,_sfc_render$C,_sfc_staticRenderFns$C);const ModalFilters=__component__$C.exports;var Position=(t=>(t.LEFT="left",t.RIGHT="right",t.CENTER="center",t))(Position||{});const _sfc_main$B=defineComponent({name:"DRDropdown",components:{Icon},props:{appendIcon:{type:Boolean,default:!1},position:{type:String,default:"center",validator(t){return Object.values(Position).includes(t)}},disabled:{type:Boolean,default:!1},openIndicatorIcon:{type:Object,required:!1,default:()=>({text:IconTypeValues.CHEVRON_DOWN,type:IconTypeValues.CHEVRON_DOWN})},extended:{type:Boolean,default:!1}},data(){return{visible:!1}},created(){this.resetEmitter(),document.addEventListener("click",this.handler)},beforeDestroy(){document.removeEventListener("click",this.handler),this.$root.$off("dr-dropdown-open",()=>this.visible=!1),this.$root.$off("dr-dropdown-hide",()=>this.visible=!1)},computed:{safeId(){return`dr-dropdown-id-${Math.random().toString(36).substr(2,5)}`},expanded(){return this.visible?"true":"false"},controlClasses(){return["dr-dropdown__control",this.visible?"dr-dropdown__control--active":"",this.disabled?"dr-dropdown__control--disabled":""]},iconClasses(){return["dr-dropdown__control-icon",this.visible?"dr-dropdown__control-icon--active":""]},bodyClasses(){return["dr-dropdown__body",`dr-dropdown__body--${this.position}`]}},methods:{handler(t){const e=t.target;!(e.closest(".dr-dropdown__control")||e.closest(".dr-dropdown__body"))&&this.visible&&this.$root.$emit("dr-dropdown-hide")},show(){this.visible=!0},hide(){this.visible=!1},resetEmitter(){this.$root.$on("dr-dropdown-open",()=>this.visible=!1),this.$root.$on("dr-dropdown-hide",()=>this.visible=!1)},toggle(t){if(this.disabled||!["click","keydown"].includes(t.type))return;if(this.visible){this.$root.$emit("dr-dropdown-hide"),this.hide();return}t.target.closest(".dr-dropdown__body")||(this.$root.$emit("dr-dropdown-open"),this.show())}}});var _sfc_render$B=function(){var e=this,r=e._self._c;return e._self._setupProxy,r("div",{staticClass:"dr-dropdown",class:{"dr-dropdown--extended":e.extended}},[r("button",{class:e.controlClasses,attrs:{id:e.safeId,"aria-expanded":e.expanded}
10,on:{click:e.toggle,keydown:function(s){return!s.type.indexOf("key")&&e._k(s.keyCode,"esc",27,s.key,["Esc","Escape"])?null:e.hide.apply(null,arguments)}}},[e._t("label"),e.appendIcon?r("Icon",e._b({class:e.iconClasses,attrs:{display_sr_only_text:!1}},"Icon",e.openIndicatorIcon,!1)):e._e()],2),r("transition",{attrs:{name:"fade"}},[r("div",{directives:[{name:"show",rawName:"v-show",value:e.visible,expression:"visible"}],class:e.bodyClasses},[r("ul",{staticClass:"dr-dropdown__body-list",attrs:{"aria-labelledby":e.safeId}},[e._t("default")],2),e._t("actions")],2)])],1)},_sfc_staticRenderFns$B=[],__component__$B=normalizeComponent(_sfc_main$B,_sfc_render$B,_sfc_staticRenderFns$B);const DRDropdown=__component__$B.exports,_sfc_main$A=defineComponent({name:"DRDropdownItem"});var _sfc_render$A=function(){var e=this,r=e._self._c;return e._self._setupProxy,r("li",{staticClass:"dr-dropdown__body-list-item"},[e._t("default")],2)},_sfc_staticRenderFns$A=[],__component__$A=normalizeComponent(_sfc_main$A,_sfc_render$A,_sfc_staticRenderFns$A);const DRDropdownItem=__component__$A.exports,_sfc_main$z=defineComponent({name:"DRDropdownDivider"});var _sfc_render$z=function(){var e=this;return e._self._c,e._self._setupProxy,e._m(0)},_sfc_staticRenderFns$z=[function(){var t=this,e=t._self._c;return t._self._setupProxy,e("li",{staticClass:"dr-dropdown__list-divider",attrs:{role:"presentation"}},[e("hr",{staticClass:"dr-dropdown__list-divider-line",attrs:{role:"separator","aria-orientation":"horizontal"}})])}],__component__$z=normalizeComponent(_sfc_main$z,_sfc_render$z,_sfc_staticRenderFns$z);const DRDropdownDivider=__component__$z.exports,_sfc_main$y=defineComponent({name:"DRDropdownActions"});var _sfc_render$y=function(){var e=this,r=e._self._c;return e._self._setupProxy,r("div",{staticClass:"dr-dropdown__actions"},[e._t("action-reset"),e._t("default"),e._t("action-apply")],2)},_sfc_staticRenderFns$y=[],__component__$y=normalizeComponent(_sfc_main$y,_sfc_render$y,_sfc_staticRenderFns$y);const DRDropdownActions=__component__$y.exports;var CustomFilterConfigurationValueTypeEnum=(t=>(t.YesNoField="YesNoField",t.McqField="McqField",t))(CustomFilterConfigurationValueTypeEnum||{}),MatchingButtonVariants=(t=>(t.DESKTOP="desktop",t.MOBILE="mobile",t))(MatchingButtonVariants||{});const _sfc_main$x=defineComponent({name:"MatchingButton",components:{IconButton},props:{type:{type:String,required:!0,validator:t=>Object.values(MatchingButtonVariants).includes(t)},className:{type:String}},computed:{iconButton(){const t=this.$t("ui.match-my-cv");return{leftIcon:{text:t,type:IconTypeValues.WAND},label:t}},resolutionClass(){const t=this.type===MatchingButtonVariants.DESKTOP?["matching-button--desktop"]:["matching-button--mobile"];return this.className&&t.push(this.className),t},domainName(){return useCareersSiteStore().domainName}},methods:{openMatchingModal(){this.$mixpanel?.track("Click_Matching_Button",{domain:this.domainName,page_type:"job_ad_list"}),useCareersSiteStore().displayMatchingModal=!0}}});var _sfc_render$x=function(){var e=this,r=e._self._c;return e._self._setupProxy,r("IconButton",e._b({staticClass:"matching-button",class:e.resolutionClass,on:{click:e.openMatchingModal}},"IconButton",e.iconButton,!1))},_sfc_staticRenderFns$x=[],__component__$x=normalizeComponent(_sfc_main$x,_sfc_render$x,_sfc_staticRenderFns$x);const MatchingButton=__component__$x.exports,_sfc_main$w=defineComponent({name:"MatchingStatusActions",components:{IconButton,DRDropdown,DRDropdownItem,DRDropdownDivider,Icon,Paragraph},computed:{editIcon(){return{type:IconTypeValues.EDIT,text:this.$t("ui.upload")}},enabledStatusIcon(){return{type:IconTypeValues.CIRCLE_FULL,text:this.$t("ui.enabled"),class:"enabled"}},disabledStatusIcon(){return{type:IconTypeValues.CIRCLE_FULL,text:this.$t("ui.disabled"),class:"disabled"}}},methods:{uploadNewCV(){this.closeDropdown(),useCareersSiteStore().displayMatchingModal=!0},closeDropdown(){this.$root.$emit("dr-dropdown-hide")},enableMatching(){useJobAdsStore().inMatchingMode=!0,this.closeDropdown(),this.$emit("status-change")},disableMatching(){useJobAdsStore().inMatchingMode=!1,this.closeDropdown(),this.$emit("status-change")}}});var _sfc_render$w=function(){var e=this,r=e._self._c;return e._self._setupProxy,r("div",{staticClass:"matching-status-actions"},[r("DRDropdownItem",{attrs:{tabindex:"0"},nativeOn:{click:function(s){return e.enableMatching.apply(null,arguments)}
10,keyup:[function(s){return!s.type.indexOf("key")&&e._k(s.keyCode,"enter",13,s.key,"Enter")?null:e.enableMatching.apply(null,arguments)},function(s){return!s.type.indexOf("key")&&e._k(s.keyCode,"esc",27,s.key,["Esc","Escape"])?null:e.closeDropdown.apply(null,arguments)}]}},[r("Icon",e._b({},"Icon",e.enabledStatusIcon,!1)),r("div",{staticClass:"matching-status-button__label"},[r("Paragraph",[e._v(e._s(e.$t("ui.matching.enable.title")))]),r("Paragraph",[e._v(e._s(e.$t("ui.matching.enable.details")))])],1)],1),r("DRDropdownDivider"),r("DRDropdownItem",{attrs:{tabindex:"0"},nativeOn:{click:function(s){return e.disableMatching.apply(null,arguments)},keyup:[function(s){return!s.type.indexOf("key")&&e._k(s.keyCode,"enter",13,s.key,"Enter")?null:e.disableMatching.apply(null,arguments)},function(s){return!s.type.indexOf("key")&&e._k(s.keyCode,"esc",27,s.key,["Esc","Escape"])?null:e.closeDropdown.apply(null,arguments)}]}},[r("Icon",e._b({},"Icon",e.disabledStatusIcon,!1)),r("div",{staticClass:"matching-status-button__label"},[r("Paragraph",[e._v(e._s(e.$t("ui.matching.disable.title")))]),r("Paragraph",[e._v(e._s(e.$t("ui.matching.disable.details")))])],1)],1),r("DRDropdownDivider"),r("DRDropdownItem",{attrs:{tabindex:"0"},nativeOn:{click:function(s){return e.uploadNewCV.apply(null,arguments)},keyup:[function(s){return!s.type.indexOf("key")&&e._k(s.keyCode,"enter",13,s.key,"Enter")?null:e.uploadNewCV.apply(null,arguments)},function(s){return!s.type.indexOf("key")&&e._k(s.keyCode,"esc",27,s.key,["Esc","Escape"])?null:e.closeDropdown.apply(null,arguments)}]}},[r("Icon",e._b({},"Icon",e.editIcon,!1)),r("Paragraph",[e._v(e._s(e.$t("ui.matching.update-cv")))])],1)],1)},_sfc_staticRenderFns$w=[],__component__$w=normalizeComponent(_sfc_main$w,_sfc_render$w,_sfc_staticRenderFns$w);const MatchingStatusActions=__component__$w.exports;function delay(t){return new Promise(e=>setTimeout(e,t))}function flushQueue(){return new Promise(t=>setTimeout(t,0))}const _sfc_main$v=defineComponent({name:"MatchingStatusModal",components:{Modal,MatchingStatusActions},methods:{getModal(){return this.$refs.modal},async fixAccessibility(){await flushQueue(),this.getModal().setFocusableEls()}},mounted(){this.$root.$on("dr-dropdown-open",this.fixAccessibility)},beforeDestroy(){this.$root.$off("dr-dropdown-open",this.fixAccessibility)}});var _sfc_render$v=function(){var e=this,r=e._self._c;return e._self._setupProxy,r("div",{staticClass:"overlay matching-status-modal",on:{click:function(s){return s.target!==s.currentTarget?null:e.$emit("close-modal")}}},[r("Modal",{ref:"modal",attrs:{"display-footer":!1,"display-header":!1},scopedSlots:e._u([{key:"body",fn:function(){return[r("MatchingStatusActions")]},proxy:!0}])})],1)},_sfc_staticRenderFns$v=[],__component__$v=normalizeComponent(_sfc_main$v,_sfc_render$v,_sfc_staticRenderFns$v);const MatchingStatusModal=__component__$v.exports,_sfc_main$u=defineComponent({name:"MatchingStatusButton",components:{MatchingStatusModal,MatchingStatusActions,IconButton,DRDropdown,DRDropdownItem,DRDropdownDivider,Icon,Paragraph,Modal},props:{modal:{type:Boolean,default:!1}},methods:{closeDropdown(){this.$root.$emit("dr-dropdown-hide")},setBackgroundScroll(t){this.modal&&(document.documentElement.style.overflowY=t)}},computed:{inMatchingMode(){return useJobAdsStore().inMatchingMode},position(){return this.modal?"left":"center"},enabledStatusIcon(){return{type:IconTypeValues.CIRCLE_FULL,text:this.$t("ui.enabled"),class:"enabled"}},disabledStatusIcon(){return{type:IconTypeValues.CIRCLE_FULL,text:this.$t("ui.disabled"),class:"disabled"}},mainIcon(){return this.inMatchingMode?this.enabledStatusIcon:this.disabledStatusIcon}},mounted(){this.$root.$on("dr-dropdown-open",()=>this.setBackgroundScroll("hidden")),this.$root.$on("dr-dropdown-hide",()=>this.setBackgroundScroll("scroll"))},beforeDestroy(){this.$root.$off("dr-dropdown-open",()=>this.setBackgroundScroll("hidden")),this.$root.$off("dr-dropdown-hide",()=>this.setBackgroundScroll("scroll"))}});var _sfc_render$u=function(){var e=this,r=e._self._c;return e._self._setupProxy,r("DRDropdown",{staticClass:"matching-status-button",attrs:{"a
10ppend-icon":"",position:e.position},scopedSlots:e._u([{key:"label",fn:function(){return[r("Icon",e._b({staticClass:"matching-status-button__status-icon"},"Icon",e.mainIcon,!1)),r("span",[e._v(e._s(e.$t("ui.matching.title")))])]},proxy:!0}])},[e.modal?r("MatchingStatusModal",{ref:"modal",on:{"close-modal":e.closeDropdown}}):r("MatchingStatusActions")],1)},_sfc_staticRenderFns$u=[],__component__$u=normalizeComponent(_sfc_main$u,_sfc_render$u,_sfc_staticRenderFns$u);const MatchingStatusButton=__component__$u.exports,_sfc_main$t=defineComponent({name:"JobAdFiltersGroup",mixins:[RemoteWorkingMixin],components:{Button,IconButton,DRDropdown,DRDropdownItem,DRDropdownActions,DRDropdownDivider,ButtonCheckbox,MatchingButton,MatchingStatusButton},props:{clearable:{type:Boolean,default:!1},extended:{type:Boolean,default:!1}},data(){return{appliedJobs:[],appliedContractTypes:[],appliedCustomFieldYesNo:[],appliedCustomFieldMcqChoice:[],appliedWorkingTimes:[],appliedRemoteWorkTypes:[],filtersValues:FiltersValue}},methods:{reset(){this.$commonApi.setEraseCoordinates(!0),this.$mixpanel?.track("Click_Filter_reset",{domain:this.domainName,page_type:"job_ad_list"}),this.$emit("clear")},applySelected(t,e,r=!0){this.$mixpanel?.track("Click_Filter",{domain:this.domainName,filter_name:t.includes("customField")?"customFilter":t,page_type:"job_ad_list"}),r&&this.$root.$emit("dr-dropdown-hide"),useJobAdsStore().locationPlaceholder!==CURRENT_LOCATION_PLACEHOLDER&&this.$commonApi.setEraseCoordinates(!0);for(let s=0;s<e.length;s++)if(typeof e[s]=="string"&&e[s].includes(",")){const n=e[s].split(",");e.splice(s,1,...n),s+=n.length-1}useJobAdsStore().updateFilters({type:t,values:e}),this.$emit("search")},resetSelected(t){this.applySelected(t,[],!1)},checkChanges(t){this.appliedJobs=t[FiltersValue.JobFilter],this.appliedContractTypes=t[FiltersValue.ContractFilter],this.appliedWorkingTimes=t[FiltersValue.WorkingTimeFilter],this.appliedRemoteWorkTypes=t[FiltersValue.RemoteWorkFilter]||[],this.appliedCustomFieldYesNo=t[FiltersValue.CustomFieldYesNo],this.appliedCustomFieldMcqChoice=t[FiltersValue.CustomFieldMcqChoice]}},computed:{filterParameters(){return useJobAdsStore().filterParameters},count(){return useJobAdsStore().count},jobAdFilters(){return useJobAdsStore().jobAdFilters},matchingJobAdsIds(){return useJobAdsStore().matchingJobAdsIds},isMatchingActive(){return useCareersSiteStore().isMatchingActive},customFilter(){return useCareersSiteStore().customFilter},domainName(){return useCareersSiteStore().domainName},clearButtonProps(){return{leftIcon:{text:this.$t("ui.reset"),type:IconTypeValues.RESET},label:this.$t("ui.reset")}},displayRemoteWorkFilter(){return this.hasRemoteWorkFilter()},displayCustomFieldMcqChoiceFilter(){return this.customFilter?.value_type===CustomFilterConfigurationValueTypeEnum.McqField},displayCustomFieldYesNoFilter(){return this.customFilter?.value_type===CustomFilterConfigurationValueTypeEnum.YesNoField},displayJobsClearButton(){return!isEmpty(this.appliedJobs)},displayContractsClearButton(){return!isEmpty(this.appliedContractTypes)},displayWorkingTimesClearButton(){return!isEmpty(this.appliedWorkingTimes)},displayRemoteWorkClearButton(){return!isEmpty(this.appliedRemoteWorkTypes)},displayCustomFieldYesNoClearButton(){return!isEmpty(this.appliedCustomFieldYesNo)},displayCustomFieldMcqChoiceClearButton(){return!isEmpty(this.appliedCustomFieldMcqChoice)},matchingButtonType(){return MatchingButtonVariants.DESKTOP},displayMatchingStatusButton(){return this.isMatchingActive&&!isEmpty(this.matchingJobAdsIds)},displayMatchingButton(){return this.isMatchingActive&&!!this.count&&this.count>=MATCHING_BUTTON_MIN_JOB_ADS_NUMBER},jobsCount(){const t=this.jobAdFilters?.jobs;return!t||this.appliedJobs.length===0?0:t.reduce((e,r)=>String(r.merged_ids||"").split(",").some(a=>this.appliedJobs.includes(a)||this.appliedJobs.includes(Number(a)))?e+1:e,0)}},watch:{filterParameters:{handler:"checkChanges",deep:!0,immediate:!0}}});var _sfc_render$t=function(){var e=this,r=e._self._c;return e._self._setupProxy,r("div",{staticClass:"dr-dropdown-group",class:{"dr-dropdown-group--extended":e.extended}},[e.displayMatchingStatusButton?r("MatchingStatusButton",{on:{"status-change":function(s){return e.$emit("search")}}}):e.displayMatchingButton?r("MatchingButton",{attrs:{type:e.matchingButtonType}}
10):e._e(),e.displayCustomFieldYesNoFilter?r("DRDropdown",{attrs:{extended:e.extended,"append-icon":"",disabled:e.jobAdFilters.customFieldYesNo.length<=0},scopedSlots:e._u([{key:"label",fn:function(){return[e._v(" "+e._s(e.customFilter.name)+" "),e.appliedCustomFieldYesNo.length?r("span",{staticClass:"dr-dropdown__count-label"},[e._v(" "+e._s(e.appliedCustomFieldYesNo.length)+" ")]):e._e()]},proxy:!0},{key:"actions",fn:function(){return[r("DRDropdownActions",{scopedSlots:e._u([e.displayCustomFieldYesNoClearButton?{key:"action-reset",fn:function(){return[r("Button",{attrs:{variant:"link"},on:{click:function(s){return e.resetSelected(e.filtersValues.CustomFieldYesNo)}}},[e._v(" "+e._s(e.$t("ui.clear"))+" ")])]},proxy:!0}:null,{key:"action-apply",fn:function(){return[r("Button",{staticClass:"apply-button",on:{click:function(s){return e.applySelected(e.filtersValues.CustomFieldYesNo,e.appliedCustomFieldYesNo)}}},[e._v(" "+e._s(e.$t("ui.apply"))+" ")])]},proxy:!0}],null,!0)})]},proxy:!0}],null,!1,3717036784)},e._l(e.jobAdFilters.customFieldYesNo,function(s){return r("DRDropdownItem",{key:s.id},[r("ButtonCheckbox",{attrs:{value:s.id.toString(),extended:e.extended},model:{value:e.appliedCustomFieldYesNo,callback:function(n){e.appliedCustomFieldYesNo=n},expression:"appliedCustomFieldYesNo"}},[e._v(" "+e._s(s.name)+" "),r("span",{staticClass:"dr-dropdown__quantity"},[e._v("("+e._s(s.count)+")")])])],1)}),1):e._e(),e.displayCustomFieldMcqChoiceFilter?r("DRDropdown",{attrs:{extended:e.extended,"append-icon":"",disabled:e.jobAdFilters.customFieldMcqChoice<=0},scopedSlots:e._u([{key:"label",fn:function(){return[e._v(" "+e._s(e.customFilter.name)+" "),e.appliedCustomFieldMcqChoice.length?r("span",{staticClass:"dr-dropdown__count-label"},[e._v(" "+e._s(e.appliedCustomFieldMcqChoice.length)+" ")]):e._e()]},proxy:!0},{key:"actions",fn:function(){return[r("DRDropdownActions",{scopedSlots:e._u([e.displayCustomFieldMcqChoiceClearButton?{key:"action-reset",fn:function(){return[r("Button",{attrs:{variant:"link"},on:{click:function(s){return e.resetSelected(e.filtersValues.CustomFieldMcqChoice)}}},[e._v(" "+e._s(e.$t("ui.clear"))+" ")])]},proxy:!0}:null,{key:"action-apply",fn:function(){return[r("Button",{staticClass:"apply-button",on:{click:function(s){return e.applySelected(e.filtersValues.CustomFieldMcqChoice,e.appliedCustomFieldMcqChoice)}}},[e._v(" "+e._s(e.$t("ui.apply"))+" ")])]},proxy:!0}],null,!0)})]},proxy:!0}],null,!1,1503306928)},e._l(e.jobAdFilters.customFieldMcqChoice,function(s){return r("DRDropdownItem",{key:s.id},[r("ButtonCheckbox",{attrs:{value:s.id.toString(),extended:e.extended},model:{value:e.appliedCustomFieldMcqChoice,callback:function(n){e.appliedCustomFieldMcqChoice=n},expression:"appliedCustomFieldMcqChoice"}},[e._v(" "+e._s(s.name)+" "),r("span",{staticClass:"dr-dropdown__quantity"},[e._v("("+e._s(s.count)+")")])])],1)}),1):e._e(),r("DRDropdown",{attrs:{extended:e.extended,"append-icon":"",disabled:e.jobAdFilters.jobs.length<=0},scopedSlots:e._u([{key:"label",fn:function(){return[e._v(" "+e._s(e.$t("ui.functions"))+" "),e.jobsCount>0?r("span",{staticClass:"dr-dropdown__count-label"},[e._v(" "+e._s(e.jobsCount)+" ")]):e._e()]},proxy:!0},{key:"actions",fn:function(){return[r("DRDropdownActions",{scopedSlots:e._u([e.displayJobsClearButton?{key:"action-reset",fn:function(){return[r("Button",{attrs:{variant:"link"},on:{click:function(s){return e.resetSelected(e.filtersValues.JobFilter)}}},[e._v(" "+e._s(e.$t("ui.clear"))+" ")])]},proxy:!0}:null,{key:"action-apply",fn:function(){return[r("Button",{staticClass:"apply-button",on:{click:function(s){return e.applySelected(e.filtersValues.JobFilter,e.appliedJobs)}}},[e._v(" "+e._s(e.$t("ui.apply"))+" ")])]},proxy:!0}],null,!0)})]},proxy:!0}])},e._l(e.jobAdFilters.jobs,function(s){return r("DRDropdownItem",{key:s.id},[r("ButtonCheckbox",{attrs:{extended:e.extended,value:s.merged_ids||s.id.toString()},model:{value:e.appliedJobs,callback:function(n){e.appliedJobs=n},expression:"appliedJobs"}},[e._v(" "+e._s(s.name)+" "),r("span",{staticClass:"dr-dropdown__quantity"},[e._v("("+e._s(s.count)+")")])])],1)}),1),r("DRDropdown",{attrs:{extended:e.extended,"append-icon":"",disabled:e.j
10obAdFilters.jobs.length<=0},scopedSlots:e._u([{key:"label",fn:function(){return[e._v(" "+e._s(e.$t("ui.contracts"))+" "),e.appliedContractTypes.length?r("span",{staticClass:"dr-dropdown__count-label"},[e._v(" "+e._s(e.appliedContractTypes.length)+" ")]):e._e()]},proxy:!0},{key:"actions",fn:function(){return[r("DRDropdownActions",{scopedSlots:e._u([e.displayContractsClearButton?{key:"action-reset",fn:function(){return[r("Button",{attrs:{variant:"link"},on:{click:function(s){return e.resetSelected(e.filtersValues.ContractFilter)}}},[e._v(" "+e._s(e.$t("ui.clear"))+" ")])]},proxy:!0}:null,{key:"action-apply",fn:function(){return[r("Button",{staticClass:"apply-button",on:{click:function(s){return e.applySelected(e.filtersValues.ContractFilter,e.appliedContractTypes)}}},[e._v(" "+e._s(e.$t("ui.apply"))+" ")])]},proxy:!0}],null,!0)})]},proxy:!0}])},e._l(e.jobAdFilters.contractTypes,function(s){return r("DRDropdownItem",{key:s.id},[r("ButtonCheckbox",{attrs:{extended:e.extended,value:s.id.toString()},model:{value:e.appliedContractTypes,callback:function(n){e.appliedContractTypes=n},expression:"appliedContractTypes"}},[e._v(" "+e._s(s.name)+" "),r("span",{staticClass:"dr-dropdown__quantity"},[e._v("("+e._s(s.count)+")")])])],1)}),1),r("DRDropdown",{attrs:{extended:e.extended,"append-icon":"",disabled:e.jobAdFilters.jobs.length<=0},scopedSlots:e._u([{key:"label",fn:function(){return[e._v(" "+e._s(e.$t("ui.working-time"))+" "),e.appliedWorkingTimes.length?r("span",{staticClass:"dr-dropdown__count-label"},[e._v(" "+e._s(e.appliedWorkingTimes.length)+" ")]):e._e()]},proxy:!0},{key:"actions",fn:function(){return[r("DRDropdownActions",{scopedSlots:e._u([e.displayWorkingTimesClearButton?{key:"action-reset",fn:function(){return[r("Button",{attrs:{variant:"link"},on:{click:function(s){return e.resetSelected(e.filtersValues.WorkingTimeFilter)}}},[e._v(" "+e._s(e.$t("ui.clear"))+" ")])]},proxy:!0}:null,{key:"action-apply",fn:function(){return[r("Button",{staticClass:"apply-button",on:{click:function(s){return e.applySelected(e.filtersValues.WorkingTimeFilter,e.appliedWorkingTimes)}}},[e._v(" "+e._s(e.$t("ui.apply"))+" ")])]},proxy:!0}],null,!0)})]},proxy:!0}])},e._l(e.jobAdFilters.workingTimes,function(s){return r("DRDropdownItem",{key:s.id},[r("ButtonCheckbox",{attrs:{extended:e.extended,value:s.id.toString()},model:{value:e.appliedWorkingTimes,callback:function(n){e.appliedWorkingTimes=n},expression:"appliedWorkingTimes"}},[e._v(" "+e._s(s.name)+" "),r("span",{staticClass:"dr-dropdown__quantity"},[e._v("("+e._s(s.count)+")")])])],1)}),1),e.displayRemoteWorkFilter?r("DRDropdown",{attrs:{extended:e.extended,"append-icon":"",disabled:e.jobAdFilters.jobs.length<=0},scopedSlots:e._u([{key:"label",fn:function(){return[e._v(" "+e._s(e.$t("ui.remote-work"))+" "),e.appliedRemoteWorkTypes.length?r("span",{staticClass:"dr-dropdown__count-label"},[e._v(" "+e._s(e.appliedRemoteWorkTypes.length)+" ")]):e._e()]},proxy:!0},{key:"actions",fn:function(){return[r("DRDropdownActions",{scopedSlots:e._u([e.displayRemoteWorkClearButton?{key:"action-reset",fn:function(){return[r("Button",{attrs:{variant:"link"},on:{click:function(s){return e.resetSelected(e.filtersValues.RemoteWorkFilter)}}},[e._v(" "+e._s(e.$t("ui.clear"))+" ")])]},proxy:!0}:null,{key:"action-apply",fn:function(){return[r("Button",{staticClass:"apply-button",on:{click:function(s){return e.applySelected(e.filtersValues.RemoteWorkFilter,e.appliedRemoteWorkTypes)}}},[e._v(" "+e._s(e.$t("ui.apply"))+" ")])]},proxy:!0}],null,!0)})]},proxy:!0}],null,!1,3662651466)},e._l(e.jobAdFilters.remoteWorkTypes,function(s){return r("DRDropdownItem",{key:s.id},[r("ButtonCheckbox",{attrs:{extended:e.extended,value:s.id.toString()},model:{value:e.appliedRemoteWorkTypes,callback:function(n){e.appliedRemoteWorkTypes=n},expression:"appliedRemoteWorkTypes"}},[e._v(" "+e._s(s.name)+" "),r("span",{staticClass:"dr-dropdown__quantity"},[e._v("("+e._s(s.count)+")")])])],1)}),1):e._e(),e.clearable?r("IconButton",e._b({staticClass:"dr-dropdown-group__action--clear",attrs:{variant:"link"},on:{click:function(s){return e.reset()}}}
10,"IconButton",e.clearButtonProps,!1)):e._e()],1)},_sfc_staticRenderFns$t=[],__component__$t=normalizeComponent(_sfc_main$t,_sfc_render$t,_sfc_staticRenderFns$t);const JobAdFiltersGroup=__component__$t.exports,_sfc_main$s=defineComponent({name:"DesktopFilters",components:{ResearchFields,JobAdFiltersGroup},props:{extended:{type:Boolean,default:!1}},computed:{isSearchParametersEmpty(){return useJobAdsStore().isSearchParametersEmpty},isFilterParametersEmpty(){return useJobAdsStore().isFilterParametersEmpty},isCurrentViewportEmpty(){return useJobAdsStore().isCurrentViewportEmpty},isCurrentLocationSelected(){return useJobAdsStore().locationPlaceholder===CURRENT_LOCATION_PLACEHOLDER},displayClearButton(){return!this.isSearchParametersEmpty||!this.isFilterParametersEmpty||!this.isCurrentViewportEmpty||this.isCurrentLocationSelected}},methods:{search(t){return this.$emit("search",t),t}}});var _sfc_render$s=function(){var e=this,r=e._self._c;return e._self._setupProxy,r("div",{staticClass:"desktop-filters",class:{"desktop-filters--extended":e.extended}},[r("ResearchFields",{on:{search:e.search}}),r("client-only",[r("JobAdFiltersGroup",{attrs:{clearable:e.displayClearButton,extended:e.extended},on:{search:e.search,clear:function(s){return e.$emit("clear")}}})],1)],1)},_sfc_staticRenderFns$s=[],__component__$s=normalizeComponent(_sfc_main$s,_sfc_render$s,_sfc_staticRenderFns$s);const DesktopFilters=__component__$s.exports,_sfc_main$r=defineComponent({name:"CheckboxFilter",mixins:[CommonConfigurationMixin],components:{Picture},props:{filterType:{type:String,required:!0,validator(t){return Object.values(FiltersValue).includes(t)}},extended:{type:Boolean,default:!1}},data(){return{items:[],values:[]}},computed:{filters(){return useJobAdsStore().filters},filterParameters(){return useJobAdsStore().filterParameters},brands(){return useCareersSiteStore().brands},listIds(){return this.items.map(t=>t.id)},isFilterBrand(){return this.filterType===FiltersValue.BrandFilter},isFilterCustomYesNo(){return this.filterType===FiltersValue.CustomFieldYesNo}},methods:{initFilters(){this.filters[this.filterType]&&(this.isFilterBrand?this.initBrandFilters():this.isFilterCustomYesNo?this.initCustomYesNoFilters():this.items=this.filters[this.filterType],this.filterParameters[this.filterType].length>0&&(this.values=this.filterParameters[this.filterType]))},initBrandFilters(){this.items=this.brands.map(t=>({id:t.id||0,count:this.filters[this.filterType].find(e=>t.id===e.id)?.count||0,name:t.name||""}))},initCustomYesNoFilters(){this.filters[this.filterType].forEach(t=>{t.name=t.id===1?this.$t("career.global.yes"):this.$t("career.global.no")}),this.items=this.filters[this.filterType]},onModelChange(){this.updateFilters()},updateFilters(){const t=[];this.items.forEach(e=>{if(this.values.includes(e.id)||this.values.includes(e.id.toString()))if(e.merged_ids){const s=String(e.merged_ids).split(",");t.push(...s)}else t.push(e.id)}),useJobAdsStore().updateFilters({type:this.filterType,values:t})},isItemSelected(t){return this.values.includes(t.id)||this.values.includes(t.id.toString())}},watch:{filters:{deep:!0,handler(){this.initFilters()}},filterParameters:{deep:!0,handler(){this.values=[],this.initFilters()}}},created(){this.initFilters()}});var _sfc_render$r=function(){var e=this,r=e._self._c;return e._self._setupProxy,r("div",e._l(e.items,function(s){return r("label",{key:s.id,staticClass:"filter-menu__label",class:{"filter-menu__label--selected":e.isItemSelected(s)}},[r("input",{directives:[{name:"model",rawName:"v-model",value:e.values,expression:"values"}],staticClass:"filter-menu__input",class:{"sr-only":e.extended},attrs:{name:s.name,type:"checkbox"},domProps:{value:s.id,checked:Array.isArray(e.values)?e._i(e.values,s.id)>-1:e.values},on:{change:[function(n){var a=e.values,o=n.target,h=!!o.checked;if(Array.isArray(a)){var l=s.id,c=e._i(a,l);o.checked?c<0&&(e.values=a.concat([l])):c>-1&&(e.values=a.slice(0,c).concat(a.slice(c+1)))}else e.values=h},e.onModelChange]}}),e.extended&&!e.isFilterBrand?r("span",{staticClass:"filter-menu__extended-input",class:{"filter-menu__extended-input--selected":e.isItemSelected(s)}}
10):e._e(),r("span",{staticClass:"filter-menu__picture",class:{"filter-menu__picture--selected":e.isItemSelected(s)}},[e.isFilterBrand?r("Picture",e._b({},"Picture",e.getMarkLogo(s.id),!1)):e._e(),r("span",{staticClass:"filter-menu__name",class:{"filter-menu__name--selected":e.isItemSelected(s)}},[e._v(e._s(s.name)),r("span",{staticClass:"filter-menu__counter",class:{"filter-menu__counter--selected":e.isItemSelected(s)}},[e._v("("+e._s(s.count)+")")])])],1)])}),0)},_sfc_staticRenderFns$r=[],__component__$r=normalizeComponent(_sfc_main$r,_sfc_render$r,_sfc_staticRenderFns$r);const CheckboxFilter=__component__$r.exports,CheckboxFilter$1=Object.freeze(Object.defineProperty({__proto__:null,default:CheckboxFilter},Symbol.toStringTag,{value:"Module"})),_sfc_main$q=defineComponent({name:"MobileFilters",components:{ResearchFields,ModalFilters,IconButton,CheckboxFilter},props:{displayFiltersModal:{type:Boolean,default:!1},displayResearchModal:{type:Boolean,default:!1},extended:{type:Boolean,default:!1}},computed:{customFilter(){return useCareersSiteStore().customFilter},canDisplayBrandsFilter(){return useCareersSiteStore().canDisplayBrandsFilter},filtersComponent(){return this.canDisplayBrandsFilter?this.translatedFiltersComponent:this.translatedFiltersComponent.filter(t=>t.data.filterType!==FiltersValue.BrandFilter)},displayModal(){return this.displayFiltersModal||this.displayResearchModal}},methods:{initCustomFilter(){if(!this.customFilter)return;let t;switch(this.customFilter.value_type){case CustomFilterConfigurationValueTypeEnum.YesNoField:t=FiltersValue.CustomFieldYesNo;break;case CustomFilterConfigurationValueTypeEnum.McqField:t=FiltersValue.CustomFieldMcqChoice;break;default:this.$logger.error(`Filter ${this.customFilter.value_type} is not supported`,{});return}this.translatedFiltersComponent.unshift({data:{iconProp:{text:this.customFilter.name,type:IconTypeValues.FILTER},title:this.customFilter.name,component:async()=>await CheckboxFilter,panelTitle:this.customFilter.name,filterType:t}})},getJobAds(t){return this.$emit("search",t),this.$commonApi.setEraseCoordinates(!1),t},eraseFilters(){useJobAdsStore().eraseFilters(),this.$emit("clear")},eraseSearchParameters(){this.$commonApi.setEraseCoordinates(!0);const t=useJobAdsStore();t.resetCurrentViewport(),t.eraseSearchParameters(),this.$emit("clear")},closeFiltersModal(){this.$emit("closeModal")}},data(){return{translatedFiltersComponent:[]}},created(){this.translatedFiltersComponent=getFiltersComponent(this),this.initCustomFilter()}});var _sfc_render$q=function(){var e=this,r=e._self._c;return e._self._setupProxy,r("div",{staticClass:"overlay",class:{"overlay--extended":e.extended,"overlay--hidden":!e.displayModal,"overlay--displayed":e.displayModal},on:{click:function(s){return s.target!==s.currentTarget?null:e.closeFiltersModal.apply(null,arguments)}}},[e.displayModal?r("ModalFilters",{attrs:{"filters-component":e.filtersComponent,"is-research-filter":e.displayResearchModal,"is-default-filter":e.displayFiltersModal,extended:e.extended,"is-modal-displayed":e.displayModal},on:{"get-job-ads":e.getJobAds,"close-modal":e.closeFiltersModal,"erase-filters":e.eraseFilters,"erase-search-parameters":e.eraseSearchParameters,"clear-all-filters":function(s){return e.$emit("clearAllFilters")}}}):e._e()],1)},_sfc_staticRenderFns$q=[],__component__$q=normalizeComponent(_sfc_main$q,_sfc_render$q,_sfc_staticRenderFns$q);
10const MobileFilters=__component__$q.exports,MAXIMUM_DISPLAY=-5,ELEMENT_COUNTING_FROM_END=-1,_sfc_main$p=defineComponent({name:"Pagination",components:{Button,Link,IconButton},props:{pageCount:{type:Number,required:!0},pageToStart:{type:Number},infoText:{type:String,required:!0},extended:{type:Boolean,default:!1},previousLabel:{type:String},nextLabel:{type:String}},data(){return{selectedPage:1,pageOffset:3,pagesAsArray:[],activePages:[],showAllItems:!1}},created(){this.activePages.includes(this.selectedPage)||(this.selectedPage+this.pageOffset>=this.pageCount?(this.showAllItems=!0,this.activePages=[...this.pagesAsArray.slice(MAXIMUM_DISPLAY,ELEMENT_COUNTING_FROM_END)]):this.activePages=this.pagesAsArray.slice(0,this.selectedPage)),this.selectPage(this.selectedPage)},updated(){this.showAllItems&&!this.lastSelected&&this.activePages.length>0&&!this.lastChunk&&this.pageCount-this.activePages[this.activePages.length-1]>1&&(this.showAllItems=!1)},computed:{firstSelected(){return this.selectedPage<=1},lastSelected(){return this.selectedPage===this.pageCount},lastChunk(){return this.activePages[this.activePages.indexOf(this.selectedPage+1)]===this.pageCount-2},paginationControlsClassFirstSelected(){return{pagination__controls:!0,"pagination__controls--hidden":this.firstSelected}},paginationControlsClassLastSelected(){return{pagination__controls:!0,"pagination__controls--hidden":this.lastSelected}}},methods:{setPaginationLinkClass(t){return{pagination__link:!0,"pagination__link--active":this.selectedPage===t}},setHref(t){if(this.$route!==void 0&&this.$route.query){const e={...this.$route.query};return"?"+new URLSearchParams(Object.assign(e,{page:t})).toString()}return""},startPage(){this.pageToStart&&(this.selectedPage=this.pageToStart)},convertPages(){this.pagesAsArray=Array.from({length:this.pageCount},(t,e)=>e+1)},setActivePages(){this.pageCount<this.pageOffset*2?(this.activePages=this.pagesAsArray.slice(0,this.pageCount-1),this.showAllItems=!0):this.activePages=this.pagesAsArray.slice(0,this.pageOffset)},isLast(){return this.activePages.indexOf(this.selectedPage)===this.activePages.length-1},isFirst(){return this.activePages.indexOf(this.selectedPage)===0&&this.activePages[0]!==1},shift(){const t=this.selectedPage-2,e=this.selectedPage+1;this.activePages=this.pagesAsArray.slice(t,e)},selectPage(t){this.selectedPage=t,this.selectedPage===this.pageCount?(this.showAllItems=!0,this.activePages=[...this.pagesAsArray.slice(MAXIMUM_DISPLAY,ELEMENT_COUNTING_FROM_END)]):(this.isLast()&&!this.showAllItems?this.shift():this.isFirst()&&(this.shift(),this.showAllItems&&!this.lastChunk&&(this.showAllItems=!1)),!this.showAllItems&&this.lastChunk&&(this.showAllItems=!0,this.activePages=[...this.activePages,...this.pagesAsArray.slice(-2,this.pagesAsArray.length-1)])),this.$emit("onPageChanged",t)},next(){return++this.selectedPage,this.isLast()&&!this.showAllItems&&this.shift(),!this.showAllItems&&this.lastChunk&&(this.showAllItems=!0,this.activePages=[...this.activePages,...this.pagesAsArray.slice(-2,this.pagesAsArray.length-1)]),this.updateQueryParams(),this.$emit("onPageChanged",this.selectedPage),this.selectedPage},rewind(){return--this.selectedPage,this.isFirst()&&(this.shift(),this.showAllItems&&!this.lastChunk&&(this.showAllItems=!1)),this.updateQueryParams(),this.$emit("onPageChanged",this.selectedPage),this.selectedPage},updateQueryParams(){this.$router!==void 0&&this.$router.push({query:{page:this.selectedPage}})}},watch:{pageCount:{immediate:!0,handler(){this.startPage(),this.convertPages(),this.setActivePages()}}}});var _sfc_render$p=function(){var e=this,r=e._self._c;return e._self._setupProxy,r("nav",{staticClass:"pagination",class:{"pagination--extended":e.extended}},[r("div",{staticClass:"pagination__wrapper"},[e.extended?r("Button",{class:e.paginationControlsClassFirstSelected,attrs:{tabindex:e.firstSelected?-1:0},on:{keyup:function(s){return!s.type.indexOf("key")&&e._k(s.keyCode,"enter",13,s.key,"Enter")?null:e.rewind.apply(null,arguments)}},nativeOn:{click:function(s){return s.preventDefault(),e.rewind.apply(null,arguments)}}},[e._v(" "+e._s(e.previousLabel)+" ")]):r("IconButton",{class:e.paginationControlsClassFirstSelected,attrs:{"aria-label":"previous page","right-icon":{text:"previous page",type:"chevron_left"},tabindex:e.firstSelected?-1:0}
10,on:{keyup:function(s){return!s.type.indexOf("key")&&e._k(s.keyCode,"enter",13,s.key,"Enter")?null:e.rewind.apply(null,arguments)}},nativeOn:{click:function(s){return s.preventDefault(),e.rewind.apply(null,arguments)}}}),r("ol",{staticClass:"pagination__pages"},[e._l(e.activePages,function(s){return r("li",{key:s,staticClass:"pagination__page"},[r("Link",{class:e.setPaginationLinkClass(s),attrs:{href:e.setHref(s),"aria-label":`page ${s}`,text:`${s}`},nativeOn:{click:function(n){return n.preventDefault(),e.selectPage(s)}}},[r("span",[e._v(e._s(s))])])],1)}),e.showAllItems?e._e():r("li",{staticClass:"pagination__page"},[e._m(0)]),r("li",{staticClass:"pagination__page"},[r("Link",{class:e.setPaginationLinkClass(e.pageCount),attrs:{href:e.setHref(e.pageCount),"aria-label":`page ${e.pageCount}`,tabindex:"0",text:e.pageCount},nativeOn:{click:function(s){return s.preventDefault(),e.selectPage(e.pageCount)}}},[r("span",[e._v(e._s(e.pageCount))])])],1)],2),e.extended?r("Button",{class:e.paginationControlsClassLastSelected,attrs:{tabindex:e.lastSelected?-1:0},on:{keyup:function(s){return!s.type.indexOf("key")&&e._k(s.keyCode,"enter",13,s.key,"Enter")?null:e.next.apply(null,arguments)}},nativeOn:{click:function(s){return s.preventDefault(),e.next.apply(null,arguments)}}},[e._v(" "+e._s(e.nextLabel)+" ")]):r("IconButton",{class:e.paginationControlsClassLastSelected,attrs:{"right-icon":{text:"next page",type:"chevron_right"},tabindex:e.lastSelected?-1:0},on:{keyup:function(s){return!s.type.indexOf("key")&&e._k(s.keyCode,"enter",13,s.key,"Enter")?null:e.next.apply(null,arguments)}},nativeOn:{click:function(s){return s.preventDefault(),e.next.apply(null,arguments)}}})],1),r("span",{staticClass:"pagination__info-text"},[e._v(e._s(e.infoText))])])},_sfc_staticRenderFns$p=[function(){var t=this,e=t._self._c;return t._self._setupProxy,e("span",{staticClass:"pagination__delimiter"},[e("span",[t._v("...")])])}],__component__$p=normalizeComponent(_sfc_main$p,_sfc_render$p,_sfc_staticRenderFns$p);const Pagination=__component__$p.exports,JobAdsPreviewSliderSettings={slidesToShow:1,slidesToScroll:1,easing:"swing",speed:700,dots:!1,arrows:!1,centerMode:!1,infinite:!1},_sfc_main$o=defineComponent({name:"JobAdsPreviewPagination",components:{Icon,IconButton},mixins:[BreakpointsMixin],data(){return{nextButtonIcon:{type:IconTypeValues.CHEVRON_RIGHT,text:"ui.next_job_posting"},prevButtonIcon:{type:IconTypeValues.CHEVRON_LEFT,text:"ui.previous_job_posting"}}},props:{currentIndex:{type:Number,required:!0},total:{type:Number,required:!0},extended:{type:Boolean,default:!1}},computed:{prevClass(){return this.isPrevActive?"active":"disabled"},nextClass(){return this.isNextActive?"active":"disabled"},isPrevActive(){return this.currentIndex>0},isNextActive(){return this.currentIndex+1<this.total},infoText(){return this.isDesktop||this.extended?this.$t("ui.pagination-ads-preview",{index:this.currentIndex+1,total:this.total}):`${this.currentIndex+1}/${this.total}`}},created(){this.nextButtonIcon.text=this.$t(this.nextButtonIcon.text),this.prevButtonIcon.text=this.$t(this.prevButtonIcon.text)},mounted(){this.isMobile&&(this.nextButtonIcon.type=this.extended?IconTypeValues.CHEVRON_RIGHT:IconTypeValues.ARROW_RIGHT,this.prevButtonIcon.type=this.extended?IconTypeValues.CHEVRON_LEFT:IconTypeValues.ARROW_LEFT)},methods:{prev(){this.isPrevActive&&this.$emit("prev")},next(){this.isNextActive&&this.$emit("next")}}});var _sfc_render$o=function(){var e=this,r=e._self._c;return e._self._setupProxy,r("div",{staticClass:"job-preview-modal__pagination"},[r("IconButton",{class:e.prevClass,attrs:{"top-icon":e.prevButtonIcon},on:{click:e.prev}}),r("span",{staticClass:"pagination__text"},[e._v(" "+e._s(e.infoText)+" ")]),r("IconButton",{class:e.nextClass,attrs:{"top-icon":e.nextButtonIcon},on:{click:e.next}})],1)},_sfc_staticRenderFns$o=[],__component__$o=normalizeComponent(_sfc_main$o,_sfc_render$o,_sfc_staticRenderFns$o);const JobAdsPreviewPagination=__component__$o.exports,_sfc_main$n=defineComponent({name:"JobAdPreview",components:{Button,Link,JobAdCard,Divider,RichTextRender},props:{mainProps:{type:Object,required:!0},mission:{type:String,required:!0},viewMoreLabel:{type:String,required:!0},viewMoreUrl:{type:String,required:!0},applyLabel:{type:String},extended:{type:Boolean,default:!1}},computed:{actionClass(){return this.applyLabel?"job-ad-preview__action job-ad-preview__action--multiple":"job-ad-preview__action"}},methods:{apply(){this.$emit("apply")}}});var _sfc_render$n=function(){var e=this,r=e._self._c;return e._self._setupProxy,r("div",{staticClass:"job-ad-preview"},[r("JobAdCard",e._b({attrs:{extended:e.extended}},"JobAdCard",e.mainProps,!1)),r("Divider",{attrs:{"is-presentation":!0}}),r("RichTextRender",{staticClass:"job-ad-preview__description",attrs:{tabindex:"-1",html:e.mission}}),r("div",{class:e.actionClass},[e.viewMoreLabel?r("Link",{staticClass:"button button--secondary action__button",attrs:{href:e.viewMoreUrl}}
10,[e._v(e._s(e.viewMoreLabel))]):e._e(),e._t("actionButton",function(){return[e.applyLabel?r("Button",{staticClass:"action__button",on:{click:e.apply}},[e._v(" "+e._s(e.applyLabel)+" ")]):e._e()]})],2)],1)},_sfc_staticRenderFns$n=[],__component__$n=normalizeComponent(_sfc_main$n,_sfc_render$n,_sfc_staticRenderFns$n);const JobAdPreview=__component__$n.exports,_sfc_main$m=defineComponent({name:"SingleJobAdPreview",components:{ApplyJob,JobAdPreview},mixins:[CommonConfigurationMixin,BreakpointsMixin],props:{jobAdId:{type:Object,required:!0},isSlide:{type:Boolean,default:!1},activeSlide:{type:Boolean,default:!1},extended:{type:Boolean,default:!1}},data(){return{jobAd:null,jobAdPreview:null,loading:!1,jobHasDefaultImage:!0,buttonName:APPLY_BUTTON_JOB_AD_PREVIEW}},watch:{activeSlide:"fixInteractiveElements",jobAdId(){this.previewJob(this.jobAdId)}},computed:{domainName(){return useCareersSiteStore().domainName},displayActionButton(){return!!this.jobAd&&!this.jobAd.is_external&&!this.jobAd.is_aggregated},previewBlockClass(){return{"job-ad-preview--full-height":this.isMobile}},noResultText(){return this.loading?this.$t("ui.loading"):this.$t("ui.general-error")}},created(){this.previewJob(this.jobAdId)},methods:{previewJob(t){const{job_ad_id:e,address_id:r,is_external:s}=t;if(!this.domainName||!e)return null;this.loading=!0,getJobAdPreview({domain:this.domainName,locale:makeFnfDatabaseLocale(this.$i18n.locale),jobAdId:e.toString(),isExternal:s||!1,addressId:r?.toString()}).then(n=>{this.jobAdPreview=n?this.createPreviewObject(n,s??!1):null,this.jobAd=n??null,this.$nextTick(()=>{this.$emit("data-loaded")}),this.jobHasDefaultImage=this.hasEnableAggregateLogo&&n&&n.image!==void 0}).catch(()=>{this.jobAdPreview=null,this.jobAd=null}).finally(()=>{this.loading=!1})},createPreviewObject(t,e){return{mainProps:{image:this.getPreviewImage(t),markLogo:this.setMarkLogo(t),contract:t.contract??"",location:t.location??"",job:t.job??"",title:t.title??"",displayAsALink:!1},mission:sanitizeHtmlText(t.description)||"",viewMoreLabel:this.$t("ui.view-more"),viewMoreUrl:this.getViewMoreUrl(t,e),applyLabel:!t.is_external&&!t.is_aggregated?this.$t("ui.apply_button"):""}},getPreviewImage(t){return this.isMobile&&t.image_wide?{...t.image_wide,alt:"",display_alt:!0}:t.image?{...t.image,alt:"",display_alt:!0}:void 0},getViewMoreUrl(t,e=!1){if(!t.url)return"";let r;const s=t.career_domain??this.domainName;if(e){if(t.careers_site_url)return t.careers_site_url;r=this.localePath({name:"job-jobAdId-jobExternalSlug",params:{externalId:t.id}})}else if(t.is_aggregated&&t.broadcast_hash)r=this.localePath(t.broadcast_hash);else{const[n,a]=t.url.split("/");n&&a?r=this.localePath({name:"job-jobAdId-jobAddressSlug",params:{jobAdId:n,jobAddressSlug:a}}):r=this.localePath({name:"job-jobSlug",params:{jobSlug:t.url}})}return s===this.domainName?r:`${this.$config.public.urlProtocol}://${s}${r}`},fixInteractiveElements(){getInteractiveElementsWithin(this.$el,{hidden:!0}).forEach(e=>{e.setAttribute("tabindex",this.activeSlide?"0":"-1")})},clickApply(){const{job_ad_id:t,is_external:e}=this.jobAdId;trackClickApply({domain:this.domainName,button_name:this.buttonName,job_ad_id:t,job_ad_is_external:e})}}});var _sfc_render$m=function(){var e=this,r=e._self._c;return e._self._setupProxy,r("div",{staticClass:"job-ad-preview-wrapper"},[e.jobAdPreview?r("JobAdPreview",e._b({class:e.previewBlockClass,attrs:{extended:e.extended},scopedSlots:e._u([e.jobAd&&e.displayActionButton?{key:"actionButton",fn:function(){return[r("ApplyJob",{attrs:{"job-ad-id":e.jobAd.id,"is-external":e.jobAdId.is_external,"careers-site-url":e.jobAd.careers_site_url||"","job-ad-career-domain":e.jobAd.career_domain||"","job-ad-url":e.jobAd.url,"button-name":e.buttonName},on:{"click-apply":e.clickApply}})]},proxy:!0}:{key:"actionButton",fn:function(){return[r("span")]},proxy:!0}],null,!0)},"JobAdPreview",e.jobAdPreview,!1)):r("div",{staticClass:"no-result"},[e._v(e._s(e.noResultText))])],1)},_sfc_staticRenderFns$m=[],__component__$m=normalizeComponent(_sfc_main$m,_sfc_render$m,_sfc_staticRenderFns$m);const SingleJobAdPreview=__component__$m.exports,_sfc_main$l=defineComponent({components:{SingleJobAdPreview,Carousel,JobAdsPreviewPagination},props:{extended:{type:Boolean,default:!1}},data(){return{settings:JobAdsPreviewSliderSettings,currentIndex:0}},computed:{jobAdsToPreview(){return useJobAdsStore().jobAdsToPreview},slider(){return this.$refs.slider}},watch:{jobAdsToPreview:{deep:!0,handler:"onJobAdsToPreviewChange"}},methods:{onJobAdsToPreviewChange(){this.reInitSlider()},viewPrevJob(){this.slider.prev()},viewNextJob(){this.slider.next()},beforeChange(t,e){this.currentIndex=e},reInitSlider(){const t=this.settings.slidesToShow;this.settings.slidesToShow=t+1,this.$nextTick(()=>{this.settings.slidesToShow=t}),this.currentIndex=0,this.slider.goTo(0,!1)}}});var _sfc_render$l=function(){var e=this,r=e._self._c;return e._self._setupProxy,r("div",{staticClass:"slider-wrapper"},[r("Carousel",e._b({ref:"slider",on:{"before-change":e.beforeChange}},"Carousel",e.settings,!1),e._l(e.jobAdsToPreview,function(s,n){return r("div",{key:n}
10,[r("SingleJobAdPreview",{attrs:{"job-ad-id":s,"is-slide":!0,"active-slide":e.currentIndex===n,extended:e.extended}})],1)}),0),r("JobAdsPreviewPagination",{attrs:{"current-index":e.currentIndex,total:e.jobAdsToPreview.length,extended:e.extended},on:{prev:e.viewPrevJob,next:e.viewNextJob}})],1)},_sfc_staticRenderFns$l=[],__component__$l=normalizeComponent(_sfc_main$l,_sfc_render$l,_sfc_staticRenderFns$l);const JobAdsPreviewSlider=__component__$l.exports,GeneralModalMixin=defineComponent({name:"GeneralModalMixin",data(){return{MODAL_OPEN_CLASSNAME:"modal-open"}},mounted(){document.body.classList.add(this.MODAL_OPEN_CLASSNAME)},destroyed(){document.body.classList.remove(this.MODAL_OPEN_CLASSNAME)}}),_sfc_main$k=defineComponent({name:"ModalJobPreview",components:{SingleJobAdPreview,JobAdsPreviewSlider,Modal,Card,IconButton},props:{extended:{type:Boolean,default:!1}},mixins:[CommonConfigurationMixin,BreakpointsMixin,GeneralModalMixin],data(){return{MODAL_OPEN_CLASSNAME:"preview-modal-open"}},computed:{jobAdsToPreview(){return useJobAdsStore().jobAdsToPreview},displayJobAdsInSlider(){return this.jobAdsToPreview.length>1},iconClose(){return{type:IconTypeValues.CLOSE,text:this.$t("ui.close")}},modalClass(){return{"job-preview-modal":!0,"job-preview-modal--desktop-slider":this.displayJobAdsInSlider&&this.isDesktop,"job-preview-modal--mobile-slider":this.displayJobAdsInSlider&&this.isMobile,"job-preview-modal--extended":this.extended}}},watch:{jobAdsToPreview:{deep:!0,handler:"onJobAdsToPreviewChange"}},methods:{onJobAdsToPreviewChange(){this.focusOnModal()},closeModal(){this.$emit("close-modal")},focusOnModal(){this.$refs.modal.focusOnFirstElement()},onDataLoaded(){this.$refs.modal.setFocusableEls()}}});var _sfc_render$k=function(){var e=this,r=e._self._c;return e._self._setupProxy,r("div",{staticClass:"job-ad-preview-overlay",on:{click:function(s){return s.target!==s.currentTarget?null:e.closeModal.apply(null,arguments)}}},[r("Modal",{ref:"modal",class:e.modalClass,attrs:{"display-footer":!1,"display-header":!1},on:{"close-modal":e.closeModal},scopedSlots:e._u([{key:"body",fn:function(){return[r("Card",{staticClass:"job-preview-modal__card"},[r("IconButton",e._b({ref:"closeModal",staticClass:"close",attrs:{tabindex:"0",variant:"link"},on:{click:e.closeModal,keyup:function(s){return!s.type.indexOf("key")&&e._k(s.keyCode,"enter",13,s.key,"Enter")?null:e.closeModal.apply(null,arguments)}}},"IconButton",{leftIcon:e.iconClose},!1)),e.displayJobAdsInSlider?e._e():r("SingleJobAdPreview",{attrs:{"job-ad-id":e.jobAdsToPreview[0],extended:e.extended},on:{"data-loaded":e.onDataLoaded}}),e.displayJobAdsInSlider?r("JobAdsPreviewSlider",{attrs:{extended:e.extended}}):e._e()],1)]},proxy:!0}])})],1)},_sfc_staticRenderFns$k=[],__component__$k=normalizeComponent(_sfc_main$k,_sfc_render$k,_sfc_staticRenderFns$k);const ModalJobPreview=__component__$k.exports,_sfc_main$j=defineComponent({name:"SubscribeButton",mixins:[BreakpointsMixin],components:{IconButton},data(){return{displayButton:!1}},computed:{jobAdsStore(){return useJobAdsStore(this.$pinia)},isSearchParametersEmpty(){return this.jobAdsStore.isSearchParametersEmpty},isFilterParametersEmpty(){return this.jobAdsStore.isFilterParametersEmpty},iconButton(){const t=this.isMobile?"":this.$t("ui.subscribe-to-jobs");return{rightIcon:{text:t,type:IconTypeValues.BELL},label:t}},displaySubscriptionButton(){return!this.isSearchParametersEmpty||!this.isFilterParametersEmpty}},methods:{setDisplayButton(){this.displayButton=this.displaySubscriptionButton}},watch:{isSearchParametersEmpty:{handler(){this.setDisplayButton()},deep:!0,immediate:!1},isFilterParametersEmpty:{handler(){this.setDisplayButton()},deep:!0,immediate:!1}},mounted(){this.$nextTick(()=>{this.setDisplayButton()})}});var _sfc_render$j=function(){var e=this,r=e._self._c;return e._self._setupProxy,e.displayButton?r("IconButton",e._b({staticClass:"subscribe-button",attrs:{variant:"secondary-outlined"},on:{click:function(s){return e.$emit("click")}}},"IconButton",e.iconButton,!1)):e._e()},_sfc_staticRenderFns$j=[],__component__$j=normalizeComponent(_sfc_main$j,_sfc_render$j,_sfc_staticRenderFns$j);const SubscribeButton=__component__$j.exports;function isBottomVisible(t,e){if(!t)return!1;const r=t.getBoundingClientRect(),s=window.innerHeight||document.documentElement.clientHeight;return r.bottom+e.threshold<=s}const ANIMATION_FADE_IN_CLASS="fade-in",ANIMATION_FADE_OUT_CLASS="fade-out",_sfc_main$i=defineComponent({name:"JobAdList",mixins:[CommonConfigurationMixin,BreakpointsMixin],components:{IconButton,MatchingStatusButton,BrandsFilter,JobAdCard,Pagination,Title,ModalJobPreview,SubscribeButton,MatchingButton,Link},props:{currentPage:{type:Number,required:!0},fromPage:{type:Number,required:!0},pageToStart:{type:Number,required:!0},toPage:{type:Number,required:!0},displayJobAdPreviews:{type:Boolean,default:!0},showGeolocationButton:{type:Boolean,default:!1}},data(){return{displayJobPreviewModal:!1,displayContent:!0,preModalState:{scrollHeightPosition:0,pageNumber:0},matchingButtonClass:"",throttleSetMatchingVisibility:Function}},computed:{jobAdsStore(){return useJobAdsStore(this.$pinia)}
10,iconButton(){const t=this.$t("career.job_ad_list.show_map");return{leftIcon:{text:"",type:IconTypeValues.MAP_PIN},label:t}},careersSite(){return useCareersSiteStore().careersSite},jobAdListingSettings(){return useCareersSiteStore().jobAdListingSettings},jobAds(){return this.jobAdsStore.jobAds},count(){return this.jobAdsStore.count},jobAdsToPreview(){return this.jobAdsStore.jobAdsToPreview},canDisplayBrandsFilter(){return useCareersSiteStore().canDisplayBrandsFilter},isMatchingActive(){return useCareersSiteStore().isMatchingActive},domainName(){return useCareersSiteStore().domainName},matchingJobAdsIds(){return this.jobAdsStore.matchingJobAdsIds},paginationIndex(){return this.preModalState.pageNumber>0?this.preModalState.pageNumber:this.pageToStart},displayPagination(){return this.jobAds?.length>0&&this.pageCount>1},brandsFilterStyle(){return{visibility:this.formattedCount===""?"hidden":""}},jobAdListClasses(){return{[JOB_ADS_LIST_MAIN_CLASS]:!0,[JOB_ADS_LIST_FULL_PAGE_CLASS]:!this.jobAdListingSettings.with_map||this.showGeolocationButton,[JOB_ADS_LIST_NO_BRANDS_CLASS]:!this.canDisplayBrandsFilter}},formattedCount(){return this.count===void 0?"":this.count.toLocaleString("fr-FR")},pageCount(){return this.count===void 0?0:Math.ceil(this.count/LIMIT_JOB_ADS_PER_PAGE)},brandsFilterPageWidthType(){return this.jobAdListingSettings.with_map?BrandsFilterWidthType.HALF_PAGE:BrandsFilterWidthType.FULL_PAGE},infoText(){let t;return this.count===void 0?t=0:this.count<this.toPage?t=this.count:t=this.toPage,this.$t("ui.pagination-ads-info",{from:this.fromPage,to:t,total:this.count})},appearance(){return this.isDesktop&&this.jobAdListingSettings.with_map&&!this.showGeolocationButton||this.isDesktop&&this.careersSite.is_extended?JobAdCardAppearanceEnum.RECTANGLE:JobAdCardAppearanceEnum.SQUARE},matchingButtonType(){return MatchingButtonVariants.MOBILE},displayMatchingButton(){return this.isMatchingActive&&!!this.count&&this.count>=MATCHING_BUTTON_MIN_JOB_ADS_NUMBER},jobAdCardClass(){return{"job-ad-card--bordered":!0}},displayMatchingStatusButton(){return this.isMatchingActive&&!isEmpty(this.matchingJobAdsIds)&&!this.isDesktop}},methods:{getModalJobPreview(){return this.$refs.modalJobPreview},getJobsContainer(){return this.$refs.jobsContainer},onJobAdCardClick(t){const e=isEmpty(this.getViewMoreUrl(t));(this.displayJobAdPreviews||e)&&this.previewJob(t)},previewJob(t){const e=t.is_external?{job_ad_id:t.job_ad_id,address_id:void 0}:splitComposedJobAdId(t.id);e.is_external=t.is_external,useJobAdsStore().jobAdsToPreview=[e]},onCloseModal(){useJobAdsStore().jobAdsToPreview=[],this.closePreviewModal(),this.returnToPreModalState()},showPreviewModal(){this.setPreModalState(),this.displayJobPreviewModal=!0,this.$emit("show-modal"),this.$nextTick(()=>{document.body.addEventListener("mousedown",this.closeJobPreviewModalIfClickedOutside)})},closePreviewModal(){document.body.removeEventListener("mousedown",this.closeJobPreviewModalIfClickedOutside),this.displayJobPreviewModal=!1},closeJobPreviewModalIfClickedOutside(t){const e=this.getModalJobPreview().$el;e!==t.target&&!e.contains(t.target)&&this.onCloseModal()},getJobAdCard(t){return getJobAdCard(t,this.isMobile)},getJobAdExternalSiteLinkText(t){if(!t.is_aggregated||!t.brand_id)return null;if(t.careers_site_url)return this.$t("career.job_ad_list.see_job_ad_on_external_site_link_no_mark_name");const e=this.getMarkName(t.brand_id);return e?this.$t("career.job_ad_list.see_job_ad_on_external_site_link",{markName:e}):this.$t("career.job_ad_list.see_job_ad_on_external_site_link_no_mark_name")},getViewMoreUrl(t){if(!t.url)return"";let e;const r=t.career_domain??this.domainName;if(t.is_external){if(t.careers_site_url)return t.careers_site_url;e=this.localePath({name:"job-jobAdId-jobExternalSlug",params:{externalId:t.id}})}else if(t.is_aggregated&&t.broadcast_hash)e=this.localePath(t.broadcast_hash);else{const[s,n]=t.url.split("/");s&&n?e=this.localePath({name:"job-jobAdId-jobAddressSlug",params:{jobAdId:s,jobAddressSlug:n}}):e=this.localePath({name:"job-jobSlug",params:{jobSlug:t.url}})}return r===this.domainName?e:`${this.$config.public.urlProtocol}://${r}${e}`},setPreModalState(){this.displayContent=!1,this.preModalState.scrollHeightPosition=window.scrollY,this.preModalState.pageNumber=this.currentPage},returnToPreModalState(){this.displayContent=!0,this.$nextTick(()=>{window.scrollTo(0,this.preModalState.scrollHeightPosition),this.resetPreModalState()})},resetPreModalState(){this.preModalState={scrollHeightPosition:0,pageNumber:0}},setEventListeners(){window.addEventListener("scroll",this.throttleSetMatchingVisibility),window.addEventListener("resize",this.throttleSetMatchingVisibility)},removeEventListeners(){window.removeEventListener("scroll",this.throttleSetMatchingVisibility),window.removeEventListener("resize",this.throttleSetMatchingVisibility)},setMatchingButtonVisibility(){this.displayMatchingButton&&this.displayContent&&(this.matchingButtonClass=isBottomVisible(this.getJobsContainer(),{threshold:20})?ANIMATION_FADE_OUT_CLASS:ANIMATION_FADE_IN_CLASS)},onJobAdsToPreviewChange(){isEmpty(this.jobAdsToPreview)?this.closePreviewModal():this.showPreviewModal()},pageChanged(t){return this.$mixpanel?.track_pageview({domain:this.domainName,page_type:"job_ad_list",pagination:t,total_number_of_pages:this.pageCount}),this.$emit("page-changed",t),t},search(){this.$emit("search")}},watch:{jobAdsToPreview:{deep:!0,handler:"onJobAdsToPreviewChange"}},created(){this.throttleSetMatchingVisibility=throttle(this.setMatchingButtonVisibility,MATCHING_BUTTON_VISIBILITY_SCROLL_THROTTLE,{leading:!1,trailing:!0})},mounted(){this.setEventListeners()},beforeDestroy(){this.removeEventListeners(),this.displayJobPreviewModal&&this.closePreviewModal()}});var _sfc_render$i=function(){var e=this,r=e._self._c;return e._self._setupProxy,r("div",{class:e.jobAdListClasses},[e.displayJobPreviewModal?r("ModalJobPreview",{ref:"modalJobPreview",attrs:{extended:e.careersSite.is_extended},on:{"close-modal":e.onCloseModal}}
10):e._e(),e.displayContent?r("div",[r("div",{staticClass:"jobs-header"},[r("div",{staticClass:"jobs-header__offers-and-geolocation"},[r("Title",[e._v(" "+e._s(e.$tc("ui.offers",e.count,{totalJobs:e.formattedCount})))]),e.showGeolocationButton&&e.jobAdListingSettings.with_map?r("IconButton",e._b({staticClass:"jobs-header__geolocation-button",class:{"jobs-header__geolocation-button--extended":e.careersSite.is_extended},on:{click:function(s){return e.$emit("accept-geolocation")}}},"IconButton",e.iconButton,!1)):e._e()],1),r("div",{staticClass:"jobs-header__actions"},[e.displayMatchingStatusButton?r("MatchingStatusButton",{attrs:{modal:!0},on:{"status-change":function(s){return e.$emit("search")}}}):e.displayMatchingButton?r("MatchingButton",{attrs:{"class-name":e.matchingButtonClass,type:e.matchingButtonType}}):e._e(),r("SubscribeButton",{class:{"subscribe-button--extended":e.careersSite.is_extended},on:{click:function(s){return e.$emit("show-subscribe-modal")}}})],1)]),e.canDisplayBrandsFilter?r("BrandsFilter",{style:e.brandsFilterStyle,attrs:{"page-width-type":e.brandsFilterPageWidthType,extended:e.careersSite.is_extended},on:{change:e.search}}):e._e(),r("div",{ref:"jobsContainer",staticClass:"jobs-container",attrs:{tabindex:"-1"}},e._l(e.jobAds,function(s){return r("div",{key:s.id,staticClass:"job-ad-card-wrapper",attrs:{tabindex:"0",role:"document"},on:{click:function(n){return e.onJobAdCardClick(s)},keyup:function(n){return!n.type.indexOf("key")&&e._k(n.keyCode,"enter",13,n.key,"Enter")?null:e.onJobAdCardClick(s)}}},[r("JobAdCard",e._b({class:e.jobAdCardClass,attrs:{"mark-logo":e.setMarkLogo(s),"data-score":s.score,appearance:e.appearance,"external-site-link-text":e.getJobAdExternalSiteLinkText(s),"display-as-a-link":!e.displayJobAdPreviews,"view-more-url":e.getViewMoreUrl(s),extended:e.careersSite.is_extended}},"JobAdCard",e.getJobAdCard(s),!1))],1)}),0),e.displayPagination?r("Pagination",{ref:"pagination",attrs:{extended:e.careersSite.is_extended,"page-count":e.pageCount,"info-text":e.infoText,"page-to-start":e.paginationIndex,"previous-label":e.$t("ui.pagination-previous"),"next-label":e.$t("ui.pagination-next")},on:{onPageChanged:e.pageChanged}}):e._e()],1):e._e()],1)},_sfc_staticRenderFns$i=[],__component__$i=normalizeComponent(_sfc_main$i,_sfc_render$i,_sfc_staticRenderFns$i);const JobAdList=__component__$i.exports,_sfc_main$h=defineComponent({name:"MapOverlay",components:{Icon},computed:{openMapIconText(){return getTranslationForKey("ui.open-map-full-screen",this)}}});var _sfc_render$h=function(){var e=this,r=e._self._c;return e._self._setupProxy,r("div",{staticClass:"map-overlay",on:{click:function(s){return e.$emit("map-enlarge")}}},[r("div",{staticClass:"map-overlay__body"},[r("Icon",{staticClass:"map-overlay__icon",attrs:{type:"full_screen",text:e.openMapIconText}}),e._t("default")],2)])},_sfc_staticRenderFns$h=[],__component__$h=normalizeComponent(_sfc_main$h,_sfc_render$h,_sfc_staticRenderFns$h);const MapOverlay=__component__$h.exports;class Loader{constructor(e=null,r={}){if(this.apiKey=e,this.options=r,typeof window>"u")throw new Error("google-maps is supported only in browser environment")}load(){return typeof this.api<"u"?Promise.resolve(this.api):typeof this.loader<"u"?this.loader:(window[Loader.CALLBACK_NAME]=()=>{if(this.api=window.google,typeof this.resolve>"u")throw new Error("Should not happen");this.resolve(this.api)},window.gm_authFailure=()=>{if(typeof this.reject>"u")throw new Error("Should not happen");this.reject(new Error("google-maps: authentication error"))},this.loader=new Promise((e,r)=>{this.resolve=e,this.reject=r;const s=document.createElement("script");s.src=this.createUrl(),s.async=!0,s.onerror=n=>r(n),document.head.appendChild(s)}))}createUrl(){const e=[`callback=${Loader.CALLBACK_NAME}`];this.apiKey&&e.push(`key=${this.apiKey}`);for(let r in this.options)if(this.options.hasOwnProperty(r)){let s=this.options[r];r==="version"&&(r="v"),r==="libraries"&&(s=s.join(",")),e.push(`${r}=${s}`)}return`https://maps.googleapis.com/maps/api/js?${e.join("&")}`}}Loader.CALLBACK_NAME="_dk_google_maps_loader_cb";const _sfc_main$g=defineComponent({name:"Map",props:{apiKey:{type:String,default:""},zoom:{type:Number},language:{type:String},region:{type:String},viewport:{type:Object},options:{type:Object},highlightedPlaceCategory:{type:String},highlightedPlaceId:{type:String},colors:{type:Object,required:!0}},data(){return{google:null,map:null,mapWrapperSelector:"mapWrapper",googleFeatureStyleOptions:{strokeColor:this.colors.linkColor,strokeOpacity:1,strokeWeight:1.5,fillOpacity:0}}},computed:{mapOptions(){return{mapId:"a2d2a79116741112",zoom:this.zoom,zoomControlOptions:{position:this.google&&this.google.maps.ControlPosition?this.google.maps.ControlPosition.RIGHT_TOP:7},fullscreenControl:!1,...this.options}},mapWrapper(){return this.$refs[this.mapWrapperSelector]},googleMapsFeatureType(){return this.highlightedPlaceCategory==="country"||this.highlightedPlaceCategory==="administrative_area_level_1"||this.highlightedPlaceCategory==="administrative_area_level_2"||this.highlightedPlaceCategory==="locality"||this.highlightedPlaceCategory==="postal_code"?this.highlightedPlaceCategory.toUpperCase():null},googleMapsFeatureLayer(){return!this.googleMapsFeatureType||!this.map?null:this.map.getFeatureLayer(this.googleMapsFeatureType)}},methods:{async initMap(){const t=window.google??await this.initializeGoogleMap();this.google=t,this.map=new t.maps.Map(this.mapWrapper,this.mapOptions)}
10,initEvents(){!this.google||!this.map||(this.google.maps.event.addListener(this.map,"bounds_changed",throttle(()=>{const t=this.getZoomAndEsViewport();this.$emit("bounds-changed",t.viewport,t.zoom)},300,{leading:!1,trailing:!0})),this.google.maps.event.addListener(this.map,"drag",throttle(()=>{const t=this.getZoomAndEsViewport();this.$emit("drag",t.viewport,t.zoom)},300,{leading:!1,trailing:!0})),this.google.maps.event.addListener(this.map,"dragend",throttle(()=>{const t=this.getZoomAndEsViewport();this.$emit("drag-end",t.viewport,t.zoom)},300,{leading:!1,trailing:!0})),this.google.maps.event.addListener(this.map,"zoom_changed",throttle(()=>{const t=this.getZoomAndEsViewport();this.$emit("zoom-changed",t.viewport,t.zoom)},200,{leading:!1,trailing:!0})),this.google.maps.event.addListener(this.map,"idle",throttle(()=>{const t=this.getZoomAndEsViewport();this.$emit("idle",t.viewport,t.zoom)},600,{leading:!1,trailing:!0})))},getEsViewport(){const t=this.map?.getBounds();if(!t)return;const e=t.getNorthEast().toJSON(),r=t.getSouthWest
10().toJSON();return{top_left:{lat:e.lat,lon:r.lng},bottom_right:{lat:r.lat,lon:e.lng}}},getZoomAndEsViewport(){return{zoom:this.map?.getZoom(),viewport:this.getEsViewport()}},async initializeGoogleMap(){if(window.googlePromise)return await window.googlePromise;const t={language:this.language,region:this.region},e=new Loader(this.apiKey,t);return window.googlePromise=e.load(),await window.googlePromise},googleFeatureStyleCallback(t){if(t.feature.placeId===this.highlightedPlaceId)return this.googleFeatureStyleOptions}},watch:{googleMapsFeatureLayer(t,e){e&&(e.style=null),t&&(t.style=this.googleFeatureStyleCallback)},highlightedPlaceId(){this.googleMapsFeatureLayer&&(this.googleMapsFeatureLayer.style=this.googleFeatureStyleCallback)}},async mounted(){await this.initMap(),this.initEvents(),this.$emit("init",this.google,this.map)}});var _sfc_render$g=function(){var e=this,r=e._self._c;return e._self._setupProxy,r("div",{ref:e.mapWrapperSelector,staticClass:"google-map-wrapper"})},_sfc_staticRenderFns$g=[],__component__$g=normalizeComponent(_sfc_main$g,_sfc_render$g,_sfc_staticRenderFns$g);const Map$1=__component__$g.exports;/*! *****************************************************************************
11Copyright (c) Microsoft Corporation.
12
13Permission to use, copy, modify, and/or distribute this software for any
14purpose with or without fee is hereby granted.
15
16THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
17REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
18AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
19INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
20LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
21OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
22PERFORMANCE OF THIS SOFTWARE.
23***************************************************************************** */var extendStatics=function(t,e){return extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,s){r.__proto__=s}||function(r,s){for(var n in s)s.hasOwnProperty(n)&&(r[n]=s[n])},extendStatics(t,e)};function __extends(t,e){extendStatics(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}var __assign=function(){return __assign=Object.assign||function(e){for(var r,s=1,n=arguments.length;s<n;s++){r=arguments[s];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e},__assign.apply(this,arguments)};function extend(t,e){for(var r in e.prototype)t.prototype[r]=e.prototype[r]}var OverlayViewSafe=(function(){function t(){extend(t,google.maps.OverlayView)}return t})();function toCssText(t){return Object.keys(t).reduce(function(e,r){return t[r]&&e.push(r+":"+t[r]),e},[]).join(";")}function coercePixels(t){return t?t+"px":void 0}var ClusterIcon=(function(t){__extends(e,t);function e(r,s){var n=t.call(this)||this;return n.cluster_=r,n.styles_=s,n.center_=null,n.div_=null,n.sums_=null,n.visible_=!1,n.style=null,n.setMap(r.getMap()),n}return e.prototype.onAdd=function(){var r=this,s,n,a=this.cluster_.getMarkerClusterer(),o=google.maps.version.split("."),h=o[0],l=o[1],c=parseInt(h,10)*100+parseInt(l,10);this.div_=document.createElement("div"),this.visible_&&this.show(),this.getPanes().overlayMouseTarget.appendChild(this.div_),this.boundsChangedListener_=google.maps.event.addListener(this.getMap(),"bounds_changed",function(){n=s}),google.maps.event.addDomListener(this.div_,"mousedown",function(){s=!0,n=!1}),google.maps.event.addDomListener(this.div_,"contextmenu",function(){google.maps.event.trigger(a,"contextmenu",r.cluster_)}),c>=332&&google.maps.event.addDomListener(this.div_,"touchstart",function(m){m.stopPropagation()}),google.maps.event.addDomListener(this.div_,"click",function(m){if(s=!1,!n){if(google.maps.event.trigger(a,"click",r.cluster_),google.maps.event.trigger(a,"clusterclick",r.cluster_),a.getZoomOnClick()){var C=a.getMaxZoom(),u=r.cluster_.getBounds();a.getMap().fitBounds(u),setTimeout(function(){a.getMap().fitBounds(u),C!==null&&a.getMap().getZoom()>C&&a.getMap().setZoom(C+1)},100)}m.cancelBubble=!0,m.stopPropagation&&m.stopPropagation()}}),google.maps.event.addDomListener(this.div_,"mouseover",function(){google.maps.event.trigger(a,"mouseover",r.cluster_)}),google.maps.event.addDomListener(this.div_,"mouseout",function(){google.maps.event.trigger(a,"mouseout",r.cluster_)})},e.prototype.onRemove=function(){this.div_&&this.div_.parentNode&&(this.hide(),google.maps.event.removeListener(this.boundsChangedListener_),google.maps.event.clearInstanceListeners(this.div_),this.div_.parentNode.removeChild(this.div_),this.div_=null)},e.prototype.draw=function(){if(this.visible_){var r=this.getPosFromLatLng_(this.center_);this.div_.style.top=r.y+"px",this.div_.style.left=r.x+"px"}},e.prototype.hide=function(){this.div_&&(this.div_.style.display="none"),this.visible_=!1},e.prototype.show=function(){this.div_&&(this.div_.className=this.className_,this.div_.style.cssText=this.createCss_(this.getPosFromLatLng_(this.center_)),this.div_.innerHTML=(this.style.url?this.getImageElementHtml():"")+this.getLabelDivHtml(),typeof this.sums_.title>"u"||this.sums_.title===""?this.div_.title=this.cluster_.getMarkerClusterer().getTitle():this.div_.title=this.sums_.title,this.div_.style.display=""),this.visible_=!0},e.prototype.getLabelDivHtml=function(){var r=this.cluster_.getMarkerClusterer(),s=r.ariaLabelFn(this.sums_.text),n={position:"absolute",top:coercePixels(this.anchorText_[0]),left:coercePixels(this.anchorText_[1]),color:this.style.textColor,"font-size":coercePixels(this.style.textSize),"font-family":this.style.fontFamily,"font-weight":this.style.fontWeight,"font-style":this.style.fontStyle,"text-decoration":this.style.textDecoration,"text-align":"center",width:coercePixels(this.style.width),"line-height":coercePixels(this.style.textLineHeight)};return`
24<div aria-label="`.concat(s,'" style="').concat(toCssText(n),`" tabindex="0">
25  <span aria-hidden="true">`).concat(this.sums_.text,`</span>
26</div>
27`)},e.prototype.getImageElementHtml=function(){var r=(this.style.backgroundPosition||"0 0").split(" "),s=parseInt(r[0].replace(/^\s+|\s+$/g,""),10),n=parseInt(r[1].replace(/^\s+|\s+$/g,""),10),a={};if(this.cluster_.getMarkerClusterer().getEnableRetinaIcons())a={width:coercePixels(this.style.width),height:coercePixels(this.style.height)};else{var o=[-1*n,-1*s+this.style.width,-1*n+this.style.height,-1*s],h=o[0],l=o[1],c=o[2],m=o[3];a={clip:"rect(".concat(h,"px, ").concat(l,"px, ").concat(c,"px, ").concat(m,"px)")}}var C=this.sums_.url?{width:"100%",height:"100%"}:{},u=toCssText(__assign(__assign({position:"absolute",top:coercePixels(n),left:coercePixels(s)},a),C));return'<img alt="'.concat(this.sums_.text,'" aria-hidden="true" src="').concat(this.style.url,'" style="').concat(u,'"/>')},e.prototype.useStyle=function(r){this.sums_=r;var s=Math.max(0,r.index-1);s=Math.min(this.styles_.length-1,s),this.style=this.sums_.url?__assign(__assign({},this.styles_[s]),{url:this.sums_.url}):this.styles_[s],this.anchorText_=this.style.anchorText||[0,0],this.anchorIcon_=this.style.anchorIcon||[Math.floor(this.style.height/2),Math.floor(this.style.width/2)],this.className_=this.cluster_.getMarkerClusterer().getClusterClass()+" "+(this.style.className||"cluster-"+s)},e.prototype.setCenter=function(r){this.center_=r},e.prototype.createCss_=function(r){return toCssText({"z-index":"".concat(this.cluster_.getMarkerClusterer().getZIndex()),top:coercePixels(r.y),left
27:coercePixels(r.x),width:coercePixels(this.style.width),height:coercePixels(this.style.height),cursor:"pointer",position:"absolute","-webkit-user-select":"none","-khtml-user-select":"none","-moz-user-select":"none","-o-user-select":"none","user-select":"none"})},e.prototype.getPosFromLatLng_=function(r){var s=this.getProjection().fromLatLngToDivPixel(r);return s.x=Math.floor(s.x-this.anchorIcon_[1]),s.y=Math.floor(s.y-this.anchorIcon_[0]),s},e})(OverlayViewSafe),Cluster=(function(){function t(e){this.markerClusterer_=e,this.map_=this.markerClusterer_.getMap(),this.minClusterSize_=this.markerClusterer_.getMinimumClusterSize(),this.averageCenter_=this.markerClusterer_.getAverageCenter(),this.markers_=[],this.center_=null,this.bounds_=null,this.clusterIcon_=new ClusterIcon(this,this.markerClusterer_.getStyles())}return t.prototype.getSize=function(){return this.markers_.length},t.prototype.getMarkers=function(){return this.markers_},t.prototype.getCenter=function(){return this.center_},t.prototype.getMap=function(){return this.map_},t.prototype.getMarkerClusterer=function(){return this.markerClusterer_},t.prototype.getBounds=function(){for(var e=new google.maps.LatLngBounds(this.center_,this.center_),r=this.getMarkers(),s=0;s<r.length;s++)e.extend(r[s].getPosition());return e},t.prototype.remove=function(){this.clusterIcon_.setMap(null),this.markers_=[],delete this.markers_},t.prototype.addMarker=function(e){if(this.isMarkerAlreadyAdded_(e))return!1;if(!this.center_)this.center_=e.getPosition(),this.calculateBounds_();else if(this.averageCenter_){var r=this.markers_.length+1,s=(this.center_.lat()*(r-1)+e.getPosition().lat())/r,n=(this.center_.lng()*(r-1)+e.getPosition().lng())/r;this.center_=new google.maps.LatLng(s,n),this.calculateBounds_()}e.isAdded=!0,this.markers_.push(e);var a=this.markers_.length,o=this.markerClusterer_.getMaxZoom();if(o!==null&&this.map_.getZoom()>o)e.getMap()!==this.map_&&e.setMap(this.map_);else if(a<this.minClusterSize_)e.getMap()!==this.map_&&e.setMap(this.map_);else if(a===this.minClusterSize_)for(var h=0;h<a;h++)this.markers_[h].setMap(null);else e.setMap(null);return!0},t.prototype.isMarkerInClusterBounds=function(e){return this.bounds_.contains(e.getPosition())},t.prototype.calculateBounds_=function(){var e=new google.maps.LatLngBounds(this.center_,this.center_);this.bounds_=this.markerClusterer_.getExtendedBounds(e)},t.prototype.updateIcon=function(){var e=this.markers_.length,r=this.markerClusterer_.getMaxZoom();if(r!==null&&this.map_.getZoom()>r){this.clusterIcon_.hide();return}if(e<this.minClusterSize_){this.clusterIcon_.hide();return}var s=this.markerClusterer_.getStyles().length,n=this.markerClusterer_.getCalculator()(this.markers_,s);this.clusterIcon_.setCenter(this.center_),this.clusterIcon_.useStyle(n),this.clusterIcon_.show()},t.prototype.isMarkerAlreadyAdded_=function(e){if(this.markers_.indexOf)return this.markers_.indexOf(e)!==-1;for(var r=0;r<this.markers_.length;r++)if(e===this.markers_[r])return!0;return!1},t})(),getOption=function(t,e,r){return t[e]!==void 0?t[e]:r},MarkerClusterer=(function(t){__extends(e,t);function e(r,s,n){s===void 0&&(s=[]),n===void 0&&(n={});var a=t.call(this)||this;return a.options=n,a.markers_=[],a.clusters_=[],a.listeners_=[],a.activeMap_=null,a.ready_=!1,a.ariaLabelFn=a.options.ariaLabelFn||(function(){return""}),a.zIndex_=a.options.zIndex||Number(google.maps.Marker.MAX_ZINDEX)+1,a.gridSize_=a.options.gridSize||60,a.minClusterSize_=a.options.minimumClusterSize||2,a.maxZoom_=a.options.maxZoom||null,a.styles_=a.options.styles||[],a.title_=a.options.title||"",a.zoomOnClick_=getOption(a.options,"zoomOnClick",!0),a.averageCenter_=getOption(a.options,"averageCenter",!1),a.ignoreHidden_=getOption(a.options,"ignoreHidden",!1),a.enableRetinaIcons_=getOption(a.options,"enableRetinaIcons",!1),a.imagePath_=a.options.imagePath||e.IMAGE_PATH,a.imageExtension_=a.options.imageExtension||e.IMAGE_EXTENSION,a.imageSizes_=a.options.imageSizes||e.IMAGE_SIZES,a.calculator_=a.options.calculator||e.CALCULATOR,a.batchSize_=a.options.batchSize||e.BATCH_SIZE,a.batchSizeIE_=a.options.batchSizeIE||e.BATCH_SIZE_IE,a.clusterClass_
27=a.options.clusterClass||"cluster",navigator.userAgent.toLowerCase().indexOf("msie")!==-1&&(a.batchSize_=a.batchSizeIE_),a.setupStyles_(),a.addMarkers(s,!0),a.setMap(r),a}return e.prototype.onAdd=function(){var r=this;this.activeMap_=this.getMap(),this.ready_=!0,this.repaint(),this.prevZoom_=this.getMap().getZoom(),this.listeners_=[google.maps.event.addListener(this.getMap(),"zoom_changed",function(){var s=r.getMap(),n=s.minZoom||0,a=Math.min(s.maxZoom||100,s.mapTypes[s.getMapTypeId()].maxZoom),o=Math.min(Math.max(r.getMap().getZoom(),n),a);r.prevZoom_!=o&&(r.prevZoom_=o,r.resetViewport_(!1))}),google.maps.event.addListener(this.getMap(),"idle",function(){r.redraw_()})]},e.prototype.onRemove=function(){for(var r=0;r<this.markers_.length;r++)this.markers_[r].getMap()!==this.activeMap_&&this.markers_[r].setMap(this.activeMap_);for(var r=0;r<this.clusters_.length;r++)this.clusters_[r].remove();this.clusters_=[];for(var r=0;r<this.listeners_.length;r++)google.maps.event.removeListener(this.listeners_[r]);this.listeners_=[],this.activeMap_=null,this.ready_=!1},e.prototype.draw=function(){},e.prototype.setupStyles_=function(){if(!(this.styles_.length>0))for(var r=0;r<this.imageSizes_.length;r++){var s=this.imageSizes_[r];this.styles_.push(e.withDefaultStyle({url:this.imagePath_+(r+1)+"."+this.imageExtension_,height:s,width:s}))}},e.prototype.fitMapToMarkers=function(r){for(var s=this.getMarkers(),n=new google.maps.LatLngBounds,a=0;a<s.length;a++)(s[a].getVisible()||!this.getIgnoreHidden())&&n.extend(s[a].getPosition());this.getMap().fitBounds(n,r)},e.prototype.getGridSize=function(){return this.gridSize_},e.prototype.setGridSize=function(r){this.gridSize_=r},e.prototype.getMinimumClusterSize=function(){return this.minClusterSize_},e.prototype.setMinimumClusterSize=function(r){this.minClusterSize_=r},e.prototype.getMaxZoom=function(){return this.maxZoom_},e.prototype.setMaxZoom=function(r){this.maxZoom_=r},e.prototype.getZIndex=function(){return this.zIndex_},e.prototype.setZIndex=function(r){this.zIndex_=r},e.prototype.getStyles=function(){return this.styles_},e.prototype.setStyles=function(r){this.styles_=r},e.prototype.getTitle=function(){return this.title_},e.prototype.setTitle=function(r){this.title_=r},e.prototype.getZoomOnClick=function(){return this.zoomOnClick_},e.prototype.setZoomOnClick=function(r){this.zoomOnClick_=r},e.prototype.getAverageCenter=function(){return this.averageCenter_},e.prototype.setAverageCenter=function(r){this.averageCenter_=r},e.prototype.getIgnoreHidden=function(){return this.ignoreHidden_},e.prototype.setIgnoreHidden=function(r){this.ignoreHidden_=r},e.prototype.getEnableRetinaIcons=function(){return this.enableRetinaIcons_},e.prototype.setEnableRetinaIcons=function(r){this.enableRetinaIcons_=r},e.prototype.getImageExtension=function(){return this.imageExtension_},e.prototype.setImageExtension=function(r){this.imageExtension_=r},e.prototype.getImagePath=function(){return this.imagePath_},e.prototype.setImagePath=function(r){this.imagePath_=r},e.prototype.getImageSizes=function(){return this.imageSizes_},e.prototype.setImageSizes=function(r){this.imageSizes_=r},e.prototype.getCalculator=function(){return this.calculator_},e.prototype.setCalculator=function(r){this.calculator_=r},e.prototype.getBatchSizeIE=function(){return this.batchSizeIE_},e.prototype.setBatchSizeIE=function(r){this.batchSizeIE_=r},e.prototype.getClusterClass=function(){return this.clusterClass_},e.prototype.setClusterClass=function(r){this.clusterClass_=r},e.prototype.getMarkers=function(){return this.markers_},e.prototype.getTotalMarkers=function(){return this.markers_.length},e.prototype.getClusters=function(){return this.clusters_},e.prototype.getTotalClusters=function(){return this.clusters_.length},e.prototype.addMarker=function(r,s){this.pushMarkerTo_(r),s||this.redraw_()},e.prototype.addMarkers=function(r,s){for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&this.pushMarkerTo_(r[n]);s||this.redraw_()},e.prototype.pushMarkerTo_=function(r){var s=this;r.getDraggable()&&google.maps.event.addListener(r,"dragend",function(){s.ready_&&(r.isAdded=!1,s.repaint())}),r.isAdded=!1,this.markers_.push(r)},e.prototype.removeMarker=function(r,s){var n=this.removeMarker_(r);return!s&&n&&this.repaint(),n},e.prototype.removeMarkers=function(r,s){for(var n=!1,a=0;a<r.length;a++){var o=this.removeMarker_(r[a]);n=n||o}return!s&&n&&this.repaint(),n},e.prototype.removeMarker_=function(r){var s=-1;if(this.markers_.indexOf)s=this.markers_.indexOf(r);else for(var n=0;n<this.markers_.length;n++)if(r===this.markers_[n]){s=n;break}return s===-1?!1:(r.setMap(null),this.markers_.splice(s,1),!0)},e.prototype.clearMarkers=function(){this.resetViewport_(!0),this.markers_=[]}
vendor: 1,357 bytes, line 27
27,e.prototype.repaint=function(){var r=this.clusters_.slice();this.clusters_=[],this.resetViewport_(!1),this.redraw_(),setTimeout(function(){for(var s=0;s<r.length;s++)r[s].remove()},0)},e.prototype.getExtendedBounds=function(r){var s=this.getProjection(),n=new google.maps.LatLng(r.getNorthEast().lat(),r.getNorthEast().lng()),a=new google.maps.LatLng(r.getSouthWest().lat(),r.getSouthWest().lng()),o=s.fromLatLngToDivPixel(n);o.x+=this.gridSize_,o.y-=this.gridSize_;var h=s.fromLatLngToDivPixel(a);h.x-=this.gridSize_,h.y+=this.gridSize_;var l=s.fromDivPixelToLatLng(o),c=s.fromDivPixelToLatLng(h);return r.extend(l),r.extend(c),r},e.prototype.redraw_=function(){this.createClusters_(0)},e.prototype.resetViewport_=function(r){for(var s=0;s<this.clusters_.length;s++)this.clusters_[s].remove();this.clusters_=[];for(var s=0;s<this.markers_.length;s++){var n=this.markers_[s];n.isAdded=!1,r&&n.setMap(null)}},e.prototype.distanceBetweenPoints_=function(r,s){var n=6371,a=(s.lat()-r.lat())*Math.PI/180,o=(s.lng()-r.lng())*Math.PI/180,h=Math.sin(a/2)*Math.sin(a/2)+Math.cos(r.lat()*Math.PI/180)*Math.cos(s.lat()*Math.PI/180)*Math.sin(o/2)*Math.sin(o/2),l=2*Math.atan2(Math.sqrt(h),Math.sqrt(1-h));return n*l},e.prototype.isMarkerInBounds_=function(r,s){return s.contains(r.getPosition())},e.prototype.addToClosestCluster_=function(r){for(var s=4e4,n=null,a=0;
27a<this.clusters_.length;a++){var o=this.clusters_[a],h=o.getCenter();if(h){var l=this.distanceBetweenPoints_(h,r.getPosition());l<s&&(s=l,n=o)}}if(n&&n.isMarkerInClusterBounds(r))n.addMarker(r);else{var o=new Cluster(this);o.addMarker(r),this.clusters_.push(o)}},e.prototype.createClusters_=function(r){var s=this;if(this.ready_){r===0&&(google.maps.event.trigger(this,"clusteringbegin",this),typeof this.timerRefStatic<"u"&&(clearTimeout(this.timerRefStatic),delete this.timerRefStatic));for(var n=new google.maps.LatLngBounds(this.getMap().getBounds().getSouthWest(),this.getMap().getBounds().getNorthEast()),a=this.getExtendedBounds(n),o=Math.min(r+this.batchSize_,this.markers_.length),h=r;h<o;h++){var l=this.markers_[h];!l.isAdded&&this.isMarkerInBounds_(l,a)&&(!this.ignoreHidden_||this.ignoreHidden_&&l.getVisible())&&this.addToClosestCluster_(l)}if(o<this.markers_.length)this.timerRefStatic=window.setTimeout(function(){s.createClusters_(o)},0);else{delete this.timerRefStatic,google.maps.event.trigger(this,"clusteringend",this);for(var h=0;
27h<this.clusters_.length;h++)this.clusters_[h].updateIcon()}}},e.CALCULATOR=function(r,s){for(var n=0,a=r.length,o=a;o!==0;)o=Math.floor(o/10),n++;return n=Math.min(n,s),{text:a.toString(),index:n,title:""}},e.withDefaultStyle=function(r){return __assign({textColor:"black",textSize:11,textDecoration:"none",textLineHeight:r.height,fontWeight:"bold",fontStyle:"normal",fontFamily:"Arial,sans-serif",backgroundPosition:"0 0"},r)},e.BATCH_SIZE=2e3,e.BATCH_SIZE_IE=500,e.IMAGE_PATH="../images/m",e.IMAGE_EXTENSION="png",e.IMAGE_SIZES=[53,56,66,78,90],e})(OverlayViewSafe),isEqualWith_1,hasRequiredIsEqualWith;function requireIsEqualWith(){if(hasRequiredIsEqualWith)return isEqualWith_1;hasRequiredIsEqualWith=1;var t=require_baseIsEqual();function e(r,s,n){n=typeof n=="function"?n:void 0;var a=n?n(r,s):void 0;return a===void 0?t(r,s,void 0,n):!!a}return isEqualWith_1=e,isEqualWith_1}var isEqualWithExports=requireIsEqualWith();const isEqualWith=getDefaultExportFromCjs(isEqualWithExports);var isBoolean_1,hasRequiredIsBoolean;function requireIsBoolean(){if(hasRequiredIsBoolean)return isBoolean_1;hasRequiredIsBoolean=1;var t=require_baseGetTag(),e=requireIsObjectLike(),r="[object Boolean]";function s(n){return n===!0||n===!1||e(n)&&t(n)==r}return isBoolean_1=s,isBoolean_1}var isBooleanExports=requireIsBoolean();const isBoolean=getDefaultExportFromCjs(isBooleanExports);function getMarkersStyles(t){const e=initMarkersStyles(t);return Array.from(e.values())}function getMarkerStyleIndex(t,e){const r=initMarkersStyles(t);return Array.from(r.keys()).findIndex(n=>n===e)+1}function getCalculator(t){const e=getMarkerStyleIndex(t,"pin-atRest");return r=>{if(r.length===1&&r[0].location_count===1)return getPinIconInfo(r[0],t);let s=0;return r.forEach(n=>{s+=n.count}),s>1?getClusterIconInfo(r,s,t):{text:"1",index:e,title:""}}}function initMarkersStyles(t){const e=new Map;return e.set("pin-atRest",{url:t.atRest??"",height:32,width:25,anchorIcon:[32,12],anchorText:[4,0],textSize:12,textColor:""}),e.set("pin-blurred",{url:t.blurred??"",height:32,width:25,anchorIcon:[32,12],anchorText:[4,0],textSize:12,textColor:t.blurredTextColor?`#${t.blurredTextColor}`:""}),e.set("cluster-atRest",{url:t.clusterSemiBold,height:52,width:52,textSize:16,anchorText:[14,2],anchorIcon:[26,26],textColor:t.clusterTextColor}),e.set("cluster-blurred",{url:t.clusterSemiBold,height:52,width:53,textSize:16,anchorText:[14,2],anchorIcon:[26,26],textColor:t.blurredTextColor?`#${t.blurredTextColor}`:""}),e}function getPinIconInfo(t,e){const r=getMarkerStyleIndex(e,"pin-atRest"),s=getMar
27kerStyleIndex(e,"pin-blurred");let n=r;return isBoolean(t.selected)&&(n=t.selected===!0?r:s),{index:n,text:t.count.toString(10),title:""}}function getClusterIconInfo(t,e,r){const s=getMarkerStyleIndex(r,"cluster-atRest"),n=getMarkerStyleIndex(r,"cluster-blurred");let a=s;return isBoolean(t[0].selected)&&(a=t.some(h=>h.selected)?s:n),{index:a,text:e.toString(),title:""}}class MapClusterService{google;googleMap;pinsConfiguration;markers=new Map;markerClusterer;constructor(e,r,s){this.google=e,this.googleMap=r,this.pinsConfiguration=s}initMarkerCluster(){const e=getMarkersStyles(this.pinsConfiguration);this.markerClusterer=new MarkerClusterer(this.googleMap,[],{gridSize:50,minimumClusterSize:1,zoomOnClick:!1,styles:e}),this.markerClusterer.setCalculator(getCalculator(this.pinsConfiguration))}fitMapToMarkers(e=0){return this.markerClusterer.fitMapToMarkers(e)}fitGivenViewport(e){const r=this.google,s=convertEsToGoogleViewport(r,e),n=new r.maps.LatLngBounds(s.southwest,s.northeast);this.googleMap.setCenter(n.getCenter()),this.googleMap.fitBounds(n)}onClusterClick(e){this.google.maps.event.addListener(this.markerClusterer,"clusterclick",r=>{const s=[],n=r.getMarkers();n&&(n.forEach(a=>{s.push(...a.job_ad_ids)}),this.jobAdsAreInSameLocation(n)?e(s):(this.zoomInCluster(n),e()))})}jobAdsAreInSameLocation(e){return this.getCurrentZoom()===MAP_MAX_ZOOM?!0:e.length>1?!1:e[0].location_count===1}zoomInCluster(e){const r=this.google,s=new r.maps.LatLngBounds;e.forEach(n=>{const a=new r.maps.LatLngBounds(n.viewport.southwest,n.viewport.northeast);s.union(a)}),this.googleMap.setCenter(s.getCenter()),this.googleMap.fitBounds(s)}drawMarkers(e){const r=new Map,s=new Map,n=new Map;if(e){e.forEach(a=>{const o=`${a.location?.lat}/${a.location?.lon}/${a.count}`,h=this.markers.get(o);h?r.set(o,h):s.set(o,this.createMarker(a))});for(const[a,o]of this.markers)r.has(a)||(o.setMap(null),n.set(a,o));this.markerClusterer.removeMarkers(Array.from(n.values())),this.markerClusterer.addMarkers(Array.from(s.values()));for(const[a,o]of r)s.set(a,o);this.markers=s}}getCurrentZoom(){return this.googleMap.getZoom()}createMarker(e){const r=this.google,s={position:{lat:e.location?.lat,lng:e.location?.lon},label:e.count?.toString(),count:e.count,job_ad_ids:e.job_ad_ids,viewport:convertEsToGoogleViewport(r,e.viewport),location_count:e?.location_count,map:this.googleMap};return new r.maps.Marker(s)}resetMarkers(){this.markers.size!==0&&(this.markers.forEach(e=>{e.setMap(null)}),this.markers.clear(),this.markerClusterer.clearMarkers())}selectMarkerByJobAdIds(e){isEmpty(e)?this.markers.forEach(r=>{r.selected=void 0}):this.markers.forEach(r=>{r.selected=r.job_ad_ids.some(s=>isEqualWith(s,e[0],compareGeolocationJobAdIds))}),this.refreshMarkers()}refreshMarkers(){const e=this.markers;this.markerClusterer.clearMarkers(),this.markerClusterer.addMarkers(Array.from(e.values()))}}const _sfc_main$f=defineComponent({name:"MapWrapper",components:{Map:Map$1,MapOverlay,PoweredBy,IconButton},props:{extended:{type:Boolean,default:!1},colors:{type:Object,required:!0},mapMustBeHidden:{type:Boolean,default:!1},region:{type:String,default:""}},data(){return{isFullscreen:!1,mapZoom:DEFAULT_MAP_ZOOM,google:null,googleMap:null,mapClusterService:null}},computed:{domainName(){return useCareersSiteStore().domainName},localizedCareersSite(){return useCareersSiteStore().localizedCareersSite},jobAdListingSettings(){return useCareersSiteStore().jobAdListingSettings},withMap(){return useCareersSiteStore().withMap},googleLocationViewport(){return useJobAdsStore().googleLocationViewport},clusters(){return useJobAdsStore().clusters},geolocation(){return useJobAdsStore().geolocation},isMapIdle(){return useJobAdsStore().isMapIdle},currentViewport(){return useJobAdsStore().currentViewport},viewportResetted(){return useJobAdsStore().viewportResetted},highlightedPlace(){return useJobAdsStore().highlightedPlace},pinsConfiguration(){return useCareersSiteStore().pinsConfiguration},jobAdsToPreview(){return useJobAdsStore().jobAdsToPreview},googleMapsOptions(){return{mapTypeControl:!1,zoomControl:!0,scrollwheel:!0,streetViewControl:!1,minZoom:MAP_MIN_ZOOM,maxZoom:MAP_MAX_ZOOM,zoomControlOptions:{position:9}}},poweredBy(){if(this.localizedCareersSite){const{logo:t,link:e,text:r}=this.localizedCareersSite.powered_by;return{logo:t,link:toLinkProp(e),text:r}}},langForMap(){return this.$i18n.locale.substr(0,2)},enlargeMapText(){return getTranslationForKey("ui.enlarge-map",this)},map(){return this.$refs.map}},methods:{onMapToggle(){this.isFullscreen=!this.isFullscreen,this.$emit("mapToggle",this.isFullscreen)},onMapInit(t,e){if(this.google=t,this.googleMap=e,useJobAdsStore().isMapI
27dle=!1,this.mapClusterService=new MapClusterService(t,e,this.pinsConfiguration),this.mapClusterService.initMarkerCluster(),this.mapClusterService.onClusterClick(r=>{this.setJobAdsToPreview(r||[])}),this.googleLocationViewport&&!this.mapMustBeHidden){this.mapClusterService.fitGivenViewport(this.googleLocationViewport);return}this.$emit("onMapReady")},setJobAdsToPreview(t){useJobAdsStore().jobAdsToPreview=t},onBoundsChanged(){this.isMapIdle&&this.$parent.rescaleComponents()},onZoomChanged(t,e){if(this.isMapIdle){const r=useJobAdsStore();this.viewportResetted?r.viewportResetted=!1:(r.locationPlaceholder!==CURRENT_LOCATION_PLACEHOLDER&&this.setLocationPlaceholder(),this.mapClusterService?.resetMarkers(),this.reloadData(t,e,!0))}},onDragEnd(t,e){this.isMapIdle&&(this.setLocationPlaceholder(),this.reloadData(t,e,!0))},async onMapIdle(t,e){if(!t)return;const r=useJobAdsStore();this.isMapIdle||(r.isMapIdle=!0),this.googleLocationViewport&&(await this.reloadData(t,e),r.googleLocationViewport=null)},setLocationPlaceholder(){useJobAdsStore().locationPlaceholder=SELECT_AREA_PLACEHOLDER},async reloadData(t,e,r=!1){if(!t||this.mapMustBeHidden)return;const s=useJobAdsStore();s.mapZoom=e,s.setCurrentViewport({viewport:t});try{await s.fetchAndCommitJobAds({domainName:this.domainName,locale:makeFnfDatabaseLocale(this.$i18n.locale),searchByMap:r,withMap:this.withMap})}catch(n){throw maybeRedirectToMaintenance(this.$nuxt.context,n),n}},fitGivenViewport(){!this.currentViewport||this.mapMustBeHidden||(this.mapClusterService?.fitGivenViewport(this.currentViewport),this.mapClusterService?.resetMarkers(),this.reloadData(this.currentViewport,this.googleMap?.getZoom()))}},watch:{clusters:{deep:!0,handler(){this.mapClusterService&&(this.mapClusterService.drawMarkers(this.cluster
27s),this.currentViewport===null&&this.viewportResetted&&this.mapClusterService.fitMapToMarkers(52))}},geolocation:{deep:!0,handler(){!this.map||!this.map.map||(this.map.map.setCenter(this.geolocation),this.map.map.setZoom(MAP_GEOLOCATION_ZOOM))}},googleLocationViewport:{handler(){this.googleLocationViewport&&!this.mapMustBeHidden&&this.mapClusterService?.fitGivenViewport(this.googleLocationViewport)}},jobAdsToPreview:{immediate:!0,handler(){this.mapClusterService&&!this.mapMustBeHidden&&this.mapClusterService.selectMarkerByJobAdIds(this.jobAdsToPreview)}}}});var _sfc_render$f=function(){var e=this,r=e._self._c;return e._self._setupProxy,r("div",{staticClass:"map-container",class:{"map-container--full-screen":e.isFullscreen,"map-container--extended":e.extended}},[r("div",{staticClass:"map-container__wrapper",class:[e.isFullscreen?"map-container__wrapper--full-screen":""]},[r("div",{staticClass:"map-container__tools",class:[e.isFullscreen?"map-container__tools--active":""]},[r("IconButton",{staticClass:"button-rounded",attrs:{"bottom-icon":{text:"close",type:"close"}},on:{click:e.onMapToggle}}),r("IconButton",{staticClass:"button-rounded search",attrs:{"bottom-icon":{text:"filter",type:"search"}},on:{click:function(s){return e.$emit("researchButtonClick")}}}),r("IconButton",{staticClass:"button-rounded",attrs:{"bottom-icon":{text:"filter",type:"filter"}},on:{click:function(s){return e.$emit("filterButtonClick")}}})],1),e.isFullscreen?e._e():r("MapOverlay",{on:{"map-enlarge":e.onMapToggle}},[e._v(" "+e._s(e.enlargeMapText)+" ")]),r("Map",{ref:"map",class:{"google-map-wrapper--full-screen":e.isFullscreen},attrs:{language:e.langForMap,region:e.region,zoom:e.mapZoom,"api-key":e.jobAdListingSettings.google_api_key,options:e.googleMapsOptions,"highlighted-place-category":e.highlightedPlace?e.highlightedPlace.place_type:void 0,"highlighted-place-id":e.highlightedPlace?e.highlightedPlace.id:void 0,colors:e.colors},on:{init:e.onMapInit,"bounds-changed":e.onBoundsChanged,"zoom-changed":e.onZoomChanged,"drag-end":e.onDragEnd,idle:e.onMapIdle}}),r("PoweredBy",e._b({},"PoweredBy",e.poweredBy,!1))],1)])},_sfc_staticRenderFns$f=[],__component__$f=normalizeComponent(_sfc_main$f,_sfc_render$f,_sfc_staticRenderFns$f);const MapWrapper=__component__$f.exports,_sfc_main$e=defineComponent({name:"MobileFiltersButtons",components:{ResearchFields,IconButton},props:{extended:{type:Boolean,default:!1}},data(){return{researchButtonProps:{leftIcon:{text:"recherche",type:IconTypeValues.SEARCH}},keywordsLength:0,placeLabel:""}},computed:{jobAdsStore(){return useJobAdsStore(this.$pinia)},searchParameters(){return this.jobAdsStore.searchParameters},filterParameters(){return this.jobAdsStore.filterParameters},filterIconProps(){const t={label:this.$t("ui.filter")};return this.appliedFiltersLength===0&&(t.topIcon={text:"Filter",type:IconTypeValues.FILTER}),t},appliedFiltersLength(){let t=0;return Object.values(this.filterParameters).forEach(e=>{e?.length&&t++}),t},placeLabelClass(){return this.keywordsLength>0?"icon-button__label-place add-bullet":"icon-button__label-place"},keywordsMoreLabel(){return`+${this.keywordsLength-1}`},firstKeyword(){return this.keywordsLength>0?this.searchParameters.keywords[0]:""},hasKeywords(){return this.keywordsLength>0},hasPlaceLabel(){return this.placeLabel!==""}},methods:{onFilterParameters(){this.keywordsLength=this.searchParameters.keywords?.length;const t=this.jobAdsStore.locationPlaceholder;this.placeLabel=t===CURRENT_LOCATION_PLACEHOLDER?this.$t(CURRENT_LOCATION_PLACEHOLDER).toString():this.searchParameters.place?.label??""}},watch:{searchParameters:{handler:"onFilterParameters",deep:!0,immediate:!0}}});var _sfc_render$e=function(){var e=this,r=e._self._c;return e._self._setupProxy,r("div",{staticClass:"mobile-filters",class:{"mobile-filters--extended":e.extended}},[r("IconButton",e._b({staticClass:"mobile-filters__research-button",on:{click:function(s){return e.$emit("researchButtonClick")}},scopedSlots:e._u([{key:"label",fn:function(){return[e.hasKeywords?r("span",{staticClass:"icon-button__label-keywords"}
27,[e._v(" "+e._s(e.firstKeyword)+" ")]):e._e(),e.keywordsLength>1?r("span",{staticClass:"icon-button__label-keywords-more"},[e._v(" "+e._s(e.keywordsMoreLabel)+" ")]):e._e(),e.hasPlaceLabel?r("span",{class:e.placeLabelClass},[e._v(e._s(e.placeLabel))]):e._e(),!e.hasKeywords&&!e.hasPlaceLabel?[e._v(" "+e._s(e.$t("ui.type-your-search"))+" ")]:e._e()]},proxy:!0}])},"IconButton",e.researchButtonProps,!1)),r("IconButton",e._b({staticClass:"mobile-filters__filters-button",on:{click:function(s){return e.$emit("filterButtonClick")}},scopedSlots:e._u([e.appliedFiltersLength>0?{key:"label",fn:function(){return[r("div",{staticClass:"extended-template"},[r("span",{staticClass:"extended-template__count"},[e._v(e._s(e.appliedFiltersLength))]),e._v(" "+e._s(e.filterIconProps.label)+" ")])]},proxy:!0}:null],null,!0)},"IconButton",e.filterIconProps,!1))],1)},_sfc_staticRenderFns$e=[],__component__$e=normalizeComponent(_sfc_main$e,_sfc_render$e,_sfc_staticRenderFns$e);const MobileFiltersButtons=__component__$e.exports;var SubscriptionPostFrequencyEnum=(t=>(t.Daily="daily",t.Weekly="weekly",t))(SubscriptionPostFrequencyEnum||{});const _sfc_main$d=defineComponent({components:{DRDropdown,DRDropdownItem,Icon},props:{value:{type:String,default:SubscriptionPostFrequencyEnum.Daily}},data(){return{options:[],iconChecked:{type:IconTypeValues.CIRCLE_FULL,text:"ui.selected"},iconUnchecked:{type:IconTypeValues.CIRCLE_EMPTY,text:"ui.unselected"},openIndicator:{type:IconTypeValues.TRIANGLE_BASE_UP,text:"ui.open"}}},created(){this.options=Object.values(SubscriptionPostFrequencyEnum).map((t,e)=>({id:e,label:t,value:t})),this.iconChecked.text=this.$t(this.iconChecked.text),this.iconUnchecked.text=this.$t(this.iconUnchecked.text),this.openIndicator.text=this.$t(this.openIndicator.text)},computed:{dropdownItemClass(){return t=>({"dr-dropdown__body-list-item--selected":t===this.value})}},methods:{select(t){this.$emit("input",t),this.$refs.dropdown.hide()}}});var _sfc_render$d=function(){var e=this,r=e._self._c;return e._self._setupProxy,r("DRDropdown",{ref:"dropdown",staticClass:"subscribe-modal__frequency",attrs:{"append-icon":"",position:"right","open-indicator-icon":e.openIndicator},scopedSlots:e._u([{key:"label",fn:function(){return[e._v(" "+e._s(e.$t(`ui.alert-email.frequency.${e.value}`))+" ")]},proxy:!0}])},e._l(e.options,function(s){return r("DRDropdownItem",{key:s.id,class:e.dropdownItemClass(s.value),nativeOn:{click:function(n){return e.select(s.value)},keydown:function(n){return!n.type.indexOf("key")&&e._k(n.keyCode,"space",32,n.key,[" ","Spacebar"])?null:e.select(s.value)}}},[r("div",{attrs:{tabindex:"0"}},[e._v(" "+e._s(e.$t(`ui.alert-email.frequency.${s.label}`))+" "),r("Icon",e._b({staticClass:"frequency__radio-button"},"Icon",s.value===e.value?e.iconChecked:e.iconUnchecked,!1))],1)])}),1)},_sfc_staticRenderFns$d=[],__component__$d=normalizeComponent(_sfc_main$d,_sfc_render$d,_sfc_staticRenderFns$d);const SubscriptionFrequencyDropdown=__component__$d.exports;function validateEmail(t){return/^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/.test(t)}var __defProp=Object.defineProperty,__decorateClass=(t,e,r,s)=>{for(var n=void 0,a=t.length-1,o;a>=0;a--)(o=t[a])&&(n=o(e,r,n)||n);return n&&__defProp(e,r,n),n};class SubscriptionPostResponse{id;constructor(e){this.id=e.id}}__decorateClass([IsNumber()],SubscriptionPostResponse.prototype,"id");async function createSubscription(t,e,r,s,n,a,o){const h=o.replace("-","_");let l;try{const c=await useNuxtApp().$commonApi.createSubscription(t,e,r,s,n.keywords,n.place,a,h);l=new SubscriptionPostResponse(c)}catch(c){logAndThrowError(c)}return l}async function subscriptionValidation(t,e){try{await useNuxtApp().$commonApi.subscriptionValidation(t,e)}catch(r){logAndThrowError(r)}}async function unsubscribeFromEmailAlerts(t,e){try{await useNuxtApp().$commonApi.unsubscribe(t,e)}catch(r){logAndThrowError(r)}}const _sfc_main$c=defineComponent({components:{SubscriptionFrequencyDropdown,Modal,IconButton,Icon,Title,Paragraph,ModalFooter,DRTag,InputText,InputLabel,Button},mixins:[CommonConfigurationMixin],data(){return{headerIcon:{type:IconTypeValues.NOTIFICATION,text:"ui.notification"},closeIcon:{type:IconTypeValues.CLOSE,text:"ui.close"},alertIconExtended:{type:IconTypeValues.RINGING_BELL,text:"ui.notification"}
27,validatedIcon:{type:IconTypeValues.CHECK,text:"ui.valid"},warningIcon:{type:IconTypeValues.WARNING,text:"ui.invalid"},footerSettings:{text:"ui.alert-email.submit"},data:{name:"",email:"",frequency:SubscriptionPostFrequencyEnum.Daily},errors:{name:"",email:""},touched:{name:!1,email:!1},displaySuccessMessage:!1}},computed:{domainName(){return useCareersSiteStore().domainName},searchParameters(){return useJobAdsStore().searchParameters},filterParameters(){return useJobAdsStore().filterParameters},filters(){return useJobAdsStore().filters},researchRecapList(){const t=[...this.searchParameters.keywords];this.searchParameters.place?.label&&t.push(this.searchParameters.place.label.split(",")[0]);const e=[];return Object.keys(this.filterParameters).forEach(r=>{this.filterParameters[r].forEach(s=>{if(r!==FiltersValue.EntitiesFilter)if(r===FiltersValue.BrandFilter)e.push(this.getMarkName(parseInt(s.toString())));else{const n=this.filters[r].find(a=>a.id.toString()===s.toString());n?.name&&e.push(n.name)}})}),[...t,...e]},fieldClasses(){return{name:{"subscribe-modal__field":!0,"subscribe-modal__field--has-error":!isEmpty(this.errors.name)},email:{"subscribe-modal__field":!0,"subscribe-modal__field--has-error":!isEmpty(this.errors.email)}}},displayEmailValidIcon(){return!isEmpty(this.data.email)&&validateEmail(this.data.email)}},created(){this.closeIcon.text=this.$t(this.closeIcon.text),this.headerIcon.text=this.$t(this.headerIcon.text),this.validatedIcon.text=this.$t(this.validatedIcon.text),this.footerSettings.text=this.$t(this.footerSettings.text),this.prefillEmailIfAuthenticated()},methods:{async prefillEmailIfAuthenticated(){const t=useCandidateDashboardStore();await t.fetchSession(),t.isAuthenticated&&(await t.fetchCandidateProfile(),t.email&&isEmpty(this.data.email)&&(this.data.email=t.email))},validateForm(){return this.errors.name="",this.errors.email="",this.touched.name&&isEmpty(this.data.name)&&(this.errors.name=this.$t("ui.validation.required")),this.touched.email&&isEmpty(this.data.email)?this.errors.email=this.$t("ui.validation.required"):this.touched.email&&!validateEmail(this.data.email)&&(this.errors.email=this.$t("ui.validation.email")),isEmpty(this.errors.name)&&isEmpty(this.errors.email)},onChangeField(t){this.touched[t]=!0,this.validateForm()},submit(){this.displaySuccessMessage?this.$emit("close-modal"):(this.touched.email=!0,this.touched.name=!0,this.validateForm()&&createSubscription(this.domainName,this.data.name,this.data.email,this.data.frequency,this.searchParameters,this.filterParameters,makeFnfDatabaseLocale(this.$i18n.locale)).then(()=>{this.displaySuccessMessage=!0,this.footerSettings.text=this.$t("ui.alert-email.success-button")}).catch(t=>{const{name:e,email:r}=t.response?.data?.error?.validationErrors;e?.length&&(this.errors.name=e.join(" ")),r?.length&&(this.errors.email=r.join(" "))}))}}});var _sfc_render$c=function(){var e=this,r=e._self._c;return e._self._setupProxy,r("portal",{attrs:{to:"overlay"}},[r("div",{staticClass:"overlay",on:{click:function(s){return s.target!==s.currentTarget?null:e.$emit("close-modal")}}},[r("transition",{attrs:{appear:"",name:"subscribe-modal__transition"}},[r("Modal",{staticClass:"subscribe-modal",scopedSlots:e._u([{key:"header",fn:function(){return[r("div",{staticClass:"modal__header"},[r("Title",{attrs:{tag:"h4"}},[e._v(e._s(e.$t("ui.alert-email.title")))]),r("Icon",e._b({staticClass:"subscribe-modal__header-icon",attrs:{inline:!0}},"Icon",e.headerIcon,!1)),r("Icon",e._b({staticClass:"modal__close-button",on:{click:function(s){return e.$emit("close-modal")}}},"Icon",e.closeIcon,!1))],1)]},proxy:!0},{key:"body",fn:function(){return[e.displaySuccessMessage?r("div",[r("Title",{attrs:{tag:"h4"}},[e._v(e._s(e.$t("ui.alert-email.success-title")))]),r("div",{staticClass:"modal__subtitle"},[r("Paragraph",[e._v(" "+e._s(e.$t("ui.alert-email.success-description"))+" ")])],1)],1):r("div",[r("Title",{attrs:{tag:"h4"}},[e._v(e._s(e.$t("ui.alert-email.title")))]),r("div",{staticClass:"modal__subtitle"},[r("Icon",e._b({staticClass:"subscribe-modal__alert-icon-extended"},"Icon",e.alertIconExtended,!1)),r("Paragraph",[e._v(" "+e._s(e.$t("ui.alert-email.subtitle"))+" ")])],1),r("div",{staticClass:"subscribe-modal__field"},[r("Paragraph",{staticClass:"subscribe-modal__label subscribe-modal__label--bold"},[e._v(" "+e._s(e.$t("ui.alert-email.recap"))+" ")]),r("div",{staticClass:"subscribe-modal__recap-list"},e._l(e.researchRecapList,function(s,n){return r("DRTag",{key:n,scopedSlots:e._u([{key:"description",fn:function(){return[e._v(e._s(s))]},proxy:!0}],null,!0)})}),1)],1),r("div",{class:e.fieldClasses.name},[r("InputLabel",{staticClass:"subscribe-modal__label subscribe-modal__label--required",attrs:{label:e.$t("ui.alert-email.labels.name")}}),r("InputText",{staticClass:"subscribe-modal__input",attrs:{id:"name",placeholder:e.$t("ui.alert-email.placeholders.name"),type:"text",name:"name",required:!0},on:{change:function(s){return e.onChangeField("name")}},model:{value:e.data.name,callback:function(s){e.$set(e.data,"name",s)},expression:"data.name"}}),e.errors.name?r("Icon",e._b({staticClass:"subscribe-modal__warning-icon"}
27,"Icon",e.warningIcon,!1)):e._e(),e.errors.name?r("p",{staticClass:"error"},[r("Icon",e._b({},"Icon",e.warningIcon,!1)),e._v(" "+e._s(e.errors.name)+" ")],1):e._e()],1),r("div",{class:e.fieldClasses.email},[r("InputLabel",{staticClass:"subscribe-modal__label subscribe-modal__label--required",attrs:{label:e.$t("ui.alert-email.labels.email")}}),r("InputText",{staticClass:"subscribe-modal__input",attrs:{id:"email",placeholder:e.$t("ui.alert-email.placeholders.email"),name:"email",required:!0},on:{change:function(s){return e.onChangeField("email")},input:function(s){e.errors.email&&e.onChangeField("email")}},model:{value:e.data.email,callback:function(s){e.$set(e.data,"email",s)},expression:"data.email"}}),e.displayEmailValidIcon?r("Icon",e._b({staticClass:"subscribe-modal__email-valid-icon"},"Icon",e.validatedIcon,!1)):e._e(),e.errors.email?r("Icon",e._b({staticClass:"subscribe-modal__warning-icon"},"Icon",e.warningIcon,!1)):e._e(),e.errors.email?r("p",{staticClass:"error"},[r("Icon",e._b({},"Icon",e.warningIcon,!1)),e._v(" "+e._s(e.errors.email)+" ")],1):e._e()],1),r("div",{staticClass:"subscribe-modal__field"},[r("InputLabel",{staticClass:"subscribe-modal__label subscribe-modal__label--required",attrs:{label:e.$t("ui.alert-email.labels.frequency")}}),r("SubscriptionFrequencyDropdown",{model:{value:e.data.frequency,callback:function(s){e.$set(e.data,"frequency",s)},expression:"data.frequency"}})],1)],1)]},proxy:!0},{key:"footer",fn:function(){return[r("ModalFooter",e._b({on:{"footer-event":e.submit}},"ModalFooter",e.footerSettings,!1))]},proxy:!0}])})],1)],1)])},_sfc_staticRenderFns$c=[],__component__$c=normalizeComponent(_sfc_main$c,_sfc_render$c,_sfc_staticRenderFns$c);const SubscribeMixin=__component__$c.exports,_sfc_main$b=defineComponent({name:"SubscribeModal",mixins:[SubscribeMixin,BaseModalMixin]}),_sfc_render$b=null,_sfc_staticRenderFns$b=null;var __component__$b=normalizeComponent(_sfc_main$b,_sfc_render$b,_sfc_staticRenderFns$b);const SubscribeModal=__component__$b.exports,_sfc_main$a=defineComponent({name:"SubscribeManagement",components:{Modal,ModalFooter,Title,Icon,IconButton},extends:SubscribeMixin,props:{isSubscribe:{type:Boolean,default:!1},extended:{type:Boolean,default:!1}},data(){return{footerSettings:{text:"ui.alert-email.back-job-ads"}}},computed:{modalTitle(){return this.isSubscribe?this.$t("ui.alert-email.first-email-alert-modal-title"):this.$t("ui.alert-email.unsubscribe-modal-title")},modalDescription(){return this.isSubscribe?this.$t("ui.alert-email.first-email-alert-modal-description"):this.$t("ui.alert-email.unsubscribe-modal-description")}},methods:{closeModal(){this.$emit("close-modal")}}});var _sfc_render$a=function(){var e=this,r=e._self._c;return e._self._setupProxy,r("portal",{attrs:{to:"overlay"}},[r("div",{staticClass:"overlay",on:{click:function(s){return s.target!==s.currentTarget?null:e.closeModal.apply(null,arguments)}}},[r("Modal",{staticClass:"subscribe-modal",scopedSlots:e._u([{key:"header",fn:function(){return[r("div",{staticClass:"modal__header"},[r("Icon",e._b({staticClass:"subscribe-modal__header-icon",attrs:{inline:"true"}},"Icon",e.headerIcon,!1)),e.extended?r("Title",{attrs:{tag:"h4"}},[e._v(e._s(e.modalTitle))]):e._e(),r("Icon",e._b({staticClass:"modal__close-button",on:{click:function(s){return e.$emit("close-modal")}}},"Icon",e.closeIcon,!1))],1)]},proxy:!0},{key:"body",fn:function(){return[r("Title",{attrs:{tag:"h4"}},[e._v(e._s(e.modalTitle))]),r("div",{staticClass:"modal__subtitle"},[r("Paragraph",[e._v(" "+e._s(e.modalDescription)+" ")])],1)]},proxy:!0},{key:"footer",fn:function(){return[r("ModalFooter",e._b({on:{"footer-event":e.closeModal}},"ModalFooter",e.footerSettings,!1))]},proxy:!0}])})],1)])},_sfc_staticRenderFns$a=[],__component__$a=normalizeComponent(_sfc_main$a,_sfc_render$a,_sfc_staticRenderFns$a);const SubscribeManagement=__component__$a.exports,_sfc_main$9=defineComponent({name:"DropBox",components:{Paragraph,Picture,Button},props:{pictureSrc:{type:String,default:DROPBOX_DEFAULT_IMAGE},text:{type:String,required:!0},details:{type:String},disabled:{type:Boolean,default:!1}},data(){return{filename:null,dragover:!1}},computed:{className(){return{dropbox:!0,"dropbox--disabled":this.disabled,"dropbox--dragover":this.dragover}}},methods:{onDragOver(){this.disabled||(this.dragover=!0)},onDragLeave(){this.disabled||(this.dragover=!1)},onDrop(t){if(!this.disabled){const e=this.$refs.inputFile;e.files=t.dataTransfer?.files||null,this.onFileChange(),this.onDragLeave()}this.$emit("drop",t)},onFileChange(){const t=this.$refs.inputFile;t.files&&t.files[0]&&(this.filename=t.files[0].name,this.$emit("change",t.files[0]))},triggerFileInputClick(){this.disabled||this.$refs.inputFile.click(),this.$emit("click")},stopEventPropagation(t){t.stopPropagation()}}});var _sfc_render$9=function(){var e=this,r=e._self._c;return e._self._setupProxy,r("div",{class:e.className,on:{dragover:function(s){return s.preventDefault(),e.onDragOver.apply(null,arguments)},dragleave:function(s){return s.preventDefault(),e.onDragLeave.apply(null,arguments)},drop:function(s){return s.preventDefault(),e.onDrop.apply(null,arguments)},click:e.triggerFileInputClick}},[r("Picture",{attrs:{src:e.pictureSrc,display_alt:!1,alt:""}}),r("Button",{staticClass:"dropbox__upload-button",attrs:{disabled:e.disabled,variant:e.disabled?"disabled":"primary"}
27,on:{keyup:function(s){return!s.type.indexOf("key")&&e._k(s.keyCode,"enter",13,s.key,"Enter")?null:e.triggerFileInputClick.apply(null,arguments)}}},[e._v(" "+e._s(e.text)+" ")]),e.filename?r("span",[e._v(e._s(e.filename))]):e._e(),r("input",{ref:"inputFile",attrs:{disabled:e.disabled,type:"file",tabindex:"-1"},on:{change:e.onFileChange,click:e.stopEventPropagation}}),r("Paragraph",{staticClass:"dropbox__details"},[e._v(e._s(e.details))])],1)},_sfc_staticRenderFns$9=[],__component__$9=normalizeComponent(_sfc_main$9,_sfc_render$9,_sfc_staticRenderFns$9);const DropBox=__component__$9.exports,_sfc_main$8=defineComponent({components:{DropBox,Paragraph,ButtonCheckbox},data(){return{consent:!1,consentErrorMessage:""}},methods:{updateConsentErrorMessage(){this.consentErrorMessage=this.consent?"":this.$t("ui.matching.consent-error")},changeConsent(){this.updateConsentErrorMessage(),this.$nextTick(()=>{this.$emit("content-change")})},onUpload(t){this.$emit("upload",t)}}});var _sfc_render$8=function(){var e=this,r=e._self._c;return e._self._setupProxy,r("div",{staticClass:"matching-modal__body matching-modal__upload-view"},[r("Paragraph",{staticClass:"matching-modal__subtitle"},[e._v(" "+e._s(e.$t("ui.matching.subtitle"))+" ")]),r("ButtonCheckbox",{staticClass:"matching-modal__consent",attrs:{value:"true"},on:{change:e.changeConsent},model:{value:e.consent,callback:function(s){e.consent=s},expression:"consent"}},[e._v(" "+e._s(e.$t("ui.matching.consent"))+" ")]),r("Paragraph",{staticClass:"matching-modal__consent-error"},[e._v(" "+e._s(e.consentErrorMessage)+" ")]),r("DropBox",{attrs:{disabled:!e.consent,text:e.$t("ui.matching.drag-and-drop-file"),details:e.$t("ui.matching.upload-details")},on:{change:e.onUpload,click:e.updateConsentErrorMessage,drop:e.updateConsentErrorMessage}})],1)},_sfc_staticRenderFns$8=[],__component__$8=normalizeComponent(_sfc_main$8,_sfc_render$8,_sfc_staticRenderFns$8);const UploadView=__component__$8.exports;function highlightDigitsInText(t){return t.replace(/"[^"]*"|'[^']*'|(\d+)/g,function(e,r){return r?'<span class="highlighted-text">'+r+"</span>":e})}const _sfc_main$7=defineComponent({name:"NavigationDots",components:{Icon},props:{total:{type:Number,required:!0},index:{type:Number,default:0}},data(){return{icon:{text:"",type:IconTypeValues.CIRCLE_FULL}}}});var _sfc_render$7=function(){var e=this,r=e._self._c;return e._self._setupProxy,r("div",{staticClass:"navigation-dots"},e._l(e.total,function(s){return r("Icon",e._b({key:s,class:s===e.index?"selected":""},"Icon",e.icon,!1))}),1)},_sfc_staticRenderFns$7=[],__component__$7=normalizeComponent(_sfc_main$7,_sfc_render$7,_sfc_staticRenderFns$7);const NavigationDots=__component__$7.exports;var lottie$2={exports:{}},lottie$1=lottie$2.exports,hasRequiredLottie;function requireLottie(){return hasRequiredLottie||(hasRequiredLottie=1,(function(module,exports$1){typeof navigator<"u"&&(function(t,e){module.exports=e()})(lottie$1,(function(){var svgNS="http://www.w3.org/2000/svg",locationHref="",_useWebWorker=!1,initialDefaultFrame=-999999,setWebWorker=function(e){_useWebWorker=!!e},getWebWorker=function(){return _useWebWorker},setLocationHref=function(e){locationHref=e},getLocationHref=function(){return locationHref};function createTag(t){return document.createElement(t)}function extendPrototype(t,e){var r,s=t.length,n;for(r=0;r<s;r+=1){n=t[r].prototype;for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e.prototype[a]=n[a])}}function getDescriptor(t,e){return Object.getOwnPropertyDescriptor(t,e)}function createProxyFunction(t){function e(){}return e.prototype=t,e}var audioControllerFactory=(function(){function t(e){this.audios=[],this.audioFactory=e,this._volume=1,this._isMuted=!1}return t.prototype={addAudio:function(r){this.audios.push(r)},pause:function(){var r,s=this.audios.length;for(r=0;r<s;r+=1)this.audios[r].pause()},resume:function(){var r,s=this.audios.length;for(r=0;r<s;r+=1)this.audios[r].resume()},setRate:function(r){var s,n=this.audios.length;for(s=0;s<n;s+=1)this.audios[s].setRate(r)},createAudio:function(r){return this.audioFactory?this.audioFactory(r):window.Howl?new window.Howl({src:[r]}):{isPlaying:!1,play:function(){this.isPlaying=!0},seek:function(){this.isPlaying=!1},playing:function(){},rate:function(){},setVolume:function(){}}},setAudioFactory:function(r){this.audioFactory=r},setVolume:function(r){this._volume=r,this._updateVolume()},mute:function(){this._isMuted=!0,this._updateVolume()},unmute:function(){this._isMuted=!1,this._updateVolume()},getVolume:function(){return this._volume},_updateVolume:function(){var r,s=this.audios.length;for(r=0;r<s;r+=1)this.audios[r].volume(this._volume*(this._isMuted?0:1))}},function(){return new t}})(),createTypedArray=(function(){function t(r,s){var n=0,a=[],o;switch(r){case"int16":case"uint8c":o=1;break;default:o=1.1;break}for(n=0;n<s;n+=1)a.push(o);return a}function e(r,s){return r==="float32"?new Float32Array(s):r==="int16"?new Int16Array(s):r==="uint8c"?new Uint8ClampedArray(s):t(r,s)}return typeof Uint8ClampedArray=="function"&&typeof Float32Array=="function"?e:t})();function createSizedArray(t){return Array.apply(null,{length:t})}function _typeof$6(t){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof$6=function(r){return typeof r}:_typeof$6=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},_typeof$6(t)}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 t=["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"],e,r=t.length;for(e=0;e<r;e+=1)BMMath[t[e]]=Math[t[e]]})(),BMMath.random=Math.random,BMMath.abs=function(t){var e=_typeof$6(t);if(e==="object"&&t.length){var r=createSizedArray(t.length),s,n=t.length;for(s=0;s<n;s+=1)r[s]=Math.abs(t[s]);return r}return Math.abs(t)};var defaultCurveSegments=150,degToRads=Math.PI/180,roundCorner=.5519;function styleDiv(t){t.style.position="absolute",t.style.top=0,t.style.left=0,t.style.display="block",t.style.transformOrigin="0 0",t.style.webkitTransformOrigin="0 0",t.style.backfaceVisibility="visible",t.style.webkitBackfaceVisibility="visible",t.style.transformStyle="preserve-3d",t.style.webkitTransformStyle="preserve-3d",t.style.mozTransformStyle="preserve-3d"}function BMEnterFrameEvent(t,e,r,s){this.type=t,this.currentTime=e,this.totalTime=r,this.direction=s<0?-1:1}function BMCompleteEvent(t,e){this.type=t,this.direction=e<0?-1:1}function BMCompleteLoopEvent(t,e,r,s){this.type=t,this.currentLoop=r,this.totalLoops=e,this.direction=s<0?-1:1}function BMSegmentStartEvent(t,e,r){this.type=t,this.firstFrame=e,this.totalFrames=r}function BMDestroyEvent(t,e){this.type=t,this.target=e}function BMRenderFrameErrorEvent(t,e){this.type="renderFrameError",this.nativeError=t,this.currentTime=e}function BMConfigErrorEvent(t){this.type="configError",this.nativeError=t}var createElementID=(function(){var t=0;return function(){return t+=1,idPrefix$1+"__lottie_element_"+t}})();function HSVtoRGB(t,e,r){var s,n,a,o,h,l,c,m;switch(o=Math.floor(t*6),h=t*6-o,l=r*(1-e),c=r*(1-h*e),m=r*(1-(1-h)*e),o%6){case 0:s=r,n=m,a=l;break;case 1:s=c,n=r,a=l;break;case 2:s=l,n=r,a=m;break;case 3:s=l,n=c,a=r;break;case 4:s=m,n=l,a=r;break;case 5:s=r,n=l,a=c;break}return[s,n,a]}function RGBtoHSV(t,e,r){var s=Math.max(t,e,r),n=Math.min(t,e,r),a=s-n,o,h=s===0?0:a/s,l=s/255;switch(s){case n:o=0;break;case t:o=e-r+a*(e<r?6:0),o/=6*a;break;case e:o=r-t+a*2,o/=6*a;break;case r:o=t-e+a*4,o/=6*a;break}return[o,h,l]}function addSaturationToRGB(t,e){var r=RGBtoHSV(t[0]*255,t[1]*255,t[2]*255);return r[1]+=e,r[1]>1?r[1]=1:r[1]<=0&&(r[1]=0),HSVtoRGB(r[0],r[1],r[2])}function addBrightnessToRGB(t,e){var r=RGBtoHSV(t[0]*255,t[1]*255,t[2]*255);return r[2]+=e,r[2]>1?r[2]=1:r[2]<0&&(r[2]=0),HSVtoRGB(r[0],r[1],r[2])}function addHueToRGB(t,e){var r=RGBtoHSV(t[0]*255,t[1]*255,t[2]*255);return r[0]+=e/360,r[0]>1?r[0]-=1:r[0]<0&&(r[0]+=1),HSVtoRGB(r[0],r[1],r[2])}var rgbToHex=(function(){var t=[],e,r;for(e=0;e<256;e+=1)r=e.toString(16),t[e]=r.length===1?"0"+r:r;return function(s,n,a){return s<0&&(s=0),n<0&&(n=0),a<0&&(a=0),"#"+t[s]+t[n]+t[a
vendor: 95,854 bytes, lines 27-35
27]}})(),setSubframeEnabled=function(e){subframeEnabled=!!e},getSubframeEnabled=function(){return subframeEnabled},setExpressionsPlugin=function(e){expressionsPlugin=e},getExpressionsPlugin=function(){return expressionsPlugin},setExpressionInterfaces=function(e){expressionsInterfaces=e},getExpressionInterfaces=function(){return expressionsInterfaces},setDefaultCurveSegments=function(e){defaultCurveSegments=e},getDefaultCurveSegments=function(){return defaultCurveSegments},setIdPrefix=function(e){idPrefix$1=e};function createNS(t){return document.createElementNS(svgNS,t)}function _typeof$5(t){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof$5=function(r){return typeof r}:_typeof$5=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},_typeof$5(t)}var dataManager=(function(){var t=1,e=[],r,s,n={onmessage:function(){},postMessage:function(b){r({data:b})}},a={postMessage:function(b){n.onmessage({data:b})}};function o(u){if(window.Worker&&window.Blob&&getWebWorker()){var b=new Blob(["var _workerSelf = self; self.onmessage = ",u.toString()],{type:"text/javascript"}),_=URL.createObjectURL(b);return new Worker(_)}return r=u,n}function h(){s||(s=o(function(b){function _(){function E(D,A){var T,y,S=D.length,R,k,V,q;for(y=0;y<S;y+=1)if(T=D[y],"ks"in T&&!T.completed){if(T.completed=!0,T.hasMask){var G=T.masksProperties;for(k=G.length,R=0;R<k;R+=1)if(G[R].pt.k.i)P(G[R].pt.k);else for(q=G[R].pt.k.length,V=0;V<q;V+=1)G[R].pt.k[V].s&&P(G[R].pt.k[V].s[0]),G[R].pt.k[V].e&&P(G[R].pt.k[V].e[0])}T.ty===0?(T.layers=p(T.refId,A),E(T.layers,A)):T.ty===4?v(T.shapes):T.ty===5&&O(T)}}function d(D,A){if(D){var T=0,y=D.length;for(T=0;T<y;T+=1)D[T].t===1&&(D[T].data.layers=p(D[T].data.refId,A),E(D[T].data.layers,A))}}function f(D,A){for(var T=0,y=A.length;T<y;){if(A[T].id===D)return A[T];T+=1}return null}function p(D,A){var T=f(D,A);return T?T.layers.__used?JSON.parse(JSON.stringify(T.layers)):(T.layers.__used=!0,T.layers):null}function v(D){var A,T=D.length,y,S;for(A=T-1;A>=0;A-=1)if(D[A].ty==="sh")if(D[A].ks.k.i)P(D[A].ks.k);else for(S=D[A].ks.k.length,y=0;y<S;y+=1)D[A].ks.k[y].s&&P(D[A].ks.k[y].s[0]),D[A].ks.k[y].e&&P(D[A].ks.k[y].e[0]);else D[A].ty==="gr"&&v(D[A].it)}function P(D){var A,T=D.i.length;for(A=0;A<T;A+=1)D.i[A][0]+=D.v[A][0],D.i[A][1]+=D.v[A][1],D.o[A][0]+=D.v[A][0],D.o[A][1]+=D.v[A][1]}function M(D,A){var T=A?A.split("."):[100,100,100];return D[0]>T[0]?!0:T[0]>D[0]?!1:D[1]>T[1]?!0:T[1]>D[1]?!1:D[2]>T[2]?!0:T[2]>D[2]?!1:null}var w=(function(){var D=[4,4,14];function A(y){var S=y.t.d;y.t.d={k:[{s:S,t:0}]}}function T(y){var S,R=y.length;for(S=0;S<R;S+=1)y[S].ty===5&&A(y[S])}return function(y){if(M(D,y.v)&&(T(y.layers),y.assets)){var S,R=y.assets.length;for(S=0;S<R;S+=1)y.assets[S].layers&&T(y.assets[S].layers)}}})(),I=(function(){var D=[4,7,99];return function(A){if(A.chars&&!M(D,A.v)){var T,y=A.chars.length;for(T=0;T<y;T+=1){var S=A.chars[T];S.data&&S.data.shapes&&(v(S.data.shapes),S.data.ip=0,S.data.op=99999,S.data.st=0,S.data.sr=1,S.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}},A.chars[T].t||(S.data.shapes.push({ty:"no"}),S.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"})))}}}})(),B=(function(){var D=[5,7,15];function A(y){var S=y.t.p;typeof S.a=="number"&&(S.a={a:0,k:S.a}),typeof S.p=="number"&&(S.p={a:0,k:S.p}),typeof S.r=="number"&&(S.r={a:0,k:S.r})}function T(y){var S,R=y.length;for(S=0;S<R;S+=1)y[S].ty===5&&A(y[S])}return function(y){if(M(D,y.v)&&(T(y.layers),y.assets)){var S,R=y.assets.length;for(S=0;S<R;S+=1)y.assets[S].layers&&T(y.assets[S].layers)}}})(),x=(function(){var D=[4,1,9];function A(y){var S,R=y.length,k,V;for(S=0;S<R;S+=1)if(y[S].ty==="gr")A(y[S].it);else if(y[S].ty==="fl"||y[S].ty==="st")if(y[S].c.k&&y[S].c.k[0].i)for(V=y[S].c.k.length,k=0;k<V;k+=1)y[S].c.k[k].s&&(y[S].c.k[k].s[0]/=255,y[S].c.k[k].s[1]/=255,y[S].c.k[k].s[2]/=255,y[S].c.k[k].s[3]/=255),y[S].c.k[k].e&&(y[S].c.k[k].e[0]/=255,y[S].c.k[k].e[1]/=255,y[S].c.k[k].e[2]/=255,y[S].c.k[k].e[3]/=255);else y[S].c.k[0]/=255,y[S].c.k[1]/=255,y[S].c.k[2]/=255,y[S].c.k[3]/=255}function T(y){var S,R=y.length;for(S=0;S<R;S+=1)y[S].ty===4&&A(y[S].shapes)}return function(y){if(M(D,y.v)&&(T(y.layers),y.assets)){var S,R=y.assets.length;for(S=0;S<R;S+=1)y.assets[S].layers&&T(y.assets[S].layers)}}})(),L=(function(){var D=[4,4,18];function A(y){var S,R=y.length,k,V;for(S=R-1;S>=0;S-=1)if(y[S].ty==="sh")if(y[S].ks.k.i)y[S].ks.k.c=y[S].closed;else for(V=y[S].ks.k.length,k=0;k<V;k+=1)y[S].ks.k[k].s&&(y[S].ks.k[k].s[0].c=y[S].closed),y[S].ks.k[k].e&&(y[S].ks.k[k].e[0].c=y[S].closed);else y[S].ty==="gr"&&A(y[S].it)}function T(y){var S,R,k=y.length,V,q,G,H;for(R=0;R<k;R+=1){if(S=y[R],S.hasMask){var W=S.masksProperties;for(q=W.length,V=0;V<q;V+=1)if(W[V].pt.k.i)W[V].pt.k.c=W[V].cl;else for(H=W[V].pt.k.length,G=0;G<H;G+=1)W[V].pt.k[G].s&&(W[V].pt.k[G].s[0].c=W[V].cl),W[V].pt.k[G].e&&(W[V].pt.k[G].e[0].c=W[V].cl)}S.ty===4&&A(S.shapes)}}return function(y){if(M(D,y.v)&&(T(y.layers),y.assets)){var S,R=y.assets.length;for(S=0;S<R;S+=1)y.assets[S].layers&&T(y.assets[S].layers)}}})();function F(D){D.__complete||(x(D),w(D),I(D),B(D),L(D),E(D.layers,D.assets),d(D.chars,D.assets),D.__complete=!0)}function O(D){D.t.a.length===0&&"m"in D.t.p}var $={};return $.completeData=F,$.checkColors=x,$.checkChars=I,$.checkPathProperties=B,$.checkShapes=L,$.completeLayers=E,$}if(a.dataManager||(a.dataManager=_()),a.assetLoader||(a.assetLoader=(function(){function E(f){var p=f.getResponseHeader("content-type");return p&&f.responseType==="json"&&p.indexOf("json")!==-1||f.response&&_typeof$5(f.response)==="object"?f.response:f.response&&typeof f.response=="string"?JSON.parse(f.response):f.responseText?JSON.parse(f.responseText):null}function d(f,p,v,P){var M,w=new XMLHttpRequest;try{w.responseType="json"}catch{}w.onreadystatechange=function(){if(w.readyState===4)if(w.status===200)M=E(w),v(M);else try{M=E(w),v(M)}catch(I){P&&P(I)}};try{w.open(["G","E","T"].join(""),f,!0)}catch{w.open(["G","E","T"].join(""),p+"/"+f,!0)}w.send()}return{load:d}})()),b.data.type==="loadAnimation")a.assetLoader.load(b.data.path,b.data.fullPath,function(E){a.dataManager.completeData(E),a.postMessage({id:b.data.id,payload:E,status:"success"})},function(){a.postMessage({id:b.data.id,status:"error"})});else if(b.data.type==="complete"){var g=b.data.animation;a.dataManager.completeData(g),a.postMessage({id:b.data.id,payload:g,status:"success"})}else b.data.type==="loadData"&&a.assetLoader.load(b.data.path,b.data.fullPath,function(E){a.postMessage({id:b.data.id,payload:E,status:"success"})},function(){a.postMessage({id:b.data.id,status:"error"})})}),s.onmessage=function(u){var b=u.data,_=b.id,g=e[_];e[_]=null,b.status==="success"?g.onComplete(b.payload):g.onError&&g.onError()})}function l(u,b){t+=1;var _="processId_"+t;return e[_]={onComplete:u,onError:b},_}function c(u,b,_){h();var g=l(b,_);s.postMessage({type:"loadAnimation",path:u,fullPath:window.location.origin+window.location.pathname,id:g})}function m(u,b,_){h();var g=l(b,_);s.postMessage({type:"loadData",path:u,fullPath:window.location.origin+window.location.pathname,id:g})}function C(u,b,_){h();var g=l(b,_);s.postMessage({type:"complete",animation:u,id:g})}return{loadAnimation:c,loadData:m,completeAnimation:C}})(),ImagePreloader=(function(){var t=(function(){var d=createTag("canvas");d.width=1,d.height=1;var f=d.getContext("2d");return f.fillStyle="rgba(0,0,0,0)",f.fillRect(0,0,1,1),d})();function e(){this.loadedAssets+=1,this.loadedAssets===this.totalImages&&this.loadedFootagesCount===this.totalFootages&&this.imagesLoadedCb&&this.imagesLoadedCb(null)}function r(){this.loadedFootagesCount+=1,this.loadedAssets===this.totalImages&&this.loadedFootagesCount===this.totalFootages&&this.imagesLoadedCb&&this.imagesLoadedCb(null)}function s(d,f,p){var v="";if(d.e)v=d.p;else if(f){var P=d.p;P.indexOf("images/")!==-1&&(P=P.split("/")[1]),v=f+P}else v=p,v+=d.u?d.u:"",v+=d.p;return v}function n(d){var f=0,p=setInterval((function(){var v=d.getBBox();(v.width||f>500)&&(this._imageLoaded(),clearInterval(p)),f+=1}).bind(this),50)}function a(d){var f=s(d,this.assetsPath,this.path),p=createNS("image");isSafari?this.testImageLoaded(p):p.addEventListener("load",this._imageLoaded,!1),p.addEventListener("error",(function(){v.img=t,this._imageLoaded()}).bind(this),!1),p.setAttributeNS("http://www.w3.org/1999/xlink","href",f),this._elementHelper.append?this._elementHelper.append(p):this._elementHelper.appendChild(p);var v={img:p,assetData:d};return v}function o(d){var f=s(d,this.assetsPath,this.path),p=createTag("img");p.crossOrigin="anonymous",p.addEventListener("load",this._imageLoaded,!1),p.addEventListener("error",(function(){v.img=t,this._imageLoaded()}).bind(this),!1),p.src=f;var v={img:p,assetData:d};return v}function h(d){var f={assetData:d},p=s(d,this.assetsPath,this.path);return dataManager.loadData(p,(function(v){f.img=v,this._footageLoaded()}).bind(this),(function(){f.img={},this._footageLoaded()}).bind(this)),f}function l(d,f){this.imagesLoadedCb=f;var p,v=d.length;for(p=0;p<v;p+=1)d[p].layers||(!d[p].t||d[p].t==="seq"?(this.totalImages+=1,this.images.push(this._createImageData(d[p]))):d[p].t===3&&(this.totalFootages+=1,this.images.push(this.createFootageData(d[p]))))}function c(d){this.path=d||""}function m(d){this.assetsPath=d||""}function C(d){for(var f=0,p=this.images.length;f<p;){if(this.images[f].assetData===d)return this.images[f].img;f+=1}return null}function u(){this.imagesLoadedCb=null,this.images.length=0}function b(){return this.totalImages===this.loadedAssets}function _(){return this.totalFootages===this.loadedFootagesCount}function g(d,f){d==="svg"?(this._elementHelper=f,this._createImageData=this.createImageData.bind(this)):this._createImageData=this.createImgData.bind(this)}function E(){this._imageLoaded=e.bind(this),this._footageLoaded=r.bind(this),this.testImageLoaded=n.bind(this),this.createFootageData=h.bind(this),this.assetsPath="",this.path="",this.totalImages=0,this.totalFootages=0,this.loadedAssets=0,this.loadedFootagesCount=0,this.imagesLoadedCb=null,this.images=[]}return E.prototype={loadAssets:l,setAssetsPath:m,setPath:c,loadedImages:b,loadedFootages:_,destroy:u,getAsset:C,createImgData:o,createImageData:a,imageLoaded:e,footageLoaded:r,setCacheType:g},E})();function BaseEvent(){}BaseEvent.prototype={triggerEvent:function(e,r){if(this._cbs[e])for(var s=this._cbs[e],n=0;n<s.length;n+=1)s[n](r)},addEventListener:function(e,r){return this._cbs[e]||(this._cbs[e]=[]),this._cbs[e].push(r),(function(){this.removeEventListener(e,r)}).bind(this)},removeEventListener:function(e,r){if(!r)this._cbs[e]=null;else if(this._cbs[e]){for(var s=0,n=this._cbs[e].length;s<n;)this._cbs[e][s]===r&&(this._cbs[e].splice(s,1),s-=1,n-=1),s+=1;this._cbs[e].length||(this._cbs[e]=null)}}};var markerParser=(function(){function t(e){for(var r=e.split(`\r
28`),s={},n,a=0,o=0;o<r.length;o+=1)n=r[o].split(":"),n.length===2&&(s[n[0]]=n[1].trim(),a+=1);if(a===0)throw new Error;return s}return function(e){for(var r=[],s=0;s<e.length;s+=1){var n=e[s],a={time:n.tm,duration:n.dr};try{a.payload=JSON.parse(e[s].cm)}catch{try{a.payload=t(e[s].cm)}catch{a.payload={name:e[s].cm}}}r.push(a)}return r}})(),ProjectInterface=(function(){function t(e){this.compositions.push(e)}return function(){function e(r){for(var s=0,n=this.compositions.length;s<n;){if(this.compositions[s].data&&this.compositions[s].data.nm===r)return this.compositions[s].prepareFrame&&this.compositions[s].data.xt&&this.compositions[s].prepareFrame(this.currentFrame),this.compositions[s].compInterface;s+=1}return null}return e.compositions=[],e.currentFrame=0,e.registerComposition=t,e}})(),renderers={},registerRenderer=function(e,r){renderers[e]=r};function getRenderer(t){return renderers[t]}function getRegisteredRenderer(){if(renderers.canvas)return"canvas";for(var t in renderers)if(renderers[t])return t;return""}function _typeof$4(t){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof$4=function(r){return typeof r}:_typeof$4=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},_typeof$4(t)}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(t){(t.wrapper||t.container)&&(this.wrapper=t.wrapper||t.container);var e="svg";t.animType?e=t.animType:t.renderer&&(e=t.renderer);var r=getRenderer(e);this.renderer=new r(this,t.rendererSettings),this.imagePreloader.setCacheType(e,this.renderer.globalData.defs),this.renderer.setProjectInterface(this.projectInterface),this.animType=e,t.loop===""||t.loop===null||t.loop===void 0||t.loop===!0?this.loop=!0:t.loop===!1?this.loop=!1:this.loop=parseInt(t.loop,10),this.autoplay="autoplay"in t?t.autoplay:!0,this.name=t.name?t.name:"",this.autoloadSegments=Object.prototype.hasOwnProperty.call(t,"autoloadSegments")?t.autoloadSegments:!0,this.assetsPath=t.assetsPath,this.initialSegment=t.initialSegment,t.audioFactory&&this.audioController.setAudioFactory(t.audioFactory),t.animationData?this.setupAnimation(t.animationData):t.path&&(t.path.lastIndexOf("\\")!==-1?this.path=t.path.substr(0,t.path.lastIndexOf("\\")+1):this.path=t.path.substr(0,t.path.lastIndexOf("/")+1),this.fileName=t.path.substr(t.path.lastIndexOf("/")+1),this.fileName=this.fileName.substr(0,this.fileName.lastIndexOf(".json")),dataManager.loadAnimation(t.path,this.configAnimation,this.onSetupError))},AnimationItem.prototype.onSetupError=function(){this.trigger("data_failed")},AnimationItem.prototype.setupAnimation=function(t){dataManager.completeAnimation(t,this.configAnimation)},AnimationItem.prototype.setData=function(t,e){e&&_typeof$4(e)!=="object"&&(e=JSON.parse(e));var r={wrapper:t,animationData:e},s=t.attributes;r.path=s.getNamedItem("data-animation-path")?s.getNamedItem("data-animation-path").value:s.getNamedItem("data-bm-path")?s.getNamedItem("data-bm-path").value:s.getNamedItem("bm-path")?s.getNamedItem("bm-path").value:"",r.animType=s.getNamedItem("data-anim-type")?s.getNamedItem("data-anim-type").value:s.getNamedItem("data-bm-type")?s.getNamedItem("data-bm-type").value:s.getNamedItem("bm-type")?s.getNamedItem("bm-type").value:s.getNamedItem("data-bm-renderer")?s.getNamedItem("data-bm-renderer").value:s.getNamedItem("bm-renderer")?s.getNamedItem("bm-renderer").value:getRegisteredRenderer()||"canvas";var n=s.getNamedItem("data-anim-loop")?s.getNamedItem("data-anim-loop").value:s.getNamedItem("data-bm-loop")?s.getNamedItem("data-bm-loop").value:s.getNamedItem("bm-loop")?s.getNamedItem("bm-loop").value:"";n==="false"?r.loop=!1:n==="true"?r.loop=!0:n!==""&&(r.loop=parseInt(n,10));var a=s.getNamedItem("data-anim-autoplay")?s.getNamedItem("data-anim-autoplay").value:s.getNamedItem("data-bm-autoplay")?s.getNamedItem("data-bm-autoplay").value:s.getNamedItem("bm-autoplay")?s.getNamedItem("bm-autoplay").value:!0;r.autoplay=a!=="false",r.name=s.getNamedItem("data-name")?s.getNamedItem("data-name").value:s.getNamedItem("data-bm-name")?s.getNamedItem("data-bm-name").value:s.getNamedItem("bm-name")?s.getNamedItem("bm-name").value:"";var o=s.getNamedItem("data-anim-prerender")?s.getNamedItem("data-anim-prerender").value:s.getNamedItem("data-bm-prerender")?s.getNamedItem("data-bm-prerender").value:s.getNamedItem("bm-prerender")?s.getNamedItem("bm-prerender").value:"";o==="false"&&(r.prerender=!1),r.path?this.setParams(r):this.trigger("destroy")},AnimationItem.prototype.includeLayers=function(t){t.op>this.animationData.op&&(this.animationData.op=t.op,this.totalFrames=Math.floor(t.op-this.animationData.ip));var e=this.animationData.layers,r,s=e.length,n=t.layers,a,o=n.length;for(a=0;a<o;a+=1)for(r=0;r<s;){if(e[r].id===n[a].id){e[r]=n[a];break}r+=1}if((t.chars||t.fonts)&&(this.renderer.globalData.fontManager.addChars(t.chars),this.renderer.globalData.fontManager.addFonts(t.fonts,this.renderer.globalData.defs)),t.assets)for(s=t.assets.length,r=0;r<s;r+=1)this.animationData.assets.push(t.assets[r]);this.animationData.__complete=!1,dataManager.completeAnimation(this.animationData,this.onSegmentComplete)},AnimationItem.prototype.onSegmentComplete=function(t){this.animationData=t;var e=getExpressionsPlugin();e&&e.initExpressions(this),this.loadNextSegment()},AnimationItem.prototype.loadNextSegment=function(){var t=this.animationData.segments;if(!t||t.length===0||!this.autoloadSegments){this.trigger("data_ready"),this.timeCompleted=this.totalFrames;return}var e=t.shift();this.timeCompleted=e.time*this.frameRate;var r=this.path+this.fileName+"_"+this.segmentPos+".json";this.segmentPos+=1,dataManager.loadData(r,this.includeLayers.bind(this),(function(){this.trigger("data_failed")}).bind(this))},AnimationItem.prototype.loadSegments=function(){var t=this.animationData.segments;t||(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(t){if(this.renderer)try{this.animationData=t,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(t),t.assets||(t.assets=[]),this.assets=this.animationData.assets,this.frameRate=this.animationData.fr,this.frameMult=this.animationData.fr/1e3,this.renderer.searchExtraCompositions(t.assets),this.markers=markerParser(t.markers||[]),this.trigger("config_ready"),this.preloadImages(),this.loadSegments(),this.updaFrameModifier(),this.waitForFontsLoaded(),this.isPaused&&this.audioController.pause()}catch(e){this.triggerConfigError(e)}},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 t=getExpressionsPlugin();t&&t.initExpressions(this),this.renderer.initItems(),setTimeout((function(){this.trigger("DOMLoaded")}).bind(this),0),this.gotoFrame(),this.autoplay&&this.play()}},AnimationItem.prototype.resize=function(t,e){var r=typeof t=="number"?t:void 0,s=typeof e=="number"?e:void 0;this.renderer.updateContainerSize(r,s)},AnimationItem.prototype.setSubframe=function(t){this.isSubframeEnabled=!!t},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(t){this.triggerRenderFrameError(t)}},AnimationItem.prototype.play=function(t){t&&this.name!==t||this.isPaused===!0&&(this.isPaused=!1,this.trigger("_play"),this.audioController.resume(),this._idle&&(this._idle=!1,this.trigger("_active")))},AnimationItem.prototype.pause=function(t){t&&this.name!==t||this.isPaused===!1&&(this.isPaused=!0,this.trigger("_pause"),this._idle=!0,this.trigger("_idle"),this.audioController.pause())},AnimationItem.prototype.togglePause=function(t){t&&this.name!==t||(this.isPaused===!0?this.play():this.pause())},AnimationItem.prototype.stop=function(t){t&&this.name!==t||(this.pause(),this.playCount=0,this._completedLoop=!1,this.setCurrentRawFrameValue(0))},AnimationItem.prototype.getMarkerData=function(t){for(var e,r=0;r<this.markers.length;r+=1)if(e=this.markers[r],e.payload&&e.payload.name===t)return e;return null},AnimationItem.prototype.goToAndStop=function(t,e,r){if(!(r&&this.name!==r)){var s=Number(t);if(isNaN(s)){var n=this.getMarkerData(t);n&&this.goToAndStop(n.time,!0)}else e?this.setCurrentRawFrameValue(t):this.setCurrentRawFrameValue(t*this.frameModifier);this.pause()}},AnimationItem.prototype.goToAndPlay=function(t,e,r){if(!(r&&this.name!==r)){var s=Number(t);if(isNaN(s)){var n=this.getMarkerData(t);n&&(n.duration?this.playSegments([n.time,n.time+n.duration],!0):this.goToAndStop(n.time,!0))}else this.goToAndStop(s,e,r);this.play()}},AnimationItem.prototype.advanceTime=function(t){if(!(this.isPaused===!0||this.isLoaded===!1)){var e=this.currentRawFrame+t*this.frameModifier,r=!1;e>=this.totalFrames-1&&this.frameModifier>0?!this.loop||this.playCount===this.loop?this.checkSegments(e>this.totalFrames?e%this.totalFrames:0)||(r=!0,e=this.totalFrames-1):e>=this.totalFrames?(this.playCount+=1,this.checkSegments(e%this.totalFrames)||(this.setCurrentRawFrameValue(e%this.totalFrames),this._completedLoop=!0,this.trigger("loopComplete"))):this.setCurrentRawFrameValue(e):e<0?this.checkSegments(e%this.totalFrames)||(this.loop&&!(this.playCount--<=0&&this.loop!==!0)?(this.setCurrentRawFrameValue(this.totalFrames+e%this.totalFrames),this._completedLoop?this.trigger("loopComplete"):this._completedLoop=!0):(r=!0,e=0)):this.setCurrentRawFrameValue(e),r&&(this.setCurrentRawFrameValue(e),this.pause(),this.trigger("complete"))}},AnimationItem.prototype.adjustSegment=function(t,e){this.playCount=0,t[1]<t[0]?(this.frameModifier>0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(-1)),this.totalFrames=t[0]-t[1],this.timeCompleted=this.totalFrames,this.firstFrame=t[1],this.setCurrentRawFrameValue(this.totalFrames-.001-e)):t[1]>t[0]&&(this.frameModifier<0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(1)),this.totalFrames=t[1]-t[0],this.timeCompleted=this.totalFrames,this.firstFrame=t[0],this.setCurrentRawFrameValue(.001+e)),this.trigger("segmentStart")},AnimationItem.prototype.setSegment=function(t,e){var r=-1;this.isPaused&&(this.currentRawFrame+this.firstFrame<t?r=t:this.currentRawFrame+this.firstFrame>e&&(r=e-t)),this.firstFrame=t,this.totalFrames=e-t,this.timeCompleted=this.totalFrames,r!==-1&&this.goToAndStop(r,!0)},AnimationItem.prototype.playSegments=function(t,e){if(e&&(this.segments.length=0),_typeof$4(t[0])==="object"){var r,s=t.length;for(r=0;r<s;r+=1)this.segments.push(t[r])}else this.segments.push(t);this.segments.length&&e&&this.adjustSegment(this.segments.shift(),0),this.isPaused&&this.play()},AnimationItem.prototype.resetSegments=function(t){this.segments.length=0,this.segments.push([this.animationData.ip,this.animationData.op]),t&&this.checkSegments(0)},AnimationItem.prototype.checkSegments=function(t){return this.segments.length?(this.adjustSegment(this.segments.shift(),t),!0):!1},AnimationItem.prototype.destroy=function(t){t&&this.name!==t||!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(t){this.currentRawFrame=t,this.gotoFrame()},AnimationItem.prototype.setSpeed=function(t){this.playSpeed=t,this.updaFrameModifier()},AnimationItem.prototype.setDirection=function(t){this.playDirection=t<0?-1:1,this.updaFrameModifier()},AnimationItem.prototype.setLoop=function(t){this.loop=t},AnimationItem.prototype.setVolume=function(t,e){e&&this.name!==e||this.audioController.setVolume(t)},AnimationItem.prototype.getVolume=function(){return this.audioController.getVolume()},AnimationItem.prototype.mute=function(t){t&&this.name!==t||this.audioController.mute()},AnimationItem.prototype.unmute=function(t){t&&this.name!==t||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(t){var e="";if(t.e)e=t.p;else if(this.assetsPath){var r=t.p;r.indexOf("images/")!==-1&&(r=r.split("/")[1]),e=this.assetsPath+r}else e=this.path,e+=t.u?t.u:"",e+=t.p;return e},AnimationItem.prototype.getAssetData=function(t){for(var e=0,r=this.assets.length;e<r;){if(t===this.assets[e].id)return this.assets[e];e+=1}return null},AnimationItem.prototype.hide=function(){this.renderer.hide()},AnimationItem.prototype.show=function(){this.renderer.show()},AnimationItem.prototype.getDuration=function(t){return t?this.totalFrames:this.totalFrames/this.frameRate},AnimationItem.prototype.updateDocumentData=function(t,e,r){try{var s=this.renderer.getElementByPath(t);s.updateDocumentData(e,r)}catch{}},AnimationItem.prototype.trigger=function(t){if(this._cbs&&this._cbs[t])switch(t){case"enterFrame":this.triggerEvent(t,new BMEnterFrameEvent(t,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(t,this.drawnFrameEvent);break;case"loopComplete":this.triggerEvent(t,new BMCompleteLoopEvent(t,this.loop,this.playCount,this.frameMult));break;case"complete":this.triggerEvent(t,new BMCompleteEvent(t,this.frameMult));break;case"segmentStart":this.triggerEvent(t,new BMSegmentStartEvent(t,this.firstFrame,this.totalFrames));break;case"destroy":this.triggerEvent(t,new BMDestroyEvent(t,this));break;default:this.triggerEvent(t)}t==="enterFrame"&&this.onEnterFrame&&this.onEnterFrame.call(this,new BMEnterFrameEvent(t,this.currentFrame,this.totalFrames,this.frameMult)),t==="loopComplete"&&this.onLoopComplete&&this.onLoopComplete.call(this,new BMCompleteLoopEvent(t,this.loop,this.playCount,this.frameMult)),t==="complete"&&this.onComplete&&this.onComplete.call(this,new BMCompleteEvent(t,this.frameMult)),t==="segmentStart"&&this.onSegmentStart&&this.onSegmentStart.call(this,new BMSegmentStartEvent(t,this.firstFrame,this.totalFrames)),t==="destroy"&&this.onDestroy&&this.onDestroy.call(this,new BMDestroyEvent(t,this))},AnimationItem.prototype.triggerRenderFrameError=function(t){var e=new BMRenderFrameErrorEvent(t,this.currentFrame);this.triggerEvent("error",e),this.onError&&this.onError.call(this,e)},AnimationItem.prototype.triggerConfigError=function(t){var e=new BMConfigErrorEvent(t,this.currentFrame);this.triggerEvent("error",e),this.onError&&this.onError.call(this,e)};var animationManager=(function(){var t={},e=[],r=0,s=0,n=0,a=!0,o=!1;function h(A){for(var T=0,y=A.target;T<s;)e[T].animation===y&&(e.splice(T,1),T-=1,s-=1,y.isPaused||C()),T+=1}function l(A,T){if(!A)return null;for(var y=0;y<s;){if(e[y].elem===A&&e[y].elem!==null)return e[y].animation;y+=1}var S=new AnimationItem;return u(S,A),S.setData(A,T),S}function c(){var A,T=e.length,y=[];for(A=0;A<T;A+=1)y.push(e[A].animation);return y}function m(){n+=1,x()}function C(){n-=1}function u(A,T){A.addEventListener("destroy",h),A.addEventListener("_active",m),A.addEventListener("_idle",C),e.push({elem:T,animation:A}),s+=1}function b(A){var T=new AnimationItem;return u(T,null),T.setParams(A),T}function _(A,T){var y;for(y=0;y<s;y+=1)e[y].animation.setSpeed(A,T)}function g(A,T){var y;for(y=0;y<s;y+=1)e[y].animation.setDirection(A,T)}function E(A){var T;for(T=0;T<s;T+=1)e[T].animation.play(A)}function d(A){var T=A-r,y;for(y=0;y<s;y+=1)e[y].animation.advanceTime(T);r=A,n&&!o?window.requestAnimationFrame(d):a=!0}function f(A){r=A,window.requestAnimationFrame(d)}function p(A){var T;for(T=0;T<s;T+=1)e[T].animation.pause(A)}function v(A,T,y){var S;for(S=0;S<s;S+=1)e[S].animation.goToAndStop(A,T,y)}function P(A){var T;for(T=0;T<s;T+=1)e[T].animation.stop(A)}function M(A){var T;for(T=0;T<s;T+=1)e[T].animation.togglePause(A)}function w(A){var T;for(T=s-1;T>=0;T-=1)e[T].animation.destroy(A)}function I(A,T,y){var S=[].concat([].slice.call(document.getElementsByClassName("lottie")),[].slice.call(document.getElementsByClassName("bodymovin"))),R,k=S.length;for(R=0;R<k;R+=1)y&&S[R].setAttribute("data-bm-type",y),l(S[R],A);if(T&&k===0){y||(y="svg");var V=document.getElementsByTagName("body")[0];V.innerText="";var q=createTag("div");q.style.width="100%",q.style.height="100%",q.setAttribute("data-bm-type",y),V.appendChild(q),l(q,A)}}function B(){var A;for(A=0;A<s;A+=1)e[A].animation.resize()}function x(){!o&&n&&a&&(window.requestAnimationFrame(f),a=!1)}function L(){o=!0}function F(){o=!1,x()}function O(A,T){var y;for(y=0;y<s;y+=1)e[y].animation.setVolume(A,T)}function $(A){var T;for(T=0;T<s;T+=1)e[T].animation.mute(A)}function D(A){var T;for(T=0;T<s;T+=1)e[T].animation.unmute(A)}return t.registerAnimation=l,t.loadAnimation=b,t.setSpeed=_,t.setDirection=g,t.play=E,t.pause=p,t.stop=P,t.togglePause=M,t.searchAnimations=I,t.resize=B,t.goToAndStop=v,t.destroy=w,t.freeze=L,t.unfreeze=F,t.setVolume=O,t.mute=$,t.unmute=D,t.getRegisteredAnimations=c,t})(),BezierFactory=(function(){var t={};t.getBezierEasing=r;var e={};function r(f,p,v,P,M){var w=M||("bez_"+f+"_"+p+"_"+v+"_"+P).replace(/\./g,"p");if(e[w])return e[w];var I=new d([f,p,v,P]);return e[w]=I,I}var s=4,n=.001,a=1e-7,o=10,h=11,l=1/(h-1),c=typeof Float32Array=="function";function m(f,p){return 1-3*p+3*f}function C(f,p){return 3*p-6*f}function u(f){return 3*f}function b(f,p,v){return((m(p,v)*f+C(p,v))*f+u(p))*f}function _(f,p,v){return 3*m(p,v)*f*f+2*C(p,v)*f+u(p)}function g(f,p,v,P,M){var w,I,B=0;do I=p+(v-p)/2,w=b(I,P,M)-f,w>0?v=I:p=I;while(Math.abs(w)>a&&++B<o);return I}function E(f,p,v,P){for(var M=0;M<s;++M){var w=_(p,v,P);if(w===0)return p;var I=b(p,v,P)-f;p-=I/w}return p}function d(f){this._p=f,this._mSampleValues=c?new Float32Array(h):new Array(h),this._precomputed=!1,this.get=this.get.bind(this)}return d.prototype={get:function(p){var v=this._p[0],P=this._p[1],M=this._p[2],w=this._p[3];return this._precomputed||this._precompute(),v===P&&M===w?p:p===0?0:p===1?1:b(this._getTForX(p),P,w)},_precompute:function(){var p=this._p[0],v=this._p[1],P=this._p[2],M=this._p[3];this._precomputed=!0,(p!==v||P!==M)&&this._calcSampleValues()},_calcSampleValues:function(){for(var p=this._p[0],v=this._p[2],P=0;P<h;++P)this._mSampleValues[P]=b(P*l,p,v)},_getTForX:function(p){for(var v=this._p[0],P=this._p[2],M=this._mSampleValues,w=0,I=1,B=h-1;I!==B&&M[I]<=p;++I)w+=l;--I;var x=(p-M[I])/(M[I+1]-M[I]),L=w+x*l,F=_(L,v,P);return F>=n?E(p,L,v,P):F===0?L:g(p,w,w+l,v,P)}},t})(),pooling=(function(){function t(e){return e.concat(createSizedArray(e.length))}return{double:t}})(),poolFactory=(function(){return function(t,e,r){var s=0,n=t,a=createSizedArray(n),o={newElement:h,release:l};function h(){var c;return s?(s-=1,c=a[s]):c=e(),c}function l(c){s===n&&(a=pooling.double(a),n*=2),r&&r(c),a[s]=c,s+=1}return o}})(),bezierLengthPool=(function(){function t(){return{addedLength:0,percents:createTypedArray("float32",getDefaultCurveSegments()),lengths:createTypedArray("float32",getDefaultCurveSegments())}}return poolFactory(8,t)})(),segmentsLengthPool=(function(){function t(){return{lengths:[],totalLength:0}}function e(r){var s,n=r.lengths.length;for(s=0;s<n;s+=1)bezierLengthPool.release(r.lengths[s]);r.lengths.length=0}return poolFactory(8,t,e)})();function bezFunction(){var t=Math;function e(u,b,_,g,E,d){var f=u*g+b*E+_*d-E*g-d*u-_*b;return f>-.001&&f<.001}function r(u,b,_,g,E,d,f,p,v){if(_===0&&d===0&&v===0)return e(u,b,g,E,f,p);var P=t.sqrt(t.pow(g-u,2)+t.pow(E-b,2)+t.pow(d-_,2)),M=t.sqrt(t.pow(f-u,2)+t.pow(p-b,2)+t.pow(v-_,2)),w=t.sqrt(t.pow(f-g,2)+t.pow(p-E,2)+t.pow(v-d,2)),I;return P>M?P>w?I=P-M-w:I=w-M-P:w>M?I=w-M-P:I=M-P-w,I>-1e-4&&I<1e-4}var s=(function(){return function(u,b,_,g){var E=getDefaultCurveSegments(),d,f,p,v,P,M=0,w,I=[],B=[],x=bezierLengthPool.newElement();for(p=_.length,d=0;d<E;d+=1){for(P=d/(E-1),w=0,f=0;f<p;f+=1)v=bmPow(1-P,3)*u[f]+3*bmPow(1-P,2)*P*_[f]+3*(1-P)*bmPow(P,2)*g[f]+bmPow(P,3)*b[f],I[f]=v,B[f]!==null&&(w+=bmPow(I[f]-B[f],2)),B[f]=I[f];w&&(w=bmSqrt(w),M+=w),x.percents[d]=P,x.lengths[d]=M}return x.addedLength=M,x}})();function n(u){var b=segmentsLengthPool.newElement(),_=u.c,g=u.v,E=u.o,d=u.i,f,p=u._length,v=b.lengths,P=0;for(f=0;f<p-1;f+=1)v[f]=s(g[f],g[f+1],E[f],d[f+1]),P+=v[f].addedLength;return _&&p&&(v[f]=s(g[f],g[0],E[f],d[0]),P+=v[f].addedLength),b.totalLength=P,b}function a(u){this.segmentLength=0,this.points=new Array(u)}function o(u,b){this.partialLength=u,this.point=b}var h=(function(){var u={};return function(b,_,g,E){var d=(b[0]+"_"+b[1]+"_"+_[0]+"_"+_[1]+"_"+g[0]+"_"+g[1]+"_"+E[0]+"_"+E[1]).replace(/\./g,"p");if(!u[d]){var f=getDefaultCurveSegments(),p,v,P,M,w,I=0,B,x,L=null;b.length===2&&(b[0]!==_[0]||b[1]!==_[1])&&e(b[0],b[1],_[0],_[1],b[0]+g[0],b[1]+g[1])&&e(b[0],b[1],_[0],_[1],_[0]+E[0],_[1]+E[1])&&(f=2);var F=new a(f);for(P=g.length,p=0;p<f;p+=1){for(x=createSizedArray(P),w=p/(f-1),B=0,v=0;v<P;v+=1)M=bmPow(1-w,3)*b[v]+3*bmPow(1-w,2)*w*(b[v]+g[v])+3*(1-w)*bmPow(w,2)*(_[v]+E[v])+bmPow(w,3)*_[v],x[v]=M,L!==null&&(B+=bmPow(x[v]-L[v],2));B=bmSqrt(B),I+=B,F.points[p]=new o(B,x),L=x}F.segmentLength=I,u[d]=F}return u[d]}})();function l(u,b){var _=b.percents,g=b.lengths,E=_.length,d=bmFloor((E-1)*u),f=u*b.addedLength,p=0;if(d===E-1||d===0||f===g[d])return _[d];for(var v=g[d]>f?-1:1,P=!0;P;)if(g[d]<=f&&g[d+1]>f?(p=(f-g[d])/(g[d+1]-g[d]),P=!1):d+=v,d<0||d>=E-1){if(d===E-1)return _[d];P=!1}return _[d]+(_[d+1]-_[d])*p}function c(u,b,_,g,E,d){var f=l(E,d),p=1-f,v=t.round((p*p*p*u[0]+(f*p*p+p*f*p+p*p*f)*_[0]+(f*f*p+p*f*f+f*p*f)*g[0]+f*f*f*b[0])*1e3)/1e3,P=t.round((p*p*p*u[1]+(f*p*p+p*f*p+p*p*f)*_[1]+(f*f*p+p*f*f+f*p*f)*g[1]+f*f*f*b[1])*1e3)/1e3;return[v,P]}var m=createTypedArray("float32",8);function C(u,b,_,g,E,d,f){E<0?E=0:E>1&&(E=1);var p=l(E,f);d=d>1?1:d;var v=l(d,f),P,M=u.length,w=1-p,I=1-v,B=w*w*w,x=p*w*w*3,L=p*p*w*3,F=p*p*p,O=w*w*I,$=p*w*I+w*p*I+w*w*v,D=p*p*I+w*p*v+p*w*v,A=p*p*v,T=w*I*I,y=p*I*I+w*v*I+w*I*v,S=p*v*I+w*v*v+p*I*v,R=p*v*v,k=I*I*I,V=v*I*I+I*v*I+I*I*v,q=v*v*I+I*v*v+v*I*v,G=v*v*v;for(P=0;P<M;P+=1)m[P*4]=t.round((B*u[P]+x*_[P]+L*g[P]+F*b[P])*1e3)/1e3,m[P*4+1]=t.round((O*u[P]+$*_[P]+D*g[P]+A*b[P])*1e3)/1e3,m[P*4+2]=t.round((T*u[P]+y*_[P]+S*g[P]+R*b[P])*1e3)/1e3,m[P*4+3]=t.round((k*u[P]+V*_[P]+q*g[P]+G*b[P])*1e3)/1e3;return m}return{getSegmentsLength:n,getNewSegment:C,getPointInSegment:c,buildBezierData:h,pointOnLine2D:e,pointOnLine3D:r}}var bez=bezFunction(),initFrame=initialDefaultFrame,mathAbs=Math.abs;function interpolateValue(t,e){var r=this.offsetTime,s;this.propType==="multidimensional"&&(s=createTypedArray("float32",this.pv.length));for(var n=e.lastIndex,a=n,o=this.keyframes.length-1,h=!0,l,c,m;h;){if(l=this.keyframes[a],c=this.keyframes[a+1],a===o-1&&t>=c.t-r){l.h&&(l=c),n=0;break}if(c.t-r>t){n=a;break}a<o-1?a+=1:(n=0,h=!1)}m=this.keyframesMetadata[a]||{};var C,u,b,_,g,E,d=c.t-r,f=l.t-r,p;if(l.to){m.bezierData||(m.bezierData=bez.buildBezierData(l.s,c.s||l.e,l.to,l.ti));var v=m.bezierData;if(t>=d||t<f){var P=t>=d?v.points.length-1:0;for(u=v.points[P].point.length,C=0;C<u;C+=1)s[C]=v.points[P].point[C]}else{m.__fnct?E=m.__fnct:(E=BezierFactory.getBezierEasing(l.o.x,l.o.y,l.i.x,l.i.y,l.n).get,m.__fnct=E),b=E((t-f)/(d-f));var M=v.segmentLength*b,w,I=e.lastFrame<t&&e._lastKeyframeIndex===a?e._lastAddedLength:0;for(g=e.lastFrame<t&&e._lastKeyframeIndex===a?e._lastPoint:0,h=!0,_=v.points.length;h;){if(I+=v.points[g].partialLength,M===0||b===0||g===v.points.length-1){for(u=v.points[g].point.length,C=0;C<u;C+=1)s[C]=v.points[g].point[C];break}else if(M>=I&&M<I+v.points[g+1].partialLength){for(w=(M-I)/v.points[g+1].partialLength,u=v.points[g].point.length,C=0;C<u;C+=1)s[C]=v.points[g].point[C]+(v.points[g+1].point[C]-v.points[g].point[C])*w;break}g<_-1?g+=1:h=!1}e._lastPoint=g,e._lastAddedLength=I-v.points[g].partialLength,e._lastKeyframeIndex=a}}else{var B,x,L,F,O;if(o=l.s.length,p=c.s||l.e,this.sh&&l.h!==1)if(t>=d)s[0]=p[0],s[1]=p[1],s[2]=p[2];else if(t<=f)s[0]=l.s[0],s[1]=l.s[1],s[2]=l.s[2];else{var $=createQuaternion(l.s),D=createQuaternion(p),A=(t-f)/(d-f);quaternionToEuler(s,slerp($,D,A))}else for(a=0;a<o;a+=1)l.h!==1&&(t>=d?b=1:t<f?b=0:(l.o.x.constructor===Array?(m.__fnct||(m.__fnct=[]),m.__fnct[a]?E=m.__fnct[a]:(B=l.o.x[a]===void 0?l.o.x[0]:l.o.x[a],x=l.o.y[a]===void 0?l.o.y[0]:l.o.y[a],L=l.i.x[a]===void 0?l.i.x[0]:l.i.x[a],F=l.i.y[a]===void 0?l.i.y[0]:l.i.y[a],E=BezierFactory.getBezierEasing(B,x,L,F).get,m.__fnct[a]=E)):m.__fnct?E=m.__fnct:(B=l.o.x,x=l.o.y,L=l.i.x,F=l.i.y,E=BezierFactory.getBezierEasing(B,x,L,F).get,l.keyframeMetadata=E),b=E((t-f)/(d-f)))),p=c.s||l.e,O=l.h===1?l.s[a]:l.s[a]+(p[a]-l.s[a])*b,this.propType==="multidimensional"?s[a]=O:s=O}return e.lastIndex=n,s}function slerp(t,e,r){var s=[],n=t[0],a=t[1],o=t[2],h=t[3],l=e[0],c=e[1],m=e[2],C=e[3],u,b,_,g,E;return b=n*l+a*c+o*m+h*C,b<0&&(b=-b,l=-l,c=-c,m=-m,C=-C),1-b>1e-6?(u=Math.acos(b),_=Math.sin(u),g=Math.sin((1-r)*u)/_,E=Math.sin(r*u)/_):(g=1-r,E=r),s[0]=g*n+E*l,s[1]=g*a+E*c,s[2]=g*o+E*m,s[3]=g*h+E*C,s}function quaternionToEuler(t,e){var r=e[0],s=e[1],n=e[2],a=e[3],o=Math.atan2(2*s*a-2*r*n,1-2*s*s-2*n*n),h=Math.asin(2*r*s+2*n*a),l=Math.atan2(2*r*a-2*s*n,1-2*r*r-2*n*n);t[0]=o/degToRads,t[1]=h/degToRads,t[2]=l/degToRads}function createQuaternion(t){var e=t[0]*degToRads,r=t[1]*degToRads,s=t[2]*degToRads,n=Math.cos(e/2),a=Math.cos(r/2),o=Math.cos(s/2),h=Math.sin(e/2),l=Math.sin(r/2),c=Math.sin(s/2),m=n*a*o-h*l*c,C=h*l*o+n*a*c,u=h*a*o+n*l*c,b=n*l*o-h*a*c;return[C,u,b,m]}function getValueAtCurrentTime(){var t=this.comp.renderedFrame-this.offsetTime,e=this.keyframes[0].t-this.offsetTime,r=this.keyframes[this.keyframes.length-1].t-this.offsetTime;if(!(t===this._caching.lastFrame||this._caching.lastFrame!==initFrame&&(this._caching.lastFrame>=r&&t>=r||this._caching.lastFrame<e&&t<e))){this._caching.lastFrame>=t&&(this._caching._lastKeyframeIndex=-1,this._caching.lastIndex=0);var s=this.interpolateValue(t,this._caching);this.pv=s}return this._caching.lastFrame=t,this.pv}function setVValue(t){var e;if(this.propType==="unidimensional")e=t*this.mult,mathAbs(this.v-e)>1e-5&&(this.v=e,this._mdf=!0);else for(var r=0,s=this.v.length;r<s;)e=t[r]*this.mult,mathAbs(this.v[r]-e)>1e-5&&(this.v[r]=e,this._mdf=!0),r+=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 t,e=this.effectsSequence.length,r=this.kf?this.pv:this.data.k;for(t=0;t<e;t+=1)r=this.effectsSequence[t](r);this.setVValue(r),this._isFirstFrame=!1,this.lock=!1,this.frameId=this.elem.globalData.frameId}}function addEffect(t){this.effectsSequence.push(t),this.container.addDynamicProperty(this)}function ValueProperty(t,e,r,s){this.propType="unidimensional",this.mult=r||1,this.data=e,this.v=r?e.k*r:e.k,this.pv=e.k,this._mdf=!1,this.elem=t,this.container=s,this.comp=t.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(t,e,r,s){this.propType="multidimensional",this.mult=r||1,this.data=e,this._mdf=!1,this.elem=t,this.container=s,this.comp=t.comp,this.k=!1,this.kf=!1,this.frameId=-1;var n,a=e.k.length;for(this.v=createTypedArray("float32",a),this.pv=createTypedArray("float32",a),this.vel=createTypedArray("float32",a),n=0;n<a;n+=1)this.v[n]=e.k[n]*this.mult,this.pv[n]=e.k[n];this._isFirstFrame=!0,this.effectsSequence=[],this.getValue=processEffectsSequence,this.setVValue=setVValue,this.addEffect=addEffect}function KeyframedValueProperty(t,e,r,s){this.propType="unidimensional",this.keyframes=e.k,this.keyframesMetadata=[],this.offsetTime=t.data.st,this.frameId=-1,this._caching={lastFrame:initFrame,lastIndex:0,value:0,_lastKeyframeIndex:-1},this.k=!0,this.kf=!0,this.data=e,this.mult=r||1,this.elem=t,this.container=s,this.comp=t.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(t,e,r,s){this.propType="multidimensional";var n,a=e.k.length,o,h,l,c;for(n=0;n<a-1;n+=1)e.k[n].to&&e.k[n].s&&e.k[n+1]&&e.k[n+1].s&&(o=e.k[n].s,h=e.k[n+1].s,l=e.k[n].to,c=e.k[n].ti,(o.length===2&&!(o[0]===h[0]&&o[1]===h[1])&&bez.pointOnLine2D(o[0],o[1],h[0],h[1],o[0]+l[0],o[1]+l[1])&&bez.pointOnLine2D(o[0],o[1],h[0],h[1],h[0]+c[0],h[1]+c[1])||o.length===3&&!(o[0]===h[0]&&o[1]===h[1]&&o[2]===h[2])&&bez.pointOnLine3D(o[0],o[1],o[2],h[0],h[1],h[2],o[0]+l[0],o[1]+l[1],o[2]+l[2])&&bez.pointOnLine3D(o[0],o[1],o[2],h[0],h[1],h[2],h[0]+c[0],h[1]+c[1],h[2]+c[2]))&&(e.k[n].to=null,e.k[n].ti=null),o[0]===h[0]&&o[1]===h[1]&&l[0]===0&&l[1]===0&&c[0]===0&&c[1]===0&&(o.length===2||o[2]===h[2]&&l[2]===0&&c[2]===0)&&(e.k[n].to=null,e.k[n].ti=null));this.effectsSequence=[getValueAtCurrentTime.bind(this)],this.data=e,this.keyframes=e.k,this.keyframesMetadata=[],this.offsetTime=t.data.st,this.k=!0,this.kf=!0,this._isFirstFrame=!0,this.mult=r||1,this.elem=t,this.container=s,this.comp=t.comp,this.getValue=processEffectsSequence,this.setVValue=setVValue,this.interpolateValue=interpolateValue,this.frameId=-1;var m=e.k[0].s.length;for(this.v=createTypedArray("float32",m),this.pv=createTypedArray("float32",m),n=0;n<m;n+=1)this.v[n]=initFrame,this.pv[n]=initFrame;this._caching={lastFrame:initFrame,lastIndex:0,value:createTypedArray("float32",m)},this.addEffect=addEffect}var PropertyFactory=(function(){function t(r,s,n,a,o){s.sid&&(s=r.globalData.slotManager.getProp(s));var h;if(!s.k.length)h=new ValueProperty(r,s,a,o);else if(typeof s.k[0]=="number")h=new MultiDimensionalProperty(r,s,a,o);else switch(n){case 0:h=new KeyframedValueProperty(r,s,a,o);break;case 1:h=new KeyframedMultidimensionalProperty(r,s,a,o);break}return h.effectsSequence.length&&o.addDynamicProperty(h),h}var e={getProp:t};return e})();function DynamicPropertyContainer(){}DynamicPropertyContainer.prototype={addDynamicProperty:function(e){this.dynamicProperties.indexOf(e)===-1&&(this.dynamicProperties.push(e),this.container.addDynamicProperty(this),this._isAnimated=!0)},iterateDynamicProperties:function(){this._mdf=!1;var e,r=this.dynamicProperties.length;for(e=0;e<r;e+=1)this.dynamicProperties[e].getValue(),this.dynamicProperties[e]._mdf&&(this._mdf=!0)},initDynamicPropertyContainer:function(e){this.container=e,this.dynamicProperties=[],this._mdf=!1,this._isAnimated=!1}};var pointPool=(function(){function t(){return createTypedArray("float32",2)}return poolFactory(8,t)})();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(t,e){this.c=t,this.setLength(e);for(var r=0;r<e;)this.v[r]=pointPool.newElement(),this.o[r]=pointPool.newElement(),this.i[r]=pointPool.newElement(),r+=1},ShapePath.prototype.setLength=function(t){for(;this._maxLength<t;)this.doubleArrayLength();this._length=t},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(t,e,r,s,n){var a;switch(this._length=Math.max(this._length,s+1),this._length>=this._maxLength&&this.doubleArrayLength(),r){case"v":a=this.v;break;case"i":a=this.i;break;case"o":a=this.o;break;default:a=[];break}(!a[s]||a[s]&&!n)&&(a[s]=pointPool.newElement()),a[s][0]=t,a[s][1]=e},ShapePath.prototype.setTripleAt=function(t,e,r,s,n,a,o,h){this.setXYAt(t,e,"v",o,h),this.setXYAt(r,s,"o",o,h),this.setXYAt(n,a,"i",o,h)},ShapePath.prototype.reverse=function(){var t=new ShapePath;t.setPathData(this.c,this._length);var e=this.v,r=this.o,s=this.i,n=0;this.c&&(t.setTripleAt(e[0][0],e[0][1],s[0][0],s[0][1],r[0][0],r[0][1],0,!1),n=1);var a=this._length-1,o=this._length,h;for(h=n;h<o;h+=1)t.setTripleAt(e[a][0],e[a][1],s[a][0],s[a][1],r[a][0],r[a][1],h,!1),a-=1;return t},ShapePath.prototype.length=function(){return this._length};var shapePool=(function(){function t(){return new ShapePath}function e(n){var a=n._length,o;for(o=0;o<a;o+=1)pointPool.release(n.v[o]),pointPool.release(n.i[o]),pointPool.release(n.o[o]),n.v[o]=null,n.i[o]=null,n.o[o]=null;n._length=0,n.c=!1}function r(n){var a=s.newElement(),o,h=n._length===void 0?n.v.length:n._length;for(a.setLength(h),a.c=n.c,o=0;o<h;o+=1)a.setTripleAt(n.v[o][0],n.v[o][1],n.o[o][0],n.o[o][1],n.i[o][0],n.i[o][1],o);return a}var s=poolFactory(4,t,e);return s.clone=r,s})();function ShapeCollection(){this._length=0,this._maxLength=4,this.shapes=createSizedArray(this._maxLength)}ShapeCollection.prototype.addShape=function(t){this._length===this._maxLength&&(this.shapes=this.shapes.concat(createSizedArray(this._maxLength)),this._maxLength*=2),this.shapes[this._length]=t,this._length+=1},ShapeCollection.prototype.releaseShapes=function(){var t;for(t=0;t<this._length;t+=1)shapePool.release(this.shapes[t]);this._length=0};var shapeCollectionPool=(function(){var t={newShapeCollection:n,release:a},e=0,r=4,s=createSizedArray(r);function n(){var o;return e?(e-=1,o=s[e]):o=new ShapeCollection,o}function a(o){var h,l=o._length;for(h=0;h<l;h+=1)shapePool.release(o.shapes[h]);o._length=0,e===r&&(s=pooling.double(s),r*=2),s[e]=o,e+=1}return t})(),ShapePropertyFactory=(function(){var t=-999999;function e(d,f,p){var v=p.lastIndex,P,M,w,I,B,x,L,F,O,$=this.keyframes;if(d<$[0].t-this.offsetTime)P=$[0].s[0],w=!0,v=0;else if(d>=$[$.length-1].t-this.offsetTime)P=$[$.length-1].s?$[$.length-1].s[0]:$[$.length-2].e[0],w=!0;else{for(var D=v,A=$.length-1,T=!0,y,S,R;T&&(y=$[D],S=$[D+1],!(S.t-this.offsetTime>d));)D<A-1?D+=1:T=!1;if(R=this.keyframesMetadata[D]||{},w=y.h===1,v=D,!w){if(d>=S.t-this.offsetTime)F=1;else if(d<y.t-this.offsetTime)F=0;else{var k;R.__fnct?k=R.__fnct:(k=BezierFactory.getBezierEasing(y.o.x,y.o.y,y.i.x,y.i.y).get,R.__fnct=k),F=k((d-(y.t-this.offsetTime))/(S.t-this.offsetTime-(y.t-this.offsetTime)))}M=S.s?S.s[0]:y.e[0]}P=y.s[0]}for(x=f._length,L=P.i[0].length,p.lastIndex=v,I=0;I<x;I+=1)for(B=0;B<L;B+=1)O=w?P.i[I][B]:P.i[I][B]+(M.i[I][B]-P.i[I][B])*F,f.i[I][B]=O,O=w?P.o[I][B]:P.o[I][B]+(M.o[I][B]-P.o[I][B])*F,f.o[I][B]=O,O=w?P.v[I][B]:P.v[I][B]+(M.v[I][B]-P.v[I][B])*F,f.v[I][B]=O}function r(){var d=this.comp.renderedFrame-this.offsetTime,f=this.keyframes[0].t-this.offsetTime,p=this.keyframes[this.keyframes.length-1].t-this.offsetTime,v=this._caching.lastFrame;return v!==t&&(v<f&&d<f||v>p&&d>p)||(this._caching.lastIndex=v<d?this._caching.lastIndex:0,this.interpolateShape(d,this.pv,this._caching)),this._caching.lastFrame=d,this.pv}function s(){this.paths=this.localShapeCollection}function n(d,f){if(d._length!==f._length||d.c!==f.c)return!1;var p,v=d._length;for(p=0;p<v;p+=1)if(d.v[p][0]!==f.v[p][0]||d.v[p][1]!==f.v[p][1]||d.o[p][0]!==f.o[p][0]||d.o[p][1]!==f.o[p][1]||d.i[p][0]!==f.i[p][0]||d.i[p][1]!==f.i[p][1])return!1;return!0}function a(d){n(this.v,d)||(this.v=shapePool.clone(d),this.localShapeCollection.releaseShapes(),this.localShapeCollection.addShape(this.v),this._mdf=!0,this.paths=this.localShapeCollection)}function o(){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 d;this.kf?d=this.pv:this.data.ks?d=this.data.ks.k:d=this.data.pt.k;var f,p=this.effectsSequence.length;for(f=0;f<p;f+=1)d=this.effectsSequence[f](d);this.setVValue(d),this.lock=!1,this.frameId=this.elem.globalData.frameId}}function h(d,f,p){this.propType="shape",this.comp=d.comp,this.container=d,this.elem=d,this.data=f,this.k=!1,this.kf=!1,this._mdf=!1;var v=p===3?f.pt.k:f.ks.k;this.v=shapePool.clone(v),this.pv=shapePool.clone(this.v),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.reset=s,this.effectsSequence=[]}function l(d){this.effectsSequence.push(d),this.container.addDynamicProperty(this)}h.prototype.interpolateShape=e,h.prototype.getValue=o,h.prototype.setVValue=a,h.prototype.addEffect=l;function c(d,f,p){this.propType="shape",this.comp=d.comp,this.elem=d,this.container=d,this.offsetTime=d.data.st,this.keyframes=p===3?f.pt.k:f.ks.k,this.keyframesMetadata=[],this.k=!0,this.kf=!0;var v=this.keyframes[0].s[0].i.length;this.v=shapePool.newElement(),this.v.setPathData(this.keyframes[0].s[0].c,v),this.pv=shapePool.clone(this.v),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.lastFrame=t,this.reset=s,this._caching={lastFrame:t,lastIndex:0},this.effectsSequence=[r.bind(this)]}c.prototype.getValue=o,c.prototype.interpolateShape=e,c.prototype.setVValue=a,c.prototype.addEffect=l;var m=(function(){var d=roundCorner;function f(p,v){this.v=shapePool.newElement(),this.v.setPathData(!0,4),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.paths=this.localShapeCollection,this.localShapeCollection.addShape(this.v),this.d=v.d,this.elem=p,this.comp=p.comp,this.frameId=-1,this.initDynamicPropertyContainer(p),this.p=PropertyFactory.getProp(p,v.p,1,0,this),this.s=PropertyFactory.getProp(p,v.s,1,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertEllToPath())}return f.prototype={reset:s,getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertEllToPath())},convertEllToPath:function(){var v=this.p.v[0],P=this.p.v[1],M=this.s.v[0]/2,w=this.s.v[1]/2,I=this.d!==3,B=this.v;B.v[0][0]=v,B.v[0][1]=P-w,B.v[1][0]=I?v+M:v-M,B.v[1][1]=P,B.v[2][0]=v,B.v[2][1]=P+w,B.v[3][0]=I?v-M:v+M,B.v[3][1]=P,B.i[0][0]=I?v-M*d:v+M*d,B.i[0][1]=P-w,B.i[1][0]=I?v+M:v-M,B.i[1][1]=P-w*d,B.i[2][0]=I?v+M*d:v-M*d,B.i[2][1]=P+w,B.i[3][0]=I?v-M:v+M,B.i[3][1]=P+w*d,B.o[0][0]=I?v+M*d:v-M*d,B.o[0][1]=P-w,B.o[1][0]=I?v+M:v-M,B.o[1][1]=P+w*d,B.o[2][0]=I?v-M*d:v+M*d,B.o[2][1]=P+w,B.o[3][0]=I?v-M:v+M,B.o[3][1]=P-w*d}},extendPrototype([DynamicPropertyContainer],f),f})(),C=(function(){function d(f,p){this.v=shapePool.newElement(),this.v.setPathData(!0,0),this.elem=f,this.comp=f.comp,this.data=p,this.frameId=-1,this.d=p.d,this.initDynamicPropertyContainer(f),p.sy===1?(this.ir=PropertyFactory.getProp(f,p.ir,0,0,this),this.is=PropertyFactory.getProp(f,p.is,0,.01,this),this.convertToPath=this.convertStarToPath):this.convertToPath=this.convertPolygonToPath,this.pt=PropertyFactory.getProp(f,p.pt,0,0,this),this.p=PropertyFactory.getProp(f,p.p,1,0,this),this.r=PropertyFactory.getProp(f,p.r,0,degToRads,this),this.or=PropertyFactory.getProp(f,p.or,0,0,this),this.os=PropertyFactory.getProp(f,p.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 d.prototype={reset:s,getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertToPath())},convertStarToPath:function(){var p=Math.floor(this.pt.v)*2,v=Math.PI*2/p,P=!0,M=this.or.v,w=this.ir.v,I=this.os.v,B=this.is.v,x=2*Math.PI*M/(p*2),L=2*Math.PI*w/(p*2),F,O,$,D,A=-Math.PI/2;A+=this.r.v;var T=this.data.d===3?-1:1;for(this.v._length=0,F=0;F<p;F+=1){O=P?M:w,$=P?I:B,D=P?x:L;var y=O*Math.cos(A),S=O*Math.sin(A),R=y===0&&S===0?0:S/Math.sqrt(y*y+S*S),k=y===0&&S===0?0:-y/Math.sqrt(y*y+S*S);y+=+this.p.v[0],S+=+this.p.v[1],this.v.setTripleAt(y,S,y-R*D*$*T,S-k*D*$*T,y+R*D*$*T,S+k*D*$*T,F,!0),P=!P,A+=v*T}},convertPolygonToPath:function(){var p=Math.floor(this.pt.v),v=Math.PI*2/p,P=this.or.v,M=this.os.v,w=2*Math.PI*P/(p*4),I,B=-Math.PI*.5,x=this.data.d===3?-1:1;for(B+=this.r.v,this.v._length=0,I=0;I<p;I+=1){var L=P*Math.cos(B),F=P*Math.sin(B),O=L===0&&F===0?0:F/Math.sqrt(L*L+F*F),$=L===0&&F===0?0:-L/Math.sqrt(L*L+F*F);L+=+this.p.v[0],F+=+this.p.v[1],this.v.setTripleAt(L,F,L-O*w*M*x,F-$*w*M*x,L+O*w*M*x,F+$*w*M*x,I,!0),B+=v*x}this.paths.length=0,this.paths[0]=this.v}},extendPrototype([DynamicPropertyContainer],d),d})(),u=(function(){function d(f,p){this.v=shapePool.newElement(),this.v.c=!0,this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.elem=f,this.comp=f.comp,this.frameId=-1,this.d=p.d,this.initDynamicPropertyContainer(f),this.p=PropertyFactory.getProp(f,p.p,1,0,this),this.s=PropertyFactory.getProp(f,p.s,1,0,this),this.r=PropertyFactory.getProp(f,p.r,0,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertRectToPath())}return d.prototype={convertRectToPath:function(){var p=this.p.v[0],v=this.p.v[1],P=this.s.v[0]/2,M=this.s.v[1]/2,w=bmMin(P,M,this.r.v),I=w*(1-roundCorner);this.v._length=0,this.d===2||this.d===1?(this.v.setTripleAt(p+P,v-M+w,p+P,v-M+w,p+P,v-M+I,0,!0),this.v.setTripleAt(p+P,v+M-w,p+P,v+M-I,p+P,v+M-w,1,!0),w!==0?(this.v.setTripleAt(p+P-w,v+M,p+P-w,v+M,p+P-I,v+M,2,!0),this.v.setTripleAt(p-P+w,v+M,p-P+I,v+M,p-P+w,v+M,3,!0),this.v.setTripleAt(p-P,v+M-w,p-P,v+M-w,p-P,v+M-I,4,!0),this.v.setTripleAt(p-P,v-M+w,p-P,v-M+I,p-P,v-M+w,5,!0),this.v.setTripleAt(p-P+w,v-M,p-P+w,v-M,p-P+I,v-M,6,!0),this.v.setTripleAt(p+P-w,v-M,p+P-I,v-M,p+P-w,v-M,7,!0)):(this.v.setTripleAt(p-P,v+M,p-P+I,v+M,p-P,v+M,2),this.v.setTripleAt(p-P,v-M,p-P,v-M+I,p-P,v-M,3))):(this.v.setTripleAt(p+P,v-M+w,p+P,v-M+I,p+P,v-M+w,0,!0),w!==0?(this.v.setTripleAt(p+P-w,v-M,p+P-w,v-M,p+P-I,v-M,1,!0),this.v.setTripleAt(p-P+w,v-M,p-P+I,v-M,p-P+w,v-M,2,!0),this.v.setTripleAt(p-P,v-M+w,p-P,v-M+w,p-P,v-M+I,3,!0),this.v.setTripleAt(p-P,v+M-w,p-P,v+M-I,p-P,v+M-w,4,!0),this.v.setTripleAt(p-P+w,v+M,p-P+w,v+M,p-P+I,v+M,5,!0),this.v.setTripleAt(p+P-w,v+M,p+P-I,v+M,p+P-w,v+M,6,!0),this.v.setTripleAt(p+P,v+M-w,p+P,v+M-w,p+P,v+M-I,7,!0)):(this.v.setTripleAt(p-P,v-M,p-P+I,v-M,p-P,v-M,1,!0),this.v.setTripleAt(p-P,v+M,p-P,v+M-I,p-P,v+M,2,!0),this.v.setTripleAt(p+P,v+M,p+P-I,v+M,p+P,v+M,3,!0)))},getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertRectToPath())},reset:s},extendPrototype([DynamicPropertyContainer],d),d})();function b(d,f,p){var v;if(p===3||p===4){var P=p===3?f.pt:f.ks,M=P.k;M.length?v=new c(d,f,p):v=new h(d,f,p)}else p===5?v=new u(d,f):p===6?v=new m(d,f):p===7&&(v=new C(d,f));return v.k&&d.addDynamicProperty(v),v}function _(){return h}function g(){return c}var E={};return E.getShapeProp=b,E.getConstructorFunction=_,E.getKeyframedConstructorFunction=g,E})();/*!
29 Transformation Matrix v2.0
30 (c) Epistemex 2014-2015
31 www.epistemex.com
32 By Ken Fyrstenberg
33 Contributions by leeoniya.
34 License: MIT, header required.
35 */var Matrix=(function(){var t=Math.cos,e=Math.sin,r=Math.tan,s=Math.round;function n(){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 a(y){if(y===0)return this;var S=t(y),R=e(y);return this._t(S,-R,0,0,R,S,0,0,0,0,1,0,0,0,0,1)}function o(y){if(y===0)return this;var S=t(y),R=e(y);return this._t(1,0,0,0,0,S,-R,0,0,R,S,0,0,0,0,1)}function h(y){if(y===0)return this;var S=t(y),R=e(y);return this._t(S,0,R,0,0,1,0,0,-R,0,S,0,0,0,0,1)}function l(y){if(y===0)return this;var S=t(y),R=e(y);return this._t(S,-R,0,0,R,S,0,0,0,0,1,0,0,0,0,1)}function c(y,S){return this._t(1,S,y,1,0,0)}function m(y,S){return this.shear(r(y),r(S))}function C(y,S){var R=t(S),k=e(S);return this._t(R,k,0,0,-k,R,0,0,0,0,1,0,0,0,0,1)._t(1,0,0,0,r(y),1,0,0,0,0,1,0,0,0,0,1)._t(R,-k,0,0,k,R,0,0,0,0,1,0,0,0,0,1)}function u(y,S,R){return!R&&R!==0&&(R=1),y===1&&S===1&&R===1?this:this._t(y,0,0,0,0,S,0,0,0,0,R,0,0,0,0,1)}function b(y,S,R,k,V,q,G,H,W,K,ee,le,te,Y,se,J){return this.props[0]=y,this.props[1]=S,this.props[2]=R,this.props[3]=k,this.props[4]=V,this.props[5]=q,this.props[6]=G,this.props[7]=H,this.props[8]=W,this.props[9]=K,this.props[10]=ee,this.props[11]=le,this.props[12]=te,this.props[13]=Y,this.props[14]=se,this.props[15]=J,this}function _(y,S,R){return R=R||0,y!==0||S!==0||R!==0?this._t(1,0,0,0,0,1,0,0,0,0,1,0,y,S,R,1):this}function g(y,S,R,k,V,q,G,H,W,K,ee,le,te,Y,se,J){var N=this.props;if(y===1&&S===0&&R===0&&k===0&&V===0&&q===1&&G===0&&H===0&&W===0&&K===0&&ee===1&&le===0)return N[12]=N[12]*y+N[15]*te,N[13]=N[13]*q+N[15]*Y,N[14]=N[14]*ee+N[15]*se,N[15]*=J,this._identityCalculated=!1,this;var z=N[0],ne=N[1],j=N[2],X=N[3],re=N[4],he=N[5],Z=N[6],Q=N[7],U=N[8],ie=N[9],ae=N[10],oe=N[11],pe=N[12],ce=N[13],de=N[14],fe=N[15];return N[0]=z*y+ne*V+j*W+X*te,N[1]=z*S+ne*q+j*K+X*Y,N[2]=z*R+ne*G+j*ee+X*se,N[3]=z*k+ne*H+j*le+X*J,N[4]=re*y+he*V+Z*W+Q*te,N[5]=re*S+he*q+Z*K+Q*Y,N[6]=re*R+he*G+Z*ee+Q*se,N[7]=re*k+he*H+Z*le+Q*J,N[8]=U*y+ie*V+ae*W+oe*te,N[9]=U*S+ie*q+ae*K+oe*Y,N[10]=U*R+ie*G+ae*ee+oe*se,N[11]=U*k+ie*H+ae*le+oe*J,N[12]=pe*y+ce*V+de*W+fe*te,N[13]=pe*S+ce*q+de*K+fe*Y,N[14]=pe*R+ce*G+de*ee+fe*se,N[15]=pe*k+ce*H+de*le+fe*J,this._identityCalculated=!1,this}function E(y){var S=y.props;return this.transform(S[0],S[1],S[2],S[3],S[4],S[5],S[6],S[7],S[8],S[9],S[10],S[11],S[12],S[13],S[14],S[15])}function d(){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 f(y){for(var S=0;S<16;){if(y.props[S]!==this.props[S])return!1;S+=1}return!0}function p(y){var S;for(S=0;S<16;S+=1)y.props[S]=this.props[S];return y}function v(y){var S;for(S=0;S<16;S+=1)this.props[S]=y[S]}function P(y,S,R){return{x:y*this.props[0]+S*this.props[4]+R*this.props[8]+this.props[12],y:y*this.props[1]+S*this.props[5]+R*this.props[9]+this.props[13],z:y*this.props[2]+S*this.props[6]+R*this.props[10]+this.props[14]}}function M(y,S,R){return y*this.props[0]+S*this.props[4]+R*this.props[8]+this.props[12]}function w(y,S,R){return y*this.props[1]+S*this.props[5]+R*this.props[9]+this.props[13]}function I(y,S,R){return y*this.props[2]+S*this.props[6]+R*this.props[10]+this.props[14]}function B(){var y=this.props[0]*this.props[5]-this.props[1]*this.props[4],S=this.props[5]/y,R=-this.props[1]/y,k=-this.props[4]/y,V=this.props[0]/y,q=(this.props[4]*this.props[13]-this.props[5]*this.props[12])/y,G=-(this.props[0]*this.props[13]-this.props[1]*this.props[12])/y,H=new Matrix;return H.props[0]=S,H.props[1]=R,H.props[4]=k,H.props[5]=V,H.props[12]=q,H.props[13]=G,H}function x(y){var S=this.getInverseMatrix();return S.applyToPointArray(y[0],y[1],y[2]||0)}function L(y){var S,R=y.length,k=[];for(S=0;S<R;S+=1)k[S]=x(y[S]);return k}function F(y,S,R){var k=createTypedArray("float32",6);if(this.isIdentity())k[0]=y[0],k[1]=y[1],k[2]=S[0],k[3]=S[1],k[4]=R[0],k[5]=R[1];else{var V=this.props[0],q=this.props[1],G=this.props[4],H=this.props[5],W=this.props[12],K=this.props[13];k[0]=y[0]*V+y[1]*G+W,k[1]=y[0]*q+y[1]*H+K,k[2]=S[0]*V+S[1]*G+W,k[3]=S[0]*q+S[1]*H+K,k[4]=R[0]*V+R[1]*G+W,k[5]=R[0]*q+R[1]*H+K}return k}function O(y,S,R){var k;return this.isIdentity()?k=[y,S,R]:k=[y*this.props[0]+S*this.props[4]+R*this.props[8]+this.props[12],y*this.props[1]+S*this.props[5]+R*this.props[9]+this.props[13],y*this.props[2]+S*this.props[6]+R*this.props[10]+this.props[14]],k}function $(y,S){if(this.isIdentity())return y+","+S;var R=this.props;return Math.round((y*R[0]+S*R[4]+R[12])*100)/100+","+Math.round((y*R[1]+S*R[5]+R[13])*100)/100}function D(){for(var y=0,S=this.props,R="matrix3d(",k=1e4;y<16;)R+=s(S[y]*k)/k,R+=y===15?")":",",y+=1;return R}function A(y){var S=1e4;return y<1e-6&&y>0||y>-1e-6&&y<0?s(y*S)/S:y}function T(){var y=this.props,S=A(y[0]),R=A(y[1]),k=A(y[4]),V=A(y[5]),q=A(y[12]),G=A(y[13]);return"matrix("+S+","+R+","+k+","+V+","+q+","+G+")"}return function(){this.reset=n,this.rotate=a,this.rotateX=o,this.rotateY=h,this.rotateZ=l,this.skew=m,this.skewFromAxis=C,this.shear=c,this.scale=u,this.setTransform=b,this.translate=_,this.transform=g,this.multiply=E,this.applyToPoint=P,this.applyToX=M,this.applyToY=w,this.applyToZ=I,this.applyToPointArray=O,this.applyToTriplePoints=F,this.applyToPointStringified=$,this.toCSS=D,this.to2dCSS=T,this.clone=p,this.cloneFromProps=v,this.equals=f,this.inversePoints=L,this.inversePoint=x,this.getInverseMatrix=B,this._t=this.transform,this.isIdentity=d,this._identity=!0,this._identityCalculated=!1,this.props=createTypedArray("float32",16),this.reset()}})();function _typeof$3(t){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof$3=function(r){return typeof r}:_typeof$3=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},_typeof$3(t)}var lottie={};function setLocation(t){setLocationHref(t)}function searchAnimations(){animationManager.searchAnimations()}function setSubframeRendering(t){setSubframeEnabled(t)}function setPrefix(t){setIdPrefix(t)}function loadAnimation(t){return animationManager.loadAnimation(t)}function setQuality(t){if(typeof t=="string")switch(t){case"high":setDefaultCurveSegments(200);break;default:case"medium":setDefaultCurveSegments(50);break;case"low":setDefaultCurveSegments(10);break}else!isNaN(t)&&t>1&&setDefaultCurveSegments(t)}function inBrowser(){return typeof navigator<"u"}function installPlugin(t,e){t==="expressions"&&setExpressionsPlugin(e)}function getFactory(t){switch(t){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(t){for(var e=queryString.split("&"),r=0;r<e.length;r+=1){var s=e[r].split("=");if(decodeURIComponent(s[0])==t)return decodeURIComponent(s[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$1)!=="object"&&(window.bodymovin=lottie)}catch(t){}var ShapeModifiers=(function(){var t={},e={};t.registerModifier=r,t.getModifier=s;function r(n,a){e[n]||(e[n]=a)}function s(n,a,o){return new e[n](a,o)}return t})();function ShapeModifier(){}ShapeModifier.prototype.initModifierProperties=function(){},ShapeModifier.prototype.addShapeToModifier=function(){},ShapeModifier.prototype.addShape=function(t){if(!this.closed){t.sh.container.addDynamicProperty(t.sh);var e={shape:t.sh,data:t,localShapeCollection:shapeCollectionPool.newShapeCollection()};this.shapes.push(e),this.addShapeToModifier(e),this._isAnimated&&t.setAsAnimated()}},ShapeModifier.prototype.init=function(t,e){this.shapes=[],this.elem=t,this.initDynamicPropertyContainer(t),this.initModifierProperties(t,e),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(t,e){this.s=PropertyFactory.getProp(t,e.s,0,.01,this),this.e=PropertyFactory.getProp(t,e.e,0,.01,this),this.o=PropertyFactory.getProp(t,e.o,0,0,this),this.sValue=0,this.eValue=0,this.getValue=this.processKeys,this.m=e.m,this._isAnimated=!!this.s.effectsSequence.length||!!this.e.effectsSequence.length||!!this.o.effectsSequence.length},TrimModifier.prototype.addShapeToModifier=function(t){t.pathsData=[]},TrimModifier.prototype.calculateShapeEdges=function(t,e,r,s,n){var a=[];e<=1?a.push({s:t,e}):t>=1?a.push({s:t-1,e:e-1}):(a.push({s:t,e:1}),a.push({s:0,e:e-1}));var o=[],h,l=a.length,c;for(h=0;h<l;h+=1)if(c=a[h],!(c.e*n<s||c.s*n>s+r)){var m,C;c.s*n<=s?m=0:m=(c.s*n-s)/r,c.e*n>=s+r?C=1:C=(c.e*n-s)/r,o.push([m,C])}return o.length||o.push([0,0]),o},TrimModifier.prototype.releasePathsData=function(t){var e,r=t.length;for(e=0;e<r;e+=1)segmentsLengthPool.release(t[e]);return t.length=0,t},TrimModifier.prototype.processShapes=function(t){var e,r;if(this._mdf||t){var s=this.o.v%360/360;if(s<0&&(s+=1),this.s.v>1?e=1+s:this.s.v<0?e=0+s:e=this.s.v+s,this.e.v>1?r=1+s:this.e.v<0?r=0+s:r=this.e.v+s,e>r){var n=e;e=r,r=n}e=Math.round(e*1e4)*1e-4,r=Math.round(r*1e4)*1e-4,this.sValue=e,this.eValue=r}else e=this.sValue,r=this.eValue;var a,o,h=this.shapes.length,l,c,m,C,u,b=0;if(r===e)for(o=0;o<h;o+=1)this.shapes[o].localShapeCollection.releaseShapes(),this.shapes[o].shape._mdf=!0,this.shapes[o].shape.paths=this.shapes[o].localShapeCollection,this._mdf&&(this.shapes[o].pathsData.length=0);else if(r===1&&e===0||r===0&&e===1){if(this._mdf)for(o=0;o<h;o+=1)this.shapes[o].pathsData.length=0,this.shapes[o].shape._mdf=!0}else{var _=[],g,E;for(o=0;o<h;o+=1)if(g=this.shapes[o],!g.shape._mdf&&!this._mdf&&!t&&this.m!==2)g.shape.paths=g.localShapeCollection;else{if(a=g.shape.paths,c=a._length,u=0,!g.shape._mdf&&g.pathsData.length)u=g.totalShapeLength;else{for(m=this.releasePathsData(g.pathsData),l=0;l<c;l+=1)C=bez.getSegmentsLength(a.shapes[l]),m.push(C),u+=C.totalLength;g.totalShapeLength=u,g.pathsData=m}b+=u,g.shape._mdf=!0}var d=e,f=r,p=0,v;for(o=h-1;o>=0;o-=1)if(g=this.shapes[o],g.shape._mdf){for(E=g.localShapeCollection,E.releaseShapes(),this.m===2&&h>1?(v=this.calculateShapeEdges(e,r,g.totalShapeLength,p,b),p+=g.totalShapeLength):v=[[d,f]],c=v.length,l=0;l<c;l+=1){d=v[l][0],f=v[l][1],_.length=0,f<=1?_.push({s:g.totalShapeLength*d,e:g.totalShapeLength*f}):d>=1?_.push({s:g.totalShapeLength*(d-1),e:g.totalShapeLength*(f-1)}):(_.push({s:g.totalShapeLength*d,e:g.totalShapeLength}),_.push({s:0,e:g.totalShapeLength*(f-1)}));var P=this.addShapes(g,_[0]);if(_[0].s!==_[0].e){if(_.length>1){var M=g.shape.paths.shapes[g.shape.paths._length-1];if(M.c){var w=P.pop();this.addPaths(P,E),P=this.addShapes(g,_[1],w)}else this.addPaths(P,E),P=this.addShapes(g,_[1])}this.addPaths(P,E)}}g.shape.paths=E}}},TrimModifier.prototype.addPaths=function(t,e){var r,s=t.length;for(r=0;r<s;r+=1)e.addShape(t[r])},TrimModifier.prototype.addSegment=function(t,e,r,s,n,a,o){n.setXYAt(e[0],e[1],"o",a),n.setXYAt(r[0],r[1],"i",a+1),o&&n.setXYAt(t[0],t[1],"v",a),n.setXYAt(s[0],s[1],"v",a+1)},TrimModifier.prototype.addSegmentFromArray=function(t,e,r,s){e.setXYAt(t[1],t[5],"o",r),e.setXYAt(t[2],t[6],"i",r+1),s&&e.setXYAt(t[0],t[4],"v",r),e.setXYAt(t[3],t[7],"v",r+1)},TrimModifier.prototype.addShapes=function(t,e,r){var s=t.pathsData,n=t.shape.paths.shapes,a,o=t.shape.paths._length,h,l,c=0,m,C,u,b,_=[],g,E=!0;for(r?(C=r._length,g=r._length):(r=shapePool.newElement(),C=0,g=0),_.push(r),a=0;a<o;a+=1){for(u=s[a].lengths,r.c=n[a].c,l=n[a].c?u.length:u.length+1,h=1;h<l;h+=1)if(m=u[h-1],c+m.addedLength<e.s)c+=m.addedLength,r.c=!1;else if(c>e.e){r.c=!1;break}else e.s<=c&&e.e>=c+m.addedLength?(this.addSegment(n[a].v[h-1],n[a].o[h-1],n[a].i[h],n[a].v[h],r,C,E),E=!1):(b=bez.getNewSegment(n[a].v[h-1],n[a].v[h],n[a].o[h-1],n[a].i[h],(e.s-c)/m.addedLength,(e.e-c)/m.addedLength,u[h-1]),this.addSegmentFromArray(b,r,C,E),E=!1,r.c=!1),c+=m.addedLength,C+=1;if(n[a].c&&u.length){if(m=u[h-1],c<=e.e){var d=u[h-1].addedLength;e.s<=c&&e.e>=c+d?(this.addSegment(n[a].v[h-1],n[a].o[h-1],n[a].i[0],n[a].v[0],r,C,E),E=!1):(b=bez.getNewSegment(n[a].v[h-1],n[a].v[0],n[a].o[h-1],n[a].i[0],(e.s-c)/d,(e.e-c)/d,u[h-1]),this.addSegmentFromArray(b,r,C,E),E=!1,r.c=!1)}else r.c=!1;c+=m.addedLength,C+=1}if(r._length&&(r.setXYAt(r.v[g][0],r.v[g][1],"i",g),r.setXYAt(r.v[r._length-1][0],r.v[r._length-1][1],"o",r._length-1)),c>e.e)break;a<o-1&&(r=shapePool.newElement(),E=!0,_.push(r),C=0)}return _};function PuckerAndBloatModifier(){}extendPrototype([ShapeModifier],PuckerAndBloatModifier),PuckerAndBloatModifier.prototype.initModifierProperties=function(t,e){this.getValue=this.processKeys,this.amount=PropertyFactory.getProp(t,e.a,0,null,this),this._isAnimated=!!this.amount.effectsSequence.length},PuckerAndBloatModifier.prototype.processPath=function(t,e){var r=e/100,s=[0,0],n=t._length,a=0;for(a=0;a<n;a+=1)s[0]+=t.v[a][0],s[1]+=t.v[a][1];s[0]/=n,s[1]/=n;var o=shapePool.newElement();o.c=t.c;var h,l,c,m,C,u;for(a=0;a<n;a+=1)h=t.v[a][0]+(s[0]-t.v[a][0])*r,l=t.v[a][1]+(s[1]-t.v[a][1])*r,c=t.o[a][0]+(s[0]-t.o[a][0])*-r,m=t.o[a][1]+(s[1]-t.o[a][1])*-r,C=t.i[a][0]+(s[0]-t.i[a][0])*-r,u=t.i[a][1]+(s[1]-t.i[a][1])*-r,o.setTripleAt(h,l,c,m,C,u,a);return o},PuckerAndBloatModifier.prototype.processShapes=function(t){var e,r,s=this.shapes.length,n,a,o=this.amount.v;if(o!==0){var h,l;for(r=0;r<s;r+=1){if(h=this.shapes[r],l=h.localShapeCollection,!(!h.shape._mdf&&!this._mdf&&!t))for(l.releaseShapes(),h.shape._mdf=!0,e=h.shape.paths.shapes,a=h.shape.paths._length,n=0;n<a;n+=1)l.addShape(this.processPath(e[n],o));h.shape.paths=h.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};var TransformPropertyFactory=(function(){var t=[0,0];function e(l){var c=this._mdf;this.iterateDynamicProperties(),this._mdf=this._mdf||c,this.a&&l.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.s&&l.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.sk&&l.skewFromAxis(-this.sk.v,this.sa.v),this.r?l.rotate(-this.r.v):l.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.data.p.s?this.data.p.z?l.translate(this.px.v,this.py.v,-this.pz.v):l.translate(this.px.v,this.py.v,0):l.translate(this.p.v[0],this.p.v[1],-this.p.v[2])}function r(l){if(this.elem.globalData.frameId!==this.frameId){if(this._isDirty&&(this.precalculateMatrix(),this._isDirty=!1),this.iterateDynamicProperties(),this._mdf||l){var c;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 m,C;if(c=this.elem.globalData.frameRate,this.p&&this.p.keyframes&&this.p.getValueAtTime)this.p._caching.lastFrame+this.p.offsetTime<=this.p.keyframes[0].t?(m=this.p.getValueAtTime((this.p.keyframes[0].t+.01)/c,0),C=this.p.getValueAtTime(this.p.keyframes[0].t/c,0)):this.p._caching.lastFrame+this.p.offsetTime>=this.p.keyframes[this.p.keyframes.length-1].t?(m=this.p.getValueAtTime(this.p.keyframes[this.p.keyframes.length-1].t/c,0),C=this.p.getValueAtTime((this.p.keyframes[this.p.keyframes.length-1].t-.05)/c,0)):(m=this.p.pv,C=this.p.getValueAtTime((this.p._caching.lastFrame+this.p.offsetTime-.01)/c,this.p.offsetTime));else if(this.px&&this.px.keyframes&&this.py.keyframes&&this.px.getValueAtTime&&this.py.getValueAtTime){m=[],C=[];var u=this.px,b=this.py;u._caching.lastFrame+u.offsetTime<=u.keyframes[0].t?(m[0]=u.getValueAtTime((u.keyframes[0].t+.01)/c,0),m[1]=b.getValueAtTime((b.keyframes[0].t+.01)/c,0),C[0]=u.getValueAtTime(u.keyframes[0].t/c,0),C[1]=b.getValueAtTime(b.keyframes[0].t/c,0)):u._caching.lastFrame+u.offsetTime>=u.keyframes[u.keyframes.length-1].t?(m[0]=u.getValueAtTime(u.keyframes[u.keyframes.length-1].t/c,0),m[1]=b.getValueAtTime(b.keyframes[b.keyframes.length-1].t/c,0),C[0]=u.getValueAtTime((u.keyframes[u.keyframes.length-1].t-.01)/c,0),C[1]=b.getValueAtTime((b.keyframes[b.keyframes.length-1].t-.01)/c,0)):(m=[u.pv,b.pv],C[0]=u.getValueAtTime((u._caching.lastFrame+u.offsetTime-.01)/c,u.offsetTime),C[1]=b.getValueAtTime((b._caching.lastFrame+b.offsetTime-.01)/c,b.offsetTime))}else C=t,m=C;this.v.rotate(-Math.atan2(m[1]-C[1],m[0]-C[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 s(){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 n(){}function a(l){this._addDynamicProperty(l),this.elem.addDynamicProperty(l),this._isDirty=!0}function o(l,c,m){if(this.elem=l,this.frameId=-1,this.propType="transform",this.data=c,this.v=new Matrix,this.pre=new Matrix,this.appliedTransformations=0,this.initDynamicPropertyContainer(m||l),c.p&&c.p.s?(this.px=PropertyFactory.getProp(l,c.p.x,0,0,this),this.py=PropertyFactory.getProp(l,c.p.y,0,0,this),c.p.z&&(this.pz=PropertyFactory.getProp(l,c.p.z,0,0,this))):this.p=PropertyFactory.getProp(l,c.p||{k:[0,0,0]},1,0,this),c.rx){if(this.rx=PropertyFactory.getProp(l,c.rx,0,degToRads,this),this.ry=PropertyFactory.getProp(l,c.ry,0,degToRads,this),this.rz=PropertyFactory.getProp(l,c.rz,0,degToRads,this),c.or.k[0].ti){var C,u=c.or.k.length;for(C=0;C<u;C+=1)c.or.k[C].to=null,c.or.k[C].ti=null}this.or=PropertyFactory.getProp(l,c.or,1,degToRads,this),this.or.sh=!0}else this.r=PropertyFactory.getProp(l,c.r||{k:0},0,degToRads,this);c.sk&&(this.sk=PropertyFactory.getProp(l,c.sk,0,degToRads,this),this.sa=PropertyFactory.getProp(l,c.sa,0,degToRads,this)),this.a=PropertyFactory.getProp(l,c.a||{k:[0,0,0]},1,0,this),this.s=PropertyFactory.getProp(l,c.s||{k:[100,100,100]},1,.01,this),c.o?this.o=PropertyFactory.getProp(l,c.o,0,.01,l):this.o={_mdf:!1,v:1},this._isDirty=!0,this.dynamicProperties.length||this.getValue(!0)}o.prototype={applyToMatrix:e,getValue:r,precalculateMatrix:s,autoOrient:n},extendPrototype([DynamicPropertyContainer],o),o.prototype.addDynamicProperty=a,o.prototype._addDynamicProperty=DynamicPropertyContainer.prototype.addDynamicProperty;function h(l,c,m){return new o(l,c,m)}return{getTransformProperty:h}})();function RepeaterModifier(){}extendPrototype([ShapeModifier],RepeaterModifier),RepeaterModifier.prototype.initModifierProperties=function(t,e){this.getValue=this.processKeys,this.c=PropertyFactory.getProp(t,e.c,0,null,this),this.o=PropertyFactory.getProp(t,e.o,0,null,this),this.tr=TransformPropertyFactory.getTransformProperty(t,e.tr,this),this.so=PropertyFactory.getProp(t,e.tr.so,0,.01,this),this.eo=PropertyFactory.getProp(t,e.tr.eo,0,.01,this),this.data=e,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(t,e,r,s,n,a){var o=a?-1:1,h=s.s.v[0]+(1-s.s.v[0])*(1-n),l=s.s.v[1]+(1-s.s.v[1])*(1-n);t.translate(s.p.v[0]*o*n,s.p.v[1]*o*n,s.p.v[2]),e.translate(-s.a.v[0],-s.a.v[1],s.a.v[2]),e.rotate(-s.r.v*o*n),e.translate(s.a.v[0],s.a.v[1],s.a.v[2]),r.translate(-s.a.v[0],-s.a.v[1],s.a.v[2]),r.scale(a?1/h:h,a?1/l:l),r.translate(s.a.v[0],s.a.v[1],s.a.v[2])},RepeaterModifier.prototype.init=function(t,e,r,s){for(this.elem=t,this.arr=e,this.pos=r,this.elemsData=s,this._currentCopies=0,this._elements=[],this._groups=[],this.frameId=-1,this.initDynamicPropertyContainer(t),this.initModifierProperties(t,e[r]);r>0;)r-=1,this._elements.unshift(e[r]);this.dynamicProperties.length?this.k=!0:this.getValue(!0)},RepeaterModifier.prototype.resetElements=function(t){var e,r=t.length;for(e=0;e<r;e+=1)t[e]._processed=!1,t[e].ty==="gr"&&this.resetElements(t[e].it)},RepeaterModifier.prototype.cloneElements=function(t){var e=JSON.parse(JSON.stringify(t));return this.resetElements(e),e},RepeaterModifier.prototype.changeGroupRender=function(t,e){var r,s=t.length;for(r=0;r<s;r+=1)t[r]._render=e,t[r].ty==="gr"&&this.changeGroupRender(t[r].it,e)},RepeaterModifier.prototype.processShapes=function(t){var e,r,s,n,a,o=!1;if(this._mdf||t){var h=Math.ceil(this.c.v);if(this._groups.length<h){for(;this._groups.length<h;){var l={it:this.cloneElements(this._elements),ty:"gr"};l.it.push({a:{a:0,ix:1,k:[0,0]},nm:"Transform",o:{a:0,ix:7,k:100},p:{a:0,ix:2,k:[0,0]},r:{a:1,ix:6,k:[{s:0,e:0,t:0},{s:0,e:0,t:1}]},s:{a:0,ix:3,k:[100,100]},sa:{a:0,ix:5,k:0},sk:{a:0,ix:4,k:0},ty:"tr"}),this.arr.splice(0,0,l),this._groups.splice(0,0,l),this._currentCopies+=1}this.elem.reloadShapes(),o=!0}a=0;var c;for(s=0;s<=this._groups.length-1;s+=1){if(c=a<h,this._groups[s]._render=c,this.changeGroupRender(this._groups[s].it,c),!c){var m=this.elemsData[s].it,C=m[m.length-1];C.transform.op.v!==0?(C.transform.op._mdf=!0,C.transform.op.v=0):C.transform.op._mdf=!1}a+=1}this._currentCopies=h;var u=this.o.v,b=u%1,_=u>0?Math.floor(u):Math.ceil(u),g=this.pMatrix.props,E=this.rMatrix.props,d=this.sMatrix.props;this.pMatrix.reset(),this.rMatrix.reset(),this.sMatrix.reset(),this.tMatrix.reset(),this.matrix.reset();var f=0;if(u>0){for(;f<_;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),f+=1;b&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,b,!1),f+=b)}else if(u<0){for(;f>_;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!0),f-=1;b&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,-b,!0),f-=b)}s=this.data.m===1?0:this._currentCopies-1,n=this.data.m===1?1:-1,a=this._currentCopies;for(var p,v;a;){if(e=this.elemsData[s].it,r=e[e.length-1].transform.mProps.v.props,v=r.length,e[e.length-1].transform.mProps._mdf=!0,e[e.length-1].transform.op._mdf=!0,e[e.length-1].transform.op.v=this._currentCopies===1?this.so.v:this.so.v+(this.eo.v-this.so.v)*(s/(this._currentCopies-1)),f!==0){for((s!==0&&n===1||s!==this._currentCopies-1&&n===-1)&&this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),this.matrix.transform(E[0],E[1],E[2],E[3],E[4],E[5],E[6],E[7],E[8],E[9],E[10],E[11],E[12],E[13],E[14],E[15]),this.matrix.transform(d[0],d[1],d[2],d[3],d[4],d[5],d[6],d[7],d[8],d[9],d[10],d[11],d[12],d[13],d[14],d[15]),this.matrix.transform(g[0],g[1],g[2],g[3],g[4],g[5],g[6],g[7],g[8],g[9],g[10],g[11],g[12],g[13],g[14],g[15]),p=0;p<v;p+=1)r[p]=this.matrix.props[p];this.matrix.reset()}else for(this.matrix.reset(),p=0;p<v;p+=1)r[p]=this.matrix.props[p];f+=1,a-=1,s+=n}}else for(a=this._currentCopies,s=0,n=1;a;)e=this.elemsData[s].it,r=e[e.length-1].transform.mProps.v.props,e[e.length-1].transform.mProps._mdf=!1,e[e.length-1].transform.op._mdf=!1,a-=1,s+=n;return o},RepeaterModifier.prototype.addShape=function(){};function RoundCornersModifier(){}extendPrototype([ShapeModifier],RoundCornersModifier),RoundCornersModifier.prototype.initModifierProperties=function(t,e){this.getValue=this.processKeys,this.rd=PropertyFactory.getProp(t,e.r,0,null,this),this._isAnimated=!!this.rd.effectsSequence.length},RoundCornersModifier.prototype.processPath=function(t,e){var r=shapePool.newElement();r.c=t.c;var s,n=t._length,a,o,h,l,c,m,C=0,u,b,_,g,E,d;for(s=0;s<n;s+=1)a=t.v[s],h=t.o[s],o=t.i[s],a[0]===h[0]&&a[1]===h[1]&&a[0]===o[0]&&a[1]===o[1]?(s===0||s===n-1)&&!t.c?(r.setTripleAt(a[0],a[1],h[0],h[1],o[0],o[1],C),C+=1):(s===0?l=t.v[n-1]:l=t.v[s-1],c=Math.sqrt(Math.pow(a[0]-l[0],2)+Math.pow(a[1]-l[1],2)),m=c?Math.min(c/2,e)/c:0,E=a[0]+(l[0]-a[0])*m,u=E,d=a[1]-(a[1]-l[1])*m,b=d,_=u-(u-a[0])*roundCorner,g=b-(b-a[1])*roundCorner,r.setTripleAt(u,b,_,g,E,d,C),C+=1,s===n-1?l=t.v[0]:l=t.v[s+1],c=Math.sqrt(Math.pow(a[0]-l[0],2)+Math.pow(a[1]-l[1],2)),m=c?Math.min(c/2,e)/c:0,_=a[0]+(l[0]-a[0])*m,u=_,g=a[1]+(l[1]-a[1])*m,b=g,E=u-(u-a[0])*roundCorner,d=b-(b-a[1])*roundCorner,r.setTripleAt(u,b,_,g,E,d,C),C+=1):(r.setTripleAt(t.v[s][0],t.v[s][1],t.o[s][0],t.o[s][1],t.i[s][0],t.i[s][1],C),C+=1);return r},RoundCornersModifier.prototype.processShapes=function(t){var e,r,s=this.shapes.length,n,a,o=this.rd.v;if(o!==0){var h,l;for(r=0;r<s;r+=1){if(h=this.shapes[r],l=h.localShapeCollection,!(!h.shape._mdf&&!this._mdf&&!t))for(l.releaseShapes(),h.shape._mdf=!0,e=h.shape.paths.shapes,a=h.shape.paths._length,n=0;n<a;n+=1)l.addShape(this.processPath(e[n],o));h.shape.paths=h.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};function floatEqual(t,e){return Math.abs(t-e)*1e5<=Math.min(Math.abs(t),Math.abs(e))}function floatZero(t){return Math.abs(t)<=1e-5}function lerp(t,e,r){return t*(1-r)+e*r}function lerpPoint(t,e,r){return[lerp(t[0],e[0],r),lerp(t[1],e[1],r)]}function quadRoots(t,e,r){if(t===0)return[];var s=e*e-4*t*r;if(s<0)return[];var n=-e/(2*t);if(s===0)return[n];var a=Math.sqrt(s)/(2*t);return[n-a,n+a]}function polynomialCoefficients(t,e,r,s){return[-t+3*e-3*r+s,3*t-6*e+3*r,-3*t+3*e,t]}function singlePoint(t){return new PolynomialBezier(t,t,t,t,!1)}function PolynomialBezier(t,e,r,s,n){n&&pointEqual(t,e)&&(e=lerpPoint(t,s,1/3)),n&&pointEqual(r,s)&&(r=lerpPoint(t,s,2/3));var a=polynomialCoefficients(t[0],e[0],r[0],s[0]),o=polynomialCoefficients(t[1],e[1],r[1],s[1]);this.a=[a[0],o[0]],this.b=[a[1],o[1]],this.c=[a[2],o[2]],this.d=[a[3],o[3]],this.points=[t,e,r,s]}PolynomialBezier.prototype.point=function(t){return[((this.a[0]*t+this.b[0])*t+this.c[0])*t+this.d[0],((this.a[1]*t+this.b[1])*t+this.c[1])*t+this.d[1]]},PolynomialBezier.prototype.derivative=function(t){return[(3*t*this.a[0]+2*this.b[0])*t+this.c[0],(3*t*this.a[1]+2*this.b[1])*t+this.c[1]]},PolynomialBezier.prototype.tangentAngle=function(t){var e=this.derivative(t);return Math.atan2(e[1],e[0])},PolynomialBezier.prototype.normalAngle=function(t){var e=this.derivative(t);return Math.atan2(e[0],e[1])},PolynomialBezier.prototype.inflectionPoints=function(){var t=this.a[1]*this.b[0]-this.a[0]*this.b[1];if(floatZero(t))return[];var e=-.5*(this.a[1]*this.c[0]-this.a[0]*this.c[1])/t,r=e*e-1/3*(this.b[1]*this.c[0]-this.b[0]*this.c[1])/t;if(r<0)return[];var s=Math.sqrt(r);return floatZero(s)?s>0&&s<1?[e]:[]:[e-s,e+s].filter(function(n){return n>0&&n<1})},PolynomialBezier.prototype.split=function(t){if(t<=0)return[singlePoint(this.points[0]),this];if(t>=1)return[this,singlePoint(this.points[this.points.length-1])];var e=lerpPoint(this.points[0],this.points[1],t),r=lerpPoint(this.points[1],this.points[2],t),s=lerpPoint(this.points[2],this.points[3],t),n=lerpPoint(e,r,t),a=lerpPoint(r,s,t),o=lerpPoint(n,a,t);return[new PolynomialBezier(this.points[0],e,n,o,!0),new PolynomialBezier(o,a,s,this.points[3],!0)]};function extrema(t,e){var r=t.points[0][e],s=t.points[t.points.length-1][e];if(r>s){var n=s;s=r,r=n}for(var a=quadRoots(3*t.a[e],2*t.b[e],t.c[e]),o=0;o<a.length;o+=1)if(a[o]>0&&a[o]<1){var h=t.point(a[o])[e];h<r?r=h:h>s&&(s=h)}return{min:r,max:s}}PolynomialBezier.prototype.bounds=function(){return{x:extrema(this,0),y:extrema(this,1)}},PolynomialBezier.prototype.boundingBox=function(){var t=this.bounds();return{left:t.x.min,right:t.x.max,top:t.y.min,bottom:t.y.max,width:t.x.max-t.x.min,height:t.y.max-t.y.min,cx:(t.x.max+t.x.min)/2,cy:(t.y.max+t.y.min)/2}};function intersectData(t,e,r){var s=t.boundingBox();return{cx:s.cx,cy:s.cy,width:s.width,height:s.height,bez:t,t:(e+r)/2,t1:e,t2:r}}function splitData(t){var e=t.bez.split(.5);return[intersectData(e[0],t.t1,t.t),intersectData(e[1],t.t,t.t2)]}function boxIntersect(t,e){return Math.abs(t.cx-e.cx)*2<t.width+e.width&&Math.abs(t.cy-e.cy)*2<t.height+e.height}function intersectsImpl(t,e,r,s,n,a){if(boxIntersect(t,e)){if(r>=a||t.width<=s&&t.height<=s&&e.width<=s&&e.height<=s){n.push([t.t,e.t]);return}var o=splitData(t),h=splitData(e);intersectsImpl(o[0],h[0],r+1,s,n,a),intersectsImpl(o[0],h[1],r+1,s,n,a),intersectsImpl(o[1],h[0],r+1,s,n,a),intersectsImpl(o[1],h[1],r+1,s,n,a)}}PolynomialBezier.prototype.intersections=function(t,e,r){e===void 0&&(e=2),r===void 0&&(r=7);var s=[];return intersectsImpl(intersectData(this,0,1),intersectData(t,0,1),0,e,s,r),s},PolynomialBezier.shapeSegment=function(t,e){var r=(e+1)%t.length();return new PolynomialBezier(t.v[e],t.o[e],t.i[r],t.v[r],!0)},PolynomialBezier.shapeSegmentInverted=function(t,e){var r=(e+1)%t.length();return new PolynomialBezier(t.v[r],t.i[r],t.o[e],t.v[e],!0)};function crossProduct(t,e){return[t[1]*e[2]-t[2]*e[1],t[2]*e[0]-t[0]*e[2],t[0]*e[1]-t[1]*e[0]]}function lineIntersection(t,e,r,s){var n=[t[0],t[1],1],a=[e[0],e[1],1],o=[r[0],r[1],1],h=[s[0],s[1],1],l=crossProduct(crossProduct(n,a),crossProduct(o,h));return floatZero(l[2])?null:[l[0]/l[2],l[1]/l[2]]}function polarOffset(t,e,r){return[t[0]+Math.cos(e)*r,t[1]-Math.sin(e)*r]}function pointDistance(t,e){return Math.hypot(t[0]-e[0],t[1]-e[1])}function pointEqual(t,e){return floatEqual(t[0],e[0])&&floatEqual(t[1],e[1])}function ZigZagModifier(){}extendPrototype([ShapeModifier],ZigZagModifier),ZigZagModifier.prototype.initModifierProperties=function(t,e){this.getValue=this.processKeys,this.amplitude=PropertyFactory.getProp(t,e.s,0,null,this),this.frequency=PropertyFactory.getProp(t,e.r,0,null,this),this.pointsType=PropertyFactory.getProp(t,e.pt,0,null,this),this._isAnimated=this.amplitude.effectsSequence.length!==0||this.frequency.effectsSequence.length!==0||this.pointsType.effectsSequence.length!==0};function setPoint(t,e,r,s,n,a,o){var h=r-Math.PI/2,l=r+Math.PI/2,c=e[0]+Math.cos(r)*s*n,m=e[1]-Math.sin(r)*s*n;t.setTripleAt(c,m,c+Math.cos(h)*a,m-Math.sin(h)*a,c+Math.cos(l)*o,m-Math.sin(l)*o,t.length())}function getPerpendicularVector(t,e){var r=[e[0]-t[0],e[1]-t[1]],s=-Math.PI*.5,n=[Math.cos(s)*r[0]-Math.sin(s)*r[1],Math.sin(s)*r[0]+Math.cos(s)*r[1]];return n}function getProjectingAngle(t,e){var r=e===0?t.length()-1:e-1,s=(e+1)%t.length(),n=t.v[r],a=t.v[s],o=getPerpendicularVector(n,a);return Math.atan2(0,1)-Math.atan2(o[1],o[0])}function zigZagCorner(t,e,r,s,n,a,o){var h=getProjectingAngle(e,r),l=e.v[r%e._length],c=e.v[r===0?e._length-1:r-1],m=e.v[(r+1)%e._length],C=a===2?Math.sqrt(Math.pow(l[0]-c[0],2)+Math.pow(l[1]-c[1],2)):0,u=a===2?Math.sqrt(Math.pow(l[0]-m[0],2)+Math.pow(l[1]-m[1],2)):0;setPoint(t,e.v[r%e._length],h,o,s,u/((n+1)*2),C/((n+1)*2))}function zigZagSegment(t,e,r,s,n,a){for(var o=0;o<s;o+=1){var h=(o+1)/(s+1),l=n===2?Math.sqrt(Math.pow(e.points[3][0]-e.points[0][0],2)+Math.pow(e.points[3][1]-e.points[0][1],2)):0,c=e.normalAngle(h),m=e.point(h);setPoint(t,m,c,a,r,l/((s+1)*2),l/((s+1)*2)),a=-a}return a}ZigZagModifier.prototype.processPath=function(t,e,r,s){var n=t._length,a=shapePool.newElement();if(a.c=t.c,t.c||(n-=1),n===0)return a;var o=-1,h=PolynomialBezier.shapeSegment(t,0);zigZagCorner(a,t,0,e,r,s,o);for(var l=0;l<n;l+=1)o=zigZagSegment(a,h,e,r,s,-o),l===n-1&&!t.c?h=null:h=PolynomialBezier.shapeSegment(t,(l+1)%n),zigZagCorner(a,t,l+1,e,r,s,o);return a},ZigZagModifier.prototype.processShapes=function(t){var e,r,s=this.shapes.length,n,a,o=this.amplitude.v,h=Math.max(0,Math.round(this.frequency.v)),l=this.pointsType.v;if(o!==0){var c,m;for(r=0;r<s;r+=1){if(c=this.shapes[r],m=c.localShapeCollection,!(!c.shape._mdf&&!this._mdf&&!t))for(m.releaseShapes(),c.shape._mdf=!0,e=c.shape.paths.shapes,a=c.shape.paths._length,n=0;n<a;n+=1)m.addShape(this.processPath(e[n],o,h,l));c.shape.paths=c.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};function linearOffset(t,e,r){var s=Math.atan2(e[0]-t[0],e[1]-t[1]);return[polarOffset(t,s,r),polarOffset(e,s,r)]}function offsetSegment(t,e){var r,s,n,a,o,h,l;l=linearOffset(t.points[0],t.points[1],e),r=l[0],s=l[1],l=linearOffset(t.points[1],t.points[2],e),n=l[0],a=l[1],l=linearOffset(t.points[2],t.points[3],e),o=l[0],h=l[1];var c=lineIntersection(r,s,n,a);c===null&&(c=s);var m=lineIntersection(o,h,n,a);return m===null&&(m=o),new PolynomialBezier(r,c,m,h)}function joinLines(t,e,r,s,n){var a=e.points[3],o=r.points[0];if(s===3||pointEqual(a,o))return a;if(s===2){var h=-e.tangentAngle(1),l=-r.tangentAngle(0)+Math.PI,c=lineIntersection(a,polarOffset(a,h+Math.PI/2,100),o,polarOffset(o,h+Math.PI/2,100)),m=c?pointDistance(c,a):pointDistance(a,o)/2,C=polarOffset(a,h,2*m*roundCorner);return t.setXYAt(C[0],C[1],"o",t.length()-1),C=polarOffset(o,l,2*m*roundCorner),t.setTripleAt(o[0],o[1],o[0],o[1],C[0],C[1],t.length()),o}var u=pointEqual(a,e.points[2])?e.points[0]:e.points[2],b=pointEqual(o,r.points[1])?r.points[3]:r.points[1],_=lineIntersection(u,a,o,b);return _&&pointDistance(_,a)<n?(t.setTripleAt(_[0],_[1],_[0],_[1],_[0],_[1],t.length()),_):a}function getIntersection(t,e){var r=t.intersections(e);return r.length&&floatEqual(r[0][0],1)&&r.shift(),r.length?r[0]:null}function pruneSegmentIntersection(t,e){var r=t.slice(),s=e.slice(),n=getIntersection(t[t.length-1],e[0]);return n&&(r[t.length-1]=t[t.length-1].split(n[0])[0],s[0]=e[0].split(n[1])[1]),t.length>1&&e.length>1&&(n=getIntersection(t[0],e[e.length-1]),n)?[[t[0].split(n[0])[0]],[e[e.length-1].split(n[1])[1]]]:[r,s]}function pruneIntersections(t){for(var e,r=1;r<t.length;r+=1)e=pruneSegmentIntersection(t[r-1],t[r]),t[r-1]=e[0],t[r]=e[1];return t.length>1&&(e=pruneSegmentIntersection(t[t.length-1],t[0]),t[t.length-1]=e[0],t[0]=e[1]),t}function offsetSegmentSplit(t,e){var r=t.inflectionPoints(),s,n,a,o;if(r.length===0)return[offsetSegment(t,e)];if(r.length===1||floatEqual(r[1],1))return a=t.split(r[0]),s=a[0],n=a[1],[offsetSegment(s,e),offsetSegment(n,e)];a=t.split(r[0]),s=a[0];var h=(r[1]-r[0])/(1-r[0]);return a=a[1].split(h),o=a[0],n=a[1],[offsetSegment(s,e),offsetSegment(o,e),offsetSegment(n,e)]}function OffsetPathModifier(){}extendPrototype([ShapeModifier],OffsetPathModifier),OffsetPathModifier.prototype.initModifierProperties=function(t,e){this.getValue=this.processKeys,this.amount=PropertyFactory.getProp(t,e.a,0,null,this),this.miterLimit=PropertyFactory.getProp(t,e.ml,0,null,this),this.lineJoin=e.lj,this._isAnimated=this.amount.effectsSequence.length!==0},OffsetPathModifier.prototype.processPath=function(t,e,r,s){var n=shapePool.newElement();n.c=t.c;var a=t.length();t.c||(a-=1);var o,h,l,c=[];for(o=0;o<a;o+=1)l=PolynomialBezier.shapeSegment(t,o),c.push(offsetSegmentSplit(l,e));if(!t.c)for(o=a-1;o>=0;o-=1)l=PolynomialBezier.shapeSegmentInverted(t,o),c.push(offsetSegmentSplit(l,e));c=pruneIntersections(c);var m=null,C=null;for(o=0;o<c.length;o+=1){var u=c[o];for(C&&(m=joinLines(n,C,u[0],r,s)),C=u[u.length-1],h=0;h<u.length;h+=1)l=u[h],m&&pointEqual(l.points[0],m)?n.setXYAt(l.points[1][0],l.points[1][1],"o",n.length()-1):n.setTripleAt(l.points[0][0],l.points[0][1],l.points[1][0],l.points[1][1],l.points[0][0],l.points[0][1],n.length()),n.setTripleAt(l.points[3][0],l.points[3][1],l.points[3][0],l.points[3][1],l.points[2][0],l.points[2][1],n.length()),m=l.points[3]}return c.length&&joinLines(n,C,c[0][0],r,s),n},OffsetPathModifier.prototype.processShapes=function(t){var e,r,s=this.shapes.length,n,a,o=this.amount.v,h=this.miterLimit.v,l=this.lineJoin;if(o!==0){var c,m;for(r=0;r<s;r+=1){if(c=this.shapes[r],m=c.localShapeCollection,!(!c.shape._mdf&&!this._mdf&&!t))for(m.releaseShapes(),c.shape._mdf=!0,e=c.shape.paths.shapes,a=c.shape.paths._length,n=0;n<a;n+=1)m.addShape(this.processPath(e[n],o,l,h));c.shape.paths=c.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};function getFontProperties(t){for(var e=t.fStyle?t.fStyle.split(" "):[],r="normal",s="normal",n=e.length,a,o=0;o<n;o+=1)switch(a=e[o].toLowerCase(),a){case"italic":s="italic";break;case"bold":r="700";break;case"black":r="900";break;case"medium":r="500";break;case"regular":case"normal":r="400";break;case"light":case"thin":r="200";break}return{style:s,weight:t.fWeight||r}}var FontManager=(function(){var t=5e3,e={w:0,size:0,shapes:[],data:{shapes:[]}},r=[];r=r.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 s=127988,n=917631,a=917601,o=917626,h=65039,l=8205,c=127462,m=127487,C=["d83cdffb","d83cdffc","d83cdffd","d83cdffe","d83cdfff"];function u(A){var T=A.split(","),y,S=T.length,R=[];for(y=0;y<S;y+=1)T[y]!=="sans-serif"&&T[y]!=="monospace"&&R.push(T[y]);return R.join(",")}function b(A,T){var y=createTag("span");y.setAttribute("aria-hidden",!0),y.style.fontFamily=T;var S=createTag("span");S.innerText="giItT1WQy@!-/#",y.style.position="absolute",y.style.left="-10000px",y.style.top="-10000px",y.style.fontSize="300
35px",y.style.fontVariant="normal",y.style.fontStyle="normal",y.style.fontWeight="normal",y.style.letterSpacing="0",y.appendChild(S),document.body.appendChild(y);var R=S.offsetWidth;return S.style.fontFamily=u(A)+", "+T,{node:S,w:R,parent:y}}function _(){var A,T=this.fonts.length,y,S,R=T;for(A=0;A<T;A+=1)this.fonts[A].loaded?R-=1:this.fonts[A].fOrigin==="n"||this.fonts[A].origin===0?this.fonts[A].loaded=!0:(y=this.fonts[A].monoCase.node,S=this.fonts[A].monoCase.w,y.offsetWidth!==S?(R-=1,this.fonts[A].loaded=!0):(y=this.fonts[A].sansCase.node,S=this.fonts[A].sansCase.w,y.offsetWidth!==S&&(R-=1,this.fonts[A].loaded=!0)),this.fonts[A].loaded&&(this.fonts[A].sansCase.parent.parentNode.removeChild(this.fonts[A].sansCase.parent),this.fonts[A].monoCase.parent.parentNode.removeChild(this.fonts[A].monoCase.parent)));R!==0&&Date.now()-this.initTime<t?setTimeout(this.checkLoadedFontsBinded,20):setTimeout(this.setIsLoadedBinded,10)}function g(A,T){var y=document.body&&T?"svg":"canvas",S,R=getFontProperties(A);if(y==="svg"){var k=createNS("text");k.style.fontSize="100px",k.setAttribute("font-family",A.fFamily),k.setAttribute("font-style",R.style),k.setAttribute("font-weight",R.weight),k.textContent="1",A.fClass?(k.style.fontFamily="inherit",k.setAttribute("class",A.fClass)):k.style.fontFamily=A.fFamily,T.appendChild(k),S=k}else{var V=new OffscreenCanvas(500,500).getContext("2d");V.font=R.style+" "+R.weight+" 100px "+A.fFamily,S=V}function q(G){return y==="svg"?(S.textContent=G,S.getComputedTextLength()):S.measureText(G).width}return{measureText:q}}function E(A,T){if(!A){this.isLoaded=!0;return}if(this.chars){this.isLoaded=!0,this.fonts=A.list;return}if(!document.body){this.isLoaded=!0,A.list.forEach(function(ee){ee.helper=g(ee),ee.cache={}}),this.fonts=A.list;return}var y=A.list,S,R=y.length,k=R;for(S=0;S<R;S+=1){var V=!0,q,G;if(y[S].loaded=!1,y[S].monoCase=b(y[S].fFamily,"monospace"),y[S].sansCase=b(y[S].fFamily,"sans-serif"),!y[S].fPath)y[S].loaded=!0,k-=1;else if(y[S].fOrigin==="p"||y[S].origin===3){if(q=document.querySelectorAll('style[f-forigin="p"][f-family="'+y[S].fFamily+'"], style[f-origin="3"][f-family="'+y[S].fFamily+'"]'),q.length>0&&(V=!1),V){var H=createTag("style");H.setAttribute("f-forigin",y[S].fOrigin),H.setAttribute("f-origin",y[S].origin),H.setAttribute("f-family",y[S].fFamily),H.type="text/css",H.innerText="@font-face {font-family: "+y[S].fFamily+"; font-style: normal; src: url('"+y[S].fPath+"');}",T.appendChild(H)}}else if(y[S].fOrigin==="g"||y[S].origin===1){for(q=document.querySelectorAll('link[f-forigin="g"], link[f-origin="1"]'),G=0;G<q.length;G+=1)q[G].href.indexOf(y[S].fPath)!==-1&&(V=!1);if(V){var W=createTag("link");W.setAttribute("f-forigin",y[S].fOrigin),W.setAttribute("f-origin",y[S].origin),W.type="text/css",W.rel="stylesheet",W.href=y[S].fPath,document.body.appendChild(W)}}else if(y[S].fOrigin==="t"||y[S].origin===2){for(q=document.querySelectorAll('script[f-forigin="t"], script[f-origin="2"]'),G=0;G<q.length;G+=1)y[S].fPath===q[G].src&&(V=!1);if(V){var K=createTag("link");K.setAttribute("f-forigin",y[S].fOrigin),K.setAttribute("f-origin",y[S].origin),K.setAttribute("rel","stylesheet"),K.setAttribute("href",y[S].fPath),T.appendChild(K)}}y[S].helper=g(y[S],T),y[S].cache={},this.fonts.push(y[S])}k===0?this.isLoaded=!0:setTimeout(this.checkLoadedFonts.bind(this),100)}function d(A){if(A){this.chars||(this.chars=[]);var T,y=A.length,S,R=this.chars.length,k;for(T=0;T<y;T+=1){for(S=0,k=!1;S<R;)this.chars[S].style===A[T].style&&this.chars[S].fFamily===A[T].fFamily&&this.chars[S].ch===A[T].ch&&(k=!0),S+=1;k||(this.chars.push(A[T]),R+=1)}}}function f(A,T,y){for(var S=0,R=this.chars.length;S<R;){if(this.chars[S].ch===A&&this.chars[S].style===T&&this.chars[S].fFamily===y)return this.chars[S];S+=1}return(typeof A=="string"&&A.charCodeAt(0)!==13||!A)&&console&&console.warn&&!this._warned&&(this._warned=!0,console.warn("Missing character from exported characters list: ",A,T,y)),e}function p(A,T,y){var S=this.getFontByName(T),R=A;if(!S.cache[R]){var k=S.helper;if(A===" "){var V=k.measureText("|"+A+"|"),q=k.measureText("||");S.cache[R]=(V-q)/100}else S.cache[R]=k.measureText(A)/100}return S.cache[R]*y}function v(A){for(var T=0,y=this.fonts.length;T<y;){if(this.fonts[T].fName===A)return this.fonts[T];T+=1}return this.fonts[0]}function P(A){var T=0,y=A.charCodeAt(0);if(y>=55296&&y<=56319){var S=A.charCodeAt(1);
vendor: 69,965 bytes, line 35
35S>=56320&&S<=57343&&(T=(y-55296)*1024+S-56320+65536)}return T}function M(A,T){var y=A.toString(16)+T.toString(16);return C.indexOf(y)!==-1}function w(A){return A===l}function I(A){return A===h}function B(A){var T=P(A);return T>=c&&T<=m}function x(A){return B(A.substr(0,2))&&B(A.substr(2,2))}function L(A){return r.indexOf(A)!==-1}function F(A,T){var y=P(A.substr(T,2));if(y!==s)return!1;var S=0;for(T+=2;S<5;){if(y=P(A.substr(T,2)),y<a||y>o)return!1;S+=1,T+=2}return P(A.substr(T,2))===n}function O(){this.isLoaded=!0}var $=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)};$.isModifier=M,$.isZeroWidthJoiner=w,$.isFlagEmoji=x,$.isRegionalCode=B,$.isCombinedCharacter=L,$.isRegionalFlag=F,$.isVariationSelector=I,$.BLACK_FLAG_CODE_POINT=s;var D={addChars:d,addFonts:E,getCharData:f,getFontByName:v,measureText:p,checkLoadedFonts:_,setIsLoaded:O};return $.prototype=D,$})();function SlotManager(t){this.animationData=t}SlotManager.prototype.getProp=function(t){return this.animationData.slots&&this.animationData.slots[t.sid]?Object.assign(t,this.animationData.slots[t.sid].p):t};function slotFactory(t){return new SlotManager(t)}function RenderableElement(){}RenderableElement.prototype={initRenderable:function(){this.isInRange=!1,this.hidden=!1,this.isTransparent=!1,this.renderableComponents=[]},addRenderableComponent:function(e){this.renderableComponents.indexOf(e)===-1&&this.renderableComponents.push(e)},removeRenderableComponent:function(e){this.renderableComponents.indexOf(e)!==-1&&this.renderableComponents.splice(this.renderableComponents.indexOf(e),1)},prepareRenderableFrame:function(e){this.checkLayerLimits(e)},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(e){this.data.ip-this.data.st<=e&&this.data.op-this.data.st>e?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 e,r=this.renderableComponents.length;for(e=0;e<r;e+=1)this.renderableComponents[e].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 t={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(e){return t[e]||""}})();function SliderEffect(t,e,r){this.p=PropertyFactory.getProp(e,t.v,0,0,r)}function AngleEffect(t,e,r){this.p=PropertyFactory.getProp(e,t.v,0,0,r)}function ColorEffect(t,e,r){this.p=PropertyFactory.getProp(e,t.v,1,0,r)}function PointEffect(t,e,r){this.p=PropertyFactory.getProp(e,t.v,1,0,r)}function LayerIndexEffect(t,e,r){this.p=PropertyFactory.getProp(e,t.v,0,0,r)}function MaskIndexEffect(t,e,r){this.p=PropertyFactory.getProp(e,t.v,0,0,r)}function CheckboxEffect(t,e,r){this.p=PropertyFactory.getProp(e,t.v,0,0,r)}function NoValueEffect(){this.p={}}function EffectsManager(t,e){var r=t.ef||[];this.effectElements=[];var s,n=r.length,a;for(s=0;s<n;s+=1)a=new GroupEffect(r[s],e),this.effectElements.push(a)}function GroupEffect(t,e){this.init(t,e)}extendPrototype([DynamicPropertyContainer],GroupEffect),GroupEffect.prototype.getValue=GroupEffect.prototype.iterateDynamicProperties,GroupEffect.prototype.init=function(t,e){this.data=t,this.effectElements=[],this.initDynamicPropertyContainer(e);var r,s=this.data.ef.length,n,a=this.data.ef;for(r=0;r<s;r+=1){switch(n=null,a[r].ty){case 0:n=new SliderEffect(a[r],e,this);break;case 1:n=new AngleEffect(a[r],e,this);break;case 2:n=new ColorEffect(a[r],e,this);break;case 3:n=new PointEffect(a[r],e,this);break;case 4:case 7:n=new CheckboxEffect(a[r],e,this);break;case 10:n=new LayerIndexEffect(a[r],e,this);break;case 11:n=new MaskIndexEffect(a[r],e,this);break;case 5:n=new EffectsManager(a[r],e);break;default:n=new NoValueEffect(a[r]);break}n&&this.effectElements.push(n)}};function BaseElement(){}BaseElement.prototype={checkMasks:function(){if(!this.data.hasMask)return!1;for(var e=0,r=this.data.masksProperties.length;e<r;){if(this.data.masksProperties[e].mode!=="n"&&this.data.masksProperties[e].cl!==!1)return!0;e+=1}return!1},initExpressions:function(){var e=getExpressionInterfaces();if(e){var r=e("layer"),s=e("effects"),n=e("shape"),a=e("text"),o=e("comp");this.layerInterface=r(this),this.data.hasMask&&this.maskManager&&this.layerInterface.registerMaskInterface(this.maskManager);var h=s.createEffectsInterface(this,this.layerInterface);this.layerInterface.registerEffectsInterface(h),this.data.ty===0||this.data.xt?this.compInterface=o(this):this.data.ty===4?(this.layerInterface.shapeInterface=n(this.shapesData,this.itemsData,this.layerInterface),this.layerInterface.content=this.layerInterface.shapeInterface):this.data.ty===5&&(this.layerInterface.textInterface=a(this),this.layerInterface.text=this.layerInterface.textInterface)}},setBlendMode:function(){var e=getBlendMode(this.data.bm),r=this.baseElement||this.layerElement;r.style["mix-blend-mode"]=e},initBaseData:function(e,r,s){this.globalData=r,this.comp=s,this.data=e,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(e,r){var s,n=this.dynamicProperties.length;for(s=0;s<n;s+=1)(r||this._isParent&&this.dynamicProperties[s].propType==="transform")&&(this.dynamicProperties[s].getValue(),this.dynamicProperties[s]._mdf&&(this.globalData._mdf=!0,this._mdf=!0))},addDynamicProperty:function(e){this.dynamicProperties.indexOf(e)===-1&&this.dynamicProperties.push(e)}};function FootageElement(t,e,r){this.initFrame(),this.initRenderable(),this.assetData=e.getAssetData(t.refId),this.footageData=e.imageLoader.getAsset(this.assetData),this.initBaseData(t,e,r)}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 t=getExpressionInterfaces();if(t){var e=t("footage");this.layerInterface=e(this)}},FootageElement.prototype.getFootageData=function(){return this.footageData};function AudioElement(t,e,r){this.initFrame(),this.initRenderable(),this.assetData=e.getAssetData(t.refId),this.initBaseData(t,e,r),this._isPlaying=!1,this._canPlay=!1;var s=this.globalData.getAssetsPath(this.assetData);this.audio=this.globalData.audioController.createAudio(s),this._currentTime=0,this.globalData.audioController.addAudio(this),this._volumeMultiplier=1,this._volume=1,this._previousVolume=null,this.tm=t.tm?PropertyFactory.getProp(this,t.tm,0,e.frameRate,this):{_placeholder:!0},this.lv=PropertyFactory.getProp(this,t.au&&t.au.lv?t.au.lv:{k:[100]},1,.01,this)}AudioElement.prototype.prepareFrame=function(t){if(this.prepareRenderableFrame(t,!0),this.prepareProperties(t,!0),this.tm._placeholder)this._currentTime=t/this.data.sr;else{var e=this.tm.v;this._currentTime=e}this._volume=this.lv.v[0];var r=this._volume*this._volumeMultiplier;this._previousVolume!==r&&(this._previousVolume=r,this.audio.volume(r))},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(t){this.audio.rate(t)},AudioElement.prototype.volume=function(t){this._volumeMultiplier=t,this._previousVolume=t*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(t){var e,r=this.layers.length,s;for(this.completeLayers=!0,e=r-1;e>=0;e-=1)this.elements[e]||(s=this.layers[e],s.ip-s.st<=t-this.layers[e].st&&s.op-s.st>t-this.layers[e].st&&this.buildItem(e)),this.completeLayers=this.elements[e]?this.completeLayers:!1;this.checkPendingElements()},BaseRenderer.prototype.createItem=function(t){switch(t.ty){case 2:return this.createImage(t);case 0:return this.createComp(t);case 1:return this.createSolid(t);case 3:return this.createNull(t);case 4:return this.createShape(t);case 5:return this.createText(t);case 6:return this.createAudio(t);case 13:return this.createCamera(t);case 15:return this.createFootage(t);default:return this.createNull(t)}},BaseRenderer.prototype.createCamera=function(){throw new Error("You're using a 3d camera. Try the html renderer.")},BaseRenderer.prototype.createAudio=function(t){return new AudioElement(t,this.globalData,this)},BaseRenderer.prototype.createFootage=function(t){return new FootageElement(t,this.globalData,this)},BaseRenderer.prototype.buildAllItems=function(){var t,e=this.layers.length;for(t=0;t<e;t+=1)this.buildItem(t);this.checkPendingElements()},BaseRenderer.prototype.includeLayers=function(t){this.completeLayers=!1;var e,r=t.length,s,n=this.layers.length;for(e=0;e<r;e+=1)for(s=0;s<n;){if(this.layers[s].id===t[e].id){this.layers[s]=t[e];break}s+=1}},BaseRenderer.prototype.setProjectInterface=function(t){this.globalData.projectInterface=t},BaseRenderer.prototype.initItems=function(){this.globalData.progressiveLoad||this.buildAllItems()},BaseRenderer.prototype.buildElementParenting=function(t,e,r){for(var s=this.elements,n=this.layers,a=0,o=n.length;a<o;)n[a].ind==e&&(!s[a]||s[a]===!0?(this.buildItem(a),this.addPendingElement(t)):(r.push(s[a]),s[a].setAsParent(),n[a].parent!==void 0?this.buildElementParenting(t,n[a].parent,r):t.setHierarchy(r))),a+=1},BaseRenderer.prototype.addPendingElement=function(t){this.pendingElements.push(t)},BaseRenderer.prototype.searchExtraCompositions=function(t){var e,r=t.length;for(e=0;e<r;e+=1)if(t[e].xt){var s=this.createComp(t[e]);s.initExpressions(),this.globalData.projectInterface.registerComposition(s)}},BaseRenderer.prototype.getElementById=function(t){var e,r=this.elements.length;for(e=0;e<r;e+=1)if(this.elements[e].data.ind===t)return this.elements[e];return null},BaseRenderer.prototype.getElementByPath=function(t){var e=t.shift(),r;if(typeof e=="number")r=this.elements[e];else{var s,n=this.elements.length;for(s=0;s<n;s+=1)if(this.elements[s].data.nm===e){r=this.elements[s];break}}return t.length===0?r:r.getElementByPath(t)},BaseRenderer.prototype.setupGlobalData=function(t,e){this.globalData.fontManager=new FontManager,this.globalData.slotManager=slotFactory(t),this.globalData.fontManager.addChars(t.chars),this.globalData.fontManager.addFonts(t.fonts,e),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=t.fr,this.globalData.nm=t.nm,this.globalData.compSize={w:t.w,h:t.h}};var effectTypes={TRANSFORM_EFFECT:"transformEFfect"};function TransformElement(){}TransformElement.prototype={initTransform:function(){var e=new Matrix;this.finalTransform={mProp:this.data.ks?TransformPropertyFactory.getTransformProperty(this,this.data.ks,this):{o:0},_matMdf:!1,_localMatMdf:!1,_opMdf:!1,mat:e,localMat:e,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 e,r=this.finalTransform.mat,s=0,n=this.hierarchy.length;if(!this.finalTransform._matMdf)for(;s<n;){if(this.hierarchy[s].finalTransform.mProp._mdf){this.finalTransform._matMdf=!0;break}s+=1}if(this.finalTransform._matMdf)for(e=this.finalTransform.mProp.v.props,r.cloneFromProps(e),s=0;s<n;s+=1)r.multiply(this.hierarchy[s].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 e=0,r=this.localTransforms.length;if(this.finalTransform._localMatMdf=this.finalTransform._matMdf,!this.finalTransform._localMatMdf||!this.finalTransform._opMdf)for(;e<r;)this.localTransforms[e]._mdf&&(this.finalTransform._localMatMdf=!0),this.localTransforms[e]._opMdf&&!this.finalTransform._opMdf&&(this.finalTransform.localOpacity=this.finalTransform.mProp.o.v,this.finalTransform._opMdf=!0),e+=1;if(this.finalTransform._localMatMdf){var s=this.finalTransform.localMat;for(this.localTransforms[0].matrix.clone(s),e=1;e<r;e+=1){var n=this.localTransforms[e].matrix;s.multiply(n)}s.multiply(this.finalTransform.mat)}if(this.finalTransform._opMdf){var a=this.finalTransform.localOpacity;for(e=0;e<r;e+=1)a*=this.localTransforms[e].opacity*.01;this.finalTransform.localOpacity=a}}},searchEffectTransforms:function(){if(this.renderableEffectsManager){var e=this.renderableEffectsManager.getEffects(effectTypes.TRANSFORM_EFFECT);if(e.length){this.localTransforms=[],this.finalTransform.localMat=new Matrix;var r=0,s=e.length;for(r=0;r<s;r+=1)this.localTransforms.push(e[r])}}},globalToLocal:function(e){var r=[];r.push(this.finalTransform);for(var s=!0,n=this.comp;s;)n.finalTransform?(n.data.hasMask&&r.splice(0,0,n.finalTransform),n=n.comp):s=!1;var a,o=r.length,h;for(a=0;a<o;a+=1)h=r[a].mat.applyToPointArray(0,0,0),e=[e[0]-h[0],e[1]-h[1],0];return e},mHelper:new Matrix};function MaskElement(t,e,r){this.data=t,this.element=e,this.globalData=r,this.storedData=[],this.masksProperties=this.data.masksProperties||[],this.maskElement=null;var s=this.globalData.defs,n,a=this.masksProperties?this.masksProperties.length:0;this.viewData=createSizedArray(a),this.solidPath="";var o,h=this.masksProperties,l=0,c=[],m,C,u=createElementID(),b,_,g,E,d="clipPath",f="clip-path";for(n=0;n<a;n+=1)if((h[n].mode!=="a"&&h[n].mode!=="n"||h[n].inv||h[n].o.k!==100||h[n].o.x)&&(d="mask",f="mask"),(h[n].mode==="s"||h[n].mode==="i")&&l===0?(b=createNS("rect"),b.setAttribute("fill","#ffffff"),b.setAttribute("width",this.element.comp.data.w||0),b.setAttribute("height",this.element.comp.data.h||0),c.push(b)):b=null,o=createNS("path"),h[n].mode==="n")this.viewData[n]={op:PropertyFactory.getProp(this.element,h[n].o,0,.01,this.element),prop:ShapePropertyFactory.getShapeProp(this.element,h[n],3),elem:o,lastPath:""},s.appendChild(o);else{l+=1,o.setAttribute("fill",h[n].mode==="s"?"#000000":"#ffffff"),o.setAttribute("clip-rule","nonzero");var p;if(h[n].x.k!==0?(d="mask",f="mask",E=PropertyFactory.getProp(this.element,h[n].x,0,null,this.element),p=createElementID(),_=createNS("filter"),_.setAttribute("id",p),g=createNS("feMorphology"),g.setAttribute("operator","erode"),g.setAttribute("in","SourceGraphic"),g.setAttribute("radius","0"),_.appendChild(g),s.appendChild(_),o.setAttribute("stroke",h[n].mode==="s"?"#000000":"#ffffff")):(g=null,E=null),this.storedData[n]={elem:o,x:E,expan:g,lastPath:"",lastOperator:"",filterId:p,lastRadius:0},h[n].mode==="i"){C=c.length;var v=createNS("g");for(m=0;m<C;m+=1)v.appendChild(c[m]);var P=createNS("mask");P.setAttribute("mask-type","alpha"),P.setAttribute("id",u+"_"+l),P.appendChild(o),s.appendChild(P),v.setAttribute("mask","url("+getLocationHref()+"#"+u+"_"+l+")"),c.length=0,c.push(v)}else c.push(o);h[n].inv&&!this.solidPath&&(this.solidPath=this.createLayerSolidPath()),this.viewData[n]={elem:o,lastPath:"",op:PropertyFactory.getProp(this.element,h[n].o,0,.01,this.element),prop:ShapePropertyFactory.getShapeProp(this.element,h[n],3),invRect:b},this.viewData[n].prop.k||this.drawPath(h[n],this.viewData[n].prop.v,this.viewData[n])}for(this.maskElement=createNS(d),a=c.length,n=0;n<a;n+=1)this.maskElement.appendChild(c[n]);l>0&&(this.maskElement.setAttribute("id",u),this.element.maskedElement.setAttribute(f,"url("+getLocationHref()+"#"+u+")"),s.appendChild(this.maskElement)),this.viewData.length&&this.element.addRenderableComponent(this)}MaskElement.prototype.getMaskProperty=function(t){return this.viewData[t].prop},MaskElement.prototype.renderFrame=function(t){var e=this.element.finalTransform.mat,r,s=this.masksProperties.length;for(r=0;r<s;r+=1)if((this.viewData[r].prop._mdf||t)&&this.drawPath(this.masksProperties[r],this.viewData[r].prop.v,this.viewData[r]),(this.viewData[r].op._mdf||t)&&this.viewData[r].elem.setAttribute("fill-opacity",this.viewData[r].op.v),this.masksProperties[r].mode!=="n"&&(this.viewData[r].invRect&&(this.element.finalTransform.mProp._mdf||t)&&this.viewData[r].invRect.setAttribute("transform",e.getInverseMatrix().to2dCSS()),this.storedData[r].x&&(this.storedData[r].x._mdf||t))){var n=this.storedData[r].expan;this.storedData[r].x.v<0?(this.storedData[r].lastOperator!=="erode"&&(this.storedData[r].lastOperator="erode",this.storedData[r].elem.setAttribute("filter","url("+getLocationHref()+"#"+this.storedData[r].filterId+")")),n.setAttribute("radius",-this.storedData[r].x.v)):(this.storedData[r].lastOperator!=="dilate"&&(this.storedData[r].lastOperator="dilate",this.storedData[r].elem.setAttribute("filter",null)),this.storedData[r].elem.setAttribute("stroke-width",this.storedData[r].x.v*2))}},MaskElement.prototype.getMaskelement=function(){return this.maskElement},MaskElement.prototype.createLayerSolidPath=function(){var t="M0,0 ";return t+=" h"+this.globalData.compSize.w,t+=" v"+this.globalData.compSize.h,t+=" h-"+this.globalData.compSize.w,t+=" v-"+this.globalData.compSize.h+" ",t},MaskElement.prototype.drawPath=function(t,e,r){var s=" M"+e.v[0][0]+","+e.v[0][1],n,a;for(a=e._length,n=1;n<a;n+=1)s+=" C"+e.o[n-1][0]+","+e.o[n-1][1]+" "+e.i[n][0]+","+e.i[n][1]+" "+e.v[n][0]+","+e.v[n][1];if(e.c&&a>1&&(s+=" C"+e.o[n-1][0]+","+e.o[n-1][1]+" "+e.i[0][0]+","+e.i[0][1]+" "+e.v[0][0]+","+e.v[0][1]),r.lastPath!==s){var o="";r.elem&&(e.c&&(o=t.inv?this.solidPath+s:s),r.elem.setAttribute("d",o)),r.lastPath=s}},MaskElement.prototype.destroy=function(){this.element=null,this.globalData=null,this.maskElement=null,this.data=null,this.masksProperties=null};var filtersFactory=(function(){var t={};t.createFilter=e,t.createAlphaToLuminanceFilter=r;function e(s,n){var a=createNS("filter");return a.setAttribute("id",s),n!==!0&&(a.setAttribute("filterUnits","objectBoundingBox"),a.setAttribute("x","0%"),a.setAttribute("y","0%"),a.setAttribute("width","100%"),a.setAttribute("height","100%")),a}function r(){var s=createNS("feColorMatrix");return s.setAttribute("type","matrix"),s.setAttribute("color-interpolation-filters","sRGB"),s.setAttribute("values","0 0 0 1 0  0 0 0 1 0  0 0 0 1 0  0 0 0 1 1"),s}return t})(),featureSupport=(function(){var t={maskType:!0,svgLumaHidden:!0,offscreenCanvas:typeof OffscreenCanvas<"u"};return(/MSIE 10/i.test(navigator.userAgent)||/MSIE 9/i.test(navigator.userAgent)||/rv:11.0/i.test(navigator.userAgent)||/Edge\/\d./i.test(navigator.userAgent))&&(t.maskType=!1),/firefox/i.test(navigator.userAgent)&&(t.svgLumaHidden=!1),t})(),registeredEffects$1={},idPrefix="filter_result_";function SVGEffects(t){var e,r="SourceGraphic",s=t.data.ef?t.data.ef.length:0,n=createElementID(),a=filtersFactory.createFilter(n,!0),o=0;this.filters=[];var h;for(e=0;e<s;e+=1){h=null;var l=t.data.ef[e].ty;if(registeredEffects$1[l]){var c=registeredEffects$1[l].effect;h=new c(a,t.effectsManager.effectElements[e],t,idPrefix+o,r),r=idPrefix+o,registeredEffects$1[l].countsAsEffect&&(o+=1)}h&&this.filters.push(h)}o&&(t.globalData.defs.appendChild(a),t.layerElement.setAttribute("filter","url("+getLocationHref()+"#"+n+")")),this.filters.length&&t.addRenderableComponent(this)}SVGEffects.prototype.renderFrame=function(t){var e,r=this.filters.length;for(e=0;e<r;e+=1)this.filters[e].renderFrame(t)},SVGEffects.prototype.getEffects=function(t){var e,r=this.filters.length,s=[];for(e=0;e<r;e+=1)this.filters[e].type===t&&s.push(this.filters[e]);return s};function registerEffect$1(t,e,r){registeredEffects$1[t]={effect:e,countsAsEffect:r}}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 e=null;if(this.data.td){this.matteMasks={};var r=createNS("g");r.setAttribute("id",this.layerId),r.appendChild(this.layerElement),e=r,this.globalData.defs.appendChild(r)}else this.data.tt?(this.matteElement.appendChild(this.layerElement),e=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 s=createNS("clipPath"),n=createNS("path");n.setAttribute("d","M0,0 L"+this.data.w+",0 L"+this.data.w+","+this.data.h+" L0,"+this.data.h+"z");var a=createElementID();if(s.setAttribute("id",a),s.appendChild(n),this.globalData.defs.appendChild(s),this.checkMasks()){var o=createNS("g");o.setAttribute("clip-path","url("+getLocationHref()+"#"+a+")"),o.appendChild(this.layerElement),this.transformedElement=o,e?e.appendChild(this.transformedElement):this.baseElement=this.transformedElement}else this.layerElement.setAttribute("clip-path","url("+getLocationHref()+"#"+a+")")}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(e){if(this.matteMasks||(this.matteMasks={}),!this.matteMasks[e]){var r=this.layerId+"_"+e,s,n,a,o;if(e===1||e===3){var h=createNS("mask");h.setAttribute("id",r),h.setAttribute("mask-type",e===3?"luminance":"alpha"),a=createNS("use"),a.setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),h.appendChild(a),this.globalData.defs.appendChild(h),!featureSupport.maskType&&e===1&&(h.setAttribute("mask-type","luminance"),s=createElementID(),n=filtersFactory.createFilter(s),this.globalData.defs.appendChild(n),n.appendChild(filtersFactory.createAlphaToLuminanceFilter()),o=createNS("g"),o.appendChild(a),h.appendChild(o),o.setAttribute("filter","url("+getLocationHref()+"#"+s+")"))}else if(e===2){var l=createNS("mask");l.setAttribute("id",r),l.setAttribute("mask-type","alpha");var c=createNS("g");l.appendChild(c),s=createElementID(),n=filtersFactory.createFilter(s);var m=createNS("feComponentTransfer");m.setAttribute("in","SourceGraphic"),n.appendChild(m);var C=createNS("feFuncA");C.setAttribute("type","table"),C.setAttribute("tableValues","1.0 0.0"),m.appendChild(C),this.globalData.defs.appendChild(n);var u=createNS("rect");u.setAttribute("width",this.comp.data.w),u.setAttribute("height",this.comp.data.h),u.setAttribute("x","0"),u.setAttribute("y","0"),u.setAttribute("fill","#ffffff"),u.setAttribute("opacity","0"),c.setAttribute("filter","url("+getLocationHref()+"#"+s+")"),c.appendChild(u),a=createNS("use"),a.setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),c.appendChild(a),featureSupport.maskType||(l.setAttribute("mask-type","luminance"),n.appendChild(filtersFactory.createAlphaToLuminanceFilter()),o=createNS("g"),c.appendChild(u),o.appendChild(this.layerElement),c.appendChild(o)),this.globalData.defs.appendChild(l)}this.matteMasks[e]=r}return this.matteMasks[e]},setMatte:function(e){this.matteElement&&this.matteElement.setAttribute("mask","url("+getLocationHref()+"#"+e+")")}};function HierarchyElement(){}HierarchyElement.prototype={initHierarchy:function(){this.hierarchy=[],this._isParent=!1,this.checkParenting()},setHierarchy:function(e){this.hierarchy=e},setAsParent:function(){this._isParent=!0},checkParenting:function(){this.data.parent!==void 0&&this.comp.buildElementParenting(this,this.data.parent,[])}};function RenderableDOMElement(){}(function(){var t={initElement:function(r,s,n){this.initFrame(),this.initBaseData(r,s,n),this.initTransform(r,s,n),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.createContent(),this.hide()},hide:function(){if(!this.hidden&&(!this.isInRange||this.isTransparent)){var r=this.baseElement||this.layerElement;r.style.display="none",this.hidden=!0}},show:function(){if(this.isInRange&&!this.isTransparent){if(!this.data.hd){var r=this.baseElement||this.layerElement;r.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(r){this._mdf=!1,this.prepareRenderableFrame(r),this.prepareProperties(r,this.isInRange),this.checkTransparency()},destroy:function(){this.innerElem=null,this.destroyBaseElement()}};extendPrototype([RenderableElement,createProxyFunction(t)],RenderableDOMElement)})();function IImageElement(t,e,r){this.assetData=e.getAssetData(t.refId),this.assetData&&this.assetData.sid&&(this.assetData=e.slotManager.getProp(this.assetData)),this.initElement(t,e,r),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 t=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",t),this.layerElement.appendChild(this.innerElem)},IImageElement.prototype.sourceRectAtTime=function(){return this.sourceRect};function ProcessedElement(t,e){this.elem=t,this.pos=e}function IShapeElement(){}IShapeElement.prototype={addShapeToModifiers:function(e){var r,s=this.shapeModifiers.length;for(r=0;r<s;r+=1)this.shapeModifiers[r].addShape(e)},isShapeInAnimatedModifiers:function(e){for(var r=0,s=this.shapeModifiers.length;r<s;)if(this.shapeModifiers[r].isAnimatedWithShape(e))return!0;return!1},renderModifiers:function(){if(this.shapeModifiers.length){var e,r=this.shapes.length;for(e=0;e<r;e+=1)this.shapes[e].sh.reset();r=this.shapeModifiers.length;var s;for(e=r-1;e>=0&&(s=this.shapeModifiers[e].processShapes(this._isFirstFrame),!s);e-=1);}},searchProcessedElement:function(e){for(var r=this.processedElements,s=0,n=r.length;s<n;){if(r[s].elem===e)return r[s].pos;s+=1}return 0},addProcessedElement:function(e,r){for(var s=this.processedElements,n=s.length;n;)if(n-=1,s[n].elem===e){s[n].pos=r;return}s.push(new ProcessedElement(e,r))},prepareFrame:function(e){this.prepareRenderableFrame(e),this.prepareProperties(e,this.isInRange)}};var lineCapEnum={1:"butt",2:"round",3:"square"},lineJoinEnum={1:"miter",2:"round",3:"bevel"};function SVGShapeData(t,e,r){this.caches=[],this.styles=[],this.transformers=t,this.lStr="",this.sh=r,this.lvl=e,this._isAnimated=!!r.k;for(var s=0,n=t.length;s<n;){if(t[s].mProps.dynamicProperties.length){this._isAnimated=!0;break}s+=1}}SVGShapeData.prototype.setAsAnimated=function(){this._isAnimated=!0};function SVGStyleData(t,e){this.data=t,this.type=t.ty,this.d="",this.lvl=e,this._mdf=!1,this.closed=t.hd===!0,this.pElem=createNS("path"),this.msElem=null}SVGStyleData.prototype.reset=function(){this.d="",this._mdf=!1};function DashProperty(t,e,r,s){this.elem=t,this.frameId=-1,this.dataProps=createSizedArray(e.length),this.renderer=r,this.k=!1,this.dashStr="",this.dashArray=createTypedArray("float32",e.length?e.length-1:0),this.dashoffset=createTypedArray("float32",1),this.initDynamicPropertyContainer(s);var n,a=e.length||0,o;for(n=0;n<a;n+=1)o=PropertyFactory.getProp(t,e[n].v,0,0,this),this.k=o.k||this.k,this.dataProps[n]={n:e[n].n,p:o};this.k||this.getValue(!0),this._isAnimated=this.k}DashProperty.prototype.getValue=function(t){if(!(this.elem.globalData.frameId===this.frameId&&!t)&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf=this._mdf||t,this._mdf)){var e=0,r=this.dataProps.length;for(this.renderer==="svg"&&(this.dashStr=""),e=0;e<r;e+=1)this.dataProps[e].n!=="o"?this.renderer==="svg"?this.dashStr+=" "+this.dataProps[e].p.v:this.dashArray[e]=this.dataProps[e].p.v:this.dashoffset[0]=this.dataProps[e].p.v}},extendPrototype([DynamicPropertyContainer],DashProperty);function SVGStrokeStyleData(t,e,r){this.initDynamicPropertyContainer(t),this.getValue=this.iterateDynamicProperties,this.o=PropertyFactory.getProp(t,e.o,0,.01,this),this.w=PropertyFactory.getProp(t,e.w,0,null,this),this.d=new DashProperty(t,e.d||{},"svg",this),this.c=PropertyFactory.getProp(t,e.c,1,255,this),this.style=r,this._isAnimated=!!this._isAnimated}extendPrototype([DynamicPropertyContainer],SVGStrokeStyleData);function SVGFillStyleData(t,e,r){this.initDynamicPropertyContainer(t),this.getValue=this.iterateDynamicProperties,this.o=PropertyFactory.getProp(t,e.o,0,.01,this),this.c=PropertyFactory.getProp(t,e.c,1,255,this),this.style=r}extendPrototype([DynamicPropertyContainer],SVGFillStyleData);function SVGNoStyleData(t,e,r){this.initDynamicPropertyContainer(t),this.getValue=this.iterateDynamicProperties,this.style=r}extendPrototype([DynamicPropertyContainer],SVGNoStyleData);function GradientProperty(t,e,r){this.data=e,this.c=createTypedArray("uint8c",e.p*4);var s=e.k.k[0].s?e.k.k[0].s.length-e.p*4:e.k.k.length-e.p*4;this.o=createTypedArray("float32",s),this._cmdf=!1,this._omdf=!1,this._collapsable=this.checkCollapsable(),this._hasOpacity=s,this.initDynamicPropertyContainer(r),this.prop=PropertyFactory.getProp(t,e.k,1,null,this),this.k=this.prop.k,this.getValue(!0)}GradientProperty.prototype.comparePoints=function(t,e){for(var r=0,s=this.o.length/2,n;r<s;){if(n=Math.abs(t[r*4]-t[e*4+r*2]),n>.01)return!1;r+=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 t=0,e=this.data.k.k.length;t<e;){if(!this.comparePoints(this.data.k.k[t].s,this.data.p))return!1;t+=1}else if(!this.comparePoints(this.data.k.k,this.data.p))return!1;return!0},GradientProperty.prototype.getValue=function(t){if(this.prop.getValue(),this._mdf=!1,this._cmdf=!1,this._omdf=!1,this.prop._mdf||t){var e,r=this.data.p*4,s,n;for(e=0;e<r;e+=1)s=e%4===0?100:255,n=Math.round(this.prop.v[e]*s),this.c[e]!==n&&(this.c[e]=n,this._cmdf=!t);if(this.o.length)for(r=this.prop.v.length,e=this.data.p*4;e<r;e+=1)s=e%2===0?100:1,n=e%2===0?Math.round(this.prop.v[e]*100):this.prop.v[e],this.o[e-this.data.p*4]!==n&&(this.o[e-this.data.p*4]=n,this._omdf=!t);this._mdf=!t}},extendPrototype([DynamicPropertyContainer],GradientProperty);function SVGGradientFillStyleData(t,e,r){this.initDynamicPropertyContainer(t),this.getValue=this.iterateDynamicProperties,this.initGradientData(t,e,r)}SVGGradientFillStyleData.prototype.initGradientData=function(t,e,r){this.o=PropertyFactory.getProp(t,e.o,0,.01,this),this.s=PropertyFactory.getProp(t,e.s,1,null,this),this.e=PropertyFactory.getProp(t,e.e,1,null,this),this.h=PropertyFactory.getProp(t,e.h||{k:0},0,.01,this),this.a=PropertyFactory.getProp(t,e.a||{k:0},0,degToRads,this),this.g=new GradientProperty(t,e.g,this),this.style=r,this.stops=[],this.setGradientData(r.pElem,e),this.setGradientOpacity(e,r),this._isAnimated=!!this._isAnimated},SVGGradientFillStyleData.prototype.setGradientData=function(t,e){var r=createElementID(),s=createNS(e.t===1?"linearGradient":"radialGradient");s.setAttribute("id",r),s.setAttribute("spreadMethod","pad"),s.setAttribute("gradientUnits","userSpaceOnUse");var n=[],a,o,h;for(h=e.g.p*4,o=0;o<h;o+=4)a=createNS("stop"),s.appendChild(a),n.push(a);t.setAttribute(e.ty==="gf"?"fill":"stroke","url("+getLocationHref()+"#"+r+")"),this.gf=s,this.cst=n},SVGGradientFillStyleData.prototype.setGradientOpacity=function(t,e){if(this.g._hasOpacity&&!this.g._collapsable){var r,s,n,a=createNS("mask"),o=createNS("path");a.appendChild(o);var h=createElementID(),l=createElementID();a.setAttribute("id",l);var c=createNS(t.t===1?"linearGradient":"radialGradient");c.setAttribute("id",h),c.setAttribute("spreadMethod","pad"),c.setAttribute("gradientUnits","userSpaceOnUse"),n=t.g.k.k[0].s?t.g.k.k[0].s.length:t.g.k.k.length;var m=this.stops;for(s=t.g.p*4;s<n;s+=2)r=createNS("stop"),r.setAttribute("stop-color","rgb(255,255,255)"),c.appendChild(r),m.push(r);o.setAttribute(t.ty==="gf"?"fill":"stroke","url("+getLocationHref()+"#"+h+")"),t.ty==="gs"&&(o.setAttribute("stroke-linecap",lineCapEnum[t.lc||2]),o.setAttribute("stroke-linejoin",lineJoinEnum[t.lj||2]),t.lj===1&&o.setAttribute("stroke-miterlimit",t.ml)),this.of=c,this.ms=a,this.ost=m,this.maskId=l,e.msElem=o}},extendPrototype([DynamicPropertyContainer],SVGGradientFillStyleData);function SVGGradientStrokeStyleData(t,e,r){this.initDynamicPropertyContainer(t),this.getValue=this.iterateDynamicProperties,this.w=PropertyFactory.getProp(t,e.w,0,null,this),this.d=new DashProperty(t,e.d||{},"svg",this),this.initGradientData(t,e,r),this._isAnimated=!!this._isAnimated}extendPrototype([SVGGradientFillStyleData,DynamicPropertyContainer],SVGGradientStrokeStyleData);function ShapeGroupData(){this.it=[],this.prevViewData=[],this.gr=createNS("g")}function SVGTransformData(t,e,r){this.transform={mProps:t,op:e,container:r},this.elements=[],this._isAnimated=this.transform.mProps.dynamicProperties.length||this.transform.op.effectsSequence.length}var buildShapeString=function(e,r,s,n){if(r===0)return"";var a=e.o,o=e.i,h=e.v,l,c=" M"+n.applyToPointStringified(h[0][0],h[0][1]);for(l=1;l<r;l+=1)c+=" C"+n.applyToPointStringified(a[l-1][0],a[l-1][1])+" "+n.applyToPointStringified(o[l][0],o[l][1])+" "+n.applyToPointStringified(h[l][0],h[l][1]);return s&&r&&(c+=" C"+n.applyToPointStringified(a[l-1][0],a[l-1][1])+" "+n.applyToPointStringified(o[0][0],o[0][1])+" "+n.applyToPointStringified(h[0][0],h[0][1]),c+="z"),c},SVGElementsRenderer=(function(){var t=new Matrix,e=new Matrix,r={createRenderFunction:s};function s(C){switch(C.ty){case"fl":return h;case"gf":return c;case"gs":return l;case"st":return m;case"sh":case"el":case"rc":case"sr":return o;case"tr":return n;case"no":return a;default:return null}}function n(C,u,b){(b||u.transform.op._mdf)&&u.transform.container.setAttribute("opacity",u.transform.op.v),(b||u.transform.mProps._mdf)&&u.transform.container.setAttribute("transform",u.transform.mProps.v.to2dCSS())}function a(){}function o(C,u,b){var _,g,E,d,f,p,v=u.styles.length,P=u.lvl,M,w,I,B;for(p=0;p<v;p+=1){if(d=u.sh._mdf||b,u.styles[p].lvl<P){for(w=e.reset(),I=P-u.styles[p].lvl,B=u.transformers.length-1;!d&&I>0;)d=u.transformers[B].mProps._mdf||d,I-=1,B-=1;if(d)for(I=P-u.styles[p].lvl,B=u.transformers.length-1;I>0;)w.multiply(u.transformers[B].mProps.v),I-=1,B-=1}else w=t;if(M=u.sh.paths,g=M._length,d){for(E="",_=0;_<g;_+=1)f=M.shapes[_],f&&f._length&&(E+=buildShapeString(f,f._length,f.c,w));u.caches[p]=E}else E=u.caches[p];u.styles[p].d+=C.hd===!0?"":E,u.styles[p]._mdf=d||u.styles[p]._mdf}}function h(C,u,b){var _=u.style;(u.c._mdf||b)&&_.pElem.setAttribute("fill","rgb("+bmFloor(u.c.v[0])+","+bmFloor(u.c.v[1])+","+bmFloor(u.c.v[2])+")"),(u.o._mdf||b)&&_.pElem.setAttribute("fill-opacity",u.o.v)}function l(C,u,b){c(C,u,b),m(C,u,b)}function c(C,u,b){var _=u.gf,g=u.g._hasOpacity,E=u.s.v,d=u.e.v;if(u.o._mdf||b){var f=C.ty==="gf"?"fill-opacity":"stroke-opacity";u.style.pElem.setAttribute(f,u.o.v)}if(u.s._mdf||b){var p=C.t===1?"x1":"cx",v=p==="x1"?"y1":"cy";_.setAttribute(p,E[0]),_.setAttribute(v,E[1]),g&&!u.g._collapsable&&(u.of.setAttribute(p,E[0]),u.of.setAttribute(v,E[1]))}var P,M,w,I;if(u.g._cmdf||b){P=u.cst;var B=u.g.c;for(w=P.length,M=0;M<w;M+=1)I=P[M],I.setAttribute("offset",B[M*4]+"%"),I.setAttribute("stop-color","rgb("+B[M*4+1]+","+B[M*4+2]+","+B[M*4+3]+")")}if(g&&(u.g._omdf||b)){var x=u.g.o;for(u.g._collapsable?P=u.cst:P=u.ost,w=P.length,M=0;M<w;M+=1)I=P[M],u.g._collapsable||I.setAttribute("offset",x[M*2]+"%"),I.setAttribute("stop-opacity",x[M*2+1])}if(C.t===1)(u.e._mdf||b)&&(_.setAttribute("x2",d[0]),_.setAttribute("y2",d[1]),g&&!u.g._collapsable&&(u.of.setAttribute("x2",d[0]),u.of.setAttribute("y2",d[1])));else{var L;if((u.s._mdf||u.e._mdf||b)&&(L=Math.sqrt(Math.pow(E[0]-d[0],2)+Math.pow(E[1]-d[1],2)),_.setAttribute("r",L),g&&!u.g._collapsable&&u.of.setAttribute("r",L)),u.e._mdf||u.h._mdf||u.a._mdf||b){L||(L=Math.sqrt(Math.pow(E[0]-d[0],2)+Math.pow(E[1]-d[1],2)));var F=Math.atan2(d[1]-E[1],d[0]-E[0]),O=u.h.v;O>=1?O=.99:O<=-1&&(O=-.99);var $=L*O,D=Math.cos(F+u.a.v)*$+E[0],A=Math.sin(F+u.a.v)*$+E[1];_.setAttribute("fx",D),_.setAttribute("fy",A),g&&!u.g._collapsable&&(u.of.setAttribute("fx",D),u.of.setAttribute("fy",A))}}}function m(C,u,b){var _=u.style,g=u.d;g&&(g._mdf||b)&&g.dashStr&&(_.pElem.setAttribute("stroke-dasharray",g.dashStr),_.pElem.setAttribute("stroke-dashoffset",g.dashoffset[0])),u.c&&(u.c._mdf||b)&&_.pElem.setAttribute("stroke","rgb("+bmFloor(u.c.v[0])+","+bmFloor(u.c.v[1])+","+bmFloor(u.c.v[2])+")"),(u.o._mdf||b)&&_.pElem.setAttribute("stroke-opacity",u.o.v),(u.w._mdf||b)&&(_.pElem.setAttribute("stroke-width",u.w.v),_.msElem&&_.msElem.setAttribute("stroke-width",u.w.v))}return r})();function SVGShapeElement(t,e,r){this.shapes=[],this.shapesData=t.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.animatedContents=[],this.initElement(t,e,r),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 t,e=this.shapes.length,r,s,n=this.stylesList.length,a,o=[],h=!1;for(s=0;s<n;s+=1){for(a=this.stylesList[s],h=!1,o.length=0,t=0;t<e;t+=1)r=this.shapes[t],r.styles.indexOf(a)!==-1&&(o.push(r),h=r._isAnimated||h);o.length>1&&h&&this.setShapesAsAnimated(o)}},SVGShapeElement.prototype.setShapesAsAnimated=function(t){var e,r=t.length;for(e=0;e<r;e+=1)t[e].setAsAnimated()},SVGShapeElement.prototype.createStyleElement=function(t,e){var r,s=new SVGStyleData(t,e),n=s.pElem;if(t.ty==="st")r=new SVGStrokeStyleData(this,t,s);else if(t.ty==="fl")r=new SVGFillStyleData(this,t,s);else if(t.ty==="gf"||t.ty==="gs"){var a=t.ty==="gf"?SVGGradientFillStyleData:SVGGradientStrokeStyleData;r=new a(this,t,s),this.globalData.defs.appendChild(r.gf),r.maskId&&(this.globalData.defs.appendChild(r.ms),this.globalData.defs.appendChild(r.of),n.setAttribute("mask","url("+getLocationHref()+"#"+r.maskId+")"))}else t.ty==="no"&&(r=new SVGNoStyleData(this,t,s));return(t.ty==="st"||t.ty==="gs")&&(n.setAttribute("stroke-linecap",lineCapEnum[t.lc||2]),n.setAttribute("stroke-linejoin",lineJoinEnum[t.lj||2]),n.setAttribute("fill-opacity","0"),t.lj===1&&n.setAttribute("stroke-miterlimit",t.ml)),t.r===2&&n.setAttribute("fill-rule","evenodd"),t.ln&&n.setAttribute("id",t.ln),t.cl&&n.setAttribute("class",t.cl),t.bm&&(n.style["mix-blend-mode"]=getBlendMode(t.bm)),this.stylesList.push(s),this.addToAnimatedContents(t,r),r},SVGShapeElement.prototype.createGroupElement=function(t){var e=new ShapeGroupData;return t.ln&&e.gr.setAttribute("id",t.ln),t.cl&&e.gr.setAttribute("class",t.cl),t.bm&&(e.gr.style["mix-blend-mode"]=getBlendMode(t.bm)),e},SVGShapeElement.prototype.createTransformElement=function(t,e){var r=TransformPropertyFactory.getTransformProperty(this,t,this),s=new SVGTransformData(r,r.o,e);return this.addToAnimatedContents(t,s),s},SVGShapeElement.prototype.createShapeElement=function(t,e,r){var s=4;t.ty==="rc"?s=5:t.ty==="el"?s=6:t.ty==="sr"&&(s=7);var n=ShapePropertyFactory.getShapeProp(this,t,s,this),a=new SVGShapeData(e,r,n);return this.shapes.push(a),this.addShapeToModifiers(a),this.addToAnimatedContents(t,a),a},SVGShapeElement.prototype.addToAnimatedContents=function(t,e){for(var r=0,s=this.animatedContents.length;r<s;){if(this.animatedContents[r].element===e)return;r+=1}this.animatedContents.push({fn:SVGElementsRenderer.createRenderFunction(t),element:e,data:t})},SVGShapeElement.prototype.setElementStyles=function(t){var e=t.styles,r,s=this.stylesList.length;for(r=0;r<s;r+=1)this.stylesList[r].closed||e.push(this.stylesList[r])},SVGShapeElement.prototype.reloadShapes=function(){this._isFirstFrame=!0;var t,e=this.itemsData.length;for(t=0;t<e;t+=1)this.prevViewData[t]=this.itemsData[t];for(this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes(),e=this.dynamicProperties.length,t=0;t<e;t+=1)this.dynamicProperties[t].getValue();this.renderModifiers()},SVGShapeElement.prototype.searchShapes=function(t,e,r,s,n,a,o){var h=[].concat(a),l,c=t.length-1,m,C,u=[],b=[],_,g,E;for(l=c;l>=0;l-=1){if(E=this.searchProcessedElement(t[l]),E?e[l]=r[E-1]:t[l]._render=o,t[l].ty==="fl"||t[l].ty==="st"||t[l].ty==="gf"||t[l].ty==="gs"||t[l].ty==="no")E?e[l].style.closed=!1:e[l]=this.createStyleElement(t[l],n),t[l]._render&&e[l].style.pElem.parentNode!==s&&s.appendChild(e[l].style.pElem),u.push(e[l].style);else if(t[l].ty==="gr"){if(!E)e[l]=this.createGroupElement(t[l]);else for(C=e[l].it.length,m=0;m<C;m+=1)e[l].prevViewData[m]=e[l].it[m];this.searchShapes(t[l].it,e[l].it,e[l].prevViewData,e[l].gr,n+1,h,o),t[l]._render&&e[l].gr.parentNode!==s&&s.appendChild(e[l].gr)}else t[l].ty==="tr"?(E||(e[l]=this.createTransformElement(t[l],s)),_=e[l].transform,h.push(_)):t[l].ty==="sh"||t[l].ty==="rc"||t[l].ty==="el"||t[l].ty==="sr"?(E||(e[l]=this.createShapeElement(t[l],h,n)),this.setElementStyles(e[l])):t[l].ty==="tm"||t[l].ty==="rd"||t[l].ty==="ms"||t[l].ty==="pb"||t[l].ty==="zz"||t[l].ty==="op"?(E?(g=e[l],g.closed=!1):(g=ShapeModifiers.getModifier(t[l].ty),g.init(this,t[l]),e[l]=g,this.shapeModifiers.push(g)),b.push(g)):t[l].ty==="rp"&&(E?(g=e[l],g.closed=!0):(g=ShapeModifiers.getModifier(t[l].ty),e[l]=g,g.init(this,t,l,e),this.shapeModifiers.push(g),o=!1),b.push(g));this.addProcessedElement(t[l],l+1)}for(c=u.length,l=0;l<c;l+=1)u[l].closed=!0;for(c=b.length,l=0;l<c;l+=1)b[l].closed=!0},SVGShapeElement.prototype.renderInnerContent=function(){this.renderModifiers();var t,e=this.stylesList.length;for(t=0;t<e;t+=1)this.stylesList[t].reset();for(this.renderShape(),t=0;t<e;t+=1)(this.stylesList[t]._mdf||this._isFirstFrame)&&(this.stylesList[t].msElem&&(this.stylesList[t].msElem.setAttribute("d",this.stylesList[t].d),this.stylesList[t].d="M0 0"+this.stylesList[t].d),this.stylesList[t].pElem.setAttribute("d",this.stylesList[t].d||"M0 0"))},SVGShapeElement.prototype.renderShape=function(){var t,e=this.animatedContents.length,r;for(t=0;t<e;t+=1)r=this.animatedContents[t],(this._isFirstFrame||r.element._isAnimated)&&r.data!==!0&&r.fn(r.data,r.element,this._isFirstFrame)},SVGShapeElement.prototype.destroy=function(){this.destroyBaseElement(),this.shapesData=null,this.itemsData=null};function LetterProps(t,e,r,s,n,a){this.o=t,this.sw=e,this.sc=r,this.fc=s,this.m=n,this.p=a,this._mdf={o:!0,sw:!!e,sc:!!r,fc:!!s,m:!0,p:!0}}LetterProps.prototype.update=function(t,e,r,s,n,a){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 o=!1;return this.o!==t&&(this.o=t,this._mdf.o=!0,o=!0),this.sw!==e&&(this.sw=e,this._mdf.sw=!0,o=!0),this.sc!==r&&(this.sc=r,this._mdf.sc=!0,o=!0),this.fc!==s&&(this.fc=s,this._mdf.fc=!0,o=!0),this.m!==n&&(this.m=n,this._mdf.m=!0,o=!0),a.length&&(this.p[0]!==a[0]||this.p[1]!==a[1]||this.p[4]!==a[4]||this.p[5]!==a[5]||this.p[12]!==a[12]||this.p[13]!==a[13])&&(this.p=a,this._mdf.p=!0,o=!0),o};function TextProperty(t,e){this._frameId=initialDefaultFrame,this.pv="",this.v="",this.kf=!1,this._isFirstFrame=!0,this._mdf=!1,e.d&&e.d.sid&&(e.d=t.globalData.slotManager.getProp(e.d)),this.data=e,this.elem=t,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(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t},TextProperty.prototype.setCurrentData=function(t){t.__complete||this.completeTextData(t),this.currentData=t,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(t){this.effectsSequence.push(t),this.elem.addDynamicProperty(this)},TextProperty.prototype.getValue=function(t){if(!((this.elem.globalData.frameId===this.frameId||!this.effectsSequence.length)&&!t)){this.currentData.t=this.data.d.k[this.keysIndex].s.t;var e=this.currentData,r=this.keysIndex;if(this.lock){this.setCurrentData(this.currentData);return}this.lock=!0,this._mdf=!1;var s,n=this.effectsSequence.length,a=t||this.data.d.k[this.keysIndex].s;for(s=0;s<n;s+=1)r!==this.keysIndex?a=this.effectsSequence[s](a,a.t):a=this.effectsSequence[s](this.currentData,a.t);e!==a&&this.setCurrentData(a),this.v=this.currentData,this.pv=this.v,this.lock=!1,this.frameId=this.elem.globalData.frameId}},TextProperty.prototype.getKeyframeValue=function(){for(var t=this.data.d.k,e=this.elem.comp.renderedFrame,r=0,s=t.length;r<=s-1&&!(r===s-1||t[r+1].t>e);)r+=1;return this.keysIndex!==r&&(this.keysIndex=r),this.data.d.k[this.keysIndex].s},TextProperty.prototype.buildFinalText=function(t){for(var e=[],r=0,s=t.length,n,a,o=!1,h=!1,l="";r<s;)o=h,h=!1,n=t.charCodeAt(r),l=t.charAt(r),FontManager.isCombinedCharacter(n)?o=!0:n>=55296&&n<=56319?FontManager.isRegionalFlag(t,r)?l=t.substr(r,14):(a=t.charCodeAt(r+1),a>=56320&&a<=57343&&(FontManager.isModifier(n,a)?(l=t.substr(r,2),o=!0):FontManager.isFlagEmoji(t.substr(r,4))?l=t.substr(r,4):l=t.substr(r,2))):n>56319?(a=t.charCodeAt(r+1),FontManager.isVariationSelector(n)&&(o=!0)):FontManager.isZeroWidthJoiner(n)&&(o=!0,h=!0),o?(e[e.length-1]+=l,o=!1):e.push(l),r+=l.length;return e},TextProperty.prototype.completeTextData=function(t){t.__complete=!0;var e=this.elem.globalData.fontManager,r=this.data,s=[],n,a,o,h=0,l,c=r.m.g,m=0,C=0,u=0,b=[],_=0,g=0,E,d,f=e.getFontByName(t.f),p,v=0,P=getFontProperties(f);t.fWeight=P.weight,t.fStyle=P.style,t.finalSize=t.s,t.finalText=this.buildFinalText(t.t),a=t.finalText.length,t.finalLineHeight=t.lh;var M=t.tr/1e3*t.finalSize,w;if(t.sz)for(var I=!0,B=t.sz[0],x=t.sz[1],L,F;I;){F=this.buildFinalText(t.t),L=0,_=0,a=F.length,M=t.tr/1e3*t.finalSize;var O=-1;for(n=0;n<a;n+=1)w=F[n].charCodeAt(0),o=!1,F[n]===" "?O=n:(w===13||w===3)&&(_=0,o=!0,L+=t.finalLineHeight||t.finalSize*1.2),e.chars?(p=e.getCharData(F[n],f.fStyle,f.fFamily),v=o?0:p.w*t.finalSize/100):v=e.measureText(F[n],t.f,t.finalSize),_+v>B&&F[n]!==" "?(O===-1?a+=1:n=O,L+=t.finalLineHeight||t.finalSize*1.2,F.splice(n,O===n?1:0,"\r"),O=-1,_=0):(_+=v,_+=M);L+=f.ascent*t.finalSize/100,this.canResize&&t.finalSize>this.minimumFontSize&&x<L?(t.finalSize-=1,t.finalLineHeight=t.finalSize*t.lh/t.s):(t.finalText=F,a=t.finalText.length,I=!1)}_=-M,v=0;var $=0,D;for(n=0;n<a;n+=1)if(o=!1,D=t.finalText[n],w=D.charCodeAt(0),w===13||w===3?($=0,b.push(_),g=_>g?_:g,_=-2*M,l="",o=!0,u+=1):l=D,e.chars?(p=e.getCharData(D,f.fStyle,e.getFontByName(t.f).fFamily),v=o?0:p.w*t.finalSize/100):v=e.measureText(l,t.f,t.finalSize),D===" "?$+=v+M:(_+=v+M+$,$=0),s.push({l:v,an:v,add:m,n:o,anIndexes:[],val:l,line:u,animatorJustifyOffset:0}),c==2){if(m+=v,l===""||l===" "||n===a-1){for((l===""||l===" ")&&(m-=v);C<=n;)s[C].an=m,s[C].ind=h,s[C].extra=v,C+=1;h+=1,m=0}}else if(c==3){if(m+=v,l===""||n===a-1){for(l===""&&(m-=v);C<=n;)s[C].an=m,s[C].ind=h,s[C].extra=v,C+=1;m=0,h+=1}}else s[h].ind=h,s[h].extra=0,h+=1;if(t.l=s,g=_>g?_:g,b.push(_),t.sz)t.boxWidth=t.sz[0],t.justifyOffset=0;else switch(t.boxWidth=g,t.j){case 1:t.justifyOffset=-t.boxWidth;break;case 2:t.justifyOffset=-t.boxWidth/2;break;default:t.justifyOffset=0}t.lineWidths=b;var A=r.a,T,y;d=A.length;var S,R,k=[];for(E=0;E<d;E+=1){for(T=A[E],T.a.sc&&(t.strokeColorAnim=!0),T.a.sw&&(t.strokeWidthAnim=!0),(T.a.fc||T.a.fh||T.a.fs||T.a.fb)&&(t.fillColorAnim=!0),R=0,S=T.s.b,n=0;n<a;n+=1)y=s[n],y.anIndexes[E]=R,(S==1&&y.val!==""||S==2&&y.val!==""&&y.val!==" "||S==3&&(y.n||y.val==" "||n==a-1)||S==4&&(y.n||n==a-1))&&(T.s.rn===1&&k.push(R),R+=1);r.a[E].s.totalChars=R;var V=-1,q;if(T.s.rn===1)for(n=0;n<a;n+=1)y=s[n],V!=y.anIndexes[E]&&(V=y.anIndexes[E],q=k.splice(Math.floor(Math.random()*k.length),1)[0]),y.anIndexes[E]=q}t.yOffset=t.finalLineHeight||t.finalSize*1.2,t.ls=t.ls||0,t.ascent=f.ascent*t.finalSize/100},TextProperty.prototype.updateDocumentData=function(t,e){e=e===void 0?this.keysIndex:e;var r=this.copyData({},this.data.d.k[e].s);r=this.copyData(r,t),this.data.d.k[e].s=r,this.recalculate(e),this.setCurrentData(r),this.elem.addDynamicProperty(this)},TextProperty.prototype.recalculate=function(t){var e=this.data.d.k[t].s;e.__complete=!1,this.keysIndex=0,this._isFirstFrame=!0,this.getValue(e)},TextProperty.prototype.canResizeFont=function(t){this.canResize=t,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)},TextProperty.prototype.setMinimumFontSize=function(t){this.minimumFontSize=Math.floor(t)||1,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)};var TextSelectorProp=(function(){var t=Math.max,e=Math.min,r=Math.floor;function s(a,o){this._currentTextLength=-1,this.k=!1,this.data=o,this.elem=a,this.comp=a.comp,this.finalS=0,this.finalE=0,this.initDynamicPropertyContainer(a),this.s=PropertyFactory.getProp(a,o.s||{k:0},0,0,this),"e"in o?this.e=PropertyFactory.getProp(a,o.e,0,0,this):this.e={v:100},this.o=PropertyFactory.getProp(a,o.o||{k:0},0,0,this),this.xe=PropertyFactory.getProp(a,o.xe||{k:0},0,0,this),this.ne=PropertyFactory.getProp(a,o.ne||{k:0},0,0,this),this.sm=PropertyFactory.getProp(a,o.sm||{k:100},0,0,this),this.a=PropertyFactory.getProp(a,o.a,0,.01,this),this.dynamicProperties.length||this.getValue()}s.prototype={getMult:function(o){this._currentTextLength!==this.elem.textProperty.currentData.l.length&&this.getValue();var h=0,l=0,c=1,m=1;this.ne.v>0?h=this.ne.v/100:l=-this.ne.v/100,this.xe.v>0?c=1-this.xe.v/100:m=1+this.xe.v/100;var C=BezierFactory.getBezierEasing(h,l,c,m).get,u=0,b=this.finalS,_=this.finalE,g=this.data.sh;if(g===2)_===b?u=o>=_?1:0:u=t(0,e(.5/(_-b)+(o-b)/(_-b),1)),u=C(u);else if(g===3)_===b?u=o>=_?0:1:u=1-t(0,e(.5/(_-b)+(o-b)/(_-b),1)),u=C(u);else if(g===4)_===b?u=0:(u=t(0,e(.5/(_-b)+(o-b)/(_-b),1)),u<.5?u*=2:u=1-2*(u-.5)),u=C(u);else if(g===5){if(_===b)u=0;else{var E=_-b;o=e(t(0,o+.5-b),_-b);var d=-E/2+o,f=E/2;u=Math.sqrt(1-d*d/(f*f))}u=C(u)}else g===6?(_===b?u=0:(o=e(t(0,o+.5-b),_-b),u=(1+Math.cos(Math.PI+Math.PI*2*o/(_-b)))/2),u=C(u)):(o>=r(b)&&(o-b<0?u=t(0,e(e(_,1)-(b-o),1)):u=t(0,e(_-o,1))),u=C(u));if(this.sm.v!==100){var p=this.sm.v*.01;p===0&&(p=1e-8);var v=.5-p*.5;u<v?u=0:(u=(u-v)/p,u>1&&(u=1))}return u*this.a.v},getValue:function(o){this.iterateDynamicProperties(),this._mdf=o||this._mdf,this._currentTextLength=this.elem.textProperty.currentData.l.length||0,o&&this.data.r===2&&(this.e.v=this._currentTextLength);var h=this.data.r===2?1:100/this.data.totalChars,l=this.o.v/h,c=this.s.v/h+l,m=this.e.v/h+l;if(c>m){var C=c;c=m,m=C}this.finalS=c,this.finalE=m}},extendPrototype([DynamicPropertyContainer],s);function n(a,o,h){return new s(a,o)}return{getTextSelectorProp:n}})();function TextAnimatorDataProperty(t,e,r){var s={propType:!1},n=PropertyFactory.getProp,a=e.a;this.a={r:a.r?n(t,a.r,0,degToRads,r):s,rx:a.rx?n(t,a.rx,0,degToRads,r):s,ry:a.ry?n(t,a.ry,0,degToRads,r):s,sk:a.sk?n(t,a.sk,0,degToRads,r):s,sa:a.sa?n(t,a.sa,0,degToRads,r):s,s:a.s?n(t,a.s,1,.01,r):s,a:a.a?n(t,a.a,1,0,r):s,o:a.o?n(t,a.o,0,.01,r):s,p:a.p?n(t,a.p,1,0,r):s,sw:a.sw?n(t,a.sw,0,0,r):s,sc:a.sc?n(t,a.sc,1,0,r):s,fc:a.fc?n(t,a.fc,1,0,r):s,fh:a.fh?n(t,a.fh,0,0,r):s,fs:a.fs?n(t,a.fs,0,.01,r):s,fb:a.fb?n(t,a.fb,0,.01,r):s,t:a.t?n(t,a.t,0,0,r):s},this.s=TextSelectorProp.getTextSelectorProp(t,e.s,r),this.s.t=e.s.t}function TextAnimatorProperty(t,e,r){this._isFirstFrame=!0,this._hasMaskedPath=!1,this._frameId=-1,this._textData=t,this._renderType=e,this._elem=r,this._animatorsData=createSizedArray(this._textData.a.length),this._pathData={},this._moreOptions={alignment:{}},this.renderedLetters=[],this.lettersChangedFlag=!1,this.initDynamicPropertyContainer(r)}TextAnimatorProperty.prototype.searchProperties=function(){var t,e=this._textData.a.length,r,s=PropertyFactory.getProp;for(t=0;t<e;t+=1)r=this._textData.a[t],this._animatorsData[t]=new TextAnimatorDataProperty(this._elem,r,this);this._textData.p&&"m"in this._textData.p?(this._pathData={a:s(this._elem,this._textData.p.a,0,0,this),f:s(this._elem,this._textData.p.f,0,0,this),l:s(this._elem,this._textData.p.l,0,0,this),r:s(this._elem,this._textData.p.r,0,0,this),p:s(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=s(this._elem,this._textData.m.a,1,0,this)},TextAnimatorProperty.prototype.getMeasures=function(t,e){if(this.lettersChangedFlag=e,!(!this._mdf&&!this._isFirstFrame&&!e&&(!this._hasMaskedPath||!this._pathData.m._mdf))){this._isFirstFrame=!1;var r=this._moreOptions.alignment.v,s=this._animatorsData,n=this._textData,a=this.mHelper,o=this._renderType,h=this.renderedLetters.length,l,c,m,C,u=t.l,b,_,g,E,d,f,p,v,P,M,w,I,B,x,L;if(this._hasMaskedPath){if(L=this._pathData.m,!this._pathData.n||this._pathData._mdf){var F=L.v;this._pathData.r.v&&(F=F.reverse()),b={tLength:0,segments:[]},C=F._length-1;var O;for(I=0,m=0;m<C;m+=1)O=bez.buildBezierData(F.v[m],F.v[m+1],[F.o[m][0]-F.v[m][0],F.o[m][1]-F.v[m][1]],[F.i[m+1][0]-F.v[m+1][0],F.i[m+1][1]-F.v[m+1][1]]),b.tLength+=O.segmentLength,b.segments.push(O),I+=O.segmentLength;m=C,L.v.c&&(O=bez.buildBezierData(F.v[m],F.v[0],[F.o[m][0]-F.v[m][0],F.o[m][1]-F.v[m][1]],[F.i[0][0]-F.v[0][0],F.i[0][1]-F.v[0][1]]),b.tLength+=O.segmentLength,b.segments.push(O),I+=O.segmentLength),this._pathData.pi=b}if(b=this._pathData.pi,_=this._pathData.f.v,p=0,f=1,E=0,d=!0,M=b.segments,_<0&&L.v.c)for(b.tLength<Math.abs(_)&&(_=-Math.abs(_)%b.tLength),p=M.length-1,P=M[p].points,f=P.length-1;_<0;)_+=P[f].partialLength,f-=1,f<0&&(p-=1,P=M[p].points,f=P.length-1);P=M[p].points,v=P[f-1],g=P[f],w=g.partialLength}C=u.length,l=0,c=0;var $=t.finalSize*1.2*.714,D=!0,A,T,y,S,R;S=s.length;var k,V=-1,q,G,H,W=_,K=p,ee=f,le=-1,te,Y,se,J,N,z,ne,j,X="",re=this.defaultPropsArray,he;if(t.j===2||t.j===1){var Z=0,Q=0,U=t.j===2?-.5:-1,ie=0,ae=!0;for(m=0;m<C;m+=1)if(u[m].n){for(Z&&(Z+=Q);ie<m;)u[ie].animatorJustifyOffset=Z,ie+=1;Z=0,ae=!0}else{for(y=0;y<S;y+=1)A=s[y].a,A.t.propType&&(ae&&t.j===2&&(Q+=A.t.v*U),T=s[y].s,k=T.getMult(u[m].anIndexes[y],n.a[y].s.totalChars),k.length?Z+=A.t.v*k[0]*U:Z+=A.t.v*k*U);ae=!1}for(Z&&(Z+=Q);ie<m;)u[ie].animatorJustifyOffset=Z,ie+=1}for(m=0;m<C;m+=1){if(a.reset(),te=1,u[m].n)l=0,c+=t.yOffset,c+=D?1:0,_=W,D=!1,this._hasMaskedPath&&(p=K,f=ee,P=M[p].points,v=P[f-1],g=P[f],w=g.partialLength,E=0),X="",j="",z="",he="",re=this.defaultPropsArray;else{if(this._hasMaskedPath){if(le!==u[m].line){switch(t.j){case 1:_+=I-t.lineWidths[u[m].line];break;case 2:_+=(I-t.lineWidths[u[m].line])/2;break}le=u[m].line}V!==u[m].ind&&(u[V]&&(_+=u[V].extra),_+=u[m].an/2,V=u[m].ind),_+=r[0]*u[m].an*.005;var oe=0;for(y=0;y<S;y+=1)A=s[y].a,A.p.propType&&(T=s[y].s,k=T.getMult(u[m].anIndexes[y],n.a[y].s.totalChars),k.length?oe+=A.p.v[0]*k[0]:oe+=A.p.v[0]*k),A.a.propType&&(T=s[y].s,k=T.getMult(u[m].anIndexes[y],n.a[y].s.totalChars),k.length?oe+=A.a.v[0]*k[0]:oe+=A.a.v[0]*k);for(d=!0,this._pathData.a.v&&(_=u[0].an*.5+(I-this._pathData.f.v-u[0].an*.5-u[u.length-1].an*.5)*V/(C-1),_+=this._pathData.f.v);d;)E+w>=_+oe||!P?(B=(_+oe-E)/g.partialLength,G=v.point[0]+(g.point[0]-v.point[0])*B,H=v.point[1]+(g.point[1]-v.point[1])*B,a.translate(-r[0]*u[m].an*.005,-(r[1]*$)*.01),d=!1):P&&(E+=g.partialLength,f+=1,f>=P.length&&(f=0,p+=1,M[p]?P=M[p].points:L.v.c?(f=0,p=0,P=M[p].points):(E-=g.partialLength,P=null)),P&&(v=g,g=P[f],w=g.partialLength));q=u[m].an/2-u[m].add,a.translate(-q,0,0)}else q=u[m].an/2-u[m].add,a.translate(-q,0,0),a.translate(-r[0]*u[m].an*.005,-r[1]*$*.01,0);for(y=0;y<S;y+=1)A=s[y].a,A.t.propType&&(T=s[y].s,k=T.getMult(u[m].anIndexes[y],n.a[y].s.totalChars),(l!==0||t.j!==0)&&(this._hasMaskedPath?k.length?_+=A.t.v*k[0]:_+=A.t.v*k:k.length?l+=A.t.v*k[0]:l+=A.t.v*k));for(t.strokeWidthAnim&&(se=t.sw||0),t.strokeColorAnim&&(t.sc?Y=[t.sc[0],t.sc[1],t.sc[2]]:Y=[0,0,0]),t.fillColorAnim&&t.fc&&(J=[t.fc[0],t.fc[1],t.fc[2]]),y=0;y<S;y+=1)A=s[y].a,A.a.propType&&(T=s[y].s,k=T.getMult(u[m].anIndexes[y],n.a[y].s.totalChars),k.length?a.translate(-A.a.v[0]*k[0],-A.a.v[1]*k[1],A.a.v[2]*k[2]):a.translate(-A.a.v[0]*k,-A.a.v[1]*k,A.a.v[2]*k));for(y=0;y<S;y+=1)A=s[y].a,A.s.propType&&(T=s[y].s,k=T.getMult(u[m].anIndexes[y],n.a[y].s.totalChars),k.length?a.scale(1+(A.s.v[0]-1)*k[0],1+(A.s.v[1]-1)*k[1],1):a.scale(1+(A.s.v[0]-1)*k,1+(A.s.v[1]-1)*k,1));for(y=0;y<S;y+=1){if(A=s[y].a,T=s[y].s,k=T.getMult(u[m].anIndexes[y],n.a[y].s.totalChars),A.sk.propType&&(k.length?a.skewFromAxis(-A.sk.v*k[0],A.sa.v*k[1]):a.skewFromAxis(-A.sk.v*k,A.sa.v*k)),A.r.propType&&(k.length?a.rotateZ(-A.r.v*k[2]):a.rotateZ(-A.r.v*k)),A.ry.propType&&(k.length?a.rotateY(A.ry.v*k[1]):a.rotateY(A.ry.v*k)),A.rx.propType&&(k.length?a.rotateX(A.rx.v*k[0]):a.rotateX(A.rx.v*k)),A.o.propType&&(k.length?te+=(A.o.v*k[0]-te)*k[0]:te+=(A.o.v*k-te)*k),t.strokeWidthAnim&&A.sw.propType&&(k.length?se+=A.sw.v*k[0]:se+=A.sw.v*k),t.strokeColorAnim&&A.sc.propType)for(N=0;N<3;N+=1)k.length?Y[N]+=(A.sc.v[N]-Y[N])*k[0]:Y[N]+=(A.sc.v[N]-Y[N])*k;if(t.fillColorAnim&&t.fc){if(A.fc.propType)for(N=0;N<3;N+=1)k.length?J[N]+=(A.fc.v[N]-J[N])*k[0]:J[N]+=(A.fc.v[N]-J[N])*k;A.fh.propType&&(k.length?J=addHueToRGB(J,A.fh.v*k[0]):J=addHueToRGB(J,A.fh.v*k)),A.fs.propType&&(k.length?J=addSaturationToRGB(J,A.fs.v*k[0]):J=addSaturationToRGB(J,A.fs.v*k)),A.fb.propType&&(k.length?J=addBrightnessToRGB(J,A.fb.v*k[0]):J=addBrightnessToRGB(J,A.fb.v*k))}}for(y=0;y<S;y+=1)A=s[y].a,A.p.propType&&(T=s[y].s,k=T.getMult(u[m].anIndexes[y],n.a[y].s.totalChars),this._hasMaskedPath?k.length?a.translate(0,A.p.v[1]*k[0],-A.p.v[2]*k[1]):a.translate(0,A.p.v[1]*k,-A.p.v[2]*k):k.length?a.translate(A.p.v[0]*k[0],A.p.v[1]*k[1],-A.p.v[2]*k[2]):a.translate(A.p.v[0]*k,A.p.v[1]*k,-A.p.v[2]*k));if(t.strokeWidthAnim&&(z=se<0?0:se),t.strokeColorAnim&&(ne="rgb("+Math.round(Y[0]*255)+","+Math.round(Y[1]*255)+","+Math.round(Y[2]*255)+")"),t.fillColorAnim&&t.fc&&(j="rgb("+Math.round(J[0]*255)+","+Math.round(J[1]*255)+","+Math.round(J[2]*255)+")"),this._hasMaskedPath){if(a.translate(0,-t.ls),a.translate(0,r[1]*$*.01+c,0),this._pathData.p.v){x=(g.point[1]-v.point[1])/(g.point[0]-v.point[0]);var pe=Math.atan(x)*180/Math.PI;g.point[0]<v.point[0]&&(pe+=180),a.rotate(-pe*Math.PI/180)}a.translate(G,H,0),_-=r[0]*u[m].an*.005,u[m+1]&&V!==u[m+1].ind&&(_+=u[m].an/2,_+=t.tr*.001*t.finalSize)}else{switch(a.translate(l,c,0),t.ps&&a.translate(t.ps[0],t.ps[1]+t.ascent,0),t.j){case 1:a.translate(u[m].animatorJustifyOffset+t.justifyOffset+(t.boxWidth-t.lineWidths[u[m].line]),0,0);break;case 2:a.translate(u[m].animatorJustifyOffset+t.justifyOffset+(t.boxWidth-t.lineWidths[u[m].line])/2,0,0);break}a.translate(0,-t.ls),a.translate(q,0,0),a.translate(r[0]*u[m].an*.005,r[1]*$*.01,0),l+=u[m].l+t.tr*.001*t.finalSize}o==="html"?X=a.toCSS():o==="svg"?X=a.to2dCSS():re=[a.props[0],a.props[1],a.props[2],a.props[3],a.props[4],a.props[5],a.props[6],a.props[7],a.props[8],a.props[9],a.props[10],a.props[11],a.props[12],a.props[13],a.props[14],a.props[15]],he=te}h<=m?(R=new LetterProps(he,z,ne,j,X,re),this.renderedLetters.push(R),h+=1,this.lettersChangedFlag=!0):(R=this.renderedLetters[m],this.lettersChangedFlag=R.update(he,z,ne,j,X,re)||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(t,e,r){this.lettersChangedFlag=!0,this.initFrame(),this.initBaseData(t,e,r),this.textProperty=new TextProperty(this,t.t,this.dynamicProperties),this.textAnimator=new TextAnimatorProperty(t.t,this.renderType,this),this.initTransform(t,e,r),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.createContent(),this.hide(),this.textAnimator.searchProperties(this.dynamicProperties)},ITextElement.prototype.prepareFrame=function(t){this._mdf=!1,this.prepareRenderableFrame(t),this.prepareProperties(t,this.isInRange)},ITextElement.prototype.createPathShape=function(t,e){var r,s=e.length,n,a="";for(r=0;r<s;r+=1)e[r].ty==="sh"&&(n=e[r].ks.k,a+=buildShapeString(n,n.i.length,!0,t));return a},ITextElement.prototype.updateDocumentData=function(t,e){this.textProperty.updateDocumentData(t,e)},ITextElement.prototype.canResizeFont=function(t){this.textProperty.canResizeFont(t)},ITextElement.prototype.setMinimumFontSize=function(t){this.textProperty.setMinimumFontSize(t)},ITextElement.prototype.applyTextPropertiesToMatrix=function(t,e,r,s,n){switch(t.ps&&e.translate(t.ps[0],t.ps[1]+t.ascent,0),e.translate(0,-t.ls,0),t.j){case 1:e.translate(t.justifyOffset+(t.boxWidth-t.lineWidths[r]),0,0);break;case 2:e.translate(t.justifyOffset+(t.boxWidth-t.lineWidths[r])/2,0,0);break}e.translate(s,n,0)},ITextElement.prototype.buildColor=function(t){return"rgb("+Math.round(t[0]*255)+","+Math.round(t[1]*255)+","+Math.round(t[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(t,e,r){this.textSpans=[],this.renderType="svg",this.initElement(t,e,r)}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(t){for(var e=0,r=t.length,s=[],n="";e<r;)t[e]==="\r"||t[e]==="�"?(s.push(n),n=""):n+=t[e],e+=1;return s.push(n),s},SVGTextLottieElement.prototype.buildShapeData=function(t,e){if(t.shapes&&t.shapes.length){var r=t.shapes[0];if(r.it){var s=r.it[r.it.length-1];s.s&&(s.s.k[0]=e,s.s.k[1]=e)}}return t},SVGTextLottieElement.prototype.buildNewText=function(){this.addDynamicProperty(this);var t,e,r=this.textProperty.currentData;this.renderedLetters=createSizedArray(r?r.l.length:0),r.fc?this.layerElement.setAttribute("fill",this.buildColor(r.fc)):this.layerElement.setAttribute("fill","rgba(0,0,0,0)"),r.sc&&(this.layerElement.setAttribute("stroke",this.buildColor(r.sc)),this.layerElement.setAttribute("stroke-width",r.sw)),this.layerElement.setAttribute("font-size",r.finalSize);var s=this.globalData.fontManager.getFontByName(r.f);if(s.fClass)this.layerElement.setAttribute("class",s.fClass);else{this.layerElement.setAttribute("font-family",s.fFamily);var n=r.fWeight,a=r.fStyle;this.layerElement.setAttribute("font-style",a),this.layerElement.setAttribute("font-weight",n)}this.layerElement.setAttribute("aria-label",r.t);var o=r.l||[],h=!!this.globalData.fontManager.chars;e=o.length;var l,c=this.mHelper,m="",C=this.data.singleShape,u=0,b=0,_=!0,g=r.tr*.001*r.finalSize;if(C&&!h&&!r.sz){var E=this.textContainer,d="start";switch(r.j){case 1:d="end";break;case 2:d="middle";break;default:d="start";break}E.setAttribute("text-anchor",d),E.setAttribute("letter-spacing",g);var f=this.buildTextContents(r.finalText);for(e=f.length,b=r.ps?r.ps[1]+r.ascent:0,t=0;t<e;t+=1)l=this.textSpans[t].span||createNS("tspan"),l.textContent=f[t],l.setAttribute("x",0),l.setAttribute("y",b),l.style.display="inherit",E.appendChild(l),this.textSpans[t]||(this.textSpans[t]={span:null,glyph:null}),this.textSpans[t].span=l,b+=r.finalLineHeight;this.layerElement.appendChild(E)}else{var p=this.textSpans.length,v;for(t=0;t<e;t+=1){if(this.textSpans[t]||(this.textSpans[t]={span:null,childSpan:null,glyph:null}),!h||!C||t===0){if(l=p>t?this.textSpans[t].span:createNS(h?"g":"text"),p<=t){if(l.setAttribute("stroke-linecap","butt"),l.setAttribute("stroke-linejoin","round"),l.setAttribute("stroke-miterlimit","4"),this.textSpans[t].span=l,h){var P=createNS("g");l.appendChild(P),this.textSpans[t].childSpan=P}this.textSpans[t].span=l,this.layerElement.appendChild(l)}l.style.display="inherit"}if(c.reset(),C&&(o[t].n&&(u=-g,b+=r.yOffset,b+=_?1:0,_=!1),this.applyTextPropertiesToMatrix(r,c,o[t].line,u,b),u+=o[t].l||0,u+=g),h){v=this.globalData.fontManager.getCharData(r.finalText[t],s.fStyle,this.globalData.fontManager.getFontByName(r.f).fFamily);var M;if(v.t===1)M=new SVGCompElement(v.data,this.globalData,this);else{var w=emptyShapeData;v.data&&v.data.shapes&&(w=this.buildShapeData(v.data,r.finalSize)),M=new SVGShapeElement(w,this.globalData,this)}if(this.textSpans[t].glyph){var I=this.textSpans[t].glyph;this.textSpans[t].childSpan.removeChild(I.layerElement),I.destroy()}this.textSpans[t].glyph=M,M._debug=!0,M.prepareFrame(0),M.renderFrame(),this.textSpans[t].childSpan.appendChild(M.layerElement),v.t===1&&this.textSpans[t].childSpan.setAttribute("transform","scale("+r.finalSize/100+","+r.finalSize/100+")")}else C&&l.setAttribute("transform","translate("+c.props[12]+","+c.props[13]+")"),l.textContent=o[t].val,l.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve")}C&&l&&l.setAttribute("d",m)}for(;t<this.textSpans.length;)this.textSpans[t].span.style.display="none",t+=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 t=this.layerElement.getBBox();this.bbox={top:t.y,left:t.x,width:t.width,height:t.height}}return this.bbox},SVGTextLottieElement.prototype.getValue=function(){var t,e=this.textSpans.length,r;for(this.renderedFrame=this.comp.renderedFrame,t=0;t<e;t+=1)r=this.textSpans[t].glyph,r&&(r.prepareFrame(this.comp.renderedFrame-this.data.st),r._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 t,e,r=this.textAnimator.renderedLetters,s=this.textProperty.currentData.l;e=s.length;var n,a,o;for(t=0;t<e;t+=1)s[t].n||(n=r[t],a=this.textSpans[t].span,o=this.textSpans[t].glyph,o&&o.renderFrame(),n._mdf.m&&a.setAttribute("transform",n.m),n._mdf.o&&a.setAttribute("op
35acity",n.o),n._mdf.sw&&a.setAttribute("stroke-width",n.sw),n._mdf.sc&&a.setAttribute("stroke",n.sc),n._mdf.fc&&a.setAttribute("fill",n.fc))}};function ISolidElement(t,e,r){this.initElement(t,e,r)}extendPrototype([IImageElement],ISolidElement),ISolidElement.prototype.createContent=function(){var t=createNS("rect");t.setAttribute("width",this.data.sw),t.setAttribute("height",this.data.sh),t.setAttribute("fill",this.data.sc),this.layerElement.appendChild(t)};function NullElement(t,e,r){this.initFrame(),this.initBaseData(t,e,r),this.initFrame(),this.initTransform(t,e,r),this.initHierarchy()}NullElement.prototype.prepareFrame=function(t){this.prepareProperties(t,!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(t){return new NullElement(t,this.globalData,this)},SVGRendererBase.prototype.createShape=function(t){return new SVGShapeElement(t,this.globalData,this)},SVGRendererBase.prototype.createText=function(t){return new SVGTextLottieElement(t,this.globalData,this)},SVGRendererBase.prototype.createImage=function(t){return new IImageElement(t,this.globalData,this)},SVGRendererBase.prototype.createSolid=function(t){return new ISolidElement(t,this.globalData,this)},SVGRendererBase.prototype.configAnimation=function(t){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 "+t.w+" "+t.h),this.renderConfig.viewBoxOnly||(this.svgElement.setAttribute("width",t.w),this.svgElement.setAttribute("height",t.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 e=this.globalData.defs;this.setupGlobalData(t,e),this.globalData.progressiveLoad=this.renderConfig.progressiveLoad,this.data=t;var r=createNS("clipPath"),s=createNS("rect");s.setAttribute("width",t.w),s.setAttribute("height",t.h),s.setAttribute("x",0),s.setAttribute("y",0);var n=createElementID();r.setAttribute("id",n),r.appendChild(s),this.layerElement.setAttribute("clip-path","url("+getLocationHref()+"#"+n+")"),e.appendChild(r),this.layers=t.layers,this.elements=createSizedArray(t.layers.length)},SVGRendererBase.prototype.destroy=function(){this.animationItem.wrapper&&(this.animationItem.wrapper.innerText=""),this.layerElement=null,this.globalData.defs=null;var t,e=this.layers?this.layers.length:0;for(t=0;t<e;t+=1)this.elements[t]&&this.elements[t].destroy&&this.elements[t].destroy();this.elements.length=0,this.destroyed=!0,this.animationItem=null},SVGRendererBase.prototype.updateContainerSize=function(){},SVGRendererBase.prototype.findIndexByInd=function(t){var e=0,r=this.layers.length;for(e=0;e<r;e+=1)if(this.layers[e].ind===t)return e;return-1},SVGRendererBase.prototype.buildItem=function(t){var e=this.elements;if(!(e[t]||this.layers[t].ty===99)){e[t]=!0;var r=this.createItem(this.layers[t]);if(e[t]=r,getExpressionsPlugin()&&(this.layers[t].ty===0&&this.globalData.projectInterface.registerComposition(r),r.initExpressions()),this.appendElementInPos(r,t),this.layers[t].tt){var s="tp"in this.layers[t]?this.findIndexByInd(this.layers[t].tp):t-1;if(s===-1)return;if(!this.elements[s]||this.elements[s]===!0)this.buildItem(s),this.addPendingElement(r);else{var n=e[s],a=n.getMatte(this.layers[t].tt);r.setMatte(a)}}}},SVGRendererBase.prototype.checkPendingElements=function(){for(;this.pendingElements.length;){var t=this.pendingElements.pop();if(t.checkParenting(),t.data.tt)for(var e=0,r=this.elements.length;e<r;){if(this.elements[e]===t){var s="tp"in t.data?this.findIndexByInd(t.data.tp):e-1,n=this.elements[s],a=n.getMatte(this.layers[e].tt);t.setMatte(a);break}e+=1}}},SVGRendererBase.prototype.renderFrame=function(t){if(!(this.renderedFrame===t||this.destroyed)){t===null?t=this.renderedFrame:this.renderedFrame=t,this.globalData.frameNum=t,this.globalData.frameId+=1,this.globalData.projectInterface.currentFrame=t,this.globalData._mdf=!1;var e,r=this.layers.length;for(this.completeLayers||this.checkLayers(t),e=r-1;e>=0;e-=1)(this.completeLayers||this.elements[e])&&this.elements[e].prepareFrame(t-this.layers[e].st);if(this.globalData._mdf)for(e=0;e<r;e+=1)(this.completeLayers||this.elements[e])&&this.elements[e].renderFrame()}},SVGRendererBase.prototype.appendElementInPos=function(t,e){var r=t.getBaseElement();if(r){for(var s=0,n;s<e;)this.elements[s]&&this.elements[s]!==!0&&this.elements[s].getBaseElement()&&
vendor: 5,410 bytes, line 35
35(n=this.elements[s].getBaseElement()),s+=1;n?this.layerElement.insertBefore(r,n):this.layerElement.appendChild(r)}},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(t,e,r){this.initFrame(),this.initBaseData(t,e,r),this.initTransform(t,e,r),this.initRenderable(),this.initHierarchy(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),(this.data.xt||!e.progressiveLoad)&&this.buildAllItems(),this.hide()},ICompElement.prototype.prepareFrame=function(t){if(this._mdf=!1,this.prepareRenderableFrame(t),this.prepareProperties(t,this.isInRange),!(!this.isInRange&&!this.data.xt)){if(this.tm._placeholder)this.renderedFrame=t/this.data.sr;else{var e=this.tm.v;e===this.data.op&&(e=this.data.op-1),this.renderedFrame=e}var r,s=this.elements.length;for(this.completeLayers||this.checkLayers(this.renderedFrame),r=s-1;r>=0;r-=1)(this.completeLayers||this.elements[r])&&(this.elements[r].prepareFrame(this.renderedFrame-this.layers[r].st),this.elements[r]._mdf&&(this._mdf=!0))}},ICompElement.prototype.renderInnerContent=function(){var t,e=this.layers.length;for(t=0;t<e;t+=1)(this.completeLayers||this.elements[t])&&this.elements[t].renderFrame()},ICompElement.prototype.setElements=function(t){this.elements=t},ICompElement.prototype.getElements=function(){return this.elements},ICompElement.prototype.destroyElements=function(){var t,e=this.layers.length;for(t=0;t<e;t+=1)this.elements[t]&&this.elements[t].destroy()},ICompElement.prototype.destroy=function(){this.destroyElements(),this.destroyBaseElement()};function SVGCompElement(t,e,r){this.layers=t.layers,this.supports3d=!0,this.completeLayers=!1,this.pendingElements=[],this.elements=this.layers?createSizedArray(this.layers.length):[],this.initElement(t,e,r),this.tm=t.tm?PropertyFactory.getProp(this,t.tm,0,e.frameRate,this):{_placeholder:!0}}extendPrototype([SVGRendererBase,ICompElement,SVGBaseElement],SVGCompElement),SVGCompElement.prototype.createComp=function(t){return new SVGCompElement(t,this.globalData,this)};function SVGRenderer(t,e){this.animationItem=t,this.layers=null,this.renderedFrame=-1,this.svgElement=createNS("svg");var r="";if(e&&e.title){var s=createNS("title"),n=createElementID();s.setAttribute("id",n),s.textContent=e.title,this.svgElement.appendChild(s),r+=n}if(e&&e.description){var a=createNS("desc"),o=createElementID();a.setAttribute("id",o),a.textContent=e.description,this.svgElement.appendChild(a),r+=" "+o}r&&this.svgElement.setAttribute("aria-labelledby",r);var h=createNS("defs");this.svgElement.appendChild(h);var l=createNS("g");this.svgElement.appendChild(l),this.layerElement=l,this.renderConfig={preserveAspectRatio:e&&e.preserveAspectRatio||"xMidYMid meet",imagePreserveAspectRatio:e&&e.imagePreserveAspectRatio||"xMidYMid slice",contentVisibility:e&&e.contentVisibility||"visible",progressiveLoad:e&&e.progressiveLoad||!1,hideOnTransparent:!(e&&e.hideOnTransparent===!1),viewBoxOnly:e&&e.viewBoxOnly||!1,viewBoxSize:e&&e.viewBoxSize||!1,className:e&&e.className||"",id:e&&e.id||"",focusable:e&&e.focusable,filterSize:{width:e&&e.filterSize&&e.filterSize.width||"100%",height:e&&e.filterSize&&e.filterSize.height||"100%",x:e&&e.filterSize&&e.filterSize.x||"0%",y:e&&e.filterSize&&e.filterSize.y||"0%"},width:e&&e.width,height:e&&e.height,runExpressions:!e||e.runExpressions===void 0||e.runExpressions},this.globalData={_mdf:!1,frameNum:-1,defs:h,renderConfig:this.renderConfig},this.elements=[],this.pendingElements=[],this.destroyed=!1,this.rendererType="svg"}extendPrototype([SVGRendererBase],SVGRenderer),SVGRenderer.prototype.createComp=function(t){return new SVGCompElement(t,this.globalData,this)};function ShapeTransformManager(){this.sequences={},this.sequenceList=[],this.transform_key_count=0}ShapeTransformManager.prototype={addTransformSequence:function(e){var r,s=e.length,n="_";for(r=0;r<s;r+=1)n+=e[r].transform.key+"_";var a=this.sequences[n];return a||(a={transforms:[].concat(e),finalTransform:new Matrix,_mdf:!1},this.sequences[n]=a,this.sequenceList.push(a)),a},processSequence:function(e,r){for(var s=0,n=e.transforms.length,a=r;s<n&&!r;){if(e.transforms[s].transform.mProps._mdf){a=!0;break}s+=1}if(a)for(e.finalTransform.reset(),s=n-1;s>=0;s-=1)e.finalTransform.multiply(e.transforms[s].transform.mProps.v);e._mdf=a},processSequences:function(e){var r,s=this.sequenceList.length;for(r=0;r<s;r+=1)this.processSequence(this.sequenceList[r],e)},getNewKey:function(){return this.transform_key_count+=1,"_"+this.transform_key_count}};var lumaLoader=function(){var e="__lottie_element_luma_buffer",r=null,s=null,n=null;function a(){var l=createNS("svg"),c=createNS("filter"),m=createNS("feColorMatrix");return c.setAttribute("id",e),m.setAttribute("type","matrix"),m.setAttribute("color-interpolation-filters","sRGB"),m.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"),c.appendChild(m),l.appendChild(c),l.setAttribute("id",e+"_svg"),featureSupport.svgLumaHidden&&(l.style.display="none"),l}function o(){r||(n=a(),document.body.appendChild(n),r=createTag("canvas"),s=r.getContext("2d"),s.filter="url
35(#"+e+")",s.fillStyle="rgba(0,0,0,0)",s.fillRect(0,0,1,1))}function h(l){return r||o(),r.width=l.width,r.height=l.height,s.filter="url(#"+e+")",r}return{load:o,get:h}};function createCanvas(t,e){if(featureSupport.offscreenCanvas)return new OffscreenCanvas(t,e);var r=createTag("canvas");return r.width=t,r.height=e,r}var assetLoader=(function(){return{loadLumaCanvas:lumaLoader.load,getLumaCanvas:lumaLoader.get,createCanvas}})(),registeredEffects={};function CVEffects(t){var e,r=t.data.ef?t.data.ef.length:0;this.filters=[];var s;for(e=0;e<r;e+=1){s=null;var n=t.data.ef[e].ty;if(registeredEffects[n]){var a=registeredEffects[n].effect;s=new a(t.effectsManager.effectElements[e],t)}s&&this.filters.push(s)}this.filters.length&&t.addRenderableComponent(this)}CVEffects.prototype.renderFrame=function(t){var e,r=this.filters.length;for(e=0;e<r;e+=1)this.filters[e].renderFrame(t)},CVEffects.prototype.getEffects=function(t){var e,r=this.filters.length,s=[];for(e=0;e<r;e+=1)this.filters[e].type===t&&s.push(this.filters[e]);return s};function registerEffect(t,e){registeredEffects[t]={effect:e}}function CVMaskElement(t,e){this.data=t,this.element=e,this.masksProperties=this.data.masksProperties||[],this.viewData=createSizedArray(this.masksProperties.length);var r,s=this.masksProperties.length,n=!1;for(r=0;r<s;r+=1)this.masksProperties[r].mode!=="n"&&(n=!0),this.viewData[r]=ShapePropertyFactory.getShapeProp(this.element,this.masksProperties[r],3);this.hasMasks=n,n&&this.element.addRenderableComponent(this)}CVMaskElement.prototype.renderFrame=function(){if(this.hasMasks){var t=this.element.finalTransform.mat,e=this.element.canvasContext,r,s=this.masksProperties.length,n,a,o;for(e.beginPath(),r=0;r<s;r+=1)if(this.masksProperties[r].mode!=="n"){this.masksProperties[r].inv&&(e.moveTo(0,0),e.lineTo(this.element.globalData.compSize.w,0),e.lineTo(this.element.globalData.compSize.w,this.element.globalData.compSize.h),e.lineTo(0,this.element.globalData.compSize.h),e.lineTo(0,0)),o=this.viewData[r].v,n=t.applyToPointArray(o.v[0][0],o.v[0][1],0),e.moveTo(n[0],n[1]);var h,l=o._length;for(h=1;h<l;h+=1)a=t.applyToTriplePoints(o.o[h-1],o.i[h],o.v[h]),e.bezierCurveTo(a[0],a[1],a[2],a[3],a[4],a[5]);a=t.applyToTriplePoints(o.o[h-1],o.i[0],o.v[0]),e.bezierCurveTo(a[0],a[1],a[2],a[3],a[4],a[5])}this.element.globalData.renderer.save(!0),e.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 e=this.globalData.canvasContext,r=assetLoader.createCanvas(e.canvas.width,e.canvas.height);this.buffers.push(r);var s=assetLoader.createCanvas(e.canvas.width,e.canvas.height);this.buffers.push(s),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 e=this.globalData;if(e.blendMode!==this.data.bm){e.blendMode=this.data.bm;var r=getBlendMode(this.data.bm);e.canvasContext.globalCompositeOperation=r}},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(e){e.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 e=this.buffers[0],r=e.getContext("2d");this.clearCanvas(r),r.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 e=this.buffers[1],r=e.getContext("2d");this.clearCanvas(r),r.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 s=this.comp.getElementById("tp"in this.data?this.data.tp:this.data.ind-1);if(s.renderFrame(!0),this.canvasContext.setTransform(1,0,0,1,0,0),this.data.tt>=3&&!document._isProxy){var n=assetLoader.getLumaCanvas(this.canvasContext.canvas),a=n.getContext("2d");a.drawImage(this.canvasContext.canvas,0,0),this.clearCanvas(this.canvasContext),this.canvasContext.drawImage(n,
vendor: 109,705 bytes, line 35
350,0)}this.canvasContext.globalCompositeOperation=operationsMap[this.data.tt],this.canvasContext.drawImage(e,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(e){if(!(this.hidden||this.data.hd)&&!(this.data.td===1&&!e)){this.renderTransform(),this.renderRenderable(),this.renderLocalTransform(),this.setBlendMode();var r=this.data.ty===0;this.prepareLayer(),this.globalData.renderer.save(r),this.globalData.renderer.ctxTransform(this.finalTransform.localMat.props),this.globalData.renderer.ctxOpacity(this.finalTransform.localOpacity),this.renderInnerContent(),this.globalData.renderer.restore(r),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(t,e,r,s){this.styledShapes=[],this.tr=[0,0,0,0,0,0];var n=4;e.ty==="rc"?n=5:e.ty==="el"?n=6:e.ty==="sr"&&(n=7),this.sh=ShapePropertyFactory.getShapeProp(t,e,n,t);var a,o=r.length,h;for(a=0;a<o;a+=1)r[a].closed||(h={transforms:s.addTransformSequence(r[a].transforms),trNodes:[]},this.styledShapes.push(h),r[a].elements.push(h))}CVShapeData.prototype.setAsAnimated=SVGShapeData.prototype.setAsAnimated;function CVShapeElement(t,e,r){this.shapes=[],this.shapesData=t.shapes,this.stylesList=[],this.itemsData=[],this.prevViewData=[],this.shapeModifiers=[],this.processedElements=[],this.transformsManager=new ShapeTransformManager,this.initElement(t,e,r)}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(t,e){var r={data:t,type:t.ty,preTransforms:this.transformsManager.addTransformSequence(e),transforms:[],elements:[],closed:t.hd===!0},s={};if(t.ty==="fl"||t.ty==="st"?(s.c=PropertyFactory.getProp(this,t.c,1,255,this),s.c.k||(r.co="rgb("+bmFloor(s.c.v[0])+","+bmFloor(s.c.v[1])+","+bmFloor(s.c.v[2])+")")):(t.ty==="gf"||t.ty==="gs")&&(s.s=PropertyFactory.getProp(this,t.s,1,null,this),s.e=PropertyFactory.getProp(this,t.e,1,null,this),s.h=PropertyFactory.getProp(this,t.h||{k:0},0,.01,this),s.a=PropertyFactory.getProp(this,t.a||{k:0},0,degToRads,this),s.g=new GradientProperty(this,t.g,this)),s.o=PropertyFactory.getProp(this,t.o,0,.01,this),t.ty==="st"||t.ty==="gs"){if(r.lc=lineCapEnum[t.lc||2],r.lj=lineJoinEnum[t.lj||2],t.lj==1&&(r.ml=t.ml),s.w=PropertyFactory.getProp(this,t.w,0,null,this),s.w.k||(r.wi=s.w.v),t.d){var n=new DashProperty(this,t.d,"canvas",this);s.d=n,s.d.k||(r.da=s.d.dashArray,r.do=s.d.dashoffset[0])}}else r.r=t.r===2?"evenodd":"nonzero";return this.stylesList.push(r),s.style=r,s},CVShapeElement.prototype.createGroupElement=function(){var t={it:[],prevViewData:[]};return t},CVShapeElement.prototype.createTransformElement=function(t){var e={transform:{opacity:1,_opMdf:!1,key:this.transformsManager.getNewKey(),op:PropertyFactory.getProp(this,t.o,0,.01,this),mProps:TransformPropertyFactory.getTransformProperty(this,t,this)}};return e},CVShapeElement.prototype.createShapeElement=function(t){var e=new CVShapeData(this,t,this.stylesList,this.transformsManager);return this.shapes.push(e),this.addShapeToModifiers(e),e},CVShapeElement.prototype.reloadShapes=function(){this._isFirstFrame=!0;var t,e=this.itemsData.length;for(t=0;t<e;t+=1)this.prevViewData[t]=this.itemsData[t];for(this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,!0,[]),e=this.dynamicProperties.length,t=0;t<e;t+=1)this.dynamicProperties[t].getValue();this.renderModifiers(),this.transformsManager.processSequences(this._isFirstFrame)},CVShapeElement.prototype.addTransformToStyleList=function(t){var e,r=this.stylesList.length;for(e=0;e<r;e+=1)this.stylesList[e].closed||this.stylesList[e].transforms.push(t)},CVShapeElement.prototype.removeTransformFromStyleList=function(){var t,e=this.stylesList.length;for(t=0;t<e;t+=1)this.stylesList[t].closed||this.stylesList[t].transforms.pop()},CVShapeElement.prototype.closeStyles=function(t){var e,r=t.length;for(e=0;e<r;e+=1)t[e].closed=!0},CVShapeElement.prototype.searchShapes=function(t,e,r,s,n){var a,o=t.length-1,h,l,c=[],m=[],C,u,b,_=[].concat(n);for(a=o;a>=0;a-=1){if(C=this.searchProcessedElement(t[a]),C?e[a]=r[C-1]:t[a]._shouldRender=s,t[a].ty==="fl"||t[a].ty==="st"||t[a].ty==="gf"||t[a].ty==="gs")C?e[a].style.closed=!1:e[a]=this.createStyleElement(t[a],_),c.push(e[a].style);else if(t[a].ty==="gr"){if(!C)e[a]=this.createGroupElement(t[a]);else for(l=e[a].it.length,h=0;h<l;h+=1)e[a].prevViewData[h]=e[a].it[h];this.searchShapes(t[a].it,e[a].it,e[a].prevViewData,s,_)}else t[a].ty==="tr"?(C||(b=this.createTransformElement(t[a]),e[a]=b),_.push(e[a]),this.addTransformToStyleList(e[a])):t[a].ty==="sh"||t[a].ty==="rc"||t[a].ty==="el"||t[a].ty==="sr"?C||(e[a]=this.createShapeElement(t[a])):t[a].ty==="tm"||t[a].ty==="rd"||t[a].ty==="pb"||t[a].ty==="zz"||t[a].ty==="op"?(C?(u=e[a],u.closed=!1):(u=ShapeModifiers.getModifier(t[a].ty),u.init(this,t[a]),e[a]=u,this.shapeModifiers.push(u)),m.push(u)):t[a].ty==="rp"&&(C?(u=e[a],u.closed=!0):(u=ShapeModifiers.getModifier(t[a].ty),e[a]=u,u.init(this,t,a,e),this.shapeModifiers.push(u),s=!1),m.push(u));this.addProcessedElement(t[a],a+1)}for(this.removeTransformFromStyleList(),this.closeStyles(c),o=m.length,a=0;a<o;a+=1)m[a].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(t,e){(t._opMdf||e.op._mdf||this._isFirstFrame)&&(e.opacity=t.opacity,e.opacity*=e.op.v,e._opMdf=!0)},CVShapeElement.prototype.drawLayer=function(){var t,e=this.stylesList.length,r,s,n,a,o,h,l=this.globalData.renderer,c=this.globalData.canvasContext,m,C;for(t=0;t<e;t+=1)if(C=this.stylesList[t],m=C.type,!((m==="st"||m==="gs")&&C.wi===0||!C.data._shouldRender||C.coOp===0||this.globalData.currentGlobalAlpha===0)){for(l.save(),o=C.elements,m==="st"||m==="gs"?(l.ctxStrokeStyle(m==="st"?C.co:C.grd),l.ctxLineWidth(C.wi),l.ctxLineCap(C.lc),l.ctxLineJoin(C.lj),l.ctxMiterLimit(C.ml||0)):l.ctxFillStyle(m==="fl"?C.co:C.grd),l.ctxOpacity(C.coOp),m!=="st"&&m!=="gs"&&c.beginPath(),l.ctxTransform(C.preTransforms.finalTransform.props),s=o.length,r=0;r<s;r+=1){for((m==="st"||m==="gs")&&(c.beginPath(),C.da&&(c.setLineDash(C.da),c.lineDashOffset=C.do)),h=o[r].trNodes,a=h.length,n=0;n<a;n+=1)h[n].t==="m"?c.moveTo(h[n].p[0],h[n].p[1]):h[n].t==="c"?c.bezierCurveTo(h[n].pts[0],h[n].pts[1],h[n].pts[2],h[n].pts[3],h[n].pts[4],h[n].pts[5]):c.closePath();(m==="st"||m==="gs")&&(l.ctxStroke(),C.da&&c.setLineDash(this.dashResetter))}m!=="st"&&m!=="gs"&&this.globalData.renderer.ctxFill(C.r),l.restore()}},CVShapeElement.prototype.renderShape=function(t,e,r,s){var n,a=e.length-1,o;for(o=t,n=a;n>=0;n-=1)e[n].ty==="tr"?(o=r[n].transform,this.renderShapeTransform(t,o)):e[n].ty==="sh"||e[n].ty==="el"||e[n].ty==="rc"||e[n].ty==="sr"?this.renderPath(e[n],r[n]):e[n].ty==="fl"?this.renderFill(e[n],r[n],o):e[n].ty==="st"?this.renderStroke(e[n],r[n],o):e[n].ty==="gf"||e[n].ty==="gs"?this.renderGradientFill(e[n],r[n],o):e[n].ty==="gr"?this.renderShape(o,e[n].it,r[n].it):e[n].ty;s&&this.drawLayer()},CVShapeElement.prototype.renderStyledShape=function(t,e){if(this._isFirstFrame||e._mdf||t.transforms._mdf){var r=t.trNodes,s=e.paths,n,a,o,h=s._length;r.length=0;var l=t.transforms.finalTransform;for(o=0;o<h;o+=1){var c=s.shapes[o];if(c&&c.v){for(a=c._length,n=1;n<a;n+=1)n===1&&r.push({t:"m",p:l.applyToPointArray(c.v[0][0],c.v[0][1],0)}),r.push({t:"c",pts:l.applyToTriplePoints(c.o[n-1],c.i[n],c.v[n])});a===1&&r.push({t:"m",p:l.applyToPointArray(c.v[0][0],c.v[0][1],0)}),c.c&&a&&(r.push({t:"c",pts:l.applyToTriplePoints(c.o[n-1],c.i[0],c.v[0])}),r.push({t:"z"}))}}t.trNodes=r}},CVShapeElement.prototype.renderPath=function(t,e){if(t.hd!==!0&&t._shouldRender){var r,s=e.styledShapes.length;for(r=0;r<s;r+=1)this.renderStyledShape(e.styledShapes[r],e.sh)}},CVShapeElement.prototype.renderFill=function(t,e,r){var s=e.style;(e.c._mdf||this._isFirstFrame)&&(s.co="rgb("+bmFloor(e.c.v[0])+","+bmFloor(e.c.v[1])+","+bmFloor(e.c.v[2])+")"),(e.o._mdf||r._opMdf||this._isFirstFrame)&&(s.coOp=e.o.v*r.opacity)},CVShapeElement.prototype.renderGradientFill=function(t,e,r){var s=e.style,n;if(!s.grd||e.g._mdf||e.s._mdf||e.e._mdf||t.t!==1&&(e.h._mdf||e.a._mdf)){var a=this.globalData.canvasContext,o=e.s.v,h=e.e.v;if(t.t===1)n=a.createLinearGradient(o[0],o[1],h[0],h[1]);else{var l=Math.sqrt(Math.pow(o[0]-h[0],2)+Math.pow(o[1]-h[1],2)),c=Math.atan2(h[1]-o[1],h[0]-o[0]),m=e.h.v;m>=1?m=.99:m<=-1&&(m=-.99);var C=l*m,u=Math.cos(c+e.a.v)*C+o[0],b=Math.sin(c+e.a.v)*C+o[1];n=a.createRadialGradient(u,b,0,o[0],o[1],l)}var _,g=t.g.p,E=e.g.c,d=1;for(_=0;_<g;_+=1)e.g._hasOpacity&&e.g._collapsable&&(d=e.g.o[_*2+1]),n.addColorStop(E[_*4]/100,"rgba("+E[_*4+1]+","+E[_*4+2]+","+E[_*4+3]+","+d+")");s.grd=n}s.coOp=e.o.v*r.opacity},CVShapeElement.prototype.renderStroke=function(t,e,r){var s=e.style,n=e.d;n&&(n._mdf||this._isFirstFrame)&&(s.da=n.dashArray,s.do=n.dashoffset[0]),(e.c._mdf||this._isFirstFrame)&&(s.co="rgb("+bmFloor(e.c.v[0])+","+bmFloor(e.c.v[1])+","+bmFloor(e.c.v[2])+")"),(e.o._mdf||r._opMdf||this._isFirstFrame)&&(s.coOp=e.o.v*r.opacity),(e.w._mdf||this._isFirstFrame)&&(s.wi=e.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(t,e,r){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(t,e,r)}extendPrototype([BaseElement,TransformElement,CVBaseElement,HierarchyElement,FrameElement,RenderableElement,ITextElement],CVTextElement),CVTextElement.prototype.tHelper=createTag("canvas").getContext("2d"),CVTextElement.prototype.buildNewText=function(){var t=this.textProperty.currentData;this.renderedLetters=createSizedArray(t.l?t.l.length:0);var e=!1;t.fc?(e=!0,this.values.fill=this.buildColor(t.fc)):this.values.fill="rgba(0,0,0,0)",this.fill=e;var r=!1;t.sc&&(r=!0,this.values.stroke=this.buildColor(t.sc),this.values.sWidth=t.sw);var s=this.globalData.fontManager.getFontByName(t.f),n,a,o=t.l,h=this.mHelper;this.stroke=r,this.values.fValue=t.finalSize+"px "+this.globalData.fontManager.getFontByName(t.f).fFamily,a=t.finalText.length;var l,c,m,C,u,b,_,g,E,d,f=this.data.singleShape,p=t.tr*.001*t.finalSize,v=0,P=0,M=!0,w=0;for(n=0;n<a;n+=1){l=this.globalData.fontManager.getCharData(t.finalText[n],s.fStyle,this.globalData.fontManager.getFontByName(t.f).fFamily),c=l&&l.data||{},h.reset(),f&&o[n].n&&(v=-p,P+=t.yOffset,P+=M?1:0,M=!1),u=c.shapes?c.shapes[0].it:[],_=u.length,h.scale(t.finalSize/100,t.finalSize/100),f&&this.applyTextPropertiesToMatrix(t,h,o[n].line,v,P),E=createSizedArray(_-1);var I=0;for(b=0;b<_;b+=1)if(u[b].ty==="sh"){for(C=u[b].ks.k.i.length,g=u[b].ks.k,d=[],m=1;m<C;m+=1)m===1&&d.push(h.applyToX(g.v[0][0],g.v[0][1],0),h.applyToY(g.v[0][0],g.v[0][1],0)),d.push(h.applyToX(g.o[m-1][0],g.o[m-1][1],0),h.applyToY(g.o[m-1][0],g.o[m-1][1],0),h.applyToX(g.i[m][0],g.i[m][1],0),h.applyToY(g.i[m][0],g.i[m][1],0),h.applyToX(g.v[m][0],g.v[m][1],0),h.applyToY(g.v[m][0],g.v[m][1],0));d.push(h.applyToX(g.o[m-1][0],g.o[m-1][1],0),h.applyToY(g.o[m-1][0],g.o[m-1][1],0),h.applyToX(g.i[0][0],g.i[0][1],0),h.applyToY(g.i[0][0],g.i[0][1],0),h.applyToX(g.v[0][0],g.v[0][1],0),h.applyToY(g.v[0][0],g.v[0][1],0)),E[I]=d,I+=1}f&&(v+=o[n].l,v+=p),this.textSpans[w]?this.textSpans[w].elem=E:this.textSpans[w]={elem:E},w+=1}},CVTextElement.prototype.renderInnerContent=function(){this.validateText();var t=this.canvasContext;t.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 e,r,s,n,a,o,h=this.textAnimator.renderedLetters,l=this.textProperty.currentData.l;r=l.length;var c,m=null,C=null,u=null,b,_,g=this.globalData.renderer;for(e=0;e<r;e+=1)if(!l[e].n){if(c=h[e],c&&(g.save(),g.ctxTransform(c.p),g.ctxOpacity(c.o)),this.fill){for(c&&c.fc?m!==c.fc&&(g.ctxFillStyle(c.fc),m=c.fc):m!==this.values.fill&&(m=this.values.fill,g.ctxFillStyle(this.values.fill)),b=this.textSpans[e].elem,n=b.length,this.globalData.canvasContext.beginPath(),s=0;s<n;s+=1)for(_=b[s],o=_.length,this.globalData.canvasContext.moveTo(_[0],_[1]),a=2;a<o;a+=6)this.globalData.canvasContext.bezierCurveTo(_[a],_[a+1],_[a+2],_[a+3],_[a+4],_[a+5]);this.globalData.canvasContext.closePath(),g.ctxFill()}if(this.stroke){for(c&&c.sw?u!==c.sw&&(u=c.sw,g.ctxLineWidth(c.sw)):u!==this.values.sWidth&&(u=this.values.sWidth,g.ctxLineWidth(this.values.sWidth)),c&&c.sc?C!==c.sc&&(C=c.sc,g.ctxStrokeStyle(c.sc)):C!==this.values.stroke&&(C=this.values.stroke,g.ctxStrokeStyle(this.values.stroke)),b=this.textSpans[e].elem,n=b.length,this.globalData.canvasContext.beginPath(),s=0;s<n;s+=1)for(_=b[s],o=_.length,this.globalData.canvasContext.moveTo(_[0],_[1]),a=2;a<o;a+=6)this.globalData.canvasContext.bezierCurveTo(_[a],_[a+1],_[a+2],_[a+3],_[a+4],_[a+5]);this.globalData.canvasContext.closePath(),g.ctxStroke()}c&&this.globalData.renderer.restore()}};function CVImageElement(t,e,r){this.assetData=e.getAssetData(t.refId),this.img=e.imageLoader.getAsset(this.assetData),this.initElement(t,e,r)}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 t=createTag("canvas");t.width=this.assetData.w,t.height=this.assetData.h;var e=t.getContext("2d"),r=this.img.width,s=this.img.height,n=r/s,a=this.assetData.w/this.assetData.h,o,h,l=this.assetData.pr||this.globalData.renderConfig.imagePreserveAspectRatio;n>a&&l==="xMidYMid slice"||n<a&&l!=="xMidYMid slice"?(h=s,o=h*a):(o=r,h=o/a),e.drawImage(this.img,(r-o)/2,(s-h)/2,o,h,0,0,this.assetData.w,this.assetData.h),this.img=t}},CVImageElement.prototype.renderInnerContent=function(){this.canvasContext.drawImage(this.img,0,0)},CVImageElement.prototype.destroy=function(){this.img=null};function CVSolidElement(t,e,r){this.initElement(t,e,r)}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(t){return new CVShapeElement(t,this.globalData,this)},CanvasRendererBase.prototype.createText=function(t){return new CVTextElement(t,this.globalData,this)},CanvasRendererBase.prototype.createImage=function(t){return new CVImageElement(t,this.globalData,this)},CanvasRendererBase.prototype.createSolid=function(t){return new CVSolidElement(t,this.globalData,this)},CanvasRendererBase.prototype.createNull=SVGRenderer.prototype.createNull,CanvasRendererBase.prototype.ctxTransform=function(t){t[0]===1&&t[1]===0&&t[4]===0&&t[5]===1&&t[12]===0&&t[13]===0||this.canvasContext.transform(t[0],t[1],t[4],t[5],t[12],t[13])},CanvasRendererBase.prototype.ctxOpacity=function(t){this.canvasContext.globalAlpha*=t<0?0:t},CanvasRendererBase.prototype.ctxFillStyle=function(t){this.canvasContext.fillStyle=t},CanvasRendererBase.prototype.ctxStrokeStyle=function(t){this.canvasContext.strokeStyle=t},CanvasRendererBase.prototype.ctxLineWidth=function(t){this.canvasContext.lineWidth=t},CanvasRendererBase.prototype.ctxLineCap=function(t){this.canvasContext.lineCap=t},CanvasRendererBase.prototype.ctxLineJoin=function(t){this.canvasContext.lineJoin=t},CanvasRendererBase.prototype.ctxMiterLimit=function(t){this.canvasContext.miterLimit=t},CanvasRendererBase.prototype.ctxFill=function(t){this.canvasContext.fill(t)},CanvasRendererBase.prototype.ctxFillRect=function(t,e,r,s){this.canvasContext.fillRect(t,e,r,s)},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(t){if(!this.renderConfig.clearCanvas){this.canvasContext.restore();return}t&&(this.globalData.blendMode="source-over"),this.contextData.restore(t)},CanvasRendererBase.prototype.configAnimation=function(t){if(this.animationItem.wrapper){this.animationItem.container=createTag("canvas");var e=this.animationItem.container.style;e.width="100%",e.height="100%";var r="0px 0px 0px";e.transformOrigin=r,e.mozTransformOrigin=r,e.webkitTransformOrigin=r,e["-webkit-transform"]=r,e.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=t,this.layers=t.layers,this.transformCanvas={w:t.w,h:t.h,sx:0,sy:0,tx:0,ty:0},this.setupGlobalData(t,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(t.layers.length),this.updateContainerSize()},CanvasRendererBase.prototype.updateContainerSize=function(t,e){this.reset();var r,s;t?(r=t,s=e,this.canvasContext.canvas.width=r,this.canvasContext.canvas.height=s):(this.animationItem.wrapper&&this.animationItem.container?(r=this.animationItem.wrapper.offsetWidth,s=this.animationItem.wrapper.offsetHeight):(r=this.canvasContext.canvas.width,s=this.canvasContext.canvas.height),this.canvasContext.canvas.width=r*this.renderConfig.dpr,this.canvasContext.canvas.height=s*this.renderConfig.dpr);var n,a;if(this.renderConfig.preserveAspectRatio.indexOf("meet")!==-1||this.renderConfig.preserveAspectRatio.indexOf("slice")!==-1){var o=this.renderConfig.preserveAspectRatio.split(" "),h=o[1]||"meet",l=o[0]||"xMidYMid",c=l.substr(0,4),m=l.substr(4);n=r/s,a=this.transformCanvas.w/this.transformCanvas.h,a>n&&h==="meet"||a<n&&h==="slice"?(this.transformCanvas.sx=r/(this.transformCanvas.w/this.renderConfig.dpr),this.transformCanvas.sy=r/(this.transformCanvas.w/this.renderConfig.dpr)):(this.transformCanvas.sx=s/(this.transformCanvas.h/this.renderConfig.dpr),this.transformCanvas.sy=s/(this.transformCanvas.h/this.renderConfig.dpr)),c==="xMid"&&(a<n&&h==="meet"||a>n&&h==="slice")?this.transformCanvas.tx=(r-this.transformCanvas.w*(s/this.transformCanvas.h))/2*this.renderConfig.dpr:c==="xMax"&&(a<n&&h==="meet"||a>n&&h==="slice")?this.transformCanvas.tx=(r-this.transformCanvas.w*(s/this.transformCanvas.h))*this.renderConfig.dpr:this.transformCanvas.tx=0,m==="YMid"&&(a>n&&h==="meet"||a<n&&h==="slice")?this.transformCanvas.ty=(s-this.transformCanvas.h*(r/this.transformCanvas.w))/2*this.renderConfig.dpr:m==="YMax"&&(a>n&&h==="meet"||a<n&&h==="slice")?this.transformCanvas.ty=(s-this.transformCanvas.h*(r/this.transformCanvas.w))*this.renderConfig.dpr:this.transformCanvas.ty=0}else this.renderConfig.preserveAspectRatio==="none"?(this.transformCanvas.sx=r/(this.transformCanvas.w/this.renderConfig.dpr),this.transformCanvas.sy=s/(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 t,e=this.layers?this.layers.length:0;for(t=e-1;t>=0;t-=1)this.elements[t]&&this.elements[t].destroy&&this.elements[t].destroy();this.elements.length=0,this.globalData.canvasContext=null,this.animationItem.container=null,this.destroyed=!0},CanvasRendererBase.prototype.renderFrame=function(t,e){if(!(this.renderedFrame===t&&this.renderConfig.clearCanvas===!0&&!e||this.destroyed||t===-1)){this.renderedFrame=t,this.globalData.frameNum=t-this.animationItem._isFirstFrame,this.globalData.frameId+=1,this.globalData._mdf=!this.renderConfig.clearCanvas||e,this.globalData.projectInterface.currentFrame=t;var r,s=this.layers.length;for(this.completeLayers||this.checkLayers(t),r=s-1;r>=0;r-=1)(this.completeLayers||this.elements[r])&&this.elements[r].prepareFrame(t-this.layers[r].st);if(this.globalData._mdf){for(this.renderConfig.clearCanvas===!0?this.canvasContext.clearRect(0,0,this.transformCanvas.w,this.transformCanvas.h):this.save(),r=s-1;r>=0;r-=1)(this.completeLayers||this.elements[r])&&this.elements[r].renderFrame();this.renderConfig.clearCanvas!==!0&&this.restore()}}},CanvasRendererBase.prototype.buildItem=function(t){var e=this.elements;if(!(e[t]||this.layers[t].ty===99)){var r=this.createItem(this.layers[t],this,this.globalData);e[t]=r,r.initExpressions()}},CanvasRendererBase.prototype.checkPendingElements=function(){for(;this.pendingElements.length;){var t=this.pendingElements.pop();t.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 t,e=15;for(t=0;t<e;t+=1){var r=new CanvasContext;this.stack[t]=r}this._length=e,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 t=this._length*2,e=0;for(e=this._length;e<t;e+=1)this.stack[e]=new CanvasContext;this._length=t},CVContextData.prototype.reset=function(){this.cArrPos=0,this.cTr.reset(),this.stack[this.cArrPos].opacity=1},CVContextData.prototype.restore=function(t){this.cArrPos-=1;var e=this.stack[this.cArrPos],r=e.transform,s,n=this.cTr.props;for(s=0;s<16;s+=1)n[s]=r[s];if(t){this.nativeContext.restore();var a=this.stack[this.cArrPos+1];this.appliedFillStyle=a.fillStyle,this.appliedStrokeStyle=a.strokeStyle,this.appliedLineWidth=a.lineWidth,this.appliedLineCap=a.lineCap,this.appliedLineJoin=a.lineJoin,this.appliedMiterLimit=a.miterLimit}this.nativeContext.setTransform(r[0],r[1],r[4],r[5],r[12],r[13]),(t||e.opacity!==-1&&this.currentOpacity!==e.opacity)&&(this.nativeContext.globalAlpha=e.opacity,this.currentOpacity=e.opacity),this.currentFillStyle=e.fillStyle,this.currentStrokeStyle=e.strokeStyle,this.currentLineWidth=e.lineWidth,this.currentLineCap=e.lineCap,this.currentLineJoin=e.lineJoin,this.currentMiterLimit=e.miterLimit},CVContextData.prototype.save=function(t){t&&this.nativeContext.save();var e=this.cTr.props;this._length<=this.cArrPos&&this.duplicate();var r=this.stack[this.cArrPos],s;for(s=0;s<16;s+=1)r.transform[s]=e[s];this.cArrPos+=1;var n=this.stack[this.cArrPos];n.opacity=r.opacity,n.fillStyle=r.fillStyle,n.strokeStyle=r.strokeStyle,n.lineWidth=r.lineWidth,n.lineCap=r.lineCap,n.lineJoin=r.lineJoin,n.miterLimit=r.miterLimit},CVContextData.prototype.setOpacity=function(t){this.stack[this.cArrPos].opacity=t},CVContextData.prototype.setContext=function(t){this.nativeContext=t},CVContextData.prototype.fillStyle=function(t){this.stack[this.cArrPos].fillStyle!==t&&(this.currentFillStyle=t,this.stack[this.cArrPos].fillStyle=t)},CVContextData.prototype.strokeStyle=function(t){this.stack[this.cArrPos].strokeStyle!==t&&(this.currentStrokeStyle=t,this.stack[this.cArrPos].strokeStyle=t)},CVContextData.prototype.lineWidth=function(t){this.stack[this.cArrPos].lineWidth!==t&&(this.currentLineWidth=t,this.stack[this.cArrPos].lineWidth=t)},CVContextData.prototype.lineCap=function(t){this.stack[this.cArrPos].lineCap!==t&&(this.currentLineCap=t,this.stack[this.cArrPos].lineCap=t)},CVContextData.prototype.lineJoin=function(t){this.stack[this.cArrPos].lineJoin!==t&&(this.currentLineJoin=t,this.stack[this.cArrPos].lineJoin=t)},CVContextData.prototype.miterLimit=function(t){this.stack[this.cArrPos].miterLimit!==t&&(this.currentMiterLimit=t,this.stack[this.cArrPos].miterLimit=t)},CVContextData.prototype.transform=function(t){this.transformMat.cloneFromProps(t);var e=this.cTr;this.transformMat.multiply(e),e.cloneFromProps(this.transformMat.props);var r=e.props;this.nativeContext.setTransform(r[0],r[1],r[4],r[5],r[12],r[13])},CVContextData.prototype.opacity=function(t){var e=this.stack[this.cArrPos].opacity;e*=t<0?0:t,this.stack[this.cArrPos].opacity!==e&&(this.currentOpacity!==t&&(this.nativeContext.globalAlpha=t,this.currentOpacity=t),this.stack[this.cArrPos].opacity=e)},CVContextData.prototype.fill=function(t){this.appliedFillStyle!==this.currentFillStyle&&(this.appliedFillStyle=this.currentFillStyle,this.nativeContext.fillStyle=this.appliedFillStyle),this.nativeContext.fill(t)},CVContextData.prototype.fillRect=function(t,e,r,s){this.appliedFillStyle!==this.currentFillStyle&&(this.appliedFillStyle=this.currentFillStyle,this.nativeContext.fillStyle=this.appliedFillStyle),this.nativeContext.fillRect(t,e,r,s)},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(t,e,r){this.completeLayers=!1,this.layers=t.layers,this.pendingElements=[],this.elements=createSizedArray(this.layers.length),this.initElement(t,e,r),this.tm=t.tm?PropertyFactory.getProp(this,t.tm,0,e.frameRate,this):{_placeholder:!0}}extendPrototype([CanvasRendererBase,ICompElement,CVBaseElement],CVCompElement),CVCompElement.prototype.renderInnerContent=function(){var t=this.canvasContext;t.beginPath(),t.moveTo(0,0),t.lineTo(this.data.w,0),t.lineTo(this.data.w,this.data.h),t.lineTo(0,this.data.h),t.lineTo(0,0),t.clip();var e,r=this.layers.length;for(e=r-1;e>=0;e-=1)(this.completeLayers||this.elements[e])&&this.elements[e].renderFrame()},CVCompElement.prototype.destroy=function(){var t,e=this.layers.length;for(t=e-1;t>=0;t-=1)this.elements[t]&&this.elements[t].destroy();this.layers=null,this.elements=null},CVCompElement.prototype.createComp=function(t){return new CVCompElement(t,this.globalData,this)};function CanvasRenderer(t,e){this.animationItem=t,this.renderConfig={clearCanvas:e&&e.clearCanvas!==void 0?e.clearCanvas:!0,context:e&&e.context||null,progressiveLoad:e&&e.progressiveLoad||!1,preserveAspectRatio:e&&e.preserveAspectRatio||"xMidYMid meet",imagePreserveAspectRatio:e&&e.imagePreserveAspectRatio||"xMidYMid slice",contentVisibility:e&&e.contentVisibility||"visible",className:e&&e.className||"",id:e&&e.id||"",runExpressions:!e||e.runExpressions===void 0||e.runExpressions},this.renderConfig.dpr=e&&e.dpr||1,this.animationItem.wrapper&&(this.renderConfig.dpr=e&&e.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(t){return new CVCompElement(t,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 e=this.transformedElement?this.transformedElement.style:{};if(this.finalTransform._matMdf){var r=this.finalTransform.mat.toCSS();e.transform=r,e.webkitTransform=r}this.finalTransform._opMdf&&(e.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(t,e,r){this.initElement(t,e,r)}extendPrototype([BaseElement,TransformElement,HBaseElement,HierarchyElement,FrameElement,RenderableDOMElement],HSolidElement),HSolidElement.prototype.createContent=function(){var t;this.data.hasMask?(t=createNS("rect"),t.setAttribute("width",this.data.sw),t.setAttribute("height",this.data.sh),t.setAttribute("fill",this.data.sc),this.svgElement.setAttribute("width",this.data.sw),this.svgElement.setAttribute("height",this.data.sh)):(t=createTag("div"),t.style.width=this.data.sw+"px",t.style.height=this.data.sh+"px",t.style.backgroundColor=this.data.sc),this.layerElement.appendChild(t)};function HShapeElement(t,e,r){this.shapes=[],this.shapesData=t.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.animatedContents=[],this.shapesContainer=createNS("g"),this.initElement(t,e,r),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 t;if(this.baseElement.style.fontSize=0,this.data.hasMask)this.layerElement.appendChild(this.shapesContainer),t=this.svgElement;else{t=createNS("svg");var e=this.comp.data?this.comp.data:this.globalData.compSize;t.setAttribute("width",e.w),t.setAttribute("height",e.h),t.appendChild(this.shapesContainer),this.layerElement.appendChild(t)}this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.shapesContainer,0,[],!0),this.filterUniqueShapes(),this.shapeCont=t},HShapeElement.prototype.getTransformedPoint=function(t,e){var r,s=t.length;for(r=0;r<s;r+=1)e=t[r].mProps.v.applyToPointArray(e[0],e[1],0);return e},HShapeElement.prototype.calculateShapeBoundingBox=function(t,e){var r=t.sh.v,s=t.transformers,n,a=r._length,o,h,l,c;if(!(a<=1)){for(n=0;n<a-1;n+=1)o=this.getTransformedPoint(s,r.v[n]),h=this.getTransformedPoint(s,r.o[n]),l=this.getTransformedPoint(s,r.i[n+1]),c=this.getTransformedPoint(s,r.v[n+1]),this.checkBounds(o,h,l,c,e);r.c&&(o=this.getTransformedPoint(s,r.v[n]),h=this.getTransformedPoint(s,r.o[n]),l=this.getTransformedPoint(s,r.i[0]),c=this.getTransformedPoint(s,r.v[0]),this.checkBounds(o,h,l,c,e))}},HShapeElement.prototype.checkBounds=function(t,e,r,s,n){this.getBoundsOfCurve(t,e,r,s);var a=this.shapeBoundingBox;n.x=bmMin(a.left,n.x),n.xMax=bmMax(a.right,n.xMax),n.y=bmMin(a.top,n.y),n.yMax=bmMax(a.bottom,n.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(t,e,r,s){for(var n=[[t[0],s[0]],[t[1],s[1]]],a,o,h,l,c,m,C,u=0;u<2;++u)o=6*t[u]-12*e[u]+6*r[u],a=-3*t[u]+9*e[u]-9*r[u]+3*s[u],h=3*e[u]-3*t[u],o|=0,a|=0,h|=0,a===0&&o===0||(a===0?(l=-h/o,l>0&&l<1&&n[u].push(this.calculateF(l,t,e,r,s,u))):(c=o*o-4*h*a,c>=0&&(m=(-o+bmSqrt(c))/(2*a),m>0&&m<1&&n[u].push(this.calculateF(m,t,e,r,s,u)),C=(-o-bmSqrt(c))/(2*a),C>0&&C<1&&n[u].push(this.calculateF(C,t,e,r,s,u)))));this.shapeBoundingBox.left=bmMin.apply(null,n[0]),this.shapeBoundingBox.top=bmMin.apply(null,n[1]),this.shapeBoundingBox.right=bmMax.apply(null,n[0]),this.shapeBoundingBox.bottom=bmMax.apply(null,n[1])},HShapeElement.prototype.calculateF=function(t,e,r,s,n,a){return bmPow(1-t,3)*e[a]+3*bmPow(1-t,2)*t*r[a]+3*(1-t)*bmPow(t,2)*s[a]+bmPow(t,3)*n[a]},HShapeElement.prototype.calculateBoundingBox=function(t,e){var r,s=t.length;for(r=0;r<s;r+=1)t[r]&&t[r].sh?this.calculateShapeBoundingBox(t[r],e):t[r]&&t[r].it?this.calculateBoundingBox(t[r].it,e):t[r]&&t[r].style&&t[r].w&&this.expandStrokeBoundingBox(t[r].w,e)},HShapeElement.prototype.expandStrokeBoundingBox=function(t,e){var r=0;if(t.keyframes){for(var s=0;s<t.keyframes.length;s+=1){var n=t.keyframes[s].s;n>r&&(r=n)}r*=t.mult}else r=t.v*t.mult;e.x-=r,e.xMax+=r,e.y-=r,e.yMax+=r},HShapeElement.prototype.currentBoxContains=function(t){return this.currentBBox.x<=t.x&&this.currentBBox.y<=t.y&&this.currentBBox.width+this.currentBBox.x>=t.x+t.width&&this.currentBBox.height+this.currentBBox.y>=t.y+t.height},HShapeElement.prototype.renderInnerContent=function(){if(this._renderShapeFrame(),!this.hidden&&(this._isFirstFrame||this._mdf)){var t=this.tempBoundingBox,e=999999;if(t.x=e,t.xMax=-e,t.y=e,t.yMax=-e,this.calculateBoundingBox(this.itemsData,t),t.width=t.xMax<t.x?0:t.xMax-t.x,t.height=t.yMax<t.y?0:t.yMax-t.y,this.currentBoxContains(t))return;var r=!1;if(this.currentBBox.w!==t.width&&(this.currentBBox.w=t.width,this.shapeCont.setAttribute("width",t.width),r=!0),this.currentBBox.h!==t.height&&(this.currentBBox.h=t.height,this.shapeCont.setAttribute("height",t.height),r=!0),r||this.currentBBox.x!==t.x||this.currentBBox.y!==t.y){this.currentBBox.w=t.width,this.currentBBox.h=t.height,this.currentBBox.x=t.x,this.currentBBox.y=t.y,this.shapeCont.setAttribute("viewBox",this.currentBBox.x+" "+this.currentBBox.y+" "+this.currentBBox.w+" "+this.currentBBox.h);var s=this.shapeCont.style,n="translate("+this.currentBBox.x+"px,"+this.currentBBox.y+"px)";s.transform=n,s.webkitTransform=n}}};function HTextElement(t,e,r){this.textSpans=[],this.textPaths=[],this.currentBBox={x:999999,y:-999999,h:0,w:0},this.renderType="svg",this.isMasked=!1,this.initElement(t,e,r)}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 t=createNS("g");this.maskedElement.appendChild(t),this.innerElem=t}else this.renderType="html",this.innerElem=this.layerElement;this.checkParenting()},HTextElement.prototype.buildNewText=function(){var t=this.textProperty.currentData;this.renderedLetters=createSizedArray(t.l?t.l.length:0);var e=this.innerElem.style,r=t.fc?this.buildColor(t.fc):"rgba(0,0,0,0)";e.fill=r,e.color=r,t.sc&&(e.stroke=this.buildColor(t.sc),e.strokeWidth=t.sw+"px");var s=this.globalData.fontManager.getFontByName(t.f);if(!this.globalData.fontManager.chars)if(e.fontSize=t.finalSize+"px",e.lineHeight=t.finalSize+"px",s.fClass)this.innerElem.className=s.fClass;else{e.fontFamily=s.fFamily;var n=t.fWeight,a=t.fStyle;e.fontStyle=a,e.fontWeight=n}var o,h,l=t.l;h=l.length;var c,m,C,u=this.mHelper,b,_="",g=0;for(o=0;o<h;o+=1){if(this.globalData.fontManager.chars?(this.textPaths[g]?c=this.textPaths[g]:(c=createNS("path"),c.setAttribute("stroke-linecap",lineCapEnum[1]),c.setAttribute("stroke-linejoin",lineJoinEnum[2]),c.setAttribute("stroke-miterlimit","4")),this.isMasked||(this.textSpans[g]?(m=this.textSpans[g],C=m.children[0]):(m=createTag("div"),m.style.lineHeight=0,C=createNS("svg"),C.appendChild(c),styleDiv(m)))):this.isMasked?c=this.textPaths[g]?this.textPaths[g]:createNS("text"):this.textSpans[g]?(m=this.textSpans[g],c=this.textPaths[g]):(m=createTag("span"),styleDiv(m),c=createTag("span"),styleDiv(c),m.appendChild(c)),this.globalData.fontManager.chars){var E=this.globalData.fontManager.getCharData(t.finalText[o],s.fStyle,this.globalData.fontManager.getFontByName(t.f).fFamily),d;if(E?d=E.data:d=null,u.reset(),d&&d.shapes&&d.shapes.length&&(b=d.shapes[0].it,u.scale(t.finalSize/100,t.finalSize/100),_=this.createPathShape(u,b),c.setAttribute("d",_)),this.isMasked)this.innerElem.appendChild(c);else{if(this.innerElem.appendChild(m),d&&d.shapes){document.body.appendChild(C);var f=C.getBBox();C.setAttribute("width",f.width+2),C.setAttribute("height",f.height+2),C.setAttribute("viewBox",f.x-1+" "+(f.y-1)+" "+(f.width+2)+" "+(f.height+2));var p=C.style,v="translate("+(f.x-1)+"px,"+(f.y-1)+"px)";p.transform=v,p.webkitTransform=v,l[o].yOffset=f.y-1}else C.setAttribute("width",1),C.setAttribute("height",1);m.appendChild(C)}}else if(c.textContent=l[o].val,c.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),this.isMasked)this.innerElem.appendChild(c);else{this.innerElem.appendChild(m);var P=c.style,M="translate3d(0,"+-t.finalSize/1.2+"px,0)";P.transform=M,P.webkitTransform=M}this.isMasked?this.textSpans[g]=c:this.textSpans[g]=m,this.textSpans[g].style.display="block",this.textPaths[g]=c,g+=1}for(;g<this.textSpans.length;)this.textSpans[g].style.display="none",g+=1},HTextElement.prototype.renderInnerContent=function(){this.validateText();var t;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),t=this.svgElement.style;var e="translate("+-this.finalTransform.mProp.p.v[0]+"px,"+-this.finalTransform.mProp.p.v[1]+"px)";t.transform=e,t.webkitTransform=e}}if(this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag),!(!this.lettersChangedFlag&&!this.textAnimator.lettersChangedFlag)){var r,s,n=0,a=this.textAnimator.renderedLetters,o=this.textProperty.currentData.l;s=o.length;var h,l,c;for(r=0;r<s;r+=1)o[r].n?n+=1:(l=this.textSpans[r],c=this.textPaths[r],h=a[n],n+=1,h._mdf.m&&(this.isMasked?l.setAttribute("transform",h.m):(l.style.webkitTransform=h.m,l.style.transform=h.m)),l.style.opacity=h.o,h.sw&&h._mdf.sw&&c.setAttribute("stroke-width",h.sw),h.sc&&h._mdf.sc&&c.setAttribute("stroke",h.sc),h.fc&&h._mdf.fc&&(c.setAttribute("fill",h.fc),c.style.color=h.fc));if(this.innerElem.getBBox&&!this.hidden&&(this._isFirstFrame||this._mdf)){var m=this.innerElem.getBBox();this.currentBBox.w!==m.width&&(this.currentBBox.w=m.width,this.svgElement.setAttribute("width",m.width)),this.currentBBox.h!==m.height&&(this.currentBBox.h=m.height,this.svgElement.setAttribute("height",m.height));var C=1;if(this.currentBBox.w!==m.width+C*2||this.currentBBox.h!==m.height+C*2||this.currentBBox.x!==m.x-C||this.currentBBox.y!==m.y-C){this.currentBBox.w=m.width+C*2,this.currentBBox.h=m.height+C*2,this.currentBBox.x=m.x-C,this.currentBBox.y=m.y-C,this.svgElement.setAttribute("viewBox",this.currentBBox.x+" "+this.currentBBox.y+" "+this.currentBBox.w+" "+this.currentBBox.h),t=this.svgElement.style;var u="translate("+this.currentBBox.x+"px,"+this.currentBBox.y+"px)";t.transform=u,t.webkitTransform=u}}}};function HCameraElement(t,e,r){this.initFrame(),this.initBaseData(t,e,r),this.initHierarchy();var s=PropertyFactory.getProp;if(this.pe=s(this,t.pe,0,0,this),t.ks.p.s?(this.px=s(this,t.ks.p.x,1,0,this),this.py=s(this,t.ks.p.y,1,0,this),this.pz=s(this,t.ks.p.z,1,0,this)):this.p=s(this,t.ks.p,1,0,this),t.ks.a&&(this.a=s(this,t.ks.a,1,0,this)),t.ks.or.k.length&&t.ks.or.k[0].to){var n,a=t.ks.or.k.length;for(n=0;n<a;n+=1)t.ks.or.k[n].to=null,t.ks.or.k[n].ti=null}this.or=s(this,t.ks.or,1,degToRads,this),this.or.sh=!0,this.rx=s(this,t.ks.rx,0,degToRads,this),this.ry=s(this,t.ks.ry,0,degToRads,this),this.rz=s(this,t.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 t,e=this.comp.threeDElements.length,r,s,n;for(t=0;t<e;t+=1)if(r=this.comp.threeDElements[t],r.type==="3d"){s=r.perspectiveElem.style,n=r.container.style;var a=this.pe.v+"px",o="0px 0px 0px",h="matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1)";s.perspective=a,s.webkitPerspective=a,n.transformOrigin=o,n.mozTransformOrigin=o,n.webkitTransformOrigin=o,s.transform=h,s.webkitTransform=h}},HCameraElement.prototype.createElements=function(){},HCameraElement.prototype.hide=function(){},HCameraElement.prototype.renderFrame=function(){var t=this._isFirstFrame,e,r;if(this.hierarchy)for(r=this.hierarchy.length,e=0;e<r;e+=1)t=this.hierarchy[e].finalTransform.mProp._mdf||t;if(t||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(r=this.hierarchy.length-1,e=r;e>=0;e-=1){var s=this.hierarchy[e].finalTransform.mProp;this.mat.translate(-s.p.v[0],-s.p.v[1],s.p.v[2]),this.mat.rotateX(-s.or.v[0]).rotateY(-s.or.v[1]).rotateZ(s.or.v[2]),this.mat.rotateX(-s.rx.v).rotateY(-s.ry.v).rotateZ(s.rz.v),this.mat.scale(1/s.s.v[0],1/s.s.v[1],1/s.s.v[2]),this.mat.translate(s.a.v[0],s.a.v[1],s.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 n;this.p?n=[this.p.v[0]-this.a.v[0],this.p.v[1]-this.a.v[1],this.p.v[2]-this.a.v[2]]:n=[this.px.v-this.a.v[0],this.py.v-this.a.v[1],this.pz.v-this.a.v[2]];var a=Math.sqrt(Math.pow(n[0],2)+Math.pow(n[1],2)+Math.pow(n[2],2)),o=[n[0]/a,n[1]/a,n[2]/a],h=Math.sqrt(o[2]*o[2]+o[0]*o[0]),l=Math.atan2(o[1],h),c=Math.atan2(o[0],-o[2]);this.mat.rotateY(c).rotateX(-l)}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 m=!this._prevMat.equals(this.mat);if((m||this.pe._mdf)&&this.comp.threeDElements){r=this.comp.threeDElements.length;var C,u,b;for(e=0;e<r;e+=1)if(C=this.comp.threeDElements[e],C.type==="3d"){if(m){var _=this.mat.toCSS();b=C.container.style,b.transform=_,b.webkitTransform=_}this.pe._mdf&&(u=C.perspectiveElem.style,u.perspective=this.pe.v+"px",u.webkitPerspective=this.pe.v+"px")}this.mat.clone(this._prevMat)}}this._isFirstFrame=!1},HCameraElement.prototype.prepareFrame=function(t){this.prepareProperties(t,!0)},HCameraElement.prototype.destroy=function(){},HCameraElement.prototype.getBaseElement=function(){return null};function HImageElement(t,e,r){this.assetData=e.getAssetData(t.refId),this.initElement(t,e,r)}extendPrototype([BaseElement,TransformElement,HBaseElement,HSolidElement,HierarchyElement,FrameElement,RenderableElement],HImageElement),HImageElement.prototype.createContent=function(){var t=this.globalData.getAssetsPath(this.assetData),e=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",t),this.layerElement.appendChild(this.imageElem),this.baseElement.setAttribute("width",this.assetData.w),this.baseElement.setAttribute("height",this.assetData.h)):this.layerElement.appendChild(e),e.crossOrigin="anonymous",e.src=t,this.data.ln&&this.baseElement.setAttribute("id",this.data.ln)};function HybridRendererBase(t,e){this.animationItem=t,this.layers=null,this.renderedFrame=-1,this.renderConfig={className:e&&e.className||"",imagePreserveAspectRatio:e&&e.imagePreserveAspectRatio||"xMidYMid slice",hideOnTransparent:!(e&&e.hideOnTransparent===!1),filterSize:{width:e&&e.filterSize&&e.filterSize.width||"400%",height:e&&e.filterSize&&e.filterSize.height||"400%",x:e&&e.filterSize&&e.filterSize.x||"-100%",y:e&&e.filterSize&&e.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 t=this.pendingElements.pop();t.checkParenting()}},HybridRendererBase.prototype.appendElementInPos=function(t,e){var r=t.getBaseElement();if(r){var s=this.layers[e];if(!s.ddd||!this.supports3d)if(this.threeDElements)this.addTo3dContainer(r,e);else{for(var n=0,a,o,h;n<e;)this.elements[n]&&this.elements[n]!==!0&&this.elements[n].getBaseElement&&(o=this.elements[n],h=this.layers[n].ddd?this.getThreeDContainerByPos(n):o.getBaseElement(),a=h||a),n+=1;a?(!s.ddd||!this.supports3d)&&this.layerElement.insertBefore(r,a):(!s.ddd||!this.supports3d)&&this.layerElement.appendChild(r)}else this.addTo3dContainer(r,e)}},HybridRendererBase.prototype.createShape=function(t){return this.supports3d?new HShapeElement(t,this.globalData,this):new SVGShapeElement(t,this.globalData,this)},HybridRendererBase.prototype.createText=function(t){return this.supports3d?new HTextElement(t,this.globalData,this):new SVGTextLottieElement(t,this.globalData,this)},HybridRendererBase.prototype.createCamera=function(t){return this.camera=new HCameraElement(t,this.globalData,this),this.camera},HybridRendererBase.prototype.createImage=function(t){return this.supports3d?new HImageElement(t,this.globalData,this):new IImageElement(t,this.globalData,this)},HybridRendererBase.prototype.createSolid=function(t){return this.supports3d?new HSolidElement(t,this.globalData,this):new ISolidElement(t,this.globalData,this)},HybridRendererBase.prototype.createNull=SVGRenderer.prototype.createNull,HybridRendererBase.prototype.getThreeDContainerByPos=function(t){for(var e=0,r=this.threeDElements.length;e<r;){if(this.threeDElements[e].startPos<=t&&this.threeDElements[e].endPos>=t)return this.threeDElements[e].perspectiveElem;e+=1}return null},HybridRendererBase.prototype.createThreeDContainer=function(t,e){var r=createTag("div"),s,n;styleDiv(r);var a=createTag("div");if(styleDiv(a),e==="3d"){s=r.style,s.width=this.globalData.compSize.w+"px",s.height=this.globalData.compSize.h+"px";var o="50% 50%";s.webkitTransformOrigin=o,s.mozTransformOrigin=o,s.transformOrigin=o,n=a.style;var h="matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1)";n.transform=h,n.webkitTransform=h}r.appendChild(a);var l={container:a,perspectiveElem:r,startPos:t,endPos:t,type:e};return this.threeDElements.push(l),l},HybridRendererBase.prototype.build3dContainers=function(){var t,e=this.layers.length,r,s="";for(t=0;t<e;t+=1)this.layers[t].ddd&&this.layers[t].ty!==3?(s!=="3d"&&(s="3d",r=this.createThreeDContainer(t,"3d")),r.endPos=Math.max(r.endPos,t)):(s!=="2d"&&(s="2d",r=this.createThreeDContainer(t,"2d")),r.endPos=Math.max(r.endPos,t));for(e=this.threeDElements.length,t=e-1;t>=0;t-=1)this.resizerElem.appendChild(this.threeDElements[t].perspectiveElem)},HybridRendererBase.prototype.addTo3dContainer=function(t,e){for(var r=0,s=this.threeDElements.length;r<s;){if(e<=this.threeDElements[r].endPos){for(var n=this.threeDElements[r].startPos,a;n<e;)this.elements[n]&&this.elements[n].getBaseElement&&(a=this.elements[n].getBaseElement()),n+=1;a?this.threeDElements[r].container.insertBefore(t,a):this.threeDElements[r].container.appendChild(t);break}r+=1}},HybridRendererBase.prototype.configAnimation=function(t){var e=createTag("div"),r=this.animationItem.wrapper,s=e.style;s.width=t.w+"px",s.height=t.h+"px",this.resizerElem=e,styleDiv(e),s.transformStyle="flat",s.mozTransformStyle="flat",s.webkitTransformStyle="flat",this.renderConfig.className&&e.setAttribute("class",this.renderConfig.className),r.appendChild(e),s.overflow="hidden";var n=createNS("svg");n.setAttribute("width","1"),n.setAttribute("height","1"),styleDiv(n),this.resizerElem.appendChild(n);var a=createNS("defs");n.appendChild(a),this.data=t,this.setupGlobalData(t,n),this.globalData.defs=a,this.layers=t.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 t,e=this.layers?this.layers.length:0;for(t=0;t<e;t+=1)this.elements[t]&&this.elements[t].destroy&&this.elements[t].destroy();this.elements.length=0,this.destroyed=!0,this.animationItem=null},HybridRendererBase.prototype.updateContainerSize=function(){var t=this.animationItem.wrapper.offsetWidth,e=this.animationItem.wrapper.offsetHeight,r=t/e,s=this.globalData.compSize.w/this.globalData.compSize.h,n,a,o,h;s>r?(n=t/this.globalData.compSize.w,a=t/this.globalData.compSize.w,o=0,h=(e-this.globalData.compSize.h*(t/this.globalData.compSize.w))/2):(n=e/this.globalData.compSize.h,a=e/this.globalData.compSize.h,o=(t-this.globalData.compSize.w*(e/this.globalData.compSize.h))/2,h=0);var l=this.resizerElem.style;l.webkitTransform="matrix3d("+n+",0,0,0,0,"+a+",0,0,0,0,1,0,"+o+","+h+",0,1)",l.transform=l.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 t=this.globalData.compSize.w,e=this.globalData.compSize.h,r,s=this.threeDElements.length;for(r=0;r<s;r+=1){var n=this.threeDElements[r].perspectiveElem.style;n.webkitPerspective=Math.sqrt(Math.pow(t,2)+Math.pow(e,2))+"px",n.perspective=n.webkitPerspective}}},HybridRendererBase.prototype.searchExtraCompositions=function(t){var e,r=t.length,s=createTag("div");for(e=0;e<r;e+=1)if(t[e].xt){var n=this.createComp(t[e],s,this.globalData.comp,null);n.initExpressions(),this.globalData.projectInterface.registerComposition(n)}};function HCompElement(t,e,r){this.layers=t.layers,this.supports3d=!t.hasMask,this.completeLayers=!1,this.pendingElements=[],this.elements=this.layers?createSizedArray(this.layers.length):[],this.initElement(t,e,r),this.tm=t.tm?PropertyFactory.getProp(this,t.tm,0,e.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(t,e){for(var r=0,s;r<e;)this.elements[r]&&this.elements[r].getBaseElement&&(s=this.elements[r].getBaseElement()),r+=1;s?this.layerElement.insertBefore(t,s):this.layerElement.appendChild(t)},HCompElement.prototype.createComp=function(t){return this.supports3d?new HCompElement(t,this.globalData,this):new SVGCompElement(t,this.globalData,this)};function HybridRenderer(t,e){this.animationItem=t,this.layers=null,this.renderedFrame=-1,this.renderConfig={className:e&&e.className||"",imagePreserveAspectRatio:e&&e.imagePreserveAspectRatio||"xMidYMid slice",hideOnTransparent:!(e&&e.hideOnTransparent===!1),filterSize:{width:e&&e.filterSize&&e.filterSize.width||"400%",height:e&&e.filterSize&&e.filterSize.height||"400%",x:e&&e.filterSize&&e.filterSize.x||"-100%",y:e&&e.filterSize&&e.filterSize.y||"-100%"},runExpressions:!e||e.runExpressions===void 0||e.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(t){return this.supports3d?new HCompElement(t,this.globalData,this):new SVGCompElement(t,this.globalData,this)};var CompExpressionInterface=(function(){return function(t){function e(r){for(var s=0,n=t.layers.length;s<n;){if(t.layers[s].nm===r||t.layers[s].ind===r)return t.elements[s].layerInterface;s+=1}return null}return Object.defineProperty(e,"_name",{value:t.data.nm}),e.layer=e,e.pixelAspect=1,e.height=t.data.h||t.globalData.compSize.h,e.width=t.data.w||t.globalData.compSize.w,e.pixelAspect=1,e.frameDuration=1/t.globalData.frameRate,e.displayStartTime=0,e.numLayers=t.layers.length,e}})();function _typeof$2(t){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof$2=function(r){return typeof r}:_typeof$2=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},_typeof$2(t)}function seedRandom(t,e){var r=this,s=256,n=6,a=52,o="random",h=e.pow(s,n),l=e.pow(2,a),c=l*2,m=s-1,C;function u(p,v,P){var M=[];v=v===!0?{entropy:!0}:v||{};var w=E(g(v.entropy?[p,f(t)]:p===null?d():p,3),M),I=new b(M),B=function(){for(var L=I.g(n),F=h,O=0;L<l;)L=(L+O)*s,F*=s,O=I.g(1);for(;L>=c;)L/=2,F/=2,O>>>=1;return(L+O)/F};return B.int32=function(){return I.g(4)|0},B.quick=function(){return I.g(4)/4294967296},B.double=B,E(f(I.S),t),(v.pass||P||function(x,L,F,O){return O&&(O.S&&_(O,I),x.state=function(){return _(I,{})}),F?(e[o]=x,L):x})(B,w,"global"in v?v.global:this==e,v.state)}e["seed"+o]=u;function b(p){var v,P=p.length,M=this,w=0,I=M.i=M.j=0,B=M.S=[];for(P||(p=[P++]);w<s;)B[w]=w++;for(w=0;w<s;w++)B[w]=B[I=m&I+p[w%P]+(v=B[w])],B[I]=v;M.g=function(x){for(var L,F=0,O=M.i,$=M.j,D=M.S;x--;)L=D[O=m&O+1],F=F*s+D[m&(D[O]=D[$=m&$+L])+(D[$]=L)];return M.i=O,M.j=$,F}}function _(p,v){return v.i=p.i,v.j=p.j,v.S=p.S.slice(),v}function g(p,v){var P=[],M=_typeof$2(p),w;if(v&&M=="object")for(w in p)try{P.push(g(p[w],v-1))}catch{}return P.length?P:M=="string"?p:p+"\0"}function E(p,v){for(var P=p+"",M,w=0;w<P.length;)v[m&w]=m&(M^=v[m&w]*19)+P.charCodeAt(w++);return f(v)}function d(){try{var p=new Uint8Array(s);return(r.crypto||r.msCrypto).getRandomValues(p),f(p)}catch{var v=r.navigator,P=v&&v.plugins;return[+new Date,r,P,r.screen,f(t)]}}function f(p){return String.fromCharCode.apply(0,p)}E(e.random(),t)}function initialize$2(t){seedRandom([],t)}var propTypes={SHAPE:"shape"};function _typeof$1(t){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof$1=function(r){return typeof r}:_typeof$1=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},_typeof$1(t)}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(t){return t.constructor===Array||t.constructor===Float32Array}function isNumerable(t,e){return t==="number"||e instanceof Number||t==="boolean"||t==="string"}function $bm_neg(t){var e=_typeof$1(t);if(e==="number"||t instanceof Number||e==="boolean")return-t;if($bm_isInstanceOfArray(t)){var r,s=t.length,n=[];for(r=0;r<s;r+=1)n[r]=-t[r];return n}return t.propType?t.v:-t}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(t,e){var r=_typeof$1(t),s=_typeof$1(e);if(isNumerable(r,t)&&isNumerable(s,e)||r==="string"||s==="string")return t+e;if($bm_isInstanceOfArray(t)&&isNumerable(s,e))return t=t.slice(0),t[0]+=e,t;if(isNumerable(r,t)&&$bm_isInstanceOfArray(e))return e=e.slice(0),e[0]=t+e[0],e;if($bm_isInstanceOfArray(t)&&$bm_isInstanceOfArray(e)){for(var n=0,a=t.length,o=e.length,h=[];n<a||n<o;)(typeof t[n]=="number"||t[n]instanceof Number)&&(typeof e[n]=="number"||e[n]instanceof Number)?h[n]=t[n]+e[n]:h[n]=e[n]===void 0?t[n]:t[n]||e[n],n+=1;return h}return 0}var add=sum;function sub(t,e){var r=_typeof$1(t),s=_typeof$1(e);if(isNumerable(r,t)&&isNumerable(s,e))return r==="string"&&(t=parseInt(t,10)),s==="string"&&(e=parseInt(e,10)),t-e;if($bm_isInstanceOfArray(t)&&isNumerable(s,e))return t=t.slice(0),t[0]-=e,t;if(isNumerable(r,t)&&$bm_isInstanceOfArray(e))return e=e.slice(0),e[0]=t-e[0],e;if($bm_isInstanceOfArray(t)&&$bm_isInstanceOfArray(e)){for(var n=0,a=t.length,o=e.length,h=[];n<a||n<o;)(typeof t[n]=="number"||t[n]instanceof Number)&&(typeof e[n]=="number"||e[n]instanceof Number)?h[n]=t[n]-e[n]:h[n]=e[n]===void 0?t[n]:t[n]||e[n],n+=1;return h}return 0}function mul(t,e){var r=_typeof$1(t),s=_typeof$1(e),n;if(isNumerable(r,t)&&isNumerable(s,e))return t*e;var a,o;if($bm_isInstanceOfArray(t)&&isNumerable(s,e)){for(o=t.length,n=createTypedArray("float32",o),a=0;a<o;a+=1)n[a]=t[a]*e;return n}if(isNumerable(r,t)&&$bm_isInstanceOfArray(e)){for(o=e.length,n=createTypedArray("float32",o),a=0;a<o;a+=1)n[a]=t*e[a];return n}return 0}function div(t,e){var r=_typeof$1(t),s=_typeof$1(e),n;if(isNumerable(r,t)&&isNumerable(s,e))return t/e;var a,o;if($bm_isInstanceOfArray(t)&&isNumerable(s,e)){for(o=t.length,n=createTypedArray("float32",o),a=0;a<o;a+=1)n[a]=t[a]/e;return n}if(isNumerable(r,t)&&$bm_isInstanceOfArray(e)){for(o=e.length,n=createTypedArray("float32",o),a=0;a<o;a+=1)n[a]=t/e[a];return n}return 0}function mod(t,e){return typeof t=="string"&&(t=parseInt(t,10)),typeof e=="string"&&(e=parseInt(e,10)),t%e}var $bm_sum=sum,$bm_sub=sub,$bm_mul=mul,$bm_div=div,$bm_mod=mod;function clamp(t,e,r){if(e>r){var s=r;r=e,e=s}return Math.min(Math.max(t,e),r)}function radiansToDegrees(t){return t/degToRads}var radians_to_degrees=radiansToDegrees;function degreesToRadians(t){return t*degToRads}var degrees_to_radians=radiansToDegrees,helperLengthArray=[0,0,0,0,0,0];function length(t,e){if(typeof t=="number"||t instanceof Number)return e=e||0,Math.abs(t-e);e||(e=helperLengthArray);var r,s=Math.min(t.length,e.length),n=0;for(r=0;r<s;r+=1)n+=Math.pow(e[r]-t[r],2);return Math.sqrt(n)}function normalize(t){return div(t,length(t))}function rgbToHsl(t){var e=t[0],r=t[1],s=t[2],n=Math.max(e,r,s),a=Math.min(e,r,s),o,h,l=(n+a)/2;if(n===a)o=0,h=0;else{var c=n-a;switch(h=l>.5?c/(2-n-a):c/(n+a),n){case e:o=(r-s)/c+(r<s?6:0);break;case r:o=(s-e)/c+2;break;case s:o=(e-r)/c+4;break}o/=6}return[o,h,l,t[3]]}function hue2rgb(t,e,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?t+(e-t)*6*r:r<1/2?e:r<2/3?t+(e-t)*(2/3-r)*6:t}function hslToRgb(t){var e=t[0],r=t[1],s=t[2],n,a,o;if(r===0)n=s,o=s,a=s;else{var h=s<.5?s*(1+r):s+r-s*r,l=2*s-h;n=hue2rgb(l,h,e+1/3),a=hue2rgb(l,h,e),o=hue2rgb(l,h,e-1/3)}return[n,a,o,t[3]]}function linear(t,e,r,s,n){if((s===void 0||n===void 0)&&(s=e,n=r,e=0,r=1),r<e){var a=r;r=e,e=a}if(t<=e)return s;if(t>=r)return n;var o=r===e?0:(t-e)/(r-e);if(!s.length)return s+(n-s)*o;var h,l=s.length,c=createTypedArray("float32",l);for(h=0;h<l;h+=1)c[h]=s[h]+(n[h]-s[h])*o;return c}function random(t,e){if(e===void 0&&(t===void 0?(t=0,e=1):(e=t,t=void 0)),e.length){var r,s=e.length;t||(t=createTypedArray("float32",s));var n=createTypedArray("float32",s),a=BMMath.random();for(r=0;r<s;r+=1)n[r]=t[r]+a*(e[r]-t[r]);return n}t===void 0&&(t=0);var o=BMMath.random();return t+o*(e-t)}function createPath(t,e,r,s){var n,a=t.length,o=shapePool.newElement();o.setPathData(!!s,a);var h=[0,0],l,c;for(n=0;n<a;n+=1)l=e&&e[n]?e[n]:h,c=r&&r[n]?r[n]:h,o.setTripleAt(t[n][0],t[n][1],c[0]+t[n][0],c[1]+t[n][1],l[0]+t[n][0],l[1]+t[n][1],n,!0);return o}function initiateExpression(elem,data,property){function noOp(t){return t}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 t(e,r){var s,n,a=this.pv.length?this.pv.length:1,o=createTypedArray("float32",a);e=5;var h=Math.floor(time*e);for(s=0,n=0;s<h;){for(n=0;n<a;n+=1)o[n]+=-r+r*2*BMMath.random();s+=1}var l=time*e,c=l-Math.floor(l),m=createTypedArray("float32",a);if(a>1){for(n=0;n<a;n+=1)m[n]=this.pv[n]+o[n]+(-r+r*2*BMMath.random())*c;return m}return this.pv+o[0]+(-r+r*2*BMMath.random())*c}).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(t,e){return loopIn(t,e,!0)}function loopOutDuration(t,e){return loopOut(t,e,!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(t,e){var r=[e[0]-t[0],e[1]-t[1],e[2]-t[2]],s=Math.atan2(r[0],Math.sqrt(r[1]*r[1]+r[2]*r[2]))/degToRads,n=-Math.atan2(r[1],r[2])/degToRads;return[n,s,0]}function easeOut(t,e,r,s,n){return applyEase(easeOutBez,t,e,r,s,n)}function easeIn(t,e,r,s,n){return applyEase(easeInBez,t,e,r,s,n)}function ease(t,e,r,s,n){return applyEase(easeInOutBez,t,e,r,s,n)}function applyEase(t,e,r,s,n,a){n===void 0?(n=r,a=s):e=(e-r)/(s-r),e>1?e=1:e<0&&(e=0);var o=t(e);if($bm_isInstanceOfArray(n)){var h,l=n.length,c=createTypedArray("float32",l);for(h=0;h<l;h+=1)c[h]=(a[h]-n[h])*o+n[h];return c}return(a-n)*o+n}function nearestKey(t){var e,r=data.k.length,s,n;if(!data.k.length||typeof data.k[0]=="number")s=0,n=0;else if(s=-1,t*=elem.comp.globalData.frameRate,t<data.k[0].t)s=1,n=data.k[0].t;else{for(e=0;e<r-1;e+=1)if(t===data.k[e].t){s=e+1,n=data.k[e].t;break}else if(t>data.k[e].t&&t<data.k[e+1].t){t-data.k[e].t>data.k[e+1].t-t?(s=e+2,n=data.k[e+1].t):(s=e+1,n=data.k[e].t);break}s===-1&&(s=e+1,n=data.k[e].t)}var a={};return a.index=s,a.time=n/elem.comp.globalData.frameRate,a}function key(t){var e,r,s;if(!data.k.length||typeof data.k[0]=="number")throw new Error("The property has no keyframe at index "+t);t-=1,e={time:data.k[t].t/elem.comp.globalData.frameRate,value:[]};var n=Object.prototype.hasOwnProperty.call(data.k[t],"s")?data.k[t].s:data.k[t-1].e;for(s=n.length,r=0;r<s;r+=1)e[r]=n[r],e.value[r]=n[r];return e}function framesToTime(t,e){return e||(e=elem.comp.globalData.frameRate),t/e}function timeToFrames(t,e){return!t&&t!==0&&(t=time),e||(e=elem.comp.globalData.frameRate),t*e}function seedRandom(t){BMMath.seedrandom(randSeed+t)}function sourceRectAtTime(){return elem.sourceRectAtTime()}function substring(t,e){return typeof value=="string"?e===void 0?value.substring(t):value.substring(t,e):""}function substr(t,e){return typeof value=="string"?e===void 0?value.substr(t):value.substr(t,e):""}function posterizeTime(t){time=t===0?0:Math.floor(time*t)/t,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(t){return value=t,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 t={};t.initExpressions=e,t.resetFrame=ExpressionManager.resetFrame;function e(r){var s=0,n=[];function a(){s+=1}function o(){s-=1,s===0&&l()}function h(c){n.indexOf(c)===-1&&n.push(c)}function l(){var c,m=n.length;for(c=0;c<m;c+=1)n[c].release();n.length=0}r.renderer.compInterface=CompExpressionInterface(r.renderer),r.renderer.globalData.projectInterface.registerComposition(r.renderer),r.renderer.globalData.pushExpression=a,r.renderer.globalData.popExpression=o,r.renderer.globalData.registerExpressionProperty=h}return t})(),MaskManagerInterface=(function(){function t(r,s){this._mask=r,this._data=s}Object.defineProperty(t.prototype,"maskPath",{get:function(){return this._mask.prop.k&&this._mask.prop.getValue(),this._mask.prop}}),Object.defineProperty(t.prototype,"maskOpacity",{get:function(){return this._mask.op.k&&this._mask.op.getValue(),this._mask.op.v*100}});var e=function(s){var n=createSizedArray(s.viewData.length),a,o=s.viewData.length;for(a=0;a<o;a+=1)n[a]=new t(s.viewData[a],s.masksProperties[a]);var h=function(c){for(a=0;a<o;){if(s.masksProperties[a].nm===c)return n[a];a+=1}return null};return h};return e})(),ExpressionPropertyInterface=(function(){var t={pv:0,v:0,mult:1},e={pv:[0,0,0],v:[0,0,0],mult:1};function r(o,h,l){Object.defineProperty(o,"velocity",{get:function(){return h.getVelocityAtTime(h.comp.currentFrame)}}),o.numKeys=h.keyframes?h.keyframes.length:0,o.key=function(c){if(!o.numKeys)return 0;var m="";"s"in h.keyframes[c-1]?m=h.keyframes[c-1].s:"e"in h.keyframes[c-2]?m=h.keyframes[c-2].e:m=h.keyframes[c-2].s;var C=l==="unidimensional"?new Number(m):Object.assign({},m);return C.time=h.keyframes[c-1].t/h.elem.comp.globalData.frameRate,C.value=l==="unidimensional"?m[0]:m,C},o.valueAtTime=h.getValueAtTime,o.speedAtTime=h.getSpeedAtTime,o.velocityAtTime=h.getVelocityAtTime,o.propertyGroup=h.propertyGroup}function s(o){(!o||!("pv"in o))&&(o=t);var h=1/o.mult,l=o.pv*h,c=new Number(l);return c.value=l,r(c,o,"unidimensional"),function(){return o.k&&o.getValue(),l=o.v*h,c.value!==l&&(c=new Number(l),c.value=l,r(c,o,"unidimensional")),c}}function n(o){(!o||!("pv"in o))&&(o=e);var h=1/o.mult,l=o.data&&o.data.l||o.pv.length,c=createTypedArray("float32",l),m=createTypedArray("float32",l);return c.value=m,r(c,o,"multidimensional"),function(){o.k&&o.getValue();for(var C=0;C<l;C+=1)m[C]=o.v[C]*h,c[C]=m[C];return c}}function a(){return t}return function(o){return o?o.propType==="unidimensional"?s(o):n(o):a}})(),TransformExpressionInterface=(function(){return function(t){function e(o){switch(o){case"scale":case"Scale":case"ADBE Scale":case 6:return e.scale;case"rotation":case"Rotation":case"ADBE Rotation":case"ADBE Rotate Z":case 10:return e.rotation;case"ADBE Rotate X":return e.xRotation;case"ADBE Rotate Y":return e.yRotation;case"position":case"Position":case"ADBE Position":case 2:return e.position;case"ADBE Position_0":return e.xPosition;case"ADBE Position_1":return e.yPosition;case"ADBE Position_2":return e.zPosition;case"anchorPoint":case"AnchorPoint":case"Anchor Point":case"ADBE AnchorPoint":case 1:return e.anchorPoint;case"opacity":case"Opacity":case 11:return e.opacity;default:return null}}Object.defineProperty(e,"rotation",{get:ExpressionPropertyInterface(t.r||t.rz)}),Object.defineProperty(e,"zRotation",{get:ExpressionPropertyInterface(t.rz||t.r)}),Object.defineProperty(e,"xRotation",{get:ExpressionPropertyInterface(t.rx)}),Object.defineProperty(e,"yRotation",{get:ExpressionPropertyInterface(t.ry)}),Object.defineProperty(e,"scale",{get:ExpressionPropertyInterface(t.s)});var r,s,n,a;return t.p?a=ExpressionPropertyInterface(t.p):(r=ExpressionPropertyInterface(t.px),s=ExpressionPropertyInterface(t.py),t.pz&&(n=ExpressionPropertyInterface(t.pz))),Object.defineProperty(e,"position",{get:function(){return t.p?a():[r(),s(),n?n():0]}}),Object.defineProperty(e,"xPosition",{get:ExpressionPropertyInterface(t.px)}),Object.defineProperty(e,"yPosition",{get:ExpressionPropertyInterface(t.py)}),Object.defineProperty(e,"zPosition",{get:ExpressionPropertyInterface(t.pz)}),Object.defineProperty(e,"anchorPoint",{get:ExpressionPropertyInterface(t.a)}),Object.defineProperty(e,"opacity",{get:ExpressionPropertyInterface(t.o)}),Object.defineProperty(e,"skew",{get:ExpressionPropertyInterface(t.sk)}),Object.defineProperty(e,"skewAxis",{get:ExpressionPropertyInterface(t.sa)}),Object.defineProperty(e,"orientation",{get:ExpressionPropertyInterface(t.or)}),e}})(),LayerExpressionInterface=(function(){function t(c){var m=new Matrix;if(c!==void 0){var C=this._elem.finalTransform.mProp.getValueAtTime(c);C.clone(m)}else{var u=this._elem.finalTransform.mProp;u.applyToMatrix(m)}return m}function e(c,m){var C=this.getMatrix(m);return C.props[12]=0,C.props[13]=0,C.props[14]=0,this.applyPoint(C,c)}function r(c,m){var C=this.getMatrix(m);return this.applyPoint(C,c)}function s(c,m){var C=this.getMatrix(m);return C.props[12]=0,C.props[13]=0,C.props[14]=0,this.invertPoint(C,c)}function n(c,m){var C=this.getMatrix(m);return this.invertPoint(C,c)}function a(c,m){if(this._elem.hierarchy&&this._elem.hierarchy.length){var C,u=this._elem.hierarchy.length;for(C=0;C<u;C+=1)this._elem.hierarchy[C].finalTransform.mProp.applyToMatrix(c)}return c.applyToPointArray(m[0],m[1],m[2]||0)}function o(c,m){if(this._elem.hierarchy&&this._elem.hierarchy.length){var C,u=this._elem.hierarchy.length;for(C=0;C<u;C+=1)this._elem.hierarchy[C].finalTransform.mProp.applyToMatrix(c)}return c.inversePoint(m)}function h(c){var m=new Matrix;if(m.reset(),this._elem.finalTransform.mProp.applyToMatrix(m),this._elem.hierarchy&&this._elem.hierarchy.length){var C,u=this._elem.hierarchy.length;for(C=0;C<u;C+=1)this._elem.hierarchy[C].finalTransform.mProp.applyToMatrix(m);return m.inversePoint(c)}return m.inversePoint(c)}function l(){return[1,1,1,1]}return function(c){var m;function C(g){b.mask=new MaskManagerInterface(g,c)}function u(g){b.effect=g}function b(g){switch(g){case"ADBE Root Vectors Group":case"Contents":case 2:return b.shapeInterface;case 1:case 6:case"Transform":case"transform":case"ADBE Transform Group":return m;case 4:case"ADBE Effect Parade":case"effects":case"Effects":return b.effect;case"ADBE Text Properties":return b.textInterface;default:return null}}b.getMatrix=t,b.invertPoint=o,b.applyPoint=a,b.toWorld=r,b.toWorldVec=e,b.fromWorld=n,b.fromWorldVec=s,b.toComp=r,b.fromComp=h,b.sampleImage=l,b.sourceRectAtTime=c.sourceRectAtTime.bind(c),b._elem=c,m=TransformExpressionInterface(c.finalTransform.mProp);var _=getDescriptor(m,"anchorPoint");return Object.defineProperties(b,{hasParent:{get:function(){return c.hierarchy.length}},parent:{get:function(){return c.hierarchy[0].layerInterface}},rotation:getDescriptor(m,"rotation"),scale:getDescriptor(m,"scale"),position:getDescriptor(m,"position"),opacity:getDescriptor(m,"opacity"),anchorPoint:_,anchor_point:_,transform:{get:function(){return m}},active:{get:function(){return c.isInRange}}}),b.startTime=c.data.st,b.index=c.data.ind,b.source=c.data.refId,b.height=c.data.ty===0?c.data.h:100,b.width=c.data.ty===0?c.data.w:100,b.inPoint=c.data.ip/c.comp.globalData.frameRate,b.outPoint=c.data.op/c.comp.globalData.frameRate,b._name=c.data.nm,b.registerMaskInterface=C,b.registerEffectsInterface=u,b}})(),propertyGroupFactory=(function(){return function(t,e){return function(r){return r=r===void 0?1:r,r<=0?t:e(r-1)}}})(),PropertyInterface=(function(){return function(t,e){var r={_name:t};function s(n){return n=n===void 0?1:n,n<=0?r:e(n-1)}return s}})(),EffectsExpressionInterface=(function(){var t={createEffectsInterface:e};function e(n,a){if(n.effectsManager){var o=[],h=n.data.ef,l,c=n.effectsManager.effectElements.length;for(l=0;l<c;l+=1)o.push(r(h[l],n.effectsManager.effectElements[l],a,n));var m=n.data.ef||[],C=function(b){for(l=0,c=m.length;l<c;){if(b===m[l].nm||b===m[l].mn||b===m[l].ix)return o[l];l+=1}return null};return Object.defineProperty(C,"numProperties",{get:function(){return m.length}}),C}return null}function r(n,a,o,h){function l(b){for(var _=n.ef,g=0,E=_.length;g<E;){if(b===_[g].nm||b===_[g].mn||b===_[g].ix)return _[g].ty===5?m[g]:m[g]();g+=1}throw new Error}var c=propertyGroupFactory(l,o),m=[],C,u=n.ef.length;for(C=0;C<u;C+=1)n.ef[C].ty===5?m.push(r(n.ef[C],a.effectElements[C],a.effectElements[C].propertyGroup,h)):m.push(s(a.effectElements[C],n.ef[C].ty,h,c));return n.mn==="ADBE Color Control"&&Object.defineProperty(l,"color",{get:function(){return m[0]()}}),Object.defineProperties(l,{numProperties:{get:function(){return n.np}},_name:{value:n.nm},propertyGroup:{value:c}}),l.enabled=n.en!==0,l.active=l.enabled,l}function s(n,a,o,h){var l=ExpressionPropertyInterface(n.p);function c(){return a===10?o.comp.compInterface(n.p.v):l()}return n.p.setGroupProperty&&n.p.setGroupProperty(PropertyInterface("",h)),c}return t})(),ShapePathInterface=(function(){return function(e,r,s){var n=r.sh;function a(h){return h==="Shape"||h==="shape"||h==="Path"||h==="path"||h==="ADBE Vector Shape"||h===2?a.path:null}var o=propertyGroupFactory(a,s);return n.setGroupProperty(PropertyInterface("Path",o)),Object.defineProperties(a,{path:{get:function(){return n.k&&n.getValue(),n}},shape:{get:function(){return n.k&&n.getValue(),n}},_name:{value:e.nm},ix:{value:e.ix},propertyIndex:{value:e.ix},mn:{value:e.mn},propertyGroup:{value:s}}),a}})(),ShapeExpressionInterface=(function(){function t(_,g,E){var d=[],f,p=_?_.length:0;for(f=0;f<p;f+=1)_[f].ty==="gr"?d.push(r(_[f],g[f],E)):_[f].ty==="fl"?d.push(s(_[f],g[f],E)):_[f].ty==="st"?d.push(o(_[f],g[f],E)):_[f].ty==="tm"?d.push(h(_[f],g[f],E)):_[f].ty==="tr"||(_[f].ty==="el"?d.push(c(_[f],g[f],E)):_[f].ty==="sr"?d.push(m(_[f],g[f],E)):_[f].ty==="sh"?d.push(ShapePathInterface(_[f],g[f],E)):_[f].ty==="rc"?d.push(C(_[f],g[f],E)):_[f].ty==="rd"?d.push(u(_[f],g[f],E)):_[f].ty==="rp"?d.push(b(_[f],g[f],E)):_[f].ty==="gf"?d.push(n(_[f],g[f],E)):d.push(a(_[f],g[f])));return d}function e(_,g,E){var d,f=function(P){for(var M=0,w=d.length;M<w;){if(d[M]._name===P||d[M].mn===P||d[M].propertyIndex===P||d[M].ix===P||d[M].ind===P)return d[M];M+=1}return typeof P=="number"?d[P-1]:null};f.propertyGroup=propertyGroupFactory(f,E),d=t(_.it,g.it,f.propertyGroup),f.numProperties=d.length;var p=l(_.it[_.it.length-1],g.it[g.it.length-1],f.propertyGroup);return f.transform=p,f.propertyIndex=_.cix,f._name=_.nm,f}function r(_,g,E){var d=function(P){switch(P){case"ADBE Vectors Group":case"Contents":case 2:return d.content;default:return d.transform}};d.propertyGroup=propertyGroupFactory(d,E);var f=e(_,g,d.propertyGroup),p=l(_.it[_.it.length-1],g.it[g.it.length-1],d.propertyGroup);return d.content=f,d.transform=p,Object.defineProperty(d,"_name",{get:function(){return _.nm}}),d.numProperties=_.np,d.propertyIndex=_.ix,d.nm=_.nm,d.mn=_.mn,d}function s(_,g,E){function d(f){return f==="Color"||f==="color"?d.color:f==="Opacity"||f==="opacity"?d.opacity:null}return Object.defineProperties(d,{color:{get:ExpressionPropertyInterface(g.c)},opacity:{get:ExpressionPropertyInterface(g.o)},_name:{value:_.nm},mn:{value:_.mn}}),g.c.setGroupProperty(PropertyInterface("Color",E)),g.o.setGroupProperty(PropertyInterface("Opacity",E)),d}function n(_,g,E){function d(f){return f==="Start Point"||f==="start point"?d.startPoint:f==="End Point"||f==="end point"?d.endPoint:f==="Opacity"||f==="opacity"?d.opacity:null}return Object.defineProperties(d,{startPoint:{get:ExpressionPropertyInterface(g.s)},endPoint:{get:ExpressionPropertyInterface(g.e)},opacity:{get:ExpressionPropertyInterface(g.o)},type:{get:function(){return"a"}},_name:{value:_.nm},mn:{value:_.mn}}),g.s.setGroupProperty(PropertyInterface("Start Point",E)),g.e.setGroupProperty(PropertyInterface("End Point",E)),g.o.setGroupProperty(PropertyInterface("Opacity",E)),d}function a(){function _(){return null}return _}function o(_,g,E){var d=propertyGroupFactory(w,E),f=propertyGroupFactory(M,d);function p(I){Object.defineProperty(M,_.d[I].nm,{get:ExpressionPropertyInterface(g.d.dataProps[I].p)})}var v,P=_.d?_.d.length:0,M={};for(v=0;v<P;v+=1)p(v),g.d.dataProps[v].p.setGroupProperty(f);function w(I){return I==="Color"||I==="color"?w.color:I==="Opacity"||I==="opacity"?w.opacity:I==="Stroke Width"||I==="stroke width"?w.strokeWidth:null}return Object.defineProperties(w,{color:{get:ExpressionPropertyInterface(g.c)},opacity:{get:ExpressionPropertyInterface(g.o)},strokeWidth:{get:ExpressionPropertyInterface(g.w)},dash:{get:function(){return M}},_name:{value:_.nm},mn:{value:_.mn}}),g.c.setGroupProperty(PropertyInterface("Color",d)),g.o.setGroupProperty(PropertyInterface("Opacity",d)),g.w.setGroupProperty(PropertyInterface("Stroke Width",d)),w}function h(_,g,E){function d(p){return p===_.e.ix||p==="End"||p==="end"?d.end:p===_.s.ix?d.start:p===_.o.ix?d.offset:null}var f=propertyGroupFactory(d,E);return d.propertyIndex=_.ix,g.s.setGroupProperty(PropertyInterface("Start",f)),g.e.setGroupProperty(PropertyInterface("End",f)),g.o.setGroupProperty(PropertyInterface("Offset",f)),d.propertyIndex=_.ix,d.propertyGroup=E,Object.defineProperties(d,{start:{get:ExpressionPropertyInterface(g.s)},end:{get:ExpressionPropertyInterface(g.e)},offset:{get:ExpressionPropertyInterface(g.o)},_name:{value:_.nm}}),d.mn=_.mn,d}function l(_,g,E){function d(p){return _.a.ix===p||p==="Anchor Point"?d.anchorPoint:_.o.ix===p||p==="Opacity"?d.opacity:_.p.ix===p||p==="Position"?d.position:_.r.ix===p||p==="Rotation"||p==="ADBE Vector Rotation"?d.rotation:_.s.ix===p||p==="Scale"?d.scale:_.sk&&_.sk.ix===p||p==="Skew"?d.skew:_.sa&&_.sa.ix===p||p==="Skew Axis"?d.skewAxis:null}var f=propertyGroupFactory(d,E);return g.transform.mProps.o.setGroupProperty(PropertyInterface("Opacity",f)),g.transform.mProps.p.setGroupProperty(PropertyInterface("Position",f)),g.transform.mProps.a.setGroupProperty(PropertyInterface("Anchor Point",f)),g.transform.mProps.s.setGroupProperty(PropertyInterface("Scale",f)),g.transform.mProps.r.setGroupProperty(PropertyInterface("Rotation",f)),g.transform.mProps.sk&&(g.transform.mProps.sk.setGroupProperty(PropertyInterface("Skew",f)),g.transform.mProps.sa.setGroupProperty(PropertyInterface("Skew Angle",f))),g.transform.op.setGroupProperty(PropertyInterface("Opacity",f)),Object.defineProperties(d,{opacity:{get:ExpressionPropertyInterface(g.transform.mProps.o)},position:{get:ExpressionPropertyInterface(g.transform.mProps.p)},anchorPoint:{get:ExpressionPropertyInterface(g.transform.mProps.a)},scale:{get:ExpressionPropertyInterface(g.transform.mProps.s)},rotation:{get:ExpressionPropertyInterface(g.transform.mProps.r)},skew:{get:ExpressionPropertyInterface(g.transform.mProps.sk)},skewAxis:{get:ExpressionPropertyInterface(g.transform.mProps.sa)},_name:{value:_.nm}}),d.ty="tr",d.mn=_.mn,d.propertyGroup=E,d}function c(_,g,E){function d(v){return _.p.ix===v?d.position:_.s.ix===v?d.size:null}var f=propertyGroupFactory(d,E);d.propertyIndex=_.ix;var p=g.sh.ty==="tm"?g.sh.prop:g.sh;return p.s.setGroupProperty(PropertyInterface("Size",f)),p.p.setGroupProperty(PropertyInterface("Position",f)),Object.defineProperties(d,{size:{get:ExpressionPropertyInterface(p.s)},position:{get:ExpressionPropertyInterface(p.p)},_name:{value:_.nm}}),d.mn=_.mn,d}function m(_,g,E){function d(v){return _.p.ix===v?d.position:_.r.ix===v?d.rotation:_.pt.ix===v?d.points:_.or.ix===v||v==="ADBE Vector Star Outer Radius"?d.outerRadius:_.os.ix===v?d.outerRoundness:_.ir&&(_.ir.ix===v||v==="ADBE Vector Star Inner Radius")?d.innerRadius:_.is&&_.is.ix===v?d.innerRoundness:null}var f=propertyGroupFactory(d,E),p=g.sh.ty==="tm"?g.sh.prop:g.sh;return d.propertyIndex=_.ix,p.or.setGroupProperty(PropertyInterface("Outer Radius",f)),p.os.setGroupProperty(PropertyInterface("Outer Roundness",f)),p.pt.setGroupProperty(PropertyInterface("Points",f)),p.p.setGroupProperty(PropertyInterface("Position",f)),p.r.setGroupProperty(PropertyInterface("Rotation",f)),_.ir&&(p.ir.setGroupProperty(PropertyInterface("Inner Radius",f)),p.is.setGroupProperty(PropertyInterface("Inner Roundness",f))),Object.defineProperties(d,{position:{get:ExpressionPropertyInterface(p.p)},rotation:{get:ExpressionPropertyInterface(p.r)},points:{get:ExpressionPropertyInterface(p.pt)},outerRadius:{get:ExpressionPropertyInterface(p.or)},outerRoundness:{get:ExpressionPropertyInterface(p.os)},innerRadius:{get:ExpressionPropertyInterface(p.ir)},innerRoundness:{get:ExpressionPropertyInterface(p.is)},_name:{value:_.nm}}),d.mn=_.mn,d}function C(_,g,E){function d(v){return _.p.ix===v?d.position:_.r.ix===v?d.roundness:_.s.ix===v||v==="Size"||v==="ADBE Vector Rect Size"?d.size:null}var f=propertyGroupFactory(d,E),p=g.sh.ty==="tm"?g.sh.prop:g.sh;return d.propertyIndex=_.ix,p.p.setGroupProperty(PropertyInterface("Position",f)),p.s.setGroupProperty(PropertyInterface("Size",f)),p.r.setGroupProperty(PropertyInterface("Rotation",f)),Object.defineProperties(d,{position:{get:ExpressionPropertyInterface(p.p)},roundness:{get:ExpressionPropertyInterface(p.r)},size:{get:ExpressionPropertyInterface(p.s)},_name:{value:_.nm}}),d.mn=_.mn,d}function u(_,g,E){function d(v){return _.r.ix===v||v==="Round Corners 1"?d.radius:null}var f=propertyGroupFactory(d,E),p=g;return d.propertyIndex=_.ix,p.rd.setGroupProperty(PropertyInterface("Radius",f)),Object.defineProperties(d,{radius:{get:ExpressionPropertyInterface(p.rd)},_name:{value:_.nm}}),d.mn=_.mn,d}function b(_,g,E){function d(v){return _.c.ix===v||v==="Copies"?d.copies:_.o.ix===v||v==="Offset"?d.offset:null}var f=propertyGroupFactory(d,E),p=g;return d.propertyIndex=_.ix,p.c.setGroupProperty(PropertyInterface("Copies",f)),p.o.setGroupProperty(PropertyInterface("Offset",f)),Object.defineProperties(d,{copies:{get:ExpressionPropertyInterface(p.c)},offset:{get:ExpressionPropertyInterface(p.o)},_name:{value:_.nm}}),d.mn=_.mn,d}return function(_,g,E){var d;function f(v){if(typeof v=="number")return v=v===void 0?1:v,v===0?E:d[v-1];for(var P=0,M=d.length;P<M;){if(d[P]._name===v)return d[P];P+=1}return null}function p(){return E}return f.propertyGroup=propertyGroupFactory(f,p),d=t(_,g,f.propertyGroup),f.numProperties=d.length,f._name="Contents",f}})(),TextExpressionInterface=(function(){return function(t){var e;function r(s){switch(s){case"ADBE Text Document":return r.sourceText;default:return null}}return Object.defineProperty(r,"sourceText",{get:function(){t.textProperty.getValue();var n=t.textProperty.currentData.t;return(!e||n!==e.value)&&(e=new String(n),e.value=n||new String(n),Object.defineProperty(e,"style",{get:function(){return{fillColor:t.textProperty.currentData.fc}}})),e}}),r}})();function _typeof(t){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof=function(r){return typeof r}:_typeof=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},_typeof(t)}var FootageInterface=(function(){var t=function(s){var n="",a=s.getFootageData();function o(){return n="",a=s.getFootageData(),h}function h(l){if(a[l])return n=l,a=a[l],_typeof(a)==="object"?h:a;var c=l.indexOf(n);if(c!==-1){var m=parseInt(l.substr(c+n.length),10);return a=a[m],_typeof(a)==="object"?h:a}return""}return o},e=function(s){function n(a){return a==="Outline"?n.outlineInterface():null}return n._name="Outline",n.outlineInterface=t(s),n};return function(r){function s(n){return n==="Data"?s.dataInterface:null}return s._name="Data",s.dataInterface=e(r),s}})(),interfaces={layer:LayerExpressionInterface,effects:EffectsExpressionInterface,comp:CompExpressionInterface,shape:ShapeExpressionInterface,text:TextExpressionInterface,footage:FootageInterface};function getInterface(t){return interfaces[t]||null}var expressionHelpers=(function(){function t(o,h,l){h.x&&(l.k=!0,l.x=!0,l.initiateExpression=ExpressionManager.initiateExpression,l.effectsSequence.push(l.initiateExpression(o,h,l).bind(l)))}function e(o){return o*=this.elem.globalData.frameRate,o-=this.offsetTime,o!==this._cachingAtTime.lastFrame&&(this._cachingAtTime.lastIndex=this._cachingAtTime.lastFrame<o?this._cachingAtTime.lastIndex:0,this._cachingAtTime.value=this.interpolateValue(o,this._cachingAtTime),this._cachingAtTime.lastFrame=o),this._cachingAtTime.value}function r(o){var h=-.01,l=this.getValueAtTime(o),c=this.getValueAtTime(o+h),m=0;if(l.length){var C;for(C=0;C<l.length;C+=1)m+=Math.pow(c[C]-l[C],2);m=Math.sqrt(m)*100}else m=0;return m}function s(o){if(this.vel!==void 0)return this.vel;var h=-.001,l=this.getValueAtTime(o),c=this.getValueAtTime(o+h),m;if(l.length){m=createTypedArray("float32",l.length);var C;for(C=0;C<l.length;C+=1)m[C]=(c[C]-l[C])/h}else m=(c-l)/h;return m}function n(){return this.pv}function a(o){this.propertyGroup=o}return{searchExpressions:t,getSpeedAtTime:r,getVelocityAtTime:s,getValueAtTime:e,getStaticValueAtTime:n,setGroupProperty:a}})();function addPropertyDecorator(){function t(u,b,_){if(!this.k||!this.keyframes)return this.pv;u=u?u.toLowerCase():"";var g=this.comp.renderedFrame,E=this.keyframes,d=E[E.length-1].t;if(g<=d)return this.pv;var f,p;_?(b?f=Math.abs(d-this.elem.comp.globalData.frameRate*b):f=Math.max(0,d-this.elem.data.ip),p=d-f):((!b||b>E.length-1)&&(b=E.length-1),p=E[E.length-1-b].t,f=d-p);var v,P,M;if(u==="pingpong"){var w=Math.floor((g-p)/f);if(w%2!==0)return this.getValueAtTime((f-(g-p)%f+p)/this.comp.globalData.frameRate,0)}else if(u==="offset"){var I=this.getValueAtTime(p/this.comp.globalData.frameRate,0),B=this.getValueAtTime(d/this.comp.globalData.frameRate,0),x=this.getValueAtTime(((g-p)%f+p)/this.comp.globalData.frameRate,0),L=Math.floor((g-p)/f);if(this.pv.length){for(M=new Array(I.length),P=M.length,v=0;v<P;v+=1)M[v]=(B[v]-I[v])*L+x[v];return M}return(B-I)*L+x}else if(u==="continue"){var F=this.getValueAtTime(d/this.comp.globalData.frameRate,0),O=this.getValueAtTime((d-.001)/this.comp.globalData.frameRate,0);if(this.pv.length){for(M=new Array(F.length),P=M.length,v=0;v<P;v+=1)M[v]=F[v]+(F[v]-O[v])*((g-d)/this.comp.globalData.frameRate)/5e-4;return M}return F+(F-O)*((g-d)/.001)}return this.getValueAtTime(((g-p)%f+p)/this.comp.globalData.frameRate,0)}function e(u,b,_){if(!this.k)return this.pv;u=u?u.toLowerCase():"";var g=this.comp.renderedFrame,E=this.keyframes,d=E[0].t;if(g>=d)return this.pv;var f,p;_?(b?f=Math.abs(this.elem.comp.globalData.frameRate*b):f=Math.max(0,this.elem.data.op-d),p=d+f):((!b||b>E.length-1)&&(b=E.length-1),p=E[b].t,f=p-d);var v,P,M;if(u==="pingpong"){var w=Math.floor((d-g)/f);if(w%2===0)return this.getValueAtTime(((d-g)%f+d)/this.comp.globalData.frameRate,0)}else if(u==="offset"){var I=this.getValueAtTime(d/this.comp.globalData.frameRate,0),B=this.getValueAtTime(p/this.comp.globalData.frameRate,0),x=this.getValueAtTime((f-(d-g)%f+d)/this.comp.globalData.frameRate,0),L=Math.floor((d-g)/f)+1;if(this.pv.length){for(M=new Array(I.length),P=M.length,v=0;v<P;v+=1)M[v]=x[v]-(B[v]-I[v])*L;return M}return x-(B-I)*L}else if(u==="continue"){var F=this.getValueAtTime(d/this.comp.globalData.frameRate,0),O=this.getValueAtTime((d+.001)/this.comp.globalData.frameRate,0);if(this.pv.length){for(M=new Array(F.length),P=M.length,v=0;v<P;v+=1)M[v]=F[v]+(F[v]-O[v])*(d-g)/.001;return M}return F+(F-O)*(d-g)/.001}return this.getValueAtTime((f-((d-g)%f+d))/this.comp.globalData.frameRate,0)}function r(u,b){if(!this.k)return this.pv;if(u=(u||.4)*.5,b=Math.floor(b||5),b<=1)return this.pv;var _=this.comp.renderedFrame/this.comp.globalData.frameRate,g=_-u,E=_+u,d=b>1?(E-g)/(b-1):1,f=0,p=0,v;this.pv.length?v=createTypedArray("float32",this.pv.length):v=0;for(var P;f<b;){if(P=this.getValueAtTime(g+f*d),this.pv.length)for(p=0;p<this.pv.length;p+=1)v[p]+=P[p];else v+=P;f+=1}if(this.pv.length)for(p=0;p<this.pv.length;p+=1)v[p]/=b;else v/=b;return v}function s(u){this._transformCachingAtTime||(this._transformCachingAtTime={v:new Matrix});var b=this._transformCachingAtTime.v;if(b.cloneFromProps(this.pre.props),this.appliedTransformations<1){var _=this.a.getValueAtTime(u);b.translate(-_[0]*this.a.mult,-_[1]*this.a.mult,_[2]*this.a.mult)}if(this.appliedTransformations<2){var g=this.s.getValueAtTime(u);b.scale(g[0]*this.s.mult,g[1]*this.s.mult,g[2]*this.s.mult)}if(this.sk&&this.appliedTransformations<3){var E=this.sk.getValueAtTime(u),d=this.sa.getValueAtTime(u);b.skewFromAxis(-E*this.sk.mult,d*this.sa.mult)}if(this.r&&this.appliedTransformations<4){var f=this.r.getValueAtTime(u);b.rotate(-f*this.r.mult)}else if(!this.r&&this.appliedTransformations<4){var p=this.rz.getValueAtTime(u),v=this.ry.getValueAtTime(u),P=this.rx.getValueAtTime(u),M=this.or.getValueAtTime(u);b.rotateZ(-p*this.rz.mult).rotateY(v*this.ry.mult).rotateX(P*this.rx.mult).rotateZ(-M[2]*this.or.mult).rotateY(M[1]*this.or.mult).rotateX(M[0]*this.or.mult)}if(this.data.p&&this.data.p.s){var w=this.px.getValueAtTime(u),I=this.py.getValueAtTime(u);if(this.data.p.z){var B=this.pz.getValueAtTime(u);b.translate(w*this.px.mult,I*this.py.mult,-B*this.pz.mult)}else b.translate(w*this.px.mult,I*this.py.mult,0)}else{var x=this.p.getValueAtTime(u);b.translate(x[0]*this.p.mult,x[1]*this.p.mult,-x[2]*this.p.mult)}return b}function n(){return this.v.clone(new Matrix)}var a=TransformPropertyFactory.getTransformProperty;TransformPropertyFactory.getTransformProperty=function(u,b,_){var g=a(u,b,_);return g.dynamicProperties.length?g.getValueAtTime=s.bind(g):g.getValueAtTime=n.bind(g),g.setGroupProperty=expressionHelpers.setGroupProperty,g};var o=PropertyFactory.getProp;PropertyFactory.getProp=function(u,b,_,g,E){var d=o(u,b,_,g,E);d.kf?d.getValueAtTime=expressionHelpers.getValueAtTime.bind(d):d.getValueAtTime=expressionHelpers.getStaticValueAtTime.bind(d),d.setGroupProperty=expressionHelpers.setGroupProperty,d.loopOut=t,d.loopIn=e,d.smooth=r,d.getVelocityAtTime=expressionHelpers.getVelocityAtTime.bind(d),d.getSpeedAtTime=expressionHelpers.getSpeedAtTime.bind(d),d.numKeys=b.a===1?b.k.length:0,d.propertyIndex=b.ix;var f=0;return _!==0&&(f=createTypedArray("float32",b.a===1?b.k[0].s.length:b.k.length)),d._cachingAtTime={lastFrame:initialDefaultFrame,lastIndex:0,value:f},expressionHelpers.searchExpressions(u,b,d),d.k&&E.addDynamicProperty(d),d};function h(u){return this._cachingAtTime||(this._cachingAtTime={shapeValue:shapePool.clone(this.pv),lastIndex:0,lastTime:initialDefaultFrame}),u*=this.elem.globalData.frameRate,u-=this.offsetTime,u!==this._cachingAtTime.lastTime&&(this._cachingAtTime.lastIndex=this._cachingAtTime.lastTime<u?this._caching.lastIndex:0,this._cachingAtTime.lastTime=u,this.interpolateShape(u,this._cachingAtTime.shapeValue,this._cachingAtTime)),this._cachingAtTime.shapeValue}var l=ShapePropertyFactory.getConstructorFunction(),c=ShapePropertyFactory.getKeyframedConstructorFunction();function m(){}m.prototype={vertices:function(b,_){this.k&&this.getValue();var g=this.v;_!==void 0&&(g=this.getValueAtTime(_,0));var E,d=g._length,f=g[b],p=g.v,v=createSizedArray(d);for(E=0;E<d;E+=1)b==="i"||b==="o"?v[E]=[f[E][0]-p[E][0],f[E][1]-p[E][1]]:v[E]=[f[E][0],f[E][1]];return v},points:function(b){return this.vertices("v",b)},inTangents:function(b){return this.vertices("i",b)},outTangents:function(b){return this.vertices("o",b)},isClosed:function(){return this.v.c},pointOnPath:function(b,_){var g=this.v;_!==void 0&&(g=this.getValueAtTime(_,0)),this._segmentsLength||(this._segmentsLength=bez.getSegmentsLength(g));for(var E=this._segmentsLength,d=E.lengths,f=E.totalLength*b,p=0,v=d.length,P=0,M;p<v;){if(P+d[p].addedLength>f){var w=p,I=g.c&&p===v-1?0:p+1,B=(f-P)/d[p].addedLength;M=bez.getPointInSegment(g.v[w],g.v[I],g.o[w],g.i[I],B,d[p]);break}else P+=d[p].addedLength;p+=1}return M||(M=g.c?[g.v[0][0],g.v[0][1]]:[g.v[g._length-1][0],g.v[g._length-1][1]]),M},vectorOnPath:function(b,_,g){b==1?b=this.v.c:b==0&&(b=.999);var E=this.pointOnPath(b,_),d=this.pointOnPath(b+.001,_),f=d[0]-E[0],p=d[1]-E[1],v=Math.sqrt(Math.pow(f,2)+Math.pow(p,2));if(v===0)return[0,0];var P=g==="tangent"?[f/v,p/v]:[-p/v,f/v];return P},tangentOnPath:function(b,_){return this.vectorOnPath(b,_,"tangent")},normalOnPath:function(b,_){return this.vectorOnPath(b,_,"normal")},setGroupProperty:expressionHelpers.setGroupProperty,getValueAtTime:expressionHelpers.getStaticValueAtTime},extendPrototype([m],l),extendPrototype([m],c),c.prototype.getValueAtTime=h,c.prototype.initiateExpression=ExpressionManager.initiateExpression;var C=ShapePropertyFactory.getShapeProp;ShapePropertyFactory.getShapeProp=function(u,b,_,g,E){var d=C(u,b,_,g,E);return d.propertyIndex=b.ix,d.lock=!1,_===3?expressionHelpers.searchExpressions(u,b.pt,d):_===4&&expressionHelpers.searchExpressions(u,b.ks,d),d.k&&u.addDynamicProperty(d),d}}function initialize$1(){addPropertyDecorator()}function addDecorator(){function t(){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(e,r){var s=this.calculateExpression(r);if(e.t!==s){var n={};return this.copyData(n,e),n.t=s.toString(),n.__complete=!1,n}return e},TextProperty.prototype.searchProperty=function(){var e=this.searchKeyframes(),r=this.searchExpressions();return this.kf=e||r,this.kf},TextProperty.prototype.searchExpressions=t}function initialize(){addDecorator()}function SVGComposableEffect(){}SVGComposableEffect.prototype={createMergeNode:function t(e,r){var s=createNS("feMerge");s.setAttribute("result",e);var n,a;for(a=0;a<r.length;a+=1)n=createNS("feMergeNode"),n.setAttribute("in",r[a]),s.appendChild(n),s.appendChild(n);return s}};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(t,e,r,s,n){this.filterManager=e;var a=createNS("feColorMatrix");a.setAttribute("type","matrix"),a.setAttribute("color-interpolation-filters","linearRGB"),a.setAttribute("values",linearFilterValue+" 1 0"),this.linearFilter=a,a.setAttribute("result",s+"_tint_1"),t.appendChild(a),a=createNS("feColorMatrix"),a.setAttribute("type","matrix"),a.setAttribute("color-interpolation-filters","sRGB"),a.setAttribute("values","1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"),a.setAttribute("result",s+"_tint_2"),t.appendChild(a),this.matrixFilter=a;var o=this.createMergeNode(s,[n,s+"_tint_1",s+"_tint_2"]);t.appendChild(o)}extendPrototype([SVGComposableEffect],SVGTintFilter),SVGTintFilter.prototype.renderFrame=function(t){if(t||this.filterManager._mdf){var e=this.filterManager.effectElements[0].p.v,r=this.filterManager.effectElements[1].p.v,s=this.filterManager.effectElements[2].p.v/100;this.linearFilter.setAttribute("values",linearFilterValue+" "+s+" 0"),this.matrixFilter.setAttribute("values",r[0]-e[0]+" 0 0 0 "+e[0]+" "+(r[1]-e[1])+" 0 0 0 "+e[1]+" "+(r[2]-e[2])+" 0 0 0 "+e[2]+" 0 0 0 1 0")}};function SVGFillFilter(t,e,r,s){this.filterManager=e;var n=createNS("feColorMatrix");n.setAttribute("type","matrix"),n.setAttribute("color-interpolation-filters","sRGB"),n.setAttribute("values","1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"),n.setAttribute("result",s),t.appendChild(n),this.matrixFilter=n}SVGFillFilter.prototype.renderFrame=function(t){if(t||this.filterManager._mdf){var e=this.filterManager.effectElements[2].p.v,r=this.filterManager.effectElements[6].p.v;this.matrixFilter.setAttribute("values","0 0 0 0 "+e[0]+" 0 0 0 0 "+e[1]+" 0 0 0 0 "+e[2]+" 0 0 0 "+r+" 0")}};function SVGStrokeEffect(t,e,r){this.initialized=!1,this.filterManager=e,this.elem=r,this.paths=[]}SVGStrokeEffect.prototype.initialize=function(){var t=this.elem.layerElement.children||this.elem.layerElement.childNodes,e,r,s,n;for(this.filterManager.effectElements[1].p.v===1?(n=this.elem.maskManager.masksProperties.length,s=0):(s=this.filterManager.effectElements[0].p.v-1,n=s+1),r=createNS("g"),r.setAttribute("fill","none"),r.setAttribute("stroke-linecap","round"),r.setAttribute("stroke-dashoffset",1),s;s<n;s+=1)e=createNS("path"),r.appendChild(e),this.paths.push({p:e,m:s});if(this.filterManager.effectElements[10].p.v===3){var a=createNS("mask"),o=createElementID();a.setAttribute("id",o),a.setAttribute("mask-type","alpha"),a.appendChild(r),this.elem.globalData.defs.appendChild(a);var h=createNS("g");for(h.setAttribute("mask","url("+getLocationHref()+"#"+o+")");t[0];)h.appendChild(t[0]);this.elem.layerElement.appendChild(h),this.masker=a,r.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(t=this.elem.layerElement.children||this.elem.layerElement.childNodes;t.length;)this.elem.layerElement.removeChild(t[0]);this.elem.layerElement.appendChild(r),this.elem.layerElement.removeAttribute("mask"),r.setAttribute("stroke","#fff")}this.initialized=!0,this.pathMasker=r},SVGStrokeEffect.prototype.renderFrame=function(t){this.initialized||this.initialize();var e,r=this.paths.length,s,n;for(e=0;e<r;e+=1)if(this.paths[e].m!==-1&&(s=this.elem.maskManager.viewData[this.paths[e].m],n=this.paths[e].p,(t||this.filterManager._mdf||s.prop._mdf)&&n.setAttribute("d",s.lastPath),t||this.filterManager.effectElements[9].p._mdf||this.filterManager.effectElements[4].p._mdf||this.filterManager.effectElements[7].p._mdf||this.filterManager.effectElements[8].p._mdf||s.prop._mdf)){var a;if(this.filterManager.effectElements[7].p.v!==0||this.filterManager.effectElements[8].p.v!==100){var o=Math.min(this.filterManager.effectElements[7].p.v,this.filterManager.effectElements[8].p.v)*.01,h=Math.max(this.filterManager.effectElements[7].p.v,this.filterManager.effectElements[8].p.v)*.01,l=n.getTotalLength();a="0 0 0 "+l*o+" ";var c=l*(h-o),m=1+this.filterManager.effectElements[4].p.v*2*this.filterManager.effectElements[9].p.v*.01,C=Math.floor(c/m),u;for(u=0;u<C;u+=1)a+="1 "+this.filterManager.effectElements[4].p.v*2*this.filterManager.effectElements[9].p.v*.01+" ";a+="0 "+l*10+" 0 0"}else a="1 "+this.filterManager.effectElements[4].p.v*2*this.filterManager.effectElements[9].p.v*.01;n.setAttribute("stroke-dasharray",a)}if((t||this.filterManager.effectElements[4].p._mdf)&&this.pathMasker.setAttribute("stroke-width",this.filterManager.effectElements[4].p.v*2),(t||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)&&(t||this.filterManager.effectElements[3].p._mdf)){var b=this.filterManager.effectElements[3].p.v;this.pathMasker.setAttribute("stroke","rgb("+bmFloor(b[0]*255)+","+bmFloor(b[1]*255)+","+bmFloor(b[2]*255)+")")}};function SVGTritoneFilter(t,e,r,s){this.filterManager=e;var n=createNS("feColorMatrix");n.setAttribute("type","matrix"),n.setAttribute("color-interpolation-filters","linearRGB"),n.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"),t.appendChild(n);var a=createNS("feComponentTransfer");a.setAttribute("color-interpolation-filters","sRGB"),a.setAttribute("result",s),this.matrixFilter=a;var o=createNS("feFuncR");o.setAttribute("type","table"),a.appendChild(o),this.feFuncR=o;var h=createNS("feFuncG");h.setAttribute("type","table"),a.appendChild(h),this.feFuncG=h;var l=createNS("feFuncB");l.setAttribute("type","table"),a.appendChild(l),this.feFuncB=l,t.appendChild(a)}SVGTritoneFilter.prototype.renderFrame=function(t){if(t||this.filterManager._mdf){var e=this.filterManager.effectElements[0].p.v,r=this.filterManager.effectElements[1].p.v,s=this.filterManager.effectElements[2].p.v,n=s[0]+" "+r[0]+" "+e[0],a=s[1]+" "+r[1]+" "+e[1],o=s[2]+" "+r[2]+" "+e[2];this.feFuncR.setAttribute("tableValues",n),this.feFuncG.setAttribute("tableValues",a),this.feFuncB.setAttribute("tableValues",o)}};function SVGProLevelsFilter(t,e,r,s){this.filterManager=e;var n=this.filterManager.effectElements,a=createNS("feComponentTransfer");(n[10].p.k||n[10].p.v!==0||n[11].p.k||n[11].p.v!==1||n[12].p.k||n[12].p.v!==1||n[13].p.k||n[13].p.v!==0||n[14].p.k||n[14].p.v!==1)&&(this.feFuncR=this.createFeFunc("feFuncR",a)),(n[17].p.k||n[17].p.v!==0||n[18].p.k||n[18].p.v!==1||n[19].p.k||n[19].p.v!==1||n[20].p.k||n[20].p.v!==0||n[21].p.k||n[21].p.v!==1)&&(this.feFuncG=this.createFeFunc("feFuncG",a)),(n[24].p.k||n[24].p.v!==0||n[25].p.k||n[25].p.v!==1||n[26].p.k||n[26].p.v!==1||n[27].p.k||n[27].p.v!==0||n[28].p.k||n[28].p.v!==1)&&(this.feFuncB=this.createFeFunc("feFuncB",a)),(n[31].p.k||n[31].p.v!==0||n[32].p.k||n[32].p.v!==1||n[33].p.k||n[33].p.v!==1||n[34].p.k||n[34].p.v!==0||n[35].p.k||n[35].p.v!==1)&&(this.feFuncA=this.createFeFunc("feFuncA",a)),(this.feFuncR||this.feFuncG||this.feFuncB||this.feFuncA)&&(a.setAttribute("color-interpolation-filters","sRGB"),t.appendChild(a)),(n[3].p.k||n[3].p.v!==0||n[4].p.k||n[4].p.v!==1||n[5].p.k||n[5].p.v!==1||n[6].p.k||n[6].p.v!==0||n[7].p.k||n[7].p.v!==1)&&(a=createNS("feComponentTransfer"),a.setAttribute("color-interpolation-filters","sRGB"),a.setAttribute("result",s),t.appendChild(a),this.feFuncRComposed=this.createFeFunc("feFuncR",a),this.feFuncGComposed=this.createFeFunc("feFuncG",a),this.feFuncBComposed=this.createFeFunc("feFuncB",a))}SVGProLevelsFilter.prototype.createFeFunc=function(t,e){var r=createNS(t);return r.setAttribute("type","table"),e.appendChild(r),r},SVGProLevelsFilter.prototype.getTableValue=function(t,e,r,s,n){for(var a=0,o=256,h,l=Math.min(t,e),c=Math.max(t,e),m=Array.call(null,{length:o}),C,u=0,b=n-s,_=e-t;a<=256;)h=a/256,h<=l?C=_<0?n:s:h>=c?C=_<0?s:n:C=s+b*Math.pow((h-t)/_,1/r),m[u]=C,u+=1,a+=256/(o-1);return m.join(" ")},SVGProLevelsFilter.prototype.renderFrame=function(t){if(t||this.filterManager._mdf){var e,r=this.filterManager.effectElements;this.feFuncRComposed&&(t||r[3].p._mdf||r[4].p._mdf||r[5].p._mdf||r[6].p._mdf||r[7].p._mdf)&&(e=this.getTableValue(r[3].p.v,r[4].p.v,r[5].p.v,r[6].p.v,r[7].p.v),this.feFuncRComposed.setAttribute("tableValues",e),this.feFuncGComposed.setAttribute("tableValues",e),this.feFuncBComposed.setAttribute("tableValues",e)),this.feFuncR&&(t||r[10].p._mdf||r[11].p._mdf||r[12].p._mdf||r[13].p._mdf||r[14].p._mdf)&&(e=this.getTableValue(r[10].p.v,r[11].p.v,r[12].p.v,r[13].p.v,r[14].p.v),this.feFuncR.setAttribute("tableValues",e)),this.feFuncG&&(t||r[17].p._mdf||r[18].p._mdf||r[19].p._mdf||r[20].p._mdf||r[21].p._mdf)&&(e=this.getTableValue(r[17].p.v,r[18].p.v,r[19].p.v,r[20].p.v,r[21].p.v),this.feFuncG.setAttribute("tableValues",e)),this.feFuncB&&(t||r[24].p._mdf||r[25].p._mdf||r[26].p._mdf||r[27].p._mdf||r[28].p._mdf)&&(e=this.getTableValue(r[24].p.v,r[25].p.v,r[26].p.v,r[27].p.v,r[28].p.v),this.feFuncB.setAttribute("tableValues",e)),this.feFuncA&&(t||r[31].p._mdf||r[32].p._mdf||r[33].p._mdf||r[34].p._mdf||r[35].p._mdf)&&(e=this.getTableValue(r[31].p.v,r[32].p.v,r[33].p.v,r[34].p.v,r[35].p.v),this.feFuncA.setAttribute("tableValues",e))}};function SVGDropShadowEffect(t,e,r,s,n){var a=e.container.globalData.renderConfig.filterSize,o=e.data.fs||a;t.setAttribute("x",o.x||a.x),t.setAttribute("y",o.y||a.y),t.setAttribute("width",o.width||a.width),t.setAttribute("height",o.height||a.height),this.filterManager=e;var h=createNS("feGaussianBlur");h.setAttribute("in","SourceAlpha"),h.setAttribute("result",s+"_drop_shadow_1"),h.setAttribute("stdDeviation","0"),this.feGaussianBlur=h,t.appendChild(h);var l=createNS("feOffset");l.setAttribute("dx","25"),l.setAttribute("dy","0"),l.setAttribute("in",s+"_drop_shadow_1"),l.setAttribute("result",s+"_drop_shadow_2"),this.feOff
35set=l,t.appendChild(l);var c=createNS("feFlood");c.setAttribute("flood-color","#00ff00"),c.setAttribute("flood-opacity","1"),c.setAttribute("result",s+"_drop_shadow_3"),this.feFlood=c,t.appendChild(c);var m=createNS("feComposite");m.setAttribute("in",s+"_drop_shadow_3"),m.setAttribute("in2",s+"_drop_shadow_2"),m.setAttribute("operator","in"),m.setAttribute("result",s+"_drop_shadow_4"),t.appendChild(m);var C=this.createMergeNode(s,[s+"_drop_shadow_4",n]);t.appendChild(C)}extendPrototype([SVGComposableEffect],SVGDropShadowEffect),SVGDropShadowEffect.prototype.renderFrame=function(t){if(t||this.filterManager._mdf){if((t||this.filterManager.effectElements[4].p._mdf)&&this.feGaussianBlur.setAttribute("stdDeviation",this.filterManager.effectElements[4].p.v/4),t||this.filterManager.effectElements[0].p._mdf){var e=this.filterManager.effectElements[0].p.v;this.feFlood.setAttribute("flood-color",rgbToHex(Math.round(e[0]*255),Math.round(e[1]*255),Math.round(e[2]*255)))}if((t||this.filterManager.effectElements[1].p._mdf)&&this.feFlood.setAttribute("flood-opacity",this.filterManager.effectElements[1].p.v/255),t||this.filterManager.effectElements[2].p._mdf||this.filterManager.effectElements[3].p._mdf){var r=this.filterManager.effectElements[3].p.v,s=(this.filterManager.effectElements[2].p.v-90)*degToRads,n=r*Math.cos(s),a=r*Math.sin(s);this.feOffset.setAttribute("dx",n),this.feOffset.setAttribute("dy",a)}}};var _svgMatteSymbols=[];function SVGMatte3Effect(t,e,r){this.initialized=!1,this.filterManager=e,this.filterElem=t,this.elem=r,r.matteElement=createNS("g"),r.matteElement.appendChild(r.layerElement),r.matteElement.appendChild(r.transformedElement),r.baseElement=r.matteElement}SVGMatte3Effect.prototype.findSymbol=function(t){for(var e=0,r=_svgMatteSymbols.length;e<r;){if(_svgMatteSymbols[e]===t)return _svgMatteSymbols[e];e+=1}return null},SVGMatte3Effect.prototype.replaceInParent=function(t,e){var r=t.layerElement.parentNode;if(r){for(var s=r.children,n=0,a=s.length;n<a&&s[n]!==t.layerElement;)n+=1;var o;n<=a-2&&(o=s[n+1]);var h=createNS("use");h.setAttribute("href","#"+e),o?r.insertBefore(h,o):r.appendChild(h)}},SVGMatte3Effect.prototype.setElementAsMask=function(t,e){if(!this.findSymbol(e)){var r=createElementID(),s=createNS("mask");s.setAttribute("id",e.layerId),s.setAttribute("mask-type","alpha"),_svgMatteSymbols.push(e);var n=t.globalData.defs;n.appendChild(s);var a=createNS("symbol");a.setAttribute("id",r),this.replaceInParent(e,r),a.appendChild(e.layerElement),n.appendChild(a);var o=createNS("use");o.setAttribute("href","#"+r),s.appendChild(o),e.data.hd=!1,e.show()}t.setMatte(e.layerId)},SVGMatte3Effect.prototype.initialize=function(){for(var t=this.filterManager.effectElements[0].p.v,e=this.elem.comp.elements,r=0,s=e.length;r<s;)e[r]&&e[r].data.ind===t&&this.setElementAsMask(this.elem,e[r]),r+=1;this.initialized=!0},SVGMatte3Effect.prototype.renderFrame=function(){this.initialized||this.initialize()};function SVGGaussianBlurEffect(t,e,r,s){t.setAttribute("x","-100%"),t.setAttribute("y","-100%"),t.setAttribute("width","300%"),t.setAttribute("height","300%"),this.filterManager=e;var n=createNS("feGaussianBlur");n.setAttribute("result",s),t.appendChild(n),this.feGaussianBlur=n}SVGGaussianBlurEffect.prototype.renderFrame=function(t){if(t||this.filterManager._mdf){var e=.3,r=this.filterManager.effectElements[0].p.v*e,s=this.filterManager.effectElements[1].p.v,n=s==3?0:r,a=s==2?0:r;this.feGaussianBlur.setAttribute("stdDeviation",n+" "+a);var o=this.filterManager.effectElements[2].p.v==1?"wrap":"duplicate";this.feGaussianBlur.setAttribute("edgeMode",o)}};function TransformEffect(){}TransformEffect.prototype.init=function(t){this.effectsManager=t,this.type=effectTypes.TRANSFORM_EFFECT,this.matrix=new Matrix,this.opacity=-1,this._mdf=!1,this._opMdf=!1},TransformEffect.prototype.renderFrame=function(t){if(this._opMdf=!1,this._mdf=!1,t||this.effectsManager._mdf){var e=this.effectsManager.effectElements,r=e[0].p.v,s=e[1].p.v,n=e[2].p.v===1,a=e[3].p.v,o=n?a:e[4].p.v,h=e[5].p.v,l=e[6].p.v,c=e[7].p.v;this.matrix.reset(),this.matrix.translate(-r[0],-r[1],r[2]),this.matrix.scale(o*.01,a*.01,1),this.matrix.rotate(-c*degToRads),this.matrix.skewFromAxis(-h*degToRads,(l+90)*degToRads),this.matrix.translate(s[0],s[1],0),this._mdf=!0,this.opacity!==e[8].p.v&&(this.opacity=e[8].p.v,this._opMdf=!0)}};function SVGTransformEffect(t,e){this.init(e)}extendPrototype([TransformEffect],SVGTransformEffect);function CVTransformEffect(t){this.init(t)}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$2,lottie$2.exports)),lottie$2.exports}var lottieExports=requireLottie();const lottie=getDefaultExportFromCjs(lottieExports),_sfc_main$6=defineComponent({name:"Animation",data(){return{animation:null}},props:{path:{type:String,required:!0},loop:{type:Boolean,default:!0},autoplay:{type:Boolean,default:!0},initialSegment:{type:Array}},mounted(){this.animation=lottie.loadAnimation({container:this.$refs.container,renderer:"svg",loop:this.loop,autoplay:this.autoplay,path:this.path,initialSegment:this.initialSegment})},methods:{playSegment(t,e){this.animation&&this.animation.playSegments(t,e)},setSpeed(t){this.animation&&this.animation.setSpeed(t)}}});var _sfc_render$6=function t(){var e=this,r=e._self._c;return e._self._setupProxy,r("div",{ref:"container",staticClass:"animation"})},_sfc_staticRenderFns$6=[],__component__$6=normalizeComponent(_sfc_main$6,_sfc_render$6,_sfc_staticRenderFns$6);const Animation=__component__$6.exports;var MatchingViewVariantsEnum=(t=>(t.BLUE="matching-modal__view--blue",t.RED="matching-modal__view--red",t.GREEN="matching-modal__view--green",t.YELLOW="matching-modal__view--yellow",t))(MatchingViewVariantsEnum||{});const _sfc_main$5=defineComponent({components:{Paragraph,Button,Picture,NavigationDots,IconButton,Animation},props:{totalSlides:{type:Number,required:!1},slideIndex:{type:Number,required:!1},animationPath:{type:String,required:!0},animationSegment:{type:Array,required:!0},animationLoop:{type:Boolean,default:!1},title:{type:String,required:!0},subtitle:{type:String},buttonText:{type:String},closeButtonDisplay:{type:Boolean,default:!1},closeButtonText:{type:String,default:""},variant:{type:String,required:!1,default:MatchingViewVariantsEnum.BLUE}},data(){return{closeIcon:{type:IconTypeValues.CLOSE,text:"ui.close"}}},watch:{animationSegment:{deep:!0,immediate:!0,handler(){const t=this.getAnimation();t&&this.totalSlides&&t.playSegment(this.animationSegment,!0)}}},computed:{className(){return["matching-modal__body","matching-modal__view",this.variant]}},methods:{getAnimation(){return this.$refs.animation}
35,close(){useCareersSiteStore().displayMatchingModal=!1}},mounted(){this.getAnimation().setSpeed(.7)}});var _sfc_render$5=function t(){var e=this,r=e._self._c;return e._self._setupProxy,r("div",{class:e.className},[e.closeButtonDisplay?r("IconButton",e._b({staticClass:"close-button",attrs:{label:e.closeButtonText},on:{click:e.close}},"IconButton",{leftIcon:{...e.closeIcon,text:e.$t(e.closeIcon.text)}},!1)):e._e(),r("div",{staticClass:"matching-upper-row"},[r("Animation",{ref:"animation",attrs:{path:e.animationPath,"initial-segment":e.animationSegment,loop:e.animationLoop}})],1),r("div",{staticClass:"matching-lower-row"},[r("Paragraph",{key:e.title,staticClass:"matching-modal__title",domProps:{innerHTML:e._s(e.title)}}),r("Paragraph",{staticClass:"matching-modal__subtitle"},[e._v(" "+e._s(e.subtitle)+" ")]),e.buttonText?r("Button",{staticClass:"action-button",on:{click:function(s){return e.$emit("click")}}},[e._v(" "+e._s(e.buttonText)+" ")]):e._e(),e._t("default"),e.totalSlides?r("NavigationDots",{attrs:{total:e.totalSlides,index:e.slideIndex+1}}):e._e()],2)],1)},_sfc_staticRenderFns$5=[],__component__$5=normalizeComponent(_sfc_main$5,_sfc_render$5,_sfc_staticRenderFns$5);const MatchingView=__component__$5.exports,_sfc_main$4=defineComponent({components:{Paragraph,Button,Picture,MatchingView},props:{count:{type:Number,required:!0}},data(){return{animationSegment:[360,540]}},computed:{title(){const t=this.$tc("ui.matching.results.title",this.count);return highlightDigitsInText(t)},buttonText(){const t=this.count>0?"ui.matching.results.action":"ui.spontaneous-application_button";return this.$t(t)}},methods:{showResult(){const t=this.count>0?"view-results":"view-spontaneous";this.$emit(t)}}});var _sfc_render$4=function t(){var e=this,r=e._self._c;return e._self._setupProxy,r("MatchingView",{staticClass:"matching-modal__results-view",attrs:{title:e.title,count:e.count,subtitle:e.$t("ui.matching.results.subtitle"),"button-text":e.buttonText,"close-button-display":!0,"animation-path":"/animations/loader-validate-matching.json","animation-segment":e.animationSegment},on:{click:e.showResult}})},_sfc_staticRenderFns$4=[],__component__$4=normalizeComponent(_sfc_main$4,_sfc_render$4,_sfc_staticRenderFns$4);const ResultsView=__component__$4.exports,_sfc_main$3=defineComponent({components:{MatchingView},data(){return{animationSegment:[115,247]}},methods:{getInputElement(){return this.$refs.inputFile},triggerFileInputClick(){this.getInputElement().click()},onFileChange(){const t=this.getInputElement();t.files&&this.$emit("upload",t.files[0])}}});var _sfc_render$3=function t(){var e=this,r=e._self._c;return e._self._setupProxy,r("MatchingView",{staticClass:"matching-modal__results-view",attrs:{title:e.$t("ui.matching.upload-error"),subtitle:e.$t("ui.matching.upload-error-subtitle"),"button-text":e.$t("ui.matching.upload"),"close-button-display":!0,"animation-path":"/animations/loader-failure-matching.json","animation-segment":e.animationSegment},on:{click:e.triggerFileInputClick}},[r("input",{directives:[{name:"show",rawName:"v-show",value:!1,expression:"false"}],ref:"inputFile",attrs:{type:"file"},on:{change:e.onFileChange}})])},_sfc_staticRenderFns$3=[],__component__$3=normalizeComponent(_sfc_main$3,_sfc_render$3,_sf
35c_staticRenderFns$3);const ErrorView=__component__$3.exports;var MatchingModalViewTypeEnum=(t=>(t.UPLOAD_VIEW="UPLOAD",t.RESULTS_VIEW="RESULTS",t.LOADING_VIEW="LOADING",t.ERROR_VIEW="ERROR",t))(MatchingModalViewTypeEnum||{});async function getMatchingJobAds(t,e){try{return await useNuxtApp().$commonApi.getMatchingJobAds(t,e.base64File,e.fileName)}catch(r){logAndThrowError(r)}}async function saveCV(t){try{const e=new IndexedDBService;return await e.openDatabase(),await e.put(MATCHING_CV_STORAGE_KEY,t,MATCHING_CV_STORAGE_MAX_AGE),e.closeDatabase(),!0}catch(e){return logError(e),!1}}function readFileAsBase64(t){return new Promise((e,r)=>{const s=new FileReader;s.onload=()=>e(s.result),s.onerror=r,s.readAsDataURL(t)})}const settings=[{totalSlides:MATCHING_LOADING_SLIDES_NUMBER,slideIndex:0,title:"ui.matching.loading.upload",closeButtonDisplay:!0,closeButtonText:"",animationPath:"/animations/loader-validate-matching.json",animationSegment:[0,89]},{totalSlides:MATCHING_LOADING_SLIDES_NUMBER,slideIndex:1,title:"ui.matching.loading.background",closeButtonDisplay:!0,closeButtonText:"",variant:MatchingViewVariantsEnum.YELLOW,animationPath:"/animations/loader-validate-matching.json",animationSegment:[90,179]},{totalSlides:MATCHING_LOADING_SLIDES_NUMBER,slideIndex:2,title:"ui.matching.loading.skills",closeButtonDisplay:!0,closeButtonText:"",variant:MatchingViewVariantsEnum.RED,animationPath:"/animations/loader-validate-matching.json",animationSegment:[180,268]},{totalSlides:MATCHING_LOADING_SLIDES_NUMBER,slideIndex:3,title:"ui.matching.loading.offers",closeButtonDisplay:!0,closeButtonText:"",variant:MatchingViewVariantsEnum.GREEN,animationPath:"/animations/loader-validate-matching.json",animationSegment:[269,350]}],translatableKeys=["title","closeButtonText"],loadingViewSlidesSettings={settings,translatableKeys},_sfc_main$2=defineComponent({components:{MatchingView},data(){return{slides:[],currentSlide:0}},created(){this.slides=translateArray(this,loadingViewSlidesSettings)},mounted(){this.changeSlides()},methods:{changeSlides(){this.slides.forEach((t,e)=>{delay$1(()=>{this.currentSlide=e},MATCHING_LOADING_SLIDE_DELAY*e)})}}});var _sfc_render$2=function t(){var e=this,r=e._self._c;return e._self._setupProxy,r("MatchingView",e._b({attrs:{"animation-loop":!0}},"MatchingView",e.slides[e.currentSlide],!1))},_sfc_staticRenderFns$2=[],__component__$2=normalizeComponent(_sfc_main$2,_sfc_render$2,_sfc_staticRenderFns$2);const LoadingView=__component__$2.exports,_sfc_main$1=defineComponent({name:"MatchingModal",components:{LoadingView,UploadView,ResultsView,ErrorView,Modal,IconButton,Paragraph,ButtonCheckbox,DropBox},mixins:[BaseModalMixin,BreakpointsMixin],data(){return{currentView:MatchingModalViewTypeEnum.UPLOAD_VIEW,loadingStartedAt:0,uploadedCV:{base64File:"",fileName:""},closeModalDelayMobile:300,closeIcon:{type:IconTypeValues.CLOSE,text:"ui.close"},fadingIn:!1,displayHeader:!0,matchingJobAdsIds:[],matchingJobAdsCount:0}},computed:{careersSite(){return useCareersSiteStore().careersSite},normalizedSearchParameters(){return useJobAdsStore().normalizedSearchParameters},normalisedFilterParameters(){return useJobAdsStore().normalisedFilterParameters},className(){return{"matching-modal":!0,"matching-modal--fade-in":this.isMobile&&this.fadingIn&&this.currentView===MatchingModalViewTypeEnum.UPLOAD_VIEW,"matching-modal--fade-out":this.isMobile&&!this.fadingIn&&this.currentView===MatchingModalViewTypeEnum.UPLOAD_VIEW,"matching-modal--full-screen":this.isMobile&&this.currentView!==MatchingModalViewTypeEnum.UPLOAD_VIEW}},displayUploadView(){return this.currentView===MatchingModalViewTypeEnum.UPLOAD_VIEW},displayResultsView(){return this.currentView===MatchingModalViewTypeEnum.RESULTS_VIEW},displayLoadingView(){return this.currentView===MatchingModalViewTypeEnum.LOADING_VIEW},displayErrorView(){return this.currentView===MatchingModalViewTypeEnum.ERROR_VIEW}},mounted(){this.fadingIn=!0,this.setDisplayHeader(),window.addEventListener("resize",this.resetDeviceSizeRelatedProperties)},methods:{selfClose(){this.fadingIn=!1;const t=this.isMobile?this.closeModalDelayMobile:0;setTimeout(()=>
35{useCareersSiteStore().displayMatchingModal=!1},t)},async onFileUpload(t){try{this.changeToLoadingView();const e=this.careersSite.domain_name;this.uploadedCV={base64File:await readFileAsBase64(t),fileName:t.name},this.matchingJobAdsIds=await getMatchingJobAds(e,this.uploadedCV),this.matchingJobAdsCount=await this.getMatchingJobAdsCount(),await this.changeToResultsView()}catch{this.changeToErrorView()}},async viewResults(){const t=useJobAdsStore();t.matchingJobAdsIds=this.matchingJobAdsIds,t.inMatchingMode=!0,await saveCV(this.uploadedCV),this.selfClose(),this.$emit("view-results")},viewSpontaneous(){this.selfClose(),this.$emit("view-spontaneous")},fixAccessibility(){this.$refs.modal.setFocusableEls()},async changeToResultsView(){await this.waitLoadingViewToEndAnimation(),this.currentView=MatchingModalViewTypeEnum.RESULTS_VIEW,this.setDisplayHeader()},changeToLoadingView(){this.currentView=MatchingModalViewTypeEnum.LOADING_VIEW,this.setDisplayHeader(),this.loadingStartedAt=now()},changeToErrorView(){this.currentView=MatchingModalViewTypeEnum.ERROR_VIEW,this.setDisplayHeader()},async waitLoadingViewToEndAnimation(){const e=now()-this.loadingStartedAt-MATCHING_LOADING_ANIMATION_DURATION;e<0&&await delay(Math.abs(e))},resetDeviceSizeRelatedProperties(){this.setDisplayHeader()},setDisplayHeader(){this.displayHeader=window.innerWidth>=MIN_WIDTH_TABLET||this.currentView===MatchingModalViewTypeEnum.UPLOAD_VIEW},async getMatchingJobAdsCount(){if(isEmpty(this.matchingJobAdsIds))return 0;const t=this.careersSite.domain_name,e={...this.normalisedFilterParameters};return e[FiltersValue.JobAdsIdsFilter]=this.matchingJobAdsIds,(await getJobAds(this.$nuxt,{domainName:t,searchParameters:this.normalizedSearchParameters,filters:e,locale:makeFnfDatabaseLocale(this.$i18n.locale),limit:0})).count}}});var _sfc_render$1=function t(){var e=this,r=e._self._c;return e._self._setupProxy,r("portal",{attrs:{to:"overlay"}},[r("div",{staticClass:"overlay",on:{click:function(s){return s.target!==s.currentTarget?null:e.selfClose.apply(null,arguments)}}},[r("Modal",{ref:"modal",class:e.className,attrs:{"display-footer":!1,"display-header":e.displayHeader},on:{"close-modal":e.selfClose},scopedSlots:e._u([{key:"header",fn:function(){return[r("div",{staticClass:"modal__header"},[r("span",{staticClass:"modal__header-title"},[e._v(e._s(e.$t("ui.match-my-cv")))]),r("IconButton",e._b({ref:"closeModal",staticClass:"modal__close-button",attrs:{tabindex:"0",variant:"link"},on:{click:e.selfClose,keyup:function(s){return!s.type.indexOf("key")&&e._k(s.keyCode,"enter",13,s.key,"Enter")?null:e.selfClose.apply(null,arguments)}}},"IconButton",{leftIcon:{...e.closeIcon,text:e.$t(e.closeIcon.text)}},!1))],1)]},proxy:!0},{key:"body",fn:function(){return[e.displayUploadView?r("UploadView",{on:{"content-change":e.fixAccessibility,upload:e.onFileUpload}}):e._e(),e.displayResultsView?r("ResultsView",{attrs:{count:e.matchingJobAdsCount},on:{"view-spontaneous":e.viewSpontaneous,"view-results":e.viewResults}}):e._e(),e.displayLoadingView?r("LoadingView"):e._e(),e.displayErrorView?r("ErrorView",{on:{upload:e.onFileUpload}}):e._e()]},proxy:!0}])})],1)])},_sfc_staticRenderFns$1=[],__component__$1=normalizeComponent(_sfc_main$1,_sfc_render$1,_sfc_staticRenderFns$1);const MatchingModal=__component__$1.exports,GEOLOCATION_STORAGE_KEY="dr_user_geolocation",GEOLOCATION_EXPIRATION_TIME=2880*60*1e3,DEFAULT_MAP_WRAPPER_STYLE={width:""},_sfc_main=defineComponent({name:"JobAdsListingPage",components:{ModalConsent,MatchingModal,SubscribeManagement,SubscribeModal,MapWrapper,JobAdList,MobileFilters,DesktopFilters,SpontaneousApplicationBlock,Notification,MobileFiltersButtons},nuxtI18n:{paths:{cs:"/annonces",da:"/annonces",de_CH:"/annonces",de:"/annonces",en:"/annonces",es:"/annonces",it_CH:"/annonces",it:"/annonces",ja:"/annonces",ko:"/annonces",fr_CA:"/annonces",fr_CH:"/annonces",fr:"/annonces",nl:"/annonces",nl_NL:"/annonces",pl:"/annonces",pt:"/annonces",pt_BR:"/annonces",ro:"/annonces",sv:"/annonces",tr:"/annonces",zh_CN:"/annonces",zh_HK:"/annonces"}}
35,mixins:[CommonConfigurationMixin,ConsentMixin],props:{buttonName:{type:String,default:APPLY_BUTTON_SPONTANEOUS_MATCHING}},computed:{careersSiteStore(){return useCareersSiteStore(this.$pinia)},jobAdsStore(){return useJobAdsStore(this.$pinia)},careersSite(){return this.careersSiteStore.careersSite},getQueryFilters(){return this.jobAdsStore.getQueryFilters},inMatchingMode(){return this.jobAdsStore.inMatchingMode},withMap(){return this.careersSiteStore.withMap},displayMatchingModal(){return this.careersSiteStore.displayMatchingModal},googleMapMode(){return this.careersSiteStore.googleMapMode},googleMapRegion(){return this.careersSiteStore.googleMapRegion},queryParams(){return this.$route.query},errorKeyContent(){const t=this.$route.query.errorKey;if(typeof t!="string")return{title:"",text:"",icon:{text:"",type:""}};const e=this.$t(t),r=this.$t(t+"_text");if(!e||!r)return{title:"",text:"",icon:{text:"",type:""}};let s;return t==="career.index.notify_job_ad_close"?s={text:"",type:IconTypeValues.UNAVAILABLE_JOB_AD}:t==="ui.candidate_dashboard_verify_token_error"?s={text:"",type:IconTypeValues.USER_CROSS_DELETE}:t==="ui.candidate_dashboard_unavailable"?s={text:"",type:IconTypeValues.UNAVAILABLE_CANDIDATE_DASHBOARD}:s={text:"",type:IconTypeValues.MAP_PIN},{title:e,text:r,icon:s}},isGeolocationMode(){return this.googleMapMode===GoogleMapModes.GEOLOC},isFixedMode(){return this.googleMapMode===GoogleMapModes.FIXED},displayMap(){return!!this.jobAdListingSettings.with_map&&!this.displayFilters&&!this.displaySearch},displayJobAdPreviews(){return this.displayMap&&this.jobAdListingSettings.job_ad_preview_enabled&&(this.isGeolocationMode&&!this.showGeolocationButton||this.isFixedMode)},pageViewProperties(){return{domain:this.domainName,current_page_title:this.pageData.meta.title,page_type:"Job_ad_list"}},mobileFiltersClasses(){return{"mobile-filters-container":!0,"mobile-filters-container-overlay":this.displayFilters||this.displaySearch}}},data(){return{debounceFetch:(()=>{}),displayFiltersModal:!1,mapMustBeHidden:!0,debounceHideMapOnMobile:()=>{},domain:"",pageData:{},currentPage:1,fromPage:1,pageToStart:1,toPage:LIMIT_JOB_ADS_PER_PAGE,displayFilters:!1,displaySearch:!1,hideMap:!1,googleMapWrapper:null,listContainer:null,googleMapWrapperStyle:null,footerElement:null,customHeaderElement:null,listMapContainerTop:0,displaySubscribeModal:!1,displaySubscribeManagementModal:!1,isSubscribe:!1,colors:{},mapWrapperStyle:null,lastJobAdImage:null,showGeolocationButton:!1,definitiveRegion:void 0}},watch:{getQueryFilters:{deep:!0,handler(){this.$router.push({query:this.getQueryFilters})}},async inMatchingMode(){await this.getPaginatedJobAds(1)},displayMatchingModal:"manageLayoutOverflow",displayFilters:"manageHtmlOverflow",displaySearch:"manageLayoutOverflow"},async asyncData(t){const e=useCareersSiteStore(t.app.$pinia).careersSite,r=e.domain_name,s=typeof t.query.page=="string"?parseInt(t.query.page,10):1;useJobAdsStore(t.app.$pinia).updateFiltersFromMasterFilters(t.route.query);const n=useCareersSiteStore(t.app.$pinia).localizedCareersSite,a=n.pages.find(C=>C.logic_value===LinkLogicValue.JobsLink);if(!a)throw createError({statusCode:404,message:"Not found"});const o=n.navigation_links.find(C=>C.type===PageLinkTypeEnum.Page&&C.page_id===a.id);if(!o||o.type!==PageLinkTypeEnum.Page||o.is_hidden)throw createError({statusCode:404,message:"Not found"});useCareersSiteStore(t.app.$pinia).pageId=a.id;const h=await getLoadedPage(t.app,n,e,a.id),l=makeFnfDatabaseLocale(t.app.i18n.locale);let c=null;try{const C=await getJobAds(t.app,{domainName:r,locale:l,searchParameters:{},filters:{},page:1,limit:1});C.items&&C.items.length>0&&(c=C.items[0].image_wide?.src||"")}catch{}const m=await getColors(t.app,r);return{domain:r,pageData:h,pageToStart:s,colors:m,lastJobAdImage:c}},created(){this.calculateRange(this.pageToStart),this.debounceFetch=debounce(t=>this.getPaginatedJobAds(t),350)},async mounted(){this.$mixpanel?.track_pageview(this.pageViewProperties),this.mapMustBeHidden=this.shouldMapBeHidden(),this.debounceHideMapOnMobile=debounce(this.hideMapOnMobile,350),this.$commonApi.setWithMap(this.withMap),this.isGeolocationMode&&this.withMap&&
35!this.mapMustBeHidden?(await this.handleGeolocationPermissionChanges(),await this.handleGeolocationFlow(),this.definitiveRegion||(await this.askForBrowserGeolocation(),await this.getPaginatedJobAds())):this.isFixedMode?this.definitiveRegion=this.googleMapRegion:(!this.withMap||this.mapMustBeHidden)&&await this.getPaginatedJobAds(),this.definitiveRegion&&(this.initializeHtmlElementsVariables(),this.addListenersForComponentsRescale(),this.$nextTick(this.rescaleComponents)),await this.manageSubscription(),window.addEventListener("resize",this.debounceHideMapOnMobile)},beforeDestroy(){window.removeEventListener("scroll",this.rescaleComponents),window.removeEventListener("resize",this.rescaleComponents),window.removeEventListener("resize",this.debounceHideMapOnMobile),this.resetAllFilters()},head(){return!this.careersSiteStore.localizedCareersSite?.meta?.og_image&&this.lastJobAdImage&&(this.pageData.meta.og_image=this.lastJobAdImage,this.pageData.meta.twitter_image=this.lastJobAdImage),makeHead(this.domain,"/",this.pageData.meta)},methods:{shouldMapBeHidden(){return window.innerWidth<=MAX_WIDTH_MOBILE},hideMapOnMobile(){const t=this.shouldMapBeHidden();this.mapMustBeHidden!==t&&(this.mapMustBeHidden=t,this.resetCurrentViewPortAndRetrieveJobs())},async initMapClusters(){await this.getPaginatedJobAds(this.pageToStart,{updateViewport:!0}),this.$refs.mapWrapper.fitGivenViewport()},async manageSubscription(){const t=this.$nuxt.context,e=this.careersSite;if(this.$nuxt.context.route.query.subscribe)try{await subscriptionValidation(t.route.query.subscribe,e.domain_name),this.displaySubscribeManagementModal=!0,this.isSubscribe=!0}catch{this.clearSubscriptionQuery()}else if(t.route.query.unsubscribe)try{await unsubscribeFromEmailAlerts(t.route.query.unsubscribe,e.domain_name),this.displaySubscribeManagementModal=!0}catch{this.clearSubscriptionQuery()}},async retrieveJobs(t){(!t?.locationSearch||this.mapMustBeHidden||!this.withMap||this.showGeolocationButton)&&await this.getPaginatedJobAds();const e=window.innerWidth;!this.withMap&&e>MAX_WIDTH_TABLET&&this.$commonApi.setEraseCoordinates(!1),this.jobAdsStore.highlightedPlace=t?.locationSearch||null},async getPaginatedJobAds(t=1,e={updateViewport:!1}){try{await this.jobAdsStore.fetchAndCommitJobAds({domainName:this.domain,page:t,locale:makeFnfDatabaseLocale(this.$i18n.locale),withMap:this.withMap&&
35!this.mapMustBeHidden,updateViewport:e.updateViewport})}catch(r){throw maybeRedirectToMaintenance(this.$nuxt.context,r),r}this.calculateRange(t),this.goTopListing()},manageLayoutOverflow(t){const e=t?"hidden":"visible";document.querySelectorAll(".layout").forEach(r=>r.style.overflow=e)},manageHtmlOverflow(t){document.documentElement.style.overflowY=t?"hidden":"scroll"},openModalConsentFromMatching(){trackClickApply({domain:this.domainName,button_name:this.buttonName}),this.closeMatchingModal(),this.triggerApplication()},closeMatchingModal(){this.careersSiteStore.displayMatchingModal=!1},addJobAds(t){this.currentPage!==t&&(this.debounceFetch(t,this),this.focusOnFirstJobAd())},resetFiltersAndRetrieveJobs(){this.resetAllFilters(),this.retrieveJobs()},resetCurrentViewPortAndRetrieveJobs(){this.jobAdsStore.resetCurrentViewport(),this.retrieveJobs()},resetAllFilters(){const t=this.jobAdsStore;t.eraseFilters(),t.eraseSearchParameters(),t.resetCurrentViewport()},calculateRange(t=1){this.toPage=t*LIMIT_JOB_ADS_PER_PAGE,this.fromPage=this.toPage-PAGE_OFFSET,this.currentPage=t},toggleFiltersModal(){this.displayFilters=!this.displayFilters},toggleResearchModal(){this.displaySearch=!this.displaySearch},resetDisplayFilters(){this.displayFilters=!1,this.displaySearch=!1},showSubscribeModal(){this.displaySubscribeModal=!0},closeSubscribeModal(){this.displaySubscribeModal=!1},closeSubscribeManagementModal(){this.displaySubscribeManagementModal=!1,this.clearSubscriptionQuery()},goTopListing(t="smooth"){if(typeof window>"u")return;let e=0;!this.customHeaderElement&&window.scrollY>=TOP_POSITION&&(e=TOP_POSITION),window.scrollTo({top:e,behavior:t})},focusOnFirstJobAd(){const t=document.querySelector(".jobs-container .job-ad-card-wrapper");t&&t.focus({preventScroll:!0})},initializeHtmlElementsVariables(){if(this.$refs.listContainer&&(this.listContainer=this.$refs.listContainer.$el),this.customHeaderElement=document.querySelector(".custom-header"),this.footerElement=this.$refs.spontaneousApplicationElement?this.$refs.spontaneousApplicationElement.$el:document.querySelector("footer.footer"),this.displayMap&&this.$refs.mapWrapper){const t=this.$refs.mapWrapper;if(t.map){const e=t.map;e.mapWrapper?this.googleMapWrapper=e.mapWrapper:e.$el&&(this.googleMapWrapper=e.$el),this.googleMapWrapper&&(this.googleMapWrapperStyle=this.googleMapWrapper.style)}}else this.googleMapWrapper=null},addListenersForComponentsRescale(){window.addEventListener("scroll",this.rescaleComponents),window.addEventListener("resize",this.rescaleComponents)},rescaleComponents(){this.displayMap&&this.googleMapWrapper?this.rescaleMapAndList():this.mapWrapperStyle&&(this.mapWrapperStyle=null),this.rescaleFilters(),this.setVhProp()},setVhProp(){const t=window.innerHeight*.01;document.documentElement.style.setProperty("--vh",`${t}px`)},rescaleMapAndList(){const t=window.innerWidth,e=window.innerHeight;if(this.mapWrapperStyle={...DEFAULT_MAP_WRAPPER_STYLE},t<=MAX_WIDTH_TABLET){this.googleMapWrapperStyle.removeProperty("min-height"),this.listContainer.style.removeProperty("min-height");return}if(this.mapWrapperStyle.width="calc(100% - "+this.listContainer.offsetWidth+"px)",this.googleMapWrapper&&this.listContainer&&this.footerElement.getBoundingClientRect().top>e){const r=e-this.googleMapWrapper.getBoundingClientRect().top+"px";this.googleMapWrapperStyle.minHeight=r,this.listContainer.style.minHeight=r}},rescaleFilters(){window.innerWidth<=MAX_WIDTH_TABLET?this.setMobileFiltersTop():this.setDesktopFiltersTop()},setMobileFiltersTop(){const t=this.$refs.mobileFilters;this.setPositionTopFilter(t,!0)},setDesktopFiltersTop(){const t=this.$refs.desktopFilters.$el;this.setPositionTopFilter(t)},setPositionTopFilter(t,e=!1){if(!(!this.customHeaderElement&&(!t||t.style.top)))if(this.customHeaderElement){const r=e?".mobile-filters-container":".desktop-filters",s=document.querySelector(r);if(s){s.style.top=this.customHeaderElement.clientHeight+"px";const n=document.querySelector(".list-map-container");if(this.listMapContainerTop=e?0:this.customHeaderElement.clientHeight+t.clientHeight,n.style.top=this.listMapContainerTop+"px",!e&&this.displayMap){const a=document.querySelector(".map-container");a&&(a.style.top=n.style.top,this.rescaleMapAndList())}}}else{const r=e?".navbar-mobile":".navbar",s=document.querySelector(r);
35s&&(t.style.top=Math.round(s.getBoundingClientRect().height)+"px")}},scrollDisplayPreview(){this.$nextTick(()=>{this.goTopListing("auto")})},async viewMatchingResults(){await this.getPaginatedJobAds(1),this.closeMatchingModal()},closeNotification(){const t={...this.$route.query};delete t.errorKey,this.$router.replace({query:t})},async handleGeolocationFlow(){const t=await navigator.permissions.query({name:"geolocation"});if(t.state!=="granted"){localStorage.removeItem(GEOLOCATION_STORAGE_KEY),this.showGeolocationButton=!0;return}const e=this.getStoredLocation();if(e){await this.applyCoordinatesToMap(e.lat,e.lng);return}if(t.state==="granted"){await this.askForBrowserGeolocation(!1);return}this.showGeolocationButton=!0},getStoredLocation(){const t=localStorage.getItem(GEOLOCATION_STORAGE_KEY);if(!t)return null;const e=JSON.parse(t);return Date.now()-e.timestamp>GEOLOCATION_EXPIRATION_TIME?(localStorage.removeItem(GEOLOCATION_STORAGE_KEY),null):e},saveCoordinatesToLocalStorage(t,e){const r={lat:t,lng:e,timestamp:Date.now()};localStorage.setItem(GEOLOCATION_STORAGE_KEY,JSON.stringify(r))},async askForBrowserGeolocation(t=!1){navigator.geolocation?(navigator.permissions&&(await navigator.permissions.query({name:"geolocation"})).state==="granted"&&(this.showGeolocationButton=!1),navigator.geolocation.getCurrentPosition(async e=>{this.queryParams.errorKey&&await this.$router.replace({query:{}});const{latitude:r,longitude:s}=e.coords;await this.applyCoordinatesToMap(r,s),this.saveCoordinatesToLocalStorage(r,s)},e=>{e.code===e.PERMISSION_DENIED&&(this.showGeolocationButton=!0,localStorage.removeItem(GEOLOCATION_STORAGE_KEY),t&&this.$router.push({query:{...this.$route.query,errorKey:"ui.location_current_location_error"}}))})):await this.$router.push({query:{...this.$route.query,errorKey:"ui.location_current_location_no-support"}})},async applyCoordinatesToMap(t,e){this.showGeolocationButton=!1,await this.fetchRegionCodeViaRest(t,e)},async fetchRegionCodeViaRest(t,e){try{const r=await this.$commonApi.getGeoCodeRegion(this.domainName,t,e);r.region?this.definitiveRegion=r.region:this.definitiveRegion=this.careersSite.google_map_region,this.$nextTick(()=>{this.initializeHtmlElementsVariables(),this.rescaleComponents()})}catch(r){console.error("Failed to fetch region code from coordinates"),console.error("error fetchRegionCodeViaRest",r),this.definitiveRegion=this.careersSite.google_map_region}},async handleGeolocationPermissionChanges(){if(navigator.permissions){const t=await navigator.permissions.query({name:"geolocation"});t.onchange=()=>{this.handleGeolocationFlow()}}},clearSubscriptionQuery(){const t={...this.$route.query};delete t.subscribe,delete t.unsubscribe,this.$router.replace({query:t})}}});var _sfc_render=function t(){var e=this,r=e._self._c;return e._self._setupProxy,r("div",[r("main",{ref:"pageContainer",staticClass:"page__container job-ads-listing-page",attrs:{role:"main"}},[e.queryParams.errorKey&&e.errorKeyContent.title&&e.errorKeyContent.text?r("Notification",{attrs:{icon:e.errorKeyContent.icon,title:e.errorKeyContent.title,text:e.errorKeyContent.text},on:{close:e.closeNotification}}):e._e(),r("DesktopFilters",{ref:"desktopFilters",attrs:{extended:e.careersSite.is_extended},on:{search:e.retrieveJobs,clear:e.resetFiltersAndRetrieveJobs}}),r("div",{ref:"mobileFilters",class:e.mobileFiltersClasses},[r("MobileFiltersButtons",{attrs:{extended:e.careersSite.is_extended},on:{researchButtonClick:e.toggleResearchModal,filterButtonClick:e.toggleFiltersModal}}),r("MobileFilters",{attrs:{"display-filters-modal":e.displayFilters,"display-research-modal":e.displaySearch,extended:e.careersSite.is_extended},on:{search:e.retrieveJobs,clear:e.retrieveJobs,closeModal:e.resetDisplayFilters,clearAllFilters:e.resetFiltersAndRetrieveJobs}})],1),r("div",{staticClass:"list-map-container",class:{"list-map-container--without-map":e.mapMustBeHidden}},[r("JobAdList",{ref:"listContainer",class:{"job-ads-list--extended":e.careersSite.is_extended},attrs:{"to-page":e.toPage,"current-page":e.currentPage,"from-page":e.fromPage,"page-to-start":e.pageToStart,"display-job-ad-previews":e.displayJobAdPreviews,"show-geolocation-button":e.showGeolocationButton&&!e.mapMustBeHidden},on:{"page-changed":e.addJobAds,search:e.retrieveJobs,"show-modal":e.scrollDisplayPreview,"show-subscribe-modal":e.showSubscribeModal,"accept-geolocation":function(s){return e.askForBrowserGeolocation(!0)}}}),e.definitiveRegion?r("MapWrapper",{directives:[{name:"show",rawName:"v-show",value:e.displayMap&&!e.showGeolocationButton,expression:"displayMap && !showGeolocationButton"}],ref:"mapWrapper",style:e.mapWrapperStyle,attrs:{region:e.definitiveRegion,extended:e.careersSite.is_extended,colors:e.colors,"map-must-be-hidden":e.mapMustBeHidden},on:{researchButtonClick:e.toggleResearchModal,filterButtonClick:e.toggleFiltersModal,onMapReady:e.initMapClusters,mapToggle:e.manageLayoutOverflow}}
35):e._e()],1)],1),e.displaySubscribeModal?r("SubscribeModal",{on:{"close-modal":e.closeSubscribeModal}}):e._e(),e.displaySubscribeManagementModal?r("SubscribeManagement",{attrs:{"is-subscribe":e.isSubscribe,extended:e.careersSite.is_extended},on:{"close-modal":e.closeSubscribeManagementModal}}):e._e(),e.jobAdListingSettings.allow_spontaneous?r("SpontaneousApplicationBlock",{ref:"spontaneousApplicationElement",attrs:{extended:e.careersSite.is_extended}}):e._e(),e.displayMatchingModal?r("MatchingModal",{on:{"view-results":e.viewMatchingResults,"view-spontaneous":e.openModalConsentFromMatching}}):e._e(),e.shouldDisplayConsentModal?r("ModalConsent",{attrs:{"consent-src":e.consentIframeSrc},on:{"modal-opened":e.consentModalOpened,"close-modal":e.closeConsentModal}}):e._e()],1)},_sfc_staticRenderFns=[],__component__=normalizeComponent(_sfc_main,_sfc_render,_sfc_staticRenderFns);const jobAdsListing=__component__.exports,jobAdsListing$1=Object.freeze(Object.defineProperty({__proto__:null,default:jobAdsListing},Symbol.toStringTag,{value:"Module"}));export{ModalMixin as M,jobAdsListing$1 as j};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.