@geniusdynamics/ns8-ui-lib 1.0.2 → 1.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/ns8-ui-lib.es.js +925 -921
- package/dist/ns8-ui-lib.es.js.map +1 -1
- package/dist/ns8-ui-lib.umd.js +8 -8
- package/dist/ns8-ui-lib.umd.js.map +1 -1
- package/dist/src/components/NS/cards/NSBackupCard.vue.d.ts +1 -1
- package/dist/src/components/NS/empty-state/NSEmptyState.vue.d.ts +2 -2
- package/package.json +1 -1
- package/src/components/NS/cards/NSBackupCard.vue +95 -76
- package/src/components/NS/empty-state/NSEmptyState.vue +106 -97
package/dist/ns8-ui-lib.umd.js
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
(function(e,t){typeof exports=="object"&&typeof module<"u"?t(exports,require("vue"),require("lucide-vue-next"),require("vue-router")):typeof define=="function"&&define.amd?define(["exports","vue","lucide-vue-next","vue-router"],t):(e=typeof globalThis<"u"?globalThis:e||self,t(e.Ns8UiLib={},e.Vue,e.LucideVueNext))})(this,(function(exports,No,lucideVueNext){"use strict";function _interopNamespaceDefault(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const i=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,i.get?i:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const No__namespace=_interopNamespaceDefault(No);function te(e,t){const n=typeof e=="string"&&!t?`${e}Context`:t,i=Symbol(n);return[s=>{const a=No.inject(i,s);if(a||a===null)return a;throw new Error(`Injection \`${i.toString()}\` not found. Component must be used within ${Array.isArray(e)?`one of the following components: ${e.join(", ")}`:`\`${e}\``}`)},s=>(No.provide(i,s),s)]}function jt(e,t,n){const i=n.originalEvent.target,s=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&i.addEventListener(e,t,{once:!0}),i.dispatchEvent(s)}function Ut(e,t=Number.NEGATIVE_INFINITY,n=Number.POSITIVE_INFINITY){return Math.min(n,Math.max(t,e))}function bt(e){return No.getCurrentScope()?(No.onScopeDispose(e),!0):!1}function li(e){let t=!1,n;const i=No.effectScope(!0);return(...s)=>(t||(n=i.run(()=>e(...s)),t=!0),n)}function Dl(e){let t=0,n,i;const s=()=>{t-=1,i&&t<=0&&(i.stop(),n=void 0,i=void 0)};return(...a)=>(t+=1,n||(i=No.effectScope(!0),n=i.run(()=>e(...a))),bt(s),n)}function je(e){return typeof e=="function"?e():No.unref(e)}const Je=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const ri=e=>typeof e<"u",ui=Object.prototype.toString,di=e=>ui.call(e)==="[object Object]",Na=()=>{},jo=ci();function ci(){var e,t;return Je&&((e=window?.navigator)==null?void 0:e.userAgent)&&(/iP(?:ad|hone|od)/.test(window.navigator.userAgent)||((t=window?.navigator)==null?void 0:t.maxTouchPoints)>2&&/iPad|Macintosh/.test(window?.navigator.userAgent))}function Tl(e){return No.getCurrentInstance()}function hi(e,t){Tl()&&No.onBeforeUnmount(e,t)}function $e(e){var t;const n=je(e);return(t=n?.$el)!=null?t:n}const Rt=Je?window:void 0;function He(...e){let t,n,i,s;if(typeof e[0]=="string"||Array.isArray(e[0])?([n,i,s]=e,t=Rt):[t,n,i,s]=e,!t)return Na;Array.isArray(n)||(n=[n]),Array.isArray(i)||(i=[i]);const a=[],o=()=>{a.forEach(u=>u()),a.length=0},l=(u,p,h,y)=>(u.addEventListener(p,h,y),()=>u.removeEventListener(p,h,y)),c=No.watch(()=>[$e(t),je(s)],([u,p])=>{if(o(),!u)return;const h=di(p)?{...p}:p;a.push(...n.flatMap(y=>i.map(f=>l(u,y,f,h))))},{immediate:!0,flush:"post"}),d=()=>{c(),o()};return bt(d),d}function Ci(e){return typeof e=="function"?e:typeof e=="string"?t=>t.key===e:Array.isArray(e)?t=>e.includes(t.key):()=>!0}function Gn(...e){let t,n,i={};e.length===3?(t=e[0],n=e[1],i=e[2]):e.length===2?typeof e[1]=="object"?(t=!0,n=e[0],i=e[1]):(t=e[0],n=e[1]):(t=!0,n=e[0]);const{target:s=Rt,eventName:a="keydown",passive:o=!1,dedupe:l=!1}=i,c=Ci(t);return He(s,a,d=>{d.repeat&&je(l)||c(d)&&n(d)},o)}function Ga(){const e=No.ref(!1),t=No.getCurrentInstance();return t&&No.onMounted(()=>{e.value=!0},t),e}function _i(e){return JSON.parse(JSON.stringify(e))}function ne(e,t,n,i={}){var s,a,o;const{clone:l=!1,passive:c=!1,eventName:d,deep:u=!1,defaultValue:p,shouldEmit:h}=i,y=No.getCurrentInstance(),f=n||y?.emit||((s=y?.$emit)==null?void 0:s.bind(y))||((o=(a=y?.proxy)==null?void 0:a.$emit)==null?void 0:o.bind(y?.proxy));let m=d;t||(t="modelValue"),m=m||`update:${t.toString()}`;const C=v=>l?typeof l=="function"?l(v):_i(v):v,g=()=>ri(e[t])?C(e[t]):p,b=v=>{h?h(v)&&f(m,v):f(m,v)};if(c){const v=g(),N=No.ref(v);let w=!1;return No.watch(()=>e[t],E=>{w||(w=!0,N.value=C(E),No.nextTick(()=>w=!1))}),No.watch(N,E=>{!w&&(E!==e[t]||u)&&b(E)},{deep:u}),N}else return No.computed({get(){return g()},set(v){b(v)}})}function qa(e){return e?e.flatMap(t=>t.type===No.Fragment?qa(t.children):[t]):[]}function me(){let e=document.activeElement;if(e==null)return null;for(;e!=null&&e.shadowRoot!=null&&e.shadowRoot.activeElement!=null;)e=e.shadowRoot.activeElement;return e}function Cn(e){if(e===null||typeof e!="object")return!1;const t=Object.getPrototypeOf(e);return t!==null&&t!==Object.prototype&&Object.getPrototypeOf(t)!==null||Symbol.iterator in e?!1:Symbol.toStringTag in e?Object.prototype.toString.call(e)==="[object Module]":!0}function $n(e,t,n=".",i){if(!Cn(t))return $n(e,{},n);const s=Object.assign({},t);for(const a in e){if(a==="__proto__"||a==="constructor")continue;const o=e[a];o!=null&&(Array.isArray(o)&&Array.isArray(s[a])?s[a]=[...o,...s[a]]:Cn(o)&&Cn(s[a])?s[a]=$n(o,s[a],(n?`${n}.`:"")+a.toString()):s[a]=o)}return s}function Pi(e){return(...t)=>t.reduce((n,i)=>$n(n,i,""),{})}const Di=Pi(),[Ya]=te("ConfigProvider");let Bi="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",Ii=(e=21)=>{let t="",n=e;for(;n--;)t+=Bi[Math.random()*64|0];return t};const Ti=Dl(()=>{const e=No.ref(new Map),t=No.ref(),n=No.computed(()=>{for(const o of e.value.values())if(o)return!0;return!1}),i=Ya({scrollBody:No.ref(!0)});let s=null;const a=()=>{document.body.style.paddingRight="",document.body.style.marginRight="",document.body.style.pointerEvents="",document.body.style.removeProperty("--scrollbar-width"),document.body.style.overflow=t.value??"",jo&&s?.(),t.value=void 0};return No.watch(n,(o,l)=>{var c;if(!Je)return;if(!o){l&&a();return}t.value===void 0&&(t.value=document.body.style.overflow);const d=window.innerWidth-document.documentElement.clientWidth,u={padding:d,margin:0},p=(c=i.scrollBody)!=null&&c.value?typeof i.scrollBody.value=="object"?Di({padding:i.scrollBody.value.padding===!0?d:i.scrollBody.value.padding,margin:i.scrollBody.value.margin===!0?d:i.scrollBody.value.margin},u):u:{padding:0,margin:0};d>0&&(document.body.style.paddingRight=typeof p.padding=="number"?`${p.padding}px`:String(p.padding),document.body.style.marginRight=typeof p.margin=="number"?`${p.margin}px`:String(p.margin),document.body.style.setProperty("--scrollbar-width",`${d}px`),document.body.style.overflow="hidden"),jo&&(s=He(document,"touchmove",h=>Ri(h),{passive:!1})),No.nextTick(()=>{document.body.style.pointerEvents="none",document.body.style.overflow="hidden"})},{immediate:!0,flush:"sync"}),e});function ya(e){const t=Ii(6),n=Ti();n.value.set(t,e);const i=No.computed({get:()=>n.value.get(t)??!1,set:s=>n.value.set(t,s)});return hi(()=>{n.value.delete(t)}),i}function Vl(e){const t=window.getComputedStyle(e);if(t.overflowX==="scroll"||t.overflowY==="scroll"||t.overflowX==="auto"&&e.clientWidth<e.scrollWidth||t.overflowY==="auto"&&e.clientHeight<e.scrollHeight)return!0;{const n=e.parentNode;return!(n instanceof Element)||n.tagName==="BODY"?!1:Vl(n)}}function Ri(e){const t=e||window.event,n=t.target;return n instanceof Element&&Vl(n)?!1:t.touches.length>1?!0:(t.preventDefault&&t.cancelable&&t.preventDefault(),!1)}function we(e){const t=Ya({dir:No.ref("ltr")});return No.computed(()=>{var n;return e?.value||((n=t.dir)==null?void 0:n.value)||"ltr"})}function Te(e){const t=No.getCurrentInstance(),n=t?.type.emits,i={};return n!=null&&n.length||console.warn(`No emitted event found. Please check component: ${t?.type.__name}`),n?.forEach(s=>{i[No.toHandlerKey(No.camelize(s))]=(...a)=>e(s,...a)}),i}function at(e){return No.computed(()=>{var t;return je(e)?!!((t=$e(e))!=null&&t.closest("form")):!0})}function R(){const e=No.getCurrentInstance(),t=No.ref(),n=No.computed(()=>{var o,l;return["#text","#comment"].includes((o=t.value)==null?void 0:o.$el.nodeName)?(l=t.value)==null?void 0:l.$el.nextElementSibling:$e(t)}),i=Object.assign({},e.exposed),s={};for(const o in e.props)Object.defineProperty(s,o,{enumerable:!0,configurable:!0,get:()=>e.props[o]});if(Object.keys(i).length>0)for(const o in i)Object.defineProperty(s,o,{enumerable:!0,configurable:!0,get:()=>i[o]});Object.defineProperty(s,"$el",{enumerable:!0,configurable:!0,get:()=>e.vnode.el}),e.exposed=s;function a(o){t.value=o,o&&(Object.defineProperty(s,"$el",{enumerable:!0,configurable:!0,get:()=>o instanceof Element?o:o.$el}),e.exposed=s)}return{forwardRef:a,currentRef:t,currentElement:n}}var Li=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Kt=new WeakMap,$a=new WeakMap,Ba={},_n=0,Nl=function(e){return e&&(e.host||Nl(e.parentNode))},zi=function(e,t){return t.map(function(n){if(e.contains(n))return n;var i=Nl(n);return i&&e.contains(i)?i:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},Ki=function(e,t,n,i){var s=zi(t,Array.isArray(e)?e:[e]);Ba[n]||(Ba[n]=new WeakMap);var a=Ba[n],o=[],l=new Set,c=new Set(s),d=function(p){!p||l.has(p)||(l.add(p),d(p.parentNode))};s.forEach(d);var u=function(p){!p||c.has(p)||Array.prototype.forEach.call(p.children,function(h){if(l.has(h))u(h);else try{var y=h.getAttribute(i),f=y!==null&&y!=="false",m=(Kt.get(h)||0)+1,C=(a.get(h)||0)+1;Kt.set(h,m),a.set(h,C),o.push(h),m===1&&f&&$a.set(h,!0),C===1&&h.setAttribute(n,"true"),f||h.setAttribute(i,"true")}catch(g){console.error("aria-hidden: cannot operate on ",h,g)}})};return u(t),l.clear(),_n++,function(){o.forEach(function(p){var h=Kt.get(p)-1,y=a.get(p)-1;Kt.set(p,h),a.set(p,y),h||($a.has(p)||p.removeAttribute(i),$a.delete(p)),y||p.removeAttribute(n)}),_n--,_n||(Kt=new WeakMap,Kt=new WeakMap,$a=new WeakMap,Ba={})}},Hi=function(e,t,n){n===void 0&&(n="data-aria-hidden");var i=Array.from(Array.isArray(e)?e:[e]),s=Li(e);return s?(i.push.apply(i,Array.from(s.querySelectorAll("[aria-live]"))),Ki(i,s,n,"aria-hidden")):function(){return null}};function ga(e){let t;No.watch(()=>$e(e),n=>{n?t=Hi(n):t&&t()}),No.onUnmounted(()=>{t&&t()})}let Wi=0;function ge(e,t="radix"){const n=Ya({useId:void 0});return No__namespace.useId?`${t}-${No__namespace.useId()}`:n.useId?`${t}-${n.useId()}`:`${t}-${++Wi}`}function Ll(e){const t=No.ref(),n=No.computed(()=>{var s;return((s=t.value)==null?void 0:s.width)??0}),i=No.computed(()=>{var s;return((s=t.value)==null?void 0:s.height)??0});return No.onMounted(()=>{const s=$e(e);if(s){t.value={width:s.offsetWidth,height:s.offsetHeight};const a=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const l=o[0];let c,d;if("borderBoxSize"in l){const u=l.borderBoxSize,p=Array.isArray(u)?u[0]:u;c=p.inlineSize,d=p.blockSize}else c=s.offsetWidth,d=s.offsetHeight;t.value={width:c,height:d}});return a.observe(s,{box:"border-box"}),()=>a.unobserve(s)}else t.value=void 0}),{width:n,height:i}}function zl(e,t){const n=No.ref(e);function i(s){return t[n.value][s]??n.value}return{state:n,dispatch:s=>{n.value=i(s)}}}const Jn=No.defineComponent({name:"PrimitiveSlot",inheritAttrs:!1,setup(e,{attrs:t,slots:n}){return()=>{var i,s;if(!n.default)return null;const a=qa(n.default()),o=a.findIndex(u=>u.type!==No.Comment);if(o===-1)return a;const l=a[o];(i=l.props)==null||delete i.ref;const c=l.props?No.mergeProps(t,l.props):t;t.class&&(s=l.props)!=null&&s.class&&delete l.props.class;const d=No.cloneVNode(l,c);for(const u in c)u.startsWith("on")&&(d.props||(d.props={}),d.props[u]=c[u]);return a.length===1?d:(a[o]=d,a)}}}),O=No.defineComponent({name:"Primitive",inheritAttrs:!1,props:{asChild:{type:Boolean,default:!1},as:{type:[String,Object],default:"div"}},setup(e,{attrs:t,slots:n}){const i=e.asChild?"template":e.as;return typeof i=="string"&&["area","img","input"].includes(i)?()=>No.h(i,t):i!=="template"?()=>No.h(e.as,t,{default:n.default}):()=>No.h(Jn,t,{default:n.default})}});function Re(){const e=No.ref(),t=No.computed(()=>{var n,i;return["#text","#comment"].includes((n=e.value)==null?void 0:n.$el.nodeName)?(i=e.value)==null?void 0:i.$el.nextElementSibling:$e(e)});return{primitiveElement:e,currentElement:t}}function Xi(e,t){var n;const i=No.ref({}),s=No.ref("none"),a=No.ref(e),o=e.value?"mounted":"unmounted";let l;const c=((n=t.value)==null?void 0:n.ownerDocument.defaultView)??Rt,{state:d,dispatch:u}=zl(o,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}}),p=C=>{var g;if(Je){const b=new CustomEvent(C,{bubbles:!1,cancelable:!1});(g=t.value)==null||g.dispatchEvent(b)}};No.watch(e,async(C,g)=>{var b;const v=g!==C;if(await No.nextTick(),v){const N=s.value,w=Ia(t.value);C?(u("MOUNT"),p("enter"),w==="none"&&p("after-enter")):w==="none"||((b=i.value)==null?void 0:b.display)==="none"?(u("UNMOUNT"),p("leave"),p("after-leave")):g&&N!==w?(u("ANIMATION_OUT"),p("leave")):(u("UNMOUNT"),p("after-leave"))}},{immediate:!0});const h=C=>{const g=Ia(t.value),b=g.includes(C.animationName),v=d.value==="mounted"?"enter":"leave";if(C.target===t.value&&b&&(p(`after-${v}`),u("ANIMATION_END"),!a.value)){const N=t.value.style.animationFillMode;t.value.style.animationFillMode="forwards",l=c?.setTimeout(()=>{var w;((w=t.value)==null?void 0:w.style.animationFillMode)==="forwards"&&(t.value.style.animationFillMode=N)})}C.target===t.value&&g==="none"&&u("ANIMATION_END")},y=C=>{C.target===t.value&&(s.value=Ia(t.value))},f=No.watch(t,(C,g)=>{C?(i.value=getComputedStyle(C),C.addEventListener("animationstart",y),C.addEventListener("animationcancel",h),C.addEventListener("animationend",h)):(u("ANIMATION_END"),l!==void 0&&c?.clearTimeout(l),g?.removeEventListener("animationstart",y),g?.removeEventListener("animationcancel",h),g?.removeEventListener("animationend",h))},{immediate:!0}),m=No.watch(d,()=>{const C=Ia(t.value);s.value=d.value==="mounted"?C:"none"});return No.onUnmounted(()=>{f(),m()}),{isPresent:No.computed(()=>["mounted","unmountSuspended"].includes(d.value))}}function Ia(e){return e&&getComputedStyle(e).animationName||"none"}const Pe=No.defineComponent({name:"Presence",props:{present:{type:Boolean,required:!0},forceMount:{type:Boolean}},slots:{},setup(e,{slots:t,expose:n}){var i;const{present:s,forceMount:a}=No.toRefs(e),o=No.ref(),{isPresent:l}=Xi(s,o);n({present:l});let c=t.default({present:l});c=qa(c||[]);const d=No.getCurrentInstance();if(c&&c?.length>1){const u=(i=d?.parent)!=null&&i.type.name?`<${d.parent.type.name} />`:"component";throw new Error([`Detected an invalid children for \`${u}\` for \`Presence\` component.`,"","Note: Presence works similarly to `v-if` directly, but it waits for animation/transition to finished before unmounting. So it expect only one direct child of valid VNode type.","You can apply a few solutions:",["Provide a single child element so that `presence` directive attach correctly.","Ensure the first child is an actual element instead of a raw text node or comment node."].map(p=>` - ${p}`).join(`
|
|
1
|
+
(function(e,t){typeof exports=="object"&&typeof module<"u"?t(exports,require("vue"),require("lucide-vue-next"),require("vue-router")):typeof define=="function"&&define.amd?define(["exports","vue","lucide-vue-next","vue-router"],t):(e=typeof globalThis<"u"?globalThis:e||self,t(e.Ns8UiLib={},e.Vue,e.LucideVueNext))})(this,(function(exports,No,lucideVueNext){"use strict";function _interopNamespaceDefault(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const i=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,i.get?i:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const No__namespace=_interopNamespaceDefault(No);function te(e,t){const n=typeof e=="string"&&!t?`${e}Context`:t,i=Symbol(n);return[s=>{const a=No.inject(i,s);if(a||a===null)return a;throw new Error(`Injection \`${i.toString()}\` not found. Component must be used within ${Array.isArray(e)?`one of the following components: ${e.join(", ")}`:`\`${e}\``}`)},s=>(No.provide(i,s),s)]}function jt(e,t,n){const i=n.originalEvent.target,s=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&i.addEventListener(e,t,{once:!0}),i.dispatchEvent(s)}function Ut(e,t=Number.NEGATIVE_INFINITY,n=Number.POSITIVE_INFINITY){return Math.min(n,Math.max(t,e))}function bt(e){return No.getCurrentScope()?(No.onScopeDispose(e),!0):!1}function li(e){let t=!1,n;const i=No.effectScope(!0);return(...s)=>(t||(n=i.run(()=>e(...s)),t=!0),n)}function Dl(e){let t=0,n,i;const s=()=>{t-=1,i&&t<=0&&(i.stop(),n=void 0,i=void 0)};return(...a)=>(t+=1,n||(i=No.effectScope(!0),n=i.run(()=>e(...a))),bt(s),n)}function je(e){return typeof e=="function"?e():No.unref(e)}const Je=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const ri=e=>typeof e<"u",ui=Object.prototype.toString,di=e=>ui.call(e)==="[object Object]",Na=()=>{},jo=ci();function ci(){var e,t;return Je&&((e=window?.navigator)==null?void 0:e.userAgent)&&(/iP(?:ad|hone|od)/.test(window.navigator.userAgent)||((t=window?.navigator)==null?void 0:t.maxTouchPoints)>2&&/iPad|Macintosh/.test(window?.navigator.userAgent))}function Tl(e){return No.getCurrentInstance()}function hi(e,t){Tl()&&No.onBeforeUnmount(e,t)}function $e(e){var t;const n=je(e);return(t=n?.$el)!=null?t:n}const Rt=Je?window:void 0;function He(...e){let t,n,i,s;if(typeof e[0]=="string"||Array.isArray(e[0])?([n,i,s]=e,t=Rt):[t,n,i,s]=e,!t)return Na;Array.isArray(n)||(n=[n]),Array.isArray(i)||(i=[i]);const a=[],o=()=>{a.forEach(d=>d()),a.length=0},l=(d,p,h,y)=>(d.addEventListener(p,h,y),()=>d.removeEventListener(p,h,y)),c=No.watch(()=>[$e(t),je(s)],([d,p])=>{if(o(),!d)return;const h=di(p)?{...p}:p;a.push(...n.flatMap(y=>i.map(f=>l(d,y,f,h))))},{immediate:!0,flush:"post"}),u=()=>{c(),o()};return bt(u),u}function Ci(e){return typeof e=="function"?e:typeof e=="string"?t=>t.key===e:Array.isArray(e)?t=>e.includes(t.key):()=>!0}function Gn(...e){let t,n,i={};e.length===3?(t=e[0],n=e[1],i=e[2]):e.length===2?typeof e[1]=="object"?(t=!0,n=e[0],i=e[1]):(t=e[0],n=e[1]):(t=!0,n=e[0]);const{target:s=Rt,eventName:a="keydown",passive:o=!1,dedupe:l=!1}=i,c=Ci(t);return He(s,a,u=>{u.repeat&&je(l)||c(u)&&n(u)},o)}function Ga(){const e=No.ref(!1),t=No.getCurrentInstance();return t&&No.onMounted(()=>{e.value=!0},t),e}function _i(e){return JSON.parse(JSON.stringify(e))}function ne(e,t,n,i={}){var s,a,o;const{clone:l=!1,passive:c=!1,eventName:u,deep:d=!1,defaultValue:p,shouldEmit:h}=i,y=No.getCurrentInstance(),f=n||y?.emit||((s=y?.$emit)==null?void 0:s.bind(y))||((o=(a=y?.proxy)==null?void 0:a.$emit)==null?void 0:o.bind(y?.proxy));let m=u;t||(t="modelValue"),m=m||`update:${t.toString()}`;const C=v=>l?typeof l=="function"?l(v):_i(v):v,g=()=>ri(e[t])?C(e[t]):p,b=v=>{h?h(v)&&f(m,v):f(m,v)};if(c){const v=g(),N=No.ref(v);let w=!1;return No.watch(()=>e[t],E=>{w||(w=!0,N.value=C(E),No.nextTick(()=>w=!1))}),No.watch(N,E=>{!w&&(E!==e[t]||d)&&b(E)},{deep:d}),N}else return No.computed({get(){return g()},set(v){b(v)}})}function qa(e){return e?e.flatMap(t=>t.type===No.Fragment?qa(t.children):[t]):[]}function me(){let e=document.activeElement;if(e==null)return null;for(;e!=null&&e.shadowRoot!=null&&e.shadowRoot.activeElement!=null;)e=e.shadowRoot.activeElement;return e}function Cn(e){if(e===null||typeof e!="object")return!1;const t=Object.getPrototypeOf(e);return t!==null&&t!==Object.prototype&&Object.getPrototypeOf(t)!==null||Symbol.iterator in e?!1:Symbol.toStringTag in e?Object.prototype.toString.call(e)==="[object Module]":!0}function $n(e,t,n=".",i){if(!Cn(t))return $n(e,{},n);const s=Object.assign({},t);for(const a in e){if(a==="__proto__"||a==="constructor")continue;const o=e[a];o!=null&&(Array.isArray(o)&&Array.isArray(s[a])?s[a]=[...o,...s[a]]:Cn(o)&&Cn(s[a])?s[a]=$n(o,s[a],(n?`${n}.`:"")+a.toString()):s[a]=o)}return s}function Pi(e){return(...t)=>t.reduce((n,i)=>$n(n,i,""),{})}const Di=Pi(),[Ya]=te("ConfigProvider");let Bi="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",Ii=(e=21)=>{let t="",n=e;for(;n--;)t+=Bi[Math.random()*64|0];return t};const Ti=Dl(()=>{const e=No.ref(new Map),t=No.ref(),n=No.computed(()=>{for(const o of e.value.values())if(o)return!0;return!1}),i=Ya({scrollBody:No.ref(!0)});let s=null;const a=()=>{document.body.style.paddingRight="",document.body.style.marginRight="",document.body.style.pointerEvents="",document.body.style.removeProperty("--scrollbar-width"),document.body.style.overflow=t.value??"",jo&&s?.(),t.value=void 0};return No.watch(n,(o,l)=>{var c;if(!Je)return;if(!o){l&&a();return}t.value===void 0&&(t.value=document.body.style.overflow);const u=window.innerWidth-document.documentElement.clientWidth,d={padding:u,margin:0},p=(c=i.scrollBody)!=null&&c.value?typeof i.scrollBody.value=="object"?Di({padding:i.scrollBody.value.padding===!0?u:i.scrollBody.value.padding,margin:i.scrollBody.value.margin===!0?u:i.scrollBody.value.margin},d):d:{padding:0,margin:0};u>0&&(document.body.style.paddingRight=typeof p.padding=="number"?`${p.padding}px`:String(p.padding),document.body.style.marginRight=typeof p.margin=="number"?`${p.margin}px`:String(p.margin),document.body.style.setProperty("--scrollbar-width",`${u}px`),document.body.style.overflow="hidden"),jo&&(s=He(document,"touchmove",h=>Ri(h),{passive:!1})),No.nextTick(()=>{document.body.style.pointerEvents="none",document.body.style.overflow="hidden"})},{immediate:!0,flush:"sync"}),e});function ya(e){const t=Ii(6),n=Ti();n.value.set(t,e);const i=No.computed({get:()=>n.value.get(t)??!1,set:s=>n.value.set(t,s)});return hi(()=>{n.value.delete(t)}),i}function Vl(e){const t=window.getComputedStyle(e);if(t.overflowX==="scroll"||t.overflowY==="scroll"||t.overflowX==="auto"&&e.clientWidth<e.scrollWidth||t.overflowY==="auto"&&e.clientHeight<e.scrollHeight)return!0;{const n=e.parentNode;return!(n instanceof Element)||n.tagName==="BODY"?!1:Vl(n)}}function Ri(e){const t=e||window.event,n=t.target;return n instanceof Element&&Vl(n)?!1:t.touches.length>1?!0:(t.preventDefault&&t.cancelable&&t.preventDefault(),!1)}function we(e){const t=Ya({dir:No.ref("ltr")});return No.computed(()=>{var n;return e?.value||((n=t.dir)==null?void 0:n.value)||"ltr"})}function Te(e){const t=No.getCurrentInstance(),n=t?.type.emits,i={};return n!=null&&n.length||console.warn(`No emitted event found. Please check component: ${t?.type.__name}`),n?.forEach(s=>{i[No.toHandlerKey(No.camelize(s))]=(...a)=>e(s,...a)}),i}function at(e){return No.computed(()=>{var t;return je(e)?!!((t=$e(e))!=null&&t.closest("form")):!0})}function R(){const e=No.getCurrentInstance(),t=No.ref(),n=No.computed(()=>{var o,l;return["#text","#comment"].includes((o=t.value)==null?void 0:o.$el.nodeName)?(l=t.value)==null?void 0:l.$el.nextElementSibling:$e(t)}),i=Object.assign({},e.exposed),s={};for(const o in e.props)Object.defineProperty(s,o,{enumerable:!0,configurable:!0,get:()=>e.props[o]});if(Object.keys(i).length>0)for(const o in i)Object.defineProperty(s,o,{enumerable:!0,configurable:!0,get:()=>i[o]});Object.defineProperty(s,"$el",{enumerable:!0,configurable:!0,get:()=>e.vnode.el}),e.exposed=s;function a(o){t.value=o,o&&(Object.defineProperty(s,"$el",{enumerable:!0,configurable:!0,get:()=>o instanceof Element?o:o.$el}),e.exposed=s)}return{forwardRef:a,currentRef:t,currentElement:n}}var Li=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Kt=new WeakMap,$a=new WeakMap,Ba={},_n=0,Nl=function(e){return e&&(e.host||Nl(e.parentNode))},zi=function(e,t){return t.map(function(n){if(e.contains(n))return n;var i=Nl(n);return i&&e.contains(i)?i:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},Ki=function(e,t,n,i){var s=zi(t,Array.isArray(e)?e:[e]);Ba[n]||(Ba[n]=new WeakMap);var a=Ba[n],o=[],l=new Set,c=new Set(s),u=function(p){!p||l.has(p)||(l.add(p),u(p.parentNode))};s.forEach(u);var d=function(p){!p||c.has(p)||Array.prototype.forEach.call(p.children,function(h){if(l.has(h))d(h);else try{var y=h.getAttribute(i),f=y!==null&&y!=="false",m=(Kt.get(h)||0)+1,C=(a.get(h)||0)+1;Kt.set(h,m),a.set(h,C),o.push(h),m===1&&f&&$a.set(h,!0),C===1&&h.setAttribute(n,"true"),f||h.setAttribute(i,"true")}catch(g){console.error("aria-hidden: cannot operate on ",h,g)}})};return d(t),l.clear(),_n++,function(){o.forEach(function(p){var h=Kt.get(p)-1,y=a.get(p)-1;Kt.set(p,h),a.set(p,y),h||($a.has(p)||p.removeAttribute(i),$a.delete(p)),y||p.removeAttribute(n)}),_n--,_n||(Kt=new WeakMap,Kt=new WeakMap,$a=new WeakMap,Ba={})}},Hi=function(e,t,n){n===void 0&&(n="data-aria-hidden");var i=Array.from(Array.isArray(e)?e:[e]),s=Li(e);return s?(i.push.apply(i,Array.from(s.querySelectorAll("[aria-live]"))),Ki(i,s,n,"aria-hidden")):function(){return null}};function ga(e){let t;No.watch(()=>$e(e),n=>{n?t=Hi(n):t&&t()}),No.onUnmounted(()=>{t&&t()})}let Wi=0;function ge(e,t="radix"){const n=Ya({useId:void 0});return No__namespace.useId?`${t}-${No__namespace.useId()}`:n.useId?`${t}-${n.useId()}`:`${t}-${++Wi}`}function Ll(e){const t=No.ref(),n=No.computed(()=>{var s;return((s=t.value)==null?void 0:s.width)??0}),i=No.computed(()=>{var s;return((s=t.value)==null?void 0:s.height)??0});return No.onMounted(()=>{const s=$e(e);if(s){t.value={width:s.offsetWidth,height:s.offsetHeight};const a=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const l=o[0];let c,u;if("borderBoxSize"in l){const d=l.borderBoxSize,p=Array.isArray(d)?d[0]:d;c=p.inlineSize,u=p.blockSize}else c=s.offsetWidth,u=s.offsetHeight;t.value={width:c,height:u}});return a.observe(s,{box:"border-box"}),()=>a.unobserve(s)}else t.value=void 0}),{width:n,height:i}}function zl(e,t){const n=No.ref(e);function i(s){return t[n.value][s]??n.value}return{state:n,dispatch:s=>{n.value=i(s)}}}const Jn=No.defineComponent({name:"PrimitiveSlot",inheritAttrs:!1,setup(e,{attrs:t,slots:n}){return()=>{var i,s;if(!n.default)return null;const a=qa(n.default()),o=a.findIndex(d=>d.type!==No.Comment);if(o===-1)return a;const l=a[o];(i=l.props)==null||delete i.ref;const c=l.props?No.mergeProps(t,l.props):t;t.class&&(s=l.props)!=null&&s.class&&delete l.props.class;const u=No.cloneVNode(l,c);for(const d in c)d.startsWith("on")&&(u.props||(u.props={}),u.props[d]=c[d]);return a.length===1?u:(a[o]=u,a)}}}),O=No.defineComponent({name:"Primitive",inheritAttrs:!1,props:{asChild:{type:Boolean,default:!1},as:{type:[String,Object],default:"div"}},setup(e,{attrs:t,slots:n}){const i=e.asChild?"template":e.as;return typeof i=="string"&&["area","img","input"].includes(i)?()=>No.h(i,t):i!=="template"?()=>No.h(e.as,t,{default:n.default}):()=>No.h(Jn,t,{default:n.default})}});function Re(){const e=No.ref(),t=No.computed(()=>{var n,i;return["#text","#comment"].includes((n=e.value)==null?void 0:n.$el.nodeName)?(i=e.value)==null?void 0:i.$el.nextElementSibling:$e(e)});return{primitiveElement:e,currentElement:t}}function Xi(e,t){var n;const i=No.ref({}),s=No.ref("none"),a=No.ref(e),o=e.value?"mounted":"unmounted";let l;const c=((n=t.value)==null?void 0:n.ownerDocument.defaultView)??Rt,{state:u,dispatch:d}=zl(o,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}}),p=C=>{var g;if(Je){const b=new CustomEvent(C,{bubbles:!1,cancelable:!1});(g=t.value)==null||g.dispatchEvent(b)}};No.watch(e,async(C,g)=>{var b;const v=g!==C;if(await No.nextTick(),v){const N=s.value,w=Ia(t.value);C?(d("MOUNT"),p("enter"),w==="none"&&p("after-enter")):w==="none"||((b=i.value)==null?void 0:b.display)==="none"?(d("UNMOUNT"),p("leave"),p("after-leave")):g&&N!==w?(d("ANIMATION_OUT"),p("leave")):(d("UNMOUNT"),p("after-leave"))}},{immediate:!0});const h=C=>{const g=Ia(t.value),b=g.includes(C.animationName),v=u.value==="mounted"?"enter":"leave";if(C.target===t.value&&b&&(p(`after-${v}`),d("ANIMATION_END"),!a.value)){const N=t.value.style.animationFillMode;t.value.style.animationFillMode="forwards",l=c?.setTimeout(()=>{var w;((w=t.value)==null?void 0:w.style.animationFillMode)==="forwards"&&(t.value.style.animationFillMode=N)})}C.target===t.value&&g==="none"&&d("ANIMATION_END")},y=C=>{C.target===t.value&&(s.value=Ia(t.value))},f=No.watch(t,(C,g)=>{C?(i.value=getComputedStyle(C),C.addEventListener("animationstart",y),C.addEventListener("animationcancel",h),C.addEventListener("animationend",h)):(d("ANIMATION_END"),l!==void 0&&c?.clearTimeout(l),g?.removeEventListener("animationstart",y),g?.removeEventListener("animationcancel",h),g?.removeEventListener("animationend",h))},{immediate:!0}),m=No.watch(u,()=>{const C=Ia(t.value);s.value=u.value==="mounted"?C:"none"});return No.onUnmounted(()=>{f(),m()}),{isPresent:No.computed(()=>["mounted","unmountSuspended"].includes(u.value))}}function Ia(e){return e&&getComputedStyle(e).animationName||"none"}const Pe=No.defineComponent({name:"Presence",props:{present:{type:Boolean,required:!0},forceMount:{type:Boolean}},slots:{},setup(e,{slots:t,expose:n}){var i;const{present:s,forceMount:a}=No.toRefs(e),o=No.ref(),{isPresent:l}=Xi(s,o);n({present:l});let c=t.default({present:l});c=qa(c||[]);const u=No.getCurrentInstance();if(c&&c?.length>1){const d=(i=u?.parent)!=null&&i.type.name?`<${u.parent.type.name} />`:"component";throw new Error([`Detected an invalid children for \`${d}\` for \`Presence\` component.`,"","Note: Presence works similarly to `v-if` directly, but it waits for animation/transition to finished before unmounting. So it expect only one direct child of valid VNode type.","You can apply a few solutions:",["Provide a single child element so that `presence` directive attach correctly.","Ensure the first child is an actual element instead of a raw text node or comment node."].map(p=>` - ${p}`).join(`
|
|
2
2
|
`)].join(`
|
|
3
|
-
`))}return()=>a.value||s.value||l.value?No.h(t.default({present:l})[0],{ref:
|
|
3
|
+
`))}return()=>a.value||s.value||l.value?No.h(t.default({present:l})[0],{ref:d=>{const p=$e(d);return typeof p?.hasAttribute>"u"||(p!=null&&p.hasAttribute("data-radix-popper-content-wrapper")?o.value=p.firstElementChild:o.value=p),p}}):null}}),[ot]=te("DialogRoot"),rt=No.defineComponent({__name:"Teleport",props:{to:{default:"body"},disabled:{type:Boolean},forceMount:{type:Boolean}},setup(e){const t=Ga();return(n,i)=>No.unref(t)||n.forceMount?(No.openBlock(),No.createBlock(No.Teleport,{key:0,to:n.to,disabled:n.disabled},[No.renderSlot(n.$slots,"default")],8,["to","disabled"])):No.createCommentVNode("",!0)}}),Iv=No.defineComponent({__name:"DialogPortal",props:{to:{},disabled:{type:Boolean},forceMount:{type:Boolean}},setup(e){const t=e;return(n,i)=>(No.openBlock(),No.createBlock(No.unref(rt),No.normalizeProps(No.guardReactiveProps(t)),{default:No.withCtx(()=>[No.renderSlot(n.$slots,"default")]),_:3},16))}}),lu="dismissableLayer.pointerDownOutside",su="dismissableLayer.focusOutside";function jl(e,t){const n=t.closest("[data-dismissable-layer]"),i=e.dataset.dismissableLayer===""?e:e.querySelector("[data-dismissable-layer]"),s=Array.from(e.ownerDocument.querySelectorAll("[data-dismissable-layer]"));return!!(n&&i===n||s.indexOf(i)<s.indexOf(n))}function Ul(e,t){var n;const i=((n=t?.value)==null?void 0:n.ownerDocument)??globalThis?.document,s=No.ref(!1),a=No.ref(()=>{});return No.watchEffect(o=>{if(!Je)return;const l=async u=>{const d=u.target;if(t!=null&&t.value){if(jl(t.value,d)){s.value=!1;return}if(u.target&&!s.value){let p=function(){jt(lu,e,h)};const h={originalEvent:u};u.pointerType==="touch"?(i.removeEventListener("click",a.value),a.value=p,i.addEventListener("click",a.value,{once:!0})):p()}else i.removeEventListener("click",a.value);s.value=!1}},c=window.setTimeout(()=>{i.addEventListener("pointerdown",l)},0);o(()=>{window.clearTimeout(c),i.removeEventListener("pointerdown",l),i.removeEventListener("click",a.value)})}),{onPointerDownCapture:()=>s.value=!0}}function Gl(e,t){var n;const i=((n=t?.value)==null?void 0:n.ownerDocument)??globalThis?.document,s=No.ref(!1);return No.watchEffect(a=>{if(!Je)return;const o=async l=>{t!=null&&t.value&&(await No.nextTick(),!(!t.value||jl(t.value,l.target))&&l.target&&!s.value&&jt(su,e,{originalEvent:l}))};i.addEventListener("focusin",o),a(()=>i.removeEventListener("focusin",o))}),{onFocusCapture:()=>s.value=!0,onBlurCapture:()=>s.value=!1}}const Ge=No.reactive({layersRoot:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Ct=No.defineComponent({__name:"DismissableLayer",props:{disableOutsidePointerEvents:{type:Boolean,default:!1},asChild:{type:Boolean},as:{}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","dismiss"],setup(e,{emit:t}){const n=e,i=t,{forwardRef:s,currentElement:a}=R(),o=No.computed(()=>{var f;return((f=a.value)==null?void 0:f.ownerDocument)??globalThis.document}),l=No.computed(()=>Ge.layersRoot),c=No.computed(()=>a.value?Array.from(l.value).indexOf(a.value):-1),u=No.computed(()=>Ge.layersWithOutsidePointerEventsDisabled.size>0),d=No.computed(()=>{const f=Array.from(l.value),[m]=[...Ge.layersWithOutsidePointerEventsDisabled].slice(-1),C=f.indexOf(m);return c.value>=C}),p=Ul(async f=>{const m=[...Ge.branches].some(C=>C?.contains(f.target));!d.value||m||(i("pointerDownOutside",f),i("interactOutside",f),await No.nextTick(),f.defaultPrevented||i("dismiss"))},a),h=Gl(f=>{[...Ge.branches].some(m=>m?.contains(f.target))||(i("focusOutside",f),i("interactOutside",f),f.defaultPrevented||i("dismiss"))},a);Gn("Escape",f=>{c.value===l.value.size-1&&(i("escapeKeyDown",f),f.defaultPrevented||i("dismiss"))});let y;return No.watchEffect(f=>{a.value&&(n.disableOutsidePointerEvents&&(Ge.layersWithOutsidePointerEventsDisabled.size===0&&(y=o.value.body.style.pointerEvents,o.value.body.style.pointerEvents="none"),Ge.layersWithOutsidePointerEventsDisabled.add(a.value)),l.value.add(a.value),f(()=>{n.disableOutsidePointerEvents&&Ge.layersWithOutsidePointerEventsDisabled.size===1&&(o.value.body.style.pointerEvents=y)}))}),No.watchEffect(f=>{f(()=>{a.value&&(l.value.delete(a.value),Ge.layersWithOutsidePointerEventsDisabled.delete(a.value))})}),(f,m)=>(No.openBlock(),No.createBlock(No.unref(O),{ref:No.unref(s),"as-child":f.asChild,as:f.as,"data-dismissable-layer":"",style:No.normalizeStyle({pointerEvents:u.value?d.value?"auto":"none":void 0}),onFocusCapture:No.unref(h).onFocusCapture,onBlurCapture:No.unref(h).onBlurCapture,onPointerdownCapture:No.unref(p).onPointerDownCapture},{default:No.withCtx(()=>[No.renderSlot(f.$slots,"default")]),_:3},8,["as-child","as","style","onFocusCapture","onBlurCapture","onPointerdownCapture"]))}}),xn="focusScope.autoFocusOnMount",Sn="focusScope.autoFocusOnUnmount",qo={bubbles:!1,cancelable:!0};function Ma(e,{select:t=!1}={}){const n=me();for(const i of e)if(pt(i,{select:t}),me()!==n)return!0}function iu(e){const t=eo(e),n=Yo(t,e),i=Yo(t.reverse(),e);return[n,i]}function eo(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:i=>{const s=i.tagName==="INPUT"&&i.type==="hidden";return i.disabled||i.hidden||s?NodeFilter.FILTER_SKIP:i.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function Yo(e,t){for(const n of e)if(!uu(n,{upTo:t}))return n}function uu(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function du(e){return e instanceof HTMLInputElement&&"select"in e}function pt(e,{select:t=!1}={}){if(e&&e.focus){const n=me();e.focus({preventScroll:!0}),e!==n&&du(e)&&t&&e.select()}}const cu=li(()=>No.ref([]));function fu(){const e=cu();return{add(t){const n=e.value[0];t!==n&&n?.pause(),e.value=Xo(e.value,t),e.value.unshift(t)},remove(t){var n;e.value=Xo(e.value,t),(n=e.value[0])==null||n.resume()}}}function Xo(e,t){const n=[...e],i=n.indexOf(t);return i!==-1&&n.splice(i,1),n}function pu(e){return e.filter(t=>t.tagName!=="A")}const Za=No.defineComponent({__name:"FocusScope",props:{loop:{type:Boolean,default:!1},trapped:{type:Boolean,default:!1},asChild:{type:Boolean},as:{}},emits:["mountAutoFocus","unmountAutoFocus"],setup(e,{emit:t}){const n=e,i=t,{currentRef:s,currentElement:a}=R(),o=No.ref(null),l=fu(),c=No.reactive({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}});No.watchEffect(d=>{if(!Je)return;const p=a.value;if(!n.trapped)return;function h(C){if(c.paused||!p)return;const g=C.target;p.contains(g)?o.value=g:pt(o.value,{select:!0})}function y(C){if(c.paused||!p)return;const g=C.relatedTarget;g!==null&&(p.contains(g)||pt(o.value,{select:!0}))}function f(C){p.contains(o.value)||pt(p)}document.addEventListener("focusin",h),document.addEventListener("focusout",y);const m=new MutationObserver(f);p&&m.observe(p,{childList:!0,subtree:!0}),d(()=>{document.removeEventListener("focusin",h),document.removeEventListener("focusout",y),m.disconnect()})}),No.watchEffect(async d=>{const p=a.value;if(await No.nextTick(),!p)return;l.add(c);const h=me();if(!p.contains(h)){const y=new CustomEvent(xn,qo);p.addEventListener(xn,f=>i("mountAutoFocus",f)),p.dispatchEvent(y),y.defaultPrevented||(Ma(pu(eo(p)),{select:!0}),me()===h&&pt(p))}d(()=>{p.removeEventListener(xn,m=>i("mountAutoFocus",m));const y=new CustomEvent(Sn,qo),f=m=>{i("unmountAutoFocus",m)};p.addEventListener(Sn,f),p.dispatchEvent(y),setTimeout(()=>{y.defaultPrevented||pt(h??document.body,{select:!0}),p.removeEventListener(Sn,f),l.remove(c)},0)})});function u(d){if(!n.loop&&!n.trapped||c.paused)return;const p=d.key==="Tab"&&!d.altKey&&!d.ctrlKey&&!d.metaKey,h=me();if(p&&h){const y=d.currentTarget,[f,m]=iu(y);f&&m?!d.shiftKey&&h===m?(d.preventDefault(),n.loop&&pt(f,{select:!0})):d.shiftKey&&h===f&&(d.preventDefault(),n.loop&&pt(m,{select:!0})):h===y&&d.preventDefault()}}return(d,p)=>(No.openBlock(),No.createBlock(No.unref(O),{ref_key:"currentRef",ref:s,tabindex:"-1","as-child":d.asChild,as:d.as,onKeydown:u},{default:No.withCtx(()=>[No.renderSlot(d.$slots,"default")]),_:3},8,["as-child","as"]))}});function to(e){return e?"open":"closed"}const wu="DialogTitle",_u="DialogContent";function xu({titleName:e=wu,contentName:t=_u,componentLink:n="dialog.html#title",titleId:i,descriptionId:s,contentElement:a}){const o=`Warning: \`${t}\` requires a \`${e}\` for the component to be accessible for screen reader users.
|
|
4
4
|
|
|
5
5
|
If you want to hide the \`${e}\`, you can wrap it with our VisuallyHidden component.
|
|
6
6
|
|
|
7
|
-
For more information, see https://www.radix-vue.com/components/${n}`,l=`Warning: Missing \`Description\` or \`aria-describedby="undefined"\` for ${t}.`;No.onMounted(()=>{var c;document.getElementById(i)||console.warn(o);const d=(c=a.value)==null?void 0:c.getAttribute("aria-describedby");s&&d&&(document.getElementById(s)||console.warn(l))})}const Yl=No.defineComponent({__name:"DialogContentImpl",props:{forceMount:{type:Boolean},trapFocus:{type:Boolean},disableOutsidePointerEvents:{type:Boolean},asChild:{type:Boolean},as:{}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","openAutoFocus","closeAutoFocus"],setup(e,{emit:t}){const n=e,i=t,s=ot(),{forwardRef:a,currentElement:o}=R();return s.titleId||(s.titleId=ge(void 0,"radix-vue-dialog-title")),s.descriptionId||(s.descriptionId=ge(void 0,"radix-vue-dialog-description")),No.onMounted(()=>{s.contentElement=o,me()!==document.body&&(s.triggerElement.value=me())}),process.env.NODE_ENV!=="production"&&xu({titleName:"DialogTitle",contentName:"DialogContent",componentLink:"dialog.html#title",titleId:s.titleId,descriptionId:s.descriptionId,contentElement:o}),(l,c)=>(No.openBlock(),No.createBlock(No.unref(Za),{"as-child":"",loop:"",trapped:n.trapFocus,onMountAutoFocus:c[5]||(c[5]=d=>i("openAutoFocus",d)),onUnmountAutoFocus:c[6]||(c[6]=d=>i("closeAutoFocus",d))},{default:No.withCtx(()=>[No.createVNode(No.unref(Ct),No.mergeProps({id:No.unref(s).contentId,ref:No.unref(a),as:l.as,"as-child":l.asChild,"disable-outside-pointer-events":l.disableOutsidePointerEvents,role:"dialog","aria-describedby":No.unref(s).descriptionId,"aria-labelledby":No.unref(s).titleId,"data-state":No.unref(to)(No.unref(s).open.value)},l.$attrs,{onDismiss:c[0]||(c[0]=d=>No.unref(s).onOpenChange(!1)),onEscapeKeyDown:c[1]||(c[1]=d=>i("escapeKeyDown",d)),onFocusOutside:c[2]||(c[2]=d=>i("focusOutside",d)),onInteractOutside:c[3]||(c[3]=d=>i("interactOutside",d)),onPointerDownOutside:c[4]||(c[4]=d=>i("pointerDownOutside",d))}),{default:No.withCtx(()=>[No.renderSlot(l.$slots,"default")]),_:3},16,["id","as","as-child","disable-outside-pointer-events","aria-describedby","aria-labelledby","data-state"])]),_:3},8,["trapped"]))}}),Su=No.defineComponent({__name:"DialogContentModal",props:{forceMount:{type:Boolean},trapFocus:{type:Boolean},disableOutsidePointerEvents:{type:Boolean},asChild:{type:Boolean},as:{}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","openAutoFocus","closeAutoFocus"],setup(e,{emit:t}){const n=e,i=t,s=ot(),a=Te(i),{forwardRef:o,currentElement:l}=R();return ga(l),(c,d)=>(No.openBlock(),No.createBlock(Yl,No.mergeProps({...n,...No.unref(a)},{ref:No.unref(o),"trap-focus":No.unref(s).open.value,"disable-outside-pointer-events":!0,onCloseAutoFocus:d[0]||(d[0]=u=>{var p;u.defaultPrevented||(u.preventDefault(),(p=No.unref(s).triggerElement.value)==null||p.focus())}),onPointerDownOutside:d[1]||(d[1]=u=>{const p=u.detail.originalEvent,h=p.button===0&&p.ctrlKey===!0;(p.button===2||h)&&u.preventDefault()}),onFocusOutside:d[2]||(d[2]=u=>{u.preventDefault()})}),{default:No.withCtx(()=>[No.renderSlot(c.$slots,"default")]),_:3},16,["trap-focus"]))}}),Eu=No.defineComponent({__name:"DialogContentNonModal",props:{forceMount:{type:Boolean},trapFocus:{type:Boolean},disableOutsidePointerEvents:{type:Boolean},asChild:{type:Boolean},as:{}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","openAutoFocus","closeAutoFocus"],setup(e,{emit:t}){const n=e,i=Te(t);R();const s=ot(),a=No.ref(!1),o=No.ref(!1);return(l,c)=>(No.openBlock(),No.createBlock(Yl,No.mergeProps({...n,...No.unref(i)},{"trap-focus":!1,"disable-outside-pointer-events":!1,onCloseAutoFocus:c[0]||(c[0]=d=>{var u;d.defaultPrevented||(a.value||(u=No.unref(s).triggerElement.value)==null||u.focus(),d.preventDefault()),a.value=!1,o.value=!1}),onInteractOutside:c[1]||(c[1]=d=>{var u;d.defaultPrevented||(a.value=!0,d.detail.originalEvent.type==="pointerdown"&&(o.value=!0));const p=d.target;(u=No.unref(s).triggerElement.value)!=null&&u.contains(p)&&d.preventDefault(),d.detail.originalEvent.type==="focusin"&&o.value&&d.preventDefault()})}),{default:No.withCtx(()=>[No.renderSlot(l.$slots,"default")]),_:3},16))}}),Pu=No.defineComponent({__name:"DialogContent",props:{forceMount:{type:Boolean},trapFocus:{type:Boolean},disableOutsidePointerEvents:{type:Boolean},asChild:{type:Boolean},as:{}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","openAutoFocus","closeAutoFocus"],setup(e,{emit:t}){const n=e,i=t,s=ot(),a=Te(i),{forwardRef:o}=R();return(l,c)=>(No.openBlock(),No.createBlock(No.unref(Pe),{present:l.forceMount||No.unref(s).open.value},{default:No.withCtx(()=>[No.unref(s).modal.value?(No.openBlock(),No.createBlock(Su,No.mergeProps({key:0,ref:No.unref(o)},{...n,...No.unref(a),...l.$attrs}),{default:No.withCtx(()=>[No.renderSlot(l.$slots,"default")]),_:3},16)):(No.openBlock(),No.createBlock(Eu,No.mergeProps({key:1,ref:No.unref(o)},{...n,...No.unref(a),...l.$attrs}),{default:No.withCtx(()=>[No.renderSlot(l.$slots,"default")]),_:3},16))]),_:3},8,["present"]))}}),Du=No.defineComponent({__name:"DialogOverlayImpl",props:{asChild:{type:Boolean},as:{}},setup(e){const t=ot();return ya(!0),R(),(n,i)=>(No.openBlock(),No.createBlock(No.unref(O),{as:n.as,"as-child":n.asChild,"data-state":No.unref(t).open.value?"open":"closed",style:{"pointer-events":"auto"}},{default:No.withCtx(()=>[No.renderSlot(n.$slots,"default")]),_:3},8,["as","as-child","data-state"]))}}),$u=No.defineComponent({__name:"DialogOverlay",props:{forceMount:{type:Boolean},asChild:{type:Boolean},as:{}},setup(e){const t=ot(),{forwardRef:n}=R();return(i,s)=>{var a;return(a=No.unref(t))!=null&&a.modal.value?(No.openBlock(),No.createBlock(No.unref(Pe),{key:0,present:i.forceMount||No.unref(t).open.value},{default:No.withCtx(()=>[No.createVNode(Du,No.mergeProps(i.$attrs,{ref:No.unref(n),as:i.as,"as-child":i.asChild}),{default:No.withCtx(()=>[No.renderSlot(i.$slots,"default")]),_:3},16,["as","as-child"])]),_:3},8,["present"])):No.createCommentVNode("",!0)}}}),Xl=No.defineComponent({__name:"DialogClose",props:{asChild:{type:Boolean},as:{default:"button"}},setup(e){const t=e;R();const n=ot();return(i,s)=>(No.openBlock(),No.createBlock(No.unref(O),No.mergeProps(t,{type:i.as==="button"?"button":void 0,onClick:s[0]||(s[0]=a=>No.unref(n).onOpenChange(!1))}),{default:No.withCtx(()=>[No.renderSlot(i.$slots,"default")]),_:3},16,["type"]))}}),Bu=No.defineComponent({__name:"DialogTitle",props:{asChild:{type:Boolean},as:{default:"h2"}},setup(e){const t=e,n=ot();return R(),(i,s)=>(No.openBlock(),No.createBlock(No.unref(O),No.mergeProps(t,{id:No.unref(n).titleId}),{default:No.withCtx(()=>[No.renderSlot(i.$slots,"default")]),_:3},16,["id"]))}}),Iu=No.defineComponent({__name:"DialogDescription",props:{asChild:{type:Boolean},as:{default:"p"}},setup(e){const t=e;R();const n=ot();return(i,s)=>(No.openBlock(),No.createBlock(No.unref(O),No.mergeProps(t,{id:No.unref(n).descriptionId}),{default:No.withCtx(()=>[No.renderSlot(i.$slots,"default")]),_:3},16,["id"]))}});function za(e){return e==="indeterminate"}function Ql(e){return za(e)?"indeterminate":e?"checked":"unchecked"}const td=["value","checked","name","disabled","required"],[ad,nd]=te("CheckboxRoot"),Wv=No.defineComponent({inheritAttrs:!1,__name:"CheckboxRoot",props:{defaultChecked:{type:Boolean},checked:{type:[Boolean,String],default:void 0},disabled:{type:Boolean},required:{type:Boolean},name:{},value:{default:"on"},id:{},asChild:{type:Boolean},as:{default:"button"}},emits:["update:checked"],setup(e,{emit:t}){const n=e,i=t,{disabled:s}=No.toRefs(n),a=ne(n,"checked",i,{defaultValue:n.defaultChecked,passive:n.checked===void 0}),{forwardRef:o,currentElement:l}=R(),c=at(l),d=No.computed(()=>{var u;return n.id&&l.value?(u=document.querySelector(`[for="${n.id}"]`))==null?void 0:u.innerText:void 0});return nd({disabled:s,state:a}),(u,p)=>(No.openBlock(),No.createElementBlock(No.Fragment,null,[No.createVNode(No.unref(O),No.mergeProps(u.$attrs,{id:u.id,ref:No.unref(o),role:"checkbox","as-child":n.asChild,as:u.as,type:u.as==="button"?"button":void 0,"aria-checked":No.unref(za)(No.unref(a))?"mixed":No.unref(a),"aria-required":n.required,"aria-label":u.$attrs["aria-label"]||d.value,"data-state":No.unref(Ql)(No.unref(a)),"data-disabled":No.unref(s)?"":void 0,disabled:No.unref(s),onKeydown:No.withKeys(No.withModifiers(()=>{},["prevent"]),["enter"]),onClick:p[0]||(p[0]=h=>a.value=No.unref(za)(No.unref(a))?!0:!No.unref(a))}),{default:No.withCtx(()=>[No.renderSlot(u.$slots,"default",{checked:No.unref(a)})]),_:3},16,["id","as-child","as","type","aria-checked","aria-required","aria-label","data-state","data-disabled","disabled","onKeydown"]),No.unref(c)?(No.openBlock(),No.createElementBlock("input",{key:0,type:"checkbox",tabindex:"-1","aria-hidden":"true",value:u.value,checked:!!No.unref(a),name:n.name,disabled:n.disabled,required:n.required,style:{transform:"translateX(-100%)",position:"absolute",pointerEvents:"none",opacity:0,margin:0}},null,8,td)):No.createCommentVNode("",!0)],64))}}),jv=No.defineComponent({__name:"CheckboxIndicator",props:{forceMount:{type:Boolean},asChild:{type:Boolean},as:{default:"span"}},setup(e){const{forwardRef:t}=R(),n=ad();return(i,s)=>(No.openBlock(),No.createBlock(No.unref(Pe),{present:i.forceMount||No.unref(za)(No.unref(n).state.value)||No.unref(n).state.value===!0},{default:No.withCtx(()=>[No.createVNode(No.unref(O),No.mergeProps({ref:No.unref(t),"data-state":No.unref(Ql)(No.unref(n).state.value),"data-disabled":No.unref(n).disabled.value?"":void 0,style:{pointerEvents:"none"},"as-child":i.asChild,as:i.as},i.$attrs),{default:No.withCtx(()=>[No.renderSlot(i.$slots,"default")]),_:3},16,["data-state","data-disabled","as-child","as"])]),_:3},8,["present"]))}}),fd="data-radix-vue-collection-item",[oo,pd]=te("CollectionProvider");function Ca(e=fd){const t=No.ref(new Map),n=No.ref(),i=pd({collectionRef:n,itemMap:t,attrName:e}),{getItems:s}=ea(i),a=No.computed(()=>Array.from(i.itemMap.value.values())),o=No.computed(()=>i.itemMap.value.size);return{getItems:s,reactiveItems:a,itemMapSize:o}}const wa=No.defineComponent({name:"CollectionSlot",setup(e,{slots:t}){const n=oo(),{primitiveElement:i,currentElement:s}=Re();return No.watch(s,()=>{n.collectionRef.value=s.value}),()=>No.h(Jn,{ref:i},t)}}),Qt=No.defineComponent({name:"CollectionItem",inheritAttrs:!1,props:{value:{validator:()=>!0}},setup(e,{slots:t,attrs:n}){const i=oo(),{primitiveElement:s,currentElement:a}=Re();return No.watchEffect(o=>{if(a.value){const l=No.markRaw(a.value);i.itemMap.value.set(l,{ref:a.value,value:e.value}),o(()=>i.itemMap.value.delete(l))}}),()=>No.h(Jn,{...n,[i.attrName]:"",ref:s},t)}});function ea(e){const t=e??oo();return{getItems:()=>{const n=t.collectionRef.value;if(!n)return[];const i=Array.from(n.querySelectorAll(`[${t.attrName}]`));return Array.from(t.itemMap.value.values()).sort((s,a)=>i.indexOf(s.ref)-i.indexOf(a.ref))}}}function np(e=[],t,n){const i=[...e];return i[n]=t,i.sort((s,a)=>s-a)}function Vs(e,t,n){const i=100/(n-t)*(e-t);return Ut(i,0,100)}function op(e,t){return t>2?`Value ${e+1} of ${t}`:t===2?["Minimum","Maximum"][e]:void 0}function lp(e,t){if(e.length===1)return 0;const n=e.map(s=>Math.abs(s-t)),i=Math.min(...n);return n.indexOf(i)}function sp(e,t,n){const i=e/2,s=To([0,50],[0,i]);return(i-s(t)*n)*n}function rp(e){return e.slice(0,-1).map((t,n)=>e[n+1]-t)}function ip(e,t){if(t>0){const n=rp(e);return Math.min(...n)>=t}return!0}function To(e,t){return n=>{if(e[0]===e[1]||t[0]===t[1])return t[0];const i=(t[1]-t[0])/(e[1]-e[0]);return t[0]+i*(n-e[0])}}function up(e){return(String(e).split(".")[1]||"").length}function dp(e,t){const n=10**t;return Math.round(e*n)/n}const Fs=["PageUp","PageDown"],Ns=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],Ls={"from-left":["Home","PageDown","ArrowDown","ArrowLeft"],"from-right":["Home","PageDown","ArrowDown","ArrowRight"],"from-bottom":["Home","PageDown","ArrowDown","ArrowLeft"],"from-top":["Home","PageDown","ArrowUp","ArrowLeft"]},[zs,Ks]=te(["SliderVertical","SliderHorizontal"]),Hs=No.defineComponent({__name:"SliderImpl",props:{asChild:{type:Boolean},as:{default:"span"}},emits:["slideStart","slideMove","slideEnd","homeKeyDown","endKeyDown","stepKeyDown"],setup(e,{emit:t}){const n=e,i=t,s=un();return(a,o)=>(No.openBlock(),No.createBlock(No.unref(O),No.mergeProps({"data-slider-impl":""},n,{onKeydown:o[0]||(o[0]=l=>{l.key==="Home"?(i("homeKeyDown",l),l.preventDefault()):l.key==="End"?(i("endKeyDown",l),l.preventDefault()):No.unref(Fs).concat(No.unref(Ns)).includes(l.key)&&(i("stepKeyDown",l),l.preventDefault())}),onPointerdown:o[1]||(o[1]=l=>{const c=l.target;c.setPointerCapture(l.pointerId),l.preventDefault(),No.unref(s).thumbElements.value.includes(c)?c.focus():i("slideStart",l)}),onPointermove:o[2]||(o[2]=l=>{l.target.hasPointerCapture(l.pointerId)&&i("slideMove",l)}),onPointerup:o[3]||(o[3]=l=>{const c=l.target;c.hasPointerCapture(l.pointerId)&&(c.releasePointerCapture(l.pointerId),i("slideEnd",l))})}),{default:No.withCtx(()=>[No.renderSlot(a.$slots,"default")]),_:3},16))}}),cp=No.defineComponent({__name:"SliderHorizontal",props:{dir:{},min:{},max:{},inverted:{type:Boolean}},emits:["slideEnd","slideStart","slideMove","homeKeyDown","endKeyDown","stepKeyDown"],setup(e,{emit:t}){const n=e,i=t,{max:s,min:a,dir:o,inverted:l}=No.toRefs(n),{forwardRef:c,currentElement:d}=R(),u=No.ref(),p=No.computed(()=>o?.value==="ltr"&&!l.value||o?.value!=="ltr"&&l.value);function h(y){const f=u.value||d.value.getBoundingClientRect(),m=[0,f.width],C=p.value?[a.value,s.value]:[s.value,a.value],g=To(m,C);return u.value=f,g(y-f.left)}return Ks({startEdge:p.value?"left":"right",endEdge:p.value?"right":"left",direction:p.value?1:-1,size:"width"}),(y,f)=>(No.openBlock(),No.createBlock(Hs,{ref:No.unref(c),dir:No.unref(o),"data-orientation":"horizontal",style:{"--radix-slider-thumb-transform":"translateX(-50%)"},onSlideStart:f[0]||(f[0]=m=>{const C=h(m.clientX);i("slideStart",C)}),onSlideMove:f[1]||(f[1]=m=>{const C=h(m.clientX);i("slideMove",C)}),onSlideEnd:f[2]||(f[2]=()=>{u.value=void 0,i("slideEnd")}),onStepKeyDown:f[3]||(f[3]=m=>{const C=p.value?"from-left":"from-right",g=No.unref(Ls)[C].includes(m.key);i("stepKeyDown",m,g?-1:1)}),onEndKeyDown:f[4]||(f[4]=m=>i("endKeyDown",m)),onHomeKeyDown:f[5]||(f[5]=m=>i("homeKeyDown",m))},{default:No.withCtx(()=>[No.renderSlot(y.$slots,"default")]),_:3},8,["dir"]))}}),fp=No.defineComponent({__name:"SliderVertical",props:{min:{},max:{},inverted:{type:Boolean}},emits:["slideEnd","slideStart","slideMove","homeKeyDown","endKeyDown","stepKeyDown"],setup(e,{emit:t}){const n=e,i=t,{max:s,min:a,inverted:o}=No.toRefs(n),{forwardRef:l,currentElement:c}=R(),d=No.ref(),u=No.computed(()=>!o.value);function p(h){const y=d.value||c.value.getBoundingClientRect(),f=[0,y.height],m=u.value?[s.value,a.value]:[a.value,s.value],C=To(f,m);return d.value=y,C(h-y.top)}return Ks({startEdge:u.value?"bottom":"top",endEdge:u.value?"top":"bottom",size:"height",direction:u.value?1:-1}),(h,y)=>(No.openBlock(),No.createBlock(Hs,{ref:No.unref(l),"data-orientation":"vertical",style:{"--radix-slider-thumb-transform":"translateY(50%)"},onSlideStart:y[0]||(y[0]=f=>{const m=p(f.clientY);i("slideStart",m)}),onSlideMove:y[1]||(y[1]=f=>{const m=p(f.clientY);i("slideMove",m)}),onSlideEnd:y[2]||(y[2]=()=>{d.value=void 0,i("slideEnd")}),onStepKeyDown:y[3]||(y[3]=f=>{const m=u.value?"from-bottom":"from-top",C=No.unref(Ls)[m].includes(f.key);i("stepKeyDown",f,C?-1:1)}),onEndKeyDown:y[4]||(y[4]=f=>i("endKeyDown",f)),onHomeKeyDown:y[5]||(y[5]=f=>i("homeKeyDown",f))},{default:No.withCtx(()=>[No.renderSlot(h.$slots,"default")]),_:3},512))}}),pp=["value","name","disabled","step"],[un,vp]=te("SliderRoot"),og=No.defineComponent({inheritAttrs:!1,__name:"SliderRoot",props:{name:{},defaultValue:{default:()=>[0]},modelValue:{},disabled:{type:Boolean,default:!1},orientation:{default:"horizontal"},dir:{},inverted:{type:Boolean,default:!1},min:{default:0},max:{default:100},step:{default:1},minStepsBetweenThumbs:{default:0},asChild:{type:Boolean},as:{}},emits:["update:modelValue","valueCommit"],setup(e,{emit:t}){const n=e,i=t,{min:s,max:a,step:o,minStepsBetweenThumbs:l,orientation:c,disabled:d,dir:u}=No.toRefs(n),p=we(u),{forwardRef:h,currentElement:y}=R(),f=at(y);Ca();const m=ne(n,"modelValue",i,{defaultValue:n.defaultValue,passive:n.modelValue===void 0}),C=No.ref(0),g=No.ref(m.value);function b(_){const k=lp(m.value,_);w(_,k)}function v(_){w(_,C.value)}function N(){const _=g.value[C.value];m.value[C.value]!==_&&i("valueCommit",No.toRaw(m.value))}function w(_,k,{commit:A}={commit:!1}){var F;const B=up(o.value),I=dp(Math.round((_-s.value)/o.value)*o.value+s.value,B),D=Ut(I,s.value,a.value),L=np(m.value,D,k);if(ip(L,l.value*o.value)){C.value=L.indexOf(D);const $=String(L)!==String(m.value);$&&A&&i("valueCommit",L),$&&((F=E.value[C.value])==null||F.focus(),m.value=L)}}const E=No.ref([]);return vp({modelValue:m,valueIndexToChangeRef:C,thumbElements:E,orientation:c,min:s,max:a,disabled:d}),(_,k)=>(No.openBlock(),No.createElementBlock(No.Fragment,null,[No.createVNode(No.unref(wa),null,{default:No.withCtx(()=>[(No.openBlock(),No.createBlock(No.resolveDynamicComponent(No.unref(c)==="horizontal"?cp:fp),No.mergeProps(_.$attrs,{ref:No.unref(h),"as-child":_.asChild,as:_.as,min:No.unref(s),max:No.unref(a),dir:No.unref(p),inverted:_.inverted,"aria-disabled":No.unref(d),"data-disabled":No.unref(d)?"":void 0,onPointerdown:k[0]||(k[0]=()=>{No.unref(d)||(g.value=No.unref(m))}),onSlideStart:k[1]||(k[1]=A=>!No.unref(d)&&b(A)),onSlideMove:k[2]||(k[2]=A=>!No.unref(d)&&v(A)),onSlideEnd:k[3]||(k[3]=A=>!No.unref(d)&&N()),onHomeKeyDown:k[4]||(k[4]=A=>!No.unref(d)&&w(No.unref(s),0,{commit:!0})),onEndKeyDown:k[5]||(k[5]=A=>!No.unref(d)&&w(No.unref(a),No.unref(m).length-1,{commit:!0})),onStepKeyDown:k[6]||(k[6]=(A,F)=>{if(!No.unref(d)){const B=No.unref(Fs).includes(A.key)||A.shiftKey&&No.unref(Ns).includes(A.key)?10:1,I=C.value,D=No.unref(m)[I],L=No.unref(o)*B*F;w(D+L,I,{commit:!0})}})}),{default:No.withCtx(()=>[No.renderSlot(_.$slots,"default",{modelValue:No.unref(m)})]),_:3},16,["as-child","as","min","max","dir","inverted","aria-disabled","data-disabled"]))]),_:3}),No.unref(f)?(No.openBlock(!0),No.createElementBlock(No.Fragment,{key:0},No.renderList(No.unref(m),(A,F)=>(No.openBlock(),No.createElementBlock("input",{key:F,value:A,type:"number",style:{display:"none"},name:_.name?_.name+(No.unref(m).length>1?"[]":""):void 0,disabled:No.unref(d),step:No.unref(o)},null,8,pp))),128)):No.createCommentVNode("",!0)],64))}}),mp=No.defineComponent({inheritAttrs:!1,__name:"SliderThumbImpl",props:{index:{},asChild:{type:Boolean},as:{}},setup(e){const t=e,n=un(),i=zs(),{forwardRef:s,currentElement:a}=R(),o=No.computed(()=>{var y,f;return(f=(y=n.modelValue)==null?void 0:y.value)==null?void 0:f[t.index]}),l=No.computed(()=>o.value===void 0?0:Vs(o.value,n.min.value??0,n.max.value??100)),c=No.computed(()=>{var y,f;return op(t.index,((f=(y=n.modelValue)==null?void 0:y.value)==null?void 0:f.length)??0)}),d=Ll(a),u=No.computed(()=>d[i.size].value),p=No.computed(()=>u.value?sp(u.value,l.value,i.direction):0),h=Ga();return No.onMounted(()=>{n.thumbElements.value.push(a.value)}),No.onUnmounted(()=>{const y=n.thumbElements.value.findIndex(f=>f===a.value)??-1;n.thumbElements.value.splice(y,1)}),(y,f)=>(No.openBlock(),No.createBlock(No.unref(Qt),null,{default:No.withCtx(()=>[No.createVNode(No.unref(O),No.mergeProps(y.$attrs,{ref:No.unref(s),role:"slider","data-radix-vue-collection-item":"",tabindex:No.unref(n).disabled.value?void 0:0,"aria-label":y.$attrs["aria-label"]||c.value,"data-disabled":No.unref(n).disabled.value?"":void 0,"data-orientation":No.unref(n).orientation.value,"aria-valuenow":o.value,"aria-valuemin":No.unref(n).min.value,"aria-valuemax":No.unref(n).max.value,"aria-orientation":No.unref(n).orientation.value,"as-child":y.asChild,as:y.as,style:{transform:"var(--radix-slider-thumb-transform)",position:"absolute",[No.unref(i).startEdge]:`calc(${l.value}% + ${p.value}px)`,display:!No.unref(h)&&o.value===void 0?"none":void 0},onFocus:f[0]||(f[0]=()=>{No.unref(n).valueIndexToChangeRef.value=y.index})}),{default:No.withCtx(()=>[No.renderSlot(y.$slots,"default")]),_:3},16,["tabindex","aria-label","data-disabled","data-orientation","aria-valuenow","aria-valuemin","aria-valuemax","aria-orientation","as-child","as","style"])]),_:3}))}}),lg=No.defineComponent({__name:"SliderThumb",props:{asChild:{type:Boolean},as:{}},setup(e){const t=e,{getItems:n}=ea(),{forwardRef:i,currentElement:s}=R(),a=No.computed(()=>s.value?n().findIndex(o=>o.ref===s.value):-1);return(o,l)=>(No.openBlock(),No.createBlock(mp,No.mergeProps({ref:No.unref(i)},t,{index:a.value}),{default:No.withCtx(()=>[No.renderSlot(o.$slots,"default")]),_:3},16,["index"]))}}),sg=No.defineComponent({__name:"SliderTrack",props:{asChild:{type:Boolean},as:{default:"span"}},setup(e){const t=un();return R(),(n,i)=>(No.openBlock(),No.createBlock(No.unref(O),{"as-child":n.asChild,as:n.as,"data-disabled":No.unref(t).disabled.value?"":void 0,"data-orientation":No.unref(t).orientation.value},{default:No.withCtx(()=>[No.renderSlot(n.$slots,"default")]),_:3},8,["as-child","as","data-disabled","data-orientation"]))}}),rg=No.defineComponent({__name:"SliderRange",props:{asChild:{type:Boolean},as:{default:"span"}},setup(e){const t=un(),n=zs();R();const i=No.computed(()=>{var o,l;return(l=(o=t.modelValue)==null?void 0:o.value)==null?void 0:l.map(c=>Vs(c,t.min.value,t.max.value))}),s=No.computed(()=>t.modelValue.value.length>1?Math.min(...i.value):0),a=No.computed(()=>100-Math.max(...i.value));return(o,l)=>(No.openBlock(),No.createBlock(No.unref(O),{"data-disabled":No.unref(t).disabled.value?"":void 0,"data-orientation":No.unref(t).orientation.value,"as-child":o.asChild,as:o.as,style:No.normalizeStyle({[No.unref(n).startEdge]:`${s.value}%`,[No.unref(n).endEdge]:`${a.value}%`})},{default:No.withCtx(()=>[No.renderSlot(o.$slots,"default")]),_:3},8,["data-disabled","data-orientation","as-child","as","style"]))}});function xp(){if(typeof matchMedia=="function")return matchMedia("(pointer:coarse)").matches?"coarse":"fine"}xp();const Kp=["name","disabled","required","value","checked","data-state","data-disabled"],[Hp,Wp]=te("SwitchRoot"),gg=No.defineComponent({__name:"SwitchRoot",props:{defaultChecked:{type:Boolean},checked:{type:Boolean,default:void 0},disabled:{type:Boolean},required:{type:Boolean},name:{},id:{},value:{default:"on"},asChild:{type:Boolean},as:{default:"button"}},emits:["update:checked"],setup(e,{emit:t}){const n=e,i=t,{disabled:s}=No.toRefs(n),a=ne(n,"checked",i,{defaultValue:n.defaultChecked,passive:n.checked===void 0});function o(){s.value||(a.value=!a.value)}const{forwardRef:l,currentElement:c}=R(),d=at(c),u=No.computed(()=>{var p;return n.id&&c.value?(p=document.querySelector(`[for="${n.id}"]`))==null?void 0:p.innerText:void 0});return Wp({checked:a,toggleCheck:o,disabled:s}),(p,h)=>(No.openBlock(),No.createElementBlock(No.Fragment,null,[No.createVNode(No.unref(O),No.mergeProps(p.$attrs,{id:p.id,ref:No.unref(l),role:"switch",type:p.as==="button"?"button":void 0,value:p.value,"aria-label":p.$attrs["aria-label"]||u.value,"aria-checked":No.unref(a),"aria-required":p.required,"data-state":No.unref(a)?"checked":"unchecked","data-disabled":No.unref(s)?"":void 0,"as-child":p.asChild,as:p.as,disabled:No.unref(s),onClick:o,onKeydown:No.withKeys(No.withModifiers(o,["prevent"]),["enter"])}),{default:No.withCtx(()=>[No.renderSlot(p.$slots,"default",{checked:No.unref(a)})]),_:3},16,["id","type","value","aria-label","aria-checked","aria-required","data-state","data-disabled","as-child","as","disabled","onKeydown"]),No.unref(d)?(No.openBlock(),No.createElementBlock("input",{key:0,type:"checkbox",name:p.name,tabindex:"-1","aria-hidden":"true",disabled:No.unref(s),required:p.required,value:p.value,checked:!!No.unref(a),"data-state":No.unref(a)?"checked":"unchecked","data-disabled":No.unref(s)?"":void 0,style:{transform:"translateX(-100%)",position:"absolute",pointerEvents:"none",opacity:0,margin:0}},null,8,Kp)):No.createCommentVNode("",!0)],64))}}),bg=No.defineComponent({__name:"SwitchThumb",props:{asChild:{type:Boolean},as:{default:"span"}},setup(e){const t=Hp();return R(),(n,i)=>{var s;return No.openBlock(),No.createBlock(No.unref(O),{"data-state":(s=No.unref(t).checked)!=null&&s.value?"checked":"unchecked","data-disabled":No.unref(t).disabled.value?"":void 0,"as-child":n.asChild,as:n.as},{default:No.withCtx(()=>[No.renderSlot(n.$slots,"default")]),_:3},8,["data-state","data-disabled","as-child","as"])}}});function r(e){var t,n,i="";if(typeof e=="string"||typeof e=="number")i+=e;else if(typeof e=="object")if(Array.isArray(e)){var s=e.length;for(t=0;t<s;t++)e[t]&&(n=r(e[t]))&&(i&&(i+=" "),i+=n)}else for(n in e)e[n]&&(i&&(i+=" "),i+=n);return i}function clsx(){for(var e,t,n=0,i="",s=arguments.length;n<s;n++)(e=arguments[n])&&(t=r(e))&&(i&&(i+=" "),i+=t);return i}const concatArrays=(e,t)=>{const n=new Array(e.length+t.length);for(let i=0;i<e.length;i++)n[i]=e[i];for(let i=0;i<t.length;i++)n[e.length+i]=t[i];return n},createClassValidatorObject=(e,t)=>({classGroupId:e,validator:t}),createClassPartObject=(e=new Map,t=null,n)=>({nextPart:e,validators:t,classGroupId:n}),CLASS_PART_SEPARATOR="-",EMPTY_CONFLICTS=[],ARBITRARY_PROPERTY_PREFIX="arbitrary..",createClassGroupUtils=e=>{const t=createClassMap(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:i}=e;return{getClassGroupId:o=>{if(o.startsWith("[")&&o.endsWith("]"))return getGroupIdForArbitraryProperty(o);const l=o.split(CLASS_PART_SEPARATOR),c=l[0]===""&&l.length>1?1:0;return getGroupRecursive(l,c,t)},getConflictingClassGroupIds:(o,l)=>{if(l){const c=i[o],d=n[o];return c?d?concatArrays(d,c):c:d||EMPTY_CONFLICTS}return n[o]||EMPTY_CONFLICTS}}},getGroupRecursive=(e,t,n)=>{if(e.length-t===0)return n.classGroupId;const s=e[t],a=n.nextPart.get(s);if(a){const d=getGroupRecursive(e,t+1,a);if(d)return d}const o=n.validators;if(o===null)return;const l=t===0?e.join(CLASS_PART_SEPARATOR):e.slice(t).join(CLASS_PART_SEPARATOR),c=o.length;for(let d=0;d<c;d++){const u=o[d];if(u.validator(l))return u.classGroupId}},getGroupIdForArbitraryProperty=e=>e.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const t=e.slice(1,-1),n=t.indexOf(":"),i=t.slice(0,n);return i?ARBITRARY_PROPERTY_PREFIX+i:void 0})(),createClassMap=e=>{const{theme:t,classGroups:n}=e;return processClassGroups(n,t)},processClassGroups=(e,t)=>{const n=createClassPartObject();for(const i in e){const s=e[i];processClassesRecursively(s,n,i,t)}return n},processClassesRecursively=(e,t,n,i)=>{const s=e.length;for(let a=0;a<s;a++){const o=e[a];processClassDefinition(o,t,n,i)}},processClassDefinition=(e,t,n,i)=>{if(typeof e=="string"){processStringDefinition(e,t,n);return}if(typeof e=="function"){processFunctionDefinition(e,t,n,i);return}processObjectDefinition(e,t,n,i)},processStringDefinition=(e,t,n)=>{const i=e===""?t:getPart(t,e);i.classGroupId=n},processFunctionDefinition=(e,t,n,i)=>{if(isThemeGetter(e)){processClassesRecursively(e(i),t,n,i);return}t.validators===null&&(t.validators=[]),t.validators.push(createClassValidatorObject(n,e))},processObjectDefinition=(e,t,n,i)=>{const s=Object.entries(e),a=s.length;for(let o=0;o<a;o++){const[l,c]=s[o];processClassesRecursively(c,getPart(t,l),n,i)}},getPart=(e,t)=>{let n=e;const i=t.split(CLASS_PART_SEPARATOR),s=i.length;for(let a=0;a<s;a++){const o=i[a];let l=n.nextPart.get(o);l||(l=createClassPartObject(),n.nextPart.set(o,l)),n=l}return n},isThemeGetter=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,createLruCache=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=Object.create(null),i=Object.create(null);const s=(a,o)=>{n[a]=o,t++,t>e&&(t=0,i=n,n=Object.create(null))};return{get(a){let o=n[a];if(o!==void 0)return o;if((o=i[a])!==void 0)return s(a,o),o},set(a,o){a in n?n[a]=o:s(a,o)}}},IMPORTANT_MODIFIER="!",MODIFIER_SEPARATOR=":",EMPTY_MODIFIERS=[],createResultObject=(e,t,n,i,s)=>({modifiers:e,hasImportantModifier:t,baseClassName:n,maybePostfixModifierPosition:i,isExternal:s}),createParseClassName=e=>{const{prefix:t,experimentalParseClassName:n}=e;let i=s=>{const a=[];let o=0,l=0,c=0,d;const u=s.length;for(let m=0;m<u;m++){const C=s[m];if(o===0&&l===0){if(C===MODIFIER_SEPARATOR){a.push(s.slice(c,m)),c=m+1;continue}if(C==="/"){d=m;continue}}C==="["?o++:C==="]"?o--:C==="("?l++:C===")"&&l--}const p=a.length===0?s:s.slice(c);let h=p,y=!1;p.endsWith(IMPORTANT_MODIFIER)?(h=p.slice(0,-1),y=!0):p.startsWith(IMPORTANT_MODIFIER)&&(h=p.slice(1),y=!0);const f=d&&d>c?d-c:void 0;return createResultObject(a,y,h,f)};if(t){const s=t+MODIFIER_SEPARATOR,a=i;i=o=>o.startsWith(s)?a(o.slice(s.length)):createResultObject(EMPTY_MODIFIERS,!1,o,void 0,!0)}if(n){const s=i;i=a=>n({className:a,parseClassName:s})}return i},createSortModifiers=e=>{const t=new Map;return e.orderSensitiveModifiers.forEach((n,i)=>{t.set(n,1e6+i)}),n=>{const i=[];let s=[];for(let a=0;a<n.length;a++){const o=n[a],l=o[0]==="[",c=t.has(o);l||c?(s.length>0&&(s.sort(),i.push(...s),s=[]),i.push(o)):s.push(o)}return s.length>0&&(s.sort(),i.push(...s)),i}},createConfigUtils=e=>({cache:createLruCache(e.cacheSize),parseClassName:createParseClassName(e),sortModifiers:createSortModifiers(e),...createClassGroupUtils(e)}),SPLIT_CLASSES_REGEX=/\s+/,mergeClassList=(e,t)=>{const{parseClassName:n,getClassGroupId:i,getConflictingClassGroupIds:s,sortModifiers:a}=t,o=[],l=e.trim().split(SPLIT_CLASSES_REGEX);let c="";for(let d=l.length-1;d>=0;d-=1){const u=l[d],{isExternal:p,modifiers:h,hasImportantModifier:y,baseClassName:f,maybePostfixModifierPosition:m}=n(u);if(p){c=u+(c.length>0?" "+c:c);continue}let C=!!m,g=i(C?f.substring(0,m):f);if(!g){if(!C){c=u+(c.length>0?" "+c:c);continue}if(g=i(f),!g){c=u+(c.length>0?" "+c:c);continue}C=!1}const b=h.length===0?"":h.length===1?h[0]:a(h).join(":"),v=y?b+IMPORTANT_MODIFIER:b,N=v+g;if(o.indexOf(N)>-1)continue;o.push(N);const w=s(g,C);for(let E=0;E<w.length;++E){const _=w[E];o.push(v+_)}c=u+(c.length>0?" "+c:c)}return c},twJoin=(...e)=>{let t=0,n,i,s="";for(;t<e.length;)(n=e[t++])&&(i=toValue$1(n))&&(s&&(s+=" "),s+=i);return s},toValue$1=e=>{if(typeof e=="string")return e;let t,n="";for(let i=0;i<e.length;i++)e[i]&&(t=toValue$1(e[i]))&&(n&&(n+=" "),n+=t);return n},createTailwindMerge=(e,...t)=>{let n,i,s,a;const o=c=>{const d=t.reduce((u,p)=>p(u),e());return n=createConfigUtils(d),i=n.cache.get,s=n.cache.set,a=l,l(c)},l=c=>{const d=i(c);if(d)return d;const u=mergeClassList(c,n);return s(c,u),u};return a=o,(...c)=>a(twJoin(...c))},fallbackThemeArr=[],fromTheme=e=>{const t=n=>n[e]||fallbackThemeArr;return t.isThemeGetter=!0,t},arbitraryValueRegex=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,arbitraryVariableRegex=/^\((?:(\w[\w-]*):)?(.+)\)$/i,fractionRegex=/^\d+\/\d+$/,tshirtUnitRegex=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,lengthUnitRegex=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,colorFunctionRegex=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,shadowRegex=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,imageRegex=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,isFraction=e=>fractionRegex.test(e),isNumber$2=e=>!!e&&!Number.isNaN(Number(e)),isInteger=e=>!!e&&Number.isInteger(Number(e)),isPercent=e=>e.endsWith("%")&&isNumber$2(e.slice(0,-1)),isTshirtSize=e=>tshirtUnitRegex.test(e),isAny=()=>!0,isLengthOnly=e=>lengthUnitRegex.test(e)&&!colorFunctionRegex.test(e),isNever=()=>!1,isShadow=e=>shadowRegex.test(e),isImage=e=>imageRegex.test(e),isAnyNonArbitrary=e=>!isArbitraryValue(e)&&!isArbitraryVariable(e),isArbitrarySize=e=>getIsArbitraryValue(e,isLabelSize,isNever),isArbitraryValue=e=>arbitraryValueRegex.test(e),isArbitraryLength=e=>getIsArbitraryValue(e,isLabelLength,isLengthOnly),isArbitraryNumber=e=>getIsArbitraryValue(e,isLabelNumber,isNumber$2),isArbitraryPosition=e=>getIsArbitraryValue(e,isLabelPosition,isNever),isArbitraryImage=e=>getIsArbitraryValue(e,isLabelImage,isImage),isArbitraryShadow=e=>getIsArbitraryValue(e,isLabelShadow,isShadow),isArbitraryVariable=e=>arbitraryVariableRegex.test(e),isArbitraryVariableLength=e=>getIsArbitraryVariable(e,isLabelLength),isArbitraryVariableFamilyName=e=>getIsArbitraryVariable(e,isLabelFamilyName),isArbitraryVariablePosition=e=>getIsArbitraryVariable(e,isLabelPosition),isArbitraryVariableSize=e=>getIsArbitraryVariable(e,isLabelSize),isArbitraryVariableImage=e=>getIsArbitraryVariable(e,isLabelImage),isArbitraryVariableShadow=e=>getIsArbitraryVariable(e,isLabelShadow,!0),getIsArbitraryValue=(e,t,n)=>{const i=arbitraryValueRegex.exec(e);return i?i[1]?t(i[1]):n(i[2]):!1},getIsArbitraryVariable=(e,t,n=!1)=>{const i=arbitraryVariableRegex.exec(e);return i?i[1]?t(i[1]):n:!1},isLabelPosition=e=>e==="position"||e==="percentage",isLabelImage=e=>e==="image"||e==="url",isLabelSize=e=>e==="length"||e==="size"||e==="bg-size",isLabelLength=e=>e==="length",isLabelNumber=e=>e==="number",isLabelFamilyName=e=>e==="family-name",isLabelShadow=e=>e==="shadow",getDefaultConfig=()=>{const e=fromTheme("color"),t=fromTheme("font"),n=fromTheme("text"),i=fromTheme("font-weight"),s=fromTheme("tracking"),a=fromTheme("leading"),o=fromTheme("breakpoint"),l=fromTheme("container"),c=fromTheme("spacing"),d=fromTheme("radius"),u=fromTheme("shadow"),p=fromTheme("inset-shadow"),h=fromTheme("text-shadow"),y=fromTheme("drop-shadow"),f=fromTheme("blur"),m=fromTheme("perspective"),C=fromTheme("aspect"),g=fromTheme("ease"),b=fromTheme("animate"),v=()=>["auto","avoid","all","avoid-page","page","left","right","column"],N=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],w=()=>[...N(),isArbitraryVariable,isArbitraryValue],E=()=>["auto","hidden","clip","visible","scroll"],_=()=>["auto","contain","none"],k=()=>[isArbitraryVariable,isArbitraryValue,c],A=()=>[isFraction,"full","auto",...k()],F=()=>[isInteger,"none","subgrid",isArbitraryVariable,isArbitraryValue],B=()=>["auto",{span:["full",isInteger,isArbitraryVariable,isArbitraryValue]},isInteger,isArbitraryVariable,isArbitraryValue],I=()=>[isInteger,"auto",isArbitraryVariable,isArbitraryValue],D=()=>["auto","min","max","fr",isArbitraryVariable,isArbitraryValue],L=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],$=()=>["start","end","center","stretch","center-safe","end-safe"],P=()=>["auto",...k()],T=()=>[isFraction,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...k()],x=()=>[e,isArbitraryVariable,isArbitraryValue],S=()=>[...N(),isArbitraryVariablePosition,isArbitraryPosition,{position:[isArbitraryVariable,isArbitraryValue]}],M=()=>["no-repeat",{repeat:["","x","y","space","round"]}],V=()=>["auto","cover","contain",isArbitraryVariableSize,isArbitrarySize,{size:[isArbitraryVariable,isArbitraryValue]}],z=()=>[isPercent,isArbitraryVariableLength,isArbitraryLength],G=()=>["","none","full",d,isArbitraryVariable,isArbitraryValue],H=()=>["",isNumber$2,isArbitraryVariableLength,isArbitraryLength],W=()=>["solid","dashed","dotted","double"],q=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],U=()=>[isNumber$2,isPercent,isArbitraryVariablePosition,isArbitraryPosition],J=()=>["","none",f,isArbitraryVariable,isArbitraryValue],Q=()=>["none",isNumber$2,isArbitraryVariable,isArbitraryValue],K=()=>["none",isNumber$2,isArbitraryVariable,isArbitraryValue],X=()=>[isNumber$2,isArbitraryVariable,isArbitraryValue],Z=()=>[isFraction,"full",...k()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[isTshirtSize],breakpoint:[isTshirtSize],color:[isAny],container:[isTshirtSize],"drop-shadow":[isTshirtSize],ease:["in","out","in-out"],font:[isAnyNonArbitrary],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[isTshirtSize],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[isTshirtSize],shadow:[isTshirtSize],spacing:["px",isNumber$2],text:[isTshirtSize],"text-shadow":[isTshirtSize],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",isFraction,isArbitraryValue,isArbitraryVariable,C]}],container:["container"],columns:[{columns:[isNumber$2,isArbitraryValue,isArbitraryVariable,l]}],"break-after":[{"break-after":v()}],"break-before":[{"break-before":v()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:w()}],overflow:[{overflow:E()}],"overflow-x":[{"overflow-x":E()}],"overflow-y":[{"overflow-y":E()}],overscroll:[{overscroll:_()}],"overscroll-x":[{"overscroll-x":_()}],"overscroll-y":[{"overscroll-y":_()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:A()}],"inset-x":[{"inset-x":A()}],"inset-y":[{"inset-y":A()}],start:[{start:A()}],end:[{end:A()}],top:[{top:A()}],right:[{right:A()}],bottom:[{bottom:A()}],left:[{left:A()}],visibility:["visible","invisible","collapse"],z:[{z:[isInteger,"auto",isArbitraryVariable,isArbitraryValue]}],basis:[{basis:[isFraction,"full","auto",l,...k()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[isNumber$2,isFraction,"auto","initial","none",isArbitraryValue]}],grow:[{grow:["",isNumber$2,isArbitraryVariable,isArbitraryValue]}],shrink:[{shrink:["",isNumber$2,isArbitraryVariable,isArbitraryValue]}],order:[{order:[isInteger,"first","last","none",isArbitraryVariable,isArbitraryValue]}],"grid-cols":[{"grid-cols":F()}],"col-start-end":[{col:B()}],"col-start":[{"col-start":I()}],"col-end":[{"col-end":I()}],"grid-rows":[{"grid-rows":F()}],"row-start-end":[{row:B()}],"row-start":[{"row-start":I()}],"row-end":[{"row-end":I()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":D()}],"auto-rows":[{"auto-rows":D()}],gap:[{gap:k()}],"gap-x":[{"gap-x":k()}],"gap-y":[{"gap-y":k()}],"justify-content":[{justify:[...L(),"normal"]}],"justify-items":[{"justify-items":[...$(),"normal"]}],"justify-self":[{"justify-self":["auto",...$()]}],"align-content":[{content:["normal",...L()]}],"align-items":[{items:[...$(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...$(),{baseline:["","last"]}]}],"place-content":[{"place-content":L()}],"place-items":[{"place-items":[...$(),"baseline"]}],"place-self":[{"place-self":["auto",...$()]}],p:[{p:k()}],px:[{px:k()}],py:[{py:k()}],ps:[{ps:k()}],pe:[{pe:k()}],pt:[{pt:k()}],pr:[{pr:k()}],pb:[{pb:k()}],pl:[{pl:k()}],m:[{m:P()}],mx:[{mx:P()}],my:[{my:P()}],ms:[{ms:P()}],me:[{me:P()}],mt:[{mt:P()}],mr:[{mr:P()}],mb:[{mb:P()}],ml:[{ml:P()}],"space-x":[{"space-x":k()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":k()}],"space-y-reverse":["space-y-reverse"],size:[{size:T()}],w:[{w:[l,"screen",...T()]}],"min-w":[{"min-w":[l,"screen","none",...T()]}],"max-w":[{"max-w":[l,"screen","none","prose",{screen:[o]},...T()]}],h:[{h:["screen","lh",...T()]}],"min-h":[{"min-h":["screen","lh","none",...T()]}],"max-h":[{"max-h":["screen","lh",...T()]}],"font-size":[{text:["base",n,isArbitraryVariableLength,isArbitraryLength]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[i,isArbitraryVariable,isArbitraryNumber]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",isPercent,isArbitraryValue]}],"font-family":[{font:[isArbitraryVariableFamilyName,isArbitraryValue,t]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[s,isArbitraryVariable,isArbitraryValue]}],"line-clamp":[{"line-clamp":[isNumber$2,"none",isArbitraryVariable,isArbitraryNumber]}],leading:[{leading:[a,...k()]}],"list-image":[{"list-image":["none",isArbitraryVariable,isArbitraryValue]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",isArbitraryVariable,isArbitraryValue]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:x()}],"text-color":[{text:x()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...W(),"wavy"]}],"text-decoration-thickness":[{decoration:[isNumber$2,"from-font","auto",isArbitraryVariable,isArbitraryLength]}],"text-decoration-color":[{decoration:x()}],"underline-offset":[{"underline-offset":[isNumber$2,"auto",isArbitraryVariable,isArbitraryValue]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:k()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",isArbitraryVariable,isArbitraryValue]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",isArbitraryVariable,isArbitraryValue]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:S()}],"bg-repeat":[{bg:M()}],"bg-size":[{bg:V()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},isInteger,isArbitraryVariable,isArbitraryValue],radial:["",isArbitraryVariable,isArbitraryValue],conic:[isInteger,isArbitraryVariable,isArbitraryValue]},isArbitraryVariableImage,isArbitraryImage]}],"bg-color":[{bg:x()}],"gradient-from-pos":[{from:z()}],"gradient-via-pos":[{via:z()}],"gradient-to-pos":[{to:z()}],"gradient-from":[{from:x()}],"gradient-via":[{via:x()}],"gradient-to":[{to:x()}],rounded:[{rounded:G()}],"rounded-s":[{"rounded-s":G()}],"rounded-e":[{"rounded-e":G()}],"rounded-t":[{"rounded-t":G()}],"rounded-r":[{"rounded-r":G()}],"rounded-b":[{"rounded-b":G()}],"rounded-l":[{"rounded-l":G()}],"rounded-ss":[{"rounded-ss":G()}],"rounded-se":[{"rounded-se":G()}],"rounded-ee":[{"rounded-ee":G()}],"rounded-es":[{"rounded-es":G()}],"rounded-tl":[{"rounded-tl":G()}],"rounded-tr":[{"rounded-tr":G()}],"rounded-br":[{"rounded-br":G()}],"rounded-bl":[{"rounded-bl":G()}],"border-w":[{border:H()}],"border-w-x":[{"border-x":H()}],"border-w-y":[{"border-y":H()}],"border-w-s":[{"border-s":H()}],"border-w-e":[{"border-e":H()}],"border-w-t":[{"border-t":H()}],"border-w-r":[{"border-r":H()}],"border-w-b":[{"border-b":H()}],"border-w-l":[{"border-l":H()}],"divide-x":[{"divide-x":H()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":H()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...W(),"hidden","none"]}],"divide-style":[{divide:[...W(),"hidden","none"]}],"border-color":[{border:x()}],"border-color-x":[{"border-x":x()}],"border-color-y":[{"border-y":x()}],"border-color-s":[{"border-s":x()}],"border-color-e":[{"border-e":x()}],"border-color-t":[{"border-t":x()}],"border-color-r":[{"border-r":x()}],"border-color-b":[{"border-b":x()}],"border-color-l":[{"border-l":x()}],"divide-color":[{divide:x()}],"outline-style":[{outline:[...W(),"none","hidden"]}],"outline-offset":[{"outline-offset":[isNumber$2,isArbitraryVariable,isArbitraryValue]}],"outline-w":[{outline:["",isNumber$2,isArbitraryVariableLength,isArbitraryLength]}],"outline-color":[{outline:x()}],shadow:[{shadow:["","none",u,isArbitraryVariableShadow,isArbitraryShadow]}],"shadow-color":[{shadow:x()}],"inset-shadow":[{"inset-shadow":["none",p,isArbitraryVariableShadow,isArbitraryShadow]}],"inset-shadow-color":[{"inset-shadow":x()}],"ring-w":[{ring:H()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:x()}],"ring-offset-w":[{"ring-offset":[isNumber$2,isArbitraryLength]}],"ring-offset-color":[{"ring-offset":x()}],"inset-ring-w":[{"inset-ring":H()}],"inset-ring-color":[{"inset-ring":x()}],"text-shadow":[{"text-shadow":["none",h,isArbitraryVariableShadow,isArbitraryShadow]}],"text-shadow-color":[{"text-shadow":x()}],opacity:[{opacity:[isNumber$2,isArbitraryVariable,isArbitraryValue]}],"mix-blend":[{"mix-blend":[...q(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":q()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[isNumber$2]}],"mask-image-linear-from-pos":[{"mask-linear-from":U()}],"mask-image-linear-to-pos":[{"mask-linear-to":U()}],"mask-image-linear-from-color":[{"mask-linear-from":x()}],"mask-image-linear-to-color":[{"mask-linear-to":x()}],"mask-image-t-from-pos":[{"mask-t-from":U()}],"mask-image-t-to-pos":[{"mask-t-to":U()}],"mask-image-t-from-color":[{"mask-t-from":x()}],"mask-image-t-to-color":[{"mask-t-to":x()}],"mask-image-r-from-pos":[{"mask-r-from":U()}],"mask-image-r-to-pos":[{"mask-r-to":U()}],"mask-image-r-from-color":[{"mask-r-from":x()}],"mask-image-r-to-color":[{"mask-r-to":x()}],"mask-image-b-from-pos":[{"mask-b-from":U()}],"mask-image-b-to-pos":[{"mask-b-to":U()}],"mask-image-b-from-color":[{"mask-b-from":x()}],"mask-image-b-to-color":[{"mask-b-to":x()}],"mask-image-l-from-pos":[{"mask-l-from":U()}],"mask-image-l-to-pos":[{"mask-l-to":U()}],"mask-image-l-from-color":[{"mask-l-from":x()}],"mask-image-l-to-color":[{"mask-l-to":x()}],"mask-image-x-from-pos":[{"mask-x-from":U()}],"mask-image-x-to-pos":[{"mask-x-to":U()}],"mask-image-x-from-color":[{"mask-x-from":x()}],"mask-image-x-to-color":[{"mask-x-to":x()}],"mask-image-y-from-pos":[{"mask-y-from":U()}],"mask-image-y-to-pos":[{"mask-y-to":U()}],"mask-image-y-from-color":[{"mask-y-from":x()}],"mask-image-y-to-color":[{"mask-y-to":x()}],"mask-image-radial":[{"mask-radial":[isArbitraryVariable,isArbitraryValue]}],"mask-image-radial-from-pos":[{"mask-radial-from":U()}],"mask-image-radial-to-pos":[{"mask-radial-to":U()}],"mask-image-radial-from-color":[{"mask-radial-from":x()}],"mask-image-radial-to-color":[{"mask-radial-to":x()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":N()}],"mask-image-conic-pos":[{"mask-conic":[isNumber$2]}],"mask-image-conic-from-pos":[{"mask-conic-from":U()}],"mask-image-conic-to-pos":[{"mask-conic-to":U()}],"mask-image-conic-from-color":[{"mask-conic-from":x()}],"mask-image-conic-to-color":[{"mask-conic-to":x()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:S()}],"mask-repeat":[{mask:M()}],"mask-size":[{mask:V()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",isArbitraryVariable,isArbitraryValue]}],filter:[{filter:["","none",isArbitraryVariable,isArbitraryValue]}],blur:[{blur:J()}],brightness:[{brightness:[isNumber$2,isArbitraryVariable,isArbitraryValue]}],contrast:[{contrast:[isNumber$2,isArbitraryVariable,isArbitraryValue]}],"drop-shadow":[{"drop-shadow":["","none",y,isArbitraryVariableShadow,isArbitraryShadow]}],"drop-shadow-color":[{"drop-shadow":x()}],grayscale:[{grayscale:["",isNumber$2,isArbitraryVariable,isArbitraryValue]}],"hue-rotate":[{"hue-rotate":[isNumber$2,isArbitraryVariable,isArbitraryValue]}],invert:[{invert:["",isNumber$2,isArbitraryVariable,isArbitraryValue]}],saturate:[{saturate:[isNumber$2,isArbitraryVariable,isArbitraryValue]}],sepia:[{sepia:["",isNumber$2,isArbitraryVariable,isArbitraryValue]}],"backdrop-filter":[{"backdrop-filter":["","none",isArbitraryVariable,isArbitraryValue]}],"backdrop-blur":[{"backdrop-blur":J()}],"backdrop-brightness":[{"backdrop-brightness":[isNumber$2,isArbitraryVariable,isArbitraryValue]}],"backdrop-contrast":[{"backdrop-contrast":[isNumber$2,isArbitraryVariable,isArbitraryValue]}],"backdrop-grayscale":[{"backdrop-grayscale":["",isNumber$2,isArbitraryVariable,isArbitraryValue]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[isNumber$2,isArbitraryVariable,isArbitraryValue]}],"backdrop-invert":[{"backdrop-invert":["",isNumber$2,isArbitraryVariable,isArbitraryValue]}],"backdrop-opacity":[{"backdrop-opacity":[isNumber$2,isArbitraryVariable,isArbitraryValue]}],"backdrop-saturate":[{"backdrop-saturate":[isNumber$2,isArbitraryVariable,isArbitraryValue]}],"backdrop-sepia":[{"backdrop-sepia":["",isNumber$2,isArbitraryVariable,isArbitraryValue]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":k()}],"border-spacing-x":[{"border-spacing-x":k()}],"border-spacing-y":[{"border-spacing-y":k()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",isArbitraryVariable,isArbitraryValue]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[isNumber$2,"initial",isArbitraryVariable,isArbitraryValue]}],ease:[{ease:["linear","initial",g,isArbitraryVariable,isArbitraryValue]}],delay:[{delay:[isNumber$2,isArbitraryVariable,isArbitraryValue]}],animate:[{animate:["none",b,isArbitraryVariable,isArbitraryValue]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[m,isArbitraryVariable,isArbitraryValue]}],"perspective-origin":[{"perspective-origin":w()}],rotate:[{rotate:Q()}],"rotate-x":[{"rotate-x":Q()}],"rotate-y":[{"rotate-y":Q()}],"rotate-z":[{"rotate-z":Q()}],scale:[{scale:K()}],"scale-x":[{"scale-x":K()}],"scale-y":[{"scale-y":K()}],"scale-z":[{"scale-z":K()}],"scale-3d":["scale-3d"],skew:[{skew:X()}],"skew-x":[{"skew-x":X()}],"skew-y":[{"skew-y":X()}],transform:[{transform:[isArbitraryVariable,isArbitraryValue,"","none","gpu","cpu"]}],"transform-origin":[{origin:w()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:Z()}],"translate-x":[{"translate-x":Z()}],"translate-y":[{"translate-y":Z()}],"translate-z":[{"translate-z":Z()}],"translate-none":["translate-none"],accent:[{accent:x()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:x()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",isArbitraryVariable,isArbitraryValue]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":k()}],"scroll-mx":[{"scroll-mx":k()}],"scroll-my":[{"scroll-my":k()}],"scroll-ms":[{"scroll-ms":k()}],"scroll-me":[{"scroll-me":k()}],"scroll-mt":[{"scroll-mt":k()}],"scroll-mr":[{"scroll-mr":k()}],"scroll-mb":[{"scroll-mb":k()}],"scroll-ml":[{"scroll-ml":k()}],"scroll-p":[{"scroll-p":k()}],"scroll-px":[{"scroll-px":k()}],"scroll-py":[{"scroll-py":k()}],"scroll-ps":[{"scroll-ps":k()}],"scroll-pe":[{"scroll-pe":k()}],"scroll-pt":[{"scroll-pt":k()}],"scroll-pr":[{"scroll-pr":k()}],"scroll-pb":[{"scroll-pb":k()}],"scroll-pl":[{"scroll-pl":k()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",isArbitraryVariable,isArbitraryValue]}],fill:[{fill:["none",...x()]}],"stroke-w":[{stroke:[isNumber$2,isArbitraryVariableLength,isArbitraryLength,isArbitraryNumber]}],stroke:[{stroke:["none",...x()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},twMerge=createTailwindMerge(getDefaultConfig);function cn(...e){return twMerge(clsx(e))}const _hoisted_1$j={key:1,class:"h-1 w-2 bg-current rounded-sm"},_hoisted_2$i={class:"grid gap-1.5"},_hoisted_3$h=["for"],_hoisted_4$e={key:2,class:"text-sm text-destructive"},_sfc_main$A=No.defineComponent({__name:"NSCheckbox",props:{id:{},checked:{type:Boolean},defaultChecked:{type:Boolean},disabled:{type:Boolean},required:{type:Boolean},name:{},value:{},label:{},hideLabel:{type:Boolean},description:{},errorMessage:{},indeterminate:{type:Boolean},class:{}},emits:["update:checked"],setup(e,{emit:t}){const n=e,i=t,s=No.useId(),a=n.id||s,o=No.computed({get:()=>n.checked??!1,set:l=>{i("update:checked",l)}});return(l,c)=>(No.openBlock(),No.createElementBlock("div",{class:No.normalizeClass(No.unref(cn)("flex items-start space-x-2",n.class))},[No.createVNode(No.unref(Wv),{id:No.unref(a),checked:o.value,"onUpdate:checked":c[0]||(c[0]=d=>o.value=d),"default-checked":e.defaultChecked,disabled:e.disabled,required:e.required,name:e.name,value:e.value,class:No.normalizeClass(No.unref(cn)("peer h-4 w-4 shrink-0 rounded-sm border border-primary ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground",{"border-destructive":e.errorMessage,"data-[state=checked]:bg-destructive data-[state=checked]:text-destructive-foreground":e.errorMessage})),"data-indeterminate":e.indeterminate},{default:No.withCtx(()=>[No.createVNode(No.unref(jv),{class:No.normalizeClass(No.unref(cn)("flex items-center justify-center text-current",{"opacity-50":e.indeterminate}))},{default:No.withCtx(()=>[e.indeterminate?(No.openBlock(),No.createElementBlock("div",_hoisted_1$j)):(No.openBlock(),No.createBlock(No.unref(lucideVueNext.Check),{key:0,class:"h-4 w-4"}))]),_:1},8,["class"])]),_:1},8,["id","checked","default-checked","disabled","required","name","value","class","data-indeterminate"]),No.createElementVNode("div",_hoisted_2$i,[e.label||l.$slots.label?(No.openBlock(),No.createElementBlock("label",{key:0,for:No.unref(a),class:No.normalizeClass(No.unref(cn)("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70 cursor-pointer",{"sr-only":e.hideLabel,"cursor-not-allowed":e.disabled,"text-destructive":e.errorMessage}))},[No.renderSlot(l.$slots,"label",{},()=>[No.createTextVNode(No.toDisplayString(e.label),1)])],10,_hoisted_3$h)):No.createCommentVNode("",!0),e.description?(No.openBlock(),No.createElementBlock("p",{key:1,class:No.normalizeClass(No.unref(cn)("text-sm text-muted-foreground",{"text-destructive":e.errorMessage}))},No.toDisplayString(e.description),3)):No.createCommentVNode("",!0),e.errorMessage?(No.openBlock(),No.createElementBlock("p",_hoisted_4$e,No.toDisplayString(e.errorMessage),1)):No.createCommentVNode("",!0),No.renderSlot(l.$slots,"extra")])],2))}}),_hoisted_1$i=["for"],_hoisted_2$h={class:"relative"},_hoisted_3$g=["id","type","placeholder","disabled","readonly","required","name","value"],_hoisted_4$d={key:1,class:"absolute right-0 top-1/2 transform -translate-y-1/2 flex items-center gap-1 pr-3"},_hoisted_5$a=["disabled","title"],_sfc_main$z=No.defineComponent({__name:"NSTextInput",props:{modelValue:{},value:{},defaultValue:{},type:{default:"text"},placeholder:{},disabled:{type:Boolean},readonly:{type:Boolean},required:{type:Boolean},name:{},id:{},label:{},description:{},errorMessage:{},warningMessage:{},successMessage:{},helperText:{},prefix:{},suffix:{},showPasswordToggle:{type:Boolean,default:!1},class:{},labelClass:{},inputClass:{},containerClass:{}},emits:["update:modelValue","update:value","focus","blur","input","change"],setup(e,{expose:t,emit:n}){const i=e,s=n,a=No.useId(),o=i.id||a,l=No.ref(!1),c=No.ref(!1),d=No.ref(),u=No.computed(()=>i.type==="password"),p=No.computed(()=>u.value?l.value?"text":"password":i.type),h=No.computed(()=>i.errorMessage?"destructive":i.warningMessage?"warning":i.successMessage?"success":"default"),y=No.computed(()=>i.errorMessage?i.errorMessage:i.warningMessage?i.warningMessage:i.successMessage?i.successMessage:i.helperText?i.helperText:""),f=No.computed(()=>i.errorMessage?lucideVueNext.AlertCircle:i.warningMessage?lucideVueNext.AlertTriangle:i.successMessage?lucideVueNext.CheckCircle:null),m=No.computed({get:()=>i.modelValue??i.value??"",set:E=>{s("update:modelValue",E),s("update:value",E)}}),C=()=>{l.value=!l.value},g=E=>{const _=E.target;m.value=_.value,s("input",E)},b=E=>{s("change",E)},v=E=>{c.value=!0,s("focus",E)},N=E=>{c.value=!1,s("blur",E)};return t({focus:()=>{No.nextTick(()=>{d.value?.focus()})},inputRef:d}),(E,_)=>(No.openBlock(),No.createElementBlock("div",{class:No.normalizeClass(No.unref(cn)("grid w-full max-w-sm gap-1.5",e.containerClass))},[e.label||E.$slots.label?(No.openBlock(),No.createElementBlock("label",{key:0,for:No.unref(o),class:No.normalizeClass(No.unref(cn)("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70",{"text-destructive":e.errorMessage,"text-orange-600":e.warningMessage,"text-green-600":e.successMessage},e.labelClass))},[No.renderSlot(E.$slots,"label",{},()=>[No.createTextVNode(No.toDisplayString(e.label),1)])],10,_hoisted_1$i)):No.createCommentVNode("",!0),No.createElementVNode("div",_hoisted_2$h,[e.prefix?(No.openBlock(),No.createElementBlock("span",{key:0,class:No.normalizeClass(No.unref(cn)("absolute left-3 top-1/2 transform -translate-y-1/2 text-sm text-muted-foreground",{"text-destructive":e.errorMessage,"text-orange-600":e.warningMessage,"text-green-600":e.successMessage}))},No.toDisplayString(e.prefix),3)):No.createCommentVNode("",!0),No.createElementVNode("input",No.mergeProps({id:No.unref(o),ref_key:"inputRef",ref:d,type:p.value,class:No.unref(cn)("flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-sm shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50",{"pl-8":e.prefix,"pr-16":u.value&&e.showPasswordToggle||f.value,"pr-12":f.value&&!(u.value&&e.showPasswordToggle),"border-destructive text-destructive focus:border-destructive":h.value==="destructive","border-orange-500 text-orange-600 focus:border-orange-500":h.value==="warning","border-green-500 text-green-600 focus:border-green-500":h.value==="success","ring-2 ring-ring ring-offset-2":c.value},e.inputClass),placeholder:e.placeholder,disabled:e.disabled,readonly:e.readonly,required:e.required,name:e.name,value:m.value,onInput:g,onChange:b,onFocus:v,onBlur:N},E.$attrs),null,16,_hoisted_3$g),f.value||u.value&&e.showPasswordToggle?(No.openBlock(),No.createElementBlock("div",_hoisted_4$d,[f.value?(No.openBlock(),No.createBlock(No.resolveDynamicComponent(f.value),{key:0,class:No.normalizeClass(No.unref(cn)("h-4 w-4",{"text-destructive":h.value==="destructive","text-orange-600":h.value==="warning","text-green-600":h.value==="success"}))},null,8,["class"])):No.createCommentVNode("",!0),u.value&&e.showPasswordToggle?(No.openBlock(),No.createElementBlock("button",{key:1,type:"button",class:No.normalizeClass(No.unref(cn)("text-muted-foreground hover:text-foreground transition-colors",{"pointer-events-none":e.disabled})),disabled:e.disabled,onClick:C,title:l.value?"Hide password":"Show password"},[l.value?(No.openBlock(),No.createBlock(No.unref(lucideVueNext.EyeOff),{key:0,class:"h-4 w-4"})):(No.openBlock(),No.createBlock(No.unref(lucideVueNext.Eye),{key:1,class:"h-4 w-4"}))],10,_hoisted_5$a)):No.createCommentVNode("",!0)])):No.createCommentVNode("",!0)]),y.value?(No.openBlock(),No.createElementBlock("p",{key:1,class:No.normalizeClass(No.unref(cn)("text-sm flex items-start gap-1",{"text-muted-foreground":!e.errorMessage&&!e.warningMessage&&!e.successMessage,"text-destructive":e.errorMessage,"text-orange-600":e.warningMessage,"text-green-600":e.successMessage}))},[f.value?(No.openBlock(),No.createBlock(No.resolveDynamicComponent(f.value),{key:0,class:"h-4 w-4 mt-0.5 flex-shrink-0"})):No.createCommentVNode("",!0),No.createElementVNode("span",null,No.toDisplayString(y.value),1)],2)):No.createCommentVNode("",!0),No.renderSlot(E.$slots,"extra")],2))}}),_hoisted_1$h={class:"grid gap-1.5"},_hoisted_2$g=["for"],_hoisted_3$f={key:2,class:"text-sm text-muted-foreground"},_sfc_main$y=No.defineComponent({__name:"NSToggle",props:{modelValue:{type:Boolean},checked:{type:Boolean},defaultChecked:{type:Boolean},disabled:{type:Boolean},required:{type:Boolean},name:{},value:{},id:{},label:{},hideLabel:{type:Boolean},description:{},leftText:{default:"Off"},rightText:{default:"On"},variant:{default:"default"},size:{default:"default"},class:{},labelClass:{},containerClass:{}},emits:["update:modelValue","update:checked"],setup(e,{emit:t}){const n=e,i=t,s=No.useId(),a=n.id||s,o=No.computed({get:()=>n.modelValue??n.checked??!1,set:d=>{i("update:modelValue",d),i("update:checked",d)}}),l=No.computed(()=>{const d="peer inline-flex h-6 w-11 shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:cursor-not-allowed disabled:opacity-50",u={default:"data-[state=checked]:bg-primary data-[state=unchecked]:bg-input",destructive:"data-[state=checked]:bg-destructive data-[state=unchecked]:bg-input",success:"data-[state=checked]:bg-green-500 data-[state=unchecked]:bg-input",warning:"data-[state=checked]:bg-orange-500 data-[state=unchecked]:bg-input"},p={default:"h-6 w-11",sm:"h-5 w-9",lg:"h-7 w-13"};return cn(d,u[n.variant],p[n.size])}),c=No.computed(()=>cn("pointer-events-none block rounded-full bg-background shadow-lg ring-0 transition-transform data-[state=checked]:translate-x-5 data-[state=unchecked]:translate-x-0",{default:"h-5 w-5 data-[state=checked]:translate-x-5",sm:"h-4 w-4 data-[state=checked]:translate-x-4",lg:"h-6 w-6 data-[state=checked]:translate-x-6"}[n.size]));return(d,u)=>(No.openBlock(),No.createElementBlock("div",{class:No.normalizeClass(No.unref(cn)("flex items-center gap-3",e.containerClass))},[No.createVNode(No.unref(gg),{id:No.unref(a),checked:o.value,"onUpdate:checked":u[0]||(u[0]=p=>o.value=p),"default-checked":e.defaultChecked,disabled:e.disabled,required:e.required,name:e.name,value:e.value,class:No.normalizeClass(l.value)},{default:No.withCtx(()=>[No.createVNode(No.unref(bg),{class:No.normalizeClass(c.value)},null,8,["class"])]),_:1},8,["id","checked","default-checked","disabled","required","name","value","class"]),No.createElementVNode("div",_hoisted_1$h,[e.label||d.$slots.label?(No.openBlock(),No.createElementBlock("label",{key:0,for:No.unref(a),class:No.normalizeClass(No.unref(cn)("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70 cursor-pointer",{"sr-only":e.hideLabel,"cursor-not-allowed":e.disabled,"text-destructive":e.variant==="destructive","text-green-600":e.variant==="success","text-orange-600":e.variant==="warning"},e.labelClass))},[No.renderSlot(d.$slots,"label",{},()=>[No.createTextVNode(No.toDisplayString(e.label),1)])],10,_hoisted_2$g)):No.createCommentVNode("",!0),!e.hideLabel&&(e.leftText||e.rightText||d.$slots["left-text"]||d.$slots["right-text"])?(No.openBlock(),No.createElementBlock("div",{key:1,class:No.normalizeClass(No.unref(cn)("flex items-center gap-2 text-xs font-medium",{"text-muted-foreground":!o.value,"text-primary":o.value,"text-destructive":e.variant==="destructive"&&o.value,"text-green-600":e.variant==="success"&&o.value,"text-orange-600":e.variant==="warning"&&o.value}))},[No.createElementVNode("span",{class:No.normalizeClass({"opacity-50":o.value})},[No.renderSlot(d.$slots,"left-text",{},()=>[No.createTextVNode(No.toDisplayString(e.leftText),1)])],2),No.createElementVNode("div",{class:No.normalizeClass(No.unref(cn)("w-8 h-px bg-current",{"opacity-20":!o.value,"opacity-100":o.value}))},null,2),No.createElementVNode("span",{class:No.normalizeClass({"opacity-50":!o.value})},[No.renderSlot(d.$slots,"right-text",{},()=>[No.createTextVNode(No.toDisplayString(e.rightText),1)])],2)],2)):No.createCommentVNode("",!0),e.description?(No.openBlock(),No.createElementBlock("p",_hoisted_3$f,No.toDisplayString(e.description),1)):No.createCommentVNode("",!0),No.renderSlot(d.$slots,"extra")])],2))}}),_hoisted_1$g={key:0,class:"flex items-center justify-center"},_hoisted_2$f=["innerHTML"],_hoisted_3$e={class:"truncate max-w-[200px]"},_hoisted_4$c=["disabled","aria-label","title"],_sfc_main$x=No.defineComponent({__name:"NSTag",props:{label:{},variant:{default:"default"},size:{default:"default"},interactive:{type:Boolean,default:!1},removable:{type:Boolean,default:!1},disabled:{type:Boolean},icon:{},clearAriaLabel:{default:"Remove tag"},title:{},class:{}},emits:["remove","click"],setup(e,{emit:t}){const n=e,i=t,s=No.computed(()=>n.interactive&&!n.disabled),a=No.computed(()=>n.removable),o=No.computed(()=>{const u="inline-flex items-center gap-1 rounded-md border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",p={default:"border-transparent bg-primary text-primary-foreground hover:bg-primary/80",secondary:"border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",destructive:"border-transparent bg-destructive text-destructive-foreground hover:bg-destructive/80",outline:"text-foreground",success:"border-transparent bg-green-500 text-white hover:bg-green-600",warning:"border-transparent bg-orange-500 text-white hover:bg-orange-600",info:"border-transparent bg-blue-500 text-white hover:bg-blue-600",gray:"border-transparent bg-gray-100 text-gray-800 hover:bg-gray-200 dark:bg-gray-800 dark:text-gray-200 dark:hover:bg-gray-700"},h={default:"px-2.5 py-0.5 text-xs",sm:"px-2 py-0.5 text-xs",lg:"px-3 py-1 text-sm"};return cn(u,p[n.variant],h[n.size],{"cursor-pointer hover:opacity-80":s.value,"opacity-50 cursor-not-allowed":disabled,"cursor-default":a.value&&!interactive},n.class)}),l=u=>{s.value&&i("click",u)},c=u=>{u.stopPropagation(),n.disabled||i("remove")},d=u=>{a.value&&(u.key==="Enter"||u.key===" ")&&(u.preventDefault(),c(u))};return(u,p)=>(No.openBlock(),No.createBlock(No.resolveDynamicComponent(s.value?"button":"div"),{class:No.normalizeClass(o.value),disabled:e.disabled,title:e.title||e.label,onClick:l,onKeydown:d,"aria-label":e.label,role:"button",tabindex:"0"},{default:No.withCtx(()=>[e.icon&&!a.value?(No.openBlock(),No.createElementBlock("div",_hoisted_1$g,[typeof e.icon=="object"?(No.openBlock(),No.createBlock(No.resolveDynamicComponent(e.icon),{key:0,class:"h-3 w-3"})):typeof e.icon=="string"?(No.openBlock(),No.createElementBlock("div",{key:1,innerHTML:e.icon,class:"h-3 w-3"},null,8,_hoisted_2$f)):No.createCommentVNode("",!0)])):No.createCommentVNode("",!0),No.createElementVNode("span",_hoisted_3$e,[No.renderSlot(u.$slots,"default",{},()=>[No.createTextVNode(No.toDisplayString(e.label),1)])]),a.value?(No.openBlock(),No.createElementBlock("button",{key:1,type:"button",class:No.normalizeClass(No.unref(cn)("flex items-center justify-center rounded-full hover:bg-black/10 dark:hover:bg-white/10 transition-colors","ml-1 -mr-1 h-4 w-4 p-0",{"opacity-50 cursor-not-allowed":e.disabled})),disabled:e.disabled,"aria-label":e.clearAriaLabel,title:e.clearAriaLabel,onClick:c},[No.createVNode(No.unref(lucideVueNext.X),{class:"h-3 w-3"})],10,_hoisted_4$c)):No.createCommentVNode("",!0)]),_:3},40,["class","disabled","title","aria-label"]))}});function getDefaultExportFromCjs(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var lottie$2={exports:{}},lottie$1=lottie$2.exports,hasRequiredLottie;function requireLottie(){return hasRequiredLottie||(hasRequiredLottie=1,(function(module,exports$1){typeof document<"u"&&typeof navigator<"u"&&(function(e,t){module.exports=t()})(lottie$1,(function(){var svgNS="http://www.w3.org/2000/svg",locationHref="",_useWebWorker=!1,initialDefaultFrame=-999999,setWebWorker=function(t){_useWebWorker=!!t},getWebWorker=function(){return _useWebWorker},setLocationHref=function(t){locationHref=t},getLocationHref=function(){return locationHref};function createTag(e){return document.createElement(e)}function extendPrototype(e,t){var n,i=e.length,s;for(n=0;n<i;n+=1){s=e[n].prototype;for(var a in s)Object.prototype.hasOwnProperty.call(s,a)&&(t.prototype[a]=s[a])}}function getDescriptor(e,t){return Object.getOwnPropertyDescriptor(e,t)}function createProxyFunction(e){function t(){}return t.prototype=e,t}var audioControllerFactory=(function(){function e(t){this.audios=[],this.audioFactory=t,this._volume=1,this._isMuted=!1}return e.prototype={addAudio:function(n){this.audios.push(n)},pause:function(){var n,i=this.audios.length;for(n=0;n<i;n+=1)this.audios[n].pause()},resume:function(){var n,i=this.audios.length;for(n=0;n<i;n+=1)this.audios[n].resume()},setRate:function(n){var i,s=this.audios.length;for(i=0;i<s;i+=1)this.audios[i].setRate(n)},createAudio:function(n){return this.audioFactory?this.audioFactory(n):window.Howl?new window.Howl({src:[n]}):{isPlaying:!1,play:function(){this.isPlaying=!0},seek:function(){this.isPlaying=!1},playing:function(){},rate:function(){},setVolume:function(){}}},setAudioFactory:function(n){this.audioFactory=n},setVolume:function(n){this._volume=n,this._updateVolume()},mute:function(){this._isMuted=!0,this._updateVolume()},unmute:function(){this._isMuted=!1,this._updateVolume()},getVolume:function(){return this._volume},_updateVolume:function(){var n,i=this.audios.length;for(n=0;n<i;n+=1)this.audios[n].volume(this._volume*(this._isMuted?0:1))}},function(){return new e}})(),createTypedArray=(function(){function e(n,i){var s=0,a=[],o;switch(n){case"int16":case"uint8c":o=1;break;default:o=1.1;break}for(s=0;s<i;s+=1)a.push(o);return a}function t(n,i){return n==="float32"?new Float32Array(i):n==="int16"?new Int16Array(i):n==="uint8c"?new Uint8ClampedArray(i):e(n,i)}return typeof Uint8ClampedArray=="function"&&typeof Float32Array=="function"?t:e})();function createSizedArray(e){return Array.apply(null,{length:e})}function _typeof$6(e){"@babel/helpers - typeof";return _typeof$6=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$6(e)}var subframeEnabled=!0,expressionsPlugin=null,expressionsInterfaces=null,idPrefix$1="",isSafari=/^((?!chrome|android).)*safari/i.test(navigator.userAgent),bmPow=Math.pow,bmSqrt=Math.sqrt,bmFloor=Math.floor,bmMax=Math.max,bmMin=Math.min,BMMath={};(function(){var e=["abs","acos","acosh","asin","asinh","atan","atanh","atan2","ceil","cbrt","expm1","clz32","cos","cosh","exp","floor","fround","hypot","imul","log","log1p","log2","log10","max","min","pow","random","round","sign","sin","sinh","sqrt","tan","tanh","trunc","E","LN10","LN2","LOG10E","LOG2E","PI","SQRT1_2","SQRT2"],t,n=e.length;for(t=0;t<n;t+=1)BMMath[e[t]]=Math[e[t]]})(),BMMath.random=Math.random,BMMath.abs=function(e){var t=_typeof$6(e);if(t==="object"&&e.length){var n=createSizedArray(e.length),i,s=e.length;for(i=0;i<s;i+=1)n[i]=Math.abs(e[i]);return n}return Math.abs(e)};var defaultCurveSegments=150,degToRads=Math.PI/180,roundCorner=.5519;function styleDiv(e){e.style.position="absolute",e.style.top=0,e.style.left=0,e.style.display="block",e.style.transformOrigin="0 0",e.style.webkitTransformOrigin="0 0",e.style.backfaceVisibility="visible",e.style.webkitBackfaceVisibility="visible",e.style.transformStyle="preserve-3d",e.style.webkitTransformStyle="preserve-3d",e.style.mozTransformStyle="preserve-3d"}function BMEnterFrameEvent(e,t,n,i){this.type=e,this.currentTime=t,this.totalTime=n,this.direction=i<0?-1:1}function BMCompleteEvent(e,t){this.type=e,this.direction=t<0?-1:1}function BMCompleteLoopEvent(e,t,n,i){this.type=e,this.currentLoop=n,this.totalLoops=t,this.direction=i<0?-1:1}function BMSegmentStartEvent(e,t,n){this.type=e,this.firstFrame=t,this.totalFrames=n}function BMDestroyEvent(e,t){this.type=e,this.target=t}function BMRenderFrameErrorEvent(e,t){this.type="renderFrameError",this.nativeError=e,this.currentTime=t}function BMConfigErrorEvent(e){this.type="configError",this.nativeError=e}var createElementID=(function(){var e=0;return function(){return e+=1,idPrefix$1+"__lottie_element_"+e}})();function HSVtoRGB(e,t,n){var i,s,a,o,l,c,d,u;switch(o=Math.floor(e*6),l=e*6-o,c=n*(1-t),d=n*(1-l*t),u=n*(1-(1-l)*t),o%6){case 0:i=n,s=u,a=c;break;case 1:i=d,s=n,a=c;break;case 2:i=c,s=n,a=u;break;case 3:i=c,s=d,a=n;break;case 4:i=u,s=c,a=n;break;case 5:i=n,s=c,a=d;break}return[i,s,a]}function RGBtoHSV(e,t,n){var i=Math.max(e,t,n),s=Math.min(e,t,n),a=i-s,o,l=i===0?0:a/i,c=i/255;switch(i){case s:o=0;break;case e:o=t-n+a*(t<n?6:0),o/=6*a;break;case t:o=n-e+a*2,o/=6*a;break;case n:o=e-t+a*4,o/=6*a;break}return[o,l,c]}function addSaturationToRGB(e,t){var n=RGBtoHSV(e[0]*255,e[1]*255,e[2]*255);return n[1]+=t,n[1]>1?n[1]=1:n[1]<=0&&(n[1]=0),HSVtoRGB(n[0],n[1],n[2])}function addBrightnessToRGB(e,t){var n=RGBtoHSV(e[0]*255,e[1]*255,e[2]*255);return n[2]+=t,n[2]>1?n[2]=1:n[2]<0&&(n[2]=0),HSVtoRGB(n[0],n[1],n[2])}function addHueToRGB(e,t){var n=RGBtoHSV(e[0]*255,e[1]*255,e[2]*255);return n[0]+=t/360,n[0]>1?n[0]-=1:n[0]<0&&(n[0]+=1),HSVtoRGB(n[0],n[1],n[2])}var rgbToHex=(function(){var e=[],t,n;for(t=0;t<256;t+=1)n=t.toString(16),e[t]=n.length===1?"0"+n:n;return function(i,s,a){return i<0&&(i=0),s<0&&(s=0),a<0&&(a=0),"#"+e[i]+e[s]+e[a]}})(),setSubframeEnabled=function(t){subframeEnabled=!!t},getSubframeEnabled=function(){return subframeEnabled},setExpressionsPlugin=function(t){expressionsPlugin=t},getExpressionsPlugin=function(){return expressionsPlugin},setExpressionInterfaces=function(t){expressionsInterfaces=t},getExpressionInterfaces=function(){return expressionsInterfaces},setDefaultCurveSegments=function(t){defaultCurveSegments=t},getDefaultCurveSegments=function(){return defaultCurveSegments},setIdPrefix=function(t){idPrefix$1=t};function createNS(e){return document.createElementNS(svgNS,e)}function _typeof$5(e){"@babel/helpers - typeof";return _typeof$5=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$5(e)}var dataManager=(function(){var e=1,t=[],n,i,s={onmessage:function(){},postMessage:function(y){n({data:y})}},a={postMessage:function(y){s.onmessage({data:y})}};function o(h){if(window.Worker&&window.Blob&&getWebWorker()){var y=new Blob(["var _workerSelf = self; self.onmessage = ",h.toString()],{type:"text/javascript"}),f=URL.createObjectURL(y);return new Worker(f)}return n=h,s}function l(){i||(i=o(function(y){function f(){function C($,P){var T,x,S=$.length,M,V,z,G;for(x=0;x<S;x+=1)if(T=$[x],"ks"in T&&!T.completed){if(T.completed=!0,T.hasMask){var H=T.masksProperties;for(V=H.length,M=0;M<V;M+=1)if(H[M].pt.k.i)w(H[M].pt.k);else for(G=H[M].pt.k.length,z=0;z<G;z+=1)H[M].pt.k[z].s&&w(H[M].pt.k[z].s[0]),H[M].pt.k[z].e&&w(H[M].pt.k[z].e[0])}T.ty===0?(T.layers=v(T.refId,P),C(T.layers,P)):T.ty===4?N(T.shapes):T.ty===5&&D(T)}}function g($,P){if($){var T=0,x=$.length;for(T=0;T<x;T+=1)$[T].t===1&&($[T].data.layers=v($[T].data.refId,P),C($[T].data.layers,P))}}function b($,P){for(var T=0,x=P.length;T<x;){if(P[T].id===$)return P[T];T+=1}return null}function v($,P){var T=b($,P);return T?T.layers.__used?JSON.parse(JSON.stringify(T.layers)):(T.layers.__used=!0,T.layers):null}function N($){var P,T=$.length,x,S;for(P=T-1;P>=0;P-=1)if($[P].ty==="sh")if($[P].ks.k.i)w($[P].ks.k);else for(S=$[P].ks.k.length,x=0;x<S;x+=1)$[P].ks.k[x].s&&w($[P].ks.k[x].s[0]),$[P].ks.k[x].e&&w($[P].ks.k[x].e[0]);else $[P].ty==="gr"&&N($[P].it)}function w($){var P,T=$.i.length;for(P=0;P<T;P+=1)$.i[P][0]+=$.v[P][0],$.i[P][1]+=$.v[P][1],$.o[P][0]+=$.v[P][0],$.o[P][1]+=$.v[P][1]}function E($,P){var T=P?P.split("."):[100,100,100];return $[0]>T[0]?!0:T[0]>$[0]?!1:$[1]>T[1]?!0:T[1]>$[1]?!1:$[2]>T[2]?!0:T[2]>$[2]?!1:null}var _=(function(){var $=[4,4,14];function P(x){var S=x.t.d;x.t.d={k:[{s:S,t:0}]}}function T(x){var S,M=x.length;for(S=0;S<M;S+=1)x[S].ty===5&&P(x[S])}return function(x){if(E($,x.v)&&(T(x.layers),x.assets)){var S,M=x.assets.length;for(S=0;S<M;S+=1)x.assets[S].layers&&T(x.assets[S].layers)}}})(),k=(function(){var $=[4,7,99];return function(P){if(P.chars&&!E($,P.v)){var T,x=P.chars.length;for(T=0;T<x;T+=1){var S=P.chars[T];S.data&&S.data.shapes&&(N(S.data.shapes),S.data.ip=0,S.data.op=99999,S.data.st=0,S.data.sr=1,S.data.ks={p:{k:[0,0],a:0},s:{k:[100,100],a:0},a:{k:[0,0],a:0},r:{k:0,a:0},o:{k:100,a:0}},P.chars[T].t||(S.data.shapes.push({ty:"no"}),S.data.shapes[0].it.push({p:{k:[0,0],a:0},s:{k:[100,100],a:0},a:{k:[0,0],a:0},r:{k:0,a:0},o:{k:100,a:0},sk:{k:0,a:0},sa:{k:0,a:0},ty:"tr"})))}}}})(),A=(function(){var $=[5,7,15];function P(x){var S=x.t.p;typeof S.a=="number"&&(S.a={a:0,k:S.a}),typeof S.p=="number"&&(S.p={a:0,k:S.p}),typeof S.r=="number"&&(S.r={a:0,k:S.r})}function T(x){var S,M=x.length;for(S=0;S<M;S+=1)x[S].ty===5&&P(x[S])}return function(x){if(E($,x.v)&&(T(x.layers),x.assets)){var S,M=x.assets.length;for(S=0;S<M;S+=1)x.assets[S].layers&&T(x.assets[S].layers)}}})(),F=(function(){var $=[4,1,9];function P(x){var S,M=x.length,V,z;for(S=0;S<M;S+=1)if(x[S].ty==="gr")P(x[S].it);else if(x[S].ty==="fl"||x[S].ty==="st")if(x[S].c.k&&x[S].c.k[0].i)for(z=x[S].c.k.length,V=0;V<z;V+=1)x[S].c.k[V].s&&(x[S].c.k[V].s[0]/=255,x[S].c.k[V].s[1]/=255,x[S].c.k[V].s[2]/=255,x[S].c.k[V].s[3]/=255),x[S].c.k[V].e&&(x[S].c.k[V].e[0]/=255,x[S].c.k[V].e[1]/=255,x[S].c.k[V].e[2]/=255,x[S].c.k[V].e[3]/=255);else x[S].c.k[0]/=255,x[S].c.k[1]/=255,x[S].c.k[2]/=255,x[S].c.k[3]/=255}function T(x){var S,M=x.length;for(S=0;S<M;S+=1)x[S].ty===4&&P(x[S].shapes)}return function(x){if(E($,x.v)&&(T(x.layers),x.assets)){var S,M=x.assets.length;for(S=0;S<M;S+=1)x.assets[S].layers&&T(x.assets[S].layers)}}})(),B=(function(){var $=[4,4,18];function P(x){var S,M=x.length,V,z;for(S=M-1;S>=0;S-=1)if(x[S].ty==="sh")if(x[S].ks.k.i)x[S].ks.k.c=x[S].closed;else for(z=x[S].ks.k.length,V=0;V<z;V+=1)x[S].ks.k[V].s&&(x[S].ks.k[V].s[0].c=x[S].closed),x[S].ks.k[V].e&&(x[S].ks.k[V].e[0].c=x[S].closed);else x[S].ty==="gr"&&P(x[S].it)}function T(x){var S,M,V=x.length,z,G,H,W;for(M=0;M<V;M+=1){if(S=x[M],S.hasMask){var q=S.masksProperties;for(G=q.length,z=0;z<G;z+=1)if(q[z].pt.k.i)q[z].pt.k.c=q[z].cl;else for(W=q[z].pt.k.length,H=0;H<W;H+=1)q[z].pt.k[H].s&&(q[z].pt.k[H].s[0].c=q[z].cl),q[z].pt.k[H].e&&(q[z].pt.k[H].e[0].c=q[z].cl)}S.ty===4&&P(S.shapes)}}return function(x){if(E($,x.v)&&(T(x.layers),x.assets)){var S,M=x.assets.length;for(S=0;S<M;S+=1)x.assets[S].layers&&T(x.assets[S].layers)}}})();function I($){$.__complete||(F($),_($),k($),A($),B($),C($.layers,$.assets),g($.chars,$.assets),$.__complete=!0)}function D($){$.t.a.length===0&&"m"in $.t.p}var L={};return L.completeData=I,L.checkColors=F,L.checkChars=k,L.checkPathProperties=A,L.checkShapes=B,L.completeLayers=C,L}if(a.dataManager||(a.dataManager=f()),a.assetLoader||(a.assetLoader=(function(){function C(b){var v=b.getResponseHeader("content-type");return v&&b.responseType==="json"&&v.indexOf("json")!==-1||b.response&&_typeof$5(b.response)==="object"?b.response:b.response&&typeof b.response=="string"?JSON.parse(b.response):b.responseText?JSON.parse(b.responseText):null}function g(b,v,N,w){var E,_=new XMLHttpRequest;try{_.responseType="json"}catch{}_.onreadystatechange=function(){if(_.readyState===4)if(_.status===200)E=C(_),N(E);else try{E=C(_),N(E)}catch(k){w&&w(k)}};try{_.open(["G","E","T"].join(""),b,!0)}catch{_.open(["G","E","T"].join(""),v+"/"+b,!0)}_.send()}return{load:g}})()),y.data.type==="loadAnimation")a.assetLoader.load(y.data.path,y.data.fullPath,function(C){a.dataManager.completeData(C),a.postMessage({id:y.data.id,payload:C,status:"success"})},function(){a.postMessage({id:y.data.id,status:"error"})});else if(y.data.type==="complete"){var m=y.data.animation;a.dataManager.completeData(m),a.postMessage({id:y.data.id,payload:m,status:"success"})}else y.data.type==="loadData"&&a.assetLoader.load(y.data.path,y.data.fullPath,function(C){a.postMessage({id:y.data.id,payload:C,status:"success"})},function(){a.postMessage({id:y.data.id,status:"error"})})}),i.onmessage=function(h){var y=h.data,f=y.id,m=t[f];t[f]=null,y.status==="success"?m.onComplete(y.payload):m.onError&&m.onError()})}function c(h,y){e+=1;var f="processId_"+e;return t[f]={onComplete:h,onError:y},f}function d(h,y,f){l();var m=c(y,f);i.postMessage({type:"loadAnimation",path:h,fullPath:window.location.origin+window.location.pathname,id:m})}function u(h,y,f){l();var m=c(y,f);i.postMessage({type:"loadData",path:h,fullPath:window.location.origin+window.location.pathname,id:m})}function p(h,y,f){l();var m=c(y,f);i.postMessage({type:"complete",animation:h,id:m})}return{loadAnimation:d,loadData:u,completeAnimation:p}})(),ImagePreloader=(function(){var e=(function(){var g=createTag("canvas");g.width=1,g.height=1;var b=g.getContext("2d");return b.fillStyle="rgba(0,0,0,0)",b.fillRect(0,0,1,1),g})();function t(){this.loadedAssets+=1,this.loadedAssets===this.totalImages&&this.loadedFootagesCount===this.totalFootages&&this.imagesLoadedCb&&this.imagesLoadedCb(null)}function n(){this.loadedFootagesCount+=1,this.loadedAssets===this.totalImages&&this.loadedFootagesCount===this.totalFootages&&this.imagesLoadedCb&&this.imagesLoadedCb(null)}function i(g,b,v){var N="";if(g.e)N=g.p;else if(b){var w=g.p;w.indexOf("images/")!==-1&&(w=w.split("/")[1]),N=b+w}else N=v,N+=g.u?g.u:"",N+=g.p;return N}function s(g){var b=0,v=setInterval((function(){var N=g.getBBox();(N.width||b>500)&&(this._imageLoaded(),clearInterval(v)),b+=1}).bind(this),50)}function a(g){var b=i(g,this.assetsPath,this.path),v=createNS("image");isSafari?this.testImageLoaded(v):v.addEventListener("load",this._imageLoaded,!1),v.addEventListener("error",(function(){N.img=e,this._imageLoaded()}).bind(this),!1),v.setAttributeNS("http://www.w3.org/1999/xlink","href",b),this._elementHelper.append?this._elementHelper.append(v):this._elementHelper.appendChild(v);var N={img:v,assetData:g};return N}function o(g){var b=i(g,this.assetsPath,this.path),v=createTag("img");v.crossOrigin="anonymous",v.addEventListener("load",this._imageLoaded,!1),v.addEventListener("error",(function(){N.img=e,this._imageLoaded()}).bind(this),!1),v.src=b;var N={img:v,assetData:g};return N}function l(g){var b={assetData:g},v=i(g,this.assetsPath,this.path);return dataManager.loadData(v,(function(N){b.img=N,this._footageLoaded()}).bind(this),(function(){b.img={},this._footageLoaded()}).bind(this)),b}function c(g,b){this.imagesLoadedCb=b;var v,N=g.length;for(v=0;v<N;v+=1)g[v].layers||(!g[v].t||g[v].t==="seq"?(this.totalImages+=1,this.images.push(this._createImageData(g[v]))):g[v].t===3&&(this.totalFootages+=1,this.images.push(this.createFootageData(g[v]))))}function d(g){this.path=g||""}function u(g){this.assetsPath=g||""}function p(g){for(var b=0,v=this.images.length;b<v;){if(this.images[b].assetData===g)return this.images[b].img;b+=1}return null}function h(){this.imagesLoadedCb=null,this.images.length=0}function y(){return this.totalImages===this.loadedAssets}function f(){return this.totalFootages===this.loadedFootagesCount}function m(g,b){g==="svg"?(this._elementHelper=b,this._createImageData=this.createImageData.bind(this)):this._createImageData=this.createImgData.bind(this)}function C(){this._imageLoaded=t.bind(this),this._footageLoaded=n.bind(this),this.testImageLoaded=s.bind(this),this.createFootageData=l.bind(this),this.assetsPath="",this.path="",this.totalImages=0,this.totalFootages=0,this.loadedAssets=0,this.loadedFootagesCount=0,this.imagesLoadedCb=null,this.images=[]}return C.prototype={loadAssets:c,setAssetsPath:u,setPath:d,loadedImages:y,loadedFootages:f,destroy:h,getAsset:p,createImgData:o,createImageData:a,imageLoaded:t,footageLoaded:n,setCacheType:m},C})();function BaseEvent(){}BaseEvent.prototype={triggerEvent:function(t,n){if(this._cbs[t])for(var i=this._cbs[t],s=0;s<i.length;s+=1)i[s](n)},addEventListener:function(t,n){return this._cbs[t]||(this._cbs[t]=[]),this._cbs[t].push(n),(function(){this.removeEventListener(t,n)}).bind(this)},removeEventListener:function(t,n){if(!n)this._cbs[t]=null;else if(this._cbs[t]){for(var i=0,s=this._cbs[t].length;i<s;)this._cbs[t][i]===n&&(this._cbs[t].splice(i,1),i-=1,s-=1),i+=1;this._cbs[t].length||(this._cbs[t]=null)}}};var markerParser=(function(){function e(t){for(var n=t.split(`\r
|
|
8
|
-
`),i={},s,a=0,o=0;o<n.length;o+=1)s=n[o].split(":"),s.length===2&&(i[s[0]]=s[1].trim(),a+=1);if(a===0)throw new Error;return i}return function(t){for(var n=[],i=0;i<t.length;i+=1){var s=t[i],a={time:s.tm,duration:s.dr};try{a.payload=JSON.parse(t[i].cm)}catch{try{a.payload=e(t[i].cm)}catch{a.payload={name:t[i].cm}}}n.push(a)}return n}})(),ProjectInterface=(function(){function e(t){this.compositions.push(t)}return function(){function t(n){for(var i=0,s=this.compositions.length;i<s;){if(this.compositions[i].data&&this.compositions[i].data.nm===n)return this.compositions[i].prepareFrame&&this.compositions[i].data.xt&&this.compositions[i].prepareFrame(this.currentFrame),this.compositions[i].compInterface;i+=1}return null}return t.compositions=[],t.currentFrame=0,t.registerComposition=e,t}})(),renderers={},registerRenderer=function(t,n){renderers[t]=n};function getRenderer(e){return renderers[e]}function getRegisteredRenderer(){if(renderers.canvas)return"canvas";for(var e in renderers)if(renderers[e])return e;return""}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)}var AnimationItem=function(){this._cbs=[],this.name="",this.path="",this.isLoaded=!1,this.currentFrame=0,this.currentRawFrame=0,this.firstFrame=0,this.totalFrames=0,this.frameRate=0,this.frameMult=0,this.playSpeed=1,this.playDirection=1,this.playCount=0,this.animationData={},this.assets=[],this.isPaused=!0,this.autoplay=!1,this.loop=!0,this.renderer=null,this.animationID=createElementID(),this.assetsPath="",this.timeCompleted=0,this.segmentPos=0,this.isSubframeEnabled=getSubframeEnabled(),this.segments=[],this._idle=!0,this._completedLoop=!1,this.projectInterface=ProjectInterface(),this.imagePreloader=new ImagePreloader,this.audioController=audioControllerFactory(),this.markers=[],this.configAnimation=this.configAnimation.bind(this),this.onSetupError=this.onSetupError.bind(this),this.onSegmentComplete=this.onSegmentComplete.bind(this),this.drawnFrameEvent=new BMEnterFrameEvent("drawnFrame",0,0,0),this.expressionsPlugin=getExpressionsPlugin()};extendPrototype([BaseEvent],AnimationItem),AnimationItem.prototype.setParams=function(e){(e.wrapper||e.container)&&(this.wrapper=e.wrapper||e.container);var t="svg";e.animType?t=e.animType:e.renderer&&(t=e.renderer);var n=getRenderer(t);this.renderer=new n(this,e.rendererSettings),this.imagePreloader.setCacheType(t,this.renderer.globalData.defs),this.renderer.setProjectInterface(this.projectInterface),this.animType=t,e.loop===""||e.loop===null||e.loop===void 0||e.loop===!0?this.loop=!0:e.loop===!1?this.loop=!1:this.loop=parseInt(e.loop,10),this.autoplay="autoplay"in e?e.autoplay:!0,this.name=e.name?e.name:"",this.autoloadSegments=Object.prototype.hasOwnProperty.call(e,"autoloadSegments")?e.autoloadSegments:!0,this.assetsPath=e.assetsPath,this.initialSegment=e.initialSegment,e.audioFactory&&this.audioController.setAudioFactory(e.audioFactory),e.animationData?this.setupAnimation(e.animationData):e.path&&(e.path.lastIndexOf("\\")!==-1?this.path=e.path.substr(0,e.path.lastIndexOf("\\")+1):this.path=e.path.substr(0,e.path.lastIndexOf("/")+1),this.fileName=e.path.substr(e.path.lastIndexOf("/")+1),this.fileName=this.fileName.substr(0,this.fileName.lastIndexOf(".json")),dataManager.loadAnimation(e.path,this.configAnimation,this.onSetupError))},AnimationItem.prototype.onSetupError=function(){this.trigger("data_failed")},AnimationItem.prototype.setupAnimation=function(e){dataManager.completeAnimation(e,this.configAnimation)},AnimationItem.prototype.setData=function(e,t){t&&_typeof$4(t)!=="object"&&(t=JSON.parse(t));var n={wrapper:e,animationData:t},i=e.attributes;n.path=i.getNamedItem("data-animation-path")?i.getNamedItem("data-animation-path").value:i.getNamedItem("data-bm-path")?i.getNamedItem("data-bm-path").value:i.getNamedItem("bm-path")?i.getNamedItem("bm-path").value:"",n.animType=i.getNamedItem("data-anim-type")?i.getNamedItem("data-anim-type").value:i.getNamedItem("data-bm-type")?i.getNamedItem("data-bm-type").value:i.getNamedItem("bm-type")?i.getNamedItem("bm-type").value:i.getNamedItem("data-bm-renderer")?i.getNamedItem("data-bm-renderer").value:i.getNamedItem("bm-renderer")?i.getNamedItem("bm-renderer").value:getRegisteredRenderer()||"canvas";var s=i.getNamedItem("data-anim-loop")?i.getNamedItem("data-anim-loop").value:i.getNamedItem("data-bm-loop")?i.getNamedItem("data-bm-loop").value:i.getNamedItem("bm-loop")?i.getNamedItem("bm-loop").value:"";s==="false"?n.loop=!1:s==="true"?n.loop=!0:s!==""&&(n.loop=parseInt(s,10));var a=i.getNamedItem("data-anim-autoplay")?i.getNamedItem("data-anim-autoplay").value:i.getNamedItem("data-bm-autoplay")?i.getNamedItem("data-bm-autoplay").value:i.getNamedItem("bm-autoplay")?i.getNamedItem("bm-autoplay").value:!0;n.autoplay=a!=="false",n.name=i.getNamedItem("data-name")?i.getNamedItem("data-name").value:i.getNamedItem("data-bm-name")?i.getNamedItem("data-bm-name").value:i.getNamedItem("bm-name")?i.getNamedItem("bm-name").value:"";var o=i.getNamedItem("data-anim-prerender")?i.getNamedItem("data-anim-prerender").value:i.getNamedItem("data-bm-prerender")?i.getNamedItem("data-bm-prerender").value:i.getNamedItem("bm-prerender")?i.getNamedItem("bm-prerender").value:"";o==="false"&&(n.prerender=!1),n.path?this.setParams(n):this.trigger("destroy")},AnimationItem.prototype.includeLayers=function(e){e.op>this.animationData.op&&(this.animationData.op=e.op,this.totalFrames=Math.floor(e.op-this.animationData.ip));var t=this.animationData.layers,n,i=t.length,s=e.layers,a,o=s.length;for(a=0;a<o;a+=1)for(n=0;n<i;){if(t[n].id===s[a].id){t[n]=s[a];break}n+=1}if((e.chars||e.fonts)&&(this.renderer.globalData.fontManager.addChars(e.chars),this.renderer.globalData.fontManager.addFonts(e.fonts,this.renderer.globalData.defs)),e.assets)for(i=e.assets.length,n=0;n<i;n+=1)this.animationData.assets.push(e.assets[n]);this.animationData.__complete=!1,dataManager.completeAnimation(this.animationData,this.onSegmentComplete)},AnimationItem.prototype.onSegmentComplete=function(e){this.animationData=e;var t=getExpressionsPlugin();t&&t.initExpressions(this),this.loadNextSegment()},AnimationItem.prototype.loadNextSegment=function(){var e=this.animationData.segments;if(!e||e.length===0||!this.autoloadSegments){this.trigger("data_ready"),this.timeCompleted=this.totalFrames;return}var t=e.shift();this.timeCompleted=t.time*this.frameRate;var n=this.path+this.fileName+"_"+this.segmentPos+".json";this.segmentPos+=1,dataManager.loadData(n,this.includeLayers.bind(this),(function(){this.trigger("data_failed")}).bind(this))},AnimationItem.prototype.loadSegments=function(){var e=this.animationData.segments;e||(this.timeCompleted=this.totalFrames),this.loadNextSegment()},AnimationItem.prototype.imagesLoaded=function(){this.trigger("loaded_images"),this.checkLoaded()},AnimationItem.prototype.preloadImages=function(){this.imagePreloader.setAssetsPath(this.assetsPath),this.imagePreloader.setPath(this.path),this.imagePreloader.loadAssets(this.animationData.assets,this.imagesLoaded.bind(this))},AnimationItem.prototype.configAnimation=function(e){if(this.renderer)try{this.animationData=e,this.initialSegment?(this.totalFrames=Math.floor(this.initialSegment[1]-this.initialSegment[0]),this.firstFrame=Math.round(this.initialSegment[0])):(this.totalFrames=Math.floor(this.animationData.op-this.animationData.ip),this.firstFrame=Math.round(this.animationData.ip)),this.renderer.configAnimation(e),e.assets||(e.assets=[]),this.assets=this.animationData.assets,this.frameRate=this.animationData.fr,this.frameMult=this.animationData.fr/1e3,this.renderer.searchExtraCompositions(e.assets),this.markers=markerParser(e.markers||[]),this.trigger("config_ready"),this.preloadImages(),this.loadSegments(),this.updaFrameModifier(),this.waitForFontsLoaded(),this.isPaused&&this.audioController.pause()}catch(t){this.triggerConfigError(t)}},AnimationItem.prototype.waitForFontsLoaded=function(){this.renderer&&(this.renderer.globalData.fontManager.isLoaded?this.checkLoaded():setTimeout(this.waitForFontsLoaded.bind(this),20))},AnimationItem.prototype.checkLoaded=function(){if(!this.isLoaded&&this.renderer.globalData.fontManager.isLoaded&&(this.imagePreloader.loadedImages()||this.renderer.rendererType!=="canvas")&&this.imagePreloader.loadedFootages()){this.isLoaded=!0;var e=getExpressionsPlugin();e&&e.initExpressions(this),this.renderer.initItems(),setTimeout((function(){this.trigger("DOMLoaded")}).bind(this),0),this.gotoFrame(),this.autoplay&&this.play()}},AnimationItem.prototype.resize=function(e,t){var n=typeof e=="number"?e:void 0,i=typeof t=="number"?t:void 0;this.renderer.updateContainerSize(n,i)},AnimationItem.prototype.setSubframe=function(e){this.isSubframeEnabled=!!e},AnimationItem.prototype.gotoFrame=function(){this.currentFrame=this.isSubframeEnabled?this.currentRawFrame:~~this.currentRawFrame,this.timeCompleted!==this.totalFrames&&this.currentFrame>this.timeCompleted&&(this.currentFrame=this.timeCompleted),this.trigger("enterFrame"),this.renderFrame(),this.trigger("drawnFrame")},AnimationItem.prototype.renderFrame=function(){if(!(this.isLoaded===!1||!this.renderer))try{this.expressionsPlugin&&this.expressionsPlugin.resetFrame(),this.renderer.renderFrame(this.currentFrame+this.firstFrame)}catch(e){this.triggerRenderFrameError(e)}},AnimationItem.prototype.play=function(e){e&&this.name!==e||this.isPaused===!0&&(this.isPaused=!1,this.trigger("_play"),this.audioController.resume(),this._idle&&(this._idle=!1,this.trigger("_active")))},AnimationItem.prototype.pause=function(e){e&&this.name!==e||this.isPaused===!1&&(this.isPaused=!0,this.trigger("_pause"),this._idle=!0,this.trigger("_idle"),this.audioController.pause())},AnimationItem.prototype.togglePause=function(e){e&&this.name!==e||(this.isPaused===!0?this.play():this.pause())},AnimationItem.prototype.stop=function(e){e&&this.name!==e||(this.pause(),this.playCount=0,this._completedLoop=!1,this.setCurrentRawFrameValue(0))},AnimationItem.prototype.getMarkerData=function(e){for(var t,n=0;n<this.markers.length;n+=1)if(t=this.markers[n],t.payload&&t.payload.name===e)return t;return null},AnimationItem.prototype.goToAndStop=function(e,t,n){if(!(n&&this.name!==n)){var i=Number(e);if(isNaN(i)){var s=this.getMarkerData(e);s&&this.goToAndStop(s.time,!0)}else t?this.setCurrentRawFrameValue(e):this.setCurrentRawFrameValue(e*this.frameModifier);this.pause()}},AnimationItem.prototype.goToAndPlay=function(e,t,n){if(!(n&&this.name!==n)){var i=Number(e);if(isNaN(i)){var s=this.getMarkerData(e);s&&(s.duration?this.playSegments([s.time,s.time+s.duration],!0):this.goToAndStop(s.time,!0))}else this.goToAndStop(i,t,n);this.play()}},AnimationItem.prototype.advanceTime=function(e){if(!(this.isPaused===!0||this.isLoaded===!1)){var t=this.currentRawFrame+e*this.frameModifier,n=!1;t>=this.totalFrames-1&&this.frameModifier>0?!this.loop||this.playCount===this.loop?this.checkSegments(t>this.totalFrames?t%this.totalFrames:0)||(n=!0,t=this.totalFrames-1):t>=this.totalFrames?(this.playCount+=1,this.checkSegments(t%this.totalFrames)||(this.setCurrentRawFrameValue(t%this.totalFrames),this._completedLoop=!0,this.trigger("loopComplete"))):this.setCurrentRawFrameValue(t):t<0?this.checkSegments(t%this.totalFrames)||(this.loop&&!(this.playCount--<=0&&this.loop!==!0)?(this.setCurrentRawFrameValue(this.totalFrames+t%this.totalFrames),this._completedLoop?this.trigger("loopComplete"):this._completedLoop=!0):(n=!0,t=0)):this.setCurrentRawFrameValue(t),n&&(this.setCurrentRawFrameValue(t),this.pause(),this.trigger("complete"))}},AnimationItem.prototype.adjustSegment=function(e,t){this.playCount=0,e[1]<e[0]?(this.frameModifier>0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(-1)),this.totalFrames=e[0]-e[1],this.timeCompleted=this.totalFrames,this.firstFrame=e[1],this.setCurrentRawFrameValue(this.totalFrames-.001-t)):e[1]>e[0]&&(this.frameModifier<0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(1)),this.totalFrames=e[1]-e[0],this.timeCompleted=this.totalFrames,this.firstFrame=e[0],this.setCurrentRawFrameValue(.001+t)),this.trigger("segmentStart")},AnimationItem.prototype.setSegment=function(e,t){var n=-1;this.isPaused&&(this.currentRawFrame+this.firstFrame<e?n=e:this.currentRawFrame+this.firstFrame>t&&(n=t-e)),this.firstFrame=e,this.totalFrames=t-e,this.timeCompleted=this.totalFrames,n!==-1&&this.goToAndStop(n,!0)},AnimationItem.prototype.playSegments=function(e,t){if(t&&(this.segments.length=0),_typeof$4(e[0])==="object"){var n,i=e.length;for(n=0;n<i;n+=1)this.segments.push(e[n])}else this.segments.push(e);this.segments.length&&t&&this.adjustSegment(this.segments.shift(),0),this.isPaused&&this.play()},AnimationItem.prototype.resetSegments=function(e){this.segments.length=0,this.segments.push([this.animationData.ip,this.animationData.op]),e&&this.checkSegments(0)},AnimationItem.prototype.checkSegments=function(e){return this.segments.length?(this.adjustSegment(this.segments.shift(),e),!0):!1},AnimationItem.prototype.destroy=function(e){e&&this.name!==e||!this.renderer||(this.renderer.destroy(),this.imagePreloader.destroy(),this.trigger("destroy"),this._cbs=null,this.onEnterFrame=null,this.onLoopComplete=null,this.onComplete=null,this.onSegmentStart=null,this.onDestroy=null,this.renderer=null,this.expressionsPlugin=null,this.imagePreloader=null,this.projectInterface=null)},AnimationItem.prototype.setCurrentRawFrameValue=function(e){this.currentRawFrame=e,this.gotoFrame()},AnimationItem.prototype.setSpeed=function(e){this.playSpeed=e,this.updaFrameModifier()},AnimationItem.prototype.setDirection=function(e){this.playDirection=e<0?-1:1,this.updaFrameModifier()},AnimationItem.prototype.setLoop=function(e){this.loop=e},AnimationItem.prototype.setVolume=function(e,t){t&&this.name!==t||this.audioController.setVolume(e)},AnimationItem.prototype.getVolume=function(){return this.audioController.getVolume()},AnimationItem.prototype.mute=function(e){e&&this.name!==e||this.audioController.mute()},AnimationItem.prototype.unmute=function(e){e&&this.name!==e||this.audioController.unmute()},AnimationItem.prototype.updaFrameModifier=function(){this.frameModifier=this.frameMult*this.playSpeed*this.playDirection,this.audioController.setRate(this.playSpeed*this.playDirection)},AnimationItem.prototype.getPath=function(){return this.path},AnimationItem.prototype.getAssetsPath=function(e){var t="";if(e.e)t=e.p;else if(this.assetsPath){var n=e.p;n.indexOf("images/")!==-1&&(n=n.split("/")[1]),t=this.assetsPath+n}else t=this.path,t+=e.u?e.u:"",t+=e.p;return t},AnimationItem.prototype.getAssetData=function(e){for(var t=0,n=this.assets.length;t<n;){if(e===this.assets[t].id)return this.assets[t];t+=1}return null},AnimationItem.prototype.hide=function(){this.renderer.hide()},AnimationItem.prototype.show=function(){this.renderer.show()},AnimationItem.prototype.getDuration=function(e){return e?this.totalFrames:this.totalFrames/this.frameRate},AnimationItem.prototype.updateDocumentData=function(e,t,n){try{var i=this.renderer.getElementByPath(e);i.updateDocumentData(t,n)}catch{}},AnimationItem.prototype.trigger=function(e){if(this._cbs&&this._cbs[e])switch(e){case"enterFrame":this.triggerEvent(e,new BMEnterFrameEvent(e,this.currentFrame,this.totalFrames,this.frameModifier));break;case"drawnFrame":this.drawnFrameEvent.currentTime=this.currentFrame,this.drawnFrameEvent.totalTime=this.totalFrames,this.drawnFrameEvent.direction=this.frameModifier,this.triggerEvent(e,this.drawnFrameEvent);break;case"loopComplete":this.triggerEvent(e,new BMCompleteLoopEvent(e,this.loop,this.playCount,this.frameMult));break;case"complete":this.triggerEvent(e,new BMCompleteEvent(e,this.frameMult));break;case"segmentStart":this.triggerEvent(e,new BMSegmentStartEvent(e,this.firstFrame,this.totalFrames));break;case"destroy":this.triggerEvent(e,new BMDestroyEvent(e,this));break;default:this.triggerEvent(e)}e==="enterFrame"&&this.onEnterFrame&&this.onEnterFrame.call(this,new BMEnterFrameEvent(e,this.currentFrame,this.totalFrames,this.frameMult)),e==="loopComplete"&&this.onLoopComplete&&this.onLoopComplete.call(this,new BMCompleteLoopEvent(e,this.loop,this.playCount,this.frameMult)),e==="complete"&&this.onComplete&&this.onComplete.call(this,new BMCompleteEvent(e,this.frameMult)),e==="segmentStart"&&this.onSegmentStart&&this.onSegmentStart.call(this,new BMSegmentStartEvent(e,this.firstFrame,this.totalFrames)),e==="destroy"&&this.onDestroy&&this.onDestroy.call(this,new BMDestroyEvent(e,this))},AnimationItem.prototype.triggerRenderFrameError=function(e){var t=new BMRenderFrameErrorEvent(e,this.currentFrame);this.triggerEvent("error",t),this.onError&&this.onError.call(this,t)},AnimationItem.prototype.triggerConfigError=function(e){var t=new BMConfigErrorEvent(e,this.currentFrame);this.triggerEvent("error",t),this.onError&&this.onError.call(this,t)};var animationManager=(function(){var e={},t=[],n=0,i=0,s=0,a=!0,o=!1;function l(P){for(var T=0,x=P.target;T<i;)t[T].animation===x&&(t.splice(T,1),T-=1,i-=1,x.isPaused||p()),T+=1}function c(P,T){if(!P)return null;for(var x=0;x<i;){if(t[x].elem===P&&t[x].elem!==null)return t[x].animation;x+=1}var S=new AnimationItem;return h(S,P),S.setData(P,T),S}function d(){var P,T=t.length,x=[];for(P=0;P<T;P+=1)x.push(t[P].animation);return x}function u(){s+=1,F()}function p(){s-=1}function h(P,T){P.addEventListener("destroy",l),P.addEventListener("_active",u),P.addEventListener("_idle",p),t.push({elem:T,animation:P}),i+=1}function y(P){var T=new AnimationItem;return h(T,null),T.setParams(P),T}function f(P,T){var x;for(x=0;x<i;x+=1)t[x].animation.setSpeed(P,T)}function m(P,T){var x;for(x=0;x<i;x+=1)t[x].animation.setDirection(P,T)}function C(P){var T;for(T=0;T<i;T+=1)t[T].animation.play(P)}function g(P){var T=P-n,x;for(x=0;x<i;x+=1)t[x].animation.advanceTime(T);n=P,s&&!o?window.requestAnimationFrame(g):a=!0}function b(P){n=P,window.requestAnimationFrame(g)}function v(P){var T;for(T=0;T<i;T+=1)t[T].animation.pause(P)}function N(P,T,x){var S;for(S=0;S<i;S+=1)t[S].animation.goToAndStop(P,T,x)}function w(P){var T;for(T=0;T<i;T+=1)t[T].animation.stop(P)}function E(P){var T;for(T=0;T<i;T+=1)t[T].animation.togglePause(P)}function _(P){var T;for(T=i-1;T>=0;T-=1)t[T].animation.destroy(P)}function k(P,T,x){var S=[].concat([].slice.call(document.getElementsByClassName("lottie")),[].slice.call(document.getElementsByClassName("bodymovin"))),M,V=S.length;for(M=0;M<V;M+=1)x&&S[M].setAttribute("data-bm-type",x),c(S[M],P);if(T&&V===0){x||(x="svg");var z=document.getElementsByTagName("body")[0];z.innerText="";var G=createTag("div");G.style.width="100%",G.style.height="100%",G.setAttribute("data-bm-type",x),z.appendChild(G),c(G,P)}}function A(){var P;for(P=0;P<i;P+=1)t[P].animation.resize()}function F(){!o&&s&&a&&(window.requestAnimationFrame(b),a=!1)}function B(){o=!0}function I(){o=!1,F()}function D(P,T){var x;for(x=0;x<i;x+=1)t[x].animation.setVolume(P,T)}function L(P){var T;for(T=0;T<i;T+=1)t[T].animation.mute(P)}function $(P){var T;for(T=0;T<i;T+=1)t[T].animation.unmute(P)}return e.registerAnimation=c,e.loadAnimation=y,e.setSpeed=f,e.setDirection=m,e.play=C,e.pause=v,e.stop=w,e.togglePause=E,e.searchAnimations=k,e.resize=A,e.goToAndStop=N,e.destroy=_,e.freeze=B,e.unfreeze=I,e.setVolume=D,e.mute=L,e.unmute=$,e.getRegisteredAnimations=d,e})(),BezierFactory=(function(){var e={};e.getBezierEasing=n;var t={};function n(b,v,N,w,E){var _=E||("bez_"+b+"_"+v+"_"+N+"_"+w).replace(/\./g,"p");if(t[_])return t[_];var k=new g([b,v,N,w]);return t[_]=k,k}var i=4,s=.001,a=1e-7,o=10,l=11,c=1/(l-1),d=typeof Float32Array=="function";function u(b,v){return 1-3*v+3*b}function p(b,v){return 3*v-6*b}function h(b){return 3*b}function y(b,v,N){return((u(v,N)*b+p(v,N))*b+h(v))*b}function f(b,v,N){return 3*u(v,N)*b*b+2*p(v,N)*b+h(v)}function m(b,v,N,w,E){var _,k,A=0;do k=v+(N-v)/2,_=y(k,w,E)-b,_>0?N=k:v=k;while(Math.abs(_)>a&&++A<o);return k}function C(b,v,N,w){for(var E=0;E<i;++E){var _=f(v,N,w);if(_===0)return v;var k=y(v,N,w)-b;v-=k/_}return v}function g(b){this._p=b,this._mSampleValues=d?new Float32Array(l):new Array(l),this._precomputed=!1,this.get=this.get.bind(this)}return g.prototype={get:function(v){var N=this._p[0],w=this._p[1],E=this._p[2],_=this._p[3];return this._precomputed||this._precompute(),N===w&&E===_?v:v===0?0:v===1?1:y(this._getTForX(v),w,_)},_precompute:function(){var v=this._p[0],N=this._p[1],w=this._p[2],E=this._p[3];this._precomputed=!0,(v!==N||w!==E)&&this._calcSampleValues()},_calcSampleValues:function(){for(var v=this._p[0],N=this._p[2],w=0;w<l;++w)this._mSampleValues[w]=y(w*c,v,N)},_getTForX:function(v){for(var N=this._p[0],w=this._p[2],E=this._mSampleValues,_=0,k=1,A=l-1;k!==A&&E[k]<=v;++k)_+=c;--k;var F=(v-E[k])/(E[k+1]-E[k]),B=_+F*c,I=f(B,N,w);return I>=s?C(v,B,N,w):I===0?B:m(v,_,_+c,N,w)}},e})(),pooling=(function(){function e(t){return t.concat(createSizedArray(t.length))}return{double:e}})(),poolFactory=(function(){return function(e,t,n){var i=0,s=e,a=createSizedArray(s),o={newElement:l,release:c};function l(){var d;return i?(i-=1,d=a[i]):d=t(),d}function c(d){i===s&&(a=pooling.double(a),s*=2),n&&n(d),a[i]=d,i+=1}return o}})(),bezierLengthPool=(function(){function e(){return{addedLength:0,percents:createTypedArray("float32",getDefaultCurveSegments()),lengths:createTypedArray("float32",getDefaultCurveSegments())}}return poolFactory(8,e)})(),segmentsLengthPool=(function(){function e(){return{lengths:[],totalLength:0}}function t(n){var i,s=n.lengths.length;for(i=0;i<s;i+=1)bezierLengthPool.release(n.lengths[i]);n.lengths.length=0}return poolFactory(8,e,t)})();function bezFunction(){var e=Math;function t(h,y,f,m,C,g){var b=h*m+y*C+f*g-C*m-g*h-f*y;return b>-.001&&b<.001}function n(h,y,f,m,C,g,b,v,N){if(f===0&&g===0&&N===0)return t(h,y,m,C,b,v);var w=e.sqrt(e.pow(m-h,2)+e.pow(C-y,2)+e.pow(g-f,2)),E=e.sqrt(e.pow(b-h,2)+e.pow(v-y,2)+e.pow(N-f,2)),_=e.sqrt(e.pow(b-m,2)+e.pow(v-C,2)+e.pow(N-g,2)),k;return w>E?w>_?k=w-E-_:k=_-E-w:_>E?k=_-E-w:k=E-w-_,k>-1e-4&&k<1e-4}var i=(function(){return function(h,y,f,m){var C=getDefaultCurveSegments(),g,b,v,N,w,E=0,_,k=[],A=[],F=bezierLengthPool.newElement();for(v=f.length,g=0;g<C;g+=1){for(w=g/(C-1),_=0,b=0;b<v;b+=1)N=bmPow(1-w,3)*h[b]+3*bmPow(1-w,2)*w*f[b]+3*(1-w)*bmPow(w,2)*m[b]+bmPow(w,3)*y[b],k[b]=N,A[b]!==null&&(_+=bmPow(k[b]-A[b],2)),A[b]=k[b];_&&(_=bmSqrt(_),E+=_),F.percents[g]=w,F.lengths[g]=E}return F.addedLength=E,F}})();function s(h){var y=segmentsLengthPool.newElement(),f=h.c,m=h.v,C=h.o,g=h.i,b,v=h._length,N=y.lengths,w=0;for(b=0;b<v-1;b+=1)N[b]=i(m[b],m[b+1],C[b],g[b+1]),w+=N[b].addedLength;return f&&v&&(N[b]=i(m[b],m[0],C[b],g[0]),w+=N[b].addedLength),y.totalLength=w,y}function a(h){this.segmentLength=0,this.points=new Array(h)}function o(h,y){this.partialLength=h,this.point=y}var l=(function(){var h={};return function(y,f,m,C){var g=(y[0]+"_"+y[1]+"_"+f[0]+"_"+f[1]+"_"+m[0]+"_"+m[1]+"_"+C[0]+"_"+C[1]).replace(/\./g,"p");if(!h[g]){var b=getDefaultCurveSegments(),v,N,w,E,_,k=0,A,F,B=null;y.length===2&&(y[0]!==f[0]||y[1]!==f[1])&&t(y[0],y[1],f[0],f[1],y[0]+m[0],y[1]+m[1])&&t(y[0],y[1],f[0],f[1],f[0]+C[0],f[1]+C[1])&&(b=2);var I=new a(b);for(w=m.length,v=0;v<b;v+=1){for(F=createSizedArray(w),_=v/(b-1),A=0,N=0;N<w;N+=1)E=bmPow(1-_,3)*y[N]+3*bmPow(1-_,2)*_*(y[N]+m[N])+3*(1-_)*bmPow(_,2)*(f[N]+C[N])+bmPow(_,3)*f[N],F[N]=E,B!==null&&(A+=bmPow(F[N]-B[N],2));A=bmSqrt(A),k+=A,I.points[v]=new o(A,F),B=F}I.segmentLength=k,h[g]=I}return h[g]}})();function c(h,y){var f=y.percents,m=y.lengths,C=f.length,g=bmFloor((C-1)*h),b=h*y.addedLength,v=0;if(g===C-1||g===0||b===m[g])return f[g];for(var N=m[g]>b?-1:1,w=!0;w;)if(m[g]<=b&&m[g+1]>b?(v=(b-m[g])/(m[g+1]-m[g]),w=!1):g+=N,g<0||g>=C-1){if(g===C-1)return f[g];w=!1}return f[g]+(f[g+1]-f[g])*v}function d(h,y,f,m,C,g){var b=c(C,g),v=1-b,N=e.round((v*v*v*h[0]+(b*v*v+v*b*v+v*v*b)*f[0]+(b*b*v+v*b*b+b*v*b)*m[0]+b*b*b*y[0])*1e3)/1e3,w=e.round((v*v*v*h[1]+(b*v*v+v*b*v+v*v*b)*f[1]+(b*b*v+v*b*b+b*v*b)*m[1]+b*b*b*y[1])*1e3)/1e3;return[N,w]}var u=createTypedArray("float32",8);function p(h,y,f,m,C,g,b){C<0?C=0:C>1&&(C=1);var v=c(C,b);g=g>1?1:g;var N=c(g,b),w,E=h.length,_=1-v,k=1-N,A=_*_*_,F=v*_*_*3,B=v*v*_*3,I=v*v*v,D=_*_*k,L=v*_*k+_*v*k+_*_*N,$=v*v*k+_*v*N+v*_*N,P=v*v*N,T=_*k*k,x=v*k*k+_*N*k+_*k*N,S=v*N*k+_*N*N+v*k*N,M=v*N*N,V=k*k*k,z=N*k*k+k*N*k+k*k*N,G=N*N*k+k*N*N+N*k*N,H=N*N*N;for(w=0;w<E;w+=1)u[w*4]=e.round((A*h[w]+F*f[w]+B*m[w]+I*y[w])*1e3)/1e3,u[w*4+1]=e.round((D*h[w]+L*f[w]+$*m[w]+P*y[w])*1e3)/1e3,u[w*4+2]=e.round((T*h[w]+x*f[w]+S*m[w]+M*y[w])*1e3)/1e3,u[w*4+3]=e.round((V*h[w]+z*f[w]+G*m[w]+H*y[w])*1e3)/1e3;return u}return{getSegmentsLength:s,getNewSegment:p,getPointInSegment:d,buildBezierData:l,pointOnLine2D:t,pointOnLine3D:n}}var bez=bezFunction(),initFrame=initialDefaultFrame,mathAbs=Math.abs;function interpolateValue(e,t){var n=this.offsetTime,i;this.propType==="multidimensional"&&(i=createTypedArray("float32",this.pv.length));for(var s=t.lastIndex,a=s,o=this.keyframes.length-1,l=!0,c,d,u;l;){if(c=this.keyframes[a],d=this.keyframes[a+1],a===o-1&&e>=d.t-n){c.h&&(c=d),s=0;break}if(d.t-n>e){s=a;break}a<o-1?a+=1:(s=0,l=!1)}u=this.keyframesMetadata[a]||{};var p,h,y,f,m,C,g=d.t-n,b=c.t-n,v;if(c.to){u.bezierData||(u.bezierData=bez.buildBezierData(c.s,d.s||c.e,c.to,c.ti));var N=u.bezierData;if(e>=g||e<b){var w=e>=g?N.points.length-1:0;for(h=N.points[w].point.length,p=0;p<h;p+=1)i[p]=N.points[w].point[p]}else{u.__fnct?C=u.__fnct:(C=BezierFactory.getBezierEasing(c.o.x,c.o.y,c.i.x,c.i.y,c.n).get,u.__fnct=C),y=C((e-b)/(g-b));var E=N.segmentLength*y,_,k=t.lastFrame<e&&t._lastKeyframeIndex===a?t._lastAddedLength:0;for(m=t.lastFrame<e&&t._lastKeyframeIndex===a?t._lastPoint:0,l=!0,f=N.points.length;l;){if(k+=N.points[m].partialLength,E===0||y===0||m===N.points.length-1){for(h=N.points[m].point.length,p=0;p<h;p+=1)i[p]=N.points[m].point[p];break}else if(E>=k&&E<k+N.points[m+1].partialLength){for(_=(E-k)/N.points[m+1].partialLength,h=N.points[m].point.length,p=0;p<h;p+=1)i[p]=N.points[m].point[p]+(N.points[m+1].point[p]-N.points[m].point[p])*_;break}m<f-1?m+=1:l=!1}t._lastPoint=m,t._lastAddedLength=k-N.points[m].partialLength,t._lastKeyframeIndex=a}}else{var A,F,B,I,D;if(o=c.s.length,v=d.s||c.e,this.sh&&c.h!==1)if(e>=g)i[0]=v[0],i[1]=v[1],i[2]=v[2];else if(e<=b)i[0]=c.s[0],i[1]=c.s[1],i[2]=c.s[2];else{var L=createQuaternion(c.s),$=createQuaternion(v),P=(e-b)/(g-b);quaternionToEuler(i,slerp(L,$,P))}else for(a=0;a<o;a+=1)c.h!==1&&(e>=g?y=1:e<b?y=0:(c.o.x.constructor===Array?(u.__fnct||(u.__fnct=[]),u.__fnct[a]?C=u.__fnct[a]:(A=c.o.x[a]===void 0?c.o.x[0]:c.o.x[a],F=c.o.y[a]===void 0?c.o.y[0]:c.o.y[a],B=c.i.x[a]===void 0?c.i.x[0]:c.i.x[a],I=c.i.y[a]===void 0?c.i.y[0]:c.i.y[a],C=BezierFactory.getBezierEasing(A,F,B,I).get,u.__fnct[a]=C)):u.__fnct?C=u.__fnct:(A=c.o.x,F=c.o.y,B=c.i.x,I=c.i.y,C=BezierFactory.getBezierEasing(A,F,B,I).get,c.keyframeMetadata=C),y=C((e-b)/(g-b)))),v=d.s||c.e,D=c.h===1?c.s[a]:c.s[a]+(v[a]-c.s[a])*y,this.propType==="multidimensional"?i[a]=D:i=D}return t.lastIndex=s,i}function slerp(e,t,n){var i=[],s=e[0],a=e[1],o=e[2],l=e[3],c=t[0],d=t[1],u=t[2],p=t[3],h,y,f,m,C;return y=s*c+a*d+o*u+l*p,y<0&&(y=-y,c=-c,d=-d,u=-u,p=-p),1-y>1e-6?(h=Math.acos(y),f=Math.sin(h),m=Math.sin((1-n)*h)/f,C=Math.sin(n*h)/f):(m=1-n,C=n),i[0]=m*s+C*c,i[1]=m*a+C*d,i[2]=m*o+C*u,i[3]=m*l+C*p,i}function quaternionToEuler(e,t){var n=t[0],i=t[1],s=t[2],a=t[3],o=Math.atan2(2*i*a-2*n*s,1-2*i*i-2*s*s),l=Math.asin(2*n*i+2*s*a),c=Math.atan2(2*n*a-2*i*s,1-2*n*n-2*s*s);e[0]=o/degToRads,e[1]=l/degToRads,e[2]=c/degToRads}function createQuaternion(e){var t=e[0]*degToRads,n=e[1]*degToRads,i=e[2]*degToRads,s=Math.cos(t/2),a=Math.cos(n/2),o=Math.cos(i/2),l=Math.sin(t/2),c=Math.sin(n/2),d=Math.sin(i/2),u=s*a*o-l*c*d,p=l*c*o+s*a*d,h=l*a*o+s*c*d,y=s*c*o-l*a*d;return[p,h,y,u]}function getValueAtCurrentTime(){var e=this.comp.renderedFrame-this.offsetTime,t=this.keyframes[0].t-this.offsetTime,n=this.keyframes[this.keyframes.length-1].t-this.offsetTime;if(!(e===this._caching.lastFrame||this._caching.lastFrame!==initFrame&&(this._caching.lastFrame>=n&&e>=n||this._caching.lastFrame<t&&e<t))){this._caching.lastFrame>=e&&(this._caching._lastKeyframeIndex=-1,this._caching.lastIndex=0);var i=this.interpolateValue(e,this._caching);this.pv=i}return this._caching.lastFrame=e,this.pv}function setVValue(e){var t;if(this.propType==="unidimensional")t=e*this.mult,mathAbs(this.v-t)>1e-5&&(this.v=t,this._mdf=!0);else for(var n=0,i=this.v.length;n<i;)t=e[n]*this.mult,mathAbs(this.v[n]-t)>1e-5&&(this.v[n]=t,this._mdf=!0),n+=1}function processEffectsSequence(){if(!(this.elem.globalData.frameId===this.frameId||!this.effectsSequence.length)){if(this.lock){this.setVValue(this.pv);return}this.lock=!0,this._mdf=this._isFirstFrame;var e,t=this.effectsSequence.length,n=this.kf?this.pv:this.data.k;for(e=0;e<t;e+=1)n=this.effectsSequence[e](n);this.setVValue(n),this._isFirstFrame=!1,this.lock=!1,this.frameId=this.elem.globalData.frameId}}function addEffect(e){this.effectsSequence.push(e),this.container.addDynamicProperty(this)}function ValueProperty(e,t,n,i){this.propType="unidimensional",this.mult=n||1,this.data=t,this.v=n?t.k*n:t.k,this.pv=t.k,this._mdf=!1,this.elem=e,this.container=i,this.comp=e.comp,this.k=!1,this.kf=!1,this.vel=0,this.effectsSequence=[],this._isFirstFrame=!0,this.getValue=processEffectsSequence,this.setVValue=setVValue,this.addEffect=addEffect}function MultiDimensionalProperty(e,t,n,i){this.propType="multidimensional",this.mult=n||1,this.data=t,this._mdf=!1,this.elem=e,this.container=i,this.comp=e.comp,this.k=!1,this.kf=!1,this.frameId=-1;var s,a=t.k.length;for(this.v=createTypedArray("float32",a),this.pv=createTypedArray("float32",a),this.vel=createTypedArray("float32",a),s=0;s<a;s+=1)this.v[s]=t.k[s]*this.mult,this.pv[s]=t.k[s];this._isFirstFrame=!0,this.effectsSequence=[],this.getValue=processEffectsSequence,this.setVValue=setVValue,this.addEffect=addEffect}function KeyframedValueProperty(e,t,n,i){this.propType="unidimensional",this.keyframes=t.k,this.keyframesMetadata=[],this.offsetTime=e.data.st,this.frameId=-1,this._caching={lastFrame:initFrame,lastIndex:0,value:0,_lastKeyframeIndex:-1},this.k=!0,this.kf=!0,this.data=t,this.mult=n||1,this.elem=e,this.container=i,this.comp=e.comp,this.v=initFrame,this.pv=initFrame,this._isFirstFrame=!0,this.getValue=processEffectsSequence,this.setVValue=setVValue,this.interpolateValue=interpolateValue,this.effectsSequence=[getValueAtCurrentTime.bind(this)],this.addEffect=addEffect}function KeyframedMultidimensionalProperty(e,t,n,i){this.propType="multidimensional";var s,a=t.k.length,o,l,c,d;for(s=0;s<a-1;s+=1)t.k[s].to&&t.k[s].s&&t.k[s+1]&&t.k[s+1].s&&(o=t.k[s].s,l=t.k[s+1].s,c=t.k[s].to,d=t.k[s].ti,(o.length===2&&!(o[0]===l[0]&&o[1]===l[1])&&bez.pointOnLine2D(o[0],o[1],l[0],l[1],o[0]+c[0],o[1]+c[1])&&bez.pointOnLine2D(o[0],o[1],l[0],l[1],l[0]+d[0],l[1]+d[1])||o.length===3&&!(o[0]===l[0]&&o[1]===l[1]&&o[2]===l[2])&&bez.pointOnLine3D(o[0],o[1],o[2],l[0],l[1],l[2],o[0]+c[0],o[1]+c[1],o[2]+c[2])&&bez.pointOnLine3D(o[0],o[1],o[2],l[0],l[1],l[2],l[0]+d[0],l[1]+d[1],l[2]+d[2]))&&(t.k[s].to=null,t.k[s].ti=null),o[0]===l[0]&&o[1]===l[1]&&c[0]===0&&c[1]===0&&d[0]===0&&d[1]===0&&(o.length===2||o[2]===l[2]&&c[2]===0&&d[2]===0)&&(t.k[s].to=null,t.k[s].ti=null));this.effectsSequence=[getValueAtCurrentTime.bind(this)],this.data=t,this.keyframes=t.k,this.keyframesMetadata=[],this.offsetTime=e.data.st,this.k=!0,this.kf=!0,this._isFirstFrame=!0,this.mult=n||1,this.elem=e,this.container=i,this.comp=e.comp,this.getValue=processEffectsSequence,this.setVValue=setVValue,this.interpolateValue=interpolateValue,this.frameId=-1;var u=t.k[0].s.length;for(this.v=createTypedArray("float32",u),this.pv=createTypedArray("float32",u),s=0;s<u;s+=1)this.v[s]=initFrame,this.pv[s]=initFrame;this._caching={lastFrame:initFrame,lastIndex:0,value:createTypedArray("float32",u)},this.addEffect=addEffect}var PropertyFactory=(function(){function e(n,i,s,a,o){i.sid&&(i=n.globalData.slotManager.getProp(i));var l;if(!i.k.length)l=new ValueProperty(n,i,a,o);else if(typeof i.k[0]=="number")l=new MultiDimensionalProperty(n,i,a,o);else switch(s){case 0:l=new KeyframedValueProperty(n,i,a,o);break;case 1:l=new KeyframedMultidimensionalProperty(n,i,a,o);break}return l.effectsSequence.length&&o.addDynamicProperty(l),l}var t={getProp:e};return t})();function DynamicPropertyContainer(){}DynamicPropertyContainer.prototype={addDynamicProperty:function(t){this.dynamicProperties.indexOf(t)===-1&&(this.dynamicProperties.push(t),this.container.addDynamicProperty(this),this._isAnimated=!0)},iterateDynamicProperties:function(){this._mdf=!1;var t,n=this.dynamicProperties.length;for(t=0;t<n;t+=1)this.dynamicProperties[t].getValue(),this.dynamicProperties[t]._mdf&&(this._mdf=!0)},initDynamicPropertyContainer:function(t){this.container=t,this.dynamicProperties=[],this._mdf=!1,this._isAnimated=!1}};var pointPool=(function(){function e(){return createTypedArray("float32",2)}return poolFactory(8,e)})();function ShapePath(){this.c=!1,this._length=0,this._maxLength=8,this.v=createSizedArray(this._maxLength),this.o=createSizedArray(this._maxLength),this.i=createSizedArray(this._maxLength)}ShapePath.prototype.setPathData=function(e,t){this.c=e,this.setLength(t);for(var n=0;n<t;)this.v[n]=pointPool.newElement(),this.o[n]=pointPool.newElement(),this.i[n]=pointPool.newElement(),n+=1},ShapePath.prototype.setLength=function(e){for(;this._maxLength<e;)this.doubleArrayLength();this._length=e},ShapePath.prototype.doubleArrayLength=function(){this.v=this.v.concat(createSizedArray(this._maxLength)),this.i=this.i.concat(createSizedArray(this._maxLength)),this.o=this.o.concat(createSizedArray(this._maxLength)),this._maxLength*=2},ShapePath.prototype.setXYAt=function(e,t,n,i,s){var a;switch(this._length=Math.max(this._length,i+1),this._length>=this._maxLength&&this.doubleArrayLength(),n){case"v":a=this.v;break;case"i":a=this.i;break;case"o":a=this.o;break;default:a=[];break}(!a[i]||a[i]&&!s)&&(a[i]=pointPool.newElement()),a[i][0]=e,a[i][1]=t},ShapePath.prototype.setTripleAt=function(e,t,n,i,s,a,o,l){this.setXYAt(e,t,"v",o,l),this.setXYAt(n,i,"o",o,l),this.setXYAt(s,a,"i",o,l)},ShapePath.prototype.reverse=function(){var e=new ShapePath;e.setPathData(this.c,this._length);var t=this.v,n=this.o,i=this.i,s=0;this.c&&(e.setTripleAt(t[0][0],t[0][1],i[0][0],i[0][1],n[0][0],n[0][1],0,!1),s=1);var a=this._length-1,o=this._length,l;for(l=s;l<o;l+=1)e.setTripleAt(t[a][0],t[a][1],i[a][0],i[a][1],n[a][0],n[a][1],l,!1),a-=1;return e},ShapePath.prototype.length=function(){return this._length};var shapePool=(function(){function e(){return new ShapePath}function t(s){var a=s._length,o;for(o=0;o<a;o+=1)pointPool.release(s.v[o]),pointPool.release(s.i[o]),pointPool.release(s.o[o]),s.v[o]=null,s.i[o]=null,s.o[o]=null;s._length=0,s.c=!1}function n(s){var a=i.newElement(),o,l=s._length===void 0?s.v.length:s._length;for(a.setLength(l),a.c=s.c,o=0;o<l;o+=1)a.setTripleAt(s.v[o][0],s.v[o][1],s.o[o][0],s.o[o][1],s.i[o][0],s.i[o][1],o);return a}var i=poolFactory(4,e,t);return i.clone=n,i})();function ShapeCollection(){this._length=0,this._maxLength=4,this.shapes=createSizedArray(this._maxLength)}ShapeCollection.prototype.addShape=function(e){this._length===this._maxLength&&(this.shapes=this.shapes.concat(createSizedArray(this._maxLength)),this._maxLength*=2),this.shapes[this._length]=e,this._length+=1},ShapeCollection.prototype.releaseShapes=function(){var e;for(e=0;e<this._length;e+=1)shapePool.release(this.shapes[e]);this._length=0};var shapeCollectionPool=(function(){var e={newShapeCollection:s,release:a},t=0,n=4,i=createSizedArray(n);function s(){var o;return t?(t-=1,o=i[t]):o=new ShapeCollection,o}function a(o){var l,c=o._length;for(l=0;l<c;l+=1)shapePool.release(o.shapes[l]);o._length=0,t===n&&(i=pooling.double(i),n*=2),i[t]=o,t+=1}return e})(),ShapePropertyFactory=(function(){var e=-999999;function t(g,b,v){var N=v.lastIndex,w,E,_,k,A,F,B,I,D,L=this.keyframes;if(g<L[0].t-this.offsetTime)w=L[0].s[0],_=!0,N=0;else if(g>=L[L.length-1].t-this.offsetTime)w=L[L.length-1].s?L[L.length-1].s[0]:L[L.length-2].e[0],_=!0;else{for(var $=N,P=L.length-1,T=!0,x,S,M;T&&(x=L[$],S=L[$+1],!(S.t-this.offsetTime>g));)$<P-1?$+=1:T=!1;if(M=this.keyframesMetadata[$]||{},_=x.h===1,N=$,!_){if(g>=S.t-this.offsetTime)I=1;else if(g<x.t-this.offsetTime)I=0;else{var V;M.__fnct?V=M.__fnct:(V=BezierFactory.getBezierEasing(x.o.x,x.o.y,x.i.x,x.i.y).get,M.__fnct=V),I=V((g-(x.t-this.offsetTime))/(S.t-this.offsetTime-(x.t-this.offsetTime)))}E=S.s?S.s[0]:x.e[0]}w=x.s[0]}for(F=b._length,B=w.i[0].length,v.lastIndex=N,k=0;k<F;k+=1)for(A=0;A<B;A+=1)D=_?w.i[k][A]:w.i[k][A]+(E.i[k][A]-w.i[k][A])*I,b.i[k][A]=D,D=_?w.o[k][A]:w.o[k][A]+(E.o[k][A]-w.o[k][A])*I,b.o[k][A]=D,D=_?w.v[k][A]:w.v[k][A]+(E.v[k][A]-w.v[k][A])*I,b.v[k][A]=D}function n(){var g=this.comp.renderedFrame-this.offsetTime,b=this.keyframes[0].t-this.offsetTime,v=this.keyframes[this.keyframes.length-1].t-this.offsetTime,N=this._caching.lastFrame;return N!==e&&(N<b&&g<b||N>v&&g>v)||(this._caching.lastIndex=N<g?this._caching.lastIndex:0,this.interpolateShape(g,this.pv,this._caching)),this._caching.lastFrame=g,this.pv}function i(){this.paths=this.localShapeCollection}function s(g,b){if(g._length!==b._length||g.c!==b.c)return!1;var v,N=g._length;for(v=0;v<N;v+=1)if(g.v[v][0]!==b.v[v][0]||g.v[v][1]!==b.v[v][1]||g.o[v][0]!==b.o[v][0]||g.o[v][1]!==b.o[v][1]||g.i[v][0]!==b.i[v][0]||g.i[v][1]!==b.i[v][1])return!1;return!0}function a(g){s(this.v,g)||(this.v=shapePool.clone(g),this.localShapeCollection.releaseShapes(),this.localShapeCollection.addShape(this.v),this._mdf=!0,this.paths=this.localShapeCollection)}function o(){if(this.elem.globalData.frameId!==this.frameId){if(!this.effectsSequence.length){this._mdf=!1;return}if(this.lock){this.setVValue(this.pv);return}this.lock=!0,this._mdf=!1;var g;this.kf?g=this.pv:this.data.ks?g=this.data.ks.k:g=this.data.pt.k;var b,v=this.effectsSequence.length;for(b=0;b<v;b+=1)g=this.effectsSequence[b](g);this.setVValue(g),this.lock=!1,this.frameId=this.elem.globalData.frameId}}function l(g,b,v){this.propType="shape",this.comp=g.comp,this.container=g,this.elem=g,this.data=b,this.k=!1,this.kf=!1,this._mdf=!1;var N=v===3?b.pt.k:b.ks.k;this.v=shapePool.clone(N),this.pv=shapePool.clone(this.v),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.reset=i,this.effectsSequence=[]}function c(g){this.effectsSequence.push(g),this.container.addDynamicProperty(this)}l.prototype.interpolateShape=t,l.prototype.getValue=o,l.prototype.setVValue=a,l.prototype.addEffect=c;function d(g,b,v){this.propType="shape",this.comp=g.comp,this.elem=g,this.container=g,this.offsetTime=g.data.st,this.keyframes=v===3?b.pt.k:b.ks.k,this.keyframesMetadata=[],this.k=!0,this.kf=!0;var N=this.keyframes[0].s[0].i.length;this.v=shapePool.newElement(),this.v.setPathData(this.keyframes[0].s[0].c,N),this.pv=shapePool.clone(this.v),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.lastFrame=e,this.reset=i,this._caching={lastFrame:e,lastIndex:0},this.effectsSequence=[n.bind(this)]}d.prototype.getValue=o,d.prototype.interpolateShape=t,d.prototype.setVValue=a,d.prototype.addEffect=c;var u=(function(){var g=roundCorner;function b(v,N){this.v=shapePool.newElement(),this.v.setPathData(!0,4),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.paths=this.localShapeCollection,this.localShapeCollection.addShape(this.v),this.d=N.d,this.elem=v,this.comp=v.comp,this.frameId=-1,this.initDynamicPropertyContainer(v),this.p=PropertyFactory.getProp(v,N.p,1,0,this),this.s=PropertyFactory.getProp(v,N.s,1,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertEllToPath())}return b.prototype={reset:i,getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertEllToPath())},convertEllToPath:function(){var N=this.p.v[0],w=this.p.v[1],E=this.s.v[0]/2,_=this.s.v[1]/2,k=this.d!==3,A=this.v;A.v[0][0]=N,A.v[0][1]=w-_,A.v[1][0]=k?N+E:N-E,A.v[1][1]=w,A.v[2][0]=N,A.v[2][1]=w+_,A.v[3][0]=k?N-E:N+E,A.v[3][1]=w,A.i[0][0]=k?N-E*g:N+E*g,A.i[0][1]=w-_,A.i[1][0]=k?N+E:N-E,A.i[1][1]=w-_*g,A.i[2][0]=k?N+E*g:N-E*g,A.i[2][1]=w+_,A.i[3][0]=k?N-E:N+E,A.i[3][1]=w+_*g,A.o[0][0]=k?N+E*g:N-E*g,A.o[0][1]=w-_,A.o[1][0]=k?N+E:N-E,A.o[1][1]=w+_*g,A.o[2][0]=k?N-E*g:N+E*g,A.o[2][1]=w+_,A.o[3][0]=k?N-E:N+E,A.o[3][1]=w-_*g}},extendPrototype([DynamicPropertyContainer],b),b})(),p=(function(){function g(b,v){this.v=shapePool.newElement(),this.v.setPathData(!0,0),this.elem=b,this.comp=b.comp,this.data=v,this.frameId=-1,this.d=v.d,this.initDynamicPropertyContainer(b),v.sy===1?(this.ir=PropertyFactory.getProp(b,v.ir,0,0,this),this.is=PropertyFactory.getProp(b,v.is,0,.01,this),this.convertToPath=this.convertStarToPath):this.convertToPath=this.convertPolygonToPath,this.pt=PropertyFactory.getProp(b,v.pt,0,0,this),this.p=PropertyFactory.getProp(b,v.p,1,0,this),this.r=PropertyFactory.getProp(b,v.r,0,degToRads,this),this.or=PropertyFactory.getProp(b,v.or,0,0,this),this.os=PropertyFactory.getProp(b,v.os,0,.01,this),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertToPath())}return g.prototype={reset:i,getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertToPath())},convertStarToPath:function(){var v=Math.floor(this.pt.v)*2,N=Math.PI*2/v,w=!0,E=this.or.v,_=this.ir.v,k=this.os.v,A=this.is.v,F=2*Math.PI*E/(v*2),B=2*Math.PI*_/(v*2),I,D,L,$,P=-Math.PI/2;P+=this.r.v;var T=this.data.d===3?-1:1;for(this.v._length=0,I=0;I<v;I+=1){D=w?E:_,L=w?k:A,$=w?F:B;var x=D*Math.cos(P),S=D*Math.sin(P),M=x===0&&S===0?0:S/Math.sqrt(x*x+S*S),V=x===0&&S===0?0:-x/Math.sqrt(x*x+S*S);x+=+this.p.v[0],S+=+this.p.v[1],this.v.setTripleAt(x,S,x-M*$*L*T,S-V*$*L*T,x+M*$*L*T,S+V*$*L*T,I,!0),w=!w,P+=N*T}},convertPolygonToPath:function(){var v=Math.floor(this.pt.v),N=Math.PI*2/v,w=this.or.v,E=this.os.v,_=2*Math.PI*w/(v*4),k,A=-Math.PI*.5,F=this.data.d===3?-1:1;for(A+=this.r.v,this.v._length=0,k=0;k<v;k+=1){var B=w*Math.cos(A),I=w*Math.sin(A),D=B===0&&I===0?0:I/Math.sqrt(B*B+I*I),L=B===0&&I===0?0:-B/Math.sqrt(B*B+I*I);B+=+this.p.v[0],I+=+this.p.v[1],this.v.setTripleAt(B,I,B-D*_*E*F,I-L*_*E*F,B+D*_*E*F,I+L*_*E*F,k,!0),A+=N*F}this.paths.length=0,this.paths[0]=this.v}},extendPrototype([DynamicPropertyContainer],g),g})(),h=(function(){function g(b,v){this.v=shapePool.newElement(),this.v.c=!0,this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.elem=b,this.comp=b.comp,this.frameId=-1,this.d=v.d,this.initDynamicPropertyContainer(b),this.p=PropertyFactory.getProp(b,v.p,1,0,this),this.s=PropertyFactory.getProp(b,v.s,1,0,this),this.r=PropertyFactory.getProp(b,v.r,0,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertRectToPath())}return g.prototype={convertRectToPath:function(){var v=this.p.v[0],N=this.p.v[1],w=this.s.v[0]/2,E=this.s.v[1]/2,_=bmMin(w,E,this.r.v),k=_*(1-roundCorner);this.v._length=0,this.d===2||this.d===1?(this.v.setTripleAt(v+w,N-E+_,v+w,N-E+_,v+w,N-E+k,0,!0),this.v.setTripleAt(v+w,N+E-_,v+w,N+E-k,v+w,N+E-_,1,!0),_!==0?(this.v.setTripleAt(v+w-_,N+E,v+w-_,N+E,v+w-k,N+E,2,!0),this.v.setTripleAt(v-w+_,N+E,v-w+k,N+E,v-w+_,N+E,3,!0),this.v.setTripleAt(v-w,N+E-_,v-w,N+E-_,v-w,N+E-k,4,!0),this.v.setTripleAt(v-w,N-E+_,v-w,N-E+k,v-w,N-E+_,5,!0),this.v.setTripleAt(v-w+_,N-E,v-w+_,N-E,v-w+k,N-E,6,!0),this.v.setTripleAt(v+w-_,N-E,v+w-k,N-E,v+w-_,N-E,7,!0)):(this.v.setTripleAt(v-w,N+E,v-w+k,N+E,v-w,N+E,2),this.v.setTripleAt(v-w,N-E,v-w,N-E+k,v-w,N-E,3))):(this.v.setTripleAt(v+w,N-E+_,v+w,N-E+k,v+w,N-E+_,0,!0),_!==0?(this.v.setTripleAt(v+w-_,N-E,v+w-_,N-E,v+w-k,N-E,1,!0),this.v.setTripleAt(v-w+_,N-E,v-w+k,N-E,v-w+_,N-E,2,!0),this.v.setTripleAt(v-w,N-E+_,v-w,N-E+_,v-w,N-E+k,3,!0),this.v.setTripleAt(v-w,N+E-_,v-w,N+E-k,v-w,N+E-_,4,!0),this.v.setTripleAt(v-w+_,N+E,v-w+_,N+E,v-w+k,N+E,5,!0),this.v.setTripleAt(v+w-_,N+E,v+w-k,N+E,v+w-_,N+E,6,!0),this.v.setTripleAt(v+w,N+E-_,v+w,N+E-_,v+w,N+E-k,7,!0)):(this.v.setTripleAt(v-w,N-E,v-w+k,N-E,v-w,N-E,1,!0),this.v.setTripleAt(v-w,N+E,v-w,N+E-k,v-w,N+E,2,!0),this.v.setTripleAt(v+w,N+E,v+w-k,N+E,v+w,N+E,3,!0)))},getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertRectToPath())},reset:i},extendPrototype([DynamicPropertyContainer],g),g})();function y(g,b,v){var N;if(v===3||v===4){var w=v===3?b.pt:b.ks,E=w.k;E.length?N=new d(g,b,v):N=new l(g,b,v)}else v===5?N=new h(g,b):v===6?N=new u(g,b):v===7&&(N=new p(g,b));return N.k&&g.addDynamicProperty(N),N}function f(){return l}function m(){return d}var C={};return C.getShapeProp=y,C.getConstructorFunction=f,C.getKeyframedConstructorFunction=m,C})();var Matrix=(function(){var e=Math.cos,t=Math.sin,n=Math.tan,i=Math.round;function s(){return this.props[0]=1,this.props[1]=0,this.props[2]=0,this.props[3]=0,this.props[4]=0,this.props[5]=1,this.props[6]=0,this.props[7]=0,this.props[8]=0,this.props[9]=0,this.props[10]=1,this.props[11]=0,this.props[12]=0,this.props[13]=0,this.props[14]=0,this.props[15]=1,this}function a(x){if(x===0)return this;var S=e(x),M=t(x);return this._t(S,-M,0,0,M,S,0,0,0,0,1,0,0,0,0,1)}function o(x){if(x===0)return this;var S=e(x),M=t(x);return this._t(1,0,0,0,0,S,-M,0,0,M,S,0,0,0,0,1)}function l(x){if(x===0)return this;var S=e(x),M=t(x);return this._t(S,0,M,0,0,1,0,0,-M,0,S,0,0,0,0,1)}function c(x){if(x===0)return this;var S=e(x),M=t(x);return this._t(S,-M,0,0,M,S,0,0,0,0,1,0,0,0,0,1)}function d(x,S){return this._t(1,S,x,1,0,0)}function u(x,S){return this.shear(n(x),n(S))}function p(x,S){var M=e(S),V=t(S);return this._t(M,V,0,0,-V,M,0,0,0,0,1,0,0,0,0,1)._t(1,0,0,0,n(x),1,0,0,0,0,1,0,0,0,0,1)._t(M,-V,0,0,V,M,0,0,0,0,1,0,0,0,0,1)}function h(x,S,M){return!M&&M!==0&&(M=1),x===1&&S===1&&M===1?this:this._t(x,0,0,0,0,S,0,0,0,0,M,0,0,0,0,1)}function y(x,S,M,V,z,G,H,W,q,U,J,Q,K,X,Z,Y){return this.props[0]=x,this.props[1]=S,this.props[2]=M,this.props[3]=V,this.props[4]=z,this.props[5]=G,this.props[6]=H,this.props[7]=W,this.props[8]=q,this.props[9]=U,this.props[10]=J,this.props[11]=Q,this.props[12]=K,this.props[13]=X,this.props[14]=Z,this.props[15]=Y,this}function f(x,S,M){return M=M||0,x!==0||S!==0||M!==0?this._t(1,0,0,0,0,1,0,0,0,0,1,0,x,S,M,1):this}function m(x,S,M,V,z,G,H,W,q,U,J,Q,K,X,Z,Y){var j=this.props;if(x===1&&S===0&&M===0&&V===0&&z===0&&G===1&&H===0&&W===0&&q===0&&U===0&&J===1&&Q===0)return j[12]=j[12]*x+j[15]*K,j[13]=j[13]*G+j[15]*X,j[14]=j[14]*J+j[15]*Z,j[15]*=Y,this._identityCalculated=!1,this;var ae=j[0],ue=j[1],oe=j[2],se=j[3],le=j[4],ce=j[5],ee=j[6],de=j[7],fe=j[8],re=j[9],he=j[10],ie=j[11],pe=j[12],ve=j[13],ye=j[14],be=j[15];return j[0]=ae*x+ue*z+oe*q+se*K,j[1]=ae*S+ue*G+oe*U+se*X,j[2]=ae*M+ue*H+oe*J+se*Z,j[3]=ae*V+ue*W+oe*Q+se*Y,j[4]=le*x+ce*z+ee*q+de*K,j[5]=le*S+ce*G+ee*U+de*X,j[6]=le*M+ce*H+ee*J+de*Z,j[7]=le*V+ce*W+ee*Q+de*Y,j[8]=fe*x+re*z+he*q+ie*K,j[9]=fe*S+re*G+he*U+ie*X,j[10]=fe*M+re*H+he*J+ie*Z,j[11]=fe*V+re*W+he*Q+ie*Y,j[12]=pe*x+ve*z+ye*q+be*K,j[13]=pe*S+ve*G+ye*U+be*X,j[14]=pe*M+ve*H+ye*J+be*Z,j[15]=pe*V+ve*W+ye*Q+be*Y,this._identityCalculated=!1,this}function C(x){var S=x.props;return this.transform(S[0],S[1],S[2],S[3],S[4],S[5],S[6],S[7],S[8],S[9],S[10],S[11],S[12],S[13],S[14],S[15])}function g(){return this._identityCalculated||(this._identity=!(this.props[0]!==1||this.props[1]!==0||this.props[2]!==0||this.props[3]!==0||this.props[4]!==0||this.props[5]!==1||this.props[6]!==0||this.props[7]!==0||this.props[8]!==0||this.props[9]!==0||this.props[10]!==1||this.props[11]!==0||this.props[12]!==0||this.props[13]!==0||this.props[14]!==0||this.props[15]!==1),this._identityCalculated=!0),this._identity}function b(x){for(var S=0;S<16;){if(x.props[S]!==this.props[S])return!1;S+=1}return!0}function v(x){var S;for(S=0;S<16;S+=1)x.props[S]=this.props[S];return x}function N(x){var S;for(S=0;S<16;S+=1)this.props[S]=x[S]}function w(x,S,M){return{x:x*this.props[0]+S*this.props[4]+M*this.props[8]+this.props[12],y:x*this.props[1]+S*this.props[5]+M*this.props[9]+this.props[13],z:x*this.props[2]+S*this.props[6]+M*this.props[10]+this.props[14]}}function E(x,S,M){return x*this.props[0]+S*this.props[4]+M*this.props[8]+this.props[12]}function _(x,S,M){return x*this.props[1]+S*this.props[5]+M*this.props[9]+this.props[13]}function k(x,S,M){return x*this.props[2]+S*this.props[6]+M*this.props[10]+this.props[14]}function A(){var x=this.props[0]*this.props[5]-this.props[1]*this.props[4],S=this.props[5]/x,M=-this.props[1]/x,V=-this.props[4]/x,z=this.props[0]/x,G=(this.props[4]*this.props[13]-this.props[5]*this.props[12])/x,H=-(this.props[0]*this.props[13]-this.props[1]*this.props[12])/x,W=new Matrix;return W.props[0]=S,W.props[1]=M,W.props[4]=V,W.props[5]=z,W.props[12]=G,W.props[13]=H,W}function F(x){var S=this.getInverseMatrix();return S.applyToPointArray(x[0],x[1],x[2]||0)}function B(x){var S,M=x.length,V=[];for(S=0;S<M;S+=1)V[S]=F(x[S]);return V}function I(x,S,M){var V=createTypedArray("float32",6);if(this.isIdentity())V[0]=x[0],V[1]=x[1],V[2]=S[0],V[3]=S[1],V[4]=M[0],V[5]=M[1];else{var z=this.props[0],G=this.props[1],H=this.props[4],W=this.props[5],q=this.props[12],U=this.props[13];V[0]=x[0]*z+x[1]*H+q,V[1]=x[0]*G+x[1]*W+U,V[2]=S[0]*z+S[1]*H+q,V[3]=S[0]*G+S[1]*W+U,V[4]=M[0]*z+M[1]*H+q,V[5]=M[0]*G+M[1]*W+U}return V}function D(x,S,M){var V;return this.isIdentity()?V=[x,S,M]:V=[x*this.props[0]+S*this.props[4]+M*this.props[8]+this.props[12],x*this.props[1]+S*this.props[5]+M*this.props[9]+this.props[13],x*this.props[2]+S*this.props[6]+M*this.props[10]+this.props[14]],V}function L(x,S){if(this.isIdentity())return x+","+S;var M=this.props;return Math.round((x*M[0]+S*M[4]+M[12])*100)/100+","+Math.round((x*M[1]+S*M[5]+M[13])*100)/100}function $(){for(var x=0,S=this.props,M="matrix3d(",V=1e4;x<16;)M+=i(S[x]*V)/V,M+=x===15?")":",",x+=1;return M}function P(x){var S=1e4;return x<1e-6&&x>0||x>-1e-6&&x<0?i(x*S)/S:x}function T(){var x=this.props,S=P(x[0]),M=P(x[1]),V=P(x[4]),z=P(x[5]),G=P(x[12]),H=P(x[13]);return"matrix("+S+","+M+","+V+","+z+","+G+","+H+")"}return function(){this.reset=s,this.rotate=a,this.rotateX=o,this.rotateY=l,this.rotateZ=c,this.skew=u,this.skewFromAxis=p,this.shear=d,this.scale=h,this.setTransform=y,this.translate=f,this.transform=m,this.multiply=C,this.applyToPoint=w,this.applyToX=E,this.applyToY=_,this.applyToZ=k,this.applyToPointArray=D,this.applyToTriplePoints=I,this.applyToPointStringified=L,this.toCSS=$,this.to2dCSS=T,this.clone=v,this.cloneFromProps=N,this.equals=b,this.inversePoints=B,this.inversePoint=F,this.getInverseMatrix=A,this._t=this.transform,this.isIdentity=g,this._identity=!0,this._identityCalculated=!1,this.props=createTypedArray("float32",16),this.reset()}})();function _typeof$3(e){"@babel/helpers - typeof";return _typeof$3=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$3(e)}var lottie={};function setLocation(e){setLocationHref(e)}function searchAnimations(){animationManager.searchAnimations()}function setSubframeRendering(e){setSubframeEnabled(e)}function setPrefix(e){setIdPrefix(e)}function loadAnimation(e){return animationManager.loadAnimation(e)}function setQuality(e){if(typeof e=="string")switch(e){case"high":setDefaultCurveSegments(200);break;default:case"medium":setDefaultCurveSegments(50);break;case"low":setDefaultCurveSegments(10);break}else!isNaN(e)&&e>1&&setDefaultCurveSegments(e)}function inBrowser(){return typeof navigator<"u"}function installPlugin(e,t){e==="expressions"&&setExpressionsPlugin(t)}function getFactory(e){switch(e){case"propertyFactory":return PropertyFactory;case"shapePropertyFactory":return ShapePropertyFactory;case"matrix":return Matrix;default:return null}}lottie.play=animationManager.play,lottie.pause=animationManager.pause,lottie.setLocationHref=setLocation,lottie.togglePause=animationManager.togglePause,lottie.setSpeed=animationManager.setSpeed,lottie.setDirection=animationManager.setDirection,lottie.stop=animationManager.stop,lottie.searchAnimations=searchAnimations,lottie.registerAnimation=animationManager.registerAnimation,lottie.loadAnimation=loadAnimation,lottie.setSubframeRendering=setSubframeRendering,lottie.resize=animationManager.resize,lottie.goToAndStop=animationManager.goToAndStop,lottie.destroy=animationManager.destroy,lottie.setQuality=setQuality,lottie.inBrowser=inBrowser,lottie.installPlugin=installPlugin,lottie.freeze=animationManager.freeze,lottie.unfreeze=animationManager.unfreeze,lottie.setVolume=animationManager.setVolume,lottie.mute=animationManager.mute,lottie.unmute=animationManager.unmute,lottie.getRegisteredAnimations=animationManager.getRegisteredAnimations,lottie.useWebWorker=setWebWorker,lottie.setIDPrefix=setPrefix,lottie.__getFactory=getFactory,lottie.version="5.13.0";function checkReady(){document.readyState==="complete"&&(clearInterval(readyStateCheckInterval),searchAnimations())}function getQueryVariable(e){for(var t=queryString.split("&"),n=0;n<t.length;n+=1){var i=t[n].split("=");if(decodeURIComponent(i[0])==e)return decodeURIComponent(i[1])}return null}var queryString="";{var scripts=document.getElementsByTagName("script"),index=scripts.length-1,myScript=scripts[index]||{src:""};queryString=myScript.src?myScript.src.replace(/^[^\?]+\??/,""):"",getQueryVariable("renderer")}var readyStateCheckInterval=setInterval(checkReady,100);try{_typeof$3(exports$1)!=="object"&&(window.bodymovin=lottie)}catch(e){}var ShapeModifiers=(function(){var e={},t={};e.registerModifier=n,e.getModifier=i;function n(s,a){t[s]||(t[s]=a)}function i(s,a,o){return new t[s](a,o)}return e})();function ShapeModifier(){}ShapeModifier.prototype.initModifierProperties=function(){},ShapeModifier.prototype.addShapeToModifier=function(){},ShapeModifier.prototype.addShape=function(e){if(!this.closed){e.sh.container.addDynamicProperty(e.sh);var t={shape:e.sh,data:e,localShapeCollection:shapeCollectionPool.newShapeCollection()};this.shapes.push(t),this.addShapeToModifier(t),this._isAnimated&&e.setAsAnimated()}},ShapeModifier.prototype.init=function(e,t){this.shapes=[],this.elem=e,this.initDynamicPropertyContainer(e),this.initModifierProperties(e,t),this.frameId=initialDefaultFrame,this.closed=!1,this.k=!1,this.dynamicProperties.length?this.k=!0:this.getValue(!0)},ShapeModifier.prototype.processKeys=function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties())},extendPrototype([DynamicPropertyContainer],ShapeModifier);function TrimModifier(){}extendPrototype([ShapeModifier],TrimModifier),TrimModifier.prototype.initModifierProperties=function(e,t){this.s=PropertyFactory.getProp(e,t.s,0,.01,this),this.e=PropertyFactory.getProp(e,t.e,0,.01,this),this.o=PropertyFactory.getProp(e,t.o,0,0,this),this.sValue=0,this.eValue=0,this.getValue=this.processKeys,this.m=t.m,this._isAnimated=!!this.s.effectsSequence.length||!!this.e.effectsSequence.length||!!this.o.effectsSequence.length},TrimModifier.prototype.addShapeToModifier=function(e){e.pathsData=[]},TrimModifier.prototype.calculateShapeEdges=function(e,t,n,i,s){var a=[];t<=1?a.push({s:e,e:t}):e>=1?a.push({s:e-1,e:t-1}):(a.push({s:e,e:1}),a.push({s:0,e:t-1}));var o=[],l,c=a.length,d;for(l=0;l<c;l+=1)if(d=a[l],!(d.e*s<i||d.s*s>i+n)){var u,p;d.s*s<=i?u=0:u=(d.s*s-i)/n,d.e*s>=i+n?p=1:p=(d.e*s-i)/n,o.push([u,p])}return o.length||o.push([0,0]),o},TrimModifier.prototype.releasePathsData=function(e){var t,n=e.length;for(t=0;t<n;t+=1)segmentsLengthPool.release(e[t]);return e.length=0,e},TrimModifier.prototype.processShapes=function(e){var t,n;if(this._mdf||e){var i=this.o.v%360/360;if(i<0&&(i+=1),this.s.v>1?t=1+i:this.s.v<0?t=0+i:t=this.s.v+i,this.e.v>1?n=1+i:this.e.v<0?n=0+i:n=this.e.v+i,t>n){var s=t;t=n,n=s}t=Math.round(t*1e4)*1e-4,n=Math.round(n*1e4)*1e-4,this.sValue=t,this.eValue=n}else t=this.sValue,n=this.eValue;var a,o,l=this.shapes.length,c,d,u,p,h,y=0;if(n===t)for(o=0;o<l;o+=1)this.shapes[o].localShapeCollection.releaseShapes(),this.shapes[o].shape._mdf=!0,this.shapes[o].shape.paths=this.shapes[o].localShapeCollection,this._mdf&&(this.shapes[o].pathsData.length=0);else if(n===1&&t===0||n===0&&t===1){if(this._mdf)for(o=0;o<l;o+=1)this.shapes[o].pathsData.length=0,this.shapes[o].shape._mdf=!0}else{var f=[],m,C;for(o=0;o<l;o+=1)if(m=this.shapes[o],!m.shape._mdf&&!this._mdf&&!e&&this.m!==2)m.shape.paths=m.localShapeCollection;else{if(a=m.shape.paths,d=a._length,h=0,!m.shape._mdf&&m.pathsData.length)h=m.totalShapeLength;else{for(u=this.releasePathsData(m.pathsData),c=0;c<d;c+=1)p=bez.getSegmentsLength(a.shapes[c]),u.push(p),h+=p.totalLength;m.totalShapeLength=h,m.pathsData=u}y+=h,m.shape._mdf=!0}var g=t,b=n,v=0,N;for(o=l-1;o>=0;o-=1)if(m=this.shapes[o],m.shape._mdf){for(C=m.localShapeCollection,C.releaseShapes(),this.m===2&&l>1?(N=this.calculateShapeEdges(t,n,m.totalShapeLength,v,y),v+=m.totalShapeLength):N=[[g,b]],d=N.length,c=0;c<d;c+=1){g=N[c][0],b=N[c][1],f.length=0,b<=1?f.push({s:m.totalShapeLength*g,e:m.totalShapeLength*b}):g>=1?f.push({s:m.totalShapeLength*(g-1),e:m.totalShapeLength*(b-1)}):(f.push({s:m.totalShapeLength*g,e:m.totalShapeLength}),f.push({s:0,e:m.totalShapeLength*(b-1)}));var w=this.addShapes(m,f[0]);if(f[0].s!==f[0].e){if(f.length>1){var E=m.shape.paths.shapes[m.shape.paths._length-1];if(E.c){var _=w.pop();this.addPaths(w,C),w=this.addShapes(m,f[1],_)}else this.addPaths(w,C),w=this.addShapes(m,f[1])}this.addPaths(w,C)}}m.shape.paths=C}}},TrimModifier.prototype.addPaths=function(e,t){var n,i=e.length;for(n=0;n<i;n+=1)t.addShape(e[n])},TrimModifier.prototype.addSegment=function(e,t,n,i,s,a,o){s.setXYAt(t[0],t[1],"o",a),s.setXYAt(n[0],n[1],"i",a+1),o&&s.setXYAt(e[0],e[1],"v",a),s.setXYAt(i[0],i[1],"v",a+1)},TrimModifier.prototype.addSegmentFromArray=function(e,t,n,i){t.setXYAt(e[1],e[5],"o",n),t.setXYAt(e[2],e[6],"i",n+1),i&&t.setXYAt(e[0],e[4],"v",n),t.setXYAt(e[3],e[7],"v",n+1)},TrimModifier.prototype.addShapes=function(e,t,n){var i=e.pathsData,s=e.shape.paths.shapes,a,o=e.shape.paths._length,l,c,d=0,u,p,h,y,f=[],m,C=!0;for(n?(p=n._length,m=n._length):(n=shapePool.newElement(),p=0,m=0),f.push(n),a=0;a<o;a+=1){for(h=i[a].lengths,n.c=s[a].c,c=s[a].c?h.length:h.length+1,l=1;l<c;l+=1)if(u=h[l-1],d+u.addedLength<t.s)d+=u.addedLength,n.c=!1;else if(d>t.e){n.c=!1;break}else t.s<=d&&t.e>=d+u.addedLength?(this.addSegment(s[a].v[l-1],s[a].o[l-1],s[a].i[l],s[a].v[l],n,p,C),C=!1):(y=bez.getNewSegment(s[a].v[l-1],s[a].v[l],s[a].o[l-1],s[a].i[l],(t.s-d)/u.addedLength,(t.e-d)/u.addedLength,h[l-1]),this.addSegmentFromArray(y,n,p,C),C=!1,n.c=!1),d+=u.addedLength,p+=1;if(s[a].c&&h.length){if(u=h[l-1],d<=t.e){var g=h[l-1].addedLength;t.s<=d&&t.e>=d+g?(this.addSegment(s[a].v[l-1],s[a].o[l-1],s[a].i[0],s[a].v[0],n,p,C),C=!1):(y=bez.getNewSegment(s[a].v[l-1],s[a].v[0],s[a].o[l-1],s[a].i[0],(t.s-d)/g,(t.e-d)/g,h[l-1]),this.addSegmentFromArray(y,n,p,C),C=!1,n.c=!1)}else n.c=!1;d+=u.addedLength,p+=1}if(n._length&&(n.setXYAt(n.v[m][0],n.v[m][1],"i",m),n.setXYAt(n.v[n._length-1][0],n.v[n._length-1][1],"o",n._length-1)),d>t.e)break;a<o-1&&(n=shapePool.newElement(),C=!0,f.push(n),p=0)}return f};function PuckerAndBloatModifier(){}extendPrototype([ShapeModifier],PuckerAndBloatModifier),PuckerAndBloatModifier.prototype.initModifierProperties=function(e,t){this.getValue=this.processKeys,this.amount=PropertyFactory.getProp(e,t.a,0,null,this),this._isAnimated=!!this.amount.effectsSequence.length},PuckerAndBloatModifier.prototype.processPath=function(e,t){var n=t/100,i=[0,0],s=e._length,a=0;for(a=0;a<s;a+=1)i[0]+=e.v[a][0],i[1]+=e.v[a][1];i[0]/=s,i[1]/=s;var o=shapePool.newElement();o.c=e.c;var l,c,d,u,p,h;for(a=0;a<s;a+=1)l=e.v[a][0]+(i[0]-e.v[a][0])*n,c=e.v[a][1]+(i[1]-e.v[a][1])*n,d=e.o[a][0]+(i[0]-e.o[a][0])*-n,u=e.o[a][1]+(i[1]-e.o[a][1])*-n,p=e.i[a][0]+(i[0]-e.i[a][0])*-n,h=e.i[a][1]+(i[1]-e.i[a][1])*-n,o.setTripleAt(l,c,d,u,p,h,a);return o},PuckerAndBloatModifier.prototype.processShapes=function(e){var t,n,i=this.shapes.length,s,a,o=this.amount.v;if(o!==0){var l,c;for(n=0;n<i;n+=1){if(l=this.shapes[n],c=l.localShapeCollection,!(!l.shape._mdf&&!this._mdf&&!e))for(c.releaseShapes(),l.shape._mdf=!0,t=l.shape.paths.shapes,a=l.shape.paths._length,s=0;s<a;s+=1)c.addShape(this.processPath(t[s],o));l.shape.paths=l.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};var TransformPropertyFactory=(function(){var e=[0,0];function t(c){var d=this._mdf;this.iterateDynamicProperties(),this._mdf=this._mdf||d,this.a&&c.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.s&&c.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.sk&&c.skewFromAxis(-this.sk.v,this.sa.v),this.r?c.rotate(-this.r.v):c.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.data.p.s?this.data.p.z?c.translate(this.px.v,this.py.v,-this.pz.v):c.translate(this.px.v,this.py.v,0):c.translate(this.p.v[0],this.p.v[1],-this.p.v[2])}function n(c){if(this.elem.globalData.frameId!==this.frameId){if(this._isDirty&&(this.precalculateMatrix(),this._isDirty=!1),this.iterateDynamicProperties(),this._mdf||c){var d;if(this.v.cloneFromProps(this.pre.props),this.appliedTransformations<1&&this.v.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.appliedTransformations<2&&this.v.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.sk&&this.appliedTransformations<3&&this.v.skewFromAxis(-this.sk.v,this.sa.v),this.r&&this.appliedTransformations<4?this.v.rotate(-this.r.v):!this.r&&this.appliedTransformations<4&&this.v.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.autoOriented){var u,p;if(d=this.elem.globalData.frameRate,this.p&&this.p.keyframes&&this.p.getValueAtTime)this.p._caching.lastFrame+this.p.offsetTime<=this.p.keyframes[0].t?(u=this.p.getValueAtTime((this.p.keyframes[0].t+.01)/d,0),p=this.p.getValueAtTime(this.p.keyframes[0].t/d,0)):this.p._caching.lastFrame+this.p.offsetTime>=this.p.keyframes[this.p.keyframes.length-1].t?(u=this.p.getValueAtTime(this.p.keyframes[this.p.keyframes.length-1].t/d,0),p=this.p.getValueAtTime((this.p.keyframes[this.p.keyframes.length-1].t-.05)/d,0)):(u=this.p.pv,p=this.p.getValueAtTime((this.p._caching.lastFrame+this.p.offsetTime-.01)/d,this.p.offsetTime));else if(this.px&&this.px.keyframes&&this.py.keyframes&&this.px.getValueAtTime&&this.py.getValueAtTime){u=[],p=[];var h=this.px,y=this.py;h._caching.lastFrame+h.offsetTime<=h.keyframes[0].t?(u[0]=h.getValueAtTime((h.keyframes[0].t+.01)/d,0),u[1]=y.getValueAtTime((y.keyframes[0].t+.01)/d,0),p[0]=h.getValueAtTime(h.keyframes[0].t/d,0),p[1]=y.getValueAtTime(y.keyframes[0].t/d,0)):h._caching.lastFrame+h.offsetTime>=h.keyframes[h.keyframes.length-1].t?(u[0]=h.getValueAtTime(h.keyframes[h.keyframes.length-1].t/d,0),u[1]=y.getValueAtTime(y.keyframes[y.keyframes.length-1].t/d,0),p[0]=h.getValueAtTime((h.keyframes[h.keyframes.length-1].t-.01)/d,0),p[1]=y.getValueAtTime((y.keyframes[y.keyframes.length-1].t-.01)/d,0)):(u=[h.pv,y.pv],p[0]=h.getValueAtTime((h._caching.lastFrame+h.offsetTime-.01)/d,h.offsetTime),p[1]=y.getValueAtTime((y._caching.lastFrame+y.offsetTime-.01)/d,y.offsetTime))}else p=e,u=p;this.v.rotate(-Math.atan2(u[1]-p[1],u[0]-p[0]))}this.data.p&&this.data.p.s?this.data.p.z?this.v.translate(this.px.v,this.py.v,-this.pz.v):this.v.translate(this.px.v,this.py.v,0):this.v.translate(this.p.v[0],this.p.v[1],-this.p.v[2])}this.frameId=this.elem.globalData.frameId}}function i(){if(this.appliedTransformations=0,this.pre.reset(),!this.a.effectsSequence.length)this.pre.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.appliedTransformations=1;else return;if(!this.s.effectsSequence.length)this.pre.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.appliedTransformations=2;else return;if(this.sk)if(!this.sk.effectsSequence.length&&!this.sa.effectsSequence.length)this.pre.skewFromAxis(-this.sk.v,this.sa.v),this.appliedTransformations=3;else return;this.r?this.r.effectsSequence.length||(this.pre.rotate(-this.r.v),this.appliedTransformations=4):!this.rz.effectsSequence.length&&!this.ry.effectsSequence.length&&!this.rx.effectsSequence.length&&!this.or.effectsSequence.length&&(this.pre.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.appliedTransformations=4)}function s(){}function a(c){this._addDynamicProperty(c),this.elem.addDynamicProperty(c),this._isDirty=!0}function o(c,d,u){if(this.elem=c,this.frameId=-1,this.propType="transform",this.data=d,this.v=new Matrix,this.pre=new Matrix,this.appliedTransformations=0,this.initDynamicPropertyContainer(u||c),d.p&&d.p.s?(this.px=PropertyFactory.getProp(c,d.p.x,0,0,this),this.py=PropertyFactory.getProp(c,d.p.y,0,0,this),d.p.z&&(this.pz=PropertyFactory.getProp(c,d.p.z,0,0,this))):this.p=PropertyFactory.getProp(c,d.p||{k:[0,0,0]},1,0,this),d.rx){if(this.rx=PropertyFactory.getProp(c,d.rx,0,degToRads,this),this.ry=PropertyFactory.getProp(c,d.ry,0,degToRads,this),this.rz=PropertyFactory.getProp(c,d.rz,0,degToRads,this),d.or.k[0].ti){var p,h=d.or.k.length;for(p=0;p<h;p+=1)d.or.k[p].to=null,d.or.k[p].ti=null}this.or=PropertyFactory.getProp(c,d.or,1,degToRads,this),this.or.sh=!0}else this.r=PropertyFactory.getProp(c,d.r||{k:0},0,degToRads,this);d.sk&&(this.sk=PropertyFactory.getProp(c,d.sk,0,degToRads,this),this.sa=PropertyFactory.getProp(c,d.sa,0,degToRads,this)),this.a=PropertyFactory.getProp(c,d.a||{k:[0,0,0]},1,0,this),this.s=PropertyFactory.getProp(c,d.s||{k:[100,100,100]},1,.01,this),d.o?this.o=PropertyFactory.getProp(c,d.o,0,.01,c):this.o={_mdf:!1,v:1},this._isDirty=!0,this.dynamicProperties.length||this.getValue(!0)}o.prototype={applyToMatrix:t,getValue:n,precalculateMatrix:i,autoOrient:s},extendPrototype([DynamicPropertyContainer],o),o.prototype.addDynamicProperty=a,o.prototype._addDynamicProperty=DynamicPropertyContainer.prototype.addDynamicProperty;function l(c,d,u){return new o(c,d,u)}return{getTransformProperty:l}})();function RepeaterModifier(){}extendPrototype([ShapeModifier],RepeaterModifier),RepeaterModifier.prototype.initModifierProperties=function(e,t){this.getValue=this.processKeys,this.c=PropertyFactory.getProp(e,t.c,0,null,this),this.o=PropertyFactory.getProp(e,t.o,0,null,this),this.tr=TransformPropertyFactory.getTransformProperty(e,t.tr,this),this.so=PropertyFactory.getProp(e,t.tr.so,0,.01,this),this.eo=PropertyFactory.getProp(e,t.tr.eo,0,.01,this),this.data=t,this.dynamicProperties.length||this.getValue(!0),this._isAnimated=!!this.dynamicProperties.length,this.pMatrix=new Matrix,this.rMatrix=new Matrix,this.sMatrix=new Matrix,this.tMatrix=new Matrix,this.matrix=new Matrix},RepeaterModifier.prototype.applyTransforms=function(e,t,n,i,s,a){var o=a?-1:1,l=i.s.v[0]+(1-i.s.v[0])*(1-s),c=i.s.v[1]+(1-i.s.v[1])*(1-s);e.translate(i.p.v[0]*o*s,i.p.v[1]*o*s,i.p.v[2]),t.translate(-i.a.v[0],-i.a.v[1],i.a.v[2]),t.rotate(-i.r.v*o*s),t.translate(i.a.v[0],i.a.v[1],i.a.v[2]),n.translate(-i.a.v[0],-i.a.v[1],i.a.v[2]),n.scale(a?1/l:l,a?1/c:c),n.translate(i.a.v[0],i.a.v[1],i.a.v[2])},RepeaterModifier.prototype.init=function(e,t,n,i){for(this.elem=e,this.arr=t,this.pos=n,this.elemsData=i,this._currentCopies=0,this._elements=[],this._groups=[],this.frameId=-1,this.initDynamicPropertyContainer(e),this.initModifierProperties(e,t[n]);n>0;)n-=1,this._elements.unshift(t[n]);this.dynamicProperties.length?this.k=!0:this.getValue(!0)},RepeaterModifier.prototype.resetElements=function(e){var t,n=e.length;for(t=0;t<n;t+=1)e[t]._processed=!1,e[t].ty==="gr"&&this.resetElements(e[t].it)},RepeaterModifier.prototype.cloneElements=function(e){var t=JSON.parse(JSON.stringify(e));return this.resetElements(t),t},RepeaterModifier.prototype.changeGroupRender=function(e,t){var n,i=e.length;for(n=0;n<i;n+=1)e[n]._render=t,e[n].ty==="gr"&&this.changeGroupRender(e[n].it,t)},RepeaterModifier.prototype.processShapes=function(e){var t,n,i,s,a,o=!1;if(this._mdf||e){var l=Math.ceil(this.c.v);if(this._groups.length<l){for(;this._groups.length<l;){var c={it:this.cloneElements(this._elements),ty:"gr"};c.it.push({a:{a:0,ix:1,k:[0,0]},nm:"Transform",o:{a:0,ix:7,k:100},p:{a:0,ix:2,k:[0,0]},r:{a:1,ix:6,k:[{s:0,e:0,t:0},{s:0,e:0,t:1}]},s:{a:0,ix:3,k:[100,100]},sa:{a:0,ix:5,k:0},sk:{a:0,ix:4,k:0},ty:"tr"}),this.arr.splice(0,0,c),this._groups.splice(0,0,c),this._currentCopies+=1}this.elem.reloadShapes(),o=!0}a=0;var d;for(i=0;i<=this._groups.length-1;i+=1){if(d=a<l,this._groups[i]._render=d,this.changeGroupRender(this._groups[i].it,d),!d){var u=this.elemsData[i].it,p=u[u.length-1];p.transform.op.v!==0?(p.transform.op._mdf=!0,p.transform.op.v=0):p.transform.op._mdf=!1}a+=1}this._currentCopies=l;var h=this.o.v,y=h%1,f=h>0?Math.floor(h):Math.ceil(h),m=this.pMatrix.props,C=this.rMatrix.props,g=this.sMatrix.props;this.pMatrix.reset(),this.rMatrix.reset(),this.sMatrix.reset(),this.tMatrix.reset(),this.matrix.reset();var b=0;if(h>0){for(;b<f;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),b+=1;y&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,y,!1),b+=y)}else if(h<0){for(;b>f;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!0),b-=1;y&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,-y,!0),b-=y)}i=this.data.m===1?0:this._currentCopies-1,s=this.data.m===1?1:-1,a=this._currentCopies;for(var v,N;a;){if(t=this.elemsData[i].it,n=t[t.length-1].transform.mProps.v.props,N=n.length,t[t.length-1].transform.mProps._mdf=!0,t[t.length-1].transform.op._mdf=!0,t[t.length-1].transform.op.v=this._currentCopies===1?this.so.v:this.so.v+(this.eo.v-this.so.v)*(i/(this._currentCopies-1)),b!==0){for((i!==0&&s===1||i!==this._currentCopies-1&&s===-1)&&this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),this.matrix.transform(C[0],C[1],C[2],C[3],C[4],C[5],C[6],C[7],C[8],C[9],C[10],C[11],C[12],C[13],C[14],C[15]),this.matrix.transform(g[0],g[1],g[2],g[3],g[4],g[5],g[6],g[7],g[8],g[9],g[10],g[11],g[12],g[13],g[14],g[15]),this.matrix.transform(m[0],m[1],m[2],m[3],m[4],m[5],m[6],m[7],m[8],m[9],m[10],m[11],m[12],m[13],m[14],m[15]),v=0;v<N;v+=1)n[v]=this.matrix.props[v];this.matrix.reset()}else for(this.matrix.reset(),v=0;v<N;v+=1)n[v]=this.matrix.props[v];b+=1,a-=1,i+=s}}else for(a=this._currentCopies,i=0,s=1;a;)t=this.elemsData[i].it,n=t[t.length-1].transform.mProps.v.props,t[t.length-1].transform.mProps._mdf=!1,t[t.length-1].transform.op._mdf=!1,a-=1,i+=s;return o},RepeaterModifier.prototype.addShape=function(){};function RoundCornersModifier(){}extendPrototype([ShapeModifier],RoundCornersModifier),RoundCornersModifier.prototype.initModifierProperties=function(e,t){this.getValue=this.processKeys,this.rd=PropertyFactory.getProp(e,t.r,0,null,this),this._isAnimated=!!this.rd.effectsSequence.length},RoundCornersModifier.prototype.processPath=function(e,t){var n=shapePool.newElement();n.c=e.c;var i,s=e._length,a,o,l,c,d,u,p=0,h,y,f,m,C,g;for(i=0;i<s;i+=1)a=e.v[i],l=e.o[i],o=e.i[i],a[0]===l[0]&&a[1]===l[1]&&a[0]===o[0]&&a[1]===o[1]?(i===0||i===s-1)&&!e.c?(n.setTripleAt(a[0],a[1],l[0],l[1],o[0],o[1],p),p+=1):(i===0?c=e.v[s-1]:c=e.v[i-1],d=Math.sqrt(Math.pow(a[0]-c[0],2)+Math.pow(a[1]-c[1],2)),u=d?Math.min(d/2,t)/d:0,C=a[0]+(c[0]-a[0])*u,h=C,g=a[1]-(a[1]-c[1])*u,y=g,f=h-(h-a[0])*roundCorner,m=y-(y-a[1])*roundCorner,n.setTripleAt(h,y,f,m,C,g,p),p+=1,i===s-1?c=e.v[0]:c=e.v[i+1],d=Math.sqrt(Math.pow(a[0]-c[0],2)+Math.pow(a[1]-c[1],2)),u=d?Math.min(d/2,t)/d:0,f=a[0]+(c[0]-a[0])*u,h=f,m=a[1]+(c[1]-a[1])*u,y=m,C=h-(h-a[0])*roundCorner,g=y-(y-a[1])*roundCorner,n.setTripleAt(h,y,f,m,C,g,p),p+=1):(n.setTripleAt(e.v[i][0],e.v[i][1],e.o[i][0],e.o[i][1],e.i[i][0],e.i[i][1],p),p+=1);return n},RoundCornersModifier.prototype.processShapes=function(e){var t,n,i=this.shapes.length,s,a,o=this.rd.v;if(o!==0){var l,c;for(n=0;n<i;n+=1){if(l=this.shapes[n],c=l.localShapeCollection,!(!l.shape._mdf&&!this._mdf&&!e))for(c.releaseShapes(),l.shape._mdf=!0,t=l.shape.paths.shapes,a=l.shape.paths._length,s=0;s<a;s+=1)c.addShape(this.processPath(t[s],o));l.shape.paths=l.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};function floatEqual(e,t){return Math.abs(e-t)*1e5<=Math.min(Math.abs(e),Math.abs(t))}function floatZero(e){return Math.abs(e)<=1e-5}function lerp(e,t,n){return e*(1-n)+t*n}function lerpPoint(e,t,n){return[lerp(e[0],t[0],n),lerp(e[1],t[1],n)]}function quadRoots(e,t,n){if(e===0)return[];var i=t*t-4*e*n;if(i<0)return[];var s=-t/(2*e);if(i===0)return[s];var a=Math.sqrt(i)/(2*e);return[s-a,s+a]}function polynomialCoefficients(e,t,n,i){return[-e+3*t-3*n+i,3*e-6*t+3*n,-3*e+3*t,e]}function singlePoint(e){return new PolynomialBezier(e,e,e,e,!1)}function PolynomialBezier(e,t,n,i,s){s&&pointEqual(e,t)&&(t=lerpPoint(e,i,1/3)),s&&pointEqual(n,i)&&(n=lerpPoint(e,i,2/3));var a=polynomialCoefficients(e[0],t[0],n[0],i[0]),o=polynomialCoefficients(e[1],t[1],n[1],i[1]);this.a=[a[0],o[0]],this.b=[a[1],o[1]],this.c=[a[2],o[2]],this.d=[a[3],o[3]],this.points=[e,t,n,i]}PolynomialBezier.prototype.point=function(e){return[((this.a[0]*e+this.b[0])*e+this.c[0])*e+this.d[0],((this.a[1]*e+this.b[1])*e+this.c[1])*e+this.d[1]]},PolynomialBezier.prototype.derivative=function(e){return[(3*e*this.a[0]+2*this.b[0])*e+this.c[0],(3*e*this.a[1]+2*this.b[1])*e+this.c[1]]},PolynomialBezier.prototype.tangentAngle=function(e){var t=this.derivative(e);return Math.atan2(t[1],t[0])},PolynomialBezier.prototype.normalAngle=function(e){var t=this.derivative(e);return Math.atan2(t[0],t[1])},PolynomialBezier.prototype.inflectionPoints=function(){var e=this.a[1]*this.b[0]-this.a[0]*this.b[1];if(floatZero(e))return[];var t=-.5*(this.a[1]*this.c[0]-this.a[0]*this.c[1])/e,n=t*t-1/3*(this.b[1]*this.c[0]-this.b[0]*this.c[1])/e;if(n<0)return[];var i=Math.sqrt(n);return floatZero(i)?i>0&&i<1?[t]:[]:[t-i,t+i].filter(function(s){return s>0&&s<1})},PolynomialBezier.prototype.split=function(e){if(e<=0)return[singlePoint(this.points[0]),this];if(e>=1)return[this,singlePoint(this.points[this.points.length-1])];var t=lerpPoint(this.points[0],this.points[1],e),n=lerpPoint(this.points[1],this.points[2],e),i=lerpPoint(this.points[2],this.points[3],e),s=lerpPoint(t,n,e),a=lerpPoint(n,i,e),o=lerpPoint(s,a,e);return[new PolynomialBezier(this.points[0],t,s,o,!0),new PolynomialBezier(o,a,i,this.points[3],!0)]};function extrema(e,t){var n=e.points[0][t],i=e.points[e.points.length-1][t];if(n>i){var s=i;i=n,n=s}for(var a=quadRoots(3*e.a[t],2*e.b[t],e.c[t]),o=0;o<a.length;o+=1)if(a[o]>0&&a[o]<1){var l=e.point(a[o])[t];l<n?n=l:l>i&&(i=l)}return{min:n,max:i}}PolynomialBezier.prototype.bounds=function(){return{x:extrema(this,0),y:extrema(this,1)}},PolynomialBezier.prototype.boundingBox=function(){var e=this.bounds();return{left:e.x.min,right:e.x.max,top:e.y.min,bottom:e.y.max,width:e.x.max-e.x.min,height:e.y.max-e.y.min,cx:(e.x.max+e.x.min)/2,cy:(e.y.max+e.y.min)/2}};function intersectData(e,t,n){var i=e.boundingBox();return{cx:i.cx,cy:i.cy,width:i.width,height:i.height,bez:e,t:(t+n)/2,t1:t,t2:n}}function splitData(e){var t=e.bez.split(.5);return[intersectData(t[0],e.t1,e.t),intersectData(t[1],e.t,e.t2)]}function boxIntersect(e,t){return Math.abs(e.cx-t.cx)*2<e.width+t.width&&Math.abs(e.cy-t.cy)*2<e.height+t.height}function intersectsImpl(e,t,n,i,s,a){if(boxIntersect(e,t)){if(n>=a||e.width<=i&&e.height<=i&&t.width<=i&&t.height<=i){s.push([e.t,t.t]);return}var o=splitData(e),l=splitData(t);intersectsImpl(o[0],l[0],n+1,i,s,a),intersectsImpl(o[0],l[1],n+1,i,s,a),intersectsImpl(o[1],l[0],n+1,i,s,a),intersectsImpl(o[1],l[1],n+1,i,s,a)}}PolynomialBezier.prototype.intersections=function(e,t,n){t===void 0&&(t=2),n===void 0&&(n=7);var i=[];return intersectsImpl(intersectData(this,0,1),intersectData(e,0,1),0,t,i,n),i},PolynomialBezier.shapeSegment=function(e,t){var n=(t+1)%e.length();return new PolynomialBezier(e.v[t],e.o[t],e.i[n],e.v[n],!0)},PolynomialBezier.shapeSegmentInverted=function(e,t){var n=(t+1)%e.length();return new PolynomialBezier(e.v[n],e.i[n],e.o[t],e.v[t],!0)};function crossProduct(e,t){return[e[1]*t[2]-e[2]*t[1],e[2]*t[0]-e[0]*t[2],e[0]*t[1]-e[1]*t[0]]}function lineIntersection(e,t,n,i){var s=[e[0],e[1],1],a=[t[0],t[1],1],o=[n[0],n[1],1],l=[i[0],i[1],1],c=crossProduct(crossProduct(s,a),crossProduct(o,l));return floatZero(c[2])?null:[c[0]/c[2],c[1]/c[2]]}function polarOffset(e,t,n){return[e[0]+Math.cos(t)*n,e[1]-Math.sin(t)*n]}function pointDistance(e,t){return Math.hypot(e[0]-t[0],e[1]-t[1])}function pointEqual(e,t){return floatEqual(e[0],t[0])&&floatEqual(e[1],t[1])}function ZigZagModifier(){}extendPrototype([ShapeModifier],ZigZagModifier),ZigZagModifier.prototype.initModifierProperties=function(e,t){this.getValue=this.processKeys,this.amplitude=PropertyFactory.getProp(e,t.s,0,null,this),this.frequency=PropertyFactory.getProp(e,t.r,0,null,this),this.pointsType=PropertyFactory.getProp(e,t.pt,0,null,this),this._isAnimated=this.amplitude.effectsSequence.length!==0||this.frequency.effectsSequence.length!==0||this.pointsType.effectsSequence.length!==0};function setPoint(e,t,n,i,s,a,o){var l=n-Math.PI/2,c=n+Math.PI/2,d=t[0]+Math.cos(n)*i*s,u=t[1]-Math.sin(n)*i*s;e.setTripleAt(d,u,d+Math.cos(l)*a,u-Math.sin(l)*a,d+Math.cos(c)*o,u-Math.sin(c)*o,e.length())}function getPerpendicularVector(e,t){var n=[t[0]-e[0],t[1]-e[1]],i=-Math.PI*.5,s=[Math.cos(i)*n[0]-Math.sin(i)*n[1],Math.sin(i)*n[0]+Math.cos(i)*n[1]];return s}function getProjectingAngle(e,t){var n=t===0?e.length()-1:t-1,i=(t+1)%e.length(),s=e.v[n],a=e.v[i],o=getPerpendicularVector(s,a);return Math.atan2(0,1)-Math.atan2(o[1],o[0])}function zigZagCorner(e,t,n,i,s,a,o){var l=getProjectingAngle(t,n),c=t.v[n%t._length],d=t.v[n===0?t._length-1:n-1],u=t.v[(n+1)%t._length],p=a===2?Math.sqrt(Math.pow(c[0]-d[0],2)+Math.pow(c[1]-d[1],2)):0,h=a===2?Math.sqrt(Math.pow(c[0]-u[0],2)+Math.pow(c[1]-u[1],2)):0;setPoint(e,t.v[n%t._length],l,o,i,h/((s+1)*2),p/((s+1)*2))}function zigZagSegment(e,t,n,i,s,a){for(var o=0;o<i;o+=1){var l=(o+1)/(i+1),c=s===2?Math.sqrt(Math.pow(t.points[3][0]-t.points[0][0],2)+Math.pow(t.points[3][1]-t.points[0][1],2)):0,d=t.normalAngle(l),u=t.point(l);setPoint(e,u,d,a,n,c/((i+1)*2),c/((i+1)*2)),a=-a}return a}ZigZagModifier.prototype.processPath=function(e,t,n,i){var s=e._length,a=shapePool.newElement();if(a.c=e.c,e.c||(s-=1),s===0)return a;var o=-1,l=PolynomialBezier.shapeSegment(e,0);zigZagCorner(a,e,0,t,n,i,o);for(var c=0;c<s;c+=1)o=zigZagSegment(a,l,t,n,i,-o),c===s-1&&!e.c?l=null:l=PolynomialBezier.shapeSegment(e,(c+1)%s),zigZagCorner(a,e,c+1,t,n,i,o);return a},ZigZagModifier.prototype.processShapes=function(e){var t,n,i=this.shapes.length,s,a,o=this.amplitude.v,l=Math.max(0,Math.round(this.frequency.v)),c=this.pointsType.v;if(o!==0){var d,u;for(n=0;n<i;n+=1){if(d=this.shapes[n],u=d.localShapeCollection,!(!d.shape._mdf&&!this._mdf&&!e))for(u.releaseShapes(),d.shape._mdf=!0,t=d.shape.paths.shapes,a=d.shape.paths._length,s=0;s<a;s+=1)u.addShape(this.processPath(t[s],o,l,c));d.shape.paths=d.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};function linearOffset(e,t,n){var i=Math.atan2(t[0]-e[0],t[1]-e[1]);return[polarOffset(e,i,n),polarOffset(t,i,n)]}function offsetSegment(e,t){var n,i,s,a,o,l,c;c=linearOffset(e.points[0],e.points[1],t),n=c[0],i=c[1],c=linearOffset(e.points[1],e.points[2],t),s=c[0],a=c[1],c=linearOffset(e.points[2],e.points[3],t),o=c[0],l=c[1];var d=lineIntersection(n,i,s,a);d===null&&(d=i);var u=lineIntersection(o,l,s,a);return u===null&&(u=o),new PolynomialBezier(n,d,u,l)}function joinLines(e,t,n,i,s){var a=t.points[3],o=n.points[0];if(i===3||pointEqual(a,o))return a;if(i===2){var l=-t.tangentAngle(1),c=-n.tangentAngle(0)+Math.PI,d=lineIntersection(a,polarOffset(a,l+Math.PI/2,100),o,polarOffset(o,l+Math.PI/2,100)),u=d?pointDistance(d,a):pointDistance(a,o)/2,p=polarOffset(a,l,2*u*roundCorner);return e.setXYAt(p[0],p[1],"o",e.length()-1),p=polarOffset(o,c,2*u*roundCorner),e.setTripleAt(o[0],o[1],o[0],o[1],p[0],p[1],e.length()),o}var h=pointEqual(a,t.points[2])?t.points[0]:t.points[2],y=pointEqual(o,n.points[1])?n.points[3]:n.points[1],f=lineIntersection(h,a,o,y);return f&&pointDistance(f,a)<s?(e.setTripleAt(f[0],f[1],f[0],f[1],f[0],f[1],e.length()),f):a}function getIntersection(e,t){var n=e.intersections(t);return n.length&&floatEqual(n[0][0],1)&&n.shift(),n.length?n[0]:null}function pruneSegmentIntersection(e,t){var n=e.slice(),i=t.slice(),s=getIntersection(e[e.length-1],t[0]);return s&&(n[e.length-1]=e[e.length-1].split(s[0])[0],i[0]=t[0].split(s[1])[1]),e.length>1&&t.length>1&&(s=getIntersection(e[0],t[t.length-1]),s)?[[e[0].split(s[0])[0]],[t[t.length-1].split(s[1])[1]]]:[n,i]}function pruneIntersections(e){for(var t,n=1;n<e.length;n+=1)t=pruneSegmentIntersection(e[n-1],e[n]),e[n-1]=t[0],e[n]=t[1];return e.length>1&&(t=pruneSegmentIntersection(e[e.length-1],e[0]),e[e.length-1]=t[0],e[0]=t[1]),e}function offsetSegmentSplit(e,t){var n=e.inflectionPoints(),i,s,a,o;if(n.length===0)return[offsetSegment(e,t)];if(n.length===1||floatEqual(n[1],1))return a=e.split(n[0]),i=a[0],s=a[1],[offsetSegment(i,t),offsetSegment(s,t)];a=e.split(n[0]),i=a[0];var l=(n[1]-n[0])/(1-n[0]);return a=a[1].split(l),o=a[0],s=a[1],[offsetSegment(i,t),offsetSegment(o,t),offsetSegment(s,t)]}function OffsetPathModifier(){}extendPrototype([ShapeModifier],OffsetPathModifier),OffsetPathModifier.prototype.initModifierProperties=function(e,t){this.getValue=this.processKeys,this.amount=PropertyFactory.getProp(e,t.a,0,null,this),this.miterLimit=PropertyFactory.getProp(e,t.ml,0,null,this),this.lineJoin=t.lj,this._isAnimated=this.amount.effectsSequence.length!==0},OffsetPathModifier.prototype.processPath=function(e,t,n,i){var s=shapePool.newElement();s.c=e.c;var a=e.length();e.c||(a-=1);var o,l,c,d=[];for(o=0;o<a;o+=1)c=PolynomialBezier.shapeSegment(e,o),d.push(offsetSegmentSplit(c,t));if(!e.c)for(o=a-1;o>=0;o-=1)c=PolynomialBezier.shapeSegmentInverted(e,o),d.push(offsetSegmentSplit(c,t));d=pruneIntersections(d);var u=null,p=null;for(o=0;o<d.length;o+=1){var h=d[o];for(p&&(u=joinLines(s,p,h[0],n,i)),p=h[h.length-1],l=0;l<h.length;l+=1)c=h[l],u&&pointEqual(c.points[0],u)?s.setXYAt(c.points[1][0],c.points[1][1],"o",s.length()-1):s.setTripleAt(c.points[0][0],c.points[0][1],c.points[1][0],c.points[1][1],c.points[0][0],c.points[0][1],s.length()),s.setTripleAt(c.points[3][0],c.points[3][1],c.points[3][0],c.points[3][1],c.points[2][0],c.points[2][1],s.length()),u=c.points[3]}return d.length&&joinLines(s,p,d[0][0],n,i),s},OffsetPathModifier.prototype.processShapes=function(e){var t,n,i=this.shapes.length,s,a,o=this.amount.v,l=this.miterLimit.v,c=this.lineJoin;if(o!==0){var d,u;for(n=0;n<i;n+=1){if(d=this.shapes[n],u=d.localShapeCollection,!(!d.shape._mdf&&!this._mdf&&!e))for(u.releaseShapes(),d.shape._mdf=!0,t=d.shape.paths.shapes,a=d.shape.paths._length,s=0;s<a;s+=1)u.addShape(this.processPath(t[s],o,c,l));d.shape.paths=d.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};function getFontProperties(e){for(var t=e.fStyle?e.fStyle.split(" "):[],n="normal",i="normal",s=t.length,a,o=0;o<s;o+=1)switch(a=t[o].toLowerCase(),a){case"italic":i="italic";break;case"bold":n="700";break;case"black":n="900";break;case"medium":n="500";break;case"regular":case"normal":n="400";break;case"light":case"thin":n="200";break}return{style:i,weight:e.fWeight||n}}var FontManager=(function(){var e=5e3,t={w:0,size:0,shapes:[],data:{shapes:[]}},n=[];n=n.concat([2304,2305,2306,2307,2362,2363,2364,2364,2366,2367,2368,2369,2370,2371,2372,2373,2374,2375,2376,2377,2378,2379,2380,2381,2382,2383,2387,2388,2389,2390,2391,2402,2403]);var i=127988,s=917631,a=917601,o=917626,l=65039,c=8205,d=127462,u=127487,p=["d83cdffb","d83cdffc","d83cdffd","d83cdffe","d83cdfff"];function h(P){var T=P.split(","),x,S=T.length,M=[];for(x=0;x<S;x+=1)T[x]!=="sans-serif"&&T[x]!=="monospace"&&M.push(T[x]);return M.join(",")}function y(P,T){var x=createTag("span");x.setAttribute("aria-hidden",!0),x.style.fontFamily=T;var S=createTag("span");S.innerText="giItT1WQy@!-/#",x.style.position="absolute",x.style.left="-10000px",x.style.top="-10000px",x.style.fontSize="300px",x.style.fontVariant="normal",x.style.fontStyle="normal",x.style.fontWeight="normal",x.style.letterSpacing="0",x.appendChild(S),document.body.appendChild(x);var M=S.offsetWidth;return S.style.fontFamily=h(P)+", "+T,{node:S,w:M,parent:x}}function f(){var P,T=this.fonts.length,x,S,M=T;for(P=0;P<T;P+=1)this.fonts[P].loaded?M-=1:this.fonts[P].fOrigin==="n"||this.fonts[P].origin===0?this.fonts[P].loaded=!0:(x=this.fonts[P].monoCase.node,S=this.fonts[P].monoCase.w,x.offsetWidth!==S?(M-=1,this.fonts[P].loaded=!0):(x=this.fonts[P].sansCase.node,S=this.fonts[P].sansCase.w,x.offsetWidth!==S&&(M-=1,this.fonts[P].loaded=!0)),this.fonts[P].loaded&&(this.fonts[P].sansCase.parent.parentNode.removeChild(this.fonts[P].sansCase.parent),this.fonts[P].monoCase.parent.parentNode.removeChild(this.fonts[P].monoCase.parent)));M!==0&&Date.now()-this.initTime<e?setTimeout(this.checkLoadedFontsBinded,20):setTimeout(this.setIsLoadedBinded,10)}function m(P,T){var x=document.body&&T?"svg":"canvas",S,M=getFontProperties(P);if(x==="svg"){var V=createNS("text");V.style.fontSize="100px",V.setAttribute("font-family",P.fFamily),V.setAttribute("font-style",M.style),V.setAttribute("font-weight",M.weight),V.textContent="1",P.fClass?(V.style.fontFamily="inherit",V.setAttribute("class",P.fClass)):V.style.fontFamily=P.fFamily,T.appendChild(V),S=V}else{var z=new OffscreenCanvas(500,500).getContext("2d");z.font=M.style+" "+M.weight+" 100px "+P.fFamily,S=z}function G(H){return x==="svg"?(S.textContent=H,S.getComputedTextLength()):S.measureText(H).width}return{measureText:G}}function C(P,T){if(!P){this.isLoaded=!0;return}if(this.chars){this.isLoaded=!0,this.fonts=P.list;return}if(!document.body){this.isLoaded=!0,P.list.forEach(function(J){J.helper=m(J),J.cache={}}),this.fonts=P.list;return}var x=P.list,S,M=x.length,V=M;for(S=0;S<M;S+=1){var z=!0,G,H;if(x[S].loaded=!1,x[S].monoCase=y(x[S].fFamily,"monospace"),x[S].sansCase=y(x[S].fFamily,"sans-serif"),!x[S].fPath)x[S].loaded=!0,V-=1;else if(x[S].fOrigin==="p"||x[S].origin===3){if(G=document.querySelectorAll('style[f-forigin="p"][f-family="'+x[S].fFamily+'"], style[f-origin="3"][f-family="'+x[S].fFamily+'"]'),G.length>0&&(z=!1),z){var W=createTag("style");W.setAttribute("f-forigin",x[S].fOrigin),W.setAttribute("f-origin",x[S].origin),W.setAttribute("f-family",x[S].fFamily),W.type="text/css",W.innerText="@font-face {font-family: "+x[S].fFamily+"; font-style: normal; src: url('"+x[S].fPath+"');}",T.appendChild(W)}}else if(x[S].fOrigin==="g"||x[S].origin===1){for(G=document.querySelectorAll('link[f-forigin="g"], link[f-origin="1"]'),H=0;H<G.length;H+=1)G[H].href.indexOf(x[S].fPath)!==-1&&(z=!1);if(z){var q=createTag("link");q.setAttribute("f-forigin",x[S].fOrigin),q.setAttribute("f-origin",x[S].origin),q.type="text/css",q.rel="stylesheet",q.href=x[S].fPath,document.body.appendChild(q)}}else if(x[S].fOrigin==="t"||x[S].origin===2){for(G=document.querySelectorAll('script[f-forigin="t"], script[f-origin="2"]'),H=0;H<G.length;H+=1)x[S].fPath===G[H].src&&(z=!1);if(z){var U=createTag("link");U.setAttribute("f-forigin",x[S].fOrigin),U.setAttribute("f-origin",x[S].origin),U.setAttribute("rel","stylesheet"),U.setAttribute("href",x[S].fPath),T.appendChild(U)}}x[S].helper=m(x[S],T),x[S].cache={},this.fonts.push(x[S])}V===0?this.isLoaded=!0:setTimeout(this.checkLoadedFonts.bind(this),100)}function g(P){if(P){this.chars||(this.chars=[]);var T,x=P.length,S,M=this.chars.length,V;for(T=0;T<x;T+=1){for(S=0,V=!1;S<M;)this.chars[S].style===P[T].style&&this.chars[S].fFamily===P[T].fFamily&&this.chars[S].ch===P[T].ch&&(V=!0),S+=1;V||(this.chars.push(P[T]),M+=1)}}}function b(P,T,x){for(var S=0,M=this.chars.length;S<M;){if(this.chars[S].ch===P&&this.chars[S].style===T&&this.chars[S].fFamily===x)return this.chars[S];S+=1}return(typeof P=="string"&&P.charCodeAt(0)!==13||!P)&&console&&console.warn&&!this._warned&&(this._warned=!0,console.warn("Missing character from exported characters list: ",P,T,x)),t}function v(P,T,x){var S=this.getFontByName(T),M=P;if(!S.cache[M]){var V=S.helper;if(P===" "){var z=V.measureText("|"+P+"|"),G=V.measureText("||");S.cache[M]=(z-G)/100}else S.cache[M]=V.measureText(P)/100}return S.cache[M]*x}function N(P){for(var T=0,x=this.fonts.length;T<x;){if(this.fonts[T].fName===P)return this.fonts[T];T+=1}return this.fonts[0]}function w(P){var T=0,x=P.charCodeAt(0);if(x>=55296&&x<=56319){var S=P.charCodeAt(1);S>=56320&&S<=57343&&(T=(x-55296)*1024+S-56320+65536)}return T}function E(P,T){var x=P.toString(16)+T.toString(16);return p.indexOf(x)!==-1}function _(P){return P===c}function k(P){return P===l}function A(P){var T=w(P);return T>=d&&T<=u}function F(P){return A(P.substr(0,2))&&A(P.substr(2,2))}function B(P){return n.indexOf(P)!==-1}function I(P,T){var x=w(P.substr(T,2));if(x!==i)return!1;var S=0;for(T+=2;S<5;){if(x=w(P.substr(T,2)),x<a||x>o)return!1;S+=1,T+=2}return w(P.substr(T,2))===s}function D(){this.isLoaded=!0}var L=function(){this.fonts=[],this.chars=null,this.typekitLoaded=0,this.isLoaded=!1,this._warned=!1,this.initTime=Date.now(),this.setIsLoadedBinded=this.setIsLoaded.bind(this),this.checkLoadedFontsBinded=this.checkLoadedFonts.bind(this)};L.isModifier=E,L.isZeroWidthJoiner=_,L.isFlagEmoji=F,L.isRegionalCode=A,L.isCombinedCharacter=B,L.isRegionalFlag=I,L.isVariationSelector=k,L.BLACK_FLAG_CODE_POINT=i;var $={addChars:g,addFonts:C,getCharData:b,getFontByName:N,measureText:v,checkLoadedFonts:f,setIsLoaded:D};return L.prototype=$,L})();function SlotManager(e){this.animationData=e}SlotManager.prototype.getProp=function(e){return this.animationData.slots&&this.animationData.slots[e.sid]?Object.assign(e,this.animationData.slots[e.sid].p):e};function slotFactory(e){return new SlotManager(e)}function RenderableElement(){}RenderableElement.prototype={initRenderable:function(){this.isInRange=!1,this.hidden=!1,this.isTransparent=!1,this.renderableComponents=[]},addRenderableComponent:function(t){this.renderableComponents.indexOf(t)===-1&&this.renderableComponents.push(t)},removeRenderableComponent:function(t){this.renderableComponents.indexOf(t)!==-1&&this.renderableComponents.splice(this.renderableComponents.indexOf(t),1)},prepareRenderableFrame:function(t){this.checkLayerLimits(t)},checkTransparency:function(){this.finalTransform.mProp.o.v<=0?!this.isTransparent&&this.globalData.renderConfig.hideOnTransparent&&(this.isTransparent=!0,this.hide()):this.isTransparent&&(this.isTransparent=!1,this.show())},checkLayerLimits:function(t){this.data.ip-this.data.st<=t&&this.data.op-this.data.st>t?this.isInRange!==!0&&(this.globalData._mdf=!0,this._mdf=!0,this.isInRange=!0,this.show()):this.isInRange!==!1&&(this.globalData._mdf=!0,this.isInRange=!1,this.hide())},renderRenderable:function(){var t,n=this.renderableComponents.length;for(t=0;t<n;t+=1)this.renderableComponents[t].renderFrame(this._isFirstFrame)},sourceRectAtTime:function(){return{top:0,left:0,width:100,height:100}},getLayerSize:function(){return this.data.ty===5?{w:this.data.textData.width,h:this.data.textData.height}:{w:this.data.width,h:this.data.height}}};var getBlendMode=(function(){var e={0:"source-over",1:"multiply",2:"screen",3:"overlay",4:"darken",5:"lighten",6:"color-dodge",7:"color-burn",8:"hard-light",9:"soft-light",10:"difference",11:"exclusion",12:"hue",13:"saturation",14:"color",15:"luminosity"};return function(t){return e[t]||""}})();function SliderEffect(e,t,n){this.p=PropertyFactory.getProp(t,e.v,0,0,n)}function AngleEffect(e,t,n){this.p=PropertyFactory.getProp(t,e.v,0,0,n)}function ColorEffect(e,t,n){this.p=PropertyFactory.getProp(t,e.v,1,0,n)}function PointEffect(e,t,n){this.p=PropertyFactory.getProp(t,e.v,1,0,n)}function LayerIndexEffect(e,t,n){this.p=PropertyFactory.getProp(t,e.v,0,0,n)}function MaskIndexEffect(e,t,n){this.p=PropertyFactory.getProp(t,e.v,0,0,n)}function CheckboxEffect(e,t,n){this.p=PropertyFactory.getProp(t,e.v,0,0,n)}function NoValueEffect(){this.p={}}function EffectsManager(e,t){var n=e.ef||[];this.effectElements=[];var i,s=n.length,a;for(i=0;i<s;i+=1)a=new GroupEffect(n[i],t),this.effectElements.push(a)}function GroupEffect(e,t){this.init(e,t)}extendPrototype([DynamicPropertyContainer],GroupEffect),GroupEffect.prototype.getValue=GroupEffect.prototype.iterateDynamicProperties,GroupEffect.prototype.init=function(e,t){this.data=e,this.effectElements=[],this.initDynamicPropertyContainer(t);var n,i=this.data.ef.length,s,a=this.data.ef;for(n=0;n<i;n+=1){switch(s=null,a[n].ty){case 0:s=new SliderEffect(a[n],t,this);break;case 1:s=new AngleEffect(a[n],t,this);break;case 2:s=new ColorEffect(a[n],t,this);break;case 3:s=new PointEffect(a[n],t,this);break;case 4:case 7:s=new CheckboxEffect(a[n],t,this);break;case 10:s=new LayerIndexEffect(a[n],t,this);break;case 11:s=new MaskIndexEffect(a[n],t,this);break;case 5:s=new EffectsManager(a[n],t);break;default:s=new NoValueEffect(a[n]);break}s&&this.effectElements.push(s)}};function BaseElement(){}BaseElement.prototype={checkMasks:function(){if(!this.data.hasMask)return!1;for(var t=0,n=this.data.masksProperties.length;t<n;){if(this.data.masksProperties[t].mode!=="n"&&this.data.masksProperties[t].cl!==!1)return!0;t+=1}return!1},initExpressions:function(){var t=getExpressionInterfaces();if(t){var n=t("layer"),i=t("effects"),s=t("shape"),a=t("text"),o=t("comp");this.layerInterface=n(this),this.data.hasMask&&this.maskManager&&this.layerInterface.registerMaskInterface(this.maskManager);var l=i.createEffectsInterface(this,this.layerInterface);this.layerInterface.registerEffectsInterface(l),this.data.ty===0||this.data.xt?this.compInterface=o(this):this.data.ty===4?(this.layerInterface.shapeInterface=s(this.shapesData,this.itemsData,this.layerInterface),this.layerInterface.content=this.layerInterface.shapeInterface):this.data.ty===5&&(this.layerInterface.textInterface=a(this),this.layerInterface.text=this.layerInterface.textInterface)}},setBlendMode:function(){var t=getBlendMode(this.data.bm),n=this.baseElement||this.layerElement;n.style["mix-blend-mode"]=t},initBaseData:function(t,n,i){this.globalData=n,this.comp=i,this.data=t,this.layerId=createElementID(),this.data.sr||(this.data.sr=1),this.effectsManager=new EffectsManager(this.data,this,this.dynamicProperties)},getType:function(){return this.type},sourceRectAtTime:function(){}};function FrameElement(){}FrameElement.prototype={initFrame:function(){this._isFirstFrame=!1,this.dynamicProperties=[],this._mdf=!1},prepareProperties:function(t,n){var i,s=this.dynamicProperties.length;for(i=0;i<s;i+=1)(n||this._isParent&&this.dynamicProperties[i].propType==="transform")&&(this.dynamicProperties[i].getValue(),this.dynamicProperties[i]._mdf&&(this.globalData._mdf=!0,this._mdf=!0))},addDynamicProperty:function(t){this.dynamicProperties.indexOf(t)===-1&&this.dynamicProperties.push(t)}};function FootageElement(e,t,n){this.initFrame(),this.initRenderable(),this.assetData=t.getAssetData(e.refId),this.footageData=t.imageLoader.getAsset(this.assetData),this.initBaseData(e,t,n)}FootageElement.prototype.prepareFrame=function(){},extendPrototype([RenderableElement,BaseElement,FrameElement],FootageElement),FootageElement.prototype.getBaseElement=function(){return null},FootageElement.prototype.renderFrame=function(){},FootageElement.prototype.destroy=function(){},FootageElement.prototype.initExpressions=function(){var e=getExpressionInterfaces();if(e){var t=e("footage");this.layerInterface=t(this)}},FootageElement.prototype.getFootageData=function(){return this.footageData};function AudioElement(e,t,n){this.initFrame(),this.initRenderable(),this.assetData=t.getAssetData(e.refId),this.initBaseData(e,t,n),this._isPlaying=!1,this._canPlay=!1;var i=this.globalData.getAssetsPath(this.assetData);this.audio=this.globalData.audioController.createAudio(i),this._currentTime=0,this.globalData.audioController.addAudio(this),this._volumeMultiplier=1,this._volume=1,this._previousVolume=null,this.tm=e.tm?PropertyFactory.getProp(this,e.tm,0,t.frameRate,this):{_placeholder:!0},this.lv=PropertyFactory.getProp(this,e.au&&e.au.lv?e.au.lv:{k:[100]},1,.01,this)}AudioElement.prototype.prepareFrame=function(e){if(this.prepareRenderableFrame(e,!0),this.prepareProperties(e,!0),this.tm._placeholder)this._currentTime=e/this.data.sr;else{var t=this.tm.v;this._currentTime=t}this._volume=this.lv.v[0];var n=this._volume*this._volumeMultiplier;this._previousVolume!==n&&(this._previousVolume=n,this.audio.volume(n))},extendPrototype([RenderableElement,BaseElement,FrameElement],AudioElement),AudioElement.prototype.renderFrame=function(){this.isInRange&&this._canPlay&&(this._isPlaying?(!this.audio.playing()||Math.abs(this._currentTime/this.globalData.frameRate-this.audio.seek())>.1)&&this.audio.seek(this._currentTime/this.globalData.frameRate):(this.audio.play(),this.audio.seek(this._currentTime/this.globalData.frameRate),this._isPlaying=!0))},AudioElement.prototype.show=function(){},AudioElement.prototype.hide=function(){this.audio.pause(),this._isPlaying=!1},AudioElement.prototype.pause=function(){this.audio.pause(),this._isPlaying=!1,this._canPlay=!1},AudioElement.prototype.resume=function(){this._canPlay=!0},AudioElement.prototype.setRate=function(e){this.audio.rate(e)},AudioElement.prototype.volume=function(e){this._volumeMultiplier=e,this._previousVolume=e*this._volume,this.audio.volume(this._previousVolume)},AudioElement.prototype.getBaseElement=function(){return null},AudioElement.prototype.destroy=function(){},AudioElement.prototype.sourceRectAtTime=function(){},AudioElement.prototype.initExpressions=function(){};function BaseRenderer(){}BaseRenderer.prototype.checkLayers=function(e){var t,n=this.layers.length,i;for(this.completeLayers=!0,t=n-1;t>=0;t-=1)this.elements[t]||(i=this.layers[t],i.ip-i.st<=e-this.layers[t].st&&i.op-i.st>e-this.layers[t].st&&this.buildItem(t)),this.completeLayers=this.elements[t]?this.completeLayers:!1;this.checkPendingElements()},BaseRenderer.prototype.createItem=function(e){switch(e.ty){case 2:return this.createImage(e);case 0:return this.createComp(e);case 1:return this.createSolid(e);case 3:return this.createNull(e);case 4:return this.createShape(e);case 5:return this.createText(e);case 6:return this.createAudio(e);case 13:return this.createCamera(e);case 15:return this.createFootage(e);default:return this.createNull(e)}},BaseRenderer.prototype.createCamera=function(){throw new Error("You're using a 3d camera. Try the html renderer.")},BaseRenderer.prototype.createAudio=function(e){return new AudioElement(e,this.globalData,this)},BaseRenderer.prototype.createFootage=function(e){return new FootageElement(e,this.globalData,this)},BaseRenderer.prototype.buildAllItems=function(){var e,t=this.layers.length;for(e=0;e<t;e+=1)this.buildItem(e);this.checkPendingElements()},BaseRenderer.prototype.includeLayers=function(e){this.completeLayers=!1;var t,n=e.length,i,s=this.layers.length;for(t=0;t<n;t+=1)for(i=0;i<s;){if(this.layers[i].id===e[t].id){this.layers[i]=e[t];break}i+=1}},BaseRenderer.prototype.setProjectInterface=function(e){this.globalData.projectInterface=e},BaseRenderer.prototype.initItems=function(){this.globalData.progressiveLoad||this.buildAllItems()},BaseRenderer.prototype.buildElementParenting=function(e,t,n){for(var i=this.elements,s=this.layers,a=0,o=s.length;a<o;)s[a].ind==t&&(!i[a]||i[a]===!0?(this.buildItem(a),this.addPendingElement(e)):(n.push(i[a]),i[a].setAsParent(),s[a].parent!==void 0?this.buildElementParenting(e,s[a].parent,n):e.setHierarchy(n))),a+=1},BaseRenderer.prototype.addPendingElement=function(e){this.pendingElements.push(e)},BaseRenderer.prototype.searchExtraCompositions=function(e){var t,n=e.length;for(t=0;t<n;t+=1)if(e[t].xt){var i=this.createComp(e[t]);i.initExpressions(),this.globalData.projectInterface.registerComposition(i)}},BaseRenderer.prototype.getElementById=function(e){var t,n=this.elements.length;for(t=0;t<n;t+=1)if(this.elements[t].data.ind===e)return this.elements[t];return null},BaseRenderer.prototype.getElementByPath=function(e){var t=e.shift(),n;if(typeof t=="number")n=this.elements[t];else{var i,s=this.elements.length;for(i=0;i<s;i+=1)if(this.elements[i].data.nm===t){n=this.elements[i];break}}return e.length===0?n:n.getElementByPath(e)},BaseRenderer.prototype.setupGlobalData=function(e,t){this.globalData.fontManager=new FontManager,this.globalData.slotManager=slotFactory(e),this.globalData.fontManager.addChars(e.chars),this.globalData.fontManager.addFonts(e.fonts,t),this.globalData.getAssetData=this.animationItem.getAssetData.bind(this.animationItem),this.globalData.getAssetsPath=this.animationItem.getAssetsPath.bind(this.animationItem),this.globalData.imageLoader=this.animationItem.imagePreloader,this.globalData.audioController=this.animationItem.audioController,this.globalData.frameId=0,this.globalData.frameRate=e.fr,this.globalData.nm=e.nm,this.globalData.compSize={w:e.w,h:e.h}};var effectTypes={TRANSFORM_EFFECT:"transformEFfect"};function TransformElement(){}TransformElement.prototype={initTransform:function(){var t=new Matrix;this.finalTransform={mProp:this.data.ks?TransformPropertyFactory.getTransformProperty(this,this.data.ks,this):{o:0},_matMdf:!1,_localMatMdf:!1,_opMdf:!1,mat:t,localMat:t,localOpacity:1},this.data.ao&&(this.finalTransform.mProp.autoOriented=!0),this.data.ty},renderTransform:function(){if(this.finalTransform._opMdf=this.finalTransform.mProp.o._mdf||this._isFirstFrame,this.finalTransform._matMdf=this.finalTransform.mProp._mdf||this._isFirstFrame,this.hierarchy){var t,n=this.finalTransform.mat,i=0,s=this.hierarchy.length;if(!this.finalTransform._matMdf)for(;i<s;){if(this.hierarchy[i].finalTransform.mProp._mdf){this.finalTransform._matMdf=!0;break}i+=1}if(this.finalTransform._matMdf)for(t=this.finalTransform.mProp.v.props,n.cloneFromProps(t),i=0;i<s;i+=1)n.multiply(this.hierarchy[i].finalTransform.mProp.v)}(!this.localTransforms||this.finalTransform._matMdf)&&(this.finalTransform._localMatMdf=this.finalTransform._matMdf),this.finalTransform._opMdf&&(this.finalTransform.localOpacity=this.finalTransform.mProp.o.v)},renderLocalTransform:function(){if(this.localTransforms){var t=0,n=this.localTransforms.length;if(this.finalTransform._localMatMdf=this.finalTransform._matMdf,!this.finalTransform._localMatMdf||!this.finalTransform._opMdf)for(;t<n;)this.localTransforms[t]._mdf&&(this.finalTransform._localMatMdf=!0),this.localTransforms[t]._opMdf&&!this.finalTransform._opMdf&&(this.finalTransform.localOpacity=this.finalTransform.mProp.o.v,this.finalTransform._opMdf=!0),t+=1;if(this.finalTransform._localMatMdf){var i=this.finalTransform.localMat;for(this.localTransforms[0].matrix.clone(i),t=1;t<n;t+=1){var s=this.localTransforms[t].matrix;i.multiply(s)}i.multiply(this.finalTransform.mat)}if(this.finalTransform._opMdf){var a=this.finalTransform.localOpacity;for(t=0;t<n;t+=1)a*=this.localTransforms[t].opacity*.01;this.finalTransform.localOpacity=a}}},searchEffectTransforms:function(){if(this.renderableEffectsManager){var t=this.renderableEffectsManager.getEffects(effectTypes.TRANSFORM_EFFECT);if(t.length){this.localTransforms=[],this.finalTransform.localMat=new Matrix;var n=0,i=t.length;for(n=0;n<i;n+=1)this.localTransforms.push(t[n])}}},globalToLocal:function(t){var n=[];n.push(this.finalTransform);for(var i=!0,s=this.comp;i;)s.finalTransform?(s.data.hasMask&&n.splice(0,0,s.finalTransform),s=s.comp):i=!1;var a,o=n.length,l;for(a=0;a<o;a+=1)l=n[a].mat.applyToPointArray(0,0,0),t=[t[0]-l[0],t[1]-l[1],0];return t},mHelper:new Matrix};function MaskElement(e,t,n){this.data=e,this.element=t,this.globalData=n,this.storedData=[],this.masksProperties=this.data.masksProperties||[],this.maskElement=null;var i=this.globalData.defs,s,a=this.masksProperties?this.masksProperties.length:0;this.viewData=createSizedArray(a),this.solidPath="";var o,l=this.masksProperties,c=0,d=[],u,p,h=createElementID(),y,f,m,C,g="clipPath",b="clip-path";for(s=0;s<a;s+=1)if((l[s].mode!=="a"&&l[s].mode!=="n"||l[s].inv||l[s].o.k!==100||l[s].o.x)&&(g="mask",b="mask"),(l[s].mode==="s"||l[s].mode==="i")&&c===0?(y=createNS("rect"),y.setAttribute("fill","#ffffff"),y.setAttribute("width",this.element.comp.data.w||0),y.setAttribute("height",this.element.comp.data.h||0),d.push(y)):y=null,o=createNS("path"),l[s].mode==="n")this.viewData[s]={op:PropertyFactory.getProp(this.element,l[s].o,0,.01,this.element),prop:ShapePropertyFactory.getShapeProp(this.element,l[s],3),elem:o,lastPath:""},i.appendChild(o);else{c+=1,o.setAttribute("fill",l[s].mode==="s"?"#000000":"#ffffff"),o.setAttribute("clip-rule","nonzero");var v;if(l[s].x.k!==0?(g="mask",b="mask",C=PropertyFactory.getProp(this.element,l[s].x,0,null,this.element),v=createElementID(),f=createNS("filter"),f.setAttribute("id",v),m=createNS("feMorphology"),m.setAttribute("operator","erode"),m.setAttribute("in","SourceGraphic"),m.setAttribute("radius","0"),f.appendChild(m),i.appendChild(f),o.setAttribute("stroke",l[s].mode==="s"?"#000000":"#ffffff")):(m=null,C=null),this.storedData[s]={elem:o,x:C,expan:m,lastPath:"",lastOperator:"",filterId:v,lastRadius:0},l[s].mode==="i"){p=d.length;var N=createNS("g");for(u=0;u<p;u+=1)N.appendChild(d[u]);var w=createNS("mask");w.setAttribute("mask-type","alpha"),w.setAttribute("id",h+"_"+c),w.appendChild(o),i.appendChild(w),N.setAttribute("mask","url("+getLocationHref()+"#"+h+"_"+c+")"),d.length=0,d.push(N)}else d.push(o);l[s].inv&&!this.solidPath&&(this.solidPath=this.createLayerSolidPath()),this.viewData[s]={elem:o,lastPath:"",op:PropertyFactory.getProp(this.element,l[s].o,0,.01,this.element),prop:ShapePropertyFactory.getShapeProp(this.element,l[s],3),invRect:y},this.viewData[s].prop.k||this.drawPath(l[s],this.viewData[s].prop.v,this.viewData[s])}for(this.maskElement=createNS(g),a=d.length,s=0;s<a;s+=1)this.maskElement.appendChild(d[s]);c>0&&(this.maskElement.setAttribute("id",h),this.element.maskedElement.setAttribute(b,"url("+getLocationHref()+"#"+h+")"),i.appendChild(this.maskElement)),this.viewData.length&&this.element.addRenderableComponent(this)}MaskElement.prototype.getMaskProperty=function(e){return this.viewData[e].prop},MaskElement.prototype.renderFrame=function(e){var t=this.element.finalTransform.mat,n,i=this.masksProperties.length;for(n=0;n<i;n+=1)if((this.viewData[n].prop._mdf||e)&&this.drawPath(this.masksProperties[n],this.viewData[n].prop.v,this.viewData[n]),(this.viewData[n].op._mdf||e)&&this.viewData[n].elem.setAttribute("fill-opacity",this.viewData[n].op.v),this.masksProperties[n].mode!=="n"&&(this.viewData[n].invRect&&(this.element.finalTransform.mProp._mdf||e)&&this.viewData[n].invRect.setAttribute("transform",t.getInverseMatrix().to2dCSS()),this.storedData[n].x&&(this.storedData[n].x._mdf||e))){var s=this.storedData[n].expan;this.storedData[n].x.v<0?(this.storedData[n].lastOperator!=="erode"&&(this.storedData[n].lastOperator="erode",this.storedData[n].elem.setAttribute("filter","url("+getLocationHref()+"#"+this.storedData[n].filterId+")")),s.setAttribute("radius",-this.storedData[n].x.v)):(this.storedData[n].lastOperator!=="dilate"&&(this.storedData[n].lastOperator="dilate",this.storedData[n].elem.setAttribute("filter",null)),this.storedData[n].elem.setAttribute("stroke-width",this.storedData[n].x.v*2))}},MaskElement.prototype.getMaskelement=function(){return this.maskElement},MaskElement.prototype.createLayerSolidPath=function(){var e="M0,0 ";return e+=" h"+this.globalData.compSize.w,e+=" v"+this.globalData.compSize.h,e+=" h-"+this.globalData.compSize.w,e+=" v-"+this.globalData.compSize.h+" ",e},MaskElement.prototype.drawPath=function(e,t,n){var i=" M"+t.v[0][0]+","+t.v[0][1],s,a;for(a=t._length,s=1;s<a;s+=1)i+=" C"+t.o[s-1][0]+","+t.o[s-1][1]+" "+t.i[s][0]+","+t.i[s][1]+" "+t.v[s][0]+","+t.v[s][1];if(t.c&&a>1&&(i+=" C"+t.o[s-1][0]+","+t.o[s-1][1]+" "+t.i[0][0]+","+t.i[0][1]+" "+t.v[0][0]+","+t.v[0][1]),n.lastPath!==i){var o="";n.elem&&(t.c&&(o=e.inv?this.solidPath+i:i),n.elem.setAttribute("d",o)),n.lastPath=i}},MaskElement.prototype.destroy=function(){this.element=null,this.globalData=null,this.maskElement=null,this.data=null,this.masksProperties=null};var filtersFactory=(function(){var e={};e.createFilter=t,e.createAlphaToLuminanceFilter=n;function t(i,s){var a=createNS("filter");return a.setAttribute("id",i),s!==!0&&(a.setAttribute("filterUnits","objectBoundingBox"),a.setAttribute("x","0%"),a.setAttribute("y","0%"),a.setAttribute("width","100%"),a.setAttribute("height","100%")),a}function n(){var i=createNS("feColorMatrix");return i.setAttribute("type","matrix"),i.setAttribute("color-interpolation-filters","sRGB"),i.setAttribute("values","0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 1"),i}return e})(),featureSupport=(function(){var e={maskType:!0,svgLumaHidden:!0,offscreenCanvas:typeof OffscreenCanvas<"u"};return(/MSIE 10/i.test(navigator.userAgent)||/MSIE 9/i.test(navigator.userAgent)||/rv:11.0/i.test(navigator.userAgent)||/Edge\/\d./i.test(navigator.userAgent))&&(e.maskType=!1),/firefox/i.test(navigator.userAgent)&&(e.svgLumaHidden=!1),e})(),registeredEffects$1={},idPrefix="filter_result_";function SVGEffects(e){var t,n="SourceGraphic",i=e.data.ef?e.data.ef.length:0,s=createElementID(),a=filtersFactory.createFilter(s,!0),o=0;this.filters=[];var l;for(t=0;t<i;t+=1){l=null;var c=e.data.ef[t].ty;if(registeredEffects$1[c]){var d=registeredEffects$1[c].effect;l=new d(a,e.effectsManager.effectElements[t],e,idPrefix+o,n),n=idPrefix+o,registeredEffects$1[c].countsAsEffect&&(o+=1)}l&&this.filters.push(l)}o&&(e.globalData.defs.appendChild(a),e.layerElement.setAttribute("filter","url("+getLocationHref()+"#"+s+")")),this.filters.length&&e.addRenderableComponent(this)}SVGEffects.prototype.renderFrame=function(e){var t,n=this.filters.length;for(t=0;t<n;t+=1)this.filters[t].renderFrame(e)},SVGEffects.prototype.getEffects=function(e){var t,n=this.filters.length,i=[];for(t=0;t<n;t+=1)this.filters[t].type===e&&i.push(this.filters[t]);return i};function registerEffect$1(e,t,n){registeredEffects$1[e]={effect:t,countsAsEffect:n}}function SVGBaseElement(){}SVGBaseElement.prototype={initRendererElement:function(){this.layerElement=createNS("g")},createContainerElements:function(){this.matteElement=createNS("g"),this.transformedElement=this.layerElement,this.maskedElement=this.layerElement,this._sizeChanged=!1;var t=null;if(this.data.td){this.matteMasks={};var n=createNS("g");n.setAttribute("id",this.layerId),n.appendChild(this.layerElement),t=n,this.globalData.defs.appendChild(n)}else this.data.tt?(this.matteElement.appendChild(this.layerElement),t=this.matteElement,this.baseElement=this.matteElement):this.baseElement=this.layerElement;if(this.data.ln&&this.layerElement.setAttribute("id",this.data.ln),this.data.cl&&this.layerElement.setAttribute("class",this.data.cl),this.data.ty===0&&!this.data.hd){var i=createNS("clipPath"),s=createNS("path");s.setAttribute("d","M0,0 L"+this.data.w+",0 L"+this.data.w+","+this.data.h+" L0,"+this.data.h+"z");var a=createElementID();if(i.setAttribute("id",a),i.appendChild(s),this.globalData.defs.appendChild(i),this.checkMasks()){var o=createNS("g");o.setAttribute("clip-path","url("+getLocationHref()+"#"+a+")"),o.appendChild(this.layerElement),this.transformedElement=o,t?t.appendChild(this.transformedElement):this.baseElement=this.transformedElement}else this.layerElement.setAttribute("clip-path","url("+getLocationHref()+"#"+a+")")}this.data.bm!==0&&this.setBlendMode()},renderElement:function(){this.finalTransform._localMatMdf&&this.transformedElement.setAttribute("transform",this.finalTransform.localMat.to2dCSS()),this.finalTransform._opMdf&&this.transformedElement.setAttribute("opacity",this.finalTransform.localOpacity)},destroyBaseElement:function(){this.layerElement=null,this.matteElement=null,this.maskManager.destroy()},getBaseElement:function(){return this.data.hd?null:this.baseElement},createRenderableComponents:function(){this.maskManager=new MaskElement(this.data,this,this.globalData),this.renderableEffectsManager=new SVGEffects(this),this.searchEffectTransforms()},getMatte:function(t){if(this.matteMasks||(this.matteMasks={}),!this.matteMasks[t]){var n=this.layerId+"_"+t,i,s,a,o;if(t===1||t===3){var l=createNS("mask");l.setAttribute("id",n),l.setAttribute("mask-type",t===3?"luminance":"alpha"),a=createNS("use"),a.setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),l.appendChild(a),this.globalData.defs.appendChild(l),!featureSupport.maskType&&t===1&&(l.setAttribute("mask-type","luminance"),i=createElementID(),s=filtersFactory.createFilter(i),this.globalData.defs.appendChild(s),s.appendChild(filtersFactory.createAlphaToLuminanceFilter()),o=createNS("g"),o.appendChild(a),l.appendChild(o),o.setAttribute("filter","url("+getLocationHref()+"#"+i+")"))}else if(t===2){var c=createNS("mask");c.setAttribute("id",n),c.setAttribute("mask-type","alpha");var d=createNS("g");c.appendChild(d),i=createElementID(),s=filtersFactory.createFilter(i);var u=createNS("feComponentTransfer");u.setAttribute("in","SourceGraphic"),s.appendChild(u);var p=createNS("feFuncA");p.setAttribute("type","table"),p.setAttribute("tableValues","1.0 0.0"),u.appendChild(p),this.globalData.defs.appendChild(s);var h=createNS("rect");h.setAttribute("width",this.comp.data.w),h.setAttribute("height",this.comp.data.h),h.setAttribute("x","0"),h.setAttribute("y","0"),h.setAttribute("fill","#ffffff"),h.setAttribute("opacity","0"),d.setAttribute("filter","url("+getLocationHref()+"#"+i+")"),d.appendChild(h),a=createNS("use"),a.setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),d.appendChild(a),featureSupport.maskType||(c.setAttribute("mask-type","luminance"),s.appendChild(filtersFactory.createAlphaToLuminanceFilter()),o=createNS("g"),d.appendChild(h),o.appendChild(this.layerElement),d.appendChild(o)),this.globalData.defs.appendChild(c)}this.matteMasks[t]=n}return this.matteMasks[t]},setMatte:function(t){this.matteElement&&this.matteElement.setAttribute("mask","url("+getLocationHref()+"#"+t+")")}};function HierarchyElement(){}HierarchyElement.prototype={initHierarchy:function(){this.hierarchy=[],this._isParent=!1,this.checkParenting()},setHierarchy:function(t){this.hierarchy=t},setAsParent:function(){this._isParent=!0},checkParenting:function(){this.data.parent!==void 0&&this.comp.buildElementParenting(this,this.data.parent,[])}};function RenderableDOMElement(){}(function(){var e={initElement:function(n,i,s){this.initFrame(),this.initBaseData(n,i,s),this.initTransform(n,i,s),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.createContent(),this.hide()},hide:function(){if(!this.hidden&&(!this.isInRange||this.isTransparent)){var n=this.baseElement||this.layerElement;n.style.display="none",this.hidden=!0}},show:function(){if(this.isInRange&&!this.isTransparent){if(!this.data.hd){var n=this.baseElement||this.layerElement;n.style.display="block"}this.hidden=!1,this._isFirstFrame=!0}},renderFrame:function(){this.data.hd||this.hidden||(this.renderTransform(),this.renderRenderable(),this.renderLocalTransform(),this.renderElement(),this.renderInnerContent(),this._isFirstFrame&&(this._isFirstFrame=!1))},renderInnerContent:function(){},prepareFrame:function(n){this._mdf=!1,this.prepareRenderableFrame(n),this.prepareProperties(n,this.isInRange),this.checkTransparency()},destroy:function(){this.innerElem=null,this.destroyBaseElement()}};extendPrototype([RenderableElement,createProxyFunction(e)],RenderableDOMElement)})();function IImageElement(e,t,n){this.assetData=t.getAssetData(e.refId),this.assetData&&this.assetData.sid&&(this.assetData=t.slotManager.getProp(this.assetData)),this.initElement(e,t,n),this.sourceRect={top:0,left:0,width:this.assetData.w,height:this.assetData.h}}extendPrototype([BaseElement,TransformElement,SVGBaseElement,HierarchyElement,FrameElement,RenderableDOMElement],IImageElement),IImageElement.prototype.createContent=function(){var e=this.globalData.getAssetsPath(this.assetData);this.innerElem=createNS("image"),this.innerElem.setAttribute("width",this.assetData.w+"px"),this.innerElem.setAttribute("height",this.assetData.h+"px"),this.innerElem.setAttribute("preserveAspectRatio",this.assetData.pr||this.globalData.renderConfig.imagePreserveAspectRatio),this.innerElem.setAttributeNS("http://www.w3.org/1999/xlink","href",e),this.layerElement.appendChild(this.innerElem)},IImageElement.prototype.sourceRectAtTime=function(){return this.sourceRect};function ProcessedElement(e,t){this.elem=e,this.pos=t}function IShapeElement(){}IShapeElement.prototype={addShapeToModifiers:function(t){var n,i=this.shapeModifiers.length;for(n=0;n<i;n+=1)this.shapeModifiers[n].addShape(t)},isShapeInAnimatedModifiers:function(t){for(var n=0,i=this.shapeModifiers.length;n<i;)if(this.shapeModifiers[n].isAnimatedWithShape(t))return!0;return!1},renderModifiers:function(){if(this.shapeModifiers.length){var t,n=this.shapes.length;for(t=0;t<n;t+=1)this.shapes[t].sh.reset();n=this.shapeModifiers.length;var i;for(t=n-1;t>=0&&(i=this.shapeModifiers[t].processShapes(this._isFirstFrame),!i);t-=1);}},searchProcessedElement:function(t){for(var n=this.processedElements,i=0,s=n.length;i<s;){if(n[i].elem===t)return n[i].pos;i+=1}return 0},addProcessedElement:function(t,n){for(var i=this.processedElements,s=i.length;s;)if(s-=1,i[s].elem===t){i[s].pos=n;return}i.push(new ProcessedElement(t,n))},prepareFrame:function(t){this.prepareRenderableFrame(t),this.prepareProperties(t,this.isInRange)}};var lineCapEnum={1:"butt",2:"round",3:"square"},lineJoinEnum={1:"miter",2:"round",3:"bevel"};function SVGShapeData(e,t,n){this.caches=[],this.styles=[],this.transformers=e,this.lStr="",this.sh=n,this.lvl=t,this._isAnimated=!!n.k;for(var i=0,s=e.length;i<s;){if(e[i].mProps.dynamicProperties.length){this._isAnimated=!0;break}i+=1}}SVGShapeData.prototype.setAsAnimated=function(){this._isAnimated=!0};function SVGStyleData(e,t){this.data=e,this.type=e.ty,this.d="",this.lvl=t,this._mdf=!1,this.closed=e.hd===!0,this.pElem=createNS("path"),this.msElem=null}SVGStyleData.prototype.reset=function(){this.d="",this._mdf=!1};function DashProperty(e,t,n,i){this.elem=e,this.frameId=-1,this.dataProps=createSizedArray(t.length),this.renderer=n,this.k=!1,this.dashStr="",this.dashArray=createTypedArray("float32",t.length?t.length-1:0),this.dashoffset=createTypedArray("float32",1),this.initDynamicPropertyContainer(i);var s,a=t.length||0,o;for(s=0;s<a;s+=1)o=PropertyFactory.getProp(e,t[s].v,0,0,this),this.k=o.k||this.k,this.dataProps[s]={n:t[s].n,p:o};this.k||this.getValue(!0),this._isAnimated=this.k}DashProperty.prototype.getValue=function(e){if(!(this.elem.globalData.frameId===this.frameId&&!e)&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf=this._mdf||e,this._mdf)){var t=0,n=this.dataProps.length;for(this.renderer==="svg"&&(this.dashStr=""),t=0;t<n;t+=1)this.dataProps[t].n!=="o"?this.renderer==="svg"?this.dashStr+=" "+this.dataProps[t].p.v:this.dashArray[t]=this.dataProps[t].p.v:this.dashoffset[0]=this.dataProps[t].p.v}},extendPrototype([DynamicPropertyContainer],DashProperty);function SVGStrokeStyleData(e,t,n){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.o=PropertyFactory.getProp(e,t.o,0,.01,this),this.w=PropertyFactory.getProp(e,t.w,0,null,this),this.d=new DashProperty(e,t.d||{},"svg",this),this.c=PropertyFactory.getProp(e,t.c,1,255,this),this.style=n,this._isAnimated=!!this._isAnimated}extendPrototype([DynamicPropertyContainer],SVGStrokeStyleData);function SVGFillStyleData(e,t,n){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.o=PropertyFactory.getProp(e,t.o,0,.01,this),this.c=PropertyFactory.getProp(e,t.c,1,255,this),this.style=n}extendPrototype([DynamicPropertyContainer],SVGFillStyleData);function SVGNoStyleData(e,t,n){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.style=n}extendPrototype([DynamicPropertyContainer],SVGNoStyleData);function GradientProperty(e,t,n){this.data=t,this.c=createTypedArray("uint8c",t.p*4);var i=t.k.k[0].s?t.k.k[0].s.length-t.p*4:t.k.k.length-t.p*4;this.o=createTypedArray("float32",i),this._cmdf=!1,this._omdf=!1,this._collapsable=this.checkCollapsable(),this._hasOpacity=i,this.initDynamicPropertyContainer(n),this.prop=PropertyFactory.getProp(e,t.k,1,null,this),this.k=this.prop.k,this.getValue(!0)}GradientProperty.prototype.comparePoints=function(e,t){for(var n=0,i=this.o.length/2,s;n<i;){if(s=Math.abs(e[n*4]-e[t*4+n*2]),s>.01)return!1;n+=1}return!0},GradientProperty.prototype.checkCollapsable=function(){if(this.o.length/2!==this.c.length/4)return!1;if(this.data.k.k[0].s)for(var e=0,t=this.data.k.k.length;e<t;){if(!this.comparePoints(this.data.k.k[e].s,this.data.p))return!1;e+=1}else if(!this.comparePoints(this.data.k.k,this.data.p))return!1;return!0},GradientProperty.prototype.getValue=function(e){if(this.prop.getValue(),this._mdf=!1,this._cmdf=!1,this._omdf=!1,this.prop._mdf||e){var t,n=this.data.p*4,i,s;for(t=0;t<n;t+=1)i=t%4===0?100:255,s=Math.round(this.prop.v[t]*i),this.c[t]!==s&&(this.c[t]=s,this._cmdf=!e);if(this.o.length)for(n=this.prop.v.length,t=this.data.p*4;t<n;t+=1)i=t%2===0?100:1,s=t%2===0?Math.round(this.prop.v[t]*100):this.prop.v[t],this.o[t-this.data.p*4]!==s&&(this.o[t-this.data.p*4]=s,this._omdf=!e);this._mdf=!e}},extendPrototype([DynamicPropertyContainer],GradientProperty);function SVGGradientFillStyleData(e,t,n){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.initGradientData(e,t,n)}SVGGradientFillStyleData.prototype.initGradientData=function(e,t,n){this.o=PropertyFactory.getProp(e,t.o,0,.01,this),this.s=PropertyFactory.getProp(e,t.s,1,null,this),this.e=PropertyFactory.getProp(e,t.e,1,null,this),this.h=PropertyFactory.getProp(e,t.h||{k:0},0,.01,this),this.a=PropertyFactory.getProp(e,t.a||{k:0},0,degToRads,this),this.g=new GradientProperty(e,t.g,this),this.style=n,this.stops=[],this.setGradientData(n.pElem,t),this.setGradientOpacity(t,n),this._isAnimated=!!this._isAnimated},SVGGradientFillStyleData.prototype.setGradientData=function(e,t){var n=createElementID(),i=createNS(t.t===1?"linearGradient":"radialGradient");i.setAttribute("id",n),i.setAttribute("spreadMethod","pad"),i.setAttribute("gradientUnits","userSpaceOnUse");var s=[],a,o,l;for(l=t.g.p*4,o=0;o<l;o+=4)a=createNS("stop"),i.appendChild(a),s.push(a);e.setAttribute(t.ty==="gf"?"fill":"stroke","url("+getLocationHref()+"#"+n+")"),this.gf=i,this.cst=s},SVGGradientFillStyleData.prototype.setGradientOpacity=function(e,t){if(this.g._hasOpacity&&!this.g._collapsable){var n,i,s,a=createNS("mask"),o=createNS("path");a.appendChild(o);var l=createElementID(),c=createElementID();a.setAttribute("id",c);var d=createNS(e.t===1?"linearGradient":"radialGradient");d.setAttribute("id",l),d.setAttribute("spreadMethod","pad"),d.setAttribute("gradientUnits","userSpaceOnUse"),s=e.g.k.k[0].s?e.g.k.k[0].s.length:e.g.k.k.length;var u=this.stops;for(i=e.g.p*4;i<s;i+=2)n=createNS("stop"),n.setAttribute("stop-color","rgb(255,255,255)"),d.appendChild(n),u.push(n);o.setAttribute(e.ty==="gf"?"fill":"stroke","url("+getLocationHref()+"#"+l+")"),e.ty==="gs"&&(o.setAttribute("stroke-linecap",lineCapEnum[e.lc||2]),o.setAttribute("stroke-linejoin",lineJoinEnum[e.lj||2]),e.lj===1&&o.setAttribute("stroke-miterlimit",e.ml)),this.of=d,this.ms=a,this.ost=u,this.maskId=c,t.msElem=o}},extendPrototype([DynamicPropertyContainer],SVGGradientFillStyleData);function SVGGradientStrokeStyleData(e,t,n){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.w=PropertyFactory.getProp(e,t.w,0,null,this),this.d=new DashProperty(e,t.d||{},"svg",this),this.initGradientData(e,t,n),this._isAnimated=!!this._isAnimated}extendPrototype([SVGGradientFillStyleData,DynamicPropertyContainer],SVGGradientStrokeStyleData);function ShapeGroupData(){this.it=[],this.prevViewData=[],this.gr=createNS("g")}function SVGTransformData(e,t,n){this.transform={mProps:e,op:t,container:n},this.elements=[],this._isAnimated=this.transform.mProps.dynamicProperties.length||this.transform.op.effectsSequence.length}var buildShapeString=function(t,n,i,s){if(n===0)return"";var a=t.o,o=t.i,l=t.v,c,d=" M"+s.applyToPointStringified(l[0][0],l[0][1]);for(c=1;c<n;c+=1)d+=" C"+s.applyToPointStringified(a[c-1][0],a[c-1][1])+" "+s.applyToPointStringified(o[c][0],o[c][1])+" "+s.applyToPointStringified(l[c][0],l[c][1]);return i&&n&&(d+=" C"+s.applyToPointStringified(a[c-1][0],a[c-1][1])+" "+s.applyToPointStringified(o[0][0],o[0][1])+" "+s.applyToPointStringified(l[0][0],l[0][1]),d+="z"),d},SVGElementsRenderer=(function(){var e=new Matrix,t=new Matrix,n={createRenderFunction:i};function i(p){switch(p.ty){case"fl":return l;case"gf":return d;case"gs":return c;case"st":return u;case"sh":case"el":case"rc":case"sr":return o;case"tr":return s;case"no":return a;default:return null}}function s(p,h,y){(y||h.transform.op._mdf)&&h.transform.container.setAttribute("opacity",h.transform.op.v),(y||h.transform.mProps._mdf)&&h.transform.container.setAttribute("transform",h.transform.mProps.v.to2dCSS())}function a(){}function o(p,h,y){var f,m,C,g,b,v,N=h.styles.length,w=h.lvl,E,_,k,A;for(v=0;v<N;v+=1){if(g=h.sh._mdf||y,h.styles[v].lvl<w){for(_=t.reset(),k=w-h.styles[v].lvl,A=h.transformers.length-1;!g&&k>0;)g=h.transformers[A].mProps._mdf||g,k-=1,A-=1;if(g)for(k=w-h.styles[v].lvl,A=h.transformers.length-1;k>0;)_.multiply(h.transformers[A].mProps.v),k-=1,A-=1}else _=e;if(E=h.sh.paths,m=E._length,g){for(C="",f=0;f<m;f+=1)b=E.shapes[f],b&&b._length&&(C+=buildShapeString(b,b._length,b.c,_));h.caches[v]=C}else C=h.caches[v];h.styles[v].d+=p.hd===!0?"":C,h.styles[v]._mdf=g||h.styles[v]._mdf}}function l(p,h,y){var f=h.style;(h.c._mdf||y)&&f.pElem.setAttribute("fill","rgb("+bmFloor(h.c.v[0])+","+bmFloor(h.c.v[1])+","+bmFloor(h.c.v[2])+")"),(h.o._mdf||y)&&f.pElem.setAttribute("fill-opacity",h.o.v)}function c(p,h,y){d(p,h,y),u(p,h,y)}function d(p,h,y){var f=h.gf,m=h.g._hasOpacity,C=h.s.v,g=h.e.v;if(h.o._mdf||y){var b=p.ty==="gf"?"fill-opacity":"stroke-opacity";h.style.pElem.setAttribute(b,h.o.v)}if(h.s._mdf||y){var v=p.t===1?"x1":"cx",N=v==="x1"?"y1":"cy";f.setAttribute(v,C[0]),f.setAttribute(N,C[1]),m&&!h.g._collapsable&&(h.of.setAttribute(v,C[0]),h.of.setAttribute(N,C[1]))}var w,E,_,k;if(h.g._cmdf||y){w=h.cst;var A=h.g.c;for(_=w.length,E=0;E<_;E+=1)k=w[E],k.setAttribute("offset",A[E*4]+"%"),k.setAttribute("stop-color","rgb("+A[E*4+1]+","+A[E*4+2]+","+A[E*4+3]+")")}if(m&&(h.g._omdf||y)){var F=h.g.o;for(h.g._collapsable?w=h.cst:w=h.ost,_=w.length,E=0;E<_;E+=1)k=w[E],h.g._collapsable||k.setAttribute("offset",F[E*2]+"%"),k.setAttribute("stop-opacity",F[E*2+1])}if(p.t===1)(h.e._mdf||y)&&(f.setAttribute("x2",g[0]),f.setAttribute("y2",g[1]),m&&!h.g._collapsable&&(h.of.setAttribute("x2",g[0]),h.of.setAttribute("y2",g[1])));else{var B;if((h.s._mdf||h.e._mdf||y)&&(B=Math.sqrt(Math.pow(C[0]-g[0],2)+Math.pow(C[1]-g[1],2)),f.setAttribute("r",B),m&&!h.g._collapsable&&h.of.setAttribute("r",B)),h.s._mdf||h.e._mdf||h.h._mdf||h.a._mdf||y){B||(B=Math.sqrt(Math.pow(C[0]-g[0],2)+Math.pow(C[1]-g[1],2)));var I=Math.atan2(g[1]-C[1],g[0]-C[0]),D=h.h.v;D>=1?D=.99:D<=-1&&(D=-.99);var L=B*D,$=Math.cos(I+h.a.v)*L+C[0],P=Math.sin(I+h.a.v)*L+C[1];f.setAttribute("fx",$),f.setAttribute("fy",P),m&&!h.g._collapsable&&(h.of.setAttribute("fx",$),h.of.setAttribute("fy",P))}}}function u(p,h,y){var f=h.style,m=h.d;m&&(m._mdf||y)&&m.dashStr&&(f.pElem.setAttribute("stroke-dasharray",m.dashStr),f.pElem.setAttribute("stroke-dashoffset",m.dashoffset[0])),h.c&&(h.c._mdf||y)&&f.pElem.setAttribute("stroke","rgb("+bmFloor(h.c.v[0])+","+bmFloor(h.c.v[1])+","+bmFloor(h.c.v[2])+")"),(h.o._mdf||y)&&f.pElem.setAttribute("stroke-opacity",h.o.v),(h.w._mdf||y)&&(f.pElem.setAttribute("stroke-width",h.w.v),f.msElem&&f.msElem.setAttribute("stroke-width",h.w.v))}return n})();function SVGShapeElement(e,t,n){this.shapes=[],this.shapesData=e.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.animatedContents=[],this.initElement(e,t,n),this.prevViewData=[]}extendPrototype([BaseElement,TransformElement,SVGBaseElement,IShapeElement,HierarchyElement,FrameElement,RenderableDOMElement],SVGShapeElement),SVGShapeElement.prototype.initSecondaryElement=function(){},SVGShapeElement.prototype.identityMatrix=new Matrix,SVGShapeElement.prototype.buildExpressionInterface=function(){},SVGShapeElement.prototype.createContent=function(){this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes()},SVGShapeElement.prototype.filterUniqueShapes=function(){var e,t=this.shapes.length,n,i,s=this.stylesList.length,a,o=[],l=!1;for(i=0;i<s;i+=1){for(a=this.stylesList[i],l=!1,o.length=0,e=0;e<t;e+=1)n=this.shapes[e],n.styles.indexOf(a)!==-1&&(o.push(n),l=n._isAnimated||l);o.length>1&&l&&this.setShapesAsAnimated(o)}},SVGShapeElement.prototype.setShapesAsAnimated=function(e){var t,n=e.length;for(t=0;t<n;t+=1)e[t].setAsAnimated()},SVGShapeElement.prototype.createStyleElement=function(e,t){var n,i=new SVGStyleData(e,t),s=i.pElem;if(e.ty==="st")n=new SVGStrokeStyleData(this,e,i);else if(e.ty==="fl")n=new SVGFillStyleData(this,e,i);else if(e.ty==="gf"||e.ty==="gs"){var a=e.ty==="gf"?SVGGradientFillStyleData:SVGGradientStrokeStyleData;n=new a(this,e,i),this.globalData.defs.appendChild(n.gf),n.maskId&&(this.globalData.defs.appendChild(n.ms),this.globalData.defs.appendChild(n.of),s.setAttribute("mask","url("+getLocationHref()+"#"+n.maskId+")"))}else e.ty==="no"&&(n=new SVGNoStyleData(this,e,i));return(e.ty==="st"||e.ty==="gs")&&(s.setAttribute("stroke-linecap",lineCapEnum[e.lc||2]),s.setAttribute("stroke-linejoin",lineJoinEnum[e.lj||2]),s.setAttribute("fill-opacity","0"),e.lj===1&&s.setAttribute("stroke-miterlimit",e.ml)),e.r===2&&s.setAttribute("fill-rule","evenodd"),e.ln&&s.setAttribute("id",e.ln),e.cl&&s.setAttribute("class",e.cl),e.bm&&(s.style["mix-blend-mode"]=getBlendMode(e.bm)),this.stylesList.push(i),this.addToAnimatedContents(e,n),n},SVGShapeElement.prototype.createGroupElement=function(e){var t=new ShapeGroupData;return e.ln&&t.gr.setAttribute("id",e.ln),e.cl&&t.gr.setAttribute("class",e.cl),e.bm&&(t.gr.style["mix-blend-mode"]=getBlendMode(e.bm)),t},SVGShapeElement.prototype.createTransformElement=function(e,t){var n=TransformPropertyFactory.getTransformProperty(this,e,this),i=new SVGTransformData(n,n.o,t);return this.addToAnimatedContents(e,i),i},SVGShapeElement.prototype.createShapeElement=function(e,t,n){var i=4;e.ty==="rc"?i=5:e.ty==="el"?i=6:e.ty==="sr"&&(i=7);var s=ShapePropertyFactory.getShapeProp(this,e,i,this),a=new SVGShapeData(t,n,s);return this.shapes.push(a),this.addShapeToModifiers(a),this.addToAnimatedContents(e,a),a},SVGShapeElement.prototype.addToAnimatedContents=function(e,t){for(var n=0,i=this.animatedContents.length;n<i;){if(this.animatedContents[n].element===t)return;n+=1}this.animatedContents.push({fn:SVGElementsRenderer.createRenderFunction(e),element:t,data:e})},SVGShapeElement.prototype.setElementStyles=function(e){var t=e.styles,n,i=this.stylesList.length;for(n=0;n<i;n+=1)t.indexOf(this.stylesList[n])===-1&&!this.stylesList[n].closed&&t.push(this.stylesList[n])},SVGShapeElement.prototype.reloadShapes=function(){this._isFirstFrame=!0;var e,t=this.itemsData.length;for(e=0;e<t;e+=1)this.prevViewData[e]=this.itemsData[e];for(this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes(),t=this.dynamicProperties.length,e=0;e<t;e+=1)this.dynamicProperties[e].getValue();this.renderModifiers()},SVGShapeElement.prototype.searchShapes=function(e,t,n,i,s,a,o){var l=[].concat(a),c,d=e.length-1,u,p,h=[],y=[],f,m,C;for(c=d;c>=0;c-=1){if(C=this.searchProcessedElement(e[c]),C?t[c]=n[C-1]:e[c]._render=o,e[c].ty==="fl"||e[c].ty==="st"||e[c].ty==="gf"||e[c].ty==="gs"||e[c].ty==="no")C?t[c].style.closed=e[c].hd:t[c]=this.createStyleElement(e[c],s),e[c]._render&&t[c].style.pElem.parentNode!==i&&i.appendChild(t[c].style.pElem),h.push(t[c].style);else if(e[c].ty==="gr"){if(!C)t[c]=this.createGroupElement(e[c]);else for(p=t[c].it.length,u=0;u<p;u+=1)t[c].prevViewData[u]=t[c].it[u];this.searchShapes(e[c].it,t[c].it,t[c].prevViewData,t[c].gr,s+1,l,o),e[c]._render&&t[c].gr.parentNode!==i&&i.appendChild(t[c].gr)}else e[c].ty==="tr"?(C||(t[c]=this.createTransformElement(e[c],i)),f=t[c].transform,l.push(f)):e[c].ty==="sh"||e[c].ty==="rc"||e[c].ty==="el"||e[c].ty==="sr"?(C||(t[c]=this.createShapeElement(e[c],l,s)),this.setElementStyles(t[c])):e[c].ty==="tm"||e[c].ty==="rd"||e[c].ty==="ms"||e[c].ty==="pb"||e[c].ty==="zz"||e[c].ty==="op"?(C?(m=t[c],m.closed=!1):(m=ShapeModifiers.getModifier(e[c].ty),m.init(this,e[c]),t[c]=m,this.shapeModifiers.push(m)),y.push(m)):e[c].ty==="rp"&&(C?(m=t[c],m.closed=!0):(m=ShapeModifiers.getModifier(e[c].ty),t[c]=m,m.init(this,e,c,t),this.shapeModifiers.push(m),o=!1),y.push(m));this.addProcessedElement(e[c],c+1)}for(d=h.length,c=0;c<d;c+=1)h[c].closed=!0;for(d=y.length,c=0;c<d;c+=1)y[c].closed=!0},SVGShapeElement.prototype.renderInnerContent=function(){this.renderModifiers();var e,t=this.stylesList.length;for(e=0;e<t;e+=1)this.stylesList[e].reset();for(this.renderShape(),e=0;e<t;e+=1)(this.stylesList[e]._mdf||this._isFirstFrame)&&(this.stylesList[e].msElem&&(this.stylesList[e].msElem.setAttribute("d",this.stylesList[e].d),this.stylesList[e].d="M0 0"+this.stylesList[e].d),this.stylesList[e].pElem.setAttribute("d",this.stylesList[e].d||"M0 0"))},SVGShapeElement.prototype.renderShape=function(){var e,t=this.animatedContents.length,n;for(e=0;e<t;e+=1)n=this.animatedContents[e],(this._isFirstFrame||n.element._isAnimated)&&n.data!==!0&&n.fn(n.data,n.element,this._isFirstFrame)},SVGShapeElement.prototype.destroy=function(){this.destroyBaseElement(),this.shapesData=null,this.itemsData=null};function LetterProps(e,t,n,i,s,a){this.o=e,this.sw=t,this.sc=n,this.fc=i,this.m=s,this.p=a,this._mdf={o:!0,sw:!!t,sc:!!n,fc:!!i,m:!0,p:!0}}LetterProps.prototype.update=function(e,t,n,i,s,a){this._mdf.o=!1,this._mdf.sw=!1,this._mdf.sc=!1,this._mdf.fc=!1,this._mdf.m=!1,this._mdf.p=!1;var o=!1;return this.o!==e&&(this.o=e,this._mdf.o=!0,o=!0),this.sw!==t&&(this.sw=t,this._mdf.sw=!0,o=!0),this.sc!==n&&(this.sc=n,this._mdf.sc=!0,o=!0),this.fc!==i&&(this.fc=i,this._mdf.fc=!0,o=!0),this.m!==s&&(this.m=s,this._mdf.m=!0,o=!0),a.length&&(this.p[0]!==a[0]||this.p[1]!==a[1]||this.p[4]!==a[4]||this.p[5]!==a[5]||this.p[12]!==a[12]||this.p[13]!==a[13])&&(this.p=a,this._mdf.p=!0,o=!0),o};function TextProperty(e,t){this._frameId=initialDefaultFrame,this.pv="",this.v="",this.kf=!1,this._isFirstFrame=!0,this._mdf=!1,t.d&&t.d.sid&&(t.d=e.globalData.slotManager.getProp(t.d)),this.data=t,this.elem=e,this.comp=this.elem.comp,this.keysIndex=0,this.canResize=!1,this.minimumFontSize=1,this.effectsSequence=[],this.currentData={ascent:0,boxWidth:this.defaultBoxWidth,f:"",fStyle:"",fWeight:"",fc:"",j:"",justifyOffset:"",l:[],lh:0,lineWidths:[],ls:"",of:"",s:"",sc:"",sw:0,t:0,tr:0,sz:0,ps:null,fillColorAnim:!1,strokeColorAnim:!1,strokeWidthAnim:!1,yOffset:0,finalSize:0,finalText:[],finalLineHeight:0,__complete:!1},this.copyData(this.currentData,this.data.d.k[0].s),this.searchProperty()||this.completeTextData(this.currentData)}TextProperty.prototype.defaultBoxWidth=[0,0],TextProperty.prototype.copyData=function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e},TextProperty.prototype.setCurrentData=function(e){e.__complete||this.completeTextData(e),this.currentData=e,this.currentData.boxWidth=this.currentData.boxWidth||this.defaultBoxWidth,this._mdf=!0},TextProperty.prototype.searchProperty=function(){return this.searchKeyframes()},TextProperty.prototype.searchKeyframes=function(){return this.kf=this.data.d.k.length>1,this.kf&&this.addEffect(this.getKeyframeValue.bind(this)),this.kf},TextProperty.prototype.addEffect=function(e){this.effectsSequence.push(e),this.elem.addDynamicProperty(this)},TextProperty.prototype.getValue=function(e){if(!((this.elem.globalData.frameId===this.frameId||!this.effectsSequence.length)&&!e)){this.currentData.t=this.data.d.k[this.keysIndex].s.t;var t=this.currentData,n=this.keysIndex;if(this.lock){this.setCurrentData(this.currentData);return}this.lock=!0,this._mdf=!1;var i,s=this.effectsSequence.length,a=e||this.data.d.k[this.keysIndex].s;for(i=0;i<s;i+=1)n!==this.keysIndex?a=this.effectsSequence[i](a,a.t):a=this.effectsSequence[i](this.currentData,a.t);t!==a&&this.setCurrentData(a),this.v=this.currentData,this.pv=this.v,this.lock=!1,this.frameId=this.elem.globalData.frameId}},TextProperty.prototype.getKeyframeValue=function(){for(var e=this.data.d.k,t=this.elem.comp.renderedFrame,n=0,i=e.length;n<=i-1&&!(n===i-1||e[n+1].t>t);)n+=1;return this.keysIndex!==n&&(this.keysIndex=n),this.data.d.k[this.keysIndex].s},TextProperty.prototype.buildFinalText=function(e){for(var t=[],n=0,i=e.length,s,a,o=!1,l=!1,c="";n<i;)o=l,l=!1,s=e.charCodeAt(n),c=e.charAt(n),FontManager.isCombinedCharacter(s)?o=!0:s>=55296&&s<=56319?FontManager.isRegionalFlag(e,n)?c=e.substr(n,14):(a=e.charCodeAt(n+1),a>=56320&&a<=57343&&(FontManager.isModifier(s,a)?(c=e.substr(n,2),o=!0):FontManager.isFlagEmoji(e.substr(n,4))?c=e.substr(n,4):c=e.substr(n,2))):s>56319?(a=e.charCodeAt(n+1),FontManager.isVariationSelector(s)&&(o=!0)):FontManager.isZeroWidthJoiner(s)&&(o=!0,l=!0),o?(t[t.length-1]+=c,o=!1):t.push(c),n+=c.length;return t},TextProperty.prototype.completeTextData=function(e){e.__complete=!0;var t=this.elem.globalData.fontManager,n=this.data,i=[],s,a,o,l=0,c,d=n.m.g,u=0,p=0,h=0,y=[],f=0,m=0,C,g,b=t.getFontByName(e.f),v,N=0,w=getFontProperties(b);e.fWeight=w.weight,e.fStyle=w.style,e.finalSize=e.s,e.finalText=this.buildFinalText(e.t),a=e.finalText.length,e.finalLineHeight=e.lh;var E=e.tr/1e3*e.finalSize,_;if(e.sz)for(var k=!0,A=e.sz[0],F=e.sz[1],B,I;k;){I=this.buildFinalText(e.t),B=0,f=0,a=I.length,E=e.tr/1e3*e.finalSize;var D=-1;for(s=0;s<a;s+=1)_=I[s].charCodeAt(0),o=!1,I[s]===" "?D=s:(_===13||_===3)&&(f=0,o=!0,B+=e.finalLineHeight||e.finalSize*1.2),t.chars?(v=t.getCharData(I[s],b.fStyle,b.fFamily),N=o?0:v.w*e.finalSize/100):N=t.measureText(I[s],e.f,e.finalSize),f+N>A&&I[s]!==" "?(D===-1?a+=1:s=D,B+=e.finalLineHeight||e.finalSize*1.2,I.splice(s,D===s?1:0,"\r"),D=-1,f=0):(f+=N,f+=E);B+=b.ascent*e.finalSize/100,this.canResize&&e.finalSize>this.minimumFontSize&&F<B?(e.finalSize-=1,e.finalLineHeight=e.finalSize*e.lh/e.s):(e.finalText=I,a=e.finalText.length,k=!1)}f=-E,N=0;var L=0,$;for(s=0;s<a;s+=1)if(o=!1,$=e.finalText[s],_=$.charCodeAt(0),_===13||_===3?(L=0,y.push(f),m=f>m?f:m,f=-2*E,c="",o=!0,h+=1):c=$,t.chars?(v=t.getCharData($,b.fStyle,t.getFontByName(e.f).fFamily),N=o?0:v.w*e.finalSize/100):N=t.measureText(c,e.f,e.finalSize),$===" "?L+=N+E:(f+=N+E+L,L=0),i.push({l:N,an:N,add:u,n:o,anIndexes:[],val:c,line:h,animatorJustifyOffset:0}),d==2){if(u+=N,c===""||c===" "||s===a-1){for((c===""||c===" ")&&(u-=N);p<=s;)i[p].an=u,i[p].ind=l,i[p].extra=N,p+=1;l+=1,u=0}}else if(d==3){if(u+=N,c===""||s===a-1){for(c===""&&(u-=N);p<=s;)i[p].an=u,i[p].ind=l,i[p].extra=N,p+=1;u=0,l+=1}}else i[l].ind=l,i[l].extra=0,l+=1;if(e.l=i,m=f>m?f:m,y.push(f),e.sz)e.boxWidth=e.sz[0],e.justifyOffset=0;else switch(e.boxWidth=m,e.j){case 1:e.justifyOffset=-e.boxWidth;break;case 2:e.justifyOffset=-e.boxWidth/2;break;default:e.justifyOffset=0}e.lineWidths=y;var P=n.a,T,x;g=P.length;var S,M,V=[];for(C=0;C<g;C+=1){for(T=P[C],T.a.sc&&(e.strokeColorAnim=!0),T.a.sw&&(e.strokeWidthAnim=!0),(T.a.fc||T.a.fh||T.a.fs||T.a.fb)&&(e.fillColorAnim=!0),M=0,S=T.s.b,s=0;s<a;s+=1)x=i[s],x.anIndexes[C]=M,(S==1&&x.val!==""||S==2&&x.val!==""&&x.val!==" "||S==3&&(x.n||x.val==" "||s==a-1)||S==4&&(x.n||s==a-1))&&(T.s.rn===1&&V.push(M),M+=1);n.a[C].s.totalChars=M;var z=-1,G;if(T.s.rn===1)for(s=0;s<a;s+=1)x=i[s],z!=x.anIndexes[C]&&(z=x.anIndexes[C],G=V.splice(Math.floor(Math.random()*V.length),1)[0]),x.anIndexes[C]=G}e.yOffset=e.finalLineHeight||e.finalSize*1.2,e.ls=e.ls||0,e.ascent=b.ascent*e.finalSize/100},TextProperty.prototype.updateDocumentData=function(e,t){t=t===void 0?this.keysIndex:t;var n=this.copyData({},this.data.d.k[t].s);n=this.copyData(n,e),this.data.d.k[t].s=n,this.recalculate(t),this.setCurrentData(n),this.elem.addDynamicProperty(this)},TextProperty.prototype.recalculate=function(e){var t=this.data.d.k[e].s;t.__complete=!1,this.keysIndex=0,this._isFirstFrame=!0,this.getValue(t)},TextProperty.prototype.canResizeFont=function(e){this.canResize=e,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)},TextProperty.prototype.setMinimumFontSize=function(e){this.minimumFontSize=Math.floor(e)||1,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)};var TextSelectorProp=(function(){var e=Math.max,t=Math.min,n=Math.floor;function i(a,o){this._currentTextLength=-1,this.k=!1,this.data=o,this.elem=a,this.comp=a.comp,this.finalS=0,this.finalE=0,this.initDynamicPropertyContainer(a),this.s=PropertyFactory.getProp(a,o.s||{k:0},0,0,this),"e"in o?this.e=PropertyFactory.getProp(a,o.e,0,0,this):this.e={v:100},this.o=PropertyFactory.getProp(a,o.o||{k:0},0,0,this),this.xe=PropertyFactory.getProp(a,o.xe||{k:0},0,0,this),this.ne=PropertyFactory.getProp(a,o.ne||{k:0},0,0,this),this.sm=PropertyFactory.getProp(a,o.sm||{k:100},0,0,this),this.a=PropertyFactory.getProp(a,o.a,0,.01,this),this.dynamicProperties.length||this.getValue()}i.prototype={getMult:function(o){this._currentTextLength!==this.elem.textProperty.currentData.l.length&&this.getValue();var l=0,c=0,d=1,u=1;this.ne.v>0?l=this.ne.v/100:c=-this.ne.v/100,this.xe.v>0?d=1-this.xe.v/100:u=1+this.xe.v/100;var p=BezierFactory.getBezierEasing(l,c,d,u).get,h=0,y=this.finalS,f=this.finalE,m=this.data.sh;if(m===2)f===y?h=o>=f?1:0:h=e(0,t(.5/(f-y)+(o-y)/(f-y),1)),h=p(h);else if(m===3)f===y?h=o>=f?0:1:h=1-e(0,t(.5/(f-y)+(o-y)/(f-y),1)),h=p(h);else if(m===4)f===y?h=0:(h=e(0,t(.5/(f-y)+(o-y)/(f-y),1)),h<.5?h*=2:h=1-2*(h-.5)),h=p(h);else if(m===5){if(f===y)h=0;else{var C=f-y;o=t(e(0,o+.5-y),f-y);var g=-C/2+o,b=C/2;h=Math.sqrt(1-g*g/(b*b))}h=p(h)}else m===6?(f===y?h=0:(o=t(e(0,o+.5-y),f-y),h=(1+Math.cos(Math.PI+Math.PI*2*o/(f-y)))/2),h=p(h)):(o>=n(y)&&(o-y<0?h=e(0,t(t(f,1)-(y-o),1)):h=e(0,t(f-o,1))),h=p(h));if(this.sm.v!==100){var v=this.sm.v*.01;v===0&&(v=1e-8);var N=.5-v*.5;h<N?h=0:(h=(h-N)/v,h>1&&(h=1))}return h*this.a.v},getValue:function(o){this.iterateDynamicProperties(),this._mdf=o||this._mdf,this._currentTextLength=this.elem.textProperty.currentData.l.length||0,o&&this.data.r===2&&(this.e.v=this._currentTextLength);var l=this.data.r===2?1:100/this.data.totalChars,c=this.o.v/l,d=this.s.v/l+c,u=this.e.v/l+c;if(d>u){var p=d;d=u,u=p}this.finalS=d,this.finalE=u}},extendPrototype([DynamicPropertyContainer],i);function s(a,o,l){return new i(a,o)}return{getTextSelectorProp:s}})();function TextAnimatorDataProperty(e,t,n){var i={propType:!1},s=PropertyFactory.getProp,a=t.a;this.a={r:a.r?s(e,a.r,0,degToRads,n):i,rx:a.rx?s(e,a.rx,0,degToRads,n):i,ry:a.ry?s(e,a.ry,0,degToRads,n):i,sk:a.sk?s(e,a.sk,0,degToRads,n):i,sa:a.sa?s(e,a.sa,0,degToRads,n):i,s:a.s?s(e,a.s,1,.01,n):i,a:a.a?s(e,a.a,1,0,n):i,o:a.o?s(e,a.o,0,.01,n):i,p:a.p?s(e,a.p,1,0,n):i,sw:a.sw?s(e,a.sw,0,0,n):i,sc:a.sc?s(e,a.sc,1,0,n):i,fc:a.fc?s(e,a.fc,1,0,n):i,fh:a.fh?s(e,a.fh,0,0,n):i,fs:a.fs?s(e,a.fs,0,.01,n):i,fb:a.fb?s(e,a.fb,0,.01,n):i,t:a.t?s(e,a.t,0,0,n):i},this.s=TextSelectorProp.getTextSelectorProp(e,t.s,n),this.s.t=t.s.t}function TextAnimatorProperty(e,t,n){this._isFirstFrame=!0,this._hasMaskedPath=!1,this._frameId=-1,this._textData=e,this._renderType=t,this._elem=n,this._animatorsData=createSizedArray(this._textData.a.length),this._pathData={},this._moreOptions={alignment:{}},this.renderedLetters=[],this.lettersChangedFlag=!1,this.initDynamicPropertyContainer(n)}TextAnimatorProperty.prototype.searchProperties=function(){var e,t=this._textData.a.length,n,i=PropertyFactory.getProp;for(e=0;e<t;e+=1)n=this._textData.a[e],this._animatorsData[e]=new TextAnimatorDataProperty(this._elem,n,this);this._textData.p&&"m"in this._textData.p?(this._pathData={a:i(this._elem,this._textData.p.a,0,0,this),f:i(this._elem,this._textData.p.f,0,0,this),l:i(this._elem,this._textData.p.l,0,0,this),r:i(this._elem,this._textData.p.r,0,0,this),p:i(this._elem,this._textData.p.p,0,0,this),m:this._elem.maskManager.getMaskProperty(this._textData.p.m)},this._hasMaskedPath=!0):this._hasMaskedPath=!1,this._moreOptions.alignment=i(this._elem,this._textData.m.a,1,0,this)},TextAnimatorProperty.prototype.getMeasures=function(e,t){if(this.lettersChangedFlag=t,!(!this._mdf&&!this._isFirstFrame&&!t&&(!this._hasMaskedPath||!this._pathData.m._mdf))){this._isFirstFrame=!1;var n=this._moreOptions.alignment.v,i=this._animatorsData,s=this._textData,a=this.mHelper,o=this._renderType,l=this.renderedLetters.length,c,d,u,p,h=e.l,y,f,m,C,g,b,v,N,w,E,_,k,A,F,B;if(this._hasMaskedPath){if(B=this._pathData.m,!this._pathData.n||this._pathData._mdf){var I=B.v;this._pathData.r.v&&(I=I.reverse()),y={tLength:0,segments:[]},p=I._length-1;var D;for(k=0,u=0;u<p;u+=1)D=bez.buildBezierData(I.v[u],I.v[u+1],[I.o[u][0]-I.v[u][0],I.o[u][1]-I.v[u][1]],[I.i[u+1][0]-I.v[u+1][0],I.i[u+1][1]-I.v[u+1][1]]),y.tLength+=D.segmentLength,y.segments.push(D),k+=D.segmentLength;u=p,B.v.c&&(D=bez.buildBezierData(I.v[u],I.v[0],[I.o[u][0]-I.v[u][0],I.o[u][1]-I.v[u][1]],[I.i[0][0]-I.v[0][0],I.i[0][1]-I.v[0][1]]),y.tLength+=D.segmentLength,y.segments.push(D),k+=D.segmentLength),this._pathData.pi=y}if(y=this._pathData.pi,f=this._pathData.f.v,v=0,b=1,C=0,g=!0,E=y.segments,f<0&&B.v.c)for(y.tLength<Math.abs(f)&&(f=-Math.abs(f)%y.tLength),v=E.length-1,w=E[v].points,b=w.length-1;f<0;)f+=w[b].partialLength,b-=1,b<0&&(v-=1,w=E[v].points,b=w.length-1);w=E[v].points,N=w[b-1],m=w[b],_=m.partialLength}p=h.length,c=0,d=0;var L=e.finalSize*1.2*.714,$=!0,P,T,x,S,M;S=i.length;var V,z=-1,G,H,W,q=f,U=v,J=b,Q=-1,K,X,Z,Y,j,ae,ue,oe,se="",le=this.defaultPropsArray,ce;if(e.j===2||e.j===1){var ee=0,de=0,fe=e.j===2?-.5:-1,re=0,he=!0;for(u=0;u<p;u+=1)if(h[u].n){for(ee&&(ee+=de);re<u;)h[re].animatorJustifyOffset=ee,re+=1;ee=0,he=!0}else{for(x=0;x<S;x+=1)P=i[x].a,P.t.propType&&(he&&e.j===2&&(de+=P.t.v*fe),T=i[x].s,V=T.getMult(h[u].anIndexes[x],s.a[x].s.totalChars),V.length?ee+=P.t.v*V[0]*fe:ee+=P.t.v*V*fe);he=!1}for(ee&&(ee+=de);re<u;)h[re].animatorJustifyOffset=ee,re+=1}for(u=0;u<p;u+=1){if(a.reset(),K=1,h[u].n)c=0,d+=e.yOffset,d+=$?1:0,f=q,$=!1,this._hasMaskedPath&&(v=U,b=J,w=E[v].points,N=w[b-1],m=w[b],_=m.partialLength,C=0),se="",oe="",ae="",ce="",le=this.defaultPropsArray;else{if(this._hasMaskedPath){if(Q!==h[u].line){switch(e.j){case 1:f+=k-e.lineWidths[h[u].line];break;case 2:f+=(k-e.lineWidths[h[u].line])/2;break}Q=h[u].line}z!==h[u].ind&&(h[z]&&(f+=h[z].extra),f+=h[u].an/2,z=h[u].ind),f+=n[0]*h[u].an*.005;var ie=0;for(x=0;x<S;x+=1)P=i[x].a,P.p.propType&&(T=i[x].s,V=T.getMult(h[u].anIndexes[x],s.a[x].s.totalChars),V.length?ie+=P.p.v[0]*V[0]:ie+=P.p.v[0]*V),P.a.propType&&(T=i[x].s,V=T.getMult(h[u].anIndexes[x],s.a[x].s.totalChars),V.length?ie+=P.a.v[0]*V[0]:ie+=P.a.v[0]*V);for(g=!0,this._pathData.a.v&&(f=h[0].an*.5+(k-this._pathData.f.v-h[0].an*.5-h[h.length-1].an*.5)*z/(p-1),f+=this._pathData.f.v);g;)C+_>=f+ie||!w?(A=(f+ie-C)/m.partialLength,H=N.point[0]+(m.point[0]-N.point[0])*A,W=N.point[1]+(m.point[1]-N.point[1])*A,a.translate(-n[0]*h[u].an*.005,-(n[1]*L)*.01),g=!1):w&&(C+=m.partialLength,b+=1,b>=w.length&&(b=0,v+=1,E[v]?w=E[v].points:B.v.c?(b=0,v=0,w=E[v].points):(C-=m.partialLength,w=null)),w&&(N=m,m=w[b],_=m.partialLength));G=h[u].an/2-h[u].add,a.translate(-G,0,0)}else G=h[u].an/2-h[u].add,a.translate(-G,0,0),a.translate(-n[0]*h[u].an*.005,-n[1]*L*.01,0);for(x=0;x<S;x+=1)P=i[x].a,P.t.propType&&(T=i[x].s,V=T.getMult(h[u].anIndexes[x],s.a[x].s.totalChars),(c!==0||e.j!==0)&&(this._hasMaskedPath?V.length?f+=P.t.v*V[0]:f+=P.t.v*V:V.length?c+=P.t.v*V[0]:c+=P.t.v*V));for(e.strokeWidthAnim&&(Z=e.sw||0),e.strokeColorAnim&&(e.sc?X=[e.sc[0],e.sc[1],e.sc[2]]:X=[0,0,0]),e.fillColorAnim&&e.fc&&(Y=[e.fc[0],e.fc[1],e.fc[2]]),x=0;x<S;x+=1)P=i[x].a,P.a.propType&&(T=i[x].s,V=T.getMult(h[u].anIndexes[x],s.a[x].s.totalChars),V.length?a.translate(-P.a.v[0]*V[0],-P.a.v[1]*V[1],P.a.v[2]*V[2]):a.translate(-P.a.v[0]*V,-P.a.v[1]*V,P.a.v[2]*V));for(x=0;x<S;x+=1)P=i[x].a,P.s.propType&&(T=i[x].s,V=T.getMult(h[u].anIndexes[x],s.a[x].s.totalChars),V.length?a.scale(1+(P.s.v[0]-1)*V[0],1+(P.s.v[1]-1)*V[1],1):a.scale(1+(P.s.v[0]-1)*V,1+(P.s.v[1]-1)*V,1));for(x=0;x<S;x+=1){if(P=i[x].a,T=i[x].s,V=T.getMult(h[u].anIndexes[x],s.a[x].s.totalChars),P.sk.propType&&(V.length?a.skewFromAxis(-P.sk.v*V[0],P.sa.v*V[1]):a.skewFromAxis(-P.sk.v*V,P.sa.v*V)),P.r.propType&&(V.length?a.rotateZ(-P.r.v*V[2]):a.rotateZ(-P.r.v*V)),P.ry.propType&&(V.length?a.rotateY(P.ry.v*V[1]):a.rotateY(P.ry.v*V)),P.rx.propType&&(V.length?a.rotateX(P.rx.v*V[0]):a.rotateX(P.rx.v*V)),P.o.propType&&(V.length?K+=(P.o.v*V[0]-K)*V[0]:K+=(P.o.v*V-K)*V),e.strokeWidthAnim&&P.sw.propType&&(V.length?Z+=P.sw.v*V[0]:Z+=P.sw.v*V),e.strokeColorAnim&&P.sc.propType)for(j=0;j<3;j+=1)V.length?X[j]+=(P.sc.v[j]-X[j])*V[0]:X[j]+=(P.sc.v[j]-X[j])*V;if(e.fillColorAnim&&e.fc){if(P.fc.propType)for(j=0;j<3;j+=1)V.length?Y[j]+=(P.fc.v[j]-Y[j])*V[0]:Y[j]+=(P.fc.v[j]-Y[j])*V;P.fh.propType&&(V.length?Y=addHueToRGB(Y,P.fh.v*V[0]):Y=addHueToRGB(Y,P.fh.v*V)),P.fs.propType&&(V.length?Y=addSaturationToRGB(Y,P.fs.v*V[0]):Y=addSaturationToRGB(Y,P.fs.v*V)),P.fb.propType&&(V.length?Y=addBrightnessToRGB(Y,P.fb.v*V[0]):Y=addBrightnessToRGB(Y,P.fb.v*V))}}for(x=0;x<S;x+=1)P=i[x].a,P.p.propType&&(T=i[x].s,V=T.getMult(h[u].anIndexes[x],s.a[x].s.totalChars),this._hasMaskedPath?V.length?a.translate(0,P.p.v[1]*V[0],-P.p.v[2]*V[1]):a.translate(0,P.p.v[1]*V,-P.p.v[2]*V):V.length?a.translate(P.p.v[0]*V[0],P.p.v[1]*V[1],-P.p.v[2]*V[2]):a.translate(P.p.v[0]*V,P.p.v[1]*V,-P.p.v[2]*V));if(e.strokeWidthAnim&&(ae=Z<0?0:Z),e.strokeColorAnim&&(ue="rgb("+Math.round(X[0]*255)+","+Math.round(X[1]*255)+","+Math.round(X[2]*255)+")"),e.fillColorAnim&&e.fc&&(oe="rgb("+Math.round(Y[0]*255)+","+Math.round(Y[1]*255)+","+Math.round(Y[2]*255)+")"),this._hasMaskedPath){if(a.translate(0,-e.ls),a.translate(0,n[1]*L*.01+d,0),this._pathData.p.v){F=(m.point[1]-N.point[1])/(m.point[0]-N.point[0]);var pe=Math.atan(F)*180/Math.PI;m.point[0]<N.point[0]&&(pe+=180),a.rotate(-pe*Math.PI/180)}a.translate(H,W,0),f-=n[0]*h[u].an*.005,h[u+1]&&z!==h[u+1].ind&&(f+=h[u].an/2,f+=e.tr*.001*e.finalSize)}else{switch(a.translate(c,d,0),e.ps&&a.translate(e.ps[0],e.ps[1]+e.ascent,0),e.j){case 1:a.translate(h[u].animatorJustifyOffset+e.justifyOffset+(e.boxWidth-e.lineWidths[h[u].line]),0,0);break;case 2:a.translate(h[u].animatorJustifyOffset+e.justifyOffset+(e.boxWidth-e.lineWidths[h[u].line])/2,0,0);break}a.translate(0,-e.ls),a.translate(G,0,0),a.translate(n[0]*h[u].an*.005,n[1]*L*.01,0),c+=h[u].l+e.tr*.001*e.finalSize}o==="html"?se=a.toCSS():o==="svg"?se=a.to2dCSS():le=[a.props[0],a.props[1],a.props[2],a.props[3],a.props[4],a.props[5],a.props[6],a.props[7],a.props[8],a.props[9],a.props[10],a.props[11],a.props[12],a.props[13],a.props[14],a.props[15]],ce=K}l<=u?(M=new LetterProps(ce,ae,ue,oe,se,le),this.renderedLetters.push(M),l+=1,this.lettersChangedFlag=!0):(M=this.renderedLetters[u],this.lettersChangedFlag=M.update(ce,ae,ue,oe,se,le)||this.lettersChangedFlag)}}},TextAnimatorProperty.prototype.getValue=function(){this._elem.globalData.frameId!==this._frameId&&(this._frameId=this._elem.globalData.frameId,this.iterateDynamicProperties())},TextAnimatorProperty.prototype.mHelper=new Matrix,TextAnimatorProperty.prototype.defaultPropsArray=[],extendPrototype([DynamicPropertyContainer],TextAnimatorProperty);function ITextElement(){}ITextElement.prototype.initElement=function(e,t,n){this.lettersChangedFlag=!0,this.initFrame(),this.initBaseData(e,t,n),this.textProperty=new TextProperty(this,e.t,this.dynamicProperties),this.textAnimator=new TextAnimatorProperty(e.t,this.renderType,this),this.initTransform(e,t,n),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.createContent(),this.hide(),this.textAnimator.searchProperties(this.dynamicProperties)},ITextElement.prototype.prepareFrame=function(e){this._mdf=!1,this.prepareRenderableFrame(e),this.prepareProperties(e,this.isInRange)},ITextElement.prototype.createPathShape=function(e,t){var n,i=t.length,s,a="";for(n=0;n<i;n+=1)t[n].ty==="sh"&&(s=t[n].ks.k,a+=buildShapeString(s,s.i.length,!0,e));return a},ITextElement.prototype.updateDocumentData=function(e,t){this.textProperty.updateDocumentData(e,t)},ITextElement.prototype.canResizeFont=function(e){this.textProperty.canResizeFont(e)},ITextElement.prototype.setMinimumFontSize=function(e){this.textProperty.setMinimumFontSize(e)},ITextElement.prototype.applyTextPropertiesToMatrix=function(e,t,n,i,s){switch(e.ps&&t.translate(e.ps[0],e.ps[1]+e.ascent,0),t.translate(0,-e.ls,0),e.j){case 1:t.translate(e.justifyOffset+(e.boxWidth-e.lineWidths[n]),0,0);break;case 2:t.translate(e.justifyOffset+(e.boxWidth-e.lineWidths[n])/2,0,0);break}t.translate(i,s,0)},ITextElement.prototype.buildColor=function(e){return"rgb("+Math.round(e[0]*255)+","+Math.round(e[1]*255)+","+Math.round(e[2]*255)+")"},ITextElement.prototype.emptyProp=new LetterProps,ITextElement.prototype.destroy=function(){},ITextElement.prototype.validateText=function(){(this.textProperty._mdf||this.textProperty._isFirstFrame)&&(this.buildNewText(),this.textProperty._isFirstFrame=!1,this.textProperty._mdf=!1)};var emptyShapeData={shapes:[]};function SVGTextLottieElement(e,t,n){this.textSpans=[],this.renderType="svg",this.initElement(e,t,n)}extendPrototype([BaseElement,TransformElement,SVGBaseElement,HierarchyElement,FrameElement,RenderableDOMElement,ITextElement],SVGTextLottieElement),SVGTextLottieElement.prototype.createContent=function(){this.data.singleShape&&!this.globalData.fontManager.chars&&(this.textContainer=createNS("text"))},SVGTextLottieElement.prototype.buildTextContents=function(e){for(var t=0,n=e.length,i=[],s="";t<n;)e[t]==="\r"||e[t]===""?(i.push(s),s=""):s+=e[t],t+=1;return i.push(s),i},SVGTextLottieElement.prototype.buildShapeData=function(e,t){if(e.shapes&&e.shapes.length){var n=e.shapes[0];if(n.it){var i=n.it[n.it.length-1];i.s&&(i.s.k[0]=t,i.s.k[1]=t)}}return e},SVGTextLottieElement.prototype.buildNewText=function(){this.addDynamicProperty(this);var e,t,n=this.textProperty.currentData;this.renderedLetters=createSizedArray(n?n.l.length:0),n.fc?this.layerElement.setAttribute("fill",this.buildColor(n.fc)):this.layerElement.setAttribute("fill","rgba(0,0,0,0)"),n.sc&&(this.layerElement.setAttribute("stroke",this.buildColor(n.sc)),this.layerElement.setAttribute("stroke-width",n.sw)),this.layerElement.setAttribute("font-size",n.finalSize);var i=this.globalData.fontManager.getFontByName(n.f);if(i.fClass)this.layerElement.setAttribute("class",i.fClass);else{this.layerElement.setAttribute("font-family",i.fFamily);var s=n.fWeight,a=n.fStyle;this.layerElement.setAttribute("font-style",a),this.layerElement.setAttribute("font-weight",s)}this.layerElement.setAttribute("aria-label",n.t);var o=n.l||[],l=!!this.globalData.fontManager.chars;t=o.length;var c,d=this.mHelper,u="",p=this.data.singleShape,h=0,y=0,f=!0,m=n.tr*.001*n.finalSize;if(p&&!l&&!n.sz){var C=this.textContainer,g="start";switch(n.j){case 1:g="end";break;case 2:g="middle";break;default:g="start";break}C.setAttribute("text-anchor",g),C.setAttribute("letter-spacing",m);var b=this.buildTextContents(n.finalText);for(t=b.length,y=n.ps?n.ps[1]+n.ascent:0,e=0;e<t;e+=1)c=this.textSpans[e].span||createNS("tspan"),c.textContent=b[e],c.setAttribute("x",0),c.setAttribute("y",y),c.style.display="inherit",C.appendChild(c),this.textSpans[e]||(this.textSpans[e]={span:null,glyph:null}),this.textSpans[e].span=c,y+=n.finalLineHeight;this.layerElement.appendChild(C)}else{var v=this.textSpans.length,N;for(e=0;e<t;e+=1){if(this.textSpans[e]||(this.textSpans[e]={span:null,childSpan:null,glyph:null}),!l||!p||e===0){if(c=v>e?this.textSpans[e].span:createNS(l?"g":"text"),v<=e){if(c.setAttribute("stroke-linecap","butt"),c.setAttribute("stroke-linejoin","round"),c.setAttribute("stroke-miterlimit","4"),this.textSpans[e].span=c,l){var w=createNS("g");c.appendChild(w),this.textSpans[e].childSpan=w}this.textSpans[e].span=c,this.layerElement.appendChild(c)}c.style.display="inherit"}if(d.reset(),p&&(o[e].n&&(h=-m,y+=n.yOffset,y+=f?1:0,f=!1),this.applyTextPropertiesToMatrix(n,d,o[e].line,h,y),h+=o[e].l||0,h+=m),l){N=this.globalData.fontManager.getCharData(n.finalText[e],i.fStyle,this.globalData.fontManager.getFontByName(n.f).fFamily);var E;if(N.t===1)E=new SVGCompElement(N.data,this.globalData,this);else{var _=emptyShapeData;N.data&&N.data.shapes&&(_=this.buildShapeData(N.data,n.finalSize)),E=new SVGShapeElement(_,this.globalData,this)}if(this.textSpans[e].glyph){var k=this.textSpans[e].glyph;this.textSpans[e].childSpan.removeChild(k.layerElement),k.destroy()}this.textSpans[e].glyph=E,E._debug=!0,E.prepareFrame(0),E.renderFrame(),this.textSpans[e].childSpan.appendChild(E.layerElement),N.t===1&&this.textSpans[e].childSpan.setAttribute("transform","scale("+n.finalSize/100+","+n.finalSize/100+")")}else p&&c.setAttribute("transform","translate("+d.props[12]+","+d.props[13]+")"),c.textContent=o[e].val,c.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve")}p&&c&&c.setAttribute("d",u)}for(;e<this.textSpans.length;)this.textSpans[e].span.style.display="none",e+=1;this._sizeChanged=!0},SVGTextLottieElement.prototype.sourceRectAtTime=function(){if(this.prepareFrame(this.comp.renderedFrame-this.data.st),this.renderInnerContent(),this._sizeChanged){this._sizeChanged=!1;var e=this.layerElement.getBBox();this.bbox={top:e.y,left:e.x,width:e.width,height:e.height}}return this.bbox},SVGTextLottieElement.prototype.getValue=function(){var e,t=this.textSpans.length,n;for(this.renderedFrame=this.comp.renderedFrame,e=0;e<t;e+=1)n=this.textSpans[e].glyph,n&&(n.prepareFrame(this.comp.renderedFrame-this.data.st),n._mdf&&(this._mdf=!0))},SVGTextLottieElement.prototype.renderInnerContent=function(){if(this.validateText(),(!this.data.singleShape||this._mdf)&&(this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag),this.lettersChangedFlag||this.textAnimator.lettersChangedFlag)){this._sizeChanged=!0;var e,t,n=this.textAnimator.renderedLetters,i=this.textProperty.currentData.l;t=i.length;var s,a,o;for(e=0;e<t;e+=1)i[e].n||(s=n[e],a=this.textSpans[e].span,o=this.textSpans[e].glyph,o&&o.renderFrame(),s._mdf.m&&a.setAttribute("transform",s.m),s._mdf.o&&a.setAttribute("opacity",s.o),s._mdf.sw&&a.setAttribute("stroke-width",s.sw),s._mdf.sc&&a.setAttribute("stroke",s.sc),s._mdf.fc&&a.setAttribute("fill",s.fc))}};function ISolidElement(e,t,n){this.initElement(e,t,n)}extendPrototype([IImageElement],ISolidElement),ISolidElement.prototype.createContent=function(){var e=createNS("rect");e.setAttribute("width",this.data.sw),e.setAttribute("height",this.data.sh),e.setAttribute("fill",this.data.sc),this.layerElement.appendChild(e)};function NullElement(e,t,n){this.initFrame(),this.initBaseData(e,t,n),this.initFrame(),this.initTransform(e,t,n),this.initHierarchy()}NullElement.prototype.prepareFrame=function(e){this.prepareProperties(e,!0)},NullElement.prototype.renderFrame=function(){},NullElement.prototype.getBaseElement=function(){return null},NullElement.prototype.destroy=function(){},NullElement.prototype.sourceRectAtTime=function(){},NullElement.prototype.hide=function(){},extendPrototype([BaseElement,TransformElement,HierarchyElement,FrameElement],NullElement);function SVGRendererBase(){}extendPrototype([BaseRenderer],SVGRendererBase),SVGRendererBase.prototype.createNull=function(e){return new NullElement(e,this.globalData,this)},SVGRendererBase.prototype.createShape=function(e){return new SVGShapeElement(e,this.globalData,this)},SVGRendererBase.prototype.createText=function(e){return new SVGTextLottieElement(e,this.globalData,this)},SVGRendererBase.prototype.createImage=function(e){return new IImageElement(e,this.globalData,this)},SVGRendererBase.prototype.createSolid=function(e){return new ISolidElement(e,this.globalData,this)},SVGRendererBase.prototype.configAnimation=function(e){this.svgElement.setAttribute("xmlns","http://www.w3.org/2000/svg"),this.svgElement.setAttribute("xmlns:xlink","http://www.w3.org/1999/xlink"),this.renderConfig.viewBoxSize?this.svgElement.setAttribute("viewBox",this.renderConfig.viewBoxSize):this.svgElement.setAttribute("viewBox","0 0 "+e.w+" "+e.h),this.renderConfig.viewBoxOnly||(this.svgElement.setAttribute("width",e.w),this.svgElement.setAttribute("height",e.h),this.svgElement.style.width="100%",this.svgElement.style.height="100%",this.svgElement.style.transform="translate3d(0,0,0)",this.svgElement.style.contentVisibility=this.renderConfig.contentVisibility),this.renderConfig.width&&this.svgElement.setAttribute("width",this.renderConfig.width),this.renderConfig.height&&this.svgElement.setAttribute("height",this.renderConfig.height),this.renderConfig.className&&this.svgElement.setAttribute("class",this.renderConfig.className),this.renderConfig.id&&this.svgElement.setAttribute("id",this.renderConfig.id),this.renderConfig.focusable!==void 0&&this.svgElement.setAttribute("focusable",this.renderConfig.focusable),this.svgElement.setAttribute("preserveAspectRatio",this.renderConfig.preserveAspectRatio),this.animationItem.wrapper.appendChild(this.svgElement);var t=this.globalData.defs;this.setupGlobalData(e,t),this.globalData.progressiveLoad=this.renderConfig.progressiveLoad,this.data=e;var n=createNS("clipPath"),i=createNS("rect");i.setAttribute("width",e.w),i.setAttribute("height",e.h),i.setAttribute("x",0),i.setAttribute("y",0);var s=createElementID();n.setAttribute("id",s),n.appendChild(i),this.layerElement.setAttribute("clip-path","url("+getLocationHref()+"#"+s+")"),t.appendChild(n),this.layers=e.layers,this.elements=createSizedArray(e.layers.length)},SVGRendererBase.prototype.destroy=function(){this.animationItem.wrapper&&(this.animationItem.wrapper.innerText=""),this.layerElement=null,this.globalData.defs=null;var e,t=this.layers?this.layers.length:0;for(e=0;e<t;e+=1)this.elements[e]&&this.elements[e].destroy&&this.elements[e].destroy();this.elements.length=0,this.destroyed=!0,this.animationItem=null},SVGRendererBase.prototype.updateContainerSize=function(){},SVGRendererBase.prototype.findIndexByInd=function(e){var t=0,n=this.layers.length;for(t=0;t<n;t+=1)if(this.layers[t].ind===e)return t;return-1},SVGRendererBase.prototype.buildItem=function(e){var t=this.elements;if(!(t[e]||this.layers[e].ty===99)){t[e]=!0;var n=this.createItem(this.layers[e]);if(t[e]=n,getExpressionsPlugin()&&(this.layers[e].ty===0&&this.globalData.projectInterface.registerComposition(n),n.initExpressions()),this.appendElementInPos(n,e),this.layers[e].tt){var i="tp"in this.layers[e]?this.findIndexByInd(this.layers[e].tp):e-1;if(i===-1)return;if(!this.elements[i]||this.elements[i]===!0)this.buildItem(i),this.addPendingElement(n);else{var s=t[i],a=s.getMatte(this.layers[e].tt);n.setMatte(a)}}}},SVGRendererBase.prototype.checkPendingElements=function(){for(;this.pendingElements.length;){var e=this.pendingElements.pop();if(e.checkParenting(),e.data.tt)for(var t=0,n=this.elements.length;t<n;){if(this.elements[t]===e){var i="tp"in e.data?this.findIndexByInd(e.data.tp):t-1,s=this.elements[i],a=s.getMatte(this.layers[t].tt);e.setMatte(a);break}t+=1}}},SVGRendererBase.prototype.renderFrame=function(e){if(!(this.renderedFrame===e||this.destroyed)){e===null?e=this.renderedFrame:this.renderedFrame=e,this.globalData.frameNum=e,this.globalData.frameId+=1,this.globalData.projectInterface.currentFrame=e,this.globalData._mdf=!1;var t,n=this.layers.length;for(this.completeLayers||this.checkLayers(e),t=n-1;t>=0;t-=1)(this.completeLayers||this.elements[t])&&this.elements[t].prepareFrame(e-this.layers[t].st);if(this.globalData._mdf)for(t=0;t<n;t+=1)(this.completeLayers||this.elements[t])&&this.elements[t].renderFrame()}},SVGRendererBase.prototype.appendElementInPos=function(e,t){var n=e.getBaseElement();if(n){for(var i=0,s;i<t;)this.elements[i]&&this.elements[i]!==!0&&this.elements[i].getBaseElement()&&(s=this.elements[i].getBaseElement()),i+=1;s?this.layerElement.insertBefore(n,s):this.layerElement.appendChild(n)}},SVGRendererBase.prototype.hide=function(){this.layerElement.style.display="none"},SVGRendererBase.prototype.show=function(){this.layerElement.style.display="block"};function ICompElement(){}extendPrototype([BaseElement,TransformElement,HierarchyElement,FrameElement,RenderableDOMElement],ICompElement),ICompElement.prototype.initElement=function(e,t,n){this.initFrame(),this.initBaseData(e,t,n),this.initTransform(e,t,n),this.initRenderable(),this.initHierarchy(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),(this.data.xt||!t.progressiveLoad)&&this.buildAllItems(),this.hide()},ICompElement.prototype.prepareFrame=function(e){if(this._mdf=!1,this.prepareRenderableFrame(e),this.prepareProperties(e,this.isInRange),!(!this.isInRange&&!this.data.xt)){if(this.tm._placeholder)this.renderedFrame=e/this.data.sr;else{var t=this.tm.v;t===this.data.op&&(t=this.data.op-1),this.renderedFrame=t}var n,i=this.elements.length;for(this.completeLayers||this.checkLayers(this.renderedFrame),n=i-1;n>=0;n-=1)(this.completeLayers||this.elements[n])&&(this.elements[n].prepareFrame(this.renderedFrame-this.layers[n].st),this.elements[n]._mdf&&(this._mdf=!0))}},ICompElement.prototype.renderInnerContent=function(){var e,t=this.layers.length;for(e=0;e<t;e+=1)(this.completeLayers||this.elements[e])&&this.elements[e].renderFrame()},ICompElement.prototype.setElements=function(e){this.elements=e},ICompElement.prototype.getElements=function(){return this.elements},ICompElement.prototype.destroyElements=function(){var e,t=this.layers.length;for(e=0;e<t;e+=1)this.elements[e]&&this.elements[e].destroy()},ICompElement.prototype.destroy=function(){this.destroyElements(),this.destroyBaseElement()};function SVGCompElement(e,t,n){this.layers=e.layers,this.supports3d=!0,this.completeLayers=!1,this.pendingElements=[],this.elements=this.layers?createSizedArray(this.layers.length):[],this.initElement(e,t,n),this.tm=e.tm?PropertyFactory.getProp(this,e.tm,0,t.frameRate,this):{_placeholder:!0}}extendPrototype([SVGRendererBase,ICompElement,SVGBaseElement],SVGCompElement),SVGCompElement.prototype.createComp=function(e){return new SVGCompElement(e,this.globalData,this)};function SVGRenderer(e,t){this.animationItem=e,this.layers=null,this.renderedFrame=-1,this.svgElement=createNS("svg");var n="";if(t&&t.title){var i=createNS("title"),s=createElementID();i.setAttribute("id",s),i.textContent=t.title,this.svgElement.appendChild(i),n+=s}if(t&&t.description){var a=createNS("desc"),o=createElementID();a.setAttribute("id",o),a.textContent=t.description,this.svgElement.appendChild(a),n+=" "+o}n&&this.svgElement.setAttribute("aria-labelledby",n);var l=createNS("defs");this.svgElement.appendChild(l);var c=createNS("g");this.svgElement.appendChild(c),this.layerElement=c,this.renderConfig={preserveAspectRatio:t&&t.preserveAspectRatio||"xMidYMid meet",imagePreserveAspectRatio:t&&t.imagePreserveAspectRatio||"xMidYMid slice",contentVisibility:t&&t.contentVisibility||"visible",progressiveLoad:t&&t.progressiveLoad||!1,hideOnTransparent:!(t&&t.hideOnTransparent===!1),viewBoxOnly:t&&t.viewBoxOnly||!1,viewBoxSize:t&&t.viewBoxSize||!1,className:t&&t.className||"",id:t&&t.id||"",focusable:t&&t.focusable,filterSize:{width:t&&t.filterSize&&t.filterSize.width||"100%",height:t&&t.filterSize&&t.filterSize.height||"100%",x:t&&t.filterSize&&t.filterSize.x||"0%",y:t&&t.filterSize&&t.filterSize.y||"0%"},width:t&&t.width,height:t&&t.height,runExpressions:!t||t.runExpressions===void 0||t.runExpressions},this.globalData={_mdf:!1,frameNum:-1,defs:l,renderConfig:this.renderConfig},this.elements=[],this.pendingElements=[],this.destroyed=!1,this.rendererType="svg"}extendPrototype([SVGRendererBase],SVGRenderer),SVGRenderer.prototype.createComp=function(e){return new SVGCompElement(e,this.globalData,this)};function ShapeTransformManager(){this.sequences={},this.sequenceList=[],this.transform_key_count=0}ShapeTransformManager.prototype={addTransformSequence:function(t){var n,i=t.length,s="_";for(n=0;n<i;n+=1)s+=t[n].transform.key+"_";var a=this.sequences[s];return a||(a={transforms:[].concat(t),finalTransform:new Matrix,_mdf:!1},this.sequences[s]=a,this.sequenceList.push(a)),a},processSequence:function(t,n){for(var i=0,s=t.transforms.length,a=n;i<s&&!n;){if(t.transforms[i].transform.mProps._mdf){a=!0;break}i+=1}if(a)for(t.finalTransform.reset(),i=s-1;i>=0;i-=1)t.finalTransform.multiply(t.transforms[i].transform.mProps.v);t._mdf=a},processSequences:function(t){var n,i=this.sequenceList.length;for(n=0;n<i;n+=1)this.processSequence(this.sequenceList[n],t)},getNewKey:function(){return this.transform_key_count+=1,"_"+this.transform_key_count}};var lumaLoader=function(){var t="__lottie_element_luma_buffer",n=null,i=null,s=null;function a(){var c=createNS("svg"),d=createNS("filter"),u=createNS("feColorMatrix");return d.setAttribute("id",t),u.setAttribute("type","matrix"),u.setAttribute("color-interpolation-filters","sRGB"),u.setAttribute("values","0.3, 0.3, 0.3, 0, 0, 0.3, 0.3, 0.3, 0, 0, 0.3, 0.3, 0.3, 0, 0, 0.3, 0.3, 0.3, 0, 0"),d.appendChild(u),c.appendChild(d),c.setAttribute("id",t+"_svg"),featureSupport.svgLumaHidden&&(c.style.display="none"),c}function o(){n||(s=a(),document.body.appendChild(s),n=createTag("canvas"),i=n.getContext("2d"),i.filter="url(#"+t+")",i.fillStyle="rgba(0,0,0,0)",i.fillRect(0,0,1,1))}function l(c){return n||o(),n.width=c.width,n.height=c.height,i.filter="url(#"+t+")",n}return{load:o,get:l}};function createCanvas(e,t){if(featureSupport.offscreenCanvas)return new OffscreenCanvas(e,t);var n=createTag("canvas");return n.width=e,n.height=t,n}var assetLoader=(function(){return{loadLumaCanvas:lumaLoader.load,getLumaCanvas:lumaLoader.get,createCanvas}})(),registeredEffects={};function CVEffects(e){var t,n=e.data.ef?e.data.ef.length:0;this.filters=[];var i;for(t=0;t<n;t+=1){i=null;var s=e.data.ef[t].ty;if(registeredEffects[s]){var a=registeredEffects[s].effect;i=new a(e.effectsManager.effectElements[t],e)}i&&this.filters.push(i)}this.filters.length&&e.addRenderableComponent(this)}CVEffects.prototype.renderFrame=function(e){var t,n=this.filters.length;for(t=0;t<n;t+=1)this.filters[t].renderFrame(e)},CVEffects.prototype.getEffects=function(e){var t,n=this.filters.length,i=[];for(t=0;t<n;t+=1)this.filters[t].type===e&&i.push(this.filters[t]);return i};function registerEffect(e,t){registeredEffects[e]={effect:t}}function CVMaskElement(e,t){this.data=e,this.element=t,this.masksProperties=this.data.masksProperties||[],this.viewData=createSizedArray(this.masksProperties.length);var n,i=this.masksProperties.length,s=!1;for(n=0;n<i;n+=1)this.masksProperties[n].mode!=="n"&&(s=!0),this.viewData[n]=ShapePropertyFactory.getShapeProp(this.element,this.masksProperties[n],3);this.hasMasks=s,s&&this.element.addRenderableComponent(this)}CVMaskElement.prototype.renderFrame=function(){if(this.hasMasks){var e=this.element.finalTransform.mat,t=this.element.canvasContext,n,i=this.masksProperties.length,s,a,o;for(t.beginPath(),n=0;n<i;n+=1)if(this.masksProperties[n].mode!=="n"){this.masksProperties[n].inv&&(t.moveTo(0,0),t.lineTo(this.element.globalData.compSize.w,0),t.lineTo(this.element.globalData.compSize.w,this.element.globalData.compSize.h),t.lineTo(0,this.element.globalData.compSize.h),t.lineTo(0,0)),o=this.viewData[n].v,s=e.applyToPointArray(o.v[0][0],o.v[0][1],0),t.moveTo(s[0],s[1]);var l,c=o._length;for(l=1;l<c;l+=1)a=e.applyToTriplePoints(o.o[l-1],o.i[l],o.v[l]),t.bezierCurveTo(a[0],a[1],a[2],a[3],a[4],a[5]);a=e.applyToTriplePoints(o.o[l-1],o.i[0],o.v[0]),t.bezierCurveTo(a[0],a[1],a[2],a[3],a[4],a[5])}this.element.globalData.renderer.save(!0),t.clip()}},CVMaskElement.prototype.getMaskProperty=MaskElement.prototype.getMaskProperty,CVMaskElement.prototype.destroy=function(){this.element=null};function CVBaseElement(){}var operationsMap={1:"source-in",2:"source-out",3:"source-in",4:"source-out"};CVBaseElement.prototype={createElements:function(){},initRendererElement:function(){},createContainerElements:function(){if(this.data.tt>=1){this.buffers=[];var t=this.globalData.canvasContext,n=assetLoader.createCanvas(t.canvas.width,t.canvas.height);this.buffers.push(n);var i=assetLoader.createCanvas(t.canvas.width,t.canvas.height);this.buffers.push(i),this.data.tt>=3&&!document._isProxy&&assetLoader.loadLumaCanvas()}this.canvasContext=this.globalData.canvasContext,this.transformCanvas=this.globalData.transformCanvas,this.renderableEffectsManager=new CVEffects(this),this.searchEffectTransforms()},createContent:function(){},setBlendMode:function(){var t=this.globalData;if(t.blendMode!==this.data.bm){t.blendMode=this.data.bm;var n=getBlendMode(this.data.bm);t.canvasContext.globalCompositeOperation=n}},createRenderableComponents:function(){this.maskManager=new CVMaskElement(this.data,this),this.transformEffects=this.renderableEffectsManager.getEffects(effectTypes.TRANSFORM_EFFECT)},hideElement:function(){!this.hidden&&(!this.isInRange||this.isTransparent)&&(this.hidden=!0)},showElement:function(){this.isInRange&&!this.isTransparent&&(this.hidden=!1,this._isFirstFrame=!0,this.maskManager._isFirstFrame=!0)},clearCanvas:function(t){t.clearRect(this.transformCanvas.tx,this.transformCanvas.ty,this.transformCanvas.w*this.transformCanvas.sx,this.transformCanvas.h*this.transformCanvas.sy)},prepareLayer:function(){if(this.data.tt>=1){var t=this.buffers[0],n=t.getContext("2d");this.clearCanvas(n),n.drawImage(this.canvasContext.canvas,0,0),this.currentTransform=this.canvasContext.getTransform(),this.canvasContext.setTransform(1,0,0,1,0,0),this.clearCanvas(this.canvasContext),this.canvasContext.setTransform(this.currentTransform)}},exitLayer:function(){if(this.data.tt>=1){var t=this.buffers[1],n=t.getContext("2d");this.clearCanvas(n),n.drawImage(this.canvasContext.canvas,0,0),this.canvasContext.setTransform(1,0,0,1,0,0),this.clearCanvas(this.canvasContext),this.canvasContext.setTransform(this.currentTransform);var i=this.comp.getElementById("tp"in this.data?this.data.tp:this.data.ind-1);if(i.renderFrame(!0),this.canvasContext.setTransform(1,0,0,1,0,0),this.data.tt>=3&&!document._isProxy){var s=assetLoader.getLumaCanvas(this.canvasContext.canvas),a=s.getContext("2d");a.drawImage(this.canvasContext.canvas,0,0),this.clearCanvas(this.canvasContext),this.canvasContext.drawImage(s,0,0)}this.canvasContext.globalCompositeOperation=operationsMap[this.data.tt],this.canvasContext.drawImage(t,0,0),this.canvasContext.globalCompositeOperation="destination-over",this.canvasContext.drawImage(this.buffers[0],0,0),this.canvasContext.setTransform(this.currentTransform),this.canvasContext.globalCompositeOperation="source-over"}},renderFrame:function(t){if(!(this.hidden||this.data.hd)&&!(this.data.td===1&&!t)){this.renderTransform(),this.renderRenderable(),this.renderLocalTransform(),this.setBlendMode();var n=this.data.ty===0;this.prepareLayer(),this.globalData.renderer.save(n),this.globalData.renderer.ctxTransform(this.finalTransform.localMat.props),this.globalData.renderer.ctxOpacity(this.finalTransform.localOpacity),this.renderInnerContent(),this.globalData.renderer.restore(n),this.exitLayer(),this.maskManager.hasMasks&&this.globalData.renderer.restore(!0),this._isFirstFrame&&(this._isFirstFrame=!1)}},destroy:function(){this.canvasContext=null,this.data=null,this.globalData=null,this.maskManager.destroy()},mHelper:new Matrix},CVBaseElement.prototype.hide=CVBaseElement.prototype.hideElement,CVBaseElement.prototype.show=CVBaseElement.prototype.showElement;function CVShapeData(e,t,n,i){this.styledShapes=[],this.tr=[0,0,0,0,0,0];var s=4;t.ty==="rc"?s=5:t.ty==="el"?s=6:t.ty==="sr"&&(s=7),this.sh=ShapePropertyFactory.getShapeProp(e,t,s,e);var a,o=n.length,l;for(a=0;a<o;a+=1)n[a].closed||(l={transforms:i.addTransformSequence(n[a].transforms),trNodes:[]},this.styledShapes.push(l),n[a].elements.push(l))}CVShapeData.prototype.setAsAnimated=SVGShapeData.prototype.setAsAnimated;function CVShapeElement(e,t,n){this.shapes=[],this.shapesData=e.shapes,this.stylesList=[],this.itemsData=[],this.prevViewData=[],this.shapeModifiers=[],this.processedElements=[],this.transformsManager=new ShapeTransformManager,this.initElement(e,t,n)}extendPrototype([BaseElement,TransformElement,CVBaseElement,IShapeElement,HierarchyElement,FrameElement,RenderableElement],CVShapeElement),CVShapeElement.prototype.initElement=RenderableDOMElement.prototype.initElement,CVShapeElement.prototype.transformHelper={opacity:1,_opMdf:!1},CVShapeElement.prototype.dashResetter=[],CVShapeElement.prototype.createContent=function(){this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,!0,[])},CVShapeElement.prototype.createStyleElement=function(e,t){var n={data:e,type:e.ty,preTransforms:this.transformsManager.addTransformSequence(t),transforms:[],elements:[],closed:e.hd===!0},i={};if(e.ty==="fl"||e.ty==="st"?(i.c=PropertyFactory.getProp(this,e.c,1,255,this),i.c.k||(n.co="rgb("+bmFloor(i.c.v[0])+","+bmFloor(i.c.v[1])+","+bmFloor(i.c.v[2])+")")):(e.ty==="gf"||e.ty==="gs")&&(i.s=PropertyFactory.getProp(this,e.s,1,null,this),i.e=PropertyFactory.getProp(this,e.e,1,null,this),i.h=PropertyFactory.getProp(this,e.h||{k:0},0,.01,this),i.a=PropertyFactory.getProp(this,e.a||{k:0},0,degToRads,this),i.g=new GradientProperty(this,e.g,this)),i.o=PropertyFactory.getProp(this,e.o,0,.01,this),e.ty==="st"||e.ty==="gs"){if(n.lc=lineCapEnum[e.lc||2],n.lj=lineJoinEnum[e.lj||2],e.lj==1&&(n.ml=e.ml),i.w=PropertyFactory.getProp(this,e.w,0,null,this),i.w.k||(n.wi=i.w.v),e.d){var s=new DashProperty(this,e.d,"canvas",this);i.d=s,i.d.k||(n.da=i.d.dashArray,n.do=i.d.dashoffset[0])}}else n.r=e.r===2?"evenodd":"nonzero";return this.stylesList.push(n),i.style=n,i},CVShapeElement.prototype.createGroupElement=function(){var e={it:[],prevViewData:[]};return e},CVShapeElement.prototype.createTransformElement=function(e){var t={transform:{opacity:1,_opMdf:!1,key:this.transformsManager.getNewKey(),op:PropertyFactory.getProp(this,e.o,0,.01,this),mProps:TransformPropertyFactory.getTransformProperty(this,e,this)}};return t},CVShapeElement.prototype.createShapeElement=function(e){var t=new CVShapeData(this,e,this.stylesList,this.transformsManager);return this.shapes.push(t),this.addShapeToModifiers(t),t},CVShapeElement.prototype.reloadShapes=function(){this._isFirstFrame=!0;var e,t=this.itemsData.length;for(e=0;e<t;e+=1)this.prevViewData[e]=this.itemsData[e];for(this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,!0,[]),t=this.dynamicProperties.length,e=0;e<t;e+=1)this.dynamicProperties[e].getValue();this.renderModifiers(),this.transformsManager.processSequences(this._isFirstFrame)},CVShapeElement.prototype.addTransformToStyleList=function(e){var t,n=this.stylesList.length;for(t=0;t<n;t+=1)this.stylesList[t].closed||this.stylesList[t].transforms.push(e)},CVShapeElement.prototype.removeTransformFromStyleList=function(){var e,t=this.stylesList.length;for(e=0;e<t;e+=1)this.stylesList[e].closed||this.stylesList[e].transforms.pop()},CVShapeElement.prototype.closeStyles=function(e){var t,n=e.length;for(t=0;t<n;t+=1)e[t].closed=!0},CVShapeElement.prototype.searchShapes=function(e,t,n,i,s){var a,o=e.length-1,l,c,d=[],u=[],p,h,y,f=[].concat(s);for(a=o;a>=0;a-=1){if(p=this.searchProcessedElement(e[a]),p?t[a]=n[p-1]:e[a]._shouldRender=i,e[a].ty==="fl"||e[a].ty==="st"||e[a].ty==="gf"||e[a].ty==="gs")p?t[a].style.closed=!1:t[a]=this.createStyleElement(e[a],f),d.push(t[a].style);else if(e[a].ty==="gr"){if(!p)t[a]=this.createGroupElement(e[a]);else for(c=t[a].it.length,l=0;l<c;l+=1)t[a].prevViewData[l]=t[a].it[l];this.searchShapes(e[a].it,t[a].it,t[a].prevViewData,i,f)}else e[a].ty==="tr"?(p||(y=this.createTransformElement(e[a]),t[a]=y),f.push(t[a]),this.addTransformToStyleList(t[a])):e[a].ty==="sh"||e[a].ty==="rc"||e[a].ty==="el"||e[a].ty==="sr"?p||(t[a]=this.createShapeElement(e[a])):e[a].ty==="tm"||e[a].ty==="rd"||e[a].ty==="pb"||e[a].ty==="zz"||e[a].ty==="op"?(p?(h=t[a],h.closed=!1):(h=ShapeModifiers.getModifier(e[a].ty),h.init(this,e[a]),t[a]=h,this.shapeModifiers.push(h)),u.push(h)):e[a].ty==="rp"&&(p?(h=t[a],h.closed=!0):(h=ShapeModifiers.getModifier(e[a].ty),t[a]=h,h.init(this,e,a,t),this.shapeModifiers.push(h),i=!1),u.push(h));this.addProcessedElement(e[a],a+1)}for(this.removeTransformFromStyleList(),this.closeStyles(d),o=u.length,a=0;a<o;a+=1)u[a].closed=!0},CVShapeElement.prototype.renderInnerContent=function(){this.transformHelper.opacity=1,this.transformHelper._opMdf=!1,this.renderModifiers(),this.transformsManager.processSequences(this._isFirstFrame),this.renderShape(this.transformHelper,this.shapesData,this.itemsData,!0)},CVShapeElement.prototype.renderShapeTransform=function(e,t){(e._opMdf||t.op._mdf||this._isFirstFrame)&&(t.opacity=e.opacity,t.opacity*=t.op.v,t._opMdf=!0)},CVShapeElement.prototype.drawLayer=function(){var e,t=this.stylesList.length,n,i,s,a,o,l,c=this.globalData.renderer,d=this.globalData.canvasContext,u,p;for(e=0;e<t;e+=1)if(p=this.stylesList[e],u=p.type,!((u==="st"||u==="gs")&&p.wi===0||!p.data._shouldRender||p.coOp===0||this.globalData.currentGlobalAlpha===0)){for(c.save(),o=p.elements,u==="st"||u==="gs"?(c.ctxStrokeStyle(u==="st"?p.co:p.grd),c.ctxLineWidth(p.wi),c.ctxLineCap(p.lc),c.ctxLineJoin(p.lj),c.ctxMiterLimit(p.ml||0)):c.ctxFillStyle(u==="fl"?p.co:p.grd),c.ctxOpacity(p.coOp),u!=="st"&&u!=="gs"&&d.beginPath(),c.ctxTransform(p.preTransforms.finalTransform.props),i=o.length,n=0;n<i;n+=1){for((u==="st"||u==="gs")&&(d.beginPath(),p.da&&(d.setLineDash(p.da),d.lineDashOffset=p.do)),l=o[n].trNodes,a=l.length,s=0;s<a;s+=1)l[s].t==="m"?d.moveTo(l[s].p[0],l[s].p[1]):l[s].t==="c"?d.bezierCurveTo(l[s].pts[0],l[s].pts[1],l[s].pts[2],l[s].pts[3],l[s].pts[4],l[s].pts[5]):d.closePath();(u==="st"||u==="gs")&&(c.ctxStroke(),p.da&&d.setLineDash(this.dashResetter))}u!=="st"&&u!=="gs"&&this.globalData.renderer.ctxFill(p.r),c.restore()}},CVShapeElement.prototype.renderShape=function(e,t,n,i){var s,a=t.length-1,o;for(o=e,s=a;s>=0;s-=1)t[s].ty==="tr"?(o=n[s].transform,this.renderShapeTransform(e,o)):t[s].ty==="sh"||t[s].ty==="el"||t[s].ty==="rc"||t[s].ty==="sr"?this.renderPath(t[s],n[s]):t[s].ty==="fl"?this.renderFill(t[s],n[s],o):t[s].ty==="st"?this.renderStroke(t[s],n[s],o):t[s].ty==="gf"||t[s].ty==="gs"?this.renderGradientFill(t[s],n[s],o):t[s].ty==="gr"?this.renderShape(o,t[s].it,n[s].it):t[s].ty;i&&this.drawLayer()},CVShapeElement.prototype.renderStyledShape=function(e,t){if(this._isFirstFrame||t._mdf||e.transforms._mdf){var n=e.trNodes,i=t.paths,s,a,o,l=i._length;n.length=0;var c=e.transforms.finalTransform;for(o=0;o<l;o+=1){var d=i.shapes[o];if(d&&d.v){for(a=d._length,s=1;s<a;s+=1)s===1&&n.push({t:"m",p:c.applyToPointArray(d.v[0][0],d.v[0][1],0)}),n.push({t:"c",pts:c.applyToTriplePoints(d.o[s-1],d.i[s],d.v[s])});a===1&&n.push({t:"m",p:c.applyToPointArray(d.v[0][0],d.v[0][1],0)}),d.c&&a&&(n.push({t:"c",pts:c.applyToTriplePoints(d.o[s-1],d.i[0],d.v[0])}),n.push({t:"z"}))}}e.trNodes=n}},CVShapeElement.prototype.renderPath=function(e,t){if(e.hd!==!0&&e._shouldRender){var n,i=t.styledShapes.length;for(n=0;n<i;n+=1)this.renderStyledShape(t.styledShapes[n],t.sh)}},CVShapeElement.prototype.renderFill=function(e,t,n){var i=t.style;(t.c._mdf||this._isFirstFrame)&&(i.co="rgb("+bmFloor(t.c.v[0])+","+bmFloor(t.c.v[1])+","+bmFloor(t.c.v[2])+")"),(t.o._mdf||n._opMdf||this._isFirstFrame)&&(i.coOp=t.o.v*n.opacity)},CVShapeElement.prototype.renderGradientFill=function(e,t,n){var i=t.style,s;if(!i.grd||t.g._mdf||t.s._mdf||t.e._mdf||e.t!==1&&(t.h._mdf||t.a._mdf)){var a=this.globalData.canvasContext,o=t.s.v,l=t.e.v;if(e.t===1)s=a.createLinearGradient(o[0],o[1],l[0],l[1]);else{var c=Math.sqrt(Math.pow(o[0]-l[0],2)+Math.pow(o[1]-l[1],2)),d=Math.atan2(l[1]-o[1],l[0]-o[0]),u=t.h.v;u>=1?u=.99:u<=-1&&(u=-.99);var p=c*u,h=Math.cos(d+t.a.v)*p+o[0],y=Math.sin(d+t.a.v)*p+o[1];s=a.createRadialGradient(h,y,0,o[0],o[1],c)}var f,m=e.g.p,C=t.g.c,g=1;for(f=0;f<m;f+=1)t.g._hasOpacity&&t.g._collapsable&&(g=t.g.o[f*2+1]),s.addColorStop(C[f*4]/100,"rgba("+C[f*4+1]+","+C[f*4+2]+","+C[f*4+3]+","+g+")");i.grd=s}i.coOp=t.o.v*n.opacity},CVShapeElement.prototype.renderStroke=function(e,t,n){var i=t.style,s=t.d;s&&(s._mdf||this._isFirstFrame)&&(i.da=s.dashArray,i.do=s.dashoffset[0]),(t.c._mdf||this._isFirstFrame)&&(i.co="rgb("+bmFloor(t.c.v[0])+","+bmFloor(t.c.v[1])+","+bmFloor(t.c.v[2])+")"),(t.o._mdf||n._opMdf||this._isFirstFrame)&&(i.coOp=t.o.v*n.opacity),(t.w._mdf||this._isFirstFrame)&&(i.wi=t.w.v)},CVShapeElement.prototype.destroy=function(){this.shapesData=null,this.globalData=null,this.canvasContext=null,this.stylesList.length=0,this.itemsData.length=0};function CVTextElement(e,t,n){this.textSpans=[],this.yOffset=0,this.fillColorAnim=!1,this.strokeColorAnim=!1,this.strokeWidthAnim=!1,this.stroke=!1,this.fill=!1,this.justifyOffset=0,this.currentRender=null,this.renderType="canvas",this.values={fill:"rgba(0,0,0,0)",stroke:"rgba(0,0,0,0)",sWidth:0,fValue:""},this.initElement(e,t,n)}extendPrototype([BaseElement,TransformElement,CVBaseElement,HierarchyElement,FrameElement,RenderableElement,ITextElement],CVTextElement),CVTextElement.prototype.tHelper=createTag("canvas").getContext("2d"),CVTextElement.prototype.buildNewText=function(){var e=this.textProperty.currentData;this.renderedLetters=createSizedArray(e.l?e.l.length:0);var t=!1;e.fc?(t=!0,this.values.fill=this.buildColor(e.fc)):this.values.fill="rgba(0,0,0,0)",this.fill=t;var n=!1;e.sc&&(n=!0,this.values.stroke=this.buildColor(e.sc),this.values.sWidth=e.sw);var i=this.globalData.fontManager.getFontByName(e.f),s,a,o=e.l,l=this.mHelper;this.stroke=n,this.values.fValue=e.finalSize+"px "+this.globalData.fontManager.getFontByName(e.f).fFamily,a=e.finalText.length;var c,d,u,p,h,y,f,m,C,g,b=this.data.singleShape,v=e.tr*.001*e.finalSize,N=0,w=0,E=!0,_=0;for(s=0;s<a;s+=1){c=this.globalData.fontManager.getCharData(e.finalText[s],i.fStyle,this.globalData.fontManager.getFontByName(e.f).fFamily),d=c&&c.data||{},l.reset(),b&&o[s].n&&(N=-v,w+=e.yOffset,w+=E?1:0,E=!1),h=d.shapes?d.shapes[0].it:[],f=h.length,l.scale(e.finalSize/100,e.finalSize/100),b&&this.applyTextPropertiesToMatrix(e,l,o[s].line,N,w),C=createSizedArray(f-1);var k=0;for(y=0;y<f;y+=1)if(h[y].ty==="sh"){for(p=h[y].ks.k.i.length,m=h[y].ks.k,g=[],u=1;u<p;u+=1)u===1&&g.push(l.applyToX(m.v[0][0],m.v[0][1],0),l.applyToY(m.v[0][0],m.v[0][1],0)),g.push(l.applyToX(m.o[u-1][0],m.o[u-1][1],0),l.applyToY(m.o[u-1][0],m.o[u-1][1],0),l.applyToX(m.i[u][0],m.i[u][1],0),l.applyToY(m.i[u][0],m.i[u][1],0),l.applyToX(m.v[u][0],m.v[u][1],0),l.applyToY(m.v[u][0],m.v[u][1],0));g.push(l.applyToX(m.o[u-1][0],m.o[u-1][1],0),l.applyToY(m.o[u-1][0],m.o[u-1][1],0),l.applyToX(m.i[0][0],m.i[0][1],0),l.applyToY(m.i[0][0],m.i[0][1],0),l.applyToX(m.v[0][0],m.v[0][1],0),l.applyToY(m.v[0][0],m.v[0][1],0)),C[k]=g,k+=1}b&&(N+=o[s].l,N+=v),this.textSpans[_]?this.textSpans[_].elem=C:this.textSpans[_]={elem:C},_+=1}},CVTextElement.prototype.renderInnerContent=function(){this.validateText();var e=this.canvasContext;e.font=this.values.fValue,this.globalData.renderer.ctxLineCap("butt"),this.globalData.renderer.ctxLineJoin("miter"),this.globalData.renderer.ctxMiterLimit(4),this.data.singleShape||this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag);var t,n,i,s,a,o,l=this.textAnimator.renderedLetters,c=this.textProperty.currentData.l;n=c.length;var d,u=null,p=null,h=null,y,f,m=this.globalData.renderer;for(t=0;t<n;t+=1)if(!c[t].n){if(d=l[t],d&&(m.save(),m.ctxTransform(d.p),m.ctxOpacity(d.o)),this.fill){for(d&&d.fc?u!==d.fc&&(m.ctxFillStyle(d.fc),u=d.fc):u!==this.values.fill&&(u=this.values.fill,m.ctxFillStyle(this.values.fill)),y=this.textSpans[t].elem,s=y.length,this.globalData.canvasContext.beginPath(),i=0;i<s;i+=1)for(f=y[i],o=f.length,this.globalData.canvasContext.moveTo(f[0],f[1]),a=2;a<o;a+=6)this.globalData.canvasContext.bezierCurveTo(f[a],f[a+1],f[a+2],f[a+3],f[a+4],f[a+5]);this.globalData.canvasContext.closePath(),m.ctxFill()}if(this.stroke){for(d&&d.sw?h!==d.sw&&(h=d.sw,m.ctxLineWidth(d.sw)):h!==this.values.sWidth&&(h=this.values.sWidth,m.ctxLineWidth(this.values.sWidth)),d&&d.sc?p!==d.sc&&(p=d.sc,m.ctxStrokeStyle(d.sc)):p!==this.values.stroke&&(p=this.values.stroke,m.ctxStrokeStyle(this.values.stroke)),y=this.textSpans[t].elem,s=y.length,this.globalData.canvasContext.beginPath(),i=0;i<s;i+=1)for(f=y[i],o=f.length,this.globalData.canvasContext.moveTo(f[0],f[1]),a=2;a<o;a+=6)this.globalData.canvasContext.bezierCurveTo(f[a],f[a+1],f[a+2],f[a+3],f[a+4],f[a+5]);this.globalData.canvasContext.closePath(),m.ctxStroke()}d&&this.globalData.renderer.restore()}};function CVImageElement(e,t,n){this.assetData=t.getAssetData(e.refId),this.img=t.imageLoader.getAsset(this.assetData),this.initElement(e,t,n)}extendPrototype([BaseElement,TransformElement,CVBaseElement,HierarchyElement,FrameElement,RenderableElement],CVImageElement),CVImageElement.prototype.initElement=SVGShapeElement.prototype.initElement,CVImageElement.prototype.prepareFrame=IImageElement.prototype.prepareFrame,CVImageElement.prototype.createContent=function(){if(this.img.width&&(this.assetData.w!==this.img.width||this.assetData.h!==this.img.height)){var e=createTag("canvas");e.width=this.assetData.w,e.height=this.assetData.h;var t=e.getContext("2d"),n=this.img.width,i=this.img.height,s=n/i,a=this.assetData.w/this.assetData.h,o,l,c=this.assetData.pr||this.globalData.renderConfig.imagePreserveAspectRatio;s>a&&c==="xMidYMid slice"||s<a&&c!=="xMidYMid slice"?(l=i,o=l*a):(o=n,l=o/a),t.drawImage(this.img,(n-o)/2,(i-l)/2,o,l,0,0,this.assetData.w,this.assetData.h),this.img=e}},CVImageElement.prototype.renderInnerContent=function(){this.canvasContext.drawImage(this.img,0,0)},CVImageElement.prototype.destroy=function(){this.img=null};function CVSolidElement(e,t,n){this.initElement(e,t,n)}extendPrototype([BaseElement,TransformElement,CVBaseElement,HierarchyElement,FrameElement,RenderableElement],CVSolidElement),CVSolidElement.prototype.initElement=SVGShapeElement.prototype.initElement,CVSolidElement.prototype.prepareFrame=IImageElement.prototype.prepareFrame,CVSolidElement.prototype.renderInnerContent=function(){this.globalData.renderer.ctxFillStyle(this.data.sc),this.globalData.renderer.ctxFillRect(0,0,this.data.sw,this.data.sh)};function CanvasRendererBase(){}extendPrototype([BaseRenderer],CanvasRendererBase),CanvasRendererBase.prototype.createShape=function(e){return new CVShapeElement(e,this.globalData,this)},CanvasRendererBase.prototype.createText=function(e){return new CVTextElement(e,this.globalData,this)},CanvasRendererBase.prototype.createImage=function(e){return new CVImageElement(e,this.globalData,this)},CanvasRendererBase.prototype.createSolid=function(e){return new CVSolidElement(e,this.globalData,this)},CanvasRendererBase.prototype.createNull=SVGRenderer.prototype.createNull,CanvasRendererBase.prototype.ctxTransform=function(e){e[0]===1&&e[1]===0&&e[4]===0&&e[5]===1&&e[12]===0&&e[13]===0||this.canvasContext.transform(e[0],e[1],e[4],e[5],e[12],e[13])},CanvasRendererBase.prototype.ctxOpacity=function(e){this.canvasContext.globalAlpha*=e<0?0:e},CanvasRendererBase.prototype.ctxFillStyle=function(e){this.canvasContext.fillStyle=e},CanvasRendererBase.prototype.ctxStrokeStyle=function(e){this.canvasContext.strokeStyle=e},CanvasRendererBase.prototype.ctxLineWidth=function(e){this.canvasContext.lineWidth=e},CanvasRendererBase.prototype.ctxLineCap=function(e){this.canvasContext.lineCap=e},CanvasRendererBase.prototype.ctxLineJoin=function(e){this.canvasContext.lineJoin=e},CanvasRendererBase.prototype.ctxMiterLimit=function(e){this.canvasContext.miterLimit=e},CanvasRendererBase.prototype.ctxFill=function(e){this.canvasContext.fill(e)},CanvasRendererBase.prototype.ctxFillRect=function(e,t,n,i){this.canvasContext.fillRect(e,t,n,i)},CanvasRendererBase.prototype.ctxStroke=function(){this.canvasContext.stroke()},CanvasRendererBase.prototype.reset=function(){if(!this.renderConfig.clearCanvas){this.canvasContext.restore();return}this.contextData.reset()},CanvasRendererBase.prototype.save=function(){this.canvasContext.save()},CanvasRendererBase.prototype.restore=function(e){if(!this.renderConfig.clearCanvas){this.canvasContext.restore();return}e&&(this.globalData.blendMode="source-over"),this.contextData.restore(e)},CanvasRendererBase.prototype.configAnimation=function(e){if(this.animationItem.wrapper){this.animationItem.container=createTag("canvas");var t=this.animationItem.container.style;t.width="100%",t.height="100%";var n="0px 0px 0px";t.transformOrigin=n,t.mozTransformOrigin=n,t.webkitTransformOrigin=n,t["-webkit-transform"]=n,t.contentVisibility=this.renderConfig.contentVisibility,this.animationItem.wrapper.appendChild(this.animationItem.container),this.canvasContext=this.animationItem.container.getContext("2d"),this.renderConfig.className&&this.animationItem.container.setAttribute("class",this.renderConfig.className),this.renderConfig.id&&this.animationItem.container.setAttribute("id",this.renderConfig.id)}else this.canvasContext=this.renderConfig.context;this.contextData.setContext(this.canvasContext),this.data=e,this.layers=e.layers,this.transformCanvas={w:e.w,h:e.h,sx:0,sy:0,tx:0,ty:0},this.setupGlobalData(e,document.body),this.globalData.canvasContext=this.canvasContext,this.globalData.renderer=this,this.globalData.isDashed=!1,this.globalData.progressiveLoad=this.renderConfig.progressiveLoad,this.globalData.transformCanvas=this.transformCanvas,this.elements=createSizedArray(e.layers.length),this.updateContainerSize()},CanvasRendererBase.prototype.updateContainerSize=function(e,t){this.reset();var n,i;e?(n=e,i=t,this.canvasContext.canvas.width=n,this.canvasContext.canvas.height=i):(this.animationItem.wrapper&&this.animationItem.container?(n=this.animationItem.wrapper.offsetWidth,i=this.animationItem.wrapper.offsetHeight):(n=this.canvasContext.canvas.width,i=this.canvasContext.canvas.height),this.canvasContext.canvas.width=n*this.renderConfig.dpr,this.canvasContext.canvas.height=i*this.renderConfig.dpr);var s,a;if(this.renderConfig.preserveAspectRatio.indexOf("meet")!==-1||this.renderConfig.preserveAspectRatio.indexOf("slice")!==-1){var o=this.renderConfig.preserveAspectRatio.split(" "),l=o[1]||"meet",c=o[0]||"xMidYMid",d=c.substr(0,4),u=c.substr(4);s=n/i,a=this.transformCanvas.w/this.transformCanvas.h,a>s&&l==="meet"||a<s&&l==="slice"?(this.transformCanvas.sx=n/(this.transformCanvas.w/this.renderConfig.dpr),this.transformCanvas.sy=n/(this.transformCanvas.w/this.renderConfig.dpr)):(this.transformCanvas.sx=i/(this.transformCanvas.h/this.renderConfig.dpr),this.transformCanvas.sy=i/(this.transformCanvas.h/this.renderConfig.dpr)),d==="xMid"&&(a<s&&l==="meet"||a>s&&l==="slice")?this.transformCanvas.tx=(n-this.transformCanvas.w*(i/this.transformCanvas.h))/2*this.renderConfig.dpr:d==="xMax"&&(a<s&&l==="meet"||a>s&&l==="slice")?this.transformCanvas.tx=(n-this.transformCanvas.w*(i/this.transformCanvas.h))*this.renderConfig.dpr:this.transformCanvas.tx=0,u==="YMid"&&(a>s&&l==="meet"||a<s&&l==="slice")?this.transformCanvas.ty=(i-this.transformCanvas.h*(n/this.transformCanvas.w))/2*this.renderConfig.dpr:u==="YMax"&&(a>s&&l==="meet"||a<s&&l==="slice")?this.transformCanvas.ty=(i-this.transformCanvas.h*(n/this.transformCanvas.w))*this.renderConfig.dpr:this.transformCanvas.ty=0}else this.renderConfig.preserveAspectRatio==="none"?(this.transformCanvas.sx=n/(this.transformCanvas.w/this.renderConfig.dpr),this.transformCanvas.sy=i/(this.transformCanvas.h/this.renderConfig.dpr),this.transformCanvas.tx=0,this.transformCanvas.ty=0):(this.transformCanvas.sx=this.renderConfig.dpr,this.transformCanvas.sy=this.renderConfig.dpr,this.transformCanvas.tx=0,this.transformCanvas.ty=0);this.transformCanvas.props=[this.transformCanvas.sx,0,0,0,0,this.transformCanvas.sy,0,0,0,0,1,0,this.transformCanvas.tx,this.transformCanvas.ty,0,1],this.ctxTransform(this.transformCanvas.props),this.canvasContext.beginPath(),this.canvasContext.rect(0,0,this.transformCanvas.w,this.transformCanvas.h),this.canvasContext.closePath(),this.canvasContext.clip(),this.renderFrame(this.renderedFrame,!0)},CanvasRendererBase.prototype.destroy=function(){this.renderConfig.clearCanvas&&this.animationItem.wrapper&&(this.animationItem.wrapper.innerText="");var e,t=this.layers?this.layers.length:0;for(e=t-1;e>=0;e-=1)this.elements[e]&&this.elements[e].destroy&&this.elements[e].destroy();this.elements.length=0,this.globalData.canvasContext=null,this.animationItem.container=null,this.destroyed=!0},CanvasRendererBase.prototype.renderFrame=function(e,t){if(!(this.renderedFrame===e&&this.renderConfig.clearCanvas===!0&&!t||this.destroyed||e===-1)){this.renderedFrame=e,this.globalData.frameNum=e-this.animationItem._isFirstFrame,this.globalData.frameId+=1,this.globalData._mdf=!this.renderConfig.clearCanvas||t,this.globalData.projectInterface.currentFrame=e;var n,i=this.layers.length;for(this.completeLayers||this.checkLayers(e),n=i-1;n>=0;n-=1)(this.completeLayers||this.elements[n])&&this.elements[n].prepareFrame(e-this.layers[n].st);if(this.globalData._mdf){for(this.renderConfig.clearCanvas===!0?this.canvasContext.clearRect(0,0,this.transformCanvas.w,this.transformCanvas.h):this.save(),n=i-1;n>=0;n-=1)(this.completeLayers||this.elements[n])&&this.elements[n].renderFrame();this.renderConfig.clearCanvas!==!0&&this.restore()}}},CanvasRendererBase.prototype.buildItem=function(e){var t=this.elements;if(!(t[e]||this.layers[e].ty===99)){var n=this.createItem(this.layers[e],this,this.globalData);t[e]=n,n.initExpressions()}},CanvasRendererBase.prototype.checkPendingElements=function(){for(;this.pendingElements.length;){var e=this.pendingElements.pop();e.checkParenting()}},CanvasRendererBase.prototype.hide=function(){this.animationItem.container.style.display="none"},CanvasRendererBase.prototype.show=function(){this.animationItem.container.style.display="block"};function CanvasContext(){this.opacity=-1,this.transform=createTypedArray("float32",16),this.fillStyle="",this.strokeStyle="",this.lineWidth="",this.lineCap="",this.lineJoin="",this.miterLimit="",this.id=Math.random()}function CVContextData(){this.stack=[],this.cArrPos=0,this.cTr=new Matrix;var e,t=15;for(e=0;e<t;e+=1){var n=new CanvasContext;this.stack[e]=n}this._length=t,this.nativeContext=null,this.transformMat=new Matrix,this.currentOpacity=1,this.currentFillStyle="",this.appliedFillStyle="",this.currentStrokeStyle="",this.appliedStrokeStyle="",this.currentLineWidth="",this.appliedLineWidth="",this.currentLineCap="",this.appliedLineCap="",this.currentLineJoin="",this.appliedLineJoin="",this.appliedMiterLimit="",this.currentMiterLimit=""}CVContextData.prototype.duplicate=function(){var e=this._length*2,t=0;for(t=this._length;t<e;t+=1)this.stack[t]=new CanvasContext;this._length=e},CVContextData.prototype.reset=function(){this.cArrPos=0,this.cTr.reset(),this.stack[this.cArrPos].opacity=1},CVContextData.prototype.restore=function(e){this.cArrPos-=1;var t=this.stack[this.cArrPos],n=t.transform,i,s=this.cTr.props;for(i=0;i<16;i+=1)s[i]=n[i];if(e){this.nativeContext.restore();var a=this.stack[this.cArrPos+1];this.appliedFillStyle=a.fillStyle,this.appliedStrokeStyle=a.strokeStyle,this.appliedLineWidth=a.lineWidth,this.appliedLineCap=a.lineCap,this.appliedLineJoin=a.lineJoin,this.appliedMiterLimit=a.miterLimit}this.nativeContext.setTransform(n[0],n[1],n[4],n[5],n[12],n[13]),(e||t.opacity!==-1&&this.currentOpacity!==t.opacity)&&(this.nativeContext.globalAlpha=t.opacity,this.currentOpacity=t.opacity),this.currentFillStyle=t.fillStyle,this.currentStrokeStyle=t.strokeStyle,this.currentLineWidth=t.lineWidth,this.currentLineCap=t.lineCap,this.currentLineJoin=t.lineJoin,this.currentMiterLimit=t.miterLimit},CVContextData.prototype.save=function(e){e&&this.nativeContext.save();var t=this.cTr.props;this._length<=this.cArrPos&&this.duplicate();var n=this.stack[this.cArrPos],i;for(i=0;i<16;i+=1)n.transform[i]=t[i];this.cArrPos+=1;var s=this.stack[this.cArrPos];s.opacity=n.opacity,s.fillStyle=n.fillStyle,s.strokeStyle=n.strokeStyle,s.lineWidth=n.lineWidth,s.lineCap=n.lineCap,s.lineJoin=n.lineJoin,s.miterLimit=n.miterLimit},CVContextData.prototype.setOpacity=function(e){this.stack[this.cArrPos].opacity=e},CVContextData.prototype.setContext=function(e){this.nativeContext=e},CVContextData.prototype.fillStyle=function(e){this.stack[this.cArrPos].fillStyle!==e&&(this.currentFillStyle=e,this.stack[this.cArrPos].fillStyle=e)},CVContextData.prototype.strokeStyle=function(e){this.stack[this.cArrPos].strokeStyle!==e&&(this.currentStrokeStyle=e,this.stack[this.cArrPos].strokeStyle=e)},CVContextData.prototype.lineWidth=function(e){this.stack[this.cArrPos].lineWidth!==e&&(this.currentLineWidth=e,this.stack[this.cArrPos].lineWidth=e)},CVContextData.prototype.lineCap=function(e){this.stack[this.cArrPos].lineCap!==e&&(this.currentLineCap=e,this.stack[this.cArrPos].lineCap=e)},CVContextData.prototype.lineJoin=function(e){this.stack[this.cArrPos].lineJoin!==e&&(this.currentLineJoin=e,this.stack[this.cArrPos].lineJoin=e)},CVContextData.prototype.miterLimit=function(e){this.stack[this.cArrPos].miterLimit!==e&&(this.currentMiterLimit=e,this.stack[this.cArrPos].miterLimit=e)},CVContextData.prototype.transform=function(e){this.transformMat.cloneFromProps(e);var t=this.cTr;this.transformMat.multiply(t),t.cloneFromProps(this.transformMat.props);var n=t.props;this.nativeContext.setTransform(n[0],n[1],n[4],n[5],n[12],n[13])},CVContextData.prototype.opacity=function(e){var t=this.stack[this.cArrPos].opacity;t*=e<0?0:e,this.stack[this.cArrPos].opacity!==t&&(this.currentOpacity!==e&&(this.nativeContext.globalAlpha=e,this.currentOpacity=e),this.stack[this.cArrPos].opacity=t)},CVContextData.prototype.fill=function(e){this.appliedFillStyle!==this.currentFillStyle&&(this.appliedFillStyle=this.currentFillStyle,this.nativeContext.fillStyle=this.appliedFillStyle),this.nativeContext.fill(e)},CVContextData.prototype.fillRect=function(e,t,n,i){this.appliedFillStyle!==this.currentFillStyle&&(this.appliedFillStyle=this.currentFillStyle,this.nativeContext.fillStyle=this.appliedFillStyle),this.nativeContext.fillRect(e,t,n,i)},CVContextData.prototype.stroke=function(){this.appliedStrokeStyle!==this.currentStrokeStyle&&(this.appliedStrokeStyle=this.currentStrokeStyle,this.nativeContext.strokeStyle=this.appliedStrokeStyle),this.appliedLineWidth!==this.currentLineWidth&&(this.appliedLineWidth=this.currentLineWidth,this.nativeContext.lineWidth=this.appliedLineWidth),this.appliedLineCap!==this.currentLineCap&&(this.appliedLineCap=this.currentLineCap,this.nativeContext.lineCap=this.appliedLineCap),this.appliedLineJoin!==this.currentLineJoin&&(this.appliedLineJoin=this.currentLineJoin,this.nativeContext.lineJoin=this.appliedLineJoin),this.appliedMiterLimit!==this.currentMiterLimit&&(this.appliedMiterLimit=this.currentMiterLimit,this.nativeContext.miterLimit=this.appliedMiterLimit),this.nativeContext.stroke()};function CVCompElement(e,t,n){this.completeLayers=!1,this.layers=e.layers,this.pendingElements=[],this.elements=createSizedArray(this.layers.length),this.initElement(e,t,n),this.tm=e.tm?PropertyFactory.getProp(this,e.tm,0,t.frameRate,this):{_placeholder:!0}}extendPrototype([CanvasRendererBase,ICompElement,CVBaseElement],CVCompElement),CVCompElement.prototype.renderInnerContent=function(){var e=this.canvasContext;e.beginPath(),e.moveTo(0,0),e.lineTo(this.data.w,0),e.lineTo(this.data.w,this.data.h),e.lineTo(0,this.data.h),e.lineTo(0,0),e.clip();var t,n=this.layers.length;for(t=n-1;t>=0;t-=1)(this.completeLayers||this.elements[t])&&this.elements[t].renderFrame()},CVCompElement.prototype.destroy=function(){var e,t=this.layers.length;for(e=t-1;e>=0;e-=1)this.elements[e]&&this.elements[e].destroy();this.layers=null,this.elements=null},CVCompElement.prototype.createComp=function(e){return new CVCompElement(e,this.globalData,this)};function CanvasRenderer(e,t){this.animationItem=e,this.renderConfig={clearCanvas:t&&t.clearCanvas!==void 0?t.clearCanvas:!0,context:t&&t.context||null,progressiveLoad:t&&t.progressiveLoad||!1,preserveAspectRatio:t&&t.preserveAspectRatio||"xMidYMid meet",imagePreserveAspectRatio:t&&t.imagePreserveAspectRatio||"xMidYMid slice",contentVisibility:t&&t.contentVisibility||"visible",className:t&&t.className||"",id:t&&t.id||"",runExpressions:!t||t.runExpressions===void 0||t.runExpressions},this.renderConfig.dpr=t&&t.dpr||1,this.animationItem.wrapper&&(this.renderConfig.dpr=t&&t.dpr||window.devicePixelRatio||1),this.renderedFrame=-1,this.globalData={frameNum:-1,_mdf:!1,renderConfig:this.renderConfig,currentGlobalAlpha:-1},this.contextData=new CVContextData,this.elements=[],this.pendingElements=[],this.transformMat=new Matrix,this.completeLayers=!1,this.rendererType="canvas",this.renderConfig.clearCanvas&&(this.ctxTransform=this.contextData.transform.bind(this.contextData),this.ctxOpacity=this.contextData.opacity.bind(this.contextData),this.ctxFillStyle=this.contextData.fillStyle.bind(this.contextData),this.ctxStrokeStyle=this.contextData.strokeStyle.bind(this.contextData),this.ctxLineWidth=this.contextData.lineWidth.bind(this.contextData),this.ctxLineCap=this.contextData.lineCap.bind(this.contextData),this.ctxLineJoin=this.contextData.lineJoin.bind(this.contextData),this.ctxMiterLimit=this.contextData.miterLimit.bind(this.contextData),this.ctxFill=this.contextData.fill.bind(this.contextData),this.ctxFillRect=this.contextData.fillRect.bind(this.contextData),this.ctxStroke=this.contextData.stroke.bind(this.contextData),this.save=this.contextData.save.bind(this.contextData))}extendPrototype([CanvasRendererBase],CanvasRenderer),CanvasRenderer.prototype.createComp=function(e){return new CVCompElement(e,this.globalData,this)};function HBaseElement(){}HBaseElement.prototype={checkBlendMode:function(){},initRendererElement:function(){this.baseElement=createTag(this.data.tg||"div"),this.data.hasMask?(this.svgElement=createNS("svg"),this.layerElement=createNS("g"),this.maskedElement=this.layerElement,this.svgElement.appendChild(this.layerElement),this.baseElement.appendChild(this.svgElement)):this.layerElement=this.baseElement,styleDiv(this.baseElement)},createContainerElements:function(){this.renderableEffectsManager=new CVEffects(this),this.transformedElement=this.baseElement,this.maskedElement=this.layerElement,this.data.ln&&this.layerElement.setAttribute("id",this.data.ln),this.data.cl&&this.layerElement.setAttribute("class",this.data.cl),this.data.bm!==0&&this.setBlendMode()},renderElement:function(){var t=this.transformedElement?this.transformedElement.style:{};if(this.finalTransform._matMdf){var n=this.finalTransform.mat.toCSS();t.transform=n,t.webkitTransform=n}this.finalTransform._opMdf&&(t.opacity=this.finalTransform.mProp.o.v)},renderFrame:function(){this.data.hd||this.hidden||(this.renderTransform(),this.renderRenderable(),this.renderElement(),this.renderInnerContent(),this._isFirstFrame&&(this._isFirstFrame=!1))},destroy:function(){this.layerElement=null,this.transformedElement=null,this.matteElement&&(this.matteElement=null),this.maskManager&&(this.maskManager.destroy(),this.maskManager=null)},createRenderableComponents:function(){this.maskManager=new MaskElement(this.data,this,this.globalData)},addEffects:function(){},setMatte:function(){}},HBaseElement.prototype.getBaseElement=SVGBaseElement.prototype.getBaseElement,HBaseElement.prototype.destroyBaseElement=HBaseElement.prototype.destroy,HBaseElement.prototype.buildElementParenting=BaseRenderer.prototype.buildElementParenting;function HSolidElement(e,t,n){this.initElement(e,t,n)}extendPrototype([BaseElement,TransformElement,HBaseElement,HierarchyElement,FrameElement,RenderableDOMElement],HSolidElement),HSolidElement.prototype.createContent=function(){var e;this.data.hasMask?(e=createNS("rect"),e.setAttribute("width",this.data.sw),e.setAttribute("height",this.data.sh),e.setAttribute("fill",this.data.sc),this.svgElement.setAttribute("width",this.data.sw),this.svgElement.setAttribute("height",this.data.sh)):(e=createTag("div"),e.style.width=this.data.sw+"px",e.style.height=this.data.sh+"px",e.style.backgroundColor=this.data.sc),this.layerElement.appendChild(e)};function HShapeElement(e,t,n){this.shapes=[],this.shapesData=e.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.animatedContents=[],this.shapesContainer=createNS("g"),this.initElement(e,t,n),this.prevViewData=[],this.currentBBox={x:999999,y:-999999,h:0,w:0}}extendPrototype([BaseElement,TransformElement,HSolidElement,SVGShapeElement,HBaseElement,HierarchyElement,FrameElement,RenderableElement],HShapeElement),HShapeElement.prototype._renderShapeFrame=HShapeElement.prototype.renderInnerContent,HShapeElement.prototype.createContent=function(){var e;if(this.baseElement.style.fontSize=0,this.data.hasMask)this.layerElement.appendChild(this.shapesContainer),e=this.svgElement;else{e=createNS("svg");var t=this.comp.data?this.comp.data:this.globalData.compSize;e.setAttribute("width",t.w),e.setAttribute("height",t.h),e.appendChild(this.shapesContainer),this.layerElement.appendChild(e)}this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.shapesContainer,0,[],!0),this.filterUniqueShapes(),this.shapeCont=e},HShapeElement.prototype.getTransformedPoint=function(e,t){var n,i=e.length;for(n=0;n<i;n+=1)t=e[n].mProps.v.applyToPointArray(t[0],t[1],0);return t},HShapeElement.prototype.calculateShapeBoundingBox=function(e,t){var n=e.sh.v,i=e.transformers,s,a=n._length,o,l,c,d;if(!(a<=1)){for(s=0;s<a-1;s+=1)o=this.getTransformedPoint(i,n.v[s]),l=this.getTransformedPoint(i,n.o[s]),c=this.getTransformedPoint(i,n.i[s+1]),d=this.getTransformedPoint(i,n.v[s+1]),this.checkBounds(o,l,c,d,t);n.c&&(o=this.getTransformedPoint(i,n.v[s]),l=this.getTransformedPoint(i,n.o[s]),c=this.getTransformedPoint(i,n.i[0]),d=this.getTransformedPoint(i,n.v[0]),this.checkBounds(o,l,c,d,t))}},HShapeElement.prototype.checkBounds=function(e,t,n,i,s){this.getBoundsOfCurve(e,t,n,i);var a=this.shapeBoundingBox;s.x=bmMin(a.left,s.x),s.xMax=bmMax(a.right,s.xMax),s.y=bmMin(a.top,s.y),s.yMax=bmMax(a.bottom,s.yMax)},HShapeElement.prototype.shapeBoundingBox={left:0,right:0,top:0,bottom:0},HShapeElement.prototype.tempBoundingBox={x:0,xMax:0,y:0,yMax:0,width:0,height:0},HShapeElement.prototype.getBoundsOfCurve=function(e,t,n,i){for(var s=[[e[0],i[0]],[e[1],i[1]]],a,o,l,c,d,u,p,h=0;h<2;++h)o=6*e[h]-12*t[h]+6*n[h],a=-3*e[h]+9*t[h]-9*n[h]+3*i[h],l=3*t[h]-3*e[h],o|=0,a|=0,l|=0,a===0&&o===0||(a===0?(c=-l/o,c>0&&c<1&&s[h].push(this.calculateF(c,e,t,n,i,h))):(d=o*o-4*l*a,d>=0&&(u=(-o+bmSqrt(d))/(2*a),u>0&&u<1&&s[h].push(this.calculateF(u,e,t,n,i,h)),p=(-o-bmSqrt(d))/(2*a),p>0&&p<1&&s[h].push(this.calculateF(p,e,t,n,i,h)))));this.shapeBoundingBox.left=bmMin.apply(null,s[0]),this.shapeBoundingBox.top=bmMin.apply(null,s[1]),this.shapeBoundingBox.right=bmMax.apply(null,s[0]),this.shapeBoundingBox.bottom=bmMax.apply(null,s[1])},HShapeElement.prototype.calculateF=function(e,t,n,i,s,a){return bmPow(1-e,3)*t[a]+3*bmPow(1-e,2)*e*n[a]+3*(1-e)*bmPow(e,2)*i[a]+bmPow(e,3)*s[a]},HShapeElement.prototype.calculateBoundingBox=function(e,t){var n,i=e.length;for(n=0;n<i;n+=1)e[n]&&e[n].sh?this.calculateShapeBoundingBox(e[n],t):e[n]&&e[n].it?this.calculateBoundingBox(e[n].it,t):e[n]&&e[n].style&&e[n].w&&this.expandStrokeBoundingBox(e[n].w,t)},HShapeElement.prototype.expandStrokeBoundingBox=function(e,t){var n=0;if(e.keyframes){for(var i=0;i<e.keyframes.length;i+=1){var s=e.keyframes[i].s;s>n&&(n=s)}n*=e.mult}else n=e.v*e.mult;t.x-=n,t.xMax+=n,t.y-=n,t.yMax+=n},HShapeElement.prototype.currentBoxContains=function(e){return this.currentBBox.x<=e.x&&this.currentBBox.y<=e.y&&this.currentBBox.width+this.currentBBox.x>=e.x+e.width&&this.currentBBox.height+this.currentBBox.y>=e.y+e.height},HShapeElement.prototype.renderInnerContent=function(){if(this._renderShapeFrame(),!this.hidden&&(this._isFirstFrame||this._mdf)){var e=this.tempBoundingBox,t=999999;if(e.x=t,e.xMax=-t,e.y=t,e.yMax=-t,this.calculateBoundingBox(this.itemsData,e),e.width=e.xMax<e.x?0:e.xMax-e.x,e.height=e.yMax<e.y?0:e.yMax-e.y,this.currentBoxContains(e))return;var n=!1;if(this.currentBBox.w!==e.width&&(this.currentBBox.w=e.width,this.shapeCont.setAttribute("width",e.width),n=!0),this.currentBBox.h!==e.height&&(this.currentBBox.h=e.height,this.shapeCont.setAttribute("height",e.height),n=!0),n||this.currentBBox.x!==e.x||this.currentBBox.y!==e.y){this.currentBBox.w=e.width,this.currentBBox.h=e.height,this.currentBBox.x=e.x,this.currentBBox.y=e.y,this.shapeCont.setAttribute("viewBox",this.currentBBox.x+" "+this.currentBBox.y+" "+this.currentBBox.w+" "+this.currentBBox.h);var i=this.shapeCont.style,s="translate("+this.currentBBox.x+"px,"+this.currentBBox.y+"px)";i.transform=s,i.webkitTransform=s}}};function HTextElement(e,t,n){this.textSpans=[],this.textPaths=[],this.currentBBox={x:999999,y:-999999,h:0,w:0},this.renderType="svg",this.isMasked=!1,this.initElement(e,t,n)}extendPrototype([BaseElement,TransformElement,HBaseElement,HierarchyElement,FrameElement,RenderableDOMElement,ITextElement],HTextElement),HTextElement.prototype.createContent=function(){if(this.isMasked=this.checkMasks(),this.isMasked){this.renderType="svg",this.compW=this.comp.data.w,this.compH=this.comp.data.h,this.svgElement.setAttribute("width",this.compW),this.svgElement.setAttribute("height",this.compH);var e=createNS("g");this.maskedElement.appendChild(e),this.innerElem=e}else this.renderType="html",this.innerElem=this.layerElement;this.checkParenting()},HTextElement.prototype.buildNewText=function(){var e=this.textProperty.currentData;this.renderedLetters=createSizedArray(e.l?e.l.length:0);var t=this.innerElem.style,n=e.fc?this.buildColor(e.fc):"rgba(0,0,0,0)";t.fill=n,t.color=n,e.sc&&(t.stroke=this.buildColor(e.sc),t.strokeWidth=e.sw+"px");var i=this.globalData.fontManager.getFontByName(e.f);if(!this.globalData.fontManager.chars)if(t.fontSize=e.finalSize+"px",t.lineHeight=e.finalSize+"px",i.fClass)this.innerElem.className=i.fClass;else{t.fontFamily=i.fFamily;var s=e.fWeight,a=e.fStyle;t.fontStyle=a,t.fontWeight=s}var o,l,c=e.l;l=c.length;var d,u,p,h=this.mHelper,y,f="",m=0;for(o=0;o<l;o+=1){if(this.globalData.fontManager.chars?(this.textPaths[m]?d=this.textPaths[m]:(d=createNS("path"),d.setAttribute("stroke-linecap",lineCapEnum[1]),d.setAttribute("stroke-linejoin",lineJoinEnum[2]),d.setAttribute("stroke-miterlimit","4")),this.isMasked||(this.textSpans[m]?(u=this.textSpans[m],p=u.children[0]):(u=createTag("div"),u.style.lineHeight=0,p=createNS("svg"),p.appendChild(d),styleDiv(u)))):this.isMasked?d=this.textPaths[m]?this.textPaths[m]:createNS("text"):this.textSpans[m]?(u=this.textSpans[m],d=this.textPaths[m]):(u=createTag("span"),styleDiv(u),d=createTag("span"),styleDiv(d),u.appendChild(d)),this.globalData.fontManager.chars){var C=this.globalData.fontManager.getCharData(e.finalText[o],i.fStyle,this.globalData.fontManager.getFontByName(e.f).fFamily),g;if(C?g=C.data:g=null,h.reset(),g&&g.shapes&&g.shapes.length&&(y=g.shapes[0].it,h.scale(e.finalSize/100,e.finalSize/100),f=this.createPathShape(h,y),d.setAttribute("d",f)),this.isMasked)this.innerElem.appendChild(d);else{if(this.innerElem.appendChild(u),g&&g.shapes){document.body.appendChild(p);var b=p.getBBox();p.setAttribute("width",b.width+2),p.setAttribute("height",b.height+2),p.setAttribute("viewBox",b.x-1+" "+(b.y-1)+" "+(b.width+2)+" "+(b.height+2));var v=p.style,N="translate("+(b.x-1)+"px,"+(b.y-1)+"px)";v.transform=N,v.webkitTransform=N,c[o].yOffset=b.y-1}else p.setAttribute("width",1),p.setAttribute("height",1);u.appendChild(p)}}else if(d.textContent=c[o].val,d.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),this.isMasked)this.innerElem.appendChild(d);else{this.innerElem.appendChild(u);var w=d.style,E="translate3d(0,"+-e.finalSize/1.2+"px,0)";w.transform=E,w.webkitTransform=E}this.isMasked?this.textSpans[m]=d:this.textSpans[m]=u,this.textSpans[m].style.display="block",this.textPaths[m]=d,m+=1}for(;m<this.textSpans.length;)this.textSpans[m].style.display="none",m+=1},HTextElement.prototype.renderInnerContent=function(){this.validateText();var e;if(this.data.singleShape){if(!this._isFirstFrame&&!this.lettersChangedFlag)return;if(this.isMasked&&this.finalTransform._matMdf){this.svgElement.setAttribute("viewBox",-this.finalTransform.mProp.p.v[0]+" "+-this.finalTransform.mProp.p.v[1]+" "+this.compW+" "+this.compH),e=this.svgElement.style;var t="translate("+-this.finalTransform.mProp.p.v[0]+"px,"+-this.finalTransform.mProp.p.v[1]+"px)";e.transform=t,e.webkitTransform=t}}if(this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag),!(!this.lettersChangedFlag&&!this.textAnimator.lettersChangedFlag)){var n,i,s=0,a=this.textAnimator.renderedLetters,o=this.textProperty.currentData.l;i=o.length;var l,c,d;for(n=0;n<i;n+=1)o[n].n?s+=1:(c=this.textSpans[n],d=this.textPaths[n],l=a[s],s+=1,l._mdf.m&&(this.isMasked?c.setAttribute("transform",l.m):(c.style.webkitTransform=l.m,c.style.transform=l.m)),c.style.opacity=l.o,l.sw&&l._mdf.sw&&d.setAttribute("stroke-width",l.sw),l.sc&&l._mdf.sc&&d.setAttribute("stroke",l.sc),l.fc&&l._mdf.fc&&(d.setAttribute("fill",l.fc),d.style.color=l.fc));if(this.innerElem.getBBox&&!this.hidden&&(this._isFirstFrame||this._mdf)){var u=this.innerElem.getBBox();this.currentBBox.w!==u.width&&(this.currentBBox.w=u.width,this.svgElement.setAttribute("width",u.width)),this.currentBBox.h!==u.height&&(this.currentBBox.h=u.height,this.svgElement.setAttribute("height",u.height));var p=1;if(this.currentBBox.w!==u.width+p*2||this.currentBBox.h!==u.height+p*2||this.currentBBox.x!==u.x-p||this.currentBBox.y!==u.y-p){this.currentBBox.w=u.width+p*2,this.currentBBox.h=u.height+p*2,this.currentBBox.x=u.x-p,this.currentBBox.y=u.y-p,this.svgElement.setAttribute("viewBox",this.currentBBox.x+" "+this.currentBBox.y+" "+this.currentBBox.w+" "+this.currentBBox.h),e=this.svgElement.style;var h="translate("+this.currentBBox.x+"px,"+this.currentBBox.y+"px)";e.transform=h,e.webkitTransform=h}}}};function HCameraElement(e,t,n){this.initFrame(),this.initBaseData(e,t,n),this.initHierarchy();var i=PropertyFactory.getProp;if(this.pe=i(this,e.pe,0,0,this),e.ks.p.s?(this.px=i(this,e.ks.p.x,1,0,this),this.py=i(this,e.ks.p.y,1,0,this),this.pz=i(this,e.ks.p.z,1,0,this)):this.p=i(this,e.ks.p,1,0,this),e.ks.a&&(this.a=i(this,e.ks.a,1,0,this)),e.ks.or.k.length&&e.ks.or.k[0].to){var s,a=e.ks.or.k.length;for(s=0;s<a;s+=1)e.ks.or.k[s].to=null,e.ks.or.k[s].ti=null}this.or=i(this,e.ks.or,1,degToRads,this),this.or.sh=!0,this.rx=i(this,e.ks.rx,0,degToRads,this),this.ry=i(this,e.ks.ry,0,degToRads,this),this.rz=i(this,e.ks.rz,0,degToRads,this),this.mat=new Matrix,this._prevMat=new Matrix,this._isFirstFrame=!0,this.finalTransform={mProp:this}}extendPrototype([BaseElement,FrameElement,HierarchyElement],HCameraElement),HCameraElement.prototype.setup=function(){var e,t=this.comp.threeDElements.length,n,i,s;for(e=0;e<t;e+=1)if(n=this.comp.threeDElements[e],n.type==="3d"){i=n.perspectiveElem.style,s=n.container.style;var a=this.pe.v+"px",o="0px 0px 0px",l="matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1)";i.perspective=a,i.webkitPerspective=a,s.transformOrigin=o,s.mozTransformOrigin=o,s.webkitTransformOrigin=o,i.transform=l,i.webkitTransform=l}},HCameraElement.prototype.createElements=function(){},HCameraElement.prototype.hide=function(){},HCameraElement.prototype.renderFrame=function(){var e=this._isFirstFrame,t,n;if(this.hierarchy)for(n=this.hierarchy.length,t=0;t<n;t+=1)e=this.hierarchy[t].finalTransform.mProp._mdf||e;if(e||this.pe._mdf||this.p&&this.p._mdf||this.px&&(this.px._mdf||this.py._mdf||this.pz._mdf)||this.rx._mdf||this.ry._mdf||this.rz._mdf||this.or._mdf||this.a&&this.a._mdf){if(this.mat.reset(),this.hierarchy)for(n=this.hierarchy.length-1,t=n;t>=0;t-=1){var i=this.hierarchy[t].finalTransform.mProp;this.mat.translate(-i.p.v[0],-i.p.v[1],i.p.v[2]),this.mat.rotateX(-i.or.v[0]).rotateY(-i.or.v[1]).rotateZ(i.or.v[2]),this.mat.rotateX(-i.rx.v).rotateY(-i.ry.v).rotateZ(i.rz.v),this.mat.scale(1/i.s.v[0],1/i.s.v[1],1/i.s.v[2]),this.mat.translate(i.a.v[0],i.a.v[1],i.a.v[2])}if(this.p?this.mat.translate(-this.p.v[0],-this.p.v[1],this.p.v[2]):this.mat.translate(-this.px.v,-this.py.v,this.pz.v),this.a){var s;this.p?s=[this.p.v[0]-this.a.v[0],this.p.v[1]-this.a.v[1],this.p.v[2]-this.a.v[2]]:s=[this.px.v-this.a.v[0],this.py.v-this.a.v[1],this.pz.v-this.a.v[2]];var a=Math.sqrt(Math.pow(s[0],2)+Math.pow(s[1],2)+Math.pow(s[2],2)),o=[s[0]/a,s[1]/a,s[2]/a],l=Math.sqrt(o[2]*o[2]+o[0]*o[0]),c=Math.atan2(o[1],l),d=Math.atan2(o[0],-o[2]);this.mat.rotateY(d).rotateX(-c)}this.mat.rotateX(-this.rx.v).rotateY(-this.ry.v).rotateZ(this.rz.v),this.mat.rotateX(-this.or.v[0]).rotateY(-this.or.v[1]).rotateZ(this.or.v[2]),this.mat.translate(this.globalData.compSize.w/2,this.globalData.compSize.h/2,0),this.mat.translate(0,0,this.pe.v);var u=!this._prevMat.equals(this.mat);if((u||this.pe._mdf)&&this.comp.threeDElements){n=this.comp.threeDElements.length;var p,h,y;for(t=0;t<n;t+=1)if(p=this.comp.threeDElements[t],p.type==="3d"){if(u){var f=this.mat.toCSS();y=p.container.style,y.transform=f,y.webkitTransform=f}this.pe._mdf&&(h=p.perspectiveElem.style,h.perspective=this.pe.v+"px",h.webkitPerspective=this.pe.v+"px")}this.mat.clone(this._prevMat)}}this._isFirstFrame=!1},HCameraElement.prototype.prepareFrame=function(e){this.prepareProperties(e,!0)},HCameraElement.prototype.destroy=function(){},HCameraElement.prototype.getBaseElement=function(){return null};function HImageElement(e,t,n){this.assetData=t.getAssetData(e.refId),this.initElement(e,t,n)}extendPrototype([BaseElement,TransformElement,HBaseElement,HSolidElement,HierarchyElement,FrameElement,RenderableElement],HImageElement),HImageElement.prototype.createContent=function(){var e=this.globalData.getAssetsPath(this.assetData),t=new Image;this.data.hasMask?(this.imageElem=createNS("image"),this.imageElem.setAttribute("width",this.assetData.w+"px"),this.imageElem.setAttribute("height",this.assetData.h+"px"),this.imageElem.setAttributeNS("http://www.w3.org/1999/xlink","href",e),this.layerElement.appendChild(this.imageElem),this.baseElement.setAttribute("width",this.assetData.w),this.baseElement.setAttribute("height",this.assetData.h)):this.layerElement.appendChild(t),t.crossOrigin="anonymous",t.src=e,this.data.ln&&this.baseElement.setAttribute("id",this.data.ln)};function HybridRendererBase(e,t){this.animationItem=e,this.layers=null,this.renderedFrame=-1,this.renderConfig={className:t&&t.className||"",imagePreserveAspectRatio:t&&t.imagePreserveAspectRatio||"xMidYMid slice",hideOnTransparent:!(t&&t.hideOnTransparent===!1),filterSize:{width:t&&t.filterSize&&t.filterSize.width||"400%",height:t&&t.filterSize&&t.filterSize.height||"400%",x:t&&t.filterSize&&t.filterSize.x||"-100%",y:t&&t.filterSize&&t.filterSize.y||"-100%"}},this.globalData={_mdf:!1,frameNum:-1,renderConfig:this.renderConfig},this.pendingElements=[],this.elements=[],this.threeDElements=[],this.destroyed=!1,this.camera=null,this.supports3d=!0,this.rendererType="html"}extendPrototype([BaseRenderer],HybridRendererBase),HybridRendererBase.prototype.buildItem=SVGRenderer.prototype.buildItem,HybridRendererBase.prototype.checkPendingElements=function(){for(;this.pendingElements.length;){var e=this.pendingElements.pop();e.checkParenting()}},HybridRendererBase.prototype.appendElementInPos=function(e,t){var n=e.getBaseElement();if(n){var i=this.layers[t];if(!i.ddd||!this.supports3d)if(this.threeDElements)this.addTo3dContainer(n,t);else{for(var s=0,a,o,l;s<t;)this.elements[s]&&this.elements[s]!==!0&&this.elements[s].getBaseElement&&(o=this.elements[s],l=this.layers[s].ddd?this.getThreeDContainerByPos(s):o.getBaseElement(),a=l||a),s+=1;a?(!i.ddd||!this.supports3d)&&this.layerElement.insertBefore(n,a):(!i.ddd||!this.supports3d)&&this.layerElement.appendChild(n)}else this.addTo3dContainer(n,t)}},HybridRendererBase.prototype.createShape=function(e){return this.supports3d?new HShapeElement(e,this.globalData,this):new SVGShapeElement(e,this.globalData,this)},HybridRendererBase.prototype.createText=function(e){return this.supports3d?new HTextElement(e,this.globalData,this):new SVGTextLottieElement(e,this.globalData,this)},HybridRendererBase.prototype.createCamera=function(e){return this.camera=new HCameraElement(e,this.globalData,this),this.camera},HybridRendererBase.prototype.createImage=function(e){return this.supports3d?new HImageElement(e,this.globalData,this):new IImageElement(e,this.globalData,this)},HybridRendererBase.prototype.createSolid=function(e){return this.supports3d?new HSolidElement(e,this.globalData,this):new ISolidElement(e,this.globalData,this)},HybridRendererBase.prototype.createNull=SVGRenderer.prototype.createNull,HybridRendererBase.prototype.getThreeDContainerByPos=function(e){for(var t=0,n=this.threeDElements.length;t<n;){if(this.threeDElements[t].startPos<=e&&this.threeDElements[t].endPos>=e)return this.threeDElements[t].perspectiveElem;t+=1}return null},HybridRendererBase.prototype.createThreeDContainer=function(e,t){var n=createTag("div"),i,s;styleDiv(n);var a=createTag("div");if(styleDiv(a),t==="3d"){i=n.style,i.width=this.globalData.compSize.w+"px",i.height=this.globalData.compSize.h+"px";var o="50% 50%";i.webkitTransformOrigin=o,i.mozTransformOrigin=o,i.transformOrigin=o,s=a.style;var l="matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1)";s.transform=l,s.webkitTransform=l}n.appendChild(a);var c={container:a,perspectiveElem:n,startPos:e,endPos:e,type:t};return this.threeDElements.push(c),c},HybridRendererBase.prototype.build3dContainers=function(){var e,t=this.layers.length,n,i="";for(e=0;e<t;e+=1)this.layers[e].ddd&&this.layers[e].ty!==3?(i!=="3d"&&(i="3d",n=this.createThreeDContainer(e,"3d")),n.endPos=Math.max(n.endPos,e)):(i!=="2d"&&(i="2d",n=this.createThreeDContainer(e,"2d")),n.endPos=Math.max(n.endPos,e));for(t=this.threeDElements.length,e=t-1;e>=0;e-=1)this.resizerElem.appendChild(this.threeDElements[e].perspectiveElem)},HybridRendererBase.prototype.addTo3dContainer=function(e,t){for(var n=0,i=this.threeDElements.length;n<i;){if(t<=this.threeDElements[n].endPos){for(var s=this.threeDElements[n].startPos,a;s<t;)this.elements[s]&&this.elements[s].getBaseElement&&(a=this.elements[s].getBaseElement()),s+=1;a?this.threeDElements[n].container.insertBefore(e,a):this.threeDElements[n].container.appendChild(e);break}n+=1}},HybridRendererBase.prototype.configAnimation=function(e){var t=createTag("div"),n=this.animationItem.wrapper,i=t.style;i.width=e.w+"px",i.height=e.h+"px",this.resizerElem=t,styleDiv(t),i.transformStyle="flat",i.mozTransformStyle="flat",i.webkitTransformStyle="flat",this.renderConfig.className&&t.setAttribute("class",this.renderConfig.className),n.appendChild(t),i.overflow="hidden";var s=createNS("svg");s.setAttribute("width","1"),s.setAttribute("height","1"),styleDiv(s),this.resizerElem.appendChild(s);var a=createNS("defs");s.appendChild(a),this.data=e,this.setupGlobalData(e,s),this.globalData.defs=a,this.layers=e.layers,this.layerElement=this.resizerElem,this.build3dContainers(),this.updateContainerSize()},HybridRendererBase.prototype.destroy=function(){this.animationItem.wrapper&&(this.animationItem.wrapper.innerText=""),this.animationItem.container=null,this.globalData.defs=null;var e,t=this.layers?this.layers.length:0;for(e=0;e<t;e+=1)this.elements[e]&&this.elements[e].destroy&&this.elements[e].destroy();this.elements.length=0,this.destroyed=!0,this.animationItem=null},HybridRendererBase.prototype.updateContainerSize=function(){var e=this.animationItem.wrapper.offsetWidth,t=this.animationItem.wrapper.offsetHeight,n=e/t,i=this.globalData.compSize.w/this.globalData.compSize.h,s,a,o,l;i>n?(s=e/this.globalData.compSize.w,a=e/this.globalData.compSize.w,o=0,l=(t-this.globalData.compSize.h*(e/this.globalData.compSize.w))/2):(s=t/this.globalData.compSize.h,a=t/this.globalData.compSize.h,o=(e-this.globalData.compSize.w*(t/this.globalData.compSize.h))/2,l=0);var c=this.resizerElem.style;c.webkitTransform="matrix3d("+s+",0,0,0,0,"+a+",0,0,0,0,1,0,"+o+","+l+",0,1)",c.transform=c.webkitTransform},HybridRendererBase.prototype.renderFrame=SVGRenderer.prototype.renderFrame,HybridRendererBase.prototype.hide=function(){this.resizerElem.style.display="none"},HybridRendererBase.prototype.show=function(){this.resizerElem.style.display="block"},HybridRendererBase.prototype.initItems=function(){if(this.buildAllItems(),this.camera)this.camera.setup();else{var e=this.globalData.compSize.w,t=this.globalData.compSize.h,n,i=this.threeDElements.length;for(n=0;n<i;n+=1){var s=this.threeDElements[n].perspectiveElem.style;s.webkitPerspective=Math.sqrt(Math.pow(e,2)+Math.pow(t,2))+"px",s.perspective=s.webkitPerspective}}},HybridRendererBase.prototype.searchExtraCompositions=function(e){var t,n=e.length,i=createTag("div");for(t=0;t<n;t+=1)if(e[t].xt){var s=this.createComp(e[t],i,this.globalData.comp,null);s.initExpressions(),this.globalData.projectInterface.registerComposition(s)}};function HCompElement(e,t,n){this.layers=e.layers,this.supports3d=!e.hasMask,this.completeLayers=!1,this.pendingElements=[],this.elements=this.layers?createSizedArray(this.layers.length):[],this.initElement(e,t,n),this.tm=e.tm?PropertyFactory.getProp(this,e.tm,0,t.frameRate,this):{_placeholder:!0}}extendPrototype([HybridRendererBase,ICompElement,HBaseElement],HCompElement),HCompElement.prototype._createBaseContainerElements=HCompElement.prototype.createContainerElements,HCompElement.prototype.createContainerElements=function(){this._createBaseContainerElements(),this.data.hasMask?(this.svgElement.setAttribute("width",this.data.w),this.svgElement.setAttribute("height",this.data.h),this.transformedElement=this.baseElement):this.transformedElement=this.layerElement},HCompElement.prototype.addTo3dContainer=function(e,t){for(var n=0,i;n<t;)this.elements[n]&&this.elements[n].getBaseElement&&(i=this.elements[n].getBaseElement()),n+=1;i?this.layerElement.insertBefore(e,i):this.layerElement.appendChild(e)},HCompElement.prototype.createComp=function(e){return this.supports3d?new HCompElement(e,this.globalData,this):new SVGCompElement(e,this.globalData,this)};function HybridRenderer(e,t){this.animationItem=e,this.layers=null,this.renderedFrame=-1,this.renderConfig={className:t&&t.className||"",imagePreserveAspectRatio:t&&t.imagePreserveAspectRatio||"xMidYMid slice",hideOnTransparent:!(t&&t.hideOnTransparent===!1),filterSize:{width:t&&t.filterSize&&t.filterSize.width||"400%",height:t&&t.filterSize&&t.filterSize.height||"400%",x:t&&t.filterSize&&t.filterSize.x||"-100%",y:t&&t.filterSize&&t.filterSize.y||"-100%"},runExpressions:!t||t.runExpressions===void 0||t.runExpressions},this.globalData={_mdf:!1,frameNum:-1,renderConfig:this.renderConfig},this.pendingElements=[],this.elements=[],this.threeDElements=[],this.destroyed=!1,this.camera=null,this.supports3d=!0,this.rendererType="html"}extendPrototype([HybridRendererBase],HybridRenderer),HybridRenderer.prototype.createComp=function(e){return this.supports3d?new HCompElement(e,this.globalData,this):new SVGCompElement(e,this.globalData,this)};var CompExpressionInterface=(function(){return function(e){function t(n){for(var i=0,s=e.layers.length;i<s;){if(e.layers[i].nm===n||e.layers[i].ind===n)return e.elements[i].layerInterface;i+=1}return null}return Object.defineProperty(t,"_name",{value:e.data.nm}),t.layer=t,t.pixelAspect=1,t.height=e.data.h||e.globalData.compSize.h,t.width=e.data.w||e.globalData.compSize.w,t.pixelAspect=1,t.frameDuration=1/e.globalData.frameRate,t.displayStartTime=0,t.numLayers=e.layers.length,t}})();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 seedRandom(e,t){var n=this,i=256,s=6,a=52,o="random",l=t.pow(i,s),c=t.pow(2,a),d=c*2,u=i-1,p;function h(v,N,w){var E=[];N=N===!0?{entropy:!0}:N||{};var _=C(m(N.entropy?[v,b(e)]:v===null?g():v,3),E),k=new y(E),A=function(){for(var B=k.g(s),I=l,D=0;B<c;)B=(B+D)*i,I*=i,D=k.g(1);for(;B>=d;)B/=2,I/=2,D>>>=1;return(B+D)/I};return A.int32=function(){return k.g(4)|0},A.quick=function(){return k.g(4)/4294967296},A.double=A,C(b(k.S),e),(N.pass||w||function(F,B,I,D){return D&&(D.S&&f(D,k),F.state=function(){return f(k,{})}),I?(t[o]=F,B):F})(A,_,"global"in N?N.global:this==t,N.state)}t["seed"+o]=h;function y(v){var N,w=v.length,E=this,_=0,k=E.i=E.j=0,A=E.S=[];for(w||(v=[w++]);_<i;)A[_]=_++;for(_=0;_<i;_++)A[_]=A[k=u&k+v[_%w]+(N=A[_])],A[k]=N;E.g=function(F){for(var B,I=0,D=E.i,L=E.j,$=E.S;F--;)B=$[D=u&D+1],I=I*i+$[u&($[D]=$[L=u&L+B])+($[L]=B)];return E.i=D,E.j=L,I}}function f(v,N){return N.i=v.i,N.j=v.j,N.S=v.S.slice(),N}function m(v,N){var w=[],E=_typeof$2(v),_;if(N&&E=="object")for(_ in v)try{w.push(m(v[_],N-1))}catch{}return w.length?w:E=="string"?v:v+"\0"}function C(v,N){for(var w=v+"",E,_=0;_<w.length;)N[u&_]=u&(E^=N[u&_]*19)+w.charCodeAt(_++);return b(N)}function g(){try{var v=new Uint8Array(i);return(n.crypto||n.msCrypto).getRandomValues(v),b(v)}catch{var N=n.navigator,w=N&&N.plugins;return[+new Date,n,w,n.screen,b(e)]}}function b(v){return String.fromCharCode.apply(0,v)}C(t.random(),e)}function initialize$2(e){seedRandom([],e)}var propTypes={SHAPE:"shape"};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)}var ExpressionManager=(function(){var ob={},Math=BMMath,window=null,document=null,XMLHttpRequest=null,fetch=null,frames=null,_lottieGlobal={};initialize$2(BMMath);function resetFrame(){_lottieGlobal={}}function $bm_isInstanceOfArray(e){return e.constructor===Array||e.constructor===Float32Array}function isNumerable(e,t){return e==="number"||t instanceof Number||e==="boolean"||e==="string"}function $bm_neg(e){var t=_typeof$1(e);if(t==="number"||e instanceof Number||t==="boolean")return-e;if($bm_isInstanceOfArray(e)){var n,i=e.length,s=[];for(n=0;n<i;n+=1)s[n]=-e[n];return s}return e.propType?e.v:-e}var easeInBez=BezierFactory.getBezierEasing(.333,0,.833,.833,"easeIn").get,easeOutBez=BezierFactory.getBezierEasing(.167,.167,.667,1,"easeOut").get,easeInOutBez=BezierFactory.getBezierEasing(.33,0,.667,1,"easeInOut").get;function sum(e,t){var n=_typeof$1(e),i=_typeof$1(t);if(isNumerable(n,e)&&isNumerable(i,t)||n==="string"||i==="string")return e+t;if($bm_isInstanceOfArray(e)&&isNumerable(i,t))return e=e.slice(0),e[0]+=t,e;if(isNumerable(n,e)&&$bm_isInstanceOfArray(t))return t=t.slice(0),t[0]=e+t[0],t;if($bm_isInstanceOfArray(e)&&$bm_isInstanceOfArray(t)){for(var s=0,a=e.length,o=t.length,l=[];s<a||s<o;)(typeof e[s]=="number"||e[s]instanceof Number)&&(typeof t[s]=="number"||t[s]instanceof Number)?l[s]=e[s]+t[s]:l[s]=t[s]===void 0?e[s]:e[s]||t[s],s+=1;return l}return 0}var add=sum;function sub(e,t){var n=_typeof$1(e),i=_typeof$1(t);if(isNumerable(n,e)&&isNumerable(i,t))return n==="string"&&(e=parseInt(e,10)),i==="string"&&(t=parseInt(t,10)),e-t;if($bm_isInstanceOfArray(e)&&isNumerable(i,t))return e=e.slice(0),e[0]-=t,e;if(isNumerable(n,e)&&$bm_isInstanceOfArray(t))return t=t.slice(0),t[0]=e-t[0],t;if($bm_isInstanceOfArray(e)&&$bm_isInstanceOfArray(t)){for(var s=0,a=e.length,o=t.length,l=[];s<a||s<o;)(typeof e[s]=="number"||e[s]instanceof Number)&&(typeof t[s]=="number"||t[s]instanceof Number)?l[s]=e[s]-t[s]:l[s]=t[s]===void 0?e[s]:e[s]||t[s],s+=1;return l}return 0}function mul(e,t){var n=_typeof$1(e),i=_typeof$1(t),s;if(isNumerable(n,e)&&isNumerable(i,t))return e*t;var a,o;if($bm_isInstanceOfArray(e)&&isNumerable(i,t)){for(o=e.length,s=createTypedArray("float32",o),a=0;a<o;a+=1)s[a]=e[a]*t;return s}if(isNumerable(n,e)&&$bm_isInstanceOfArray(t)){for(o=t.length,s=createTypedArray("float32",o),a=0;a<o;a+=1)s[a]=e*t[a];return s}return 0}function div(e,t){var n=_typeof$1(e),i=_typeof$1(t),s;if(isNumerable(n,e)&&isNumerable(i,t))return e/t;var a,o;if($bm_isInstanceOfArray(e)&&isNumerable(i,t)){for(o=e.length,s=createTypedArray("float32",o),a=0;a<o;a+=1)s[a]=e[a]/t;return s}if(isNumerable(n,e)&&$bm_isInstanceOfArray(t)){for(o=t.length,s=createTypedArray("float32",o),a=0;a<o;a+=1)s[a]=e/t[a];return s}return 0}function mod(e,t){return typeof e=="string"&&(e=parseInt(e,10)),typeof t=="string"&&(t=parseInt(t,10)),e%t}var $bm_sum=sum,$bm_sub=sub,$bm_mul=mul,$bm_div=div,$bm_mod=mod;function clamp(e,t,n){if(t>n){var i=n;n=t,t=i}return Math.min(Math.max(e,t),n)}function radiansToDegrees(e){return e/degToRads}var radians_to_degrees=radiansToDegrees;function degreesToRadians(e){return e*degToRads}var degrees_to_radians=radiansToDegrees,helperLengthArray=[0,0,0,0,0,0];function length(e,t){if(typeof e=="number"||e instanceof Number)return t=t||0,Math.abs(e-t);t||(t=helperLengthArray);var n,i=Math.min(e.length,t.length),s=0;for(n=0;n<i;n+=1)s+=Math.pow(t[n]-e[n],2);return Math.sqrt(s)}function normalize(e){return div(e,length(e))}function rgbToHsl(e){var t=e[0],n=e[1],i=e[2],s=Math.max(t,n,i),a=Math.min(t,n,i),o,l,c=(s+a)/2;if(s===a)o=0,l=0;else{var d=s-a;switch(l=c>.5?d/(2-s-a):d/(s+a),s){case t:o=(n-i)/d+(n<i?6:0);break;case n:o=(i-t)/d+2;break;case i:o=(t-n)/d+4;break}o/=6}return[o,l,c,e[3]]}function hue2rgb(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function hslToRgb(e){var t=e[0],n=e[1],i=e[2],s,a,o;if(n===0)s=i,o=i,a=i;else{var l=i<.5?i*(1+n):i+n-i*n,c=2*i-l;s=hue2rgb(c,l,t+1/3),a=hue2rgb(c,l,t),o=hue2rgb(c,l,t-1/3)}return[s,a,o,e[3]]}function linear(e,t,n,i,s){if((i===void 0||s===void 0)&&(i=t,s=n,t=0,n=1),n<t){var a=n;n=t,t=a}if(e<=t)return i;if(e>=n)return s;var o=n===t?0:(e-t)/(n-t);if(!i.length)return i+(s-i)*o;var l,c=i.length,d=createTypedArray("float32",c);for(l=0;l<c;l+=1)d[l]=i[l]+(s[l]-i[l])*o;return d}function random(e,t){if(t===void 0&&(e===void 0?(e=0,t=1):(t=e,e=void 0)),t.length){var n,i=t.length;e||(e=createTypedArray("float32",i));var s=createTypedArray("float32",i),a=BMMath.random();for(n=0;n<i;n+=1)s[n]=e[n]+a*(t[n]-e[n]);return s}e===void 0&&(e=0);var o=BMMath.random();return e+o*(t-e)}function createPath(e,t,n,i){var s,a=e.length,o=shapePool.newElement();o.setPathData(!!i,a);var l=[0,0],c,d;for(s=0;s<a;s+=1)c=t&&t[s]?t[s]:l,d=n&&n[s]?n[s]:l,o.setTripleAt(e[s][0],e[s][1],d[0]+e[s][0],d[1]+e[s][1],c[0]+e[s][0],c[1]+e[s][1],s,!0);return o}function initiateExpression(elem,data,property){function noOp(e){return e}if(!elem.globalData.renderConfig.runExpressions)return noOp;var val=data.x,needsVelocity=/velocity(?![\w\d])/.test(val),_needsRandom=val.indexOf("random")!==-1,elemType=elem.data.ty,transform,$bm_transform,content,effect,thisProperty=property;thisProperty._name=elem.data.nm,thisProperty.valueAtTime=thisProperty.getValueAtTime,Object.defineProperty(thisProperty,"value",{get:function(){return thisProperty.v}}),elem.comp.frameDuration=1/elem.comp.globalData.frameRate,elem.comp.displayStartTime=0;var inPoint=elem.data.ip/elem.comp.globalData.frameRate,outPoint=elem.data.op/elem.comp.globalData.frameRate,width=elem.data.sw?elem.data.sw:0,height=elem.data.sh?elem.data.sh:0,name=elem.data.nm,loopIn,loop_in,loopOut,loop_out,smooth,toWorld,fromWorld,fromComp,toComp,fromCompToSurface,position,rotation,anchorPoint,scale,thisLayer,thisComp,mask,valueAtTime,velocityAtTime,scoped_bm_rt,expression_function=eval("[function _expression_function(){"+val+";scoped_bm_rt=$bm_rt}]")[0],numKeys=property.kf?data.k.length:0,active=!this.data||this.data.hd!==!0,wiggle=(function e(t,n){var i,s,a=this.pv.length?this.pv.length:1,o=createTypedArray("float32",a);t=5;var l=Math.floor(time*t);for(i=0,s=0;i<l;){for(s=0;s<a;s+=1)o[s]+=-n+n*2*BMMath.random();i+=1}var c=time*t,d=c-Math.floor(c),u=createTypedArray("float32",a);if(a>1){for(s=0;s<a;s+=1)u[s]=this.pv[s]+o[s]+(-n+n*2*BMMath.random())*d;return u}return this.pv+o[0]+(-n+n*2*BMMath.random())*d}).bind(this);thisProperty.loopIn&&(loopIn=thisProperty.loopIn.bind(thisProperty),loop_in=loopIn),thisProperty.loopOut&&(loopOut=thisProperty.loopOut.bind(thisProperty),loop_out=loopOut),thisProperty.smooth&&(smooth=thisProperty.smooth.bind(thisProperty));function loopInDuration(e,t){return loopIn(e,t,!0)}function loopOutDuration(e,t){return loopOut(e,t,!0)}this.getValueAtTime&&(valueAtTime=this.getValueAtTime.bind(this)),this.getVelocityAtTime&&(velocityAtTime=this.getVelocityAtTime.bind(this));var comp=elem.comp.globalData.projectInterface.bind(elem.comp.globalData.projectInterface);function lookAt(e,t){var n=[t[0]-e[0],t[1]-e[1],t[2]-e[2]],i=Math.atan2(n[0],Math.sqrt(n[1]*n[1]+n[2]*n[2]))/degToRads,s=-Math.atan2(n[1],n[2])/degToRads;return[s,i,0]}function easeOut(e,t,n,i,s){return applyEase(easeOutBez,e,t,n,i,s)}function easeIn(e,t,n,i,s){return applyEase(easeInBez,e,t,n,i,s)}function ease(e,t,n,i,s){return applyEase(easeInOutBez,e,t,n,i,s)}function applyEase(e,t,n,i,s,a){s===void 0?(s=n,a=i):t=(t-n)/(i-n),t>1?t=1:t<0&&(t=0);var o=e(t);if($bm_isInstanceOfArray(s)){var l,c=s.length,d=createTypedArray("float32",c);for(l=0;l<c;l+=1)d[l]=(a[l]-s[l])*o+s[l];return d}return(a-s)*o+s}function nearestKey(e){var t,n=data.k.length,i,s;if(!data.k.length||typeof data.k[0]=="number")i=0,s=0;else if(i=-1,e*=elem.comp.globalData.frameRate,e<data.k[0].t)i=1,s=data.k[0].t;else{for(t=0;t<n-1;t+=1)if(e===data.k[t].t){i=t+1,s=data.k[t].t;break}else if(e>data.k[t].t&&e<data.k[t+1].t){e-data.k[t].t>data.k[t+1].t-e?(i=t+2,s=data.k[t+1].t):(i=t+1,s=data.k[t].t);break}i===-1&&(i=t+1,s=data.k[t].t)}var a={};return a.index=i,a.time=s/elem.comp.globalData.frameRate,a}function key(e){var t,n,i;if(!data.k.length||typeof data.k[0]=="number")throw new Error("The property has no keyframe at index "+e);e-=1,t={time:data.k[e].t/elem.comp.globalData.frameRate,value:[]};var s=Object.prototype.hasOwnProperty.call(data.k[e],"s")?data.k[e].s:data.k[e-1].e;for(i=s.length,n=0;n<i;n+=1)t[n]=s[n],t.value[n]=s[n];return t}function framesToTime(e,t){return t||(t=elem.comp.globalData.frameRate),e/t}function timeToFrames(e,t){return!e&&e!==0&&(e=time),t||(t=elem.comp.globalData.frameRate),e*t}function seedRandom(e){BMMath.seedrandom(randSeed+e)}function sourceRectAtTime(){return elem.sourceRectAtTime()}function substring(e,t){return typeof value=="string"?t===void 0?value.substring(e):value.substring(e,t):""}function substr(e,t){return typeof value=="string"?t===void 0?value.substr(e):value.substr(e,t):""}function posterizeTime(e){time=e===0?0:Math.floor(time*e)/e,value=valueAtTime(time)}var time,velocity,value,text,textIndex,textTotal,selectorValue,index=elem.data.ind,hasParent=!!(elem.hierarchy&&elem.hierarchy.length),parent,randSeed=Math.floor(Math.random()*1e6),globalData=elem.globalData;function executeExpression(e){return value=e,this.frameExpressionId===elem.globalData.frameId&&this.propType!=="textSelector"?value:(this.propType==="textSelector"&&(textIndex=this.textIndex,textTotal=this.textTotal,selectorValue=this.selectorValue),thisLayer||(text=elem.layerInterface.text,thisLayer=elem.layerInterface,thisComp=elem.comp.compInterface,toWorld=thisLayer.toWorld.bind(thisLayer),fromWorld=thisLayer.fromWorld.bind(thisLayer),fromComp=thisLayer.fromComp.bind(thisLayer),toComp=thisLayer.toComp.bind(thisLayer),mask=thisLayer.mask?thisLayer.mask.bind(thisLayer):null,fromCompToSurface=fromComp),transform||(transform=elem.layerInterface("ADBE Transform Group"),$bm_transform=transform,transform&&(anchorPoint=transform.anchorPoint)),elemType===4&&!content&&(content=thisLayer("ADBE Root Vectors Group")),effect||(effect=thisLayer(4)),hasParent=!!(elem.hierarchy&&elem.hierarchy.length),hasParent&&!parent&&(parent=elem.hierarchy[0].layerInterface),time=this.comp.renderedFrame/this.comp.globalData.frameRate,_needsRandom&&seedRandom(randSeed+time),needsVelocity&&(velocity=velocityAtTime(time)),expression_function(),this.frameExpressionId=elem.globalData.frameId,scoped_bm_rt=scoped_bm_rt.propType===propTypes.SHAPE?scoped_bm_rt.v:scoped_bm_rt,scoped_bm_rt)}return executeExpression.__preventDeadCodeRemoval=[$bm_transform,anchorPoint,time,velocity,inPoint,outPoint,width,height,name,loop_in,loop_out,smooth,toComp,fromCompToSurface,toWorld,fromWorld,mask,position,rotation,scale,thisComp,numKeys,active,wiggle,loopInDuration,loopOutDuration,comp,lookAt,easeOut,easeIn,ease,nearestKey,key,text,textIndex,textTotal,selectorValue,framesToTime,timeToFrames,sourceRectAtTime,substring,substr,posterizeTime,index,globalData],executeExpression}return ob.initiateExpression=initiateExpression,ob.__preventDeadCodeRemoval=[window,document,XMLHttpRequest,fetch,frames,$bm_neg,add,$bm_sum,$bm_sub,$bm_mul,$bm_div,$bm_mod,clamp,radians_to_degrees,degreesToRadians,degrees_to_radians,normalize,rgbToHsl,hslToRgb,linear,random,createPath,_lottieGlobal],ob.resetFrame=resetFrame,ob})(),Expressions=(function(){var e={};e.initExpressions=t,e.resetFrame=ExpressionManager.resetFrame;function t(n){var i=0,s=[];function a(){i+=1}function o(){i-=1,i===0&&c()}function l(d){s.indexOf(d)===-1&&s.push(d)}function c(){var d,u=s.length;for(d=0;d<u;d+=1)s[d].release();s.length=0}n.renderer.compInterface=CompExpressionInterface(n.renderer),n.renderer.globalData.projectInterface.registerComposition(n.renderer),n.renderer.globalData.pushExpression=a,n.renderer.globalData.popExpression=o,n.renderer.globalData.registerExpressionProperty=l}return e})(),MaskManagerInterface=(function(){function e(n,i){this._mask=n,this._data=i}Object.defineProperty(e.prototype,"maskPath",{get:function(){return this._mask.prop.k&&this._mask.prop.getValue(),this._mask.prop}}),Object.defineProperty(e.prototype,"maskOpacity",{get:function(){return this._mask.op.k&&this._mask.op.getValue(),this._mask.op.v*100}});var t=function(i){var s=createSizedArray(i.viewData.length),a,o=i.viewData.length;for(a=0;a<o;a+=1)s[a]=new e(i.viewData[a],i.masksProperties[a]);var l=function(d){for(a=0;a<o;){if(i.masksProperties[a].nm===d)return s[a];a+=1}return null};return l};return t})(),ExpressionPropertyInterface=(function(){var e={pv:0,v:0,mult:1},t={pv:[0,0,0],v:[0,0,0],mult:1};function n(o,l,c){Object.defineProperty(o,"velocity",{get:function(){return l.getVelocityAtTime(l.comp.currentFrame)}}),o.numKeys=l.keyframes?l.keyframes.length:0,o.key=function(d){if(!o.numKeys)return 0;var u="";"s"in l.keyframes[d-1]?u=l.keyframes[d-1].s:"e"in l.keyframes[d-2]?u=l.keyframes[d-2].e:u=l.keyframes[d-2].s;var p=c==="unidimensional"?new Number(u):Object.assign({},u);return p.time=l.keyframes[d-1].t/l.elem.comp.globalData.frameRate,p.value=c==="unidimensional"?u[0]:u,p},o.valueAtTime=l.getValueAtTime,o.speedAtTime=l.getSpeedAtTime,o.velocityAtTime=l.getVelocityAtTime,o.propertyGroup=l.propertyGroup}function i(o){(!o||!("pv"in o))&&(o=e);var l=1/o.mult,c=o.pv*l,d=new Number(c);return d.value=c,n(d,o,"unidimensional"),function(){return o.k&&o.getValue(),c=o.v*l,d.value!==c&&(d=new Number(c),d.value=c,d[0]=c,n(d,o,"unidimensional")),d}}function s(o){(!o||!("pv"in o))&&(o=t);var l=1/o.mult,c=o.data&&o.data.l||o.pv.length,d=createTypedArray("float32",c),u=createTypedArray("float32",c);return d.value=u,n(d,o,"multidimensional"),function(){o.k&&o.getValue();for(var p=0;p<c;p+=1)u[p]=o.v[p]*l,d[p]=u[p];return d}}function a(){return e}return function(o){return o?o.propType==="unidimensional"?i(o):s(o):a}})(),TransformExpressionInterface=(function(){return function(e){function t(o){switch(o){case"scale":case"Scale":case"ADBE Scale":case 6:return t.scale;case"rotation":case"Rotation":case"ADBE Rotation":case"ADBE Rotate Z":case 10:return t.rotation;case"ADBE Rotate X":return t.xRotation;case"ADBE Rotate Y":return t.yRotation;case"position":case"Position":case"ADBE Position":case 2:return t.position;case"ADBE Position_0":return t.xPosition;case"ADBE Position_1":return t.yPosition;case"ADBE Position_2":return t.zPosition;case"anchorPoint":case"AnchorPoint":case"Anchor Point":case"ADBE AnchorPoint":case 1:return t.anchorPoint;case"opacity":case"Opacity":case 11:return t.opacity;default:return null}}Object.defineProperty(t,"rotation",{get:ExpressionPropertyInterface(e.r||e.rz)}),Object.defineProperty(t,"zRotation",{get:ExpressionPropertyInterface(e.rz||e.r)}),Object.defineProperty(t,"xRotation",{get:ExpressionPropertyInterface(e.rx)}),Object.defineProperty(t,"yRotation",{get:ExpressionPropertyInterface(e.ry)}),Object.defineProperty(t,"scale",{get:ExpressionPropertyInterface(e.s)});var n,i,s,a;return e.p?a=ExpressionPropertyInterface(e.p):(n=ExpressionPropertyInterface(e.px),i=ExpressionPropertyInterface(e.py),e.pz&&(s=ExpressionPropertyInterface(e.pz))),Object.defineProperty(t,"position",{get:function(){return e.p?a():[n(),i(),s?s():0]}}),Object.defineProperty(t,"xPosition",{get:ExpressionPropertyInterface(e.px)}),Object.defineProperty(t,"yPosition",{get:ExpressionPropertyInterface(e.py)}),Object.defineProperty(t,"zPosition",{get:ExpressionPropertyInterface(e.pz)}),Object.defineProperty(t,"anchorPoint",{get:ExpressionPropertyInterface(e.a)}),Object.defineProperty(t,"opacity",{get:ExpressionPropertyInterface(e.o)}),Object.defineProperty(t,"skew",{get:ExpressionPropertyInterface(e.sk)}),Object.defineProperty(t,"skewAxis",{get:ExpressionPropertyInterface(e.sa)}),Object.defineProperty(t,"orientation",{get:ExpressionPropertyInterface(e.or)}),t}})(),LayerExpressionInterface=(function(){function e(d){var u=new Matrix;if(d!==void 0){var p=this._elem.finalTransform.mProp.getValueAtTime(d);p.clone(u)}else{var h=this._elem.finalTransform.mProp;h.applyToMatrix(u)}return u}function t(d,u){var p=this.getMatrix(u);return p.props[12]=0,p.props[13]=0,p.props[14]=0,this.applyPoint(p,d)}function n(d,u){var p=this.getMatrix(u);return this.applyPoint(p,d)}function i(d,u){var p=this.getMatrix(u);return p.props[12]=0,p.props[13]=0,p.props[14]=0,this.invertPoint(p,d)}function s(d,u){var p=this.getMatrix(u);return this.invertPoint(p,d)}function a(d,u){if(this._elem.hierarchy&&this._elem.hierarchy.length){var p,h=this._elem.hierarchy.length;for(p=0;p<h;p+=1)this._elem.hierarchy[p].finalTransform.mProp.applyToMatrix(d)}return d.applyToPointArray(u[0],u[1],u[2]||0)}function o(d,u){if(this._elem.hierarchy&&this._elem.hierarchy.length){var p,h=this._elem.hierarchy.length;for(p=0;p<h;p+=1)this._elem.hierarchy[p].finalTransform.mProp.applyToMatrix(d)}return d.inversePoint(u)}function l(d){var u=new Matrix;if(u.reset(),this._elem.finalTransform.mProp.applyToMatrix(u),this._elem.hierarchy&&this._elem.hierarchy.length){var p,h=this._elem.hierarchy.length;for(p=0;p<h;p+=1)this._elem.hierarchy[p].finalTransform.mProp.applyToMatrix(u);return u.inversePoint(d)}return u.inversePoint(d)}function c(){return[1,1,1,1]}return function(d){var u;function p(m){y.mask=new MaskManagerInterface(m,d)}function h(m){y.effect=m}function y(m){switch(m){case"ADBE Root Vectors Group":case"Contents":case 2:return y.shapeInterface;case 1:case 6:case"Transform":case"transform":case"ADBE Transform Group":return u;case 4:case"ADBE Effect Parade":case"effects":case"Effects":return y.effect;case"ADBE Text Properties":return y.textInterface;default:return null}}y.getMatrix=e,y.invertPoint=o,y.applyPoint=a,y.toWorld=n,y.toWorldVec=t,y.fromWorld=s,y.fromWorldVec=i,y.toComp=n,y.fromComp=l,y.sampleImage=c,y.sourceRectAtTime=d.sourceRectAtTime.bind(d),y._elem=d,u=TransformExpressionInterface(d.finalTransform.mProp);var f=getDescriptor(u,"anchorPoint");return Object.defineProperties(y,{hasParent:{get:function(){return d.hierarchy.length}},parent:{get:function(){return d.hierarchy[0].layerInterface}},rotation:getDescriptor(u,"rotation"),scale:getDescriptor(u,"scale"),position:getDescriptor(u,"position"),opacity:getDescriptor(u,"opacity"),anchorPoint:f,anchor_point:f,transform:{get:function(){return u}},active:{get:function(){return d.isInRange}}}),y.startTime=d.data.st,y.index=d.data.ind,y.source=d.data.refId,y.height=d.data.ty===0?d.data.h:100,y.width=d.data.ty===0?d.data.w:100,y.inPoint=d.data.ip/d.comp.globalData.frameRate,y.outPoint=d.data.op/d.comp.globalData.frameRate,y._name=d.data.nm,y.registerMaskInterface=p,y.registerEffectsInterface=h,y}})(),propertyGroupFactory=(function(){return function(e,t){return function(n){return n=n===void 0?1:n,n<=0?e:t(n-1)}}})(),PropertyInterface=(function(){return function(e,t){var n={_name:e};function i(s){return s=s===void 0?1:s,s<=0?n:t(s-1)}return i}})(),EffectsExpressionInterface=(function(){var e={createEffectsInterface:t};function t(s,a){if(s.effectsManager){var o=[],l=s.data.ef,c,d=s.effectsManager.effectElements.length;for(c=0;c<d;c+=1)o.push(n(l[c],s.effectsManager.effectElements[c],a,s));var u=s.data.ef||[],p=function(y){for(c=0,d=u.length;c<d;){if(y===u[c].nm||y===u[c].mn||y===u[c].ix)return o[c];c+=1}return null};return Object.defineProperty(p,"numProperties",{get:function(){return u.length}}),p}return null}function n(s,a,o,l){function c(y){for(var f=s.ef,m=0,C=f.length;m<C;){if(y===f[m].nm||y===f[m].mn||y===f[m].ix)return f[m].ty===5?u[m]:u[m]();m+=1}throw new Error}var d=propertyGroupFactory(c,o),u=[],p,h=s.ef.length;for(p=0;p<h;p+=1)s.ef[p].ty===5?u.push(n(s.ef[p],a.effectElements[p],a.effectElements[p].propertyGroup,l)):u.push(i(a.effectElements[p],s.ef[p].ty,l,d));return s.mn==="ADBE Color Control"&&Object.defineProperty(c,"color",{get:function(){return u[0]()}}),Object.defineProperties(c,{numProperties:{get:function(){return s.np}},_name:{value:s.nm},propertyGroup:{value:d}}),c.enabled=s.en!==0,c.active=c.enabled,c}function i(s,a,o,l){var c=ExpressionPropertyInterface(s.p);function d(){return a===10?o.comp.compInterface(s.p.v):c()}return s.p.setGroupProperty&&s.p.setGroupProperty(PropertyInterface("",l)),d}return e})(),ShapePathInterface=(function(){return function(t,n,i){var s=n.sh;function a(l){return l==="Shape"||l==="shape"||l==="Path"||l==="path"||l==="ADBE Vector Shape"||l===2?a.path:null}var o=propertyGroupFactory(a,i);return s.setGroupProperty(PropertyInterface("Path",o)),Object.defineProperties(a,{path:{get:function(){return s.k&&s.getValue(),s}},shape:{get:function(){return s.k&&s.getValue(),s}},_name:{value:t.nm},ix:{value:t.ix},propertyIndex:{value:t.ix},mn:{value:t.mn},propertyGroup:{value:i}}),a}})(),ShapeExpressionInterface=(function(){function e(f,m,C){var g=[],b,v=f?f.length:0;for(b=0;b<v;b+=1)f[b].ty==="gr"?g.push(n(f[b],m[b],C)):f[b].ty==="fl"?g.push(i(f[b],m[b],C)):f[b].ty==="st"?g.push(o(f[b],m[b],C)):f[b].ty==="tm"?g.push(l(f[b],m[b],C)):f[b].ty==="tr"||(f[b].ty==="el"?g.push(d(f[b],m[b],C)):f[b].ty==="sr"?g.push(u(f[b],m[b],C)):f[b].ty==="sh"?g.push(ShapePathInterface(f[b],m[b],C)):f[b].ty==="rc"?g.push(p(f[b],m[b],C)):f[b].ty==="rd"?g.push(h(f[b],m[b],C)):f[b].ty==="rp"?g.push(y(f[b],m[b],C)):f[b].ty==="gf"?g.push(s(f[b],m[b],C)):g.push(a(f[b],m[b])));return g}function t(f,m,C){var g,b=function(w){for(var E=0,_=g.length;E<_;){if(g[E]._name===w||g[E].mn===w||g[E].propertyIndex===w||g[E].ix===w||g[E].ind===w)return g[E];E+=1}return typeof w=="number"?g[w-1]:null};b.propertyGroup=propertyGroupFactory(b,C),g=e(f.it,m.it,b.propertyGroup),b.numProperties=g.length;var v=c(f.it[f.it.length-1],m.it[m.it.length-1],b.propertyGroup);return b.transform=v,b.propertyIndex=f.cix,b._name=f.nm,b}function n(f,m,C){var g=function(w){switch(w){case"ADBE Vectors Group":case"Contents":case 2:return g.content;default:return g.transform}};g.propertyGroup=propertyGroupFactory(g,C);var b=t(f,m,g.propertyGroup),v=c(f.it[f.it.length-1],m.it[m.it.length-1],g.propertyGroup);return g.content=b,g.transform=v,Object.defineProperty(g,"_name",{get:function(){return f.nm}}),g.numProperties=f.np,g.propertyIndex=f.ix,g.nm=f.nm,g.mn=f.mn,g}function i(f,m,C){function g(b){return b==="Color"||b==="color"?g.color:b==="Opacity"||b==="opacity"?g.opacity:null}return Object.defineProperties(g,{color:{get:ExpressionPropertyInterface(m.c)},opacity:{get:ExpressionPropertyInterface(m.o)},_name:{value:f.nm},mn:{value:f.mn}}),m.c.setGroupProperty(PropertyInterface("Color",C)),m.o.setGroupProperty(PropertyInterface("Opacity",C)),g}function s(f,m,C){function g(b){return b==="Start Point"||b==="start point"?g.startPoint:b==="End Point"||b==="end point"?g.endPoint:b==="Opacity"||b==="opacity"?g.opacity:null}return Object.defineProperties(g,{startPoint:{get:ExpressionPropertyInterface(m.s)},endPoint:{get:ExpressionPropertyInterface(m.e)},opacity:{get:ExpressionPropertyInterface(m.o)},type:{get:function(){return"a"}},_name:{value:f.nm},mn:{value:f.mn}}),m.s.setGroupProperty(PropertyInterface("Start Point",C)),m.e.setGroupProperty(PropertyInterface("End Point",C)),m.o.setGroupProperty(PropertyInterface("Opacity",C)),g}function a(){function f(){return null}return f}function o(f,m,C){var g=propertyGroupFactory(_,C),b=propertyGroupFactory(E,g);function v(k){Object.defineProperty(E,f.d[k].nm,{get:ExpressionPropertyInterface(m.d.dataProps[k].p)})}var N,w=f.d?f.d.length:0,E={};for(N=0;N<w;N+=1)v(N),m.d.dataProps[N].p.setGroupProperty(b);function _(k){return k==="Color"||k==="color"?_.color:k==="Opacity"||k==="opacity"?_.opacity:k==="Stroke Width"||k==="stroke width"?_.strokeWidth:null}return Object.defineProperties(_,{color:{get:ExpressionPropertyInterface(m.c)},opacity:{get:ExpressionPropertyInterface(m.o)},strokeWidth:{get:ExpressionPropertyInterface(m.w)},dash:{get:function(){return E}},_name:{value:f.nm},mn:{value:f.mn}}),m.c.setGroupProperty(PropertyInterface("Color",g)),m.o.setGroupProperty(PropertyInterface("Opacity",g)),m.w.setGroupProperty(PropertyInterface("Stroke Width",g)),_}function l(f,m,C){function g(v){return v===f.e.ix||v==="End"||v==="end"?g.end:v===f.s.ix?g.start:v===f.o.ix?g.offset:null}var b=propertyGroupFactory(g,C);return g.propertyIndex=f.ix,m.s.setGroupProperty(PropertyInterface("Start",b)),m.e.setGroupProperty(PropertyInterface("End",b)),m.o.setGroupProperty(PropertyInterface("Offset",b)),g.propertyIndex=f.ix,g.propertyGroup=C,Object.defineProperties(g,{start:{get:ExpressionPropertyInterface(m.s)},end:{get:ExpressionPropertyInterface(m.e)},offset:{get:ExpressionPropertyInterface(m.o)},_name:{value:f.nm}}),g.mn=f.mn,g}function c(f,m,C){function g(v){return f.a.ix===v||v==="Anchor Point"?g.anchorPoint:f.o.ix===v||v==="Opacity"?g.opacity:f.p.ix===v||v==="Position"?g.position:f.r.ix===v||v==="Rotation"||v==="ADBE Vector Rotation"?g.rotation:f.s.ix===v||v==="Scale"?g.scale:f.sk&&f.sk.ix===v||v==="Skew"?g.skew:f.sa&&f.sa.ix===v||v==="Skew Axis"?g.skewAxis:null}var b=propertyGroupFactory(g,C);return m.transform.mProps.o.setGroupProperty(PropertyInterface("Opacity",b)),m.transform.mProps.p.setGroupProperty(PropertyInterface("Position",b)),m.transform.mProps.a.setGroupProperty(PropertyInterface("Anchor Point",b)),m.transform.mProps.s.setGroupProperty(PropertyInterface("Scale",b)),m.transform.mProps.r.setGroupProperty(PropertyInterface("Rotation",b)),m.transform.mProps.sk&&(m.transform.mProps.sk.setGroupProperty(PropertyInterface("Skew",b)),m.transform.mProps.sa.setGroupProperty(PropertyInterface("Skew Angle",b))),m.transform.op.setGroupProperty(PropertyInterface("Opacity",b)),Object.defineProperties(g,{opacity:{get:ExpressionPropertyInterface(m.transform.mProps.o)},position:{get:ExpressionPropertyInterface(m.transform.mProps.p)},anchorPoint:{get:ExpressionPropertyInterface(m.transform.mProps.a)},scale:{get:ExpressionPropertyInterface(m.transform.mProps.s)},rotation:{get:ExpressionPropertyInterface(m.transform.mProps.r)},skew:{get:ExpressionPropertyInterface(m.transform.mProps.sk)},skewAxis:{get:ExpressionPropertyInterface(m.transform.mProps.sa)},_name:{value:f.nm}}),g.ty="tr",g.mn=f.mn,g.propertyGroup=C,g}function d(f,m,C){function g(N){return f.p.ix===N?g.position:f.s.ix===N?g.size:null}var b=propertyGroupFactory(g,C);g.propertyIndex=f.ix;var v=m.sh.ty==="tm"?m.sh.prop:m.sh;return v.s.setGroupProperty(PropertyInterface("Size",b)),v.p.setGroupProperty(PropertyInterface("Position",b)),Object.defineProperties(g,{size:{get:ExpressionPropertyInterface(v.s)},position:{get:ExpressionPropertyInterface(v.p)},_name:{value:f.nm}}),g.mn=f.mn,g}function u(f,m,C){function g(N){return f.p.ix===N?g.position:f.r.ix===N?g.rotation:f.pt.ix===N?g.points:f.or.ix===N||N==="ADBE Vector Star Outer Radius"?g.outerRadius:f.os.ix===N?g.outerRoundness:f.ir&&(f.ir.ix===N||N==="ADBE Vector Star Inner Radius")?g.innerRadius:f.is&&f.is.ix===N?g.innerRoundness:null}var b=propertyGroupFactory(g,C),v=m.sh.ty==="tm"?m.sh.prop:m.sh;return g.propertyIndex=f.ix,v.or.setGroupProperty(PropertyInterface("Outer Radius",b)),v.os.setGroupProperty(PropertyInterface("Outer Roundness",b)),v.pt.setGroupProperty(PropertyInterface("Points",b)),v.p.setGroupProperty(PropertyInterface("Position",b)),v.r.setGroupProperty(PropertyInterface("Rotation",b)),f.ir&&(v.ir.setGroupProperty(PropertyInterface("Inner Radius",b)),v.is.setGroupProperty(PropertyInterface("Inner Roundness",b))),Object.defineProperties(g,{position:{get:ExpressionPropertyInterface(v.p)},rotation:{get:ExpressionPropertyInterface(v.r)},points:{get:ExpressionPropertyInterface(v.pt)},outerRadius:{get:ExpressionPropertyInterface(v.or)},outerRoundness:{get:ExpressionPropertyInterface(v.os)},innerRadius:{get:ExpressionPropertyInterface(v.ir)},innerRoundness:{get:ExpressionPropertyInterface(v.is)},_name:{value:f.nm}}),g.mn=f.mn,g}function p(f,m,C){function g(N){return f.p.ix===N?g.position:f.r.ix===N?g.roundness:f.s.ix===N||N==="Size"||N==="ADBE Vector Rect Size"?g.size:null}var b=propertyGroupFactory(g,C),v=m.sh.ty==="tm"?m.sh.prop:m.sh;return g.propertyIndex=f.ix,v.p.setGroupProperty(PropertyInterface("Position",b)),v.s.setGroupProperty(PropertyInterface("Size",b)),v.r.setGroupProperty(PropertyInterface("Rotation",b)),Object.defineProperties(g,{position:{get:ExpressionPropertyInterface(v.p)},roundness:{get:ExpressionPropertyInterface(v.r)},size:{get:ExpressionPropertyInterface(v.s)},_name:{value:f.nm}}),g.mn=f.mn,g}function h(f,m,C){function g(N){return f.r.ix===N||N==="Round Corners 1"?g.radius:null}var b=propertyGroupFactory(g,C),v=m;return g.propertyIndex=f.ix,v.rd.setGroupProperty(PropertyInterface("Radius",b)),Object.defineProperties(g,{radius:{get:ExpressionPropertyInterface(v.rd)},_name:{value:f.nm}}),g.mn=f.mn,g}function y(f,m,C){function g(N){return f.c.ix===N||N==="Copies"?g.copies:f.o.ix===N||N==="Offset"?g.offset:null}var b=propertyGroupFactory(g,C),v=m;return g.propertyIndex=f.ix,v.c.setGroupProperty(PropertyInterface("Copies",b)),v.o.setGroupProperty(PropertyInterface("Offset",b)),Object.defineProperties(g,{copies:{get:ExpressionPropertyInterface(v.c)},offset:{get:ExpressionPropertyInterface(v.o)},_name:{value:f.nm}}),g.mn=f.mn,g}return function(f,m,C){var g;function b(N){if(typeof N=="number")return N=N===void 0?1:N,N===0?C:g[N-1];for(var w=0,E=g.length;w<E;){if(g[w]._name===N)return g[w];w+=1}return null}function v(){return C}return b.propertyGroup=propertyGroupFactory(b,v),g=e(f,m,b.propertyGroup),b.numProperties=g.length,b._name="Contents",b}})(),TextExpressionInterface=(function(){return function(e){var t;function n(i){return i==="ADBE Text Document"?n.sourceText:null}return Object.defineProperty(n,"sourceText",{get:function(){e.textProperty.getValue();var s=e.textProperty.currentData.t;return(!t||s!==t.value)&&(t=new String(s),t.value=s||new String(s),Object.defineProperty(t,"style",{get:function(){return{fillColor:e.textProperty.currentData.fc}}})),t}}),n}})();function _typeof(e){"@babel/helpers - typeof";return _typeof=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(e)}var FootageInterface=(function(){var e=function(i){var s="",a=i.getFootageData();function o(){return s="",a=i.getFootageData(),l}function l(c){if(a[c])return s=c,a=a[c],_typeof(a)==="object"?l:a;var d=c.indexOf(s);if(d!==-1){var u=parseInt(c.substr(d+s.length),10);return a=a[u],_typeof(a)==="object"?l:a}return""}return o},t=function(i){function s(a){return a==="Outline"?s.outlineInterface():null}return s._name="Outline",s.outlineInterface=e(i),s};return function(n){function i(s){return s==="Data"?i.dataInterface:null}return i._name="Data",i.dataInterface=t(n),i}})(),interfaces={layer:LayerExpressionInterface,effects:EffectsExpressionInterface,comp:CompExpressionInterface,shape:ShapeExpressionInterface,text:TextExpressionInterface,footage:FootageInterface};function getInterface(e){return interfaces[e]||null}var expressionHelpers=(function(){function e(o,l,c){l.x&&(c.k=!0,c.x=!0,c.initiateExpression=ExpressionManager.initiateExpression,c.effectsSequence.push(c.initiateExpression(o,l,c).bind(c)))}function t(o){return o*=this.elem.globalData.frameRate,o-=this.offsetTime,o!==this._cachingAtTime.lastFrame&&(this._cachingAtTime.lastIndex=this._cachingAtTime.lastFrame<o?this._cachingAtTime.lastIndex:0,this._cachingAtTime.value=this.interpolateValue(o,this._cachingAtTime),this._cachingAtTime.lastFrame=o),this._cachingAtTime.value}function n(o){var l=-.01,c=this.getValueAtTime(o),d=this.getValueAtTime(o+l),u=0;if(c.length){var p;for(p=0;p<c.length;p+=1)u+=Math.pow(d[p]-c[p],2);u=Math.sqrt(u)*100}else u=0;return u}function i(o){if(this.vel!==void 0)return this.vel;var l=-.001,c=this.getValueAtTime(o),d=this.getValueAtTime(o+l),u;if(c.length){u=createTypedArray("float32",c.length);var p;for(p=0;p<c.length;p+=1)u[p]=(d[p]-c[p])/l}else u=(d-c)/l;return u}function s(){return this.pv}function a(o){this.propertyGroup=o}return{searchExpressions:e,getSpeedAtTime:n,getVelocityAtTime:i,getValueAtTime:t,getStaticValueAtTime:s,setGroupProperty:a}})();function addPropertyDecorator(){function e(h,y,f){if(!this.k||!this.keyframes)return this.pv;h=h?h.toLowerCase():"";var m=this.comp.renderedFrame,C=this.keyframes,g=C[C.length-1].t;if(m<=g)return this.pv;var b,v;f?(y?b=Math.abs(g-this.elem.comp.globalData.frameRate*y):b=Math.max(0,g-this.elem.data.ip),v=g-b):((!y||y>C.length-1)&&(y=C.length-1),v=C[C.length-1-y].t,b=g-v);var N,w,E;if(h==="pingpong"){var _=Math.floor((m-v)/b);if(_%2!==0)return this.getValueAtTime((b-(m-v)%b+v)/this.comp.globalData.frameRate,0)}else if(h==="offset"){var k=this.getValueAtTime(v/this.comp.globalData.frameRate,0),A=this.getValueAtTime(g/this.comp.globalData.frameRate,0),F=this.getValueAtTime(((m-v)%b+v)/this.comp.globalData.frameRate,0),B=Math.floor((m-v)/b);if(this.pv.length){for(E=new Array(k.length),w=E.length,N=0;N<w;N+=1)E[N]=(A[N]-k[N])*B+F[N];return E}return(A-k)*B+F}else if(h==="continue"){var I=this.getValueAtTime(g/this.comp.globalData.frameRate,0),D=this.getValueAtTime((g-.001)/this.comp.globalData.frameRate,0);if(this.pv.length){for(E=new Array(I.length),w=E.length,N=0;N<w;N+=1)E[N]=I[N]+(I[N]-D[N])*((m-g)/this.comp.globalData.frameRate)/5e-4;return E}return I+(I-D)*((m-g)/.001)}return this.getValueAtTime(((m-v)%b+v)/this.comp.globalData.frameRate,0)}function t(h,y,f){if(!this.k)return this.pv;h=h?h.toLowerCase():"";var m=this.comp.renderedFrame,C=this.keyframes,g=C[0].t;if(m>=g)return this.pv;var b,v;f?(y?b=Math.abs(this.elem.comp.globalData.frameRate*y):b=Math.max(0,this.elem.data.op-g),v=g+b):((!y||y>C.length-1)&&(y=C.length-1),v=C[y].t,b=v-g);var N,w,E;if(h==="pingpong"){var _=Math.floor((g-m)/b);if(_%2===0)return this.getValueAtTime(((g-m)%b+g)/this.comp.globalData.frameRate,0)}else if(h==="offset"){var k=this.getValueAtTime(g/this.comp.globalData.frameRate,0),A=this.getValueAtTime(v/this.comp.globalData.frameRate,0),F=this.getValueAtTime((b-(g-m)%b+g)/this.comp.globalData.frameRate,0),B=Math.floor((g-m)/b)+1;if(this.pv.length){for(E=new Array(k.length),w=E.length,N=0;N<w;N+=1)E[N]=F[N]-(A[N]-k[N])*B;return E}return F-(A-k)*B}else if(h==="continue"){var I=this.getValueAtTime(g/this.comp.globalData.frameRate,0),D=this.getValueAtTime((g+.001)/this.comp.globalData.frameRate,0);if(this.pv.length){for(E=new Array(I.length),w=E.length,N=0;N<w;N+=1)E[N]=I[N]+(I[N]-D[N])*(g-m)/.001;return E}return I+(I-D)*(g-m)/.001}return this.getValueAtTime((b-((g-m)%b+g))/this.comp.globalData.frameRate,0)}function n(h,y){if(!this.k)return this.pv;if(h=(h||.4)*.5,y=Math.floor(y||5),y<=1)return this.pv;var f=this.comp.renderedFrame/this.comp.globalData.frameRate,m=f-h,C=f+h,g=y>1?(C-m)/(y-1):1,b=0,v=0,N;this.pv.length?N=createTypedArray("float32",this.pv.length):N=0;for(var w;b<y;){if(w=this.getValueAtTime(m+b*g),this.pv.length)for(v=0;v<this.pv.length;v+=1)N[v]+=w[v];else N+=w;b+=1}if(this.pv.length)for(v=0;v<this.pv.length;v+=1)N[v]/=y;else N/=y;return N}function i(h){this._transformCachingAtTime||(this._transformCachingAtTime={v:new Matrix});var y=this._transformCachingAtTime.v;if(y.cloneFromProps(this.pre.props),this.appliedTransformations<1){var f=this.a.getValueAtTime(h);y.translate(-f[0]*this.a.mult,-f[1]*this.a.mult,f[2]*this.a.mult)}if(this.appliedTransformations<2){var m=this.s.getValueAtTime(h);y.scale(m[0]*this.s.mult,m[1]*this.s.mult,m[2]*this.s.mult)}if(this.sk&&this.appliedTransformations<3){var C=this.sk.getValueAtTime(h),g=this.sa.getValueAtTime(h);y.skewFromAxis(-C*this.sk.mult,g*this.sa.mult)}if(this.r&&this.appliedTransformations<4){var b=this.r.getValueAtTime(h);y.rotate(-b*this.r.mult)}else if(!this.r&&this.appliedTransformations<4){var v=this.rz.getValueAtTime(h),N=this.ry.getValueAtTime(h),w=this.rx.getValueAtTime(h),E=this.or.getValueAtTime(h);y.rotateZ(-v*this.rz.mult).rotateY(N*this.ry.mult).rotateX(w*this.rx.mult).rotateZ(-E[2]*this.or.mult).rotateY(E[1]*this.or.mult).rotateX(E[0]*this.or.mult)}if(this.data.p&&this.data.p.s){var _=this.px.getValueAtTime(h),k=this.py.getValueAtTime(h);if(this.data.p.z){var A=this.pz.getValueAtTime(h);y.translate(_*this.px.mult,k*this.py.mult,-A*this.pz.mult)}else y.translate(_*this.px.mult,k*this.py.mult,0)}else{var F=this.p.getValueAtTime(h);y.translate(F[0]*this.p.mult,F[1]*this.p.mult,-F[2]*this.p.mult)}return y}function s(){return this.v.clone(new Matrix)}var a=TransformPropertyFactory.getTransformProperty;TransformPropertyFactory.getTransformProperty=function(h,y,f){var m=a(h,y,f);return m.dynamicProperties.length?m.getValueAtTime=i.bind(m):m.getValueAtTime=s.bind(m),m.setGroupProperty=expressionHelpers.setGroupProperty,m};var o=PropertyFactory.getProp;PropertyFactory.getProp=function(h,y,f,m,C){var g=o(h,y,f,m,C);g.kf?g.getValueAtTime=expressionHelpers.getValueAtTime.bind(g):g.getValueAtTime=expressionHelpers.getStaticValueAtTime.bind(g),g.setGroupProperty=expressionHelpers.setGroupProperty,g.loopOut=e,g.loopIn=t,g.smooth=n,g.getVelocityAtTime=expressionHelpers.getVelocityAtTime.bind(g),g.getSpeedAtTime=expressionHelpers.getSpeedAtTime.bind(g),g.numKeys=y.a===1?y.k.length:0,g.propertyIndex=y.ix;var b=0;return f!==0&&(b=createTypedArray("float32",y.a===1?y.k[0].s.length:y.k.length)),g._cachingAtTime={lastFrame:initialDefaultFrame,lastIndex:0,value:b},expressionHelpers.searchExpressions(h,y,g),g.k&&C.addDynamicProperty(g),g};function l(h){return this._cachingAtTime||(this._cachingAtTime={shapeValue:shapePool.clone(this.pv),lastIndex:0,lastTime:initialDefaultFrame}),h*=this.elem.globalData.frameRate,h-=this.offsetTime,h!==this._cachingAtTime.lastTime&&(this._cachingAtTime.lastIndex=this._cachingAtTime.lastTime<h?this._caching.lastIndex:0,this._cachingAtTime.lastTime=h,this.interpolateShape(h,this._cachingAtTime.shapeValue,this._cachingAtTime)),this._cachingAtTime.shapeValue}var c=ShapePropertyFactory.getConstructorFunction(),d=ShapePropertyFactory.getKeyframedConstructorFunction();function u(){}u.prototype={vertices:function(y,f){this.k&&this.getValue();var m=this.v;f!==void 0&&(m=this.getValueAtTime(f,0));var C,g=m._length,b=m[y],v=m.v,N=createSizedArray(g);for(C=0;C<g;C+=1)y==="i"||y==="o"?N[C]=[b[C][0]-v[C][0],b[C][1]-v[C][1]]:N[C]=[b[C][0],b[C][1]];return N},points:function(y){return this.vertices("v",y)},inTangents:function(y){return this.vertices("i",y)},outTangents:function(y){return this.vertices("o",y)},isClosed:function(){return this.v.c},pointOnPath:function(y,f){var m=this.v;f!==void 0&&(m=this.getValueAtTime(f,0)),this._segmentsLength||(this._segmentsLength=bez.getSegmentsLength(m));for(var C=this._segmentsLength,g=C.lengths,b=C.totalLength*y,v=0,N=g.length,w=0,E;v<N;){if(w+g[v].addedLength>b){var _=v,k=m.c&&v===N-1?0:v+1,A=(b-w)/g[v].addedLength;E=bez.getPointInSegment(m.v[_],m.v[k],m.o[_],m.i[k],A,g[v]);break}else w+=g[v].addedLength;v+=1}return E||(E=m.c?[m.v[0][0],m.v[0][1]]:[m.v[m._length-1][0],m.v[m._length-1][1]]),E},vectorOnPath:function(y,f,m){y==1?y=this.v.c:y==0&&(y=.999);var C=this.pointOnPath(y,f),g=this.pointOnPath(y+.001,f),b=g[0]-C[0],v=g[1]-C[1],N=Math.sqrt(Math.pow(b,2)+Math.pow(v,2));if(N===0)return[0,0];var w=m==="tangent"?[b/N,v/N]:[-v/N,b/N];return w},tangentOnPath:function(y,f){return this.vectorOnPath(y,f,"tangent")},normalOnPath:function(y,f){return this.vectorOnPath(y,f,"normal")},setGroupProperty:expressionHelpers.setGroupProperty,getValueAtTime:expressionHelpers.getStaticValueAtTime},extendPrototype([u],c),extendPrototype([u],d),d.prototype.getValueAtTime=l,d.prototype.initiateExpression=ExpressionManager.initiateExpression;var p=ShapePropertyFactory.getShapeProp;ShapePropertyFactory.getShapeProp=function(h,y,f,m,C){var g=p(h,y,f,m,C);return g.propertyIndex=y.ix,g.lock=!1,f===3?expressionHelpers.searchExpressions(h,y.pt,g):f===4&&expressionHelpers.searchExpressions(h,y.ks,g),g.k&&h.addDynamicProperty(g),g}}function initialize$1(){addPropertyDecorator()}function addDecorator(){function e(){return this.data.d.x?(this.calculateExpression=ExpressionManager.initiateExpression.bind(this)(this.elem,this.data.d,this),this.addEffect(this.getExpressionValue.bind(this)),!0):null}TextProperty.prototype.getExpressionValue=function(t,n){var i=this.calculateExpression(n);if(t.t!==i){var s={};return this.copyData(s,t),s.t=i.toString(),s.__complete=!1,s}return t},TextProperty.prototype.searchProperty=function(){var t=this.searchKeyframes(),n=this.searchExpressions();return this.kf=t||n,this.kf},TextProperty.prototype.searchExpressions=e}function initialize(){addDecorator()}function SVGComposableEffect(){}SVGComposableEffect.prototype={createMergeNode:function e(t,n){var i=createNS("feMerge");i.setAttribute("result",t);var s,a;for(a=0;a<n.length;a+=1)s=createNS("feMergeNode"),s.setAttribute("in",n[a]),i.appendChild(s),i.appendChild(s);return i}};var linearFilterValue="0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0";function SVGTintFilter(e,t,n,i,s){this.filterManager=t;var a=createNS("feColorMatrix");a.setAttribute("type","matrix"),a.setAttribute("color-interpolation-filters","linearRGB"),a.setAttribute("values",linearFilterValue+" 1 0"),this.linearFilter=a,a.setAttribute("result",i+"_tint_1"),e.appendChild(a),a=createNS("feColorMatrix"),a.setAttribute("type","matrix"),a.setAttribute("color-interpolation-filters","sRGB"),a.setAttribute("values","1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"),a.setAttribute("result",i+"_tint_2"),e.appendChild(a),this.matrixFilter=a;var o=this.createMergeNode(i,[s,i+"_tint_1",i+"_tint_2"]);e.appendChild(o)}extendPrototype([SVGComposableEffect],SVGTintFilter),SVGTintFilter.prototype.renderFrame=function(e){if(e||this.filterManager._mdf){var t=this.filterManager.effectElements[0].p.v,n=this.filterManager.effectElements[1].p.v,i=this.filterManager.effectElements[2].p.v/100;this.linearFilter.setAttribute("values",linearFilterValue+" "+i+" 0"),this.matrixFilter.setAttribute("values",n[0]-t[0]+" 0 0 0 "+t[0]+" "+(n[1]-t[1])+" 0 0 0 "+t[1]+" "+(n[2]-t[2])+" 0 0 0 "+t[2]+" 0 0 0 1 0")}};function SVGFillFilter(e,t,n,i){this.filterManager=t;var s=createNS("feColorMatrix");s.setAttribute("type","matrix"),s.setAttribute("color-interpolation-filters","sRGB"),s.setAttribute("values","1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"),s.setAttribute("result",i),e.appendChild(s),this.matrixFilter=s}SVGFillFilter.prototype.renderFrame=function(e){if(e||this.filterManager._mdf){var t=this.filterManager.effectElements[2].p.v,n=this.filterManager.effectElements[6].p.v;this.matrixFilter.setAttribute("values","0 0 0 0 "+t[0]+" 0 0 0 0 "+t[1]+" 0 0 0 0 "+t[2]+" 0 0 0 "+n+" 0")}};function SVGStrokeEffect(e,t,n){this.initialized=!1,this.filterManager=t,this.elem=n,this.paths=[]}SVGStrokeEffect.prototype.initialize=function(){var e=this.elem.layerElement.children||this.elem.layerElement.childNodes,t,n,i,s;for(this.filterManager.effectElements[1].p.v===1?(s=this.elem.maskManager.masksProperties.length,i=0):(i=this.filterManager.effectElements[0].p.v-1,s=i+1),n=createNS("g"),n.setAttribute("fill","none"),n.setAttribute("stroke-linecap","round"),n.setAttribute("stroke-dashoffset",1),i;i<s;i+=1)t=createNS("path"),n.appendChild(t),this.paths.push({p:t,m:i});if(this.filterManager.effectElements[10].p.v===3){var a=createNS("mask"),o=createElementID();a.setAttribute("id",o),a.setAttribute("mask-type","alpha"),a.appendChild(n),this.elem.globalData.defs.appendChild(a);var l=createNS("g");for(l.setAttribute("mask","url("+getLocationHref()+"#"+o+")");e[0];)l.appendChild(e[0]);this.elem.layerElement.appendChild(l),this.masker=a,n.setAttribute("stroke","#fff")}else if(this.filterManager.effectElements[10].p.v===1||this.filterManager.effectElements[10].p.v===2){if(this.filterManager.effectElements[10].p.v===2)for(e=this.elem.layerElement.children||this.elem.layerElement.childNodes;e.length;)this.elem.layerElement.removeChild(e[0]);this.elem.layerElement.appendChild(n),this.elem.layerElement.removeAttribute("mask"),n.setAttribute("stroke","#fff")}this.initialized=!0,this.pathMasker=n},SVGStrokeEffect.prototype.renderFrame=function(e){this.initialized||this.initialize();var t,n=this.paths.length,i,s;for(t=0;t<n;t+=1)if(this.paths[t].m!==-1&&(i=this.elem.maskManager.viewData[this.paths[t].m],s=this.paths[t].p,(e||this.filterManager._mdf||i.prop._mdf)&&s.setAttribute("d",i.lastPath),e||this.filterManager.effectElements[9].p._mdf||this.filterManager.effectElements[4].p._mdf||this.filterManager.effectElements[7].p._mdf||this.filterManager.effectElements[8].p._mdf||i.prop._mdf)){var a;if(this.filterManager.effectElements[7].p.v!==0||this.filterManager.effectElements[8].p.v!==100){var o=Math.min(this.filterManager.effectElements[7].p.v,this.filterManager.effectElements[8].p.v)*.01,l=Math.max(this.filterManager.effectElements[7].p.v,this.filterManager.effectElements[8].p.v)*.01,c=s.getTotalLength();a="0 0 0 "+c*o+" ";var d=c*(l-o),u=1+this.filterManager.effectElements[4].p.v*2*this.filterManager.effectElements[9].p.v*.01,p=Math.floor(d/u),h;for(h=0;h<p;h+=1)a+="1 "+this.filterManager.effectElements[4].p.v*2*this.filterManager.effectElements[9].p.v*.01+" ";a+="0 "+c*10+" 0 0"}else a="1 "+this.filterManager.effectElements[4].p.v*2*this.filterManager.effectElements[9].p.v*.01;s.setAttribute("stroke-dasharray",a)}if((e||this.filterManager.effectElements[4].p._mdf)&&this.pathMasker.setAttribute("stroke-width",this.filterManager.effectElements[4].p.v*2),(e||this.filterManager.effectElements[6].p._mdf)&&this.pathMasker.setAttribute("opacity",this.filterManager.effectElements[6].p.v),(this.filterManager.effectElements[10].p.v===1||this.filterManager.effectElements[10].p.v===2)&&(e||this.filterManager.effectElements[3].p._mdf)){var y=this.filterManager.effectElements[3].p.v;this.pathMasker.setAttribute("stroke","rgb("+bmFloor(y[0]*255)+","+bmFloor(y[1]*255)+","+bmFloor(y[2]*255)+")")}};function SVGTritoneFilter(e,t,n,i){this.filterManager=t;var s=createNS("feColorMatrix");s.setAttribute("type","matrix"),s.setAttribute("color-interpolation-filters","linearRGB"),s.setAttribute("values","0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0 1 0"),e.appendChild(s);var a=createNS("feComponentTransfer");a.setAttribute("color-interpolation-filters","sRGB"),a.setAttribute("result",i),this.matrixFilter=a;var o=createNS("feFuncR");o.setAttribute("type","table"),a.appendChild(o),this.feFuncR=o;var l=createNS("feFuncG");l.setAttribute("type","table"),a.appendChild(l),this.feFuncG=l;var c=createNS("feFuncB");c.setAttribute("type","table"),a.appendChild(c),this.feFuncB=c,e.appendChild(a)}SVGTritoneFilter.prototype.renderFrame=function(e){if(e||this.filterManager._mdf){var t=this.filterManager.effectElements[0].p.v,n=this.filterManager.effectElements[1].p.v,i=this.filterManager.effectElements[2].p.v,s=i[0]+" "+n[0]+" "+t[0],a=i[1]+" "+n[1]+" "+t[1],o=i[2]+" "+n[2]+" "+t[2];this.feFuncR.setAttribute("tableValues",s),this.feFuncG.setAttribute("tableValues",a),this.feFuncB.setAttribute("tableValues",o)}};function SVGProLevelsFilter(e,t,n,i){this.filterManager=t;var s=this.filterManager.effectElements,a=createNS("feComponentTransfer");(s[10].p.k||s[10].p.v!==0||s[11].p.k||s[11].p.v!==1||s[12].p.k||s[12].p.v!==1||s[13].p.k||s[13].p.v!==0||s[14].p.k||s[14].p.v!==1)&&(this.feFuncR=this.createFeFunc("feFuncR",a)),(s[17].p.k||s[17].p.v!==0||s[18].p.k||s[18].p.v!==1||s[19].p.k||s[19].p.v!==1||s[20].p.k||s[20].p.v!==0||s[21].p.k||s[21].p.v!==1)&&(this.feFuncG=this.createFeFunc("feFuncG",a)),(s[24].p.k||s[24].p.v!==0||s[25].p.k||s[25].p.v!==1||s[26].p.k||s[26].p.v!==1||s[27].p.k||s[27].p.v!==0||s[28].p.k||s[28].p.v!==1)&&(this.feFuncB=this.createFeFunc("feFuncB",a)),(s[31].p.k||s[31].p.v!==0||s[32].p.k||s[32].p.v!==1||s[33].p.k||s[33].p.v!==1||s[34].p.k||s[34].p.v!==0||s[35].p.k||s[35].p.v!==1)&&(this.feFuncA=this.createFeFunc("feFuncA",a)),(this.feFuncR||this.feFuncG||this.feFuncB||this.feFuncA)&&(a.setAttribute("color-interpolation-filters","sRGB"),e.appendChild(a)),(s[3].p.k||s[3].p.v!==0||s[4].p.k||s[4].p.v!==1||s[5].p.k||s[5].p.v!==1||s[6].p.k||s[6].p.v!==0||s[7].p.k||s[7].p.v!==1)&&(a=createNS("feComponentTransfer"),a.setAttribute("color-interpolation-filters","sRGB"),a.setAttribute("result",i),e.appendChild(a),this.feFuncRComposed=this.createFeFunc("feFuncR",a),this.feFuncGComposed=this.createFeFunc("feFuncG",a),this.feFuncBComposed=this.createFeFunc("feFuncB",a))}SVGProLevelsFilter.prototype.createFeFunc=function(e,t){var n=createNS(e);return n.setAttribute("type","table"),t.appendChild(n),n},SVGProLevelsFilter.prototype.getTableValue=function(e,t,n,i,s){for(var a=0,o=256,l,c=Math.min(e,t),d=Math.max(e,t),u=Array.call(null,{length:o}),p,h=0,y=s-i,f=t-e;a<=256;)l=a/256,l<=c?p=f<0?s:i:l>=d?p=f<0?i:s:p=i+y*Math.pow((l-e)/f,1/n),u[h]=p,h+=1,a+=256/(o-1);return u.join(" ")},SVGProLevelsFilter.prototype.renderFrame=function(e){if(e||this.filterManager._mdf){var t,n=this.filterManager.effectElements;this.feFuncRComposed&&(e||n[3].p._mdf||n[4].p._mdf||n[5].p._mdf||n[6].p._mdf||n[7].p._mdf)&&(t=this.getTableValue(n[3].p.v,n[4].p.v,n[5].p.v,n[6].p.v,n[7].p.v),this.feFuncRComposed.setAttribute("tableValues",t),this.feFuncGComposed.setAttribute("tableValues",t),this.feFuncBComposed.setAttribute("tableValues",t)),this.feFuncR&&(e||n[10].p._mdf||n[11].p._mdf||n[12].p._mdf||n[13].p._mdf||n[14].p._mdf)&&(t=this.getTableValue(n[10].p.v,n[11].p.v,n[12].p.v,n[13].p.v,n[14].p.v),this.feFuncR.setAttribute("tableValues",t)),this.feFuncG&&(e||n[17].p._mdf||n[18].p._mdf||n[19].p._mdf||n[20].p._mdf||n[21].p._mdf)&&(t=this.getTableValue(n[17].p.v,n[18].p.v,n[19].p.v,n[20].p.v,n[21].p.v),this.feFuncG.setAttribute("tableValues",t)),this.feFuncB&&(e||n[24].p._mdf||n[25].p._mdf||n[26].p._mdf||n[27].p._mdf||n[28].p._mdf)&&(t=this.getTableValue(n[24].p.v,n[25].p.v,n[26].p.v,n[27].p.v,n[28].p.v),this.feFuncB.setAttribute("tableValues",t)),this.feFuncA&&(e||n[31].p._mdf||n[32].p._mdf||n[33].p._mdf||n[34].p._mdf||n[35].p._mdf)&&(t=this.getTableValue(n[31].p.v,n[32].p.v,n[33].p.v,n[34].p.v,n[35].p.v),this.feFuncA.setAttribute("tableValues",t))}};function SVGDropShadowEffect(e,t,n,i,s){var a=t.container.globalData.renderConfig.filterSize,o=t.data.fs||a;e.setAttribute("x",o.x||a.x),e.setAttribute("y",o.y||a.y),e.setAttribute("width",o.width||a.width),e.setAttribute("height",o.height||a.height),this.filterManager=t;var l=createNS("feGaussianBlur");l.setAttribute("in","SourceAlpha"),l.setAttribute("result",i+"_drop_shadow_1"),l.setAttribute("stdDeviation","0"),this.feGaussianBlur=l,e.appendChild(l);var c=createNS("feOffset");c.setAttribute("dx","25"),c.setAttribute("dy","0"),c.setAttribute("in",i+"_drop_shadow_1"),c.setAttribute("result",i+"_drop_shadow_2"),this.feOffset=c,e.appendChild(c);var d=createNS("feFlood");d.setAttribute("flood-color","#00ff00"),d.setAttribute("flood-opacity","1"),d.setAttribute("result",i+"_drop_shadow_3"),this.feFlood=d,e.appendChild(d);var u=createNS("feComposite");u.setAttribute("in",i+"_drop_shadow_3"),u.setAttribute("in2",i+"_drop_shadow_2"),u.setAttribute("operator","in"),u.setAttribute("result",i+"_drop_shadow_4"),e.appendChild(u);var p=this.createMergeNode(i,[i+"_drop_shadow_4",s]);e.appendChild(p)}extendPrototype([SVGComposableEffect],SVGDropShadowEffect),SVGDropShadowEffect.prototype.renderFrame=function(e){if(e||this.filterManager._mdf){if((e||this.filterManager.effectElements[4].p._mdf)&&this.feGaussianBlur.setAttribute("stdDeviation",this.filterManager.effectElements[4].p.v/4),e||this.filterManager.effectElements[0].p._mdf){var t=this.filterManager.effectElements[0].p.v;this.feFlood.setAttribute("flood-color",rgbToHex(Math.round(t[0]*255),Math.round(t[1]*255),Math.round(t[2]*255)))}if((e||this.filterManager.effectElements[1].p._mdf)&&this.feFlood.setAttribute("flood-opacity",this.filterManager.effectElements[1].p.v/255),e||this.filterManager.effectElements[2].p._mdf||this.filterManager.effectElements[3].p._mdf){var n=this.filterManager.effectElements[3].p.v,i=(this.filterManager.effectElements[2].p.v-90)*degToRads,s=n*Math.cos(i),a=n*Math.sin(i);this.feOffset.setAttribute("dx",s),this.feOffset.setAttribute("dy",a)}}};var _svgMatteSymbols=[];function SVGMatte3Effect(e,t,n){this.initialized=!1,this.filterManager=t,this.filterElem=e,this.elem=n,n.matteElement=createNS("g"),n.matteElement.appendChild(n.layerElement),n.matteElement.appendChild(n.transformedElement),n.baseElement=n.matteElement}SVGMatte3Effect.prototype.findSymbol=function(e){for(var t=0,n=_svgMatteSymbols.length;t<n;){if(_svgMatteSymbols[t]===e)return _svgMatteSymbols[t];t+=1}return null},SVGMatte3Effect.prototype.replaceInParent=function(e,t){var n=e.layerElement.parentNode;if(n){for(var i=n.children,s=0,a=i.length;s<a&&i[s]!==e.layerElement;)s+=1;var o;s<=a-2&&(o=i[s+1]);var l=createNS("use");l.setAttribute("href","#"+t),o?n.insertBefore(l,o):n.appendChild(l)}},SVGMatte3Effect.prototype.setElementAsMask=function(e,t){if(!this.findSymbol(t)){var n=createElementID(),i=createNS("mask");i.setAttribute("id",t.layerId),i.setAttribute("mask-type","alpha"),_svgMatteSymbols.push(t);var s=e.globalData.defs;s.appendChild(i);var a=createNS("symbol");a.setAttribute("id",n),this.replaceInParent(t,n),a.appendChild(t.layerElement),s.appendChild(a);var o=createNS("use");o.setAttribute("href","#"+n),i.appendChild(o),t.data.hd=!1,t.show()}e.setMatte(t.layerId)},SVGMatte3Effect.prototype.initialize=function(){for(var e=this.filterManager.effectElements[0].p.v,t=this.elem.comp.elements,n=0,i=t.length;n<i;)t[n]&&t[n].data.ind===e&&this.setElementAsMask(this.elem,t[n]),n+=1;this.initialized=!0},SVGMatte3Effect.prototype.renderFrame=function(){this.initialized||this.initialize()};function SVGGaussianBlurEffect(e,t,n,i){e.setAttribute("x","-100%"),e.setAttribute("y","-100%"),e.setAttribute("width","300%"),e.setAttribute("height","300%"),this.filterManager=t;var s=createNS("feGaussianBlur");s.setAttribute("result",i),e.appendChild(s),this.feGaussianBlur=s}SVGGaussianBlurEffect.prototype.renderFrame=function(e){if(e||this.filterManager._mdf){var t=.3,n=this.filterManager.effectElements[0].p.v*t,i=this.filterManager.effectElements[1].p.v,s=i==3?0:n,a=i==2?0:n;this.feGaussianBlur.setAttribute("stdDeviation",s+" "+a);var o=this.filterManager.effectElements[2].p.v==1?"wrap":"duplicate";this.feGaussianBlur.setAttribute("edgeMode",o)}};function TransformEffect(){}TransformEffect.prototype.init=function(e){this.effectsManager=e,this.type=effectTypes.TRANSFORM_EFFECT,this.matrix=new Matrix,this.opacity=-1,this._mdf=!1,this._opMdf=!1},TransformEffect.prototype.renderFrame=function(e){if(this._opMdf=!1,this._mdf=!1,e||this.effectsManager._mdf){var t=this.effectsManager.effectElements,n=t[0].p.v,i=t[1].p.v,s=t[2].p.v===1,a=t[3].p.v,o=s?a:t[4].p.v,l=t[5].p.v,c=t[6].p.v,d=t[7].p.v;this.matrix.reset(),this.matrix.translate(-n[0],-n[1],n[2]),this.matrix.scale(o*.01,a*.01,1),this.matrix.rotate(-d*degToRads),this.matrix.skewFromAxis(-l*degToRads,(c+90)*degToRads),this.matrix.translate(i[0],i[1],0),this._mdf=!0,this.opacity!==t[8].p.v&&(this.opacity=t[8].p.v,this._opMdf=!0)}};function SVGTransformEffect(e,t){this.init(t)}extendPrototype([TransformEffect],SVGTransformEffect);function CVTransformEffect(e){this.init(e)}return extendPrototype([TransformEffect],CVTransformEffect),registerRenderer("canvas",CanvasRenderer),registerRenderer("html",HybridRenderer),registerRenderer("svg",SVGRenderer),ShapeModifiers.registerModifier("tm",TrimModifier),ShapeModifiers.registerModifier("pb",PuckerAndBloatModifier),ShapeModifiers.registerModifier("rp",RepeaterModifier),ShapeModifiers.registerModifier("rd",RoundCornersModifier),ShapeModifiers.registerModifier("zz",ZigZagModifier),ShapeModifiers.registerModifier("op",OffsetPathModifier),setExpressionsPlugin(Expressions),setExpressionInterfaces(getInterface),initialize$1(),initialize(),registerEffect$1(20,SVGTintFilter,!0),registerEffect$1(21,SVGFillFilter,!0),registerEffect$1(22,SVGStrokeEffect,!1),registerEffect$1(23,SVGTritoneFilter,!0),registerEffect$1(24,SVGProLevelsFilter,!0),registerEffect$1(25,SVGDropShadowEffect,!0),registerEffect$1(28,SVGMatte3Effect,!1),registerEffect$1(29,SVGGaussianBlurEffect,!0),registerEffect$1(35,SVGTransformEffect,!1),registerEffect(35,CVTransformEffect),lottie}))})(lottie$2,lottie$2.exports)),lottie$2.exports}var lottieExports=requireLottie();const lottie=getDefaultExportFromCjs(lottieExports);var script={props:{animationData:{type:[Object,String],required:!0},loop:{type:[Boolean,Number],default:!1},autoPlay:{type:Boolean,default:!0},renderer:{type:String,default:"svg"},speed:{type:Number,default:1}},data:function e(){return{anim:null}},mounted:function e(){this.init()},beforeDestroy:function e(){this.anim&&this.anim.destroy()},methods:{init:function e(){var t=this,n={container:this.$refs.animation,renderer:this.renderer,loop:this.loop,autoplay:this.autoPlay,animationData:this.animationData};this.anim=lottie.loadAnimation(n),this.anim.addEventListener("loopComplete",function(){t.$emit("loopComplete",t.anim)}),this.anim.addEventListener("complete",function(){t.$emit("complete",t.anim)}),this.anim.addEventListener("enterFrame",function(){t.$emit("enterFrame",t.anim)})},play:function e(){this.anim&&this.anim.play()},stop:function e(){this.anim&&this.anim.stop()},pause:function e(){this.anim&&this.anim.pause()}}};function normalizeComponent(e,t,n,i,s,a,o,l,c,d){var u=typeof n=="function"?n.options:n;return e&&e.render&&(u.render=e.render,u.staticRenderFns=e.staticRenderFns,u._compiled=!0),n}var __vue_script__=script,__vue_render__=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{ref:"animation"})},__vue_staticRenderFns__=[];__vue_render__._withStripped=!0;var __vue_inject_styles__=void 0,__vue_component__=normalizeComponent({render:__vue_render__,staticRenderFns:__vue_staticRenderFns__},__vue_inject_styles__,__vue_script__);function install(e){install.installed||(install.installed=!0,e.component("LottieWebVue",__vue_component__))}var plugin={install},GlobalVue=null;typeof window<"u"?GlobalVue=window.Vue:typeof global<"u"&&(GlobalVue=global.Vue),GlobalVue&&GlobalVue.use(plugin);const _hoisted_1$f=["title","aria-label","role"],_hoisted_2$e={key:0,class:"flex items-center justify-center h-full"},_hoisted_3$d={key:0,class:"ml-2 text-sm text-muted-foreground"},_hoisted_4$b={key:1,class:"flex items-center justify-center h-full text-destructive"},_hoisted_5$9={class:"text-sm"},_sfc_main$w=No.defineComponent({__name:"NSLottieAnimation",props:{path:{},animationData:{},width:{default:200},height:{default:200},loop:{type:Boolean,default:!1},autoplay:{type:Boolean,default:!0},speed:{default:1},playOnHover:{type:Boolean,default:!1},stopOnHoverOut:{type:Boolean,default:!1},direction:{default:1},renderer:{default:"svg"},className:{},containerClassName:{},lazy:{type:Boolean,default:!1},placeholder:{},responsive:{type:Boolean,default:!0},preserveAspectRatio:{default:"xMidYMid meet"},title:{},ariaLabel:{},role:{default:"img"}},emits:["load","ready","play","pause","stop","complete","loopComplete","enterFrame","error","mouseOver","mouseOut"],setup(e,{expose:t,emit:n}){const i=e,s=n,a=No.ref(!1),o=No.ref(!1),l=No.ref(!1),c=No.ref(i.autoplay),d=No.ref(null),u=No.ref(),p=No.computed(()=>({path:i.path,animationData:i.animationData,loop:i.loop,autoplay:i.autoplay&&!i.playOnHover,renderer:i.renderer,rendererSettings:{preserveAspectRatio:i.preserveAspectRatio}})),h=No.computed(()=>({width:i.width?typeof i.width=="number"?`${i.width}px`:i.width:"auto",height:i.height?typeof i.height=="number"?`${i.height}px`:i.height:"auto",maxWidth:i.responsive?"100%":void 0})),y=No.computed(()=>cn("relative inline-block",{"opacity-50":a.value,"opacity-100":!a.value},i.containerClassName)),f=No.computed(()=>cn("w-full h-full",i.className)),m=()=>{u.value&&!c.value&&(u.value.play(),c.value=!0,s("play"))},C=()=>{u.value&&c.value&&(u.value.pause(),c.value=!1,s("pause"))},g=()=>{u.value&&(u.value.stop(),c.value=!1,s("stop"))},b=D=>{u.value&&u.value.goToAndStop(D||0,!0)},v=D=>{u.value&&u.value.setDirection(D)},N=D=>{u.value&&u.value.setSpeed(D)},w=()=>{l.value=!0,a.value=!1,s("ready")},E=()=>{a.value=!1,o.value=!0,d.value="Failed to load animation",s("error",new Error("Animation data failed to load"))},_=()=>{s("load")},k=()=>{s("complete")},A=()=>{s("loopComplete")},F=D=>{s("enterFrame",D)},B=()=>{i.playOnHover&&!c.value&&m(),s("mouseOver")},I=()=>{i.stopOnHoverOut&&c.value&&C(),s("mouseOut")};return No.watch([()=>i.path,()=>i.animationData],()=>{a.value=!0,l.value=!1,o.value=!1}),No.watch(()=>i.speed,D=>{N(D)}),No.watch(()=>i.direction,D=>{v(D)}),t({play:m,pause:C,stop:g,goToAndStop:b,setDirection:v,setSpeed:N,isLoaded:l,isPlaying:c,isLoading:a,isError:o}),(D,L)=>(No.openBlock(),No.createElementBlock("div",{class:No.normalizeClass(y.value),style:No.normalizeStyle(h.value),title:e.title,"aria-label":e.ariaLabel,role:e.role,onMouseover:B,onMouseout:I},[a.value&&!l.value?(No.openBlock(),No.createElementBlock("div",_hoisted_2$e,[L[0]||(L[0]=No.createElementVNode("div",{class:"animate-spin rounded-full h-8 w-8 border-b-2 border-primary"},null,-1)),e.placeholder?(No.openBlock(),No.createElementBlock("span",_hoisted_3$d,No.toDisplayString(e.placeholder),1)):No.createCommentVNode("",!0)])):o.value?(No.openBlock(),No.createElementBlock("div",_hoisted_4$b,[No.createElementVNode("div",_hoisted_5$9,No.toDisplayString(d.value||"Failed to load animation"),1)])):No.createCommentVNode("",!0),e.path||e.animationData?(No.openBlock(),No.createBlock(No.unref(__vue_component__),{key:2,ref_key:"lottieRef",ref:u,options:p.value,width:e.width,height:e.height,class:No.normalizeClass(f.value),onOnDataReady:w,onOnDataFailed:E,onOnDOMLoaded:_,onOnComplete:k,onOnLoopComplete:A,onOnEnterFrame:F},null,8,["options","width","height","class"])):No.createCommentVNode("",!0)],46,_hoisted_1$f))}}),_hoisted_1$e={class:"mb-4"},_hoisted_2$d={key:2,class:"mt-4"},_hoisted_3$c={key:3,class:"mt-6"},_sfc_main$v=No.defineComponent({__name:"NSEmptyState",props:{title:{default:"No data available"},description:{},icon:{},lottiePath:{},lottieData:{},animationTitle:{},size:{default:"default"},variant:{default:"default"},loop:{type:[Boolean,Number],default:!0},animateOnHover:{type:Boolean,default:!1},autoPlay:{type:Boolean,default:!0},class:{},iconClass:{},titleClass:{},descriptionClass:{}},setup(e){const t=e,n=No.computed(()=>{if(t.icon)return null;const p=t.title?.toLowerCase()||"";return p.includes("search")||p.includes("find")||p.includes("result")?lucideVueNext.Search:p.includes("empty")||p.includes("no")||p.includes("data")?lucideVueNext.FileX:p.includes("message")||p.includes("notification")||p.includes("alert")?lucideVueNext.InBox:p.includes("error")||p.includes("warning")?lucideVueNext.AlertCircle:lucideVueNext.Info}),i=No.computed(()=>typeof t.icon=="object"?t.icon:typeof t.icon=="string"&&{"file-x":lucideVueNext.FileX,search:lucideVueNext.Search,inbox:lucideVueNext.InBox,"alert-circle":lucideVueNext.AlertCircle,info:lucideVueNext.Info}[t.icon]||n.value),s=No.computed(()=>{const p={default:"p-8",sm:"p-4",lg:"p-12"},h={default:"text-foreground",muted:"text-muted-foreground"};return cn("flex flex-col items-center justify-center text-center",p[t.size],h[t.variant],t.class)}),a=No.computed(()=>cn("text-muted-foreground",{default:"h-16 w-16",sm:"h-12 w-12",lg:"h-20 w-20"}[t.size],t.iconClass)),o=No.computed(()=>cn("text-lg font-semibold mb-2",{"text-foreground":t.variant==="default","text-muted-foreground":t.variant==="muted"},t.titleClass)),l=No.computed(()=>cn("text-sm max-w-md mb-6",{"text-muted-foreground":t.variant==="default","text-muted-foreground/70":t.variant==="muted"},t.descriptionClass)),c=No.computed(()=>!!$slots.icon),d=No.computed(()=>!!$slots.description),u=No.computed(()=>!!$slots.actions);return(p,h)=>(No.openBlock(),No.createElementBlock("div",{class:No.normalizeClass(s.value)},[No.createElementVNode("div",_hoisted_1$e,[No.renderSlot(p.$slots,"icon",{},()=>[e.lottiePath||e.lottieData?(No.openBlock(),No.createBlock(No.unref(_sfc_main$w),{key:0,path:e.lottiePath,"animation-data":e.lottieData,width:48,height:48,class:No.normalizeClass(a.value),title:e.animationTitle||e.title,"play-on-hover":!0,"stop-on-hover-out":!0},null,8,["path","animation-data","class","title"])):i.value&&!c.value?(No.openBlock(),No.createBlock(No.resolveDynamicComponent(i.value),{key:1,class:No.normalizeClass(a.value)},null,8,["class"])):No.createCommentVNode("",!0)])]),e.title||p.$slots.title?(No.openBlock(),No.createElementBlock("h3",{key:0,class:No.normalizeClass(o.value)},[No.renderSlot(p.$slots,"title",{},()=>[No.createTextVNode(No.toDisplayString(e.title),1)])],2)):No.createCommentVNode("",!0),d.value||e.description?(No.openBlock(),No.createElementBlock("div",{key:1,class:No.normalizeClass(l.value)},[No.renderSlot(p.$slots,"description",{},()=>[No.createElementVNode("p",null,No.toDisplayString(e.description),1)])],2)):No.createCommentVNode("",!0),u.value?(No.openBlock(),No.createElementBlock("div",_hoisted_2$d,[No.renderSlot(p.$slots,"actions")])):No.createCommentVNode("",!0),p.$slots.extra?(No.openBlock(),No.createElementBlock("div",_hoisted_3$c,[No.renderSlot(p.$slots,"extra")])):No.createCommentVNode("",!0)],2))}}),_hoisted_1$d=["role","aria-live"],_hoisted_2$c={key:1,class:"h-4 w-4 absolute right-12 top-4"},_hoisted_3$b={class:"grid gap-1"},_hoisted_4$a={key:0,class:"text-sm font-medium leading-none"},_hoisted_5$8=["aria-label"],_sfc_main$u=No.defineComponent({__name:"NSInlineNotification",props:{title:{},description:{},variant:{default:"info"},showCloseButton:{type:Boolean,default:!1},actionLabel:{},closeAriaLabel:{default:"Dismiss notification"},loading:{type:Boolean,default:!1},timer:{},lowContrast:{type:Boolean,default:!1},class:{},icon:{}},emits:["close","action"],setup(e,{emit:t}){const n=e,i=t,s=No.computed(()=>{if(n.icon)return n.icon;switch(n.variant){case"destructive":return lucideVueNext.AlertCircle;case"warning":return lucideVueNext.AlertTriangle;case"success":return lucideVueNext.CheckCircle;default:return lucideVueNext.Info}}),a=No.computed(()=>cn("relative w-full rounded-lg border p-4 [&>svg~*]:pl-7 [&>svg+div]:translate-y-[-3px] [&>svg]:absolute [&>svg]:left-4 [&>svg]:top-4 [&>svg]:text-foreground",{default:"bg-background text-foreground",destructive:"border-destructive/50 text-destructive dark:border-destructive [&>svg]:text-destructive",warning:"border-orange-500/50 text-orange-800 dark:border-orange-500 [&>svg]:text-orange-500 dark:text-orange-400",success:"border-green-500/50 text-green-800 dark:border-green-500 [&>svg]:text-green-500 dark:text-green-400",info:"border-blue-500/50 text-blue-800 dark:border-blue-500 [&>svg]:text-blue-500 dark:text-blue-400"}[n.variant],{"opacity-75":n.lowContrast},n.class)),o=No.computed(()=>n.variant==="destructive"||n.variant==="warning"?"alert":"status"),l=No.computed(()=>n.variant==="destructive"?"assertive":"polite"),c=No.computed(()=>n.title||$slots.title),d=No.computed(()=>n.description||$slots.description),u=No.computed(()=>n.actionLabel),p=No.computed(()=>n.timer),h=No.computed(()=>n.loading),y=No.computed(()=>n.showCloseButton&&!h.value);return(f,m)=>(No.openBlock(),No.createElementBlock("div",{class:No.normalizeClass(a.value),role:o.value,"aria-live":l.value},[(No.openBlock(),No.createBlock(No.resolveDynamicComponent(s.value),{class:"h-4 w-4"})),e.loading?(No.openBlock(),No.createBlock(No.unref(lucideVueNext.Loader2),{key:0,class:"h-4 w-4 animate-spin absolute right-12 top-4"})):No.createCommentVNode("",!0),e.timer?(No.openBlock(),No.createElementBlock("div",_hoisted_2$c,[...m[2]||(m[2]=[No.createElementVNode("div",{class:"h-4 w-4 rounded-full border-2 border-current animate-pulse"},null,-1)])])):No.createCommentVNode("",!0),No.createElementVNode("div",_hoisted_3$b,[c.value?(No.openBlock(),No.createElementBlock("h4",_hoisted_4$a,[No.renderSlot(f.$slots,"title",{},()=>[No.createTextVNode(No.toDisplayString(e.title),1)])])):No.createCommentVNode("",!0),d.value?(No.openBlock(),No.createElementBlock("p",{key:1,class:No.normalizeClass(No.unref(cn)("text-sm opacity-90",{"mr-12":u.value||y.value||p.value||h.value}))},[No.renderSlot(f.$slots,"description",{},()=>[No.createTextVNode(No.toDisplayString(e.description),1)])],2)):No.createCommentVNode("",!0),u.value?(No.openBlock(),No.createElementBlock("button",{key:2,type:"button",class:"inline-flex items-center text-sm font-medium underline underline-offset-2 hover:no-underline focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 rounded-sm",onClick:m[0]||(m[0]=C=>i("action"))},No.toDisplayString(e.actionLabel),1)):No.createCommentVNode("",!0)]),y.value?(No.openBlock(),No.createElementBlock("button",{key:2,type:"button","aria-label":e.closeAriaLabel,class:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none",onClick:m[1]||(m[1]=C=>i("close"))},[No.createVNode(No.unref(lucideVueNext.X),{class:"h-4 w-4"})],8,_hoisted_5$8)):No.createCommentVNode("",!0),No.renderSlot(f.$slots,"extra")],10,_hoisted_1$d))}}),_hoisted_1$c={class:"grid gap-1"},_hoisted_2$b={key:0,class:"text-sm font-semibold"},_hoisted_3$a={key:1,class:"text-sm opacity-90"},_hoisted_4$9=["aria-label"],_sfc_main$t=No.defineComponent({__name:"NSToastNotification",props:{title:{},description:{},variant:{default:"info"},duration:{default:5e3},showCloseButton:{type:Boolean,default:!0},actionLabel:{},closeAriaLabel:{default:"Close notification"},position:{default:"top-right"},loading:{type:Boolean,default:!1},class:{},icon:{}},emits:["close","action"],setup(e,{emit:t}){const n=e,i=t,s=No.computed(()=>{if(n.icon)return n.icon;switch(n.variant){case"destructive":return lucideVueNext.AlertCircle;case"warning":return lucideVueNext.AlertTriangle;case"success":return lucideVueNext.CheckCircle;default:return lucideVueNext.Info}}),a=No.computed(()=>cn("group pointer-events-auto relative flex w-full items-center justify-between space-x-4 overflow-hidden rounded-md border p-6 pr-8 shadow-lg transition-all data-[swipe=move]:translate-x-[var(--radix-toast-swipe-move-x)] data-[swipe=cancel]:translate-x-0 data-[swipe=end]:animate-out data-[state=open]:animate-in data-[state=closed]:animate-out data-[swipe=end]:animate-out data-[state=closed]:fade-out-80 data-[state=closed]:slide-out-to-right-full data-[state=open]:slide-in-from-top-full data-[state=open]:sm:slide-in-from-bottom-full md:data-[state=open]:slide-in-from-right-full",{default:"border-border bg-background text-foreground",destructive:"border-destructive/50 bg-destructive text-destructive-foreground",warning:"border-orange-500/50 bg-orange-500 text-white",success:"border-green-500/50 bg-green-500 text-white",info:"border-blue-500/50 bg-blue-500 text-white"}[n.variant],n.class)),o=No.computed(()=>cn("fixed z-50 flex flex-col-reverse p-4",{"top-right":"top-0 right-0","top-left":"top-0 left-0","bottom-right":"bottom-0 right-0","bottom-left":"bottom-0 left-0","top-center":"top-0 left-1/2 -translate-x-1/2","bottom-center":"bottom-0 left-1/2 -translate-x-1/2"}[n.position]));return(l,c)=>(No.openBlock(),No.createElementBlock("div",{class:No.normalizeClass(o.value)},[No.createElementVNode("div",{class:No.normalizeClass(a.value)},[(No.openBlock(),No.createBlock(No.resolveDynamicComponent(s.value),{class:"h-5 w-5 shrink-0"})),e.loading?(No.openBlock(),No.createBlock(No.unref(lucideVueNext.Loader2),{key:0,class:"h-5 w-5 shrink-0 animate-spin"})):No.createCommentVNode("",!0),No.createElementVNode("div",_hoisted_1$c,[e.title||l.$slots.title?(No.openBlock(),No.createElementBlock("div",_hoisted_2$b,[No.renderSlot(l.$slots,"title",{},()=>[No.createTextVNode(No.toDisplayString(e.title),1)],!0)])):No.createCommentVNode("",!0),e.description||l.$slots.description?(No.openBlock(),No.createElementBlock("div",_hoisted_3$a,[No.renderSlot(l.$slots,"description",{},()=>[No.createTextVNode(No.toDisplayString(e.description),1)],!0)])):No.createCommentVNode("",!0),e.actionLabel?(No.openBlock(),No.createElementBlock("button",{key:2,type:"button",class:No.normalizeClass(No.unref(cn)("inline-flex items-center text-sm font-medium underline underline-offset-2 hover:no-underline",{"text-destructive-foreground":e.variant==="destructive","text-white":["warning","success","info"].includes(e.variant),"text-foreground":e.variant==="default"})),onClick:c[0]||(c[0]=d=>i("action"))},No.toDisplayString(e.actionLabel),3)):No.createCommentVNode("",!0)]),e.showCloseButton?(No.openBlock(),No.createElementBlock("button",{key:1,type:"button","aria-label":e.closeAriaLabel,class:No.normalizeClass(No.unref(cn)("absolute right-2 top-2 rounded-md p-1 text-foreground/50 opacity-0 transition-opacity hover:text-foreground focus:opacity-100 focus:outline-none focus:ring-2 group-hover:opacity-100",{"text-destructive-foreground/50 hover:text-destructive-foreground":e.variant==="destructive","text-white/50 hover:text-white":["warning","success","info"].includes(e.variant)})),onClick:c[1]||(c[1]=d=>i("close"))},[No.createVNode(No.unref(lucideVueNext.X),{class:"h-4 w-4"})],10,_hoisted_4$9)):No.createCommentVNode("",!0),e.duration>0?(No.openBlock(),No.createElementBlock("div",{key:2,class:"absolute bottom-0 left-0 h-1 bg-black/20 dark:bg-white/20 animate-[shrink_x_var(--duration)_linear_forwards]",style:No.normalizeStyle({"--duration":`${e.duration}ms`})},null,4)):No.createCommentVNode("",!0)],2)],2))}}),_export_sfc=(e,t)=>{const n=e.__vccOpts||e;for(const[i,s]of t)n[i]=s;return n},NSToastNotification=_export_sfc(_sfc_main$t,[["__scopeId","data-v-64d944b6"]]),_hoisted_1$b={class:"space-y-2"},_hoisted_2$a={key:0,class:"flex items-center justify-between"},_hoisted_3$9=["aria-valuenow","aria-valuemax"],_hoisted_4$8={key:1,class:"text-sm text-muted-foreground"},_sfc_main$s=No.defineComponent({__name:"NSProgress",props:{value:{},max:{default:100},variant:{default:"default"},size:{default:"default"},showLabel:{type:Boolean,default:!1},label:{},indeterminate:{type:Boolean,default:!1},class:{}},setup(e){const t=e,n=No.computed(()=>t.indeterminate?0:Math.min(Math.max((t.value||0)/t.max*100,0),100)),i=No.computed(()=>cn("relative w-full overflow-hidden rounded-full bg-secondary",{default:"h-2",sm:"h-1",lg:"h-3"}[t.size],t.class)),s=No.computed(()=>cn("h-full w-full flex-1 bg-primary transition-all",{default:"bg-primary",destructive:"bg-destructive",success:"bg-green-500",warning:"bg-orange-500",info:"bg-blue-500"}[t.variant],{"animate-pulse":t.indeterminate,"transition-all":!t.indeterminate})),a=No.computed(()=>cn("text-sm font-medium",{default:"text-foreground",destructive:"text-destructive",success:"text-green-600",warning:"text-orange-600",info:"text-blue-600"}[t.variant]));return(o,l)=>(No.openBlock(),No.createElementBlock("div",_hoisted_1$b,[e.showLabel&&(e.label||o.$slots.label)?(No.openBlock(),No.createElementBlock("div",_hoisted_2$a,[No.createElementVNode("div",{class:No.normalizeClass(a.value)},[No.renderSlot(o.$slots,"label",{},()=>[No.createTextVNode(No.toDisplayString(e.label),1)],!0)],2),e.indeterminate?No.createCommentVNode("",!0):(No.openBlock(),No.createElementBlock("div",{key:0,class:No.normalizeClass(a.value)},No.toDisplayString(Math.round(n.value))+"% ",3))])):No.createCommentVNode("",!0),No.createElementVNode("div",{class:No.normalizeClass(i.value),role:"progressbar","aria-valuenow":e.value,"aria-valuemax":e.max},[No.createElementVNode("div",{class:No.normalizeClass(s.value),style:No.normalizeStyle({width:e.indeterminate?"100%":`${n.value}%`,animation:e.indeterminate?"indeterminate 2s ease-in-out infinite":void 0})},null,6)],10,_hoisted_3$9),o.$slots.value?(No.openBlock(),No.createElementBlock("div",_hoisted_4$8,[No.renderSlot(o.$slots,"value",{value:e.value,percentage:n.value},void 0,!0)])):No.createCommentVNode("",!0)]))}}),NSProgress=_export_sfc(_sfc_main$s,[["__scopeId","data-v-257fd9e2"]]),_hoisted_1$a={class:"space-y-2"},_hoisted_2$9={key:0,class:"flex items-center justify-between"},_hoisted_3$8=["aria-valuenow","aria-valuemax"],_hoisted_4$7={key:0,class:"h-full w-full bg-gradient-to-r from-transparent via-white/20 to-transparent animate-[shimmer_2s_ease-in-out_infinite]"},_hoisted_5$7={key:1,class:"text-sm text-muted-foreground"},_sfc_main$r=No.defineComponent({__name:"NSProgressBar",props:{value:{},max:{default:100},variant:{default:"default"},size:{default:"default"},showLabel:{type:Boolean,default:!1},label:{},indeterminate:{type:Boolean,default:!1},animated:{type:Boolean,default:!0},class:{}},setup(e){const t=e,n=No.computed(()=>t.indeterminate?0:Math.min(Math.max((t.value||0)/t.max*100,0),100)),i=No.computed(()=>cn("relative w-full bg-secondary overflow-hidden rounded-md",{default:"h-4",sm:"h-3",lg:"h-6"}[t.size],t.class)),s=No.computed(()=>cn("h-full flex-1 transition-all",{default:"bg-primary",destructive:"bg-destructive",success:"bg-green-500",warning:"bg-orange-500",info:"bg-blue-500"}[t.variant],{"transition-all":t.animated&&!t.indeterminate,"animate-pulse":t.indeterminate,"bg-gradient-to-r from-primary/80 to-primary":t.animated&&t.variant==="default","bg-gradient-to-r from-destructive/80 to-destructive":t.animated&&t.variant==="destructive","bg-gradient-to-r from-green-400 to-green-500":t.animated&&t.variant==="success","bg-gradient-to-r from-orange-400 to-orange-500":t.animated&&t.variant==="warning","bg-gradient-to-r from-blue-400 to-blue-500":t.animated&&t.variant==="info"})),a=No.computed(()=>cn("text-sm font-medium",{default:"text-foreground",destructive:"text-destructive",success:"text-green-600",warning:"text-orange-600",info:"text-blue-600"}[t.variant]));return(o,l)=>(No.openBlock(),No.createElementBlock("div",_hoisted_1$a,[e.showLabel&&(e.label||o.$slots.label)?(No.openBlock(),No.createElementBlock("div",_hoisted_2$9,[No.createElementVNode("div",{class:No.normalizeClass(a.value)},[No.renderSlot(o.$slots,"label",{},()=>[No.createTextVNode(No.toDisplayString(e.label),1)],!0)],2),e.indeterminate?No.createCommentVNode("",!0):(No.openBlock(),No.createElementBlock("div",{key:0,class:No.normalizeClass(a.value)},No.toDisplayString(Math.round(n.value))+"% ",3))])):No.createCommentVNode("",!0),No.createElementVNode("div",{class:No.normalizeClass(i.value),role:"progressbar","aria-valuenow":e.value,"aria-valuemax":e.max},[No.createElementVNode("div",{class:No.normalizeClass(s.value),style:No.normalizeStyle({width:e.indeterminate?"100%":`${n.value}%`,animation:e.indeterminate?"indeterminate 2s ease-in-out infinite":void 0})},[e.animated&&!e.indeterminate?(No.openBlock(),No.createElementBlock("div",_hoisted_4$7)):No.createCommentVNode("",!0)],6)],10,_hoisted_3$8),o.$slots.value?(No.openBlock(),No.createElementBlock("div",_hoisted_5$7,[No.renderSlot(o.$slots,"value",{value:e.value,percentage:n.value},void 0,!0)])):No.createCommentVNode("",!0)]))}}),NSProgressBar=_export_sfc(_sfc_main$r,[["__scopeId","data-v-fa7b6aa9"]]),_hoisted_1$9={class:"space-y-1"},_hoisted_2$8={class:"flex items-center gap-2"},_hoisted_3$7=["title"],_sfc_main$q=No.defineComponent({__name:"NSModal",props:{open:{type:Boolean},modelValue:{type:Boolean},title:{},description:{},showCloseButton:{type:Boolean,default:!0},closeOnOverlayClick:{type:Boolean,default:!0},closeOnEscape:{type:Boolean,default:!0},size:{default:"default"},maxWidth:{},maxHeight:{},persistent:{type:Boolean,default:!1},fullscreen:{type:Boolean,default:!1},class:{},contentClass:{},overlayClass:{}},emits:["update:modelValue","update:open","open","close"],setup(e,{emit:t}){const n=e,i=t,s=No.computed({get:()=>n.modelValue??n.open??!1,set:u=>{i("update:modelValue",u),i("update:open",u),i(u?"open":"close")}}),a=No.computed(()=>n.fullscreen),o=No.computed(()=>{const u="relative z-50 grid w-full gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg md:w-full",p={sm:"max-w-md",default:"max-w-lg",lg:"max-w-2xl",xl:"max-w-4xl",full:"max-w-screen-2xl"},h=a.value?"w-screen h-screen max-w-none rounded-none border-none p-0":"";return cn(u,p[n.size],h,n.contentClass)}),l=No.computed(()=>cn("fixed inset-0 z-50 bg-background/80 backdrop-blur-sm data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",n.overlayClass)),c=No.computed(()=>n.maxWidth||n.maxHeight?{maxWidth:n.maxWidth,maxHeight:n.maxHeight}:{}),d=()=>{n.persistent||(s.value=!1)};return(u,p)=>(No.openBlock(),No.createBlock(No.unref(Iv),null,{default:No.withCtx(()=>[No.createVNode(No.unref($u),{class:No.normalizeClass(l.value),onClick:p[0]||(p[0]=h=>e.closeOnOverlayClick?d():void 0)},null,8,["class"]),No.createVNode(No.unref(Pu),{class:No.normalizeClass(o.value),style:No.normalizeStyle(c.value),"aria-describedby":(e.description,void 0)},{default:No.withCtx(()=>[e.title||u.$slots.header||e.showCloseButton?(No.openBlock(),No.createElementBlock("div",{key:0,class:No.normalizeClass(No.unref(cn)("flex items-center justify-between",a.value?"border-b p-6":"mb-4"))},[No.createElementVNode("div",_hoisted_1$9,[e.title||u.$slots.title?(No.openBlock(),No.createBlock(No.unref(Bu),{key:0,class:"text-lg font-semibold leading-none tracking-tight"},{default:No.withCtx(()=>[No.renderSlot(u.$slots,"title",{},()=>[No.createTextVNode(No.toDisplayString(e.title),1)])]),_:3})):No.createCommentVNode("",!0),e.description||u.$slots.description?(No.openBlock(),No.createBlock(No.unref(Iu),{key:1,class:"text-sm text-muted-foreground"},{default:No.withCtx(()=>[No.renderSlot(u.$slots,"description",{},()=>[No.createTextVNode(No.toDisplayString(e.description),1)])]),_:3})):No.createCommentVNode("",!0)]),No.createElementVNode("div",_hoisted_2$8,[e.fullscreen?No.createCommentVNode("",!0):(No.openBlock(),No.createElementBlock("button",{key:0,type:"button",class:"rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none",title:a.value?"Exit fullscreen":"Enter fullscreen",onClick:p[1]||(p[1]=h=>a.value=!a.value)},[a.value?(No.openBlock(),No.createBlock(No.unref(lucideVueNext.Minimize2),{key:1,class:"h-4 w-4"})):(No.openBlock(),No.createBlock(No.unref(lucideVueNext.Maximize2),{key:0,class:"h-4 w-4"}))],8,_hoisted_3$7)),e.showCloseButton&&!e.persistent?(No.openBlock(),No.createBlock(No.unref(Xl),{key:1,class:"rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none"},{default:No.withCtx(()=>[No.createVNode(No.unref(lucideVueNext.X),{class:"h-4 w-4"}),p[2]||(p[2]=No.createElementVNode("span",{class:"sr-only"},"Close",-1))]),_:1})):No.createCommentVNode("",!0)])],2)):No.createCommentVNode("",!0),No.renderSlot(u.$slots,"header"),No.createElementVNode("div",{class:No.normalizeClass(No.unref(cn)("flex-1",a.value?"p-6":""))},[No.renderSlot(u.$slots,"default")],2),No.renderSlot(u.$slots,"footer"),u.$slots.actions?(No.openBlock(),No.createElementBlock("div",{key:1,class:No.normalizeClass(No.unref(cn)("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",a.value?"border-t p-6 mt-auto":"mt-6"))},[No.renderSlot(u.$slots,"actions")],2)):No.createCommentVNode("",!0)]),_:3},8,["class","style","aria-describedby"])]),_:3}))}}),_sfc_main$p=No.defineComponent({__name:"NSModalTrigger",props:{modelValue:{type:Boolean},open:{type:Boolean},title:{},description:{},showCloseButton:{type:Boolean,default:!0},closeOnOverlayClick:{type:Boolean,default:!0},closeOnEscape:{type:Boolean,default:!0},size:{default:"default"},maxWidth:{},maxHeight:{},persistent:{type:Boolean,default:!1},fullscreen:{type:Boolean,default:!1},class:{},contentClass:{},overlayClass:{}},emits:["update:modelValue","update:open","open","close"],setup(e,{emit:t}){const n=e,i=t,s=No.computed({get:()=>n.modelValue??n.open??!1,set:o=>{i("update:modelValue",o),i("update:open",o),i(o?"open":"close")}}),a=No.ref();return(o,l)=>(No.openBlock(),No.createElementBlock(No.Fragment,null,[No.renderSlot(o.$slots,"trigger",{open:s.value,toggle:()=>s.value=!s.value},()=>[o.$slots.trigger?No.createCommentVNode("",!0):(No.openBlock(),No.createElementBlock("button",{key:0,ref_key:"triggerRef",ref:a,onClick:l[0]||(l[0]=c=>s.value=!s.value),class:"inline-flex items-center justify-center rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 bg-primary text-primary-foreground hover:bg-primary/90"}," Open Modal ",512))]),No.createVNode(_sfc_main$q,{modelValue:s.value,"onUpdate:modelValue":l[1]||(l[1]=c=>s.value=c),title:e.title,description:e.description,"show-close-button":e.showCloseButton,"close-on-overlay-click":e.closeOnOverlayClick,"close-on-escape":e.closeOnEscape,size:e.size,"max-width":e.maxWidth,"max-height":e.maxHeight,persistent:e.persistent,fullscreen:e.fullscreen,class:No.normalizeClass(e.class),"content-class":e.contentClass,"overlay-class":e.overlayClass,onOpen:l[2]||(l[2]=c=>i("open")),onClose:l[3]||(l[3]=c=>i("close"))},{title:No.withCtx(()=>[No.renderSlot(o.$slots,"title")]),description:No.withCtx(()=>[No.renderSlot(o.$slots,"description")]),header:No.withCtx(()=>[No.renderSlot(o.$slots,"header")]),actions:No.withCtx(()=>[No.renderSlot(o.$slots,"actions")]),footer:No.withCtx(()=>[No.renderSlot(o.$slots,"footer")]),default:No.withCtx(()=>[No.renderSlot(o.$slots,"default")]),_:3},8,["modelValue","title","description","show-close-button","close-on-overlay-click","close-on-escape","size","max-width","max-height","persistent","fullscreen","class","content-class","overlay-class"])],64))}}),_hoisted_1$8={key:0,class:"flex items-center justify-between mb-2"},_hoisted_2$7={key:1,class:"mt-2"},_sfc_main$o=No.defineComponent({__name:"NSSlider",props:{modelValue:{},defaultValue:{},min:{default:0},max:{default:100},step:{default:1},disabled:{type:Boolean},orientation:{default:"horizontal"},showLabel:{type:Boolean,default:!1},label:{},showValue:{type:Boolean,default:!0},formatValue:{type:Function,default:e=>e.toString()},class:{},trackClass:{},thumbClass:{}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,i=t,s=No.computed({get:()=>n.modelValue??n.defaultValue??0,set:f=>{i("update:modelValue",f)}}),a=No.computed(()=>Array.isArray(s.value)),o=No.computed(()=>a.value?s.value.map(f=>n.formatValue(f)).join(" - "):n.formatValue(s.value)),l=No.computed(()=>cn("relative",n.class)),c=No.computed(()=>cn("relative flex w-full touch-none select-none items-center",{horizontal:"flex-col",vertical:"w-auto h-full flex-row"}[n.orientation])),d=No.computed(()=>cn("relative h-2 w-full grow overflow-hidden rounded-full bg-secondary",{horizontal:"h-2 w-full",vertical:"w-2 h-full"}[n.orientation],n.trackClass)),u=No.computed(()=>cn("absolute h-full bg-primary")),p=No.computed(()=>cn("block h-5 w-5 rounded-full border-2 border-primary bg-background ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",n.thumbClass)),h=No.computed(()=>"text-sm font-medium text-foreground"),y=No.computed(()=>"text-sm text-muted-foreground");return(f,m)=>(No.openBlock(),No.createElementBlock("div",{class:No.normalizeClass(l.value)},[e.showLabel&&(e.label||f.$slots.label)?(No.openBlock(),No.createElementBlock("div",_hoisted_1$8,[No.createElementVNode("div",{class:No.normalizeClass(h.value)},[No.renderSlot(f.$slots,"label",{},()=>[No.createTextVNode(No.toDisplayString(e.label),1)])],2),e.showValue?(No.openBlock(),No.createElementBlock("div",{key:0,class:No.normalizeClass(y.value)},No.toDisplayString(o.value),3)):No.createCommentVNode("",!0)])):No.createCommentVNode("",!0),No.createVNode(No.unref(og),{class:No.normalizeClass(c.value),modelValue:s.value,"onUpdate:modelValue":m[0]||(m[0]=C=>s.value=C),min:e.min,max:e.max,step:e.step,disabled:e.disabled,orientation:e.orientation},{default:No.withCtx(()=>[No.createVNode(No.unref(sg),{class:No.normalizeClass(d.value)},{default:No.withCtx(()=>[No.createVNode(No.unref(rg),{class:No.normalizeClass(u.value)},null,8,["class"])]),_:1},8,["class"]),(No.openBlock(!0),No.createElementBlock(No.Fragment,null,No.renderList(a.value?2:1,(C,g)=>(No.openBlock(),No.createBlock(No.unref(lg),{key:g,class:No.normalizeClass(p.value)},null,8,["class"]))),128))]),_:1},8,["class","modelValue","min","max","step","disabled","orientation"]),f.$slots.value?(No.openBlock(),No.createElementBlock("div",_hoisted_2$7,[No.renderSlot(f.$slots,"value",{value:s.value,displayValue:o.value})])):No.createCommentVNode("",!0)],2))}}),_hoisted_1$7={key:0,class:"flex items-center justify-between mb-2"},_hoisted_2$6={class:"relative mt-2 flex justify-between text-xs text-muted-foreground"},_hoisted_3$6={key:0},_hoisted_4$6={key:1},_hoisted_5$6={key:1,class:"mt-2"},_sfc_main$n=No.defineComponent({__name:"NSByteSlider",props:{modelValue:{},defaultValue:{},min:{default:0},max:{default:1024},step:{default:1},disabled:{type:Boolean},showLabel:{type:Boolean,default:!1},label:{},showValue:{type:Boolean,default:!0},formatBytes:{},showByteUnits:{type:Boolean,default:!0},customUnits:{default:()=>["B","KB","MB","GB","TB"]},class:{},trackClass:{},thumbClass:{}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,i=t,s=No.computed({get:()=>n.modelValue??n.defaultValue??0,set:m=>{i("update:modelValue",m)}}),a=m=>{if(m===0)return"0 B";const C=1024,g=f<0?0:f,b=Math.floor(Math.log(m)/Math.log(C)),v=n.customUnits;return parseFloat((m/Math.pow(C,b)).toFixed(g))+" "+v[b]},o=No.computed(()=>n.showByteUnits&&n.formatBytes?n.formatBytes(s.value):n.showByteUnits?a(s.value):s.value.toString()),l=No.computed(()=>cn("relative",n.class)),c=No.computed(()=>cn("relative flex w-full touch-none select-none items-center flex-col")),d=No.computed(()=>cn("relative h-2 w-full grow overflow-hidden rounded-full bg-secondary",n.trackClass)),u=No.computed(()=>cn("absolute h-full bg-primary")),p=No.computed(()=>cn("block h-5 w-5 rounded-full border-2 border-primary bg-background ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",n.thumbClass)),h=No.computed(()=>"text-sm font-medium text-foreground"),y=No.computed(()=>"text-sm font-mono text-muted-foreground"),f=No.computed(()=>{const m=n.max-n.min;return m>=1024*1024?1:(m>=1024,0)});return(m,C)=>(No.openBlock(),No.createElementBlock("div",{class:No.normalizeClass(l.value)},[e.showLabel&&(e.label||m.$slots.label)?(No.openBlock(),No.createElementBlock("div",_hoisted_1$7,[No.createElementVNode("div",{class:No.normalizeClass(h.value)},[No.renderSlot(m.$slots,"label",{},()=>[No.createTextVNode(No.toDisplayString(e.label),1)])],2),e.showValue?(No.openBlock(),No.createElementBlock("div",{key:0,class:No.normalizeClass(y.value)},No.toDisplayString(o.value),3)):No.createCommentVNode("",!0)])):No.createCommentVNode("",!0),No.createVNode(No.unref(og),{class:No.normalizeClass(c.value),modelValue:s.value,"onUpdate:modelValue":C[0]||(C[0]=g=>s.value=g),min:e.min,max:e.max,step:e.step,disabled:e.disabled},{default:No.withCtx(()=>[No.createVNode(No.unref(sg),{class:No.normalizeClass(d.value)},{default:No.withCtx(()=>[No.createVNode(No.unref(rg),{class:No.normalizeClass(u.value)},null,8,["class"])]),_:1},8,["class"]),No.createVNode(No.unref(lg),{class:No.normalizeClass(p.value)},null,8,["class"])]),_:1},8,["class","modelValue","min","max","step","disabled"]),No.createElementVNode("div",_hoisted_2$6,[e.showByteUnits?(No.openBlock(),No.createElementBlock("span",_hoisted_3$6,No.toDisplayString(e.formatBytes(e.min)),1)):No.createCommentVNode("",!0),e.showByteUnits?(No.openBlock(),No.createElementBlock("span",_hoisted_4$6,No.toDisplayString(e.formatBytes(e.max)),1)):No.createCommentVNode("",!0)]),m.$slots.value?(No.openBlock(),No.createElementBlock("div",_hoisted_5$6,[No.renderSlot(m.$slots,"value",{value:s.value,displayValue:o.value})])):No.createCommentVNode("",!0)],2))}}),_hoisted_1$6={key:0,class:"text-sm text-muted-foreground"},_hoisted_2$5={key:1,class:"flex items-center gap-2"},_hoisted_3$5=["disabled"],_hoisted_4$5=["value"],_hoisted_5$5={class:"flex items-center gap-1"},_hoisted_6$5=["disabled"],_hoisted_7$5=["disabled","onClick"],_hoisted_8$5={key:1,class:"flex items-center justify-center h-8 w-8 text-sm text-muted-foreground"},_hoisted_9$5=["disabled"],_hoisted_10$5={key:2,class:"flex items-center gap-2"},_hoisted_11$5=["max","value","disabled"],_sfc_main$m=No.defineComponent({__name:"NSPagination",props:{currentPage:{default:1},totalItems:{},itemsPerPage:{default:10},totalPages:{},showSizeChanger:{type:Boolean,default:!1},pageSizeOptions:{default:()=>[10,20,50,100]},showQuickJumper:{type:Boolean,default:!1},showTotal:{type:Boolean,default:!0},disabled:{type:Boolean,default:!1},size:{default:"default"},align:{default:"start"},class:{}},emits:["update:currentPage","update:itemsPerPage","page-change","size-change"],setup(e,{emit:t}){const n=e,i=t,s=No.computed(()=>n.totalPages?n.totalPages:Math.ceil((n.totalItems||0)/n.itemsPerPage)),a=No.computed({get:()=>n.currentPage,set:b=>{i("update:currentPage",b),i("page-change",b)}}),o=No.computed({get:()=>n.itemsPerPage,set:b=>{i("update:itemsPerPage",b),i("size-change",b)}}),l=No.computed(()=>{const b=s.value,v=a.value,N=2,w=[],E=[];let _;for(let k=1;k<=b;k++)(k===1||k===b||k>=v-N&&k<=v+N)&&w.push(k);return w.forEach((k,A)=>{_&&(k-_===2?E.push(_+1):k-_!==1&&E.push("...")),E.push(k),_=k}),E}),c=No.computed(()=>a.value>1),d=No.computed(()=>a.value<s.value),u=No.computed(()=>{const b="flex flex-wrap items-center gap-2",v={start:"justify-start",center:"justify-center",end:"justify-end"},N={sm:"text-xs",default:"text-sm",lg:"text-base"};return cn(b,v[n.align],N[n.size],n.class)}),p=No.computed(()=>cn("inline-flex items-center justify-center rounded-md border border-input bg-background hover:bg-accent hover:text-accent-foreground h-8 w-8 p-0 font-medium transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",{sm:"h-6 w-6 text-xs",default:"h-8 w-8 text-sm",lg:"h-10 w-10 text-base"}[n.size])),h=No.computed(()=>cn(p.value,"border-primary bg-primary text-primary-foreground hover:bg-primary hover:text-primary-foreground")),y=No.computed(()=>cn("inline-flex items-center rounded-md border border-input bg-background px-3 py-1 text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",{sm:"px-2 py-0.5 text-xs",default:"px-3 py-1 text-sm",lg:"px-4 py-2 text-base"}[n.size])),f=b=>{b>=1&&b<=s.value&&!n.disabled&&(a.value=b)},m=()=>{c.value&&!n.disabled&&a.value--},C=()=>{d.value&&!n.disabled&&a.value++},g=b=>{const v=b.target,N=parseInt(v.value,10);isNaN(N)||f(N)};return(b,v)=>(No.openBlock(),No.createElementBlock("div",{class:No.normalizeClass(u.value)},[e.showTotal&&e.totalItems?(No.openBlock(),No.createElementBlock("div",_hoisted_1$6," Total: "+No.toDisplayString(e.totalItems)+" items ",1)):No.createCommentVNode("",!0),e.showSizeChanger?(No.openBlock(),No.createElementBlock("div",_hoisted_2$5,[v[1]||(v[1]=No.createElementVNode("span",{class:"text-sm text-muted-foreground"},"Items per page:",-1)),No.withDirectives(No.createElementVNode("select",{"onUpdate:modelValue":v[0]||(v[0]=N=>o.value=N),disabled:e.disabled,class:No.normalizeClass(y.value)},[(No.openBlock(!0),No.createElementBlock(No.Fragment,null,No.renderList(e.pageSizeOptions,N=>(No.openBlock(),No.createElementBlock("option",{key:N,value:N},No.toDisplayString(N),9,_hoisted_4$5))),128))],10,_hoisted_3$5),[[No.vModelSelect,o.value]])])):No.createCommentVNode("",!0),No.createElementVNode("div",_hoisted_5$5,[No.createElementVNode("button",{class:No.normalizeClass(p.value),disabled:!c.value||e.disabled,onClick:m,"aria-label":"Previous page"},[No.createVNode(No.unref(lucideVueNext.ChevronLeft),{class:"h-4 w-4"})],10,_hoisted_6$5),(No.openBlock(!0),No.createElementBlock(No.Fragment,null,No.renderList(l.value,(N,w)=>(No.openBlock(),No.createElementBlock(No.Fragment,{key:`page-${w}`},[typeof N=="number"?(No.openBlock(),No.createElementBlock("button",{key:0,class:No.normalizeClass(N===a.value?h.value:p.value),disabled:e.disabled,onClick:E=>f(N)},No.toDisplayString(N),11,_hoisted_7$5)):(No.openBlock(),No.createElementBlock("span",_hoisted_8$5,[No.createVNode(No.unref(lucideVueNext.MoreHorizontal),{class:"h-4 w-4"})]))],64))),128)),No.createElementVNode("button",{class:No.normalizeClass(p.value),disabled:!d.value||e.disabled,onClick:C,"aria-label":"Next page"},[No.createVNode(No.unref(lucideVueNext.ChevronRight),{class:"h-4 w-4"})],10,_hoisted_9$5)]),e.showQuickJumper?(No.openBlock(),No.createElementBlock("div",_hoisted_10$5,[v[2]||(v[2]=No.createElementVNode("span",{class:"text-sm text-muted-foreground"},"Go to page:",-1)),No.createElementVNode("input",{type:"number",min:1,max:s.value,value:a.value,disabled:e.disabled,class:No.normalizeClass(y.value),onChange:g,onKeyup:No.withKeys(g,["enter"])},null,42,_hoisted_11$5)])):No.createCommentVNode("",!0)],2))}}),_hoisted_1$5={"data-slot":"table-container",class:"relative w-full overflow-auto"},_sfc_main$l=No.defineComponent({__name:"Table",props:{class:{}},setup(e){const t=e;return(n,i)=>(No.openBlock(),No.createElementBlock("div",_hoisted_1$5,[No.createElementVNode("table",{"data-slot":"table",class:No.normalizeClass(No.unref(cn)("w-full caption-bottom text-sm",t.class))},[No.renderSlot(n.$slots,"default")],2)]))}}),_sfc_main$k=No.defineComponent({__name:"TableBody",props:{class:{}},setup(e){const t=e;return(n,i)=>(No.openBlock(),No.createElementBlock("tbody",{"data-slot":"table-body",class:No.normalizeClass(No.unref(cn)("[&_tr:last-child]:border-0",t.class))},[No.renderSlot(n.$slots,"default")],2))}}),_sfc_main$j=No.defineComponent({__name:"TableCell",props:{class:{}},setup(e){const t=e;return(n,i)=>(No.openBlock(),No.createElementBlock("td",{"data-slot":"table-cell",class:No.normalizeClass(No.unref(cn)("p-2 align-middle whitespace-nowrap [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",t.class))},[No.renderSlot(n.$slots,"default")],2))}});function toValue(e){return typeof e=="function"?e():No.unref(e)}function toReactive(e){if(!No.isRef(e))return No.reactive(e);const t=new Proxy({},{get(n,i,s){return No.unref(Reflect.get(e.value,i,s))},set(n,i,s){return No.isRef(e.value[i])&&!No.isRef(s)?e.value[i].value=s:e.value[i]=s,!0},deleteProperty(n,i){return Reflect.deleteProperty(e.value,i)},has(n,i){return Reflect.has(e.value,i)},ownKeys(){return Object.keys(e.value)},getOwnPropertyDescriptor(){return{enumerable:!0,configurable:!0}}});return No.reactive(t)}function reactiveComputed(e){return toReactive(No.computed(e))}function reactiveOmit(e,...t){const n=t.flat(),i=n[0];return reactiveComputed(()=>Object.fromEntries(typeof i=="function"?Object.entries(No.toRefs(e)).filter(([s,a])=>!i(toValue(a),s)):Object.entries(No.toRefs(e)).filter(s=>!n.includes(s[0]))))}typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const isDef$1=e=>typeof e<"u";function cloneFnJSON$1(e){return JSON.parse(JSON.stringify(e))}function useVModel$1(e,t,n,i={}){var s,a,o;const{clone:l=!1,passive:c=!1,eventName:d,deep:u=!1,defaultValue:p,shouldEmit:h}=i,y=No.getCurrentInstance(),f=n||y?.emit||((s=y?.$emit)==null?void 0:s.bind(y))||((o=(a=y?.proxy)==null?void 0:a.$emit)==null?void 0:o.bind(y?.proxy));let m=d;m=m||`update:${t.toString()}`;const C=v=>l?typeof l=="function"?l(v):cloneFnJSON$1(v):v,g=()=>isDef$1(e[t])?C(e[t]):p,b=v=>{h?h(v)&&f(m,v):f(m,v)};if(c){const v=g(),N=No.ref(v);let w=!1;return No.watch(()=>e[t],E=>{w||(w=!0,N.value=C(E),No.nextTick(()=>w=!1))}),No.watch(N,E=>{!w&&(E!==e[t]||u)&&b(E)},{deep:u}),N}else return No.computed({get(){return g()},set(v){b(v)}})}const _sfc_main$i=No.defineComponent({__name:"TableRow",props:{class:{}},setup(e){const t=e;return(n,i)=>(No.openBlock(),No.createElementBlock("tr",{"data-slot":"table-row",class:No.normalizeClass(No.unref(cn)("hover:bg-muted/50 data-[state=selected]:bg-muted border-b transition-colors",t.class))},[No.renderSlot(n.$slots,"default")],2))}}),_sfc_main$h=No.defineComponent({__name:"TableHead",props:{class:{}},setup(e){const t=e;return(n,i)=>(No.openBlock(),No.createElementBlock("th",{"data-slot":"table-head",class:No.normalizeClass(No.unref(cn)("text-foreground h-10 px-2 text-left align-middle font-medium whitespace-nowrap [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",t.class))},[No.renderSlot(n.$slots,"default")],2))}}),_sfc_main$g=No.defineComponent({__name:"TableHeader",props:{class:{}},setup(e){const t=e;return(n,i)=>(No.openBlock(),No.createElementBlock("thead",{"data-slot":"table-header",class:No.normalizeClass(No.unref(cn)("[&_tr]:border-b",t.class))},[No.renderSlot(n.$slots,"default")],2))}}),falsyToString=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,cx=clsx,cva=(e,t)=>n=>{var i;if(t?.variants==null)return cx(e,n?.class,n?.className);const{variants:s,defaultVariants:a}=t,o=Object.keys(s).map(d=>{const u=n?.[d],p=a?.[d];if(u===null)return null;const h=falsyToString(u)||falsyToString(p);return s[d][h]}),l=n&&Object.entries(n).reduce((d,u)=>{let[p,h]=u;return h===void 0||(d[p]=h),d},{}),c=t==null||(i=t.compoundVariants)===null||i===void 0?void 0:i.reduce((d,u)=>{let{class:p,className:h,...y}=u;return Object.entries(y).every(f=>{let[m,C]=f;return Array.isArray(C)?C.includes({...a,...l}[m]):{...a,...l}[m]===C})?[...d,p,h]:d},[]);return cx(e,o,c,n?.class,n?.className)};function createContext(e,t){const n=`${e}Context`,i=Symbol(n);return[o=>{const l=No.inject(i,o);if(l||l===null)return l;throw new Error(`Injection \`${i.toString()}\` not found. Component must be used within ${Array.isArray(e)?`one of the following components: ${e.join(", ")}`:`\`${e}\``}`)},o=>(No.provide(i,o),o)]}function isNullish(e){return e==null}function renderSlotFragments(e){return e?e.flatMap(t=>t.type===No.Fragment?renderSlotFragments(t.children):[t]):[]}typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const isDef=e=>typeof e<"u";function unrefElement(e){var t;const n=No.toValue(e);return(t=n?.$el)!=null?t:n}function cloneFnJSON(e){return JSON.parse(JSON.stringify(e))}function useVModel(e,t,n,i={}){var s,a,o;const{clone:l=!1,passive:c=!1,eventName:d,deep:u=!1,defaultValue:p,shouldEmit:h}=i,y=No.getCurrentInstance(),f=n||y?.emit||((s=y?.$emit)==null?void 0:s.bind(y))||((o=(a=y?.proxy)==null?void 0:a.$emit)==null?void 0:o.bind(y?.proxy));let m=d;t||(t="modelValue"),m=m||`update:${t.toString()}`;const C=v=>l?typeof l=="function"?l(v):cloneFnJSON(v):v,g=()=>isDef(e[t])?C(e[t]):p,b=v=>{h?h(v)&&f(m,v):f(m,v)};if(c){const v=g(),N=No.ref(v);let w=!1;return No.watch(()=>e[t],E=>{w||(w=!0,N.value=C(E),No.nextTick(()=>w=!1))}),No.watch(N,E=>{!w&&(E!==e[t]||u)&&b(E)},{deep:u}),N}else return No.computed({get(){return g()},set(v){b(v)}})}function useForwardExpose(){const e=No.getCurrentInstance(),t=No.ref(),n=No.computed(()=>["#text","#comment"].includes(t.value?.$el.nodeName)?t.value?.$el.nextElementSibling:unrefElement(t)),i=Object.assign({},e.exposed),s={};for(const o in e.props)Object.defineProperty(s,o,{enumerable:!0,configurable:!0,get:()=>e.props[o]});if(Object.keys(i).length>0)for(const o in i)Object.defineProperty(s,o,{enumerable:!0,configurable:!0,get:()=>i[o]});Object.defineProperty(s,"$el",{enumerable:!0,configurable:!0,get:()=>e.vnode.el}),e.exposed=s;function a(o){t.value=o,o&&(Object.defineProperty(s,"$el",{enumerable:!0,configurable:!0,get:()=>o instanceof Element?o:o.$el}),e.exposed=s)}return{forwardRef:a,currentRef:t,currentElement:n}}const Slot=No.defineComponent({name:"PrimitiveSlot",inheritAttrs:!1,setup(e,{attrs:t,slots:n}){return()=>{if(!n.default)return null;const i=renderSlotFragments(n.default()),s=i.findIndex(c=>c.type!==No.Comment);if(s===-1)return i;const a=i[s];delete a.props?.ref;const o=a.props?No.mergeProps(t,a.props):t,l=No.cloneVNode({...a,props:{}},o);return i.length===1?l:(i[s]=l,i)}}}),SELF_CLOSING_TAGS=["area","img","input"],Primitive=No.defineComponent({name:"Primitive",inheritAttrs:!1,props:{asChild:{type:Boolean,default:!1},as:{type:[String,Object],default:"div"}},setup(e,{attrs:t,slots:n}){const i=e.asChild?"template":e.as;return typeof i=="string"&&SELF_CLOSING_TAGS.includes(i)?()=>No.h(i,t):i!=="template"?()=>No.h(e.as,t,{default:n.default}):()=>No.h(Slot,t,{default:n.default})}}),DEFAULT_MAX=100,[injectProgressRootContext,provideProgressRootContext]=createContext("ProgressRoot"),isNumber$1=e=>typeof e=="number";function validateValue(e,t){return isNullish(e)||isNumber$1(e)&&!Number.isNaN(e)&&e<=t&&e>=0?e:(console.error(`Invalid prop \`value\` of value \`${e}\` supplied to \`ProgressRoot\`. The \`value\` prop must be:
|
|
7
|
+
For more information, see https://www.radix-vue.com/components/${n}`,l=`Warning: Missing \`Description\` or \`aria-describedby="undefined"\` for ${t}.`;No.onMounted(()=>{var c;document.getElementById(i)||console.warn(o);const u=(c=a.value)==null?void 0:c.getAttribute("aria-describedby");s&&u&&(document.getElementById(s)||console.warn(l))})}const Yl=No.defineComponent({__name:"DialogContentImpl",props:{forceMount:{type:Boolean},trapFocus:{type:Boolean},disableOutsidePointerEvents:{type:Boolean},asChild:{type:Boolean},as:{}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","openAutoFocus","closeAutoFocus"],setup(e,{emit:t}){const n=e,i=t,s=ot(),{forwardRef:a,currentElement:o}=R();return s.titleId||(s.titleId=ge(void 0,"radix-vue-dialog-title")),s.descriptionId||(s.descriptionId=ge(void 0,"radix-vue-dialog-description")),No.onMounted(()=>{s.contentElement=o,me()!==document.body&&(s.triggerElement.value=me())}),process.env.NODE_ENV!=="production"&&xu({titleName:"DialogTitle",contentName:"DialogContent",componentLink:"dialog.html#title",titleId:s.titleId,descriptionId:s.descriptionId,contentElement:o}),(l,c)=>(No.openBlock(),No.createBlock(No.unref(Za),{"as-child":"",loop:"",trapped:n.trapFocus,onMountAutoFocus:c[5]||(c[5]=u=>i("openAutoFocus",u)),onUnmountAutoFocus:c[6]||(c[6]=u=>i("closeAutoFocus",u))},{default:No.withCtx(()=>[No.createVNode(No.unref(Ct),No.mergeProps({id:No.unref(s).contentId,ref:No.unref(a),as:l.as,"as-child":l.asChild,"disable-outside-pointer-events":l.disableOutsidePointerEvents,role:"dialog","aria-describedby":No.unref(s).descriptionId,"aria-labelledby":No.unref(s).titleId,"data-state":No.unref(to)(No.unref(s).open.value)},l.$attrs,{onDismiss:c[0]||(c[0]=u=>No.unref(s).onOpenChange(!1)),onEscapeKeyDown:c[1]||(c[1]=u=>i("escapeKeyDown",u)),onFocusOutside:c[2]||(c[2]=u=>i("focusOutside",u)),onInteractOutside:c[3]||(c[3]=u=>i("interactOutside",u)),onPointerDownOutside:c[4]||(c[4]=u=>i("pointerDownOutside",u))}),{default:No.withCtx(()=>[No.renderSlot(l.$slots,"default")]),_:3},16,["id","as","as-child","disable-outside-pointer-events","aria-describedby","aria-labelledby","data-state"])]),_:3},8,["trapped"]))}}),Su=No.defineComponent({__name:"DialogContentModal",props:{forceMount:{type:Boolean},trapFocus:{type:Boolean},disableOutsidePointerEvents:{type:Boolean},asChild:{type:Boolean},as:{}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","openAutoFocus","closeAutoFocus"],setup(e,{emit:t}){const n=e,i=t,s=ot(),a=Te(i),{forwardRef:o,currentElement:l}=R();return ga(l),(c,u)=>(No.openBlock(),No.createBlock(Yl,No.mergeProps({...n,...No.unref(a)},{ref:No.unref(o),"trap-focus":No.unref(s).open.value,"disable-outside-pointer-events":!0,onCloseAutoFocus:u[0]||(u[0]=d=>{var p;d.defaultPrevented||(d.preventDefault(),(p=No.unref(s).triggerElement.value)==null||p.focus())}),onPointerDownOutside:u[1]||(u[1]=d=>{const p=d.detail.originalEvent,h=p.button===0&&p.ctrlKey===!0;(p.button===2||h)&&d.preventDefault()}),onFocusOutside:u[2]||(u[2]=d=>{d.preventDefault()})}),{default:No.withCtx(()=>[No.renderSlot(c.$slots,"default")]),_:3},16,["trap-focus"]))}}),Eu=No.defineComponent({__name:"DialogContentNonModal",props:{forceMount:{type:Boolean},trapFocus:{type:Boolean},disableOutsidePointerEvents:{type:Boolean},asChild:{type:Boolean},as:{}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","openAutoFocus","closeAutoFocus"],setup(e,{emit:t}){const n=e,i=Te(t);R();const s=ot(),a=No.ref(!1),o=No.ref(!1);return(l,c)=>(No.openBlock(),No.createBlock(Yl,No.mergeProps({...n,...No.unref(i)},{"trap-focus":!1,"disable-outside-pointer-events":!1,onCloseAutoFocus:c[0]||(c[0]=u=>{var d;u.defaultPrevented||(a.value||(d=No.unref(s).triggerElement.value)==null||d.focus(),u.preventDefault()),a.value=!1,o.value=!1}),onInteractOutside:c[1]||(c[1]=u=>{var d;u.defaultPrevented||(a.value=!0,u.detail.originalEvent.type==="pointerdown"&&(o.value=!0));const p=u.target;(d=No.unref(s).triggerElement.value)!=null&&d.contains(p)&&u.preventDefault(),u.detail.originalEvent.type==="focusin"&&o.value&&u.preventDefault()})}),{default:No.withCtx(()=>[No.renderSlot(l.$slots,"default")]),_:3},16))}}),Pu=No.defineComponent({__name:"DialogContent",props:{forceMount:{type:Boolean},trapFocus:{type:Boolean},disableOutsidePointerEvents:{type:Boolean},asChild:{type:Boolean},as:{}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","openAutoFocus","closeAutoFocus"],setup(e,{emit:t}){const n=e,i=t,s=ot(),a=Te(i),{forwardRef:o}=R();return(l,c)=>(No.openBlock(),No.createBlock(No.unref(Pe),{present:l.forceMount||No.unref(s).open.value},{default:No.withCtx(()=>[No.unref(s).modal.value?(No.openBlock(),No.createBlock(Su,No.mergeProps({key:0,ref:No.unref(o)},{...n,...No.unref(a),...l.$attrs}),{default:No.withCtx(()=>[No.renderSlot(l.$slots,"default")]),_:3},16)):(No.openBlock(),No.createBlock(Eu,No.mergeProps({key:1,ref:No.unref(o)},{...n,...No.unref(a),...l.$attrs}),{default:No.withCtx(()=>[No.renderSlot(l.$slots,"default")]),_:3},16))]),_:3},8,["present"]))}}),Du=No.defineComponent({__name:"DialogOverlayImpl",props:{asChild:{type:Boolean},as:{}},setup(e){const t=ot();return ya(!0),R(),(n,i)=>(No.openBlock(),No.createBlock(No.unref(O),{as:n.as,"as-child":n.asChild,"data-state":No.unref(t).open.value?"open":"closed",style:{"pointer-events":"auto"}},{default:No.withCtx(()=>[No.renderSlot(n.$slots,"default")]),_:3},8,["as","as-child","data-state"]))}}),$u=No.defineComponent({__name:"DialogOverlay",props:{forceMount:{type:Boolean},asChild:{type:Boolean},as:{}},setup(e){const t=ot(),{forwardRef:n}=R();return(i,s)=>{var a;return(a=No.unref(t))!=null&&a.modal.value?(No.openBlock(),No.createBlock(No.unref(Pe),{key:0,present:i.forceMount||No.unref(t).open.value},{default:No.withCtx(()=>[No.createVNode(Du,No.mergeProps(i.$attrs,{ref:No.unref(n),as:i.as,"as-child":i.asChild}),{default:No.withCtx(()=>[No.renderSlot(i.$slots,"default")]),_:3},16,["as","as-child"])]),_:3},8,["present"])):No.createCommentVNode("",!0)}}}),Xl=No.defineComponent({__name:"DialogClose",props:{asChild:{type:Boolean},as:{default:"button"}},setup(e){const t=e;R();const n=ot();return(i,s)=>(No.openBlock(),No.createBlock(No.unref(O),No.mergeProps(t,{type:i.as==="button"?"button":void 0,onClick:s[0]||(s[0]=a=>No.unref(n).onOpenChange(!1))}),{default:No.withCtx(()=>[No.renderSlot(i.$slots,"default")]),_:3},16,["type"]))}}),Bu=No.defineComponent({__name:"DialogTitle",props:{asChild:{type:Boolean},as:{default:"h2"}},setup(e){const t=e,n=ot();return R(),(i,s)=>(No.openBlock(),No.createBlock(No.unref(O),No.mergeProps(t,{id:No.unref(n).titleId}),{default:No.withCtx(()=>[No.renderSlot(i.$slots,"default")]),_:3},16,["id"]))}}),Iu=No.defineComponent({__name:"DialogDescription",props:{asChild:{type:Boolean},as:{default:"p"}},setup(e){const t=e;R();const n=ot();return(i,s)=>(No.openBlock(),No.createBlock(No.unref(O),No.mergeProps(t,{id:No.unref(n).descriptionId}),{default:No.withCtx(()=>[No.renderSlot(i.$slots,"default")]),_:3},16,["id"]))}});function za(e){return e==="indeterminate"}function Ql(e){return za(e)?"indeterminate":e?"checked":"unchecked"}const td=["value","checked","name","disabled","required"],[ad,nd]=te("CheckboxRoot"),Wv=No.defineComponent({inheritAttrs:!1,__name:"CheckboxRoot",props:{defaultChecked:{type:Boolean},checked:{type:[Boolean,String],default:void 0},disabled:{type:Boolean},required:{type:Boolean},name:{},value:{default:"on"},id:{},asChild:{type:Boolean},as:{default:"button"}},emits:["update:checked"],setup(e,{emit:t}){const n=e,i=t,{disabled:s}=No.toRefs(n),a=ne(n,"checked",i,{defaultValue:n.defaultChecked,passive:n.checked===void 0}),{forwardRef:o,currentElement:l}=R(),c=at(l),u=No.computed(()=>{var d;return n.id&&l.value?(d=document.querySelector(`[for="${n.id}"]`))==null?void 0:d.innerText:void 0});return nd({disabled:s,state:a}),(d,p)=>(No.openBlock(),No.createElementBlock(No.Fragment,null,[No.createVNode(No.unref(O),No.mergeProps(d.$attrs,{id:d.id,ref:No.unref(o),role:"checkbox","as-child":n.asChild,as:d.as,type:d.as==="button"?"button":void 0,"aria-checked":No.unref(za)(No.unref(a))?"mixed":No.unref(a),"aria-required":n.required,"aria-label":d.$attrs["aria-label"]||u.value,"data-state":No.unref(Ql)(No.unref(a)),"data-disabled":No.unref(s)?"":void 0,disabled:No.unref(s),onKeydown:No.withKeys(No.withModifiers(()=>{},["prevent"]),["enter"]),onClick:p[0]||(p[0]=h=>a.value=No.unref(za)(No.unref(a))?!0:!No.unref(a))}),{default:No.withCtx(()=>[No.renderSlot(d.$slots,"default",{checked:No.unref(a)})]),_:3},16,["id","as-child","as","type","aria-checked","aria-required","aria-label","data-state","data-disabled","disabled","onKeydown"]),No.unref(c)?(No.openBlock(),No.createElementBlock("input",{key:0,type:"checkbox",tabindex:"-1","aria-hidden":"true",value:d.value,checked:!!No.unref(a),name:n.name,disabled:n.disabled,required:n.required,style:{transform:"translateX(-100%)",position:"absolute",pointerEvents:"none",opacity:0,margin:0}},null,8,td)):No.createCommentVNode("",!0)],64))}}),jv=No.defineComponent({__name:"CheckboxIndicator",props:{forceMount:{type:Boolean},asChild:{type:Boolean},as:{default:"span"}},setup(e){const{forwardRef:t}=R(),n=ad();return(i,s)=>(No.openBlock(),No.createBlock(No.unref(Pe),{present:i.forceMount||No.unref(za)(No.unref(n).state.value)||No.unref(n).state.value===!0},{default:No.withCtx(()=>[No.createVNode(No.unref(O),No.mergeProps({ref:No.unref(t),"data-state":No.unref(Ql)(No.unref(n).state.value),"data-disabled":No.unref(n).disabled.value?"":void 0,style:{pointerEvents:"none"},"as-child":i.asChild,as:i.as},i.$attrs),{default:No.withCtx(()=>[No.renderSlot(i.$slots,"default")]),_:3},16,["data-state","data-disabled","as-child","as"])]),_:3},8,["present"]))}}),fd="data-radix-vue-collection-item",[oo,pd]=te("CollectionProvider");function Ca(e=fd){const t=No.ref(new Map),n=No.ref(),i=pd({collectionRef:n,itemMap:t,attrName:e}),{getItems:s}=ea(i),a=No.computed(()=>Array.from(i.itemMap.value.values())),o=No.computed(()=>i.itemMap.value.size);return{getItems:s,reactiveItems:a,itemMapSize:o}}const wa=No.defineComponent({name:"CollectionSlot",setup(e,{slots:t}){const n=oo(),{primitiveElement:i,currentElement:s}=Re();return No.watch(s,()=>{n.collectionRef.value=s.value}),()=>No.h(Jn,{ref:i},t)}}),Qt=No.defineComponent({name:"CollectionItem",inheritAttrs:!1,props:{value:{validator:()=>!0}},setup(e,{slots:t,attrs:n}){const i=oo(),{primitiveElement:s,currentElement:a}=Re();return No.watchEffect(o=>{if(a.value){const l=No.markRaw(a.value);i.itemMap.value.set(l,{ref:a.value,value:e.value}),o(()=>i.itemMap.value.delete(l))}}),()=>No.h(Jn,{...n,[i.attrName]:"",ref:s},t)}});function ea(e){const t=e??oo();return{getItems:()=>{const n=t.collectionRef.value;if(!n)return[];const i=Array.from(n.querySelectorAll(`[${t.attrName}]`));return Array.from(t.itemMap.value.values()).sort((s,a)=>i.indexOf(s.ref)-i.indexOf(a.ref))}}}function np(e=[],t,n){const i=[...e];return i[n]=t,i.sort((s,a)=>s-a)}function Vs(e,t,n){const i=100/(n-t)*(e-t);return Ut(i,0,100)}function op(e,t){return t>2?`Value ${e+1} of ${t}`:t===2?["Minimum","Maximum"][e]:void 0}function lp(e,t){if(e.length===1)return 0;const n=e.map(s=>Math.abs(s-t)),i=Math.min(...n);return n.indexOf(i)}function sp(e,t,n){const i=e/2,s=To([0,50],[0,i]);return(i-s(t)*n)*n}function rp(e){return e.slice(0,-1).map((t,n)=>e[n+1]-t)}function ip(e,t){if(t>0){const n=rp(e);return Math.min(...n)>=t}return!0}function To(e,t){return n=>{if(e[0]===e[1]||t[0]===t[1])return t[0];const i=(t[1]-t[0])/(e[1]-e[0]);return t[0]+i*(n-e[0])}}function up(e){return(String(e).split(".")[1]||"").length}function dp(e,t){const n=10**t;return Math.round(e*n)/n}const Fs=["PageUp","PageDown"],Ns=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],Ls={"from-left":["Home","PageDown","ArrowDown","ArrowLeft"],"from-right":["Home","PageDown","ArrowDown","ArrowRight"],"from-bottom":["Home","PageDown","ArrowDown","ArrowLeft"],"from-top":["Home","PageDown","ArrowUp","ArrowLeft"]},[zs,Ks]=te(["SliderVertical","SliderHorizontal"]),Hs=No.defineComponent({__name:"SliderImpl",props:{asChild:{type:Boolean},as:{default:"span"}},emits:["slideStart","slideMove","slideEnd","homeKeyDown","endKeyDown","stepKeyDown"],setup(e,{emit:t}){const n=e,i=t,s=un();return(a,o)=>(No.openBlock(),No.createBlock(No.unref(O),No.mergeProps({"data-slider-impl":""},n,{onKeydown:o[0]||(o[0]=l=>{l.key==="Home"?(i("homeKeyDown",l),l.preventDefault()):l.key==="End"?(i("endKeyDown",l),l.preventDefault()):No.unref(Fs).concat(No.unref(Ns)).includes(l.key)&&(i("stepKeyDown",l),l.preventDefault())}),onPointerdown:o[1]||(o[1]=l=>{const c=l.target;c.setPointerCapture(l.pointerId),l.preventDefault(),No.unref(s).thumbElements.value.includes(c)?c.focus():i("slideStart",l)}),onPointermove:o[2]||(o[2]=l=>{l.target.hasPointerCapture(l.pointerId)&&i("slideMove",l)}),onPointerup:o[3]||(o[3]=l=>{const c=l.target;c.hasPointerCapture(l.pointerId)&&(c.releasePointerCapture(l.pointerId),i("slideEnd",l))})}),{default:No.withCtx(()=>[No.renderSlot(a.$slots,"default")]),_:3},16))}}),cp=No.defineComponent({__name:"SliderHorizontal",props:{dir:{},min:{},max:{},inverted:{type:Boolean}},emits:["slideEnd","slideStart","slideMove","homeKeyDown","endKeyDown","stepKeyDown"],setup(e,{emit:t}){const n=e,i=t,{max:s,min:a,dir:o,inverted:l}=No.toRefs(n),{forwardRef:c,currentElement:u}=R(),d=No.ref(),p=No.computed(()=>o?.value==="ltr"&&!l.value||o?.value!=="ltr"&&l.value);function h(y){const f=d.value||u.value.getBoundingClientRect(),m=[0,f.width],C=p.value?[a.value,s.value]:[s.value,a.value],g=To(m,C);return d.value=f,g(y-f.left)}return Ks({startEdge:p.value?"left":"right",endEdge:p.value?"right":"left",direction:p.value?1:-1,size:"width"}),(y,f)=>(No.openBlock(),No.createBlock(Hs,{ref:No.unref(c),dir:No.unref(o),"data-orientation":"horizontal",style:{"--radix-slider-thumb-transform":"translateX(-50%)"},onSlideStart:f[0]||(f[0]=m=>{const C=h(m.clientX);i("slideStart",C)}),onSlideMove:f[1]||(f[1]=m=>{const C=h(m.clientX);i("slideMove",C)}),onSlideEnd:f[2]||(f[2]=()=>{d.value=void 0,i("slideEnd")}),onStepKeyDown:f[3]||(f[3]=m=>{const C=p.value?"from-left":"from-right",g=No.unref(Ls)[C].includes(m.key);i("stepKeyDown",m,g?-1:1)}),onEndKeyDown:f[4]||(f[4]=m=>i("endKeyDown",m)),onHomeKeyDown:f[5]||(f[5]=m=>i("homeKeyDown",m))},{default:No.withCtx(()=>[No.renderSlot(y.$slots,"default")]),_:3},8,["dir"]))}}),fp=No.defineComponent({__name:"SliderVertical",props:{min:{},max:{},inverted:{type:Boolean}},emits:["slideEnd","slideStart","slideMove","homeKeyDown","endKeyDown","stepKeyDown"],setup(e,{emit:t}){const n=e,i=t,{max:s,min:a,inverted:o}=No.toRefs(n),{forwardRef:l,currentElement:c}=R(),u=No.ref(),d=No.computed(()=>!o.value);function p(h){const y=u.value||c.value.getBoundingClientRect(),f=[0,y.height],m=d.value?[s.value,a.value]:[a.value,s.value],C=To(f,m);return u.value=y,C(h-y.top)}return Ks({startEdge:d.value?"bottom":"top",endEdge:d.value?"top":"bottom",size:"height",direction:d.value?1:-1}),(h,y)=>(No.openBlock(),No.createBlock(Hs,{ref:No.unref(l),"data-orientation":"vertical",style:{"--radix-slider-thumb-transform":"translateY(50%)"},onSlideStart:y[0]||(y[0]=f=>{const m=p(f.clientY);i("slideStart",m)}),onSlideMove:y[1]||(y[1]=f=>{const m=p(f.clientY);i("slideMove",m)}),onSlideEnd:y[2]||(y[2]=()=>{u.value=void 0,i("slideEnd")}),onStepKeyDown:y[3]||(y[3]=f=>{const m=d.value?"from-bottom":"from-top",C=No.unref(Ls)[m].includes(f.key);i("stepKeyDown",f,C?-1:1)}),onEndKeyDown:y[4]||(y[4]=f=>i("endKeyDown",f)),onHomeKeyDown:y[5]||(y[5]=f=>i("homeKeyDown",f))},{default:No.withCtx(()=>[No.renderSlot(h.$slots,"default")]),_:3},512))}}),pp=["value","name","disabled","step"],[un,vp]=te("SliderRoot"),og=No.defineComponent({inheritAttrs:!1,__name:"SliderRoot",props:{name:{},defaultValue:{default:()=>[0]},modelValue:{},disabled:{type:Boolean,default:!1},orientation:{default:"horizontal"},dir:{},inverted:{type:Boolean,default:!1},min:{default:0},max:{default:100},step:{default:1},minStepsBetweenThumbs:{default:0},asChild:{type:Boolean},as:{}},emits:["update:modelValue","valueCommit"],setup(e,{emit:t}){const n=e,i=t,{min:s,max:a,step:o,minStepsBetweenThumbs:l,orientation:c,disabled:u,dir:d}=No.toRefs(n),p=we(d),{forwardRef:h,currentElement:y}=R(),f=at(y);Ca();const m=ne(n,"modelValue",i,{defaultValue:n.defaultValue,passive:n.modelValue===void 0}),C=No.ref(0),g=No.ref(m.value);function b(_){const k=lp(m.value,_);w(_,k)}function v(_){w(_,C.value)}function N(){const _=g.value[C.value];m.value[C.value]!==_&&i("valueCommit",No.toRaw(m.value))}function w(_,k,{commit:A}={commit:!1}){var F;const B=up(o.value),I=dp(Math.round((_-s.value)/o.value)*o.value+s.value,B),D=Ut(I,s.value,a.value),L=np(m.value,D,k);if(ip(L,l.value*o.value)){C.value=L.indexOf(D);const $=String(L)!==String(m.value);$&&A&&i("valueCommit",L),$&&((F=E.value[C.value])==null||F.focus(),m.value=L)}}const E=No.ref([]);return vp({modelValue:m,valueIndexToChangeRef:C,thumbElements:E,orientation:c,min:s,max:a,disabled:u}),(_,k)=>(No.openBlock(),No.createElementBlock(No.Fragment,null,[No.createVNode(No.unref(wa),null,{default:No.withCtx(()=>[(No.openBlock(),No.createBlock(No.resolveDynamicComponent(No.unref(c)==="horizontal"?cp:fp),No.mergeProps(_.$attrs,{ref:No.unref(h),"as-child":_.asChild,as:_.as,min:No.unref(s),max:No.unref(a),dir:No.unref(p),inverted:_.inverted,"aria-disabled":No.unref(u),"data-disabled":No.unref(u)?"":void 0,onPointerdown:k[0]||(k[0]=()=>{No.unref(u)||(g.value=No.unref(m))}),onSlideStart:k[1]||(k[1]=A=>!No.unref(u)&&b(A)),onSlideMove:k[2]||(k[2]=A=>!No.unref(u)&&v(A)),onSlideEnd:k[3]||(k[3]=A=>!No.unref(u)&&N()),onHomeKeyDown:k[4]||(k[4]=A=>!No.unref(u)&&w(No.unref(s),0,{commit:!0})),onEndKeyDown:k[5]||(k[5]=A=>!No.unref(u)&&w(No.unref(a),No.unref(m).length-1,{commit:!0})),onStepKeyDown:k[6]||(k[6]=(A,F)=>{if(!No.unref(u)){const B=No.unref(Fs).includes(A.key)||A.shiftKey&&No.unref(Ns).includes(A.key)?10:1,I=C.value,D=No.unref(m)[I],L=No.unref(o)*B*F;w(D+L,I,{commit:!0})}})}),{default:No.withCtx(()=>[No.renderSlot(_.$slots,"default",{modelValue:No.unref(m)})]),_:3},16,["as-child","as","min","max","dir","inverted","aria-disabled","data-disabled"]))]),_:3}),No.unref(f)?(No.openBlock(!0),No.createElementBlock(No.Fragment,{key:0},No.renderList(No.unref(m),(A,F)=>(No.openBlock(),No.createElementBlock("input",{key:F,value:A,type:"number",style:{display:"none"},name:_.name?_.name+(No.unref(m).length>1?"[]":""):void 0,disabled:No.unref(u),step:No.unref(o)},null,8,pp))),128)):No.createCommentVNode("",!0)],64))}}),mp=No.defineComponent({inheritAttrs:!1,__name:"SliderThumbImpl",props:{index:{},asChild:{type:Boolean},as:{}},setup(e){const t=e,n=un(),i=zs(),{forwardRef:s,currentElement:a}=R(),o=No.computed(()=>{var y,f;return(f=(y=n.modelValue)==null?void 0:y.value)==null?void 0:f[t.index]}),l=No.computed(()=>o.value===void 0?0:Vs(o.value,n.min.value??0,n.max.value??100)),c=No.computed(()=>{var y,f;return op(t.index,((f=(y=n.modelValue)==null?void 0:y.value)==null?void 0:f.length)??0)}),u=Ll(a),d=No.computed(()=>u[i.size].value),p=No.computed(()=>d.value?sp(d.value,l.value,i.direction):0),h=Ga();return No.onMounted(()=>{n.thumbElements.value.push(a.value)}),No.onUnmounted(()=>{const y=n.thumbElements.value.findIndex(f=>f===a.value)??-1;n.thumbElements.value.splice(y,1)}),(y,f)=>(No.openBlock(),No.createBlock(No.unref(Qt),null,{default:No.withCtx(()=>[No.createVNode(No.unref(O),No.mergeProps(y.$attrs,{ref:No.unref(s),role:"slider","data-radix-vue-collection-item":"",tabindex:No.unref(n).disabled.value?void 0:0,"aria-label":y.$attrs["aria-label"]||c.value,"data-disabled":No.unref(n).disabled.value?"":void 0,"data-orientation":No.unref(n).orientation.value,"aria-valuenow":o.value,"aria-valuemin":No.unref(n).min.value,"aria-valuemax":No.unref(n).max.value,"aria-orientation":No.unref(n).orientation.value,"as-child":y.asChild,as:y.as,style:{transform:"var(--radix-slider-thumb-transform)",position:"absolute",[No.unref(i).startEdge]:`calc(${l.value}% + ${p.value}px)`,display:!No.unref(h)&&o.value===void 0?"none":void 0},onFocus:f[0]||(f[0]=()=>{No.unref(n).valueIndexToChangeRef.value=y.index})}),{default:No.withCtx(()=>[No.renderSlot(y.$slots,"default")]),_:3},16,["tabindex","aria-label","data-disabled","data-orientation","aria-valuenow","aria-valuemin","aria-valuemax","aria-orientation","as-child","as","style"])]),_:3}))}}),lg=No.defineComponent({__name:"SliderThumb",props:{asChild:{type:Boolean},as:{}},setup(e){const t=e,{getItems:n}=ea(),{forwardRef:i,currentElement:s}=R(),a=No.computed(()=>s.value?n().findIndex(o=>o.ref===s.value):-1);return(o,l)=>(No.openBlock(),No.createBlock(mp,No.mergeProps({ref:No.unref(i)},t,{index:a.value}),{default:No.withCtx(()=>[No.renderSlot(o.$slots,"default")]),_:3},16,["index"]))}}),sg=No.defineComponent({__name:"SliderTrack",props:{asChild:{type:Boolean},as:{default:"span"}},setup(e){const t=un();return R(),(n,i)=>(No.openBlock(),No.createBlock(No.unref(O),{"as-child":n.asChild,as:n.as,"data-disabled":No.unref(t).disabled.value?"":void 0,"data-orientation":No.unref(t).orientation.value},{default:No.withCtx(()=>[No.renderSlot(n.$slots,"default")]),_:3},8,["as-child","as","data-disabled","data-orientation"]))}}),rg=No.defineComponent({__name:"SliderRange",props:{asChild:{type:Boolean},as:{default:"span"}},setup(e){const t=un(),n=zs();R();const i=No.computed(()=>{var o,l;return(l=(o=t.modelValue)==null?void 0:o.value)==null?void 0:l.map(c=>Vs(c,t.min.value,t.max.value))}),s=No.computed(()=>t.modelValue.value.length>1?Math.min(...i.value):0),a=No.computed(()=>100-Math.max(...i.value));return(o,l)=>(No.openBlock(),No.createBlock(No.unref(O),{"data-disabled":No.unref(t).disabled.value?"":void 0,"data-orientation":No.unref(t).orientation.value,"as-child":o.asChild,as:o.as,style:No.normalizeStyle({[No.unref(n).startEdge]:`${s.value}%`,[No.unref(n).endEdge]:`${a.value}%`})},{default:No.withCtx(()=>[No.renderSlot(o.$slots,"default")]),_:3},8,["data-disabled","data-orientation","as-child","as","style"]))}});function xp(){if(typeof matchMedia=="function")return matchMedia("(pointer:coarse)").matches?"coarse":"fine"}xp();const Kp=["name","disabled","required","value","checked","data-state","data-disabled"],[Hp,Wp]=te("SwitchRoot"),gg=No.defineComponent({__name:"SwitchRoot",props:{defaultChecked:{type:Boolean},checked:{type:Boolean,default:void 0},disabled:{type:Boolean},required:{type:Boolean},name:{},id:{},value:{default:"on"},asChild:{type:Boolean},as:{default:"button"}},emits:["update:checked"],setup(e,{emit:t}){const n=e,i=t,{disabled:s}=No.toRefs(n),a=ne(n,"checked",i,{defaultValue:n.defaultChecked,passive:n.checked===void 0});function o(){s.value||(a.value=!a.value)}const{forwardRef:l,currentElement:c}=R(),u=at(c),d=No.computed(()=>{var p;return n.id&&c.value?(p=document.querySelector(`[for="${n.id}"]`))==null?void 0:p.innerText:void 0});return Wp({checked:a,toggleCheck:o,disabled:s}),(p,h)=>(No.openBlock(),No.createElementBlock(No.Fragment,null,[No.createVNode(No.unref(O),No.mergeProps(p.$attrs,{id:p.id,ref:No.unref(l),role:"switch",type:p.as==="button"?"button":void 0,value:p.value,"aria-label":p.$attrs["aria-label"]||d.value,"aria-checked":No.unref(a),"aria-required":p.required,"data-state":No.unref(a)?"checked":"unchecked","data-disabled":No.unref(s)?"":void 0,"as-child":p.asChild,as:p.as,disabled:No.unref(s),onClick:o,onKeydown:No.withKeys(No.withModifiers(o,["prevent"]),["enter"])}),{default:No.withCtx(()=>[No.renderSlot(p.$slots,"default",{checked:No.unref(a)})]),_:3},16,["id","type","value","aria-label","aria-checked","aria-required","data-state","data-disabled","as-child","as","disabled","onKeydown"]),No.unref(u)?(No.openBlock(),No.createElementBlock("input",{key:0,type:"checkbox",name:p.name,tabindex:"-1","aria-hidden":"true",disabled:No.unref(s),required:p.required,value:p.value,checked:!!No.unref(a),"data-state":No.unref(a)?"checked":"unchecked","data-disabled":No.unref(s)?"":void 0,style:{transform:"translateX(-100%)",position:"absolute",pointerEvents:"none",opacity:0,margin:0}},null,8,Kp)):No.createCommentVNode("",!0)],64))}}),bg=No.defineComponent({__name:"SwitchThumb",props:{asChild:{type:Boolean},as:{default:"span"}},setup(e){const t=Hp();return R(),(n,i)=>{var s;return No.openBlock(),No.createBlock(No.unref(O),{"data-state":(s=No.unref(t).checked)!=null&&s.value?"checked":"unchecked","data-disabled":No.unref(t).disabled.value?"":void 0,"as-child":n.asChild,as:n.as},{default:No.withCtx(()=>[No.renderSlot(n.$slots,"default")]),_:3},8,["data-state","data-disabled","as-child","as"])}}});function r(e){var t,n,i="";if(typeof e=="string"||typeof e=="number")i+=e;else if(typeof e=="object")if(Array.isArray(e)){var s=e.length;for(t=0;t<s;t++)e[t]&&(n=r(e[t]))&&(i&&(i+=" "),i+=n)}else for(n in e)e[n]&&(i&&(i+=" "),i+=n);return i}function clsx(){for(var e,t,n=0,i="",s=arguments.length;n<s;n++)(e=arguments[n])&&(t=r(e))&&(i&&(i+=" "),i+=t);return i}const concatArrays=(e,t)=>{const n=new Array(e.length+t.length);for(let i=0;i<e.length;i++)n[i]=e[i];for(let i=0;i<t.length;i++)n[e.length+i]=t[i];return n},createClassValidatorObject=(e,t)=>({classGroupId:e,validator:t}),createClassPartObject=(e=new Map,t=null,n)=>({nextPart:e,validators:t,classGroupId:n}),CLASS_PART_SEPARATOR="-",EMPTY_CONFLICTS=[],ARBITRARY_PROPERTY_PREFIX="arbitrary..",createClassGroupUtils=e=>{const t=createClassMap(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:i}=e;return{getClassGroupId:o=>{if(o.startsWith("[")&&o.endsWith("]"))return getGroupIdForArbitraryProperty(o);const l=o.split(CLASS_PART_SEPARATOR),c=l[0]===""&&l.length>1?1:0;return getGroupRecursive(l,c,t)},getConflictingClassGroupIds:(o,l)=>{if(l){const c=i[o],u=n[o];return c?u?concatArrays(u,c):c:u||EMPTY_CONFLICTS}return n[o]||EMPTY_CONFLICTS}}},getGroupRecursive=(e,t,n)=>{if(e.length-t===0)return n.classGroupId;const s=e[t],a=n.nextPart.get(s);if(a){const u=getGroupRecursive(e,t+1,a);if(u)return u}const o=n.validators;if(o===null)return;const l=t===0?e.join(CLASS_PART_SEPARATOR):e.slice(t).join(CLASS_PART_SEPARATOR),c=o.length;for(let u=0;u<c;u++){const d=o[u];if(d.validator(l))return d.classGroupId}},getGroupIdForArbitraryProperty=e=>e.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const t=e.slice(1,-1),n=t.indexOf(":"),i=t.slice(0,n);return i?ARBITRARY_PROPERTY_PREFIX+i:void 0})(),createClassMap=e=>{const{theme:t,classGroups:n}=e;return processClassGroups(n,t)},processClassGroups=(e,t)=>{const n=createClassPartObject();for(const i in e){const s=e[i];processClassesRecursively(s,n,i,t)}return n},processClassesRecursively=(e,t,n,i)=>{const s=e.length;for(let a=0;a<s;a++){const o=e[a];processClassDefinition(o,t,n,i)}},processClassDefinition=(e,t,n,i)=>{if(typeof e=="string"){processStringDefinition(e,t,n);return}if(typeof e=="function"){processFunctionDefinition(e,t,n,i);return}processObjectDefinition(e,t,n,i)},processStringDefinition=(e,t,n)=>{const i=e===""?t:getPart(t,e);i.classGroupId=n},processFunctionDefinition=(e,t,n,i)=>{if(isThemeGetter(e)){processClassesRecursively(e(i),t,n,i);return}t.validators===null&&(t.validators=[]),t.validators.push(createClassValidatorObject(n,e))},processObjectDefinition=(e,t,n,i)=>{const s=Object.entries(e),a=s.length;for(let o=0;o<a;o++){const[l,c]=s[o];processClassesRecursively(c,getPart(t,l),n,i)}},getPart=(e,t)=>{let n=e;const i=t.split(CLASS_PART_SEPARATOR),s=i.length;for(let a=0;a<s;a++){const o=i[a];let l=n.nextPart.get(o);l||(l=createClassPartObject(),n.nextPart.set(o,l)),n=l}return n},isThemeGetter=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,createLruCache=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=Object.create(null),i=Object.create(null);const s=(a,o)=>{n[a]=o,t++,t>e&&(t=0,i=n,n=Object.create(null))};return{get(a){let o=n[a];if(o!==void 0)return o;if((o=i[a])!==void 0)return s(a,o),o},set(a,o){a in n?n[a]=o:s(a,o)}}},IMPORTANT_MODIFIER="!",MODIFIER_SEPARATOR=":",EMPTY_MODIFIERS=[],createResultObject=(e,t,n,i,s)=>({modifiers:e,hasImportantModifier:t,baseClassName:n,maybePostfixModifierPosition:i,isExternal:s}),createParseClassName=e=>{const{prefix:t,experimentalParseClassName:n}=e;let i=s=>{const a=[];let o=0,l=0,c=0,u;const d=s.length;for(let m=0;m<d;m++){const C=s[m];if(o===0&&l===0){if(C===MODIFIER_SEPARATOR){a.push(s.slice(c,m)),c=m+1;continue}if(C==="/"){u=m;continue}}C==="["?o++:C==="]"?o--:C==="("?l++:C===")"&&l--}const p=a.length===0?s:s.slice(c);let h=p,y=!1;p.endsWith(IMPORTANT_MODIFIER)?(h=p.slice(0,-1),y=!0):p.startsWith(IMPORTANT_MODIFIER)&&(h=p.slice(1),y=!0);const f=u&&u>c?u-c:void 0;return createResultObject(a,y,h,f)};if(t){const s=t+MODIFIER_SEPARATOR,a=i;i=o=>o.startsWith(s)?a(o.slice(s.length)):createResultObject(EMPTY_MODIFIERS,!1,o,void 0,!0)}if(n){const s=i;i=a=>n({className:a,parseClassName:s})}return i},createSortModifiers=e=>{const t=new Map;return e.orderSensitiveModifiers.forEach((n,i)=>{t.set(n,1e6+i)}),n=>{const i=[];let s=[];for(let a=0;a<n.length;a++){const o=n[a],l=o[0]==="[",c=t.has(o);l||c?(s.length>0&&(s.sort(),i.push(...s),s=[]),i.push(o)):s.push(o)}return s.length>0&&(s.sort(),i.push(...s)),i}},createConfigUtils=e=>({cache:createLruCache(e.cacheSize),parseClassName:createParseClassName(e),sortModifiers:createSortModifiers(e),...createClassGroupUtils(e)}),SPLIT_CLASSES_REGEX=/\s+/,mergeClassList=(e,t)=>{const{parseClassName:n,getClassGroupId:i,getConflictingClassGroupIds:s,sortModifiers:a}=t,o=[],l=e.trim().split(SPLIT_CLASSES_REGEX);let c="";for(let u=l.length-1;u>=0;u-=1){const d=l[u],{isExternal:p,modifiers:h,hasImportantModifier:y,baseClassName:f,maybePostfixModifierPosition:m}=n(d);if(p){c=d+(c.length>0?" "+c:c);continue}let C=!!m,g=i(C?f.substring(0,m):f);if(!g){if(!C){c=d+(c.length>0?" "+c:c);continue}if(g=i(f),!g){c=d+(c.length>0?" "+c:c);continue}C=!1}const b=h.length===0?"":h.length===1?h[0]:a(h).join(":"),v=y?b+IMPORTANT_MODIFIER:b,N=v+g;if(o.indexOf(N)>-1)continue;o.push(N);const w=s(g,C);for(let E=0;E<w.length;++E){const _=w[E];o.push(v+_)}c=d+(c.length>0?" "+c:c)}return c},twJoin=(...e)=>{let t=0,n,i,s="";for(;t<e.length;)(n=e[t++])&&(i=toValue$1(n))&&(s&&(s+=" "),s+=i);return s},toValue$1=e=>{if(typeof e=="string")return e;let t,n="";for(let i=0;i<e.length;i++)e[i]&&(t=toValue$1(e[i]))&&(n&&(n+=" "),n+=t);return n},createTailwindMerge=(e,...t)=>{let n,i,s,a;const o=c=>{const u=t.reduce((d,p)=>p(d),e());return n=createConfigUtils(u),i=n.cache.get,s=n.cache.set,a=l,l(c)},l=c=>{const u=i(c);if(u)return u;const d=mergeClassList(c,n);return s(c,d),d};return a=o,(...c)=>a(twJoin(...c))},fallbackThemeArr=[],fromTheme=e=>{const t=n=>n[e]||fallbackThemeArr;return t.isThemeGetter=!0,t},arbitraryValueRegex=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,arbitraryVariableRegex=/^\((?:(\w[\w-]*):)?(.+)\)$/i,fractionRegex=/^\d+\/\d+$/,tshirtUnitRegex=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,lengthUnitRegex=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,colorFunctionRegex=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,shadowRegex=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,imageRegex=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,isFraction=e=>fractionRegex.test(e),isNumber$2=e=>!!e&&!Number.isNaN(Number(e)),isInteger=e=>!!e&&Number.isInteger(Number(e)),isPercent=e=>e.endsWith("%")&&isNumber$2(e.slice(0,-1)),isTshirtSize=e=>tshirtUnitRegex.test(e),isAny=()=>!0,isLengthOnly=e=>lengthUnitRegex.test(e)&&!colorFunctionRegex.test(e),isNever=()=>!1,isShadow=e=>shadowRegex.test(e),isImage=e=>imageRegex.test(e),isAnyNonArbitrary=e=>!isArbitraryValue(e)&&!isArbitraryVariable(e),isArbitrarySize=e=>getIsArbitraryValue(e,isLabelSize,isNever),isArbitraryValue=e=>arbitraryValueRegex.test(e),isArbitraryLength=e=>getIsArbitraryValue(e,isLabelLength,isLengthOnly),isArbitraryNumber=e=>getIsArbitraryValue(e,isLabelNumber,isNumber$2),isArbitraryPosition=e=>getIsArbitraryValue(e,isLabelPosition,isNever),isArbitraryImage=e=>getIsArbitraryValue(e,isLabelImage,isImage),isArbitraryShadow=e=>getIsArbitraryValue(e,isLabelShadow,isShadow),isArbitraryVariable=e=>arbitraryVariableRegex.test(e),isArbitraryVariableLength=e=>getIsArbitraryVariable(e,isLabelLength),isArbitraryVariableFamilyName=e=>getIsArbitraryVariable(e,isLabelFamilyName),isArbitraryVariablePosition=e=>getIsArbitraryVariable(e,isLabelPosition),isArbitraryVariableSize=e=>getIsArbitraryVariable(e,isLabelSize),isArbitraryVariableImage=e=>getIsArbitraryVariable(e,isLabelImage),isArbitraryVariableShadow=e=>getIsArbitraryVariable(e,isLabelShadow,!0),getIsArbitraryValue=(e,t,n)=>{const i=arbitraryValueRegex.exec(e);return i?i[1]?t(i[1]):n(i[2]):!1},getIsArbitraryVariable=(e,t,n=!1)=>{const i=arbitraryVariableRegex.exec(e);return i?i[1]?t(i[1]):n:!1},isLabelPosition=e=>e==="position"||e==="percentage",isLabelImage=e=>e==="image"||e==="url",isLabelSize=e=>e==="length"||e==="size"||e==="bg-size",isLabelLength=e=>e==="length",isLabelNumber=e=>e==="number",isLabelFamilyName=e=>e==="family-name",isLabelShadow=e=>e==="shadow",getDefaultConfig=()=>{const e=fromTheme("color"),t=fromTheme("font"),n=fromTheme("text"),i=fromTheme("font-weight"),s=fromTheme("tracking"),a=fromTheme("leading"),o=fromTheme("breakpoint"),l=fromTheme("container"),c=fromTheme("spacing"),u=fromTheme("radius"),d=fromTheme("shadow"),p=fromTheme("inset-shadow"),h=fromTheme("text-shadow"),y=fromTheme("drop-shadow"),f=fromTheme("blur"),m=fromTheme("perspective"),C=fromTheme("aspect"),g=fromTheme("ease"),b=fromTheme("animate"),v=()=>["auto","avoid","all","avoid-page","page","left","right","column"],N=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],w=()=>[...N(),isArbitraryVariable,isArbitraryValue],E=()=>["auto","hidden","clip","visible","scroll"],_=()=>["auto","contain","none"],k=()=>[isArbitraryVariable,isArbitraryValue,c],A=()=>[isFraction,"full","auto",...k()],F=()=>[isInteger,"none","subgrid",isArbitraryVariable,isArbitraryValue],B=()=>["auto",{span:["full",isInteger,isArbitraryVariable,isArbitraryValue]},isInteger,isArbitraryVariable,isArbitraryValue],I=()=>[isInteger,"auto",isArbitraryVariable,isArbitraryValue],D=()=>["auto","min","max","fr",isArbitraryVariable,isArbitraryValue],L=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],$=()=>["start","end","center","stretch","center-safe","end-safe"],P=()=>["auto",...k()],T=()=>[isFraction,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...k()],x=()=>[e,isArbitraryVariable,isArbitraryValue],S=()=>[...N(),isArbitraryVariablePosition,isArbitraryPosition,{position:[isArbitraryVariable,isArbitraryValue]}],M=()=>["no-repeat",{repeat:["","x","y","space","round"]}],V=()=>["auto","cover","contain",isArbitraryVariableSize,isArbitrarySize,{size:[isArbitraryVariable,isArbitraryValue]}],z=()=>[isPercent,isArbitraryVariableLength,isArbitraryLength],G=()=>["","none","full",u,isArbitraryVariable,isArbitraryValue],H=()=>["",isNumber$2,isArbitraryVariableLength,isArbitraryLength],W=()=>["solid","dashed","dotted","double"],q=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],U=()=>[isNumber$2,isPercent,isArbitraryVariablePosition,isArbitraryPosition],J=()=>["","none",f,isArbitraryVariable,isArbitraryValue],Q=()=>["none",isNumber$2,isArbitraryVariable,isArbitraryValue],K=()=>["none",isNumber$2,isArbitraryVariable,isArbitraryValue],X=()=>[isNumber$2,isArbitraryVariable,isArbitraryValue],Z=()=>[isFraction,"full",...k()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[isTshirtSize],breakpoint:[isTshirtSize],color:[isAny],container:[isTshirtSize],"drop-shadow":[isTshirtSize],ease:["in","out","in-out"],font:[isAnyNonArbitrary],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[isTshirtSize],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[isTshirtSize],shadow:[isTshirtSize],spacing:["px",isNumber$2],text:[isTshirtSize],"text-shadow":[isTshirtSize],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",isFraction,isArbitraryValue,isArbitraryVariable,C]}],container:["container"],columns:[{columns:[isNumber$2,isArbitraryValue,isArbitraryVariable,l]}],"break-after":[{"break-after":v()}],"break-before":[{"break-before":v()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:w()}],overflow:[{overflow:E()}],"overflow-x":[{"overflow-x":E()}],"overflow-y":[{"overflow-y":E()}],overscroll:[{overscroll:_()}],"overscroll-x":[{"overscroll-x":_()}],"overscroll-y":[{"overscroll-y":_()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:A()}],"inset-x":[{"inset-x":A()}],"inset-y":[{"inset-y":A()}],start:[{start:A()}],end:[{end:A()}],top:[{top:A()}],right:[{right:A()}],bottom:[{bottom:A()}],left:[{left:A()}],visibility:["visible","invisible","collapse"],z:[{z:[isInteger,"auto",isArbitraryVariable,isArbitraryValue]}],basis:[{basis:[isFraction,"full","auto",l,...k()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[isNumber$2,isFraction,"auto","initial","none",isArbitraryValue]}],grow:[{grow:["",isNumber$2,isArbitraryVariable,isArbitraryValue]}],shrink:[{shrink:["",isNumber$2,isArbitraryVariable,isArbitraryValue]}],order:[{order:[isInteger,"first","last","none",isArbitraryVariable,isArbitraryValue]}],"grid-cols":[{"grid-cols":F()}],"col-start-end":[{col:B()}],"col-start":[{"col-start":I()}],"col-end":[{"col-end":I()}],"grid-rows":[{"grid-rows":F()}],"row-start-end":[{row:B()}],"row-start":[{"row-start":I()}],"row-end":[{"row-end":I()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":D()}],"auto-rows":[{"auto-rows":D()}],gap:[{gap:k()}],"gap-x":[{"gap-x":k()}],"gap-y":[{"gap-y":k()}],"justify-content":[{justify:[...L(),"normal"]}],"justify-items":[{"justify-items":[...$(),"normal"]}],"justify-self":[{"justify-self":["auto",...$()]}],"align-content":[{content:["normal",...L()]}],"align-items":[{items:[...$(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...$(),{baseline:["","last"]}]}],"place-content":[{"place-content":L()}],"place-items":[{"place-items":[...$(),"baseline"]}],"place-self":[{"place-self":["auto",...$()]}],p:[{p:k()}],px:[{px:k()}],py:[{py:k()}],ps:[{ps:k()}],pe:[{pe:k()}],pt:[{pt:k()}],pr:[{pr:k()}],pb:[{pb:k()}],pl:[{pl:k()}],m:[{m:P()}],mx:[{mx:P()}],my:[{my:P()}],ms:[{ms:P()}],me:[{me:P()}],mt:[{mt:P()}],mr:[{mr:P()}],mb:[{mb:P()}],ml:[{ml:P()}],"space-x":[{"space-x":k()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":k()}],"space-y-reverse":["space-y-reverse"],size:[{size:T()}],w:[{w:[l,"screen",...T()]}],"min-w":[{"min-w":[l,"screen","none",...T()]}],"max-w":[{"max-w":[l,"screen","none","prose",{screen:[o]},...T()]}],h:[{h:["screen","lh",...T()]}],"min-h":[{"min-h":["screen","lh","none",...T()]}],"max-h":[{"max-h":["screen","lh",...T()]}],"font-size":[{text:["base",n,isArbitraryVariableLength,isArbitraryLength]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[i,isArbitraryVariable,isArbitraryNumber]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",isPercent,isArbitraryValue]}],"font-family":[{font:[isArbitraryVariableFamilyName,isArbitraryValue,t]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[s,isArbitraryVariable,isArbitraryValue]}],"line-clamp":[{"line-clamp":[isNumber$2,"none",isArbitraryVariable,isArbitraryNumber]}],leading:[{leading:[a,...k()]}],"list-image":[{"list-image":["none",isArbitraryVariable,isArbitraryValue]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",isArbitraryVariable,isArbitraryValue]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:x()}],"text-color":[{text:x()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...W(),"wavy"]}],"text-decoration-thickness":[{decoration:[isNumber$2,"from-font","auto",isArbitraryVariable,isArbitraryLength]}],"text-decoration-color":[{decoration:x()}],"underline-offset":[{"underline-offset":[isNumber$2,"auto",isArbitraryVariable,isArbitraryValue]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:k()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",isArbitraryVariable,isArbitraryValue]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",isArbitraryVariable,isArbitraryValue]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:S()}],"bg-repeat":[{bg:M()}],"bg-size":[{bg:V()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},isInteger,isArbitraryVariable,isArbitraryValue],radial:["",isArbitraryVariable,isArbitraryValue],conic:[isInteger,isArbitraryVariable,isArbitraryValue]},isArbitraryVariableImage,isArbitraryImage]}],"bg-color":[{bg:x()}],"gradient-from-pos":[{from:z()}],"gradient-via-pos":[{via:z()}],"gradient-to-pos":[{to:z()}],"gradient-from":[{from:x()}],"gradient-via":[{via:x()}],"gradient-to":[{to:x()}],rounded:[{rounded:G()}],"rounded-s":[{"rounded-s":G()}],"rounded-e":[{"rounded-e":G()}],"rounded-t":[{"rounded-t":G()}],"rounded-r":[{"rounded-r":G()}],"rounded-b":[{"rounded-b":G()}],"rounded-l":[{"rounded-l":G()}],"rounded-ss":[{"rounded-ss":G()}],"rounded-se":[{"rounded-se":G()}],"rounded-ee":[{"rounded-ee":G()}],"rounded-es":[{"rounded-es":G()}],"rounded-tl":[{"rounded-tl":G()}],"rounded-tr":[{"rounded-tr":G()}],"rounded-br":[{"rounded-br":G()}],"rounded-bl":[{"rounded-bl":G()}],"border-w":[{border:H()}],"border-w-x":[{"border-x":H()}],"border-w-y":[{"border-y":H()}],"border-w-s":[{"border-s":H()}],"border-w-e":[{"border-e":H()}],"border-w-t":[{"border-t":H()}],"border-w-r":[{"border-r":H()}],"border-w-b":[{"border-b":H()}],"border-w-l":[{"border-l":H()}],"divide-x":[{"divide-x":H()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":H()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...W(),"hidden","none"]}],"divide-style":[{divide:[...W(),"hidden","none"]}],"border-color":[{border:x()}],"border-color-x":[{"border-x":x()}],"border-color-y":[{"border-y":x()}],"border-color-s":[{"border-s":x()}],"border-color-e":[{"border-e":x()}],"border-color-t":[{"border-t":x()}],"border-color-r":[{"border-r":x()}],"border-color-b":[{"border-b":x()}],"border-color-l":[{"border-l":x()}],"divide-color":[{divide:x()}],"outline-style":[{outline:[...W(),"none","hidden"]}],"outline-offset":[{"outline-offset":[isNumber$2,isArbitraryVariable,isArbitraryValue]}],"outline-w":[{outline:["",isNumber$2,isArbitraryVariableLength,isArbitraryLength]}],"outline-color":[{outline:x()}],shadow:[{shadow:["","none",d,isArbitraryVariableShadow,isArbitraryShadow]}],"shadow-color":[{shadow:x()}],"inset-shadow":[{"inset-shadow":["none",p,isArbitraryVariableShadow,isArbitraryShadow]}],"inset-shadow-color":[{"inset-shadow":x()}],"ring-w":[{ring:H()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:x()}],"ring-offset-w":[{"ring-offset":[isNumber$2,isArbitraryLength]}],"ring-offset-color":[{"ring-offset":x()}],"inset-ring-w":[{"inset-ring":H()}],"inset-ring-color":[{"inset-ring":x()}],"text-shadow":[{"text-shadow":["none",h,isArbitraryVariableShadow,isArbitraryShadow]}],"text-shadow-color":[{"text-shadow":x()}],opacity:[{opacity:[isNumber$2,isArbitraryVariable,isArbitraryValue]}],"mix-blend":[{"mix-blend":[...q(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":q()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[isNumber$2]}],"mask-image-linear-from-pos":[{"mask-linear-from":U()}],"mask-image-linear-to-pos":[{"mask-linear-to":U()}],"mask-image-linear-from-color":[{"mask-linear-from":x()}],"mask-image-linear-to-color":[{"mask-linear-to":x()}],"mask-image-t-from-pos":[{"mask-t-from":U()}],"mask-image-t-to-pos":[{"mask-t-to":U()}],"mask-image-t-from-color":[{"mask-t-from":x()}],"mask-image-t-to-color":[{"mask-t-to":x()}],"mask-image-r-from-pos":[{"mask-r-from":U()}],"mask-image-r-to-pos":[{"mask-r-to":U()}],"mask-image-r-from-color":[{"mask-r-from":x()}],"mask-image-r-to-color":[{"mask-r-to":x()}],"mask-image-b-from-pos":[{"mask-b-from":U()}],"mask-image-b-to-pos":[{"mask-b-to":U()}],"mask-image-b-from-color":[{"mask-b-from":x()}],"mask-image-b-to-color":[{"mask-b-to":x()}],"mask-image-l-from-pos":[{"mask-l-from":U()}],"mask-image-l-to-pos":[{"mask-l-to":U()}],"mask-image-l-from-color":[{"mask-l-from":x()}],"mask-image-l-to-color":[{"mask-l-to":x()}],"mask-image-x-from-pos":[{"mask-x-from":U()}],"mask-image-x-to-pos":[{"mask-x-to":U()}],"mask-image-x-from-color":[{"mask-x-from":x()}],"mask-image-x-to-color":[{"mask-x-to":x()}],"mask-image-y-from-pos":[{"mask-y-from":U()}],"mask-image-y-to-pos":[{"mask-y-to":U()}],"mask-image-y-from-color":[{"mask-y-from":x()}],"mask-image-y-to-color":[{"mask-y-to":x()}],"mask-image-radial":[{"mask-radial":[isArbitraryVariable,isArbitraryValue]}],"mask-image-radial-from-pos":[{"mask-radial-from":U()}],"mask-image-radial-to-pos":[{"mask-radial-to":U()}],"mask-image-radial-from-color":[{"mask-radial-from":x()}],"mask-image-radial-to-color":[{"mask-radial-to":x()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":N()}],"mask-image-conic-pos":[{"mask-conic":[isNumber$2]}],"mask-image-conic-from-pos":[{"mask-conic-from":U()}],"mask-image-conic-to-pos":[{"mask-conic-to":U()}],"mask-image-conic-from-color":[{"mask-conic-from":x()}],"mask-image-conic-to-color":[{"mask-conic-to":x()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:S()}],"mask-repeat":[{mask:M()}],"mask-size":[{mask:V()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",isArbitraryVariable,isArbitraryValue]}],filter:[{filter:["","none",isArbitraryVariable,isArbitraryValue]}],blur:[{blur:J()}],brightness:[{brightness:[isNumber$2,isArbitraryVariable,isArbitraryValue]}],contrast:[{contrast:[isNumber$2,isArbitraryVariable,isArbitraryValue]}],"drop-shadow":[{"drop-shadow":["","none",y,isArbitraryVariableShadow,isArbitraryShadow]}],"drop-shadow-color":[{"drop-shadow":x()}],grayscale:[{grayscale:["",isNumber$2,isArbitraryVariable,isArbitraryValue]}],"hue-rotate":[{"hue-rotate":[isNumber$2,isArbitraryVariable,isArbitraryValue]}],invert:[{invert:["",isNumber$2,isArbitraryVariable,isArbitraryValue]}],saturate:[{saturate:[isNumber$2,isArbitraryVariable,isArbitraryValue]}],sepia:[{sepia:["",isNumber$2,isArbitraryVariable,isArbitraryValue]}],"backdrop-filter":[{"backdrop-filter":["","none",isArbitraryVariable,isArbitraryValue]}],"backdrop-blur":[{"backdrop-blur":J()}],"backdrop-brightness":[{"backdrop-brightness":[isNumber$2,isArbitraryVariable,isArbitraryValue]}],"backdrop-contrast":[{"backdrop-contrast":[isNumber$2,isArbitraryVariable,isArbitraryValue]}],"backdrop-grayscale":[{"backdrop-grayscale":["",isNumber$2,isArbitraryVariable,isArbitraryValue]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[isNumber$2,isArbitraryVariable,isArbitraryValue]}],"backdrop-invert":[{"backdrop-invert":["",isNumber$2,isArbitraryVariable,isArbitraryValue]}],"backdrop-opacity":[{"backdrop-opacity":[isNumber$2,isArbitraryVariable,isArbitraryValue]}],"backdrop-saturate":[{"backdrop-saturate":[isNumber$2,isArbitraryVariable,isArbitraryValue]}],"backdrop-sepia":[{"backdrop-sepia":["",isNumber$2,isArbitraryVariable,isArbitraryValue]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":k()}],"border-spacing-x":[{"border-spacing-x":k()}],"border-spacing-y":[{"border-spacing-y":k()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",isArbitraryVariable,isArbitraryValue]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[isNumber$2,"initial",isArbitraryVariable,isArbitraryValue]}],ease:[{ease:["linear","initial",g,isArbitraryVariable,isArbitraryValue]}],delay:[{delay:[isNumber$2,isArbitraryVariable,isArbitraryValue]}],animate:[{animate:["none",b,isArbitraryVariable,isArbitraryValue]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[m,isArbitraryVariable,isArbitraryValue]}],"perspective-origin":[{"perspective-origin":w()}],rotate:[{rotate:Q()}],"rotate-x":[{"rotate-x":Q()}],"rotate-y":[{"rotate-y":Q()}],"rotate-z":[{"rotate-z":Q()}],scale:[{scale:K()}],"scale-x":[{"scale-x":K()}],"scale-y":[{"scale-y":K()}],"scale-z":[{"scale-z":K()}],"scale-3d":["scale-3d"],skew:[{skew:X()}],"skew-x":[{"skew-x":X()}],"skew-y":[{"skew-y":X()}],transform:[{transform:[isArbitraryVariable,isArbitraryValue,"","none","gpu","cpu"]}],"transform-origin":[{origin:w()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:Z()}],"translate-x":[{"translate-x":Z()}],"translate-y":[{"translate-y":Z()}],"translate-z":[{"translate-z":Z()}],"translate-none":["translate-none"],accent:[{accent:x()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:x()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",isArbitraryVariable,isArbitraryValue]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":k()}],"scroll-mx":[{"scroll-mx":k()}],"scroll-my":[{"scroll-my":k()}],"scroll-ms":[{"scroll-ms":k()}],"scroll-me":[{"scroll-me":k()}],"scroll-mt":[{"scroll-mt":k()}],"scroll-mr":[{"scroll-mr":k()}],"scroll-mb":[{"scroll-mb":k()}],"scroll-ml":[{"scroll-ml":k()}],"scroll-p":[{"scroll-p":k()}],"scroll-px":[{"scroll-px":k()}],"scroll-py":[{"scroll-py":k()}],"scroll-ps":[{"scroll-ps":k()}],"scroll-pe":[{"scroll-pe":k()}],"scroll-pt":[{"scroll-pt":k()}],"scroll-pr":[{"scroll-pr":k()}],"scroll-pb":[{"scroll-pb":k()}],"scroll-pl":[{"scroll-pl":k()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",isArbitraryVariable,isArbitraryValue]}],fill:[{fill:["none",...x()]}],"stroke-w":[{stroke:[isNumber$2,isArbitraryVariableLength,isArbitraryLength,isArbitraryNumber]}],stroke:[{stroke:["none",...x()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},twMerge=createTailwindMerge(getDefaultConfig);function cn(...e){return twMerge(clsx(e))}const _hoisted_1$j={key:1,class:"h-1 w-2 bg-current rounded-sm"},_hoisted_2$i={class:"grid gap-1.5"},_hoisted_3$h=["for"],_hoisted_4$e={key:2,class:"text-sm text-destructive"},_sfc_main$A=No.defineComponent({__name:"NSCheckbox",props:{id:{},checked:{type:Boolean},defaultChecked:{type:Boolean},disabled:{type:Boolean},required:{type:Boolean},name:{},value:{},label:{},hideLabel:{type:Boolean},description:{},errorMessage:{},indeterminate:{type:Boolean},class:{}},emits:["update:checked"],setup(e,{emit:t}){const n=e,i=t,s=No.useId(),a=n.id||s,o=No.computed({get:()=>n.checked??!1,set:l=>{i("update:checked",l)}});return(l,c)=>(No.openBlock(),No.createElementBlock("div",{class:No.normalizeClass(No.unref(cn)("flex items-start space-x-2",n.class))},[No.createVNode(No.unref(Wv),{id:No.unref(a),checked:o.value,"onUpdate:checked":c[0]||(c[0]=u=>o.value=u),"default-checked":e.defaultChecked,disabled:e.disabled,required:e.required,name:e.name,value:e.value,class:No.normalizeClass(No.unref(cn)("peer h-4 w-4 shrink-0 rounded-sm border border-primary ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground",{"border-destructive":e.errorMessage,"data-[state=checked]:bg-destructive data-[state=checked]:text-destructive-foreground":e.errorMessage})),"data-indeterminate":e.indeterminate},{default:No.withCtx(()=>[No.createVNode(No.unref(jv),{class:No.normalizeClass(No.unref(cn)("flex items-center justify-center text-current",{"opacity-50":e.indeterminate}))},{default:No.withCtx(()=>[e.indeterminate?(No.openBlock(),No.createElementBlock("div",_hoisted_1$j)):(No.openBlock(),No.createBlock(No.unref(lucideVueNext.Check),{key:0,class:"h-4 w-4"}))]),_:1},8,["class"])]),_:1},8,["id","checked","default-checked","disabled","required","name","value","class","data-indeterminate"]),No.createElementVNode("div",_hoisted_2$i,[e.label||l.$slots.label?(No.openBlock(),No.createElementBlock("label",{key:0,for:No.unref(a),class:No.normalizeClass(No.unref(cn)("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70 cursor-pointer",{"sr-only":e.hideLabel,"cursor-not-allowed":e.disabled,"text-destructive":e.errorMessage}))},[No.renderSlot(l.$slots,"label",{},()=>[No.createTextVNode(No.toDisplayString(e.label),1)])],10,_hoisted_3$h)):No.createCommentVNode("",!0),e.description?(No.openBlock(),No.createElementBlock("p",{key:1,class:No.normalizeClass(No.unref(cn)("text-sm text-muted-foreground",{"text-destructive":e.errorMessage}))},No.toDisplayString(e.description),3)):No.createCommentVNode("",!0),e.errorMessage?(No.openBlock(),No.createElementBlock("p",_hoisted_4$e,No.toDisplayString(e.errorMessage),1)):No.createCommentVNode("",!0),No.renderSlot(l.$slots,"extra")])],2))}}),_hoisted_1$i=["for"],_hoisted_2$h={class:"relative"},_hoisted_3$g=["id","type","placeholder","disabled","readonly","required","name","value"],_hoisted_4$d={key:1,class:"absolute right-0 top-1/2 transform -translate-y-1/2 flex items-center gap-1 pr-3"},_hoisted_5$a=["disabled","title"],_sfc_main$z=No.defineComponent({__name:"NSTextInput",props:{modelValue:{},value:{},defaultValue:{},type:{default:"text"},placeholder:{},disabled:{type:Boolean},readonly:{type:Boolean},required:{type:Boolean},name:{},id:{},label:{},description:{},errorMessage:{},warningMessage:{},successMessage:{},helperText:{},prefix:{},suffix:{},showPasswordToggle:{type:Boolean,default:!1},class:{},labelClass:{},inputClass:{},containerClass:{}},emits:["update:modelValue","update:value","focus","blur","input","change"],setup(e,{expose:t,emit:n}){const i=e,s=n,a=No.useId(),o=i.id||a,l=No.ref(!1),c=No.ref(!1),u=No.ref(),d=No.computed(()=>i.type==="password"),p=No.computed(()=>d.value?l.value?"text":"password":i.type),h=No.computed(()=>i.errorMessage?"destructive":i.warningMessage?"warning":i.successMessage?"success":"default"),y=No.computed(()=>i.errorMessage?i.errorMessage:i.warningMessage?i.warningMessage:i.successMessage?i.successMessage:i.helperText?i.helperText:""),f=No.computed(()=>i.errorMessage?lucideVueNext.AlertCircle:i.warningMessage?lucideVueNext.AlertTriangle:i.successMessage?lucideVueNext.CheckCircle:null),m=No.computed({get:()=>i.modelValue??i.value??"",set:E=>{s("update:modelValue",E),s("update:value",E)}}),C=()=>{l.value=!l.value},g=E=>{const _=E.target;m.value=_.value,s("input",E)},b=E=>{s("change",E)},v=E=>{c.value=!0,s("focus",E)},N=E=>{c.value=!1,s("blur",E)};return t({focus:()=>{No.nextTick(()=>{u.value?.focus()})},inputRef:u}),(E,_)=>(No.openBlock(),No.createElementBlock("div",{class:No.normalizeClass(No.unref(cn)("grid w-full max-w-sm gap-1.5",e.containerClass))},[e.label||E.$slots.label?(No.openBlock(),No.createElementBlock("label",{key:0,for:No.unref(o),class:No.normalizeClass(No.unref(cn)("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70",{"text-destructive":e.errorMessage,"text-orange-600":e.warningMessage,"text-green-600":e.successMessage},e.labelClass))},[No.renderSlot(E.$slots,"label",{},()=>[No.createTextVNode(No.toDisplayString(e.label),1)])],10,_hoisted_1$i)):No.createCommentVNode("",!0),No.createElementVNode("div",_hoisted_2$h,[e.prefix?(No.openBlock(),No.createElementBlock("span",{key:0,class:No.normalizeClass(No.unref(cn)("absolute left-3 top-1/2 transform -translate-y-1/2 text-sm text-muted-foreground",{"text-destructive":e.errorMessage,"text-orange-600":e.warningMessage,"text-green-600":e.successMessage}))},No.toDisplayString(e.prefix),3)):No.createCommentVNode("",!0),No.createElementVNode("input",No.mergeProps({id:No.unref(o),ref_key:"inputRef",ref:u,type:p.value,class:No.unref(cn)("flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-sm shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50",{"pl-8":e.prefix,"pr-16":d.value&&e.showPasswordToggle||f.value,"pr-12":f.value&&!(d.value&&e.showPasswordToggle),"border-destructive text-destructive focus:border-destructive":h.value==="destructive","border-orange-500 text-orange-600 focus:border-orange-500":h.value==="warning","border-green-500 text-green-600 focus:border-green-500":h.value==="success","ring-2 ring-ring ring-offset-2":c.value},e.inputClass),placeholder:e.placeholder,disabled:e.disabled,readonly:e.readonly,required:e.required,name:e.name,value:m.value,onInput:g,onChange:b,onFocus:v,onBlur:N},E.$attrs),null,16,_hoisted_3$g),f.value||d.value&&e.showPasswordToggle?(No.openBlock(),No.createElementBlock("div",_hoisted_4$d,[f.value?(No.openBlock(),No.createBlock(No.resolveDynamicComponent(f.value),{key:0,class:No.normalizeClass(No.unref(cn)("h-4 w-4",{"text-destructive":h.value==="destructive","text-orange-600":h.value==="warning","text-green-600":h.value==="success"}))},null,8,["class"])):No.createCommentVNode("",!0),d.value&&e.showPasswordToggle?(No.openBlock(),No.createElementBlock("button",{key:1,type:"button",class:No.normalizeClass(No.unref(cn)("text-muted-foreground hover:text-foreground transition-colors",{"pointer-events-none":e.disabled})),disabled:e.disabled,onClick:C,title:l.value?"Hide password":"Show password"},[l.value?(No.openBlock(),No.createBlock(No.unref(lucideVueNext.EyeOff),{key:0,class:"h-4 w-4"})):(No.openBlock(),No.createBlock(No.unref(lucideVueNext.Eye),{key:1,class:"h-4 w-4"}))],10,_hoisted_5$a)):No.createCommentVNode("",!0)])):No.createCommentVNode("",!0)]),y.value?(No.openBlock(),No.createElementBlock("p",{key:1,class:No.normalizeClass(No.unref(cn)("text-sm flex items-start gap-1",{"text-muted-foreground":!e.errorMessage&&!e.warningMessage&&!e.successMessage,"text-destructive":e.errorMessage,"text-orange-600":e.warningMessage,"text-green-600":e.successMessage}))},[f.value?(No.openBlock(),No.createBlock(No.resolveDynamicComponent(f.value),{key:0,class:"h-4 w-4 mt-0.5 flex-shrink-0"})):No.createCommentVNode("",!0),No.createElementVNode("span",null,No.toDisplayString(y.value),1)],2)):No.createCommentVNode("",!0),No.renderSlot(E.$slots,"extra")],2))}}),_hoisted_1$h={class:"grid gap-1.5"},_hoisted_2$g=["for"],_hoisted_3$f={key:2,class:"text-sm text-muted-foreground"},_sfc_main$y=No.defineComponent({__name:"NSToggle",props:{modelValue:{type:Boolean},checked:{type:Boolean},defaultChecked:{type:Boolean},disabled:{type:Boolean},required:{type:Boolean},name:{},value:{},id:{},label:{},hideLabel:{type:Boolean},description:{},leftText:{default:"Off"},rightText:{default:"On"},variant:{default:"default"},size:{default:"default"},class:{},labelClass:{},containerClass:{}},emits:["update:modelValue","update:checked"],setup(e,{emit:t}){const n=e,i=t,s=No.useId(),a=n.id||s,o=No.computed({get:()=>n.modelValue??n.checked??!1,set:u=>{i("update:modelValue",u),i("update:checked",u)}}),l=No.computed(()=>{const u="peer inline-flex h-6 w-11 shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:cursor-not-allowed disabled:opacity-50",d={default:"data-[state=checked]:bg-primary data-[state=unchecked]:bg-input",destructive:"data-[state=checked]:bg-destructive data-[state=unchecked]:bg-input",success:"data-[state=checked]:bg-green-500 data-[state=unchecked]:bg-input",warning:"data-[state=checked]:bg-orange-500 data-[state=unchecked]:bg-input"},p={default:"h-6 w-11",sm:"h-5 w-9",lg:"h-7 w-13"};return cn(u,d[n.variant],p[n.size])}),c=No.computed(()=>cn("pointer-events-none block rounded-full bg-background shadow-lg ring-0 transition-transform data-[state=checked]:translate-x-5 data-[state=unchecked]:translate-x-0",{default:"h-5 w-5 data-[state=checked]:translate-x-5",sm:"h-4 w-4 data-[state=checked]:translate-x-4",lg:"h-6 w-6 data-[state=checked]:translate-x-6"}[n.size]));return(u,d)=>(No.openBlock(),No.createElementBlock("div",{class:No.normalizeClass(No.unref(cn)("flex items-center gap-3",e.containerClass))},[No.createVNode(No.unref(gg),{id:No.unref(a),checked:o.value,"onUpdate:checked":d[0]||(d[0]=p=>o.value=p),"default-checked":e.defaultChecked,disabled:e.disabled,required:e.required,name:e.name,value:e.value,class:No.normalizeClass(l.value)},{default:No.withCtx(()=>[No.createVNode(No.unref(bg),{class:No.normalizeClass(c.value)},null,8,["class"])]),_:1},8,["id","checked","default-checked","disabled","required","name","value","class"]),No.createElementVNode("div",_hoisted_1$h,[e.label||u.$slots.label?(No.openBlock(),No.createElementBlock("label",{key:0,for:No.unref(a),class:No.normalizeClass(No.unref(cn)("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70 cursor-pointer",{"sr-only":e.hideLabel,"cursor-not-allowed":e.disabled,"text-destructive":e.variant==="destructive","text-green-600":e.variant==="success","text-orange-600":e.variant==="warning"},e.labelClass))},[No.renderSlot(u.$slots,"label",{},()=>[No.createTextVNode(No.toDisplayString(e.label),1)])],10,_hoisted_2$g)):No.createCommentVNode("",!0),!e.hideLabel&&(e.leftText||e.rightText||u.$slots["left-text"]||u.$slots["right-text"])?(No.openBlock(),No.createElementBlock("div",{key:1,class:No.normalizeClass(No.unref(cn)("flex items-center gap-2 text-xs font-medium",{"text-muted-foreground":!o.value,"text-primary":o.value,"text-destructive":e.variant==="destructive"&&o.value,"text-green-600":e.variant==="success"&&o.value,"text-orange-600":e.variant==="warning"&&o.value}))},[No.createElementVNode("span",{class:No.normalizeClass({"opacity-50":o.value})},[No.renderSlot(u.$slots,"left-text",{},()=>[No.createTextVNode(No.toDisplayString(e.leftText),1)])],2),No.createElementVNode("div",{class:No.normalizeClass(No.unref(cn)("w-8 h-px bg-current",{"opacity-20":!o.value,"opacity-100":o.value}))},null,2),No.createElementVNode("span",{class:No.normalizeClass({"opacity-50":!o.value})},[No.renderSlot(u.$slots,"right-text",{},()=>[No.createTextVNode(No.toDisplayString(e.rightText),1)])],2)],2)):No.createCommentVNode("",!0),e.description?(No.openBlock(),No.createElementBlock("p",_hoisted_3$f,No.toDisplayString(e.description),1)):No.createCommentVNode("",!0),No.renderSlot(u.$slots,"extra")])],2))}}),_hoisted_1$g={key:0,class:"flex items-center justify-center"},_hoisted_2$f=["innerHTML"],_hoisted_3$e={class:"truncate max-w-[200px]"},_hoisted_4$c=["disabled","aria-label","title"],_sfc_main$x=No.defineComponent({__name:"NSTag",props:{label:{},variant:{default:"default"},size:{default:"default"},interactive:{type:Boolean,default:!1},removable:{type:Boolean,default:!1},disabled:{type:Boolean},icon:{},clearAriaLabel:{default:"Remove tag"},title:{},class:{}},emits:["remove","click"],setup(e,{emit:t}){const n=e,i=t,s=No.computed(()=>n.interactive&&!n.disabled),a=No.computed(()=>n.removable),o=No.computed(()=>{const d="inline-flex items-center gap-1 rounded-md border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",p={default:"border-transparent bg-primary text-primary-foreground hover:bg-primary/80",secondary:"border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",destructive:"border-transparent bg-destructive text-destructive-foreground hover:bg-destructive/80",outline:"text-foreground",success:"border-transparent bg-green-500 text-white hover:bg-green-600",warning:"border-transparent bg-orange-500 text-white hover:bg-orange-600",info:"border-transparent bg-blue-500 text-white hover:bg-blue-600",gray:"border-transparent bg-gray-100 text-gray-800 hover:bg-gray-200 dark:bg-gray-800 dark:text-gray-200 dark:hover:bg-gray-700"},h={default:"px-2.5 py-0.5 text-xs",sm:"px-2 py-0.5 text-xs",lg:"px-3 py-1 text-sm"};return cn(d,p[n.variant],h[n.size],{"cursor-pointer hover:opacity-80":s.value,"opacity-50 cursor-not-allowed":disabled,"cursor-default":a.value&&!interactive},n.class)}),l=d=>{s.value&&i("click",d)},c=d=>{d.stopPropagation(),n.disabled||i("remove")},u=d=>{a.value&&(d.key==="Enter"||d.key===" ")&&(d.preventDefault(),c(d))};return(d,p)=>(No.openBlock(),No.createBlock(No.resolveDynamicComponent(s.value?"button":"div"),{class:No.normalizeClass(o.value),disabled:e.disabled,title:e.title||e.label,onClick:l,onKeydown:u,"aria-label":e.label,role:"button",tabindex:"0"},{default:No.withCtx(()=>[e.icon&&!a.value?(No.openBlock(),No.createElementBlock("div",_hoisted_1$g,[typeof e.icon=="object"?(No.openBlock(),No.createBlock(No.resolveDynamicComponent(e.icon),{key:0,class:"h-3 w-3"})):typeof e.icon=="string"?(No.openBlock(),No.createElementBlock("div",{key:1,innerHTML:e.icon,class:"h-3 w-3"},null,8,_hoisted_2$f)):No.createCommentVNode("",!0)])):No.createCommentVNode("",!0),No.createElementVNode("span",_hoisted_3$e,[No.renderSlot(d.$slots,"default",{},()=>[No.createTextVNode(No.toDisplayString(e.label),1)])]),a.value?(No.openBlock(),No.createElementBlock("button",{key:1,type:"button",class:No.normalizeClass(No.unref(cn)("flex items-center justify-center rounded-full hover:bg-black/10 dark:hover:bg-white/10 transition-colors","ml-1 -mr-1 h-4 w-4 p-0",{"opacity-50 cursor-not-allowed":e.disabled})),disabled:e.disabled,"aria-label":e.clearAriaLabel,title:e.clearAriaLabel,onClick:c},[No.createVNode(No.unref(lucideVueNext.X),{class:"h-3 w-3"})],10,_hoisted_4$c)):No.createCommentVNode("",!0)]),_:3},40,["class","disabled","title","aria-label"]))}});function getDefaultExportFromCjs(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var lottie$2={exports:{}},lottie$1=lottie$2.exports,hasRequiredLottie;function requireLottie(){return hasRequiredLottie||(hasRequiredLottie=1,(function(module,exports$1){typeof document<"u"&&typeof navigator<"u"&&(function(e,t){module.exports=t()})(lottie$1,(function(){var svgNS="http://www.w3.org/2000/svg",locationHref="",_useWebWorker=!1,initialDefaultFrame=-999999,setWebWorker=function(t){_useWebWorker=!!t},getWebWorker=function(){return _useWebWorker},setLocationHref=function(t){locationHref=t},getLocationHref=function(){return locationHref};function createTag(e){return document.createElement(e)}function extendPrototype(e,t){var n,i=e.length,s;for(n=0;n<i;n+=1){s=e[n].prototype;for(var a in s)Object.prototype.hasOwnProperty.call(s,a)&&(t.prototype[a]=s[a])}}function getDescriptor(e,t){return Object.getOwnPropertyDescriptor(e,t)}function createProxyFunction(e){function t(){}return t.prototype=e,t}var audioControllerFactory=(function(){function e(t){this.audios=[],this.audioFactory=t,this._volume=1,this._isMuted=!1}return e.prototype={addAudio:function(n){this.audios.push(n)},pause:function(){var n,i=this.audios.length;for(n=0;n<i;n+=1)this.audios[n].pause()},resume:function(){var n,i=this.audios.length;for(n=0;n<i;n+=1)this.audios[n].resume()},setRate:function(n){var i,s=this.audios.length;for(i=0;i<s;i+=1)this.audios[i].setRate(n)},createAudio:function(n){return this.audioFactory?this.audioFactory(n):window.Howl?new window.Howl({src:[n]}):{isPlaying:!1,play:function(){this.isPlaying=!0},seek:function(){this.isPlaying=!1},playing:function(){},rate:function(){},setVolume:function(){}}},setAudioFactory:function(n){this.audioFactory=n},setVolume:function(n){this._volume=n,this._updateVolume()},mute:function(){this._isMuted=!0,this._updateVolume()},unmute:function(){this._isMuted=!1,this._updateVolume()},getVolume:function(){return this._volume},_updateVolume:function(){var n,i=this.audios.length;for(n=0;n<i;n+=1)this.audios[n].volume(this._volume*(this._isMuted?0:1))}},function(){return new e}})(),createTypedArray=(function(){function e(n,i){var s=0,a=[],o;switch(n){case"int16":case"uint8c":o=1;break;default:o=1.1;break}for(s=0;s<i;s+=1)a.push(o);return a}function t(n,i){return n==="float32"?new Float32Array(i):n==="int16"?new Int16Array(i):n==="uint8c"?new Uint8ClampedArray(i):e(n,i)}return typeof Uint8ClampedArray=="function"&&typeof Float32Array=="function"?t:e})();function createSizedArray(e){return Array.apply(null,{length:e})}function _typeof$6(e){"@babel/helpers - typeof";return _typeof$6=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$6(e)}var subframeEnabled=!0,expressionsPlugin=null,expressionsInterfaces=null,idPrefix$1="",isSafari=/^((?!chrome|android).)*safari/i.test(navigator.userAgent),bmPow=Math.pow,bmSqrt=Math.sqrt,bmFloor=Math.floor,bmMax=Math.max,bmMin=Math.min,BMMath={};(function(){var e=["abs","acos","acosh","asin","asinh","atan","atanh","atan2","ceil","cbrt","expm1","clz32","cos","cosh","exp","floor","fround","hypot","imul","log","log1p","log2","log10","max","min","pow","random","round","sign","sin","sinh","sqrt","tan","tanh","trunc","E","LN10","LN2","LOG10E","LOG2E","PI","SQRT1_2","SQRT2"],t,n=e.length;for(t=0;t<n;t+=1)BMMath[e[t]]=Math[e[t]]})(),BMMath.random=Math.random,BMMath.abs=function(e){var t=_typeof$6(e);if(t==="object"&&e.length){var n=createSizedArray(e.length),i,s=e.length;for(i=0;i<s;i+=1)n[i]=Math.abs(e[i]);return n}return Math.abs(e)};var defaultCurveSegments=150,degToRads=Math.PI/180,roundCorner=.5519;function styleDiv(e){e.style.position="absolute",e.style.top=0,e.style.left=0,e.style.display="block",e.style.transformOrigin="0 0",e.style.webkitTransformOrigin="0 0",e.style.backfaceVisibility="visible",e.style.webkitBackfaceVisibility="visible",e.style.transformStyle="preserve-3d",e.style.webkitTransformStyle="preserve-3d",e.style.mozTransformStyle="preserve-3d"}function BMEnterFrameEvent(e,t,n,i){this.type=e,this.currentTime=t,this.totalTime=n,this.direction=i<0?-1:1}function BMCompleteEvent(e,t){this.type=e,this.direction=t<0?-1:1}function BMCompleteLoopEvent(e,t,n,i){this.type=e,this.currentLoop=n,this.totalLoops=t,this.direction=i<0?-1:1}function BMSegmentStartEvent(e,t,n){this.type=e,this.firstFrame=t,this.totalFrames=n}function BMDestroyEvent(e,t){this.type=e,this.target=t}function BMRenderFrameErrorEvent(e,t){this.type="renderFrameError",this.nativeError=e,this.currentTime=t}function BMConfigErrorEvent(e){this.type="configError",this.nativeError=e}var createElementID=(function(){var e=0;return function(){return e+=1,idPrefix$1+"__lottie_element_"+e}})();function HSVtoRGB(e,t,n){var i,s,a,o,l,c,u,d;switch(o=Math.floor(e*6),l=e*6-o,c=n*(1-t),u=n*(1-l*t),d=n*(1-(1-l)*t),o%6){case 0:i=n,s=d,a=c;break;case 1:i=u,s=n,a=c;break;case 2:i=c,s=n,a=d;break;case 3:i=c,s=u,a=n;break;case 4:i=d,s=c,a=n;break;case 5:i=n,s=c,a=u;break}return[i,s,a]}function RGBtoHSV(e,t,n){var i=Math.max(e,t,n),s=Math.min(e,t,n),a=i-s,o,l=i===0?0:a/i,c=i/255;switch(i){case s:o=0;break;case e:o=t-n+a*(t<n?6:0),o/=6*a;break;case t:o=n-e+a*2,o/=6*a;break;case n:o=e-t+a*4,o/=6*a;break}return[o,l,c]}function addSaturationToRGB(e,t){var n=RGBtoHSV(e[0]*255,e[1]*255,e[2]*255);return n[1]+=t,n[1]>1?n[1]=1:n[1]<=0&&(n[1]=0),HSVtoRGB(n[0],n[1],n[2])}function addBrightnessToRGB(e,t){var n=RGBtoHSV(e[0]*255,e[1]*255,e[2]*255);return n[2]+=t,n[2]>1?n[2]=1:n[2]<0&&(n[2]=0),HSVtoRGB(n[0],n[1],n[2])}function addHueToRGB(e,t){var n=RGBtoHSV(e[0]*255,e[1]*255,e[2]*255);return n[0]+=t/360,n[0]>1?n[0]-=1:n[0]<0&&(n[0]+=1),HSVtoRGB(n[0],n[1],n[2])}var rgbToHex=(function(){var e=[],t,n;for(t=0;t<256;t+=1)n=t.toString(16),e[t]=n.length===1?"0"+n:n;return function(i,s,a){return i<0&&(i=0),s<0&&(s=0),a<0&&(a=0),"#"+e[i]+e[s]+e[a]}})(),setSubframeEnabled=function(t){subframeEnabled=!!t},getSubframeEnabled=function(){return subframeEnabled},setExpressionsPlugin=function(t){expressionsPlugin=t},getExpressionsPlugin=function(){return expressionsPlugin},setExpressionInterfaces=function(t){expressionsInterfaces=t},getExpressionInterfaces=function(){return expressionsInterfaces},setDefaultCurveSegments=function(t){defaultCurveSegments=t},getDefaultCurveSegments=function(){return defaultCurveSegments},setIdPrefix=function(t){idPrefix$1=t};function createNS(e){return document.createElementNS(svgNS,e)}function _typeof$5(e){"@babel/helpers - typeof";return _typeof$5=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$5(e)}var dataManager=(function(){var e=1,t=[],n,i,s={onmessage:function(){},postMessage:function(y){n({data:y})}},a={postMessage:function(y){s.onmessage({data:y})}};function o(h){if(window.Worker&&window.Blob&&getWebWorker()){var y=new Blob(["var _workerSelf = self; self.onmessage = ",h.toString()],{type:"text/javascript"}),f=URL.createObjectURL(y);return new Worker(f)}return n=h,s}function l(){i||(i=o(function(y){function f(){function C($,P){var T,x,S=$.length,M,V,z,G;for(x=0;x<S;x+=1)if(T=$[x],"ks"in T&&!T.completed){if(T.completed=!0,T.hasMask){var H=T.masksProperties;for(V=H.length,M=0;M<V;M+=1)if(H[M].pt.k.i)w(H[M].pt.k);else for(G=H[M].pt.k.length,z=0;z<G;z+=1)H[M].pt.k[z].s&&w(H[M].pt.k[z].s[0]),H[M].pt.k[z].e&&w(H[M].pt.k[z].e[0])}T.ty===0?(T.layers=v(T.refId,P),C(T.layers,P)):T.ty===4?N(T.shapes):T.ty===5&&D(T)}}function g($,P){if($){var T=0,x=$.length;for(T=0;T<x;T+=1)$[T].t===1&&($[T].data.layers=v($[T].data.refId,P),C($[T].data.layers,P))}}function b($,P){for(var T=0,x=P.length;T<x;){if(P[T].id===$)return P[T];T+=1}return null}function v($,P){var T=b($,P);return T?T.layers.__used?JSON.parse(JSON.stringify(T.layers)):(T.layers.__used=!0,T.layers):null}function N($){var P,T=$.length,x,S;for(P=T-1;P>=0;P-=1)if($[P].ty==="sh")if($[P].ks.k.i)w($[P].ks.k);else for(S=$[P].ks.k.length,x=0;x<S;x+=1)$[P].ks.k[x].s&&w($[P].ks.k[x].s[0]),$[P].ks.k[x].e&&w($[P].ks.k[x].e[0]);else $[P].ty==="gr"&&N($[P].it)}function w($){var P,T=$.i.length;for(P=0;P<T;P+=1)$.i[P][0]+=$.v[P][0],$.i[P][1]+=$.v[P][1],$.o[P][0]+=$.v[P][0],$.o[P][1]+=$.v[P][1]}function E($,P){var T=P?P.split("."):[100,100,100];return $[0]>T[0]?!0:T[0]>$[0]?!1:$[1]>T[1]?!0:T[1]>$[1]?!1:$[2]>T[2]?!0:T[2]>$[2]?!1:null}var _=(function(){var $=[4,4,14];function P(x){var S=x.t.d;x.t.d={k:[{s:S,t:0}]}}function T(x){var S,M=x.length;for(S=0;S<M;S+=1)x[S].ty===5&&P(x[S])}return function(x){if(E($,x.v)&&(T(x.layers),x.assets)){var S,M=x.assets.length;for(S=0;S<M;S+=1)x.assets[S].layers&&T(x.assets[S].layers)}}})(),k=(function(){var $=[4,7,99];return function(P){if(P.chars&&!E($,P.v)){var T,x=P.chars.length;for(T=0;T<x;T+=1){var S=P.chars[T];S.data&&S.data.shapes&&(N(S.data.shapes),S.data.ip=0,S.data.op=99999,S.data.st=0,S.data.sr=1,S.data.ks={p:{k:[0,0],a:0},s:{k:[100,100],a:0},a:{k:[0,0],a:0},r:{k:0,a:0},o:{k:100,a:0}},P.chars[T].t||(S.data.shapes.push({ty:"no"}),S.data.shapes[0].it.push({p:{k:[0,0],a:0},s:{k:[100,100],a:0},a:{k:[0,0],a:0},r:{k:0,a:0},o:{k:100,a:0},sk:{k:0,a:0},sa:{k:0,a:0},ty:"tr"})))}}}})(),A=(function(){var $=[5,7,15];function P(x){var S=x.t.p;typeof S.a=="number"&&(S.a={a:0,k:S.a}),typeof S.p=="number"&&(S.p={a:0,k:S.p}),typeof S.r=="number"&&(S.r={a:0,k:S.r})}function T(x){var S,M=x.length;for(S=0;S<M;S+=1)x[S].ty===5&&P(x[S])}return function(x){if(E($,x.v)&&(T(x.layers),x.assets)){var S,M=x.assets.length;for(S=0;S<M;S+=1)x.assets[S].layers&&T(x.assets[S].layers)}}})(),F=(function(){var $=[4,1,9];function P(x){var S,M=x.length,V,z;for(S=0;S<M;S+=1)if(x[S].ty==="gr")P(x[S].it);else if(x[S].ty==="fl"||x[S].ty==="st")if(x[S].c.k&&x[S].c.k[0].i)for(z=x[S].c.k.length,V=0;V<z;V+=1)x[S].c.k[V].s&&(x[S].c.k[V].s[0]/=255,x[S].c.k[V].s[1]/=255,x[S].c.k[V].s[2]/=255,x[S].c.k[V].s[3]/=255),x[S].c.k[V].e&&(x[S].c.k[V].e[0]/=255,x[S].c.k[V].e[1]/=255,x[S].c.k[V].e[2]/=255,x[S].c.k[V].e[3]/=255);else x[S].c.k[0]/=255,x[S].c.k[1]/=255,x[S].c.k[2]/=255,x[S].c.k[3]/=255}function T(x){var S,M=x.length;for(S=0;S<M;S+=1)x[S].ty===4&&P(x[S].shapes)}return function(x){if(E($,x.v)&&(T(x.layers),x.assets)){var S,M=x.assets.length;for(S=0;S<M;S+=1)x.assets[S].layers&&T(x.assets[S].layers)}}})(),B=(function(){var $=[4,4,18];function P(x){var S,M=x.length,V,z;for(S=M-1;S>=0;S-=1)if(x[S].ty==="sh")if(x[S].ks.k.i)x[S].ks.k.c=x[S].closed;else for(z=x[S].ks.k.length,V=0;V<z;V+=1)x[S].ks.k[V].s&&(x[S].ks.k[V].s[0].c=x[S].closed),x[S].ks.k[V].e&&(x[S].ks.k[V].e[0].c=x[S].closed);else x[S].ty==="gr"&&P(x[S].it)}function T(x){var S,M,V=x.length,z,G,H,W;for(M=0;M<V;M+=1){if(S=x[M],S.hasMask){var q=S.masksProperties;for(G=q.length,z=0;z<G;z+=1)if(q[z].pt.k.i)q[z].pt.k.c=q[z].cl;else for(W=q[z].pt.k.length,H=0;H<W;H+=1)q[z].pt.k[H].s&&(q[z].pt.k[H].s[0].c=q[z].cl),q[z].pt.k[H].e&&(q[z].pt.k[H].e[0].c=q[z].cl)}S.ty===4&&P(S.shapes)}}return function(x){if(E($,x.v)&&(T(x.layers),x.assets)){var S,M=x.assets.length;for(S=0;S<M;S+=1)x.assets[S].layers&&T(x.assets[S].layers)}}})();function I($){$.__complete||(F($),_($),k($),A($),B($),C($.layers,$.assets),g($.chars,$.assets),$.__complete=!0)}function D($){$.t.a.length===0&&"m"in $.t.p}var L={};return L.completeData=I,L.checkColors=F,L.checkChars=k,L.checkPathProperties=A,L.checkShapes=B,L.completeLayers=C,L}if(a.dataManager||(a.dataManager=f()),a.assetLoader||(a.assetLoader=(function(){function C(b){var v=b.getResponseHeader("content-type");return v&&b.responseType==="json"&&v.indexOf("json")!==-1||b.response&&_typeof$5(b.response)==="object"?b.response:b.response&&typeof b.response=="string"?JSON.parse(b.response):b.responseText?JSON.parse(b.responseText):null}function g(b,v,N,w){var E,_=new XMLHttpRequest;try{_.responseType="json"}catch{}_.onreadystatechange=function(){if(_.readyState===4)if(_.status===200)E=C(_),N(E);else try{E=C(_),N(E)}catch(k){w&&w(k)}};try{_.open(["G","E","T"].join(""),b,!0)}catch{_.open(["G","E","T"].join(""),v+"/"+b,!0)}_.send()}return{load:g}})()),y.data.type==="loadAnimation")a.assetLoader.load(y.data.path,y.data.fullPath,function(C){a.dataManager.completeData(C),a.postMessage({id:y.data.id,payload:C,status:"success"})},function(){a.postMessage({id:y.data.id,status:"error"})});else if(y.data.type==="complete"){var m=y.data.animation;a.dataManager.completeData(m),a.postMessage({id:y.data.id,payload:m,status:"success"})}else y.data.type==="loadData"&&a.assetLoader.load(y.data.path,y.data.fullPath,function(C){a.postMessage({id:y.data.id,payload:C,status:"success"})},function(){a.postMessage({id:y.data.id,status:"error"})})}),i.onmessage=function(h){var y=h.data,f=y.id,m=t[f];t[f]=null,y.status==="success"?m.onComplete(y.payload):m.onError&&m.onError()})}function c(h,y){e+=1;var f="processId_"+e;return t[f]={onComplete:h,onError:y},f}function u(h,y,f){l();var m=c(y,f);i.postMessage({type:"loadAnimation",path:h,fullPath:window.location.origin+window.location.pathname,id:m})}function d(h,y,f){l();var m=c(y,f);i.postMessage({type:"loadData",path:h,fullPath:window.location.origin+window.location.pathname,id:m})}function p(h,y,f){l();var m=c(y,f);i.postMessage({type:"complete",animation:h,id:m})}return{loadAnimation:u,loadData:d,completeAnimation:p}})(),ImagePreloader=(function(){var e=(function(){var g=createTag("canvas");g.width=1,g.height=1;var b=g.getContext("2d");return b.fillStyle="rgba(0,0,0,0)",b.fillRect(0,0,1,1),g})();function t(){this.loadedAssets+=1,this.loadedAssets===this.totalImages&&this.loadedFootagesCount===this.totalFootages&&this.imagesLoadedCb&&this.imagesLoadedCb(null)}function n(){this.loadedFootagesCount+=1,this.loadedAssets===this.totalImages&&this.loadedFootagesCount===this.totalFootages&&this.imagesLoadedCb&&this.imagesLoadedCb(null)}function i(g,b,v){var N="";if(g.e)N=g.p;else if(b){var w=g.p;w.indexOf("images/")!==-1&&(w=w.split("/")[1]),N=b+w}else N=v,N+=g.u?g.u:"",N+=g.p;return N}function s(g){var b=0,v=setInterval((function(){var N=g.getBBox();(N.width||b>500)&&(this._imageLoaded(),clearInterval(v)),b+=1}).bind(this),50)}function a(g){var b=i(g,this.assetsPath,this.path),v=createNS("image");isSafari?this.testImageLoaded(v):v.addEventListener("load",this._imageLoaded,!1),v.addEventListener("error",(function(){N.img=e,this._imageLoaded()}).bind(this),!1),v.setAttributeNS("http://www.w3.org/1999/xlink","href",b),this._elementHelper.append?this._elementHelper.append(v):this._elementHelper.appendChild(v);var N={img:v,assetData:g};return N}function o(g){var b=i(g,this.assetsPath,this.path),v=createTag("img");v.crossOrigin="anonymous",v.addEventListener("load",this._imageLoaded,!1),v.addEventListener("error",(function(){N.img=e,this._imageLoaded()}).bind(this),!1),v.src=b;var N={img:v,assetData:g};return N}function l(g){var b={assetData:g},v=i(g,this.assetsPath,this.path);return dataManager.loadData(v,(function(N){b.img=N,this._footageLoaded()}).bind(this),(function(){b.img={},this._footageLoaded()}).bind(this)),b}function c(g,b){this.imagesLoadedCb=b;var v,N=g.length;for(v=0;v<N;v+=1)g[v].layers||(!g[v].t||g[v].t==="seq"?(this.totalImages+=1,this.images.push(this._createImageData(g[v]))):g[v].t===3&&(this.totalFootages+=1,this.images.push(this.createFootageData(g[v]))))}function u(g){this.path=g||""}function d(g){this.assetsPath=g||""}function p(g){for(var b=0,v=this.images.length;b<v;){if(this.images[b].assetData===g)return this.images[b].img;b+=1}return null}function h(){this.imagesLoadedCb=null,this.images.length=0}function y(){return this.totalImages===this.loadedAssets}function f(){return this.totalFootages===this.loadedFootagesCount}function m(g,b){g==="svg"?(this._elementHelper=b,this._createImageData=this.createImageData.bind(this)):this._createImageData=this.createImgData.bind(this)}function C(){this._imageLoaded=t.bind(this),this._footageLoaded=n.bind(this),this.testImageLoaded=s.bind(this),this.createFootageData=l.bind(this),this.assetsPath="",this.path="",this.totalImages=0,this.totalFootages=0,this.loadedAssets=0,this.loadedFootagesCount=0,this.imagesLoadedCb=null,this.images=[]}return C.prototype={loadAssets:c,setAssetsPath:d,setPath:u,loadedImages:y,loadedFootages:f,destroy:h,getAsset:p,createImgData:o,createImageData:a,imageLoaded:t,footageLoaded:n,setCacheType:m},C})();function BaseEvent(){}BaseEvent.prototype={triggerEvent:function(t,n){if(this._cbs[t])for(var i=this._cbs[t],s=0;s<i.length;s+=1)i[s](n)},addEventListener:function(t,n){return this._cbs[t]||(this._cbs[t]=[]),this._cbs[t].push(n),(function(){this.removeEventListener(t,n)}).bind(this)},removeEventListener:function(t,n){if(!n)this._cbs[t]=null;else if(this._cbs[t]){for(var i=0,s=this._cbs[t].length;i<s;)this._cbs[t][i]===n&&(this._cbs[t].splice(i,1),i-=1,s-=1),i+=1;this._cbs[t].length||(this._cbs[t]=null)}}};var markerParser=(function(){function e(t){for(var n=t.split(`\r
|
|
8
|
+
`),i={},s,a=0,o=0;o<n.length;o+=1)s=n[o].split(":"),s.length===2&&(i[s[0]]=s[1].trim(),a+=1);if(a===0)throw new Error;return i}return function(t){for(var n=[],i=0;i<t.length;i+=1){var s=t[i],a={time:s.tm,duration:s.dr};try{a.payload=JSON.parse(t[i].cm)}catch{try{a.payload=e(t[i].cm)}catch{a.payload={name:t[i].cm}}}n.push(a)}return n}})(),ProjectInterface=(function(){function e(t){this.compositions.push(t)}return function(){function t(n){for(var i=0,s=this.compositions.length;i<s;){if(this.compositions[i].data&&this.compositions[i].data.nm===n)return this.compositions[i].prepareFrame&&this.compositions[i].data.xt&&this.compositions[i].prepareFrame(this.currentFrame),this.compositions[i].compInterface;i+=1}return null}return t.compositions=[],t.currentFrame=0,t.registerComposition=e,t}})(),renderers={},registerRenderer=function(t,n){renderers[t]=n};function getRenderer(e){return renderers[e]}function getRegisteredRenderer(){if(renderers.canvas)return"canvas";for(var e in renderers)if(renderers[e])return e;return""}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)}var AnimationItem=function(){this._cbs=[],this.name="",this.path="",this.isLoaded=!1,this.currentFrame=0,this.currentRawFrame=0,this.firstFrame=0,this.totalFrames=0,this.frameRate=0,this.frameMult=0,this.playSpeed=1,this.playDirection=1,this.playCount=0,this.animationData={},this.assets=[],this.isPaused=!0,this.autoplay=!1,this.loop=!0,this.renderer=null,this.animationID=createElementID(),this.assetsPath="",this.timeCompleted=0,this.segmentPos=0,this.isSubframeEnabled=getSubframeEnabled(),this.segments=[],this._idle=!0,this._completedLoop=!1,this.projectInterface=ProjectInterface(),this.imagePreloader=new ImagePreloader,this.audioController=audioControllerFactory(),this.markers=[],this.configAnimation=this.configAnimation.bind(this),this.onSetupError=this.onSetupError.bind(this),this.onSegmentComplete=this.onSegmentComplete.bind(this),this.drawnFrameEvent=new BMEnterFrameEvent("drawnFrame",0,0,0),this.expressionsPlugin=getExpressionsPlugin()};extendPrototype([BaseEvent],AnimationItem),AnimationItem.prototype.setParams=function(e){(e.wrapper||e.container)&&(this.wrapper=e.wrapper||e.container);var t="svg";e.animType?t=e.animType:e.renderer&&(t=e.renderer);var n=getRenderer(t);this.renderer=new n(this,e.rendererSettings),this.imagePreloader.setCacheType(t,this.renderer.globalData.defs),this.renderer.setProjectInterface(this.projectInterface),this.animType=t,e.loop===""||e.loop===null||e.loop===void 0||e.loop===!0?this.loop=!0:e.loop===!1?this.loop=!1:this.loop=parseInt(e.loop,10),this.autoplay="autoplay"in e?e.autoplay:!0,this.name=e.name?e.name:"",this.autoloadSegments=Object.prototype.hasOwnProperty.call(e,"autoloadSegments")?e.autoloadSegments:!0,this.assetsPath=e.assetsPath,this.initialSegment=e.initialSegment,e.audioFactory&&this.audioController.setAudioFactory(e.audioFactory),e.animationData?this.setupAnimation(e.animationData):e.path&&(e.path.lastIndexOf("\\")!==-1?this.path=e.path.substr(0,e.path.lastIndexOf("\\")+1):this.path=e.path.substr(0,e.path.lastIndexOf("/")+1),this.fileName=e.path.substr(e.path.lastIndexOf("/")+1),this.fileName=this.fileName.substr(0,this.fileName.lastIndexOf(".json")),dataManager.loadAnimation(e.path,this.configAnimation,this.onSetupError))},AnimationItem.prototype.onSetupError=function(){this.trigger("data_failed")},AnimationItem.prototype.setupAnimation=function(e){dataManager.completeAnimation(e,this.configAnimation)},AnimationItem.prototype.setData=function(e,t){t&&_typeof$4(t)!=="object"&&(t=JSON.parse(t));var n={wrapper:e,animationData:t},i=e.attributes;n.path=i.getNamedItem("data-animation-path")?i.getNamedItem("data-animation-path").value:i.getNamedItem("data-bm-path")?i.getNamedItem("data-bm-path").value:i.getNamedItem("bm-path")?i.getNamedItem("bm-path").value:"",n.animType=i.getNamedItem("data-anim-type")?i.getNamedItem("data-anim-type").value:i.getNamedItem("data-bm-type")?i.getNamedItem("data-bm-type").value:i.getNamedItem("bm-type")?i.getNamedItem("bm-type").value:i.getNamedItem("data-bm-renderer")?i.getNamedItem("data-bm-renderer").value:i.getNamedItem("bm-renderer")?i.getNamedItem("bm-renderer").value:getRegisteredRenderer()||"canvas";var s=i.getNamedItem("data-anim-loop")?i.getNamedItem("data-anim-loop").value:i.getNamedItem("data-bm-loop")?i.getNamedItem("data-bm-loop").value:i.getNamedItem("bm-loop")?i.getNamedItem("bm-loop").value:"";s==="false"?n.loop=!1:s==="true"?n.loop=!0:s!==""&&(n.loop=parseInt(s,10));var a=i.getNamedItem("data-anim-autoplay")?i.getNamedItem("data-anim-autoplay").value:i.getNamedItem("data-bm-autoplay")?i.getNamedItem("data-bm-autoplay").value:i.getNamedItem("bm-autoplay")?i.getNamedItem("bm-autoplay").value:!0;n.autoplay=a!=="false",n.name=i.getNamedItem("data-name")?i.getNamedItem("data-name").value:i.getNamedItem("data-bm-name")?i.getNamedItem("data-bm-name").value:i.getNamedItem("bm-name")?i.getNamedItem("bm-name").value:"";var o=i.getNamedItem("data-anim-prerender")?i.getNamedItem("data-anim-prerender").value:i.getNamedItem("data-bm-prerender")?i.getNamedItem("data-bm-prerender").value:i.getNamedItem("bm-prerender")?i.getNamedItem("bm-prerender").value:"";o==="false"&&(n.prerender=!1),n.path?this.setParams(n):this.trigger("destroy")},AnimationItem.prototype.includeLayers=function(e){e.op>this.animationData.op&&(this.animationData.op=e.op,this.totalFrames=Math.floor(e.op-this.animationData.ip));var t=this.animationData.layers,n,i=t.length,s=e.layers,a,o=s.length;for(a=0;a<o;a+=1)for(n=0;n<i;){if(t[n].id===s[a].id){t[n]=s[a];break}n+=1}if((e.chars||e.fonts)&&(this.renderer.globalData.fontManager.addChars(e.chars),this.renderer.globalData.fontManager.addFonts(e.fonts,this.renderer.globalData.defs)),e.assets)for(i=e.assets.length,n=0;n<i;n+=1)this.animationData.assets.push(e.assets[n]);this.animationData.__complete=!1,dataManager.completeAnimation(this.animationData,this.onSegmentComplete)},AnimationItem.prototype.onSegmentComplete=function(e){this.animationData=e;var t=getExpressionsPlugin();t&&t.initExpressions(this),this.loadNextSegment()},AnimationItem.prototype.loadNextSegment=function(){var e=this.animationData.segments;if(!e||e.length===0||!this.autoloadSegments){this.trigger("data_ready"),this.timeCompleted=this.totalFrames;return}var t=e.shift();this.timeCompleted=t.time*this.frameRate;var n=this.path+this.fileName+"_"+this.segmentPos+".json";this.segmentPos+=1,dataManager.loadData(n,this.includeLayers.bind(this),(function(){this.trigger("data_failed")}).bind(this))},AnimationItem.prototype.loadSegments=function(){var e=this.animationData.segments;e||(this.timeCompleted=this.totalFrames),this.loadNextSegment()},AnimationItem.prototype.imagesLoaded=function(){this.trigger("loaded_images"),this.checkLoaded()},AnimationItem.prototype.preloadImages=function(){this.imagePreloader.setAssetsPath(this.assetsPath),this.imagePreloader.setPath(this.path),this.imagePreloader.loadAssets(this.animationData.assets,this.imagesLoaded.bind(this))},AnimationItem.prototype.configAnimation=function(e){if(this.renderer)try{this.animationData=e,this.initialSegment?(this.totalFrames=Math.floor(this.initialSegment[1]-this.initialSegment[0]),this.firstFrame=Math.round(this.initialSegment[0])):(this.totalFrames=Math.floor(this.animationData.op-this.animationData.ip),this.firstFrame=Math.round(this.animationData.ip)),this.renderer.configAnimation(e),e.assets||(e.assets=[]),this.assets=this.animationData.assets,this.frameRate=this.animationData.fr,this.frameMult=this.animationData.fr/1e3,this.renderer.searchExtraCompositions(e.assets),this.markers=markerParser(e.markers||[]),this.trigger("config_ready"),this.preloadImages(),this.loadSegments(),this.updaFrameModifier(),this.waitForFontsLoaded(),this.isPaused&&this.audioController.pause()}catch(t){this.triggerConfigError(t)}},AnimationItem.prototype.waitForFontsLoaded=function(){this.renderer&&(this.renderer.globalData.fontManager.isLoaded?this.checkLoaded():setTimeout(this.waitForFontsLoaded.bind(this),20))},AnimationItem.prototype.checkLoaded=function(){if(!this.isLoaded&&this.renderer.globalData.fontManager.isLoaded&&(this.imagePreloader.loadedImages()||this.renderer.rendererType!=="canvas")&&this.imagePreloader.loadedFootages()){this.isLoaded=!0;var e=getExpressionsPlugin();e&&e.initExpressions(this),this.renderer.initItems(),setTimeout((function(){this.trigger("DOMLoaded")}).bind(this),0),this.gotoFrame(),this.autoplay&&this.play()}},AnimationItem.prototype.resize=function(e,t){var n=typeof e=="number"?e:void 0,i=typeof t=="number"?t:void 0;this.renderer.updateContainerSize(n,i)},AnimationItem.prototype.setSubframe=function(e){this.isSubframeEnabled=!!e},AnimationItem.prototype.gotoFrame=function(){this.currentFrame=this.isSubframeEnabled?this.currentRawFrame:~~this.currentRawFrame,this.timeCompleted!==this.totalFrames&&this.currentFrame>this.timeCompleted&&(this.currentFrame=this.timeCompleted),this.trigger("enterFrame"),this.renderFrame(),this.trigger("drawnFrame")},AnimationItem.prototype.renderFrame=function(){if(!(this.isLoaded===!1||!this.renderer))try{this.expressionsPlugin&&this.expressionsPlugin.resetFrame(),this.renderer.renderFrame(this.currentFrame+this.firstFrame)}catch(e){this.triggerRenderFrameError(e)}},AnimationItem.prototype.play=function(e){e&&this.name!==e||this.isPaused===!0&&(this.isPaused=!1,this.trigger("_play"),this.audioController.resume(),this._idle&&(this._idle=!1,this.trigger("_active")))},AnimationItem.prototype.pause=function(e){e&&this.name!==e||this.isPaused===!1&&(this.isPaused=!0,this.trigger("_pause"),this._idle=!0,this.trigger("_idle"),this.audioController.pause())},AnimationItem.prototype.togglePause=function(e){e&&this.name!==e||(this.isPaused===!0?this.play():this.pause())},AnimationItem.prototype.stop=function(e){e&&this.name!==e||(this.pause(),this.playCount=0,this._completedLoop=!1,this.setCurrentRawFrameValue(0))},AnimationItem.prototype.getMarkerData=function(e){for(var t,n=0;n<this.markers.length;n+=1)if(t=this.markers[n],t.payload&&t.payload.name===e)return t;return null},AnimationItem.prototype.goToAndStop=function(e,t,n){if(!(n&&this.name!==n)){var i=Number(e);if(isNaN(i)){var s=this.getMarkerData(e);s&&this.goToAndStop(s.time,!0)}else t?this.setCurrentRawFrameValue(e):this.setCurrentRawFrameValue(e*this.frameModifier);this.pause()}},AnimationItem.prototype.goToAndPlay=function(e,t,n){if(!(n&&this.name!==n)){var i=Number(e);if(isNaN(i)){var s=this.getMarkerData(e);s&&(s.duration?this.playSegments([s.time,s.time+s.duration],!0):this.goToAndStop(s.time,!0))}else this.goToAndStop(i,t,n);this.play()}},AnimationItem.prototype.advanceTime=function(e){if(!(this.isPaused===!0||this.isLoaded===!1)){var t=this.currentRawFrame+e*this.frameModifier,n=!1;t>=this.totalFrames-1&&this.frameModifier>0?!this.loop||this.playCount===this.loop?this.checkSegments(t>this.totalFrames?t%this.totalFrames:0)||(n=!0,t=this.totalFrames-1):t>=this.totalFrames?(this.playCount+=1,this.checkSegments(t%this.totalFrames)||(this.setCurrentRawFrameValue(t%this.totalFrames),this._completedLoop=!0,this.trigger("loopComplete"))):this.setCurrentRawFrameValue(t):t<0?this.checkSegments(t%this.totalFrames)||(this.loop&&!(this.playCount--<=0&&this.loop!==!0)?(this.setCurrentRawFrameValue(this.totalFrames+t%this.totalFrames),this._completedLoop?this.trigger("loopComplete"):this._completedLoop=!0):(n=!0,t=0)):this.setCurrentRawFrameValue(t),n&&(this.setCurrentRawFrameValue(t),this.pause(),this.trigger("complete"))}},AnimationItem.prototype.adjustSegment=function(e,t){this.playCount=0,e[1]<e[0]?(this.frameModifier>0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(-1)),this.totalFrames=e[0]-e[1],this.timeCompleted=this.totalFrames,this.firstFrame=e[1],this.setCurrentRawFrameValue(this.totalFrames-.001-t)):e[1]>e[0]&&(this.frameModifier<0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(1)),this.totalFrames=e[1]-e[0],this.timeCompleted=this.totalFrames,this.firstFrame=e[0],this.setCurrentRawFrameValue(.001+t)),this.trigger("segmentStart")},AnimationItem.prototype.setSegment=function(e,t){var n=-1;this.isPaused&&(this.currentRawFrame+this.firstFrame<e?n=e:this.currentRawFrame+this.firstFrame>t&&(n=t-e)),this.firstFrame=e,this.totalFrames=t-e,this.timeCompleted=this.totalFrames,n!==-1&&this.goToAndStop(n,!0)},AnimationItem.prototype.playSegments=function(e,t){if(t&&(this.segments.length=0),_typeof$4(e[0])==="object"){var n,i=e.length;for(n=0;n<i;n+=1)this.segments.push(e[n])}else this.segments.push(e);this.segments.length&&t&&this.adjustSegment(this.segments.shift(),0),this.isPaused&&this.play()},AnimationItem.prototype.resetSegments=function(e){this.segments.length=0,this.segments.push([this.animationData.ip,this.animationData.op]),e&&this.checkSegments(0)},AnimationItem.prototype.checkSegments=function(e){return this.segments.length?(this.adjustSegment(this.segments.shift(),e),!0):!1},AnimationItem.prototype.destroy=function(e){e&&this.name!==e||!this.renderer||(this.renderer.destroy(),this.imagePreloader.destroy(),this.trigger("destroy"),this._cbs=null,this.onEnterFrame=null,this.onLoopComplete=null,this.onComplete=null,this.onSegmentStart=null,this.onDestroy=null,this.renderer=null,this.expressionsPlugin=null,this.imagePreloader=null,this.projectInterface=null)},AnimationItem.prototype.setCurrentRawFrameValue=function(e){this.currentRawFrame=e,this.gotoFrame()},AnimationItem.prototype.setSpeed=function(e){this.playSpeed=e,this.updaFrameModifier()},AnimationItem.prototype.setDirection=function(e){this.playDirection=e<0?-1:1,this.updaFrameModifier()},AnimationItem.prototype.setLoop=function(e){this.loop=e},AnimationItem.prototype.setVolume=function(e,t){t&&this.name!==t||this.audioController.setVolume(e)},AnimationItem.prototype.getVolume=function(){return this.audioController.getVolume()},AnimationItem.prototype.mute=function(e){e&&this.name!==e||this.audioController.mute()},AnimationItem.prototype.unmute=function(e){e&&this.name!==e||this.audioController.unmute()},AnimationItem.prototype.updaFrameModifier=function(){this.frameModifier=this.frameMult*this.playSpeed*this.playDirection,this.audioController.setRate(this.playSpeed*this.playDirection)},AnimationItem.prototype.getPath=function(){return this.path},AnimationItem.prototype.getAssetsPath=function(e){var t="";if(e.e)t=e.p;else if(this.assetsPath){var n=e.p;n.indexOf("images/")!==-1&&(n=n.split("/")[1]),t=this.assetsPath+n}else t=this.path,t+=e.u?e.u:"",t+=e.p;return t},AnimationItem.prototype.getAssetData=function(e){for(var t=0,n=this.assets.length;t<n;){if(e===this.assets[t].id)return this.assets[t];t+=1}return null},AnimationItem.prototype.hide=function(){this.renderer.hide()},AnimationItem.prototype.show=function(){this.renderer.show()},AnimationItem.prototype.getDuration=function(e){return e?this.totalFrames:this.totalFrames/this.frameRate},AnimationItem.prototype.updateDocumentData=function(e,t,n){try{var i=this.renderer.getElementByPath(e);i.updateDocumentData(t,n)}catch{}},AnimationItem.prototype.trigger=function(e){if(this._cbs&&this._cbs[e])switch(e){case"enterFrame":this.triggerEvent(e,new BMEnterFrameEvent(e,this.currentFrame,this.totalFrames,this.frameModifier));break;case"drawnFrame":this.drawnFrameEvent.currentTime=this.currentFrame,this.drawnFrameEvent.totalTime=this.totalFrames,this.drawnFrameEvent.direction=this.frameModifier,this.triggerEvent(e,this.drawnFrameEvent);break;case"loopComplete":this.triggerEvent(e,new BMCompleteLoopEvent(e,this.loop,this.playCount,this.frameMult));break;case"complete":this.triggerEvent(e,new BMCompleteEvent(e,this.frameMult));break;case"segmentStart":this.triggerEvent(e,new BMSegmentStartEvent(e,this.firstFrame,this.totalFrames));break;case"destroy":this.triggerEvent(e,new BMDestroyEvent(e,this));break;default:this.triggerEvent(e)}e==="enterFrame"&&this.onEnterFrame&&this.onEnterFrame.call(this,new BMEnterFrameEvent(e,this.currentFrame,this.totalFrames,this.frameMult)),e==="loopComplete"&&this.onLoopComplete&&this.onLoopComplete.call(this,new BMCompleteLoopEvent(e,this.loop,this.playCount,this.frameMult)),e==="complete"&&this.onComplete&&this.onComplete.call(this,new BMCompleteEvent(e,this.frameMult)),e==="segmentStart"&&this.onSegmentStart&&this.onSegmentStart.call(this,new BMSegmentStartEvent(e,this.firstFrame,this.totalFrames)),e==="destroy"&&this.onDestroy&&this.onDestroy.call(this,new BMDestroyEvent(e,this))},AnimationItem.prototype.triggerRenderFrameError=function(e){var t=new BMRenderFrameErrorEvent(e,this.currentFrame);this.triggerEvent("error",t),this.onError&&this.onError.call(this,t)},AnimationItem.prototype.triggerConfigError=function(e){var t=new BMConfigErrorEvent(e,this.currentFrame);this.triggerEvent("error",t),this.onError&&this.onError.call(this,t)};var animationManager=(function(){var e={},t=[],n=0,i=0,s=0,a=!0,o=!1;function l(P){for(var T=0,x=P.target;T<i;)t[T].animation===x&&(t.splice(T,1),T-=1,i-=1,x.isPaused||p()),T+=1}function c(P,T){if(!P)return null;for(var x=0;x<i;){if(t[x].elem===P&&t[x].elem!==null)return t[x].animation;x+=1}var S=new AnimationItem;return h(S,P),S.setData(P,T),S}function u(){var P,T=t.length,x=[];for(P=0;P<T;P+=1)x.push(t[P].animation);return x}function d(){s+=1,F()}function p(){s-=1}function h(P,T){P.addEventListener("destroy",l),P.addEventListener("_active",d),P.addEventListener("_idle",p),t.push({elem:T,animation:P}),i+=1}function y(P){var T=new AnimationItem;return h(T,null),T.setParams(P),T}function f(P,T){var x;for(x=0;x<i;x+=1)t[x].animation.setSpeed(P,T)}function m(P,T){var x;for(x=0;x<i;x+=1)t[x].animation.setDirection(P,T)}function C(P){var T;for(T=0;T<i;T+=1)t[T].animation.play(P)}function g(P){var T=P-n,x;for(x=0;x<i;x+=1)t[x].animation.advanceTime(T);n=P,s&&!o?window.requestAnimationFrame(g):a=!0}function b(P){n=P,window.requestAnimationFrame(g)}function v(P){var T;for(T=0;T<i;T+=1)t[T].animation.pause(P)}function N(P,T,x){var S;for(S=0;S<i;S+=1)t[S].animation.goToAndStop(P,T,x)}function w(P){var T;for(T=0;T<i;T+=1)t[T].animation.stop(P)}function E(P){var T;for(T=0;T<i;T+=1)t[T].animation.togglePause(P)}function _(P){var T;for(T=i-1;T>=0;T-=1)t[T].animation.destroy(P)}function k(P,T,x){var S=[].concat([].slice.call(document.getElementsByClassName("lottie")),[].slice.call(document.getElementsByClassName("bodymovin"))),M,V=S.length;for(M=0;M<V;M+=1)x&&S[M].setAttribute("data-bm-type",x),c(S[M],P);if(T&&V===0){x||(x="svg");var z=document.getElementsByTagName("body")[0];z.innerText="";var G=createTag("div");G.style.width="100%",G.style.height="100%",G.setAttribute("data-bm-type",x),z.appendChild(G),c(G,P)}}function A(){var P;for(P=0;P<i;P+=1)t[P].animation.resize()}function F(){!o&&s&&a&&(window.requestAnimationFrame(b),a=!1)}function B(){o=!0}function I(){o=!1,F()}function D(P,T){var x;for(x=0;x<i;x+=1)t[x].animation.setVolume(P,T)}function L(P){var T;for(T=0;T<i;T+=1)t[T].animation.mute(P)}function $(P){var T;for(T=0;T<i;T+=1)t[T].animation.unmute(P)}return e.registerAnimation=c,e.loadAnimation=y,e.setSpeed=f,e.setDirection=m,e.play=C,e.pause=v,e.stop=w,e.togglePause=E,e.searchAnimations=k,e.resize=A,e.goToAndStop=N,e.destroy=_,e.freeze=B,e.unfreeze=I,e.setVolume=D,e.mute=L,e.unmute=$,e.getRegisteredAnimations=u,e})(),BezierFactory=(function(){var e={};e.getBezierEasing=n;var t={};function n(b,v,N,w,E){var _=E||("bez_"+b+"_"+v+"_"+N+"_"+w).replace(/\./g,"p");if(t[_])return t[_];var k=new g([b,v,N,w]);return t[_]=k,k}var i=4,s=.001,a=1e-7,o=10,l=11,c=1/(l-1),u=typeof Float32Array=="function";function d(b,v){return 1-3*v+3*b}function p(b,v){return 3*v-6*b}function h(b){return 3*b}function y(b,v,N){return((d(v,N)*b+p(v,N))*b+h(v))*b}function f(b,v,N){return 3*d(v,N)*b*b+2*p(v,N)*b+h(v)}function m(b,v,N,w,E){var _,k,A=0;do k=v+(N-v)/2,_=y(k,w,E)-b,_>0?N=k:v=k;while(Math.abs(_)>a&&++A<o);return k}function C(b,v,N,w){for(var E=0;E<i;++E){var _=f(v,N,w);if(_===0)return v;var k=y(v,N,w)-b;v-=k/_}return v}function g(b){this._p=b,this._mSampleValues=u?new Float32Array(l):new Array(l),this._precomputed=!1,this.get=this.get.bind(this)}return g.prototype={get:function(v){var N=this._p[0],w=this._p[1],E=this._p[2],_=this._p[3];return this._precomputed||this._precompute(),N===w&&E===_?v:v===0?0:v===1?1:y(this._getTForX(v),w,_)},_precompute:function(){var v=this._p[0],N=this._p[1],w=this._p[2],E=this._p[3];this._precomputed=!0,(v!==N||w!==E)&&this._calcSampleValues()},_calcSampleValues:function(){for(var v=this._p[0],N=this._p[2],w=0;w<l;++w)this._mSampleValues[w]=y(w*c,v,N)},_getTForX:function(v){for(var N=this._p[0],w=this._p[2],E=this._mSampleValues,_=0,k=1,A=l-1;k!==A&&E[k]<=v;++k)_+=c;--k;var F=(v-E[k])/(E[k+1]-E[k]),B=_+F*c,I=f(B,N,w);return I>=s?C(v,B,N,w):I===0?B:m(v,_,_+c,N,w)}},e})(),pooling=(function(){function e(t){return t.concat(createSizedArray(t.length))}return{double:e}})(),poolFactory=(function(){return function(e,t,n){var i=0,s=e,a=createSizedArray(s),o={newElement:l,release:c};function l(){var u;return i?(i-=1,u=a[i]):u=t(),u}function c(u){i===s&&(a=pooling.double(a),s*=2),n&&n(u),a[i]=u,i+=1}return o}})(),bezierLengthPool=(function(){function e(){return{addedLength:0,percents:createTypedArray("float32",getDefaultCurveSegments()),lengths:createTypedArray("float32",getDefaultCurveSegments())}}return poolFactory(8,e)})(),segmentsLengthPool=(function(){function e(){return{lengths:[],totalLength:0}}function t(n){var i,s=n.lengths.length;for(i=0;i<s;i+=1)bezierLengthPool.release(n.lengths[i]);n.lengths.length=0}return poolFactory(8,e,t)})();function bezFunction(){var e=Math;function t(h,y,f,m,C,g){var b=h*m+y*C+f*g-C*m-g*h-f*y;return b>-.001&&b<.001}function n(h,y,f,m,C,g,b,v,N){if(f===0&&g===0&&N===0)return t(h,y,m,C,b,v);var w=e.sqrt(e.pow(m-h,2)+e.pow(C-y,2)+e.pow(g-f,2)),E=e.sqrt(e.pow(b-h,2)+e.pow(v-y,2)+e.pow(N-f,2)),_=e.sqrt(e.pow(b-m,2)+e.pow(v-C,2)+e.pow(N-g,2)),k;return w>E?w>_?k=w-E-_:k=_-E-w:_>E?k=_-E-w:k=E-w-_,k>-1e-4&&k<1e-4}var i=(function(){return function(h,y,f,m){var C=getDefaultCurveSegments(),g,b,v,N,w,E=0,_,k=[],A=[],F=bezierLengthPool.newElement();for(v=f.length,g=0;g<C;g+=1){for(w=g/(C-1),_=0,b=0;b<v;b+=1)N=bmPow(1-w,3)*h[b]+3*bmPow(1-w,2)*w*f[b]+3*(1-w)*bmPow(w,2)*m[b]+bmPow(w,3)*y[b],k[b]=N,A[b]!==null&&(_+=bmPow(k[b]-A[b],2)),A[b]=k[b];_&&(_=bmSqrt(_),E+=_),F.percents[g]=w,F.lengths[g]=E}return F.addedLength=E,F}})();function s(h){var y=segmentsLengthPool.newElement(),f=h.c,m=h.v,C=h.o,g=h.i,b,v=h._length,N=y.lengths,w=0;for(b=0;b<v-1;b+=1)N[b]=i(m[b],m[b+1],C[b],g[b+1]),w+=N[b].addedLength;return f&&v&&(N[b]=i(m[b],m[0],C[b],g[0]),w+=N[b].addedLength),y.totalLength=w,y}function a(h){this.segmentLength=0,this.points=new Array(h)}function o(h,y){this.partialLength=h,this.point=y}var l=(function(){var h={};return function(y,f,m,C){var g=(y[0]+"_"+y[1]+"_"+f[0]+"_"+f[1]+"_"+m[0]+"_"+m[1]+"_"+C[0]+"_"+C[1]).replace(/\./g,"p");if(!h[g]){var b=getDefaultCurveSegments(),v,N,w,E,_,k=0,A,F,B=null;y.length===2&&(y[0]!==f[0]||y[1]!==f[1])&&t(y[0],y[1],f[0],f[1],y[0]+m[0],y[1]+m[1])&&t(y[0],y[1],f[0],f[1],f[0]+C[0],f[1]+C[1])&&(b=2);var I=new a(b);for(w=m.length,v=0;v<b;v+=1){for(F=createSizedArray(w),_=v/(b-1),A=0,N=0;N<w;N+=1)E=bmPow(1-_,3)*y[N]+3*bmPow(1-_,2)*_*(y[N]+m[N])+3*(1-_)*bmPow(_,2)*(f[N]+C[N])+bmPow(_,3)*f[N],F[N]=E,B!==null&&(A+=bmPow(F[N]-B[N],2));A=bmSqrt(A),k+=A,I.points[v]=new o(A,F),B=F}I.segmentLength=k,h[g]=I}return h[g]}})();function c(h,y){var f=y.percents,m=y.lengths,C=f.length,g=bmFloor((C-1)*h),b=h*y.addedLength,v=0;if(g===C-1||g===0||b===m[g])return f[g];for(var N=m[g]>b?-1:1,w=!0;w;)if(m[g]<=b&&m[g+1]>b?(v=(b-m[g])/(m[g+1]-m[g]),w=!1):g+=N,g<0||g>=C-1){if(g===C-1)return f[g];w=!1}return f[g]+(f[g+1]-f[g])*v}function u(h,y,f,m,C,g){var b=c(C,g),v=1-b,N=e.round((v*v*v*h[0]+(b*v*v+v*b*v+v*v*b)*f[0]+(b*b*v+v*b*b+b*v*b)*m[0]+b*b*b*y[0])*1e3)/1e3,w=e.round((v*v*v*h[1]+(b*v*v+v*b*v+v*v*b)*f[1]+(b*b*v+v*b*b+b*v*b)*m[1]+b*b*b*y[1])*1e3)/1e3;return[N,w]}var d=createTypedArray("float32",8);function p(h,y,f,m,C,g,b){C<0?C=0:C>1&&(C=1);var v=c(C,b);g=g>1?1:g;var N=c(g,b),w,E=h.length,_=1-v,k=1-N,A=_*_*_,F=v*_*_*3,B=v*v*_*3,I=v*v*v,D=_*_*k,L=v*_*k+_*v*k+_*_*N,$=v*v*k+_*v*N+v*_*N,P=v*v*N,T=_*k*k,x=v*k*k+_*N*k+_*k*N,S=v*N*k+_*N*N+v*k*N,M=v*N*N,V=k*k*k,z=N*k*k+k*N*k+k*k*N,G=N*N*k+k*N*N+N*k*N,H=N*N*N;for(w=0;w<E;w+=1)d[w*4]=e.round((A*h[w]+F*f[w]+B*m[w]+I*y[w])*1e3)/1e3,d[w*4+1]=e.round((D*h[w]+L*f[w]+$*m[w]+P*y[w])*1e3)/1e3,d[w*4+2]=e.round((T*h[w]+x*f[w]+S*m[w]+M*y[w])*1e3)/1e3,d[w*4+3]=e.round((V*h[w]+z*f[w]+G*m[w]+H*y[w])*1e3)/1e3;return d}return{getSegmentsLength:s,getNewSegment:p,getPointInSegment:u,buildBezierData:l,pointOnLine2D:t,pointOnLine3D:n}}var bez=bezFunction(),initFrame=initialDefaultFrame,mathAbs=Math.abs;function interpolateValue(e,t){var n=this.offsetTime,i;this.propType==="multidimensional"&&(i=createTypedArray("float32",this.pv.length));for(var s=t.lastIndex,a=s,o=this.keyframes.length-1,l=!0,c,u,d;l;){if(c=this.keyframes[a],u=this.keyframes[a+1],a===o-1&&e>=u.t-n){c.h&&(c=u),s=0;break}if(u.t-n>e){s=a;break}a<o-1?a+=1:(s=0,l=!1)}d=this.keyframesMetadata[a]||{};var p,h,y,f,m,C,g=u.t-n,b=c.t-n,v;if(c.to){d.bezierData||(d.bezierData=bez.buildBezierData(c.s,u.s||c.e,c.to,c.ti));var N=d.bezierData;if(e>=g||e<b){var w=e>=g?N.points.length-1:0;for(h=N.points[w].point.length,p=0;p<h;p+=1)i[p]=N.points[w].point[p]}else{d.__fnct?C=d.__fnct:(C=BezierFactory.getBezierEasing(c.o.x,c.o.y,c.i.x,c.i.y,c.n).get,d.__fnct=C),y=C((e-b)/(g-b));var E=N.segmentLength*y,_,k=t.lastFrame<e&&t._lastKeyframeIndex===a?t._lastAddedLength:0;for(m=t.lastFrame<e&&t._lastKeyframeIndex===a?t._lastPoint:0,l=!0,f=N.points.length;l;){if(k+=N.points[m].partialLength,E===0||y===0||m===N.points.length-1){for(h=N.points[m].point.length,p=0;p<h;p+=1)i[p]=N.points[m].point[p];break}else if(E>=k&&E<k+N.points[m+1].partialLength){for(_=(E-k)/N.points[m+1].partialLength,h=N.points[m].point.length,p=0;p<h;p+=1)i[p]=N.points[m].point[p]+(N.points[m+1].point[p]-N.points[m].point[p])*_;break}m<f-1?m+=1:l=!1}t._lastPoint=m,t._lastAddedLength=k-N.points[m].partialLength,t._lastKeyframeIndex=a}}else{var A,F,B,I,D;if(o=c.s.length,v=u.s||c.e,this.sh&&c.h!==1)if(e>=g)i[0]=v[0],i[1]=v[1],i[2]=v[2];else if(e<=b)i[0]=c.s[0],i[1]=c.s[1],i[2]=c.s[2];else{var L=createQuaternion(c.s),$=createQuaternion(v),P=(e-b)/(g-b);quaternionToEuler(i,slerp(L,$,P))}else for(a=0;a<o;a+=1)c.h!==1&&(e>=g?y=1:e<b?y=0:(c.o.x.constructor===Array?(d.__fnct||(d.__fnct=[]),d.__fnct[a]?C=d.__fnct[a]:(A=c.o.x[a]===void 0?c.o.x[0]:c.o.x[a],F=c.o.y[a]===void 0?c.o.y[0]:c.o.y[a],B=c.i.x[a]===void 0?c.i.x[0]:c.i.x[a],I=c.i.y[a]===void 0?c.i.y[0]:c.i.y[a],C=BezierFactory.getBezierEasing(A,F,B,I).get,d.__fnct[a]=C)):d.__fnct?C=d.__fnct:(A=c.o.x,F=c.o.y,B=c.i.x,I=c.i.y,C=BezierFactory.getBezierEasing(A,F,B,I).get,c.keyframeMetadata=C),y=C((e-b)/(g-b)))),v=u.s||c.e,D=c.h===1?c.s[a]:c.s[a]+(v[a]-c.s[a])*y,this.propType==="multidimensional"?i[a]=D:i=D}return t.lastIndex=s,i}function slerp(e,t,n){var i=[],s=e[0],a=e[1],o=e[2],l=e[3],c=t[0],u=t[1],d=t[2],p=t[3],h,y,f,m,C;return y=s*c+a*u+o*d+l*p,y<0&&(y=-y,c=-c,u=-u,d=-d,p=-p),1-y>1e-6?(h=Math.acos(y),f=Math.sin(h),m=Math.sin((1-n)*h)/f,C=Math.sin(n*h)/f):(m=1-n,C=n),i[0]=m*s+C*c,i[1]=m*a+C*u,i[2]=m*o+C*d,i[3]=m*l+C*p,i}function quaternionToEuler(e,t){var n=t[0],i=t[1],s=t[2],a=t[3],o=Math.atan2(2*i*a-2*n*s,1-2*i*i-2*s*s),l=Math.asin(2*n*i+2*s*a),c=Math.atan2(2*n*a-2*i*s,1-2*n*n-2*s*s);e[0]=o/degToRads,e[1]=l/degToRads,e[2]=c/degToRads}function createQuaternion(e){var t=e[0]*degToRads,n=e[1]*degToRads,i=e[2]*degToRads,s=Math.cos(t/2),a=Math.cos(n/2),o=Math.cos(i/2),l=Math.sin(t/2),c=Math.sin(n/2),u=Math.sin(i/2),d=s*a*o-l*c*u,p=l*c*o+s*a*u,h=l*a*o+s*c*u,y=s*c*o-l*a*u;return[p,h,y,d]}function getValueAtCurrentTime(){var e=this.comp.renderedFrame-this.offsetTime,t=this.keyframes[0].t-this.offsetTime,n=this.keyframes[this.keyframes.length-1].t-this.offsetTime;if(!(e===this._caching.lastFrame||this._caching.lastFrame!==initFrame&&(this._caching.lastFrame>=n&&e>=n||this._caching.lastFrame<t&&e<t))){this._caching.lastFrame>=e&&(this._caching._lastKeyframeIndex=-1,this._caching.lastIndex=0);var i=this.interpolateValue(e,this._caching);this.pv=i}return this._caching.lastFrame=e,this.pv}function setVValue(e){var t;if(this.propType==="unidimensional")t=e*this.mult,mathAbs(this.v-t)>1e-5&&(this.v=t,this._mdf=!0);else for(var n=0,i=this.v.length;n<i;)t=e[n]*this.mult,mathAbs(this.v[n]-t)>1e-5&&(this.v[n]=t,this._mdf=!0),n+=1}function processEffectsSequence(){if(!(this.elem.globalData.frameId===this.frameId||!this.effectsSequence.length)){if(this.lock){this.setVValue(this.pv);return}this.lock=!0,this._mdf=this._isFirstFrame;var e,t=this.effectsSequence.length,n=this.kf?this.pv:this.data.k;for(e=0;e<t;e+=1)n=this.effectsSequence[e](n);this.setVValue(n),this._isFirstFrame=!1,this.lock=!1,this.frameId=this.elem.globalData.frameId}}function addEffect(e){this.effectsSequence.push(e),this.container.addDynamicProperty(this)}function ValueProperty(e,t,n,i){this.propType="unidimensional",this.mult=n||1,this.data=t,this.v=n?t.k*n:t.k,this.pv=t.k,this._mdf=!1,this.elem=e,this.container=i,this.comp=e.comp,this.k=!1,this.kf=!1,this.vel=0,this.effectsSequence=[],this._isFirstFrame=!0,this.getValue=processEffectsSequence,this.setVValue=setVValue,this.addEffect=addEffect}function MultiDimensionalProperty(e,t,n,i){this.propType="multidimensional",this.mult=n||1,this.data=t,this._mdf=!1,this.elem=e,this.container=i,this.comp=e.comp,this.k=!1,this.kf=!1,this.frameId=-1;var s,a=t.k.length;for(this.v=createTypedArray("float32",a),this.pv=createTypedArray("float32",a),this.vel=createTypedArray("float32",a),s=0;s<a;s+=1)this.v[s]=t.k[s]*this.mult,this.pv[s]=t.k[s];this._isFirstFrame=!0,this.effectsSequence=[],this.getValue=processEffectsSequence,this.setVValue=setVValue,this.addEffect=addEffect}function KeyframedValueProperty(e,t,n,i){this.propType="unidimensional",this.keyframes=t.k,this.keyframesMetadata=[],this.offsetTime=e.data.st,this.frameId=-1,this._caching={lastFrame:initFrame,lastIndex:0,value:0,_lastKeyframeIndex:-1},this.k=!0,this.kf=!0,this.data=t,this.mult=n||1,this.elem=e,this.container=i,this.comp=e.comp,this.v=initFrame,this.pv=initFrame,this._isFirstFrame=!0,this.getValue=processEffectsSequence,this.setVValue=setVValue,this.interpolateValue=interpolateValue,this.effectsSequence=[getValueAtCurrentTime.bind(this)],this.addEffect=addEffect}function KeyframedMultidimensionalProperty(e,t,n,i){this.propType="multidimensional";var s,a=t.k.length,o,l,c,u;for(s=0;s<a-1;s+=1)t.k[s].to&&t.k[s].s&&t.k[s+1]&&t.k[s+1].s&&(o=t.k[s].s,l=t.k[s+1].s,c=t.k[s].to,u=t.k[s].ti,(o.length===2&&!(o[0]===l[0]&&o[1]===l[1])&&bez.pointOnLine2D(o[0],o[1],l[0],l[1],o[0]+c[0],o[1]+c[1])&&bez.pointOnLine2D(o[0],o[1],l[0],l[1],l[0]+u[0],l[1]+u[1])||o.length===3&&!(o[0]===l[0]&&o[1]===l[1]&&o[2]===l[2])&&bez.pointOnLine3D(o[0],o[1],o[2],l[0],l[1],l[2],o[0]+c[0],o[1]+c[1],o[2]+c[2])&&bez.pointOnLine3D(o[0],o[1],o[2],l[0],l[1],l[2],l[0]+u[0],l[1]+u[1],l[2]+u[2]))&&(t.k[s].to=null,t.k[s].ti=null),o[0]===l[0]&&o[1]===l[1]&&c[0]===0&&c[1]===0&&u[0]===0&&u[1]===0&&(o.length===2||o[2]===l[2]&&c[2]===0&&u[2]===0)&&(t.k[s].to=null,t.k[s].ti=null));this.effectsSequence=[getValueAtCurrentTime.bind(this)],this.data=t,this.keyframes=t.k,this.keyframesMetadata=[],this.offsetTime=e.data.st,this.k=!0,this.kf=!0,this._isFirstFrame=!0,this.mult=n||1,this.elem=e,this.container=i,this.comp=e.comp,this.getValue=processEffectsSequence,this.setVValue=setVValue,this.interpolateValue=interpolateValue,this.frameId=-1;var d=t.k[0].s.length;for(this.v=createTypedArray("float32",d),this.pv=createTypedArray("float32",d),s=0;s<d;s+=1)this.v[s]=initFrame,this.pv[s]=initFrame;this._caching={lastFrame:initFrame,lastIndex:0,value:createTypedArray("float32",d)},this.addEffect=addEffect}var PropertyFactory=(function(){function e(n,i,s,a,o){i.sid&&(i=n.globalData.slotManager.getProp(i));var l;if(!i.k.length)l=new ValueProperty(n,i,a,o);else if(typeof i.k[0]=="number")l=new MultiDimensionalProperty(n,i,a,o);else switch(s){case 0:l=new KeyframedValueProperty(n,i,a,o);break;case 1:l=new KeyframedMultidimensionalProperty(n,i,a,o);break}return l.effectsSequence.length&&o.addDynamicProperty(l),l}var t={getProp:e};return t})();function DynamicPropertyContainer(){}DynamicPropertyContainer.prototype={addDynamicProperty:function(t){this.dynamicProperties.indexOf(t)===-1&&(this.dynamicProperties.push(t),this.container.addDynamicProperty(this),this._isAnimated=!0)},iterateDynamicProperties:function(){this._mdf=!1;var t,n=this.dynamicProperties.length;for(t=0;t<n;t+=1)this.dynamicProperties[t].getValue(),this.dynamicProperties[t]._mdf&&(this._mdf=!0)},initDynamicPropertyContainer:function(t){this.container=t,this.dynamicProperties=[],this._mdf=!1,this._isAnimated=!1}};var pointPool=(function(){function e(){return createTypedArray("float32",2)}return poolFactory(8,e)})();function ShapePath(){this.c=!1,this._length=0,this._maxLength=8,this.v=createSizedArray(this._maxLength),this.o=createSizedArray(this._maxLength),this.i=createSizedArray(this._maxLength)}ShapePath.prototype.setPathData=function(e,t){this.c=e,this.setLength(t);for(var n=0;n<t;)this.v[n]=pointPool.newElement(),this.o[n]=pointPool.newElement(),this.i[n]=pointPool.newElement(),n+=1},ShapePath.prototype.setLength=function(e){for(;this._maxLength<e;)this.doubleArrayLength();this._length=e},ShapePath.prototype.doubleArrayLength=function(){this.v=this.v.concat(createSizedArray(this._maxLength)),this.i=this.i.concat(createSizedArray(this._maxLength)),this.o=this.o.concat(createSizedArray(this._maxLength)),this._maxLength*=2},ShapePath.prototype.setXYAt=function(e,t,n,i,s){var a;switch(this._length=Math.max(this._length,i+1),this._length>=this._maxLength&&this.doubleArrayLength(),n){case"v":a=this.v;break;case"i":a=this.i;break;case"o":a=this.o;break;default:a=[];break}(!a[i]||a[i]&&!s)&&(a[i]=pointPool.newElement()),a[i][0]=e,a[i][1]=t},ShapePath.prototype.setTripleAt=function(e,t,n,i,s,a,o,l){this.setXYAt(e,t,"v",o,l),this.setXYAt(n,i,"o",o,l),this.setXYAt(s,a,"i",o,l)},ShapePath.prototype.reverse=function(){var e=new ShapePath;e.setPathData(this.c,this._length);var t=this.v,n=this.o,i=this.i,s=0;this.c&&(e.setTripleAt(t[0][0],t[0][1],i[0][0],i[0][1],n[0][0],n[0][1],0,!1),s=1);var a=this._length-1,o=this._length,l;for(l=s;l<o;l+=1)e.setTripleAt(t[a][0],t[a][1],i[a][0],i[a][1],n[a][0],n[a][1],l,!1),a-=1;return e},ShapePath.prototype.length=function(){return this._length};var shapePool=(function(){function e(){return new ShapePath}function t(s){var a=s._length,o;for(o=0;o<a;o+=1)pointPool.release(s.v[o]),pointPool.release(s.i[o]),pointPool.release(s.o[o]),s.v[o]=null,s.i[o]=null,s.o[o]=null;s._length=0,s.c=!1}function n(s){var a=i.newElement(),o,l=s._length===void 0?s.v.length:s._length;for(a.setLength(l),a.c=s.c,o=0;o<l;o+=1)a.setTripleAt(s.v[o][0],s.v[o][1],s.o[o][0],s.o[o][1],s.i[o][0],s.i[o][1],o);return a}var i=poolFactory(4,e,t);return i.clone=n,i})();function ShapeCollection(){this._length=0,this._maxLength=4,this.shapes=createSizedArray(this._maxLength)}ShapeCollection.prototype.addShape=function(e){this._length===this._maxLength&&(this.shapes=this.shapes.concat(createSizedArray(this._maxLength)),this._maxLength*=2),this.shapes[this._length]=e,this._length+=1},ShapeCollection.prototype.releaseShapes=function(){var e;for(e=0;e<this._length;e+=1)shapePool.release(this.shapes[e]);this._length=0};var shapeCollectionPool=(function(){var e={newShapeCollection:s,release:a},t=0,n=4,i=createSizedArray(n);function s(){var o;return t?(t-=1,o=i[t]):o=new ShapeCollection,o}function a(o){var l,c=o._length;for(l=0;l<c;l+=1)shapePool.release(o.shapes[l]);o._length=0,t===n&&(i=pooling.double(i),n*=2),i[t]=o,t+=1}return e})(),ShapePropertyFactory=(function(){var e=-999999;function t(g,b,v){var N=v.lastIndex,w,E,_,k,A,F,B,I,D,L=this.keyframes;if(g<L[0].t-this.offsetTime)w=L[0].s[0],_=!0,N=0;else if(g>=L[L.length-1].t-this.offsetTime)w=L[L.length-1].s?L[L.length-1].s[0]:L[L.length-2].e[0],_=!0;else{for(var $=N,P=L.length-1,T=!0,x,S,M;T&&(x=L[$],S=L[$+1],!(S.t-this.offsetTime>g));)$<P-1?$+=1:T=!1;if(M=this.keyframesMetadata[$]||{},_=x.h===1,N=$,!_){if(g>=S.t-this.offsetTime)I=1;else if(g<x.t-this.offsetTime)I=0;else{var V;M.__fnct?V=M.__fnct:(V=BezierFactory.getBezierEasing(x.o.x,x.o.y,x.i.x,x.i.y).get,M.__fnct=V),I=V((g-(x.t-this.offsetTime))/(S.t-this.offsetTime-(x.t-this.offsetTime)))}E=S.s?S.s[0]:x.e[0]}w=x.s[0]}for(F=b._length,B=w.i[0].length,v.lastIndex=N,k=0;k<F;k+=1)for(A=0;A<B;A+=1)D=_?w.i[k][A]:w.i[k][A]+(E.i[k][A]-w.i[k][A])*I,b.i[k][A]=D,D=_?w.o[k][A]:w.o[k][A]+(E.o[k][A]-w.o[k][A])*I,b.o[k][A]=D,D=_?w.v[k][A]:w.v[k][A]+(E.v[k][A]-w.v[k][A])*I,b.v[k][A]=D}function n(){var g=this.comp.renderedFrame-this.offsetTime,b=this.keyframes[0].t-this.offsetTime,v=this.keyframes[this.keyframes.length-1].t-this.offsetTime,N=this._caching.lastFrame;return N!==e&&(N<b&&g<b||N>v&&g>v)||(this._caching.lastIndex=N<g?this._caching.lastIndex:0,this.interpolateShape(g,this.pv,this._caching)),this._caching.lastFrame=g,this.pv}function i(){this.paths=this.localShapeCollection}function s(g,b){if(g._length!==b._length||g.c!==b.c)return!1;var v,N=g._length;for(v=0;v<N;v+=1)if(g.v[v][0]!==b.v[v][0]||g.v[v][1]!==b.v[v][1]||g.o[v][0]!==b.o[v][0]||g.o[v][1]!==b.o[v][1]||g.i[v][0]!==b.i[v][0]||g.i[v][1]!==b.i[v][1])return!1;return!0}function a(g){s(this.v,g)||(this.v=shapePool.clone(g),this.localShapeCollection.releaseShapes(),this.localShapeCollection.addShape(this.v),this._mdf=!0,this.paths=this.localShapeCollection)}function o(){if(this.elem.globalData.frameId!==this.frameId){if(!this.effectsSequence.length){this._mdf=!1;return}if(this.lock){this.setVValue(this.pv);return}this.lock=!0,this._mdf=!1;var g;this.kf?g=this.pv:this.data.ks?g=this.data.ks.k:g=this.data.pt.k;var b,v=this.effectsSequence.length;for(b=0;b<v;b+=1)g=this.effectsSequence[b](g);this.setVValue(g),this.lock=!1,this.frameId=this.elem.globalData.frameId}}function l(g,b,v){this.propType="shape",this.comp=g.comp,this.container=g,this.elem=g,this.data=b,this.k=!1,this.kf=!1,this._mdf=!1;var N=v===3?b.pt.k:b.ks.k;this.v=shapePool.clone(N),this.pv=shapePool.clone(this.v),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.reset=i,this.effectsSequence=[]}function c(g){this.effectsSequence.push(g),this.container.addDynamicProperty(this)}l.prototype.interpolateShape=t,l.prototype.getValue=o,l.prototype.setVValue=a,l.prototype.addEffect=c;function u(g,b,v){this.propType="shape",this.comp=g.comp,this.elem=g,this.container=g,this.offsetTime=g.data.st,this.keyframes=v===3?b.pt.k:b.ks.k,this.keyframesMetadata=[],this.k=!0,this.kf=!0;var N=this.keyframes[0].s[0].i.length;this.v=shapePool.newElement(),this.v.setPathData(this.keyframes[0].s[0].c,N),this.pv=shapePool.clone(this.v),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.lastFrame=e,this.reset=i,this._caching={lastFrame:e,lastIndex:0},this.effectsSequence=[n.bind(this)]}u.prototype.getValue=o,u.prototype.interpolateShape=t,u.prototype.setVValue=a,u.prototype.addEffect=c;var d=(function(){var g=roundCorner;function b(v,N){this.v=shapePool.newElement(),this.v.setPathData(!0,4),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.paths=this.localShapeCollection,this.localShapeCollection.addShape(this.v),this.d=N.d,this.elem=v,this.comp=v.comp,this.frameId=-1,this.initDynamicPropertyContainer(v),this.p=PropertyFactory.getProp(v,N.p,1,0,this),this.s=PropertyFactory.getProp(v,N.s,1,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertEllToPath())}return b.prototype={reset:i,getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertEllToPath())},convertEllToPath:function(){var N=this.p.v[0],w=this.p.v[1],E=this.s.v[0]/2,_=this.s.v[1]/2,k=this.d!==3,A=this.v;A.v[0][0]=N,A.v[0][1]=w-_,A.v[1][0]=k?N+E:N-E,A.v[1][1]=w,A.v[2][0]=N,A.v[2][1]=w+_,A.v[3][0]=k?N-E:N+E,A.v[3][1]=w,A.i[0][0]=k?N-E*g:N+E*g,A.i[0][1]=w-_,A.i[1][0]=k?N+E:N-E,A.i[1][1]=w-_*g,A.i[2][0]=k?N+E*g:N-E*g,A.i[2][1]=w+_,A.i[3][0]=k?N-E:N+E,A.i[3][1]=w+_*g,A.o[0][0]=k?N+E*g:N-E*g,A.o[0][1]=w-_,A.o[1][0]=k?N+E:N-E,A.o[1][1]=w+_*g,A.o[2][0]=k?N-E*g:N+E*g,A.o[2][1]=w+_,A.o[3][0]=k?N-E:N+E,A.o[3][1]=w-_*g}},extendPrototype([DynamicPropertyContainer],b),b})(),p=(function(){function g(b,v){this.v=shapePool.newElement(),this.v.setPathData(!0,0),this.elem=b,this.comp=b.comp,this.data=v,this.frameId=-1,this.d=v.d,this.initDynamicPropertyContainer(b),v.sy===1?(this.ir=PropertyFactory.getProp(b,v.ir,0,0,this),this.is=PropertyFactory.getProp(b,v.is,0,.01,this),this.convertToPath=this.convertStarToPath):this.convertToPath=this.convertPolygonToPath,this.pt=PropertyFactory.getProp(b,v.pt,0,0,this),this.p=PropertyFactory.getProp(b,v.p,1,0,this),this.r=PropertyFactory.getProp(b,v.r,0,degToRads,this),this.or=PropertyFactory.getProp(b,v.or,0,0,this),this.os=PropertyFactory.getProp(b,v.os,0,.01,this),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertToPath())}return g.prototype={reset:i,getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertToPath())},convertStarToPath:function(){var v=Math.floor(this.pt.v)*2,N=Math.PI*2/v,w=!0,E=this.or.v,_=this.ir.v,k=this.os.v,A=this.is.v,F=2*Math.PI*E/(v*2),B=2*Math.PI*_/(v*2),I,D,L,$,P=-Math.PI/2;P+=this.r.v;var T=this.data.d===3?-1:1;for(this.v._length=0,I=0;I<v;I+=1){D=w?E:_,L=w?k:A,$=w?F:B;var x=D*Math.cos(P),S=D*Math.sin(P),M=x===0&&S===0?0:S/Math.sqrt(x*x+S*S),V=x===0&&S===0?0:-x/Math.sqrt(x*x+S*S);x+=+this.p.v[0],S+=+this.p.v[1],this.v.setTripleAt(x,S,x-M*$*L*T,S-V*$*L*T,x+M*$*L*T,S+V*$*L*T,I,!0),w=!w,P+=N*T}},convertPolygonToPath:function(){var v=Math.floor(this.pt.v),N=Math.PI*2/v,w=this.or.v,E=this.os.v,_=2*Math.PI*w/(v*4),k,A=-Math.PI*.5,F=this.data.d===3?-1:1;for(A+=this.r.v,this.v._length=0,k=0;k<v;k+=1){var B=w*Math.cos(A),I=w*Math.sin(A),D=B===0&&I===0?0:I/Math.sqrt(B*B+I*I),L=B===0&&I===0?0:-B/Math.sqrt(B*B+I*I);B+=+this.p.v[0],I+=+this.p.v[1],this.v.setTripleAt(B,I,B-D*_*E*F,I-L*_*E*F,B+D*_*E*F,I+L*_*E*F,k,!0),A+=N*F}this.paths.length=0,this.paths[0]=this.v}},extendPrototype([DynamicPropertyContainer],g),g})(),h=(function(){function g(b,v){this.v=shapePool.newElement(),this.v.c=!0,this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.elem=b,this.comp=b.comp,this.frameId=-1,this.d=v.d,this.initDynamicPropertyContainer(b),this.p=PropertyFactory.getProp(b,v.p,1,0,this),this.s=PropertyFactory.getProp(b,v.s,1,0,this),this.r=PropertyFactory.getProp(b,v.r,0,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertRectToPath())}return g.prototype={convertRectToPath:function(){var v=this.p.v[0],N=this.p.v[1],w=this.s.v[0]/2,E=this.s.v[1]/2,_=bmMin(w,E,this.r.v),k=_*(1-roundCorner);this.v._length=0,this.d===2||this.d===1?(this.v.setTripleAt(v+w,N-E+_,v+w,N-E+_,v+w,N-E+k,0,!0),this.v.setTripleAt(v+w,N+E-_,v+w,N+E-k,v+w,N+E-_,1,!0),_!==0?(this.v.setTripleAt(v+w-_,N+E,v+w-_,N+E,v+w-k,N+E,2,!0),this.v.setTripleAt(v-w+_,N+E,v-w+k,N+E,v-w+_,N+E,3,!0),this.v.setTripleAt(v-w,N+E-_,v-w,N+E-_,v-w,N+E-k,4,!0),this.v.setTripleAt(v-w,N-E+_,v-w,N-E+k,v-w,N-E+_,5,!0),this.v.setTripleAt(v-w+_,N-E,v-w+_,N-E,v-w+k,N-E,6,!0),this.v.setTripleAt(v+w-_,N-E,v+w-k,N-E,v+w-_,N-E,7,!0)):(this.v.setTripleAt(v-w,N+E,v-w+k,N+E,v-w,N+E,2),this.v.setTripleAt(v-w,N-E,v-w,N-E+k,v-w,N-E,3))):(this.v.setTripleAt(v+w,N-E+_,v+w,N-E+k,v+w,N-E+_,0,!0),_!==0?(this.v.setTripleAt(v+w-_,N-E,v+w-_,N-E,v+w-k,N-E,1,!0),this.v.setTripleAt(v-w+_,N-E,v-w+k,N-E,v-w+_,N-E,2,!0),this.v.setTripleAt(v-w,N-E+_,v-w,N-E+_,v-w,N-E+k,3,!0),this.v.setTripleAt(v-w,N+E-_,v-w,N+E-k,v-w,N+E-_,4,!0),this.v.setTripleAt(v-w+_,N+E,v-w+_,N+E,v-w+k,N+E,5,!0),this.v.setTripleAt(v+w-_,N+E,v+w-k,N+E,v+w-_,N+E,6,!0),this.v.setTripleAt(v+w,N+E-_,v+w,N+E-_,v+w,N+E-k,7,!0)):(this.v.setTripleAt(v-w,N-E,v-w+k,N-E,v-w,N-E,1,!0),this.v.setTripleAt(v-w,N+E,v-w,N+E-k,v-w,N+E,2,!0),this.v.setTripleAt(v+w,N+E,v+w-k,N+E,v+w,N+E,3,!0)))},getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertRectToPath())},reset:i},extendPrototype([DynamicPropertyContainer],g),g})();function y(g,b,v){var N;if(v===3||v===4){var w=v===3?b.pt:b.ks,E=w.k;E.length?N=new u(g,b,v):N=new l(g,b,v)}else v===5?N=new h(g,b):v===6?N=new d(g,b):v===7&&(N=new p(g,b));return N.k&&g.addDynamicProperty(N),N}function f(){return l}function m(){return u}var C={};return C.getShapeProp=y,C.getConstructorFunction=f,C.getKeyframedConstructorFunction=m,C})();var Matrix=(function(){var e=Math.cos,t=Math.sin,n=Math.tan,i=Math.round;function s(){return this.props[0]=1,this.props[1]=0,this.props[2]=0,this.props[3]=0,this.props[4]=0,this.props[5]=1,this.props[6]=0,this.props[7]=0,this.props[8]=0,this.props[9]=0,this.props[10]=1,this.props[11]=0,this.props[12]=0,this.props[13]=0,this.props[14]=0,this.props[15]=1,this}function a(x){if(x===0)return this;var S=e(x),M=t(x);return this._t(S,-M,0,0,M,S,0,0,0,0,1,0,0,0,0,1)}function o(x){if(x===0)return this;var S=e(x),M=t(x);return this._t(1,0,0,0,0,S,-M,0,0,M,S,0,0,0,0,1)}function l(x){if(x===0)return this;var S=e(x),M=t(x);return this._t(S,0,M,0,0,1,0,0,-M,0,S,0,0,0,0,1)}function c(x){if(x===0)return this;var S=e(x),M=t(x);return this._t(S,-M,0,0,M,S,0,0,0,0,1,0,0,0,0,1)}function u(x,S){return this._t(1,S,x,1,0,0)}function d(x,S){return this.shear(n(x),n(S))}function p(x,S){var M=e(S),V=t(S);return this._t(M,V,0,0,-V,M,0,0,0,0,1,0,0,0,0,1)._t(1,0,0,0,n(x),1,0,0,0,0,1,0,0,0,0,1)._t(M,-V,0,0,V,M,0,0,0,0,1,0,0,0,0,1)}function h(x,S,M){return!M&&M!==0&&(M=1),x===1&&S===1&&M===1?this:this._t(x,0,0,0,0,S,0,0,0,0,M,0,0,0,0,1)}function y(x,S,M,V,z,G,H,W,q,U,J,Q,K,X,Z,Y){return this.props[0]=x,this.props[1]=S,this.props[2]=M,this.props[3]=V,this.props[4]=z,this.props[5]=G,this.props[6]=H,this.props[7]=W,this.props[8]=q,this.props[9]=U,this.props[10]=J,this.props[11]=Q,this.props[12]=K,this.props[13]=X,this.props[14]=Z,this.props[15]=Y,this}function f(x,S,M){return M=M||0,x!==0||S!==0||M!==0?this._t(1,0,0,0,0,1,0,0,0,0,1,0,x,S,M,1):this}function m(x,S,M,V,z,G,H,W,q,U,J,Q,K,X,Z,Y){var j=this.props;if(x===1&&S===0&&M===0&&V===0&&z===0&&G===1&&H===0&&W===0&&q===0&&U===0&&J===1&&Q===0)return j[12]=j[12]*x+j[15]*K,j[13]=j[13]*G+j[15]*X,j[14]=j[14]*J+j[15]*Z,j[15]*=Y,this._identityCalculated=!1,this;var ae=j[0],ue=j[1],oe=j[2],se=j[3],le=j[4],ce=j[5],ee=j[6],de=j[7],fe=j[8],re=j[9],he=j[10],ie=j[11],pe=j[12],ve=j[13],ye=j[14],be=j[15];return j[0]=ae*x+ue*z+oe*q+se*K,j[1]=ae*S+ue*G+oe*U+se*X,j[2]=ae*M+ue*H+oe*J+se*Z,j[3]=ae*V+ue*W+oe*Q+se*Y,j[4]=le*x+ce*z+ee*q+de*K,j[5]=le*S+ce*G+ee*U+de*X,j[6]=le*M+ce*H+ee*J+de*Z,j[7]=le*V+ce*W+ee*Q+de*Y,j[8]=fe*x+re*z+he*q+ie*K,j[9]=fe*S+re*G+he*U+ie*X,j[10]=fe*M+re*H+he*J+ie*Z,j[11]=fe*V+re*W+he*Q+ie*Y,j[12]=pe*x+ve*z+ye*q+be*K,j[13]=pe*S+ve*G+ye*U+be*X,j[14]=pe*M+ve*H+ye*J+be*Z,j[15]=pe*V+ve*W+ye*Q+be*Y,this._identityCalculated=!1,this}function C(x){var S=x.props;return this.transform(S[0],S[1],S[2],S[3],S[4],S[5],S[6],S[7],S[8],S[9],S[10],S[11],S[12],S[13],S[14],S[15])}function g(){return this._identityCalculated||(this._identity=!(this.props[0]!==1||this.props[1]!==0||this.props[2]!==0||this.props[3]!==0||this.props[4]!==0||this.props[5]!==1||this.props[6]!==0||this.props[7]!==0||this.props[8]!==0||this.props[9]!==0||this.props[10]!==1||this.props[11]!==0||this.props[12]!==0||this.props[13]!==0||this.props[14]!==0||this.props[15]!==1),this._identityCalculated=!0),this._identity}function b(x){for(var S=0;S<16;){if(x.props[S]!==this.props[S])return!1;S+=1}return!0}function v(x){var S;for(S=0;S<16;S+=1)x.props[S]=this.props[S];return x}function N(x){var S;for(S=0;S<16;S+=1)this.props[S]=x[S]}function w(x,S,M){return{x:x*this.props[0]+S*this.props[4]+M*this.props[8]+this.props[12],y:x*this.props[1]+S*this.props[5]+M*this.props[9]+this.props[13],z:x*this.props[2]+S*this.props[6]+M*this.props[10]+this.props[14]}}function E(x,S,M){return x*this.props[0]+S*this.props[4]+M*this.props[8]+this.props[12]}function _(x,S,M){return x*this.props[1]+S*this.props[5]+M*this.props[9]+this.props[13]}function k(x,S,M){return x*this.props[2]+S*this.props[6]+M*this.props[10]+this.props[14]}function A(){var x=this.props[0]*this.props[5]-this.props[1]*this.props[4],S=this.props[5]/x,M=-this.props[1]/x,V=-this.props[4]/x,z=this.props[0]/x,G=(this.props[4]*this.props[13]-this.props[5]*this.props[12])/x,H=-(this.props[0]*this.props[13]-this.props[1]*this.props[12])/x,W=new Matrix;return W.props[0]=S,W.props[1]=M,W.props[4]=V,W.props[5]=z,W.props[12]=G,W.props[13]=H,W}function F(x){var S=this.getInverseMatrix();return S.applyToPointArray(x[0],x[1],x[2]||0)}function B(x){var S,M=x.length,V=[];for(S=0;S<M;S+=1)V[S]=F(x[S]);return V}function I(x,S,M){var V=createTypedArray("float32",6);if(this.isIdentity())V[0]=x[0],V[1]=x[1],V[2]=S[0],V[3]=S[1],V[4]=M[0],V[5]=M[1];else{var z=this.props[0],G=this.props[1],H=this.props[4],W=this.props[5],q=this.props[12],U=this.props[13];V[0]=x[0]*z+x[1]*H+q,V[1]=x[0]*G+x[1]*W+U,V[2]=S[0]*z+S[1]*H+q,V[3]=S[0]*G+S[1]*W+U,V[4]=M[0]*z+M[1]*H+q,V[5]=M[0]*G+M[1]*W+U}return V}function D(x,S,M){var V;return this.isIdentity()?V=[x,S,M]:V=[x*this.props[0]+S*this.props[4]+M*this.props[8]+this.props[12],x*this.props[1]+S*this.props[5]+M*this.props[9]+this.props[13],x*this.props[2]+S*this.props[6]+M*this.props[10]+this.props[14]],V}function L(x,S){if(this.isIdentity())return x+","+S;var M=this.props;return Math.round((x*M[0]+S*M[4]+M[12])*100)/100+","+Math.round((x*M[1]+S*M[5]+M[13])*100)/100}function $(){for(var x=0,S=this.props,M="matrix3d(",V=1e4;x<16;)M+=i(S[x]*V)/V,M+=x===15?")":",",x+=1;return M}function P(x){var S=1e4;return x<1e-6&&x>0||x>-1e-6&&x<0?i(x*S)/S:x}function T(){var x=this.props,S=P(x[0]),M=P(x[1]),V=P(x[4]),z=P(x[5]),G=P(x[12]),H=P(x[13]);return"matrix("+S+","+M+","+V+","+z+","+G+","+H+")"}return function(){this.reset=s,this.rotate=a,this.rotateX=o,this.rotateY=l,this.rotateZ=c,this.skew=d,this.skewFromAxis=p,this.shear=u,this.scale=h,this.setTransform=y,this.translate=f,this.transform=m,this.multiply=C,this.applyToPoint=w,this.applyToX=E,this.applyToY=_,this.applyToZ=k,this.applyToPointArray=D,this.applyToTriplePoints=I,this.applyToPointStringified=L,this.toCSS=$,this.to2dCSS=T,this.clone=v,this.cloneFromProps=N,this.equals=b,this.inversePoints=B,this.inversePoint=F,this.getInverseMatrix=A,this._t=this.transform,this.isIdentity=g,this._identity=!0,this._identityCalculated=!1,this.props=createTypedArray("float32",16),this.reset()}})();function _typeof$3(e){"@babel/helpers - typeof";return _typeof$3=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$3(e)}var lottie={};function setLocation(e){setLocationHref(e)}function searchAnimations(){animationManager.searchAnimations()}function setSubframeRendering(e){setSubframeEnabled(e)}function setPrefix(e){setIdPrefix(e)}function loadAnimation(e){return animationManager.loadAnimation(e)}function setQuality(e){if(typeof e=="string")switch(e){case"high":setDefaultCurveSegments(200);break;default:case"medium":setDefaultCurveSegments(50);break;case"low":setDefaultCurveSegments(10);break}else!isNaN(e)&&e>1&&setDefaultCurveSegments(e)}function inBrowser(){return typeof navigator<"u"}function installPlugin(e,t){e==="expressions"&&setExpressionsPlugin(t)}function getFactory(e){switch(e){case"propertyFactory":return PropertyFactory;case"shapePropertyFactory":return ShapePropertyFactory;case"matrix":return Matrix;default:return null}}lottie.play=animationManager.play,lottie.pause=animationManager.pause,lottie.setLocationHref=setLocation,lottie.togglePause=animationManager.togglePause,lottie.setSpeed=animationManager.setSpeed,lottie.setDirection=animationManager.setDirection,lottie.stop=animationManager.stop,lottie.searchAnimations=searchAnimations,lottie.registerAnimation=animationManager.registerAnimation,lottie.loadAnimation=loadAnimation,lottie.setSubframeRendering=setSubframeRendering,lottie.resize=animationManager.resize,lottie.goToAndStop=animationManager.goToAndStop,lottie.destroy=animationManager.destroy,lottie.setQuality=setQuality,lottie.inBrowser=inBrowser,lottie.installPlugin=installPlugin,lottie.freeze=animationManager.freeze,lottie.unfreeze=animationManager.unfreeze,lottie.setVolume=animationManager.setVolume,lottie.mute=animationManager.mute,lottie.unmute=animationManager.unmute,lottie.getRegisteredAnimations=animationManager.getRegisteredAnimations,lottie.useWebWorker=setWebWorker,lottie.setIDPrefix=setPrefix,lottie.__getFactory=getFactory,lottie.version="5.13.0";function checkReady(){document.readyState==="complete"&&(clearInterval(readyStateCheckInterval),searchAnimations())}function getQueryVariable(e){for(var t=queryString.split("&"),n=0;n<t.length;n+=1){var i=t[n].split("=");if(decodeURIComponent(i[0])==e)return decodeURIComponent(i[1])}return null}var queryString="";{var scripts=document.getElementsByTagName("script"),index=scripts.length-1,myScript=scripts[index]||{src:""};queryString=myScript.src?myScript.src.replace(/^[^\?]+\??/,""):"",getQueryVariable("renderer")}var readyStateCheckInterval=setInterval(checkReady,100);try{_typeof$3(exports$1)!=="object"&&(window.bodymovin=lottie)}catch(e){}var ShapeModifiers=(function(){var e={},t={};e.registerModifier=n,e.getModifier=i;function n(s,a){t[s]||(t[s]=a)}function i(s,a,o){return new t[s](a,o)}return e})();function ShapeModifier(){}ShapeModifier.prototype.initModifierProperties=function(){},ShapeModifier.prototype.addShapeToModifier=function(){},ShapeModifier.prototype.addShape=function(e){if(!this.closed){e.sh.container.addDynamicProperty(e.sh);var t={shape:e.sh,data:e,localShapeCollection:shapeCollectionPool.newShapeCollection()};this.shapes.push(t),this.addShapeToModifier(t),this._isAnimated&&e.setAsAnimated()}},ShapeModifier.prototype.init=function(e,t){this.shapes=[],this.elem=e,this.initDynamicPropertyContainer(e),this.initModifierProperties(e,t),this.frameId=initialDefaultFrame,this.closed=!1,this.k=!1,this.dynamicProperties.length?this.k=!0:this.getValue(!0)},ShapeModifier.prototype.processKeys=function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties())},extendPrototype([DynamicPropertyContainer],ShapeModifier);function TrimModifier(){}extendPrototype([ShapeModifier],TrimModifier),TrimModifier.prototype.initModifierProperties=function(e,t){this.s=PropertyFactory.getProp(e,t.s,0,.01,this),this.e=PropertyFactory.getProp(e,t.e,0,.01,this),this.o=PropertyFactory.getProp(e,t.o,0,0,this),this.sValue=0,this.eValue=0,this.getValue=this.processKeys,this.m=t.m,this._isAnimated=!!this.s.effectsSequence.length||!!this.e.effectsSequence.length||!!this.o.effectsSequence.length},TrimModifier.prototype.addShapeToModifier=function(e){e.pathsData=[]},TrimModifier.prototype.calculateShapeEdges=function(e,t,n,i,s){var a=[];t<=1?a.push({s:e,e:t}):e>=1?a.push({s:e-1,e:t-1}):(a.push({s:e,e:1}),a.push({s:0,e:t-1}));var o=[],l,c=a.length,u;for(l=0;l<c;l+=1)if(u=a[l],!(u.e*s<i||u.s*s>i+n)){var d,p;u.s*s<=i?d=0:d=(u.s*s-i)/n,u.e*s>=i+n?p=1:p=(u.e*s-i)/n,o.push([d,p])}return o.length||o.push([0,0]),o},TrimModifier.prototype.releasePathsData=function(e){var t,n=e.length;for(t=0;t<n;t+=1)segmentsLengthPool.release(e[t]);return e.length=0,e},TrimModifier.prototype.processShapes=function(e){var t,n;if(this._mdf||e){var i=this.o.v%360/360;if(i<0&&(i+=1),this.s.v>1?t=1+i:this.s.v<0?t=0+i:t=this.s.v+i,this.e.v>1?n=1+i:this.e.v<0?n=0+i:n=this.e.v+i,t>n){var s=t;t=n,n=s}t=Math.round(t*1e4)*1e-4,n=Math.round(n*1e4)*1e-4,this.sValue=t,this.eValue=n}else t=this.sValue,n=this.eValue;var a,o,l=this.shapes.length,c,u,d,p,h,y=0;if(n===t)for(o=0;o<l;o+=1)this.shapes[o].localShapeCollection.releaseShapes(),this.shapes[o].shape._mdf=!0,this.shapes[o].shape.paths=this.shapes[o].localShapeCollection,this._mdf&&(this.shapes[o].pathsData.length=0);else if(n===1&&t===0||n===0&&t===1){if(this._mdf)for(o=0;o<l;o+=1)this.shapes[o].pathsData.length=0,this.shapes[o].shape._mdf=!0}else{var f=[],m,C;for(o=0;o<l;o+=1)if(m=this.shapes[o],!m.shape._mdf&&!this._mdf&&!e&&this.m!==2)m.shape.paths=m.localShapeCollection;else{if(a=m.shape.paths,u=a._length,h=0,!m.shape._mdf&&m.pathsData.length)h=m.totalShapeLength;else{for(d=this.releasePathsData(m.pathsData),c=0;c<u;c+=1)p=bez.getSegmentsLength(a.shapes[c]),d.push(p),h+=p.totalLength;m.totalShapeLength=h,m.pathsData=d}y+=h,m.shape._mdf=!0}var g=t,b=n,v=0,N;for(o=l-1;o>=0;o-=1)if(m=this.shapes[o],m.shape._mdf){for(C=m.localShapeCollection,C.releaseShapes(),this.m===2&&l>1?(N=this.calculateShapeEdges(t,n,m.totalShapeLength,v,y),v+=m.totalShapeLength):N=[[g,b]],u=N.length,c=0;c<u;c+=1){g=N[c][0],b=N[c][1],f.length=0,b<=1?f.push({s:m.totalShapeLength*g,e:m.totalShapeLength*b}):g>=1?f.push({s:m.totalShapeLength*(g-1),e:m.totalShapeLength*(b-1)}):(f.push({s:m.totalShapeLength*g,e:m.totalShapeLength}),f.push({s:0,e:m.totalShapeLength*(b-1)}));var w=this.addShapes(m,f[0]);if(f[0].s!==f[0].e){if(f.length>1){var E=m.shape.paths.shapes[m.shape.paths._length-1];if(E.c){var _=w.pop();this.addPaths(w,C),w=this.addShapes(m,f[1],_)}else this.addPaths(w,C),w=this.addShapes(m,f[1])}this.addPaths(w,C)}}m.shape.paths=C}}},TrimModifier.prototype.addPaths=function(e,t){var n,i=e.length;for(n=0;n<i;n+=1)t.addShape(e[n])},TrimModifier.prototype.addSegment=function(e,t,n,i,s,a,o){s.setXYAt(t[0],t[1],"o",a),s.setXYAt(n[0],n[1],"i",a+1),o&&s.setXYAt(e[0],e[1],"v",a),s.setXYAt(i[0],i[1],"v",a+1)},TrimModifier.prototype.addSegmentFromArray=function(e,t,n,i){t.setXYAt(e[1],e[5],"o",n),t.setXYAt(e[2],e[6],"i",n+1),i&&t.setXYAt(e[0],e[4],"v",n),t.setXYAt(e[3],e[7],"v",n+1)},TrimModifier.prototype.addShapes=function(e,t,n){var i=e.pathsData,s=e.shape.paths.shapes,a,o=e.shape.paths._length,l,c,u=0,d,p,h,y,f=[],m,C=!0;for(n?(p=n._length,m=n._length):(n=shapePool.newElement(),p=0,m=0),f.push(n),a=0;a<o;a+=1){for(h=i[a].lengths,n.c=s[a].c,c=s[a].c?h.length:h.length+1,l=1;l<c;l+=1)if(d=h[l-1],u+d.addedLength<t.s)u+=d.addedLength,n.c=!1;else if(u>t.e){n.c=!1;break}else t.s<=u&&t.e>=u+d.addedLength?(this.addSegment(s[a].v[l-1],s[a].o[l-1],s[a].i[l],s[a].v[l],n,p,C),C=!1):(y=bez.getNewSegment(s[a].v[l-1],s[a].v[l],s[a].o[l-1],s[a].i[l],(t.s-u)/d.addedLength,(t.e-u)/d.addedLength,h[l-1]),this.addSegmentFromArray(y,n,p,C),C=!1,n.c=!1),u+=d.addedLength,p+=1;if(s[a].c&&h.length){if(d=h[l-1],u<=t.e){var g=h[l-1].addedLength;t.s<=u&&t.e>=u+g?(this.addSegment(s[a].v[l-1],s[a].o[l-1],s[a].i[0],s[a].v[0],n,p,C),C=!1):(y=bez.getNewSegment(s[a].v[l-1],s[a].v[0],s[a].o[l-1],s[a].i[0],(t.s-u)/g,(t.e-u)/g,h[l-1]),this.addSegmentFromArray(y,n,p,C),C=!1,n.c=!1)}else n.c=!1;u+=d.addedLength,p+=1}if(n._length&&(n.setXYAt(n.v[m][0],n.v[m][1],"i",m),n.setXYAt(n.v[n._length-1][0],n.v[n._length-1][1],"o",n._length-1)),u>t.e)break;a<o-1&&(n=shapePool.newElement(),C=!0,f.push(n),p=0)}return f};function PuckerAndBloatModifier(){}extendPrototype([ShapeModifier],PuckerAndBloatModifier),PuckerAndBloatModifier.prototype.initModifierProperties=function(e,t){this.getValue=this.processKeys,this.amount=PropertyFactory.getProp(e,t.a,0,null,this),this._isAnimated=!!this.amount.effectsSequence.length},PuckerAndBloatModifier.prototype.processPath=function(e,t){var n=t/100,i=[0,0],s=e._length,a=0;for(a=0;a<s;a+=1)i[0]+=e.v[a][0],i[1]+=e.v[a][1];i[0]/=s,i[1]/=s;var o=shapePool.newElement();o.c=e.c;var l,c,u,d,p,h;for(a=0;a<s;a+=1)l=e.v[a][0]+(i[0]-e.v[a][0])*n,c=e.v[a][1]+(i[1]-e.v[a][1])*n,u=e.o[a][0]+(i[0]-e.o[a][0])*-n,d=e.o[a][1]+(i[1]-e.o[a][1])*-n,p=e.i[a][0]+(i[0]-e.i[a][0])*-n,h=e.i[a][1]+(i[1]-e.i[a][1])*-n,o.setTripleAt(l,c,u,d,p,h,a);return o},PuckerAndBloatModifier.prototype.processShapes=function(e){var t,n,i=this.shapes.length,s,a,o=this.amount.v;if(o!==0){var l,c;for(n=0;n<i;n+=1){if(l=this.shapes[n],c=l.localShapeCollection,!(!l.shape._mdf&&!this._mdf&&!e))for(c.releaseShapes(),l.shape._mdf=!0,t=l.shape.paths.shapes,a=l.shape.paths._length,s=0;s<a;s+=1)c.addShape(this.processPath(t[s],o));l.shape.paths=l.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};var TransformPropertyFactory=(function(){var e=[0,0];function t(c){var u=this._mdf;this.iterateDynamicProperties(),this._mdf=this._mdf||u,this.a&&c.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.s&&c.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.sk&&c.skewFromAxis(-this.sk.v,this.sa.v),this.r?c.rotate(-this.r.v):c.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.data.p.s?this.data.p.z?c.translate(this.px.v,this.py.v,-this.pz.v):c.translate(this.px.v,this.py.v,0):c.translate(this.p.v[0],this.p.v[1],-this.p.v[2])}function n(c){if(this.elem.globalData.frameId!==this.frameId){if(this._isDirty&&(this.precalculateMatrix(),this._isDirty=!1),this.iterateDynamicProperties(),this._mdf||c){var u;if(this.v.cloneFromProps(this.pre.props),this.appliedTransformations<1&&this.v.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.appliedTransformations<2&&this.v.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.sk&&this.appliedTransformations<3&&this.v.skewFromAxis(-this.sk.v,this.sa.v),this.r&&this.appliedTransformations<4?this.v.rotate(-this.r.v):!this.r&&this.appliedTransformations<4&&this.v.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.autoOriented){var d,p;if(u=this.elem.globalData.frameRate,this.p&&this.p.keyframes&&this.p.getValueAtTime)this.p._caching.lastFrame+this.p.offsetTime<=this.p.keyframes[0].t?(d=this.p.getValueAtTime((this.p.keyframes[0].t+.01)/u,0),p=this.p.getValueAtTime(this.p.keyframes[0].t/u,0)):this.p._caching.lastFrame+this.p.offsetTime>=this.p.keyframes[this.p.keyframes.length-1].t?(d=this.p.getValueAtTime(this.p.keyframes[this.p.keyframes.length-1].t/u,0),p=this.p.getValueAtTime((this.p.keyframes[this.p.keyframes.length-1].t-.05)/u,0)):(d=this.p.pv,p=this.p.getValueAtTime((this.p._caching.lastFrame+this.p.offsetTime-.01)/u,this.p.offsetTime));else if(this.px&&this.px.keyframes&&this.py.keyframes&&this.px.getValueAtTime&&this.py.getValueAtTime){d=[],p=[];var h=this.px,y=this.py;h._caching.lastFrame+h.offsetTime<=h.keyframes[0].t?(d[0]=h.getValueAtTime((h.keyframes[0].t+.01)/u,0),d[1]=y.getValueAtTime((y.keyframes[0].t+.01)/u,0),p[0]=h.getValueAtTime(h.keyframes[0].t/u,0),p[1]=y.getValueAtTime(y.keyframes[0].t/u,0)):h._caching.lastFrame+h.offsetTime>=h.keyframes[h.keyframes.length-1].t?(d[0]=h.getValueAtTime(h.keyframes[h.keyframes.length-1].t/u,0),d[1]=y.getValueAtTime(y.keyframes[y.keyframes.length-1].t/u,0),p[0]=h.getValueAtTime((h.keyframes[h.keyframes.length-1].t-.01)/u,0),p[1]=y.getValueAtTime((y.keyframes[y.keyframes.length-1].t-.01)/u,0)):(d=[h.pv,y.pv],p[0]=h.getValueAtTime((h._caching.lastFrame+h.offsetTime-.01)/u,h.offsetTime),p[1]=y.getValueAtTime((y._caching.lastFrame+y.offsetTime-.01)/u,y.offsetTime))}else p=e,d=p;this.v.rotate(-Math.atan2(d[1]-p[1],d[0]-p[0]))}this.data.p&&this.data.p.s?this.data.p.z?this.v.translate(this.px.v,this.py.v,-this.pz.v):this.v.translate(this.px.v,this.py.v,0):this.v.translate(this.p.v[0],this.p.v[1],-this.p.v[2])}this.frameId=this.elem.globalData.frameId}}function i(){if(this.appliedTransformations=0,this.pre.reset(),!this.a.effectsSequence.length)this.pre.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.appliedTransformations=1;else return;if(!this.s.effectsSequence.length)this.pre.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.appliedTransformations=2;else return;if(this.sk)if(!this.sk.effectsSequence.length&&!this.sa.effectsSequence.length)this.pre.skewFromAxis(-this.sk.v,this.sa.v),this.appliedTransformations=3;else return;this.r?this.r.effectsSequence.length||(this.pre.rotate(-this.r.v),this.appliedTransformations=4):!this.rz.effectsSequence.length&&!this.ry.effectsSequence.length&&!this.rx.effectsSequence.length&&!this.or.effectsSequence.length&&(this.pre.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.appliedTransformations=4)}function s(){}function a(c){this._addDynamicProperty(c),this.elem.addDynamicProperty(c),this._isDirty=!0}function o(c,u,d){if(this.elem=c,this.frameId=-1,this.propType="transform",this.data=u,this.v=new Matrix,this.pre=new Matrix,this.appliedTransformations=0,this.initDynamicPropertyContainer(d||c),u.p&&u.p.s?(this.px=PropertyFactory.getProp(c,u.p.x,0,0,this),this.py=PropertyFactory.getProp(c,u.p.y,0,0,this),u.p.z&&(this.pz=PropertyFactory.getProp(c,u.p.z,0,0,this))):this.p=PropertyFactory.getProp(c,u.p||{k:[0,0,0]},1,0,this),u.rx){if(this.rx=PropertyFactory.getProp(c,u.rx,0,degToRads,this),this.ry=PropertyFactory.getProp(c,u.ry,0,degToRads,this),this.rz=PropertyFactory.getProp(c,u.rz,0,degToRads,this),u.or.k[0].ti){var p,h=u.or.k.length;for(p=0;p<h;p+=1)u.or.k[p].to=null,u.or.k[p].ti=null}this.or=PropertyFactory.getProp(c,u.or,1,degToRads,this),this.or.sh=!0}else this.r=PropertyFactory.getProp(c,u.r||{k:0},0,degToRads,this);u.sk&&(this.sk=PropertyFactory.getProp(c,u.sk,0,degToRads,this),this.sa=PropertyFactory.getProp(c,u.sa,0,degToRads,this)),this.a=PropertyFactory.getProp(c,u.a||{k:[0,0,0]},1,0,this),this.s=PropertyFactory.getProp(c,u.s||{k:[100,100,100]},1,.01,this),u.o?this.o=PropertyFactory.getProp(c,u.o,0,.01,c):this.o={_mdf:!1,v:1},this._isDirty=!0,this.dynamicProperties.length||this.getValue(!0)}o.prototype={applyToMatrix:t,getValue:n,precalculateMatrix:i,autoOrient:s},extendPrototype([DynamicPropertyContainer],o),o.prototype.addDynamicProperty=a,o.prototype._addDynamicProperty=DynamicPropertyContainer.prototype.addDynamicProperty;function l(c,u,d){return new o(c,u,d)}return{getTransformProperty:l}})();function RepeaterModifier(){}extendPrototype([ShapeModifier],RepeaterModifier),RepeaterModifier.prototype.initModifierProperties=function(e,t){this.getValue=this.processKeys,this.c=PropertyFactory.getProp(e,t.c,0,null,this),this.o=PropertyFactory.getProp(e,t.o,0,null,this),this.tr=TransformPropertyFactory.getTransformProperty(e,t.tr,this),this.so=PropertyFactory.getProp(e,t.tr.so,0,.01,this),this.eo=PropertyFactory.getProp(e,t.tr.eo,0,.01,this),this.data=t,this.dynamicProperties.length||this.getValue(!0),this._isAnimated=!!this.dynamicProperties.length,this.pMatrix=new Matrix,this.rMatrix=new Matrix,this.sMatrix=new Matrix,this.tMatrix=new Matrix,this.matrix=new Matrix},RepeaterModifier.prototype.applyTransforms=function(e,t,n,i,s,a){var o=a?-1:1,l=i.s.v[0]+(1-i.s.v[0])*(1-s),c=i.s.v[1]+(1-i.s.v[1])*(1-s);e.translate(i.p.v[0]*o*s,i.p.v[1]*o*s,i.p.v[2]),t.translate(-i.a.v[0],-i.a.v[1],i.a.v[2]),t.rotate(-i.r.v*o*s),t.translate(i.a.v[0],i.a.v[1],i.a.v[2]),n.translate(-i.a.v[0],-i.a.v[1],i.a.v[2]),n.scale(a?1/l:l,a?1/c:c),n.translate(i.a.v[0],i.a.v[1],i.a.v[2])},RepeaterModifier.prototype.init=function(e,t,n,i){for(this.elem=e,this.arr=t,this.pos=n,this.elemsData=i,this._currentCopies=0,this._elements=[],this._groups=[],this.frameId=-1,this.initDynamicPropertyContainer(e),this.initModifierProperties(e,t[n]);n>0;)n-=1,this._elements.unshift(t[n]);this.dynamicProperties.length?this.k=!0:this.getValue(!0)},RepeaterModifier.prototype.resetElements=function(e){var t,n=e.length;for(t=0;t<n;t+=1)e[t]._processed=!1,e[t].ty==="gr"&&this.resetElements(e[t].it)},RepeaterModifier.prototype.cloneElements=function(e){var t=JSON.parse(JSON.stringify(e));return this.resetElements(t),t},RepeaterModifier.prototype.changeGroupRender=function(e,t){var n,i=e.length;for(n=0;n<i;n+=1)e[n]._render=t,e[n].ty==="gr"&&this.changeGroupRender(e[n].it,t)},RepeaterModifier.prototype.processShapes=function(e){var t,n,i,s,a,o=!1;if(this._mdf||e){var l=Math.ceil(this.c.v);if(this._groups.length<l){for(;this._groups.length<l;){var c={it:this.cloneElements(this._elements),ty:"gr"};c.it.push({a:{a:0,ix:1,k:[0,0]},nm:"Transform",o:{a:0,ix:7,k:100},p:{a:0,ix:2,k:[0,0]},r:{a:1,ix:6,k:[{s:0,e:0,t:0},{s:0,e:0,t:1}]},s:{a:0,ix:3,k:[100,100]},sa:{a:0,ix:5,k:0},sk:{a:0,ix:4,k:0},ty:"tr"}),this.arr.splice(0,0,c),this._groups.splice(0,0,c),this._currentCopies+=1}this.elem.reloadShapes(),o=!0}a=0;var u;for(i=0;i<=this._groups.length-1;i+=1){if(u=a<l,this._groups[i]._render=u,this.changeGroupRender(this._groups[i].it,u),!u){var d=this.elemsData[i].it,p=d[d.length-1];p.transform.op.v!==0?(p.transform.op._mdf=!0,p.transform.op.v=0):p.transform.op._mdf=!1}a+=1}this._currentCopies=l;var h=this.o.v,y=h%1,f=h>0?Math.floor(h):Math.ceil(h),m=this.pMatrix.props,C=this.rMatrix.props,g=this.sMatrix.props;this.pMatrix.reset(),this.rMatrix.reset(),this.sMatrix.reset(),this.tMatrix.reset(),this.matrix.reset();var b=0;if(h>0){for(;b<f;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),b+=1;y&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,y,!1),b+=y)}else if(h<0){for(;b>f;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!0),b-=1;y&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,-y,!0),b-=y)}i=this.data.m===1?0:this._currentCopies-1,s=this.data.m===1?1:-1,a=this._currentCopies;for(var v,N;a;){if(t=this.elemsData[i].it,n=t[t.length-1].transform.mProps.v.props,N=n.length,t[t.length-1].transform.mProps._mdf=!0,t[t.length-1].transform.op._mdf=!0,t[t.length-1].transform.op.v=this._currentCopies===1?this.so.v:this.so.v+(this.eo.v-this.so.v)*(i/(this._currentCopies-1)),b!==0){for((i!==0&&s===1||i!==this._currentCopies-1&&s===-1)&&this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),this.matrix.transform(C[0],C[1],C[2],C[3],C[4],C[5],C[6],C[7],C[8],C[9],C[10],C[11],C[12],C[13],C[14],C[15]),this.matrix.transform(g[0],g[1],g[2],g[3],g[4],g[5],g[6],g[7],g[8],g[9],g[10],g[11],g[12],g[13],g[14],g[15]),this.matrix.transform(m[0],m[1],m[2],m[3],m[4],m[5],m[6],m[7],m[8],m[9],m[10],m[11],m[12],m[13],m[14],m[15]),v=0;v<N;v+=1)n[v]=this.matrix.props[v];this.matrix.reset()}else for(this.matrix.reset(),v=0;v<N;v+=1)n[v]=this.matrix.props[v];b+=1,a-=1,i+=s}}else for(a=this._currentCopies,i=0,s=1;a;)t=this.elemsData[i].it,n=t[t.length-1].transform.mProps.v.props,t[t.length-1].transform.mProps._mdf=!1,t[t.length-1].transform.op._mdf=!1,a-=1,i+=s;return o},RepeaterModifier.prototype.addShape=function(){};function RoundCornersModifier(){}extendPrototype([ShapeModifier],RoundCornersModifier),RoundCornersModifier.prototype.initModifierProperties=function(e,t){this.getValue=this.processKeys,this.rd=PropertyFactory.getProp(e,t.r,0,null,this),this._isAnimated=!!this.rd.effectsSequence.length},RoundCornersModifier.prototype.processPath=function(e,t){var n=shapePool.newElement();n.c=e.c;var i,s=e._length,a,o,l,c,u,d,p=0,h,y,f,m,C,g;for(i=0;i<s;i+=1)a=e.v[i],l=e.o[i],o=e.i[i],a[0]===l[0]&&a[1]===l[1]&&a[0]===o[0]&&a[1]===o[1]?(i===0||i===s-1)&&!e.c?(n.setTripleAt(a[0],a[1],l[0],l[1],o[0],o[1],p),p+=1):(i===0?c=e.v[s-1]:c=e.v[i-1],u=Math.sqrt(Math.pow(a[0]-c[0],2)+Math.pow(a[1]-c[1],2)),d=u?Math.min(u/2,t)/u:0,C=a[0]+(c[0]-a[0])*d,h=C,g=a[1]-(a[1]-c[1])*d,y=g,f=h-(h-a[0])*roundCorner,m=y-(y-a[1])*roundCorner,n.setTripleAt(h,y,f,m,C,g,p),p+=1,i===s-1?c=e.v[0]:c=e.v[i+1],u=Math.sqrt(Math.pow(a[0]-c[0],2)+Math.pow(a[1]-c[1],2)),d=u?Math.min(u/2,t)/u:0,f=a[0]+(c[0]-a[0])*d,h=f,m=a[1]+(c[1]-a[1])*d,y=m,C=h-(h-a[0])*roundCorner,g=y-(y-a[1])*roundCorner,n.setTripleAt(h,y,f,m,C,g,p),p+=1):(n.setTripleAt(e.v[i][0],e.v[i][1],e.o[i][0],e.o[i][1],e.i[i][0],e.i[i][1],p),p+=1);return n},RoundCornersModifier.prototype.processShapes=function(e){var t,n,i=this.shapes.length,s,a,o=this.rd.v;if(o!==0){var l,c;for(n=0;n<i;n+=1){if(l=this.shapes[n],c=l.localShapeCollection,!(!l.shape._mdf&&!this._mdf&&!e))for(c.releaseShapes(),l.shape._mdf=!0,t=l.shape.paths.shapes,a=l.shape.paths._length,s=0;s<a;s+=1)c.addShape(this.processPath(t[s],o));l.shape.paths=l.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};function floatEqual(e,t){return Math.abs(e-t)*1e5<=Math.min(Math.abs(e),Math.abs(t))}function floatZero(e){return Math.abs(e)<=1e-5}function lerp(e,t,n){return e*(1-n)+t*n}function lerpPoint(e,t,n){return[lerp(e[0],t[0],n),lerp(e[1],t[1],n)]}function quadRoots(e,t,n){if(e===0)return[];var i=t*t-4*e*n;if(i<0)return[];var s=-t/(2*e);if(i===0)return[s];var a=Math.sqrt(i)/(2*e);return[s-a,s+a]}function polynomialCoefficients(e,t,n,i){return[-e+3*t-3*n+i,3*e-6*t+3*n,-3*e+3*t,e]}function singlePoint(e){return new PolynomialBezier(e,e,e,e,!1)}function PolynomialBezier(e,t,n,i,s){s&&pointEqual(e,t)&&(t=lerpPoint(e,i,1/3)),s&&pointEqual(n,i)&&(n=lerpPoint(e,i,2/3));var a=polynomialCoefficients(e[0],t[0],n[0],i[0]),o=polynomialCoefficients(e[1],t[1],n[1],i[1]);this.a=[a[0],o[0]],this.b=[a[1],o[1]],this.c=[a[2],o[2]],this.d=[a[3],o[3]],this.points=[e,t,n,i]}PolynomialBezier.prototype.point=function(e){return[((this.a[0]*e+this.b[0])*e+this.c[0])*e+this.d[0],((this.a[1]*e+this.b[1])*e+this.c[1])*e+this.d[1]]},PolynomialBezier.prototype.derivative=function(e){return[(3*e*this.a[0]+2*this.b[0])*e+this.c[0],(3*e*this.a[1]+2*this.b[1])*e+this.c[1]]},PolynomialBezier.prototype.tangentAngle=function(e){var t=this.derivative(e);return Math.atan2(t[1],t[0])},PolynomialBezier.prototype.normalAngle=function(e){var t=this.derivative(e);return Math.atan2(t[0],t[1])},PolynomialBezier.prototype.inflectionPoints=function(){var e=this.a[1]*this.b[0]-this.a[0]*this.b[1];if(floatZero(e))return[];var t=-.5*(this.a[1]*this.c[0]-this.a[0]*this.c[1])/e,n=t*t-1/3*(this.b[1]*this.c[0]-this.b[0]*this.c[1])/e;if(n<0)return[];var i=Math.sqrt(n);return floatZero(i)?i>0&&i<1?[t]:[]:[t-i,t+i].filter(function(s){return s>0&&s<1})},PolynomialBezier.prototype.split=function(e){if(e<=0)return[singlePoint(this.points[0]),this];if(e>=1)return[this,singlePoint(this.points[this.points.length-1])];var t=lerpPoint(this.points[0],this.points[1],e),n=lerpPoint(this.points[1],this.points[2],e),i=lerpPoint(this.points[2],this.points[3],e),s=lerpPoint(t,n,e),a=lerpPoint(n,i,e),o=lerpPoint(s,a,e);return[new PolynomialBezier(this.points[0],t,s,o,!0),new PolynomialBezier(o,a,i,this.points[3],!0)]};function extrema(e,t){var n=e.points[0][t],i=e.points[e.points.length-1][t];if(n>i){var s=i;i=n,n=s}for(var a=quadRoots(3*e.a[t],2*e.b[t],e.c[t]),o=0;o<a.length;o+=1)if(a[o]>0&&a[o]<1){var l=e.point(a[o])[t];l<n?n=l:l>i&&(i=l)}return{min:n,max:i}}PolynomialBezier.prototype.bounds=function(){return{x:extrema(this,0),y:extrema(this,1)}},PolynomialBezier.prototype.boundingBox=function(){var e=this.bounds();return{left:e.x.min,right:e.x.max,top:e.y.min,bottom:e.y.max,width:e.x.max-e.x.min,height:e.y.max-e.y.min,cx:(e.x.max+e.x.min)/2,cy:(e.y.max+e.y.min)/2}};function intersectData(e,t,n){var i=e.boundingBox();return{cx:i.cx,cy:i.cy,width:i.width,height:i.height,bez:e,t:(t+n)/2,t1:t,t2:n}}function splitData(e){var t=e.bez.split(.5);return[intersectData(t[0],e.t1,e.t),intersectData(t[1],e.t,e.t2)]}function boxIntersect(e,t){return Math.abs(e.cx-t.cx)*2<e.width+t.width&&Math.abs(e.cy-t.cy)*2<e.height+t.height}function intersectsImpl(e,t,n,i,s,a){if(boxIntersect(e,t)){if(n>=a||e.width<=i&&e.height<=i&&t.width<=i&&t.height<=i){s.push([e.t,t.t]);return}var o=splitData(e),l=splitData(t);intersectsImpl(o[0],l[0],n+1,i,s,a),intersectsImpl(o[0],l[1],n+1,i,s,a),intersectsImpl(o[1],l[0],n+1,i,s,a),intersectsImpl(o[1],l[1],n+1,i,s,a)}}PolynomialBezier.prototype.intersections=function(e,t,n){t===void 0&&(t=2),n===void 0&&(n=7);var i=[];return intersectsImpl(intersectData(this,0,1),intersectData(e,0,1),0,t,i,n),i},PolynomialBezier.shapeSegment=function(e,t){var n=(t+1)%e.length();return new PolynomialBezier(e.v[t],e.o[t],e.i[n],e.v[n],!0)},PolynomialBezier.shapeSegmentInverted=function(e,t){var n=(t+1)%e.length();return new PolynomialBezier(e.v[n],e.i[n],e.o[t],e.v[t],!0)};function crossProduct(e,t){return[e[1]*t[2]-e[2]*t[1],e[2]*t[0]-e[0]*t[2],e[0]*t[1]-e[1]*t[0]]}function lineIntersection(e,t,n,i){var s=[e[0],e[1],1],a=[t[0],t[1],1],o=[n[0],n[1],1],l=[i[0],i[1],1],c=crossProduct(crossProduct(s,a),crossProduct(o,l));return floatZero(c[2])?null:[c[0]/c[2],c[1]/c[2]]}function polarOffset(e,t,n){return[e[0]+Math.cos(t)*n,e[1]-Math.sin(t)*n]}function pointDistance(e,t){return Math.hypot(e[0]-t[0],e[1]-t[1])}function pointEqual(e,t){return floatEqual(e[0],t[0])&&floatEqual(e[1],t[1])}function ZigZagModifier(){}extendPrototype([ShapeModifier],ZigZagModifier),ZigZagModifier.prototype.initModifierProperties=function(e,t){this.getValue=this.processKeys,this.amplitude=PropertyFactory.getProp(e,t.s,0,null,this),this.frequency=PropertyFactory.getProp(e,t.r,0,null,this),this.pointsType=PropertyFactory.getProp(e,t.pt,0,null,this),this._isAnimated=this.amplitude.effectsSequence.length!==0||this.frequency.effectsSequence.length!==0||this.pointsType.effectsSequence.length!==0};function setPoint(e,t,n,i,s,a,o){var l=n-Math.PI/2,c=n+Math.PI/2,u=t[0]+Math.cos(n)*i*s,d=t[1]-Math.sin(n)*i*s;e.setTripleAt(u,d,u+Math.cos(l)*a,d-Math.sin(l)*a,u+Math.cos(c)*o,d-Math.sin(c)*o,e.length())}function getPerpendicularVector(e,t){var n=[t[0]-e[0],t[1]-e[1]],i=-Math.PI*.5,s=[Math.cos(i)*n[0]-Math.sin(i)*n[1],Math.sin(i)*n[0]+Math.cos(i)*n[1]];return s}function getProjectingAngle(e,t){var n=t===0?e.length()-1:t-1,i=(t+1)%e.length(),s=e.v[n],a=e.v[i],o=getPerpendicularVector(s,a);return Math.atan2(0,1)-Math.atan2(o[1],o[0])}function zigZagCorner(e,t,n,i,s,a,o){var l=getProjectingAngle(t,n),c=t.v[n%t._length],u=t.v[n===0?t._length-1:n-1],d=t.v[(n+1)%t._length],p=a===2?Math.sqrt(Math.pow(c[0]-u[0],2)+Math.pow(c[1]-u[1],2)):0,h=a===2?Math.sqrt(Math.pow(c[0]-d[0],2)+Math.pow(c[1]-d[1],2)):0;setPoint(e,t.v[n%t._length],l,o,i,h/((s+1)*2),p/((s+1)*2))}function zigZagSegment(e,t,n,i,s,a){for(var o=0;o<i;o+=1){var l=(o+1)/(i+1),c=s===2?Math.sqrt(Math.pow(t.points[3][0]-t.points[0][0],2)+Math.pow(t.points[3][1]-t.points[0][1],2)):0,u=t.normalAngle(l),d=t.point(l);setPoint(e,d,u,a,n,c/((i+1)*2),c/((i+1)*2)),a=-a}return a}ZigZagModifier.prototype.processPath=function(e,t,n,i){var s=e._length,a=shapePool.newElement();if(a.c=e.c,e.c||(s-=1),s===0)return a;var o=-1,l=PolynomialBezier.shapeSegment(e,0);zigZagCorner(a,e,0,t,n,i,o);for(var c=0;c<s;c+=1)o=zigZagSegment(a,l,t,n,i,-o),c===s-1&&!e.c?l=null:l=PolynomialBezier.shapeSegment(e,(c+1)%s),zigZagCorner(a,e,c+1,t,n,i,o);return a},ZigZagModifier.prototype.processShapes=function(e){var t,n,i=this.shapes.length,s,a,o=this.amplitude.v,l=Math.max(0,Math.round(this.frequency.v)),c=this.pointsType.v;if(o!==0){var u,d;for(n=0;n<i;n+=1){if(u=this.shapes[n],d=u.localShapeCollection,!(!u.shape._mdf&&!this._mdf&&!e))for(d.releaseShapes(),u.shape._mdf=!0,t=u.shape.paths.shapes,a=u.shape.paths._length,s=0;s<a;s+=1)d.addShape(this.processPath(t[s],o,l,c));u.shape.paths=u.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};function linearOffset(e,t,n){var i=Math.atan2(t[0]-e[0],t[1]-e[1]);return[polarOffset(e,i,n),polarOffset(t,i,n)]}function offsetSegment(e,t){var n,i,s,a,o,l,c;c=linearOffset(e.points[0],e.points[1],t),n=c[0],i=c[1],c=linearOffset(e.points[1],e.points[2],t),s=c[0],a=c[1],c=linearOffset(e.points[2],e.points[3],t),o=c[0],l=c[1];var u=lineIntersection(n,i,s,a);u===null&&(u=i);var d=lineIntersection(o,l,s,a);return d===null&&(d=o),new PolynomialBezier(n,u,d,l)}function joinLines(e,t,n,i,s){var a=t.points[3],o=n.points[0];if(i===3||pointEqual(a,o))return a;if(i===2){var l=-t.tangentAngle(1),c=-n.tangentAngle(0)+Math.PI,u=lineIntersection(a,polarOffset(a,l+Math.PI/2,100),o,polarOffset(o,l+Math.PI/2,100)),d=u?pointDistance(u,a):pointDistance(a,o)/2,p=polarOffset(a,l,2*d*roundCorner);return e.setXYAt(p[0],p[1],"o",e.length()-1),p=polarOffset(o,c,2*d*roundCorner),e.setTripleAt(o[0],o[1],o[0],o[1],p[0],p[1],e.length()),o}var h=pointEqual(a,t.points[2])?t.points[0]:t.points[2],y=pointEqual(o,n.points[1])?n.points[3]:n.points[1],f=lineIntersection(h,a,o,y);return f&&pointDistance(f,a)<s?(e.setTripleAt(f[0],f[1],f[0],f[1],f[0],f[1],e.length()),f):a}function getIntersection(e,t){var n=e.intersections(t);return n.length&&floatEqual(n[0][0],1)&&n.shift(),n.length?n[0]:null}function pruneSegmentIntersection(e,t){var n=e.slice(),i=t.slice(),s=getIntersection(e[e.length-1],t[0]);return s&&(n[e.length-1]=e[e.length-1].split(s[0])[0],i[0]=t[0].split(s[1])[1]),e.length>1&&t.length>1&&(s=getIntersection(e[0],t[t.length-1]),s)?[[e[0].split(s[0])[0]],[t[t.length-1].split(s[1])[1]]]:[n,i]}function pruneIntersections(e){for(var t,n=1;n<e.length;n+=1)t=pruneSegmentIntersection(e[n-1],e[n]),e[n-1]=t[0],e[n]=t[1];return e.length>1&&(t=pruneSegmentIntersection(e[e.length-1],e[0]),e[e.length-1]=t[0],e[0]=t[1]),e}function offsetSegmentSplit(e,t){var n=e.inflectionPoints(),i,s,a,o;if(n.length===0)return[offsetSegment(e,t)];if(n.length===1||floatEqual(n[1],1))return a=e.split(n[0]),i=a[0],s=a[1],[offsetSegment(i,t),offsetSegment(s,t)];a=e.split(n[0]),i=a[0];var l=(n[1]-n[0])/(1-n[0]);return a=a[1].split(l),o=a[0],s=a[1],[offsetSegment(i,t),offsetSegment(o,t),offsetSegment(s,t)]}function OffsetPathModifier(){}extendPrototype([ShapeModifier],OffsetPathModifier),OffsetPathModifier.prototype.initModifierProperties=function(e,t){this.getValue=this.processKeys,this.amount=PropertyFactory.getProp(e,t.a,0,null,this),this.miterLimit=PropertyFactory.getProp(e,t.ml,0,null,this),this.lineJoin=t.lj,this._isAnimated=this.amount.effectsSequence.length!==0},OffsetPathModifier.prototype.processPath=function(e,t,n,i){var s=shapePool.newElement();s.c=e.c;var a=e.length();e.c||(a-=1);var o,l,c,u=[];for(o=0;o<a;o+=1)c=PolynomialBezier.shapeSegment(e,o),u.push(offsetSegmentSplit(c,t));if(!e.c)for(o=a-1;o>=0;o-=1)c=PolynomialBezier.shapeSegmentInverted(e,o),u.push(offsetSegmentSplit(c,t));u=pruneIntersections(u);var d=null,p=null;for(o=0;o<u.length;o+=1){var h=u[o];for(p&&(d=joinLines(s,p,h[0],n,i)),p=h[h.length-1],l=0;l<h.length;l+=1)c=h[l],d&&pointEqual(c.points[0],d)?s.setXYAt(c.points[1][0],c.points[1][1],"o",s.length()-1):s.setTripleAt(c.points[0][0],c.points[0][1],c.points[1][0],c.points[1][1],c.points[0][0],c.points[0][1],s.length()),s.setTripleAt(c.points[3][0],c.points[3][1],c.points[3][0],c.points[3][1],c.points[2][0],c.points[2][1],s.length()),d=c.points[3]}return u.length&&joinLines(s,p,u[0][0],n,i),s},OffsetPathModifier.prototype.processShapes=function(e){var t,n,i=this.shapes.length,s,a,o=this.amount.v,l=this.miterLimit.v,c=this.lineJoin;if(o!==0){var u,d;for(n=0;n<i;n+=1){if(u=this.shapes[n],d=u.localShapeCollection,!(!u.shape._mdf&&!this._mdf&&!e))for(d.releaseShapes(),u.shape._mdf=!0,t=u.shape.paths.shapes,a=u.shape.paths._length,s=0;s<a;s+=1)d.addShape(this.processPath(t[s],o,c,l));u.shape.paths=u.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};function getFontProperties(e){for(var t=e.fStyle?e.fStyle.split(" "):[],n="normal",i="normal",s=t.length,a,o=0;o<s;o+=1)switch(a=t[o].toLowerCase(),a){case"italic":i="italic";break;case"bold":n="700";break;case"black":n="900";break;case"medium":n="500";break;case"regular":case"normal":n="400";break;case"light":case"thin":n="200";break}return{style:i,weight:e.fWeight||n}}var FontManager=(function(){var e=5e3,t={w:0,size:0,shapes:[],data:{shapes:[]}},n=[];n=n.concat([2304,2305,2306,2307,2362,2363,2364,2364,2366,2367,2368,2369,2370,2371,2372,2373,2374,2375,2376,2377,2378,2379,2380,2381,2382,2383,2387,2388,2389,2390,2391,2402,2403]);var i=127988,s=917631,a=917601,o=917626,l=65039,c=8205,u=127462,d=127487,p=["d83cdffb","d83cdffc","d83cdffd","d83cdffe","d83cdfff"];function h(P){var T=P.split(","),x,S=T.length,M=[];for(x=0;x<S;x+=1)T[x]!=="sans-serif"&&T[x]!=="monospace"&&M.push(T[x]);return M.join(",")}function y(P,T){var x=createTag("span");x.setAttribute("aria-hidden",!0),x.style.fontFamily=T;var S=createTag("span");S.innerText="giItT1WQy@!-/#",x.style.position="absolute",x.style.left="-10000px",x.style.top="-10000px",x.style.fontSize="300px",x.style.fontVariant="normal",x.style.fontStyle="normal",x.style.fontWeight="normal",x.style.letterSpacing="0",x.appendChild(S),document.body.appendChild(x);var M=S.offsetWidth;return S.style.fontFamily=h(P)+", "+T,{node:S,w:M,parent:x}}function f(){var P,T=this.fonts.length,x,S,M=T;for(P=0;P<T;P+=1)this.fonts[P].loaded?M-=1:this.fonts[P].fOrigin==="n"||this.fonts[P].origin===0?this.fonts[P].loaded=!0:(x=this.fonts[P].monoCase.node,S=this.fonts[P].monoCase.w,x.offsetWidth!==S?(M-=1,this.fonts[P].loaded=!0):(x=this.fonts[P].sansCase.node,S=this.fonts[P].sansCase.w,x.offsetWidth!==S&&(M-=1,this.fonts[P].loaded=!0)),this.fonts[P].loaded&&(this.fonts[P].sansCase.parent.parentNode.removeChild(this.fonts[P].sansCase.parent),this.fonts[P].monoCase.parent.parentNode.removeChild(this.fonts[P].monoCase.parent)));M!==0&&Date.now()-this.initTime<e?setTimeout(this.checkLoadedFontsBinded,20):setTimeout(this.setIsLoadedBinded,10)}function m(P,T){var x=document.body&&T?"svg":"canvas",S,M=getFontProperties(P);if(x==="svg"){var V=createNS("text");V.style.fontSize="100px",V.setAttribute("font-family",P.fFamily),V.setAttribute("font-style",M.style),V.setAttribute("font-weight",M.weight),V.textContent="1",P.fClass?(V.style.fontFamily="inherit",V.setAttribute("class",P.fClass)):V.style.fontFamily=P.fFamily,T.appendChild(V),S=V}else{var z=new OffscreenCanvas(500,500).getContext("2d");z.font=M.style+" "+M.weight+" 100px "+P.fFamily,S=z}function G(H){return x==="svg"?(S.textContent=H,S.getComputedTextLength()):S.measureText(H).width}return{measureText:G}}function C(P,T){if(!P){this.isLoaded=!0;return}if(this.chars){this.isLoaded=!0,this.fonts=P.list;return}if(!document.body){this.isLoaded=!0,P.list.forEach(function(J){J.helper=m(J),J.cache={}}),this.fonts=P.list;return}var x=P.list,S,M=x.length,V=M;for(S=0;S<M;S+=1){var z=!0,G,H;if(x[S].loaded=!1,x[S].monoCase=y(x[S].fFamily,"monospace"),x[S].sansCase=y(x[S].fFamily,"sans-serif"),!x[S].fPath)x[S].loaded=!0,V-=1;else if(x[S].fOrigin==="p"||x[S].origin===3){if(G=document.querySelectorAll('style[f-forigin="p"][f-family="'+x[S].fFamily+'"], style[f-origin="3"][f-family="'+x[S].fFamily+'"]'),G.length>0&&(z=!1),z){var W=createTag("style");W.setAttribute("f-forigin",x[S].fOrigin),W.setAttribute("f-origin",x[S].origin),W.setAttribute("f-family",x[S].fFamily),W.type="text/css",W.innerText="@font-face {font-family: "+x[S].fFamily+"; font-style: normal; src: url('"+x[S].fPath+"');}",T.appendChild(W)}}else if(x[S].fOrigin==="g"||x[S].origin===1){for(G=document.querySelectorAll('link[f-forigin="g"], link[f-origin="1"]'),H=0;H<G.length;H+=1)G[H].href.indexOf(x[S].fPath)!==-1&&(z=!1);if(z){var q=createTag("link");q.setAttribute("f-forigin",x[S].fOrigin),q.setAttribute("f-origin",x[S].origin),q.type="text/css",q.rel="stylesheet",q.href=x[S].fPath,document.body.appendChild(q)}}else if(x[S].fOrigin==="t"||x[S].origin===2){for(G=document.querySelectorAll('script[f-forigin="t"], script[f-origin="2"]'),H=0;H<G.length;H+=1)x[S].fPath===G[H].src&&(z=!1);if(z){var U=createTag("link");U.setAttribute("f-forigin",x[S].fOrigin),U.setAttribute("f-origin",x[S].origin),U.setAttribute("rel","stylesheet"),U.setAttribute("href",x[S].fPath),T.appendChild(U)}}x[S].helper=m(x[S],T),x[S].cache={},this.fonts.push(x[S])}V===0?this.isLoaded=!0:setTimeout(this.checkLoadedFonts.bind(this),100)}function g(P){if(P){this.chars||(this.chars=[]);var T,x=P.length,S,M=this.chars.length,V;for(T=0;T<x;T+=1){for(S=0,V=!1;S<M;)this.chars[S].style===P[T].style&&this.chars[S].fFamily===P[T].fFamily&&this.chars[S].ch===P[T].ch&&(V=!0),S+=1;V||(this.chars.push(P[T]),M+=1)}}}function b(P,T,x){for(var S=0,M=this.chars.length;S<M;){if(this.chars[S].ch===P&&this.chars[S].style===T&&this.chars[S].fFamily===x)return this.chars[S];S+=1}return(typeof P=="string"&&P.charCodeAt(0)!==13||!P)&&console&&console.warn&&!this._warned&&(this._warned=!0,console.warn("Missing character from exported characters list: ",P,T,x)),t}function v(P,T,x){var S=this.getFontByName(T),M=P;if(!S.cache[M]){var V=S.helper;if(P===" "){var z=V.measureText("|"+P+"|"),G=V.measureText("||");S.cache[M]=(z-G)/100}else S.cache[M]=V.measureText(P)/100}return S.cache[M]*x}function N(P){for(var T=0,x=this.fonts.length;T<x;){if(this.fonts[T].fName===P)return this.fonts[T];T+=1}return this.fonts[0]}function w(P){var T=0,x=P.charCodeAt(0);if(x>=55296&&x<=56319){var S=P.charCodeAt(1);S>=56320&&S<=57343&&(T=(x-55296)*1024+S-56320+65536)}return T}function E(P,T){var x=P.toString(16)+T.toString(16);return p.indexOf(x)!==-1}function _(P){return P===c}function k(P){return P===l}function A(P){var T=w(P);return T>=u&&T<=d}function F(P){return A(P.substr(0,2))&&A(P.substr(2,2))}function B(P){return n.indexOf(P)!==-1}function I(P,T){var x=w(P.substr(T,2));if(x!==i)return!1;var S=0;for(T+=2;S<5;){if(x=w(P.substr(T,2)),x<a||x>o)return!1;S+=1,T+=2}return w(P.substr(T,2))===s}function D(){this.isLoaded=!0}var L=function(){this.fonts=[],this.chars=null,this.typekitLoaded=0,this.isLoaded=!1,this._warned=!1,this.initTime=Date.now(),this.setIsLoadedBinded=this.setIsLoaded.bind(this),this.checkLoadedFontsBinded=this.checkLoadedFonts.bind(this)};L.isModifier=E,L.isZeroWidthJoiner=_,L.isFlagEmoji=F,L.isRegionalCode=A,L.isCombinedCharacter=B,L.isRegionalFlag=I,L.isVariationSelector=k,L.BLACK_FLAG_CODE_POINT=i;var $={addChars:g,addFonts:C,getCharData:b,getFontByName:N,measureText:v,checkLoadedFonts:f,setIsLoaded:D};return L.prototype=$,L})();function SlotManager(e){this.animationData=e}SlotManager.prototype.getProp=function(e){return this.animationData.slots&&this.animationData.slots[e.sid]?Object.assign(e,this.animationData.slots[e.sid].p):e};function slotFactory(e){return new SlotManager(e)}function RenderableElement(){}RenderableElement.prototype={initRenderable:function(){this.isInRange=!1,this.hidden=!1,this.isTransparent=!1,this.renderableComponents=[]},addRenderableComponent:function(t){this.renderableComponents.indexOf(t)===-1&&this.renderableComponents.push(t)},removeRenderableComponent:function(t){this.renderableComponents.indexOf(t)!==-1&&this.renderableComponents.splice(this.renderableComponents.indexOf(t),1)},prepareRenderableFrame:function(t){this.checkLayerLimits(t)},checkTransparency:function(){this.finalTransform.mProp.o.v<=0?!this.isTransparent&&this.globalData.renderConfig.hideOnTransparent&&(this.isTransparent=!0,this.hide()):this.isTransparent&&(this.isTransparent=!1,this.show())},checkLayerLimits:function(t){this.data.ip-this.data.st<=t&&this.data.op-this.data.st>t?this.isInRange!==!0&&(this.globalData._mdf=!0,this._mdf=!0,this.isInRange=!0,this.show()):this.isInRange!==!1&&(this.globalData._mdf=!0,this.isInRange=!1,this.hide())},renderRenderable:function(){var t,n=this.renderableComponents.length;for(t=0;t<n;t+=1)this.renderableComponents[t].renderFrame(this._isFirstFrame)},sourceRectAtTime:function(){return{top:0,left:0,width:100,height:100}},getLayerSize:function(){return this.data.ty===5?{w:this.data.textData.width,h:this.data.textData.height}:{w:this.data.width,h:this.data.height}}};var getBlendMode=(function(){var e={0:"source-over",1:"multiply",2:"screen",3:"overlay",4:"darken",5:"lighten",6:"color-dodge",7:"color-burn",8:"hard-light",9:"soft-light",10:"difference",11:"exclusion",12:"hue",13:"saturation",14:"color",15:"luminosity"};return function(t){return e[t]||""}})();function SliderEffect(e,t,n){this.p=PropertyFactory.getProp(t,e.v,0,0,n)}function AngleEffect(e,t,n){this.p=PropertyFactory.getProp(t,e.v,0,0,n)}function ColorEffect(e,t,n){this.p=PropertyFactory.getProp(t,e.v,1,0,n)}function PointEffect(e,t,n){this.p=PropertyFactory.getProp(t,e.v,1,0,n)}function LayerIndexEffect(e,t,n){this.p=PropertyFactory.getProp(t,e.v,0,0,n)}function MaskIndexEffect(e,t,n){this.p=PropertyFactory.getProp(t,e.v,0,0,n)}function CheckboxEffect(e,t,n){this.p=PropertyFactory.getProp(t,e.v,0,0,n)}function NoValueEffect(){this.p={}}function EffectsManager(e,t){var n=e.ef||[];this.effectElements=[];var i,s=n.length,a;for(i=0;i<s;i+=1)a=new GroupEffect(n[i],t),this.effectElements.push(a)}function GroupEffect(e,t){this.init(e,t)}extendPrototype([DynamicPropertyContainer],GroupEffect),GroupEffect.prototype.getValue=GroupEffect.prototype.iterateDynamicProperties,GroupEffect.prototype.init=function(e,t){this.data=e,this.effectElements=[],this.initDynamicPropertyContainer(t);var n,i=this.data.ef.length,s,a=this.data.ef;for(n=0;n<i;n+=1){switch(s=null,a[n].ty){case 0:s=new SliderEffect(a[n],t,this);break;case 1:s=new AngleEffect(a[n],t,this);break;case 2:s=new ColorEffect(a[n],t,this);break;case 3:s=new PointEffect(a[n],t,this);break;case 4:case 7:s=new CheckboxEffect(a[n],t,this);break;case 10:s=new LayerIndexEffect(a[n],t,this);break;case 11:s=new MaskIndexEffect(a[n],t,this);break;case 5:s=new EffectsManager(a[n],t);break;default:s=new NoValueEffect(a[n]);break}s&&this.effectElements.push(s)}};function BaseElement(){}BaseElement.prototype={checkMasks:function(){if(!this.data.hasMask)return!1;for(var t=0,n=this.data.masksProperties.length;t<n;){if(this.data.masksProperties[t].mode!=="n"&&this.data.masksProperties[t].cl!==!1)return!0;t+=1}return!1},initExpressions:function(){var t=getExpressionInterfaces();if(t){var n=t("layer"),i=t("effects"),s=t("shape"),a=t("text"),o=t("comp");this.layerInterface=n(this),this.data.hasMask&&this.maskManager&&this.layerInterface.registerMaskInterface(this.maskManager);var l=i.createEffectsInterface(this,this.layerInterface);this.layerInterface.registerEffectsInterface(l),this.data.ty===0||this.data.xt?this.compInterface=o(this):this.data.ty===4?(this.layerInterface.shapeInterface=s(this.shapesData,this.itemsData,this.layerInterface),this.layerInterface.content=this.layerInterface.shapeInterface):this.data.ty===5&&(this.layerInterface.textInterface=a(this),this.layerInterface.text=this.layerInterface.textInterface)}},setBlendMode:function(){var t=getBlendMode(this.data.bm),n=this.baseElement||this.layerElement;n.style["mix-blend-mode"]=t},initBaseData:function(t,n,i){this.globalData=n,this.comp=i,this.data=t,this.layerId=createElementID(),this.data.sr||(this.data.sr=1),this.effectsManager=new EffectsManager(this.data,this,this.dynamicProperties)},getType:function(){return this.type},sourceRectAtTime:function(){}};function FrameElement(){}FrameElement.prototype={initFrame:function(){this._isFirstFrame=!1,this.dynamicProperties=[],this._mdf=!1},prepareProperties:function(t,n){var i,s=this.dynamicProperties.length;for(i=0;i<s;i+=1)(n||this._isParent&&this.dynamicProperties[i].propType==="transform")&&(this.dynamicProperties[i].getValue(),this.dynamicProperties[i]._mdf&&(this.globalData._mdf=!0,this._mdf=!0))},addDynamicProperty:function(t){this.dynamicProperties.indexOf(t)===-1&&this.dynamicProperties.push(t)}};function FootageElement(e,t,n){this.initFrame(),this.initRenderable(),this.assetData=t.getAssetData(e.refId),this.footageData=t.imageLoader.getAsset(this.assetData),this.initBaseData(e,t,n)}FootageElement.prototype.prepareFrame=function(){},extendPrototype([RenderableElement,BaseElement,FrameElement],FootageElement),FootageElement.prototype.getBaseElement=function(){return null},FootageElement.prototype.renderFrame=function(){},FootageElement.prototype.destroy=function(){},FootageElement.prototype.initExpressions=function(){var e=getExpressionInterfaces();if(e){var t=e("footage");this.layerInterface=t(this)}},FootageElement.prototype.getFootageData=function(){return this.footageData};function AudioElement(e,t,n){this.initFrame(),this.initRenderable(),this.assetData=t.getAssetData(e.refId),this.initBaseData(e,t,n),this._isPlaying=!1,this._canPlay=!1;var i=this.globalData.getAssetsPath(this.assetData);this.audio=this.globalData.audioController.createAudio(i),this._currentTime=0,this.globalData.audioController.addAudio(this),this._volumeMultiplier=1,this._volume=1,this._previousVolume=null,this.tm=e.tm?PropertyFactory.getProp(this,e.tm,0,t.frameRate,this):{_placeholder:!0},this.lv=PropertyFactory.getProp(this,e.au&&e.au.lv?e.au.lv:{k:[100]},1,.01,this)}AudioElement.prototype.prepareFrame=function(e){if(this.prepareRenderableFrame(e,!0),this.prepareProperties(e,!0),this.tm._placeholder)this._currentTime=e/this.data.sr;else{var t=this.tm.v;this._currentTime=t}this._volume=this.lv.v[0];var n=this._volume*this._volumeMultiplier;this._previousVolume!==n&&(this._previousVolume=n,this.audio.volume(n))},extendPrototype([RenderableElement,BaseElement,FrameElement],AudioElement),AudioElement.prototype.renderFrame=function(){this.isInRange&&this._canPlay&&(this._isPlaying?(!this.audio.playing()||Math.abs(this._currentTime/this.globalData.frameRate-this.audio.seek())>.1)&&this.audio.seek(this._currentTime/this.globalData.frameRate):(this.audio.play(),this.audio.seek(this._currentTime/this.globalData.frameRate),this._isPlaying=!0))},AudioElement.prototype.show=function(){},AudioElement.prototype.hide=function(){this.audio.pause(),this._isPlaying=!1},AudioElement.prototype.pause=function(){this.audio.pause(),this._isPlaying=!1,this._canPlay=!1},AudioElement.prototype.resume=function(){this._canPlay=!0},AudioElement.prototype.setRate=function(e){this.audio.rate(e)},AudioElement.prototype.volume=function(e){this._volumeMultiplier=e,this._previousVolume=e*this._volume,this.audio.volume(this._previousVolume)},AudioElement.prototype.getBaseElement=function(){return null},AudioElement.prototype.destroy=function(){},AudioElement.prototype.sourceRectAtTime=function(){},AudioElement.prototype.initExpressions=function(){};function BaseRenderer(){}BaseRenderer.prototype.checkLayers=function(e){var t,n=this.layers.length,i;for(this.completeLayers=!0,t=n-1;t>=0;t-=1)this.elements[t]||(i=this.layers[t],i.ip-i.st<=e-this.layers[t].st&&i.op-i.st>e-this.layers[t].st&&this.buildItem(t)),this.completeLayers=this.elements[t]?this.completeLayers:!1;this.checkPendingElements()},BaseRenderer.prototype.createItem=function(e){switch(e.ty){case 2:return this.createImage(e);case 0:return this.createComp(e);case 1:return this.createSolid(e);case 3:return this.createNull(e);case 4:return this.createShape(e);case 5:return this.createText(e);case 6:return this.createAudio(e);case 13:return this.createCamera(e);case 15:return this.createFootage(e);default:return this.createNull(e)}},BaseRenderer.prototype.createCamera=function(){throw new Error("You're using a 3d camera. Try the html renderer.")},BaseRenderer.prototype.createAudio=function(e){return new AudioElement(e,this.globalData,this)},BaseRenderer.prototype.createFootage=function(e){return new FootageElement(e,this.globalData,this)},BaseRenderer.prototype.buildAllItems=function(){var e,t=this.layers.length;for(e=0;e<t;e+=1)this.buildItem(e);this.checkPendingElements()},BaseRenderer.prototype.includeLayers=function(e){this.completeLayers=!1;var t,n=e.length,i,s=this.layers.length;for(t=0;t<n;t+=1)for(i=0;i<s;){if(this.layers[i].id===e[t].id){this.layers[i]=e[t];break}i+=1}},BaseRenderer.prototype.setProjectInterface=function(e){this.globalData.projectInterface=e},BaseRenderer.prototype.initItems=function(){this.globalData.progressiveLoad||this.buildAllItems()},BaseRenderer.prototype.buildElementParenting=function(e,t,n){for(var i=this.elements,s=this.layers,a=0,o=s.length;a<o;)s[a].ind==t&&(!i[a]||i[a]===!0?(this.buildItem(a),this.addPendingElement(e)):(n.push(i[a]),i[a].setAsParent(),s[a].parent!==void 0?this.buildElementParenting(e,s[a].parent,n):e.setHierarchy(n))),a+=1},BaseRenderer.prototype.addPendingElement=function(e){this.pendingElements.push(e)},BaseRenderer.prototype.searchExtraCompositions=function(e){var t,n=e.length;for(t=0;t<n;t+=1)if(e[t].xt){var i=this.createComp(e[t]);i.initExpressions(),this.globalData.projectInterface.registerComposition(i)}},BaseRenderer.prototype.getElementById=function(e){var t,n=this.elements.length;for(t=0;t<n;t+=1)if(this.elements[t].data.ind===e)return this.elements[t];return null},BaseRenderer.prototype.getElementByPath=function(e){var t=e.shift(),n;if(typeof t=="number")n=this.elements[t];else{var i,s=this.elements.length;for(i=0;i<s;i+=1)if(this.elements[i].data.nm===t){n=this.elements[i];break}}return e.length===0?n:n.getElementByPath(e)},BaseRenderer.prototype.setupGlobalData=function(e,t){this.globalData.fontManager=new FontManager,this.globalData.slotManager=slotFactory(e),this.globalData.fontManager.addChars(e.chars),this.globalData.fontManager.addFonts(e.fonts,t),this.globalData.getAssetData=this.animationItem.getAssetData.bind(this.animationItem),this.globalData.getAssetsPath=this.animationItem.getAssetsPath.bind(this.animationItem),this.globalData.imageLoader=this.animationItem.imagePreloader,this.globalData.audioController=this.animationItem.audioController,this.globalData.frameId=0,this.globalData.frameRate=e.fr,this.globalData.nm=e.nm,this.globalData.compSize={w:e.w,h:e.h}};var effectTypes={TRANSFORM_EFFECT:"transformEFfect"};function TransformElement(){}TransformElement.prototype={initTransform:function(){var t=new Matrix;this.finalTransform={mProp:this.data.ks?TransformPropertyFactory.getTransformProperty(this,this.data.ks,this):{o:0},_matMdf:!1,_localMatMdf:!1,_opMdf:!1,mat:t,localMat:t,localOpacity:1},this.data.ao&&(this.finalTransform.mProp.autoOriented=!0),this.data.ty},renderTransform:function(){if(this.finalTransform._opMdf=this.finalTransform.mProp.o._mdf||this._isFirstFrame,this.finalTransform._matMdf=this.finalTransform.mProp._mdf||this._isFirstFrame,this.hierarchy){var t,n=this.finalTransform.mat,i=0,s=this.hierarchy.length;if(!this.finalTransform._matMdf)for(;i<s;){if(this.hierarchy[i].finalTransform.mProp._mdf){this.finalTransform._matMdf=!0;break}i+=1}if(this.finalTransform._matMdf)for(t=this.finalTransform.mProp.v.props,n.cloneFromProps(t),i=0;i<s;i+=1)n.multiply(this.hierarchy[i].finalTransform.mProp.v)}(!this.localTransforms||this.finalTransform._matMdf)&&(this.finalTransform._localMatMdf=this.finalTransform._matMdf),this.finalTransform._opMdf&&(this.finalTransform.localOpacity=this.finalTransform.mProp.o.v)},renderLocalTransform:function(){if(this.localTransforms){var t=0,n=this.localTransforms.length;if(this.finalTransform._localMatMdf=this.finalTransform._matMdf,!this.finalTransform._localMatMdf||!this.finalTransform._opMdf)for(;t<n;)this.localTransforms[t]._mdf&&(this.finalTransform._localMatMdf=!0),this.localTransforms[t]._opMdf&&!this.finalTransform._opMdf&&(this.finalTransform.localOpacity=this.finalTransform.mProp.o.v,this.finalTransform._opMdf=!0),t+=1;if(this.finalTransform._localMatMdf){var i=this.finalTransform.localMat;for(this.localTransforms[0].matrix.clone(i),t=1;t<n;t+=1){var s=this.localTransforms[t].matrix;i.multiply(s)}i.multiply(this.finalTransform.mat)}if(this.finalTransform._opMdf){var a=this.finalTransform.localOpacity;for(t=0;t<n;t+=1)a*=this.localTransforms[t].opacity*.01;this.finalTransform.localOpacity=a}}},searchEffectTransforms:function(){if(this.renderableEffectsManager){var t=this.renderableEffectsManager.getEffects(effectTypes.TRANSFORM_EFFECT);if(t.length){this.localTransforms=[],this.finalTransform.localMat=new Matrix;var n=0,i=t.length;for(n=0;n<i;n+=1)this.localTransforms.push(t[n])}}},globalToLocal:function(t){var n=[];n.push(this.finalTransform);for(var i=!0,s=this.comp;i;)s.finalTransform?(s.data.hasMask&&n.splice(0,0,s.finalTransform),s=s.comp):i=!1;var a,o=n.length,l;for(a=0;a<o;a+=1)l=n[a].mat.applyToPointArray(0,0,0),t=[t[0]-l[0],t[1]-l[1],0];return t},mHelper:new Matrix};function MaskElement(e,t,n){this.data=e,this.element=t,this.globalData=n,this.storedData=[],this.masksProperties=this.data.masksProperties||[],this.maskElement=null;var i=this.globalData.defs,s,a=this.masksProperties?this.masksProperties.length:0;this.viewData=createSizedArray(a),this.solidPath="";var o,l=this.masksProperties,c=0,u=[],d,p,h=createElementID(),y,f,m,C,g="clipPath",b="clip-path";for(s=0;s<a;s+=1)if((l[s].mode!=="a"&&l[s].mode!=="n"||l[s].inv||l[s].o.k!==100||l[s].o.x)&&(g="mask",b="mask"),(l[s].mode==="s"||l[s].mode==="i")&&c===0?(y=createNS("rect"),y.setAttribute("fill","#ffffff"),y.setAttribute("width",this.element.comp.data.w||0),y.setAttribute("height",this.element.comp.data.h||0),u.push(y)):y=null,o=createNS("path"),l[s].mode==="n")this.viewData[s]={op:PropertyFactory.getProp(this.element,l[s].o,0,.01,this.element),prop:ShapePropertyFactory.getShapeProp(this.element,l[s],3),elem:o,lastPath:""},i.appendChild(o);else{c+=1,o.setAttribute("fill",l[s].mode==="s"?"#000000":"#ffffff"),o.setAttribute("clip-rule","nonzero");var v;if(l[s].x.k!==0?(g="mask",b="mask",C=PropertyFactory.getProp(this.element,l[s].x,0,null,this.element),v=createElementID(),f=createNS("filter"),f.setAttribute("id",v),m=createNS("feMorphology"),m.setAttribute("operator","erode"),m.setAttribute("in","SourceGraphic"),m.setAttribute("radius","0"),f.appendChild(m),i.appendChild(f),o.setAttribute("stroke",l[s].mode==="s"?"#000000":"#ffffff")):(m=null,C=null),this.storedData[s]={elem:o,x:C,expan:m,lastPath:"",lastOperator:"",filterId:v,lastRadius:0},l[s].mode==="i"){p=u.length;var N=createNS("g");for(d=0;d<p;d+=1)N.appendChild(u[d]);var w=createNS("mask");w.setAttribute("mask-type","alpha"),w.setAttribute("id",h+"_"+c),w.appendChild(o),i.appendChild(w),N.setAttribute("mask","url("+getLocationHref()+"#"+h+"_"+c+")"),u.length=0,u.push(N)}else u.push(o);l[s].inv&&!this.solidPath&&(this.solidPath=this.createLayerSolidPath()),this.viewData[s]={elem:o,lastPath:"",op:PropertyFactory.getProp(this.element,l[s].o,0,.01,this.element),prop:ShapePropertyFactory.getShapeProp(this.element,l[s],3),invRect:y},this.viewData[s].prop.k||this.drawPath(l[s],this.viewData[s].prop.v,this.viewData[s])}for(this.maskElement=createNS(g),a=u.length,s=0;s<a;s+=1)this.maskElement.appendChild(u[s]);c>0&&(this.maskElement.setAttribute("id",h),this.element.maskedElement.setAttribute(b,"url("+getLocationHref()+"#"+h+")"),i.appendChild(this.maskElement)),this.viewData.length&&this.element.addRenderableComponent(this)}MaskElement.prototype.getMaskProperty=function(e){return this.viewData[e].prop},MaskElement.prototype.renderFrame=function(e){var t=this.element.finalTransform.mat,n,i=this.masksProperties.length;for(n=0;n<i;n+=1)if((this.viewData[n].prop._mdf||e)&&this.drawPath(this.masksProperties[n],this.viewData[n].prop.v,this.viewData[n]),(this.viewData[n].op._mdf||e)&&this.viewData[n].elem.setAttribute("fill-opacity",this.viewData[n].op.v),this.masksProperties[n].mode!=="n"&&(this.viewData[n].invRect&&(this.element.finalTransform.mProp._mdf||e)&&this.viewData[n].invRect.setAttribute("transform",t.getInverseMatrix().to2dCSS()),this.storedData[n].x&&(this.storedData[n].x._mdf||e))){var s=this.storedData[n].expan;this.storedData[n].x.v<0?(this.storedData[n].lastOperator!=="erode"&&(this.storedData[n].lastOperator="erode",this.storedData[n].elem.setAttribute("filter","url("+getLocationHref()+"#"+this.storedData[n].filterId+")")),s.setAttribute("radius",-this.storedData[n].x.v)):(this.storedData[n].lastOperator!=="dilate"&&(this.storedData[n].lastOperator="dilate",this.storedData[n].elem.setAttribute("filter",null)),this.storedData[n].elem.setAttribute("stroke-width",this.storedData[n].x.v*2))}},MaskElement.prototype.getMaskelement=function(){return this.maskElement},MaskElement.prototype.createLayerSolidPath=function(){var e="M0,0 ";return e+=" h"+this.globalData.compSize.w,e+=" v"+this.globalData.compSize.h,e+=" h-"+this.globalData.compSize.w,e+=" v-"+this.globalData.compSize.h+" ",e},MaskElement.prototype.drawPath=function(e,t,n){var i=" M"+t.v[0][0]+","+t.v[0][1],s,a;for(a=t._length,s=1;s<a;s+=1)i+=" C"+t.o[s-1][0]+","+t.o[s-1][1]+" "+t.i[s][0]+","+t.i[s][1]+" "+t.v[s][0]+","+t.v[s][1];if(t.c&&a>1&&(i+=" C"+t.o[s-1][0]+","+t.o[s-1][1]+" "+t.i[0][0]+","+t.i[0][1]+" "+t.v[0][0]+","+t.v[0][1]),n.lastPath!==i){var o="";n.elem&&(t.c&&(o=e.inv?this.solidPath+i:i),n.elem.setAttribute("d",o)),n.lastPath=i}},MaskElement.prototype.destroy=function(){this.element=null,this.globalData=null,this.maskElement=null,this.data=null,this.masksProperties=null};var filtersFactory=(function(){var e={};e.createFilter=t,e.createAlphaToLuminanceFilter=n;function t(i,s){var a=createNS("filter");return a.setAttribute("id",i),s!==!0&&(a.setAttribute("filterUnits","objectBoundingBox"),a.setAttribute("x","0%"),a.setAttribute("y","0%"),a.setAttribute("width","100%"),a.setAttribute("height","100%")),a}function n(){var i=createNS("feColorMatrix");return i.setAttribute("type","matrix"),i.setAttribute("color-interpolation-filters","sRGB"),i.setAttribute("values","0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 1"),i}return e})(),featureSupport=(function(){var e={maskType:!0,svgLumaHidden:!0,offscreenCanvas:typeof OffscreenCanvas<"u"};return(/MSIE 10/i.test(navigator.userAgent)||/MSIE 9/i.test(navigator.userAgent)||/rv:11.0/i.test(navigator.userAgent)||/Edge\/\d./i.test(navigator.userAgent))&&(e.maskType=!1),/firefox/i.test(navigator.userAgent)&&(e.svgLumaHidden=!1),e})(),registeredEffects$1={},idPrefix="filter_result_";function SVGEffects(e){var t,n="SourceGraphic",i=e.data.ef?e.data.ef.length:0,s=createElementID(),a=filtersFactory.createFilter(s,!0),o=0;this.filters=[];var l;for(t=0;t<i;t+=1){l=null;var c=e.data.ef[t].ty;if(registeredEffects$1[c]){var u=registeredEffects$1[c].effect;l=new u(a,e.effectsManager.effectElements[t],e,idPrefix+o,n),n=idPrefix+o,registeredEffects$1[c].countsAsEffect&&(o+=1)}l&&this.filters.push(l)}o&&(e.globalData.defs.appendChild(a),e.layerElement.setAttribute("filter","url("+getLocationHref()+"#"+s+")")),this.filters.length&&e.addRenderableComponent(this)}SVGEffects.prototype.renderFrame=function(e){var t,n=this.filters.length;for(t=0;t<n;t+=1)this.filters[t].renderFrame(e)},SVGEffects.prototype.getEffects=function(e){var t,n=this.filters.length,i=[];for(t=0;t<n;t+=1)this.filters[t].type===e&&i.push(this.filters[t]);return i};function registerEffect$1(e,t,n){registeredEffects$1[e]={effect:t,countsAsEffect:n}}function SVGBaseElement(){}SVGBaseElement.prototype={initRendererElement:function(){this.layerElement=createNS("g")},createContainerElements:function(){this.matteElement=createNS("g"),this.transformedElement=this.layerElement,this.maskedElement=this.layerElement,this._sizeChanged=!1;var t=null;if(this.data.td){this.matteMasks={};var n=createNS("g");n.setAttribute("id",this.layerId),n.appendChild(this.layerElement),t=n,this.globalData.defs.appendChild(n)}else this.data.tt?(this.matteElement.appendChild(this.layerElement),t=this.matteElement,this.baseElement=this.matteElement):this.baseElement=this.layerElement;if(this.data.ln&&this.layerElement.setAttribute("id",this.data.ln),this.data.cl&&this.layerElement.setAttribute("class",this.data.cl),this.data.ty===0&&!this.data.hd){var i=createNS("clipPath"),s=createNS("path");s.setAttribute("d","M0,0 L"+this.data.w+",0 L"+this.data.w+","+this.data.h+" L0,"+this.data.h+"z");var a=createElementID();if(i.setAttribute("id",a),i.appendChild(s),this.globalData.defs.appendChild(i),this.checkMasks()){var o=createNS("g");o.setAttribute("clip-path","url("+getLocationHref()+"#"+a+")"),o.appendChild(this.layerElement),this.transformedElement=o,t?t.appendChild(this.transformedElement):this.baseElement=this.transformedElement}else this.layerElement.setAttribute("clip-path","url("+getLocationHref()+"#"+a+")")}this.data.bm!==0&&this.setBlendMode()},renderElement:function(){this.finalTransform._localMatMdf&&this.transformedElement.setAttribute("transform",this.finalTransform.localMat.to2dCSS()),this.finalTransform._opMdf&&this.transformedElement.setAttribute("opacity",this.finalTransform.localOpacity)},destroyBaseElement:function(){this.layerElement=null,this.matteElement=null,this.maskManager.destroy()},getBaseElement:function(){return this.data.hd?null:this.baseElement},createRenderableComponents:function(){this.maskManager=new MaskElement(this.data,this,this.globalData),this.renderableEffectsManager=new SVGEffects(this),this.searchEffectTransforms()},getMatte:function(t){if(this.matteMasks||(this.matteMasks={}),!this.matteMasks[t]){var n=this.layerId+"_"+t,i,s,a,o;if(t===1||t===3){var l=createNS("mask");l.setAttribute("id",n),l.setAttribute("mask-type",t===3?"luminance":"alpha"),a=createNS("use"),a.setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),l.appendChild(a),this.globalData.defs.appendChild(l),!featureSupport.maskType&&t===1&&(l.setAttribute("mask-type","luminance"),i=createElementID(),s=filtersFactory.createFilter(i),this.globalData.defs.appendChild(s),s.appendChild(filtersFactory.createAlphaToLuminanceFilter()),o=createNS("g"),o.appendChild(a),l.appendChild(o),o.setAttribute("filter","url("+getLocationHref()+"#"+i+")"))}else if(t===2){var c=createNS("mask");c.setAttribute("id",n),c.setAttribute("mask-type","alpha");var u=createNS("g");c.appendChild(u),i=createElementID(),s=filtersFactory.createFilter(i);var d=createNS("feComponentTransfer");d.setAttribute("in","SourceGraphic"),s.appendChild(d);var p=createNS("feFuncA");p.setAttribute("type","table"),p.setAttribute("tableValues","1.0 0.0"),d.appendChild(p),this.globalData.defs.appendChild(s);var h=createNS("rect");h.setAttribute("width",this.comp.data.w),h.setAttribute("height",this.comp.data.h),h.setAttribute("x","0"),h.setAttribute("y","0"),h.setAttribute("fill","#ffffff"),h.setAttribute("opacity","0"),u.setAttribute("filter","url("+getLocationHref()+"#"+i+")"),u.appendChild(h),a=createNS("use"),a.setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),u.appendChild(a),featureSupport.maskType||(c.setAttribute("mask-type","luminance"),s.appendChild(filtersFactory.createAlphaToLuminanceFilter()),o=createNS("g"),u.appendChild(h),o.appendChild(this.layerElement),u.appendChild(o)),this.globalData.defs.appendChild(c)}this.matteMasks[t]=n}return this.matteMasks[t]},setMatte:function(t){this.matteElement&&this.matteElement.setAttribute("mask","url("+getLocationHref()+"#"+t+")")}};function HierarchyElement(){}HierarchyElement.prototype={initHierarchy:function(){this.hierarchy=[],this._isParent=!1,this.checkParenting()},setHierarchy:function(t){this.hierarchy=t},setAsParent:function(){this._isParent=!0},checkParenting:function(){this.data.parent!==void 0&&this.comp.buildElementParenting(this,this.data.parent,[])}};function RenderableDOMElement(){}(function(){var e={initElement:function(n,i,s){this.initFrame(),this.initBaseData(n,i,s),this.initTransform(n,i,s),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.createContent(),this.hide()},hide:function(){if(!this.hidden&&(!this.isInRange||this.isTransparent)){var n=this.baseElement||this.layerElement;n.style.display="none",this.hidden=!0}},show:function(){if(this.isInRange&&!this.isTransparent){if(!this.data.hd){var n=this.baseElement||this.layerElement;n.style.display="block"}this.hidden=!1,this._isFirstFrame=!0}},renderFrame:function(){this.data.hd||this.hidden||(this.renderTransform(),this.renderRenderable(),this.renderLocalTransform(),this.renderElement(),this.renderInnerContent(),this._isFirstFrame&&(this._isFirstFrame=!1))},renderInnerContent:function(){},prepareFrame:function(n){this._mdf=!1,this.prepareRenderableFrame(n),this.prepareProperties(n,this.isInRange),this.checkTransparency()},destroy:function(){this.innerElem=null,this.destroyBaseElement()}};extendPrototype([RenderableElement,createProxyFunction(e)],RenderableDOMElement)})();function IImageElement(e,t,n){this.assetData=t.getAssetData(e.refId),this.assetData&&this.assetData.sid&&(this.assetData=t.slotManager.getProp(this.assetData)),this.initElement(e,t,n),this.sourceRect={top:0,left:0,width:this.assetData.w,height:this.assetData.h}}extendPrototype([BaseElement,TransformElement,SVGBaseElement,HierarchyElement,FrameElement,RenderableDOMElement],IImageElement),IImageElement.prototype.createContent=function(){var e=this.globalData.getAssetsPath(this.assetData);this.innerElem=createNS("image"),this.innerElem.setAttribute("width",this.assetData.w+"px"),this.innerElem.setAttribute("height",this.assetData.h+"px"),this.innerElem.setAttribute("preserveAspectRatio",this.assetData.pr||this.globalData.renderConfig.imagePreserveAspectRatio),this.innerElem.setAttributeNS("http://www.w3.org/1999/xlink","href",e),this.layerElement.appendChild(this.innerElem)},IImageElement.prototype.sourceRectAtTime=function(){return this.sourceRect};function ProcessedElement(e,t){this.elem=e,this.pos=t}function IShapeElement(){}IShapeElement.prototype={addShapeToModifiers:function(t){var n,i=this.shapeModifiers.length;for(n=0;n<i;n+=1)this.shapeModifiers[n].addShape(t)},isShapeInAnimatedModifiers:function(t){for(var n=0,i=this.shapeModifiers.length;n<i;)if(this.shapeModifiers[n].isAnimatedWithShape(t))return!0;return!1},renderModifiers:function(){if(this.shapeModifiers.length){var t,n=this.shapes.length;for(t=0;t<n;t+=1)this.shapes[t].sh.reset();n=this.shapeModifiers.length;var i;for(t=n-1;t>=0&&(i=this.shapeModifiers[t].processShapes(this._isFirstFrame),!i);t-=1);}},searchProcessedElement:function(t){for(var n=this.processedElements,i=0,s=n.length;i<s;){if(n[i].elem===t)return n[i].pos;i+=1}return 0},addProcessedElement:function(t,n){for(var i=this.processedElements,s=i.length;s;)if(s-=1,i[s].elem===t){i[s].pos=n;return}i.push(new ProcessedElement(t,n))},prepareFrame:function(t){this.prepareRenderableFrame(t),this.prepareProperties(t,this.isInRange)}};var lineCapEnum={1:"butt",2:"round",3:"square"},lineJoinEnum={1:"miter",2:"round",3:"bevel"};function SVGShapeData(e,t,n){this.caches=[],this.styles=[],this.transformers=e,this.lStr="",this.sh=n,this.lvl=t,this._isAnimated=!!n.k;for(var i=0,s=e.length;i<s;){if(e[i].mProps.dynamicProperties.length){this._isAnimated=!0;break}i+=1}}SVGShapeData.prototype.setAsAnimated=function(){this._isAnimated=!0};function SVGStyleData(e,t){this.data=e,this.type=e.ty,this.d="",this.lvl=t,this._mdf=!1,this.closed=e.hd===!0,this.pElem=createNS("path"),this.msElem=null}SVGStyleData.prototype.reset=function(){this.d="",this._mdf=!1};function DashProperty(e,t,n,i){this.elem=e,this.frameId=-1,this.dataProps=createSizedArray(t.length),this.renderer=n,this.k=!1,this.dashStr="",this.dashArray=createTypedArray("float32",t.length?t.length-1:0),this.dashoffset=createTypedArray("float32",1),this.initDynamicPropertyContainer(i);var s,a=t.length||0,o;for(s=0;s<a;s+=1)o=PropertyFactory.getProp(e,t[s].v,0,0,this),this.k=o.k||this.k,this.dataProps[s]={n:t[s].n,p:o};this.k||this.getValue(!0),this._isAnimated=this.k}DashProperty.prototype.getValue=function(e){if(!(this.elem.globalData.frameId===this.frameId&&!e)&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf=this._mdf||e,this._mdf)){var t=0,n=this.dataProps.length;for(this.renderer==="svg"&&(this.dashStr=""),t=0;t<n;t+=1)this.dataProps[t].n!=="o"?this.renderer==="svg"?this.dashStr+=" "+this.dataProps[t].p.v:this.dashArray[t]=this.dataProps[t].p.v:this.dashoffset[0]=this.dataProps[t].p.v}},extendPrototype([DynamicPropertyContainer],DashProperty);function SVGStrokeStyleData(e,t,n){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.o=PropertyFactory.getProp(e,t.o,0,.01,this),this.w=PropertyFactory.getProp(e,t.w,0,null,this),this.d=new DashProperty(e,t.d||{},"svg",this),this.c=PropertyFactory.getProp(e,t.c,1,255,this),this.style=n,this._isAnimated=!!this._isAnimated}extendPrototype([DynamicPropertyContainer],SVGStrokeStyleData);function SVGFillStyleData(e,t,n){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.o=PropertyFactory.getProp(e,t.o,0,.01,this),this.c=PropertyFactory.getProp(e,t.c,1,255,this),this.style=n}extendPrototype([DynamicPropertyContainer],SVGFillStyleData);function SVGNoStyleData(e,t,n){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.style=n}extendPrototype([DynamicPropertyContainer],SVGNoStyleData);function GradientProperty(e,t,n){this.data=t,this.c=createTypedArray("uint8c",t.p*4);var i=t.k.k[0].s?t.k.k[0].s.length-t.p*4:t.k.k.length-t.p*4;this.o=createTypedArray("float32",i),this._cmdf=!1,this._omdf=!1,this._collapsable=this.checkCollapsable(),this._hasOpacity=i,this.initDynamicPropertyContainer(n),this.prop=PropertyFactory.getProp(e,t.k,1,null,this),this.k=this.prop.k,this.getValue(!0)}GradientProperty.prototype.comparePoints=function(e,t){for(var n=0,i=this.o.length/2,s;n<i;){if(s=Math.abs(e[n*4]-e[t*4+n*2]),s>.01)return!1;n+=1}return!0},GradientProperty.prototype.checkCollapsable=function(){if(this.o.length/2!==this.c.length/4)return!1;if(this.data.k.k[0].s)for(var e=0,t=this.data.k.k.length;e<t;){if(!this.comparePoints(this.data.k.k[e].s,this.data.p))return!1;e+=1}else if(!this.comparePoints(this.data.k.k,this.data.p))return!1;return!0},GradientProperty.prototype.getValue=function(e){if(this.prop.getValue(),this._mdf=!1,this._cmdf=!1,this._omdf=!1,this.prop._mdf||e){var t,n=this.data.p*4,i,s;for(t=0;t<n;t+=1)i=t%4===0?100:255,s=Math.round(this.prop.v[t]*i),this.c[t]!==s&&(this.c[t]=s,this._cmdf=!e);if(this.o.length)for(n=this.prop.v.length,t=this.data.p*4;t<n;t+=1)i=t%2===0?100:1,s=t%2===0?Math.round(this.prop.v[t]*100):this.prop.v[t],this.o[t-this.data.p*4]!==s&&(this.o[t-this.data.p*4]=s,this._omdf=!e);this._mdf=!e}},extendPrototype([DynamicPropertyContainer],GradientProperty);function SVGGradientFillStyleData(e,t,n){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.initGradientData(e,t,n)}SVGGradientFillStyleData.prototype.initGradientData=function(e,t,n){this.o=PropertyFactory.getProp(e,t.o,0,.01,this),this.s=PropertyFactory.getProp(e,t.s,1,null,this),this.e=PropertyFactory.getProp(e,t.e,1,null,this),this.h=PropertyFactory.getProp(e,t.h||{k:0},0,.01,this),this.a=PropertyFactory.getProp(e,t.a||{k:0},0,degToRads,this),this.g=new GradientProperty(e,t.g,this),this.style=n,this.stops=[],this.setGradientData(n.pElem,t),this.setGradientOpacity(t,n),this._isAnimated=!!this._isAnimated},SVGGradientFillStyleData.prototype.setGradientData=function(e,t){var n=createElementID(),i=createNS(t.t===1?"linearGradient":"radialGradient");i.setAttribute("id",n),i.setAttribute("spreadMethod","pad"),i.setAttribute("gradientUnits","userSpaceOnUse");var s=[],a,o,l;for(l=t.g.p*4,o=0;o<l;o+=4)a=createNS("stop"),i.appendChild(a),s.push(a);e.setAttribute(t.ty==="gf"?"fill":"stroke","url("+getLocationHref()+"#"+n+")"),this.gf=i,this.cst=s},SVGGradientFillStyleData.prototype.setGradientOpacity=function(e,t){if(this.g._hasOpacity&&!this.g._collapsable){var n,i,s,a=createNS("mask"),o=createNS("path");a.appendChild(o);var l=createElementID(),c=createElementID();a.setAttribute("id",c);var u=createNS(e.t===1?"linearGradient":"radialGradient");u.setAttribute("id",l),u.setAttribute("spreadMethod","pad"),u.setAttribute("gradientUnits","userSpaceOnUse"),s=e.g.k.k[0].s?e.g.k.k[0].s.length:e.g.k.k.length;var d=this.stops;for(i=e.g.p*4;i<s;i+=2)n=createNS("stop"),n.setAttribute("stop-color","rgb(255,255,255)"),u.appendChild(n),d.push(n);o.setAttribute(e.ty==="gf"?"fill":"stroke","url("+getLocationHref()+"#"+l+")"),e.ty==="gs"&&(o.setAttribute("stroke-linecap",lineCapEnum[e.lc||2]),o.setAttribute("stroke-linejoin",lineJoinEnum[e.lj||2]),e.lj===1&&o.setAttribute("stroke-miterlimit",e.ml)),this.of=u,this.ms=a,this.ost=d,this.maskId=c,t.msElem=o}},extendPrototype([DynamicPropertyContainer],SVGGradientFillStyleData);function SVGGradientStrokeStyleData(e,t,n){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.w=PropertyFactory.getProp(e,t.w,0,null,this),this.d=new DashProperty(e,t.d||{},"svg",this),this.initGradientData(e,t,n),this._isAnimated=!!this._isAnimated}extendPrototype([SVGGradientFillStyleData,DynamicPropertyContainer],SVGGradientStrokeStyleData);function ShapeGroupData(){this.it=[],this.prevViewData=[],this.gr=createNS("g")}function SVGTransformData(e,t,n){this.transform={mProps:e,op:t,container:n},this.elements=[],this._isAnimated=this.transform.mProps.dynamicProperties.length||this.transform.op.effectsSequence.length}var buildShapeString=function(t,n,i,s){if(n===0)return"";var a=t.o,o=t.i,l=t.v,c,u=" M"+s.applyToPointStringified(l[0][0],l[0][1]);for(c=1;c<n;c+=1)u+=" C"+s.applyToPointStringified(a[c-1][0],a[c-1][1])+" "+s.applyToPointStringified(o[c][0],o[c][1])+" "+s.applyToPointStringified(l[c][0],l[c][1]);return i&&n&&(u+=" C"+s.applyToPointStringified(a[c-1][0],a[c-1][1])+" "+s.applyToPointStringified(o[0][0],o[0][1])+" "+s.applyToPointStringified(l[0][0],l[0][1]),u+="z"),u},SVGElementsRenderer=(function(){var e=new Matrix,t=new Matrix,n={createRenderFunction:i};function i(p){switch(p.ty){case"fl":return l;case"gf":return u;case"gs":return c;case"st":return d;case"sh":case"el":case"rc":case"sr":return o;case"tr":return s;case"no":return a;default:return null}}function s(p,h,y){(y||h.transform.op._mdf)&&h.transform.container.setAttribute("opacity",h.transform.op.v),(y||h.transform.mProps._mdf)&&h.transform.container.setAttribute("transform",h.transform.mProps.v.to2dCSS())}function a(){}function o(p,h,y){var f,m,C,g,b,v,N=h.styles.length,w=h.lvl,E,_,k,A;for(v=0;v<N;v+=1){if(g=h.sh._mdf||y,h.styles[v].lvl<w){for(_=t.reset(),k=w-h.styles[v].lvl,A=h.transformers.length-1;!g&&k>0;)g=h.transformers[A].mProps._mdf||g,k-=1,A-=1;if(g)for(k=w-h.styles[v].lvl,A=h.transformers.length-1;k>0;)_.multiply(h.transformers[A].mProps.v),k-=1,A-=1}else _=e;if(E=h.sh.paths,m=E._length,g){for(C="",f=0;f<m;f+=1)b=E.shapes[f],b&&b._length&&(C+=buildShapeString(b,b._length,b.c,_));h.caches[v]=C}else C=h.caches[v];h.styles[v].d+=p.hd===!0?"":C,h.styles[v]._mdf=g||h.styles[v]._mdf}}function l(p,h,y){var f=h.style;(h.c._mdf||y)&&f.pElem.setAttribute("fill","rgb("+bmFloor(h.c.v[0])+","+bmFloor(h.c.v[1])+","+bmFloor(h.c.v[2])+")"),(h.o._mdf||y)&&f.pElem.setAttribute("fill-opacity",h.o.v)}function c(p,h,y){u(p,h,y),d(p,h,y)}function u(p,h,y){var f=h.gf,m=h.g._hasOpacity,C=h.s.v,g=h.e.v;if(h.o._mdf||y){var b=p.ty==="gf"?"fill-opacity":"stroke-opacity";h.style.pElem.setAttribute(b,h.o.v)}if(h.s._mdf||y){var v=p.t===1?"x1":"cx",N=v==="x1"?"y1":"cy";f.setAttribute(v,C[0]),f.setAttribute(N,C[1]),m&&!h.g._collapsable&&(h.of.setAttribute(v,C[0]),h.of.setAttribute(N,C[1]))}var w,E,_,k;if(h.g._cmdf||y){w=h.cst;var A=h.g.c;for(_=w.length,E=0;E<_;E+=1)k=w[E],k.setAttribute("offset",A[E*4]+"%"),k.setAttribute("stop-color","rgb("+A[E*4+1]+","+A[E*4+2]+","+A[E*4+3]+")")}if(m&&(h.g._omdf||y)){var F=h.g.o;for(h.g._collapsable?w=h.cst:w=h.ost,_=w.length,E=0;E<_;E+=1)k=w[E],h.g._collapsable||k.setAttribute("offset",F[E*2]+"%"),k.setAttribute("stop-opacity",F[E*2+1])}if(p.t===1)(h.e._mdf||y)&&(f.setAttribute("x2",g[0]),f.setAttribute("y2",g[1]),m&&!h.g._collapsable&&(h.of.setAttribute("x2",g[0]),h.of.setAttribute("y2",g[1])));else{var B;if((h.s._mdf||h.e._mdf||y)&&(B=Math.sqrt(Math.pow(C[0]-g[0],2)+Math.pow(C[1]-g[1],2)),f.setAttribute("r",B),m&&!h.g._collapsable&&h.of.setAttribute("r",B)),h.s._mdf||h.e._mdf||h.h._mdf||h.a._mdf||y){B||(B=Math.sqrt(Math.pow(C[0]-g[0],2)+Math.pow(C[1]-g[1],2)));var I=Math.atan2(g[1]-C[1],g[0]-C[0]),D=h.h.v;D>=1?D=.99:D<=-1&&(D=-.99);var L=B*D,$=Math.cos(I+h.a.v)*L+C[0],P=Math.sin(I+h.a.v)*L+C[1];f.setAttribute("fx",$),f.setAttribute("fy",P),m&&!h.g._collapsable&&(h.of.setAttribute("fx",$),h.of.setAttribute("fy",P))}}}function d(p,h,y){var f=h.style,m=h.d;m&&(m._mdf||y)&&m.dashStr&&(f.pElem.setAttribute("stroke-dasharray",m.dashStr),f.pElem.setAttribute("stroke-dashoffset",m.dashoffset[0])),h.c&&(h.c._mdf||y)&&f.pElem.setAttribute("stroke","rgb("+bmFloor(h.c.v[0])+","+bmFloor(h.c.v[1])+","+bmFloor(h.c.v[2])+")"),(h.o._mdf||y)&&f.pElem.setAttribute("stroke-opacity",h.o.v),(h.w._mdf||y)&&(f.pElem.setAttribute("stroke-width",h.w.v),f.msElem&&f.msElem.setAttribute("stroke-width",h.w.v))}return n})();function SVGShapeElement(e,t,n){this.shapes=[],this.shapesData=e.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.animatedContents=[],this.initElement(e,t,n),this.prevViewData=[]}extendPrototype([BaseElement,TransformElement,SVGBaseElement,IShapeElement,HierarchyElement,FrameElement,RenderableDOMElement],SVGShapeElement),SVGShapeElement.prototype.initSecondaryElement=function(){},SVGShapeElement.prototype.identityMatrix=new Matrix,SVGShapeElement.prototype.buildExpressionInterface=function(){},SVGShapeElement.prototype.createContent=function(){this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes()},SVGShapeElement.prototype.filterUniqueShapes=function(){var e,t=this.shapes.length,n,i,s=this.stylesList.length,a,o=[],l=!1;for(i=0;i<s;i+=1){for(a=this.stylesList[i],l=!1,o.length=0,e=0;e<t;e+=1)n=this.shapes[e],n.styles.indexOf(a)!==-1&&(o.push(n),l=n._isAnimated||l);o.length>1&&l&&this.setShapesAsAnimated(o)}},SVGShapeElement.prototype.setShapesAsAnimated=function(e){var t,n=e.length;for(t=0;t<n;t+=1)e[t].setAsAnimated()},SVGShapeElement.prototype.createStyleElement=function(e,t){var n,i=new SVGStyleData(e,t),s=i.pElem;if(e.ty==="st")n=new SVGStrokeStyleData(this,e,i);else if(e.ty==="fl")n=new SVGFillStyleData(this,e,i);else if(e.ty==="gf"||e.ty==="gs"){var a=e.ty==="gf"?SVGGradientFillStyleData:SVGGradientStrokeStyleData;n=new a(this,e,i),this.globalData.defs.appendChild(n.gf),n.maskId&&(this.globalData.defs.appendChild(n.ms),this.globalData.defs.appendChild(n.of),s.setAttribute("mask","url("+getLocationHref()+"#"+n.maskId+")"))}else e.ty==="no"&&(n=new SVGNoStyleData(this,e,i));return(e.ty==="st"||e.ty==="gs")&&(s.setAttribute("stroke-linecap",lineCapEnum[e.lc||2]),s.setAttribute("stroke-linejoin",lineJoinEnum[e.lj||2]),s.setAttribute("fill-opacity","0"),e.lj===1&&s.setAttribute("stroke-miterlimit",e.ml)),e.r===2&&s.setAttribute("fill-rule","evenodd"),e.ln&&s.setAttribute("id",e.ln),e.cl&&s.setAttribute("class",e.cl),e.bm&&(s.style["mix-blend-mode"]=getBlendMode(e.bm)),this.stylesList.push(i),this.addToAnimatedContents(e,n),n},SVGShapeElement.prototype.createGroupElement=function(e){var t=new ShapeGroupData;return e.ln&&t.gr.setAttribute("id",e.ln),e.cl&&t.gr.setAttribute("class",e.cl),e.bm&&(t.gr.style["mix-blend-mode"]=getBlendMode(e.bm)),t},SVGShapeElement.prototype.createTransformElement=function(e,t){var n=TransformPropertyFactory.getTransformProperty(this,e,this),i=new SVGTransformData(n,n.o,t);return this.addToAnimatedContents(e,i),i},SVGShapeElement.prototype.createShapeElement=function(e,t,n){var i=4;e.ty==="rc"?i=5:e.ty==="el"?i=6:e.ty==="sr"&&(i=7);var s=ShapePropertyFactory.getShapeProp(this,e,i,this),a=new SVGShapeData(t,n,s);return this.shapes.push(a),this.addShapeToModifiers(a),this.addToAnimatedContents(e,a),a},SVGShapeElement.prototype.addToAnimatedContents=function(e,t){for(var n=0,i=this.animatedContents.length;n<i;){if(this.animatedContents[n].element===t)return;n+=1}this.animatedContents.push({fn:SVGElementsRenderer.createRenderFunction(e),element:t,data:e})},SVGShapeElement.prototype.setElementStyles=function(e){var t=e.styles,n,i=this.stylesList.length;for(n=0;n<i;n+=1)t.indexOf(this.stylesList[n])===-1&&!this.stylesList[n].closed&&t.push(this.stylesList[n])},SVGShapeElement.prototype.reloadShapes=function(){this._isFirstFrame=!0;var e,t=this.itemsData.length;for(e=0;e<t;e+=1)this.prevViewData[e]=this.itemsData[e];for(this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes(),t=this.dynamicProperties.length,e=0;e<t;e+=1)this.dynamicProperties[e].getValue();this.renderModifiers()},SVGShapeElement.prototype.searchShapes=function(e,t,n,i,s,a,o){var l=[].concat(a),c,u=e.length-1,d,p,h=[],y=[],f,m,C;for(c=u;c>=0;c-=1){if(C=this.searchProcessedElement(e[c]),C?t[c]=n[C-1]:e[c]._render=o,e[c].ty==="fl"||e[c].ty==="st"||e[c].ty==="gf"||e[c].ty==="gs"||e[c].ty==="no")C?t[c].style.closed=e[c].hd:t[c]=this.createStyleElement(e[c],s),e[c]._render&&t[c].style.pElem.parentNode!==i&&i.appendChild(t[c].style.pElem),h.push(t[c].style);else if(e[c].ty==="gr"){if(!C)t[c]=this.createGroupElement(e[c]);else for(p=t[c].it.length,d=0;d<p;d+=1)t[c].prevViewData[d]=t[c].it[d];this.searchShapes(e[c].it,t[c].it,t[c].prevViewData,t[c].gr,s+1,l,o),e[c]._render&&t[c].gr.parentNode!==i&&i.appendChild(t[c].gr)}else e[c].ty==="tr"?(C||(t[c]=this.createTransformElement(e[c],i)),f=t[c].transform,l.push(f)):e[c].ty==="sh"||e[c].ty==="rc"||e[c].ty==="el"||e[c].ty==="sr"?(C||(t[c]=this.createShapeElement(e[c],l,s)),this.setElementStyles(t[c])):e[c].ty==="tm"||e[c].ty==="rd"||e[c].ty==="ms"||e[c].ty==="pb"||e[c].ty==="zz"||e[c].ty==="op"?(C?(m=t[c],m.closed=!1):(m=ShapeModifiers.getModifier(e[c].ty),m.init(this,e[c]),t[c]=m,this.shapeModifiers.push(m)),y.push(m)):e[c].ty==="rp"&&(C?(m=t[c],m.closed=!0):(m=ShapeModifiers.getModifier(e[c].ty),t[c]=m,m.init(this,e,c,t),this.shapeModifiers.push(m),o=!1),y.push(m));this.addProcessedElement(e[c],c+1)}for(u=h.length,c=0;c<u;c+=1)h[c].closed=!0;for(u=y.length,c=0;c<u;c+=1)y[c].closed=!0},SVGShapeElement.prototype.renderInnerContent=function(){this.renderModifiers();var e,t=this.stylesList.length;for(e=0;e<t;e+=1)this.stylesList[e].reset();for(this.renderShape(),e=0;e<t;e+=1)(this.stylesList[e]._mdf||this._isFirstFrame)&&(this.stylesList[e].msElem&&(this.stylesList[e].msElem.setAttribute("d",this.stylesList[e].d),this.stylesList[e].d="M0 0"+this.stylesList[e].d),this.stylesList[e].pElem.setAttribute("d",this.stylesList[e].d||"M0 0"))},SVGShapeElement.prototype.renderShape=function(){var e,t=this.animatedContents.length,n;for(e=0;e<t;e+=1)n=this.animatedContents[e],(this._isFirstFrame||n.element._isAnimated)&&n.data!==!0&&n.fn(n.data,n.element,this._isFirstFrame)},SVGShapeElement.prototype.destroy=function(){this.destroyBaseElement(),this.shapesData=null,this.itemsData=null};function LetterProps(e,t,n,i,s,a){this.o=e,this.sw=t,this.sc=n,this.fc=i,this.m=s,this.p=a,this._mdf={o:!0,sw:!!t,sc:!!n,fc:!!i,m:!0,p:!0}}LetterProps.prototype.update=function(e,t,n,i,s,a){this._mdf.o=!1,this._mdf.sw=!1,this._mdf.sc=!1,this._mdf.fc=!1,this._mdf.m=!1,this._mdf.p=!1;var o=!1;return this.o!==e&&(this.o=e,this._mdf.o=!0,o=!0),this.sw!==t&&(this.sw=t,this._mdf.sw=!0,o=!0),this.sc!==n&&(this.sc=n,this._mdf.sc=!0,o=!0),this.fc!==i&&(this.fc=i,this._mdf.fc=!0,o=!0),this.m!==s&&(this.m=s,this._mdf.m=!0,o=!0),a.length&&(this.p[0]!==a[0]||this.p[1]!==a[1]||this.p[4]!==a[4]||this.p[5]!==a[5]||this.p[12]!==a[12]||this.p[13]!==a[13])&&(this.p=a,this._mdf.p=!0,o=!0),o};function TextProperty(e,t){this._frameId=initialDefaultFrame,this.pv="",this.v="",this.kf=!1,this._isFirstFrame=!0,this._mdf=!1,t.d&&t.d.sid&&(t.d=e.globalData.slotManager.getProp(t.d)),this.data=t,this.elem=e,this.comp=this.elem.comp,this.keysIndex=0,this.canResize=!1,this.minimumFontSize=1,this.effectsSequence=[],this.currentData={ascent:0,boxWidth:this.defaultBoxWidth,f:"",fStyle:"",fWeight:"",fc:"",j:"",justifyOffset:"",l:[],lh:0,lineWidths:[],ls:"",of:"",s:"",sc:"",sw:0,t:0,tr:0,sz:0,ps:null,fillColorAnim:!1,strokeColorAnim:!1,strokeWidthAnim:!1,yOffset:0,finalSize:0,finalText:[],finalLineHeight:0,__complete:!1},this.copyData(this.currentData,this.data.d.k[0].s),this.searchProperty()||this.completeTextData(this.currentData)}TextProperty.prototype.defaultBoxWidth=[0,0],TextProperty.prototype.copyData=function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e},TextProperty.prototype.setCurrentData=function(e){e.__complete||this.completeTextData(e),this.currentData=e,this.currentData.boxWidth=this.currentData.boxWidth||this.defaultBoxWidth,this._mdf=!0},TextProperty.prototype.searchProperty=function(){return this.searchKeyframes()},TextProperty.prototype.searchKeyframes=function(){return this.kf=this.data.d.k.length>1,this.kf&&this.addEffect(this.getKeyframeValue.bind(this)),this.kf},TextProperty.prototype.addEffect=function(e){this.effectsSequence.push(e),this.elem.addDynamicProperty(this)},TextProperty.prototype.getValue=function(e){if(!((this.elem.globalData.frameId===this.frameId||!this.effectsSequence.length)&&!e)){this.currentData.t=this.data.d.k[this.keysIndex].s.t;var t=this.currentData,n=this.keysIndex;if(this.lock){this.setCurrentData(this.currentData);return}this.lock=!0,this._mdf=!1;var i,s=this.effectsSequence.length,a=e||this.data.d.k[this.keysIndex].s;for(i=0;i<s;i+=1)n!==this.keysIndex?a=this.effectsSequence[i](a,a.t):a=this.effectsSequence[i](this.currentData,a.t);t!==a&&this.setCurrentData(a),this.v=this.currentData,this.pv=this.v,this.lock=!1,this.frameId=this.elem.globalData.frameId}},TextProperty.prototype.getKeyframeValue=function(){for(var e=this.data.d.k,t=this.elem.comp.renderedFrame,n=0,i=e.length;n<=i-1&&!(n===i-1||e[n+1].t>t);)n+=1;return this.keysIndex!==n&&(this.keysIndex=n),this.data.d.k[this.keysIndex].s},TextProperty.prototype.buildFinalText=function(e){for(var t=[],n=0,i=e.length,s,a,o=!1,l=!1,c="";n<i;)o=l,l=!1,s=e.charCodeAt(n),c=e.charAt(n),FontManager.isCombinedCharacter(s)?o=!0:s>=55296&&s<=56319?FontManager.isRegionalFlag(e,n)?c=e.substr(n,14):(a=e.charCodeAt(n+1),a>=56320&&a<=57343&&(FontManager.isModifier(s,a)?(c=e.substr(n,2),o=!0):FontManager.isFlagEmoji(e.substr(n,4))?c=e.substr(n,4):c=e.substr(n,2))):s>56319?(a=e.charCodeAt(n+1),FontManager.isVariationSelector(s)&&(o=!0)):FontManager.isZeroWidthJoiner(s)&&(o=!0,l=!0),o?(t[t.length-1]+=c,o=!1):t.push(c),n+=c.length;return t},TextProperty.prototype.completeTextData=function(e){e.__complete=!0;var t=this.elem.globalData.fontManager,n=this.data,i=[],s,a,o,l=0,c,u=n.m.g,d=0,p=0,h=0,y=[],f=0,m=0,C,g,b=t.getFontByName(e.f),v,N=0,w=getFontProperties(b);e.fWeight=w.weight,e.fStyle=w.style,e.finalSize=e.s,e.finalText=this.buildFinalText(e.t),a=e.finalText.length,e.finalLineHeight=e.lh;var E=e.tr/1e3*e.finalSize,_;if(e.sz)for(var k=!0,A=e.sz[0],F=e.sz[1],B,I;k;){I=this.buildFinalText(e.t),B=0,f=0,a=I.length,E=e.tr/1e3*e.finalSize;var D=-1;for(s=0;s<a;s+=1)_=I[s].charCodeAt(0),o=!1,I[s]===" "?D=s:(_===13||_===3)&&(f=0,o=!0,B+=e.finalLineHeight||e.finalSize*1.2),t.chars?(v=t.getCharData(I[s],b.fStyle,b.fFamily),N=o?0:v.w*e.finalSize/100):N=t.measureText(I[s],e.f,e.finalSize),f+N>A&&I[s]!==" "?(D===-1?a+=1:s=D,B+=e.finalLineHeight||e.finalSize*1.2,I.splice(s,D===s?1:0,"\r"),D=-1,f=0):(f+=N,f+=E);B+=b.ascent*e.finalSize/100,this.canResize&&e.finalSize>this.minimumFontSize&&F<B?(e.finalSize-=1,e.finalLineHeight=e.finalSize*e.lh/e.s):(e.finalText=I,a=e.finalText.length,k=!1)}f=-E,N=0;var L=0,$;for(s=0;s<a;s+=1)if(o=!1,$=e.finalText[s],_=$.charCodeAt(0),_===13||_===3?(L=0,y.push(f),m=f>m?f:m,f=-2*E,c="",o=!0,h+=1):c=$,t.chars?(v=t.getCharData($,b.fStyle,t.getFontByName(e.f).fFamily),N=o?0:v.w*e.finalSize/100):N=t.measureText(c,e.f,e.finalSize),$===" "?L+=N+E:(f+=N+E+L,L=0),i.push({l:N,an:N,add:d,n:o,anIndexes:[],val:c,line:h,animatorJustifyOffset:0}),u==2){if(d+=N,c===""||c===" "||s===a-1){for((c===""||c===" ")&&(d-=N);p<=s;)i[p].an=d,i[p].ind=l,i[p].extra=N,p+=1;l+=1,d=0}}else if(u==3){if(d+=N,c===""||s===a-1){for(c===""&&(d-=N);p<=s;)i[p].an=d,i[p].ind=l,i[p].extra=N,p+=1;d=0,l+=1}}else i[l].ind=l,i[l].extra=0,l+=1;if(e.l=i,m=f>m?f:m,y.push(f),e.sz)e.boxWidth=e.sz[0],e.justifyOffset=0;else switch(e.boxWidth=m,e.j){case 1:e.justifyOffset=-e.boxWidth;break;case 2:e.justifyOffset=-e.boxWidth/2;break;default:e.justifyOffset=0}e.lineWidths=y;var P=n.a,T,x;g=P.length;var S,M,V=[];for(C=0;C<g;C+=1){for(T=P[C],T.a.sc&&(e.strokeColorAnim=!0),T.a.sw&&(e.strokeWidthAnim=!0),(T.a.fc||T.a.fh||T.a.fs||T.a.fb)&&(e.fillColorAnim=!0),M=0,S=T.s.b,s=0;s<a;s+=1)x=i[s],x.anIndexes[C]=M,(S==1&&x.val!==""||S==2&&x.val!==""&&x.val!==" "||S==3&&(x.n||x.val==" "||s==a-1)||S==4&&(x.n||s==a-1))&&(T.s.rn===1&&V.push(M),M+=1);n.a[C].s.totalChars=M;var z=-1,G;if(T.s.rn===1)for(s=0;s<a;s+=1)x=i[s],z!=x.anIndexes[C]&&(z=x.anIndexes[C],G=V.splice(Math.floor(Math.random()*V.length),1)[0]),x.anIndexes[C]=G}e.yOffset=e.finalLineHeight||e.finalSize*1.2,e.ls=e.ls||0,e.ascent=b.ascent*e.finalSize/100},TextProperty.prototype.updateDocumentData=function(e,t){t=t===void 0?this.keysIndex:t;var n=this.copyData({},this.data.d.k[t].s);n=this.copyData(n,e),this.data.d.k[t].s=n,this.recalculate(t),this.setCurrentData(n),this.elem.addDynamicProperty(this)},TextProperty.prototype.recalculate=function(e){var t=this.data.d.k[e].s;t.__complete=!1,this.keysIndex=0,this._isFirstFrame=!0,this.getValue(t)},TextProperty.prototype.canResizeFont=function(e){this.canResize=e,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)},TextProperty.prototype.setMinimumFontSize=function(e){this.minimumFontSize=Math.floor(e)||1,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)};var TextSelectorProp=(function(){var e=Math.max,t=Math.min,n=Math.floor;function i(a,o){this._currentTextLength=-1,this.k=!1,this.data=o,this.elem=a,this.comp=a.comp,this.finalS=0,this.finalE=0,this.initDynamicPropertyContainer(a),this.s=PropertyFactory.getProp(a,o.s||{k:0},0,0,this),"e"in o?this.e=PropertyFactory.getProp(a,o.e,0,0,this):this.e={v:100},this.o=PropertyFactory.getProp(a,o.o||{k:0},0,0,this),this.xe=PropertyFactory.getProp(a,o.xe||{k:0},0,0,this),this.ne=PropertyFactory.getProp(a,o.ne||{k:0},0,0,this),this.sm=PropertyFactory.getProp(a,o.sm||{k:100},0,0,this),this.a=PropertyFactory.getProp(a,o.a,0,.01,this),this.dynamicProperties.length||this.getValue()}i.prototype={getMult:function(o){this._currentTextLength!==this.elem.textProperty.currentData.l.length&&this.getValue();var l=0,c=0,u=1,d=1;this.ne.v>0?l=this.ne.v/100:c=-this.ne.v/100,this.xe.v>0?u=1-this.xe.v/100:d=1+this.xe.v/100;var p=BezierFactory.getBezierEasing(l,c,u,d).get,h=0,y=this.finalS,f=this.finalE,m=this.data.sh;if(m===2)f===y?h=o>=f?1:0:h=e(0,t(.5/(f-y)+(o-y)/(f-y),1)),h=p(h);else if(m===3)f===y?h=o>=f?0:1:h=1-e(0,t(.5/(f-y)+(o-y)/(f-y),1)),h=p(h);else if(m===4)f===y?h=0:(h=e(0,t(.5/(f-y)+(o-y)/(f-y),1)),h<.5?h*=2:h=1-2*(h-.5)),h=p(h);else if(m===5){if(f===y)h=0;else{var C=f-y;o=t(e(0,o+.5-y),f-y);var g=-C/2+o,b=C/2;h=Math.sqrt(1-g*g/(b*b))}h=p(h)}else m===6?(f===y?h=0:(o=t(e(0,o+.5-y),f-y),h=(1+Math.cos(Math.PI+Math.PI*2*o/(f-y)))/2),h=p(h)):(o>=n(y)&&(o-y<0?h=e(0,t(t(f,1)-(y-o),1)):h=e(0,t(f-o,1))),h=p(h));if(this.sm.v!==100){var v=this.sm.v*.01;v===0&&(v=1e-8);var N=.5-v*.5;h<N?h=0:(h=(h-N)/v,h>1&&(h=1))}return h*this.a.v},getValue:function(o){this.iterateDynamicProperties(),this._mdf=o||this._mdf,this._currentTextLength=this.elem.textProperty.currentData.l.length||0,o&&this.data.r===2&&(this.e.v=this._currentTextLength);var l=this.data.r===2?1:100/this.data.totalChars,c=this.o.v/l,u=this.s.v/l+c,d=this.e.v/l+c;if(u>d){var p=u;u=d,d=p}this.finalS=u,this.finalE=d}},extendPrototype([DynamicPropertyContainer],i);function s(a,o,l){return new i(a,o)}return{getTextSelectorProp:s}})();function TextAnimatorDataProperty(e,t,n){var i={propType:!1},s=PropertyFactory.getProp,a=t.a;this.a={r:a.r?s(e,a.r,0,degToRads,n):i,rx:a.rx?s(e,a.rx,0,degToRads,n):i,ry:a.ry?s(e,a.ry,0,degToRads,n):i,sk:a.sk?s(e,a.sk,0,degToRads,n):i,sa:a.sa?s(e,a.sa,0,degToRads,n):i,s:a.s?s(e,a.s,1,.01,n):i,a:a.a?s(e,a.a,1,0,n):i,o:a.o?s(e,a.o,0,.01,n):i,p:a.p?s(e,a.p,1,0,n):i,sw:a.sw?s(e,a.sw,0,0,n):i,sc:a.sc?s(e,a.sc,1,0,n):i,fc:a.fc?s(e,a.fc,1,0,n):i,fh:a.fh?s(e,a.fh,0,0,n):i,fs:a.fs?s(e,a.fs,0,.01,n):i,fb:a.fb?s(e,a.fb,0,.01,n):i,t:a.t?s(e,a.t,0,0,n):i},this.s=TextSelectorProp.getTextSelectorProp(e,t.s,n),this.s.t=t.s.t}function TextAnimatorProperty(e,t,n){this._isFirstFrame=!0,this._hasMaskedPath=!1,this._frameId=-1,this._textData=e,this._renderType=t,this._elem=n,this._animatorsData=createSizedArray(this._textData.a.length),this._pathData={},this._moreOptions={alignment:{}},this.renderedLetters=[],this.lettersChangedFlag=!1,this.initDynamicPropertyContainer(n)}TextAnimatorProperty.prototype.searchProperties=function(){var e,t=this._textData.a.length,n,i=PropertyFactory.getProp;for(e=0;e<t;e+=1)n=this._textData.a[e],this._animatorsData[e]=new TextAnimatorDataProperty(this._elem,n,this);this._textData.p&&"m"in this._textData.p?(this._pathData={a:i(this._elem,this._textData.p.a,0,0,this),f:i(this._elem,this._textData.p.f,0,0,this),l:i(this._elem,this._textData.p.l,0,0,this),r:i(this._elem,this._textData.p.r,0,0,this),p:i(this._elem,this._textData.p.p,0,0,this),m:this._elem.maskManager.getMaskProperty(this._textData.p.m)},this._hasMaskedPath=!0):this._hasMaskedPath=!1,this._moreOptions.alignment=i(this._elem,this._textData.m.a,1,0,this)},TextAnimatorProperty.prototype.getMeasures=function(e,t){if(this.lettersChangedFlag=t,!(!this._mdf&&!this._isFirstFrame&&!t&&(!this._hasMaskedPath||!this._pathData.m._mdf))){this._isFirstFrame=!1;var n=this._moreOptions.alignment.v,i=this._animatorsData,s=this._textData,a=this.mHelper,o=this._renderType,l=this.renderedLetters.length,c,u,d,p,h=e.l,y,f,m,C,g,b,v,N,w,E,_,k,A,F,B;if(this._hasMaskedPath){if(B=this._pathData.m,!this._pathData.n||this._pathData._mdf){var I=B.v;this._pathData.r.v&&(I=I.reverse()),y={tLength:0,segments:[]},p=I._length-1;var D;for(k=0,d=0;d<p;d+=1)D=bez.buildBezierData(I.v[d],I.v[d+1],[I.o[d][0]-I.v[d][0],I.o[d][1]-I.v[d][1]],[I.i[d+1][0]-I.v[d+1][0],I.i[d+1][1]-I.v[d+1][1]]),y.tLength+=D.segmentLength,y.segments.push(D),k+=D.segmentLength;d=p,B.v.c&&(D=bez.buildBezierData(I.v[d],I.v[0],[I.o[d][0]-I.v[d][0],I.o[d][1]-I.v[d][1]],[I.i[0][0]-I.v[0][0],I.i[0][1]-I.v[0][1]]),y.tLength+=D.segmentLength,y.segments.push(D),k+=D.segmentLength),this._pathData.pi=y}if(y=this._pathData.pi,f=this._pathData.f.v,v=0,b=1,C=0,g=!0,E=y.segments,f<0&&B.v.c)for(y.tLength<Math.abs(f)&&(f=-Math.abs(f)%y.tLength),v=E.length-1,w=E[v].points,b=w.length-1;f<0;)f+=w[b].partialLength,b-=1,b<0&&(v-=1,w=E[v].points,b=w.length-1);w=E[v].points,N=w[b-1],m=w[b],_=m.partialLength}p=h.length,c=0,u=0;var L=e.finalSize*1.2*.714,$=!0,P,T,x,S,M;S=i.length;var V,z=-1,G,H,W,q=f,U=v,J=b,Q=-1,K,X,Z,Y,j,ae,ue,oe,se="",le=this.defaultPropsArray,ce;if(e.j===2||e.j===1){var ee=0,de=0,fe=e.j===2?-.5:-1,re=0,he=!0;for(d=0;d<p;d+=1)if(h[d].n){for(ee&&(ee+=de);re<d;)h[re].animatorJustifyOffset=ee,re+=1;ee=0,he=!0}else{for(x=0;x<S;x+=1)P=i[x].a,P.t.propType&&(he&&e.j===2&&(de+=P.t.v*fe),T=i[x].s,V=T.getMult(h[d].anIndexes[x],s.a[x].s.totalChars),V.length?ee+=P.t.v*V[0]*fe:ee+=P.t.v*V*fe);he=!1}for(ee&&(ee+=de);re<d;)h[re].animatorJustifyOffset=ee,re+=1}for(d=0;d<p;d+=1){if(a.reset(),K=1,h[d].n)c=0,u+=e.yOffset,u+=$?1:0,f=q,$=!1,this._hasMaskedPath&&(v=U,b=J,w=E[v].points,N=w[b-1],m=w[b],_=m.partialLength,C=0),se="",oe="",ae="",ce="",le=this.defaultPropsArray;else{if(this._hasMaskedPath){if(Q!==h[d].line){switch(e.j){case 1:f+=k-e.lineWidths[h[d].line];break;case 2:f+=(k-e.lineWidths[h[d].line])/2;break}Q=h[d].line}z!==h[d].ind&&(h[z]&&(f+=h[z].extra),f+=h[d].an/2,z=h[d].ind),f+=n[0]*h[d].an*.005;var ie=0;for(x=0;x<S;x+=1)P=i[x].a,P.p.propType&&(T=i[x].s,V=T.getMult(h[d].anIndexes[x],s.a[x].s.totalChars),V.length?ie+=P.p.v[0]*V[0]:ie+=P.p.v[0]*V),P.a.propType&&(T=i[x].s,V=T.getMult(h[d].anIndexes[x],s.a[x].s.totalChars),V.length?ie+=P.a.v[0]*V[0]:ie+=P.a.v[0]*V);for(g=!0,this._pathData.a.v&&(f=h[0].an*.5+(k-this._pathData.f.v-h[0].an*.5-h[h.length-1].an*.5)*z/(p-1),f+=this._pathData.f.v);g;)C+_>=f+ie||!w?(A=(f+ie-C)/m.partialLength,H=N.point[0]+(m.point[0]-N.point[0])*A,W=N.point[1]+(m.point[1]-N.point[1])*A,a.translate(-n[0]*h[d].an*.005,-(n[1]*L)*.01),g=!1):w&&(C+=m.partialLength,b+=1,b>=w.length&&(b=0,v+=1,E[v]?w=E[v].points:B.v.c?(b=0,v=0,w=E[v].points):(C-=m.partialLength,w=null)),w&&(N=m,m=w[b],_=m.partialLength));G=h[d].an/2-h[d].add,a.translate(-G,0,0)}else G=h[d].an/2-h[d].add,a.translate(-G,0,0),a.translate(-n[0]*h[d].an*.005,-n[1]*L*.01,0);for(x=0;x<S;x+=1)P=i[x].a,P.t.propType&&(T=i[x].s,V=T.getMult(h[d].anIndexes[x],s.a[x].s.totalChars),(c!==0||e.j!==0)&&(this._hasMaskedPath?V.length?f+=P.t.v*V[0]:f+=P.t.v*V:V.length?c+=P.t.v*V[0]:c+=P.t.v*V));for(e.strokeWidthAnim&&(Z=e.sw||0),e.strokeColorAnim&&(e.sc?X=[e.sc[0],e.sc[1],e.sc[2]]:X=[0,0,0]),e.fillColorAnim&&e.fc&&(Y=[e.fc[0],e.fc[1],e.fc[2]]),x=0;x<S;x+=1)P=i[x].a,P.a.propType&&(T=i[x].s,V=T.getMult(h[d].anIndexes[x],s.a[x].s.totalChars),V.length?a.translate(-P.a.v[0]*V[0],-P.a.v[1]*V[1],P.a.v[2]*V[2]):a.translate(-P.a.v[0]*V,-P.a.v[1]*V,P.a.v[2]*V));for(x=0;x<S;x+=1)P=i[x].a,P.s.propType&&(T=i[x].s,V=T.getMult(h[d].anIndexes[x],s.a[x].s.totalChars),V.length?a.scale(1+(P.s.v[0]-1)*V[0],1+(P.s.v[1]-1)*V[1],1):a.scale(1+(P.s.v[0]-1)*V,1+(P.s.v[1]-1)*V,1));for(x=0;x<S;x+=1){if(P=i[x].a,T=i[x].s,V=T.getMult(h[d].anIndexes[x],s.a[x].s.totalChars),P.sk.propType&&(V.length?a.skewFromAxis(-P.sk.v*V[0],P.sa.v*V[1]):a.skewFromAxis(-P.sk.v*V,P.sa.v*V)),P.r.propType&&(V.length?a.rotateZ(-P.r.v*V[2]):a.rotateZ(-P.r.v*V)),P.ry.propType&&(V.length?a.rotateY(P.ry.v*V[1]):a.rotateY(P.ry.v*V)),P.rx.propType&&(V.length?a.rotateX(P.rx.v*V[0]):a.rotateX(P.rx.v*V)),P.o.propType&&(V.length?K+=(P.o.v*V[0]-K)*V[0]:K+=(P.o.v*V-K)*V),e.strokeWidthAnim&&P.sw.propType&&(V.length?Z+=P.sw.v*V[0]:Z+=P.sw.v*V),e.strokeColorAnim&&P.sc.propType)for(j=0;j<3;j+=1)V.length?X[j]+=(P.sc.v[j]-X[j])*V[0]:X[j]+=(P.sc.v[j]-X[j])*V;if(e.fillColorAnim&&e.fc){if(P.fc.propType)for(j=0;j<3;j+=1)V.length?Y[j]+=(P.fc.v[j]-Y[j])*V[0]:Y[j]+=(P.fc.v[j]-Y[j])*V;P.fh.propType&&(V.length?Y=addHueToRGB(Y,P.fh.v*V[0]):Y=addHueToRGB(Y,P.fh.v*V)),P.fs.propType&&(V.length?Y=addSaturationToRGB(Y,P.fs.v*V[0]):Y=addSaturationToRGB(Y,P.fs.v*V)),P.fb.propType&&(V.length?Y=addBrightnessToRGB(Y,P.fb.v*V[0]):Y=addBrightnessToRGB(Y,P.fb.v*V))}}for(x=0;x<S;x+=1)P=i[x].a,P.p.propType&&(T=i[x].s,V=T.getMult(h[d].anIndexes[x],s.a[x].s.totalChars),this._hasMaskedPath?V.length?a.translate(0,P.p.v[1]*V[0],-P.p.v[2]*V[1]):a.translate(0,P.p.v[1]*V,-P.p.v[2]*V):V.length?a.translate(P.p.v[0]*V[0],P.p.v[1]*V[1],-P.p.v[2]*V[2]):a.translate(P.p.v[0]*V,P.p.v[1]*V,-P.p.v[2]*V));if(e.strokeWidthAnim&&(ae=Z<0?0:Z),e.strokeColorAnim&&(ue="rgb("+Math.round(X[0]*255)+","+Math.round(X[1]*255)+","+Math.round(X[2]*255)+")"),e.fillColorAnim&&e.fc&&(oe="rgb("+Math.round(Y[0]*255)+","+Math.round(Y[1]*255)+","+Math.round(Y[2]*255)+")"),this._hasMaskedPath){if(a.translate(0,-e.ls),a.translate(0,n[1]*L*.01+u,0),this._pathData.p.v){F=(m.point[1]-N.point[1])/(m.point[0]-N.point[0]);var pe=Math.atan(F)*180/Math.PI;m.point[0]<N.point[0]&&(pe+=180),a.rotate(-pe*Math.PI/180)}a.translate(H,W,0),f-=n[0]*h[d].an*.005,h[d+1]&&z!==h[d+1].ind&&(f+=h[d].an/2,f+=e.tr*.001*e.finalSize)}else{switch(a.translate(c,u,0),e.ps&&a.translate(e.ps[0],e.ps[1]+e.ascent,0),e.j){case 1:a.translate(h[d].animatorJustifyOffset+e.justifyOffset+(e.boxWidth-e.lineWidths[h[d].line]),0,0);break;case 2:a.translate(h[d].animatorJustifyOffset+e.justifyOffset+(e.boxWidth-e.lineWidths[h[d].line])/2,0,0);break}a.translate(0,-e.ls),a.translate(G,0,0),a.translate(n[0]*h[d].an*.005,n[1]*L*.01,0),c+=h[d].l+e.tr*.001*e.finalSize}o==="html"?se=a.toCSS():o==="svg"?se=a.to2dCSS():le=[a.props[0],a.props[1],a.props[2],a.props[3],a.props[4],a.props[5],a.props[6],a.props[7],a.props[8],a.props[9],a.props[10],a.props[11],a.props[12],a.props[13],a.props[14],a.props[15]],ce=K}l<=d?(M=new LetterProps(ce,ae,ue,oe,se,le),this.renderedLetters.push(M),l+=1,this.lettersChangedFlag=!0):(M=this.renderedLetters[d],this.lettersChangedFlag=M.update(ce,ae,ue,oe,se,le)||this.lettersChangedFlag)}}},TextAnimatorProperty.prototype.getValue=function(){this._elem.globalData.frameId!==this._frameId&&(this._frameId=this._elem.globalData.frameId,this.iterateDynamicProperties())},TextAnimatorProperty.prototype.mHelper=new Matrix,TextAnimatorProperty.prototype.defaultPropsArray=[],extendPrototype([DynamicPropertyContainer],TextAnimatorProperty);function ITextElement(){}ITextElement.prototype.initElement=function(e,t,n){this.lettersChangedFlag=!0,this.initFrame(),this.initBaseData(e,t,n),this.textProperty=new TextProperty(this,e.t,this.dynamicProperties),this.textAnimator=new TextAnimatorProperty(e.t,this.renderType,this),this.initTransform(e,t,n),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.createContent(),this.hide(),this.textAnimator.searchProperties(this.dynamicProperties)},ITextElement.prototype.prepareFrame=function(e){this._mdf=!1,this.prepareRenderableFrame(e),this.prepareProperties(e,this.isInRange)},ITextElement.prototype.createPathShape=function(e,t){var n,i=t.length,s,a="";for(n=0;n<i;n+=1)t[n].ty==="sh"&&(s=t[n].ks.k,a+=buildShapeString(s,s.i.length,!0,e));return a},ITextElement.prototype.updateDocumentData=function(e,t){this.textProperty.updateDocumentData(e,t)},ITextElement.prototype.canResizeFont=function(e){this.textProperty.canResizeFont(e)},ITextElement.prototype.setMinimumFontSize=function(e){this.textProperty.setMinimumFontSize(e)},ITextElement.prototype.applyTextPropertiesToMatrix=function(e,t,n,i,s){switch(e.ps&&t.translate(e.ps[0],e.ps[1]+e.ascent,0),t.translate(0,-e.ls,0),e.j){case 1:t.translate(e.justifyOffset+(e.boxWidth-e.lineWidths[n]),0,0);break;case 2:t.translate(e.justifyOffset+(e.boxWidth-e.lineWidths[n])/2,0,0);break}t.translate(i,s,0)},ITextElement.prototype.buildColor=function(e){return"rgb("+Math.round(e[0]*255)+","+Math.round(e[1]*255)+","+Math.round(e[2]*255)+")"},ITextElement.prototype.emptyProp=new LetterProps,ITextElement.prototype.destroy=function(){},ITextElement.prototype.validateText=function(){(this.textProperty._mdf||this.textProperty._isFirstFrame)&&(this.buildNewText(),this.textProperty._isFirstFrame=!1,this.textProperty._mdf=!1)};var emptyShapeData={shapes:[]};function SVGTextLottieElement(e,t,n){this.textSpans=[],this.renderType="svg",this.initElement(e,t,n)}extendPrototype([BaseElement,TransformElement,SVGBaseElement,HierarchyElement,FrameElement,RenderableDOMElement,ITextElement],SVGTextLottieElement),SVGTextLottieElement.prototype.createContent=function(){this.data.singleShape&&!this.globalData.fontManager.chars&&(this.textContainer=createNS("text"))},SVGTextLottieElement.prototype.buildTextContents=function(e){for(var t=0,n=e.length,i=[],s="";t<n;)e[t]==="\r"||e[t]===""?(i.push(s),s=""):s+=e[t],t+=1;return i.push(s),i},SVGTextLottieElement.prototype.buildShapeData=function(e,t){if(e.shapes&&e.shapes.length){var n=e.shapes[0];if(n.it){var i=n.it[n.it.length-1];i.s&&(i.s.k[0]=t,i.s.k[1]=t)}}return e},SVGTextLottieElement.prototype.buildNewText=function(){this.addDynamicProperty(this);var e,t,n=this.textProperty.currentData;this.renderedLetters=createSizedArray(n?n.l.length:0),n.fc?this.layerElement.setAttribute("fill",this.buildColor(n.fc)):this.layerElement.setAttribute("fill","rgba(0,0,0,0)"),n.sc&&(this.layerElement.setAttribute("stroke",this.buildColor(n.sc)),this.layerElement.setAttribute("stroke-width",n.sw)),this.layerElement.setAttribute("font-size",n.finalSize);var i=this.globalData.fontManager.getFontByName(n.f);if(i.fClass)this.layerElement.setAttribute("class",i.fClass);else{this.layerElement.setAttribute("font-family",i.fFamily);var s=n.fWeight,a=n.fStyle;this.layerElement.setAttribute("font-style",a),this.layerElement.setAttribute("font-weight",s)}this.layerElement.setAttribute("aria-label",n.t);var o=n.l||[],l=!!this.globalData.fontManager.chars;t=o.length;var c,u=this.mHelper,d="",p=this.data.singleShape,h=0,y=0,f=!0,m=n.tr*.001*n.finalSize;if(p&&!l&&!n.sz){var C=this.textContainer,g="start";switch(n.j){case 1:g="end";break;case 2:g="middle";break;default:g="start";break}C.setAttribute("text-anchor",g),C.setAttribute("letter-spacing",m);var b=this.buildTextContents(n.finalText);for(t=b.length,y=n.ps?n.ps[1]+n.ascent:0,e=0;e<t;e+=1)c=this.textSpans[e].span||createNS("tspan"),c.textContent=b[e],c.setAttribute("x",0),c.setAttribute("y",y),c.style.display="inherit",C.appendChild(c),this.textSpans[e]||(this.textSpans[e]={span:null,glyph:null}),this.textSpans[e].span=c,y+=n.finalLineHeight;this.layerElement.appendChild(C)}else{var v=this.textSpans.length,N;for(e=0;e<t;e+=1){if(this.textSpans[e]||(this.textSpans[e]={span:null,childSpan:null,glyph:null}),!l||!p||e===0){if(c=v>e?this.textSpans[e].span:createNS(l?"g":"text"),v<=e){if(c.setAttribute("stroke-linecap","butt"),c.setAttribute("stroke-linejoin","round"),c.setAttribute("stroke-miterlimit","4"),this.textSpans[e].span=c,l){var w=createNS("g");c.appendChild(w),this.textSpans[e].childSpan=w}this.textSpans[e].span=c,this.layerElement.appendChild(c)}c.style.display="inherit"}if(u.reset(),p&&(o[e].n&&(h=-m,y+=n.yOffset,y+=f?1:0,f=!1),this.applyTextPropertiesToMatrix(n,u,o[e].line,h,y),h+=o[e].l||0,h+=m),l){N=this.globalData.fontManager.getCharData(n.finalText[e],i.fStyle,this.globalData.fontManager.getFontByName(n.f).fFamily);var E;if(N.t===1)E=new SVGCompElement(N.data,this.globalData,this);else{var _=emptyShapeData;N.data&&N.data.shapes&&(_=this.buildShapeData(N.data,n.finalSize)),E=new SVGShapeElement(_,this.globalData,this)}if(this.textSpans[e].glyph){var k=this.textSpans[e].glyph;this.textSpans[e].childSpan.removeChild(k.layerElement),k.destroy()}this.textSpans[e].glyph=E,E._debug=!0,E.prepareFrame(0),E.renderFrame(),this.textSpans[e].childSpan.appendChild(E.layerElement),N.t===1&&this.textSpans[e].childSpan.setAttribute("transform","scale("+n.finalSize/100+","+n.finalSize/100+")")}else p&&c.setAttribute("transform","translate("+u.props[12]+","+u.props[13]+")"),c.textContent=o[e].val,c.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve")}p&&c&&c.setAttribute("d",d)}for(;e<this.textSpans.length;)this.textSpans[e].span.style.display="none",e+=1;this._sizeChanged=!0},SVGTextLottieElement.prototype.sourceRectAtTime=function(){if(this.prepareFrame(this.comp.renderedFrame-this.data.st),this.renderInnerContent(),this._sizeChanged){this._sizeChanged=!1;var e=this.layerElement.getBBox();this.bbox={top:e.y,left:e.x,width:e.width,height:e.height}}return this.bbox},SVGTextLottieElement.prototype.getValue=function(){var e,t=this.textSpans.length,n;for(this.renderedFrame=this.comp.renderedFrame,e=0;e<t;e+=1)n=this.textSpans[e].glyph,n&&(n.prepareFrame(this.comp.renderedFrame-this.data.st),n._mdf&&(this._mdf=!0))},SVGTextLottieElement.prototype.renderInnerContent=function(){if(this.validateText(),(!this.data.singleShape||this._mdf)&&(this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag),this.lettersChangedFlag||this.textAnimator.lettersChangedFlag)){this._sizeChanged=!0;var e,t,n=this.textAnimator.renderedLetters,i=this.textProperty.currentData.l;t=i.length;var s,a,o;for(e=0;e<t;e+=1)i[e].n||(s=n[e],a=this.textSpans[e].span,o=this.textSpans[e].glyph,o&&o.renderFrame(),s._mdf.m&&a.setAttribute("transform",s.m),s._mdf.o&&a.setAttribute("opacity",s.o),s._mdf.sw&&a.setAttribute("stroke-width",s.sw),s._mdf.sc&&a.setAttribute("stroke",s.sc),s._mdf.fc&&a.setAttribute("fill",s.fc))}};function ISolidElement(e,t,n){this.initElement(e,t,n)}extendPrototype([IImageElement],ISolidElement),ISolidElement.prototype.createContent=function(){var e=createNS("rect");e.setAttribute("width",this.data.sw),e.setAttribute("height",this.data.sh),e.setAttribute("fill",this.data.sc),this.layerElement.appendChild(e)};function NullElement(e,t,n){this.initFrame(),this.initBaseData(e,t,n),this.initFrame(),this.initTransform(e,t,n),this.initHierarchy()}NullElement.prototype.prepareFrame=function(e){this.prepareProperties(e,!0)},NullElement.prototype.renderFrame=function(){},NullElement.prototype.getBaseElement=function(){return null},NullElement.prototype.destroy=function(){},NullElement.prototype.sourceRectAtTime=function(){},NullElement.prototype.hide=function(){},extendPrototype([BaseElement,TransformElement,HierarchyElement,FrameElement],NullElement);function SVGRendererBase(){}extendPrototype([BaseRenderer],SVGRendererBase),SVGRendererBase.prototype.createNull=function(e){return new NullElement(e,this.globalData,this)},SVGRendererBase.prototype.createShape=function(e){return new SVGShapeElement(e,this.globalData,this)},SVGRendererBase.prototype.createText=function(e){return new SVGTextLottieElement(e,this.globalData,this)},SVGRendererBase.prototype.createImage=function(e){return new IImageElement(e,this.globalData,this)},SVGRendererBase.prototype.createSolid=function(e){return new ISolidElement(e,this.globalData,this)},SVGRendererBase.prototype.configAnimation=function(e){this.svgElement.setAttribute("xmlns","http://www.w3.org/2000/svg"),this.svgElement.setAttribute("xmlns:xlink","http://www.w3.org/1999/xlink"),this.renderConfig.viewBoxSize?this.svgElement.setAttribute("viewBox",this.renderConfig.viewBoxSize):this.svgElement.setAttribute("viewBox","0 0 "+e.w+" "+e.h),this.renderConfig.viewBoxOnly||(this.svgElement.setAttribute("width",e.w),this.svgElement.setAttribute("height",e.h),this.svgElement.style.width="100%",this.svgElement.style.height="100%",this.svgElement.style.transform="translate3d(0,0,0)",this.svgElement.style.contentVisibility=this.renderConfig.contentVisibility),this.renderConfig.width&&this.svgElement.setAttribute("width",this.renderConfig.width),this.renderConfig.height&&this.svgElement.setAttribute("height",this.renderConfig.height),this.renderConfig.className&&this.svgElement.setAttribute("class",this.renderConfig.className),this.renderConfig.id&&this.svgElement.setAttribute("id",this.renderConfig.id),this.renderConfig.focusable!==void 0&&this.svgElement.setAttribute("focusable",this.renderConfig.focusable),this.svgElement.setAttribute("preserveAspectRatio",this.renderConfig.preserveAspectRatio),this.animationItem.wrapper.appendChild(this.svgElement);var t=this.globalData.defs;this.setupGlobalData(e,t),this.globalData.progressiveLoad=this.renderConfig.progressiveLoad,this.data=e;var n=createNS("clipPath"),i=createNS("rect");i.setAttribute("width",e.w),i.setAttribute("height",e.h),i.setAttribute("x",0),i.setAttribute("y",0);var s=createElementID();n.setAttribute("id",s),n.appendChild(i),this.layerElement.setAttribute("clip-path","url("+getLocationHref()+"#"+s+")"),t.appendChild(n),this.layers=e.layers,this.elements=createSizedArray(e.layers.length)},SVGRendererBase.prototype.destroy=function(){this.animationItem.wrapper&&(this.animationItem.wrapper.innerText=""),this.layerElement=null,this.globalData.defs=null;var e,t=this.layers?this.layers.length:0;for(e=0;e<t;e+=1)this.elements[e]&&this.elements[e].destroy&&this.elements[e].destroy();this.elements.length=0,this.destroyed=!0,this.animationItem=null},SVGRendererBase.prototype.updateContainerSize=function(){},SVGRendererBase.prototype.findIndexByInd=function(e){var t=0,n=this.layers.length;for(t=0;t<n;t+=1)if(this.layers[t].ind===e)return t;return-1},SVGRendererBase.prototype.buildItem=function(e){var t=this.elements;if(!(t[e]||this.layers[e].ty===99)){t[e]=!0;var n=this.createItem(this.layers[e]);if(t[e]=n,getExpressionsPlugin()&&(this.layers[e].ty===0&&this.globalData.projectInterface.registerComposition(n),n.initExpressions()),this.appendElementInPos(n,e),this.layers[e].tt){var i="tp"in this.layers[e]?this.findIndexByInd(this.layers[e].tp):e-1;if(i===-1)return;if(!this.elements[i]||this.elements[i]===!0)this.buildItem(i),this.addPendingElement(n);else{var s=t[i],a=s.getMatte(this.layers[e].tt);n.setMatte(a)}}}},SVGRendererBase.prototype.checkPendingElements=function(){for(;this.pendingElements.length;){var e=this.pendingElements.pop();if(e.checkParenting(),e.data.tt)for(var t=0,n=this.elements.length;t<n;){if(this.elements[t]===e){var i="tp"in e.data?this.findIndexByInd(e.data.tp):t-1,s=this.elements[i],a=s.getMatte(this.layers[t].tt);e.setMatte(a);break}t+=1}}},SVGRendererBase.prototype.renderFrame=function(e){if(!(this.renderedFrame===e||this.destroyed)){e===null?e=this.renderedFrame:this.renderedFrame=e,this.globalData.frameNum=e,this.globalData.frameId+=1,this.globalData.projectInterface.currentFrame=e,this.globalData._mdf=!1;var t,n=this.layers.length;for(this.completeLayers||this.checkLayers(e),t=n-1;t>=0;t-=1)(this.completeLayers||this.elements[t])&&this.elements[t].prepareFrame(e-this.layers[t].st);if(this.globalData._mdf)for(t=0;t<n;t+=1)(this.completeLayers||this.elements[t])&&this.elements[t].renderFrame()}},SVGRendererBase.prototype.appendElementInPos=function(e,t){var n=e.getBaseElement();if(n){for(var i=0,s;i<t;)this.elements[i]&&this.elements[i]!==!0&&this.elements[i].getBaseElement()&&(s=this.elements[i].getBaseElement()),i+=1;s?this.layerElement.insertBefore(n,s):this.layerElement.appendChild(n)}},SVGRendererBase.prototype.hide=function(){this.layerElement.style.display="none"},SVGRendererBase.prototype.show=function(){this.layerElement.style.display="block"};function ICompElement(){}extendPrototype([BaseElement,TransformElement,HierarchyElement,FrameElement,RenderableDOMElement],ICompElement),ICompElement.prototype.initElement=function(e,t,n){this.initFrame(),this.initBaseData(e,t,n),this.initTransform(e,t,n),this.initRenderable(),this.initHierarchy(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),(this.data.xt||!t.progressiveLoad)&&this.buildAllItems(),this.hide()},ICompElement.prototype.prepareFrame=function(e){if(this._mdf=!1,this.prepareRenderableFrame(e),this.prepareProperties(e,this.isInRange),!(!this.isInRange&&!this.data.xt)){if(this.tm._placeholder)this.renderedFrame=e/this.data.sr;else{var t=this.tm.v;t===this.data.op&&(t=this.data.op-1),this.renderedFrame=t}var n,i=this.elements.length;for(this.completeLayers||this.checkLayers(this.renderedFrame),n=i-1;n>=0;n-=1)(this.completeLayers||this.elements[n])&&(this.elements[n].prepareFrame(this.renderedFrame-this.layers[n].st),this.elements[n]._mdf&&(this._mdf=!0))}},ICompElement.prototype.renderInnerContent=function(){var e,t=this.layers.length;for(e=0;e<t;e+=1)(this.completeLayers||this.elements[e])&&this.elements[e].renderFrame()},ICompElement.prototype.setElements=function(e){this.elements=e},ICompElement.prototype.getElements=function(){return this.elements},ICompElement.prototype.destroyElements=function(){var e,t=this.layers.length;for(e=0;e<t;e+=1)this.elements[e]&&this.elements[e].destroy()},ICompElement.prototype.destroy=function(){this.destroyElements(),this.destroyBaseElement()};function SVGCompElement(e,t,n){this.layers=e.layers,this.supports3d=!0,this.completeLayers=!1,this.pendingElements=[],this.elements=this.layers?createSizedArray(this.layers.length):[],this.initElement(e,t,n),this.tm=e.tm?PropertyFactory.getProp(this,e.tm,0,t.frameRate,this):{_placeholder:!0}}extendPrototype([SVGRendererBase,ICompElement,SVGBaseElement],SVGCompElement),SVGCompElement.prototype.createComp=function(e){return new SVGCompElement(e,this.globalData,this)};function SVGRenderer(e,t){this.animationItem=e,this.layers=null,this.renderedFrame=-1,this.svgElement=createNS("svg");var n="";if(t&&t.title){var i=createNS("title"),s=createElementID();i.setAttribute("id",s),i.textContent=t.title,this.svgElement.appendChild(i),n+=s}if(t&&t.description){var a=createNS("desc"),o=createElementID();a.setAttribute("id",o),a.textContent=t.description,this.svgElement.appendChild(a),n+=" "+o}n&&this.svgElement.setAttribute("aria-labelledby",n);var l=createNS("defs");this.svgElement.appendChild(l);var c=createNS("g");this.svgElement.appendChild(c),this.layerElement=c,this.renderConfig={preserveAspectRatio:t&&t.preserveAspectRatio||"xMidYMid meet",imagePreserveAspectRatio:t&&t.imagePreserveAspectRatio||"xMidYMid slice",contentVisibility:t&&t.contentVisibility||"visible",progressiveLoad:t&&t.progressiveLoad||!1,hideOnTransparent:!(t&&t.hideOnTransparent===!1),viewBoxOnly:t&&t.viewBoxOnly||!1,viewBoxSize:t&&t.viewBoxSize||!1,className:t&&t.className||"",id:t&&t.id||"",focusable:t&&t.focusable,filterSize:{width:t&&t.filterSize&&t.filterSize.width||"100%",height:t&&t.filterSize&&t.filterSize.height||"100%",x:t&&t.filterSize&&t.filterSize.x||"0%",y:t&&t.filterSize&&t.filterSize.y||"0%"},width:t&&t.width,height:t&&t.height,runExpressions:!t||t.runExpressions===void 0||t.runExpressions},this.globalData={_mdf:!1,frameNum:-1,defs:l,renderConfig:this.renderConfig},this.elements=[],this.pendingElements=[],this.destroyed=!1,this.rendererType="svg"}extendPrototype([SVGRendererBase],SVGRenderer),SVGRenderer.prototype.createComp=function(e){return new SVGCompElement(e,this.globalData,this)};function ShapeTransformManager(){this.sequences={},this.sequenceList=[],this.transform_key_count=0}ShapeTransformManager.prototype={addTransformSequence:function(t){var n,i=t.length,s="_";for(n=0;n<i;n+=1)s+=t[n].transform.key+"_";var a=this.sequences[s];return a||(a={transforms:[].concat(t),finalTransform:new Matrix,_mdf:!1},this.sequences[s]=a,this.sequenceList.push(a)),a},processSequence:function(t,n){for(var i=0,s=t.transforms.length,a=n;i<s&&!n;){if(t.transforms[i].transform.mProps._mdf){a=!0;break}i+=1}if(a)for(t.finalTransform.reset(),i=s-1;i>=0;i-=1)t.finalTransform.multiply(t.transforms[i].transform.mProps.v);t._mdf=a},processSequences:function(t){var n,i=this.sequenceList.length;for(n=0;n<i;n+=1)this.processSequence(this.sequenceList[n],t)},getNewKey:function(){return this.transform_key_count+=1,"_"+this.transform_key_count}};var lumaLoader=function(){var t="__lottie_element_luma_buffer",n=null,i=null,s=null;function a(){var c=createNS("svg"),u=createNS("filter"),d=createNS("feColorMatrix");return u.setAttribute("id",t),d.setAttribute("type","matrix"),d.setAttribute("color-interpolation-filters","sRGB"),d.setAttribute("values","0.3, 0.3, 0.3, 0, 0, 0.3, 0.3, 0.3, 0, 0, 0.3, 0.3, 0.3, 0, 0, 0.3, 0.3, 0.3, 0, 0"),u.appendChild(d),c.appendChild(u),c.setAttribute("id",t+"_svg"),featureSupport.svgLumaHidden&&(c.style.display="none"),c}function o(){n||(s=a(),document.body.appendChild(s),n=createTag("canvas"),i=n.getContext("2d"),i.filter="url(#"+t+")",i.fillStyle="rgba(0,0,0,0)",i.fillRect(0,0,1,1))}function l(c){return n||o(),n.width=c.width,n.height=c.height,i.filter="url(#"+t+")",n}return{load:o,get:l}};function createCanvas(e,t){if(featureSupport.offscreenCanvas)return new OffscreenCanvas(e,t);var n=createTag("canvas");return n.width=e,n.height=t,n}var assetLoader=(function(){return{loadLumaCanvas:lumaLoader.load,getLumaCanvas:lumaLoader.get,createCanvas}})(),registeredEffects={};function CVEffects(e){var t,n=e.data.ef?e.data.ef.length:0;this.filters=[];var i;for(t=0;t<n;t+=1){i=null;var s=e.data.ef[t].ty;if(registeredEffects[s]){var a=registeredEffects[s].effect;i=new a(e.effectsManager.effectElements[t],e)}i&&this.filters.push(i)}this.filters.length&&e.addRenderableComponent(this)}CVEffects.prototype.renderFrame=function(e){var t,n=this.filters.length;for(t=0;t<n;t+=1)this.filters[t].renderFrame(e)},CVEffects.prototype.getEffects=function(e){var t,n=this.filters.length,i=[];for(t=0;t<n;t+=1)this.filters[t].type===e&&i.push(this.filters[t]);return i};function registerEffect(e,t){registeredEffects[e]={effect:t}}function CVMaskElement(e,t){this.data=e,this.element=t,this.masksProperties=this.data.masksProperties||[],this.viewData=createSizedArray(this.masksProperties.length);var n,i=this.masksProperties.length,s=!1;for(n=0;n<i;n+=1)this.masksProperties[n].mode!=="n"&&(s=!0),this.viewData[n]=ShapePropertyFactory.getShapeProp(this.element,this.masksProperties[n],3);this.hasMasks=s,s&&this.element.addRenderableComponent(this)}CVMaskElement.prototype.renderFrame=function(){if(this.hasMasks){var e=this.element.finalTransform.mat,t=this.element.canvasContext,n,i=this.masksProperties.length,s,a,o;for(t.beginPath(),n=0;n<i;n+=1)if(this.masksProperties[n].mode!=="n"){this.masksProperties[n].inv&&(t.moveTo(0,0),t.lineTo(this.element.globalData.compSize.w,0),t.lineTo(this.element.globalData.compSize.w,this.element.globalData.compSize.h),t.lineTo(0,this.element.globalData.compSize.h),t.lineTo(0,0)),o=this.viewData[n].v,s=e.applyToPointArray(o.v[0][0],o.v[0][1],0),t.moveTo(s[0],s[1]);var l,c=o._length;for(l=1;l<c;l+=1)a=e.applyToTriplePoints(o.o[l-1],o.i[l],o.v[l]),t.bezierCurveTo(a[0],a[1],a[2],a[3],a[4],a[5]);a=e.applyToTriplePoints(o.o[l-1],o.i[0],o.v[0]),t.bezierCurveTo(a[0],a[1],a[2],a[3],a[4],a[5])}this.element.globalData.renderer.save(!0),t.clip()}},CVMaskElement.prototype.getMaskProperty=MaskElement.prototype.getMaskProperty,CVMaskElement.prototype.destroy=function(){this.element=null};function CVBaseElement(){}var operationsMap={1:"source-in",2:"source-out",3:"source-in",4:"source-out"};CVBaseElement.prototype={createElements:function(){},initRendererElement:function(){},createContainerElements:function(){if(this.data.tt>=1){this.buffers=[];var t=this.globalData.canvasContext,n=assetLoader.createCanvas(t.canvas.width,t.canvas.height);this.buffers.push(n);var i=assetLoader.createCanvas(t.canvas.width,t.canvas.height);this.buffers.push(i),this.data.tt>=3&&!document._isProxy&&assetLoader.loadLumaCanvas()}this.canvasContext=this.globalData.canvasContext,this.transformCanvas=this.globalData.transformCanvas,this.renderableEffectsManager=new CVEffects(this),this.searchEffectTransforms()},createContent:function(){},setBlendMode:function(){var t=this.globalData;if(t.blendMode!==this.data.bm){t.blendMode=this.data.bm;var n=getBlendMode(this.data.bm);t.canvasContext.globalCompositeOperation=n}},createRenderableComponents:function(){this.maskManager=new CVMaskElement(this.data,this),this.transformEffects=this.renderableEffectsManager.getEffects(effectTypes.TRANSFORM_EFFECT)},hideElement:function(){!this.hidden&&(!this.isInRange||this.isTransparent)&&(this.hidden=!0)},showElement:function(){this.isInRange&&!this.isTransparent&&(this.hidden=!1,this._isFirstFrame=!0,this.maskManager._isFirstFrame=!0)},clearCanvas:function(t){t.clearRect(this.transformCanvas.tx,this.transformCanvas.ty,this.transformCanvas.w*this.transformCanvas.sx,this.transformCanvas.h*this.transformCanvas.sy)},prepareLayer:function(){if(this.data.tt>=1){var t=this.buffers[0],n=t.getContext("2d");this.clearCanvas(n),n.drawImage(this.canvasContext.canvas,0,0),this.currentTransform=this.canvasContext.getTransform(),this.canvasContext.setTransform(1,0,0,1,0,0),this.clearCanvas(this.canvasContext),this.canvasContext.setTransform(this.currentTransform)}},exitLayer:function(){if(this.data.tt>=1){var t=this.buffers[1],n=t.getContext("2d");this.clearCanvas(n),n.drawImage(this.canvasContext.canvas,0,0),this.canvasContext.setTransform(1,0,0,1,0,0),this.clearCanvas(this.canvasContext),this.canvasContext.setTransform(this.currentTransform);var i=this.comp.getElementById("tp"in this.data?this.data.tp:this.data.ind-1);if(i.renderFrame(!0),this.canvasContext.setTransform(1,0,0,1,0,0),this.data.tt>=3&&!document._isProxy){var s=assetLoader.getLumaCanvas(this.canvasContext.canvas),a=s.getContext("2d");a.drawImage(this.canvasContext.canvas,0,0),this.clearCanvas(this.canvasContext),this.canvasContext.drawImage(s,0,0)}this.canvasContext.globalCompositeOperation=operationsMap[this.data.tt],this.canvasContext.drawImage(t,0,0),this.canvasContext.globalCompositeOperation="destination-over",this.canvasContext.drawImage(this.buffers[0],0,0),this.canvasContext.setTransform(this.currentTransform),this.canvasContext.globalCompositeOperation="source-over"}},renderFrame:function(t){if(!(this.hidden||this.data.hd)&&!(this.data.td===1&&!t)){this.renderTransform(),this.renderRenderable(),this.renderLocalTransform(),this.setBlendMode();var n=this.data.ty===0;this.prepareLayer(),this.globalData.renderer.save(n),this.globalData.renderer.ctxTransform(this.finalTransform.localMat.props),this.globalData.renderer.ctxOpacity(this.finalTransform.localOpacity),this.renderInnerContent(),this.globalData.renderer.restore(n),this.exitLayer(),this.maskManager.hasMasks&&this.globalData.renderer.restore(!0),this._isFirstFrame&&(this._isFirstFrame=!1)}},destroy:function(){this.canvasContext=null,this.data=null,this.globalData=null,this.maskManager.destroy()},mHelper:new Matrix},CVBaseElement.prototype.hide=CVBaseElement.prototype.hideElement,CVBaseElement.prototype.show=CVBaseElement.prototype.showElement;function CVShapeData(e,t,n,i){this.styledShapes=[],this.tr=[0,0,0,0,0,0];var s=4;t.ty==="rc"?s=5:t.ty==="el"?s=6:t.ty==="sr"&&(s=7),this.sh=ShapePropertyFactory.getShapeProp(e,t,s,e);var a,o=n.length,l;for(a=0;a<o;a+=1)n[a].closed||(l={transforms:i.addTransformSequence(n[a].transforms),trNodes:[]},this.styledShapes.push(l),n[a].elements.push(l))}CVShapeData.prototype.setAsAnimated=SVGShapeData.prototype.setAsAnimated;function CVShapeElement(e,t,n){this.shapes=[],this.shapesData=e.shapes,this.stylesList=[],this.itemsData=[],this.prevViewData=[],this.shapeModifiers=[],this.processedElements=[],this.transformsManager=new ShapeTransformManager,this.initElement(e,t,n)}extendPrototype([BaseElement,TransformElement,CVBaseElement,IShapeElement,HierarchyElement,FrameElement,RenderableElement],CVShapeElement),CVShapeElement.prototype.initElement=RenderableDOMElement.prototype.initElement,CVShapeElement.prototype.transformHelper={opacity:1,_opMdf:!1},CVShapeElement.prototype.dashResetter=[],CVShapeElement.prototype.createContent=function(){this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,!0,[])},CVShapeElement.prototype.createStyleElement=function(e,t){var n={data:e,type:e.ty,preTransforms:this.transformsManager.addTransformSequence(t),transforms:[],elements:[],closed:e.hd===!0},i={};if(e.ty==="fl"||e.ty==="st"?(i.c=PropertyFactory.getProp(this,e.c,1,255,this),i.c.k||(n.co="rgb("+bmFloor(i.c.v[0])+","+bmFloor(i.c.v[1])+","+bmFloor(i.c.v[2])+")")):(e.ty==="gf"||e.ty==="gs")&&(i.s=PropertyFactory.getProp(this,e.s,1,null,this),i.e=PropertyFactory.getProp(this,e.e,1,null,this),i.h=PropertyFactory.getProp(this,e.h||{k:0},0,.01,this),i.a=PropertyFactory.getProp(this,e.a||{k:0},0,degToRads,this),i.g=new GradientProperty(this,e.g,this)),i.o=PropertyFactory.getProp(this,e.o,0,.01,this),e.ty==="st"||e.ty==="gs"){if(n.lc=lineCapEnum[e.lc||2],n.lj=lineJoinEnum[e.lj||2],e.lj==1&&(n.ml=e.ml),i.w=PropertyFactory.getProp(this,e.w,0,null,this),i.w.k||(n.wi=i.w.v),e.d){var s=new DashProperty(this,e.d,"canvas",this);i.d=s,i.d.k||(n.da=i.d.dashArray,n.do=i.d.dashoffset[0])}}else n.r=e.r===2?"evenodd":"nonzero";return this.stylesList.push(n),i.style=n,i},CVShapeElement.prototype.createGroupElement=function(){var e={it:[],prevViewData:[]};return e},CVShapeElement.prototype.createTransformElement=function(e){var t={transform:{opacity:1,_opMdf:!1,key:this.transformsManager.getNewKey(),op:PropertyFactory.getProp(this,e.o,0,.01,this),mProps:TransformPropertyFactory.getTransformProperty(this,e,this)}};return t},CVShapeElement.prototype.createShapeElement=function(e){var t=new CVShapeData(this,e,this.stylesList,this.transformsManager);return this.shapes.push(t),this.addShapeToModifiers(t),t},CVShapeElement.prototype.reloadShapes=function(){this._isFirstFrame=!0;var e,t=this.itemsData.length;for(e=0;e<t;e+=1)this.prevViewData[e]=this.itemsData[e];for(this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,!0,[]),t=this.dynamicProperties.length,e=0;e<t;e+=1)this.dynamicProperties[e].getValue();this.renderModifiers(),this.transformsManager.processSequences(this._isFirstFrame)},CVShapeElement.prototype.addTransformToStyleList=function(e){var t,n=this.stylesList.length;for(t=0;t<n;t+=1)this.stylesList[t].closed||this.stylesList[t].transforms.push(e)},CVShapeElement.prototype.removeTransformFromStyleList=function(){var e,t=this.stylesList.length;for(e=0;e<t;e+=1)this.stylesList[e].closed||this.stylesList[e].transforms.pop()},CVShapeElement.prototype.closeStyles=function(e){var t,n=e.length;for(t=0;t<n;t+=1)e[t].closed=!0},CVShapeElement.prototype.searchShapes=function(e,t,n,i,s){var a,o=e.length-1,l,c,u=[],d=[],p,h,y,f=[].concat(s);for(a=o;a>=0;a-=1){if(p=this.searchProcessedElement(e[a]),p?t[a]=n[p-1]:e[a]._shouldRender=i,e[a].ty==="fl"||e[a].ty==="st"||e[a].ty==="gf"||e[a].ty==="gs")p?t[a].style.closed=!1:t[a]=this.createStyleElement(e[a],f),u.push(t[a].style);else if(e[a].ty==="gr"){if(!p)t[a]=this.createGroupElement(e[a]);else for(c=t[a].it.length,l=0;l<c;l+=1)t[a].prevViewData[l]=t[a].it[l];this.searchShapes(e[a].it,t[a].it,t[a].prevViewData,i,f)}else e[a].ty==="tr"?(p||(y=this.createTransformElement(e[a]),t[a]=y),f.push(t[a]),this.addTransformToStyleList(t[a])):e[a].ty==="sh"||e[a].ty==="rc"||e[a].ty==="el"||e[a].ty==="sr"?p||(t[a]=this.createShapeElement(e[a])):e[a].ty==="tm"||e[a].ty==="rd"||e[a].ty==="pb"||e[a].ty==="zz"||e[a].ty==="op"?(p?(h=t[a],h.closed=!1):(h=ShapeModifiers.getModifier(e[a].ty),h.init(this,e[a]),t[a]=h,this.shapeModifiers.push(h)),d.push(h)):e[a].ty==="rp"&&(p?(h=t[a],h.closed=!0):(h=ShapeModifiers.getModifier(e[a].ty),t[a]=h,h.init(this,e,a,t),this.shapeModifiers.push(h),i=!1),d.push(h));this.addProcessedElement(e[a],a+1)}for(this.removeTransformFromStyleList(),this.closeStyles(u),o=d.length,a=0;a<o;a+=1)d[a].closed=!0},CVShapeElement.prototype.renderInnerContent=function(){this.transformHelper.opacity=1,this.transformHelper._opMdf=!1,this.renderModifiers(),this.transformsManager.processSequences(this._isFirstFrame),this.renderShape(this.transformHelper,this.shapesData,this.itemsData,!0)},CVShapeElement.prototype.renderShapeTransform=function(e,t){(e._opMdf||t.op._mdf||this._isFirstFrame)&&(t.opacity=e.opacity,t.opacity*=t.op.v,t._opMdf=!0)},CVShapeElement.prototype.drawLayer=function(){var e,t=this.stylesList.length,n,i,s,a,o,l,c=this.globalData.renderer,u=this.globalData.canvasContext,d,p;for(e=0;e<t;e+=1)if(p=this.stylesList[e],d=p.type,!((d==="st"||d==="gs")&&p.wi===0||!p.data._shouldRender||p.coOp===0||this.globalData.currentGlobalAlpha===0)){for(c.save(),o=p.elements,d==="st"||d==="gs"?(c.ctxStrokeStyle(d==="st"?p.co:p.grd),c.ctxLineWidth(p.wi),c.ctxLineCap(p.lc),c.ctxLineJoin(p.lj),c.ctxMiterLimit(p.ml||0)):c.ctxFillStyle(d==="fl"?p.co:p.grd),c.ctxOpacity(p.coOp),d!=="st"&&d!=="gs"&&u.beginPath(),c.ctxTransform(p.preTransforms.finalTransform.props),i=o.length,n=0;n<i;n+=1){for((d==="st"||d==="gs")&&(u.beginPath(),p.da&&(u.setLineDash(p.da),u.lineDashOffset=p.do)),l=o[n].trNodes,a=l.length,s=0;s<a;s+=1)l[s].t==="m"?u.moveTo(l[s].p[0],l[s].p[1]):l[s].t==="c"?u.bezierCurveTo(l[s].pts[0],l[s].pts[1],l[s].pts[2],l[s].pts[3],l[s].pts[4],l[s].pts[5]):u.closePath();(d==="st"||d==="gs")&&(c.ctxStroke(),p.da&&u.setLineDash(this.dashResetter))}d!=="st"&&d!=="gs"&&this.globalData.renderer.ctxFill(p.r),c.restore()}},CVShapeElement.prototype.renderShape=function(e,t,n,i){var s,a=t.length-1,o;for(o=e,s=a;s>=0;s-=1)t[s].ty==="tr"?(o=n[s].transform,this.renderShapeTransform(e,o)):t[s].ty==="sh"||t[s].ty==="el"||t[s].ty==="rc"||t[s].ty==="sr"?this.renderPath(t[s],n[s]):t[s].ty==="fl"?this.renderFill(t[s],n[s],o):t[s].ty==="st"?this.renderStroke(t[s],n[s],o):t[s].ty==="gf"||t[s].ty==="gs"?this.renderGradientFill(t[s],n[s],o):t[s].ty==="gr"?this.renderShape(o,t[s].it,n[s].it):t[s].ty;i&&this.drawLayer()},CVShapeElement.prototype.renderStyledShape=function(e,t){if(this._isFirstFrame||t._mdf||e.transforms._mdf){var n=e.trNodes,i=t.paths,s,a,o,l=i._length;n.length=0;var c=e.transforms.finalTransform;for(o=0;o<l;o+=1){var u=i.shapes[o];if(u&&u.v){for(a=u._length,s=1;s<a;s+=1)s===1&&n.push({t:"m",p:c.applyToPointArray(u.v[0][0],u.v[0][1],0)}),n.push({t:"c",pts:c.applyToTriplePoints(u.o[s-1],u.i[s],u.v[s])});a===1&&n.push({t:"m",p:c.applyToPointArray(u.v[0][0],u.v[0][1],0)}),u.c&&a&&(n.push({t:"c",pts:c.applyToTriplePoints(u.o[s-1],u.i[0],u.v[0])}),n.push({t:"z"}))}}e.trNodes=n}},CVShapeElement.prototype.renderPath=function(e,t){if(e.hd!==!0&&e._shouldRender){var n,i=t.styledShapes.length;for(n=0;n<i;n+=1)this.renderStyledShape(t.styledShapes[n],t.sh)}},CVShapeElement.prototype.renderFill=function(e,t,n){var i=t.style;(t.c._mdf||this._isFirstFrame)&&(i.co="rgb("+bmFloor(t.c.v[0])+","+bmFloor(t.c.v[1])+","+bmFloor(t.c.v[2])+")"),(t.o._mdf||n._opMdf||this._isFirstFrame)&&(i.coOp=t.o.v*n.opacity)},CVShapeElement.prototype.renderGradientFill=function(e,t,n){var i=t.style,s;if(!i.grd||t.g._mdf||t.s._mdf||t.e._mdf||e.t!==1&&(t.h._mdf||t.a._mdf)){var a=this.globalData.canvasContext,o=t.s.v,l=t.e.v;if(e.t===1)s=a.createLinearGradient(o[0],o[1],l[0],l[1]);else{var c=Math.sqrt(Math.pow(o[0]-l[0],2)+Math.pow(o[1]-l[1],2)),u=Math.atan2(l[1]-o[1],l[0]-o[0]),d=t.h.v;d>=1?d=.99:d<=-1&&(d=-.99);var p=c*d,h=Math.cos(u+t.a.v)*p+o[0],y=Math.sin(u+t.a.v)*p+o[1];s=a.createRadialGradient(h,y,0,o[0],o[1],c)}var f,m=e.g.p,C=t.g.c,g=1;for(f=0;f<m;f+=1)t.g._hasOpacity&&t.g._collapsable&&(g=t.g.o[f*2+1]),s.addColorStop(C[f*4]/100,"rgba("+C[f*4+1]+","+C[f*4+2]+","+C[f*4+3]+","+g+")");i.grd=s}i.coOp=t.o.v*n.opacity},CVShapeElement.prototype.renderStroke=function(e,t,n){var i=t.style,s=t.d;s&&(s._mdf||this._isFirstFrame)&&(i.da=s.dashArray,i.do=s.dashoffset[0]),(t.c._mdf||this._isFirstFrame)&&(i.co="rgb("+bmFloor(t.c.v[0])+","+bmFloor(t.c.v[1])+","+bmFloor(t.c.v[2])+")"),(t.o._mdf||n._opMdf||this._isFirstFrame)&&(i.coOp=t.o.v*n.opacity),(t.w._mdf||this._isFirstFrame)&&(i.wi=t.w.v)},CVShapeElement.prototype.destroy=function(){this.shapesData=null,this.globalData=null,this.canvasContext=null,this.stylesList.length=0,this.itemsData.length=0};function CVTextElement(e,t,n){this.textSpans=[],this.yOffset=0,this.fillColorAnim=!1,this.strokeColorAnim=!1,this.strokeWidthAnim=!1,this.stroke=!1,this.fill=!1,this.justifyOffset=0,this.currentRender=null,this.renderType="canvas",this.values={fill:"rgba(0,0,0,0)",stroke:"rgba(0,0,0,0)",sWidth:0,fValue:""},this.initElement(e,t,n)}extendPrototype([BaseElement,TransformElement,CVBaseElement,HierarchyElement,FrameElement,RenderableElement,ITextElement],CVTextElement),CVTextElement.prototype.tHelper=createTag("canvas").getContext("2d"),CVTextElement.prototype.buildNewText=function(){var e=this.textProperty.currentData;this.renderedLetters=createSizedArray(e.l?e.l.length:0);var t=!1;e.fc?(t=!0,this.values.fill=this.buildColor(e.fc)):this.values.fill="rgba(0,0,0,0)",this.fill=t;var n=!1;e.sc&&(n=!0,this.values.stroke=this.buildColor(e.sc),this.values.sWidth=e.sw);var i=this.globalData.fontManager.getFontByName(e.f),s,a,o=e.l,l=this.mHelper;this.stroke=n,this.values.fValue=e.finalSize+"px "+this.globalData.fontManager.getFontByName(e.f).fFamily,a=e.finalText.length;var c,u,d,p,h,y,f,m,C,g,b=this.data.singleShape,v=e.tr*.001*e.finalSize,N=0,w=0,E=!0,_=0;for(s=0;s<a;s+=1){c=this.globalData.fontManager.getCharData(e.finalText[s],i.fStyle,this.globalData.fontManager.getFontByName(e.f).fFamily),u=c&&c.data||{},l.reset(),b&&o[s].n&&(N=-v,w+=e.yOffset,w+=E?1:0,E=!1),h=u.shapes?u.shapes[0].it:[],f=h.length,l.scale(e.finalSize/100,e.finalSize/100),b&&this.applyTextPropertiesToMatrix(e,l,o[s].line,N,w),C=createSizedArray(f-1);var k=0;for(y=0;y<f;y+=1)if(h[y].ty==="sh"){for(p=h[y].ks.k.i.length,m=h[y].ks.k,g=[],d=1;d<p;d+=1)d===1&&g.push(l.applyToX(m.v[0][0],m.v[0][1],0),l.applyToY(m.v[0][0],m.v[0][1],0)),g.push(l.applyToX(m.o[d-1][0],m.o[d-1][1],0),l.applyToY(m.o[d-1][0],m.o[d-1][1],0),l.applyToX(m.i[d][0],m.i[d][1],0),l.applyToY(m.i[d][0],m.i[d][1],0),l.applyToX(m.v[d][0],m.v[d][1],0),l.applyToY(m.v[d][0],m.v[d][1],0));g.push(l.applyToX(m.o[d-1][0],m.o[d-1][1],0),l.applyToY(m.o[d-1][0],m.o[d-1][1],0),l.applyToX(m.i[0][0],m.i[0][1],0),l.applyToY(m.i[0][0],m.i[0][1],0),l.applyToX(m.v[0][0],m.v[0][1],0),l.applyToY(m.v[0][0],m.v[0][1],0)),C[k]=g,k+=1}b&&(N+=o[s].l,N+=v),this.textSpans[_]?this.textSpans[_].elem=C:this.textSpans[_]={elem:C},_+=1}},CVTextElement.prototype.renderInnerContent=function(){this.validateText();var e=this.canvasContext;e.font=this.values.fValue,this.globalData.renderer.ctxLineCap("butt"),this.globalData.renderer.ctxLineJoin("miter"),this.globalData.renderer.ctxMiterLimit(4),this.data.singleShape||this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag);var t,n,i,s,a,o,l=this.textAnimator.renderedLetters,c=this.textProperty.currentData.l;n=c.length;var u,d=null,p=null,h=null,y,f,m=this.globalData.renderer;for(t=0;t<n;t+=1)if(!c[t].n){if(u=l[t],u&&(m.save(),m.ctxTransform(u.p),m.ctxOpacity(u.o)),this.fill){for(u&&u.fc?d!==u.fc&&(m.ctxFillStyle(u.fc),d=u.fc):d!==this.values.fill&&(d=this.values.fill,m.ctxFillStyle(this.values.fill)),y=this.textSpans[t].elem,s=y.length,this.globalData.canvasContext.beginPath(),i=0;i<s;i+=1)for(f=y[i],o=f.length,this.globalData.canvasContext.moveTo(f[0],f[1]),a=2;a<o;a+=6)this.globalData.canvasContext.bezierCurveTo(f[a],f[a+1],f[a+2],f[a+3],f[a+4],f[a+5]);this.globalData.canvasContext.closePath(),m.ctxFill()}if(this.stroke){for(u&&u.sw?h!==u.sw&&(h=u.sw,m.ctxLineWidth(u.sw)):h!==this.values.sWidth&&(h=this.values.sWidth,m.ctxLineWidth(this.values.sWidth)),u&&u.sc?p!==u.sc&&(p=u.sc,m.ctxStrokeStyle(u.sc)):p!==this.values.stroke&&(p=this.values.stroke,m.ctxStrokeStyle(this.values.stroke)),y=this.textSpans[t].elem,s=y.length,this.globalData.canvasContext.beginPath(),i=0;i<s;i+=1)for(f=y[i],o=f.length,this.globalData.canvasContext.moveTo(f[0],f[1]),a=2;a<o;a+=6)this.globalData.canvasContext.bezierCurveTo(f[a],f[a+1],f[a+2],f[a+3],f[a+4],f[a+5]);this.globalData.canvasContext.closePath(),m.ctxStroke()}u&&this.globalData.renderer.restore()}};function CVImageElement(e,t,n){this.assetData=t.getAssetData(e.refId),this.img=t.imageLoader.getAsset(this.assetData),this.initElement(e,t,n)}extendPrototype([BaseElement,TransformElement,CVBaseElement,HierarchyElement,FrameElement,RenderableElement],CVImageElement),CVImageElement.prototype.initElement=SVGShapeElement.prototype.initElement,CVImageElement.prototype.prepareFrame=IImageElement.prototype.prepareFrame,CVImageElement.prototype.createContent=function(){if(this.img.width&&(this.assetData.w!==this.img.width||this.assetData.h!==this.img.height)){var e=createTag("canvas");e.width=this.assetData.w,e.height=this.assetData.h;var t=e.getContext("2d"),n=this.img.width,i=this.img.height,s=n/i,a=this.assetData.w/this.assetData.h,o,l,c=this.assetData.pr||this.globalData.renderConfig.imagePreserveAspectRatio;s>a&&c==="xMidYMid slice"||s<a&&c!=="xMidYMid slice"?(l=i,o=l*a):(o=n,l=o/a),t.drawImage(this.img,(n-o)/2,(i-l)/2,o,l,0,0,this.assetData.w,this.assetData.h),this.img=e}},CVImageElement.prototype.renderInnerContent=function(){this.canvasContext.drawImage(this.img,0,0)},CVImageElement.prototype.destroy=function(){this.img=null};function CVSolidElement(e,t,n){this.initElement(e,t,n)}extendPrototype([BaseElement,TransformElement,CVBaseElement,HierarchyElement,FrameElement,RenderableElement],CVSolidElement),CVSolidElement.prototype.initElement=SVGShapeElement.prototype.initElement,CVSolidElement.prototype.prepareFrame=IImageElement.prototype.prepareFrame,CVSolidElement.prototype.renderInnerContent=function(){this.globalData.renderer.ctxFillStyle(this.data.sc),this.globalData.renderer.ctxFillRect(0,0,this.data.sw,this.data.sh)};function CanvasRendererBase(){}extendPrototype([BaseRenderer],CanvasRendererBase),CanvasRendererBase.prototype.createShape=function(e){return new CVShapeElement(e,this.globalData,this)},CanvasRendererBase.prototype.createText=function(e){return new CVTextElement(e,this.globalData,this)},CanvasRendererBase.prototype.createImage=function(e){return new CVImageElement(e,this.globalData,this)},CanvasRendererBase.prototype.createSolid=function(e){return new CVSolidElement(e,this.globalData,this)},CanvasRendererBase.prototype.createNull=SVGRenderer.prototype.createNull,CanvasRendererBase.prototype.ctxTransform=function(e){e[0]===1&&e[1]===0&&e[4]===0&&e[5]===1&&e[12]===0&&e[13]===0||this.canvasContext.transform(e[0],e[1],e[4],e[5],e[12],e[13])},CanvasRendererBase.prototype.ctxOpacity=function(e){this.canvasContext.globalAlpha*=e<0?0:e},CanvasRendererBase.prototype.ctxFillStyle=function(e){this.canvasContext.fillStyle=e},CanvasRendererBase.prototype.ctxStrokeStyle=function(e){this.canvasContext.strokeStyle=e},CanvasRendererBase.prototype.ctxLineWidth=function(e){this.canvasContext.lineWidth=e},CanvasRendererBase.prototype.ctxLineCap=function(e){this.canvasContext.lineCap=e},CanvasRendererBase.prototype.ctxLineJoin=function(e){this.canvasContext.lineJoin=e},CanvasRendererBase.prototype.ctxMiterLimit=function(e){this.canvasContext.miterLimit=e},CanvasRendererBase.prototype.ctxFill=function(e){this.canvasContext.fill(e)},CanvasRendererBase.prototype.ctxFillRect=function(e,t,n,i){this.canvasContext.fillRect(e,t,n,i)},CanvasRendererBase.prototype.ctxStroke=function(){this.canvasContext.stroke()},CanvasRendererBase.prototype.reset=function(){if(!this.renderConfig.clearCanvas){this.canvasContext.restore();return}this.contextData.reset()},CanvasRendererBase.prototype.save=function(){this.canvasContext.save()},CanvasRendererBase.prototype.restore=function(e){if(!this.renderConfig.clearCanvas){this.canvasContext.restore();return}e&&(this.globalData.blendMode="source-over"),this.contextData.restore(e)},CanvasRendererBase.prototype.configAnimation=function(e){if(this.animationItem.wrapper){this.animationItem.container=createTag("canvas");var t=this.animationItem.container.style;t.width="100%",t.height="100%";var n="0px 0px 0px";t.transformOrigin=n,t.mozTransformOrigin=n,t.webkitTransformOrigin=n,t["-webkit-transform"]=n,t.contentVisibility=this.renderConfig.contentVisibility,this.animationItem.wrapper.appendChild(this.animationItem.container),this.canvasContext=this.animationItem.container.getContext("2d"),this.renderConfig.className&&this.animationItem.container.setAttribute("class",this.renderConfig.className),this.renderConfig.id&&this.animationItem.container.setAttribute("id",this.renderConfig.id)}else this.canvasContext=this.renderConfig.context;this.contextData.setContext(this.canvasContext),this.data=e,this.layers=e.layers,this.transformCanvas={w:e.w,h:e.h,sx:0,sy:0,tx:0,ty:0},this.setupGlobalData(e,document.body),this.globalData.canvasContext=this.canvasContext,this.globalData.renderer=this,this.globalData.isDashed=!1,this.globalData.progressiveLoad=this.renderConfig.progressiveLoad,this.globalData.transformCanvas=this.transformCanvas,this.elements=createSizedArray(e.layers.length),this.updateContainerSize()},CanvasRendererBase.prototype.updateContainerSize=function(e,t){this.reset();var n,i;e?(n=e,i=t,this.canvasContext.canvas.width=n,this.canvasContext.canvas.height=i):(this.animationItem.wrapper&&this.animationItem.container?(n=this.animationItem.wrapper.offsetWidth,i=this.animationItem.wrapper.offsetHeight):(n=this.canvasContext.canvas.width,i=this.canvasContext.canvas.height),this.canvasContext.canvas.width=n*this.renderConfig.dpr,this.canvasContext.canvas.height=i*this.renderConfig.dpr);var s,a;if(this.renderConfig.preserveAspectRatio.indexOf("meet")!==-1||this.renderConfig.preserveAspectRatio.indexOf("slice")!==-1){var o=this.renderConfig.preserveAspectRatio.split(" "),l=o[1]||"meet",c=o[0]||"xMidYMid",u=c.substr(0,4),d=c.substr(4);s=n/i,a=this.transformCanvas.w/this.transformCanvas.h,a>s&&l==="meet"||a<s&&l==="slice"?(this.transformCanvas.sx=n/(this.transformCanvas.w/this.renderConfig.dpr),this.transformCanvas.sy=n/(this.transformCanvas.w/this.renderConfig.dpr)):(this.transformCanvas.sx=i/(this.transformCanvas.h/this.renderConfig.dpr),this.transformCanvas.sy=i/(this.transformCanvas.h/this.renderConfig.dpr)),u==="xMid"&&(a<s&&l==="meet"||a>s&&l==="slice")?this.transformCanvas.tx=(n-this.transformCanvas.w*(i/this.transformCanvas.h))/2*this.renderConfig.dpr:u==="xMax"&&(a<s&&l==="meet"||a>s&&l==="slice")?this.transformCanvas.tx=(n-this.transformCanvas.w*(i/this.transformCanvas.h))*this.renderConfig.dpr:this.transformCanvas.tx=0,d==="YMid"&&(a>s&&l==="meet"||a<s&&l==="slice")?this.transformCanvas.ty=(i-this.transformCanvas.h*(n/this.transformCanvas.w))/2*this.renderConfig.dpr:d==="YMax"&&(a>s&&l==="meet"||a<s&&l==="slice")?this.transformCanvas.ty=(i-this.transformCanvas.h*(n/this.transformCanvas.w))*this.renderConfig.dpr:this.transformCanvas.ty=0}else this.renderConfig.preserveAspectRatio==="none"?(this.transformCanvas.sx=n/(this.transformCanvas.w/this.renderConfig.dpr),this.transformCanvas.sy=i/(this.transformCanvas.h/this.renderConfig.dpr),this.transformCanvas.tx=0,this.transformCanvas.ty=0):(this.transformCanvas.sx=this.renderConfig.dpr,this.transformCanvas.sy=this.renderConfig.dpr,this.transformCanvas.tx=0,this.transformCanvas.ty=0);this.transformCanvas.props=[this.transformCanvas.sx,0,0,0,0,this.transformCanvas.sy,0,0,0,0,1,0,this.transformCanvas.tx,this.transformCanvas.ty,0,1],this.ctxTransform(this.transformCanvas.props),this.canvasContext.beginPath(),this.canvasContext.rect(0,0,this.transformCanvas.w,this.transformCanvas.h),this.canvasContext.closePath(),this.canvasContext.clip(),this.renderFrame(this.renderedFrame,!0)},CanvasRendererBase.prototype.destroy=function(){this.renderConfig.clearCanvas&&this.animationItem.wrapper&&(this.animationItem.wrapper.innerText="");var e,t=this.layers?this.layers.length:0;for(e=t-1;e>=0;e-=1)this.elements[e]&&this.elements[e].destroy&&this.elements[e].destroy();this.elements.length=0,this.globalData.canvasContext=null,this.animationItem.container=null,this.destroyed=!0},CanvasRendererBase.prototype.renderFrame=function(e,t){if(!(this.renderedFrame===e&&this.renderConfig.clearCanvas===!0&&!t||this.destroyed||e===-1)){this.renderedFrame=e,this.globalData.frameNum=e-this.animationItem._isFirstFrame,this.globalData.frameId+=1,this.globalData._mdf=!this.renderConfig.clearCanvas||t,this.globalData.projectInterface.currentFrame=e;var n,i=this.layers.length;for(this.completeLayers||this.checkLayers(e),n=i-1;n>=0;n-=1)(this.completeLayers||this.elements[n])&&this.elements[n].prepareFrame(e-this.layers[n].st);if(this.globalData._mdf){for(this.renderConfig.clearCanvas===!0?this.canvasContext.clearRect(0,0,this.transformCanvas.w,this.transformCanvas.h):this.save(),n=i-1;n>=0;n-=1)(this.completeLayers||this.elements[n])&&this.elements[n].renderFrame();this.renderConfig.clearCanvas!==!0&&this.restore()}}},CanvasRendererBase.prototype.buildItem=function(e){var t=this.elements;if(!(t[e]||this.layers[e].ty===99)){var n=this.createItem(this.layers[e],this,this.globalData);t[e]=n,n.initExpressions()}},CanvasRendererBase.prototype.checkPendingElements=function(){for(;this.pendingElements.length;){var e=this.pendingElements.pop();e.checkParenting()}},CanvasRendererBase.prototype.hide=function(){this.animationItem.container.style.display="none"},CanvasRendererBase.prototype.show=function(){this.animationItem.container.style.display="block"};function CanvasContext(){this.opacity=-1,this.transform=createTypedArray("float32",16),this.fillStyle="",this.strokeStyle="",this.lineWidth="",this.lineCap="",this.lineJoin="",this.miterLimit="",this.id=Math.random()}function CVContextData(){this.stack=[],this.cArrPos=0,this.cTr=new Matrix;var e,t=15;for(e=0;e<t;e+=1){var n=new CanvasContext;this.stack[e]=n}this._length=t,this.nativeContext=null,this.transformMat=new Matrix,this.currentOpacity=1,this.currentFillStyle="",this.appliedFillStyle="",this.currentStrokeStyle="",this.appliedStrokeStyle="",this.currentLineWidth="",this.appliedLineWidth="",this.currentLineCap="",this.appliedLineCap="",this.currentLineJoin="",this.appliedLineJoin="",this.appliedMiterLimit="",this.currentMiterLimit=""}CVContextData.prototype.duplicate=function(){var e=this._length*2,t=0;for(t=this._length;t<e;t+=1)this.stack[t]=new CanvasContext;this._length=e},CVContextData.prototype.reset=function(){this.cArrPos=0,this.cTr.reset(),this.stack[this.cArrPos].opacity=1},CVContextData.prototype.restore=function(e){this.cArrPos-=1;var t=this.stack[this.cArrPos],n=t.transform,i,s=this.cTr.props;for(i=0;i<16;i+=1)s[i]=n[i];if(e){this.nativeContext.restore();var a=this.stack[this.cArrPos+1];this.appliedFillStyle=a.fillStyle,this.appliedStrokeStyle=a.strokeStyle,this.appliedLineWidth=a.lineWidth,this.appliedLineCap=a.lineCap,this.appliedLineJoin=a.lineJoin,this.appliedMiterLimit=a.miterLimit}this.nativeContext.setTransform(n[0],n[1],n[4],n[5],n[12],n[13]),(e||t.opacity!==-1&&this.currentOpacity!==t.opacity)&&(this.nativeContext.globalAlpha=t.opacity,this.currentOpacity=t.opacity),this.currentFillStyle=t.fillStyle,this.currentStrokeStyle=t.strokeStyle,this.currentLineWidth=t.lineWidth,this.currentLineCap=t.lineCap,this.currentLineJoin=t.lineJoin,this.currentMiterLimit=t.miterLimit},CVContextData.prototype.save=function(e){e&&this.nativeContext.save();var t=this.cTr.props;this._length<=this.cArrPos&&this.duplicate();var n=this.stack[this.cArrPos],i;for(i=0;i<16;i+=1)n.transform[i]=t[i];this.cArrPos+=1;var s=this.stack[this.cArrPos];s.opacity=n.opacity,s.fillStyle=n.fillStyle,s.strokeStyle=n.strokeStyle,s.lineWidth=n.lineWidth,s.lineCap=n.lineCap,s.lineJoin=n.lineJoin,s.miterLimit=n.miterLimit},CVContextData.prototype.setOpacity=function(e){this.stack[this.cArrPos].opacity=e},CVContextData.prototype.setContext=function(e){this.nativeContext=e},CVContextData.prototype.fillStyle=function(e){this.stack[this.cArrPos].fillStyle!==e&&(this.currentFillStyle=e,this.stack[this.cArrPos].fillStyle=e)},CVContextData.prototype.strokeStyle=function(e){this.stack[this.cArrPos].strokeStyle!==e&&(this.currentStrokeStyle=e,this.stack[this.cArrPos].strokeStyle=e)},CVContextData.prototype.lineWidth=function(e){this.stack[this.cArrPos].lineWidth!==e&&(this.currentLineWidth=e,this.stack[this.cArrPos].lineWidth=e)},CVContextData.prototype.lineCap=function(e){this.stack[this.cArrPos].lineCap!==e&&(this.currentLineCap=e,this.stack[this.cArrPos].lineCap=e)},CVContextData.prototype.lineJoin=function(e){this.stack[this.cArrPos].lineJoin!==e&&(this.currentLineJoin=e,this.stack[this.cArrPos].lineJoin=e)},CVContextData.prototype.miterLimit=function(e){this.stack[this.cArrPos].miterLimit!==e&&(this.currentMiterLimit=e,this.stack[this.cArrPos].miterLimit=e)},CVContextData.prototype.transform=function(e){this.transformMat.cloneFromProps(e);var t=this.cTr;this.transformMat.multiply(t),t.cloneFromProps(this.transformMat.props);var n=t.props;this.nativeContext.setTransform(n[0],n[1],n[4],n[5],n[12],n[13])},CVContextData.prototype.opacity=function(e){var t=this.stack[this.cArrPos].opacity;t*=e<0?0:e,this.stack[this.cArrPos].opacity!==t&&(this.currentOpacity!==e&&(this.nativeContext.globalAlpha=e,this.currentOpacity=e),this.stack[this.cArrPos].opacity=t)},CVContextData.prototype.fill=function(e){this.appliedFillStyle!==this.currentFillStyle&&(this.appliedFillStyle=this.currentFillStyle,this.nativeContext.fillStyle=this.appliedFillStyle),this.nativeContext.fill(e)},CVContextData.prototype.fillRect=function(e,t,n,i){this.appliedFillStyle!==this.currentFillStyle&&(this.appliedFillStyle=this.currentFillStyle,this.nativeContext.fillStyle=this.appliedFillStyle),this.nativeContext.fillRect(e,t,n,i)},CVContextData.prototype.stroke=function(){this.appliedStrokeStyle!==this.currentStrokeStyle&&(this.appliedStrokeStyle=this.currentStrokeStyle,this.nativeContext.strokeStyle=this.appliedStrokeStyle),this.appliedLineWidth!==this.currentLineWidth&&(this.appliedLineWidth=this.currentLineWidth,this.nativeContext.lineWidth=this.appliedLineWidth),this.appliedLineCap!==this.currentLineCap&&(this.appliedLineCap=this.currentLineCap,this.nativeContext.lineCap=this.appliedLineCap),this.appliedLineJoin!==this.currentLineJoin&&(this.appliedLineJoin=this.currentLineJoin,this.nativeContext.lineJoin=this.appliedLineJoin),this.appliedMiterLimit!==this.currentMiterLimit&&(this.appliedMiterLimit=this.currentMiterLimit,this.nativeContext.miterLimit=this.appliedMiterLimit),this.nativeContext.stroke()};function CVCompElement(e,t,n){this.completeLayers=!1,this.layers=e.layers,this.pendingElements=[],this.elements=createSizedArray(this.layers.length),this.initElement(e,t,n),this.tm=e.tm?PropertyFactory.getProp(this,e.tm,0,t.frameRate,this):{_placeholder:!0}}extendPrototype([CanvasRendererBase,ICompElement,CVBaseElement],CVCompElement),CVCompElement.prototype.renderInnerContent=function(){var e=this.canvasContext;e.beginPath(),e.moveTo(0,0),e.lineTo(this.data.w,0),e.lineTo(this.data.w,this.data.h),e.lineTo(0,this.data.h),e.lineTo(0,0),e.clip();var t,n=this.layers.length;for(t=n-1;t>=0;t-=1)(this.completeLayers||this.elements[t])&&this.elements[t].renderFrame()},CVCompElement.prototype.destroy=function(){var e,t=this.layers.length;for(e=t-1;e>=0;e-=1)this.elements[e]&&this.elements[e].destroy();this.layers=null,this.elements=null},CVCompElement.prototype.createComp=function(e){return new CVCompElement(e,this.globalData,this)};function CanvasRenderer(e,t){this.animationItem=e,this.renderConfig={clearCanvas:t&&t.clearCanvas!==void 0?t.clearCanvas:!0,context:t&&t.context||null,progressiveLoad:t&&t.progressiveLoad||!1,preserveAspectRatio:t&&t.preserveAspectRatio||"xMidYMid meet",imagePreserveAspectRatio:t&&t.imagePreserveAspectRatio||"xMidYMid slice",contentVisibility:t&&t.contentVisibility||"visible",className:t&&t.className||"",id:t&&t.id||"",runExpressions:!t||t.runExpressions===void 0||t.runExpressions},this.renderConfig.dpr=t&&t.dpr||1,this.animationItem.wrapper&&(this.renderConfig.dpr=t&&t.dpr||window.devicePixelRatio||1),this.renderedFrame=-1,this.globalData={frameNum:-1,_mdf:!1,renderConfig:this.renderConfig,currentGlobalAlpha:-1},this.contextData=new CVContextData,this.elements=[],this.pendingElements=[],this.transformMat=new Matrix,this.completeLayers=!1,this.rendererType="canvas",this.renderConfig.clearCanvas&&(this.ctxTransform=this.contextData.transform.bind(this.contextData),this.ctxOpacity=this.contextData.opacity.bind(this.contextData),this.ctxFillStyle=this.contextData.fillStyle.bind(this.contextData),this.ctxStrokeStyle=this.contextData.strokeStyle.bind(this.contextData),this.ctxLineWidth=this.contextData.lineWidth.bind(this.contextData),this.ctxLineCap=this.contextData.lineCap.bind(this.contextData),this.ctxLineJoin=this.contextData.lineJoin.bind(this.contextData),this.ctxMiterLimit=this.contextData.miterLimit.bind(this.contextData),this.ctxFill=this.contextData.fill.bind(this.contextData),this.ctxFillRect=this.contextData.fillRect.bind(this.contextData),this.ctxStroke=this.contextData.stroke.bind(this.contextData),this.save=this.contextData.save.bind(this.contextData))}extendPrototype([CanvasRendererBase],CanvasRenderer),CanvasRenderer.prototype.createComp=function(e){return new CVCompElement(e,this.globalData,this)};function HBaseElement(){}HBaseElement.prototype={checkBlendMode:function(){},initRendererElement:function(){this.baseElement=createTag(this.data.tg||"div"),this.data.hasMask?(this.svgElement=createNS("svg"),this.layerElement=createNS("g"),this.maskedElement=this.layerElement,this.svgElement.appendChild(this.layerElement),this.baseElement.appendChild(this.svgElement)):this.layerElement=this.baseElement,styleDiv(this.baseElement)},createContainerElements:function(){this.renderableEffectsManager=new CVEffects(this),this.transformedElement=this.baseElement,this.maskedElement=this.layerElement,this.data.ln&&this.layerElement.setAttribute("id",this.data.ln),this.data.cl&&this.layerElement.setAttribute("class",this.data.cl),this.data.bm!==0&&this.setBlendMode()},renderElement:function(){var t=this.transformedElement?this.transformedElement.style:{};if(this.finalTransform._matMdf){var n=this.finalTransform.mat.toCSS();t.transform=n,t.webkitTransform=n}this.finalTransform._opMdf&&(t.opacity=this.finalTransform.mProp.o.v)},renderFrame:function(){this.data.hd||this.hidden||(this.renderTransform(),this.renderRenderable(),this.renderElement(),this.renderInnerContent(),this._isFirstFrame&&(this._isFirstFrame=!1))},destroy:function(){this.layerElement=null,this.transformedElement=null,this.matteElement&&(this.matteElement=null),this.maskManager&&(this.maskManager.destroy(),this.maskManager=null)},createRenderableComponents:function(){this.maskManager=new MaskElement(this.data,this,this.globalData)},addEffects:function(){},setMatte:function(){}},HBaseElement.prototype.getBaseElement=SVGBaseElement.prototype.getBaseElement,HBaseElement.prototype.destroyBaseElement=HBaseElement.prototype.destroy,HBaseElement.prototype.buildElementParenting=BaseRenderer.prototype.buildElementParenting;function HSolidElement(e,t,n){this.initElement(e,t,n)}extendPrototype([BaseElement,TransformElement,HBaseElement,HierarchyElement,FrameElement,RenderableDOMElement],HSolidElement),HSolidElement.prototype.createContent=function(){var e;this.data.hasMask?(e=createNS("rect"),e.setAttribute("width",this.data.sw),e.setAttribute("height",this.data.sh),e.setAttribute("fill",this.data.sc),this.svgElement.setAttribute("width",this.data.sw),this.svgElement.setAttribute("height",this.data.sh)):(e=createTag("div"),e.style.width=this.data.sw+"px",e.style.height=this.data.sh+"px",e.style.backgroundColor=this.data.sc),this.layerElement.appendChild(e)};function HShapeElement(e,t,n){this.shapes=[],this.shapesData=e.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.animatedContents=[],this.shapesContainer=createNS("g"),this.initElement(e,t,n),this.prevViewData=[],this.currentBBox={x:999999,y:-999999,h:0,w:0}}extendPrototype([BaseElement,TransformElement,HSolidElement,SVGShapeElement,HBaseElement,HierarchyElement,FrameElement,RenderableElement],HShapeElement),HShapeElement.prototype._renderShapeFrame=HShapeElement.prototype.renderInnerContent,HShapeElement.prototype.createContent=function(){var e;if(this.baseElement.style.fontSize=0,this.data.hasMask)this.layerElement.appendChild(this.shapesContainer),e=this.svgElement;else{e=createNS("svg");var t=this.comp.data?this.comp.data:this.globalData.compSize;e.setAttribute("width",t.w),e.setAttribute("height",t.h),e.appendChild(this.shapesContainer),this.layerElement.appendChild(e)}this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.shapesContainer,0,[],!0),this.filterUniqueShapes(),this.shapeCont=e},HShapeElement.prototype.getTransformedPoint=function(e,t){var n,i=e.length;for(n=0;n<i;n+=1)t=e[n].mProps.v.applyToPointArray(t[0],t[1],0);return t},HShapeElement.prototype.calculateShapeBoundingBox=function(e,t){var n=e.sh.v,i=e.transformers,s,a=n._length,o,l,c,u;if(!(a<=1)){for(s=0;s<a-1;s+=1)o=this.getTransformedPoint(i,n.v[s]),l=this.getTransformedPoint(i,n.o[s]),c=this.getTransformedPoint(i,n.i[s+1]),u=this.getTransformedPoint(i,n.v[s+1]),this.checkBounds(o,l,c,u,t);n.c&&(o=this.getTransformedPoint(i,n.v[s]),l=this.getTransformedPoint(i,n.o[s]),c=this.getTransformedPoint(i,n.i[0]),u=this.getTransformedPoint(i,n.v[0]),this.checkBounds(o,l,c,u,t))}},HShapeElement.prototype.checkBounds=function(e,t,n,i,s){this.getBoundsOfCurve(e,t,n,i);var a=this.shapeBoundingBox;s.x=bmMin(a.left,s.x),s.xMax=bmMax(a.right,s.xMax),s.y=bmMin(a.top,s.y),s.yMax=bmMax(a.bottom,s.yMax)},HShapeElement.prototype.shapeBoundingBox={left:0,right:0,top:0,bottom:0},HShapeElement.prototype.tempBoundingBox={x:0,xMax:0,y:0,yMax:0,width:0,height:0},HShapeElement.prototype.getBoundsOfCurve=function(e,t,n,i){for(var s=[[e[0],i[0]],[e[1],i[1]]],a,o,l,c,u,d,p,h=0;h<2;++h)o=6*e[h]-12*t[h]+6*n[h],a=-3*e[h]+9*t[h]-9*n[h]+3*i[h],l=3*t[h]-3*e[h],o|=0,a|=0,l|=0,a===0&&o===0||(a===0?(c=-l/o,c>0&&c<1&&s[h].push(this.calculateF(c,e,t,n,i,h))):(u=o*o-4*l*a,u>=0&&(d=(-o+bmSqrt(u))/(2*a),d>0&&d<1&&s[h].push(this.calculateF(d,e,t,n,i,h)),p=(-o-bmSqrt(u))/(2*a),p>0&&p<1&&s[h].push(this.calculateF(p,e,t,n,i,h)))));this.shapeBoundingBox.left=bmMin.apply(null,s[0]),this.shapeBoundingBox.top=bmMin.apply(null,s[1]),this.shapeBoundingBox.right=bmMax.apply(null,s[0]),this.shapeBoundingBox.bottom=bmMax.apply(null,s[1])},HShapeElement.prototype.calculateF=function(e,t,n,i,s,a){return bmPow(1-e,3)*t[a]+3*bmPow(1-e,2)*e*n[a]+3*(1-e)*bmPow(e,2)*i[a]+bmPow(e,3)*s[a]},HShapeElement.prototype.calculateBoundingBox=function(e,t){var n,i=e.length;for(n=0;n<i;n+=1)e[n]&&e[n].sh?this.calculateShapeBoundingBox(e[n],t):e[n]&&e[n].it?this.calculateBoundingBox(e[n].it,t):e[n]&&e[n].style&&e[n].w&&this.expandStrokeBoundingBox(e[n].w,t)},HShapeElement.prototype.expandStrokeBoundingBox=function(e,t){var n=0;if(e.keyframes){for(var i=0;i<e.keyframes.length;i+=1){var s=e.keyframes[i].s;s>n&&(n=s)}n*=e.mult}else n=e.v*e.mult;t.x-=n,t.xMax+=n,t.y-=n,t.yMax+=n},HShapeElement.prototype.currentBoxContains=function(e){return this.currentBBox.x<=e.x&&this.currentBBox.y<=e.y&&this.currentBBox.width+this.currentBBox.x>=e.x+e.width&&this.currentBBox.height+this.currentBBox.y>=e.y+e.height},HShapeElement.prototype.renderInnerContent=function(){if(this._renderShapeFrame(),!this.hidden&&(this._isFirstFrame||this._mdf)){var e=this.tempBoundingBox,t=999999;if(e.x=t,e.xMax=-t,e.y=t,e.yMax=-t,this.calculateBoundingBox(this.itemsData,e),e.width=e.xMax<e.x?0:e.xMax-e.x,e.height=e.yMax<e.y?0:e.yMax-e.y,this.currentBoxContains(e))return;var n=!1;if(this.currentBBox.w!==e.width&&(this.currentBBox.w=e.width,this.shapeCont.setAttribute("width",e.width),n=!0),this.currentBBox.h!==e.height&&(this.currentBBox.h=e.height,this.shapeCont.setAttribute("height",e.height),n=!0),n||this.currentBBox.x!==e.x||this.currentBBox.y!==e.y){this.currentBBox.w=e.width,this.currentBBox.h=e.height,this.currentBBox.x=e.x,this.currentBBox.y=e.y,this.shapeCont.setAttribute("viewBox",this.currentBBox.x+" "+this.currentBBox.y+" "+this.currentBBox.w+" "+this.currentBBox.h);var i=this.shapeCont.style,s="translate("+this.currentBBox.x+"px,"+this.currentBBox.y+"px)";i.transform=s,i.webkitTransform=s}}};function HTextElement(e,t,n){this.textSpans=[],this.textPaths=[],this.currentBBox={x:999999,y:-999999,h:0,w:0},this.renderType="svg",this.isMasked=!1,this.initElement(e,t,n)}extendPrototype([BaseElement,TransformElement,HBaseElement,HierarchyElement,FrameElement,RenderableDOMElement,ITextElement],HTextElement),HTextElement.prototype.createContent=function(){if(this.isMasked=this.checkMasks(),this.isMasked){this.renderType="svg",this.compW=this.comp.data.w,this.compH=this.comp.data.h,this.svgElement.setAttribute("width",this.compW),this.svgElement.setAttribute("height",this.compH);var e=createNS("g");this.maskedElement.appendChild(e),this.innerElem=e}else this.renderType="html",this.innerElem=this.layerElement;this.checkParenting()},HTextElement.prototype.buildNewText=function(){var e=this.textProperty.currentData;this.renderedLetters=createSizedArray(e.l?e.l.length:0);var t=this.innerElem.style,n=e.fc?this.buildColor(e.fc):"rgba(0,0,0,0)";t.fill=n,t.color=n,e.sc&&(t.stroke=this.buildColor(e.sc),t.strokeWidth=e.sw+"px");var i=this.globalData.fontManager.getFontByName(e.f);if(!this.globalData.fontManager.chars)if(t.fontSize=e.finalSize+"px",t.lineHeight=e.finalSize+"px",i.fClass)this.innerElem.className=i.fClass;else{t.fontFamily=i.fFamily;var s=e.fWeight,a=e.fStyle;t.fontStyle=a,t.fontWeight=s}var o,l,c=e.l;l=c.length;var u,d,p,h=this.mHelper,y,f="",m=0;for(o=0;o<l;o+=1){if(this.globalData.fontManager.chars?(this.textPaths[m]?u=this.textPaths[m]:(u=createNS("path"),u.setAttribute("stroke-linecap",lineCapEnum[1]),u.setAttribute("stroke-linejoin",lineJoinEnum[2]),u.setAttribute("stroke-miterlimit","4")),this.isMasked||(this.textSpans[m]?(d=this.textSpans[m],p=d.children[0]):(d=createTag("div"),d.style.lineHeight=0,p=createNS("svg"),p.appendChild(u),styleDiv(d)))):this.isMasked?u=this.textPaths[m]?this.textPaths[m]:createNS("text"):this.textSpans[m]?(d=this.textSpans[m],u=this.textPaths[m]):(d=createTag("span"),styleDiv(d),u=createTag("span"),styleDiv(u),d.appendChild(u)),this.globalData.fontManager.chars){var C=this.globalData.fontManager.getCharData(e.finalText[o],i.fStyle,this.globalData.fontManager.getFontByName(e.f).fFamily),g;if(C?g=C.data:g=null,h.reset(),g&&g.shapes&&g.shapes.length&&(y=g.shapes[0].it,h.scale(e.finalSize/100,e.finalSize/100),f=this.createPathShape(h,y),u.setAttribute("d",f)),this.isMasked)this.innerElem.appendChild(u);else{if(this.innerElem.appendChild(d),g&&g.shapes){document.body.appendChild(p);var b=p.getBBox();p.setAttribute("width",b.width+2),p.setAttribute("height",b.height+2),p.setAttribute("viewBox",b.x-1+" "+(b.y-1)+" "+(b.width+2)+" "+(b.height+2));var v=p.style,N="translate("+(b.x-1)+"px,"+(b.y-1)+"px)";v.transform=N,v.webkitTransform=N,c[o].yOffset=b.y-1}else p.setAttribute("width",1),p.setAttribute("height",1);d.appendChild(p)}}else if(u.textContent=c[o].val,u.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),this.isMasked)this.innerElem.appendChild(u);else{this.innerElem.appendChild(d);var w=u.style,E="translate3d(0,"+-e.finalSize/1.2+"px,0)";w.transform=E,w.webkitTransform=E}this.isMasked?this.textSpans[m]=u:this.textSpans[m]=d,this.textSpans[m].style.display="block",this.textPaths[m]=u,m+=1}for(;m<this.textSpans.length;)this.textSpans[m].style.display="none",m+=1},HTextElement.prototype.renderInnerContent=function(){this.validateText();var e;if(this.data.singleShape){if(!this._isFirstFrame&&!this.lettersChangedFlag)return;if(this.isMasked&&this.finalTransform._matMdf){this.svgElement.setAttribute("viewBox",-this.finalTransform.mProp.p.v[0]+" "+-this.finalTransform.mProp.p.v[1]+" "+this.compW+" "+this.compH),e=this.svgElement.style;var t="translate("+-this.finalTransform.mProp.p.v[0]+"px,"+-this.finalTransform.mProp.p.v[1]+"px)";e.transform=t,e.webkitTransform=t}}if(this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag),!(!this.lettersChangedFlag&&!this.textAnimator.lettersChangedFlag)){var n,i,s=0,a=this.textAnimator.renderedLetters,o=this.textProperty.currentData.l;i=o.length;var l,c,u;for(n=0;n<i;n+=1)o[n].n?s+=1:(c=this.textSpans[n],u=this.textPaths[n],l=a[s],s+=1,l._mdf.m&&(this.isMasked?c.setAttribute("transform",l.m):(c.style.webkitTransform=l.m,c.style.transform=l.m)),c.style.opacity=l.o,l.sw&&l._mdf.sw&&u.setAttribute("stroke-width",l.sw),l.sc&&l._mdf.sc&&u.setAttribute("stroke",l.sc),l.fc&&l._mdf.fc&&(u.setAttribute("fill",l.fc),u.style.color=l.fc));if(this.innerElem.getBBox&&!this.hidden&&(this._isFirstFrame||this._mdf)){var d=this.innerElem.getBBox();this.currentBBox.w!==d.width&&(this.currentBBox.w=d.width,this.svgElement.setAttribute("width",d.width)),this.currentBBox.h!==d.height&&(this.currentBBox.h=d.height,this.svgElement.setAttribute("height",d.height));var p=1;if(this.currentBBox.w!==d.width+p*2||this.currentBBox.h!==d.height+p*2||this.currentBBox.x!==d.x-p||this.currentBBox.y!==d.y-p){this.currentBBox.w=d.width+p*2,this.currentBBox.h=d.height+p*2,this.currentBBox.x=d.x-p,this.currentBBox.y=d.y-p,this.svgElement.setAttribute("viewBox",this.currentBBox.x+" "+this.currentBBox.y+" "+this.currentBBox.w+" "+this.currentBBox.h),e=this.svgElement.style;var h="translate("+this.currentBBox.x+"px,"+this.currentBBox.y+"px)";e.transform=h,e.webkitTransform=h}}}};function HCameraElement(e,t,n){this.initFrame(),this.initBaseData(e,t,n),this.initHierarchy();var i=PropertyFactory.getProp;if(this.pe=i(this,e.pe,0,0,this),e.ks.p.s?(this.px=i(this,e.ks.p.x,1,0,this),this.py=i(this,e.ks.p.y,1,0,this),this.pz=i(this,e.ks.p.z,1,0,this)):this.p=i(this,e.ks.p,1,0,this),e.ks.a&&(this.a=i(this,e.ks.a,1,0,this)),e.ks.or.k.length&&e.ks.or.k[0].to){var s,a=e.ks.or.k.length;for(s=0;s<a;s+=1)e.ks.or.k[s].to=null,e.ks.or.k[s].ti=null}this.or=i(this,e.ks.or,1,degToRads,this),this.or.sh=!0,this.rx=i(this,e.ks.rx,0,degToRads,this),this.ry=i(this,e.ks.ry,0,degToRads,this),this.rz=i(this,e.ks.rz,0,degToRads,this),this.mat=new Matrix,this._prevMat=new Matrix,this._isFirstFrame=!0,this.finalTransform={mProp:this}}extendPrototype([BaseElement,FrameElement,HierarchyElement],HCameraElement),HCameraElement.prototype.setup=function(){var e,t=this.comp.threeDElements.length,n,i,s;for(e=0;e<t;e+=1)if(n=this.comp.threeDElements[e],n.type==="3d"){i=n.perspectiveElem.style,s=n.container.style;var a=this.pe.v+"px",o="0px 0px 0px",l="matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1)";i.perspective=a,i.webkitPerspective=a,s.transformOrigin=o,s.mozTransformOrigin=o,s.webkitTransformOrigin=o,i.transform=l,i.webkitTransform=l}},HCameraElement.prototype.createElements=function(){},HCameraElement.prototype.hide=function(){},HCameraElement.prototype.renderFrame=function(){var e=this._isFirstFrame,t,n;if(this.hierarchy)for(n=this.hierarchy.length,t=0;t<n;t+=1)e=this.hierarchy[t].finalTransform.mProp._mdf||e;if(e||this.pe._mdf||this.p&&this.p._mdf||this.px&&(this.px._mdf||this.py._mdf||this.pz._mdf)||this.rx._mdf||this.ry._mdf||this.rz._mdf||this.or._mdf||this.a&&this.a._mdf){if(this.mat.reset(),this.hierarchy)for(n=this.hierarchy.length-1,t=n;t>=0;t-=1){var i=this.hierarchy[t].finalTransform.mProp;this.mat.translate(-i.p.v[0],-i.p.v[1],i.p.v[2]),this.mat.rotateX(-i.or.v[0]).rotateY(-i.or.v[1]).rotateZ(i.or.v[2]),this.mat.rotateX(-i.rx.v).rotateY(-i.ry.v).rotateZ(i.rz.v),this.mat.scale(1/i.s.v[0],1/i.s.v[1],1/i.s.v[2]),this.mat.translate(i.a.v[0],i.a.v[1],i.a.v[2])}if(this.p?this.mat.translate(-this.p.v[0],-this.p.v[1],this.p.v[2]):this.mat.translate(-this.px.v,-this.py.v,this.pz.v),this.a){var s;this.p?s=[this.p.v[0]-this.a.v[0],this.p.v[1]-this.a.v[1],this.p.v[2]-this.a.v[2]]:s=[this.px.v-this.a.v[0],this.py.v-this.a.v[1],this.pz.v-this.a.v[2]];var a=Math.sqrt(Math.pow(s[0],2)+Math.pow(s[1],2)+Math.pow(s[2],2)),o=[s[0]/a,s[1]/a,s[2]/a],l=Math.sqrt(o[2]*o[2]+o[0]*o[0]),c=Math.atan2(o[1],l),u=Math.atan2(o[0],-o[2]);this.mat.rotateY(u).rotateX(-c)}this.mat.rotateX(-this.rx.v).rotateY(-this.ry.v).rotateZ(this.rz.v),this.mat.rotateX(-this.or.v[0]).rotateY(-this.or.v[1]).rotateZ(this.or.v[2]),this.mat.translate(this.globalData.compSize.w/2,this.globalData.compSize.h/2,0),this.mat.translate(0,0,this.pe.v);var d=!this._prevMat.equals(this.mat);if((d||this.pe._mdf)&&this.comp.threeDElements){n=this.comp.threeDElements.length;var p,h,y;for(t=0;t<n;t+=1)if(p=this.comp.threeDElements[t],p.type==="3d"){if(d){var f=this.mat.toCSS();y=p.container.style,y.transform=f,y.webkitTransform=f}this.pe._mdf&&(h=p.perspectiveElem.style,h.perspective=this.pe.v+"px",h.webkitPerspective=this.pe.v+"px")}this.mat.clone(this._prevMat)}}this._isFirstFrame=!1},HCameraElement.prototype.prepareFrame=function(e){this.prepareProperties(e,!0)},HCameraElement.prototype.destroy=function(){},HCameraElement.prototype.getBaseElement=function(){return null};function HImageElement(e,t,n){this.assetData=t.getAssetData(e.refId),this.initElement(e,t,n)}extendPrototype([BaseElement,TransformElement,HBaseElement,HSolidElement,HierarchyElement,FrameElement,RenderableElement],HImageElement),HImageElement.prototype.createContent=function(){var e=this.globalData.getAssetsPath(this.assetData),t=new Image;this.data.hasMask?(this.imageElem=createNS("image"),this.imageElem.setAttribute("width",this.assetData.w+"px"),this.imageElem.setAttribute("height",this.assetData.h+"px"),this.imageElem.setAttributeNS("http://www.w3.org/1999/xlink","href",e),this.layerElement.appendChild(this.imageElem),this.baseElement.setAttribute("width",this.assetData.w),this.baseElement.setAttribute("height",this.assetData.h)):this.layerElement.appendChild(t),t.crossOrigin="anonymous",t.src=e,this.data.ln&&this.baseElement.setAttribute("id",this.data.ln)};function HybridRendererBase(e,t){this.animationItem=e,this.layers=null,this.renderedFrame=-1,this.renderConfig={className:t&&t.className||"",imagePreserveAspectRatio:t&&t.imagePreserveAspectRatio||"xMidYMid slice",hideOnTransparent:!(t&&t.hideOnTransparent===!1),filterSize:{width:t&&t.filterSize&&t.filterSize.width||"400%",height:t&&t.filterSize&&t.filterSize.height||"400%",x:t&&t.filterSize&&t.filterSize.x||"-100%",y:t&&t.filterSize&&t.filterSize.y||"-100%"}},this.globalData={_mdf:!1,frameNum:-1,renderConfig:this.renderConfig},this.pendingElements=[],this.elements=[],this.threeDElements=[],this.destroyed=!1,this.camera=null,this.supports3d=!0,this.rendererType="html"}extendPrototype([BaseRenderer],HybridRendererBase),HybridRendererBase.prototype.buildItem=SVGRenderer.prototype.buildItem,HybridRendererBase.prototype.checkPendingElements=function(){for(;this.pendingElements.length;){var e=this.pendingElements.pop();e.checkParenting()}},HybridRendererBase.prototype.appendElementInPos=function(e,t){var n=e.getBaseElement();if(n){var i=this.layers[t];if(!i.ddd||!this.supports3d)if(this.threeDElements)this.addTo3dContainer(n,t);else{for(var s=0,a,o,l;s<t;)this.elements[s]&&this.elements[s]!==!0&&this.elements[s].getBaseElement&&(o=this.elements[s],l=this.layers[s].ddd?this.getThreeDContainerByPos(s):o.getBaseElement(),a=l||a),s+=1;a?(!i.ddd||!this.supports3d)&&this.layerElement.insertBefore(n,a):(!i.ddd||!this.supports3d)&&this.layerElement.appendChild(n)}else this.addTo3dContainer(n,t)}},HybridRendererBase.prototype.createShape=function(e){return this.supports3d?new HShapeElement(e,this.globalData,this):new SVGShapeElement(e,this.globalData,this)},HybridRendererBase.prototype.createText=function(e){return this.supports3d?new HTextElement(e,this.globalData,this):new SVGTextLottieElement(e,this.globalData,this)},HybridRendererBase.prototype.createCamera=function(e){return this.camera=new HCameraElement(e,this.globalData,this),this.camera},HybridRendererBase.prototype.createImage=function(e){return this.supports3d?new HImageElement(e,this.globalData,this):new IImageElement(e,this.globalData,this)},HybridRendererBase.prototype.createSolid=function(e){return this.supports3d?new HSolidElement(e,this.globalData,this):new ISolidElement(e,this.globalData,this)},HybridRendererBase.prototype.createNull=SVGRenderer.prototype.createNull,HybridRendererBase.prototype.getThreeDContainerByPos=function(e){for(var t=0,n=this.threeDElements.length;t<n;){if(this.threeDElements[t].startPos<=e&&this.threeDElements[t].endPos>=e)return this.threeDElements[t].perspectiveElem;t+=1}return null},HybridRendererBase.prototype.createThreeDContainer=function(e,t){var n=createTag("div"),i,s;styleDiv(n);var a=createTag("div");if(styleDiv(a),t==="3d"){i=n.style,i.width=this.globalData.compSize.w+"px",i.height=this.globalData.compSize.h+"px";var o="50% 50%";i.webkitTransformOrigin=o,i.mozTransformOrigin=o,i.transformOrigin=o,s=a.style;var l="matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1)";s.transform=l,s.webkitTransform=l}n.appendChild(a);var c={container:a,perspectiveElem:n,startPos:e,endPos:e,type:t};return this.threeDElements.push(c),c},HybridRendererBase.prototype.build3dContainers=function(){var e,t=this.layers.length,n,i="";for(e=0;e<t;e+=1)this.layers[e].ddd&&this.layers[e].ty!==3?(i!=="3d"&&(i="3d",n=this.createThreeDContainer(e,"3d")),n.endPos=Math.max(n.endPos,e)):(i!=="2d"&&(i="2d",n=this.createThreeDContainer(e,"2d")),n.endPos=Math.max(n.endPos,e));for(t=this.threeDElements.length,e=t-1;e>=0;e-=1)this.resizerElem.appendChild(this.threeDElements[e].perspectiveElem)},HybridRendererBase.prototype.addTo3dContainer=function(e,t){for(var n=0,i=this.threeDElements.length;n<i;){if(t<=this.threeDElements[n].endPos){for(var s=this.threeDElements[n].startPos,a;s<t;)this.elements[s]&&this.elements[s].getBaseElement&&(a=this.elements[s].getBaseElement()),s+=1;a?this.threeDElements[n].container.insertBefore(e,a):this.threeDElements[n].container.appendChild(e);break}n+=1}},HybridRendererBase.prototype.configAnimation=function(e){var t=createTag("div"),n=this.animationItem.wrapper,i=t.style;i.width=e.w+"px",i.height=e.h+"px",this.resizerElem=t,styleDiv(t),i.transformStyle="flat",i.mozTransformStyle="flat",i.webkitTransformStyle="flat",this.renderConfig.className&&t.setAttribute("class",this.renderConfig.className),n.appendChild(t),i.overflow="hidden";var s=createNS("svg");s.setAttribute("width","1"),s.setAttribute("height","1"),styleDiv(s),this.resizerElem.appendChild(s);var a=createNS("defs");s.appendChild(a),this.data=e,this.setupGlobalData(e,s),this.globalData.defs=a,this.layers=e.layers,this.layerElement=this.resizerElem,this.build3dContainers(),this.updateContainerSize()},HybridRendererBase.prototype.destroy=function(){this.animationItem.wrapper&&(this.animationItem.wrapper.innerText=""),this.animationItem.container=null,this.globalData.defs=null;var e,t=this.layers?this.layers.length:0;for(e=0;e<t;e+=1)this.elements[e]&&this.elements[e].destroy&&this.elements[e].destroy();this.elements.length=0,this.destroyed=!0,this.animationItem=null},HybridRendererBase.prototype.updateContainerSize=function(){var e=this.animationItem.wrapper.offsetWidth,t=this.animationItem.wrapper.offsetHeight,n=e/t,i=this.globalData.compSize.w/this.globalData.compSize.h,s,a,o,l;i>n?(s=e/this.globalData.compSize.w,a=e/this.globalData.compSize.w,o=0,l=(t-this.globalData.compSize.h*(e/this.globalData.compSize.w))/2):(s=t/this.globalData.compSize.h,a=t/this.globalData.compSize.h,o=(e-this.globalData.compSize.w*(t/this.globalData.compSize.h))/2,l=0);var c=this.resizerElem.style;c.webkitTransform="matrix3d("+s+",0,0,0,0,"+a+",0,0,0,0,1,0,"+o+","+l+",0,1)",c.transform=c.webkitTransform},HybridRendererBase.prototype.renderFrame=SVGRenderer.prototype.renderFrame,HybridRendererBase.prototype.hide=function(){this.resizerElem.style.display="none"},HybridRendererBase.prototype.show=function(){this.resizerElem.style.display="block"},HybridRendererBase.prototype.initItems=function(){if(this.buildAllItems(),this.camera)this.camera.setup();else{var e=this.globalData.compSize.w,t=this.globalData.compSize.h,n,i=this.threeDElements.length;for(n=0;n<i;n+=1){var s=this.threeDElements[n].perspectiveElem.style;s.webkitPerspective=Math.sqrt(Math.pow(e,2)+Math.pow(t,2))+"px",s.perspective=s.webkitPerspective}}},HybridRendererBase.prototype.searchExtraCompositions=function(e){var t,n=e.length,i=createTag("div");for(t=0;t<n;t+=1)if(e[t].xt){var s=this.createComp(e[t],i,this.globalData.comp,null);s.initExpressions(),this.globalData.projectInterface.registerComposition(s)}};function HCompElement(e,t,n){this.layers=e.layers,this.supports3d=!e.hasMask,this.completeLayers=!1,this.pendingElements=[],this.elements=this.layers?createSizedArray(this.layers.length):[],this.initElement(e,t,n),this.tm=e.tm?PropertyFactory.getProp(this,e.tm,0,t.frameRate,this):{_placeholder:!0}}extendPrototype([HybridRendererBase,ICompElement,HBaseElement],HCompElement),HCompElement.prototype._createBaseContainerElements=HCompElement.prototype.createContainerElements,HCompElement.prototype.createContainerElements=function(){this._createBaseContainerElements(),this.data.hasMask?(this.svgElement.setAttribute("width",this.data.w),this.svgElement.setAttribute("height",this.data.h),this.transformedElement=this.baseElement):this.transformedElement=this.layerElement},HCompElement.prototype.addTo3dContainer=function(e,t){for(var n=0,i;n<t;)this.elements[n]&&this.elements[n].getBaseElement&&(i=this.elements[n].getBaseElement()),n+=1;i?this.layerElement.insertBefore(e,i):this.layerElement.appendChild(e)},HCompElement.prototype.createComp=function(e){return this.supports3d?new HCompElement(e,this.globalData,this):new SVGCompElement(e,this.globalData,this)};function HybridRenderer(e,t){this.animationItem=e,this.layers=null,this.renderedFrame=-1,this.renderConfig={className:t&&t.className||"",imagePreserveAspectRatio:t&&t.imagePreserveAspectRatio||"xMidYMid slice",hideOnTransparent:!(t&&t.hideOnTransparent===!1),filterSize:{width:t&&t.filterSize&&t.filterSize.width||"400%",height:t&&t.filterSize&&t.filterSize.height||"400%",x:t&&t.filterSize&&t.filterSize.x||"-100%",y:t&&t.filterSize&&t.filterSize.y||"-100%"},runExpressions:!t||t.runExpressions===void 0||t.runExpressions},this.globalData={_mdf:!1,frameNum:-1,renderConfig:this.renderConfig},this.pendingElements=[],this.elements=[],this.threeDElements=[],this.destroyed=!1,this.camera=null,this.supports3d=!0,this.rendererType="html"}extendPrototype([HybridRendererBase],HybridRenderer),HybridRenderer.prototype.createComp=function(e){return this.supports3d?new HCompElement(e,this.globalData,this):new SVGCompElement(e,this.globalData,this)};var CompExpressionInterface=(function(){return function(e){function t(n){for(var i=0,s=e.layers.length;i<s;){if(e.layers[i].nm===n||e.layers[i].ind===n)return e.elements[i].layerInterface;i+=1}return null}return Object.defineProperty(t,"_name",{value:e.data.nm}),t.layer=t,t.pixelAspect=1,t.height=e.data.h||e.globalData.compSize.h,t.width=e.data.w||e.globalData.compSize.w,t.pixelAspect=1,t.frameDuration=1/e.globalData.frameRate,t.displayStartTime=0,t.numLayers=e.layers.length,t}})();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 seedRandom(e,t){var n=this,i=256,s=6,a=52,o="random",l=t.pow(i,s),c=t.pow(2,a),u=c*2,d=i-1,p;function h(v,N,w){var E=[];N=N===!0?{entropy:!0}:N||{};var _=C(m(N.entropy?[v,b(e)]:v===null?g():v,3),E),k=new y(E),A=function(){for(var B=k.g(s),I=l,D=0;B<c;)B=(B+D)*i,I*=i,D=k.g(1);for(;B>=u;)B/=2,I/=2,D>>>=1;return(B+D)/I};return A.int32=function(){return k.g(4)|0},A.quick=function(){return k.g(4)/4294967296},A.double=A,C(b(k.S),e),(N.pass||w||function(F,B,I,D){return D&&(D.S&&f(D,k),F.state=function(){return f(k,{})}),I?(t[o]=F,B):F})(A,_,"global"in N?N.global:this==t,N.state)}t["seed"+o]=h;function y(v){var N,w=v.length,E=this,_=0,k=E.i=E.j=0,A=E.S=[];for(w||(v=[w++]);_<i;)A[_]=_++;for(_=0;_<i;_++)A[_]=A[k=d&k+v[_%w]+(N=A[_])],A[k]=N;E.g=function(F){for(var B,I=0,D=E.i,L=E.j,$=E.S;F--;)B=$[D=d&D+1],I=I*i+$[d&($[D]=$[L=d&L+B])+($[L]=B)];return E.i=D,E.j=L,I}}function f(v,N){return N.i=v.i,N.j=v.j,N.S=v.S.slice(),N}function m(v,N){var w=[],E=_typeof$2(v),_;if(N&&E=="object")for(_ in v)try{w.push(m(v[_],N-1))}catch{}return w.length?w:E=="string"?v:v+"\0"}function C(v,N){for(var w=v+"",E,_=0;_<w.length;)N[d&_]=d&(E^=N[d&_]*19)+w.charCodeAt(_++);return b(N)}function g(){try{var v=new Uint8Array(i);return(n.crypto||n.msCrypto).getRandomValues(v),b(v)}catch{var N=n.navigator,w=N&&N.plugins;return[+new Date,n,w,n.screen,b(e)]}}function b(v){return String.fromCharCode.apply(0,v)}C(t.random(),e)}function initialize$2(e){seedRandom([],e)}var propTypes={SHAPE:"shape"};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)}var ExpressionManager=(function(){var ob={},Math=BMMath,window=null,document=null,XMLHttpRequest=null,fetch=null,frames=null,_lottieGlobal={};initialize$2(BMMath);function resetFrame(){_lottieGlobal={}}function $bm_isInstanceOfArray(e){return e.constructor===Array||e.constructor===Float32Array}function isNumerable(e,t){return e==="number"||t instanceof Number||e==="boolean"||e==="string"}function $bm_neg(e){var t=_typeof$1(e);if(t==="number"||e instanceof Number||t==="boolean")return-e;if($bm_isInstanceOfArray(e)){var n,i=e.length,s=[];for(n=0;n<i;n+=1)s[n]=-e[n];return s}return e.propType?e.v:-e}var easeInBez=BezierFactory.getBezierEasing(.333,0,.833,.833,"easeIn").get,easeOutBez=BezierFactory.getBezierEasing(.167,.167,.667,1,"easeOut").get,easeInOutBez=BezierFactory.getBezierEasing(.33,0,.667,1,"easeInOut").get;function sum(e,t){var n=_typeof$1(e),i=_typeof$1(t);if(isNumerable(n,e)&&isNumerable(i,t)||n==="string"||i==="string")return e+t;if($bm_isInstanceOfArray(e)&&isNumerable(i,t))return e=e.slice(0),e[0]+=t,e;if(isNumerable(n,e)&&$bm_isInstanceOfArray(t))return t=t.slice(0),t[0]=e+t[0],t;if($bm_isInstanceOfArray(e)&&$bm_isInstanceOfArray(t)){for(var s=0,a=e.length,o=t.length,l=[];s<a||s<o;)(typeof e[s]=="number"||e[s]instanceof Number)&&(typeof t[s]=="number"||t[s]instanceof Number)?l[s]=e[s]+t[s]:l[s]=t[s]===void 0?e[s]:e[s]||t[s],s+=1;return l}return 0}var add=sum;function sub(e,t){var n=_typeof$1(e),i=_typeof$1(t);if(isNumerable(n,e)&&isNumerable(i,t))return n==="string"&&(e=parseInt(e,10)),i==="string"&&(t=parseInt(t,10)),e-t;if($bm_isInstanceOfArray(e)&&isNumerable(i,t))return e=e.slice(0),e[0]-=t,e;if(isNumerable(n,e)&&$bm_isInstanceOfArray(t))return t=t.slice(0),t[0]=e-t[0],t;if($bm_isInstanceOfArray(e)&&$bm_isInstanceOfArray(t)){for(var s=0,a=e.length,o=t.length,l=[];s<a||s<o;)(typeof e[s]=="number"||e[s]instanceof Number)&&(typeof t[s]=="number"||t[s]instanceof Number)?l[s]=e[s]-t[s]:l[s]=t[s]===void 0?e[s]:e[s]||t[s],s+=1;return l}return 0}function mul(e,t){var n=_typeof$1(e),i=_typeof$1(t),s;if(isNumerable(n,e)&&isNumerable(i,t))return e*t;var a,o;if($bm_isInstanceOfArray(e)&&isNumerable(i,t)){for(o=e.length,s=createTypedArray("float32",o),a=0;a<o;a+=1)s[a]=e[a]*t;return s}if(isNumerable(n,e)&&$bm_isInstanceOfArray(t)){for(o=t.length,s=createTypedArray("float32",o),a=0;a<o;a+=1)s[a]=e*t[a];return s}return 0}function div(e,t){var n=_typeof$1(e),i=_typeof$1(t),s;if(isNumerable(n,e)&&isNumerable(i,t))return e/t;var a,o;if($bm_isInstanceOfArray(e)&&isNumerable(i,t)){for(o=e.length,s=createTypedArray("float32",o),a=0;a<o;a+=1)s[a]=e[a]/t;return s}if(isNumerable(n,e)&&$bm_isInstanceOfArray(t)){for(o=t.length,s=createTypedArray("float32",o),a=0;a<o;a+=1)s[a]=e/t[a];return s}return 0}function mod(e,t){return typeof e=="string"&&(e=parseInt(e,10)),typeof t=="string"&&(t=parseInt(t,10)),e%t}var $bm_sum=sum,$bm_sub=sub,$bm_mul=mul,$bm_div=div,$bm_mod=mod;function clamp(e,t,n){if(t>n){var i=n;n=t,t=i}return Math.min(Math.max(e,t),n)}function radiansToDegrees(e){return e/degToRads}var radians_to_degrees=radiansToDegrees;function degreesToRadians(e){return e*degToRads}var degrees_to_radians=radiansToDegrees,helperLengthArray=[0,0,0,0,0,0];function length(e,t){if(typeof e=="number"||e instanceof Number)return t=t||0,Math.abs(e-t);t||(t=helperLengthArray);var n,i=Math.min(e.length,t.length),s=0;for(n=0;n<i;n+=1)s+=Math.pow(t[n]-e[n],2);return Math.sqrt(s)}function normalize(e){return div(e,length(e))}function rgbToHsl(e){var t=e[0],n=e[1],i=e[2],s=Math.max(t,n,i),a=Math.min(t,n,i),o,l,c=(s+a)/2;if(s===a)o=0,l=0;else{var u=s-a;switch(l=c>.5?u/(2-s-a):u/(s+a),s){case t:o=(n-i)/u+(n<i?6:0);break;case n:o=(i-t)/u+2;break;case i:o=(t-n)/u+4;break}o/=6}return[o,l,c,e[3]]}function hue2rgb(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function hslToRgb(e){var t=e[0],n=e[1],i=e[2],s,a,o;if(n===0)s=i,o=i,a=i;else{var l=i<.5?i*(1+n):i+n-i*n,c=2*i-l;s=hue2rgb(c,l,t+1/3),a=hue2rgb(c,l,t),o=hue2rgb(c,l,t-1/3)}return[s,a,o,e[3]]}function linear(e,t,n,i,s){if((i===void 0||s===void 0)&&(i=t,s=n,t=0,n=1),n<t){var a=n;n=t,t=a}if(e<=t)return i;if(e>=n)return s;var o=n===t?0:(e-t)/(n-t);if(!i.length)return i+(s-i)*o;var l,c=i.length,u=createTypedArray("float32",c);for(l=0;l<c;l+=1)u[l]=i[l]+(s[l]-i[l])*o;return u}function random(e,t){if(t===void 0&&(e===void 0?(e=0,t=1):(t=e,e=void 0)),t.length){var n,i=t.length;e||(e=createTypedArray("float32",i));var s=createTypedArray("float32",i),a=BMMath.random();for(n=0;n<i;n+=1)s[n]=e[n]+a*(t[n]-e[n]);return s}e===void 0&&(e=0);var o=BMMath.random();return e+o*(t-e)}function createPath(e,t,n,i){var s,a=e.length,o=shapePool.newElement();o.setPathData(!!i,a);var l=[0,0],c,u;for(s=0;s<a;s+=1)c=t&&t[s]?t[s]:l,u=n&&n[s]?n[s]:l,o.setTripleAt(e[s][0],e[s][1],u[0]+e[s][0],u[1]+e[s][1],c[0]+e[s][0],c[1]+e[s][1],s,!0);return o}function initiateExpression(elem,data,property){function noOp(e){return e}if(!elem.globalData.renderConfig.runExpressions)return noOp;var val=data.x,needsVelocity=/velocity(?![\w\d])/.test(val),_needsRandom=val.indexOf("random")!==-1,elemType=elem.data.ty,transform,$bm_transform,content,effect,thisProperty=property;thisProperty._name=elem.data.nm,thisProperty.valueAtTime=thisProperty.getValueAtTime,Object.defineProperty(thisProperty,"value",{get:function(){return thisProperty.v}}),elem.comp.frameDuration=1/elem.comp.globalData.frameRate,elem.comp.displayStartTime=0;var inPoint=elem.data.ip/elem.comp.globalData.frameRate,outPoint=elem.data.op/elem.comp.globalData.frameRate,width=elem.data.sw?elem.data.sw:0,height=elem.data.sh?elem.data.sh:0,name=elem.data.nm,loopIn,loop_in,loopOut,loop_out,smooth,toWorld,fromWorld,fromComp,toComp,fromCompToSurface,position,rotation,anchorPoint,scale,thisLayer,thisComp,mask,valueAtTime,velocityAtTime,scoped_bm_rt,expression_function=eval("[function _expression_function(){"+val+";scoped_bm_rt=$bm_rt}]")[0],numKeys=property.kf?data.k.length:0,active=!this.data||this.data.hd!==!0,wiggle=(function e(t,n){var i,s,a=this.pv.length?this.pv.length:1,o=createTypedArray("float32",a);t=5;var l=Math.floor(time*t);for(i=0,s=0;i<l;){for(s=0;s<a;s+=1)o[s]+=-n+n*2*BMMath.random();i+=1}var c=time*t,u=c-Math.floor(c),d=createTypedArray("float32",a);if(a>1){for(s=0;s<a;s+=1)d[s]=this.pv[s]+o[s]+(-n+n*2*BMMath.random())*u;return d}return this.pv+o[0]+(-n+n*2*BMMath.random())*u}).bind(this);thisProperty.loopIn&&(loopIn=thisProperty.loopIn.bind(thisProperty),loop_in=loopIn),thisProperty.loopOut&&(loopOut=thisProperty.loopOut.bind(thisProperty),loop_out=loopOut),thisProperty.smooth&&(smooth=thisProperty.smooth.bind(thisProperty));function loopInDuration(e,t){return loopIn(e,t,!0)}function loopOutDuration(e,t){return loopOut(e,t,!0)}this.getValueAtTime&&(valueAtTime=this.getValueAtTime.bind(this)),this.getVelocityAtTime&&(velocityAtTime=this.getVelocityAtTime.bind(this));var comp=elem.comp.globalData.projectInterface.bind(elem.comp.globalData.projectInterface);function lookAt(e,t){var n=[t[0]-e[0],t[1]-e[1],t[2]-e[2]],i=Math.atan2(n[0],Math.sqrt(n[1]*n[1]+n[2]*n[2]))/degToRads,s=-Math.atan2(n[1],n[2])/degToRads;return[s,i,0]}function easeOut(e,t,n,i,s){return applyEase(easeOutBez,e,t,n,i,s)}function easeIn(e,t,n,i,s){return applyEase(easeInBez,e,t,n,i,s)}function ease(e,t,n,i,s){return applyEase(easeInOutBez,e,t,n,i,s)}function applyEase(e,t,n,i,s,a){s===void 0?(s=n,a=i):t=(t-n)/(i-n),t>1?t=1:t<0&&(t=0);var o=e(t);if($bm_isInstanceOfArray(s)){var l,c=s.length,u=createTypedArray("float32",c);for(l=0;l<c;l+=1)u[l]=(a[l]-s[l])*o+s[l];return u}return(a-s)*o+s}function nearestKey(e){var t,n=data.k.length,i,s;if(!data.k.length||typeof data.k[0]=="number")i=0,s=0;else if(i=-1,e*=elem.comp.globalData.frameRate,e<data.k[0].t)i=1,s=data.k[0].t;else{for(t=0;t<n-1;t+=1)if(e===data.k[t].t){i=t+1,s=data.k[t].t;break}else if(e>data.k[t].t&&e<data.k[t+1].t){e-data.k[t].t>data.k[t+1].t-e?(i=t+2,s=data.k[t+1].t):(i=t+1,s=data.k[t].t);break}i===-1&&(i=t+1,s=data.k[t].t)}var a={};return a.index=i,a.time=s/elem.comp.globalData.frameRate,a}function key(e){var t,n,i;if(!data.k.length||typeof data.k[0]=="number")throw new Error("The property has no keyframe at index "+e);e-=1,t={time:data.k[e].t/elem.comp.globalData.frameRate,value:[]};var s=Object.prototype.hasOwnProperty.call(data.k[e],"s")?data.k[e].s:data.k[e-1].e;for(i=s.length,n=0;n<i;n+=1)t[n]=s[n],t.value[n]=s[n];return t}function framesToTime(e,t){return t||(t=elem.comp.globalData.frameRate),e/t}function timeToFrames(e,t){return!e&&e!==0&&(e=time),t||(t=elem.comp.globalData.frameRate),e*t}function seedRandom(e){BMMath.seedrandom(randSeed+e)}function sourceRectAtTime(){return elem.sourceRectAtTime()}function substring(e,t){return typeof value=="string"?t===void 0?value.substring(e):value.substring(e,t):""}function substr(e,t){return typeof value=="string"?t===void 0?value.substr(e):value.substr(e,t):""}function posterizeTime(e){time=e===0?0:Math.floor(time*e)/e,value=valueAtTime(time)}var time,velocity,value,text,textIndex,textTotal,selectorValue,index=elem.data.ind,hasParent=!!(elem.hierarchy&&elem.hierarchy.length),parent,randSeed=Math.floor(Math.random()*1e6),globalData=elem.globalData;function executeExpression(e){return value=e,this.frameExpressionId===elem.globalData.frameId&&this.propType!=="textSelector"?value:(this.propType==="textSelector"&&(textIndex=this.textIndex,textTotal=this.textTotal,selectorValue=this.selectorValue),thisLayer||(text=elem.layerInterface.text,thisLayer=elem.layerInterface,thisComp=elem.comp.compInterface,toWorld=thisLayer.toWorld.bind(thisLayer),fromWorld=thisLayer.fromWorld.bind(thisLayer),fromComp=thisLayer.fromComp.bind(thisLayer),toComp=thisLayer.toComp.bind(thisLayer),mask=thisLayer.mask?thisLayer.mask.bind(thisLayer):null,fromCompToSurface=fromComp),transform||(transform=elem.layerInterface("ADBE Transform Group"),$bm_transform=transform,transform&&(anchorPoint=transform.anchorPoint)),elemType===4&&!content&&(content=thisLayer("ADBE Root Vectors Group")),effect||(effect=thisLayer(4)),hasParent=!!(elem.hierarchy&&elem.hierarchy.length),hasParent&&!parent&&(parent=elem.hierarchy[0].layerInterface),time=this.comp.renderedFrame/this.comp.globalData.frameRate,_needsRandom&&seedRandom(randSeed+time),needsVelocity&&(velocity=velocityAtTime(time)),expression_function(),this.frameExpressionId=elem.globalData.frameId,scoped_bm_rt=scoped_bm_rt.propType===propTypes.SHAPE?scoped_bm_rt.v:scoped_bm_rt,scoped_bm_rt)}return executeExpression.__preventDeadCodeRemoval=[$bm_transform,anchorPoint,time,velocity,inPoint,outPoint,width,height,name,loop_in,loop_out,smooth,toComp,fromCompToSurface,toWorld,fromWorld,mask,position,rotation,scale,thisComp,numKeys,active,wiggle,loopInDuration,loopOutDuration,comp,lookAt,easeOut,easeIn,ease,nearestKey,key,text,textIndex,textTotal,selectorValue,framesToTime,timeToFrames,sourceRectAtTime,substring,substr,posterizeTime,index,globalData],executeExpression}return ob.initiateExpression=initiateExpression,ob.__preventDeadCodeRemoval=[window,document,XMLHttpRequest,fetch,frames,$bm_neg,add,$bm_sum,$bm_sub,$bm_mul,$bm_div,$bm_mod,clamp,radians_to_degrees,degreesToRadians,degrees_to_radians,normalize,rgbToHsl,hslToRgb,linear,random,createPath,_lottieGlobal],ob.resetFrame=resetFrame,ob})(),Expressions=(function(){var e={};e.initExpressions=t,e.resetFrame=ExpressionManager.resetFrame;function t(n){var i=0,s=[];function a(){i+=1}function o(){i-=1,i===0&&c()}function l(u){s.indexOf(u)===-1&&s.push(u)}function c(){var u,d=s.length;for(u=0;u<d;u+=1)s[u].release();s.length=0}n.renderer.compInterface=CompExpressionInterface(n.renderer),n.renderer.globalData.projectInterface.registerComposition(n.renderer),n.renderer.globalData.pushExpression=a,n.renderer.globalData.popExpression=o,n.renderer.globalData.registerExpressionProperty=l}return e})(),MaskManagerInterface=(function(){function e(n,i){this._mask=n,this._data=i}Object.defineProperty(e.prototype,"maskPath",{get:function(){return this._mask.prop.k&&this._mask.prop.getValue(),this._mask.prop}}),Object.defineProperty(e.prototype,"maskOpacity",{get:function(){return this._mask.op.k&&this._mask.op.getValue(),this._mask.op.v*100}});var t=function(i){var s=createSizedArray(i.viewData.length),a,o=i.viewData.length;for(a=0;a<o;a+=1)s[a]=new e(i.viewData[a],i.masksProperties[a]);var l=function(u){for(a=0;a<o;){if(i.masksProperties[a].nm===u)return s[a];a+=1}return null};return l};return t})(),ExpressionPropertyInterface=(function(){var e={pv:0,v:0,mult:1},t={pv:[0,0,0],v:[0,0,0],mult:1};function n(o,l,c){Object.defineProperty(o,"velocity",{get:function(){return l.getVelocityAtTime(l.comp.currentFrame)}}),o.numKeys=l.keyframes?l.keyframes.length:0,o.key=function(u){if(!o.numKeys)return 0;var d="";"s"in l.keyframes[u-1]?d=l.keyframes[u-1].s:"e"in l.keyframes[u-2]?d=l.keyframes[u-2].e:d=l.keyframes[u-2].s;var p=c==="unidimensional"?new Number(d):Object.assign({},d);return p.time=l.keyframes[u-1].t/l.elem.comp.globalData.frameRate,p.value=c==="unidimensional"?d[0]:d,p},o.valueAtTime=l.getValueAtTime,o.speedAtTime=l.getSpeedAtTime,o.velocityAtTime=l.getVelocityAtTime,o.propertyGroup=l.propertyGroup}function i(o){(!o||!("pv"in o))&&(o=e);var l=1/o.mult,c=o.pv*l,u=new Number(c);return u.value=c,n(u,o,"unidimensional"),function(){return o.k&&o.getValue(),c=o.v*l,u.value!==c&&(u=new Number(c),u.value=c,u[0]=c,n(u,o,"unidimensional")),u}}function s(o){(!o||!("pv"in o))&&(o=t);var l=1/o.mult,c=o.data&&o.data.l||o.pv.length,u=createTypedArray("float32",c),d=createTypedArray("float32",c);return u.value=d,n(u,o,"multidimensional"),function(){o.k&&o.getValue();for(var p=0;p<c;p+=1)d[p]=o.v[p]*l,u[p]=d[p];return u}}function a(){return e}return function(o){return o?o.propType==="unidimensional"?i(o):s(o):a}})(),TransformExpressionInterface=(function(){return function(e){function t(o){switch(o){case"scale":case"Scale":case"ADBE Scale":case 6:return t.scale;case"rotation":case"Rotation":case"ADBE Rotation":case"ADBE Rotate Z":case 10:return t.rotation;case"ADBE Rotate X":return t.xRotation;case"ADBE Rotate Y":return t.yRotation;case"position":case"Position":case"ADBE Position":case 2:return t.position;case"ADBE Position_0":return t.xPosition;case"ADBE Position_1":return t.yPosition;case"ADBE Position_2":return t.zPosition;case"anchorPoint":case"AnchorPoint":case"Anchor Point":case"ADBE AnchorPoint":case 1:return t.anchorPoint;case"opacity":case"Opacity":case 11:return t.opacity;default:return null}}Object.defineProperty(t,"rotation",{get:ExpressionPropertyInterface(e.r||e.rz)}),Object.defineProperty(t,"zRotation",{get:ExpressionPropertyInterface(e.rz||e.r)}),Object.defineProperty(t,"xRotation",{get:ExpressionPropertyInterface(e.rx)}),Object.defineProperty(t,"yRotation",{get:ExpressionPropertyInterface(e.ry)}),Object.defineProperty(t,"scale",{get:ExpressionPropertyInterface(e.s)});var n,i,s,a;return e.p?a=ExpressionPropertyInterface(e.p):(n=ExpressionPropertyInterface(e.px),i=ExpressionPropertyInterface(e.py),e.pz&&(s=ExpressionPropertyInterface(e.pz))),Object.defineProperty(t,"position",{get:function(){return e.p?a():[n(),i(),s?s():0]}}),Object.defineProperty(t,"xPosition",{get:ExpressionPropertyInterface(e.px)}),Object.defineProperty(t,"yPosition",{get:ExpressionPropertyInterface(e.py)}),Object.defineProperty(t,"zPosition",{get:ExpressionPropertyInterface(e.pz)}),Object.defineProperty(t,"anchorPoint",{get:ExpressionPropertyInterface(e.a)}),Object.defineProperty(t,"opacity",{get:ExpressionPropertyInterface(e.o)}),Object.defineProperty(t,"skew",{get:ExpressionPropertyInterface(e.sk)}),Object.defineProperty(t,"skewAxis",{get:ExpressionPropertyInterface(e.sa)}),Object.defineProperty(t,"orientation",{get:ExpressionPropertyInterface(e.or)}),t}})(),LayerExpressionInterface=(function(){function e(u){var d=new Matrix;if(u!==void 0){var p=this._elem.finalTransform.mProp.getValueAtTime(u);p.clone(d)}else{var h=this._elem.finalTransform.mProp;h.applyToMatrix(d)}return d}function t(u,d){var p=this.getMatrix(d);return p.props[12]=0,p.props[13]=0,p.props[14]=0,this.applyPoint(p,u)}function n(u,d){var p=this.getMatrix(d);return this.applyPoint(p,u)}function i(u,d){var p=this.getMatrix(d);return p.props[12]=0,p.props[13]=0,p.props[14]=0,this.invertPoint(p,u)}function s(u,d){var p=this.getMatrix(d);return this.invertPoint(p,u)}function a(u,d){if(this._elem.hierarchy&&this._elem.hierarchy.length){var p,h=this._elem.hierarchy.length;for(p=0;p<h;p+=1)this._elem.hierarchy[p].finalTransform.mProp.applyToMatrix(u)}return u.applyToPointArray(d[0],d[1],d[2]||0)}function o(u,d){if(this._elem.hierarchy&&this._elem.hierarchy.length){var p,h=this._elem.hierarchy.length;for(p=0;p<h;p+=1)this._elem.hierarchy[p].finalTransform.mProp.applyToMatrix(u)}return u.inversePoint(d)}function l(u){var d=new Matrix;if(d.reset(),this._elem.finalTransform.mProp.applyToMatrix(d),this._elem.hierarchy&&this._elem.hierarchy.length){var p,h=this._elem.hierarchy.length;for(p=0;p<h;p+=1)this._elem.hierarchy[p].finalTransform.mProp.applyToMatrix(d);return d.inversePoint(u)}return d.inversePoint(u)}function c(){return[1,1,1,1]}return function(u){var d;function p(m){y.mask=new MaskManagerInterface(m,u)}function h(m){y.effect=m}function y(m){switch(m){case"ADBE Root Vectors Group":case"Contents":case 2:return y.shapeInterface;case 1:case 6:case"Transform":case"transform":case"ADBE Transform Group":return d;case 4:case"ADBE Effect Parade":case"effects":case"Effects":return y.effect;case"ADBE Text Properties":return y.textInterface;default:return null}}y.getMatrix=e,y.invertPoint=o,y.applyPoint=a,y.toWorld=n,y.toWorldVec=t,y.fromWorld=s,y.fromWorldVec=i,y.toComp=n,y.fromComp=l,y.sampleImage=c,y.sourceRectAtTime=u.sourceRectAtTime.bind(u),y._elem=u,d=TransformExpressionInterface(u.finalTransform.mProp);var f=getDescriptor(d,"anchorPoint");return Object.defineProperties(y,{hasParent:{get:function(){return u.hierarchy.length}},parent:{get:function(){return u.hierarchy[0].layerInterface}},rotation:getDescriptor(d,"rotation"),scale:getDescriptor(d,"scale"),position:getDescriptor(d,"position"),opacity:getDescriptor(d,"opacity"),anchorPoint:f,anchor_point:f,transform:{get:function(){return d}},active:{get:function(){return u.isInRange}}}),y.startTime=u.data.st,y.index=u.data.ind,y.source=u.data.refId,y.height=u.data.ty===0?u.data.h:100,y.width=u.data.ty===0?u.data.w:100,y.inPoint=u.data.ip/u.comp.globalData.frameRate,y.outPoint=u.data.op/u.comp.globalData.frameRate,y._name=u.data.nm,y.registerMaskInterface=p,y.registerEffectsInterface=h,y}})(),propertyGroupFactory=(function(){return function(e,t){return function(n){return n=n===void 0?1:n,n<=0?e:t(n-1)}}})(),PropertyInterface=(function(){return function(e,t){var n={_name:e};function i(s){return s=s===void 0?1:s,s<=0?n:t(s-1)}return i}})(),EffectsExpressionInterface=(function(){var e={createEffectsInterface:t};function t(s,a){if(s.effectsManager){var o=[],l=s.data.ef,c,u=s.effectsManager.effectElements.length;for(c=0;c<u;c+=1)o.push(n(l[c],s.effectsManager.effectElements[c],a,s));var d=s.data.ef||[],p=function(y){for(c=0,u=d.length;c<u;){if(y===d[c].nm||y===d[c].mn||y===d[c].ix)return o[c];c+=1}return null};return Object.defineProperty(p,"numProperties",{get:function(){return d.length}}),p}return null}function n(s,a,o,l){function c(y){for(var f=s.ef,m=0,C=f.length;m<C;){if(y===f[m].nm||y===f[m].mn||y===f[m].ix)return f[m].ty===5?d[m]:d[m]();m+=1}throw new Error}var u=propertyGroupFactory(c,o),d=[],p,h=s.ef.length;for(p=0;p<h;p+=1)s.ef[p].ty===5?d.push(n(s.ef[p],a.effectElements[p],a.effectElements[p].propertyGroup,l)):d.push(i(a.effectElements[p],s.ef[p].ty,l,u));return s.mn==="ADBE Color Control"&&Object.defineProperty(c,"color",{get:function(){return d[0]()}}),Object.defineProperties(c,{numProperties:{get:function(){return s.np}},_name:{value:s.nm},propertyGroup:{value:u}}),c.enabled=s.en!==0,c.active=c.enabled,c}function i(s,a,o,l){var c=ExpressionPropertyInterface(s.p);function u(){return a===10?o.comp.compInterface(s.p.v):c()}return s.p.setGroupProperty&&s.p.setGroupProperty(PropertyInterface("",l)),u}return e})(),ShapePathInterface=(function(){return function(t,n,i){var s=n.sh;function a(l){return l==="Shape"||l==="shape"||l==="Path"||l==="path"||l==="ADBE Vector Shape"||l===2?a.path:null}var o=propertyGroupFactory(a,i);return s.setGroupProperty(PropertyInterface("Path",o)),Object.defineProperties(a,{path:{get:function(){return s.k&&s.getValue(),s}},shape:{get:function(){return s.k&&s.getValue(),s}},_name:{value:t.nm},ix:{value:t.ix},propertyIndex:{value:t.ix},mn:{value:t.mn},propertyGroup:{value:i}}),a}})(),ShapeExpressionInterface=(function(){function e(f,m,C){var g=[],b,v=f?f.length:0;for(b=0;b<v;b+=1)f[b].ty==="gr"?g.push(n(f[b],m[b],C)):f[b].ty==="fl"?g.push(i(f[b],m[b],C)):f[b].ty==="st"?g.push(o(f[b],m[b],C)):f[b].ty==="tm"?g.push(l(f[b],m[b],C)):f[b].ty==="tr"||(f[b].ty==="el"?g.push(u(f[b],m[b],C)):f[b].ty==="sr"?g.push(d(f[b],m[b],C)):f[b].ty==="sh"?g.push(ShapePathInterface(f[b],m[b],C)):f[b].ty==="rc"?g.push(p(f[b],m[b],C)):f[b].ty==="rd"?g.push(h(f[b],m[b],C)):f[b].ty==="rp"?g.push(y(f[b],m[b],C)):f[b].ty==="gf"?g.push(s(f[b],m[b],C)):g.push(a(f[b],m[b])));return g}function t(f,m,C){var g,b=function(w){for(var E=0,_=g.length;E<_;){if(g[E]._name===w||g[E].mn===w||g[E].propertyIndex===w||g[E].ix===w||g[E].ind===w)return g[E];E+=1}return typeof w=="number"?g[w-1]:null};b.propertyGroup=propertyGroupFactory(b,C),g=e(f.it,m.it,b.propertyGroup),b.numProperties=g.length;var v=c(f.it[f.it.length-1],m.it[m.it.length-1],b.propertyGroup);return b.transform=v,b.propertyIndex=f.cix,b._name=f.nm,b}function n(f,m,C){var g=function(w){switch(w){case"ADBE Vectors Group":case"Contents":case 2:return g.content;default:return g.transform}};g.propertyGroup=propertyGroupFactory(g,C);var b=t(f,m,g.propertyGroup),v=c(f.it[f.it.length-1],m.it[m.it.length-1],g.propertyGroup);return g.content=b,g.transform=v,Object.defineProperty(g,"_name",{get:function(){return f.nm}}),g.numProperties=f.np,g.propertyIndex=f.ix,g.nm=f.nm,g.mn=f.mn,g}function i(f,m,C){function g(b){return b==="Color"||b==="color"?g.color:b==="Opacity"||b==="opacity"?g.opacity:null}return Object.defineProperties(g,{color:{get:ExpressionPropertyInterface(m.c)},opacity:{get:ExpressionPropertyInterface(m.o)},_name:{value:f.nm},mn:{value:f.mn}}),m.c.setGroupProperty(PropertyInterface("Color",C)),m.o.setGroupProperty(PropertyInterface("Opacity",C)),g}function s(f,m,C){function g(b){return b==="Start Point"||b==="start point"?g.startPoint:b==="End Point"||b==="end point"?g.endPoint:b==="Opacity"||b==="opacity"?g.opacity:null}return Object.defineProperties(g,{startPoint:{get:ExpressionPropertyInterface(m.s)},endPoint:{get:ExpressionPropertyInterface(m.e)},opacity:{get:ExpressionPropertyInterface(m.o)},type:{get:function(){return"a"}},_name:{value:f.nm},mn:{value:f.mn}}),m.s.setGroupProperty(PropertyInterface("Start Point",C)),m.e.setGroupProperty(PropertyInterface("End Point",C)),m.o.setGroupProperty(PropertyInterface("Opacity",C)),g}function a(){function f(){return null}return f}function o(f,m,C){var g=propertyGroupFactory(_,C),b=propertyGroupFactory(E,g);function v(k){Object.defineProperty(E,f.d[k].nm,{get:ExpressionPropertyInterface(m.d.dataProps[k].p)})}var N,w=f.d?f.d.length:0,E={};for(N=0;N<w;N+=1)v(N),m.d.dataProps[N].p.setGroupProperty(b);function _(k){return k==="Color"||k==="color"?_.color:k==="Opacity"||k==="opacity"?_.opacity:k==="Stroke Width"||k==="stroke width"?_.strokeWidth:null}return Object.defineProperties(_,{color:{get:ExpressionPropertyInterface(m.c)},opacity:{get:ExpressionPropertyInterface(m.o)},strokeWidth:{get:ExpressionPropertyInterface(m.w)},dash:{get:function(){return E}},_name:{value:f.nm},mn:{value:f.mn}}),m.c.setGroupProperty(PropertyInterface("Color",g)),m.o.setGroupProperty(PropertyInterface("Opacity",g)),m.w.setGroupProperty(PropertyInterface("Stroke Width",g)),_}function l(f,m,C){function g(v){return v===f.e.ix||v==="End"||v==="end"?g.end:v===f.s.ix?g.start:v===f.o.ix?g.offset:null}var b=propertyGroupFactory(g,C);return g.propertyIndex=f.ix,m.s.setGroupProperty(PropertyInterface("Start",b)),m.e.setGroupProperty(PropertyInterface("End",b)),m.o.setGroupProperty(PropertyInterface("Offset",b)),g.propertyIndex=f.ix,g.propertyGroup=C,Object.defineProperties(g,{start:{get:ExpressionPropertyInterface(m.s)},end:{get:ExpressionPropertyInterface(m.e)},offset:{get:ExpressionPropertyInterface(m.o)},_name:{value:f.nm}}),g.mn=f.mn,g}function c(f,m,C){function g(v){return f.a.ix===v||v==="Anchor Point"?g.anchorPoint:f.o.ix===v||v==="Opacity"?g.opacity:f.p.ix===v||v==="Position"?g.position:f.r.ix===v||v==="Rotation"||v==="ADBE Vector Rotation"?g.rotation:f.s.ix===v||v==="Scale"?g.scale:f.sk&&f.sk.ix===v||v==="Skew"?g.skew:f.sa&&f.sa.ix===v||v==="Skew Axis"?g.skewAxis:null}var b=propertyGroupFactory(g,C);return m.transform.mProps.o.setGroupProperty(PropertyInterface("Opacity",b)),m.transform.mProps.p.setGroupProperty(PropertyInterface("Position",b)),m.transform.mProps.a.setGroupProperty(PropertyInterface("Anchor Point",b)),m.transform.mProps.s.setGroupProperty(PropertyInterface("Scale",b)),m.transform.mProps.r.setGroupProperty(PropertyInterface("Rotation",b)),m.transform.mProps.sk&&(m.transform.mProps.sk.setGroupProperty(PropertyInterface("Skew",b)),m.transform.mProps.sa.setGroupProperty(PropertyInterface("Skew Angle",b))),m.transform.op.setGroupProperty(PropertyInterface("Opacity",b)),Object.defineProperties(g,{opacity:{get:ExpressionPropertyInterface(m.transform.mProps.o)},position:{get:ExpressionPropertyInterface(m.transform.mProps.p)},anchorPoint:{get:ExpressionPropertyInterface(m.transform.mProps.a)},scale:{get:ExpressionPropertyInterface(m.transform.mProps.s)},rotation:{get:ExpressionPropertyInterface(m.transform.mProps.r)},skew:{get:ExpressionPropertyInterface(m.transform.mProps.sk)},skewAxis:{get:ExpressionPropertyInterface(m.transform.mProps.sa)},_name:{value:f.nm}}),g.ty="tr",g.mn=f.mn,g.propertyGroup=C,g}function u(f,m,C){function g(N){return f.p.ix===N?g.position:f.s.ix===N?g.size:null}var b=propertyGroupFactory(g,C);g.propertyIndex=f.ix;var v=m.sh.ty==="tm"?m.sh.prop:m.sh;return v.s.setGroupProperty(PropertyInterface("Size",b)),v.p.setGroupProperty(PropertyInterface("Position",b)),Object.defineProperties(g,{size:{get:ExpressionPropertyInterface(v.s)},position:{get:ExpressionPropertyInterface(v.p)},_name:{value:f.nm}}),g.mn=f.mn,g}function d(f,m,C){function g(N){return f.p.ix===N?g.position:f.r.ix===N?g.rotation:f.pt.ix===N?g.points:f.or.ix===N||N==="ADBE Vector Star Outer Radius"?g.outerRadius:f.os.ix===N?g.outerRoundness:f.ir&&(f.ir.ix===N||N==="ADBE Vector Star Inner Radius")?g.innerRadius:f.is&&f.is.ix===N?g.innerRoundness:null}var b=propertyGroupFactory(g,C),v=m.sh.ty==="tm"?m.sh.prop:m.sh;return g.propertyIndex=f.ix,v.or.setGroupProperty(PropertyInterface("Outer Radius",b)),v.os.setGroupProperty(PropertyInterface("Outer Roundness",b)),v.pt.setGroupProperty(PropertyInterface("Points",b)),v.p.setGroupProperty(PropertyInterface("Position",b)),v.r.setGroupProperty(PropertyInterface("Rotation",b)),f.ir&&(v.ir.setGroupProperty(PropertyInterface("Inner Radius",b)),v.is.setGroupProperty(PropertyInterface("Inner Roundness",b))),Object.defineProperties(g,{position:{get:ExpressionPropertyInterface(v.p)},rotation:{get:ExpressionPropertyInterface(v.r)},points:{get:ExpressionPropertyInterface(v.pt)},outerRadius:{get:ExpressionPropertyInterface(v.or)},outerRoundness:{get:ExpressionPropertyInterface(v.os)},innerRadius:{get:ExpressionPropertyInterface(v.ir)},innerRoundness:{get:ExpressionPropertyInterface(v.is)},_name:{value:f.nm}}),g.mn=f.mn,g}function p(f,m,C){function g(N){return f.p.ix===N?g.position:f.r.ix===N?g.roundness:f.s.ix===N||N==="Size"||N==="ADBE Vector Rect Size"?g.size:null}var b=propertyGroupFactory(g,C),v=m.sh.ty==="tm"?m.sh.prop:m.sh;return g.propertyIndex=f.ix,v.p.setGroupProperty(PropertyInterface("Position",b)),v.s.setGroupProperty(PropertyInterface("Size",b)),v.r.setGroupProperty(PropertyInterface("Rotation",b)),Object.defineProperties(g,{position:{get:ExpressionPropertyInterface(v.p)},roundness:{get:ExpressionPropertyInterface(v.r)},size:{get:ExpressionPropertyInterface(v.s)},_name:{value:f.nm}}),g.mn=f.mn,g}function h(f,m,C){function g(N){return f.r.ix===N||N==="Round Corners 1"?g.radius:null}var b=propertyGroupFactory(g,C),v=m;return g.propertyIndex=f.ix,v.rd.setGroupProperty(PropertyInterface("Radius",b)),Object.defineProperties(g,{radius:{get:ExpressionPropertyInterface(v.rd)},_name:{value:f.nm}}),g.mn=f.mn,g}function y(f,m,C){function g(N){return f.c.ix===N||N==="Copies"?g.copies:f.o.ix===N||N==="Offset"?g.offset:null}var b=propertyGroupFactory(g,C),v=m;return g.propertyIndex=f.ix,v.c.setGroupProperty(PropertyInterface("Copies",b)),v.o.setGroupProperty(PropertyInterface("Offset",b)),Object.defineProperties(g,{copies:{get:ExpressionPropertyInterface(v.c)},offset:{get:ExpressionPropertyInterface(v.o)},_name:{value:f.nm}}),g.mn=f.mn,g}return function(f,m,C){var g;function b(N){if(typeof N=="number")return N=N===void 0?1:N,N===0?C:g[N-1];for(var w=0,E=g.length;w<E;){if(g[w]._name===N)return g[w];w+=1}return null}function v(){return C}return b.propertyGroup=propertyGroupFactory(b,v),g=e(f,m,b.propertyGroup),b.numProperties=g.length,b._name="Contents",b}})(),TextExpressionInterface=(function(){return function(e){var t;function n(i){return i==="ADBE Text Document"?n.sourceText:null}return Object.defineProperty(n,"sourceText",{get:function(){e.textProperty.getValue();var s=e.textProperty.currentData.t;return(!t||s!==t.value)&&(t=new String(s),t.value=s||new String(s),Object.defineProperty(t,"style",{get:function(){return{fillColor:e.textProperty.currentData.fc}}})),t}}),n}})();function _typeof(e){"@babel/helpers - typeof";return _typeof=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(e)}var FootageInterface=(function(){var e=function(i){var s="",a=i.getFootageData();function o(){return s="",a=i.getFootageData(),l}function l(c){if(a[c])return s=c,a=a[c],_typeof(a)==="object"?l:a;var u=c.indexOf(s);if(u!==-1){var d=parseInt(c.substr(u+s.length),10);return a=a[d],_typeof(a)==="object"?l:a}return""}return o},t=function(i){function s(a){return a==="Outline"?s.outlineInterface():null}return s._name="Outline",s.outlineInterface=e(i),s};return function(n){function i(s){return s==="Data"?i.dataInterface:null}return i._name="Data",i.dataInterface=t(n),i}})(),interfaces={layer:LayerExpressionInterface,effects:EffectsExpressionInterface,comp:CompExpressionInterface,shape:ShapeExpressionInterface,text:TextExpressionInterface,footage:FootageInterface};function getInterface(e){return interfaces[e]||null}var expressionHelpers=(function(){function e(o,l,c){l.x&&(c.k=!0,c.x=!0,c.initiateExpression=ExpressionManager.initiateExpression,c.effectsSequence.push(c.initiateExpression(o,l,c).bind(c)))}function t(o){return o*=this.elem.globalData.frameRate,o-=this.offsetTime,o!==this._cachingAtTime.lastFrame&&(this._cachingAtTime.lastIndex=this._cachingAtTime.lastFrame<o?this._cachingAtTime.lastIndex:0,this._cachingAtTime.value=this.interpolateValue(o,this._cachingAtTime),this._cachingAtTime.lastFrame=o),this._cachingAtTime.value}function n(o){var l=-.01,c=this.getValueAtTime(o),u=this.getValueAtTime(o+l),d=0;if(c.length){var p;for(p=0;p<c.length;p+=1)d+=Math.pow(u[p]-c[p],2);d=Math.sqrt(d)*100}else d=0;return d}function i(o){if(this.vel!==void 0)return this.vel;var l=-.001,c=this.getValueAtTime(o),u=this.getValueAtTime(o+l),d;if(c.length){d=createTypedArray("float32",c.length);var p;for(p=0;p<c.length;p+=1)d[p]=(u[p]-c[p])/l}else d=(u-c)/l;return d}function s(){return this.pv}function a(o){this.propertyGroup=o}return{searchExpressions:e,getSpeedAtTime:n,getVelocityAtTime:i,getValueAtTime:t,getStaticValueAtTime:s,setGroupProperty:a}})();function addPropertyDecorator(){function e(h,y,f){if(!this.k||!this.keyframes)return this.pv;h=h?h.toLowerCase():"";var m=this.comp.renderedFrame,C=this.keyframes,g=C[C.length-1].t;if(m<=g)return this.pv;var b,v;f?(y?b=Math.abs(g-this.elem.comp.globalData.frameRate*y):b=Math.max(0,g-this.elem.data.ip),v=g-b):((!y||y>C.length-1)&&(y=C.length-1),v=C[C.length-1-y].t,b=g-v);var N,w,E;if(h==="pingpong"){var _=Math.floor((m-v)/b);if(_%2!==0)return this.getValueAtTime((b-(m-v)%b+v)/this.comp.globalData.frameRate,0)}else if(h==="offset"){var k=this.getValueAtTime(v/this.comp.globalData.frameRate,0),A=this.getValueAtTime(g/this.comp.globalData.frameRate,0),F=this.getValueAtTime(((m-v)%b+v)/this.comp.globalData.frameRate,0),B=Math.floor((m-v)/b);if(this.pv.length){for(E=new Array(k.length),w=E.length,N=0;N<w;N+=1)E[N]=(A[N]-k[N])*B+F[N];return E}return(A-k)*B+F}else if(h==="continue"){var I=this.getValueAtTime(g/this.comp.globalData.frameRate,0),D=this.getValueAtTime((g-.001)/this.comp.globalData.frameRate,0);if(this.pv.length){for(E=new Array(I.length),w=E.length,N=0;N<w;N+=1)E[N]=I[N]+(I[N]-D[N])*((m-g)/this.comp.globalData.frameRate)/5e-4;return E}return I+(I-D)*((m-g)/.001)}return this.getValueAtTime(((m-v)%b+v)/this.comp.globalData.frameRate,0)}function t(h,y,f){if(!this.k)return this.pv;h=h?h.toLowerCase():"";var m=this.comp.renderedFrame,C=this.keyframes,g=C[0].t;if(m>=g)return this.pv;var b,v;f?(y?b=Math.abs(this.elem.comp.globalData.frameRate*y):b=Math.max(0,this.elem.data.op-g),v=g+b):((!y||y>C.length-1)&&(y=C.length-1),v=C[y].t,b=v-g);var N,w,E;if(h==="pingpong"){var _=Math.floor((g-m)/b);if(_%2===0)return this.getValueAtTime(((g-m)%b+g)/this.comp.globalData.frameRate,0)}else if(h==="offset"){var k=this.getValueAtTime(g/this.comp.globalData.frameRate,0),A=this.getValueAtTime(v/this.comp.globalData.frameRate,0),F=this.getValueAtTime((b-(g-m)%b+g)/this.comp.globalData.frameRate,0),B=Math.floor((g-m)/b)+1;if(this.pv.length){for(E=new Array(k.length),w=E.length,N=0;N<w;N+=1)E[N]=F[N]-(A[N]-k[N])*B;return E}return F-(A-k)*B}else if(h==="continue"){var I=this.getValueAtTime(g/this.comp.globalData.frameRate,0),D=this.getValueAtTime((g+.001)/this.comp.globalData.frameRate,0);if(this.pv.length){for(E=new Array(I.length),w=E.length,N=0;N<w;N+=1)E[N]=I[N]+(I[N]-D[N])*(g-m)/.001;return E}return I+(I-D)*(g-m)/.001}return this.getValueAtTime((b-((g-m)%b+g))/this.comp.globalData.frameRate,0)}function n(h,y){if(!this.k)return this.pv;if(h=(h||.4)*.5,y=Math.floor(y||5),y<=1)return this.pv;var f=this.comp.renderedFrame/this.comp.globalData.frameRate,m=f-h,C=f+h,g=y>1?(C-m)/(y-1):1,b=0,v=0,N;this.pv.length?N=createTypedArray("float32",this.pv.length):N=0;for(var w;b<y;){if(w=this.getValueAtTime(m+b*g),this.pv.length)for(v=0;v<this.pv.length;v+=1)N[v]+=w[v];else N+=w;b+=1}if(this.pv.length)for(v=0;v<this.pv.length;v+=1)N[v]/=y;else N/=y;return N}function i(h){this._transformCachingAtTime||(this._transformCachingAtTime={v:new Matrix});var y=this._transformCachingAtTime.v;if(y.cloneFromProps(this.pre.props),this.appliedTransformations<1){var f=this.a.getValueAtTime(h);y.translate(-f[0]*this.a.mult,-f[1]*this.a.mult,f[2]*this.a.mult)}if(this.appliedTransformations<2){var m=this.s.getValueAtTime(h);y.scale(m[0]*this.s.mult,m[1]*this.s.mult,m[2]*this.s.mult)}if(this.sk&&this.appliedTransformations<3){var C=this.sk.getValueAtTime(h),g=this.sa.getValueAtTime(h);y.skewFromAxis(-C*this.sk.mult,g*this.sa.mult)}if(this.r&&this.appliedTransformations<4){var b=this.r.getValueAtTime(h);y.rotate(-b*this.r.mult)}else if(!this.r&&this.appliedTransformations<4){var v=this.rz.getValueAtTime(h),N=this.ry.getValueAtTime(h),w=this.rx.getValueAtTime(h),E=this.or.getValueAtTime(h);y.rotateZ(-v*this.rz.mult).rotateY(N*this.ry.mult).rotateX(w*this.rx.mult).rotateZ(-E[2]*this.or.mult).rotateY(E[1]*this.or.mult).rotateX(E[0]*this.or.mult)}if(this.data.p&&this.data.p.s){var _=this.px.getValueAtTime(h),k=this.py.getValueAtTime(h);if(this.data.p.z){var A=this.pz.getValueAtTime(h);y.translate(_*this.px.mult,k*this.py.mult,-A*this.pz.mult)}else y.translate(_*this.px.mult,k*this.py.mult,0)}else{var F=this.p.getValueAtTime(h);y.translate(F[0]*this.p.mult,F[1]*this.p.mult,-F[2]*this.p.mult)}return y}function s(){return this.v.clone(new Matrix)}var a=TransformPropertyFactory.getTransformProperty;TransformPropertyFactory.getTransformProperty=function(h,y,f){var m=a(h,y,f);return m.dynamicProperties.length?m.getValueAtTime=i.bind(m):m.getValueAtTime=s.bind(m),m.setGroupProperty=expressionHelpers.setGroupProperty,m};var o=PropertyFactory.getProp;PropertyFactory.getProp=function(h,y,f,m,C){var g=o(h,y,f,m,C);g.kf?g.getValueAtTime=expressionHelpers.getValueAtTime.bind(g):g.getValueAtTime=expressionHelpers.getStaticValueAtTime.bind(g),g.setGroupProperty=expressionHelpers.setGroupProperty,g.loopOut=e,g.loopIn=t,g.smooth=n,g.getVelocityAtTime=expressionHelpers.getVelocityAtTime.bind(g),g.getSpeedAtTime=expressionHelpers.getSpeedAtTime.bind(g),g.numKeys=y.a===1?y.k.length:0,g.propertyIndex=y.ix;var b=0;return f!==0&&(b=createTypedArray("float32",y.a===1?y.k[0].s.length:y.k.length)),g._cachingAtTime={lastFrame:initialDefaultFrame,lastIndex:0,value:b},expressionHelpers.searchExpressions(h,y,g),g.k&&C.addDynamicProperty(g),g};function l(h){return this._cachingAtTime||(this._cachingAtTime={shapeValue:shapePool.clone(this.pv),lastIndex:0,lastTime:initialDefaultFrame}),h*=this.elem.globalData.frameRate,h-=this.offsetTime,h!==this._cachingAtTime.lastTime&&(this._cachingAtTime.lastIndex=this._cachingAtTime.lastTime<h?this._caching.lastIndex:0,this._cachingAtTime.lastTime=h,this.interpolateShape(h,this._cachingAtTime.shapeValue,this._cachingAtTime)),this._cachingAtTime.shapeValue}var c=ShapePropertyFactory.getConstructorFunction(),u=ShapePropertyFactory.getKeyframedConstructorFunction();function d(){}d.prototype={vertices:function(y,f){this.k&&this.getValue();var m=this.v;f!==void 0&&(m=this.getValueAtTime(f,0));var C,g=m._length,b=m[y],v=m.v,N=createSizedArray(g);for(C=0;C<g;C+=1)y==="i"||y==="o"?N[C]=[b[C][0]-v[C][0],b[C][1]-v[C][1]]:N[C]=[b[C][0],b[C][1]];return N},points:function(y){return this.vertices("v",y)},inTangents:function(y){return this.vertices("i",y)},outTangents:function(y){return this.vertices("o",y)},isClosed:function(){return this.v.c},pointOnPath:function(y,f){var m=this.v;f!==void 0&&(m=this.getValueAtTime(f,0)),this._segmentsLength||(this._segmentsLength=bez.getSegmentsLength(m));for(var C=this._segmentsLength,g=C.lengths,b=C.totalLength*y,v=0,N=g.length,w=0,E;v<N;){if(w+g[v].addedLength>b){var _=v,k=m.c&&v===N-1?0:v+1,A=(b-w)/g[v].addedLength;E=bez.getPointInSegment(m.v[_],m.v[k],m.o[_],m.i[k],A,g[v]);break}else w+=g[v].addedLength;v+=1}return E||(E=m.c?[m.v[0][0],m.v[0][1]]:[m.v[m._length-1][0],m.v[m._length-1][1]]),E},vectorOnPath:function(y,f,m){y==1?y=this.v.c:y==0&&(y=.999);var C=this.pointOnPath(y,f),g=this.pointOnPath(y+.001,f),b=g[0]-C[0],v=g[1]-C[1],N=Math.sqrt(Math.pow(b,2)+Math.pow(v,2));if(N===0)return[0,0];var w=m==="tangent"?[b/N,v/N]:[-v/N,b/N];return w},tangentOnPath:function(y,f){return this.vectorOnPath(y,f,"tangent")},normalOnPath:function(y,f){return this.vectorOnPath(y,f,"normal")},setGroupProperty:expressionHelpers.setGroupProperty,getValueAtTime:expressionHelpers.getStaticValueAtTime},extendPrototype([d],c),extendPrototype([d],u),u.prototype.getValueAtTime=l,u.prototype.initiateExpression=ExpressionManager.initiateExpression;var p=ShapePropertyFactory.getShapeProp;ShapePropertyFactory.getShapeProp=function(h,y,f,m,C){var g=p(h,y,f,m,C);return g.propertyIndex=y.ix,g.lock=!1,f===3?expressionHelpers.searchExpressions(h,y.pt,g):f===4&&expressionHelpers.searchExpressions(h,y.ks,g),g.k&&h.addDynamicProperty(g),g}}function initialize$1(){addPropertyDecorator()}function addDecorator(){function e(){return this.data.d.x?(this.calculateExpression=ExpressionManager.initiateExpression.bind(this)(this.elem,this.data.d,this),this.addEffect(this.getExpressionValue.bind(this)),!0):null}TextProperty.prototype.getExpressionValue=function(t,n){var i=this.calculateExpression(n);if(t.t!==i){var s={};return this.copyData(s,t),s.t=i.toString(),s.__complete=!1,s}return t},TextProperty.prototype.searchProperty=function(){var t=this.searchKeyframes(),n=this.searchExpressions();return this.kf=t||n,this.kf},TextProperty.prototype.searchExpressions=e}function initialize(){addDecorator()}function SVGComposableEffect(){}SVGComposableEffect.prototype={createMergeNode:function e(t,n){var i=createNS("feMerge");i.setAttribute("result",t);var s,a;for(a=0;a<n.length;a+=1)s=createNS("feMergeNode"),s.setAttribute("in",n[a]),i.appendChild(s),i.appendChild(s);return i}};var linearFilterValue="0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0";function SVGTintFilter(e,t,n,i,s){this.filterManager=t;var a=createNS("feColorMatrix");a.setAttribute("type","matrix"),a.setAttribute("color-interpolation-filters","linearRGB"),a.setAttribute("values",linearFilterValue+" 1 0"),this.linearFilter=a,a.setAttribute("result",i+"_tint_1"),e.appendChild(a),a=createNS("feColorMatrix"),a.setAttribute("type","matrix"),a.setAttribute("color-interpolation-filters","sRGB"),a.setAttribute("values","1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"),a.setAttribute("result",i+"_tint_2"),e.appendChild(a),this.matrixFilter=a;var o=this.createMergeNode(i,[s,i+"_tint_1",i+"_tint_2"]);e.appendChild(o)}extendPrototype([SVGComposableEffect],SVGTintFilter),SVGTintFilter.prototype.renderFrame=function(e){if(e||this.filterManager._mdf){var t=this.filterManager.effectElements[0].p.v,n=this.filterManager.effectElements[1].p.v,i=this.filterManager.effectElements[2].p.v/100;this.linearFilter.setAttribute("values",linearFilterValue+" "+i+" 0"),this.matrixFilter.setAttribute("values",n[0]-t[0]+" 0 0 0 "+t[0]+" "+(n[1]-t[1])+" 0 0 0 "+t[1]+" "+(n[2]-t[2])+" 0 0 0 "+t[2]+" 0 0 0 1 0")}};function SVGFillFilter(e,t,n,i){this.filterManager=t;var s=createNS("feColorMatrix");s.setAttribute("type","matrix"),s.setAttribute("color-interpolation-filters","sRGB"),s.setAttribute("values","1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"),s.setAttribute("result",i),e.appendChild(s),this.matrixFilter=s}SVGFillFilter.prototype.renderFrame=function(e){if(e||this.filterManager._mdf){var t=this.filterManager.effectElements[2].p.v,n=this.filterManager.effectElements[6].p.v;this.matrixFilter.setAttribute("values","0 0 0 0 "+t[0]+" 0 0 0 0 "+t[1]+" 0 0 0 0 "+t[2]+" 0 0 0 "+n+" 0")}};function SVGStrokeEffect(e,t,n){this.initialized=!1,this.filterManager=t,this.elem=n,this.paths=[]}SVGStrokeEffect.prototype.initialize=function(){var e=this.elem.layerElement.children||this.elem.layerElement.childNodes,t,n,i,s;for(this.filterManager.effectElements[1].p.v===1?(s=this.elem.maskManager.masksProperties.length,i=0):(i=this.filterManager.effectElements[0].p.v-1,s=i+1),n=createNS("g"),n.setAttribute("fill","none"),n.setAttribute("stroke-linecap","round"),n.setAttribute("stroke-dashoffset",1),i;i<s;i+=1)t=createNS("path"),n.appendChild(t),this.paths.push({p:t,m:i});if(this.filterManager.effectElements[10].p.v===3){var a=createNS("mask"),o=createElementID();a.setAttribute("id",o),a.setAttribute("mask-type","alpha"),a.appendChild(n),this.elem.globalData.defs.appendChild(a);var l=createNS("g");for(l.setAttribute("mask","url("+getLocationHref()+"#"+o+")");e[0];)l.appendChild(e[0]);this.elem.layerElement.appendChild(l),this.masker=a,n.setAttribute("stroke","#fff")}else if(this.filterManager.effectElements[10].p.v===1||this.filterManager.effectElements[10].p.v===2){if(this.filterManager.effectElements[10].p.v===2)for(e=this.elem.layerElement.children||this.elem.layerElement.childNodes;e.length;)this.elem.layerElement.removeChild(e[0]);this.elem.layerElement.appendChild(n),this.elem.layerElement.removeAttribute("mask"),n.setAttribute("stroke","#fff")}this.initialized=!0,this.pathMasker=n},SVGStrokeEffect.prototype.renderFrame=function(e){this.initialized||this.initialize();var t,n=this.paths.length,i,s;for(t=0;t<n;t+=1)if(this.paths[t].m!==-1&&(i=this.elem.maskManager.viewData[this.paths[t].m],s=this.paths[t].p,(e||this.filterManager._mdf||i.prop._mdf)&&s.setAttribute("d",i.lastPath),e||this.filterManager.effectElements[9].p._mdf||this.filterManager.effectElements[4].p._mdf||this.filterManager.effectElements[7].p._mdf||this.filterManager.effectElements[8].p._mdf||i.prop._mdf)){var a;if(this.filterManager.effectElements[7].p.v!==0||this.filterManager.effectElements[8].p.v!==100){var o=Math.min(this.filterManager.effectElements[7].p.v,this.filterManager.effectElements[8].p.v)*.01,l=Math.max(this.filterManager.effectElements[7].p.v,this.filterManager.effectElements[8].p.v)*.01,c=s.getTotalLength();a="0 0 0 "+c*o+" ";var u=c*(l-o),d=1+this.filterManager.effectElements[4].p.v*2*this.filterManager.effectElements[9].p.v*.01,p=Math.floor(u/d),h;for(h=0;h<p;h+=1)a+="1 "+this.filterManager.effectElements[4].p.v*2*this.filterManager.effectElements[9].p.v*.01+" ";a+="0 "+c*10+" 0 0"}else a="1 "+this.filterManager.effectElements[4].p.v*2*this.filterManager.effectElements[9].p.v*.01;s.setAttribute("stroke-dasharray",a)}if((e||this.filterManager.effectElements[4].p._mdf)&&this.pathMasker.setAttribute("stroke-width",this.filterManager.effectElements[4].p.v*2),(e||this.filterManager.effectElements[6].p._mdf)&&this.pathMasker.setAttribute("opacity",this.filterManager.effectElements[6].p.v),(this.filterManager.effectElements[10].p.v===1||this.filterManager.effectElements[10].p.v===2)&&(e||this.filterManager.effectElements[3].p._mdf)){var y=this.filterManager.effectElements[3].p.v;this.pathMasker.setAttribute("stroke","rgb("+bmFloor(y[0]*255)+","+bmFloor(y[1]*255)+","+bmFloor(y[2]*255)+")")}};function SVGTritoneFilter(e,t,n,i){this.filterManager=t;var s=createNS("feColorMatrix");s.setAttribute("type","matrix"),s.setAttribute("color-interpolation-filters","linearRGB"),s.setAttribute("values","0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0 1 0"),e.appendChild(s);var a=createNS("feComponentTransfer");a.setAttribute("color-interpolation-filters","sRGB"),a.setAttribute("result",i),this.matrixFilter=a;var o=createNS("feFuncR");o.setAttribute("type","table"),a.appendChild(o),this.feFuncR=o;var l=createNS("feFuncG");l.setAttribute("type","table"),a.appendChild(l),this.feFuncG=l;var c=createNS("feFuncB");c.setAttribute("type","table"),a.appendChild(c),this.feFuncB=c,e.appendChild(a)}SVGTritoneFilter.prototype.renderFrame=function(e){if(e||this.filterManager._mdf){var t=this.filterManager.effectElements[0].p.v,n=this.filterManager.effectElements[1].p.v,i=this.filterManager.effectElements[2].p.v,s=i[0]+" "+n[0]+" "+t[0],a=i[1]+" "+n[1]+" "+t[1],o=i[2]+" "+n[2]+" "+t[2];this.feFuncR.setAttribute("tableValues",s),this.feFuncG.setAttribute("tableValues",a),this.feFuncB.setAttribute("tableValues",o)}};function SVGProLevelsFilter(e,t,n,i){this.filterManager=t;var s=this.filterManager.effectElements,a=createNS("feComponentTransfer");(s[10].p.k||s[10].p.v!==0||s[11].p.k||s[11].p.v!==1||s[12].p.k||s[12].p.v!==1||s[13].p.k||s[13].p.v!==0||s[14].p.k||s[14].p.v!==1)&&(this.feFuncR=this.createFeFunc("feFuncR",a)),(s[17].p.k||s[17].p.v!==0||s[18].p.k||s[18].p.v!==1||s[19].p.k||s[19].p.v!==1||s[20].p.k||s[20].p.v!==0||s[21].p.k||s[21].p.v!==1)&&(this.feFuncG=this.createFeFunc("feFuncG",a)),(s[24].p.k||s[24].p.v!==0||s[25].p.k||s[25].p.v!==1||s[26].p.k||s[26].p.v!==1||s[27].p.k||s[27].p.v!==0||s[28].p.k||s[28].p.v!==1)&&(this.feFuncB=this.createFeFunc("feFuncB",a)),(s[31].p.k||s[31].p.v!==0||s[32].p.k||s[32].p.v!==1||s[33].p.k||s[33].p.v!==1||s[34].p.k||s[34].p.v!==0||s[35].p.k||s[35].p.v!==1)&&(this.feFuncA=this.createFeFunc("feFuncA",a)),(this.feFuncR||this.feFuncG||this.feFuncB||this.feFuncA)&&(a.setAttribute("color-interpolation-filters","sRGB"),e.appendChild(a)),(s[3].p.k||s[3].p.v!==0||s[4].p.k||s[4].p.v!==1||s[5].p.k||s[5].p.v!==1||s[6].p.k||s[6].p.v!==0||s[7].p.k||s[7].p.v!==1)&&(a=createNS("feComponentTransfer"),a.setAttribute("color-interpolation-filters","sRGB"),a.setAttribute("result",i),e.appendChild(a),this.feFuncRComposed=this.createFeFunc("feFuncR",a),this.feFuncGComposed=this.createFeFunc("feFuncG",a),this.feFuncBComposed=this.createFeFunc("feFuncB",a))}SVGProLevelsFilter.prototype.createFeFunc=function(e,t){var n=createNS(e);return n.setAttribute("type","table"),t.appendChild(n),n},SVGProLevelsFilter.prototype.getTableValue=function(e,t,n,i,s){for(var a=0,o=256,l,c=Math.min(e,t),u=Math.max(e,t),d=Array.call(null,{length:o}),p,h=0,y=s-i,f=t-e;a<=256;)l=a/256,l<=c?p=f<0?s:i:l>=u?p=f<0?i:s:p=i+y*Math.pow((l-e)/f,1/n),d[h]=p,h+=1,a+=256/(o-1);return d.join(" ")},SVGProLevelsFilter.prototype.renderFrame=function(e){if(e||this.filterManager._mdf){var t,n=this.filterManager.effectElements;this.feFuncRComposed&&(e||n[3].p._mdf||n[4].p._mdf||n[5].p._mdf||n[6].p._mdf||n[7].p._mdf)&&(t=this.getTableValue(n[3].p.v,n[4].p.v,n[5].p.v,n[6].p.v,n[7].p.v),this.feFuncRComposed.setAttribute("tableValues",t),this.feFuncGComposed.setAttribute("tableValues",t),this.feFuncBComposed.setAttribute("tableValues",t)),this.feFuncR&&(e||n[10].p._mdf||n[11].p._mdf||n[12].p._mdf||n[13].p._mdf||n[14].p._mdf)&&(t=this.getTableValue(n[10].p.v,n[11].p.v,n[12].p.v,n[13].p.v,n[14].p.v),this.feFuncR.setAttribute("tableValues",t)),this.feFuncG&&(e||n[17].p._mdf||n[18].p._mdf||n[19].p._mdf||n[20].p._mdf||n[21].p._mdf)&&(t=this.getTableValue(n[17].p.v,n[18].p.v,n[19].p.v,n[20].p.v,n[21].p.v),this.feFuncG.setAttribute("tableValues",t)),this.feFuncB&&(e||n[24].p._mdf||n[25].p._mdf||n[26].p._mdf||n[27].p._mdf||n[28].p._mdf)&&(t=this.getTableValue(n[24].p.v,n[25].p.v,n[26].p.v,n[27].p.v,n[28].p.v),this.feFuncB.setAttribute("tableValues",t)),this.feFuncA&&(e||n[31].p._mdf||n[32].p._mdf||n[33].p._mdf||n[34].p._mdf||n[35].p._mdf)&&(t=this.getTableValue(n[31].p.v,n[32].p.v,n[33].p.v,n[34].p.v,n[35].p.v),this.feFuncA.setAttribute("tableValues",t))}};function SVGDropShadowEffect(e,t,n,i,s){var a=t.container.globalData.renderConfig.filterSize,o=t.data.fs||a;e.setAttribute("x",o.x||a.x),e.setAttribute("y",o.y||a.y),e.setAttribute("width",o.width||a.width),e.setAttribute("height",o.height||a.height),this.filterManager=t;var l=createNS("feGaussianBlur");l.setAttribute("in","SourceAlpha"),l.setAttribute("result",i+"_drop_shadow_1"),l.setAttribute("stdDeviation","0"),this.feGaussianBlur=l,e.appendChild(l);var c=createNS("feOffset");c.setAttribute("dx","25"),c.setAttribute("dy","0"),c.setAttribute("in",i+"_drop_shadow_1"),c.setAttribute("result",i+"_drop_shadow_2"),this.feOffset=c,e.appendChild(c);var u=createNS("feFlood");u.setAttribute("flood-color","#00ff00"),u.setAttribute("flood-opacity","1"),u.setAttribute("result",i+"_drop_shadow_3"),this.feFlood=u,e.appendChild(u);var d=createNS("feComposite");d.setAttribute("in",i+"_drop_shadow_3"),d.setAttribute("in2",i+"_drop_shadow_2"),d.setAttribute("operator","in"),d.setAttribute("result",i+"_drop_shadow_4"),e.appendChild(d);var p=this.createMergeNode(i,[i+"_drop_shadow_4",s]);e.appendChild(p)}extendPrototype([SVGComposableEffect],SVGDropShadowEffect),SVGDropShadowEffect.prototype.renderFrame=function(e){if(e||this.filterManager._mdf){if((e||this.filterManager.effectElements[4].p._mdf)&&this.feGaussianBlur.setAttribute("stdDeviation",this.filterManager.effectElements[4].p.v/4),e||this.filterManager.effectElements[0].p._mdf){var t=this.filterManager.effectElements[0].p.v;this.feFlood.setAttribute("flood-color",rgbToHex(Math.round(t[0]*255),Math.round(t[1]*255),Math.round(t[2]*255)))}if((e||this.filterManager.effectElements[1].p._mdf)&&this.feFlood.setAttribute("flood-opacity",this.filterManager.effectElements[1].p.v/255),e||this.filterManager.effectElements[2].p._mdf||this.filterManager.effectElements[3].p._mdf){var n=this.filterManager.effectElements[3].p.v,i=(this.filterManager.effectElements[2].p.v-90)*degToRads,s=n*Math.cos(i),a=n*Math.sin(i);this.feOffset.setAttribute("dx",s),this.feOffset.setAttribute("dy",a)}}};var _svgMatteSymbols=[];function SVGMatte3Effect(e,t,n){this.initialized=!1,this.filterManager=t,this.filterElem=e,this.elem=n,n.matteElement=createNS("g"),n.matteElement.appendChild(n.layerElement),n.matteElement.appendChild(n.transformedElement),n.baseElement=n.matteElement}SVGMatte3Effect.prototype.findSymbol=function(e){for(var t=0,n=_svgMatteSymbols.length;t<n;){if(_svgMatteSymbols[t]===e)return _svgMatteSymbols[t];t+=1}return null},SVGMatte3Effect.prototype.replaceInParent=function(e,t){var n=e.layerElement.parentNode;if(n){for(var i=n.children,s=0,a=i.length;s<a&&i[s]!==e.layerElement;)s+=1;var o;s<=a-2&&(o=i[s+1]);var l=createNS("use");l.setAttribute("href","#"+t),o?n.insertBefore(l,o):n.appendChild(l)}},SVGMatte3Effect.prototype.setElementAsMask=function(e,t){if(!this.findSymbol(t)){var n=createElementID(),i=createNS("mask");i.setAttribute("id",t.layerId),i.setAttribute("mask-type","alpha"),_svgMatteSymbols.push(t);var s=e.globalData.defs;s.appendChild(i);var a=createNS("symbol");a.setAttribute("id",n),this.replaceInParent(t,n),a.appendChild(t.layerElement),s.appendChild(a);var o=createNS("use");o.setAttribute("href","#"+n),i.appendChild(o),t.data.hd=!1,t.show()}e.setMatte(t.layerId)},SVGMatte3Effect.prototype.initialize=function(){for(var e=this.filterManager.effectElements[0].p.v,t=this.elem.comp.elements,n=0,i=t.length;n<i;)t[n]&&t[n].data.ind===e&&this.setElementAsMask(this.elem,t[n]),n+=1;this.initialized=!0},SVGMatte3Effect.prototype.renderFrame=function(){this.initialized||this.initialize()};function SVGGaussianBlurEffect(e,t,n,i){e.setAttribute("x","-100%"),e.setAttribute("y","-100%"),e.setAttribute("width","300%"),e.setAttribute("height","300%"),this.filterManager=t;var s=createNS("feGaussianBlur");s.setAttribute("result",i),e.appendChild(s),this.feGaussianBlur=s}SVGGaussianBlurEffect.prototype.renderFrame=function(e){if(e||this.filterManager._mdf){var t=.3,n=this.filterManager.effectElements[0].p.v*t,i=this.filterManager.effectElements[1].p.v,s=i==3?0:n,a=i==2?0:n;this.feGaussianBlur.setAttribute("stdDeviation",s+" "+a);var o=this.filterManager.effectElements[2].p.v==1?"wrap":"duplicate";this.feGaussianBlur.setAttribute("edgeMode",o)}};function TransformEffect(){}TransformEffect.prototype.init=function(e){this.effectsManager=e,this.type=effectTypes.TRANSFORM_EFFECT,this.matrix=new Matrix,this.opacity=-1,this._mdf=!1,this._opMdf=!1},TransformEffect.prototype.renderFrame=function(e){if(this._opMdf=!1,this._mdf=!1,e||this.effectsManager._mdf){var t=this.effectsManager.effectElements,n=t[0].p.v,i=t[1].p.v,s=t[2].p.v===1,a=t[3].p.v,o=s?a:t[4].p.v,l=t[5].p.v,c=t[6].p.v,u=t[7].p.v;this.matrix.reset(),this.matrix.translate(-n[0],-n[1],n[2]),this.matrix.scale(o*.01,a*.01,1),this.matrix.rotate(-u*degToRads),this.matrix.skewFromAxis(-l*degToRads,(c+90)*degToRads),this.matrix.translate(i[0],i[1],0),this._mdf=!0,this.opacity!==t[8].p.v&&(this.opacity=t[8].p.v,this._opMdf=!0)}};function SVGTransformEffect(e,t){this.init(t)}extendPrototype([TransformEffect],SVGTransformEffect);function CVTransformEffect(e){this.init(e)}return extendPrototype([TransformEffect],CVTransformEffect),registerRenderer("canvas",CanvasRenderer),registerRenderer("html",HybridRenderer),registerRenderer("svg",SVGRenderer),ShapeModifiers.registerModifier("tm",TrimModifier),ShapeModifiers.registerModifier("pb",PuckerAndBloatModifier),ShapeModifiers.registerModifier("rp",RepeaterModifier),ShapeModifiers.registerModifier("rd",RoundCornersModifier),ShapeModifiers.registerModifier("zz",ZigZagModifier),ShapeModifiers.registerModifier("op",OffsetPathModifier),setExpressionsPlugin(Expressions),setExpressionInterfaces(getInterface),initialize$1(),initialize(),registerEffect$1(20,SVGTintFilter,!0),registerEffect$1(21,SVGFillFilter,!0),registerEffect$1(22,SVGStrokeEffect,!1),registerEffect$1(23,SVGTritoneFilter,!0),registerEffect$1(24,SVGProLevelsFilter,!0),registerEffect$1(25,SVGDropShadowEffect,!0),registerEffect$1(28,SVGMatte3Effect,!1),registerEffect$1(29,SVGGaussianBlurEffect,!0),registerEffect$1(35,SVGTransformEffect,!1),registerEffect(35,CVTransformEffect),lottie}))})(lottie$2,lottie$2.exports)),lottie$2.exports}var lottieExports=requireLottie();const lottie=getDefaultExportFromCjs(lottieExports);var script={props:{animationData:{type:[Object,String],required:!0},loop:{type:[Boolean,Number],default:!1},autoPlay:{type:Boolean,default:!0},renderer:{type:String,default:"svg"},speed:{type:Number,default:1}},data:function e(){return{anim:null}},mounted:function e(){this.init()},beforeDestroy:function e(){this.anim&&this.anim.destroy()},methods:{init:function e(){var t=this,n={container:this.$refs.animation,renderer:this.renderer,loop:this.loop,autoplay:this.autoPlay,animationData:this.animationData};this.anim=lottie.loadAnimation(n),this.anim.addEventListener("loopComplete",function(){t.$emit("loopComplete",t.anim)}),this.anim.addEventListener("complete",function(){t.$emit("complete",t.anim)}),this.anim.addEventListener("enterFrame",function(){t.$emit("enterFrame",t.anim)})},play:function e(){this.anim&&this.anim.play()},stop:function e(){this.anim&&this.anim.stop()},pause:function e(){this.anim&&this.anim.pause()}}};function normalizeComponent(e,t,n,i,s,a,o,l,c,u){var d=typeof n=="function"?n.options:n;return e&&e.render&&(d.render=e.render,d.staticRenderFns=e.staticRenderFns,d._compiled=!0),n}var __vue_script__=script,__vue_render__=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{ref:"animation"})},__vue_staticRenderFns__=[];__vue_render__._withStripped=!0;var __vue_inject_styles__=void 0,__vue_component__=normalizeComponent({render:__vue_render__,staticRenderFns:__vue_staticRenderFns__},__vue_inject_styles__,__vue_script__);function install(e){install.installed||(install.installed=!0,e.component("LottieWebVue",__vue_component__))}var plugin={install},GlobalVue=null;typeof window<"u"?GlobalVue=window.Vue:typeof global<"u"&&(GlobalVue=global.Vue),GlobalVue&&GlobalVue.use(plugin);const _hoisted_1$f=["title","aria-label","role"],_hoisted_2$e={key:0,class:"flex items-center justify-center h-full"},_hoisted_3$d={key:0,class:"ml-2 text-sm text-muted-foreground"},_hoisted_4$b={key:1,class:"flex items-center justify-center h-full text-destructive"},_hoisted_5$9={class:"text-sm"},_sfc_main$w=No.defineComponent({__name:"NSLottieAnimation",props:{path:{},animationData:{},width:{default:200},height:{default:200},loop:{type:Boolean,default:!1},autoplay:{type:Boolean,default:!0},speed:{default:1},playOnHover:{type:Boolean,default:!1},stopOnHoverOut:{type:Boolean,default:!1},direction:{default:1},renderer:{default:"svg"},className:{},containerClassName:{},lazy:{type:Boolean,default:!1},placeholder:{},responsive:{type:Boolean,default:!0},preserveAspectRatio:{default:"xMidYMid meet"},title:{},ariaLabel:{},role:{default:"img"}},emits:["load","ready","play","pause","stop","complete","loopComplete","enterFrame","error","mouseOver","mouseOut"],setup(e,{expose:t,emit:n}){const i=e,s=n,a=No.ref(!1),o=No.ref(!1),l=No.ref(!1),c=No.ref(i.autoplay),u=No.ref(null),d=No.ref(),p=No.computed(()=>({path:i.path,animationData:i.animationData,loop:i.loop,autoplay:i.autoplay&&!i.playOnHover,renderer:i.renderer,rendererSettings:{preserveAspectRatio:i.preserveAspectRatio}})),h=No.computed(()=>({width:i.width?typeof i.width=="number"?`${i.width}px`:i.width:"auto",height:i.height?typeof i.height=="number"?`${i.height}px`:i.height:"auto",maxWidth:i.responsive?"100%":void 0})),y=No.computed(()=>cn("relative inline-block",{"opacity-50":a.value,"opacity-100":!a.value},i.containerClassName)),f=No.computed(()=>cn("w-full h-full",i.className)),m=()=>{d.value&&!c.value&&(d.value.play(),c.value=!0,s("play"))},C=()=>{d.value&&c.value&&(d.value.pause(),c.value=!1,s("pause"))},g=()=>{d.value&&(d.value.stop(),c.value=!1,s("stop"))},b=D=>{d.value&&d.value.goToAndStop(D||0,!0)},v=D=>{d.value&&d.value.setDirection(D)},N=D=>{d.value&&d.value.setSpeed(D)},w=()=>{l.value=!0,a.value=!1,s("ready")},E=()=>{a.value=!1,o.value=!0,u.value="Failed to load animation",s("error",new Error("Animation data failed to load"))},_=()=>{s("load")},k=()=>{s("complete")},A=()=>{s("loopComplete")},F=D=>{s("enterFrame",D)},B=()=>{i.playOnHover&&!c.value&&m(),s("mouseOver")},I=()=>{i.stopOnHoverOut&&c.value&&C(),s("mouseOut")};return No.watch([()=>i.path,()=>i.animationData],()=>{a.value=!0,l.value=!1,o.value=!1}),No.watch(()=>i.speed,D=>{N(D)}),No.watch(()=>i.direction,D=>{v(D)}),t({play:m,pause:C,stop:g,goToAndStop:b,setDirection:v,setSpeed:N,isLoaded:l,isPlaying:c,isLoading:a,isError:o}),(D,L)=>(No.openBlock(),No.createElementBlock("div",{class:No.normalizeClass(y.value),style:No.normalizeStyle(h.value),title:e.title,"aria-label":e.ariaLabel,role:e.role,onMouseover:B,onMouseout:I},[a.value&&!l.value?(No.openBlock(),No.createElementBlock("div",_hoisted_2$e,[L[0]||(L[0]=No.createElementVNode("div",{class:"animate-spin rounded-full h-8 w-8 border-b-2 border-primary"},null,-1)),e.placeholder?(No.openBlock(),No.createElementBlock("span",_hoisted_3$d,No.toDisplayString(e.placeholder),1)):No.createCommentVNode("",!0)])):o.value?(No.openBlock(),No.createElementBlock("div",_hoisted_4$b,[No.createElementVNode("div",_hoisted_5$9,No.toDisplayString(u.value||"Failed to load animation"),1)])):No.createCommentVNode("",!0),e.path||e.animationData?(No.openBlock(),No.createBlock(No.unref(__vue_component__),{key:2,ref_key:"lottieRef",ref:d,options:p.value,width:e.width,height:e.height,class:No.normalizeClass(f.value),onOnDataReady:w,onOnDataFailed:E,onOnDOMLoaded:_,onOnComplete:k,onOnLoopComplete:A,onOnEnterFrame:F},null,8,["options","width","height","class"])):No.createCommentVNode("",!0)],46,_hoisted_1$f))}}),_hoisted_1$e={class:"mb-4"},_hoisted_2$d={key:2,class:"mt-4"},_hoisted_3$c={key:3,class:"mt-6"},_sfc_main$v=No.defineComponent({__name:"NSEmptyState",props:{title:{default:"No data available"},description:{},icon:{},lottiePath:{},lottieData:{},animationTitle:{},size:{default:"default"},variant:{default:"default"},loop:{type:[Boolean,Number],default:!0},animateOnHover:{type:Boolean,default:!1},autoPlay:{type:Boolean,default:!0},class:{},iconClass:{},titleClass:{},descriptionClass:{}},setup(e){const t=e,n=No.computed(()=>{if(t.icon)return null;const c=t.title?.toLowerCase()||"";return c.includes("search")||c.includes("find")||c.includes("result")?lucideVueNext.Search:c.includes("empty")||c.includes("no")||c.includes("data")?lucideVueNext.FileX:c.includes("message")||c.includes("notification")||c.includes("alert")?lucideVueNext.Inbox:c.includes("error")||c.includes("warning")?lucideVueNext.AlertCircle:lucideVueNext.Info}),i=No.computed(()=>typeof t.icon=="object"?t.icon:typeof t.icon=="string"&&{"file-x":lucideVueNext.FileX,search:lucideVueNext.Search,inbox:lucideVueNext.Inbox,"alert-circle":lucideVueNext.AlertCircle,info:lucideVueNext.Info}[t.icon]||n.value),s=No.computed(()=>{const c={default:"p-8",sm:"p-4",lg:"p-12"},u={default:"text-foreground",muted:"text-muted-foreground"};return cn("flex flex-col items-center justify-center text-center",c[t.size],u[t.variant],t.class)}),a=No.computed(()=>cn("text-muted-foreground",{default:"h-16 w-16",sm:"h-12 w-12",lg:"h-20 w-20"}[t.size],t.iconClass)),o=No.computed(()=>cn("text-lg font-semibold mb-2",{"text-foreground":t.variant==="default","text-muted-foreground":t.variant==="muted"},t.titleClass)),l=No.computed(()=>cn("text-sm max-w-md mb-6",{"text-muted-foreground":t.variant==="default","text-muted-foreground/70":t.variant==="muted"},t.descriptionClass));return(c,u)=>(No.openBlock(),No.createElementBlock("div",{class:No.normalizeClass(s.value)},[No.createElementVNode("div",_hoisted_1$e,[No.renderSlot(c.$slots,"icon",{},()=>[e.lottiePath||e.lottieData?(No.openBlock(),No.createBlock(No.unref(_sfc_main$w),{key:0,path:e.lottiePath,"animation-data":e.lottieData,width:48,height:48,class:No.normalizeClass(a.value),title:e.animationTitle||e.title,"play-on-hover":!0,"stop-on-hover-out":!0},null,8,["path","animation-data","class","title"])):i.value&&!c.$slots.icon?(No.openBlock(),No.createBlock(No.resolveDynamicComponent(i.value),{key:1,class:No.normalizeClass(a.value)},null,8,["class"])):No.createCommentVNode("",!0)])]),e.title||c.$slots.title?(No.openBlock(),No.createElementBlock("h3",{key:0,class:No.normalizeClass(o.value)},[No.renderSlot(c.$slots,"title",{},()=>[No.createTextVNode(No.toDisplayString(e.title),1)])],2)):No.createCommentVNode("",!0),c.$slots.description||e.description?(No.openBlock(),No.createElementBlock("div",{key:1,class:No.normalizeClass(l.value)},[No.renderSlot(c.$slots,"description",{},()=>[No.createElementVNode("p",null,No.toDisplayString(e.description),1)])],2)):No.createCommentVNode("",!0),c.$slots.actions?(No.openBlock(),No.createElementBlock("div",_hoisted_2$d,[No.renderSlot(c.$slots,"actions")])):No.createCommentVNode("",!0),c.$slots.extra?(No.openBlock(),No.createElementBlock("div",_hoisted_3$c,[No.renderSlot(c.$slots,"extra")])):No.createCommentVNode("",!0)],2))}}),_hoisted_1$d=["role","aria-live"],_hoisted_2$c={key:1,class:"h-4 w-4 absolute right-12 top-4"},_hoisted_3$b={class:"grid gap-1"},_hoisted_4$a={key:0,class:"text-sm font-medium leading-none"},_hoisted_5$8=["aria-label"],_sfc_main$u=No.defineComponent({__name:"NSInlineNotification",props:{title:{},description:{},variant:{default:"info"},showCloseButton:{type:Boolean,default:!1},actionLabel:{},closeAriaLabel:{default:"Dismiss notification"},loading:{type:Boolean,default:!1},timer:{},lowContrast:{type:Boolean,default:!1},class:{},icon:{}},emits:["close","action"],setup(e,{emit:t}){const n=e,i=t,s=No.computed(()=>{if(n.icon)return n.icon;switch(n.variant){case"destructive":return lucideVueNext.AlertCircle;case"warning":return lucideVueNext.AlertTriangle;case"success":return lucideVueNext.CheckCircle;default:return lucideVueNext.Info}}),a=No.computed(()=>cn("relative w-full rounded-lg border p-4 [&>svg~*]:pl-7 [&>svg+div]:translate-y-[-3px] [&>svg]:absolute [&>svg]:left-4 [&>svg]:top-4 [&>svg]:text-foreground",{default:"bg-background text-foreground",destructive:"border-destructive/50 text-destructive dark:border-destructive [&>svg]:text-destructive",warning:"border-orange-500/50 text-orange-800 dark:border-orange-500 [&>svg]:text-orange-500 dark:text-orange-400",success:"border-green-500/50 text-green-800 dark:border-green-500 [&>svg]:text-green-500 dark:text-green-400",info:"border-blue-500/50 text-blue-800 dark:border-blue-500 [&>svg]:text-blue-500 dark:text-blue-400"}[n.variant],{"opacity-75":n.lowContrast},n.class)),o=No.computed(()=>n.variant==="destructive"||n.variant==="warning"?"alert":"status"),l=No.computed(()=>n.variant==="destructive"?"assertive":"polite"),c=No.computed(()=>n.title||$slots.title),u=No.computed(()=>n.description||$slots.description),d=No.computed(()=>n.actionLabel),p=No.computed(()=>n.timer),h=No.computed(()=>n.loading),y=No.computed(()=>n.showCloseButton&&!h.value);return(f,m)=>(No.openBlock(),No.createElementBlock("div",{class:No.normalizeClass(a.value),role:o.value,"aria-live":l.value},[(No.openBlock(),No.createBlock(No.resolveDynamicComponent(s.value),{class:"h-4 w-4"})),e.loading?(No.openBlock(),No.createBlock(No.unref(lucideVueNext.Loader2),{key:0,class:"h-4 w-4 animate-spin absolute right-12 top-4"})):No.createCommentVNode("",!0),e.timer?(No.openBlock(),No.createElementBlock("div",_hoisted_2$c,[...m[2]||(m[2]=[No.createElementVNode("div",{class:"h-4 w-4 rounded-full border-2 border-current animate-pulse"},null,-1)])])):No.createCommentVNode("",!0),No.createElementVNode("div",_hoisted_3$b,[c.value?(No.openBlock(),No.createElementBlock("h4",_hoisted_4$a,[No.renderSlot(f.$slots,"title",{},()=>[No.createTextVNode(No.toDisplayString(e.title),1)])])):No.createCommentVNode("",!0),u.value?(No.openBlock(),No.createElementBlock("p",{key:1,class:No.normalizeClass(No.unref(cn)("text-sm opacity-90",{"mr-12":d.value||y.value||p.value||h.value}))},[No.renderSlot(f.$slots,"description",{},()=>[No.createTextVNode(No.toDisplayString(e.description),1)])],2)):No.createCommentVNode("",!0),d.value?(No.openBlock(),No.createElementBlock("button",{key:2,type:"button",class:"inline-flex items-center text-sm font-medium underline underline-offset-2 hover:no-underline focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 rounded-sm",onClick:m[0]||(m[0]=C=>i("action"))},No.toDisplayString(e.actionLabel),1)):No.createCommentVNode("",!0)]),y.value?(No.openBlock(),No.createElementBlock("button",{key:2,type:"button","aria-label":e.closeAriaLabel,class:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none",onClick:m[1]||(m[1]=C=>i("close"))},[No.createVNode(No.unref(lucideVueNext.X),{class:"h-4 w-4"})],8,_hoisted_5$8)):No.createCommentVNode("",!0),No.renderSlot(f.$slots,"extra")],10,_hoisted_1$d))}}),_hoisted_1$c={class:"grid gap-1"},_hoisted_2$b={key:0,class:"text-sm font-semibold"},_hoisted_3$a={key:1,class:"text-sm opacity-90"},_hoisted_4$9=["aria-label"],_sfc_main$t=No.defineComponent({__name:"NSToastNotification",props:{title:{},description:{},variant:{default:"info"},duration:{default:5e3},showCloseButton:{type:Boolean,default:!0},actionLabel:{},closeAriaLabel:{default:"Close notification"},position:{default:"top-right"},loading:{type:Boolean,default:!1},class:{},icon:{}},emits:["close","action"],setup(e,{emit:t}){const n=e,i=t,s=No.computed(()=>{if(n.icon)return n.icon;switch(n.variant){case"destructive":return lucideVueNext.AlertCircle;case"warning":return lucideVueNext.AlertTriangle;case"success":return lucideVueNext.CheckCircle;default:return lucideVueNext.Info}}),a=No.computed(()=>cn("group pointer-events-auto relative flex w-full items-center justify-between space-x-4 overflow-hidden rounded-md border p-6 pr-8 shadow-lg transition-all data-[swipe=move]:translate-x-[var(--radix-toast-swipe-move-x)] data-[swipe=cancel]:translate-x-0 data-[swipe=end]:animate-out data-[state=open]:animate-in data-[state=closed]:animate-out data-[swipe=end]:animate-out data-[state=closed]:fade-out-80 data-[state=closed]:slide-out-to-right-full data-[state=open]:slide-in-from-top-full data-[state=open]:sm:slide-in-from-bottom-full md:data-[state=open]:slide-in-from-right-full",{default:"border-border bg-background text-foreground",destructive:"border-destructive/50 bg-destructive text-destructive-foreground",warning:"border-orange-500/50 bg-orange-500 text-white",success:"border-green-500/50 bg-green-500 text-white",info:"border-blue-500/50 bg-blue-500 text-white"}[n.variant],n.class)),o=No.computed(()=>cn("fixed z-50 flex flex-col-reverse p-4",{"top-right":"top-0 right-0","top-left":"top-0 left-0","bottom-right":"bottom-0 right-0","bottom-left":"bottom-0 left-0","top-center":"top-0 left-1/2 -translate-x-1/2","bottom-center":"bottom-0 left-1/2 -translate-x-1/2"}[n.position]));return(l,c)=>(No.openBlock(),No.createElementBlock("div",{class:No.normalizeClass(o.value)},[No.createElementVNode("div",{class:No.normalizeClass(a.value)},[(No.openBlock(),No.createBlock(No.resolveDynamicComponent(s.value),{class:"h-5 w-5 shrink-0"})),e.loading?(No.openBlock(),No.createBlock(No.unref(lucideVueNext.Loader2),{key:0,class:"h-5 w-5 shrink-0 animate-spin"})):No.createCommentVNode("",!0),No.createElementVNode("div",_hoisted_1$c,[e.title||l.$slots.title?(No.openBlock(),No.createElementBlock("div",_hoisted_2$b,[No.renderSlot(l.$slots,"title",{},()=>[No.createTextVNode(No.toDisplayString(e.title),1)],!0)])):No.createCommentVNode("",!0),e.description||l.$slots.description?(No.openBlock(),No.createElementBlock("div",_hoisted_3$a,[No.renderSlot(l.$slots,"description",{},()=>[No.createTextVNode(No.toDisplayString(e.description),1)],!0)])):No.createCommentVNode("",!0),e.actionLabel?(No.openBlock(),No.createElementBlock("button",{key:2,type:"button",class:No.normalizeClass(No.unref(cn)("inline-flex items-center text-sm font-medium underline underline-offset-2 hover:no-underline",{"text-destructive-foreground":e.variant==="destructive","text-white":["warning","success","info"].includes(e.variant),"text-foreground":e.variant==="default"})),onClick:c[0]||(c[0]=u=>i("action"))},No.toDisplayString(e.actionLabel),3)):No.createCommentVNode("",!0)]),e.showCloseButton?(No.openBlock(),No.createElementBlock("button",{key:1,type:"button","aria-label":e.closeAriaLabel,class:No.normalizeClass(No.unref(cn)("absolute right-2 top-2 rounded-md p-1 text-foreground/50 opacity-0 transition-opacity hover:text-foreground focus:opacity-100 focus:outline-none focus:ring-2 group-hover:opacity-100",{"text-destructive-foreground/50 hover:text-destructive-foreground":e.variant==="destructive","text-white/50 hover:text-white":["warning","success","info"].includes(e.variant)})),onClick:c[1]||(c[1]=u=>i("close"))},[No.createVNode(No.unref(lucideVueNext.X),{class:"h-4 w-4"})],10,_hoisted_4$9)):No.createCommentVNode("",!0),e.duration>0?(No.openBlock(),No.createElementBlock("div",{key:2,class:"absolute bottom-0 left-0 h-1 bg-black/20 dark:bg-white/20 animate-[shrink_x_var(--duration)_linear_forwards]",style:No.normalizeStyle({"--duration":`${e.duration}ms`})},null,4)):No.createCommentVNode("",!0)],2)],2))}}),_export_sfc=(e,t)=>{const n=e.__vccOpts||e;for(const[i,s]of t)n[i]=s;return n},NSToastNotification=_export_sfc(_sfc_main$t,[["__scopeId","data-v-64d944b6"]]),_hoisted_1$b={class:"space-y-2"},_hoisted_2$a={key:0,class:"flex items-center justify-between"},_hoisted_3$9=["aria-valuenow","aria-valuemax"],_hoisted_4$8={key:1,class:"text-sm text-muted-foreground"},_sfc_main$s=No.defineComponent({__name:"NSProgress",props:{value:{},max:{default:100},variant:{default:"default"},size:{default:"default"},showLabel:{type:Boolean,default:!1},label:{},indeterminate:{type:Boolean,default:!1},class:{}},setup(e){const t=e,n=No.computed(()=>t.indeterminate?0:Math.min(Math.max((t.value||0)/t.max*100,0),100)),i=No.computed(()=>cn("relative w-full overflow-hidden rounded-full bg-secondary",{default:"h-2",sm:"h-1",lg:"h-3"}[t.size],t.class)),s=No.computed(()=>cn("h-full w-full flex-1 bg-primary transition-all",{default:"bg-primary",destructive:"bg-destructive",success:"bg-green-500",warning:"bg-orange-500",info:"bg-blue-500"}[t.variant],{"animate-pulse":t.indeterminate,"transition-all":!t.indeterminate})),a=No.computed(()=>cn("text-sm font-medium",{default:"text-foreground",destructive:"text-destructive",success:"text-green-600",warning:"text-orange-600",info:"text-blue-600"}[t.variant]));return(o,l)=>(No.openBlock(),No.createElementBlock("div",_hoisted_1$b,[e.showLabel&&(e.label||o.$slots.label)?(No.openBlock(),No.createElementBlock("div",_hoisted_2$a,[No.createElementVNode("div",{class:No.normalizeClass(a.value)},[No.renderSlot(o.$slots,"label",{},()=>[No.createTextVNode(No.toDisplayString(e.label),1)],!0)],2),e.indeterminate?No.createCommentVNode("",!0):(No.openBlock(),No.createElementBlock("div",{key:0,class:No.normalizeClass(a.value)},No.toDisplayString(Math.round(n.value))+"% ",3))])):No.createCommentVNode("",!0),No.createElementVNode("div",{class:No.normalizeClass(i.value),role:"progressbar","aria-valuenow":e.value,"aria-valuemax":e.max},[No.createElementVNode("div",{class:No.normalizeClass(s.value),style:No.normalizeStyle({width:e.indeterminate?"100%":`${n.value}%`,animation:e.indeterminate?"indeterminate 2s ease-in-out infinite":void 0})},null,6)],10,_hoisted_3$9),o.$slots.value?(No.openBlock(),No.createElementBlock("div",_hoisted_4$8,[No.renderSlot(o.$slots,"value",{value:e.value,percentage:n.value},void 0,!0)])):No.createCommentVNode("",!0)]))}}),NSProgress=_export_sfc(_sfc_main$s,[["__scopeId","data-v-257fd9e2"]]),_hoisted_1$a={class:"space-y-2"},_hoisted_2$9={key:0,class:"flex items-center justify-between"},_hoisted_3$8=["aria-valuenow","aria-valuemax"],_hoisted_4$7={key:0,class:"h-full w-full bg-gradient-to-r from-transparent via-white/20 to-transparent animate-[shimmer_2s_ease-in-out_infinite]"},_hoisted_5$7={key:1,class:"text-sm text-muted-foreground"},_sfc_main$r=No.defineComponent({__name:"NSProgressBar",props:{value:{},max:{default:100},variant:{default:"default"},size:{default:"default"},showLabel:{type:Boolean,default:!1},label:{},indeterminate:{type:Boolean,default:!1},animated:{type:Boolean,default:!0},class:{}},setup(e){const t=e,n=No.computed(()=>t.indeterminate?0:Math.min(Math.max((t.value||0)/t.max*100,0),100)),i=No.computed(()=>cn("relative w-full bg-secondary overflow-hidden rounded-md",{default:"h-4",sm:"h-3",lg:"h-6"}[t.size],t.class)),s=No.computed(()=>cn("h-full flex-1 transition-all",{default:"bg-primary",destructive:"bg-destructive",success:"bg-green-500",warning:"bg-orange-500",info:"bg-blue-500"}[t.variant],{"transition-all":t.animated&&!t.indeterminate,"animate-pulse":t.indeterminate,"bg-gradient-to-r from-primary/80 to-primary":t.animated&&t.variant==="default","bg-gradient-to-r from-destructive/80 to-destructive":t.animated&&t.variant==="destructive","bg-gradient-to-r from-green-400 to-green-500":t.animated&&t.variant==="success","bg-gradient-to-r from-orange-400 to-orange-500":t.animated&&t.variant==="warning","bg-gradient-to-r from-blue-400 to-blue-500":t.animated&&t.variant==="info"})),a=No.computed(()=>cn("text-sm font-medium",{default:"text-foreground",destructive:"text-destructive",success:"text-green-600",warning:"text-orange-600",info:"text-blue-600"}[t.variant]));return(o,l)=>(No.openBlock(),No.createElementBlock("div",_hoisted_1$a,[e.showLabel&&(e.label||o.$slots.label)?(No.openBlock(),No.createElementBlock("div",_hoisted_2$9,[No.createElementVNode("div",{class:No.normalizeClass(a.value)},[No.renderSlot(o.$slots,"label",{},()=>[No.createTextVNode(No.toDisplayString(e.label),1)],!0)],2),e.indeterminate?No.createCommentVNode("",!0):(No.openBlock(),No.createElementBlock("div",{key:0,class:No.normalizeClass(a.value)},No.toDisplayString(Math.round(n.value))+"% ",3))])):No.createCommentVNode("",!0),No.createElementVNode("div",{class:No.normalizeClass(i.value),role:"progressbar","aria-valuenow":e.value,"aria-valuemax":e.max},[No.createElementVNode("div",{class:No.normalizeClass(s.value),style:No.normalizeStyle({width:e.indeterminate?"100%":`${n.value}%`,animation:e.indeterminate?"indeterminate 2s ease-in-out infinite":void 0})},[e.animated&&!e.indeterminate?(No.openBlock(),No.createElementBlock("div",_hoisted_4$7)):No.createCommentVNode("",!0)],6)],10,_hoisted_3$8),o.$slots.value?(No.openBlock(),No.createElementBlock("div",_hoisted_5$7,[No.renderSlot(o.$slots,"value",{value:e.value,percentage:n.value},void 0,!0)])):No.createCommentVNode("",!0)]))}}),NSProgressBar=_export_sfc(_sfc_main$r,[["__scopeId","data-v-fa7b6aa9"]]),_hoisted_1$9={class:"space-y-1"},_hoisted_2$8={class:"flex items-center gap-2"},_hoisted_3$7=["title"],_sfc_main$q=No.defineComponent({__name:"NSModal",props:{open:{type:Boolean},modelValue:{type:Boolean},title:{},description:{},showCloseButton:{type:Boolean,default:!0},closeOnOverlayClick:{type:Boolean,default:!0},closeOnEscape:{type:Boolean,default:!0},size:{default:"default"},maxWidth:{},maxHeight:{},persistent:{type:Boolean,default:!1},fullscreen:{type:Boolean,default:!1},class:{},contentClass:{},overlayClass:{}},emits:["update:modelValue","update:open","open","close"],setup(e,{emit:t}){const n=e,i=t,s=No.computed({get:()=>n.modelValue??n.open??!1,set:d=>{i("update:modelValue",d),i("update:open",d),i(d?"open":"close")}}),a=No.computed(()=>n.fullscreen),o=No.computed(()=>{const d="relative z-50 grid w-full gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg md:w-full",p={sm:"max-w-md",default:"max-w-lg",lg:"max-w-2xl",xl:"max-w-4xl",full:"max-w-screen-2xl"},h=a.value?"w-screen h-screen max-w-none rounded-none border-none p-0":"";return cn(d,p[n.size],h,n.contentClass)}),l=No.computed(()=>cn("fixed inset-0 z-50 bg-background/80 backdrop-blur-sm data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",n.overlayClass)),c=No.computed(()=>n.maxWidth||n.maxHeight?{maxWidth:n.maxWidth,maxHeight:n.maxHeight}:{}),u=()=>{n.persistent||(s.value=!1)};return(d,p)=>(No.openBlock(),No.createBlock(No.unref(Iv),null,{default:No.withCtx(()=>[No.createVNode(No.unref($u),{class:No.normalizeClass(l.value),onClick:p[0]||(p[0]=h=>e.closeOnOverlayClick?u():void 0)},null,8,["class"]),No.createVNode(No.unref(Pu),{class:No.normalizeClass(o.value),style:No.normalizeStyle(c.value),"aria-describedby":(e.description,void 0)},{default:No.withCtx(()=>[e.title||d.$slots.header||e.showCloseButton?(No.openBlock(),No.createElementBlock("div",{key:0,class:No.normalizeClass(No.unref(cn)("flex items-center justify-between",a.value?"border-b p-6":"mb-4"))},[No.createElementVNode("div",_hoisted_1$9,[e.title||d.$slots.title?(No.openBlock(),No.createBlock(No.unref(Bu),{key:0,class:"text-lg font-semibold leading-none tracking-tight"},{default:No.withCtx(()=>[No.renderSlot(d.$slots,"title",{},()=>[No.createTextVNode(No.toDisplayString(e.title),1)])]),_:3})):No.createCommentVNode("",!0),e.description||d.$slots.description?(No.openBlock(),No.createBlock(No.unref(Iu),{key:1,class:"text-sm text-muted-foreground"},{default:No.withCtx(()=>[No.renderSlot(d.$slots,"description",{},()=>[No.createTextVNode(No.toDisplayString(e.description),1)])]),_:3})):No.createCommentVNode("",!0)]),No.createElementVNode("div",_hoisted_2$8,[e.fullscreen?No.createCommentVNode("",!0):(No.openBlock(),No.createElementBlock("button",{key:0,type:"button",class:"rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none",title:a.value?"Exit fullscreen":"Enter fullscreen",onClick:p[1]||(p[1]=h=>a.value=!a.value)},[a.value?(No.openBlock(),No.createBlock(No.unref(lucideVueNext.Minimize2),{key:1,class:"h-4 w-4"})):(No.openBlock(),No.createBlock(No.unref(lucideVueNext.Maximize2),{key:0,class:"h-4 w-4"}))],8,_hoisted_3$7)),e.showCloseButton&&!e.persistent?(No.openBlock(),No.createBlock(No.unref(Xl),{key:1,class:"rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none"},{default:No.withCtx(()=>[No.createVNode(No.unref(lucideVueNext.X),{class:"h-4 w-4"}),p[2]||(p[2]=No.createElementVNode("span",{class:"sr-only"},"Close",-1))]),_:1})):No.createCommentVNode("",!0)])],2)):No.createCommentVNode("",!0),No.renderSlot(d.$slots,"header"),No.createElementVNode("div",{class:No.normalizeClass(No.unref(cn)("flex-1",a.value?"p-6":""))},[No.renderSlot(d.$slots,"default")],2),No.renderSlot(d.$slots,"footer"),d.$slots.actions?(No.openBlock(),No.createElementBlock("div",{key:1,class:No.normalizeClass(No.unref(cn)("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",a.value?"border-t p-6 mt-auto":"mt-6"))},[No.renderSlot(d.$slots,"actions")],2)):No.createCommentVNode("",!0)]),_:3},8,["class","style","aria-describedby"])]),_:3}))}}),_sfc_main$p=No.defineComponent({__name:"NSModalTrigger",props:{modelValue:{type:Boolean},open:{type:Boolean},title:{},description:{},showCloseButton:{type:Boolean,default:!0},closeOnOverlayClick:{type:Boolean,default:!0},closeOnEscape:{type:Boolean,default:!0},size:{default:"default"},maxWidth:{},maxHeight:{},persistent:{type:Boolean,default:!1},fullscreen:{type:Boolean,default:!1},class:{},contentClass:{},overlayClass:{}},emits:["update:modelValue","update:open","open","close"],setup(e,{emit:t}){const n=e,i=t,s=No.computed({get:()=>n.modelValue??n.open??!1,set:o=>{i("update:modelValue",o),i("update:open",o),i(o?"open":"close")}}),a=No.ref();return(o,l)=>(No.openBlock(),No.createElementBlock(No.Fragment,null,[No.renderSlot(o.$slots,"trigger",{open:s.value,toggle:()=>s.value=!s.value},()=>[o.$slots.trigger?No.createCommentVNode("",!0):(No.openBlock(),No.createElementBlock("button",{key:0,ref_key:"triggerRef",ref:a,onClick:l[0]||(l[0]=c=>s.value=!s.value),class:"inline-flex items-center justify-center rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 bg-primary text-primary-foreground hover:bg-primary/90"}," Open Modal ",512))]),No.createVNode(_sfc_main$q,{modelValue:s.value,"onUpdate:modelValue":l[1]||(l[1]=c=>s.value=c),title:e.title,description:e.description,"show-close-button":e.showCloseButton,"close-on-overlay-click":e.closeOnOverlayClick,"close-on-escape":e.closeOnEscape,size:e.size,"max-width":e.maxWidth,"max-height":e.maxHeight,persistent:e.persistent,fullscreen:e.fullscreen,class:No.normalizeClass(e.class),"content-class":e.contentClass,"overlay-class":e.overlayClass,onOpen:l[2]||(l[2]=c=>i("open")),onClose:l[3]||(l[3]=c=>i("close"))},{title:No.withCtx(()=>[No.renderSlot(o.$slots,"title")]),description:No.withCtx(()=>[No.renderSlot(o.$slots,"description")]),header:No.withCtx(()=>[No.renderSlot(o.$slots,"header")]),actions:No.withCtx(()=>[No.renderSlot(o.$slots,"actions")]),footer:No.withCtx(()=>[No.renderSlot(o.$slots,"footer")]),default:No.withCtx(()=>[No.renderSlot(o.$slots,"default")]),_:3},8,["modelValue","title","description","show-close-button","close-on-overlay-click","close-on-escape","size","max-width","max-height","persistent","fullscreen","class","content-class","overlay-class"])],64))}}),_hoisted_1$8={key:0,class:"flex items-center justify-between mb-2"},_hoisted_2$7={key:1,class:"mt-2"},_sfc_main$o=No.defineComponent({__name:"NSSlider",props:{modelValue:{},defaultValue:{},min:{default:0},max:{default:100},step:{default:1},disabled:{type:Boolean},orientation:{default:"horizontal"},showLabel:{type:Boolean,default:!1},label:{},showValue:{type:Boolean,default:!0},formatValue:{type:Function,default:e=>e.toString()},class:{},trackClass:{},thumbClass:{}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,i=t,s=No.computed({get:()=>n.modelValue??n.defaultValue??0,set:f=>{i("update:modelValue",f)}}),a=No.computed(()=>Array.isArray(s.value)),o=No.computed(()=>a.value?s.value.map(f=>n.formatValue(f)).join(" - "):n.formatValue(s.value)),l=No.computed(()=>cn("relative",n.class)),c=No.computed(()=>cn("relative flex w-full touch-none select-none items-center",{horizontal:"flex-col",vertical:"w-auto h-full flex-row"}[n.orientation])),u=No.computed(()=>cn("relative h-2 w-full grow overflow-hidden rounded-full bg-secondary",{horizontal:"h-2 w-full",vertical:"w-2 h-full"}[n.orientation],n.trackClass)),d=No.computed(()=>cn("absolute h-full bg-primary")),p=No.computed(()=>cn("block h-5 w-5 rounded-full border-2 border-primary bg-background ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",n.thumbClass)),h=No.computed(()=>"text-sm font-medium text-foreground"),y=No.computed(()=>"text-sm text-muted-foreground");return(f,m)=>(No.openBlock(),No.createElementBlock("div",{class:No.normalizeClass(l.value)},[e.showLabel&&(e.label||f.$slots.label)?(No.openBlock(),No.createElementBlock("div",_hoisted_1$8,[No.createElementVNode("div",{class:No.normalizeClass(h.value)},[No.renderSlot(f.$slots,"label",{},()=>[No.createTextVNode(No.toDisplayString(e.label),1)])],2),e.showValue?(No.openBlock(),No.createElementBlock("div",{key:0,class:No.normalizeClass(y.value)},No.toDisplayString(o.value),3)):No.createCommentVNode("",!0)])):No.createCommentVNode("",!0),No.createVNode(No.unref(og),{class:No.normalizeClass(c.value),modelValue:s.value,"onUpdate:modelValue":m[0]||(m[0]=C=>s.value=C),min:e.min,max:e.max,step:e.step,disabled:e.disabled,orientation:e.orientation},{default:No.withCtx(()=>[No.createVNode(No.unref(sg),{class:No.normalizeClass(u.value)},{default:No.withCtx(()=>[No.createVNode(No.unref(rg),{class:No.normalizeClass(d.value)},null,8,["class"])]),_:1},8,["class"]),(No.openBlock(!0),No.createElementBlock(No.Fragment,null,No.renderList(a.value?2:1,(C,g)=>(No.openBlock(),No.createBlock(No.unref(lg),{key:g,class:No.normalizeClass(p.value)},null,8,["class"]))),128))]),_:1},8,["class","modelValue","min","max","step","disabled","orientation"]),f.$slots.value?(No.openBlock(),No.createElementBlock("div",_hoisted_2$7,[No.renderSlot(f.$slots,"value",{value:s.value,displayValue:o.value})])):No.createCommentVNode("",!0)],2))}}),_hoisted_1$7={key:0,class:"flex items-center justify-between mb-2"},_hoisted_2$6={class:"relative mt-2 flex justify-between text-xs text-muted-foreground"},_hoisted_3$6={key:0},_hoisted_4$6={key:1},_hoisted_5$6={key:1,class:"mt-2"},_sfc_main$n=No.defineComponent({__name:"NSByteSlider",props:{modelValue:{},defaultValue:{},min:{default:0},max:{default:1024},step:{default:1},disabled:{type:Boolean},showLabel:{type:Boolean,default:!1},label:{},showValue:{type:Boolean,default:!0},formatBytes:{},showByteUnits:{type:Boolean,default:!0},customUnits:{default:()=>["B","KB","MB","GB","TB"]},class:{},trackClass:{},thumbClass:{}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,i=t,s=No.computed({get:()=>n.modelValue??n.defaultValue??0,set:m=>{i("update:modelValue",m)}}),a=m=>{if(m===0)return"0 B";const C=1024,g=f<0?0:f,b=Math.floor(Math.log(m)/Math.log(C)),v=n.customUnits;return parseFloat((m/Math.pow(C,b)).toFixed(g))+" "+v[b]},o=No.computed(()=>n.showByteUnits&&n.formatBytes?n.formatBytes(s.value):n.showByteUnits?a(s.value):s.value.toString()),l=No.computed(()=>cn("relative",n.class)),c=No.computed(()=>cn("relative flex w-full touch-none select-none items-center flex-col")),u=No.computed(()=>cn("relative h-2 w-full grow overflow-hidden rounded-full bg-secondary",n.trackClass)),d=No.computed(()=>cn("absolute h-full bg-primary")),p=No.computed(()=>cn("block h-5 w-5 rounded-full border-2 border-primary bg-background ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",n.thumbClass)),h=No.computed(()=>"text-sm font-medium text-foreground"),y=No.computed(()=>"text-sm font-mono text-muted-foreground"),f=No.computed(()=>{const m=n.max-n.min;return m>=1024*1024?1:(m>=1024,0)});return(m,C)=>(No.openBlock(),No.createElementBlock("div",{class:No.normalizeClass(l.value)},[e.showLabel&&(e.label||m.$slots.label)?(No.openBlock(),No.createElementBlock("div",_hoisted_1$7,[No.createElementVNode("div",{class:No.normalizeClass(h.value)},[No.renderSlot(m.$slots,"label",{},()=>[No.createTextVNode(No.toDisplayString(e.label),1)])],2),e.showValue?(No.openBlock(),No.createElementBlock("div",{key:0,class:No.normalizeClass(y.value)},No.toDisplayString(o.value),3)):No.createCommentVNode("",!0)])):No.createCommentVNode("",!0),No.createVNode(No.unref(og),{class:No.normalizeClass(c.value),modelValue:s.value,"onUpdate:modelValue":C[0]||(C[0]=g=>s.value=g),min:e.min,max:e.max,step:e.step,disabled:e.disabled},{default:No.withCtx(()=>[No.createVNode(No.unref(sg),{class:No.normalizeClass(u.value)},{default:No.withCtx(()=>[No.createVNode(No.unref(rg),{class:No.normalizeClass(d.value)},null,8,["class"])]),_:1},8,["class"]),No.createVNode(No.unref(lg),{class:No.normalizeClass(p.value)},null,8,["class"])]),_:1},8,["class","modelValue","min","max","step","disabled"]),No.createElementVNode("div",_hoisted_2$6,[e.showByteUnits?(No.openBlock(),No.createElementBlock("span",_hoisted_3$6,No.toDisplayString(e.formatBytes(e.min)),1)):No.createCommentVNode("",!0),e.showByteUnits?(No.openBlock(),No.createElementBlock("span",_hoisted_4$6,No.toDisplayString(e.formatBytes(e.max)),1)):No.createCommentVNode("",!0)]),m.$slots.value?(No.openBlock(),No.createElementBlock("div",_hoisted_5$6,[No.renderSlot(m.$slots,"value",{value:s.value,displayValue:o.value})])):No.createCommentVNode("",!0)],2))}}),_hoisted_1$6={key:0,class:"text-sm text-muted-foreground"},_hoisted_2$5={key:1,class:"flex items-center gap-2"},_hoisted_3$5=["disabled"],_hoisted_4$5=["value"],_hoisted_5$5={class:"flex items-center gap-1"},_hoisted_6$5=["disabled"],_hoisted_7$5=["disabled","onClick"],_hoisted_8$5={key:1,class:"flex items-center justify-center h-8 w-8 text-sm text-muted-foreground"},_hoisted_9$5=["disabled"],_hoisted_10$5={key:2,class:"flex items-center gap-2"},_hoisted_11$5=["max","value","disabled"],_sfc_main$m=No.defineComponent({__name:"NSPagination",props:{currentPage:{default:1},totalItems:{},itemsPerPage:{default:10},totalPages:{},showSizeChanger:{type:Boolean,default:!1},pageSizeOptions:{default:()=>[10,20,50,100]},showQuickJumper:{type:Boolean,default:!1},showTotal:{type:Boolean,default:!0},disabled:{type:Boolean,default:!1},size:{default:"default"},align:{default:"start"},class:{}},emits:["update:currentPage","update:itemsPerPage","page-change","size-change"],setup(e,{emit:t}){const n=e,i=t,s=No.computed(()=>n.totalPages?n.totalPages:Math.ceil((n.totalItems||0)/n.itemsPerPage)),a=No.computed({get:()=>n.currentPage,set:b=>{i("update:currentPage",b),i("page-change",b)}}),o=No.computed({get:()=>n.itemsPerPage,set:b=>{i("update:itemsPerPage",b),i("size-change",b)}}),l=No.computed(()=>{const b=s.value,v=a.value,N=2,w=[],E=[];let _;for(let k=1;k<=b;k++)(k===1||k===b||k>=v-N&&k<=v+N)&&w.push(k);return w.forEach((k,A)=>{_&&(k-_===2?E.push(_+1):k-_!==1&&E.push("...")),E.push(k),_=k}),E}),c=No.computed(()=>a.value>1),u=No.computed(()=>a.value<s.value),d=No.computed(()=>{const b="flex flex-wrap items-center gap-2",v={start:"justify-start",center:"justify-center",end:"justify-end"},N={sm:"text-xs",default:"text-sm",lg:"text-base"};return cn(b,v[n.align],N[n.size],n.class)}),p=No.computed(()=>cn("inline-flex items-center justify-center rounded-md border border-input bg-background hover:bg-accent hover:text-accent-foreground h-8 w-8 p-0 font-medium transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",{sm:"h-6 w-6 text-xs",default:"h-8 w-8 text-sm",lg:"h-10 w-10 text-base"}[n.size])),h=No.computed(()=>cn(p.value,"border-primary bg-primary text-primary-foreground hover:bg-primary hover:text-primary-foreground")),y=No.computed(()=>cn("inline-flex items-center rounded-md border border-input bg-background px-3 py-1 text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",{sm:"px-2 py-0.5 text-xs",default:"px-3 py-1 text-sm",lg:"px-4 py-2 text-base"}[n.size])),f=b=>{b>=1&&b<=s.value&&!n.disabled&&(a.value=b)},m=()=>{c.value&&!n.disabled&&a.value--},C=()=>{u.value&&!n.disabled&&a.value++},g=b=>{const v=b.target,N=parseInt(v.value,10);isNaN(N)||f(N)};return(b,v)=>(No.openBlock(),No.createElementBlock("div",{class:No.normalizeClass(d.value)},[e.showTotal&&e.totalItems?(No.openBlock(),No.createElementBlock("div",_hoisted_1$6," Total: "+No.toDisplayString(e.totalItems)+" items ",1)):No.createCommentVNode("",!0),e.showSizeChanger?(No.openBlock(),No.createElementBlock("div",_hoisted_2$5,[v[1]||(v[1]=No.createElementVNode("span",{class:"text-sm text-muted-foreground"},"Items per page:",-1)),No.withDirectives(No.createElementVNode("select",{"onUpdate:modelValue":v[0]||(v[0]=N=>o.value=N),disabled:e.disabled,class:No.normalizeClass(y.value)},[(No.openBlock(!0),No.createElementBlock(No.Fragment,null,No.renderList(e.pageSizeOptions,N=>(No.openBlock(),No.createElementBlock("option",{key:N,value:N},No.toDisplayString(N),9,_hoisted_4$5))),128))],10,_hoisted_3$5),[[No.vModelSelect,o.value]])])):No.createCommentVNode("",!0),No.createElementVNode("div",_hoisted_5$5,[No.createElementVNode("button",{class:No.normalizeClass(p.value),disabled:!c.value||e.disabled,onClick:m,"aria-label":"Previous page"},[No.createVNode(No.unref(lucideVueNext.ChevronLeft),{class:"h-4 w-4"})],10,_hoisted_6$5),(No.openBlock(!0),No.createElementBlock(No.Fragment,null,No.renderList(l.value,(N,w)=>(No.openBlock(),No.createElementBlock(No.Fragment,{key:`page-${w}`},[typeof N=="number"?(No.openBlock(),No.createElementBlock("button",{key:0,class:No.normalizeClass(N===a.value?h.value:p.value),disabled:e.disabled,onClick:E=>f(N)},No.toDisplayString(N),11,_hoisted_7$5)):(No.openBlock(),No.createElementBlock("span",_hoisted_8$5,[No.createVNode(No.unref(lucideVueNext.MoreHorizontal),{class:"h-4 w-4"})]))],64))),128)),No.createElementVNode("button",{class:No.normalizeClass(p.value),disabled:!u.value||e.disabled,onClick:C,"aria-label":"Next page"},[No.createVNode(No.unref(lucideVueNext.ChevronRight),{class:"h-4 w-4"})],10,_hoisted_9$5)]),e.showQuickJumper?(No.openBlock(),No.createElementBlock("div",_hoisted_10$5,[v[2]||(v[2]=No.createElementVNode("span",{class:"text-sm text-muted-foreground"},"Go to page:",-1)),No.createElementVNode("input",{type:"number",min:1,max:s.value,value:a.value,disabled:e.disabled,class:No.normalizeClass(y.value),onChange:g,onKeyup:No.withKeys(g,["enter"])},null,42,_hoisted_11$5)])):No.createCommentVNode("",!0)],2))}}),_hoisted_1$5={"data-slot":"table-container",class:"relative w-full overflow-auto"},_sfc_main$l=No.defineComponent({__name:"Table",props:{class:{}},setup(e){const t=e;return(n,i)=>(No.openBlock(),No.createElementBlock("div",_hoisted_1$5,[No.createElementVNode("table",{"data-slot":"table",class:No.normalizeClass(No.unref(cn)("w-full caption-bottom text-sm",t.class))},[No.renderSlot(n.$slots,"default")],2)]))}}),_sfc_main$k=No.defineComponent({__name:"TableBody",props:{class:{}},setup(e){const t=e;return(n,i)=>(No.openBlock(),No.createElementBlock("tbody",{"data-slot":"table-body",class:No.normalizeClass(No.unref(cn)("[&_tr:last-child]:border-0",t.class))},[No.renderSlot(n.$slots,"default")],2))}}),_sfc_main$j=No.defineComponent({__name:"TableCell",props:{class:{}},setup(e){const t=e;return(n,i)=>(No.openBlock(),No.createElementBlock("td",{"data-slot":"table-cell",class:No.normalizeClass(No.unref(cn)("p-2 align-middle whitespace-nowrap [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",t.class))},[No.renderSlot(n.$slots,"default")],2))}});function toValue(e){return typeof e=="function"?e():No.unref(e)}function toReactive(e){if(!No.isRef(e))return No.reactive(e);const t=new Proxy({},{get(n,i,s){return No.unref(Reflect.get(e.value,i,s))},set(n,i,s){return No.isRef(e.value[i])&&!No.isRef(s)?e.value[i].value=s:e.value[i]=s,!0},deleteProperty(n,i){return Reflect.deleteProperty(e.value,i)},has(n,i){return Reflect.has(e.value,i)},ownKeys(){return Object.keys(e.value)},getOwnPropertyDescriptor(){return{enumerable:!0,configurable:!0}}});return No.reactive(t)}function reactiveComputed(e){return toReactive(No.computed(e))}function reactiveOmit(e,...t){const n=t.flat(),i=n[0];return reactiveComputed(()=>Object.fromEntries(typeof i=="function"?Object.entries(No.toRefs(e)).filter(([s,a])=>!i(toValue(a),s)):Object.entries(No.toRefs(e)).filter(s=>!n.includes(s[0]))))}typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const isDef$1=e=>typeof e<"u";function cloneFnJSON$1(e){return JSON.parse(JSON.stringify(e))}function useVModel$1(e,t,n,i={}){var s,a,o;const{clone:l=!1,passive:c=!1,eventName:u,deep:d=!1,defaultValue:p,shouldEmit:h}=i,y=No.getCurrentInstance(),f=n||y?.emit||((s=y?.$emit)==null?void 0:s.bind(y))||((o=(a=y?.proxy)==null?void 0:a.$emit)==null?void 0:o.bind(y?.proxy));let m=u;m=m||`update:${t.toString()}`;const C=v=>l?typeof l=="function"?l(v):cloneFnJSON$1(v):v,g=()=>isDef$1(e[t])?C(e[t]):p,b=v=>{h?h(v)&&f(m,v):f(m,v)};if(c){const v=g(),N=No.ref(v);let w=!1;return No.watch(()=>e[t],E=>{w||(w=!0,N.value=C(E),No.nextTick(()=>w=!1))}),No.watch(N,E=>{!w&&(E!==e[t]||d)&&b(E)},{deep:d}),N}else return No.computed({get(){return g()},set(v){b(v)}})}const _sfc_main$i=No.defineComponent({__name:"TableRow",props:{class:{}},setup(e){const t=e;return(n,i)=>(No.openBlock(),No.createElementBlock("tr",{"data-slot":"table-row",class:No.normalizeClass(No.unref(cn)("hover:bg-muted/50 data-[state=selected]:bg-muted border-b transition-colors",t.class))},[No.renderSlot(n.$slots,"default")],2))}}),_sfc_main$h=No.defineComponent({__name:"TableHead",props:{class:{}},setup(e){const t=e;return(n,i)=>(No.openBlock(),No.createElementBlock("th",{"data-slot":"table-head",class:No.normalizeClass(No.unref(cn)("text-foreground h-10 px-2 text-left align-middle font-medium whitespace-nowrap [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",t.class))},[No.renderSlot(n.$slots,"default")],2))}}),_sfc_main$g=No.defineComponent({__name:"TableHeader",props:{class:{}},setup(e){const t=e;return(n,i)=>(No.openBlock(),No.createElementBlock("thead",{"data-slot":"table-header",class:No.normalizeClass(No.unref(cn)("[&_tr]:border-b",t.class))},[No.renderSlot(n.$slots,"default")],2))}}),falsyToString=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,cx=clsx,cva=(e,t)=>n=>{var i;if(t?.variants==null)return cx(e,n?.class,n?.className);const{variants:s,defaultVariants:a}=t,o=Object.keys(s).map(u=>{const d=n?.[u],p=a?.[u];if(d===null)return null;const h=falsyToString(d)||falsyToString(p);return s[u][h]}),l=n&&Object.entries(n).reduce((u,d)=>{let[p,h]=d;return h===void 0||(u[p]=h),u},{}),c=t==null||(i=t.compoundVariants)===null||i===void 0?void 0:i.reduce((u,d)=>{let{class:p,className:h,...y}=d;return Object.entries(y).every(f=>{let[m,C]=f;return Array.isArray(C)?C.includes({...a,...l}[m]):{...a,...l}[m]===C})?[...u,p,h]:u},[]);return cx(e,o,c,n?.class,n?.className)};function createContext(e,t){const n=`${e}Context`,i=Symbol(n);return[o=>{const l=No.inject(i,o);if(l||l===null)return l;throw new Error(`Injection \`${i.toString()}\` not found. Component must be used within ${Array.isArray(e)?`one of the following components: ${e.join(", ")}`:`\`${e}\``}`)},o=>(No.provide(i,o),o)]}function isNullish(e){return e==null}function renderSlotFragments(e){return e?e.flatMap(t=>t.type===No.Fragment?renderSlotFragments(t.children):[t]):[]}typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const isDef=e=>typeof e<"u";function unrefElement(e){var t;const n=No.toValue(e);return(t=n?.$el)!=null?t:n}function cloneFnJSON(e){return JSON.parse(JSON.stringify(e))}function useVModel(e,t,n,i={}){var s,a,o;const{clone:l=!1,passive:c=!1,eventName:u,deep:d=!1,defaultValue:p,shouldEmit:h}=i,y=No.getCurrentInstance(),f=n||y?.emit||((s=y?.$emit)==null?void 0:s.bind(y))||((o=(a=y?.proxy)==null?void 0:a.$emit)==null?void 0:o.bind(y?.proxy));let m=u;t||(t="modelValue"),m=m||`update:${t.toString()}`;const C=v=>l?typeof l=="function"?l(v):cloneFnJSON(v):v,g=()=>isDef(e[t])?C(e[t]):p,b=v=>{h?h(v)&&f(m,v):f(m,v)};if(c){const v=g(),N=No.ref(v);let w=!1;return No.watch(()=>e[t],E=>{w||(w=!0,N.value=C(E),No.nextTick(()=>w=!1))}),No.watch(N,E=>{!w&&(E!==e[t]||d)&&b(E)},{deep:d}),N}else return No.computed({get(){return g()},set(v){b(v)}})}function useForwardExpose(){const e=No.getCurrentInstance(),t=No.ref(),n=No.computed(()=>["#text","#comment"].includes(t.value?.$el.nodeName)?t.value?.$el.nextElementSibling:unrefElement(t)),i=Object.assign({},e.exposed),s={};for(const o in e.props)Object.defineProperty(s,o,{enumerable:!0,configurable:!0,get:()=>e.props[o]});if(Object.keys(i).length>0)for(const o in i)Object.defineProperty(s,o,{enumerable:!0,configurable:!0,get:()=>i[o]});Object.defineProperty(s,"$el",{enumerable:!0,configurable:!0,get:()=>e.vnode.el}),e.exposed=s;function a(o){t.value=o,o&&(Object.defineProperty(s,"$el",{enumerable:!0,configurable:!0,get:()=>o instanceof Element?o:o.$el}),e.exposed=s)}return{forwardRef:a,currentRef:t,currentElement:n}}const Slot=No.defineComponent({name:"PrimitiveSlot",inheritAttrs:!1,setup(e,{attrs:t,slots:n}){return()=>{if(!n.default)return null;const i=renderSlotFragments(n.default()),s=i.findIndex(c=>c.type!==No.Comment);if(s===-1)return i;const a=i[s];delete a.props?.ref;const o=a.props?No.mergeProps(t,a.props):t,l=No.cloneVNode({...a,props:{}},o);return i.length===1?l:(i[s]=l,i)}}}),SELF_CLOSING_TAGS=["area","img","input"],Primitive=No.defineComponent({name:"Primitive",inheritAttrs:!1,props:{asChild:{type:Boolean,default:!1},as:{type:[String,Object],default:"div"}},setup(e,{attrs:t,slots:n}){const i=e.asChild?"template":e.as;return typeof i=="string"&&SELF_CLOSING_TAGS.includes(i)?()=>No.h(i,t):i!=="template"?()=>No.h(e.as,t,{default:n.default}):()=>No.h(Slot,t,{default:n.default})}}),DEFAULT_MAX=100,[injectProgressRootContext,provideProgressRootContext]=createContext("ProgressRoot"),isNumber$1=e=>typeof e=="number";function validateValue(e,t){return isNullish(e)||isNumber$1(e)&&!Number.isNaN(e)&&e<=t&&e>=0?e:(console.error(`Invalid prop \`value\` of value \`${e}\` supplied to \`ProgressRoot\`. The \`value\` prop must be:
|
|
9
9
|
- a positive number
|
|
10
10
|
- less than the value passed to \`max\` (or ${DEFAULT_MAX} if no \`max\` prop is set)
|
|
11
11
|
- \`null\` or \`undefined\` if the progress is indeterminate.
|
|
12
12
|
|
|
13
|
-
Defaulting to \`null\`.`),null)}function validateMax(e){return isNumber$1(e)&&!Number.isNaN(e)&&e>0?e:(console.error(`Invalid prop \`max\` of value \`${e}\` supplied to \`ProgressRoot\`. Only numbers greater than 0 are valid max values. Defaulting to \`${DEFAULT_MAX}\`.`),DEFAULT_MAX)}var ProgressRoot_vue_vue_type_script_setup_true_lang_default=No.defineComponent({__name:"ProgressRoot",props:{modelValue:{type:[Number,null],required:!1},max:{type:Number,required:!1,default:DEFAULT_MAX},getValueLabel:{type:Function,required:!1,default:(e,t)=>isNumber$1(e)?`${Math.round(e/t*DEFAULT_MAX)}%`:void 0},getValueText:{type:Function,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:["update:modelValue","update:max"],setup(e,{emit:t}){const n=e,i=t;useForwardExpose();const s=useVModel(n,"modelValue",i,{passive:n.modelValue===void 0}),a=useVModel(n,"max",i,{passive:n.max===void 0});No.watch(()=>s.value,async l=>{const c=validateValue(l,n.max);c!==l&&(await No.nextTick(),s.value=c)},{immediate:!0}),No.watch(()=>n.max,l=>{const c=validateMax(n.max);c!==l&&(a.value=c)},{immediate:!0});const o=No.computed(()=>isNullish(s.value)?"indeterminate":s.value===a.value?"complete":"loading");return provideProgressRootContext({modelValue:s,max:a,progressState:o}),(l,c)=>(No.openBlock(),No.createBlock(No.unref(Primitive),{"as-child":l.asChild,as:l.as,"aria-valuemax":No.unref(a),"aria-valuemin":0,"aria-valuenow":isNumber$1(No.unref(s))?No.unref(s):void 0,"aria-valuetext":l.getValueText?.(No.unref(s),No.unref(a)),"aria-label":l.getValueLabel(No.unref(s),No.unref(a)),role:"progressbar","data-state":o.value,"data-value":No.unref(s)??void 0,"data-max":No.unref(a)},{default:No.withCtx(()=>[No.renderSlot(l.$slots,"default",{modelValue:No.unref(s)})]),_:3},8,["as-child","as","aria-valuemax","aria-valuenow","aria-valuetext","aria-label","data-state","data-value","data-max"]))}}),ProgressRoot_default=ProgressRoot_vue_vue_type_script_setup_true_lang_default,ProgressIndicator_vue_vue_type_script_setup_true_lang_default=No.defineComponent({__name:"ProgressIndicator",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){const t=e,n=injectProgressRootContext();return useForwardExpose(),(i,s)=>(No.openBlock(),No.createBlock(No.unref(Primitive),No.mergeProps(t,{"data-state":No.unref(n).progressState.value,"data-value":No.unref(n).modelValue?.value??void 0,"data-max":No.unref(n).max.value}),{default:No.withCtx(()=>[No.renderSlot(i.$slots,"default")]),_:3},16,["data-state","data-value","data-max"]))}}),ProgressIndicator_default=ProgressIndicator_vue_vue_type_script_setup_true_lang_default,BaseSeparator_vue_vue_type_script_setup_true_lang_default=No.defineComponent({__name:"BaseSeparator",props:{orientation:{type:String,required:!1,default:"horizontal"},decorative:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){const t=e,n=["horizontal","vertical"];function i(l){return n.includes(l)}const s=No.computed(()=>i(t.orientation)?t.orientation:"horizontal"),a=No.computed(()=>s.value==="vertical"?t.orientation:void 0),o=No.computed(()=>t.decorative?{role:"none"}:{"aria-orientation":a.value,role:"separator"});return(l,c)=>(No.openBlock(),No.createBlock(No.unref(Primitive),No.mergeProps({as:l.as,"as-child":l.asChild,"data-orientation":s.value},o.value),{default:No.withCtx(()=>[No.renderSlot(l.$slots,"default")]),_:3},16,["as","as-child","data-orientation"]))}}),BaseSeparator_default=BaseSeparator_vue_vue_type_script_setup_true_lang_default,Separator_vue_vue_type_script_setup_true_lang_default=No.defineComponent({__name:"Separator",props:{orientation:{type:String,required:!1,default:"horizontal"},decorative:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){const t=e;return(n,i)=>(No.openBlock(),No.createBlock(BaseSeparator_default,No.normalizeProps(No.guardReactiveProps(t)),{default:No.withCtx(()=>[No.renderSlot(n.$slots,"default")]),_:3},16))}}),Separator_default=Separator_vue_vue_type_script_setup_true_lang_default;const _sfc_main$f=No.defineComponent({__name:"Button",props:{variant:{},size:{},class:{},asChild:{type:Boolean},as:{default:"button"}},setup(e){const t=e;return(n,i)=>(No.openBlock(),No.createBlock(No.unref(Primitive),{"data-slot":"button",as:e.as,"as-child":e.asChild,class:No.normalizeClass(No.unref(cn)(No.unref(buttonVariants)({variant:e.variant,size:e.size}),t.class))},{default:No.withCtx(()=>[No.renderSlot(n.$slots,"default")]),_:3},8,["as","as-child","class"]))}}),buttonVariants=cva("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-white hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2 has-[>svg]:px-3",sm:"h-8 rounded-md gap-1.5 px-3 has-[>svg]:px-2.5",lg:"h-10 rounded-md px-6 has-[>svg]:px-4",icon:"size-9","icon-sm":"size-8","icon-lg":"size-10"}},defaultVariants:{variant:"default",size:"default"}}),_sfc_main$e=No.defineComponent({__name:"Input",props:{defaultValue:{},modelValue:{},class:{}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,s=useVModel$1(n,"modelValue",t,{passive:!0,defaultValue:n.defaultValue});return(a,o)=>No.withDirectives((No.openBlock(),No.createElementBlock("input",{"onUpdate:modelValue":o[0]||(o[0]=l=>No.isRef(s)?s.value=l:null),"data-slot":"input",class:No.normalizeClass(No.unref(cn)("file:text-foreground placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground dark:bg-input/30 border-input h-9 w-full min-w-0 rounded-md border bg-transparent px-3 py-1 text-base shadow-xs transition-[color,box-shadow] outline-none file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm","focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]","aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",n.class))},null,2)),[[No.vModelText,No.unref(s)]])}}),_hoisted_1$4={class:"flex items-center justify-between gap-4 mb-4"},_hoisted_2$4={class:"flex items-center gap-2"},_hoisted_3$4={key:0,class:"relative"},_hoisted_4$4={key:1,class:"flex items-center gap-2"},_hoisted_5$4={key:0,class:"text-sm text-muted-foreground"},_hoisted_6$4={class:"rounded-md border"},_hoisted_7$4=["checked","indeterminate"],_hoisted_8$4={class:"flex items-center gap-1"},_hoisted_9$4={key:0,class:"flex flex-col"},_hoisted_10$4={class:"flex items-center justify-center space-x-2"},_hoisted_11$4=["checked","onChange"],_hoisted_12$4={key:0},_hoisted_13$4={key:1},_hoisted_14$4={class:"flex items-center justify-end space-x-1"},_hoisted_15$3={key:0,class:"mt-4"},_hoisted_16$2={class:"flex items-center justify-between"},_hoisted_17$2={class:"text-sm text-muted-foreground"},_hoisted_18$2={class:"text-sm text-muted-foreground"},_sfc_main$d=No.defineComponent({__name:"NSDataTable",props:{data:{default:()=>[]},columns:{default:()=>[]},actions:{default:()=>[]},loading:{type:Boolean,default:!1},selectable:{type:Boolean,default:!1},searchable:{type:Boolean,default:!1},filterable:{type:Boolean,default:!1},pagination:{type:Boolean,default:!1},currentPage:{default:1},itemsPerPage:{default:10},totalItems:{default:0},showTotal:{type:Boolean,default:!0},emptyMessage:{default:"No data available"},loadingMessage:{default:"Loading..."},maxHeight:{},striped:{type:Boolean,default:!0},hover:{type:Boolean,default:!0},class:{},tableClass:{},headerClass:{},bodyClass:{}},emits:["update:currentPage","update:itemsPerPage","selection-change","row-click","sort-change","filter-change","search"],setup(e,{emit:t}){const n=e,i=t,s=No.ref([]),a=No.ref(""),o=No.ref(""),l=No.ref(null),c=No.ref({}),d=No.computed(()=>{let _=[...n.data||[]];if(a.value&&n.searchable){const k=a.value.toLowerCase();_=_.filter(A=>n.columns.some(F=>{const B=A[F.key];return B&&B.toString().toLowerCase().includes(k)}))}return n.filterable&&Object.entries(c.value).forEach(([k,A])=>{A&&(_=_.filter(F=>{const B=F[k];return B&&B.toString().toLowerCase().includes(A.toString().toLowerCase())}))}),o.value&&l.value&&_.sort((k,A)=>{const F=k[o.value],B=A[o.value];if(F===B)return 0;let I=0;return F<B&&(I=-1),F>B&&(I=1),l.value==="asc"?I:-I}),_}),u=No.computed(()=>{if(!n.pagination)return d.value;const _=(n.currentPage-1)*n.itemsPerPage,k=_+n.itemsPerPage;return d.value.slice(_,k)}),p=_=>{const k=s.value.findIndex(A=>A===_);k>-1?s.value.splice(k,1):s.value.push(_),i("selection-change",s.value)},h=()=>{s.value.length===u.value.length?s.value=[]:s.value=[...u.value],i("selection-change",s.value)},y=_=>{_.sortable&&(o.value===_.key?l.value==="asc"?l.value="desc":(l.value=null,o.value=""):(o.value=_.key,l.value="asc"),i("sort-change",o.value,l.value))},f=(_,k)=>{i("row-click",_,k)},m=_=>{a.value=_,i("search",_)},C=(_,k)=>{c.value[_]=k,i("filter-change",c.value)},g=No.computed(()=>u.value.length>0&&s.value.length===u.value.length),b=No.computed(()=>s.value.length>0&&s.value.length<u.value.length),v=No.computed(()=>cn("w-full space-y-4",n.class)),N=No.computed(()=>cn("w-full",n.tableClass)),w=No.computed(()=>cn("[&_tr]:border-b",n.headerClass)),E=No.computed(()=>{const _="[&_tr:last-child]:border-0",k={"[&_tr]:border-b":n.striped,"[&_tr:nth-child(even)]:bg-muted/50":n.striped,"[&_tr:hover:bg-muted/50]:not(.selected)":n.hover};return cn(_,k,n.bodyClass)});return No.watch(()=>n.currentPage,()=>{s.value=[],i("selection-change",s.value)}),(_,k)=>(No.openBlock(),No.createElementBlock("div",{class:No.normalizeClass(v.value)},[No.createElementVNode("div",_hoisted_1$4,[No.createElementVNode("div",_hoisted_2$4,[e.searchable?(No.openBlock(),No.createElementBlock("div",_hoisted_3$4,[No.createVNode(No.unref(lucideVueNext.Search),{class:"absolute left-3 top-1/2 transform -translate-y-1/2 h-4 w-4 text-muted-foreground"}),No.createVNode(No.unref(_sfc_main$e),{"model-value":a.value,"onUpdate:modelValue":m,placeholder:"Search...",class:"pl-9 w-64"},null,8,["model-value"])])):No.createCommentVNode("",!0),e.filterable?(No.openBlock(),No.createElementBlock("div",_hoisted_4$4,[No.createVNode(No.unref(lucideVueNext.Filter),{class:"h-4 w-4 text-muted-foreground"}),(No.openBlock(!0),No.createElementBlock(No.Fragment,null,No.renderList(e.columns.filter(A=>A.filterable),A=>(No.openBlock(),No.createElementBlock("div",{key:A.key},[No.createVNode(No.unref(_sfc_main$e),{"model-value":c.value[A.key],"onUpdate:modelValue":F=>C(A.key,F),placeholder:`Filter ${A.label}...`,class:"w-32"},null,8,["model-value","onUpdate:modelValue","placeholder"])]))),128))])):No.createCommentVNode("",!0)]),e.showTotal?(No.openBlock(),No.createElementBlock("div",_hoisted_5$4,No.toDisplayString(d.value.length)+" items total ",1)):No.createCommentVNode("",!0)]),No.createElementVNode("div",_hoisted_6$4,[No.createVNode(No.unref(_sfc_main$l),{class:No.normalizeClass(N.value)},{default:No.withCtx(()=>[No.createVNode(No.unref(_sfc_main$g),{class:No.normalizeClass(w.value)},{default:No.withCtx(()=>[No.createVNode(No.unref(_sfc_main$i),null,{default:No.withCtx(()=>[e.selectable?(No.openBlock(),No.createBlock(No.unref(_sfc_main$h),{key:0,class:"w-12"},{default:No.withCtx(()=>[No.createElementVNode("input",{type:"checkbox",checked:g.value,indeterminate:b.value,onChange:h,class:"rounded border-gray-300"},null,40,_hoisted_7$4)]),_:1})):No.createCommentVNode("",!0),(No.openBlock(!0),No.createElementBlock(No.Fragment,null,No.renderList(e.columns,A=>(No.openBlock(),No.createBlock(No.unref(_sfc_main$h),{key:A.key,class:No.normalizeClass(No.unref(cn)("relative",{"text-left":A.align==="left"||!A.align,"text-center":A.align==="center","text-right":A.align==="right","cursor-pointer hover:bg-muted/50":A.sortable})),style:No.normalizeStyle({width:A.width}),onClick:F=>y(A)},{default:No.withCtx(()=>[No.createElementVNode("div",_hoisted_8$4,[No.createTextVNode(No.toDisplayString(A.label)+" ",1),A.sortable?(No.openBlock(),No.createElementBlock("div",_hoisted_9$4,[No.createVNode(No.unref(lucideVueNext.ChevronUp),{class:No.normalizeClass(No.unref(cn)("h-3 w-3",o.value===A.key&&l.value==="asc"?"text-primary":"text-muted-foreground"))},null,8,["class"]),No.createVNode(No.unref(lucideVueNext.ChevronDown),{class:No.normalizeClass(No.unref(cn)("h-3 w-3 -mt-1",o.value===A.key&&l.value==="desc"?"text-primary":"text-muted-foreground"))},null,8,["class"])])):No.createCommentVNode("",!0)])]),_:2},1032,["class","style","onClick"]))),128)),e.actions.length>0?(No.openBlock(),No.createBlock(No.unref(_sfc_main$h),{key:1,class:"w-16"},{default:No.withCtx(()=>[...k[0]||(k[0]=[No.createElementVNode("span",{class:"sr-only"},"Actions",-1)])]),_:1})):No.createCommentVNode("",!0)]),_:1})]),_:1},8,["class"]),No.createVNode(No.unref(_sfc_main$k),{class:No.normalizeClass(E.value)},{default:No.withCtx(()=>[e.loading?(No.openBlock(),No.createBlock(No.unref(_sfc_main$i),{key:0},{default:No.withCtx(()=>[No.createVNode(No.unref(_sfc_main$j),{colspan:e.columns.length+(e.selectable?1:0)+(e.actions.length>0?1:0),class:"text-center py-8"},{default:No.withCtx(()=>[No.createElementVNode("div",_hoisted_10$4,[k[1]||(k[1]=No.createElementVNode("div",{class:"animate-spin rounded-full h-4 w-4 border-b-2 border-primary"},null,-1)),No.createElementVNode("span",null,No.toDisplayString(e.loadingMessage),1)])]),_:1},8,["colspan"])]),_:1})):u.value.length===0?(No.openBlock(),No.createBlock(No.unref(_sfc_main$i),{key:1},{default:No.withCtx(()=>[No.createVNode(No.unref(_sfc_main$j),{colspan:e.columns.length+(e.selectable?1:0)+(e.actions.length>0?1:0),class:"text-center py-8"},{default:No.withCtx(()=>[No.createTextVNode(No.toDisplayString(e.emptyMessage),1)]),_:1},8,["colspan"])]),_:1})):(No.openBlock(!0),No.createElementBlock(No.Fragment,{key:2},No.renderList(u.value,(A,F)=>(No.openBlock(),No.createBlock(No.unref(_sfc_main$i),{key:`row-${F}`,class:No.normalizeClass([{selected:s.value.includes(A)},"cursor-pointer"]),onClick:B=>f(A,F)},{default:No.withCtx(()=>[e.selectable?(No.openBlock(),No.createBlock(No.unref(_sfc_main$j),{key:0,class:"w-12"},{default:No.withCtx(()=>[No.createElementVNode("input",{type:"checkbox",checked:s.value.includes(A),onChange:B=>p(A),class:"rounded border-gray-300"},null,40,_hoisted_11$4)]),_:2},1024)):No.createCommentVNode("",!0),(No.openBlock(!0),No.createElementBlock(No.Fragment,null,No.renderList(e.columns,B=>(No.openBlock(),No.createBlock(No.unref(_sfc_main$j),{key:B.key,class:No.normalizeClass(No.unref(cn)({"text-left":B.align==="left"||!B.align,"text-center":B.align==="center","text-right":B.align==="right"}))},{default:No.withCtx(()=>[No.renderSlot(_.$slots,`cell-${B.key}`,{row:A,value:A[B.key],column:B,index:F},()=>[B.render?(No.openBlock(),No.createElementBlock("span",_hoisted_12$4,No.toDisplayString(B.render(A[B.key],A,F)),1)):(No.openBlock(),No.createElementBlock("span",_hoisted_13$4,No.toDisplayString(A[B.key]),1))])]),_:2},1032,["class"]))),128)),e.actions.length>0?(No.openBlock(),No.createBlock(No.unref(_sfc_main$j),{key:1},{default:No.withCtx(()=>[No.createElementVNode("div",_hoisted_14$4,[(No.openBlock(!0),No.createElementBlock(No.Fragment,null,No.renderList(e.actions,B=>(No.openBlock(),No.createBlock(No.unref(_sfc_main$f),{key:B.key,variant:B.variant||"ghost",size:_.sm,disabled:B.disabled?B.disabled(A):!1,onClick:No.withModifiers(I=>B.onClick(A,F),["stop"])},{default:No.withCtx(()=>[B.icon?(No.openBlock(),No.createBlock(No.resolveDynamicComponent(B.icon),{key:0,class:"h-4 w-4"})):No.createCommentVNode("",!0),No.createTextVNode(" "+No.toDisplayString(B.label),1)]),_:2},1032,["variant","size","disabled","onClick"]))),128))])]),_:2},1024)):No.createCommentVNode("",!0)]),_:2},1032,["class","onClick"]))),128))]),_:3},8,["class"])]),_:3},8,["class"])]),e.pagination?(No.openBlock(),No.createElementBlock("div",_hoisted_15$3,[No.renderSlot(_.$slots,"pagination",{currentPage:e.currentPage,totalItems:d.value.length},()=>[No.createElementVNode("div",_hoisted_16$2,[No.createElementVNode("div",_hoisted_17$2," Showing "+No.toDisplayString((e.currentPage-1)*e.itemsPerPage+1)+" to "+No.toDisplayString(Math.min(e.currentPage*e.itemsPerPage,d.value.length))+" of "+No.toDisplayString(d.value.length)+" items ",1),No.createElementVNode("div",_hoisted_18$2," Page "+No.toDisplayString(e.currentPage)+" of "+No.toDisplayString(Math.ceil(d.value.length/e.itemsPerPage)),1)])])])):No.createCommentVNode("",!0)],2))}}),_sfc_main$c=No.defineComponent({__name:"Separator",props:{orientation:{default:"horizontal"},decorative:{type:Boolean,default:!0},asChild:{type:Boolean},as:{},class:{}},setup(e){const t=e,n=reactiveOmit(t,"class");return(i,s)=>(No.openBlock(),No.createBlock(No.unref(Separator_default),No.mergeProps({"data-slot":"separator"},No.unref(n),{class:No.unref(cn)("bg-border shrink-0 data-[orientation=horizontal]:h-px data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full data-[orientation=vertical]:w-px",t.class)}),null,16,["class"]))}}),_hoisted_1$3={key:0,class:"mb-8"},_hoisted_2$3={class:"relative h-2 w-full overflow-hidden rounded-full bg-secondary"},_hoisted_3$3={class:"mt-2 text-sm text-muted-foreground"},_hoisted_4$3=["onClick"],_hoisted_5$3={key:2},_hoisted_6$3={class:"text-left"},_hoisted_7$3={class:"font-medium text-sm"},_hoisted_8$3={key:0,class:"text-xs text-muted-foreground"},_hoisted_9$3={class:"space-y-6"},_hoisted_10$3={class:"space-y-4"},_hoisted_11$3={class:"text-xl font-semibold"},_hoisted_12$3={key:0,class:"text-muted-foreground"},_hoisted_13$3={class:"text-sm text-muted-foreground"},_hoisted_14$3={class:"flex gap-2"},_hoisted_15$2={class:"flex gap-2"},_sfc_main$b=No.defineComponent({__name:"NSWizard",props:{modelValue:{default:0},steps:{default:()=>[]},vertical:{type:Boolean,default:!1},showStepNumbers:{type:Boolean,default:!0},showStepIcons:{type:Boolean,default:!1},showNavigation:{type:Boolean,default:!0},showProgressBar:{type:Boolean,default:!0},allowSkip:{type:Boolean,default:!1},hidePreviousOnFirst:{type:Boolean,default:!0},hideNextOnLast:{type:Boolean,default:!1},finishButtonText:{default:"Finish"},nextButtonText:{default:"Next"},previousButtonText:{default:"Previous"},skipButtonText:{default:"Skip"},disabled:{type:Boolean,default:!1},class:{},stepClass:{},navigationClass:{},contentClass:{}},emits:["update:modelValue","step-change","finish","skip","validate"],setup(e,{emit:t}){const n=e,i=t,s=No.computed({get:()=>n.modelValue||0,set:k=>{if(k>=0&&k<n.steps.length&&!n.disabled){const A=s.value;n.steps[A]?.onLeave&&n.steps[A].onLeave(),i("update:modelValue",k),i("step-change",k,A),n.steps[k]?.onEnter&&n.steps[k].onEnter()}}}),a=No.computed(()=>n.steps[s.value]||{}),o=No.computed(()=>s.value===0),l=No.computed(()=>s.value===n.steps.length-1),c=No.computed(()=>(s.value+1)/n.steps.length*100),d=No.computed(()=>cn("w-full",n.class)),u=No.computed(()=>cn("flex",n.vertical?"flex-col":"flex-col lg:flex-row gap-8")),p=No.computed(()=>cn("flex",n.vertical?"flex-col space-y-4":"flex-row lg:flex-col lg:space-y-4")),h=No.computed(()=>cn("flex-1 min-w-0",n.contentClass)),y=No.computed(()=>cn("flex justify-between items-center pt-6",n.navigationClass)),f=No.computed(()=>cn("flex items-center gap-3 cursor-pointer transition-colors",n.stepClass,{"opacity-50 cursor-not-allowed":n.disabled})),m=k=>{const A=n.steps[k];return A?k<s.value?"completed":k===s.value?"active":A.disabled?"disabled":"pending":"disabled"},C=k=>{const A=m(k);return cn("flex items-center justify-center rounded-full transition-colors",{completed:"bg-primary text-primary-foreground",active:"bg-primary text-primary-foreground ring-2 ring-ring ring-offset-2",pending:"bg-muted text-muted-foreground border-2 border-border",disabled:"bg-muted text-muted-foreground opacity-50 border-2 border-border"}[A])},g=No.computed(()=>{if(n.disabled||l.value)return!1;const k=n.steps[s.value];return!(k?.disabled||k?.valid===!1)}),b=No.computed(()=>!(n.disabled||o.value)),v=No.computed(()=>!(n.disabled||!n.allowSkip||n.steps[s.value]?.disabled)),N=async k=>{if(!(k<0||k>=n.steps.length||n.steps[k]?.disabled)){if(k>s.value){const F=n.steps[s.value];if(F?.onValidate)try{const B=await F.onValidate();if(i("validate",s.value,B),!B)return}catch{i("validate",s.value,!1);return}}s.value=k}},w=async()=>{if(!g.value)return;const k=n.steps[s.value];if(k?.onValidate)try{const A=await k.onValidate();if(i("validate",s.value,A),!A)return}catch{i("validate",s.value,!1);return}l.value?i("finish",{}):s.value++},E=()=>{b.value&&s.value--},_=()=>{v.value&&(i("skip",s.value),l.value||s.value++)};return No.watch(s,(k,A)=>{if(k!==A){const F=n.steps[k];F?.onValidate&&F.onValidate().then(B=>{i("validate",k,B)})}},{immediate:!0}),(k,A)=>(No.openBlock(),No.createElementBlock("div",{class:No.normalizeClass(d.value)},[e.showProgressBar?(No.openBlock(),No.createElementBlock("div",_hoisted_1$3,[No.createElementVNode("div",_hoisted_2$3,[No.createElementVNode("div",{class:"h-full w-full bg-primary transition-all duration-300 ease-in-out",style:No.normalizeStyle({width:`${c.value}%`})},null,4)]),No.createElementVNode("div",_hoisted_3$3," Step "+No.toDisplayString(s.value+1)+" of "+No.toDisplayString(e.steps.length),1)])):No.createCommentVNode("",!0),No.createElementVNode("div",{class:No.normalizeClass(u.value)},[No.createElementVNode("div",{class:No.normalizeClass(p.value)},[(No.openBlock(!0),No.createElementBlock(No.Fragment,null,No.renderList(e.steps,(F,B)=>(No.openBlock(),No.createElementBlock("div",{key:F.id,class:No.normalizeClass(f.value),onClick:I=>N(B)},[No.createElementVNode("div",{class:No.normalizeClass([C(B),"w-8 h-8 text-sm font-medium"])},[m(B)==="completed"?(No.openBlock(),No.createBlock(No.unref(lucideVueNext.Check),{key:0,class:"h-4 w-4"})):e.showStepIcons&&F.icon?(No.openBlock(),No.createBlock(No.resolveDynamicComponent(F.icon),{key:1,class:"h-4 w-4"})):e.showStepNumbers?(No.openBlock(),No.createElementBlock("span",_hoisted_5$3,No.toDisplayString(B+1),1)):No.createCommentVNode("",!0)],2),No.createElementVNode("div",_hoisted_6$3,[No.createElementVNode("div",_hoisted_7$3,No.toDisplayString(F.title),1),F.description?(No.openBlock(),No.createElementBlock("div",_hoisted_8$3,No.toDisplayString(F.description),1)):No.createCommentVNode("",!0)])],10,_hoisted_4$3))),128))],2),e.vertical?No.createCommentVNode("",!0):(No.openBlock(),No.createBlock(No.unref(_sfc_main$c),{key:0,orientation:"vertical",class:"hidden lg:block"})),No.createElementVNode("div",{class:No.normalizeClass(h.value)},[No.createElementVNode("div",_hoisted_9$3,[No.renderSlot(k.$slots,`step-${a.value.id}`,{step:a.value,index:s.value,isFirst:o.value,isLast:l.value,next:w,previous:E,skip:_,canGoNext:g.value,canGoPrevious:b.value,canSkip:v.value},()=>[No.createElementVNode("div",_hoisted_10$3,[No.createElementVNode("h2",_hoisted_11$3,No.toDisplayString(a.value.title),1),a.value.description?(No.openBlock(),No.createElementBlock("p",_hoisted_12$3,No.toDisplayString(a.value.description),1)):No.createCommentVNode("",!0),No.createElementVNode("div",_hoisted_13$3," Step "+No.toDisplayString(s.value+1)+" of "+No.toDisplayString(e.steps.length),1)])])]),e.showNavigation?(No.openBlock(),No.createElementBlock("div",{key:0,class:No.normalizeClass(y.value)},[No.createElementVNode("div",_hoisted_14$3,[!e.hidePreviousOnFirst||!o.value?(No.openBlock(),No.createBlock(No.unref(_sfc_main$f),{key:0,variant:"outline",disabled:!b.value,onClick:E},{default:No.withCtx(()=>[No.createVNode(No.unref(lucideVueNext.ChevronLeft),{class:"h-4 w-4"}),No.createTextVNode(" "+No.toDisplayString(e.previousButtonText),1)]),_:1},8,["disabled"])):No.createCommentVNode("",!0),e.allowSkip&&!l.value?(No.openBlock(),No.createBlock(No.unref(_sfc_main$f),{key:1,variant:"ghost",disabled:!v.value,onClick:_},{default:No.withCtx(()=>[No.createTextVNode(No.toDisplayString(e.skipButtonText),1)]),_:1},8,["disabled"])):No.createCommentVNode("",!0)]),No.createElementVNode("div",_hoisted_15$2,[No.createVNode(No.unref(_sfc_main$f),{disabled:!g.value,onClick:w},{default:No.withCtx(()=>[No.createTextVNode(No.toDisplayString(l.value?e.finishButtonText:e.nextButtonText)+" ",1),l.value?(No.openBlock(),No.createBlock(No.unref(lucideVueNext.Check),{key:1,class:"h-4 w-4"})):(No.openBlock(),No.createBlock(No.unref(lucideVueNext.ChevronRight),{key:0,class:"h-4 w-4"}))]),_:1},8,["disabled"])])],2)):No.createCommentVNode("",!0)],2)],2)],2))}}),_sfc_main$a=No.defineComponent({__name:"Card",props:{class:{}},setup(e){const t=e;return(n,i)=>(No.openBlock(),No.createElementBlock("div",{"data-slot":"card",class:No.normalizeClass(No.unref(cn)("bg-card text-card-foreground flex flex-col gap-6 rounded-xl border py-6 shadow-sm",t.class))},[No.renderSlot(n.$slots,"default")],2))}}),_sfc_main$9=No.defineComponent({__name:"CardContent",props:{class:{}},setup(e){const t=e;return(n,i)=>(No.openBlock(),No.createElementBlock("div",{"data-slot":"card-content",class:No.normalizeClass(No.unref(cn)("px-6",t.class))},[No.renderSlot(n.$slots,"default")],2))}}),_sfc_main$8=No.defineComponent({__name:"CardDescription",props:{class:{}},setup(e){const t=e;return(n,i)=>(No.openBlock(),No.createElementBlock("p",{"data-slot":"card-description",class:No.normalizeClass(No.unref(cn)("text-muted-foreground text-sm",t.class))},[No.renderSlot(n.$slots,"default")],2))}}),_sfc_main$7=No.defineComponent({__name:"CardHeader",props:{class:{}},setup(e){const t=e;return(n,i)=>(No.openBlock(),No.createElementBlock("div",{"data-slot":"card-header",class:No.normalizeClass(No.unref(cn)("@container/card-header grid auto-rows-min grid-rows-[auto_auto] items-start gap-1.5 px-6 has-data-[slot=card-action]:grid-cols-[1fr_auto] [.border-b]:pb-6",t.class))},[No.renderSlot(n.$slots,"default")],2))}}),_sfc_main$6=No.defineComponent({__name:"CardTitle",props:{class:{}},setup(e){const t=e;return(n,i)=>(No.openBlock(),No.createElementBlock("h3",{"data-slot":"card-title",class:No.normalizeClass(No.unref(cn)("leading-none font-semibold",t.class))},[No.renderSlot(n.$slots,"default")],2))}}),_sfc_main$5=No.defineComponent({__name:"Skeleton",props:{class:{}},setup(e){const t=e;return(n,i)=>(No.openBlock(),No.createElementBlock("div",{"data-slot":"skeleton",class:No.normalizeClass(No.unref(cn)("animate-pulse rounded-md bg-primary/10",t.class))},null,2))}}),_hoisted_1$2={key:0,class:"space-y-2"},_hoisted_2$2={key:1,class:"flex items-center gap-3 text-muted-foreground"},_hoisted_3$2={key:2,class:"space-y-4"},_hoisted_4$2={class:"flex items-center justify-between py-2 border-b"},_hoisted_5$2={class:"text-sm font-medium"},_hoisted_6$2={class:"flex items-center gap-2"},_hoisted_7$2={key:0,class:"text-destructive"},_hoisted_8$2={key:1,class:"text-green-600"},_hoisted_9$2={key:2,class:"text-destructive"},_hoisted_10$2={class:"space-y-2 py-2"},_hoisted_11$2={class:"flex justify-between"},_hoisted_12$2={class:"text-sm font-medium"},_hoisted_13$2={class:"flex justify-between"},_hoisted_14$2={class:"text-sm"},_hoisted_15$1={class:"flex justify-between"},_hoisted_16$1={class:"text-sm"},_hoisted_17$1={class:"flex gap-2 pt-2"},_hoisted_18$1={key:3},_hoisted_19$1={class:"p-2 text-sm"},_hoisted_20$1={class:"p-2 text-sm"},_hoisted_21$1={class:"p-2 text-sm"},_hoisted_22$1={class:"p-2 text-sm"},_hoisted_23={class:"flex items-center gap-2"},_hoisted_24={class:"p-2 text-sm"},_hoisted_25={class:"flex items-center justify-end gap-1"},_sfc_main$4=No.defineComponent({__name:"NSBackupCard",props:{title:{default:"Backup"},loading:{type:Boolean,default:!1},backups:{default:()=>[]},status:{default:()=>({})},noBackupMessage:{default:"No backups available"},statusLabel:{default:"Status"},statusSuccessLabel:{default:"Enabled"},backupDisabledLabel:{default:"Disabled"},light:{type:Boolean,default:!1},maxHeight:{},class:{}},emits:["backup","restore","delete","enable","disable"],setup(e,{emit:t}){const n=e,i=t,s=No.computed(()=>n.backups.length>0),a=No.computed(()=>n.backups.filter(h=>h.enabled)),o=No.computed(()=>a.value.length===1?a.value[0]:null),l=h=>{switch(h.status){case"success":return lucideVueNext.CheckCircle;case"error":return lucideVueNext.AlertCircle;case"running":return lucideVueNext.Loader2;default:return null}},c=h=>{switch(h.status){case"success":return"text-green-600";case"error":return"text-destructive";case"running":return"text-blue-600";default:return"text-muted-foreground"}};No.computed(()=>cn("w-full",n.class));const d=No.computed(()=>cn("transition-all duration-200 hover:shadow-md",n.light?"bg-background/95":"bg-background")),u=No.computed(()=>cn("w-full overflow-auto",{"max-h-64":n.maxHeight})),p=No.computed(()=>"w-full min-w-[300px]");return(h,y)=>(No.openBlock(),No.createBlock(No.unref(_sfc_main$a),{class:No.normalizeClass(d.value)},{default:No.withCtx(()=>[No.createVNode(No.unref(_sfc_main$7),{class:"pb-3"},{default:No.withCtx(()=>[No.createVNode(No.unref(_sfc_main$6),{class:"flex items-center gap-2"},{default:No.withCtx(()=>[No.createVNode(No.unref(lucideVueNext.Save),{class:"h-5 w-5 text-primary"}),No.createTextVNode(" "+No.toDisplayString(e.title),1)]),_:1})]),_:1}),No.createVNode(No.unref(_sfc_main$9),{class:"space-y-4"},{default:No.withCtx(()=>[e.loading?(No.openBlock(),No.createElementBlock("div",_hoisted_1$2,[No.createVNode(No.unref(_sfc_main$5),{class:"h-4 w-3/4"}),No.createVNode(No.unref(_sfc_main$5),{class:"h-4 w-1/2"})])):s.value?o.value?(No.openBlock(),No.createElementBlock("div",_hoisted_3$2,[No.createElementVNode("div",{class:No.normalizeClass(u.value)},[No.createElementVNode("div",{class:No.normalizeClass(p.value)},[No.createElementVNode("div",_hoisted_4$2,[No.createElementVNode("span",_hoisted_5$2,No.toDisplayString(e.statusLabel),1),No.createElementVNode("div",_hoisted_6$2,[o.value.enabled?e.status[o.value.id]?.success?(No.openBlock(),No.createElementBlock("span",_hoisted_8$2,No.toDisplayString(e.statusSuccessLabel),1)):e.status[o.value.id]?.message?(No.openBlock(),No.createElementBlock("span",_hoisted_9$2,No.toDisplayString(e.status[o.value.id].message),1)):No.createCommentVNode("",!0):(No.openBlock(),No.createElementBlock("span",_hoisted_7$2,No.toDisplayString(e.backupDisabledLabel),1))])]),No.createElementVNode("div",_hoisted_10$2,[No.createElementVNode("div",_hoisted_11$2,[y[3]||(y[3]=No.createElementVNode("span",{class:"text-sm text-muted-foreground"},"Name:",-1)),No.createElementVNode("span",_hoisted_12$2,No.toDisplayString(o.value.name),1)]),No.createElementVNode("div",_hoisted_13$2,[y[4]||(y[4]=No.createElementVNode("span",{class:"text-sm text-muted-foreground"},"Date:",-1)),No.createElementVNode("span",_hoisted_14$2,No.toDisplayString(o.value.date),1)]),No.createElementVNode("div",_hoisted_15$1,[y[5]||(y[5]=No.createElementVNode("span",{class:"text-sm text-muted-foreground"},"Size:",-1)),No.createElementVNode("span",_hoisted_16$1,No.toDisplayString(o.value.size),1)])])],2)],2),No.createElementVNode("div",_hoisted_17$1,[o.value.enabled?(No.openBlock(),No.createBlock(No.unref(_sfc_main$f),{key:0,variant:"outline",size:"sm",onClick:y[0]||(y[0]=f=>i("backup",o.value.id))},{default:No.withCtx(()=>[...y[6]||(y[6]=[No.createTextVNode(" Create Backup ",-1)])]),_:1})):No.createCommentVNode("",!0),o.value.enabled?(No.openBlock(),No.createBlock(No.unref(_sfc_main$f),{key:1,variant:"outline",size:"sm",onClick:y[1]||(y[1]=f=>i("restore",o.value.id))},{default:No.withCtx(()=>[...y[7]||(y[7]=[No.createTextVNode(" Restore ",-1)])]),_:1})):No.createCommentVNode("",!0),No.createVNode(No.unref(_sfc_main$f),{variant:"destructive",size:"sm",onClick:y[2]||(y[2]=f=>i("delete",o.value.id))},{default:No.withCtx(()=>[...y[8]||(y[8]=[No.createTextVNode(" Delete ",-1)])]),_:1})])])):(No.openBlock(),No.createElementBlock("div",_hoisted_18$1,[No.createElementVNode("div",{class:No.normalizeClass(u.value)},[No.createElementVNode("table",{class:No.normalizeClass(p.value)},[y[12]||(y[12]=No.createElementVNode("thead",null,[No.createElementVNode("tr",{class:"border-b"},[No.createElementVNode("th",{class:"text-left p-2 text-sm font-medium"},"Name"),No.createElementVNode("th",{class:"text-left p-2 text-sm font-medium"},"Date"),No.createElementVNode("th",{class:"text-left p-2 text-sm font-medium"},"Size"),No.createElementVNode("th",{class:"text-left p-2 text-sm font-medium"},"Status"),No.createElementVNode("th",{class:"text-right p-2 text-sm font-medium"},"Actions")])],-1)),No.createElementVNode("tbody",null,[(No.openBlock(!0),No.createElementBlock(No.Fragment,null,No.renderList(e.backups,f=>(No.openBlock(),No.createElementBlock("tr",{key:f.id,class:"border-b"},[No.createElementVNode("td",_hoisted_19$1,No.toDisplayString(f.name),1),No.createElementVNode("td",_hoisted_20$1,No.toDisplayString(f.date),1),No.createElementVNode("td",_hoisted_21$1,No.toDisplayString(f.size),1),No.createElementVNode("td",_hoisted_22$1,[No.createElementVNode("div",_hoisted_23,[l(f)?(No.openBlock(),No.createBlock(No.resolveDynamicComponent(l(f)),{key:0,class:No.normalizeClass(No.unref(cn)("h-4 w-4",c(f)))},null,8,["class"])):No.createCommentVNode("",!0),No.createElementVNode("span",{class:No.normalizeClass(c(f))},No.toDisplayString(f.status||"Unknown"),3)])]),No.createElementVNode("td",_hoisted_24,[No.createElementVNode("div",_hoisted_25,[No.createVNode(No.unref(_sfc_main$f),{variant:"ghost",size:"sm",onClick:m=>i("enable",f.id),disabled:f.enabled},{default:No.withCtx(()=>[...y[9]||(y[9]=[No.createTextVNode(" Enable ",-1)])]),_:1},8,["onClick","disabled"]),No.createVNode(No.unref(_sfc_main$f),{variant:"ghost",size:"sm",onClick:m=>i("disable",f.id),disabled:!f.enabled},{default:No.withCtx(()=>[...y[10]||(y[10]=[No.createTextVNode(" Disable ",-1)])]),_:1},8,["onClick","disabled"]),No.createVNode(No.unref(_sfc_main$f),{variant:"ghost",size:"sm",onClick:m=>i("restore",f.id)},{default:No.withCtx(()=>[...y[11]||(y[11]=[No.createTextVNode(" Restore ",-1)])]),_:1},8,["onClick"])])])]))),128))])],2)],2)])):(No.openBlock(),No.createElementBlock("div",_hoisted_2$2,[No.createVNode(No.unref(lucideVueNext.AlertCircle),{class:"h-5 w-5"}),No.createElementVNode("span",null,No.toDisplayString(e.noBackupMessage),1)]))]),_:1})]),_:1},8,["class"]))}}),_sfc_main$3=No.defineComponent({__name:"Badge",props:{asChild:{type:Boolean},as:{},variant:{},class:{}},setup(e){const t=e,n=reactiveOmit(t,"class");return(i,s)=>(No.openBlock(),No.createBlock(No.unref(Primitive),No.mergeProps({"data-slot":"badge",class:No.unref(cn)(No.unref(badgeVariants)({variant:e.variant}),t.class)},No.unref(n)),{default:No.withCtx(()=>[No.renderSlot(i.$slots,"default")]),_:3},16,["class"]))}}),badgeVariants=cva("inline-flex items-center justify-center rounded-full border px-2 py-0.5 text-xs font-medium w-fit whitespace-nowrap shrink-0 [&>svg]:size-3 gap-1 [&>svg]:pointer-events-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive transition-[color,box-shadow] overflow-hidden",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground [a&]:hover:bg-primary/90",secondary:"border-transparent bg-secondary text-secondary-foreground [a&]:hover:bg-secondary/90",destructive:"border-transparent bg-destructive text-white [a&]:hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"text-foreground [a&]:hover:bg-accent [a&]:hover:text-accent-foreground"}},defaultVariants:{variant:"default"}}),_hoisted_1$1={class:"flex items-center justify-between"},_hoisted_2$1={class:"text-lg font-semibold"},_hoisted_3$1={key:0,class:"space-y-3"},_hoisted_4$1={key:1,class:"space-y-3"},_hoisted_5$1={key:0,class:"text-sm text-muted-foreground"},_hoisted_6$1={key:1,class:"flex items-center gap-2"},_hoisted_7$1={class:"text-sm"},_hoisted_8$1={key:2,class:"text-sm text-muted-foreground"},_hoisted_9$1={key:3,class:"grid grid-cols-2 gap-3"},_hoisted_10$1={key:0,class:"text-sm"},_hoisted_11$1={key:1,class:"text-sm"},_hoisted_12$1={key:4,class:"text-sm"},_hoisted_13$1={class:"flex items-center justify-between pt-4 border-t"},_hoisted_14$1={class:"flex gap-2"},_sfc_main$2=No.defineComponent({__name:"NSSystemdServiceCard",props:{title:{default:"Service"},description:{default:""},icon:{},loading:{type:Boolean,default:!1},status:{default:()=>({running:!1,enabled:!1})},serviceName:{default:""},light:{type:Boolean,default:!1},showUptime:{type:Boolean,default:!0},showMetrics:{type:Boolean,default:!1},maxHeight:{},class:{}},emits:["start","stop","restart","enable","disable","view"],setup(e,{emit:t}){const n=e,i=t;No.computed(()=>n.loading?lucideVueNext.Clock:n.status.enabled?n.status.running?lucideVueNext.CheckCircle:lucideVueNext.Info:lucideVueNext.AlertCircle);const s=No.computed(()=>n.loading?"text-muted-foreground":n.status.enabled?n.status.running?"text-green-600":"text-orange-600":"text-destructive"),a=No.computed(()=>n.loading?"secondary":n.status.enabled?n.status.running?"default":"secondary":"destructive"),o=No.computed(()=>n.loading?"Loading...":n.status.enabled?n.status.running?n.status.status||"Running":n.status.status||"Stopped":"Disabled");No.computed(()=>cn("w-full",n.class));const l=No.computed(()=>cn("transition-all duration-200 hover:shadow-md",n.light?"bg-background/95":"bg-background")),c=No.computed(()=>cn("h-8 w-8",s.value));return(d,u)=>(No.openBlock(),No.createBlock(No.unref(_sfc_main$a),{class:No.normalizeClass(l.value)},{default:No.withCtx(()=>[No.createVNode(No.unref(_sfc_main$7),{class:"pb-3"},{default:No.withCtx(()=>[No.createElementVNode("div",_hoisted_1$1,[No.createVNode(No.unref(_sfc_main$6),{class:"flex items-center gap-3"},{default:No.withCtx(()=>[e.icon?(No.openBlock(),No.createBlock(No.resolveDynamicComponent(e.icon),{key:0,class:No.normalizeClass(c.value)},null,8,["class"])):No.createCommentVNode("",!0),No.createElementVNode("div",null,[No.createElementVNode("div",_hoisted_2$1,No.toDisplayString(e.title),1),e.description?(No.openBlock(),No.createBlock(No.unref(_sfc_main$8),{key:0},{default:No.withCtx(()=>[No.createTextVNode(No.toDisplayString(e.description),1)]),_:1})):No.createCommentVNode("",!0)])]),_:1}),No.createVNode(No.unref(_sfc_main$3),{variant:a.value},{default:No.withCtx(()=>[No.createTextVNode(No.toDisplayString(o.value),1)]),_:1},8,["variant"])])]),_:1}),No.createVNode(No.unref(_sfc_main$9),{class:"space-y-4"},{default:No.withCtx(()=>[e.loading?(No.openBlock(),No.createElementBlock("div",_hoisted_3$1,[No.createVNode(No.unref(_sfc_main$5),{class:"h-4 w-3/4"}),No.createVNode(No.unref(_sfc_main$5),{class:"h-4 w-1/2"}),No.createVNode(No.unref(_sfc_main$5),{class:"h-4 w-2/3"})])):(No.openBlock(),No.createElementBlock("div",_hoisted_4$1,[e.serviceName?(No.openBlock(),No.createElementBlock("div",_hoisted_5$1,[u[6]||(u[6]=No.createElementVNode("span",{class:"font-medium"},"Service:",-1)),No.createTextVNode(" "+No.toDisplayString(e.serviceName),1)])):No.createCommentVNode("",!0),e.showUptime&&e.status?.uptime?(No.openBlock(),No.createElementBlock("div",_hoisted_6$1,[No.createVNode(No.unref(lucideVueNext.Clock),{class:"h-4 w-4 text-muted-foreground"}),No.createElementVNode("span",_hoisted_7$1,[u[7]||(u[7]=No.createElementVNode("span",{class:"font-medium"},"Uptime:",-1)),No.createTextVNode(" "+No.toDisplayString(e.status.uptime),1)])])):No.createCommentVNode("",!0),e.status?.lastRestart?(No.openBlock(),No.createElementBlock("div",_hoisted_8$1,[u[8]||(u[8]=No.createElementVNode("span",{class:"font-medium"},"Last restart:",-1)),No.createTextVNode(" "+No.toDisplayString(e.status.lastRestart),1)])):No.createCommentVNode("",!0),e.showMetrics?(No.openBlock(),No.createElementBlock("div",_hoisted_9$1,[e.status?.memory?(No.openBlock(),No.createElementBlock("div",_hoisted_10$1,[u[9]||(u[9]=No.createElementVNode("span",{class:"font-medium"},"Memory:",-1)),No.createTextVNode(" "+No.toDisplayString(e.status.memory),1)])):No.createCommentVNode("",!0),e.status?.cpu?(No.openBlock(),No.createElementBlock("div",_hoisted_11$1,[u[10]||(u[10]=No.createElementVNode("span",{class:"font-medium"},"CPU:",-1)),No.createTextVNode(" "+No.toDisplayString(e.status.cpu),1)])):No.createCommentVNode("",!0)])):No.createCommentVNode("",!0),e.status?.status&&e.status?.status!==o.value?(No.openBlock(),No.createElementBlock("div",_hoisted_12$1,No.toDisplayString(e.status.status),1)):No.createCommentVNode("",!0)])),No.createElementVNode("div",_hoisted_13$1,[No.createElementVNode("div",_hoisted_14$1,[e.status?.enabled&&!e.status?.running?(No.openBlock(),No.createBlock(No.unref(_sfc_main$f),{key:0,variant:"default",size:"sm",onClick:u[0]||(u[0]=p=>i("start",e.serviceName))},{default:No.withCtx(()=>[...u[11]||(u[11]=[No.createTextVNode(" Start ",-1)])]),_:1})):No.createCommentVNode("",!0),e.status?.enabled&&e.status?.running?(No.openBlock(),No.createBlock(No.unref(_sfc_main$f),{key:1,variant:"outline",size:"sm",onClick:u[1]||(u[1]=p=>i("stop",e.serviceName))},{default:No.withCtx(()=>[...u[12]||(u[12]=[No.createTextVNode(" Stop ",-1)])]),_:1})):No.createCommentVNode("",!0),e.status?.enabled?(No.openBlock(),No.createBlock(No.unref(_sfc_main$f),{key:2,variant:"outline",size:"sm",onClick:u[2]||(u[2]=p=>i("restart",e.serviceName))},{default:No.withCtx(()=>[...u[13]||(u[13]=[No.createTextVNode(" Restart ",-1)])]),_:1})):No.createCommentVNode("",!0),e.status?.enabled?No.createCommentVNode("",!0):(No.openBlock(),No.createBlock(No.unref(_sfc_main$f),{key:3,variant:"default",size:"sm",onClick:u[3]||(u[3]=p=>i("enable",e.serviceName))},{default:No.withCtx(()=>[...u[14]||(u[14]=[No.createTextVNode(" Enable ",-1)])]),_:1})),e.status?.enabled?(No.openBlock(),No.createBlock(No.unref(_sfc_main$f),{key:4,variant:"destructive",size:"sm",onClick:u[4]||(u[4]=p=>i("disable",e.serviceName))},{default:No.withCtx(()=>[...u[15]||(u[15]=[No.createTextVNode(" Disable ",-1)])]),_:1})):No.createCommentVNode("",!0)]),No.createVNode(No.unref(_sfc_main$f),{variant:"ghost",size:"sm",onClick:u[5]||(u[5]=p=>i("view",e.serviceName))},{default:No.withCtx(()=>[No.createVNode(No.unref(lucideVueNext.MoreHorizontal),{class:"h-4 w-4"})]),_:1})])]),_:1})]),_:1},8,["class"]))}}),_sfc_main$1=No.defineComponent({__name:"Progress",props:{modelValue:{default:0},max:{},getValueLabel:{},getValueText:{},asChild:{type:Boolean},as:{},class:{}},setup(e){const t=e,n=reactiveOmit(t,"class");return(i,s)=>(No.openBlock(),No.createBlock(No.unref(ProgressRoot_default),No.mergeProps({"data-slot":"progress"},No.unref(n),{class:No.unref(cn)("bg-primary/20 relative h-2 w-full overflow-hidden rounded-full",t.class)}),{default:No.withCtx(()=>[No.createVNode(No.unref(ProgressIndicator_default),{"data-slot":"progress-indicator",class:"bg-primary h-full w-full flex-1 transition-all",style:No.normalizeStyle(`transform: translateX(-${100-(t.modelValue??0)}%);`)},null,8,["style"])]),_:1},16,["class"]))}}),_hoisted_1={class:"flex items-center justify-between"},_hoisted_2={key:0,class:"space-y-3"},_hoisted_3={key:0,class:"space-y-2"},_hoisted_4={class:"flex items-center gap-2 text-sm font-medium"},_hoisted_5={class:"text-xs text-muted-foreground space-y-1"},_hoisted_6={key:1,class:"space-y-2"},_hoisted_7={class:"flex items-center gap-2 text-sm font-medium"},_hoisted_8={class:"text-xs text-muted-foreground space-y-1"},_hoisted_9={key:2,class:"space-y-2"},_hoisted_10={class:"flex items-center gap-2 text-sm font-medium"},_hoisted_11={class:"text-xs text-muted-foreground space-y-1"},_hoisted_12={key:0},_hoisted_13={key:2,class:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-3 pt-4 border-t"},_hoisted_14={key:0},_hoisted_15={class:"text-sm font-medium"},_hoisted_16={key:1},_hoisted_17={class:"text-sm font-medium"},_hoisted_18={key:2},_hoisted_19={class:"text-sm font-medium"},_hoisted_20={key:3},_hoisted_21={class:"text-sm font-medium"},_hoisted_22={key:3,class:"flex items-center gap-3 text-muted-foreground"},_sfc_main=No.defineComponent({__name:"NSSystemInfoCard",props:{title:{default:"System Information"},description:{default:"Current system status and metrics"},metrics:{},loading:{type:Boolean,default:!1},refreshInterval:{},showTemperature:{type:Boolean,default:!1},showLoadAverage:{type:Boolean,default:!0},showUptime:{type:Boolean,default:!0},showProcesses:{type:Boolean,default:!0},showMemory:{type:Boolean,default:!0},showCpu:{type:Boolean,default:!0},showStorage:{type:Boolean,default:!0},refreshable:{type:Boolean,default:!0},light:{type:Boolean,default:!1},maxHeight:{},class:{}},emits:["refresh"],setup(e,{emit:t}){const n=e,i=t,s=No.computed(()=>!!n.metrics),a=No.computed(()=>{if(!n.metrics?.usagePercentage)return"default";const u=n.metrics.usagePercentage;return u>=90?"destructive":u>=80?"warning":u>=60?"default":"success"}),o=No.computed(()=>{if(!n.metrics?.memory?.percentage)return"default";const u=n.metrics.memory.percentage;return u>=90?"destructive":u>=80?"warning":u>=60?"default":"success"}),l=No.computed(()=>{if(!n.metrics?.cpu?.usage)return"default";const u=n.metrics.cpu.usage;return u>=90?"destructive":u>=80?"warning":u>=60?"default":"success"});No.computed(()=>cn("w-full",n.class));const c=No.computed(()=>cn("transition-all duration-200 hover:shadow-md",n.light?"bg-background/95":"bg-background")),d=No.computed(()=>cn("grid gap-4",{"grid-cols-1":!n.showMemory&&!n.showCpu&&!n.showStorage,"grid-cols-2":n.showMemory&&!n.showCpu&&!n.showStorage||!n.showMemory&&n.showCpu&&!n.showStorage||!n.showMemory&&!n.showCpu&&n.showStorage,"grid-cols-3":n.showMemory&&n.showCpu&&!n.showStorage||n.showMemory&&!n.showCpu&&n.showStorage||!n.showMemory&&n.showCpu&&n.showStorage,"lg:grid-cols-4":n.showMemory&&n.showCpu&&n.showStorage}));return(u,p)=>(No.openBlock(),No.createBlock(No.unref(_sfc_main$a),{class:No.normalizeClass(c.value)},{default:No.withCtx(()=>[No.createVNode(No.unref(_sfc_main$7),{class:"pb-3"},{default:No.withCtx(()=>[No.createElementVNode("div",_hoisted_1,[No.createElementVNode("div",null,[No.createVNode(No.unref(_sfc_main$6),{class:"flex items-center gap-2"},{default:No.withCtx(()=>[No.createVNode(No.unref(lucideVueNext.Activity),{class:"h-5 w-5 text-primary"}),No.createTextVNode(" "+No.toDisplayString(e.title),1)]),_:1}),No.createVNode(No.unref(_sfc_main$8),null,{default:No.withCtx(()=>[No.createTextVNode(No.toDisplayString(e.description),1)]),_:1})]),e.refreshable&&!e.loading?(No.openBlock(),No.createBlock(No.unref(_sfc_main$f),{key:0,variant:"ghost",size:"sm",onClick:p[0]||(p[0]=h=>i("refresh"))},{default:No.withCtx(()=>[No.createVNode(No.unref(lucideVueNext.Clock),{class:"h-4 w-4"})]),_:1})):No.createCommentVNode("",!0)])]),_:1}),No.createVNode(No.unref(_sfc_main$9),{class:"space-y-4"},{default:No.withCtx(()=>[e.loading?(No.openBlock(),No.createElementBlock("div",_hoisted_2,[...p[1]||(p[1]=[No.createElementVNode("div",{class:"space-y-2"},[No.createElementVNode("div",{class:"h-2 bg-secondary rounded-full"}),No.createElementVNode("div",{class:"h-2 bg-secondary rounded-full"}),No.createElementVNode("div",{class:"h-2 bg-secondary rounded-full"})],-1)])])):s.value?(No.openBlock(),No.createElementBlock("div",{key:1,class:No.normalizeClass(d.value)},[e.showStorage?(No.openBlock(),No.createElementBlock("div",_hoisted_3,[No.createElementVNode("div",_hoisted_4,[No.createVNode(No.unref(lucideVueNext.HardDrive),{class:"h-4 w-4"}),p[2]||(p[2]=No.createTextVNode(" Storage ",-1))]),No.createVNode(No.unref(_sfc_main$1),{value:e.metrics.usagePercentage,variant:a.value,class:"mb-2"},null,8,["value","variant"]),No.createElementVNode("div",_hoisted_5,[No.createElementVNode("div",null,"Used: "+No.toDisplayString(e.metrics.usedSpace)+" / "+No.toDisplayString(e.metrics.totalSpace),1),No.createElementVNode("div",null,"Free: "+No.toDisplayString(e.metrics.freeSpace),1)])])):No.createCommentVNode("",!0),e.showMemory&&e.metrics?.memory?(No.openBlock(),No.createElementBlock("div",_hoisted_6,[No.createElementVNode("div",_hoisted_7,[No.createVNode(No.unref(lucideVueNext.Activity),{class:"h-4 w-4"}),p[3]||(p[3]=No.createTextVNode(" Memory ",-1))]),No.createVNode(No.unref(_sfc_main$1),{value:e.metrics.memory.percentage,variant:o.value,class:"mb-2"},null,8,["value","variant"]),No.createElementVNode("div",_hoisted_8,[No.createElementVNode("div",null,"Used: "+No.toDisplayString(e.metrics.memory.used)+" / "+No.toDisplayString(e.metrics.memory.total),1),No.createElementVNode("div",null,"Free: "+No.toDisplayString(e.metrics.memory.free),1)])])):No.createCommentVNode("",!0),e.showCpu&&e.metrics?.cpu?(No.openBlock(),No.createElementBlock("div",_hoisted_9,[No.createElementVNode("div",_hoisted_10,[No.createVNode(No.unref(lucideVueNext.Activity),{class:"h-4 w-4"}),p[4]||(p[4]=No.createTextVNode(" CPU ",-1))]),No.createVNode(No.unref(_sfc_main$1),{value:e.metrics.cpu.usage,variant:l.value,class:"mb-2"},null,8,["value","variant"]),No.createElementVNode("div",_hoisted_11,[No.createElementVNode("div",null,"Usage: "+No.toDisplayString(e.metrics.cpu.usage)+"%",1),No.createElementVNode("div",null,"Cores: "+No.toDisplayString(e.metrics.cpu.cores),1),e.metrics.cpu.frequency?(No.openBlock(),No.createElementBlock("div",_hoisted_12,"Frequency: "+No.toDisplayString(e.metrics.cpu.frequency),1)):No.createCommentVNode("",!0)])])):No.createCommentVNode("",!0)],2)):No.createCommentVNode("",!0),s.value?(No.openBlock(),No.createElementBlock("div",_hoisted_13,[e.showTemperature&&e.metrics?.temperature?(No.openBlock(),No.createElementBlock("div",_hoisted_14,[p[5]||(p[5]=No.createElementVNode("div",{class:"text-xs text-muted-foreground"},"Temperature",-1)),No.createElementVNode("div",_hoisted_15,No.toDisplayString(e.metrics.temperature),1)])):No.createCommentVNode("",!0),e.showLoadAverage&&e.metrics?.loadAverage?(No.openBlock(),No.createElementBlock("div",_hoisted_16,[p[6]||(p[6]=No.createElementVNode("div",{class:"text-xs text-muted-foreground"},"Load Average",-1)),No.createElementVNode("div",_hoisted_17,No.toDisplayString(e.metrics.loadAverage.join(", ")),1)])):No.createCommentVNode("",!0),e.showUptime&&e.metrics?.uptime?(No.openBlock(),No.createElementBlock("div",_hoisted_18,[p[7]||(p[7]=No.createElementVNode("div",{class:"text-xs text-muted-foreground"},"Uptime",-1)),No.createElementVNode("div",_hoisted_19,No.toDisplayString(e.metrics.uptime),1)])):No.createCommentVNode("",!0),e.showProcesses&&e.metrics?.processes?(No.openBlock(),No.createElementBlock("div",_hoisted_20,[p[8]||(p[8]=No.createElementVNode("div",{class:"text-xs text-muted-foreground"},"Processes",-1)),No.createElementVNode("div",_hoisted_21,No.toDisplayString(e.metrics.processes),1)])):No.createCommentVNode("",!0)])):No.createCommentVNode("",!0),!s.value&&!e.loading?(No.openBlock(),No.createElementBlock("div",_hoisted_22,[No.createVNode(No.unref(lucideVueNext.AlertCircle),{class:"h-5 w-5"}),p[9]||(p[9]=No.createElementVNode("span",null,"No system metrics available",-1))])):No.createCommentVNode("",!0)]),_:1})]),_:1},8,["class"]))}}),byteToHex=[];for(let e=0;e<256;++e)byteToHex.push((e+256).toString(16).slice(1));function unsafeStringify(e,t=0){return(byteToHex[e[t+0]]+byteToHex[e[t+1]]+byteToHex[e[t+2]]+byteToHex[e[t+3]]+"-"+byteToHex[e[t+4]]+byteToHex[e[t+5]]+"-"+byteToHex[e[t+6]]+byteToHex[e[t+7]]+"-"+byteToHex[e[t+8]]+byteToHex[e[t+9]]+"-"+byteToHex[e[t+10]]+byteToHex[e[t+11]]+byteToHex[e[t+12]]+byteToHex[e[t+13]]+byteToHex[e[t+14]]+byteToHex[e[t+15]]).toLowerCase()}let getRandomValues;const rnds8=new Uint8Array(16);function rng(){if(!getRandomValues){if(typeof crypto>"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");getRandomValues=crypto.getRandomValues.bind(crypto)}return getRandomValues(rnds8)}const randomUUID=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),native={randomUUID};function _v4(e,t,n){e=e||{};const i=e.random??e.rng?.()??rng();if(i.length<16)throw new Error("Random bytes length must be >= 16");return i[6]=i[6]&15|64,i[8]=i[8]&63|128,unsafeStringify(i)}function v4(e,t,n){return native.randomUUID&&!e?native.randomUUID():_v4(e)}const useUtilService=()=>{const t=/([01]\d|2[0-3]):?([0-5]\d)/,n="([01]\\d|2[0-3]):?([0-5]\\d)",i="hh:mm";let s="";const a=/^((25[0-5]|(2[0-4]|1\d|[1-9]|)\d)\.?\b){4}$/,o=/^((25[0-5]|(2[0-4]|1\d|[1-9]|)\d)\.?\b){4}\/(\d){1,2}$/,l=(A,F)=>{if(A.message==="Network Error")return F?F("error.network_error"):"Network error";if(/^timeout of .+ exceeded$/.test(A.message))return F?F("error.network_timeout"):"Network timeout";if(A.response)switch(A.response.status){case 401:return F?F("error.401"):"Unauthorized";case 403:return F?F("error.403"):"Forbidden";case 404:return F?F("error.404"):"Not found"}return F?F("error.generic_error"):"Generic error"},c=A=>{d(A)},d=A=>{for(const F of Object.keys(A))typeof A[F]=="string"?A[F]="":typeof A[F]=="boolean"?A[F]=!1:typeof A[F]=="object"?d(A[F]):console.error("unexpected object type:",typeof A[F])};return{DELETE_DELAY:7e3,time24HourPattern:t,time24HourPatternString:n,time24HourPlaceholder:i,highlightAnchor:s,ipAddressPattern:a,cidrPattern:o,getErrorMessage:l,clearErrors:c,clearStrings:d,sortByProperty:A=>function(F,B){return F[A]<B[A]?-1:F[A]>B[A]?1:0},sortModuleInstances:()=>function(A,F){const B=A.id.split(/[0-9]+/)[0],I=parseInt(A.id.substring(B.length)),D=F.id.split(/[0-9]+/)[0],L=parseInt(F.id.substring(D.length));return B<D?-1:B>D?1:I<L?-1:I>L?1:0},isJson:A=>{try{return JSON.parse(A),!0}catch{return!1}},tryParseJson:A=>{try{return JSON.parse(A)}catch{return A}},focusElement:A=>{No.nextTick(()=>{const F=A.value||A;F&&F.focus&&F.focus()})},scrollToElement:A=>{A&&A.scrollIntoView({behavior:"smooth"})},getAppDescription:(A,F,B)=>{let I=A.description[B];return I||(I=A.description.en),I},getAppCategories:(A,F)=>{let B=[];for(const I of A.categories){if(I==="unknown")return"";B.push(F("software_center.app_categories."+I))}return B.join(", ")},getBackupScheduleDescription:(A,F)=>{if(!A)return"-";switch(A.interval){case"hourly":return A.minute==0?F("backup.every_hour"):F("backup.minutes_past_the_hour",{minutes:A.minute});case"daily":return t.test(A.time)?F("backup.every_day_at",{time:A.time}):"-";case"weekly":return t.test(A.time)?F("backup.every_weekday_at_hour",{weekDay:F("calendar."+A.weekDay),time:A.time}):"-";case"monthly":return t.test(A.time)?F("backup.every_month_at_time",{dayNum:A.monthDay,time:A.time}):"-";default:return"-"}},fileToBase64:A=>new Promise((F,B)=>{const I=new FileReader;I.readAsDataURL(A),I.onload=()=>F(I.result),I.onerror=D=>B(D)}),getUuid:()=>v4(),getNodeLabel:(A,F)=>A.ui_name?A.ui_name+" ("+F("common.node")+" "+A.id+")":F("common.node")+" "+A.id,getShortNodeLabel:(A,F)=>A.ui_name?A.ui_name:F("common.node")+" "+A.id,decodeJwtPayload:A=>{const B=A.split(".")[1].replace(/-/g,"+").replace(/_/g,"/"),I=decodeURIComponent(window.atob(B).split("").map(function(D){return"%"+("00"+D.charCodeAt(0).toString(16)).slice(-2)}).join(""));return JSON.parse(I)},getSha256:async A=>{const F=new TextEncoder().encode(A),B=await crypto.subtle.digest("SHA-256",F);return Array.from(new Uint8Array(B)).map(L=>L.toString(16).padStart(2,"0")).join("")}}},millisecondsInWeek=6048e5,millisecondsInDay=864e5,millisecondsInMinute=6e4,millisecondsInHour=36e5,minutesInMonth=43200,minutesInDay=1440,constructFromSymbol=Symbol.for("constructDateFrom");function constructFrom(e,t){return typeof e=="function"?e(t):e&&typeof e=="object"&&constructFromSymbol in e?e[constructFromSymbol](t):e instanceof Date?new e.constructor(t):new Date(t)}function toDate$1(e,t){return constructFrom(t||e,e)}function addDays(e,t,n){const i=toDate$1(e,n?.in);return isNaN(t)?constructFrom(n?.in||e,NaN):(t&&i.setDate(i.getDate()+t),i)}let defaultOptions={};function getDefaultOptions$1(){return defaultOptions}function startOfWeek(e,t){const n=getDefaultOptions$1(),i=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??n.weekStartsOn??n.locale?.options?.weekStartsOn??0,s=toDate$1(e,t?.in),a=s.getDay(),o=(a<i?7:0)+a-i;return s.setDate(s.getDate()-o),s.setHours(0,0,0,0),s}function startOfISOWeek(e,t){return startOfWeek(e,{...t,weekStartsOn:1})}function getISOWeekYear(e,t){const n=toDate$1(e,t?.in),i=n.getFullYear(),s=constructFrom(n,0);s.setFullYear(i+1,0,4),s.setHours(0,0,0,0);const a=startOfISOWeek(s),o=constructFrom(n,0);o.setFullYear(i,0,4),o.setHours(0,0,0,0);const l=startOfISOWeek(o);return n.getTime()>=a.getTime()?i+1:n.getTime()>=l.getTime()?i:i-1}function getTimezoneOffsetInMilliseconds$1(e){const t=toDate$1(e),n=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return n.setUTCFullYear(t.getFullYear()),+e-+n}function normalizeDates(e,...t){const n=constructFrom.bind(null,e||t.find(i=>typeof i=="object"));return t.map(n)}function startOfDay(e,t){const n=toDate$1(e,t?.in);return n.setHours(0,0,0,0),n}function differenceInCalendarDays(e,t,n){const[i,s]=normalizeDates(n?.in,e,t),a=startOfDay(i),o=startOfDay(s),l=+a-getTimezoneOffsetInMilliseconds$1(a),c=+o-getTimezoneOffsetInMilliseconds$1(o);return Math.round((l-c)/millisecondsInDay)}function startOfISOWeekYear(e,t){const n=getISOWeekYear(e,t),i=constructFrom(e,0);return i.setFullYear(n,0,4),i.setHours(0,0,0,0),startOfISOWeek(i)}function compareAsc(e,t){const n=+toDate$1(e)-+toDate$1(t);return n<0?-1:n>0?1:n}function isDate$1(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}function isValid(e){return!(!isDate$1(e)&&typeof e!="number"||isNaN(+toDate$1(e)))}function differenceInCalendarMonths(e,t,n){const[i,s]=normalizeDates(n?.in,e,t),a=i.getFullYear()-s.getFullYear(),o=i.getMonth()-s.getMonth();return a*12+o}function getRoundingMethod(e){return t=>{const i=(e?Math[e]:Math.trunc)(t);return i===0?0:i}}function differenceInMilliseconds(e,t){return+toDate$1(e)-+toDate$1(t)}function endOfDay(e,t){const n=toDate$1(e,t?.in);return n.setHours(23,59,59,999),n}function endOfMonth(e,t){const n=toDate$1(e,t?.in),i=n.getMonth();return n.setFullYear(n.getFullYear(),i+1,0),n.setHours(23,59,59,999),n}function isLastDayOfMonth(e,t){const n=toDate$1(e,t?.in);return+endOfDay(n,t)==+endOfMonth(n,t)}function differenceInMonths(e,t,n){const[i,s,a]=normalizeDates(n?.in,e,e,t),o=compareAsc(s,a),l=Math.abs(differenceInCalendarMonths(s,a));if(l<1)return 0;s.getMonth()===1&&s.getDate()>27&&s.setDate(30),s.setMonth(s.getMonth()-o*l);let c=compareAsc(s,a)===-o;isLastDayOfMonth(i)&&l===1&&compareAsc(i,a)===1&&(c=!1);const d=o*(l-+c);return d===0?0:d}function differenceInSeconds(e,t,n){const i=differenceInMilliseconds(e,t)/1e3;return getRoundingMethod(n?.roundingMethod)(i)}function startOfYear(e,t){const n=toDate$1(e,t?.in);return n.setFullYear(n.getFullYear(),0,1),n.setHours(0,0,0,0),n}const formatDistanceLocale={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},formatDistance$1=(e,t,n)=>{let i;const s=formatDistanceLocale[e];return typeof s=="string"?i=s:t===1?i=s.one:i=s.other.replace("{{count}}",t.toString()),n?.addSuffix?n.comparison&&n.comparison>0?"in "+i:i+" ago":i};function buildFormatLongFn(e){return(t={})=>{const n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}const dateFormats={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},timeFormats={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},dateTimeFormats={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},formatLong={date:buildFormatLongFn({formats:dateFormats,defaultWidth:"full"}),time:buildFormatLongFn({formats:timeFormats,defaultWidth:"full"}),dateTime:buildFormatLongFn({formats:dateTimeFormats,defaultWidth:"full"})},formatRelativeLocale={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},formatRelative=(e,t,n,i)=>formatRelativeLocale[e];function buildLocalizeFn(e){return(t,n)=>{const i=n?.context?String(n.context):"standalone";let s;if(i==="formatting"&&e.formattingValues){const o=e.defaultFormattingWidth||e.defaultWidth,l=n?.width?String(n.width):o;s=e.formattingValues[l]||e.formattingValues[o]}else{const o=e.defaultWidth,l=n?.width?String(n.width):e.defaultWidth;s=e.values[l]||e.values[o]}const a=e.argumentCallback?e.argumentCallback(t):t;return s[a]}}const eraValues={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},quarterValues={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},monthValues={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},dayValues={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},dayPeriodValues={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},formattingDayPeriodValues={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},ordinalNumber=(e,t)=>{const n=Number(e),i=n%100;if(i>20||i<10)switch(i%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},localize={ordinalNumber,era:buildLocalizeFn({values:eraValues,defaultWidth:"wide"}),quarter:buildLocalizeFn({values:quarterValues,defaultWidth:"wide",argumentCallback:e=>e-1}),month:buildLocalizeFn({values:monthValues,defaultWidth:"wide"}),day:buildLocalizeFn({values:dayValues,defaultWidth:"wide"}),dayPeriod:buildLocalizeFn({values:dayPeriodValues,defaultWidth:"wide",formattingValues:formattingDayPeriodValues,defaultFormattingWidth:"wide"})};function buildMatchFn(e){return(t,n={})=>{const i=n.width,s=i&&e.matchPatterns[i]||e.matchPatterns[e.defaultMatchWidth],a=t.match(s);if(!a)return null;const o=a[0],l=i&&e.parsePatterns[i]||e.parsePatterns[e.defaultParseWidth],c=Array.isArray(l)?findIndex(l,p=>p.test(o)):findKey$1(l,p=>p.test(o));let d;d=e.valueCallback?e.valueCallback(c):c,d=n.valueCallback?n.valueCallback(d):d;const u=t.slice(o.length);return{value:d,rest:u}}}function findKey$1(e,t){for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function findIndex(e,t){for(let n=0;n<e.length;n++)if(t(e[n]))return n}function buildMatchPatternFn(e){return(t,n={})=>{const i=t.match(e.matchPattern);if(!i)return null;const s=i[0],a=t.match(e.parsePattern);if(!a)return null;let o=e.valueCallback?e.valueCallback(a[0]):a[0];o=n.valueCallback?n.valueCallback(o):o;const l=t.slice(s.length);return{value:o,rest:l}}}const matchOrdinalNumberPattern=/^(\d+)(th|st|nd|rd)?/i,parseOrdinalNumberPattern=/\d+/i,matchEraPatterns={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},parseEraPatterns={any:[/^b/i,/^(a|c)/i]},matchQuarterPatterns={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},parseQuarterPatterns={any:[/1/i,/2/i,/3/i,/4/i]},matchMonthPatterns={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},parseMonthPatterns={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},matchDayPatterns={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},parseDayPatterns={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},matchDayPeriodPatterns={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},parseDayPeriodPatterns={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},match={ordinalNumber:buildMatchPatternFn({matchPattern:matchOrdinalNumberPattern,parsePattern:parseOrdinalNumberPattern,valueCallback:e=>parseInt(e,10)}),era:buildMatchFn({matchPatterns:matchEraPatterns,defaultMatchWidth:"wide",parsePatterns:parseEraPatterns,defaultParseWidth:"any"}),quarter:buildMatchFn({matchPatterns:matchQuarterPatterns,defaultMatchWidth:"wide",parsePatterns:parseQuarterPatterns,defaultParseWidth:"any",valueCallback:e=>e+1}),month:buildMatchFn({matchPatterns:matchMonthPatterns,defaultMatchWidth:"wide",parsePatterns:parseMonthPatterns,defaultParseWidth:"any"}),day:buildMatchFn({matchPatterns:matchDayPatterns,defaultMatchWidth:"wide",parsePatterns:parseDayPatterns,defaultParseWidth:"any"}),dayPeriod:buildMatchFn({matchPatterns:matchDayPeriodPatterns,defaultMatchWidth:"any",parsePatterns:parseDayPeriodPatterns,defaultParseWidth:"any"})},enUS={code:"en-US",formatDistance:formatDistance$1,formatLong,formatRelative,localize,match,options:{weekStartsOn:0,firstWeekContainsDate:1}};function getDayOfYear(e,t){const n=toDate$1(e,t?.in);return differenceInCalendarDays(n,startOfYear(n))+1}function getISOWeek(e,t){const n=toDate$1(e,t?.in),i=+startOfISOWeek(n)-+startOfISOWeekYear(n);return Math.round(i/millisecondsInWeek)+1}function getWeekYear(e,t){const n=toDate$1(e,t?.in),i=n.getFullYear(),s=getDefaultOptions$1(),a=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??s.firstWeekContainsDate??s.locale?.options?.firstWeekContainsDate??1,o=constructFrom(t?.in||e,0);o.setFullYear(i+1,0,a),o.setHours(0,0,0,0);const l=startOfWeek(o,t),c=constructFrom(t?.in||e,0);c.setFullYear(i,0,a),c.setHours(0,0,0,0);const d=startOfWeek(c,t);return+n>=+l?i+1:+n>=+d?i:i-1}function startOfWeekYear(e,t){const n=getDefaultOptions$1(),i=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??n.firstWeekContainsDate??n.locale?.options?.firstWeekContainsDate??1,s=getWeekYear(e,t),a=constructFrom(t?.in||e,0);return a.setFullYear(s,0,i),a.setHours(0,0,0,0),startOfWeek(a,t)}function getWeek(e,t){const n=toDate$1(e,t?.in),i=+startOfWeek(n,t)-+startOfWeekYear(n,t);return Math.round(i/millisecondsInWeek)+1}function addLeadingZeros$1(e,t){const n=e<0?"-":"",i=Math.abs(e).toString().padStart(t,"0");return n+i}const lightFormatters={y(e,t){const n=e.getFullYear(),i=n>0?n:1-n;return addLeadingZeros$1(t==="yy"?i%100:i,t.length)},M(e,t){const n=e.getMonth();return t==="M"?String(n+1):addLeadingZeros$1(n+1,2)},d(e,t){return addLeadingZeros$1(e.getDate(),t.length)},a(e,t){const n=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];default:return n==="am"?"a.m.":"p.m."}},h(e,t){return addLeadingZeros$1(e.getHours()%12||12,t.length)},H(e,t){return addLeadingZeros$1(e.getHours(),t.length)},m(e,t){return addLeadingZeros$1(e.getMinutes(),t.length)},s(e,t){return addLeadingZeros$1(e.getSeconds(),t.length)},S(e,t){const n=t.length,i=e.getMilliseconds(),s=Math.trunc(i*Math.pow(10,n-3));return addLeadingZeros$1(s,t.length)}},dayPeriodEnum={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},formatters$1={G:function(e,t,n){const i=e.getFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(i,{width:"abbreviated"});case"GGGGG":return n.era(i,{width:"narrow"});default:return n.era(i,{width:"wide"})}},y:function(e,t,n){if(t==="yo"){const i=e.getFullYear(),s=i>0?i:1-i;return n.ordinalNumber(s,{unit:"year"})}return lightFormatters.y(e,t)},Y:function(e,t,n,i){const s=getWeekYear(e,i),a=s>0?s:1-s;if(t==="YY"){const o=a%100;return addLeadingZeros$1(o,2)}return t==="Yo"?n.ordinalNumber(a,{unit:"year"}):addLeadingZeros$1(a,t.length)},R:function(e,t){const n=getISOWeekYear(e);return addLeadingZeros$1(n,t.length)},u:function(e,t){const n=e.getFullYear();return addLeadingZeros$1(n,t.length)},Q:function(e,t,n){const i=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(i);case"QQ":return addLeadingZeros$1(i,2);case"Qo":return n.ordinalNumber(i,{unit:"quarter"});case"QQQ":return n.quarter(i,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(i,{width:"narrow",context:"formatting"});default:return n.quarter(i,{width:"wide",context:"formatting"})}},q:function(e,t,n){const i=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(i);case"qq":return addLeadingZeros$1(i,2);case"qo":return n.ordinalNumber(i,{unit:"quarter"});case"qqq":return n.quarter(i,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(i,{width:"narrow",context:"standalone"});default:return n.quarter(i,{width:"wide",context:"standalone"})}},M:function(e,t,n){const i=e.getMonth();switch(t){case"M":case"MM":return lightFormatters.M(e,t);case"Mo":return n.ordinalNumber(i+1,{unit:"month"});case"MMM":return n.month(i,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(i,{width:"narrow",context:"formatting"});default:return n.month(i,{width:"wide",context:"formatting"})}},L:function(e,t,n){const i=e.getMonth();switch(t){case"L":return String(i+1);case"LL":return addLeadingZeros$1(i+1,2);case"Lo":return n.ordinalNumber(i+1,{unit:"month"});case"LLL":return n.month(i,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(i,{width:"narrow",context:"standalone"});default:return n.month(i,{width:"wide",context:"standalone"})}},w:function(e,t,n,i){const s=getWeek(e,i);return t==="wo"?n.ordinalNumber(s,{unit:"week"}):addLeadingZeros$1(s,t.length)},I:function(e,t,n){const i=getISOWeek(e);return t==="Io"?n.ordinalNumber(i,{unit:"week"}):addLeadingZeros$1(i,t.length)},d:function(e,t,n){return t==="do"?n.ordinalNumber(e.getDate(),{unit:"date"}):lightFormatters.d(e,t)},D:function(e,t,n){const i=getDayOfYear(e);return t==="Do"?n.ordinalNumber(i,{unit:"dayOfYear"}):addLeadingZeros$1(i,t.length)},E:function(e,t,n){const i=e.getDay();switch(t){case"E":case"EE":case"EEE":return n.day(i,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(i,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(i,{width:"short",context:"formatting"});default:return n.day(i,{width:"wide",context:"formatting"})}},e:function(e,t,n,i){const s=e.getDay(),a=(s-i.weekStartsOn+8)%7||7;switch(t){case"e":return String(a);case"ee":return addLeadingZeros$1(a,2);case"eo":return n.ordinalNumber(a,{unit:"day"});case"eee":return n.day(s,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(s,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(s,{width:"short",context:"formatting"});default:return n.day(s,{width:"wide",context:"formatting"})}},c:function(e,t,n,i){const s=e.getDay(),a=(s-i.weekStartsOn+8)%7||7;switch(t){case"c":return String(a);case"cc":return addLeadingZeros$1(a,t.length);case"co":return n.ordinalNumber(a,{unit:"day"});case"ccc":return n.day(s,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(s,{width:"narrow",context:"standalone"});case"cccccc":return n.day(s,{width:"short",context:"standalone"});default:return n.day(s,{width:"wide",context:"standalone"})}},i:function(e,t,n){const i=e.getDay(),s=i===0?7:i;switch(t){case"i":return String(s);case"ii":return addLeadingZeros$1(s,t.length);case"io":return n.ordinalNumber(s,{unit:"day"});case"iii":return n.day(i,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(i,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(i,{width:"short",context:"formatting"});default:return n.day(i,{width:"wide",context:"formatting"})}},a:function(e,t,n){const s=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(s,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(s,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(s,{width:"narrow",context:"formatting"});default:return n.dayPeriod(s,{width:"wide",context:"formatting"})}},b:function(e,t,n){const i=e.getHours();let s;switch(i===12?s=dayPeriodEnum.noon:i===0?s=dayPeriodEnum.midnight:s=i/12>=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(s,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(s,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(s,{width:"narrow",context:"formatting"});default:return n.dayPeriod(s,{width:"wide",context:"formatting"})}},B:function(e,t,n){const i=e.getHours();let s;switch(i>=17?s=dayPeriodEnum.evening:i>=12?s=dayPeriodEnum.afternoon:i>=4?s=dayPeriodEnum.morning:s=dayPeriodEnum.night,t){case"B":case"BB":case"BBB":return n.dayPeriod(s,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(s,{width:"narrow",context:"formatting"});default:return n.dayPeriod(s,{width:"wide",context:"formatting"})}},h:function(e,t,n){if(t==="ho"){let i=e.getHours()%12;return i===0&&(i=12),n.ordinalNumber(i,{unit:"hour"})}return lightFormatters.h(e,t)},H:function(e,t,n){return t==="Ho"?n.ordinalNumber(e.getHours(),{unit:"hour"}):lightFormatters.H(e,t)},K:function(e,t,n){const i=e.getHours()%12;return t==="Ko"?n.ordinalNumber(i,{unit:"hour"}):addLeadingZeros$1(i,t.length)},k:function(e,t,n){let i=e.getHours();return i===0&&(i=24),t==="ko"?n.ordinalNumber(i,{unit:"hour"}):addLeadingZeros$1(i,t.length)},m:function(e,t,n){return t==="mo"?n.ordinalNumber(e.getMinutes(),{unit:"minute"}):lightFormatters.m(e,t)},s:function(e,t,n){return t==="so"?n.ordinalNumber(e.getSeconds(),{unit:"second"}):lightFormatters.s(e,t)},S:function(e,t){return lightFormatters.S(e,t)},X:function(e,t,n){const i=e.getTimezoneOffset();if(i===0)return"Z";switch(t){case"X":return formatTimezoneWithOptionalMinutes$1(i);case"XXXX":case"XX":return formatTimezone$1(i);default:return formatTimezone$1(i,":")}},x:function(e,t,n){const i=e.getTimezoneOffset();switch(t){case"x":return formatTimezoneWithOptionalMinutes$1(i);case"xxxx":case"xx":return formatTimezone$1(i);default:return formatTimezone$1(i,":")}},O:function(e,t,n){const i=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+formatTimezoneShort$1(i,":");default:return"GMT"+formatTimezone$1(i,":")}},z:function(e,t,n){const i=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+formatTimezoneShort$1(i,":");default:return"GMT"+formatTimezone$1(i,":")}},t:function(e,t,n){const i=Math.trunc(+e/1e3);return addLeadingZeros$1(i,t.length)},T:function(e,t,n){return addLeadingZeros$1(+e,t.length)}};function formatTimezoneShort$1(e,t=""){const n=e>0?"-":"+",i=Math.abs(e),s=Math.trunc(i/60),a=i%60;return a===0?n+String(s):n+String(s)+t+addLeadingZeros$1(a,2)}function formatTimezoneWithOptionalMinutes$1(e,t){return e%60===0?(e>0?"-":"+")+addLeadingZeros$1(Math.abs(e)/60,2):formatTimezone$1(e,t)}function formatTimezone$1(e,t=""){const n=e>0?"-":"+",i=Math.abs(e),s=addLeadingZeros$1(Math.trunc(i/60),2),a=addLeadingZeros$1(i%60,2);return n+s+t+a}const dateLongFormatter=(e,t)=>{switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});default:return t.date({width:"full"})}},timeLongFormatter=(e,t)=>{switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});default:return t.time({width:"full"})}},dateTimeLongFormatter=(e,t)=>{const n=e.match(/(P+)(p+)?/)||[],i=n[1],s=n[2];if(!s)return dateLongFormatter(e,t);let a;switch(i){case"P":a=t.dateTime({width:"short"});break;case"PP":a=t.dateTime({width:"medium"});break;case"PPP":a=t.dateTime({width:"long"});break;default:a=t.dateTime({width:"full"});break}return a.replace("{{date}}",dateLongFormatter(i,t)).replace("{{time}}",timeLongFormatter(s,t))},longFormatters={p:timeLongFormatter,P:dateTimeLongFormatter},dayOfYearTokenRE=/^D+$/,weekYearTokenRE=/^Y+$/,throwTokens=["D","DD","YY","YYYY"];function isProtectedDayOfYearToken(e){return dayOfYearTokenRE.test(e)}function isProtectedWeekYearToken(e){return weekYearTokenRE.test(e)}function warnOrThrowProtectedError(e,t,n){const i=message(e,t,n);if(console.warn(i),throwTokens.includes(e))throw new RangeError(i)}function message(e,t,n){const i=e[0]==="Y"?"years":"days of the month";return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${i} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}const formattingTokensRegExp=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,longFormattingTokensRegExp=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,escapedStringRegExp=/^'([^]*?)'?$/,doubleQuoteRegExp=/''/g,unescapedLatinCharacterRegExp=/[a-zA-Z]/;function format$1(e,t,n){const i=getDefaultOptions$1(),s=n?.locale??i.locale??enUS,a=n?.firstWeekContainsDate??n?.locale?.options?.firstWeekContainsDate??i.firstWeekContainsDate??i.locale?.options?.firstWeekContainsDate??1,o=n?.weekStartsOn??n?.locale?.options?.weekStartsOn??i.weekStartsOn??i.locale?.options?.weekStartsOn??0,l=toDate$1(e,n?.in);if(!isValid(l))throw new RangeError("Invalid time value");let c=t.match(longFormattingTokensRegExp).map(u=>{const p=u[0];if(p==="p"||p==="P"){const h=longFormatters[p];return h(u,s.formatLong)}return u}).join("").match(formattingTokensRegExp).map(u=>{if(u==="''")return{isToken:!1,value:"'"};const p=u[0];if(p==="'")return{isToken:!1,value:cleanEscapedString(u)};if(formatters$1[p])return{isToken:!0,value:u};if(p.match(unescapedLatinCharacterRegExp))throw new RangeError("Format string contains an unescaped latin alphabet character `"+p+"`");return{isToken:!1,value:u}});s.localize.preprocessor&&(c=s.localize.preprocessor(l,c));const d={firstWeekContainsDate:a,weekStartsOn:o,locale:s};return c.map(u=>{if(!u.isToken)return u.value;const p=u.value;(!n?.useAdditionalWeekYearTokens&&isProtectedWeekYearToken(p)||!n?.useAdditionalDayOfYearTokens&&isProtectedDayOfYearToken(p))&&warnOrThrowProtectedError(p,t,String(e));const h=formatters$1[p[0]];return h(l,p,s.localize,d)}).join("")}function cleanEscapedString(e){const t=e.match(escapedStringRegExp);return t?t[1].replace(doubleQuoteRegExp,"'"):e}function formatDistance(e,t,n){const i=getDefaultOptions$1(),s=n?.locale??i.locale??enUS,a=2520,o=compareAsc(e,t);if(isNaN(o))throw new RangeError("Invalid time value");const l=Object.assign({},n,{addSuffix:n?.addSuffix,comparison:o}),[c,d]=normalizeDates(n?.in,...o>0?[t,e]:[e,t]),u=differenceInSeconds(d,c),p=(getTimezoneOffsetInMilliseconds$1(d)-getTimezoneOffsetInMilliseconds$1(c))/1e3,h=Math.round((u-p)/60);let y;if(h<2)return n?.includeSeconds?u<5?s.formatDistance("lessThanXSeconds",5,l):u<10?s.formatDistance("lessThanXSeconds",10,l):u<20?s.formatDistance("lessThanXSeconds",20,l):u<40?s.formatDistance("halfAMinute",0,l):u<60?s.formatDistance("lessThanXMinutes",1,l):s.formatDistance("xMinutes",1,l):h===0?s.formatDistance("lessThanXMinutes",1,l):s.formatDistance("xMinutes",h,l);if(h<45)return s.formatDistance("xMinutes",h,l);if(h<90)return s.formatDistance("aboutXHours",1,l);if(h<minutesInDay){const f=Math.round(h/60);return s.formatDistance("aboutXHours",f,l)}else{if(h<a)return s.formatDistance("xDays",1,l);if(h<minutesInMonth){const f=Math.round(h/minutesInDay);return s.formatDistance("xDays",f,l)}else if(h<minutesInMonth*2)return y=Math.round(h/minutesInMonth),s.formatDistance("aboutXMonths",y,l)}if(y=differenceInMonths(d,c),y<12){const f=Math.round(h/minutesInMonth);return s.formatDistance("xMonths",f,l)}else{const f=y%12,m=Math.trunc(y/12);return f<3?s.formatDistance("aboutXYears",m,l):f<9?s.formatDistance("overXYears",m,l):s.formatDistance("almostXYears",m+1,l)}}function getDefaultOptions(){return Object.assign({},getDefaultOptions$1())}function isBefore(e,t){return+toDate$1(e)<+toDate$1(t)}function subDays(e,t,n){return addDays(e,-t,n)}function parseISO(e,t){const n=()=>constructFrom(t?.in,NaN),i=t?.additionalDigits??2,s=splitDateString$1(e);let a;if(s.date){const d=parseYear$1(s.date,i);a=parseDate$1(d.restDateString,d.year)}if(!a||isNaN(+a))return n();const o=+a;let l=0,c;if(s.time&&(l=parseTime$1(s.time),isNaN(l)))return n();if(s.timezone){if(c=parseTimezone(s.timezone),isNaN(c))return n()}else{const d=new Date(o+l),u=toDate$1(0,t?.in);return u.setFullYear(d.getUTCFullYear(),d.getUTCMonth(),d.getUTCDate()),u.setHours(d.getUTCHours(),d.getUTCMinutes(),d.getUTCSeconds(),d.getUTCMilliseconds()),u}return toDate$1(o+l+c,t?.in)}const patterns$2={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},dateRegex=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,timeRegex=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,timezoneRegex=/^([+-])(\d{2})(?::?(\d{2}))?$/;function splitDateString$1(e){const t={},n=e.split(patterns$2.dateTimeDelimiter);let i;if(n.length>2)return t;if(/:/.test(n[0])?i=n[0]:(t.date=n[0],i=n[1],patterns$2.timeZoneDelimiter.test(t.date)&&(t.date=e.split(patterns$2.timeZoneDelimiter)[0],i=e.substr(t.date.length,e.length))),i){const s=patterns$2.timezone.exec(i);s?(t.time=i.replace(s[1],""),t.timezone=s[1]):t.time=i}return t}function parseYear$1(e,t){const n=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+t)+"})|(\\d{2}|[+-]\\d{"+(2+t)+"})$)"),i=e.match(n);if(!i)return{year:NaN,restDateString:""};const s=i[1]?parseInt(i[1]):null,a=i[2]?parseInt(i[2]):null;return{year:a===null?s:a*100,restDateString:e.slice((i[1]||i[2]).length)}}function parseDate$1(e,t){if(t===null)return new Date(NaN);const n=e.match(dateRegex);if(!n)return new Date(NaN);const i=!!n[4],s=parseDateUnit(n[1]),a=parseDateUnit(n[2])-1,o=parseDateUnit(n[3]),l=parseDateUnit(n[4]),c=parseDateUnit(n[5])-1;if(i)return validateWeekDate$1(t,l,c)?dayOfISOWeekYear$1(t,l,c):new Date(NaN);{const d=new Date(0);return!validateDate$1(t,a,o)||!validateDayOfYearDate$1(t,s)?new Date(NaN):(d.setUTCFullYear(t,a,Math.max(s,o)),d)}}function parseDateUnit(e){return e?parseInt(e):1}function parseTime$1(e){const t=e.match(timeRegex);if(!t)return NaN;const n=parseTimeUnit(t[1]),i=parseTimeUnit(t[2]),s=parseTimeUnit(t[3]);return validateTime$1(n,i,s)?n*millisecondsInHour+i*millisecondsInMinute+s*1e3:NaN}function parseTimeUnit(e){return e&&parseFloat(e.replace(",","."))||0}function parseTimezone(e){if(e==="Z")return 0;const t=e.match(timezoneRegex);if(!t)return 0;const n=t[1]==="+"?-1:1,i=parseInt(t[2]),s=t[3]&&parseInt(t[3])||0;return validateTimezone$1(i,s)?n*(i*millisecondsInHour+s*millisecondsInMinute):NaN}function dayOfISOWeekYear$1(e,t,n){const i=new Date(0);i.setUTCFullYear(e,0,4);const s=i.getUTCDay()||7,a=(t-1)*7+n+1-s;return i.setUTCDate(i.getUTCDate()+a),i}const daysInMonths=[31,null,31,30,31,30,31,31,30,31,30,31];function isLeapYearIndex$1(e){return e%400===0||e%4===0&&e%100!==0}function validateDate$1(e,t,n){return t>=0&&t<=11&&n>=1&&n<=(daysInMonths[t]||(isLeapYearIndex$1(e)?29:28))}function validateDayOfYearDate$1(e,t){return t>=1&&t<=(isLeapYearIndex$1(e)?366:365)}function validateWeekDate$1(e,t,n){return t>=1&&t<=53&&n>=0&&n<=6}function validateTime$1(e,t,n){return e===24?t===0&&n===0:n>=0&&n<60&&t>=0&&t<60&&e>=0&&e<25}function validateTimezone$1(e,t){return t>=0&&t<=59}function tzIntlTimeZoneName(e,t,n){const i=getDefaultOptions(),s=getDTF(e,n.timeZone,n.locale??i.locale);return"formatToParts"in s?partsTimeZone(s,t):hackyTimeZone(s,t)}function partsTimeZone(e,t){const n=e.formatToParts(t);for(let i=n.length-1;i>=0;--i)if(n[i].type==="timeZoneName")return n[i].value}function hackyTimeZone(e,t){const n=e.format(t).replace(/\u200E/g,""),i=/ [\w-+ ]+$/.exec(n);return i?i[0].substr(1):""}function getDTF(e,t,n){return new Intl.DateTimeFormat(n?[n.code,"en-US"]:void 0,{timeZone:t,timeZoneName:e})}function tzTokenizeDate(e,t){const n=getDateTimeFormat(t);return"formatToParts"in n?partsOffset(n,e):hackyOffset(n,e)}const typeToPos={year:0,month:1,day:2,hour:3,minute:4,second:5};function partsOffset(e,t){try{const n=e.formatToParts(t),i=[];for(let s=0;s<n.length;s++){const a=typeToPos[n[s].type];a!==void 0&&(i[a]=parseInt(n[s].value,10))}return i}catch(n){if(n instanceof RangeError)return[NaN];throw n}}function hackyOffset(e,t){const n=e.format(t),i=/(\d+)\/(\d+)\/(\d+),? (\d+):(\d+):(\d+)/.exec(n);return[parseInt(i[3],10),parseInt(i[1],10),parseInt(i[2],10),parseInt(i[4],10),parseInt(i[5],10),parseInt(i[6],10)]}const dtfCache={},testDateFormatted=new Intl.DateTimeFormat("en-US",{hourCycle:"h23",timeZone:"America/New_York",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"}).format(new Date("2014-06-25T04:00:00.123Z")),hourCycleSupported=testDateFormatted==="06/25/2014, 00:00:00"||testDateFormatted==="06/25/2014 00:00:00";function getDateTimeFormat(e){return dtfCache[e]||(dtfCache[e]=hourCycleSupported?new Intl.DateTimeFormat("en-US",{hourCycle:"h23",timeZone:e,year:"numeric",month:"numeric",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"}):new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:e,year:"numeric",month:"numeric",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"})),dtfCache[e]}function newDateUTC(e,t,n,i,s,a,o){const l=new Date(0);return l.setUTCFullYear(e,t,n),l.setUTCHours(i,s,a,o),l}const MILLISECONDS_IN_HOUR$1=36e5,MILLISECONDS_IN_MINUTE$2=6e4,patterns$1={timezoneZ:/^(Z)$/,timezoneHH:/^([+-]\d{2})$/,timezoneHHMM:/^([+-])(\d{2}):?(\d{2})$/};function tzParseTimezone(e,t,n){if(!e)return 0;let i=patterns$1.timezoneZ.exec(e);if(i)return 0;let s,a;if(i=patterns$1.timezoneHH.exec(e),i)return s=parseInt(i[1],10),validateTimezone(s)?-(s*MILLISECONDS_IN_HOUR$1):NaN;if(i=patterns$1.timezoneHHMM.exec(e),i){s=parseInt(i[2],10);const o=parseInt(i[3],10);return validateTimezone(s,o)?(a=Math.abs(s)*MILLISECONDS_IN_HOUR$1+o*MILLISECONDS_IN_MINUTE$2,i[1]==="+"?-a:a):NaN}if(isValidTimezoneIANAString(e)){t=new Date(t||Date.now());const o=n?t:toUtcDate(t),l=calcOffset(o,e);return-(n?l:fixOffset(t,l,e))}return NaN}function toUtcDate(e){return newDateUTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds())}function calcOffset(e,t){const n=tzTokenizeDate(e,t),i=newDateUTC(n[0],n[1]-1,n[2],n[3]%24,n[4],n[5],0).getTime();let s=e.getTime();const a=s%1e3;return s-=a>=0?a:1e3+a,i-s}function fixOffset(e,t,n){let s=e.getTime()-t;const a=calcOffset(new Date(s),n);if(t===a)return t;s-=a-t;const o=calcOffset(new Date(s),n);return a===o?a:Math.max(a,o)}function validateTimezone(e,t){return-23<=e&&e<=23&&(t==null||0<=t&&t<=59)}const validIANATimezoneCache={};function isValidTimezoneIANAString(e){if(validIANATimezoneCache[e])return!0;try{return new Intl.DateTimeFormat(void 0,{timeZone:e}),validIANATimezoneCache[e]=!0,!0}catch{return!1}}const MILLISECONDS_IN_MINUTE$1=60*1e3,formatters={X:function(e,t,n){const i=getTimeZoneOffset(n.timeZone,e);if(i===0)return"Z";switch(t){case"X":return formatTimezoneWithOptionalMinutes(i);case"XXXX":case"XX":return formatTimezone(i);default:return formatTimezone(i,":")}},x:function(e,t,n){const i=getTimeZoneOffset(n.timeZone,e);switch(t){case"x":return formatTimezoneWithOptionalMinutes(i);case"xxxx":case"xx":return formatTimezone(i);default:return formatTimezone(i,":")}},O:function(e,t,n){const i=getTimeZoneOffset(n.timeZone,e);switch(t){case"O":case"OO":case"OOO":return"GMT"+formatTimezoneShort(i,":");default:return"GMT"+formatTimezone(i,":")}},z:function(e,t,n){switch(t){case"z":case"zz":case"zzz":return tzIntlTimeZoneName("short",e,n);default:return tzIntlTimeZoneName("long",e,n)}}};function getTimeZoneOffset(e,t){const n=e?tzParseTimezone(e,t,!0)/MILLISECONDS_IN_MINUTE$1:t?.getTimezoneOffset()??0;if(Number.isNaN(n))throw new RangeError("Invalid time zone specified: "+e);return n}function addLeadingZeros(e,t){const n=e<0?"-":"";let i=Math.abs(e).toString();for(;i.length<t;)i="0"+i;return n+i}function formatTimezone(e,t=""){const n=e>0?"-":"+",i=Math.abs(e),s=addLeadingZeros(Math.floor(i/60),2),a=addLeadingZeros(Math.floor(i%60),2);return n+s+t+a}function formatTimezoneWithOptionalMinutes(e,t){return e%60===0?(e>0?"-":"+")+addLeadingZeros(Math.abs(e)/60,2):formatTimezone(e,t)}function formatTimezoneShort(e,t=""){const n=e>0?"-":"+",i=Math.abs(e),s=Math.floor(i/60),a=i%60;return a===0?n+String(s):n+String(s)+t+addLeadingZeros(a,2)}function getTimezoneOffsetInMilliseconds(e){const t=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return t.setUTCFullYear(e.getFullYear()),+e-+t}const tzPattern=/(Z|[+-]\d{2}(?::?\d{2})?| UTC| [a-zA-Z]+\/[a-zA-Z_]+(?:\/[a-zA-Z_]+)?)$/,MILLISECONDS_IN_HOUR=36e5,MILLISECONDS_IN_MINUTE=6e4,DEFAULT_ADDITIONAL_DIGITS=2,patterns={dateTimePattern:/^([0-9W+-]+)(T| )(.*)/,datePattern:/^([0-9W+-]+)(.*)/,YY:/^(\d{2})$/,YYY:[/^([+-]\d{2})$/,/^([+-]\d{3})$/,/^([+-]\d{4})$/],YYYY:/^(\d{4})/,YYYYY:[/^([+-]\d{4})/,/^([+-]\d{5})/,/^([+-]\d{6})/],MM:/^-(\d{2})$/,DDD:/^-?(\d{3})$/,MMDD:/^-?(\d{2})-?(\d{2})$/,Www:/^-?W(\d{2})$/,WwwD:/^-?W(\d{2})-?(\d{1})$/,HH:/^(\d{2}([.,]\d*)?)$/,HHMM:/^(\d{2}):?(\d{2}([.,]\d*)?)$/,HHMMSS:/^(\d{2}):?(\d{2}):?(\d{2}([.,]\d*)?)$/,timeZone:tzPattern};function toDate(e,t={}){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");if(e===null)return new Date(NaN);const n=t.additionalDigits==null?DEFAULT_ADDITIONAL_DIGITS:Number(t.additionalDigits);if(n!==2&&n!==1&&n!==0)throw new RangeError("additionalDigits must be 0, 1 or 2");if(e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]")return new Date(e.getTime());if(typeof e=="number"||Object.prototype.toString.call(e)==="[object Number]")return new Date(e);if(Object.prototype.toString.call(e)!=="[object String]")return new Date(NaN);const i=splitDateString(e),{year:s,restDateString:a}=parseYear(i.date,n),o=parseDate(a,s);if(o===null||isNaN(o.getTime()))return new Date(NaN);if(o){const l=o.getTime();let c=0,d;if(i.time&&(c=parseTime(i.time),c===null||isNaN(c)))return new Date(NaN);if(i.timeZone||t.timeZone){if(d=tzParseTimezone(i.timeZone||t.timeZone,new Date(l+c)),isNaN(d))return new Date(NaN)}else d=getTimezoneOffsetInMilliseconds(new Date(l+c)),d=getTimezoneOffsetInMilliseconds(new Date(l+c+d));return new Date(l+c+d)}else return new Date(NaN)}function splitDateString(e){const t={};let n=patterns.dateTimePattern.exec(e),i;if(n?(t.date=n[1],i=n[3]):(n=patterns.datePattern.exec(e),n?(t.date=n[1],i=n[2]):(t.date=null,i=e)),i){const s=patterns.timeZone.exec(i);s?(t.time=i.replace(s[1],""),t.timeZone=s[1].trim()):t.time=i}return t}function parseYear(e,t){if(e){const n=patterns.YYY[t],i=patterns.YYYYY[t];let s=patterns.YYYY.exec(e)||i.exec(e);if(s){const a=s[1];return{year:parseInt(a,10),restDateString:e.slice(a.length)}}if(s=patterns.YY.exec(e)||n.exec(e),s){const a=s[1];return{year:parseInt(a,10)*100,restDateString:e.slice(a.length)}}}return{year:null}}function parseDate(e,t){if(t===null)return null;let n,i,s;if(!e||!e.length)return n=new Date(0),n.setUTCFullYear(t),n;let a=patterns.MM.exec(e);if(a)return n=new Date(0),i=parseInt(a[1],10)-1,validateDate(t,i)?(n.setUTCFullYear(t,i),n):new Date(NaN);if(a=patterns.DDD.exec(e),a){n=new Date(0);const o=parseInt(a[1],10);return validateDayOfYearDate(t,o)?(n.setUTCFullYear(t,0,o),n):new Date(NaN)}if(a=patterns.MMDD.exec(e),a){n=new Date(0),i=parseInt(a[1],10)-1;const o=parseInt(a[2],10);return validateDate(t,i,o)?(n.setUTCFullYear(t,i,o),n):new Date(NaN)}if(a=patterns.Www.exec(e),a)return s=parseInt(a[1],10)-1,validateWeekDate(s)?dayOfISOWeekYear(t,s):new Date(NaN);if(a=patterns.WwwD.exec(e),a){s=parseInt(a[1],10)-1;const o=parseInt(a[2],10)-1;return validateWeekDate(s,o)?dayOfISOWeekYear(t,s,o):new Date(NaN)}return null}function parseTime(e){let t,n,i=patterns.HH.exec(e);if(i)return t=parseFloat(i[1].replace(",",".")),validateTime(t)?t%24*MILLISECONDS_IN_HOUR:NaN;if(i=patterns.HHMM.exec(e),i)return t=parseInt(i[1],10),n=parseFloat(i[2].replace(",",".")),validateTime(t,n)?t%24*MILLISECONDS_IN_HOUR+n*MILLISECONDS_IN_MINUTE:NaN;if(i=patterns.HHMMSS.exec(e),i){t=parseInt(i[1],10),n=parseInt(i[2],10);const s=parseFloat(i[3].replace(",","."));return validateTime(t,n,s)?t%24*MILLISECONDS_IN_HOUR+n*MILLISECONDS_IN_MINUTE+s*1e3:NaN}return null}function dayOfISOWeekYear(e,t,n){t=t||0,n=n||0;const i=new Date(0);i.setUTCFullYear(e,0,4);const s=i.getUTCDay()||7,a=t*7+n+1-s;return i.setUTCDate(i.getUTCDate()+a),i}const DAYS_IN_MONTH=[31,28,31,30,31,30,31,31,30,31,30,31],DAYS_IN_MONTH_LEAP_YEAR=[31,29,31,30,31,30,31,31,30,31,30,31];function isLeapYearIndex(e){return e%400===0||e%4===0&&e%100!==0}function validateDate(e,t,n){if(t<0||t>11)return!1;if(n!=null){if(n<1)return!1;const i=isLeapYearIndex(e);if(i&&n>DAYS_IN_MONTH_LEAP_YEAR[t]||!i&&n>DAYS_IN_MONTH[t])return!1}return!0}function validateDayOfYearDate(e,t){if(t<1)return!1;const n=isLeapYearIndex(e);return!(n&&t>366||!n&&t>365)}function validateWeekDate(e,t){return!(e<0||e>52||t!=null&&(t<0||t>6))}function validateTime(e,t,n){return!(e<0||e>=25||t!=null&&(t<0||t>=60)||n!=null&&(n<0||n>=60))}const tzFormattingTokensRegExp=/([xXOz]+)|''|'(''|[^'])+('|$)/g;function format(e,t,n={}){t=String(t);const i=t.match(tzFormattingTokensRegExp);if(i){const s=toDate(n.originalDate||e,n);t=i.reduce(function(a,o){if(o[0]==="'")return a;const l=a.indexOf(o),c=a[l-1]==="'",d=a.replace(o,"'"+formatters[o[0]](s,o,n)+"'");return c?d.substring(0,l-1)+d.substring(l+1):d},t)}return format$1(e,t,n)}function toZonedTime(e,t,n){e=toDate(e,n);const i=tzParseTimezone(t,e,!0),s=new Date(e.getTime()-i),a=new Date(0);return a.setFullYear(s.getUTCFullYear(),s.getUTCMonth(),s.getUTCDate()),a.setHours(s.getUTCHours(),s.getUTCMinutes(),s.getUTCSeconds(),s.getUTCMilliseconds()),a}const useDateTimeService=()=>({formatDate:format,formatDateDistance:formatDistance,subDays,parseIsoDate:parseISO,dateIsBefore:isBefore,formatInTimeZone:(o,l,c)=>format(toZonedTime(o,c),l,{timeZone:c})}),useIconService=()=>({Close20:lucideVueNext.X,ArrowRight20:lucideVueNext.ArrowRight,ArrowRight32:lucideVueNext.ArrowRight,Notification20:lucideVueNext.Bell,UserAvatar20:lucideVueNext.User,UserAvatar32:lucideVueNext.User,Search20:lucideVueNext.Search,RowExpand20:lucideVueNext.Expand,RowCollapse20:lucideVueNext.Minimize2,Reset20:lucideVueNext.RotateCcw,Reset32:lucideVueNext.RotateCcw,Download20:lucideVueNext.Download,Launch20:lucideVueNext.ExternalLink,Upgrade20:lucideVueNext.TrendingUp,Upgrade32:lucideVueNext.TrendingUp,Settings16:lucideVueNext.Settings,Settings20:lucideVueNext.Settings,Settings32:lucideVueNext.Settings,ChevronDown20:lucideVueNext.ChevronDown,ChevronUp20:lucideVueNext.ChevronUp,ChevronLeft20:lucideVueNext.ChevronLeft,ChevronRight20:lucideVueNext.ChevronRight,Information16:lucideVueNext.Info,Information20:lucideVueNext.Info,InformationFilled16:lucideVueNext.Info,Application20:lucideVueNext.Package,Application32:lucideVueNext.Package,Add20:lucideVueNext.Plus,Rocket20:lucideVueNext.Rocket,Rocket32:lucideVueNext.Rocket,Chip20:lucideVueNext.Cpu,Chip32:lucideVueNext.Cpu,Save20:lucideVueNext.Save,Save32:lucideVueNext.Save,Copy20:lucideVueNext.Copy,EdgeNode20:lucideVueNext.Server,EdgeNode32:lucideVueNext.Server,Cube32:lucideVueNext.Box,EdgeCluster20:lucideVueNext.Box,EdgeCluster32:lucideVueNext.Box,Connect32:lucideVueNext.Link,Connect20:lucideVueNext.Link,Edit20:lucideVueNext.Edit,Password20:lucideVueNext.Key,Star20:lucideVueNext.Star,Checkmark20:lucideVueNext.Check,ZoomIn20:lucideVueNext.ZoomIn,Events32:lucideVueNext.Calendar,Events20:lucideVueNext.Calendar,Events16:lucideVueNext.Calendar,Link20:lucideVueNext.Link,Link32:lucideVueNext.Link,WarningAlt20:lucideVueNext.AlertTriangle,WarningAlt32:lucideVueNext.AlertTriangle,Tools20:lucideVueNext.Wrench,Tools32:lucideVueNext.Wrench,Network_220:lucideVueNext.Network,Network_232:lucideVueNext.Network,DataBase20:lucideVueNext.Database,DataBase32:lucideVueNext.Database,DataBackup20:lucideVueNext.HardDrive,DataBackup32:lucideVueNext.HardDrive,ArrowDown20:lucideVueNext.ArrowDown,ArrowDown32:lucideVueNext.ArrowDown,Time20:lucideVueNext.Clock,Time32:lucideVueNext.Clock,Hourglass20:lucideVueNext.Hourglass,Hourglass32:lucideVueNext.Hourglass,CheckmarkFilled16:lucideVueNext.CheckCircle,CheckmarkFilled20:lucideVueNext.CheckCircle,CheckmarkFilled32:lucideVueNext.CheckCircle,ErrorFilled16:lucideVueNext.CircleX,ErrorFilled20:lucideVueNext.CircleX,ErrorFilled32:lucideVueNext.CircleX,Warning16:lucideVueNext.AlertTriangle,Warning20:lucideVueNext.AlertTriangle,Warning32:lucideVueNext.AlertTriangle,Power16:lucideVueNext.Power,Power20:lucideVueNext.Power,Power32:lucideVueNext.Power,Document20:lucideVueNext.FileText,Document32:lucideVueNext.FileText,OverflowMenuVertical20:lucideVueNext.MoreVertical,OverflowMenuVertical32:lucideVueNext.MoreVertical,Restart20:lucideVueNext.RotateCw,Restart32:lucideVueNext.RotateCw,TrashCan20:lucideVueNext.Trash2,TrashCan32:lucideVueNext.Trash2,Erase20:lucideVueNext.Eraser,Erase32:lucideVueNext.Eraser,Row20:lucideVueNext.Rows,Column20:lucideVueNext.Columns,Catalog20:lucideVueNext.Library,Catalog32:lucideVueNext.Library,Group20:lucideVueNext.Users,Router32:lucideVueNext.Router,Router20:lucideVueNext.Router,Certificate32:lucideVueNext.ShieldCheck,Certificate20:lucideVueNext.ShieldCheck,BareMetalServer20:lucideVueNext.ServerCog,BareMetalServer32:lucideVueNext.ServerCog,Firewall20:lucideVueNext.Shield,Firewall32:lucideVueNext.Shield,Wikis32:lucideVueNext.BookOpen,Wikis20:lucideVueNext.BookOpen,Wikis16:lucideVueNext.BookOpen,At32:lucideVueNext.AtSign,At20:lucideVueNext.AtSign,User16:lucideVueNext.User,User20:lucideVueNext.User,User32:lucideVueNext.User,Unknown16:lucideVueNext.HelpCircle,Unknown20:lucideVueNext.HelpCircle,Unknown32:lucideVueNext.HelpCircle,Email16:lucideVueNext.Mail,Email20:lucideVueNext.Mail,Email32:lucideVueNext.Mail,Locked16:lucideVueNext.Lock,Locked20:lucideVueNext.Lock,Locked32:lucideVueNext.Lock,Folder16:lucideVueNext.Folder,Folder20:lucideVueNext.Folder,Folder32:lucideVueNext.Folder,Asterisk16:lucideVueNext.Asterisk,Asterisk20:lucideVueNext.Asterisk,Asterisk32:lucideVueNext.Asterisk,Box16:lucideVueNext.Box,Box20:lucideVueNext.Box,Box32:lucideVueNext.Box,UserMilitary32:lucideVueNext.UserCheck,Rule16:lucideVueNext.Ruler,Rule20:lucideVueNext.Ruler,Rule32:lucideVueNext.Ruler,Filter16:lucideVueNext.Filter,Filter20:lucideVueNext.Filter,Filter32:lucideVueNext.Filter,CloseFilled16:lucideVueNext.XCircle,CloseFilled20:lucideVueNext.XCircle,CloseFilled32:lucideVueNext.XCircle,Badge16:lucideVueNext.Award,Badge20:lucideVueNext.Award,Badge32:lucideVueNext.Award,FolderShared16:lucideVueNext.FolderOpen,FolderShared20:lucideVueNext.FolderOpen,FolderShared32:lucideVueNext.FolderOpen,MailAll16:lucideVueNext.Inbox,MailAll20:lucideVueNext.Inbox,MailAll32:lucideVueNext.Inbox,CloudUpload16:lucideVueNext.CloudUpload,CloudUpload20:lucideVueNext.CloudUpload,CloudUpload32:lucideVueNext.CloudUpload}),usePageTitleService=()=>{const e=t=>{if(t){const n=typeof t=="function"?t():t;if(n.includes(".title")){const i=window.parent?.CONFIG?.PRODUCT_NAME||"";document.title=i,window.parent?.document&&(window.parent.document.title=i)}else document.title=n,window.parent?.document&&(window.parent.document.title=n)}};return No.onMounted(()=>{const t=document.querySelector('meta[name="vue-page-title"]');t&&e(t.content)}),{setPageTitle:e}},useQueryParamService=()=>{const e=p=>p==="true"?!0:p==="false"?!1:p,t=(p=window.location.hash)=>{if(!p.includes("?")||p.split("?").length<2)return{};const h=new URLSearchParams(p.split("?").pop()||""),y={};return h.forEach((f,m)=>{m&&(y[m]=f)}),y},n=()=>t(window.location.hash),i=()=>t(window.parent?.location?.hash||""),s=(p,h)=>{p.value&&Object.keys(p.value).forEach(y=>{typeof h[y]<"u"&&(p.value[y]=e(h[y]))})},a=(p,h,y)=>{const f=[];for(const[C,g]of Object.entries(p.value))f.push(`${C}=${encodeURIComponent(String(g))}`);const m=h.path+"?"+f.join("&");h.fullPath!==m&&y.replace(m)},o=(p,h,y)=>{p.value&&Object.keys(p.value).forEach(f=>{No.watch(()=>p.value[f],()=>{a(p,h,y)})})};let l=null;return{getTypedValue:e,getQueryParams:n,getQueryParamsForApp:i,queryParamsToData:s,dataToQueryParams:a,watchQueryData:o,initUrlBindingForApp:(p,h,y)=>{let f=window.parent?.location?.href||"";const m=()=>{const v=i();s(p,v),a(p,{path:"",fullPath:""},{replace:()=>{}})},C=()=>{const v=window.parent?.location?.href||"";if(v!==f){f=v;const w=i().page||"status";y&&y(w),w!==h?window.dispatchEvent(new CustomEvent("changeRoute",{detail:w})):m()}f=window.parent?.location?.href||""};return(i().page||"status")!==h?null:(m(),l=window.setInterval(C,500),l)},cleanupUrlBinding:()=>{l!==null&&(clearInterval(l),l=null)},getPage:()=>n().page||"status"}},useStorageService=()=>({getFromStorage:i=>{try{const s=localStorage.getItem(i);return s?JSON.parse(s):null}catch(s){return console.error(`Error reading from storage for key "${i}":`,s),null}},saveToStorage:(i,s)=>{try{localStorage.setItem(i,JSON.stringify(s))}catch(a){console.error(`Error saving to storage for key "${i}":`,a)}},deleteFromStorage:i=>{try{localStorage.removeItem(i)}catch(s){console.error(`Error deleting from storage for key "${i}":`,s)}}});function bind(e,t){return function(){return e.apply(t,arguments)}}const{toString}=Object.prototype,{getPrototypeOf}=Object,{iterator,toStringTag}=Symbol,kindOf=(e=>t=>{const n=toString.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),kindOfTest=e=>(e=e.toLowerCase(),t=>kindOf(t)===e),typeOfTest=e=>t=>typeof t===e,{isArray}=Array,isUndefined=typeOfTest("undefined");function isBuffer(e){return e!==null&&!isUndefined(e)&&e.constructor!==null&&!isUndefined(e.constructor)&&isFunction$1(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const isArrayBuffer=kindOfTest("ArrayBuffer");function isArrayBufferView(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&isArrayBuffer(e.buffer),t}const isString=typeOfTest("string"),isFunction$1=typeOfTest("function"),isNumber=typeOfTest("number"),isObject=e=>e!==null&&typeof e=="object",isBoolean=e=>e===!0||e===!1,isPlainObject=e=>{if(kindOf(e)!=="object")return!1;const t=getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(toStringTag in e)&&!(iterator in e)},isEmptyObject=e=>{if(!isObject(e)||isBuffer(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},isDate=kindOfTest("Date"),isFile=kindOfTest("File"),isBlob=kindOfTest("Blob"),isFileList=kindOfTest("FileList"),isStream=e=>isObject(e)&&isFunction$1(e.pipe),isFormData=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||isFunction$1(e.append)&&((t=kindOf(e))==="formdata"||t==="object"&&isFunction$1(e.toString)&&e.toString()==="[object FormData]"))},isURLSearchParams=kindOfTest("URLSearchParams"),[isReadableStream,isRequest,isResponse,isHeaders]=["ReadableStream","Request","Response","Headers"].map(kindOfTest),trim=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function forEach(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let i,s;if(typeof e!="object"&&(e=[e]),isArray(e))for(i=0,s=e.length;i<s;i++)t.call(null,e[i],i,e);else{if(isBuffer(e))return;const a=n?Object.getOwnPropertyNames(e):Object.keys(e),o=a.length;let l;for(i=0;i<o;i++)l=a[i],t.call(null,e[l],l,e)}}function findKey(e,t){if(isBuffer(e))return null;t=t.toLowerCase();const n=Object.keys(e);let i=n.length,s;for(;i-- >0;)if(s=n[i],t===s.toLowerCase())return s;return null}const _global=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,isContextDefined=e=>!isUndefined(e)&&e!==_global;function merge(){const{caseless:e,skipUndefined:t}=isContextDefined(this)&&this||{},n={},i=(s,a)=>{const o=e&&findKey(n,a)||a;isPlainObject(n[o])&&isPlainObject(s)?n[o]=merge(n[o],s):isPlainObject(s)?n[o]=merge({},s):isArray(s)?n[o]=s.slice():(!t||!isUndefined(s))&&(n[o]=s)};for(let s=0,a=arguments.length;s<a;s++)arguments[s]&&forEach(arguments[s],i);return n}const extend=(e,t,n,{allOwnKeys:i}={})=>(forEach(t,(s,a)=>{n&&isFunction$1(s)?e[a]=bind(s,n):e[a]=s},{allOwnKeys:i}),e),stripBOM=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),inherits=(e,t,n,i)=>{e.prototype=Object.create(t.prototype,i),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},toFlatObject=(e,t,n,i)=>{let s,a,o;const l={};if(t=t||{},e==null)return t;do{for(s=Object.getOwnPropertyNames(e),a=s.length;a-- >0;)o=s[a],(!i||i(o,e,t))&&!l[o]&&(t[o]=e[o],l[o]=!0);e=n!==!1&&getPrototypeOf(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},endsWith=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const i=e.indexOf(t,n);return i!==-1&&i===n},toArray=e=>{if(!e)return null;if(isArray(e))return e;let t=e.length;if(!isNumber(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},isTypedArray=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&getPrototypeOf(Uint8Array)),forEachEntry=(e,t)=>{const i=(e&&e[iterator]).call(e);let s;for(;(s=i.next())&&!s.done;){const a=s.value;t.call(e,a[0],a[1])}},matchAll=(e,t)=>{let n;const i=[];for(;(n=e.exec(t))!==null;)i.push(n);return i},isHTMLForm=kindOfTest("HTMLFormElement"),toCamelCase=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,i,s){return i.toUpperCase()+s}),hasOwnProperty=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),isRegExp=kindOfTest("RegExp"),reduceDescriptors=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),i={};forEach(n,(s,a)=>{let o;(o=t(s,a,e))!==!1&&(i[a]=o||s)}),Object.defineProperties(e,i)},freezeMethods=e=>{reduceDescriptors(e,(t,n)=>{if(isFunction$1(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const i=e[n];if(isFunction$1(i)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},toObjectSet=(e,t)=>{const n={},i=s=>{s.forEach(a=>{n[a]=!0})};return isArray(e)?i(e):i(String(e).split(t)),n},noop=()=>{},toFiniteNumber=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function isSpecCompliantForm(e){return!!(e&&isFunction$1(e.append)&&e[toStringTag]==="FormData"&&e[iterator])}const toJSONObject=e=>{const t=new Array(10),n=(i,s)=>{if(isObject(i)){if(t.indexOf(i)>=0)return;if(isBuffer(i))return i;if(!("toJSON"in i)){t[s]=i;const a=isArray(i)?[]:{};return forEach(i,(o,l)=>{const c=n(o,s+1);!isUndefined(c)&&(a[l]=c)}),t[s]=void 0,a}}return i};return n(e,0)},isAsyncFn=kindOfTest("AsyncFunction"),isThenable=e=>e&&(isObject(e)||isFunction$1(e))&&isFunction$1(e.then)&&isFunction$1(e.catch),_setImmediate=((e,t)=>e?setImmediate:t?((n,i)=>(_global.addEventListener("message",({source:s,data:a})=>{s===_global&&a===n&&i.length&&i.shift()()},!1),s=>{i.push(s),_global.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",isFunction$1(_global.postMessage)),asap=typeof queueMicrotask<"u"?queueMicrotask.bind(_global):typeof process<"u"&&process.nextTick||_setImmediate,isIterable=e=>e!=null&&isFunction$1(e[iterator]),utils$1={isArray,isArrayBuffer,isBuffer,isFormData,isArrayBufferView,isString,isNumber,isBoolean,isObject,isPlainObject,isEmptyObject,isReadableStream,isRequest,isResponse,isHeaders,isUndefined,isDate,isFile,isBlob,isRegExp,isFunction:isFunction$1,isStream,isURLSearchParams,isTypedArray,isFileList,forEach,merge,extend,trim,stripBOM,inherits,toFlatObject,kindOf,kindOfTest,endsWith,toArray,forEachEntry,matchAll,isHTMLForm,hasOwnProperty,hasOwnProp:hasOwnProperty,reduceDescriptors,freezeMethods,toObjectSet,toCamelCase,noop,toFiniteNumber,findKey,global:_global,isContextDefined,isSpecCompliantForm,toJSONObject,isAsyncFn,isThenable,setImmediate:_setImmediate,asap,isIterable};function AxiosError$1(e,t,n,i,s){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),i&&(this.request=i),s&&(this.response=s,this.status=s.status?s.status:null)}utils$1.inherits(AxiosError$1,Error,{toJSON:function e(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:utils$1.toJSONObject(this.config),code:this.code,status:this.status}}});const prototype$1=AxiosError$1.prototype,descriptors={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{descriptors[e]={value:e}}),Object.defineProperties(AxiosError$1,descriptors),Object.defineProperty(prototype$1,"isAxiosError",{value:!0}),AxiosError$1.from=(e,t,n,i,s,a)=>{const o=Object.create(prototype$1);utils$1.toFlatObject(e,o,function(u){return u!==Error.prototype},d=>d!=="isAxiosError");const l=e&&e.message?e.message:"Error",c=t==null&&e?e.code:t;return AxiosError$1.call(o,l,c,n,i,s),e&&o.cause==null&&Object.defineProperty(o,"cause",{value:e,configurable:!0}),o.name=e&&e.name||"Error",a&&Object.assign(o,a),o};const httpAdapter=null;function isVisitable(e){return utils$1.isPlainObject(e)||utils$1.isArray(e)}function removeBrackets(e){return utils$1.endsWith(e,"[]")?e.slice(0,-2):e}function renderKey(e,t,n){return e?e.concat(t).map(function(s,a){return s=removeBrackets(s),!n&&a?"["+s+"]":s}).join(n?".":""):t}function isFlatArray(e){return utils$1.isArray(e)&&!e.some(isVisitable)}const predicates=utils$1.toFlatObject(utils$1,{},null,function e(t){return/^is[A-Z]/.test(t)});function toFormData$1(e,t,n){if(!utils$1.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=utils$1.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(m,C){return!utils$1.isUndefined(C[m])});const i=n.metaTokens,s=n.visitor||u,a=n.dots,o=n.indexes,c=(n.Blob||typeof Blob<"u"&&Blob)&&utils$1.isSpecCompliantForm(t);if(!utils$1.isFunction(s))throw new TypeError("visitor must be a function");function d(f){if(f===null)return"";if(utils$1.isDate(f))return f.toISOString();if(utils$1.isBoolean(f))return f.toString();if(!c&&utils$1.isBlob(f))throw new AxiosError$1("Blob is not supported. Use a Buffer instead.");return utils$1.isArrayBuffer(f)||utils$1.isTypedArray(f)?c&&typeof Blob=="function"?new Blob([f]):Buffer.from(f):f}function u(f,m,C){let g=f;if(f&&!C&&typeof f=="object"){if(utils$1.endsWith(m,"{}"))m=i?m:m.slice(0,-2),f=JSON.stringify(f);else if(utils$1.isArray(f)&&isFlatArray(f)||(utils$1.isFileList(f)||utils$1.endsWith(m,"[]"))&&(g=utils$1.toArray(f)))return m=removeBrackets(m),g.forEach(function(v,N){!(utils$1.isUndefined(v)||v===null)&&t.append(o===!0?renderKey([m],N,a):o===null?m:m+"[]",d(v))}),!1}return isVisitable(f)?!0:(t.append(renderKey(C,m,a),d(f)),!1)}const p=[],h=Object.assign(predicates,{defaultVisitor:u,convertValue:d,isVisitable});function y(f,m){if(!utils$1.isUndefined(f)){if(p.indexOf(f)!==-1)throw Error("Circular reference detected in "+m.join("."));p.push(f),utils$1.forEach(f,function(g,b){(!(utils$1.isUndefined(g)||g===null)&&s.call(t,g,utils$1.isString(b)?b.trim():b,m,h))===!0&&y(g,m?m.concat(b):[b])}),p.pop()}}if(!utils$1.isObject(e))throw new TypeError("data must be an object");return y(e),t}function encode$1(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(i){return t[i]})}function AxiosURLSearchParams(e,t){this._pairs=[],e&&toFormData$1(e,this,t)}const prototype=AxiosURLSearchParams.prototype;prototype.append=function e(t,n){this._pairs.push([t,n])},prototype.toString=function e(t){const n=t?function(i){return t.call(this,i,encode$1)}:encode$1;return this._pairs.map(function(s){return n(s[0])+"="+n(s[1])},"").join("&")};function encode(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function buildURL(e,t,n){if(!t)return e;const i=n&&n.encode||encode;utils$1.isFunction(n)&&(n={serialize:n});const s=n&&n.serialize;let a;if(s?a=s(t,n):a=utils$1.isURLSearchParams(t)?t.toString():new AxiosURLSearchParams(t,n).toString(i),a){const o=e.indexOf("#");o!==-1&&(e=e.slice(0,o)),e+=(e.indexOf("?")===-1?"?":"&")+a}return e}class InterceptorManager{constructor(){this.handlers=[]}use(t,n,i){return this.handlers.push({fulfilled:t,rejected:n,synchronous:i?i.synchronous:!1,runWhen:i?i.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){utils$1.forEach(this.handlers,function(i){i!==null&&t(i)})}}const transitionalDefaults={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},URLSearchParams$1=typeof URLSearchParams<"u"?URLSearchParams:AxiosURLSearchParams,FormData$1=typeof FormData<"u"?FormData:null,Blob$1=typeof Blob<"u"?Blob:null,platform$1={isBrowser:!0,classes:{URLSearchParams:URLSearchParams$1,FormData:FormData$1,Blob:Blob$1},protocols:["http","https","file","blob","url","data"]},hasBrowserEnv=typeof window<"u"&&typeof document<"u",_navigator=typeof navigator=="object"&&navigator||void 0,hasStandardBrowserEnv=hasBrowserEnv&&(!_navigator||["ReactNative","NativeScript","NS"].indexOf(_navigator.product)<0),hasStandardBrowserWebWorkerEnv=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",origin=hasBrowserEnv&&window.location.href||"http://localhost",utils=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv,hasStandardBrowserEnv,hasStandardBrowserWebWorkerEnv,navigator:_navigator,origin},Symbol.toStringTag,{value:"Module"})),platform={...utils,...platform$1};function toURLEncodedForm(e,t){return toFormData$1(e,new platform.classes.URLSearchParams,{visitor:function(n,i,s,a){return platform.isNode&&utils$1.isBuffer(n)?(this.append(i,n.toString("base64")),!1):a.defaultVisitor.apply(this,arguments)},...t})}function parsePropPath(e){return utils$1.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function arrayToObject(e){const t={},n=Object.keys(e);let i;const s=n.length;let a;for(i=0;i<s;i++)a=n[i],t[a]=e[a];return t}function formDataToJSON(e){function t(n,i,s,a){let o=n[a++];if(o==="__proto__")return!0;const l=Number.isFinite(+o),c=a>=n.length;return o=!o&&utils$1.isArray(s)?s.length:o,c?(utils$1.hasOwnProp(s,o)?s[o]=[s[o],i]:s[o]=i,!l):((!s[o]||!utils$1.isObject(s[o]))&&(s[o]=[]),t(n,i,s[o],a)&&utils$1.isArray(s[o])&&(s[o]=arrayToObject(s[o])),!l)}if(utils$1.isFormData(e)&&utils$1.isFunction(e.entries)){const n={};return utils$1.forEachEntry(e,(i,s)=>{t(parsePropPath(i),s,n,0)}),n}return null}function stringifySafely(e,t,n){if(utils$1.isString(e))try{return(t||JSON.parse)(e),utils$1.trim(e)}catch(i){if(i.name!=="SyntaxError")throw i}return(n||JSON.stringify)(e)}const defaults={transitional:transitionalDefaults,adapter:["xhr","http","fetch"],transformRequest:[function e(t,n){const i=n.getContentType()||"",s=i.indexOf("application/json")>-1,a=utils$1.isObject(t);if(a&&utils$1.isHTMLForm(t)&&(t=new FormData(t)),utils$1.isFormData(t))return s?JSON.stringify(formDataToJSON(t)):t;if(utils$1.isArrayBuffer(t)||utils$1.isBuffer(t)||utils$1.isStream(t)||utils$1.isFile(t)||utils$1.isBlob(t)||utils$1.isReadableStream(t))return t;if(utils$1.isArrayBufferView(t))return t.buffer;if(utils$1.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let l;if(a){if(i.indexOf("application/x-www-form-urlencoded")>-1)return toURLEncodedForm(t,this.formSerializer).toString();if((l=utils$1.isFileList(t))||i.indexOf("multipart/form-data")>-1){const c=this.env&&this.env.FormData;return toFormData$1(l?{"files[]":t}:t,c&&new c,this.formSerializer)}}return a||s?(n.setContentType("application/json",!1),stringifySafely(t)):t}],transformResponse:[function e(t){const n=this.transitional||defaults.transitional,i=n&&n.forcedJSONParsing,s=this.responseType==="json";if(utils$1.isResponse(t)||utils$1.isReadableStream(t))return t;if(t&&utils$1.isString(t)&&(i&&!this.responseType||s)){const o=!(n&&n.silentJSONParsing)&&s;try{return JSON.parse(t,this.parseReviver)}catch(l){if(o)throw l.name==="SyntaxError"?AxiosError$1.from(l,AxiosError$1.ERR_BAD_RESPONSE,this,null,this.response):l}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:platform.classes.FormData,Blob:platform.classes.Blob},validateStatus:function e(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};utils$1.forEach(["delete","get","head","post","put","patch"],e=>{defaults.headers[e]={}});const ignoreDuplicateOf=utils$1.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),parseHeaders=e=>{const t={};let n,i,s;return e&&e.split(`
|
|
14
|
-
`).forEach(function(o){s=o.indexOf(":"),n=o.substring(0,s).trim().toLowerCase(),i=o.substring(s+1).trim(),!(!n||t[n]&&ignoreDuplicateOf[n])&&(n==="set-cookie"?t[n]?t[n].push(i):t[n]=[i]:t[n]=t[n]?t[n]+", "+i:i)}),t},$internals=Symbol("internals");function normalizeHeader(e){return e&&String(e).trim().toLowerCase()}function normalizeValue(e){return e===!1||e==null?e:utils$1.isArray(e)?e.map(normalizeValue):String(e)}function parseTokens(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let i;for(;i=n.exec(e);)t[i[1]]=i[2];return t}const isValidHeaderName=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function matchHeaderValue(e,t,n,i,s){if(utils$1.isFunction(i))return i.call(this,t,n);if(s&&(t=n),!!utils$1.isString(t)){if(utils$1.isString(i))return t.indexOf(i)!==-1;if(utils$1.isRegExp(i))return i.test(t)}}function formatHeader(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,i)=>n.toUpperCase()+i)}function buildAccessors(e,t){const n=utils$1.toCamelCase(" "+t);["get","set","has"].forEach(i=>{Object.defineProperty(e,i+n,{value:function(s,a,o){return this[i].call(this,t,s,a,o)},configurable:!0})})}let AxiosHeaders$1=class{constructor(t){t&&this.set(t)}set(t,n,i){const s=this;function a(l,c,
|
|
15
|
-
`)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const i=new this(t);return n.forEach(s=>i.set(s)),i}static accessor(t){const i=(this[$internals]=this[$internals]={accessors:{}}).accessors,s=this.prototype;function a(o){const l=normalizeHeader(o);i[l]||(buildAccessors(s,o),i[l]=!0)}return utils$1.isArray(t)?t.forEach(a):a(t),this}};AxiosHeaders$1.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),utils$1.reduceDescriptors(AxiosHeaders$1.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(i){this[n]=i}}}),utils$1.freezeMethods(AxiosHeaders$1);function transformData(e,t){const n=this||defaults,i=t||n,s=AxiosHeaders$1.from(i.headers);let a=i.data;return utils$1.forEach(e,function(l){a=l.call(n,a,s.normalize(),t?t.status:void 0)}),s.normalize(),a}function isCancel$1(e){return!!(e&&e.__CANCEL__)}function CanceledError$1(e,t,n){AxiosError$1.call(this,e??"canceled",AxiosError$1.ERR_CANCELED,t,n),this.name="CanceledError"}utils$1.inherits(CanceledError$1,AxiosError$1,{__CANCEL__:!0});function settle(e,t,n){const i=n.config.validateStatus;!n.status||!i||i(n.status)?e(n):t(new AxiosError$1("Request failed with status code "+n.status,[AxiosError$1.ERR_BAD_REQUEST,AxiosError$1.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function parseProtocol(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function speedometer(e,t){e=e||10;const n=new Array(e),i=new Array(e);let s=0,a=0,o;return t=t!==void 0?t:1e3,function(c){const d=Date.now(),u=i[a];o||(o=d),n[s]=c,i[s]=d;let p=a,h=0;for(;p!==s;)h+=n[p++],p=p%e;if(s=(s+1)%e,s===a&&(a=(a+1)%e),d-o<t)return;const y=u&&d-u;return y?Math.round(h*1e3/y):void 0}}function throttle(e,t){let n=0,i=1e3/t,s,a;const o=(d,u=Date.now())=>{n=u,s=null,a&&(clearTimeout(a),a=null),e(...d)};return[(...d)=>{const u=Date.now(),p=u-n;p>=i?o(d,u):(s=d,a||(a=setTimeout(()=>{a=null,o(s)},i-p)))},()=>s&&o(s)]}const progressEventReducer=(e,t,n=3)=>{let i=0;const s=speedometer(50,250);return throttle(a=>{const o=a.loaded,l=a.lengthComputable?a.total:void 0,c=o-i,d=s(c),u=o<=l;i=o;const p={loaded:o,total:l,progress:l?o/l:void 0,bytes:c,rate:d||void 0,estimated:d&&l&&u?(l-o)/d:void 0,event:a,lengthComputable:l!=null,[t?"download":"upload"]:!0};e(p)},n)},progressEventDecorator=(e,t)=>{const n=e!=null;return[i=>t[0]({lengthComputable:n,total:e,loaded:i}),t[1]]},asyncDecorator=e=>(...t)=>utils$1.asap(()=>e(...t)),isURLSameOrigin=platform.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,platform.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(platform.origin),platform.navigator&&/(msie|trident)/i.test(platform.navigator.userAgent)):()=>!0,cookies=platform.hasStandardBrowserEnv?{write(e,t,n,i,s,a,o){if(typeof document>"u")return;const l=[`${e}=${encodeURIComponent(t)}`];utils$1.isNumber(n)&&l.push(`expires=${new Date(n).toUTCString()}`),utils$1.isString(i)&&l.push(`path=${i}`),utils$1.isString(s)&&l.push(`domain=${s}`),a===!0&&l.push("secure"),utils$1.isString(o)&&l.push(`SameSite=${o}`),document.cookie=l.join("; ")},read(e){if(typeof document>"u")return null;const t=document.cookie.match(new RegExp("(?:^|; )"+e+"=([^;]*)"));return t?decodeURIComponent(t[1]):null},remove(e){this.write(e,"",Date.now()-864e5,"/")}}:{write(){},read(){return null},remove(){}};function isAbsoluteURL(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function combineURLs(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function buildFullPath(e,t,n){let i=!isAbsoluteURL(t);return e&&(i||n==!1)?combineURLs(e,t):t}const headersToObject=e=>e instanceof AxiosHeaders$1?{...e}:e;function mergeConfig$1(e,t){t=t||{};const n={};function i(d,u,p,h){return utils$1.isPlainObject(d)&&utils$1.isPlainObject(u)?utils$1.merge.call({caseless:h},d,u):utils$1.isPlainObject(u)?utils$1.merge({},u):utils$1.isArray(u)?u.slice():u}function s(d,u,p,h){if(utils$1.isUndefined(u)){if(!utils$1.isUndefined(d))return i(void 0,d,p,h)}else return i(d,u,p,h)}function a(d,u){if(!utils$1.isUndefined(u))return i(void 0,u)}function o(d,u){if(utils$1.isUndefined(u)){if(!utils$1.isUndefined(d))return i(void 0,d)}else return i(void 0,u)}function l(d,u,p){if(p in t)return i(d,u);if(p in e)return i(void 0,d)}const c={url:a,method:a,data:a,baseURL:o,transformRequest:o,transformResponse:o,paramsSerializer:o,timeout:o,timeoutMessage:o,withCredentials:o,withXSRFToken:o,adapter:o,responseType:o,xsrfCookieName:o,xsrfHeaderName:o,onUploadProgress:o,onDownloadProgress:o,decompress:o,maxContentLength:o,maxBodyLength:o,beforeRedirect:o,transport:o,httpAgent:o,httpsAgent:o,cancelToken:o,socketPath:o,responseEncoding:o,validateStatus:l,headers:(d,u,p)=>s(headersToObject(d),headersToObject(u),p,!0)};return utils$1.forEach(Object.keys({...e,...t}),function(u){const p=c[u]||s,h=p(e[u],t[u],u);utils$1.isUndefined(h)&&p!==l||(n[u]=h)}),n}const resolveConfig=e=>{const t=mergeConfig$1({},e);let{data:n,withXSRFToken:i,xsrfHeaderName:s,xsrfCookieName:a,headers:o,auth:l}=t;if(t.headers=o=AxiosHeaders$1.from(o),t.url=buildURL(buildFullPath(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),l&&o.set("Authorization","Basic "+btoa((l.username||"")+":"+(l.password?unescape(encodeURIComponent(l.password)):""))),utils$1.isFormData(n)){if(platform.hasStandardBrowserEnv||platform.hasStandardBrowserWebWorkerEnv)o.setContentType(void 0);else if(utils$1.isFunction(n.getHeaders)){const c=n.getHeaders(),d=["content-type","content-length"];Object.entries(c).forEach(([u,p])=>{d.includes(u.toLowerCase())&&o.set(u,p)})}}if(platform.hasStandardBrowserEnv&&(i&&utils$1.isFunction(i)&&(i=i(t)),i||i!==!1&&isURLSameOrigin(t.url))){const c=s&&a&&cookies.read(a);c&&o.set(s,c)}return t},isXHRAdapterSupported=typeof XMLHttpRequest<"u",xhrAdapter=isXHRAdapterSupported&&function(e){return new Promise(function(n,i){const s=resolveConfig(e);let a=s.data;const o=AxiosHeaders$1.from(s.headers).normalize();let{responseType:l,onUploadProgress:c,onDownloadProgress:d}=s,u,p,h,y,f;function m(){y&&y(),f&&f(),s.cancelToken&&s.cancelToken.unsubscribe(u),s.signal&&s.signal.removeEventListener("abort",u)}let C=new XMLHttpRequest;C.open(s.method.toUpperCase(),s.url,!0),C.timeout=s.timeout;function g(){if(!C)return;const v=AxiosHeaders$1.from("getAllResponseHeaders"in C&&C.getAllResponseHeaders()),w={data:!l||l==="text"||l==="json"?C.responseText:C.response,status:C.status,statusText:C.statusText,headers:v,config:e,request:C};settle(function(_){n(_),m()},function(_){i(_),m()},w),C=null}"onloadend"in C?C.onloadend=g:C.onreadystatechange=function(){!C||C.readyState!==4||C.status===0&&!(C.responseURL&&C.responseURL.indexOf("file:")===0)||setTimeout(g)},C.onabort=function(){C&&(i(new AxiosError$1("Request aborted",AxiosError$1.ECONNABORTED,e,C)),C=null)},C.onerror=function(N){const w=N&&N.message?N.message:"Network Error",E=new AxiosError$1(w,AxiosError$1.ERR_NETWORK,e,C);E.event=N||null,i(E),C=null},C.ontimeout=function(){let N=s.timeout?"timeout of "+s.timeout+"ms exceeded":"timeout exceeded";const w=s.transitional||transitionalDefaults;s.timeoutErrorMessage&&(N=s.timeoutErrorMessage),i(new AxiosError$1(N,w.clarifyTimeoutError?AxiosError$1.ETIMEDOUT:AxiosError$1.ECONNABORTED,e,C)),C=null},a===void 0&&o.setContentType(null),"setRequestHeader"in C&&utils$1.forEach(o.toJSON(),function(N,w){C.setRequestHeader(w,N)}),utils$1.isUndefined(s.withCredentials)||(C.withCredentials=!!s.withCredentials),l&&l!=="json"&&(C.responseType=s.responseType),d&&([h,f]=progressEventReducer(d,!0),C.addEventListener("progress",h)),c&&C.upload&&([p,y]=progressEventReducer(c),C.upload.addEventListener("progress",p),C.upload.addEventListener("loadend",y)),(s.cancelToken||s.signal)&&(u=v=>{C&&(i(!v||v.type?new CanceledError$1(null,e,C):v),C.abort(),C=null)},s.cancelToken&&s.cancelToken.subscribe(u),s.signal&&(s.signal.aborted?u():s.signal.addEventListener("abort",u)));const b=parseProtocol(s.url);if(b&&platform.protocols.indexOf(b)===-1){i(new AxiosError$1("Unsupported protocol "+b+":",AxiosError$1.ERR_BAD_REQUEST,e));return}C.send(a||null)})},composeSignals=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let i=new AbortController,s;const a=function(d){if(!s){s=!0,l();const u=d instanceof Error?d:this.reason;i.abort(u instanceof AxiosError$1?u:new CanceledError$1(u instanceof Error?u.message:u))}};let o=t&&setTimeout(()=>{o=null,a(new AxiosError$1(`timeout ${t} of ms exceeded`,AxiosError$1.ETIMEDOUT))},t);const l=()=>{e&&(o&&clearTimeout(o),o=null,e.forEach(d=>{d.unsubscribe?d.unsubscribe(a):d.removeEventListener("abort",a)}),e=null)};e.forEach(d=>d.addEventListener("abort",a));const{signal:c}=i;return c.unsubscribe=()=>utils$1.asap(l),c}},streamChunk=function*(e,t){let n=e.byteLength;if(n<t){yield e;return}let i=0,s;for(;i<n;)s=i+t,yield e.slice(i,s),i=s},readBytes=async function*(e,t){for await(const n of readStream(e))yield*streamChunk(n,t)},readStream=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:n,value:i}=await t.read();if(n)break;yield i}}finally{await t.cancel()}},trackStream=(e,t,n,i)=>{const s=readBytes(e,t);let a=0,o,l=c=>{o||(o=!0,i&&i(c))};return new ReadableStream({async pull(c){try{const{done:d,value:u}=await s.next();if(d){l(),c.close();return}let p=u.byteLength;if(n){let h=a+=p;n(h)}c.enqueue(new Uint8Array(u))}catch(d){throw l(d),d}},cancel(c){return l(c),s.return()}},{highWaterMark:2})},DEFAULT_CHUNK_SIZE=64*1024,{isFunction}=utils$1,globalFetchAPI=(({Request:e,Response:t})=>({Request:e,Response:t}))(utils$1.global),{ReadableStream:ReadableStream$1,TextEncoder:TextEncoder$1}=utils$1.global,test=(e,...t)=>{try{return!!e(...t)}catch{return!1}},factory=e=>{e=utils$1.merge.call({skipUndefined:!0},globalFetchAPI,e);const{fetch:t,Request:n,Response:i}=e,s=t?isFunction(t):typeof fetch=="function",a=isFunction(n),o=isFunction(i);if(!s)return!1;const l=s&&isFunction(ReadableStream$1),c=s&&(typeof TextEncoder$1=="function"?(f=>m=>f.encode(m))(new TextEncoder$1):async f=>new Uint8Array(await new n(f).arrayBuffer())),d=a&&l&&test(()=>{let f=!1;const m=new n(platform.origin,{body:new ReadableStream$1,method:"POST",get duplex(){return f=!0,"half"}}).headers.has("Content-Type");return f&&!m}),u=o&&l&&test(()=>utils$1.isReadableStream(new i("").body)),p={stream:u&&(f=>f.body)};s&&["text","arrayBuffer","blob","formData","stream"].forEach(f=>{!p[f]&&(p[f]=(m,C)=>{let g=m&&m[f];if(g)return g.call(m);throw new AxiosError$1(`Response type '${f}' is not supported`,AxiosError$1.ERR_NOT_SUPPORT,C)})});const h=async f=>{if(f==null)return 0;if(utils$1.isBlob(f))return f.size;if(utils$1.isSpecCompliantForm(f))return(await new n(platform.origin,{method:"POST",body:f}).arrayBuffer()).byteLength;if(utils$1.isArrayBufferView(f)||utils$1.isArrayBuffer(f))return f.byteLength;if(utils$1.isURLSearchParams(f)&&(f=f+""),utils$1.isString(f))return(await c(f)).byteLength},y=async(f,m)=>{const C=utils$1.toFiniteNumber(f.getContentLength());return C??h(m)};return async f=>{let{url:m,method:C,data:g,signal:b,cancelToken:v,timeout:N,onDownloadProgress:w,onUploadProgress:E,responseType:_,headers:k,withCredentials:A="same-origin",fetchOptions:F}=resolveConfig(f),B=t||fetch;_=_?(_+"").toLowerCase():"text";let I=composeSignals([b,v&&v.toAbortSignal()],N),D=null;const L=I&&I.unsubscribe&&(()=>{I.unsubscribe()});let $;try{if(E&&d&&C!=="get"&&C!=="head"&&($=await y(k,g))!==0){let V=new n(m,{method:"POST",body:g,duplex:"half"}),z;if(utils$1.isFormData(g)&&(z=V.headers.get("content-type"))&&k.setContentType(z),V.body){const[G,H]=progressEventDecorator($,progressEventReducer(asyncDecorator(E)));g=trackStream(V.body,DEFAULT_CHUNK_SIZE,G,H)}}utils$1.isString(A)||(A=A?"include":"omit");const P=a&&"credentials"in n.prototype,T={...F,signal:I,method:C.toUpperCase(),headers:k.normalize().toJSON(),body:g,duplex:"half",credentials:P?A:void 0};D=a&&new n(m,T);let x=await(a?B(D,F):B(m,T));const S=u&&(_==="stream"||_==="response");if(u&&(w||S&&L)){const V={};["status","statusText","headers"].forEach(W=>{V[W]=x[W]});const z=utils$1.toFiniteNumber(x.headers.get("content-length")),[G,H]=w&&progressEventDecorator(z,progressEventReducer(asyncDecorator(w),!0))||[];x=new i(trackStream(x.body,DEFAULT_CHUNK_SIZE,G,()=>{H&&H(),L&&L()}),V)}_=_||"text";let M=await p[utils$1.findKey(p,_)||"text"](x,f);return!S&&L&&L(),await new Promise((V,z)=>{settle(V,z,{data:M,headers:AxiosHeaders$1.from(x.headers),status:x.status,statusText:x.statusText,config:f,request:D})})}catch(P){throw L&&L(),P&&P.name==="TypeError"&&/Load failed|fetch/i.test(P.message)?Object.assign(new AxiosError$1("Network Error",AxiosError$1.ERR_NETWORK,f,D),{cause:P.cause||P}):AxiosError$1.from(P,P&&P.code,f,D)}}},seedCache=new Map,getFetch=e=>{let t=e&&e.env||{};const{fetch:n,Request:i,Response:s}=t,a=[i,s,n];let o=a.length,l=o,c,d,u=seedCache;for(;l--;)c=a[l],d=u.get(c),d===void 0&&u.set(c,d=l?new Map:factory(t)),u=d;return d};getFetch();const knownAdapters={http:httpAdapter,xhr:xhrAdapter,fetch:{get:getFetch}};utils$1.forEach(knownAdapters,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const renderReason=e=>`- ${e}`,isResolvedHandle=e=>utils$1.isFunction(e)||e===null||e===!1;function getAdapter$1(e,t){e=utils$1.isArray(e)?e:[e];const{length:n}=e;let i,s;const a={};for(let o=0;o<n;o++){i=e[o];let l;if(s=i,!isResolvedHandle(i)&&(s=knownAdapters[(l=String(i)).toLowerCase()],s===void 0))throw new AxiosError$1(`Unknown adapter '${l}'`);if(s&&(utils$1.isFunction(s)||(s=s.get(t))))break;a[l||"#"+o]=s}if(!s){const o=Object.entries(a).map(([c,d])=>`adapter ${c} `+(d===!1?"is not supported by the environment":"is not available in the build"));let l=n?o.length>1?`since :
|
|
13
|
+
Defaulting to \`null\`.`),null)}function validateMax(e){return isNumber$1(e)&&!Number.isNaN(e)&&e>0?e:(console.error(`Invalid prop \`max\` of value \`${e}\` supplied to \`ProgressRoot\`. Only numbers greater than 0 are valid max values. Defaulting to \`${DEFAULT_MAX}\`.`),DEFAULT_MAX)}var ProgressRoot_vue_vue_type_script_setup_true_lang_default=No.defineComponent({__name:"ProgressRoot",props:{modelValue:{type:[Number,null],required:!1},max:{type:Number,required:!1,default:DEFAULT_MAX},getValueLabel:{type:Function,required:!1,default:(e,t)=>isNumber$1(e)?`${Math.round(e/t*DEFAULT_MAX)}%`:void 0},getValueText:{type:Function,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:["update:modelValue","update:max"],setup(e,{emit:t}){const n=e,i=t;useForwardExpose();const s=useVModel(n,"modelValue",i,{passive:n.modelValue===void 0}),a=useVModel(n,"max",i,{passive:n.max===void 0});No.watch(()=>s.value,async l=>{const c=validateValue(l,n.max);c!==l&&(await No.nextTick(),s.value=c)},{immediate:!0}),No.watch(()=>n.max,l=>{const c=validateMax(n.max);c!==l&&(a.value=c)},{immediate:!0});const o=No.computed(()=>isNullish(s.value)?"indeterminate":s.value===a.value?"complete":"loading");return provideProgressRootContext({modelValue:s,max:a,progressState:o}),(l,c)=>(No.openBlock(),No.createBlock(No.unref(Primitive),{"as-child":l.asChild,as:l.as,"aria-valuemax":No.unref(a),"aria-valuemin":0,"aria-valuenow":isNumber$1(No.unref(s))?No.unref(s):void 0,"aria-valuetext":l.getValueText?.(No.unref(s),No.unref(a)),"aria-label":l.getValueLabel(No.unref(s),No.unref(a)),role:"progressbar","data-state":o.value,"data-value":No.unref(s)??void 0,"data-max":No.unref(a)},{default:No.withCtx(()=>[No.renderSlot(l.$slots,"default",{modelValue:No.unref(s)})]),_:3},8,["as-child","as","aria-valuemax","aria-valuenow","aria-valuetext","aria-label","data-state","data-value","data-max"]))}}),ProgressRoot_default=ProgressRoot_vue_vue_type_script_setup_true_lang_default,ProgressIndicator_vue_vue_type_script_setup_true_lang_default=No.defineComponent({__name:"ProgressIndicator",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){const t=e,n=injectProgressRootContext();return useForwardExpose(),(i,s)=>(No.openBlock(),No.createBlock(No.unref(Primitive),No.mergeProps(t,{"data-state":No.unref(n).progressState.value,"data-value":No.unref(n).modelValue?.value??void 0,"data-max":No.unref(n).max.value}),{default:No.withCtx(()=>[No.renderSlot(i.$slots,"default")]),_:3},16,["data-state","data-value","data-max"]))}}),ProgressIndicator_default=ProgressIndicator_vue_vue_type_script_setup_true_lang_default,BaseSeparator_vue_vue_type_script_setup_true_lang_default=No.defineComponent({__name:"BaseSeparator",props:{orientation:{type:String,required:!1,default:"horizontal"},decorative:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){const t=e,n=["horizontal","vertical"];function i(l){return n.includes(l)}const s=No.computed(()=>i(t.orientation)?t.orientation:"horizontal"),a=No.computed(()=>s.value==="vertical"?t.orientation:void 0),o=No.computed(()=>t.decorative?{role:"none"}:{"aria-orientation":a.value,role:"separator"});return(l,c)=>(No.openBlock(),No.createBlock(No.unref(Primitive),No.mergeProps({as:l.as,"as-child":l.asChild,"data-orientation":s.value},o.value),{default:No.withCtx(()=>[No.renderSlot(l.$slots,"default")]),_:3},16,["as","as-child","data-orientation"]))}}),BaseSeparator_default=BaseSeparator_vue_vue_type_script_setup_true_lang_default,Separator_vue_vue_type_script_setup_true_lang_default=No.defineComponent({__name:"Separator",props:{orientation:{type:String,required:!1,default:"horizontal"},decorative:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){const t=e;return(n,i)=>(No.openBlock(),No.createBlock(BaseSeparator_default,No.normalizeProps(No.guardReactiveProps(t)),{default:No.withCtx(()=>[No.renderSlot(n.$slots,"default")]),_:3},16))}}),Separator_default=Separator_vue_vue_type_script_setup_true_lang_default;const _sfc_main$f=No.defineComponent({__name:"Button",props:{variant:{},size:{},class:{},asChild:{type:Boolean},as:{default:"button"}},setup(e){const t=e;return(n,i)=>(No.openBlock(),No.createBlock(No.unref(Primitive),{"data-slot":"button",as:e.as,"as-child":e.asChild,class:No.normalizeClass(No.unref(cn)(No.unref(buttonVariants)({variant:e.variant,size:e.size}),t.class))},{default:No.withCtx(()=>[No.renderSlot(n.$slots,"default")]),_:3},8,["as","as-child","class"]))}}),buttonVariants=cva("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-white hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2 has-[>svg]:px-3",sm:"h-8 rounded-md gap-1.5 px-3 has-[>svg]:px-2.5",lg:"h-10 rounded-md px-6 has-[>svg]:px-4",icon:"size-9","icon-sm":"size-8","icon-lg":"size-10"}},defaultVariants:{variant:"default",size:"default"}}),_sfc_main$e=No.defineComponent({__name:"Input",props:{defaultValue:{},modelValue:{},class:{}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,s=useVModel$1(n,"modelValue",t,{passive:!0,defaultValue:n.defaultValue});return(a,o)=>No.withDirectives((No.openBlock(),No.createElementBlock("input",{"onUpdate:modelValue":o[0]||(o[0]=l=>No.isRef(s)?s.value=l:null),"data-slot":"input",class:No.normalizeClass(No.unref(cn)("file:text-foreground placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground dark:bg-input/30 border-input h-9 w-full min-w-0 rounded-md border bg-transparent px-3 py-1 text-base shadow-xs transition-[color,box-shadow] outline-none file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm","focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]","aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",n.class))},null,2)),[[No.vModelText,No.unref(s)]])}}),_hoisted_1$4={class:"flex items-center justify-between gap-4 mb-4"},_hoisted_2$4={class:"flex items-center gap-2"},_hoisted_3$4={key:0,class:"relative"},_hoisted_4$4={key:1,class:"flex items-center gap-2"},_hoisted_5$4={key:0,class:"text-sm text-muted-foreground"},_hoisted_6$4={class:"rounded-md border"},_hoisted_7$4=["checked","indeterminate"],_hoisted_8$4={class:"flex items-center gap-1"},_hoisted_9$4={key:0,class:"flex flex-col"},_hoisted_10$4={class:"flex items-center justify-center space-x-2"},_hoisted_11$4=["checked","onChange"],_hoisted_12$4={key:0},_hoisted_13$4={key:1},_hoisted_14$4={class:"flex items-center justify-end space-x-1"},_hoisted_15$3={key:0,class:"mt-4"},_hoisted_16$2={class:"flex items-center justify-between"},_hoisted_17$2={class:"text-sm text-muted-foreground"},_hoisted_18$2={class:"text-sm text-muted-foreground"},_sfc_main$d=No.defineComponent({__name:"NSDataTable",props:{data:{default:()=>[]},columns:{default:()=>[]},actions:{default:()=>[]},loading:{type:Boolean,default:!1},selectable:{type:Boolean,default:!1},searchable:{type:Boolean,default:!1},filterable:{type:Boolean,default:!1},pagination:{type:Boolean,default:!1},currentPage:{default:1},itemsPerPage:{default:10},totalItems:{default:0},showTotal:{type:Boolean,default:!0},emptyMessage:{default:"No data available"},loadingMessage:{default:"Loading..."},maxHeight:{},striped:{type:Boolean,default:!0},hover:{type:Boolean,default:!0},class:{},tableClass:{},headerClass:{},bodyClass:{}},emits:["update:currentPage","update:itemsPerPage","selection-change","row-click","sort-change","filter-change","search"],setup(e,{emit:t}){const n=e,i=t,s=No.ref([]),a=No.ref(""),o=No.ref(""),l=No.ref(null),c=No.ref({}),u=No.computed(()=>{let _=[...n.data||[]];if(a.value&&n.searchable){const k=a.value.toLowerCase();_=_.filter(A=>n.columns.some(F=>{const B=A[F.key];return B&&B.toString().toLowerCase().includes(k)}))}return n.filterable&&Object.entries(c.value).forEach(([k,A])=>{A&&(_=_.filter(F=>{const B=F[k];return B&&B.toString().toLowerCase().includes(A.toString().toLowerCase())}))}),o.value&&l.value&&_.sort((k,A)=>{const F=k[o.value],B=A[o.value];if(F===B)return 0;let I=0;return F<B&&(I=-1),F>B&&(I=1),l.value==="asc"?I:-I}),_}),d=No.computed(()=>{if(!n.pagination)return u.value;const _=(n.currentPage-1)*n.itemsPerPage,k=_+n.itemsPerPage;return u.value.slice(_,k)}),p=_=>{const k=s.value.findIndex(A=>A===_);k>-1?s.value.splice(k,1):s.value.push(_),i("selection-change",s.value)},h=()=>{s.value.length===d.value.length?s.value=[]:s.value=[...d.value],i("selection-change",s.value)},y=_=>{_.sortable&&(o.value===_.key?l.value==="asc"?l.value="desc":(l.value=null,o.value=""):(o.value=_.key,l.value="asc"),i("sort-change",o.value,l.value))},f=(_,k)=>{i("row-click",_,k)},m=_=>{a.value=_,i("search",_)},C=(_,k)=>{c.value[_]=k,i("filter-change",c.value)},g=No.computed(()=>d.value.length>0&&s.value.length===d.value.length),b=No.computed(()=>s.value.length>0&&s.value.length<d.value.length),v=No.computed(()=>cn("w-full space-y-4",n.class)),N=No.computed(()=>cn("w-full",n.tableClass)),w=No.computed(()=>cn("[&_tr]:border-b",n.headerClass)),E=No.computed(()=>{const _="[&_tr:last-child]:border-0",k={"[&_tr]:border-b":n.striped,"[&_tr:nth-child(even)]:bg-muted/50":n.striped,"[&_tr:hover:bg-muted/50]:not(.selected)":n.hover};return cn(_,k,n.bodyClass)});return No.watch(()=>n.currentPage,()=>{s.value=[],i("selection-change",s.value)}),(_,k)=>(No.openBlock(),No.createElementBlock("div",{class:No.normalizeClass(v.value)},[No.createElementVNode("div",_hoisted_1$4,[No.createElementVNode("div",_hoisted_2$4,[e.searchable?(No.openBlock(),No.createElementBlock("div",_hoisted_3$4,[No.createVNode(No.unref(lucideVueNext.Search),{class:"absolute left-3 top-1/2 transform -translate-y-1/2 h-4 w-4 text-muted-foreground"}),No.createVNode(No.unref(_sfc_main$e),{"model-value":a.value,"onUpdate:modelValue":m,placeholder:"Search...",class:"pl-9 w-64"},null,8,["model-value"])])):No.createCommentVNode("",!0),e.filterable?(No.openBlock(),No.createElementBlock("div",_hoisted_4$4,[No.createVNode(No.unref(lucideVueNext.Filter),{class:"h-4 w-4 text-muted-foreground"}),(No.openBlock(!0),No.createElementBlock(No.Fragment,null,No.renderList(e.columns.filter(A=>A.filterable),A=>(No.openBlock(),No.createElementBlock("div",{key:A.key},[No.createVNode(No.unref(_sfc_main$e),{"model-value":c.value[A.key],"onUpdate:modelValue":F=>C(A.key,F),placeholder:`Filter ${A.label}...`,class:"w-32"},null,8,["model-value","onUpdate:modelValue","placeholder"])]))),128))])):No.createCommentVNode("",!0)]),e.showTotal?(No.openBlock(),No.createElementBlock("div",_hoisted_5$4,No.toDisplayString(u.value.length)+" items total ",1)):No.createCommentVNode("",!0)]),No.createElementVNode("div",_hoisted_6$4,[No.createVNode(No.unref(_sfc_main$l),{class:No.normalizeClass(N.value)},{default:No.withCtx(()=>[No.createVNode(No.unref(_sfc_main$g),{class:No.normalizeClass(w.value)},{default:No.withCtx(()=>[No.createVNode(No.unref(_sfc_main$i),null,{default:No.withCtx(()=>[e.selectable?(No.openBlock(),No.createBlock(No.unref(_sfc_main$h),{key:0,class:"w-12"},{default:No.withCtx(()=>[No.createElementVNode("input",{type:"checkbox",checked:g.value,indeterminate:b.value,onChange:h,class:"rounded border-gray-300"},null,40,_hoisted_7$4)]),_:1})):No.createCommentVNode("",!0),(No.openBlock(!0),No.createElementBlock(No.Fragment,null,No.renderList(e.columns,A=>(No.openBlock(),No.createBlock(No.unref(_sfc_main$h),{key:A.key,class:No.normalizeClass(No.unref(cn)("relative",{"text-left":A.align==="left"||!A.align,"text-center":A.align==="center","text-right":A.align==="right","cursor-pointer hover:bg-muted/50":A.sortable})),style:No.normalizeStyle({width:A.width}),onClick:F=>y(A)},{default:No.withCtx(()=>[No.createElementVNode("div",_hoisted_8$4,[No.createTextVNode(No.toDisplayString(A.label)+" ",1),A.sortable?(No.openBlock(),No.createElementBlock("div",_hoisted_9$4,[No.createVNode(No.unref(lucideVueNext.ChevronUp),{class:No.normalizeClass(No.unref(cn)("h-3 w-3",o.value===A.key&&l.value==="asc"?"text-primary":"text-muted-foreground"))},null,8,["class"]),No.createVNode(No.unref(lucideVueNext.ChevronDown),{class:No.normalizeClass(No.unref(cn)("h-3 w-3 -mt-1",o.value===A.key&&l.value==="desc"?"text-primary":"text-muted-foreground"))},null,8,["class"])])):No.createCommentVNode("",!0)])]),_:2},1032,["class","style","onClick"]))),128)),e.actions.length>0?(No.openBlock(),No.createBlock(No.unref(_sfc_main$h),{key:1,class:"w-16"},{default:No.withCtx(()=>[...k[0]||(k[0]=[No.createElementVNode("span",{class:"sr-only"},"Actions",-1)])]),_:1})):No.createCommentVNode("",!0)]),_:1})]),_:1},8,["class"]),No.createVNode(No.unref(_sfc_main$k),{class:No.normalizeClass(E.value)},{default:No.withCtx(()=>[e.loading?(No.openBlock(),No.createBlock(No.unref(_sfc_main$i),{key:0},{default:No.withCtx(()=>[No.createVNode(No.unref(_sfc_main$j),{colspan:e.columns.length+(e.selectable?1:0)+(e.actions.length>0?1:0),class:"text-center py-8"},{default:No.withCtx(()=>[No.createElementVNode("div",_hoisted_10$4,[k[1]||(k[1]=No.createElementVNode("div",{class:"animate-spin rounded-full h-4 w-4 border-b-2 border-primary"},null,-1)),No.createElementVNode("span",null,No.toDisplayString(e.loadingMessage),1)])]),_:1},8,["colspan"])]),_:1})):d.value.length===0?(No.openBlock(),No.createBlock(No.unref(_sfc_main$i),{key:1},{default:No.withCtx(()=>[No.createVNode(No.unref(_sfc_main$j),{colspan:e.columns.length+(e.selectable?1:0)+(e.actions.length>0?1:0),class:"text-center py-8"},{default:No.withCtx(()=>[No.createTextVNode(No.toDisplayString(e.emptyMessage),1)]),_:1},8,["colspan"])]),_:1})):(No.openBlock(!0),No.createElementBlock(No.Fragment,{key:2},No.renderList(d.value,(A,F)=>(No.openBlock(),No.createBlock(No.unref(_sfc_main$i),{key:`row-${F}`,class:No.normalizeClass([{selected:s.value.includes(A)},"cursor-pointer"]),onClick:B=>f(A,F)},{default:No.withCtx(()=>[e.selectable?(No.openBlock(),No.createBlock(No.unref(_sfc_main$j),{key:0,class:"w-12"},{default:No.withCtx(()=>[No.createElementVNode("input",{type:"checkbox",checked:s.value.includes(A),onChange:B=>p(A),class:"rounded border-gray-300"},null,40,_hoisted_11$4)]),_:2},1024)):No.createCommentVNode("",!0),(No.openBlock(!0),No.createElementBlock(No.Fragment,null,No.renderList(e.columns,B=>(No.openBlock(),No.createBlock(No.unref(_sfc_main$j),{key:B.key,class:No.normalizeClass(No.unref(cn)({"text-left":B.align==="left"||!B.align,"text-center":B.align==="center","text-right":B.align==="right"}))},{default:No.withCtx(()=>[No.renderSlot(_.$slots,`cell-${B.key}`,{row:A,value:A[B.key],column:B,index:F},()=>[B.render?(No.openBlock(),No.createElementBlock("span",_hoisted_12$4,No.toDisplayString(B.render(A[B.key],A,F)),1)):(No.openBlock(),No.createElementBlock("span",_hoisted_13$4,No.toDisplayString(A[B.key]),1))])]),_:2},1032,["class"]))),128)),e.actions.length>0?(No.openBlock(),No.createBlock(No.unref(_sfc_main$j),{key:1},{default:No.withCtx(()=>[No.createElementVNode("div",_hoisted_14$4,[(No.openBlock(!0),No.createElementBlock(No.Fragment,null,No.renderList(e.actions,B=>(No.openBlock(),No.createBlock(No.unref(_sfc_main$f),{key:B.key,variant:B.variant||"ghost",size:_.sm,disabled:B.disabled?B.disabled(A):!1,onClick:No.withModifiers(I=>B.onClick(A,F),["stop"])},{default:No.withCtx(()=>[B.icon?(No.openBlock(),No.createBlock(No.resolveDynamicComponent(B.icon),{key:0,class:"h-4 w-4"})):No.createCommentVNode("",!0),No.createTextVNode(" "+No.toDisplayString(B.label),1)]),_:2},1032,["variant","size","disabled","onClick"]))),128))])]),_:2},1024)):No.createCommentVNode("",!0)]),_:2},1032,["class","onClick"]))),128))]),_:3},8,["class"])]),_:3},8,["class"])]),e.pagination?(No.openBlock(),No.createElementBlock("div",_hoisted_15$3,[No.renderSlot(_.$slots,"pagination",{currentPage:e.currentPage,totalItems:u.value.length},()=>[No.createElementVNode("div",_hoisted_16$2,[No.createElementVNode("div",_hoisted_17$2," Showing "+No.toDisplayString((e.currentPage-1)*e.itemsPerPage+1)+" to "+No.toDisplayString(Math.min(e.currentPage*e.itemsPerPage,u.value.length))+" of "+No.toDisplayString(u.value.length)+" items ",1),No.createElementVNode("div",_hoisted_18$2," Page "+No.toDisplayString(e.currentPage)+" of "+No.toDisplayString(Math.ceil(u.value.length/e.itemsPerPage)),1)])])])):No.createCommentVNode("",!0)],2))}}),_sfc_main$c=No.defineComponent({__name:"Separator",props:{orientation:{default:"horizontal"},decorative:{type:Boolean,default:!0},asChild:{type:Boolean},as:{},class:{}},setup(e){const t=e,n=reactiveOmit(t,"class");return(i,s)=>(No.openBlock(),No.createBlock(No.unref(Separator_default),No.mergeProps({"data-slot":"separator"},No.unref(n),{class:No.unref(cn)("bg-border shrink-0 data-[orientation=horizontal]:h-px data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full data-[orientation=vertical]:w-px",t.class)}),null,16,["class"]))}}),_hoisted_1$3={key:0,class:"mb-8"},_hoisted_2$3={class:"relative h-2 w-full overflow-hidden rounded-full bg-secondary"},_hoisted_3$3={class:"mt-2 text-sm text-muted-foreground"},_hoisted_4$3=["onClick"],_hoisted_5$3={key:2},_hoisted_6$3={class:"text-left"},_hoisted_7$3={class:"font-medium text-sm"},_hoisted_8$3={key:0,class:"text-xs text-muted-foreground"},_hoisted_9$3={class:"space-y-6"},_hoisted_10$3={class:"space-y-4"},_hoisted_11$3={class:"text-xl font-semibold"},_hoisted_12$3={key:0,class:"text-muted-foreground"},_hoisted_13$3={class:"text-sm text-muted-foreground"},_hoisted_14$3={class:"flex gap-2"},_hoisted_15$2={class:"flex gap-2"},_sfc_main$b=No.defineComponent({__name:"NSWizard",props:{modelValue:{default:0},steps:{default:()=>[]},vertical:{type:Boolean,default:!1},showStepNumbers:{type:Boolean,default:!0},showStepIcons:{type:Boolean,default:!1},showNavigation:{type:Boolean,default:!0},showProgressBar:{type:Boolean,default:!0},allowSkip:{type:Boolean,default:!1},hidePreviousOnFirst:{type:Boolean,default:!0},hideNextOnLast:{type:Boolean,default:!1},finishButtonText:{default:"Finish"},nextButtonText:{default:"Next"},previousButtonText:{default:"Previous"},skipButtonText:{default:"Skip"},disabled:{type:Boolean,default:!1},class:{},stepClass:{},navigationClass:{},contentClass:{}},emits:["update:modelValue","step-change","finish","skip","validate"],setup(e,{emit:t}){const n=e,i=t,s=No.computed({get:()=>n.modelValue||0,set:k=>{if(k>=0&&k<n.steps.length&&!n.disabled){const A=s.value;n.steps[A]?.onLeave&&n.steps[A].onLeave(),i("update:modelValue",k),i("step-change",k,A),n.steps[k]?.onEnter&&n.steps[k].onEnter()}}}),a=No.computed(()=>n.steps[s.value]||{}),o=No.computed(()=>s.value===0),l=No.computed(()=>s.value===n.steps.length-1),c=No.computed(()=>(s.value+1)/n.steps.length*100),u=No.computed(()=>cn("w-full",n.class)),d=No.computed(()=>cn("flex",n.vertical?"flex-col":"flex-col lg:flex-row gap-8")),p=No.computed(()=>cn("flex",n.vertical?"flex-col space-y-4":"flex-row lg:flex-col lg:space-y-4")),h=No.computed(()=>cn("flex-1 min-w-0",n.contentClass)),y=No.computed(()=>cn("flex justify-between items-center pt-6",n.navigationClass)),f=No.computed(()=>cn("flex items-center gap-3 cursor-pointer transition-colors",n.stepClass,{"opacity-50 cursor-not-allowed":n.disabled})),m=k=>{const A=n.steps[k];return A?k<s.value?"completed":k===s.value?"active":A.disabled?"disabled":"pending":"disabled"},C=k=>{const A=m(k);return cn("flex items-center justify-center rounded-full transition-colors",{completed:"bg-primary text-primary-foreground",active:"bg-primary text-primary-foreground ring-2 ring-ring ring-offset-2",pending:"bg-muted text-muted-foreground border-2 border-border",disabled:"bg-muted text-muted-foreground opacity-50 border-2 border-border"}[A])},g=No.computed(()=>{if(n.disabled||l.value)return!1;const k=n.steps[s.value];return!(k?.disabled||k?.valid===!1)}),b=No.computed(()=>!(n.disabled||o.value)),v=No.computed(()=>!(n.disabled||!n.allowSkip||n.steps[s.value]?.disabled)),N=async k=>{if(!(k<0||k>=n.steps.length||n.steps[k]?.disabled)){if(k>s.value){const F=n.steps[s.value];if(F?.onValidate)try{const B=await F.onValidate();if(i("validate",s.value,B),!B)return}catch{i("validate",s.value,!1);return}}s.value=k}},w=async()=>{if(!g.value)return;const k=n.steps[s.value];if(k?.onValidate)try{const A=await k.onValidate();if(i("validate",s.value,A),!A)return}catch{i("validate",s.value,!1);return}l.value?i("finish",{}):s.value++},E=()=>{b.value&&s.value--},_=()=>{v.value&&(i("skip",s.value),l.value||s.value++)};return No.watch(s,(k,A)=>{if(k!==A){const F=n.steps[k];F?.onValidate&&F.onValidate().then(B=>{i("validate",k,B)})}},{immediate:!0}),(k,A)=>(No.openBlock(),No.createElementBlock("div",{class:No.normalizeClass(u.value)},[e.showProgressBar?(No.openBlock(),No.createElementBlock("div",_hoisted_1$3,[No.createElementVNode("div",_hoisted_2$3,[No.createElementVNode("div",{class:"h-full w-full bg-primary transition-all duration-300 ease-in-out",style:No.normalizeStyle({width:`${c.value}%`})},null,4)]),No.createElementVNode("div",_hoisted_3$3," Step "+No.toDisplayString(s.value+1)+" of "+No.toDisplayString(e.steps.length),1)])):No.createCommentVNode("",!0),No.createElementVNode("div",{class:No.normalizeClass(d.value)},[No.createElementVNode("div",{class:No.normalizeClass(p.value)},[(No.openBlock(!0),No.createElementBlock(No.Fragment,null,No.renderList(e.steps,(F,B)=>(No.openBlock(),No.createElementBlock("div",{key:F.id,class:No.normalizeClass(f.value),onClick:I=>N(B)},[No.createElementVNode("div",{class:No.normalizeClass([C(B),"w-8 h-8 text-sm font-medium"])},[m(B)==="completed"?(No.openBlock(),No.createBlock(No.unref(lucideVueNext.Check),{key:0,class:"h-4 w-4"})):e.showStepIcons&&F.icon?(No.openBlock(),No.createBlock(No.resolveDynamicComponent(F.icon),{key:1,class:"h-4 w-4"})):e.showStepNumbers?(No.openBlock(),No.createElementBlock("span",_hoisted_5$3,No.toDisplayString(B+1),1)):No.createCommentVNode("",!0)],2),No.createElementVNode("div",_hoisted_6$3,[No.createElementVNode("div",_hoisted_7$3,No.toDisplayString(F.title),1),F.description?(No.openBlock(),No.createElementBlock("div",_hoisted_8$3,No.toDisplayString(F.description),1)):No.createCommentVNode("",!0)])],10,_hoisted_4$3))),128))],2),e.vertical?No.createCommentVNode("",!0):(No.openBlock(),No.createBlock(No.unref(_sfc_main$c),{key:0,orientation:"vertical",class:"hidden lg:block"})),No.createElementVNode("div",{class:No.normalizeClass(h.value)},[No.createElementVNode("div",_hoisted_9$3,[No.renderSlot(k.$slots,`step-${a.value.id}`,{step:a.value,index:s.value,isFirst:o.value,isLast:l.value,next:w,previous:E,skip:_,canGoNext:g.value,canGoPrevious:b.value,canSkip:v.value},()=>[No.createElementVNode("div",_hoisted_10$3,[No.createElementVNode("h2",_hoisted_11$3,No.toDisplayString(a.value.title),1),a.value.description?(No.openBlock(),No.createElementBlock("p",_hoisted_12$3,No.toDisplayString(a.value.description),1)):No.createCommentVNode("",!0),No.createElementVNode("div",_hoisted_13$3," Step "+No.toDisplayString(s.value+1)+" of "+No.toDisplayString(e.steps.length),1)])])]),e.showNavigation?(No.openBlock(),No.createElementBlock("div",{key:0,class:No.normalizeClass(y.value)},[No.createElementVNode("div",_hoisted_14$3,[!e.hidePreviousOnFirst||!o.value?(No.openBlock(),No.createBlock(No.unref(_sfc_main$f),{key:0,variant:"outline",disabled:!b.value,onClick:E},{default:No.withCtx(()=>[No.createVNode(No.unref(lucideVueNext.ChevronLeft),{class:"h-4 w-4"}),No.createTextVNode(" "+No.toDisplayString(e.previousButtonText),1)]),_:1},8,["disabled"])):No.createCommentVNode("",!0),e.allowSkip&&!l.value?(No.openBlock(),No.createBlock(No.unref(_sfc_main$f),{key:1,variant:"ghost",disabled:!v.value,onClick:_},{default:No.withCtx(()=>[No.createTextVNode(No.toDisplayString(e.skipButtonText),1)]),_:1},8,["disabled"])):No.createCommentVNode("",!0)]),No.createElementVNode("div",_hoisted_15$2,[No.createVNode(No.unref(_sfc_main$f),{disabled:!g.value,onClick:w},{default:No.withCtx(()=>[No.createTextVNode(No.toDisplayString(l.value?e.finishButtonText:e.nextButtonText)+" ",1),l.value?(No.openBlock(),No.createBlock(No.unref(lucideVueNext.Check),{key:1,class:"h-4 w-4"})):(No.openBlock(),No.createBlock(No.unref(lucideVueNext.ChevronRight),{key:0,class:"h-4 w-4"}))]),_:1},8,["disabled"])])],2)):No.createCommentVNode("",!0)],2)],2)],2))}}),_sfc_main$a=No.defineComponent({__name:"Card",props:{class:{}},setup(e){const t=e;return(n,i)=>(No.openBlock(),No.createElementBlock("div",{"data-slot":"card",class:No.normalizeClass(No.unref(cn)("bg-card text-card-foreground flex flex-col gap-6 rounded-xl border py-6 shadow-sm",t.class))},[No.renderSlot(n.$slots,"default")],2))}}),_sfc_main$9=No.defineComponent({__name:"CardContent",props:{class:{}},setup(e){const t=e;return(n,i)=>(No.openBlock(),No.createElementBlock("div",{"data-slot":"card-content",class:No.normalizeClass(No.unref(cn)("px-6",t.class))},[No.renderSlot(n.$slots,"default")],2))}}),_sfc_main$8=No.defineComponent({__name:"CardDescription",props:{class:{}},setup(e){const t=e;return(n,i)=>(No.openBlock(),No.createElementBlock("p",{"data-slot":"card-description",class:No.normalizeClass(No.unref(cn)("text-muted-foreground text-sm",t.class))},[No.renderSlot(n.$slots,"default")],2))}}),_sfc_main$7=No.defineComponent({__name:"CardHeader",props:{class:{}},setup(e){const t=e;return(n,i)=>(No.openBlock(),No.createElementBlock("div",{"data-slot":"card-header",class:No.normalizeClass(No.unref(cn)("@container/card-header grid auto-rows-min grid-rows-[auto_auto] items-start gap-1.5 px-6 has-data-[slot=card-action]:grid-cols-[1fr_auto] [.border-b]:pb-6",t.class))},[No.renderSlot(n.$slots,"default")],2))}}),_sfc_main$6=No.defineComponent({__name:"CardTitle",props:{class:{}},setup(e){const t=e;return(n,i)=>(No.openBlock(),No.createElementBlock("h3",{"data-slot":"card-title",class:No.normalizeClass(No.unref(cn)("leading-none font-semibold",t.class))},[No.renderSlot(n.$slots,"default")],2))}}),_sfc_main$5=No.defineComponent({__name:"Skeleton",props:{class:{}},setup(e){const t=e;return(n,i)=>(No.openBlock(),No.createElementBlock("div",{"data-slot":"skeleton",class:No.normalizeClass(No.unref(cn)("animate-pulse rounded-md bg-primary/10",t.class))},null,2))}}),_hoisted_1$2={key:0,class:"space-y-2"},_hoisted_2$2={key:1,class:"flex items-center gap-3 text-muted-foreground"},_hoisted_3$2={key:2,class:"space-y-4"},_hoisted_4$2={class:"flex items-center justify-between py-2 border-b"},_hoisted_5$2={class:"text-sm font-medium"},_hoisted_6$2={class:"flex items-center gap-2"},_hoisted_7$2={key:0,class:"text-destructive"},_hoisted_8$2={key:1,class:"text-green-600"},_hoisted_9$2={key:2,class:"text-destructive"},_hoisted_10$2={class:"space-y-2 py-2"},_hoisted_11$2={class:"flex justify-between"},_hoisted_12$2={class:"text-sm font-medium"},_hoisted_13$2={class:"flex justify-between"},_hoisted_14$2={class:"text-sm"},_hoisted_15$1={class:"flex justify-between"},_hoisted_16$1={class:"text-sm"},_hoisted_17$1={class:"flex gap-2 pt-2"},_hoisted_18$1={key:3},_hoisted_19$1={class:"p-2 text-sm"},_hoisted_20$1={class:"p-2 text-sm"},_hoisted_21$1={class:"p-2 text-sm"},_hoisted_22$1={class:"p-2 text-sm"},_hoisted_23={class:"flex items-center gap-2"},_hoisted_24={class:"p-2 text-sm"},_hoisted_25={class:"flex items-center justify-end gap-1"},_sfc_main$4=No.defineComponent({__name:"NSBackupCard",props:{title:{default:"Backup"},loading:{type:Boolean,default:!1},backups:{default:()=>[]},status:{default:()=>({})},noBackupMessage:{default:"No backups available"},statusLabel:{default:"Status"},statusSuccessLabel:{default:"Enabled"},backupDisabledLabel:{default:"Disabled"},light:{type:Boolean,default:!1},maxHeight:{},class:{}},emits:["backup","restore","delete","enable","disable"],setup(e,{emit:t}){const n=e,i=t,s=No.computed(()=>n.backups.length>0),a=No.computed(()=>n.backups.filter(h=>h.enabled)),o=No.computed(()=>a.value.length===1?a.value[0]:null),l=h=>{switch(h.status){case"success":return lucideVueNext.CheckCircle;case"error":return lucideVueNext.AlertCircle;case"running":return lucideVueNext.Loader2;default:return null}},c=h=>{switch(h.status){case"success":return"text-green-600";case"error":return"text-destructive";case"running":return"text-blue-600";default:return"text-muted-foreground"}};No.computed(()=>cn("w-full",n.class));const u=No.computed(()=>cn("transition-all duration-200 hover:shadow-md",n.light?"bg-background/95":"bg-background")),d=No.computed(()=>cn("w-full overflow-auto",{"max-h-64":n.maxHeight})),p=No.computed(()=>"w-full min-w-[300px]");return(h,y)=>(No.openBlock(),No.createBlock(No.unref(_sfc_main$a),{class:No.normalizeClass(u.value)},{default:No.withCtx(()=>[No.createVNode(No.unref(_sfc_main$7),{class:"pb-3"},{default:No.withCtx(()=>[No.createVNode(No.unref(_sfc_main$6),{class:"flex items-center gap-2"},{default:No.withCtx(()=>[No.createVNode(No.unref(lucideVueNext.Save),{class:"h-5 w-5 text-primary"}),No.createTextVNode(" "+No.toDisplayString(e.title),1)]),_:1})]),_:1}),No.createVNode(No.unref(_sfc_main$9),{class:"space-y-4"},{default:No.withCtx(()=>[e.loading?(No.openBlock(),No.createElementBlock("div",_hoisted_1$2,[No.createVNode(No.unref(_sfc_main$5),{class:"h-4 w-3/4"}),No.createVNode(No.unref(_sfc_main$5),{class:"h-4 w-1/2"})])):s.value?o.value?(No.openBlock(),No.createElementBlock("div",_hoisted_3$2,[No.createElementVNode("div",{class:No.normalizeClass(d.value)},[No.createElementVNode("div",{class:No.normalizeClass(p.value)},[No.createElementVNode("div",_hoisted_4$2,[No.createElementVNode("span",_hoisted_5$2,No.toDisplayString(e.statusLabel),1),No.createElementVNode("div",_hoisted_6$2,[o.value.enabled?e.status[o.value.id]?.success?(No.openBlock(),No.createElementBlock("span",_hoisted_8$2,No.toDisplayString(e.statusSuccessLabel),1)):e.status[o.value.id]?.message?(No.openBlock(),No.createElementBlock("span",_hoisted_9$2,No.toDisplayString(e.status[o.value.id].message),1)):No.createCommentVNode("",!0):(No.openBlock(),No.createElementBlock("span",_hoisted_7$2,No.toDisplayString(e.backupDisabledLabel),1))])]),No.createElementVNode("div",_hoisted_10$2,[No.createElementVNode("div",_hoisted_11$2,[y[3]||(y[3]=No.createElementVNode("span",{class:"text-sm text-muted-foreground"},"Name:",-1)),No.createElementVNode("span",_hoisted_12$2,No.toDisplayString(o.value.name),1)]),No.createElementVNode("div",_hoisted_13$2,[y[4]||(y[4]=No.createElementVNode("span",{class:"text-sm text-muted-foreground"},"Date:",-1)),No.createElementVNode("span",_hoisted_14$2,No.toDisplayString(o.value.date),1)]),No.createElementVNode("div",_hoisted_15$1,[y[5]||(y[5]=No.createElementVNode("span",{class:"text-sm text-muted-foreground"},"Size:",-1)),No.createElementVNode("span",_hoisted_16$1,No.toDisplayString(o.value.size),1)])])],2)],2),No.createElementVNode("div",_hoisted_17$1,[o.value.enabled?(No.openBlock(),No.createBlock(No.unref(_sfc_main$f),{key:0,variant:"outline",size:"sm",onClick:y[0]||(y[0]=f=>i("backup",o.value.id))},{default:No.withCtx(()=>[...y[6]||(y[6]=[No.createTextVNode(" Create Backup ",-1)])]),_:1})):No.createCommentVNode("",!0),o.value.enabled?(No.openBlock(),No.createBlock(No.unref(_sfc_main$f),{key:1,variant:"outline",size:"sm",onClick:y[1]||(y[1]=f=>i("restore",o.value.id))},{default:No.withCtx(()=>[...y[7]||(y[7]=[No.createTextVNode(" Restore ",-1)])]),_:1})):No.createCommentVNode("",!0),No.createVNode(No.unref(_sfc_main$f),{variant:"destructive",size:"sm",onClick:y[2]||(y[2]=f=>i("delete",o.value.id))},{default:No.withCtx(()=>[...y[8]||(y[8]=[No.createTextVNode(" Delete ",-1)])]),_:1})])])):(No.openBlock(),No.createElementBlock("div",_hoisted_18$1,[No.createElementVNode("div",{class:No.normalizeClass(d.value)},[No.createElementVNode("table",{class:No.normalizeClass(p.value)},[y[12]||(y[12]=No.createElementVNode("thead",null,[No.createElementVNode("tr",{class:"border-b"},[No.createElementVNode("th",{class:"text-left p-2 text-sm font-medium"},"Name"),No.createElementVNode("th",{class:"text-left p-2 text-sm font-medium"},"Date"),No.createElementVNode("th",{class:"text-left p-2 text-sm font-medium"},"Size"),No.createElementVNode("th",{class:"text-left p-2 text-sm font-medium"},"Status"),No.createElementVNode("th",{class:"text-right p-2 text-sm font-medium"},"Actions")])],-1)),No.createElementVNode("tbody",null,[(No.openBlock(!0),No.createElementBlock(No.Fragment,null,No.renderList(e.backups,f=>(No.openBlock(),No.createElementBlock("tr",{key:f.id,class:"border-b"},[No.createElementVNode("td",_hoisted_19$1,No.toDisplayString(f.name),1),No.createElementVNode("td",_hoisted_20$1,No.toDisplayString(f.date),1),No.createElementVNode("td",_hoisted_21$1,No.toDisplayString(f.size),1),No.createElementVNode("td",_hoisted_22$1,[No.createElementVNode("div",_hoisted_23,[l(f)?(No.openBlock(),No.createBlock(No.resolveDynamicComponent(l(f)),{key:0,class:No.normalizeClass(No.unref(cn)("h-4 w-4",c(f)))},null,8,["class"])):No.createCommentVNode("",!0),No.createElementVNode("span",{class:No.normalizeClass(c(f))},No.toDisplayString(f.status||"Unknown"),3)])]),No.createElementVNode("td",_hoisted_24,[No.createElementVNode("div",_hoisted_25,[No.createVNode(No.unref(_sfc_main$f),{variant:"ghost",size:"sm",onClick:m=>i("enable",f.id),disabled:f.enabled},{default:No.withCtx(()=>[...y[9]||(y[9]=[No.createTextVNode(" Enable ",-1)])]),_:1},8,["onClick","disabled"]),No.createVNode(No.unref(_sfc_main$f),{variant:"ghost",size:"sm",onClick:m=>i("disable",f.id),disabled:!f.enabled},{default:No.withCtx(()=>[...y[10]||(y[10]=[No.createTextVNode(" Disable ",-1)])]),_:1},8,["onClick","disabled"]),No.createVNode(No.unref(_sfc_main$f),{variant:"ghost",size:"sm",onClick:m=>i("restore",f.id)},{default:No.withCtx(()=>[...y[11]||(y[11]=[No.createTextVNode(" Restore ",-1)])]),_:1},8,["onClick"])])])]))),128))])],2)],2)])):(No.openBlock(),No.createElementBlock("div",_hoisted_2$2,[No.createVNode(No.unref(lucideVueNext.AlertCircle),{class:"h-5 w-5"}),No.createElementVNode("span",null,No.toDisplayString(e.noBackupMessage),1)]))]),_:1})]),_:1},8,["class"]))}}),_sfc_main$3=No.defineComponent({__name:"Badge",props:{asChild:{type:Boolean},as:{},variant:{},class:{}},setup(e){const t=e,n=reactiveOmit(t,"class");return(i,s)=>(No.openBlock(),No.createBlock(No.unref(Primitive),No.mergeProps({"data-slot":"badge",class:No.unref(cn)(No.unref(badgeVariants)({variant:e.variant}),t.class)},No.unref(n)),{default:No.withCtx(()=>[No.renderSlot(i.$slots,"default")]),_:3},16,["class"]))}}),badgeVariants=cva("inline-flex items-center justify-center rounded-full border px-2 py-0.5 text-xs font-medium w-fit whitespace-nowrap shrink-0 [&>svg]:size-3 gap-1 [&>svg]:pointer-events-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive transition-[color,box-shadow] overflow-hidden",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground [a&]:hover:bg-primary/90",secondary:"border-transparent bg-secondary text-secondary-foreground [a&]:hover:bg-secondary/90",destructive:"border-transparent bg-destructive text-white [a&]:hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"text-foreground [a&]:hover:bg-accent [a&]:hover:text-accent-foreground"}},defaultVariants:{variant:"default"}}),_hoisted_1$1={class:"flex items-center justify-between"},_hoisted_2$1={class:"text-lg font-semibold"},_hoisted_3$1={key:0,class:"space-y-3"},_hoisted_4$1={key:1,class:"space-y-3"},_hoisted_5$1={key:0,class:"text-sm text-muted-foreground"},_hoisted_6$1={key:1,class:"flex items-center gap-2"},_hoisted_7$1={class:"text-sm"},_hoisted_8$1={key:2,class:"text-sm text-muted-foreground"},_hoisted_9$1={key:3,class:"grid grid-cols-2 gap-3"},_hoisted_10$1={key:0,class:"text-sm"},_hoisted_11$1={key:1,class:"text-sm"},_hoisted_12$1={key:4,class:"text-sm"},_hoisted_13$1={class:"flex items-center justify-between pt-4 border-t"},_hoisted_14$1={class:"flex gap-2"},_sfc_main$2=No.defineComponent({__name:"NSSystemdServiceCard",props:{title:{default:"Service"},description:{default:""},icon:{},loading:{type:Boolean,default:!1},status:{default:()=>({running:!1,enabled:!1})},serviceName:{default:""},light:{type:Boolean,default:!1},showUptime:{type:Boolean,default:!0},showMetrics:{type:Boolean,default:!1},maxHeight:{},class:{}},emits:["start","stop","restart","enable","disable","view"],setup(e,{emit:t}){const n=e,i=t;No.computed(()=>n.loading?lucideVueNext.Clock:n.status.enabled?n.status.running?lucideVueNext.CheckCircle:lucideVueNext.Info:lucideVueNext.AlertCircle);const s=No.computed(()=>n.loading?"text-muted-foreground":n.status.enabled?n.status.running?"text-green-600":"text-orange-600":"text-destructive"),a=No.computed(()=>n.loading?"secondary":n.status.enabled?n.status.running?"default":"secondary":"destructive"),o=No.computed(()=>n.loading?"Loading...":n.status.enabled?n.status.running?n.status.status||"Running":n.status.status||"Stopped":"Disabled");No.computed(()=>cn("w-full",n.class));const l=No.computed(()=>cn("transition-all duration-200 hover:shadow-md",n.light?"bg-background/95":"bg-background")),c=No.computed(()=>cn("h-8 w-8",s.value));return(u,d)=>(No.openBlock(),No.createBlock(No.unref(_sfc_main$a),{class:No.normalizeClass(l.value)},{default:No.withCtx(()=>[No.createVNode(No.unref(_sfc_main$7),{class:"pb-3"},{default:No.withCtx(()=>[No.createElementVNode("div",_hoisted_1$1,[No.createVNode(No.unref(_sfc_main$6),{class:"flex items-center gap-3"},{default:No.withCtx(()=>[e.icon?(No.openBlock(),No.createBlock(No.resolveDynamicComponent(e.icon),{key:0,class:No.normalizeClass(c.value)},null,8,["class"])):No.createCommentVNode("",!0),No.createElementVNode("div",null,[No.createElementVNode("div",_hoisted_2$1,No.toDisplayString(e.title),1),e.description?(No.openBlock(),No.createBlock(No.unref(_sfc_main$8),{key:0},{default:No.withCtx(()=>[No.createTextVNode(No.toDisplayString(e.description),1)]),_:1})):No.createCommentVNode("",!0)])]),_:1}),No.createVNode(No.unref(_sfc_main$3),{variant:a.value},{default:No.withCtx(()=>[No.createTextVNode(No.toDisplayString(o.value),1)]),_:1},8,["variant"])])]),_:1}),No.createVNode(No.unref(_sfc_main$9),{class:"space-y-4"},{default:No.withCtx(()=>[e.loading?(No.openBlock(),No.createElementBlock("div",_hoisted_3$1,[No.createVNode(No.unref(_sfc_main$5),{class:"h-4 w-3/4"}),No.createVNode(No.unref(_sfc_main$5),{class:"h-4 w-1/2"}),No.createVNode(No.unref(_sfc_main$5),{class:"h-4 w-2/3"})])):(No.openBlock(),No.createElementBlock("div",_hoisted_4$1,[e.serviceName?(No.openBlock(),No.createElementBlock("div",_hoisted_5$1,[d[6]||(d[6]=No.createElementVNode("span",{class:"font-medium"},"Service:",-1)),No.createTextVNode(" "+No.toDisplayString(e.serviceName),1)])):No.createCommentVNode("",!0),e.showUptime&&e.status?.uptime?(No.openBlock(),No.createElementBlock("div",_hoisted_6$1,[No.createVNode(No.unref(lucideVueNext.Clock),{class:"h-4 w-4 text-muted-foreground"}),No.createElementVNode("span",_hoisted_7$1,[d[7]||(d[7]=No.createElementVNode("span",{class:"font-medium"},"Uptime:",-1)),No.createTextVNode(" "+No.toDisplayString(e.status.uptime),1)])])):No.createCommentVNode("",!0),e.status?.lastRestart?(No.openBlock(),No.createElementBlock("div",_hoisted_8$1,[d[8]||(d[8]=No.createElementVNode("span",{class:"font-medium"},"Last restart:",-1)),No.createTextVNode(" "+No.toDisplayString(e.status.lastRestart),1)])):No.createCommentVNode("",!0),e.showMetrics?(No.openBlock(),No.createElementBlock("div",_hoisted_9$1,[e.status?.memory?(No.openBlock(),No.createElementBlock("div",_hoisted_10$1,[d[9]||(d[9]=No.createElementVNode("span",{class:"font-medium"},"Memory:",-1)),No.createTextVNode(" "+No.toDisplayString(e.status.memory),1)])):No.createCommentVNode("",!0),e.status?.cpu?(No.openBlock(),No.createElementBlock("div",_hoisted_11$1,[d[10]||(d[10]=No.createElementVNode("span",{class:"font-medium"},"CPU:",-1)),No.createTextVNode(" "+No.toDisplayString(e.status.cpu),1)])):No.createCommentVNode("",!0)])):No.createCommentVNode("",!0),e.status?.status&&e.status?.status!==o.value?(No.openBlock(),No.createElementBlock("div",_hoisted_12$1,No.toDisplayString(e.status.status),1)):No.createCommentVNode("",!0)])),No.createElementVNode("div",_hoisted_13$1,[No.createElementVNode("div",_hoisted_14$1,[e.status?.enabled&&!e.status?.running?(No.openBlock(),No.createBlock(No.unref(_sfc_main$f),{key:0,variant:"default",size:"sm",onClick:d[0]||(d[0]=p=>i("start",e.serviceName))},{default:No.withCtx(()=>[...d[11]||(d[11]=[No.createTextVNode(" Start ",-1)])]),_:1})):No.createCommentVNode("",!0),e.status?.enabled&&e.status?.running?(No.openBlock(),No.createBlock(No.unref(_sfc_main$f),{key:1,variant:"outline",size:"sm",onClick:d[1]||(d[1]=p=>i("stop",e.serviceName))},{default:No.withCtx(()=>[...d[12]||(d[12]=[No.createTextVNode(" Stop ",-1)])]),_:1})):No.createCommentVNode("",!0),e.status?.enabled?(No.openBlock(),No.createBlock(No.unref(_sfc_main$f),{key:2,variant:"outline",size:"sm",onClick:d[2]||(d[2]=p=>i("restart",e.serviceName))},{default:No.withCtx(()=>[...d[13]||(d[13]=[No.createTextVNode(" Restart ",-1)])]),_:1})):No.createCommentVNode("",!0),e.status?.enabled?No.createCommentVNode("",!0):(No.openBlock(),No.createBlock(No.unref(_sfc_main$f),{key:3,variant:"default",size:"sm",onClick:d[3]||(d[3]=p=>i("enable",e.serviceName))},{default:No.withCtx(()=>[...d[14]||(d[14]=[No.createTextVNode(" Enable ",-1)])]),_:1})),e.status?.enabled?(No.openBlock(),No.createBlock(No.unref(_sfc_main$f),{key:4,variant:"destructive",size:"sm",onClick:d[4]||(d[4]=p=>i("disable",e.serviceName))},{default:No.withCtx(()=>[...d[15]||(d[15]=[No.createTextVNode(" Disable ",-1)])]),_:1})):No.createCommentVNode("",!0)]),No.createVNode(No.unref(_sfc_main$f),{variant:"ghost",size:"sm",onClick:d[5]||(d[5]=p=>i("view",e.serviceName))},{default:No.withCtx(()=>[No.createVNode(No.unref(lucideVueNext.MoreHorizontal),{class:"h-4 w-4"})]),_:1})])]),_:1})]),_:1},8,["class"]))}}),_sfc_main$1=No.defineComponent({__name:"Progress",props:{modelValue:{default:0},max:{},getValueLabel:{},getValueText:{},asChild:{type:Boolean},as:{},class:{}},setup(e){const t=e,n=reactiveOmit(t,"class");return(i,s)=>(No.openBlock(),No.createBlock(No.unref(ProgressRoot_default),No.mergeProps({"data-slot":"progress"},No.unref(n),{class:No.unref(cn)("bg-primary/20 relative h-2 w-full overflow-hidden rounded-full",t.class)}),{default:No.withCtx(()=>[No.createVNode(No.unref(ProgressIndicator_default),{"data-slot":"progress-indicator",class:"bg-primary h-full w-full flex-1 transition-all",style:No.normalizeStyle(`transform: translateX(-${100-(t.modelValue??0)}%);`)},null,8,["style"])]),_:1},16,["class"]))}}),_hoisted_1={class:"flex items-center justify-between"},_hoisted_2={key:0,class:"space-y-3"},_hoisted_3={key:0,class:"space-y-2"},_hoisted_4={class:"flex items-center gap-2 text-sm font-medium"},_hoisted_5={class:"text-xs text-muted-foreground space-y-1"},_hoisted_6={key:1,class:"space-y-2"},_hoisted_7={class:"flex items-center gap-2 text-sm font-medium"},_hoisted_8={class:"text-xs text-muted-foreground space-y-1"},_hoisted_9={key:2,class:"space-y-2"},_hoisted_10={class:"flex items-center gap-2 text-sm font-medium"},_hoisted_11={class:"text-xs text-muted-foreground space-y-1"},_hoisted_12={key:0},_hoisted_13={key:2,class:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-3 pt-4 border-t"},_hoisted_14={key:0},_hoisted_15={class:"text-sm font-medium"},_hoisted_16={key:1},_hoisted_17={class:"text-sm font-medium"},_hoisted_18={key:2},_hoisted_19={class:"text-sm font-medium"},_hoisted_20={key:3},_hoisted_21={class:"text-sm font-medium"},_hoisted_22={key:3,class:"flex items-center gap-3 text-muted-foreground"},_sfc_main=No.defineComponent({__name:"NSSystemInfoCard",props:{title:{default:"System Information"},description:{default:"Current system status and metrics"},metrics:{},loading:{type:Boolean,default:!1},refreshInterval:{},showTemperature:{type:Boolean,default:!1},showLoadAverage:{type:Boolean,default:!0},showUptime:{type:Boolean,default:!0},showProcesses:{type:Boolean,default:!0},showMemory:{type:Boolean,default:!0},showCpu:{type:Boolean,default:!0},showStorage:{type:Boolean,default:!0},refreshable:{type:Boolean,default:!0},light:{type:Boolean,default:!1},maxHeight:{},class:{}},emits:["refresh"],setup(e,{emit:t}){const n=e,i=t,s=No.computed(()=>!!n.metrics),a=No.computed(()=>{if(!n.metrics?.usagePercentage)return"default";const d=n.metrics.usagePercentage;return d>=90?"destructive":d>=80?"warning":d>=60?"default":"success"}),o=No.computed(()=>{if(!n.metrics?.memory?.percentage)return"default";const d=n.metrics.memory.percentage;return d>=90?"destructive":d>=80?"warning":d>=60?"default":"success"}),l=No.computed(()=>{if(!n.metrics?.cpu?.usage)return"default";const d=n.metrics.cpu.usage;return d>=90?"destructive":d>=80?"warning":d>=60?"default":"success"});No.computed(()=>cn("w-full",n.class));const c=No.computed(()=>cn("transition-all duration-200 hover:shadow-md",n.light?"bg-background/95":"bg-background")),u=No.computed(()=>cn("grid gap-4",{"grid-cols-1":!n.showMemory&&!n.showCpu&&!n.showStorage,"grid-cols-2":n.showMemory&&!n.showCpu&&!n.showStorage||!n.showMemory&&n.showCpu&&!n.showStorage||!n.showMemory&&!n.showCpu&&n.showStorage,"grid-cols-3":n.showMemory&&n.showCpu&&!n.showStorage||n.showMemory&&!n.showCpu&&n.showStorage||!n.showMemory&&n.showCpu&&n.showStorage,"lg:grid-cols-4":n.showMemory&&n.showCpu&&n.showStorage}));return(d,p)=>(No.openBlock(),No.createBlock(No.unref(_sfc_main$a),{class:No.normalizeClass(c.value)},{default:No.withCtx(()=>[No.createVNode(No.unref(_sfc_main$7),{class:"pb-3"},{default:No.withCtx(()=>[No.createElementVNode("div",_hoisted_1,[No.createElementVNode("div",null,[No.createVNode(No.unref(_sfc_main$6),{class:"flex items-center gap-2"},{default:No.withCtx(()=>[No.createVNode(No.unref(lucideVueNext.Activity),{class:"h-5 w-5 text-primary"}),No.createTextVNode(" "+No.toDisplayString(e.title),1)]),_:1}),No.createVNode(No.unref(_sfc_main$8),null,{default:No.withCtx(()=>[No.createTextVNode(No.toDisplayString(e.description),1)]),_:1})]),e.refreshable&&!e.loading?(No.openBlock(),No.createBlock(No.unref(_sfc_main$f),{key:0,variant:"ghost",size:"sm",onClick:p[0]||(p[0]=h=>i("refresh"))},{default:No.withCtx(()=>[No.createVNode(No.unref(lucideVueNext.Clock),{class:"h-4 w-4"})]),_:1})):No.createCommentVNode("",!0)])]),_:1}),No.createVNode(No.unref(_sfc_main$9),{class:"space-y-4"},{default:No.withCtx(()=>[e.loading?(No.openBlock(),No.createElementBlock("div",_hoisted_2,[...p[1]||(p[1]=[No.createElementVNode("div",{class:"space-y-2"},[No.createElementVNode("div",{class:"h-2 bg-secondary rounded-full"}),No.createElementVNode("div",{class:"h-2 bg-secondary rounded-full"}),No.createElementVNode("div",{class:"h-2 bg-secondary rounded-full"})],-1)])])):s.value?(No.openBlock(),No.createElementBlock("div",{key:1,class:No.normalizeClass(u.value)},[e.showStorage?(No.openBlock(),No.createElementBlock("div",_hoisted_3,[No.createElementVNode("div",_hoisted_4,[No.createVNode(No.unref(lucideVueNext.HardDrive),{class:"h-4 w-4"}),p[2]||(p[2]=No.createTextVNode(" Storage ",-1))]),No.createVNode(No.unref(_sfc_main$1),{value:e.metrics.usagePercentage,variant:a.value,class:"mb-2"},null,8,["value","variant"]),No.createElementVNode("div",_hoisted_5,[No.createElementVNode("div",null,"Used: "+No.toDisplayString(e.metrics.usedSpace)+" / "+No.toDisplayString(e.metrics.totalSpace),1),No.createElementVNode("div",null,"Free: "+No.toDisplayString(e.metrics.freeSpace),1)])])):No.createCommentVNode("",!0),e.showMemory&&e.metrics?.memory?(No.openBlock(),No.createElementBlock("div",_hoisted_6,[No.createElementVNode("div",_hoisted_7,[No.createVNode(No.unref(lucideVueNext.Activity),{class:"h-4 w-4"}),p[3]||(p[3]=No.createTextVNode(" Memory ",-1))]),No.createVNode(No.unref(_sfc_main$1),{value:e.metrics.memory.percentage,variant:o.value,class:"mb-2"},null,8,["value","variant"]),No.createElementVNode("div",_hoisted_8,[No.createElementVNode("div",null,"Used: "+No.toDisplayString(e.metrics.memory.used)+" / "+No.toDisplayString(e.metrics.memory.total),1),No.createElementVNode("div",null,"Free: "+No.toDisplayString(e.metrics.memory.free),1)])])):No.createCommentVNode("",!0),e.showCpu&&e.metrics?.cpu?(No.openBlock(),No.createElementBlock("div",_hoisted_9,[No.createElementVNode("div",_hoisted_10,[No.createVNode(No.unref(lucideVueNext.Activity),{class:"h-4 w-4"}),p[4]||(p[4]=No.createTextVNode(" CPU ",-1))]),No.createVNode(No.unref(_sfc_main$1),{value:e.metrics.cpu.usage,variant:l.value,class:"mb-2"},null,8,["value","variant"]),No.createElementVNode("div",_hoisted_11,[No.createElementVNode("div",null,"Usage: "+No.toDisplayString(e.metrics.cpu.usage)+"%",1),No.createElementVNode("div",null,"Cores: "+No.toDisplayString(e.metrics.cpu.cores),1),e.metrics.cpu.frequency?(No.openBlock(),No.createElementBlock("div",_hoisted_12,"Frequency: "+No.toDisplayString(e.metrics.cpu.frequency),1)):No.createCommentVNode("",!0)])])):No.createCommentVNode("",!0)],2)):No.createCommentVNode("",!0),s.value?(No.openBlock(),No.createElementBlock("div",_hoisted_13,[e.showTemperature&&e.metrics?.temperature?(No.openBlock(),No.createElementBlock("div",_hoisted_14,[p[5]||(p[5]=No.createElementVNode("div",{class:"text-xs text-muted-foreground"},"Temperature",-1)),No.createElementVNode("div",_hoisted_15,No.toDisplayString(e.metrics.temperature),1)])):No.createCommentVNode("",!0),e.showLoadAverage&&e.metrics?.loadAverage?(No.openBlock(),No.createElementBlock("div",_hoisted_16,[p[6]||(p[6]=No.createElementVNode("div",{class:"text-xs text-muted-foreground"},"Load Average",-1)),No.createElementVNode("div",_hoisted_17,No.toDisplayString(e.metrics.loadAverage.join(", ")),1)])):No.createCommentVNode("",!0),e.showUptime&&e.metrics?.uptime?(No.openBlock(),No.createElementBlock("div",_hoisted_18,[p[7]||(p[7]=No.createElementVNode("div",{class:"text-xs text-muted-foreground"},"Uptime",-1)),No.createElementVNode("div",_hoisted_19,No.toDisplayString(e.metrics.uptime),1)])):No.createCommentVNode("",!0),e.showProcesses&&e.metrics?.processes?(No.openBlock(),No.createElementBlock("div",_hoisted_20,[p[8]||(p[8]=No.createElementVNode("div",{class:"text-xs text-muted-foreground"},"Processes",-1)),No.createElementVNode("div",_hoisted_21,No.toDisplayString(e.metrics.processes),1)])):No.createCommentVNode("",!0)])):No.createCommentVNode("",!0),!s.value&&!e.loading?(No.openBlock(),No.createElementBlock("div",_hoisted_22,[No.createVNode(No.unref(lucideVueNext.AlertCircle),{class:"h-5 w-5"}),p[9]||(p[9]=No.createElementVNode("span",null,"No system metrics available",-1))])):No.createCommentVNode("",!0)]),_:1})]),_:1},8,["class"]))}}),byteToHex=[];for(let e=0;e<256;++e)byteToHex.push((e+256).toString(16).slice(1));function unsafeStringify(e,t=0){return(byteToHex[e[t+0]]+byteToHex[e[t+1]]+byteToHex[e[t+2]]+byteToHex[e[t+3]]+"-"+byteToHex[e[t+4]]+byteToHex[e[t+5]]+"-"+byteToHex[e[t+6]]+byteToHex[e[t+7]]+"-"+byteToHex[e[t+8]]+byteToHex[e[t+9]]+"-"+byteToHex[e[t+10]]+byteToHex[e[t+11]]+byteToHex[e[t+12]]+byteToHex[e[t+13]]+byteToHex[e[t+14]]+byteToHex[e[t+15]]).toLowerCase()}let getRandomValues;const rnds8=new Uint8Array(16);function rng(){if(!getRandomValues){if(typeof crypto>"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");getRandomValues=crypto.getRandomValues.bind(crypto)}return getRandomValues(rnds8)}const randomUUID=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),native={randomUUID};function _v4(e,t,n){e=e||{};const i=e.random??e.rng?.()??rng();if(i.length<16)throw new Error("Random bytes length must be >= 16");return i[6]=i[6]&15|64,i[8]=i[8]&63|128,unsafeStringify(i)}function v4(e,t,n){return native.randomUUID&&!e?native.randomUUID():_v4(e)}const useUtilService=()=>{const t=/([01]\d|2[0-3]):?([0-5]\d)/,n="([01]\\d|2[0-3]):?([0-5]\\d)",i="hh:mm";let s="";const a=/^((25[0-5]|(2[0-4]|1\d|[1-9]|)\d)\.?\b){4}$/,o=/^((25[0-5]|(2[0-4]|1\d|[1-9]|)\d)\.?\b){4}\/(\d){1,2}$/,l=(A,F)=>{if(A.message==="Network Error")return F?F("error.network_error"):"Network error";if(/^timeout of .+ exceeded$/.test(A.message))return F?F("error.network_timeout"):"Network timeout";if(A.response)switch(A.response.status){case 401:return F?F("error.401"):"Unauthorized";case 403:return F?F("error.403"):"Forbidden";case 404:return F?F("error.404"):"Not found"}return F?F("error.generic_error"):"Generic error"},c=A=>{u(A)},u=A=>{for(const F of Object.keys(A))typeof A[F]=="string"?A[F]="":typeof A[F]=="boolean"?A[F]=!1:typeof A[F]=="object"?u(A[F]):console.error("unexpected object type:",typeof A[F])};return{DELETE_DELAY:7e3,time24HourPattern:t,time24HourPatternString:n,time24HourPlaceholder:i,highlightAnchor:s,ipAddressPattern:a,cidrPattern:o,getErrorMessage:l,clearErrors:c,clearStrings:u,sortByProperty:A=>function(F,B){return F[A]<B[A]?-1:F[A]>B[A]?1:0},sortModuleInstances:()=>function(A,F){const B=A.id.split(/[0-9]+/)[0],I=parseInt(A.id.substring(B.length)),D=F.id.split(/[0-9]+/)[0],L=parseInt(F.id.substring(D.length));return B<D?-1:B>D?1:I<L?-1:I>L?1:0},isJson:A=>{try{return JSON.parse(A),!0}catch{return!1}},tryParseJson:A=>{try{return JSON.parse(A)}catch{return A}},focusElement:A=>{No.nextTick(()=>{const F=A.value||A;F&&F.focus&&F.focus()})},scrollToElement:A=>{A&&A.scrollIntoView({behavior:"smooth"})},getAppDescription:(A,F,B)=>{let I=A.description[B];return I||(I=A.description.en),I},getAppCategories:(A,F)=>{let B=[];for(const I of A.categories){if(I==="unknown")return"";B.push(F("software_center.app_categories."+I))}return B.join(", ")},getBackupScheduleDescription:(A,F)=>{if(!A)return"-";switch(A.interval){case"hourly":return A.minute==0?F("backup.every_hour"):F("backup.minutes_past_the_hour",{minutes:A.minute});case"daily":return t.test(A.time)?F("backup.every_day_at",{time:A.time}):"-";case"weekly":return t.test(A.time)?F("backup.every_weekday_at_hour",{weekDay:F("calendar."+A.weekDay),time:A.time}):"-";case"monthly":return t.test(A.time)?F("backup.every_month_at_time",{dayNum:A.monthDay,time:A.time}):"-";default:return"-"}},fileToBase64:A=>new Promise((F,B)=>{const I=new FileReader;I.readAsDataURL(A),I.onload=()=>F(I.result),I.onerror=D=>B(D)}),getUuid:()=>v4(),getNodeLabel:(A,F)=>A.ui_name?A.ui_name+" ("+F("common.node")+" "+A.id+")":F("common.node")+" "+A.id,getShortNodeLabel:(A,F)=>A.ui_name?A.ui_name:F("common.node")+" "+A.id,decodeJwtPayload:A=>{const B=A.split(".")[1].replace(/-/g,"+").replace(/_/g,"/"),I=decodeURIComponent(window.atob(B).split("").map(function(D){return"%"+("00"+D.charCodeAt(0).toString(16)).slice(-2)}).join(""));return JSON.parse(I)},getSha256:async A=>{const F=new TextEncoder().encode(A),B=await crypto.subtle.digest("SHA-256",F);return Array.from(new Uint8Array(B)).map(L=>L.toString(16).padStart(2,"0")).join("")}}},millisecondsInWeek=6048e5,millisecondsInDay=864e5,millisecondsInMinute=6e4,millisecondsInHour=36e5,minutesInMonth=43200,minutesInDay=1440,constructFromSymbol=Symbol.for("constructDateFrom");function constructFrom(e,t){return typeof e=="function"?e(t):e&&typeof e=="object"&&constructFromSymbol in e?e[constructFromSymbol](t):e instanceof Date?new e.constructor(t):new Date(t)}function toDate$1(e,t){return constructFrom(t||e,e)}function addDays(e,t,n){const i=toDate$1(e,n?.in);return isNaN(t)?constructFrom(n?.in||e,NaN):(t&&i.setDate(i.getDate()+t),i)}let defaultOptions={};function getDefaultOptions$1(){return defaultOptions}function startOfWeek(e,t){const n=getDefaultOptions$1(),i=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??n.weekStartsOn??n.locale?.options?.weekStartsOn??0,s=toDate$1(e,t?.in),a=s.getDay(),o=(a<i?7:0)+a-i;return s.setDate(s.getDate()-o),s.setHours(0,0,0,0),s}function startOfISOWeek(e,t){return startOfWeek(e,{...t,weekStartsOn:1})}function getISOWeekYear(e,t){const n=toDate$1(e,t?.in),i=n.getFullYear(),s=constructFrom(n,0);s.setFullYear(i+1,0,4),s.setHours(0,0,0,0);const a=startOfISOWeek(s),o=constructFrom(n,0);o.setFullYear(i,0,4),o.setHours(0,0,0,0);const l=startOfISOWeek(o);return n.getTime()>=a.getTime()?i+1:n.getTime()>=l.getTime()?i:i-1}function getTimezoneOffsetInMilliseconds$1(e){const t=toDate$1(e),n=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return n.setUTCFullYear(t.getFullYear()),+e-+n}function normalizeDates(e,...t){const n=constructFrom.bind(null,e||t.find(i=>typeof i=="object"));return t.map(n)}function startOfDay(e,t){const n=toDate$1(e,t?.in);return n.setHours(0,0,0,0),n}function differenceInCalendarDays(e,t,n){const[i,s]=normalizeDates(n?.in,e,t),a=startOfDay(i),o=startOfDay(s),l=+a-getTimezoneOffsetInMilliseconds$1(a),c=+o-getTimezoneOffsetInMilliseconds$1(o);return Math.round((l-c)/millisecondsInDay)}function startOfISOWeekYear(e,t){const n=getISOWeekYear(e,t),i=constructFrom(e,0);return i.setFullYear(n,0,4),i.setHours(0,0,0,0),startOfISOWeek(i)}function compareAsc(e,t){const n=+toDate$1(e)-+toDate$1(t);return n<0?-1:n>0?1:n}function isDate$1(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}function isValid(e){return!(!isDate$1(e)&&typeof e!="number"||isNaN(+toDate$1(e)))}function differenceInCalendarMonths(e,t,n){const[i,s]=normalizeDates(n?.in,e,t),a=i.getFullYear()-s.getFullYear(),o=i.getMonth()-s.getMonth();return a*12+o}function getRoundingMethod(e){return t=>{const i=(e?Math[e]:Math.trunc)(t);return i===0?0:i}}function differenceInMilliseconds(e,t){return+toDate$1(e)-+toDate$1(t)}function endOfDay(e,t){const n=toDate$1(e,t?.in);return n.setHours(23,59,59,999),n}function endOfMonth(e,t){const n=toDate$1(e,t?.in),i=n.getMonth();return n.setFullYear(n.getFullYear(),i+1,0),n.setHours(23,59,59,999),n}function isLastDayOfMonth(e,t){const n=toDate$1(e,t?.in);return+endOfDay(n,t)==+endOfMonth(n,t)}function differenceInMonths(e,t,n){const[i,s,a]=normalizeDates(n?.in,e,e,t),o=compareAsc(s,a),l=Math.abs(differenceInCalendarMonths(s,a));if(l<1)return 0;s.getMonth()===1&&s.getDate()>27&&s.setDate(30),s.setMonth(s.getMonth()-o*l);let c=compareAsc(s,a)===-o;isLastDayOfMonth(i)&&l===1&&compareAsc(i,a)===1&&(c=!1);const u=o*(l-+c);return u===0?0:u}function differenceInSeconds(e,t,n){const i=differenceInMilliseconds(e,t)/1e3;return getRoundingMethod(n?.roundingMethod)(i)}function startOfYear(e,t){const n=toDate$1(e,t?.in);return n.setFullYear(n.getFullYear(),0,1),n.setHours(0,0,0,0),n}const formatDistanceLocale={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},formatDistance$1=(e,t,n)=>{let i;const s=formatDistanceLocale[e];return typeof s=="string"?i=s:t===1?i=s.one:i=s.other.replace("{{count}}",t.toString()),n?.addSuffix?n.comparison&&n.comparison>0?"in "+i:i+" ago":i};function buildFormatLongFn(e){return(t={})=>{const n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}const dateFormats={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},timeFormats={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},dateTimeFormats={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},formatLong={date:buildFormatLongFn({formats:dateFormats,defaultWidth:"full"}),time:buildFormatLongFn({formats:timeFormats,defaultWidth:"full"}),dateTime:buildFormatLongFn({formats:dateTimeFormats,defaultWidth:"full"})},formatRelativeLocale={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},formatRelative=(e,t,n,i)=>formatRelativeLocale[e];function buildLocalizeFn(e){return(t,n)=>{const i=n?.context?String(n.context):"standalone";let s;if(i==="formatting"&&e.formattingValues){const o=e.defaultFormattingWidth||e.defaultWidth,l=n?.width?String(n.width):o;s=e.formattingValues[l]||e.formattingValues[o]}else{const o=e.defaultWidth,l=n?.width?String(n.width):e.defaultWidth;s=e.values[l]||e.values[o]}const a=e.argumentCallback?e.argumentCallback(t):t;return s[a]}}const eraValues={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},quarterValues={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},monthValues={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},dayValues={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},dayPeriodValues={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},formattingDayPeriodValues={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},ordinalNumber=(e,t)=>{const n=Number(e),i=n%100;if(i>20||i<10)switch(i%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},localize={ordinalNumber,era:buildLocalizeFn({values:eraValues,defaultWidth:"wide"}),quarter:buildLocalizeFn({values:quarterValues,defaultWidth:"wide",argumentCallback:e=>e-1}),month:buildLocalizeFn({values:monthValues,defaultWidth:"wide"}),day:buildLocalizeFn({values:dayValues,defaultWidth:"wide"}),dayPeriod:buildLocalizeFn({values:dayPeriodValues,defaultWidth:"wide",formattingValues:formattingDayPeriodValues,defaultFormattingWidth:"wide"})};function buildMatchFn(e){return(t,n={})=>{const i=n.width,s=i&&e.matchPatterns[i]||e.matchPatterns[e.defaultMatchWidth],a=t.match(s);if(!a)return null;const o=a[0],l=i&&e.parsePatterns[i]||e.parsePatterns[e.defaultParseWidth],c=Array.isArray(l)?findIndex(l,p=>p.test(o)):findKey$1(l,p=>p.test(o));let u;u=e.valueCallback?e.valueCallback(c):c,u=n.valueCallback?n.valueCallback(u):u;const d=t.slice(o.length);return{value:u,rest:d}}}function findKey$1(e,t){for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function findIndex(e,t){for(let n=0;n<e.length;n++)if(t(e[n]))return n}function buildMatchPatternFn(e){return(t,n={})=>{const i=t.match(e.matchPattern);if(!i)return null;const s=i[0],a=t.match(e.parsePattern);if(!a)return null;let o=e.valueCallback?e.valueCallback(a[0]):a[0];o=n.valueCallback?n.valueCallback(o):o;const l=t.slice(s.length);return{value:o,rest:l}}}const matchOrdinalNumberPattern=/^(\d+)(th|st|nd|rd)?/i,parseOrdinalNumberPattern=/\d+/i,matchEraPatterns={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},parseEraPatterns={any:[/^b/i,/^(a|c)/i]},matchQuarterPatterns={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},parseQuarterPatterns={any:[/1/i,/2/i,/3/i,/4/i]},matchMonthPatterns={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},parseMonthPatterns={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},matchDayPatterns={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},parseDayPatterns={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},matchDayPeriodPatterns={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},parseDayPeriodPatterns={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},match={ordinalNumber:buildMatchPatternFn({matchPattern:matchOrdinalNumberPattern,parsePattern:parseOrdinalNumberPattern,valueCallback:e=>parseInt(e,10)}),era:buildMatchFn({matchPatterns:matchEraPatterns,defaultMatchWidth:"wide",parsePatterns:parseEraPatterns,defaultParseWidth:"any"}),quarter:buildMatchFn({matchPatterns:matchQuarterPatterns,defaultMatchWidth:"wide",parsePatterns:parseQuarterPatterns,defaultParseWidth:"any",valueCallback:e=>e+1}),month:buildMatchFn({matchPatterns:matchMonthPatterns,defaultMatchWidth:"wide",parsePatterns:parseMonthPatterns,defaultParseWidth:"any"}),day:buildMatchFn({matchPatterns:matchDayPatterns,defaultMatchWidth:"wide",parsePatterns:parseDayPatterns,defaultParseWidth:"any"}),dayPeriod:buildMatchFn({matchPatterns:matchDayPeriodPatterns,defaultMatchWidth:"any",parsePatterns:parseDayPeriodPatterns,defaultParseWidth:"any"})},enUS={code:"en-US",formatDistance:formatDistance$1,formatLong,formatRelative,localize,match,options:{weekStartsOn:0,firstWeekContainsDate:1}};function getDayOfYear(e,t){const n=toDate$1(e,t?.in);return differenceInCalendarDays(n,startOfYear(n))+1}function getISOWeek(e,t){const n=toDate$1(e,t?.in),i=+startOfISOWeek(n)-+startOfISOWeekYear(n);return Math.round(i/millisecondsInWeek)+1}function getWeekYear(e,t){const n=toDate$1(e,t?.in),i=n.getFullYear(),s=getDefaultOptions$1(),a=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??s.firstWeekContainsDate??s.locale?.options?.firstWeekContainsDate??1,o=constructFrom(t?.in||e,0);o.setFullYear(i+1,0,a),o.setHours(0,0,0,0);const l=startOfWeek(o,t),c=constructFrom(t?.in||e,0);c.setFullYear(i,0,a),c.setHours(0,0,0,0);const u=startOfWeek(c,t);return+n>=+l?i+1:+n>=+u?i:i-1}function startOfWeekYear(e,t){const n=getDefaultOptions$1(),i=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??n.firstWeekContainsDate??n.locale?.options?.firstWeekContainsDate??1,s=getWeekYear(e,t),a=constructFrom(t?.in||e,0);return a.setFullYear(s,0,i),a.setHours(0,0,0,0),startOfWeek(a,t)}function getWeek(e,t){const n=toDate$1(e,t?.in),i=+startOfWeek(n,t)-+startOfWeekYear(n,t);return Math.round(i/millisecondsInWeek)+1}function addLeadingZeros$1(e,t){const n=e<0?"-":"",i=Math.abs(e).toString().padStart(t,"0");return n+i}const lightFormatters={y(e,t){const n=e.getFullYear(),i=n>0?n:1-n;return addLeadingZeros$1(t==="yy"?i%100:i,t.length)},M(e,t){const n=e.getMonth();return t==="M"?String(n+1):addLeadingZeros$1(n+1,2)},d(e,t){return addLeadingZeros$1(e.getDate(),t.length)},a(e,t){const n=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];default:return n==="am"?"a.m.":"p.m."}},h(e,t){return addLeadingZeros$1(e.getHours()%12||12,t.length)},H(e,t){return addLeadingZeros$1(e.getHours(),t.length)},m(e,t){return addLeadingZeros$1(e.getMinutes(),t.length)},s(e,t){return addLeadingZeros$1(e.getSeconds(),t.length)},S(e,t){const n=t.length,i=e.getMilliseconds(),s=Math.trunc(i*Math.pow(10,n-3));return addLeadingZeros$1(s,t.length)}},dayPeriodEnum={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},formatters$1={G:function(e,t,n){const i=e.getFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(i,{width:"abbreviated"});case"GGGGG":return n.era(i,{width:"narrow"});default:return n.era(i,{width:"wide"})}},y:function(e,t,n){if(t==="yo"){const i=e.getFullYear(),s=i>0?i:1-i;return n.ordinalNumber(s,{unit:"year"})}return lightFormatters.y(e,t)},Y:function(e,t,n,i){const s=getWeekYear(e,i),a=s>0?s:1-s;if(t==="YY"){const o=a%100;return addLeadingZeros$1(o,2)}return t==="Yo"?n.ordinalNumber(a,{unit:"year"}):addLeadingZeros$1(a,t.length)},R:function(e,t){const n=getISOWeekYear(e);return addLeadingZeros$1(n,t.length)},u:function(e,t){const n=e.getFullYear();return addLeadingZeros$1(n,t.length)},Q:function(e,t,n){const i=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(i);case"QQ":return addLeadingZeros$1(i,2);case"Qo":return n.ordinalNumber(i,{unit:"quarter"});case"QQQ":return n.quarter(i,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(i,{width:"narrow",context:"formatting"});default:return n.quarter(i,{width:"wide",context:"formatting"})}},q:function(e,t,n){const i=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(i);case"qq":return addLeadingZeros$1(i,2);case"qo":return n.ordinalNumber(i,{unit:"quarter"});case"qqq":return n.quarter(i,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(i,{width:"narrow",context:"standalone"});default:return n.quarter(i,{width:"wide",context:"standalone"})}},M:function(e,t,n){const i=e.getMonth();switch(t){case"M":case"MM":return lightFormatters.M(e,t);case"Mo":return n.ordinalNumber(i+1,{unit:"month"});case"MMM":return n.month(i,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(i,{width:"narrow",context:"formatting"});default:return n.month(i,{width:"wide",context:"formatting"})}},L:function(e,t,n){const i=e.getMonth();switch(t){case"L":return String(i+1);case"LL":return addLeadingZeros$1(i+1,2);case"Lo":return n.ordinalNumber(i+1,{unit:"month"});case"LLL":return n.month(i,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(i,{width:"narrow",context:"standalone"});default:return n.month(i,{width:"wide",context:"standalone"})}},w:function(e,t,n,i){const s=getWeek(e,i);return t==="wo"?n.ordinalNumber(s,{unit:"week"}):addLeadingZeros$1(s,t.length)},I:function(e,t,n){const i=getISOWeek(e);return t==="Io"?n.ordinalNumber(i,{unit:"week"}):addLeadingZeros$1(i,t.length)},d:function(e,t,n){return t==="do"?n.ordinalNumber(e.getDate(),{unit:"date"}):lightFormatters.d(e,t)},D:function(e,t,n){const i=getDayOfYear(e);return t==="Do"?n.ordinalNumber(i,{unit:"dayOfYear"}):addLeadingZeros$1(i,t.length)},E:function(e,t,n){const i=e.getDay();switch(t){case"E":case"EE":case"EEE":return n.day(i,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(i,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(i,{width:"short",context:"formatting"});default:return n.day(i,{width:"wide",context:"formatting"})}},e:function(e,t,n,i){const s=e.getDay(),a=(s-i.weekStartsOn+8)%7||7;switch(t){case"e":return String(a);case"ee":return addLeadingZeros$1(a,2);case"eo":return n.ordinalNumber(a,{unit:"day"});case"eee":return n.day(s,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(s,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(s,{width:"short",context:"formatting"});default:return n.day(s,{width:"wide",context:"formatting"})}},c:function(e,t,n,i){const s=e.getDay(),a=(s-i.weekStartsOn+8)%7||7;switch(t){case"c":return String(a);case"cc":return addLeadingZeros$1(a,t.length);case"co":return n.ordinalNumber(a,{unit:"day"});case"ccc":return n.day(s,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(s,{width:"narrow",context:"standalone"});case"cccccc":return n.day(s,{width:"short",context:"standalone"});default:return n.day(s,{width:"wide",context:"standalone"})}},i:function(e,t,n){const i=e.getDay(),s=i===0?7:i;switch(t){case"i":return String(s);case"ii":return addLeadingZeros$1(s,t.length);case"io":return n.ordinalNumber(s,{unit:"day"});case"iii":return n.day(i,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(i,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(i,{width:"short",context:"formatting"});default:return n.day(i,{width:"wide",context:"formatting"})}},a:function(e,t,n){const s=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(s,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(s,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(s,{width:"narrow",context:"formatting"});default:return n.dayPeriod(s,{width:"wide",context:"formatting"})}},b:function(e,t,n){const i=e.getHours();let s;switch(i===12?s=dayPeriodEnum.noon:i===0?s=dayPeriodEnum.midnight:s=i/12>=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(s,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(s,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(s,{width:"narrow",context:"formatting"});default:return n.dayPeriod(s,{width:"wide",context:"formatting"})}},B:function(e,t,n){const i=e.getHours();let s;switch(i>=17?s=dayPeriodEnum.evening:i>=12?s=dayPeriodEnum.afternoon:i>=4?s=dayPeriodEnum.morning:s=dayPeriodEnum.night,t){case"B":case"BB":case"BBB":return n.dayPeriod(s,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(s,{width:"narrow",context:"formatting"});default:return n.dayPeriod(s,{width:"wide",context:"formatting"})}},h:function(e,t,n){if(t==="ho"){let i=e.getHours()%12;return i===0&&(i=12),n.ordinalNumber(i,{unit:"hour"})}return lightFormatters.h(e,t)},H:function(e,t,n){return t==="Ho"?n.ordinalNumber(e.getHours(),{unit:"hour"}):lightFormatters.H(e,t)},K:function(e,t,n){const i=e.getHours()%12;return t==="Ko"?n.ordinalNumber(i,{unit:"hour"}):addLeadingZeros$1(i,t.length)},k:function(e,t,n){let i=e.getHours();return i===0&&(i=24),t==="ko"?n.ordinalNumber(i,{unit:"hour"}):addLeadingZeros$1(i,t.length)},m:function(e,t,n){return t==="mo"?n.ordinalNumber(e.getMinutes(),{unit:"minute"}):lightFormatters.m(e,t)},s:function(e,t,n){return t==="so"?n.ordinalNumber(e.getSeconds(),{unit:"second"}):lightFormatters.s(e,t)},S:function(e,t){return lightFormatters.S(e,t)},X:function(e,t,n){const i=e.getTimezoneOffset();if(i===0)return"Z";switch(t){case"X":return formatTimezoneWithOptionalMinutes$1(i);case"XXXX":case"XX":return formatTimezone$1(i);default:return formatTimezone$1(i,":")}},x:function(e,t,n){const i=e.getTimezoneOffset();switch(t){case"x":return formatTimezoneWithOptionalMinutes$1(i);case"xxxx":case"xx":return formatTimezone$1(i);default:return formatTimezone$1(i,":")}},O:function(e,t,n){const i=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+formatTimezoneShort$1(i,":");default:return"GMT"+formatTimezone$1(i,":")}},z:function(e,t,n){const i=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+formatTimezoneShort$1(i,":");default:return"GMT"+formatTimezone$1(i,":")}},t:function(e,t,n){const i=Math.trunc(+e/1e3);return addLeadingZeros$1(i,t.length)},T:function(e,t,n){return addLeadingZeros$1(+e,t.length)}};function formatTimezoneShort$1(e,t=""){const n=e>0?"-":"+",i=Math.abs(e),s=Math.trunc(i/60),a=i%60;return a===0?n+String(s):n+String(s)+t+addLeadingZeros$1(a,2)}function formatTimezoneWithOptionalMinutes$1(e,t){return e%60===0?(e>0?"-":"+")+addLeadingZeros$1(Math.abs(e)/60,2):formatTimezone$1(e,t)}function formatTimezone$1(e,t=""){const n=e>0?"-":"+",i=Math.abs(e),s=addLeadingZeros$1(Math.trunc(i/60),2),a=addLeadingZeros$1(i%60,2);return n+s+t+a}const dateLongFormatter=(e,t)=>{switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});default:return t.date({width:"full"})}},timeLongFormatter=(e,t)=>{switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});default:return t.time({width:"full"})}},dateTimeLongFormatter=(e,t)=>{const n=e.match(/(P+)(p+)?/)||[],i=n[1],s=n[2];if(!s)return dateLongFormatter(e,t);let a;switch(i){case"P":a=t.dateTime({width:"short"});break;case"PP":a=t.dateTime({width:"medium"});break;case"PPP":a=t.dateTime({width:"long"});break;default:a=t.dateTime({width:"full"});break}return a.replace("{{date}}",dateLongFormatter(i,t)).replace("{{time}}",timeLongFormatter(s,t))},longFormatters={p:timeLongFormatter,P:dateTimeLongFormatter},dayOfYearTokenRE=/^D+$/,weekYearTokenRE=/^Y+$/,throwTokens=["D","DD","YY","YYYY"];function isProtectedDayOfYearToken(e){return dayOfYearTokenRE.test(e)}function isProtectedWeekYearToken(e){return weekYearTokenRE.test(e)}function warnOrThrowProtectedError(e,t,n){const i=message(e,t,n);if(console.warn(i),throwTokens.includes(e))throw new RangeError(i)}function message(e,t,n){const i=e[0]==="Y"?"years":"days of the month";return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${i} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}const formattingTokensRegExp=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,longFormattingTokensRegExp=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,escapedStringRegExp=/^'([^]*?)'?$/,doubleQuoteRegExp=/''/g,unescapedLatinCharacterRegExp=/[a-zA-Z]/;function format$1(e,t,n){const i=getDefaultOptions$1(),s=n?.locale??i.locale??enUS,a=n?.firstWeekContainsDate??n?.locale?.options?.firstWeekContainsDate??i.firstWeekContainsDate??i.locale?.options?.firstWeekContainsDate??1,o=n?.weekStartsOn??n?.locale?.options?.weekStartsOn??i.weekStartsOn??i.locale?.options?.weekStartsOn??0,l=toDate$1(e,n?.in);if(!isValid(l))throw new RangeError("Invalid time value");let c=t.match(longFormattingTokensRegExp).map(d=>{const p=d[0];if(p==="p"||p==="P"){const h=longFormatters[p];return h(d,s.formatLong)}return d}).join("").match(formattingTokensRegExp).map(d=>{if(d==="''")return{isToken:!1,value:"'"};const p=d[0];if(p==="'")return{isToken:!1,value:cleanEscapedString(d)};if(formatters$1[p])return{isToken:!0,value:d};if(p.match(unescapedLatinCharacterRegExp))throw new RangeError("Format string contains an unescaped latin alphabet character `"+p+"`");return{isToken:!1,value:d}});s.localize.preprocessor&&(c=s.localize.preprocessor(l,c));const u={firstWeekContainsDate:a,weekStartsOn:o,locale:s};return c.map(d=>{if(!d.isToken)return d.value;const p=d.value;(!n?.useAdditionalWeekYearTokens&&isProtectedWeekYearToken(p)||!n?.useAdditionalDayOfYearTokens&&isProtectedDayOfYearToken(p))&&warnOrThrowProtectedError(p,t,String(e));const h=formatters$1[p[0]];return h(l,p,s.localize,u)}).join("")}function cleanEscapedString(e){const t=e.match(escapedStringRegExp);return t?t[1].replace(doubleQuoteRegExp,"'"):e}function formatDistance(e,t,n){const i=getDefaultOptions$1(),s=n?.locale??i.locale??enUS,a=2520,o=compareAsc(e,t);if(isNaN(o))throw new RangeError("Invalid time value");const l=Object.assign({},n,{addSuffix:n?.addSuffix,comparison:o}),[c,u]=normalizeDates(n?.in,...o>0?[t,e]:[e,t]),d=differenceInSeconds(u,c),p=(getTimezoneOffsetInMilliseconds$1(u)-getTimezoneOffsetInMilliseconds$1(c))/1e3,h=Math.round((d-p)/60);let y;if(h<2)return n?.includeSeconds?d<5?s.formatDistance("lessThanXSeconds",5,l):d<10?s.formatDistance("lessThanXSeconds",10,l):d<20?s.formatDistance("lessThanXSeconds",20,l):d<40?s.formatDistance("halfAMinute",0,l):d<60?s.formatDistance("lessThanXMinutes",1,l):s.formatDistance("xMinutes",1,l):h===0?s.formatDistance("lessThanXMinutes",1,l):s.formatDistance("xMinutes",h,l);if(h<45)return s.formatDistance("xMinutes",h,l);if(h<90)return s.formatDistance("aboutXHours",1,l);if(h<minutesInDay){const f=Math.round(h/60);return s.formatDistance("aboutXHours",f,l)}else{if(h<a)return s.formatDistance("xDays",1,l);if(h<minutesInMonth){const f=Math.round(h/minutesInDay);return s.formatDistance("xDays",f,l)}else if(h<minutesInMonth*2)return y=Math.round(h/minutesInMonth),s.formatDistance("aboutXMonths",y,l)}if(y=differenceInMonths(u,c),y<12){const f=Math.round(h/minutesInMonth);return s.formatDistance("xMonths",f,l)}else{const f=y%12,m=Math.trunc(y/12);return f<3?s.formatDistance("aboutXYears",m,l):f<9?s.formatDistance("overXYears",m,l):s.formatDistance("almostXYears",m+1,l)}}function getDefaultOptions(){return Object.assign({},getDefaultOptions$1())}function isBefore(e,t){return+toDate$1(e)<+toDate$1(t)}function subDays(e,t,n){return addDays(e,-t,n)}function parseISO(e,t){const n=()=>constructFrom(t?.in,NaN),i=t?.additionalDigits??2,s=splitDateString$1(e);let a;if(s.date){const u=parseYear$1(s.date,i);a=parseDate$1(u.restDateString,u.year)}if(!a||isNaN(+a))return n();const o=+a;let l=0,c;if(s.time&&(l=parseTime$1(s.time),isNaN(l)))return n();if(s.timezone){if(c=parseTimezone(s.timezone),isNaN(c))return n()}else{const u=new Date(o+l),d=toDate$1(0,t?.in);return d.setFullYear(u.getUTCFullYear(),u.getUTCMonth(),u.getUTCDate()),d.setHours(u.getUTCHours(),u.getUTCMinutes(),u.getUTCSeconds(),u.getUTCMilliseconds()),d}return toDate$1(o+l+c,t?.in)}const patterns$2={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},dateRegex=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,timeRegex=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,timezoneRegex=/^([+-])(\d{2})(?::?(\d{2}))?$/;function splitDateString$1(e){const t={},n=e.split(patterns$2.dateTimeDelimiter);let i;if(n.length>2)return t;if(/:/.test(n[0])?i=n[0]:(t.date=n[0],i=n[1],patterns$2.timeZoneDelimiter.test(t.date)&&(t.date=e.split(patterns$2.timeZoneDelimiter)[0],i=e.substr(t.date.length,e.length))),i){const s=patterns$2.timezone.exec(i);s?(t.time=i.replace(s[1],""),t.timezone=s[1]):t.time=i}return t}function parseYear$1(e,t){const n=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+t)+"})|(\\d{2}|[+-]\\d{"+(2+t)+"})$)"),i=e.match(n);if(!i)return{year:NaN,restDateString:""};const s=i[1]?parseInt(i[1]):null,a=i[2]?parseInt(i[2]):null;return{year:a===null?s:a*100,restDateString:e.slice((i[1]||i[2]).length)}}function parseDate$1(e,t){if(t===null)return new Date(NaN);const n=e.match(dateRegex);if(!n)return new Date(NaN);const i=!!n[4],s=parseDateUnit(n[1]),a=parseDateUnit(n[2])-1,o=parseDateUnit(n[3]),l=parseDateUnit(n[4]),c=parseDateUnit(n[5])-1;if(i)return validateWeekDate$1(t,l,c)?dayOfISOWeekYear$1(t,l,c):new Date(NaN);{const u=new Date(0);return!validateDate$1(t,a,o)||!validateDayOfYearDate$1(t,s)?new Date(NaN):(u.setUTCFullYear(t,a,Math.max(s,o)),u)}}function parseDateUnit(e){return e?parseInt(e):1}function parseTime$1(e){const t=e.match(timeRegex);if(!t)return NaN;const n=parseTimeUnit(t[1]),i=parseTimeUnit(t[2]),s=parseTimeUnit(t[3]);return validateTime$1(n,i,s)?n*millisecondsInHour+i*millisecondsInMinute+s*1e3:NaN}function parseTimeUnit(e){return e&&parseFloat(e.replace(",","."))||0}function parseTimezone(e){if(e==="Z")return 0;const t=e.match(timezoneRegex);if(!t)return 0;const n=t[1]==="+"?-1:1,i=parseInt(t[2]),s=t[3]&&parseInt(t[3])||0;return validateTimezone$1(i,s)?n*(i*millisecondsInHour+s*millisecondsInMinute):NaN}function dayOfISOWeekYear$1(e,t,n){const i=new Date(0);i.setUTCFullYear(e,0,4);const s=i.getUTCDay()||7,a=(t-1)*7+n+1-s;return i.setUTCDate(i.getUTCDate()+a),i}const daysInMonths=[31,null,31,30,31,30,31,31,30,31,30,31];function isLeapYearIndex$1(e){return e%400===0||e%4===0&&e%100!==0}function validateDate$1(e,t,n){return t>=0&&t<=11&&n>=1&&n<=(daysInMonths[t]||(isLeapYearIndex$1(e)?29:28))}function validateDayOfYearDate$1(e,t){return t>=1&&t<=(isLeapYearIndex$1(e)?366:365)}function validateWeekDate$1(e,t,n){return t>=1&&t<=53&&n>=0&&n<=6}function validateTime$1(e,t,n){return e===24?t===0&&n===0:n>=0&&n<60&&t>=0&&t<60&&e>=0&&e<25}function validateTimezone$1(e,t){return t>=0&&t<=59}function tzIntlTimeZoneName(e,t,n){const i=getDefaultOptions(),s=getDTF(e,n.timeZone,n.locale??i.locale);return"formatToParts"in s?partsTimeZone(s,t):hackyTimeZone(s,t)}function partsTimeZone(e,t){const n=e.formatToParts(t);for(let i=n.length-1;i>=0;--i)if(n[i].type==="timeZoneName")return n[i].value}function hackyTimeZone(e,t){const n=e.format(t).replace(/\u200E/g,""),i=/ [\w-+ ]+$/.exec(n);return i?i[0].substr(1):""}function getDTF(e,t,n){return new Intl.DateTimeFormat(n?[n.code,"en-US"]:void 0,{timeZone:t,timeZoneName:e})}function tzTokenizeDate(e,t){const n=getDateTimeFormat(t);return"formatToParts"in n?partsOffset(n,e):hackyOffset(n,e)}const typeToPos={year:0,month:1,day:2,hour:3,minute:4,second:5};function partsOffset(e,t){try{const n=e.formatToParts(t),i=[];for(let s=0;s<n.length;s++){const a=typeToPos[n[s].type];a!==void 0&&(i[a]=parseInt(n[s].value,10))}return i}catch(n){if(n instanceof RangeError)return[NaN];throw n}}function hackyOffset(e,t){const n=e.format(t),i=/(\d+)\/(\d+)\/(\d+),? (\d+):(\d+):(\d+)/.exec(n);return[parseInt(i[3],10),parseInt(i[1],10),parseInt(i[2],10),parseInt(i[4],10),parseInt(i[5],10),parseInt(i[6],10)]}const dtfCache={},testDateFormatted=new Intl.DateTimeFormat("en-US",{hourCycle:"h23",timeZone:"America/New_York",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"}).format(new Date("2014-06-25T04:00:00.123Z")),hourCycleSupported=testDateFormatted==="06/25/2014, 00:00:00"||testDateFormatted==="06/25/2014 00:00:00";function getDateTimeFormat(e){return dtfCache[e]||(dtfCache[e]=hourCycleSupported?new Intl.DateTimeFormat("en-US",{hourCycle:"h23",timeZone:e,year:"numeric",month:"numeric",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"}):new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:e,year:"numeric",month:"numeric",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"})),dtfCache[e]}function newDateUTC(e,t,n,i,s,a,o){const l=new Date(0);return l.setUTCFullYear(e,t,n),l.setUTCHours(i,s,a,o),l}const MILLISECONDS_IN_HOUR$1=36e5,MILLISECONDS_IN_MINUTE$2=6e4,patterns$1={timezoneZ:/^(Z)$/,timezoneHH:/^([+-]\d{2})$/,timezoneHHMM:/^([+-])(\d{2}):?(\d{2})$/};function tzParseTimezone(e,t,n){if(!e)return 0;let i=patterns$1.timezoneZ.exec(e);if(i)return 0;let s,a;if(i=patterns$1.timezoneHH.exec(e),i)return s=parseInt(i[1],10),validateTimezone(s)?-(s*MILLISECONDS_IN_HOUR$1):NaN;if(i=patterns$1.timezoneHHMM.exec(e),i){s=parseInt(i[2],10);const o=parseInt(i[3],10);return validateTimezone(s,o)?(a=Math.abs(s)*MILLISECONDS_IN_HOUR$1+o*MILLISECONDS_IN_MINUTE$2,i[1]==="+"?-a:a):NaN}if(isValidTimezoneIANAString(e)){t=new Date(t||Date.now());const o=n?t:toUtcDate(t),l=calcOffset(o,e);return-(n?l:fixOffset(t,l,e))}return NaN}function toUtcDate(e){return newDateUTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds())}function calcOffset(e,t){const n=tzTokenizeDate(e,t),i=newDateUTC(n[0],n[1]-1,n[2],n[3]%24,n[4],n[5],0).getTime();let s=e.getTime();const a=s%1e3;return s-=a>=0?a:1e3+a,i-s}function fixOffset(e,t,n){let s=e.getTime()-t;const a=calcOffset(new Date(s),n);if(t===a)return t;s-=a-t;const o=calcOffset(new Date(s),n);return a===o?a:Math.max(a,o)}function validateTimezone(e,t){return-23<=e&&e<=23&&(t==null||0<=t&&t<=59)}const validIANATimezoneCache={};function isValidTimezoneIANAString(e){if(validIANATimezoneCache[e])return!0;try{return new Intl.DateTimeFormat(void 0,{timeZone:e}),validIANATimezoneCache[e]=!0,!0}catch{return!1}}const MILLISECONDS_IN_MINUTE$1=60*1e3,formatters={X:function(e,t,n){const i=getTimeZoneOffset(n.timeZone,e);if(i===0)return"Z";switch(t){case"X":return formatTimezoneWithOptionalMinutes(i);case"XXXX":case"XX":return formatTimezone(i);default:return formatTimezone(i,":")}},x:function(e,t,n){const i=getTimeZoneOffset(n.timeZone,e);switch(t){case"x":return formatTimezoneWithOptionalMinutes(i);case"xxxx":case"xx":return formatTimezone(i);default:return formatTimezone(i,":")}},O:function(e,t,n){const i=getTimeZoneOffset(n.timeZone,e);switch(t){case"O":case"OO":case"OOO":return"GMT"+formatTimezoneShort(i,":");default:return"GMT"+formatTimezone(i,":")}},z:function(e,t,n){switch(t){case"z":case"zz":case"zzz":return tzIntlTimeZoneName("short",e,n);default:return tzIntlTimeZoneName("long",e,n)}}};function getTimeZoneOffset(e,t){const n=e?tzParseTimezone(e,t,!0)/MILLISECONDS_IN_MINUTE$1:t?.getTimezoneOffset()??0;if(Number.isNaN(n))throw new RangeError("Invalid time zone specified: "+e);return n}function addLeadingZeros(e,t){const n=e<0?"-":"";let i=Math.abs(e).toString();for(;i.length<t;)i="0"+i;return n+i}function formatTimezone(e,t=""){const n=e>0?"-":"+",i=Math.abs(e),s=addLeadingZeros(Math.floor(i/60),2),a=addLeadingZeros(Math.floor(i%60),2);return n+s+t+a}function formatTimezoneWithOptionalMinutes(e,t){return e%60===0?(e>0?"-":"+")+addLeadingZeros(Math.abs(e)/60,2):formatTimezone(e,t)}function formatTimezoneShort(e,t=""){const n=e>0?"-":"+",i=Math.abs(e),s=Math.floor(i/60),a=i%60;return a===0?n+String(s):n+String(s)+t+addLeadingZeros(a,2)}function getTimezoneOffsetInMilliseconds(e){const t=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return t.setUTCFullYear(e.getFullYear()),+e-+t}const tzPattern=/(Z|[+-]\d{2}(?::?\d{2})?| UTC| [a-zA-Z]+\/[a-zA-Z_]+(?:\/[a-zA-Z_]+)?)$/,MILLISECONDS_IN_HOUR=36e5,MILLISECONDS_IN_MINUTE=6e4,DEFAULT_ADDITIONAL_DIGITS=2,patterns={dateTimePattern:/^([0-9W+-]+)(T| )(.*)/,datePattern:/^([0-9W+-]+)(.*)/,YY:/^(\d{2})$/,YYY:[/^([+-]\d{2})$/,/^([+-]\d{3})$/,/^([+-]\d{4})$/],YYYY:/^(\d{4})/,YYYYY:[/^([+-]\d{4})/,/^([+-]\d{5})/,/^([+-]\d{6})/],MM:/^-(\d{2})$/,DDD:/^-?(\d{3})$/,MMDD:/^-?(\d{2})-?(\d{2})$/,Www:/^-?W(\d{2})$/,WwwD:/^-?W(\d{2})-?(\d{1})$/,HH:/^(\d{2}([.,]\d*)?)$/,HHMM:/^(\d{2}):?(\d{2}([.,]\d*)?)$/,HHMMSS:/^(\d{2}):?(\d{2}):?(\d{2}([.,]\d*)?)$/,timeZone:tzPattern};function toDate(e,t={}){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");if(e===null)return new Date(NaN);const n=t.additionalDigits==null?DEFAULT_ADDITIONAL_DIGITS:Number(t.additionalDigits);if(n!==2&&n!==1&&n!==0)throw new RangeError("additionalDigits must be 0, 1 or 2");if(e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]")return new Date(e.getTime());if(typeof e=="number"||Object.prototype.toString.call(e)==="[object Number]")return new Date(e);if(Object.prototype.toString.call(e)!=="[object String]")return new Date(NaN);const i=splitDateString(e),{year:s,restDateString:a}=parseYear(i.date,n),o=parseDate(a,s);if(o===null||isNaN(o.getTime()))return new Date(NaN);if(o){const l=o.getTime();let c=0,u;if(i.time&&(c=parseTime(i.time),c===null||isNaN(c)))return new Date(NaN);if(i.timeZone||t.timeZone){if(u=tzParseTimezone(i.timeZone||t.timeZone,new Date(l+c)),isNaN(u))return new Date(NaN)}else u=getTimezoneOffsetInMilliseconds(new Date(l+c)),u=getTimezoneOffsetInMilliseconds(new Date(l+c+u));return new Date(l+c+u)}else return new Date(NaN)}function splitDateString(e){const t={};let n=patterns.dateTimePattern.exec(e),i;if(n?(t.date=n[1],i=n[3]):(n=patterns.datePattern.exec(e),n?(t.date=n[1],i=n[2]):(t.date=null,i=e)),i){const s=patterns.timeZone.exec(i);s?(t.time=i.replace(s[1],""),t.timeZone=s[1].trim()):t.time=i}return t}function parseYear(e,t){if(e){const n=patterns.YYY[t],i=patterns.YYYYY[t];let s=patterns.YYYY.exec(e)||i.exec(e);if(s){const a=s[1];return{year:parseInt(a,10),restDateString:e.slice(a.length)}}if(s=patterns.YY.exec(e)||n.exec(e),s){const a=s[1];return{year:parseInt(a,10)*100,restDateString:e.slice(a.length)}}}return{year:null}}function parseDate(e,t){if(t===null)return null;let n,i,s;if(!e||!e.length)return n=new Date(0),n.setUTCFullYear(t),n;let a=patterns.MM.exec(e);if(a)return n=new Date(0),i=parseInt(a[1],10)-1,validateDate(t,i)?(n.setUTCFullYear(t,i),n):new Date(NaN);if(a=patterns.DDD.exec(e),a){n=new Date(0);const o=parseInt(a[1],10);return validateDayOfYearDate(t,o)?(n.setUTCFullYear(t,0,o),n):new Date(NaN)}if(a=patterns.MMDD.exec(e),a){n=new Date(0),i=parseInt(a[1],10)-1;const o=parseInt(a[2],10);return validateDate(t,i,o)?(n.setUTCFullYear(t,i,o),n):new Date(NaN)}if(a=patterns.Www.exec(e),a)return s=parseInt(a[1],10)-1,validateWeekDate(s)?dayOfISOWeekYear(t,s):new Date(NaN);if(a=patterns.WwwD.exec(e),a){s=parseInt(a[1],10)-1;const o=parseInt(a[2],10)-1;return validateWeekDate(s,o)?dayOfISOWeekYear(t,s,o):new Date(NaN)}return null}function parseTime(e){let t,n,i=patterns.HH.exec(e);if(i)return t=parseFloat(i[1].replace(",",".")),validateTime(t)?t%24*MILLISECONDS_IN_HOUR:NaN;if(i=patterns.HHMM.exec(e),i)return t=parseInt(i[1],10),n=parseFloat(i[2].replace(",",".")),validateTime(t,n)?t%24*MILLISECONDS_IN_HOUR+n*MILLISECONDS_IN_MINUTE:NaN;if(i=patterns.HHMMSS.exec(e),i){t=parseInt(i[1],10),n=parseInt(i[2],10);const s=parseFloat(i[3].replace(",","."));return validateTime(t,n,s)?t%24*MILLISECONDS_IN_HOUR+n*MILLISECONDS_IN_MINUTE+s*1e3:NaN}return null}function dayOfISOWeekYear(e,t,n){t=t||0,n=n||0;const i=new Date(0);i.setUTCFullYear(e,0,4);const s=i.getUTCDay()||7,a=t*7+n+1-s;return i.setUTCDate(i.getUTCDate()+a),i}const DAYS_IN_MONTH=[31,28,31,30,31,30,31,31,30,31,30,31],DAYS_IN_MONTH_LEAP_YEAR=[31,29,31,30,31,30,31,31,30,31,30,31];function isLeapYearIndex(e){return e%400===0||e%4===0&&e%100!==0}function validateDate(e,t,n){if(t<0||t>11)return!1;if(n!=null){if(n<1)return!1;const i=isLeapYearIndex(e);if(i&&n>DAYS_IN_MONTH_LEAP_YEAR[t]||!i&&n>DAYS_IN_MONTH[t])return!1}return!0}function validateDayOfYearDate(e,t){if(t<1)return!1;const n=isLeapYearIndex(e);return!(n&&t>366||!n&&t>365)}function validateWeekDate(e,t){return!(e<0||e>52||t!=null&&(t<0||t>6))}function validateTime(e,t,n){return!(e<0||e>=25||t!=null&&(t<0||t>=60)||n!=null&&(n<0||n>=60))}const tzFormattingTokensRegExp=/([xXOz]+)|''|'(''|[^'])+('|$)/g;function format(e,t,n={}){t=String(t);const i=t.match(tzFormattingTokensRegExp);if(i){const s=toDate(n.originalDate||e,n);t=i.reduce(function(a,o){if(o[0]==="'")return a;const l=a.indexOf(o),c=a[l-1]==="'",u=a.replace(o,"'"+formatters[o[0]](s,o,n)+"'");return c?u.substring(0,l-1)+u.substring(l+1):u},t)}return format$1(e,t,n)}function toZonedTime(e,t,n){e=toDate(e,n);const i=tzParseTimezone(t,e,!0),s=new Date(e.getTime()-i),a=new Date(0);return a.setFullYear(s.getUTCFullYear(),s.getUTCMonth(),s.getUTCDate()),a.setHours(s.getUTCHours(),s.getUTCMinutes(),s.getUTCSeconds(),s.getUTCMilliseconds()),a}const useDateTimeService=()=>({formatDate:format,formatDateDistance:formatDistance,subDays,parseIsoDate:parseISO,dateIsBefore:isBefore,formatInTimeZone:(o,l,c)=>format(toZonedTime(o,c),l,{timeZone:c})}),useIconService=()=>({Close20:lucideVueNext.X,ArrowRight20:lucideVueNext.ArrowRight,ArrowRight32:lucideVueNext.ArrowRight,Notification20:lucideVueNext.Bell,UserAvatar20:lucideVueNext.User,UserAvatar32:lucideVueNext.User,Search20:lucideVueNext.Search,RowExpand20:lucideVueNext.Expand,RowCollapse20:lucideVueNext.Minimize2,Reset20:lucideVueNext.RotateCcw,Reset32:lucideVueNext.RotateCcw,Download20:lucideVueNext.Download,Launch20:lucideVueNext.ExternalLink,Upgrade20:lucideVueNext.TrendingUp,Upgrade32:lucideVueNext.TrendingUp,Settings16:lucideVueNext.Settings,Settings20:lucideVueNext.Settings,Settings32:lucideVueNext.Settings,ChevronDown20:lucideVueNext.ChevronDown,ChevronUp20:lucideVueNext.ChevronUp,ChevronLeft20:lucideVueNext.ChevronLeft,ChevronRight20:lucideVueNext.ChevronRight,Information16:lucideVueNext.Info,Information20:lucideVueNext.Info,InformationFilled16:lucideVueNext.Info,Application20:lucideVueNext.Package,Application32:lucideVueNext.Package,Add20:lucideVueNext.Plus,Rocket20:lucideVueNext.Rocket,Rocket32:lucideVueNext.Rocket,Chip20:lucideVueNext.Cpu,Chip32:lucideVueNext.Cpu,Save20:lucideVueNext.Save,Save32:lucideVueNext.Save,Copy20:lucideVueNext.Copy,EdgeNode20:lucideVueNext.Server,EdgeNode32:lucideVueNext.Server,Cube32:lucideVueNext.Box,EdgeCluster20:lucideVueNext.Box,EdgeCluster32:lucideVueNext.Box,Connect32:lucideVueNext.Link,Connect20:lucideVueNext.Link,Edit20:lucideVueNext.Edit,Password20:lucideVueNext.Key,Star20:lucideVueNext.Star,Checkmark20:lucideVueNext.Check,ZoomIn20:lucideVueNext.ZoomIn,Events32:lucideVueNext.Calendar,Events20:lucideVueNext.Calendar,Events16:lucideVueNext.Calendar,Link20:lucideVueNext.Link,Link32:lucideVueNext.Link,WarningAlt20:lucideVueNext.AlertTriangle,WarningAlt32:lucideVueNext.AlertTriangle,Tools20:lucideVueNext.Wrench,Tools32:lucideVueNext.Wrench,Network_220:lucideVueNext.Network,Network_232:lucideVueNext.Network,DataBase20:lucideVueNext.Database,DataBase32:lucideVueNext.Database,DataBackup20:lucideVueNext.HardDrive,DataBackup32:lucideVueNext.HardDrive,ArrowDown20:lucideVueNext.ArrowDown,ArrowDown32:lucideVueNext.ArrowDown,Time20:lucideVueNext.Clock,Time32:lucideVueNext.Clock,Hourglass20:lucideVueNext.Hourglass,Hourglass32:lucideVueNext.Hourglass,CheckmarkFilled16:lucideVueNext.CheckCircle,CheckmarkFilled20:lucideVueNext.CheckCircle,CheckmarkFilled32:lucideVueNext.CheckCircle,ErrorFilled16:lucideVueNext.CircleX,ErrorFilled20:lucideVueNext.CircleX,ErrorFilled32:lucideVueNext.CircleX,Warning16:lucideVueNext.AlertTriangle,Warning20:lucideVueNext.AlertTriangle,Warning32:lucideVueNext.AlertTriangle,Power16:lucideVueNext.Power,Power20:lucideVueNext.Power,Power32:lucideVueNext.Power,Document20:lucideVueNext.FileText,Document32:lucideVueNext.FileText,OverflowMenuVertical20:lucideVueNext.MoreVertical,OverflowMenuVertical32:lucideVueNext.MoreVertical,Restart20:lucideVueNext.RotateCw,Restart32:lucideVueNext.RotateCw,TrashCan20:lucideVueNext.Trash2,TrashCan32:lucideVueNext.Trash2,Erase20:lucideVueNext.Eraser,Erase32:lucideVueNext.Eraser,Row20:lucideVueNext.Rows,Column20:lucideVueNext.Columns,Catalog20:lucideVueNext.Library,Catalog32:lucideVueNext.Library,Group20:lucideVueNext.Users,Router32:lucideVueNext.Router,Router20:lucideVueNext.Router,Certificate32:lucideVueNext.ShieldCheck,Certificate20:lucideVueNext.ShieldCheck,BareMetalServer20:lucideVueNext.ServerCog,BareMetalServer32:lucideVueNext.ServerCog,Firewall20:lucideVueNext.Shield,Firewall32:lucideVueNext.Shield,Wikis32:lucideVueNext.BookOpen,Wikis20:lucideVueNext.BookOpen,Wikis16:lucideVueNext.BookOpen,At32:lucideVueNext.AtSign,At20:lucideVueNext.AtSign,User16:lucideVueNext.User,User20:lucideVueNext.User,User32:lucideVueNext.User,Unknown16:lucideVueNext.HelpCircle,Unknown20:lucideVueNext.HelpCircle,Unknown32:lucideVueNext.HelpCircle,Email16:lucideVueNext.Mail,Email20:lucideVueNext.Mail,Email32:lucideVueNext.Mail,Locked16:lucideVueNext.Lock,Locked20:lucideVueNext.Lock,Locked32:lucideVueNext.Lock,Folder16:lucideVueNext.Folder,Folder20:lucideVueNext.Folder,Folder32:lucideVueNext.Folder,Asterisk16:lucideVueNext.Asterisk,Asterisk20:lucideVueNext.Asterisk,Asterisk32:lucideVueNext.Asterisk,Box16:lucideVueNext.Box,Box20:lucideVueNext.Box,Box32:lucideVueNext.Box,UserMilitary32:lucideVueNext.UserCheck,Rule16:lucideVueNext.Ruler,Rule20:lucideVueNext.Ruler,Rule32:lucideVueNext.Ruler,Filter16:lucideVueNext.Filter,Filter20:lucideVueNext.Filter,Filter32:lucideVueNext.Filter,CloseFilled16:lucideVueNext.XCircle,CloseFilled20:lucideVueNext.XCircle,CloseFilled32:lucideVueNext.XCircle,Badge16:lucideVueNext.Award,Badge20:lucideVueNext.Award,Badge32:lucideVueNext.Award,FolderShared16:lucideVueNext.FolderOpen,FolderShared20:lucideVueNext.FolderOpen,FolderShared32:lucideVueNext.FolderOpen,MailAll16:lucideVueNext.Inbox,MailAll20:lucideVueNext.Inbox,MailAll32:lucideVueNext.Inbox,CloudUpload16:lucideVueNext.CloudUpload,CloudUpload20:lucideVueNext.CloudUpload,CloudUpload32:lucideVueNext.CloudUpload}),usePageTitleService=()=>{const e=t=>{if(t){const n=typeof t=="function"?t():t;if(n.includes(".title")){const i=window.parent?.CONFIG?.PRODUCT_NAME||"";document.title=i,window.parent?.document&&(window.parent.document.title=i)}else document.title=n,window.parent?.document&&(window.parent.document.title=n)}};return No.onMounted(()=>{const t=document.querySelector('meta[name="vue-page-title"]');t&&e(t.content)}),{setPageTitle:e}},useQueryParamService=()=>{const e=p=>p==="true"?!0:p==="false"?!1:p,t=(p=window.location.hash)=>{if(!p.includes("?")||p.split("?").length<2)return{};const h=new URLSearchParams(p.split("?").pop()||""),y={};return h.forEach((f,m)=>{m&&(y[m]=f)}),y},n=()=>t(window.location.hash),i=()=>t(window.parent?.location?.hash||""),s=(p,h)=>{p.value&&Object.keys(p.value).forEach(y=>{typeof h[y]<"u"&&(p.value[y]=e(h[y]))})},a=(p,h,y)=>{const f=[];for(const[C,g]of Object.entries(p.value))f.push(`${C}=${encodeURIComponent(String(g))}`);const m=h.path+"?"+f.join("&");h.fullPath!==m&&y.replace(m)},o=(p,h,y)=>{p.value&&Object.keys(p.value).forEach(f=>{No.watch(()=>p.value[f],()=>{a(p,h,y)})})};let l=null;return{getTypedValue:e,getQueryParams:n,getQueryParamsForApp:i,queryParamsToData:s,dataToQueryParams:a,watchQueryData:o,initUrlBindingForApp:(p,h,y)=>{let f=window.parent?.location?.href||"";const m=()=>{const v=i();s(p,v),a(p,{path:"",fullPath:""},{replace:()=>{}})},C=()=>{const v=window.parent?.location?.href||"";if(v!==f){f=v;const w=i().page||"status";y&&y(w),w!==h?window.dispatchEvent(new CustomEvent("changeRoute",{detail:w})):m()}f=window.parent?.location?.href||""};return(i().page||"status")!==h?null:(m(),l=window.setInterval(C,500),l)},cleanupUrlBinding:()=>{l!==null&&(clearInterval(l),l=null)},getPage:()=>n().page||"status"}},useStorageService=()=>({getFromStorage:i=>{try{const s=localStorage.getItem(i);return s?JSON.parse(s):null}catch(s){return console.error(`Error reading from storage for key "${i}":`,s),null}},saveToStorage:(i,s)=>{try{localStorage.setItem(i,JSON.stringify(s))}catch(a){console.error(`Error saving to storage for key "${i}":`,a)}},deleteFromStorage:i=>{try{localStorage.removeItem(i)}catch(s){console.error(`Error deleting from storage for key "${i}":`,s)}}});function bind(e,t){return function(){return e.apply(t,arguments)}}const{toString}=Object.prototype,{getPrototypeOf}=Object,{iterator,toStringTag}=Symbol,kindOf=(e=>t=>{const n=toString.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),kindOfTest=e=>(e=e.toLowerCase(),t=>kindOf(t)===e),typeOfTest=e=>t=>typeof t===e,{isArray}=Array,isUndefined=typeOfTest("undefined");function isBuffer(e){return e!==null&&!isUndefined(e)&&e.constructor!==null&&!isUndefined(e.constructor)&&isFunction$1(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const isArrayBuffer=kindOfTest("ArrayBuffer");function isArrayBufferView(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&isArrayBuffer(e.buffer),t}const isString=typeOfTest("string"),isFunction$1=typeOfTest("function"),isNumber=typeOfTest("number"),isObject=e=>e!==null&&typeof e=="object",isBoolean=e=>e===!0||e===!1,isPlainObject=e=>{if(kindOf(e)!=="object")return!1;const t=getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(toStringTag in e)&&!(iterator in e)},isEmptyObject=e=>{if(!isObject(e)||isBuffer(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},isDate=kindOfTest("Date"),isFile=kindOfTest("File"),isBlob=kindOfTest("Blob"),isFileList=kindOfTest("FileList"),isStream=e=>isObject(e)&&isFunction$1(e.pipe),isFormData=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||isFunction$1(e.append)&&((t=kindOf(e))==="formdata"||t==="object"&&isFunction$1(e.toString)&&e.toString()==="[object FormData]"))},isURLSearchParams=kindOfTest("URLSearchParams"),[isReadableStream,isRequest,isResponse,isHeaders]=["ReadableStream","Request","Response","Headers"].map(kindOfTest),trim=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function forEach(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let i,s;if(typeof e!="object"&&(e=[e]),isArray(e))for(i=0,s=e.length;i<s;i++)t.call(null,e[i],i,e);else{if(isBuffer(e))return;const a=n?Object.getOwnPropertyNames(e):Object.keys(e),o=a.length;let l;for(i=0;i<o;i++)l=a[i],t.call(null,e[l],l,e)}}function findKey(e,t){if(isBuffer(e))return null;t=t.toLowerCase();const n=Object.keys(e);let i=n.length,s;for(;i-- >0;)if(s=n[i],t===s.toLowerCase())return s;return null}const _global=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,isContextDefined=e=>!isUndefined(e)&&e!==_global;function merge(){const{caseless:e,skipUndefined:t}=isContextDefined(this)&&this||{},n={},i=(s,a)=>{const o=e&&findKey(n,a)||a;isPlainObject(n[o])&&isPlainObject(s)?n[o]=merge(n[o],s):isPlainObject(s)?n[o]=merge({},s):isArray(s)?n[o]=s.slice():(!t||!isUndefined(s))&&(n[o]=s)};for(let s=0,a=arguments.length;s<a;s++)arguments[s]&&forEach(arguments[s],i);return n}const extend=(e,t,n,{allOwnKeys:i}={})=>(forEach(t,(s,a)=>{n&&isFunction$1(s)?e[a]=bind(s,n):e[a]=s},{allOwnKeys:i}),e),stripBOM=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),inherits=(e,t,n,i)=>{e.prototype=Object.create(t.prototype,i),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},toFlatObject=(e,t,n,i)=>{let s,a,o;const l={};if(t=t||{},e==null)return t;do{for(s=Object.getOwnPropertyNames(e),a=s.length;a-- >0;)o=s[a],(!i||i(o,e,t))&&!l[o]&&(t[o]=e[o],l[o]=!0);e=n!==!1&&getPrototypeOf(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},endsWith=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const i=e.indexOf(t,n);return i!==-1&&i===n},toArray=e=>{if(!e)return null;if(isArray(e))return e;let t=e.length;if(!isNumber(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},isTypedArray=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&getPrototypeOf(Uint8Array)),forEachEntry=(e,t)=>{const i=(e&&e[iterator]).call(e);let s;for(;(s=i.next())&&!s.done;){const a=s.value;t.call(e,a[0],a[1])}},matchAll=(e,t)=>{let n;const i=[];for(;(n=e.exec(t))!==null;)i.push(n);return i},isHTMLForm=kindOfTest("HTMLFormElement"),toCamelCase=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,i,s){return i.toUpperCase()+s}),hasOwnProperty=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),isRegExp=kindOfTest("RegExp"),reduceDescriptors=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),i={};forEach(n,(s,a)=>{let o;(o=t(s,a,e))!==!1&&(i[a]=o||s)}),Object.defineProperties(e,i)},freezeMethods=e=>{reduceDescriptors(e,(t,n)=>{if(isFunction$1(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const i=e[n];if(isFunction$1(i)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},toObjectSet=(e,t)=>{const n={},i=s=>{s.forEach(a=>{n[a]=!0})};return isArray(e)?i(e):i(String(e).split(t)),n},noop=()=>{},toFiniteNumber=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function isSpecCompliantForm(e){return!!(e&&isFunction$1(e.append)&&e[toStringTag]==="FormData"&&e[iterator])}const toJSONObject=e=>{const t=new Array(10),n=(i,s)=>{if(isObject(i)){if(t.indexOf(i)>=0)return;if(isBuffer(i))return i;if(!("toJSON"in i)){t[s]=i;const a=isArray(i)?[]:{};return forEach(i,(o,l)=>{const c=n(o,s+1);!isUndefined(c)&&(a[l]=c)}),t[s]=void 0,a}}return i};return n(e,0)},isAsyncFn=kindOfTest("AsyncFunction"),isThenable=e=>e&&(isObject(e)||isFunction$1(e))&&isFunction$1(e.then)&&isFunction$1(e.catch),_setImmediate=((e,t)=>e?setImmediate:t?((n,i)=>(_global.addEventListener("message",({source:s,data:a})=>{s===_global&&a===n&&i.length&&i.shift()()},!1),s=>{i.push(s),_global.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",isFunction$1(_global.postMessage)),asap=typeof queueMicrotask<"u"?queueMicrotask.bind(_global):typeof process<"u"&&process.nextTick||_setImmediate,isIterable=e=>e!=null&&isFunction$1(e[iterator]),utils$1={isArray,isArrayBuffer,isBuffer,isFormData,isArrayBufferView,isString,isNumber,isBoolean,isObject,isPlainObject,isEmptyObject,isReadableStream,isRequest,isResponse,isHeaders,isUndefined,isDate,isFile,isBlob,isRegExp,isFunction:isFunction$1,isStream,isURLSearchParams,isTypedArray,isFileList,forEach,merge,extend,trim,stripBOM,inherits,toFlatObject,kindOf,kindOfTest,endsWith,toArray,forEachEntry,matchAll,isHTMLForm,hasOwnProperty,hasOwnProp:hasOwnProperty,reduceDescriptors,freezeMethods,toObjectSet,toCamelCase,noop,toFiniteNumber,findKey,global:_global,isContextDefined,isSpecCompliantForm,toJSONObject,isAsyncFn,isThenable,setImmediate:_setImmediate,asap,isIterable};function AxiosError$1(e,t,n,i,s){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),i&&(this.request=i),s&&(this.response=s,this.status=s.status?s.status:null)}utils$1.inherits(AxiosError$1,Error,{toJSON:function e(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:utils$1.toJSONObject(this.config),code:this.code,status:this.status}}});const prototype$1=AxiosError$1.prototype,descriptors={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{descriptors[e]={value:e}}),Object.defineProperties(AxiosError$1,descriptors),Object.defineProperty(prototype$1,"isAxiosError",{value:!0}),AxiosError$1.from=(e,t,n,i,s,a)=>{const o=Object.create(prototype$1);utils$1.toFlatObject(e,o,function(d){return d!==Error.prototype},u=>u!=="isAxiosError");const l=e&&e.message?e.message:"Error",c=t==null&&e?e.code:t;return AxiosError$1.call(o,l,c,n,i,s),e&&o.cause==null&&Object.defineProperty(o,"cause",{value:e,configurable:!0}),o.name=e&&e.name||"Error",a&&Object.assign(o,a),o};const httpAdapter=null;function isVisitable(e){return utils$1.isPlainObject(e)||utils$1.isArray(e)}function removeBrackets(e){return utils$1.endsWith(e,"[]")?e.slice(0,-2):e}function renderKey(e,t,n){return e?e.concat(t).map(function(s,a){return s=removeBrackets(s),!n&&a?"["+s+"]":s}).join(n?".":""):t}function isFlatArray(e){return utils$1.isArray(e)&&!e.some(isVisitable)}const predicates=utils$1.toFlatObject(utils$1,{},null,function e(t){return/^is[A-Z]/.test(t)});function toFormData$1(e,t,n){if(!utils$1.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=utils$1.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(m,C){return!utils$1.isUndefined(C[m])});const i=n.metaTokens,s=n.visitor||d,a=n.dots,o=n.indexes,c=(n.Blob||typeof Blob<"u"&&Blob)&&utils$1.isSpecCompliantForm(t);if(!utils$1.isFunction(s))throw new TypeError("visitor must be a function");function u(f){if(f===null)return"";if(utils$1.isDate(f))return f.toISOString();if(utils$1.isBoolean(f))return f.toString();if(!c&&utils$1.isBlob(f))throw new AxiosError$1("Blob is not supported. Use a Buffer instead.");return utils$1.isArrayBuffer(f)||utils$1.isTypedArray(f)?c&&typeof Blob=="function"?new Blob([f]):Buffer.from(f):f}function d(f,m,C){let g=f;if(f&&!C&&typeof f=="object"){if(utils$1.endsWith(m,"{}"))m=i?m:m.slice(0,-2),f=JSON.stringify(f);else if(utils$1.isArray(f)&&isFlatArray(f)||(utils$1.isFileList(f)||utils$1.endsWith(m,"[]"))&&(g=utils$1.toArray(f)))return m=removeBrackets(m),g.forEach(function(v,N){!(utils$1.isUndefined(v)||v===null)&&t.append(o===!0?renderKey([m],N,a):o===null?m:m+"[]",u(v))}),!1}return isVisitable(f)?!0:(t.append(renderKey(C,m,a),u(f)),!1)}const p=[],h=Object.assign(predicates,{defaultVisitor:d,convertValue:u,isVisitable});function y(f,m){if(!utils$1.isUndefined(f)){if(p.indexOf(f)!==-1)throw Error("Circular reference detected in "+m.join("."));p.push(f),utils$1.forEach(f,function(g,b){(!(utils$1.isUndefined(g)||g===null)&&s.call(t,g,utils$1.isString(b)?b.trim():b,m,h))===!0&&y(g,m?m.concat(b):[b])}),p.pop()}}if(!utils$1.isObject(e))throw new TypeError("data must be an object");return y(e),t}function encode$1(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(i){return t[i]})}function AxiosURLSearchParams(e,t){this._pairs=[],e&&toFormData$1(e,this,t)}const prototype=AxiosURLSearchParams.prototype;prototype.append=function e(t,n){this._pairs.push([t,n])},prototype.toString=function e(t){const n=t?function(i){return t.call(this,i,encode$1)}:encode$1;return this._pairs.map(function(s){return n(s[0])+"="+n(s[1])},"").join("&")};function encode(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function buildURL(e,t,n){if(!t)return e;const i=n&&n.encode||encode;utils$1.isFunction(n)&&(n={serialize:n});const s=n&&n.serialize;let a;if(s?a=s(t,n):a=utils$1.isURLSearchParams(t)?t.toString():new AxiosURLSearchParams(t,n).toString(i),a){const o=e.indexOf("#");o!==-1&&(e=e.slice(0,o)),e+=(e.indexOf("?")===-1?"?":"&")+a}return e}class InterceptorManager{constructor(){this.handlers=[]}use(t,n,i){return this.handlers.push({fulfilled:t,rejected:n,synchronous:i?i.synchronous:!1,runWhen:i?i.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){utils$1.forEach(this.handlers,function(i){i!==null&&t(i)})}}const transitionalDefaults={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},URLSearchParams$1=typeof URLSearchParams<"u"?URLSearchParams:AxiosURLSearchParams,FormData$1=typeof FormData<"u"?FormData:null,Blob$1=typeof Blob<"u"?Blob:null,platform$1={isBrowser:!0,classes:{URLSearchParams:URLSearchParams$1,FormData:FormData$1,Blob:Blob$1},protocols:["http","https","file","blob","url","data"]},hasBrowserEnv=typeof window<"u"&&typeof document<"u",_navigator=typeof navigator=="object"&&navigator||void 0,hasStandardBrowserEnv=hasBrowserEnv&&(!_navigator||["ReactNative","NativeScript","NS"].indexOf(_navigator.product)<0),hasStandardBrowserWebWorkerEnv=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",origin=hasBrowserEnv&&window.location.href||"http://localhost",utils=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv,hasStandardBrowserEnv,hasStandardBrowserWebWorkerEnv,navigator:_navigator,origin},Symbol.toStringTag,{value:"Module"})),platform={...utils,...platform$1};function toURLEncodedForm(e,t){return toFormData$1(e,new platform.classes.URLSearchParams,{visitor:function(n,i,s,a){return platform.isNode&&utils$1.isBuffer(n)?(this.append(i,n.toString("base64")),!1):a.defaultVisitor.apply(this,arguments)},...t})}function parsePropPath(e){return utils$1.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function arrayToObject(e){const t={},n=Object.keys(e);let i;const s=n.length;let a;for(i=0;i<s;i++)a=n[i],t[a]=e[a];return t}function formDataToJSON(e){function t(n,i,s,a){let o=n[a++];if(o==="__proto__")return!0;const l=Number.isFinite(+o),c=a>=n.length;return o=!o&&utils$1.isArray(s)?s.length:o,c?(utils$1.hasOwnProp(s,o)?s[o]=[s[o],i]:s[o]=i,!l):((!s[o]||!utils$1.isObject(s[o]))&&(s[o]=[]),t(n,i,s[o],a)&&utils$1.isArray(s[o])&&(s[o]=arrayToObject(s[o])),!l)}if(utils$1.isFormData(e)&&utils$1.isFunction(e.entries)){const n={};return utils$1.forEachEntry(e,(i,s)=>{t(parsePropPath(i),s,n,0)}),n}return null}function stringifySafely(e,t,n){if(utils$1.isString(e))try{return(t||JSON.parse)(e),utils$1.trim(e)}catch(i){if(i.name!=="SyntaxError")throw i}return(n||JSON.stringify)(e)}const defaults={transitional:transitionalDefaults,adapter:["xhr","http","fetch"],transformRequest:[function e(t,n){const i=n.getContentType()||"",s=i.indexOf("application/json")>-1,a=utils$1.isObject(t);if(a&&utils$1.isHTMLForm(t)&&(t=new FormData(t)),utils$1.isFormData(t))return s?JSON.stringify(formDataToJSON(t)):t;if(utils$1.isArrayBuffer(t)||utils$1.isBuffer(t)||utils$1.isStream(t)||utils$1.isFile(t)||utils$1.isBlob(t)||utils$1.isReadableStream(t))return t;if(utils$1.isArrayBufferView(t))return t.buffer;if(utils$1.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let l;if(a){if(i.indexOf("application/x-www-form-urlencoded")>-1)return toURLEncodedForm(t,this.formSerializer).toString();if((l=utils$1.isFileList(t))||i.indexOf("multipart/form-data")>-1){const c=this.env&&this.env.FormData;return toFormData$1(l?{"files[]":t}:t,c&&new c,this.formSerializer)}}return a||s?(n.setContentType("application/json",!1),stringifySafely(t)):t}],transformResponse:[function e(t){const n=this.transitional||defaults.transitional,i=n&&n.forcedJSONParsing,s=this.responseType==="json";if(utils$1.isResponse(t)||utils$1.isReadableStream(t))return t;if(t&&utils$1.isString(t)&&(i&&!this.responseType||s)){const o=!(n&&n.silentJSONParsing)&&s;try{return JSON.parse(t,this.parseReviver)}catch(l){if(o)throw l.name==="SyntaxError"?AxiosError$1.from(l,AxiosError$1.ERR_BAD_RESPONSE,this,null,this.response):l}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:platform.classes.FormData,Blob:platform.classes.Blob},validateStatus:function e(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};utils$1.forEach(["delete","get","head","post","put","patch"],e=>{defaults.headers[e]={}});const ignoreDuplicateOf=utils$1.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),parseHeaders=e=>{const t={};let n,i,s;return e&&e.split(`
|
|
14
|
+
`).forEach(function(o){s=o.indexOf(":"),n=o.substring(0,s).trim().toLowerCase(),i=o.substring(s+1).trim(),!(!n||t[n]&&ignoreDuplicateOf[n])&&(n==="set-cookie"?t[n]?t[n].push(i):t[n]=[i]:t[n]=t[n]?t[n]+", "+i:i)}),t},$internals=Symbol("internals");function normalizeHeader(e){return e&&String(e).trim().toLowerCase()}function normalizeValue(e){return e===!1||e==null?e:utils$1.isArray(e)?e.map(normalizeValue):String(e)}function parseTokens(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let i;for(;i=n.exec(e);)t[i[1]]=i[2];return t}const isValidHeaderName=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function matchHeaderValue(e,t,n,i,s){if(utils$1.isFunction(i))return i.call(this,t,n);if(s&&(t=n),!!utils$1.isString(t)){if(utils$1.isString(i))return t.indexOf(i)!==-1;if(utils$1.isRegExp(i))return i.test(t)}}function formatHeader(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,i)=>n.toUpperCase()+i)}function buildAccessors(e,t){const n=utils$1.toCamelCase(" "+t);["get","set","has"].forEach(i=>{Object.defineProperty(e,i+n,{value:function(s,a,o){return this[i].call(this,t,s,a,o)},configurable:!0})})}let AxiosHeaders$1=class{constructor(t){t&&this.set(t)}set(t,n,i){const s=this;function a(l,c,u){const d=normalizeHeader(c);if(!d)throw new Error("header name must be a non-empty string");const p=utils$1.findKey(s,d);(!p||s[p]===void 0||u===!0||u===void 0&&s[p]!==!1)&&(s[p||c]=normalizeValue(l))}const o=(l,c)=>utils$1.forEach(l,(u,d)=>a(u,d,c));if(utils$1.isPlainObject(t)||t instanceof this.constructor)o(t,n);else if(utils$1.isString(t)&&(t=t.trim())&&!isValidHeaderName(t))o(parseHeaders(t),n);else if(utils$1.isObject(t)&&utils$1.isIterable(t)){let l={},c,u;for(const d of t){if(!utils$1.isArray(d))throw TypeError("Object iterator must return a key-value pair");l[u=d[0]]=(c=l[u])?utils$1.isArray(c)?[...c,d[1]]:[c,d[1]]:d[1]}o(l,n)}else t!=null&&a(n,t,i);return this}get(t,n){if(t=normalizeHeader(t),t){const i=utils$1.findKey(this,t);if(i){const s=this[i];if(!n)return s;if(n===!0)return parseTokens(s);if(utils$1.isFunction(n))return n.call(this,s,i);if(utils$1.isRegExp(n))return n.exec(s);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=normalizeHeader(t),t){const i=utils$1.findKey(this,t);return!!(i&&this[i]!==void 0&&(!n||matchHeaderValue(this,this[i],i,n)))}return!1}delete(t,n){const i=this;let s=!1;function a(o){if(o=normalizeHeader(o),o){const l=utils$1.findKey(i,o);l&&(!n||matchHeaderValue(i,i[l],l,n))&&(delete i[l],s=!0)}}return utils$1.isArray(t)?t.forEach(a):a(t),s}clear(t){const n=Object.keys(this);let i=n.length,s=!1;for(;i--;){const a=n[i];(!t||matchHeaderValue(this,this[a],a,t,!0))&&(delete this[a],s=!0)}return s}normalize(t){const n=this,i={};return utils$1.forEach(this,(s,a)=>{const o=utils$1.findKey(i,a);if(o){n[o]=normalizeValue(s),delete n[a];return}const l=t?formatHeader(a):String(a).trim();l!==a&&delete n[a],n[l]=normalizeValue(s),i[l]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return utils$1.forEach(this,(i,s)=>{i!=null&&i!==!1&&(n[s]=t&&utils$1.isArray(i)?i.join(", "):i)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(`
|
|
15
|
+
`)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const i=new this(t);return n.forEach(s=>i.set(s)),i}static accessor(t){const i=(this[$internals]=this[$internals]={accessors:{}}).accessors,s=this.prototype;function a(o){const l=normalizeHeader(o);i[l]||(buildAccessors(s,o),i[l]=!0)}return utils$1.isArray(t)?t.forEach(a):a(t),this}};AxiosHeaders$1.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),utils$1.reduceDescriptors(AxiosHeaders$1.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(i){this[n]=i}}}),utils$1.freezeMethods(AxiosHeaders$1);function transformData(e,t){const n=this||defaults,i=t||n,s=AxiosHeaders$1.from(i.headers);let a=i.data;return utils$1.forEach(e,function(l){a=l.call(n,a,s.normalize(),t?t.status:void 0)}),s.normalize(),a}function isCancel$1(e){return!!(e&&e.__CANCEL__)}function CanceledError$1(e,t,n){AxiosError$1.call(this,e??"canceled",AxiosError$1.ERR_CANCELED,t,n),this.name="CanceledError"}utils$1.inherits(CanceledError$1,AxiosError$1,{__CANCEL__:!0});function settle(e,t,n){const i=n.config.validateStatus;!n.status||!i||i(n.status)?e(n):t(new AxiosError$1("Request failed with status code "+n.status,[AxiosError$1.ERR_BAD_REQUEST,AxiosError$1.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function parseProtocol(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function speedometer(e,t){e=e||10;const n=new Array(e),i=new Array(e);let s=0,a=0,o;return t=t!==void 0?t:1e3,function(c){const u=Date.now(),d=i[a];o||(o=u),n[s]=c,i[s]=u;let p=a,h=0;for(;p!==s;)h+=n[p++],p=p%e;if(s=(s+1)%e,s===a&&(a=(a+1)%e),u-o<t)return;const y=d&&u-d;return y?Math.round(h*1e3/y):void 0}}function throttle(e,t){let n=0,i=1e3/t,s,a;const o=(u,d=Date.now())=>{n=d,s=null,a&&(clearTimeout(a),a=null),e(...u)};return[(...u)=>{const d=Date.now(),p=d-n;p>=i?o(u,d):(s=u,a||(a=setTimeout(()=>{a=null,o(s)},i-p)))},()=>s&&o(s)]}const progressEventReducer=(e,t,n=3)=>{let i=0;const s=speedometer(50,250);return throttle(a=>{const o=a.loaded,l=a.lengthComputable?a.total:void 0,c=o-i,u=s(c),d=o<=l;i=o;const p={loaded:o,total:l,progress:l?o/l:void 0,bytes:c,rate:u||void 0,estimated:u&&l&&d?(l-o)/u:void 0,event:a,lengthComputable:l!=null,[t?"download":"upload"]:!0};e(p)},n)},progressEventDecorator=(e,t)=>{const n=e!=null;return[i=>t[0]({lengthComputable:n,total:e,loaded:i}),t[1]]},asyncDecorator=e=>(...t)=>utils$1.asap(()=>e(...t)),isURLSameOrigin=platform.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,platform.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(platform.origin),platform.navigator&&/(msie|trident)/i.test(platform.navigator.userAgent)):()=>!0,cookies=platform.hasStandardBrowserEnv?{write(e,t,n,i,s,a,o){if(typeof document>"u")return;const l=[`${e}=${encodeURIComponent(t)}`];utils$1.isNumber(n)&&l.push(`expires=${new Date(n).toUTCString()}`),utils$1.isString(i)&&l.push(`path=${i}`),utils$1.isString(s)&&l.push(`domain=${s}`),a===!0&&l.push("secure"),utils$1.isString(o)&&l.push(`SameSite=${o}`),document.cookie=l.join("; ")},read(e){if(typeof document>"u")return null;const t=document.cookie.match(new RegExp("(?:^|; )"+e+"=([^;]*)"));return t?decodeURIComponent(t[1]):null},remove(e){this.write(e,"",Date.now()-864e5,"/")}}:{write(){},read(){return null},remove(){}};function isAbsoluteURL(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function combineURLs(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function buildFullPath(e,t,n){let i=!isAbsoluteURL(t);return e&&(i||n==!1)?combineURLs(e,t):t}const headersToObject=e=>e instanceof AxiosHeaders$1?{...e}:e;function mergeConfig$1(e,t){t=t||{};const n={};function i(u,d,p,h){return utils$1.isPlainObject(u)&&utils$1.isPlainObject(d)?utils$1.merge.call({caseless:h},u,d):utils$1.isPlainObject(d)?utils$1.merge({},d):utils$1.isArray(d)?d.slice():d}function s(u,d,p,h){if(utils$1.isUndefined(d)){if(!utils$1.isUndefined(u))return i(void 0,u,p,h)}else return i(u,d,p,h)}function a(u,d){if(!utils$1.isUndefined(d))return i(void 0,d)}function o(u,d){if(utils$1.isUndefined(d)){if(!utils$1.isUndefined(u))return i(void 0,u)}else return i(void 0,d)}function l(u,d,p){if(p in t)return i(u,d);if(p in e)return i(void 0,u)}const c={url:a,method:a,data:a,baseURL:o,transformRequest:o,transformResponse:o,paramsSerializer:o,timeout:o,timeoutMessage:o,withCredentials:o,withXSRFToken:o,adapter:o,responseType:o,xsrfCookieName:o,xsrfHeaderName:o,onUploadProgress:o,onDownloadProgress:o,decompress:o,maxContentLength:o,maxBodyLength:o,beforeRedirect:o,transport:o,httpAgent:o,httpsAgent:o,cancelToken:o,socketPath:o,responseEncoding:o,validateStatus:l,headers:(u,d,p)=>s(headersToObject(u),headersToObject(d),p,!0)};return utils$1.forEach(Object.keys({...e,...t}),function(d){const p=c[d]||s,h=p(e[d],t[d],d);utils$1.isUndefined(h)&&p!==l||(n[d]=h)}),n}const resolveConfig=e=>{const t=mergeConfig$1({},e);let{data:n,withXSRFToken:i,xsrfHeaderName:s,xsrfCookieName:a,headers:o,auth:l}=t;if(t.headers=o=AxiosHeaders$1.from(o),t.url=buildURL(buildFullPath(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),l&&o.set("Authorization","Basic "+btoa((l.username||"")+":"+(l.password?unescape(encodeURIComponent(l.password)):""))),utils$1.isFormData(n)){if(platform.hasStandardBrowserEnv||platform.hasStandardBrowserWebWorkerEnv)o.setContentType(void 0);else if(utils$1.isFunction(n.getHeaders)){const c=n.getHeaders(),u=["content-type","content-length"];Object.entries(c).forEach(([d,p])=>{u.includes(d.toLowerCase())&&o.set(d,p)})}}if(platform.hasStandardBrowserEnv&&(i&&utils$1.isFunction(i)&&(i=i(t)),i||i!==!1&&isURLSameOrigin(t.url))){const c=s&&a&&cookies.read(a);c&&o.set(s,c)}return t},isXHRAdapterSupported=typeof XMLHttpRequest<"u",xhrAdapter=isXHRAdapterSupported&&function(e){return new Promise(function(n,i){const s=resolveConfig(e);let a=s.data;const o=AxiosHeaders$1.from(s.headers).normalize();let{responseType:l,onUploadProgress:c,onDownloadProgress:u}=s,d,p,h,y,f;function m(){y&&y(),f&&f(),s.cancelToken&&s.cancelToken.unsubscribe(d),s.signal&&s.signal.removeEventListener("abort",d)}let C=new XMLHttpRequest;C.open(s.method.toUpperCase(),s.url,!0),C.timeout=s.timeout;function g(){if(!C)return;const v=AxiosHeaders$1.from("getAllResponseHeaders"in C&&C.getAllResponseHeaders()),w={data:!l||l==="text"||l==="json"?C.responseText:C.response,status:C.status,statusText:C.statusText,headers:v,config:e,request:C};settle(function(_){n(_),m()},function(_){i(_),m()},w),C=null}"onloadend"in C?C.onloadend=g:C.onreadystatechange=function(){!C||C.readyState!==4||C.status===0&&!(C.responseURL&&C.responseURL.indexOf("file:")===0)||setTimeout(g)},C.onabort=function(){C&&(i(new AxiosError$1("Request aborted",AxiosError$1.ECONNABORTED,e,C)),C=null)},C.onerror=function(N){const w=N&&N.message?N.message:"Network Error",E=new AxiosError$1(w,AxiosError$1.ERR_NETWORK,e,C);E.event=N||null,i(E),C=null},C.ontimeout=function(){let N=s.timeout?"timeout of "+s.timeout+"ms exceeded":"timeout exceeded";const w=s.transitional||transitionalDefaults;s.timeoutErrorMessage&&(N=s.timeoutErrorMessage),i(new AxiosError$1(N,w.clarifyTimeoutError?AxiosError$1.ETIMEDOUT:AxiosError$1.ECONNABORTED,e,C)),C=null},a===void 0&&o.setContentType(null),"setRequestHeader"in C&&utils$1.forEach(o.toJSON(),function(N,w){C.setRequestHeader(w,N)}),utils$1.isUndefined(s.withCredentials)||(C.withCredentials=!!s.withCredentials),l&&l!=="json"&&(C.responseType=s.responseType),u&&([h,f]=progressEventReducer(u,!0),C.addEventListener("progress",h)),c&&C.upload&&([p,y]=progressEventReducer(c),C.upload.addEventListener("progress",p),C.upload.addEventListener("loadend",y)),(s.cancelToken||s.signal)&&(d=v=>{C&&(i(!v||v.type?new CanceledError$1(null,e,C):v),C.abort(),C=null)},s.cancelToken&&s.cancelToken.subscribe(d),s.signal&&(s.signal.aborted?d():s.signal.addEventListener("abort",d)));const b=parseProtocol(s.url);if(b&&platform.protocols.indexOf(b)===-1){i(new AxiosError$1("Unsupported protocol "+b+":",AxiosError$1.ERR_BAD_REQUEST,e));return}C.send(a||null)})},composeSignals=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let i=new AbortController,s;const a=function(u){if(!s){s=!0,l();const d=u instanceof Error?u:this.reason;i.abort(d instanceof AxiosError$1?d:new CanceledError$1(d instanceof Error?d.message:d))}};let o=t&&setTimeout(()=>{o=null,a(new AxiosError$1(`timeout ${t} of ms exceeded`,AxiosError$1.ETIMEDOUT))},t);const l=()=>{e&&(o&&clearTimeout(o),o=null,e.forEach(u=>{u.unsubscribe?u.unsubscribe(a):u.removeEventListener("abort",a)}),e=null)};e.forEach(u=>u.addEventListener("abort",a));const{signal:c}=i;return c.unsubscribe=()=>utils$1.asap(l),c}},streamChunk=function*(e,t){let n=e.byteLength;if(n<t){yield e;return}let i=0,s;for(;i<n;)s=i+t,yield e.slice(i,s),i=s},readBytes=async function*(e,t){for await(const n of readStream(e))yield*streamChunk(n,t)},readStream=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:n,value:i}=await t.read();if(n)break;yield i}}finally{await t.cancel()}},trackStream=(e,t,n,i)=>{const s=readBytes(e,t);let a=0,o,l=c=>{o||(o=!0,i&&i(c))};return new ReadableStream({async pull(c){try{const{done:u,value:d}=await s.next();if(u){l(),c.close();return}let p=d.byteLength;if(n){let h=a+=p;n(h)}c.enqueue(new Uint8Array(d))}catch(u){throw l(u),u}},cancel(c){return l(c),s.return()}},{highWaterMark:2})},DEFAULT_CHUNK_SIZE=64*1024,{isFunction}=utils$1,globalFetchAPI=(({Request:e,Response:t})=>({Request:e,Response:t}))(utils$1.global),{ReadableStream:ReadableStream$1,TextEncoder:TextEncoder$1}=utils$1.global,test=(e,...t)=>{try{return!!e(...t)}catch{return!1}},factory=e=>{e=utils$1.merge.call({skipUndefined:!0},globalFetchAPI,e);const{fetch:t,Request:n,Response:i}=e,s=t?isFunction(t):typeof fetch=="function",a=isFunction(n),o=isFunction(i);if(!s)return!1;const l=s&&isFunction(ReadableStream$1),c=s&&(typeof TextEncoder$1=="function"?(f=>m=>f.encode(m))(new TextEncoder$1):async f=>new Uint8Array(await new n(f).arrayBuffer())),u=a&&l&&test(()=>{let f=!1;const m=new n(platform.origin,{body:new ReadableStream$1,method:"POST",get duplex(){return f=!0,"half"}}).headers.has("Content-Type");return f&&!m}),d=o&&l&&test(()=>utils$1.isReadableStream(new i("").body)),p={stream:d&&(f=>f.body)};s&&["text","arrayBuffer","blob","formData","stream"].forEach(f=>{!p[f]&&(p[f]=(m,C)=>{let g=m&&m[f];if(g)return g.call(m);throw new AxiosError$1(`Response type '${f}' is not supported`,AxiosError$1.ERR_NOT_SUPPORT,C)})});const h=async f=>{if(f==null)return 0;if(utils$1.isBlob(f))return f.size;if(utils$1.isSpecCompliantForm(f))return(await new n(platform.origin,{method:"POST",body:f}).arrayBuffer()).byteLength;if(utils$1.isArrayBufferView(f)||utils$1.isArrayBuffer(f))return f.byteLength;if(utils$1.isURLSearchParams(f)&&(f=f+""),utils$1.isString(f))return(await c(f)).byteLength},y=async(f,m)=>{const C=utils$1.toFiniteNumber(f.getContentLength());return C??h(m)};return async f=>{let{url:m,method:C,data:g,signal:b,cancelToken:v,timeout:N,onDownloadProgress:w,onUploadProgress:E,responseType:_,headers:k,withCredentials:A="same-origin",fetchOptions:F}=resolveConfig(f),B=t||fetch;_=_?(_+"").toLowerCase():"text";let I=composeSignals([b,v&&v.toAbortSignal()],N),D=null;const L=I&&I.unsubscribe&&(()=>{I.unsubscribe()});let $;try{if(E&&u&&C!=="get"&&C!=="head"&&($=await y(k,g))!==0){let V=new n(m,{method:"POST",body:g,duplex:"half"}),z;if(utils$1.isFormData(g)&&(z=V.headers.get("content-type"))&&k.setContentType(z),V.body){const[G,H]=progressEventDecorator($,progressEventReducer(asyncDecorator(E)));g=trackStream(V.body,DEFAULT_CHUNK_SIZE,G,H)}}utils$1.isString(A)||(A=A?"include":"omit");const P=a&&"credentials"in n.prototype,T={...F,signal:I,method:C.toUpperCase(),headers:k.normalize().toJSON(),body:g,duplex:"half",credentials:P?A:void 0};D=a&&new n(m,T);let x=await(a?B(D,F):B(m,T));const S=d&&(_==="stream"||_==="response");if(d&&(w||S&&L)){const V={};["status","statusText","headers"].forEach(W=>{V[W]=x[W]});const z=utils$1.toFiniteNumber(x.headers.get("content-length")),[G,H]=w&&progressEventDecorator(z,progressEventReducer(asyncDecorator(w),!0))||[];x=new i(trackStream(x.body,DEFAULT_CHUNK_SIZE,G,()=>{H&&H(),L&&L()}),V)}_=_||"text";let M=await p[utils$1.findKey(p,_)||"text"](x,f);return!S&&L&&L(),await new Promise((V,z)=>{settle(V,z,{data:M,headers:AxiosHeaders$1.from(x.headers),status:x.status,statusText:x.statusText,config:f,request:D})})}catch(P){throw L&&L(),P&&P.name==="TypeError"&&/Load failed|fetch/i.test(P.message)?Object.assign(new AxiosError$1("Network Error",AxiosError$1.ERR_NETWORK,f,D),{cause:P.cause||P}):AxiosError$1.from(P,P&&P.code,f,D)}}},seedCache=new Map,getFetch=e=>{let t=e&&e.env||{};const{fetch:n,Request:i,Response:s}=t,a=[i,s,n];let o=a.length,l=o,c,u,d=seedCache;for(;l--;)c=a[l],u=d.get(c),u===void 0&&d.set(c,u=l?new Map:factory(t)),d=u;return u};getFetch();const knownAdapters={http:httpAdapter,xhr:xhrAdapter,fetch:{get:getFetch}};utils$1.forEach(knownAdapters,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const renderReason=e=>`- ${e}`,isResolvedHandle=e=>utils$1.isFunction(e)||e===null||e===!1;function getAdapter$1(e,t){e=utils$1.isArray(e)?e:[e];const{length:n}=e;let i,s;const a={};for(let o=0;o<n;o++){i=e[o];let l;if(s=i,!isResolvedHandle(i)&&(s=knownAdapters[(l=String(i)).toLowerCase()],s===void 0))throw new AxiosError$1(`Unknown adapter '${l}'`);if(s&&(utils$1.isFunction(s)||(s=s.get(t))))break;a[l||"#"+o]=s}if(!s){const o=Object.entries(a).map(([c,u])=>`adapter ${c} `+(u===!1?"is not supported by the environment":"is not available in the build"));let l=n?o.length>1?`since :
|
|
16
16
|
`+o.map(renderReason).join(`
|
|
17
17
|
`):" "+renderReason(o[0]):"as no adapter specified";throw new AxiosError$1("There is no suitable adapter to dispatch the request "+l,"ERR_NOT_SUPPORT")}return s}const adapters={getAdapter:getAdapter$1,adapters:knownAdapters};function throwIfCancellationRequested(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new CanceledError$1(null,e)}function dispatchRequest(e){return throwIfCancellationRequested(e),e.headers=AxiosHeaders$1.from(e.headers),e.data=transformData.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),adapters.getAdapter(e.adapter||defaults.adapter,e)(e).then(function(i){return throwIfCancellationRequested(e),i.data=transformData.call(e,e.transformResponse,i),i.headers=AxiosHeaders$1.from(i.headers),i},function(i){return isCancel$1(i)||(throwIfCancellationRequested(e),i&&i.response&&(i.response.data=transformData.call(e,e.transformResponse,i.response),i.response.headers=AxiosHeaders$1.from(i.response.headers))),Promise.reject(i)})}const VERSION$1="1.13.2",validators$1={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{validators$1[e]=function(i){return typeof i===e||"a"+(t<1?"n ":" ")+e}});const deprecatedWarnings={};validators$1.transitional=function e(t,n,i){function s(a,o){return"[Axios v"+VERSION$1+"] Transitional option '"+a+"'"+o+(i?". "+i:"")}return(a,o,l)=>{if(t===!1)throw new AxiosError$1(s(o," has been removed"+(n?" in "+n:"")),AxiosError$1.ERR_DEPRECATED);return n&&!deprecatedWarnings[o]&&(deprecatedWarnings[o]=!0,console.warn(s(o," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(a,o,l):!0}},validators$1.spelling=function e(t){return(n,i)=>(console.warn(`${i} is likely a misspelling of ${t}`),!0)};function assertOptions(e,t,n){if(typeof e!="object")throw new AxiosError$1("options must be an object",AxiosError$1.ERR_BAD_OPTION_VALUE);const i=Object.keys(e);let s=i.length;for(;s-- >0;){const a=i[s],o=t[a];if(o){const l=e[a],c=l===void 0||o(l,a,e);if(c!==!0)throw new AxiosError$1("option "+a+" must be "+c,AxiosError$1.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new AxiosError$1("Unknown option "+a,AxiosError$1.ERR_BAD_OPTION)}}const validator={assertOptions,validators:validators$1},validators=validator.validators;let Axios$1=class{constructor(t){this.defaults=t||{},this.interceptors={request:new InterceptorManager,response:new InterceptorManager}}async request(t,n){try{return await this._request(t,n)}catch(i){if(i instanceof Error){let s={};Error.captureStackTrace?Error.captureStackTrace(s):s=new Error;const a=s.stack?s.stack.replace(/^.+\n/,""):"";try{i.stack?a&&!String(i.stack).endsWith(a.replace(/^.+\n.+\n/,""))&&(i.stack+=`
|
|
18
|
-
`+a):i.stack=a}catch{}}throw i}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=mergeConfig$1(this.defaults,n);const{transitional:i,paramsSerializer:s,headers:a}=n;i!==void 0&&validator.assertOptions(i,{silentJSONParsing:validators.transitional(validators.boolean),forcedJSONParsing:validators.transitional(validators.boolean),clarifyTimeoutError:validators.transitional(validators.boolean)},!1),s!=null&&(utils$1.isFunction(s)?n.paramsSerializer={serialize:s}:validator.assertOptions(s,{encode:validators.function,serialize:validators.function},!0)),n.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),validator.assertOptions(n,{baseUrl:validators.spelling("baseURL"),withXsrfToken:validators.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let o=a&&utils$1.merge(a.common,a[n.method]);a&&utils$1.forEach(["delete","get","head","post","put","patch","common"],f=>{delete a[f]}),n.headers=AxiosHeaders$1.concat(o,a);const l=[];let c=!0;this.interceptors.request.forEach(function(m){typeof m.runWhen=="function"&&m.runWhen(n)===!1||(c=c&&m.synchronous,l.unshift(m.fulfilled,m.rejected))});const d=[];this.interceptors.response.forEach(function(m){d.push(m.fulfilled,m.rejected)});let u,p=0,h;if(!c){const f=[dispatchRequest.bind(this),void 0];for(f.unshift(...l),f.push(...d),h=f.length,u=Promise.resolve(n);p<h;)u=u.then(f[p++],f[p++]);return u}h=l.length;let y=n;for(;p<h;){const f=l[p++],m=l[p++];try{y=f(y)}catch(C){m.call(this,C);break}}try{u=dispatchRequest.call(this,y)}catch(f){return Promise.reject(f)}for(p=0,h=d.length;p<h;)u=u.then(d[p++],d[p++]);return u}getUri(t){t=mergeConfig$1(this.defaults,t);const n=buildFullPath(t.baseURL,t.url,t.allowAbsoluteUrls);return buildURL(n,t.params,t.paramsSerializer)}};utils$1.forEach(["delete","get","head","options"],function e(t){Axios$1.prototype[t]=function(n,i){return this.request(mergeConfig$1(i||{},{method:t,url:n,data:(i||{}).data}))}}),utils$1.forEach(["post","put","patch"],function e(t){function n(i){return function(a,o,l){return this.request(mergeConfig$1(l||{},{method:t,headers:i?{"Content-Type":"multipart/form-data"}:{},url:a,data:o}))}}Axios$1.prototype[t]=n(),Axios$1.prototype[t+"Form"]=n(!0)});let CancelToken$1=class Ne{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(a){n=a});const i=this;this.promise.then(s=>{if(!i._listeners)return;let a=i._listeners.length;for(;a-- >0;)i._listeners[a](s);i._listeners=null}),this.promise.then=s=>{let a;const o=new Promise(l=>{i.subscribe(l),a=l}).then(s);return o.cancel=function(){i.unsubscribe(a)},o},t(function(a,o,l){i.reason||(i.reason=new CanceledError$1(a,o,l),n(i.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const t=new AbortController,n=i=>{t.abort(i)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new Ne(function(s){t=s}),cancel:t}}};function spread$1(e){return function(n){return e.apply(null,n)}}function isAxiosError$1(e){return utils$1.isObject(e)&&e.isAxiosError===!0}const HttpStatusCode$1={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(HttpStatusCode$1).forEach(([e,t])=>{HttpStatusCode$1[t]=e});function createInstance(e){const t=new Axios$1(e),n=bind(Axios$1.prototype.request,t);return utils$1.extend(n,Axios$1.prototype,t,{allOwnKeys:!0}),utils$1.extend(n,t,null,{allOwnKeys:!0}),n.create=function(s){return createInstance(mergeConfig$1(e,s))},n}const axios=createInstance(defaults);axios.Axios=Axios$1,axios.CanceledError=CanceledError$1,axios.CancelToken=CancelToken$1,axios.isCancel=isCancel$1,axios.VERSION=VERSION$1,axios.toFormData=toFormData$1,axios.AxiosError=AxiosError$1,axios.Cancel=axios.CanceledError,axios.all=function e(t){return Promise.all(t)},axios.spread=spread$1,axios.isAxiosError=isAxiosError$1,axios.mergeConfig=mergeConfig$1,axios.AxiosHeaders=AxiosHeaders$1,axios.formToJSON=e=>formDataToJSON(utils$1.isHTMLForm(e)?new FormData(e):e),axios.getAdapter=adapters.getAdapter,axios.HttpStatusCode=HttpStatusCode$1,axios.default=axios;const{Axios,AxiosError,CanceledError,isCancel,CancelToken,VERSION,all,Cancel,isAxiosError,spread,toFormData,AxiosHeaders,HttpStatusCode,formToJSON,getAdapter,mergeConfig}=axios,useTaskService=()=>{const{getFromStorage:e}=useStorageService();return{getTaskContext:(g,b)=>{const v=e("loginInfo")?.token||"";return axios.get(`${b}/${g}/context`,{headers:{Authorization:`Bearer ${v}`}})},getTaskStatus:(g,b)=>{const v=e("loginInfo")?.token||"";return axios.get(`${b}/${g}/status`,{headers:{Authorization:`Bearer ${v}`}})},getClusterTasks:g=>{const b=e("loginInfo")?.token||"";return axios.get(`${g}/cluster/tasks`,{headers:{Authorization:`Bearer ${b}`}})},createClusterTask:(g,b)=>{const v=e("loginInfo")?.token||"";return axios.post(`${b}/cluster/tasks`,g,{headers:{Authorization:`Bearer ${v}`}})},createClusterTaskForApp:g=>{const b=e("loginInfo")?.token||"",v=window.parent?.core?.$root?.apiUrl;return axios.post(`${v}/cluster/tasks`,g,{headers:{Authorization:`Bearer ${b}`}})},createModuleTaskForApp:(g,b)=>{const v=e("loginInfo")?.token||"",N=window.parent?.core?.$root?.apiUrl;return axios.post(`${N}/module/${g}/tasks`,b,{headers:{Authorization:`Bearer ${v}`}})},createNodeTask:(g,b,v)=>{const N=e("loginInfo")?.token||"";return axios.post(`${v}/node/${g}/tasks`,b,{headers:{Authorization:`Bearer ${N}`}})},createNodeTaskForApp:(g,b)=>{const v=e("loginInfo")?.token||"",N=window.parent?.core?.$root?.apiUrl;return axios.post(`${N}/node/${g}/tasks`,b,{headers:{Authorization:`Bearer ${v}`}})},getTaskTitle:g=>g&&g.context&&g.context.extra&&g.context.extra.title?g.context.extra.title:"",getTaskKind:g=>{switch(g.status){case"aborted":case"validation-failed":return"error";case"completed":return"success";case"pending":return"warning";default:return"info"}},getTaskIcon:g=>{switch(g.status){case"aborted":case"validation-failed":return lucideVueNext.CircleX;case"completed":return lucideVueNext.CheckCircle;case"pending":return lucideVueNext.AlertTriangle;default:return lucideVueNext.Info}},getTaskStatusDescription:(g,b,v=!0)=>{const w=`${g.context?.queue?g.context.queue.split("/tasks")[0]:"cluster"}/${g.context?.action}`,E=v?"task":"subtask";switch(g.status){case"aborted":return b(`task.${E}_failed`,{task:w});case"validation-failed":return b(`task.${E}_failed_validation`,{task:w});case"completed":return b(`task.${E}_completed`,{task:w});case"pending":return b(`task.${E}_pending`,{task:w});case"running":return b(`task.${E}_running`,{task:w});default:return""}},createErrorNotification:(g,b,v)=>{console.error(g),v("createErrorNotification",g,b)},createErrorNotificationForApp:(g,b)=>{console.error(g);const v=window.parent?.core;v?.$root&&v.$root.$emit("createErrorNotification",g,b)},createNotificationForApp:g=>{const b=window.parent?.core;b?.$root&&b.$root.$emit("createNotificationForApp",g)},deleteNotificationForApp:g=>{const b=window.parent?.core;b?.$root&&b.$root.$emit("deleteNotificationForApp",g)}}},useFilterService=()=>({byteFormat:o=>{if(o===null||o===""||isNaN(Number(o)))return"-";const l=Number(o);switch(!0){case(l>=0&&l<1024):return`${l} B`;case(l>=1024&&l<Math.pow(1024,2)):return`${Math.round(l/1024*100)/100} KiB`;case(l>=Math.pow(1024,2)&&l<Math.pow(1024,3)):return`${Math.round(l/Math.pow(1024,2)*100)/100} MiB`;case(l>=Math.pow(1024,3)&&l<Math.pow(1024,4)):return`${Math.round(l/Math.pow(1024,3)*100)/100} GiB`;default:return`${Math.round(l/Math.pow(1024,4)*100)/100} TiB`}},humanFormat:(o,l=!1)=>{if(o===null||o===""||isNaN(Number(o)))return"-";const c=Number(o);switch(!0){case(c>=0&&c<1e3):return`${c}`;case(c>=1e3&&c<Math.pow(1e3,2)):return l?`${Math.round(c/1e3*10)/10} K`:`${Math.round(c/1e3)} K`;case(c>=Math.pow(1e3,2)&&c<Math.pow(1e3,3)):return l?`${Math.round(c/Math.pow(1e3,2)*10)/10} M`:`${Math.round(c/Math.pow(1e3,2))} M`;case(c>=Math.pow(1e3,3)&&c<Math.pow(1e3,4)):return l?`${Math.round(c/Math.pow(1e3,3)*10)/10} G`:`${Math.round(c/Math.pow(1e3,3))} G`;default:return l?`${Math.round(c/Math.pow(1e3,4)*10)/10} T`:`${Math.round(c/Math.pow(1e3,4))} T`}},mibFormat:o=>{if(o===null||o===""||isNaN(Number(o)))return"-";const l=Number(o);switch(!0){case(l>=0&&l<1024):return`${l} MiB`;case(l>=1024&&l<Math.pow(1024,2)):return`${Math.round(l/1024*100)/100} GiB`;default:return`${Math.round(l/Math.pow(1024,2)*100)/100} TiB`}},gibFormat:o=>{if(o===null||o===""||isNaN(Number(o)))return"-";const l=Number(o);return!0===(l>=0&&l<1024)?`${l} GiB`:`${Math.round(l/1024*100)/100} TiB`},secondsFormat:o=>{if(o<0)return"-";const l=Math.floor(o/3600),c=Math.floor((o-l*3600)/60),d=(o-(l*3600+c*60))%60;let u="";return l>0&&(u+=`${l}h `),c>0&&(u+=`${c}m `),d>0&&(u+=`${d}s`),u?u.trim():"0s"},secondsLongFormat:o=>{if(o<0)return"-";const l=Math.floor(o/3600),c=Math.floor((o-l*3600)/60),d=(o-(l*3600+c*60))%60,u=l>9?l:`0${l}`,p=c>9?c:`0${c}`,h=d>9?d:`0${d}`;return`${u}h ${p}m ${h}s`}}),Ns8UiLibNew={install(e){}},version="1.0.0";exports.DateTimeService=useDateTimeService,exports.FilterService=useFilterService,exports.IconService=useIconService,exports.NSBackupCard=_sfc_main$4,exports.NSByteSlider=_sfc_main$n,exports.NSCheckbox=_sfc_main$A,exports.NSDataTable=_sfc_main$d,exports.NSEmptyState=_sfc_main$v,exports.NSInlineNotification=_sfc_main$u,exports.NSLottieAnimation=_sfc_main$w,exports.NSModal=_sfc_main$q,exports.NSModalTrigger=_sfc_main$p,exports.NSPagination=_sfc_main$m,exports.NSProgress=NSProgress,exports.NSProgressBar=NSProgressBar,exports.NSSlider=_sfc_main$o,exports.NSSystemInfoCard=_sfc_main,exports.NSSystemdServiceCard=_sfc_main$2,exports.NSTag=_sfc_main$x,exports.NSTextInput=_sfc_main$z,exports.NSToastNotification=NSToastNotification,exports.NSToggle=_sfc_main$y,exports.NSWizard=_sfc_main$b,exports.PageTitleService=usePageTitleService,exports.QueryParamService=useQueryParamService,exports.StorageService=useStorageService,exports.TaskService=useTaskService,exports.UtilService=useUtilService,exports.default=Ns8UiLibNew,exports.useDateTimeService=useDateTimeService,exports.useFilterService=useFilterService,exports.useIconService=useIconService,exports.usePageTitleService=usePageTitleService,exports.useQueryParamService=useQueryParamService,exports.useStorageService=useStorageService,exports.useTaskService=useTaskService,exports.useUtilService=useUtilService,exports.version=version,Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})}));
|
|
18
|
+
`+a):i.stack=a}catch{}}throw i}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=mergeConfig$1(this.defaults,n);const{transitional:i,paramsSerializer:s,headers:a}=n;i!==void 0&&validator.assertOptions(i,{silentJSONParsing:validators.transitional(validators.boolean),forcedJSONParsing:validators.transitional(validators.boolean),clarifyTimeoutError:validators.transitional(validators.boolean)},!1),s!=null&&(utils$1.isFunction(s)?n.paramsSerializer={serialize:s}:validator.assertOptions(s,{encode:validators.function,serialize:validators.function},!0)),n.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),validator.assertOptions(n,{baseUrl:validators.spelling("baseURL"),withXsrfToken:validators.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let o=a&&utils$1.merge(a.common,a[n.method]);a&&utils$1.forEach(["delete","get","head","post","put","patch","common"],f=>{delete a[f]}),n.headers=AxiosHeaders$1.concat(o,a);const l=[];let c=!0;this.interceptors.request.forEach(function(m){typeof m.runWhen=="function"&&m.runWhen(n)===!1||(c=c&&m.synchronous,l.unshift(m.fulfilled,m.rejected))});const u=[];this.interceptors.response.forEach(function(m){u.push(m.fulfilled,m.rejected)});let d,p=0,h;if(!c){const f=[dispatchRequest.bind(this),void 0];for(f.unshift(...l),f.push(...u),h=f.length,d=Promise.resolve(n);p<h;)d=d.then(f[p++],f[p++]);return d}h=l.length;let y=n;for(;p<h;){const f=l[p++],m=l[p++];try{y=f(y)}catch(C){m.call(this,C);break}}try{d=dispatchRequest.call(this,y)}catch(f){return Promise.reject(f)}for(p=0,h=u.length;p<h;)d=d.then(u[p++],u[p++]);return d}getUri(t){t=mergeConfig$1(this.defaults,t);const n=buildFullPath(t.baseURL,t.url,t.allowAbsoluteUrls);return buildURL(n,t.params,t.paramsSerializer)}};utils$1.forEach(["delete","get","head","options"],function e(t){Axios$1.prototype[t]=function(n,i){return this.request(mergeConfig$1(i||{},{method:t,url:n,data:(i||{}).data}))}}),utils$1.forEach(["post","put","patch"],function e(t){function n(i){return function(a,o,l){return this.request(mergeConfig$1(l||{},{method:t,headers:i?{"Content-Type":"multipart/form-data"}:{},url:a,data:o}))}}Axios$1.prototype[t]=n(),Axios$1.prototype[t+"Form"]=n(!0)});let CancelToken$1=class Ne{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(a){n=a});const i=this;this.promise.then(s=>{if(!i._listeners)return;let a=i._listeners.length;for(;a-- >0;)i._listeners[a](s);i._listeners=null}),this.promise.then=s=>{let a;const o=new Promise(l=>{i.subscribe(l),a=l}).then(s);return o.cancel=function(){i.unsubscribe(a)},o},t(function(a,o,l){i.reason||(i.reason=new CanceledError$1(a,o,l),n(i.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const t=new AbortController,n=i=>{t.abort(i)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new Ne(function(s){t=s}),cancel:t}}};function spread$1(e){return function(n){return e.apply(null,n)}}function isAxiosError$1(e){return utils$1.isObject(e)&&e.isAxiosError===!0}const HttpStatusCode$1={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(HttpStatusCode$1).forEach(([e,t])=>{HttpStatusCode$1[t]=e});function createInstance(e){const t=new Axios$1(e),n=bind(Axios$1.prototype.request,t);return utils$1.extend(n,Axios$1.prototype,t,{allOwnKeys:!0}),utils$1.extend(n,t,null,{allOwnKeys:!0}),n.create=function(s){return createInstance(mergeConfig$1(e,s))},n}const axios=createInstance(defaults);axios.Axios=Axios$1,axios.CanceledError=CanceledError$1,axios.CancelToken=CancelToken$1,axios.isCancel=isCancel$1,axios.VERSION=VERSION$1,axios.toFormData=toFormData$1,axios.AxiosError=AxiosError$1,axios.Cancel=axios.CanceledError,axios.all=function e(t){return Promise.all(t)},axios.spread=spread$1,axios.isAxiosError=isAxiosError$1,axios.mergeConfig=mergeConfig$1,axios.AxiosHeaders=AxiosHeaders$1,axios.formToJSON=e=>formDataToJSON(utils$1.isHTMLForm(e)?new FormData(e):e),axios.getAdapter=adapters.getAdapter,axios.HttpStatusCode=HttpStatusCode$1,axios.default=axios;const{Axios,AxiosError,CanceledError,isCancel,CancelToken,VERSION,all,Cancel,isAxiosError,spread,toFormData,AxiosHeaders,HttpStatusCode,formToJSON,getAdapter,mergeConfig}=axios,useTaskService=()=>{const{getFromStorage:e}=useStorageService();return{getTaskContext:(g,b)=>{const v=e("loginInfo")?.token||"";return axios.get(`${b}/${g}/context`,{headers:{Authorization:`Bearer ${v}`}})},getTaskStatus:(g,b)=>{const v=e("loginInfo")?.token||"";return axios.get(`${b}/${g}/status`,{headers:{Authorization:`Bearer ${v}`}})},getClusterTasks:g=>{const b=e("loginInfo")?.token||"";return axios.get(`${g}/cluster/tasks`,{headers:{Authorization:`Bearer ${b}`}})},createClusterTask:(g,b)=>{const v=e("loginInfo")?.token||"";return axios.post(`${b}/cluster/tasks`,g,{headers:{Authorization:`Bearer ${v}`}})},createClusterTaskForApp:g=>{const b=e("loginInfo")?.token||"",v=window.parent?.core?.$root?.apiUrl;return axios.post(`${v}/cluster/tasks`,g,{headers:{Authorization:`Bearer ${b}`}})},createModuleTaskForApp:(g,b)=>{const v=e("loginInfo")?.token||"",N=window.parent?.core?.$root?.apiUrl;return axios.post(`${N}/module/${g}/tasks`,b,{headers:{Authorization:`Bearer ${v}`}})},createNodeTask:(g,b,v)=>{const N=e("loginInfo")?.token||"";return axios.post(`${v}/node/${g}/tasks`,b,{headers:{Authorization:`Bearer ${N}`}})},createNodeTaskForApp:(g,b)=>{const v=e("loginInfo")?.token||"",N=window.parent?.core?.$root?.apiUrl;return axios.post(`${N}/node/${g}/tasks`,b,{headers:{Authorization:`Bearer ${v}`}})},getTaskTitle:g=>g&&g.context&&g.context.extra&&g.context.extra.title?g.context.extra.title:"",getTaskKind:g=>{switch(g.status){case"aborted":case"validation-failed":return"error";case"completed":return"success";case"pending":return"warning";default:return"info"}},getTaskIcon:g=>{switch(g.status){case"aborted":case"validation-failed":return lucideVueNext.CircleX;case"completed":return lucideVueNext.CheckCircle;case"pending":return lucideVueNext.AlertTriangle;default:return lucideVueNext.Info}},getTaskStatusDescription:(g,b,v=!0)=>{const w=`${g.context?.queue?g.context.queue.split("/tasks")[0]:"cluster"}/${g.context?.action}`,E=v?"task":"subtask";switch(g.status){case"aborted":return b(`task.${E}_failed`,{task:w});case"validation-failed":return b(`task.${E}_failed_validation`,{task:w});case"completed":return b(`task.${E}_completed`,{task:w});case"pending":return b(`task.${E}_pending`,{task:w});case"running":return b(`task.${E}_running`,{task:w});default:return""}},createErrorNotification:(g,b,v)=>{console.error(g),v("createErrorNotification",g,b)},createErrorNotificationForApp:(g,b)=>{console.error(g);const v=window.parent?.core;v?.$root&&v.$root.$emit("createErrorNotification",g,b)},createNotificationForApp:g=>{const b=window.parent?.core;b?.$root&&b.$root.$emit("createNotificationForApp",g)},deleteNotificationForApp:g=>{const b=window.parent?.core;b?.$root&&b.$root.$emit("deleteNotificationForApp",g)}}},useFilterService=()=>({byteFormat:o=>{if(o===null||o===""||isNaN(Number(o)))return"-";const l=Number(o);switch(!0){case(l>=0&&l<1024):return`${l} B`;case(l>=1024&&l<Math.pow(1024,2)):return`${Math.round(l/1024*100)/100} KiB`;case(l>=Math.pow(1024,2)&&l<Math.pow(1024,3)):return`${Math.round(l/Math.pow(1024,2)*100)/100} MiB`;case(l>=Math.pow(1024,3)&&l<Math.pow(1024,4)):return`${Math.round(l/Math.pow(1024,3)*100)/100} GiB`;default:return`${Math.round(l/Math.pow(1024,4)*100)/100} TiB`}},humanFormat:(o,l=!1)=>{if(o===null||o===""||isNaN(Number(o)))return"-";const c=Number(o);switch(!0){case(c>=0&&c<1e3):return`${c}`;case(c>=1e3&&c<Math.pow(1e3,2)):return l?`${Math.round(c/1e3*10)/10} K`:`${Math.round(c/1e3)} K`;case(c>=Math.pow(1e3,2)&&c<Math.pow(1e3,3)):return l?`${Math.round(c/Math.pow(1e3,2)*10)/10} M`:`${Math.round(c/Math.pow(1e3,2))} M`;case(c>=Math.pow(1e3,3)&&c<Math.pow(1e3,4)):return l?`${Math.round(c/Math.pow(1e3,3)*10)/10} G`:`${Math.round(c/Math.pow(1e3,3))} G`;default:return l?`${Math.round(c/Math.pow(1e3,4)*10)/10} T`:`${Math.round(c/Math.pow(1e3,4))} T`}},mibFormat:o=>{if(o===null||o===""||isNaN(Number(o)))return"-";const l=Number(o);switch(!0){case(l>=0&&l<1024):return`${l} MiB`;case(l>=1024&&l<Math.pow(1024,2)):return`${Math.round(l/1024*100)/100} GiB`;default:return`${Math.round(l/Math.pow(1024,2)*100)/100} TiB`}},gibFormat:o=>{if(o===null||o===""||isNaN(Number(o)))return"-";const l=Number(o);return!0===(l>=0&&l<1024)?`${l} GiB`:`${Math.round(l/1024*100)/100} TiB`},secondsFormat:o=>{if(o<0)return"-";const l=Math.floor(o/3600),c=Math.floor((o-l*3600)/60),u=(o-(l*3600+c*60))%60;let d="";return l>0&&(d+=`${l}h `),c>0&&(d+=`${c}m `),u>0&&(d+=`${u}s`),d?d.trim():"0s"},secondsLongFormat:o=>{if(o<0)return"-";const l=Math.floor(o/3600),c=Math.floor((o-l*3600)/60),u=(o-(l*3600+c*60))%60,d=l>9?l:`0${l}`,p=c>9?c:`0${c}`,h=u>9?u:`0${u}`;return`${d}h ${p}m ${h}s`}}),Ns8UiLibNew={install(e){}},version="1.0.0";exports.DateTimeService=useDateTimeService,exports.FilterService=useFilterService,exports.IconService=useIconService,exports.NSBackupCard=_sfc_main$4,exports.NSByteSlider=_sfc_main$n,exports.NSCheckbox=_sfc_main$A,exports.NSDataTable=_sfc_main$d,exports.NSEmptyState=_sfc_main$v,exports.NSInlineNotification=_sfc_main$u,exports.NSLottieAnimation=_sfc_main$w,exports.NSModal=_sfc_main$q,exports.NSModalTrigger=_sfc_main$p,exports.NSPagination=_sfc_main$m,exports.NSProgress=NSProgress,exports.NSProgressBar=NSProgressBar,exports.NSSlider=_sfc_main$o,exports.NSSystemInfoCard=_sfc_main,exports.NSSystemdServiceCard=_sfc_main$2,exports.NSTag=_sfc_main$x,exports.NSTextInput=_sfc_main$z,exports.NSToastNotification=NSToastNotification,exports.NSToggle=_sfc_main$y,exports.NSWizard=_sfc_main$b,exports.PageTitleService=usePageTitleService,exports.QueryParamService=useQueryParamService,exports.StorageService=useStorageService,exports.TaskService=useTaskService,exports.UtilService=useUtilService,exports.default=Ns8UiLibNew,exports.useDateTimeService=useDateTimeService,exports.useFilterService=useFilterService,exports.useIconService=useIconService,exports.usePageTitleService=usePageTitleService,exports.useQueryParamService=useQueryParamService,exports.useStorageService=useStorageService,exports.useTaskService=useTaskService,exports.useUtilService=useUtilService,exports.version=version,Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})}));
|
|
19
19
|
//# sourceMappingURL=ns8-ui-lib.umd.js.map
|