var PopConvertScript=function(exports){"use strict";const main="";function makeMap(e,t){const n=Object.create(null),r=e.split(",");for(let o=0;o!!n[o.toLowerCase()]:o=>!!n[o]}const EMPTY_OBJ={},EMPTY_ARR=[],NOOP=()=>{},NO=()=>!1,onRE=/^on[^a-z]/,isOn=e=>onRE.test(e),isModelListener=e=>e.startsWith("onUpdate:"),extend=Object.assign,remove$1=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},hasOwnProperty$2=Object.prototype.hasOwnProperty,hasOwn=(e,t)=>hasOwnProperty$2.call(e,t),isArray=Array.isArray,isMap=e=>toTypeString(e)==="[object Map]",isSet=e=>toTypeString(e)==="[object Set]",isFunction=e=>typeof e=="function",isString=e=>typeof e=="string",isSymbol$1=e=>typeof e=="symbol",isObject$4=e=>e!==null&&typeof e=="object",isPromise=e=>isObject$4(e)&&isFunction(e.then)&&isFunction(e.catch),objectToString$1=Object.prototype.toString,toTypeString=e=>objectToString$1.call(e),toRawType=e=>toTypeString(e).slice(8,-1),isPlainObject$1=e=>toTypeString(e)==="[object Object]",isIntegerKey=e=>isString(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,isReservedProp=makeMap(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),cacheStringFunction=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},camelizeRE=/-(\w)/g,camelize=cacheStringFunction(e=>e.replace(camelizeRE,(t,n)=>n?n.toUpperCase():"")),hyphenateRE=/\B([A-Z])/g,hyphenate=cacheStringFunction(e=>e.replace(hyphenateRE,"-$1").toLowerCase()),capitalize=cacheStringFunction(e=>e.charAt(0).toUpperCase()+e.slice(1)),toHandlerKey=cacheStringFunction(e=>e?`on${capitalize(e)}`:""),hasChanged=(e,t)=>!Object.is(e,t),invokeArrayFns=(e,t)=>{for(let n=0;n{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},looseToNumber=e=>{const t=parseFloat(e);return isNaN(t)?e:t},toNumber$1=e=>{const t=isString(e)?Number(e):NaN;return isNaN(t)?e:t};let _globalThis;const getGlobalThis=()=>_globalThis||(_globalThis=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function normalizeStyle(e){if(isArray(e)){const t={};for(let n=0;n{if(n){const r=n.split(propertyDelimiterRE);r.length>1&&(t[r[0].trim()]=r[1].trim())}}),t}function normalizeClass(e){let t="";if(isString(e))t=e;else if(isArray(e))for(let n=0;nisString(e)?e:e==null?"":isArray(e)||isObject$4(e)&&(e.toString===objectToString$1||!isFunction(e.toString))?JSON.stringify(e,replacer,2):String(e),replacer=(e,t)=>t&&t.__v_isRef?replacer(e,t.value):isMap(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[r,o])=>(n[`${r} =>`]=o,n),{})}:isSet(t)?{[`Set(${t.size})`]:[...t.values()]}:isObject$4(t)&&!isArray(t)&&!isPlainObject$1(t)?String(t):t;let activeEffectScope;class EffectScope{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this.parent=activeEffectScope,!t&&activeEffectScope&&(this.index=(activeEffectScope.scopes||(activeEffectScope.scopes=[])).push(this)-1)}get active(){return this._active}run(t){if(this._active){const n=activeEffectScope;try{return activeEffectScope=this,t()}finally{activeEffectScope=n}}}on(){activeEffectScope=this}off(){activeEffectScope=this.parent}stop(t){if(this._active){let n,r;for(n=0,r=this.effects.length;n{const t=new Set(e);return t.w=0,t.n=0,t},wasTracked=e=>(e.w&trackOpBit)>0,newTracked=e=>(e.n&trackOpBit)>0,initDepMarkers=({deps:e})=>{if(e.length)for(let t=0;t{const{deps:t}=e;if(t.length){let n=0;for(let r=0;r{(d==="length"||d>=c)&&a.push(l)})}else switch(n!==void 0&&a.push(s.get(n)),t){case"add":isArray(e)?isIntegerKey(n)&&a.push(s.get("length")):(a.push(s.get(ITERATE_KEY)),isMap(e)&&a.push(s.get(MAP_KEY_ITERATE_KEY)));break;case"delete":isArray(e)||(a.push(s.get(ITERATE_KEY)),isMap(e)&&a.push(s.get(MAP_KEY_ITERATE_KEY)));break;case"set":isMap(e)&&a.push(s.get(ITERATE_KEY));break}if(a.length===1)a[0]&&triggerEffects(a[0]);else{const c=[];for(const l of a)l&&c.push(...l);triggerEffects(createDep(c))}}function triggerEffects(e,t){const n=isArray(e)?e:[...e];for(const r of n)r.computed&&triggerEffect(r);for(const r of n)r.computed||triggerEffect(r)}function triggerEffect(e,t){(e!==activeEffect||e.allowRecurse)&&(e.scheduler?e.scheduler():e.run())}function getDepFromReactive(e,t){var n;return(n=targetMap.get(e))==null?void 0:n.get(t)}const isNonTrackableKeys=makeMap("__proto__,__v_isRef,__isVue"),builtInSymbols=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(isSymbol$1)),get$1=createGetter(),shallowGet=createGetter(!1,!0),readonlyGet=createGetter(!0),arrayInstrumentations=createArrayInstrumentations();function createArrayInstrumentations(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...n){const r=toRaw(this);for(let i=0,s=this.length;i{e[t]=function(...n){pauseTracking();const r=toRaw(this)[t].apply(this,n);return resetTracking(),r}}),e}function hasOwnProperty$1(e){const t=toRaw(this);return track(t,"has",e),t.hasOwnProperty(e)}function createGetter(e=!1,t=!1){return function(r,o,i){if(o==="__v_isReactive")return!e;if(o==="__v_isReadonly")return e;if(o==="__v_isShallow")return t;if(o==="__v_raw"&&i===(e?t?shallowReadonlyMap:readonlyMap:t?shallowReactiveMap:reactiveMap).get(r))return r;const s=isArray(r);if(!e){if(s&&hasOwn(arrayInstrumentations,o))return Reflect.get(arrayInstrumentations,o,i);if(o==="hasOwnProperty")return hasOwnProperty$1}const a=Reflect.get(r,o,i);return(isSymbol$1(o)?builtInSymbols.has(o):isNonTrackableKeys(o))||(e||track(r,"get",o),t)?a:isRef(a)?s&&isIntegerKey(o)?a:a.value:isObject$4(a)?e?readonly(a):reactive(a):a}}const set$1=createSetter(),shallowSet=createSetter(!0);function createSetter(e=!1){return function(n,r,o,i){let s=n[r];if(isReadonly(s)&&isRef(s)&&!isRef(o))return!1;if(!e&&(!isShallow(o)&&!isReadonly(o)&&(s=toRaw(s),o=toRaw(o)),!isArray(n)&&isRef(s)&&!isRef(o)))return s.value=o,!0;const a=isArray(n)&&isIntegerKey(r)?Number(r)e,getProto=e=>Reflect.getPrototypeOf(e);function get(e,t,n=!1,r=!1){e=e.__v_raw;const o=toRaw(e),i=toRaw(t);n||(t!==i&&track(o,"get",t),track(o,"get",i));const{has:s}=getProto(o),a=r?toShallow:n?toReadonly:toReactive;if(s.call(o,t))return a(e.get(t));if(s.call(o,i))return a(e.get(i));e!==o&&e.get(t)}function has(e,t=!1){const n=this.__v_raw,r=toRaw(n),o=toRaw(e);return t||(e!==o&&track(r,"has",e),track(r,"has",o)),e===o?n.has(e):n.has(e)||n.has(o)}function size(e,t=!1){return e=e.__v_raw,!t&&track(toRaw(e),"iterate",ITERATE_KEY),Reflect.get(e,"size",e)}function add$1(e){e=toRaw(e);const t=toRaw(this);return getProto(t).has.call(t,e)||(t.add(e),trigger(t,"add",e,e)),this}function set(e,t){t=toRaw(t);const n=toRaw(this),{has:r,get:o}=getProto(n);let i=r.call(n,e);i||(e=toRaw(e),i=r.call(n,e));const s=o.call(n,e);return n.set(e,t),i?hasChanged(t,s)&&trigger(n,"set",e,t):trigger(n,"add",e,t),this}function deleteEntry(e){const t=toRaw(this),{has:n,get:r}=getProto(t);let o=n.call(t,e);o||(e=toRaw(e),o=n.call(t,e)),r&&r.call(t,e);const i=t.delete(e);return o&&trigger(t,"delete",e,void 0),i}function clear(){const e=toRaw(this),t=e.size!==0,n=e.clear();return t&&trigger(e,"clear",void 0,void 0),n}function createForEach(e,t){return function(r,o){const i=this,s=i.__v_raw,a=toRaw(s),c=t?toShallow:e?toReadonly:toReactive;return!e&&track(a,"iterate",ITERATE_KEY),s.forEach((l,d)=>r.call(o,c(l),c(d),i))}}function createIterableMethod(e,t,n){return function(...r){const o=this.__v_raw,i=toRaw(o),s=isMap(i),a=e==="entries"||e===Symbol.iterator&&s,c=e==="keys"&&s,l=o[e](...r),d=n?toShallow:t?toReadonly:toReactive;return!t&&track(i,"iterate",c?MAP_KEY_ITERATE_KEY:ITERATE_KEY),{next(){const{value:g,done:m}=l.next();return m?{value:g,done:m}:{value:a?[d(g[0]),d(g[1])]:d(g),done:m}},[Symbol.iterator](){return this}}}}function createReadonlyMethod(e){return function(...t){return e==="delete"?!1:this}}function createInstrumentations(){const e={get(i){return get(this,i)},get size(){return size(this)},has,add:add$1,set,delete:deleteEntry,clear,forEach:createForEach(!1,!1)},t={get(i){return get(this,i,!1,!0)},get size(){return size(this)},has,add:add$1,set,delete:deleteEntry,clear,forEach:createForEach(!1,!0)},n={get(i){return get(this,i,!0)},get size(){return size(this,!0)},has(i){return has.call(this,i,!0)},add:createReadonlyMethod("add"),set:createReadonlyMethod("set"),delete:createReadonlyMethod("delete"),clear:createReadonlyMethod("clear"),forEach:createForEach(!0,!1)},r={get(i){return get(this,i,!0,!0)},get size(){return size(this,!0)},has(i){return has.call(this,i,!0)},add:createReadonlyMethod("add"),set:createReadonlyMethod("set"),delete:createReadonlyMethod("delete"),clear:createReadonlyMethod("clear"),forEach:createForEach(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(i=>{e[i]=createIterableMethod(i,!1,!1),n[i]=createIterableMethod(i,!0,!1),t[i]=createIterableMethod(i,!1,!0),r[i]=createIterableMethod(i,!0,!0)}),[e,n,t,r]}const[mutableInstrumentations,readonlyInstrumentations,shallowInstrumentations,shallowReadonlyInstrumentations]=createInstrumentations();function createInstrumentationGetter(e,t){const n=t?e?shallowReadonlyInstrumentations:shallowInstrumentations:e?readonlyInstrumentations:mutableInstrumentations;return(r,o,i)=>o==="__v_isReactive"?!e:o==="__v_isReadonly"?e:o==="__v_raw"?r:Reflect.get(hasOwn(n,o)&&o in r?n:r,o,i)}const mutableCollectionHandlers={get:createInstrumentationGetter(!1,!1)},shallowCollectionHandlers={get:createInstrumentationGetter(!1,!0)},readonlyCollectionHandlers={get:createInstrumentationGetter(!0,!1)},reactiveMap=new WeakMap,shallowReactiveMap=new WeakMap,readonlyMap=new WeakMap,shallowReadonlyMap=new WeakMap;function targetTypeMap(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function getTargetType(e){return e.__v_skip||!Object.isExtensible(e)?0:targetTypeMap(toRawType(e))}function reactive(e){return isReadonly(e)?e:createReactiveObject(e,!1,mutableHandlers,mutableCollectionHandlers,reactiveMap)}function shallowReactive(e){return createReactiveObject(e,!1,shallowReactiveHandlers,shallowCollectionHandlers,shallowReactiveMap)}function readonly(e){return createReactiveObject(e,!0,readonlyHandlers,readonlyCollectionHandlers,readonlyMap)}function createReactiveObject(e,t,n,r,o){if(!isObject$4(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const i=o.get(e);if(i)return i;const s=getTargetType(e);if(s===0)return e;const a=new Proxy(e,s===2?r:n);return o.set(e,a),a}function isReactive(e){return isReadonly(e)?isReactive(e.__v_raw):!!(e&&e.__v_isReactive)}function isReadonly(e){return!!(e&&e.__v_isReadonly)}function isShallow(e){return!!(e&&e.__v_isShallow)}function isProxy(e){return isReactive(e)||isReadonly(e)}function toRaw(e){const t=e&&e.__v_raw;return t?toRaw(t):e}function markRaw(e){return def(e,"__v_skip",!0),e}const toReactive=e=>isObject$4(e)?reactive(e):e,toReadonly=e=>isObject$4(e)?readonly(e):e;function trackRefValue(e){shouldTrack&&activeEffect&&(e=toRaw(e),trackEffects(e.dep||(e.dep=createDep())))}function triggerRefValue(e,t){e=toRaw(e);const n=e.dep;n&&triggerEffects(n)}function isRef(e){return!!(e&&e.__v_isRef===!0)}function ref(e){return createRef(e,!1)}function createRef(e,t){return isRef(e)?e:new RefImpl(e,t)}class RefImpl{constructor(t,n){this.__v_isShallow=n,this.dep=void 0,this.__v_isRef=!0,this._rawValue=n?t:toRaw(t),this._value=n?t:toReactive(t)}get value(){return trackRefValue(this),this._value}set value(t){const n=this.__v_isShallow||isShallow(t)||isReadonly(t);t=n?t:toRaw(t),hasChanged(t,this._rawValue)&&(this._rawValue=t,this._value=n?t:toReactive(t),triggerRefValue(this))}}function unref(e){return isRef(e)?e.value:e}const shallowUnwrapHandlers={get:(e,t,n)=>unref(Reflect.get(e,t,n)),set:(e,t,n,r)=>{const o=e[t];return isRef(o)&&!isRef(n)?(o.value=n,!0):Reflect.set(e,t,n,r)}};function proxyRefs(e){return isReactive(e)?e:new Proxy(e,shallowUnwrapHandlers)}class CustomRefImpl{constructor(t){this.dep=void 0,this.__v_isRef=!0;const{get:n,set:r}=t(()=>trackRefValue(this),()=>triggerRefValue(this));this._get=n,this._set=r}get value(){return this._get()}set value(t){this._set(t)}}function customRef(e){return new CustomRefImpl(e)}function toRefs(e){const t=isArray(e)?new Array(e.length):{};for(const n in e)t[n]=propertyToRef(e,n);return t}class ObjectRefImpl{constructor(t,n,r){this._object=t,this._key=n,this._defaultValue=r,this.__v_isRef=!0}get value(){const t=this._object[this._key];return t===void 0?this._defaultValue:t}set value(t){this._object[this._key]=t}get dep(){return getDepFromReactive(toRaw(this._object),this._key)}}class GetterRefImpl{constructor(t){this._getter=t,this.__v_isRef=!0,this.__v_isReadonly=!0}get value(){return this._getter()}}function toRef$1(e,t,n){return isRef(e)?e:isFunction(e)?new GetterRefImpl(e):isObject$4(e)&&arguments.length>1?propertyToRef(e,t,n):ref(e)}function propertyToRef(e,t,n){const r=e[t];return isRef(r)?r:new ObjectRefImpl(e,t,n)}class ComputedRefImpl{constructor(t,n,r,o){this._setter=n,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this._dirty=!0,this.effect=new ReactiveEffect(t,()=>{this._dirty||(this._dirty=!0,triggerRefValue(this))}),this.effect.computed=this,this.effect.active=this._cacheable=!o,this.__v_isReadonly=r}get value(){const t=toRaw(this);return trackRefValue(t),(t._dirty||!t._cacheable)&&(t._dirty=!1,t._value=t.effect.run()),t._value}set value(t){this._setter(t)}}function computed$1(e,t,n=!1){let r,o;const i=isFunction(e);return i?(r=e,o=NOOP):(r=e.get,o=e.set),new ComputedRefImpl(r,o,i||!o,n)}function warn(e,...t){}function callWithErrorHandling(e,t,n,r){let o;try{o=r?e(...r):e()}catch(i){handleError(i,t,n)}return o}function callWithAsyncErrorHandling(e,t,n,r){if(isFunction(e)){const i=callWithErrorHandling(e,t,n,r);return i&&isPromise(i)&&i.catch(s=>{handleError(s,t,n)}),i}const o=[];for(let i=0;i>>1;getId(queue[r])flushIndex&&queue.splice(t,1)}function queuePostFlushCb(e){isArray(e)?pendingPostFlushCbs.push(...e):(!activePostFlushCbs||!activePostFlushCbs.includes(e,e.allowRecurse?postFlushIndex+1:postFlushIndex))&&pendingPostFlushCbs.push(e),queueFlush()}function flushPreFlushCbs(e,t=isFlushing?flushIndex+1:0){for(;tgetId(n)-getId(r)),postFlushIndex=0;postFlushIndexe.id==null?1/0:e.id,comparator=(e,t)=>{const n=getId(e)-getId(t);if(n===0){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function flushJobs(e){isFlushPending=!1,isFlushing=!0,queue.sort(comparator);const t=NOOP;try{for(flushIndex=0;flushIndexisString(y)?y.trim():y)),g&&(o=n.map(looseToNumber))}let a,c=r[a=toHandlerKey(t)]||r[a=toHandlerKey(camelize(t))];!c&&i&&(c=r[a=toHandlerKey(hyphenate(t))]),c&&callWithAsyncErrorHandling(c,e,6,o);const l=r[a+"Once"];if(l){if(!e.emitted)e.emitted={};else if(e.emitted[a])return;e.emitted[a]=!0,callWithAsyncErrorHandling(l,e,6,o)}}function normalizeEmitsOptions(e,t,n=!1){const r=t.emitsCache,o=r.get(e);if(o!==void 0)return o;const i=e.emits;let s={},a=!1;if(!isFunction(e)){const c=l=>{const d=normalizeEmitsOptions(l,t,!0);d&&(a=!0,extend(s,d))};!n&&t.mixins.length&&t.mixins.forEach(c),e.extends&&c(e.extends),e.mixins&&e.mixins.forEach(c)}return!i&&!a?(isObject$4(e)&&r.set(e,null),null):(isArray(i)?i.forEach(c=>s[c]=null):extend(s,i),isObject$4(e)&&r.set(e,s),s)}function isEmitListener(e,t){return!e||!isOn(t)?!1:(t=t.slice(2).replace(/Once$/,""),hasOwn(e,t[0].toLowerCase()+t.slice(1))||hasOwn(e,hyphenate(t))||hasOwn(e,t))}let currentRenderingInstance=null,currentScopeId=null;function setCurrentRenderingInstance(e){const t=currentRenderingInstance;return currentRenderingInstance=e,currentScopeId=e&&e.type.__scopeId||null,t}function pushScopeId(e){currentScopeId=e}function popScopeId(){currentScopeId=null}function withCtx(e,t=currentRenderingInstance,n){if(!t||e._n)return e;const r=(...o)=>{r._d&&setBlockTracking(-1);const i=setCurrentRenderingInstance(t);let s;try{s=e(...o)}finally{setCurrentRenderingInstance(i),r._d&&setBlockTracking(1)}return s};return r._n=!0,r._c=!0,r._d=!0,r}function markAttrsAccessed(){}function renderComponentRoot(e){const{type:t,vnode:n,proxy:r,withProxy:o,props:i,propsOptions:[s],slots:a,attrs:c,emit:l,render:d,renderCache:g,data:m,setupState:y,ctx:C,inheritAttrs:w}=e;let I,j;const J=setCurrentRenderingInstance(e);try{if(n.shapeFlag&4){const k=o||r;I=normalizeVNode(d.call(k,k,g,i,y,m,C)),j=c}else{const k=t;I=normalizeVNode(k.length>1?k(i,{attrs:c,slots:a,emit:l}):k(i,null)),j=t.props?c:getFunctionalFallthrough(c)}}catch(k){blockStack.length=0,handleError(k,e,1),I=createVNode(Comment)}let A=I;if(j&&w!==!1){const k=Object.keys(j),{shapeFlag:b}=A;k.length&&b&7&&(s&&k.some(isModelListener)&&(j=filterModelListeners(j,s)),A=cloneVNode(A,j))}return n.dirs&&(A=cloneVNode(A),A.dirs=A.dirs?A.dirs.concat(n.dirs):n.dirs),n.transition&&(A.transition=n.transition),I=A,setCurrentRenderingInstance(J),I}const getFunctionalFallthrough=e=>{let t;for(const n in e)(n==="class"||n==="style"||isOn(n))&&((t||(t={}))[n]=e[n]);return t},filterModelListeners=(e,t)=>{const n={};for(const r in e)(!isModelListener(r)||!(r.slice(9)in t))&&(n[r]=e[r]);return n};function shouldUpdateComponent(e,t,n){const{props:r,children:o,component:i}=e,{props:s,children:a,patchFlag:c}=t,l=i.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&c>=0){if(c&1024)return!0;if(c&16)return r?hasPropsChanged(r,s,l):!!s;if(c&8){const d=t.dynamicProps;for(let g=0;ge.__isSuspense;function queueEffectWithSuspense(e,t){t&&t.pendingBranch?isArray(e)?t.effects.push(...e):t.effects.push(e):queuePostFlushCb(e)}function watchEffect(e,t){return doWatch(e,null,t)}function watchPostEffect(e,t){return doWatch(e,null,{flush:"post"})}const INITIAL_WATCHER_VALUE={};function watch(e,t,n){return doWatch(e,t,n)}function doWatch(e,t,{immediate:n,deep:r,flush:o,onTrack:i,onTrigger:s}=EMPTY_OBJ){var a;const c=getCurrentScope()===((a=currentInstance)==null?void 0:a.scope)?currentInstance:null;let l,d=!1,g=!1;if(isRef(e)?(l=()=>e.value,d=isShallow(e)):isReactive(e)?(l=()=>e,r=!0):isArray(e)?(g=!0,d=e.some(k=>isReactive(k)||isShallow(k)),l=()=>e.map(k=>{if(isRef(k))return k.value;if(isReactive(k))return traverse(k);if(isFunction(k))return callWithErrorHandling(k,c,2)})):isFunction(e)?t?l=()=>callWithErrorHandling(e,c,2):l=()=>{if(!(c&&c.isUnmounted))return m&&m(),callWithAsyncErrorHandling(e,c,3,[y])}:l=NOOP,t&&r){const k=l;l=()=>traverse(k())}let m,y=k=>{m=J.onStop=()=>{callWithErrorHandling(k,c,4)}},C;if(isInSSRComponentSetup)if(y=NOOP,t?n&&callWithAsyncErrorHandling(t,c,3,[l(),g?[]:void 0,y]):l(),o==="sync"){const k=useSSRContext();C=k.__watcherHandles||(k.__watcherHandles=[])}else return NOOP;let w=g?new Array(e.length).fill(INITIAL_WATCHER_VALUE):INITIAL_WATCHER_VALUE;const I=()=>{if(J.active)if(t){const k=J.run();(r||d||(g?k.some((b,E)=>hasChanged(b,w[E])):hasChanged(k,w)))&&(m&&m(),callWithAsyncErrorHandling(t,c,3,[k,w===INITIAL_WATCHER_VALUE?void 0:g&&w[0]===INITIAL_WATCHER_VALUE?[]:w,y]),w=k)}else J.run()};I.allowRecurse=!!t;let j;o==="sync"?j=I:o==="post"?j=()=>queuePostRenderEffect(I,c&&c.suspense):(I.pre=!0,c&&(I.id=c.uid),j=()=>queueJob(I));const J=new ReactiveEffect(l,j);t?n?I():w=J.run():o==="post"?queuePostRenderEffect(J.run.bind(J),c&&c.suspense):J.run();const A=()=>{J.stop(),c&&c.scope&&remove$1(c.scope.effects,J)};return C&&C.push(A),A}function instanceWatch(e,t,n){const r=this.proxy,o=isString(e)?e.includes(".")?createPathGetter(r,e):()=>r[e]:e.bind(r,r);let i;isFunction(t)?i=t:(i=t.handler,n=t);const s=currentInstance;setCurrentInstance(this);const a=doWatch(o,i.bind(r),n);return s?setCurrentInstance(s):unsetCurrentInstance(),a}function createPathGetter(e,t){const n=t.split(".");return()=>{let r=e;for(let o=0;o{traverse(n,t)});else if(isPlainObject$1(e))for(const n in e)traverse(e[n],t);return e}function withDirectives(e,t){const n=currentRenderingInstance;if(n===null)return e;const r=getExposeProxy(n)||n.proxy,o=e.dirs||(e.dirs=[]);for(let i=0;i{e.isMounted=!0}),onBeforeUnmount(()=>{e.isUnmounting=!0}),e}const TransitionHookValidator=[Function,Array],BaseTransitionPropsValidators={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:TransitionHookValidator,onEnter:TransitionHookValidator,onAfterEnter:TransitionHookValidator,onEnterCancelled:TransitionHookValidator,onBeforeLeave:TransitionHookValidator,onLeave:TransitionHookValidator,onAfterLeave:TransitionHookValidator,onLeaveCancelled:TransitionHookValidator,onBeforeAppear:TransitionHookValidator,onAppear:TransitionHookValidator,onAfterAppear:TransitionHookValidator,onAppearCancelled:TransitionHookValidator},BaseTransitionImpl={name:"BaseTransition",props:BaseTransitionPropsValidators,setup(e,{slots:t}){const n=getCurrentInstance(),r=useTransitionState();let o;return()=>{const i=t.default&&getTransitionRawChildren(t.default(),!0);if(!i||!i.length)return;let s=i[0];if(i.length>1){for(const w of i)if(w.type!==Comment){s=w;break}}const a=toRaw(e),{mode:c}=a;if(r.isLeaving)return emptyPlaceholder(s);const l=getKeepAliveChild(s);if(!l)return emptyPlaceholder(s);const d=resolveTransitionHooks(l,a,r,n);setTransitionHooks(l,d);const g=n.subTree,m=g&&getKeepAliveChild(g);let y=!1;const{getTransitionKey:C}=l.type;if(C){const w=C();o===void 0?o=w:w!==o&&(o=w,y=!0)}if(m&&m.type!==Comment&&(!isSameVNodeType(l,m)||y)){const w=resolveTransitionHooks(m,a,r,n);if(setTransitionHooks(m,w),c==="out-in")return r.isLeaving=!0,w.afterLeave=()=>{r.isLeaving=!1,n.update.active!==!1&&n.update()},emptyPlaceholder(s);c==="in-out"&&l.type!==Comment&&(w.delayLeave=(I,j,J)=>{const A=getLeavingNodesForType(r,m);A[String(m.key)]=m,I._leaveCb=()=>{j(),I._leaveCb=void 0,delete d.delayedLeave},d.delayedLeave=J})}return s}}},BaseTransition=BaseTransitionImpl;function getLeavingNodesForType(e,t){const{leavingVNodes:n}=e;let r=n.get(t.type);return r||(r=Object.create(null),n.set(t.type,r)),r}function resolveTransitionHooks(e,t,n,r){const{appear:o,mode:i,persisted:s=!1,onBeforeEnter:a,onEnter:c,onAfterEnter:l,onEnterCancelled:d,onBeforeLeave:g,onLeave:m,onAfterLeave:y,onLeaveCancelled:C,onBeforeAppear:w,onAppear:I,onAfterAppear:j,onAppearCancelled:J}=t,A=String(e.key),k=getLeavingNodesForType(n,e),b=(O,M)=>{O&&callWithAsyncErrorHandling(O,r,9,M)},E=(O,M)=>{const B=M[1];b(O,M),isArray(O)?O.every(Z=>Z.length<=1)&&B():O.length<=1&&B()},D={mode:i,persisted:s,beforeEnter(O){let M=a;if(!n.isMounted)if(o)M=w||a;else return;O._leaveCb&&O._leaveCb(!0);const B=k[A];B&&isSameVNodeType(e,B)&&B.el._leaveCb&&B.el._leaveCb(),b(M,[O])},enter(O){let M=c,B=l,Z=d;if(!n.isMounted)if(o)M=I||c,B=j||l,Z=J||d;else return;let q=!1;const pe=O._enterCb=Se=>{q||(q=!0,Se?b(Z,[O]):b(B,[O]),D.delayedLeave&&D.delayedLeave(),O._enterCb=void 0)};M?E(M,[O,pe]):pe()},leave(O,M){const B=String(e.key);if(O._enterCb&&O._enterCb(!0),n.isUnmounting)return M();b(g,[O]);let Z=!1;const q=O._leaveCb=pe=>{Z||(Z=!0,M(),pe?b(C,[O]):b(y,[O]),O._leaveCb=void 0,k[B]===e&&delete k[B])};k[B]=e,m?E(m,[O,q]):q()},clone(O){return resolveTransitionHooks(O,t,n,r)}};return D}function emptyPlaceholder(e){if(isKeepAlive(e))return e=cloneVNode(e),e.children=null,e}function getKeepAliveChild(e){return isKeepAlive(e)?e.children?e.children[0]:void 0:e}function setTransitionHooks(e,t){e.shapeFlag&6&&e.component?setTransitionHooks(e.component.subTree,t):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function getTransitionRawChildren(e,t=!1,n){let r=[],o=0;for(let i=0;i1)for(let i=0;iextend({name:e.name},t,{setup:e}))():e}const isAsyncWrapper=e=>!!e.type.__asyncLoader,isKeepAlive=e=>e.type.__isKeepAlive;function onActivated(e,t){registerKeepAliveHook(e,"a",t)}function onDeactivated(e,t){registerKeepAliveHook(e,"da",t)}function registerKeepAliveHook(e,t,n=currentInstance){const r=e.__wdc||(e.__wdc=()=>{let o=n;for(;o;){if(o.isDeactivated)return;o=o.parent}return e()});if(injectHook(t,r,n),n){let o=n.parent;for(;o&&o.parent;)isKeepAlive(o.parent.vnode)&&injectToKeepAliveRoot(r,t,n,o),o=o.parent}}function injectToKeepAliveRoot(e,t,n,r){const o=injectHook(t,e,r,!0);onUnmounted(()=>{remove$1(r[t],o)},n)}function injectHook(e,t,n=currentInstance,r=!1){if(n){const o=n[e]||(n[e]=[]),i=t.__weh||(t.__weh=(...s)=>{if(n.isUnmounted)return;pauseTracking(),setCurrentInstance(n);const a=callWithAsyncErrorHandling(t,n,e,s);return unsetCurrentInstance(),resetTracking(),a});return r?o.unshift(i):o.push(i),i}}const createHook=e=>(t,n=currentInstance)=>(!isInSSRComponentSetup||e==="sp")&&injectHook(e,(...r)=>t(...r),n),onBeforeMount=createHook("bm"),onMounted=createHook("m"),onBeforeUpdate=createHook("bu"),onUpdated=createHook("u"),onBeforeUnmount=createHook("bum"),onUnmounted=createHook("um"),onServerPrefetch=createHook("sp"),onRenderTriggered=createHook("rtg"),onRenderTracked=createHook("rtc");function onErrorCaptured(e,t=currentInstance){injectHook("ec",e,t)}const COMPONENTS="components",NULL_DYNAMIC_COMPONENT=Symbol.for("v-ndc");function resolveDynamicComponent(e){return isString(e)?resolveAsset(COMPONENTS,e,!1)||e:e||NULL_DYNAMIC_COMPONENT}function resolveAsset(e,t,n=!0,r=!1){const o=currentRenderingInstance||currentInstance;if(o){const i=o.type;if(e===COMPONENTS){const a=getComponentName(i,!1);if(a&&(a===t||a===camelize(t)||a===capitalize(camelize(t))))return i}const s=resolve(o[e]||i[e],t)||resolve(o.appContext[e],t);return!s&&r?i:s}}function resolve(e,t){return e&&(e[t]||e[camelize(t)]||e[capitalize(camelize(t))])}function renderList(e,t,n,r){let o;const i=n&&n[r];if(isArray(e)||isString(e)){o=new Array(e.length);for(let s=0,a=e.length;st(s,a,void 0,i&&i[a]));else{const s=Object.keys(e);o=new Array(s.length);for(let a=0,c=s.length;aisVNode(t)?!(t.type===Comment||t.type===Fragment&&!ensureValidVNode(t.children)):!0)?e:null}const getPublicInstance=e=>e?isStatefulComponent(e)?getExposeProxy(e)||e.proxy:getPublicInstance(e.parent):null,publicPropertiesMap=extend(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>getPublicInstance(e.parent),$root:e=>getPublicInstance(e.root),$emit:e=>e.emit,$options:e=>resolveMergedOptions(e),$forceUpdate:e=>e.f||(e.f=()=>queueJob(e.update)),$nextTick:e=>e.n||(e.n=nextTick.bind(e.proxy)),$watch:e=>instanceWatch.bind(e)}),hasSetupBinding=(e,t)=>e!==EMPTY_OBJ&&!e.__isScriptSetup&&hasOwn(e,t),PublicInstanceProxyHandlers={get({_:e},t){const{ctx:n,setupState:r,data:o,props:i,accessCache:s,type:a,appContext:c}=e;let l;if(t[0]!=="$"){const y=s[t];if(y!==void 0)switch(y){case 1:return r[t];case 2:return o[t];case 4:return n[t];case 3:return i[t]}else{if(hasSetupBinding(r,t))return s[t]=1,r[t];if(o!==EMPTY_OBJ&&hasOwn(o,t))return s[t]=2,o[t];if((l=e.propsOptions[0])&&hasOwn(l,t))return s[t]=3,i[t];if(n!==EMPTY_OBJ&&hasOwn(n,t))return s[t]=4,n[t];shouldCacheAccess&&(s[t]=0)}}const d=publicPropertiesMap[t];let g,m;if(d)return t==="$attrs"&&track(e,"get",t),d(e);if((g=a.__cssModules)&&(g=g[t]))return g;if(n!==EMPTY_OBJ&&hasOwn(n,t))return s[t]=4,n[t];if(m=c.config.globalProperties,hasOwn(m,t))return m[t]},set({_:e},t,n){const{data:r,setupState:o,ctx:i}=e;return hasSetupBinding(o,t)?(o[t]=n,!0):r!==EMPTY_OBJ&&hasOwn(r,t)?(r[t]=n,!0):hasOwn(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(i[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:r,appContext:o,propsOptions:i}},s){let a;return!!n[s]||e!==EMPTY_OBJ&&hasOwn(e,s)||hasSetupBinding(t,s)||(a=i[0])&&hasOwn(a,s)||hasOwn(r,s)||hasOwn(publicPropertiesMap,s)||hasOwn(o.config.globalProperties,s)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:hasOwn(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function normalizePropsOrEmits(e){return isArray(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}let shouldCacheAccess=!0;function applyOptions(e){const t=resolveMergedOptions(e),n=e.proxy,r=e.ctx;shouldCacheAccess=!1,t.beforeCreate&&callHook$1(t.beforeCreate,e,"bc");const{data:o,computed:i,methods:s,watch:a,provide:c,inject:l,created:d,beforeMount:g,mounted:m,beforeUpdate:y,updated:C,activated:w,deactivated:I,beforeDestroy:j,beforeUnmount:J,destroyed:A,unmounted:k,render:b,renderTracked:E,renderTriggered:D,errorCaptured:O,serverPrefetch:M,expose:B,inheritAttrs:Z,components:q,directives:pe,filters:Se}=t;if(l&&resolveInjections(l,r,null),s)for(const we in s){const _e=s[we];isFunction(_e)&&(r[we]=_e.bind(n))}if(o){const we=o.call(n,n);isObject$4(we)&&(e.data=reactive(we))}if(shouldCacheAccess=!0,i)for(const we in i){const _e=i[we],V=isFunction(_e)?_e.bind(n,n):isFunction(_e.get)?_e.get.bind(n,n):NOOP,ue=!isFunction(_e)&&isFunction(_e.set)?_e.set.bind(n):NOOP,ve=computed({get:V,set:ue});Object.defineProperty(r,we,{enumerable:!0,configurable:!0,get:()=>ve.value,set:ke=>ve.value=ke})}if(a)for(const we in a)createWatcher(a[we],r,n,we);if(c){const we=isFunction(c)?c.call(n):c;Reflect.ownKeys(we).forEach(_e=>{provide(_e,we[_e])})}d&&callHook$1(d,e,"c");function ne(we,_e){isArray(_e)?_e.forEach(V=>we(V.bind(n))):_e&&we(_e.bind(n))}if(ne(onBeforeMount,g),ne(onMounted,m),ne(onBeforeUpdate,y),ne(onUpdated,C),ne(onActivated,w),ne(onDeactivated,I),ne(onErrorCaptured,O),ne(onRenderTracked,E),ne(onRenderTriggered,D),ne(onBeforeUnmount,J),ne(onUnmounted,k),ne(onServerPrefetch,M),isArray(B))if(B.length){const we=e.exposed||(e.exposed={});B.forEach(_e=>{Object.defineProperty(we,_e,{get:()=>n[_e],set:V=>n[_e]=V})})}else e.exposed||(e.exposed={});b&&e.render===NOOP&&(e.render=b),Z!=null&&(e.inheritAttrs=Z),q&&(e.components=q),pe&&(e.directives=pe)}function resolveInjections(e,t,n=NOOP){isArray(e)&&(e=normalizeInject(e));for(const r in e){const o=e[r];let i;isObject$4(o)?"default"in o?i=inject(o.from||r,o.default,!0):i=inject(o.from||r):i=inject(o),isRef(i)?Object.defineProperty(t,r,{enumerable:!0,configurable:!0,get:()=>i.value,set:s=>i.value=s}):t[r]=i}}function callHook$1(e,t,n){callWithAsyncErrorHandling(isArray(e)?e.map(r=>r.bind(t.proxy)):e.bind(t.proxy),t,n)}function createWatcher(e,t,n,r){const o=r.includes(".")?createPathGetter(n,r):()=>n[r];if(isString(e)){const i=t[e];isFunction(i)&&watch(o,i)}else if(isFunction(e))watch(o,e.bind(n));else if(isObject$4(e))if(isArray(e))e.forEach(i=>createWatcher(i,t,n,r));else{const i=isFunction(e.handler)?e.handler.bind(n):t[e.handler];isFunction(i)&&watch(o,i,e)}}function resolveMergedOptions(e){const t=e.type,{mixins:n,extends:r}=t,{mixins:o,optionsCache:i,config:{optionMergeStrategies:s}}=e.appContext,a=i.get(t);let c;return a?c=a:!o.length&&!n&&!r?c=t:(c={},o.length&&o.forEach(l=>mergeOptions(c,l,s,!0)),mergeOptions(c,t,s)),isObject$4(t)&&i.set(t,c),c}function mergeOptions(e,t,n,r=!1){const{mixins:o,extends:i}=t;i&&mergeOptions(e,i,n,!0),o&&o.forEach(s=>mergeOptions(e,s,n,!0));for(const s in t)if(!(r&&s==="expose")){const a=internalOptionMergeStrats[s]||n&&n[s];e[s]=a?a(e[s],t[s]):t[s]}return e}const internalOptionMergeStrats={data:mergeDataFn,props:mergeEmitsOrPropsOptions,emits:mergeEmitsOrPropsOptions,methods:mergeObjectOptions,computed:mergeObjectOptions,beforeCreate:mergeAsArray,created:mergeAsArray,beforeMount:mergeAsArray,mounted:mergeAsArray,beforeUpdate:mergeAsArray,updated:mergeAsArray,beforeDestroy:mergeAsArray,beforeUnmount:mergeAsArray,destroyed:mergeAsArray,unmounted:mergeAsArray,activated:mergeAsArray,deactivated:mergeAsArray,errorCaptured:mergeAsArray,serverPrefetch:mergeAsArray,components:mergeObjectOptions,directives:mergeObjectOptions,watch:mergeWatchOptions,provide:mergeDataFn,inject:mergeInject};function mergeDataFn(e,t){return t?e?function(){return extend(isFunction(e)?e.call(this,this):e,isFunction(t)?t.call(this,this):t)}:t:e}function mergeInject(e,t){return mergeObjectOptions(normalizeInject(e),normalizeInject(t))}function normalizeInject(e){if(isArray(e)){const t={};for(let n=0;n1)return n&&isFunction(t)?t.call(r&&r.proxy):t}}function hasInjectionContext(){return!!(currentInstance||currentRenderingInstance||currentApp)}function initProps(e,t,n,r=!1){const o={},i={};def(i,InternalObjectKey,1),e.propsDefaults=Object.create(null),setFullProps(e,t,o,i);for(const s in e.propsOptions[0])s in o||(o[s]=void 0);n?e.props=r?o:shallowReactive(o):e.type.props?e.props=o:e.props=i,e.attrs=i}function updateProps(e,t,n,r){const{props:o,attrs:i,vnode:{patchFlag:s}}=e,a=toRaw(o),[c]=e.propsOptions;let l=!1;if((r||s>0)&&!(s&16)){if(s&8){const d=e.vnode.dynamicProps;for(let g=0;g{c=!0;const[m,y]=normalizePropsOptions(g,t,!0);extend(s,m),y&&a.push(...y)};!n&&t.mixins.length&&t.mixins.forEach(d),e.extends&&d(e.extends),e.mixins&&e.mixins.forEach(d)}if(!i&&!c)return isObject$4(e)&&r.set(e,EMPTY_ARR),EMPTY_ARR;if(isArray(i))for(let d=0;d-1,y[1]=w<0||C-1||hasOwn(y,"default"))&&a.push(g)}}}const l=[s,a];return isObject$4(e)&&r.set(e,l),l}function validatePropName(e){return e[0]!=="$"}function getType(e){const t=e&&e.toString().match(/^\s*(function|class) (\w+)/);return t?t[2]:e===null?"null":""}function isSameType(e,t){return getType(e)===getType(t)}function getTypeIndex(e,t){return isArray(t)?t.findIndex(n=>isSameType(n,e)):isFunction(t)&&isSameType(t,e)?0:-1}const isInternalKey=e=>e[0]==="_"||e==="$stable",normalizeSlotValue=e=>isArray(e)?e.map(normalizeVNode):[normalizeVNode(e)],normalizeSlot=(e,t,n)=>{if(t._n)return t;const r=withCtx((...o)=>normalizeSlotValue(t(...o)),n);return r._c=!1,r},normalizeObjectSlots=(e,t,n)=>{const r=e._ctx;for(const o in e){if(isInternalKey(o))continue;const i=e[o];if(isFunction(i))t[o]=normalizeSlot(o,i,r);else if(i!=null){const s=normalizeSlotValue(i);t[o]=()=>s}}},normalizeVNodeSlots=(e,t)=>{const n=normalizeSlotValue(t);e.slots.default=()=>n},initSlots=(e,t)=>{if(e.vnode.shapeFlag&32){const n=t._;n?(e.slots=toRaw(t),def(t,"_",n)):normalizeObjectSlots(t,e.slots={})}else e.slots={},t&&normalizeVNodeSlots(e,t);def(e.slots,InternalObjectKey,1)},updateSlots=(e,t,n)=>{const{vnode:r,slots:o}=e;let i=!0,s=EMPTY_OBJ;if(r.shapeFlag&32){const a=t._;a?n&&a===1?i=!1:(extend(o,t),!n&&a===1&&delete o._):(i=!t.$stable,normalizeObjectSlots(t,o)),s=t}else t&&(normalizeVNodeSlots(e,t),s={default:1});if(i)for(const a in o)!isInternalKey(a)&&!(a in s)&&delete o[a]};function setRef(e,t,n,r,o=!1){if(isArray(e)){e.forEach((m,y)=>setRef(m,t&&(isArray(t)?t[y]:t),n,r,o));return}if(isAsyncWrapper(r)&&!o)return;const i=r.shapeFlag&4?getExposeProxy(r.component)||r.component.proxy:r.el,s=o?null:i,{i:a,r:c}=e,l=t&&t.r,d=a.refs===EMPTY_OBJ?a.refs={}:a.refs,g=a.setupState;if(l!=null&&l!==c&&(isString(l)?(d[l]=null,hasOwn(g,l)&&(g[l]=null)):isRef(l)&&(l.value=null)),isFunction(c))callWithErrorHandling(c,a,12,[s,d]);else{const m=isString(c),y=isRef(c);if(m||y){const C=()=>{if(e.f){const w=m?hasOwn(g,c)?g[c]:d[c]:c.value;o?isArray(w)&&remove$1(w,i):isArray(w)?w.includes(i)||w.push(i):m?(d[c]=[i],hasOwn(g,c)&&(g[c]=d[c])):(c.value=[i],e.k&&(d[e.k]=c.value))}else m?(d[c]=s,hasOwn(g,c)&&(g[c]=s)):y&&(c.value=s,e.k&&(d[e.k]=s))};s?(C.id=-1,queuePostRenderEffect(C,n)):C()}}}const queuePostRenderEffect=queueEffectWithSuspense;function createRenderer(e){return baseCreateRenderer(e)}function baseCreateRenderer(e,t){const n=getGlobalThis();n.__VUE__=!0;const{insert:r,remove:o,patchProp:i,createElement:s,createText:a,createComment:c,setText:l,setElementText:d,parentNode:g,nextSibling:m,setScopeId:y=NOOP,insertStaticContent:C}=e,w=(v,T,R,F=null,L=null,H=null,Q=!1,K=null,G=!!T.dynamicChildren)=>{if(v===T)return;v&&!isSameVNodeType(v,T)&&(F=ie(v),ke(v,L,H,!0),v=null),T.patchFlag===-2&&(G=!1,T.dynamicChildren=null);const{type:U,ref:le,shapeFlag:ae}=T;switch(U){case Text:I(v,T,R,F);break;case Comment:j(v,T,R,F);break;case Static:v==null&&J(T,R,F,Q);break;case Fragment:q(v,T,R,F,L,H,Q,K,G);break;default:ae&1?b(v,T,R,F,L,H,Q,K,G):ae&6?pe(v,T,R,F,L,H,Q,K,G):(ae&64||ae&128)&&U.process(v,T,R,F,L,H,Q,K,G,Y)}le!=null&&L&&setRef(le,v&&v.ref,H,T||v,!T)},I=(v,T,R,F)=>{if(v==null)r(T.el=a(T.children),R,F);else{const L=T.el=v.el;T.children!==v.children&&l(L,T.children)}},j=(v,T,R,F)=>{v==null?r(T.el=c(T.children||""),R,F):T.el=v.el},J=(v,T,R,F)=>{[v.el,v.anchor]=C(v.children,T,R,F,v.el,v.anchor)},A=({el:v,anchor:T},R,F)=>{let L;for(;v&&v!==T;)L=m(v),r(v,R,F),v=L;r(T,R,F)},k=({el:v,anchor:T})=>{let R;for(;v&&v!==T;)R=m(v),o(v),v=R;o(T)},b=(v,T,R,F,L,H,Q,K,G)=>{Q=Q||T.type==="svg",v==null?E(T,R,F,L,H,Q,K,G):M(v,T,L,H,Q,K,G)},E=(v,T,R,F,L,H,Q,K)=>{let G,U;const{type:le,props:ae,shapeFlag:fe,transition:X,dirs:ce}=v;if(G=v.el=s(v.type,H,ae&&ae.is,ae),fe&8?d(G,v.children):fe&16&&O(v.children,G,null,F,L,H&&le!=="foreignObject",Q,K),ce&&invokeDirectiveHook(v,null,F,"created"),D(G,v,v.scopeId,Q,F),ae){for(const me in ae)me!=="value"&&!isReservedProp(me)&&i(G,me,null,ae[me],H,v.children,F,L,oe);"value"in ae&&i(G,"value",null,ae.value),(U=ae.onVnodeBeforeMount)&&invokeVNodeHook(U,F,v)}ce&&invokeDirectiveHook(v,null,F,"beforeMount");const re=(!L||L&&!L.pendingBranch)&&X&&!X.persisted;re&&X.beforeEnter(G),r(G,T,R),((U=ae&&ae.onVnodeMounted)||re||ce)&&queuePostRenderEffect(()=>{U&&invokeVNodeHook(U,F,v),re&&X.enter(G),ce&&invokeDirectiveHook(v,null,F,"mounted")},L)},D=(v,T,R,F,L)=>{if(R&&y(v,R),F)for(let H=0;H{for(let U=G;U{const K=T.el=v.el;let{patchFlag:G,dynamicChildren:U,dirs:le}=T;G|=v.patchFlag&16;const ae=v.props||EMPTY_OBJ,fe=T.props||EMPTY_OBJ;let X;R&&toggleRecurse(R,!1),(X=fe.onVnodeBeforeUpdate)&&invokeVNodeHook(X,R,T,v),le&&invokeDirectiveHook(T,v,R,"beforeUpdate"),R&&toggleRecurse(R,!0);const ce=L&&T.type!=="foreignObject";if(U?B(v.dynamicChildren,U,K,R,F,ce,H):Q||_e(v,T,K,null,R,F,ce,H,!1),G>0){if(G&16)Z(K,T,ae,fe,R,F,L);else if(G&2&&ae.class!==fe.class&&i(K,"class",null,fe.class,L),G&4&&i(K,"style",ae.style,fe.style,L),G&8){const re=T.dynamicProps;for(let me=0;me{X&&invokeVNodeHook(X,R,T,v),le&&invokeDirectiveHook(T,v,R,"updated")},F)},B=(v,T,R,F,L,H,Q)=>{for(let K=0;K{if(R!==F){if(R!==EMPTY_OBJ)for(const K in R)!isReservedProp(K)&&!(K in F)&&i(v,K,R[K],null,Q,T.children,L,H,oe);for(const K in F){if(isReservedProp(K))continue;const G=F[K],U=R[K];G!==U&&K!=="value"&&i(v,K,U,G,Q,T.children,L,H,oe)}"value"in F&&i(v,"value",R.value,F.value)}},q=(v,T,R,F,L,H,Q,K,G)=>{const U=T.el=v?v.el:a(""),le=T.anchor=v?v.anchor:a("");let{patchFlag:ae,dynamicChildren:fe,slotScopeIds:X}=T;X&&(K=K?K.concat(X):X),v==null?(r(U,R,F),r(le,R,F),O(T.children,R,le,L,H,Q,K,G)):ae>0&&ae&64&&fe&&v.dynamicChildren?(B(v.dynamicChildren,fe,R,L,H,Q,K),(T.key!=null||L&&T===L.subTree)&&traverseStaticChildren(v,T,!0)):_e(v,T,R,le,L,H,Q,K,G)},pe=(v,T,R,F,L,H,Q,K,G)=>{T.slotScopeIds=K,v==null?T.shapeFlag&512?L.ctx.activate(T,R,F,Q,G):Se(T,R,F,L,H,Q,G):Ee(v,T,G)},Se=(v,T,R,F,L,H,Q)=>{const K=v.component=createComponentInstance(v,F,L);if(isKeepAlive(v)&&(K.ctx.renderer=Y),setupComponent(K),K.asyncDep){if(L&&L.registerDep(K,ne),!v.el){const G=K.subTree=createVNode(Comment);j(null,G,T,R)}return}ne(K,v,T,R,L,H,Q)},Ee=(v,T,R)=>{const F=T.component=v.component;if(shouldUpdateComponent(v,T,R))if(F.asyncDep&&!F.asyncResolved){we(F,T,R);return}else F.next=T,invalidateJob(F.update),F.update();else T.el=v.el,F.vnode=T},ne=(v,T,R,F,L,H,Q)=>{const K=()=>{if(v.isMounted){let{next:le,bu:ae,u:fe,parent:X,vnode:ce}=v,re=le,me;toggleRecurse(v,!1),le?(le.el=ce.el,we(v,le,Q)):le=ce,ae&&invokeArrayFns(ae),(me=le.props&&le.props.onVnodeBeforeUpdate)&&invokeVNodeHook(me,X,le,ce),toggleRecurse(v,!0);const Te=renderComponentRoot(v),Ae=v.subTree;v.subTree=Te,w(Ae,Te,g(Ae.el),ie(Ae),v,L,H),le.el=Te.el,re===null&&updateHOCHostEl(v,Te.el),fe&&queuePostRenderEffect(fe,L),(me=le.props&&le.props.onVnodeUpdated)&&queuePostRenderEffect(()=>invokeVNodeHook(me,X,le,ce),L)}else{let le;const{el:ae,props:fe}=T,{bm:X,m:ce,parent:re}=v,me=isAsyncWrapper(T);if(toggleRecurse(v,!1),X&&invokeArrayFns(X),!me&&(le=fe&&fe.onVnodeBeforeMount)&&invokeVNodeHook(le,re,T),toggleRecurse(v,!0),ae&&Ie){const Te=()=>{v.subTree=renderComponentRoot(v),Ie(ae,v.subTree,v,L,null)};me?T.type.__asyncLoader().then(()=>!v.isUnmounted&&Te()):Te()}else{const Te=v.subTree=renderComponentRoot(v);w(null,Te,R,F,v,L,H),T.el=Te.el}if(ce&&queuePostRenderEffect(ce,L),!me&&(le=fe&&fe.onVnodeMounted)){const Te=T;queuePostRenderEffect(()=>invokeVNodeHook(le,re,Te),L)}(T.shapeFlag&256||re&&isAsyncWrapper(re.vnode)&&re.vnode.shapeFlag&256)&&v.a&&queuePostRenderEffect(v.a,L),v.isMounted=!0,T=R=F=null}},G=v.effect=new ReactiveEffect(K,()=>queueJob(U),v.scope),U=v.update=()=>G.run();U.id=v.uid,toggleRecurse(v,!0),U()},we=(v,T,R)=>{T.component=v;const F=v.vnode.props;v.vnode=T,v.next=null,updateProps(v,T.props,F,R),updateSlots(v,T.children,R),pauseTracking(),flushPreFlushCbs(),resetTracking()},_e=(v,T,R,F,L,H,Q,K,G=!1)=>{const U=v&&v.children,le=v?v.shapeFlag:0,ae=T.children,{patchFlag:fe,shapeFlag:X}=T;if(fe>0){if(fe&128){ue(U,ae,R,F,L,H,Q,K,G);return}else if(fe&256){V(U,ae,R,F,L,H,Q,K,G);return}}X&8?(le&16&&oe(U,L,H),ae!==U&&d(R,ae)):le&16?X&16?ue(U,ae,R,F,L,H,Q,K,G):oe(U,L,H,!0):(le&8&&d(R,""),X&16&&O(ae,R,F,L,H,Q,K,G))},V=(v,T,R,F,L,H,Q,K,G)=>{v=v||EMPTY_ARR,T=T||EMPTY_ARR;const U=v.length,le=T.length,ae=Math.min(U,le);let fe;for(fe=0;fele?oe(v,L,H,!0,!1,ae):O(T,R,F,L,H,Q,K,G,ae)},ue=(v,T,R,F,L,H,Q,K,G)=>{let U=0;const le=T.length;let ae=v.length-1,fe=le-1;for(;U<=ae&&U<=fe;){const X=v[U],ce=T[U]=G?cloneIfMounted(T[U]):normalizeVNode(T[U]);if(isSameVNodeType(X,ce))w(X,ce,R,null,L,H,Q,K,G);else break;U++}for(;U<=ae&&U<=fe;){const X=v[ae],ce=T[fe]=G?cloneIfMounted(T[fe]):normalizeVNode(T[fe]);if(isSameVNodeType(X,ce))w(X,ce,R,null,L,H,Q,K,G);else break;ae--,fe--}if(U>ae){if(U<=fe){const X=fe+1,ce=Xfe)for(;U<=ae;)ke(v[U],L,H,!0),U++;else{const X=U,ce=U,re=new Map;for(U=ce;U<=fe;U++){const $e=T[U]=G?cloneIfMounted(T[U]):normalizeVNode(T[U]);$e.key!=null&&re.set($e.key,U)}let me,Te=0;const Ae=fe-ce+1;let Ce=!1,ye=0;const Oe=new Array(Ae);for(U=0;U=Ae){ke($e,L,H,!0);continue}let Pe;if($e.key!=null)Pe=re.get($e.key);else for(me=ce;me<=fe;me++)if(Oe[me-ce]===0&&isSameVNodeType($e,T[me])){Pe=me;break}Pe===void 0?ke($e,L,H,!0):(Oe[Pe-ce]=U+1,Pe>=ye?ye=Pe:Ce=!0,w($e,T[Pe],R,null,L,H,Q,K,G),Te++)}const Re=Ce?getSequence(Oe):EMPTY_ARR;for(me=Re.length-1,U=Ae-1;U>=0;U--){const $e=ce+U,Pe=T[$e],Ne=$e+1{const{el:H,type:Q,transition:K,children:G,shapeFlag:U}=v;if(U&6){ve(v.component.subTree,T,R,F);return}if(U&128){v.suspense.move(T,R,F);return}if(U&64){Q.move(v,T,R,Y);return}if(Q===Fragment){r(H,T,R);for(let ae=0;aeK.enter(H),L);else{const{leave:ae,delayLeave:fe,afterLeave:X}=K,ce=()=>r(H,T,R),re=()=>{ae(H,()=>{ce(),X&&X()})};fe?fe(H,ce,re):re()}else r(H,T,R)},ke=(v,T,R,F=!1,L=!1)=>{const{type:H,props:Q,ref:K,children:G,dynamicChildren:U,shapeFlag:le,patchFlag:ae,dirs:fe}=v;if(K!=null&&setRef(K,null,R,v,!0),le&256){T.ctx.deactivate(v);return}const X=le&1&&fe,ce=!isAsyncWrapper(v);let re;if(ce&&(re=Q&&Q.onVnodeBeforeUnmount)&&invokeVNodeHook(re,T,v),le&6)se(v.component,R,F);else{if(le&128){v.suspense.unmount(R,F);return}X&&invokeDirectiveHook(v,null,T,"beforeUnmount"),le&64?v.type.remove(v,T,R,L,Y,F):U&&(H!==Fragment||ae>0&&ae&64)?oe(U,T,R,!1,!0):(H===Fragment&&ae&384||!L&&le&16)&&oe(G,T,R),F&&N(v)}(ce&&(re=Q&&Q.onVnodeUnmounted)||X)&&queuePostRenderEffect(()=>{re&&invokeVNodeHook(re,T,v),X&&invokeDirectiveHook(v,null,T,"unmounted")},R)},N=v=>{const{type:T,el:R,anchor:F,transition:L}=v;if(T===Fragment){te(R,F);return}if(T===Static){k(v);return}const H=()=>{o(R),L&&!L.persisted&&L.afterLeave&&L.afterLeave()};if(v.shapeFlag&1&&L&&!L.persisted){const{leave:Q,delayLeave:K}=L,G=()=>Q(R,H);K?K(v.el,H,G):G()}else H()},te=(v,T)=>{let R;for(;v!==T;)R=m(v),o(v),v=R;o(T)},se=(v,T,R)=>{const{bum:F,scope:L,update:H,subTree:Q,um:K}=v;F&&invokeArrayFns(F),L.stop(),H&&(H.active=!1,ke(Q,v,T,R)),K&&queuePostRenderEffect(K,T),queuePostRenderEffect(()=>{v.isUnmounted=!0},T),T&&T.pendingBranch&&!T.isUnmounted&&v.asyncDep&&!v.asyncResolved&&v.suspenseId===T.pendingId&&(T.deps--,T.deps===0&&T.resolve())},oe=(v,T,R,F=!1,L=!1,H=0)=>{for(let Q=H;Qv.shapeFlag&6?ie(v.component.subTree):v.shapeFlag&128?v.suspense.next():m(v.anchor||v.el),ge=(v,T,R)=>{v==null?T._vnode&&ke(T._vnode,null,null,!0):w(T._vnode||null,v,T,null,null,null,R),flushPreFlushCbs(),flushPostFlushCbs(),T._vnode=v},Y={p:w,um:ke,m:ve,r:N,mt:Se,mc:O,pc:_e,pbc:B,n:ie,o:e};let xe,Ie;return t&&([xe,Ie]=t(Y)),{render:ge,hydrate:xe,createApp:createAppAPI(ge,xe)}}function toggleRecurse({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function traverseStaticChildren(e,t,n=!1){const r=e.children,o=t.children;if(isArray(r)&&isArray(o))for(let i=0;i>1,e[n[a]]0&&(t[r]=n[i-1]),n[i]=r)}}for(i=n.length,s=n[i-1];i-- >0;)n[i]=s,s=t[s];return n}const isTeleport=e=>e.__isTeleport,Fragment=Symbol.for("v-fgt"),Text=Symbol.for("v-txt"),Comment=Symbol.for("v-cmt"),Static=Symbol.for("v-stc"),blockStack=[];let currentBlock=null;function openBlock(e=!1){blockStack.push(currentBlock=e?null:[])}function closeBlock(){blockStack.pop(),currentBlock=blockStack[blockStack.length-1]||null}let isBlockTreeEnabled=1;function setBlockTracking(e){isBlockTreeEnabled+=e}function setupBlock(e){return e.dynamicChildren=isBlockTreeEnabled>0?currentBlock||EMPTY_ARR:null,closeBlock(),isBlockTreeEnabled>0&¤tBlock&¤tBlock.push(e),e}function createElementBlock(e,t,n,r,o,i){return setupBlock(createBaseVNode(e,t,n,r,o,i,!0))}function createBlock(e,t,n,r,o){return setupBlock(createVNode(e,t,n,r,o,!0))}function isVNode(e){return e?e.__v_isVNode===!0:!1}function isSameVNodeType(e,t){return e.type===t.type&&e.key===t.key}const InternalObjectKey="__vInternal",normalizeKey=({key:e})=>e??null,normalizeRef=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?isString(e)||isRef(e)||isFunction(e)?{i:currentRenderingInstance,r:e,k:t,f:!!n}:e:null);function createBaseVNode(e,t=null,n=null,r=0,o=null,i=e===Fragment?0:1,s=!1,a=!1){const c={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&normalizeKey(t),ref:t&&normalizeRef(t),scopeId:currentScopeId,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:i,patchFlag:r,dynamicProps:o,dynamicChildren:null,appContext:null,ctx:currentRenderingInstance};return a?(normalizeChildren(c,n),i&128&&e.normalize(c)):n&&(c.shapeFlag|=isString(n)?8:16),isBlockTreeEnabled>0&&!s&¤tBlock&&(c.patchFlag>0||i&6)&&c.patchFlag!==32&¤tBlock.push(c),c}const createVNode=_createVNode;function _createVNode(e,t=null,n=null,r=0,o=null,i=!1){if((!e||e===NULL_DYNAMIC_COMPONENT)&&(e=Comment),isVNode(e)){const a=cloneVNode(e,t,!0);return n&&normalizeChildren(a,n),isBlockTreeEnabled>0&&!i&¤tBlock&&(a.shapeFlag&6?currentBlock[currentBlock.indexOf(e)]=a:currentBlock.push(a)),a.patchFlag|=-2,a}if(isClassComponent(e)&&(e=e.__vccOpts),t){t=guardReactiveProps(t);let{class:a,style:c}=t;a&&!isString(a)&&(t.class=normalizeClass(a)),isObject$4(c)&&(isProxy(c)&&!isArray(c)&&(c=extend({},c)),t.style=normalizeStyle(c))}const s=isString(e)?1:isSuspense(e)?128:isTeleport(e)?64:isObject$4(e)?4:isFunction(e)?2:0;return createBaseVNode(e,t,n,r,o,s,i,!0)}function guardReactiveProps(e){return e?isProxy(e)||InternalObjectKey in e?extend({},e):e:null}function cloneVNode(e,t,n=!1){const{props:r,ref:o,patchFlag:i,children:s}=e,a=t?mergeProps(r||{},t):r;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:a,key:a&&normalizeKey(a),ref:t&&t.ref?n&&o?isArray(o)?o.concat(normalizeRef(t)):[o,normalizeRef(t)]:normalizeRef(t):o,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:s,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Fragment?i===-1?16:i|16:i,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&cloneVNode(e.ssContent),ssFallback:e.ssFallback&&cloneVNode(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce}}function createTextVNode(e=" ",t=0){return createVNode(Text,null,e,t)}function createStaticVNode(e,t){const n=createVNode(Static,null,e);return n.staticCount=t,n}function createCommentVNode(e="",t=!1){return t?(openBlock(),createBlock(Comment,null,e)):createVNode(Comment,null,e)}function normalizeVNode(e){return e==null||typeof e=="boolean"?createVNode(Comment):isArray(e)?createVNode(Fragment,null,e.slice()):typeof e=="object"?cloneIfMounted(e):createVNode(Text,null,String(e))}function cloneIfMounted(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:cloneVNode(e)}function normalizeChildren(e,t){let n=0;const{shapeFlag:r}=e;if(t==null)t=null;else if(isArray(t))n=16;else if(typeof t=="object")if(r&65){const o=t.default;o&&(o._c&&(o._d=!1),normalizeChildren(e,o()),o._c&&(o._d=!0));return}else{n=32;const o=t._;!o&&!(InternalObjectKey in t)?t._ctx=currentRenderingInstance:o===3&¤tRenderingInstance&&(currentRenderingInstance.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else isFunction(t)?(t={default:t,_ctx:currentRenderingInstance},n=32):(t=String(t),r&64?(n=16,t=[createTextVNode(t)]):n=8);e.children=t,e.shapeFlag|=n}function mergeProps(...e){const t={};for(let n=0;ncurrentInstance||currentRenderingInstance;let internalSetCurrentInstance,globalCurrentInstanceSetters,settersKey="__VUE_INSTANCE_SETTERS__";(globalCurrentInstanceSetters=getGlobalThis()[settersKey])||(globalCurrentInstanceSetters=getGlobalThis()[settersKey]=[]),globalCurrentInstanceSetters.push(e=>currentInstance=e),internalSetCurrentInstance=e=>{globalCurrentInstanceSetters.length>1?globalCurrentInstanceSetters.forEach(t=>t(e)):globalCurrentInstanceSetters[0](e)};const setCurrentInstance=e=>{internalSetCurrentInstance(e),e.scope.on()},unsetCurrentInstance=()=>{currentInstance&¤tInstance.scope.off(),internalSetCurrentInstance(null)};function isStatefulComponent(e){return e.vnode.shapeFlag&4}let isInSSRComponentSetup=!1;function setupComponent(e,t=!1){isInSSRComponentSetup=t;const{props:n,children:r}=e.vnode,o=isStatefulComponent(e);initProps(e,n,o,t),initSlots(e,r);const i=o?setupStatefulComponent(e,t):void 0;return isInSSRComponentSetup=!1,i}function setupStatefulComponent(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=markRaw(new Proxy(e.ctx,PublicInstanceProxyHandlers));const{setup:r}=n;if(r){const o=e.setupContext=r.length>1?createSetupContext(e):null;setCurrentInstance(e),pauseTracking();const i=callWithErrorHandling(r,e,0,[e.props,o]);if(resetTracking(),unsetCurrentInstance(),isPromise(i)){if(i.then(unsetCurrentInstance,unsetCurrentInstance),t)return i.then(s=>{handleSetupResult(e,s,t)}).catch(s=>{handleError(s,e,0)});e.asyncDep=i}else handleSetupResult(e,i,t)}else finishComponentSetup(e,t)}function handleSetupResult(e,t,n){isFunction(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:isObject$4(t)&&(e.setupState=proxyRefs(t)),finishComponentSetup(e,n)}let compile;function finishComponentSetup(e,t,n){const r=e.type;if(!e.render){if(!t&&compile&&!r.render){const o=r.template||resolveMergedOptions(e).template;if(o){const{isCustomElement:i,compilerOptions:s}=e.appContext.config,{delimiters:a,compilerOptions:c}=r,l=extend(extend({isCustomElement:i,delimiters:a},s),c);r.render=compile(o,l)}}e.render=r.render||NOOP}setCurrentInstance(e),pauseTracking(),applyOptions(e),resetTracking(),unsetCurrentInstance()}function getAttrsProxy(e){return e.attrsProxy||(e.attrsProxy=new Proxy(e.attrs,{get(t,n){return track(e,"get","$attrs"),t[n]}}))}function createSetupContext(e){const t=n=>{e.exposed=n||{}};return{get attrs(){return getAttrsProxy(e)},slots:e.slots,emit:e.emit,expose:t}}function getExposeProxy(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(proxyRefs(markRaw(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in publicPropertiesMap)return publicPropertiesMap[n](e)},has(t,n){return n in t||n in publicPropertiesMap}}))}function getComponentName(e,t=!0){return isFunction(e)?e.displayName||e.name:e.name||t&&e.__name}function isClassComponent(e){return isFunction(e)&&"__vccOpts"in e}const computed=(e,t)=>computed$1(e,t,isInSSRComponentSetup);function h(e,t,n){const r=arguments.length;return r===2?isObject$4(t)&&!isArray(t)?isVNode(t)?createVNode(e,null,[t]):createVNode(e,t):createVNode(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):r===3&&isVNode(n)&&(n=[n]),createVNode(e,t,n))}const ssrContextKey=Symbol.for("v-scx"),useSSRContext=()=>inject(ssrContextKey),version="3.3.4",svgNS="http://www.w3.org/2000/svg",doc=typeof document<"u"?document:null,templateContainer=doc&&doc.createElement("template"),nodeOps={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,r)=>{const o=t?doc.createElementNS(svgNS,e):doc.createElement(e,n?{is:n}:void 0);return e==="select"&&r&&r.multiple!=null&&o.setAttribute("multiple",r.multiple),o},createText:e=>doc.createTextNode(e),createComment:e=>doc.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>doc.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,r,o,i){const s=n?n.previousSibling:t.lastChild;if(o&&(o===i||o.nextSibling))for(;t.insertBefore(o.cloneNode(!0),n),!(o===i||!(o=o.nextSibling)););else{templateContainer.innerHTML=r?`${e}`:e;const a=templateContainer.content;if(r){const c=a.firstChild;for(;c.firstChild;)a.appendChild(c.firstChild);a.removeChild(c)}t.insertBefore(a,n)}return[s?s.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}};function patchClass(e,t,n){const r=e._vtc;r&&(t=(t?[t,...r]:[...r]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}function patchStyle(e,t,n){const r=e.style,o=isString(n);if(n&&!o){if(t&&!isString(t))for(const i in t)n[i]==null&&setStyle(r,i,"");for(const i in n)setStyle(r,i,n[i])}else{const i=r.display;o?t!==n&&(r.cssText=n):t&&e.removeAttribute("style"),"_vod"in e&&(r.display=i)}}const importantRE=/\s*!important$/;function setStyle(e,t,n){if(isArray(n))n.forEach(r=>setStyle(e,t,r));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const r=autoPrefix(e,t);importantRE.test(n)?e.setProperty(hyphenate(r),n.replace(importantRE,""),"important"):e[r]=n}}const prefixes=["Webkit","Moz","ms"],prefixCache={};function autoPrefix(e,t){const n=prefixCache[t];if(n)return n;let r=camelize(t);if(r!=="filter"&&r in e)return prefixCache[t]=r;r=capitalize(r);for(let o=0;ocachedNow||(p$1.then(()=>cachedNow=0),cachedNow=Date.now());function createInvoker(e,t){const n=r=>{if(!r._vts)r._vts=Date.now();else if(r._vts<=n.attached)return;callWithAsyncErrorHandling(patchStopImmediatePropagation(r,n.value),t,5,[r])};return n.value=e,n.attached=getNow(),n}function patchStopImmediatePropagation(e,t){if(isArray(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(r=>o=>!o._stopped&&r&&r(o))}else return t}const nativeOnRE=/^on[a-z]/,patchProp=(e,t,n,r,o=!1,i,s,a,c)=>{t==="class"?patchClass(e,r,o):t==="style"?patchStyle(e,n,r):isOn(t)?isModelListener(t)||patchEvent(e,t,n,r,s):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):shouldSetAsProp(e,t,r,o))?patchDOMProp(e,t,r,i,s,a,c):(t==="true-value"?e._trueValue=r:t==="false-value"&&(e._falseValue=r),patchAttr(e,t,r,o))};function shouldSetAsProp(e,t,n,r){return r?!!(t==="innerHTML"||t==="textContent"||t in e&&nativeOnRE.test(t)&&isFunction(n)):t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA"||nativeOnRE.test(t)&&isString(n)?!1:t in e}function useCssVars(e){const t=getCurrentInstance();if(!t)return;const n=t.ut=(o=e(t.proxy))=>{Array.from(document.querySelectorAll(`[data-v-owner="${t.uid}"]`)).forEach(i=>setVarsOnNode(i,o))},r=()=>{const o=e(t.proxy);setVarsOnVNode(t.subTree,o),n(o)};watchPostEffect(r),onMounted(()=>{const o=new MutationObserver(r);o.observe(t.subTree.el.parentNode,{childList:!0}),onUnmounted(()=>o.disconnect())})}function setVarsOnVNode(e,t){if(e.shapeFlag&128){const n=e.suspense;e=n.activeBranch,n.pendingBranch&&!n.isHydrating&&n.effects.push(()=>{setVarsOnVNode(n.activeBranch,t)})}for(;e.component;)e=e.component.subTree;if(e.shapeFlag&1&&e.el)setVarsOnNode(e.el,t);else if(e.type===Fragment)e.children.forEach(n=>setVarsOnVNode(n,t));else if(e.type===Static){let{el:n,anchor:r}=e;for(;n&&(setVarsOnNode(n,t),n!==r);)n=n.nextSibling}}function setVarsOnNode(e,t){if(e.nodeType===1){const n=e.style;for(const r in t)n.setProperty(`--${r}`,t[r])}}const TRANSITION="transition",ANIMATION="animation",Transition=(e,{slots:t})=>h(BaseTransition,resolveTransitionProps(e),t);Transition.displayName="Transition";const DOMTransitionPropsValidators={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String};Transition.props=extend({},BaseTransitionPropsValidators,DOMTransitionPropsValidators);const callHook=(e,t=[])=>{isArray(e)?e.forEach(n=>n(...t)):e&&e(...t)},hasExplicitCallback=e=>e?isArray(e)?e.some(t=>t.length>1):e.length>1:!1;function resolveTransitionProps(e){const t={};for(const q in e)q in DOMTransitionPropsValidators||(t[q]=e[q]);if(e.css===!1)return t;const{name:n="v",type:r,duration:o,enterFromClass:i=`${n}-enter-from`,enterActiveClass:s=`${n}-enter-active`,enterToClass:a=`${n}-enter-to`,appearFromClass:c=i,appearActiveClass:l=s,appearToClass:d=a,leaveFromClass:g=`${n}-leave-from`,leaveActiveClass:m=`${n}-leave-active`,leaveToClass:y=`${n}-leave-to`}=e,C=normalizeDuration(o),w=C&&C[0],I=C&&C[1],{onBeforeEnter:j,onEnter:J,onEnterCancelled:A,onLeave:k,onLeaveCancelled:b,onBeforeAppear:E=j,onAppear:D=J,onAppearCancelled:O=A}=t,M=(q,pe,Se)=>{removeTransitionClass(q,pe?d:a),removeTransitionClass(q,pe?l:s),Se&&Se()},B=(q,pe)=>{q._isLeaving=!1,removeTransitionClass(q,g),removeTransitionClass(q,y),removeTransitionClass(q,m),pe&&pe()},Z=q=>(pe,Se)=>{const Ee=q?D:J,ne=()=>M(pe,q,Se);callHook(Ee,[pe,ne]),nextFrame(()=>{removeTransitionClass(pe,q?c:i),addTransitionClass(pe,q?d:a),hasExplicitCallback(Ee)||whenTransitionEnds(pe,r,w,ne)})};return extend(t,{onBeforeEnter(q){callHook(j,[q]),addTransitionClass(q,i),addTransitionClass(q,s)},onBeforeAppear(q){callHook(E,[q]),addTransitionClass(q,c),addTransitionClass(q,l)},onEnter:Z(!1),onAppear:Z(!0),onLeave(q,pe){q._isLeaving=!0;const Se=()=>B(q,pe);addTransitionClass(q,g),forceReflow(),addTransitionClass(q,m),nextFrame(()=>{q._isLeaving&&(removeTransitionClass(q,g),addTransitionClass(q,y),hasExplicitCallback(k)||whenTransitionEnds(q,r,I,Se))}),callHook(k,[q,Se])},onEnterCancelled(q){M(q,!1),callHook(A,[q])},onAppearCancelled(q){M(q,!0),callHook(O,[q])},onLeaveCancelled(q){B(q),callHook(b,[q])}})}function normalizeDuration(e){if(e==null)return null;if(isObject$4(e))return[NumberOf(e.enter),NumberOf(e.leave)];{const t=NumberOf(e);return[t,t]}}function NumberOf(e){return toNumber$1(e)}function addTransitionClass(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e._vtc||(e._vtc=new Set)).add(t)}function removeTransitionClass(e,t){t.split(/\s+/).forEach(r=>r&&e.classList.remove(r));const{_vtc:n}=e;n&&(n.delete(t),n.size||(e._vtc=void 0))}function nextFrame(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let endId=0;function whenTransitionEnds(e,t,n,r){const o=e._endId=++endId,i=()=>{o===e._endId&&r()};if(n)return setTimeout(i,n);const{type:s,timeout:a,propCount:c}=getTransitionInfo(e,t);if(!s)return r();const l=s+"end";let d=0;const g=()=>{e.removeEventListener(l,m),i()},m=y=>{y.target===e&&++d>=c&&g()};setTimeout(()=>{d(n[C]||"").split(", "),o=r(`${TRANSITION}Delay`),i=r(`${TRANSITION}Duration`),s=getTimeout(o,i),a=r(`${ANIMATION}Delay`),c=r(`${ANIMATION}Duration`),l=getTimeout(a,c);let d=null,g=0,m=0;t===TRANSITION?s>0&&(d=TRANSITION,g=s,m=i.length):t===ANIMATION?l>0&&(d=ANIMATION,g=l,m=c.length):(g=Math.max(s,l),d=g>0?s>l?TRANSITION:ANIMATION:null,m=d?d===TRANSITION?i.length:c.length:0);const y=d===TRANSITION&&/\b(transform|all)(,|$)/.test(r(`${TRANSITION}Property`).toString());return{type:d,timeout:g,propCount:m,hasTransform:y}}function getTimeout(e,t){for(;e.lengthtoMs(n)+toMs(e[r])))}function toMs(e){return Number(e.slice(0,-1).replace(",","."))*1e3}function forceReflow(){return document.body.offsetHeight}const getModelAssigner=e=>{const t=e.props["onUpdate:modelValue"]||!1;return isArray(t)?n=>invokeArrayFns(t,n):t};function onCompositionStart(e){e.target.composing=!0}function onCompositionEnd(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const vModelText={created(e,{modifiers:{lazy:t,trim:n,number:r}},o){e._assign=getModelAssigner(o);const i=r||o.props&&o.props.type==="number";addEventListener(e,t?"change":"input",s=>{if(s.target.composing)return;let a=e.value;n&&(a=a.trim()),i&&(a=looseToNumber(a)),e._assign(a)}),n&&addEventListener(e,"change",()=>{e.value=e.value.trim()}),t||(addEventListener(e,"compositionstart",onCompositionStart),addEventListener(e,"compositionend",onCompositionEnd),addEventListener(e,"change",onCompositionEnd))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,modifiers:{lazy:n,trim:r,number:o}},i){if(e._assign=getModelAssigner(i),e.composing||document.activeElement===e&&e.type!=="range"&&(n||r&&e.value.trim()===t||(o||e.type==="number")&&looseToNumber(e.value)===t))return;const s=t??"";e.value!==s&&(e.value=s)}},systemModifiers=["ctrl","shift","alt","meta"],modifierGuards={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&e.button!==0,middle:e=>"button"in e&&e.button!==1,right:e=>"button"in e&&e.button!==2,exact:(e,t)=>systemModifiers.some(n=>e[`${n}Key`]&&!t.includes(n))},withModifiers=(e,t)=>(n,...r)=>{for(let o=0;o{const t=ensureRenderer().createApp(...e),{mount:n}=t;return t.mount=r=>{const o=normalizeContainer(r);if(!o)return;const i=t._component;!isFunction(i)&&!i.render&&!i.template&&(i.template=o.innerHTML),o.innerHTML="";const s=n(o,!1,o instanceof SVGElement);return o instanceof Element&&(o.removeAttribute("v-cloak"),o.setAttribute("data-v-app","")),s},t};function normalizeContainer(e){return isString(e)?document.querySelector(e):e}function isObject$3(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}function getRawTag(e){var t=hasOwnProperty.call(e,symToStringTag$1),n=e[symToStringTag$1];try{e[symToStringTag$1]=void 0;var r=!0}catch{}var o=nativeObjectToString.call(e);return r&&(t?e[symToStringTag$1]=n:delete e[symToStringTag$1]),o}function objectToString(e){return nativeObjectToString$1.call(e)}function baseGetTag(e){return e==null?e===void 0?undefinedTag:nullTag:symToStringTag&&symToStringTag in Object(e)?_getRawTag(e):_objectToString(e)}function isObjectLike(e){return e!=null&&typeof e=="object"}function isSymbol(e){return typeof e=="symbol"||isObjectLike_1(e)&&_baseGetTag(e)==symbolTag}function toNumber(e){if(typeof e=="number")return e;if(isSymbol_1(e))return NAN;if(isObject_1(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=isObject_1(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=e.replace(reTrim,"");var n=reIsBinary.test(e);return n||reIsOctal.test(e)?freeParseInt(e.slice(2),n?2:8):reIsBadHex.test(e)?NAN:+e}function debounce$1(e,t,n){function r(k){var b=d,E=g;return d=g=void 0,I=k,y=e.apply(E,b)}function o(k){return I=k,C=setTimeout(a,t),j?r(k):y}function i(k){var b=k-I,E=t-(k-w);return J?nativeMin(E,m-b):E}function s(k){var b=k-w,E=k-I;return w===void 0||b>=t||b<0||J&&E>=m}function a(){var k=now_1();if(s(k))return c(k);C=setTimeout(a,i(k))}function c(k){return C=void 0,A&&d?r(k):(d=g=void 0,y)}function l(){var k=now_1(),b=s(k);if(d=arguments,g=this,w=k,b){if(C===void 0)return o(w);if(J)return C=setTimeout(a,t),r(w)}return C===void 0&&(C=setTimeout(a,t)),y}var d,g,m,y,C,w,I=0,j=!1,J=!1,A=!0;if(typeof e!="function")throw new TypeError(FUNC_ERROR_TEXT$1);return t=toNumber_1(t)||0,isObject_1(n)&&(j=!!n.leading,m=(J="maxWait"in n)?nativeMax(toNumber_1(n.maxWait)||0,t):m,A="trailing"in n?!!n.trailing:A),l.cancel=function(){C!==void 0&&clearTimeout(C),I=0,d=w=g=C=void 0},l.flush=function(){return C===void 0?y:c(now_1())},l}function throttle$1(e,t,n){var r=!0,o=!0;if(typeof e!="function")throw new TypeError(FUNC_ERROR_TEXT);return isObject_1(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),debounce_1(e,t,{leading:r,maxWait:t,trailing:o})}function ExitIntent(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t={threshold:20,maxDisplays:1,eventThrottle:200,onExitIntent:function(){}};return function(){var n=_extends({},t,e),r=new Map,o=0,i=function(c){var l=r.get(c),d=l.eventName,g=l.callback;document.removeEventListener(d,g),r.delete(c)},s=function(c){return c<=n.threshold&&o=n.maxDisplays&&a())},n.eventThrottle)),a}()}var isObject_1=isObject$3,commonjsGlobal$1=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},freeGlobal=typeof commonjsGlobal$1=="object"&&commonjsGlobal$1&&commonjsGlobal$1.Object===Object&&commonjsGlobal$1,_freeGlobal=freeGlobal,freeSelf=typeof self=="object"&&self&&self.Object===Object&&self,root=_freeGlobal||freeSelf||Function("return this")(),_root=root,now=function(){return _root.Date.now()},now_1=now,Symbol$1=_root.Symbol,_Symbol=Symbol$1,objectProto=Object.prototype,hasOwnProperty=objectProto.hasOwnProperty,nativeObjectToString=objectProto.toString,symToStringTag$1=_Symbol?_Symbol.toStringTag:void 0,_getRawTag=getRawTag,objectProto$1=Object.prototype,nativeObjectToString$1=objectProto$1.toString,_objectToString=objectToString,nullTag="[object Null]",undefinedTag="[object Undefined]",symToStringTag=_Symbol?_Symbol.toStringTag:void 0,_baseGetTag=baseGetTag,isObjectLike_1=isObjectLike,symbolTag="[object Symbol]",isSymbol_1=isSymbol,NAN=NaN,reTrim=/^\s+|\s+$/g,reIsBadHex=/^[-+]0x[0-9a-f]+$/i,reIsBinary=/^0b[01]+$/i,reIsOctal=/^0o[0-7]+$/i,freeParseInt=parseInt,toNumber_1=toNumber,FUNC_ERROR_TEXT$1="Expected a function",nativeMax=Math.max,nativeMin=Math.min,debounce_1=debounce$1,FUNC_ERROR_TEXT="Expected a function",throttle_1=throttle$1,_extends=Object.assign||function(e){for(var t=1;t1?a-1:0),l=1;lactivePinia=e,piniaSymbol=Symbol();function isPlainObject(e){return e&&typeof e=="object"&&Object.prototype.toString.call(e)==="[object Object]"&&typeof e.toJSON!="function"}var MutationType;(function(e){e.direct="direct",e.patchObject="patch object",e.patchFunction="patch function"})(MutationType||(MutationType={}));function createPinia(){const e=effectScope(!0),t=e.run(()=>ref({}));let n=[],r=[];const o=markRaw({install(i){setActivePinia(o),o._a=i,i.provide(piniaSymbol,o),i.config.globalProperties.$pinia=o,r.forEach(s=>n.push(s)),r=[]},use(i){return!this._a&&!isVue2?r.push(i):n.push(i),this},_p:n,_a:null,_e:e,_s:new Map,state:t});return o}const noop$1=()=>{};function addSubscription(e,t,n,r=noop$1){e.push(t);const o=()=>{const i=e.indexOf(t);i>-1&&(e.splice(i,1),r())};return!n&&getCurrentScope()&&onScopeDispose(o),o}function triggerSubscriptions(e,...t){e.slice().forEach(n=>{n(...t)})}const fallbackRunWithContext=e=>e();function mergeReactiveObjects(e,t){e instanceof Map&&t instanceof Map&&t.forEach((n,r)=>e.set(r,n)),e instanceof Set&&t instanceof Set&&t.forEach(e.add,e);for(const n in t){if(!t.hasOwnProperty(n))continue;const r=t[n],o=e[n];isPlainObject(o)&&isPlainObject(r)&&e.hasOwnProperty(n)&&!isRef(r)&&!isReactive(r)?e[n]=mergeReactiveObjects(o,r):e[n]=r}return e}const skipHydrateSymbol=Symbol();function shouldHydrate(e){return!isPlainObject(e)||!e.hasOwnProperty(skipHydrateSymbol)}const{assign}=Object;function isComputed(e){return!!(isRef(e)&&e.effect)}function createOptionsStore(e,t,n,r){const{state:o,actions:i,getters:s}=t,a=n.state.value[e];let c;function l(){a||(n.state.value[e]=o?o():{});const d=toRefs(n.state.value[e]);return assign(d,i,Object.keys(s||{}).reduce((g,m)=>(g[m]=markRaw(computed(()=>{setActivePinia(n);const y=n._s.get(e);return s[m].call(y,y)})),g),{}))}return c=createSetupStore(e,l,t,n,r,!0),c}function createSetupStore(e,t,n={},r,o,i){let s;const a=assign({actions:{}},n),c={deep:!0};let l,d,g=[],m=[],y;const C=r.state.value[e];!i&&!C&&(r.state.value[e]={}),ref({});let w;function I(O){let M;l=d=!1,typeof O=="function"?(O(r.state.value[e]),M={type:MutationType.patchFunction,storeId:e,events:y}):(mergeReactiveObjects(r.state.value[e],O),M={type:MutationType.patchObject,payload:O,storeId:e,events:y});const B=w=Symbol();nextTick().then(()=>{w===B&&(l=!0)}),d=!0,triggerSubscriptions(g,M,r.state.value[e])}const j=i?function(){const{state:M}=n,B=M?M():{};this.$patch(Z=>{assign(Z,B)})}:noop$1;function J(){s.stop(),g=[],m=[],r._s.delete(e)}function A(O,M){return function(){setActivePinia(r);const B=Array.from(arguments),Z=[],q=[];function pe(ne){Z.push(ne)}function Se(ne){q.push(ne)}triggerSubscriptions(m,{args:B,name:O,store:b,after:pe,onError:Se});let Ee;try{Ee=M.apply(this&&this.$id===e?this:b,B)}catch(ne){throw triggerSubscriptions(q,ne),ne}return Ee instanceof Promise?Ee.then(ne=>(triggerSubscriptions(Z,ne),ne)).catch(ne=>(triggerSubscriptions(q,ne),Promise.reject(ne))):(triggerSubscriptions(Z,Ee),Ee)}}const k={_p:r,$id:e,$onAction:addSubscription.bind(null,m),$patch:I,$reset:j,$subscribe(O,M={}){const B=addSubscription(g,O,M.detached,()=>Z()),Z=s.run(()=>watch(()=>r.state.value[e],q=>{(M.flush==="sync"?d:l)&&O({storeId:e,type:MutationType.direct,events:y},q)},assign({},c,M)));return B},$dispose:J},b=reactive(k);r._s.set(e,b);const E=r._a&&r._a.runWithContext||fallbackRunWithContext,D=r._e.run(()=>(s=effectScope(),E(()=>s.run(t))));for(const O in D){const M=D[O];if(isRef(M)&&!isComputed(M)||isReactive(M))i||(C&&shouldHydrate(M)&&(isRef(M)?M.value=C[O]:mergeReactiveObjects(M,C[O])),r.state.value[e][O]=M);else if(typeof M=="function"){const B=A(O,M);D[O]=B,a.actions[O]=M}}return assign(b,D),assign(toRaw(b),D),Object.defineProperty(b,"$state",{get:()=>r.state.value[e],set:O=>{I(M=>{assign(M,O)})}}),r._p.forEach(O=>{assign(b,s.run(()=>O({store:b,app:r._a,pinia:r,options:a})))}),C&&i&&n.hydrate&&n.hydrate(b.$state,C),l=!0,d=!0,b}function defineStore(e,t,n){let r,o;const i=typeof t=="function";typeof e=="string"?(r=e,o=i?n:t):(o=e,r=e.id);function s(a,c){const l=hasInjectionContext();return a=a||(l?inject(piniaSymbol,null):null),a&&setActivePinia(a),a=activePinia,a._s.has(r)||(i?createSetupStore(r,t,o,a):createOptionsStore(r,o,a)),a._s.get(r)}return s.$id=r,s}function storeToRefs(e){{e=toRaw(e);const t={};for(const n in e){const r=e[n];(isRef(r)||isReactive(r))&&(t[n]=toRef$1(e,n))}return t}}const useMainStore=defineStore("main",{state:()=>({currentSite:{siteName:null,siteUrl:null,source:null,uniqueId:null},currency:"USD",permissions:[],campaigns:[],countryCode:"UNKNOWN",pageLoadedAt:new Date,activePop:null,activeBar:null,activeBtns:[],pops:[],actions:[],popSettings:null,popDynamicVars:{},previewMode:!1,editMode:!1,activeButton:null,buttons:[]}),getters:{showWatermark:e=>!e.permissions.includes("WATERMARK_DISABLED"),popCampaigns:e=>e.campaigns.filter(t=>t.campaign_type==="pop"),barCampaigns:e=>e.campaigns.filter(t=>t.campaign_type==="bar"),btnCampaigns:e=>e.campaigns.filter(t=>t.reopen_btn_enabled),permissionsWithOverrides(e){if(!e.currentSite)return[];const t=JSON.parse(localStorage.getItem("permissions")||"[]");return t?[...e.permissions,...t]:e.permissions}}}),$8f392239b348c51c$var$divisors={days:864e5,hours:36e5,minutes:6e4,seconds:1e3},$8f392239b348c51c$var$round=e=>parseFloat(e.toFixed(1));class $8f392239b348c51c$export$9099ad97b570f7c{constructor(t,n){this.days=()=>$8f392239b348c51c$var$round(this.difference/$8f392239b348c51c$var$divisors.days),this.weeks=()=>$8f392239b348c51c$var$round(this.days()/7),this.hours=()=>$8f392239b348c51c$var$round(this.difference/$8f392239b348c51c$var$divisors.hours),this.minutes=()=>$8f392239b348c51c$var$round(this.difference/$8f392239b348c51c$var$divisors.minutes),this.seconds=()=>$8f392239b348c51c$var$round(this.difference/$8f392239b348c51c$var$divisors.seconds),this.months=()=>{let r=(this.date1.getFullYear()-this.date2.getFullYear())*12;r+=this.date1.getMonth()-this.date2.getMonth();const o=this.endOfMonth(this.date2).getDate();return r+=this.date1.getDate()/o-this.date2.getDate()/o,$8f392239b348c51c$var$round(r)},this.years=()=>{let r=this.date1.getFullYear()-this.date2.getFullYear();return r+=(this.dayOfYear(this.date1)-this.dayOfYear(this.date2))/this.daysInYear(this.date2),$8f392239b348c51c$var$round(r)},this.endOfMonth=r=>new Date(r.getFullYear(),r.getMonth()+1,0),this.dayOfYear=r=>(r.getTime()-this.beginOfYear(r).getTime())/$8f392239b348c51c$var$divisors.days,this.daysInYear=r=>(this.endOfYear(r).getTime()-this.beginOfYear(r).getTime())/$8f392239b348c51c$var$divisors.days,this.beginOfYear=r=>new Date(r.getFullYear(),0,0),this.endOfYear=r=>new Date(r.getFullYear()+1,0,0),this.date1=t,this.date2=n,this.difference=Math.floor(t.getTime()-n.getTime())}}Date.diff=(e,t)=>new $8f392239b348c51c$export$9099ad97b570f7c(e,t);const _currentSubmitted=listAll("submitted"),_currentClosed=listAll("closed");for(const e of _currentSubmitted)_currentClosed.some(t=>t.id===e.id)||add("closed","local",e);localStorage.removeItem("__pcwindow__closed"),localStorage.removeItem("__pcwindow__submitted");function list(e,t){let n="[]";switch(t){case"local":n=localStorage.getItem(`__pc__${e}`)||"[]";break;case"session":n=sessionStorage.getItem(`__pc__${e}`)||"[]";break;case"page":n=localStorage.getItem(`__pcwindow__${e}`)||"[]";break}return JSON.parse(n)}function add(e,t,n){remove(e,t,n.id);const r=list(e,t);switch(r.push(n),t){case"local":localStorage.setItem(`__pc__${e}`,JSON.stringify(r));break;case"session":sessionStorage.setItem(`__pc__${e}`,JSON.stringify(r));break;case"page":localStorage.setItem(`__pcwindow__${e}`,JSON.stringify(r));break}}function remove(e,t,n){const o=list(e,t).filter(i=>i.id!==n);switch(t){case"local":localStorage.setItem(`__pc__${e}`,JSON.stringify(o));break;case"session":sessionStorage.setItem(`__pc__${e}`,JSON.stringify(o));break;case"page":localStorage.setItem(`__pcwindow__${e}`,JSON.stringify(o));break}}function listAll(e){return list(e,"local").concat(list(e,"session")).concat(list(e,"page"))}function removeAll(e,t){remove(e,"page",t),remove(e,"local",t),remove(e,"session",t)}function useStorage(){return{list,add,remove,listAll,removeAll}}function useCartWatcher(){const e=async()=>(await fetch("/cart.js")).json(),t=a=>{localStorage.setItem("__pc_cart__",JSON.stringify(a))},n=()=>JSON.parse(localStorage.getItem("__pc_cart__"))||{items:[]},r=(a,c)=>{const l=(g,m)=>g.filter(y=>!m.some(C=>y.key==C.key)),d={added:l(c.items,a.items),removed:l(a.items,c.items)};return a.items.forEach(g=>{const m=c.items.find(w=>w.key==g.key&&w.quantity!=g.quantity);if(!m)return;const y=m.quantity-g.quantity,C={...m};C.quantity=Math.abs(y),y>0?d.added.push(C):d.removed.push(C)}),d},o=async()=>{const a=await e(),c=n(),l=r(c,a),d=new CustomEvent("__pc_cart_changed__",{detail:l});window.dispatchEvent(d),t(a)},i=()=>{new PerformanceObserver(c=>{c.getEntries().forEach(l=>{const d=["xmlhttprequest","fetch"].includes(l.initiatorType),g=/\/cart\//.test(l.name);d&&g&&o()})}).observe({entryTypes:["resource"]})};return{fetchCart:e,storeCart:t,storedCart:n,findCartChanges:r,emitCartChanges:o,observeCartChanges:i,initCartWatcher:()=>{o().then(()=>{i()})}}}function tryOnScopeDispose(e){return getCurrentScope()?(onScopeDispose(e),!0):!1}function toValue(e){return typeof e=="function"?e():unref(e)}const isClient=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const notNullish=e=>e!=null,toString=Object.prototype.toString,isObject$2=e=>toString.call(e)==="[object Object]",noop=()=>{};function getLifeCycleTarget(e){return e||getCurrentInstance()}function toRef(...e){if(e.length!==1)return toRef$1(...e);const t=e[0];return typeof t=="function"?readonly(customRef(()=>({get:t,set:noop}))):ref(t)}function syncRefs(e,t,n={}){const{flush:r="sync",deep:o=!1,immediate:i=!0}=n;return Array.isArray(t)||(t=[t]),watch(e,s=>t.forEach(a=>a.value=s),{flush:r,deep:o,immediate:i})}function tryOnBeforeUnmount(e,t){getLifeCycleTarget(t)&&onBeforeUnmount(e,t)}function useIntervalFn(e,t=1e3,n={}){const{immediate:r=!0,immediateCallback:o=!1}=n;let i=null;const s=ref(!1);function a(){i&&(clearInterval(i),i=null)}function c(){s.value=!1,a()}function l(){const d=toValue(t);d<=0||(s.value=!0,o&&e(),a(),i=setInterval(e,d))}if(r&&isClient&&l(),isRef(t)||typeof t=="function"){const d=watch(t,()=>{s.value&&isClient&&l()});tryOnScopeDispose(d)}return tryOnScopeDispose(c),{isActive:s,pause:c,resume:l}}function useInterval(e=1e3,t={}){const{controls:n=!1,immediate:r=!0,callback:o}=t,i=ref(0),s=()=>i.value+=1,a=()=>{i.value=0},c=useIntervalFn(o?()=>{s(),o(i.value)}:s,e,{immediate:r});return n?{counter:i,reset:a,...c}:i}function unrefElement(e){var t;const n=toValue(e);return(t=n==null?void 0:n.$el)!=null?t:n}const defaultWindow=isClient?window:void 0,defaultDocument=isClient?window.document:void 0;function useEventListener(...e){let t,n,r,o;if(typeof e[0]=="string"||Array.isArray(e[0])?([n,r,o]=e,t=defaultWindow):[t,n,r,o]=e,!t)return noop;Array.isArray(n)||(n=[n]),Array.isArray(r)||(r=[r]);const i=[],s=()=>{i.forEach(d=>d()),i.length=0},a=(d,g,m,y)=>(d.addEventListener(g,m,y),()=>d.removeEventListener(g,m,y)),c=watch(()=>[unrefElement(t),toValue(o)],([d,g])=>{if(s(),!d)return;const m=isObject$2(g)?{...g}:g;i.push(...n.flatMap(y=>r.map(C=>a(d,y,C,m))))},{immediate:!0,flush:"post"}),l=()=>{c(),s()};return tryOnScopeDispose(l),l}function useMounted(){const e=ref(!1),t=getCurrentInstance();return t&&onMounted(()=>{e.value=!0},t),e}function useSupported(e){const t=useMounted();return computed(()=>(t.value,!!e()))}function useMutationObserver(e,t,n={}){const{window:r=defaultWindow,...o}=n;let i;const s=useSupported(()=>r&&"MutationObserver"in r),a=()=>{i&&(i.disconnect(),i=void 0)},c=computed(()=>{const m=toValue(e),y=(Array.isArray(m)?m:[m]).map(unrefElement).filter(notNullish);return new Set(y)}),l=watch(()=>c.value,m=>{a(),s.value&&m.size&&(i=new MutationObserver(t),m.forEach(y=>i.observe(y,o)))},{immediate:!0,flush:"post"}),d=()=>i==null?void 0:i.takeRecords(),g=()=>{a(),l()};return tryOnScopeDispose(g),{isSupported:s,stop:g,takeRecords:d}}function useMediaQuery(e,t={}){const{window:n=defaultWindow}=t,r=useSupported(()=>n&&"matchMedia"in n&&typeof n.matchMedia=="function");let o;const i=ref(!1),s=l=>{i.value=l.matches},a=()=>{o&&("removeEventListener"in o?o.removeEventListener("change",s):o.removeListener(s))},c=watchEffect(()=>{r.value&&(a(),o=n.matchMedia(toValue(e)),"addEventListener"in o?o.addEventListener("change",s):o.addListener(s),i.value=o.matches)});return tryOnScopeDispose(()=>{c(),a(),o=void 0}),i}function useCssVar(e,t,n={}){const{window:r=defaultWindow,initialValue:o="",observe:i=!1}=n,s=ref(o),a=computed(()=>{var l;return unrefElement(t)||((l=r==null?void 0:r.document)==null?void 0:l.documentElement)});function c(){var l;const d=toValue(e),g=toValue(a);if(g&&r){const m=(l=r.getComputedStyle(g).getPropertyValue(d))==null?void 0:l.trim();s.value=m||o}}return i&&useMutationObserver(a,c,{attributeFilter:["style","class"],window:r}),watch([a,()=>toValue(e)],c,{immediate:!0}),watch(s,l=>{var d;(d=a.value)!=null&&d.style&&a.value.style.setProperty(toValue(e),l)}),s}function useDocumentVisibility(e={}){const{document:t=defaultDocument}=e;if(!t)return ref("visible");const n=ref(t.visibilityState);return useEventListener(t,"visibilitychange",()=>{n.value=t.visibilityState}),n}function useTitle(e=null,t={}){var n,r,o;const{document:i=defaultDocument,restoreOnUnmount:s=g=>g}=t,a=(n=i==null?void 0:i.title)!=null?n:"",c=toRef((r=e??(i==null?void 0:i.title))!=null?r:null),l=e&&typeof e=="function";function d(g){if(!("titleTemplate"in t))return g;const m=t.titleTemplate||"%s";return typeof m=="function"?m(g):toValue(m).replace(/%s/g,g)}return watch(c,(g,m)=>{g!==m&&i&&(i.title=d(typeof g=="string"?g:""))},{immediate:!0}),t.observe&&!t.titleTemplate&&i&&!l&&useMutationObserver((o=i.head)==null?void 0:o.querySelector("title"),()=>{i&&i.title!==c.value&&(c.value=d(i.title))},{childList:!0}),tryOnBeforeUnmount(()=>{if(s){const g=s(a,c.value||"");g!=null&&i&&(i.title=g)}}),c}const JSON_MIME="application/json",CONTENT_TYPE_HEADER="Content-Type",FETCH_ERROR=Symbol(),CATCHER_FALLBACK=Symbol();function extractContentType(e={}){var t;const n=e instanceof Array?Object.fromEntries(e):e;return(t=Object.entries(n).find(([r])=>r.toLowerCase()===CONTENT_TYPE_HEADER.toLowerCase()))===null||t===void 0?void 0:t[1]}function isLikelyJsonMime(e){return/^application\/.*json.*/.test(e)}const mix=function(e,t,n=!1){return Object.entries(t).reduce((r,[o,i])=>{const s=e[o];return Array.isArray(s)&&Array.isArray(i)?r[o]=n?[...s,...i]:i:typeof s=="object"&&typeof i=="object"?r[o]=mix(s,i,n):r[o]=i,r},{...e})},config={options:{},errorType:"text",polyfills:{},polyfill(e,t=!0,n=!1,...r){const o=this.polyfills[e]||(typeof self<"u"?self[e]:null)||(typeof global<"u"?global[e]:null);if(t&&!o)throw new Error(e+" is not defined");return n&&o?new o(...r):o}};function setOptions(e,t=!1){config.options=t?e:mix(config.options,e)}function setPolyfills(e,t=!1){config.polyfills=t?e:mix(config.polyfills,e)}function setErrorType(e){config.errorType=e}const middlewareHelper=e=>t=>e.reduceRight((n,r)=>r(n),t)||t;class WretchError extends Error{}const resolver=e=>{const t=Object.create(null);e=e._addons.reduce((A,k)=>k.beforeRequest&&k.beforeRequest(A,e._options,t)||A,e);const{_url:n,_options:r,_config:o,_catchers:i,_resolvers:s,_middlewares:a,_addons:c}=e,l=new Map(i),d=mix(o.options,r);let g=n;const m=middlewareHelper(a)((A,k)=>(g=A,o.polyfill("fetch")(A,k)))(n,d),y=new Error,C=m.catch(A=>{throw{[FETCH_ERROR]:A}}).then(A=>{var k;if(!A.ok){const b=new WretchError;if(b.cause=y,b.stack=b.stack+` CAUSE: `+y.stack,b.response=A,b.status=A.status,b.url=g,A.type==="opaque")throw b;const E=o.errorType==="json"||((k=A.headers.get("Content-Type"))===null||k===void 0?void 0:k.split(";")[0])==="application/json";return(o.errorType?E?A.text():A[o.errorType]():Promise.resolve(A.body)).then(O=>{throw b.message=typeof O=="string"?O:A.statusText,O&&(E&&typeof O=="string"?(b.text=O,b.json=JSON.parse(O)):b[o.errorType]=O),b})}return A}),w=A=>A.catch(k=>{const b=Object.prototype.hasOwnProperty.call(k,FETCH_ERROR),E=b?k[FETCH_ERROR]:k,D=(E==null?void 0:E.status)&&l.get(E.status)||l.get(E==null?void 0:E.name)||b&&l.has(FETCH_ERROR)&&l.get(FETCH_ERROR);if(D)return D(E,e);const O=l.get(CATCHER_FALLBACK);if(O)return O(E,e);throw E}),I=A=>k=>w(A?C.then(b=>b&&b[A]()).then(b=>k?k(b):b):C.then(b=>k?k(b):b)),j={_wretchReq:e,_fetchReq:m,_sharedState:t,res:I(null),json:I("json"),blob:I("blob"),formData:I("formData"),arrayBuffer:I("arrayBuffer"),text:I("text"),error(A,k){return l.set(A,k),this},badRequest(A){return this.error(400,A)},unauthorized(A){return this.error(401,A)},forbidden(A){return this.error(403,A)},notFound(A){return this.error(404,A)},timeout(A){return this.error(408,A)},internalError(A){return this.error(500,A)},fetchError(A){return this.error(FETCH_ERROR,A)}},J=c.reduce((A,k)=>({...A,...typeof k.resolver=="function"?k.resolver(A):k.resolver}),j);return s.reduce((A,k)=>k(A,e),J)},core={_url:"",_options:{},_config:config,_catchers:new Map,_resolvers:[],_deferred:[],_middlewares:[],_addons:[],addon(e){return{...this,_addons:[...this._addons,e],...e.wretch}},errorType(e){return{...this,_config:{...this._config,errorType:e}}},polyfills(e,t=!1){return{...this,_config:{...this._config,polyfills:t?e:mix(this._config.polyfills,e)}}},url(e,t=!1){if(t)return{...this,_url:e};const n=this._url.split("?");return{...this,_url:n.length>1?n[0]+e+"?"+n[1]:this._url+e}},options(e,t=!1){return{...this,_options:t?e:mix(this._options,e)}},headers(e){const t=e?Array.isArray(e)?Object.fromEntries(e):"entries"in e?Object.fromEntries(e.entries()):e:{};return{...this,_options:mix(this._options,{headers:t})}},accept(e){return this.headers({Accept:e})},content(e){return this.headers({[CONTENT_TYPE_HEADER]:e})},auth(e){return this.headers({Authorization:e})},catcher(e,t){const n=new Map(this._catchers);return n.set(e,t),{...this,_catchers:n}},catcherFallback(e){return this.catcher(CATCHER_FALLBACK,e)},resolve(e,t=!1){return{...this,_resolvers:t?[e]:[...this._resolvers,e]}},defer(e,t=!1){return{...this,_deferred:t?[e]:[...this._deferred,e]}},middlewares(e,t=!1){return{...this,_middlewares:t?e:[...this._middlewares,...e]}},fetch(e=this._options.method,t="",n=null){let r=this.url(t).options({method:e});const o=extractContentType(r._options.headers),i=this._config.polyfill("FormData",!1),s=typeof n=="object"&&!(i&&n instanceof i)&&(!r._options.headers||!o||isLikelyJsonMime(o));return r=n?s?r.json(n,o):r.body(n):r,resolver(r._deferred.reduce((a,c)=>c(a,a._url,a._options),r))},get(e=""){return this.fetch("GET",e)},delete(e=""){return this.fetch("DELETE",e)},put(e,t=""){return this.fetch("PUT",t,e)},post(e,t=""){return this.fetch("POST",t,e)},patch(e,t=""){return this.fetch("PATCH",t,e)},head(e=""){return this.fetch("HEAD",e)},opts(e=""){return this.fetch("OPTIONS",e)},body(e){return{...this,_options:{...this._options,body:e}}},json(e,t){const n=extractContentType(this._options.headers);return this.content(t||isLikelyJsonMime(n)&&n||JSON_MIME).body(JSON.stringify(e))}};function factory(e="",t={}){return{...core,_url:e,_options:t}}factory.default=factory,factory.options=setOptions,factory.errorType=setErrorType,factory.polyfills=setPolyfills,factory.WretchError=WretchError;const cart=ref();async function useCart(){function e(){return factory("/cart.js").get().json()}return cart.value=await e(),{cart}}const title=useTitle(),visibility=useDocumentVisibility(),originalTitle=ref(title.value),originalFavicon=ref(null);function useTitleBar(){const e=useMainStore(),t=computed(()=>{var a;return((a=e.currentSite)==null?void 0:a.titlebar_enabled)??!1}),n=document.querySelector("link[rel='icon']");n&&(originalFavicon.value=n.href);let r=0;watch(visibility,async(a,c)=>{if(!t.value||c===a)return;a==="visible"?(clearTimeout(r),d()):r=setTimeout(async()=>{await l()},250);async function l(){var w,I,j,J,A;if(title.value=(w=e.currentSite)==null?void 0:w.titlebar_text,!((I=e.currentSite)!=null&&I.titlebar_counter_enabled))return;const m=((j=(await useCart()).cart.value)==null?void 0:j.item_count)??0,y=s(((J=e.currentSite)==null?void 0:J.titlebar_counter_color)??"#fff",((A=e.currentSite)==null?void 0:A.titlebar_counter_background_color)??"#000",m),C=i(y);o(C.href)}function d(){o(String(originalFavicon.value)),title.value=originalTitle.value}},{immediate:!0});function o(a){var l;const c=document.querySelector("link[rel='icon']")||document.createElement("link");c.type="image/x-icon",c.rel="icon",c.href=a,(l=document.getElementsByTagName("head")[0])==null||l.appendChild(c)}function i(a){var g,m;const c=new XMLSerializer().serializeToString(a),l=document.createElement("link");l.type="image/svg+xml",l.rel="icon",l.href=`data:image/svg+xml,${encodeURIComponent(c)}`;const d=document.querySelector("link[rel='icon']");return d&&((g=document.getElementsByTagName("head")[0])==null||g.removeChild(d)),(m=document.getElementsByTagName("head")[0])==null||m.appendChild(l),l}function s(a="#fff",c="#000",l=1){const d=document.createElementNS("http://www.w3.org/2000/svg","svg");d.setAttribute("height","16"),d.setAttribute("width","16");const g=document.createElementNS("http://www.w3.org/2000/svg","circle");g.setAttribute("cx","8"),g.setAttribute("cy","8"),g.setAttribute("r","7"),g.setAttribute("fill",c),d.appendChild(g);const m=document.createElementNS("http://www.w3.org/2000/svg","text");return m.setAttribute("x","8"),m.setAttribute("y","12"),m.setAttribute("font-size","10"),m.setAttribute("text-anchor","middle"),m.setAttribute("fill",a),m.setAttribute("font-family","sans-serif"),l?m.textContent=l.toString():m.textContent="🔔",d.appendChild(m),d}return{enabled:t}}window.injectFontFromCss=e=>{var r;if(!e)return;const t=/@import url\((.*?)\)/g,n=e.matchAll(t);for(const o of n){const i=(r=o[1])==null?void 0:r.replace(/['"]+/g,""),a=(l=>[...l].reduce((d,g)=>d*33^g.charCodeAt(0),5381)>>>0)(i);if(!document.querySelector(`link[data-hash="${a}"]`)){const l=document.createElement("link");l.href=String(i),l.rel="preload",l.as="font",l.type="font/woff2",l.crossOrigin="anonymous",document.head.appendChild(l);const d=document.createElement("link");d.href=String(i),d.rel="stylesheet",d.dataset.hash=String(a),document.head.appendChild(d)}}},window.injectAndClearCss=(e,t)=>{var s,a,c;if(!e)return;const r=(l=>[...l].reduce((d,g)=>d*33^g.charCodeAt(0),5381)>>>0)(e);if(!((s=window.pcTarget)==null?void 0:s.querySelector(`style[data-hash="${r}"]`))){const l=document.createElement("style");l.innerHTML=e,l.dataset.kind=`pc-css-${t}`,l.dataset.hash=String(r),(a=window.pcTarget)==null||a.appendChild(l)}(((c=window.pcTarget)==null?void 0:c.querySelectorAll(`style[data-kind="pc-css-${t}"]`))||[]).forEach(l=>{l.dataset.hash!==String(r)&&l.remove()})},window.clearCss=e=>{var n;(((n=window.pcTarget)==null?void 0:n.querySelectorAll(`style[data-kind="pc-css-${e}"]`))||[]).forEach(r=>{r.remove()})};var Ni=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Ci(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var wi={exports:{}};(function(e,t){(function(n,r){var o="1.0.37",i="",s="?",a="function",c="undefined",l="object",d="string",g="major",m="model",y="name",C="type",w="vendor",I="version",j="architecture",J="console",A="mobile",k="tablet",b="smarttv",E="wearable",D="embedded",O=500,M="Amazon",B="Apple",Z="ASUS",q="BlackBerry",pe="Browser",Se="Chrome",Ee="Edge",ne="Firefox",we="Google",_e="Huawei",V="LG",ue="Microsoft",ve="Motorola",ke="Opera",N="Samsung",te="Sharp",se="Sony",oe="Xiaomi",ie="Zebra",ge="Facebook",Y="Chromium OS",xe="Mac OS",Ie=function(X,ce){var re={};for(var me in X)ce[me]&&ce[me].length%2===0?re[me]=ce[me].concat(X[me]):re[me]=X[me];return re},v=function(X){for(var ce={},re=0;re0?Ce.length===2?typeof Ce[1]==a?this[Ce[0]]=Ce[1].call(this,Oe):this[Ce[0]]=Ce[1]:Ce.length===3?typeof Ce[1]===a&&!(Ce[1].exec&&Ce[1].test)?this[Ce[0]]=Oe?Ce[1].call(this,Oe,Ce[2]):r:this[Ce[0]]=Oe?Oe.replace(Ce[1],Ce[2]):r:Ce.length===4&&(this[Ce[0]]=Oe?Ce[3].call(this,Oe.replace(Ce[1],Ce[2])):r):this[Ce]=Oe||r;re+=2}},Q=function(X,ce){for(var re in ce)if(typeof ce[re]===l&&ce[re].length>0){for(var me=0;me2&&(ye[m]="iPad",ye[C]=k),ye},this.getEngine=function(){var ye={};return ye[y]=r,ye[I]=r,H.call(ye,me,Ae.engine),ye},this.getOS=function(){var ye={};return ye[y]=r,ye[I]=r,H.call(ye,me,Ae.os),Ce&&!ye[y]&&Te&&Te.platform!="Unknown"&&(ye[y]=Te.platform.replace(/chrome os/i,Y).replace(/macos/i,xe)),ye},this.getResult=function(){return{ua:this.getUA(),browser:this.getBrowser(),engine:this.getEngine(),os:this.getOS(),device:this.getDevice(),cpu:this.getCPU()}},this.getUA=function(){return me},this.setUA=function(ye){return me=typeof ye===d&&ye.length>O?L(ye,O):ye,this},this.setUA(me),this};le.VERSION=o,le.BROWSER=v([y,I,g]),le.CPU=v([j]),le.DEVICE=v([m,w,C,J,A,b,k,E,D]),le.ENGINE=le.OS=v([y,I]),e.exports&&(t=e.exports=le),t.UAParser=le;var ae=typeof n!==c&&(n.jQuery||n.Zepto);if(ae&&!ae.ua){var fe=new le;ae.ua=fe.getResult(),ae.ua.get=function(){return fe.getUA()},ae.ua.set=function(X){fe.setUA(X);var ce=fe.getResult();for(var re in ce)ae.ua[re]=ce[re]}}})(typeof window=="object"?window:Ni)})(wi,wi.exports);var Pi=wi.exports;const Bi=Ci(Pi),S={CONSOLE:"console",DESKTOP:void 0,EMBEDDED:"embedded",MOBILE:"mobile",SMART_TV:"smarttv",TABLET:"tablet",WEARABLE:"wearable"},_={ANDROID:"Android",IOS:"iOS",LINUX:"Linux",MAC_OS:"Mac OS",WINDOWS_PHONE:"Windows Phone",WINDOWS:"Windows"},p={CHROME:"Chrome",CHROMIUM:"Chromium",EDGE_CHROMIUM:"Edge Chromium",EDGE:"Edge",FIREFOX:"Firefox",IE:"IE",INTERNET_EXPLORER:"Internet Explorer",MIUI:"MIUI Browser",MOBILE_SAFARI:"Mobile Safari",OPERA:"Opera",SAFARI:"Safari",SAMSUNG_BROWSER:"Samsung Browser",YANDEX:"Yandex"},z=new Bi,f=z.getDevice(),x=z.getOS(),u=z.getBrowser();z.getEngine();const P=z.getUA(),W=()=>/iPad/.test(P),Ai=()=>x.name===_.WINDOWS&&x.version==="10"&&P.indexOf("Edg/")!==-1;x.name,_.ANDROID,u.name,p.CHROME,u.name,p.CHROMIUM,f.type,S.CONSOLE;const Wi=f.type===S.DESKTOP;u.name===p.EDGE||Ai(),Ai(),u.name,p.EDGE,/electron/.test(P.toLowerCase()),f.type,S.EMBEDDED,u.name,p.FIREFOX,u.name===p.INTERNET_EXPLORER||(u.name,p.IE),x.name===_.IOS||W(),x.name,_.LINUX,x.name,_.MAC_OS,u.name,p.MIUI;const ee=f.type===S.MOBILE||f.type===S.TABLET||W();f.type,S.MOBILE,u.name===p.MOBILE_SAFARI||W(),u.name,p.OPERA,u.name===p.SAFARI||(u.name,p.MOBILE_SAFARI),u.name,p.SAMSUNG_BROWSER,f.type,S.SMART_TV;const be=f.type===S.TABLET||W();f.type,S.WEARABLE,x.name,_.WINDOWS,x.name,_.WINDOWS_PHONE,u.name,p.YANDEX;var defaultLocale$1="en",localesData$1={},lowercaseLocaleLookup={};function getDefaultLocale(){return defaultLocale$1}function setDefaultLocale(e){defaultLocale$1=e}function getLocaleData$1(e){return localesData$1[e]}function addLocaleData$1(e){if(!e)throw new Error("No locale data passed");localesData$1[e.locale]=e,lowercaseLocaleLookup[e.locale.toLowerCase()]=e.locale}function resolveLocale$1(e){if(localesData$1[e])return e;if(lowercaseLocaleLookup[e.toLowerCase()])return lowercaseLocaleLookup[e.toLowerCase()]}function resolveLocale(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.localeMatcher||"lookup";switch(n){case"lookup":return resolveLocaleLookup(e);case"best fit":return resolveLocaleLookup(e);default:throw new RangeError('Invalid "localeMatcher" option: '.concat(n))}}function resolveLocaleLookup(e){var t=resolveLocale$1(e);if(t)return t;for(var n=e.split("-");e.length>1;){n.pop(),e=n.join("-");var r=resolveLocale$1(e);if(r)return r}}var $={af:function(t){return t==1?"one":"other"},am:function(t){return t>=0&&t<=1?"one":"other"},ar:function(t){var n=String(t).split("."),r=Number(n[0])==t,o=r&&n[0].slice(-2);return t==0?"zero":t==1?"one":t==2?"two":o>=3&&o<=10?"few":o>=11&&o<=99?"many":"other"},ast:function(t){var n=String(t).split("."),r=!n[1];return t==1&&r?"one":"other"},be:function(t){var n=String(t).split("."),r=Number(n[0])==t,o=r&&n[0].slice(-1),i=r&&n[0].slice(-2);return o==1&&i!=11?"one":o>=2&&o<=4&&(i<12||i>14)?"few":r&&o==0||o>=5&&o<=9||i>=11&&i<=14?"many":"other"},br:function(t){var n=String(t).split("."),r=Number(n[0])==t,o=r&&n[0].slice(-1),i=r&&n[0].slice(-2),s=r&&n[0].slice(-6);return o==1&&i!=11&&i!=71&&i!=91?"one":o==2&&i!=12&&i!=72&&i!=92?"two":(o==3||o==4||o==9)&&(i<10||i>19)&&(i<70||i>79)&&(i<90||i>99)?"few":t!=0&&r&&s==0?"many":"other"},bs:function(t){var n=String(t).split("."),r=n[0],o=n[1]||"",i=!n[1],s=r.slice(-1),a=r.slice(-2),c=o.slice(-1),l=o.slice(-2);return i&&s==1&&a!=11||c==1&&l!=11?"one":i&&s>=2&&s<=4&&(a<12||a>14)||c>=2&&c<=4&&(l<12||l>14)?"few":"other"},ca:function(t){var n=String(t).split("."),r=n[0],o=!n[1],i=r.slice(-6);return t==1&&o?"one":r!=0&&i==0&&o?"many":"other"},ceb:function(t){var n=String(t).split("."),r=n[0],o=n[1]||"",i=!n[1],s=r.slice(-1),a=o.slice(-1);return i&&(r==1||r==2||r==3)||i&&s!=4&&s!=6&&s!=9||!i&&a!=4&&a!=6&&a!=9?"one":"other"},cs:function(t){var n=String(t).split("."),r=n[0],o=!n[1];return t==1&&o?"one":r>=2&&r<=4&&o?"few":o?"other":"many"},cy:function(t){return t==0?"zero":t==1?"one":t==2?"two":t==3?"few":t==6?"many":"other"},da:function(t){var n=String(t).split("."),r=n[0],o=Number(n[0])==t;return t==1||!o&&(r==0||r==1)?"one":"other"},dsb:function(t){var n=String(t).split("."),r=n[0],o=n[1]||"",i=!n[1],s=r.slice(-2),a=o.slice(-2);return i&&s==1||a==1?"one":i&&s==2||a==2?"two":i&&(s==3||s==4)||a==3||a==4?"few":"other"},dz:function(t){return"other"},es:function(t){var n=String(t).split("."),r=n[0],o=!n[1],i=r.slice(-6);return t==1?"one":r!=0&&i==0&&o?"many":"other"},ff:function(t){return t>=0&&t<2?"one":"other"},fr:function(t){var n=String(t).split("."),r=n[0],o=!n[1],i=r.slice(-6);return t>=0&&t<2?"one":r!=0&&i==0&&o?"many":"other"},ga:function(t){var n=String(t).split("."),r=Number(n[0])==t;return t==1?"one":t==2?"two":r&&t>=3&&t<=6?"few":r&&t>=7&&t<=10?"many":"other"},gd:function(t){var n=String(t).split("."),r=Number(n[0])==t;return t==1||t==11?"one":t==2||t==12?"two":r&&t>=3&&t<=10||r&&t>=13&&t<=19?"few":"other"},he:function(t){var n=String(t).split("."),r=n[0],o=!n[1];return r==1&&o||r==0&&!o?"one":r==2&&o?"two":"other"},is:function(t){var n=String(t).split("."),r=n[0],o=(n[1]||"").replace(/0+$/,""),i=Number(n[0])==t,s=r.slice(-1),a=r.slice(-2);return i&&s==1&&a!=11||o%10==1&&o%100!=11?"one":"other"},ksh:function(t){return t==0?"zero":t==1?"one":"other"},lt:function(t){var n=String(t).split("."),r=n[1]||"",o=Number(n[0])==t,i=o&&n[0].slice(-1),s=o&&n[0].slice(-2);return i==1&&(s<11||s>19)?"one":i>=2&&i<=9&&(s<11||s>19)?"few":r!=0?"many":"other"},lv:function(t){var n=String(t).split("."),r=n[1]||"",o=r.length,i=Number(n[0])==t,s=i&&n[0].slice(-1),a=i&&n[0].slice(-2),c=r.slice(-2),l=r.slice(-1);return i&&s==0||a>=11&&a<=19||o==2&&c>=11&&c<=19?"zero":s==1&&a!=11||o==2&&l==1&&c!=11||o!=2&&l==1?"one":"other"},mk:function(t){var n=String(t).split("."),r=n[0],o=n[1]||"",i=!n[1],s=r.slice(-1),a=r.slice(-2),c=o.slice(-1),l=o.slice(-2);return i&&s==1&&a!=11||c==1&&l!=11?"one":"other"},mt:function(t){var n=String(t).split("."),r=Number(n[0])==t,o=r&&n[0].slice(-2);return t==1?"one":t==2?"two":t==0||o>=3&&o<=10?"few":o>=11&&o<=19?"many":"other"},pa:function(t){return t==0||t==1?"one":"other"},pl:function(t){var n=String(t).split("."),r=n[0],o=!n[1],i=r.slice(-1),s=r.slice(-2);return t==1&&o?"one":o&&i>=2&&i<=4&&(s<12||s>14)?"few":o&&r!=1&&(i==0||i==1)||o&&i>=5&&i<=9||o&&s>=12&&s<=14?"many":"other"},pt:function(t){var n=String(t).split("."),r=n[0],o=!n[1],i=r.slice(-6);return r==0||r==1?"one":r!=0&&i==0&&o?"many":"other"},ro:function(t){var n=String(t).split("."),r=!n[1],o=Number(n[0])==t,i=o&&n[0].slice(-2);return t==1&&r?"one":!r||t==0||t!=1&&i>=1&&i<=19?"few":"other"},ru:function(t){var n=String(t).split("."),r=n[0],o=!n[1],i=r.slice(-1),s=r.slice(-2);return o&&i==1&&s!=11?"one":o&&i>=2&&i<=4&&(s<12||s>14)?"few":o&&i==0||o&&i>=5&&i<=9||o&&s>=11&&s<=14?"many":"other"},se:function(t){return t==1?"one":t==2?"two":"other"},si:function(t){var n=String(t).split("."),r=n[0],o=n[1]||"";return t==0||t==1||r==0&&o==1?"one":"other"},sl:function(t){var n=String(t).split("."),r=n[0],o=!n[1],i=r.slice(-2);return o&&i==1?"one":o&&i==2?"two":o&&(i==3||i==4)||!o?"few":"other"}};$.as=$.am,$.az=$.af,$.bg=$.af,$.bn=$.am,$.brx=$.af,$.ce=$.af,$.chr=$.af,$.de=$.ast,$.ee=$.af,$.el=$.af,$.en=$.ast,$.et=$.ast,$.eu=$.af,$.fa=$.am,$.fi=$.ast,$.fil=$.ceb,$.fo=$.af,$.fur=$.af,$.fy=$.ast,$.gl=$.ast,$.gu=$.am,$.ha=$.af,$.hi=$.am,$.hr=$.bs,$.hsb=$.dsb,$.hu=$.af,$.hy=$.ff,$.ia=$.ast,$.id=$.dz,$.ig=$.dz,$.it=$.ca,$.ja=$.dz,$.jgo=$.af,$.jv=$.dz,$.ka=$.af,$.kea=$.dz,$.kk=$.af,$.kl=$.af,$.km=$.dz,$.kn=$.am,$.ko=$.dz,$.ks=$.af,$.ku=$.af,$.ky=$.af,$.lb=$.af,$.lkt=$.dz,$.lo=$.dz,$.ml=$.af,$.mn=$.af,$.mr=$.af,$.ms=$.dz,$.my=$.dz,$.nb=$.af,$.ne=$.af,$.nl=$.ast,$.nn=$.af,$.no=$.af,$.or=$.af,$.pcm=$.am,$.ps=$.af,$.rm=$.af,$.sah=$.dz,$.sc=$.ast,$.sd=$.af,$.sk=$.cs,$.so=$.af,$.sq=$.af,$.sr=$.bs,$.su=$.dz,$.sv=$.ast,$.sw=$.ast,$.ta=$.af,$.te=$.af,$.th=$.dz,$.ti=$.pa,$.tk=$.af,$.to=$.dz,$.tr=$.af,$.ug=$.af,$.uk=$.ru,$.ur=$.ast,$.uz=$.af,$.vi=$.dz,$.wae=$.af,$.wo=$.dz,$.xh=$.af,$.yi=$.ast,$.yo=$.dz,$.yue=$.dz,$.zh=$.dz,$.zu=$.am;const PluralRuleFunctions=$;function getPluralRulesLocale(e){return e==="pt-PT"?e:getLanguageFromLanguageTag(e)}var LANGUAGE_REG_EXP=/^([a-z0-9]+)/i;function getLanguageFromLanguageTag(e){var t=e.match(LANGUAGE_REG_EXP);if(!t)throw new TypeError("Invalid locale: ".concat(e));return t[1]}function _classCallCheck$3(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _defineProperties$3(e,t){for(var n=0;ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&arguments[0]!==void 0?arguments[0]:[],n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};_classCallCheck$2(this,e);var r=n.numeric,o=n.style,i=n.localeMatcher;if(this.numeric="always",this.style="long",this.localeMatcher="lookup",r!==void 0){if(NUMERIC_VALUES.indexOf(r)<0)throw new RangeError('Invalid "numeric" option: '.concat(r));this.numeric=r}if(o!==void 0){if(STYLE_VALUES.indexOf(o)<0)throw new RangeError('Invalid "style" option: '.concat(o));this.style=o}if(i!==void 0){if(LOCALE_MATCHER_VALUES.indexOf(i)<0)throw new RangeError('Invalid "localeMatcher" option: '.concat(i));this.localeMatcher=i}if(typeof t=="string"&&(t=[t]),t.push(getDefaultLocale()),this.locale=e.supportedLocalesOf(t,{localeMatcher:this.localeMatcher})[0],!this.locale)throw new Error("No supported locale was found");PluralRules.supportedLocalesOf(this.locale).length>0?this.pluralRules=new PluralRules(this.locale):console.warn('"'.concat(this.locale,'" locale is not supported')),typeof Intl<"u"&&Intl.NumberFormat?(this.numberFormat=new Intl.NumberFormat(this.locale),this.numberingSystem=this.numberFormat.resolvedOptions().numberingSystem):this.numberingSystem="latn",this.locale=resolveLocale(this.locale,{localeMatcher:this.localeMatcher})}return _createClass$2(e,[{key:"format",value:function(){var n=parseFormatArgs(arguments),r=_slicedToArray$1(n,2),o=r[0],i=r[1];return this.getRule(o,i).replace("{0}",this.formatNumber(Math.abs(o)))}},{key:"formatToParts",value:function(){var n=parseFormatArgs(arguments),r=_slicedToArray$1(n,2),o=r[0],i=r[1],s=this.getRule(o,i),a=s.indexOf("{0}");if(a<0)return[{type:"literal",value:s}];var c=[];return a>0&&c.push({type:"literal",value:s.slice(0,a)}),c=c.concat(this.formatNumberToParts(Math.abs(o)).map(function(l){return _objectSpread$9(_objectSpread$9({},l),{},{unit:i})})),a+31&&arguments[1]!==void 0?arguments[1]:{};if(typeof e=="string")e=[e];else if(!Array.isArray(e))throw new TypeError('Invalid "locales" argument');return e.filter(function(n){return resolveLocale(n,t)})},RelativeTimeFormat.addLocale=addLocaleData$1,RelativeTimeFormat.setDefaultLocale=setDefaultLocale,RelativeTimeFormat.getDefaultLocale=getDefaultLocale,RelativeTimeFormat.PluralRules=PluralRules;var UNIT_ERROR='Invalid "unit" argument';function parseUnit(e){if(_typeof$5(e)==="symbol")throw new TypeError(UNIT_ERROR);if(typeof e!="string")throw new RangeError("".concat(UNIT_ERROR,": ").concat(e));if(e[e.length-1]==="s"&&(e=e.slice(0,e.length-1)),UNITS.indexOf(e)<0)throw new RangeError("".concat(UNIT_ERROR,": ").concat(e));return e}var NUMBER_ERROR='Invalid "number" argument';function parseNumber(e){if(e=Number(e),Number.isFinite&&!Number.isFinite(e))throw new RangeError("".concat(NUMBER_ERROR,": ").concat(e));return e}function isNegativeZero(e){return 1/e===-1/0}function isNegative(e){return e<0||e===0&&isNegativeZero(e)}function parseFormatArgs(e){if(e.length<2)throw new TypeError('"unit" argument is required');return[parseNumber(e[0]),parseUnit(e[1])]}function _typeof$4(e){"@babel/helpers - typeof";return _typeof$4=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_typeof$4(e)}function _classCallCheck$1(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _defineProperties$1(e,t){for(var n=0;n=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _unsupportedIterableToArray$1(e,t){if(e){if(typeof e=="string")return _arrayLikeToArray$1(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _arrayLikeToArray$1(e,t)}}function _arrayLikeToArray$1(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n1;)if(i.pop(),o=i.join("-"),t(o))return o}throw new Error("No locale data has been registered for any of the locales: ".concat(e.join(", ")))}function intlDateTimeFormatSupported(){var e=(typeof Intl>"u"?"undefined":_typeof$3(Intl))==="object";return e&&typeof Intl.DateTimeFormat=="function"}function _typeof$2(e){"@babel/helpers - typeof";return _typeof$2=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_typeof$2(e)}function isStyleObject(e){return isObject$1(e)&&(Array.isArray(e.steps)||Array.isArray(e.gradation)||Array.isArray(e.flavour)||typeof e.flavour=="string"||Array.isArray(e.labels)||typeof e.labels=="string"||Array.isArray(e.units)||typeof e.custom=="function")}var OBJECT_CONSTRUCTOR={}.constructor;function isObject$1(e){return _typeof$2(e)!==void 0&&e!==null&&e.constructor===OBJECT_CONSTRUCTOR}var minute=60,hour=60*minute,day=24*hour,week=7*day,month=30.44*day,year=146097/400*day;function getSecondsInUnit(e){switch(e){case"second":return 1;case"minute":return minute;case"hour":return hour;case"day":return day;case"week":return week;case"month":return month;case"year":return year}}function getStepDenominator(e){return e.factor!==void 0?e.factor:getSecondsInUnit(e.unit||e.formatAs)||1}function getRoundFunction(e){switch(e){case"floor":return Math.floor;default:return Math.round}}function getDiffRatioToNextRoundedNumber(e){switch(e){case"floor":return 1;default:return .5}}function _typeof$1(e){"@babel/helpers - typeof";return _typeof$1=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_typeof$1(e)}function getStepMinTime(e,t){var n=t.prevStep,r=t.timestamp,o=t.now,i=t.future,s=t.round,a;return n&&(n.id||n.unit)&&(a=e["threshold_for_".concat(n.id||n.unit)]),a===void 0&&e.threshold!==void 0&&(a=e.threshold,typeof a=="function"&&(a=a(o,i))),a===void 0&&(a=e.minTime),_typeof$1(a)==="object"&&(n&&n.id&&a[n.id]!==void 0?a=a[n.id]:a=a.default),typeof a=="function"&&(a=a(r,{future:i,getMinTimeForUnit:function(l,d){return _getMinTimeForUnit(l,d||n&&n.formatAs,{round:s})}})),a===void 0&&e.test&&(e.test(r,{now:o,future:i})?a=0:a=9007199254740991),a===void 0&&(n?e.formatAs&&n.formatAs&&(a=_getMinTimeForUnit(e.formatAs,n.formatAs,{round:s})):a=0),a===void 0&&console.warn("[javascript-time-ago] A step should specify `minTime`:\n"+JSON.stringify(e,null,2)),a}function _getMinTimeForUnit(e,t,n){var r=n.round,o=getSecondsInUnit(e),i;if(t==="now"?i=getSecondsInUnit(e):i=getSecondsInUnit(t),o!==void 0&&i!==void 0)return o-i*(1-getDiffRatioToNextRoundedNumber(r))}function ownKeys$8(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function _objectSpread$8(e){for(var t=1;t0)return e[s-1]}return a}}}function getStepIndex(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,o=getStepMinTime(e[r],_objectSpread$8({prevStep:e[r-1],timestamp:n.now-t*1e3},n));return o===void 0||Math.abs(t)=0:!0})}function getTimeToNextUpdateForUnit(e,t,n){var r=n.now,o=n.round;if(getSecondsInUnit(e)){var i=getSecondsInUnit(e)*1e3,s=t>r,a=Math.abs(t-r),c=getRoundFunction(o)(a/i)*i;return s?c>0?a-c+getDiffToPreviousRoundedNumber(o,i):a-c+1:-(a-c)+getDiffToNextRoundedNumber(o,i)}}function getDiffToNextRoundedNumber(e,t){return getDiffRatioToNextRoundedNumber(e)*t}function getDiffToPreviousRoundedNumber(e,t){return(1-getDiffRatioToNextRoundedNumber(e))*t+1}var YEAR=365*24*60*60*1e3,INFINITY=1e3*YEAR;function getTimeToNextUpdate(e,t,n){var r=n.prevStep,o=n.nextStep,i=n.now,s=n.future,a=n.round,c=e.getTime?e.getTime():e,l=function(C){return getTimeToNextUpdateForUnit(C,c,{now:i,round:a})},d=getTimeToStepChange(s?t:o,c,{future:s,now:i,round:a,prevStep:s?r:t});if(d!==void 0){var g;if(t&&(t.getTimeToNextUpdate&&(g=t.getTimeToNextUpdate(c,{getTimeToNextUpdateForUnit:l,getRoundFunction,now:i,future:s,round:a})),g===void 0)){var m=t.unit||t.formatAs;m&&(g=l(m))}return g===void 0?d:Math.min(g,d)}}function getStepChangesAt(e,t,n){var r=n.now,o=n.future,i=n.round,s=n.prevStep,a=getStepMinTime(e,{timestamp:t,now:r,future:o,round:i,prevStep:s});if(a!==void 0)return o?t-a*1e3+1:a===0&&t===r?INFINITY:t+a*1e3}function getTimeToStepChange(e,t,n){var r=n.now,o=n.future,i=n.round,s=n.prevStep;if(e){var a=getStepChangesAt(e,t,{now:r,future:o,round:i,prevStep:s});return a===void 0?void 0:a-r}else return o?t-r+1:INFINITY}var localesData={};function getLocaleData(e){return localesData[e]}function addLocaleData(e){if(!e)throw new Error("[javascript-time-ago] No locale data passed.");localesData[e.locale]=e}const round$1=[{formatAs:"now"},{formatAs:"second"},{formatAs:"minute"},{formatAs:"hour"},{formatAs:"day"},{formatAs:"week"},{formatAs:"month"},{formatAs:"year"}],round={steps:round$1,labels:"long"};function ownKeys$7(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function _objectSpread$7(e){for(var t=1;t=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _slicedToArray(e,t){return _arrayWithHoles(e)||_iterableToArrayLimit(e,t)||_unsupportedIterableToArray(e,t)||_nonIterableRest()}function _nonIterableRest(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _unsupportedIterableToArray(e,t){if(e){if(typeof e=="string")return _arrayLikeToArray(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _arrayLikeToArray(e,t)}}function _arrayLikeToArray(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&arguments[0]!==void 0?arguments[0]:[],n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=n.polyfill;_classCallCheck(this,e),typeof t=="string"&&(t=[t]),this.locale=chooseLocale(t.concat(e.getDefaultLocale()),getLocaleData),typeof Intl<"u"&&Intl.NumberFormat&&(this.numberFormat=new Intl.NumberFormat(this.locale)),r===!1?(this.IntlRelativeTimeFormat=Intl.RelativeTimeFormat,this.IntlPluralRules=Intl.PluralRules):(this.IntlRelativeTimeFormat=RelativeTimeFormat,this.IntlPluralRules=RelativeTimeFormat.PluralRules),this.relativeTimeFormatCache=new Cache,this.pluralRulesCache=new Cache}return _createClass(e,[{key:"format",value:function(n,r,o){o||(r&&!isStyle(r)?(o=r,r=void 0):o={}),r||(r=defaultStyle),typeof r=="string"&&(r=getStyleByName(r));var i=getTimestamp(n),s=this.getLabels(r.flavour||r.labels),a=s.labels,c=s.labelsType,l;r.now!==void 0&&(l=r.now),l===void 0&&o.now!==void 0&&(l=o.now),l===void 0&&(l=Date.now());var d=(l-i)/1e3,g=o.future||d<0,m=getNowLabel(a,getLocaleData(this.locale).now,getLocaleData(this.locale).long,g);if(r.custom){var y=r.custom({now:l,date:new Date(i),time:i,elapsed:d,locale:this.locale});if(y!==void 0)return y}var C=getTimeIntervalMeasurementUnits(r.units,a,m),w=o.round||r.round,I=getStep(r.gradation||r.steps||defaultStyle.steps,d,{now:l,units:C,round:w,future:g,getNextStep:!0}),j=_slicedToArray(I,3),J=j[0],A=j[1],k=j[2],b=this.formatDateForStep(i,A,d,{labels:a,labelsType:c,nowLabel:m,now:l,future:g,round:w})||"";if(o.getTimeToNextUpdate){var E=getTimeToNextUpdate(i,A,{nextStep:k,prevStep:J,now:l,future:g,round:w});return[b,E]}return b}},{key:"formatDateForStep",value:function(n,r,o,i){var s=this,a=i.labels,c=i.labelsType,l=i.nowLabel,d=i.now,g=i.future,m=i.round;if(r){if(r.format)return r.format(n,this.locale,{formatAs:function(j,J){return s.formatValue(J,j,{labels:a,future:g})},now:d,future:g});var y=r.unit||r.formatAs;if(!y)throw new Error("[javascript-time-ago] Each step must define either `formatAs` or `format()`. Step: ".concat(JSON.stringify(r)));if(y==="now")return l;var C=Math.abs(o)/getStepDenominator(r);r.granularity&&(C=getRoundFunction(m)(C/r.granularity)*r.granularity);var w=-1*Math.sign(o)*getRoundFunction(m)(C);switch(w===0&&(g?w=0:w=-0),c){case"long":case"short":case"narrow":return this.getFormatter(c).format(w,y);default:return this.formatValue(w,y,{labels:a,future:g})}}}},{key:"formatValue",value:function(n,r,o){var i=o.labels,s=o.future;return this.getFormattingRule(i,r,n,{future:s}).replace("{0}",this.formatNumber(Math.abs(n)))}},{key:"getFormattingRule",value:function(n,r,o,i){var s=i.future;if(this.locale,n=n[r],typeof n=="string")return n;var a=o===0?s?"future":"past":o<0?"past":"future",c=n[a]||n;if(typeof c=="string")return c;var l=this.getPluralRules().select(Math.abs(o));return c[l]||c.other}},{key:"formatNumber",value:function(n){return this.numberFormat?this.numberFormat.format(n):String(n)}},{key:"getFormatter",value:function(n){return this.relativeTimeFormatCache.get(this.locale,n)||this.relativeTimeFormatCache.put(this.locale,n,new this.IntlRelativeTimeFormat(this.locale,{style:n}))}},{key:"getPluralRules",value:function(){return this.pluralRulesCache.get(this.locale)||this.pluralRulesCache.put(this.locale,new this.IntlPluralRules(this.locale))}},{key:"getLabels",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];typeof n=="string"&&(n=[n]),n=n.map(function(a){switch(a){case"tiny":case"mini-time":return"mini";default:return a}}),n=n.concat("long");for(var r=getLocaleData(this.locale),o=_createForOfIteratorHelperLoose(n),i;!(i=o()).done;){var s=i.value;if(r[s])return{labelsType:s,labels:r[s]}}}}]),e}(),defaultLocale="en";TimeAgo.getDefaultLocale=function(){return defaultLocale},TimeAgo.setDefaultLocale=function(e){return defaultLocale=e},TimeAgo.addDefaultLocale=function(e){if(defaultLocaleHasBeenSpecified)return console.error("[javascript-time-ago] `TimeAgo.addDefaultLocale()` can only be called once. To add other locales, use `TimeAgo.addLocale()`.");defaultLocaleHasBeenSpecified=!0,TimeAgo.setDefaultLocale(e.locale),TimeAgo.addLocale(e)};var defaultLocaleHasBeenSpecified;TimeAgo.addLocale=function(e){addLocaleData(e),RelativeTimeFormat.addLocale(e)},TimeAgo.locale=TimeAgo.addLocale,TimeAgo.addLabels=function(e,t,n){var r=getLocaleData(e);r||(addLocaleData({locale:e}),r=getLocaleData(e)),r[t]=n};function getTimestamp(e){if(e.constructor===Date||isMockedDate(e))return e.getTime();if(typeof e=="number")return e;throw new Error("Unsupported relative time formatter input: ".concat(_typeof(e),", ").concat(e))}function isMockedDate(e){return _typeof(e)==="object"&&typeof e.getTime=="function"}function getTimeIntervalMeasurementUnits(e,t,n){var r=Object.keys(t);return n&&r.push("now"),e&&(r=e.filter(function(o){return o==="now"||r.indexOf(o)>=0})),r}function getNowLabel(e,t,n,r){var o=e.now||t&&t.now;if(o)return typeof o=="string"?o:r?o.future:o.past;if(n&&n.second&&n.second.current)return n.second.current}function isStyle(e){return typeof e=="string"||isStyleObject(e)}const en={locale:"en",long:{year:{previous:"last year",current:"this year",next:"next year",past:{one:"{0} year ago",other:"{0} years ago"},future:{one:"in {0} year",other:"in {0} years"}},quarter:{previous:"last quarter",current:"this quarter",next:"next quarter",past:{one:"{0} quarter ago",other:"{0} quarters ago"},future:{one:"in {0} quarter",other:"in {0} quarters"}},month:{previous:"last month",current:"this month",next:"next month",past:{one:"{0} month ago",other:"{0} months ago"},future:{one:"in {0} month",other:"in {0} months"}},week:{previous:"last week",current:"this week",next:"next week",past:{one:"{0} week ago",other:"{0} weeks ago"},future:{one:"in {0} week",other:"in {0} weeks"}},day:{previous:"yesterday",current:"today",next:"tomorrow",past:{one:"{0} day ago",other:"{0} days ago"},future:{one:"in {0} day",other:"in {0} days"}},hour:{current:"this hour",past:{one:"{0} hour ago",other:"{0} hours ago"},future:{one:"in {0} hour",other:"in {0} hours"}},minute:{current:"this minute",past:{one:"{0} minute ago",other:"{0} minutes ago"},future:{one:"in {0} minute",other:"in {0} minutes"}},second:{current:"now",past:{one:"{0} second ago",other:"{0} seconds ago"},future:{one:"in {0} second",other:"in {0} seconds"}}},short:{year:{previous:"last yr.",current:"this yr.",next:"next yr.",past:"{0} yr. ago",future:"in {0} yr."},quarter:{previous:"last qtr.",current:"this qtr.",next:"next qtr.",past:{one:"{0} qtr. ago",other:"{0} qtrs. ago"},future:{one:"in {0} qtr.",other:"in {0} qtrs."}},month:{previous:"last mo.",current:"this mo.",next:"next mo.",past:"{0} mo. ago",future:"in {0} mo."},week:{previous:"last wk.",current:"this wk.",next:"next wk.",past:"{0} wk. ago",future:"in {0} wk."},day:{previous:"yesterday",current:"today",next:"tomorrow",past:{one:"{0} day ago",other:"{0} days ago"},future:{one:"in {0} day",other:"in {0} days"}},hour:{current:"this hour",past:"{0} hr. ago",future:"in {0} hr."},minute:{current:"this minute",past:"{0} min. ago",future:"in {0} min."},second:{current:"now",past:"{0} sec. ago",future:"in {0} sec."}},narrow:{year:{previous:"last yr.",current:"this yr.",next:"next yr.",past:"{0}y ago",future:"in {0}y"},quarter:{previous:"last qtr.",current:"this qtr.",next:"next qtr.",past:"{0}q ago",future:"in {0}q"},month:{previous:"last mo.",current:"this mo.",next:"next mo.",past:"{0}mo ago",future:"in {0}mo"},week:{previous:"last wk.",current:"this wk.",next:"next wk.",past:"{0}w ago",future:"in {0}w"},day:{previous:"yesterday",current:"today",next:"tomorrow",past:"{0}d ago",future:"in {0}d"},hour:{current:"this hour",past:"{0}h ago",future:"in {0}h"},minute:{current:"this minute",past:"{0}m ago",future:"in {0}m"},second:{current:"now",past:"{0}s ago",future:"in {0}s"}},now:{now:{current:"now",future:"in a moment",past:"just now"}},mini:{year:"{0}yr",month:"{0}mo",week:"{0}wk",day:"{0}d",hour:"{0}h",minute:"{0}m",second:"{0}s",now:"now"},"short-time":{year:"{0} yr.",month:"{0} mo.",week:"{0} wk.",day:{one:"{0} day",other:"{0} days"},hour:"{0} hr.",minute:"{0} min.",second:"{0} sec."},"long-time":{year:{one:"{0} year",other:"{0} years"},month:{one:"{0} month",other:"{0} months"},week:{one:"{0} week",other:"{0} weeks"},day:{one:"{0} day",other:"{0} days"},hour:{one:"{0} hour",other:"{0} hours"},minute:{one:"{0} minute",other:"{0} minutes"},second:{one:"{0} second",other:"{0} seconds"}}},es={locale:"es",long:{year:{previous:"el año pasado",current:"este año",next:"el próximo año",past:{one:"hace {0} año",other:"hace {0} años"},future:{one:"dentro de {0} año",other:"dentro de {0} años"}},quarter:{previous:"el trimestre pasado",current:"este trimestre",next:"el próximo trimestre",past:{one:"hace {0} trimestre",other:"hace {0} trimestres"},future:{one:"dentro de {0} trimestre",other:"dentro de {0} trimestres"}},month:{previous:"el mes pasado",current:"este mes",next:"el próximo mes",past:{one:"hace {0} mes",other:"hace {0} meses"},future:{one:"dentro de {0} mes",other:"dentro de {0} meses"}},week:{previous:"la semana pasada",current:"esta semana",next:"la próxima semana",past:{one:"hace {0} semana",other:"hace {0} semanas"},future:{one:"dentro de {0} semana",other:"dentro de {0} semanas"}},day:{previous:"ayer","previous-2":"anteayer",current:"hoy",next:"mañana","next-2":"pasado mañana",past:{one:"hace {0} día",other:"hace {0} días"},future:{one:"dentro de {0} día",other:"dentro de {0} días"}},hour:{current:"esta hora",past:{one:"hace {0} hora",other:"hace {0} horas"},future:{one:"dentro de {0} hora",other:"dentro de {0} horas"}},minute:{current:"este minuto",past:{one:"hace {0} minuto",other:"hace {0} minutos"},future:{one:"dentro de {0} minuto",other:"dentro de {0} minutos"}},second:{current:"ahora",past:{one:"hace {0} segundo",other:"hace {0} segundos"},future:{one:"dentro de {0} segundo",other:"dentro de {0} segundos"}}},short:{year:{previous:"el año pasado",current:"este año",next:"el próximo año",past:"hace {0} a",future:"dentro de {0} a"},quarter:{previous:"el trimestre pasado",current:"este trimestre",next:"el próximo trimestre",past:"hace {0} trim.",future:"dentro de {0} trim."},month:{previous:"el mes pasado",current:"este mes",next:"el próximo mes",past:"hace {0} m",future:"dentro de {0} m"},week:{previous:"sem. ant.",current:"esta sem.",next:"próx. sem.",past:"hace {0} sem.",future:"dentro de {0} sem."},day:{previous:"ayer","previous-2":"anteayer",current:"hoy",next:"mañana","next-2":"pasado mañana",past:"hace {0} d",future:"dentro de {0} d"},hour:{current:"esta hora",past:"hace {0} h",future:"dentro de {0} h"},minute:{current:"este minuto",past:"hace {0} min",future:"dentro de {0} min"},second:{current:"ahora",past:"hace {0} s",future:"dentro de {0} s"}},narrow:{year:{previous:"el año pasado",current:"este año",next:"el próximo año",past:"hace {0} a",future:"dentro de {0} a"},quarter:{previous:"el trimestre pasado",current:"este trimestre",next:"el próximo trimestre",past:"hace {0} trim.",future:"dentro de {0} trim."},month:{previous:"el mes pasado",current:"este mes",next:"el próximo mes",past:"hace {0} m",future:"dentro de {0} m"},week:{previous:"sem. ant.",current:"esta sem.",next:"próx. sem.",past:"hace {0} sem.",future:"dentro de {0} sem."},day:{previous:"ayer","previous-2":"anteayer",current:"hoy",next:"mañana","next-2":"pasado mañana",past:"hace {0} d",future:"dentro de {0} d"},hour:{current:"esta hora",past:"hace {0} h",future:"dentro de {0} h"},minute:{current:"este minuto",past:"hace {0} min",future:"dentro de {0} min"},second:{current:"ahora",past:"hace {0} s",future:"dentro de {0} s"}},now:{now:{current:"ahora",future:"enseguida",past:"ahora mismo"}},mini:{year:{one:"{0} año",other:"{0} años"},month:{one:"{0} mes",other:"{0} meses"},week:"{0} sem.",day:{one:"{0} día",other:"{0} días"},hour:{one:"{0} hora",other:"{0} horas"},minute:"{0} min.",second:"{0} seg.",now:"ahora"},"long-time":{year:{one:"{0} año",other:"{0} años"},month:{one:"{0} mes",other:"{0} meses"},week:{one:"{0} semana",other:"{0} semanas"},day:{one:"{0} día",other:"{0} días"},hour:{one:"{0} hora",other:"{0} horas"},minute:{one:"{0} minuto",other:"{0} minutos"},second:{one:"{0} segundo",other:"{0} segundos"}}},fr={locale:"fr",long:{year:{previous:"l’année dernière",current:"cette année",next:"l’année prochaine",past:{one:"il y a {0} an",other:"il y a {0} ans"},future:{one:"dans {0} an",other:"dans {0} ans"}},quarter:{previous:"le trimestre dernier",current:"ce trimestre",next:"le trimestre prochain",past:{one:"il y a {0} trimestre",other:"il y a {0} trimestres"},future:{one:"dans {0} trimestre",other:"dans {0} trimestres"}},month:{previous:"le mois dernier",current:"ce mois-ci",next:"le mois prochain",past:"il y a {0} mois",future:"dans {0} mois"},week:{previous:"la semaine dernière",current:"cette semaine",next:"la semaine prochaine",past:{one:"il y a {0} semaine",other:"il y a {0} semaines"},future:{one:"dans {0} semaine",other:"dans {0} semaines"}},day:{previous:"hier","previous-2":"avant-hier",current:"aujourd’hui",next:"demain","next-2":"après-demain",past:{one:"il y a {0} jour",other:"il y a {0} jours"},future:{one:"dans {0} jour",other:"dans {0} jours"}},hour:{current:"cette heure-ci",past:{one:"il y a {0} heure",other:"il y a {0} heures"},future:{one:"dans {0} heure",other:"dans {0} heures"}},minute:{current:"cette minute-ci",past:{one:"il y a {0} minute",other:"il y a {0} minutes"},future:{one:"dans {0} minute",other:"dans {0} minutes"}},second:{current:"maintenant",past:{one:"il y a {0} seconde",other:"il y a {0} secondes"},future:{one:"dans {0} seconde",other:"dans {0} secondes"}}},short:{year:{previous:"l’année dernière",current:"cette année",next:"l’année prochaine",past:"il y a {0} a",future:"dans {0} a"},quarter:{previous:"le trimestre dernier",current:"ce trimestre",next:"le trimestre prochain",past:"il y a {0} trim.",future:"dans {0} trim."},month:{previous:"le mois dernier",current:"ce mois-ci",next:"le mois prochain",past:"il y a {0} m.",future:"dans {0} m."},week:{previous:"la semaine dernière",current:"cette semaine",next:"la semaine prochaine",past:"il y a {0} sem.",future:"dans {0} sem."},day:{previous:"hier","previous-2":"avant-hier",current:"aujourd’hui",next:"demain","next-2":"après-demain",past:"il y a {0} j",future:"dans {0} j"},hour:{current:"cette heure-ci",past:"il y a {0} h",future:"dans {0} h"},minute:{current:"cette minute-ci",past:"il y a {0} min",future:"dans {0} min"},second:{current:"maintenant",past:"il y a {0} s",future:"dans {0} s"}},narrow:{year:{previous:"l’année dernière",current:"cette année",next:"l’année prochaine",past:"-{0} a",future:"+{0} a"},quarter:{previous:"le trimestre dernier",current:"ce trimestre",next:"le trimestre prochain",past:"-{0} trim.",future:"+{0} trim."},month:{previous:"le mois dernier",current:"ce mois-ci",next:"le mois prochain",past:"-{0} m.",future:"+{0} m."},week:{previous:"la semaine dernière",current:"cette semaine",next:"la semaine prochaine",past:"-{0} sem.",future:"+{0} sem."},day:{previous:"hier","previous-2":"avant-hier",current:"aujourd’hui",next:"demain","next-2":"après-demain",past:"-{0} j",future:"+{0} j"},hour:{current:"cette heure-ci",past:"-{0} h",future:"+{0} h"},minute:{current:"cette minute-ci",past:"-{0} min",future:"+{0} min"},second:{current:"maintenant",past:"-{0} s",future:"+{0} s"}},now:{now:{current:"maintenant",future:"dans un instant",past:"à l'instant"}},mini:{year:{one:"{0} an",other:"{0} ans"},month:"{0} mois",week:"{0} sem.",day:{one:"{0} jour",other:"{0} jours"},hour:"{0} h",minute:"{0} min.",second:"{0} sec.",now:"maintenant"},"long-time":{year:{one:"{0} an",other:"{0} ans"},month:{one:"{0} mois",other:"{0} mois"},week:{one:"{0} semaine",other:"{0} semaines"},day:{one:"{0} jour",other:"{0} jours"},hour:{one:"{0} heure",other:"{0} heures"},minute:{one:"{0} minute",other:"{0} minutes"},second:{one:"{0} seconde",other:"{0} secondes"}}},pt={locale:"pt",long:{year:{previous:"ano passado",current:"este ano",next:"próximo ano",past:{one:"há {0} ano",other:"há {0} anos"},future:{one:"em {0} ano",other:"em {0} anos"}},quarter:{previous:"último trimestre",current:"este trimestre",next:"próximo trimestre",past:{one:"há {0} trimestre",other:"há {0} trimestres"},future:{one:"em {0} trimestre",other:"em {0} trimestres"}},month:{previous:"mês passado",current:"este mês",next:"próximo mês",past:{one:"há {0} mês",other:"há {0} meses"},future:{one:"em {0} mês",other:"em {0} meses"}},week:{previous:"semana passada",current:"esta semana",next:"próxima semana",past:{one:"há {0} semana",other:"há {0} semanas"},future:{one:"em {0} semana",other:"em {0} semanas"}},day:{previous:"ontem","previous-2":"anteontem",current:"hoje",next:"amanhã","next-2":"depois de amanhã",past:{one:"há {0} dia",other:"há {0} dias"},future:{one:"em {0} dia",other:"em {0} dias"}},hour:{current:"esta hora",past:{one:"há {0} hora",other:"há {0} horas"},future:{one:"em {0} hora",other:"em {0} horas"}},minute:{current:"este minuto",past:{one:"há {0} minuto",other:"há {0} minutos"},future:{one:"em {0} minuto",other:"em {0} minutos"}},second:{current:"agora",past:{one:"há {0} segundo",other:"há {0} segundos"},future:{one:"em {0} segundo",other:"em {0} segundos"}}},short:{year:{previous:"ano passado",current:"este ano",next:"próximo ano",past:{one:"há {0} ano",other:"há {0} anos"},future:{one:"em {0} ano",other:"em {0} anos"}},quarter:{previous:"último trimestre",current:"este trimestre",next:"próximo trimestre",past:"há {0} trim.",future:"em {0} trim."},month:{previous:"mês passado",current:"este mês",next:"próximo mês",past:{one:"há {0} mês",other:"há {0} meses"},future:{one:"em {0} mês",other:"em {0} meses"}},week:{previous:"semana passada",current:"esta semana",next:"próxima semana",past:"há {0} sem.",future:"em {0} sem."},day:{previous:"ontem","previous-2":"anteontem",current:"hoje",next:"amanhã","next-2":"depois de amanhã",past:{one:"há {0} dia",other:"há {0} dias"},future:{one:"em {0} dia",other:"em {0} dias"}},hour:{current:"esta hora",past:"há {0} h",future:"em {0} h"},minute:{current:"este minuto",past:"há {0} min.",future:"em {0} min."},second:{current:"agora",past:"há {0} seg.",future:"em {0} seg."}},narrow:{year:{previous:"ano passado",current:"este ano",next:"próximo ano",past:{one:"há {0} ano",other:"há {0} anos"},future:{one:"em {0} ano",other:"em {0} anos"}},quarter:{previous:"último trimestre",current:"este trimestre",next:"próximo trimestre",past:"há {0} trim.",future:"em {0} trim."},month:{previous:"mês passado",current:"este mês",next:"próximo mês",past:{one:"há {0} mês",other:"há {0} meses"},future:{one:"em {0} mês",other:"em {0} meses"}},week:{previous:"semana passada",current:"esta semana",next:"próxima semana",past:"há {0} sem.",future:"em {0} sem."},day:{previous:"ontem","previous-2":"anteontem",current:"hoje",next:"amanhã","next-2":"depois de amanhã",past:{one:"há {0} dia",other:"há {0} dias"},future:{one:"em {0} dia",other:"em {0} dias"}},hour:{current:"esta hora",past:"há {0} h",future:"em {0} h"},minute:{current:"este minuto",past:"há {0} min.",future:"em {0} min."},second:{current:"agora",past:"há {0} seg.",future:"em {0} seg."}},now:{now:{current:"agora",future:"em instantes",past:"agora mesmo"}},mini:{year:"{0}ano",month:"{0}mes",week:"{0}sem.",day:"{0} d",hour:"{0} h",minute:"{0} m",second:"{0} s",now:"agora"},"long-time":{year:{one:"{0} ano",other:"{0} anos"},month:{one:"{0} mês",other:"{0} meses"},week:{one:"{0} semana",other:"{0} semanas"},day:{one:"{0} dia",other:"{0} dias"},hour:{one:"{0} hora",other:"{0} horas"},minute:{one:"{0} minuto",other:"{0} minutos"},second:{one:"{0} segundo",other:"{0} segundos"}}},nl={locale:"nl",long:{year:{previous:"vorig jaar",current:"dit jaar",next:"volgend jaar",past:"{0} jaar geleden",future:"over {0} jaar"},quarter:{previous:"vorig kwartaal",current:"dit kwartaal",next:"volgend kwartaal",past:{one:"{0} kwartaal geleden",other:"{0} kwartalen geleden"},future:{one:"over {0} kwartaal",other:"over {0} kwartalen"}},month:{previous:"vorige maand",current:"deze maand",next:"volgende maand",past:{one:"{0} maand geleden",other:"{0} maanden geleden"},future:{one:"over {0} maand",other:"over {0} maanden"}},week:{previous:"vorige week",current:"deze week",next:"volgende week",past:{one:"{0} week geleden",other:"{0} weken geleden"},future:{one:"over {0} week",other:"over {0} weken"}},day:{previous:"gisteren","previous-2":"eergisteren",current:"vandaag",next:"morgen","next-2":"overmorgen",past:{one:"{0} dag geleden",other:"{0} dagen geleden"},future:{one:"over {0} dag",other:"over {0} dagen"}},hour:{current:"binnen een uur",past:"{0} uur geleden",future:"over {0} uur"},minute:{current:"binnen een minuut",past:{one:"{0} minuut geleden",other:"{0} minuten geleden"},future:{one:"over {0} minuut",other:"over {0} minuten"}},second:{current:"nu",past:{one:"{0} seconde geleden",other:"{0} seconden geleden"},future:{one:"over {0} seconde",other:"over {0} seconden"}}},short:{year:{previous:"vorig jaar",current:"dit jaar",next:"volgend jaar",past:"{0} jaar geleden",future:"over {0} jaar"},quarter:{previous:"vorig kwartaal",current:"dit kwartaal",next:"volgend kwartaal",past:"{0} kwart. geleden",future:"over {0} kwart."},month:{previous:"vorige maand",current:"deze maand",next:"volgende maand",past:{one:"{0} maand geleden",other:"{0} maanden geleden"},future:{one:"over {0} maand",other:"over {0} maanden"}},week:{previous:"vorige week",current:"deze week",next:"volgende week",past:{one:"{0} week geleden",other:"{0} weken geleden"},future:{one:"over {0} week",other:"over {0} weken"}},day:{previous:"gisteren","previous-2":"eergisteren",current:"vandaag",next:"morgen","next-2":"overmorgen",past:{one:"{0} dag geleden",other:"{0} dgn geleden"},future:{one:"over {0} dag",other:"over {0} dgn"}},hour:{current:"binnen een uur",past:"{0} uur geleden",future:"over {0} uur"},minute:{current:"binnen een minuut",past:"{0} min. geleden",future:"over {0} min."},second:{current:"nu",past:"{0} sec. geleden",future:"over {0} sec."}},narrow:{year:{previous:"vorig jaar",current:"dit jaar",next:"volgend jaar",past:"{0} jaar geleden",future:"over {0} jaar"},quarter:{previous:"vorig kwartaal",current:"dit kwartaal",next:"volgend kwartaal",past:"{0} kw. geleden",future:"over {0} kw."},month:{previous:"vorige maand",current:"deze maand",next:"volgende maand",past:{one:"{0} maand geleden",other:"{0} maanden geleden"},future:{one:"over {0} maand",other:"over {0} maanden"}},week:{previous:"vorige week",current:"deze week",next:"volgende week",past:{one:"{0} week geleden",other:"{0} weken geleden"},future:{one:"over {0} week",other:"over {0} weken"}},day:{previous:"gisteren","previous-2":"eergisteren",current:"vandaag",next:"morgen","next-2":"overmorgen",past:{one:"{0} dag geleden",other:"{0} dgn geleden"},future:{one:"over {0} dag",other:"over {0} dgn"}},hour:{current:"binnen een uur",past:"{0} uur geleden",future:"over {0} uur"},minute:{current:"binnen een minuut",past:"{0} min. geleden",future:"over {0} min."},second:{current:"nu",past:"{0} sec. geleden",future:"over {0} sec."}},now:{now:{current:"nu",future:"zometeen",past:"zojuist"}},mini:{year:"{0} jr.",month:"{0} mnd.",week:{one:"{0} week",other:"{0} wkn."},day:{one:"{0} dag",other:"{0} dgn."},hour:"{0} uur",minute:"{0} min.",second:"{0} sec.",now:"nu"},"long-time":{year:{one:"{0} jaar",other:"{0} jaar"},month:{one:"{0} maand",other:"{0} maanden"},week:{one:"{0} week",other:"{0} weken"},day:{one:"{0} dag",other:"{0} dagen"},hour:{one:"{0} uur",other:"{0} uur"},minute:{one:"{0} minuut",other:"{0} minuten"},second:{one:"{0} seconde",other:"{0} seconden"}}},it={locale:"it",long:{year:{previous:"anno scorso",current:"quest’anno",next:"anno prossimo",past:{one:"{0} anno fa",other:"{0} anni fa"},future:{one:"tra {0} anno",other:"tra {0} anni"}},quarter:{previous:"trimestre scorso",current:"questo trimestre",next:"trimestre prossimo",past:{one:"{0} trimestre fa",other:"{0} trimestri fa"},future:{one:"tra {0} trimestre",other:"tra {0} trimestri"}},month:{previous:"mese scorso",current:"questo mese",next:"mese prossimo",past:{one:"{0} mese fa",other:"{0} mesi fa"},future:{one:"tra {0} mese",other:"tra {0} mesi"}},week:{previous:"settimana scorsa",current:"questa settimana",next:"settimana prossima",past:{one:"{0} settimana fa",other:"{0} settimane fa"},future:{one:"tra {0} settimana",other:"tra {0} settimane"}},day:{previous:"ieri","previous-2":"l’altro ieri",current:"oggi",next:"domani","next-2":"dopodomani",past:{one:"{0} giorno fa",other:"{0} giorni fa"},future:{one:"tra {0} giorno",other:"tra {0} giorni"}},hour:{current:"quest’ora",past:{one:"{0} ora fa",other:"{0} ore fa"},future:{one:"tra {0} ora",other:"tra {0} ore"}},minute:{current:"questo minuto",past:{one:"{0} minuto fa",other:"{0} minuti fa"},future:{one:"tra {0} minuto",other:"tra {0} minuti"}},second:{current:"ora",past:{one:"{0} secondo fa",other:"{0} secondi fa"},future:{one:"tra {0} secondo",other:"tra {0} secondi"}}},short:{year:{previous:"anno scorso",current:"quest’anno",next:"anno prossimo",past:{one:"{0} anno fa",other:"{0} anni fa"},future:{one:"tra {0} anno",other:"tra {0} anni"}},quarter:{previous:"trim. scorso",current:"questo trim.",next:"trim. prossimo",past:"{0} trim. fa",future:"tra {0} trim."},month:{previous:"mese scorso",current:"questo mese",next:"mese prossimo",past:{one:"{0} mese fa",other:"{0} mesi fa"},future:{one:"tra {0} mese",other:"tra {0} mesi"}},week:{previous:"sett. scorsa",current:"questa sett.",next:"sett. prossima",past:"{0} sett. fa",future:"tra {0} sett."},day:{previous:"ieri","previous-2":"l’altro ieri",current:"oggi",next:"domani","next-2":"dopodomani",past:{one:"{0} g fa",other:"{0} gg fa"},future:{one:"tra {0} g",other:"tra {0} gg"}},hour:{current:"quest’ora",past:"{0} h fa",future:"tra {0} h"},minute:{current:"questo minuto",past:"{0} min fa",future:"tra {0} min"},second:{current:"ora",past:"{0} sec. fa",future:"tra {0} sec."}},narrow:{year:{previous:"anno scorso",current:"quest’anno",next:"anno prossimo",past:{one:"{0} anno fa",other:"{0} anni fa"},future:{one:"tra {0} anno",other:"tra {0} anni"}},quarter:{previous:"trim. scorso",current:"questo trim.",next:"trim. prossimo",past:"{0} trim. fa",future:"tra {0} trim."},month:{previous:"mese scorso",current:"questo mese",next:"mese prossimo",past:{one:"{0} mese fa",other:"{0} mesi fa"},future:{one:"tra {0} mese",other:"tra {0} mesi"}},week:{previous:"sett. scorsa",current:"questa sett.",next:"sett. prossima",past:"{0} sett. fa",future:"tra {0} sett."},day:{previous:"ieri","previous-2":"l’altro ieri",current:"oggi",next:"domani","next-2":"dopodomani",past:{one:"{0} g fa",other:"{0} gg fa"},future:{one:"tra {0} g",other:"tra {0} gg"}},hour:{current:"quest’ora",past:"{0} h fa",future:"tra {0} h"},minute:{current:"questo minuto",past:"{0} min fa",future:"tra {0} min"},second:{current:"ora",past:"{0} s fa",future:"tra {0} s"}},now:{now:{current:"adesso",future:"tra poco",past:"proprio ora"}},mini:{year:{one:"{0} anno",other:"{0} anni"},month:{one:"{0} mese",other:"{0} mesi"},week:"{0} sett.",day:"{0} gior.",hour:{one:"{0} ora",other:"{0} ore"},minute:"{0} min.",second:"{0} sec.",now:"adesso"},"long-time":{year:{one:"{0} anno",other:"{0} anni"},month:{one:"{0} mese",other:"{0} mesi"},week:{one:"{0} settimana",other:"{0} settimane"},day:{one:"{0} giorno",other:"{0} giorni"},hour:{one:"{0} ora",other:"{0} ore"},minute:{one:"{0} minuto",other:"{0} minuti"},second:{one:"{0} secondo",other:"{0} secondi"}}},da={locale:"da",long:{year:{previous:"sidste år",current:"i år",next:"næste år",past:"for {0} år siden",future:"om {0} år"},quarter:{previous:"sidste kvartal",current:"dette kvartal",next:"næste kvartal",past:{one:"for {0} kvartal siden",other:"for {0} kvartaler siden"},future:{one:"om {0} kvartal",other:"om {0} kvartaler"}},month:{previous:"sidste måned",current:"denne måned",next:"næste måned",past:{one:"for {0} måned siden",other:"for {0} måneder siden"},future:{one:"om {0} måned",other:"om {0} måneder"}},week:{previous:"sidste uge",current:"denne uge",next:"næste uge",past:{one:"for {0} uge siden",other:"for {0} uger siden"},future:{one:"om {0} uge",other:"om {0} uger"}},day:{previous:"i går","previous-2":"i forgårs",current:"i dag",next:"i morgen","next-2":"i overmorgen",past:{one:"for {0} dag siden",other:"for {0} dage siden"},future:{one:"om {0} dag",other:"om {0} dage"}},hour:{current:"denne time",past:{one:"for {0} time siden",other:"for {0} timer siden"},future:{one:"om {0} time",other:"om {0} timer"}},minute:{current:"dette minut",past:{one:"for {0} minut siden",other:"for {0} minutter siden"},future:{one:"om {0} minut",other:"om {0} minutter"}},second:{current:"nu",past:{one:"for {0} sekund siden",other:"for {0} sekunder siden"},future:{one:"om {0} sekund",other:"om {0} sekunder"}}},short:{year:{previous:"sidste år",current:"i år",next:"næste år",past:"{0} år siden",future:"om {0} år"},quarter:{previous:"sidste kvt.",current:"dette kvt.",next:"næste kvt.",past:"{0} kvt. siden",future:"om {0} kvt."},month:{previous:"sidste md.",current:"denne md.",next:"næste md.",past:{one:"{0} md. siden",other:"{0} mdr. siden"},future:{one:"om {0} md.",other:"om {0} mdr."}},week:{previous:"sidste uge",current:"denne uge",next:"næste uge",past:{one:"{0} uge siden",other:"{0} uger siden"},future:{one:"om {0} uge",other:"om {0} uger"}},day:{previous:"i går","previous-2":"i forgårs",current:"i dag",next:"i morgen","next-2":"i overmorgen",past:{one:"{0} dag siden",other:"{0} dage siden"},future:{one:"om {0} dag",other:"om {0} dage"}},hour:{current:"denne time",past:{one:"{0} time siden",other:"{0} timer siden"},future:{one:"om {0} time",other:"om {0} timer"}},minute:{current:"dette minut",past:"{0} min. siden",future:"om {0} min."},second:{current:"nu",past:"{0} sek. siden",future:"om {0} sek."}},narrow:{year:{previous:"sidste år",current:"i år",next:"næste år",past:"{0} år siden",future:"om {0} år"},quarter:{previous:"sidste kvt.",current:"dette kvt.",next:"næste kvt.",past:"{0} kvt. siden",future:"om {0} kvt."},month:{previous:"sidste md.",current:"denne md.",next:"næste md.",past:{one:"{0} md. siden",other:"{0} mdr. siden"},future:{one:"om {0} md.",other:"om {0} mdr."}},week:{previous:"sidste uge",current:"denne uge",next:"næste uge",past:{one:"{0} uge siden",other:"{0} uger siden"},future:{one:"om {0} uge",other:"om {0} uger"}},day:{previous:"i går","previous-2":"i forgårs",current:"i dag",next:"i morgen","next-2":"i overmorgen",past:{one:"{0} dag siden",other:"{0} dage siden"},future:{one:"om {0} dag",other:"om {0} dage"}},hour:{current:"denne time",past:{one:"{0} time siden",other:"{0} timer siden"},future:{one:"om {0} time",other:"om {0} timer"}},minute:{current:"dette minut",past:"{0} min. siden",future:"om {0} min."},second:{current:"nu",past:"{0} sek. siden",future:"om {0} sek."}},now:{now:{current:"nu",future:"om et øjeblik",past:"lige nu"}},mini:{year:"{0} år",month:{one:"{0} md.",other:"{0} mdr."},week:{one:"{0} uge",other:"{0} uger"},day:{one:"{0} dag",other:"{0} dage"},hour:"{0} t.",minute:"{0} min.",second:"{0} sek.",now:"nu"},"long-time":{year:{one:"{0} år",other:"{0} år"},month:{one:"{0} måned",other:"{0} måneder"},week:{one:"{0} uge",other:"{0} uger"},day:{one:"{0} dag",other:"{0} dage"},hour:{one:"{0} time",other:"{0} timer"},minute:{one:"{0} minut",other:"{0} minutter"},second:{one:"{0} sekund",other:"{0} sekunder"}}},de={locale:"de",long:{year:{previous:"letztes Jahr",current:"dieses Jahr",next:"nächstes Jahr",past:{one:"vor {0} Jahr",other:"vor {0} Jahren"},future:{one:"in {0} Jahr",other:"in {0} Jahren"}},quarter:{previous:"letztes Quartal",current:"dieses Quartal",next:"nächstes Quartal",past:{one:"vor {0} Quartal",other:"vor {0} Quartalen"},future:{one:"in {0} Quartal",other:"in {0} Quartalen"}},month:{previous:"letzten Monat",current:"diesen Monat",next:"nächsten Monat",past:{one:"vor {0} Monat",other:"vor {0} Monaten"},future:{one:"in {0} Monat",other:"in {0} Monaten"}},week:{previous:"letzte Woche",current:"diese Woche",next:"nächste Woche",past:{one:"vor {0} Woche",other:"vor {0} Wochen"},future:{one:"in {0} Woche",other:"in {0} Wochen"}},day:{previous:"gestern","previous-2":"vorgestern",current:"heute",next:"morgen","next-2":"übermorgen",past:{one:"vor {0} Tag",other:"vor {0} Tagen"},future:{one:"in {0} Tag",other:"in {0} Tagen"}},hour:{current:"in dieser Stunde",past:{one:"vor {0} Stunde",other:"vor {0} Stunden"},future:{one:"in {0} Stunde",other:"in {0} Stunden"}},minute:{current:"in dieser Minute",past:{one:"vor {0} Minute",other:"vor {0} Minuten"},future:{one:"in {0} Minute",other:"in {0} Minuten"}},second:{current:"jetzt",past:{one:"vor {0} Sekunde",other:"vor {0} Sekunden"},future:{one:"in {0} Sekunde",other:"in {0} Sekunden"}}},short:{year:{previous:"letztes Jahr",current:"dieses Jahr",next:"nächstes Jahr",past:{one:"vor {0} Jahr",other:"vor {0} Jahren"},future:{one:"in {0} Jahr",other:"in {0} Jahren"}},quarter:{previous:"letztes Quartal",current:"dieses Quartal",next:"nächstes Quartal",past:"vor {0} Quart.",future:"in {0} Quart."},month:{previous:"letzten Monat",current:"diesen Monat",next:"nächsten Monat",past:{one:"vor {0} Monat",other:"vor {0} Monaten"},future:{one:"in {0} Monat",other:"in {0} Monaten"}},week:{previous:"letzte Woche",current:"diese Woche",next:"nächste Woche",past:{one:"vor {0} Woche",other:"vor {0} Wochen"},future:{one:"in {0} Woche",other:"in {0} Wochen"}},day:{previous:"gestern","previous-2":"vorgestern",current:"heute",next:"morgen","next-2":"übermorgen",past:{one:"vor {0} Tag",other:"vor {0} Tagen"},future:{one:"in {0} Tag",other:"in {0} Tagen"}},hour:{current:"in dieser Stunde",past:"vor {0} Std.",future:"in {0} Std."},minute:{current:"in dieser Minute",past:"vor {0} Min.",future:"in {0} Min."},second:{current:"jetzt",past:"vor {0} Sek.",future:"in {0} Sek."}},narrow:{year:{previous:"letztes Jahr",current:"dieses Jahr",next:"nächstes Jahr",past:{one:"vor {0} Jahr",other:"vor {0} Jahren"},future:{one:"in {0} Jahr",other:"in {0} Jahren"}},quarter:{previous:"letztes Quartal",current:"dieses Quartal",next:"nächstes Quartal",past:"vor {0} Q",future:"in {0} Q"},month:{previous:"letzten Monat",current:"diesen Monat",next:"nächsten Monat",past:{one:"vor {0} Monat",other:"vor {0} Monaten"},future:{one:"in {0} Monat",other:"in {0} Monaten"}},week:{previous:"letzte Woche",current:"diese Woche",next:"nächste Woche",past:"vor {0} Wo.",future:"in {0} Wo."},day:{previous:"gestern","previous-2":"vorgestern",current:"heute",next:"morgen","next-2":"übermorgen",past:{one:"vor {0} Tag",other:"vor {0} Tagen"},future:{one:"in {0} Tag",other:"in {0} Tagen"}},hour:{current:"in dieser Stunde",past:"vor {0} Std.",future:"in {0} Std."},minute:{current:"in dieser Minute",past:"vor {0} m",future:"in {0} m"},second:{current:"jetzt",past:"vor {0} s",future:"in {0} s"}},now:{now:{current:"jetzt",future:"in einem Moment",past:"gerade jetzt"}},mini:{year:"{0} J.",month:"{0} Mt.",week:"{0} Wo.",day:"{0} T.",hour:"{0} Std.",minute:"{0} Min.",second:"{0} s",now:"jetzt"},"long-time":{year:{one:"{0} Jahr",other:"{0} Jahre"},month:{one:"{0} Monat",other:"{0} Monate"},week:{one:"{0} Woche",other:"{0} Wochen"},day:{one:"{0} Tag",other:"{0} Tage"},hour:{one:"{0} Stunde",other:"{0} Stunden"},minute:{one:"{0} Minute",other:"{0} Minuten"},second:{one:"{0} Sekunde",other:"{0} Sekunden"}}},zh={locale:"zh",long:{year:{previous:"去年",current:"今年",next:"明年",past:"{0}年前",future:"{0}年后"},quarter:{previous:"上季度",current:"本季度",next:"下季度",past:"{0}个季度前",future:"{0}个季度后"},month:{previous:"上个月",current:"本月",next:"下个月",past:"{0}个月前",future:"{0}个月后"},week:{previous:"上周",current:"本周",next:"下周",past:"{0}周前",future:"{0}周后"},day:{previous:"昨天","previous-2":"前天",current:"今天",next:"明天","next-2":"后天",past:"{0}天前",future:"{0}天后"},hour:{current:"这一时间 / 此时",past:"{0}小时前",future:"{0}小时后"},minute:{current:"此刻",past:"{0}分钟前",future:"{0}分钟后"},second:{current:"现在",past:"{0}秒钟前",future:"{0}秒钟后"}},short:{year:{previous:"去年",current:"今年",next:"明年",past:"{0}年前",future:"{0}年后"},quarter:{previous:"上季度",current:"本季度",next:"下季度",past:"{0}个季度前",future:"{0}个季度后"},month:{previous:"上个月",current:"本月",next:"下个月",past:"{0}个月前",future:"{0}个月后"},week:{previous:"上周",current:"本周",next:"下周",past:"{0}周前",future:"{0}周后"},day:{previous:"昨天","previous-2":"前天",current:"今天",next:"明天","next-2":"后天",past:"{0}天前",future:"{0}天后"},hour:{current:"这一时间 / 此时",past:"{0}小时前",future:"{0}小时后"},minute:{current:"此刻",past:"{0}分钟前",future:"{0}分钟后"},second:{current:"现在",past:"{0}秒前",future:"{0}秒后"}},narrow:{year:{previous:"去年",current:"今年",next:"明年",past:"{0}年前",future:"{0}年后"},quarter:{previous:"上季度",current:"本季度",next:"下季度",past:"{0}个季度前",future:"{0}个季度后"},month:{previous:"上个月",current:"本月",next:"下个月",past:"{0}个月前",future:"{0}个月后"},week:{previous:"上周",current:"本周",next:"下周",past:"{0}周前",future:"{0}周后"},day:{previous:"昨天","previous-2":"前天",current:"今天",next:"明天","next-2":"后天",past:"{0}天前",future:"{0}天后"},hour:{current:"这一时间 / 此时",past:"{0}小时前",future:"{0}小时后"},minute:{current:"此刻",past:"{0}分钟前",future:"{0}分钟后"},second:{current:"现在",past:"{0}秒前",future:"{0}秒后"}},now:{now:{current:"现在",past:"现在",future:"现在"}},mini:{year:"{0}年",month:"{0}个月",week:"{0}周",day:"{0}天",hour:"{0}小时",minute:"{0}分钟",second:"{0}秒钟",now:"现在"}},ro={locale:"ro",long:{year:{previous:"anul trecut",current:"anul acesta",next:"anul viitor",past:{one:"acum {0} an",few:"acum {0} ani",other:"acum {0} de ani"},future:{one:"peste {0} an",few:"peste {0} ani",other:"peste {0} de ani"}},quarter:{previous:"trimestrul trecut",current:"trimestrul acesta",next:"trimestrul viitor",past:{one:"acum {0} trimestru",few:"acum {0} trimestre",other:"acum {0} de trimestre"},future:{one:"peste {0} trimestru",few:"peste {0} trimestre",other:"peste {0} de trimestre"}},month:{previous:"luna trecută",current:"luna aceasta",next:"luna viitoare",past:{one:"acum {0} lună",few:"acum {0} luni",other:"acum {0} de luni"},future:{one:"peste {0} lună",few:"peste {0} luni",other:"peste {0} de luni"}},week:{previous:"săptămâna trecută",current:"săptămâna aceasta",next:"săptămâna viitoare",past:{one:"acum {0} săptămână",few:"acum {0} săptămâni",other:"acum {0} de săptămâni"},future:{one:"peste {0} săptămână",few:"peste {0} săptămâni",other:"peste {0} de săptămâni"}},day:{previous:"ieri","previous-2":"alaltăieri",current:"azi",next:"mâine","next-2":"poimâine",past:{one:"acum {0} zi",few:"acum {0} zile",other:"acum {0} de zile"},future:{one:"peste {0} zi",few:"peste {0} zile",other:"peste {0} de zile"}},hour:{current:"ora aceasta",past:{one:"acum {0} oră",few:"acum {0} ore",other:"acum {0} de ore"},future:{one:"peste {0} oră",few:"peste {0} ore",other:"peste {0} de ore"}},minute:{current:"minutul acesta",past:{one:"acum {0} minut",few:"acum {0} minute",other:"acum {0} de minute"},future:{one:"peste {0} minut",few:"peste {0} minute",other:"peste {0} de minute"}},second:{current:"acum",past:{one:"acum {0} secundă",few:"acum {0} secunde",other:"acum {0} de secunde"},future:{one:"peste {0} secundă",few:"peste {0} secunde",other:"peste {0} de secunde"}}},short:{year:{previous:"anul trecut",current:"anul acesta",next:"anul viitor",past:{one:"acum {0} an",few:"acum {0} ani",other:"acum {0} de ani"},future:{one:"peste {0} an",few:"peste {0} ani",other:"peste {0} de ani"}},quarter:{previous:"trim. trecut",current:"trim. acesta",next:"trim. viitor",past:"acum {0} trim.",future:"peste {0} trim."},month:{previous:"luna trecută",current:"luna aceasta",next:"luna viitoare",past:{one:"acum {0} lună",other:"acum {0} luni"},future:{one:"peste {0} lună",other:"peste {0} luni"}},week:{previous:"săpt. trecută",current:"săpt. aceasta",next:"săpt. viitoare",past:"acum {0} săpt.",future:"peste {0} săpt."},day:{previous:"ieri","previous-2":"alaltăieri",current:"azi",next:"mâine","next-2":"poimâine",past:{one:"acum {0} zi",few:"acum {0} zile",other:"acum {0} de zile"},future:{one:"peste {0} zi",few:"peste {0} zile",other:"peste {0} de zile"}},hour:{current:"ora aceasta",past:"acum {0} h",future:"peste {0} h"},minute:{current:"minutul acesta",past:"acum {0} min.",future:"peste {0} min."},second:{current:"acum",past:"acum {0} sec.",future:"peste {0} sec."}},narrow:{year:{previous:"anul trecut",current:"anul acesta",next:"anul viitor",past:{one:"-{0} an",other:"-{0} ani"},future:{one:"+{0} an",other:"+{0} ani"}},quarter:{previous:"trim. trecut",current:"trim. acesta",next:"trim. viitor",past:"-{0} trim.",future:"+{0} trim."},month:{previous:"luna trecută",current:"luna aceasta",next:"luna viitoare",past:{one:"-{0} lună",other:"-{0} luni"},future:{one:"+{0} lună",other:"+{0} luni"}},week:{previous:"săpt. trecută",current:"săpt. aceasta",next:"săpt. viitoare",past:"-{0} săpt.",future:"+{0} săpt."},day:{previous:"ieri","previous-2":"alaltăieri",current:"azi",next:"mâine","next-2":"poimâine",past:{one:"-{0} zi",other:"-{0} zile"},future:{one:"+{0} zi",other:"+{0} zile"}},hour:{current:"ora aceasta",past:"-{0} h",future:"+{0} h"},minute:{current:"minutul acesta",past:"-{0} m",future:"+{0} m"},second:{current:"acum",past:"-{0} s",future:"+{0} s"}},now:{now:{current:"acum",future:"într-un moment",past:"acum un moment"}},mini:{year:{one:"{0} an",other:"{0} ani"},month:{one:"{0} lună",other:"{0} luni"},week:"{0} săp.",day:{one:"{0} zi",other:"{0} zile"},hour:"{0} h",minute:"{0} min.",second:"{0} sec.",now:"acum"},"long-time":{year:{one:"{0} an",other:"{0} ani"},month:{one:"{0} lună",other:"{0} luni"},week:{one:"{0} săptămână",other:"{0} săptămâni"},day:{one:"{0} zi",other:"{0} zile"},hour:{one:"{0} oră",other:"{0} ore"},minute:{one:"{0} minut",other:"{0} minute"},second:{one:"{0} secundă",other:"{0} secunde"}}},nb={locale:"nb",long:{year:{previous:"i fjor",current:"i år",next:"neste år",past:"for {0} år siden",future:"om {0} år"},quarter:{previous:"forrige kvartal",current:"dette kvartalet",next:"neste kvartal",past:{one:"for {0} kvartal siden",other:"for {0} kvartaler siden"},future:{one:"om {0} kvartal",other:"om {0} kvartaler"}},month:{previous:"forrige måned",current:"denne måneden",next:"neste måned",past:{one:"for {0} måned siden",other:"for {0} måneder siden"},future:{one:"om {0} måned",other:"om {0} måneder"}},week:{previous:"forrige uke",current:"denne uken",next:"neste uke",past:{one:"for {0} uke siden",other:"for {0} uker siden"},future:{one:"om {0} uke",other:"om {0} uker"}},day:{previous:"i går","previous-2":"i forgårs",current:"i dag",next:"i morgen","next-2":"i overmorgen",past:"for {0} døgn siden",future:"om {0} døgn"},hour:{current:"denne timen",past:{one:"for {0} time siden",other:"for {0} timer siden"},future:{one:"om {0} time",other:"om {0} timer"}},minute:{current:"dette minuttet",past:{one:"for {0} minutt siden",other:"for {0} minutter siden"},future:{one:"om {0} minutt",other:"om {0} minutter"}},second:{current:"nå",past:{one:"for {0} sekund siden",other:"for {0} sekunder siden"},future:{one:"om {0} sekund",other:"om {0} sekunder"}}},short:{year:{previous:"i fjor",current:"i år",next:"neste år",past:"for {0} år siden",future:"om {0} år"},quarter:{previous:"forrige kv.",current:"dette kv.",next:"neste kv.",past:"for {0} kv. siden",future:"om {0} kv."},month:{previous:"forrige md.",current:"denne md.",next:"neste md.",past:"for {0} md. siden",future:"om {0} md."},week:{previous:"forrige uke",current:"denne uken",next:"neste uke",past:"for {0} u. siden",future:"om {0} u."},day:{previous:"i går","previous-2":"i forgårs",current:"i dag",next:"i morgen","next-2":"i overmorgen",past:"for {0} d. siden",future:"om {0} d."},hour:{current:"denne timen",past:"for {0} t siden",future:"om {0} t"},minute:{current:"dette minuttet",past:"for {0} min siden",future:"om {0} min"},second:{current:"nå",past:"for {0} sek siden",future:"om {0} sek"}},narrow:{year:{previous:"i fjor",current:"i år",next:"neste år",past:"-{0} år",future:"+{0} år"},quarter:{previous:"forrige kv.",current:"dette kv.",next:"neste kv.",past:"-{0} kv.",future:"+{0} kv."},month:{previous:"forrige md.",current:"denne md.",next:"neste md.",past:"-{0} md.",future:"+{0} md."},week:{previous:"forrige uke",current:"denne uken",next:"neste uke",past:"-{0} u.",future:"+{0} u."},day:{previous:"i går","previous-2":"-2 d.",current:"i dag",next:"i morgen","next-2":"+2 d.",past:"-{0} d.",future:"+{0} d."},hour:{current:"denne timen",past:"-{0} t",future:"+{0} t"},minute:{current:"dette minuttet",past:"-{0} min",future:"+{0} min"},second:{current:"nå",past:"-{0} s",future:"+{0} s"}}},sv={locale:"sv",long:{year:{previous:"i fjol",current:"i år",next:"nästa år",past:"för {0} år sedan",future:"om {0} år"},quarter:{previous:"förra kvartalet",current:"detta kvartal",next:"nästa kvartal",past:"för {0} kvartal sedan",future:"om {0} kvartal"},month:{previous:"förra månaden",current:"denna månad",next:"nästa månad",past:{one:"för {0} månad sedan",other:"för {0} månader sedan"},future:{one:"om {0} månad",other:"om {0} månader"}},week:{previous:"förra veckan",current:"denna vecka",next:"nästa vecka",past:{one:"för {0} vecka sedan",other:"för {0} veckor sedan"},future:{one:"om {0} vecka",other:"om {0} veckor"}},day:{previous:"i går","previous-2":"i förrgår",current:"i dag",next:"i morgon","next-2":"i övermorgon",past:{one:"för {0} dag sedan",other:"för {0} dagar sedan"},future:{one:"om {0} dag",other:"om {0} dagar"}},hour:{current:"denna timme",past:{one:"för {0} timme sedan",other:"för {0} timmar sedan"},future:{one:"om {0} timme",other:"om {0} timmar"}},minute:{current:"denna minut",past:{one:"för {0} minut sedan",other:"för {0} minuter sedan"},future:{one:"om {0} minut",other:"om {0} minuter"}},second:{current:"nu",past:{one:"för {0} sekund sedan",other:"för {0} sekunder sedan"},future:{one:"om {0} sekund",other:"om {0} sekunder"}}},short:{year:{previous:"i fjol",current:"i år",next:"nästa år",past:"för {0} år sen",future:"om {0} år"},quarter:{previous:"förra kv.",current:"detta kv.",next:"nästa kv.",past:"för {0} kv. sen",future:"om {0} kv."},month:{previous:"förra mån.",current:"denna mån.",next:"nästa mån.",past:"för {0} mån. sen",future:"om {0} mån."},week:{previous:"förra v.",current:"denna v.",next:"nästa v.",past:"för {0} v. sedan",future:"om {0} v."},day:{previous:"i går","previous-2":"i förrgår",current:"i dag",next:"i morgon","next-2":"i övermorgon",past:{one:"för {0} d sedan",other:"för {0} d sedan"},future:"om {0} d"},hour:{current:"denna timme",past:"för {0} tim sedan",future:"om {0} tim"},minute:{current:"denna minut",past:"för {0} min sen",future:"om {0} min"},second:{current:"nu",past:"för {0} s sen",future:{one:"om {0} sek",other:"om {0} sek"}}},narrow:{year:{previous:"i fjol",current:"i år",next:"nästa år",past:"−{0} år",future:"+{0} år"},quarter:{previous:"förra kv.",current:"detta kv.",next:"nästa kv.",past:"−{0} kv",future:"+{0} kv."},month:{previous:"förra mån.",current:"denna mån.",next:"nästa mån.",past:"−{0} mån",future:"+{0} mån."},week:{previous:"förra v.",current:"denna v.",next:"nästa v.",past:"−{0} v",future:"+{0} v."},day:{previous:"igår","previous-2":"i förrgår",current:"idag",next:"imorgon","next-2":"i övermorgon",past:"−{0} d",future:"+{0} d"},hour:{current:"denna timme",past:"−{0} h",future:"+{0} h"},minute:{current:"denna minut",past:"−{0} min",future:"+{0} min"},second:{current:"nu",past:"−{0} s",future:"+{0} s"}},now:{now:{current:"nu",future:"om ett ögonblick",past:"alldeles nyss"}},mini:{year:"{0} år",month:"{0} mån.",week:"{0} v.",day:{one:"{0} dag",other:"{0} dagar"},hour:"{0} tim.",minute:"{0} min",second:"{0} sek.",now:"nu"},"long-time":{year:{one:"{0} år",other:"{0} år"},month:{one:"{0} månad",other:"{0} månader"},week:{one:"{0} vecka",other:"{0} veckor"},day:{one:"{0} dag",other:"{0} dagar"},hour:{one:"{0} timme",other:"{0} timmar"},minute:{one:"{0} minut",other:"{0} minuter"},second:{one:"{0} sekund",other:"{0} sekunder"}}},fi={locale:"fi",long:{year:{previous:"viime vuonna",current:"tänä vuonna",next:"ensi vuonna",past:{one:"{0} vuosi sitten",other:"{0} vuotta sitten"},future:"{0} vuoden päästä"},quarter:{previous:"viime neljännesvuonna",current:"tänä neljännesvuonna",next:"ensi neljännesvuonna",past:{one:"{0} neljännesvuosi sitten",other:"{0} neljännesvuotta sitten"},future:"{0} neljännesvuoden päästä"},month:{previous:"viime kuussa",current:"tässä kuussa",next:"ensi kuussa",past:{one:"{0} kuukausi sitten",other:"{0} kuukautta sitten"},future:"{0} kuukauden päästä"},week:{previous:"viime viikolla",current:"tällä viikolla",next:"ensi viikolla",past:{one:"{0} viikko sitten",other:"{0} viikkoa sitten"},future:"{0} viikon päästä"},day:{previous:"eilen","previous-2":"toissa päivänä",current:"tänään",next:"huomenna","next-2":"ylihuomenna",past:{one:"{0} päivä sitten",other:"{0} päivää sitten"},future:"{0} päivän päästä"},hour:{current:"tämän tunnin aikana",past:{one:"{0} tunti sitten",other:"{0} tuntia sitten"},future:"{0} tunnin päästä"},minute:{current:"tämän minuutin aikana",past:{one:"{0} minuutti sitten",other:"{0} minuuttia sitten"},future:"{0} minuutin päästä"},second:{current:"nyt",past:{one:"{0} sekunti sitten",other:"{0} sekuntia sitten"},future:"{0} sekunnin päästä"}},short:{year:{previous:"viime v",current:"tänä v",next:"ensi v",past:"{0} v sitten",future:"{0} v päästä"},quarter:{previous:"viime neljänneksenä",current:"tänä neljänneksenä",next:"ensi neljänneksenä",past:{one:"{0} neljännes sitten",other:"{0} neljännestä sitten"},future:"{0} neljänneksen päästä"},month:{previous:"viime kk",current:"tässä kk",next:"ensi kk",past:"{0} kk sitten",future:"{0} kk päästä"},week:{previous:"viime vk",current:"tällä vk",next:"ensi vk",past:"{0} vk sitten",future:"{0} vk päästä"},day:{previous:"eilen","previous-2":"toissap.",current:"tänään",next:"huom.","next-2":"ylihuom.",past:"{0} pv sitten",future:"{0} pv päästä"},hour:{current:"tunnin sisällä",past:"{0} t sitten",future:"{0} t päästä"},minute:{current:"minuutin sisällä",past:"{0} min sitten",future:"{0} min päästä"},second:{current:"nyt",past:"{0} s sitten",future:"{0} s päästä"}},narrow:{year:{previous:"viime v",current:"tänä v",next:"ensi v",past:"{0} v sitten",future:"{0} v päästä"},quarter:{previous:"viime nelj.",current:"tänä nelj.",next:"ensi nelj.",past:"{0} nelj. sitten",future:"{0} nelj. päästä"},month:{previous:"viime kk",current:"tässä kk",next:"ensi kk",past:"{0} kk sitten",future:"{0} kk päästä"},week:{previous:"viime vk",current:"tällä vk",next:"ensi vk",past:"{0} vk sitten",future:"{0} vk päästä"},day:{previous:"eilen","previous-2":"toissap.",current:"tänään",next:"huom.","next-2":"ylihuom.",past:"{0} pv sitten",future:"{0} pv päästä"},hour:{current:"tunnin sisällä",past:"{0} t sitten",future:"{0} t päästä"},minute:{current:"minuutin sisällä",past:"{0} min sitten",future:"{0} min päästä"},second:{current:"nyt",past:"{0} s sitten",future:"{0} s päästä"}}},id={locale:"id",long:{year:{previous:"tahun lalu",current:"tahun ini",next:"tahun depan",past:"{0} tahun yang lalu",future:"dalam {0} tahun"},quarter:{previous:"Kuartal lalu",current:"kuartal ini",next:"kuartal berikutnya",past:"{0} kuartal yang lalu",future:"dalam {0} kuartal"},month:{previous:"bulan lalu",current:"bulan ini",next:"bulan depan",past:"{0} bulan yang lalu",future:"dalam {0} bulan"},week:{previous:"minggu lalu",current:"minggu ini",next:"minggu depan",past:"{0} minggu yang lalu",future:"dalam {0} minggu"},day:{previous:"kemarin","previous-2":"kemarin dulu",current:"hari ini",next:"besok","next-2":"lusa",past:"{0} hari yang lalu",future:"dalam {0} hari"},hour:{current:"jam ini",past:"{0} jam yang lalu",future:"dalam {0} jam"},minute:{current:"menit ini",past:"{0} menit yang lalu",future:"dalam {0} menit"},second:{current:"sekarang",past:"{0} detik yang lalu",future:"dalam {0} detik"}},short:{year:{previous:"thn lalu",current:"thn ini",next:"thn depan",past:"{0} thn lalu",future:"dlm {0} thn"},quarter:{previous:"krtl lalu",current:"krtl ini",next:"krtl berikutnya",past:"{0} krtl. lalu",future:"dlm {0} krtl."},month:{previous:"bln lalu",current:"bln ini",next:"bln berikutnya",past:"{0} bln lalu",future:"dlm {0} bln"},week:{previous:"mgg lalu",current:"mgg ini",next:"mgg depan",past:"{0} mgg lalu",future:"dlm {0} mgg"},day:{previous:"kemarin","previous-2":"selumbari",current:"hari ini",next:"besok","next-2":"lusa",past:"{0} h lalu",future:"dalam {0} h"},hour:{current:"jam ini",past:"{0} jam lalu",future:"dalam {0} jam"},minute:{current:"mnt ini",past:"{0} mnt lalu",future:"dlm {0} mnt"},second:{current:"sekarang",past:"{0} dtk lalu",future:"dlm {0} dtk"}},narrow:{year:{previous:"thn lalu",current:"thn ini",next:"thn depan",past:"{0} thn lalu",future:"dlm {0} thn"},quarter:{previous:"krtl lalu",current:"krtl ini",next:"krtl berikutnya",past:"{0} krtl. lalu",future:"dlm {0} krtl."},month:{previous:"bln lalu",current:"bln ini",next:"bln berikutnya",past:"{0} bln lalu",future:"dlm {0} bln"},week:{previous:"mgg lalu",current:"mgg ini",next:"mgg depan",past:"{0} mgg lalu",future:"dlm {0} mgg"},day:{previous:"kemarin","previous-2":"selumbari",current:"hari ini",next:"besok","next-2":"lusa",past:"{0} h lalu",future:"dalam {0} h"},hour:{current:"jam ini",past:"{0} jam lalu",future:"dalam {0} jam"},minute:{current:"mnt ini",past:"{0} mnt lalu",future:"dlm {0} mnt"},second:{current:"sekarang",past:"{0} dtk lalu",future:"dlm {0} dtk"}},now:{now:{current:"sekarang",future:"beberapa saat lagi",past:"baru saja"}},mini:{year:"{0}thn",month:"{0}bln",week:"{0}mg",day:"{0}hr",hour:"{0}jam",minute:"{0}mnt",second:"{0}dtk",now:"sekarang"},"short-time":{year:"{0} thn.",month:"{0} bln.",week:"{0} mg.",day:"{0} hr.",hour:"{0} jam.",minute:"{0} mnt.",second:"{0} dtk."},"long-time":{year:"{0} tahun",month:"{0} bulan",week:"{0} minggu",day:"{0} hari",hour:"{0} jam",minute:"{0} menit",second:"{0} detik"}},hu={locale:"hu",long:{year:{previous:"előző év",current:"ez az év",next:"következő év",past:"{0} évvel ezelőtt",future:"{0} év múlva"},quarter:{previous:"előző negyedév",current:"ez a negyedév",next:"következő negyedév",past:"{0} negyedévvel ezelőtt",future:"{0} negyedév múlva"},month:{previous:"előző hónap",current:"ez a hónap",next:"következő hónap",past:"{0} hónappal ezelőtt",future:"{0} hónap múlva"},week:{previous:"előző hét",current:"ez a hét",next:"következő hét",past:"{0} héttel ezelőtt",future:"{0} hét múlva"},day:{previous:"tegnap","previous-2":"tegnapelőtt",current:"ma",next:"holnap","next-2":"holnapután",past:"{0} nappal ezelőtt",future:"{0} nap múlva"},hour:{current:"ebben az órában",past:"{0} órával ezelőtt",future:"{0} óra múlva"},minute:{current:"ebben a percben",past:"{0} perccel ezelőtt",future:"{0} perc múlva"},second:{current:"most",past:"{0} másodperccel ezelőtt",future:"{0} másodperc múlva"}},short:{year:{previous:"előző év",current:"ez az év",next:"következő év",past:"{0} évvel ezelőtt",future:"{0} év múlva"},quarter:{previous:"előző negyedév",current:"ez a negyedév",next:"következő negyedév",past:"{0} negyedévvel ezelőtt",future:"{0} negyedév múlva"},month:{previous:"előző hónap",current:"ez a hónap",next:"következő hónap",past:"{0} hónappal ezelőtt",future:"{0} hónap múlva"},week:{previous:"előző hét",current:"ez a hét",next:"következő hét",past:"{0} héttel ezelőtt",future:"{0} hét múlva"},day:{previous:"tegnap","previous-2":"tegnapelőtt",current:"ma",next:"holnap","next-2":"holnapután",past:"{0} napja",future:"{0} nap múlva"},hour:{current:"ebben az órában",past:"{0} órával ezelőtt",future:"{0} óra múlva"},minute:{current:"ebben a percben",past:"{0} perccel ezelőtt",future:"{0} perc múlva"},second:{current:"most",past:"{0} másodperccel ezelőtt",future:"{0} másodperc múlva"}},narrow:{year:{previous:"előző év",current:"ez az év",next:"következő év",past:"{0} éve",future:"{0} év múlva"},quarter:{previous:"előző negyedév",current:"ez a negyedév",next:"következő negyedév",past:"{0} negyedévvel ezelőtt",future:"{0} n.év múlva"},month:{previous:"előző hónap",current:"ez a hónap",next:"következő hónap",past:"{0} hónapja",future:"{0} hónap múlva"},week:{previous:"előző hét",current:"ez a hét",next:"következő hét",past:"{0} hete",future:"{0} hét múlva"},day:{previous:"tegnap","previous-2":"tegnapelőtt",current:"ma",next:"holnap","next-2":"holnapután",past:"{0} napja",future:"{0} nap múlva"},hour:{current:"ebben az órában",past:"{0} órája",future:"{0} óra múlva"},minute:{current:"ebben a percben",past:"{0} perce",future:"{0} perc múlva"},second:{current:"most",past:"{0} m.perce",future:"{0} másodperc múlva"}}},he={locale:"he",long:{year:{previous:"השנה שעברה",current:"השנה",next:"השנה הבאה",past:{one:"לפני שנה",two:"לפני שנתיים",many:"לפני {0} שנה",other:"לפני {0} שנים"},future:{one:"בעוד שנה",two:"בעוד שנתיים",many:"בעוד {0} שנה",other:"בעוד {0} שנים"}},quarter:{previous:"הרבעון הקודם",current:"רבעון זה",next:"הרבעון הבא",past:{one:"ברבעון הקודם",two:"לפני שני רבעונים",other:"לפני {0} רבעונים"},future:{one:"ברבעון הבא",two:"בעוד שני רבעונים",other:"בעוד {0} רבעונים"}},month:{previous:"החודש שעבר",current:"החודש",next:"החודש הבא",past:{one:"לפני חודש",two:"לפני חודשיים",other:"לפני {0} חודשים"},future:{one:"בעוד חודש",two:"בעוד חודשיים",other:"בעוד {0} חודשים"}},week:{previous:"השבוע שעבר",current:"השבוע",next:"השבוע הבא",past:{one:"לפני שבוע",two:"לפני שבועיים",other:"לפני {0} שבועות"},future:{one:"בעוד שבוע",two:"בעוד שבועיים",other:"בעוד {0} שבועות"}},day:{previous:"אתמול","previous-2":"שלשום",current:"היום",next:"מחר","next-2":"מחרתיים",past:{one:"לפני יום {0}",two:"לפני יומיים",other:"לפני {0} ימים"},future:{one:"בעוד יום {0}",two:"בעוד יומיים",other:"בעוד {0} ימים"}},hour:{current:"בשעה זו",past:{one:"לפני שעה",two:"לפני שעתיים",other:"לפני {0} שעות"},future:{one:"בעוד שעה",two:"בעוד שעתיים",other:"בעוד {0} שעות"}},minute:{current:"בדקה זו",past:{one:"לפני דקה",two:"לפני שתי דקות",other:"לפני {0} דקות"},future:{one:"בעוד דקה",two:"בעוד שתי דקות",other:"בעוד {0} דקות"}},second:{current:"עכשיו",past:{one:"לפני שנייה",two:"לפני שתי שניות",other:"לפני {0} שניות"},future:{one:"בעוד שנייה",two:"בעוד שתי שניות",other:"בעוד {0} שניות"}}},short:{year:{previous:"השנה שעברה",current:"השנה",next:"השנה הבאה",past:{one:"לפני שנה",two:"לפני שנתיים",many:"לפני {0} שנה",other:"לפני {0} שנים"},future:{one:"בעוד שנה",two:"בעוד שנתיים",many:"בעוד {0} שנה",other:"בעוד {0} שנים"}},quarter:{previous:"הרבעון הקודם",current:"רבעון זה",next:"הרבעון הבא",past:{one:"ברבע׳ הקודם",two:"לפני שני רבע׳",other:"לפני {0} רבע׳"},future:{one:"ברבע׳ הבא",two:"בעוד שני רבע׳",other:"בעוד {0} רבע׳"}},month:{previous:"החודש שעבר",current:"החודש",next:"החודש הבא",past:{one:"לפני חודש",two:"לפני חודשיים",other:"לפני {0} חודשים"},future:{one:"בעוד חודש",two:"בעוד חודשיים",other:"בעוד {0} חודשים"}},week:{previous:"השבוע שעבר",current:"השבוע",next:"השבוע הבא",past:{one:"לפני שב׳",two:"לפני שבועיים",other:"לפני {0} שב׳"},future:{one:"בעוד שב׳",two:"בעוד שבועיים",other:"בעוד {0} שב׳"}},day:{previous:"אתמול","previous-2":"שלשום",current:"היום",next:"מחר","next-2":"מחרתיים",past:{one:"אתמול",two:"לפני יומיים",other:"לפני {0} ימים"},future:{one:"מחר",two:"בעוד יומיים",other:"בעוד {0} ימים"}},hour:{current:"בשעה זו",past:{one:"לפני שעה",two:"לפני שעתיים",other:"לפני {0} שע׳"},future:{one:"בעוד שעה",two:"בעוד שעתיים",other:"בעוד {0} שע׳"}},minute:{current:"דקה זו",past:{one:"לפני דקה",other:"לפני {0} דק׳"},future:{one:"בעוד דקה",two:"בעוד שתי דק׳",other:"בעוד {0} דק׳"}},second:{current:"עכשיו",past:{one:"לפני שנ׳",two:"לפני שתי שנ׳",other:"לפני {0} שנ׳"},future:{one:"בעוד שנ׳",two:"בעוד שתי שנ׳",other:"בעוד {0} שנ׳"}}},narrow:{year:{previous:"השנה שעברה",current:"השנה",next:"השנה הבאה",past:{one:"לפני שנה",two:"לפני שנתיים",many:"לפני {0} שנה",other:"לפני {0} שנים"},future:{one:"בעוד שנה",two:"בעוד שנתיים",many:"בעוד {0} שנה",other:"בעוד {0} שנים"}},quarter:{previous:"הרבעון הקודם",current:"רבעון זה",next:"הרבעון הבא",past:{one:"ברבע׳ הקודם",two:"לפני שני רבע׳",other:"לפני {0} רבע׳"},future:{one:"ברבע׳ הבא",two:"בעוד שני רבע׳",other:"בעוד {0} רבע׳"}},month:{previous:"החודש שעבר",current:"החודש",next:"החודש הבא",past:{one:"לפני חו׳",two:"לפני חודשיים",other:"לפני {0} חו׳"},future:{one:"בעוד חו׳",two:"בעוד חודשיים",other:"בעוד {0} חו׳"}},week:{previous:"השבוע שעבר",current:"השבוע",next:"השבוע הבא",past:{one:"לפני שבוע",two:"לפני שבועיים",other:"לפני {0} שב׳"},future:{one:"בעוד שב׳",two:"בעוד שבועיים",other:"בעוד {0} שב׳"}},day:{previous:"אתמול","previous-2":"שלשום",current:"היום",next:"מחר","next-2":"מחרתיים",past:{one:"אתמול",two:"לפני יומיים",other:"לפני {0} ימים"},future:{one:"מחר",two:"בעוד יומיים",other:"בעוד {0} ימים"}},hour:{current:"בשעה זו",past:{one:"לפני שעה",two:"לפני שעתיים",other:"לפני {0} שע׳"},future:{one:"בעוד שעה",two:"בעוד שעתיים",other:"בעוד {0} שע׳"}},minute:{current:"דקה זו",past:{one:"לפני דקה",two:"לפני שתי דק׳",other:"לפני {0} דק׳"},future:{one:"בעוד דקה",two:"בעוד שתי דק׳",other:"בעוד {0} דק׳"}},second:{current:"עכשיו",past:{one:"לפני שנ׳",two:"לפני שתי שנ׳",other:"לפני {0} שנ׳"},future:{one:"בעוד שנ׳",two:"בעוד שתי שנ׳",other:"בעוד {0} שנ׳"}}}},initializeTimeAgo=e=>(TimeAgo.addDefaultLocale(en),TimeAgo.addLocale(es),TimeAgo.addLocale(fr),TimeAgo.addLocale(pt),TimeAgo.addLocale(nl),TimeAgo.addLocale(it),TimeAgo.addLocale(da),TimeAgo.addLocale(de),TimeAgo.addLocale(zh),TimeAgo.addLocale(ro),TimeAgo.addLocale(nb),TimeAgo.addLocale(sv),TimeAgo.addLocale(fi),TimeAgo.addLocale(id),TimeAgo.addLocale(hu),TimeAgo.addLocale(he),new TimeAgo(e)),{initCartWatcher}=useCartWatcher(),useMain=()=>{const e=useMainStore(),{actions:t,activePop:n,activeBar:r,activeBtns:o,buttons:i,campaigns:s,countryCode:a,currentSite:c,currency:l,permissions:d,pops:g,popSettings:m,permissionsWithOverrides:y,popDynamicVars:C}=storeToRefs(e);ref([]);const w=useStorage(),I=()=>{var N,te,se,oe;return((N=m.value)==null?void 0:N.pop_devices.length)==0?!1:!!(ee&&((te=m.value)!=null&&te.pop_devices.includes("Mobile"))||be&&((se=m.value)!=null&&se.pop_devices.includes("Tablet"))||Wi&&((oe=m.value)!=null&&oe.pop_devices.includes("Desktop")))},j=N=>{const te=N.lastIndexOf(" - ");return te!==-1?N.substring(0,te):N},J=async({id:N})=>{var v,T,R,F;let te="https://cdn.pop-convert.com";if(!((T=(v=window.ShopifyAnalytics)==null?void 0:v.meta)!=null&&T.product))return;const se=window.ShopifyAnalytics.meta.product.id,oe=j(window.ShopifyAnalytics.meta.product.name||window.ShopifyAnalytics.meta.product.variants[0].name);te+=`/micro/api/sites/dynamic_vars?unique_id=${N}&vars=cart_item_count,order_item_count&product_id=${se}`;const ge=await(await fetch(te)).json();ge.product_title=oe;const Y=window.location.origin+window.location.pathname,Ie=await(await fetch(Y+".json")).json();ge.product_image=(F=(R=Ie==null?void 0:Ie.product)==null?void 0:R.image)==null?void 0:F.src,C.value=ge},A=async(N,te)=>{if(window.proof={pops:null,actions:null,settings:null},g.value=te.pops,m.value={pop_devices:te.pop_devices,pop_position_mobile:te.pop_position_mobile,pop_position_desktop:te.pop_position_desktop,pop_delay_time:te.pop_delay_time,pop_show_time:te.pop_show_time,pop_between_time:te.pop_between_time,pop_size:te.pop_size,pop_repeat:te.pop_repeat,pop_random_order:te.pop_random_order,pop_can_close:te.pop_can_close},window.proof.settings=m.value,!I()){g.value=[];return}if(g.value=g.value.filter(oe=>oe.display_pages&&oe.display_pages.length>0?oe.display_pages.some(ie=>B(ie)):!0),window.proof.pops=g.value,g.value.length<=0)return;const se=new URLSearchParams(window.location.search).get("pc_locale")||c.value.locale||"en";window.pcTimeAgo=initializeTimeAgo(se),await E({id:N}),m.value.pop_random_order&&(t.value=t.value.sort(()=>Math.random()-.5)),y.value.includes("ORDER_POP_ONLY")&&(t.value=t.value.filter(oe=>oe.kind=="order")),g.value.some(oe=>oe.kind=="cart_item"||oe.kind=="order_item")&&(await J({id:N}),C.value.cart_item_count&&(t.value=[{id:1,kind:"cart_item",resource_id:"cart_item",resource_type:"cart_item",vars:{}},...t.value]),C.value.order_item_count&&(t.value=[{id:1,kind:"order_item",resource_id:"order_item",resource_type:"order_item",vars:{}},...t.value])),window.proof.actions=t.value},k=({campaigns:N})=>{const te=[],se=N.filter(oe=>oe.connected_test);for(const oe of se)!te.find(ge=>{var Y;return ge.id===((Y=oe.connected_test)==null?void 0:Y.id)})&&oe.connected_test&&te.push(oe.connected_test);for(const oe of te){const ge=Math.random()<.5?oe.campaign_a:oe.campaign_b;N=N.filter(Y=>Y.id!==ge)}return N},b=async({id:N})=>{let te="https://cdn.pop-convert.com";te+=`/micro/api/sites?unique_id=${N}`;const se=new URLSearchParams(window.location.search).get("pc_preview");if(se&&(te+=`&pc_preview=${se}`),!se&&window.myPC){const ge=window.myPC;c.value={siteName:ge.site_name,siteUrl:ge.site_url,source:ge.source,uniqueId:ge.unique_id,...ge},l.value=ge.currency,d.value=ge.permissions,await fetch("https://cdn.micro.pop-convert.com/geo_stub").then(async Y=>{const xe=await Y.json();a.value=xe.country_code,new URLSearchParams(window.location.search).get("pc_geo_code")&&(a.value=new URLSearchParams(window.location.search).get("pc_geo_code")),window.pcDeterminedCountryCode=a.value}).catch(()=>{a.value=window.Shopify.country||"UNKNOWN"}),window.pcDeterminedCountryCode=a.value,s.value=k({campaigns:ge.campaigns}),await A(N,ge);return}const oe=await fetch(te),ie=await oe.json();c.value={siteName:ie.site_name,siteUrl:ie.site_url,source:ie.source,uniqueId:ie.unique_id,...ie},l.value=ie.currency,d.value=ie.permissions,a.value=new URLSearchParams(window.location.search).get("pc_geo_code")||oe.headers.get("cdn-requestcountrycode")||"UNKNOWN",window.pcDeterminedCountryCode=a.value,s.value=k({campaigns:ie.campaigns}),i.value=ie.buttons,await A(N,ie)},E=async({id:N})=>{let te="https://cdn.pop-convert.com";te+=`/micro/api/sites/actions?unique_id=${N}`;const oe=await(await fetch(te)).json();t.value=oe.filter(Y=>g.value.some(xe=>xe.kind===Y.kind));const ie=g.value.find(Y=>Y.kind==="recent"),ge=g.value.find(Y=>Y.kind==="live");ie&&ie.min_recent_visitors&&ie.vars.recent_visitor_count&&ie.vars.recent_visitor_count>=ie.min_recent_visitors&&(t.value=[{id:1,kind:"recent",resource_id:"recent",resource_type:"recent",vars:{recent_visitor_count:ie.vars.recent_visitor_count}},...t.value]),ge&&ge.min_live_visitors&&ge.vars.live_visitor_count&&ge.vars.live_visitor_count>=ge.min_live_visitors&&(t.value=[{id:2,kind:"live",resource_id:"live",resource_type:"live",vars:{live_visitor_count:ge.vars.live_visitor_count}},...t.value])},D=({campaign:N,msg:te,type:se})=>{},O=N=>N.schedule_rule==="always_show"?!0:N.schedule_rule==="start_only"?new Date>new Date(String(N.schedule_start_at)):N.schedule_rule==="start_and_end"?new Date>new Date(String(N.schedule_start_at))&&new Date{var te;const N=window.location.href.split("/");if(N.length>4)return!1;if(N.length===4){const se=(te=N[3])==null?void 0:te.split("?");if(((se==null?void 0:se.length)??0)>1)return se&&se[0]===""}return!0},B=N=>{switch(N.selection){case"contains":return window.location.href.includes(N.value);case"equals":return window.location.href===N.value;case"not_equals":return window.location.href!==N.value;case"not_contains":return!window.location.href.includes(N.value);case"homepage":return M();case"not_homepage":return!M();default:return!1}},Z=N=>{var te,se;return N.display_all_pages||!N.new_display_pages?!0:N.display_pages_match_rule==="any"?(te=N.new_display_pages)==null?void 0:te.some(oe=>B(oe)):N.display_pages_match_rule==="all"?(se=N.new_display_pages)==null?void 0:se.every(oe=>B(oe)):!1},q=N=>{var te,se;return N.display_all_geos?!0:N.display_some_geos?(te=N.display_geos)==null?void 0:te.includes(a.value):N.exclude_some_geos?!((se=N.exclude_geos)!=null&&se.includes(a.value)):!1},pe=(N,te,se,oe,ie)=>te?N.display_widget_after===-1:se?N.display_widget_after===-3:oe?N.display_widget_after===-4&&window.pcScrollPercentage?window.pcScrollPercentage>=N.scroll_percent:!1:ie?N.display_widget_after===-5:N.display_widget_after==-1||N.display_widget_after==-2||N.display_widget_after==-3||N.display_widget_after==-4||N.display_widget_after==-5?!1:(new Date().getTime()-e.pageLoadedAt.getTime())/1e3>N.display_widget_after,Se=N=>{if(!w.listAll("closed").some(se=>se.id===N.id))return!0;if(N.display_again_after==="-2"){const se=w.list("closed","page").find(ie=>ie.id===N.id),oe=w.listAll("submitted").find(ie=>ie.id===N.id);return!se&&!oe}if(N.display_again_after==="-1")return!w.list("closed","session").find(se=>se.id===N.id);const te=w.listAll("closed").find(se=>se.id===N.id);if(te){const se=new Date(te.closedAt),oe=N.display_again_after,ie=new Date(se.getTime()+Number(oe)*24*60*60*1e3);if(new $8f392239b348c51c$export$9099ad97b570f7c(new Date,ie).days()>=Number(N.display_again_after))return N.display_again_after!=="-1"?w.remove("closed","local",N.id):w.remove("closed","session",N.id),!0}return!1},Ee=N=>{if(N.display_again_after==="-2"){w.add("closed","page",{id:N.id,closedAt:new Date().toISOString()});return}if(N.display_again_after==="-1"){w.add("closed","session",{id:N.id,closedAt:new Date().toISOString()});return}w.add("closed","local",{id:N.id,closedAt:new Date().toISOString()}),N.goal==="wheel"&&N.after_submission==="redirect"&&N.redirect_url_after_submission&&window.open(N.redirect_url_after_submission,N.redirect_url_after_submission_new_window?"_blank":"_self")},ne=()=>{if(e.campaigns)for(const N of e.campaigns){if(N.display_widget_after!=-5||window.location.href.indexOf("/products/")===-1)continue;const te=window.location.href.match(/\/products\/([^/?]+)/),se=te?te[1]:null;se&&(localStorage.getItem(`pcOutOfStockChecked-${se}`)||(localStorage.setItem(`pcOutOfStockChecked-${se}`,"true"),fetch(window.location.href.split("?")[0]||window.location.href).then(oe=>oe.json()).then(oe=>{const ie=!oe.variants[0].available;console.log(ie?"Out of stock":"In stock"),ie?(localStorage.setItem(`pcIsProductOutOfStock-${se}`,"true"),ke(!1,!1,!1,!0)):localStorage.setItem(`pcIsProductOutOfStock-${se}`,"false")})))}},we=()=>{if(e.campaigns)for(const N of e.campaigns){if(N.display_widget_after!=-4&&N.display_widget_after!=-1||window.pcInitScrollWatcher)continue;window.pcInitScrollWatcher=!0;let te=0,se=0;window.addEventListener("scroll",()=>{te=window.scrollY,se-te<-200&&ke(!1,!1,!0);const oe=window.scrollY,ie=window.innerHeight,ge=document.documentElement.scrollHeight,Y=(oe+ie)/ge*100;window.pcScrollPercentage=Y,ke(!1,!1,!0),se=window.scrollY})}},_e=()=>{for(const N of e.popCampaigns)N.display_widget_after==-3&&(window.pcInitCartWatcher||(window.pcInitCartWatcher=!0,initCartWatcher(),window.addEventListener("__pc_cart_changed__",te=>{te.detail.added.length<=0||ke(!1,!0)})))},V=N=>`@import url(https://fonts.bunny.net/css?family=${String(N).toLowerCase().replace(/[^a-z0-9]+/g,"-").replace(/^-|-$/g,"")}:400);`,ue=()=>{for(const N of e.campaigns){N.custom_css_enabled&&N.custom_css&&window.injectFontFromCss(N.custom_css),N.custom_font_enabled&&N.font_family&&window.injectFontFromCss(V(N.font_family)),N.wheel_font_enabled&&N.wheel_font_family&&window.injectFontFromCss(V(N.wheel_font_family));const te=N.main_content;if(te&&te.length>0){const ie=te.match(/font-family:\s*([^;"']+)/g);ie&&ie.forEach(ge=>{var xe;const Y=(xe=ge.split(":")[1])==null?void 0:xe.trim();Y&&window.injectFontFromCss(V(Y))})}const se=N.bar_content;se&&se.length>0&&se.forEach(ie=>{const ge=ie.content.match(/font-family:\s*([^;"']+)/g);ge&&ge.forEach(Y=>{var Ie;const xe=(Ie=Y.split(":")[1])==null?void 0:Ie.trim();xe&&window.injectFontFromCss(V(xe))})});const oe=N.content_blocks.filter(ie=>ie.block_type=="text");oe.length>0&&oe.forEach(ie=>{if(ie.text&&ie.text.includes("font-family:")){const ge=ie.text.match(/font-family:\s*([^;"']+)/g);ge&&ge.forEach(Y=>{var Ie;const xe=(Ie=Y.split(":")[1])==null?void 0:Ie.trim();xe&&window.injectFontFromCss(V(xe))})}})}},ve=()=>{n.value&&n.value.custom_css_enabled&&n.value.custom_css?window.injectAndClearCss(n.value.custom_css,"pop"):window.clearCss("pop"),r.value&&r.value.custom_css_enabled&&r.value.custom_css?window.injectAndClearCss(r.value.custom_css,"bar"):window.clearCss("bar")},ke=(N,te,se,oe)=>{if(we(),_e(),ne(),ue(),useTitleBar(),!window.pc||Object.getOwnPropertyNames(window.pc).length==0){window.pc={};for(const Y of e.campaigns)window.pc[Y.id]={isDisplayAgainAfterValid:null,isDateValid:null,isPageValid:null,isGeoValid:null,isDisplayWidgetAfterValid:null,campaign:Y,name:Y.name??"",type:Y.campaign_type,determinedCountry:window.pcDeterminedCountryCode,closedCampaign:w.listAll("closed").find(xe=>xe.id===Y.id),btn:{isDateValid:null,isPageValid:null,isGeoValid:null,isNotSubmitted:null}}}const ie=new URLSearchParams(window.location.search).get("pc_preview");for(const Y of e.popCampaigns)if(!n.value){if(ie&&String(Y.id)===ie){n.value=Y;continue}if(!Se(Y)){window.pc[Y.id].isDisplayAgainAfterValid=!1;continue}if(!O(Y)){window.pc[Y.id].isDateValid=!1;continue}if(!Z(Y)){window.pc[Y.id].isPageValid=!1;continue}if(!q(Y)){window.pc[Y.id].isGeoValid=!1;continue}if(!pe(Y,N,te,se,oe)){window.pc[Y.id].isDisplayWidgetAfterValid=!1;continue}n.value=Y}for(const Y of e.barCampaigns)if(!r.value){if(ie&&String(Y.id)===ie){r.value=Y;continue}if(!Se(Y)){window.pc[Y.id].isDisplayAgainAfterValid=!1;continue}if(!O(Y)){window.pc[Y.id].isDateValid=!1;continue}if(!Z(Y)){window.pc[Y.id].isPageValid=!1;continue}if(!q(Y)){window.pc[Y.id].isGeoValid=!1;continue}if(!pe(Y,N,te,se,oe)){window.pc[Y.id].isDisplayWidgetAfterValid=!1;continue}r.value=Y}const ge=[];for(const Y of e.btnCampaigns){if(n.value)continue;if(ie&&String(Y.id)===ie){ge.push(Y);continue}if(!O(Y)){window.pc[Y.id].btn.isDateValid=!1;continue}if(!Z(Y)){window.pc[Y.id].btn.isPageValid=!1;continue}if(!q(Y)){window.pc[Y.id].btn.isGeoValid=!1;continue}const xe=w.listAll("closed").find(v=>v.id===Y.id),Ie=w.listAll("submitted").find(v=>v.id===Y.id);if(xe&&Ie){window.pc[Y.id].btn.isNotSubmitted=!1;continue}if(!Ie&&Y.display_widget_after==-2){ge.push(Y);continue}if(!Ie&&xe){ge.push(Y);continue}}o.value=[...ge],ve()};return{getCampaigns:b,getActions:E,closeCampaign:Ee,log:D,isDateValid:O,isGeoValid:q,isOnHomepage:M,isPageValid:Z,triggerPC:ke,addFonts:ue,addCustomCss:ve,filterPages:B,mockCss:V}},setupCustomElemTrigger=()=>{const e=useMainStore(),{activePop:t,activeBar:n}=storeToRefs(e),r=useStorage(),o=i=>{r.removeAll("closed",i);const s=e.campaigns.find(a=>a.id===i);s&&(s.campaign_type==="pop"?t.value=s:n.value=s),window.triggerPC()};document.querySelectorAll("[pc-show-campaign]").forEach(i=>{if(i.getAttribute("pc-trigger-attached")==="true")return;const s=i.getAttribute("pc-show-campaign");s&&(i.addEventListener("click",()=>{o(Number(s))}),i.setAttribute("pc-trigger-attached","true"))})},matchIconName=/^[a-z0-9]+(-[a-z0-9]+)*$/,stringToIcon=(e,t,n,r="")=>{const o=e.split(":");if(e.slice(0,1)==="@"){if(o.length<2||o.length>3)return null;r=o.shift().slice(1)}if(o.length>3||!o.length)return null;if(o.length>1){const a=o.pop(),c=o.pop(),l={provider:o.length>0?o[0]:r,prefix:c,name:a};return t&&!validateIconName(l)?null:l}const i=o[0],s=i.split("-");if(s.length>1){const a={provider:r,prefix:s.shift(),name:s.join("-")};return t&&!validateIconName(a)?null:a}if(n&&r===""){const a={provider:r,prefix:"",name:i};return t&&!validateIconName(a,n)?null:a}return null},validateIconName=(e,t)=>e?!!((e.provider===""||e.provider.match(matchIconName))&&(t&&e.prefix===""||e.prefix.match(matchIconName))&&e.name.match(matchIconName)):!1,defaultIconDimensions=Object.freeze({left:0,top:0,width:16,height:16}),defaultIconTransformations=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),defaultIconProps=Object.freeze({...defaultIconDimensions,...defaultIconTransformations}),defaultExtendedIconProps=Object.freeze({...defaultIconProps,body:"",hidden:!1});function mergeIconTransformations(e,t){const n={};!e.hFlip!=!t.hFlip&&(n.hFlip=!0),!e.vFlip!=!t.vFlip&&(n.vFlip=!0);const r=((e.rotate||0)+(t.rotate||0))%4;return r&&(n.rotate=r),n}function mergeIconData(e,t){const n=mergeIconTransformations(e,t);for(const r in defaultExtendedIconProps)r in defaultIconTransformations?r in e&&!(r in n)&&(n[r]=defaultIconTransformations[r]):r in t?n[r]=t[r]:r in e&&(n[r]=e[r]);return n}function getIconsTree(e,t){const n=e.icons,r=e.aliases||Object.create(null),o=Object.create(null);function i(s){if(n[s])return o[s]=[];if(!(s in o)){o[s]=null;const a=r[s]&&r[s].parent,c=a&&i(a);c&&(o[s]=[a].concat(c))}return o[s]}return(t||Object.keys(n).concat(Object.keys(r))).forEach(i),o}function internalGetIconData(e,t,n){const r=e.icons,o=e.aliases||Object.create(null);let i={};function s(a){i=mergeIconData(r[a]||o[a],i)}return s(t),n.forEach(s),mergeIconData(e,i)}function parseIconSet(e,t){const n=[];if(typeof e!="object"||typeof e.icons!="object")return n;e.not_found instanceof Array&&e.not_found.forEach(o=>{t(o,null),n.push(o)});const r=getIconsTree(e);for(const o in r){const i=r[o];i&&(t(o,internalGetIconData(e,o,i)),n.push(o))}return n}const optionalPropertyDefaults={provider:"",aliases:{},not_found:{},...defaultIconDimensions};function checkOptionalProps(e,t){for(const n in t)if(n in e&&typeof e[n]!=typeof t[n])return!1;return!0}function quicklyValidateIconSet(e){if(typeof e!="object"||e===null)return null;const t=e;if(typeof t.prefix!="string"||!e.icons||typeof e.icons!="object"||!checkOptionalProps(e,optionalPropertyDefaults))return null;const n=t.icons;for(const o in n){const i=n[o];if(!o.match(matchIconName)||typeof i.body!="string"||!checkOptionalProps(i,defaultExtendedIconProps))return null}const r=t.aliases||Object.create(null);for(const o in r){const i=r[o],s=i.parent;if(!o.match(matchIconName)||typeof s!="string"||!n[s]&&!r[s]||!checkOptionalProps(i,defaultExtendedIconProps))return null}return t}const dataStorage=Object.create(null);function newStorage(e,t){return{provider:e,prefix:t,icons:Object.create(null),missing:new Set}}function getStorage(e,t){const n=dataStorage[e]||(dataStorage[e]=Object.create(null));return n[t]||(n[t]=newStorage(e,t))}function addIconSet(e,t){return quicklyValidateIconSet(t)?parseIconSet(t,(n,r)=>{r?e.icons[n]=r:e.missing.add(n)}):[]}function addIconToStorage(e,t,n){try{if(typeof n.body=="string")return e.icons[t]={...n},!0}catch{}return!1}let simpleNames=!1;function allowSimpleNames(e){return typeof e=="boolean"&&(simpleNames=e),simpleNames}function getIconData(e){const t=typeof e=="string"?stringToIcon(e,!0,simpleNames):e;if(t){const n=getStorage(t.provider,t.prefix),r=t.name;return n.icons[r]||(n.missing.has(r)?null:void 0)}}function addIcon(e,t){const n=stringToIcon(e,!0,simpleNames);if(!n)return!1;const r=getStorage(n.provider,n.prefix);return addIconToStorage(r,n.name,t)}function addCollection(e,t){if(typeof e!="object")return!1;if(typeof t!="string"&&(t=e.provider||""),simpleNames&&!t&&!e.prefix){let o=!1;return quicklyValidateIconSet(e)&&(e.prefix="",parseIconSet(e,(i,s)=>{s&&addIcon(i,s)&&(o=!0)})),o}const n=e.prefix;if(!validateIconName({provider:t,prefix:n,name:"a"}))return!1;const r=getStorage(t,n);return!!addIconSet(r,e)}const defaultIconSizeCustomisations=Object.freeze({width:null,height:null}),defaultIconCustomisations=Object.freeze({...defaultIconSizeCustomisations,...defaultIconTransformations}),unitsSplit=/(-?[0-9.]*[0-9]+[0-9.]*)/g,unitsTest=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function calculateSize(e,t,n){if(t===1)return e;if(n=n||100,typeof e=="number")return Math.ceil(e*t*n)/n;if(typeof e!="string")return e;const r=e.split(unitsSplit);if(r===null||!r.length)return e;const o=[];let i=r.shift(),s=unitsTest.test(i);for(;;){if(s){const a=parseFloat(i);isNaN(a)?o.push(i):o.push(Math.ceil(a*t*n)/n)}else o.push(i);if(i=r.shift(),i===void 0)return o.join("");s=!s}}function splitSVGDefs(e,t="defs"){let n="";const r=e.indexOf("<"+t);for(;r>=0;){const o=e.indexOf(">",r),i=e.indexOf("",i);if(s===-1)break;n+=e.slice(o+1,i).trim(),e=e.slice(0,r).trim()+e.slice(s+1)}return{defs:n,content:e}}function mergeDefsAndContent(e,t){return e?""+e+""+t:t}function wrapSVGContent(e,t,n){const r=splitSVGDefs(e);return mergeDefsAndContent(r.defs,t+r.content+n)}const isUnsetKeyword=e=>e==="unset"||e==="undefined"||e==="none";function iconToSVG(e,t){const n={...defaultIconProps,...e},r={...defaultIconCustomisations,...t},o={left:n.left,top:n.top,width:n.width,height:n.height};let i=n.body;[n,r].forEach(w=>{const I=[],j=w.hFlip,J=w.vFlip;let A=w.rotate;j?J?A+=2:(I.push("translate("+(o.width+o.left).toString()+" "+(0-o.top).toString()+")"),I.push("scale(-1 1)"),o.top=o.left=0):J&&(I.push("translate("+(0-o.left).toString()+" "+(o.height+o.top).toString()+")"),I.push("scale(1 -1)"),o.top=o.left=0);let k;switch(A<0&&(A-=Math.floor(A/4)*4),A=A%4,A){case 1:k=o.height/2+o.top,I.unshift("rotate(90 "+k.toString()+" "+k.toString()+")");break;case 2:I.unshift("rotate(180 "+(o.width/2+o.left).toString()+" "+(o.height/2+o.top).toString()+")");break;case 3:k=o.width/2+o.left,I.unshift("rotate(-90 "+k.toString()+" "+k.toString()+")");break}A%2===1&&(o.left!==o.top&&(k=o.left,o.left=o.top,o.top=k),o.width!==o.height&&(k=o.width,o.width=o.height,o.height=k)),I.length&&(i=wrapSVGContent(i,'',""))});const s=r.width,a=r.height,c=o.width,l=o.height;let d,g;s===null?(g=a===null?"1em":a==="auto"?l:a,d=calculateSize(g,c/l)):(d=s==="auto"?c:s,g=a===null?calculateSize(d,l/c):a==="auto"?l:a);const m={},y=(w,I)=>{isUnsetKeyword(I)||(m[w]=I.toString())};y("width",d),y("height",g);const C=[o.left,o.top,c,l];return m.viewBox=C.join(" "),{attributes:m,viewBox:C,body:i}}const regex=/\sid="(\S+)"/g,randomPrefix="IconifyId"+Date.now().toString(16)+(Math.random()*16777216|0).toString(16);let counter=0;function replaceIDs(e,t=randomPrefix){const n=[];let r;for(;r=regex.exec(e);)n.push(r[1]);if(!n.length)return e;const o="suffix"+(Math.random()*16777216|Date.now()).toString(16);return n.forEach(i=>{const s=typeof t=="function"?t(i):t+(counter++).toString(),a=i.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");e=e.replace(new RegExp('([#;"])('+a+')([")]|\\.[a-z])',"g"),"$1"+s+o+"$3")}),e=e.replace(new RegExp(o,"g"),""),e}const storage=Object.create(null);function setAPIModule(e,t){storage[e]=t}function getAPIModule(e){return storage[e]||storage[""]}function createAPIConfig(e){let t;if(typeof e.resources=="string")t=[e.resources];else if(t=e.resources,!(t instanceof Array)||!t.length)return null;return{resources:t,path:e.path||"/",maxURL:e.maxURL||500,rotate:e.rotate||750,timeout:e.timeout||5e3,random:e.random===!0,index:e.index||0,dataAfterTimeout:e.dataAfterTimeout!==!1}}const configStorage=Object.create(null),fallBackAPISources=["https://api.simplesvg.com","https://api.unisvg.com"],fallBackAPI=[];for(;fallBackAPISources.length>0;)fallBackAPISources.length===1||Math.random()>.5?fallBackAPI.push(fallBackAPISources.shift()):fallBackAPI.push(fallBackAPISources.pop());configStorage[""]=createAPIConfig({resources:["https://api.iconify.design"].concat(fallBackAPI)});function addAPIProvider(e,t){const n=createAPIConfig(t);return n===null?!1:(configStorage[e]=n,!0)}function getAPIConfig(e){return configStorage[e]}const detectFetch=()=>{let e;try{if(e=fetch,typeof e=="function")return e}catch{}};let fetchModule=detectFetch();function calculateMaxLength(e,t){const n=getAPIConfig(e);if(!n)return 0;let r;if(!n.maxURL)r=0;else{let o=0;n.resources.forEach(s=>{o=Math.max(o,s.length)});const i=t+".json?icons=";r=n.maxURL-o-n.path.length-i.length}return r}function shouldAbort(e){return e===404}const prepare=(e,t,n)=>{const r=[],o=calculateMaxLength(e,t),i="icons";let s={type:i,provider:e,prefix:t,icons:[]},a=0;return n.forEach((c,l)=>{a+=c.length+1,a>=o&&l>0&&(r.push(s),s={type:i,provider:e,prefix:t,icons:[]},a=c.length),s.icons.push(c)}),r.push(s),r};function getPath(e){if(typeof e=="string"){const t=getAPIConfig(e);if(t)return t.path}return"/"}const send=(e,t,n)=>{if(!fetchModule){n("abort",424);return}let r=getPath(t.provider);switch(t.type){case"icons":{const i=t.prefix,a=t.icons.join(","),c=new URLSearchParams({icons:a});r+=i+".json?"+c.toString();break}case"custom":{const i=t.uri;r+=i.slice(0,1)==="/"?i.slice(1):i;break}default:n("abort",400);return}let o=503;fetchModule(e+r).then(i=>{const s=i.status;if(s!==200){setTimeout(()=>{n(shouldAbort(s)?"abort":"next",s)});return}return o=501,i.json()}).then(i=>{if(typeof i!="object"||i===null){setTimeout(()=>{i===404?n("abort",i):n("next",o)});return}setTimeout(()=>{n("success",i)})}).catch(()=>{n("next",o)})},fetchAPIModule={prepare,send};function sortIcons(e){const t={loaded:[],missing:[],pending:[]},n=Object.create(null);e.sort((o,i)=>o.provider!==i.provider?o.provider.localeCompare(i.provider):o.prefix!==i.prefix?o.prefix.localeCompare(i.prefix):o.name.localeCompare(i.name));let r={provider:"",prefix:"",name:""};return e.forEach(o=>{if(r.name===o.name&&r.prefix===o.prefix&&r.provider===o.provider)return;r=o;const i=o.provider,s=o.prefix,a=o.name,c=n[i]||(n[i]=Object.create(null)),l=c[s]||(c[s]=getStorage(i,s));let d;a in l.icons?d=t.loaded:s===""||l.missing.has(a)?d=t.missing:d=t.pending;const g={provider:i,prefix:s,name:a};d.push(g)}),t}function removeCallback(e,t){e.forEach(n=>{const r=n.loaderCallbacks;r&&(n.loaderCallbacks=r.filter(o=>o.id!==t))})}function updateCallbacks(e){e.pendingCallbacksFlag||(e.pendingCallbacksFlag=!0,setTimeout(()=>{e.pendingCallbacksFlag=!1;const t=e.loaderCallbacks?e.loaderCallbacks.slice(0):[];if(!t.length)return;let n=!1;const r=e.provider,o=e.prefix;t.forEach(i=>{const s=i.icons,a=s.pending.length;s.pending=s.pending.filter(c=>{if(c.prefix!==o)return!0;const l=c.name;if(e.icons[l])s.loaded.push({provider:r,prefix:o,name:l});else if(e.missing.has(l))s.missing.push({provider:r,prefix:o,name:l});else return n=!0,!0;return!1}),s.pending.length!==a&&(n||removeCallback([e],i.id),i.callback(s.loaded.slice(0),s.missing.slice(0),s.pending.slice(0),i.abort))})}))}let idCounter=0;function storeCallback(e,t,n){const r=idCounter++,o=removeCallback.bind(null,n,r);if(!t.pending.length)return o;const i={id:r,icons:t,callback:e,abort:o};return n.forEach(s=>{(s.loaderCallbacks||(s.loaderCallbacks=[])).push(i)}),o}function listToIcons(e,t=!0,n=!1){const r=[];return e.forEach(o=>{const i=typeof o=="string"?stringToIcon(o,t,n):o;i&&r.push(i)}),r}var defaultConfig={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1};function sendQuery(e,t,n,r){const o=e.resources.length,i=e.random?Math.floor(Math.random()*o):e.index;let s;if(e.random){let E=e.resources.slice(0);for(s=[];E.length>1;){const D=Math.floor(Math.random()*E.length);s.push(E[D]),E=E.slice(0,D).concat(E.slice(D+1))}s=s.concat(E)}else s=e.resources.slice(i).concat(e.resources.slice(0,i));const a=Date.now();let c="pending",l=0,d,g=null,m=[],y=[];typeof r=="function"&&y.push(r);function C(){g&&(clearTimeout(g),g=null)}function w(){c==="pending"&&(c="aborted"),C(),m.forEach(E=>{E.status==="pending"&&(E.status="aborted")}),m=[]}function I(E,D){D&&(y=[]),typeof E=="function"&&y.push(E)}function j(){return{startTime:a,payload:t,status:c,queriesSent:l,queriesPending:m.length,subscribe:I,abort:w}}function J(){c="failed",y.forEach(E=>{E(void 0,d)})}function A(){m.forEach(E=>{E.status==="pending"&&(E.status="aborted")}),m=[]}function k(E,D,O){const M=D!=="success";switch(m=m.filter(B=>B!==E),c){case"pending":break;case"failed":if(M||!e.dataAfterTimeout)return;break;default:return}if(D==="abort"){d=O,J();return}if(M){d=O,m.length||(s.length?b():J());return}if(C(),A(),!e.random){const B=e.resources.indexOf(E.resource);B!==-1&&B!==e.index&&(e.index=B)}c="completed",y.forEach(B=>{B(O)})}function b(){if(c!=="pending")return;C();const E=s.shift();if(E===void 0){if(m.length){g=setTimeout(()=>{C(),c==="pending"&&(A(),J())},e.timeout);return}J();return}const D={status:"pending",resource:E,callback:(O,M)=>{k(D,O,M)}};m.push(D),l++,g=setTimeout(b,e.rotate),n(E,t,D.callback)}return setTimeout(b),j}function initRedundancy(e){const t={...defaultConfig,...e};let n=[];function r(){n=n.filter(a=>a().status==="pending")}function o(a,c,l){const d=sendQuery(t,a,c,(g,m)=>{r(),l&&l(g,m)});return n.push(d),d}function i(a){return n.find(c=>a(c))||null}return{query:o,find:i,setIndex:a=>{t.index=a},getIndex:()=>t.index,cleanup:r}}function emptyCallback$1(){}const redundancyCache=Object.create(null);function getRedundancyCache(e){if(!redundancyCache[e]){const t=getAPIConfig(e);if(!t)return;const n=initRedundancy(t),r={config:t,redundancy:n};redundancyCache[e]=r}return redundancyCache[e]}function sendAPIQuery(e,t,n){let r,o;if(typeof e=="string"){const i=getAPIModule(e);if(!i)return n(void 0,424),emptyCallback$1;o=i.send;const s=getRedundancyCache(e);s&&(r=s.redundancy)}else{const i=createAPIConfig(e);if(i){r=initRedundancy(i);const s=e.resources?e.resources[0]:"",a=getAPIModule(s);a&&(o=a.send)}}return!r||!o?(n(void 0,424),emptyCallback$1):r.query(t,o,n)().abort}const browserCacheVersion="iconify2",browserCachePrefix="iconify",browserCacheCountKey=browserCachePrefix+"-count",browserCacheVersionKey=browserCachePrefix+"-version",browserStorageHour=36e5,browserStorageCacheExpiration=168,browserStorageLimit=50;function getStoredItem(e,t){try{return e.getItem(t)}catch{}}function setStoredItem(e,t,n){try{return e.setItem(t,n),!0}catch{}}function removeStoredItem(e,t){try{e.removeItem(t)}catch{}}function setBrowserStorageItemsCount(e,t){return setStoredItem(e,browserCacheCountKey,t.toString())}function getBrowserStorageItemsCount(e){return parseInt(getStoredItem(e,browserCacheCountKey))||0}const browserStorageConfig={local:!0,session:!0},browserStorageEmptyItems={local:new Set,session:new Set};let browserStorageStatus=!1;function setBrowserStorageStatus(e){browserStorageStatus=e}let _window=typeof window>"u"?{}:window;function getBrowserStorage(e){const t=e+"Storage";try{if(_window&&_window[t]&&typeof _window[t].length=="number")return _window[t]}catch{}browserStorageConfig[e]=!1}function iterateBrowserStorage(e,t){const n=getBrowserStorage(e);if(!n)return;const r=getStoredItem(n,browserCacheVersionKey);if(r!==browserCacheVersion){if(r){const a=getBrowserStorageItemsCount(n);for(let c=0;c{const c=browserCachePrefix+a.toString(),l=getStoredItem(n,c);if(typeof l=="string"){try{const d=JSON.parse(l);if(typeof d=="object"&&typeof d.cached=="number"&&d.cached>o&&typeof d.provider=="string"&&typeof d.data=="object"&&typeof d.data.prefix=="string"&&t(d,a))return!0}catch{}removeStoredItem(n,c)}};let s=getBrowserStorageItemsCount(n);for(let a=s-1;a>=0;a--)i(a)||(a===s-1?(s--,setBrowserStorageItemsCount(n,s)):browserStorageEmptyItems[e].add(a))}function initBrowserStorage(){if(!browserStorageStatus){setBrowserStorageStatus(!0);for(const e in browserStorageConfig)iterateBrowserStorage(e,t=>{const n=t.data,r=t.provider,o=n.prefix,i=getStorage(r,o);if(!addIconSet(i,n).length)return!1;const s=n.lastModified||-1;return i.lastModifiedCached=i.lastModifiedCached?Math.min(i.lastModifiedCached,s):s,!0})}}function updateLastModified(e,t){const n=e.lastModifiedCached;if(n&&n>=t)return n===t;if(e.lastModifiedCached=t,n)for(const r in browserStorageConfig)iterateBrowserStorage(r,o=>{const i=o.data;return o.provider!==e.provider||i.prefix!==e.prefix||i.lastModified===t});return!0}function storeInBrowserStorage(e,t){browserStorageStatus||initBrowserStorage();function n(r){let o;if(!browserStorageConfig[r]||!(o=getBrowserStorage(r)))return;const i=browserStorageEmptyItems[r];let s;if(i.size)i.delete(s=Array.from(i).shift());else if(s=getBrowserStorageItemsCount(o),s>=browserStorageLimit||!setBrowserStorageItemsCount(o,s+1))return;const a={cached:Math.floor(Date.now()/browserStorageHour),provider:e.provider,data:t};return setStoredItem(o,browserCachePrefix+s.toString(),JSON.stringify(a))}t.lastModified&&!updateLastModified(e,t.lastModified)||Object.keys(t.icons).length&&(t.not_found&&(t=Object.assign({},t),delete t.not_found),n("local")||n("session"))}function emptyCallback(){}function loadedNewIcons(e){e.iconsLoaderFlag||(e.iconsLoaderFlag=!0,setTimeout(()=>{e.iconsLoaderFlag=!1,updateCallbacks(e)}))}function loadNewIcons(e,t){e.iconsToLoad?e.iconsToLoad=e.iconsToLoad.concat(t).sort():e.iconsToLoad=t,e.iconsQueueFlag||(e.iconsQueueFlag=!0,setTimeout(()=>{e.iconsQueueFlag=!1;const{provider:n,prefix:r}=e,o=e.iconsToLoad;delete e.iconsToLoad;let i;if(!o||!(i=getAPIModule(n)))return;i.prepare(n,r,o).forEach(a=>{sendAPIQuery(n,a,c=>{if(typeof c!="object")a.icons.forEach(l=>{e.missing.add(l)});else try{const l=addIconSet(e,c);if(!l.length)return;const d=e.pendingIcons;d&&l.forEach(g=>{d.delete(g)}),storeInBrowserStorage(e,c)}catch(l){console.error(l)}loadedNewIcons(e)})})}))}const loadIcons=(e,t)=>{const n=listToIcons(e,!0,allowSimpleNames()),r=sortIcons(n);if(!r.pending.length){let c=!0;return t&&setTimeout(()=>{c&&t(r.loaded,r.missing,r.pending,emptyCallback)}),()=>{c=!1}}const o=Object.create(null),i=[];let s,a;return r.pending.forEach(c=>{const{provider:l,prefix:d}=c;if(d===a&&l===s)return;s=l,a=d,i.push(getStorage(l,d));const g=o[l]||(o[l]=Object.create(null));g[d]||(g[d]=[])}),r.pending.forEach(c=>{const{provider:l,prefix:d,name:g}=c,m=getStorage(l,d),y=m.pendingIcons||(m.pendingIcons=new Set);y.has(g)||(y.add(g),o[l][d].push(g))}),i.forEach(c=>{const{provider:l,prefix:d}=c;o[l][d].length&&loadNewIcons(c,o[l][d])}),t?storeCallback(t,r,i):emptyCallback};function mergeCustomisations(e,t){const n={...e};for(const r in t){const o=t[r],i=typeof o;r in defaultIconSizeCustomisations?(o===null||o&&(i==="string"||i==="number"))&&(n[r]=o):i===typeof n[r]&&(n[r]=r==="rotate"?o%4:o)}return n}const separator=/[\s,]+/;function flipFromString(e,t){t.split(separator).forEach(n=>{switch(n.trim()){case"horizontal":e.hFlip=!0;break;case"vertical":e.vFlip=!0;break}})}function rotateFromString(e,t=0){const n=e.replace(/^-?[0-9.]*/,"");function r(o){for(;o<0;)o+=4;return o%4}if(n===""){const o=parseInt(e);return isNaN(o)?0:r(o)}else if(n!==e){let o=0;switch(n){case"%":o=25;break;case"deg":o=90}if(o){let i=parseFloat(e.slice(0,e.length-n.length));return isNaN(i)?0:(i=i/o,i%1===0?r(i):0)}}return t}function iconToHTML(e,t){let n=e.indexOf("xlink:")===-1?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(const r in t)n+=" "+r+'="'+t[r]+'"';return'"+e+""}function encodeSVGforURL(e){return e.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(//g,"%3E").replace(/\s+/g," ")}function svgToData(e){return"data:image/svg+xml,"+encodeSVGforURL(e)}function svgToURL(e){return'url("'+svgToData(e)+'")'}const defaultExtendedIconCustomisations={...defaultIconCustomisations,inline:!1},svgDefaults={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":!0,role:"img"},commonProps={display:"inline-block"},monotoneProps={backgroundColor:"currentColor"},coloredProps={backgroundColor:"transparent"},propsToAdd={Image:"var(--svg)",Repeat:"no-repeat",Size:"100% 100%"},propsToAddTo={webkitMask:monotoneProps,mask:monotoneProps,background:coloredProps};for(const e in propsToAddTo){const t=propsToAddTo[e];for(const n in propsToAdd)t[e+n]=propsToAdd[n]}const customisationAliases={};["horizontal","vertical"].forEach(e=>{const t=e.slice(0,1)+"Flip";customisationAliases[e+"-flip"]=t,customisationAliases[e.slice(0,1)+"-flip"]=t,customisationAliases[e+"Flip"]=t});function fixSize(e){return e+(e.match(/^[-0-9.]+$/)?"px":"")}const render=(e,t)=>{const n=mergeCustomisations(defaultExtendedIconCustomisations,t),r={...svgDefaults},o=t.mode||"svg",i={},s=t.style,a=typeof s=="object"&&!(s instanceof Array)?s:{};for(let w in t){const I=t[w];if(I!==void 0)switch(w){case"icon":case"style":case"onLoad":case"mode":break;case"inline":case"hFlip":case"vFlip":n[w]=I===!0||I==="true"||I===1;break;case"flip":typeof I=="string"&&flipFromString(n,I);break;case"color":i.color=I;break;case"rotate":typeof I=="string"?n[w]=rotateFromString(I):typeof I=="number"&&(n[w]=I);break;case"ariaHidden":case"aria-hidden":I!==!0&&I!=="true"&&delete r["aria-hidden"];break;default:{const j=customisationAliases[w];j?(I===!0||I==="true"||I===1)&&(n[j]=!0):defaultExtendedIconCustomisations[w]===void 0&&(r[w]=I)}}}const c=iconToSVG(e,n),l=c.attributes;if(n.inline&&(i.verticalAlign="-0.125em"),o==="svg"){r.style={...i,...a},Object.assign(r,l);let w=0,I=t.id;return typeof I=="string"&&(I=I.replace(/-/g,"_")),r.innerHTML=replaceIDs(c.body,I?()=>I+"ID"+w++:"iconifyVue"),h("svg",r)}const{body:d,width:g,height:m}=e,y=o==="mask"||(o==="bg"?!1:d.indexOf("currentColor")!==-1),C=iconToHTML(d,{...l,width:g+"",height:m+""});return r.style={...i,"--svg":svgToURL(C),width:fixSize(l.width),height:fixSize(l.height),...commonProps,...y?monotoneProps:coloredProps,...a},h("span",r)};if(allowSimpleNames(!0),setAPIModule("",fetchAPIModule),typeof document<"u"&&typeof window<"u"){initBrowserStorage();const e=window;if(e.IconifyPreload!==void 0){const t=e.IconifyPreload,n="Invalid IconifyPreload syntax.";typeof t=="object"&&t!==null&&(t instanceof Array?t:[t]).forEach(r=>{try{(typeof r!="object"||r===null||r instanceof Array||typeof r.icons!="object"||typeof r.prefix!="string"||!addCollection(r))&&console.error(n)}catch{console.error(n)}})}if(e.IconifyProviders!==void 0){const t=e.IconifyProviders;if(typeof t=="object"&&t!==null)for(let n in t){const r="IconifyProviders["+n+"] is invalid.";try{const o=t[n];if(typeof o!="object"||!o||o.resources===void 0)continue;addAPIProvider(n,o)||console.error(r)}catch{console.error(r)}}}}const emptyIcon={...defaultIconProps,body:""},Icon$1=defineComponent({inheritAttrs:!1,data(){return{_name:"",_loadingIcon:null,iconMounted:!1,counter:0}},mounted(){this.iconMounted=!0},unmounted(){this.abortLoading()},methods:{abortLoading(){this._loadingIcon&&(this._loadingIcon.abort(),this._loadingIcon=null)},getIcon(e,t){if(typeof e=="object"&&e!==null&&typeof e.body=="string")return this._name="",this.abortLoading(),{data:e};let n;if(typeof e!="string"||(n=stringToIcon(e,!1,!0))===null)return this.abortLoading(),null;const r=getIconData(n);if(!r)return(!this._loadingIcon||this._loadingIcon.name!==e)&&(this.abortLoading(),this._name="",r!==null&&(this._loadingIcon={name:e,abort:loadIcons([n],()=>{this.counter++})})),null;this.abortLoading(),this._name!==e&&(this._name=e,t&&t(e));const o=["iconify"];return n.prefix!==""&&o.push("iconify--"+n.prefix),n.provider!==""&&o.push("iconify--"+n.provider),{data:r,classes:o}}},render(){this.counter;const e=this.$attrs,t=this.iconMounted||e.ssr?this.getIcon(e.icon,e.onLoad):null;if(!t)return render(emptyIcon,e);let n=e;return t.classes&&(n={...e,class:(typeof e.class=="string"?e.class+" ":"")+t.classes.join(" ")}),render({...defaultIconProps,...t.data},n)}}),useApi=()=>{const e=useMainStore(),t=ref(!1);return{createAction:async({campaignId:o,action:i})=>{try{await fetch(`https://micro.pop-convert.com/micro/api/micro_actions/create?unique_id=${e.currentSite.uniqueId}&campaign_id=${o}&action=${i}`)}catch(s){console.error(s)}},createSubscriber:async({campaignId:o,information:i,couponId:s})=>{try{return t.value=!0,(await fetch("https://api.pop-convert.com/micro/api/subscribers/create",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({unique_id:e.currentSite.uniqueId,campaign_id:o,...i,coupon_id:s})})).json()}catch(a){console.error(a)}finally{t.value=!1}},isCreating:t}},callbacks={show:new Map,close:new Map,submit:new Map,click:new Map},functions={onShow:e=>{callbacks.show.set(e.toString(),e)},onClose:e=>{callbacks.close.set(e.toString(),e)},onSubmit:e=>{callbacks.submit.set(e.toString(),e)},onClick:e=>{callbacks.click.set(e.toString(),e)}};function useWindowApi(){function e(n,r){if(callbacks[n].size)try{console.group(`[POP CONVERT][on${n}]`),callbacks[n].forEach(o=>o(r)),console.log("Success ✅"),console.groupEnd()}catch(o){console.error(`[ERROR IN CUSTOM JS CODE FOR POP CONVERT CAMPAIGN [on${n}]]`),console.error(o),console.groupEnd()}}function t(){callbacks.show.clear(),callbacks.close.clear(),callbacks.submit.clear(),callbacks.click.clear()}return window.PopConvert={...window.PopConvert,...functions,clearAll:t},{trigger:e,clearAll:t}}const _withScopeId$3=e=>(pushScopeId("data-v-cbb87d7e"),e=e(),popScopeId(),e),_hoisted_1$l=_withScopeId$3(()=>createBaseVNode("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 747 146","shape-rendering":"sharpEdges"},[createBaseVNode("path",{d:"M73 67a9 9 0 1 0 0-19 9 9 0 0 0 0 19ZM86 91H59c-2 0-4-2-4-5 0-7 6-13 13-13h9c8 0 14 6 14 13 0 3-2 5-5 5Z"}),createBaseVNode("path",{d:"m74 29 12 12c2 2 5 2 7 0l9-13c2-3 0-7-4-7h-6C85 8 76 0 66 0 43 0 30 37 30 73c0 35 13 72 36 72 13 0 24-12 30-32a6 6 0 1 0-11-4c-5 15-12 24-19 24-11 0-24-26-24-60 0-35 13-61 24-61 4 0 8 3 12 9h-1c-4 0-6 5-3 8Z"}),createBaseVNode("path",{d:"M124 53v-8c0-3-4-5-7-3l-12 9c-2 2-3 5-1 7l12 12c3 2 8 1 8-3 6 4 9 8 9 12 0 11-26 24-60 24-29 0-61-10-61-24 0-7 10-14 25-19a6 6 0 0 0-4-11C12 55 0 66 0 79c0 26 45 36 73 36 35 0 72-12 72-36 0-10-7-19-21-26ZM217 36h-24c-1 0-2 1-2 3v65c0 2 1 2 2 2h9c2 0 3 0 3-2V83h12c13 0 24-11 24-23 0-13-11-24-24-24Zm0 34h-12V49h12c6 0 10 5 10 11 0 5-4 10-10 10ZM270 108c15 0 26-12 26-27 0-14-11-26-26-26s-26 12-26 26c0 15 11 27 26 27Zm0-13c-8 0-14-6-14-14s6-13 14-13 14 5 14 13-6 14-14 14ZM335 55c-8 0-13 3-17 7v-3c0-2 0-3-2-3h-8c-2 0-2 1-2 3v65c0 2 0 2 2 2h8c2 0 2 0 2-2v-24c4 5 9 8 17 8 13 0 24-12 24-27 0-14-11-26-24-26Zm-3 40c-8 0-14-5-14-14 0-8 6-14 14-14s14 6 14 14c0 9-6 14-14 14ZM427 108c16 0 29-10 33-24 1-2 0-3-2-3h-9c-2 0-3 1-3 2-3 7-11 11-19 11-14 0-23-9-23-23 0-13 9-23 23-23 8 0 16 5 19 12l3 1h9c2 0 3-1 2-2-4-14-17-24-33-24-21 0-36 16-36 36 0 21 15 37 36 37ZM492 108c14 0 26-12 26-27a26 26 0 0 0-53 0c0 15 12 27 27 27Zm0-13c-8 0-14-6-14-14s6-13 14-13c7 0 13 5 13 13s-6 14-13 14ZM554 55c-6 0-11 2-14 7v-3c0-2-1-3-2-3h-8c-2 0-3 1-3 3v45c0 2 1 2 3 2h8c1 0 2 0 2-2V77c0-7 4-10 9-10s8 3 8 8v29c0 2 1 2 2 2h9c1 0 2 0 2-2V74c0-12-7-19-16-19ZM620 56h-9l-2 2-11 33-10-33c0-1-1-2-3-2h-8c-2 0-3 1-2 3l16 45c1 2 1 2 3 2h9c1 0 2 0 3-2l16-45c1-2 0-3-2-3ZM652 55c-16 0-27 12-27 26 0 15 11 27 27 27 10 0 19-5 22-13 1-2 0-3-2-3h-8l-2 1c-2 3-6 4-10 4-6 0-11-3-13-10h35c2 0 3-1 3-2v-4c0-14-10-26-25-26Zm-13 22c1-7 6-10 13-10 5 0 11 2 12 10h-25ZM710 56c-5 0-9 3-11 8v-5c0-2-1-3-3-3h-8c-1 0-2 1-2 3v45c0 2 1 2 2 2h8c2 0 3 0 3-2V82c0-9 5-12 12-12l1-3v-9c0-2 0-3-2-2ZM744 56h-6V43c0-2-1-3-2-3h-8c-2 0-3 1-3 3v13h-6c-2 0-2 1-2 3v7c0 2 0 3 2 3h6v35c0 2 1 2 3 2h8c1 0 2 0 2-2V69h6c2 0 3-1 3-3v-7c0-2-1-3-3-3Z"})],-1)),_hoisted_2$i=[_hoisted_1$l],_sfc_main$m=defineComponent({__name:"PCLogo",props:{color:{default:"white"}},setup(e){const{color:t}=e;useCssVars(r=>({"761dd41d":t}));function n(r){window.open(r,"_blank")}return(r,o)=>(openBlock(),createElementBlock("object",{alt:"Pop Convert Logo",onClick:o[0]||(o[0]=i=>n("https://apps.shopify.com/pop-convert"))},_hoisted_2$i))}}),PCLogo_vue_vue_type_style_index_0_scoped_cbb87d7e_lang="",_export_sfc=(e,t)=>{const n=e.__vccOpts||e;for(const[r,o]of t)n[r]=o;return n},PCLogo=_export_sfc(_sfc_main$m,[["__scopeId","data-v-cbb87d7e"]]),_withScopeId$2=e=>(pushScopeId("data-v-3bb48cec"),e=e(),popScopeId(),e),_hoisted_1$k={key:0,class:"remove-watermark-label clickable-effect"},_hoisted_2$h=_withScopeId$2(()=>createBaseVNode("p",null,"Remove Watermark (FREE)",-1)),arrowDirection="left",_sfc_main$l=defineComponent({__name:"RemoveWatermarkLabel",setup(e){const t=useInterval(1e3);return(n,r)=>(openBlock(),createBlock(Transition,{name:"slideUp"},{default:withCtx(()=>[unref(t)>=2?(openBlock(),createElementBlock("div",_hoisted_1$k,[createVNode(unref(Icon$1),{class:"icon",icon:`uil-arrow-${arrowDirection}`},null,8,["icon"]),_hoisted_2$h])):createCommentVNode("",!0)]),_:1}))}}),RemoveWatermarkLabel_vue_vue_type_style_index_0_scoped_3bb48cec_lang="",RemoveWatermark=_export_sfc(_sfc_main$l,[["__scopeId","data-v-3bb48cec"]]),useCustomJS=()=>{const e=useWindowApi();return{setupJS:n=>{const r=document.getElementById(`pc-custom-js-${n.id}`);if(r&&(e.clearAll(),document.body.removeChild(r)),n!=null&&n.custom_js_enabled&&(n!=null&&n.custom_js)){const o=`console.group('[ERROR BOOTING JS CODE FOR POP CONVERT CAMPAIGN ${n.name}, ID:${n.id}]'); console.error(e); console.groupEnd();`,i=`try { ${n.custom_js} } catch(e) { ${o} }`,s=document.createElement("script");s.id=`pc-custom-js-${n.id}`,s.innerHTML=i,document.body.appendChild(s)}}}},_hoisted_1$j={key:1,class:"spinner"},_sfc_main$k=defineComponent({__name:"Button",props:{buttonColor:{},buttonTextColor:{},loading:{type:Boolean}},emits:["click"],setup(e,{emit:t}){const n=e;return useCssVars(r=>({e591965c:r.buttonColor,"4cbce425":r.buttonTextColor})),(r,o)=>(openBlock(),createElementBlock("button",{class:"submit-button clickable-effect",type:"submit",onClick:o[0]||(o[0]=i=>t("click")),onTouchstart:o[1]||(o[1]=i=>t("click"))},[n.loading?(openBlock(),createElementBlock("div",_hoisted_1$j)):renderSlot(r.$slots,"default",{key:0},void 0,!0)],32))}}),Button_vue_vue_type_style_index_0_scoped_cd8905bd_lang="",Button=_export_sfc(_sfc_main$k,[["__scopeId","data-v-cd8905bd"]]),_hoisted_1$i=["error"],_hoisted_2$g=["value"],_hoisted_3$a={class:"gdpr-text"},_sfc_main$j=defineComponent({__name:"GDPR",props:{textColor:{default:"black"},error:{type:Boolean,default:!1},value:{type:Boolean,default:!1}},emits:["update:checked"],setup(e,{emit:t}){const n=e;return useCssVars(r=>({"7317e965":r.textColor})),(r,o)=>(openBlock(),createElementBlock("label",{class:"gdpr-label",error:n.error},[createBaseVNode("input",{class:"gdpr-input",value:n.value,type:"checkbox",onInput:o[0]||(o[0]=i=>t("update:checked",!n.value))},null,40,_hoisted_2$g),createBaseVNode("span",_hoisted_3$a,[renderSlot(r.$slots,"default",{},void 0,!0)])],8,_hoisted_1$i))}}),GDPR_vue_vue_type_style_index_0_scoped_2d67603a_lang="",GDPR=_export_sfc(_sfc_main$j,[["__scopeId","data-v-2d67603a"]]),_hoisted_1$h={class:"news-block"},_hoisted_2$f=["onClick"],_sfc_main$i=defineComponent({__name:"News",props:{content:{},icon:{},iconSize:{},iconColor:{},speed:{},fontSize:{}},setup(e){const t=e;useCssVars(o=>({"17ca194a":n.value}));const n=computed(()=>`${t.speed}s`),r=o=>{o.link&&window.open(o.link,"_blank")};return(o,i)=>(openBlock(),createElementBlock("div",_hoisted_1$h,[createBaseVNode("p",{class:"text-nowrap flex items-center",id:"scroll-text",style:normalizeStyle({fontSize:t.fontSize+"px"})},[(openBlock(!0),createElementBlock(Fragment,null,renderList(t.content,s=>(openBlock(),createElementBlock("span",{key:s.content},[createBaseVNode("span",{class:normalizeClass({clickable:s.link}),onClick:a=>r(s)},toDisplayString(s.content),11,_hoisted_2$f),createBaseVNode("span",{style:normalizeStyle({margin:"0 "+t.iconSize/2+"px",color:t.iconColor,fontSize:t.iconSize+"px"})},toDisplayString(t.icon),5)]))),128))],4)]))}}),News_vue_vue_type_style_index_0_scoped_4adab747_lang="",News=_export_sfc(_sfc_main$i,[["__scopeId","data-v-4adab747"]]),carousel="";/** * Vue 3 Carousel 0.5.0 * (c) 2024 * @license MIT */const SNAP_ALIGN_OPTIONS=["center","start","end","center-even","center-odd"],BREAKPOINT_MODE_OPTIONS=["viewport","carousel"],DIR_OPTIONS=["ltr","rtl"],I18N_DEFAULT_CONFIG={ariaNextSlide:"Navigate to next slide",ariaPreviousSlide:"Navigate to previous slide",ariaNavigateToSlide:"Navigate to slide {slideNumber}",ariaGallery:"Gallery",itemXofY:"Item {currentSlide} of {slidesCount}",iconArrowUp:"Arrow pointing upwards",iconArrowDown:"Arrow pointing downwards",iconArrowRight:"Arrow pointing to the right",iconArrowLeft:"Arrow pointing to the left"},DEFAULT_CONFIG={itemsToShow:1,itemsToScroll:1,modelValue:0,transition:300,autoplay:0,throttle:16,wrapAround:!1,pauseAutoplayOnHover:!1,mouseDrag:!0,touchDrag:!0,snapAlign:SNAP_ALIGN_OPTIONS[0],dir:DIR_OPTIONS[0],breakpointMode:BREAKPOINT_MODE_OPTIONS[0],breakpoints:void 0,i18n:I18N_DEFAULT_CONFIG},carouselProps={itemsToShow:{default:DEFAULT_CONFIG.itemsToShow,type:Number},itemsToScroll:{default:DEFAULT_CONFIG.itemsToScroll,type:Number},wrapAround:{default:DEFAULT_CONFIG.wrapAround,type:Boolean},throttle:{default:DEFAULT_CONFIG.throttle,type:Number},snapAlign:{default:DEFAULT_CONFIG.snapAlign,validator(e){return SNAP_ALIGN_OPTIONS.includes(e)}},transition:{default:DEFAULT_CONFIG.transition,type:Number},breakpointMode:{default:DEFAULT_CONFIG.breakpointMode,validator(e){return BREAKPOINT_MODE_OPTIONS.includes(e)}},breakpoints:{default:DEFAULT_CONFIG.breakpoints,type:Object},autoplay:{default:DEFAULT_CONFIG.autoplay,type:Number},pauseAutoplayOnHover:{default:DEFAULT_CONFIG.pauseAutoplayOnHover,type:Boolean},modelValue:{default:void 0,type:Number},mouseDrag:{default:DEFAULT_CONFIG.mouseDrag,type:Boolean},touchDrag:{default:DEFAULT_CONFIG.touchDrag,type:Boolean},dir:{default:DEFAULT_CONFIG.dir,validator(e){return DIR_OPTIONS.includes(e)}},i18n:{default:DEFAULT_CONFIG.i18n,type:Object}};function getMaxSlideIndex({config:e,slidesCount:t}){const{snapAlign:n,wrapAround:r,itemsToShow:o=1}=e;if(r)return Math.max(t-1,0);let i;switch(n){case"start":i=t-o;break;case"end":i=t-1;break;case"center":case"center-odd":i=t-Math.ceil((o-.5)/2);break;case"center-even":i=t-Math.ceil(o/2);break;default:i=0;break}return Math.max(i,0)}function getMinSlideIndex({config:e,slidesCount:t}){const{wrapAround:n,snapAlign:r,itemsToShow:o=1}=e;let i=0;if(n||o>t)return i;switch(r){case"start":i=0;break;case"end":i=o-1;break;case"center":case"center-odd":i=Math.floor((o-1)/2);break;case"center-even":i=Math.floor((o-2)/2);break;default:i=0;break}return i}function getNumberInRange({val:e,max:t,min:n}){return t{var r;return n.type===Fragment?[...t,...getSlidesVNodes(n.children)]:((r=n.type)===null||r===void 0?void 0:r.name)==="CarouselSlide"?[...t,n]:t},[]):[]}function mapNumberToRange({val:e,max:t,min:n=0}){const r=t-n+1;return((e-n)%r+r)%r+n}function throttle(e,t){let n;return t?function(...r){const o=this;n||(e.apply(o,r),n=!0,setTimeout(()=>n=!1,t))}:e}function debounce(e,t){let n;return function(...r){n&&clearTimeout(n),n=setTimeout(()=>{e(...r),n=null},t)}}function i18nFormatter(e="",t={}){return Object.entries(t).reduce((n,[r,o])=>n.replace(`{${r}}`,String(o)),e)}var ARIAComponent=defineComponent({name:"ARIA",setup(){const e=inject("config",reactive(Object.assign({},DEFAULT_CONFIG))),t=inject("currentSlide",ref(0)),n=inject("slidesCount",ref(0));return()=>h("div",{class:["carousel__liveregion","carousel__sr-only"],"aria-live":"polite","aria-atomic":"true"},i18nFormatter(e.i18n.itemXofY,{currentSlide:t.value+1,slidesCount:n.value}))}}),Carousel=defineComponent({name:"Carousel",props:carouselProps,setup(e,{slots:t,emit:n,expose:r}){var o;const i=ref(null),s=ref([]),a=ref(0),c=ref(0),l=computed(()=>Object.assign(Object.assign(Object.assign({},DEFAULT_CONFIG),e),{i18n:Object.assign(Object.assign({},DEFAULT_CONFIG.i18n),e.i18n),breakpoints:void 0})),d=reactive(Object.assign({},l.value)),g=ref((o=e.modelValue)!==null&&o!==void 0?o:0),m=ref(0),y=ref(0),C=ref(0),w=ref(0);let I=null,j=null,J=null;provide("config",d),provide("slidesCount",c),provide("currentSlide",g),provide("maxSlide",C),provide("minSlide",w),provide("slideWidth",a);function A(){var v;if(!e.breakpoints)return;const T=(d.breakpointMode==="carousel"?(v=i.value)===null||v===void 0?void 0:v.getBoundingClientRect().width:window.innerWidth)||0,R=Object.keys(e.breakpoints||{}).map(L=>Number(L)).sort((L,H)=>+H-+L);let F=Object.assign({},l.value);R.some(L=>{var H;return T>=L?(F=Object.assign(Object.assign({},F),(H=e.breakpoints)===null||H===void 0?void 0:H[L]),!0):!1}),Object.assign(d,F)}const k=debounce(()=>{A(),E(),b()},16);function b(){if(!i.value)return;const v=i.value.getBoundingClientRect();a.value=v.width/d.itemsToShow}function E(){c.value<=0||(y.value=Math.ceil((c.value-1)/2),C.value=getMaxSlideIndex({config:d,slidesCount:c.value}),w.value=getMinSlideIndex({config:d,slidesCount:c.value}),d.wrapAround||(g.value=getNumberInRange({val:g.value,max:C.value,min:w.value})))}onMounted(()=>{nextTick(()=>b()),setTimeout(()=>b(),1e3),A(),_e(),window.addEventListener("resize",k,{passive:!0}),J=new ResizeObserver(k),i.value&&J.observe(i.value),n("init")}),onUnmounted(()=>{j&&clearTimeout(j),I&&clearInterval(I),J&&i.value&&(J.unobserve(i.value),J=null),window.removeEventListener("resize",k,{passive:!0})});let D=!1;const O={x:0,y:0},M={x:0,y:0},B=reactive({x:0,y:0}),Z=ref(!1),q=ref(!1),pe=()=>{Z.value=!0},Se=()=>{Z.value=!1};function Ee(v){["INPUT","TEXTAREA","SELECT"].includes(v.target.tagName)||(D=v.type==="touchstart",D||v.preventDefault(),!(!D&&v.button!==0||ue.value)&&(O.x=D?v.touches[0].clientX:v.clientX,O.y=D?v.touches[0].clientY:v.clientY,document.addEventListener(D?"touchmove":"mousemove",ne),document.addEventListener(D?"touchend":"mouseup",we)))}const ne=throttle(v=>{q.value=!0,M.x=D?v.touches[0].clientX:v.clientX,M.y=D?v.touches[0].clientY:v.clientY;const T=M.x-O.x,R=M.y-O.y;B.y=R,B.x=T},d.throttle);function we(){const v=d.dir==="rtl"?-1:1,T=Math.sign(B.x)*.4,R=Math.round(B.x/a.value+T)*v;if(R&&!D){const F=L=>{L.preventDefault(),window.removeEventListener("click",F)};window.addEventListener("click",F)}ve(g.value-R),B.x=0,B.y=0,q.value=!1,document.removeEventListener(D?"touchmove":"mousemove",ne),document.removeEventListener(D?"touchend":"mouseup",we)}function _e(){!d.autoplay||d.autoplay<=0||(I=setInterval(()=>{d.pauseAutoplayOnHover&&Z.value||ke()},d.autoplay))}function V(){I&&(clearInterval(I),I=null),_e()}const ue=ref(!1);function ve(v){const T=d.wrapAround?v:getNumberInRange({val:v,max:C.value,min:w.value});g.value===T||ue.value||(n("slide-start",{slidingToIndex:v,currentSlideIndex:g.value,prevSlideIndex:m.value,slidesCount:c.value}),ue.value=!0,m.value=g.value,g.value=T,j=setTimeout(()=>{if(d.wrapAround){const R=mapNumberToRange({val:T,max:C.value,min:0});R!==g.value&&(g.value=R,n("loop",{currentSlideIndex:g.value,slidingToIndex:v}))}n("update:modelValue",g.value),n("slide-end",{currentSlideIndex:g.value,prevSlideIndex:m.value,slidesCount:c.value}),ue.value=!1,V()},d.transition))}function ke(){ve(g.value+d.itemsToScroll)}function N(){ve(g.value-d.itemsToScroll)}const te={slideTo:ve,next:ke,prev:N};provide("nav",te),provide("isSliding",ue);const se=computed(()=>getSlidesToScroll({config:d,currentSlide:g.value,slidesCount:c.value}));provide("slidesToScroll",se);const oe=computed(()=>{const v=d.dir==="rtl"?-1:1,T=se.value*a.value*v;return{transform:`translateX(${B.x-T}px)`,transition:`${ue.value?d.transition:0}ms`,margin:d.wrapAround?`0 -${c.value*a.value}px`:"",width:"100%"}});function ie(){A(),E(),b(),V()}Object.keys(carouselProps).forEach(v=>{["modelValue"].includes(v)||watch(()=>e[v],ie)}),watch(()=>e.modelValue,v=>{v!==g.value&&ve(Number(v))}),watch(c,E),n("before-init");const ge={config:d,slidesCount:c,slideWidth:a,next:ke,prev:N,slideTo:ve,currentSlide:g,maxSlide:C,minSlide:w,middleSlide:y};r({updateBreakpointsConfig:A,updateSlidesData:E,updateSlideWidth:b,restartCarousel:ie,slideTo:ve,next:ke,prev:N,nav:te,data:ge});const Y=t.default||t.slides,xe=t.addons,Ie=reactive(ge);return()=>{const v=getSlidesVNodes(Y==null?void 0:Y(Ie)),T=(xe==null?void 0:xe(Ie))||[];v.forEach((H,Q)=>H.props.index=Q);let R=v;if(d.wrapAround){const H=v.map((K,G)=>cloneVNode(K,{index:-v.length+G,isClone:!0,key:`clone-before-${G}`})),Q=v.map((K,G)=>cloneVNode(K,{index:v.length+G,isClone:!0,key:`clone-after-${G}`}));R=[...H,...v,...Q]}s.value=v,c.value=Math.max(v.length,1);const F=h("ol",{class:"carousel__track",style:oe.value,onMousedownCapture:d.mouseDrag?Ee:null,onTouchstartPassiveCapture:d.touchDrag?Ee:null},R),L=h("div",{class:"carousel__viewport"},F);return h("section",{ref:i,class:{carousel:!0,"is-sliding":ue.value,"is-dragging":q.value,"is-hover":Z.value,"carousel--rtl":d.dir==="rtl"},dir:d.dir,"aria-label":d.i18n.ariaGallery,tabindex:"0",onMouseenter:pe,onMouseleave:Se},[L,T,h(ARIAComponent)])}}}),IconName;(function(e){e.arrowUp="arrowUp",e.arrowDown="arrowDown",e.arrowRight="arrowRight",e.arrowLeft="arrowLeft"})(IconName||(IconName={}));const icons={arrowUp:"M7.41 15.41L12 10.83l4.59 4.58L18 14l-6-6-6 6z",arrowDown:"M7.41 8.59L12 13.17l4.59-4.58L18 10l-6 6-6-6 1.41-1.41z",arrowRight:"M8.59 16.59L13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z",arrowLeft:"M15.41 16.59L10.83 12l4.58-4.59L14 6l-6 6 6 6 1.41-1.41z"};function isIconName(e){return e in IconName}const Icon=e=>{const t=inject("config",reactive(Object.assign({},DEFAULT_CONFIG))),n=String(e.name),r=`icon${n.charAt(0).toUpperCase()+n.slice(1)}`;if(!n||typeof n!="string"||!isIconName(n))return;const o=icons[n],i=h("path",{d:o}),s=t.i18n[r]||e.title||n,a=h("title",s);return h("svg",{class:"carousel__icon",viewBox:"0 0 24 24",role:"img","aria-label":s},[a,i])};Icon.props={name:String,title:String};const Navigation=(e,{slots:t,attrs:n})=>{const{next:r,prev:o}=t||{},i=inject("config",reactive(Object.assign({},DEFAULT_CONFIG))),s=inject("maxSlide",ref(1)),a=inject("minSlide",ref(1)),c=inject("currentSlide",ref(1)),l=inject("nav",{}),{dir:d,wrapAround:g,i18n:m}=i,y=d==="rtl",C=h("button",{type:"button",class:["carousel__prev",!g&&c.value<=a.value&&"carousel__prev--disabled",n==null?void 0:n.class],"aria-label":m.ariaPreviousSlide,onClick:l.prev},(o==null?void 0:o())||h(Icon,{name:y?"arrowRight":"arrowLeft"})),w=h("button",{type:"button",class:["carousel__next",!g&&c.value>=s.value&&"carousel__next--disabled",n==null?void 0:n.class],"aria-label":m.ariaNextSlide,onClick:l.next},(r==null?void 0:r())||h(Icon,{name:y?"arrowLeft":"arrowRight"}));return[C,w]};var Slide=defineComponent({name:"CarouselSlide",props:{index:{type:Number,default:1},isClone:{type:Boolean,default:!1}},setup(e,{slots:t}){const n=inject("config",reactive(Object.assign({},DEFAULT_CONFIG))),r=inject("currentSlide",ref(0)),o=inject("slidesToScroll",ref(0)),i=inject("isSliding",ref(!1)),s=computed(()=>e.index===r.value),a=computed(()=>e.index===r.value-1),c=computed(()=>e.index===r.value+1),l=computed(()=>{const d=Math.floor(o.value),g=Math.ceil(o.value+n.itemsToShow-1);return e.index>=d&&e.index<=g});return()=>{var d;return h("li",{style:{width:`${100/n.itemsToShow}%`},class:{carousel__slide:!0,"carousel__slide--clone":e.isClone,"carousel__slide--visible":l.value,"carousel__slide--active":s.value,"carousel__slide--prev":a.value,"carousel__slide--next":c.value,"carousel__slide--sliding":i.value},"aria-hidden":!l.value},(d=t.default)===null||d===void 0?void 0:d.call(t,{isActive:s.value,isClone:e.isClone,isPrev:a.value,isNext:c.value,isSliding:i.value,isVisible:l.value}))}}});const _hoisted_1$g={class:"w-full"},_hoisted_2$e=["onClick"],_sfc_main$h=defineComponent({__name:"Slideshow",props:{content:{},speed:{},fontSize:{},carouselIconsColor:{default:"#000"}},setup(e){const t=e;useCssVars(i=>({"520a2570":n.value}));const n=computed(()=>t.carouselIconsColor),r={itemsToShow:1,wrapAround:!0,autoplay:t.speed*1e3},o=i=>{i.link&&window.open(i.link,"_blank")};return onMounted(()=>{}),(i,s)=>(openBlock(),createBlock(unref(Carousel),normalizeProps(guardReactiveProps(r)),{addons:withCtx(()=>[createVNode(unref(Navigation))]),default:withCtx(()=>[(openBlock(!0),createElementBlock(Fragment,null,renderList(t.content,a=>(openBlock(),createBlock(unref(Slide),{class:"cursor-grab",key:a.content},{default:withCtx(()=>[createBaseVNode("div",_hoisted_1$g,[createBaseVNode("p",{class:normalizeClass({clickable:a.link}),style:normalizeStyle({fontSize:t.fontSize+"px"}),onClick:c=>o(a)},toDisplayString(a.content),15,_hoisted_2$e)])]),_:2},1024))),128))]),_:1},16))}}),Slideshow_vue_vue_type_style_index_0_lang="",_withScopeId$1=e=>(pushScopeId("data-v-44e70771"),e=e(),popScopeId(),e),_hoisted_1$f={class:"bar-content"},_hoisted_2$d={key:0,class:"bar-thanks-container"},_hoisted_3$9=["innerHTML"],_hoisted_4$9=["innerHTML"],_hoisted_5$8=["onSubmit"],_hoisted_6$7={class:"input-wrapper"},_hoisted_7$4=["placeholder"],_hoisted_8$5={key:0,class:"error-box"},_hoisted_9$4=_withScopeId$1(()=>createBaseVNode("span",null,"✱",-1)),_hoisted_10$3=[_hoisted_9$4],_hoisted_11$3={key:4,class:"dynamic-content"},_hoisted_12$2={key:1,class:"px-8"},_sfc_main$g=defineComponent({__name:"SmartBar",props:{campaign:{},edit:{type:Boolean}},emits:["close"],setup(e,{emit:t}){const n=e;useCssVars(b=>({c7c178f0:j.value,d516a748:I.value,"6cf1814d":C.value,a2ab344c:y.value}));const{createAction:r,createSubscriber:o}=useApi(),{setupJS:i}=useCustomJS(),s=useWindowApi(),a=ref(!1),c=ref(!1),l=ref(!0),d=ref(""),g=ref(""),m=ref(""),y=computed(()=>{var b;return(b=n.campaign)==null?void 0:b.button_background_color}),C=computed(()=>{var b;return(b=n.campaign)==null?void 0:b.widget_text_color}),w=computed(()=>{var b,E;return((b=n.campaign)==null?void 0:b.goal)!=="news"&&((E=n.campaign)==null?void 0:E.goal)!=="slideshow"}),I=computed(()=>{var b,E,D;return(b=n.campaign)!=null&&b.font_family&&((E=n.campaign)!=null&&E.custom_font_enabled)?(D=n.campaign)==null?void 0:D.font_family:"inherit"}),j=computed(()=>n.campaign.goal==="slideshow"?"block":"flex"),J=b=>{c.value=b},A=async()=>{var b,E,D,O,M,B,Z;if(((b=n.campaign)==null?void 0:b.goal)==="leads"){if(g.value="",l.value=!0,(E=n.campaign)!=null&&E.gdpr_compliant&&!c.value){g.value="Please accept the GDPR terms";return}const q=((D=n.campaign)==null?void 0:D.info_type)||"email";if(q==="email"&&!/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(d.value)){l.value=!1;return}if(!d.value){m.value=`Please enter your ${q} address`;return}if(await o({campaignId:((O=n.campaign)==null?void 0:O.id)??1,information:{[q]:d.value}}),await r({campaignId:((M=n.campaign)==null?void 0:M.id)??1,action:"lead"}),s.trigger("submit",{type:"subscriber",campaign:n.campaign,form:{[q]:d.value}}),n.campaign.after_submission==="thanks"){a.value=!0;return}if(n.campaign.after_submission==="redirect"){t("close"),n.campaign.redirect_url_after_submission&&window.open(n.campaign.redirect_url_after_submission,n.campaign.redirect_url_after_submission_new_window?"_blank":"_self");return}}((B=n.campaign)==null?void 0:B.goal)==="traffic"&&(n.campaign.traffic_open_new_tab?window.open(((Z=n.campaign)==null?void 0:Z.traffic_url)||""):window.location.href=n.campaign.traffic_url||"")},k=b=>{var E,D;if(((E=b.data)==null?void 0:E.type)==="pc/editor-event"&&(a.value=b.data.showSubmission),((D=b.data)==null?void 0:D.type)==="pc/mocked-campaign-change"){const O=document.getElementById("custom-pc-css-styles");if(O&&O.remove(),!n.campaign)return;n.edit||i(n.campaign)}};return onMounted(()=>{window.addEventListener("message",k),n.edit||i(n.campaign)}),onUnmounted(()=>{window.removeEventListener("message",k)}),(b,E)=>(openBlock(),createElementBlock("div",_hoisted_1$f,[a.value?(openBlock(),createElementBlock("div",_hoisted_2$d,[createBaseVNode("div",{class:"bar-thanks-copy",innerHTML:n.campaign.thank_you_msg},null,8,_hoisted_3$9),createVNode(Button,{class:"bar-thanks-button","button-color":n.campaign.button_background_color,"button-text-color":n.campaign.button_text_color,onClick:E[0]||(E[0]=D=>t("close"))},{default:withCtx(()=>[createTextVNode(toDisplayString(n.campaign.thank_you_close_btn_text),1)]),_:1},8,["button-color","button-text-color"])])):w.value?(openBlock(),createElementBlock("div",{key:1,class:"bar-main-content",innerHTML:n.campaign.main_content},null,8,_hoisted_4$9)):createCommentVNode("",!0),n.campaign.goal=="leads"&&!a.value?(openBlock(),createElementBlock("form",{key:2,class:"bar-input-form",autocomplete:"on",onSubmit:withModifiers(A,["prevent"])},[createVNode(unref(Icon$1),{class:"icon",icon:`uil-${n.campaign.info_type!=="email"?"phone":"envelope"}`,style:normalizeStyle({color:n.campaign.input_text_color,zIndex:999999999999})},null,8,["icon","style"]),createBaseVNode("div",_hoisted_6$7,[withDirectives(createBaseVNode("input",{class:"bar-input-form-text-input","onUpdate:modelValue":E[1]||(E[1]=D=>d.value=D),style:normalizeStyle({backgroundColor:n.campaign.input_background_color,color:n.campaign.input_text_color}),placeholder:n.campaign.info_type=="email"?n.campaign.smart_bar_email_placeholder:n.campaign.smart_bar_phone_placeholder,required:""},null,12,_hoisted_7$4),[[vModelText,d.value]]),l.value?createCommentVNode("",!0):(openBlock(),createElementBlock("div",_hoisted_8$5,_hoisted_10$3))]),w.value?(openBlock(),createBlock(Button,{key:0,class:"bar-input-form-submit-button","button-color":n.campaign.button_background_color,"button-text-color":n.campaign.button_text_color},{default:withCtx(()=>[createTextVNode(toDisplayString(n.campaign.button_text),1)]),_:1},8,["button-color","button-text-color"])):createCommentVNode("",!0)],40,_hoisted_5$8)):n.campaign.goal!="announcement"&&w.value&&!a.value?(openBlock(),createBlock(Button,{key:3,class:"bar-input-form-submit-button","button-color":n.campaign.button_background_color,"button-text-color":n.campaign.button_text_color,onClick:A},{default:withCtx(()=>[createTextVNode(toDisplayString(n.campaign.button_text),1)]),_:1},8,["button-color","button-text-color"])):createCommentVNode("",!0),w.value?createCommentVNode("",!0):(openBlock(),createElementBlock("div",_hoisted_11$3,[n.campaign.goal==="news"?(openBlock(),createBlock(News,{key:0,content:n.campaign.bar_content,icon:n.campaign.bar_icon,"icon-size":n.campaign.bar_icon_size,"icon-color":n.campaign.bar_icon_color,speed:n.campaign.bar_speed,"font-size":n.campaign.bar_font_size},null,8,["content","icon","icon-size","icon-color","speed","font-size"])):createCommentVNode("",!0),n.campaign.goal==="slideshow"?(openBlock(),createElementBlock("div",_hoisted_12$2,[createVNode(_sfc_main$h,{content:n.campaign.bar_content,speed:n.campaign.bar_speed,"font-size":n.campaign.bar_font_size,"carousel-icons-color":n.campaign.bar_arrows_color},null,8,["content","speed","font-size","carousel-icons-color"])])):createCommentVNode("",!0)])),n.campaign.gdpr_compliant&&n.campaign.goal=="leads"&&!a.value?(openBlock(),createBlock(GDPR,{key:5,value:c.value,"onUpdate:value":E[2]||(E[2]=D=>c.value=D),"text-color":n.campaign.widget_text_color,error:!!g.value&&!c.value,"onUpdate:checked":J},{default:withCtx(()=>[createTextVNode(toDisplayString(n.campaign.gdpr_text),1)]),_:1},8,["value","text-color","error"])):createCommentVNode("",!0)]))}}),SmartBar_vue_vue_type_style_index_0_scoped_44e70771_lang="",SmartBar=_export_sfc(_sfc_main$g,[["__scopeId","data-v-44e70771"]]),_hoisted_1$e=["bg-type"],_hoisted_2$c=["color"],_hoisted_3$8={class:"close-button clickable-effect"},_hoisted_4$8={key:1,class:"promo-wrapper clickable-effect"},_hoisted_5$7={key:2,class:"remove-watermark"},_hoisted_6$6=["push-down"],SPACER_ID="__pc-bar-spacer",_sfc_main$f=defineComponent({__name:"Bar",props:{campaign:{}},emits:["clicked:watermark"],setup(e,{expose:t,emit:n}){const r=e;useCssVars(b=>{var E,D,O,M;return{"10a8a890":(E=b.campaign)==null?void 0:E.widget_background_color,"6fe50b65":w.value,"24e2e355":I.value,"5b665612":(D=b.campaign)==null?void 0:D.widget_text_color,"29e2988a":(O=b.campaign)==null?void 0:O.button_background_color,"00224749":(M=b.campaign)==null?void 0:M.button_text_color,bf24cbd0:j.value.position,"6517a706":j.value.top,"1cc20ada":j.value.bottom}});const o=useWindowApi(),i=useMainStore(),{createAction:s}=useApi(),{closeCampaign:a}=useMain(),{activeBar:c,editMode:l}=storeToRefs(i),d=ref(!1),g=ref(),m=computed(()=>i.showWatermark),y=computed(()=>!C.value||!g.value?"unset":getComputedStyle(g.value).height),C=computed(()=>{var b;return((b=r.campaign)==null?void 0:b.banner_push_down)&&r.campaign.smart_bar_position==="top"}),w=computed(()=>{var b,E;return(b=r.campaign)!=null&&b.widget_background_img?`url(${(E=r.campaign)==null?void 0:E.widget_background_img})`:"none"}),I=computed(()=>{var b,E;return(b=r.campaign)!=null&&b.smart_bar_background_pattern?`url(${(E=r.campaign)==null?void 0:E.smart_bar_background_pattern})`:"none"}),j=computed(()=>{var b,E,D;return{position:(b=r.campaign)!=null&&b.smart_bar_fixed?"fixed":"absolute",top:((E=r.campaign)==null?void 0:E.smart_bar_position)==="top"?"0":"unset",bottom:((D=r.campaign)==null?void 0:D.smart_bar_position)==="bottom"?"0":"unset"}}),J=()=>{if(l.value)return;if(i.previewMode){d.value=!0;return}a(r.campaign),c.value=null,o.trigger("close",{campaign:r.campaign});const b=document.getElementById(SPACER_ID);b&&b.remove()},A=async()=>{var b;l.value||(await s({campaignId:((b=r.campaign)==null?void 0:b.id)??1,action:"click"}),o.trigger("click",{campaign:r.campaign}))},k=b=>{const E=document.getElementById(SPACER_ID);if(E){E.style.height=y.value;return}const D=document.body,O=document.createElement("div");O.style.display="block",O.style.height=b??y.value,O.id=SPACER_ID,D.insertBefore(O,D.firstChild)};return onMounted(()=>{var b;l.value||(s({campaignId:((b=r.campaign)==null?void 0:b.id)??1,action:"view"}),o.trigger("show",{campaign:r.campaign}),C.value&&setTimeout(()=>{const E=useCssVar("--pc-push-down-height",document.body);syncRefs(y,E),k()},0))}),t({barContainer:g}),(b,E)=>r.campaign&&!d.value?(openBlock(),createElementBlock("div",{key:0,class:"pc-bar",id:"pc-bar-container",ref_key:"barContainer",ref:g,"bg-type":r.campaign.widget_background_img?"image":"color",onClick:A},[r.campaign.allow_dismiss?(openBlock(),createElementBlock("div",{key:0,class:"bar-close-button clickable-effect",color:r.campaign.widget_text_color,onClick:J,onTouchstart:J},[createBaseVNode("div",_hoisted_3$8,[createVNode(unref(Icon$1),{class:"icon",icon:"uil-times"})])],40,_hoisted_2$c)):createCommentVNode("",!0),m.value?(openBlock(),createElementBlock("div",_hoisted_4$8,[createVNode(PCLogo,{class:"logo"})])):createCommentVNode("",!0),unref(l)&&m.value?(openBlock(),createElementBlock("div",_hoisted_5$7,[createVNode(RemoveWatermark,{"arrow-direction":"up",onClick:E[0]||(E[0]=D=>n("clicked:watermark"))})])):createCommentVNode("",!0),createBaseVNode("div",{class:"bar-container","push-down":b.campaign.allow_dismiss},[createVNode(SmartBar,{campaign:b.campaign,edit:unref(l),onClose:J},null,8,["campaign","edit"])],8,_hoisted_6$6)],8,_hoisted_1$e)):createCommentVNode("",!0)}}),Bar_vue_vue_type_style_index_0_scoped_287e4d40_lang="",Bar=_export_sfc(_sfc_main$f,[["__scopeId","data-v-287e4d40"]]),_hoisted_1$d={class:"pc-buttons-trigger-wrapper"},_hoisted_2$b={class:"button-container-left",ref:"buttonsLeft"},_hoisted_3$7=["onClick"],_hoisted_4$7={class:"button-container-right",ref:"buttonsRight"},_hoisted_5$6=["onClick"],_sfc_main$e=defineComponent({__name:"Buttons",props:{campaigns:{}},setup(e){const t=e,n=useStorage(),r=useMainStore(),{activePop:o}=storeToRefs(r),i=useMediaQuery("(max-width: 768px)"),s=computed(()=>i.value?t.campaigns.filter(d=>d.reopen_btn_placement_mobile==="left_side"):t.campaigns.filter(d=>d.reopen_btn_placement_desktop==="left_side")),a=computed(()=>i.value?t.campaigns.filter(d=>d.reopen_btn_placement_mobile==="right_side"):t.campaigns.filter(d=>d.reopen_btn_placement_desktop==="right_side")),c=d=>{n.removeAll("closed",d.id),o.value=d,window.triggerPC()},l=d=>({backgroundColor:d.reopen_btn_background_color,color:d.reopen_btn_text_color,fontSize:`${d.reopen_btn_text_size}px`});return(d,g)=>(openBlock(),createElementBlock("div",_hoisted_1$d,[createBaseVNode("div",_hoisted_2$b,[(openBlock(!0),createElementBlock(Fragment,null,renderList(s.value,m=>(openBlock(),createElementBlock("div",{class:"pc-button clickable-effect",key:m.id,style:normalizeStyle({...l(m),borderRadius:"0 4px 4px 0"}),onClick:y=>c(m)},[createBaseVNode("span",null,toDisplayString(m.reopen_btn_text),1)],12,_hoisted_3$7))),128))],512),createBaseVNode("div",_hoisted_4$7,[(openBlock(!0),createElementBlock(Fragment,null,renderList(a.value,m=>(openBlock(),createElementBlock("div",{class:"pc-button clickable-effect",key:m.id,style:normalizeStyle({...l(m),borderRadius:"4px 0 0 4px"}),onClick:y=>c(m)},[createBaseVNode("span",null,toDisplayString(m.reopen_btn_text),1)],12,_hoisted_5$6))),128))],512)]))}}),Buttons_vue_vue_type_style_index_0_scoped_7b21e5d6_lang="",Buttons=_export_sfc(_sfc_main$e,[["__scopeId","data-v-7b21e5d6"]]),_hoisted_1$c=["onClick"],_sfc_main$d=defineComponent({__name:"ButtonPops",props:{activeButton:{},buttons:{}},setup(__props){const props=__props,mainStore=useMainStore(),{filterPages,isGeoValid}=useMain(),{activePop}=storeToRefs(mainStore),isPageValid=e=>{var t,n;return!e.display_pages_enabled||!e.display_pages||e.display_pages.length===0?!0:e.display_pages_match_rule==="any"?(t=e.display_pages)==null?void 0:t.some(r=>filterPages(r)):(n=e.display_pages)==null?void 0:n.every(r=>filterPages(r))},parsedButtons=computed(()=>props.activeButton?[props.activeButton]:props.buttons.filter(e=>isPageValid(e)&&isGeoValid(e))),getButtonStyles=e=>{var n,r,o,i;const t={height:`${e.height??150}px`,width:`${e.width??150}px`,backgroundImage:`url(${e.design_img})`,borderRadius:`${e.border_radius??8}px`,backgroundColor:e.background_color??"#fff",top:"auto",bottom:"auto",left:"auto",right:"auto"};return(n=e.placement_desktop)!=null&&n.includes("top")&&(t.top=`${e.top??16}px`),(r=e.placement_desktop)!=null&&r.includes("bottom")&&(t.bottom=`${e.bottom??16}px`),(o=e.placement_desktop)!=null&&o.includes("left")&&(t.left=`${e.left??16}px`),(i=e.placement_desktop)!=null&&i.includes("right")&&(t.right=`${e.right??16}px`),t},handleClick=button=>{var e;if(button.custom_js_enabled)try{eval(button.custom_js??"")}catch(t){console.error(t)}if(button.click_action==="open_campaign"){const t=(e=mainStore.campaigns)==null?void 0:e.find(n=>n.id===button.click_action_campaign_id);t&&(activePop.value=t);return}if(button.click_action==="open_url"){if(button.click_action_url_new_tab&&button.click_action_url){window.open(button.click_action_url,"_blank");return}button.click_action_url&&(window.location.href=button.click_action_url);return}if(button.click_action_custom_script)try{eval(button.click_action_custom_script)}catch(t){console.error(t)}};return(e,t)=>(openBlock(),createElementBlock("div",null,[(openBlock(!0),createElementBlock(Fragment,null,renderList(parsedButtons.value,n=>(openBlock(),createElementBlock("div",{key:n.id},[createBaseVNode("button",{class:"button-pop",style:normalizeStyle(getButtonStyles(n)),onClick:r=>handleClick(n)},null,12,_hoisted_1$c)]))),128))]))}}),ButtonPops_vue_vue_type_style_index_0_scoped_ed6f44b8_lang="",ButtonPops=_export_sfc(_sfc_main$d,[["__scopeId","data-v-ed6f44b8"]]),_hoisted_1$b={class:"coupon-wrapper"},_hoisted_2$a={class:"svg-style",height:"65",viewBox:"0 0 400 65",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:{margin:"auto"}},_hoisted_3$6=createStaticVNode('',3),_hoisted_6$5=createStaticVNode('',5),_hoisted_11$2=createStaticVNode('',1),_sfc_main$c=defineComponent({__name:"Coupon",props:{code:{},small:{type:Boolean},successMessage:{}},setup(e){const t=e,n=computed(()=>r.value?t.successMessage??"Copied!":t.code||""),r=ref(!1),o=()=>{t.code&&(r.value=!0,setTimeout(()=>{r.value=!1},2e3),navigator.clipboard.writeText(t.code||""))};return(i,s)=>(openBlock(),createElementBlock("div",_hoisted_1$b,[i.code?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass(["code-wrapper",{small:t.small}]),onClick:o},toDisplayString(n.value),3)):createCommentVNode("",!0),(openBlock(),createElementBlock("svg",_hoisted_2$a,[_hoisted_3$6,i.code?createCommentVNode("",!0):(openBlock(),createElementBlock(Fragment,{key:0},[_hoisted_6$5],64)),_hoisted_11$2]))]))}}),Coupon_vue_vue_type_style_index_0_scoped_b87207b6_lang="",Coupon=_export_sfc(_sfc_main$c,[["__scopeId","data-v-b87207b6"]]),isRobotUserAgent=()=>{const e=["facebookexternalhit","facebookcatalog","meta-externalagent","meta-externalfetcher","googlebot","bingbot","slurp","duckduckbot","baiduspider","yandexbot","sogou","exabot","facebot","ia_archiver"],t=navigator.userAgent.toLowerCase();for(const n of e)if(t.includes(n))return!0;return!1},currencyToSymbol=e=>({AED:"د.إ",AFN:"؋",ALL:"L",AMD:"֏",ANG:"ƒ",AOA:"Kz",ARS:"$",AUD:"$",AWG:"ƒ",AZN:"₼",BAM:"KM",BBD:"$",BDT:"৳",BGN:"лв",BHD:".د.ب",BIF:"FBu",BMD:"$",BND:"$",BOB:"$b",BOV:"BOV",BRL:"R$",BSD:"$",BTC:"₿",BTN:"Nu.",BWP:"P",BYN:"Br",BYR:"Br",BZD:"BZ$",CAD:"$",CDF:"FC",CHE:"CHE",CHF:"CHF",CHW:"CHW",CLF:"CLF",CLP:"$",CNH:"¥",CNY:"¥",COP:"$",COU:"COU",CRC:"₡",CUC:"$",CUP:"₱",CVE:"$",CZK:"Kč",DJF:"Fdj",DKK:"kr",DOP:"RD$",DZD:"دج",EEK:"kr",EGP:"£",ERN:"Nfk",ETB:"Br",ETH:"Ξ",EUR:"€",FJD:"$",FKP:"£",GBP:"£",GEL:"₾",GGP:"£",GHC:"₵",GHS:"GH₵",GIP:"£",GMD:"D",GNF:"FG",GTQ:"Q",GYD:"$",HKD:"$",HNL:"L",HRK:"kn",HTG:"G",HUF:"Ft",IDR:"Rp",ILS:"₪",IMP:"£",INR:"₹",IQD:"ع.د",IRR:"﷼",ISK:"kr",JEP:"£",JMD:"J$",JOD:"JD",JPY:"¥",KES:"KSh",KGS:"лв",KHR:"៛",KMF:"CF",KPW:"₩",KRW:"₩",KWD:"KD",KYD:"$",KZT:"₸",LAK:"₭",LBP:"£",LKR:"₨",LRD:"$",LSL:"M",LTC:"Ł",LTL:"Lt",LVL:"Ls",LYD:"LD",MAD:"MAD",MDL:"lei",MGA:"Ar",MKD:"ден",MMK:"K",MNT:"₮",MOP:"MOP$",MRO:"UM",MRU:"UM",MUR:"₨",MVR:"Rf",MWK:"MK",MXN:"$",MXV:"MXV",MYR:"RM",MZN:"MT",NAD:"$",NGN:"₦",NIO:"C$",NOK:"kr",NPR:"₨",NZD:"$",OMR:"﷼",PAB:"B/.",PEN:"S/.",PGK:"K",PHP:"₱",PKR:"₨",PLN:"zł",PYG:"Gs",QAR:"﷼",RMB:"¥",RON:"lei",RSD:"Дин.",RUB:"₽",RWF:"R₣",SAR:"﷼",SBD:"$",SCR:"₨",SDG:"ج.س.",SEK:"kr",SGD:"S$",SHP:"£",SLL:"Le",SOS:"S",SRD:"$",SSP:"£",STD:"Db",STN:"Db",SVC:"$",SYP:"£",SZL:"E",THB:"฿",TJS:"SM",TMT:"T",TND:"د.ت",TOP:"T$",TRL:"₤",TRY:"₺",TTD:"TT$",TVD:"$",TWD:"NT$",TZS:"TSh",UAH:"₴",UGX:"USh",USD:"$",UYI:"UYI",UYU:"$U",UYW:"UYW",UZS:"лв",VEF:"Bs",VES:"Bs.S",VND:"₫",VUV:"VT",WST:"WS$",XAF:"FCFA",XBT:"Ƀ",XCD:"$",XOF:"CFA",XPF:"₣",XSU:"Sucre",XUA:"XUA",YER:"﷼",ZAR:"R",ZMW:"ZK",ZWD:"Z$",ZWL:"$"})[e]||"",_hoisted_1$a={class:"products-parent"},_hoisted_2$9={class:"product-row"},_hoisted_3$5=["onClick"],_hoisted_4$6={key:0,class:"product-container"},_hoisted_5$5={style:{flex:"1 1 auto"}},_hoisted_6$4=["src"],_hoisted_7$3={key:1,style:{marginBottom:"4px"}},_hoisted_8$4={key:2},_hoisted_9$3=["onClick"],_sfc_main$b=defineComponent({__name:"Products",props:{productBlock:{},campaign:{}},setup(e){const t=e;useCssVars(d=>({"78fe4bca":d.campaign.title_color,"13c1a59c":d.productBlock.button_bg_color,"184b2bef":d.productBlock.button_bg_color_hover,"7c24a9da":d.productBlock.button_text_color,"266c03d7":d.productBlock.button_text_hover_color,"1e492c5c":i.value}));const n=useStorage(),{closeCampaign:r}=useMain(),o=useMainStore(),i=computed(()=>t.productBlock.num_products),s=computed(()=>t.productBlock.num_rows),a=computed(()=>{let d=[];return t.productBlock.products.length>0?(t.productBlock.products.forEach(g=>{g.variants.forEach(m=>{d.push({image:g.image,title:m.displayName,price:m.price,id:m.id})})}),d):(d=[{image:"https://ucarecdn.com/d3b8c429-2415-45fc-b53e-62a8b68ba9ad/placeholderimagesproduct1_largeremovebgpreview.png",title:"Product 1",price:"10",id:"1"},{image:"https://ucarecdn.com/216f5db2-fa9d-4c90-bc72-f61c4f6afc5d/placeholderimagesproduct2_largeremovebgpreview.png",title:"Product 2",price:"20",id:"2"},{image:"https://ucarecdn.com/d582cdd8-870c-4d70-ae00-950d1eaa9039/placeholderimagesproduct3_largeremovebgpreview.png",title:"Product 3",price:"30",id:"3"},{image:"https://cdn.shopify.com/s/files/1/0533/2089/files/placeholder-images-product-4_large.png?v=1530129292",title:"Product 4",price:"40",id:"4"},{image:"https://cdn.shopify.com/s/files/1/0533/2089/files/placeholder-images-product-5_large.png?v=1530129292",title:"Product 5",price:"50",id:"5"},{image:"https://cdn.shopify.com/s/files/1/0533/2089/files/placeholder-images-product-6_large.png?v=1530129292",title:"Product 6",price:"60",id:"6"},{image:"https://cdn.shopify.com/s/files/1/0533/2089/files/placeholder-images-product-1_large.png?v=1530129292",title:"Product 7",price:"70",id:"7"},{image:"https://cdn.shopify.com/s/files/1/0533/2089/files/placeholder-images-product-2_large.png?v=1530129292",title:"Product 8",price:"80",id:"8"},{image:"https://cdn.shopify.com/s/files/1/0533/2089/files/placeholder-images-product-3_large.png?v=1530129292",title:"Product 9",price:"90",id:"9"},{image:"https://cdn.shopify.com/s/files/1/0533/2089/files/placeholder-images-product-4_large.png?v=1530129292",title:"Product 10",price:"100",id:"10"}],d)}),c=d=>{if(t.productBlock.action!="redirect")return;const g=d.id.split("/"),m=g[g.length-1];t.productBlock.open_in_new_tab?window.open(`https://${o.currentSite.siteUrl}/variants/${m}`,"_blank"):window.location.href=`https://${o.currentSite.siteUrl}/variants/${m}`},l=d=>{const g=d.id.split("/"),m=g[g.length-1];fetch("/cart/add.js",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({id:m,quantity:1})}).then(y=>y.json()).then(y=>{console.log("Item added to cart:",y),n.add("submitted","local",{id:t.campaign.id,closedAt:new Date().toISOString()}),r(t.campaign),window.location.href=`https://${o.currentSite.siteUrl}/cart`}).catch(y=>{alert(`Error adding item to cart: ${y}`),console.error("Error adding item to cart:",y)})};return(d,g)=>(openBlock(),createElementBlock("div",_hoisted_1$a,[createBaseVNode("div",_hoisted_2$9,[(openBlock(!0),createElementBlock(Fragment,null,renderList(a.value,(m,y)=>(openBlock(),createElementBlock("div",{class:"product",key:m.id,style:normalizeStyle({display:yc(m)},[yl(m)},toDisplayString(d.productBlock.action_text),9,_hoisted_9$3)):createCommentVNode("",!0)])):createCommentVNode("",!0)],12,_hoisted_3$5))),128))])]))}}),Products_vue_vue_type_style_index_0_scoped_73415ed1_lang="",Products=_export_sfc(_sfc_main$b,[["__scopeId","data-v-73415ed1"]]),_hoisted_1$9=createBaseVNode("path",{fill:"currentColor",d:"M714.163 519.284L1160.89 0H1055.03L667.137 450.887L357.328 0H0L468.492 681.821L0 1226.37H105.866L515.491 750.218L842.672 1226.37H1200L714.137 519.284H714.163ZM569.165 687.828L521.697 619.934L144.011 79.6944H306.615L611.412 515.685L658.88 583.579L1055.08 1150.3H892.476L569.165 687.854V687.828Z"},null,-1),_hoisted_2$8=[_hoisted_1$9],_sfc_main$a=defineComponent({__name:"IconSocial",props:{icon:{default:""},color:{default:"black"},fontSize:{default:20}},setup(e){const t=e,n=computed(()=>`bxl:${{facebook:"facebook-square"}[t.icon]||t.icon}`);return(r,o)=>t.icon==="x"?(openBlock(),createElementBlock("svg",{key:0,class:"icon social-network-icon",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":"true",role:"img",width:"1em",height:"1em",viewBox:"-218.42 -204.68 1636.36 1636.36",style:normalizeStyle({color:t.color,fontSize:`${t.fontSize}px`})},_hoisted_2$8,4)):(openBlock(),createBlock(unref(Icon$1),{key:1,class:normalizeClass(["icon social-network-icon",t.icon]),icon:n.value,style:normalizeStyle({color:t.color,fontSize:`${t.fontSize}px`})},null,8,["class","icon","style"]))}}),_hoisted_1$8=["href"],_sfc_main$9=defineComponent({__name:"SocialNetworks",props:{block:{},campaign:{}},setup(e){const t=e;useCssVars(i=>({"0688af96":r.value,"5e32352e":o.value}));const n=computed(()=>t.block.icons_color??t.campaign.widget_text_color),r=computed(()=>t.block.icons_bg_color??""),o=computed(()=>t.block.icon_border_color??"");return(i,s)=>(openBlock(),createElementBlock("div",{class:"block social-networks-block",style:normalizeStyle({gap:t.block.button_type==="min"?"1em":"0.5em"})},[(openBlock(!0),createElementBlock(Fragment,null,renderList(t.block.networks,a=>(openBlock(),createElementBlock(Fragment,null,[a.enabled?(openBlock(),createElementBlock("a",{class:normalizeClass(["social-network-block-wrapper",t.block.button_type]),key:a.key,href:a.url,target:"_blank"},[createVNode(_sfc_main$a,{icon:a.key,color:n.value,"font-size":t.block.icon_size},null,8,["icon","color","font-size"])],10,_hoisted_1$8)):createCommentVNode("",!0)],64))),256))],4))}}),SocialNetworks_vue_vue_type_style_index_0_scoped_e71acf6d_lang="",SocialNetworks=_export_sfc(_sfc_main$9,[["__scopeId","data-v-e71acf6d"]]),_hoisted_1$7={key:0,class:"time-block"},_hoisted_2$7=["id"],_hoisted_3$4={key:1,class:"separator"},_hoisted_4$5={key:2,class:"time-block"},_hoisted_5$4=["id"],_hoisted_6$3={key:3,class:"separator"},_hoisted_7$2={key:4,class:"time-block"},_hoisted_8$3=["id"],_hoisted_9$2={key:5,class:"separator"},_hoisted_10$2={key:6,class:"time-block"},_hoisted_11$1=["id"],_hoisted_12$1={class:"timer-item"},_hoisted_13$1={class:"timer-item"},_hoisted_14$1={class:"timer-item"},_hoisted_15$1={class:"timer-item"},_sfc_main$8=defineComponent({__name:"Timer",props:{block:{},campaign:{}},setup(e){var O,M,B,Z,q,pe,Se,Ee;const t=e;useCssVars(ne=>({"764258c4":w.value,"233595bf":I.value,47396143:A.value,"50b42fe0":j.value}));const n=Math.random().toString(36).substr(2,9),r=t.block.timer_end_at?new Date(t.block.timer_end_at):new Date,o=new Date(r).getTime(),i=new Date().getTime(),s=Math.max(o-i,0),a=ref(Math.floor(s/(1e3*60*60*24))),c=ref(Math.floor(s%(1e3*60*60*24)/(1e3*60*60))),l=ref(Math.floor(s%(1e3*60*60)/(1e3*60))),d=ref(Math.floor(s%(1e3*60)/1e3));t.block.timer_type=="interval"&&(a.value=((M=(O=t.block.timer_interval)==null?void 0:O.days)==null?void 0:M.amount)??1,c.value=((Z=(B=t.block.timer_interval)==null?void 0:B.hours)==null?void 0:Z.amount)??1,l.value=((pe=(q=t.block.timer_interval)==null?void 0:q.minutes)==null?void 0:pe.amount)??1,d.value=((Ee=(Se=t.block.timer_interval)==null?void 0:Se.seconds)==null?void 0:Ee.amount)??1);const g=computed(()=>a.value.toString().padStart(2,"0")),m=computed(()=>c.value.toString().padStart(2,"0")),y=computed(()=>l.value.toString().padStart(2,"0")),C=computed(()=>d.value.toString().padStart(2,"0")),w=computed(()=>t.block.background_color??""),I=computed(()=>{var ne;return t.block.text_color??((ne=t.campaign)==null?void 0:ne.widget_text_color)??"#000"}),j=computed(()=>t.block.border_color??"#e2e8f0"),J=computed(()=>t.block.border_width??1),A=computed(()=>`${J.value}px solid ${j.value}`);setInterval(()=>{d.value=d.value-1,d.value<0&&(d.value=59,l.value=l.value-1),l.value<0&&(l.value=59,c.value=c.value-1),c.value<0&&(c.value=23,a.value=a.value-1),a.value<0&&(a.value=0,c.value=0,l.value=0,d.value=0)},900);const b=computed(()=>{var ne,we,_e,V,ue,ve,ke,N;return((we=(ne=t.block.timer_interval)==null?void 0:ne.days)==null?void 0:we.enabled)&&(((V=(_e=t.block.timer_interval)==null?void 0:_e.hours)==null?void 0:V.enabled)||((ve=(ue=t.block.timer_interval)==null?void 0:ue.minutes)==null?void 0:ve.enabled)||((N=(ke=t.block.timer_interval)==null?void 0:ke.seconds)==null?void 0:N.enabled))}),E=computed(()=>{var ne,we,_e,V,ue,ve;return((we=(ne=t.block.timer_interval)==null?void 0:ne.hours)==null?void 0:we.enabled)&&(((V=(_e=t.block.timer_interval)==null?void 0:_e.minutes)==null?void 0:V.enabled)||((ve=(ue=t.block.timer_interval)==null?void 0:ue.seconds)==null?void 0:ve.enabled))}),D=computed(()=>{var ne,we,_e,V;return((we=(ne=t.block.timer_interval)==null?void 0:ne.minutes)==null?void 0:we.enabled)&&((V=(_e=t.block.timer_interval)==null?void 0:_e.seconds)==null?void 0:V.enabled)});return(ne,we)=>{var _e,V,ue,ve,ke,N,te,se,oe,ie,ge,Y,xe,Ie,v,T;return ne.block.theme!="analog"?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass(["timer-parent",[ne.block.theme??"default",ne.block.color??"light"]])},[(V=(_e=ne.block.timer_interval)==null?void 0:_e.days)!=null&&V.enabled?(openBlock(),createElementBlock("div",_hoisted_1$7,[createBaseVNode("span",{class:"counter days",id:`days-${unref(n)}`},toDisplayString(g.value),9,_hoisted_2$7),createBaseVNode("label",null,toDisplayString((ve=(ue=ne.block.timer_interval)==null?void 0:ue.days)==null?void 0:ve.label),1)])):createCommentVNode("",!0),b.value?(openBlock(),createElementBlock("div",_hoisted_3$4,":")):createCommentVNode("",!0),(N=(ke=ne.block.timer_interval)==null?void 0:ke.hours)!=null&&N.enabled?(openBlock(),createElementBlock("div",_hoisted_4$5,[createBaseVNode("span",{class:"counter hours",id:`hours-${unref(n)}`},toDisplayString(m.value),9,_hoisted_5$4),createBaseVNode("label",null,toDisplayString((se=(te=ne.block.timer_interval)==null?void 0:te.hours)==null?void 0:se.label),1)])):createCommentVNode("",!0),E.value?(openBlock(),createElementBlock("div",_hoisted_6$3,":")):createCommentVNode("",!0),(ie=(oe=ne.block.timer_interval)==null?void 0:oe.minutes)!=null&&ie.enabled?(openBlock(),createElementBlock("div",_hoisted_7$2,[createBaseVNode("span",{class:"counter minutes",id:`minutes-${unref(n)}`},toDisplayString(y.value),9,_hoisted_8$3),createBaseVNode("label",null,toDisplayString((Y=(ge=ne.block.timer_interval)==null?void 0:ge.minutes)==null?void 0:Y.label),1)])):createCommentVNode("",!0),D.value?(openBlock(),createElementBlock("div",_hoisted_9$2,":")):createCommentVNode("",!0),(Ie=(xe=ne.block.timer_interval)==null?void 0:xe.seconds)!=null&&Ie.enabled?(openBlock(),createElementBlock("div",_hoisted_10$2,[createBaseVNode("span",{class:"counter seconds",id:`seconds-${unref(n)}`},toDisplayString(C.value),9,_hoisted_11$1),createBaseVNode("label",null,toDisplayString((T=(v=ne.block.timer_interval)==null?void 0:v.seconds)==null?void 0:T.label),1)])):createCommentVNode("",!0)],2)):(openBlock(),createElementBlock("div",{key:1,class:normalizeClass(["timer-analog",ne.block.color??"light"])},[createBaseVNode("div",_hoisted_12$1,[createBaseVNode("p",null,toDisplayString(g.value[0]),1),createBaseVNode("p",null,toDisplayString(g.value[1]),1)]),createBaseVNode("div",_hoisted_13$1,[createBaseVNode("p",null,toDisplayString(m.value[0]),1),createBaseVNode("p",null,toDisplayString(m.value[1]),1)]),createBaseVNode("div",_hoisted_14$1,[createBaseVNode("p",null,toDisplayString(y.value[0]),1),createBaseVNode("p",null,toDisplayString(y.value[1]),1)]),createBaseVNode("div",_hoisted_15$1,[createBaseVNode("p",null,toDisplayString(C.value[0]),1),createBaseVNode("p",null,toDisplayString(C.value[1]),1)])],2))}}}),Timer_vue_vue_type_style_index_0_scoped_2fe60b9c_lang="",Timer=_export_sfc(_sfc_main$8,[["__scopeId","data-v-2fe60b9c"]]),_withScopeId=e=>(pushScopeId("data-v-9a12731c"),e=e(),popScopeId(),e),_hoisted_1$6={class:"blocks-renderer"},_hoisted_2$6=["id","block-type"],_hoisted_3$3={key:0,class:"block-content block-sticker"},_hoisted_4$4=["innerHTML"],_hoisted_5$3={key:1,class:"block-content",style:{padding:"0 12px"}},_hoisted_6$2=["innerHTML"],_hoisted_7$1={key:2,class:"block-content block-content-image"},_hoisted_8$2=["src","alt"],_hoisted_9$1={key:3,class:"block-content block-content-image"},_hoisted_10$1=["src"],_hoisted_11={key:4,class:"block-content"},_hoisted_12={key:5,class:"block-content"},_hoisted_13=_withScopeId(()=>createBaseVNode("hr",{class:"block divider-block"},null,-1)),_hoisted_14=[_hoisted_13],_hoisted_15={key:6,class:"block-content"},_hoisted_16={key:7,class:"block-content"},_hoisted_17={key:9,class:"block-content"},_hoisted_18={key:10,class:"block-content"},_hoisted_19=["src"],_hoisted_20={key:12,class:"block-content"},_hoisted_21=["onSubmit"],_hoisted_22={class:"input-wrapper"},_hoisted_23=["onUpdate:modelValue","placeholder","onBlur"],_hoisted_24={key:0,class:"error-box"},_hoisted_25=_withScopeId(()=>createBaseVNode("span",null,"✱",-1)),_hoisted_26=[_hoisted_25],_sfc_main$7=defineComponent({__name:"Blocks",props:{campaign:{},loading:{type:Boolean,default:!1}},emits:["submit","close"],setup(e,{emit:t}){const n=e;useCssVars(k=>({"4964a56b":k.campaign.title_color,"506783ca":k.campaign.widget_text_color,"57423fd2":k.campaign.input_text_color,c66a5c6e:k.textColor}));const r=useStorage(),{editMode:o}=useMainStore(),i=ref(!1),s=ref(!1),a=ref({email:"",name:"",phone:""}),c=ref({email:!1,name:!1,phone:!1}),l=computed(()=>n.campaign.gdpr_compliant?i.value:!0),d=computed(()=>n.campaign.content_blocks),g=(k,b)=>{if(o){window.open(k,"_blank");return}b?window.open(k,"_blank"):window.location.href=k},m=k=>{!k.clickUrlEnabled||!k.clickUrl||k.clickUrl.length!==0&&g(k.clickUrl,k.newTab)},y=k=>k?k.replace("watch?v=","embed/"):"",C=(k,b)=>{if(b)for(const[B,Z]of Object.entries(b))k=k.replace(new RegExp(B,"g"),Z);const O=new DOMParser().parseFromString(k,"image/svg+xml").querySelector("svg");O&&(O.removeAttribute("height"),O.removeAttribute("width"));const M=new XMLSerializer;try{return M.serializeToString(O)}catch(B){return console.error(B),""}},w=k=>{k.button_action==="close"&&(r.add("submitted","local",{id:n.campaign.id,closedAt:new Date().toISOString()}),t("close")),(k.button_action==="link"||k.button_action==="url")&&k.url&&(r.add("submitted","local",{id:n.campaign.id,closedAt:new Date().toISOString()}),g(k.url,k.newTab??!0))},I=k=>{i.value=k,k&&(s.value=!1)},j=k=>/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(k),J=k=>{if(k){k==="email"&&(c.value.email=!j(a.value.email??"")),k==="name"&&(c.value.name=!a.value.name),k==="phone"&&(c.value.phone=!a.value.phone);return}},A=()=>{var b,E;if(s.value=!1,!l.value){s.value=!0;return}c.value={email:!1,name:!1,phone:!1};const k=d.value.find(D=>D.block_type==="form");if((b=k==null?void 0:k.fields)!=null&&b.every(D=>!D.enabled)){t("submit",{couponForce:!0},k);return}(E=k==null?void 0:k.fields)==null||E.filter(D=>D.enabled).forEach(D=>{J(D.key)}),!Object.values(c.value).some(D=>D)&&t("submit",a.value,k)};return watch(()=>n.campaign,k=>{console.log("Campaign changed",k)},{deep:!0}),(k,b)=>(openBlock(),createElementBlock("div",_hoisted_1$6,[(openBlock(!0),createElementBlock(Fragment,null,renderList(d.value,(E,D)=>{var O;return openBlock(),createElementBlock("div",{class:normalizeClass(["block-wrapper",{"image-only-popup":d.value.length==1&&E.block_type==="image"}]),id:`block-${D+1}`,key:D,"block-type":E.block_type},[E.block_type==="sticker"&&E.svg?(openBlock(),createElementBlock("div",_hoisted_3$3,[E.colors?(openBlock(),createElementBlock("div",{key:0,style:normalizeStyle({width:`${E.width??35}%`}),innerHTML:C(E.svg,E.colors)},null,12,_hoisted_4$4)):createCommentVNode("",!0)])):createCommentVNode("",!0),E.block_type==="text"?(openBlock(),createElementBlock("div",_hoisted_5$3,[createBaseVNode("div",{class:"block text-block",innerHTML:E.text},null,8,_hoisted_6$2)])):createCommentVNode("",!0),E.block_type==="image"?(openBlock(),createElementBlock("div",_hoisted_7$1,[(openBlock(),createBlock(resolveDynamicComponent(E.clickUrlEnabled?"a":"div"),{href:E.clickUrl,onClick:withModifiers(M=>m(E),["prevent"])},{default:withCtx(()=>[createBaseVNode("img",{class:"block image-block",style:normalizeStyle({width:`${E.width}%`}),src:E.url||"",alt:E.altText},null,12,_hoisted_8$2)]),_:2},1032,["href","onClick"]))])):createCommentVNode("",!0),E.block_type==="video"?(openBlock(),createElementBlock("div",_hoisted_9$1,[createBaseVNode("iframe",{src:y(E.url||""),frameborder:"0",allowfullscreen:"",style:normalizeStyle({margin:"auto",width:`${E.width}%`,"aspect-ratio":16/9})},null,12,_hoisted_10$1)])):createCommentVNode("",!0),E.block_type==="social-networks"?(openBlock(),createElementBlock("div",_hoisted_11,[createVNode(SocialNetworks,{block:E,campaign:k.campaign},null,8,["block","campaign"])])):createCommentVNode("",!0),E.block_type==="divider"?(openBlock(),createElementBlock("div",_hoisted_12,_hoisted_14)):createCommentVNode("",!0),E.block_type==="spacer"?(openBlock(),createElementBlock("div",_hoisted_15,[createBaseVNode("div",{class:"block spacer-block",style:normalizeStyle({height:`${E.height}px`})},null,4)])):createCommentVNode("",!0),E.block_type==="timer"?(openBlock(),createElementBlock("div",_hoisted_16,[createVNode(Timer,{class:"block timer-block",block:E},null,8,["block"])])):createCommentVNode("",!0),E.block_type==="button"?(openBlock(),createBlock(resolveDynamicComponent(E.button_action==="close"?"div":"a"),{key:8,class:"block-content",role:"button",href:E.url,target:E.newTab?"_blank":"_self",onMouseup:M=>w(E)},{default:withCtx(()=>[createVNode(Button,{class:"block action-button-block","button-color":k.campaign.button_background_color,"button-text-color":k.campaign.button_text_color},{default:withCtx(()=>[createTextVNode(toDisplayString(E.text),1)]),_:2},1032,["button-color","button-text-color"])]),_:2},1064,["href","target","onMouseup"])):createCommentVNode("",!0),E.block_type==="coupon"?(openBlock(),createElementBlock("div",_hoisted_17,[createVNode(Coupon,{class:"block coupon-block"})])):createCommentVNode("",!0),E.block_type==="products"?(openBlock(),createElementBlock("div",_hoisted_18,[createVNode(Products,{"product-block":E,campaign:k.campaign},null,8,["product-block","campaign"])])):createCommentVNode("",!0),E.block_type==="media"&&E.projectThumb&&E.projectThumb.length>0?(openBlock(),createElementBlock("div",{key:11,class:"block-content block-img",style:normalizeStyle({display:"flex",justifyContent:E.align=="left"?"start":E.align=="right"?"end":"center"})},[createBaseVNode("img",{src:E.projectThumb,style:normalizeStyle({width:`${E.maxWidth}%`})},null,12,_hoisted_19)],4)):createCommentVNode("",!0),E.block_type==="form"?(openBlock(),createElementBlock("div",_hoisted_20,[createBaseVNode("form",{class:"block form-block",autocomplete:"on",onSubmit:withModifiers(A,["prevent"])},[(openBlock(!0),createElementBlock(Fragment,null,renderList((O=E.fields)==null?void 0:O.filter(M=>M.enabled),M=>(openBlock(),createElementBlock("div",{class:"bar-input-form",key:M.key},[createVNode(unref(Icon$1),{class:"icon",icon:`uil-${M.key==="email"?"envelope":M.key==="phone"?"phone":"user"}`,style:normalizeStyle({color:k.campaign.input_text_color})},null,8,["icon","style"]),createBaseVNode("div",_hoisted_22,[withDirectives(createBaseVNode("input",{class:"form-block-input","onUpdate:modelValue":B=>a.value[M.key]=B,style:normalizeStyle({backgroundColor:k.campaign.input_background_color,color:k.campaign.input_text_color,borderColor:k.campaign.input_border_color??k.campaign.input_background_color}),placeholder:M.placeholder,required:!0,onBlur:B=>J(M.key)},null,44,_hoisted_23),[[vModelText,a.value[M.key]]])]),c.value[M.key]?(openBlock(),createElementBlock("div",_hoisted_24,_hoisted_26)):createCommentVNode("",!0)]))),128)),k.campaign.gdpr_compliant?(openBlock(),createBlock(GDPR,{key:0,value:i.value,"onUpdate:value":b[0]||(b[0]=M=>i.value=M),"text-color":k.campaign.widget_text_color,error:s.value,"onUpdate:checked":I},{default:withCtx(()=>[createTextVNode(toDisplayString(k.campaign.gdpr_text),1)]),_:1},8,["value","text-color","error"])):createCommentVNode("",!0),createVNode(Button,{class:"form-block-submit-button",loading:n.loading,"button-color":k.campaign.button_background_color,"button-text-color":k.campaign.button_text_color,onClick:A},{default:withCtx(()=>{var M;return[createTextVNode(toDisplayString(((M=E.submit_button)==null?void 0:M.label)||"Submit"),1)]}),_:2},1032,["loading","button-color","button-text-color"])],40,_hoisted_21)])):createCommentVNode("",!0)],10,_hoisted_2$6)}),128))]))}}),Blocks_vue_vue_type_style_index_0_scoped_9a12731c_lang="",Blocks=_export_sfc(_sfc_main$7,[["__scopeId","data-v-9a12731c"]]),_hoisted_1$5={key:1,class:"pop-thanks-container"},_hoisted_2$5=["innerHTML"],_sfc_main$6=defineComponent({__name:"PopUp",props:{campaign:{},winningSlice:{}},emits:["close","submitted","spin-wheel","close-button-campaign"],setup(e,{emit:t}){const n=e;useCssVars(b=>({"029dc55f":w.value,"1f915ff0":I.value,"4d1a6935":C.value,"4019ddb2":y.value}));const r=useStorage(),{createAction:o,createSubscriber:i,isCreating:s}=useApi(),{setupJS:a}=useCustomJS(),c=useWindowApi(),l=ref(!1),d=ref(null),g=computed(()=>{var b;return(b=n.campaign.content_blocks)==null?void 0:b.find(E=>E.block_type==="coupon")}),m=computed(()=>{var b;return(b=n.campaign.content_blocks)==null?void 0:b.find(E=>E.block_type==="wheel")}),y=computed(()=>{var b;return((b=n.campaign)==null?void 0:b.title_color)||"#000"}),C=computed(()=>{var b;return((b=n.campaign)==null?void 0:b.widget_background_color)||"#fff"}),w=computed(()=>n.campaign.widget_background_img?`url(${n.campaign.widget_background_img})`:"none"),I=computed(()=>n.campaign.popup_main_padding?`${n.campaign.popup_main_padding}px`:"0px"),j=b=>{var E,D;((E=b.data)==null?void 0:E.type)==="pc/editor-event"&&(l.value=b.data.showSubmission),((D=b.data)==null?void 0:D.type)==="pc/mocked-campaign-change"&&a(n.campaign)},J=computed(()=>(n.campaign.after_submission==="redirect",!1)),A=async b=>{var D,O,M,B;if(b.couponForce){c.trigger("submit",{type:"subscriber",campaign:n.campaign,form:b}),l.value=!0,t("submitted",n.campaign);return}if(!b.email&&!b.phone&&!b.name)return;const E={campaignId:((D=n.campaign)==null?void 0:D.id)??1,information:b};if((O=g.value)!=null&&O.isDynamic&&(E.couponId=g.value.codeId),!s.value){const Z=await i(E);(M=g.value)!=null&&M.isDynamic&&(d.value=Z.code)}await o({campaignId:n.campaign.id??1,action:"lead"}),c.trigger("submit",{type:"subscriber",campaign:n.campaign,form:b}),(B=n.campaign.content_blocks)!=null&&B.find(Z=>Z.block_type==="wheel")?t("spin-wheel"):(r.add("submitted","local",{id:n.campaign.id,closedAt:new Date().toISOString()}),n.campaign.after_submission==="thanks"?l.value=!0:window.location.href=String(n.campaign.redirect_url_after_submission)),t("close-button-campaign")},k=()=>{var b,E,D;if(t("close"),((b=n.campaign)==null?void 0:b.thank_you_btn_action)==="redirect"&&(E=n.campaign)!=null&&E.thank_you_btn_redirect_url){t("submitted",n.campaign),window.location.href=String(n.campaign.thank_you_btn_redirect_url);return}(D=n.campaign)!=null&&D.content_blocks.find(O=>O.block_type==="coupon"||O.block_type==="form")&&t("submitted",n.campaign),c.trigger("close",{campaign:n.campaign})};return onMounted(()=>{window.addEventListener("message",j),a(n.campaign)}),onUnmounted(()=>{window.removeEventListener("message",j)}),(b,E)=>{var D,O;return openBlock(),createElementBlock("div",{class:normalizeClass(["pop-content-blocks",[`pc-campaign-${b.campaign.id}`,{isWheelCampaign:m.value}]])},[!l.value&&!J.value&&!b.winningSlice?(openBlock(),createBlock(Blocks,{key:0,loading:unref(s),campaign:b.campaign,onSubmit:A,onClose:k},null,8,["loading","campaign"])):(openBlock(),createElementBlock("div",_hoisted_1$5,[createBaseVNode("div",{class:"pop-thanks-text",innerHTML:b.winningSlice?b.winningSlice.win_text:b.campaign.thank_you_msg},null,8,_hoisted_2$5),b.winningSlice?(openBlock(),createBlock(Coupon,{key:0,class:"pop-thanks-coupon clickable-effect",code:d.value??b.winningSlice.coupon,small:!!d.value,"success-message":((D=g.value)==null?void 0:D.successMessage)??"Copied!"},null,8,["code","small","success-message"])):g.value?(openBlock(),createBlock(Coupon,{key:1,class:"pop-thanks-coupon clickable-effect",code:d.value??g.value.code??"",small:!!d.value,"success-message":((O=g.value)==null?void 0:O.successMessage)??"Copied!"},null,8,["code","small","success-message"])):createCommentVNode("",!0),createVNode(Button,{class:"pop-thanks-close-button","button-color":b.campaign.button_background_color,"button-text-color":b.campaign.button_text_color,onClick:k},{default:withCtx(()=>[createTextVNode(toDisplayString(b.campaign.thank_you_close_btn_text),1)]),_:1},8,["button-color","button-text-color"])]))],2)}}}),PopUp_vue_vue_type_style_index_0_scoped_8a71c5d5_lang="",PopUp=_export_sfc(_sfc_main$6,[["__scopeId","data-v-8a71c5d5"]]);function getRandomFloat(e=0,t=0,n=14){return parseFloat((Math.random()*(t-e)+e).toFixed(n))}function degRad(e=0){return e*Math.PI/180}function isAngleBetween(e,t,n){return t0?r=n%360:r=360+n%360,r===360&&(r=0),r}function diffAngle(e=0,t=0){const n=180-t;return 180-addAngle(e,n)}function calcWheelRotationForTargetAngle(e=0,t=0,n=1){let r=(e%360+t)%360;return r=fixFloat(r),r=(n===1?360-r:360+r)%360,r*=n,e+r}function isObject(e){return typeof e=="object"&&!Array.isArray(e)&&e!==null}function isNumber(e){return typeof e=="number"&&!Number.isNaN(e)}function setProp({val:e,isValid:t,errorMessage:n,defaultValue:r,action:o=null}){if(t)return o?o():e;if(e===void 0)return r;throw new Error(n)}function fixFloat(e=0){return Number(e.toFixed(9))}function easeSinOut(e){return Math.sin(e*Math.PI/2)}function getResizeObserver(e={},t={}){if(window.ResizeObserver){const n=new ResizeObserver(()=>{t({redraw:!0})});return n.observe(e),{stop:()=>{n.unobserve(e),n.disconnect()}}}return window.addEventListener("resize",t),{stop:()=>{window.removeEventListener("resize",t)}}}const arcAdjust=-90,baseCanvasSize=500,dragCapturePeriod=250,AlignText=Object.freeze({left:"left",right:"right",center:"center"}),Defaults=Object.freeze({wheel:{borderColor:"#000",borderWidth:1,debug:!1,image:null,isInteractive:!0,itemBackgroundColors:["#fff"],itemLabelAlign:AlignText.right,itemLabelBaselineOffset:0,itemLabelColors:["#000"],itemLabelFont:"sans-serif",itemLabelFontSizeMax:baseCanvasSize,itemLabelRadius:.85,itemLabelRadiusMax:.2,itemLabelRotation:0,itemLabelStrokeColor:"#fff",itemLabelStrokeWidth:0,items:[],lineColor:"#000",lineWidth:1,pixelRatio:0,radius:.95,rotation:0,rotationResistance:-35,rotationSpeedMax:300,offset:{x:0,y:0},onCurrentIndexChange:null,onRest:null,onSpin:null,overlayImage:null,pointerAngle:0},item:{backgroundColor:null,image:null,imageOpacity:1,imageRadius:.5,imageRotation:0,imageScale:1,label:"",labelColor:null,value:null,weight:1}}),Debugging=Object.freeze({pointerLineColor:"#ff00ff",labelBoundingBoxColor:"#ff00ff",labelRadiusColor:"#00ff00",dragPointHue:300});function register(e={}){registerPointerEvents(e),e._handler_onResize=getResizeObserver(e._canvasContainer,({redraw:n=!0})=>{e.resize(),n&&e.draw(performance.now())});const t=()=>{e._mediaQueryList=window.matchMedia(`(resolution: ${window.devicePixelRatio}dppx)`),e._mediaQueryList.addEventListener("change",e._handler_onDevicePixelRatioChange,{once:!0})};e._handler_onDevicePixelRatioChange=()=>{e.resize(),t()},t()}function unregister(e={}){const t=e.canvas;"PointerEvent"in window?(t.removeEventListener("pointerdown",e._handler_onPointerDown),t.removeEventListener("pointermove",e._handler_onPointerMoveRefreshCursor)):(t.removeEventListener("touchstart",e._handler_onTouchStart),t.removeEventListener("mousedown",e._handler_onMouseDown),t.removeEventListener("mousemove",e._handler_onMouseMoveRefreshCursor)),e._handler_onResize.stop(),e._mediaQueryList.removeEventListener("change",e._handler_onDevicePixelRatioChange)}function registerPointerEvents(e={}){const t=e.canvas;e._handler_onPointerMoveRefreshCursor=(n={})=>{const r={x:n.clientX,y:n.clientY};e._isCursorOverWheel=e.wheelHitTest(r),e.refreshCursor()},e._handler_onMouseMoveRefreshCursor=(n={})=>{const r={x:n.clientX,y:n.clientY};e._isCursorOverWheel=e.wheelHitTest(r),e.refreshCursor()},e._handler_onPointerDown=(n={})=>{const r={x:n.clientX,y:n.clientY};if(!e.isInteractive||!e.wheelHitTest(r))return;n.preventDefault(),e.dragStart(r),t.setPointerCapture(n.pointerId),t.addEventListener("pointermove",o),t.addEventListener("pointerup",i),t.addEventListener("pointercancel",i),t.addEventListener("pointerout",i);function o(s={}){s.preventDefault(),e.dragMove({x:s.clientX,y:s.clientY})}function i(s={}){s.preventDefault(),t.releasePointerCapture(s.pointerId),t.removeEventListener("pointermove",o),t.removeEventListener("pointerup",i),t.removeEventListener("pointercancel",i),t.removeEventListener("pointerout",i),e.dragEnd()}},e._handler_onMouseDown=(n={})=>{const r={x:n.clientX,y:n.clientY};if(!e.isInteractive||!e.wheelHitTest(r))return;e.dragStart(r),document.addEventListener("mousemove",o),document.addEventListener("mouseup",i);function o(s={}){s.preventDefault(),e.dragMove({x:s.clientX,y:s.clientY})}function i(s={}){s.preventDefault(),document.removeEventListener("mousemove",o),document.removeEventListener("mouseup",i),e.dragEnd()}},e._handler_onTouchStart=(n={})=>{const r={x:n.targetTouches[0].clientX,y:n.targetTouches[0].clientY};if(!e.isInteractive||!e.wheelHitTest(r))return;n.preventDefault(),e.dragStart(r),t.addEventListener("touchmove",o),t.addEventListener("touchend",i),t.addEventListener("touchcancel",i);function o(s={}){s.preventDefault(),e.dragMove({x:s.targetTouches[0].clientX,y:s.targetTouches[0].clientY})}function i(s={}){s.preventDefault(),t.removeEventListener("touchmove",o),t.removeEventListener("touchend",i),t.removeEventListener("touchcancel",i),e.dragEnd()}},"PointerEvent"in window?(t.addEventListener("pointerdown",e._handler_onPointerDown),t.addEventListener("pointermove",e._handler_onPointerMoveRefreshCursor)):(t.addEventListener("touchstart",e._handler_onTouchStart),t.addEventListener("mousedown",e._handler_onMouseDown),t.addEventListener("mousemove",e._handler_onMouseMoveRefreshCursor))}class Item{constructor(t,n={}){if(!isObject(t))throw new Error("wheel must be an instance of Wheel");if(!isObject(n)&&n!==null)throw new Error("props must be an Object or null");this._wheel=t;for(const r of Object.keys(Defaults.item))this["_"+r]=Defaults.item[r];n?this.init(n):this.init(Defaults.item)}init(t={}){this.backgroundColor=t.backgroundColor,this.image=t.image,this.imageOpacity=t.imageOpacity,this.imageRadius=t.imageRadius,this.imageRotation=t.imageRotation,this.imageScale=t.imageScale,this.label=t.label,this.labelColor=t.labelColor,this.value=t.value,this.weight=t.weight}get backgroundColor(){return this._backgroundColor}set backgroundColor(t){typeof t=="string"?this._backgroundColor=t:this._backgroundColor=Defaults.item.backgroundColor,this._wheel.refresh()}get image(){return this._image}set image(t){t instanceof HTMLImageElement?this._image=t:this._image=Defaults.item.image,this._wheel.refresh()}get imageOpacity(){return this._imageOpacity}set imageOpacity(t){typeof t=="number"?this._imageOpacity=t:this._imageOpacity=Defaults.item.imageOpacity,this._wheel.refresh()}get imageRadius(){return this._imageRadius}set imageRadius(t){typeof t=="number"?this._imageRadius=t:this._imageRadius=Defaults.item.imageRadius,this._wheel.refresh()}get imageRotation(){return this._imageRotation}set imageRotation(t){typeof t=="number"?this._imageRotation=t:this._imageRotation=Defaults.item.imageRotation,this._wheel.refresh()}get imageScale(){return this._imageScale}set imageScale(t){typeof t=="number"?this._imageScale=t:this._imageScale=Defaults.item.imageScale,this._wheel.refresh()}get label(){return this._label}set label(t){typeof t=="string"?this._label=t:this._label=Defaults.item.label,this._wheel.refresh()}get labelColor(){return this._labelColor}set labelColor(t){typeof t=="string"?this._labelColor=t:this._labelColor=Defaults.item.labelColor,this._wheel.refresh()}get value(){return this._value}set value(t){t!==void 0?this._value=t:this._value=Defaults.item.value}get weight(){return this._weight}set weight(t){typeof t=="number"?this._weight=t:this._weight=Defaults.item.weight}getIndex(){const t=this._wheel.items.findIndex(n=>n===this);if(t===-1)throw new Error("Item not found in parent Wheel");return t}getCenterAngle(){const t=this._wheel.getItemAngles()[this.getIndex()];return t.start+(t.end-t.start)/2}getStartAngle(){return this._wheel.getItemAngles()[this.getIndex()].start}getEndAngle(){return this._wheel.getItemAngles()[this.getIndex()].end}getRandomAngle(){return getRandomFloat(this.getStartAngle(),this.getEndAngle())}}class Wheel{constructor(t,n={}){if(!(t instanceof Element))throw new Error("container must be an instance of Element");if(!isObject(n)&&n!==null)throw new Error("props must be an Object or null");this._frameRequestId=null,this._rotationSpeed=0,this._rotationDirection=1,this._spinToTimeEnd=null,this._lastSpinFrameTime=null,this._isCursorOverWheel=!1,this.add(t);for(const r of Object.keys(Defaults.wheel))this["_"+r]=Defaults.wheel[r];n?this.init(n):this.init(Defaults.wheel)}init(t={}){this._isInitialising=!0,this.borderColor=t.borderColor,this.borderWidth=t.borderWidth,this.debug=t.debug,this.image=t.image,this.isInteractive=t.isInteractive,this.itemBackgroundColors=t.itemBackgroundColors,this.itemLabelAlign=t.itemLabelAlign,this.itemLabelBaselineOffset=t.itemLabelBaselineOffset,this.itemLabelColors=t.itemLabelColors,this.itemLabelFont=t.itemLabelFont,this.itemLabelFontSizeMax=t.itemLabelFontSizeMax,this.itemLabelRadius=t.itemLabelRadius,this.itemLabelRadiusMax=t.itemLabelRadiusMax,this.itemLabelRotation=t.itemLabelRotation,this.itemLabelStrokeColor=t.itemLabelStrokeColor,this.itemLabelStrokeWidth=t.itemLabelStrokeWidth,this.items=t.items,this.lineColor=t.lineColor,this.lineWidth=t.lineWidth,this.pixelRatio=t.pixelRatio,this.rotationSpeedMax=t.rotationSpeedMax,this.radius=t.radius,this.rotation=t.rotation,this.rotationResistance=t.rotationResistance,this.offset=t.offset,this.onCurrentIndexChange=t.onCurrentIndexChange,this.onRest=t.onRest,this.onSpin=t.onSpin,this.overlayImage=t.overlayImage,this.pointerAngle=t.pointerAngle}add(t){this._canvasContainer=t,this.canvas=document.createElement("canvas"),this.canvas.style.display="block",this._context=this.canvas.getContext("2d"),this._canvasContainer.append(this.canvas),register(this),this._isInitialising===!1&&this.resize()}remove(){this.canvas!==null&&(this._frameRequestId!==null&&window.cancelAnimationFrame(this._frameRequestId),unregister(this),this._canvasContainer.removeChild(this.canvas),this._canvasContainer=null,this.canvas=null,this._context=null)}resize(){if(this.canvas===null)return;this.canvas.style.width=this._canvasContainer.clientWidth+"px",this.canvas.style.height=this._canvasContainer.clientHeight+"px";const[t,n]=[this._canvasContainer.clientWidth*this.getActualPixelRatio(),this._canvasContainer.clientHeight*this.getActualPixelRatio()];this.canvas.width=t,this.canvas.height=n;const r=Math.min(t,n),o={w:r-r*this._offset.x,h:r-r*this._offset.y},i=Math.min(t/o.w,n/o.h);this._size=Math.max(o.w*i,o.h*i),this._center={x:t/2+t*this._offset.x,y:n/2+n*this._offset.y},this._actualRadius=this._size/2*this.radius,this._itemLabelFontSize=this.itemLabelFontSizeMax*(this._size/baseCanvasSize),this._labelMaxWidth=this._actualRadius*(this.itemLabelRadius-this.itemLabelRadiusMax),this.itemLabelAlign==="center"&&(this._labelMaxWidth*=2);for(const s of this._items)this._itemLabelFontSize=Math.min(this._itemLabelFontSize,getFontSizeToFit(s.label,this.itemLabelFont,this._labelMaxWidth,this._context));this._itemLabelFontSize=window.pcWheelItemLabelFontSize,this.refresh()}draw(t=0){if(this._frameRequestId=null,this._context===null||this.canvas===null)return;const n=this._context;n.clearRect(0,0,this.canvas.width,this.canvas.height),this.animateRotation(t);const r=this.getItemAngles(this._rotation),o=this.getScaledNumber(this._borderWidth);n.textBaseline="middle",n.textAlign=this.itemLabelAlign,n.font=this._itemLabelFontSize+"px "+this.itemLabelFont;for(const[i,s]of r.entries()){const a=this._items[i],c=new Path2D;c.moveTo(this._center.x,this._center.y),c.arc(this._center.x,this._center.y,this._actualRadius-o/2,degRad(s.start+arcAdjust),degRad(s.end+arcAdjust)),a.path=c}this.drawItemBackgrounds(n,r),this.drawItemImages(n,r),this.drawItemLines(n,r),this.drawItemLabels(n,r),this.drawBorder(n),this.drawImage(n,this._image,!1),this.drawImage(n,this._overlayImage,!0),this.drawDebugPointerLine(n),this._isInitialising=!1}drawItemBackgrounds(t,n=[]){for(const[r,o]of n.entries()){const i=this._items[r];t.fillStyle=i.backgroundColor??this._itemBackgroundColors[r%this._itemBackgroundColors.length],t.fill(i.path)}}drawItemImages(t,n=[]){for(const[r,o]of n.entries()){const i=this._items[r];if(i.image===null)continue;t.save(),t.clip(i.path);const s=o.start+(o.end-o.start)/2;t.translate(this._center.x+Math.cos(degRad(s+arcAdjust))*(this._actualRadius*i.imageRadius),this._center.y+Math.sin(degRad(s+arcAdjust))*(this._actualRadius*i.imageRadius)),t.rotate(degRad(s+i.imageRotation)),t.globalAlpha=i.imageOpacity;const a=this._size/500*i.image.width*i.imageScale,c=this._size/500*i.image.height*i.imageScale,l=-a/2,d=-c/2;t.drawImage(i.image,l,d,a,c),t.restore()}}drawImage(t,n,r=!1){if(n===null)return;t.translate(this._center.x,this._center.y),r||t.rotate(degRad(this._rotation));const o=r?this._size:this._size*this.radius,i=-(o/2);t.drawImage(n,i,i,o,o),t.resetTransform()}drawDebugPointerLine(t){this.debug&&(t.translate(this._center.x,this._center.y),t.rotate(degRad(this._pointerAngle+arcAdjust)),t.beginPath(),t.moveTo(0,0),t.lineTo(this._actualRadius*2,0),t.strokeStyle=Debugging.pointerLineColor,t.lineWidth=this.getScaledNumber(2),t.stroke(),t.resetTransform())}drawBorder(t){if(this._borderWidth<=0)return;const n=this.getScaledNumber(this._borderWidth),r=this._borderColor||"transparent";if(t.beginPath(),t.strokeStyle=r,t.lineWidth=n,t.arc(this._center.x,this._center.y,this._actualRadius-n/2,0,2*Math.PI),t.stroke(),this.debug){const o=this.getScaledNumber(1);t.beginPath(),t.strokeStyle=t.strokeStyle=Debugging.labelRadiusColor,t.lineWidth=o,t.arc(this._center.x,this._center.y,this._actualRadius*this.itemLabelRadius,0,2*Math.PI),t.stroke(),t.beginPath(),t.strokeStyle=t.strokeStyle=Debugging.labelRadiusColor,t.lineWidth=o,t.arc(this._center.x,this._center.y,this._actualRadius*this.itemLabelRadiusMax,0,2*Math.PI),t.stroke()}}drawItemLines(t,n=[]){if(this._lineWidth<=0)return;const r=this.getScaledNumber(this._lineWidth),o=this.getScaledNumber(this._borderWidth);t.translate(this._center.x,this._center.y);for(const i of n)t.rotate(degRad(i.start+arcAdjust)),t.beginPath(),t.moveTo(0,0),t.lineTo(this._actualRadius-o,0),t.strokeStyle=this.lineColor,t.lineWidth=r,t.stroke(),t.rotate(-degRad(i.start+arcAdjust));t.resetTransform()}drawItemLabels(t,n=[]){const r=this._itemLabelFontSize*-this.itemLabelBaselineOffset,o=this.getScaledNumber(1),i=this.getScaledNumber(this._itemLabelStrokeWidth*2);for(const[s,a]of n.entries()){const c=this._items[s],l=c.labelColor||this._itemLabelColors[s%this._itemLabelColors.length]||"transparent";if(c.label.trim()===""||l==="transparent")continue;t.save(),t.clip(c.path);const d=a.start+(a.end-a.start)/2;if(t.translate(this._center.x+Math.cos(degRad(d+arcAdjust))*(this._actualRadius*this.itemLabelRadius),this._center.y+Math.sin(degRad(d+arcAdjust))*(this._actualRadius*this.itemLabelRadius)),t.rotate(degRad(d+arcAdjust)),t.rotate(degRad(this.itemLabelRotation)),this.debug){t.save();let g=0;this.itemLabelAlign==="left"?g=this._labelMaxWidth:this.itemLabelAlign==="center"&&(g=this._labelMaxWidth/2),t.beginPath(),t.moveTo(g,0),t.lineTo(-this._labelMaxWidth+g,0),t.strokeStyle=Debugging.labelBoundingBoxColor,t.lineWidth=o,t.stroke(),t.strokeRect(g,-this._itemLabelFontSize/2,-this._labelMaxWidth,this._itemLabelFontSize),t.restore()}if(this._itemLabelStrokeWidth>0&&(t.lineWidth=i,t.strokeStyle=this._itemLabelStrokeColor,t.lineJoin="round",t.strokeText(c.label,0,r)),t.fillStyle=l,t.fillText(c.label,0,r),this.debug){const g=this.getScaledNumber(2);t.beginPath(),t.arc(0,0,g,0,2*Math.PI),t.fillStyle=Debugging.labelRadiusColor,t.fill()}t.restore()}}drawDebugDragPoints(t){var i;if(!this.debug||!((i=this._dragEvents)!=null&&i.length))return;const n=[...this._dragEvents].reverse(),r=this.getScaledNumber(.5),o=this.getScaledNumber(4);for(const[s,a]of n.entries()){const c=s/this._dragEvents.length*100;t.beginPath(),t.arc(a.x,a.y,o,0,2*Math.PI),t.fillStyle=`hsl(${Debugging.dragPointHue},100%,${c}%)`,t.strokeStyle="#000",t.lineWidth=r,t.fill(),t.stroke()}}animateRotation(t=0){if(this._spinToTimeEnd!==null){if(t>=this._spinToTimeEnd){this.rotation=this._spinToEndRotation,this._spinToTimeEnd=null,this.raiseEvent_onRest();return}const n=this._spinToTimeEnd-this._spinToTimeStart;let r=(t-this._spinToTimeStart)/n;r=r<0?0:r;const o=this._spinToEndRotation-this._spinToStartRotation;this.rotation=this._spinToStartRotation+o*this._spinToEasingFunction(r),this.refresh();return}if(this._lastSpinFrameTime!==null){const n=t-this._lastSpinFrameTime;n>0&&(this.rotation+=n/1e3*this._rotationSpeed%360,this._rotationSpeed=this.getRotationSpeedPlusDrag(n),this._rotationSpeed===0?(this.raiseEvent_onRest(),this._lastSpinFrameTime=null):this._lastSpinFrameTime=t),this.refresh();return}}getRotationSpeedPlusDrag(t=0){const n=this._rotationSpeed+this.rotationResistance*(t/1e3)*this._rotationDirection;return this._rotationDirection===1&&n<0||this._rotationDirection===-1&&n>=0?0:n}spin(t=0){if(!isNumber(t))throw new Error("rotationSpeed must be a number");this._dragEvents=[],this.beginSpin(t,"spin")}spinTo(t=0,n=0,r=null){if(!isNumber(t))throw new Error("Error: rotation must be a number");if(!isNumber(n))throw new Error("Error: duration must be a number");this.stop(),this._dragEvents=[],this.animate(t,n,r),this.raiseEvent_onSpin({method:"spinto",targetRotation:t,duration:n})}spinToItem(t=0,n=0,r=!0,o=1,i=1,s=null){this.stop(),this._dragEvents=[];const a=r?this.items[t].getCenterAngle():this.items[t].getRandomAngle();let c=calcWheelRotationForTargetAngle(this.rotation,a-this._pointerAngle,i);c+=o*360*i,this.animate(c,n,s),this.raiseEvent_onSpin({method:"spintoitem",targetItemIndex:t,targetRotation:c,duration:n})}animate(t,n,r){this._spinToStartRotation=this.rotation,this._spinToEndRotation=t,this._spinToTimeStart=performance.now(),this._spinToTimeEnd=this._spinToTimeStart+n,this._spinToEasingFunction=r||easeSinOut,this.refresh()}stop(){this._spinToTimeEnd=null,this._rotationSpeed=0,this._lastSpinFrameTime=null}getScaledNumber(t){return t/baseCanvasSize*this._size}getActualPixelRatio(){return this._pixelRatio!==0?this._pixelRatio:window.devicePixelRatio}wheelHitTest(t={x:0,y:0}){if(this.canvas===null)return!1;const n=translateXYToElement(t,this.canvas,this.getActualPixelRatio());return isPointInCircle(n,this._center.x,this._center.y,this._actualRadius)}refreshCursor(){if(this.canvas!==null){if(this.isInteractive){if(this.isDragging){this.canvas.style.cursor="grabbing";return}if(this._isCursorOverWheel){this.canvas.style.cursor="grab";return}}this.canvas.style.cursor=""}}getAngleFromCenter(t={x:0,y:0}){return(getAngle(this._center.x,this._center.y,t.x,t.y)+90)%360}getCurrentIndex(){return this._currentIndex}refreshCurrentIndex(t=[]){this._items.length===0&&(this._currentIndex=-1);for(const[n,r]of t.entries())if(isAngleBetween(this._pointerAngle,r.start%360,r.end%360)){if(this._currentIndex===n)break;this._currentIndex=n,this._isInitialising||this.raiseEvent_onCurrentIndexChange();break}}getItemAngles(t=0){let n=0;for(const a of this.items)n+=a.weight;const r=360/n;let o,i=t;const s=[];for(const a of this._items)o=a.weight*r,s.push({start:i,end:i+o}),i+=o;return this._items.length>1&&(s[s.length-1].end=s[0].start+360),s}refresh(){this._frameRequestId===null&&(this._frameRequestId=window.requestAnimationFrame(t=>this.draw(t)))}limitSpeed(t=0,n=0){const r=Math.min(t,n);return Math.max(r,-n)}beginSpin(t=0,n=""){this.stop(),this._rotationSpeed=this.limitSpeed(t,this._rotationSpeedMax),this._lastSpinFrameTime=performance.now(),this._rotationDirection=this._rotationSpeed>=0?1:-1,this._rotationSpeed!==0&&this.raiseEvent_onSpin({method:n,rotationSpeed:this._rotationSpeed,rotationResistance:this._rotationResistance}),this.refresh()}refreshAriaLabel(){if(this.canvas===null)return;this.canvas.setAttribute("role","img");const t=this.items.length>=2?` The wheel has ${this.items.length} slices.`:"";this.canvas.setAttribute("aria-label","An image of a spinning prize wheel."+t)}get borderColor(){return this._borderColor}set borderColor(t){this._borderColor=setProp({val:t,isValid:typeof t=="string",errorMessage:"Wheel.borderColor must be a string",defaultValue:Defaults.wheel.borderColor}),this.refresh()}get borderWidth(){return this._borderWidth}set borderWidth(t){this._borderWidth=setProp({val:t,isValid:isNumber(t),errorMessage:"Wheel.borderWidth must be a number",defaultValue:Defaults.wheel.borderWidth}),this.refresh()}get debug(){return this._debug}set debug(t){this._debug=setProp({val:t,isValid:typeof t=="boolean",errorMessage:"Wheel.debug must be a boolean",defaultValue:Defaults.wheel.debug}),this.refresh()}get image(){return this._image}set image(t){this._image=setProp({val:t,isValid:t instanceof HTMLImageElement||t===null,errorMessage:"Wheel.image must be a HTMLImageElement or null",defaultValue:Defaults.wheel.image}),this.refresh()}get isInteractive(){return this._isInteractive}set isInteractive(t){this._isInteractive=setProp({val:t,isValid:typeof t=="boolean",errorMessage:"Wheel.isInteractive must be a boolean",defaultValue:Defaults.wheel.isInteractive}),this.refreshCursor()}get itemBackgroundColors(){return this._itemBackgroundColors}set itemBackgroundColors(t){this._itemBackgroundColors=setProp({val:t,isValid:Array.isArray(t),errorMessage:"Wheel.itemBackgroundColors must be an array",defaultValue:Defaults.wheel.itemBackgroundColors}),this.refresh()}get itemLabelAlign(){return this._itemLabelAlign}set itemLabelAlign(t){this._itemLabelAlign=setProp({val:t,isValid:typeof t=="string"&&(t===AlignText.left||t===AlignText.right||t===AlignText.center),errorMessage:"Wheel.itemLabelAlign must be one of Constants.AlignText",defaultValue:Defaults.wheel.itemLabelAlign}),this.resize()}get itemLabelBaselineOffset(){return this._itemLabelBaselineOffset}set itemLabelBaselineOffset(t){this._itemLabelBaselineOffset=setProp({val:t,isValid:isNumber(t),errorMessage:"Wheel.itemLabelBaselineOffset must be a number",defaultValue:Defaults.wheel.itemLabelBaselineOffset}),this.resize()}get itemLabelColors(){return this._itemLabelColors}set itemLabelColors(t){this._itemLabelColors=setProp({val:t,isValid:Array.isArray(t),errorMessage:"Wheel.itemLabelColors must be an array",defaultValue:Defaults.wheel.itemLabelColors}),this.refresh()}get itemLabelFont(){return this._itemLabelFont}set itemLabelFont(t){this._itemLabelFont=setProp({val:t,isValid:typeof t=="string",errorMessage:"Wheel.itemLabelFont must be a string",defaultValue:Defaults.wheel.itemLabelFont}),this.resize()}get itemLabelFontSizeMax(){return this._itemLabelFontSizeMax}set itemLabelFontSizeMax(t){this._itemLabelFontSizeMax=setProp({val:t,isValid:isNumber(t),errorMessage:"Wheel.itemLabelFontSizeMax must be a number",defaultValue:Defaults.wheel.itemLabelFontSizeMax}),this.resize()}get itemLabelRadius(){return this._itemLabelRadius}set itemLabelRadius(t){this._itemLabelRadius=setProp({val:t,isValid:isNumber(t),errorMessage:"Wheel.itemLabelRadius must be a number",defaultValue:Defaults.wheel.itemLabelRadius}),this.resize()}get itemLabelRadiusMax(){return this._itemLabelRadiusMax}set itemLabelRadiusMax(t){this._itemLabelRadiusMax=setProp({val:t,isValid:isNumber(t),errorMessage:"Wheel.itemLabelRadiusMax must be a number",defaultValue:Defaults.wheel.itemLabelRadiusMax}),this.resize()}get itemLabelRotation(){return this._itemLabelRotation}set itemLabelRotation(t){this._itemLabelRotation=setProp({val:t,isValid:isNumber(t),errorMessage:"Wheel.itemLabelRotation must be a number",defaultValue:Defaults.wheel.itemLabelRotation}),this.refresh()}get itemLabelStrokeColor(){return this._itemLabelStrokeColor}set itemLabelStrokeColor(t){this._itemLabelStrokeColor=setProp({val:t,isValid:typeof t=="string",errorMessage:"Wheel.itemLabelStrokeColor must be a string",defaultValue:Defaults.wheel.itemLabelStrokeColor}),this.refresh()}get itemLabelStrokeWidth(){return this._itemLabelStrokeWidth}set itemLabelStrokeWidth(t){this._itemLabelStrokeWidth=setProp({val:t,isValid:isNumber(t),errorMessage:"Wheel.itemLabelStrokeWidth must be a number",defaultValue:Defaults.wheel.itemLabelStrokeWidth}),this.refresh()}get items(){return this._items}set items(t){this._items=setProp({val:t,isValid:Array.isArray(t),errorMessage:"Wheel.items must be an array of Items",defaultValue:Defaults.wheel.items,action:()=>{const n=[];for(const r of t)n.push(new Item(this,r));return n}}),this.refreshAriaLabel(),this.refreshCurrentIndex(this.getItemAngles(this._rotation)),this.resize()}get lineColor(){return this._lineColor}set lineColor(t){this._lineColor=setProp({val:t,isValid:typeof t=="string",errorMessage:"Wheel.lineColor must be a string",defaultValue:Defaults.wheel.lineColor}),this.refresh()}get lineWidth(){return this._lineWidth}set lineWidth(t){this._lineWidth=setProp({val:t,isValid:isNumber(t),errorMessage:"Wheel.lineWidth must be a number",defaultValue:Defaults.wheel.lineWidth}),this.refresh()}get offset(){return this._offset}set offset(t){this._offset=setProp({val:t,isValid:isObject(t),errorMessage:"Wheel.offset must be an object",defaultValue:Defaults.wheel.offset}),this.resize()}get onCurrentIndexChange(){return this._onCurrentIndexChange}set onCurrentIndexChange(t){this._onCurrentIndexChange=setProp({val:t,isValid:typeof t=="function"||t===null,errorMessage:"Wheel.onCurrentIndexChange must be a function or null",defaultValue:Defaults.wheel.onCurrentIndexChange})}get onRest(){return this._onRest}set onRest(t){this._onRest=setProp({val:t,isValid:typeof t=="function"||t===null,errorMessage:"Wheel.onRest must be a function or null",defaultValue:Defaults.wheel.onRest})}get onSpin(){return this._onSpin}set onSpin(t){this._onSpin=setProp({val:t,isValid:typeof t=="function"||t===null,errorMessage:"Wheel.onSpin must be a function or null",defaultValue:Defaults.wheel.onSpin})}get overlayImage(){return this._overlayImage}set overlayImage(t){this._overlayImage=setProp({val:t,isValid:t instanceof HTMLImageElement||t===null,errorMessage:"Wheel.overlayImage must be a HTMLImageElement or null",defaultValue:Defaults.wheel.overlayImage}),this.refresh()}get pixelRatio(){return this._pixelRatio}set pixelRatio(t){this._pixelRatio=setProp({val:t,isValid:isNumber(t),errorMessage:"Wheel.pixelRatio must be a number",defaultValue:Defaults.wheel.pixelRatio}),this._dragEvents=[],this.resize()}get pointerAngle(){return this._pointerAngle}set pointerAngle(t){this._pointerAngle=setProp({val:t,isValid:isNumber(t)&&t>=0,errorMessage:"Wheel.pointerAngle must be a number between 0 and 360",defaultValue:Defaults.wheel.pointerAngle,action:()=>t%360}),this.debug&&this.refresh()}get radius(){return this._radius}set radius(t){this._radius=setProp({val:t,isValid:isNumber(t),errorMessage:"Wheel.radius must be a number",defaultValue:Defaults.wheel.radius}),this.resize()}get rotation(){return this._rotation}set rotation(t){this._rotation=setProp({val:t,isValid:isNumber(t),errorMessage:"Wheel.rotation must be a number",defaultValue:Defaults.wheel.rotation}),this.refreshCurrentIndex(this.getItemAngles(this._rotation)),this.refresh()}get rotationResistance(){return this._rotationResistance}set rotationResistance(t){this._rotationResistance=setProp({val:t,isValid:isNumber(t),errorMessage:"Wheel.rotationResistance must be a number",defaultValue:Defaults.wheel.rotationResistance})}get rotationSpeed(){return this._rotationSpeed}get rotationSpeedMax(){return this._rotationSpeedMax}set rotationSpeedMax(t){this._rotationSpeedMax=setProp({val:t,isValid:isNumber(t)&&t>=0,errorMessage:"Wheel.rotationSpeedMax must be a number >= 0",defaultValue:Defaults.wheel.rotationSpeedMax})}dragStart(t={x:0,y:0}){if(this.canvas===null)return;const n=translateXYToElement(t,this.canvas,this.getActualPixelRatio());this.isDragging=!0,this.stop(),this._dragEvents=[{distance:0,x:n.x,y:n.y,now:performance.now()}],this.refreshCursor()}dragMove(t={x:0,y:0}){if(this.canvas===null)return;const n=translateXYToElement(t,this.canvas,this.getActualPixelRatio()),r=this.getAngleFromCenter(n),o=this._dragEvents[0],i=this.getAngleFromCenter(o),s=diffAngle(i,r);this._dragEvents.unshift({distance:s,x:n.x,y:n.y,now:performance.now()}),this.debug&&this._dragEvents.length>=40&&this._dragEvents.pop(),this.rotation+=s}dragEnd(){this.isDragging=!1;let t=0;const n=performance.now();for(const[r,o]of this._dragEvents.entries()){if(!this.isDragEventTooOld(n,o)){t+=o.distance;continue}this._dragEvents.length=r,this.debug&&this.refresh();break}this.refreshCursor(),t!==0&&this.beginSpin(t*(1e3/dragCapturePeriod),"interact")}isDragEventTooOld(t=0,n={}){return t-n.now>dragCapturePeriod}raiseEvent_onCurrentIndexChange(t={}){var n;(n=this.onCurrentIndexChange)==null||n.call(this,{type:"currentIndexChange",currentIndex:this._currentIndex,...t})}raiseEvent_onRest(t={}){var n;(n=this.onRest)==null||n.call(this,{type:"rest",currentIndex:this._currentIndex,rotation:this._rotation,...t})}raiseEvent_onSpin(t={}){var n;(n=this.onSpin)==null||n.call(this,{type:"spin",...t})}}const _hoisted_1$4={key:0,width:"48",height:"27",viewBox:"0 0 48 27",fill:"none",class:"shadow-xl",xmlns:"http://www.w3.org/2000/svg"},_hoisted_2$4=createStaticVNode('',2),_hoisted_4$3=[_hoisted_2$4],_hoisted_5$2={key:1,width:"48",height:"27",viewBox:"0 0 48 27",fill:"none",xmlns:"http://www.w3.org/2000/svg",class:"shadow-xl"},_hoisted_6$1=createStaticVNode('',2),_hoisted_8$1=[_hoisted_6$1],_sfc_main$5=defineComponent({__name:"SpinArrow",props:{direction:{}},setup(e){const t=e;return(n,r)=>t.direction=="left"?(openBlock(),createElementBlock("svg",_hoisted_1$4,_hoisted_4$3)):(openBlock(),createElementBlock("svg",_hoisted_5$2,_hoisted_8$1))}}),_hoisted_1$3={class:"wheel-container fade-in"},_hoisted_2$3={class:"wheel-icon-container fade-in"},_sfc_main$4=defineComponent({__name:"SpinWheel",props:{campaign:{},font:{},spin:{type:Boolean}},emits:["finished:spin"],setup(e,{emit:t}){const n=e;useCssVars(m=>({"5b100637":n.campaign.wheel_font_family}));const r=ref(null),o=ref(null),i=useMediaQuery("(max-width: 768px)"),s=computed(()=>{let m=null;return n.campaign.wheel_slices&&n.campaign.wheel_slices.length>0&&(m=n.campaign.wheel_slices.map(y=>({label:y.label}))),{name:"Takeaway",radius:.89,pointerAngle:i.value?130:(n.campaign.wheel_position_desktop==="left",90),itemLabelRadius:.85,itemLabelRadiusMax:.18,itemLabelAlign:n.campaign.wheel_position_desktop==="left"?"right":"left",itemLabelRotation:n.campaign.wheel_position_desktop==="left"?0:180,itemLabelColors:[n.campaign.wheel_primary_text_color??"#fff",n.campaign.wheel_secondary_text_color??"#44403E"],itemLabelBaselineOffset:-.06,itemLabelFont:n.campaign.wheel_font_enabled&&n.campaign.wheel_font_family?n.campaign.wheel_font_family:"Helvetica, sans-serif",itemBackgroundColors:[n.campaign.wheel_primary_bg_color??"#539CA0",n.campaign.wheel_secondary_bg_color??"#F4E8DE"],rotationSpeedMax:700,rotationResistance:-110,itemLabelFontSizeMax:Number(n.campaign.wheel_font_size)??100,lineWidth:0,isInteractive:!1,borderWidth:n.campaign.wheel_border_size??10,borderColor:n.campaign.wheel_border_color??"#cbd5e1",items:m,debug:!1}}),a=computed(()=>n.campaign.wheel_position_desktop==="right"?"row-reverse":"row"),c=()=>{var y;(y=o.value)==null||y.remove(),o.value=null;const m=document.querySelector(".wheel-wrapper canvas");m&&m.remove()},l=ref(0),d=m=>{window.clearTimeout(l.value),l.value=window.setTimeout(()=>{o.value=new Wheel(r.value,s.value),window.pcWheel=o.value},m)};function g(m){var w;const y=m.reduce((I,j)=>I+j.win_ratio,0);let C=Math.random()*y;for(let I=0;In.campaign,()=>{n.campaign.wheel_font_size&&(window.pcWheelItemLabelFontSize=n.campaign.wheel_font_size*window.devicePixelRatio,c(),d(0),window.setTimeout(()=>{c(),d(0)},1e3))}),watch(()=>n.spin,m=>{var y;if(m){const C=g(n.campaign.wheel_slices);(y=o.value)==null||y.spinToItem(C,3e3,!1,2),setTimeout(()=>{n.campaign.wheel_slices[C]&&t("finished:spin",n.campaign.wheel_slices[C])},3e3)}}),onMounted(()=>{var m;n.campaign.wheel_font_size&&(window.pcWheelItemLabelFontSize=((m=n.campaign)==null?void 0:m.wheel_font_size)*window.devicePixelRatio,d(250))}),(m,y)=>(openBlock(),createElementBlock("div",{class:normalizeClass(["wheel-parent",n.campaign.wheel_position_desktop??"left"]),style:normalizeStyle({flexDirection:a.value})},[(openBlock(!0),createElementBlock(Fragment,null,renderList(n.campaign.wheel_slices,C=>(openBlock(),createElementBlock("div",{class:"font-renderer",key:C.label},toDisplayString(C.label),1))),128)),createBaseVNode("div",_hoisted_1$3,[createBaseVNode("div",{class:normalizeClass(["wheel-wrapper",n.campaign.wheel_position_desktop]),ref_key:"wheelContainer",ref:r},[n.campaign.wheel_logo?(openBlock(),createElementBlock("div",{key:0,class:"img-logo fade-in",style:normalizeStyle({backgroundImage:`url(${n.campaign.wheel_logo})`})},null,4)):createCommentVNode("",!0)],2)]),createBaseVNode("div",_hoisted_2$3,[createVNode(_sfc_main$5,{direction:n.campaign.wheel_position_desktop??"left"},null,8,["direction"])])],6))}}),SpinWheel_vue_vue_type_style_index_0_scoped_31b88d5f_lang="",SpinWheel=_export_sfc(_sfc_main$4,[["__scopeId","data-v-31b88d5f"]]),_hoisted_1$2=["onClick"],_hoisted_2$2={class:"promo-section"},_hoisted_3$2={key:0,class:"promo-wrapper"},_hoisted_4$2={key:1,class:"remove-watermark"},_hoisted_5$1=["onClick"],_hoisted_6=["minimal","is-mobile"],_hoisted_7=["show-hero","show-wheel","show-wheel-right","layout-type"],_hoisted_8={key:0,class:"modal-hero-image"},_hoisted_9={key:1,class:"modal-wheel"},_hoisted_10={class:"modal-content"},_sfc_main$3=defineComponent({__name:"Pop",props:{campaign:{}},emits:["clicked:watermark"],setup(e,{emit:t}){const n=e;useCssVars(V=>({"4ccaa294":E.value,"4b20f108":A.value,"5c654530":D.value,"2814cc39":O.value,"4988fff6":j.value,"715ce3d7":J.value,"266478d2":M.value,"13ecbec6":q.value,b8b67726:B.value}));const{closeCampaign:r}=useMain(),o=useWindowApi(),i=useMainStore(),{createAction:s}=useApi(),{activePop:a,campaigns:c,editMode:l}=storeToRefs(i),d=ref(null),g=ref(!1),m=ref(!1),y=ref(!1),C=useMediaQuery("(max-width: 768px)"),w=computed(()=>i.showWatermark),I=computed(()=>{var V,ue,ve;return((V=n.campaign)==null?void 0:V.popup_hero_layout)==="top"||((ue=n.campaign)==null?void 0:ue.popup_hero_layout)==="right"||((ve=n.campaign)==null?void 0:ve.popup_hero_layout)==="left"}),j=computed(()=>{var V,ue,ve,ke;if(((V=n.campaign)==null?void 0:V.popup_hero_layout)==="right"||((ue=n.campaign)==null?void 0:ue.popup_hero_layout)==="left"){const N=((ve=n.campaign)==null?void 0:ve.popup_max_width)??0;return C.value?`${N+300}px`:`${N+400}px`}return(ke=n.campaign)!=null&&ke.popup_max_width?`${n.campaign.popup_max_width}px`:"1800px"}),J=computed(()=>{var V;return((V=n.campaign)==null?void 0:V.goal)==="wheel"?"700px":"200px"}),A=computed(()=>n.campaign.font_family&&n.campaign.custom_font_enabled?n.campaign.font_family:"inherit"),k=computed(()=>{var V,ue;return!((V=n.campaign)!=null&&V.widget_background_img)&&!I.value&&!((ue=n.campaign)!=null&&ue.widget_background_color)}),b=computed(()=>{var V;return(V=n.campaign)!=null&&V.overlay_opacity?n.campaign.overlay_opacity/100:.5}),E=computed(()=>{var V;return(V=n.campaign)!=null&&V.popup_hero_padding?`${n.campaign.popup_hero_padding}px`:"0px"}),D=computed(()=>{var V;return((V=n.campaign)==null?void 0:V.widget_background_color)||"#fff"}),O=computed(()=>{var V;return(V=n.campaign)!=null&&V.widget_border_enabled?`${n.campaign.widget_border_width}px solid ${n.campaign.widget_border_color}`:"none"}),M=computed(()=>{var V,ue;return(V=n.campaign)!=null&&V.widget_background_img?`url(${(ue=n.campaign)==null?void 0:ue.widget_background_img})`:"none"}),B=computed(()=>{var V,ue;return((V=n.campaign)==null?void 0:V.location)==="Bottom Left"||((ue=n.campaign)==null?void 0:ue.location)==="Top Left"?"-100%":"100%"}),Z=computed(()=>{var V,ue,ve;return((V=n.campaign)==null?void 0:V.location)==="Full Screen"||((ue=n.campaign)==null?void 0:ue.animation)==="Fade In"?"bounce":((ve=n.campaign)==null?void 0:ve.animation)==="Slide In"?"slide":"bounce-slide"}),q=computed(()=>{var V,ue,ve,ke,N;return C.value&&((V=n.campaign)!=null&&V.popup_hero_image_mobile_enabled)&&((ue=n.campaign)!=null&&ue.popup_hero_image_mobile)?`url(${(ve=n.campaign)==null?void 0:ve.popup_hero_image_mobile})`:(ke=n.campaign)!=null&&ke.popup_hero_image?`url(${(N=n.campaign)==null?void 0:N.popup_hero_image})`:"url(https://picsum.photos/1200/600)"}),pe=computed(()=>{var ue,ve;const V={backgroundColor:((ue=n.campaign)==null?void 0:ue.location)==="Full Screen"?`rgba(0, 0, 0, ${b.value})`:"none"};return((ve=n.campaign)==null?void 0:ve.location)!=="Full Screen"&&(n.campaign.location==="Bottom Left"&&(V.left=n.campaign.custom_offset_enabled?`${n.campaign.custom_offset_left}px`:"16px",V.bottom=n.campaign.custom_offset_enabled?`${n.campaign.custom_offset_bottom}px`:"16px"),n.campaign.location==="Bottom Right"&&(V.right=n.campaign.custom_offset_enabled?`${n.campaign.custom_offset_right}px`:"16px",V.bottom=n.campaign.custom_offset_enabled?`${n.campaign.custom_offset_bottom}px`:"16px"),n.campaign.location==="Top Left"&&(V.left=n.campaign.custom_offset_enabled?`${n.campaign.custom_offset_left}px`:"16px",V.top=n.campaign.custom_offset_enabled?`${n.campaign.custom_offset_top}px`:"16px"),n.campaign.location==="Top Right"&&(V.right=n.campaign.custom_offset_enabled?`${n.campaign.custom_offset_right}px`:"16px",V.top=n.campaign.custom_offset_enabled?`${n.campaign.custom_offset_top}px`:"16px")),V}),Se=computed(()=>{var V,ue;return!!((ue=(V=n.campaign)==null?void 0:V.content_blocks)!=null&&ue.find(ve=>ve.block_type==="wheel"))}),Ee=()=>{if(!(l.value&&!n.campaign.reopen_btn_enabled)){if(i.previewMode){c.value=c.value.filter(V=>V.id!==n.campaign.id),a.value=null;return}r(n.campaign),o.trigger("close",{campaign:n.campaign}),a.value=null,window.triggerPC()}},ne=V=>{var ue,ve,ke;if(((ue=V.data)==null?void 0:ue.type)==="pc/editor-event"){if(!V.data.showSubmission)d.value=null;else if(Se.value){const N=(ve=n.campaign.wheel_slices)==null?void 0:ve.findIndex(te=>te.win_ratio!=0);window.pcWheel.spinToItem(N,1e3,!1,1),d.value=n.campaign.wheel_slices[N]||null}}((ke=V.data)==null?void 0:ke.type)==="pc/slice-index-change"&&(window.pcWheel.spinToItem(V.data.index,1e3,!1,1),d.value=n.campaign.wheel_slices[V.data.index]||null)},we=V=>{d.value=V},_e=async()=>{l.value||y.value||(y.value=!0,s({campaignId:n.campaign.id??1,action:"click"}),o.trigger("click",{campaign:n.campaign}),y.value=!1)};return onMounted(()=>{var V;window.addEventListener("message",ne),!l.value&&(s({campaignId:((V=n.campaign)==null?void 0:V.id)??1,action:"view"}),o.trigger("show",{campaign:n.campaign}))}),(V,ue)=>n.campaign&&!m.value?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass(["modal-backdrop",{fullscreen:n.campaign.location==="Full Screen"}]),style:normalizeStyle(pe.value),onClick:Ee},[createBaseVNode("div",{class:normalizeClass(["modal-card",{wheel:Se.value}]),onClick:withModifiers(_e,["stop"]),onTouchstart:_e},[createBaseVNode("div",_hoisted_2$2,[unref(l)&&w.value?(openBlock(),createElementBlock("div",_hoisted_3$2,[createVNode(PCLogo,{class:"logo"})])):createCommentVNode("",!0),unref(l)&&w.value?(openBlock(),createElementBlock("div",_hoisted_4$2,[createVNode(RemoveWatermark,{"arrow-direction":"up",onClick:ue[0]||(ue[0]=ve=>t("clicked:watermark"))})])):createCommentVNode("",!0)]),createBaseVNode("div",{class:"modal-close-button",onClick:withModifiers(Ee,["stop"]),onTouchstart:Ee},[createBaseVNode("div",{class:"close-button clickable-effect",minimal:k.value,"is-mobile":unref(C)},[createVNode(unref(Icon$1),{class:"icon",icon:"uil-times"})],8,_hoisted_6)],40,_hoisted_5$1),createBaseVNode("div",{class:"modal-hero-container","show-hero":I.value&&!Se.value,"show-wheel":!!Se.value,"show-wheel-right":Se.value&&n.campaign.wheel_position_desktop==="right","layout-type":unref(C)&&n.campaign.popup_hero_layout?"top":n.campaign.popup_hero_layout},[I.value&&!Se.value?(openBlock(),createElementBlock("div",_hoisted_8)):createCommentVNode("",!0),Se.value?(openBlock(),createElementBlock("div",_hoisted_9,[createVNode(SpinWheel,{campaign:V.campaign,font:A.value,spin:g.value,"onFinished:spin":we},null,8,["campaign","font","spin"])])):createCommentVNode("",!0),createVNode(Transition,{name:Z.value,mode:"out-in",appear:""},{default:withCtx(()=>[createBaseVNode("div",_hoisted_10,[V.campaign?(openBlock(),createBlock(PopUp,{key:0,campaign:V.campaign,"winning-slice":d.value,onClose:Ee,onSpinWheel:ue[1]||(ue[1]=ve=>g.value=!0)},null,8,["campaign","winning-slice"])):createCommentVNode("",!0)])]),_:1},8,["name"])],8,_hoisted_7)],42,_hoisted_1$2)],6)):createCommentVNode("",!0)}}),Pop_vue_vue_type_style_index_0_scoped_6613473a_lang="",Pop=_export_sfc(_sfc_main$3,[["__scopeId","data-v-6613473a"]]);var slugify$1={exports:{}};(function(e,t){(function(n,r,o){e.exports=o(),e.exports.default=o()})("slugify",commonjsGlobal,function(){var n=JSON.parse(`{"$":"dollar","%":"percent","&":"and","<":"less",">":"greater","|":"or","¢":"cent","£":"pound","¤":"currency","¥":"yen","©":"(c)","ª":"a","®":"(r)","º":"o","À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","Æ":"AE","Ç":"C","È":"E","É":"E","Ê":"E","Ë":"E","Ì":"I","Í":"I","Î":"I","Ï":"I","Ð":"D","Ñ":"N","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","Ù":"U","Ú":"U","Û":"U","Ü":"U","Ý":"Y","Þ":"TH","ß":"ss","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","æ":"ae","ç":"c","è":"e","é":"e","ê":"e","ë":"e","ì":"i","í":"i","î":"i","ï":"i","ð":"d","ñ":"n","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","ù":"u","ú":"u","û":"u","ü":"u","ý":"y","þ":"th","ÿ":"y","Ā":"A","ā":"a","Ă":"A","ă":"a","Ą":"A","ą":"a","Ć":"C","ć":"c","Č":"C","č":"c","Ď":"D","ď":"d","Đ":"DJ","đ":"dj","Ē":"E","ē":"e","Ė":"E","ė":"e","Ę":"e","ę":"e","Ě":"E","ě":"e","Ğ":"G","ğ":"g","Ģ":"G","ģ":"g","Ĩ":"I","ĩ":"i","Ī":"i","ī":"i","Į":"I","į":"i","İ":"I","ı":"i","Ķ":"k","ķ":"k","Ļ":"L","ļ":"l","Ľ":"L","ľ":"l","Ł":"L","ł":"l","Ń":"N","ń":"n","Ņ":"N","ņ":"n","Ň":"N","ň":"n","Ō":"O","ō":"o","Ő":"O","ő":"o","Œ":"OE","œ":"oe","Ŕ":"R","ŕ":"r","Ř":"R","ř":"r","Ś":"S","ś":"s","Ş":"S","ş":"s","Š":"S","š":"s","Ţ":"T","ţ":"t","Ť":"T","ť":"t","Ũ":"U","ũ":"u","Ū":"u","ū":"u","Ů":"U","ů":"u","Ű":"U","ű":"u","Ų":"U","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","ź":"z","Ż":"Z","ż":"z","Ž":"Z","ž":"z","Ə":"E","ƒ":"f","Ơ":"O","ơ":"o","Ư":"U","ư":"u","Lj":"LJ","lj":"lj","Nj":"NJ","nj":"nj","Ș":"S","ș":"s","Ț":"T","ț":"t","ə":"e","˚":"o","Ά":"A","Έ":"E","Ή":"H","Ί":"I","Ό":"O","Ύ":"Y","Ώ":"W","ΐ":"i","Α":"A","Β":"B","Γ":"G","Δ":"D","Ε":"E","Ζ":"Z","Η":"H","Θ":"8","Ι":"I","Κ":"K","Λ":"L","Μ":"M","Ν":"N","Ξ":"3","Ο":"O","Π":"P","Ρ":"R","Σ":"S","Τ":"T","Υ":"Y","Φ":"F","Χ":"X","Ψ":"PS","Ω":"W","Ϊ":"I","Ϋ":"Y","ά":"a","έ":"e","ή":"h","ί":"i","ΰ":"y","α":"a","β":"b","γ":"g","δ":"d","ε":"e","ζ":"z","η":"h","θ":"8","ι":"i","κ":"k","λ":"l","μ":"m","ν":"n","ξ":"3","ο":"o","π":"p","ρ":"r","ς":"s","σ":"s","τ":"t","υ":"y","φ":"f","χ":"x","ψ":"ps","ω":"w","ϊ":"i","ϋ":"y","ό":"o","ύ":"y","ώ":"w","Ё":"Yo","Ђ":"DJ","Є":"Ye","І":"I","Ї":"Yi","Ј":"J","Љ":"LJ","Њ":"NJ","Ћ":"C","Џ":"DZ","А":"A","Б":"B","В":"V","Г":"G","Д":"D","Е":"E","Ж":"Zh","З":"Z","И":"I","Й":"J","К":"K","Л":"L","М":"M","Н":"N","О":"O","П":"P","Р":"R","С":"S","Т":"T","У":"U","Ф":"F","Х":"H","Ц":"C","Ч":"Ch","Ш":"Sh","Щ":"Sh","Ъ":"U","Ы":"Y","Ь":"","Э":"E","Ю":"Yu","Я":"Ya","а":"a","б":"b","в":"v","г":"g","д":"d","е":"e","ж":"zh","з":"z","и":"i","й":"j","к":"k","л":"l","м":"m","н":"n","о":"o","п":"p","р":"r","с":"s","т":"t","у":"u","ф":"f","х":"h","ц":"c","ч":"ch","ш":"sh","щ":"sh","ъ":"u","ы":"y","ь":"","э":"e","ю":"yu","я":"ya","ё":"yo","ђ":"dj","є":"ye","і":"i","ї":"yi","ј":"j","љ":"lj","њ":"nj","ћ":"c","ѝ":"u","џ":"dz","Ґ":"G","ґ":"g","Ғ":"GH","ғ":"gh","Қ":"KH","қ":"kh","Ң":"NG","ң":"ng","Ү":"UE","ү":"ue","Ұ":"U","ұ":"u","Һ":"H","һ":"h","Ә":"AE","ә":"ae","Ө":"OE","ө":"oe","Ա":"A","Բ":"B","Գ":"G","Դ":"D","Ե":"E","Զ":"Z","Է":"E'","Ը":"Y'","Թ":"T'","Ժ":"JH","Ի":"I","Լ":"L","Խ":"X","Ծ":"C'","Կ":"K","Հ":"H","Ձ":"D'","Ղ":"GH","Ճ":"TW","Մ":"M","Յ":"Y","Ն":"N","Շ":"SH","Չ":"CH","Պ":"P","Ջ":"J","Ռ":"R'","Ս":"S","Վ":"V","Տ":"T","Ր":"R","Ց":"C","Փ":"P'","Ք":"Q'","Օ":"O''","Ֆ":"F","և":"EV","ء":"a","آ":"aa","أ":"a","ؤ":"u","إ":"i","ئ":"e","ا":"a","ب":"b","ة":"h","ت":"t","ث":"th","ج":"j","ح":"h","خ":"kh","د":"d","ذ":"th","ر":"r","ز":"z","س":"s","ش":"sh","ص":"s","ض":"dh","ط":"t","ظ":"z","ع":"a","غ":"gh","ف":"f","ق":"q","ك":"k","ل":"l","م":"m","ن":"n","ه":"h","و":"w","ى":"a","ي":"y","ً":"an","ٌ":"on","ٍ":"en","َ":"a","ُ":"u","ِ":"e","ْ":"","٠":"0","١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","پ":"p","چ":"ch","ژ":"zh","ک":"k","گ":"g","ی":"y","۰":"0","۱":"1","۲":"2","۳":"3","۴":"4","۵":"5","۶":"6","۷":"7","۸":"8","۹":"9","฿":"baht","ა":"a","ბ":"b","გ":"g","დ":"d","ე":"e","ვ":"v","ზ":"z","თ":"t","ი":"i","კ":"k","ლ":"l","მ":"m","ნ":"n","ო":"o","პ":"p","ჟ":"zh","რ":"r","ს":"s","ტ":"t","უ":"u","ფ":"f","ქ":"k","ღ":"gh","ყ":"q","შ":"sh","ჩ":"ch","ც":"ts","ძ":"dz","წ":"ts","ჭ":"ch","ხ":"kh","ჯ":"j","ჰ":"h","Ṣ":"S","ṣ":"s","Ẁ":"W","ẁ":"w","Ẃ":"W","ẃ":"w","Ẅ":"W","ẅ":"w","ẞ":"SS","Ạ":"A","ạ":"a","Ả":"A","ả":"a","Ấ":"A","ấ":"a","Ầ":"A","ầ":"a","Ẩ":"A","ẩ":"a","Ẫ":"A","ẫ":"a","Ậ":"A","ậ":"a","Ắ":"A","ắ":"a","Ằ":"A","ằ":"a","Ẳ":"A","ẳ":"a","Ẵ":"A","ẵ":"a","Ặ":"A","ặ":"a","Ẹ":"E","ẹ":"e","Ẻ":"E","ẻ":"e","Ẽ":"E","ẽ":"e","Ế":"E","ế":"e","Ề":"E","ề":"e","Ể":"E","ể":"e","Ễ":"E","ễ":"e","Ệ":"E","ệ":"e","Ỉ":"I","ỉ":"i","Ị":"I","ị":"i","Ọ":"O","ọ":"o","Ỏ":"O","ỏ":"o","Ố":"O","ố":"o","Ồ":"O","ồ":"o","Ổ":"O","ổ":"o","Ỗ":"O","ỗ":"o","Ộ":"O","ộ":"o","Ớ":"O","ớ":"o","Ờ":"O","ờ":"o","Ở":"O","ở":"o","Ỡ":"O","ỡ":"o","Ợ":"O","ợ":"o","Ụ":"U","ụ":"u","Ủ":"U","ủ":"u","Ứ":"U","ứ":"u","Ừ":"U","ừ":"u","Ử":"U","ử":"u","Ữ":"U","ữ":"u","Ự":"U","ự":"u","Ỳ":"Y","ỳ":"y","Ỵ":"Y","ỵ":"y","Ỷ":"Y","ỷ":"y","Ỹ":"Y","ỹ":"y","–":"-","‘":"'","’":"'","“":"\\"","”":"\\"","„":"\\"","†":"+","•":"*","…":"...","₠":"ecu","₢":"cruzeiro","₣":"french franc","₤":"lira","₥":"mill","₦":"naira","₧":"peseta","₨":"rupee","₩":"won","₪":"new shequel","₫":"dong","€":"euro","₭":"kip","₮":"tugrik","₯":"drachma","₰":"penny","₱":"peso","₲":"guarani","₳":"austral","₴":"hryvnia","₵":"cedi","₸":"kazakhstani tenge","₹":"indian rupee","₺":"turkish lira","₽":"russian ruble","₿":"bitcoin","℠":"sm","™":"tm","∂":"d","∆":"delta","∑":"sum","∞":"infinity","♥":"love","元":"yuan","円":"yen","﷼":"rial","ﻵ":"laa","ﻷ":"laa","ﻹ":"lai","ﻻ":"la"}`),r=JSON.parse('{"bg":{"Й":"Y","Ц":"Ts","Щ":"Sht","Ъ":"A","Ь":"Y","й":"y","ц":"ts","щ":"sht","ъ":"a","ь":"y"},"de":{"Ä":"AE","ä":"ae","Ö":"OE","ö":"oe","Ü":"UE","ü":"ue","ß":"ss","%":"prozent","&":"und","|":"oder","∑":"summe","∞":"unendlich","♥":"liebe"},"es":{"%":"por ciento","&":"y","<":"menor que",">":"mayor que","|":"o","¢":"centavos","£":"libras","¤":"moneda","₣":"francos","∑":"suma","∞":"infinito","♥":"amor"},"fr":{"%":"pourcent","&":"et","<":"plus petit",">":"plus grand","|":"ou","¢":"centime","£":"livre","¤":"devise","₣":"franc","∑":"somme","∞":"infini","♥":"amour"},"pt":{"%":"porcento","&":"e","<":"menor",">":"maior","|":"ou","¢":"centavo","∑":"soma","£":"libra","∞":"infinito","♥":"amor"},"uk":{"И":"Y","и":"y","Й":"Y","й":"y","Ц":"Ts","ц":"ts","Х":"Kh","х":"kh","Щ":"Shch","щ":"shch","Г":"H","г":"h"},"vi":{"Đ":"D","đ":"d"},"da":{"Ø":"OE","ø":"oe","Å":"AA","å":"aa","%":"procent","&":"og","|":"eller","$":"dollar","<":"mindre end",">":"større end"},"nb":{"&":"og","Å":"AA","Æ":"AE","Ø":"OE","å":"aa","æ":"ae","ø":"oe"},"it":{"&":"e"},"nl":{"&":"en"},"sv":{"&":"och","Å":"AA","Ä":"AE","Ö":"OE","å":"aa","ä":"ae","ö":"oe"}}');function o(i,s){if(typeof i!="string")throw new Error("slugify: string argument expected");s=typeof s=="string"?{replacement:s}:s||{};var a=r[s.locale]||{},c=s.replacement===void 0?"-":s.replacement,l=s.trim===void 0?!0:s.trim,d=i.normalize().split("").reduce(function(g,m){var y=a[m];return y===void 0&&(y=n[m]),y===void 0&&(y=m),y===c&&(y=" "),g+y.replace(s.remove||/[^\w\s$*_+~.()'"!\-:@]+/g,"")},"");return s.strict&&(d=d.replace(/[^A-Za-z0-9\s]/g,"")),l&&(d=d.trim()),d=d.replace(/\s+/g,c),s.lower&&(d=d.toLowerCase()),d}return o.extend=function(i){Object.assign(n,i)},o})})(slugify$1);var slugifyExports=slugify$1.exports;const slugify=getDefaultExportFromCjs(slugifyExports),msgRenderer=(e,t,n,r)=>(n?e=e.replace(`{{ ${t} }}`,String(n)):t=="first_name"?e=e.replace(`{{ ${t} }}`,r):e=e.replace(`{{ ${t} }}`,""),e),varRenderer=(e,t)=>{const n={...t};return!n.city&&e.includes("{{ city }}")&&(e.includes("{{ province }}")?n.city="":n.city=n.province),n},replaceAll=(e,t,n)=>e.split(t).join(n),_hoisted_1$1=["src"],_hoisted_2$1=["innerHTML"],_hoisted_3$1={class:"flex-auto"},_hoisted_4$1={key:0},_hoisted_5={key:1},_sfc_main$2=defineComponent({__name:"ProofPop",props:{action:{},size:{},canClose:{type:Boolean}},emits:["close"],setup(e,{emit:t}){const n=e;useCssVars(M=>({"11c34447":C.value,a05d5174:w.value}));const r=useMainStore(),o=computed(()=>{const M=r.pops.find(B=>B.kind===n.action.kind);if(!M)throw new Error(`Pop not found for action kind: ${n.action.kind}`);return M}),i=ref(!1);function s(M){if(!M)return"";try{const B=new URL(M);return B.searchParams.set("width","500"),B.searchParams.set("format","webp"),B.toString()}catch{return M}}const a=computed(()=>{const M=String(o.value.content_top);return n.action?m(M):M}),c=computed(()=>{const M=String(o.value.content_bottom);return n.action?m(M):M}),l=computed(()=>{var M;return r.popDynamicVars.product_image?s(r.popDynamicVars.product_image):s((M=n.action)==null?void 0:M.image)}),d=computed(()=>n.action?window.pcTimeAgo.format(new Date(n.action.created_at??"")):"Moments ago"),g=computed(()=>!n.action||!o.value?!1:(new Date().getTime()-new Date(n.action.created_at??"").getTime())/(1e3*60*60)<=Number(o.value.hide_time_after_hours)),m=M=>{var Z;let B=M;if(o.value.kind==="cart_item")return B=replaceAll(B,"{{ cart_item_count }}",String(r.popDynamicVars.cart_item_count)),B=replaceAll(B,"{{ product_title }}",String(r.popDynamicVars.product_title)),B;if(o.value.kind==="order_item")return B=replaceAll(B,"{{ order_item_count }}",String(r.popDynamicVars.order_item_count)),B=replaceAll(B,"{{ product_title }}",String(r.popDynamicVars.product_title)),B;if(o.value.kind==="recent")return B=replaceAll(B,"{{ recent_visitor_count }}",String(o.value.vars.recent_visitor_count)),B;if(o.value.kind==="live")return B=replaceAll(B,"{{ live_visitor_count }}",String(o.value.vars.live_visitor_count)),B;if((Z=n.action)!=null&&Z.vars){const q=varRenderer(B,n.action.vars);for(const pe in q){const Se=q[pe],Ee=String(o.value.first_name_fallback??"Someone");B=msgRenderer(B,pe,Se,Ee)}}return B},y=computed(()=>r.permissionsWithOverrides.includes("ADMIN")),C=computed(()=>o.value.background_color??"white"),w=computed(()=>o.value.font_color??"black"),I=computed(()=>`${o.value.border_radius??8}px`),j=computed(()=>o.value.font_family??'-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif'),J=computed(()=>o.value.show_time??!0),A=computed(()=>o.value.background_image??""),k=computed(()=>o.value.background_size??"cover"),b=computed(()=>{switch(o.value.kind){case"cart":return"uil-shopping-cart";case"order":return"uil-box";case"recent":return"uil-users-alt";case"live":return"uil-bolt";default:return"uil-image-v"}}),E=M=>{n.action&&t("close",n.action),M.stopPropagation()},D=computed(()=>{const M=l.value&&l.value!=="",B=o.value.icon_name;return M&&!B&&!i.value}),O=()=>{var M,B,Z,q;if(fetch(`https://micro.pop-convert.com/micro/api/micro_actions/create?unique_id=${r.currentSite.uniqueId}&action=pop_click`).then(pe=>pe.json()).catch(pe=>{console.error("Error:",pe)}),!!((M=n.action)!=null&&M.url)){if((Z=(B=n.action)==null?void 0:B.url)!=null&&Z.includes("https://")){window.open(n.action.url,"_blank");return}window.open(`https://${window.location.hostname}${(q=n.action)==null?void 0:q.url}`,"_blank")}};return(M,B)=>{var Z,q;return openBlock(),createElementBlock("div",{class:normalizeClass(["social-pop",[M.size]]),style:normalizeStyle({backgroundColor:C.value,borderRadius:I.value,fontFamily:j.value,backgroundImage:A.value,backgroundSize:k.value}),onClick:O},[D.value?(openBlock(),createElementBlock("img",{key:0,class:"img",src:l.value,style:normalizeStyle({borderRadius:I.value}),alt:"Product Name",onError:B[0]||(B[0]=pe=>i.value=!0)},null,44,_hoisted_1$1)):(openBlock(),createElementBlock("div",{key:1,class:"img empty",style:normalizeStyle({borderRadius:I.value})},[(Z=o.value)!=null&&Z.icon_name&&o.value.icon_name==="true"&&o.value.icon_svg!==""?(openBlock(),createElementBlock("div",{key:0,innerHTML:o.value.icon_svg},null,8,_hoisted_2$1)):(openBlock(),createBlock(unref(Icon$1),{key:1,icon:b.value,color:"black",width:"1.5em",height:"1.5em"},null,8,["icon"]))],4)),createBaseVNode("div",_hoisted_3$1,[createBaseVNode("p",{class:"first",style:normalizeStyle({color:w.value})},toDisplayString(a.value),5),createBaseVNode("p",{class:"second",style:normalizeStyle({color:w.value})},toDisplayString(c.value),5),J.value&&g.value?(openBlock(),createElementBlock("span",_hoisted_4$1,toDisplayString(d.value),1)):createCommentVNode("",!0),y.value?(openBlock(),createElementBlock("p",_hoisted_5,"Action: "+toDisplayString((q=n.action)==null?void 0:q.id),1)):createCommentVNode("",!0)]),n.canClose&&n.action?(openBlock(),createElementBlock("div",{key:2,class:"close clickable-effect",onClick:E},[createVNode(unref(Icon$1),{icon:"uil-times",color:"fontColor",width:"1.5em",height:"1.5em"})])):createCommentVNode("",!0)],6)}}}),ProofPop_vue_vue_type_style_index_0_scoped_7f6f2d18_lang="",ProofPop=_export_sfc(_sfc_main$2,[["__scopeId","data-v-7f6f2d18"]]),_sfc_main$1=defineComponent({__name:"Proof",setup(e){const t=useMainStore(),{pops:n,actions:r}=storeToRefs(t),{mockCss:o}=useMain(),i=ref(0),s=ref(-1),a=ref(!1),c=computed(()=>{var b;return((b=t.popSettings)==null?void 0:b.pop_delay_time)??5}),l=computed(()=>{var b;return((b=t.popSettings)==null?void 0:b.pop_show_time)??5}),d=computed(()=>{var b;return((b=t.popSettings)==null?void 0:b.pop_between_time)??5}),g=computed(()=>{var b;return((b=t.popSettings)==null?void 0:b.pop_size.toLowerCase())??"medium"}),m=computed(()=>{var b;return((b=t.popSettings)==null?void 0:b.pop_can_close)??!1}),y=computed(()=>r.value[s.value]),C=computed(()=>{var b;return(b=t.popSettings)!=null&&b.pop_position_mobile?slugify(t.popSettings.pop_position_mobile.toLowerCase()):"bottom"}),w=computed(()=>{var b;return(b=t.popSettings)!=null&&b.pop_position_desktop?slugify(t.popSettings.pop_position_desktop.toLowerCase()):"bottom-right"}),I=()=>{fetch(`https://micro.pop-convert.com/micro/api/micro_actions/create?unique_id=${t.currentSite.uniqueId}&action=pop_view`).then(b=>b.json()).catch(b=>{console.error("Error:",b)})},j=()=>{fetch(`https://micro.pop-convert.com/micro/api/micro_actions/create?unique_id=${t.currentSite.uniqueId}&action=pop_close`).then(b=>b.json()).catch(b=>{console.error("Error:",b)})},J=()=>{if(localStorage.getItem("__pc__proof__closed")||r.value.length==0)return;s.value=0,a.value=!0,I(),console_pretty.green("Proof pops initialized!");const b=setInterval(()=>{var E,D;if(!localStorage.getItem("__pc__proof__closed")){if(i.value+=1,a.value){if(i.value{j(),localStorage.setItem("__pc__proof__closed",String(b.id)),i.value=0,a.value=!1},k=()=>{const b=[];n.value.forEach(E=>{E.font_family&&!b.includes(E.font_family)&&E.font_family!=""&&b.push(E.font_family)}),b.length!=0&&b.forEach(E=>window.injectFontFromCss(o(E)))};return onMounted(()=>{var b;localStorage.getItem("__pc__proof__closed")||((b=document.querySelector('meta[name="disableProof"]'))==null?void 0:b.getAttribute("content"))!="true"&&(k(),setTimeout(()=>J(),c.value*1e3))}),(b,E)=>(openBlock(),createBlock(Transition,{name:"fade"},{default:withCtx(()=>[unref(n)&&unref(r)&&a.value&&y.value?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass(["proof-container",[C.value,w.value]])},[createVNode(ProofPop,{action:y.value,size:g.value,"can-close":m.value,onClose:A},null,8,["action","size","can-close"])],2)):createCommentVNode("",!0)]),_:1}))}}),Proof_vue_vue_type_style_index_0_scoped_d6a76909_lang="",Proof=_export_sfc(_sfc_main$1,[["__scopeId","data-v-d6a76909"]]),_hoisted_1={id:"__pc_app"},_hoisted_2={key:2,class:"admin"},_hoisted_3=createBaseVNode("p",null,"Clear Cache",-1),_hoisted_4=[_hoisted_3],_sfc_main=defineComponent({__name:"App",setup(e){const t=useMainStore(),{activeButton:n,activePop:r,activeBar:o,activeBtns:i,buttons:s,campaigns:a,permissions:c,previewMode:l,editMode:d,currency:g,pops:m}=storeToRefs(t),{getCampaigns:y,triggerPC:C,addCustomCss:w,addFonts:I}=useMain(),j=ref(null),J=ref(!1),A=ref(),k=()=>{j.value&&(sessionStorage.getItem("pc_session_registered")||(sessionStorage.setItem("pc_session_registered","true"),fetch(`https://micro.pop-convert.com/micro/api/micro_actions/create?unique_id=${j.value}&action=session`).then(O=>O.json()).catch(O=>{console.error("Error:",O)})))},b=O=>{var M,B;if(!(((M=O.data)==null?void 0:M.type)!="pc/mocked-campaign-change"&&((B=O.data)==null?void 0:B.type)!="pc/mocked-button-change")){if(d.value=!0,O.data.mockedCampaign){const Z=O.data.mockedCampaign;if(c.value=O.data.permissions,!Z){console_pretty.red("No mocked campaign found");return}if(Z.campaign_type==="pop"){a.value=[Z],r.value=Z,Z.reopen_btn_enabled?i.value=[Z]:i.value=[],w(),I();return}if(Z.campaign_type==="bar"){a.value=[Z],o.value=Z,w(),I();return}}if(O.data.mockedButton){const Z=O.data.mockedButton;c.value=O.data.permissions,n.value=Z;return}}},E=()=>{localStorage.clear(),sessionStorage.clear(),location.reload()},D=()=>{window.parent.postMessage({type:"pc/remove-watermark-click"},"*")};return onBeforeMount(()=>{window.addEventListener("message",b)}),onMounted(()=>{if(A.value=ExitIntent({threshold:50,maxDisplays:1,eventThrottle:100,onExitIntent:()=>{C(!0)}}),console_pretty.purple("New Pop Convert is live!"),console_pretty.purple("V1.2"),console_pretty.green("Environment: production"),!j.value){const Z=document.querySelector('script[src*="pop-convert"]');if(Z){const q=new URLSearchParams(Z.src.split("?")[1]);j.value=q.get("shop")}}if(j.value||window.myPC&&(j.value=window.myPC.unique_id),j.value||window.Shopify&&(j.value=window.Shopify.shop),!j.value){const Z=document.querySelector("script[pop-convert-key]");Z&&(j.value=Z.getAttribute("pop-convert-key"))}if(j.value||(j.value=new URLSearchParams(window.location.search).get("unique_id")),!j.value)throw console.error("Pop Convert: Unique ID not found. Not able to load the app..."),"Pop Convert: Unique ID not found. Not able to load the app...";const O=()=>{var q,pe;if(!window.Shopify)return;const Z=(pe=(q=window.Shopify)==null?void 0:q.currency)==null?void 0:pe.active;Z&&Z!==t.currency&&(window.pcCurrency=Z,t.currency=Z)};O(),window.setInterval(O,1e3),setupCustomElemTrigger(),window.setInterval(setupCustomElemTrigger,1e3);const M=new URLSearchParams(window.location.search).get("pc_preview");d.value=new URLSearchParams(window.location.search).get("edit")==="true",J.value=new URLSearchParams(window.location.search).get("admin")==="true",g.value=new URLSearchParams(window.location.search).get("pc_currency")||"USD",new URLSearchParams(window.location.search).get("pc_clear_cache")==="true"&&E(),!d.value&&(M&&(l.value=!0),k(),y({id:j.value}),window.triggerPC=C,window.setInterval(window.triggerPC,1e3),C())}),onBeforeUnmount(()=>{window.removeEventListener("message",b),A.value&&A.value()}),(O,M)=>(openBlock(),createElementBlock("div",_hoisted_1,[createBaseVNode("div",null,[unref(r)?(openBlock(),createBlock(Pop,{key:0,campaign:unref(r),"onClicked:watermark":D},null,8,["campaign"])):createCommentVNode("",!0),unref(o)?(openBlock(),createBlock(Bar,{key:1,campaign:unref(o),"onClicked:watermark":D},null,8,["campaign"])):createCommentVNode("",!0),unref(i)?(openBlock(),createBlock(Buttons,{key:2,campaigns:unref(i)},null,8,["campaigns"])):createCommentVNode("",!0)]),unref(m).length>0?(openBlock(),createBlock(Proof,{key:0})):createCommentVNode("",!0),unref(n)||unref(s).length>0?(openBlock(),createBlock(ButtonPops,{key:1,"active-button":unref(n),buttons:unref(s)},null,8,["active-button","buttons"])):createCommentVNode("",!0),J.value?(openBlock(),createElementBlock("div",_hoisted_2,[createBaseVNode("div",{class:"admin-trigger",onClick:E},_hoisted_4)])):createCommentVNode("",!0)]))}});function devMount(){if(window.pcAppAlreadyInitialized)throw"Pop Convert already initialized";window.pcAppAlreadyInitialized=!0;const e=createApp(_sfc_main),t=createPinia();e.directive("lazyLoad",(n,r)=>{const o=new IntersectionObserver(i=>{i.forEach(s=>{if(s.isIntersecting){const a=new Image;a.src=r.value,a.addEventListener("load",()=>{n.setAttribute("src",a.src),o.unobserve(n)})}})});o.observe(n)}),e.use(t),e.mount("#pop-convert-app"),window.pcTarget=document.head}const barThemeCss=`#myMarquee img{display:inline} `;function productionMount(){if(isRobotUserAgent()){console.warn("Blocked user agent detected. Stopping script execution.");return}if(window.pcAppAlreadyInitialized)throw"Pop Convert already initialized";window.pcAppAlreadyInitialized=!0;const e=document.getElementById("pop-convert-app");e&&e.remove();const t=document.createElement("div");t.id="pop-convert-app",t.setAttribute("style","display: block !important; z-index: 999999; transform: initial; transform-origin: initial;"),t.classList.add("needsclick"),document.body.append(t);const n=t;if(n){const r=n.attachShadow({mode:"open"}),o=document.createElement("div");o.id="app",r.appendChild(o);const i=createPinia(),s=createApp(_sfc_main);s.use(i),s.mount(r),window.pcTarget=r;const a=document.createElement("style");a.innerHTML=barThemeCss,a.id="pop-convert-theme-integrations",document.head.appendChild(a)}}const urlParams=new URLSearchParams(window.location.search),screenshotPreviewMode=urlParams.get("pc_screenshot_preview_mode");urlParams.get("pc_force_production");const isNetlifyLoad=document.querySelector('script[src="https://glitch-8c86c7c25148.herokuapp.com/new-micro/production.pc.min.js"]'),forceOldMicro=urlParams.get("pc_force_old_micro");function mountPCApp(){var e;if(forceOldMicro==="true"||localStorage.getItem("pop-convert-force-old-micro")==="true"){const t=document.createElement("script");throw t.src="https://script.pop-convert.com/old-micro/production.pc.min.js",document.body.appendChild(t),new Error("Old micro script enabled. Halting execution of new micro")}else if(localStorage.getItem("pop-convert-force-netlify")==="true"&&!isNetlifyLoad){const t=document.createElement("script");throw t.src="https://glitch-8c86c7c25148.herokuapp.com/new-micro/production.pc.min.js",document.body.appendChild(t),new Error("Netlify script enabled")}else if(localStorage.getItem("pop-convert-dev-script")==="true"){const t=document.createElement("div");t.id="pop-convert-app",(e=document.body)==null||e.appendChild(t);const n=document.createElement("script");throw n.src="http://localhost:5175/src/main.ts",n.type="module",document.body.appendChild(n),new Error("Dev script enabled")}else screenshotPreviewMode==="true"?devMount():productionMount()}return mountPCApp(),exports.mountPCApp=mountPCApp,Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"}),exports}({}); (function(){"use strict";(function(t,n){try{if(typeof document<"u"){const a=document.createElement("style");a.appendChild(document.createTextNode(t));const o=document.getElementById("pop-convert-app");if(o){const e=o.shadowRoot;e&&e.appendChild(a)}}}catch(a){console.error("vite-plugin-css-injected-by-js",a)}})('@keyframes fadeInPC{0%{opacity:.01}to{opacity:1}}html,body,div,span,applet,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,address,big,cite,code,del,dfn,em,img,ins,kbd,q,s,samp,small,strike,strong,sub,sup,tt,var,b,u,i,center,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td,article,aside,canvas,details,embed,figure,figcaption,footer,header,hgroup,menu,nav,output,ruby,section,summary,time,mark,audio,video{margin:0;padding:0;border:0;font-size:100%;font:inherit;vertical-align:baseline;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}article,aside,details,figcaption,figure,footer,header,hgroup,menu,nav,section{display:block}body{line-height:1}ol,ul{list-style:none}blockquote,q{quotes:none}blockquote:before,blockquote:after,q:before,q:after{content:"";content:none}table{border-collapse:collapse;border-spacing:0}*,*:before,*:after{box-sizing:border-box}*{margin:0}body{line-height:1.5;-webkit-font-smoothing:antialiased}img,picture,video,canvas,svg{display:block;max-width:100%}input,button,textarea,select{font:inherit}p,h1,h2,h3,h4,h5,h6{word-wrap:break-word}#root,#__next{isolation:isolate}:host:not(#\\#):not(#\\#):not(#\\#):not(#\\#):not(#\\#):not(#\\#):not(#\\#):not(#\\#):not(#\\#):not(#\\#):not(#\\#):not(#\\#){animation:none 0s ease 0s 1 normal none running;backface-visibility:visible;background:transparent none repeat 0 0 / auto auto padding-box border-box scroll;border:medium none currentcolor;border-collapse:separate;-o-border-image:none;border-image:none;border-radius:0;border-spacing:0;bottom:auto;box-shadow:none;box-sizing:content-box;caption-side:top;clear:none;clip:auto;color:#000;-moz-columns:auto;columns:auto;-moz-column-count:auto;column-count:auto;-moz-column-fill:balance;column-fill:balance;-moz-column-gap:normal;column-gap:normal;-moz-column-rule:medium none currentcolor;column-rule:medium none currentcolor;-moz-column-span:1;column-span:1;-moz-column-width:auto;column-width:auto;content:normal;counter-increment:none;counter-reset:none;cursor:auto;display:inline;empty-cells:show;float:none;font-family:serif;font-size:medium;font-style:normal;font-variant:normal;font-weight:400;font-stretch:normal;line-height:normal;height:auto;-webkit-hyphens:none;hyphens:none;left:auto;letter-spacing:normal;list-style:disc outside none;margin:0;max-height:none;max-width:none;min-height:0;min-width:0;opacity:1;orphans:2;outline:medium none currentcolor;overflow:visible;overflow-x:visible;overflow-y:visible;padding:0;page-break-after:auto;page-break-before:auto;page-break-inside:auto;perspective:none;perspective-origin:50% 50%;position:static;right:auto;-moz-tab-size:8;-o-tab-size:8;tab-size:8;table-layout:auto;text-align:left;-moz-text-align-last:auto;text-align-last:auto;-webkit-text-decoration:none;text-decoration:none;text-indent:0;text-shadow:none;text-transform:none;top:auto;transform:none;transform-origin:50% 50% 0;transform-style:flat;transition:none 0s ease 0s;vertical-align:baseline;visibility:visible;white-space:normal;widows:2;width:auto;word-spacing:normal;z-index:auto;all:initial}#__pc_app:not(#\\#):not(#\\#){--pc-font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;--pc-font-size-base: 12px;--pc-bar-common-radius: .3rem;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Arial,sans-serif;font-family:var(--pc-font-family);font-size:max(12px,min(1.5vw,16px));font-size:max(var(--pc-font-size-base),min(1.5vw,calc(var(--pc-font-size-base) + 4px)));line-height:normal}#__pc_app:not(#\\#):not(#\\#):not(#\\#):not(#\\#) input{-webkit-user-select:text!important}.admin:not(#\\#):not(#\\#){position:fixed;bottom:1em;left:1em}.admin:not(#\\#):not(#\\#) .admin-trigger{background-color:#4a90e2;color:#fff;padding:.5em 1em;font-size:.875em;border-radius:.375em;cursor:pointer;transition:all .2s}.admin:not(#\\#):not(#\\#) .admin-trigger:hover{background-color:#3572b0}.clickable-effect:not(#\\#):not(#\\#):not(#\\#):not(#\\#):not(#\\#):not(#\\#):not(#\\#):not(#\\#){cursor:pointer;transition:all .15s ease-in-out}@media (min-width: 768px){.clickable-effect:hover:not(#\\#):not(#\\#):not(#\\#):not(#\\#):not(#\\#):not(#\\#):not(#\\#):not(#\\#){transform:scale(1.04)}.clickable-effect:active:not(#\\#):not(#\\#):not(#\\#):not(#\\#):not(#\\#):not(#\\#):not(#\\#):not(#\\#){transform:scale(.98)}}.bar-main-content p{margin:0!important}.no-scrollbar:not(#\\#):not(#\\#):not(#\\#):not(#\\#):not(#\\#):not(#\\#):not(#\\#):not(#\\#):not(#\\#):not(#\\#):not(#\\#):not(#\\#)::-webkit-scrollbar{display:none}.no-scrollbar:not(#\\#):not(#\\#):not(#\\#):not(#\\#):not(#\\#):not(#\\#):not(#\\#):not(#\\#):not(#\\#):not(#\\#):not(#\\#):not(#\\#){-ms-overflow-style:none;scrollbar-width:none}#__pc-bar-spacer{height:var(--pc-push-down-height)!important}.carousel__prev{left:8px!important}.carousel__next{right:8px!important}.carousel__viewport{cursor:grab!important}.carousel__viewport:focus,.carousel__viewport:active{cursor:grabbing!important}svg[data-v-cbb87d7e]{cursor:pointer;fill:var(--761dd41d);width:100%;height:100%}.remove-watermark-label[data-v-3bb48cec]{display:grid!important;grid-template-columns:auto 1fr!important;align-items:center!important;justify-content:center!important;grid-gap:5px!important;gap:5px!important;padding:2px 10px!important;background-color:#fc0!important;font-weight:600!important;box-shadow:0 0 5px #0003!important;outline:3px solid rgba(255,157,0,.56863)!important;cursor:pointer!important;transition:all .2s ease-in-out!important;color:#000!important;-webkit-user-select:none!important;-moz-user-select:none!important;user-select:none!important}.remove-watermark-label[data-v-3bb48cec]:hover{-webkit-text-decoration:underline!important;text-decoration:underline!important}.remove-watermark-label .icon[data-v-3bb48cec]{font-size:20px!important;color:#000!important}.remove-watermark-label p[data-v-3bb48cec]{color:inherit!important}.slideUp-enter-active[data-v-3bb48cec]{animation:slide-up-3bb48cec .25s}.slideUp-leave-active[data-v-3bb48cec]{animation:slide-up-3bb48cec .5s reverse}@keyframes slide-up-3bb48cec{0%{transform:translateY(100%)}to{transform:translateY(0)}}.submit-button[data-v-cd8905bd]{font-weight:700;margin:0;background-color:var(--e591965c);color:var(--4cbce425);border-radius:var(--pc-bar-common-radius);cursor:pointer;min-height:3em;align-items:center;justify-content:center;display:inline-flex;border:none;flex:none;padding-left:1em;padding-right:1em;font-family:inherit;font-size:var(--pc-font-size);-webkit-user-select:auto!important;-moz-user-select:auto!important;user-select:auto!important}@keyframes rotation-cd8905bd{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.spinner[data-v-cd8905bd]{width:24px;height:24px;border:3px solid var(--4cbce425);border-bottom-color:transparent;border-radius:50%;display:inline-block;box-sizing:border-box;animation:rotation-cd8905bd 1s linear infinite}label[data-v-2d67603a]{display:grid;grid-template-columns:auto 1fr;align-items:center;cursor:pointer;grid-gap:.2em;gap:.2em;padding:.2em 1em;border-radius:.5em}label[error=true][data-v-2d67603a]{background-color:red;box-shadow:0 0 0 1px #0000001a}label[error=true] span[data-v-2d67603a]{color:#fff!important}label input[data-v-2d67603a]{margin:0}label span[data-v-2d67603a]{font-size:.8em;color:var(--7317e965)!important;line-height:1em;word-spacing:-.1em}.news-block[data-v-4adab747]{overflow:hidden;white-space:nowrap}.clickable[data-v-4adab747]{cursor:pointer}.clickable[data-v-4adab747]:hover{-webkit-text-decoration:underline;text-decoration:underline}#scroll-text[data-v-4adab747]{transform:translate(100%);animation:my-animation-4adab747 var(--17ca194a) linear infinite}@keyframes my-animation-4adab747{0%{transform:translate(100%)}to{transform:translate(-100%)}}:root{--vc-clr-primary: #000;--vc-clr-secondary: rgba(9,15,32,.49804);--vc-clr-white: #ffffff;--vc-icn-width: 1.2em;--vc-nav-width: 30px;--vc-nav-height: 30px;--vc-nav-border-radius: 0;--vc-nav-color: var(--vc-clr-primary);--vc-nav-color-hover: var(--vc-clr-secondary);--vc-nav-background: transparent;--vc-pgn-width: 12px;--vc-pgn-height: 4px;--vc-pgn-margin: 4px;--vc-pgn-border-radius: 0;--vc-pgn-background-color: var(--vc-clr-secondary);--vc-pgn-active-color: var(--vc-clr-primary)}.carousel{position:relative;text-align:center;box-sizing:border-box;touch-action:pan-y;overscroll-behavior:none}.carousel.is-dragging{touch-action:none}.carousel *{box-sizing:border-box}.carousel__track{display:flex;padding:0!important;position:relative}.carousel__viewport{overflow:hidden}.carousel__sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0}.carousel__icon{width:1.2em;width:var(--vc-icn-width);height:1.2em;height:var(--vc-icn-width);fill:currentColor}.carousel__prev,.carousel__next{box-sizing:content-box;background:transparent;background:var(--vc-nav-background);border-radius:0;border-radius:var(--vc-nav-border-radius);width:30px;width:var(--vc-nav-width);height:30px;height:var(--vc-nav-height);text-align:center;font-size:30px;font-size:var(--vc-nav-height);padding:0;color:#000;color:var(--vc-nav-color);display:flex;justify-content:center;align-items:center;position:absolute;border:0;cursor:pointer;margin:0 10px;top:50%;transform:translateY(-50%)}.carousel__next--disabled,.carousel__prev--disabled{cursor:not-allowed;opacity:.5}.carousel__prev{left:0}.carousel__next{right:0}.carousel--rtl .carousel__prev{left:auto;right:0}.carousel--rtl .carousel__next{right:auto;left:0}@media (hover: hover){.carousel__prev:hover,.carousel__next:hover{color:#090f207f;color:var(--vc-nav-color-hover)}}.carousel__pagination{display:flex;justify-content:center;list-style:none;line-height:0;margin:10px 0 0;padding:0}.carousel__pagination-button{display:block;border:0;margin:0;cursor:pointer;padding:4px;padding:var(--vc-pgn-margin);background:transparent}.carousel__pagination-button:after{display:block;content:"";width:12px;width:var(--vc-pgn-width);height:4px;height:var(--vc-pgn-height);border-radius:0;border-radius:var(--vc-pgn-border-radius);background-color:#090f207f;background-color:var(--vc-pgn-background-color)}.carousel__pagination-button--active:after{background-color:#000;background-color:var(--vc-pgn-active-color)}@media (hover: hover){.carousel__pagination-button:hover:after{background-color:#000;background-color:var(--vc-pgn-active-color)}}.carousel__slide{scroll-snap-stop:auto;flex-shrink:0;margin:0;position:relative;display:flex;justify-content:center;align-items:center;transform:translateZ(0)}.carousel__icon{--vc-icn-width: 1.2em;fill:var(--520a2570)!important;display:block!important}.clickable{cursor:pointer}.clickable:hover{-webkit-text-decoration:underline;text-decoration:underline}.bar-container[data-v-44e70771]{position:relative;max-width:1000px;margin:0 auto;padding-left:1.2em;padding-right:1.2em}@media (max-width: 700px){.bar-container[push-down=true][data-v-44e70771]{padding-top:1.2em}}.bar-container .bar-content[data-v-44e70771]{padding:10px;text-align:center;position:relative;display:var(--c7c178f0);flex-wrap:wrap;align-items:center;justify-content:center;font-family:var(--d516a748);color:var(--6cf1814d)}.bar-container .bar-content[data-v-44e70771] h1{font-size:1.8em;color:var(--6cf1814d)}.bar-container .bar-content[data-v-44e70771] h2{font-size:1.5em;color:var(--6cf1814d)}.bar-container .bar-content[data-v-44e70771] p{color:var(--6cf1814d);font-size:1.2em;min-height:1px}.bar-container .bar-content[data-v-44e70771] strong{color:var(--6cf1814d);font-weight:700}.bar-container .bar-content[data-v-44e70771] em{color:var(--6cf1814d);font-style:italic}.bar-container .bar-content[data-v-44e70771] u{color:var(--6cf1814d);-webkit-text-decoration:underline;text-decoration:underline}.bar-container .bar-content[data-v-44e70771] u span{-webkit-text-decoration:underline;text-decoration:underline}.bar-container .bar-content[data-v-44e70771] mark{padding:0 5px;line-height:1.15em;-moz-box-decoration-break:clone;-webkit-box-decoration-break:clone;box-decoration-break:clone}.bar-main-content[data-v-44e70771]{color:var(--pc-bar-text-color);margin-top:0;margin-bottom:0;padding:.5em}.bar-main-content p[data-v-44e70771]{padding:0;margin-bottom:0;margin-top:0}.bar-input-form[data-v-44e70771]{display:grid;grid-auto-flow:column;align-items:center;justify-content:center;margin:.5em;grid-gap:1em;gap:1em;position:relative}.bar-input-form .icon[data-v-44e70771]{position:absolute;left:10px;font-size:18px}.bar-input-form .input-wrapper[data-v-44e70771]{position:relative}.bar-input-form .input-wrapper .error-box[data-v-44e70771]{position:absolute;right:0;bottom:0;background-color:red;width:16px;height:16px;display:flex;align-items:center;justify-content:center;color:#fff;font-size:12px;border-radius:4px}.bar-input-form input[data-v-44e70771]{height:40px;width:240px;text-indent:32px;font-weight:400;font-size:.9em;line-height:1em;border-radius:var(--pc-bar-common-radius);border:1px solid #e2e8f0;transition:.4s all;padding:0 0 2px}.bar-input-form input[data-v-44e70771]:focus{outline:none;border:1px solid var(--a2ab344c)}.bar-thanks-container[data-v-44e70771]{display:flex;gap:1em;align-items:center;justify-content:center}.pc-bar[data-v-287e4d40]{--pc-bar-background-color: var(--10a8a890);--pc-bar-background-image: var(--6fe50b65);--pc-bar-background-pattern: var(--24e2e355);--pc-bar-text-color: var(--5b665612);--pc-bar-button-background-color: var(--29e2988a);--pc-bar-button-text-color: var(--00224749);--pc-bar-button-radius: var(--pc-bar-common-radius);--pc-bar-input-radius: var(--pc-bar-common-radius);left:0;right:0;position:var(--bf24cbd0);top:var(--6517a706);bottom:var(--1cc20ada);box-shadow:0 10px 15px -3px #0000001a,0 4px 6px -2px #0000000d;color:var(--5b665612);color:var(--pc-bar-text-color);z-index:2147483647}.pc-bar[bg-type=image][data-v-287e4d40]{background-size:cover;background-position:center;background-repeat:no-repeat;background-image:var(--pc-bar-background-image)}.pc-bar[bg-type=color][data-v-287e4d40]{background-color:var(--pc-bar-background-color)}.pc-bar[data-v-287e4d40]:before{content:"";background-image:var(--pc-bar-background-pattern);background-repeat:repeat;position:absolute;top:0;right:0;bottom:0;left:0;opacity:.1}.pc-bar .bar-close-button[data-v-287e4d40]{z-index:9999999999;position:absolute;right:6px;top:6px;font-size:20px;cursor:pointer;border-radius:100%;padding:2px}.pc-bar .bar-close-button[data-v-287e4d40]:hover{background-color:#fff;color:#000}.promo-wrapper[data-v-287e4d40]{position:absolute;background-color:#fff;top:6px;left:5px;width:110px;padding:2px 6px;border-radius:5px;background-color:#00008b}.remove-watermark[data-v-287e4d40]{position:absolute;left:130px;bottom:-32px;cursor:pointer}.pc-buttons-trigger-wrapper[data-v-7b21e5d6]{position:relative;z-index:2147483646}.pc-buttons-trigger-wrapper .button-container[data-v-7b21e5d6]{display:flex}.pc-buttons-trigger-wrapper .button-container-left[data-v-7b21e5d6],.pc-buttons-trigger-wrapper .button-container-right[data-v-7b21e5d6]{top:50%;transform:translateY(-50%);-ms-transform:translateY(-50%);-webkit-transform:translateY(-50%);-moz-transform:translateY(-50%);-o-transform:translateY(-50%);position:fixed;display:flex;flex-direction:column}.pc-buttons-trigger-wrapper .button-container-left[data-v-7b21e5d6]{left:0}.pc-buttons-trigger-wrapper .button-container-right[data-v-7b21e5d6]{right:0}.pc-buttons-trigger-wrapper .button-container-right span[data-v-7b21e5d6]{transform:rotate(180deg);-ms-transform:rotate(180deg);-webkit-transform:rotate(180deg);-moz-transform:rotate(180deg);-o-transform:rotate(180deg)}.pc-buttons-trigger-wrapper .pc-button[data-v-7b21e5d6]{position:relative!important;cursor:pointer!important;writing-mode:vertical-lr!important;text-orientation:sideways!important;display:inline-flex!important;align-items:center!important;width:-moz-fit-content!important;width:fit-content!important;outline:none!important;border:none!important;background-image:none!important;width:36px!important;min-width:36px!important;padding:1.5em .5em!important;margin:2px 0!important}.pc-buttons-trigger-wrapper .pc-button[data-v-7b21e5d6]:last-child{margin-right:0}.pc-buttons-trigger-wrapper .pc-button[data-v-7b21e5d6]:hover{opacity:.9}.pc-buttons-trigger-wrapper .pc-button span[data-v-7b21e5d6]{cursor:pointer}.button-pop[data-v-ed6f44b8]{display:none;background-color:#fff;transition:all .3s ease;background-size:cover;background-position:center;background-repeat:no-repeat;position:fixed;cursor:pointer;border:none;outline:none;box-shadow:0 10px 15px -3px #0000001a,0 4px 6px -4px #0000001a}.button-pop[data-v-ed6f44b8]:hover{transform:scale(.98);opacity:.8}.svg-style[data-v-b87207b6]{max-width:100%}.coupon-wrapper[data-v-b87207b6]{position:relative}.code-wrapper[data-v-b87207b6]{position:absolute;top:0;left:0;right:0;height:65px;display:flex;align-items:center;justify-content:center;font-family:monospace;font-size:25px;letter-spacing:5px;line-height:1;opacity:1!important;color:#000!important}.code-wrapper[data-v-b87207b6]:hover{opacity:.5!important;cursor:pointer}.code-wrapper.small[data-v-b87207b6]{font-size:14px;letter-spacing:3px}.products-parent[data-v-73415ed1]{display:flex;flex-direction:column;gap:1em}.product-row[data-v-73415ed1]{--pc-block-products-color: var(--78fe4bca);--pc-block-products-button-bg: var(--13c1a59c);--pc-block-products-button-bg-hover: var(--184b2bef);--pc-block-products-button-color: var(--7c24a9da);--pc-block-products-button-color-hover: var(--266c03d7);display:grid;grid-gap:1.5em;gap:1.5em}@media (min-width: 500px){.product-row[data-v-73415ed1]{grid-template-columns:repeat(var(--1e492c5c),minmax(0,1fr))}}.product-row .product-container[data-v-73415ed1]{display:flex;flex-direction:column;gap:.25em;height:100%;color:var(--pc-block-renderer-title-color)}.product-row .product-container img[data-v-73415ed1]{margin-bottom:.5em;border-radius:.25em}.product-row .product-container p[data-v-73415ed1]{opacity:.75}.product-row .product-container span[data-v-73415ed1]{font-weight:600;font-size:1.25em}.product-row .product-container button[data-v-73415ed1]{padding:.25em .5em;margin-top:.5em;border-radius:.25em;cursor:pointer;background-color:var(--pc-block-products-button-bg);color:var(--pc-block-products-button-color);border:none;font-weight:600}.product-row .product-container button[data-v-73415ed1]:hover{background-color:var(--pc-block-products-button-bg-hover);color:var(--pc-block-products-button-color-hover)}.social-networks-block[data-v-e71acf6d]{display:grid;grid-auto-flow:column;grid-gap:1em;gap:1em;justify-content:center}.social-network-block-wrapper[data-v-e71acf6d]:hover{opacity:.8}.social-network-block-wrapper.circles[data-v-e71acf6d]{background-color:var(--0688af96);border-color:var(--5e32352e);border-radius:50%;border-width:1px;border-style:solid;padding:.5em}.social-network-block-wrapper.buttons[data-v-e71acf6d]{background-color:var(--0688af96);border-color:var(--5e32352e);border-radius:.5em;border-width:1px;border-style:solid;padding:.5em}.social-network-block-wrapper.shadows[data-v-e71acf6d]{background-color:var(--0688af96);box-shadow:0 0 .5em #0000001a;border-radius:50%;padding:.5em}.social-network-block-wrapper.button-shadows[data-v-e71acf6d]{background-color:var(--0688af96);box-shadow:0 0 .5em #0000001a;border-radius:.5em;padding:.5em}.timer-parent[data-v-2fe60b9c]{display:flex;align-items:center;max-width:250px;margin:auto}.timer-parent .time-block[data-v-2fe60b9c]{display:flex;flex:1 1 0%;flex-direction:column;align-items:center;justify-content:center;gap:1;padding-top:.5em;padding-bottom:.5em;background-color:var(--764258c4);color:var(--233595bf)}.timer-parent .time-block span[data-v-2fe60b9c]{font-size:1.25em;line-height:1.75em;font-weight:600}.timer-parent .time-block label[data-v-2fe60b9c]{font-size:.65em}.timer-parent .separator[data-v-2fe60b9c]{flex:none}.timer-parent.default.dark .time-block[data-v-2fe60b9c],.timer-parent.default.dark .separator[data-v-2fe60b9c]{color:#fff}.timer-parent.bordered[data-v-2fe60b9c]{gap:.5em}.timer-parent.bordered .time-block[data-v-2fe60b9c]{border:var(--47396143);border-radius:.25em;padding:2}.timer-parent.bordered.dark .time-block[data-v-2fe60b9c]{background-color:#1e1e1e;color:#fff;border-color:gray}.timer-parent.bordered.dark .separator[data-v-2fe60b9c]{color:#fff}.timer-parent.rounded[data-v-2fe60b9c]{gap:.5em}.timer-parent.rounded .time-block[data-v-2fe60b9c]{border-radius:9999px;border:var(--47396143);padding:2;background-color:var(--764258c4);color:var(--233595bf)}.timer-parent.rounded.dark .time-block[data-v-2fe60b9c]{background-color:#1e1e1e;color:#fff;border-color:gray}.timer-parent.rounded.dark .separator[data-v-2fe60b9c]{color:var(--233595bf)}.timer-parent.shadows[data-v-2fe60b9c]{gap:.5em}.timer-parent.shadows .time-block[data-v-2fe60b9c]{border-radius:.375em;padding:2;background-color:var(--764258c4);box-shadow:0 4px 6px -1px #0000001a,0 2px 4px -1px #0000000f;border:none}.timer-parent.shadows.dark .time-block[data-v-2fe60b9c]{background-color:#1e1e1e;color:#fff;border-color:gray}.timer-parent.shadows.dark .separator[data-v-2fe60b9c]{color:#fff}.timer-analog[data-v-2fe60b9c]{display:flex;align-items:center;gap:.5em;max-width:300px;margin:auto}.timer-analog .timer-item[data-v-2fe60b9c]{display:grid;flex:1 1 0%;grid-template-columns:repeat(2,minmax(0,1fr));grid-gap:.25em;gap:.25em}.timer-analog .timer-item p[data-v-2fe60b9c]{padding:.75em .25em;background-color:var(--764258c4);display:flex;align-items:center;justify-content:center;border:var(--47396143);font-size:1.125em;line-height:1.75em;font-weight:500;border-radius:.375em}.timer-analog.dark .timer-item p[data-v-2fe60b9c]{background-color:var(--764258c4);border-color:var(--50b42fe0);color:var(--233595bf)}.blocks-renderer[data-v-9a12731c]{--pc-block-renderer-title-color: var(--4964a56b);--pc-block-renderer-text-color: var(--506783ca);--pc-input-color: var(--57423fd2);display:grid;flex-direction:row}.blocks-renderer>.block-wrapper[data-v-9a12731c]{margin-bottom:1.1em}.blocks-renderer>.block-wrapper[data-v-9a12731c]:last-child{margin-bottom:0}.blocks-renderer>.block-wrapper[block-type=spacer][data-v-9a12731c]{margin-bottom:0}.blocks-renderer>.block-wrapper.image-only-popup[data-v-9a12731c]{margin-bottom:0}.blocks-renderer .block.text-block[data-v-9a12731c] h1{color:var(--pc-block-renderer-title-color);font-size:2em;margin-bottom:.3em;font-family:inherit;text-transform:none!important}.blocks-renderer .block.text-block[data-v-9a12731c] h2{color:var(--pc-block-renderer-title-color);font-size:1.5em;margin-bottom:.3em;font-family:inherit;text-transform:none!important}.blocks-renderer .block.text-block[data-v-9a12731c] p{color:var(--pc-block-renderer-text-color);font-size:.9em;margin-bottom:.3em;min-height:1px;font-family:inherit;text-transform:none!important}.blocks-renderer .block.text-block[data-v-9a12731c] strong{font-weight:700}.blocks-renderer .block.text-block[data-v-9a12731c] em{font-style:italic}.blocks-renderer .block.text-block[data-v-9a12731c] u,.blocks-renderer .block.text-block[data-v-9a12731c] u span{-webkit-text-decoration:underline;text-decoration:underline}.blocks-renderer .block.text-block[data-v-9a12731c] mark{padding:0 5px;line-height:1.15em;-moz-box-decoration-break:clone;-webkit-box-decoration-break:clone;box-decoration-break:clone}.blocks-renderer .block-content-image[data-v-9a12731c]{font-size:0}.blocks-renderer .block-sticker[data-v-9a12731c]{display:flex;justify-content:center}.blocks-renderer .block.image-block[data-v-9a12731c]{margin:auto}.blocks-renderer .block-content[data-v-9a12731c]{-webkit-text-decoration:none;text-decoration:none}.blocks-renderer .block-content form[data-v-9a12731c]{display:grid;grid-gap:.7em;gap:.7em;max-width:max(300px,min(70%,500px));margin:0 auto}.blocks-renderer .block-content form .form-block-input-group[data-v-9a12731c]{position:relative}.blocks-renderer .block-content form .bar-input-form[data-v-9a12731c]{position:relative;display:flex;align-items:center}.blocks-renderer .block-content form .bar-input-form .error-box[data-v-9a12731c]{position:absolute;right:0;bottom:0;background-color:red;width:16px;height:16px;display:flex;align-items:center;justify-content:center;color:#fff;font-size:12px;border-radius:4px}.blocks-renderer .block-content form .icon[data-v-9a12731c]{position:absolute;font-size:18px;left:10px;z-index:2147483647}.blocks-renderer .block-content form .input-wrapper[data-v-9a12731c]{position:relative;width:100%}.blocks-renderer .block-content form .input-wrapper input.form-block-input[data-v-9a12731c]{height:40px!important;width:100%!important;text-indent:36px!important;font-weight:400!important;font-size:14px!important;line-height:1em!important;border-radius:var(--pc-bar-common-radius)!important;border-width:1px!important;border-style:solid!important;transition:.4s all!important;position:relative!important}.blocks-renderer .block-content form .input-wrapper input.form-block-input[data-v-9a12731c]:focus{outline:none!important;border:2px solid var(--pc-input-color)!important}.blocks-renderer .block-content form .input-wrapper input.form-block-input[data-v-9a12731c]::-moz-placeholder{color:var(--c66a5c6e)!important;font-size:14px!important;opacity:.65!important}.blocks-renderer .block-content form .input-wrapper input.form-block-input[data-v-9a12731c]::placeholder{color:var(--c66a5c6e)!important;font-size:14px!important;opacity:.65!important}.blocks-renderer .block-content form .input-wrapper .tooltip[data-v-9a12731c]{position:absolute;display:none;bottom:-22px;right:0;z-index:2147483647;background-color:red;color:#fff;font-size:.65em;padding:2px 4px;border-radius:4px;transition:.4s all}.blocks-renderer .block-content form .input-wrapper:hover .tooltip[data-v-9a12731c]{display:block}.blocks-renderer .block-content .social-networks-block[data-v-9a12731c]{display:grid;grid-auto-flow:column;grid-gap:1em;gap:1em;justify-content:center}.blocks-renderer .block-content hr[data-v-9a12731c]{border:1px solid var(--506783ca)!important;opacity:.25!important;margin:1.25em 0!important}.blocks-renderer .block-content .spacer-block[data-v-9a12731c]{width:100%!important;display:block!important}.blocks-renderer .block-img img[data-v-9a12731c]{height:auto;-o-object-fit:cover;object-fit:cover;min-height:200px;background-color:#f0f0f0}.pop-content-blocks[data-v-8a71c5d5]{--pc-background-image: var(--029dc55f);--pc-main-padding: var(--1f915ff0);padding:var(--1f915ff0);padding:var(--pc-main-padding);text-align:center;position:relative;border-radius:var(--pc-bar-common-radius);overflow-x:hidden;overflow-y:scroll;box-shadow:0 0 20px -3px #0000001f,0 4px 6px -2px #0000000d;background-color:var(--4d1a6935);background-image:var(--029dc55f);background-image:var(--pc-background-image);background-size:cover;max-height:90vh;overflow-y:auto;min-width:200px;width:100%}.pop-content-blocks .pop-thanks-container[data-v-8a71c5d5]{display:grid;align-items:center;grid-gap:2em;gap:2em}.wheel-spin-container[data-v-8a71c5d5]{display:flex;flex-direction:column;align-items:center;justify-content:center}.wheel-spin-container .spin-text[data-v-8a71c5d5]{margin-bottom:1em}.wheel-spin-container .pop-thanks-text[data-v-8a71c5d5],.pop-thanks-container .pop-thanks-text[data-v-8a71c5d5],.wheel-spin-container .spin-text[data-v-8a71c5d5],.pop-thanks-container .spin-text[data-v-8a71c5d5]{color:var(--4019ddb2)}.wheel-spin-container[data-v-8a71c5d5] h1,.pop-thanks-container[data-v-8a71c5d5] h1{color:var(--pc-block-renderer-title-color);font-size:1.5em;margin-bottom:.3em}.wheel-spin-container[data-v-8a71c5d5] h2,.pop-thanks-container[data-v-8a71c5d5] h2{color:var(--pc-block-renderer-title-color);font-size:1.1em;margin-bottom:.3em}.wheel-spin-container[data-v-8a71c5d5] p,.pop-thanks-container[data-v-8a71c5d5] p{color:var(--pc-block-renderer-text-color);font-size:.9em;margin-bottom:.3em;min-height:1px}.wheel-spin-container[data-v-8a71c5d5] strong,.pop-thanks-container[data-v-8a71c5d5] strong{font-weight:700}.wheel-spin-container[data-v-8a71c5d5] em,.pop-thanks-container[data-v-8a71c5d5] em{font-style:italic}.wheel-spin-container[data-v-8a71c5d5] u,.pop-thanks-container[data-v-8a71c5d5] u,.wheel-spin-container[data-v-8a71c5d5] u span,.pop-thanks-container[data-v-8a71c5d5] u span{-webkit-text-decoration:underline;text-decoration:underline}.wheel-spin-container[data-v-8a71c5d5] mark,.pop-thanks-container[data-v-8a71c5d5] mark{padding:0 5px;line-height:1.15em;-moz-box-decoration-break:clone;-webkit-box-decoration-break:clone;box-decoration-break:clone}.pop-content-blocks.isWheelCampaign[data-v-8a71c5d5]{background-image:none;background-color:transparent}.wheel-parent[data-v-31b88d5f]{display:flex;align-items:center;justify-content:start;position:relative;overflow:hidden;height:240px}.wheel-parent .fade-in[data-v-31b88d5f]{animation:fadeInPC 2s}.wheel-parent .font-renderer[data-v-31b88d5f]{position:absolute;left:-9999px;font-family:var(--5b100637);font-size:1px!important}.wheel-parent canvas[data-v-31b88d5f]{font-size:40px}@media (min-width: 768px){.wheel-parent[data-v-31b88d5f]{height:100%}}.wheel-parent .wheel-container[data-v-31b88d5f]{display:flex;flex-direction:column;align-items:center;justify-content:center;height:200px;width:100%;overflow:hidden}@media (min-width: 768px){.wheel-parent .wheel-container[data-v-31b88d5f]{padding:1em;width:300px;height:100%}}.wheel-parent .wheel-container .wheel-wrapper[data-v-31b88d5f]{display:flex;flex-direction:column;align-items:center;justify-content:center;position:absolute;width:400px;height:400px;bottom:-20px;right:20px}@media (min-width: 768px){.wheel-parent .wheel-container .wheel-wrapper[data-v-31b88d5f]{height:500px;width:500px;bottom:0;right:0}}.wheel-parent .wheel-container .wheel-wrapper.right[data-v-31b88d5f],.wheel-parent .wheel-container .wheel-wrapper.right .img-logo[data-v-31b88d5f]{rotate:180deg}.wheel-parent .wheel-container .img-logo[data-v-31b88d5f]{position:absolute;width:36px;height:36px;background-color:#fff;background-size:cover;border-radius:50%;background-position:center;box-shadow:0 0 10px #0000001a}@media (min-width: 768px){.wheel-parent .wheel-container .img-logo[data-v-31b88d5f]{width:50px;height:50px}}@media (min-width: 768px){.wheel-parent.right .wheel-wrapper[data-v-31b88d5f]{left:2px}.wheel-parent.left .wheel-wrapper[data-v-31b88d5f]{right:2px}}.wheel-icon-container[data-v-31b88d5f]{flex:none;position:absolute;z-index:1000000000;margin-right:14px;bottom:40px;right:51px;transform:rotate(45deg)}@media (min-width: 768px){.wheel-icon-container[data-v-31b88d5f]{display:block;bottom:0;right:0;position:relative;margin-right:0;transform:rotate(0)}}.modal-backdrop[data-v-6613473a]{--pc-pop-z-index: 2147483647;--pc-pop-hero-padding: var(--4ccaa294);font-family:var(--4b20f108);position:fixed;z-index:2147483647;z-index:var(--pc-pop-z-index);width:auto;height:auto}.modal-backdrop.fullscreen[data-v-6613473a]{display:flex;align-items:center;justify-content:center;top:0;left:0;bottom:0;right:0;width:100%;height:100%}.modal-card[data-v-6613473a]{background-color:var(--5c654530);border:var(--2814cc39);cursor:default;position:relative;border-radius:var(--pc-bar-common-radius);margin:1em;box-shadow:0 10px 15px -3px #0000001a,0 4px 6px -2px #0000000d;max-height:90vh;width:100%;max-width:var(--4988fff6);width:90%}@media (min-width: 768px){.modal-card[data-v-6613473a]{min-width:var(--715ce3d7)}}.modal-card .modal-content[data-v-6613473a]{overflow-y:auto;border:none;width:100%;height:100%!important;margin:0;background:none;-ms-overflow-style:none!important;scrollbar-width:none!important}.modal-card .modal-content[data-v-6613473a]::-webkit-scrollbar{display:none!important}.modal-card .promo-cta-wrapper[data-v-6613473a]{display:grid;grid-auto-flow:column;grid-gap:1em;gap:1em;align-items:center}.modal-card.wheel[data-v-6613473a]{background-color:var(--5c654530);background-image:var(--266478d2);background-position:center;background-size:cover}.modal-hero-container[data-v-6613473a]{--pc-modal-hero-ideal-height: 200px;--pc-modal-hero-ideal-width: 300px;--pc-modal-hero-ideal-width-large: 400px}.modal-hero-container[show-hero=true] .modal-hero-image[data-v-6613473a]{overflow:hidden;background-image:var(--13ecbec6);background-size:cover;background-position:center;-webkit-user-select:none;-moz-user-select:none;user-select:none;display:block}.modal-hero-container[show-hero=true] .modal-content[data-v-6613473a]{padding:var(--pc-pop-hero-padding);background:none}.modal-hero-container[show-wheel=true][data-v-6613473a]{display:flex;flex-direction:column}@media (min-width: 768px){.modal-hero-container[show-wheel=true][data-v-6613473a]{flex-direction:row;align-items:center}}.modal-hero-container[show-wheel=true] .modal-wheel[data-v-6613473a]{display:block;width:100%}@media (min-width: 768px){.modal-hero-container[show-wheel=true] .modal-wheel[data-v-6613473a]{height:500px;width:300px}}@media (min-width: 768px){.modal-hero-container[show-wheel-right=true][data-v-6613473a]{flex-direction:row-reverse}}.modal-hero-container[layout-type=top] .modal-hero-image[data-v-6613473a]{width:100%;height:var(--pc-modal-hero-ideal-height);margin-bottom:calc(var(--pc-pop-hero-padding) * -3);border-radius:var(--pc-bar-common-radius) var(--pc-bar-common-radius) 0 0}.modal-hero-container[layout-type=left][data-v-6613473a],.modal-hero-container[layout-type=right][data-v-6613473a]{--pc-modal-hero-h-offset:max(var(--pc-pop-hero-padding) * -3, var(--pc-bar-common-radius))}.modal-hero-container[layout-type=left] .modal-hero-image[data-v-6613473a],.modal-hero-container[layout-type=right] .modal-hero-image[data-v-6613473a]{min-height:100%;width:var(--pc-modal-hero-ideal-width);display:block}@media (min-width: 768px){.modal-hero-container[layout-type=left] .modal-hero-image[data-v-6613473a],.modal-hero-container[layout-type=right] .modal-hero-image[data-v-6613473a]{width:var(--pc-modal-hero-ideal-width-large)}}.modal-hero-container[layout-type=left] .modal-hero-image[data-v-6613473a]{border-radius:0 var(--pc-bar-common-radius) var(--pc-bar-common-radius) 0}.modal-hero-container[layout-type=right] .modal-hero-image[data-v-6613473a]{border-radius:var(--pc-bar-common-radius) 0 0 var(--pc-bar-common-radius)}.bounce-enter-active[data-v-6613473a]{animation:bounce-in-6613473a .25s}.bounce-leave-active[data-v-6613473a]{animation:bounce-in-6613473a .5s reverse}@keyframes bounce-in-6613473a{0%{opacity:.5;transform:scale(.8)}50%{transform:scale(1.1)}to{opacity:1;transform:scale(1)}}.slide-enter-active[data-v-6613473a]{animation:slide-in-6613473a .25s}.slide-leave-active[data-v-6613473a]{animation:slide-in-6613473a .5s reverse}@keyframes slide-in-6613473a{0%{opacity:.5;transform:translate(var(--b8b67726))}50%{transform:translate(10%)}to{opacity:1;transform:translate(0)}}.bounce-slide-enter-active[data-v-6613473a]{animation:bounce-slide-in-6613473a .25s}.bounce-slide-leave-active[data-v-6613473a]{animation:bounce-slide-in-6613473a .5s reverse}@keyframes bounce-slide-in-6613473a{0%{opacity:.5;transform:scale(.8) translate(var(--b8b67726))}50%{transform:scale(1.1) translate(10%)}to{opacity:1;transform:scale(1) translate(0)}}.modal-card[data-v-6613473a]{background-color:var(--5c654530);cursor:default;position:relative;margin:1em;box-shadow:0 10px 15px -3px #0000001a,0 4px 6px -2px #0000000d;max-height:90vh}.modal-card .modal-close-button[data-v-6613473a]{position:absolute;top:-1em;right:-1em;cursor:pointer;z-index:1}.modal-card .modal-close-button[is-mobile=true][data-v-6613473a]{right:.5em;top:.5em}.modal-card .close-button[data-v-6613473a]{cursor:pointer;border-radius:50%;-webkit-user-select:none;-moz-user-select:none;user-select:none;position:relative;left:-4px;top:4px;display:flex;justify-content:center;align-items:center}.modal-card .close-button .icon[data-v-6613473a]{margin:3px;font-size:1.3em}.modal-card .close-button[minimal=false] .icon[data-v-6613473a]{color:#000}@media (min-width: 768px){.modal-card .close-button[data-v-6613473a]:hover,.modal-card .close-button[data-v-6613473a]:not([minimal=true]){background-color:#fff;box-shadow:0 0 0 1px #0000001a;color:#000}.modal-card .close-button:hover .icon[data-v-6613473a]{color:#000}}.modal-card .close-button[is-mobile=true][data-v-6613473a]{font-size:1.5em;background:white;box-shadow:0 0 0 1px #0000001a}.modal-card .close-button[is-mobile=true] .icon[data-v-6613473a]{color:#000;margin:2px}.modal-card .modal-content[data-v-6613473a]{min-width:200px;overflow-y:auto}.modal-card .promo-section[data-v-6613473a]{display:flex;position:absolute;top:-30px;left:10px}.modal-card .promo-wrapper[data-v-6613473a]{flex:none;display:grid;grid-auto-flow:column;grid-gap:1em;gap:1em;align-items:center;margin-right:12px}.modal-card .logo[data-v-6613473a]{width:100px}.modal-hero-container[show-hero=true][data-v-6613473a]{display:flex}.modal-hero-container[show-hero=true] .modal-hero-image[data-v-6613473a]{overflow:hidden;background-size:cover;background-position:center;-webkit-user-select:none;-moz-user-select:none;user-select:none}.modal-hero-container[layout-type=top][data-v-6613473a]{flex-direction:column}.modal-hero-container[layout-type=top] .modal-hero-image[data-v-6613473a]{width:100%}.modal-hero-container[layout-type=left] .modal-hero-image[data-v-6613473a],.modal-hero-container[layout-type=right] .modal-hero-image[data-v-6613473a]{min-height:100%}.modal-hero-container[layout-type=left][data-v-6613473a]{flex-direction:row-reverse}.modal-hero-container[layout-type=right][data-v-6613473a]{flex-direction:row}.social-pop[data-v-7f6f2d18]{display:flex;align-items:center;gap:.5em;position:relative;box-shadow:0 0 10px #0000001a;width:320px;padding:.35em 1em .35em .35em;cursor:pointer}.social-pop img[data-v-7f6f2d18]{width:3.5em;height:3.5em;flex:none}.social-pop .empty[data-v-7f6f2d18]{flex:none;width:3.5em;height:3.5em;display:flex;align-items:center;justify-content:center;background-color:#f1f5f9}.social-pop p.first[data-v-7f6f2d18]{font-size:14px;font-weight:600}.social-pop p.second[data-v-7f6f2d18]{opacity:.8;font-size:12px;margin:2px 0}.social-pop span[data-v-7f6f2d18]{font-size:12px;opacity:.5}@media (min-width: 768px){.social-pop.small[data-v-7f6f2d18]{width:320px;padding:.35em 1em .35em .35em}.social-pop.small .img[data-v-7f6f2d18]{width:3.5em;height:3.5em}.social-pop.small p.first[data-v-7f6f2d18]{font-size:14px}.social-pop.small p.second[data-v-7f6f2d18],.social-pop.small span[data-v-7f6f2d18]{font-size:12px}.social-pop.medium[data-v-7f6f2d18]{width:420px;padding:.5em 1.5em .5em .5em}.social-pop.medium .img[data-v-7f6f2d18]{width:5em;height:5em}.social-pop.medium p.first[data-v-7f6f2d18]{font-size:16px}.social-pop.medium p.second[data-v-7f6f2d18],.social-pop.medium span[data-v-7f6f2d18]{font-size:14px}.social-pop.large[data-v-7f6f2d18]{width:500px;padding:.75em 2em .75em .75em}.social-pop.large .img[data-v-7f6f2d18]{width:6em;height:6em}.social-pop.large p.first[data-v-7f6f2d18]{font-size:20px}.social-pop.large p.second[data-v-7f6f2d18],.social-pop.large span[data-v-7f6f2d18]{font-size:16px}}.close[data-v-7f6f2d18]{position:absolute;opacity:.5;right:-4px;top:-4px;width:1.5em;height:1.5em;display:flex;align-items:center;justify-content:center;background-color:var(--11c34447);color:var(--a05d5174);border-radius:50%;cursor:pointer;box-shadow:0 1px 3px #0000001a,0 1px 2px -1px #0000001a}.proof-container[data-v-d6a76909]{position:fixed;display:block;z-index:999999999999999999999}.proof-container.top[data-v-d6a76909]{top:1em;left:50%;transform:translate(-50%)}.proof-container.bottom[data-v-d6a76909]{bottom:1em;left:50%;transform:translate(-50%)}@media (min-width: 768px){.proof-container.bottom-right[data-v-d6a76909]{bottom:1.5em;right:1.5em;top:auto;left:auto;transform:none}.proof-container.bottom-left[data-v-d6a76909]{bottom:1.5em;left:1.5em;top:auto;right:auto;transform:none}.proof-container.top-right[data-v-d6a76909]{top:1.5em;right:1.5em;bottom:auto;left:auto;transform:none}.proof-container.top-left[data-v-d6a76909]{top:1.5em;left:1.5em;bottom:auto;right:auto;transform:none}}')})();