1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/Dashboard-CjiFH6Ws.js","assets/tabs-B83ARz9C.js","assets/WorkbookCard-DeLWRHMV.js","assets/AppImage-CaiDvCKB.js","assets/index-0mvnqb_O.js","assets/StepilyLoader-BFeUzmgi.js","assets/alert-dialog-COMIXWx2.js","assets/label-Cwl4lV9w.js","assets/select-opNpb1aA.js","assets/ShareDialog-BPnv_2ie.js","assets/ScreenshotViewport-BpqwhOCg.js","assets/zoom-in-CCKwtzmt.js","assets/workspaceBranding-DOJ4dzPv.js","assets/MoveWorkbookToTeamDialog-BlasIvgk.js","assets/triangle-alert-hShPxpNF.js","assets/quotaErrors-Qad1y5H0.js","assets/trending-up-DVtuT4PC.js","assets/TutorialViewer-BvoKcRkT.js","assets/textarea-b6ezai6C.js","assets/external-link-DbRh4-NW.js","assets/collapsible-BJbcyn02.js","assets/index-BxQcSCme.js","assets/chevron-left-BS_uA5Pi.js","assets/TutorialPage-IDertqIs.js","assets/useCustomApps-v6IUgQBM.js","assets/AppSelector-Cj-jLxPG.js","assets/switch-C5lLbU1Y.js","assets/camera-BJSIIRMv.js","assets/eye-DY3Y_HU8.js","assets/WorkbookViewer-DEWolqrz.js","assets/WorkbookEditor-Dhsda2oS.js","assets/Leaderboard-ChiGjtob.js","assets/Community-DKZG-WLu.js","assets/Profile-CSCmr-aN.js","assets/password-input-Iw4WcB3e.js","assets/twitter-BlDd54v_.js","assets/PublicProfile-D8febGKo.js","assets/Auth-C7KiodZ4.js","assets/SignupQuestionnaire-C1By7L58.js","assets/AllTutorials-cWBl27v-.js","assets/ResetPassword-CHkdyYpO.js","assets/GoogleOnboarding-DOW1AFs-.js","assets/AdminReports-DsfDEFQ7.js","assets/Pricing-CJpjtecE.js","assets/FAQ-D0no6tCE.js","assets/Checkout-ua5DxrtX.js","assets/BookDemo-CMSb-uGw.js","assets/circle-check-BIXAXaqM.js","assets/FreeGuideLibrary-P-8V_sMP.js","assets/WorkspaceSettings-DJKH52n2.js","assets/EmbedTest-BlBtD64B.js","assets/SolutionComingSoon-bz-dFS7z.js","assets/NotFound-BTeVdQc
vendor: 11,350 bytes, lines 1-18
1H.js"])))=>i.map(i=>d[i]); 2var Mn=Object.defineProperty;var wn=e=>{throw TypeError(e)};var On=(e,s,i)=>s in e?Mn(e,s,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[s]=i;var Mr=(e,s,i)=>On(e,typeof s!="symbol"?s+"":s,i),yn=(e,s,i)=>s.has(e)||wn("Cannot "+i);var Dt=(e,s,i)=>(yn(e,s,"read from private field"),i?i.call(e):s.get(e)),Zt=(e,s,i)=>s.has(e)?wn("Cannot add the same private member more than once"):s instanceof WeakSet?s.add(e):s.set(e,i),Xt=(e,s,i,o)=>(yn(e,s,"write to private field"),o?o.call(e,i):s.set(e,i),i),hr=(e,s,i)=>(yn(e,s,"access private method"),i);var mn=(e,s,i,o)=>({set _(a){Xt(e,s,a,i)},get _(){return Dt(e,s,o)}});function _mergeNamespaces(e,s){for(var i=0;i<s.length;i++){const o=s[i];if(typeof o!="string"&&!Array.isArray(o)){for(const a in o)if(a!=="default"&&!(a in e)){const c=Object.getOwnPropertyDescriptor(o,a);c&&Object.defineProperty(e,a,c.get?c:{enumerable:!0,get:()=>o[a]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const s=document.createElement("link").relList;if(s&&s.supports&&s.supports("modulepreload"))return;for(const a of document.querySelectorAll('link[rel="modulepreload"]'))o(a);new MutationObserver(a=>{for(const c of a)if(c.type==="childList")for(const d of c.addedNodes)d.tagName==="LINK"&&d.rel==="modulepreload"&&o(d)}).observe(document,{childList:!0,subtree:!0});function i(a){const c={};return a.integrity&&(c.integrity=a.integrity),a.referrerPolicy&&(c.referrerPolicy=a.referrerPolicy),a.crossOrigin==="use-credentials"?c.credentials="include":a.crossOrigin==="anonymous"?c.credentials="omit":c.credentials="same-origin",c}function o(a){if(a.ep)return;a.ep=!0;const c=i(a);fetch(a.href,c)}})();var commonjsGlobal=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function getDefaultExportFromCjs(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function getAugmentedNamespace(e){if(e.__esModule)return e;var s=e.default;if(typeof s=="function"){var i=function o(){return this instanceof o?Reflect.construct(s,arguments,this.constructor):s.apply(this,arguments)};i.prototype=s.prototype}else i={};return Object.defineProperty(i,"__esModule",{value:!0}),Object.keys(e).forEach(function(o){var a=Object.getOwnPropertyDescriptor(e,o);Object.defineProperty(i,o,a.get?a:{enumerable:!0,get:function(){return e[o]}})}),i}var jsxRuntime={exports:{}},reactJsxRuntime_production_min={},react={exports:{}},react_production_min={};/** 3 * @license React 4 * react.production.min.js 5 * 6 * Copyright (c) Facebook, Inc. and its affiliates. 7 * 8 * This source code is licensed under the MIT license found in the 9 * LICENSE file in the root directory of this source tree. 10 */var l$1=Symbol.for("react.element"),n$1=Symbol.for("react.portal"),p$2=Symbol.for("react.fragment"),q$1=Symbol.for("react.strict_mode"),r$1=Symbol.for("react.profiler"),t=Symbol.for("react.provider"),u=Symbol.for("react.context"),v$2=Symbol.for("react.forward_ref"),w=Symbol.for("react.suspense"),x=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),z$1=Symbol.iterator;function A$1(e){return e===null||typeof e!="object"?null:(e=z$1&&e[z$1]||e["@@iterator"],typeof e=="function"?e:null)}var B$1={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},C$1=Object.assign,D$2={};function E$2(e,s,i){this.props=e,this.context=s,this.refs=D$2,this.updater=i||B$1}E$2.prototype.isReactComponent={};E$2.prototype.setState=function(e,s){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,s,"setState")};E$2.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function F(){}F.prototype=E$2.prototype;function G$1(e,s,i){this.props=e,this.context=s,this.refs=D$2,this.updater=i||B$1}var H$1=G$1.prototype=new F;H$1.constructor=G$1;C$1(H$1,E$2.prototype);H$1.isPureReactComponent=!0;var I$1=Array.isArray,J=Object.prototype.hasOwnProperty,K$1={current:null},L$2={key:!0,ref:!0,__self:!0,__source:!0};function M$2(e,s,i){var o,a={},c=null,d=null;if(s!=null)for(o in s.ref!==void 0&&(d=s.ref),s.key!==void 0&&(c=""+s.key),s)J.call(s,o)&&!L$2.hasOwnProperty(o)&&(a[o]=s[o]);var h=arguments.length-2;if(h===1)a.children=i;else if(1<h){for(var g=Array(h),b=0;b<h;b++)g[b]=arguments[b+2];a.children=g}if(e&&e.defaultProps)for(o in h=e.defaultProps,h)a[o]===void 0&&(a[o]=h[o]);return{$$typeof:l$1,type:e,key:c,ref:d,props:a,_owner:K$1.current}}function N$1(e,s){return{$$typeof:l$1,type:e.type,key:s,ref:e.ref,props:e.props,_owner:e._owner}}function O$1(e){return typeof e=="object"&&e!==null&&e.$$typeof===l$1}function escape$1(e){var s={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(i){return s[i]})}var P$2=/\/+/g;function Q$1(e,s){return typeof e=="object"&&e!==null&&e.key!=null?escape$1(""+e.key):s.toString(36)}function R$1(e,s,i,o,a){var c=typeof e;(c==="undefined"||c==="boolean")&&(e=null);var d=!1;if(e===null)d=!0;else switch(c){case"string":case"number":d=!0;break;case"object":switch(e.$$typeof){case l$1:case n$1:d=!0}}if(d)return d=e,a=a(d),e=o===""?"."+Q$1(d,0):o,I$1(a)?(i="",e!=null&&(i=e.replace(P$2,"$&/")+"/"),R$1(a,s,i,"",function(b){return b})):a!=null&&(O$1(a)&&(a=N$1(a,i+(!a.key||d&&d.key===a.key?"":(""+a.key).replace(P$2,"$&/")+"/")+e)),s.push(a)),1;if(d=0,o=o===""?".":o+":",I$1(e))for(var h=0;h<e.length;h++){c=e[h];var g=o+Q$1(c,h);d+=R$1(c,s,i,g,a)}else if(g=A$1(e),typeof g=="function")for(e=g.call(e),h=0;!(c=e.next()).done;)c=c.value,g=o+Q$1(c,h++),d+=R$1(c,s,i,g,a);else if(c==="object")throw s=String(e),Error("Objects are not valid as a React child (found: "+(s==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":s)+"). If you meant to render a collection of children, use an array instead.");return d}function S$1(e,s,i){if(e==null)return e;var o=[],a=0;return R$1(e,o,"","",function(c){return s.call(i,c,a++)}),o}function T$1(e){if(e._status===-1){var s=e._result;s=s(),s.then(function(i){(e._status===0||e._status===-1)&&(e._status=1,e._result=i)},function(i){(e._status===0||e._status===-1)&&(e._status=2,e._result=i)}),e._status===-1&&(e._status=0,e._result=s)}if(e._status===1)return e._result.default;throw e._result}var U$1={current:null},V$1={transition:null},W$1={ReactCurrentDispatcher:U$1,ReactCurrentBatchConfig:V$1,ReactCurrentOwner:K$1};function X$2(){throw Error("act(...) is not supported in production builds of React.")}react_production_min.Children={map:S$1,forEach:function(e,s,i){S$1(e,function(){s.apply(this,arguments)},i)},count:function(e){var s=0;return S$1(e,function(){s++}),s},toArray:function(e){return S$1(e,function(s){return s})||[]},only:function(e){if(!O$1(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};react_production_min.Component=E$2;react_production_min.Fragment=p$2;react_production_min.Profiler=r$1;react_production_min.PureComponent=G$1;react_production_min.StrictMode=q$1;react_production_min.Suspense=w;react_production_min.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=W$1;react_production_min.act=X$2;react_production_min.cloneElement=function(e,s,i){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var o=C$1({},e.props),a=e.key,c=e.ref,d=e._owner;if(s!=null){if(s.ref!==void 0&&(c=s.ref,d=K$1.current),s.key!==void 0&&(a=""+s.key),e.type&&e.type.defaultProps)var h=e.type.defaultProps;for(g in s)J.call(s,g)&&!L$2.hasOwnProperty(g)&&(o[g]=s[g]===void 0&&h!==void 0?h[g]:s[g])}var g=arguments.length-2;if(g===1)o.children=i;else if(1<g){h=Array(g);for(var b=0;b<g;b++)h[b]=arguments[b+2];o.children=h}return{$$typeof:l$1,type:e.type,key:a,ref:c,props:o,_owner:d}};react_production_min.createContext=function(e){return e={$$typeof:u,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:t,_context:e},e.Consumer=e};react_production_min.createElement=M$2;react_production_min.createFactory=function(e){var s=M$2.bind(null,e);return s.type=e,s};react_production_min.createRef=function(){return{current:null}};react_production_min.forwardRef=function(e){return{$$typeof:v$2,render:e}};react_production_min.isValidElement=O$1;react_production_min.lazy=function(e){return{$$typeof:y,_payload:{_status:-1,_result:e},_init:T$1}};react_production_min.memo=function(e,s){return{$$typeof:x,type:e,compare:s===void 0?null:s}};react_production_min.startTransition=function(e){var s=V$1.transition;V$1.transition={};try{e()}finally{V$1.transition=s}};react_production_min.unstable_act=X$2;react_production_min.useCallback=function(e,s){return U$1.current.useCallback(e,s)};react_production_min.useContext=function(e){return U$1.current.useContext(e)};react_production_min.useDebugValue=function(){};react_production_min.useDeferredValue=function(e){return U$1.current.useDeferredValue(e)};react_production_min.useEffect=function(e,s){return U$1.current.useEffect(e,s)};react_production_min.useId=function(){return U$1.current.useId()};react_production_min.useImperativeHandle=function(e,s,i){return U$1.current.useImperativeHandle(e,s,i)};react_production_min.useInsertionEffect=function(e,s){return U$1.current.useInsertionEffect(e,s)};react_production_min.useLayoutEffect=function(e,s){return U$1.current.useLayoutEffect(e,s)};react_production_min.useMemo=function(e,s){return U$1.current.useMemo(e,s)};react_production_min.useReducer=function(e,s,i){return U$1.current.useReducer(e,s,i)};react_production_min.useRef=function(e){return U$1.current.useRef(e)};react_production_min.useState=function(e){return U$1.current.useState(e)};react_production_min.useSyncExternalStore=function(e,s,i){return U$1.current.useSyncExternalStore(e,s,i)};react_production_min.useTransition=function(){return U$1.current.useTransition()};react_production_min.version="18.3.1";react.exports=react_production_min;var reactExports=react.exports;const React$1=getDefaultExportFromCjs(reactExports),React$2=_mergeNamespaces({__proto__:null,default:React$1},[reactExports]);/** 11 * @license React 12 * react-jsx-runtime.production.min.js 13 * 14 * Copyright (c) Facebook, Inc. and its affiliates. 15 * 16 * This source code is licensed under the MIT license found in the 17 * LICENSE file in the root directory of this source tree. 18 */var f=reactExports,k=Symbol.for("react.element"),l=Symbol.for("react.fragment"),m$1=Object.prototype.hasOwnProperty,n=f.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,p$1={key:!0,ref:!0,__self:!0,__source:!0};function q(e,s,i){var o,a={},c=null,d=null;i!==void 0&&(c=""+i),s.key!==void 0&&(c=""+s.key),s.ref!==void 0&&(d=s.ref);for(o in s)m$1.call(s,o)&&!p$1.hasOwnProperty(o)&&(a[o]=s[o]);if(e&&e.defaultProps)for(o in s=e.defaultProps,s)a[o]===void 0&&(a[o]=s[o]);return{$$typeof:k,type:e,key:c,ref:d,props:a,_owner:n.current}}reactJsxRuntime_production_min.Fragment=l;reactJsxRuntime_production_min.jsx=q;reactJsxRuntime_production_min.jsxs=q;jsxRuntime.exports=reactJsxRuntime_production_min;var jsxRuntimeExports=jsxRuntime.exports,reactDom={exports:{}},reactDom_production_min={}
vendor: 4,100 bytes, lines 18-26
18,scheduler={exports:{}},scheduler_production_min={};/** 19 * @license React 20 * scheduler.production.min.js 21 * 22 * Copyright (c) Facebook, Inc. and its affiliates. 23 * 24 * This source code is licensed under the MIT license found in the 25 * LICENSE file in the root directory of this source tree. 26 */(function(e){function s(ut,ht){var gt=ut.length;ut.push(ht);e:for(;0<gt;){var xt=gt-1>>>1,Rt=ut[xt];if(0<a(Rt,ht))ut[xt]=ht,ut[gt]=Rt,gt=xt;else break e}}function i(ut){return ut.length===0?null:ut[0]}function o(ut){if(ut.length===0)return null;var ht=ut[0],gt=ut.pop();if(gt!==ht){ut[0]=gt;e:for(var xt=0,Rt=ut.length,Tt=Rt>>>1;xt<Tt;){var It=2*(xt+1)-1,Lt=ut[It],$t=It+1,Bt=ut[$t];if(0>a(Lt,gt))$t<Rt&&0>a(Bt,Lt)?(ut[xt]=Bt,ut[$t]=gt,xt=$t):(ut[xt]=Lt,ut[It]=gt,xt=It);else if($t<Rt&&0>a(Bt,gt))ut[xt]=Bt,ut[$t]=gt,xt=$t;else break e}}return ht}function a(ut,ht){var gt=ut.sortIndex-ht.sortIndex;return gt!==0?gt:ut.id-ht.id}if(typeof performance=="object"&&typeof performance.now=="function"){var c=performance;e.unstable_now=function(){return c.now()}}else{var d=Date,h=d.now();e.unstable_now=function(){return d.now()-h}}var g=[],b=[],_=1,_e=null,$=3,et=!1,it=!1,rt=!1,lt=typeof setTimeout=="function"?setTimeout:null,st=typeof clearTimeout=="function"?clearTimeout:null,ot=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function nt(ut){for(var ht=i(b);ht!==null;){if(ht.callback===null)o(b);else if(ht.startTime<=ut)o(b),ht.sortIndex=ht.expirationTime,s(g,ht);else break;ht=i(b)}}function at(ut){if(rt=!1,nt(ut),!it)if(i(g)!==null)it=!0,ft(ct);else{var ht=i(b);ht!==null&&Et(at,ht.startTime-ut)}}function ct(ut,ht){it=!1,rt&&(rt=!1,st(mt),mt=-1),et=!0;var gt=$;try{for(nt(ht),_e=i(g);_e!==null&&(!(_e.expirationTime>ht)||ut&&!Mt());){var xt=_e.callback;if(typeof xt=="function"){_e.callback=null,$=_e.priorityLevel;var Rt=xt(_e.expirationTime<=ht);ht=e.unstable_now(),typeof Rt=="function"?_e.callback=Rt:_e===i(g)&&o(g),nt(ht)}else o(g);_e=i(g)}if(_e!==null)var Tt=!0;else{var It=i(b);It!==null&&Et(at,It.startTime-ht),Tt=!1}return Tt}finally{_e=null,$=gt,et=!1}}var dt=!1,pt=null,mt=-1,St=5,Pt=-1;function Mt(){return!(e.unstable_now()-Pt<St)}function Ct(){if(pt!==null){var ut=e.unstable_now();Pt=ut;var ht=!0;try{ht=pt(!0,ut)}finally{ht?Nt():(dt=!1,pt=null)}}else dt=!1}var Nt;if(typeof ot=="function")Nt=function(){ot(Ct)};else if(typeof MessageChannel<"u"){var kt=new MessageChannel,At=kt.port2;kt.port1.onmessage=Ct,Nt=function(){At.postMessage(null)}}else Nt=function(){lt(Ct,0)};function ft(ut){pt=ut,dt||(dt=!0,Nt())}function Et(ut,ht){mt=lt(function(){ut(e.unstable_now())},ht)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(ut){ut.callback=null},e.unstable_continueExecution=function(){it||et||(it=!0,ft(ct))},e.unstable_forceFrameRate=function(ut){0>ut||125<ut?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):St=0<ut?Math.floor(1e3/ut):5},e.unstable_getCurrentPriorityLevel=function(){return $},e.unstable_getFirstCallbackNode=function(){return i(g)},e.unstable_next=function(ut){switch($){case 1:case 2:case 3:var ht=3;break;default:ht=$}var gt=$;$=ht;try{return ut()}finally{$=gt}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(ut,ht){switch(ut){case 1:case 2:case 3:case 4:case 5:break;default:ut=3}var gt=$;$=ut;try{return ht()}finally{$=gt}},e.unstable_scheduleCallback=function(ut,ht,gt){var xt=e.unstable_now();switch(typeof gt=="object"&>!==null?(gt=gt.delay,gt=typeof gt=="number"&&0<gt?xt+gt:xt):gt=xt,ut){case 1:var Rt=-1;break;case 2:Rt=250;break;case 5:Rt=1073741823;break;case 4:Rt=1e4;break;default:Rt=5e3}return Rt=gt+Rt,ut={id:_++,callback:ht,priorityLevel:ut,startTime:gt,expirationTime:Rt,sortIndex:-1},gt>
vendor: 4,652 bytes, lines 26-34
26xt?(ut.sortIndex=gt,s(b,ut),i(g)===null&&ut===i(b)&&(rt?(st(mt),mt=-1):rt=!0,Et(at,gt-xt))):(ut.sortIndex=Rt,s(g,ut),it||et||(it=!0,ft(ct))),ut},e.unstable_shouldYield=Mt,e.unstable_wrapCallback=function(ut){var ht=$;return function(){var gt=$;$=ht;try{return ut.apply(this,arguments)}finally{$=gt}}}})(scheduler_production_min);scheduler.exports=scheduler_production_min;var schedulerExports=scheduler.exports;/** 27 * @license React 28 * react-dom.production.min.js 29 * 30 * Copyright (c) Facebook, Inc. and its affiliates. 31 * 32 * This source code is licensed under the MIT license found in the 33 * LICENSE file in the root directory of this source tree. 34 */var aa=reactExports,ca=schedulerExports;function p(e){for(var s="https://reactjs.org/docs/error-decoder.html?invariant="+e,i=1;i<arguments.length;i++)s+="&args[]="+encodeURIComponent(arguments[i]);return"Minified React error #"+e+"; visit "+s+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var da=new Set,ea={};function fa(e,s){ha(e,s),ha(e+"Capture",s)}function ha(e,s){for(ea[e]=s,e=0;e<s.length;e++)da.add(s[e])}var ia=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),ja$1=Object.prototype.hasOwnProperty,ka=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,la={},ma={};function oa(e){return ja$1.call(ma,e)?!0:ja$1.call(la,e)?!1:ka.test(e)?ma[e]=!0:(la[e]=!0,!1)}function pa(e,s,i,o){if(i!==null&&i.type===0)return!1;switch(typeof s){case"function":case"symbol":return!0;case"boolean":return o?!1:i!==null?!i.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function qa(e,s,i,o){if(s===null||typeof s>"u"||pa(e,s,i,o))return!0;if(o)return!1;if(i!==null)switch(i.type){case 3:return!s;case 4:return s===!1;case 5:return isNaN(s);case 6:return isNaN(s)||1>s}return!1}function v$1(e,s,i,o,a,c,d){this.acceptsBooleans=s===2||s===3||s===4,this.attributeName=o,this.attributeNamespace=a,this.mustUseProperty=i,this.propertyName=e,this.type=s,this.sanitizeURL=c,this.removeEmptyString=d}var z={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){z[e]=new v$1(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var s=e[0];z[s]=new v$1(s,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){z[e]=new v$1(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){z[e]=new v$1(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){z[e]=new v$1(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){z[e]=new v$1(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){z[e]=new v$1(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){z[e]=new v$1(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){z[e]=new v$1(e,5,!1,e.toLowerCase(),null,!1,!1)});var ra=/[\-:]([a-z])/g;function sa(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode
34-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var s=e.replace(ra,sa);z[s]=new v$1(s,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var s=e.replace(ra,sa);z[s]=new v$1(s,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var s=e.replace(ra,sa);z[s]=new v$1(s,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){z[e]=new v$1(e,1,!1,e.toLowerCase(),null,!1,!1)});z.xlinkHref=new v$1("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){z[e]=new v$1(e,1,!1,e.toLowerCase(),null,!0,!0)});function ta(e,s,i,o){var a=z.hasOwnProperty(s)?z[s]:null;(a!==null?a.type!==0:o||!(2<s.length)||s[0]!=="o"&&s[0]!=="O"||s[1]!=="n"&&s[1]!=="N")&&(qa(s,i,a,o)&&(i=null),o||a===null?oa(s)&&(i===null?e.removeAttribute(s):e.setAttribute(s,""+i)):a.mustUseProperty?e[a.propertyName]=i===null?a.type===3?!1:"":i:(s=a.attributeName,o=a.attributeNamespace,i===null?e.removeAttribute(s):(a=a.type,i=a===3||a===4&&i===!0?"":""+i,o?e.setAttributeNS(o,s,i):e.setAttribute(s,i))))}var ua=aa.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,va=Symbol.for("react.element"),wa=Symbol.for("react.portal"),ya=Symbol.for("react.fragment"),za=Symbol.for("react.strict_mode"),Aa=Symbol.for("react.profiler"),Ba=Symbol.for("react.provider"),Ca=Symbol.for("react.context"),Da=Symbol.for("react.forward_ref"),Ea=Symbol.for("react.suspense"),Fa=Symbol.for("react.suspense_list"),Ga=Symbol.for("react.memo"),Ha=Symbol.for("react.lazy"),Ia=Symbol.for("react.offscreen"),Ja=Symbol.iterator;function Ka(e){return e===null||typeof e!="object"?null:(e=Ja&&e[Ja]||e["@@iterator"],typeof e=="function"?e:null)}var A=Object.assign,La;function Ma(e){if(La===void 0)try{throw Error()}catch(i){var s=i.stack.trim().match(/\n( *(at )?)/);La=s&&s[1]||""}return` 35`+La+e}var Na=!1;function Oa(e,s){if(!e||Na)return"";Na=!0;var i=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(s)if(s=function(){throw Error()},Object.defineProperty(s.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(s,[])}catch(b){var o=b}Reflect.construct(e,[],s)}else{try{s.call()}catch(b){o=b}e.call(s.prototype)}else{try{throw Error()}catch(b){o=b}e()}}catch(b){if(b&&o&&typeof b.stack=="string"){for(var a=b.stack.split(` 36`),c=o.stack.split(` 37`),d=a.length-1,h=c.length-1;1<=d&&0<=h&&a[d]!==c[h];)h--;for(;1<=d&&0<=h;d--,h--)if(a[d]!==c[h]){if(d!==1||h!==1)do if(d--,h--,0>h||a[d]!==c[h]){var g=` 38`+a[d].replace(" at new "," at ");return e.displayName&&g.includes("<anonymous>")&&(g=g.replace("<anonymous>",e.displayName)),g}while(1<=d&&0<=h);break}}}finally{Na=!1,Error.prepareStackTrace=i}return(e=e?e.displayName||e.name:"")?Ma(e):""}function Pa(e){switch(e.tag){case 5:return Ma(e.type);case 16:return Ma("Lazy");case 13:return Ma("Suspense");case 19:return Ma("SuspenseList");case 0:case 2:case 15:return e=Oa(e.type,!1),e;case 11:return e=Oa(e.type.render,!1),e;case 1:return e=Oa(e.type,!0),e;default:return""}}function Qa(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case ya:return"Fragment";case wa:return"Portal";case Aa:return"Profiler";case za:return"StrictMode";case Ea:return"Suspense";case Fa:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Ca:return(e.displayName||"Context")+".Consumer";case Ba:return(e._context.displayName||"Context")+".Provider";case Da:var s=e.render;return e=e.displayName,e||(e=s.displayName||s.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Ga:return s=e.displayName||null,s!==null?s:Qa(e.type)||"Memo";case Ha:s=e._payload,e=e._init;try{return Qa(e(s))}catch{}}return null}function Ra(e){var s=e.type;switch(e.tag){case 24:return"Cache";case 9:return(s.displayName||"Context")+".Consumer";case 10:return(s._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=s.render,e=e.displayName||e.name||"",s.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return s;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Qa(s);case 8:return s===za?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof s=="function")return s.displayName||s.name||null;if(typeof s=="string")return s}return null}function Sa(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Ta(e){var s=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(s==="checkbox"||s==="radio")}function Ua(e){var s=Ta(e)?"checked":"value",i=Object.getOwnPropertyDescriptor(e.constructor.prototype,s),o=""+e[s];if(!e.hasOwnProperty(s)&&typeof i<"u"&&typeof i.get=="function"&&typeof i.set=="function"){var a=i.get,c=i.set;return Object.defineProperty(e,s,{configurable:!0,get:function(){return a.call(this)},set:function(d){o=""+d,c.call(this,d)}}),Object.defineProperty(e,s,{enumerable:i.enumerable}),{getValue:function(){return o},setValue:function(d){o=""+d},stopTracking:function(){e._valueTracker=null,delete e[s]}}}}function Va(e){e._valueTracker||(e._valueTracker=Ua(e))}function Wa(e){if(!e)return!1;var s=e._valueTracker;if(!s)return!0;var i=s.getValue(),o="";return e&&(o=Ta(e)?e.checked?"true":"false":e.value),e=o,e!==i?(s.setValue(e),!0):!1}function Xa(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function Ya(e,s){var i=s.checked;return A({},s,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:i??e._wrapperState.initialChecked})}function Za(e,s){var i=s.defaultValue==null?"":s.defaultValue,o=s.checked!=null?s.checked:s.defaultChecked;i=Sa(s.value!=null?s.value:i),e._wrapperState={initialChecked:o,initialValue:i,controlled:s.type==="checkbox"||s.type==="radio"?s.checked!=null:s.value!=null}}
vendor: 4,651 bytes, line 38
38function ab(e,s){s=s.checked,s!=null&&ta(e,"checked",s,!1)}function bb(e,s){ab(e,s);var i=Sa(s.value),o=s.type;if(i!=null)o==="number"?(i===0&&e.value===""||e.value!=i)&&(e.value=""+i):e.value!==""+i&&(e.value=""+i);else if(o==="submit"||o==="reset"){e.removeAttribute("value");return}s.hasOwnProperty("value")?cb(e,s.type,i):s.hasOwnProperty("defaultValue")&&cb(e,s.type,Sa(s.defaultValue)),s.checked==null&&s.defaultChecked!=null&&(e.defaultChecked=!!s.defaultChecked)}function db$1(e,s,i){if(s.hasOwnProperty("value")||s.hasOwnProperty("defaultValue")){var o=s.type;if(!(o!=="submit"&&o!=="reset"||s.value!==void 0&&s.value!==null))return;s=""+e._wrapperState.initialValue,i||s===e.value||(e.value=s),e.defaultValue=s}i=e.name,i!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,i!==""&&(e.name=i)}function cb(e,s,i){(s!=="number"||Xa(e.ownerDocument)!==e)&&(i==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+i&&(e.defaultValue=""+i))}var eb=Array.isArray;function fb(e,s,i,o){if(e=e.options,s){s={};for(var a=0;a<i.length;a++)s["$"+i[a]]=!0;for(i=0;i<e.length;i++)a=s.hasOwnProperty("$"+e[i].value),e[i].selected!==a&&(e[i].selected=a),a&&o&&(e[i].defaultSelected=!0)}else{for(i=""+Sa(i),s=null,a=0;a<e.length;a++){if(e[a].value===i){e[a].selected=!0,o&&(e[a].defaultSelected=!0);return}s!==null||e[a].disabled||(s=e[a])}s!==null&&(s.selected=!0)}}function gb(e,s){if(s.dangerouslySetInnerHTML!=null)throw Error(p(91));return A({},s,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function hb(e,s){var i=s.value;if(i==null){if(i=s.children,s=s.defaultValue,i!=null){if(s!=null)throw Error(p(92));if(eb(i)){if(1<i.length)throw Error(p(93));i=i[0]}s=i}s==null&&(s=""),i=s}e._wrapperState={initialValue:Sa(i)}}function ib(e,s){var i=Sa(s.value),o=Sa(s.defaultValue);i!=null&&(i=""+i,i!==e.value&&(e.value=i),s.defaultValue==null&&e.defaultValue!==i&&(e.defaultValue=i)),o!=null&&(e.defaultValue=""+o)}function jb(e){var s=e.textContent;s===e._wrapperState.initialValue&&s!==""&&s!==null&&(e.value=s)}function kb(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function lb(e,s){return e==null||e==="http://www.w3.org/1999/xhtml"?kb(s):e==="http://www.w3.org/2000/svg"&&s==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var mb,nb=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(s,i,o,a){MSApp.execUnsafeLocalFunction(function(){return e(s,i,o,a)})}:e}(function(e,s){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=s;else{for(mb=mb||document.createElement("div"),mb.innerHTML="<svg>"+s.valueOf().toString()+"</svg>",s=mb.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;s.firstChild;)e.appendChild(s.firstChild)}});function ob(e,s){if(s){var i=e.firstChild;if(i&&i===e.lastChild&&i.nodeType===3){i.nodeValue=s;return}}e.textContent=s}var pb={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},qb=["Webkit","ms","Moz","O"];Object.keys(pb).forEach(function(e){qb.forEach(function(s){s=s+e.charAt(0).toUpperCase()+e.substring(1),pb[s]=pb[e]})});function rb(e,s,i){return s==null||typeof s=="boolean"||s===""?"":i||typeof s!="number"||s===0||pb.hasOwnProperty(e)&&pb[e]?(""+s).trim():s+"px"}function sb(e,s){e=e.style;for(var i in s)if(s.hasOwnProperty(i)){var o=i.indexOf("--")===0,a=rb(i,s[i],o);i==="float"&&(i="cssFloat"),o?e.setProperty(i,a):e[i]=a}}var tb=A({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function ub(e,s){if(s){if(tb[e]&&(s.children!=null||s.dangerouslySetInnerHTML!=null))throw Error(p(137,e));if(s.dangerouslySetInnerHTML!=null){if(s.children!=null)throw Error(p(60));if(typeof s.dangerouslySetInnerHTML!="object"||!("__html"in s.dangerouslySetInnerHTML))throw Error(p(61))}if(s.style!=null&&typeof s.style!="object")throw Error(p(62))}}function vb(e,s){if(e.indexOf("-")===-1)return typeof s.is=="str
38ing";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var wb=null;function xb(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var yb=null,zb=null,Ab=null;function Bb(e){if(e=Cb(e)){if(typeof yb!="function")throw Error(p(280));var s=e.stateNode;s&&(s=Db(s),yb(e.stateNode,e.type,s))}}function Eb(e){zb?Ab?Ab.push(e):Ab=[e]:zb=e}function Fb(){if(zb){var e=zb,s=Ab;if(Ab=zb=null,Bb(e),s)for(e=0;e<s.length;e++)Bb(s[e])}}function Gb(e,s){return e(s)}function Hb(){}var Ib=!1;function Jb(e,s,i){if(Ib)return e(s,i);Ib=!0;try{return Gb(e,s,i)}finally{Ib=!1,(zb!==null||Ab!==null)&&(Hb(),Fb())}}function Kb(e,s){var i=e.stateNode;if(i===null)return null;var o=Db(i);if(o===null)return null;i=o[s];e:switch(s){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(o=!o.disabled)||(e=e.type,o=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!o;break e;default:e=!1}if(e)return null;if(i&&typeof i!="function")throw Error(p(231,s,typeof i));return i}var Lb=!1;if(ia)try{var Mb={};Object.defineProperty(Mb,"passive",{get:function(){Lb=!0}}),window.addEventListener("test",Mb,Mb),window.removeEventListener("test",Mb,Mb)}catch{Lb=!1}function Nb(e,s,i,o,a,c,d,h,g){var b=Array.prototype.slice.call(arguments,3);try{s.apply(i,b)}catch(_){this.onError(_)}}var Ob=!1,Pb=null,Qb=!1,Rb=null,Sb={onError:function(e){Ob=!0,Pb=e}};function Tb(e,s,i,o,a,c,d,h,g){Ob=!1,Pb=null,Nb.apply(Sb,arguments)}function Ub(e,s,i,o,a,c,d,h,g){if(Tb.apply(this,arguments),Ob){if(Ob){var b=Pb;Ob=!1,Pb=null}else throw Error(p(198));Qb||(Qb=!0,Rb=b)}}function Vb(e){var s=e,i=e;if(e.alternate)for(;s.return;)s=s.return;else{e=s;do s=e,s.flags&4098&&(i=s.return),e=s.return;while(e)}return s.tag===3?i:null}function Wb(e){if(e.tag===13){var s=e.memoizedState;if(s===null&&(e=e.alternate,e!==null&&(s=e.memoizedState)),s!==null)return s.dehydrated}return null}function Xb(e){if(Vb(e)!==e)throw Error(p(188))}function Yb(e){var s=e.alternate;if(!s){if(s=Vb(e),s===null)throw Error(p(188));return s!==e?null:e}for(var i=e,o=s;;){var a=i.return;if(a===null)break;var c=a.alternate;if(c===null){if(o=a.return,o!==null){i=o;continue}break}if(a.child===c.child){for(c=a.child;c;){if(c===i)return Xb(a),e;if(c===o)return Xb(a),s;c=c.sibling}throw Error(p(188))}if(i.return!==o.return)i=a,o=c;else{for(var d=!1,h=a.child;h;){if(h===i){d=!0,i=a,o=c;break}if(h===o){d=!0,o=a,i=c;break}h=h.sibling}if(!d){for(h=c.child;h;){if(h===i){d=!0,i=c,o=a;break}if(h===o){d=!0,o=c,i=a;break}h=h.sibling}if(!d)throw Error(p(189))}}if(i.alternate!==o)throw Error(p(190))}if(i.tag!==3)throw Error(p(188));return i.stateNode.current===i?e:s}function Zb(e){return e=Yb(e),e!==null?$b(e):null}function $b(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var s=$b(e);if(s!==null)return s;e=e.sibling}return null}var ac=ca.unstable_scheduleCallback,bc=ca.unstable_cancelCallback,cc=ca.unstable_shouldYield,dc=ca.unstable_requestPaint,B=ca.unstable_now,ec=ca.unstable_getCurrentPriorityLevel,fc=ca.unstable_ImmediatePriority,gc=ca.unstable_UserBlockingPriority,hc=ca.unstable_NormalPriority,ic=ca.unstable_LowPriority,jc=ca.unstable_IdlePriority,kc=null,lc=null;function mc(e){if(lc&&typeof lc.onCommitFiberRoot=="function")try{lc.onCommitFiberRoot(kc,e,void 0,(e.current.flags&128)===128)}catch{}}var oc=Math.clz32?Math.clz32:nc,pc=Math.log,qc=Math.LN2;function nc(e){return e>>>=0,e===0?32:31-(pc(e)/qc|0)|0}var rc=64,sc=4194304;function tc(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function uc(e,s){var i=e.pendingLanes;if(i===0)return 0;var o=0,a=e.suspendedLanes,c=e.pingedLanes,d=i&268435455;if(d!==0){var h=d&~a;h!==0?o=tc(h):(c&=d,c!==0&&(o=tc(c)))}else d=i&~a,d!==0?o=tc(d):c!==0&&(o=tc(c));if(o===0)return 0;if(s!==0&&s!==o&&!(s&a)&&(a=o&-o,c=s&-s,a>=c||a===16&&(c&4194240)!==0))return s;if(o&4&&(o|=i&16),s=e.entangledLanes,s!==0)for(e=e.entanglements,s&=o;0<s;)i=31-oc(s),a=1<<i,o|=e[i],s&=~a;return o}
vendor: 3,487 bytes, line 38
38function vc(e,s){switch(e){case 1:case 2:case 4:return s+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return s+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function wc(e,s){for(var i=e.suspendedLanes,o=e.pingedLanes,a=e.expirationTimes,c=e.pendingLanes;0<c;){var d=31-oc(c),h=1<<d,g=a[d];g===-1?(!(h&i)||h&o)&&(a[d]=vc(h,s)):g<=s&&(e.expiredLanes|=h),c&=~h}}function xc(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function yc(){var e=rc;return rc<<=1,!(rc&4194240)&&(rc=64),e}function zc(e){for(var s=[],i=0;31>i;i++)s.push(e);return s}function Ac(e,s,i){e.pendingLanes|=s,s!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,s=31-oc(s),e[s]=i}function Bc(e,s){var i=e.pendingLanes&~s;e.pendingLanes=s,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=s,e.mutableReadLanes&=s,e.entangledLanes&=s,s=e.entanglements;var o=e.eventTimes;for(e=e.expirationTimes;0<i;){var a=31-oc(i),c=1<<a;s[a]=0,o[a]=-1,e[a]=-1,i&=~c}}function Cc(e,s){var i=e.entangledLanes|=s;for(e=e.entanglements;i;){var o=31-oc(i),a=1<<o;a&s|e[o]&s&&(e[o]|=s),i&=~a}}var C=0;function Dc(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var Ec,Fc,Gc,Hc,Ic,Jc=!1,Kc=[],Lc=null,Mc=null,Nc=null,Oc=new Map,Pc=new Map,Qc=[],Rc="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function Sc(e,s){switch(e){case"focusin":case"focusout":Lc=null;break;case"dragenter":case"dragleave":Mc=null;break;case"mouseover":case"mouseout":Nc=null;break;case"pointerover":case"pointerout":Oc.delete(s.pointerId);break;case"gotpointercapture":case"lostpointercapture":Pc.delete(s.pointerId)}}function Tc(e,s,i,o,a,c){return e===null||e.nativeEvent!==c?(e={blockedOn:s,domEventName:i,eventSystemFlags:o,nativeEvent:c,targetContainers:[a]},s!==null&&(s=Cb(s),s!==null&&Fc(s)),e):(e.eventSystemFlags|=o,s=e.targetContainers,a!==null&&s.indexOf(a)===-1&&s.push(a),e)}function Uc(e,s,i,o,a){switch(s){case"focusin":return Lc=Tc(Lc,e,s,i,o,a),!0;case"dragenter":return Mc=Tc(Mc,e,s,i,o,a),!0;case"mouseover":return Nc=Tc(Nc,e,s,i,o,a),!0;case"pointerover":var c=a.pointerId;return Oc.set(c,Tc(Oc.get(c)||null,e,s,i,o,a)),!0;case"gotpointercapture":return c=a.pointerId,Pc.set(c,Tc(Pc.get(c)||null,e,s,i,o,a)),!0}return!1}function Vc(e){var s=Wc(e.target);if(s!==null){var i=Vb(s);if(i!==null){if(s=i.tag,s===13){if(s=Wb(i),s!==null){e.blockedOn=s,Ic(e.priority,function(){Gc(i)});return}}else if(s===3&&i.stateNode.current.memoizedState.isDehydrated){e.blockedOn=i.tag===3?i.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Xc(e){if(e.blockedOn!==null)return!1;for(var s=e.targetContainers;0<s.length;){var i=Yc(e.domEventName,e.eventSystemFlags,s[0],e.nativeEvent);if(i===null){i=e.nativeEvent;var o=new i.constructor(i.type,i);wb=o,i.target.dispatchEvent(o),wb=null}else return s=Cb(i),s!==null&&Fc(s),e.blockedOn=i,!1;s.shift()}return!0}function Zc(e,s,i){Xc(e)&&i.delete(s)}function $c(){Jc=!1,Lc!==null&&Xc(Lc)&&(Lc=null),Mc!==null&&Xc(Mc)&&(Mc=null),Nc!==null&&Xc(Nc)&&(Nc=null),Oc.forEac
vendor: 2,731 bytes, line 38
38h(Zc),Pc.forEach(Zc)}function ad(e,s){e.blockedOn===s&&(e.blockedOn=null,Jc||(Jc=!0,ca.unstable_scheduleCallback(ca.unstable_NormalPriority,$c)))}function bd(e){function s(a){return ad(a,e)}if(0<Kc.length){ad(Kc[0],e);for(var i=1;i<Kc.length;i++){var o=Kc[i];o.blockedOn===e&&(o.blockedOn=null)}}for(Lc!==null&&ad(Lc,e),Mc!==null&&ad(Mc,e),Nc!==null&&ad(Nc,e),Oc.forEach(s),Pc.forEach(s),i=0;i<Qc.length;i++)o=Qc[i],o.blockedOn===e&&(o.blockedOn=null);for(;0<Qc.length&&(i=Qc[0],i.blockedOn===null);)Vc(i),i.blockedOn===null&&Qc.shift()}var cd=ua.ReactCurrentBatchConfig,dd=!0;function ed(e,s,i,o){var a=C,c=cd.transition;cd.transition=null;try{C=1,fd(e,s,i,o)}finally{C=a,cd.transition=c}}function gd(e,s,i,o){var a=C,c=cd.transition;cd.transition=null;try{C=4,fd(e,s,i,o)}finally{C=a,cd.transition=c}}function fd(e,s,i,o){if(dd){var a=Yc(e,s,i,o);if(a===null)hd(e,s,o,id,i),Sc(e,o);else if(Uc(a,e,s,i,o))o.stopPropagation();else if(Sc(e,o),s&4&&-1<Rc.indexOf(e)){for(;a!==null;){var c=Cb(a);if(c!==null&&Ec(c),c=Yc(e,s,i,o),c===null&&hd(e,s,o,id,i),c===a)break;a=c}a!==null&&o.stopPropagation()}else hd(e,s,o,null,i)}}var id=null;function Yc(e,s,i,o){if(id=null,e=xb(o),e=Wc(e),e!==null)if(s=Vb(e),s===null)e=null;else if(i=s.tag,i===13){if(e=Wb(s),e!==null)return e;e=null}else if(i===3){if(s.stateNode.current.memoizedState.isDehydrated)return s.tag===3?s.stateNode.containerInfo:null;e=null}else s!==e&&(e=null);return id=e,null}function jd(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(ec()){case fc:return 1;case gc:return 4;case hc:case ic:return 16;case jc:return 536870912;default:return 16}default:return 16}}var kd=null,ld=null,md=null;
vendor: 6,645 bytes, line 38
38function nd(){if(md)return md;var e,s=ld,i=s.length,o,a="value"in kd?kd.value:kd.textContent,c=a.length;for(e=0;e<i&&s[e]===a[e];e++);var d=i-e;for(o=1;o<=d&&s[i-o]===a[c-o];o++);return md=a.slice(e,1<o?1-o:void 0)}function od(e){var s=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&s===13&&(e=13)):e=s,e===10&&(e=13),32<=e||e===13?e:0}function pd(){return!0}function qd(){return!1}function rd(e){function s(i,o,a,c,d){this._reactName=i,this._targetInst=a,this.type=o,this.nativeEvent=c,this.target=d,this.currentTarget=null;for(var h in e)e.hasOwnProperty(h)&&(i=e[h],this[h]=i?i(c):c[h]);return this.isDefaultPrevented=(c.defaultPrevented!=null?c.defaultPrevented:c.returnValue===!1)?pd:qd,this.isPropagationStopped=qd,this}return A(s.prototype,{preventDefault:function(){this.defaultPrevented=!0;var i=this.nativeEvent;i&&(i.preventDefault?i.preventDefault():typeof i.returnValue!="unknown"&&(i.returnValue=!1),this.isDefaultPrevented=pd)},stopPropagation:function(){var i=this.nativeEvent;i&&(i.stopPropagation?i.stopPropagation():typeof i.cancelBubble!="unknown"&&(i.cancelBubble=!0),this.isPropagationStopped=pd)},persist:function(){},isPersistent:pd}),s}var sd={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},td=rd(sd),ud=A({},sd,{view:0,detail:0}),vd=rd(ud),wd,xd,yd,Ad=A({},ud,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:zd,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==yd&&(yd&&e.type==="mousemove"?(wd=e.screenX-yd.screenX,xd=e.screenY-yd.screenY):xd=wd=0,yd=e),wd)},movementY:function(e){return"movementY"in e?e.movementY:xd}}),Bd=rd(Ad),Cd=A({},Ad,{dataTransfer:0}),Dd=rd(Cd),Ed=A({},ud,{relatedTarget:0}),Fd=rd(Ed),Gd=A({},sd,{animationName:0,elapsedTime:0,pseudoElement:0}),Hd=rd(Gd),Id=A({},sd,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Jd=rd(Id),Kd=A({},sd,{data:0}),Ld=rd(Kd),Md={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Nd={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},Od={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Pd(e){var s=this.nativeEvent;return s.getModifierState?s.getModifierState(e):(e=Od[e])?!!s[e]:!1}function zd(){return Pd}var Qd=A({},ud,{key:function(e){if(e.key){var s=Md[e.key]||e.key;if(s!=="Unidentified")return s}return e.type==="keypress"?(e=od(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Nd[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:zd,charCode:function(e){return e.type==="keypress"?od(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?od(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),Rd=rd(Qd),Sd=A({},Ad,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Td=rd(Sd),Ud=A({},ud,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:zd}),Vd=rd(Ud),Wd=A({},sd,{propertyName:0,elapsedTime:0,pseudoElement:0}),Xd=rd(Wd),Yd=A({},Ad,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),Zd=rd(Yd),$d=[9,13,27,32],ae$1=ia&&"CompositionEvent"in window,be$1=null;ia&&"documentMode"in document&&(be$1=document.documentMode);var ce$1=ia&&"TextEvent"in window&&!be$1,de$1=ia&&(!ae$1||be$1&&8<be$1&&11>=be$1),ee$1=" ",fe=!1;function ge$1(e,s){switch(e){case"keyup":return $d.indexOf(s.keyCode)!==-1;case"keydown":return s.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function he$1(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var ie$1=!1;function je(e,s){switch(e){case"compositionend":return he$1(s);case"keypress":return s.which!==32?null:(fe=!0,ee$1);case"textInput":return e=s.data,e===ee$1&&fe?null:e;default:return null}}function ke(e,s){if(ie$1)return e==="compositionend"||!ae$1&&ge$1(e,s)?(e=nd(),md=ld=kd=null,ie$1=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(s.ctrlKey||s.altKey||s.metaKey)||s.ctrlKey&&s.altKey){if(s.char&&1<s.char.length)return s.char;if(s.which)return String.fromCharCode(s.which)}return null;case"compositionend":return de$1&&s.locale!=="ko"?null:s.data;default:return null}}var le$1={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function me$1(e){var s=e&&e.nodeName&&e.nodeName.toLowerCase();return s==="input"?!!le$1[e.type]:s==="textarea"}function ne$1(e,s,i,o){Eb(o),s=oe$1(s,"onChange"),0<s.length&&(i=new td("onChange","change",null,i,o),e.push({event:i,listeners:s}))}var pe$1=null,qe=null;function re(e){se$1(e,0)}function te$1(e){var s=ue$1(e);if(Wa(s))return e}function ve$1(e,s){if(e==="change")return s}var we$1=!1;if(ia){var xe$1;if(ia){var ye$1="oninput"in document;if(!ye$1){var ze=document.createElement("div");ze.setAttribute("oninput","return;"),ye$1=typeof ze.oninput=="function"}xe$1=ye$1}else xe$1=!1;we$1=xe$1&&(!document.documentMode||9<document.documentMode)}function Ae(){pe$1&&(pe$1.detachEvent("onpropertychange",Be),qe=pe$1=null)}function Be(e){if(e.propertyName==="value"&&te$1(qe)){var s=[];ne$1(s,qe,e,xb(e)),Jb(re,s)}}function Ce(e,s,i){e==="focusin"?(Ae(),pe$1=s,qe=i,pe$1.attachEvent("onpropertychange",Be)):e==="focusout"&&Ae()}function De(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return te$1(qe)}function Ee(e,s){if(e==="click")return te$1(s)}function Fe(e,s){if(e==="input"||e==="change")return te$1(s)}function Ge(e,s){return e===s&&(e!==0||1/e===1/s)||e!==e&&s!==s}var He=typeof Object.is=="function"?Object.is:Ge;function Ie(e,s){if(He(e,s))return!0;
vendor: 13,957 bytes, lines 38-39
38if(typeof e!="object"||e===null||typeof s!="object"||s===null)return!1;var i=Object.keys(e),o=Object.keys(s);if(i.length!==o.length)return!1;for(o=0;o<i.length;o++){var a=i[o];if(!ja$1.call(s,a)||!He(e[a],s[a]))return!1}return!0}function Je(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Ke(e,s){var i=Je(e);e=0;for(var o;i;){if(i.nodeType===3){if(o=e+i.textContent.length,e<=s&&o>=s)return{node:i,offset:s-e};e=o}e:{for(;i;){if(i.nextSibling){i=i.nextSibling;break e}i=i.parentNode}i=void 0}i=Je(i)}}function Le(e,s){return e&&s?e===s?!0:e&&e.nodeType===3?!1:s&&s.nodeType===3?Le(e,s.parentNode):"contains"in e?e.contains(s):e.compareDocumentPosition?!!(e.compareDocumentPosition(s)&16):!1:!1}function Me(){for(var e=window,s=Xa();s instanceof e.HTMLIFrameElement;){try{var i=typeof s.contentWindow.location.href=="string"}catch{i=!1}if(i)e=s.contentWindow;else break;s=Xa(e.document)}return s}function Ne(e){var s=e&&e.nodeName&&e.nodeName.toLowerCase();return s&&(s==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||s==="textarea"||e.contentEditable==="true")}function Oe(e){var s=Me(),i=e.focusedElem,o=e.selectionRange;if(s!==i&&i&&i.ownerDocument&&Le(i.ownerDocument.documentElement,i)){if(o!==null&&Ne(i)){if(s=o.start,e=o.end,e===void 0&&(e=s),"selectionStart"in i)i.selectionStart=s,i.selectionEnd=Math.min(e,i.value.length);else if(e=(s=i.ownerDocument||document)&&s.defaultView||window,e.getSelection){e=e.getSelection();var a=i.textContent.length,c=Math.min(o.start,a);o=o.end===void 0?c:Math.min(o.end,a),!e.extend&&c>o&&(a=o,o=c,c=a),a=Ke(i,c);var d=Ke(i,o);a&&d&&(e.rangeCount!==1||e.anchorNode!==a.node||e.anchorOffset!==a.offset||e.focusNode!==d.node||e.focusOffset!==d.offset)&&(s=s.createRange(),s.setStart(a.node,a.offset),e.removeAllRanges(),c>o?(e.addRange(s),e.extend(d.node,d.offset)):(s.setEnd(d.node,d.offset),e.addRange(s)))}}for(s=[],e=i;e=e.parentNode;)e.nodeType===1&&s.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof i.focus=="function"&&i.focus(),i=0;i<s.length;i++)e=s[i],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var Pe=ia&&"documentMode"in document&&11>=document.documentMode,Qe=null,Re=null,Se=null,Te$1=!1;function Ue(e,s,i){var o=i.window===i?i.document:i.nodeType===9?i:i.ownerDocument;Te$1||Qe==null||Qe!==Xa(o)||(o=Qe,"selectionStart"in o&&Ne(o)?o={start:o.selectionStart,end:o.selectionEnd}:(o=(o.ownerDocument&&o.ownerDocument.defaultView||window).getSelection(),o={anchorNode:o.anchorNode,anchorOffset:o.anchorOffset,focusNode:o.focusNode,focusOffset:o.focusOffset}),Se&&Ie(Se,o)||(Se=o,o=oe$1(Re,"onSelect"),0<o.length&&(s=new td("onSelect","select",null,s,i),e.push({event:s,listeners:o}),s.target=Qe)))}function Ve(e,s){var i={};return i[e.toLowerCase()]=s.toLowerCase(),i["Webkit"+e]="webkit"+s,i["Moz"+e]="moz"+s,i}var We={animationend:Ve("Animation","AnimationEnd"),animationiteration:Ve("Animation","AnimationIteration"),animationstart:Ve("Animation","AnimationStart"),transitionend:Ve("Transition","TransitionEnd")},Xe={},Ye={};ia&&(Ye=document.createElement("div").style,"AnimationEvent"in window||(delete We.animationend.animation,delete We.animationiteration.animation,delete We.animationstart.animation),"TransitionEvent"in window||delete We.transitionend.transition);function Ze(e){if(Xe[e])return Xe[e];if(!We[e])return e;var s=We[e],i;for(i in s)if(s.hasOwnProperty(i)&&i in Ye)return Xe[e]=s[i];return e}var $e$1=Ze("animationend"),af=Ze("animationiteration"),bf=Ze("animationstart"),cf=Ze("transitionend"),df=new Map,ef="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function ff(e,s){df.set(e,s),fa(s,[e])}for(var gf=0;gf<ef.length;gf++){var hf=ef[gf],jf=hf.toLowerCase(),kf=hf[0].toUpperCase()+hf.slice(1);ff(jf,"on"+kf)}ff($e$1,"onAnimationEnd");ff(af,"onAnimationIteration");ff(bf,"onAnimationStart");ff("dblclick","onDoubleClick");ff("focusin","onFocus");ff("focusout","onBlur");ff(cf,"onTransitionEnd");ha("onMouseEnter",["mouseout","mouseover"]);ha("onMouseLeave",["mouseout","mouseover"]);ha("onPointerEnter",["pointerout","pointerover"]);ha("onPointerLeave",["pointerout","pointerover"]);fa("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));fa("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));fa("onBeforeInput",["compositionend","keypress","textInput","paste"]);fa("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));fa("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));fa("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var lf="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),mf=new Set("cancel close invalid load scroll toggle".split(" ").concat(lf));function nf(e,s,i){var o=e.type||"unknown-event";e.currentTarget=i,Ub(o,s,void 0,e),e.currentTarget=null}function se$1(e,s){s=(s&4)!==0;for(var i=0;i<e.length;i++){var o=e[i],a=o.event;o=o.listeners;e:{var c=void 0;if(s)for(var d=o.length-1;0<=d;d--){var h=o[d],g=h.instance,b=h.currentTarget;if(h=h.listener,g!==c&&a.isPropagationStopped())break e;nf(a,h,b),c=g}else for(d=0;d<o.length;d++){if(h=o[d],g=h.instance,b=h.currentTarget,h=h.listener,g!==c&&a.isPropagationStopped())break e;nf(a,h,b),c=g}}}if(Qb)throw e=Rb,Qb=!1,Rb=null,e}function D$1(e,s){var i=s[of];i===void 0&&(i=s[of]=new Set);var o=e+"__bubble";i.has(o)||(pf(s,e,2,!1),i.add(o))}function qf(e,s,i){var o=0;s&&(o|=4),pf(i,e,o,s)}var rf="_reactListening"+Math.random().toString(36).slice(2);function sf(e){if(!e[rf]){e[rf]=!0,da.forEach(function(i){i!=="selectionchange"&&(mf.has(i)||qf(i,!1,e),qf(i,!0,e))});var s=e.nodeType===9?e:e.ownerDocument;s===null||s[rf]||(s[rf]=!0,qf("selectionchange",!1,s))}}function pf(e,s,i,o){switch(jd(s)){case 1:var a=ed;break;case 4:a=gd;break;default:a=fd}i=a.bind(null,s,i,e),a=void 0,!Lb||s!=="touchstart"&&s!=="touchmove"&&s!=="wheel"||(a=!0),o?a!==void 0?e.addEventListener(s,i,{capture:!0,passive:a}):e.addEventListener(s,i,!0):a!==void 0?e.addEventListener(s,i,{passive:a}):e.addEventListener(s,i,!1)}function hd(e,s,i,o,a){var c=o;if(!(s&1)&&!(s&2)&&o!==null)e:for(;;){if(o===null)return;var d=o.tag;if(d===3||d===4){var h=o.stateNode.containerInfo;if(h===a||h.nodeType===8&&h.parentNode===a)break;if(d===4)for(d=o.return;d!==null;){var g=d.tag;if((g===3||g===4)&&(g=d.stateNode.containerInfo,g===a||g.nodeType===8&&g.parentNode===a))return;d=d.return}for(;h!==null;){if(d=Wc(h),d===null)return;if(g=d.tag,g===5||g===6){o=c=d;continue e}h=h.parentNode}}o=o.return}Jb(function(){var b=c,_=xb(i),_e=[];e:{var $=df.get(e);if($!==void 0){var et=td,it=e;switch(e){case"keypress":if(od(i)===0)break e;case"keydown":case"keyup":et=Rd;break;case"focusin":it="focus",et=Fd;break;case"focusout":it="blur",et=Fd;break;case"beforeblur":case"afterblur":et=Fd;break;case"click":if(i.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":et=Bd;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":et=Dd;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":et=Vd;break;case $e$1:case af:case bf:et=Hd;break;case cf:et=Xd;break;case"scroll":et=vd;break;case"wheel":et=Zd;break;case"copy":case"cut":case"paste":et=Jd;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":et=Td}var rt=(s&4)!==0,lt=!rt&&e==="scroll",st=rt?$!==null?$+"Capture":null:$;rt=[];for(var ot=b,nt;ot!==null;){nt=ot;var at=nt.stateNode;if(nt.tag===5&&at!==null&&(nt=at,st!==null&&(at=Kb(ot,st),at!=null&&rt.push(tf(ot,at,nt)))),lt)break;ot=ot.return}0<rt.length&&($=new et($,it,null,i,_),_e.push({event:$,listeners:rt}))}}if(!(s&7)){e:{if($=e==="mouseover"||e==="pointerover",et=e==="mouseout"||e==="pointerout",$&&i!==wb&&(it=i.relatedTarget||i.fromElement)&&(Wc(it)||it[uf]))break e;if((et||$)&&($=_.window===_?_:($=_.ownerDocument)?$.defaultView||$.parentWindow:window,et?(it=i.relatedTarget||i.toElement,et=b,it=it?Wc(it):null,it!==null&&(lt=Vb(it),it!==lt||it.tag!==5&&it.tag!==6)&&(it=null)):(et=null,it=b),et!==it)){if(rt=Bd,at="onMouseLeave",st="onMouseEnter",ot="mouse",(e==="pointerout"||e==="pointerover")&&(rt=Td,at="onPointerLeave",st="onPointerEnter",ot="pointer"),lt=et==null?$:ue$1(et),nt=it==null?$:ue$1(it),$=new rt(at,ot+"leave",et,i,_),$.target=lt,$.relatedTarget=nt,at=null,Wc(_)===b&&(rt=new rt(st,ot+"enter",it,i,_),rt.target=nt,rt.relatedTarget=lt,at=rt),lt=at,et&&it)t:{for(rt=et,st=it,ot=0,nt=rt;nt;nt=vf(nt))ot++;for(nt=0,at=st;at;at=vf(at))nt++;for(;0<ot-nt;)rt=vf(rt),ot--;for(;0<nt-ot;)st=vf(st),nt--;for(;ot--;){if(rt===st||st!==null&&rt===st.alternate)break t;rt=vf(rt),st=vf(st)}rt=null}else rt=null;et!==null&&wf(_e,$,et,rt,!1),it!==null&<!==null&&wf(_e,lt,it,rt,!0)}}e:{if($=b?ue$1(b):window,et=$.nodeName&&$.nodeName.toLowerCase(),et==="select"||et==="input"&&$.type==="file")var ct=ve$1;else if(me$1($))if(we$1)ct=Fe;else{ct=De;var dt=Ce}else(et=$.nodeName)&&et.toLowerCase()==="input"&&($.type==="checkbox"||$.type==="radio")&&(ct=Ee);if(ct&&(ct=ct(e,b))){ne$1(_e,ct,i,_);break e}dt&&dt(e,$,b),e==="focusout"&&(dt=$._wrapperState)&&dt.controlled&&$.type==="number"&&cb($,"number",$.value)}switch(dt=b?ue$1(b):window,e){case"focusin":(me$1(dt)||dt.contentEditable==="true")&&(Qe=dt,Re=b,Se=null);break;case"focusout":Se=Re=Qe=null;break;case"mousedown":Te$1=!0;break;case"contextmenu":case"mouseup":case"dragend":Te$1=!1,Ue(_e,i,_);break;case"selectionchange":if(Pe)break;case"keydown":case"keyup":Ue(_e,i,_)}var pt;if(ae$1)e:{switch(e){case"compositionstart":var mt="onCompositionStart";break e;case"compositionend":mt="onCompositionEnd";break e;case"compositionupdate":mt="onCompositionUpdate";break e}mt=void 0}else ie$1?ge$1(e,i)&&(mt="onCompositionEnd"):e==="keydown"&&i.keyCode===229&&(mt="onCompositionStart");mt&&(de$1&&i.locale!=="ko"&&(ie$1||mt!=="onCompositionStart"?mt==="onCompositionEnd"&&ie$1&&(pt=nd()):(kd=_,ld="value"in kd?kd.value:kd.textContent,ie$1=!0)),dt=oe$1(b,mt),0<dt.length&&(mt=new Ld(mt,e,null,i,_),_e.push({event:mt,listeners:dt}),pt?mt.data=pt:(pt=he$1(i),pt!==null&&(mt.data=pt)))),(pt=ce$1?je(e,i):ke(e,i))&&(b=oe$1(b,"onBeforeInput"),0<b.length&&(_=new Ld("onBeforeInput","beforeinput",null,i,_),_e.push({event:_,listeners:b}),_.data=pt))}se$1(_e,s)})}function tf(e,s,i){return{instance:e,listener:s,currentTarget:i}}function oe$1(e,s){for(var i=s+"Capture",o=[];e!==null;){var a=e,c=a.stateNode;a.tag===5&&c!==null&&(a=c,c=Kb(e,i),c!=null&&o.unshift(tf(e,c,a)),c=Kb(e,s),c!=null&&o.push(tf(e,c,a))),e=e.return}return o}function vf(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function wf(e,s,i,o,a){for(var c=s._reactName,d=[];i!==null&&i!==o;){var h=i,g=h.alternate,b=h.stateNode;if(g!==null&&g===o)break;h.tag===5&&b!==null&&(h=b,a?(g=Kb(i,c),g!=null&&d.unshift(tf(i,g,h))):a||(g=Kb(i,c),g!=null&&d.push(tf(i,g,h)))),i=i.return}d.length!==0&&e.push({event:s,listeners:d})}var xf=/\r\n?/g,yf=/\u0000|\uFFFD/g;function zf(e){return(typeof e=="string"?e:""+e).replace(xf,` 39`).replace(yf,"")}function Af(e,s,i){if(s=zf(s),zf(e)!==s&&i)throw Error(p(425))}function Bf(){}var Cf=null,Df=null;function Ef(e,s){return e==="textarea"||e==="noscript"||typeof s.children=="string"||typeof s.children=="number"||typeof s.dangerouslySetInnerHTML=="object"&&s.dangerouslySetInnerHTML!==null&&s.dangerouslySetInnerHTML.__html!=null}var Ff=typeof setTimeout=="function"?setTimeout:void 0,Gf=typeof clearTimeout=="function"?clearTimeout:void 0,Hf=typeof Promise=="function"?Promise:void 0,Jf=typeof queueMicrotask=="function"?queueMicrotask:typeof Hf<"u"?function(e){return Hf.resolve(null).then(e).catch(If)}:Ff;function If(e){setTimeout(function(){throw e})}function Kf(e,s){var i=s,o=0;do{var a=i.nextSibling;if(e.removeChild(i),a&&a.nodeType===8)if(i=a.data,i==="/$"){if(o===0){e.removeChild(a),bd(s);return}o--}else i!=="$"&&i!=="$?"&&i!=="$!"||o++;i=a}while(i);bd(s)}function Lf(e){for(;e!=null;e=e.nextSibling){var s=e.nodeType;if(s===1||s===3)break;if(s===8){if(s=e.data,s==="$"||s==="$!"||s==="$?")break;if(s==="/$")return null}}return e}function Mf(e){e=e.previousSibling;for(var s=0;e;){if(e.nodeType===8){var i=e.data;if(i==="$"||i==="$!"||i==="$?"){if(s===0)return e;s--}else i==="/$"&&s++}e=e.previousSibling}return null}var Nf=Math.random().toString(36).slice(2),Of="__reactFiber$"+Nf,Pf="__reactProps$"+Nf,uf="__reactContainer$"+Nf,of="__reactEvents$"+Nf,Qf="__reactListeners$"+Nf,Rf="__reactHandles$"+Nf;function Wc(e){var s=e[Of];if(s)return s;for(var i=e.parentNode;i;){if(s=i[uf]||i[Of]){if(i=s.alternate,s.child!==null||i!==null&&i.child!==null)for(e=Mf(e);e!==null;){if(i=e[Of])return i;e=Mf(e)}return s}e=i,i=e.parentNode}return null}function Cb(e){return e=e[Of]||e[uf],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function ue$1(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(p(33))}function Db(e){return e[Pf]||null}var Sf=[],Tf=-1;function Uf(e){return{current:e}}
vendor: 7,219 bytes, line 39
39function E$1(e){0>Tf||(e.current=Sf[Tf],Sf[Tf]=null,Tf--)}function G(e,s){Tf++,Sf[Tf]=e.current,e.current=s}var Vf={},H=Uf(Vf),Wf=Uf(!1),Xf=Vf;function Yf(e,s){var i=e.type.contextTypes;if(!i)return Vf;var o=e.stateNode;if(o&&o.__reactInternalMemoizedUnmaskedChildContext===s)return o.__reactInternalMemoizedMaskedChildContext;var a={},c;for(c in i)a[c]=s[c];return o&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=s,e.__reactInternalMemoizedMaskedChildContext=a),a}function Zf(e){return e=e.childContextTypes,e!=null}function $f(){E$1(Wf),E$1(H)}function ag(e,s,i){if(H.current!==Vf)throw Error(p(168));G(H,s),G(Wf,i)}function bg(e,s,i){var o=e.stateNode;if(s=s.childContextTypes,typeof o.getChildContext!="function")return i;o=o.getChildContext();for(var a in o)if(!(a in s))throw Error(p(108,Ra(e)||"Unknown",a));return A({},i,o)}function cg(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Vf,Xf=H.current,G(H,e),G(Wf,Wf.current),!0}function dg(e,s,i){var o=e.stateNode;if(!o)throw Error(p(169));i?(e=bg(e,s,Xf),o.__reactInternalMemoizedMergedChildContext=e,E$1(Wf),E$1(H),G(H,e)):E$1(Wf),G(Wf,i)}var eg=null,fg=!1,gg=!1;function hg(e){eg===null?eg=[e]:eg.push(e)}function ig(e){fg=!0,hg(e)}function jg(){if(!gg&&eg!==null){gg=!0;var e=0,s=C;try{var i=eg;for(C=1;e<i.length;e++){var o=i[e];do o=o(!0);while(o!==null)}eg=null,fg=!1}catch(a){throw eg!==null&&(eg=eg.slice(e+1)),ac(fc,jg),a}finally{C=s,gg=!1}}return null}var kg=[],lg=0,mg=null,ng=0,og=[],pg=0,qg=null,rg=1,sg="";function tg(e,s){kg[lg++]=ng,kg[lg++]=mg,mg=e,ng=s}function ug(e,s,i){og[pg++]=rg,og[pg++]=sg,og[pg++]=qg,qg=e;var o=rg;e=sg;var a=32-oc(o)-1;o&=~(1<<a),i+=1;var c=32-oc(s)+a;if(30<c){var d=a-a%5;c=(o&(1<<d)-1).toString(32),o>>=d,a-=d,rg=1<<32-oc(s)+a|i<<a|o,sg=c+e}else rg=1<<c|i<<a|o,sg=e}function vg(e){e.return!==null&&(tg(e,1),ug(e,1,0))}function wg(e){for(;e===mg;)mg=kg[--lg],kg[lg]=null,ng=kg[--lg],kg[lg]=null;for(;e===qg;)qg=og[--pg],og[pg]=null,sg=og[--pg],og[pg]=null,rg=og[--pg],og[pg]=null}var xg=null,yg=null,I=!1,zg=null;function Ag(e,s){var i=Bg(5,null,null,0);i.elementType="DELETED",i.stateNode=s,i.return=e,s=e.deletions,s===null?(e.deletions=[i],e.flags|=16):s.push(i)}function Cg(e,s){switch(e.tag){case 5:var i=e.type;return s=s.nodeType!==1||i.toLowerCase()!==s.nodeName.toLowerCase()?null:s,s!==null?(e.stateNode=s,xg=e,yg=Lf(s.firstChild),!0):!1;case 6:return s=e.pendingProps===""||s.nodeType!==3?null:s,s!==null?(e.stateNode=s,xg=e,yg=null,!0):!1;case 13:return s=s.nodeType!==8?null:s,s!==null?(i=qg!==null?{id:rg,overflow:sg}:null,e.memoizedState={dehydrated:s,treeContext:i,retryLane:1073741824},i=Bg(18,null,null,0),i.stateNode=s,i.return=e,e.child=i,xg=e,yg=null,!0):!1;default:return!1}}function Dg(e){return(e.mode&1)!==0&&(e.flags&128)===0}function Eg(e){if(I){var s=yg;if(s){var i=s;if(!Cg(e,s)){if(Dg(e))throw Error(p(418));s=Lf(i.nextSibling);var o=xg;s&&Cg(e,s)?Ag(o,i):(e.flags=e.flags&-4097|2,I=!1,xg=e)}}else{if(Dg(e))throw Error(p(418));e.flags=e.flags&-4097|2,I=!1,xg=e}}}function Fg(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;xg=e}function Gg(e){if(e!==xg)return!1;if(!I)return Fg(e),I=!0,!1;var s;if((s=e.tag!==3)&&!(s=e.tag!==5)&&(s=e.type,s=s!=="head"&&s!=="body"&&!Ef(e.type,e.memoizedProps)),s&&(s=yg)){if(Dg(e))throw Hg(),Error(p(418));for(;s;)Ag(e,s),s=Lf(s.nextSibling)}if(Fg(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(p(317));e:{for(e=e.nextSibling,s=0;e;){if(e.nodeType===8){var i=e.data;if(i==="/$"){if(s===0){yg=Lf(e.nextSibling);break e}s--}else i!=="$"&&i!=="$!"&&i!=="$?"||s++}e=e.nextSibling}yg=null}}else yg=xg?Lf(e.stateNode.nextSibling):null;return!0}function Hg(){for(var e=yg;e;)e=Lf(e.nextSibling)}function Ig(){yg=xg=null,I=!1}function Jg(e){zg===null?zg=[e]:zg.push(e)}var Kg=ua.ReactCurrentBatchConfig;function Lg(e,s,i){if(e=i.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(i._owner){if(i=i._owner,i){if(i.tag!==1)throw Error(p(309));var o=i.stateNode}if(!o)throw Error(p(147,e));var a=o,c=""+e;return s!==null&&s.ref!==null&&typeof s.ref=="function"&&s.ref._stringRef===c?s.ref:(s=function(d){var h=a.refs;d===null?delete h[c]:h[c]=d},s._stringRef=c,s)}if(typeof e!="string")throw Error(p(284));if(!i._owner)throw Error(p(290,e))}return e}function Mg(e,s){throw e=Object.prototype.toString.call(s),Error(p(31,e==="[object Object]"?"object with keys {"+Object.keys(s).join(", ")+"}":e))}function Ng(e){var s=e._init;return s(e._payload)}function Og(e){function s(st,ot){if(e){var nt=st.deletions;nt===null?(st.deletions=[ot],st.flags|=16):nt.push(ot)}}function i(st,ot){if(!e)return null;for(;ot!==null;)s(st,ot),ot=ot.sibling;return null}function o(st,ot){for(st=new Map;ot!==null;)ot.key!==null?st.set(ot.key,ot):st.set(ot.index,ot),ot=ot.sibling;return st}function a(st,ot){return st=Pg(st,ot),st.index=0,st.sibling=null,st}function c(st,ot,nt){return st.index=nt,e?(nt=st.alternate,nt!==null?(nt=nt.index,nt<ot?(st.flags|=2,ot):nt):(st.flags|=2,ot)):(st.flags|=1048576,ot)}function d(st){return e&&st.alternate===null&&(st.flags|=2),st}function h(st,ot,nt,at){return ot===null||ot.tag!==6?(ot=Qg(nt,st.mode,at),ot.return=st,ot):(ot=a(ot,nt),ot.return=st,ot)}function g(st,ot,nt,at){var ct=nt.type;return ct===ya?_(st,ot,nt.props.children,at,nt.key):ot!==null&&(ot.elementType===ct||typeof ct=="object"&&ct!==null&&ct.$$typeof===Ha&&Ng(ct)===ot.type)?(at=a(ot,nt.props),at.ref=Lg(st,ot,nt),at.return=st,at):(at=Rg(nt.type,nt.key,nt.props,null,st.mode,at),at.ref=Lg(st,ot,nt),at.return=st,at)}function b(st,ot,nt,at){return ot===null||ot.tag!==4||ot.stateNode.containerInfo!==nt.containerInfo||ot.stateNode.implementation!==nt.implementation?(ot=Sg(nt,st.mode,at),ot.return=st,ot):(ot=a(ot,nt.children||[]),ot.return=st,ot)}function _(st,ot,nt,at,ct){return ot===null||ot.tag!==7?(ot=Tg(nt,st.mode,at,ct),ot.return=st,ot):(ot=a(ot,nt),ot.return=st,ot)}function _e(st,ot,nt){if(typeof ot=="string"&&ot!==""||typeof ot=="number")return ot=Qg(""+ot,st.mode,nt),ot.return=st,ot;if(typeof ot=="object"&&ot!==null){switch(ot.$$typeof){case va:return nt=Rg(ot.type,ot.key,ot.props,null,st.mode,nt),nt.ref=Lg(st,null,ot),nt.return=st,nt;case wa:return ot=Sg(ot,st.mode,nt),ot.return=st,ot;case Ha:var at=ot._init;return _e(st,at(ot._payload),nt)}if(eb(ot)||Ka(ot))return ot=Tg(ot,st.mode,nt,null),ot.return=st,ot;Mg(st,ot)}return null}function $(st,ot,nt,at){var ct=ot!==null?ot.key:null;if(typeof nt=="string"&&nt!==""||typeof nt=="number")return ct!==null?null:h(st,ot,""+nt,at);if(typeof nt=="object"&&nt!==null){switch(nt.$$typeof){case va:return nt.key===ct?g(st,ot,nt,at):null;case wa:return nt.key===ct?b(st,ot,nt,at):null;case Ha:return ct=nt._init,$(st,ot,ct(nt._payload),at)}if(eb(nt)||Ka(nt))return ct!==null?null:_(st,ot,nt,at,null);Mg(st,nt)}return null}function et(st,ot,nt,at,ct){if(typeof at=="string"&&at!==""||typeof at=="number")return st=st.get(nt)||null,h(ot,st,""+at,ct);if(typeof at=="object"&&at!==null){switch(at.$$typeof){case va:return st=st.get(at.key===null?nt:at.key)||null,g(ot,st,at,ct);case wa:return st=st.get(at.key===null?nt:at.key)||null,b(ot,st,at,ct);case Ha:var dt=at._init;return et(st,ot,nt,dt(at._payload),ct)}
vendor: 1,039 bytes, line 39
39if(eb(at)||Ka(at))return st=st.get(nt)||null,_(ot,st,at,ct,null);Mg(ot,at)}return null}function it(st,ot,nt,at){for(var ct=null,dt=null,pt=ot,mt=ot=0,St=null;pt!==null&&mt<nt.length;mt++){pt.index>mt?(St=pt,pt=null):St=pt.sibling;var Pt=$(st,pt,nt[mt],at);if(Pt===null){pt===null&&(pt=St);break}e&&pt&&Pt.alternate===null&&s(st,pt),ot=c(Pt,ot,mt),dt===null?ct=Pt:dt.sibling=Pt,dt=Pt,pt=St}if(mt===nt.length)return i(st,pt),I&&tg(st,mt),ct;if(pt===null){for(;mt<nt.length;mt++)pt=_e(st,nt[mt],at),pt!==null&&(ot=c(pt,ot,mt),dt===null?ct=pt:dt.sibling=pt,dt=pt);return I&&tg(st,mt),ct}for(pt=o(st,pt);mt<nt.length;mt++)St=et(pt,st,mt,nt[mt],at),St!==null&&(e&&St.alternate!==null&&pt.delete(St.key===null?mt:St.key),ot=c(St,ot,mt),dt===null?ct=St:dt.sibling=St,dt=St);return e&&pt.forEach(function(Mt){return s(st,Mt)}),I&&tg(st,mt),ct}function rt(st,ot,nt,at){var ct=Ka(nt);if(typeof ct!="function")throw Error(p(150));if(nt=ct.call(nt),nt==null)throw Error(p(151));for(var dt=ct=null,pt=ot,mt=ot=0,St=null,Pt=nt.next();pt!==null&&!Pt.done;
vendor: 6,431 bytes, line 39
39mt++,Pt=nt.next()){pt.index>mt?(St=pt,pt=null):St=pt.sibling;var Mt=$(st,pt,Pt.value,at);if(Mt===null){pt===null&&(pt=St);break}e&&pt&&Mt.alternate===null&&s(st,pt),ot=c(Mt,ot,mt),dt===null?ct=Mt:dt.sibling=Mt,dt=Mt,pt=St}if(Pt.done)return i(st,pt),I&&tg(st,mt),ct;if(pt===null){for(;!Pt.done;mt++,Pt=nt.next())Pt=_e(st,Pt.value,at),Pt!==null&&(ot=c(Pt,ot,mt),dt===null?ct=Pt:dt.sibling=Pt,dt=Pt);return I&&tg(st,mt),ct}for(pt=o(st,pt);!Pt.done;mt++,Pt=nt.next())Pt=et(pt,st,mt,Pt.value,at),Pt!==null&&(e&&Pt.alternate!==null&&pt.delete(Pt.key===null?mt:Pt.key),ot=c(Pt,ot,mt),dt===null?ct=Pt:dt.sibling=Pt,dt=Pt);return e&&pt.forEach(function(Ct){return s(st,Ct)}),I&&tg(st,mt),ct}function lt(st,ot,nt,at){if(typeof nt=="object"&&nt!==null&&nt.type===ya&&nt.key===null&&(nt=nt.props.children),typeof nt=="object"&&nt!==null){switch(nt.$$typeof){case va:e:{for(var ct=nt.key,dt=ot;dt!==null;){if(dt.key===ct){if(ct=nt.type,ct===ya){if(dt.tag===7){i(st,dt.sibling),ot=a(dt,nt.props.children),ot.return=st,st=ot;break e}}else if(dt.elementType===ct||typeof ct=="object"&&ct!==null&&ct.$$typeof===Ha&&Ng(ct)===dt.type){i(st,dt.sibling),ot=a(dt,nt.props),ot.ref=Lg(st,dt,nt),ot.return=st,st=ot;break e}i(st,dt);break}else s(st,dt);dt=dt.sibling}nt.type===ya?(ot=Tg(nt.props.children,st.mode,at,nt.key),ot.return=st,st=ot):(at=Rg(nt.type,nt.key,nt.props,null,st.mode,at),at.ref=Lg(st,ot,nt),at.return=st,st=at)}return d(st);case wa:e:{for(dt=nt.key;ot!==null;){if(ot.key===dt)if(ot.tag===4&&ot.stateNode.containerInfo===nt.containerInfo&&ot.stateNode.implementation===nt.implementation){i(st,ot.sibling),ot=a(ot,nt.children||[]),ot.return=st,st=ot;break e}else{i(st,ot);break}else s(st,ot);ot=ot.sibling}ot=Sg(nt,st.mode,at),ot.return=st,st=ot}return d(st);case Ha:return dt=nt._init,lt(st,ot,dt(nt._payload),at)}if(eb(nt))return it(st,ot,nt,at);if(Ka(nt))return rt(st,ot,nt,at);Mg(st,nt)}return typeof nt=="string"&&nt!==""||typeof nt=="number"?(nt=""+nt,ot!==null&&ot.tag===6?(i(st,ot.sibling),ot=a(ot,nt),ot.return=st,st=ot):(i(st,ot),ot=Qg(nt,st.mode,at),ot.return=st,st=ot),d(st)):i(st,ot)}return lt}var Ug=Og(!0),Vg=Og(!1),Wg=Uf(null),Xg=null,Yg=null,Zg=null;function $g(){Zg=Yg=Xg=null}function ah(e){var s=Wg.current;E$1(Wg),e._currentValue=s}function bh(e,s,i){for(;e!==null;){var o=e.alternate;if((e.childLanes&s)!==s?(e.childLanes|=s,o!==null&&(o.childLanes|=s)):o!==null&&(o.childLanes&s)!==s&&(o.childLanes|=s),e===i)break;e=e.return}}function ch(e,s){Xg=e,Zg=Yg=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&s&&(dh=!0),e.firstContext=null)}function eh(e){var s=e._currentValue;if(Zg!==e)if(e={context:e,memoizedValue:s,next:null},Yg===null){if(Xg===null)throw Error(p(308));Yg=e,Xg.dependencies={lanes:0,firstContext:e}}else Yg=Yg.next=e;return s}var fh=null;function gh(e){fh===null?fh=[e]:fh.push(e)}function hh(e,s,i,o){var a=s.interleaved;return a===null?(i.next=i,gh(s)):(i.next=a.next,a.next=i),s.interleaved=i,ih(e,o)}function ih(e,s){e.lanes|=s;var i=e.alternate;for(i!==null&&(i.lanes|=s),i=e,e=e.return;e!==null;)e.childLanes|=s,i=e.alternate,i!==null&&(i.childLanes|=s),i=e,e=e.return;return i.tag===3?i.stateNode:null}var jh=!1;function kh(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function lh(e,s){e=e.updateQueue,s.updateQueue===e&&(s.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function mh(e,s){return{eventTime:e,lane:s,tag:0,payload:null,callback:null,next:null}}function nh(e,s,i){var o=e.updateQueue;if(o===null)return null;if(o=o.shared,K&2){var a=o.pending;return a===null?s.next=s:(s.next=a.next,a.next=s),o.pending=s,ih(e,i)}return a=o.interleaved,a===null?(s.next=s,gh(o)):(s.next=a.next,a.next=s),o.interleaved=s,ih(e,i)}function oh(e,s,i){if(s=s.updateQueue,s!==null&&(s=s.shared,(i&4194240)!==0)){var o=s.lanes;o&=e.pendingLanes,i|=o,s.lanes=i,Cc(e,i)}}function ph(e,s){var i=e.updateQueue,o=e.alternate;if(o!==null&&(o=o.updateQueue,i===o)){var a=null,c=null;if(i=i.firstBaseUpdate,i!==null){do{var d={eventTime:i.eventTime,lane:i.lane,tag:i.tag,payload:i.payload,callback:i.callback,next:null};c===null?a=c=d:c=c.next=d,i=i.next}while(i!==null);c===null?a=c=s:c=c.next=s}else a=c=s;i={baseState:o.baseState,firstBaseUpdate:a,lastBaseUpdate:c,shared:o.shared,effects:o.effects},e.updateQueue=i;return}e=i.lastBaseUpdate,e===null?i.firstBaseUpdate=s:e.next=s,i.lastBaseUpdate=s}function qh(e,s,i,o){var a=e.updateQueue;jh=!1;var c=a.firstBaseUpdate,d=a.lastBaseUpdate,h=a.shared.pending;if(h!==null){a.shared.pending=null;var g=h,b=g.next;g.next=null,d===null?c=b:d.next=b,d=g;var _=e.alternate;_!==null&&(_=_.updateQueue,h=_.lastBaseUpdate,h!==d&&(h===null?_.firstBaseUpdate=b:h.next=b,_.lastBaseUpdate=g))}if(c!==null){var _e=a.baseState;d=0,_=b=g=null,h=c;do{var $=h.lane,et=h.eventTime;if((o&$)===$){_!==null&&(_=_.next={eventTime:et,lane:0,tag:h.tag,payload:h.payload,callback:h.callback,next:null});e:{var it=e,rt=h;switch($=s,et=i,rt.tag){case 1:if(it=rt.payload,typeof it=="function"){_e=it.call(et,_e,$);break e}_e=it;break e;case 3:it.flags=it.flags&-65537|128;case 0:if(it=rt.payload,$=typeof it=="function"?it.call(et,_e,$):it,$==null)break e;_e=A({},_e,$);break e;case 2:jh=!0}}h.callback!==null&&h.lane!==0&&(e.flags|=64,$=a.effects,$===null?a.effects=[h]:$.push(h))}else et={eventTime:et,lane:$,tag:h.tag,payload:h.payload,callback:h.callback,next:null},_===null?(b=_=et,g=_e):_=_.next=et,d|=$;if(h=h.next,h===null){if(h=a.shared.pending,h===null)break;$=h,h=$.next,$.next=null,a.lastBaseUpdate=$,a.shared.pending=null}}while(!0);if(_===null&&(g=_e),a.baseState=g,a.firstBaseUpdate=b,a.lastBaseUpdate=_,s=a.shared.interleaved,s!==null){a=s;do d|=a.lane,a=a.next;while(a!==s)}else c===null&&(a.shared.lanes=0);rh|=d,e.lanes=d,e.memoizedState=_e}}function sh(e,s,i){if(e=s.effects,s.effects=null,e!==null)for(s=0;s<e.length;s++){var o=e[s],a=o.callback;if(a!==null){if(o.callback=null,o=i,typeof a!="function")throw Error(p(191,a));a.call(o)}}}var th={},uh=Uf(th),vh=Uf(th),wh=Uf(th);function xh(e){if(e===th)throw Error(p(174));return e}function yh(e,s){switch(G(wh,s),G(vh,e),G(uh,th),e=s.nodeType,e){case 9:case 11:s=(s=s.documentElement)?s.namespaceURI:lb(null,"");break;default:e=e===8?s.parentNode:s,s=e.namespaceURI||null,e=e.tagName,s=lb(s,e)}E$1(uh),G(uh,s)}
vendor: 9,204 bytes, line 39
39function zh(){E$1(uh),E$1(vh),E$1(wh)}function Ah(e){xh(wh.current);var s=xh(uh.current),i=lb(s,e.type);s!==i&&(G(vh,e),G(uh,i))}function Bh(e){vh.current===e&&(E$1(uh),E$1(vh))}var L$1=Uf(0);function Ch(e){for(var s=e;s!==null;){if(s.tag===13){var i=s.memoizedState;if(i!==null&&(i=i.dehydrated,i===null||i.data==="$?"||i.data==="$!"))return s}else if(s.tag===19&&s.memoizedProps.revealOrder!==void 0){if(s.flags&128)return s}else if(s.child!==null){s.child.return=s,s=s.child;continue}if(s===e)break;for(;s.sibling===null;){if(s.return===null||s.return===e)return null;s=s.return}s.sibling.return=s.return,s=s.sibling}return null}var Dh=[];function Eh(){for(var e=0;e<Dh.length;e++)Dh[e]._workInProgressVersionPrimary=null;Dh.length=0}var Fh=ua.ReactCurrentDispatcher,Gh=ua.ReactCurrentBatchConfig,Hh=0,M$1=null,N=null,O=null,Ih=!1,Jh=!1,Kh=0,Lh=0;function P$1(){throw Error(p(321))}function Mh(e,s){if(s===null)return!1;for(var i=0;i<s.length&&i<e.length;i++)if(!He(e[i],s[i]))return!1;return!0}function Nh(e,s,i,o,a,c){if(Hh=c,M$1=s,s.memoizedState=null,s.updateQueue=null,s.lanes=0,Fh.current=e===null||e.memoizedState===null?Oh:Ph,e=i(o,a),Jh){c=0;do{if(Jh=!1,Kh=0,25<=c)throw Error(p(301));c+=1,O=N=null,s.updateQueue=null,Fh.current=Qh,e=i(o,a)}while(Jh)}if(Fh.current=Rh,s=N!==null&&N.next!==null,Hh=0,O=N=M$1=null,Ih=!1,s)throw Error(p(300));return e}function Sh(){var e=Kh!==0;return Kh=0,e}function Th(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return O===null?M$1.memoizedState=O=e:O=O.next=e,O}function Uh(){if(N===null){var e=M$1.alternate;e=e!==null?e.memoizedState:null}else e=N.next;var s=O===null?M$1.memoizedState:O.next;if(s!==null)O=s,N=e;else{if(e===null)throw Error(p(310));N=e,e={memoizedState:N.memoizedState,baseState:N.baseState,baseQueue:N.baseQueue,queue:N.queue,next:null},O===null?M$1.memoizedState=O=e:O=O.next=e}return O}function Vh(e,s){return typeof s=="function"?s(e):s}function Wh(e){var s=Uh(),i=s.queue;if(i===null)throw Error(p(311));i.lastRenderedReducer=e;var o=N,a=o.baseQueue,c=i.pending;if(c!==null){if(a!==null){var d=a.next;a.next=c.next,c.next=d}o.baseQueue=a=c,i.pending=null}if(a!==null){c=a.next,o=o.baseState;var h=d=null,g=null,b=c;do{var _=b.lane;if((Hh&_)===_)g!==null&&(g=g.next={lane:0,action:b.action,hasEagerState:b.hasEagerState,eagerState:b.eagerState,next:null}),o=b.hasEagerState?b.eagerState:e(o,b.action);else{var _e={lane:_,action:b.action,hasEagerState:b.hasEagerState,eagerState:b.eagerState,next:null};g===null?(h=g=_e,d=o):g=g.next=_e,M$1.lanes|=_,rh|=_}b=b.next}while(b!==null&&b!==c);g===null?d=o:g.next=h,He(o,s.memoizedState)||(dh=!0),s.memoizedState=o,s.baseState=d,s.baseQueue=g,i.lastRenderedState=o}if(e=i.interleaved,e!==null){a=e;do c=a.lane,M$1.lanes|=c,rh|=c,a=a.next;while(a!==e)}else a===null&&(i.lanes=0);return[s.memoizedState,i.dispatch]}function Xh(e){var s=Uh(),i=s.queue;if(i===null)throw Error(p(311));i.lastRenderedReducer=e;var o=i.dispatch,a=i.pending,c=s.memoizedState;if(a!==null){i.pending=null;var d=a=a.next;do c=e(c,d.action),d=d.next;while(d!==a);He(c,s.memoizedState)||(dh=!0),s.memoizedState=c,s.baseQueue===null&&(s.baseState=c),i.lastRenderedState=c}return[c,o]}function Yh(){}function Zh(e,s){var i=M$1,o=Uh(),a=s(),c=!He(o.memoizedState,a);if(c&&(o.memoizedState=a,dh=!0),o=o.queue,$h(ai.bind(null,i,o,e),[e]),o.getSnapshot!==s||c||O!==null&&O.memoizedState.tag&1){if(i.flags|=2048,bi(9,ci.bind(null,i,o,a,s),void 0,null),Q===null)throw Error(p(349));Hh&30||di(i,s,a)}return a}function di(e,s,i){e.flags|=16384,e={getSnapshot:s,value:i},s=M$1.updateQueue,s===null?(s={lastEffect:null,stores:null},M$1.updateQueue=s,s.stores=[e]):(i=s.stores,i===null?s.stores=[e]:i.push(e))}function ci(e,s,i,o){s.value=i,s.getSnapshot=o,ei(s)&&fi(e)}function ai(e,s,i){return i(function(){ei(s)&&fi(e)})}function ei(e){var s=e.getSnapshot;e=e.value;try{var i=s();return!He(e,i)}catch{return!0}}function fi(e){var s=ih(e,1);s!==null&&gi(s,e,1,-1)}function hi(e){var s=Th();return typeof e=="function"&&(e=e()),s.memoizedState=s.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Vh,lastRenderedState:e},s.queue=e,e=e.dispatch=ii.bind(null,M$1,e),[s.memoizedState,e]}function bi(e,s,i,o){return e={tag:e,create:s,destroy:i,deps:o,next:null},s=M$1.updateQueue,s===null?(s={lastEffect:null,stores:null},M$1.updateQueue=s,s.lastEffect=e.next=e):(i=s.lastEffect,i===null?s.lastEffect=e.next=e:(o=i.next,i.next=e,e.next=o,s.lastEffect=e)),e}function ji(){return Uh().memoizedState}function ki(e,s,i,o){var a=Th();M$1.flags|=e,a.memoizedState=bi(1|s,i,void 0,o===void 0?null:o)}function li(e,s,i,o){var a=Uh();o=o===void 0?null:o;var c=void 0;if(N!==null){var d=N.memoizedState;if(c=d.destroy,o!==null&&Mh(o,d.deps)){a.memoizedState=bi(s,i,c,o);return}}M$1.flags|=e,a.memoizedState=bi(1|s,i,c,o)}function mi(e,s){return ki(8390656,8,e,s)}function $h(e,s){return li(2048,8,e,s)}function ni(e,s){return li(4,2,e,s)}function oi(e,s){return li(4,4,e,s)}function pi(e,s){if(typeof s=="function")return e=e(),s(e),function(){s(null)};if(s!=null)return e=e(),s.current=e,function(){s.current=null}}function qi(e,s,i){return i=i!=null?i.concat([e]):null,li(4,4,pi.bind(null,s,e),i)}function ri(){}function si(e,s){var i=Uh();s=s===void 0?null:s;var o=i.memoizedState;return o!==null&&s!==null&&Mh(s,o[1])?o[0]:(i.memoizedState=[e,s],e)}function ti(e,s){var i=Uh();s=s===void 0?null:s;var o=i.memoizedState;return o!==null&&s!==null&&Mh(s,o[1])?o[0]:(e=e(),i.memoizedState=[e,s],e)}function ui(e,s,i){return Hh&21?(He(i,s)||(i=yc(),M$1.lanes|=i,rh|=i,e.baseState=!0),s):(e.baseState&&(e.baseState=!1,dh=!0),e.memoizedState=i)}function vi(e,s){var i=C;C=i!==0&&4>i?i:4,e(!0);var o=Gh.transition;Gh.transition={};try{e(!1),s()}finally{C=i,Gh.transition=o}}function wi(){return Uh().memoizedState}function xi(e,s,i){var o=yi(e);if(i={lane:o,action:i,hasEagerState:!1,eagerState:null,next:null},zi(e))Ai(s,i);else if(i=hh(e,s,i,o),i!==null){var a=R();gi(i,e,o,a),Bi(i,s,o)}}function ii(e,s,i){var o=yi(e),a={lane:o,action:i,hasEagerState:!1,eagerState:null,next:null};if(zi(e))Ai(s,a);else{var c=e.alternate;if(e.lanes===0&&(c===null||c.lanes===0)&&(c=s.lastRenderedReducer,c!==null))try{var d=s.lastRenderedState,h=c(d,i);if(a.hasEagerState=!0,a.eagerState=h,He(h,d)){var g=s.interleaved;g===null?(a.next=a,gh(s)):(a.next=g.next,g.next=a),s.interleaved=a;return}}catch{}finally{}i=hh(e,s,a,o),i!==null&&(a=R(),gi(i,e,o,a),Bi(i,s,o))}}function zi(e){var s=e.alternate;return e===M$1||s!==null&&s===M$1}function Ai(e,s){Jh=Ih=!0;var i=e.pending;i===null?s.next=s:(s.next=i.next,i.next=s),e.pending=s}function Bi(e,s,i){if(i&4194240){var o=s.lanes;o&=e.pendingLanes,i|=o,s.lanes=i,Cc(e,i)}}var Rh={readContext:eh,useCallback:P$1,useContext:P$1,useEffect:P$1,useImperativeHandle:P$1,useInsertionEffect:P$1,useLayoutEffect:P$1,useMemo:P$1,useReducer:P$1,useRef:P$1,useState:P$1,useDebugValue:P$1,useDeferredValue:P$1,useTransition:P$1,useMutableSource:P$1,useSyncExternalStore:P$1,useId:P$1,unstable_isNewReconciler:!1},Oh={readContext:eh,useCallback:function(e,s){return Th().memoizedState=[e,s===void 0?null:s],e},useContext:eh,useEffect:mi,useImperativeHandle:function(e,s,i){return i=i!=null?i.concat([e]):null,ki(4194308,4,pi.bind(null,s,e),i)},useLayoutEffect:function(e,s){return ki(4194308,4,e,s)},useInsertionEffect:function(e,s){return ki(4,2,e,s)},useMemo:function(e,s){var i=Th();return s=s===void 0?null:s,e=e(),i.memoizedState=[e,s],e},useReducer:function(e,s,i){var o=Th();return s=i!==void 0?i(s):s,o.memoizedState=o.baseState=s,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:s},o.queue=e,e=e.dispatch=xi.bind(null,M$1,e),[o.memoizedState,e]},useRef:function(e){var s=Th();return e={current:e},s.memoizedState=e},useState:hi,useDebugValue:ri,useDeferredValue:function(e){return Th().memoizedState=e},useTransition:function(){var e=hi(!1),s=e[0];return e=vi.bind(null,e[1]),Th().memoizedState=e,[s,e]},useMutableSource:function(){},useSyncExternalStore:function(e,s,i){var o=M$1,a=Th();if(I){if(i===void 0)throw Error(p(407));i=i()}else{if(i=s(),Q===null)throw Error(p(349));Hh&30||di(o,s,i)}a.memoizedState=i;var c={value:i,getSnapshot:s};return a.queue=c,mi(ai.bind(null,o,c,e),[e]),o.flags|=2048,bi(9,ci.bind(null,o,c,i,s),void 0,null),i},useId:function(){var e=Th(),s=Q.identifierPrefix;if(I){var i=sg,o=rg;i=(o&~(1<<32-oc(o)-1)).toString(32)+i,s=":"+s+"R"+i,i=Kh++,0<i&&(s+="H"+i.toString(32)),s+=":"}else i=Lh++,s=":"+s+"r"+i.toString(32)+":";return e.memoizedState=s},unstable_isNewReconciler:!1},Ph={readContext:eh,useCallback:si,useContext:eh,useEffect:$h,useImperativeHandle:qi,useInsertionEffect:ni,useLayoutEffect:oi,useMemo:ti,useReducer:Wh,useRef:ji,useState:function(){return Wh(Vh)},useDebugValue:ri,useDeferredValue:function(e){var s=Uh();return ui(s,N.memoizedState,e)},useTransition:function(){var e=Wh(Vh)[0],s=Uh().memoizedState;return[e,s]},useMutableSource:Yh,useSyncExternalStore:Zh,useId:wi,unstable_isNewReconciler:!1},Qh={readContext:eh,useCallback:si,useContext:eh,useEffect:$h,useImperativeHandle:qi,useInsertionEffect:ni,useLayoutEffect:oi,useMemo:ti,useReducer:Xh,useRef
vendor: 5,955 bytes, lines 39-41
39:ji,useState:function(){return Xh(Vh)},useDebugValue:ri,useDeferredValue:function(e){var s=Uh();return N===null?s.memoizedState=e:ui(s,N.memoizedState,e)},useTransition:function(){var e=Xh(Vh)[0],s=Uh().memoizedState;return[e,s]},useMutableSource:Yh,useSyncExternalStore:Zh,useId:wi,unstable_isNewReconciler:!1};function Ci(e,s){if(e&&e.defaultProps){s=A({},s),e=e.defaultProps;for(var i in e)s[i]===void 0&&(s[i]=e[i]);return s}return s}function Di(e,s,i,o){s=e.memoizedState,i=i(o,s),i=i==null?s:A({},s,i),e.memoizedState=i,e.lanes===0&&(e.updateQueue.baseState=i)}var Ei={isMounted:function(e){return(e=e._reactInternals)?Vb(e)===e:!1},enqueueSetState:function(e,s,i){e=e._reactInternals;var o=R(),a=yi(e),c=mh(o,a);c.payload=s,i!=null&&(c.callback=i),s=nh(e,c,a),s!==null&&(gi(s,e,a,o),oh(s,e,a))},enqueueReplaceState:function(e,s,i){e=e._reactInternals;var o=R(),a=yi(e),c=mh(o,a);c.tag=1,c.payload=s,i!=null&&(c.callback=i),s=nh(e,c,a),s!==null&&(gi(s,e,a,o),oh(s,e,a))},enqueueForceUpdate:function(e,s){e=e._reactInternals;var i=R(),o=yi(e),a=mh(i,o);a.tag=2,s!=null&&(a.callback=s),s=nh(e,a,o),s!==null&&(gi(s,e,o,i),oh(s,e,o))}};function Fi(e,s,i,o,a,c,d){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(o,c,d):s.prototype&&s.prototype.isPureReactComponent?!Ie(i,o)||!Ie(a,c):!0}function Gi(e,s,i){var o=!1,a=Vf,c=s.contextType;return typeof c=="object"&&c!==null?c=eh(c):(a=Zf(s)?Xf:H.current,o=s.contextTypes,c=(o=o!=null)?Yf(e,a):Vf),s=new s(i,c),e.memoizedState=s.state!==null&&s.state!==void 0?s.state:null,s.updater=Ei,e.stateNode=s,s._reactInternals=e,o&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=a,e.__reactInternalMemoizedMaskedChildContext=c),s}function Hi(e,s,i,o){e=s.state,typeof s.componentWillReceiveProps=="function"&&s.componentWillReceiveProps(i,o),typeof s.UNSAFE_componentWillReceiveProps=="function"&&s.UNSAFE_componentWillReceiveProps(i,o),s.state!==e&&Ei.enqueueReplaceState(s,s.state,null)}function Ii(e,s,i,o){var a=e.stateNode;a.props=i,a.state=e.memoizedState,a.refs={},kh(e);var c=s.contextType;typeof c=="object"&&c!==null?a.context=eh(c):(c=Zf(s)?Xf:H.current,a.context=Yf(e,c)),a.state=e.memoizedState,c=s.getDerivedStateFromProps,typeof c=="function"&&(Di(e,s,c,i),a.state=e.memoizedState),typeof s.getDerivedStateFromProps=="function"||typeof a.getSnapshotBeforeUpdate=="function"||typeof a.UNSAFE_componentWillMount!="function"&&typeof a.componentWillMount!="function"||(s=a.state,typeof a.componentWillMount=="function"&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount=="function"&&a.UNSAFE_componentWillMount(),s!==a.state&&Ei.enqueueReplaceState(a,a.state,null),qh(e,i,a,o),a.state=e.memoizedState),typeof a.componentDidMount=="function"&&(e.flags|=4194308)}function Ji(e,s){try{var i="",o=s;do i+=Pa(o),o=o.return;while(o);var a=i}catch(c){a=` 40Error generating stack: `+c.message+` 41`+c.stack}return{value:e,source:s,stack:a,digest:null}}function Ki(e,s,i){return{value:e,source:null,stack:i??null,digest:s??null}}function Li(e,s){try{console.error(s.value)}catch(i){setTimeout(function(){throw i})}}var Mi=typeof WeakMap=="function"?WeakMap:Map;function Ni(e,s,i){i=mh(-1,i),i.tag=3,i.payload={element:null};var o=s.value;return i.callback=function(){Oi||(Oi=!0,Pi=o),Li(e,s)},i}function Qi(e,s,i){i=mh(-1,i),i.tag=3;var o=e.type.getDerivedStateFromError;if(typeof o=="function"){var a=s.value;i.payload=function(){return o(a)},i.callback=function(){Li(e,s)}}var c=e.stateNode;return c!==null&&typeof c.componentDidCatch=="function"&&(i.callback=function(){Li(e,s),typeof o!="function"&&(Ri===null?Ri=new Set([this]):Ri.add(this));var d=s.stack;this.componentDidCatch(s.value,{componentStack:d!==null?d:""})}),i}function Si(e,s,i){var o=e.pingCache;if(o===null){o=e.pingCache=new Mi;var a=new Set;o.set(s,a)}else a=o.get(s),a===void 0&&(a=new Set,o.set(s,a));a.has(i)||(a.add(i),e=Ti.bind(null,e,s,i),s.then(e,e))}function Ui(e){do{var s;if((s=e.tag===13)&&(s=e.memoizedState,s=s!==null?s.dehydrated!==null:!0),s)return e;e=e.return}while(e!==null);return null}function Vi(e,s,i,o,a){return e.mode&1?(e.flags|=65536,e.lanes=a,e):(e===s?e.flags|=65536:(e.flags|=128,i.flags|=131072,i.flags&=-52805,i.tag===1&&(i.alternate===null?i.tag=17:(s=mh(-1,1),s.tag=2,nh(i,s,1))),i.lanes|=1),e)}var Wi=ua.ReactCurrentOwner,dh=!1;function Xi(e,s,i,o){s.child=e===null?Vg(s,null,i,o):Ug(s,e.child,i,o)}function Yi(e,s,i,o,a){i=i.render;var c=s.ref;return ch(s,a),o=Nh(e,s,i,o,c,a),i=Sh(),e!==null&&!dh?(s.updateQueue=e.updateQueue,s.flags&=-2053,e.lanes&=~a,Zi(e,s,a)):(I&&i&&vg(s),s.flags|=1,Xi(e,s,o,a),s.child)}function $i(e,s,i,o,a){if(e===null){var c=i.type;return typeof c=="function"&&!aj(c)&&c.defaultProps===void 0&&i.compare===null&&i.defaultProps===void 0?(s.tag=15,s.type=c,bj(e,s,c,o,a)):(e=Rg(i.type,null,o,s,s.mode,a),e.ref=s.ref,e.return=s,s.child=e)}if(c=e.child,!(e.lanes&a)){var d=c.memoizedProps;if(i=i.compare,i=i!==null?i:Ie,i(d,o)&&e.ref===s.ref)return Zi(e,s,a)}return s.flags|=1,e=Pg(c,o),e.ref=s.ref,e.return=s,s.child=e}function bj(e,s,i,o,a){if(e!==null){var c=e.memoizedProps;if(Ie(c,o)&&e.ref===s.ref)if(dh=!1,s.pendingProps=o=c,(e.lanes&a)!==0)e.flags&131072&&(dh=!0);else return s.lanes=e.lanes,Zi(e,s,a)}return cj(e,s,i,o,a)}function dj(e,s,i){var o=s.pendingProps,a=o.children,c=e!==null?e.memoizedState:null;if(o.mode==="hidden")if(!(s.mode&1))s.memoizedState={baseLanes:0,cachePool:null,transitions:null},G(ej,fj),fj|=i;else{if(!(i&1073741824))return e=c!==null?c.baseLanes|i:i,s.lanes=s.childLanes=1073741824,s.memoizedState={baseLanes:e,cachePool:null,transitions:null},s.updateQueue=null,G(ej,fj),fj|=e,null;s.memoizedState={baseLanes:0,cachePool:null,transitions:null},o=c!==null?c.baseLanes:i,G(ej,fj),fj|=o}else c!==null?(o=c.baseLanes|i,s.memoizedState=null):o=i,G(ej,fj),fj|=o;return Xi(e,s,a,i),s.child}function gj(e,s){var i=s.ref;(e===null&&i!==null||e!==null&&e.ref!==i)&&(s.flags|=512,s.flags|=2097152)}
vendor: 4,512 bytes, line 41
41function cj(e,s,i,o,a){var c=Zf(i)?Xf:H.current;return c=Yf(s,c),ch(s,a),i=Nh(e,s,i,o,c,a),o=Sh(),e!==null&&!dh?(s.updateQueue=e.updateQueue,s.flags&=-2053,e.lanes&=~a,Zi(e,s,a)):(I&&o&&vg(s),s.flags|=1,Xi(e,s,i,a),s.child)}function hj(e,s,i,o,a){if(Zf(i)){var c=!0;cg(s)}else c=!1;if(ch(s,a),s.stateNode===null)ij(e,s),Gi(s,i,o),Ii(s,i,o,a),o=!0;else if(e===null){var d=s.stateNode,h=s.memoizedProps;d.props=h;var g=d.context,b=i.contextType;typeof b=="object"&&b!==null?b=eh(b):(b=Zf(i)?Xf:H.current,b=Yf(s,b));var _=i.getDerivedStateFromProps,_e=typeof _=="function"||typeof d.getSnapshotBeforeUpdate=="function";_e||typeof d.UNSAFE_componentWillReceiveProps!="function"&&typeof d.componentWillReceiveProps!="function"||(h!==o||g!==b)&&Hi(s,d,o,b),jh=!1;var $=s.memoizedState;d.state=$,qh(s,o,d,a),g=s.memoizedState,h!==o||$!==g||Wf.current||jh?(typeof _=="function"&&(Di(s,i,_,o),g=s.memoizedState),(h=jh||Fi(s,i,h,o,$,g,b))?(_e||typeof d.UNSAFE_componentWillMount!="function"&&typeof d.componentWillMount!="function"||(typeof d.componentWillMount=="function"&&d.componentWillMount(),typeof d.UNSAFE_componentWillMount=="function"&&d.UNSAFE_componentWillMount()),typeof d.componentDidMount=="function"&&(s.flags|=4194308)):(typeof d.componentDidMount=="function"&&(s.flags|=4194308),s.memoizedProps=o,s.memoizedState=g),d.props=o,d.state=g,d.context=b,o=h):(typeof d.componentDidMount=="function"&&(s.flags|=4194308),o=!1)}else{d=s.stateNode,lh(e,s),h=s.memoizedProps,b=s.type===s.elementType?h:Ci(s.type,h),d.props=b,_e=s.pendingProps,$=d.context,g=i.contextType,typeof g=="object"&&g!==null?g=eh(g):(g=Zf(i)?Xf:H.current,g=Yf(s,g));var et=i.getDerivedStateFromProps;(_=typeof et=="function"||typeof d.getSnapshotBeforeUpdate=="function")||typeof d.UNSAFE_componentWillReceiveProps!="function"&&typeof d.componentWillReceiveProps!="function"||(h!==_e||$!==g)&&Hi(s,d,o,g),jh=!1,$=s.memoizedState,d.state=$,qh(s,o,d,a);var it=s.memoizedState;h!==_e||$!==it||Wf.current||jh?(typeof et=="function"&&(Di(s,i,et,o),it=s.memoizedState),(b=jh||Fi(s,i,b,o,$,it,g)||!1)?(_||typeof d.UNSAFE_componentWillUpdate!="function"&&typeof d.componentWillUpdate!="function"||(typeof d.componentWillUpdate=="function"&&d.componentWillUpdate(o,it,g),typeof d.UNSAFE_componentWillUpdate=="function"&&d.UNSAFE_componentWillUpdate(o,it,g)),typeof d.componentDidUpdate=="function"&&(s.flags|=4),typeof d.getSnapshotBeforeUpdate=="function"&&(s.flags|=1024)):(typeof d.componentDidUpdate!="function"||h===e.memoizedProps&&$===e.memoizedState||(s.flags|=4),typeof d.getSnapshotBeforeUpdate!="function"||h===e.memoizedProps&&$===e.memoizedState||(s.flags|=1024),s.memoizedProps=o,s.memoizedState=it),d.props=o,d.state=it,d.context=g,o=b):(typeof d.componentDidUpdate!="function"||h===e.memoizedProps&&$===e.memoizedState||(s.flags|=4),typeof d.getSnapshotBeforeUpdate!="function"||h===e.memoizedProps&&$===e.memoizedState||(s.flags|=1024),o=!1)}return jj(e,s,i,o,c,a)}function jj(e,s,i,o,a,c){gj(e,s);var d=(s.flags&128)!==0;if(!o&&!d)return a&&dg(s,i,!1),Zi(e,s,c);o=s.stateNode,Wi.current=s;var h=d&&typeof i.getDerivedStateFromError!="function"?null:o.render();return s.flags|=1,e!==null&&d?(s.child=Ug(s,e.child,null,c),s.child=Ug(s,null,h,c)):Xi(e,s,h,c),s.memoizedState=o.state,a&&dg(s,i,!0),s.child}function kj(e){var s=e.stateNode;s.pendingContext?ag(e,s.pendingContext,s.pendingContext!==s.context):s.context&&ag(e,s.context,!1),yh(e,s.containerInfo)}function lj(e,s,i,o,a){return Ig(),Jg(a),s.flags|=256,Xi(e,s,i,o),s.child}var mj={dehydrated:null,treeContext:null,retryLane:0};function nj(e){return{baseLanes:e,cachePool:null,transitions:null}}function oj(e,s,i){var o=s.pendingProps,a=L$1.current,c=!1,d=(s.flags&128)!==0,h;if((h=d)||(h=e!==null&&e.memoizedState===null?!1:(a&2)!==0),h?(c=!0,s.flags&=-129):(e===null||e.memoizedState!==null)&&(a|=1),G(L$1,a&1),e===null)return Eg(s),e=s.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(s.mode&1?e.data==="$!"?s.lanes=8:s.lanes=1073741824:s.lanes=1,null):(d=o.children,e=o.fallback,c?(o=s.mode,c=s.child,d={mode:"hidden",children:d},!(o&1)&&c!==null?(c.childLanes=0,c.pendingProps=d):c=pj(d,o,0,null),e=Tg(e,o,i,null),c.return=s,e.return=s,c.sibling=e,s.child=c,s.child.memoizedState=nj(i),s.memoizedState=mj,e):qj(s,d));if(a=e.memoizedState,a!==null&&(h=a.dehydrated,h!==null))return rj(e,s,d,o,h,a,i);if(c){c=o.fallback,d=s.mode,a=e.child,h=a.sibling;var g={mode:"hidden",children:o.children};return!(d&1)&&s.child!==a?(o=s.child,o.childLanes=0,o.pendingProps=g,s.deleti
vendor: 9,142 bytes, line 41
41ons=null):(o=Pg(a,g),o.subtreeFlags=a.subtreeFlags&14680064),h!==null?c=Pg(h,c):(c=Tg(c,d,i,null),c.flags|=2),c.return=s,o.return=s,o.sibling=c,s.child=o,o=c,c=s.child,d=e.child.memoizedState,d=d===null?nj(i):{baseLanes:d.baseLanes|i,cachePool:null,transitions:d.transitions},c.memoizedState=d,c.childLanes=e.childLanes&~i,s.memoizedState=mj,o}return c=e.child,e=c.sibling,o=Pg(c,{mode:"visible",children:o.children}),!(s.mode&1)&&(o.lanes=i),o.return=s,o.sibling=null,e!==null&&(i=s.deletions,i===null?(s.deletions=[e],s.flags|=16):i.push(e)),s.child=o,s.memoizedState=null,o}function qj(e,s){return s=pj({mode:"visible",children:s},e.mode,0,null),s.return=e,e.child=s}function sj(e,s,i,o){return o!==null&&Jg(o),Ug(s,e.child,null,i),e=qj(s,s.pendingProps.children),e.flags|=2,s.memoizedState=null,e}function rj(e,s,i,o,a,c,d){if(i)return s.flags&256?(s.flags&=-257,o=Ki(Error(p(422))),sj(e,s,d,o)):s.memoizedState!==null?(s.child=e.child,s.flags|=128,null):(c=o.fallback,a=s.mode,o=pj({mode:"visible",children:o.children},a,0,null),c=Tg(c,a,d,null),c.flags|=2,o.return=s,c.return=s,o.sibling=c,s.child=o,s.mode&1&&Ug(s,e.child,null,d),s.child.memoizedState=nj(d),s.memoizedState=mj,c);if(!(s.mode&1))return sj(e,s,d,null);if(a.data==="$!"){if(o=a.nextSibling&&a.nextSibling.dataset,o)var h=o.dgst;return o=h,c=Error(p(419)),o=Ki(c,o,void 0),sj(e,s,d,o)}if(h=(d&e.childLanes)!==0,dh||h){if(o=Q,o!==null){switch(d&-d){case 4:a=2;break;case 16:a=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:a=32;break;case 536870912:a=268435456;break;default:a=0}a=a&(o.suspendedLanes|d)?0:a,a!==0&&a!==c.retryLane&&(c.retryLane=a,ih(e,a),gi(o,e,a,-1))}return tj(),o=Ki(Error(p(421))),sj(e,s,d,o)}return a.data==="$?"?(s.flags|=128,s.child=e.child,s=uj.bind(null,e),a._reactRetry=s,null):(e=c.treeContext,yg=Lf(a.nextSibling),xg=s,I=!0,zg=null,e!==null&&(og[pg++]=rg,og[pg++]=sg,og[pg++]=qg,rg=e.id,sg=e.overflow,qg=s),s=qj(s,o.children),s.flags|=4096,s)}function vj(e,s,i){e.lanes|=s;var o=e.alternate;o!==null&&(o.lanes|=s),bh(e.return,s,i)}function wj(e,s,i,o,a){var c=e.memoizedState;c===null?e.memoizedState={isBackwards:s,rendering:null,renderingStartTime:0,last:o,tail:i,tailMode:a}:(c.isBackwards=s,c.rendering=null,c.renderingStartTime=0,c.last=o,c.tail=i,c.tailMode=a)}function xj(e,s,i){var o=s.pendingProps,a=o.revealOrder,c=o.tail;if(Xi(e,s,o.children,i),o=L$1.current,o&2)o=o&1|2,s.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=s.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&vj(e,i,s);else if(e.tag===19)vj(e,i,s);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===s)break e;for(;e.sibling===null;){if(e.return===null||e.return===s)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}o&=1}if(G(L$1,o),!(s.mode&1))s.memoizedState=null;else switch(a){case"forwards":for(i=s.child,a=null;i!==null;)e=i.alternate,e!==null&&Ch(e)===null&&(a=i),i=i.sibling;i=a,i===null?(a=s.child,s.child=null):(a=i.sibling,i.sibling=null),wj(s,!1,a,i,c);break;case"backwards":for(i=null,a=s.child,s.child=null;a!==null;){if(e=a.alternate,e!==null&&Ch(e)===null){s.child=a;break}e=a.sibling,a.sibling=i,i=a,a=e}wj(s,!0,i,null,c);break;case"together":wj(s,!1,null,null,void 0);break;default:s.memoizedState=null}return s.child}function ij(e,s){!(s.mode&1)&&e!==null&&(e.alternate=null,s.alternate=null,s.flags|=2)}function Zi(e,s,i){if(e!==null&&(s.dependencies=e.dependencies),rh|=s.lanes,!(i&s.childLanes))return null;if(e!==null&&s.child!==e.child)throw Error(p(153));if(s.child!==null){for(e=s.child,i=Pg(e,e.pendingProps),s.child=i,i.return=s;e.sibling!==null;)e=e.sibling,i=i.sibling=Pg(e,e.pendingProps),i.return=s;i.sibling=null}return s.child}function yj(e,s,i){switch(s.tag){case 3:kj(s),Ig();break;case 5:Ah(s);break;case 1:Zf(s.type)&&cg(s);break;case 4:yh(s,s.stateNode.containerInfo);break;case 10:var o=s.type._context,a=s.memoizedProps.value;G(Wg,o._currentValue),o._currentValue=a;break;case 13:if(o=s.memoizedState,o!==null)return o.dehydrated!==null?(G(L$1,L$1.current&1),s.flags|=128,null):i&s.child.childLanes?oj(e,s,i):(G(L$1,L$1.current&1),e=Zi(e,s,i),e!==null?e.sibling:null);G(L$1,L$1.current&1);break;case 19:if(o=(i&s.childLanes)!==0,e.flags&128){if(o)return xj(e,s,i);s.flags|=128}if(a=s.memoizedState,a!==null&&(a.rendering=null,a.tail=null,a.lastEffect=null),G(L$1,L$1.current),o)break;return null;case 22:case 23:return s.lanes=0,dj(e,s,i)}return Zi(e,s,i)}var zj,Aj,Bj,Cj;zj=function(e,s){for(var i=s.child;i!==null;){if(i.tag===5||i.tag===6)e.appendChild(i.stateNode);else if(i.tag!==4&&i.child!==null){i.child.return=i,i=i.child;continue}if(i===s)break;for(;i.sibling===null;){if(i.return===null||i.return===s)return;i=i.return}i.sibling.return=i.return,i=i.sibling}};Aj=function(){};Bj=function(e,s,i,o){var a=e.memoizedProps;if(a!==o){e=s.stateNode,xh(uh.current);var c=null;switch(i){case"input":a=Ya(e,a),o=Ya(e,o),c=[];break;case"select":a=A({},a,{value:void 0}),o=A({},o,{value:void 0}),c=[];break;case"textarea":a=gb(e,a),o=gb(e,o),c=[];break;default:typeof a.onClick!="function"&&typeof o.onClick=="function"&&(e.onclick=Bf)}ub(i,o);var d;i=null;for(b in a)if(!o.hasOwnProperty(b)&&a.hasOwnProperty(b)&&a[b]!=null)if(b==="style"){var h=a[b];for(d in h)h.hasOwnProperty(d)&&(i||(i={}),i[d]="")}else b!=="dangerouslySetInnerHTML"&&b!=="children"&&b!=="suppressContentEditableWarning"&&b!=="suppressHydrationWarning"&&b!=="autoFocus"&&(ea.hasOwnProperty(b)?c||(c=[]):(c=c||[]).push(b,null));for(b in o){var g=o[b];if(h=a!=null?a[b]:void 0,o.hasOwnProperty(b)&&g!==h&&(g!=null||h!=null))if(b==="style")if(h){for(d in h)!h.hasOwnProperty(d)||g&&g.hasOwnProperty(d)||(i||(i={}),i[d]="");for(d in g)g.hasOwnProperty(d)&&h[d]!==g[d]&&(i||(i={}),i[d]=g[d])}else i||(c||(c=[]),c.push(b,i)),i=g;else b==="dangerouslySetInnerHTML"?(g=g?g.__html:void 0,h=h?h.__html:void 0,g!=null&&h!==g&&(c=c||[]).push(b,g)):b==="children"?typeof g!="string"&&typeof g!="number"||(c=c||[]).push(b,""+g):b!=="suppressContentEditableWarning"&&b!=="suppressHydrationWarning"&&(ea.hasOwnProperty(b)?(g!=null&&b==="onScroll"&&D$1("scroll",e),c||h===g||(c=[])):(c=c||[]).push(b,g))}i&&(c=c||[]).push("style",i);var b=c;(s.updateQueue=b)&&(s.flags|=4)}};Cj=function(e,s,i,o){i!==o&&(s.flags|=4)};function Dj(e,s){if(!I)switch(e.tailMode){case"hidden":s=e.tail;for(var i=null;s!==null;)s.alternate!==null&&(i=s),s=s.sibling;i===null?e.tail=null:i.sibling=null;break;case"collapsed":i=e.tail;for(var o=null;i!==null;)i.alternate!==null&&(o=i),i=i.sibling;o===null?s||e.tail===null?e.tail=null:e.tail.sibling=null:o.sibling=null}}function S(e){var s=e.alternate!==null&&e.alternate.child===e.child,i=0,o=0;if(s)for(var a=e.child;a!==null;)i|=a.lanes|a.childLanes,o|=a.subtreeFlags&14680064,o|=a.flags&14680064,a.return=e,a=a.sibling;else for(a=e.child;a!==null;)i|=a.lanes|a.childLanes,o|=a.subtreeFlags,o|=a.flags,a.return=e,a=a.sibling;return e.subtreeFlags|=o,e.childLanes=i,s}function Ej(e,s,i){var o=s.pendingProps;switch(wg(s),s.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return S(s),null;case 1:return Zf(s.type)&&$f(),S(s),null;case 3:return o=s.stateNode,zh(),E$1(Wf),E$1(H),Eh(),o.pendingContext&&(o.context=o.pendingContext,o.pendingContext=null),(e===null||e.child===null)&&(Gg(s)?s.flags|=4:e===null||e.memoizedState.isDehydrated&&!(s.flags&256)||(s.flags|=1024,zg!==null&&(Fj(zg),zg=null))),Aj(e,s),S(s),null;case 5:Bh(s);var a=xh(wh.current);if(i=s.type,e!==null&&s.stateNode!=null)Bj(e,s,i,o,a),e.ref!==s.ref&&(s.flags|=512,s.flags|=2097152);else{if(!o){if(s.stateNode===null)throw Error(p(166));return S(s),null}if(e=xh(uh.current),Gg(s)){o=s.stateNode,i=s.type;var c=s.memoizedProps;switch(o[Of]=s,o[Pf]=c,e=(s.mode&1)!==0,i){case"dialog":D$1("cancel",o),D$1("close",o);break;case"iframe":case"object":case"embed":D$1("load",o);break;case"video":case"audio":for(a=0;a<lf.length;a++)D$1(lf[a],o);break;case"source":D$1("error",o);break;case"img":case"image":case"link":D$1("error",o),D$1("load",o);break;case"details":D$1("toggle",o);break;case"input":Za(o,c),D$1("invalid",o);break;case"select":o._wrapperState={wasMultiple:!!c.multiple},D$1("invalid",o);break;case"textarea":hb(o,c),D$1("invalid",o)}ub(i,c),a=null;for(var d in c)if(c.hasOwnProperty(d)){var h=c[d];d==="children"?typeof h=="string"?o.textContent!==h&&(c.suppressHydrationWarning!==!0&&Af(o.textContent,h,e),a=["children",h]):typeof h=="number"&&o.textContent!==""+h&&(c.suppressHydrationWarning!==!0&&Af(o.textContent,h,e),a=["children",""+h]):ea.hasOwnProperty(d)&&h!=null&&d==="onScroll"&&D$1("scroll",o)}switch(i){case"input":Va(o),db$1(o,c,!0);break;case"textarea":Va(o),jb(o);break;case"select":case"option":break;default:typeof c.onClick=="function"&&(o.onclick=Bf)}o=a,s.updateQueue=o,o!==null&&(s.flags|=4)}else{d=a.nodeType===9?a:a.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=kb(i)),e==="http://www.w3.org/1999/xhtml"?i==="script"?(e=d.createElement("div"),e.innerHTML="<script><\/script>
41",e=e.removeChild(e.firstChild)):typeof o.is=="string"?e=d.createElement(i,{is:o.is}):(e=d.createElement(i),i==="select"&&(d=e,o.multiple?d.multiple=!0:o.size&&(d.size=o.size))):e=d.createElementNS(e,i),e[Of]=s,e[Pf]=o,zj(e,s,!1,!1),s.stateNode=e;e:{switch(d=vb(i,o),i){case"dialog":D$1("cancel",e),D$1("close",e),a=o;break;case"iframe":case"object":case"embed":D$1("load",e),a=o;break;case"video":case"audio":for(a=0;a<lf.length;a++)D$1(lf[a],e);a=o;break;case"source":D$1("error",e),a=o;break;case"img":case"image":case"link":D$1("error",e),D$1("load",e),a=o;break;case"details":D$1("toggle",e),a=o;break;case"input":Za(e,o),a=Ya(e,o),D$1("invalid",e);break;case"option":a=o;break;case"select":e._wrapperState={wasMultiple:!!o.multiple},a=A({},o,{value:void 0}),D$1("invalid",e);break;case"textarea":hb(e,o),a=gb(e,o),D$1("invalid",e);break;default:a=o}ub(i,a),h=a;for(c in h)if(h.hasOwnProperty(c)){var g=h[c];c==="style"?sb(e,g):c==="dangerouslySetInnerHTML"?(g=g?g.__html:void 0,g!=null&&nb(e,g)):c==="children"?typeof g=="string"?(i!=="textarea"||g!=="")&&ob(e,g):typeof g=="number"&&ob(e,""+g):c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&c!=="autoFocus"&&(ea.hasOwnProperty(c)?g!=null&&c==="onScroll"&&D$1("scroll",e):g!=null&&ta(e,c,g,d))}switch(i){case"input":Va(e),db$1(e,o,!1);break;case"textarea":Va(e),jb(e);break;case"option":o.value!=null&&e.setAttribute("value",""+Sa(o.value));break;case"select":e.multiple=!!o.multiple,c=o.value,c!=null?fb(e,!!o.multiple,c,!1):o.defaultValue!=null&&fb(e,!!o.multiple,o.defaultValue,!0);break;default:typeof a.onClick=="function"&&(e.onclick=Bf)}switch(i){case"button":case"input":case"select":case"textarea":o=!!o.autoFocus;break e;case"img":o=!0;break e;default:o=!1}}o&&(s.flags|=4)}s.ref!==null&&(s.flags|=512,s.flags|=2097152)}return S(s),null;case 6:if(e&&s.stateNode!=null)Cj(e,s,e.memoizedProps,o);else{if(typeof o!="string"&&s.stateNode===null)throw Error(p(166));if(i=xh(wh.current),xh(uh.current),Gg(s)){if(o=s.stateNode,i=s.memoizedProps,o[Of]=s,(c=o.nodeValue!==i)&&(e=xg,e!==null))switch(e.tag){case 3:Af(o.nodeValue,i,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&Af(o.nodeValue,i,(e.mode&1)!==0)}c&&(s.flags|=4)}else o=(i.nodeType===9?i:i.ownerDocument).createTextNode(o),o[Of]=s,s.stateNode=o}return S(s),null;case 13:if(E$1(L$1),o=s.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(I&&yg!==null&&s.mode&1&&!(s.flags&128))Hg(),Ig(),s.flags|=98560,c=!1;else if(c=Gg(s),o!==null&&o.dehydrated!==null){if(e===null){if(!c)throw Error(p(318));if(c=s.memoizedState,c=c!==null?c.dehydrated:null,!c)throw Error(p(317));c[Of]=s}else Ig(),!(s.flags&128)&&(s.memoizedState=null),s.flags|=4;S(s),c=!1}else zg!==null&&(Fj(zg),zg=null),c=!0;if(!c)return s.flags&65536?s:null}return s.flags&128?(s.lanes=i,s):(o=o!==null,o!==(e!==null&&e.memoizedState!==null)&&o&&(s.child.flags|=8192,s.mode&1&&(e===null||L$1.current&1?T===0&&(T=3):tj())),s.updateQueue!==null&&(s.flags|=4),S(s),null);case 4:return zh(),Aj(e,s),e===null&&sf(s.stateNode.containerInfo),S(s),null;case 10:return ah(s.type._context),S(s),null;case 17:return Zf(s.type)&&$f(),S(s),null;case 19:if(E$1(L$1),c=s.memoizedState,c===null)return S(s),null;if(o=(s.flags&128)!==0,d=c.rendering,d===null)if(o)Dj(c,!1);else{if(T!==0||e!==null&&e.flags&128)for(e=s.child;e!==null;){if(d=Ch(e),d!==null){for(s.flags|=128,Dj(c,!1),o=d.updateQueue,o!==null&&(s.updateQueue=o,s.flags|=4),s.subtreeFlags=0,o=i,i=s.child;i!==null;)c=i,e=o,c.flags&=14680066,d=c.alternate,d===null?(c.childLanes=0,c.lanes=e,c.child=null,c.subtreeFlags=0,c.memoizedProps=null,c.memoizedState=null,c.updateQueue=null,c.dependencies=null,c.stateNode=null):(c.childLanes=d.childLanes,c.lanes=d.lanes,c.child=d.child,c.subtreeFlags=0,c.deleti
vendor: 6,259 bytes, line 41
41ons=null,c.memoizedProps=d.memoizedProps,c.memoizedState=d.memoizedState,c.updateQueue=d.updateQueue,c.type=d.type,e=d.dependencies,c.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),i=i.sibling;return G(L$1,L$1.current&1|2),s.child}e=e.sibling}c.tail!==null&&B()>Gj&&(s.flags|=128,o=!0,Dj(c,!1),s.lanes=4194304)}else{if(!o)if(e=Ch(d),e!==null){if(s.flags|=128,o=!0,i=e.updateQueue,i!==null&&(s.updateQueue=i,s.flags|=4),Dj(c,!0),c.tail===null&&c.tailMode==="hidden"&&!d.alternate&&!I)return S(s),null}else 2*B()-c.renderingStartTime>Gj&&i!==1073741824&&(s.flags|=128,o=!0,Dj(c,!1),s.lanes=4194304);c.isBackwards?(d.sibling=s.child,s.child=d):(i=c.last,i!==null?i.sibling=d:s.child=d,c.last=d)}return c.tail!==null?(s=c.tail,c.rendering=s,c.tail=s.sibling,c.renderingStartTime=B(),s.sibling=null,i=L$1.current,G(L$1,o?i&1|2:i&1),s):(S(s),null);case 22:case 23:return Hj(),o=s.memoizedState!==null,e!==null&&e.memoizedState!==null!==o&&(s.flags|=8192),o&&s.mode&1?fj&1073741824&&(S(s),s.subtreeFlags&6&&(s.flags|=8192)):S(s),null;case 24:return null;case 25:return null}throw Error(p(156,s.tag))}function Ij(e,s){switch(wg(s),s.tag){case 1:return Zf(s.type)&&$f(),e=s.flags,e&65536?(s.flags=e&-65537|128,s):null;case 3:return zh(),E$1(Wf),E$1(H),Eh(),e=s.flags,e&65536&&!(e&128)?(s.flags=e&-65537|128,s):null;case 5:return Bh(s),null;case 13:if(E$1(L$1),e=s.memoizedState,e!==null&&e.dehydrated!==null){if(s.alternate===null)throw Error(p(340));Ig()}return e=s.flags,e&65536?(s.flags=e&-65537|128,s):null;case 19:return E$1(L$1),null;case 4:return zh(),null;case 10:return ah(s.type._context),null;case 22:case 23:return Hj(),null;case 24:return null;default:return null}}var Jj=!1,U=!1,Kj=typeof WeakSet=="function"?WeakSet:Set,V=null;function Lj(e,s){var i=e.ref;if(i!==null)if(typeof i=="function")try{i(null)}catch(o){W(e,s,o)}else i.current=null}function Mj(e,s,i){try{i()}catch(o){W(e,s,o)}}var Nj=!1;function Oj(e,s){if(Cf=dd,e=Me(),Ne(e)){if("selectionStart"in e)var i={start:e.selectionStart,end:e.selectionEnd};else e:{i=(i=e.ownerDocument)&&i.defaultView||window;var o=i.getSelection&&i.getSelection();if(o&&o.rangeCount!==0){i=o.anchorNode;var a=o.anchorOffset,c=o.focusNode;o=o.focusOffset;try{i.nodeType,c.nodeType}catch{i=null;break e}var d=0,h=-1,g=-1,b=0,_=0,_e=e,$=null;t:for(;;){for(var et;_e!==i||a!==0&&_e.nodeType!==3||(h=d+a),_e!==c||o!==0&&_e.nodeType!==3||(g=d+o),_e.nodeType===3&&(d+=_e.nodeValue.length),(et=_e.firstChild)!==null;)$=_e,_e=et;for(;;){if(_e===e)break t;if($===i&&++b===a&&(h=d),$===c&&++_===o&&(g=d),(et=_e.nextSibling)!==null)break;_e=$,$=_e.parentNode}_e=et}i=h===-1||g===-1?null:{start:h,end:g}}else i=null}i=i||{start:0,end:0}}else i=null;for(Df={focusedElem:e,selectionRange:i},dd=!1,V=s;V!==null;)if(s=V,e=s.child,(s.subtreeFlags&1028)!==0&&e!==null)e.return=s,V=e;else for(;V!==null;){s=V;try{var it=s.alternate;if(s.flags&1024)switch(s.tag){case 0:case 11:case 15:break;case 1:if(it!==null){var rt=it.memoizedProps,lt=it.memoizedState,st=s.stateNode,ot=st.getSnapshotBeforeUpdate(s.elementType===s.type?rt:Ci(s.type,rt),lt);st.__reactInternalSnapshotBeforeUpdate=ot}break;case 3:var nt=s.stateNode.containerInfo;nt.nodeType===1?nt.textContent="":nt.nodeType===9&&nt.documentElement&&nt.removeChild(nt.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(p(163))}}catch(at){W(s,s.return,at)}if(e=s.sibling,e!==null){e.return=s.return,V=e;break}V=s.return}return it=Nj,Nj=!1,it}function Pj(e,s,i){var o=s.updateQueue;if(o=o!==null?o.lastEffect:null,o!==null){var a=o=o.next;do{if((a.tag&e)===e){var c=a.destroy;a.destroy=void 0,c!==void 0&&Mj(s,i,c)}a=a.next}while(a!==o)}}function Qj(e,s){if(s=s.updateQueue,s=s!==null?s.lastEffect:null,s!==null){var i=s=s.next;do{if((i.tag&e)===e){var o=i.create;i.destroy=o()}i=i.next}while(i!==s)}}function Rj(e){var s=e.ref;if(s!==null){var i=e.stateNode;switch(e.tag){case 5:e=i;break;default:e=i}typeof s=="function"?s(e):s.current=e}}function Sj(e){var s=e.alternate;s!==null&&(e.alternate=null,Sj(s)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(s=e.stateNode,s!==null&&(delete s[Of],delete s[Pf],delete s[of],delete s[Qf],delete s[Rf])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function Tj(e){return e.tag===5||e.tag===3||e.tag===4}function Uj(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Tj(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Vj(e,s,i){var o=e.tag;if(o===5||o===6)e=e.stateNode,s?i.nodeType===8?i.parentNode.insertBefore(e,s):i.insertBefore(e,s):(i.nodeType===8?(s=i.parentNode,s.insertBefore(e,i)):(s=i,s.appendChild(e)),i=i._reactRootContainer,i!=null||s.onclick!==null||(s.onclick=Bf));else if(o!==4&&(e=e.child,e!==null))for(Vj(e,s,i),e=e.sibling;e!==null;)Vj(e,s,i),e=e.sibling}function Wj(e,s,i){var o=e.tag;if(o===5||o===6)e=e.stateNode,s?i.insertBefore(e,s):i.appendChild(e);else if(o!==4&&(e=e.child,e!==null))for(Wj(e,s,i),e=e.sibling;e!==null;)Wj(e,s,i),e=e.sibling}var X$1=null,Xj=!1;function Yj(e,s,i){for(i=i.child;i!==null;)Zj(e,s,i),i=i.sibling}function Zj(e,s,i){if(lc&&typeof lc.onCommitFiberUnmount=="function")try{lc.onCommitFiberUnmount(kc,i)}catch{}switch(i.tag){case 5:U||Lj(i,s);case 6:var o=X$1,a=Xj;X$1=null,Yj(e,s,i),X$1=o,Xj=a,X$1!==null&&(Xj?(e=X$1,i=i.stateNode,e.nodeType===8?e.parentNode.removeChild(i):e.removeChild(i)):X$1.removeChild(i.stateNode));break;case 18:X$1!==null&&(Xj?(e=X$1,i=i.stateNode,e.nodeType===8?Kf(e.parentNode,i):e.nodeType===1&&Kf(e,i),bd(e)):Kf(X$1,i.stateNode));break;case 4:o=X$1,a=Xj,X$1=i.stateNode.containerInfo,Xj=!0,Yj(e,s,i),X$1=o,Xj=a;break;case 0:case 11:case 14:case 15:if(!U&&(o=i.updateQueue,o!==null&&(o=o.lastEffect,o!==null))){a=o=o.next;do{var c=a,d=c.destroy;c=c.tag,d!==void 0&&(c&2||c&4)&&Mj(i,s,d),a=a.next}while(a!==o)}Yj(e,s,i);break;case 1:if(!U&&(Lj(i,s),o=i.stateNode,typeof o.componentWillUnmount=="function"))try{o.props=i.memoizedProps,o.state=i.memoizedState,o.componentWillUnmount()}catch(h){W(i,s,h)}
vendor: 14,662 bytes, line 41
41Yj(e,s,i);break;case 21:Yj(e,s,i);break;case 22:i.mode&1?(U=(o=U)||i.memoizedState!==null,Yj(e,s,i),U=o):Yj(e,s,i);break;default:Yj(e,s,i)}}function ak(e){var s=e.updateQueue;if(s!==null){e.updateQueue=null;var i=e.stateNode;i===null&&(i=e.stateNode=new Kj),s.forEach(function(o){var a=bk.bind(null,e,o);i.has(o)||(i.add(o),o.then(a,a))})}}function ck(e,s){var i=s.deletions;if(i!==null)for(var o=0;o<i.length;o++){var a=i[o];try{var c=e,d=s,h=d;e:for(;h!==null;){switch(h.tag){case 5:X$1=h.stateNode,Xj=!1;break e;case 3:X$1=h.stateNode.containerInfo,Xj=!0;break e;case 4:X$1=h.stateNode.containerInfo,Xj=!0;break e}h=h.return}if(X$1===null)throw Error(p(160));Zj(c,d,a),X$1=null,Xj=!1;var g=a.alternate;g!==null&&(g.return=null),a.return=null}catch(b){W(a,s,b)}}if(s.subtreeFlags&12854)for(s=s.child;s!==null;)dk(s,e),s=s.sibling}function dk(e,s){var i=e.alternate,o=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(ck(s,e),ek(e),o&4){try{Pj(3,e,e.return),Qj(3,e)}catch(rt){W(e,e.return,rt)}try{Pj(5,e,e.return)}catch(rt){W(e,e.return,rt)}}break;case 1:ck(s,e),ek(e),o&512&&i!==null&&Lj(i,i.return);break;case 5:if(ck(s,e),ek(e),o&512&&i!==null&&Lj(i,i.return),e.flags&32){var a=e.stateNode;try{ob(a,"")}catch(rt){W(e,e.return,rt)}}if(o&4&&(a=e.stateNode,a!=null)){var c=e.memoizedProps,d=i!==null?i.memoizedProps:c,h=e.type,g=e.updateQueue;if(e.updateQueue=null,g!==null)try{h==="input"&&c.type==="radio"&&c.name!=null&&ab(a,c),vb(h,d);var b=vb(h,c);for(d=0;d<g.length;d+=2){var _=g[d],_e=g[d+1];_==="style"?sb(a,_e):_==="dangerouslySetInnerHTML"?nb(a,_e):_==="children"?ob(a,_e):ta(a,_,_e,b)}switch(h){case"input":bb(a,c);break;case"textarea":ib(a,c);break;case"select":var $=a._wrapperState.wasMultiple;a._wrapperState.wasMultiple=!!c.multiple;var et=c.value;et!=null?fb(a,!!c.multiple,et,!1):$!==!!c.multiple&&(c.defaultValue!=null?fb(a,!!c.multiple,c.defaultValue,!0):fb(a,!!c.multiple,c.multiple?[]:"",!1))}a[Pf]=c}catch(rt){W(e,e.return,rt)}}break;case 6:if(ck(s,e),ek(e),o&4){if(e.stateNode===null)throw Error(p(162));a=e.stateNode,c=e.memoizedProps;try{a.nodeValue=c}catch(rt){W(e,e.return,rt)}}break;case 3:if(ck(s,e),ek(e),o&4&&i!==null&&i.memoizedState.isDehydrated)try{bd(s.containerInfo)}catch(rt){W(e,e.return,rt)}break;case 4:ck(s,e),ek(e);break;case 13:ck(s,e),ek(e),a=e.child,a.flags&8192&&(c=a.memoizedState!==null,a.stateNode.isHidden=c,!c||a.alternate!==null&&a.alternate.memoizedState!==null||(fk=B())),o&4&&ak(e);break;case 22:if(_=i!==null&&i.memoizedState!==null,e.mode&1?(U=(b=U)||_,ck(s,e),U=b):ck(s,e),ek(e),o&8192){if(b=e.memoizedState!==null,(e.stateNode.isHidden=b)&&!_&&e.mode&1)for(V=e,_=e.child;_!==null;){for(_e=V=_;V!==null;){switch($=V,et=$.child,$.tag){case 0:case 11:case 14:case 15:Pj(4,$,$.return);break;case 1:Lj($,$.return);var it=$.stateNode;if(typeof it.componentWillUnmount=="function"){o=$,i=$.return;try{s=o,it.props=s.memoizedProps,it.state=s.memoizedState,it.componentWillUnmount()}catch(rt){W(o,i,rt)}}break;case 5:Lj($,$.return);break;case 22:if($.memoizedState!==null){gk(_e);continue}}et!==null?(et.return=$,V=et):gk(_e)}_=_.sibling}e:for(_=null,_e=e;;){if(_e.tag===5){if(_===null){_=_e;try{a=_e.stateNode,b?(c=a.style,typeof c.setProperty=="function"?c.setProperty("display","none","important"):c.display="none"):(h=_e.stateNode,g=_e.memoizedProps.style,d=g!=null&&g.hasOwnProperty("display")?g.display:null,h.style.display=rb("display",d))}catch(rt){W(e,e.return,rt)}}}else if(_e.tag===6){if(_===null)try{_e.stateNode.nodeValue=b?"":_e.memoizedProps}catch(rt){W(e,e.return,rt)}}else if((_e.tag!==22&&_e.tag!==23||_e.memoizedState===null||_e===e)&&_e.child!==null){_e.child.return=_e,_e=_e.child;continue}if(_e===e)break e;for(;_e.sibling===null;){if(_e.return===null||_e.return===e)break e;_===_e&&(_=null),_e=_e.return}_===_e&&(_=null),_e.sibling.return=_e.return,_e=_e.sibling}}break;case 19:ck(s,e),ek(e),o&4&&ak(e);break;case 21:break;default:ck(s,e),ek(e)}}function ek(e){var s=e.flags;if(s&2){try{e:{for(var i=e.return;i!==null;){if(Tj(i)){var o=i;break e}i=i.return}throw Error(p(160))}switch(o.tag){case 5:var a=o.stateNode;o.flags&32&&(ob(a,""),o.flags&=-33);var c=Uj(e);Wj(e,c,a);break;case 3:case 4:var d=o.stateNode.containerInfo,h=Uj(e);Vj(e,h,d);break;default:throw Error(p(161))}}catch(g){W(e,e.return,g)}e.flags&=-3}s&4096&&(e.flags&=-4097)}function hk(e,s,i){V=e,ik(e)}function ik(e,s,i){for(var o=(e.mode&1)!==0;V!==null;){var a=V,c=a.child;if(a.tag===22&&o){var d=a.memoizedState!==null||Jj;if(!d){var h=a.alternate,g=h!==null&&h.memoizedState!==null||U;h=Jj;var b=U;if(Jj=d,(U=g)&&!b)for(V=a;V!==null;)d=V,g=d.child,d.tag===22&&d.memoizedState!==null?jk(a):g!==null?(g.return=d,V=g):jk(a);for(;c!==null;)V=c,ik(c),c=c.sibling;V=a,Jj=h,U=b}kk(e)}else a.subtreeFlags&8772&&c!==null?(c.return=a,V=c):kk(e)}}function kk(e){for(;V!==null;){var s=V;if(s.flags&8772){var i=s.alternate;try{if(s.flags&8772)switch(s.tag){case 0:case 11:case 15:U||Qj(5,s);break;case 1:var o=s.stateNode;if(s.flags&4&&!U)if(i===null)o.componentDidMount();else{var a=s.elementType===s.type?i.memoizedProps:Ci(s.type,i.memoizedProps);o.componentDidUpdate(a,i.memoizedState,o.__reactInternalSnapshotBeforeUpdate)}var c=s.updateQueue;c!==null&&sh(s,c,o);break;case 3:var d=s.updateQueue;if(d!==null){if(i=null,s.child!==null)switch(s.child.tag){case 5:i=s.child.stateNode;break;case 1:i=s.child.stateNode}sh(s,d,i)}break;case 5:var h=s.stateNode;if(i===null&&s.flags&4){i=h;var g=s.memoizedProps;switch(s.type){case"button":case"input":case"select":case"textarea":g.autoFocus&&i.focus();break;case"img":g.src&&(i.src=g.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(s.memoizedState===null){var b=s.alternate;if(b!==null){var _=b.memoizedState;if(_!==null){var _e=_.dehydrated;_e!==null&&bd(_e)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(p(163))}U||s.flags&512&&Rj(s)}catch($){W(s,s.return,$)}}if(s===e){V=null;break}if(i=s.sibling,i!==null){i.return=s.return,V=i;break}V=s.return}}function gk(e){for(;V!==null;){var s=V;if(s===e){V=null;break}var i=s.sibling;if(i!==null){i.return=s.return,V=i;break}V=s.return}}function jk(e){for(;V!==null;){var s=V;try{switch(s.tag){case 0:case 11:case 15:var i=s.return;try{Qj(4,s)}catch(g){W(s,i,g)}break;case 1:var o=s.stateNode;if(typeof o.componentDidMount=="function"){var a=s.return;try{o.componentDidMount()}catch(g){W(s,a,g)}}var c=s.return;try{Rj(s)}catch(g){W(s,c,g)}break;case 5:var d=s.return;try{Rj(s)}catch(g){W(s,d,g)}}}catch(g){W(s,s.return,g)}if(s===e){V=null;break}var h=s.sibling;if(h!==null){h.return=s.return,V=h;break}V=s.return}}var lk=Math.ceil,mk=ua.ReactCurrentDispatcher,nk=ua.ReactCurrentOwner,ok=ua.ReactCurrentBatchConfig,K=0,Q=null,Y=null,Z=0,fj=0,ej=Uf(0),T=0,pk=null,rh=0,qk=0,rk=0,sk=null,tk=null,fk=0,Gj=1/0,uk=null,Oi=!1,Pi=null,Ri=null,vk=!1,wk=null,xk=0,yk=0,zk=null,Ak=-1,Bk=0;function R(){return K&6?B():Ak!==-1?Ak:Ak=B()}function yi(e){return e.mode&1?K&2&&Z!==0?Z&-Z:Kg.transition!==null?(Bk===0&&(Bk=yc()),Bk):(e=C,e!==0||(e=window.event,e=e===void 0?16:jd(e.type)),e):1}function gi(e,s,i,o){if(50<yk)throw yk=0,zk=null,Error(p(185));Ac(e,i,o),(!(K&2)||e!==Q)&&(e===Q&&(!(K&2)&&(qk|=i),T===4&&Ck(e,Z)),Dk(e,o),i===1&&K===0&&!(s.mode&1)&&(Gj=B()+500,fg&&jg()))}function Dk(e,s){var i=e.callbackNode;wc(e,s);var o=uc(e,e===Q?Z:0);if(o===0)i!==null&&bc(i),e.callbackNode=null,e.callbackPriority=0;else if(s=o&-o,e.callbackPriority!==s){if(i!=null&&bc(i),s===1)e.tag===0?ig(Ek.bind(null,e)):hg(Ek.bind(null,e)),Jf(function(){!(K&6)&&jg()}),i=null;else{switch(Dc(o)){case 1:i=fc;break;case 4:i=gc;break;case 16:i=hc;break;case 536870912:i=jc;break;default:i=hc}i=Fk(i,Gk.bind(null,e))}e.callbackPriority=s,e.callbackNode=i}}function Gk(e,s){if(Ak=-1,Bk=0,K&6)throw Error(p(327));var i=e.callbackNode;if(Hk()&&e.callbackNode!==i)return null;var o=uc(e,e===Q?Z:0);if(o===0)return null;if(o&30||o&e.expiredLanes||s)s=Ik(e,o);else{s=o;var a=K;K|=2;var c=Jk();(Q!==e||Z!==s)&&(uk=null,Gj=B()+500,Kk(e,s));do try{Lk();break}catch(h){Mk(e,h)}while(!0);$g(),mk.current=c,K=a,Y!==null?s=0:(Q=null,Z=0,s=T)}if(s!==0){if(s===2&&(a=xc(e),a!==0&&(o=a,s=Nk(e,a))),s===1)throw i=pk,Kk(e,0),Ck(e,o),Dk(e,B()),i;if(s===6)Ck(e,o);else{if(a=e.current.alternate,!(o&30)&&!Ok(a)&&(s=Ik(e,o),s===2&&(c=xc(e),c!==0&&(o=c,s=Nk(e,c))),s===1))throw i=pk,Kk(e,0),Ck(e,o),Dk(e,B()),i;switch(e.finishedWork=a,e.finishedLanes=o,s){case 0:case 1:throw Error(p(345));case 2:Pk(e,tk,uk);break;case 3:if(Ck(e,o),(o&130023424)===o&&(s=fk+500-B(),10<s)){if(uc(e,0)!==0)break;if(a=e.suspendedLanes,(a&o)!==o){R(),e.pingedLanes|=e.suspendedLanes&a;break}e.timeoutHandle=Ff(Pk.bind(null,e,tk,uk),s);break}Pk(e,tk,uk);break;case 4:if(Ck(e,o),(o&4194240)===o)break;for(s=e.eventTimes,a=-1;0<o;){var d=31-oc(o);c=1<<d,d=s[d],d>a&&(a=d),o&=~c}if(o=a,o=B()-o,o=(120>o?120:480>o?480:1080>o?1080:1920>o?1920:3e3>o?3e3:4320>o?4320:1960*lk(o/1960))-o,10<o){e.timeoutHandle=Ff(Pk.bind(null,e,tk,uk),o);break}Pk(e,tk,uk);break;case 5:Pk(e,tk,uk);break;default:throw Error(p(329))}}}return Dk(e,B()),e.callbackNode===i?Gk.bind(null,e):null}function Nk(e,s){var i=sk;return e.current.memoizedState.isDehydrated&&(Kk(e,s).flags|=256),e=Ik(e,s),e!==2&&(s=tk,tk=i,s!==null&&Fj(s)),e}function Fj(e){tk===null?tk=e:tk.push.apply(tk,e)}function Ok(e){for(var s=e;;){if(s.flags&16384){var i=s.updateQueue;if(i!==null&&(i=i.stores,i!==null))for(var o=0;o<i.length;o++){var a=i[o],c=a.getSnapshot;a=a.value;try{if(!He(c(),a))return!1}catch{return!1}}}if(i=s.child,s.subtreeFlags&16384&&i!==null)i.return=s,s=i;else{if(s===e)break;for(;s.sibling===null;){if(s.return===null||s.return===e)return!0;s=s.return}s.sibling.return=s.return,s=s.sibling}}return!0}function Ck(e,s){for(s&=~rk,s&=~qk,e.suspendedLanes|=s,e.pingedLanes&=~s,e=e.expirationTimes;0<s;){var i=31-oc(s),o=1<<i;e[i]=-1,s&=~o}}function Ek(e){if(K&6)throw Error(p(327));Hk();var s=uc(e,0);if(!(s&1))return Dk(e,B()),null;var i=Ik(e,s);if(e.tag!==0&&i===2){var o=xc(e);o!==0&&(s=o,i=Nk(e,o))}if(i===1)throw i=pk,Kk(e,0),Ck(e,s),Dk(e,B()),i;if(i===6)throw Error(p(345));return e.finishedWork=e.current.alternate,e.finishedLanes=s,Pk(e,tk,uk),Dk(e,B()),null}function Qk(e,s){var i=K;K|=1;try{return e(s)}finally{K=i,K===0&&(Gj=B()+500,fg&&jg())}}function Rk(e){wk!==null&&wk.tag===0&&!(K&6)&&Hk();var s=K;K|=1;var i=ok.transition,o=C;try{if(ok.transition=null,C=1,e)return e()}finally{C=o,ok.transition=i,K=s,!(K&6)&&jg()}}function Hj(){fj=ej.current,E$1(ej)}function Kk(e,s){e.finishedWork=null,e.finishedLanes=0;var i=e.timeoutHandle;if(i!==-1&&(e.timeoutHandle=-1,Gf(i)),Y!==null)for(i=Y.return;i!==null;){var o=i;switch(wg(o),o.tag){case 1:o=o.type.childContextTypes,o!=null&&$f();break;case 3:zh(),E$1(Wf),E$1(H),Eh();break;case 5:Bh(o);break;case 4:zh();break;case 13:E$1(L$1);break;case 19:E$1(L$1);break;case 10:ah(o.type._context);break;case 22:case 23:Hj()}i=i.return}if(Q=e,Y=e=Pg(e.current,null),Z=fj=s,T=0,pk=null,rk=qk=rh=0,tk=sk=null,fh!==null){for(s=0;s<fh.length;s++)if(i=fh[s],o=i.interleaved,o!==null){i.interleaved=null;var a=o.next,c=i.pending;if(c!==null){var d=c.next;c.next=a,o.next=d}i.pending=o}fh=null}return e}function Mk(e,s){do{var i=Y;try{if($g(),Fh.current=Rh,Ih){for(var o=M$1.memoizedState;o!==null;){var a=o.queue;a!==null&&(a.pending=null),o=o.next}Ih=!1}if(Hh=0,O=N=M$1=null,Jh=!1,Kh=0,nk.current=null,i===null||i.return===null){T=1,pk=s,Y=null;break}e:{var c=e,d=i.return,h=i,g=s;if(s=Z,h.flags|=32768,g!==null&&typeof g=="object"&&typeof g.then=="function"){var b=g,_=h,_e=_.tag;if(!(_.mode&1)&&(_e===0||_e===11||_e===15)){var $=_.alternate;$?(_.updateQueue=$.updateQueue,_.memoizedState=$.memoizedState,_.lanes=$.lanes):(_.updateQueue=null,_.memoizedState=null)}var et=Ui(d);if(et!==null){et.flags&=-257,Vi(et,d,h,c,s),et.mode&1&&Si(c,b,s),s=et,g=b;var it=s.updateQueue;if(it===null){var rt=new Set;rt.add(g),s.updateQueue=rt}else it.add(g);break e}else{if(!(s&1)){Si(c,b,s),tj();break e}g=Error(p(426))}}else if(I&&h.mode&1){var lt=Ui(d);if(lt!==null){!(lt.flags&65536)&&(lt.flags|=256),Vi(lt,d,h,c,s),Jg(Ji(g,h));break e}}c=g=Ji(g,h),T!==4&&(T=2),sk===null?sk=[c]:sk.push(c),c=d;do{switch(c.tag){case 3:c.flags|=65536,s&=-s,c.lanes|=s;var st=Ni(c,g,s);ph(c,st);break e;case 1:h=g;var ot=c.type,nt=c.stateNode;if(!(c.flags&128)&&(typeof ot.getDerivedStateFromError=="function"||nt!==null&&typeof nt.componentDidCatch=="function"&&(Ri===null||!Ri.has(nt)))){c.flags|=65536,s&=-s,c.lanes|=s;var at=Qi(c,h,s);ph(c,at);break e}}c=c.return}while(c!==null)}Sk(i)}catch(ct){s=ct,Y===i&&i!==null&&(Y=i=i.return);continue}break}while(!0)}function Jk(){var e=mk.current;return mk.current=Rh,e===null?Rh:e}function tj(){(T===0||T===3||T===2)&&(T=4),Q===null||!(rh&268435455)&&!(qk&268435455)||Ck(Q,Z)}function Ik(e,s){var i=K;K|=2;var o=Jk();(Q!==e||Z!==s)&&(uk=null,Kk(e,s));do try{Tk();break}catch(a){Mk(e,a)}while(!0);if($g(),K=i,mk.current=o,Y!==null)throw Error(p(261));return Q=null,Z=0,T}function Tk(){for(;Y!==null;)Uk(Y)}function Lk(){for(;Y!==null&&!cc();)Uk(Y)}function Uk(e){var s=Vk(e.alternate,e,fj);e.memoizedProps=e.pendingProps,s===null?Sk(e):Y=s,nk.current=null}function Sk(e){var s=e;do{var i=s.alternate;if(e=s.return,s.flags&32768){if(i=Ij(i,s),i!==null){i.flags&=32767,Y=i;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{T=6,Y=null;return}}else if(i=Ej(i,s,fj),i!==null){Y=i;return}if(s=s.sibling,s!==null){Y=s;return}Y=s=e}while(s!==null);T===0&&(T=5)}function Pk(e,s,i){var o=C,a=ok.transition;try{ok.transition=null,C=1,Wk(e,s,i,o)}finally{ok.transition=a,C=o}return null}function Wk(e,s,i,o){do Hk();while(wk!==null);if(K&6)throw Error(p(327));i=e.finishedWork;var a=e.finishedLanes;if(i===null)return null;if(e.finishedWork=null,e.finishedLanes=0,i===e.current)throw Error(p(177));e.callbackNode=null,e.callbackPriority=0;var c=i.lanes|i.childLanes;if(Bc(e,c),e===Q&&(Y=Q=null,Z=0),!(i.subtreeFlags&2064)&&!(i.flags&2064)||vk||(vk=!0,Fk(hc,function(){return Hk(),null})),c=(i.flags&15990)!==0,i.subtreeFlags&15990||c){c=ok.transition,ok.transition=null;var d=C;C=1;var h=K;K|=4,nk.current=null,Oj(e,i),dk(i,e),Oe(Df),dd=!!Cf,Df=Cf=null,e.current=i,hk(i),dc(),K=h,C=d,ok.transition=c}else e.current=i;if(vk&&(vk=!1,wk=e,xk=a),c=e.pendingLanes,c===0&&(Ri=null),mc(i.stateNode),Dk(e,B()),s!==null)for(o=e.onRecoverableError,i=0;i<s.length;i++)a=s[i],o(a.value,{componentStack:a.stack,digest:a.digest});if(Oi)throw Oi=!1,e=Pi,Pi=null,e;return xk&1&&e.tag!==0&&Hk(),c=e.pendingLanes,c&1?e===zk?yk++:(yk=0,zk=e):yk=0,jg(),null}function Hk(){if(wk!==null){var e=Dc(xk),s=ok.transition,i=C;try{if(ok.transition=null,C=16>e?16:e,wk===null)var o=!1;else{if(e=wk,wk=null,xk=0,K&6)throw Error(p(331));var a=K;
vendor: 1,838 bytes, line 41
41for(K|=4,V=e.current;V!==null;){var c=V,d=c.child;if(V.flags&16){var h=c.deletions;if(h!==null){for(var g=0;g<h.length;g++){var b=h[g];for(V=b;V!==null;){var _=V;switch(_.tag){case 0:case 11:case 15:Pj(8,_,c)}var _e=_.child;if(_e!==null)_e.return=_,V=_e;else for(;V!==null;){_=V;var $=_.sibling,et=_.return;if(Sj(_),_===b){V=null;break}if($!==null){$.return=et,V=$;break}V=et}}}var it=c.alternate;if(it!==null){var rt=it.child;if(rt!==null){it.child=null;do{var lt=rt.sibling;rt.sibling=null,rt=lt}while(rt!==null)}}V=c}}if(c.subtreeFlags&2064&&d!==null)d.return=c,V=d;else e:for(;V!==null;){if(c=V,c.flags&2048)switch(c.tag){case 0:case 11:case 15:Pj(9,c,c.return)}var st=c.sibling;if(st!==null){st.return=c.return,V=st;break e}V=c.return}}var ot=e.current;for(V=ot;V!==null;){d=V;var nt=d.child;if(d.subtreeFlags&2064&&nt!==null)nt.return=d,V=nt;else e:for(d=ot;V!==null;){if(h=V,h.flags&2048)try{switch(h.tag){case 0:case 11:case 15:Qj(9,h)}}catch(ct){W(h,h.return,ct)}if(h===d){V=null;break e}var at=h.sibling;if(at!==null){at.return=h.return,V=at;break e}V=h.return}}if(K=a,jg(),lc&&typeof lc.onPostCommitFiberRoot=="function")try{lc.onPostCommitFiberRoot(kc,e)}catch{}o=!0}return o}finally{C=i,ok.transition=s}}return!1}function Xk(e,s,i){s=Ji(i,s),s=Ni(e,s,1),e=nh(e,s,1),s=R(),e!==null&&(Ac(e,1,s),Dk(e,s))}function W(e,s,i){if(e.tag===3)Xk(e,e,i);else for(;s!==null;){if(s.tag===3){Xk(s,e,i);break}else if(s.tag===1){var o=s.stateNode;if(typeof s.type.getDerivedStateFromError=="function"||typeof o.componentDidCatch=="function"&&(Ri===null||!Ri.has(o))){e=Ji(i,e),e=Qi(s,e,1),s=nh(s,e,1),e=R(),s!==null&&(Ac(s,1,e),Dk(s,e));break}}s=s.return}}function Ti(e,s,i){var o=e.pingCache;o!==null&&o.delete(s),s=R(),e.pingedLanes|=e.suspendedLanes&i,Q===e&&(Z&i)===i&&(T===4||T===3&&(Z&130023424)===Z&&500>B()-fk?Kk(e,0):rk|=i),Dk(e,s)}
vendor: 4,179 bytes, line 41
41function Yk(e,s){s===0&&(e.mode&1?(s=sc,sc<<=1,!(sc&130023424)&&(sc=4194304)):s=1);var i=R();e=ih(e,s),e!==null&&(Ac(e,s,i),Dk(e,i))}function uj(e){var s=e.memoizedState,i=0;s!==null&&(i=s.retryLane),Yk(e,i)}function bk(e,s){var i=0;switch(e.tag){case 13:var o=e.stateNode,a=e.memoizedState;a!==null&&(i=a.retryLane);break;case 19:o=e.stateNode;break;default:throw Error(p(314))}o!==null&&o.delete(s),Yk(e,i)}var Vk;Vk=function(e,s,i){if(e!==null)if(e.memoizedProps!==s.pendingProps||Wf.current)dh=!0;else{if(!(e.lanes&i)&&!(s.flags&128))return dh=!1,yj(e,s,i);dh=!!(e.flags&131072)}else dh=!1,I&&s.flags&1048576&&ug(s,ng,s.index);switch(s.lanes=0,s.tag){case 2:var o=s.type;ij(e,s),e=s.pendingProps;var a=Yf(s,H.current);ch(s,i),a=Nh(null,s,o,e,a,i);var c=Sh();return s.flags|=1,typeof a=="object"&&a!==null&&typeof a.render=="function"&&a.$$typeof===void 0?(s.tag=1,s.memoizedState=null,s.updateQueue=null,Zf(o)?(c=!0,cg(s)):c=!1,s.memoizedState=a.state!==null&&a.state!==void 0?a.state:null,kh(s),a.updater=Ei,s.stateNode=a,a._reactInternals=s,Ii(s,o,e,i),s=jj(null,s,o,!0,c,i)):(s.tag=0,I&&c&&vg(s),Xi(null,s,a,i),s=s.child),s;case 16:o=s.elementType;e:{switch(ij(e,s),e=s.pendingProps,a=o._init,o=a(o._payload),s.type=o,a=s.tag=Zk(o),e=Ci(o,e),a){case 0:s=cj(null,s,o,e,i);break e;case 1:s=hj(null,s,o,e,i);break e;case 11:s=Yi(null,s,o,e,i);break e;case 14:s=$i(null,s,o,Ci(o.type,e),i);break e}throw Error(p(306,o,""))}return s;case 0:return o=s.type,a=s.pendingProps,a=s.elementType===o?a:Ci(o,a),cj(e,s,o,a,i);case 1:return o=s.type,a=s.pendingProps,a=s.elementType===o?a:Ci(o,a),hj(e,s,o,a,i);case 3:e:{if(kj(s),e===null)throw Error(p(387));o=s.pendingProps,c=s.memoizedState,a=c.element,lh(e,s),qh(s,o,null,i);var d=s.memoizedState;if(o=d.element,c.isDehydrated)if(c={element:o,isDehydrated:!1,cache:d.cache,pendingSuspenseBoundaries:d.pendingSuspenseBoundaries,transitions:d.transitions},s.updateQueue.baseState=c,s.memoizedState=c,s.flags&256){a=Ji(Error(p(423)),s),s=lj(e,s,o,i,a);break e}else if(o!==a){a=Ji(Error(p(424)),s),s=lj(e,s,o,i,a);break e}else for(yg=Lf(s.stateNode.containerInfo.firstChild),xg=s,I=!0,zg=null,i=Vg(s,null,o,i),s.child=i;i;)i.flags=i.flags&-3|4096,i=i.sibling;else{if(Ig(),o===a){s=Zi(e,s,i);break e}Xi(e,s,o,i)}s=s.child}return s;case 5:return Ah(s),e===null&&Eg(s),o=s.type,a=s.pendingProps,c=e!==null?e.memoizedProps:null,d=a.children,Ef(o,a)?d=null:c!==null&&Ef(o,c)&&(s.flags|=32),gj(e,s),Xi(e,s,d,i),s.child;case 6:return e===null&&Eg(s),null;case 13:return oj(e,s,i);case 4:return yh(s,s.stateNode.containerInfo),o=s.pendingProps,e===null?s.child=Ug(s,null,o,i):Xi(e,s,o,i),s.child;case 11:return o=s.type,a=s.pendingProps,a=s.elementType===o?a:Ci(o,a),Yi(e,s,o,a,i);case 7:return Xi(e,s,s.pendingProps,i),s.child;case 8:return Xi(e,s,s.pendingProps.children,i),s.child;case 12:return Xi(e,s,s.pendingProps.children,i),s.child;case 10:e:{if(o=s.type._context,a=s.pendingProps,c=s.memoizedProps,d=a.value,G(Wg,o._currentValue),o._currentValue=d,c!==null)if(He(c.value,d)){if(c.children===a.children&&!Wf.current){s=Zi(e,s,i);break e}}else for(c=s.child,c!==null&&(c.return=s);c!==null;){var h=c.dependencies;if(h!==null){d=c.child;for(var g=h.firstContext;g!==null;){if(g.context===o){if(c.tag===1){g=mh(-1,i&-i),g.tag=2;var b=c.updateQueue;if(b!==null){b=b.shared;var _=b.pending;_===null?g.next=g:(g.next=_.next,_.next=g),b.pending=g}}c.lanes|=i,g=c.alternate,g!==null&&(g.lanes|=i),bh(c.return,i,s),h.lanes|=i;break}g=g.next}}else if(c.tag===10)d=c.type===s.type?null:c.child;else if(c.tag===18){if(d=c.return,d===null)throw Error(p(341));d.lanes|=i,h=d.alternate,h!==null&&(h.lanes|=i),bh(d,i,s),d=c.sibling}else d=c.child;if(d!==null)d.return=c;else for(d=c;d!==null;){if(d===s){d=null;break}if(c=d.sibling,c!==null){c.return=d.return,d=c;break}d=d.return}c=d}Xi(e,s,a.children,i),s=s.child}return s;case 9:return a=s.type,o=s.pendingProps.children,ch(s,i),a=eh(a),o=o(a),s.flags|=1,Xi(e,s,o,i),s.child;case 14:return o=s.type,a=Ci(o,s.pendingProps),a=Ci(o.type,a),$i(e,s,o,a,i);case 15:return bj(e,s,s.type,s.pendingProps,i);case 17:return o=s.type,a=s.pendingProps,a=s.elementType===o?a:Ci(o,a),ij(e,s),s.tag=1,Zf(o)?(e=!0,cg
vendor: 10,686 bytes, line 41
41(s)):e=!1,ch(s,i),Gi(s,o,a),Ii(s,o,a,i),jj(null,s,o,!0,e,i);case 19:return xj(e,s,i);case 22:return dj(e,s,i)}throw Error(p(156,s.tag))};function Fk(e,s){return ac(e,s)}function $k(e,s,i,o){this.tag=e,this.key=i,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=s,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=o,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Bg(e,s,i,o){return new $k(e,s,i,o)}function aj(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Zk(e){if(typeof e=="function")return aj(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Da)return 11;if(e===Ga)return 14}return 2}function Pg(e,s){var i=e.alternate;return i===null?(i=Bg(e.tag,s,e.key,e.mode),i.elementType=e.elementType,i.type=e.type,i.stateNode=e.stateNode,i.alternate=e,e.alternate=i):(i.pendingProps=s,i.type=e.type,i.flags=0,i.subtreeFlags=0,i.deletions=null),i.flags=e.flags&14680064,i.childLanes=e.childLanes,i.lanes=e.lanes,i.child=e.child,i.memoizedProps=e.memoizedProps,i.memoizedState=e.memoizedState,i.updateQueue=e.updateQueue,s=e.dependencies,i.dependencies=s===null?null:{lanes:s.lanes,firstContext:s.firstContext},i.sibling=e.sibling,i.index=e.index,i.ref=e.ref,i}function Rg(e,s,i,o,a,c){var d=2;if(o=e,typeof e=="function")aj(e)&&(d=1);else if(typeof e=="string")d=5;else e:switch(e){case ya:return Tg(i.children,a,c,s);case za:d=8,a|=8;break;case Aa:return e=Bg(12,i,s,a|2),e.elementType=Aa,e.lanes=c,e;case Ea:return e=Bg(13,i,s,a),e.elementType=Ea,e.lanes=c,e;case Fa:return e=Bg(19,i,s,a),e.elementType=Fa,e.lanes=c,e;case Ia:return pj(i,a,c,s);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Ba:d=10;break e;case Ca:d=9;break e;case Da:d=11;break e;case Ga:d=14;break e;case Ha:d=16,o=null;break e}throw Error(p(130,e==null?e:typeof e,""))}return s=Bg(d,i,s,a),s.elementType=e,s.type=o,s.lanes=c,s}function Tg(e,s,i,o){return e=Bg(7,e,o,s),e.lanes=i,e}function pj(e,s,i,o){return e=Bg(22,e,o,s),e.elementType=Ia,e.lanes=i,e.stateNode={isHidden:!1},e}function Qg(e,s,i){return e=Bg(6,e,null,s),e.lanes=i,e}function Sg(e,s,i){return s=Bg(4,e.children!==null?e.children:[],e.key,s),s.lanes=i,s.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},s}function al(e,s,i,o,a){this.tag=s,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=zc(0),this.expirationTimes=zc(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=zc(0),this.identifierPrefix=o,this.onRecoverableError=a,this.mutableSourceEagerHydrationData=null}function bl(e,s,i,o,a,c,d,h,g){return e=new al(e,s,i,h,g),s===1?(s=1,c===!0&&(s|=8)):s=0,c=Bg(3,null,null,s),e.current=c,c.stateNode=e,c.memoizedState={element:o,isDehydrated:i,cache:null,transitions:null,pendingSuspenseBoundaries:null},kh(c),e}function cl(e,s,i){var o=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:wa,key:o==null?null:""+o,children:e,containerInfo:s,implementation:i}}function dl(e){if(!e)return Vf;e=e._reactInternals;e:{if(Vb(e)!==e||e.tag!==1)throw Error(p(170));var s=e;do{switch(s.tag){case 3:s=s.stateNode.context;break e;case 1:if(Zf(s.type)){s=s.stateNode.__reactInternalMemoizedMergedChildContext;break e}}s=s.return}while(s!==null);throw Error(p(171))}if(e.tag===1){var i=e.type;if(Zf(i))return bg(e,i,s)}return s}function el(e,s,i,o,a,c,d,h,g){return e=bl(i,o,!0,e,a,c,d,h,g),e.context=dl(null),i=e.current,o=R(),a=yi(i),c=mh(o,a),c.callback=s??null,nh(i,c,a),e.current.lanes=a,Ac(e,a,o),Dk(e,o),e}function fl(e,s,i,o){var a=s.current,c=R(),d=yi(a);return i=dl(i),s.context===null?s.context=i:s.pendingContext=i,s=mh(c,d),s.payload={element:e},o=o===void 0?null:o,o!==null&&(s.callback=o),e=nh(a,s,d),e!==null&&(gi(e,a,d,c),oh(e,a,d)),d}function gl(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function hl(e,s){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var i=e.retryLane;e.retryLane=i!==0&&i<s?i:s}}function il(e,s){hl(e,s),(e=e.alternate)&&hl(e,s)}function jl(){return null}var kl=typeof reportError=="function"?reportError:function(e){console.error(e)};function ll(e){this._internalRoot=e}ml.prototype.render=ll.prototype.render=function(e){var s=this._internalRoot;if(s===null)throw Error(p(409));fl(e,s,null,null)};ml.prototype.unmount=ll.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var s=e.containerInfo;Rk(function(){fl(null,e,null,null)}),s[uf]=null}};function ml(e){this._internalRoot=e}ml.prototype.unstable_scheduleHydration=function(e){if(e){var s=Hc();e={blockedOn:null,target:e,priority:s};for(var i=0;i<Qc.length&&s!==0&&s<Qc[i].priority;i++);Qc.splice(i,0,e),i===0&&Vc(e)}};function nl(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function ol(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function pl(){}function ql(e,s,i,o,a){if(a){if(typeof o=="function"){var c=o;o=function(){var b=gl(d);c.call(b)}}var d=el(s,o,e,0,null,!1,!1,"",pl);return e._reactRootContainer=d,e[uf]=d.current,sf(e.nodeType===8?e.parentNode:e),Rk(),d}for(;a=e.lastChild;)e.removeChild(a);if(typeof o=="function"){var h=o;o=function(){var b=gl(g);h.call(b)}}var g=bl(e,0,!1,null,null,!1,!1,"",pl);return e._reactRootContainer=g,e[uf]=g.current,sf(e.nodeType===8?e.parentNode:e),Rk(function(){fl(s,g,i,o)}),g}function rl(e,s,i,o,a){var c=i._reactRootContainer;if(c){var d=c;if(typeof a=="function"){var h=a;a=function(){var g=gl(d);h.call(g)}}fl(s,d,e,a)}else d=ql(i,s,e,a,o);return gl(d)}Ec=function(e){switch(e.tag){case 3:var s=e.stateNode;if(s.current.memoizedState.isDehydrated){var i=tc(s.pendingLanes);i!==0&&(Cc(s,i|1),Dk(s,B()),!(K&6)&&(Gj=B()+500,jg()))}break;case 13:Rk(function(){var o=ih(e,1);if(o!==null){var a=R();gi(o,e,1,a)}}),il(e,1)}};Fc=function(e){if(e.tag===13){var s=ih(e,134217728);if(s!==null){var i=R();gi(s,e,134217728,i)}il(e,134217728)}};Gc=function(e){if(e.tag===13){var s=yi(e),i=ih(e,s);if(i!==null){var o=R();gi(i,e,s,o)}il(e,s)}};Hc=function(){return C};Ic=function(e,s){var i=C;try{return C=e,s()}finally{C=i}};yb=function(e,s,i){switch(s){case"input":if(bb(e,i),s=i.name,i.type==="radio"&&s!=null){for(i=e;i.parentNode;)i=i.parentNode;for(i=i.querySelectorAll("input[name="+JSON.stringify(""+s)+'][type="radio"]'),s=0;s<i.length;s++){var o=i[s];if(o!==e&&o.form===e.form){var a=Db(o);if(!a)throw Error(p(90));Wa(o),bb(o,a)}}}break;case"textarea":ib(e,i);break;case"select":s=i.value,s!=null&&fb(e,!!i.multiple,s,!1)}};Gb=Qk;Hb=Rk;var sl={usingClientEntryPoint:!1,Events:[Cb,ue$1,Db,Eb,Fb,Qk]},tl={findFiberByHostInstance:Wc,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},ul={bundleType:tl.bundleType,version:tl.version,rendererPackageName:tl.rendererPackageName,rendererConfig:tl.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:ua.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=Zb(e),e===null?null:e.stateNode},findFiberByHostInstance:tl.findFiberByHostInstance||jl,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var vl=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!vl.isDisabled&&vl.supportsFiber)try{kc=vl.inject(ul),lc=vl}catch{}}reactDom_production_min.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=sl;reactDom_production_min.createPortal=function(e,s){var i=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!nl(s))throw Error(p(200));return cl(e,s,null,i)};reactDom_production_min.createRoot=function(e,s){if(!nl(e))throw Error(p(299));var i=!1,o="",a=kl;return s!=null&&(s.unstable_strictMode===!0&&(i=!0),s.identifierPrefix!==void 0&&(o=s.identifierPrefix),s.onRecoverableError!==void 0&&(a=s.onRecoverableError)),s=bl(e,1,!1,null,null,i,!1,o,a),e[uf]=s.current,sf(e.nodeType===8?e.parentNode:e),new ll(s)};reactDom_production_min.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var s=e._reactInternals;if(s===void 0)throw typeof e.render=="function"?Error(p(188)):(e=Object.keys(e).join(","),Error(p(268,e)));return e=Zb(s),e=e===null?null:e.stateNode,e};reactDom_production_min.flushSync=function(e){return Rk(e)};reactDom_production_min.hydrate=function(e,s,i){if(!ol(s))throw Error(p(200));return rl(null,e,s,!0,i)};reactDom_production_min.hydrateRoot=function(e,s,i){if(!nl(e))throw Error(p(405));var o=i!=null&&i.hydratedSources||null,a=!1,c="",d=kl;if(i!=null&&(i.unstable_strictMode===!0&&(a=!0),i.identifierPrefix!==void 0&&(c=i.identifierPrefix),i.onRecoverableError!==void 0&&(d=i.onRecoverableError)),s=el(s,null,e,1,i??null,a,!1,c,d),e[uf]=s.current,sf(e),o)for(e=0;e<o.length;e++)i=o[e],a=i._getVersion,a=a(i._source),s.mutableSourceEagerHydrationData==null?s.mutableSourceEagerHydrationData=[i,a]:s.mutableSourceEagerHydrationData.push(i,a);return new ml(s)};reactDom_production_min.render=function(e,s,i){if(!ol(s))throw Error(p(200));return rl(null,e,s,!1,i)};reactDom_production_min.unmountComponentAtNode=function(e){if(!ol(e))throw Error(p(40));return e._reactRootContainer?(Rk(function(){rl(null,null,e,!1,function(){e._reactRootContainer=null,e[uf]=null})}),!0):!1};reactDom_production_min.unstable_batchedUpdates=Qk;reactDom_production_min.unstable_renderSubtreeIntoContainer=function(e,s,i,o){if(!ol(i))throw Error(p(200));if(e==null||e._reactInternals===void 0)throw Error(p(38));return rl(e,s,i,!1,o)};reactDom_production_min.version="18.3.1-next-f1338f8080-20240426";function checkDCE(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(checkDCE)}catch(e){console.error(e)}}checkDCE(),reactDom.exports=reactDom_production_min;var reactDomExports=reactDom.exports;const vt=getDefaultExportFromCjs(reactDomExports);var createRoot,m=reactDomExports;createRoot=m.createRoot,m.hydrateRoot;const scriptRel="modulepreload",assetsURL=function(e){return"/"+e},seen={}
41,__vitePreload=function(s,i,o){let a=Promise.resolve();if(i&&i.length>0){document.getElementsByTagName("link");const d=document.querySelector("meta[property=csp-nonce]"),h=(d==null?void 0:d.nonce)||(d==null?void 0:d.getAttribute("nonce"));a=Promise.allSettled(i.map(g=>{if(g=assetsURL(g),g in seen)return;seen[g]=!0;const b=g.endsWith(".css"),_=b?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${g}"]${_}`))return;const _e=document.createElement("link");if(_e.rel=b?"stylesheet":scriptRel,b||(_e.as="script"),_e.crossOrigin="",_e.href=g,h&&_e.setAttribute("nonce",h),document.head.appendChild(_e),b)return new Promise(($,et)=>{_e.addEventListener("load",$),_e.addEventListener("error",()=>et(new Error(`Unable to preload CSS for ${g}`)))})}))}function c(d){const h=new Event("vite:preloadError",{cancelable:!0});if(h.payload=d,window.dispatchEvent(h),!h.defaultPrevented)throw d}return a.then(d=>{for(const h of d||[])h.status==="rejected"&&c(h.reason);return s().catch(c)})},TOAST_LIMIT=1,TOAST_REMOVE_DELAY=1e6;let count$2=0;function genId(){return count$2=(count$2+1)%Number.MAX_SAFE_INTEGER,count$2.toString()}const toastTimeouts=new Map,addToRemoveQueue=e=>{if(toastTimeouts.has(e))return;const s=setTimeout(()=>{toastTimeouts.delete(e),dispatch({type:"REMOVE_TOAST",toastId:e})},TOAST_REMOVE_DELAY);toastTimeouts.set(e,s)},reducer=(e,s)=>{switch(s.type){case"ADD_TOAST":return{...e,toasts:[s.toast,...e.toasts].slice(0,TOAST_LIMIT)};case"UPDATE_TOAST":return{...e,toasts:e.toasts.map(i=>i.id===s.toast.id?{...i,...s.toast}:i)};case"DISMISS_TOAST":{const{toastId:i}=s;return i?addToRemoveQueue(i):e.toasts.forEach(o=>{addToRemoveQueue(o.id)}),{...e,toasts:e.toasts.map(o=>o.id===i||i===void 0?{...o,open:!1}:o)}}case"REMOVE_TOAST":return s.toastId===void 0?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(i=>i.id!==s.toastId)}}},listeners=[];let memoryState={toasts:[]};function dispatch(e){memoryState=reducer(memoryState,e),listeners.forEach(s=>{s(memoryState)})}function toast({...e}){const s=genId(),i=a=>dispatch({type:"UPDATE_TOAST",toast:{...a,id:s}}),o=()=>dispatch({type:"DISMISS_TOAST",toastId:s});return dispatch({type:"ADD_TOAST",toast:{...e,id:s,open:!0,onOpenChange:a=>{a||o()}}}),{id:s,dismiss:o,update:i}}function useToast(){const[e,s]=reactExports.useState(memoryState);return reactExports.useEffect(()=>(listeners.push(s),()=>{const i=listeners.indexOf(s);i>-1&&listeners.splice(i,1)}),[e]),{...e,toast,dismiss:i=>dispatch({type:"DISMISS_TOAST",toastId:i})}}function composeEventHandlers(e,s,{checkForDefaultPrevented:i=!0}={}){return function(a){if(e==null||e(a),i===!1||!a.defaultPrevented)return s==null?void 0:s(a)}}function setRef(e,s){if(typeof e=="function")return e(s);e!=null&&(e.current=s)}function composeRefs(...e){return s=>{let i=!1;const o=e.map(a=>{const c=setRef(a,s);return!i&&typeof c=="function"&&(i=!0),c});if(i)return()=>{for(let a=0;a<o.length;a++){const c=o[a];typeof c=="function"?c():setRef(e[a],null)}}}}function useComposedRefs(...e){return reactExports.useCallback(composeRefs(...e),e)}function createContext2(e,s){const i=reactExports.createContext(s),o=c=>{const{children:d,...h}=c,g=reactExports.useMemo(()=>h,Object.values(h));return jsxRuntimeExports.jsx(i.Provider,{value:g,children:d})};o.displayName=e+"Provider";function a(c){const d=reactExports.useContext(i);if(d)return d;if(s!==void 0)return s;throw new Error(`\`${c}\` must be used within \`${e}\``)}return[o,a]}function createContextScope(e,s=[]){let i=[];function o(c,d){const h=reactExports.createContext(d),g=i.length;i=[...i,d];const b=_e=>{var st;const{scope:$,children:et,...it}=_e,rt=((st=$==null?void 0:$[e])==null?void 0:st[g])||h,lt=reactExports.useMemo(()=>it,Object.values(it));return jsxRuntimeExports.jsx(rt.Provider,{value:lt,children:et})};b.displayName=c+"Provider";function _(_e,$){var rt;const et=((rt=$==null?void 0:$[e])==null?void 0:rt[g])||h,it=reactExports.useContext(et);if(it)return it;if(d!==void 0)return d;throw new Error(`\`${_e}\` must be used within \`${c}\``)}return[b,_]}const a=()=>{const c=i.map(d=>reactExports.createContext(d));return function(h){const g=(h==null?void 0:h[e])||c;return reactExports.useMemo(()=>({[`__scope${e}`]:{...h,[e]:g}}),[h,g])}};return a.scopeName=e,[o,composeContextScopes(a,...s)]}function composeContextScopes(...e){const s=e[0];if(e.length===1)return s;const i=()=>{const o=e.map(a=>({useScope:a(),scopeName:a.scopeName}));return function(c){const d=o.reduce((h,{useScope:g,scopeName:b})=>{const _e=g(c)[`__scope${b}`];return{...h,..._e}},{});return reactExports.useMemo(()=>({[`__scope${s.scopeName}`]:d}),[d])}};return i.scopeName=s.scopeName,i}function createSlot(e){const s=createSlotClone(e),i=reactExports.forwardRef((o,a)=>{const{children:c,...d}=o,h=reactExports.Children.toArray(c),g=h.find(isSlottable);if(g){const b=g.props.children,_=h.map(_e=>_e===g?reactExports.Children.count(b)>1?reactExports.Children.only(null):reactExports.isValidElement(b)?b.props.children:null:_e);return jsxRuntimeExports.jsx(s,{...d,ref:a,children:reactExports.isValidElement(b)?reactExports.cloneElement(b,void 0,_):null})}return jsxRuntimeExports.jsx(s,{...d,ref:a,children:c})});return i.displayName=`${e}.Slot`,i}var Slot$3=createSlot("Slot");function createSlotClone(e){const s=reactExports.forwardRef((i,o)=>{const{children:a,...c}=i;if(reactExports.isValidElement(a)){const d=getElementRef$1(a),h=mergeProps(c,a.props);return a.type!==reactExports.Fragment&&(h.ref=o?composeRefs(o,d):d),reactExports.cloneElement(a,h)}return reactExports.Children.count(a)>1?reactExports.Children.only(null):null});return s.displayName=`${e}.SlotClone`,s}var SLOTTABLE_IDENTIFIER=Symbol("radix.slottable");function createSlottable(e){const s=({children:i})=>jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:i});return s.displayName=`${e}.Slottable`,s.__radixId=SLOTTABLE_IDENTIFIER,s}function isSlottable(e){return reactExports.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===SLOTTABLE_IDENTIFIER}function mergeProps(e,s){const i={...s};for(const o in s){const a=e[o],c=s[o];/^on[A-Z]/.test(o)?a&&c?i[o]=(...h)=>{const g=c(...h);return a(...h),g}:a&&(i[o]=a):o==="style"?i[o]={...a,...c}
41:o==="className"&&(i[o]=[a,c].filter(Boolean).join(" "))}return{...e,...i}}function getElementRef$1(e){var o,a;let s=(o=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:o.get,i=s&&"isReactWarning"in s&&s.isReactWarning;return i?e.ref:(s=(a=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:a.get,i=s&&"isReactWarning"in s&&s.isReactWarning,i?e.props.ref:e.props.ref||e.ref)}function createCollection(e){const s=e+"CollectionProvider",[i,o]=createContextScope(s),[a,c]=i(s,{collectionRef:{current:null},itemMap:new Map}),d=rt=>{const{scope:lt,children:st}=rt,ot=React$1.useRef(null),nt=React$1.useRef(new Map).current;return jsxRuntimeExports.jsx(a,{scope:lt,itemMap:nt,collectionRef:ot,children:st})};d.displayName=s;const h=e+"CollectionSlot",g=createSlot(h),b=React$1.forwardRef((rt,lt)=>{const{scope:st,children:ot}=rt,nt=c(h,st),at=useComposedRefs(lt,nt.collectionRef);return jsxRuntimeExports.jsx(g,{ref:at,children:ot})});b.displayName=h;const _=e+"CollectionItemSlot",_e="data-radix-collection-item",$=createSlot(_),et=React$1.forwardRef((rt,lt)=>{const{scope:st,children:ot,...nt}=rt,at=React$1.useRef(null),ct=useComposedRefs(lt,at),dt=c(_,st);return React$1.useEffect(()=>(dt.itemMap.set(at,{ref:at,...nt}),()=>void dt.itemMap.delete(at))),jsxRuntimeExports.jsx($,{[_e]:"",ref:ct,children:ot})});et.displayName=_;function it(rt){const lt=c(e+"CollectionConsumer",rt);return React$1.useCallback(()=>{const ot=lt.collectionRef.current;if(!ot)return[];const nt=Array.from(ot.querySelectorAll(`[${_e}]`));return Array.from(lt.itemMap.values()).sort((dt,pt)=>nt.indexOf(dt.ref.current)-nt.indexOf(pt.ref.current))},[lt.collectionRef,lt.itemMap])}return[{Provider:d,Slot:b,ItemSlot:et},it,o]}var NODES=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Primitive=NODES.reduce((e,s)=>{const i=createSlot(`Primitive.${s}`),o=reactExports.forwardRef((a,c)=>{const{asChild:d,...h}=a,g=d?i:s;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),jsxRuntimeExports.jsx(g,{...h,ref:c})});return o.displayName=`Primitive.${s}`,{...e,[s]:o}},{});function dispatchDiscreteCustomEvent(e,s){e&&reactDomExports.flushSync(()=>e.dispatchEvent(s))}function useCallbackRef$1(e){const s=reactExports.useRef(e);return reactExports.useEffect(()=>{s.current=e}),reactExports.useMemo(()=>(...i)=>{var o;return(o=s.current)==null?void 0:o.call(s,...i)},[])}function useEscapeKeydown(e,s=globalThis==null?void 0:globalThis.document){const i=useCallbackRef$1(e);reactExports.useEffect(()=>{const o=a=>{a.key==="Escape"&&i(a)};return s.addEventListener("keydown",o,{capture:!0}),()=>s.removeEventListener("keydown",o,{capture:!0})},[i,s])}var DISMISSABLE_LAYER_NAME="DismissableLayer",CONTEXT_UPDATE="dismissableLayer.update",POINTER_DOWN_OUTSIDE="dismissableLayer.pointerDownOutside",FOCUS_OUTSIDE="dismissableLayer.focusOutside",originalBodyPointerEvents,DismissableLayerContext=reactExports.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),DismissableLayer=reactExports.forwardRef((e,s)=>{const{disableOutsidePointerEvents:i=!1,onEscapeKeyDown:o,onPointerDownOutside:a,onFocusOutside:c,onInteractOutside:d,onDismiss:h,...g}=e,b=reactExports.useContext(DismissableLayerContext),[_,_e]=reactExports.useState(null),$=(_==null?void 0:_.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,et]=reactExports.useState({}),it=useComposedRefs(s,pt=>_e(pt)),rt=Array.from(b.layers),[lt]=[...b.layersWithOutsidePointerEventsDisabled].slice(-1),st=rt.indexOf(lt),ot=_?rt.indexOf(_):-1,nt=b.layersWithOutsidePointerEventsDisabled.size>0,at=ot>=st,ct=usePointerDownOutside(pt=>{const mt=pt.target,St=[...b.branches].some(Pt=>Pt.contains(mt));!at||St||(a==null||a(pt),d==null||d(pt),pt.defaultPrevented||h==null||h())},$),dt=useFocusOutside(pt=>{const mt=pt.target;[...b.branches].some(Pt=>Pt.contains(mt))||(c==null||c(pt),d==null||d(pt),pt.defaultPrevented||h==null||h())},$);return useEscapeKeydown(pt=>{ot===b.layers.size-1&&(o==null||o(pt),!pt.defaultPrevented&&h&&(pt.preventDefault(),h()))},$),reactExports.useEffect(()=>{if(_)return i&&(b.layersWithOutsidePointerEventsDisabled.size===0&&(originalBodyPointerEvents=$.body.style.pointerEvents,$.body.style.pointerEvents="none"),b.layersWithOutsidePointerEventsDisabled.add(_)),b.layers.add(_),dispatchUpdate(),()=>{i&&b.layersWithOutsidePointerEventsDisabled.size===1&&($.body.style.pointerEvents=originalBodyPointerEvents)}},[_,$,i,b]),reactExports.useEffect(()=>()=>{_&&(b.layers.delete(_),b.layersWithOutsidePointerEventsDisabled.delete(_),dispatchUpdate())},[_,b]),reactExports.useEffect(()=>{const pt=()=>et({});return document.addEventListener(CONTEXT_UPDATE,pt),()=>document.removeEventListener(CONTEXT_UPDATE,pt)},[]),jsxRuntimeExports.jsx(Primitive.div,{...g,ref:it,style:{pointerEvents:nt?at?"auto":"none":void 0,...e.style},onFocusCapture:composeEventHandlers(e.onFocusCapture,dt.onFocusCapture),onBlurCapture:composeEventHandlers(e.onBlurCapture,dt.onBlurCapture),onPointerDownCapture:composeEventHandlers(e.onPointerDownCapture,ct.onPointerDownCapture)})});DismissableLayer.displayName=DISMISSABLE_LAYER_NAME;var BRANCH_NAME="DismissableLayerBranch",DismissableLayerBranch=reactExports.forwardRef((e,s)=>{const i=reactExports.useContext(DismissableLayerContext),o=reactExports.useRef(null),a=useComposedRefs(s,o);return reactExports.useEffect(()=>{const c=o.current;if(c)return i.branches.add(c),()=>{i.branches.delete(c)}},[i.branches]),jsxRuntimeExports.jsx(Primitive.div,{...e,ref:a})});DismissableLayerBranch.displayName=BRANCH_NAME;function usePointerDownOutside(e,s=globalThis==null?void 0:globalThis.document){const i=useCallbackRef$1(e),o=reactExports.useRef(!1),a=reactExports.useRef(()=>{});return reactExports.useEffect(()=>{const c=h=>
41{if(h.target&&!o.current){let g=function(){handleAndDispatchCustomEvent$1(POINTER_DOWN_OUTSIDE,i,b,{discrete:!0})};const b={originalEvent:h};h.pointerType==="touch"?(s.removeEventListener("click",a.current),a.current=g,s.addEventListener("click",a.current,{once:!0})):g()}else s.removeEventListener("click",a.current);o.current=!1},d=window.setTimeout(()=>{s.addEventListener("pointerdown",c)},0);return()=>{window.clearTimeout(d),s.removeEventListener("pointerdown",c),s.removeEventListener("click",a.current)}},[s,i]),{onPointerDownCapture:()=>o.current=!0}}function useFocusOutside(e,s=globalThis==null?void 0:globalThis.document){const i=useCallbackRef$1(e),o=reactExports.useRef(!1);return reactExports.useEffect(()=>{const a=c=>{c.target&&!o.current&&handleAndDispatchCustomEvent$1(FOCUS_OUTSIDE,i,{originalEvent:c},{discrete:!1})};return s.addEventListener("focusin",a),()=>s.removeEventListener("focusin",a)},[s,i]),{onFocusCapture:()=>o.current=!0,onBlurCapture:()=>o.current=!1}}function dispatchUpdate(){const e=new CustomEvent(CONTEXT_UPDATE);document.dispatchEvent(e)}function handleAndDispatchCustomEvent$1(e,s,i,{discrete:o}){const a=i.originalEvent.target,c=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:i});s&&a.addEventListener(e,s,{once:!0}),o?dispatchDiscreteCustomEvent(a,c):a.dispatchEvent(c)}var Root$7=DismissableLayer,Branch=DismissableLayerBranch,useLayoutEffect2=globalThis!=null&&globalThis.document?reactExports.useLayoutEffect:()=>{},PORTAL_NAME$5="Portal",Portal$3=reactExports.forwardRef((e,s)=>{var h;const{container:i,...o}=e,[a,c]=reactExports.useState(!1);useLayoutEffect2(()=>c(!0),[]);const d=i||a&&((h=globalThis==null?void 0:globalThis.document)==null?void 0:h.body);return d?vt.createPortal(jsxRuntimeExports.jsx(Primitive.div,{...o,ref:s}),d):null});Portal$3.displayName=PORTAL_NAME$5;function useStateMachine$1(e,s){return reactExports.useReducer((i,o)=>s[i][o]??i,e)}var Presence=e=>{const{present:s,children:i}=e,o=usePresence(s),a=typeof i=="function"?i({present:o.isPresent}):reactExports.Children.only(i),c=useComposedRefs(o.ref,getElementRef(a));return typeof i=="function"||o.isPresent?reactExports.cloneElement(a,{ref:c}):null};Presence.displayName="Presence";function usePresence(e){const[s,i]=reactExports.useState(),o=reactExports.useRef(null),a=reactExports.useRef(e),c=reactExports.useRef("none"),d=e?"mounted":"unmounted",[h,g]=useStateMachine$1(d,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return reactExports.useEffect(()=>{const b=getAnimationName(o.current);c.current=h==="mounted"?b:"none"},[h]),useLayoutEffect2(()=>{const b=o.current,_=a.current;if(_!==e){const $=c.current,et=getAnimationName(b);e?g("MOUNT"):et==="none"||(b==null?void 0:b.display)==="none"?g("UNMOUNT"):g(_&&$!==et?"ANIMATION_OUT":"UNMOUNT"),a.current=e}},[e,g]),useLayoutEffect2(()=>{if(s){let b;const _=s.ownerDocument.defaultView??window,_e=et=>{const rt=getAnimationName(o.current).includes(et.animationName);if(et.target===s&&rt&&(g("ANIMATION_END"),!a.current)){const lt=s.style.animationFillMode;s.style.animationFillMode="forwards",b=_.setTimeout(()=>{s.style.animationFillMode==="forwards"&&(s.style.animationFillMode=lt)})}},$=et=>{et.target===s&&(c.current=getAnimationName(o.current))};return s.addEventListener("animationstart",$),s.addEventListener("animationcancel",_e),s.addEventListener("animationend",_e),()=>{_.clearTimeout(b),s.removeEventListener("animationstart",$),s.removeEventListener("animationcancel",_e),s.removeEventListener("animationend",_e)}}else g("ANIMATION_END")},[s,g]),{isPresent:["mounted","unmountSuspended"].includes(h),ref:reactExports.useCallback(b=>{o.current=b?getComputedStyle(b):null,i(b)},[])}}function getAnimationName(e){return(e==null?void 0:e.animationName)||"none"}function getElementRef(e){var o,a;let s=(o=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:o.get,i=s&&"isReactWarning"in s&&s.isReactWarning;return i?e.ref:(s=(a=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:a.get,i=s&&"isReactWarning"in s&&s.isReactWarning,i?e.props.ref:e.props.ref||e.ref)}var useInsertionEffect=React$2[" useInsertionEffect ".trim().toString()]||useLayoutEffect2;function useControllableState({prop:e,defaultProp:s,onChange:i=()=>{},caller:o}){const[a,c,d]=useUncontrolledState({defaultProp:s,onChange:i}),h=e!==void 0,g=h?e:a;{const _=reactExports.useRef(e!==void 0);reactExports.useEffect(()=>{const _e=_.current;_e!==h&&console.warn(`${o} is changing from ${_e?"controlled":"uncontrolled"} to ${h?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),_.current=h},[h,o])}const b=reactExports.useCallback(_=>{var _e;if(h){const $=isFunction(_)?_(e):_;$!==e&&((_e=d.current)==null||_e.call(d,$))}else c(_)},[h,e,c,d]);return[g,b]}function useUncontrolledState({defaultProp:e,onChange:s}){const[i,o]=reactExports.useState(e),a=reactExports.useRef(i),c=reactExports.useRef(s);return useInsertionEffect(()=>{c.current=s},[s]),reactExports.useEffect(()=>{var d;a.current!==i&&((d=c.current)==null||d.call(c,i),a.current=i)},[i,a]),[i,o,c]}function isFunction(e){return typeof e=="function"}var VISUALLY_HIDDEN_STYLES=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),NAME$2="VisuallyHidden",VisuallyHidden=reactExports.forwardRef((e,s)=>jsxRuntimeExports.jsx(Primitive.span,{...e,ref:s,style:{...VISUALLY_HIDDEN_STYLES,...e.style}}));VisuallyHidden.displayName=NAME$2;var Root$6=VisuallyHidden,PROVIDER_NAME$1="ToastProvider",[Collection$2,useCollection$2,createCollectionScope$2]=createCollection("Toast"),[createToastContext]=createContextScope("Toast",[createCollectionScope$2]),[ToastProviderProvider,useToastProviderContext]=createToastContext(PROVIDER_NAME$1),ToastProvider$1=e=>{const{__scopeToast:s,label:i="Notification",duration:o=5e3,swipeDirection:a="right",swipeThreshold:c=50,children:d}=e,[h,g]=reactExports.useState(null),[b,_]=reactExports.useState(0),_e=reactExports.useRef(!1),$=reactExports.useRef(!1);return i.trim()||console.error(`Invalid prop \`label\` supplied to \`${PROVIDER_NAME$1}\`. Expected non-empty \`string\`.`),jsxRuntimeExports.jsx(Collection$2.Provider,{scope:s,children:jsxRuntimeExports.jsx(ToastProviderProvider,{scope:s,label:i,duration:o,swipeDirection:a,swipeThreshold:c,toastCount:b,viewport:h,onViewportChange:g,onToastAdd:reactExports.useCallback(()=>_(et=>et+1),[]),onToastRemove:reactExports.useCallback(()=>_(et=>et-1),[]),isFocusedToastEscapeKeyDownRef:_e,isClosePausedRef:$,children:d})})};ToastProvider$1.displayName=PROVIDER_NAME$1;var VIEWPORT_NAME$1="ToastViewport",VIEWPORT_DEFAULT_HOTKEY=["F8"],VIEWPORT_PAUSE="toast.viewportPause",VIEWPORT_RESUME="toast.viewportResume",ToastViewport$1=reactExports.forwardRef((e,s)=>{const{__scopeToast:i,hotkey:o=VIEWPORT_DEFAULT_HOTKEY,label:a="Notifications ({hotkey})",...c}=e,d=useToastProviderContext(VIEWPORT_NAME$1,i),h=useCollection$2(i),g=reactExports.useRef(null),b=reactExports.useRef(null),_=reactExports.useRef(null),_e=reactExports.useRef(null),$=useComposedRefs(s,_e,d.onViewportChange),et=o.join("+").replace(/Key/g,"").replace(/Digit/g,""),it=d.toastCount>0;reactExports.useEffect(()=>{const lt=st=>{var nt;o.length!==0&&o.every(at=>st[at]||st.code===at)&&((nt=_e.current)==null||nt.focus())};return document.addEventListener("keydown",lt),()=>document.removeEventListener("keydown",lt)},[o]),reactExports.useEffect(()=>{const lt=g.current,st=_e.current;if(it&<&&st){const ot=()=>{if(!d.isClosePausedRef.current){const dt=new CustomEvent(VIEWPORT_PAUSE);st.dispatchEvent(dt),d.isClosePausedRef.current=!0}},nt=()=>{if(d.isClosePausedRef.current){const dt=new CustomEvent(VIEWPORT_RESUME);st.dispatchEvent(dt),d.isClosePausedRef.current=!1}},at=dt=>{!lt.contains(dt.relatedTarget)&&nt()},ct=()=>{lt.contains(document.activeElement)||nt()};return lt.addEventListener("focusin",ot),lt.addEventListener("focusout",at),lt.addEventListener("pointermove",ot),lt.addEventListener("pointerleave",ct),window.addEventListener("blur",ot),window.addEventListener("focus",nt),()=>{lt.removeEventListener("focusin",ot),lt.removeEventListener("focusout",at),lt.removeEventListener("pointermove",ot),lt.removeEventListener("pointerleave",ct),window.removeEventListener("blur",ot),window.removeEventListener("focus",nt)}}},[it,d.isClosePausedRef]);const rt=reactExports.useCallback(({tabbingDirection:lt})=>{const ot=h().map(nt=>{const at=nt.ref.current,ct=[at,...getTabbableCandidates$1(at)];return lt==="forwards"?ct:ct.reverse()});return(lt==="forwards"?ot.reverse():ot).flat()},[h]);return reactExports.useEffect(()=>{const lt=_e.current;if(lt){const st=ot=>{var ct,dt,pt;const nt=ot.altKey||ot.ctrlKey||ot.metaKey;if(ot.key==="Tab"&&!nt){const mt=document.activeElement,St=ot.shiftKey;if(ot.target===lt&&St){(ct=b.current)==null||ct.focus();return}const Ct=rt({tabbingDirection:St?"backwards":"forwards"}),Nt=Ct.findIndex(kt=>kt===mt);focusFirst$3(Ct.slice(Nt+1))?ot.preventDefault():St?(dt=b.current)==null||dt.focus():(pt=_.current)==null||pt.focus()}};return lt.addEventListener("keydown",st),()=>lt.removeEventListener("keydown",st)}},[h,rt]),jsxRuntimeExports.jsxs(Branch,{ref:g,role:"region","aria-label":a.replace("{hotkey}",et),tabIndex:-1,style:{pointerEvents:it?void 0:"none"},children:[it&&jsxRuntimeExports.jsx(FocusProxy,{ref:b,onFocusFromOutsideViewport:()=>{const lt=rt({tabbingDirection:"forwards"});focusFirst$3(lt)}}),jsxRuntimeExports.jsx(Collection$2.Slot,{scope:i,children:jsxRuntimeExports.jsx(Primitive.ol,{tabIndex:-1,...c,ref:$})}),it&&jsxRuntimeExports.jsx(FocusProxy,{ref:_,onFocusFromOutsideViewport:()=>{const lt=rt({tabbingDirection:"backwards"});focusFirst$3(lt)}})]})});ToastViewport$1.displayName=VIEWPORT_NAME$1;var FOCUS_PROXY_NAME="ToastFocusProxy",FocusProxy=reactExports.forwardRef((e,s)=>{const{__scopeToast:i,onFocusFromOutsideViewport:o,...a}=e,c=useToastProviderContext(FOCUS_PROXY_NAME,i);return jsxRuntimeExports.jsx(VisuallyHidden,{"aria-hidden":!0,tabIndex:0,...a,ref:s,style:{position:"fixed"},onFocus:d=>{var b;const h=d.relatedTarget;!((b=c.viewport)!=null&&b.contains(h))&&o()}})});FocusProxy.displayName=FOCUS_PROXY_NAME;var TOAST_NAME="Toast",TOAST_SWIPE_START="toast.swipeStart",TOAST_SWIPE_MOVE="toast.swipeMove",TOAST_SWIPE_CANCEL="toast.swipeCancel",TOAST_SWIPE_END="toast.swipeEnd",Toast$1=reactExports.forwardRef((e,s)=>{const{forceMount:i,open:o,defaultOpen:a,onOpenChange:c,...d}=e,[h,g]=useControllableState({prop:o,defaultProp:a??!0,onChange:c,caller:TOAST_NAME});return jsxRuntimeExports.jsx(Presence,{present:i||h,children:jsxRuntimeExports.jsx(ToastImpl,{open:h,...d,ref:s,onClose:()=>g(!1),onPause:useCallbackRef$1(e.onPause),onResume:useCallbackRef$1(e.onResume),onSwipeStart:composeEventHandlers(e.onSwipeStart,b=>{b.currentTarget.setAttribute("data-swipe","start")}),onSwipeMove:composeEventHandlers(e.onSwipeMove,b=>{const{x:_,y:_e}=b.detail.delta;b.currentTarget.setAttribute("data-swipe","move"),b.currentTarget.style.setProperty("--radix-toast-swipe-move-x",`${_}px`),b.currentTarget.style.setProperty("--radix-toast-swipe-move-y",`${_e}px`)}),onSwipeCancel:composeEventHandlers(e.onSwipeCancel,b=>{b.currentTarget.setAttribute("data-swipe","cancel"),b.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),b.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),b.currentTarget.style.removeProperty("--radix-toast-swipe-end-x"),b.currentTarget.style.removeProperty("--radix-toast-swipe-end-y")}),onSwipeEnd:composeEventHandlers(e.onSwipeEnd,b=>{const{x:_,y:_e}=b.detail.delta;b.currentTarget.setAttribute("data-swipe","end"),b.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),b.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),b.currentTarget.style.setProperty("--radix-toast-swipe-end-x",`${_}px`),b.currentTarget.style.setProperty("--radix-toast-swipe-end-y",`${_e}px`),g(!1)})})})});Toast$1.displayName=TOAST_NAME;var[ToastInteractiveProvider,useToastInteractiveContext]=createToastContext(TOAST_NAME,{onClose(){}}),ToastImpl=reactExports.forwardRef((e,s)=>{const{__scopeToast:i,type:o="foreground",duration:a,open:c,onClose:d,onEscapeKeyDown:h,onPause:g,onResume:b,onSwipeStart:_,onSwipeMove:_e,onSwipeCancel:$,onSwipeEnd:et,...it}=e,rt=useToastProviderContext(TOAST_NAME,i),[lt,st]=reactExports.useState(null),ot=useComposedRefs(s,kt=>st(kt)),nt=reactExports.useRef(null),at=reactExports.useRef(null),ct=a||rt.duration,dt=reactExports.useRef(0),pt=reactExports.useRef(ct),mt=reactExports.useRef(0),{onToastAdd:St,onToastRemove:Pt}=rt,Mt=useCallbackRef$1(()=>{var At;(lt==null?void 0:lt.contains(document.activeElement))&&((At=rt.viewport)==null||At.focus()),d()}),Ct=reactExports.useCallback(kt=>
41{!kt||kt===1/0||(window.clearTimeout(mt.current),dt.current=new Date().getTime(),mt.current=window.setTimeout(Mt,kt))},[Mt]);reactExports.useEffect(()=>{const kt=rt.viewport;if(kt){const At=()=>{Ct(pt.current),b==null||b()},ft=()=>{const Et=new Date().getTime()-dt.current;pt.current=pt.current-Et,window.clearTimeout(mt.current),g==null||g()};return kt.addEventListener(VIEWPORT_PAUSE,ft),kt.addEventListener(VIEWPORT_RESUME,At),()=>{kt.removeEventListener(VIEWPORT_PAUSE,ft),kt.removeEventListener(VIEWPORT_RESUME,At)}}},[rt.viewport,ct,g,b,Ct]),reactExports.useEffect(()=>{c&&!rt.isClosePausedRef.current&&Ct(ct)},[c,ct,rt.isClosePausedRef,Ct]),reactExports.useEffect(()=>(St(),()=>Pt()),[St,Pt]);const Nt=reactExports.useMemo(()=>lt?getAnnounceTextContent(lt):null,[lt]);return rt.viewport?jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[Nt&&jsxRuntimeExports.jsx(ToastAnnounce,{__scopeToast:i,role:"status","aria-live":o==="foreground"?"assertive":"polite","aria-atomic":!0,children:Nt}),jsxRuntimeExports.jsx(ToastInteractiveProvider,{scope:i,onClose:Mt,children:reactDomExports.createPortal(jsxRuntimeExports.jsx(Collection$2.ItemSlot,{scope:i,children:jsxRuntimeExports.jsx(Root$7,{asChild:!0,onEscapeKeyDown:composeEventHandlers(h,()=>{rt.isFocusedToastEscapeKeyDownRef.current||Mt(),rt.isFocusedToastEscapeKeyDownRef.current=!1}),children:jsxRuntimeExports.jsx(Primitive.li,{role:"status","aria-live":"off","aria-atomic":!0,tabIndex:0,"data-state":c?"open":"closed","data-swipe-direction":rt.swipeDirection,...it,ref:ot,style:{userSelect:"none",touchAction:"none",...e.style},onKeyDown:composeEventHandlers(e.onKeyDown,kt=>{kt.key==="Escape"&&(h==null||h(kt.nativeEvent),kt.nativeEvent.defaultPrevented||(rt.isFocusedToastEscapeKeyDownRef.current=!0,Mt()))}),onPointerDown:composeEventHandlers(e.onPointerDown,kt=>{kt.button===0&&(nt.current={x:kt.clientX,y:kt.clientY})}),onPointerMove:composeEventHandlers(e.onPointerMove,kt=>{if(!nt.current)return;const At=kt.clientX-nt.current.x,ft=kt.clientY-nt.current.y,Et=!!at.current,ut=["left","right"].includes(rt.swipeDirection),ht=["left","up"].includes(rt.swipeDirection)?Math.min:Math.max,gt=ut?ht(0,At):0,xt=ut?0:ht(0,ft),Rt=kt.pointerType==="touch"?10:2,Tt={x:gt,y:xt},It={originalEvent:kt,delta:Tt};Et?(at.current=Tt,handleAndDispatchCustomEvent(TOAST_SWIPE_MOVE,_e,It,{discrete:!1})):isDeltaInDirection(Tt,rt.swipeDirection,Rt)?(at.current=Tt,handleAndDispatchCustomEvent(TOAST_SWIPE_START,_,It,{discrete:!1}),kt.target.setPointerCapture(kt.pointerId)):(Math.abs(At)>Rt||Math.abs(ft)>Rt)&&(nt.current=null)}),onPointerUp:composeEventHandlers(e.onPointerUp,kt=>{const At=at.current,ft=kt.target;if(ft.hasPointerCapture(kt.pointerId)&&ft.releasePointerCapture(kt.pointerId),at.current=null,nt.current=null,At){const Et=kt.currentTarget,ut={originalEvent:kt,delta:At};isDeltaInDirection(At,rt.swipeDirection,rt.swipeThreshold)?handleAndDispatchCustomEvent(TOAST_SWIPE_END,et,ut,{discrete:!0}):handleAndDispatchCustomEvent(TOAST_SWIPE_CANCEL,$,ut,{discrete:!0}),Et.addEventListener("click",ht=>ht.preventDefault(),{once:!0})}})})})}),rt.viewport)})]}):null}),ToastAnnounce=e=>{const{__scopeToast:s,children:i,...o}=e,a=useToastProviderContext(TOAST_NAME,s),[c,d]=reactExports.useState(!1),[h,g]=reactExports.useState(!1);return useNextFrame(()=>d(!0)),reactExports.useEffect(()=>{const b=window.setTimeout(()=>g(!0),1e3);return()=>window.clearTimeout(b)},[]),h?null:jsxRuntimeExports.jsx(Portal$3,{asChild:!0,children:jsxRuntimeExports.jsx(VisuallyHidden,{...o,children:c&&jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[a.label," ",i]})})})},TITLE_NAME$1="ToastTitle",ToastTitle$1=reactExports.forwardRef((e,s)=>{const{__scopeToast:i,...o}=e;return jsxRuntimeExports.jsx(Primitive.div,{...o,ref:s})});ToastTitle$1.displayName=TITLE_NAME$1;var DESCRIPTION_NAME$1="ToastDescription",ToastDescription$1=reactExports.forwardRef((e,s)=>{const{__scopeToast:i,...o}=e;return jsxRuntimeExports.jsx(Primitive.div,{...o,ref:s})});ToastDescription$1.displayName=DESCRIPTION_NAME$1;var ACTION_NAME="ToastAction",ToastAction$1=reactExports.forwardRef((e,s)=>{const{altText:i,...o}=e;return i.trim()?jsxRuntimeExports.jsx(ToastAnnounceExclude,{altText:i,asChild:!0,children:jsxRuntimeExports.jsx(ToastClose$1,{...o,ref:s})}):(console.error(`Invalid prop \`altText\` supplied to \`${ACTION_NAME}\`. Expected non-empty \`string\`.`),null)});ToastAction$1.displayName=ACTION_NAME;var CLOSE_NAME$2="ToastClose",ToastClose$1=reactExports.forwardRef((e,s)=>{const{__scopeToast:i,...o}=e,a=useToastInteractiveContext(CLOSE_NAME$2,i);return jsxRuntimeExports.jsx(ToastAnnounceExclude,{asChild:!0,children:jsxRuntimeExports.jsx(Primitive.button,{type:"button",...o,ref:s,onClick:composeEventHandlers(e.onClick,a.onClose)})})});ToastClose$1.displayName=CLOSE_NAME$2;var ToastAnnounceExclude=reactExports.forwardRef((e,s)=>{const{__scopeToast:i,altText:o,...a}=e;return jsxRuntimeExports.jsx(Primitive.div,{"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":o||void 0,...a,ref:s})});function getAnnounceTextContent(e){const s=[];
41return Array.from(e.childNodes).forEach(o=>{if(o.nodeType===o.TEXT_NODE&&o.textContent&&s.push(o.textContent),isHTMLElement$1(o)){const a=o.ariaHidden||o.hidden||o.style.display==="none",c=o.dataset.radixToastAnnounceExclude==="";if(!a)if(c){const d=o.dataset.radixToastAnnounceAlt;d&&s.push(d)}else s.push(...getAnnounceTextContent(o))}}),s}function handleAndDispatchCustomEvent(e,s,i,{discrete:o}){const a=i.originalEvent.currentTarget,c=new CustomEvent(e,{bubbles:!0,cancelable:!0,detail:i});s&&a.addEventListener(e,s,{once:!0}),o?dispatchDiscreteCustomEvent(a,c):a.dispatchEvent(c)}var isDeltaInDirection=(e,s,i=0)=>{const o=Math.abs(e.x),a=Math.abs(e.y),c=o>a;return s==="left"||s==="right"?c&&o>i:!c&&a>i};function useNextFrame(e=()=>{}){const s=useCallbackRef$1(e);useLayoutEffect2(()=>{let i=0,o=0;return i=window.requestAnimationFrame(()=>o=window.requestAnimationFrame(s)),()=>{window.cancelAnimationFrame(i),window.cancelAnimationFrame(o)}},[s])}function isHTMLElement$1(e){return e.nodeType===e.ELEMENT_NODE}function getTabbableCandidates$1(e){const s=[],i=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:o=>{const a=o.tagName==="INPUT"&&o.type==="hidden";return o.disabled||o.hidden||a?NodeFilter.FILTER_SKIP:o.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;i.nextNode();)s.push(i.currentNode);return s}function focusFirst$3(e){const s=document.activeElement;return e.some(i=>i===s?!0:(i.focus(),document.activeElement!==s))}var Provider$1=ToastProvider$1,Viewport$1=ToastViewport$1,Root2$3=Toast$1,Title$1=ToastTitle$1,Description$1=ToastDescription$1,Action$1=ToastAction$1,Close$1=ToastClose$1;function r(e){var s,i,o="";if(typeof e=="string"||typeof e=="number")o+=e;else if(typeof e=="object")if(Array.isArray(e)){var a=e.length;for(s=0;s<a;s++)e[s]&&(i=r(e[s]))&&(o&&(o+=" "),o+=i)}else for(i in e)e[i]&&(o&&(o+=" "),o+=i);return o}function clsx(){for(var e,s,i=0,o="",a=arguments.length;i<a;i++)(e=arguments[i])&&(s=r(e))&&(o&&(o+=" "),o+=s);return o}const falsyToString=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,cx=clsx,cva=(e,s)=>i=>{var o;if((s==null?void 0:s.variants)==null)return cx(e,i==null?void 0:i.class,i==null?void 0:i.className);const{variants:a,defaultVariants:c}=s,d=Object.keys(a).map(b=>{const _=i==null?void 0:i[b],_e=c==null?void 0:c[b];if(_===null)return null;const $=falsyToString(_)||falsyToString(_e);return a[b][$]}),h=i&&Object.entries(i).reduce((b,_)=>{let[_e,$]=_;return $===void 0||(b[_e]=$),b},{}),g=s==null||(o=s.compoundVariants)===null||o===void 0?void 0:o.reduce((b,_)=>{let{class:_e,className:$,...et}=_;return Object.entries(et).every(it=>{let[rt,lt]=it;return Array.isArray(lt)?lt.includes({...c,...h}[rt]):{...c,...h}[rt]===lt})?[...b,_e,$]:b},[]);return cx(e,d,g,i==null?void 0:i.class,i==null?void 0:i.className)};/** 42 * @license lucide-react v0.462.0 - ISC 43 * 44 * This source code is licensed under the ISC license. 45 * See the LICENSE file in the root directory of this source tree. 46 */const toKebabCase=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),mergeClasses=(...e)=>e.filter((s,i,o)=>!!s&&s.trim()!==""&&o.indexOf(s)===i).join(" ").trim();/** 47 * @license lucide-react v0.462.0 - ISC 48 * 49 * This source code is licensed under the ISC license. 50 * See the LICENSE file in the root directory of this source tree. 51 */var defaultAttributes={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/** 52 * @license lucide-react v0.462.0 - ISC 53 * 54 * This source code is licensed under the ISC license. 55 * See the LICENSE file in the root directory of this source tree. 56 */const Icon=reactExports.forwardRef(({color:e="currentColor",size:s=24,strokeWidth:i=2,absoluteStrokeWidth:o,className:a="",children:c,iconNode:d,...h},g)=>reactExports.createElement("svg",{ref:g,...defaultAttributes,width:s,height:s,stroke:e,strokeWidth:o?Number(i)*24/Number(s):i,className:mergeClasses("lucide",a),...h},[...d.map(([b,_])=>reactExports.createElement(b,_)),...Array.isArray(c)?c:[c]]));/** 57 * @license lucide-react v0.462.0 - ISC 58 * 59 * This source code is licensed under the ISC license. 60 * See the LICENSE file in the root directory of this source tree. 61 */const createLucideIcon=(e,s)=>{const i=reactExports.forwardRef(({className:o,...a},c)=>reactExports.createElement(Icon,{ref:c,iconNode:s,className:mergeClasses(`lucide-${toKebabCase(e)}`,o),...a}));return i.displayName=`${e}`,i};/** 62 * @license lucide-react v0.462.0 - ISC 63 * 64 * This source code is licensed under the ISC license. 65 * See the LICENSE file in the root directory of this source tree. 66 */const Apple=createLucideIcon("Apple",[["path",{d:"M12 20.94c1.5 0 2.75 1.06 4 1.06 3 0 6-8 6-12.22A4.91 4.91 0 0 0 17 5c-2.22 0-4 1.44-5 2-1-.56-2.78-2-5-2a4.9 4.9 0 0 0-5 4.78C2 14 5 22 8 22c1.25 0 2.5-1.06 4-1.06Z",key:"3s7exb"}],["path",{d:"M10 2c1 .5 2 2 2 5",key:"fcco2y"}]]);/** 67 * @license lucide-react v0.462.0 - ISC 68 * 69 * This source code is licensed under the ISC license. 70 * See the LICENSE file in the root directory of this source tree. 71 */const ArrowLeft=createLucideIcon("ArrowLeft",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]);/** 72 * @license lucide-react v0.462.0 - ISC 73 * 74 * This source code is licensed under the ISC license. 75 * See the LICENSE file in the root directory of this source tree. 76 */const ArrowRight=createLucideIcon("ArrowRight",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]]);/** 77 * @license lucide-react v0.462.0 - ISC 78 * 79 * This source code is licensed under the ISC license. 80 * See the LICENSE file in the root directory of this source tree. 81 */const BadgeDollarSign=createLucideIcon("BadgeDollarSign",[["path",{d:"M3.85 8.62a4 4 0 0 1 4.78-4.77 4 4 0 0 1 6.74 0 4 4 0 0 1 4.78 4.78 4 4 0 0 1 0 6.74 4 4 0 0 1-4.77 4.78 4 4 0 0 1-6.75 0 4 4 0 0 1-4.78-4.77 4 4 0 0 1 0-6.76Z",key:"3c2336"}],["path",{d:"M16 8h-6a2 2 0 1 0 0 4h4a2 2 0 1 1 0 4H8",key:"1h4pet"}],["path",{d:"M12 18V6",key:"zqpxq5"}]]);/** 82 * @license lucide-react v0.462.0 - ISC 83 * 84 * This source code is licensed under the ISC license. 85 * See the LICENSE file in the root directory of this source tree. 86 */const Bell=createLucideIcon("Bell",[["path",{d:"M6 8a6 6 0 0 1 12 0c0 7 3 9 3 9H3s3-2 3-9",key:"1qo2s2"}],["path",{d:"M10.3 21a1.94 1.94 0 0 0 3.4 0",key:"qgo35s"}]]);/** 87 * @license lucide-react v0.462.0 - ISC 88 * 89 * This source code is licensed under the ISC license. 90 * See the LICENSE file in the root directory of this source tree. 91 */const BookOpen=createLucideIcon("BookOpen",[["path",{d:"M12 7v14",key:"1akyts"}],["path",{d:"M3 18a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h5a4 4 0 0 1 4 4 4 4 0 0 1 4-4h5a1 1 0 0 1 1 1v13a1 1 0 0 1-1 1h-6a3 3 0 0 0-3 3 3 3 0 0 0-3-3z",key:"ruj8y"}]]);/** 92 * @license lucide-react v0.462.0 - ISC 93 * 94 * This source code is licensed under the ISC license. 95 * See the LICENSE file in the root directory of this source tree. 96 */const Bookmark=createLucideIcon("Bookmark",[["path",{d:"m19 21-7-4-7 4V5a2 2 0 0 1 2-2h10a2 2 0 0 1 2 2v16z",key:"1fy3hk"}]]);/** 97 * @license lucide-react v0.462.0 - ISC 98 * 99 * This source code is licensed under the ISC license. 100 * See the LICENSE file in the root directory of this source tree. 101 */const Bot=createLucideIcon("Bot",[["path",{d:"M12 8V4H8",key:"hb8ula"}],["rect",{width:"16",height:"12",x:"4",y:"8",rx:"2",key:"enze0r"}],["path",{d:"M2 14h2",key:"vft8re"}],["path",{d:"M20 14h2",key:"4cs60a"}],["path",{d:"M15 13v2",key:"1xurst"}],["path",{d:"M9 13v2",key:"rq6x2g"}]]);/** 102 * @license lucide-react v0.462.0 - ISC 103 * 104 * This source code is licensed under the ISC license. 105 * See the LICENSE file in the root directory of this source tree. 106 */const Building2=createLucideIcon("Building2",[["path",{d:"M6 22V4a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v18Z",key:"1b4qmf"}],["path",{d:"M6 12H4a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2h2",key:"i71pzd"}],["path",{d:"M18 9h2a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2h-2",key:"10jefs"}],["path",{d:"M10 6h4",key:"1itunk"}],["path",{d:"M10 10h4",key:"tcdvrf"}
106],["path",{d:"M10 14h4",key:"kelpxr"}],["path",{d:"M10 18h4",key:"1ulq68"}]]);/** 107 * @license lucide-react v0.462.0 - ISC 108 * 109 * This source code is licensed under the ISC license. 110 * See the LICENSE file in the root directory of this source tree. 111 */const ChartLine=createLucideIcon("ChartLine",[["path",{d:"M3 3v16a2 2 0 0 0 2 2h16",key:"c24i48"}],["path",{d:"m19 9-5 5-4-4-3 3",key:"2osh9i"}]]);/** 112 * @license lucide-react v0.462.0 - ISC 113 * 114 * This source code is licensed under the ISC license. 115 * See the LICENSE file in the root directory of this source tree. 116 */const Check=createLucideIcon("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);/** 117 * @license lucide-react v0.462.0 - ISC 118 * 119 * This source code is licensed under the ISC license. 120 * See the LICENSE file in the root directory of this source tree. 121 */const ChevronDown=createLucideIcon("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);/** 122 * @license lucide-react v0.462.0 - ISC 123 * 124 * This source code is licensed under the ISC license. 125 * See the LICENSE file in the root directory of this source tree. 126 */const ChevronRight=createLucideIcon("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);/** 127 * @license lucide-react v0.462.0 - ISC 128 * 129 * This source code is licensed under the ISC license. 130 * See the LICENSE file in the root directory of this source tree. 131 */const Circle=createLucideIcon("Circle",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]);/** 132 * @license lucide-react v0.462.0 - ISC 133 * 134 * This source code is licensed under the ISC license. 135 * See the LICENSE file in the root directory of this source tree. 136 */const Copy=createLucideIcon("Copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]);/** 137 * @license lucide-react v0.462.0 - ISC 138 * 139 * This source code is licensed under the ISC license. 140 * See the LICENSE file in the root directory of this source tree. 141 */const Download=createLucideIcon("Download",[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"7 10 12 15 17 10",key:"2ggqvy"}],["line",{x1:"12",x2:"12",y1:"15",y2:"3",key:"1vk2je"}]]);/** 142 * @license lucide-react v0.462.0 - ISC 143 * 144 * This source code is licensed under the ISC license. 145 * See the LICENSE file in the root directory of this source tree. 146 */const Earth=createLucideIcon("Earth",[["path",{d:"M21.54 15H17a2 2 0 0 0-2 2v4.54",key:"1djwo0"}],["path",{d:"M7 3.34V5a3 3 0 0 0 3 3a2 2 0 0 1 2 2c0 1.1.9 2 2 2a2 2 0 0 0 2-2c0-1.1.9-2 2-2h3.17",key:"1tzkfa"}],["path",{d:"M11 21.95V18a2 2 0 0 0-2-2a2 2 0 0 1-2-2v-1a2 2 0 0 0-2-2H2.05",key:"14pb5j"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]);/** 147 * @license lucide-react v0.462.0 - ISC 148 * 149 * This source code is licensed under the ISC license. 150 * See the LICENSE file in the root directory of this source tree. 151 */const EllipsisVertical=createLucideIcon("EllipsisVertical",[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"12",cy:"5",r:"1",key:"gxeob9"}],["circle",{cx:"12",cy:"19",r:"1",key:"lyex9k"}]]);/** 152 * @license lucide-react v0.462.0 - ISC 153 * 154 * This source code is licensed under the ISC license. 155 * See the LICENSE file in the root directory of this source tree. 156 */const Ellipsis=createLucideIcon("Ellipsis",[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"19",cy:"12",r:"1",key:"1wjl8i"}],["circle",{cx:"5",cy:"12",r:"1",key:"1pcz8c"}]]);/** 157 * @license lucide-react v0.462.0 - ISC 158 * 159 * This source code is licensed under the ISC license. 160 * See the LICENSE file in the root directory of this source tree. 161 */const EyeOff=createLucideIcon("EyeOff",[["path",{d:"M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49",key:"ct8e1f"}],["path",{d:"M14.084 14.158a3 3 0 0 1-4.242-4.242",key:"151rxh"}],["path",{d:"M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143",key:"13bj9a"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]]);/** 162 * @license lucide-react v0.462.0 - ISC 163 * 164 * This source code is licensed under the ISC license. 165 * See the LICENSE file in the root directory of this source tree. 166 */const Facebook=createLucideIcon("Facebook",[["path",{d:"M18 2h-3a5 5 0 0 0-5 5v3H7v4h3v8h4v-8h3l1-4h-4V7a1 1 0 0 1 1-1h3z",key:"1jg4f8"}]]);/** 167 * @license lucide-react v0.462.0 - ISC 168 * 169 * This source code is licensed under the ISC license. 170 * See the LICENSE file in the root directory of this source tree. 171 */const FileText=createLucideIcon("FileText",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]]);/** 172 * @license lucide-react v0.462.0 - ISC 173 * 174 * This source code is licensed under the ISC license. 175 * See the LICENSE file in the root directory of this source tree. 176 */const Folder=createLucideIcon("Folder",[["path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z",key:"1kt360"}
176]]);/** 177 * @license lucide-react v0.462.0 - ISC 178 * 179 * This source code is licensed under the ISC license. 180 * See the LICENSE file in the root directory of this source tree. 181 */const Globe=createLucideIcon("Globe",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]]);/** 182 * @license lucide-react v0.462.0 - ISC 183 * 184 * This source code is licensed under the ISC license. 185 * See the LICENSE file in the root directory of this source tree. 186 */const GraduationCap=createLucideIcon("GraduationCap",[["path",{d:"M21.42 10.922a1 1 0 0 0-.019-1.838L12.83 5.18a2 2 0 0 0-1.66 0L2.6 9.08a1 1 0 0 0 0 1.832l8.57 3.908a2 2 0 0 0 1.66 0z",key:"j76jl0"}],["path",{d:"M22 10v6",key:"1lu8f3"}],["path",{d:"M6 12.5V16a6 3 0 0 0 12 0v-3.5",key:"1r8lef"}]]);/** 187 * @license lucide-react v0.462.0 - ISC 188 * 189 * This source code is licensed under the ISC license. 190 * See the LICENSE file in the root directory of this source tree. 191 */const House=createLucideIcon("House",[["path",{d:"M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8",key:"5wwlr5"}],["path",{d:"M3 10a2 2 0 0 1 .709-1.528l7-5.999a2 2 0 0 1 2.582 0l7 5.999A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z",key:"1d0kgt"}]]);/** 192 * @license lucide-react v0.462.0 - ISC 193 * 194 * This source code is licensed under the ISC license. 195 * See the LICENSE file in the root directory of this source tree. 196 */const Instagram=createLucideIcon("Instagram",[["rect",{width:"20",height:"20",x:"2",y:"2",rx:"5",ry:"5",key:"2e1cvw"}],["path",{d:"M16 11.37A4 4 0 1 1 12.63 8 4 4 0 0 1 16 11.37z",key:"9exkf1"}],["line",{x1:"17.5",x2:"17.51",y1:"6.5",y2:"6.5",key:"r4j83e"}]]);/** 197 * @license lucide-react v0.462.0 - ISC 198 * 199 * This source code is licensed under the ISC license. 200 * See the LICENSE file in the root directory of this source tree. 201 */const Layers=createLucideIcon("Layers",[["path",{d:"m12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83Z",key:"8b97xw"}],["path",{d:"m22 17.65-9.17 4.16a2 2 0 0 1-1.66 0L2 17.65",key:"dd6zsq"}],["path",{d:"m22 12.65-9.17 4.16a2 2 0 0 1-1.66 0L2 12.65",key:"ep9fru"}]]);/** 202 * @license lucide-react v0.462.0 - ISC 203 * 204 * This source code is licensed under the ISC license. 205 * See the LICENSE file in the root directory of this source tree. 206 */const Link2=createLucideIcon("Link2",[["path",{d:"M9 17H7A5 5 0 0 1 7 7h2",key:"8i5ue5"}],["path",{d:"M15 7h2a5 5 0 1 1 0 10h-2",key:"1b9ql8"}],["line",{x1:"8",x2:"16",y1:"12",y2:"12",key:"1jonct"}]]);/** 207 * @license lucide-react v0.462.0 - ISC 208 * 209 * This source code is licensed under the ISC license. 210 * See the LICENSE file in the root directory of this source tree. 211 */const Link$1=createLucideIcon("Link",[["path",{d:"M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71",key:"1cjeqo"}],["path",{d:"M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71",key:"19qd67"}]]);/** 212 * @license lucide-react v0.462.0 - ISC 213 * 214 * This source code is licensed under the ISC license. 215 * See the LICENSE file in the root directory of this source tree. 216 */const Linkedin=createLucideIcon("Linkedin",[["path",{d:"M16 8a6 6 0 0 1 6 6v7h-4v-7a2 2 0 0 0-2-2 2 2 0 0 0-2 2v7h-4v-7a6 6 0 0 1 6-6z",key:"c2jq9f"}],["rect",{width:"4",height:"12",x:"2",y:"9",key:"mk3on5"}],["circle",{cx:"4",cy:"4",r:"2",key:"bt5ra8"}]]);/** 217 * @license lucide-react v0.462.0 - ISC 218 * 219 * This source code is licensed under the ISC license. 220 * See the LICENSE file in the root directory of this source tree. 221 */const LoaderCircle=createLucideIcon("LoaderCircle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);/** 222 * @license lucide-react v0.462.0 - ISC 223 * 224 * This source code is licensed under the ISC license. 225 * See the LICENSE file in the root directory of this source tree. 226 */const Lock=createLucideIcon("Lock",[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 10 0v4",key:"fwvmzm"}]]);/** 227 * @license lucide-react v0.462.0 - ISC 228 * 229 * This source code is licensed under the ISC license. 230 * See the LICENSE file in the root directory of this source tree. 231 */const LogOut=createLucideIcon("LogOut",[["path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4",key:"1uf3rs"}],["polyline",{points:"16 17 21 12 16 7",key:"1gabdz"}],["line",{x1:"21",x2:"9",y1:"12",y2:"12",key:"1uyos4"}]]);/** 232 * @license lucide-react v0.462.0 - ISC 233 * 234 * This source code is licensed under the ISC license. 235 * See the LICENSE file in the root directory of this source tree. 236 */const Menu$1=createLucideIcon("Menu",[["line",{x1:"4",x2:"20",y1:"12",y2:"12",key:"1e0a9i"}],["line",{x1:"4",x2:"20",y1:"6",y2:"6",key:"1owob3"}],["line",{x1:"4",x2:"20",y1:"18",y2:"18",key:"yk5zj1"}]]);/** 237 * @license lucide-react v0.462.0 - ISC 238 * 239 * This source code is licensed under the ISC license. 240 * See the LICENSE file in the root directory of this source tree. 241 */const MonitorSmartphone=createLucideIcon("MonitorSmartphone",[["path",{d:"M18 8V6a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2v7a2 2 0 0 0 2 2h8",key:"10dyio"}],["path",{d:"M10 19v-3.96 3.15",key:"1irgej"}],["path",{d:"M7 19h5",key:"qswx4l"}],["rect",{width:"6",height:"10",x:"16",y:"12",rx:"2",key:"1egngj"}]]);/** 242 * @license lucide-react v0.462.0 - ISC 243 * 244 * This source code is licensed under the ISC license. 245 * See the LICENSE file in the root directory of this source tree. 246 */const Monitor=createLucideIcon("Monitor",[["rect",{width:"20",height:"14",x:"2",y:"3",rx:"2",key:"48i651"}],["line",{x1:"8",x2:"16",y1:"21",y2:"21",key:"1svkeh"}],["line",{x1:"12",x2:"12",y1:"17",y2:"21",key:"vw1qmm"}]]);/** 247 * @license lucide-react v0.462.0 - ISC 248 * 249 * This source code is licensed under the ISC license. 250 * See the LICENSE file in the root directory of this source tree. 251 */const PanelLeft=createLucideIcon("PanelLeft",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}]]);/** 252 * @license lucide-react v0.462.0 - ISC 253 * 254 * This source code is licensed under the ISC license. 255 * See the LICENSE file in the root directory of this source tree. 256 */const Pencil=createLucideIcon("Pencil",[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}],["path",{d:"m15 5 4 4",key:"1mk7zo"}]]);/** 257 * @license lucide-react v0.462.0 - ISC 258 * 259 * This source code is licensed under the ISC license. 260 * See the LICENSE file in the root directory of this source tree. 261 */const Pin=createLucideIcon("Pin",[["path",{d:"M12 17v5",key:"bb1du9"}],["path",{d:"M9 10.76a2 2 0 0 1-1.11 1.79l-1.78.9A2 2 0 0 0 5 15.24V16a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1v-.76a2 2 0 0 0-1.11-1.79l-1.78-.9A2 2 0 0 1 15 10.76V7
261a1 1 0 0 1 1-1 2 2 0 0 0 0-4H8a2 2 0 0 0 0 4 1 1 0 0 1 1 1z",key:"1nkz8b"}]]);/** 262 * @license lucide-react v0.462.0 - ISC 263 * 264 * This source code is licensed under the ISC license. 265 * See the LICENSE file in the root directory of this source tree. 266 */const Plus=createLucideIcon("Plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]);/** 267 * @license lucide-react v0.462.0 - ISC 268 * 269 * This source code is licensed under the ISC license. 270 * See the LICENSE file in the root directory of this source tree. 271 */const Puzzle=createLucideIcon("Puzzle",[["path",{d:"M15.39 4.39a1 1 0 0 0 1.68-.474 2.5 2.5 0 1 1 3.014 3.015 1 1 0 0 0-.474 1.68l1.683 1.682a2.414 2.414 0 0 1 0 3.414L19.61 15.39a1 1 0 0 1-1.68-.474 2.5 2.5 0 1 0-3.014 3.015 1 1 0 0 1 .474 1.68l-1.683 1.682a2.414 2.414 0 0 1-3.414 0L8.61 19.61a1 1 0 0 0-1.68.474 2.5 2.5 0 1 1-3.014-3.015 1 1 0 0 0 .474-1.68l-1.683-1.682a2.414 2.414 0 0 1 0-3.414L4.39 8.61a1 1 0 0 1 1.68.474 2.5 2.5 0 1 0 3.014-3.015 1 1 0 0 1-.474-1.68l1.683-1.682a2.414 2.414 0 0 1 3.414 0z",key:"w46dr5"}]]);/** 272 * @license lucide-react v0.462.0 - ISC 273 * 274 * This source code is licensed under the ISC license. 275 * See the LICENSE file in the root directory of this source tree. 276 */const Rocket=createLucideIcon("Rocket",[["path",{d:"M4.5 16.5c-1.5 1.26-2 5-2 5s3.74-.5 5-2c.71-.84.7-2.13-.09-2.91a2.18 2.18 0 0 0-2.91-.09z",key:"m3kijz"}],["path",{d:"m12 15-3-3a22 22 0 0 1 2-3.95A12.88 12.88 0 0 1 22 2c0 2.72-.78 7.5-6 11a22.35 22.35 0 0 1-4 2z",key:"1fmvmk"}],["path",{d:"M9 12H4s.55-3.03 2-4c1.62-1.08 5 0 5 0",key:"1f8sc4"}],["path",{d:"M12 15v5s3.03-.55 4-2c1.08-1.62 0-5 0-5",key:"qeys4"}]]);/** 277 * @license lucide-react v0.462.0 - ISC 278 * 279 * This source code is licensed under the ISC license. 280 * See the LICENSE file in the root directory of this source tree. 281 */const Route$1=createLucideIcon("Route",[["circle",{cx:"6",cy:"19",r:"3",key:"1kj8tv"}],["path",{d:"M9 19h8.5a3.5 3.5 0 0 0 0-7h-11a3.5 3.5 0 0 1 0-7H15",key:"1d8sl"}],["circle",{cx:"18",cy:"5",r:"3",key:"gq8acd"}]]);/** 282 * @license lucide-react v0.462.0 - ISC 283 * 284 * This source code is licensed under the ISC license. 285 * See the LICENSE file in the root directory of this source tree. 286 */const Search=createLucideIcon("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]]);/** 287 * @license lucide-react v0.462.0 - ISC 288 * 289 * This source code is licensed under the ISC license. 290 * See the LICENSE file in the root directory of this source tree. 291 */const Settings2=createLucideIcon("Settings2",[["path",{d:"M20 7h-9",key:"3s1dr2"}],["path",{d:"M14 17H5",key:"gfn3mx"}],["circle",{cx:"17",cy:"17",r:"3",key:"18b49y"}],["circle",{cx:"7",cy:"7",r:"3",key:"dfmy0x"}]]);/** 292 * @license lucide-react v0.462.0 - ISC 293 * 294 * This source code is licensed under the ISC license. 295 * See the LICENSE file in the root directory of this source tree. 296 */const Settings=createLucideIcon("Settings",[["path",{d:"M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z",key:"1qme2f"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);/** 297 * @license lucide-react v0.462.0 - ISC 298 * 299 * This source code is licensed under the ISC license. 300 * See the LICENSE file in the root directory of this source tree. 301 */const Share2=createLucideIcon("Share2",[["circle",{cx:"18",cy:"5",r:"3",key:"gq8acd"}],["circle",{cx:"6",cy:"12",r:"3",key:"w7nqdw"}],["circle",{cx:"18",cy:"19",r:"3",key:"1xt0gg"}],["line",{x1:"8.59",x2:"15.42",y1:"13.51",y2:"17.49",key:"47mynk"}],["line",{x1:"15.41",x2:"8.59",y1:"6.51",y2:"10.49",key:"1n3mei"}]]);/** 302 * @license lucide-react v0.462.0 - ISC 303 * 304 * This source code is licensed under the ISC license. 305 * See the LICENSE file in the root directory of this source tree. 306 */const ShieldCheck=createLucideIcon("ShieldCheck",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",ke
306y:"oel41y"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);/** 307 * @license lucide-react v0.462.0 - ISC 308 * 309 * This source code is licensed under the ISC license. 310 * See the LICENSE file in the root directory of this source tree. 311 */const Sparkles=createLucideIcon("Sparkles",[["path",{d:"M9.937 15.5A2 2 0 0 0 8.5 14.063l-6.135-1.582a.5.5 0 0 1 0-.962L8.5 9.936A2 2 0 0 0 9.937 8.5l1.582-6.135a.5.5 0 0 1 .963 0L14.063 8.5A2 2 0 0 0 15.5 9.937l6.135 1.581a.5.5 0 0 1 0 .964L15.5 14.063a2 2 0 0 0-1.437 1.437l-1.582 6.135a.5.5 0 0 1-.963 0z",key:"4pj2yx"}],["path",{d:"M20 3v4",key:"1olli1"}],["path",{d:"M22 5h-4",key:"1gvqau"}],["path",{d:"M4 17v2",key:"vumght"}],["path",{d:"M5 18H3",key:"zchphs"}]]);/** 312 * @license lucide-react v0.462.0 - ISC 313 * 314 * This source code is licensed under the ISC license. 315 * See the LICENSE file in the root directory of this source tree. 316 */const Star=createLucideIcon("Star",[["path",{d:"M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z",key:"r04s7s"}]]);/** 317 * @license lucide-react v0.462.0 - ISC 318 * 319 * This source code is licensed under the ISC license. 320 * See the LICENSE file in the root directory of this source tree. 321 */const Stethoscope=createLucideIcon("Stethoscope",[["path",{d:"M11 2v2",key:"1539x4"}],["path",{d:"M5 2v2",key:"1yf1q8"}],["path",{d:"M5 3H4a2 2 0 0 0-2 2v4a6 6 0 0 0 12 0V5a2 2 0 0 0-2-2h-1",key:"rb5t3r"}],["path",{d:"M8 15a6 6 0 0 0 12 0v-3",key:"x18d4x"}],["circle",{cx:"20",cy:"10",r:"2",key:"ts1r5v"}]]);/** 322 * @license lucide-react v0.462.0 - ISC 323 * 324 * This source code is licensed under the ISC license. 325 * See the LICENSE file in the root directory of this source tree. 326 */const ThumbsUp=createLucideIcon("ThumbsUp",[["path",{d:"M7 10v12",key:"1qc93n"}],["path",{d:"M15 5.88 14 10h5.83a2 2 0 0 1 1.92 2.56l-2.33 8A2 2 0 0 1 17.5 22H4a2 2 0 0 1-2-2v-8a2 2 0 0 1 2-2h2.76a2 2 0 0 0 1.79-1.11L12 2a3.13 3.13 0 0 1 3 3.88Z",key:"emmmcr"}]]);/** 327 * @license lucide-react v0.462.0 - ISC 328 * 329 * This source code is licensed under the ISC license. 330 * See the LICENSE file in the root directory of this source tree. 331 */const Trash2=createLucideIcon("Trash2",[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]]);/** 332 * @license lucide-react v0.462.0 - ISC 333 * 334 * This source code is licensed under the ISC license. 335 * See the LICENSE file in the root directory of this source tree. 336 */const Trophy=createLucideIcon("Trophy",[["path",{d:"M6 9H4.5a2.5 2.5 0 0 1 0-5H6",key:"17hqa7"}],["path",{d:"M18 9h1.5a2.5 2.5 0 0 0 0-5H18",key:"lmptdp"}],["path",{d:"M4 22h16",key:"57wxv0"}],["path",{d:"M10 14.66V17c0 .55-.47.98-.97 1.21C7.85 18.75 7 20.24 7 22",key:"1nw9bq"}],["path",{d:"M14 14.66V17c0 .55.47.98.97 1.21C16.15 18.75 17 20.24 17 22",key:"1np0yb"}],["path",{d:"M18 2H6v7a6 6 0 0 0 12 0V2Z",key:"u46fv3"}]]);/** 337 * @license lucide-react v0.462.0 - ISC 338 * 339 * This source code is licensed under the ISC license. 340 * See the LICENSE file in the root directory of this source tree. 341 */const Upload=createLucideIcon("Upload",[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"17 8 12 3 7 8",key:"t8dd8p"}],["line",{x1:"12",x2:"12",y1:"3",y2:"15",key:"widbto"}]]);/** 342 * @license lucide-react v0.462.0 - ISC 343 * 344 * This source code is licensed under the ISC license. 345 * See the LICENSE file in the root directory of this source tree. 346 */const UserCheck=createLucideIcon("UserCheck",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["polyline",{points:"16 11 18 13 22 9",key:"1pwet4"}]]);/** 347 * @license lucide-react v0.462.0 - ISC 348 * 349 * This source code is licensed under the ISC license. 350 * See the LICENSE file in the root directory of this source tree. 351 */const UserPlus=createLucideIcon("UserPlus",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["line",{x1:"19",x2:"19",y1:"8",y2:"14",key:"1bvyxn"}],["line",{x1:"22",x2:"16",y1:"11",y2:"11",key:"1shjgl"}]]);/** 352 * @license lucide-react v0.462.0 - ISC 353 * 354 * This source code is licensed under the ISC license. 355 * See the LICENSE file in the root directory of this source tree. 356 */const UserRound=createLucideIcon("UserRound",[["circle",{cx:"12",cy:"8",r:"5",key:"1hypcn"}
vendor: 9,579 bytes, lines 356-381
356],["path",{d:"M20 21a8 8 0 0 0-16 0",key:"rfgkzh"}]]);/** 357 * @license lucide-react v0.462.0 - ISC 358 * 359 * This source code is licensed under the ISC license. 360 * See the LICENSE file in the root directory of this source tree. 361 */const User=createLucideIcon("User",[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]]);/** 362 * @license lucide-react v0.462.0 - ISC 363 * 364 * This source code is licensed under the ISC license. 365 * See the LICENSE file in the root directory of this source tree. 366 */const Users=createLucideIcon("Users",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["path",{d:"M16 3.13a4 4 0 0 1 0 7.75",key:"1da9ce"}]]);/** 367 * @license lucide-react v0.462.0 - ISC 368 * 369 * This source code is licensed under the ISC license. 370 * See the LICENSE file in the root directory of this source tree. 371 */const Wrench=createLucideIcon("Wrench",[["path",{d:"M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.77-3.77a6 6 0 0 1-7.94 7.94l-6.91 6.91a2.12 2.12 0 0 1-3-3l6.91-6.91a6 6 0 0 1 7.94-7.94l-3.76 3.76z",key:"cbrjhi"}]]);/** 372 * @license lucide-react v0.462.0 - ISC 373 * 374 * This source code is licensed under the ISC license. 375 * See the LICENSE file in the root directory of this source tree. 376 */const X=createLucideIcon("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);/** 377 * @license lucide-react v0.462.0 - ISC 378 * 379 * This source code is licensed under the ISC license. 380 * See the LICENSE file in the root directory of this source tree. 381 */const Youtube=createLucideIcon("Youtube",[["path",{d:"M2.5 17a24.12 24.12 0 0 1 0-10 2 2 0 0 1 1.4-1.4 49.56 49.56 0 0 1 16.2 0A2 2 0 0 1 21.5 7a24.12 24.12 0 0 1 0 10 2 2 0 0 1-1.4 1.4 49.55 49.55 0 0 1-16.2 0A2 2 0 0 1 2.5 17",key:"1q2vi4"}],["path",{d:"m10 15 5-3-5-3z",key:"1jp15x"}]]),CLASS_PART_SEPARATOR="-",createClassGroupUtils=e=>{const s=createClassMap(e),{conflictingClassGroups:i,conflictingClassGroupModifiers:o}=e;return{getClassGroupId:d=>{const h=d.split(CLASS_PART_SEPARATOR);return h[0]===""&&h.length!==1&&h.shift(),getGroupRecursive(h,s)||getGroupIdForArbitraryProperty(d)},getConflictingClassGroupIds:(d,h)=>{const g=i[d]||[];return h&&o[d]?[...g,...o[d]]:g}}},getGroupRecursive=(e,s)=>{var d;if(e.length===0)return s.classGroupId;const i=e[0],o=s.nextPart.get(i),a=o?getGroupRecursive(e.slice(1),o):void 0;if(a)return a;if(s.validators.length===0)return;const c=e.join(CLASS_PART_SEPARATOR);return(d=s.validators.find(({validator:h})=>h(c)))==null?void 0:d.classGroupId},arbitraryPropertyRegex=/^\[(.+)\]$/,getGroupIdForArbitraryProperty=e=>{if(arbitraryPropertyRegex.test(e)){const s=arbitraryPropertyRegex.exec(e)[1],i=s==null?void 0:s.substring(0,s.indexOf(":"));if(i)return"arbitrary.."+i}},createClassMap=e=>{const{theme:s,prefix:i}=e,o={nextPart:new Map,validators:[]};return getPrefixedClassGroupEntries(Object.entries(e.classGroups),i).forEach(([c,d])=>{processClassesRecursively(d,o,c,s)}),o},processClassesRecursively=(e,s,i,o)=>{e.forEach(a=>{if(typeof a=="string"){const c=a===""?s:getPart(s,a);c.classGroupId=i;return}if(typeof a=="function"){if(isThemeGetter(a)){processClassesRecursively(a(o),s,i,o);return}s.validators.push({validator:a,classGroupId:i});return}Object.entries(a).forEach(([c,d])=>{processClassesRecursively(d,getPart(s,c),i,o)})})},getPart=(e,s)=>{let i=e;return s.split(CLASS_PART_SEPARATOR).forEach(o=>{i.nextPart.has(o)||i.nextPart.set(o,{nextPart:new Map,validators:[]}),i=i.nextPart.get(o)}),i},isThemeGetter=e=>e.isThemeGetter,getPrefixedClassGroupEntries=(e,s)=>s?e.map(([i,o])=>{const a=o.map(c=>typeof c=="string"?s+c:typeof c=="object"?Object.fromEntries(Object.entries(c).map(([d,h])=>[s+d,h])):c);return[i,a]}):e,createLruCache=e=>{if(e<1)return{get:()=>{},set:()=>{}};let s=0,i=new Map,o=new Map;const a=(c,d)=>{i.set(c,d),s++,s>e&&(s=0,o=i,i=new Map)};return{get(c){let d=i.get(c);if(d!==void 0)return d;if((d=o.get(c))!==void 0)return a(c,d),d},set(c,d){i.has(c)?i.set(c,d):a(c,d)}}},IMPORTANT_MODIFIER="!",createParseClassName=e=>{const{separator:s,experimentalParseClassName:i}=e,o=s.length===1,a=s[0],c=s.length,d=h=>{const g=[];let b=0,_=0,_e;for(let lt=0;lt<h.length;lt++){let st=h[lt];if(b===0){if(st===a&&(o||h.slice(lt,lt+c)===s)){g.push(h.slice(_,lt)),_=lt+c;continue}if(st==="/"){_e=lt;continue}}st==="["?b++:st==="]"&&b--}const $=g.length===0?h:h.substring(_),et=$.startsWith(IMPORTANT_MODIFIER),it=et?$.substring(1):$,rt=_e&&_e>_?_e-_:void 0;return{modifiers:g,hasImportantModifier:et,baseClassName:it,maybePostfixModifierPosition:rt}};return i?h=>i({className:h,parseClassName:d}):d},sortModifiers=e=>{if(e.length<=1)return e;const s=[];let i=[];return e.forEach(o=>{o[0]==="["?(s.push(...i.sort(),o),i=[]):i.push(o)}),s.push(...i.sort()),s},createConfigUtils=e=>({cache:createLruCache(e.cacheSize),parseClassName:createParseClassName(e),...createClassGroupUtils(e)}),SPLIT_CLASSES_REGEX=/\s+/,mergeClassList=(e,s)=>{const{parseClassName:i,getClassGroupId:o,getConflictingClassGroupIds:a}=s,c=[],d=e.trim().split(SPLIT_CLASSES_REGEX);let h="";for(let g=d.length-1;g>=0;g-=1){const b=d[g],{modifiers:_,hasImportantModifier:_e,baseClassName:$,maybePostfixModifierPosition:et}=i(b);let it=!!et,rt=o(it?$.substring(0,et):$);if(!rt){if(!it){h=b+(h.length>0?" "+h:h);continue}if(rt=o($),!rt){h=b+(h.length>0?" "+h:h);continue}it=!1}const lt=sortModifiers(_).join(":"),st=_e?lt+IMPORTANT_MODIFIER:lt,ot=st+rt;if(c.includes(ot))continue;c.push(ot);const nt=a(rt,it);for(let at=0;at<nt.length;++at){const ct=nt[at];c.push(st+ct)}h=b+(h.length>0?" "+h:h)}return h};function twJoin(){let e=0,s,i,o="";for(;e<arguments.length;)(s=arguments[e++])&&(i=toValue(s))&&(o&&(o+=" "),o+=i);return o}const toValue=e=>{if(typeof e=="string")return e;let s,i="";for(let o=0;o<e.length;o++)e[o]&&(s=toValue(e[o]))&&(i&&(i+=" "),i+=s);return i};function createTailwindMerge(e,...s){let i,o,a,c=d;function d(g){const b=s.reduce((_,_e)=>_e(_),e());return i=createConfigUtils(b),o=i.cache.get,a=i.cache.set,c=h,h(g)}function h(g){const b=o(g);if(b)return b;const _=mergeClassList(g,i);return a(g,_),_}return function(){return c(twJoin.apply(null,arguments))}}const fromTheme=e=>{const s=i=>i[e]||[];return s.isThemeGetter=!0,s},arbitraryValueRegex=/^\[(?:([a-z-]+):)?(.+)\]$/i,fractionRegex=/^\d+\/\d+$/,stringLengths=new Set(["px","full","screen"]),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))\(.+\)$/,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)\(.+\)$/,isLength=e=>isNumber(e)||stringLengths.has(e)||fractionRegex.test(e),isArbitraryLength=e=>getIsArbitraryValue(e,"length",isLengthOnly),isNumber=e=>!!e&&!Number.isNaN(Number(e)),isArbitraryNumber=e=>getIsArbitraryValue(e,"number",isNumber),isInteger=e=>!!e&&Number.isInteger(Number(e)),isPercent=e=>e.endsWith("%")&&isNumber(e.slice(0,-1)),isArbitraryValue=e=>arbitraryValueRegex.test(e),isTshirtSize=e=>tshirtUnitRegex.test(e),sizeLabels=new Set(["length","size","percentage"]),isArbitrarySize=e=>getIsArbitraryValue(e,sizeLabels,isNever),isArbitraryPosition=e=>getIsArbitraryValue(e,"position",isNever),imageLabels=new Set(["image","url"]),isArbitraryImage=e=>getIsArbitraryValue(e,imageLabels,isImage),isArbitraryShadow=e=>getIsArbitraryValue(e,"",isShadow),isAny=()=>!0,getIsArbitraryValue=(e,s,i)=>{const o=arbitraryValueRegex.exec(e);return o?o[1]?typeof s=="string"?o[1]===s:s.has(o[1]):i(o[2]):!1},isLengthOnly=e=>lengthUnitRegex.test(e)&&!colorFunctionRegex.test(e),isNever=()=>!1,isShadow=e=>shadowRegex.test(e),isImage=e=>imageRegex.test(e),getDefaultConfig=()=>{const e=fromTheme("colors"),s=fromTheme("spacing"),i=fromTheme("blur"),o=fromTheme("brightness"),a=fromTheme("borderColor"),c=fromTheme("borderRadius"),d=fromTheme("borderSpacing"),h=fromTheme("borderWidth"),g=fromTheme("contrast"),b=fromTheme("grayscale"),_=fromTheme("hueRotate"),_e=fromTheme("invert"),$=fromTheme("gap"),et=fromTheme("gradientColorStops"),it=fromTheme("gradientColorStopPositions"),rt=fromTheme("inset"),lt=fromTheme("margin"),st=fromTheme("opacity"),ot=fromTheme("padding"),nt=fromTheme("saturate"),at=fromTheme("scale"),ct=fromTheme("sepia"),dt=fromTheme("skew"),pt=fromTheme("space"),mt=fromTheme("translate"),St=()=>["auto","contain","none"],Pt=()=>["auto","hidden","clip","visible","scroll"],Mt=()=>["auto",isArbitraryValue,s],Ct=()=>[isArbitraryValue,s],Nt=()=>["",isLength,isArbitraryLength],kt=()=>["auto",isNumber,isArbitraryValue],At=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],ft=()=>["solid","dashed","dotted","double","none"],Et=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],ut=()=>["start","end","center","between","around","evenly","stretch"],ht=()=>["","0",isArbitraryValue],gt=()=>["auto","avoid","all","avoid-page","page","left","right","column"],xt=()=>[isNumber,isArbitraryValue];return{cacheSize:500,separator:":",theme:{colors:[isAny],spacing:[isLength,isArbitraryLength],blur:["none","",isTshirtSize,isArbitraryValue],brightness:xt(),borderColor:[e],borderRadius:["n
381one","","full",isTshirtSize,isArbitraryValue],borderSpacing:Ct(),borderWidth:Nt(),contrast:xt(),grayscale:ht(),hueRotate:xt(),invert:ht(),gap:Ct(),gradientColorStops:[e],gradientColorStopPositions:[isPercent,isArbitraryLength],inset:Mt(),margin:Mt(),opacity:xt(),padding:Ct(),saturate:xt(),scale:xt(),sepia:ht(),skew:xt(),space:Ct(),translate:Ct()},classGroups:{aspect:[{aspect:["auto","square","video",isArbitraryValue]}],container:["container"],columns:[{columns:[isTshirtSize]}],"break-after":[{"break-after":gt()}],"break-before":[{"break-before":gt()}],"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"],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:[...At(),isArbitraryValue]}],overflow:[{overflow:Pt()}],"overflow-x":[{"overflow-x":Pt()}],"overflow-y":[{"overflow-y":Pt()}],overscroll:[{overscroll:St()}],"overscroll-x":[{"overscroll-x":St()}],"overscroll-y":[{"overscroll-y":St()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[rt]}],"inset-x":[{"inset-x":[rt]}],"inset-y":[{"inset-y":[rt]}],start:[{start:[rt]}],end:[{end:[rt]}],top:[{top:[rt]}],right:[{right:[rt]}],bottom:[{bottom:[rt]}],left:[{left:[rt]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",isInteger,isArbitraryValue]}],basis:[{basis:Mt()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",isArbitraryValue]}],grow:[{grow:ht()}],shrink:[{shrink:ht()}],order:[{order:["first","last","none",isInteger,isArbitraryValue]}],"grid-cols":[{"grid-cols":[isAny]}],"col-start-end":[{col:["auto",{span:["full",isInteger,isArbitraryValue]},isArbitraryValue]}],"col-start":[{"col-start":kt()}],"col-end":[{"col-end":kt()}],"grid-rows":[{"grid-rows":[isAny]}],"row-start-end":[{row:["auto",{span:[isInteger,isArbitraryValue]},isArbitraryValue]}],"row-start":[{"row-start":kt()}],"row-end":[{"row-end":kt()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",isArbitraryValue]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",isArbitraryValue]}],gap:[{gap:[$]}],"gap-x":[{"gap-x":[$]}],"gap-y":[{"gap-y":[$]}],"justify-content":[{justify:["normal",...ut()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...ut(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...ut(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[ot]}],px:[{px:[ot]}],py:[{py:[ot]}],ps:[{ps:[ot]}],pe:[{pe:[ot]}],pt:[{pt:[ot]}],pr:[{pr:[ot]}],pb:[{pb:[ot]}],pl:[{pl:[ot]}],m:[{m:[lt]}],mx:[{mx:[lt]}],my:[{my:[lt]}],ms:[{ms:[lt]}],me:[{me:[lt]}],mt:[{mt:[lt]}],mr:[{mr:[lt]}],mb:[{mb:[lt]}],ml:[{ml:[lt]}],"space-x":[{"space-x":[pt]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[pt]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",isArbitraryValue,s]}],"min-w":[{"min-w":[isArbitraryValue,s,"min","max","fit"]}],"max-w":[{"max-w":[isArbitraryValue,s,"none","full","min","max","fit","prose",{screen:[isTshirtSize]},isTshirtSize]}],h:[{h:[isArbitraryValue,s,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[isArbitraryValue,s,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[isArbitraryValue,s,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[isArbitraryValue,s,"auto","min","max","fit"]}],"font-size":[{text:["base",isTshirtSize,isArbitraryLength]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",isArbitraryNumber]}
vendor: 8,216 bytes, line 381
381],"font-family":[{font:[isAny]}],"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:["tighter","tight","normal","wide","wider","widest",isArbitraryValue]}],"line-clamp":[{"line-clamp":["none",isNumber,isArbitraryNumber]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",isLength,isArbitraryValue]}],"list-image":[{"list-image":["none",isArbitraryValue]}],"list-style-type":[{list:["none","disc","decimal",isArbitraryValue]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[st]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[st]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...ft(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",isLength,isArbitraryLength]}],"underline-offset":[{"underline-offset":["auto",isLength,isArbitraryValue]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:Ct()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",isArbitraryValue]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",isArbitraryValue]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[st]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...At(),isArbitraryPosition]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",isArbitrarySize]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},isArbitraryImage]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[it]}],"gradient-via-pos":[{via:[it]}],"gradient-to-pos":[{to:[it]}],"gradient-from":[{from:[et]}],"gradient-via":[{via:[et]}],"gradient-to":[{to:[et]}],rounded:[{rounded:[c]}],"rounded-s":[{"rounded-s":[c]}],"rounded-e":[{"rounded-e":[c]}],"rounded-t":[{"rounded-t":[c]}],"rounded-r":[{"rounded-r":[c]}],"rounded-b":[{"rounded-b":[c]}],"rounded-l":[{"rounded-l":[c]}],"rounded-ss":[{"rounded-ss":[c]}],"rounded-se":[{"rounded-se":[c]}],"rounded-ee":[{"rounded-ee":[c]}],"rounded-es":[{"rounded-es":[c]}],"rounded-tl":[{"rounded-tl":[c]}],"rounded-tr":[{"rounded-tr":[c]}],"rounded-br":[{"rounded-br":[c]}],"rounded-bl":[{"rounded-bl":[c]}],"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]}],"border-opacity":[{"border-opacity":[st]}],"border-style":[{border:[...ft(),"hidden"]}],"divide-x":[{"divide-x":[h]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[h]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[st]}],"divide-style":[{divide:ft()}],"border-color":[{border:[a]}],"border-color-x":[{"border-x":[a]}],"border-color-y":[{"border-y":[a]}],"border-color-s":[{"border-s":[a]}],"border-color-e":[{"border-e":[a]}],"border-color-t":[{"border-t":[a]}],"border-color-r":[{"border-r":[a]}],"border-color-b":[{"border-b":[a]}],"border-color-l":[{"border-l":[a]}],"divide-color":[{divide:[a]}],"outline-style":[{outline:["",...ft()]}],"outline-offset":[{"outline-offset":[isLength,isArbitraryValue]}],"outline-w":[{outline:[isLength,isArbitraryLength]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:Nt()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[st]}],"ring-offset-w":[{"ring-offset":[isLength,isArbitraryLength]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",isTshirtSize,isArbitraryShadow]}],"shadow-color":[{shadow:[isAny]}],opacity:[{opacity:[st]}],"mix-blend":[{"mix-blend":[...Et(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":Et()}],filter:[{filter:["","none"]}],blur:[{blur:[i]}],brightness:[{brightness:[o]}],contrast:[{contrast:[g]}],"drop-shadow":[{"drop-shadow":["","none",isTshirtSize,isArbitraryValue]}],grayscale:[{grayscale:[b]}],"hue-rotate":[{"hue-rotate":[_]}],invert:[{invert:[_e]}],saturate:[{saturate:[nt]}],sepia:[{sepia:[ct]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[i]}],"backdrop-brightness":[{"backdrop-brightness":[o]}],"backdrop-contrast":[{"backdrop-contrast":[g]}],"backdrop-grayscale":[{"backdrop-grayscale":[b]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[_]}],"backdrop-invert":[{"backdrop-invert":[_e]}],"backdrop-opacity":[{"backdrop-opacity":[st]}],"backdrop-saturate":[{"backdrop-saturate":[nt]}],"backdrop-sepia":[{"backdrop-sepia":[ct]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[d]}],"border-spacing-x":[{"border-spacing-x":[d]}],"border-spacing-y":[{"border-spacing-y":[d]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",isArbitraryValue]}],duration:[{duration:xt()}],ease:[{ease:["linear","in","out","in-out",isArbitraryValue]}],delay:[{delay:xt()}],animate:[{animate:["none","spin","ping","pulse","bounce",isArbitraryValue]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[at]}],"scale-x":[{"scale-x":[at]}],"scale-y":[{"scale-y":[at]}],rotate:[{rotate:[isInteger,isArbitraryValue]}],"translate-x":[{"translate-x":[mt]}],"translate-y":[{"translate-y":[mt]}],"skew-x":[{"skew-x":[dt]}],"skew-y":[{"skew-y":[dt]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",isArbitraryValue]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],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",isArbitraryValue]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":Ct()}],"scroll-mx":[{"scroll-mx":Ct()}],"scroll-my":[{"scroll-my":Ct()}],"scroll-ms":[{"scroll-ms":Ct()}],"scroll-me":[{"scroll-me":Ct()}],"scroll-mt":[{"scroll-mt":Ct()}],"scroll-mr":[{"scroll-mr":Ct()}],"scroll-mb":[{"scroll-mb":Ct()}],"scroll-ml":[{"scroll-ml":Ct()}],"scroll-p":[{"scroll-p":Ct()}],"scroll-px":[{"scroll-px":Ct()}],"scroll-py":[{"scroll-py":Ct()}],"scroll-ps":[{"scroll-ps":Ct()}],"scroll-pe":[{"scroll-pe":Ct()}],"scroll-pt":[{"scroll-pt":Ct()}],"scroll-pr":[{"scroll-pr":Ct()}],"scroll-pb":[{"scroll-pb":Ct()}],"scroll-pl":[{"scroll-pl":Ct()}],"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",isArbitraryValue]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[isLength,isArbitraryLength,isArbitraryNumber]}
381],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"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-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-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"],"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"]}}},twMerge=createTailwindMerge(getDefaultConfig);function cn(...e){return twMerge(clsx(e))}function formatDuration(e,s){if(e!=null&&e>=0){const i=Math.floor(e/60),o=e%60;return i===0?`${o} sec`:o===0?`${i} min`:`${i} min ${o} sec`}return s!=null?`${s} min`:"0 min"}const ToastProvider=Provider$1,ToastViewport=reactExports.forwardRef(({className:e,...s},i)=>jsxRuntimeExports.jsx(Viewport$1,{ref:i,className:cn("fixed top-0 z-[100] flex max-h-screen w-full flex-col-reverse p-4 sm:bottom-0 sm:right-0 sm:top-auto sm:flex-col md:max-w-[420px]",e),...s}));ToastViewport.displayName=Viewport$1.displayName;const toastVariants=cva("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=cancel]:translate-x-0 data-[swipe=end]:translate-x-[var(--radix-toast-swipe-end-x)] data-[swipe=move]:translate-x-[var(--radix-toast-swipe-move-x)] data-[swipe=move]:transition-none 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",{variants:{variant:{default:"border bg-background text-foreground",destructive:"destructive group border-destructive bg-destructive text-destructive-foreground"}},defaultVariants:{variant:"default"}}),Toast=reactExports.forwardRef(({className:e,variant:s,...i},o)=>jsxRuntimeExports.jsx(Root2$3,{ref:o,className:cn(toastVariants({variant:s}),e),...i}));Toast.displayName=Root2$3.displayName;const ToastAction=reactExports.forwardRef(({className:e,...s},i)=>jsxRuntimeExports.jsx(Action$1,{ref:i,className:cn("inline-flex h-8 shrink-0 items-center justify-center rounded-md border bg-transparent px-3 text-sm font-medium ring-offset-background transition-colors group-[.destructive]:border-muted/40 hover:bg-secondary group-[.destructive]:hover:border-destructive/30 group-[.destructive]:hover:bg-destructive group-[.destructive]:hover:text-destructive-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 group-[.destructive]:focus:ring-destructive disabled:pointer-events-none disabled:opacity-50",e),...s}));ToastAction.displayName=Action$1.displayName;const ToastClose=reactExports.forwardRef(({className:e,...s},i)=>jsxRuntimeExports.jsx(Close$1,{ref:i,className:cn("absolute right-2 top-2 rounded-md p-1 text-foreground
381/50 opacity-0 transition-opacity group-hover:opacity-100 group-[.destructive]:text-red-300 hover:text-foreground group-[.destructive]:hover:text-red-50 focus:opacity-100 focus:outline-none focus:ring-2 group-[.destructive]:focus:ring-red-400 group-[.destructive]:focus:ring-offset-red-600",e),"toast-close":"",...s,children:jsxRuntimeExports.jsx(X,{className:"h-4 w-4"})}));ToastClose.displayName=Close$1.displayName;const ToastTitle=reactExports.forwardRef(({className:e,...s},i)=>jsxRuntimeExports.jsx(Title$1,{ref:i,className:cn("text-sm font-semibold",e),...s}));ToastTitle.displayName=Title$1.displayName;const ToastDescription=reactExports.forwardRef(({className:e,...s},i)=>jsxRuntimeExports.jsx(Description$1,{ref:i,className:cn("text-sm opacity-90",e),...s}));ToastDescription.displayName=Description$1.displayName;function Toaster$1(){const{toasts:e}=useToast();return jsxRuntimeExports.jsxs(ToastProvider,{children:[e.map(function({id:s,title:i,description:o,action:a,...c}){return jsxRuntimeExports.jsxs(Toast,{...c,children:[jsxRuntimeExports.jsxs("div",{className:"grid gap-1",children:[i&&jsxRuntimeExports.jsx(ToastTitle,{children:i}),o&&jsxRuntimeExports.jsx(ToastDescription,{children:o})]}),a,jsxRuntimeExports.jsx(ToastClose,{})]},s)}),jsxRuntimeExports.jsx(ToastViewport,{})]})}var P=["light","dark"],E="(prefers-color-scheme: dark)",L=reactExports.createContext(void 0),D={setTheme:e=>{},themes:[]},j=()=>{var e;return(e=reactExports.useContext(L))!=null?e:D};reactExports.memo(({forcedTheme:e,storageKey:s,attribute:i,enableSystem:o,enableColorScheme:a,defaultTheme:c,value:d,attrs:h,nonce:g})=>{let b=c==="system",_=i==="class"?`var d=document.documentElement,c=d.classList;${`c.remove(${h.map(it=>`'${it}'`).join(",")})`};`:`var d=document.documentElement,n='${i}',s='setAttribute';`,_e=a?P.includes(c)&&c?`if(e==='light'||e==='dark'||!e)d.style.colorScheme=e||'${c}'`:"if(e==='light'||e==='dark')d.style.colorScheme=e":"",$=(it,rt=!1,lt=!0)=>{let st=d?d[it]:it,ot=rt?it+"|| ''":`'${st}'`,nt="";return a&<&&!rt&&P.includes(it)&&(nt+=`d.style.colorScheme = '${it}';`),i==="class"?rt||st?nt+=`c.add(${ot})`:nt+="null":st&&(nt+=`d[s](n,${ot})`),nt},et=e?`!function(){${_}${$(e)}}()`:o?`!function(){try{${_}var e=localStorage.getItem('${s}');if('system'===e||(!e&&${b})){var t='${E}',m=window.matchMedia(t);if(m.media!==t||m.matches){${$("dark")}}else{${$("light")}}}else if(e){${d?`var x=${JSON.stringify(d)};`:""}${$(d?"x[e]":"e",!0)}}${b?"":"else{"+$(c,!1,!1)+"}"}${_e}}catch(e){}}()`:`!function(){try{${_}var e=localStorage.getItem('${s}');if(e){${d?`var x=${JSON.stringify(d)};`:""}${$(d?"x[e]":"e",!0)}}else{${$(c,!1,!1)};}${_e}}catch(t){}}();`;return reactExports.createElement("script",{nonce:g,dangerouslySetInnerHTML:{__html:et}})});var jt=e=>{switch(e){case"success":return ee;case"info":return ae;case"warning":return oe;case"error":return se;default:return null}},te=Array(12).fill(0),Yt=({visible:e,className:s})=>React$1.createElement("div",{className:["sonner-loading-wrapper",s].filter(Boolean).join(" "),"data-visible":e},React$1.createElement("div",{className:"sonner-spinner"},te.map((i,o)=>React$1.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${o}`})))),ee=React$1.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},React$1.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z",clipRule:"evenodd"})),oe=React$1.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},React$1.createElement("path",{fillRule:"evenodd",d:"M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z",clipRule:"evenodd"})),ae=React$1.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},React$1.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z",clipRule:"evenodd"})),se=React$1.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},React$1.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z",clipRule:"evenodd"})),Ot=React$1.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"},React$1.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),React$1.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"})),Ft=()=>
381{let[e,s]=React$1.useState(document.hidden);return React$1.useEffect(()=>{let i=()=>{s(document.hidden)};return document.addEventListener("visibilitychange",i),()=>window.removeEventListener("visibilitychange",i)},[]),e},bt=1,yt=class{constructor(){this.subscribe=e=>(this.subscribers.push(e),()=>{let s=this.subscribers.indexOf(e);this.subscribers.splice(s,1)}),this.publish=e=>{this.subscribers.forEach(s=>s(e))},this.addToast=e=>{this.publish(e),this.toasts=[...this.toasts,e]},this.create=e=>{var s;let{message:i,...o}=e,a=typeof(e==null?void 0:e.id)=="number"||((s=e.id)==null?void 0:s.length)>0?e.id:bt++,c=this.toasts.find(h=>h.id===a),d=e.dismissible===void 0?!0:e.dismissible;return this.dismissedToasts.has(a)&&this.dismissedToasts.delete(a),c?this.toasts=this.toasts.map(h=>h.id===a?(this.publish({...h,...e,id:a,title:i}),{...h,...e,id:a,dismissible:d,title:i}):h):this.addToast({title:i,...o,dismissible:d,id:a}),a},this.dismiss=e=>(this.dismissedToasts.add(e),e||this.toasts.forEach(s=>{this.subscribers.forEach(i=>i({id:s.id,dismiss:!0}))}),this.subscribers.forEach(s=>s({id:e,dismiss:!0})),e),this.message=(e,s)=>this.create({...s,message:e}),this.error=(e,s)=>this.create({...s,message:e,type:"error"}),this.success=(e,s)=>this.create({...s,type:"success",message:e}),this.info=(e,s)=>this.create({...s,type:"info",message:e}),this.warning=(e,s)=>this.create({...s,type:"warning",message:e}),this.loading=(e,s)=>this.create({...s,type:"loading",message:e}),this.promise=(e,s)=>{if(!s)return;let i;s.loading!==void 0&&(i=this.create({...s,promise:e,type:"loading",message:s.loading,description:typeof s.description!="function"?s.description:void 0}));let o=e instanceof Promise?e:e(),a=i!==void 0,c,d=o.then(async g=>{if(c=["resolve",g],React$1.isValidElement(g))a=!1,this.create({id:i,type:"default",message:g});else if(ie(g)&&!g.ok){a=!1;let b=typeof s.error=="function"?await s.error(`HTTP error! status: ${g.status}`):s.error,_=typeof s.description=="function"?await s.description(`HTTP error! status: ${g.status}`):s.description;this.create({id:i,type:"error",message:b,description:_})}else if(s.success!==void 0){a=!1;let b=typeof s.success=="function"?await s.success(g):s.success,_=typeof s.description=="function"?await s.description(g):s.description;this.create({id:i,type:"success",message:b,description:_})}}).catch(async g=>{if(c=["reject",g],s.error!==void 0){a=!1;let b=typeof s.error=="function"?await s.error(g):s.error,_=typeof s.description=="function"?await s.description(g):s.description;this.create({id:i,type:"error",message:b,description:_})}}).finally(()=>{var g;a&&(this.dismiss(i),i=void 0),(g=s.finally)==null||g.call(s)}),h=()=>new Promise((g,b)=>d.then(()=>c[0]==="reject"?b(c[1]):g(c[1])).catch(b));return typeof i!="string"&&typeof i!="number"?{unwrap:h}:Object.assign(i,{unwrap:h})},this.custom=(e,s)=>{let i=(s==null?void 0:s.id)||bt++;return this.create({jsx:e(i),id:i,...s}),i},this.getActiveToasts=()=>this.toasts.filter(e=>!this.dismissedToasts.has(e.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}},v=new yt,ne=(e,s)=>{let i=(s==null?void 0:s.id)||bt++;return v.addToast({title:e,...s,id:i}),i},ie=e=>e&&typeof e=="object"&&"ok"in e&&typeof e.ok=="boolean"&&"status"in e&&typeof e.status=="number",le=ne,ce=()=>v.toasts,de=()=>v.getActiveToasts(),ue=Object.assign(le,{success:v.success,info:v.info,warning:v.warning,error:v.error,custom:v.custom,message:v.message,promise:v.promise,dismiss:v.dismiss,loading:v.loading},{getHistory:ce,getToasts:de});function wt(e,{insertAt:s}={}){if(typeof document>"u")return;let i=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.type="text/css",s==="top"&&i.firstChild?i.insertBefore(o,i.firstChild):i.appendChild(o),o.styleSheet?o.styleSheet.cssText=e:o.appendChild(document.createTextNode(e))}wt(`:where(html[dir="ltr"]),:where([data-sonner-toaster][dir="ltr"]){--toast-icon-margin-start: -3px;--toast-icon-margin-end: 4px;--toast-svg-margin-start: -1px;--toast-svg-margin-end: 0px;--toast-button-margin-start: auto;--toast-button-margin-end: 0;--toast-close-button-start: 0;--toast-close-button-end: unset;--toast-close-button-transform: translate(-35%, -35%)}:where(html[dir="rtl"]),:where([data-sonner-toaster][dir="rtl"]){--toast-icon-margin-start: 4px;--toast-icon-margin-end: -3px;--toast-svg-margin-start: 0px;--toast-svg-margin-end: -1px;--toast-button-margin-start: 0;--toast-button-margin-end: auto;--toast-close-button-start: unset;--toast-close-button-end: 0;--toast-close-button-transform: translate(35%, -35%)}:where([data-sonner-toaster]){position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1: hsl(0, 0%, 99%);--gray2: hsl(0, 0%, 97.3%);--gray3: hsl(0, 0%, 95.1%);--gray4: hsl(0, 0%, 93%);--gray5: hsl(0, 0%, 90.9%);--gray6: hsl(0, 0%, 88.7%);--gray7: hsl(0, 0%, 85.8%);--gray8: hsl(0, 0%, 78%);--gray9: hsl(0, 0%, 56.1%);--gray10: hsl(0, 0%, 52.3%);--gray11: hsl(0, 0%, 43.5%);--gray12: hsl(0, 0%, 9%);--border-radius: 8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:none;z-index:999999999;transition:transform .4s ease}:where([data-sonner-toaster][data-lifted="true"]){transform:translateY(-10px)}@media (hover: none) and (pointer: coarse){:where([data-sonner-toaster][data-lifted="true"]){transform:none}}:where([data-sonner-toaster][data-x-position="right"]){right:var(--offset-right)}:where([data-sonner-toaster][data-x-position="left"]){left:var(--offset-left)}:where([data-sonner-toaster][data-x-position="center"]){left:50%;transform:translate(-50%)}:where([data-sonner-toaster][data-y-position="top"]){top:var(--offset-top)}:where([data-sonner-toaster][data-y-position="bottom"]){bottom:var(--offset-bottom)}:where([data-sonner-toast]){--y: translateY(100%);--lift-amount: calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);filter:blur(0);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:none;overflow-wrap:anywhere}:where([data-sonner-toast][data-styled="true"]){padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px #0000001a;width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}:where([data-sonner-toast]:focus-visible){box-shadow:0 4px 12px #0000001a,0 0 0 2px #0003}:where([data-sonner-toast][data-y-position="top"]){top:0;--y: translateY(-100%);--lift: 1;--lift-amount: calc(1 * var(--gap))}:where([data-sonner-toast][data-y-position="bottom"]){bottom:0;--y: translateY(100%);--lift: -1;--lift-amount: calc(var(--lift) * var(--gap))}:where([data-sonner-toast]) :where([data-description]){font-weight:400;line-height:1.4;color:inherit}:where([data-sonner-toast]) :where([data-title]){font-weight:500;line-height:1.5;color:inherit}:where([data-sonner-toast]) :where([data-icon]){display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}:where([data-sonner-toast][data-promise="true"]) :where([data-icon])>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}:where([data-sonner-toast]) :where([data-icon])>*{flex-shrink:0}:where([data-sonner-toast]) :where([data-icon]) svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}:where([data-sonner-toast]) :where([data-content]){display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;cursor:pointer;outline:none;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}:where([data-sonner-toast]) :where([data-button]):focus-visible{box-shadow:0 0 0 2px #0006}:where([data-sonner-toast]) :where([data-button]):first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}:where([data-sonner-toast]) :where([data-cancel]){color:var(--normal-text);background:rgba(0,0,0,.08)}:where([data-sonner-toast][data-theme="dark"]) :where([data-cancel]){background:rgba(255,255,255,.3)}:where([data-sonner-toast]) :where([data-close-button]){position:absolute;
381left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--gray12);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast] [data-close-button]{background:var(--gray1)}:where([data-sonner-toast]) :where([data-close-button]):focus-visible{box-shadow:0 4px 12px #0000001a,0 0 0 2px #0003}:where([data-sonner-toast]) :where([data-disabled="true"]){cursor:not-allowed}:where([data-sonner-toast]):hover :where([data-close-button]):hover{background:var(--gray2);border-color:var(--gray5)}:where([data-sonner-toast][data-swiping="true"]):before{content:"";position:absolute;left:-50%;right:-50%;height:100%;z-index:-1}:where([data-sonner-toast][data-y-position="top"][data-swiping="true"]):before{bottom:50%;transform:scaleY(3) translateY(50%)}:where([data-sonner-toast][data-y-position="bottom"][data-swiping="true"]):before{top:50%;transform:scaleY(3) translateY(-50%)}:where([data-sonner-toast][data-swiping="false"][data-removed="true"]):before{content:"";position:absolute;inset:0;transform:scaleY(2)}:where([data-sonner-toast]):after{content:"";position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}:where([data-sonner-toast][data-mounted="true"]){--y: translateY(0);opacity:1}:where([data-sonner-toast][data-expanded="false"][data-front="false"]){--scale: var(--toasts-before) * .05 + 1;--y: translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}:where([data-sonner-toast])>*{transition:opacity .4s}:where([data-sonner-toast][data-expanded="false"][data-front="false"][data-styled="true"])>*{opacity:0}
381:where([data-sonner-toast][data-visible="false"]){opacity:0;pointer-events:none}:where([data-sonner-toast][data-mounted="true"][data-expanded="true"]){--y: translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}:where([data-sonner-toast][data-removed="true"][data-front="true"][data-swipe-out="false"]){--y: translateY(calc(var(--lift) * -100%));opacity:0}:where([data-sonner-toast][data-removed="true"][data-front="false"][data-swipe-out="false"][data-expanded="true"]){--y: translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}:where([data-sonner-toast][data-removed="true"][data-front="false"][data-swipe-out="false"][data-expanded="false"]){--y: translateY(40%);opacity:0;transition:transform .5s,opacity .2s}:where([data-sonner-toast][data-removed="true"][data-front="false"]):before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y, 0px)) translate(var(--swipe-amount-x, 0px));transition:none}[data-sonner-toast][data-swiped=true]{user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{0%{transform:var(--y) translate(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translate(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{0%{transform:var(--y) translate(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translate(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{0%{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{0%{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width: 600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-theme=light]{--normal-bg: #fff;--normal-border: var(--gray4);--normal-text: var(--gray12);--success-bg: hsl(143, 85%, 96%);--success-border: hsl(145, 92%, 91%);--success-text: hsl(140, 100%, 27%);--info-bg: hsl(208, 100%, 97%);--info-border: hsl(221, 91%, 91%);--info-text: hsl(210, 92%, 45%);--warning-bg: hsl(49, 100%, 97%);--warning-border: hsl(49, 91%, 91%);--warning-text: hsl(31, 92%, 45%);--error-bg: hsl(359, 100%, 97%);--error-border: hsl(359, 100%, 94%);--error-text: hsl(360, 100%, 45%)}[data-sonner-toaster][data-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg: #000;--normal-border: hsl(0, 0%, 20%);--normal-text: var(--gray1)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg: #fff;--normal-border: var(--gray3);--normal-text: var(--gray12)}[data-sonner-toaster][data-theme=dark]{--normal-bg: #000;--normal-bg-hover: hsl(0, 0%, 12%);--normal-border: hsl(0, 0%, 20%);--normal-border-hover: hsl(0, 0%, 25%);--normal-text: var(--gray1);--success-bg: hsl(150, 100%, 6%);--success-border: hsl(147, 100%, 12%);--success-text: hsl(150, 86%, 65%);--info-bg: hsl(215, 100%, 6%);--info-border: hsl(223, 100%, 12%);--info-text: hsl(216, 87%, 65%);--warning-bg: hsl(64, 100%, 6%);--warning-border: hsl(60, 100%, 12%);--warning-text: hsl(46, 87%, 65%);--error-bg: hsl(358, 76%, 10%);--error-border: hsl(357, 89%, 16%);
381--error-text: hsl(358, 100%, 81%)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success],[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info],[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning],[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error],[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size: 16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:nth-child(1){animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}to{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}to{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}to{opacity:.15}}@media (prefers-reduced-motion){[data-sonner-toast],[data-sonner-toast]>*,.sonner-loading-bar{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)} 382`);function tt(e){return e.label!==void 0}var pe=3,me="32px",ge="16px",Wt=4e3,he=356,be=14,ye=20,we=200;function M(...e){return e.filter(Boolean).join(" ")}function xe(e){let[s,i]=e.split("-"),o=[];return s&&o.push(s),i&&o.push(i),o}var ve=e=>{var s,i,o,a,c,d,h,g,b,_,_e;let{invert:$,toast:et,unstyled:it,interacting:rt,setHeights:lt,visibleToasts:st,heights:ot,index:nt,toasts:at,expanded:ct,removeToast:dt,defaultRichColors:pt,closeButton:mt,style:St,cancelButtonStyle:Pt,actionButtonStyle:Mt,className:Ct="",descriptionClassName:Nt="",duration:kt,position:At,ga
382p:ft,loadingIcon:Et,expandByDefault:ut,classNames:ht,icons:gt,closeButtonAriaLabel:xt="Close toast",pauseWhenPageIsHidden:Rt}=e,[Tt,It]=React$1.useState(null),[Lt,$t]=React$1.useState(null),[Bt,Ut]=React$1.useState(!1),[Ht,qt]=React$1.useState(!1),[Kt,Jt]=React$1.useState(!1),[zt,Vt]=React$1.useState(!1),[er,fr]=React$1.useState(!1),[mr,ir]=React$1.useState(0),[lr,yr]=React$1.useState(0),nr=React$1.useRef(et.duration||kt||Wt),br=React$1.useRef(null),cr=React$1.useRef(null),dr=nt===0,Er=nt+1<=st,rr=et.type,ur=et.dismissible!==!1,Ir=et.className||"",Nr=et.descriptionClassName||"",Gt=React$1.useMemo(()=>ot.findIndex(Qt=>Qt.toastId===et.id)||0,[ot,et.id]),gr=React$1.useMemo(()=>{var Qt;return(Qt=et.closeButton)!=null?Qt:mt},[et.closeButton,mt]),ar=React$1.useMemo(()=>et.duration||kt||Wt,[et.duration,kt]),xr=React$1.useRef(0),wr=React$1.useRef(0),Dr=React$1.useRef(0),Fr=React$1.useRef(null),[gn,jn]=At.split("-"),bn=React$1.useMemo(()=>ot.reduce((Qt,tr,sr)=>sr>=Gt?Qt:Qt+tr.height,0),[ot,Gt]),En=Ft(),In=et.invert||$,vn=rr==="loading";wr.current=React$1.useMemo(()=>Gt*ft+bn,[Gt,bn]),React$1.useEffect(()=>{nr.current=ar},[ar]),React$1.useEffect(()=>{Ut(!0)},[]),React$1.useEffect(()=>{let Qt=cr.current;if(Qt){let tr=Qt.getBoundingClientRect().height;return yr(tr),lt(sr=>[{toastId:et.id,height:tr,position:et.position},...sr]),()=>lt(sr=>sr.filter(_r=>_r.toastId!==et.id))}},[lt,et.id]),React$1.useLayoutEffect(()=>{if(!Bt)return;let Qt=cr.current,tr=Qt.style.height;Qt.style.height="auto";let sr=Qt.getBoundingClientRect().height;Qt.style.height=tr,yr(sr),lt(_r=>_r.find(Cr=>Cr.toastId===et.id)?_r.map(Cr=>Cr.toastId===et.id?{...Cr,height:sr}:Cr):[{toastId:et.id,height:sr,position:et.position},..._r])},[Bt,et.title,et.description,lt,et.id]);let $r=React$1.useCallback(()=>{qt(!0),ir(wr.current),lt(Qt=>Qt.filter(tr=>tr.toastId!==et.id)),setTimeout(()=>{dt(et)},we)},[et,dt,lt,wr]);React$1.useEffect(()=>{if(et.promise&&rr==="loading"||et.duration===1/0||et.type==="loading")return;let Qt;return ct||rt||Rt&&En?(()=>{if(Dr.current<xr.current){let tr=new Date().getTime()-xr.current;nr.current=nr.current-tr}Dr.current=new Date().getTime()})():nr.current!==1/0&&(xr.current=new Date().getTime(),Qt=setTimeout(()=>{var tr;(tr=et.onAutoClose)==null||tr.call(et,et),$r()},nr.current)),()=>clearTimeout(Qt)},[ct,rt,et,rr,Rt,En,$r]),React$1.useEffect(()=>{et.delete&&$r()},[$r,et.delete]);function Nn(){var Qt,tr,sr;return gt!=null&>.loading?React$1.createElement("div",{className:M(ht==null?void 0:ht.loader,(Qt=et==null?void 0:et.classNames)==null?void 0:Qt.loader,"sonner-loader"),"data-visible":rr==="loading"},gt.loading):Et?React$1.createElement("div",{className:M(ht==null?void 0:ht.loader,(tr=et==null?void 0:et.classNames)==null?void 0:tr.loader,"sonner-loader"),"data-visible":rr==="loading"},Et):React$1.createElement(Yt,{className:M(ht==null?void 0:ht.loader,(sr=et==null?void 0:et.classNames)==null?void 0:sr.loader),visible:rr==="loading"})}return React$1.createElement("li",{tabIndex:0,ref:cr,className:M(Ct,Ir,ht==null?void 0:ht.toast,(s=et==null?void 0:et.classNames)==null?void 0:s.toast,ht==null?void 0:ht.default,ht==null?void 0:ht[rr],(i=et==null?void 0:et.classNames)==null?void 0:i[rr]),"data-sonner-toast":"","data-rich-colors":(o=et.richColors)!=null?o:pt,"data-styled":!(et.jsx||et.unstyled||it),"data-mounted":Bt,"data-promise":!!et.promise,"data-swiped":er,"data-removed":Ht,"data-visible":Er,"data-y-position":gn,"data-x-position":jn,"data-index":nt,"data-front":dr,"data-swiping":Kt,"data-dismissible":ur,"data-type":rr,"data-invert":In,"data-swipe-out":zt,"data-swipe-direction":Lt,"data-expanded":!!(ct||ut&&Bt),style:{"--index":nt,"--toasts-before":nt,"--z-index":at.length-nt,"--offset":`${Ht?mr:wr.current}px`,"--initial-height":ut?"auto":`${lr}px`,...St,...et.style},onDragEnd:()=>{Jt(!1),It(null),Fr.current=null},onPointerDown:Qt=>{vn||!ur||(br.current=new Date,ir(wr.current),Qt.target.setPointerCapture(Qt.pointerId),Qt.target.tagName!=="BUTTON"&&(Jt(!0),Fr.current={x:Qt.clientX,y:Qt.clientY}))},onPointerUp:()=>{var Qt,tr,sr,_r;if(zt||!ur)return;Fr.current=null;let Cr=Number(((Qt=cr.current)==null?void 0:Qt.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),Br=Number(((tr=cr.current)==null?void 0:tr.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),Kr=new Date().getTime()-((sr=br.current)==null?void 0:sr.getTime()),Tr=Tt==="x"?Cr:Br,Vr=Math.abs(Tr)/Kr;if(Math.abs(Tr)>=ye||Vr>.11){ir(wr.current),(_r=et.onDismiss)==null||_r.call(et,et),$t(Tt==="x"?Cr>0?"right":"left":Br>0?"down":"up"),$r(),Vt(!0),fr(!1);return}Jt(!1),It(null)},onPointerMove:Qt=>{var tr,sr,_r,Cr;if(!Fr.current||!ur||((tr=window.getSelection())==null?void 0:tr.toString().length)>0)return;let Br=Qt.clientY-Fr.current.y,Kr=Qt.clientX-Fr.current.x,Tr=(sr=e.swipeDirections)!=null?sr:xe(At);!Tt&&(Math.abs(Kr)>1||Math.abs(Br)>1)&&It(Math.abs(Kr)>Math.abs(Br)?"x":"y");let Vr={x:0,y:0};Tt==="y"?(Tr.includes("top")||Tr.includes("bottom"))&&(Tr.includes("top")&&Br<0||Tr.includes("bottom")&&Br>0)&&(Vr.y=Br):Tt==="x"&&(Tr.includes("left")||Tr.includes("right"))&&(Tr.includes("left")&&Kr<0||Tr.includes("right")&&Kr>0)&&(Vr.x=Kr),(Math.abs(Vr.x)>0||Math.abs(Vr.y)>0)&&fr(!0),(_r=cr.current)==null||_r.style.setProperty("--swipe-amount-x",`${Vr.x}px`),(Cr=cr.current)==null||Cr.style.setProperty("--swipe-amount-y",`${Vr.y}px`)}},gr&&!et.jsx?React$1.createElement("button",{"aria-label":xt,"data-disabled":vn,"data-close-button":!0,onClick:vn||!ur?()=>{}:()=>{var Qt;$r(),(Qt=et.onDismiss)==null||Qt.call(et,et)},className:M(ht==null?void 0:ht.closeButton,(a=et==null?void 0:et.classNames)==null?void 0:a.closeButton)},(c=gt==null?void 0:gt.close)!=null?c:Ot):null,et.jsx||reactExports.isValidElement(et.title)?et.jsx?et.jsx:typeof et.title=="function"?et.title():et.title:React$1.createElement(React$1.Fragment,null,rr||et.icon||et.promise?React$1.createElement("div",{"data-icon":"",className:M(ht==null?void 0:ht.icon,(
382d=et==null?void 0:et.classNames)==null?void 0:d.icon)},et.promise||et.type==="loading"&&!et.icon?et.icon||Nn():null,et.type!=="loading"?et.icon||(gt==null?void 0:gt[rr])||jt(rr):null):null,React$1.createElement("div",{"data-content":"",className:M(ht==null?void 0:ht.content,(h=et==null?void 0:et.classNames)==null?void 0:h.content)},React$1.createElement("div",{"data-title":"",className:M(ht==null?void 0:ht.title,(g=et==null?void 0:et.classNames)==null?void 0:g.title)},typeof et.title=="function"?et.title():et.title),et.description?React$1.createElement("div",{"data-description":"",className:M(Nt,Nr,ht==null?void 0:ht.description,(b=et==null?void 0:et.classNames)==null?void 0:b.description)},typeof et.description=="function"?et.description():et.description):null),reactExports.isValidElement(et.cancel)?et.cancel:et.cancel&&tt(et.cancel)?React$1.createElement("button",{"data-button":!0,"data-cancel":!0,style:et.cancelButtonStyle||Pt,onClick:Qt=>{var tr,sr;tt(et.cancel)&&ur&&((sr=(tr=et.cancel).onClick)==null||sr.call(tr,Qt),$r())},className:M(ht==null?void 0:ht.cancelButton,(_=et==null?void 0:et.classNames)==null?void 0:_.cancelButton)},et.cancel.label):null,reactExports.isValidElement(et.action)?et.action:et.action&&tt(et.action)?React$1.createElement("button",{"data-button":!0,"data-action":!0,style:et.actionButtonStyle||Mt,onClick:Qt=>{var tr,sr;tt(et.action)&&((sr=(tr=et.action).onClick)==null||sr.call(tr,Qt),!Qt.defaultPrevented&&$r())},className:M(ht==null?void 0:ht.actionButton,(_e=et==null?void 0:et.classNames)==null?void 0:_e.actionButton)},et.action.label):null))};function _t(){if(typeof window>"u"||typeof document>"u")return"ltr";let e=document.documentElement.getAttribute("dir");return e==="auto"||!e?window.getComputedStyle(document.documentElement).direction:e}function Te(e,s){let i={};return[e,s].forEach((o,a)=>{let c=a===1,d=c?"--mobile-offset":"--offset",h=c?ge:me;function g(b){["top","right","bottom","left"].forEach(_=>{i[`${d}-${_}`]=typeof b=="number"?`${b}px`:b})}typeof o=="number"||typeof o=="string"?g(o):typeof o=="object"?["top","right","bottom","left"].forEach(b=>{o[b]===void 0?i[`${d}-${b}`]=h:i[`${d}-${b}`]=typeof o[b]=="number"?`${o[b]}px`:o[b]}):g(h)}),i}var $e=reactExports.forwardRef(function(e,s){let{invert:i,position:o="bottom-right",hotkey:a=["altKey","KeyT"],expand:c,closeButton:d,className:h,offset:g,mobileOffset:b,theme:_="light",richColors:_e,duration:$,style:et,visibleToasts:it=pe,toastOptions:rt,dir:lt=_t(),gap:st=be,loadingIcon:ot,icons:nt,containerAriaLabel:at="Notifications",pauseWhenPageIsHidden:ct}=e,[dt,pt]=React$1.useState([]),mt=React$1.useMemo(()=>Array.from(new Set([o].concat(dt.filter(Rt=>Rt.position).map(Rt=>Rt.position)))),[dt,o]),[St,Pt]=React$1.useState([]),[Mt,Ct]=React$1.useState(!1),[Nt,kt]=React$1.useState(!1),[At,ft]=React$1.useState(_!=="system"?_:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),Et=React$1.useRef(null),ut=a.join("+").replace(/Key/g,"").replace(/Digit/g,""),ht=React$1.useRef(null),gt=React$1.useRef(!1),xt=React$1.useCallback(Rt=>{pt(Tt=>{var It;return(It=Tt.find(Lt=>Lt.id===Rt.id))!=null&&It.delete||v.dismiss(Rt.id),Tt.filter(({id:Lt})=>Lt!==Rt.id)})},[]);return React$1.useEffect(()=>v.subscribe(Rt=>{if(Rt.dismiss){pt(Tt=>Tt.map(It=>It.id===Rt.id?{...It,delete:!0}:It));return}setTimeout(()=>{vt.flushSync(()=>{pt(Tt=>{let It=Tt.findIndex(Lt=>Lt.id===Rt.id);return It!==-1?[...Tt.slice(0,It),{...Tt[It],...Rt},...Tt.slice(It+1)]:[Rt,...Tt]})})})}),[]),React$1.useEffect(()=>{if(_!=="system"){ft(_);return}if(_==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?ft("dark"):ft("light")),typeof window>"u")return;let Rt=window.matchMedia("(prefers-color-scheme: dark)");try{Rt.addEventListener("change",({matches:Tt})=>{ft(Tt?"dark":"light")})}catch{Rt.addListener(({matches:It})=>{try{ft(It?"dark":"light")}catch(Lt){console.error(Lt)}})}},[_]),React$1.useEffect(()=>{dt.length<=1&&Ct(!1)},[dt]),React$1.useEffect(()=>{let Rt=Tt=>{var It,Lt;a.every($t=>Tt[$t]||Tt.code===$t)&&(Ct(!0),(It=Et.current)==null||It.focus()),Tt.code==="Escape"&&(document.activeElement===Et.current||(Lt=Et.current)!=null&&Lt.contains(document.activeElement))&&Ct(!1)};return document.addEventListener("keydown",Rt),()=>document.removeEventListener("keydown",Rt)},[a]),React$1.useEffect(()=>{if(Et.current)return()=>{ht.current&&(ht.current.focus({preventScroll:!0}),ht.current=null,gt.current=!1)}},[Et.current]),React$1.createElement("section",{ref:s,"aria-label":`${at} ${ut}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},mt.map((Rt,Tt)=>{var It;let[Lt,$t]=Rt.split("-");return dt.length?React$1.createElement("ol",{key:Rt,dir:lt==="auto"?_t():lt,tabIndex:-1,ref:Et,className:h,"data-sonner-toaster":!0,"data-theme":At,"data-y-position":Lt,"data-lifted":Mt&&dt.length>1&&!c,"data-x-position":$t,style:{"--front-toast-height":`${((It=St[0])==null?void 0:It.height)||0}px`,"--width":`${he}px`,"--gap":`${st}px`,...et,...Te(g,b)},onBlur:Bt=>{gt.current&&!Bt.currentTarget.contains(Bt.relatedTarget)&&(gt.current=!1,ht.current&&(ht.current.focus({preventScroll:!0}),ht.current=null))},onFocus:Bt=>{Bt.target instanceof HTMLElement&&Bt.target.dataset.dismissible==="false"||gt.current||(gt.current=!0,ht.current=Bt.relatedTarget)},onMouseEnter:()=>Ct(!0),onMouseMove:()=>Ct(!0),onMouseLeave:()=>{Nt||Ct(!1)},onDragEnd:()=>Ct(!1),onPointerDown:Bt=>{Bt.target instanceof HTMLElement&&Bt.target.dataset.dismissible==="false"||kt(!0)},onPointerUp:()=>kt(!1)},dt.filter(Bt=>!Bt.position&&Tt===0||Bt.position===Rt).map((Bt,Ut)=>{var Ht,qt;return React$1.createElement(ve,{key:Bt.id,icons:nt,index:Ut,toast:Bt,defaultRichColors:_e,duration:(Ht=rt==null?void 0:rt.duration)!=null?Ht:$,className:rt==null?void 0:rt.className,descriptionClassName:rt==null?void 0:rt.descriptionClassName,invert:i,visibleToasts:it,closeButton:(qt=rt==null?void 0:rt.closeButton)!=null?qt:d,interacting:Nt,position:Rt,style:rt==null?void 0:rt.style,unstyled:rt==null?void 0:rt.unstyled,classNames:rt==null?void 0:rt.classNames,cancelButtonStyle:rt==null?void 0:rt.cancelButtonStyle,actionButtonStyle:rt==null?void 0:rt.actionButtonStyle,removeToast:xt,toasts:dt.filter(Kt=>Kt.position==Bt.position),heights:St.filter(Kt=>Kt.position==Bt.position),setHeights:Pt,expandByDefault:c,gap:st,loadingIcon:ot,expanded:Mt,pauseWhenPageIsHidden:ct,swipeDirections:e.swipeDirections})})):null}))});const Toaster=({...e})=>{const{theme:s="system"}=j();return jsxRuntimeExports.jsx($e,{theme:s,className:"toaster group",toastOptions:{classNames:{toast:"group toast group-[.toaster]:bg-background group-[.toaster]:text-foreground group-[.toaster]:border-border group-[.toaster]:shadow-lg",description:"group-[.toast]:text-muted-foreground",actionButton:"group-[.toast]:bg-primary group-[.toast]:text-primary-foreground",cancelButton:"group-[.toast]:bg-muted group-[.toast]:text-muted-foreground"}},...e})};var useReactId=React$2[" useId ".trim().toString()]||(()=>{}),count$1=0;function useId(e){const[s,i]=reactExports.useState(useReactId());return useLayoutEffect2(()=>{i(o=>o??String(count$1++))},[e]),e||(s?`radix-${s}`:"")}const sides=["top","right","bottom","left"],min=Math.min,max=Math.max,round=Math.round,floor=Math.floor,createCoords=e=>({x:e,y:e}
vendor: 4,515 bytes, line 382
382),oppositeSideMap={left:"right",right:"left",bottom:"top",top:"bottom"},oppositeAlignmentMap={start:"end",end:"start"};function clamp$1(e,s,i){return max(e,min(s,i))}function evaluate(e,s){return typeof e=="function"?e(s):e}function getSide(e){return e.split("-")[0]}function getAlignment(e){return e.split("-")[1]}function getOppositeAxis(e){return e==="x"?"y":"x"}function getAxisLength(e){return e==="y"?"height":"width"}const yAxisSides=new Set(["top","bottom"]);function getSideAxis(e){return yAxisSides.has(getSide(e))?"y":"x"}function getAlignmentAxis(e){return getOppositeAxis(getSideAxis(e))}function getAlignmentSides(e,s,i){i===void 0&&(i=!1);const o=getAlignment(e),a=getAlignmentAxis(e),c=getAxisLength(a);let d=a==="x"?o===(i?"end":"start")?"right":"left":o==="start"?"bottom":"top";return s.reference[c]>s.floating[c]&&(d=getOppositePlacement(d)),[d,getOppositePlacement(d)]}function getExpandedPlacements(e){const s=getOppositePlacement(e);return[getOppositeAlignmentPlacement(e),s,getOppositeAlignmentPlacement(s)]}function getOppositeAlignmentPlacement(e){return e.replace(/start|end/g,s=>oppositeAlignmentMap[s])}const lrPlacement=["left","right"],rlPlacement=["right","left"],tbPlacement=["top","bottom"],btPlacement=["bottom","top"];function getSideList(e,s,i){switch(e){case"top":case"bottom":return i?s?rlPlacement:lrPlacement:s?lrPlacement:rlPlacement;case"left":case"right":return s?tbPlacement:btPlacement;default:return[]}}function getOppositeAxisPlacements(e,s,i,o){const a=getAlignment(e);let c=getSideList(getSide(e),i==="start",o);return a&&(c=c.map(d=>d+"-"+a),s&&(c=c.concat(c.map(getOppositeAlignmentPlacement)))),c}function getOppositePlacement(e){return e.replace(/left|right|bottom|top/g,s=>oppositeSideMap[s])}function expandPaddingObject(e){return{top:0,right:0,bottom:0,left:0,...e}}function getPaddingObject(e){return typeof e!="number"?expandPaddingObject(e):{top:e,right:e,bottom:e,left:e}}function rectToClientRect(e){const{x:s,y:i,width:o,height:a}=e;return{width:o,height:a,top:i,left:s,right:s+o,bottom:i+a,x:s,y:i}}function computeCoordsFromPlacement(e,s,i){let{reference:o,floating:a}=e;const c=getSideAxis(s),d=getAlignmentAxis(s),h=getAxisLength(d),g=getSide(s),b=c==="y",_=o.x+o.width/2-a.width/2,_e=o.y+o.height/2-a.height/2,$=o[h]/2-a[h]/2;let et;switch(g){case"top":et={x:_,y:o.y-a.height};break;case"bottom":et={x:_,y:o.y+o.height};break;case"right":et={x:o.x+o.width,y:_e};break;case"left":et={x:o.x-a.width,y:_e};break;default:et={x:o.x,y:o.y}}switch(getAlignment(s)){case"start":et[d]-=$*(i&&b?-1:1);break;case"end":et[d]+=$*(i&&b?-1:1);break}return et}const computePosition$1=async(e,s,i)=>{const{placement:o="bottom",strategy:a="absolute",middleware:c=[],platform:d}=i,h=c.filter(Boolean),g=await(d.isRTL==null?void 0:d.isRTL(s));let b=await d.getElementRects({reference:e,floating:s,strategy:a}),{x:_,y:_e}=computeCoordsFromPlacement(b,o,g),$=o,et={},it=0;for(let rt=0;rt<h.length;rt++){const{name:lt,fn:st}=h[rt],{x:ot,y:nt,data:at,reset:ct}=await st({x:_,y:_e,initialPlacement:o,placement:$,strategy:a,middlewareData:et,rects:b,platform:d,elements:{reference:e,floating:s}});_=ot??_,_e=nt??_e,et={...et,[lt]:{...et[lt],...at}},ct&&it<=50&&(it++,typeof ct=="object"&&(ct.placement&&($=ct.placement),ct.rects&&(b=ct.rects===!0?await d.getElementRects({reference:e,floating:s,strategy:a}):ct.rects),{x:_,y:_e}=computeCoordsFromPlacement(b,$,g)),rt=-1)}return{x:_,y:_e,placement:$,strategy:a,middlewareData:et}};async function detectOverflow(e,s){var i;s===void 0&&(s={});const{x:o,y:a,platform:c,rects:d,elements:h,strategy:g}=e,{boundary:b="clippingAncestors",rootBoundary:_="viewport",elementContext:_e="floating",altBoundary:$=!1,padding:et=0}=evaluate(s,e),it=getPaddingObject(et),lt=h[$?_e==="floating"?"reference":"floating":_e],st=rectToClientRect(await c.getClippingRect({element:(i=await(c.isElement==null?void 0:c.isElement(lt)))==null||i?lt:lt.contextElement||await(c.getDocumentElement==null?void 0:c.getDocumentElement(h.floating)),boundary:b,rootBoundary:_,strategy:g})),ot=_e==="floating"?{x:o,y:a,width:d.floating.width,height:d.floating.height}:d.reference,nt=await(c.getOffsetParent==null?void 0:c.getOffsetParent(h.floating)),at=await(c.isElement==null?void 0:c.isElement(nt))?await(c.getScale==null?void 0:c.getScale(nt))||{x:1,y:1}:{x:1,y:1},ct=rectToClientRect(c.convertOffsetParentRelativeRectToViewportRelativeRect?await c.convertOffsetParentRelativeRectToViewportRelativeRect({elements:h,rect:ot,offsetParent:nt,strategy:g}):ot);
382return{top:(st.top-ct.top+it.top)/at.y,bottom:(ct.bottom-st.bottom+it.bottom)/at.y,left:(st.left-ct.left+it.left)/at.x,right:(ct.right-st.right+it.right)/at.x}}const arrow$3=e=>({name:"arrow",options:e,async fn(s){const{x:i,y:o,placement:a,rects:c,platform:d,elements:h,middlewareData:g}=s,{element:b,padding:_=0}=evaluate(e,s)||{};if(b==null)return{};const _e=getPaddingObject(_),$={x:i,y:o},et=getAlignmentAxis(a),it=getAxisLength(et),rt=await d.getDimensions(b),lt=et==="y",st=lt?"top":"left",ot=lt?"bottom":"right",nt=lt?"clientHeight":"clientWidth",at=c.reference[it]+c.reference[et]-$[et]-c.floating[it],ct=$[et]-c.reference[et],dt=await(d.getOffsetParent==null?void 0:d.getOffsetParent(b));let pt=dt?dt[nt]:0;(!pt||!await(d.isElement==null?void 0:d.isElement(dt)))&&(pt=h.floating[nt]||c.floating[it]);const mt=at/2-ct/2,St=pt/2-rt[it]/2-1,Pt=min(_e[st],St),Mt=min(_e[ot],St),Ct=Pt,Nt=pt-rt[it]-Mt,kt=pt/2-rt[it]/2+mt,At=clamp$1(Ct,kt,Nt),ft=!g.arrow&&getAlignment(a)!=null&&kt!==At&&c.reference[it]/2-(kt<Ct?Pt:Mt)-rt[it]/2<0,Et=ft?kt<Ct?kt-Ct:kt-Nt:0;return{[et]:$[et]+Et,data:{[et]:At,centerOffset:kt-At-Et,...ft&&{alignmentOffset:Et}},reset:ft}}}),flip$2=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(s){var i,o;const{placement:a,middlewareData:c,rects:d,initialPlacement:h,platform:g,elements:b}=s,{mainAxis:_=!0,crossAxis:_e=!0,fallbackPlacements:$,fallbackStrategy:et="bestFit",fallbackAxisSideDirection:it="none",flipAlignment:rt=!0,...lt}=evaluate(e,s);if((i=c.arrow)!=null&&i.alignmentOffset)return{};const st=getSide(a),ot=getSideAxis(h),nt=getSide(h)===h,at=await(g.isRTL==null?void 0:g.isRTL(b.floating)),ct=$||(nt||!rt?[getOppositePlacement(h)]:getExpandedPlacements(h)),dt=it!=="none";!$&&dt&&ct.push(...getOppositeAxisPlacements(h,rt,it,at));const pt=[h,...ct],mt=await detectOverflow(s,lt),St=[];let Pt=((o=c.flip)==null?void 0:o.overflows)||[];if(_&&St.push(mt[st]),_e){const kt=getAlignmentSides(a,d,at);St.push(mt[kt[0]],mt[kt[1]])}if(Pt=[...Pt,{placement:a,overflows:St}],!St.every(kt=>kt<=0)){var Mt,Ct;const kt=(((Mt=c.flip)==null?void 0:Mt.index)||0)+1,At=pt[kt];if(At&&(!(_e==="alignment"?ot!==getSideAxis(At):!1)||Pt.every(ut=>ut.overflows[0]>0&&getSideAxis(ut.placement)===ot)))return{data:{index:kt,overflows:Pt},reset:{placement:At}};let ft=(Ct=Pt.filter(Et=>Et.overflows[0]<=0).sort((Et,ut)=>Et.overflows[1]-ut.overflows[1])[0])==null?void 0:Ct.placement;if(!ft)switch(et){case"bestFit":{var Nt;const Et=(Nt=Pt.filter(ut=>{if(dt){const ht=getSideAxis(ut.placement);return ht===ot||ht==="y"}return!0}).map(ut=>[ut.placement,ut.overflows.filter(ht=>ht>0).reduce((ht,gt)=>ht+gt,0)]).sort((ut,ht)=>ut[1]-ht[1])[0])==null?void 0:Nt[0];Et&&(ft=Et);break}case"initialPlacement":ft=h;break}if(a!==ft)return{reset:{placement:ft}}}return{}}}};function getSideOffsets(e,s){return{top:e.top-s.height,right:e.right-s.width,bottom:e.bottom-s.height,left:e.left-s.width}}function isAnySideFullyClipped(e){return sides.some(s=>e[s]>=0)}const hide$2=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(s){const{rects:i}=s,{strategy:o="referenceHidden",...a}=evaluate(e,s);switch(o){case"referenceHidden":{const c=await detectOverflow(s,{...a,elementContext:"reference"}),d=getSideOffsets(c,i.reference);return{data:{referenceHiddenOffsets:d,referenceHidden:isAnySideFullyClipped(d)}}}case"escaped":{const c=await detectOverflow(s,{...a,altBoundary:!0}),d=getSideOffsets(c,i.floating);return{data:{escapedOffsets:d,escaped:isAnySideFullyClipped(d)}}}default:return{}}}}},originSides=new Set(["left","top"]);async function convertValueToCoords(e,s){const{placement:i,platform:o,elements:a}=e,c=await(o.isRTL==null?void 0:o.isRTL(a.floating)),d=getSide(i),h=getAlignment(i),g=getSideAxis(i)==="y",b=originSides.has(d)?-1:1,_=c&&g?-1:1,_e=evaluate(s,e);let{mainAxis:$,crossAxis:et,alignmentAxis:it}=typeof _e=="number"?{mainAxis:_e,crossAxis:0,alignmentAxis:null}:{mainAxis:_e.mainAxis||0,crossAxis:_e.crossAxis||0,alignmentAxis:_e.alignmentAxis};return h&&typeof it=="number"&&(et=h==="end"?it*-1:it),g?{x:et*_,y:$*b}:{x:$*b,y:et*_}}const offset$2=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(s){var i,o;const{x:a,y:c,placement:d,middlewareData:h}=s,g=await convertValueToCoords(s,e);return d===((i=h.offset)==null?void 0:i.placement)&&(o=h.arrow)!=null&&o.alignmentOffset?{}:{x:a+g.x,y:c+g.y,data:{...g,placement:d}}}}},shift$2=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(s){const{x:i,y:o,placement:a}=s,{mainAxis:c=!0,crossAxis:d=!1,limiter:h={fn:lt=>{let{x:st,y:ot}=lt;return{x:st,y:ot}}},...g}=evaluate(e,s),b={x:i,y:o},_=await detectOverflow(s,g),_e=getSideAxis(getSide(a)),$=getOpp
382ositeAxis(_e);let et=b[$],it=b[_e];if(c){const lt=$==="y"?"top":"left",st=$==="y"?"bottom":"right",ot=et+_[lt],nt=et-_[st];et=clamp$1(ot,et,nt)}if(d){const lt=_e==="y"?"top":"left",st=_e==="y"?"bottom":"right",ot=it+_[lt],nt=it-_[st];it=clamp$1(ot,it,nt)}const rt=h.fn({...s,[$]:et,[_e]:it});return{...rt,data:{x:rt.x-i,y:rt.y-o,enabled:{[$]:c,[_e]:d}}}}}},limitShift$2=function(e){return e===void 0&&(e={}),{options:e,fn(s){const{x:i,y:o,placement:a,rects:c,middlewareData:d}=s,{offset:h=0,mainAxis:g=!0,crossAxis:b=!0}=evaluate(e,s),_={x:i,y:o},_e=getSideAxis(a),$=getOppositeAxis(_e);let et=_[$],it=_[_e];const rt=evaluate(h,s),lt=typeof rt=="number"?{mainAxis:rt,crossAxis:0}:{mainAxis:0,crossAxis:0,...rt};if(g){const nt=$==="y"?"height":"width",at=c.reference[$]-c.floating[nt]+lt.mainAxis,ct=c.reference[$]+c.reference[nt]-lt.mainAxis;et<at?et=at:et>ct&&(et=ct)}if(b){var st,ot;const nt=$==="y"?"width":"height",at=originSides.has(getSide(a)),ct=c.reference[_e]-c.floating[nt]+(at&&((st=d.offset)==null?void 0:st[_e])||0)+(at?0:lt.crossAxis),dt=c.reference[_e]+c.reference[nt]+(at?0:((ot=d.offset)==null?void 0:ot[_e])||0)-(at?lt.crossAxis:0);it<ct?it=ct:it>dt&&(it=dt)}
382return{[$]:et,[_e]:it}}}},size$2=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(s){var i,o;const{placement:a,rects:c,platform:d,elements:h}=s,{apply:g=()=>{},...b}=evaluate(e,s),_=await detectOverflow(s,b),_e=getSide(a),$=getAlignment(a),et=getSideAxis(a)==="y",{width:it,height:rt}=c.floating;let lt,st;_e==="top"||_e==="bottom"?(lt=_e,st=$===(await(d.isRTL==null?void 0:d.isRTL(h.floating))?"start":"end")?"left":"right"):(st=_e,lt=$==="end"?"top":"bottom");const ot=rt-_.top-_.bottom,nt=it-_.left-_.right,at=min(rt-_[lt],ot),ct=min(it-_[st],nt),dt=!s.middlewareData.shift;let pt=at,mt=ct;if((i=s.middlewareData.shift)!=null&&i.enabled.x&&(mt=nt),(o=s.middlewareData.shift)!=null&&o.enabled.y&&(pt=ot),dt&&!$){const Pt=max(_.left,0),Mt=max(_.right,0),Ct=max(_.top,0),Nt=max(_.bottom,0);et?mt=it-2*(Pt!==0||Mt!==0?Pt+Mt:max(_.left,_.right)):pt=rt-2*(Ct!==0||Nt!==0?Ct+Nt:max(_.top,_.bottom))}await g({...s,availableWidth:mt,availableHeight:pt});const St=await d.getDimensions(h.floating);return it!==St.width||rt!==St.height?{reset:{rects:!0}}:{}}}};function hasWindow(){return typeof window<"u"}function getNodeName(e){return isNode(e)?(e.nodeName||"").toLowerCase():"#document"}function getWindow(e){var s;return(e==null||(s=e.ownerDocument)==null?void 0:s.defaultView)||window}function getDocumentElement(e){var s;return(s=(isNode(e)?e.ownerDocument:e.document)||window.document)==null?void 0:s.documentElement}function isNode(e){return hasWindow()?e instanceof Node||e instanceof getWindow(e).Node:!1}function isElement(e){return hasWindow()?e instanceof Element||e instanceof getWindow(e).Element:!1}function isHTMLElement(e){return hasWindow()?e instanceof HTMLElement||e instanceof getWindow(e).HTMLElement:!1}function isShadowRoot(e){return!hasWindow()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof getWindow(e).ShadowRoot}const invalidOverflowDisplayValues=new Set(["inline","contents"]);function isOverflowElement(e){const{overflow:s,overflowX:i,overflowY:o,display:a}=getComputedStyle$1(e);return/auto|scroll|overlay|hidden|clip/.test(s+o+i)&&!invalidOverflowDisplayValues.has(a)}const tableElements=new Set(["table","td","th"]);function isTableElement(e){return tableElements.has(getNodeName(e))}const topLayerSelectors=[":popover-open",":modal"];function isTopLayer(e){return topLayerSelectors.some(s=>{try{return e.matches(s)}catch{return!1}})}const transformProperties=["transform","translate","scale","rotate","perspective"],willChangeValues=["transform","translate","scale","rotate","perspective","filter"],containValues=["paint","layout","strict","content"];function isContainingBlock(e){const s=isWebKit(),i=isElement(e)?getComputedStyle$1(e):e;return transformProperties.some(o=>i[o]?i[o]!=="none":!1)||(i.containerType?i.containerType!=="normal":!1)||!s&&(i.backdropFilter?i.backdropFilter!=="none":!1)||!s&&(i.filter?i.filter!=="none":!1)||willChangeValues.some(o=>(i.willChange||"").includes(o))||containValues.some(o=>(i.contain||"").includes(o))}function getContainingBlock(e){let s=getParentNode(e);for(;isHTMLElement(s)&&!isLastTraversableNode(s);){if(isContainingBlock(s))return s;if(isTopLayer(s))return null;s=getParentNode(s)}return null}function isWebKit(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const lastTraversableNodeNames=new Set(["html","body","#document"]);function isLastTraversableNode(e){return lastTraversableNodeNames.has(getNodeName(e))}function getComputedStyle$1(e){return getWindow(e).getComputedStyle(e)}function getNodeScroll(e){return isElement(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function getParentNode(e){if(getNodeName(e)==="html")return e;const s=e.assignedSlot||e.parentNode||isShadowRoot(e)&&e.host||getDocumentElement(e);return isShadowRoot(s)?s.host:s}function getNearestOverflowAncestor(e){const s=getParentNode(e);return isLastTraversableNode(s)?e.ownerDocument?e.ownerDocument.body:e.body:isHTMLElement(s)&&isOverflowElement(s)?s:getNearestOverflowAncestor(s)}function getOverflowAncestors(e,s,i){var o;s===void 0&&(s=[]),i===void 0&&(i=!0);const a=getNearestOverflowAncestor(e),c=a===((o=e.ownerDocument)==null?void 0:o.body),d=getWindow(a);if(c){const h=getFrameElement(d);
382return s.concat(d,d.visualViewport||[],isOverflowElement(a)?a:[],h&&i?getOverflowAncestors(h):[])}return s.concat(a,getOverflowAncestors(a,[],i))}function getFrameElement(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function getCssDimensions(e){const s=getComputedStyle$1(e);let i=parseFloat(s.width)||0,o=parseFloat(s.height)||0;const a=isHTMLElement(e),c=a?e.offsetWidth:i,d=a?e.offsetHeight:o,h=round(i)!==c||round(o)!==d;return h&&(i=c,o=d),{width:i,height:o,$:h}}function unwrapElement(e){return isElement(e)?e:e.contextElement}function getScale(e){const s=unwrapElement(e);if(!isHTMLElement(s))return createCoords(1);const i=s.getBoundingClientRect(),{width:o,height:a,$:c}=getCssDimensions(s);let d=(c?round(i.width):i.width)/o,h=(c?round(i.height):i.height)/a;return(!d||!Number.isFinite(d))&&(d=1),(!h||!Number.isFinite(h))&&(h=1),{x:d,y:h}}const noOffsets=createCoords(0);function getVisualOffsets(e){const s=getWindow(e);return!isWebKit()||!s.visualViewport?noOffsets:{x:s.visualViewport.offsetLeft,y:s.visualViewport.offsetTop}}function shouldAddVisualOffsets(e,s,i){return s===void 0&&(s=!1),!i||s&&i!==getWindow(e)?!1:s}function getBoundingClientRect(e,s,i,o){s===void 0&&(s=!1),i===void 0&&(i=!1);const a=e.getBoundingClientRect(),c=unwrapElement(e);let d=createCoords(1);s&&(o?isElement(o)&&(d=getScale(o)):d=getScale(e));const h=shouldAddVisualOffsets(c,i,o)?getVisualOffsets(c):createCoords(0);let g=(a.left+h.x)/d.x,b=(a.top+h.y)/d.y,_=a.width/d.x,_e=a.height/d.y;if(c){const $=getWindow(c),et=o&&isElement(o)?getWindow(o):o;let it=$,rt=getFrameElement(it);for(;rt&&o&&et!==it;){const lt=getScale(rt),st=rt.getBoundingClientRect(),ot=getComputedStyle$1(rt),nt=st.left+(rt.clientLeft+parseFloat(ot.paddingLeft))*lt.x,at=st.top+(rt.clientTop+parseFloat(ot.paddingTop))*lt.y;g*=lt.x,b*=lt.y,_*=lt.x,_e*=lt.y,g+=nt,b+=at,it=getWindow(rt),rt=getFrameElement(it)}}return rectToClientRect({width:_,height:_e,x:g,y:b})}function getWindowScrollBarX(e,s){const i=getNodeScroll(e).scrollLeft;return s?s.left+i:getBoundingClientRect(getDocumentElement(e)).left+i}function getHTMLOffset(e,s,i){i===void 0&&(i=!1);const o=e.getBoundingClientRect(),a=o.left+s.scrollLeft-(i?0:getWindowScrollBarX(e,o)),c=o.top+s.scrollTop;return{x:a,y:c}}function convertOffsetParentRelativeRectToViewportRelativeRect(e){let{elements:s,rect:i,offsetParent:o,strategy:a}=e;const c=a==="fixed",d=getDocumentElement(o),h=s?isTopLayer(s.floating):!1;if(o===d||h&&c)return i;let g={scrollLeft:0,scrollTop:0},b=createCoords(1);const _=createCoords(0),_e=isHTMLElement(o);if((_e||!_e&&!c)&&((getNodeName(o)!=="body"||isOverflowElement(d))&&(g=getNodeScroll(o)),isHTMLElement(o))){const et=getBoundingClientRect(o);b=getScale(o),_.x=et.x+o.clientLeft,_.y=et.y+o.clientTop}const $=d&&!_e&&!c?getHTMLOffset(d,g,!0):createCoords(0);return{width:i.width*b.x,height:i.height*b.y,x:i.x*b.x-g.scrollLeft*b.x+_.x+$.x,y:i.y*b.y-g.scrollTop*b.y+_.y+$.y}}function getClientRects(e){return Array.from(e.getClientRects())}function getDocumentRect(e){const s=getDocumentElement(e),i=getNodeScroll(e),o=e.ownerDocument.body,a=max(s.scrollWidth,s.clientWidth,o.scrollWidth,o.clientWidth),c=max(s.scrollHeight,s.clientHeight,o.scrollHeight,o.clientHeight);let d=-i.scrollLeft+getWindowScrollBarX(e);const h=-i.scrollTop;return getComputedStyle$1(o).direction==="rtl"&&(d+=max(s.clientWidth,o.clientWidth)-a),{width:a,height:c,x:d,y:h}}function getViewportRect(e,s){const i=getWindow(e),o=getDocumentElement(e),a=i.visualViewport;let c=o.clientWidth,d=o.clientHeight,h=0,g=0;if(a){c=a.width,d=a.height;const b=isWebKit();(!b||b&&s==="fixed")&&(h=a.offsetLeft,g=a.offsetTop)}return{width:c,height:d,x:h,y:g}}const absoluteOrFixed=new Set(["absolute","fixed"]);function getInnerBoundingClientRect(e,s){const i=getBoundingClientRect(e,!0,s==="fixed"),o=i.top+e.clientTop,a=i.left+e.clientLeft,c=isHTMLElement(e)?getScale(e):createCoords(1),d=e.clientWidth*c.x,h=e.clientHeight*c.y,g=a*c.x,b=o*c.y;return{width:d,height:h,x:g,y:b}}function getClientRectFromClippingAncestor(e,s,i){let o;if(s==="viewport")o=getViewportRect(e,i);else if(s==="document")o=getDocumentRect(getDocumentElement(e));else if(isElement(s))o=getInnerBoundingClientRect(s,i);else{const a=getVisualOffsets(e);o={x:s.x-a.x,y:s.y-a.y,width:s.width,height:s.height}}return rectToClientRect(o)}function hasFixedPositionAncestor(e,s){const i=getParentNode(e);return i===s||!isElement(i)||isLastTraversableNode(i)?!1:getComputedStyle$1(i).position==="fixed"||hasFixedPositionAncestor(i,s)}function getClippingElementAncestors(e,s){const i=s.get(e);if(i)return i;let o=getOverflowAncestors(e,[],!1).filter(h=>isElement(h)&&getNodeName(h)!=="body"),a=null;const c=getComputedStyle$1(e).position==="fixed";let d=c?getParentNode(e):e;for(;
382isElement(d)&&!isLastTraversableNode(d);){const h=getComputedStyle$1(d),g=isContainingBlock(d);!g&&h.position==="fixed"&&(a=null),(c?!g&&!a:!g&&h.position==="static"&&!!a&&absoluteOrFixed.has(a.position)||isOverflowElement(d)&&!g&&hasFixedPositionAncestor(e,d))?o=o.filter(_=>_!==d):a=h,d=getParentNode(d)}return s.set(e,o),o}function getClippingRect(e){let{element:s,boundary:i,rootBoundary:o,strategy:a}=e;const d=[...i==="clippingAncestors"?isTopLayer(s)?[]:getClippingElementAncestors(s,this._c):[].concat(i),o],h=d[0],g=d.reduce((b,_)=>{const _e=getClientRectFromClippingAncestor(s,_,a);return b.top=max(_e.top,b.top),b.right=min(_e.right,b.right),b.bottom=min(_e.bottom,b.bottom),b.left=max(_e.left,b.left),b},getClientRectFromClippingAncestor(s,h,a));return{width:g.right-g.left,height:g.bottom-g.top,x:g.left,y:g.top}}function getDimensions(e){const{width:s,height:i}=getCssDimensions(e);return{width:s,height:i}}function getRectRelativeToOffsetParent(e,s,i){const o=isHTMLElement(s),a=getDocumentElement(s),c=i==="fixed",d=getBoundingClientRect(e,!0,c,s);let h={scrollLeft:0,scrollTop:0};const g=createCoords(0);function b(){g.x=getWindowScrollBarX(a)}if(o||!o&&!c)if((getNodeName(s)!=="body"||isOverflowElement(a))&&(h=getNodeScroll(s)),o){const et=getBoundingClientRect(s,!0,c,s);g.x=et.x+s.clientLeft,g.y=et.y+s.clientTop}else a&&b();c&&!o&&a&&b();const _=a&&!o&&!c?getHTMLOffset(a,h):createCoords(0),_e=d.left+h.scrollLeft-g.x-_.x,$=d.top+h.scrollTop-g.y-_.y;return{x:_e,y:$,width:d.width,height:d.height}}function isStaticPositioned(e){return getComputedStyle$1(e).position==="static"}function getTrueOffsetParent(e,s){if(!isHTMLElement(e)||getComputedStyle$1(e).position==="fixed")return null;if(s)return s(e);let i=e.offsetParent;return getDocumentElement(e)===i&&(i=i.ownerDocument.body),i}function getOffsetParent(e,s){const i=getWindow(e);if(isTopLayer(e))return i;if(!isHTMLElement(e)){let a=getParentNode(e);for(;a&&!isLastTraversableNode(a);){if(isElement(a)&&!isStaticPositioned(a))return a;a=getParentNode(a)}return i}let o=getTrueOffsetParent(e,s);for(;o&&isTableElement(o)&&isStaticPositioned(o);)o=getTrueOffsetParent(o,s);return o&&isLastTraversableNode(o)&&isStaticPositioned(o)&&!isContainingBlock(o)?i:o||getContainingBlock(e)||i}const getElementRects=async function(e){const s=this.getOffsetParent||getOffsetParent,i=this.getDimensions,o=await i(e.floating);return{reference:getRectRelativeToOffsetParent(e.reference,await s(e.floating),e.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}};function isRTL(e){return getComputedStyle$1(e).direction==="rtl"}const platform={convertOffsetParentRelativeRectToViewportRelativeRect,getDocumentElement,getClippingRect,getOffsetParent,getElementRects,getClientRects,getDimensions,getScale,isElement,isRTL};function rectsAreEqual(e,s){return e.x===s.x&&e.y===s.y&&e.width===s.width&&e.height===s.height}function observeMove(e,s){let i=null,o;const a=getDocumentElement(e);function c(){var h;clearTimeout(o),(h=i)==null||h.disconnect(),i=null}function d(h,g){h===void 0&&(h=!1),g===void 0&&(g=1),c();const b=e.getBoundingClientRect(),{left:_,top:_e,width:$,height:et}=b;if(h||s(),!$||!et)return;const it=floor(_e),rt=floor(a.clientWidth-(_+$)),lt=floor(a.clientHeight-(_e+et)),st=floor(_),nt={rootMargin:-it+"px "+-rt+"px "+-lt+"px "+-st+"px",threshold:max(0,min(1,g))||1};let at=!0;function ct(dt){const pt=dt[0].intersectionRatio;if(pt!==g){if(!at)return d();pt?d(!1,pt):o=setTimeout(()=>{d(!1,1e-7)},1e3)}pt===1&&!rectsAreEqual(b,e.getBoundingClientRect())&&d(),at=!1}try{i=new IntersectionObserver(ct,{...nt,root:a.ownerDocument})}catch{i=new IntersectionObserver(ct,nt)}i.observe(e)}return d(!0),c}function autoUpdate(e,s,i,o){o===void 0&&(o={});const{ancestorScroll:a=!0,ancestorResize:c=!0,elementResize:d=typeof ResizeObserver=="function",layoutShift:h=typeof IntersectionObserver=="function",animationFrame:g=!1}=o,b=unwrapElement(e),_=a||c?[...b?getOverflowAncestors(b):[],...getOverflowAncestors(s)]:[];_.forEach(st=>{a&&st.addEventListener("scroll",i,{passive:!0}),c&&st.addEventListener("resize",i)});const _e=b&&h?observeMove(b,i):null;let $=-1,et=null;d&&(et=new ResizeObserver(st=>{let[ot]=st;ot&&ot.target===b&&et&&(et.unobserve(s),cancelAnimationFrame($),$=requestAnimationFrame(()=>{var nt;(nt=et)==null||nt.observe(s)})),i()}),b&&!g&&et.observe(b),et.observe(s));let it,rt=g?getBoundingClientRect(e):null;g&<();function lt(){const st=getBoundingClientRect(e);rt&&!rectsAreEqual(rt,st)&&i(),rt=st,it=requestAnimationFrame(lt)}return i(),()=>{var st;_.forEach(ot=>{a&&ot.removeEventListener("scroll",i),c&&ot.removeEventListener("resize",i)}),_e==null||_e(),(st=et)==null||st.disconnect(),et=null,g&&cancelAnimationFrame(it)}}const offset$1=offset$2,shift$1=shift$2,flip$1=flip$2,size$1=size$2,hide$1=hide$2,arrow$2=arrow$3,limitShift$1=limitShift$2,computePosition=(e,s,i)=>{const o=new Map,a={platform,...i},c={...a.platform,_c:o};return computePosition$1(e,s,{...a,platform:c})};
vendor: 2,234 bytes, line 382
382var isClient=typeof document<"u",noop$4=function(){},index=isClient?reactExports.useLayoutEffect:noop$4;function deepEqual(e,s){if(e===s)return!0;if(typeof e!=typeof s)return!1;if(typeof e=="function"&&e.toString()===s.toString())return!0;let i,o,a;if(e&&s&&typeof e=="object"){if(Array.isArray(e)){if(i=e.length,i!==s.length)return!1;for(o=i;o--!==0;)if(!deepEqual(e[o],s[o]))return!1;return!0}if(a=Object.keys(e),i=a.length,i!==Object.keys(s).length)return!1;for(o=i;o--!==0;)if(!{}.hasOwnProperty.call(s,a[o]))return!1;for(o=i;o--!==0;){const c=a[o];if(!(c==="_owner"&&e.$$typeof)&&!deepEqual(e[c],s[c]))return!1}return!0}return e!==e&&s!==s}function getDPR(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function roundByDPR(e,s){const i=getDPR(e);return Math.round(s*i)/i}function useLatestRef(e){const s=reactExports.useRef(e);return index(()=>{s.current=e}),s}function useFloating(e){e===void 0&&(e={});const{placement:s="bottom",strategy:i="absolute",middleware:o=[],platform:a,elements:{reference:c,floating:d}={},transform:h=!0,whileElementsMounted:g,open:b}=e,[_,_e]=reactExports.useState({x:0,y:0,strategy:i,placement:s,middlewareData:{},isPositioned:!1}),[$,et]=reactExports.useState(o);deepEqual($,o)||et(o);const[it,rt]=reactExports.useState(null),[lt,st]=reactExports.useState(null),ot=reactExports.useCallback(ut=>{ut!==dt.current&&(dt.current=ut,rt(ut))},[]),nt=reactExports.useCallback(ut=>{ut!==pt.current&&(pt.current=ut,st(ut))},[]),at=c||it,ct=d||lt,dt=reactExports.useRef(null),pt=reactExports.useRef(null),mt=reactExports.useRef(_),St=g!=null,Pt=useLatestRef(g),Mt=useLatestRef(a),Ct=useLatestRef(b),Nt=reactExports.useCallback(()=>{if(!dt.current||!pt.current)return;const ut={placement:s,strategy:i,middleware:$};Mt.current&&(ut.platform=Mt.current),computePosition(dt.current,pt.current,ut).then(ht=>{const gt={...ht,isPositioned:Ct.current!==!1};kt.current&&!deepEqual(mt.current,gt)&&(mt.current=gt,reactDomExports.flushSync(()=>{_e(gt)}))})},[$,s,i,Mt,Ct]);index(()=>{b===!1&&mt.current.isPositioned&&(mt.current.isPositioned=!1,_e(ut=>({...ut,isPositioned:!1})))},[b]);const kt=reactExports.useRef(!1);index(()=>(kt.current=!0,()=>{kt.current=!1}),[]),index(()=>
382{if(at&&(dt.current=at),ct&&(pt.current=ct),at&&ct){if(Pt.current)return Pt.current(at,ct,Nt);Nt()}},[at,ct,Nt,Pt,St]);const At=reactExports.useMemo(()=>({reference:dt,floating:pt,setReference:ot,setFloating:nt}),[ot,nt]),ft=reactExports.useMemo(()=>({reference:at,floating:ct}),[at,ct]),Et=reactExports.useMemo(()=>{const ut={position:i,left:0,top:0};if(!ft.floating)return ut;const ht=roundByDPR(ft.floating,_.x),gt=roundByDPR(ft.floating,_.y);return h?{...ut,transform:"translate("+ht+"px, "+gt+"px)",...getDPR(ft.floating)>=1.5&&{willChange:"transform"}}:{position:i,left:ht,top:gt}},[i,h,ft.floating,_.x,_.y]);return reactExports.useMemo(()=>({..._,update:Nt,refs:At,elements:ft,floatingStyles:Et}),[_,Nt,At,ft,Et])}const arrow$1=e=>{function s(i){return{}.hasOwnProperty.call(i,"current")}return{name:"arrow",options:e,fn(i){const{element:o,padding:a}=typeof e=="function"?e(i):e;return o&&s(o)?o.current!=null?arrow$2({element:o.current,padding:a}).fn(i):{}:o?arrow$2({element:o,padding:a}).fn(i):{}}}},offset=(e,s)=>({...offset$1(e),options:[e,s]}),shift=(e,s)=>({...shift$1(e),options:[e,s]}),limitShift=(e,s)=>({...limitShift$1(e),options:[e,s]}),flip=(e,s)=>({...flip$1(e),options:[e,s]}),size=(e,s)=>({...size$1(e),options:[e,s]}),hide=(e,s)=>({...hide$1(e),options:[e,s]}),arrow=(e,s)=>({...arrow$1(e),options:[e,s]});var NAME$1="Arrow",Arrow$1=reactExports.forwardRef((e,s)=>{const{children:i,width:o=10,height:a=5,...c}=e;return jsxRuntimeExports.jsx(Primitive.svg,{...c,ref:s,width:o,height:a,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?i:jsxRuntimeExports.jsx("polygon",{points:"0,0 30,0 15,10"})})});Arrow$1.displayName=NAME$1;var Root$5=Arrow$1;function useSize(e){const[s,i]=reactExports.useState(void 0);return useLayoutEffect2(()=>{if(e){i({width:e.offsetWidth,height:e.offsetHeight});const o=new ResizeObserver(a=>{if(!Array.isArray(a)||!a.length)return;const c=a[0];let d,h;if("borderBoxSize"in c){const g=c.borderBoxSize,b=Array.isArray(g)?g[0]:g;d=b.inlineSize,h=b.blockSize}else d=e.offsetWidth,h=e.offsetHeight;i({width:d,height:h})});return o.observe(e,{box:"border-box"}),()=>o.unobserve(e)}else i(void 0)},[e]),s}var POPPER_NAME="Popper",[createPopperContext,createPopperScope]=createContextScope(POPPER_NAME),[PopperProvider,usePopperContext]=createPopperContext(POPPER_NAME),Popper=e=>{const{__scopePopper:s,children:i}=e,[o,a]=reactExports.useState(null);return jsxRuntimeExports.jsx(PopperProvider,{scope:s,anchor:o,onAnchorChange:a,children:i})};Popper.displayName=POPPER_NAME;var ANCHOR_NAME$2="PopperAnchor",PopperAnchor=reactExports.forwardRef((e,s)=>{const{__scopePopper:i,virtualRef:o,...a}=e,c=usePopperContext(ANCHOR_NAME$2,i),d=reactExports.useRef(null),h=useComposedRefs(s,d);return reactExports.useEffect(()=>{c.onAnchorChange((o==null?void 0:o.current)||d.current)}),o?null:jsxRuntimeExports.jsx(Primitive.div,{...a,ref:h})});PopperAnchor.displayName=ANCHOR_NAME$2;var CONTENT_NAME$5="PopperContent",[PopperContentProvider,useContentContext]=createPopperContext(CONTENT_NAME$5),PopperContent=reactExports.forwardRef((e,s)=>{var Bt,Ut,Ht,qt,Kt,Jt;const{__scopePopper:i,side:o="bottom",sideOffset:a=0,align:c="center",alignOffset:d=0,arrowPadding:h=0,avoidCollisions:g=!0,collisionBoundary:b=[],collisionPadding:_=0,sticky:_e="partial",hideWhenDetached:$=!1,updatePositionStrategy:et="optimized",onPlaced:it,...rt}=e,lt=usePopperContext(CONTENT_NAME$5,i),[st,ot]=reactExports.useState(null),nt=useComposedRefs(s,zt=>ot(zt)),[at,ct]=reactExports.useState(null),dt=useSize(at),pt=(dt==null?void 0:dt.width)??0,mt=(dt==null?void 0:dt.height)??0,St=o+(c!=="center"?"-"+c:""),Pt=typeof _=="number"?_:{top:0,right:0,bottom:0,left:0,..._},Mt=Array.isArray(b)?b:[b],Ct=Mt.length>0,Nt={padding:Pt,boundary:Mt.filter(isNotNull),altBoundary:Ct},{refs:kt,floatingStyles:At,placement:ft,isPositioned:Et,middlewareData:ut}=useFloating({strategy:"fixed",placement:St,whileElementsMounted:(...zt)=>autoUpdate(...zt,{animationFrame:et==="always"}),elements:{reference:lt.anchor},middleware:[offset({mainAxis:a+mt,alignmentAxis:d}),g&&shift({mainAxis:!0,crossAxis:!1,limiter:_e==="partial"?limitShift():void 0,...Nt}),g&&flip({...Nt}),size({...Nt,apply:({elements:zt,rects:Vt,availableWidth:er,availableHeight:fr})=>{const{width:mr,height:ir}=Vt.reference,lr=zt.floating.style;lr.setProperty("--radix-popper-available-width",`${er}px`),lr.setProperty("--radix-popper-available-height",`${fr}px`),lr.setProperty("--radix-popper-anchor-width",`${mr}px`),lr.setProperty("--radix-popper-anchor-height",`${ir}px`)}}),at&&arrow({element:at,padding:h}),transformOrigin({arrowWidth:pt,arrowHeight:mt}),$&&hide({strategy:"referenceHidden",...Nt})]}),[ht,gt]=getSideAndAlignFromPlacement(ft),xt=useCallbackRef$1(it);useLayoutEffect2(()=>{Et&&(xt==null||xt())},[Et,xt]);const Rt=(Bt=ut.arrow)==null?void 0:Bt.x,Tt=(Ut=ut.arrow)==null?void 0:Ut.y,It=((Ht=ut.arrow)==null?void 0:Ht.centerOffset)!==0,[Lt,$t]=reactExports.useState();return useLayoutEffect2(()=>{st&&$t(window.getComputedStyle(st).zIndex)},[st]),jsxRuntimeExports.jsx("div",{ref:kt.setFloating,"data-radix-popper-content-wrapper":"",style:{...At,transform:Et?At.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:Lt,"--radix-popper-transform-origin":[(qt=ut.transformOrigin)==null?void 0:qt.x,(Kt=ut.transformOrigin)==null?void 0:Kt.y].join(" "),...((Jt=ut.hide)==null?void 0:Jt.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:jsxRuntimeExports.jsx(PopperContentProvider,{scope:i,placedSide:ht,onArrowChange:ct,arrowX:Rt,arrowY:Tt,shouldHideArrow:It,children:jsxRuntimeExports.jsx(Primitive.div,{"data-side":ht,"data-align":gt,...rt,ref:nt,style:{...rt.style,animation:Et?void 0:"none"}})})})});PopperContent.displayName=CONTENT_NAME$5;var ARROW_NAME$4="PopperArrow",OPPOSITE_SIDE={top:"bottom",right:"left",bottom:"top",left:"r
382ight"},PopperArrow=reactExports.forwardRef(function(s,i){const{__scopePopper:o,...a}=s,c=useContentContext(ARROW_NAME$4,o),d=OPPOSITE_SIDE[c.placedSide];return jsxRuntimeExports.jsx("span",{ref:c.onArrowChange,style:{position:"absolute",left:c.arrowX,top:c.arrowY,[d]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[c.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[c.placedSide],visibility:c.shouldHideArrow?"hidden":void 0},children:jsxRuntimeExports.jsx(Root$5,{...a,ref:i,style:{...a.style,display:"block"}})})});PopperArrow.displayName=ARROW_NAME$4;function isNotNull(e){return e!==null}var transformOrigin=e=>({name:"transformOrigin",options:e,fn(s){var lt,st,ot;const{placement:i,rects:o,middlewareData:a}=s,d=((lt=a.arrow)==null?void 0:lt.centerOffset)!==0,h=d?0:e.arrowWidth,g=d?0:e.arrowHeight,[b,_]=getSideAndAlignFromPlacement(i),_e={start:"0%",center:"50%",end:"100%"}[_],$=(((st=a.arrow)==null?void 0:st.x)??0)+h/2,et=(((ot=a.arrow)==null?void 0:ot.y)??0)+g/2;let it="",rt="";return b==="bottom"?(it=d?_e:`${$}px`,rt=`${-g}px`):b==="top"?(it=d?_e:`${$}px`,rt=`${o.floating.height+g}px`):b==="right"?(it=`${-g}px`,rt=d?_e:`${et}px`):b==="left"&&(it=`${o.floating.width+g}px`,rt=d?_e:`${et}px`),{data:{x:it,y:rt}}}});function getSideAndAlignFromPlacement(e){const[s,i="center"]=e.split("-");return[s,i]}var Root2$2=Popper,Anchor=PopperAnchor,Content$1=PopperContent,Arrow=PopperArrow,[createTooltipContext]=createContextScope("Tooltip",[createPopperScope]),usePopperScope$2=createPopperScope(),PROVIDER_NAME="TooltipProvider",DEFAULT_DELAY_DURATION=700,TOOLTIP_OPEN="tooltip.open",[TooltipProviderContextProvider,useTooltipProviderContext]=createTooltipContext(PROVIDER_NAME),TooltipProvider$1=e=>{const{__scopeTooltip:s,delayDuration:i=DEFAULT_DELAY_DURATION,skipDelayDuration:o=300,disableHoverableContent:a=!1,children:c}=e,d=reactExports.useRef(!0),h=reactExports.useRef(!1),g=reactExports.useRef(0);return reactExports.useEffect(()=>{const b=g.current;return()=>window.clearTimeout(b)},[]),jsxRuntimeExports.jsx(TooltipProviderContextProvider,{scope:s,isOpenDelayedRef:d,delayDuration:i,onOpen:reactExports.useCallback(()=>{window.clearTimeout(g.current),d.current=!1},[]),onClose:reactExports.useCallback(()=>{window.clearTimeout(g.current),g.current=window.setTimeout(()=>d.current=!0,o)},[o]),isPointerInTransitRef:h,onPointerInTransitChange:reactExports.useCallback(b=>{h.current=b},[]),disableHoverableContent:a,children:c})};TooltipProvider$1.displayName=PROVIDER_NAME;var TOOLTIP_NAME="Tooltip",[TooltipContextProvider,useTooltipContext]=createTooltipContext(TOOLTIP_NAME),Tooltip$1=e=>{const{__scopeTooltip:s,children:i,open:o,defaultOpen:a,onOpenChange:c,disableHoverableContent:d,delayDuration:h}=e,g=useTooltipProviderContext(TOOLTIP_NAME,e.__scopeTooltip),b=usePopperScope$2(s),[_,_e]=reactExports.useState(null),$=useId(),et=reactExports.useRef(0),it=d??g.disableHoverableContent,rt=h??g.delayDuration,lt=reactExports.useRef(!1),[st,ot]=useControllableState({prop:o,defaultProp:a??!1,onChange:pt=>{pt?(g.onOpen(),document.dispatchEvent(new CustomEvent(TOOLTIP_OPEN))):g.onClose(),c==null||c(pt)},caller:TOOLTIP_NAME}),nt=reactExports.useMemo(()=>st?lt.current?"delayed-open":"instant-open":"closed",[st]),at=reactExports.useCallback(()=>{window.clearTimeout(et.current),et.current=0,lt.current=!1,ot(!0)},[ot]),ct=reactExports.useCallback(()=>{window.clearTimeout(et.current),et.current=0,ot(!1)},[ot]),dt=reactExports.useCallback(()=>{window.clearTimeout(et.current),et.current=window.setTimeout(()=>{lt.current=!0,ot(!0),et.current=0},rt)},[rt,ot]);return reactExports.useEffect(()=>()=>{et.current&&(window.clearTimeout(et.current),et.current=0)},[]),jsxRuntimeExports.jsx(Root2$2,{...b,children:jsxRuntimeExports.jsx(TooltipContextProvider,{scope:s,contentId:$,open:st,stateAttribute:nt,trigger:_,onTriggerChange:_e,onTriggerEnter:reactExports.useCallback(()=>{g.isOpenDelayedRef.current?dt():at()},[g.isOpenDelayedRef,dt,at]),onTriggerLeave:reactExports.useCallback(()=>{it?ct():(window.clearTimeout(et.current),et.current=0)},[ct,it]),onOpen:at,onClose:ct,disableHoverableContent:it,children:i})})};Tooltip$1.displayName=TOOLTIP_NAME;var TRIGGER_NAME$3="TooltipTrigger",TooltipTrigger$1=reactExports.forwardRef((e,s)=>{const{__scopeTooltip:i,...o}=e,a=useTooltipContext(TRIGGER_NAME$3,i),c=useTooltipProviderContext(TRIGGER_NAME$3,i),d=usePopperScope$2(i),h=reactExports.useRef(null),g=useComposedRefs(s,h,a.onTriggerChange),b=reactExports.useRef(!1),_=reactExports.useRef(!1),_e=reactExports.useCallback(()=>b.current=!1,[]);return reactExports.useEffect(()=>()=>document.removeEventListener("pointerup",_e),[_e]),jsxRuntimeExports.jsx(Anchor,{asChild:!0,...d,children:jsxRuntimeExports.jsx(Primitive.button,{"aria-describedby":a.open?a.contentId:void 0,"data-state":a.stateAttribute,...o,ref:g,onPointerMove:composeEventHandlers(e.onPointerMove,$=>{$.pointerType!=="touch"&&!_.current&&!c.isPointerInTransitRef.current&&(a.onTriggerEnter(),_.current=!0)}),onPointerLeave:composeEventHandlers(e.onPointerLeave,()=>{a.onTriggerLeave(),_.current=!1}),onPointerDown:composeEventHandlers(e.onPointerDown,()=>{a.open&&a.onClose(),b.current=!0,document.addEventListener("pointerup",_e,{once:!0})}),onFocus:composeEventHandlers(e.onFocus,()=>{b.current||a.onOpen()}),onBlur:composeEventHandlers(e.onBlur,a.onClose),onClick:composeEventHandlers(e.onClick,a.onClose)})})});TooltipTrigger$1.displayName=TRIGGER_NAME$3;var PORTAL_NAME$4="TooltipPortal",[PortalProvider$3,usePortalContext$3]=createTooltipContext(PORTAL_NAME$4,{forceMount:void 0}),CONTENT_NAME$4="TooltipContent",TooltipContent$1=reactExports.forwardRef((e,s)=>{const i=usePortalContext$3(CONTENT_NAME$4,e.__scopeTooltip),{forceMount:o=i.forceMount,side:a="top",...c}=e,d=useTooltipContext(CONTENT_NAME$4,e.__scopeTooltip);return jsxRuntimeExports.jsx(Presence,{present:o||d.open,children:d.disableHoverableContent?jsxRuntimeExports.jsx(TooltipContentImpl,{side:a,...c,ref:s}):jsxRuntimeExports.jsx(TooltipContentHoverable,{side:a,...c,ref:s})})}),TooltipContentHoverable=reactExports.forwardRef((e,s)=>{const i=useTooltipContext(CONTENT_NAME$4,e.__scopeTooltip),o=useTooltipProviderContext(CONTENT_NAME$4,e.__scopeTooltip),a=reactExports.useRef(null),c=useComposedRefs(s,a),[d,h]=reactExports.useState(null),{trigger:g,onClose:b}=i,_=a.current,{onPointerInTransitChange:_e}=o,$=reactExports.useCallback(()=>{h(null),_e(!1)},[_e]),et=reactExports.useCallback((it,rt)=>{const lt=it.currentTarget,st={x:it.clientX,y:it.clientY},ot=getExitSideFromRect(st,lt.getBoundingClientRect()),nt=getPaddedExitPoints(st,ot),at=getPointsFromRect(rt.getBoundingClientRect()),ct=getHull([...nt,...at]);h(ct),_e(!0)},[_e]);return reactExports.useEffect(()=>()=>$(),[$]),reactExports.useEffect(()=>{if(g&&_){const it=lt=>et(lt,_),rt=lt=>et(lt,g);return g.addEventListener("pointerleave",it),_.addEventListener("pointerleave",rt),()=>{g.removeEventListener("pointerleave",it),_.removeEventListener("pointerleave",rt)}}},[g,_,et,$]),reactExports.useEffect(()=>{if(d){const it=rt=>{const lt=rt.target,st={x:rt.clientX,y:rt.clientY},ot=(g==null?void 0:g.contains(lt))||(_==null?void 0:_.contains(lt)),nt=!isPointInPolygon$1(st,d);ot?$():nt&&($(),b())};return document.addEventListener("pointermove",it),()=>document.removeEventListener("pointermove",it)}},[g,_,d,b,$]),jsxRuntimeExports.jsx(TooltipContentImpl,{...e,ref:c})}),[VisuallyHiddenContentContextProvider,useVisuallyHiddenContentContext]=createTooltipContext(TOOLTIP_NAME,{isInside:!1}),Slottable=createSlottable("TooltipContent"),TooltipContentImpl=reactExports.forwardRef((e,s)=>{const{__scopeTooltip:i,children:o,"aria-label":a,onEscapeKeyDown:c,onPointerDownOutside:d,...h}=e,g=useTooltipContext(CONTENT_NAME$4,i),b=usePopperScope$2(i),{onClose:_}=g;return reactExports.useEffect(()=>(document.addEventListener(TOOLTIP_OPEN,_),()=>document.removeEventListener(TOOLTIP_OPEN,_)),[_]),reactExports.useEffect(()=>{if(g.trigger){const _e=$=>{const et=$.target;et!=null&&et.contains(g.trigger)&&_()};return window.addEventListener("scroll",_e,{capture:!0}),()=>window.removeEventListener("scroll",_e,{capture:!0})}},[g.trigger,_]),jsxRuntimeExports.jsx(DismissableLayer,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:c,onPointerDownOutside:d,onFocusOutside:_e=>_e.preventDefault(),onDismiss:_,children:jsxRuntimeExports.jsxs(Content$1,{"data-state":g.
382stateAttribute,...b,...h,ref:s,style:{...h.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[jsxRuntimeExports.jsx(Slottable,{children:o}),jsxRuntimeExports.jsx(VisuallyHiddenContentContextProvider,{scope:i,isInside:!0,children:jsxRuntimeExports.jsx(Root$6,{id:g.contentId,role:"tooltip",children:a||o})})]})})});TooltipContent$1.displayName=CONTENT_NAME$4;var ARROW_NAME$3="TooltipArrow",TooltipArrow=reactExports.forwardRef((e,s)=>{const{__scopeTooltip:i,...o}=e,a=usePopperScope$2(i);return useVisuallyHiddenContentContext(ARROW_NAME$3,i).isInside?null:jsxRuntimeExports.jsx(Arrow,{...a,...o,ref:s})});TooltipArrow.displayName=ARROW_NAME$3;function getExitSideFromRect(e,s){const i=Math.abs(s.top-e.y),o=Math.abs(s.bottom-e.y),a=Math.abs(s.right-e.x),c=Math.abs(s.left-e.x);switch(Math.min(i,o,a,c)){case c:return"left";case a:return"right";case i:return"top";case o:return"bottom";default:throw new Error("unreachable")}}function getPaddedExitPoints(e,s,i=5){const o=[];switch(s){case"top":o.push({x:e.x-i,y:e.y+i},{x:e.x+i,y:e.y+i});break;case"bottom":o.push({x:e.x-i,y:e.y-i},{x:e.x+i,y:e.y-i});break;case"left":o.push({x:e.x+i,y:e.y-i},{x:e.x+i,y:e.y+i});break;case"right":o.push({x:e.x-i,y:e.y-i},{x:e.x-i,y:e.y+i});break}return o}function getPointsFromRect(e){const{top:s,right:i,bottom:o,left:a}=e;return[{x:a,y:s},{x:i,y:s},{x:i,y:o},{x:a,y:o}]}function isPointInPolygon$1(e,s){const{x:i,y:o}=e;let a=!1;for(let c=0,d=s.length-1;c<s.length;d=c++){const h=s[c],g=s[d],b=h.x,_=h.y,_e=g.x,$=g.y;_>o!=$>o&&i<(_e-b)*(o-_)/($-_)+b&&(a=!a)}return a}function getHull(e){const s=e.slice();return s.sort((i,o)=>i.x<o.x?-1:i.x>o.x?1:i.y<o.y?-1:i.y>o.y?1:0),getHullPresorted(s)}function getHullPresorted(e){if(e.length<=1)return e.slice();const s=[];for(let o=0;o<e.length;o++){const a=e[o];for(;s.length>=2;){const c=s[s.length-1],d=s[s.length-2];if((c.x-d.x)*(a.y-d.y)>=(c.y-d.y)*(a.x-d.x))s.pop();else break}s.push(a)}s.pop();const i=[];for(let o=e.length-1;o>=0;o--){const a=e[o];for(;i.length>=2;){const c=i[i.length-1],d=i[i.length-2];if((c.x-d.x)*(a.y-d.y)>=(c.y-d.y)*(a.x-d.x))i.pop();else break}i.push(a)}return i.pop(),s.length===1&&i.length===1&&s[0].x===i[0].x&&s[0].y===i[0].y?s:s.concat(i)}var Provider=TooltipProvider$1,Root3$1=Tooltip$1,Trigger$3=TooltipTrigger$1,Content2$3=TooltipContent$1;const TooltipProvider=Provider,Tooltip=Root3$1,TooltipTrigger=Trigger$3,TooltipContent=reactExports.forwardRef(({className:e,sideOffset:s=4,...i},o)=>jsxRuntimeExports.jsx(Content2$3,{ref:o,sideOffset:s,className:cn("z-50 overflow-hidden rounded-md border bg-popover px-3 py-1.5 text-sm text-popover-foreground shadow-md animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...i}));TooltipContent.displayName=Content2$3.displayName;var Subscribable=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},isServer=typeof window>"u"||"Deno"in globalThis;function noop$3(){}function functionalUpdate(e,s){return typeof e=="function"?e(s):e}function isValidTimeout(e){return typeof e=="number"&&e>=0&&e!==1/0}function timeUntilStale(e,s){return Math.max(e+(s||0)-Date.now(),0)}function resolveStaleTime(e,s){return typeof e=="function"?e(s):e}function resolveEnabled(e,s){return typeof e=="function"?e(s):e}function matchQuery(e,s){const{type:i="all",exact:o,fetchStatus:a,predicate:c,queryKey:d,stale:h}=e;if(d){if(o){if(s.queryHash!==hashQueryKeyByOptions(d,s.options))return!1}else if(!partialMatchKey(s.queryKey,d))return!1}if(i!=="all"){const g=s.isActive();if(i==="active"&&!g||i==="inactive"&&g)return!1}return!(typeof h=="boolean"&&s.isStale()!==h||a&&a!==s.state.fetchStatus||c&&!c(s))}function matchMutation(e,s){const{exact:i,status:o,predicate:a,mutationKey:c}=e;if(c){if(!s.options.mutationKey)return!1;if(i){if(hashKey(s.options.mutationKey)!==hashKey(c))return!1}else if(!partialMatchKey(s.options.mutationKey,c))return!1}return!(o&&s.state.status!==o||a&&!a(s))}function hashQueryKeyByOptions(e,s){return((s==null?void 0:s.queryKeyHashFn)||hashKey)(e)}function hashKey(e){return JSON.stringify(e,(s,i)=>isPlainObject$2(i)?Object.keys(i).sort().reduce((o,a)=>(o[a]=i[a],o),{}):i)}function partialMatchKey(e,s){return e===s?!0:typeof e!=typeof s?!1:e&&s&&typeof e=="object"&&typeof s=="object"?Object.keys(s).every(i=>partialMatchKey(e[i],s[i])):!1}function replaceEqualDeep(e,s){if(e===s)return e;const i=isPlainArray(e)&&isPlainArray(s);if(i||isPlainObject$2(e)&&isPlainObject$2(s)){const o=i?e:Object.keys(e),a=o.length,c=i?s:Object.keys(s),d=c.length,h=i?[]:{},g=new Set(o);let b=0;for(let _=0;_<d;_++){const _e=i?_:c[_];(!i&&g.has(_e)||i)&&e[_e]===void 0&&s[_e]===void 0?(h[_e]=void 0,b++):(h[_e]=replaceEqualDeep(e[_e],s[_e]),h[_e]===e[_e]&&e[_e]!==void 0&&b++)}return a===d&&b===a?e:h}return s}function isPlainArray(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function isPlainObject$2(e){if(!hasObjectPrototype(e))return!1;const s=e.constructor;if(s===void 0)return!0;const i=s.prototype;return!(!hasObjectPrototype(i)||!i.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function hasObjectPrototype(e){return Object.prototype.toString.call(e)==="[object Object]"}function sleep$1(e){return new Promise(s=>{setTimeout(s,e)})}function replaceData(e,s,i){return typeof i.structuralSharing=="function"?i.structuralSharing(e,s):i.structuralSharing!==!1?replaceEqualDeep(e,s):s}function addToEnd(e,s,i=0){const o=[...e,s];return i&&o.length>i?o.slice(1):o}function addToStart(e,s,i=0){const o=[s,...e];return i&&o.length>i?o.slice(0,-1):o}var skipToken=Symbol();function ensureQueryFn(e,s){return!e.queryFn&&(s!=null&&s.initialPromise)?()=>s.initialPromise:!e.queryFn||e.queryFn===skipToken?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}var Yr,Hr,nn,Sn,FocusManager=(Sn=class extends Subscribable{constructor(){super();Zt(this,Yr);Zt(this,Hr);Zt(this,nn);Xt(this,nn,s=>
382{if(!isServer&&window.addEventListener){const i=()=>s();return window.addEventListener("visibilitychange",i,!1),()=>{window.removeEventListener("visibilitychange",i)}}})}onSubscribe(){Dt(this,Hr)||this.setEventListener(Dt(this,nn))}onUnsubscribe(){var s;this.hasListeners()||((s=Dt(this,Hr))==null||s.call(this),Xt(this,Hr,void 0))}setEventListener(s){var i;Xt(this,nn,s),(i=Dt(this,Hr))==null||i.call(this),Xt(this,Hr,s(o=>{typeof o=="boolean"?this.setFocused(o):this.onFocus()}))}setFocused(s){Dt(this,Yr)!==s&&(Xt(this,Yr,s),this.onFocus())}onFocus(){const s=this.isFocused();this.listeners.forEach(i=>{i(s)})}isFocused(){var s;return typeof Dt(this,Yr)=="boolean"?Dt(this,Yr):((s=globalThis.document)==null?void 0:s.visibilityState)!=="hidden"}},Yr=new WeakMap,Hr=new WeakMap,nn=new WeakMap,Sn),focusManager=new FocusManager,sn,zr,on,_n,OnlineManager=(_n=class extends Subscribable{constructor(){super();Zt(this,sn,!0);Zt(this,zr);Zt(this,on);Xt(this,on,s=>{if(!isServer&&window.addEventListener){const i=()=>s(!0),o=()=>s(!1);return window.addEventListener("online",i,!1),window.addEventListener("offline",o,!1),()=>{window.removeEventListener("online",i),window.removeEventListener("offline",o)}}})}onSubscribe(){Dt(this,zr)||this.setEventListener(Dt(this,on))}onUnsubscribe(){var s;this.hasListeners()||((s=Dt(this,zr))==null||s.call(this),Xt(this,zr,void 0))}setEventListener(s){var i;Xt(this,on,s),(i=Dt(this,zr))==null||i.call(this),Xt(this,zr,s(this.setOnline.bind(this)))}setOnline(s){Dt(this,sn)!==s&&(Xt(this,sn,s),this.listeners.forEach(o=>{o(s)}))}isOnline(){return Dt(this,sn)}},sn=new WeakMap,zr=new WeakMap,on=new WeakMap,_n),onlineManager=new OnlineManager;function pendingThenable(){let e,s;const i=new Promise((a,c)=>{e=a,s=c});i.status="pending",i.catch(()=>{});function o(a){Object.assign(i,a),delete i.resolve,delete i.reject}return i.resolve=a=>{o({status:"fulfilled",value:a}),e(a)},i.reject=a=>{o({status:"rejected",reason:a}),s(a)},i}function defaultRetryDelay(e){return Math.min(1e3*2**e,3e4)}function canFetch(e){return(e??"online")==="online"?onlineManager.isOnline():!0}var CancelledError=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function isCancelledError(e){return e instanceof CancelledError}function createRetryer(e){let s=!1,i=0,o=!1,a;const c=pendingThenable(),d=rt=>{var lt;o||($(new CancelledError(rt)),(lt=e.abort)==null||lt.call(e))},h=()=>{s=!0},g=()=>{s=!1},b=()=>focusManager.isFocused()&&(e.networkMode==="always"||onlineManager.isOnline())&&e.canRun(),_=()=>canFetch(e.networkMode)&&e.canRun(),_e=rt=>{var lt;o||(o=!0,(lt=e.onSuccess)==null||lt.call(e,rt),a==null||a(),c.resolve(rt))},$=rt=>{var lt;o||(o=!0,(lt=e.onError)==null||lt.call(e,rt),a==null||a(),c.reject(rt))},et=()=>new Promise(rt=>{var lt;a=st=>{(o||b())&&rt(st)},(lt=e.onPause)==null||lt.call(e)}).then(()=>{var rt;a=void 0,o||(rt=e.onContinue)==null||rt.call(e)}),it=()=>{if(o)return;let rt;const lt=i===0?e.initialPromise:void 0;try{rt=lt??e.fn()}catch(st){rt=Promise.reject(st)}Promise.resolve(rt).then(_e).catch(st=>{var dt;if(o)return;const ot=e.retry??(isServer?0:3),nt=e.retryDelay??defaultRetryDelay,at=typeof nt=="function"?nt(i,st):nt,ct=ot===!0||typeof ot=="number"&&i<ot||typeof ot=="function"&&ot(i,st);if(s||!ct){$(st);return}i++,(dt=e.onFail)==null||dt.call(e,i,st),sleep$1(at).then(()=>b()?void 0:et()).then(()=>{s?$(st):it()})})};return{promise:c,cancel:d,continue:()=>(a==null||a(),c),cancelRetry:h,continueRetry:g,canStart:_,start:()=>(_()?it():et().then(it),c)}}var defaultScheduler=e=>setTimeout(e,0);function createNotifyManager(){let e=[],s=0,i=h=>{h()},o=h=>{h()},a=defaultScheduler;const c=h=>{s?e.push(h):a(()=>{i(h)})},d=()=>{const h=e;e=[],h.length&&a(()=>{o(()=>{h.forEach(g=>{i(g)})})})};return{batch:h=>{let g;s++;try{g=h()}finally{s--,s||d()}return g},batchCalls:h=>(...g)=>{c(()=>{h(...g)})},schedule:c,setNotifyFunction:h=>{i=h},setBatchNotifyFunction:h=>{o=h},setScheduler:h=>{a=h}}}var notifyManager=createNotifyManager(),Qr,Cn,Removable=(Cn=class{constructor(){Zt(this,Qr)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),isValidTimeout(this.gcTime)&&Xt(this,Qr,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(isServer?1/0:5*60*1e3))}clearGcTimeout(){Dt(this,Qr)&&(clearTimeout(Dt(this,Qr)),Xt(this,Qr,void 0))}},Qr=new WeakMap,Cn),an,Xr,Sr,Jr,pr,pn,Zr,kr,Or,Tn,Query=(Tn=class extends Removable{constructor(s){super();Zt(this,kr);Zt(this,an);Zt(this,Xr);Zt(this,Sr);Zt(this,Jr);Zt(this,pr);Zt(this,pn);Zt(this,Zr);Xt(this,Zr,!1),Xt(this,pn,s.defaultOptions),this.setOptions(s.options),this.observers=[],Xt(this,Jr,s.client),Xt(this,Sr,Dt(this,Jr).getQueryCache()),this.queryKey=s.queryKey,this.queryHash=s.queryHash,Xt(this,an,getDefaultState$1(this.options)),this.state=s.state??Dt(this,an),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var s;return(s=Dt(this,pr))==null?void 0:s.promise}setOptions(s){this.options={...Dt(this,pn),...s},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&Dt(this,Sr).remove(this)}setData(s,i){const o=replaceData(this.state.data,s,this.options);return hr(this,kr,Or).call(this,{data:o,type:"success",dataUpdatedAt:i==null?void 0:i.updatedAt,manual:i==null?void 0:i.manual}),o}setState(s,i){hr(this,kr,Or).call(this,{type:"setState",state:s,setStateOptions:i})}cancel(s){var o,a;const i=(o=Dt(this,pr))==null?void 0:o.promise;
382return(a=Dt(this,pr))==null||a.cancel(s),i?i.then(noop$3).catch(noop$3):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(Dt(this,an))}isActive(){return this.observers.some(s=>resolveEnabled(s.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===skipToken||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(s=>resolveStaleTime(s.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(s=>s.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(s=0){return this.state.data===void 0?!0:s==="static"?!1:this.state.isInvalidated?!0:!timeUntilStale(this.state.dataUpdatedAt,s)}onFocus(){var i;const s=this.observers.find(o=>o.shouldFetchOnWindowFocus());s==null||s.refetch({cancelRefetch:!1}),(i=Dt(this,pr))==null||i.continue()}onOnline(){var i;const s=this.observers.find(o=>o.shouldFetchOnReconnect());s==null||s.refetch({cancelRefetch:!1}),(i=Dt(this,pr))==null||i.continue()}addObserver(s){this.observers.includes(s)||(this.observers.push(s),this.clearGcTimeout(),Dt(this,Sr).notify({type:"observerAdded",query:this,observer:s}))}removeObserver(s){this.observers.includes(s)&&(this.observers=this.observers.filter(i=>i!==s),this.observers.length||(Dt(this,pr)&&(Dt(this,Zr)?Dt(this,pr).cancel({revert:!0}
382):Dt(this,pr).cancelRetry()),this.scheduleGc()),Dt(this,Sr).notify({type:"observerRemoved",query:this,observer:s}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||hr(this,kr,Or).call(this,{type:"invalidate"})}fetch(s,i){var b,_,_e;if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&(i!=null&&i.cancelRefetch))this.cancel({silent:!0});else if(Dt(this,pr))return Dt(this,pr).continueRetry(),Dt(this,pr).promise}if(s&&this.setOptions(s),!this.options.queryFn){const $=this.observers.find(et=>et.options.queryFn);$&&this.setOptions($.options)}const o=new AbortController,a=$=>{Object.defineProperty($,"signal",{enumerable:!0,get:()=>(Xt(this,Zr,!0),o.signal)})},c=()=>{const $=ensureQueryFn(this.options,i),it=(()=>{const rt={client:Dt(this,Jr),queryKey:this.queryKey,meta:this.meta};return a(rt),rt})();return Xt(this,Zr,!1),this.options.persister?this.options.persister($,it,this):$(it)},h=(()=>{const $={fetchOptions:i,options:this.options,queryKey:this.queryKey,client:Dt(this,Jr),state:this.state,fetchFn:c};return a($),$})();(b=this.options.behavior)==null||b.onFetch(h,this),Xt(this,Xr,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((_=h.fetchOptions)==null?void 0:_.meta))&&hr(this,kr,Or).call(this,{type:"fetch",meta:(_e=h.fetchOptions)==null?void 0:_e.meta});const g=$=>{var et,it,rt,lt;isCancelledError($)&&$.silent||hr(this,kr,Or).call(this,{type:"error",error:$}),isCancelledError($)||((it=(et=Dt(this,Sr).config).onError)==null||it.call(et,$,this),(lt=(rt=Dt(this,Sr).config).onSettled)==null||lt.call(rt,this.state.data,$,this)),this.scheduleGc()};return Xt(this,pr,createRetryer({initialPromise:i==null?void 0:i.initialPromise,fn:h.fetchFn,abort:o.abort.bind(o),onSuccess:$=>{var et,it,rt,lt;if($===void 0){g(new Error(`${this.queryHash} data is undefined`));return}try{this.setData($)}catch(st){g(st);return}(it=(et=Dt(this,Sr).config).onSuccess)==null||it.call(et,$,this),(lt=(rt=Dt(this,Sr).config).onSettled)==null||lt.call(rt,$,this.state.error,this),this.scheduleGc()},onError:g,onFail:($,et)=>{hr(this,kr,Or).call(this,{type:"failed",failureCount:$,error:et})},onPause:()=>{hr(this,kr,Or).call(this,{type:"pause"})},onContinue:()=>{hr(this,kr,Or).call(this,{type:"continue"})},retry:h.options.retry,retryDelay:h.options.retryDelay,networkMode:h.options.networkMode,canRun:()=>!0})),Dt(this,pr).start()}},an=new WeakMap,Xr=new WeakMap,Sr=new WeakMap,Jr=new WeakMap,pr=new WeakMap,pn=new WeakMap,Zr=new WeakMap,kr=new WeakSet,Or=function(s){const i=o=>{switch(s.type){case"failed":return{...o,fetchFailureCount:s.failureCount,fetchFailureReason:s.error};case"pause":return{...o,fetchStatus:"paused"};case"continue":return{...o,fetchStatus:"fetching"};case"fetch":return{...o,...fetchState(o.data,this.options),fetchMeta:s.meta??null};case"success":return Xt(this,Xr,void 0),{...o,data:s.data,dataUpdateCount:o.dataUpdateCount+1,dataUpdatedAt:s.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!s.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const a=s.error;return isCancelledError(a)&&a.revert&&Dt(this,Xr)?{...Dt(this,Xr),fetchStatus:"idle"}:{...o,error:a,errorUpdateCount:o.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:o.fetchFailureCount+1,fetchFailureReason:a,fetchStatus:"idle",status:"error"};case"invalidate":return{...o,isInvalidated:!0};case"setState":return{...o,...s.state}}};this.state=i(this.state),notifyManager.batch(()=>{this.observers.forEach(o=>{o.onQueryUpdate()}),Dt(this,Sr).notify({query:this,type:"updated",action:s})})},Tn);function fetchState(e,s){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:canFetch(s.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function getDefaultState$1(e){const s=typeof e.initialData=="function"?e.initialData():e.initialData,i=s!==void 0,o=i?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:s,dataUpdateCount:0,dataUpdatedAt:i?o??Date.now():0,error:null,errorUpdate
382Count:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:i?"success":"pending",fetchStatus:"idle"}}var Rr,kn,QueryCache=(kn=class extends Subscribable{constructor(s={}){super();Zt(this,Rr);this.config=s,Xt(this,Rr,new Map)}build(s,i,o){const a=i.queryKey,c=i.queryHash??hashQueryKeyByOptions(a,i);let d=this.get(c);return d||(d=new Query({client:s,queryKey:a,queryHash:c,options:s.defaultQueryOptions(i),state:o,defaultOptions:s.getQueryDefaults(a)}),this.add(d)),d}add(s){Dt(this,Rr).has(s.queryHash)||(Dt(this,Rr).set(s.queryHash,s),this.notify({type:"added",query:s}))}remove(s){const i=Dt(this,Rr).get(s.queryHash);i&&(s.destroy(),i===s&&Dt(this,Rr).delete(s.queryHash),this.notify({type:"removed",query:s}))}clear(){notifyManager.batch(()=>{this.getAll().forEach(s=>{this.remove(s)})})}get(s){return Dt(this,Rr).get(s)}getAll(){return[...Dt(this,Rr).values()]}find(s){const i={exact:!0,...s};return this.getAll().find(o=>matchQuery(i,o))}findAll(s={}){const i=this.getAll();return Object.keys(s).length>0?i.filter(o=>matchQuery(s,o)):i}notify(s){notifyManager.batch(()=>{this.listeners.forEach(i=>{i(s)})})}onFocus(){notifyManager.batch(()=>{this.getAll().forEach(s=>{s.onFocus()})})}onOnline(){notifyManager.batch(()=>{this.getAll().forEach(s=>{s.onOnline()})})}},Rr=new WeakMap,kn),Ar,vr,tn,jr,Ur,Pn,Mutation=(Pn=class extends Removable{constructor(s){super();Zt(this,jr);Zt(this,Ar);Zt(this,vr);Zt(this,tn);this.mutationId=s.mutationId,Xt(this,vr,s.mutationCache),Xt(this,Ar,[]),this.state=s.state||getDefaultState(),this.setOptions(s.options),this.scheduleGc()}setOptions(s){this.options=s,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(s){Dt(this,Ar).includes(s)||(Dt(this,Ar).push(s),this.clearGcTimeout(),Dt(this,vr).notify({type:"observerAdded",mutation:this,observer:s}))}removeObserver(s){Xt(this,Ar,Dt(this,Ar).filter(i=>i!==s)),this.scheduleGc(),Dt(this,vr).notify({type:"observerRemoved",mutation:this,observer:s})}optionalRemove(){Dt(this,Ar).length||(this.state.status==="pending"?this.scheduleGc():Dt(this,vr).remove(this))}continue(){var s;return((s=Dt(this,tn))==null?void 0:s.continue())??this.execute(this.state.variables)}async execute(s){var c,d,h,g,b,_,_e,$,et,it,rt,lt,st,ot,nt,at,ct,dt,pt,mt;const i=()=>{hr(this,jr,Ur).call(this,{type:"continue"})};Xt(this,tn,createRetryer({fn:()=>this.options.mutationFn?this.options.mutationFn(s):Promise.reject(new Error("No mutationFn found")),onFail:(St,Pt)=>{hr(this,jr,Ur).call(this,{type:"failed",failureCount:St,error:Pt})},onPause:()=>{hr(this,jr,Ur).call(this,{type:"pause"})},onContinue:i,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>Dt(this,vr).canRun(this)}));const o=this.state.status==="pending",a=!Dt(this,tn).canStart();try{if(o)i();else{hr(this,jr,Ur).call(this,{type:"pending",variables:s,isPaused:a}),await((d=(c=Dt(this,vr).config).onMutate)==null?void 0:d.call(c,s,this));const Pt=await((g=(h=this.options).onMutate)==null?void 0:g.call(h,s));Pt!==this.state.context&&hr(this,jr,Ur).call(this,{type:"pending",context:Pt,variables:s,isPaused:a})}const St=await Dt(this,tn).start();return await((_=(b=Dt(this,vr).config).onSuccess)==null?void 0:_.call(b,St,s,this.state.context,this)),await(($=(_e=this.options).onSuccess)==null?void 0:$.call(_e,St,s,this.state.context)),await((it=(et=Dt(this,vr).config).onSettled)==null?void 0:it.call(et,St,null,this.state.variables,this.state.context,this)),await((lt=(rt=this.options).onSettled)==null?void 0:lt.call(rt,St,null,s,this.state.context)),hr(this,jr,Ur).call(this,{type:"success",data:St}),St}catch(St){try{throw await((ot=(st=Dt(this,vr).config).onError)==null?void 0:ot.call(st,St,s,this.state.context,this)),await((at=(nt=this.options).onError)==null?void 0:at.call(nt,St,s,this.state.context)),await((dt=(ct=Dt(this,vr).config).onSettled)==null?void 0:dt.call(ct,void 0,St,this.state.variables,this.state.context,this)),await((mt=(pt=this.options).onSettled)==null?void 0:mt.call(pt,void 0,St,s,this.state.context)),St}finally{hr(this,jr,Ur).call(this,{type:"error",error:St})}}finally{Dt(this,vr).runNext(this)}}},Ar=new WeakMap,vr=new WeakMap,tn=new WeakMap,jr=new WeakSet,Ur=function(s){const i=o=>{switch(s.type){case"failed":return{...o,failureCount:s.failureCount,failureReason:s.error};case"pause":return{...o,isPaused:!0};case"continue":return{...o,isPaused:!1};
382case"pending":return{...o,context:s.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:s.isPaused,status:"pending",variables:s.variables,submittedAt:Date.now()};case"success":return{...o,data:s.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...o,data:void 0,error:s.error,failureCount:o.failureCount+1,failureReason:s.error,isPaused:!1,status:"error"}}};this.state=i(this.state),notifyManager.batch(()=>{Dt(this,Ar).forEach(o=>{o.onMutationUpdate(s)}),Dt(this,vr).notify({mutation:this,type:"updated",action:s})})},Pn);function getDefaultState(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var Lr,Pr,fn,Rn,MutationCache=(Rn=class extends Subscribable{constructor(s={}){super();Zt(this,Lr);Zt(this,Pr);Zt(this,fn);this.config=s,Xt(this,Lr,new Set),Xt(this,Pr,new Map),Xt(this,fn,0)}build(s,i,o){const a=new Mutation({mutationCache:this,mutationId:++mn(this,fn)._,options:s.defaultMutationOptions(i),state:o});return this.add(a),a}add(s){Dt(this,Lr).add(s);const i=scopeFor(s);if(typeof i=="string"){const o=Dt(this,Pr).get(i);o?o.push(s):Dt(this,Pr).set(i,[s])}this.notify({type:"added",mutation:s})}remove(s){if(Dt(this,Lr).delete(s)){const i=scopeFor(s);if(typeof i=="string"){const o=Dt(this,Pr).get(i);if(o)if(o.length>1){const a=o.indexOf(s);a!==-1&&o.splice(a,1)}else o[0]===s&&Dt(this,Pr).delete(i)}}this.notify({type:"removed",mutation:s})}canRun(s){const i=scopeFor(s);if(typeof i=="string"){const o=Dt(this,Pr).get(i),a=o==null?void 0:o.find(c=>c.state.status==="pending");return!a||a===s}else return!0}runNext(s){var o;const i=scopeFor(s);if(typeof i=="string"){const a=(o=Dt(this,Pr).get(i))==null?void 0:o.find(c=>c!==s&&c.state.isPaused);return(a==null?void 0:a.continue())??Promise.resolve()}else return Promise.resolve()}clear(){notifyManager.batch(()=>{Dt(this,Lr).forEach(s=>{this.notify({type:"removed",mutation:s})}),Dt(this,Lr).clear(),Dt(this,Pr).clear()})}getAll(){return Array.from(Dt(this,Lr))}find(s){const i={exact:!0,...s};return this.getAll().find(o=>matchMutation(i,o))}findAll(s={}){return this.getAll().filter(i=>matchMutation(s,i))}notify(s){notifyManager.batch(()=>{this.listeners.forEach(i=>{i(s)})})}resumePausedMutations(){const s=this.getAll().filter(i=>i.state.isPaused);return notifyManager.batch(()=>Promise.all(s.map(i=>i.continue().catch(noop$3))))}},Lr=new WeakMap,Pr=new WeakMap,fn=new WeakMap,Rn);function scopeFor(e){var s;return(s=e.options.scope)==null?void 0:s.id}function infiniteQueryBehavior(e){return{onFetch:(s,i)=>{var _,_e,$,et,it;const o=s.options,a=($=(_e=(_=s.fetchOptions)==null?void 0:_.meta)==null?void 0:_e.fetchMore)==null?void 0:$.direction,c=((et=s.state.data)==null?void 0:et.pages)||[],d=((it=s.state.data)==null?void 0:it.pageParams)||[];let h={pages:[],pageParams:[]},g=0;const b=async()=>{let rt=!1;const lt=nt=>{Object.defineProperty(nt,"signal",{enumerable:!0,get:()=>(s.signal.aborted?rt=!0:s.signal.addEventListener("abort",()=>{rt=!0}),s.signal)})},st=ensureQueryFn(s.options,s.fetchOptions),ot=async(nt,at,ct)=>{if(rt)return Promise.reject();if(at==null&&nt.pages.length)return Promise.resolve(nt);const pt=(()=>{const Mt={client:s.client,queryKey:s.queryKey,pageParam:at,direction:ct?"backward":"forward",meta:s.options.meta};return lt(Mt),Mt})(),mt=await st(pt),{maxPages:St}=s.options,Pt=ct?addToStart:addToEnd;return{pages:Pt(nt.pages,mt,St),pageParams:Pt(nt.pageParams,at,St)}};if(a&&c.length){const nt=a==="backward",at=nt?getPreviousPageParam:getNextPageParam,ct={pages:c,pageParams:d},dt=at(o,ct);h=await ot(ct,dt,nt)}else{const nt=e??c.length;do{const at=g===0?d[0]??o.initialPageParam:getNextPageParam(o,h);if(g>0&&at==null)break;h=await ot(h,at),g++}while(g<nt)}return h};s.options.persister?s.fetchFn=()=>{var rt,lt;return(lt=(rt=s.options).persister)==null?void 0:lt.call(rt,b,{client:s.client,queryKey:s.queryKey,meta:s.options.meta,signal:s.signal},i)}:s.fetchFn=b}}}function getNextPageParam(e,{pages:s,pageParams:i}){const o=s.length-1;return s.length>0?e.getNextPageParam(s[o],s,i[o],i):void 0}function getPreviousPageParam(e,{pages:s,pageParams:i}
382){var o;return s.length>0?(o=e.getPreviousPageParam)==null?void 0:o.call(e,s[0],s,i[0],i):void 0}var or,Gr,Wr,ln,un,qr,dn,hn,An,QueryClient=(An=class{constructor(e={}){Zt(this,or);Zt(this,Gr);Zt(this,Wr);Zt(this,ln);Zt(this,un);Zt(this,qr);Zt(this,dn);Zt(this,hn);Xt(this,or,e.queryCache||new QueryCache),Xt(this,Gr,e.mutationCache||new MutationCache),Xt(this,Wr,e.defaultOptions||{}),Xt(this,ln,new Map),Xt(this,un,new Map),Xt(this,qr,0)}mount(){mn(this,qr)._++,Dt(this,qr)===1&&(Xt(this,dn,focusManager.subscribe(async e=>{e&&(await this.resumePausedMutations(),Dt(this,or).onFocus())})),Xt(this,hn,onlineManager.subscribe(async e=>{e&&(await this.resumePausedMutations(),Dt(this,or).onOnline())})))}unmount(){var e,s;mn(this,qr)._--,Dt(this,qr)===0&&((e=Dt(this,dn))==null||e.call(this),Xt(this,dn,void 0),(s=Dt(this,hn))==null||s.call(this),Xt(this,hn,void 0))}isFetching(e){return Dt(this,or).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return Dt(this,Gr).findAll({...e,status:"pending"}).length}getQueryData(e){var i;const s=this.defaultQueryOptions({queryKey:e});return(i=Dt(this,or).get(s.queryHash))==null?void 0:i.state.data}ensureQueryData(e){const s=this.defaultQueryOptions(e),i=Dt(this,or).build(this,s),o=i.state.data;return o===void 0?this.fetchQuery(e):(e.revalidateIfStale&&i.isStaleByTime(resolveStaleTime(s.staleTime,i))&&this.prefetchQuery(s),Promise.resolve(o))}getQueriesData(e){return Dt(this,or).findAll(e).map(({queryKey:s,state:i})=>{const o=i.data;return[s,o]})}setQueryData(e,s,i){const o=this.defaultQueryOptions({queryKey:e}),a=Dt(this,or).get(o.queryHash),c=a==null?void 0:a.state.data,d=functionalUpdate(s,c);if(d!==void 0)return Dt(this,or).build(this,o).setData(d,{...i,manual:!0})}setQueriesData(e,s,i){return notifyManager.batch(()=>Dt(this,or).findAll(e).map(({queryKey:o})=>[o,this.setQueryData(o,s,i)]))}getQueryState(e){var i;const s=this.defaultQueryOptions({queryKey:e});return(i=Dt(this,or).get(s.queryHash))==null?void 0:i.state}removeQueries(e){const s=Dt(this,or);notifyManager.batch(()=>{s.findAll(e).forEach(i=>{s.remove(i)})})}resetQueries(e,s){const i=Dt(this,or);return notifyManager.batch(()=>(i.findAll(e).forEach(o=>{o.reset()}),this.refetchQueries({type:"active",...e},s)))}cancelQueries(e,s={}){const i={revert:!0,...s},o=notifyManager.batch(()=>Dt(this,or).findAll(e).map(a=>a.cancel(i)));return Promise.all(o).then(noop$3).catch(noop$3)}invalidateQueries(e,s={}){return notifyManager.batch(()=>(Dt(this,or).findAll(e).forEach(i=>{i.invalidate()}),(e==null?void 0:e.refetchType)==="none"?Promise.resolve():this.refetchQueries({...e,type:(e==null?void 0:e.refetchType)??(e==null?void 0:e.type)??"active"},s)))}refetchQueries(e,s={}){const i={...s,cancelRefetch:s.cancelRefetch??!0},o=notifyManager.batch(()=>Dt(this,or).findAll(e).filter(a=>!a.isDisabled()&&!a.isStatic()).map(a=>{let c=a.fetch(void 0,i);return i.throwOnError||(c=c.catch(noop$3)),a.state.fetchStatus==="paused"?Promise.resolve():c}));return Promise.all(o).then(noop$3)}fetchQuery(e){const s=this.defaultQueryOptions(e);s.retry===void 0&&(s.retry=!1);const i=Dt(this,or).build(this,s);return i.isStaleByTime(resolveStaleTime(s.staleTime,i))?i.fetch(s):Promise.resolve(i.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(noop$3).catch(noop$3)}fetchInfiniteQuery(e){return e.behavior=infiniteQueryBehavior(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(noop$3).catch(noop$3)}ensureInfiniteQueryData(e){return e.behavior=infiniteQueryBehavior(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return onlineManager.isOnline()?Dt(this,Gr).resumePausedMutations():Promise.resolve()}getQueryCache(){return Dt(this,or)}getMutationCache(){return Dt(this,Gr)}getDefaultOptions(){return Dt(this,Wr)}setDefaultOptions(e){Xt(this,Wr,e)}setQueryDefaults(e,s){Dt(this,ln).set(hashKey(e),{queryKey:e,defaultOptions:s})}getQueryDefaults(e){const s=[...Dt(this,ln).values()],i={};return s.forEach(o=>{partialMatchKey(e,o.queryKey)&&Object.assign(i,o.defaultOptions)}),i}setMutationDefaults(e,s){Dt(this,un).set(hashKey(e),{mutationKey:e,defaultOptions:s})}getMutationDefaults(e){const s=[...Dt(this,un).values()],i={};
382return s.forEach(o=>{partialMatchKey(e,o.mutationKey)&&Object.assign(i,o.defaultOptions)}),i}defaultQueryOptions(e){if(e._defaulted)return e;const s={...Dt(this,Wr).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return s.queryHash||(s.queryHash=hashQueryKeyByOptions(s.queryKey,s)),s.refetchOnReconnect===void 0&&(s.refetchOnReconnect=s.networkMode!=="always"),s.throwOnError===void 0&&(s.throwOnError=!!s.suspense),!s.networkMode&&s.persister&&(s.networkMode="offlineFirst"),s.queryFn===skipToken&&(s.enabled=!1),s}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...Dt(this,Wr).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){Dt(this,or).clear(),Dt(this,Gr).clear()}},or=new WeakMap,Gr=new WeakMap,Wr=new WeakMap,ln=new WeakMap,un=new WeakMap,qr=new WeakMap,dn=new WeakMap,hn=new WeakMap,An),QueryClientContext=reactExports.createContext(void 0),QueryClientProvider=({client:e,children:s})=>(reactExports.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),jsxRuntimeExports.jsx(QueryClientContext.Provider,{value:e,children:s}));/** 383 * @remix-run/router v1.23.0 384 * 385 * Copyright (c) Remix Software Inc. 386 * 387 * This source code is licensed under the MIT license found in the 388 * LICENSE.md file in the root directory of this source tree. 389 * 390 * @license MIT 391 */function _extends$2(){return _extends$2=Object.assign?Object.assign.bind():function(e){for(var s=1;s<arguments.length;s++){var i=arguments[s];for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(e[o]=i[o])}return e},_extends$2.apply(this,arguments)}var Action;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(Action||(Action={}));const PopStateEventType="popstate";function createBrowserHistory(e){e===void 0&&(e={});function s(o,a){let{pathname:c,search:d,hash:h}=o.location;return createLocation("",{pathname:c,search:d,hash:h},a.state&&a.state.usr||null,a.state&&a.state.key||"default")}function i(o,a){return typeof a=="string"?a:createPath(a)}return getUrlBasedHistory(s,i,null,e)}function invariant$2(e,s){if(e===!1||e===null||typeof e>"u")throw new Error(s)}function warning(e,s){if(!e){typeof console<"u"&&console.warn(s);try{throw new Error(s)}catch{}}}function createKey(){return Math.random().toString(36).substr(2,8)}function getHistoryState(e,s){return{usr:e.state,key:e.key,idx:s}}function createLocation(e,s,i,o){return i===void 0&&(i=null),_extends$2({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof s=="string"?parsePath(s):s,{state:i,key:s&&s.key||o||createKey()})}function createPath(e){let{pathname:s="/",search:i="",hash:o=""}=e;return i&&i!=="?"&&(s+=i.charAt(0)==="?"?i:"?"+i),o&&o!=="#"&&(s+=o.charAt(0)==="#"?o:"#"+o),s}function parsePath(e){let s={};if(e){let i=e.indexOf("#");i>=0&&(s.hash=e.substr(i),e=e.substr(0,i));let o=e.indexOf("?");o>=0&&(s.search=e.substr(o),e=e.substr(0,o)),e&&(s.pathname=e)}return s}function getUrlBasedHistory(e,s,i,o){o===void 0&&(o={});let{window:a=document.defaultView,v5Compat:c=!1}=o,d=a.history,h=Action.Pop,g=null,b=_();b==null&&(b=0,d.replaceState(_extends$2({},d.state,{idx:b}),""));function _(){return(d.state||{idx:null}).idx}function _e(){h=Action.Pop;let lt=_(),st=lt==null?null:lt-b;b=lt,g&&g({action:h,location:rt.location,delta:st})}function $(lt,st){h=Action.Push;let ot=createLocation(rt.location,lt,st);b=_()+1;let nt=getHistoryState(ot,b),at=rt.createHref(ot);try{d.pushState(nt,"",at)}catch(ct){if(ct instanceof DOMException&&ct.name==="DataCloneError")throw ct;a.location.assign(at)}c&&g&&g({action:h,location:rt.location,delta:1})}function et(lt,st){h=Action.Replace;let ot=createLocation(rt.location,lt,st);b=_();let nt=getHistoryState(ot,b),at=rt.createHref(ot);d.replaceState(nt,"",at),c&&g&&g({action:h,location:rt.location,delta:0})}function it(lt){let st=a.location.origin!=="null"?a.location.origin:a.location.href,ot=typeof lt=="string"?lt:createPath(lt);return ot=ot.replace(/ $/,"%20"),invariant$2(st,"No window.location.(origin|href) available to create URL for href: "+ot),new URL(ot,st)}let rt={get action(){return h},get location(){return e(a,d)},listen(lt){if(g)throw new Error("A history only accepts one active listener");return a.addEventListener(PopStateEventType,_e),g=lt,()=>{a.removeEventListener(PopStateEventType,_e),g=null}},createHref(lt){return s(a,lt)},createURL:it,encodeLocation(lt){let st=it(lt);return{pathname:st.pathname,search:st.search,hash:st.hash}},push:$,replace:et,go(lt){return d.go(lt)}};return rt}var ResultType;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(ResultType||(ResultType={}));function matchRoutes(e,s,i){return i===void 0&&(i="/"),matchRoutesImpl(e,s,i)}function matchRoutesImpl(e,s,i,o){let a=typeof s=="string"?parsePath(s):s,c=stripBasename(a.pathname||"/",i);if(c==null)return null;let d=flattenRoutes(e);rankRouteBranches(d);let h=null;for(let g=0;h==null&&g<d.length;++g){let b=decodePath(c);h=matchRouteBranch(d[g],b)}return h}function flattenRoutes(e,s,i,o){s===void 0&&(s=[]),i===void 0&&(i=[]),o===void 0&&(o="");let a=(c,d,h)=>{let g={relativePath:h===void 0?c.path||"":h,caseSensitive:c.caseSensitive===!0,childrenIndex:d,route:c};g.relativePath.startsWith("/")&&(invariant$2(g.relativePath.startsWith(o),'Absolute route path "'+g.relativePath+'" nested under path '+('"'+o+'" is not val
391id. An absolute child route path ')+"must start with the combined path of all its parent routes."),g.relativePath=g.relativePath.slice(o.length));let b=joinPaths([o,g.relativePath]),_=i.concat(g);c.children&&c.children.length>0&&(invariant$2(c.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+b+'".')),flattenRoutes(c.children,s,_,b)),!(c.path==null&&!c.index)&&s.push({path:b,score:computeScore(b,c.index),routesMeta:_})};return e.forEach((c,d)=>{var h;if(c.path===""||!((h=c.path)!=null&&h.includes("?")))a(c,d);else for(let g of explodeOptionalSegments(c.path))a(c,d,g)}),s}function explodeOptionalSegments(e){let s=e.split("/");if(s.length===0)return[];let[i,...o]=s,a=i.endsWith("?"),c=i.replace(/\?$/,"");if(o.length===0)return a?[c,""]:[c];let d=explodeOptionalSegments(o.join("/")),h=[];return h.push(...d.map(g=>g===""?c:[c,g].join("/"))),a&&h.push(...d),h.map(g=>e.startsWith("/")&&g===""?"/":g)}function rankRouteBranches(e){e.sort((s,i)=>s.score!==i.score?i.score-s.score:compareIndexes(s.routesMeta.map(o=>o.childrenIndex),i.routesMeta.map(o=>o.childrenIndex)))}const paramRe=/^:[\w-]+$/,dynamicSegmentValue=3,indexRouteValue=2,emptySegmentValue=1,staticSegmentValue=10,splatPenalty=-2,isSplat=e=>e==="*";function computeScore(e,s){let i=e.split("/"),o=i.length;return i.some(isSplat)&&(o+=splatPenalty),s&&(o+=indexRouteValue),i.filter(a=>!isSplat(a)).reduce((a,c)=>a+(paramRe.test(c)?dynamicSegmentValue:c===""?emptySegmentValue:staticSegmentValue),o)}function compareIndexes(e,s){return e.length===s.length&&e.slice(0,-1).every((o,a)=>o===s[a])?e[e.length-1]-s[s.length-1]:0}function matchRouteBranch(e,s,i){let{routesMeta:o}=e,a={},c="/",d=[];for(let h=0;h<o.length;++h){let g=o[h],b=h===o.length-1,_=c==="/"?s:s.slice(c.length)||"/",_e=matchPath({path:g.relativePath,caseSensitive:g.caseSensitive,end:b},_),$=g.route;if(!_e)return null;
391Object.assign(a,_e.params),d.push({params:a,pathname:joinPaths([c,_e.pathname]),pathnameBase:normalizePathname(joinPaths([c,_e.pathnameBase])),route:$}),_e.pathnameBase!=="/"&&(c=joinPaths([c,_e.pathnameBase]))}return d}function matchPath(e,s){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[i,o]=compilePath(e.path,e.caseSensitive,e.end),a=s.match(i);if(!a)return null;let c=a[0],d=c.replace(/(.)\/+$/,"$1"),h=a.slice(1);return{params:o.reduce((b,_,_e)=>{let{paramName:$,isOptional:et}=_;if($==="*"){let rt=h[_e]||"";d=c.slice(0,c.length-rt.length).replace(/(.)\/+$/,"$1")}const it=h[_e];return et&&!it?b[$]=void 0:b[$]=(it||"").replace(/%2F/g,"/"),b},{}),pathname:c,pathnameBase:d,pattern:e}}function compilePath(e,s,i){s===void 0&&(s=!1),i===void 0&&(i=!0),warning(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let o=[],a="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(d,h,g)=>(o.push({paramName:h,isOptional:g!=null}),g?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(o.push({paramName:"*"}),a+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):i?a+="\\/*$":e!==""&&e!=="/"&&(a+="(?:(?=\\/|$))"),[new RegExp(a,s?void 0:"i"),o]}function decodePath(e){try{return e.split("/").map(s=>decodeURIComponent(s).replace(/\//g,"%2F")).join("/")}catch(s){return warning(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+s+").")),e}}function stripBasename(e,s){if(s==="/")return e;if(!e.toLowerCase().startsWith(s.toLowerCase()))return null;let i=s.endsWith("/")?s.length-1:s.length,o=e.charAt(i);return o&&o!=="/"?null:e.slice(i)||"/"}function resolvePath(e,s){s===void 0&&(s="/");let{pathname:i,search:o="",hash:a=""}=typeof e=="string"?parsePath(e):e;return{pathname:i?i.startsWith("/")?i:resolvePathname(i,s):s,search:normalizeSearch(o),hash:normalizeHash(a)}}function resolvePathname(e,s){let i=s.replace(/\/+$/,"").split("/");return e.split("/").forEach(a=>{a===".."?i.length>1&&i.pop():a!=="."&&i.push(a)}),i.length>1?i.join("/"):"/"}function getInvalidPathError(e,s,i,o){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+s+"` field ["+JSON.stringify(o)+"]. Please separate it out to the ")+("`to."+i+"` field. Alternatively you may provide the full path as ")+'a string in <Link to="..."> and the router will parse it for you.'}function getPathContributingMatches(e){return e.filter((s,i)=>i===0||s.route.path&&s.route.path.length>0)}function getResolveToMatches(e,s){let i=getPathContributingMatches(e);return s?i.map((o,a)=>a===i.length-1?o.pathname:o.pathnameBase):i.map(o=>o.pathnameBase)}function resolveTo(e,s,i,o){o===void 0&&(o=!1);let a;typeof e=="string"?a=parsePath(e):(a=_extends$2({},e),invariant$2(!a.pathname||!a.pathname.includes("?"),getInvalidPathError("?","pathname","search",a)),invariant$2(!a.pathname||!a.pathname.includes("#"),getInvalidPathError("#","pathname","hash",a)),invariant$2(!a.search||!a.search.includes("#"),getInvalidPathError("#","search","hash",a)));let c=e===""||a.pathname==="",d=c?"/":a.pathname,h;if(d==null)h=i;else{let _e=s.length-1;if(!o&&d.startsWith("..")){let $=d.split("/");for(;$[0]==="..";)$.shift(),_e-=1;a.pathname=$.join("/")}h=_e>=0?s[_e]:"/"}let g=resolvePath(a,h),b=d&&d!=="/"&&d.endsWith("/"),_=(c||d===".")&&i.endsWith("/");return!g.pathname.endsWith("/")&&(b||_)&&(g.pathname+="/"),g}const joinPaths=e=>e.join("/").replace(/\/\/+/g,"/"),normalizePathname=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),normalizeSearch=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,normalizeHash=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function isRouteErrorResponse(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const validMutationMethodsArr=["post","put","patch","delete"];new Set(validMutationMethodsArr);const validRequestMethodsArr=["get",...validMutationMethodsArr];new Set(validRequestMethodsArr);/** 392 * React Router v6.30.1 393 * 394 * Copyright (c) Remix Software Inc. 395 * 396 * This source code is licensed under the MIT license found in the 397 * LICENSE.md file in the root directory of this source tree. 398 * 399 * @license MIT 400 */function _extends$1(){return _extends$1=Object.assign?Object.assign.bind():function(e){for(var s=1;s<arguments.length;s++){var i=arguments[s];for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(e[o]=i[o])}return e},_extends$1.apply(this,arguments)}const DataRouterContext=reactExports.createContext(null),DataRouterStateContext=reactExports.createContext(null),NavigationContext=reactExports.createContext(null),LocationContext=reactExports.createContext(null),RouteContext=reactExports.createContext({outlet:null,matches:[],isDataRoute:!1}),RouteErrorContext=reactExports.createContext(null);function useHref(e,s){let{relative:i}=s===void 0?{}:s;useInRouterContext()||invariant$2(!1);let{basename:o,navigator:a}=reactExports.useContext(NavigationContext),{hash:c,pathname:d,search:h}=useResolvedPath(e,{relative:i}),g=d;return o!=="/"&&(g=d==="/"?o:joinPaths([o,d])),a.createHref({pathname:g,search:h,hash:c})}function useInRouterContext(){return reactExports.useContext(LocationContext)!=null}function useLocation(){return useInRouterContext()||invariant$2(!1),reactExports.useContext(LocationContext).location}function useIsomorphicLayoutEffect$1(e){reactExports.useContext(NavigationContext).static||reactExports.useLayoutEffect(e)}function useNavigate(){let{isDataRoute:e}=reactExports.useContext(RouteContext);return e?useNavigateStable():useNavigateUnstable()}function useNavigateUnstable(){useInRouterContext()||invariant$2(!1);
400let e=reactExports.useContext(DataRouterContext),{basename:s,future:i,navigator:o}=reactExports.useContext(NavigationContext),{matches:a}=reactExports.useContext(RouteContext),{pathname:c}=useLocation(),d=JSON.stringify(getResolveToMatches(a,i.v7_relativeSplatPath)),h=reactExports.useRef(!1);return useIsomorphicLayoutEffect$1(()=>{h.current=!0}),reactExports.useCallback(function(b,_){if(_===void 0&&(_={}),!h.current)return;if(typeof b=="number"){o.go(b);return}let _e=resolveTo(b,JSON.parse(d),c,_.relative==="path");e==null&&s!=="/"&&(_e.pathname=_e.pathname==="/"?s:joinPaths([s,_e.pathname])),(_.replace?o.replace:o.push)(_e,_.state,_)},[s,o,d,c,e])}function useParams(){let{matches:e}=reactExports.useContext(RouteContext),s=e[e.length-1];return s?s.params:{}}function useResolvedPath(e,s){let{relative:i}=s===void 0?{}:s,{future:o}=reactExports.useContext(NavigationContext),{matches:a}=reactExports.useContext(RouteContext),{pathname:c}=useLocation(),d=JSON.stringify(getResolveToMatches(a,o.v7_relativeSplatPath));return reactExports.useMemo(()=>resolveTo(e,JSON.parse(d),c,i==="path"),[e,d,c,i])}function useRoutes(e,s){return useRoutesImpl(e,s)}function useRoutesImpl(e,s,i,o){useInRouterContext()||invariant$2(!1);let{navigator:a}=reactExports.useContext(NavigationContext),{matches:c}=reactExports.useContext(RouteContext),d=c[c.length-1],h=d?d.params:{};d&&d.pathname;let g=d?d.pathnameBase:"/";d&&d.route;let b=useLocation(),_;if(s){var _e;let lt=typeof s=="string"?parsePath(s):s;g==="/"||(_e=lt.pathname)!=null&&_e.startsWith(g)||invariant$2(!1),_=lt}else _=b;let $=_.pathname||"/",et=$;if(g!=="/"){let lt=g.replace(/^\//,"").split("/");et="/"+$.replace(/^\//,"").split("/").slice(lt.length).join("/")}let it=matchRoutes(e,{pathname:et}),rt=_renderMatches(it&&it.map(lt=>Object.assign({},lt,{params:Object.assign({},h,lt.params),pathname:joinPaths([g,a.encodeLocation?a.encodeLocation(lt.pathname).pathname:lt.pathname]),pathnameBase:lt.pathnameBase==="/"?g:joinPaths([g,a.encodeLocation?a.encodeLocation(lt.pathnameBase).pathname:lt.pathnameBase])})),c,i,o);return s&&rt?reactExports.createElement(LocationContext.Provider,{value:{location:_extends$1({pathname:"/",search:"",hash:"",state:null,key:"default"},_),navigationType:Action.Pop}},rt):rt}function DefaultErrorComponent(){let e=useRouteError(),s=isRouteErrorResponse(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),i=e instanceof Error?e.stack:null,a={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return reactExports.createElement(reactExports.Fragment,null,reactExports.createElement("h2",null,"Unexpected Application Error!"),reactExports.createElement("h3",{style:{fontStyle:"italic"}},s),i?reactExports.createElement("pre",{style:a},i):null,null)}const defaultErrorElement=reactExports.createElement(DefaultErrorComponent,null);class RenderErrorBoundary extends reactExports.Component{constructor(s){super(s),this.state={location:s.location,revalidation:s.revalidation,error:s.error}}static getDerivedStateFromError(s){return{error:s}}static getDerivedStateFromProps(s,i){return i.location!==s.location||i.revalidation!=="idle"&&s.revalidation==="idle"?{error:s.error,location:s.location,revalidation:s.revalidation}:{error:s.error!==void 0?s.error:i.error,location:i.location,revalidation:s.revalidation||i.revalidation}}componentDidCatch(s,i){console.error("React Router caught the following error during render",s,i)}render(){return this.state.error!==void 0?reactExports.createElement(RouteContext.Provider,{value:this.props.routeContext},reactExports.createElement(RouteErrorContext.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function RenderedRoute(e){let{routeContext:s,match:i,children:o}=e,a=reactExports.useContext(DataRouterContext);return a&&a.static&&a.staticContext&&(i.route.errorElement||i.route.ErrorBoundary)&&(a.staticContext._deepestRenderedBoundaryId=i.route.id),reactExports.createElement(RouteContext.Provider,{value:s},o)}function _renderMatches(e,s,i,o){var a;if(s===void 0&&(s=[]),i===void 0&&(i=null),o===void 0&&(o=null),e==null){var c;if(!i)return null;if(i.errors)e=i.matches;else if((c=o)!=null&&c.v7_partialHydration&&s.length===0&&!i.initialized&&i.matches.length>0)e=i.matches;else return null}let d=e,h=(a=i)==null?void 0:a.errors;if(h!=null){let _=d.findIndex(_e=>_e.route.id&&(h==null?void 0:h[_e.route.id])!==void 0);_>=0||invariant$2(!1),d=d.slice(0,Math.min(d.length,_+1))}let g=!1,b=-1;if(i&&o&&o.v7_partialHydration)for(let _=0;_<d.length;_++){let _e=d[_];if((_e.route.HydrateFallback||_e.route.hydrateFallbackElement)&&(b=_),_e.route.id){let{loaderData:$,errors:et}=i,it=_e.route.loader&&$[_e.route.id]===void 0&&(!et||et[_e.route.id]===void 0);if(_e.route.lazy||it){g=!0,b>=0?d=d.slice(0,b+1):d=[d[0]];break}}}return d.reduceRight((_,_e,$)=>{let et,it=!1,rt=null,lt=null;i&&(et=h&&_e.route.id?h[_e.route.id]:void 0,rt=_e.route.errorElement||defaultErrorElement,g&&(b<0&&$===0?(warningOnce("route-fallback"),it=!0,lt=null):b===$&&(it=!0,lt=_e.route.hydrateFallbackElement||null)));let st=s.concat(d.slice(0,$+1)),ot=()=>{let nt;return et?nt=rt:it?nt=lt:_e.route.Component?nt=reactExports.createElement(_e.route.Component,null):_e.route.element?nt=_e.route.element:nt=_,reactExports.createElement(RenderedRoute,{match:_e,routeContext:{outlet:_,matches:st,isDataRoute:i!=null},children:nt})};return i&&(_e.route.ErrorBoundary||_e.route.errorElement||$===0)?reactExports.createElement(RenderErrorBoundary,{location:i.location,revalidation:i.revalidation,component:rt,error:et,children:ot(),routeC
400ontext:{outlet:null,matches:st,isDataRoute:!0}}):ot()},null)}var DataRouterHook$1=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(DataRouterHook$1||{}),DataRouterStateHook$1=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(DataRouterStateHook$1||{});function useDataRouterContext(e){let s=reactExports.useContext(DataRouterContext);return s||invariant$2(!1),s}function useDataRouterState(e){let s=reactExports.useContext(DataRouterStateContext);return s||invariant$2(!1),s}function useRouteContext(e){let s=reactExports.useContext(RouteContext);return s||invariant$2(!1),s}function useCurrentRouteId(e){let s=useRouteContext(),i=s.matches[s.matches.length-1];return i.route.id||invariant$2(!1),i.route.id}function useRouteError(){var e;let s=reactExports.useContext(RouteErrorContext),i=useDataRouterState(),o=useCurrentRouteId();return s!==void 0?s:(e=i.errors)==null?void 0:e[o]}function useNavigateStable(){let{router:e}=useDataRouterContext(DataRouterHook$1.UseNavigateStable),s=useCurrentRouteId(DataRouterStateHook$1.UseNavigateStable),i=reactExports.useRef(!1);return useIsomorphicLayoutEffect$1(()=>{i.current=!0}),reactExports.useCallback(function(a,c){c===void 0&&(c={}),i.current&&(typeof a=="number"?e.navigate(a):e.navigate(a,_extends$1({fromRouteId:s},c)))},[e,s])}const alreadyWarned$1={};function warningOnce(e,s,i){alreadyWarned$1[e]||(alreadyWarned$1[e]=!0)}function logV6DeprecationWarnings(e,s){e==null||e.v7_startTransition,e==null||e.v7_relativeSplatPath}function Navigate(e){let{to:s,replace:i,state:o,relative:a}=e;useInRouterContext()||invariant$2(!1);let{future:c,static:d}=reactExports.useContext(NavigationContext),{matches:h}=reactExports.useContext(RouteContext),{pathname:g}=useLocation(),b=useNavigate(),_=resolveTo(s,getResolveToMatches(h,c.v7_relativeSplatPath),g,a==="path"),_e=JSON.stringify(_);return reactExports.useEffect(()=>b(JSON.parse(_e),{replace:i,state:o,relative:a}),[b,_e,a,i,o]),null}function Route(e){invariant$2(!1)}function Router(e){let{basename:s="/",children:i=null,location:o,navigationType:a=Action.Pop,navigator:c,static:d=!1,future:h}=e;useInRouterContext()&&invariant$2(!1);let g=s.replace(/^\/*/,"/"),b=reactExports.useMemo(()=>({basename:g,navigator:c,static:d,future:_extends$1({v7_relativeSplatPath:!1},h)}),[g,h,c,d]);typeof o=="string"&&(o=parsePath(o));let{pathname:_="/",search:_e="",hash:$="",state:et=null,key:it="default"}=o,rt=reactExports.useMemo(()=>{let lt=stripBasename(_,g);return lt==null?null:{location:{pathname:lt,search:_e,hash:$,state:et,key:it},navigationType:a}},[g,_,_e,$,et,it,a]);return rt==null?null:reactExports.createElement(NavigationContext.Provider,{value:b},reactExports.createElement(LocationContext.Provider,{children:i,value:rt}))}function Routes(e){let{children:s,location:i}=e;return useRoutes(createRoutesFromChildren(s),i)}new Promise(()=>{});function createRoutesFromChildren(e,s){s===void 0&&(s=[]);let i=[];return reactExports.Children.forEach(e,(o,a)=>{if(!reactExports.isValidElement(o))return;let c=[...s,a];if(o.type===reactExports.Fragment){i.push.apply(i,createRoutesFromChildren(o.props.children,c));return}o.type!==Route&&invariant$2(!1),!o.props.index||!o.props.children||invariant$2(!1);let d={id:o.props.id||c.join("-"),caseSensitive:o.props.caseSensitive,element:o.props.element,Component:o.props.Component,index:o.props.index,path:o.props.path,loader:o.props.loader,action:o.props.action,errorElement:o.props.errorElement,ErrorBoundary:o.props.ErrorBoundary,hasErrorBoundary:o.props.ErrorBoundary!=null||o.props.errorElement!=null,shouldRevalidate:o.props.shouldRevalidate,handle:o.props.handle,lazy:o.props.lazy};o.props.children&&(d.children=createRoutesFromChildren(o.props.children,c)),i.push(d)}),i}/** 401 * React Router DOM v6.30.1 402 * 403 * Copyright (c) Remix Software Inc. 404 * 405 * This source code is licensed under the MIT license found in the 406 * LICENSE.md file in the root directory of this source tree. 407 * 408 * @license MIT 409 */function _extends(){return _extends=Object.assign?Object.assign.bind():function(e){for(var s=1;s<arguments.length;s++){var i=arguments[s];for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(e[o]=i[o])}return e},_extends.apply(this,arguments)}function _objectWithoutPropertiesLoose$1(e,s){if(e==null)return{};var i={},o=Object.keys(e),a,c;for(c=0;c<o.length;c++)a=o[c],!(s.indexOf(a)>=0)&&(i[a]=e[a]);return i}function isModifiedEvent(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function shouldProcessLinkClick(e,s){return e.button===0&&(!s||s==="_self")&&!isModifiedEvent(e)}function createSearchParams(e){return e===void 0&&(e=""),new URLSearchParams(typeof e=="string"||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce((s,i)=>{let o=e[i];return s.concat(Array.isArray(o)?o.map(a=>[i,a]):[[i,o]])},[]))}function getSearchParamsForLocation(e,s){let i=createSearchParams(e);
409return s&&s.forEach((o,a)=>{i.has(a)||s.getAll(a).forEach(c=>{i.append(a,c)})}),i}const _excluded$2=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],REACT_ROUTER_VERSION="6";try{window.__reactRouterVersion=REACT_ROUTER_VERSION}catch{}const START_TRANSITION="startTransition",startTransitionImpl=React$2[START_TRANSITION];function BrowserRouter(e){let{basename:s,children:i,future:o,window:a}=e,c=reactExports.useRef();c.current==null&&(c.current=createBrowserHistory({window:a,v5Compat:!0}));let d=c.current,[h,g]=reactExports.useState({action:d.action,location:d.location}),{v7_startTransition:b}=o||{},_=reactExports.useCallback(_e=>{b&&startTransitionImpl?startTransitionImpl(()=>g(_e)):g(_e)},[g,b]);return reactExports.useLayoutEffect(()=>d.listen(_),[d,_]),reactExports.useEffect(()=>logV6DeprecationWarnings(o),[o]),reactExports.createElement(Router,{basename:s,children:i,location:h.location,navigationType:h.action,navigator:d,future:o})}const isBrowser$1=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",ABSOLUTE_URL_REGEX=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Link=reactExports.forwardRef(function(s,i){let{onClick:o,relative:a,reloadDocument:c,replace:d,state:h,target:g,to:b,preventScrollReset:_,viewTransition:_e}=s,$=_objectWithoutPropertiesLoose$1(s,_excluded$2),{basename:et}=reactExports.useContext(NavigationContext),it,rt=!1;if(typeof b=="string"&&ABSOLUTE_URL_REGEX.test(b)&&(it=b,isBrowser$1))try{let nt=new URL(window.location.href),at=b.startsWith("//")?new URL(nt.protocol+b):new URL(b),ct=stripBasename(at.pathname,et);at.origin===nt.origin&&ct!=null?b=ct+at.search+at.hash:rt=!0}catch{}let lt=useHref(b,{relative:a}),st=useLinkClickHandler(b,{replace:d,state:h,target:g,preventScrollReset:_,relative:a,viewTransition:_e});function ot(nt){o&&o(nt),nt.defaultPrevented||st(nt)}return reactExports.createElement("a",_extends({},$,{href:it||lt,onClick:rt||c?o:ot,ref:i,target:g}))});var DataRouterHook;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(DataRouterHook||(DataRouterHook={}));var DataRouterStateHook;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(DataRouterStateHook||(DataRouterStateHook={}));function useLinkClickHandler(e,s){let{target:i,replace:o,state:a,preventScrollReset:c,relative:d,viewTransition:h}=s===void 0?{}:s,g=useNavigate(),b=useLocation(),_=useResolvedPath(e,{relative:d});return reactExports.useCallback(_e=>{if(shouldProcessLinkClick(_e,i)){_e.preventDefault();let $=o!==void 0?o:createPath(b)===createPath(_);g(e,{replace:$,state:a,preventScrollReset:c,relative:d,viewTransition:h})}},[b,g,_,o,a,i,e,c,d,h])}function useSearchParams(e){let s=reactExports.useRef(createSearchParams(e)),i=reactExports.useRef(!1),o=useLocation(),a=reactExports.useMemo(()=>getSearchParamsForLocation(o.search,i.current?null:s.current),[o.search]),c=useNavigate(),d=reactExports.useCallback((h,g)=>{const b=createSearchParams(typeof h=="function"?h(a):h);i.current=!0,c("?"+b,g)},[c,a]);return[a,d]}var hasElementType=typeof Element<"u",hasMap=typeof Map=="function",hasSet=typeof Set=="function",hasArrayBuffer=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function equal(e,s){if(e===s)return!0;if(e&&s&&typeof e=="object"&&typeof s=="object"){if(e.constructor!==s.constructor)return!1;var i,o,a;if(Array.isArray(e)){if(i=e.length,i!=s.length)return!1;for(o=i;o--!==0;)if(!equal(e[o],s[o]))return!1;return!0}var c;if(hasMap&&e instanceof Map&&s instanceof Map){if(e.size!==s.size)return!1;for(c=e.entries();!(o=c.next()).done;)if(!s.has(o.value[0]))return!1;for(c=e.entries();!(o=c.next()).done;)if(!equal(o.value[1],s.get(o.value[0])))return!1;return!0}if(hasSet&&e instanceof Set&&s instanceof Set){if(e.size!==s.size)return!1;for(c=e.entries();!(o=c.next()).done;)if(!s.has(o.value[0]))return!1;return!0}if(hasArrayBuffer&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(s)){if(i=e.length,i!=s.length)return!1;for(o=i;o--!==0;)if(e[o]!==s[o])return!1;return!0}if(e.constructor===RegExp)return e.source===s.source&&e.flags===s.flags;if(e.valueOf!==Object.prototype.valueOf&&typeof e.valueOf=="function"&&typeof s.valueOf=="function")return e.valueOf()===s.valueOf();if(e.toString!==Object.prototype.toString&&typeof e.toString=="function"&&typeof s.toString=="function")return e.toString()===s.toString();if(a=Object.keys(e),i=a.length,i!==Object.keys(s).length)return!1;for(o=i;o--!==0;)if(!Object.prototype.hasOwnProperty.call(s,a[o]))return!1;if(hasElementType&&e instanceof Element)return!1;for(o=i;o--!==0;)if(!((a[o]==="_owner"||a[o]==="__v"||a[o]==="__o")&&e.$$typeof)&&!equal(e[a[o]],s[a[o]]))return!1;return!0}return e!==e&&s!==s}var reactFastCompare=function(s,i){try{return equal(s,i)}catch(o){if((o.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw o}};const fastCompare=getDefaultExportFromCjs(reactFastCompare);var invariant=function(e,s,i,o,a,c,d,h){if(!e){var g;
409if(s===void 0)g=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var b=[i,o,a,c,d,h],_=0;g=new Error(s.replace(/%s/g,function(){return b[_++]})),g.name="Invariant Violation"}throw g.framesToPop=1,g}},browser$1=invariant;const invariant$1=getDefaultExportFromCjs(browser$1);var shallowequal=function(s,i,o,a){var c=o?o.call(a,s,i):void 0;if(c!==void 0)return!!c;if(s===i)return!0;if(typeof s!="object"||!s||typeof i!="object"||!i)return!1;var d=Object.keys(s),h=Object.keys(i);if(d.length!==h.length)return!1;for(var g=Object.prototype.hasOwnProperty.bind(i),b=0;b<d.length;b++){var _=d[b];if(!g(_))return!1;var _e=s[_],$=i[_];if(c=o?o.call(a,_e,$,_):void 0,c===!1||c===void 0&&_e!==$)return!1}return!0};const shallowEqual=getDefaultExportFromCjs(shallowequal);var TAG_NAMES=(e=>(e.BASE="base",e.BODY="body",e.HEAD="head",e.HTML="html",e.LINK="link",e.META="meta",e.NOSCRIPT="noscript",e.SCRIPT="script",e.STYLE="style",e.TITLE="title",e.FRAGMENT="Symbol(react.fragment)",e))(TAG_NAMES||{}),SEO_PRIORITY_TAGS={link:{rel:["amphtml","canonical","alternate"]},script:{type:["application/ld+json"]},meta:{charset:"",name:["generator","robots","description"],property:["og:type","og:title","og:url","og:image","og:image:alt","og:description","twitter:url","twitter:title","twitter:description","twitter:image","twitter:image:alt","twitter:card","twitter:site"]}},VALID_TAG_NAMES=Object.values(TAG_NAMES),REACT_TAG_MAP={accesskey:"accessKey",charset:"charSet",class:"className",contenteditable:"contentEditable",contextmenu:"contextMenu","http-equiv":"httpEquiv",itemprop:"itemProp",tabindex:"tabIndex"},HTML_TAG_MAP=Object.entries(REACT_TAG_MAP).reduce((e,[s,i])=>(e[i]=s,e),{}),HELMET_ATTRIBUTE="data-rh",HELMET_PROPS={DEFAULT_TITLE:"defaultTitle",DEFER:"defer",ENCODE_SPECIAL_CHARACTERS:"encodeSpecialCharacters",ON_CHANGE_CLIENT_STATE:"onChangeClientState",TITLE_TEMPLATE:"titleTemplate",PRIORITIZE_SEO_TAGS:"prioritizeSeoTags"},getInnermostProperty=(e,s)=>{for(let i=e.length-1;i>=0;i-=1){const o=e[i];if(Object.prototype.hasOwnProperty.call(o,s))return o[s]}return null},getTitleFromPropsList=e=>{let s=getInnermostProperty(e,"title");const i=getInnermostProperty(e,HELMET_PROPS.TITLE_TEMPLATE);if(Array.isArray(s)&&(s=s.join("")),i&&s)return i.replace(/%s/g,()=>s);const o=getInnermostProperty(e,HELMET_PROPS.DEFAULT_TITLE);return s||o||void 0},getOnChangeClientState=e=>getInnermostProperty(e,HELMET_PROPS.ON_CHANGE_CLIENT_STATE)||(()=>{}),getAttributesFromPropsList=(e,s)=>s.filter(i=>typeof i[e]<"u").map(i=>i[e]).reduce((i,o)=>({...i,...o}),{}),getBaseTagFromPropsList=(e,s)=>s.filter(i=>typeof i.base<"u").map(i=>i.base).reverse().reduce((i,o)=>
409{if(!i.length){const a=Object.keys(o);for(let c=0;c<a.length;c+=1){const h=a[c].toLowerCase();if(e.indexOf(h)!==-1&&o[h])return i.concat(o)}}return i},[]),warn$1=e=>console&&typeof console.warn=="function"&&console.warn(e),getTagsFromPropsList=(e,s,i)=>{const o={};return i.filter(a=>Array.isArray(a[e])?!0:(typeof a[e]<"u"&&warn$1(`Helmet: ${e} should be of type "Array". Instead found type "${typeof a[e]}"`),!1)).map(a=>a[e]).reverse().reduce((a,c)=>{const d={};c.filter(g=>{let b;const _=Object.keys(g);for(let $=0;$<_.length;$+=1){const et=_[$],it=et.toLowerCase();s.indexOf(it)!==-1&&!(b==="rel"&&g[b].toLowerCase()==="canonical")&&!(it==="rel"&&g[it].toLowerCase()==="stylesheet")&&(b=it),s.indexOf(et)!==-1&&(et==="innerHTML"||et==="cssText"||et==="itemprop")&&(b=et)}if(!b||!g[b])return!1;const _e=g[b].toLowerCase();return o[b]||(o[b]={}),d[b]||(d[b]={}),o[b][_e]?!1:(d[b][_e]=!0,!0)}).reverse().forEach(g=>a.push(g));const h=Object.keys(d);for(let g=0;g<h.length;g+=1){const b=h[g],_={...o[b],...d[b]};o[b]=_}return a},[]).reverse()},getAnyTrueFromPropsList=(e,s)=>{if(Array.isArray(e)&&e.length){for(let i=0;i<e.length;i+=1)if(e[i][s])return!0}return!1},reducePropsToState=e=>({baseTag:getBaseTagFromPropsList(["href"],e),bodyAttributes:getAttributesFromPropsList("bodyAttributes",e),defer:getInnermostProperty(e,HELMET_PROPS.DEFER),encode:getInnermostProperty(e,HELMET_PROPS.ENCODE_SPECIAL_CHARACTERS),htmlAttributes:getAttributesFromPropsList("htmlAttributes",e),linkTags:getTagsFromPropsList("link",["rel","href"],e),metaTags:getTagsFromPropsList("meta",["name","charset","http-equiv","property","itemprop"],e),noscriptTags:getTagsFromPropsList("noscript",["innerHTML"],e),onChangeClientState:getOnChangeClientState(e),scriptTags:getTagsFromPropsList("script",["src","innerHTML"],e),styleTags:getTagsFromPropsList("style",["cssText"],e),title:getTitleFromPropsList(e),titleAttributes:getAttributesFromPropsList("titleAttributes",e),prioritizeSeoTags:getAnyTrueFromPropsList(e,HELMET_PROPS.PRIORITIZE_SEO_TAGS)}),flattenArray=e=>Array.isArray(e)?e.join(""):e,checkIfPropsMatch=(e,s)=>{const i=Object.keys(e);for(let o=0;o<i.length;o+=1)if(s[i[o]]&&s[i[o]].includes(e[i[o]]))return!0;return!1},prioritizer=(e,s)=>Array.isArray(e)?e.reduce((i,o)=>(checkIfPropsMatch(o,s)?i.priority.push(o):i.default.push(o),i),{priority:[],default:[]}):{default:e,priority:[]},without=(e,s)=>({...e,[s]:void 0}),SELF_CLOSING_TAGS=["noscript","script","style"],encodeSpecialCharacters=(e,s=!0)=>s===!1?String(e):String(e).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'"),generateElementAttributesAsString=e=>Object.keys(e).reduce((s,i)=>{const o=typeof e[i]<"u"?`${i}="${e[i]}"`:`${i}`;return s?`${s} ${o}`:o},""),generateTitleAsString=(e,s,i,o)=>{const a=generateElementAttributesAsString(i),c=flattenArray(s);return a?`<${e} ${HELMET_ATTRIBUTE}="true" ${a}>${encodeSpecialCharacters(c,o)}</${e}>`:`<${e} ${HELMET_ATTRIBUTE}="true">${encodeSpecialCharacters(c,o)}</${e}>`},generateTagsAsString=(e,s,i=!0)=>s.reduce((o,a)=>{const c=a,d=Object.keys(c).filter(b=>!(b==="innerHTML"||b==="cssText")).reduce((b,_)=>{const _e=typeof c[_]>"u"?_:`${_}="${encodeSpecialCharacters(c[_],i)}"`;return b?`${b} ${_e}`:_e},""),h=c.innerHTML||c.cssText||"",g=SELF_CLOSING_TAGS.indexOf(e)===-1;return`${o}<${e} ${HELMET_ATTRIBUTE}="true" ${d}${g?"/>":`>${h}</${e}>`}`},""),convertElementAttributesToReactProps=(e,s={})=>Object.keys(e).reduce((i,o)=>{const a=REACT_TAG_MAP[o];return i[a||o]=e[o],i},s),generateTitleAsReactComponent=(e,s,i)=>{const o={key:s,[HELMET_ATTRIBUTE]:!0},a=convertElementAttributesToReactProps(i,o);return[React$1.createElement("title",a,s)]},generateTagsAsReactComponent=(e,s)=>s.map((i,o)=>{const a={key:o,[HELMET_ATTRIBUTE]:!0};
409return Object.keys(i).forEach(c=>{const h=REACT_TAG_MAP[c]||c;if(h==="innerHTML"||h==="cssText"){const g=i.innerHTML||i.cssText;a.dangerouslySetInnerHTML={__html:g}}else a[h]=i[c]}),React$1.createElement(e,a)}),getMethodsForTag=(e,s,i=!0)=>{switch(e){case"title":return{toComponent:()=>generateTitleAsReactComponent(e,s.title,s.titleAttributes),toString:()=>generateTitleAsString(e,s.title,s.titleAttributes,i)};case"bodyAttributes":case"htmlAttributes":return{toComponent:()=>convertElementAttributesToReactProps(s),toString:()=>generateElementAttributesAsString(s)};default:return{toComponent:()=>generateTagsAsReactComponent(e,s),toString:()=>generateTagsAsString(e,s,i)}}},getPriorityMethods=({metaTags:e,linkTags:s,scriptTags:i,encode:o})=>{const a=prioritizer(e,SEO_PRIORITY_TAGS.meta),c=prioritizer(s,SEO_PRIORITY_TAGS.link),d=prioritizer(i,SEO_PRIORITY_TAGS.script);return{priorityMethods:{toComponent:()=>[...generateTagsAsReactComponent("meta",a.priority),...generateTagsAsReactComponent("link",c.priority),...generateTagsAsReactComponent("script",d.priority)],toString:()=>`${getMethodsForTag("meta",a.priority,o)} ${getMethodsForTag("link",c.priority,o)} ${getMethodsForTag("script",d.priority,o)}`},metaTags:a.default,linkTags:c.default,scriptTags:d.default}},mapStateOnServer=e=>{const{baseTag:s,bodyAttributes:i,encode:o=!0,htmlAttributes:a,noscriptTags:c,styleTags:d,title:h="",titleAttributes:g,prioritizeSeoTags:b}=e;let{linkTags:_,metaTags:_e,scriptTags:$}=e,et={toComponent:()=>[],toString:()=>""};return b&&({priorityMethods:et,linkTags:_,metaTags:_e,scriptTags:$}=getPriorityMethods(e)),{priority:et,base:getMethodsForTag("base",s,o),bodyAttributes:getMethodsForTag("bodyAttributes",i,o),htmlAttributes:getMethodsForTag("htmlAttributes",a,o),link:getMethodsForTag("link",_,o),meta:getMethodsForTag("meta",_e,o),noscript:getMethodsForTag("noscript",c,o),script:getMethodsForTag("script",$,o),style:getMethodsForTag("style",d,o),title:getMethodsForTag("title",{title:h,titleAttributes:g},o)}},server_default=mapStateOnServer,instances=[],isDocument=!!(typeof window<"u"&&window.document&&window.document.createElement),HelmetData=class{constructor(e,s){Mr(this,"instances",[]);Mr(this,"canUseDOM",isDocument);Mr(this,"context");Mr(this,"value",{setHelmet:e=>{this.context.helmet=e},helmetInstances:{get:()=>this.canUseDOM?instances:this.instances,add:e=>{(this.canUseDOM?instances:this.instances).push(e)},remove:e=>{const s=(this.canUseDOM?instances:this.instances).indexOf(e);(this.canUseDOM?instances:this.instances).splice(s,1)}}});this.context=e,this.canUseDOM=s||!1,s||(e.helmet=server_default({baseTag:[],bodyAttributes:{},htmlAttributes:{},linkTags:[],metaTags:[],noscriptTags:[],scriptTags:[],styleTags:[],title:"",titleAttributes:{}}))}},major=parseInt(React$1.version.split(".")[0],10),isReact19=major>=19,defaultValue={},Context=React$1.createContext(defaultValue),rn,HelmetProvider=(rn=class extends reactExports.Component{constructor(i){super(i);Mr(this,"helmetData");isReact19?this.helmetData=null:this.helmetData=new HelmetData(this.props.context||{},rn.canUseDOM)}render(){return isReact19?React$1.createElement(React$1.Fragment,null,this.props.children):React$1.createElement(Context.Provider,{value:this.helmetData.value},this.props.children)}},Mr(rn,"canUseDOM",isDocument),rn),updateTags=(e,s)=>{const i=document.head||document.querySelector("head"),o=i.querySelectorAll(`${e}[${HELMET_ATTRIBUTE}]`),a=[].slice.call(o),c=[];let d;return s&&s.length&&s.forEach(h=>{const g=document.createElement(e);for(const b in h)if(Object.prototype.hasOwnProperty.call(h,b))if(b==="innerHTML")g.innerHTML=h.innerHTML;else if(b==="cssText"){const _=h.cssText;g.appendChild(document.createTextNode(_))}else{const _=b,_e=typeof h[_]>"u"?"":h[_];g.setAttribute(b,_e)}g.setAttribute(HELMET_ATTRIBUTE,"true"),a.some((b,_)=>(d=_,g.isEqualNode(b)))?a.splice(d,1):c.push(g)}),a.forEach(h=>{var g;return(g=h.parentNode)==null?void 0:g.removeChild(h)}),c.forEach(h=>i.appendChild(h)),{oldTags:a,newTags:c}},updateAttributes=(e,s)=>{const i=document.getElementsByTagName(e)[0];if(!i)return;const o=i.getAttribute(HELMET_ATTRIBUTE),a=o?o.split(","):[],c=[...a],d=Object.keys(s);for(const h of d){const g=s[h]||"";i.getAttribute(h)!==g&&i.setAttribute(h,g),a.indexOf(h)===-1&&a.push(h);const b=c.indexOf(h);b!==-1&&c.splice(b,1)}for(let h=c.length-1;h>=0;h-=1)i.removeAttribute(c[h]);a.length===c.length?i.removeAttribute(HELMET_ATTRIBUTE):i.getAttribute(HELMET_ATTRIBUTE)!==d.join(",")&&i.setAttribute(HELMET_ATTRIBUTE,d.join(","))},updateTitle=(e,s)=>{typeof e<"u"&&document.title!==e&&(document.title=flattenArray(e)),updateAttributes("title",s)},commitTagChanges=(e,s)=>{const{baseTag:i,bodyAttributes:o,htmlAttributes:a,linkTags:c,metaTags:d,noscriptTags:h,onChangeClientState:g,scriptTags:b,styleTags:_,title:_e,titleAttributes:$}=e;updateAttributes("body",o),updateAttributes("html",a),updateTitle(_e,$);const et={baseTag:updateTags("base",i),linkTags:updateTags("link",c),metaTags:updateTags("meta",d),noscriptTags:updateTags("noscript",h),scriptTags:updateTags("script",b),styleTags:updateTags("style",_)},it={},rt={};Object.keys(et).forEach(lt=>{const{newTags:st,oldTags:ot}=et[lt];st.length&&(it[lt]=st),ot.length&&(rt[lt]=et[lt].oldTags)}),s&&s(),g(e,it,rt)},_helmetCallback=null,handleStateChangeOnClient=e=>{_helmetCallback&&cancelAnimationFrame(_helmetCallback),e.defer?_helmetCallback=requestAnimationFrame(()=>{commitTagChanges(e,()=>{_helmetCallback=null})}):(commitTagChanges(e),_helmetCallback=null)},client_default=handleStateChangeOnClient,HelmetDispatcher=class extends reactExports.Component{constructor(){super(...arguments);Mr(this,"rendered",!1)}shouldComponentUpdate(s){return!shallowEqual(s,this.props)}componentDidUpdate(){this.emitChange()}componentWillUnmount(){const{helmetInstances:s}=this.props.context;s.remove(this),this.emitChange()}emitChange(){const{helmetInstances:s,setHelmet:i}=this.props.context;let o=null;const a=reducePropsToState(s.get().map(c=>{const{context:d,...h}=c.props;return h}));HelmetProvider.canUseDOM?client_default(a):server_default&&(o=server_default(a)),i(o)}init(){if(this.rendered)return;this.rendered=!0;const{helmetInstances:s}=this.props.context;s.add(this),this.emitChange()}render(){return this.init(),null}},react19Instances=[],toHtmlAttributes=e=>{const s={};for(const i of Object.keys(e))s[HTML_TAG_MAP[i]||i]=e[i];return s},toReactProps=e=>{const s={};for(const i of Object.keys(e)){const o=REACT_TAG_MAP[i];s[o||i]=e[i]}return s},applyAttributes=(e,s)=>{if(!isDocument)return;const i=document.getElementsByTagName(e)[0];if(!i)return;const o="data-rh-managed",a=i.getAttribute(o),c=a?a.split(","):[],d=Object.keys(s);
409for(const h of c)d.includes(h)||i.removeAttribute(h);for(const h of d){const g=s[h];g==null||g===!1?i.removeAttribute(h):g===!0?i.setAttribute(h,""):i.setAttribute(h,String(g))}d.length>0?i.setAttribute(o,d.join(",")):i.removeAttribute(o)},syncAllAttributes=()=>{const e={},s={};for(const i of react19Instances){const{htmlAttributes:o,bodyAttributes:a}=i.props;o&&Object.assign(e,toHtmlAttributes(o)),a&&Object.assign(s,toHtmlAttributes(a))}applyAttributes("html",e),applyAttributes("body",s)},React19Dispatcher=class extends reactExports.Component{componentDidMount(){react19Instances.push(this),syncAllAttributes()}componentDidUpdate(){syncAllAttributes()}componentWillUnmount(){const e=react19Instances.indexOf(this);e!==-1&&react19Instances.splice(e,1),syncAllAttributes()}resolveTitle(){const{title:e,titleTemplate:s,defaultTitle:i}=this.props;return e&&s?s.replace(/%s/g,()=>Array.isArray(e)?e.join(""):e):e||i||void 0}renderTitle(){const e=this.resolveTitle();if(e===void 0)return null;const s=this.props.titleAttributes||{};return React$1.createElement("title",toReactProps(s),e)}renderBase(){const{base:e}=this.props;return e?React$1.createElement("base",toReactProps(e)):null}renderMeta(){const{meta:e}=this.props;return!e||!Array.isArray(e)?null:e.map((s,i)=>React$1.createElement("meta",{key:i,...toReactProps(s)}))}renderLink(){const{link:e}=this.props;return!e||!Array.isArray(e)?null:e.map((s,i)=>React$1.createElement("link",{key:i,...toReactProps(s)}))}renderScript(){const{script:e}=this.props;return!e||!Array.isArray(e)?null:e.map((s,i)=>{const{innerHTML:o,...a}=s,c=toReactProps(a);return o&&(c.dangerouslySetInnerHTML={__html:o}),React$1.createElement("script",{key:i,...c})})}renderStyle(){const{style:e}=this.props;return!e||!Array.isArray(e)?null:e.map((s,i)=>{const{cssText:o,...a}=s,c=toReactProps(a);return o&&(c.dangerouslySetInnerHTML={__html:o}),React$1.createElement("style",{key:i,...c})})}renderNoscript(){const{noscript:e}=this.props;return!e||!Array.isArray(e)?null:e.map((s,i)=>{const{innerHTML:o,...a}=s,c=toReactProps(a);return o&&(c.dangerouslySetInnerHTML={__html:o}),React$1.createElement("noscript",{key:i,...c})})}render(){return React$1.createElement(React$1.Fragment,null,this.renderTitle(),this.renderBase(),this.renderMeta(),this.renderLink(),this.renderScript(),this.renderStyle(),this.renderNoscript())}},xn,Helmet=(xn=class extends reactExports.Component{shouldComponentUpdate(e){return!fastCompare(without(this.props,"helmetData"),without(e,"helmetData"))}mapNestedChildrenToProps(e,s){if(!s)return null;switch(e.type){case"script":case"noscript":return{innerHTML:s};case"style":return{cssText:s};default:throw new Error(`<${e.type} /> elements are self-closing and can not contain children. Refer to our API for more information.`)}}flattenArrayTypeChildren(e,s,i,o){return{...s,[e.type]:[...s[e.type]||[],{...i,...this.mapNestedChildrenToProps(e,o)}]}}mapObjectTypeChildren(e,s,i,o){switch(e.type){case"title":return{...s,[e.type]:o,titleAttributes:{...i}};case"body":return{...s,bodyAttributes:{...i}};case"html":return{...s,htmlAttributes:{...i}};default:return{...s,[e.type]:{...i}}}}mapArrayTypeChildrenToProps(e,s){let i={...s};return Object.keys(e).forEach(o=>{i={...i,[o]:e[o]}}),i}warnOnInvalidChildren(e,s){return invariant$1(VALID_TAG_NAMES.some(i=>e.type===i),typeof e.type=="function"?"You may be attempting to nest <Helmet> components within each other, which is not allowed. Refer to our API for more information.":`Only elements types ${VALID_TAG_NAMES.join(", ")} are allowed. Helmet does not support rendering <${e.type}> elements. Refer to our API for more information.`),invariant$1(!s||typeof s=="string"||Array.isArray(s)&&!s.some(i=>typeof i!="string"),`Helmet expects a string as a child of <${e.type}>. Did you forget to wrap your children in braces? ( <${e.type}>{\`\`}</${e.type}> ) Refer to our API for more information.`),!0}mapChildrenToProps(e,s){let i={};return React$1.Children.forEach(e,o=>{if(!o||!o.props)return;const{children:a,...c}=o.props,d=Object.keys(c).reduce((g,b)=>(g[HTML_TAG_MAP[b]||b]=c[b],g),{});let{type:h}=o;
409switch(typeof h=="symbol"?h=h.toString():this.warnOnInvalidChildren(o,a),h){case"Symbol(react.fragment)":s=this.mapChildrenToProps(a,s);break;case"link":case"meta":case"noscript":case"script":case"style":i=this.flattenArrayTypeChildren(o,i,d,a);break;default:s=this.mapObjectTypeChildren(o,s,d,a);break}}),this.mapArrayTypeChildrenToProps(i,s)}render(){const{children:e,...s}=this.props;let i={...s},{helmetData:o}=s;if(e&&(i=this.mapChildrenToProps(e,i)),o&&!(o instanceof HelmetData)){const a=o;o=new HelmetData(a.context,!0),delete i.helmetData}return isReact19?React$1.createElement(React19Dispatcher,{...i}):o?React$1.createElement(HelmetDispatcher,{...i,context:o.value}):React$1.createElement(Context.Consumer,null,a=>React$1.createElement(HelmetDispatcher,{...i,context:a}))}},Mr(xn,"defaultProps",{defer:!0,encodeSpecialCharacters:!0,prioritizeSeoTags:!1}),xn);const isString$1=e=>typeof e=="string",defer=()=>{let e,s;const i=new Promise((o,a)=>{e=o,s=a});return i.resolve=e,i.reject=s,i},makeString=e=>e==null?"":String(e),copy=(e,s,i)=>{e.forEach(o=>{s[o]&&(i[o]=s[o])})},lastOfPathSeparatorRegExp=/###/g,cleanKey=e=>e&&e.includes("###")?e.replace(lastOfPathSeparatorRegExp,"."):e,canNotTraverseDeeper=e=>!e||isString$1(e),getLastOfPath=(e,s,i)=>{const o=isString$1(s)?s.split("."):s;let a=0;for(;a<o.length-1;){if(canNotTraverseDeeper(e))return{};const c=cleanKey(o[a]);!e[c]&&i&&(e[c]=new i),Object.prototype.hasOwnProperty.call(e,c)?e=e[c]:e={},++a}return canNotTraverseDeeper(e)?{}:{obj:e,k:cleanKey(o[a])}},setPath=(e,s,i)=>{const{obj:o,k:a}=getLastOfPath(e,s,Object);if(o!==void 0||s.length===1){o[a]=i;return}let c=s[s.length-1],d=s.slice(0,s.length-1),h=getLastOfPath(e,d,Object);for(;h.obj===void 0&&d.length;)c=`${d[d.length-1]}.${c}`,d=d.slice(0,d.length-1),h=getLastOfPath(e,d,Object),h!=null&&h.obj&&typeof h.obj[`${h.k}.${c}`]<"u"&&(h.obj=void 0);h.obj[`${h.k}.${c}`]=i},pushPath=(e,s,i,o)=>{const{obj:a,k:c}=getLastOfPath(e,s,Object);a[c]=a[c]||[],a[c].push(i)},getPath=(e,s)=>{const{obj:i,k:o}=getLastOfPath(e,s);if(i&&Object.prototype.hasOwnProperty.call(i,o))return i[o]},getPathWithDefaults=(e,s,i)=>{const o=getPath(e,i);return o!==void 0?o:getPath(s,i)},deepExtend=(e,s,i)=>{for(const o in s)o!=="__proto__"&&o!=="constructor"&&(Object.prototype.hasOwnProperty.call(e,o)?isString$1(e[o])||e[o]instanceof String||isString$1(s[o])||s[o]instanceof String?i&&(e[o]=s[o]):deepExtend(e[o],s[o],i):e[o]=s[o]);return e},regexEscape=e=>e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"),_entityMap={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"},escape=e=>isString$1(e)?e.replace(/[&<>"'\/]/g,s=>_entityMap[s]):e;class RegExpCache{constructor(s){this.capacity=s,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(s){const i=this.regExpMap.get(s);if(i!==void 0)return i;const o=new RegExp(s);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(s,o),this.regExpQueue.push(s),o}}const chars=[" ",",","?","!",";"],looksLikeObjectPathRegExpCache=new RegExpCache(20),looksLikeObjectPath=(e,s,i)=>{s=s||"",i=i||"";const o=chars.filter(d=>!s.includes(d)&&!i.includes(d));if(o.length===0)return!0;const a=looksLikeObjectPathRegExpCache.getRegExp(`(${o.map(d=>d==="?"?"\\?":d).join("|")})`);let c=!a.test(e);if(!c){const d=e.indexOf(i);d>0&&!a.test(e.substring(0,d))&&(c=!0)}return c},deepFind=(e,s,i=".")=>{if(!e)return;if(e[s])return Object.prototype.hasOwnProperty.call(e,s)?e[s]:void 0;const o=s.split(i);let a=e;for(let c=0;c<o.length;){if(!a||typeof a!="object")return;let d,h="";for(let g=c;g<o.length;++g)if(g!==c&&(h+=i),h+=o[g],d=a[h],d!==void 0){if(["string","number","boolean"].includes(typeof d)&&g<o.length-1)continue;c+=g-c+1;break}a=d}return a},getCleanedCode=e=>e==null?void 0:e.replace(/_/g,"-"),consoleLogger={type:"logger",log(e){this.output("log",e)},warn(e){this.output("warn",e)},error(e){this.output("error",e)},output(e,s){var i,o;(o=(i=console==null?void 0:console[e])==null?void 0:i.apply)==null||o.call(i,console,s)}};class Logger{constructor(s,i={}){this.init(s,i)}init(s,i={}){this.prefix=i.prefix||"i18next:",this.logger=s||consoleLogger,this.options=i,this.debug=i.debug}log(...s){return this.forward(s,"log","",!0)}warn(...s){return this.forward(s,"warn","",!0)}error(...s){return this.forward(s,"error","")}deprecate(...s){return this.forward(s,"warn","WARNING DEPRECATED: ",!0)}forward(s,i,o,a){return a&&!this.debug?null:(s=s.map(c=>isString$1(c)?c.replace(/[\r\n\x00-\x1F\x7F]/g," "):c),isString$1(s[0])&&(s[0]=`${o}${this.prefix} ${s[0]}`),this.logger[i](s))}create(s){return new Logger(this.logger,{prefix:`${this.prefix}:${s}:`,...this.options})}clone(s){return s=s||this.options,s.prefix=s.prefix||this.prefix,new Logger(this.logger,s)}}var baseLogger=new Logger;class EventEmitter{constructor(){this.observers={}}on(s,i){return s.split(" ").forEach(o=>
409{this.observers[o]||(this.observers[o]=new Map);const a=this.observers[o].get(i)||0;this.observers[o].set(i,a+1)}),this}off(s,i){if(this.observers[s]){if(!i){delete this.observers[s];return}this.observers[s].delete(i)}}once(s,i){const o=(...a)=>{i(...a),this.off(s,o)};return this.on(s,o),this}emit(s,...i){this.observers[s]&&Array.from(this.observers[s].entries()).forEach(([a,c])=>{for(let d=0;d<c;d++)a(...i)}),this.observers["*"]&&Array.from(this.observers["*"].entries()).forEach(([a,c])=>{for(let d=0;d<c;d++)a(s,...i)})}}class ResourceStore extends EventEmitter{constructor(s,i={ns:["translation"],defaultNS:"translation"}){super(),this.data=s||{},this.options=i,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(s){this.options.ns.includes(s)||this.options.ns.push(s)}removeNamespaces(s){const i=this.options.ns.indexOf(s);i>-1&&this.options.ns.splice(i,1)}getResource(s,i,o,a={}){var b,_;const c=a.keySeparator!==void 0?a.keySeparator:this.options.keySeparator,d=a.ignoreJSONStructure!==void 0?a.ignoreJSONStructure:this.options.ignoreJSONStructure;let h;s.includes(".")?h=s.split("."):(h=[s,i],o&&(Array.isArray(o)?h.push(...o):isString$1(o)&&c?h.push(...o.split(c)):h.push(o)));const g=getPath(this.data,h);return!g&&!i&&!o&&s.includes(".")&&(s=h[0],i=h[1],o=h.slice(2).join(".")),g||!d||!isString$1(o)?g:deepFind((_=(b=this.data)==null?void 0:b[s])==null?void 0:_[i],o,c)}addResource(s,i,o,a,c={silent:!1}){const d=c.keySeparator!==void 0?c.keySeparator:this.options.keySeparator;let h=[s,i];o&&(h=h.concat(d?o.split(d):o)),s.includes(".")&&(h=s.split("."),a=i,i=h[1]),this.addNamespaces(i),setPath(this.data,h,a),c.silent||this.emit("added",s,i,o,a)}addResources(s,i,o,a={silent:!1}){for(const c in o)(isString$1(o[c])||Array.isArray(o[c]))&&this.addResource(s,i,c,o[c],{silent:!0});a.silent||this.emit("added",s,i,o)}addResourceBundle(s,i,o,a,c,d={silent:!1,skipCopy:!1}){let h=[s,i];s.includes(".")&&(h=s.split("."),a=o,o=i,i=h[1]),this.addNamespaces(i);let g=getPath(this.data,h)||{};d.skipCopy||(o=JSON.parse(JSON.stringify(o))),a?deepExtend(g,o,c):g={...g,...o},setPath(this.data,h,g),d.silent||this.emit("added",s,i,o)}removeResourceBundle(s,i){this.hasResourceBundle(s,i)&&delete this.data[s][i],this.removeNamespaces(i),this.emit("removed",s,i)}hasResourceBundle(s,i){return this.getResource(s,i)!==void 0}getResourceBundle(s,i){return i||(i=this.options.defaultNS),this.getResource(s,i)}getDataByLanguage(s){return this.data[s]}hasLanguageSomeTranslations(s){const i=this.getDataByLanguage(s);return!!(i&&Object.keys(i)||[]).find(a=>i[a]&&Object.keys(i[a]).length>0)}toJSON(){return this.data}}var postProcessor={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,s,i,o,a){return e.forEach(c=>{var d;s=((d=this.processors[c])==null?void 0:d.process(s,i,o,a))??s}),s}};const PATH_KEY=Symbol("i18next/PATH_KEY");function createProxy(){const e=[],s=Object.create(null);let i;return s.get=(o,a)=>{var c;return(c=i==null?void 0:i.revoke)==null||c.call(i),a===PATH_KEY?e:(e.push(a),i=Proxy.revocable(o,s),i.proxy)},Proxy.revocable(Object.create(null),s).proxy}function keysFromSelector(e,s){const{[PATH_KEY]:i}=e(createProxy()),o=(s==null?void 0:s.keySeparator)??".",a=(s==null?void 0:s.nsSeparator)??":",c=(s==null?void 0:s.enableSelector)==="strict";if(i.length>1&&a){const d=s==null?void 0:s.ns,h=c?Array.isArray(d)?d:d?[d]:null:Array.isArray(d)?d:null;if(h&&(c?h:h.length>1?h.slice(1):[]).includes(i[0]))return`${i[0]}${a}${i.slice(1).join(o)}`}return i.join(o)}const shouldHandleAsObject=e=>!isString$1(e)&&typeof e!="boolean"&&typeof e!="number";class Translator extends EventEmitter{constructor(s,i={}){super(),copy(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","
409i18nFormat","utils"],s,this),this.options=i,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=baseLogger.create("translator"),this.checkedLoadedFor={}}changeLanguage(s){s&&(this.language=s)}exists(s,i={interpolation:{}}){const o={...i};if(s==null)return!1;const a=this.resolve(s,o);if((a==null?void 0:a.res)===void 0)return!1;const c=shouldHandleAsObject(a.res);return!(o.returnObjects===!1&&c)}extractFromKey(s,i){let o=i.nsSeparator!==void 0?i.nsSeparator:this.options.nsSeparator;o===void 0&&(o=":");const a=i.keySeparator!==void 0?i.keySeparator:this.options.keySeparator;let c=i.ns||this.options.defaultNS||[];const d=o&&s.includes(o),h=!this.options.userDefinedKeySeparator&&!i.keySeparator&&!this.options.userDefinedNsSeparator&&!i.nsSeparator&&!looksLikeObjectPath(s,o,a);if(d&&!h){const g=s.match(this.interpolator.nestingRegexp);if(g&&g.length>0)return{key:s,namespaces:isString$1(c)?[c]:c};const b=s.split(o);(o!==a||o===a&&this.options.ns.includes(b[0]))&&(c=b.shift()),s=b.join(a)}return{key:s,namespaces:isString$1(c)?[c]:c}}translate(s,i,o){let a=typeof i=="object"?{...i}:i;if(typeof a!="object"&&this.options.overloadTranslationOptionHandler&&(a=this.options.overloadTranslationOptionHandler(arguments)),typeof a=="object"&&(a={...a}),a||(a={}),s==null)return"";typeof s=="function"&&(s=keysFromSelector(s,{...this.options,...a})),Array.isArray(s)||(s=[String(s)]),s=s.map(Nt=>typeof Nt=="function"?keysFromSelector(Nt,{...this.options,...a}):String(Nt));const c=a.returnDetails!==void 0?a.returnDetails:this.options.returnDetails,d=a.keySeparator!==void 0?a.keySeparator:this.options.keySeparator,{key:h,namespaces:g}=this.extractFromKey(s[s.length-1],a),b=g[g.length-1];let _=a.nsSeparator!==void 0?a.nsSeparator:this.options.nsSeparator;_===void 0&&(_=":");const _e=a.lng||this.language,$=a.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if((_e==null?void 0:_e.toLowerCase())==="cimode")return $?c?{res:`${b}${_}${h}`,usedKey:h,exactUsedKey:h,usedLng:_e,usedNS:b,usedParams:this.getUsedParamsDetails(a)}:`${b}${_}${h}`:c?{res:h,usedKey:h,exactUsedKey:h,usedLng:_e,usedNS:b,usedParams:this.getUsedParamsDetails(a)}:h;const et=this.resolve(s,a);let it=et==null?void 0:et.res;const rt=(et==null?void 0:et.usedKey)||h,lt=(et==null?void 0:et.exactUsedKey)||h,st=["[object Number]","[object Function]","[object RegExp]"],ot=a.joinArrays!==void 0?a.joinArrays:this.options.joinArrays,nt=!this.i18nFormat||this.i18nFormat.handleAsObject,at=a.count!==void 0&&!isString$1(a.count),ct=Translator.hasDefaultValue(a),dt=at?this.pluralResolver.getSuffix(_e,a.count,a):"",pt=a.ordinal&&at?this.pluralResolver.getSuffix(_e,a.count,{ordinal:!1}):"",mt=at&&!a.ordinal&&a.count===0,St=mt&&a[`defaultValue${this.options.pluralSeparator}zero`]||a[`defaultValue${dt}`]||a[`defaultValue${pt}`]||a.defaultValue;let Pt=it;nt&&!it&&ct&&(Pt=St);const Mt=shouldHandleAsObject(Pt),Ct=Object.prototype.toString.apply(Pt);if(nt&&Pt&&Mt&&!st.includes(Ct)&&!(isString$1(ot)&&Array.isArray(Pt))){if(!a.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const Nt=this.options.returnedObjectHandler?this.options.returnedObjectHandler(rt,Pt,{...a,ns:g}):`key '${h} (${this.language})' returned an object instead of string.`;return c?(et.res=Nt,et.usedParams=this.getUsedParamsDetails(a),et):Nt}if(d){const Nt=Array.isArray(Pt),kt=Nt?[]:{},At=Nt?lt:rt;for(const ft in Pt)if(Object.prototype.hasOwnProperty.call(Pt,ft)){const Et=`${At}${d}${ft}`;ct&&!it?kt[ft]=this.translate(Et,{...a,defaultValue:shouldHandleAsObject(St)?St[ft]:void 0,joinArrays:!1,ns:g}):kt[ft]=this.translate(Et,{...a,joinArrays:!1,ns:g}),kt[ft]===Et&&(kt[ft]=Pt[ft])}it=kt}}else if(nt&&isString$1(ot)&&Array.isArray(it))it=it.join(ot),it&&(it=this.extendTranslation(it,s,a,o));else{let Nt=!1,kt=!1;!this.isValidLookup(it)&&ct&&(Nt=!0,it=St),this.isValidLookup(it)||(kt=!0,it=h);const ft=(a.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&kt?void 0:it,Et=ct&&St!==it&&this.options.updateMissing;if(kt||Nt||Et){if(this.logger.log(Et?"updateKey":"missingKey",_e,b,at&&!Et?`${h}${this.pluralResolver.getSuffix(_e,a.count,a)}`:h,Et?St:it),d){const xt=this.resolve(h,{...a,keySeparator:!1});xt&&xt.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let ut=[];const ht=this.languageUtils.getFallbackCodes(this.options.fallbackLng,a.lng||this.language);if(this.options.saveMissingTo==="fallback"&&ht&&ht[0])for(let xt=0;xt<ht.length;xt++)ut.push(ht[xt]);else this.options.saveMissingTo==="all"?ut=this.languageUtils.toResolveHierarchy(a.lng||this.language):ut.push(a.lng||this.language);const gt=(xt,Rt,Tt)=>{var Lt;const It=ct&&Tt!==it?Tt:ft;this.options.missingKeyHandler?this.options.missingKeyHandler(xt,b,Rt,It,Et,a):(Lt=this.backendConnector)!=null&&Lt.saveMissing&&this.backendConnector.saveMissing(xt,b,Rt,It,Et,a),this.emit
409("missingKey",xt,b,Rt,it)};this.options.saveMissing&&(this.options.saveMissingPlurals&&at?ut.forEach(xt=>{const Rt=this.pluralResolver.getSuffixes(xt,a);mt&&a[`defaultValue${this.options.pluralSeparator}zero`]&&!Rt.includes(`${this.options.pluralSeparator}zero`)&&Rt.push(`${this.options.pluralSeparator}zero`),Rt.forEach(Tt=>{gt([xt],h+Tt,a[`defaultValue${Tt}`]||St)})}):gt(ut,h,St))}it=this.extendTranslation(it,s,a,et,o),kt&&it===h&&this.options.appendNamespaceToMissingKey&&(it=`${b}${_}${h}`),(kt||Nt)&&this.options.parseMissingKeyHandler&&(it=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${b}${_}${h}`:h,Nt?it:void 0,a))}return c?(et.res=it,et.usedParams=this.getUsedParamsDetails(a),et):it}extendTranslation(s,i,o,a,c){var g,b;if((g=this.i18nFormat)!=null&&g.parse)s=this.i18nFormat.parse(s,{...this.options.interpolation.defaultVariables,...o},o.lng||this.language||a.usedLng,a.usedNS,a.usedKey,{resolved:a});else if(!o.skipInterpolation){o.interpolation&&this.interpolator.init({...o,interpolation:{...this.options.interpolation,...o.interpolation}});const _=isString$1(s)&&(((b=o==null?void 0:o.interpolation)==null?void 0:b.skipOnVariables)!==void 0?o.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let _e;if(_){const et=s.match(this.interpolator.nestingRegexp);_e=et&&et.length}let $=o.replace&&!isString$1(o.replace)?o.replace:o;if(this.options.interpolation.defaultVariables&&($={...this.options.interpolation.defaultVariables,...$}),s=this.interpolator.interpolate(s,$,o.lng||this.language||a.usedLng,o),_){const et=s.match(this.interpolator.nestingRegexp),it=et&&et.length;_e<it&&(o.nest=!1)}!o.lng&&a&&a.res&&(o.lng=this.language||a.usedLng),o.nest!==!1&&(s=this.interpolator.nest(s,(...et)=>(c==null?void 0:c[0])===et[0]&&!o.context?(this.logger.warn(`It seems you are nesting recursively key: ${et[0]} in key: ${i[0]}`),null):this.translate(...et,i),o)),o.interpolation&&this.interpolator.reset()}const d=o.postProcess||this.options.postProcess,h=isString$1(d)?[d]:d;return s!=null&&(h!=null&&h.length)&&o.applyPostProcessor!==!1&&(s=postProcessor.handle(h,s,i,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...a,usedParams:this.getUsedParamsDetails(o)},...o}:o,this)),s}resolve(s,i={}){let o,a,c,d,h;return isString$1(s)&&(s=[s]),Array.isArray(s)&&(s=s.map(g=>typeof g=="function"?keysFromSelector(g,{...this.options,...i}):g)),s.forEach(g=>{if(this.isValidLookup(o))return;const b=this.extractFromKey(g,i),_=b.key;a=_;let _e=b.namespaces;this.options.fallbackNS&&(_e=_e.concat(this.options.fallbackNS));const $=i.count!==void 0&&!isString$1(i.count),et=$&&!i.ordinal&&i.count===0,it=i.context!==void 0&&(isString$1(i.context)||typeof i.context=="number")&&i.context!=="",rt=i.lngs?i.lngs:this.languageUtils.toResolveHierarchy(i.lng||this.language,i.fallbackLng);_e.forEach(lt=>{var st,ot;this.isValidLookup(o)||(h=lt,!this.checkedLoadedFor[`${rt[0]}-${lt}`]&&((st=this.utils)!=null&&st.hasLoadedNamespace)&&!((ot=this.utils)!=null&&ot.hasLoadedNamespace(h))&&(this.checkedLoadedFor[`${rt[0]}-${lt}`]=!0,this.logger.warn(`key "${a}" for languages "${rt.join(", ")}" won't get resolved as namespace "${h}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),rt.forEach(nt=>{var dt;if(this.isValidLookup(o))return;d=nt;const at=[_];if((dt=this.i18nFormat)!=null&&dt.addLookupKeys)this.i18nFormat.addLookupKeys(at,_,nt,lt,i);else{let pt;$&&(pt=this.pluralResolver.getSuffix(nt,i.count,i));const mt=`${this.options.pluralSeparator}zero`,St=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if($&&(i.ordinal&&pt.startsWith(St)&&at.push(_+pt.replace(St,this.options.pluralSeparator)),at.push(_+pt),et&&at.push(_+mt)),it){const Pt=`${_}${this.options.contextSeparator||"_"}${i.context}`;at.push(Pt),$&&(i.ordinal&&pt.startsWith(St)&&at.push(Pt+pt.replace(St,this.options.pluralSeparator)),at.push(Pt+pt),et&&at.push(Pt+mt))}}let ct;for(;ct=at.pop();)this.isValidLookup(o)||(c=ct,o=this.getResource(nt,lt,ct,i))}
409))})}),{res:o,usedKey:a,exactUsedKey:c,usedLng:d,usedNS:h}}isValidLookup(s){return s!==void 0&&!(!this.options.returnNull&&s===null)&&!(!this.options.returnEmptyString&&s==="")}getResource(s,i,o,a={}){var c;return(c=this.i18nFormat)!=null&&c.getResource?this.i18nFormat.getResource(s,i,o,a):this.resourceStore.getResource(s,i,o,a)}getUsedParamsDetails(s={}){const i=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],o=s.replace&&!isString$1(s.replace);let a=o?s.replace:s;if(o&&typeof s.count<"u"&&(a={...a,count:s.count}),this.options.interpolation.defaultVariables&&(a={...this.options.interpolation.defaultVariables,...a}),!o){a={...a};for(const c of i)delete a[c]}return a}static hasDefaultValue(s){const i="defaultValue";for(const o in s)if(Object.prototype.hasOwnProperty.call(s,o)&&o.startsWith(i)&&s[o]!==void 0)return!0;return!1}}class LanguageUtil{constructor(s){this.options=s,this.supportedLngs=this.options.supportedLngs||!1,this.logger=baseLogger.create("languageUtils"),this.resolveHierarchyCache={}}clearCache(){this.resolveHierarchyCache={}}getScriptPartFromCode(s){if(s=getCleanedCode(s),!s||!s.includes("-"))return null;const i=s.split("-");return i.length===2||(i.pop(),i[i.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(i.join("-"))}getLanguagePartFromCode(s){if(s=getCleanedCode(s),!s||!s.includes("-"))return s;const i=s.split("-");return this.formatLanguageCode(i[0])}formatLanguageCode(s){if(isString$1(s)&&s.includes("-")){let i;try{i=Intl.getCanonicalLocales(s)[0]}catch{}return i&&this.options.lowerCaseLng&&(i=i.toLowerCase()),i||(this.options.lowerCaseLng?s.toLowerCase():s)}return this.options.cleanCode||this.options.lowerCaseLng?s.toLowerCase():s}isSupportedCode(s){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(s=this.getLanguagePartFromCode(s)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.includes(s)}getBestMatchFromCodes(s){if(!s)return null;let i;return s.forEach(o=>{if(i)return;const a=this.formatLanguageCode(o);(!this.options.supportedLngs||this.isSupportedCode(a))&&(i=a)}),!i&&this.options.supportedLngs&&s.forEach(o=>{if(i)return;const a=this.getScriptPartFromCode(o);if(this.isSupportedCode(a))return i=a;const c=this.getLanguagePartFromCode(o);if(this.isSupportedCode(c))return i=c;i=this.options.supportedLngs.find(d=>d===c?!0:!d.includes("-")&&!c.includes("-")?!1:!!(d.includes("-")&&!c.includes("-")&&d.slice(0,d.indexOf("-"))===c||d.startsWith(c)&&c.length>1))}),i||(i=this.getFallbackCodes(this.options.fallbackLng)[0]),i}getFallbackCodes(s,i){if(!s)return[];if(typeof s=="function"&&(s=s(i)),isString$1(s)&&(s=[s]),Array.isArray(s))return s;if(!i)return s.default||[];let o=s[i];return o||(o=s[this.getScriptPartFromCode(i)]),o||(o=s[this.formatLanguageCode(i)]),o||(o=s[this.getLanguagePartFromCode(i)]),o||(o=s.default),o||[]}toResolveHierarchy(s,i){const o=this.options.fallbackLng,a=Array.isArray(o)?o.join("|"):o;a!==this._cachedFallbackLng&&(this.resolveHierarchyCache={},this._cachedFallbackLng=a);const c=i===void 0||i===!1||isString$1(i),d=i===void 0&&typeof this.options.fallbackLng=="function",h=isString$1(s)&&c&&!d;let g=null;if(h){let $;i===void 0?$="undefined":i===!1?$="boolean:false":$=`string:${i}`,g=`${s.length}:${s}|${$}`}if(g!==null){const $=this.resolveHierarchyCache[g];if($!==void 0)return $.slice()}const b=this.getFallbackCodes((i===!1?[]:i)||this.options.fallbackLng||[],s),_=[],_e=$=>{$&&(this.isSupportedCode($)?_.push($):this.logger.warn(`rejecting language code not found in supportedLngs: ${$}`))};return isString$1(s)&&(s.includes("-")||s.includes("_"))?(this.options.load!=="languageOnly"&&_e(this.formatLanguageCode(s)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&_e(this.getScriptPartFromCode(s)),this.options.load!=="currentOnly"&&_e(this.getLanguagePartFromCode(s))):isString$1(s)&&_e(this.formatLanguageCode(s)),b.forEach($=>{_.includes($)||_e(this.formatLanguageCode($))}),g!==null?(this.resolveHierarchyCache[g]=_,_.slice()):_}}const suffixesOrder={zero:0,one:1,two:2,few:3,many:4,other:5},dummyRule={select:e=>e===1?"one":"other",resolvedOptions:()=>({pluralCategories:["one","other"]})};class PluralResolver{constructor(s,i={}){this.languageUtils=s,this.options=i,this.logger=baseLogger.create("pluralResolver"),this.pluralRulesCache={}}clearCache(){this.pluralRulesCache={}}getRule(s,i={}){const o=getCleanedCode(s==="dev"?"en":s),a=i.ordinal?"ordinal":"cardinal",c=JSON.stringify({cleanedCode:o,type:a});if(c in this.pluralRulesCache)return this.pluralRulesCache[c];let d;try{d=new Intl.PluralRules(o,{type:a})}catch{if(typeof Intl>"u")return this.logger.error("No Intl support, please use an Intl pol
409yfill!"),dummyRule;if(!s.match(/-|_/))return dummyRule;const g=this.languageUtils.getLanguagePartFromCode(s);d=this.getRule(g,i)}return this.pluralRulesCache[c]=d,d}needsPlural(s,i={}){let o=this.getRule(s,i);return o||(o=this.getRule("dev",i)),(o==null?void 0:o.resolvedOptions().pluralCategories.length)>1}getPluralFormsOfKey(s,i,o={}){return this.getSuffixes(s,o).map(a=>`${i}${a}`)}getSuffixes(s,i={}){let o=this.getRule(s,i);return o||(o=this.getRule("dev",i)),o?o.resolvedOptions().pluralCategories.sort((a,c)=>suffixesOrder[a]-suffixesOrder[c]).map(a=>`${this.options.prepend}${i.ordinal?`ordinal${this.options.prepend}`:""}${a}`):[]}getSuffix(s,i,o={}){const a=this.getRule(s,o);return a?`${this.options.prepend}${o.ordinal?`ordinal${this.options.prepend}`:""}${a.select(i)}`:(this.logger.warn(`no plural rule found for: ${s}`),this.getSuffix("dev",i,o))}}const deepFindWithDefaults=(e,s,i,o=".",a=!0)=>{let c=getPathWithDefaults(e,s,i);return!c&&a&&isString$1(i)&&(c=deepFind(e,i,o),c===void 0&&(c=deepFind(s,i,o))),c},regexSafe=e=>e.replace(/\$/g,"$$$$");class Interpolator{constructor(s={}){var i;this.logger=baseLogger.create("interpolator"),this.options=s,this.format=((i=s==null?void 0:s.interpolation)==null?void 0:i.format)||(o=>o),this.init(s)}init(s={}){s.interpolation||(s.interpolation={escapeValue:!0});const{escape:i,escapeValue:o,useRawValueToEscape:a,prefix:c,prefixEscaped:d,suffix:h,suffixEscaped:g,formatSeparator:b,unescapeSuffix:_,unescapePrefix:_e,nestingPrefix:$,nestingPrefixEscaped:et,nestingSuffix:it,nestingSuffixEscaped:rt,nestingOptionsSeparator:lt,maxReplaces:st,alwaysFormat:ot}=s.interpolation;this.escape=i!==void 0?i:escape,this.escapeValue=o!==void 0?o:!0,this.useRawValueToEscape=a!==void 0?a:!1,this.prefix=c?regexEscape(c):d||"{{",this.suffix=h?regexEscape(h):g||"}}",this.formatSeparator=b||",",this.unescapePrefix=_?"":_e?regexEscape(_e):"-",this.unescapeSuffix=this.unescapePrefix?"":_?regexEscape(_):"",this.nestingPrefix=$?regexEscape($):et||regexEscape("$t("),this.nestingSuffix=it?regexEscape(it):rt||regexEscape(")"),this.nestingOptionsSeparator=lt||",",this.maxReplaces=st||1e3,this.alwaysFormat=ot!==void 0?ot:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const s=(i,o)=>(i==null?void 0:i.source)===o?(i.lastIndex=0,i):new RegExp(o,"g");this.regexp=s(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=s(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=s(this.nestingRegexp,`${this.nestingPrefix}((?:[^()"']+|"[^"]*"|'[^']*'|\\((?:[^()]|"[^"]*"|'[^']*')*\\))*?)${this.nestingSuffix}`)}interpolate(s,i,o,a){var et;let c,d,h;const g=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},b=it=>{if(!it.includes(this.formatSeparator)){const ot=deepFindWithDefaults(i,g,it,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(ot,void 0,o,{...a,...i,interpolationkey:it}):ot}const rt=it.split(this.formatSeparator),lt=rt.shift().trim(),st=rt.join(this.formatSeparator).trim();return this.format(deepFindWithDefaults(i,g,lt,this.options.keySeparator,this.options.ignoreJSONStructure),st,o,{...a,...i,interpolationkey:lt})};this.resetRegExp(),!this.escapeValue&&typeof s=="string"&&/\$t\([^)]*\{[^}]*\{\{/.test(s)&&this.logger.warn("nesting options string contains interpolated variables with escapeValue: false â if any of those values are attacker-controlled they can inject additional nesting options (e.g. redirect lng/ns). Sanitise untrusted input before passing it to t(), or keep escapeValue: true.");const _=(a==null?void 0:a.missingInterpolationHandler)||this.options.missingInterpolationHandler,_e=((et=a==null?void 0:a.interpolation)==null?void 0:et.skipOnVariables)!==void 0?a.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:it=>it},{regex:this.regexp,safeValue:it=>this.escapeValue?this.escape(it):it}].forEach(it=>{for(h=0;c=it.regex.exec(s);){const rt=c[1].trim();if(d=b(rt),d===void 0)if(typeof _=="function"){const st=_(s,c,a);d=isString$1(st)?st:""}else if(a&&Object.prototype.hasOwnProperty.call(a,rt))d="";else if(_e){d=c[0];continue}else this.logger.warn(`missed to pass in variable ${rt} for interpolating ${s}`),d="";else!isString$1(d)&&!this.useRawValueToEscape&&(d=makeString(d));const lt=it.safeValue(d);if(s=s.replace(c[0],regexSafe(lt)),_e?(it.regex.lastIndex+=lt.length,it.regex.lastIndex-=c[0].length):it.regex.lastIndex=0,h++,h>=this.maxReplaces)break}}),s}nest(s,i,o={}){let a,c,d;const h=(g,b)=>{const _=this.nestingOptionsSeparator;if(!g.includes(_))return g;const _e=g.split(new RegExp(`${regexEscape(_)}[ ]*{`));let $=`{${_e[1]}`;g=_e[0],$=this.interpolate($,d);const et=$.match(/'/g),it=$.match(/"/g);(((et==null?void 0:et.length)??0)%2===0&&!it||((it==null?void 0:it.length)??0)%2!==0)&&($=$.replace(/'/g,'"'));try{d=JSON.parse($),b&&(d={...b,...d})}catch(rt){return this.logger.warn(`failed parsing options string in nesting for key ${g}`,rt),`${g}${_}${$}`}return d.defaultValue&&d.defaultValue.includes(this.prefix)&&delete d.defaultValue,g};for(;a=this.nestingRegexp.exec(s);){let g=[];d={...o},d=d.replace&&!isString$1(d.replace)?d.replace:d,d.applyPostProcessor=!1,delete d.defaultValue;const b=/{.*}/s.test(a[1])?a[1].lastIndexOf("}")+1:a[1].indexOf(this.formatSeparator);if(b!==-1&&(g=a[1].slice(b).split(this.formatSeparator).map(_=>
409_.trim()).filter(Boolean),a[1]=a[1].slice(0,b)),c=i(h.call(this,a[1].trim(),d),d),c&&a[0]===s&&!isString$1(c))return c;isString$1(c)||(c=makeString(c)),c||(this.logger.warn(`missed to resolve ${a[1]} for nesting ${s}`),c=""),g.length&&(c=g.reduce((_,_e)=>this.format(_,_e,o.lng,{...o,interpolationkey:a[1].trim()}),c.trim())),s=s.replace(a[0],regexSafe(makeString(c))),this.regexp.lastIndex=0}return s}}const parseFormatStr=e=>{let s=e.toLowerCase().trim();const i={};if(e.includes("(")){const o=e.split("(");s=o[0].toLowerCase().trim();const a=o[1].slice(0,-1);s==="currency"&&!a.includes(":")?i.currency||(i.currency=a.trim()):s==="relativetime"&&!a.includes(":")?i.range||(i.range=a.trim()):a.split(";").forEach(d=>{if(d){const[h,...g]=d.split(":"),b=g.join(":").trim().replace(/^'+|'+$/g,""),_=h.trim();i[_]||(i[_]=b),b==="false"&&(i[_]=!1),b==="true"&&(i[_]=!0),isNaN(b)||(i[_]=parseInt(b,10))}})}return{formatName:s,formatOptions:i}},createCachedFormatter=e=>{const s={};return(i,o,a)=>{let c=a;a&&a.interpolationkey&&a.formatParams&&a.formatParams[a.interpolationkey]&&a[a.interpolationkey]&&(c={...c,[a.interpolationkey]:void 0});const d=o+JSON.stringify(c);let h=s[d];return h||(h=e(getCleanedCode(o),a),s[d]=h),h(i)}},createNonCachedFormatter=e=>(s,i,o)=>e(getCleanedCode(i),o)(s);class Formatter{constructor(s={}){this.logger=baseLogger.create("formatter"),this.options=s,this.init(s)}init(s,i={interpolation:{}}){this.formatSeparator=i.interpolation.formatSeparator||",";const o=i.cacheInBuiltFormats?createCachedFormatter:createNonCachedFormatter;this.formats={number:o((a,c)=>{const d=new Intl.NumberFormat(a,{...c});return h=>d.format(h)}),currency:o((a,c)=>{const d=new Intl.NumberFormat(a,{...c,style:"currency"});return h=>d.format(h)}),datetime:o((a,c)=>{const d=new Intl.DateTimeFormat(a,{...c});return h=>d.format(h)}),relativetime:o((a,c)=>{const d=new Intl.RelativeTimeFormat(a,{...c});return h=>d.format(h,c.range||"day")}),list:o((a,c)=>{const d=new Intl.ListFormat(a,{...c});return h=>d.format(h)})}}add(s,i){this.formats[s.toLowerCase().trim()]=i}addCached(s,i){this.formats[s.toLowerCase().trim()]=createCachedFormatter(i)}format(s,i,o,a={}){if(!i||s==null)return s;const c=i.split(this.formatSeparator),d=[];for(let g=0;g<c.length;g++){let b=c[g];for(;b.indexOf("(")>-1&&!b.includes(")")&&g+1<c.length;)b=`${b}${this.formatSeparator}${c[++g]}`;d.push(b)}return d.reduce((g,b)=>{var $;const{formatName:_,formatOptions:_e}=parseFormatStr(b);if(this.formats[_]){let et=g;try{const it=(($=a==null?void 0:a.formatParams)==null?void 0:$[a.interpolationkey])||{},rt=it.locale||it.lng||a.locale||a.lng||o;et=this.formats[_](g,rt,{..._e,...a,...it})}catch(it){this.logger.warn(it)}return et}else this.logger.warn(`there was no format function for ${_}`);return g},s)}}const removePending=(e,s)=>{e.pending[s]!==void 0&&(delete e.pending[s],e.pendingCount--)};class Connector extends EventEmitter{constructor(s,i,o,a={}){var c,d;super(),this.backend=s,this.store=i,this.services=o,this.languageUtils=o.languageUtils,this.options=a,this.logger=baseLogger.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=a.maxParallelReads||10,this.readingCalls=0,this.maxRetries=a.maxRetries>=0?a.maxRetries:5,this.retryTimeout=a.retryTimeout>=1?a.retryTimeout:350,this.state={},this.queue=[],(d=(c=this.backend)==null?void 0:c.init)==null||d.call(c,o,a.backend,a)}queueLoad(s,i,o,a){const c={},d={},h={},g={};return s.forEach(b=>{let _=!0;i.forEach(_e=>{const $=`${b}|${_e}`;!o.reload&&this.store.hasResourceBundle(b,_e)?this.state[$]=2:this.state[$]<0||(this.state[$]===1?d[$]===void 0&&(d[$]=!0):(this.state[$]=1,_=!1,d[$]===void 0&&(d[$]=!0),c[$]===void 0&&(c[$]=!0),g[_e]===void 0&&(g[_e]=!0)))}),_||(h[b]=!0)}),(Object.keys(c).length||Object.keys(d).length)&&this.queue.push({pending:d,pendingCount:Object.keys(d).length,loaded:{},errors:[],callback:a}),{toLoad:Object.keys(c),pending:Object.keys(d),toLoadLanguages:Object.keys(h),toLoadNamespaces:Object.keys(g)}}loaded(s,i,o){const a=s.split("|"),c=a[0],d=a[1];i&&this.emit("failedLoading",c,d,i),!i&&o&&this.store.addResourceBundle(c,d,o,void 0,void 0,{skipCopy:!0}),this.state[s]=i?-1:2,i&&o&&(this.state[s]=0);const h={};this.queue.forEach(g=>{pushPath(g.loaded,[c],d),removePending(g,s),i&&g.errors.push(i),g.pendingCount===0&&!g.done&&(Object.keys(g.loaded).forEac
409h(b=>{h[b]||(h[b]={});const _=g.loaded[b];_.length&&_.forEach(_e=>{h[b][_e]===void 0&&(h[b][_e]=!0)})}),g.done=!0,g.errors.length?g.callback(g.errors):g.callback())}),this.emit("loaded",h),this.queue=this.queue.filter(g=>!g.done)}read(s,i,o,a=0,c=this.retryTimeout,d){if(!s.length)return d(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:s,ns:i,fcName:o,tried:a,wait:c,callback:d});return}this.readingCalls++;const h=(b,_)=>{if(this.readingCalls--,this.waitingReads.length>0){const _e=this.waitingReads.shift();this.read(_e.lng,_e.ns,_e.fcName,_e.tried,_e.wait,_e.callback)}if(b&&_&&a<this.maxRetries){setTimeout(()=>{this.read(s,i,o,a+1,c*2,d)},c);return}d(b,_)},g=this.backend[o].bind(this.backend);if(g.length===2){try{const b=g(s,i);b&&typeof b.then=="function"?b.then(_=>h(null,_)).catch(h):h(null,b)}catch(b){h(b)}return}return g(s,i,h)}prepareLoading(s,i,o={},a){if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),a&&a();isString$1(s)&&(s=this.languageUtils.toResolveHierarchy(s)),isString$1(i)&&(i=[i]);const c=this.queueLoad(s,i,o,a);if(!c.toLoad.length)return c.pending.length||a(),null;c.toLoad.forEach(d=>{this.loadOne(d)})}load(s,i,o){this.prepareLoading(s,i,{},o)}reload(s,i,o){this.prepareLoading(s,i,{reload:!0},o)}loadOne(s,i=""){const o=s.split("|"),a=o[0],c=o[1];this.read(a,c,"read",void 0,void 0,(d,h)=>{d&&this.logger.warn(`${i}loading namespace ${c} for language ${a} failed`,d),!d&&h&&this.logger.log(`${i}loaded namespace ${c} for language ${a}`,h),this.loaded(s,d,h)})}saveMissing(s,i,o,a,c,d={},h=()=>{}){var g,b,_,_e,$;if((b=(g=this.services)==null?void 0:g.utils)!=null&&b.hasLoadedNamespace&&!((_e=(_=this.services)==null?void 0:_.utils)!=null&&_e.hasLoadedNamespace(i))){this.logger.warn(`did not save key "${o}" as the namespace "${i}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}if(!(o==null||o==="")){if(($=this.backend)!=null&&$.create){const et={...d,isUpdate:c},it=this.backend.create.bind(this.backend);if(it.length<6)try{let rt;it.length===5?rt=it(s,i,o,a,et):rt=it(s,i,o,a),rt&&typeof rt.then=="function"?rt.then(lt=>h(null,lt)).catch(h):h(null,rt)}catch(rt){h(rt)}else it(s,i,o,a,h,et)}!s||!s[0]||this.store.addResource(s[0],i,o,a)}}}const get$1=()=>({debug:!1,initAsync:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",enableSelector:!1,partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:e=>{let s={};if(typeof e[1]=="object"&&(s=e[1]),isString$1(e[1])&&(s.defaultValue=e[1]),isString$1(e[2])&&(s.tDescription=e[2]),typeof e[2]=="object"||typeof e[3]=="object"){const i=e[3]||e[2];
409Object.keys(i).forEach(o=>{s[o]=i[o]})}return s},interpolation:{escapeValue:!0,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0},cacheInBuiltFormats:!0}),transformOptions=e=>(isString$1(e.ns)&&(e.ns=[e.ns]),isString$1(e.fallbackLng)&&(e.fallbackLng=[e.fallbackLng]),isString$1(e.fallbackNS)&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&!e.supportedLngs.includes("cimode")&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e),noop$2=()=>{},bindMemberFunctions=e=>{Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach(i=>{typeof e[i]=="function"&&(e[i]=e[i].bind(e))})};class I18n extends EventEmitter{constructor(s={},i){if(super(),this.options=transformOptions(s),this.services={},this.logger=baseLogger,this.modules={external:[]},bindMemberFunctions(this),i&&!this.isInitialized&&!s.isClone){if(!this.options.initAsync)return this.init(s,i),this;setTimeout(()=>{this.init(s,i)},0)}}init(s={},i){this.isInitializing=!0,typeof s=="function"&&(i=s,s={}),s.defaultNS==null&&s.ns&&(isString$1(s.ns)?s.defaultNS=s.ns:s.ns.includes("translation")||(s.defaultNS=s.ns[0]));const o=get$1();this.options={...o,...this.options,...transformOptions(s)},this.options.interpolation={...o.interpolation,...this.options.interpolation},s.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=s.keySeparator),s.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=s.nsSeparator),typeof this.options.overloadTranslationOptionHandler!="function"&&(this.options.overloadTranslationOptionHandler=o.overloadTranslationOptionHandler);const a=b=>b?typeof b=="function"?new b:b:null;if(!this.options.isClone){this.modules.logger?baseLogger.init(a(this.modules.logger),this.options):baseLogger.init(null,this.options);let b;this.modules.formatter?b=this.modules.formatter:b=Formatter;const _=new LanguageUtil(this.options);this.store=new ResourceStore(this.options.resources,this.options);const _e=this.services;_e.logger=baseLogger,_e.resourceStore=this.store,_e.languageUtils=_,_e.pluralResolver=new PluralResolver(_,{prepend:this.options.pluralSeparator}),b&&(_e.formatter=a(b),_e.formatter.init&&_e.formatter.init(_e,this.options),this.options.interpolation.format=_e.formatter.format.bind(_e.formatter)),_e.interpolator=new Interpolator(this.options),_e.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},_e.backendConnector=new Connector(a(this.modules.backend),_e.resourceStore,_e,this.options),_e.backendConnector.on("*",($,...et)=>{this.emit($,...et)}),this.modules.languageDetector&&(_e.languageDetector=a(this.modules.languageDetector),_e.languageDetector.init&&_e.languageDetector.init(_e,this.options.detection,this.options)),this.modules.i18nFormat&&(_e.i18nFormat=a(this.modules.i18nFormat),_e.i18nFormat.init&&_e.i18nFormat.init(this)),this.translator=new Translator(this.services,this.options),this.translator.on("*",($,...et)=>{this.emit($,...et)}),this.modules.external.forEach($=>{$.init&&$.init(this)})}if(this.format=this.options.interpolation.format,i||(i=noop$2),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const b=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);b.length>0&&b[0]!=="dev"&&(this.options.lng=b[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(b=>{this[b]=(..._)=>this.store[b](..._)}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(b=>{this[b]=(..._)=>(this.store[b](..._),this)});const h=defer(),g=()=>{const b=(_,_e)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),h.resolve(_e),i(_,_e)};if((this.languages||this.isLanguageChangingTo)&&!this.isInitialized)return b(null,this.t.bind(this));this.changeLanguage(this.options.lng,b)};return this.options.resources||!this.options.initAsync?g():setTimeout(g,0),h}loadResources(s,i=noop$2){var c,d;let o=i;const a=isString$1(s)?s:this.language;if(typeof s=="function"&&(o=s),!this.options.resources||this.options.partialBundledLanguages){if((a==null?void 0:a.toLowerCase())==="cimode"&&(!this.options.preload||this.options.preload.length===0))return o();const h=[],g=b=>{if(!b||b==="cimode")return;this.services.languageUtils.toResolveHierarchy(b).forEach(_e=>{_e!=="cimode"&&(h.includes(_e)||h.push(_e))})};a?g(a):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(_=>g(_)),(d=(c=this.options.preload)==null?void 0:c.forEach)==null||d.call(c,b=>g(b)),this.services.backendConnector.load(h,this.options.ns,b=>{!b&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),o(b)})}else o(null)}reloadResources(s,i,o){const a=defer();return typeof s=="function"&&(o=s,s=void 0),typeof i=="function"&&(o=i,i=void 0),s||(s=this.languages),i||(i=this.options.ns),o||(o=noop$2),this.services.backendConnector.reload(s,i,c=>{a.resolve(),o(c)}),a}use(s){if(!s)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!s.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return s.type==="backend"&&(this.modules.backend=s),(s.type==="logger"||s.log&&s.warn&&s.error)&&(this.modules.logger=s),s.type==="languageDetector"&&(this.modules.languageDetector=s),s.type==="i18nFormat"&&(this.modules.i18nFormat=s),s.type==="postProcessor"&&postProcessor.addPostProcessor(s),s.type==="formatter"&&(this.modules.formatter=s),s.type==="3rdParty"&&this.modules.external.push(s),this}setResolvedLanguage(s){if(!(!s||!this.languages)&&!["cimode","dev"].includes(s)){for(let i=0;i<this.languages.length;i++){const o=this.languages[i];if(!["cimode","dev"].includes(o)&&this.store.hasLanguageSomeTranslations(o)){this.resolvedLanguage=o;break}}!this.resolvedLanguage&&!this.languages.includes(s)&&this.store.hasLanguageSomeTranslations(s)&&(this.resolvedLanguage=s,this.languages.unshift(s))}}changeLanguage(s,i){this.isLanguageChangingTo=s;const o=defer();
409this.emit("languageChanging",s);const a=h=>{this.language=h,this.languages=this.services.languageUtils.toResolveHierarchy(h),this.resolvedLanguage=void 0,this.setResolvedLanguage(h)},c=(h,g)=>{g?this.isLanguageChangingTo===s&&(a(g),this.translator.changeLanguage(g),this.isLanguageChangingTo=void 0,this.emit("languageChanged",g),this.logger.log("languageChanged",g)):this.isLanguageChangingTo=void 0,o.resolve((...b)=>this.t(...b)),i&&i(h,(...b)=>this.t(...b))},d=h=>{var _,_e;!s&&!h&&this.services.languageDetector&&(h=[]);const g=isString$1(h)?h:h&&h[0],b=this.store.hasLanguageSomeTranslations(g)?g:this.services.languageUtils.getBestMatchFromCodes(isString$1(h)?[h]:h);b&&(this.language||a(b),this.translator.language||this.translator.changeLanguage(b),(_e=(_=this.services.languageDetector)==null?void 0:_.cacheUserLanguage)==null||_e.call(_,b)),this.loadResources(b,$=>{c($,b)})};return!s&&this.services.languageDetector&&!this.services.languageDetector.async?d(this.services.languageDetector.detect()):!s&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(d):this.services.languageDetector.detect(d):d(s),o}getFixedT(s,i,o,a){const c=a==null?void 0:a.scopeNs,d=(h,g,...b)=>{let _;typeof g!="object"?_=this.options.overloadTranslationOptionHandler([h,g].concat(b)):_={...g},_.lng=_.lng||d.lng,_.lngs=_.lngs||d.lngs;const _e=_.ns!==void 0&&_.ns!==null;_.ns=_.ns||d.ns,_.keyPrefix!==""&&(_.keyPrefix=_.keyPrefix||o||d.keyPrefix);const $={...this.options,..._};Array.isArray(c)&&!_e&&($.ns=c),typeof _.keyPrefix=="function"&&(_.keyPrefix=keysFromSelector(_.keyPrefix,$));const et=this.options.keySeparator||".";let it;return _.keyPrefix&&Array.isArray(h)?it=h.map(rt=>(typeof rt=="function"&&(rt=keysFromSelector(rt,$)),`${_.keyPrefix}${et}${rt}`)):(typeof h=="function"&&(h=keysFromSelector(h,$)),it=_.keyPrefix?`${_.keyPrefix}${et}${h}`:h),this.t(it,_)};return isString$1(s)?d.lng=s:d.lngs=s,d.ns=i,d.keyPrefix=o,d}t(...s){var i;return(i=this.translator)==null?void 0:i.translate(...s)}exists(...s){var i;return(i=this.translator)==null?void 0:i.exists(...s)}setDefaultNamespace(s){this.options.defaultNS=s}hasLoadedNamespace(s,i={}){if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;
409if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;const o=i.lng||this.resolvedLanguage||this.languages[0],a=this.options?this.options.fallbackLng:!1,c=this.languages[this.languages.length-1];if(o.toLowerCase()==="cimode")return!0;const d=(h,g)=>{const b=this.services.backendConnector.state[`${h}|${g}`];return b===-1||b===0||b===2};if(i.precheck){const h=i.precheck(this,d);if(h!==void 0)return h}return!!(this.hasResourceBundle(o,s)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||d(o,s)&&(!a||d(c,s)))}loadNamespaces(s,i){const o=defer();return this.options.ns?(isString$1(s)&&(s=[s]),s.forEach(a=>{this.options.ns.includes(a)||this.options.ns.push(a)}),this.loadResources(a=>{o.resolve(),i&&i(a)}),o):(i&&i(),Promise.resolve())}loadLanguages(s,i){const o=defer();isString$1(s)&&(s=[s]);const a=this.options.preload||[],c=s.filter(d=>!a.includes(d)&&this.services.languageUtils.isSupportedCode(d));return c.length?(this.options.preload=a.concat(c),this.loadResources(d=>{o.resolve(),i&&i(d)}),o):(i&&i(),Promise.resolve())}dir(s){var a,c;if(s||(s=this.resolvedLanguage||(((a=this.languages)==null?void 0:a.length)>0?this.languages[0]:this.language)),!s)return"rtl";try{const d=new Intl.Locale(s);if(d&&d.getTextInfo){const h=d.getTextInfo();if(h&&h.direction)return h.direction}}catch{}const i=["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"],o=((c=this.services)==null?void 0:c.languageUtils)||new LanguageUtil(get$1());return s.toLowerCase().indexOf("-latn")>1?"ltr":i.includes(o.getLanguagePartFromCode(s))||s.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(s={},i){const o=new I18n(s,i);return o.createInstance=I18n.createInstance,o}cloneInstance(s={},i=noop$2){const o=s.forkResourceStore;o&&delete s.forkResourceStore;const a={...this.options,...s,isClone:!0},c=new I18n(a);if((s.debug!==void 0||s.prefix!==void 0)&&(c.logger=c.logger.clone(s)),["store","services","language"].forEach(h=>{c[h]=this[h]}),c.services={...this.services},c.services.utils={hasLoadedNamespace:c.hasLoadedNamespace.bind(c)},o){const h=Object.keys(this.store.data).reduce((g,b)=>(g[b]={...this.store.data[b]},g[b]=Object.keys(g[b]).reduce((_,_e)=>(_[_e]={...g[b][_e]},_),g[b]),g),{});c.store=new ResourceStore(h,a),c.services.resourceStore=c.store}if(s.interpolation){const g={...get$1().interpolation,...this.options.interpolation,...s.interpolation},b={...a,interpolation:g};c.services.interpolator=new Interpolator(b)}return c.translator=new Translator(c.services,a),c.translator.on("*",(h,...g)=>{c.emit(h,...g)}),c.init(a,i),c.translator.options=a,c.translator.backendConnector.services.utils={hasLoadedNamespace:c.hasLoadedNamespace.bind(c)},c}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}const instance=I18n.createInstance();instance.createInstance;instance.dir;instance.init;instance.loadResources;instance.reloadResources;instance.use;instance.changeLanguage;instance.getFixedT;instance.t;instance.exists;instance.setDefaultNamespace;instance.hasLoadedNamespace;instance.loadNamespaces;instance.loadLanguages;const warn=(e,s,i,o)=>{var c,d,h,g;const a=[i,{code:s,...o||{}}];if((d=(c=e==null?void 0:e.services)==null?void 0:c.logger)!=null&&d.forward)return e.services.logger.forward(a,"warn","react-i18next::",!0);isString(a[0])&&(a[0]=`react-i18next:: ${a[0]}`),(g=(h=e==null?void 0:e.services)==null?void 0:h.logger)!=null&&g.warn?e.services.logger.warn(...a):console!=null&&console.warn&&console.warn(...a)},alreadyWarned={},warnOnce=(e,s,i,o)=>{isString(i)&&alreadyWarned[i]||(isString(i)&&(alreadyWarned[i]=new Date),warn(e,s,i,o))},loadedClb=(e,s)=>()=>{if(e.isInitialized)s();else{const i=()=>{setTimeout(()=>{e.off("initialized",i)},0),s()};e.on("initialized",i)}},loadNamespaces=(e,s,i)=>{e.loadNamespaces(s,loadedClb(e,i))},loadLanguages=(e,s,i,o)=>
409{if(isString(i)&&(i=[i]),e.options.preload&&e.options.preload.indexOf(s)>-1)return loadNamespaces(e,i,o);i.forEach(a=>{e.options.ns.indexOf(a)<0&&e.options.ns.push(a)}),e.loadLanguages(s,loadedClb(e,o))},hasLoadedNamespace=(e,s,i={})=>!s.languages||!s.languages.length?(warnOnce(s,"NO_LANGUAGES","i18n.languages were undefined or empty",{languages:s.languages}),!0):s.hasLoadedNamespace(e,{lng:i.lng,precheck:(o,a)=>{if(i.bindI18n&&i.bindI18n.indexOf("languageChanging")>-1&&o.services.backendConnector.backend&&o.isLanguageChangingTo&&!a(o.isLanguageChangingTo,e))return!1}}),isString=e=>typeof e=="string",isObject=e=>typeof e=="object"&&e!==null,matchHtmlEntity=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,htmlEntities={"&":"&","&":"&","<":"<","<":"<",">":">",">":">","'":"'","'":"'",""":'"',""":'"'," ":" "," ":" ","©":"©","©":"©","®":"®","®":"®","…":"â¦","…":"â¦","/":"/","/":"/"},unescapeHtmlEntity=e=>htmlEntities[e],unescape=e=>e.replace(matchHtmlEntity,unescapeHtmlEntity);let defaultOptions={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape,transDefaultProps:void 0};const setDefaults=(e={})=>{defaultOptions={...defaultOptions,...e}},getDefaults$1=()=>defaultOptions;let i18nInstance;const setI18n=e=>{i18nInstance=e},getI18n=()=>i18nInstance,initReactI18next={type:"3rdParty",init(e){setDefaults(e.options.react),setI18n(e)}},I18nContext=reactExports.createContext();class ReportNamespaces{constructor(){this.usedNamespaces={}}addUsedNamespaces(s){s.forEach(i=>{this.usedNamespaces[i]||(this.usedNamespaces[i]=!0)})}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}}var shim$1={exports:{}},useSyncExternalStoreShim_production={};/** 410 * @license React 411 * use-sync-external-store-shim.production.js 412 * 413 * Copyright (c) Meta Platforms, Inc. and affiliates. 414 * 415 * This source code is licensed under the MIT license found in the 416 * LICENSE file in the root directory of this source tree. 417 */var React=reactExports;function is(e,s){return e===s&&(e!==0||1/e===1/s)||e!==e&&s!==s}var objectIs=typeof Object.is=="function"?Object.is:is,useState=React.useState,useEffect=React.useEffect,useLayoutEffect=React.useLayoutEffect,useDebugValue=React.useDebugValue;function useSyncExternalStore$2(e,s){var i=s(),o=useState({inst:{value:i,getSnapshot:s}}),a=o[0].inst,c=o[1];return useLayoutEffect(function(){a.value=i,a.getSnapshot=s,checkIfSnapshotChanged(a)&&c({inst:a})},[e,i,s]),useEffect(function(){return checkIfSnapshotChanged(a)&&c({inst:a}),e(function(){checkIfSnapshotChanged(a)&&c({inst:a})})},[e]),useDebugValue(i),i}function checkIfSnapshotChanged(e){var s=e.getSnapshot;e=e.value;try{var i=s();return!objectIs(e,i)}catch{return!0}}function useSyncExternalStore$1(e,s){return s()}var shim=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?useSyncExternalStore$1:useSyncExternalStore$2;useSyncExternalStoreShim_production.useSyncExternalStore=React.useSyncExternalStore!==void 0?React.useSyncExternalStore:shim;shim$1.exports=useSyncExternalStoreShim_production;var shimExports=shim$1.exports;const notReadyT=(e,s)=>{if(isString(s))return s;if(isObject(s)&&isString(s.defaultValue))return s.defaultValue;if(typeof e=="function")return"";if(Array.isArray(e)){const i=e[e.length-1];return typeof i=="function"?"":i}return e},notReadySnapshot={t:notReadyT,ready:!1},dummySubscribe=()=>()=>{},useTranslation=(e,s={})=>{var St,Pt,Mt;const{i18n:i}=s,{i18n:o,defaultNS:a}=reactExports.useContext(I18nContext)||{},c=i||o||getI18n();c&&!c.reportNamespaces&&(c.reportNamespaces=new ReportNamespaces),c||warnOnce(c,"NO_I18NEXT_INSTANCE","useTranslation: You will need to pass in an i18next instance by using initReactI18next or by passing it via props or context. In monorepo setups, make sure there is only one instance of react-i18next.");const d=reactExports.useMemo(()=>{var Ct;return{...getDefaults$1(),...(Ct=c==null?void 0:c.options)==null?void 0:Ct.react,...s}},[c,s]),{useSuspense:h,keyPrefix:g}=d,b=a||((St=c==null?void 0:c.options)==null?void 0:St.defaultNS),_=isString(b)?[b]:b||["translation"],_e=reactExports.useMemo(()=>_,_);(Mt=(Pt=c==null?void 0:c.reportNamespaces)==null?void 0:Pt.addUsedNamespaces)==null||Mt.call(Pt,_e);const $=reactExports.useRef(0),et=reactExports.useCallback(Ct=>{if(!c)return dummySubscribe;const{bindI18n:Nt,bindI18nStore:kt}=d,At=()=>{$.current+=1,Ct()};return Nt&&c.on(Nt,At),kt&&c.store.on(kt,At),()=>{Nt&&Nt.split(" ").forEach(ft=>c.off(ft,At)),kt&&kt.split(" ").forEach(ft=>c.store.off(ft,At))}},[c,d]),it=reactExports.useRef(),rt=reactExports.useCallback(()=>
417{if(!c)return notReadySnapshot;const Ct=!!(c.isInitialized||c.initializedStoreOnce)&&_e.every(ut=>hasLoadedNamespace(ut,c,d)),Nt=s.lng||c.language,kt=$.current,At=it.current;if(At&&At.ready===Ct&&At.lng===Nt&&At.keyPrefix===g&&At.revision===kt)return At;const Et={t:c.getFixedT(Nt,d.nsMode==="fallback"?_e:_e[0],g,{scopeNs:_e}),ready:Ct,lng:Nt,keyPrefix:g,revision:kt};return it.current=Et,Et},[c,_e,g,d,s.lng]),[lt,st]=reactExports.useState(0),{t:ot,ready:nt}=shimExports.useSyncExternalStore(et,rt,rt);reactExports.useEffect(()=>{if(c&&!nt&&!h){const Ct=()=>st(Nt=>Nt+1);s.lng?loadLanguages(c,s.lng,_e,Ct):loadNamespaces(c,_e,Ct)}},[c,s.lng,_e,nt,h,lt]);const at=c||{},ct=reactExports.useRef(null),dt=reactExports.useRef(),pt=Ct=>{const Nt=Object.getOwnPropertyDescriptors(Ct);Nt.__original&&delete Nt.__original;const kt=Object.create(Object.getPrototypeOf(Ct),Nt);if(!Object.prototype.hasOwnProperty.call(kt,"__original"))try{Object.defineProperty(kt,"__original",{value:Ct,writable:!1,enumerable:!1,configurable:!1})}catch{}return kt},mt=reactExports.useMemo(()=>{const Ct=at,Nt=Ct==null?void 0:Ct.language;let kt=Ct;Ct&&(ct.current&&ct.current.__original===Ct?dt.current!==Nt?(kt=pt(Ct),ct.current=kt,dt.current=Nt):kt=ct.current:(kt=pt(Ct),ct.current=kt,dt.current=Nt));const At=!nt&&!h?(...Et)=>(warnOnce(c,"USE_T_BEFORE_READY","useTranslation: t was called before ready. When using useSuspense: false, make sure to check the ready flag before using t."),ot(...Et)):ot,ft=[At,kt,nt];return ft.t=At,ft.i18n=kt,ft.ready=nt,ft},[ot,at,nt,at.resolvedLanguage,at.language,at.languages]);if(c&&h&&!nt){let Ct=!1;try{Ct=!1}catch{}throw Ct&&warnOnce(c,"SUSPENDED_WHILE_LOADING","useTranslation: suspended while translations are loading (useSuspense is true by default). Add a <Suspense> boundary above this component, or set react.useSuspense: false in the i18next init options. https://react.i18next.com/latest/usetranslation-hook"),new Promise(Nt=>{const kt=()=>Nt();s.lng?loadLanguages(c,s.lng,_e,kt):loadNamespaces(c,_e,kt)})}return mt},useSyncHtmlLang=()=>{const{i18n:e}=useTranslation();reactExports.useEffect(()=>{document.documentElement.lang=e.resolvedLanguage},[e.resolvedLanguage])},usePageViewTracking=()=>{const e=useLocation();reactExports.useEffect(()=>{var s;(s=window.gtag)==null||s.call(window,"event","page_view",{page_path:`${e.pathname}${e.search}`,page_location:window.location.href,page_title:document.title})},[e.pathname,e.search])},MOBILE_BREAKPOINT=768;function useIsMobile(){const[e,s]=reactExports.useState(void 0);return reactExports.useEffect(()=>{const i=window.matchMedia(`(max-width: ${MOBILE_BREAKPOINT-1}px)`),o=()=>{s(window.innerWidth<MOBILE_BREAKPOINT)};return i.addEventListener("change",o),s(window.innerWidth<MOBILE_BREAKPOINT),()=>i.removeEventListener("change",o)},[]),!!e}const buttonVariants=cva("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium 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 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",outline:"border border-input bg-background hover:bg-button-hover hover:text-button-hover-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-button-hover hover:text-button-hover-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-10 px-4 py-2",sm:"h-9 rounded-md px-3",lg:"h-11 rounded-md px-8",icon:"h-10 w-10"}},defaultVariants:{variant:"default",size:"default"}}),Button=reactExports.forwardRef(({className:e,variant:s,size:i,asChild:o=!1,...a},c)=>{const d=o?Slot$3:"button";return jsxRuntimeExports.jsx(d,{className:cn(buttonVariants({variant:s,size:i,className:e})),ref:c,...a})});Button.displayName="Button";const Input=reactExports.forwardRef(({className:e,type:s,...i},o)=>jsxRuntimeExports.jsx("input",{type:s,className:cn("flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-base ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",e),ref:o,...i}));Input.displayName="Input";var NAME="Separator",DEFAULT_ORIENTATION="horizontal",ORIENTATIONS=["horizontal","vertical"],Separator$2=reactExports.forwardRef((e,s)=>{const{decorative:i,orientation:o=DEFAULT_ORIENTATION,...a}=e,c=isValidOrientation(o)?o:DEFAULT_ORIENTATION,h=i?{role:"none"}:{"aria-orientation":c==="vertical"?c:void 0,role:"separator"};return jsxRuntimeExports.jsx(Primitive.div,{"data-orientation":c,...h,...a,ref:s})});Separator$2.displayName=NAME;function isValidOrientation(e){return ORIENTATIONS.includes(e)}var Root$4=Separator$2;const Separator$1=reactExports.forwardRef(({className:e,orientation:s="horizontal",decorative:i=!0,...o},a)=>jsxRuntimeExports.jsx(Root$4,{ref:a,decorative:i,orientation:s,className:cn("shrink-0 bg-border",s==="horizontal"?"h-[1px] w-full":"h-full w-[1px]",e),...o}));Separator$1.displayName=Root$4.displayName;var AUTOFOCUS_ON_MOUNT="focusScope.autoFocusOnMount",AUTOFOCUS_ON_UNMOUNT="focusScope.autoFocusOnUnmount",EVENT_OPTIONS$1={bubbles:!1,cancelable:!0},FOCUS_SCOPE_NAME="FocusScope",FocusScope=reactExports.forwardRef((e,s)=>{const{loop:i=!1,trapped:o=!1,onMountAutoFocus:a,onUnmountAutoFocus:c,...d}=e,[h,g]=reactExports.useState(null),b=useCallbackRef$1(a),_=useCallbackRef$1(c),_e=reactExports.useRef(null),$=useComposedRefs(s,rt=>g(rt)),et=reactExports.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;reactExports.useEffect(()=>{if(o){let rt=function(nt){if(et.paused||!h)return;const at=nt.target;h.contains(at)?_e.current=at:focus(_e.current,{select:!0})},lt=function(nt){if(et.paused||!h)return;const at=nt.relatedTarget;at!==null&&(h.contains(at)||focus(_e.current,{select:!0}))},st=function(nt){if(document.activeElement===document.body)for(const ct of nt)ct.removedNodes.length>0&&focus(h)};document.addEventListener("focusin",rt),document.addEventListener("focusout",lt);const ot=new MutationObserver(st);return h&&ot.observe(h,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",rt),document.removeEventListener("focusout",lt),ot.disconnect()}}},[o,h,et.paused]),reactExports.useEffect(()=>{if(h){focusScopesStack.add(et);const rt=document.activeElement;if(!h.contains(rt)){const st=new CustomEvent(AUTOFOCUS_ON_MOUNT,EVENT_OPTIONS$1);h.addEventListener(AUTOFOCUS_ON_MOUNT,b),h.dispatchEvent(st),st.defaultPrevented||(focusFirst$2(removeLinks(getTabbableCandidates(h)),{select:!0}),document.activeElement===rt&&focus(h))}return()=>{h.removeEventListener(AUTOFOCUS_ON_MOUNT,b),setTimeout(()=>{const st=new CustomEvent(AUTOFOCUS_ON_UNMOUNT,EVENT_OPTIONS$1);h.addEventListener(AUTOFOCUS_ON_UNMOUNT,_),h.dispatchEvent(st),st.defaultPrevented||focus(rt??document.body,{select:!0}),h.removeEventListener(AUTOFOCUS_ON_UNMOUNT,_),focusScopesStack.remove(et)},0)}}},[h,b,_,et]);const it=reactExports.useCallback(rt=>{if(!i&&!o||et.paused)return;const lt=rt.key==="Tab"&&!rt.altKey&&!rt.ctrlKey&&!rt.metaKey,st=document.activeElement;if(lt&&st){const ot=rt.currentTarget,[nt,at]=getTabbableEdges(ot);nt&&at?!rt.shiftKey&&st===at?(rt.preventDefault(),i&&focus(nt,{select:!0})):rt.shiftKey&&st===nt&&(rt.preventDefault(),i&&focus(at,{select:!0})):st===ot&&rt.preventDefault()}},[i,o,et.paused]);return jsxRuntimeExports.jsx(Primitive.div,{tabIndex:-1,...d,ref:$,onKeyDown:it})});FocusScope.displayName=FOCUS_SCOPE_NAME;function focusFirst$2(e,{select:s=!1}={}){const i=document.activeElement;for(const o of e)if(focus(o,{select:s}),document.activeElement!==i)return}function getTabbableEdges(e){const s=getTabbableCandidates(e),i=findVisible(s,e),o=findVisible(s.reverse(),e);return[i,o]}function getTabbableCandidates(e){const s=[],i=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:o=>{const a=o.tagName==="INPUT"&&o.type==="hidden";return o.disabled||o.hidden||a?NodeFilter.FILTER_SKIP:o.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;i.nextNode();)s.push(i.currentNode);return s}function findVisible(e,s){for(const i of e)if(!isHidden(i,{upTo:s}))return i}function isHidden(e,{upTo:s}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(s!==void 0&&e===s)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function isSelectableInput(e){return e instanceof HTMLInputElement&&"select"in e}function focus(e,{select:s=!1}={}){if(e&&e.focus){const i=document.activeElement;e.focus({preventScroll:!0}),e!==i&&isSelectableInput(e)&&s&&e.select()}}var focusScopesStack=createFocusScopesStack();function createFocusScopesStack(){let e=[];return{add(s){const i=e[0];s!==i&&(i==null||i.pause()),e=arrayRemove(e,s),e.unshift(s)},remove(s){var i;e=arrayRemove(e,s),(i=e[0])==null||i.resume()}}}function arrayRemove(e,s){const i=[...e],o=i.indexOf(s);return o!==-1&&i.splice(o,1),i}function removeLinks(e){return e.filter(s=>s.tagName!=="A")}var count=0;function useFocusGuards(){reactExports.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??createFocusGuard()),document.body.insertAdjacentElement("beforeend",e[1]??createFocusGuard()),count++,()=>{count===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(s=>s.remove()),count--}},[])}function createFocusGuard(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.
vendor: 11,047 bytes, line 417
417style.position="fixed",e.style.pointerEvents="none",e}var extendStatics=function(e,s){return extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,o){i.__proto__=o}||function(i,o){for(var a in o)Object.prototype.hasOwnProperty.call(o,a)&&(i[a]=o[a])},extendStatics(e,s)};function __extends(e,s){if(typeof s!="function"&&s!==null)throw new TypeError("Class extends value "+String(s)+" is not a constructor or null");extendStatics(e,s);function i(){this.constructor=e}e.prototype=s===null?Object.create(s):(i.prototype=s.prototype,new i)}var __assign=function(){return __assign=Object.assign||function(s){for(var i,o=1,a=arguments.length;o<a;o++){i=arguments[o];for(var c in i)Object.prototype.hasOwnProperty.call(i,c)&&(s[c]=i[c])}return s},__assign.apply(this,arguments)};function __rest(e,s){var i={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&s.indexOf(o)<0&&(i[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,o=Object.getOwnPropertySymbols(e);a<o.length;a++)s.indexOf(o[a])<0&&Object.prototype.propertyIsEnumerable.call(e,o[a])&&(i[o[a]]=e[o[a]]);return i}function __decorate(e,s,i,o){var a=arguments.length,c=a<3?s:o===null?o=Object.getOwnPropertyDescriptor(s,i):o,d;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")c=Reflect.decorate(e,s,i,o);else for(var h=e.length-1;h>=0;h--)(d=e[h])&&(c=(a<3?d(c):a>3?d(s,i,c):d(s,i))||c);return a>3&&c&&Object.defineProperty(s,i,c),c}function __param(e,s){return function(i,o){s(i,o,e)}}function __esDecorate(e,s,i,o,a,c){function d(st){if(st!==void 0&&typeof st!="function")throw new TypeError("Function expected");return st}for(var h=o.kind,g=h==="getter"?"get":h==="setter"?"set":"value",b=!s&&e?o.static?e:e.prototype:null,_=s||(b?Object.getOwnPropertyDescriptor(b,o.name):{}),_e,$=!1,et=i.length-1;et>=0;et--){var it={};for(var rt in o)it[rt]=rt==="access"?{}:o[rt];for(var rt in o.access)it.access[rt]=o.access[rt];it.addInitializer=function(st){if($)throw new TypeError("Cannot add initializers after decoration has completed");c.push(d(st||null))};var lt=(0,i[et])(h==="accessor"?{get:_.get,set:_.set}:_[g],it);if(h==="accessor"){if(lt===void 0)continue;if(lt===null||typeof lt!="object")throw new TypeError("Object expected");(_e=d(lt.get))&&(_.get=_e),(_e=d(lt.set))&&(_.set=_e),(_e=d(lt.init))&&a.unshift(_e)}else(_e=d(lt))&&(h==="field"?a.unshift(_e):_[g]=_e)}b&&Object.defineProperty(b,o.name,_),$=!0}function __runInitializers(e,s,i){for(var o=arguments.length>2,a=0;a<s.length;a++)i=o?s[a].call(e,i):s[a].call(e);return o?i:void 0}function __propKey(e){return typeof e=="symbol"?e:"".concat(e)}function __setFunctionName(e,s,i){return typeof s=="symbol"&&(s=s.description?"[".concat(s.description,"]"):""),Object.defineProperty(e,"name",{configurable:!0,value:i?"".concat(i," ",s):s})}function __metadata(e,s){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,s)}function __awaiter(e,s,i,o){function a(c){return c instanceof i?c:new i(function(d){d(c)})}return new(i||(i=Promise))(function(c,d){function h(_){try{b(o.next(_))}catch(_e){d(_e)}}function g(_){try{b(o.throw(_))}catch(_e){d(_e)}}function b(_){_.done?c(_.value):a(_.value).then(h,g)}b((o=o.apply(e,s||[])).next())})}function __generator(e,s){var i={label:0,sent:function(){if(c[0]&1)throw c[1];return c[1]},trys:[],ops:[]},o,a,c,d=Object.create((typeof Iterator=="function"?Iterator:Object).prototype);return d.next=h(0),d.throw=h(1),d.return=h(2),typeof Symbol=="function"&&(d[Symbol.iterator]=function(){return this}),d;function h(b){return function(_){return g([b,_])}}function g(b){if(o)throw new TypeError("Generator is already executing.");for(;d&&(d=0,b[0]&&(i=0)),i;)try{if(o=1,a&&(c=b[0]&2?a.return:b[0]?a.throw||((c=a.return)&&c.call(a),0):a.next)&&!(c=c.call(a,b[1])).done)return c;switch(a=0,c&&(b=[b[0]&2,c.value]),b[0]){case 0:case 1:c=b;break;case 4:return i.label++,{value:b[1],done:!1};case 5:i.label++,a=b[1],b=[0];continue;case 7:b=i.ops.pop(),i.trys.pop();continue;default:if(c=i.trys,!(c=c.length>0&&c[c.length-1])&&(b[0]===6||b[0]===2)){i=0;continue}if(b[0]===3&&(!c||b[1]>c[0]&&b[1]<c[3])){i.label=b[1];break}if(b[0]===6&&i.label<c[1]){i.label=c[1],c=b;break}if(c&&i.label<c[2]){i.label=c[2],i.ops.push(b);break}c[2]&&i.ops.pop(),i.trys.pop();continue}b=s.call(e,i)}catch(_){b=[6,_],a=0}finally{o=c=0}if(b[0]&5)throw b[1];return{value:b[0]?b[1]:void 0,done:!0}}}var __createBinding=Object.create?function(e,s,i,o){o===void 0&&(o=i);var a=Object.getOwnPropertyDescriptor(s,i);(!a||("get"in a?!s.__esModule:a.writable||a.configurable))&&(a={enumerable:!0,get:function(){return s[i]}}),Object.defineProperty(e,o,a)}:function(e,s,i,o){o===void 0&&(o=i),e[o]=s[i]};function __exportStar(e,s){for(var i in e)i!=="default"&&!Object.prototype.hasOwnProperty.call(s,i)&&__createBinding(s,e,i)}function __values(e){var s=typeof Symbol=="function"&&Symbol.iterator,i=s&&e[s],o=0;if(i)return i.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&o>=e.length&&(e=void 0),{value:e&&e[o++],done:!e}}};throw new TypeError(s?"Object is not iterable.":"Symbol.iterator is not defined.")}function __read(e,s){var i=typeof Symbol=="function"&&e[Symbol.iterator];if(!i)return e;var o=i.call(e),a,c=[],d;try{for(;(s===void 0||s-- >0)&&!(a=o.next()).done;)c.push(a.value)}catch(h){d={error:h}}finally{try{a&&!a.done&&(i=o.return)&&i.call(o)}finally{if(d)throw d.error}}return c}function __spread(){for(var e=[],s=0;s<arguments.length;s++)e=e.concat(__read(arguments[s]));return e}function __spreadArrays(){for(var e=0,s=0,i=arguments.length;s<i;s++)e+=arguments[s].length;for(var o=Array(e),a=0,s=0;s<i;s++)for(var c=arguments[s],d=0,h=c.length;d<h;d++,a++)o[a]=c[d];return o}function __spreadArray(e,s,i){if(i||arguments.length===2)for(var o=0,a=s.length,c;o<a;o++)(c||!(o in s))&&(c||(c=Array.prototype.slice.call(s,0,o)),c[o]=s[o]);return e.concat(c||Array.prototype.slice.call(s))}function __await(e){return this instanceof __await?(this.v=e,this):new __await(e)}function __asyncGenerator(e,s,i){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var o=i.apply(e,s||[]),a,c=[];return a=Object.create((typeof AsyncIterator=="function"?AsyncIterator:Object).prototype),h("next"),h("throw"),h("return",d),a[Symbol.asyncIterator]=function(){return this},a;function d(et){return function(it){return Promise.resolve(it).then(et,_e)}}function h(et,it){o[et]&&(a[et]=function(rt){return new Promise(function(lt,st){c.push([et,rt,lt,st])>1||g(et,rt)})},it&&(a[et]=it(a[et])))}function g(et,it){try{b(o[et](it))}catch(rt){$(c[0][3],rt)}}function b(et){et.value instanceof __await?Promise.resolve(et.value.v).then(_,_e):$(c[0][2],et)}function _(et){g("next",et)}function _e(et){g("throw",et)}function $(et,it){et(it),c.shift(),c.length&&g(c[0][0],c[0][1])}}function __asyncDelegator(e){var s,i;return s={},o("next"),o("throw",function(a){throw a}),o("return"),s[Symbol.iterator]=function(){return this},s;function o(a,c){s[a]=e[a]?function(d){return(i=!i)?{value:__await(e[a](d)),done:!1}:c?c(d):d}:c}}function __asyncValues(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var s=e[Symbol.asyncIterator],i;return s?s.call(e):(e=typeof __values=="function"?__values(e):e[Symbol.iterator](),i={},o("next"),o("throw"),o("return"),i[Symbol.asyncIterator]=function(){return this},i);function o(c){i[c]=e[c]&&function(d){return new Promise(function(h,g){d=e[c](d),a(h,g,d.done,d.value)})}}function a(c,d,h,g){Promise.resolve(g).then(function(b){c({value:b,done:h})},d)}}function __makeTemplateObject(e,s){return Object.defineProperty?Object.defineProperty(e,"raw",{value:s}):e.raw=s,e}var __setModuleDefault=Object.create?function(e,s){Object.defineProperty(e,"default",{enumerable:!0,value:s})}:function(e,s){e.default=s},ownKeys$1=function(e){return ownKeys$1=Object.getOwnPropertyNames||function(s){var i=[];for(var o in s)Object.prototype.hasOwnProperty.call(s,o)&&(i[i.length]=o);return i},ownKeys$1(e)};function __importStar(e){if(e&&e.__esModule)return e;var s={};if(e!=null)for(var i=ownKeys$1(e),o=0;o<i.length;o++)i[o]!=="default"&&__createBinding(s,e,i[o]);return __setModuleDefault(s,e),s}function __importDefault(e){return e&&e.__esModule?e:{default:e}}function __classPrivateFieldGet(e,s,i,o){if(i==="a"&&!o)throw new TypeError("Private accessor was defined without a getter");if(typeof s=="function"?e!==s||!o:!s.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return i==="m"?o:i==="a"?o.call(e):o?o.value:s.get(e)}function __classPrivateFieldSet(e,s,i,o,a){if(o==="m")throw new TypeError("Private method is not writable");if(o==="a"&&!a)throw new TypeError("Private accessor was defined without a setter");if(typeof s=="function"?e!==s||!a:!s.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return o==="a"?a.call(e,i):a?a.value=i:s.set(e,i),i}function __classPrivateFieldIn(e,s){if(s===null||typeof s!="object"&&typeof s!="function")throw new TypeError("Cannot use 'in' operator on non-object");return typeof e=="function"?s===e:e.has(s)}function __addDisposableResource(e,s,i){if(s!=null){if(typeof s!="object"&&typeof s!="function")throw new TypeError("Object expected.");var o,a;if(i){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");o=s[Symbol.asyncDispose]}if(o===void 0){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");o=s[Symbol.dispose],i&&(a=o)}if(typeof o!="function")throw new TypeError("Object not disposable.");a&&(o=function(){try{a.call(this)}catch(c){return Promise.reject(c)}}),e.stack.push({value:s,dispose:o,async:i})}else i&&e.stack.push({async:!0});return s}var _SuppressedError=typeof SuppressedError=="function"?SuppressedError:function(e,s,i){var o=new Error(i);return o.name="SuppressedError",o.error=e,o.suppressed=s,o};function __disposeResources(e){function s(c){e.error=e.hasError?new _SuppressedError(c,e.error,"An error was suppressed during disposal."):c,e.hasError=!0}var i,o=0;function a(){for(;i=e.stack.pop();)try{if(!i.async&&o===1)return o=0,e.stack.push(i),Promise.resolve().then(a);if(i.dispose){var c=i.dispose.call(i.value);if(i.async)return o|=2,Promise.resolve(c).then(a,function(d){return s(d),a()})}else o|=1}catch(d){s(d)}if(o===1)return e.hasError?Promise.reject(e.error):Promise.resolve();if(e.hasError)throw e.error}return a()}function __rewriteRelativeImportExtension(e,s){return typeof e=="string"&&/^\.\.?\//.test(e)?e.replace(/\.(tsx)$|((?:\.d)?)((?:\.[^./]+?)?)\.([cm]?)ts$/i,function(i,o,a,c,d){return o?s?".jsx":".js":a&&(!c||!d)?i:a+c+"."+d.toLowerCase()+"js"}):e}const tslib_es6={__extends,__assign,__rest,__decorate,__param,__esDecorate,__runInitializers,__propKey,__setFunctionName,__metadata,__awaiter,__generator,__createBinding,__exportStar,__values,__read,__spread,__spreadArrays,__spreadArray,__await,__asyncGenerator,__asyncDelegator,__asyncValues,__makeTemplateOb
vendor: 4,816 bytes, line 417
417ject,__importStar,__importDefault,__classPrivateFieldGet,__classPrivateFieldSet,__classPrivateFieldIn,__addDisposableResource,__disposeResources,__rewriteRelativeImportExtension},tslib_es6$1=Object.freeze(Object.defineProperty({__proto__:null,__addDisposableResource,get __assign(){return __assign},__asyncDelegator,__asyncGenerator,__asyncValues,__await,__awaiter,__classPrivateFieldGet,__classPrivateFieldIn,__classPrivateFieldSet,__createBinding,__decorate,__disposeResources,__esDecorate,__exportStar,__extends,__generator,__importDefault,__importStar,__makeTemplateObject,__metadata,__param,__propKey,__read,__rest,__rewriteRelativeImportExtension,__runInitializers,__setFunctionName,__spread,__spreadArray,__spreadArrays,__values,default:tslib_es6},Symbol.toStringTag,{value:"Module"}));var zeroRightClassName="right-scroll-bar-position",fullWidthClassName="width-before-scroll-bar",noScrollbarsClassName="with-scroll-bars-hidden",removedBarSizeVariable="--removed-body-scroll-bar-size";function assignRef(e,s){return typeof e=="function"?e(s):e&&(e.current=s),e}function useCallbackRef(e,s){var i=reactExports.useState(function(){return{value:e,callback:s,facade:{get current(){return i.value},set current(o){var a=i.value;a!==o&&(i.value=o,i.callback(o,a))}}}})[0];return i.callback=s,i.facade}var useIsomorphicLayoutEffect=typeof window<"u"?reactExports.useLayoutEffect:reactExports.useEffect,currentValues=new WeakMap;function useMergeRefs(e,s){var i=useCallbackRef(null,function(o){return e.forEach(function(a){return assignRef(a,o)})});return useIsomorphicLayoutEffect(function(){var o=currentValues.get(i);if(o){var a=new Set(o),c=new Set(e),d=i.current;a.forEach(function(h){c.has(h)||assignRef(h,null)}),c.forEach(function(h){a.has(h)||assignRef(h,d)})}currentValues.set(i,e)},[e]),i}function ItoI(e){return e}function innerCreateMedium(e,s){s===void 0&&(s=ItoI);var i=[],o=!1,a={read:function(){if(o)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return i.length?i[i.length-1]:e},useMedium:function(c){var d=s(c,o);return i.push(d),function(){i=i.filter(function(h){return h!==d})}},assignSyncMedium:function(c){for(o=!0;i.length;){var d=i;i=[],d.forEach(c)}i={push:function(h){return c(h)},filter:function(){return i}}},assignMedium:function(c){o=!0;var d=[];if(i.length){var h=i;i=[],h.forEach(c),d=i}var g=function(){var _=d;d=[],_.forEach(c)},b=function(){return Promise.resolve().then(g)};b(),i={push:function(_){d.push(_),b()},filter:function(_){return d=d.filter(_),i}}}};return a}function createSidecarMedium(e){e===void 0&&(e={});var s=innerCreateMedium(null);return s.options=__assign({async:!0,ssr:!1},e),s}var SideCar$1=function(e){var s=e.sideCar,i=__rest(e,["sideCar"]);if(!s)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var o=s.read();if(!o)throw new Error("Sidecar medium not found");return reactExports.createElement(o,__assign({},i))};SideCar$1.isSideCarExport=!0;function exportSidecar(e,s){return e.useMedium(s),SideCar$1}var effectCar=createSidecarMedium(),nothing=function(){},RemoveScroll=reactExports.forwardRef(function(e,s){var i=reactExports.useRef(null),o=reactExports.useState({onScrollCapture:nothing,onWheelCapture:nothing,onTouchMoveCapture:nothing}),a=o[0],c=o[1],d=e.forwardProps,h=e.children,g=e.className,b=e.removeScrollBar,_=e.enabled,_e=e.shards,$=e.sideCar,et=e.noRelative,it=e.noIsolation,rt=e.inert,lt=e.allowPinchZoom,st=e.as,ot=st===void 0?"div":st,nt=e.gapMode,at=__rest(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),ct=$,dt=useMergeRefs([i,s]),pt=__assign(__assign({},at),a);return reactExports.createElement(reactExports.Fragment,null,_&&reactExports.createElement(ct,{sideCar:effectCar,removeScrollBar:b,shards:_e,noRelative:et,noIsolation:it,inert:rt,setCallbacks:c,allowPinchZoom:!!lt,lockRef:i,gapMode:nt}),d?reactExports.cloneElement(reactExports.Children.only(h),__assign(__assign({},pt),{ref:dt})):reactExports.createElement(ot,__assign({},pt,{className:g,ref:dt}),h))});RemoveScroll.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};RemoveScroll.classNames={fullWidth:fullWidthClassName,zeroRight:zeroRightClassName};var getNonce=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function makeStyleTag(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var s=getNonce();return s&&e.setAttribute("nonce",s),e}function injectStyles(e,s){e.styleSheet?e.styleSheet.cssText=s:e.appendChild(document.createTextNode(s))}function insertStyleTag(e){var s=document.head||document.getElementsByTagName("head")[0];s.appendChild(e)}var stylesheetSingleton=function(){var e=0,s=null;
vendor: 4,590 bytes, lines 417-454
417return{add:function(i){e==0&&(s=makeStyleTag())&&(injectStyles(s,i),insertStyleTag(s)),e++},remove:function(){e--,!e&&s&&(s.parentNode&&s.parentNode.removeChild(s),s=null)}}},styleHookSingleton=function(){var e=stylesheetSingleton();return function(s,i){reactExports.useEffect(function(){return e.add(s),function(){e.remove()}},[s&&i])}},styleSingleton=function(){var e=styleHookSingleton(),s=function(i){var o=i.styles,a=i.dynamic;return e(o,a),null};return s},zeroGap={left:0,top:0,right:0,gap:0},parse=function(e){return parseInt(e||"",10)||0},getOffset=function(e){var s=window.getComputedStyle(document.body),i=s[e==="padding"?"paddingLeft":"marginLeft"],o=s[e==="padding"?"paddingTop":"marginTop"],a=s[e==="padding"?"paddingRight":"marginRight"];return[parse(i),parse(o),parse(a)]},getGapWidth=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return zeroGap;var s=getOffset(e),i=document.documentElement.clientWidth,o=window.innerWidth;return{left:s[0],top:s[1],right:s[2],gap:Math.max(0,o-i+s[2]-s[0])}},Style=styleSingleton(),lockAttribute="data-scroll-locked",getStyles=function(e,s,i,o){var a=e.left,c=e.top,d=e.right,h=e.gap;return i===void 0&&(i="margin"),` 418 .`.concat(noScrollbarsClassName,` { 419 overflow: hidden `).concat(o,`; 420 padding-right: `).concat(h,"px ").concat(o,`; 421 } 422 body[`).concat(lockAttribute,`] { 423 overflow: hidden `).concat(o,`; 424 overscroll-behavior: contain; 425 `).concat([s&&"position: relative ".concat(o,";"),i==="margin"&&` 426 padding-left: `.concat(a,`px; 427 padding-top: `).concat(c,`px; 428 padding-right: `).concat(d,`px; 429 margin-left:0; 430 margin-top:0; 431 margin-right: `).concat(h,"px ").concat(o,`; 432 `),i==="padding"&&"padding-right: ".concat(h,"px ").concat(o,";")].filter(Boolean).join(""),` 433 } 434 435 .`).concat(zeroRightClassName,` { 436 right: `).concat(h,"px ").concat(o,`; 437 } 438 439 .`).concat(fullWidthClassName,` { 440 margin-right: `).concat(h,"px ").concat(o,`; 441 } 442 443 .`).concat(zeroRightClassName," .").concat(zeroRightClassName,` { 444 right: 0 `).concat(o,`; 445 } 446 447 .`).concat(fullWidthClassName," .").concat(fullWidthClassName,` { 448 margin-right: 0 `).concat(o,`; 449 } 450 451 body[`).concat(lockAttribute,`] { 452 `).concat(removedBarSizeVariable,": ").concat(h,`px; 453 } 454`)},getCurrentUseCounter=function(){var e=parseInt(document.body.getAttribute(lockAttribute)||"0",10);return isFinite(e)?e:0},useLockAttribute=function(){reactExports.useEffect(function(){return document.body.setAttribute(lockAttribute,(getCurrentUseCounter()+1).toString()),function(){var e=getCurrentUseCounter()-1;e<=0?document.body.removeAttribute(lockAttribute):document.body.setAttribute(lockAttribute,e.toString())}},[])},RemoveScrollBar=function(e){var s=e.noRelative,i=e.noImportant,o=e.gapMode,a=o===void 0?"margin":o;useLockAttribute();var c=reactExports.useMemo(function(){return getGapWidth(a)},[a]);return reactExports.createElement(Style,{styles:getStyles(c,!s,a,i?"":"!important")})},passiveSupported=!1;if(typeof window<"u")try{var options=Object.defineProperty({},"passive",{get:function(){return passiveSupported=!0,!0}});window.addEventListener("test",options,options),window.removeEventListener("test",options,options)}catch{passiveSupported=!1}var nonPassive=passiveSupported?{passive:!1}:!1,alwaysContainsScroll=function(e){return e.tagName==="TEXTAREA"},elementCanBeScrolled=function(e,s){if(!(e instanceof Element))return!1;var i=window.getComputedStyle(e);return i[s]!=="hidden"&&!(i.overflowY===i.overflowX&&!alwaysContainsScroll(e)&&i[s]==="visible")},elementCouldBeVScrolled=function(e){return elementCanBeScrolled(e,"overflowY")},elementCouldBeHScrolled=function(e){return elementCanBeScrolled(e,"overflowX")},locationCouldBeScrolled=function(e,s){var i=s.ownerDocument,o=s;do{typeof ShadowRoot<"u"&&o instanceof ShadowRoot&&(o=o.host);var a=elementCouldBeScrolled(e,o);if(a){var c=getScrollVariables(e,o),d=c[1],h=c[2];if(d>h)return!0}o=o.parentNode}while(o&&o!==i.body);return!1},getVScrollVariables=function(e){var s=e.scrollTop,i=e.scrollHeight,o=e.clientHeight;return[s,i,o]},getHScrollVariables=function(e){var s=e.scrollLeft,i=e.scrollWidth,o=e.clientWidth;return[s,i,o]},elementCouldBeScrolled=function(e,s){return e==="v"?elementCouldBeVScrolled(s):elementCouldBeHScrolled(s)},getScrollVariables=function(e,s){return e==="v"?getVScrollVariables(s):getHScrollVariables(s)},getDirectionFactor=function(e,s){return e==="h"&&s==="rtl"?-1:1},handleScroll=function(e,s,i,o,a){var c=getDirectionFactor(e,window.getComputedStyle(s).direction),d=c*o,h=i.target,g=s.contains(h),b=!1,_=d>0,_e=0,$=0;
vendor: 10,576 bytes, lines 454-457
454do{if(!h)break;var et=getScrollVariables(e,h),it=et[0],rt=et[1],lt=et[2],st=rt-lt-c*it;(it||st)&&elementCouldBeScrolled(e,h)&&(_e+=st,$+=it);var ot=h.parentNode;h=ot&&ot.nodeType===Node.DOCUMENT_FRAGMENT_NODE?ot.host:ot}while(!g&&h!==document.body||g&&(s.contains(h)||s===h));return(_&&Math.abs(_e)<1||!_&&Math.abs($)<1)&&(b=!0),b},getTouchXY=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},getDeltaXY=function(e){return[e.deltaX,e.deltaY]},extractRef=function(e){return e&&"current"in e?e.current:e},deltaCompare=function(e,s){return e[0]===s[0]&&e[1]===s[1]},generateStyle=function(e){return` 455 .block-interactivity-`.concat(e,` {pointer-events: none;} 456 .allow-interactivity-`).concat(e,` {pointer-events: all;} 457`)},idCounter=0,lockStack=[];function RemoveScrollSideCar(e){var s=reactExports.useRef([]),i=reactExports.useRef([0,0]),o=reactExports.useRef(),a=reactExports.useState(idCounter++)[0],c=reactExports.useState(styleSingleton)[0],d=reactExports.useRef(e);reactExports.useEffect(function(){d.current=e},[e]),reactExports.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(a));var rt=__spreadArray([e.lockRef.current],(e.shards||[]).map(extractRef),!0).filter(Boolean);return rt.forEach(function(lt){return lt.classList.add("allow-interactivity-".concat(a))}),function(){document.body.classList.remove("block-interactivity-".concat(a)),rt.forEach(function(lt){return lt.classList.remove("allow-interactivity-".concat(a))})}}},[e.inert,e.lockRef.current,e.shards]);var h=reactExports.useCallback(function(rt,lt){if("touches"in rt&&rt.touches.length===2||rt.type==="wheel"&&rt.ctrlKey)return!d.current.allowPinchZoom;var st=getTouchXY(rt),ot=i.current,nt="deltaX"in rt?rt.deltaX:ot[0]-st[0],at="deltaY"in rt?rt.deltaY:ot[1]-st[1],ct,dt=rt.target,pt=Math.abs(nt)>Math.abs(at)?"h":"v";if("touches"in rt&&pt==="h"&&dt.type==="range")return!1;var mt=locationCouldBeScrolled(pt,dt);if(!mt)return!0;if(mt?ct=pt:(ct=pt==="v"?"h":"v",mt=locationCouldBeScrolled(pt,dt)),!mt)return!1;if(!o.current&&"changedTouches"in rt&&(nt||at)&&(o.current=ct),!ct)return!0;var St=o.current||ct;return handleScroll(St,lt,rt,St==="h"?nt:at)},[]),g=reactExports.useCallback(function(rt){var lt=rt;if(!(!lockStack.length||lockStack[lockStack.length-1]!==c)){var st="deltaY"in lt?getDeltaXY(lt):getTouchXY(lt),ot=s.current.filter(function(ct){return ct.name===lt.type&&(ct.target===lt.target||lt.target===ct.shadowParent)&&deltaCompare(ct.delta,st)})[0];if(ot&&ot.should){lt.cancelable&<.preventDefault();return}if(!ot){var nt=(d.current.shards||[]).map(extractRef).filter(Boolean).filter(function(ct){return ct.contains(lt.target)}),at=nt.length>0?h(lt,nt[0]):!d.current.noIsolation;at&<.cancelable&<.preventDefault()}}},[]),b=reactExports.useCallback(function(rt,lt,st,ot){var nt={name:rt,delta:lt,target:st,should:ot,shadowParent:getOutermostShadowParent(st)};s.current.push(nt),setTimeout(function(){s.current=s.current.filter(function(at){return at!==nt})},1)},[]),_=reactExports.useCallback(function(rt){i.current=getTouchXY(rt),o.current=void 0},[]),_e=reactExports.useCallback(function(rt){b(rt.type,getDeltaXY(rt),rt.target,h(rt,e.lockRef.current))},[]),$=reactExports.useCallback(function(rt){b(rt.type,getTouchXY(rt),rt.target,h(rt,e.lockRef.current))},[]);reactExports.useEffect(function(){return lockStack.push(c),e.setCallbacks({onScrollCapture:_e,onWheelCapture:_e,onTouchMoveCapture:$}),document.addEventListener("wheel",g,nonPassive),document.addEventListener("touchmove",g,nonPassive),document.addEventListener("touchstart",_,nonPassive),function(){lockStack=lockStack.filter(function(rt){return rt!==c}),document.removeEventListener("wheel",g,nonPassive),document.removeEventListener("touchmove",g,nonPassive),document.removeEventListener("touchstart",_,nonPassive)}},[]);var et=e.removeScrollBar,it=e.inert;return reactExports.createElement(reactExports.Fragment,null,it?reactExports.createElement(c,{styles:generateStyle(a)}):null,et?reactExports.createElement(RemoveScrollBar,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function getOutermostShadowParent(e){for(var s=null;e!==null;)e instanceof ShadowRoot&&(s=e.host,e=e.host),e=e.parentNode;return s}const SideCar=exportSidecar(effectCar,RemoveScrollSideCar);var ReactRemoveScroll=reactExports.forwardRef(function(e,s){return reactExports.createElement(RemoveScroll,__assign({},e,{ref:s,sideCar:SideCar}))});ReactRemoveScroll.classNames=RemoveScroll.classNames;var getDefaultParent=function(e){if(typeof document>"u")return null;var s=Array.isArray(e)?e[0]:e;return s.ownerDocument.body},counterMap=new WeakMap,uncontrolledNodes=new WeakMap,markerMap={},lockCount=0,unwrapHost=function(e){return e&&(e.host||unwrapHost(e.parentNode))},correctTargets=function(e,s){return s.map(function(i){if(e.contains(i))return i;var o=unwrapHost(i);return o&&e.contains(o)?o:(console.error("aria-hidden",i,"in not contained inside",e,". Doing nothing"),null)}).filter(function(i){return!!i})},applyAttributeToOthers=function(e,s,i,o){var a=correctTargets(s,Array.isArray(e)?e:[e]);markerMap[i]||(markerMap[i]=new WeakMap);var c=markerMap[i],d=[],h=new Set,g=new Set(a),b=function(_e){!_e||h.has(_e)||(h.add(_e),b(_e.parentNode))};a.forEach(b);var _=function(_e){!_e||g.has(_e)||Array.prototype.forEach.call(_e.children,function($){if(h.has($))_($);else try{var et=$.getAttribute(o),it=et!==null&&et!=="false",rt=(counterMap.get($)||0)+1,lt=(c.get($)||0)+1;counterMap.set($,rt),c.set($,lt),d.push($),rt===1&&it&&uncontrolledNodes.set($,!0),lt===1&&$.setAttribute(i,"true"),it||$.setAttribute(o,"true")}catch(st){console.error("aria-hidden: cannot operate on ",$,st)}})};return _(s),h.clear(),lockCount++,function(){d.forEach(function(_e){var $=counterMap.get(_e)-1,et=c.get(_e)-1;counterMap.set(_e,$),c.set(_e,et),$||(uncontrolledNodes.has(_e)||_e.removeAttribute(o),uncontrolledNodes.delete(_e)),et||_e.removeAttribute(i)}),lockCount--,lockCount||(counterMap=new WeakMap,counterMap=new WeakMap,uncontrolledNodes=new WeakMap,markerMap={})}},hideOthers=function(e,s,i){i===void 0&&(i="data-aria-hidden");var o=Array.from(Array.isArray(e)?e:[e]),a=getDefaultParent(e);return a?(o.push.apply(o,Array.from(a.querySelectorAll("[aria-live]"))),applyAttributeToOthers(o,a,i,"aria-hidden")):function(){return null}},DIALOG_NAME="Dialog",[createDialogContext,createDialogScope]=createContextScope(DIALOG_NAME),[DialogProvider,useDialogContext]=createDialogContext(DIALOG_NAME),Dialog$1=e=>{const{__scopeDialog:s,children:i,open:o,defaultOpen:a,onOpenChange:c,modal:d=!0}=e,h=reactExports.useRef(null),g=reactExports.useRef(null),[b,_]=useControllableState({prop:o,defaultProp:a??!1,onChange:c,caller:DIALOG_NAME});return jsxRuntimeExports.jsx(DialogProvider,{scope:s,triggerRef:h,contentRef:g,contentId:useId(),titleId:useId(),descriptionId:useId(),open:b,onOpenChange:_,onOpenToggle:reactExports.useCallback(()=>_(_e=>!_e),[_]),modal:d,children:i})};Dialog$1.displayName=DIALOG_NAME;var TRIGGER_NAME$2="DialogTrigger",DialogTrigger$1=reactExports.forwardRef((e,s)=>{const{__scopeDialog:i,...o}=e,a=useDialogContext(TRIGGER_NAME$2,i),c=useComposedRefs(s,a.triggerRef);return jsxRuntimeExports.jsx(Primitive.button,{type:"button","aria-haspopup":"dialog","aria-expanded":a.open,"aria-controls":a.contentId,"data-state":getState$1(a.open),...o,ref:c,onClick:composeEventHandlers(e.onClick,a.onOpenToggle)})});DialogTrigger$1.displayName=TRIGGER_NAME$2;var PORTAL_NAME$3="DialogPortal",[PortalProvider$2,usePortalContext$2]=createDialogContext(PORTAL_NAME$3,{forceMount:void 0}),DialogPortal$1=e=>{const{__scopeDialog:s,forceMount:i,children:o,container:a}=e,c=useDialogContext(PORTAL_NAME$3,s);return jsxRuntimeExports.jsx(PortalProvider$2,{scope:s,forceMount:i,children:reactExports.Children.map(o,d=>jsxRuntimeExports.jsx(Presence,{present:i||c.open,children:jsxRuntimeExports.jsx(Portal$3,{asChild:!0,container:a,children:d})}))})};DialogPortal$1.displayName=PORTAL_NAME$3;var OVERLAY_NAME="DialogOverlay",DialogOverlay$1=reactExports.forwardRef((e,s)=>{const i=usePortalContext$2(OVERLAY_NAME,e.__scopeDialog),{forceMount:o=i.forceMount,...a}=e,c=useDialogContext(OVERLAY_NAME,e.__scopeDialog);return c.modal?jsxRuntimeExports.jsx(Presence,{present:o||c.open,children:jsxRuntimeExports.jsx(DialogOverlayImpl,{...a,ref:s})}):null});DialogOverlay$1.displayName=OVERLAY_NAME;var Slot$2=createSlot("DialogOverlay.RemoveScroll"),DialogOverlayImpl=reactExports.forwardRef((e,s)=>{const{__scopeDialog:i,...o}=e,a=useDialogContext(OVERLAY_NAME,i);return jsxRuntimeExports.jsx(ReactRemoveScroll,{as:Slot$2,allowPinchZoom:!0,shards:[a.contentRef],children:jsxRuntimeExports.jsx(Primitive.div,{"data-state":getState$1(a.open),...o,ref:s,style:{pointerEvents:"auto",...o.style}})})}),CONTENT_NAME$3="DialogContent",DialogContent$1=reactExports.forwardRef((e,s)=>{const i=usePortalContext$2(CONTENT_NAME$3,e.__scopeDialog),{forceMount:o=i.forceMount,...a}=e,c=useDialogContext(CONTENT_NAME$3,e.__scopeDialog);return jsxRuntimeExports.jsx(Presence,{present:o||c.open,children:c.modal?jsxRuntimeExports.jsx(DialogContentModal,{...a,ref:s}):jsxRuntimeExports.jsx(DialogContentNonModal,{...a,ref:s})})});DialogContent$1.displayName=CONTENT_NAME$3;var DialogContentModal=reactExports.forwardRef((e,s)=>{const i=useDialogContext(CONTENT_NAME$3,e.__scopeDialog),o=reactExports.useRef(null),a=useComposedRefs(s,i.contentRef,o);return reactExports.useEffect(()=>{const c=o.current;if(c)return hideOthers(c)},[]),jsxRuntimeExports.jsx(DialogContentImpl,{...e,ref:a,trapFocus:i.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:composeEventHandlers(e.onCloseAutoFocus,c=>{var d;c.preventDefault(),(d=i.triggerRef.current)==null||d.focus()}),onPointerDownOutside:composeEventHandlers(e.onPointerDownOutside,c=>{const d=c.detail.originalEvent,h=d.button===0&&d.ctrlKey===!0;(d.button===2||h)&&c.preventDefault()}),onFocusOutside:composeEventHandlers(e.onFocusOutside,c=>c.preventDefault())})}),DialogContentNonModal=reactExports.forwardRef((e,s)=>{const i=useDialogContext(CONTENT_NAME$3,e.__scopeDialog),o=reactExports.useRef(!1),a=reactExports.useRef(!1);return jsxRuntimeExports.jsx(DialogContentImpl,{...e,ref:s,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:c=>{var d,h;(d=e.onCloseAutoFocus)==null||d.call(e,c),c.defaultPrevented||(o.current||(h=i.triggerRef.current)==null||h.focus(),c.preventDefault()),o.current=!1,a.current=!1},onInteractOutside:c=>{var g,b;(g=e.onInteractOutside)==null||g.call(e,c),c.defaultPrevented||(o.current=!0,
457c.detail.originalEvent.type==="pointerdown"&&(a.current=!0));const d=c.target;((b=i.triggerRef.current)==null?void 0:b.contains(d))&&c.preventDefault(),c.detail.originalEvent.type==="focusin"&&a.current&&c.preventDefault()}})}),DialogContentImpl=reactExports.forwardRef((e,s)=>{const{__scopeDialog:i,trapFocus:o,onOpenAutoFocus:a,onCloseAutoFocus:c,...d}=e,h=useDialogContext(CONTENT_NAME$3,i),g=reactExports.useRef(null),b=useComposedRefs(s,g);return useFocusGuards(),jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(FocusScope,{asChild:!0,loop:!0,trapped:o,onMountAutoFocus:a,onUnmountAutoFocus:c,children:jsxRuntimeExports.jsx(DismissableLayer,{role:"dialog",id:h.contentId,"aria-describedby":h.descriptionId,"aria-labelledby":h.titleId,"data-state":getState$1(h.open),...d,ref:b,onDismiss:()=>h.onOpenChange(!1)})}),jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(TitleWarning,{titleId:h.titleId}),jsxRuntimeExports.jsx(DescriptionWarning,{contentRef:g,descriptionId:h.descriptionId})]})]})}),TITLE_NAME="DialogTitle",DialogTitle$1=reactExports.forwardRef((e,s)=>{const{__scopeDialog:i,...o}=e,a=useDialogContext(TITLE_NAME,i);return jsxRuntimeExports.jsx(Primitive.h2,{id:a.titleId,...o,ref:s})});DialogTitle$1.displayName=TITLE_NAME;var DESCRIPTION_NAME="DialogDescription",DialogDescription$1=reactExports.forwardRef((e,s)=>{const{__scopeDialog:i,...o}=e,a=useDialogContext(DESCRIPTION_NAME,i);return jsxRuntimeExports.jsx(Primitive.p,{id:a.descriptionId,...o,ref:s})});DialogDescription$1.displayName=DESCRIPTION_NAME;var CLOSE_NAME$1="DialogClose",DialogClose=reactExports.forwardRef((e,s)=>{const{__scopeDialog:i,...o}=e,a=useDialogContext(CLOSE_NAME$1,i);return jsxRuntimeExports.jsx(Primitive.button,{type:"button",...o,ref:s,onClick:composeEventHandlers(e.onClick,()=>a.onOpenChange(!1))})});DialogClose.displayName=CLOSE_NAME$1;function getState$1(e){return e?"open":"closed"}var TITLE_WARNING_NAME="DialogTitleWarning",[WarningProvider,useWarningContext]=createContext2(TITLE_WARNING_NAME,{contentName:CONTENT_NAME$3,titleName:TITLE_NAME,docsSlug:"dialog"}),TitleWarning=({titleId:e})=>{const s=useWarningContext(TITLE_WARNING_NAME),i=`\`${s.contentName}\` requires a \`${s.titleName}\` for the component to be accessible for screen reader users. 458 459If you want to hide the \`${s.titleName}\`, you can wrap it with our VisuallyHidden component. 460 461For more information, see https://radix-ui.com/primitives/docs/components/${s.docsSlug}`;return reactExports.useEffect(()=>{e&&(document.getElementById(e)||console.error(i))},[i,e]),null},DESCRIPTION_WARNING_NAME="DialogDescriptionWarning",DescriptionWarning=({contentRef:e,descriptionId:s})=>{const o=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${useWarningContext(DESCRIPTION_WARNING_NAME).contentName}}.`;return reactExports.useEffect(()=>{var c;const a=(c=e.current)==null?void 0:c.getAttribute("aria-describedby");s&&a&&(document.getElementById(s)||console.warn(o))},[o,e,s]),null},Root$3=Dialog$1,Trigger$2=DialogTrigger$1,Portal$2=DialogPortal$1,Overlay=DialogOverlay$1,Content=DialogContent$1,Title=DialogTitle$1,Description=DialogDescription$1,Close=DialogClose;const Sheet=Root$3,SheetTrigger=Trigger$2,SheetPortal=Portal$2,SheetOverlay=reactExports.forwardRef(({className:e,...s},i)=>jsxRuntimeExports.jsx(Overlay,{className:cn("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...s,ref:i}));SheetOverlay.displayName=Overlay.displayName;const sheetVariants=cva("fixed z-50 gap-4 bg-background p-6 shadow-lg transition ease-in-out data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:duration-300 data-[state=open]:duration-500",{variants:{side:{top:"inset-x-0 top-0 border-b data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top",bottom:"inset-x-0 bottom-0 border-t data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom",left:"inset-y-0 left-0 h-full w-3/4 border-r data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left sm:max-w-sm",right:"inset-y-0 right-0 h-full w-3/4 border-l data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right sm:max-w-sm"}},defaultVariants:{side:"right"}}),SheetContent=reactExports.forwardRef(({side:e="right",className:s,children:i,...o},a)=>jsxRuntimeExports.jsxs(SheetPortal,{children:[jsxRuntimeExports.jsx(SheetOverlay,{}),jsxRuntimeExports.jsxs(Content,{ref:a,className:cn(sheetVariants({side:e}),s),...o,children:[i,jsxRuntimeExports.jsxs(Close,{className:"absolute right-4 top-4 roun
461ded-sm opacity-70 ring-offset-background transition-opacity data-[state=open]:bg-secondary hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none",children:[jsxRuntimeExports.jsx(X,{className:"h-4 w-4"}),jsxRuntimeExports.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));SheetContent.displayName=Content.displayName;const SheetTitle=reactExports.forwardRef(({className:e,...s},i)=>jsxRuntimeExports.jsx(Title,{ref:i,className:cn("text-lg font-semibold text-foreground",e),...s}));SheetTitle.displayName=Title.displayName;const SheetDescription=reactExports.forwardRef(({className:e,...s},i)=>jsxRuntimeExports.jsx(Description,{ref:i,className:cn("text-sm text-muted-foreground",e),...s}));SheetDescription.displayName=Description.displayName;function Skeleton({className:e,...s}){return jsxRuntimeExports.jsx("div",{className:cn("animate-pulse rounded-md bg-muted",e),...s})}const SIDEBAR_COOKIE_NAME="sidebar:state",SIDEBAR_COOKIE_MAX_AGE=60*60*24*7,SIDEBAR_WIDTH="16rem",SIDEBAR_WIDTH_MOBILE="18rem",SIDEBAR_WIDTH_ICON="3rem",SIDEBAR_KEYBOARD_SHORTCUT="b",SidebarContext=reactExports.createContext(null);function useSidebar(){const e=reactExports.useContext(SidebarContext);if(!e)throw new Error("useSidebar must be used within a SidebarProvider.");return e}const SidebarProvider=reactExports.forwardRef(({defaultOpen:e=!0,open:s,onOpenChange:i,className:o,style:a,children:c,...d},h)=>{const g=useIsMobile(),[b,_]=reactExports.useState(!1),[_e,$]=reactExports.useState(e),et=s??_e,it=reactExports.useCallback(ot=>{const nt=typeof ot=="function"?ot(et):ot;i?i(nt):$(nt),document.cookie=`${SIDEBAR_COOKIE_NAME}=${nt}; path=/; max-age=${SIDEBAR_COOKIE_MAX_AGE}`},[i,et]),rt=reactExports.useCallback(()=>g?_(ot=>!ot):it(ot=>!ot),[g,it,_]);reactExports.useEffect(()=>{const ot=nt=>{nt.key===SIDEBAR_KEYBOARD_SHORTCUT&&(nt.metaKey||nt.ctrlKey)&&(nt.preventDefault(),rt())};return window.addEventListener("keydown",ot),()=>window.removeEventListener("keydown",ot)},[rt]);const lt=et?"expanded":"collapsed",st=reactExports.useMemo(()=>({state:lt,open:et,setOpen:it,isMobile:g,openMobile:b,setOpenMobile:_,toggleSidebar:rt}),[lt,et,it,g,b,_,rt]);return jsxRuntimeExports.jsx(SidebarContext.Provider,{value:st,children:jsxRuntimeExports.jsx(TooltipProvider,{delayDuration:0,children:jsxRuntimeExports.jsx("div",{style:{"--sidebar-width":SIDEBAR_WIDTH,"--sidebar-width-icon":SIDEBAR_WIDTH_ICON,...a},className:cn("group/sidebar-wrapper flex min-h-svh w-full has-[[data-variant=inset]]:bg-sidebar",o),ref:h,...d,children:c})})})});SidebarProvider.displayName="SidebarProvider";const Sidebar=reactExports.forwardRef(({side:e="left",variant:s="sidebar",collapsible:i="offcanvas",className:o,children:a,...c},d)=>{const{isMobile:h,state:g,openMobile:b,setOpenMobile:_}=useSidebar();return i==="none"?jsxRuntimeExports.jsx("div",{className:cn("flex h-full w-[--sidebar-width] flex-col bg-sidebar text-sidebar-foreground",o),ref:d,...c,children:a}):h?jsxRuntimeExports.jsx(Sheet,{open:b,onOpenChange:_,...c,children:jsxRuntimeExports.jsx(SheetContent,{"data-sidebar":"sidebar","data-mobile":"true",className:"w-[--sidebar-width] bg-sidebar p-0 text-sidebar-foreground [&>button]:hidden",style:{"--sidebar-width":SIDEBAR_WIDTH_MOBILE},side:e,children:jsxRuntimeExports.jsx("div",{className:"flex h-full w-full flex-col",children:a})})}):jsxRuntimeExports.jsxs("div",{ref:d,className:"group peer hidden text-sidebar-foreground md:block","data-state":g,"data-collapsible":g==="collapsed"?i:"","data-variant":s,"data-side":e,children:[jsxRuntimeExports.jsx("div",{className:cn("relative h-svh w-[--sidebar-width] bg-transparent transition-[width] duration-200 ease-linear","group-data-[collapsible=offcanvas]:w-0","group-data-[side=right]:rotate-180",s==="floating"||s==="inset"?"group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)_+_theme(spacing.4))]":"group-data-[collapsible=icon]:w-[--sidebar-width-icon]")}),jsxRuntimeExports.jsx("div",{className:cn("fixed inset-y-0 z-10 hidden h-svh w-[--sidebar-width] transition-[left,right,width] duration-200 ease-linear md:flex",e==="left"?"left-0 group-data-[collapsible=offcanvas]:left-[calc(var(--sidebar-width)*-1)]":"right-0 group-data-[collapsible=offcanvas]:right-[calc(var(--sidebar-width)*-1)]",s==="floating"||s==="inset"?"p-2 group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)_+_theme(spacing.4)_+2px)]":"group-data-[collapsible=icon]:w-[--sidebar-width-icon] group-data-[side=left]:border-r group-data-[side=right]:border-l",o),...c,children:jsxRuntimeExports.jsx("div",{"data-sidebar":"sidebar",className:"flex h-full w-full flex-col bg-sidebar group-data-[variant=floating]:rounded-lg group-data-[variant=floating]:border group-data-[variant=floating]:border-sidebar-border group-data-[variant=floating]:shadow",children:a})})]})});Sidebar.displayName="Sidebar";const SidebarTrigger=reactExports.forwardRef(({className:e,onClick:s,...i},o)=>{const{toggleSidebar:a}=useSidebar();return jsxRuntimeExports.jsxs(Button,{ref:o,"data-sidebar":"trigger",variant:"ghost",size:"icon",className:cn("h-7 w-7",e),onClick:c=>{s==null||s(c),a()},...i,children:[jsxRuntimeExports.jsx(PanelLeft,{}),jsxRuntimeExports.jsx("span",{className:"sr-only",children:"Toggle Sidebar"})]})});SidebarTrigger.displayName="SidebarTrigger";const SidebarRail=reactExports.forwardRef(({className:e,...s},i)=>{const{toggleSidebar:o}=useSidebar();return jsxRuntimeExports.jsx("button",{ref:i,"data-sidebar":"rail","aria-label":"Toggle Sidebar",tabIndex:-1,onClick:o,title:"Toggle Sidebar",className:cn("absolute inset-y-0 z-20 hidden w-4 -translate-x-1/2 transition-all ease-linear after:absolute after:inset-y-0 after:left-1/2 after:w-[2px] group-data-[side=left]:-right-4 group-data-[side=right]:left-0 hover:after:bg-sidebar-border sm:flex","[[data-side=left]_&]:cursor-w-resize [[data-side=right]_&]:cursor-e-resize","[[data-side=left][data-state=collapsed]_&]:cursor-e-resize [[data-side=right][data-state=collapsed]_&]:cursor-w-resize","group-data-[collapsible=offcanvas]:translate-x-0 group-data-[collapsible=offcanvas]:after:left-full group-data-[collapsible=offcanvas]:hover:bg-sidebar","[[data-side=left][data-collapsible=offcanvas]_&]:-right-2","[[data-side=right][data-collapsible=offcanvas]_&]:-left-2",e),...s})});SidebarRail.displayName="SidebarRail";const SidebarInset=reactExports.forwardRef(({className:e,...s},i)=>jsxRuntimeExports.jsx("main",{ref:i,className:cn("relative flex min-h-svh flex-1 flex-col bg-background","peer-data-[variant=inset]:min-
461h-[calc(100svh-theme(spacing.4))] md:peer-data-[variant=inset]:m-2 md:peer-data-[state=collapsed]:peer-data-[variant=inset]:ml-2 md:peer-data-[variant=inset]:ml-0 md:peer-data-[variant=inset]:rounded-xl md:peer-data-[variant=inset]:shadow",e),...s}));SidebarInset.displayName="SidebarInset";const SidebarInput=reactExports.forwardRef(({className:e,...s},i)=>jsxRuntimeExports.jsx(Input,{ref:i,"data-sidebar":"input",className:cn("h-8 w-full bg-background shadow-none focus-visible:ring-2 focus-visible:ring-sidebar-ring",e),...s}));SidebarInput.displayName="SidebarInput";const SidebarHeader=reactExports.forwardRef(({className:e,...s},i)=>jsxRuntimeExports.jsx("div",{ref:i,"data-sidebar":"header",className:cn("flex flex-col gap-2 p-2",e),...s}));SidebarHeader.displayName="SidebarHeader";const SidebarFooter=reactExports.forwardRef(({className:e,...s},i)=>jsxRuntimeExports.jsx("div",{ref:i,"data-sidebar":"footer",className:cn("flex flex-col gap-2 p-2",e),...s}));SidebarFooter.displayName="SidebarFooter";const SidebarSeparator=reactExports.forwardRef(({className:e,...s},i)=>jsxRuntimeExports.jsx(Separator$1,{ref:i,"data-sidebar":"separator",className:cn("mx-2 w-auto bg-sidebar-border",e),...s}));SidebarSeparator.displayName="SidebarSeparator";const SidebarContent=reactExports.forwardRef(({className:e,...s},i)=>jsxRuntimeExports.jsx("div",{ref:i,"data-sidebar":"content",className:cn("flex min-h-0 flex-1 flex-col gap-2 overflow-auto group-data-[collapsible=icon]:overflow-hidden",e),...s}));SidebarContent.displayName="SidebarContent";const SidebarGroup=reactExports.forwardRef(({className:e,...s},i)=>jsxRuntimeExports.jsx("div",{ref:i,"data-sidebar":"group",className:cn("relative flex w-full min-w-0 flex-col p-2",e),...s}));SidebarGroup.displayName="SidebarGroup";const SidebarGroupLabel=reactExports.forwardRef(({className:e,asChild:s=!1,...i},o)=>{const a=s?Slot$3:"div";return jsxRuntimeExports.jsx(a,{ref:o,"data-sidebar":"group-label",className:cn("flex h-8 shrink-0 items-center rounded-md px-2 text-xs font-medium text-sidebar-foreground/70 outline-none ring-sidebar-ring transition-[margin,opa] duration-200 ease-linear focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0","group-data-[collapsible=icon]:-mt-8 group-data-[collapsible=icon]:opacity-0",e),...i})});SidebarGroupLabel.displayName="SidebarGroupLabel";const SidebarGroupAction=reactExports.forwardRef(({className:e,asChild:s=!1,...i},o)=>{const a=s?Slot$3:"button";return jsxRuntimeExports.jsx(a,{ref:o,"data-sidebar":"group-action",className:cn("absolute right-3 top-3.5 flex aspect-square w-5 items-center justify-center rounded-md p-0 text-sidebar-foreground outline-none ring-sidebar-ring transition-transform hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0","after:absolute after:-inset-2 after:md:hidden","group-data-[collapsible=icon]:hidden",e),...i})});SidebarGroupAction.displayName="SidebarGroupAction";const SidebarGroupContent=reactExports.forwardRef(({className:e,...s},i)=>jsxRuntimeExports.jsx("div",{ref:i,"data-sidebar":"group-content",className:cn("w-full text-sm",e),...s}));SidebarGroupContent.displayName="SidebarGroupContent";const SidebarMenu=reactExports.forwardRef(({className:e,...s},i)=>jsxRuntimeExports.jsx("ul",{ref:i,"data-sidebar":"menu",className:cn("flex w-full min-w-0 flex-col gap-1",e),...s}));SidebarMenu.displayName="SidebarMenu";const SidebarMenuItem=reactExports.forwardRef(({className:e,...s},i)=>jsxRuntimeExports.jsx("li",{ref:i,"data-sidebar":"menu-item",className:cn("group/menu-item relative",e),...s}));SidebarMenuItem.displayName="SidebarMenuItem";const sidebarMenuButtonVariants=cva("peer/menu-button flex w-full items-center gap-2 overflow-hidden rounded-md p-2 text-left text-sm outline-none ring-sidebar-ring transition-[width,height,padding] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 group-has-[[data-sidebar=menu-action]]/menu-item:pr-8 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[active=true]:bg-sidebar-accent data-[active=true]:font-medium data-[active=true]:text-sidebar-accent-foreground data-[state=open]:hover:bg-sidebar-accent data-[state=open]:hover:text-sidebar-accent-foreground group-data-[collapsible=icon]:!size-8 group-data-[collapsible=icon]:!p-2 [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0",{variants:{variant:{default:"hover:bg-sidebar-accent hover:text-sidebar-accent-foreground",outline:"bg-background shadow-[0_0_0_1px_hsl(var(--sidebar-border))] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground hover:shadow-[0_0_0_1px_hsl(var(--sidebar-accent))]"},size:{default:"h-8 text-sm",sm:"h-7 text-xs",lg:"h-12 text-sm group-data-[collapsible=icon]:!p-0"}},defaultVariants:{variant:"default",size:"default"}}),SidebarMenuButton=reactExports.forwardRef(({asChild:e=!1,isActive:s=!1,variant:i="default",size:o="default",tooltip:a,className:c,...d},h)=>{const g=e?Slot$3:"button",{isMobile:b,state:_}=useSidebar(),_e=jsxRuntimeExports.jsx(g,{ref:h,"data-sidebar":"menu-button","data-size":o,"data-active":s,className:cn(sidebarMenuButtonVariants({variant:i,size:o}),c),...d});
461return a?(typeof a=="string"&&(a={children:a}),jsxRuntimeExports.jsxs(Tooltip,{children:[jsxRuntimeExports.jsx(TooltipTrigger,{asChild:!0,children:_e}),jsxRuntimeExports.jsx(TooltipContent,{side:"right",align:"center",hidden:_!=="collapsed"||b,...a})]})):_e});SidebarMenuButton.displayName="SidebarMenuButton";const SidebarMenuAction=reactExports.forwardRef(({className:e,asChild:s=!1,showOnHover:i=!1,...o},a)=>{const c=s?Slot$3:"button";return jsxRuntimeExports.jsx(c,{ref:a,"data-sidebar":"menu-action",className:cn("absolute right-1 top-1.5 flex aspect-square w-5 items-center justify-center rounded-md p-0 text-sidebar-foreground outline-none ring-sidebar-ring transition-transform peer-hover/menu-button:text-sidebar-accent-foreground hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0","after:absolute after:-inset-2 after:md:hidden","peer-data-[size=sm]/menu-button:top-1","peer-data-[size=default]/menu-button:top-1.5","peer-data-[size=lg]/menu-button:top-2.5","group-data-[collapsible=icon]:hidden",i&&"group-focus-within/menu-item:opacity-100 group-hover/menu-item:opacity-100 data-[state=open]:opacity-100 peer-data-[active=true]/menu-button:text-sidebar-accent-foreground md:opacity-0",e),...o})});SidebarMenuAction.displayName="SidebarMenuAction";const SidebarMenuBadge=reactExports.forwardRef(({className:e,...s},i)=>jsxRuntimeExports.jsx("div",{ref:i,"data-sidebar":"menu-badge",className:cn("pointer-events-none absolute right-1 flex h-5 min-w-5 select-none items-center justify-center rounded-md px-1 text-xs font-medium tabular-nums text-sidebar-foreground","peer-hover/menu-button:text-sidebar-accent-foreground peer-data-[active=true]/menu-button:text-sidebar-accent-foreground","peer-data-[size=sm]/menu-button:top-1","peer-data-[size=default]/menu-button:top-1.5","peer-data-[size=lg]/menu-button:top-2.5","group-data-[collapsible=icon]:hidden",e),...s}));SidebarMenuBadge.displayName="SidebarMenuBadge";const SidebarMenuSkeleton=reactExports.forwardRef(({className:e,showIcon:s=!1,...i},o)=>{const a=reactExports.useMemo(()=>`${Math.floor(Math.random()*40)+50}%`,[]);return jsxRuntimeExports.jsxs("div",{ref:o,"data-sidebar":"menu-skeleton",className:cn("flex h-8 items-center gap-2 rounded-md px-2",e),...i,children:[s&&jsxRuntimeExports.jsx(Skeleton,{className:"size-4 rounded-md","data-sidebar":"menu-skeleton-icon"}),jsxRuntimeExports.jsx(Skeleton,{className:"h-4 max-w-[--skeleton-width] flex-1","data-sidebar":"menu-skeleton-text",style:{"--skeleton-width":a}})]})});SidebarMenuSkeleton.displayName="SidebarMenuSkeleton";const SidebarMenuSub=reactExports.forwardRef(({className:e,...s},i)=>jsxRuntimeExports.jsx("ul",{ref:i,"data-sidebar":"menu-sub",className:cn("mx-3.5 flex min-w-0 translate-x-px flex-col gap-1 border-l border-sidebar-border px-2.5 py-0.5","group-data-[collapsible=icon]:hidden",e),...s}));SidebarMenuSub.displayName="SidebarMenuSub";const SidebarMenuSubItem=reactExports.forwardRef(({...e},s)=>jsxRuntimeExports.jsx("li",{ref:s,...e}));SidebarMenuSubItem.displayName="SidebarMenuSubItem";const SidebarMenuSubButton=reactExports.forwardRef(({asChild:e=!1,size:s="md",isActive:i,className:o,...a},c)=>{const d=e?Slot$3:"a";return jsxRuntimeExports.jsx(d,{ref:c,"data-sidebar":"menu-sub-button","data-size":s,"data-active":i,className:cn("flex h-7 min-w-0 -translate-x-px items-center gap-2 overflow-hidden rounded-md px-2 text-sidebar-foreground outline-none ring-sidebar-ring aria-disabled:pointer-events-none aria-disabled:opacity-50 hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0 [&>svg]:text-sidebar-accent-foreground","data-[active=true]:bg-sidebar-accent data-[active=true]:text-sidebar-accent-foreground",s==="sm"&&"text-xs",s==="md"&&"text-sm","group-data-[collapsible=icon]:hidden",o),...a})});SidebarMenuSubButton.displayName="SidebarMenuSubButton";const NavLink=reactExports.forwardRef(({to:e,children:s,className:i,activeClassName:o,end:a=!1},c)=>{const d=useLocation(),h=a?d.pathname===e||e.includes("?")&&d.pathname+d.search===e:d.pathname.startsWith(e.split("?")[0]),g=new URLSearchParams(e.split("?")[1]||""),b=new URLSearchParams(d.search),_=g.get("tab"),_e=b.get("tab"),$=_?_===_e:!1,et=e.includes("?tab=")?$&&d.pathname===e.split("?")[0]:h;return jsxRuntimeExports.jsx(Link,{ref:c,to:e,className:cn(i,et&&o),children:s})}),resolveFetch$4=e=>{let s;return e?s=e:typeof fetch>"u"?s=(...i)=>__vitePreload(async()=>{const{default:o}=await Promise.resolve().then(()=>browser);return{default:o}},void 0).then(({default:o})=>o(...i)):s=fetch,(...i)=>s(...i)};
461class FunctionsError extends Error{constructor(s,i="FunctionsError",o){super(s),this.name=i,this.context=o}}class FunctionsFetchError extends FunctionsError{constructor(s){super("Failed to send a request to the Edge Function","FunctionsFetchError",s)}}class FunctionsRelayError extends FunctionsError{constructor(s){super("Relay Error invoking the Edge Function","FunctionsRelayError",s)}}class FunctionsHttpError extends FunctionsError{constructor(s){super("Edge Function returned a non-2xx status code","FunctionsHttpError",s)}}var FunctionRegion;(function(e){e.Any="any",e.ApNortheast1="ap-northeast-1",e.ApNortheast2="ap-northeast-2",e.ApSouth1="ap-south-1",e.ApSoutheast1="ap-southeast-1",e.ApSoutheast2="ap-southeast-2",e.CaCentral1="ca-central-1",e.EuCentral1="eu-central-1",e.EuWest1="eu-west-1",e.EuWest2="eu-west-2",e.EuWest3="eu-west-3",e.SaEast1="sa-east-1",e.UsEast1="us-east-1",e.UsWest1="us-west-1",e.UsWest2="us-west-2"})(FunctionRegion||(FunctionRegion={}));class FunctionsClient{constructor(s,{headers:i={},customFetch:o,region:a=FunctionRegion.Any}={}){this.url=s,this.headers=i,this.region=a,this.fetch=resolveFetch$4(o)}setAuth(s){this.headers.Authorization=`Bearer ${s}`}invoke(s){return __awaiter(this,arguments,void 0,function*(i,o={}){var a;try{const{headers:c,method:d,body:h,signal:g}=o;let b={},{region:_}=o;_||(_=this.region);const _e=new URL(`${this.url}/${i}`);_&&_!=="any"&&(b["x-region"]=_,_e.searchParams.set("forceFunctionRegion",_));let $;h&&(c&&!Object.prototype.hasOwnProperty.call(c,"Content-Type")||!c)?typeof Blob<"u"&&h instanceof Blob||h instanceof ArrayBuffer?(b["Content-Type"]="application/octet-stream",$=h):typeof h=="string"?(b["Content-Type"]="text/plain",$=h):typeof FormData<"u"&&h instanceof FormData?$=h:(b["Content-Type"]="application/json",$=JSON.stringify(h)):$=h;const et=yield this.fetch(_e.toString(),{method:d||"POST",headers:Object.assign(Object.assign(Object.assign({},b),this.headers),c),body:$,signal:g}).catch(st=>{throw st.name==="AbortError"?st:new FunctionsFetchError(st)}),it=et.headers.get("x-relay-error");if(it&&it==="true")throw new FunctionsRelayError(et);if(!et.ok)throw new FunctionsHttpError(et);let rt=((a=et.headers.get("Content-Type"))!==null&&a!==void 0?a:"text/plain").split(";")[0].trim(),lt;return rt==="application/json"?lt=yield et.json():rt==="application/octet-stream"||rt==="application/pdf"?lt=yield et.blob():rt==="text/event-stream"?lt=et:rt==="multipart/form-data"?lt=yield et.formData():lt=yield et.text(),{data:lt,error:null,response:et}}catch(c){return c instanceof Error&&c.name==="AbortError"?{data:null,error:new FunctionsFetchError(c)}:{data:null,error:c,response:c instanceof FunctionsHttpError||c instanceof FunctionsRelayError?c.context:void 0}}})}}var cjs={};const require$$0=getAugmentedNamespace(tslib_es6$1);var PostgrestClient$1={},PostgrestQueryBuilder$1={},PostgrestFilterBuilder$1={},PostgrestTransformBuilder$1={},PostgrestBuilder$1={},getGlobal=function(){if(typeof self<"u")return self;if(typeof window<"u")return window;if(typeof global<"u")return global;throw new Error("unable to locate global object")},globalObject=getGlobal();const fetch$1=globalObject.fetch,nodeFetch=globalObject.fetch.bind(globalObject),Headers$1=globalObject.Headers,Request=globalObject.Request,Response$1=globalObject.Response,browser=Object.freeze(Object.defineProperty({__proto__:null,Headers:Headers$1,Request,Response:Response$1,default:nodeFetch,fetch:fetch$1},Symbol.toStringTag,{value:"Module"})),require$$1=getAugmentedNamespace(browser);var PostgrestError$1={},hasRequiredPostgrestError;function requirePostgrestError(){if(hasRequiredPostgrestError)return PostgrestError$1;hasRequiredPostgrestError=1,Object.defineProperty(PostgrestError$1,"__esModule",{value:!0});class e extends Error{constructor(i){super(i.message),this.name="PostgrestError",this.details=i.details,this.hint=i.hint,this.co
461de=i.code}}return PostgrestError$1.default=e,PostgrestError$1}var hasRequiredPostgrestBuilder;function requirePostgrestBuilder(){if(hasRequiredPostgrestBuilder)return PostgrestBuilder$1;hasRequiredPostgrestBuilder=1,Object.defineProperty(PostgrestBuilder$1,"__esModule",{value:!0});const e=require$$0,s=e.__importDefault(require$$1),i=e.__importDefault(requirePostgrestError());class o{constructor(c){var d,h;this.shouldThrowOnError=!1,this.method=c.method,this.url=c.url,this.headers=new Headers(c.headers),this.schema=c.schema,this.body=c.body,this.shouldThrowOnError=(d=c.shouldThrowOnError)!==null&&d!==void 0?d:!1,this.signal=c.signal,this.isMaybeSingle=(h=c.isMaybeSingle)!==null&&h!==void 0?h:!1,c.fetch?this.fetch=c.fetch:typeof fetch>"u"?this.fetch=s.default:this.fetch=fetch}throwOnError(){return this.shouldThrowOnError=!0,this}setHeader(c,d){return this.headers=new Headers(this.headers),this.headers.set(c,d),this}then(c,d){this.schema===void 0||(["GET","HEAD"].includes(this.method)?this.headers.set("Accept-Profile",this.schema):this.headers.set("Content-Profile",this.schema)),this.method!=="GET"&&this.method!=="HEAD"&&this.headers.set("Content-Type","application/json");const h=this.fetch;let g=h(this.url.toString(),{method:this.method,headers:this.headers,body:JSON.stringify(this.body),signal:this.signal}).then(async b=>{var _,_e,$,et;let it=null,rt=null,lt=null,st=b.status,ot=b.statusText;if(b.ok){if(this.method!=="HEAD"){const dt=await b.text();dt===""||(this.headers.get("Accept")==="text/csv"||this.headers.get("Accept")&&(!((_=this.headers.get("Accept"))===null||_===void 0)&&_.includes("application/vnd.pgrst.plan+text"))?rt=dt:rt=JSON.parse(dt))}const at=(_e=this.headers.get("Prefer"))===null||_e===void 0?void 0:_e.match(/count=(exact|planned|estimated)/),ct=($=b.headers.get("content-range"))===null||$===void 0?void 0:$.split("/");at&&ct&&ct.length>1&&(lt=parseInt(ct[1])),this.isMaybeSingle&&this.method==="GET"&&Array.isArray(rt)&&(rt.length>1?(it={code:"PGRST116",details:`Results contain ${rt.length} rows, application/vnd.pgrst.object+json requires 1 row`,hint:null,message:"JSON object requested, multiple (or no) rows returned"},rt=null,lt=null,st=406,ot="Not Acceptable"):rt.length===1?rt=rt[0]:rt=null)}else{const at=await b.text();try{it=JSON.parse(at),Array.isArray(it)&&b.status===404&&(rt=[],it=null,st=200,ot="OK")}catch{b.status===404&&at===""?(st=204,ot="No Content"):it={message:at}}if(it&&this.isMaybeSingle&&(!((et=it==null?void 0:it.details)===null||et===void 0)&&et.includes("0 rows"))&&(it=null,st=200,ot="OK"),it&&this.shouldThrowOnError)throw new i.default(it)}return{error:it,data:rt,count:lt,status:st,statusText:ot}});return this.shouldThrowOnError||(g=g.catch(b=>{var _,_e,$;return{error:{message:`${(_=b==null?void 0:b.name)!==null&&_!==void 0?_:"FetchError"}: ${b==null?void 0:b.message}`,details:`${(_e=b==null?void 0:b.stack)!==null&&_e!==void 0?_e:""}`,hint:"",code:`${($=b==null?void 0:b.code)!==null&&$!==void 0?$:""}`},data:null,count:null,status:0,statusText:""}})),g.then(c,d)}returns(){return this}overrideTypes(){return this}}return PostgrestBuilder$1.default=o,PostgrestBuilder$1}var hasRequiredPostgrestTransformBuilder;function requirePostgrestTransformBuilder(){if(hasRequiredPostgrestTransformBuilder)return PostgrestTransformBuilder$1;hasRequiredPostgrestTransformBuilder=1,Object.defineProperty(PostgrestTransformBuilder$1,"__esModule",{value:!0});const s=require$$0.__importDefault(requirePostgrestBuilder());class i extends s.default{select(a){let c=!1;const d=(a??"*").split("").map(h=>/\s/.test(h)&&!c?"":(h==='"'&&(c=!c),h)).join("");return this.url.searchParams.set("select",d),this.headers.append("Prefer","return=representation"),this}order(a,{ascending:c=!0,nullsFirst:d,foreignTable:h,referencedTable:g=h}={}){const b=g?`${g}.order`:"order",_=this.url.searchParams.get(b);return this.url.searchParams.set(b,`${_?`${_},`:""}${a}.${c?"asc":"desc"}${d===void 0?"":d?".nullsfirst":".nullslast"}`),this}limit(a,{foreignTable:c,referencedTable:d=c}={}){const h=typeof d>"u"?"limit":`${d}.limit`;return this.url.searchParams.set(h,`${a}`),this}range(a,c,{foreignTable:d,referencedTable:h=d}={}){const g=typeof h>"u"?"offset":`${h}.offset`,b=typeof h>"u"?"limit":`${h}.limit`;return this.url.searchParams.set(g,`${a}`),this.url.searchParams.set(b,`${c-a+1}`),this}abortSignal(a){return this.signal=a,this}single(){return this.headers.set("Accept","application/vnd.pgrst.object+json"),this}maybeSingle(){return this.method==="GET"?this.headers.set("Accept","application/json"):this.headers.set("Accept","application/vnd.pgrst.object+json"),this.isMaybeSingle=!0,this}csv(){return this.headers.set("Accept","text/csv"),this}geojson(){return this.headers.set("Accept","application/geo+json"),this}
461explain({analyze:a=!1,verbose:c=!1,settings:d=!1,buffers:h=!1,wal:g=!1,format:b="text"}={}){var _;const _e=[a?"analyze":null,c?"verbose":null,d?"settings":null,h?"buffers":null,g?"wal":null].filter(Boolean).join("|"),$=(_=this.headers.get("Accept"))!==null&&_!==void 0?_:"application/json";return this.headers.set("Accept",`application/vnd.pgrst.plan+${b}; for="${$}"; options=${_e};`),b==="json"?this:this}rollback(){return this.headers.append("Prefer","tx=rollback"),this}returns(){return this}maxAffected(a){return this.headers.append("Prefer","handling=strict"),this.headers.append("Prefer",`max-affected=${a}`),this}}return PostgrestTransformBuilder$1.default=i,PostgrestTransformBuilder$1}var hasRequiredPostgrestFilterBuilder;function requirePostgrestFilterBuilder(){if(hasRequiredPostgrestFilterBuilder)return PostgrestFilterBuilder$1;hasRequiredPostgrestFilterBuilder=1,Object.defineProperty(PostgrestFilterBuilder$1,"__esModule",{value:!0});const s=require$$0.__importDefault(requirePostgrestTransformBuilder());class i extends s.default{eq(a,c){return this.url.searchParams.append(a,`eq.${c}`),this}neq(a,c){return this.url.searchParams.append(a,`neq.${c}`),this}gt(a,c){return this.url.searchParams.append(a,`gt.${c}`),this}gte(a,c){return this.url.searchParams.append(a,`gte.${c}`),this}lt(a,c){return this.url.searchParams.append(a,`lt.${c}`),this}lte(a,c){return this.url.searchParams.append(a,`lte.${c}`),this}like(a,c){return this.url.searchParams.append(a,`like.${c}`),this}likeAllOf(a,c){return this.url.searchParams.append(a,`like(all).{${c.join(",")}}`),this}likeAnyOf(a,c){return this.url.searchParams.append(a,`like(any).{${c.join(",")}}`),this}ilike(a,c){return this.url.searchParams.append(a,`ilike.${c}`),this}ilikeAllOf(a,c){return this.url.searchParams.append(a,`ilike(all).{${c.join(",")}}`),this}ilikeAnyOf(a,c){return this.url.searchParams.append(a,`ilike(any).{${c.join(",")}}`),this}is(a,c){return this.url.searchParams.append(a,`is.${c}`),this}in(a,c){const d=Array.from(new Set(c)).map(h=>typeof h=="string"&&new RegExp("[,()]").test(h)?`"${h}"`:`${h}`).join(",");return this.url.searchParams.append(a,`in.(${d})`),this}contains(a,c){return typeof c=="string"?this.url.searchParams.append(a,`cs.${c}`):Array.isArray(c)?this.url.searchParams.append(a,`cs.{${c.join(",")}}`):this.url.searchParams.append(a,`cs.${JSON.stringify(c)}`),this}containedBy(a,c){return typeof c=="string"?this.url.searchParams.append(a,`cd.${c}`):Array.isArray(c)?this.url.searchParams.append(a,`cd.{${c.join(",")}}`):this.url.searchParams.append(a,`cd.${JSON.stringify(c)}`),this}rangeGt(a,c){return this.url.searchParams.append(a,`sr.${c}`),this}rangeGte(a,c){return this.url.searchParams.append(a,`nxl.${c}`),this}rangeLt(a,c){return this.url.searchParams.append(a,`sl.${c}`),this}rangeLte(a,c){return this.url.searchParams.append(a,`nxr.${c}`),this}rangeAdjacent(a,c){return this.url.searchParams.append(a,`adj.${c}`),this}overlaps(a,c){return typeof c=="string"?this.url.searchParams.append(a,`ov.${c}`):this.url.searchParams.append(a,`ov.{${c.join(",")}}`),this}textSearch(a,c,{config:d,type:h}={}){let g="";h==="plain"?g="pl":h==="phrase"?g="ph":h==="websearch"&&(g="w");const b=d===void 0?"":`(${d})`;return this.url.searchParams.append(a,`${g}fts${b}.${c}`),this}match(a){return Object.entries(a).forEach(([c,d])=>{this.url.searchParams.append(c,`eq.${d}`)}),this}not(a,c,d){return this.url.searchParams.append(a,`not.${c}.${d}`),this}or(a,{foreignTable:c,referencedTable:d=c}={}){const h=d?`${d}.or`:"or";return this.url.searchParams.append(h,`(${a})`),this}filter(a,c,d){return this.url.searchParams.append(a,`${c}.${d}`),this}}return PostgrestFilterBuilder$1.default=i,PostgrestFilterBuilder$1}var hasRequiredPostgrestQueryBuilder;function requirePostgrestQueryBuilder(){if(hasRequiredPostgrestQueryBuilder)return PostgrestQueryBuilder$1;hasRequiredPostgrestQueryBuilder=1,Object.defineProperty(PostgrestQueryBuilder$1,"__esModule",{value:!0});const s=require$$0.__importDefault(requirePostgrestFilterBuilder());class i{constructor(a,{headers:c={},schema:d,fetch:h}){this.url=a,this.headers=new Headers(c),this.schema=d,this.fetch=h}select(a,c){const{head:d=!1,count:h}=c??{},g=d?"HEAD":"GET";let b=!1;const _=(a??"*").split("").map(_e=>/\s/.test(_e)&&!b?"":(_e==='"'&&(b=!b),_e)).join("");return this.url.searchParams.set("select",_),h&&this.headers.append("Prefer",`count=${h}`),new s.default({method:g,url:this.url,headers:this.headers,schema:this.schema,fetch:this.fetch})}insert(a,{count:c,defaultToNull:d=!0}={}){var h;const g="POST";if(c&&this.headers.append("Prefer",`count=${c}`),d||this.headers.append("Prefer","missing=default"),Array.isArray(a)){const b=a.reduce((_,_e)=>_.concat(Object.keys(_e)),[]);if(b.length>0){const _=[...new Set(b)].map(_e=>`"${_e}"`);this.url.searchParams.set("columns",_.join(","))}}return new s.default({method:g,url:this.url,headers:this.headers,schema:this.schema,body:a,fetch:(h=this.fetch)!==null&&h!==void 0?h:fetch})}upsert(a,{onConflict:c,ignoreDuplicates:d=!1,count:h,defaultToNull:g=!0}={}){var b;const _="POST";if(this.headers.append("Prefer",`resolution=${d?"ignore":"merge"}-duplicates`),c!==void 0&&this.url.searchParams.set("on_conflict",c),h&&this.headers.append("Prefer",`count=${h}`),g||this.headers.append("Prefer","missing=default"),Array.isArray(a)){const _e=a.reduce(($,et)=>$.concat(Object.keys(et)),[]);if(_e.length>0){const $=[...new Set(_e)].map(et=>`"${et}"`);this.url.searchParams.set("columns",$.join(","))}}return new s.default({method:_,url:this.url,headers:this.headers,schema:this.schema,body:a,fetch:(b=this.fetch)!==null&&b!==void 0?b:fetch})}update(a,{count:c}={}){var d;const h="PATCH";return c&&this.headers.append("Prefer",`count=${c}`),new s.default({method:h,url:this.url,headers:this.headers,schema:this.schema,body:a,fetch:(d=this.fetch)!==null&&d!==void 0?d:fetch})}delete({count:a}={}){var c;const d="DELETE";return a&&this.headers.append("Prefer",`count=${a}`),new s.default({method:d,url:this.url,headers:this.headers,schema:this.schema,fetch:(c=this.fetch)!==null&&c!==void 0?c:fetch})}}return PostgrestQueryBuilder$1.default=i,PostgrestQueryBuilder$1}var hasRequiredPostgrestClient;function requirePostgrestClient(){if(hasRequiredPostgrestClient)return PostgrestClient$1;hasRequiredPostgrestClient=1,Object.defineProperty(PostgrestClient$1,"__esModule",{value:!0});const e=require$$0,s=e.__importDefault(requirePostgrestQueryBuilder()),i=e.__importDefault(requirePostgrestFilterBuilder());class o{constructor(c,{headers:d={},schema:h,fetch:g}={}){this.url=c,this.headers=new Headers(d),this.schemaName=h,this.fetch=g}from(c){const d=new URL(`${this.url}/${c}`);return new s.default(d,{headers:new Headers(this.headers),schema:this.schemaName,fetch:this.fetch})}schema(c){return new o(this.url,{headers:this.headers,schema:c,fetch:this.fetch})}rpc(c,d={},{head:h=!1,get:g=!1,count:b}={}){var _;let _e;const $=new URL(`${this.url}/rpc/${c}`);let et;h||g?(_e=h?"HEAD":"GET",Object.entries(d).filter(([rt,lt])=>lt!==void 0).map(([rt,lt])=>[rt,Array.isArray(lt)?`{${lt.join(",")}}`:`${lt}
461`]).forEach(([rt,lt])=>{$.searchParams.append(rt,lt)})):(_e="POST",et=d);const it=new Headers(this.headers);return b&&it.set("Prefer",`count=${b}`),new i.default({method:_e,url:$,headers:it,schema:this.schemaName,body:et,fetch:(_=this.fetch)!==null&&_!==void 0?_:fetch})}}return PostgrestClient$1.default=o,PostgrestClient$1}Object.defineProperty(cjs,"__esModule",{value:!0});cjs.PostgrestError=cjs.PostgrestBuilder=cjs.PostgrestTransformBuilder=cjs.PostgrestFilterBuilder=cjs.PostgrestQueryBuilder=cjs.PostgrestClient=void 0;const tslib_1=require$$0,PostgrestClient_1=tslib_1.__importDefault(requirePostgrestClient());cjs.PostgrestClient=PostgrestClient_1.default;const PostgrestQueryBuilder_1=tslib_1.__importDefault(requirePostgrestQueryBuilder());cjs.PostgrestQueryBuilder=PostgrestQueryBuilder_1.default;const PostgrestFilterBuilder_1=tslib_1.__importDefault(requirePostgrestFilterBuilder());cjs.PostgrestFilterBuilder=PostgrestFilterBuilder_1.default;const PostgrestTransformBuilder_1=tslib_1.__importDefault(requirePostgrestTransformBuilder());cjs.PostgrestTransformBuilder=PostgrestTransformBuilder_1.default;const PostgrestBuilder_1=tslib_1.__importDefault(requirePostgrestBuilder());cjs.PostgrestBuilder=PostgrestBuilder_1.default;const PostgrestError_1=tslib_1.__importDefault(requirePostgrestError());cjs.PostgrestError=PostgrestError_1.default;var _default=cjs.default={PostgrestClient:PostgrestClient_1.default,PostgrestQueryBuilder:PostgrestQueryBuilder_1.default,PostgrestFilterBuilder:PostgrestFilterBuilder_1.default,PostgrestTransformBuilder:PostgrestTransformBuilder_1.default,PostgrestBuilder:PostgrestBuilder_1.default,PostgrestError:PostgrestError_1.default};const{PostgrestClient,PostgrestQueryBuilder,PostgrestFilterBuilder,PostgrestTransformBuilder,PostgrestBuilder,PostgrestError}=_default;class WebSocketFactory{static detectEnvironment(){var s;if(typeof WebSocket<"u")return{type:"native",constructor:WebSocket};if(typeof globalThis<"u"&&typeof globalThis.WebSocket<"u")return{type:"native",constructor:globalThis.WebSocket};if(typeof global<"u"&&typeof global.WebSocket<"u")return{type:"native",constructor:global.WebSocket};if(typeof globalThis<"u"&&typeof globalThis.WebSocketPair<"u"&&typeof globalThis.WebSocket>"u")return{type:"cloudflare",error:"Cloudflare Workers detected. WebSocket clients are not supported in Cloudflare Workers.",workaround:"Use Cloudflare Workers WebSocket API for server-side WebSocket handling, or deploy to a different runtime."};if(typeof globalThis<"u"&&globalThis.EdgeRuntime||typeof navigator<"u"&&(!((s=navigator.userAgent)===null||s===void 0)&&s.includes("Vercel-Edge")))return{type:"unsupported",error:"Edge runtime detected (Vercel Edge/Netlify Edge). WebSockets are not supported in edge functions.",workaround:"Use serverless functions or a different deployment target for WebSocket functionality."};if(typeof process<"u"){const i=process.versions;if(i&&i.node){const o=i.node,a=parseInt(o.replace(/^v/,"").split(".")[0]);return a>=22?typeof globalThis.WebSocket<"u"?{type:"native",constructor:globalThis.WebSocket}:{type:"unsupported",error:`Node.js ${a} detected but native WebSocket not found.`,workaround:"Provide a WebSocket implementation via the transport option."}:{type:"unsupported",error:`Node.js ${a} detected without native WebSocket support.`,workaround:`For Node.js < 22, install "ws" package and provide it via the transport option: 462import ws from "ws" 463new RealtimeClient(url, { transport: ws })`}}}return{type:"unsupported",error:"Unknown JavaScript runtime without WebSocket support.",workaround:"Ensure you're running in a supported environment (browser, Node.js, Deno) or provide a custom WebSocket implementation."}}static getWebSocketConstructor(){const s=this.detectEnvironment();if(s.constructor)return s.constructor;let i=s.error||"WebSocket not supported in this environment.";throw s.workaround&&(i+=` 464 465Suggested solution: ${s.workaround}`),new Error(i)}static createWebSocket(s,i){const o=this.getWebSocketConstructor();return new o(s,i)}static isWebSocketSupported(){try{const s=this.detectEnvironment();return s.type==="native"||s.type==="ws"}catch{return!1}}}const version$3="2.76.1",DEFAULT_VERSION=`realtime-js/${version$3}`,VSN="1.0.0",DEFAULT_TIMEOUT=1e4,WS_CLOSE_NORMAL=1e3,MAX_PUSH_BUFFER_SIZE=100;var SOCKET_STATES;(function(e){e[e.connecting=0]="connecting",e[e.open=1]="open",e[e.closing=2]="closing",e[e.closed=3]="closed"})(SOCKET_STATES||(SOCKET_STATES={}));var CHANNEL_STATES;(function(e){e.closed="closed",e.errored="errored",e.joined="joined",e.joining="joining",e.leaving="leaving"})(CHANNEL_STATES||(CHANNEL_STATES={}));var CHANNEL_EVENTS;(function(e){e.close="phx_close",e.error="phx_error",e.join="phx_join",e.reply="phx_reply",e.leave="phx_leave",e.access_token="access_token"})(CHANNEL_EVENTS||(CHANNEL_EVENTS={}));var TRANSPORTS;(function(e){e.websocket="websocket"}
465)(TRANSPORTS||(TRANSPORTS={}));var CONNECTION_STATE;(function(e){e.Connecting="connecting",e.Open="open",e.Closing="closing",e.Closed="closed"})(CONNECTION_STATE||(CONNECTION_STATE={}));class Serializer{constructor(){this.HEADER_LENGTH=1}decode(s,i){return s.constructor===ArrayBuffer?i(this._binaryDecode(s)):i(typeof s=="string"?JSON.parse(s):{})}_binaryDecode(s){const i=new DataView(s),o=new TextDecoder;return this._decodeBroadcast(s,i,o)}_decodeBroadcast(s,i,o){const a=i.getUint8(1),c=i.getUint8(2);let d=this.HEADER_LENGTH+2;const h=o.decode(s.slice(d,d+a));d=d+a;const g=o.decode(s.slice(d,d+c));d=d+c;const b=JSON.parse(o.decode(s.slice(d,s.byteLength)));return{ref:null,topic:h,event:g,payload:b}}}class Timer{constructor(s,i){this.callback=s,this.timerCalc=i,this.timer=void 0,this.tries=0,this.callback=s,this.timerCalc=i}reset(){this.tries=0,clearTimeout(this.timer),this.timer=void 0}scheduleTimeout(){clearTimeout(this.timer),this.timer=setTimeout(()=>{this.tries=this.tries+1,this.callback()},this.timerCalc(this.tries+1))}}var PostgresTypes;(function(e){e.abstime="abstime",e.bool="bool",e.date="date",e.daterange="daterange",e.float4="float4",e.float8="float8",e.int2="int2",e.int4="int4",e.int4range="int4range",e.int8="int8",e.int8range="int8range",e.json="json",e.jsonb="jsonb",e.money="money",e.numeric="numeric",e.oid="oid",e.reltime="reltime",e.text="text",e.time="time",e.timestamp="timestamp",e.timestamptz="timestamptz",e.timetz="timetz",e.tsrange="tsrange",e.tstzrange="tstzrange"})(PostgresTypes||(PostgresTypes={}));const convertChangeData=(e,s,i={})=>{var o;const a=(o=i.skipTypes)!==null&&o!==void 0?o:[];return s?Object.keys(s).reduce((c,d)=>(c[d]=convertColumn(d,e,s,a),c),{}):{}},convertColumn=(e,s,i,o)=>{const a=s.find(h=>h.name===e),c=a==null?void 0:a.type,d=i[e];return c&&!o.includes(c)?convertCell(c,d):noop$1(d)},convertCell=(e,s)=>{if(e.charAt(0)==="_"){const i=e.slice(1,e.length);return toArray(s,i)}switch(e){case PostgresTypes.bool:return toBoolean(s);case PostgresTypes.float4:case PostgresTypes.float8:case PostgresTypes.int2:case PostgresTypes.int4:case PostgresTypes.int8:case PostgresTypes.numeric:case PostgresTypes.oid:return toNumber(s);case PostgresTypes.json:case PostgresTypes.jsonb:return toJson(s);case PostgresTypes.timestamp:return toTimestampString(s);case PostgresTypes.abstime:case PostgresTypes.date:case PostgresTypes.daterange:case PostgresTypes.int4range:case PostgresTypes.int8range:case PostgresTypes.money:case PostgresTypes.reltime:case PostgresTypes.text:case PostgresTypes.time:case PostgresTypes.timestamptz:case PostgresTypes.timetz:case PostgresTypes.tsrange:case PostgresTypes.tstzrange:return noop$1(s);default:return noop$1(s)}},noop$1=e=>e,toBoolean=e=>{switch(e){case"t":return!0;case"f":return!1;default:return e}},toNumber=e=>{if(typeof e=="string"){const s=parseFloat(e);if(!Number.isNaN(s))return s}return e},toJson=e=>{if(typeof e=="string")try{return JSON.parse(e)}catch(s){return console.log(`JSON parse error: ${s}`),e}return e},toArray=(e,s)=>{if(typeof e!="string")return e;const i=e.length-1,o=e[i];if(e[0]==="{"&&o==="}"){let c;const d=e.slice(1,i);try{c=JSON.parse("["+d+"]")}catch{c=d?d.split(","):[]}return c.map(h=>convertCell(s,h))}return e},toTimestampString=e=>typeof e=="string"?e.replace(" ","T"):e,httpEndpointURL=e=>{const s=new URL(e);return s.protocol=s.protocol.replace(/^ws/i,"http"),s.pathname=s.pathname.replace(/\/+$/,"").replace(/\/socket\/websocket$/i,"").replace(/\/socket$/i,"").replace(/\/websocket$/i,""),s.pathname===""||s.pathname==="/"?s.pathname="/api/broadcast":s.pathname=s.pathname+"/api/broadcast",s.href};class Push{constructor(s,i,o={},a=DEFAULT_TIMEOUT){this.channel=s,this.event=i,this.payload=o,this.timeout=a,this.sent=!1,this.timeoutTimer=void 0,this.ref="",this.receivedResp=null,this.recHooks=[],this.refEvent=null}resend(s){this.timeout=s,this._cancelRefEvent(),this.ref="",this.refEvent=null,this.receivedResp=null,this.sent=!1,this.send()}send(){this._hasReceived("timeout")||(this.startTimeout(),this.sent=!0,this.channel.socket.push({topic:this.channel.topic,event:this.event,payload:this.payload,ref:this.ref,j
465oin_ref:this.channel._joinRef()}))}updatePayload(s){this.payload=Object.assign(Object.assign({},this.payload),s)}receive(s,i){var o;return this._hasReceived(s)&&i((o=this.receivedResp)===null||o===void 0?void 0:o.response),this.recHooks.push({status:s,callback:i}),this}startTimeout(){if(this.timeoutTimer)return;this.ref=this.channel.socket._makeRef(),this.refEvent=this.channel._replyEventName(this.ref);const s=i=>{this._cancelRefEvent(),this._cancelTimeout(),this.receivedResp=i,this._matchReceive(i)};this.channel._on(this.refEvent,{},s),this.timeoutTimer=setTimeout(()=>{this.trigger("timeout",{})},this.timeout)}trigger(s,i){this.refEvent&&this.channel._trigger(this.refEvent,{status:s,response:i})}destroy(){this._cancelRefEvent(),this._cancelTimeout()}_cancelRefEvent(){this.refEvent&&this.channel._off(this.refEvent,{})}_cancelTimeout(){clearTimeout(this.timeoutTimer),this.timeoutTimer=void 0}_matchReceive({status:s,response:i}){this.recHooks.filter(o=>o.status===s).forEach(o=>o.callback(i))}_hasReceived(s){return this.receivedResp&&this.receivedResp.status===s}}var REALTIME_PRESENCE_LISTEN_EVENTS;(function(e){e.SYNC="sync",e.JOIN="join",e.LEAVE="leave"})(REALTIME_PRESENCE_LISTEN_EVENTS||(REALTIME_PRESENCE_LISTEN_EVENTS={}));class RealtimePresence{constructor(s,i){this.channel=s,this.state={},this.pendingDiffs=[],this.joinRef=null,this.enabled=!1,this.caller={onJoin:()=>{},onLeave:()=>{},onSync:()=>{}};const o=(i==null?void 0:i.events)||{state:"presence_state",diff:"presence_diff"};this.channel._on(o.state,{},a=>{const{onJoin:c,onLeave:d,onSync:h}=this.caller;this.joinRef=this.channel._joinRef(),this.state=RealtimePresence.syncState(this.state,a,c,d),this.pendingDiffs.forEach(g=>{this.state=RealtimePresence.syncDiff(this.state,g,c,d)}),this.pendingDiffs=[],h()}),this.channel._on(o.diff,{},a=>{const{onJoin:c,onLeave:d,onSync:h}=this.caller;this.inPendingSyncState()?this.pendingDiffs.push(a):(this.state=RealtimePresence.syncDiff(this.state,a,c,d),h())}),this.onJoin((a,c,d)=>{this.channel._trigger("presence",{event:"join",key:a,currentPresences:c,newPresences:d})}),this.onLeave((a,c,d)=>{this.channel._trigger("presence",{event:"leave",key:a,currentPresences:c,leftPresences:d})}),this.onSync(()=>{this.channel._trigger("presence",{event:"sync"})})}static syncState(s,i,o,a){const c=this.cloneDeep(s),d=this.transformState(i),h={},g={};return this.map(c,(b,_)=>{d[b]||(g[b]=_)}),this.map(d,(b,_)=>{const _e=c[b];if(_e){const $=_.map(lt=>lt.presence_ref),et=_e.map(lt=>lt.presence_ref),it=_.filter(lt=>et.indexOf(lt.presence_ref)<0),rt=_e.filter(lt=>$.indexOf(lt.presence_ref)<0);it.length>0&&(h[b]=it),rt.length>0&&(g[b]=rt)}else h[b]=_}),this.syncDiff(c,{joins:h,leaves:g},o,a)}static syncDiff(s,i,o,a){const{joins:c,leaves:d}={joins:this.transformState(i.joins),leaves:this.transformState(i.leaves)};return o||(o=()=>{}),a||(a=()=>{}),this.map(c,(h,g)=>{var b;const _=(b=s[h])!==null&&b!==void 0?b:[];if(s[h]=this.cloneDeep(g),_.length>0){const _e=s[h].map(et=>et.presence_ref),$=_.filter(et=>_e.indexOf(et.presence_ref)<0);s[h].unshift(...$)}o(h,_,g)}),this.map(d,(h,g)=>{let b=s[h];if(!b)return;const _=g.map(_e=>_e.presence_ref);b=b.filter(_e=>_.indexOf(_e.presence_ref)<0),s[h]=b,a(h,b,g),b.length===0&&delete s[h]}),s}static map(s,i){return Object.getOwnPropertyNames(s).map(o=>i(o,s[o]))}static transformState(s){return s=this.cloneDeep(s),Object.getOwnPropertyNames(s).reduce((i,o)=>{const a=s[o];return"metas"in a?i[o]=a.metas.map(c=>(c.presence_ref=c.phx_ref,delete c.phx_ref,delete c.phx_ref_prev,c)):i[o]=a,i},{})}static cloneDeep(s){return JSON.parse(JSON.stringify(s))}onJoin(s){this.caller.onJoin=s}onLeave(s){this.caller.onLeave=s}onSync(s){this.caller.onSync=s}inPendingSyncState(){return!this.joinRef||this.joinRef!==this.channel._joinRef()}}var REALTIME_POSTGRES_CHANGES_LISTEN_EVENT;(function(e){e.ALL="*",e.INSERT="INSERT",e.UPDATE="UPDATE",e.DELETE="DELETE"})(REALTIME_POSTGRES_CHANGES_LISTEN_EVENT||(REALTIME_POSTGRES_CHANGES_LISTEN_EVENT={}));var REALTIME_LISTEN_TYPES;(function(e){e.BROADCAST="broadcast",e.PRESENCE="presence",e.POSTGRES_CHANGES="postgres_changes",e.SYSTEM="system"})(REALTIME_LISTEN_TYPES||(REALTIME_LISTEN_TYPES={}));var REALTIME_SUBSCRIBE_STATES;(function(e){e.SUBSCRIBED="SUBSCRIBED",e.TIMED_OUT="TIMED_OUT",e.CLOSED="CLOSED",e.CHANNEL_ERROR="CHANNEL_ERROR"})(REALTIME_SUBSCRIBE_STATES||(REALTIME_SUBSCRIBE_STATES={}));class RealtimeChannel{constructor(s,i={config:{}},o){var a,c;if(this.topic=s,this.params=i,this.socket=o,this.bindings={},this.state=CHANNEL_STATES.closed,this.joinedOnce=!1,this.pushBuffer=[],this.subTopic=s.replace(/^realtime:/i,""),this.params.config=Object.assign({broadcast:{ack:!1,self:!1},presence:{key:"",enabled:!1},private:!1},i.config),this.timeout=this.socket.timeout,this.joinPush=new Push(this,CHANNEL_EVENTS.join,this.params,this.timeout),this.rejoinTimer=new Timer(()=>this._rejoinUntilConnected(),this.socket.reconnectAfterMs),this.joinPush.receive("ok",()=>{this.state=CHANNEL_STATES.joined,this.rejoinTimer.reset(),this.pushBuffer.forEach(d=>d.send()),this.pushBuffer=[]}),this._onClose(()=>{this.rejoinTimer.reset(),this.socket.log("channel",`close ${this.topic} ${this._joinRef()}`),this.state=CHANNEL_STATES.closed,this.socket._remove(this)}),this._onError(d=>{this._isLeaving()||this._isClosed()||(this.socket.log("channel",`error ${this.topic}`,d),this.state=CHANNEL_STATES.errored,this.rejoinTimer.scheduleTimeout())}),this.joinPush.receive("timeout",()=>{this._isJoining()&&(this.socket.log("channel",`timeout ${this.topic}`,this.joinPush.timeout),this.state=CHANNEL_STATES.errored,this.rejoinTimer.scheduleTimeout())}),this.joinPush.receive("error",d=>{this._isLeaving()||this._isClosed()||(this.socket.log("channel",`error ${this.topic}`,d),this.state=CHANNEL_STATES.errored,this.rejoinTimer.scheduleTimeout())}),this._on(CHANNEL_EVENTS.reply,{},(d,h)=>{this._trigger(this._replyEventName(h),d)}),this.presence=new RealtimePresence(this),this.broadcastEndpointURL=httpEndpointURL(this.socket.endPoint),this.private=this.params.config.private||!1,!this.private&&(!((c=(a=this.params.config)===null||a===void 0?void 0:a.broadcast)===null||c===void 0)&&c.replay))throw`tried to use replay on public channel '${this.topic}'. It must be a private channel.`}subscribe(s,i=this.timeout){var o,a,c;if(this.socket.isConnected()||this.socket.connect(),this.state==CHANNEL_STATES.closed){const{config:{broadcast:d,presence:h,private:g}}=this.params,b=(a=(o=this.bindings.postgres_changes)===null||o===void 0?void 0:o.map(et=>et.filter))!==null&&a!==void 0?a:[],_=!!this.bindings[REALTIME_LISTEN_TYPES.PRESENCE]&&this.bindings[REALTIME_LISTEN_TYPES.PRESENCE].length>0||((c=this.params.config.presence)===null||c===void 0?void 0:c.enabled)===!0,_e={},$={broadcast:d,presence:Object.assign(Object.assign({},h),{enabled:_}),postgres_changes:b,private:g};this.socket.accessTokenValue&&(_e.access_token=this.socket.accessTokenValue),this._onError(et=>s==null?void 0:s(REALTIME_SUBSCRIBE_STATES.CHANNEL_ERROR,et)),this._onClose(()=>s==null?void 0:s(REALTIME_SUBSCRIBE_STATES.CLOSED)),this.updateJoinPayload(Object.assign({config:$},_e)),this.joinedOnce=!0,this._rejoin(i),this.joinPush.receive("ok",async({postgres_changes:et})=>{var it;if(this.socket.setAuth(),et===void 0){s==null||s(REALTIME_SUBSCRIBE_STATES.SUBSCRIBED);return}else{const rt=this.bindings.postgres_changes,lt=(it=rt==null?void 0:rt.length)!==null&&it!==void 0?it:0,st=[];for(let ot=0;ot<lt;ot++){const nt=rt[ot],{filter:{event:at,schema:ct,table:dt,filter:pt}}=nt,mt=et&&et[ot];if(mt&&mt.event===at&&mt.schema===ct&&mt.table===dt&&mt.filter===pt)st.push(Object.assign(Object.assign({},nt),{id:mt.id}));else{this.unsubscribe(),this.state=CHANNEL_STATES.errored,s==null||s(REALTIME_SUBSCRIBE_STATES.CHANNEL_ERROR,new Error("mismatch between server and client bindings for postgres changes"));return}}this.bindings.postgres_changes=st,s&&s(REALTIME_SUBSCRIBE_STATES.SUBSCRIBED);return}}).receive("error",et=>{this.state=CHANNEL_STATES.errored,s==null||s(REALTIME_SUBSCRIBE_STATES.CHANNEL_ERROR,new Error(JSON.stringify(Object.values(et).join(", ")||"error")))}).receive("timeout",()=>{s==null||s(REALTIME_SUBSCRIBE_STATES.TIMED_OUT)})}return this}presenceState(){return this.presence.state}async track(s,i={}){return await this.send({type:"presence",event:"track",payload:s},i.timeout||this.timeout)}async untrack(s={}){return await this.send({type:"presence",event:"untrack"},s)}on(s,i,o){return this.state===CHANNEL_STATES.joined&&s===REALTIME_LISTEN_TYPES.PRESENCE&&(this.socket.log("channel",`resubscribe to ${this.topic} due to change in presence callbacks on joined channel`),this.unsubscribe().then(()=>this.subscribe())),this._on(s,i,o)}async httpSend(s,i,o={}){var a;const c=this.socket.accessTokenValue?`Bearer ${this.socket.accessTokenValue}`:"";if(i==null)return Promise.reject("Payload is required for httpSend()");const d={method:"POST",headers:{Authorization:c,apikey:this.socket.apiKey?this.socket.apiKey:"","Content-Type":"application/json"},body:JSON.stringify({messages:[{topic:this.subTopic,event:s,payload:i,private:this.private}]})},h=await this._fetchWithTimeout(this.broadcastEndpointURL,d,(a=o.timeout)!==null&&a!==void 0?a:this.timeout);if(h.status===202)return{success:!0};let g=h.statusText;
465try{const b=await h.json();g=b.error||b.message||g}catch{}return Promise.reject(new Error(g))}async send(s,i={}){var o,a;if(!this._canPush()&&s.type==="broadcast"){console.warn("Realtime send() is automatically falling back to REST API. This behavior will be deprecated in the future. Please use httpSend() explicitly for REST delivery.");const{event:c,payload:d}=s,g={method:"POST",headers:{Authorization:this.socket.accessTokenValue?`Bearer ${this.socket.accessTokenValue}`:"",apikey:this.socket.apiKey?this.socket.apiKey:"","Content-Type":"application/json"},body:JSON.stringify({messages:[{topic:this.subTopic,event:c,payload:d,private:this.private}]})};try{const b=await this._fetchWithTimeout(this.broadcastEndpointURL,g,(o=i.timeout)!==null&&o!==void 0?o:this.timeout);return await((a=b.body)===null||a===void 0?void 0:a.cancel()),b.ok?"ok":"error"}catch(b){return b.name==="AbortError"?"timed out":"error"}}else return new Promise(c=>{var d,h,g;const b=this._push(s.type,s,i.timeout||this.timeout);s.type==="broadcast"&&!(!((g=(h=(d=this.params)===null||d===void 0?void 0:d.config)===null||h===void 0?void 0:h.broadcast)===null||g===void 0)&&g.ack)&&c("ok"),b.receive("ok",()=>c("ok")),b.receive("error",()=>c("error")),b.receive("timeout",()=>c("timed out"))})}updateJoinPayload(s){this.joinPush.updatePayload(s)}unsubscribe(s=this.timeout){this.state=CHANNEL_STATES.leaving;const i=()=>{this.socket.log("channel",`leave ${this.topic}`),this._trigger(CHANNEL_EVENTS.close,"leave",this._joinRef())};this.joinPush.destroy();let o=null;return new Promise(a=>{o=new Push(this,CHANNEL_EVENTS.leave,{},s),o.receive("ok",()=>{i(),a("ok")}).receive("timeout",()=>{i(),a("timed out")}).receive("error",()=>{a("error")}),o.send(),this._canPush()||o.trigger("ok",{})}).finally(()=>{o==null||o.destroy()})}teardown(){this.pushBuffer.forEach(s=>s.destroy()),this.pushBuffer=[],this.rejoinTimer.reset(),this.joinPush.destroy(),this.state=CHANNEL_STATES.closed,this.bindings={}}async _fetchWithTimeout(s,i,o){const a=new AbortController,c=setTimeout(()=>a.abort(),o),d=await this.socket.fetch(s,Object.assign(Object.assign({},i),{signal:a.signal}));return clearTimeout(c),d}_push(s,i,o=this.timeout){if(!this.joinedOnce)throw`tried to push '${s}' to '${this.topic}' before joining. Use channel.subscribe() before pushing events`;let a=new Push(this,s,i,o);return this._canPush()?a.send():this._addToPushBuffer(a),a}_addToPushBuffer(s){if(s.startTimeout(),this.pushBuffer.push(s),this.pushBuffer.length>MAX_PUSH_BUFFER_SIZE){const i=this.pushBuffer.shift();i&&(i.destroy(),this.socket.log("channel",`discarded push due to buffer overflow: ${i.event}`,i.payload))}}_onMessage(s,i,o){return i}_isMember(s){return this.topic===s}_joinRef(){return this.joinPush.ref}_trigger(s,i,o){var a,c;const d=s.toLocaleLowerCase(),{close:h,error:g,leave:b,join:_}=CHANNEL_EVENTS;if(o&&[h,g,b,_].indexOf(d)>=0&&o!==this._joinRef())return;let $=this._onMessage(d,i,o);if(i&&!$)throw"channel onMessage callbacks must return the payload, modified or unmodified";["insert","update","delete"].includes(d)?(a=this.bindings.postgres_changes)===null||a===void 0||a.filter(et=>{var it,rt,lt;return((it=et.filter)===null||it===void 0?void 0:it.event)==="*"||((lt=(rt=et.filter)===null||rt===void 0?void 0:rt.event)===null||lt===void 0?void 0:lt.toLocaleLowerCase())===d}).map(et=>et.callback($,o)):(c=this.bindings[d])===null||c===void 0||c.filter(et=>{var it,rt,lt,st,ot,nt;if(["broadcast","presence","postgres_changes"].includes(d))if("id"in et){const at=et.id,ct=(it=et.filter)===null||it===void 0?void 0:it.event;return at&&((rt=i.ids)===null||rt===void 0?void 0:rt.includes(at))&&(ct==="*"||(ct==null?void 0:ct.toLocaleLowerCase())===((lt=i.data)===null||lt===void 0?void 0:lt.type.toLocaleLowerCase()))}else{const at=(ot=(st=et==null?void 0:et.filter)===null||st===void 0?void 0:st.event)===null||ot===void 0?void 0:ot.toLocaleLowerCase();return at==="*"||at===((nt=i==null?void 0:i.event)===null||nt===void 0?void 0:nt.toLocaleLowerCase())}else return et.type.toLocaleLowerCase()===d}).map(et=>{if(typeof $=="object"&&"ids"in $){const it=$.data,{schema:rt,table:lt,commit_timestamp:st,type:ot,errors:nt}=it;$=Object.assign(Object.assign({},{schema:rt,table:lt,commit_timestamp:st,eventType:ot,new:{},old:{},errors:nt}),this._getPayloadRecords(it))}et.callback($,o)})}_isClosed(){return this.state===CHANNEL_STATES.closed}_isJoined(){return this.state===CHANNEL_STATES.joined}_isJoining(){return this.state===CHANNEL_STATES.joining}_isLeaving(){return this.state===CHANNEL_STATES.leaving}_replyEventName(s){return`chan_reply_${s}`}_on(s,i,o){const a=s.toLocaleLowerCase(),c={type:a,filter:i,callback:o};return this.bindings[a]?this.bindings[a].push(c):this.bindings[a]=[c],this}_off(s,i){const o=s.toLocaleLowerCase();return this.bindings[o]&&(this.bindings[o]=this.bindings[o].filter(a=>{var c;return!(((c=a.type)===null||c===void 0?void 0:c.toLocaleLowerCase())===o&&RealtimeChannel.isEqual(a.filter,i))})),this}static isEqual(s,i){if(Object.keys(s).length!==Object.keys(i).length)return!1;for(const o in s)if(s[o]!==i[o])return!1;return!0}_rejoinUntilConnected(){this.rejoinTimer.scheduleTimeout(),this.socket.isConnected()&&this._rejoin()}_onClose(s){this._on(CHANNEL_EVENTS.close,{},s)}_onError(s){this._on(CHANNEL_EVENTS.error,{},i=>s(i))}_canPush(){return this.socket.isConnected()&&this._isJoined()}_rejoin(s=this.timeout){this._isLeaving()||(this.socket._leaveOpenTopic(this.topic),this.state=CHANNEL_STATES.joining,this.joinPush.resend(s))}_getPayloadRecords(s){const i={new:{},old:{}};return(s.type==="INSERT"||s.type==="UPDATE")&&(i.new=convertChangeData(s.columns,s.record)),(s.type==="UPDATE"||s.type==="DELETE")&&(i.old=convertChangeData(s.columns,s.old_record)),i}}const noop=()=>{},CONNECTION_TIMEOUTS={HEARTBEAT_INTERVAL:25e3,RECONNECT_DELAY:10,HEARTBEAT_TIMEOUT_FALLBACK:100},RECONNECT_INTERVALS=[1e3,2e3,5e3,1e4],DEFAULT_RECONNECT_FALLBACK=1e4,WORKER_SCRIPT=` 466 addEventListener("message", (e) => { 467 if (e.data.event === "start") { 468 setInterval(() => postMessage({ event: "keepAlive" }), e.data.interval); 469 } 470 });`;class RealtimeClient{constructor(s,i){var o;if(this.accessTokenValue=null,this.apiKey=null,this.channels=new Array,this.endPoint="",this.httpEndpoint="",this.headers={},this.params={},this.timeout=DEFAULT_TIMEOUT,this.transport=null,this.heartbeatIntervalMs=CONNECTION_TIMEOUTS.HEARTBEAT_INTERVAL,this.heartbeatTimer=void 0,this.pendingHeartbeatRef=null,this.heartbeatCallback=noop,this.ref=0,this.reconnectTimer=null,this.logger=noop,this.conn=null,this.sendBuffer=[],this.serializer
470=new Serializer,this.stateChangeCallbacks={open:[],close:[],error:[],message:[]},this.accessToken=null,this._connectionState="disconnected",this._wasManualDisconnect=!1,this._authPromise=null,this._resolveFetch=a=>{let c;return a?c=a:typeof fetch>"u"?c=(...d)=>__vitePreload(async()=>{const{default:h}=await Promise.resolve().then(()=>browser);return{default:h}},void 0).then(({default:h})=>h(...d)).catch(h=>{throw new Error(`Failed to load @supabase/node-fetch: ${h.message}. This is required for HTTP requests in Node.js environments without native fetch.`)}):c=fetch,(...d)=>c(...d)},!(!((o=i==null?void 0:i.params)===null||o===void 0)&&o.apikey))throw new Error("API key is required to connect to Realtime");this.apiKey=i.params.apikey,this.endPoint=`${s}/${TRANSPORTS.websocket}`,this.httpEndpoint=httpEndpointURL(s),this._initializeOptions(i),this._setupReconnectionTimer(),this.fetch=this._resolveFetch(i==null?void 0:i.fetch)}connect(){if(!(this.isConnecting()||this.isDisconnecting()||this.conn!==null&&this.isConnected())){if(this._setConnectionState("connecting"),this._setAuthSafely("connect"),this.transport)this.conn=new this.transport(this.endpointURL());else try{this.conn=WebSocketFactory.createWebSocket(this.endpointURL())}catch(s){this._setConnectionState("disconnected");const i=s.message;throw i.includes("Node.js")?new Error(`${i} 471 472To use Realtime in Node.js, you need to provide a WebSocket implementation: 473 474Option 1: Use Node.js 22+ which has native WebSocket support 475Option 2: Install and provide the "ws" package: 476 477 npm install ws 478 479 import ws from "ws" 480 const client = new RealtimeClient(url, { 481 ...options, 482 transport: ws 483 })`):new Error(`WebSocket not available: ${i}`)}this._setupConnectionHandlers()}}endpointURL(){return this._appendParams(this.endPoint,Object.assign({},this.params,{vsn:VSN}))}disconnect(s,i){if(!this.isDisconnecting())if(this._setConnectionState("disconnecting",!0),this.conn){const o=setTimeout(()=>{this._setConnectionState("disconnected")},100);this.conn.onclose=()=>{clearTimeout(o),this._setConnectionState("disconnected")},s?this.conn.close(s,i??""):this.conn.close(),this._teardownConnection()}else this._setConnectionState("disconnected")}getChannels(){return this.channels}async removeChannel(s){const i=await s.unsubscribe();return this.channels.length===0&&this.disconnect(),i}async removeAllChannels(){const s=await Promise.all(this.channels.map(i=>i.unsubscribe()));return this.channels=[],this.disconnect(),s}log(s,i,o){this.logger(s,i,o)}connectionState(){switch(this.conn&&this.conn.readyState){case SOCKET_STATES.connecting:return CONNECTION_STATE.Connecting;case SOCKET_STATES.open:return CONNECTION_STATE.Open;case SOCKET_STATES.closing:return CONNECTION_STATE.Closing;default:return CONNECTION_STATE.Closed}}isConnected(){return this.connectionState()===CONNECTION_STATE.Open}isConnecting(){return this._connectionState==="connecting"}isDisconnecting(){return this._connectionState==="disconnecting"}channel(s,i={config:{}}){const o=`realtime:${s}`,a=this.getChannels().find(c=>c.topic===o);if(a)return a;{const c=new RealtimeChannel(`realtime:${s}`,i,this);return this.channels.push(c),c}}push(s){const{topic:i,event:o,payload:a,ref:c}=s,d=()=>{this.encode(s,h=>{var g;(g=this.conn)===null||g===void 0||g.send(h)})};this.log("push",`${i} ${o} (${c})`,a),this.isConnected()?d():this.sendBuffer.push(d)}async setAuth(s=null){this._authPromise=this._performAuth(s);try{await this._authPromise}finally{this._authPromise=null}}async sendHeartbeat(){var s;if(!this.isConnected()){try{this.heartbeatCallback("disconnected")}catch(i){this.log("error","error in heartbeat callback",i)}return}if(this.pendingHeartbeatRef){this.pendingHeartbeatRef=null,this.log("transport","heartbeat timeout. Attempting to re-establish connection");try{this.heartbeatCallback("timeout")}catch(i){this.log("error","error in heartbeat callback",i)}this._wasManualDisconnect=!1,(s=this.conn)===null||s===void 0||s.close(WS_CLOSE_NORMAL,"heartbeat timeout"),setTimeout(()=>{var i;this.isConnected()||(i=this.reconnectTimer)===null||i===void 0||i.scheduleTimeout()},CONNECTION_TIMEOUTS.HEARTBEAT_TIMEOUT_FALLBACK);return}this.pendingHeartbeatRef=this._makeRef(),this.push({topic:"phoenix",event:"heartbeat",payload:{},ref:this.pendingHeartbeatRef});try{this.heartbeatCallback("sent")}catch(i){this.log("error","error in heartbeat callback",i)}this._setAuthSafely("heartbeat")}onHeartbeat(s){this.heartbeatCallback=s}flushSendBuffer(){this.isConnected()&&this.sendBuffer.length>0&&(this.sendBuffer.forEach(s=>s()),this.sendBuffer=[])}_makeRef(){let s=this.ref+1;return s===this.ref?this.ref=0:this.ref=s,this.ref.toString()}_leaveOpenTopic(s){let i=this.channels.find(o=>o.topic===s&&(o._isJoined()||o._isJoining()));i&&(this.log("transport",`leaving duplicate topic "${s}"`),i.unsubscribe())}_remove(s){this.channels=this.channels.filter(i=>i.topic!==s.topic)}_onConnMessage(s){this.decode(s.data,i=>
483{if(i.topic==="phoenix"&&i.event==="phx_reply")try{this.heartbeatCallback(i.payload.status==="ok"?"ok":"error")}catch(b){this.log("error","error in heartbeat callback",b)}i.ref&&i.ref===this.pendingHeartbeatRef&&(this.pendingHeartbeatRef=null);const{topic:o,event:a,payload:c,ref:d}=i,h=d?`(${d})`:"",g=c.status||"";this.log("receive",`${g} ${o} ${a} ${h}`.trim(),c),this.channels.filter(b=>b._isMember(o)).forEach(b=>b._trigger(a,c,d)),this._triggerStateCallbacks("message",i)})}_clearTimer(s){var i;s==="heartbeat"&&this.heartbeatTimer?(clearInterval(this.heartbeatTimer),this.heartbeatTimer=void 0):s==="reconnect"&&((i=this.reconnectTimer)===null||i===void 0||i.reset())}_clearAllTimers(){this._clearTimer("heartbeat"),this._clearTimer("reconnect")}_setupConnectionHandlers(){this.conn&&("binaryType"in this.conn&&(this.conn.binaryType="arraybuffer"),this.conn.onopen=()=>this._onConnOpen(),this.conn.onerror=s=>this._onConnError(s),this.conn.onmessage=s=>this._onConnMessage(s),this.conn.onclose=s=>this._onConnClose(s))}_teardownConnection(){this.conn&&(this.conn.onopen=null,this.conn.onerror=null,this.conn.onmessage=null,this.conn.onclose=null,this.conn=null),this._clearAllTimers(),this.channels.forEach(s=>s.teardown())}_onConnOpen(){this._setConnectionState("connected"),this.log("transport",`connected to ${this.endpointURL()}`),this.flushSendBuffer(),this._clearTimer("reconnect"),this.worker?this.workerRef||this._startWorkerHeartbeat():this._startHeartbeat(),this._triggerStateCallbacks("open")}_startHeartbeat(){this.heartbeatTimer&&clearInterval(this.heartbeatTimer),this.heartbeatTimer=setInterval(()=>this.sendHeartbeat(),this.heartbeatIntervalMs)}_startWorkerHeartbeat(){this.workerUrl?this.log("worker",`starting worker for from ${this.workerUrl}`):this.log("worker","starting default worker");const s=this._workerObjectUrl(this.workerUrl);this.workerRef=new Worker(s),this.workerRef.onerror=i=>{this.log("worker","worker error",i.message),this.workerRef.terminate()},this.workerRef.onmessage=i=>{i.data.event==="keepAlive"&&this.sendHeartbeat()},this.workerRef.postMessage({event:"start",interval:this.heartbeatIntervalMs})}_onConnClose(s){var i;this._setConnectionState("disconnected"),this.log("transport","close",s),this._triggerChanError(),this._clearTimer("heartbeat"),this._wasManualDisconnect||(i=this.reconnectTimer)===null||i===void 0||i.scheduleTimeout(),this._triggerStateCallbacks("close",s)}_onConnError(s){this._setConnectionState("disconnected"),this.log("transport",`${s}`),this._triggerChanError(),this._triggerStateCallbacks("error",s)}_triggerChanError(){this.channels.forEach(s=>s._trigger(CHANNEL_EVENTS.error))}_appendParams(s,i){if(Object.keys(i).length===0)return s;const o=s.match(/\?/)?"&":"?",a=new URLSearchParams(i);return`${s}${o}${a}`}_workerObjectUrl(s){let i;if(s)i=s;else{const o=new Blob([WORKER_SCRIPT],{type:"application/javascript"});i=URL.createObjectURL(o)}return i}_setConnectionState(s,i=!1){this._connectionState=s,s==="connecting"?this._wasManualDisconnect=!1:s==="disconnecting"&&(this._wasManualDisconnect=i)}async _performAuth(s=null){let i;s?i=s:this.accessToken?i=await this.accessToken():i=this.accessTokenValue,this.accessTokenValue!=i&&(this.accessTokenValue=i,this.channels.forEach(o=>{const a={access_token:i,version:DEFAULT_VERSION};i&&o.updateJoinPayload(a),o.joinedOnce&&o._isJoined()&&o._push(CHANNEL_EVENTS.access_token,{access_token:i})}))}async _waitForAuthIfNeeded(){this._authPromise&&await this._authPromise}_setAuthSafely(s="general"){this.setAuth().catch(i=>{this.log("error",`error setting auth in ${s}`,i)})}_triggerStateCallbacks(s,i){try{this.stateChangeCallbacks[s].forEach(o=>{try{o(i)}catch(a){this.log("error",`error in ${s} callback`,a)}})}catch(o){this.log("error",`error triggering ${s} callbacks`,o)}}_setupReconnectionTimer(){this.reconnectTimer=new Timer(async()=>{setTimeout(async()=>{await this._waitForAuthIfNeeded(),this.isConnected()||this.connect()},CONNECTION_TIMEOUTS.RECONNECT_DELAY)},this.reconnectAfterMs)}_initializeOptions(s){var i,o,a,c,d,h,g,b,_;if(this.transport=(i=s==null?void 0:s.transport)!==null&&i!==void 0?i:null,this.timeout=(o=s==null?void 0:s.timeout)!==null&&o!==void 0?o:DEFAULT_TIMEOUT,this.heartbeatIntervalMs=(a=s==null?void 0:s.heartbeatIntervalMs)!==null&&a!==void 0?a:CONNECTION_TIMEOUTS.HEARTBEAT_INTERVAL,this.worker=(c=s==null?void 0:s.worker)!==null&&c!==void 0?c:!1,this.accessToken=(d=s==null?void 0:s.accessToken)!==null&&d!==void 0?d:null,this.heartbeatCallback=(h=s==null?void 0:s.heartbeatCallback)!==null&&h!==void 0?h:noop,s!=null&&s.params&&(this.params=s.params),s!=null&&s.logger&&(this.logger=s.logger),(s!=null&&s.logLevel||s!=null&&s.log_level)&&(this.logLevel=s.logLevel||s.log_level,this.params=Object.assign(Object.assign({},this.params),{log_level:this.logLevel})),this.reconnectAfterMs=(g=s==null?void 0:s.reconnectAfterMs)!==null&&g!==void 0?g:_e=>RECONNECT_INTERVALS[_e-1]||DEFAULT_RECONNECT_FALLBACK,this.encode=(b=s==null?void 0:s.encode)!==null&&b!==void 0?b:(_e,$)=>$(JSON.stringify(_e)),this.decode=(_=s==null?void 0:s.decode)!==null&&_!==void 0?_:this.serializer.decode.bind(this.serializer),this.worker){if(typeof window<"u"&&!window.Worker)throw new Error("Web Worker is not supported");this.workerUrl=s==null?void 0:s.workerUrl}}}
483class StorageError extends Error{constructor(s){super(s),this.__isStorageError=!0,this.name="StorageError"}}function isStorageError(e){return typeof e=="object"&&e!==null&&"__isStorageError"in e}class StorageApiError extends StorageError{constructor(s,i,o){super(s),this.name="StorageApiError",this.status=i,this.statusCode=o}toJSON(){return{name:this.name,message:this.message,status:this.status,statusCode:this.statusCode}}}class StorageUnknownError extends StorageError{constructor(s,i){super(s),this.name="StorageUnknownError",this.originalError=i}}const resolveFetch$3=e=>{let s;return e?s=e:typeof fetch>"u"?s=(...i)=>__vitePreload(async()=>{const{default:o}=await Promise.resolve().then(()=>browser);return{default:o}},void 0).then(({default:o})=>o(...i)):s=fetch,(...i)=>s(...i)},resolveResponse=()=>__awaiter(void 0,void 0,void 0,function*(){return typeof Response>"u"?(yield __vitePreload(()=>Promise.resolve().then(()=>browser),void 0)).Response:Response}),recursiveToCamel=e=>{if(Array.isArray(e))return e.map(i=>recursiveToCamel(i));if(typeof e=="function"||e!==Object(e))return e;const s={};return Object.entries(e).forEach(([i,o])=>{const a=i.replace(/([-_][a-z])/gi,c=>c.toUpperCase().replace(/[-_]/g,""));s[a]=recursiveToCamel(o)}),s},isPlainObject$1=e=>{if(typeof e!="object"||e===null)return!1;const s=Object.getPrototypeOf(e);return(s===null||s===Object.prototype||Object.getPrototypeOf(s)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},_getErrorMessage$2=e=>e.msg||e.message||e.error_description||e.error||JSON.stringify(e),handleError$2=(e,s,i)=>__awaiter(void 0,void 0,void 0,function*(){const o=yield resolveResponse();e instanceof o&&!(i!=null&&i.noResolveJson)?e.json().then(a=>{const c=e.status||500,d=(a==null?void 0:a.statusCode)||c+"";s(new StorageApiError(_getErrorMessage$2(a),c,d))}).catch(a=>{s(new StorageUnknownError(_getErrorMessage$2(a),a))}):s(new StorageUnknownError(_getErrorMessage$2(e),e))}
483),_getRequestParams$2=(e,s,i,o)=>{const a={method:e,headers:(s==null?void 0:s.headers)||{}};return e==="GET"||!o?a:(isPlainObject$1(o)?(a.headers=Object.assign({"Content-Type":"application/json"},s==null?void 0:s.headers),a.body=JSON.stringify(o)):a.body=o,s!=null&&s.duplex&&(a.duplex=s.duplex),Object.assign(Object.assign({},a),i))};function _handleRequest$2(e,s,i,o,a,c){return __awaiter(this,void 0,void 0,function*(){return new Promise((d,h)=>{e(i,_getRequestParams$2(s,o,a,c)).then(g=>{if(!g.ok)throw g;return o!=null&&o.noResolveJson?g:g.json()}).then(g=>d(g)).catch(g=>handleError$2(g,h,o))})})}function get(e,s,i,o){return __awaiter(this,void 0,void 0,function*(){return _handleRequest$2(e,"GET",s,i,o)})}function post$1(e,s,i,o,a){return __awaiter(this,void 0,void 0,function*(){return _handleRequest$2(e,"POST",s,o,a,i)})}function put(e,s,i,o,a){return __awaiter(this,void 0,void 0,function*(){return _handleRequest$2(e,"PUT",s,o,a,i)})}function head(e,s,i,o){return __awaiter(this,void 0,void 0,function*(){return _handleRequest$2(e,"HEAD",s,Object.assign(Object.assign({},i),{noResolveJson:!0}),o)})}function remove(e,s,i,o,a){return __awaiter(this,void 0,void 0,function*(){return _handleRequest$2(e,"DELETE",s,o,a,i)})}class StreamDownloadBuilder{constructor(s,i){this.downloadFn=s,this.shouldThrowOnError=i}then(s,i){return this.execute().then(s,i)}execute(){return __awaiter(this,void 0,void 0,function*(){try{return{data:(yield this.downloadFn()).body,error:null}}catch(s){if(this.shouldThrowOnError)throw s;if(isStorageError(s))return{data:null,error:s};throw s}})}}var _a;class BlobDownloadBuilder{constructor(s,i){this.downloadFn=s,this.shouldThrowOnError=i,this[_a]="BlobDownloadBuilder",this.promise=null}asStream(){return new StreamDownloadBuilder(this.downloadFn,this.shouldThrowOnError)}then(s,i){return this.getPromise().then(s,i)}catch(s){return this.getPromise().catch(s)}finally(s){return this.getPromise().finally(s)}getPromise(){return this.promise||(this.promise=this.execute()),this.promise}execute(){return __awaiter(this,void 0,void 0,function*(){try{return{data:yield(yield this.downloadFn()).blob(),error:null}}catch(s){if(this.shouldThrowOnError)throw s;if(isStorageError(s))return{data:null,error:s};throw s}})}}_a=Symbol.toStringTag;const DEFAULT_SEARCH_OPTIONS={limit:100,offset:0,sortBy:{column:"name",order:"asc"}},DEFAULT_FILE_OPTIONS={cacheControl:"3600",contentType:"text/plain;charset=UTF-8",upsert:!1};class StorageFileApi{constructor(s,i={},o,a){this.shouldThrowOnError=!1,this.url=s,this.headers=i,this.bucketId=o,this.fetch=resolveFetch$3(a)}throwOnError(){return this.shouldThrowOnError=!0,this}uploadOrUpdate(s,i,o,a){return __awaiter(this,void 0,void 0,function*(){try{let c;const d=Object.assign(Object.assign({},DEFAULT_FILE_OPTIONS),a);let h=Object.assign(Object.assign({},this.headers),s==="POST"&&{"x-upsert":String(d.upsert)});const g=d.metadata;typeof Blob<"u"&&o instanceof Blob?(c=new FormData,c.append("cacheControl",d.cacheControl),g&&c.append("metadata",this.encodeMetadata(g)),c.append("",o)):typeof FormData<"u"&&o instanceof FormData?(c=o,c.append("cacheControl",d.cacheControl),g&&c.append("metadata",this.encodeMetadata(g))):(c=o,h["cache-control"]=`max-age=${d.cacheControl}`,h["content-type"]=d.contentType,g&&(h["x-metadata"]=this.toBase64(this.encodeMetadata(g)))),a!=null&&a.headers&&(h=Object.assign(Object.assign({},h),a.headers));const b=this._removeEmptyFolders(i),_=this._getFinalPath(b),_e=yield(s=="PUT"?put:post$1)(this.fetch,`${this.url}/object/${_}`,c,Object.assign({headers:h},d!=null&&d.duplex?{duplex:d.duplex}:{}));return{data:{path:b,id:_e.Id,fullPath:_e.Key},error:null}}catch(c){if(this.shouldThrowOnError)throw c;if(isStorageError(c))return{data:null,error:c};throw c}})}upload(s,i,o){return __awaiter(this,void 0,void 0,function*(){return this.uploadOrUpdate("POST",s,i,o)})}uploadToSignedUrl(s,i,o,a){return __awaiter(this,void 0,void 0,function*(){const c=this._removeEmptyFolders(s),d=this._getFinalPath(c),h=new URL(this.url+`/object/upload/sign/${d}`);h.searchParams.set("token",i);try{let g;const b=Object.assign({upsert:DEFAULT_FILE_OPTIONS.upsert},a),_=Object.assign(Object.assign({},this.headers),{"x-upsert":String(b.upsert)});
483typeof Blob<"u"&&o instanceof Blob?(g=new FormData,g.append("cacheControl",b.cacheControl),g.append("",o)):typeof FormData<"u"&&o instanceof FormData?(g=o,g.append("cacheControl",b.cacheControl)):(g=o,_["cache-control"]=`max-age=${b.cacheControl}`,_["content-type"]=b.contentType);const _e=yield put(this.fetch,h.toString(),g,{headers:_});return{data:{path:c,fullPath:_e.Key},error:null}}catch(g){if(this.shouldThrowOnError)throw g;if(isStorageError(g))return{data:null,error:g};throw g}})}createSignedUploadUrl(s,i){return __awaiter(this,void 0,void 0,function*(){try{let o=this._getFinalPath(s);const a=Object.assign({},this.headers);i!=null&&i.upsert&&(a["x-upsert"]="true");const c=yield post$1(this.fetch,`${this.url}/object/upload/sign/${o}`,{},{headers:a}),d=new URL(this.url+c.url),h=d.searchParams.get("token");if(!h)throw new StorageError("No token returned by API");return{data:{signedUrl:d.toString(),path:s,token:h},error:null}}catch(o){if(this.shouldThrowOnError)throw o;if(isStorageError(o))return{data:null,error:o};throw o}})}update(s,i,o){return __awaiter(this,void 0,void 0,function*(){return this.uploadOrUpdate("PUT",s,i,o)})}move(s,i,o){return __awaiter(this,void 0,void 0,function*(){try{return{data:yield post$1(this.fetch,`${this.url}/object/move`,{bucketId:this.bucketId,sourceKey:s,destinationKey:i,destinationBucket:o==null?void 0:o.destinationBucket},{headers:this.headers}),error:null}}catch(a){if(this.shouldThrowOnError)throw a;if(isStorageError(a))return{data:null,error:a};throw a}})}copy(s,i,o){return __awaiter(this,void 0,void 0,function*(){try{return{data:{path:(yield post$1(this.fetch,`${this.url}/object/copy`,{bucketId:this.bucketId,sourceKey:s,destinationKey:i,destinationBucket:o==null?void 0:o.destinationBucket},{headers:this.headers})).Key},error:null}}catch(a){if(this.shouldThrowOnError)throw a;if(isStorageError(a))return{data:null,error:a};throw a}})}createSignedUrl(s,i,o){return __awaiter(this,void 0,void 0,function*(){try{let a=this._getFinalPath(s),c=yield post$1(this.fetch,`${this.url}/object/sign/${a}`,Object.assign({expiresIn:i},o!=null&&o.transform?{transform:o.transform}:{}),{headers:this.headers});const d=o!=null&&o.download?`&download=${o.download===!0?"":o.download}`:"";return c={signedUrl:encodeURI(`${this.url}${c.signedURL}${d}`)},{data:c,error:null}}catch(a){if(this.shouldThrowOnError)throw a;if(isStorageError(a))return{data:null,error:a};throw a}})}createSignedUrls(s,i,o){return __awaiter(this,void 0,void 0,function*(){try{const a=yield post$1(this.fetch,`${this.url}/object/sign/${this.bucketId}`,{expiresIn:i,paths:s},{headers:this.headers}),c=o!=null&&o.download?`&download=${o.download===!0?"":o.download}`:"";return{data:a.map(d=>Object.assign(Object.assign({},d),{signedUrl:d.signedURL?encodeURI(`${this.url}${d.signedURL}${c}`):null})),error:null}}catch(a){if(this.shouldThrowOnError)throw a;if(isStorageError(a))return{data:null,error:a};throw a}})}download(s,i){const a=typeof(i==null?void 0:i.transform)<"u"?"render/image/authenticated":"object",c=this.transformOptsToQueryString((i==null?void 0:i.transform)||{}),d=c?`?${c}`:"",h=this._getFinalPath(s),g=()=>get(this.fetch,`${this.url}/${a}/${h}${d}`,{headers:this.headers,noResolveJson:!0});return new BlobDownloadBuilder(g,this.shouldThrowOnError)}info(s){return __awaiter(this,void 0,void 0,function*(){const i=this._getFinalPath(s);try{const o=yield get(this.fetch,`${this.url}/object/info/${i}`,{headers:this.headers});return{data:recursiveToCamel(o),error:null}}catch(o){if(this.shouldThrowOnError)throw o;if(isStorageError(o))return{data:null,error:o};throw o}})}exists(s){return __awaiter(this,void 0,void 0,function*(){const i=this._getFinalPath(s);try{return yield head(this.fetch,`${this.url}/object/${i}`,{headers:this.headers}),{data:!0,error:null}}catch(o){if(this.shouldThrowOnError)throw o;if(isStorageError(o)&&o instanceof StorageUnknownError){const a=o.originalError;if([400,404].includes(a==null?void 0:a.status))return{data:!1,error:o}}throw o}})}getPublicUrl(s,i){const o=this._getFinalPath(s),a=[],c=i!=null&&i.download?`download=${i.download===!0?"":i.download}`:"";c!==""&&a.push(c);const h=typeof(i==null?void 0:i.transform)<"u"?"render/image":"object",g=this.transformOptsToQueryString((i==null?void 0:i.transform)||{});g!==""&&a.push(g);let b=a.join("&");return b!==""&&(b=`?${b}`),{data:{publicUrl:encodeURI(`${this.url}/${h}/public/${o}${b}`)}}}remove(s){return __awaiter(this,void 0,void 0,function*(){try{return{data:yield remove(this.fetch,`${this.url}/object/${this.bucketId}`,{prefixes:s},{headers:this.headers}),error:null}}catch(i){if(this.shouldThrowOnError)throw i;if(isStorageError(i))return{data:null,error:i};throw i}})}list(s,i,o){return __awaiter(this,void 0,void 0,function*(){try{const a=Object.assign(Object.assign(Object.assign({},DEFAULT_SEARCH_OPTIONS),i),{prefix:s||""});return{data:yield post$1(this.fetch,`${this.url}/object/list/${this.bucketId}`,a,{headers:this.headers},o),error:null}}catch(a){if(this.shouldThrowOnError)throw a;if(isStorageError(a))return{data:null,error:a};throw a}})}listV2(s,i){return __awaiter(this,void 0,void 0,function*(){try{const o=Object.assign({},s);return{data:yield post$1(this.fetch,`${this.url}/object/list-v2/${this.bucketId}`,o,{headers:this.headers},i),error:null}}catch(o){if(this.shouldThrowOnError)throw o;if(isStorageError(o))return{data:null,error:o};throw o}})}encodeMetadata(s){return JSON.stringify(s)}toBase64(s){return typeof Buffer<"u"?Buffer.from(s).toString("base64"):btoa(s)}_getFinalPath(s){return`${this.bucketId}/${s.replace(/^\/+/,"")}`}_removeEmptyFolders(s){return s.replace(/^\/|\/$/g,"").replace(/\/+/g,"/")}transformOptsToQueryString(s){const i=[];return s.width&&i.push(`width=${s.width}`),s.height&&i.push(`height=${s.height}`),s.resize&&i.push(`resize=${s.resize}`),s.format&&i.push(`format=${s.format}`),s.quality&&i.push(`quality=${s.quality}`),i.join("&")}}const version$2="2.76.1",DEFAULT_HEADERS$3={"X-Client-Info":`storage-js/${version$2}`};class StorageBucketApi{constructor(s,i={},o,a){this.shouldThrowOnError=!1;const c=new URL(s);a!=null&&a.useNewHostname&&/supabase\.(co|in|red)$/.test(c.hostname)&&!c.hostname.includes("storage.supabase.")&&(c.hostname=c.hostname.replace("supabase.","storage.supabase.")),this.url=c.href.replace(/\/$/,""),this.headers=Object.assign(Object.assign({},DEFAULT_HEADERS$3),i),this.fetch=resolveFetch$3(o)}throwOnError(){return this.shouldThrowOnError=!0,this}listBuckets(){return __awaiter(this,void 0,void 0,function*(){try{return{data:yield get(this.fetch,`${this.url}/bucket`,{headers:this.headers}),error:null}}catch(s){if(this.shouldThrowOnError)throw s;if(isStorageError(s))return{data:null,error:s};throw s}})}getBucket(s){return __awaiter(this,void 0,void 0,function*(){try{return{data:yield get(this.fetch,`${this.url}/bucket/${s}`,{headers:this.headers}),error:null}}catch(i){if(this.shouldThrowOnError)throw i;if(isStorageError(i))return{data:null,error:i};throw i}})}createBucket(s){return __awaiter(this,arguments,void 0,function*(i,o={public:!1}){try{return{data:yield post$1(this.fetch,`${this.url}/bucket`,{id:i,name:i,type:o.type,public:o.public,file_size_limit:o.fileSizeLimit,allowed_mime_types:o.allowedMimeTypes},{headers:this.headers}),error:null}}catch(a){if(this.shouldThrowOnError)throw a;if(isStorageError(a))return{data:null,error:a};throw a}})}updateBucket(s,i){return __awaiter(this,void 0,void 0,function*(){try{return{data:yield put(this.fetch,`${this.url}/bucket/${s}`,{id:s,name:s,public:i.public,file_size_limit:i.fileSizeLimit,allowed_mime_types:i.allowedMimeTypes},{headers:this.headers}),error:null}}catch(o){if(this.shouldThrowOnError)throw o;if(isStorageError(o))return{data:null,error:o};throw o}})}emptyBucket(s){return __awaiter(this,void 0,void 0,function*(){try{return{data:yield post$1(this.fetch,`${this.url}/bucket/${s}/empty`,{},{headers:this.headers}),error:null}}catch(i){if(this.shouldThrowOnError)throw i;if(isStorageError(i))return{data:null,error:i};throw i}})}deleteBucket(s){return __awaiter(this,void 0,void 0,function*(){try{return{data:yield remove(this.fetch,`${this.url}/bucket/${s}`,{},{headers:this.headers}),error:null}}catch(i){if(this.shouldThrowOnError)throw i;if(isStorageError(i))return{data:null,error:i};throw i}})}}class StorageAnalyticsApi{constructor(s,i={},o){this.shouldThrowOnError=!1,this.url=s.replace(/\/$/,""),this.headers=Object.assign(Object.assign({},DEFAULT_HEADERS$3),i),this.fetch=resolveFetch$3(o)}throwOnError(){return this.shouldThrowOnError=!0,this}createBucket(s){return __awaiter(this,void 0,void 0,function*(){try{return{data:yield post$1(this.fetch,`${this.url}/bucket`,{name:s},{headers:this.headers}),error:null}}catch(i){if(this.shouldThrowOnError)throw i;if(isStorageError(i))return{data:null,error:i};throw i}})}listBuckets(s){return __awaiter(this,void 0,void 0,function*(){try{const i=new URLSearchParams;(s==null?void 0:s.limit)!==void 0&&i.set("limit",s.limit.toString()),(s==null?void 0:s.offset)!==void 0&&i.set("offset",s.offset.toString()),s!=null&&s.sortColumn&&i.set("sortColumn",s.sortColumn),s!=null&&s.sortOrder&&i.set("sortOrder",s.sortOrder),s!=null&&s.search&&i.set("search",s.search);const o=i.toString(),a=o?`${this.url}/bucket?${o}`:`${this.url}/bucket`,c=yield get(this.fetch,a,{headers:this.headers});return{data:Array.isArray(c)?c.filter(h=>h.type==="ANALYTICS"):[],error:null}}catch(i){if(this.shouldThrowOnError)throw i;if(isStorageError(i))return{data:null,error:i};throw i}})}deleteBucket(s){return __awaiter(this,void 0,void 0,function*(){try{return{data:yield remove(this.fetch,`${this.url}/bucket/${s}`,{},{headers:this.headers}),error:null}}catch(i){if(this.shouldThrowOnError)throw i;if(isStorageError(i))return{data:null,error:i};throw i}})}}const DEFAULT_HEADERS$2={"X-Client-Info":`storage-js/${version$2}`,"Content-Type":"application/json"};
483class StorageVectorsError extends Error{constructor(s){super(s),this.__isStorageVectorsError=!0,this.name="StorageVectorsError"}}function isStorageVectorsError(e){return typeof e=="object"&&e!==null&&"__isStorageVectorsError"in e}class StorageVectorsApiError extends StorageVectorsError{constructor(s,i,o){super(s),this.name="StorageVectorsApiError",this.status=i,this.statusCode=o}toJSON(){return{name:this.name,message:this.message,status:this.status,statusCode:this.statusCode}}}class StorageVectorsUnknownError extends StorageVectorsError{constructor(s,i){super(s),this.name="StorageVectorsUnknownError",this.originalError=i}}var StorageVectorsErrorCode;(function(e){e.InternalError="InternalError",e.S3VectorConflictException="S3VectorConflictException",e.S3VectorNotFoundException="S3VectorNotFoundException",e.S3VectorBucketNotEmpty="S3VectorBucketNotEmpty",e.S3VectorMaxBucketsExceeded="S3VectorMaxBucketsExceeded",e.S3VectorMaxIndexesExceeded="S3VectorMaxIndexesExceeded"})(StorageVectorsErrorCode||(StorageVectorsErrorCode={}));const resolveFetch$2=e=>{let s;return e?s=e:typeof fetch>"u"?s=(...i)=>__vitePreload(async()=>{const{default:o}=await Promise.resolve().then(()=>browser);return{default:o}},void 0).then(({default:o})=>o(...i)):s=fetch,(...i)=>s(...i)},isPlainObject=e=>{if(typeof e!="object"||e===null)return!1;const s=Object.getPrototypeOf(e);return(s===null||s===Object.prototype||Object.getPrototypeOf(s)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},_getErrorMessage$1=e=>e.msg||e.message||e.error_description||e.error||JSON.stringify(e),handleError$1=(e,s,i)=>__awaiter(void 0,void 0,void 0,function*(){if(e&&typeof e=="object"&&"status"in e&&"ok"in e&&typeof e.status=="number"&&!(i!=null&&i.noResolveJson)){const a=e.status||500,c=e;if(typeof c.json=="function")c.json().then(d=>{const h=(d==null?void 0:d.statusCode)||(d==null?void 0:d.code)||a+"";s(new StorageVectorsApiError(_getErrorMessage$1(d),a,h))}).catch(()=>{const d=a+"",h=c.statusText||`HTTP ${a} error`;s(new StorageVectorsApiError(h,a,d))});else{const d=a+"",h=c.statusText||`HTTP ${a} error`;s(new StorageVectorsApiError(h,a,d))}}else s(new StorageVectorsUnknownError(_getErrorMessage$1(e),e))}
483),_getRequestParams$1=(e,s,i,o)=>{const a={method:e,headers:(s==null?void 0:s.headers)||{}};return o?(isPlainObject(o)?(a.headers=Object.assign({"Content-Type":"application/json"},s==null?void 0:s.headers),a.body=JSON.stringify(o)):a.body=o,Object.assign(Object.assign({},a),i)):a};function _handleRequest$1(e,s,i,o,a,c){return __awaiter(this,void 0,void 0,function*(){return new Promise((d,h)=>{e(i,_getRequestParams$1(s,o,a,c)).then(g=>{if(!g.ok)throw g;if(o!=null&&o.noResolveJson)return g;const b=g.headers.get("content-type");return!b||!b.includes("application/json")?{}:g.json()}).then(g=>d(g)).catch(g=>handleError$1(g,h,o))})})}function post(e,s,i,o,a){return __awaiter(this,void 0,void 0,function*(){return _handleRequest$1(e,"POST",s,o,a,i)})}class VectorIndexApi{constructor(s,i={},o){this.shouldThrowOnError=!1,this.url=s.replace(/\/$/,""),this.headers=Object.assign(Object.assign({},DEFAULT_HEADERS$2),i),this.fetch=resolveFetch$2(o)}throwOnError(){return this.shouldThrowOnError=!0,this}createIndex(s){return __awaiter(this,void 0,void 0,function*(){try{return{data:(yield post(this.fetch,`${this.url}/CreateIndex`,s,{headers:this.headers}))||{},error:null}}catch(i){if(this.shouldThrowOnError)throw i;if(isStorageVectorsError(i))return{data:null,error:i};throw i}})}getIndex(s,i){return __awaiter(this,void 0,void 0,function*(){try{return{data:yield post(this.fetch,`${this.url}/GetIndex`,{vectorBucketName:s,indexName:i},{headers:this.headers}),error:null}}catch(o){if(this.shouldThrowOnError)throw o;if(isStorageVectorsError(o))return{data:null,error:o};throw o}})}listIndexes(s){return __awaiter(this,void 0,void 0,function*(){try{return{data:yield post(this.fetch,`${this.url}/ListIndexes`,s,{headers:this.headers}),error:null}}catch(i){if(this.shouldThrowOnError)throw i;if(isStorageVectorsError(i))return{data:null,error:i};throw i}})}deleteIndex(s,i){return __awaiter(this,void 0,void 0,function*(){try{return{data:(yield post(this.fetch,`${this.url}/DeleteIndex`,{vectorBucketName:s,indexName:i},{headers:this.headers}))||{},error:null}}catch(o){if(this.shouldThrowOnError)throw o;if(isStorageVectorsError(o))return{data:null,error:o};throw o}})}}class VectorDataApi{constructor(s,i={},o){this.shouldThrowOnError=!1,this.url=s.replace(/\/$/,""),this.headers=Object.assign(Object.assign({},DEFAULT_HEADERS$2),i),this.fetch=resolveFetch$2(o)}throwOnError(){return this.shouldThrowOnError=!0,this}putVectors(s){return __awaiter(this,void 0,void 0,function*(){try{if(s.vectors.length<1||s.vectors.length>500)throw new Error("Vector batch size must be between 1 and 500 items");return{data:(yield post(this.fetch,`${this.url}/PutVectors`,s,{headers:this.headers}))||{},error:null}}catch(i){if(this.shouldThrowOnError)throw i;if(isStorageVectorsError(i))return{data:null,error:i};throw i}})}getVectors(s){return __awaiter(this,void 0,void 0,function*(){try{return{data:yield post(this.fetch,`${this.url}/GetVectors`,s,{headers:this.headers}),error:null}}catch(i){if(this.shouldThrowOnError)throw i;if(isStorageVectorsError(i))return{data:null,error:i};throw i}})}listVectors(s){return __awaiter(this,void 0,void 0,function*(){try{if(s.segmentCount!==void 0){if(s.segmentCount<1||s.segmentCount>16)throw new Error("segmentCount must be between 1 and 16");if(s.segmentIndex!==void 0&&(s.segmentIndex<0||s.segmentIndex>=s.segmentCount))throw new Error(`segmentIndex must be between 0 and ${s.segmentCount-1}`)}return{data:yield post(this.fetch,`${this.url}/ListVectors`,s,{headers:this.headers}),error:null}}catch(i){if(this.shouldThrowOnError)throw i;if(isStorageVectorsError(i))return{data:null,error:i};throw i}})}queryVectors(s){return __awaiter(this,void 0,void 0,function*(){try{return{data:yield post(this.fetch,`${this.url}/QueryVectors`,s,{headers:this.headers}),error:null}}catch(i){if(this.shouldThrowOnError)throw i;if(isStorageVectorsError(i))return{data:null,error:i};throw i}})}deleteVectors(s){return __awaiter(this,void 0,void 0,function*(){try{if(s.keys.length<1||s.keys.length>500)throw new Error("Keys batch size must be between 1 and 500 items");return{data:(yield post(this.fetch,`${this.url}/DeleteVectors`,s,{headers:this.headers}))||{},error:null}}catch(i){if(this.shouldThrowOnError)throw i;if(isStorageVectorsError(i))return{data:null,error:i};throw i}})}}class VectorBucketApi{constructor(s,i={},o){this.shouldThrowOnError=!1,this.url=s.replace(/\/$/,""),this.headers=Object.assign(Object.assign({},DEFAULT_HEADERS$2),i),this.fetch=resolveFetch$2(o)}throwOnError(){return this.shouldThrowOnError=!0,this}createBucket(s){return __awaiter(this,void 0,void 0,function*(){try{return{data:(yield post(this.fetch,`${this.url}/CreateVectorBucket`,{vectorBucketName:s},{headers:this.headers}))||{},error:null}}catch(i){if(this.shouldThrowOnError)throw i;if(isStorageVectorsError(i))return{data:null,error:i};throw i}})}getBucket(s){return __awaiter(this,void 0,void 0,function*(){try{return{data:yield post(this.fetch,`${this.url}/GetVectorBucket`,{vectorBucketName:s},{headers:this.headers}),error:null}}catch(i){if(this.shouldThrowOnError)throw i;if(isStorageVectorsError(i))return{data:null,error:i};throw i}})}listBuckets(){return __awaiter(this,arguments,void 0,function*(s={}){try{return{data:yield post(this.fetch,`${this.url}/ListVectorBuckets`,s,{headers:this.headers}),error:null}}catch(i){if(this.shouldThrowOnError)throw i;if(isStorageVectorsError(i))return{data:null,error:i};throw i}})}deleteBucket(s){return __awaiter(this,void 0,void 0,function*(){try{return{data:(yield post(this.fetch,`${this.url}/DeleteVectorBucket`,{vectorBucketName:s},{headers:this.headers}))||{},error:null}}catch(i){if(this.shouldThrowOnError)throw i;if(isStorageVectorsError(i))return{data:null,error:i};throw i}})}}class StorageVectorsClient extends VectorBucketApi{constructor(s,i={}){super(s,i.headers||{},i.fetch)}from(s){return new VectorBucketScope(this.url,this.headers,s,this.fetch)}}class VectorBucketScope extends VectorIndexApi{constructor(s,i,o,a){super(s,i,a),this.vectorBucketName=o}createIndex(s){const i=Object.create(null,{createIndex:{get:()=>super.createIndex}});return __awaiter(this,void 0,void 0,function*(){return i.createIndex.call(this,Object.assign(Object.assign({},s),{vectorBucketName:this.vectorBucketName}))})}listIndexes(){const s=Object.create(null,{listIndexes:{get:()=>super.listIndexes}});return __awaiter(this,arguments,void 0,function*(i={}){return s.listIndexes.call(this,Object.assign(Object.assign({},i),{vectorBucketName:this.vectorBucketName}))})}getIndex(s){const i=Object.create(null,{getIndex:{get:()=>super.getIndex}});return __awaiter(this,void 0,void 0,function*(){return i.getIndex.call(this,this.vectorBucketName,s)})}deleteIndex(s){const i=Object.create(null,{deleteIndex:{get:()=>super.deleteIndex}});return __awaiter(this,void 0,void 0,function*(){return i.deleteIndex.call(this,this.vectorBucketName,s)})}index(s){return new VectorIndexScope(this.url,this.headers,this.vectorBucketName,s,this.fetch)}}class VectorIndexScope extends VectorDataApi{constructor(s,i,o,a,c){super(s,i,c),this.vectorBucketName=o,this.indexName=a}putVectors(s){const i=Object.create(null,{putVectors:{get:()=>super.putVectors}});return __awaiter(this,void 0,void 0,function*(){return i.putVectors.call(this,Object.assign(Object.assign({},s),{vectorBucketName:this.vectorBucketName,indexName:this.indexName}))})}getVectors(s){const i=Object.create(null,{getVectors:{get:()=>super.getVectors}});return __awaiter(this,void 0,void 0,function*(){return i.getVectors.call(this,Object.assign(Object.assign({},s),{vectorBucketName:this.vectorBucketName,indexName:this.indexName}))})}listVectors(){const s=Object.create(null,{listVectors:{get:()=>super.listVectors}});return __awaiter(this,arguments,void 0,function*(i={}){return s.listVectors.call(this,Object.assign(Object.assign({},i),{vectorBucketName:this.vectorBucketName,indexName:this.indexName}))})}queryVectors(s){const i=Object.create(null,{queryVectors:{get:()=>super.queryVectors}});return __awaiter(this,void 0,void 0,function*(){return i.queryVectors.call(this,Object.assign(Object.assign({},s),{vectorBucketName:this.vectorBucketName,indexName:this.indexName}))})}deleteVectors(s){const i=Object.create(null,{deleteVectors:{get:()=>super.deleteVectors}});return __awaiter(this,void 0,void 0,function*(){return i.deleteVectors.call(this,Object.assign(Object.assign({},s),{vectorBucketName:this.vectorBucketName,indexName:this.indexName}))})}}class StorageClient extends StorageBucketApi{constructor(s,i={},o,a){super(s,i,o,a)}from(s){return new StorageFileApi(this.url,this.headers,s,this.fetch)}get vectors(){return new StorageVectorsClient(this.url+"/vector",{headers:this.headers,fetch:this.fetch})}get analytics(){return new StorageAnalyticsApi(this.url+"/iceberg",this.headers,this.fetch)}}const version$1="2.76.1";let JS_ENV="";typeof Deno<"u"?JS_ENV="deno":typeof document<"u"?JS_ENV="web":typeof navigator<"u"&&navigator.product==="ReactNative"?JS_ENV="react-native":JS_ENV="node";const DEFAULT_HEADERS$1={"X-Client-Info":`supabase-js-${JS_ENV}/${version$1}`},DEFAULT_GLOBAL_OPTIONS={headers:DEFAULT_HEADERS$1},DEFAULT_DB_OPTIONS={schema:"public"},DEFAULT_AUTH_OPTIONS={autoRefreshToken:!0,persistSession:!0,detectSessionInUrl:!0,flowType:"implicit"},DEFAULT_REALTIME_OPTIONS={},resolveFetch$1=e=>{let s;return e?s=e:typeof fetch>"u"?s=nodeFetch:s=fetch,(...i)=>s(...i)},resolveHeadersConstructor=()=>typeof Headers>"u"?Headers$1:Headers,fetchWithAuth=(e,s,i)=>{const o=resolveFetch$1(i),a=resolveHeadersConstructor();return async(c,d)=>{var h;const g=(h=await s())!==null&&h!==void 0?h:e;let b=new a(d==null?void 0:d.headers);return b.has("apikey")||b.set("apikey",e),b.has("Authorization")||b.set("Authorization",`Bearer ${g}`),o(c,Object.assign(Object.assign({},d),{headers:b}))}};function ensureTrailingSlash(e){return e.endsWith("/")?e:e+"/"}function applySettingDefaults(e,s){var i,o;const{db:a,auth:c,realtime:d,global:h}=e,{db:g,auth:b,realtime:_,global:_e}=s,$={db:Object.assign(Object.assign({},g),a),auth:Object.assign(Object.assign({},b),c),realtime:Object.assign(Object.assign({},_),d),storage:{},global:Object.assign(Object.assign(Object.assign({},_e),h),{headers:Object.assign(Object.assign({},(i=_e==null?void 0:_e.headers)!==null&&i!==void 0?i:{}
483),(o=h==null?void 0:h.headers)!==null&&o!==void 0?o:{})}),accessToken:async()=>""};return e.accessToken?$.accessToken=e.accessToken:delete $.accessToken,$}function validateSupabaseUrl(e){const s=e==null?void 0:e.trim();if(!s)throw new Error("supabaseUrl is required.");if(!s.match(/^https?:\/\//i))throw new Error("Invalid supabaseUrl: Must be a valid HTTP or HTTPS URL.");try{return new URL(ensureTrailingSlash(s))}catch{throw Error("Invalid supabaseUrl: Provided URL is malformed.")}}const version="2.76.1",AUTO_REFRESH_TICK_DURATION_MS=30*1e3,AUTO_REFRESH_TICK_THRESHOLD=3,EXPIRY_MARGIN_MS=AUTO_REFRESH_TICK_THRESHOLD*AUTO_REFRESH_TICK_DURATION_MS,GOTRUE_URL="http://localhost:9999",STORAGE_KEY="supabase.auth.token",DEFAULT_HEADERS={"X-Client-Info":`gotrue-js/${version}`},API_VERSION_HEADER_NAME="X-Supabase-Api-Version",API_VERSIONS={"2024-01-01":{timestamp:Date.parse("2024-01-01T00:00:00.0Z"),name:"2024-01-01"}},BASE64URL_REGEX=/^([a-z0-9_-]{4})*($|[a-z0-9_-]{3}$|[a-z0-9_-]{2}$)$/i,JWKS_TTL=10*60*1e3;class AuthError extends Error{constructor(s,i,o){super(s),this.__isAuthError=!0,this.name="AuthError",this.status=i,this.code=o}}function isAuthError(e){return typeof e=="object"&&e!==null&&"__isAuthError"in e}class AuthApiError extends AuthError{constructor(s,i,o){super(s,i,o),this.name="AuthApiError",this.status=i,this.code=o}}function isAuthApiError(e){return isAuthError(e)&&e.name==="AuthApiError"}class AuthUnknownError extends AuthError{constructor(s,i){super(s),this.name="AuthUnknownError",this.originalError=i}}class CustomAuthError extends AuthError{constructor(s,i,o,a){super(s,o,a),this.name=i,this.status=o}}class AuthSessionMissingError extends CustomAuthError{constructor(){super("Auth session missing!","AuthSessionMissingError",400,void 0)}}function isAuthSessionMissingError(e){return isAuthError(e)&&e.name==="AuthSessionMissingError"}
483class AuthInvalidTokenResponseError extends CustomAuthError{constructor(){super("Auth session or user missing","AuthInvalidTokenResponseError",500,void 0)}}class AuthInvalidCredentialsError extends CustomAuthError{constructor(s){super(s,"AuthInvalidCredentialsError",400,void 0)}}class AuthImplicitGrantRedirectError extends CustomAuthError{constructor(s,i=null){super(s,"AuthImplicitGrantRedirectError",500,void 0),this.details=null,this.details=i}toJSON(){return{name:this.name,message:this.message,status:this.status,details:this.details}}}function isAuthImplicitGrantRedirectError(e){return isAuthError(e)&&e.name==="AuthImplicitGrantRedirectError"}class AuthPKCEGrantCodeExchangeError extends CustomAuthError{constructor(s,i=null){super(s,"AuthPKCEGrantCodeExchangeError",500,void 0),this.details=null,this.details=i}toJSON(){return{name:this.name,message:this.message,status:this.status,details:this.details}}}class AuthRetryableFetchError extends CustomAuthError{constructor(s,i){super(s,"AuthRetryableFetchError",i,void 0)}}function isAuthRetryableFetchError(e){return isAuthError(e)&&e.name==="AuthRetryableFetchError"}class AuthWeakPasswordError extends CustomAuthError{constructor(s,i,o){super(s,"AuthWeakPasswordError",i,"weak_password"),this.reasons=o}}class AuthInvalidJwtError extends CustomAuthError{constructor(s){super(s,"AuthInvalidJwtError",400,"invalid_jwt")}}const TO_BASE64URL="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".split(""),IGNORE_BASE64URL=` 484\r=`.split(""),FROM_BASE64URL=(()=>{const e=new Array(128);for(let s=0;s<e.length;s+=1)e[s]=-1;for(let s=0;s<IGNORE_BASE64URL.length;s+=1)e[IGNORE_BASE64URL[s].charCodeAt(0)]=-2;for(let s=0;s<TO_BASE64URL.length;s+=1)e[TO_BASE64URL[s].charCodeAt(0)]=s;return e})();function byteToBase64URL(e,s,i){if(e!==null)for(s.queue=s.queue<<8|e,s.queuedBits+=8;s.queuedBits>=6;){const o=s.queue>>s.queuedBits-6&63;i(TO_BASE64URL[o]),s.queuedBits-=6}else if(s.queuedBits>0)for(s.queue=s.queue<<6-s.queuedBits,s.queuedBits=6;s.queuedBits>=6;){const o=s.queue>>s.queuedBits-6&63;i(TO_BASE64URL[o]),s.queuedBits-=6}}function byteFromBase64URL(e,s,i){const o=FROM_BASE64URL[e];if(o>-1)for(s.queue=s.queue<<6|o,s.queuedBits+=6;s.queuedBits>=8;)i(s.queue>>s.queuedBits-8&255),s.queuedBits-=8;else{if(o===-2)return;throw new Error(`Invalid Base64-URL character "${String.fromCharCode(e)}"`)}}function stringFromBase64URL(e){const s=[],i=d=>{s.push(String.fromCodePoint(d))},o={utf8seq:0,codepoint:0},a={queue:0,queuedBits:0},c=d=>{stringFromUTF8(d,o,i)};for(let d=0;d<e.length;d+=1)byteFromBase64URL(e.charCodeAt(d),a,c);return s.join("")}function codepointToUTF8(e,s){if(e<=127){s(e);return}else if(e<=2047){s(192|e>>6),s(128|e&63);return}else if(e<=65535){s(224|e>>12),s(128|e>>6&63),s(128|e&63);return}else if(e<=1114111){s(240|e>>18),s(128|e>>12&63),s(128|e>>6&63),s(128|e&63);return}throw new Error(`Unrecognized Unicode codepoint: ${e.toString(16)}`)}function stringToUTF8(e,s){for(let i=0;i<e.length;i+=1){let o=e.charCodeAt(i);if(o>55295&&o<=56319){const a=(o-55296)*1024&65535;o=(e.charCodeAt(i+1)-56320&65535|a)+65536,i+=1}codepointToUTF8(o,s)}}function stringFromUTF8(e,s,i){if(s.utf8seq===0){if(e<=127){i(e);return}for(let o=1;o<6;o+=1)if(!(e>>7-o&1)){s.utf8seq=o;break}if(s.utf8seq===2)s.codepoint=e&31;else if(s.utf8seq===3)s.codepoint=e&15;else if(s.utf8seq===4)s.codepoint=e&7;else throw new Error("Invalid UTF-8 sequence");s.utf8seq-=1}else if(s.utf8seq>0){if(e<=127)throw new Error("Invalid UTF-8 sequence");s.codepoint=s.codepoint<<6|e&63,s.utf8seq-=1,s.utf8seq===0&&i(s.codepoint)}}function base64UrlToUint8Array(e){const s=[],i={queue:0,queuedBits:0},o=a=>{s.push(a)};for(let a=0;a<e.length;a+=1)byteFromBase64URL(e.charCodeAt(a),i,o);return new Uint8Array(s)}function stringToUint8Array(e){const s=[];return stringToUTF8(e,i=>s.push(i)),new Uint8Array(s)}function bytesToBase64URL(e){const s=[],i={queue:0,queuedBits:0},o=a=>{s.push(a)};return e.forEach(a=>byteToBase64URL(a,i,o)),byteToBase64URL(null,i,o),s.join("")}function expiresAt(e){return Math.round(Date.now()/1e3)+e}function uuid(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(e){const s=Math.random()*16|0;return(e=="x"?s:s&3|8).toString(16)})}const isBrowser=()=>typeof window<"u"&&typeof document<"u",localStorageWriteTests={tested:!1,writable:!1},supportsLocalStorage=()=>{if(!isBrowser())return!1;try{if(typeof globalThis.localStorage!="object")return!1}catch{return!1}if(localStorageWriteTests.tested)return localStorageWriteTests.writable;const e=`lswt-${Math.random()}${Math.random()}`;try{globalThis.localStorage.setItem(e,e),globalThis.localStorage.removeItem(e),localStorageWriteTests.tested=!0,localStorageWriteTests.writable=!0}catch{localStorageWriteTests.tested=!0,localStorageWriteTests.writable=!1}return localStorageWriteTests.writable};function parseParametersFromURL(e){const s={},i=new URL(e);if(i.hash&&i.hash[0]==="#")try{new URLSearchParams(i.hash.substring(1)).forEac
484h((a,c)=>{s[c]=a})}catch{}return i.searchParams.forEach((o,a)=>{s[a]=o}),s}const resolveFetch=e=>{let s;return e?s=e:typeof fetch>"u"?s=(...i)=>__vitePreload(async()=>{const{default:o}=await Promise.resolve().then(()=>browser);return{default:o}},void 0).then(({default:o})=>o(...i)):s=fetch,(...i)=>s(...i)},looksLikeFetchResponse=e=>typeof e=="object"&&e!==null&&"status"in e&&"ok"in e&&"json"in e&&typeof e.json=="function",setItemAsync=async(e,s,i)=>{await e.setItem(s,JSON.stringify(i))},getItemAsync=async(e,s)=>{const i=await e.getItem(s);if(!i)return null;try{return JSON.parse(i)}catch{return i}},removeItemAsync=async(e,s)=>{await e.removeItem(s)};class Deferred{constructor(){this.promise=new Deferred.promiseConstructor((s,i)=>{this.resolve=s,this.reject=i})}}Deferred.promiseConstructor=Promise;function decodeJWT(e){const s=e.split(".");if(s.length!==3)throw new AuthInvalidJwtError("Invalid JWT structure");for(let o=0;o<s.length;o++)if(!BASE64URL_REGEX.test(s[o]))throw new AuthInvalidJwtError("JWT not in base64url format");return{header:JSON.parse(stringFromBase64URL(s[0])),payload:JSON.parse(stringFromBase64URL(s[1])),signature:base64UrlToUint8Array(s[2]),raw:{header:s[0],payload:s[1]}}}async function sleep(e){return await new Promise(s=>{setTimeout(()=>s(null),e)})}function retryable(e,s){return new Promise((o,a)=>{(async()=>{for(let c=0;c<1/0;c++)try{const d=await e(c);if(!s(c,null,d)){o(d);return}}catch(d){if(!s(c,d)){a(d);return}}})()})}function dec2hex(e){return("0"+e.toString(16)).substr(-2)}function generatePKCEVerifier(){const s=new Uint32Array(56);if(typeof crypto>"u"){const i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-._~",o=i.length;let a="";for(let c=0;c<56;c++)a+=i.charAt(Math.floor(Math.random()*o));return a}return crypto.getRandomValues(s),Array.from(s,dec2hex).join("")}async function sha256(e){const i=new TextEncoder().encode(e),o=await crypto.subtle.digest("SHA-256",i),a=new Uint8Array(o);return Array.from(a).map(c=>String.fromCharCode(c)).join("")}async function generatePKCEChallenge(e){if(!(typeof crypto<"u"&&typeof crypto.subtle<"u"&&typeof TextEncoder<"u"))return console.warn("WebCrypto API is not supported. Code challenge method will default to use plain instead of sha256."),e;const i=await sha256(e);return btoa(i).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")}async function getCodeChallengeAndMethod(e,s,i=!1){const o=generatePKCEVerifier();let a=o;i&&(a+="/PASSWORD_RECOVERY"),await setItemAsync(e,`${s}-code-verifier`,a);const c=await generatePKCEChallenge(o);return[c,o===c?"plain":"s256"]}const API_VERSION_REGEX=/^2[0-9]{3}-(0[1-9]|1[0-2])-(0[1-9]|1[0-9]|2[0-9]|3[0-1])$/i;function parseResponseAPIVersion(e){const s=e.headers.get(API_VERSION_HEADER_NAME);if(!s||!s.match(API_VERSION_REGEX))return null;try{return new Date(`${s}T00:00:00.0Z`)}catch{return null}}function validateExp(e){if(!e)throw new Error("Missing exp claim");const s=Math.floor(Date.now()/1e3);if(e<=s)throw new Error("JWT has expired")}function getAlgorithm(e){switch(e){case"RS256":return{name:"RSASSA-PKCS1-v1_5",hash:{name:"SHA-256"}};case"ES256":return{name:"ECDSA",namedCurve:"P-256",hash:{name:"SHA-256"}};default:throw new Error("Invalid alg claim")}}const UUID_REGEX=/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/;function validateUUID(e){if(!UUID_REGEX.test(e))throw new Error("@supabase/auth-js: Expected parameter to be UUID but is not")}function userNotAvailableProxy(){const e={};return new Proxy(e,{get:(s,i)=>{if(i==="__isUserNotAvailableProxy")return!0;if(typeof i=="symbol"){const o=i.toString();if(o==="Symbol(Symbol.toPrimitive)"||o==="Symbol(Symbol.toStringTag)"||o==="Symbol(util.inspect.custom)")return}throw new Error(`@supabase/auth-js: client was created with userStorage option and there was no user stored in the user storage. Accessing the "${i}" property of the session object is not supported. Please use getUser() instead.`)},set:(s,i)=>{throw new Error(`@supabase/auth-js: client was created with userStorage option and there was no user stored in the user storage. Setting the "${i}" property of the session object is not supported. Please use getUser() to fetch a user object you can manipulate.`)},deleteProperty:(s,i)=>{throw new Error(`@supabase/auth-js: client was created with userStorage option and there was no user stored in the user storage. Deleting the "${i}" property of the session object is not supported. Please use getUser() to fetch a user object you can manipulate.`)}})}function deepClone(e){return JSON.parse(JSON.stringify(e))}const _getErrorMessage=e=>e.msg||e.message||e.error_description||e.error||JSON.stringify(e),NETWORK_E
484RROR_CODES=[502,503,504];async function handleError(e){var s;if(!looksLikeFetchResponse(e))throw new AuthRetryableFetchError(_getErrorMessage(e),0);if(NETWORK_ERROR_CODES.includes(e.status))throw new AuthRetryableFetchError(_getErrorMessage(e),e.status);let i;try{i=await e.json()}catch(c){throw new AuthUnknownError(_getErrorMessage(c),c)}let o;const a=parseResponseAPIVersion(e);if(a&&a.getTime()>=API_VERSIONS["2024-01-01"].timestamp&&typeof i=="object"&&i&&typeof i.code=="string"?o=i.code:typeof i=="object"&&i&&typeof i.error_code=="string"&&(o=i.error_code),o){if(o==="weak_password")throw new AuthWeakPasswordError(_getErrorMessage(i),e.status,((s=i.weak_password)===null||s===void 0?void 0:s.reasons)||[]);if(o==="session_not_found")throw new AuthSessionMissingError}else if(typeof i=="object"&&i&&typeof i.weak_password=="object"&&i.weak_password&&Array.isArray(i.weak_password.reasons)&&i.weak_password.reasons.length&&i.weak_password.reasons.reduce((c,d)=>c&&typeof d=="string",!0))throw new AuthWeakPasswordError(_getErrorMessage(i),e.status,i.weak_password.reasons);throw new AuthApiError(_getErrorMessage(i),e.status||500,o)}
484const _getRequestParams=(e,s,i,o)=>{const a={method:e,headers:(s==null?void 0:s.headers)||{}};return e==="GET"?a:(a.headers=Object.assign({"Content-Type":"application/json;charset=UTF-8"},s==null?void 0:s.headers),a.body=JSON.stringify(o),Object.assign(Object.assign({},a),i))};async function _request(e,s,i,o){var a;const c=Object.assign({},o==null?void 0:o.headers);c[API_VERSION_HEADER_NAME]||(c[API_VERSION_HEADER_NAME]=API_VERSIONS["2024-01-01"].name),o!=null&&o.jwt&&(c.Authorization=`Bearer ${o.jwt}`);const d=(a=o==null?void 0:o.query)!==null&&a!==void 0?a:{};o!=null&&o.redirectTo&&(d.redirect_to=o.redirectTo);const h=Object.keys(d).length?"?"+new URLSearchParams(d).toString():"",g=await _handleRequest(e,s,i+h,{headers:c,noResolveJson:o==null?void 0:o.noResolveJson},{},o==null?void 0:o.body);return o!=null&&o.xform?o==null?void 0:o.xform(g):{data:Object.assign({},g),error:null}}async function _handleRequest(e,s,i,o,a,c){const d=_getRequestParams(s,o,a,c);let h;try{h=await e(i,Object.assign({},d))}catch(g){throw console.error(g),new AuthRetryableFetchError(_getErrorMessage(g),0)}if(h.ok||await handleError(h),o!=null&&o.noResolveJson)return h;try{return await h.json()}catch(g){await handleError(g)}}function _sessionResponse(e){var s;let i=null;hasSession(e)&&(i=Object.assign({},e),e.expires_at||(i.expires_at=expiresAt(e.expires_in)));const o=(s=e.user)!==null&&s!==void 0?s:e;return{data:{session:i,user:o},error:null}}function _sessionResponsePassword(e){const s=_sessionResponse(e);return!s.error&&e.weak_password&&typeof e.weak_password=="object"&&Array.isArray(e.weak_password.reasons)&&e.weak_password.reasons.length&&e.weak_password.message&&typeof e.weak_password.message=="string"&&e.weak_password.reasons.reduce((i,o)=>i&&typeof o=="string",!0)&&(s.data.weak_password=e.weak_password),s}function _userResponse(e){var s;return{data:{user:(s=e.user)!==null&&s!==void 0?s:e},error:null}}function _ssoResponse(e){return{data:e,error:null}}function _generateLinkResponse(e){const{action_link:s,email_otp:i,hashed_token:o,redirect_to:a,verification_type:c}=e,d=__rest(e,["action_link","email_otp","hashed_token","redirect_to","verification_type"]),h={action_link:s,email_otp:i,hashed_token:o,redirect_to:a,verification_type:c},g=Object.assign({},d);return{data:{properties:h,user:g},error:null}}function _noResolveJsonResponse(e){return e}function hasSession(e){return e.access_token&&e.refresh_token&&e.expires_in}const SIGN_OUT_SCOPES=["global","local","others"];class GoTrueAdminApi{constructor({url:s="",headers:i={},fetch:o}){this.url=s,this.headers=i,this.fetch=resolveFetch(o),this.mfa={listFactors:this._listFactors.bind(this),deleteFactor:this._deleteFactor.bind(this)},this.oauth={listClients:this._listOAuthClients.bind(this),createClient:this._createOAuthClient.bind(this),getClient:this._getOAuthClient.bind(this),deleteClient:this._deleteOAuthClient.bind(this),regenerateClientSecret:this._regenerateOAuthClientSecret.bind(this)}}async signOut(s,i=SIGN_OUT_SCOPES[0]){if(SIGN_OUT_SCOPES.indexOf(i)<0)throw new Error(`@supabase/auth-js: Parameter scope must be one of ${SIGN_OUT_SCOPES.join(", ")}`);try{return await _request(this.fetch,"POST",`${this.url}/logout?scope=${i}`,{headers:this.headers,jwt:s,noResolveJson:!0}),{data:null,error:null}}catch(o){if(isAuthError(o))return{data:null,error:o};throw o}}async inviteUserByEmail(s,i={}){try{return await _request(this.fetch,"POST",`${this.url}/invite`,{body:{email:s,data:i.data},headers:this.headers,redirectTo:i.redirectTo,xform:_userResponse})}catch(o){if(isAuthError(o))return{data:{user:null},error:o};throw o}}async generateLink(s){try{const{options:i}=s,o=__rest(s,["options"]),a=Object.assign(Object.assign({},o),i);return"newEmail"in o&&(a.new_email=o==null?void 0:o.newEmail,delete a.newEmail),await _request(this.fetch,"POST",`${this.url}/admin/generate_link`,{body:a,headers:this.headers,xform:_generateLinkResponse,redirectTo:i==null?void 0:i.redirectTo})}catch(i){if(isAuthError(i))return{data:{properties:null,user:null},error:i};throw i}}async createUser(s){try{return await _request(this.fetch,"POST",`${this.url}/admin/users`,{body:s,headers:this.headers,xform:_userResponse})}catch(i){if(isAuthError(i))return{data:{user:null},error:i};throw i}}async listUsers(s){var i,o,a,c,d,h,g;try{const b={nextPage:null,lastPage:0,total:0},_=await _request(this.fetch,"GET",`${this.url}/admin/users`,{headers:this.headers,noResolveJson:!0,query:{page:(o=(i=s==null?void 0:s.page)===null||i===void 0?void 0:i.toString())!==null&&o!==void 0?o:"",per_page:(c=(a=s==null?void 0:s.perPage)===null||a===void 0?void 0:a.toString())!==null&&c!==void 0?c:""}
484,xform:_noResolveJsonResponse});if(_.error)throw _.error;const _e=await _.json(),$=(d=_.headers.get("x-total-count"))!==null&&d!==void 0?d:0,et=(g=(h=_.headers.get("link"))===null||h===void 0?void 0:h.split(","))!==null&&g!==void 0?g:[];return et.length>0&&(et.forEach(it=>{const rt=parseInt(it.split(";")[0].split("=")[1].substring(0,1)),lt=JSON.parse(it.split(";")[1].split("=")[1]);b[`${lt}Page`]=rt}),b.total=parseInt($)),{data:Object.assign(Object.assign({},_e),b),error:null}}catch(b){if(isAuthError(b))return{data:{users:[]},error:b};throw b}}async getUserById(s){validateUUID(s);try{return await _request(this.fetch,"GET",`${this.url}/admin/users/${s}`,{headers:this.headers,xform:_userResponse})}catch(i){if(isAuthError(i))return{data:{user:null},error:i};throw i}}async updateUserById(s,i){validateUUID(s);try{return await _request(this.fetch,"PUT",`${this.url}/admin/users/${s}`,{body:i,headers:this.headers,xform:_userResponse})}catch(o){if(isAuthError(o))return{data:{user:null},error:o};throw o}}async deleteUser(s,i=!1){validateUUID(s);try{return await _request(this.fetch,"DELETE",`${this.url}/admin/users/${s}`,{headers:this.headers,body:{should_soft_delete:i},xform:_userResponse})}catch(o){if(isAuthError(o))return{data:{user:null},error:o};throw o}}async _listFactors(s){validateUUID(s.userId);try{const{data:i,error:o}=await _request(this.fetch,"GET",`${this.url}/admin/users/${s.userId}/factors`,{headers:this.headers,xform:a=>({data:{factors:a},error:null})});return{data:i,error:o}}catch(i){if(isAuthError(i))return{data:null,error:i};throw i}}async _deleteFactor(s){validateUUID(s.userId),validateUUID(s.id);try{return{data:await _request(this.fetch,"DELETE",`${this.url}/admin/users/${s.userId}/factors/${s.id}`,{headers:this.headers}),error:null}}catch(i){if(isAuthError(i))return{data:null,error:i};throw i}}async _listOAuthClients(s){var i,o,a,c,d,h,g;try{const b={nextPage:null,lastPage:0,total:0},_=await _request(this.fetch,"GET",`${this.url}/admin/oauth/clients`,{headers:this.headers,noResolveJson:!0,query:{page:(o=(i=s==null?void 0:s.page)===null||i===void 0?void 0:i.toString())!==null&&o!==void 0?o:"",per_page:(c=(a=s==null?void 0:s.perPage)===null||a===void 0?void 0:a.toString())!==null&&c!==void 0?c:""}
484,xform:_noResolveJsonResponse});if(_.error)throw _.error;const _e=await _.json(),$=(d=_.headers.get("x-total-count"))!==null&&d!==void 0?d:0,et=(g=(h=_.headers.get("link"))===null||h===void 0?void 0:h.split(","))!==null&&g!==void 0?g:[];return et.length>0&&(et.forEach(it=>{const rt=parseInt(it.split(";")[0].split("=")[1].substring(0,1)),lt=JSON.parse(it.split(";")[1].split("=")[1]);b[`${lt}Page`]=rt}),b.total=parseInt($)),{data:Object.assign(Object.assign({},_e),b),error:null}}catch(b){if(isAuthError(b))return{data:{clients:[]},error:b};throw b}}async _createOAuthClient(s){try{return await _request(this.fetch,"POST",`${this.url}/admin/oauth/clients`,{body:s,headers:this.headers,xform:i=>({data:i,error:null})})}catch(i){if(isAuthError(i))return{data:null,error:i};throw i}}async _getOAuthClient(s){try{return await _request(this.fetch,"GET",`${this.url}/admin/oauth/clients/${s}`,{headers:this.headers,xform:i=>({data:i,error:null})})}catch(i){if(isAuthError(i))return{data:null,error:i};throw i}}async _deleteOAuthClient(s){try{return await _request(this.fetch,"DELETE",`${this.url}/admin/oauth/clients/${s}`,{headers:this.headers,xform:i=>({data:i,error:null})})}catch(i){if(isAuthError(i))return{data:null,error:i};throw i}}async _regenerateOAuthClientSecret(s){try{return await _request(this.fetch,"POST",`${this.url}/admin/oauth/clients/${s}/regenerate_secret`,{headers:this.headers,xform:i=>({data:i,error:null})})}catch(i){if(isAuthError(i))return{data:null,error:i};throw i}}}function memoryLocalStorageAdapter(e={}){return{getItem:s=>e[s]||null,setItem:(s,i)=>{e[s]=i},removeItem:s=>{delete e[s]}}}const internals={debug:!!(globalThis&&supportsLocalStorage()&&globalThis.localStorage&&globalThis.localStorage.getItem("supabase.gotrue-js.locks.debug")==="true")};class LockAcquireTimeoutError extends Error{constructor(s){super(s),this.isAcquireTimeout=!0}}class NavigatorLockAcquireTimeoutError extends LockAcquireTimeoutError{}async function navigatorLock(e,s,i){internals.debug&&console.log("@supabase/gotrue-js: navigatorLock: acquire lock",e,s);const o=new globalThis.AbortController;return s>0&&setTimeout(()=>{o.abort(),internals.debug&&console.log("@supabase/gotrue-js: navigatorLock acquire timed out",e)},s),await Promise.resolve().then(()=>globalThis.navigator.locks.request(e,s===0?{mode:"exclusive",ifAvailable:!0}:{mode:"exclusive",signal:o.signal},async a=>{if(a){internals.debug&&console.log("@supabase/gotrue-js: navigatorLock: acquired",e,a.name);try{return await i()}finally{internals.debug&&console.log("@supabase/gotrue-js: navigatorLock: released",e,a.name)}}else{if(s===0)throw internals.debug&&console.log("@supabase/gotrue-js: navigatorLock: not immediately available",e),new NavigatorLockAcquireTimeoutError(`Acquiring an exclusive Navigator LockManager lock "${e}" immediately failed`);if(internals.debug)try{const c=await globalThis.navigator.locks.query();console.log("@supabase/gotrue-js: Navigator LockManager state",JSON.stringify(c,null," "))}catch(c){console.warn("@supabase/gotrue-js: Error when querying Navigator LockManager state",c)}return console.warn("@supabase/gotrue-js: Navigator LockManager returned a null lock when using #request without ifAvailable set to true, it appears this browser is not following the LockManager spec https://developer.mozilla.org/en-US/docs/Web/API/LockManager/request"),await i()}}))}function polyfillGlobalThis(){if(typeof globalThis!="object")try{Object.defineProperty(Object.prototype,"__magic__",{get:function(){return this},configurable:!0}),__magic__.globalThis=__magic__,delete Object.prototype.__magic__}catch{typeof self<"u"&&(self.globalThis=self)}}function getAddress(e){if(!/^0x[a-fA-F0-9]{40}$/.test(e))throw new Error(`@supabase/auth-js: Address "${e}" is invalid.`);return e.toLowerCase()}function fromHex(e){return parseInt(e,16)}function toHex(e){const s=new TextEncoder().encode(e);return"0x"+Array.from(s,o=>o.toString(16).padStart(2,"0")).join("")}function createSiweMessage(e){var s;const{chainId:i,domain:o,expirationTime:a,issuedAt:c=new Date,nonce:d,notBefore:h,requestId:g,resources:b,scheme:_,ur
484i:_e,version:$}=e;{if(!Number.isInteger(i))throw new Error(`@supabase/auth-js: Invalid SIWE message field "chainId". Chain ID must be a EIP-155 chain ID. Provided value: ${i}`);if(!o)throw new Error('@supabase/auth-js: Invalid SIWE message field "domain". Domain must be provided.');if(d&&d.length<8)throw new Error(`@supabase/auth-js: Invalid SIWE message field "nonce". Nonce must be at least 8 characters. Provided value: ${d}`);if(!_e)throw new Error('@supabase/auth-js: Invalid SIWE message field "uri". URI must be provided.');if($!=="1")throw new Error(`@supabase/auth-js: Invalid SIWE message field "version". Version must be '1'. Provided value: ${$}`);if(!((s=e.statement)===null||s===void 0)&&s.includes(` 485`))throw new Error(`@supabase/auth-js: Invalid SIWE message field "statement". Statement must not include '\\n'. Provided value: ${e.statement}`)}const et=getAddress(e.address),it=_?`${_}://${o}`:o,rt=e.statement?`${e.statement} 486`:"",lt=`${it} wants you to sign in with your Ethereum account: 487${et} 488 489${rt}`;let st=`URI: ${_e} 490Version: ${$} 491Chain ID: ${i}${d?` 492Nonce: ${d}`:""} 493Issued At: ${c.toISOString()}`;if(a&&(st+=` 494Expiration Time: ${a.toISOString()}`),h&&(st+=` 495Not Before: ${h.toISOString()}`),g&&(st+=` 496Request ID: ${g}`),b){let ot=` 497Resources:`;for(const nt of b){if(!nt||typeof nt!="string")throw new Error(`@supabase/auth-js: Invalid SIWE message field "resources". Every resource must be a valid string. Provided value: ${nt}`);ot+=` 498- ${nt}`}st+=ot}return`${lt} 499${st}`}class WebAuthnError extends Error{constructor({message:s,code:i,cause:o,name:a}){var c;super(s,{cause:o}),this.__isWebAuthnError=!0,this.name=(c=a??(o instanceof Error?o.name:void 0))!==null&&c!==void 0?c:"Unknown Error",this.code=i}}class WebAuthnUnknownError extends WebAuthnError{constructor(s,i){super({code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:i,message:s}),this.name="WebAuthnUnknownError",this.originalError=i}}function identifyRegistrationError({error:e,options:s}){var i,o,a;const{publicKey:c}=s;if(!c)throw Error("options was missing required publicKey property");if(e.name==="AbortError"){if(s.signal instanceof AbortSignal)return new WebAuthnError({message:"Registration ceremony was sent an abort signal",code:"ERROR_CEREMONY_ABORTED",cause:e})}else if(e.name==="ConstraintError"){if(((i=c.authenticatorSelection)===null||i===void 0?void 0:i.requireResidentKey)===!0)return new WebAuthnError({message:"Discoverable credentials were required but no available authenticator supported it",code:"ERROR_AUTHENTICATOR_MISSING_DISCOVERABLE_CREDENTIAL_SUPPORT",cause:e});if(s.mediation==="conditional"&&((o=c.authenticatorSelection)===null||o===void 0?void 0:o.userVerification)==="required")return new WebAuthnError({message:"User verification was required during automatic registration but it could not be performed",code:"ERROR_AUTO_REGISTER_USER_VERIFICATION_FAILURE",cause:e});if(((a=c.authenticatorSelection)===null||a===void 0?void 0:a.userVerification)==="required")return new WebAuthnError({message:"User verification was required but no available authenticator supported it",code:"ERROR_AUTHENTICATOR_MISSING_USER_VERIFICATION_SUPPORT",cause:e})}else{if(e.name==="InvalidStateError")return new WebAuthnError({message:"The authenticator was previously registered",code:"ERROR_AUTHENTICATOR_PREVIOUSLY_REGISTERED",cause:e});if(e.name==="NotAllowedError")return new WebAuthnError({message:e.message,code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:e});if(e.name==="NotSupportedError")return c.pubKeyCredParams.filter(h=>h.type==="public-key").length===0?new WebAuthnError({message:'No entry in pubKeyCredParams was of type "public-key"',code:"ERROR_MALFORMED_PUBKEYCREDPARAMS",cause:e}):new WebAuthnError({message:"No available authenticator supported any of the specified pubKeyCredParams algorithms",code:"ERROR_AUTHENTICATOR_NO_SUPPORTED_PUBKEYCREDPARAMS_ALG",cause:e});if(e.name==="SecurityError"){const d=window.location.hostname;if(isValidDomain(d)){if(c.rp.id!==d)return new WebAuthnError({message:`The RP ID "${c.rp.id}" is invalid for this domain`,code:"ERROR_INVALID_RP_ID",cause:e})}else return new WebAuthnError({message:`${window.location.hostname}
499 is an invalid domain`,code:"ERROR_INVALID_DOMAIN",cause:e})}else if(e.name==="TypeError"){if(c.user.id.byteLength<1||c.user.id.byteLength>64)return new WebAuthnError({message:"User ID was not between 1 and 64 characters",code:"ERROR_INVALID_USER_ID_LENGTH",cause:e})}else if(e.name==="UnknownError")return new WebAuthnError({message:"The authenticator was unable to process the specified options, or could not create a new credential",code:"ERROR_AUTHENTICATOR_GENERAL_ERROR",cause:e})}return new WebAuthnError({message:"a Non-Webauthn related error has occurred",code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:e})}function identifyAuthenticationError({error:e,options:s}){const{publicKey:i}=s;if(!i)throw Error("options was missing required publicKey property");if(e.name==="AbortError"){if(s.signal instanceof AbortSignal)return new WebAuthnError({message:"Authentication ceremony was sent an abort signal",code:"ERROR_CEREMONY_ABORTED",cause:e})}else{if(e.name==="NotAllowedError")return new WebAuthnError({message:e.message,code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:e});if(e.name==="SecurityError"){const o=window.location.hostname;if(isValidDomain(o)){if(i.rpId!==o)return new WebAuthnError({message:`The RP ID "${i.rpId}" is invalid for this domain`,code:"ERROR_INVALID_RP_ID",cause:e})}else return new WebAuthnError({message:`${window.location.hostname} is an invalid domain`,code:"ERROR_INVALID_DOMAIN",cause:e})}else if(e.name==="UnknownError")return new WebAuthnError({message:"The authenticator was unable to process the specified options, or could not create a new assertion signature",code:"ERROR_AUTHENTICATOR_GENERAL_ERROR",cause:e})}return new WebAuthnError({message:"a Non-Webauthn related error has occurred",code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:e})}class WebAuthnAbortService{createNewAbortSignal(){if(this.controller){const i=new Error("Cancelling existing WebAuthn API call for new one");i.name="AbortError",this.controller.abort(i)}const s=new AbortController;return this.controller=s,s.signal}cancelCeremony(){if(this.controller){const s=new Error("Manually cancelling existing WebAuthn API call");s.name="AbortError",this.controller.abort(s),this.controller=void 0}}}const webAuthnAbortService=new WebAuthnAbortService;function deserializeCredentialCreationOptions(e){if(!e)throw new Error("Credential creation options are required");if(typeof PublicKeyCredential<"u"&&"parseCreationOptionsFromJSON"in PublicKeyCredential&&typeof PublicKeyCredential.parseCreationOptionsFromJSON=="function")return PublicKeyCredential.parseCreationOptionsFromJSON(e);const{challenge:s,user:i,excludeCredentials:o}=e,a=__rest(e,["challenge","user","excludeCredentials"]),c=base64UrlToUint8Array(s).buffer,d=Object.assign(Object.assign({},i),{id:base64UrlToUint8Array(i.id).buffer}),h=Object.assign(Object.assign({},a),{challenge:c,user:d});if(o&&o.length>0){h.excludeCredentials=new Array(o.length);for(let g=0;g<o.length;g++){const b=o[g];h.excludeCredentials[g]=Object.assign(Object.assign({},b),{id:base64UrlToUint8Array(b.id).buffer,type:b.type||"public-key",transports:b.transports})}}return h}function deserializeCredentialRequestOptions(e){if(!e)throw new Error("Credential request options are required");if(typeof PublicKeyCredential<"u"&&"parseRequestOptionsFromJSON"in PublicKeyCredential&&typeof PublicKeyCredential.parseRequestOptionsFromJSON=="function")return PublicKeyCredential.parseRequestOptionsFromJSON(e);const{challenge:s,allowCredentials:i}=e,o=__rest(e,["challenge","allowCredentials"]),a=base64UrlToUint8Array(s).buffer,c=Object.assign(Object.assign({},o),{challenge:a});if(i&&i.length>0){c.allowCredentials=new Array(i.length);for(let d=0;d<i.length;d++){const h=i[d];c.allowCredentials[d]=Object.assign(Object.assign({},h),{id:base64UrlToUint8Array(h.id).buffer,type:h.type||"public-key",transports:h.transports})}}return c}function serializeCredentialCreationResponse(e){var s;if("toJSON"in e&&typeof e.toJSON=="function")return e.toJSON();const i=e;return{id:e.id,rawId:e.id,response:{attestationObject:bytesToBase64URL(new Uint8Array(e.response.attestationObject)),clientDataJSON:bytesToBase64URL(new Uint8Array(e.response.clientDataJSON))},type:"public-key",clientExtensionResults:e.getClientExtensionResults(),authenticatorAttachment:(s=i.authenticatorAttachment)!==null&&s!==void 0?s:void 0}}function serializeCredentialRequestResponse(e){var s;if("toJSON"in e&&typeof e.toJSON=="function")return e.toJSON();const i=e,o=e.getClientExtensionResults(),a=e.response;return{id:e.id,rawId:e.id,response:{authenticatorData:bytesToBase64URL(new Uint8Array(a.authenticatorData)),clientDataJSON:bytesToBase64URL(new Uint8Array(a.clientDataJSON)),signature:bytesToBase64URL(new Uint8Array(a.signature)),userHandle:a.userHandle?bytesToBase64URL(new Uint8Array(a.userHandle)):void 0},type:"public-key",clientExtensionResults:o,authenticatorAttachment:(s=i.authenticatorAttachment)!==null&&s!==void 0?s:void 0}}function isValidDomain(e){return e==="localhost"||/^([a-z0-9]+(-[a-z0-9]+)*\.)+[a-z]{2,}$/i.test(e)}function browserSupportsWebAuthn(){var e,s;return!!(isBrowser()&&"PublicKeyCredential"in window&&window.PublicKeyCredential&&"credentials"in navigator&&typeof((e=navigator==null?void 0:navigator.credentials)===null||e===void 0?void 0:e.create)=="function"&&typeof((s=navigator==null?void 0:navigator.credentials)===null||s===void 0?void 0:s.get)=="function")}async function createCredential(e){try{const s=await navigator.credentials.create(e);return s?s instanceof PublicKeyCredential?{data:s,error:null}:{data:null,error:new WebAuthnUnknownError("Browser returned unexpected credential type",s)}:{data:null,error:new WebAuthnUnknownError("Empty credential response",s)}}catch(s){return{data:null,error:identifyRegistrationError({error:s,options:e})}}}async function getCredential(e){try{const s=await navigator.credentials.get(e);return s?s instanceof PublicKeyCredential?{data:s,error:null}:{data:null,error:new WebAuthnUnknownError("Browser returned unexpected credential type",s)}:{data:null,error:new WebAuthnUnknownError("Empty credential response",s)}}catch(s){return{data:null,error:identifyAuthenticationError({error:s,options:e})}}}const DEFAULT_CREATION_OPTIONS={hints:["security-key"],authenticatorSelection:{authenticatorAttachment:"cross-platform",requireResidentKey:!1,userVerification:"preferred",residentKey:"discouraged"},attestation:"none"},DEFAULT_REQUEST_OPTIONS={userVerification:"preferred",hints:["security-key"]};function deepMerge(...e){const s=a=>a!==null&&typeof a=="object"&&!Array.isArray(a),i=a=>a instanceof ArrayBuffer||ArrayBuffer.isView(a),o={};for(const a of e)if(a)for(const c in a){const d=a[c];if(d!==void 0)if(Array.isArray(d))o[c]=d;else if(i(d))o[c]=d;else if(s(d)){const h=o[c];s(h)?o[c]=deepMerge(h,d):o[c]=deepMerge(d)}else o[c]=d}return o}function mergeCredentialCreationOptions(e,s){return deepMerge(DEFAULT_CREATION_OPTIONS,e,s||{})}function mergeCredentialRequestOptions(e,s){return deepMerge(DEFAULT_REQUEST_OPTIONS,e,s||{})}class WebAuthnApi{constructor(s){this.client=s,this.enroll=this._enroll.bind(this),this.challenge=this._challenge.bind(this),this.verify=this._verify.bind(this),this.authenticate=this._authenticate.bind(this),this.register=this._register.bind(this)}async _enroll(s){return this.client.mfa.enroll(Object.assign(Object.assign({},s),{factorType:"webauthn"}))}async _challenge({factorId:s,webauthn:i,friendlyName:o,signal:a},c){try{const{data:d,error:h}=await this.client.mfa.challenge({factorId:s,webauthn:i});if(!d)return{data:null,error:h};const g=a??webAuthnAbortService.createNewAbortSignal();if(d.webauthn.type==="create"){const{user:b}=d.webauthn.credential_options.publicKey;b.name||(b.name=`${b.id}:${o}`),b.displayName||(b.displayName=b.name)}switch(d.webauthn.type){case"create":{const b=mergeCredentialCreationOptions(d.webauthn.credential_options.publicKey,c==null?void 0:c.create),{data:_,error:_e}=await createCredential({publicKey:b,signal:g});return _?{data:{factorId:s,challengeId:d.id,webauthn:{type:d.webauthn.type,credential_response:_}},error:null}:{data:null,error:_e}}case"request":{const b=mergeCredentialRequestOptions(d.webauthn.credential_options.publicKey,c==null?void 0:c.request),{data:_,error:_e}=await getCredential(Object.assign(Object.assign({},d.webauthn.credential_options),{publicKey:b,signal:g}));return _?{data:{factorId:s,challengeId:d.id,webauthn:{type:d.webauthn.type,credential_response:_}},error:null}:{data:null,error:_e}}}}catch(d){return isAuthError(d)?{data:null,error:d}:{data:null,error:new AuthUnknownError("Unexpected error in challenge",d)}}}async _verify({challengeId:s,factorId:i,webauthn:o}){return this.client.mfa.verify({factorId:i,challengeId:s,webauthn:o})}async _authenticate({factorId:s,webauthn:{rpId:i=typeof window<"u"?window.location.hostname:void 0,rpOrigins:o=typeof window<"u"?[window.location.origin]:void 0,signal:a}},c){if(!i)return{data:null,error:new AuthError("rpId is required for WebAuthn authentication")};try{if(!browserSupportsWebAuthn())return{data:null,error:new AuthUnknownError("Browser does not support WebAuthn",null)};const{data:d,error:h}=await this.challenge({factorId:s,webauthn:{rpId:i,rpOrigins:o},signal:a},{request:c});if(!d)return{data:null,error:h};const{webauthn:g}=d;return this._verify({factorId:s,challengeId:d.challengeId,webauthn:{type:g.type,rpId:i,rpOrigins:o,credential_response:g.credential_response}})}catch(d){return isAuthError(d)?{data:null,error:d}:{data:null,error:new AuthUnknownError("Unexpected error in authenticate",d)}}}async _register({friendlyName:s,rpId:i=typeof window<"u"?window.location.hostname:void 0,rpOrigins:o=typeof window<"u"?[window.location.origin]:void 0,signal:a},c){if(!i)return{data:null,error:new AuthError("rpId is required for WebAuthn registration")};try{if(!browserSupportsWebAuthn())return{data:null,error:new AuthUnknownError("Browser does not support WebAuthn",null)};const{data:d,error:h}=await this._enroll({friendlyName:s});if(!d)return await this.client.mfa.listFactors().then(_=>{var _e;return(_e=_.data)===null||_e===void 0?void 0:_e.all.find($=>$.factor_type==="webauthn"&&$.friendly_name===s&&$.status!=="unverified")}).then(_=>_?this.client.mfa.unenroll({factorId:_==null?void 0:_.id}):void 0),{data:null,error:h};const{data:g,error:b}=await this._challenge({factorId:d.id,friendlyName:d.friendly_name,webauthn:{rpId:i,rpOrigins:o},signal:a},{create:c});return g?this._verify({factorId:d.id,challengeId:g.challengeId,webauthn:{rpId:i,rpOrigins:o,type:g.webauthn.type,credential_response:g.webauthn.credential_response}}):{data:null,error:b}}catch(d){return isAuthError(d)?{data:null,error:d}:{data:null,error:new AuthUnknownError("Unexpected error in register",d)}}}}polyfillGlobalThis();const DEFAULT_OPTIONS={url:GOTRUE_URL,storageKey:STORAGE_KEY,autoRefreshToken:!0,persistSession:!0,detectSessionInUrl:!0,headers:DEFAULT_HEADERS,flowType:"implicit",debug:!1,hasCustomAuthorizationHeader:!1};async function lockNoOp(e,s,i){return await i()}const GLOBAL_JWKS={};class GoTrueClient{get jwks(){var s,i;return(i=(s=GLOBAL_JWKS[this.storageKey])===null||s===void 0?void 0:s.jwks)!==null&&i!==void 0?i:{keys:[]}}set jwks(s){GLOBAL_JWKS[this.storageKey]=Object.assign(Object.assign({},GLOBAL_JWKS[this.storageKey]),{jwks:s})}get jwks_cached_at(){var s,i;return(i=(s=GLOBAL_JWKS[this.storageKey])===null||s===void 0?void 0:s.cachedAt)!==null&&i!==void 0?i:Number.MIN_SAFE_INTEGER}set jwks_cached_at(s){GLOBAL_JWKS[this.storageKey]=Object.assign(Object.assign({},GLOBAL_JWKS[this.storageKey]),{cachedAt:s})}constructor(s){var i,o;this.userStorage=null,this.memoryStorage=null,this.stateChangeEmitters=new Map,this.autoRefreshTicker=null,this.visibilityChangedCallback=null,this.refreshingDeferred=null,this.initializePromise=null,this.detectSessionInUrl=!0,this.hasCustomAuthorizationHeader=!1,this.suppressGetSessionWarning=!1,this.lockAcquired=!1,this.pendingInLock=[],this.broadcastChannel=null,this.logger=console.log,this.instanceID=GoTrueClient.nextInstanceID,GoTrueClient.nextInstanceID+=1,this.instanceID>0&&isBrowser()&&console.warn("Multiple GoTrueClient instances detected in the same browser context. It is not an error, but this should be avoided as it may produce undefined behavior when used concurrently under the same storage key.");const a=Object.assign(Object.assign({},DEFAULT_OPTIONS),s);if(this.logDebugMessages=!!a.debug,typeof a.debug=="function"&&(this.logger=a.debug),this.persistSession=a.persistSession,this.storageKey=a.storageKey,this.autoRefreshToken=a.autoRefreshToken,this.admin=new GoTrueAdminApi({url:a.url,headers:a.headers,fetch:a.fetch}),this.url=a.url,this.headers=a.headers,this.fetch=resolveFetch(a.fetch),this.lock=a.lock||lockNoOp,this.detectSessionInUrl=a.detectSessionInUrl,this.flowType=a.flowType,this.hasCustomAuthorizationHeader=a.hasCustomAuthorizationHeader,a.lock?this.lock=a.lock:isBrowser()&&(!((i=globalThis==null?void 0:globalThis.navigator)===null||i===void 0)&&i.locks)?this.lock=navigatorLock:this.lock=lockNoOp,this.jwks||(this.jwks={keys:[]},this.jwks_cached_at=Number.MIN_SAFE_INTEGER),this.mfa={verify:this._verify.bind(this),enroll:this._enroll.bind(this),unenroll:this._unenroll.bind(this),challenge:this._challenge.bind(this),listFactors:this._listFactors.bind(this),challengeAndVerify:this._challengeAndVerify.bind(this),getAuthenticatorAssuranceLevel:this._getAuthenticatorAssuranceLevel.bind(this),webauthn:new WebAuthnApi(this)},this.persistSession?(a.storage?this.storage=a.storage:supportsLocalStorage()?this.storage=globalThis.localStorage:(this.memoryStorage={},this.storage=memoryLocalStorageAdapter(this.memoryStorage)),a.userStorage&&(this.userStorage=a.userStorage)):(this.memoryStorage={},this.storage=memoryLocalStorageAdapter(this.memoryStorage)),isBrowser()&&globalThis.BroadcastChannel&&this.persistSession&&this.storageKey){try{this.broadcastChannel=new globalThis.BroadcastChannel(this.storageKey)}catch(c){console.error("Failed to create a new BroadcastChannel, multi-tab state changes will not be available",c)}(o=this.broadcastChannel)===null||o===void 0||o.addEventListener("message",async c=>{this._debug("received broadcast notification from other tab or client",c),await this._notifyAllSubscribers(c.data.event,c.data.session,!1)})}this.initialize()}_debug(...s){return this.logDebugMessages&&this.logger(`GoTrueClient@${this.instanceID} (${version}) ${new Date().toISOString()}`,...s),this}async initialize(){return this.initializePromise?await this.initializePromise:(this.initializePromise=(async()=>await this._acquireLock(-1,async()=>await this._initialize()))(),await this.initializePromise)}async _initialize(){var s;try{const i=parseParametersFromURL(window.location.href);let o="none";if(this._isImplicitGrantCallback(i)?o="implicit":await this._isPKCECallback(i)&&(o="pkce"),isBrowser()&&this.detectSessionInUrl&&o!=="none"){const{data:a,error:c}=await this._getSessionFromURL(i,o);if(c){if(this._debug("#_initialize()","error detecting session from URL",c),isAuthImplicitGrantRedirectError(c)){const g=(s=c.details)===null||s===void 0?void 0:s.code;if(g==="identity_already_exists"||g==="identity_not_found"||g==="single_identity_not_deletable")return{error:c}}return await this._removeSession(),{error:c}}const{session:d,redirectType:h}=a;return this._debug("#_initialize()","detected session in URL",d,"redirect type",h),await this._saveSession(d),setTimeout(async()=>{h==="recovery"?await this._notifyAllSubscribers("PASSWORD_RECOVERY",d):await this._notifyAllSubscribers("SIGNED_IN",d)},0),{error:null}}return await this._recoverAndRefresh(),{error:null}}catch(i){return isAuthError(i)?{error:i}:{error:new AuthUnknownError("Unexpected error during initialization",i)}}finally{await this._handleVisibilityChange(),this._debug("#_initialize()","end")}}async signInAnonymously(s){var i,o,a;try{const c=await _request(this.fetch,"POST",`${this.url}/signup`,{headers:this.headers,body:{data:(o=(i=s==null?void 0:s.options)===null||i===void 0?void 0:i.data)!==null&&o!==void 0?o:{},gotrue_meta_security:{captcha_token:(a=s==null?void 0:s.options)===null||a===void 0?void 0:a.captchaToken}},xform:_sessionResponse}),{data:d,error:h}=c;if(h||!d)return{data:{user:null,session:null},error:h};const g=d.session,b=d.user;return d.session&&(await this._saveSession(d.session),await this._notifyAllSubscribe
499rs("SIGNED_IN",g)),{data:{user:b,session:g},error:null}}catch(c){if(isAuthError(c))return{data:{user:null,session:null},error:c};throw c}}async signUp(s){var i,o,a;try{let c;if("email"in s){const{email:_,password:_e,options:$}=s;let et=null,it=null;this.flowType==="pkce"&&([et,it]=await getCodeChallengeAndMethod(this.storage,this.storageKey)),c=await _request(this.fetch,"POST",`${this.url}/signup`,{headers:this.headers,redirectTo:$==null?void 0:$.emailRedirectTo,body:{email:_,password:_e,data:(i=$==null?void 0:$.data)!==null&&i!==void 0?i:{},gotrue_meta_security:{captcha_token:$==null?void 0:$.captchaToken},code_challenge:et,code_challenge_method:it},xform:_sessionResponse})}else if("phone"in s){const{phone:_,password:_e,options:$}=s;c=await _request(this.fetch,"POST",`${this.url}/signup`,{headers:this.headers,body:{phone:_,password:_e,data:(o=$==null?void 0:$.data)!==null&&o!==void 0?o:{},channel:(a=$==null?void 0:$.channel)!==null&&a!==void 0?a:"sms",gotrue_meta_security:{captcha_token:$==null?void 0:$.captchaToken}},xform:_sessionResponse})}else throw new AuthInvalidCredentialsError("You must provide either an email or phone number and a password");const{data:d,error:h}=c;if(h||!d)return{data:{user:null,session:null},error:h};const g=d.session,b=d.user;return d.session&&(await this._saveSession(d.session),await this._notifyAllSubscribers("SIGNED_IN",g)),{data:{user:b,session:g},error:null}}catch(c){if(isAuthError(c))return{data:{user:null,session:null},error:c};throw c}}async signInWithPassword(s){try{let i;if("email"in s){const{email:c,password:d,options:h}=s;i=await _request(this.fetch,"POST",`${this.url}/token?grant_type=password`,{headers:this.headers,body:{email:c,password:d,gotrue_meta_security:{captcha_token:h==null?void 0:h.captchaToken}},xform:_sessionResponsePassword})}else if("phone"in s){const{phone:c,password:d,options:h}=s;i=await _request(this.fetch,"POST",`${this.url}/token?grant_type=password`,{headers:this.headers,body:{phone:c,password:d,gotrue_meta_security:{captcha_token:h==null?void 0:h.captchaToken}},xform:_sessionResponsePassword})}else throw new AuthInvalidCredentialsError("You must provide either an email or phone number and a password");const{data:o,error:a}=i;return a?{data:{user:null,session:null},error:a}:!o||!o.session||!o.user?{data:{user:null,session:null}
499,error:new AuthInvalidTokenResponseError}:(o.session&&(await this._saveSession(o.session),await this._notifyAllSubscribers("SIGNED_IN",o.session)),{data:Object.assign({user:o.user,session:o.session},o.weak_password?{weakPassword:o.weak_password}:null),error:a})}catch(i){if(isAuthError(i))return{data:{user:null,session:null},error:i};throw i}}async signInWithOAuth(s){var i,o,a,c;return await this._handleProviderSignIn(s.provider,{redirectTo:(i=s.options)===null||i===void 0?void 0:i.redirectTo,scopes:(o=s.options)===null||o===void 0?void 0:o.scopes,queryParams:(a=s.options)===null||a===void 0?void 0:a.queryParams,skipBrowserRedirect:(c=s.options)===null||c===void 0?void 0:c.skipBrowserRedirect})}async exchangeCodeForSession(s){return await this.initializePromise,this._acquireLock(-1,async()=>this._exchangeCodeForSession(s))}async signInWithWeb3(s){const{chain:i}=s;switch(i){case"ethereum":return await this.signInWithEthereum(s);case"solana":return await this.signInWithSolana(s);default:throw new Error(`@supabase/auth-js: Unsupported chain "${i}"`)}}async signInWithEthereum(s){var i,o,a,c,d,h,g,b,_,_e,$;let et,it;if("message"in s)et=s.message,it=s.signature;else{const{chain:rt,wallet:lt,statement:st,options:ot}=s;let nt;if(isBrowser())if(typeof lt=="object")nt=lt;else{const St=window;if("ethereum"in St&&typeof St.ethereum=="object"&&"request"in St.ethereum&&typeof St.ethereum.request=="function")nt=St.ethereum;else throw new Error("@supabase/auth-js: No compatible Ethereum wallet interface on the window object (window.ethereum) detected. Make sure the user already has a wallet installed and connected for this app. Prefer passing the wallet interface object directly to signInWithWeb3({ chain: 'ethereum', wallet: resolvedUserWallet }) instead.")}else{if(typeof lt!="object"||!(ot!=null&&ot.url))throw new Error("@supabase/auth-js: Both wallet and url must be specified in non-browser environments.");nt=lt}const at=new URL((i=ot==null?void 0:ot.url)!==null&&i!==void 0?i:window.location.href),ct=await nt.request({method:"eth_requestAccounts"}).then(St=>St).catch(()=>{throw new Error("@supabase/auth-js: Wallet method eth_requestAccounts is missing or invalid")});if(!ct||ct.length===0)throw new Error("@supabase/auth-js: No accounts available. Please ensure the wallet is connected.");const dt=getAddress(ct[0]);let pt=(o=ot==null?void 0:ot.signInWithEthereum)===null||o===void 0?void 0:o.chainId;if(!pt){const St=await nt.request({method:"eth_chainId"});pt=fromHex(St)}const mt={domain:at.host,address:dt,statement:st,uri:at.href,version:"1",chainId:pt,nonce:(a=ot==null?void 0:ot.signInWithEthereum)===null||a===void 0?void 0:a.nonce,issuedAt:(d=(c=ot==null?void 0:ot.signInWithEthereum)===null||c===void 0?void 0:c.issuedAt)!==null&&d!==void 0?d:new Date,expirationTime:(h=ot==null?void 0:ot.signInWithEthereum)===null||h===void 0?void 0:h.expirationTime,notBefore:(g=ot==null?void 0:ot.signInWithEthereum)===null||g===void 0?void 0:g.notBefore,requestId:(b=ot==null?void 0:ot.signInWithEthereum)===null||b===void 0?void 0:b.requestId,resources:(_=ot==null?void 0:ot.signInWithEthereum)===null||_===void 0?void 0:_.resources};et=createSiweMessage(mt),it=await nt.request({method:"personal_sign",params:[toHex(et),dt]})}try{const{data:rt,error:lt}=await _request(this.fetch,"POST",`${this.url}/token?grant_type=web3`,{headers:this.headers,body:Object.assign({chain:"ethereum",message:et,signature:it},!((_e=s.options)===null||_e===void 0)&&_e.captchaToken?{gotrue_meta_security:{captcha_token:($=s.options)===null||$===void 0?void 0:$.captchaToken}}:null),xform:_sessionResponse});if(lt)throw lt;return!rt||!rt.session||!rt.user?{data:{user:null,session:null}
499,error:new AuthInvalidTokenResponseError}:(rt.session&&(await this._saveSession(rt.session),await this._notifyAllSubscribers("SIGNED_IN",rt.session)),{data:Object.assign({},rt),error:lt})}catch(rt){if(isAuthError(rt))return{data:{user:null,session:null},error:rt};throw rt}}async signInWithSolana(s){var i,o,a,c,d,h,g,b,_,_e,$,et;let it,rt;if("message"in s)it=s.message,rt=s.signature;else{const{chain:lt,wallet:st,statement:ot,options:nt}=s;let at;if(isBrowser())if(typeof st=="object")at=st;else{const dt=window;if("solana"in dt&&typeof dt.solana=="object"&&("signIn"in dt.solana&&typeof dt.solana.signIn=="function"||"signMessage"in dt.solana&&typeof dt.solana.signMessage=="function"))at=dt.solana;else throw new Error("@supabase/auth-js: No compatible Solana wallet interface on the window object (window.solana) detected. Make sure the user already has a wallet installed and connected for this app. Prefer passing the wallet interface object directly to signInWithWeb3({ chain: 'solana', wallet: resolvedUserWallet }) instead.")}else{if(typeof st!="object"||!(nt!=null&&nt.url))throw new Error("@supabase/auth-js: Both wallet and url must be specified in non-browser environments.");at=st}const ct=new URL((i=nt==null?void 0:nt.url)!==null&&i!==void 0?i:window.location.href);if("signIn"in at&&at.signIn){const dt=await at.signIn(Object.assign(Object.assign(Object.assign({issuedAt:new Date().toISOString()},nt==null?void 0:nt.signInWithSolana),{version:"1",domain:ct.host,uri:ct.href}),ot?{statement:ot}:null));let pt;if(Array.isArray(dt)&&dt[0]&&typeof dt[0]=="object")pt=dt[0];else if(dt&&typeof dt=="object"&&"signedMessage"in dt&&"signature"in dt)pt=dt;else throw new Error("@supabase/auth-js: Wallet method signIn() returned unrecognized value");if("signedMessage"in pt&&"signature"in pt&&(typeof pt.signedMessage=="string"||pt.signedMessage instanceof Uint8Array)&&pt.signature instanceof Uint8Array)it=typeof pt.signedMessage=="string"?pt.signedMessage:new TextDecoder().decode(pt.signedMessage),rt=pt.signature;else throw new Error("@supabase/auth-js: Wallet method signIn() API returned object without signedMessage and signature fields")}else{if(!("signMessage"in at)||typeof at.signMessage!="function"||!("publicKey"in at)||typeof at!="object"||!at.publicKey||!("toBase58"in at.publicKey)||typeof at.publicKey.toBase58!="function")throw new Error("@supabase/auth-js: Wallet does not have a compatible signMessage() and publicKey.toBase58() API");it=[`${ct.host} wants you to sign in with your Solana account:`,at.publicKey.toBase58(),...ot?["",ot,""]:[""],"Version: 1",`URI: ${ct.href}`,`Issued At: ${(a=(o=nt==null?void 0:nt.signInWithSolana)===null||o===void 0?void 0:o.issuedAt)!==null&&a!==void 0?a:new Date().toISOString()}`,...!((c=nt==null?void 0:nt.signInWithSolana)===null||c===void 0)&&c.notBefore?[`Not Before: ${nt.signInWithSolana.notBefore}`]:[],...!((d=nt==null?void 0:nt.signInWithSolana)===null||d===void 0)&&d.expirationTime?[`Expiration Time: ${nt.signInWithSolana.expirationTime}`]:[],...!((h=nt==null?void 0:nt.signInWithSolana)===null||h===void 0)&&h.chainId?[`Chain ID: ${nt.signInWithSolana.chainId}`]:[],...!((g=nt==null?void 0:nt.signInWithSolana)===null||g===void 0)&&g.nonce?[`Nonce: ${nt.signInWithSolana.nonce}`]:[],...!((b=nt==null?void 0:nt.signInWithSolana)===null||b===void 0)&&b.requestId?[`Request ID: ${nt.signInWithSolana.requestId}`]:[],...!((_e=(_=nt==null?void 0:nt.signInWithSolana)===null||_===void 0?void 0:_.resources)===null||_e===void 0)&&_e.length?["Resources",...nt.signInWithSolana.resources.map(pt=>`- ${pt}`)]:[]].join(` 500`);const dt=await at.signMessage(new TextEncoder().encode(it),"utf8");if(!dt||!(dt instanceof Uint8Array))throw new Error("@supabase/auth-js: Wallet signMessage() API returned an recognized value");rt=dt}}try{const{data:lt,error:st}=await _request(this.fetch,"POST",`${this.url}/token?grant_type=web3`,{headers:this.headers,body:Object.assign({chain:"solana",message:it,signature:bytesToBase64URL(rt)},!(($=s.options)===null||$===void 0)&&$.captchaToken?{gotrue_meta_security:{captcha_token:(et=s.options)===null||et===void 0?void 0:et.captchaToken}}:null),xform:_sessionResponse});if(st)throw st;return!lt||!lt.session||!lt.user?{data:{user:null,session:null}
500,error:new AuthInvalidTokenResponseError}:(lt.session&&(await this._saveSession(lt.session),await this._notifyAllSubscribers("SIGNED_IN",lt.session)),{data:Object.assign({},lt),error:st})}catch(lt){if(isAuthError(lt))return{data:{user:null,session:null},error:lt};throw lt}}async _exchangeCodeForSession(s){const i=await getItemAsync(this.storage,`${this.storageKey}-code-verifier`),[o,a]=(i??"").split("/");try{const{data:c,error:d}=await _request(this.fetch,"POST",`${this.url}/token?grant_type=pkce`,{headers:this.headers,body:{auth_code:s,code_verifier:o},xform:_sessionResponse});if(await removeItemAsync(this.storage,`${this.storageKey}-code-verifier`),d)throw d;return!c||!c.session||!c.user?{data:{user:null,session:null,redirectType:null},error:new AuthInvalidTokenResponseError}:(c.session&&(await this._saveSession(c.session),await this._notifyAllSubscribers("SIGNED_IN",c.session)),{data:Object.assign(Object.assign({},c),{redirectType:a??null}),error:d})}catch(c){if(isAuthError(c))return{data:{user:null,session:null,redirectType:null},error:c};throw c}}async signInWithIdToken(s){try{const{options:i,provider:o,token:a,access_token:c,nonce:d}=s,h=await _request(this.fetch,"POST",`${this.url}/token?grant_type=id_token`,{headers:this.headers,body:{provider:o,id_token:a,access_token:c,nonce:d,gotrue_meta_security:{captcha_token:i==null?void 0:i.captchaToken}},xform:_sessionResponse}),{data:g,error:b}=h;return b?{data:{user:null,session:null},error:b}:!g||!g.session||!g.user?{data:{user:null,session:null}
500,error:new AuthInvalidTokenResponseError}:(g.session&&(await this._saveSession(g.session),await this._notifyAllSubscribers("SIGNED_IN",g.session)),{data:g,error:b})}catch(i){if(isAuthError(i))return{data:{user:null,session:null},error:i};throw i}}async signInWithOtp(s){var i,o,a,c,d;try{if("email"in s){const{email:h,options:g}=s;let b=null,_=null;this.flowType==="pkce"&&([b,_]=await getCodeChallengeAndMethod(this.storage,this.storageKey));const{error:_e}=await _request(this.fetch,"POST",`${this.url}/otp`,{headers:this.headers,body:{email:h,data:(i=g==null?void 0:g.data)!==null&&i!==void 0?i:{},create_user:(o=g==null?void 0:g.shouldCreateUser)!==null&&o!==void 0?o:!0,gotrue_meta_security:{captcha_token:g==null?void 0:g.captchaToken},code_challenge:b,code_challenge_method:_},redirectTo:g==null?void 0:g.emailRedirectTo});return{data:{user:null,session:null},error:_e}}if("phone"in s){const{phone:h,options:g}=s,{data:b,error:_}=await _request(this.fetch,"POST",`${this.url}/otp`,{headers:this.headers,body:{phone:h,data:(a=g==null?void 0:g.data)!==null&&a!==void 0?a:{},create_user:(c=g==null?void 0:g.shouldCreateUser)!==null&&c!==void 0?c:!0,gotrue_meta_security:{captcha_token:g==null?void 0:g.captchaToken},channel:(d=g==null?void 0:g.channel)!==null&&d!==void 0?d:"sms"}});return{data:{user:null,session:null,messageId:b==null?void 0:b.message_id},error:_}}throw new AuthInvalidCredentialsError("You must provide either an email or phone number.")}catch(h){if(isAuthError(h))return{data:{user:null,session:null},error:h};throw h}}async verifyOtp(s){var i,o;try{let a,c;"options"in s&&(a=(i=s.options)===null||i===void 0?void 0:i.redirectTo,c=(o=s.options)===null||o===void 0?void 0:o.captchaToken);const{data:d,error:h}=await _request(this.fetch,"POST",`${this.url}/verify`,{headers:this.headers,body:Object.assign(Object.assign({},s),{gotrue_meta_security:{captcha_token:c}}),redirectTo:a,xform:_sessionResponse});if(h)throw h;if(!d)throw new Error("An error occurred on token verification.");const g=d.session,b=d.user;return g!=null&&g.access_token&&(await this._saveSession(g),await this._notifyAllSubscribers(s.type=="recovery"?"PASSWORD_RECOVERY":"SIGNED_IN",g)),{data:{user:b,session:g},error:null}}catch(a){if(isAuthError(a))return{data:{user:null,session:null},error:a};throw a}}async signInWithSSO(s){var i,o,a;try{let c=null,d=null;return this.flowType==="pkce"&&([c,d]=await getCodeChallengeAndMethod(this.storage,this.storageKey)),await _request(this.fetch,"POST",`${this.url}/sso`,{body:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},"providerId"in s?{provider_id:s.providerId}:null),"domain"in s?{domain:s.domain}:null),{redirect_to:(o=(i=s.options)===null||i===void 0?void 0:i.redirectTo)!==null&&o!==void 0?o:void 0}),!((a=s==null?void 0:s.options)===null||a===void 0)&&a.captchaToken?{gotrue_meta_security:{captcha_token:s.options.captchaToken}}:null),{skip_http_redirect:!0,code_challenge:c,code_challenge_method:d}),headers:this.headers,xform:_ssoResponse})}catch(c){if(isAuthError(c))return{data:null,error:c};throw c}}async reauthenticate(){return await this.initializePromise,await this._acquireLock(-1,async()=>await this._reauthenticate())}async _reauthenticate(){try{return await this._useSession(async s=>{const{data:{session:i},error:o}=s;if(o)throw o;if(!i)throw new AuthSessionMissingError;const{error:a}=await _request(this.fetch,"GET",`${this.url}/reauthenticate`,{headers:this.headers,jwt:i.access_token});return{data:{user:null,session:null},error:a}})}catch(s){if(isAuthError(s))return{data:{user:null,session:null},error:s};throw s}}async resend(s){try{const i=`${this.url}/resend`;if("email"in s){const{email:o,type:a,options:c}=s,{error:d}=await _request(this.fetch,"POST",i,{headers:this.headers,body:{email:o,type:a,gotrue_meta_security:{captcha_token:c==null?void 0:c.captchaToken}},redirectTo:c==null?void 0:c.emailRedirectTo});return{data:{user:null,session:null},error:d}}else if("phone"in s){const{phone:o,type:a,options:c}=s,{data:d,error:h}=await _request(this.fetch,"POST",i,{headers:this.headers,body:{phone:o,type:a,gotrue_meta_security:{captcha_token:c==null?void 0:c.captchaToken}}});return{data:{user:null,session:null,messageId:d==null?void 0:d.message_id},error:h}}throw new AuthInvalidCredentialsError("You must provide either an email or phone number and a type")}catch(i){if(isAuthError(i))return{data:{user:null,session:null},error:i};throw i}}async getSession(){return await this.initializePromise,await this._acquireLock(-1,async()=>this._useSession(async i=>i))}async _acquireLock(s,i){this._debug("#_acquireLock","begin",s);try{if(this.lockAcquired){const o=this.pendingInLock.length?this.pendingInLock[this.pendingInLock.length-1]:Promise.resolve(),a=(async()=>(await o,await i()))();return this.pendingInLock.push((async()=>{try{await a}catch{}})()),a}return await this.lock(`lock:${this.storageKey}`,s,async()=>{this._debug("#_acquireLock","lock acquired for storage key",this.storageKey);try{this.lockAcquired=!0;const o=i();for(this.pendingInLock.push((async()=>{try{await o}catch{}})()),await o;this.pendingInLock.length;){const a=[...this.pendingInLock];await Promise.all(a),this.pendingInLock.splice(0,a.length)}return await o}finally{this._debug("#_acquireLock","lock released for storage key",this.storageKey),this.lockAcquired=!1}})}finally{this._debug("#_acquireLock","end")}}async _useSession(s){this._debug("#_useSession","begin");try{const i=await this.__loadSession();return await s(i)}finally{this._debug("#_useSession","end")}}async __loadSession(){this._debug("#__loadSession()","begin"),this.lockAcquired||this._debug("#__loadSession()","used outside of an acquired lock!",new Error().stack);try{let s=null;const i=await getItemAsync(this.storage,this.storageKey);
500if(this._debug("#getSession()","session from storage",i),i!==null&&(this._isValidSession(i)?s=i:(this._debug("#getSession()","session from storage is not valid"),await this._removeSession())),!s)return{data:{session:null},error:null};const o=s.expires_at?s.expires_at*1e3-Date.now()<EXPIRY_MARGIN_MS:!1;if(this._debug("#__loadSession()",`session has${o?"":" not"} expired`,"expires_at",s.expires_at),!o){if(this.userStorage){const d=await getItemAsync(this.userStorage,this.storageKey+"-user");d!=null&&d.user?s.user=d.user:s.user=userNotAvailableProxy()}if(this.storage.isServer&&s.user){let d=this.suppressGetSessionWarning;s=new Proxy(s,{get:(g,b,_)=>(!d&&b==="user"&&(console.warn("Using the user object as returned from supabase.auth.getSession() or from some supabase.auth.onAuthStateChange() events could be insecure! This value comes directly from the storage medium (usually cookies on the server) and may not be authentic. Use supabase.auth.getUser() instead which authenticates the data by contacting the Supabase Auth server."),d=!0,this.suppressGetSessionWarning=!0),Reflect.get(g,b,_))})}return{data:{session:s},error:null}}const{data:a,error:c}=await this._callRefreshToken(s.refresh_token);return c?{data:{session:null},error:c}:{data:{session:a},error:null}}finally{this._debug("#__loadSession()","end")}}async getUser(s){return s?await this._getUser(s):(await this.initializePromise,await this._acquireLock(-1,async()=>await this._getUser()))}async _getUser(s){try{return s?await _request(this.fetch,"GET",`${this.url}/user`,{headers:this.headers,jwt:s,xform:_userResponse}):await this._useSession(async i=>{var o,a,c;const{data:d,error:h}=i;if(h)throw h;return!(!((o=d.session)===null||o===void 0)&&o.access_token)&&!this.hasCustomAuthorizationHeader?{data:{user:null},error:new AuthSessionMissingError}:await _request(this.fetch,"GET",`${this.url}/user`,{headers:this.headers,jwt:(c=(a=d.session)===null||a===void 0?void 0:a.access_token)!==null&&c!==void 0?c:void 0,xform:_userResponse})})}catch(i){if(isAuthError(i))return isAuthSessionMissingError(i)&&(await this._removeSession(),await removeItemAsync(this.storage,`${this.storageKey}-code-verifier`)),{data:{user:null},error:i};throw i}}async updateUser(s,i={}){return await this.initializePromise,await this._acquireLock(-1,async()=>await this._updateUser(s,i))}async _updateUser(s,i={}){try{return await this._useSession(async o=>{const{data:a,error:c}=o;if(c)throw c;if(!a.session)throw new AuthSessionMissingError;const d=a.session;let h=null,g=null;this.flowType==="pkce"&&s.email!=null&&([h,g]=await getCodeChallengeAndMethod(this.storage,this.storageKey));const{data:b,error:_}=await _request(this.fetch,"PUT",`${this.url}/user`,{headers:this.headers,redirectTo:i==null?void 0:i.emailRedirectTo,body:Object.assign(Object.assign({},s),{code_challenge:h,code_challenge_method:g}),jwt:d.access_token,xform:_userResponse});if(_)throw _;return d.user=b.user,await this._saveSession(d),await this._notifyAllSubscribers("USER_UPDATED",d),{data:{user:d.user},error:null}})}catch(o){if(isAuthError(o))return{data:{user:null},error:o};throw o}}async setSession(s){return await this.initializePromise,await this._acquireLock(-1,async()=>await this._setSession(s))}async _setSession(s){try{if(!s.access_token||!s.refresh_token)throw new AuthSessionMissingError;const i=Date.now()/1e3;let o=i,a=!0,c=null;const{payload:d}=decodeJWT(s.access_token);if(d.exp&&(o=d.exp,a=o<=i),a){const{data:h,error:g}=await this._callRefreshToken(s.refresh_token);if(g)return{data:{user:null,session:null},error:g};if(!h)return{data:{user:null,session:null},error:null};c=h}else{const{data:h,error:g}=await this._getUser(s.access_token);if(g)throw g;c={access_token:s.access_token,refresh_token:s.refresh_token,user:h.user,token_type:"bearer",expires_in:o-i,expires_at:o},await this._saveSession(c),await this._notifyAllSubscribers("SIGNED_IN",c)}return{data:{user:c.user,session:c},error:null}}catch(i){if(isAuthError(i))return{data:{session:null,user:null},error:i};throw i}}async refreshSession(s){return await this.initializePromise,await this._acquireLock(-1,async()=>await this._refreshSession(s))}async _refreshSession(s){try{return await this._useSession(async i=>{var o;if(!s){const{data:d,error:h}=i;if(h)throw h;s=(o=d.session)!==null&&o!==void 0?o:void 0}if(!(s!=null&&s.refresh_token))throw new AuthSessionMissingError;
500const{data:a,error:c}=await this._callRefreshToken(s.refresh_token);return c?{data:{user:null,session:null},error:c}:a?{data:{user:a.user,session:a},error:null}:{data:{user:null,session:null},error:null}})}catch(i){if(isAuthError(i))return{data:{user:null,session:null},error:i};throw i}}async _getSessionFromURL(s,i){try{if(!isBrowser())throw new AuthImplicitGrantRedirectError("No browser detected.");if(s.error||s.error_description||s.error_code)throw new AuthImplicitGrantRedirectError(s.error_description||"Error in URL with unspecified error_description",{error:s.error||"unspecified_error",code:s.error_code||"unspecified_code"});switch(i){case"implicit":if(this.flowType==="pkce")throw new AuthPKCEGrantCodeExchangeError("Not a valid PKCE flow url.");break;case"pkce":if(this.flowType==="implicit")throw new AuthImplicitGrantRedirectError("Not a valid implicit grant flow url.");break;default:}if(i==="pkce"){if(this._debug("#_initialize()","begin","is PKCE flow",!0),!s.code)throw new AuthPKCEGrantCodeExchangeError("No code detected.");const{data:ot,error:nt}=await this._exchangeCodeForSession(s.code);if(nt)throw nt;const at=new URL(window.location.href);return at.searchParams.delete("code"),window.history.replaceState(window.history.state,"",at.toString()),{data:{session:ot.session,redirectType:null},error:null}}const{provider_token:o,provider_refresh_token:a,access_token:c,refresh_token:d,expires_in:h,expires_at:g,token_type:b}=s;if(!c||!h||!d||!b)throw new AuthImplicitGrantRedirectError("No session defined in URL");const _=Math.round(Date.now()/1e3),_e=parseInt(h);let $=_+_e;g&&($=parseInt(g));const et=$-_;et*1e3<=AUTO_REFRESH_TICK_DURATION_MS&&console.warn(`@supabase/gotrue-js: Session as retrieved from URL expires in ${et}s, should have been closer to ${_e}s`);const it=$-_e;_-it>=120?console.warn("@supabase/gotrue-js: Session as retrieved from URL was issued over 120s ago, URL could be stale",it,$,_):_-it<0&&console.warn("@supabase/gotrue-js: Session as retrieved from URL was issued in the future? Check the device clock for skew",it,$,_);const{data:rt,error:lt}=await this._getUser(c);if(lt)throw lt;const st={provider_token:o,provider_refresh_token:a,access_token:c,expires_in:_e,expires_at:$,refresh_token:d,token_type:b,user:rt.user};return window.location.hash="",this._debug("#_getSessionFromURL()","clearing window.location.hash"),{data:{session:st,redirectType:s.type},error:null}}catch(o){if(isAuthError(o))return{data:{session:null,redirectType:null},error:o};throw o}}_isImplicitGrantCallback(s){return!!(s.access_token||s.error_description)}async _isPKCECallback(s){const i=await getItemAsync(this.storage,`${this.storageKey}-code-verifier`);return!!(s.code&&i)}async signOut(s={scope:"global"}){return await this.initializePromise,await this._acquireLock(-1,async()=>await this._signOut(s))}async _signOut({scope:s}={scope:"global"}){return await this._useSession(async i=>{var o;const{data:a,error:c}=i;if(c)return{error:c};const d=(o=a.session)===null||o===void 0?void 0:o.access_token;if(d){const{error:h}=await this.admin.signOut(d,s);if(h&&!(isAuthApiError(h)&&(h.status===404||h.status===401||h.status===403)))return{error:h}}return s!=="others"&&(await this._removeSession(),await removeItemAsync(this.storage,`${this.storageKey}-code-verifier`)),{error:null}})}onAuthStateChange(s){const i=uuid(),o={id:i,callback:s,unsubscribe:()=>{this._debug("#unsubscribe()","state change callback with id removed",i),this.stateChangeEmitters.delete(i)}};return this._debug("#onAuthStateChange()","registered callback with id",i),this.stateChangeEmitters.set(i,o),(async()=>(await this.initializePromise,await this._acquireLock(-1,async()=>{this._emitInitialSession(i)})))(),{data:{subscription:o}}}async _emitInitialSession(s){return await this._useSession(async i=>{var o,a;try{const{data:{session:c},error:d}=i;if(d)throw d;await((o=this.stateChangeEmitters.get(s))===null||o===void 0?void 0:o.callback("INITIAL_SESSION",c)),this._debug("INITIAL_SESSION","callback id",s,"session",c)}catch(c){await((a=this.stateChangeEmitters.get(s))===null||a===void 0?void 0:a.callback("INITIAL_SESSION",null)),this._debug("INITIAL_SESSION","callback id",s,"error",c),console.error(c)}})}async resetPasswordForEmail(s,i={}){let o=null,a=null;this.flowType==="pkce"&&([o,a]=await getCodeChallengeAndMethod(this.storage,this.storageKey,!0));try{return await _request(this.fetch,"POST",`${this.url}
500/recover`,{body:{email:s,code_challenge:o,code_challenge_method:a,gotrue_meta_security:{captcha_token:i.captchaToken}},headers:this.headers,redirectTo:i.redirectTo})}catch(c){if(isAuthError(c))return{data:null,error:c};throw c}}async getUserIdentities(){var s;try{const{data:i,error:o}=await this.getUser();if(o)throw o;return{data:{identities:(s=i.user.identities)!==null&&s!==void 0?s:[]},error:null}}catch(i){if(isAuthError(i))return{data:null,error:i};throw i}}async linkIdentity(s){return"token"in s?this.linkIdentityIdToken(s):this.linkIdentityOAuth(s)}async linkIdentityOAuth(s){var i;try{const{data:o,error:a}=await this._useSession(async c=>{var d,h,g,b,_;const{data:_e,error:$}=c;if($)throw $;const et=await this._getUrlForProvider(`${this.url}/user/identities/authorize`,s.provider,{redirectTo:(d=s.options)===null||d===void 0?void 0:d.redirectTo,scopes:(h=s.options)===null||h===void 0?void 0:h.scopes,queryParams:(g=s.options)===null||g===void 0?void 0:g.queryParams,skipBrowserRedirect:!0});return await _request(this.fetch,"GET",et,{headers:this.headers,jwt:(_=(b=_e.session)===null||b===void 0?void 0:b.access_token)!==null&&_!==void 0?_:void 0})});if(a)throw a;return isBrowser()&&!(!((i=s.options)===null||i===void 0)&&i.skipBrowserRedirect)&&window.location.assign(o==null?void 0:o.url),{data:{provider:s.provider,url:o==null?void 0:o.url},error:null}}catch(o){if(isAuthError(o))return{data:{provider:s.provider,url:null},error:o};throw o}}async linkIdentityIdToken(s){return await this._useSession(async i=>{var o;try{const{error:a,data:{session:c}}=i;if(a)throw a;const{options:d,provider:h,token:g,access_token:b,nonce:_}=s,_e=await _request(this.fetch,"POST",`${this.url}/token?grant_type=id_token`,{headers:this.headers,jwt:(o=c==null?void 0:c.access_token)!==null&&o!==void 0?o:void 0,body:{provider:h,id_token:g,access_token:b,nonce:_,link_identity:!0,gotrue_meta_security:{captcha_token:d==null?void 0:d.captchaToken}},xform:_sessionResponse}),{data:$,error:et}=_e;return et?{data:{user:null,session:null},error:et}:!$||!$.session||!$.user?{data:{user:null,session:null}
500,error:new AuthInvalidTokenResponseError}:($.session&&(await this._saveSession($.session),await this._notifyAllSubscribers("USER_UPDATED",$.session)),{data:$,error:et})}catch(a){if(isAuthError(a))return{data:{user:null,session:null},error:a};throw a}})}async unlinkIdentity(s){try{return await this._useSession(async i=>{var o,a;const{data:c,error:d}=i;if(d)throw d;return await _request(this.fetch,"DELETE",`${this.url}/user/identities/${s.identity_id}`,{headers:this.headers,jwt:(a=(o=c.session)===null||o===void 0?void 0:o.access_token)!==null&&a!==void 0?a:void 0})})}catch(i){if(isAuthError(i))return{data:null,error:i};throw i}}async _refreshAccessToken(s){const i=`#_refreshAccessToken(${s.substring(0,5)}...)`;this._debug(i,"begin");try{const o=Date.now();return await retryable(async a=>(a>0&&await sleep(200*Math.pow(2,a-1)),this._debug(i,"refreshing attempt",a),await _request(this.fetch,"POST",`${this.url}/token?grant_type=refresh_token`,{body:{refresh_token:s},headers:this.headers,xform:_sessionResponse})),(a,c)=>{const d=200*Math.pow(2,a);return c&&isAuthRetryableFetchError(c)&&Date.now()+d-o<AUTO_REFRESH_TICK_DURATION_MS})}catch(o){if(this._debug(i,"error",o),isAuthError(o))return{data:{session:null,user:null},error:o};throw o}finally{this._debug(i,"end")}}_isValidSession(s){return typeof s=="object"&&s!==null&&"access_token"in s&&"refresh_token"in s&&"expires_at"in s}async _handleProviderSignIn(s,i){const o=await this._getUrlForProvider(`${this.url}/authorize`,s,{redirectTo:i.redirectTo,scopes:i.scopes,queryParams:i.queryParams});return this._debug("#_handleProviderSignIn()","provider",s,"options",i,"url",o),isBrowser()&&!i.skipBrowserRedirect&&window.location.assign(o),{data:{provider:s,url:o},error:null}}async _recoverAndRefresh(){var s,i;const o="#_recoverAndRefresh()";this._debug(o,"begin");try{const a=await getItemAsync(this.storage,this.storageKey);if(a&&this.userStorage){let d=await getItemAsync(this.userStorage,this.storageKey+"-user");!this.storage.isServer&&Object.is(this.storage,this.userStorage)&&!d&&(d={user:a.user},await setItemAsync(this.userStorage,this.storageKey+"-user",d)),a.user=(s=d==null?void 0:d.user)!==null&&s!==void 0?s:userNotAvailableProxy()}else if(a&&!a.user&&!a.user){const d=await getItemAsync(this.storage,this.storageKey+"-user");d&&(d!=null&&d.user)?(a.user=d.user,await removeItemAsync(this.storage,this.storageKey+"-user"),await setItemAsync(this.storage,this.storageKey,a)):a.user=userNotAvailableProxy()}if(this._debug(o,"session from storage",a),!this._isValidSession(a)){this._debug(o,"session is not valid"),a!==null&&await this._removeSession();return}const c=((i=a.expires_at)!==null&&i!==void 0?i:1/0)*1e3-Date.now()<EXPIRY_MARGIN_MS;if(this._debug(o,`session has${c?"":" not"} expired with margin of ${EXPIRY_MARGIN_MS}s`),c){if(this.autoRefreshToken&&a.refresh_token){const{error:d}=await this._callRefreshToken(a.refresh_token);d&&(console.error(d),isAuthRetryableFetchError(d)||(this._debug(o,"refresh failed with a non-retryable error, removing the session",d),await this._removeSession()))}}else if(a.user&&a.user.__isUserNotAvailableProxy===!0)try{const{data:d,error:h}=await this._getUser(a.access_token);!h&&(d!=null&&d.user)?(a.user=d.user,await this._saveSession(a),await this._notifyAllSubscribers("SIGNED_IN",a)):this._debug(o,"could not get user data, skipping SIGNED_IN notification")}catch(d){console.error("Error getting user data:",d),this._debug(o,"error getting user data, skipping SIGNED_IN notification",d)}else await this._notifyAllSubscribers("SIGNED_IN",a)}catch(a){this._debug(o,"error",a),console.error(a);return}finally{this._debug(o,"end")}}async _callRefreshToken(s){var i,o;if(!s)throw new AuthSessionMissingError;if(this.refreshingDeferred)return this.refreshingDeferred.promise;const a=`#_callRefreshToken(${s.substring(0,5)}...)`;this._debug(a,"begin");try{this.refreshingDeferred=new Deferred;const{data:c,error:d}=await this._refreshAccessToken(s);if(d)throw d;if(!c.session)throw new AuthSessionMissingError;await this._saveSession(c.session),await this._notifyAllSubscribers("TOKEN_REFRESHED",c.session);const h={data:c.session,error:null};return this.refreshingDeferred.resolve(h),h}catch(c){if(this._debug(a,"error",c),isAuthError(c)){const d={data:null,error:c};return isAuthRetryableFetchError(c)||await this._removeSession(),(i=this.refreshingDeferred)===null||i===void 0||i.resolve(d),d}throw(o=this.refreshingDeferred)===null||o===void 0||o.reject(c),c}finally{this.refreshingDeferred=null,this._debug(a,"end")}}async _notifyAllSubscribers(s,i,o=!0){const a=`#_notifyAllSubscribers(${s})`;this._debug(a,"begin",i,`broadcast = ${o}`);try{this.broadcastChannel&&o&&this.broadcastChannel.postMessage({event:s,session:i});const c=[],d=Array.from(this.stateChangeEmitters.values()).map(async h=>{try{await h.callback(s,i)}catch(g){c.push(g)}});if(await Promise.all(d),c.length>0){for(let h=0;h<c.length;h+=1)console.error(c[h]);throw c[0]}}finally{this._debug(a,"end")}}async _saveSession(s){this._debug("#_saveSession()",s),this.suppressGetSessionWarning=!0;const i=Object.assign({},s),o=i.user&&i.user.__isUserNotAvailableProxy===!0;if(this.userStorage){!o&&i.user&&await setItemAsync(this.userStorage,this.storageKey+"-user",{user:i.user});const a=Object.assign({},i);delete a.user;const c=deepClone(a);await setItemAsync(this.storage,this.storageKey,c)}else{const a=deepClone(i);await setItemAsync(this.storage,this.storageKey,a)}}async _removeSession(){this._debug("#_removeSession()"),await removeItemAsync(this.storage,this.storageKey),await removeItemAsync(this.storage,this.storageKey+"-code-verifier"),await removeItemAsync(this.storage,this.storageKey+"-user"),this.userStorage&&await removeItemAsync(this.userStorage,this.storageKey+"-user"),await this._notifyAllSubscribers("SIGNED_OUT",null)}_removeVisibilityChangedCallback(){this._debug("#_removeVisibilityChangedCallback()");const s=this.visibilityChangedCallback;this.visibilityChangedCallback=null;try{s&&isBrowser()&&(window!=null&&window.removeEventListener)&&window.removeEventListener("visibilitychange",s)}
500catch(i){console.error("removing visibilitychange callback failed",i)}}async _startAutoRefresh(){await this._stopAutoRefresh(),this._debug("#_startAutoRefresh()");const s=setInterval(()=>this._autoRefreshTokenTick(),AUTO_REFRESH_TICK_DURATION_MS);this.autoRefreshTicker=s,s&&typeof s=="object"&&typeof s.unref=="function"?s.unref():typeof Deno<"u"&&typeof Deno.unrefTimer=="function"&&Deno.unrefTimer(s),setTimeout(async()=>{await this.initializePromise,await this._autoRefreshTokenTick()},0)}async _stopAutoRefresh(){this._debug("#_stopAutoRefresh()");const s=this.autoRefreshTicker;this.autoRefreshTicker=null,s&&clearInterval(s)}async startAutoRefresh(){this._removeVisibilityChangedCallback(),await this._startAutoRefresh()}async stopAutoRefresh(){this._removeVisibilityChangedCallback(),await this._stopAutoRefresh()}async _autoRefreshTokenTick(){this._debug("#_autoRefreshTokenTick()","begin");try{await this._acquireLock(0,async()=>{try{const s=Date.now();try{return await this._useSession(async i=>{const{data:{session:o}}=i;if(!o||!o.refresh_token||!o.expires_at){this._debug("#_autoRefreshTokenTick()","no session");return}const a=Math.floor((o.expires_at*1e3-s)/AUTO_REFRESH_TICK_DURATION_MS);this._debug("#_autoRefreshTokenTick()",`access token expires in ${a} ticks, a tick lasts ${AUTO_REFRESH_TICK_DURATION_MS}ms, refresh threshold is ${AUTO_REFRESH_TICK_THRESHOLD} ticks`),a<=AUTO_REFRESH_TICK_THRESHOLD&&await this._callRefreshToken(o.refresh_token)})}catch(i){console.error("Auto refresh tick failed with error. This is likely a transient error.",i)}}finally{this._debug("#_autoRefreshTokenTick()","end")}})}catch(s){if(s.isAcquireTimeout||s instanceof LockAcquireTimeoutError)this._debug("auto refresh token tick lock not available");else throw s}}async _handleVisibilityChange(){if(this._debug("#_handleVisibilityChange()"),!isBrowser()||!(window!=null&&window.addEventListener))return this.autoRefreshToken&&this.startAutoRefresh(),!1;try{this.visibilityChangedCallback=async()=>await this._onVisibilityChanged(!1),window==null||window.addEventListener("visibilitychange",this.visibilityChangedCallback),await this._onVisibilityChanged(!0)}catch(s){console.error("_handleVisibilityChange",s)}}async _onVisibilityChanged(s){const i=`#_onVisibilityChanged(${s})`;this._debug(i,"visibilityState",document.visibilityState),document.visibilityState==="visible"?(this.autoRefreshToken&&this._startAutoRefresh(),s||(await this.initializePromise,await this._acquireLock(-1,async()=>{if(document.visibilityState!=="visible"){this._debug(i,"acquired the lock to recover the session, but the browser visibilityState is no longer visible, aborting");return}await this._recoverAndRefresh()}))):document.visibilityState==="hidden"&&this.autoRefreshToken&&this._stopAutoRefresh()}async _getUrlForProvider(s,i,o){const a=[`provider=${encodeURIComponent(i)}`];if(o!=null&&o.redirectTo&&a.push(`redirect_to=${encodeURIComponent(o.redirectTo)}`),o!=null&&o.scopes&&a.push(`scopes=${encodeURIComponent(o.scopes)}`),this.flowType==="pkce"){const[c,d]=await getCodeChallengeAndMethod(this.storage,this.storageKey),h=new URLSearchParams({code_challenge:`${encodeURIComponent(c)}`,code_challenge_method:`${encodeURIComponent(d)}`});a.push(h.toString())}if(o!=null&&o.queryParams){const c=new URLSearchParams(o.queryParams);a.push(c.toString())}return o!=null&&o.skipBrowserRedirect&&a.push(`skip_http_redirect=${o.skipBrowserRedirect}`),`${s}?${a.join("&")}`}async _unenroll(s){try{return await this._useSession(async i=>{var o;const{data:a,error:c}=i;return c?{data:null,error:c}:await _request(this.fetch,"DELETE",`${this.url}/factors/${s.factorId}`,{headers:this.headers,jwt:(o=a==null?void 0:a.session)===null||o===void 0?void 0:o.access_token})})}catch(i){if(isAuthError(i))return{data:null,error:i};throw i}}async _enroll(s){try{return await this._useSession(async i=>{var o,a;const{data:c,error:d}=i;if(d)return{data:null,error:d};const h=Object.assign({friendly_name:s.friendlyName,factor_type:s.factorType},s.factorType==="phone"?{phone:s.phone}:s.factorType==="totp"?{issuer:s.issuer}:{}),{data:g,error:b}=await _request(this.fetch,"POST",`${this.url}/factors`,{body:h,headers:this.headers,jwt:(o=c==null?void 0:c.session)===null||o===void 0?void 0:o.access_token});return b?{data:null,error:b}:(s.factorType==="totp"&&g.type==="totp"&&(!((a=g==null?void 0:g.totp)===null||a===void 0)&&a.qr_code)&&(g.totp.qr_code=`data:image/svg+xml;utf-8,${g.totp.qr_code}`),{data:g,error:null})})}catch(i){if(isAuthError(i))return{data:null,error:i};throw i}}async _verify(s){return this._acquireLock(-1,async()=>{try{return await this._useSession(async i=>{var o;const{data:a,error:c}=i;
500if(c)return{data:null,error:c};const d=Object.assign({challenge_id:s.challengeId},"webauthn"in s?{webauthn:Object.assign(Object.assign({},s.webauthn),{credential_response:s.webauthn.type==="create"?serializeCredentialCreationResponse(s.webauthn.credential_response):serializeCredentialRequestResponse(s.webauthn.credential_response)})}:{code:s.code}),{data:h,error:g}=await _request(this.fetch,"POST",`${this.url}/factors/${s.factorId}/verify`,{body:d,headers:this.headers,jwt:(o=a==null?void 0:a.session)===null||o===void 0?void 0:o.access_token});return g?{data:null,error:g}:(await this._saveSession(Object.assign({expires_at:Math.round(Date.now()/1e3)+h.expires_in},h)),await this._notifyAllSubscribers("MFA_CHALLENGE_VERIFIED",h),{data:h,error:g})})}catch(i){if(isAuthError(i))return{data:null,error:i};throw i}})}async _challenge(s){return this._acquireLock(-1,async()=>{try{return await this._useSession(async i=>{var o;const{data:a,error:c}=i;if(c)return{data:null,error:c};const d=await _request(this.fetch,"POST",`${this.url}/factors/${s.factorId}/challenge`,{body:s,headers:this.headers,jwt:(o=a==null?void 0:a.session)===null||o===void 0?void 0:o.access_token});if(d.error)return d;const{data:h}=d;if(h.type!=="webauthn")return{data:h,error:null};switch(h.webauthn.type){case"create":return{data:Object.assign(Object.assign({},h),{webauthn:Object.assign(Object.assign({},h.webauthn),{credential_options:Object.assign(Object.assign({},h.webauthn.credential_options),{publicKey:deserializeCredentialCreationOptions(h.webauthn.credential_options.publicKey)})})}),error:null};case"request":return{data:Object.assign(Object.assign({},h),{webauthn:Object.assign(Object.assign({},h.webauthn),{credential_options:Object.assign(Object.assign({},h.webauthn.credential_options),{publicKey:deserializeCredentialRequestOptions(h.webauthn.credential_options.publicKey)})})}),error:null}}})}catch(i){if(isAuthError(i))return{data:null,error:i};throw i}})}async _challengeAndVerify(s){const{data:i,error:o}=await this._challenge({factorId:s.factorId});return o?{data:null,error:o}:await this._verify({factorId:s.factorId,challengeId:i.id,code:s.code})}async _listFactors(){var s;const{data:{user:i},error:o}=await this.getUser();if(o)return{data:null,error:o};const a={all:[],phone:[],totp:[],webauthn:[]};for(const c of(s=i==null?void 0:i.factors)!==null&&s!==void 0?s:[])a.all.push(c),c.status==="verified"&&a[c.factor_type].push(c);return{data:a,error:null}}async _getAuthenticatorAssuranceLevel(){return this._acquireLock(-1,async()=>await this._useSession(async s=>{var i,o;const{data:{session:a},error:c}=s;if(c)return{data:null,error:c};if(!a)return{data:{currentLevel:null,nextLevel:null,currentAuthenticationMethods:[]},error:null};const{payload:d}=decodeJWT(a.access_token);let h=null;d.aal&&(h=d.aal);let g=h;((o=(i=a.user.factors)===null||i===void 0?void 0:i.filter(_e=>_e.status==="verified"))!==null&&o!==void 0?o:[]).length>0&&(g="aal2");const _=d.amr||[];return{data:{currentLevel:h,nextLevel:g,currentAuthenticationMethods:_},error:null}}))}async fetchJwk(s,i={keys:[]}){let o=i.keys.find(h=>h.kid===s);if(o)return o;const a=Date.now();if(o=this.jwks.keys.find(h=>h.kid===s),o&&this.jwks_cached_at+JWKS_TTL>a)return o;const{data:c,error:d}=await _request(this.fetch,"GET",`${this.url}/.well-known/jwks.json`,{headers:this.headers});if(d)throw d;return!c.keys||c.keys.length===0||(this.jwks=c,this.jwks_cached_at=a,o=c.keys.find(h=>h.kid===s),!o)?null:o}async getClaims(s,i={}){try{let o=s;if(!o){const{data:et,error:it}
500=await this.getSession();if(it||!et.session)return{data:null,error:it};o=et.session.access_token}const{header:a,payload:c,signature:d,raw:{header:h,payload:g}}=decodeJWT(o);i!=null&&i.allowExpired||validateExp(c.exp);const b=!a.alg||a.alg.startsWith("HS")||!a.kid||!("crypto"in globalThis&&"subtle"in globalThis.crypto)?null:await this.fetchJwk(a.kid,i!=null&&i.keys?{keys:i.keys}:i==null?void 0:i.jwks);if(!b){const{error:et}=await this.getUser(o);if(et)throw et;return{data:{claims:c,header:a,signature:d},error:null}}const _=getAlgorithm(a.alg),_e=await crypto.subtle.importKey("jwk",b,_,!0,["verify"]);if(!await crypto.subtle.verify(_,_e,d,stringToUint8Array(`${h}.${g}`)))throw new AuthInvalidJwtError("Invalid JWT signature");return{data:{claims:c,header:a,signature:d},error:null}}catch(o){if(isAuthError(o))return{data:null,error:o};throw o}}}GoTrueClient.nextInstanceID=0;const AuthClient=GoTrueClient;class SupabaseAuthClient extends AuthClient{constructor(s){super(s)}}class SupabaseClient{constructor(s,i,o){var a,c,d;this.supabaseUrl=s,this.supabaseKey=i;const h=validateSupabaseUrl(s);if(!i)throw new Error("supabaseKey is required.");this.realtimeUrl=new URL("realtime/v1",h),this.realtimeUrl.protocol=this.realtimeUrl.protocol.replace("http","ws"),this.authUrl=new URL("auth/v1",h),this.storageUrl=new URL("storage/v1",h),this.functionsUrl=new URL("functions/v1",h);const g=`sb-${h.hostname.split(".")[0]}-auth-token`,b={db:DEFAULT_DB_OPTIONS,realtime:DEFAULT_REALTIME_OPTIONS,auth:Object.assign(Object.assign({},DEFAULT_AUTH_OPTIONS),{storageKey:g}),global:DEFAULT_GLOBAL_OPTIONS},_=applySettingDefaults(o??{},b);this.storageKey=(a=_.auth.storageKey)!==null&&a!==void 0?a:"",this.headers=(c=_.global.headers)!==null&&c!==void 0?c:{},_.accessToken?(this.accessToken=_.accessToken,this.auth=new Proxy({},{get:(_e,$)=>{throw new Error(`@supabase/supabase-js: Supabase Client is configured with the accessToken option, accessing supabase.auth.${String($)} is not possible`)}})):this.auth=this._initSupabaseAuthClient((d=_.auth)!==null&&d!==void 0?d:{},this.headers,_.global.fetch),this.fetch=fetchWithAuth(i,this._getAccessToken.bind(this),_.global.fetch),this.realtime=this._initRealtimeClient(Object.assign({headers:this.headers,accessToken:this._getAccessToken.bind(this)},_.realtime)),this.rest=new PostgrestClient(new URL("rest/v1",h).href,{headers:this.headers,schema:_.db.schema,fetch:this.fetch}),this.storage=new StorageClient(this.storageUrl.href,this.headers,this.fetch,o==null?void 0:o.storage),_.accessToken||this._listenForAuthEvents()}get functions(){return new FunctionsClient(this.functionsUrl.href,{headers:this.headers,customFetch:this.fetch})}from(s){return this.rest.from(s)}schema(s){return this.rest.schema(s)}rpc(s,i={},o={head:!1,get:!1,count:void 0}){return this.rest.rpc(s,i,o)}channel(s,i={config:{}}){return this.realtime.channel(s,i)}getChannels(){return this.realtime.getChannels()}removeChannel(s){return this.realtime.removeChannel(s)}removeAllChannels(){return this.realtime.removeAllChannels()}async _getAccessToken(){var s,i;if(this.accessToken)return await this.accessToken();const{data:o}=await this.auth.getSession();return(i=(s=o.session)===null||s===void 0?void 0:s.access_token)!==null&&i!==void 0?i:this.supabaseKey}_initSupabaseAuthClient({autoRefreshToken:s,persistSession:i,detectSessionInUrl:o,storage:a,userStorage:c,storageKey:d,flowType:h,lock:g,debug:b},_,_e){const $={Authorization:`Bearer ${this.supabaseKey}`,apikey:`${this.supabaseKey}`};return new SupabaseAuthClient({url:this.authUrl.href,headers:Object.assign(Object.assign({},$),_),storageKey:d,autoRefreshToken:s,persistSession:i,detectSessionInUrl:o,storage:a,userStorage:c,flowType:h,lock:g,debug:b,fetch:_e,hasCustomAuthorizationHeader:Object.keys(this.headers).some(et=>et.toLowerCase()==="authorization")})}_initRealtimeClient(s){return new RealtimeClient(this.realtimeUrl.href,Object.assign(Object.assign({},s),{params:Object.assign({apikey:this.supabaseKey},s==null?void 0:s.params)}))}_listenForAuthEvents(){return this.auth.onAuthStateChange((i,o)=>{this._handleTokenChanged(i,"CLIENT",o==null?void 0:o.access_token)})}_handleTokenChanged(s,i,o){(s==="TOKEN_REFRESHED"||s==="SIGNED_IN")&&this.changedAccessToken!==o?(this.changedAccessToken=o,this.realtime.setAuth(o)):s==="SIGNED_OUT"&&(this.realtime.setAuth(),i=="STORAGE"&&this.auth.signOut(),this.changedAccessToken=void 0)}}const createClient=(e,s,i)=>new SupabaseClient(e,s,i);function shouldShowDeprecationWarning(){if(typeof window<"u"||typeof process>"u")return!1;const e=process.version;if(e==null)return!1;const s=e.match(/^v(\d+)\./);return s?parseInt(s[1],10)<=18:!1}shouldShowDeprecationWarning()&&console.warn("â ï¸ Node.js 18 and below are deprecated and will no longer be supported in future versions of @supabase/supabase-js. Please upgrade to N
500ode.js 20 or later. For more information, visit: https://github.com/orgs/supabase/discussions/37217");const SUPABASE_URL="https://nxkzorvgcpbyibrksqam.supabase.co",SUPABASE_PUBLISHABLE_KEY="sb_publishable_LoxAZdsZkg1utTTHiEFDpg_7LsOTEDX",supabase=createClient(SUPABASE_URL,SUPABASE_PUBLISHABLE_KEY,{auth:{storage:localStorage,persistSession:!0,autoRefreshToken:!0}}),SIGNUP_QUESTIONNAIRE_STORAGE_KEY="signup_questionnaire",GOOGLE_SIGNIN_ONBOARDING_PENDING_KEY="google_signin_onboarding_pending",GOOGLE_SIGNIN_ONBOARDING_REDIRECT_KEY="google_signin_onboarding_redirect",userroleCache=e=>`userrole_cache_${e}`,userroleCacheTs=e=>`userrole_ts_${e}`,WORKSPACE_STORAGE_KEY="sq_active_workspace",workspaceCache=e=>`sq_ws_cache_${e}`,AUTH_REDIRECT_KEY="auth_redirect",PENDING_CHECKOUT_PLAN_KEY="pending_checkout_plan",GOOGLE_NEW_ACCOUNT_WINDOW_MS=10*60*1e3,POLLING_INTERVALS={FREE_USER:10*6e4,ACTIVE_FAR_FROM_EXPIRY:5*6e4,ACTIVE_NEAR_EXPIRY:6e4,DEFAULT:5*6e4},CHROME_WEB_STORE_URL="https://chromewebstore.google.com/detail/mpabbhoigimepilanjlpjhjppkblijdb?utm_source=item-share-cb",SUPABASE_STORAGE_ORIGIN="https://rmeolrxfrvrlfakoutxk.supabase.co",GOOGLE_SIGNIN_ONBOARDING_PATH="/auth/google-onboarding";function toSignupQuestionnaireAnswers(e){return!(e!=null&&e.department)||!e.company_size||!e.role||!e.referral_source?null:{department:e.department,company_size:e.company_size,role:e.role,referral_source:e.referral_source}}function getStoredSignupQuestionnaire(){const e=sessionStorage.getItem(SIGNUP_QUESTIONNAIRE_STORAGE_KEY);if(!e)return null;try{return toSignupQuestionnaireAnswers(JSON.parse(e))}catch{return null}}function setStoredSignupQuestionnaire(e){sessionStorage.setItem(SIGNUP_QUESTIONNAIRE_STORAGE_KEY,JSON.stringify(e))}function clearStoredSignupQuestionnaire(){sessionStorage.removeItem(SIGNUP_QUESTIONNAIRE_STORAGE_KEY)}async function persistSignupQuestionnaire(e,s){return supabase.from("signup_questionnaires").upsert({user_id:e,department:s.department,company_size:s.company_size,role:s.role,referral_source:s.referral_source},{onConflict:"user_id",ignoreDuplicates:!0})}function isGoogleAuthUser(e){var i,o;const s=(i=e.app_metadata)==null?void 0:i.providers;return Array.isArray(s)&&s.includes("google")?!0:((o=e.app_metadata)==null?void 0:o.provider)==="google"}function isFreshGoogleAuthUser(e){if(!e.created_at)return!1;const s=Date.parse(e.created_at),i=Date.parse(e.last_sign_in_at??e.created_at);return Number.isNaN(s)||Number.isNaN(i)?!1:Math.abs(i-s)<=GOOGLE_NEW_ACCOUNT_WINDOW_MS}function setPendingGoogleSigninOnboarding(e){sessionStorage.setItem(GOOGLE_SIGNIN_ONBOARDING_PENDING_KEY,"true"),sessionStorage.setItem(GOOGLE_SIGNIN_ONBOARDING_REDIRECT_KEY,e)}function hasPendingGoogleSigninOnboarding(){return sessionStorage.getItem(GOOGLE_SIGNIN_ONBOARDING_PENDING_KEY)==="true"}function getPendingGoogleSigninOnboardingRedirect(){return sessionStorage.getItem(GOOGLE_SIGNIN_ONBOARDING_REDIRECT_KEY)??"/"}function clearPendingGoogleSigninOnboarding(){sessionStorage.removeItem(GOOGLE_SIGNIN_ONBOARDING_PENDING_KEY),sessionStorage.removeItem(GOOGLE_SIGNIN_ONBOARDING_REDIRECT_KEY)}async function savePendingQuestionnaire(e){try{let s=getStoredSignupQuestionnaire();if(!s&&e.user_metadata){const i=e.user_metadata;s=toSignupQuestionnaireAnswers(i.questionnaire_department?{department:i.questionnaire_department,company_size:i.questionnaire_company_size,role:i.questionnaire_role,referral_source:i.questionnaire_referral_source}:null)}if(!s)return;await persistSignupQuestionnaire(e.id,s),clearStoredSignupQuestionnaire()}catch(s){console.error("Failed to save questionnaire:",s)}}async function ensureProfileExists(e){var s,i,o,a;try{const{data:c}=await supabase.from("profiles").select("id").eq("id",e.id).maybeSingle();if(!c){const d=((s=e.user_metadata)==null?void 0:s.username)||((o=(i=e.user_metadata)==null?void 0:i.full_name)==null?void 0:o.replace(/\s+/g,"").toLowerCase())||((a=e.email)==null?void 0:a.split("@")[0])||e.id.slice(0,8);await supabase.from("profiles").insert({id:e.id,username:d})}}catch(c){console.error("[useAuth] Failed to ensure profile exists:",c)}}const useAuth=()=>{const[e,s]=reactExports.useState(null),[i,o]=reactExports.useState(null),[a,c]=reactExports.useState(!0);return reactExports.useEffect(()=>{const{data:{subscription:h}}=supabase.auth.onAuthStateChange((g,b)=>
500{o(b),s((b==null?void 0:b.user)??null),c(!1),b!=null&&b.user&&setTimeout(()=>{ensureProfileExists(b.user),g==="SIGNED_IN"&&savePendingQuestionnaire(b.user)},0)});return supabase.auth.getSession().then(({data:{session:g}})=>{o(g),s((g==null?void 0:g.user)??null),c(!1),g!=null&&g.user&&setTimeout(()=>ensureProfileExists(g.user),0)}).catch(g=>{console.error("Failed to load session:",g),o(null),s(null),c(!1)}),()=>h.unsubscribe()},[]),{user:e,session:i,loading:a,signOut:async()=>{await supabase.auth.signOut()}}},denoGlobal=globalThis.Deno,rawValue=denoGlobal?denoGlobal.env.get("IS_STAGING"):"false";rawValue===void 0&&console.warn("IS_STAGING is not set (expected IS_STAGING as a Supabase secret, or VITE_IS_STAGING in the frontend env) â defaulting to production (false).");const IS_STAGING=rawValue==="true";let PRO_MONTHLY_PRICE_ID,PRO_ANNUAL_PRICE_ID,PRO_TEAM_MONTHLY_PRICE_ID,PRO_TEAM_ANNUAL_PRICE_ID;IS_STAGING?(PRO_MONTHLY_PRICE_ID="price_1UEO6xBj61KiCsqRfXEWvOaa",PRO_ANNUAL_PRICE_ID="price_1UEO6xBj61KiCsqRtV5hJGSD",PRO_TEAM_MONTHLY_PRICE_ID="price_1UEO5oBj61KiCsqRo2Q0BgXI",PRO_TEAM_ANNUAL_PRICE_ID="price_1UEO5oBj61KiCsqR1VwS9iG2"):(PRO_MONTHLY_PRICE_ID="price_1TnK6hPhA5TODvXAsAEGK83h",PRO_ANNUAL_PRICE_ID="price_1TnK6hPhA5TODvXAh5cCjok6",PRO_TEAM_MONTHLY_PRICE_ID="price_1TnKAnPhA5TODvXATU4xzWhD",PRO_TEAM_ANNUAL_PRICE_ID="price_1TnKAnPhA5TODvXAASNosKFK");const PAST_DUE_GRACE_DAYS=7;function isEntitledSubscriptionStatus(e,s,i){if(!e)return!1;if(e==="trialing"||e==="active")return!i||new Date(i).getTime()>Date.now();if(e==="past_due"&&s){const o=new Date(s).getTime()+PAST_DUE_GRACE_DAYS*24*60*60*1e3;return Date.now()<=o}return!1}const PRO_ENTRY_MONTHLY_PRICE=26,PRO_ENTRY_ANNUAL_PRICE=264,PRO_VOLUME_MONTHLY_PRICE=20,PRO_VOLUME_ANNUAL_PRICE=180,hasBillingEntitlement=e=>e.subscribed||isEntitledSubscriptionStatus(e.subscriptionStatus,e.subscriptionPastDueSince,e.subscriptionEnd)?e.billingPlanKey==="pro"||e.billingPlanKey==="enterprise":!1;function pickPollingInterval(e){return!e.subscribed&&e.role==="free"?POLLING_INTERVALS.FREE_USER:e.subscribed&&e.subscriptionEnd?new Date(e.subscriptionEnd).getTime()-Date.now()>24*60*6e4?POLLING_INTERVALS.ACTIVE_FAR_FROM_EXPIRY:POLLING_INTERVALS.ACTIVE_NEAR_EXPIRY:POLLING_INTERVALS.DEFAULT}function loadCache(e){try{const s=localStorage.getItem(userroleCache(e));if(!s)return null;const i=JSON.parse(s);return{role:i.role||"free",subscribed:i.subscribed||!1,subscriptionEnd:i.subscriptionEnd||null,billingPlanKey:i.billingPlanKey||null,paidSeatQuantity:i.paidSeatQuantity??null,subscriptionStatus:i.subscriptionStatus||null,subscriptionPastDueSince:i.subscriptionPastDueSince||null,priceLookupKey:i.priceLookupKey||null,billingSource:i.billingSource||null,isOfficialCreator:i.isOfficialCreator||!1,loading:!1}}catch{return null}}function saveCache(e,s){try{localStorage.setItem(userroleCache(e),JSON.stringify(s)),localStorage.setItem(userroleCacheTs(e),Date.now().toString())}catch{}}const useUserRole=()=>{const{user:e,loading:s}=useAuth(),[i,o]=reactExports.useState({role:"free",subscribed:!1,subscriptionEnd:null,billingPlanKey:null,paidSeatQuantity:null,subscriptionStatus:null,subscriptionPastDueSince:null,priceLookupKey:null,billingSource:null,isOfficialCreator:!1,loading:!0}),a=reactExports.useCallback(async it=>{var rt,lt;try{const{data:st}=await supabase.auth.getSession(),ot=(rt=st==null?void 0:st.session)==null?void 0:rt.access_token;if(!ot){o({role:"free",subscribed:!1,subscriptionEnd:null,billingPlanKey:null,paidSeatQuantity:null,subscriptionStatus:null,subscriptionPastDueSince:null,priceLookupKey:null,billingSource:null,isOfficialCreator:!1,loading:!1});return}const[{data:nt,error:at},ct]=await Promise.all([supabase.functions.invoke("check-subscription",{headers:{Authorization:`Bearer ${ot}`}}),it?supabase.from("profiles").select("is_official_creator").eq("id",it).maybeSingle():Promise.resolve({data:null,error:null})]);if(at)throw at;ct.error&&console.error("Error loading official creator status:",ct.error);const dt={role:nt.role||"free",subscribed:nt.subscribed||!1,subscriptionEnd:nt.subscription_end||null,billingPlanKey:nt.billing_plan_key||null,paidSeatQuantity:nt.paid_seat_quantity??null,subscriptionStatus:nt.subscription_status||null,subscriptionPastDueSince:nt.subscription_past_due_since||null,priceLookupKey:nt.price_lookup_key||null,billingSource:nt.billing_source||null,isOfficialCreator:!!((lt=ct.data)!=null&<.is_official_creator),loading:!1};o(dt),it&&saveCache(it,dt)}catch(st){console.error("Error checking subscription:",st),o(ot=>({...ot,loading:!1}))}},[]);reactExports.useEffect(()=>{if(!s)if(e){const it=loadCache(e.id);o(it?{...it,loading:!1}:nt=>({...nt,loading:!0}));const rt=parseInt(localStorage.getItem(userroleCacheTs(e.id))||"0",10),lt=Date.now()-rt;(!it||lt>2*6e4)&&a(e.id);const st=pickPollingInterval(it||i),ot=setInterval(()=>a(e.id),st);return()=>clearInterval(ot)}else o({role:"free",subscribed:!1,subscriptionEnd:null,billingPlanKey:null,paidSeatQuantity:null,subscriptionStatus:null,subscriptionPastDueSince:null,priceLookupKey:null,billingSource:null,isOfficialCreator:!1,loading:!1})},[e,s,a]);const c=hasBillingEntitlement(i),d=c&&i.billingPlanKey==="pro",h=c&&i.billingPlanKey==="enterprise",g=c,b=i.role==="admin",_=c,_e=i.isOfficialCreator;return{...i,hasPaidEntitlement:c,hasProPlan:d,hasEnterprisePlan:h,isPremium:g,isAdmin:b,hasPaidBilling:_,canPublishPublicly:_e,startCheckout:async(it,rt,lt,st)=>{var pt;const{data:ot}=await supabase.auth.getSession(),nt=(pt=ot==null?void 0:ot.session)==null?void 0:pt.access_token;if(!nt)return;const at={};it&&(at.priceId=it),rt&&(at.quantity=rt),lt&&(at.minSeats=lt),st&&(at.maxSeats=st);const{data:ct,error:dt}=await supabase.functions.invoke("create-checkout",{headers:{Authorization:`Bearer ${nt}`},body:at});if(dt)throw dt;ct!=null&&ct.url&&window.open(ct.url,"_blank")},openCustomerPortal:async()=>{var ot;const{data:it}=await supabase.auth.getSession(),rt=(ot=it==null?void 0:it.session)==null?void 0:ot.access_token;if(!rt)return;const{data:lt,error:st}=await supabase.functions.invoke("customer-portal",{headers:{Authorization:`Bearer ${rt}`}});if(st)throw st;lt!=null&<.url&&window.open(lt.url,"_blank")},refreshRole:a}};function useIsHydrated(){return shimExports.useSyncExternalStore(subscribe,()=>!0,()=>!1)}function subscribe(){return()=>{}}var AVATAR_NAME="Avatar",[createAvatarContext]=createContextScope(AVATAR_NAME),[AvatarProvider,useAvatarContext]=createAvatarContext(AVATAR_NAME),Avatar$1=reactExports.forwardRef((e,s)=>{const{__scopeAvatar:i,...o}=e,[a,c]=reactExports.useState("idle");return jsxRuntimeExports.jsx(AvatarProvider,{scope:i,imageLoadingStatus:a,onImageLoadingStatusChange:c,children:jsxRuntimeExports.jsx(Primitive.span,{...o,ref:s})})});Avatar$1.displayName=AVATAR_NAME;var IMAGE_NAME="AvatarImage",AvatarImage$1=reactExports.forwardRef((e,s)=>{const{__scopeAvatar:i,src:o,onLoadingStatusChange:a=()=>{},...c}=e,d=useAvatarContext(IMAGE_NAME,i),h=useImageLoadingStatus(o,c),g=useCallbackRef$1(b=>{a(b),d.onImageLoadingStatusChange(b)});return useLayoutEffect2(()=>{h!=="idle"&&g(h)},[h,g]),h==="loaded"?jsxRuntimeExports.jsx(Primitive.img,{...c,ref:s,src:o}):null});AvatarImage$1.displayName=IMAGE_NAME;var FALLBACK_NAME="AvatarFallback",AvatarFallback$1=reactExports.forwardRef((e,s)=>{const{__scopeAvatar:i,delayMs:o,...a}=e,c=useAvatarContext(FALLBACK_NAME,i),[d,h]=reactExports.useState(o===void 0);return reactExports.useEffect(()=>{if(o!==void 0){const g=window.setTimeout(()=>h(!0),o);return()=>window.clearTimeout(g)}}
500,[o]),d&&c.imageLoadingStatus!=="loaded"?jsxRuntimeExports.jsx(Primitive.span,{...a,ref:s}):null});AvatarFallback$1.displayName=FALLBACK_NAME;function resolveLoadingStatus(e,s){return e?s?(e.src!==s&&(e.src=s),e.complete&&e.naturalWidth>0?"loaded":"loading"):"error":"idle"}function useImageLoadingStatus(e,{referrerPolicy:s,crossOrigin:i}){const o=useIsHydrated(),a=reactExports.useRef(null),c=o?(a.current||(a.current=new window.Image),a.current):null,[d,h]=reactExports.useState(()=>resolveLoadingStatus(c,e));return useLayoutEffect2(()=>{h(resolveLoadingStatus(c,e))},[c,e]),useLayoutEffect2(()=>{const g=_e=>()=>{h(_e)};if(!c)return;const b=g("loaded"),_=g("error");return c.addEventListener("load",b),c.addEventListener("error",_),s&&(c.referrerPolicy=s),typeof i=="string"&&(c.crossOrigin=i),()=>{c.removeEventListener("load",b),c.removeEventListener("error",_)}},[c,i,s]),d}var Root$2=Avatar$1,Image$1=AvatarImage$1,Fallback=AvatarFallback$1;const Avatar=reactExports.forwardRef(({className:e,...s},i)=>jsxRuntimeExports.jsx(Root$2,{ref:i,className:cn("relative flex h-10 w-10 shrink-0 overflow-hidden rounded-full",e),...s}));Avatar.displayName=Root$2.displayName;const AvatarImage=reactExports.forwardRef(({className:e,...s},i)=>jsxRuntimeExports.jsx(Image$1,{ref:i,className:cn("aspect-square h-full w-full",e),...s}));AvatarImage.displayName=Image$1.displayName;const AvatarFallback=reactExports.forwardRef(({className:e,...s},i)=>jsxRuntimeExports.jsx(Fallback,{ref:i,className:cn("flex h-full w-full items-center justify-center rounded-full bg-muted",e),...s}));AvatarFallback.displayName=Fallback.displayName;const useFolders=()=>{const{user:e}=useAuth(),[s,i]=reactExports.useState([]),[o,a]=reactExports.useState(!1),c=reactExports.useCallback(async()=>{if(!e)return;a(!0);const{data:et,error:it}=await supabase.from("folders").select("*").eq("user_id",e.id).order("created_at",{ascending:!0});it?console.error("Error fetching folders:",it):i(et||[]),a(!1)},[e]);reactExports.useEffect(()=>{c()},[c]);const d=async(et,it)=>{if(!e)return null;const{data:rt,error:lt}=await supabase.from("folders").insert({name:et,user_id:e.id,type:it}).select().single();if(lt)return console.error("Error creating folder:",lt),ue.error("Failed to create folder"),null;const st=rt;return i(ot=>[...ot,st]),st},h=async(et,it)=>{const{error:rt}=await supabase.from("folders").update({name:it}).eq("id",et);if(rt){ue.error("Failed to rename folder");return}i(lt=>lt.map(st=>st.id===et?{...st,name:it}:st))},g=async et=>{await supabase.from("tutorial_folders").delete().eq("folder_id",et);const{error:it}=await supabase.from("folders").delete().eq("id",et);if(it){ue.error("Failed to delete folder");return}i(rt=>rt.filter(lt=>lt.id!==et)),ue.success("Folder deleted")},b=async(et,it)=>{if(!e)return;const rt=it.map(st=>({folder_id:et,tutorial_id:st})),{error:lt}=await supabase.from("tutorial_folders").insert(rt);if(lt){console.error("Error adding tutorials to folder:",lt),ue.error("Failed to add tutorials to folder");return}ue.success(`Added ${it.length} tutorial(s) to folder`)},_=async(et,it)=>{const{error:rt}=await supabase.from("tutorial_folders").delete().eq("folder_id",et).eq("tutorial_id",it);rt&&ue.error("Failed to remove tutorial from folder")},_e=s.filter(et=>et.type==="public"),$=s.filter(et=>et.type==="private");return{folders:s,publicFolders:_e,privateFolders:$,loading:o,fetchFolders:c,createFolder:d,renameFolder:h,deleteFolder:g,addTutorialsToFolder:b,removeTutorialFromFolder:_}};function loadWsCache(e){try{const s=localStorage.getItem(workspaceCache(e));return s?JSON.parse(s):null}catch{return null}}function saveWsCache(e,s){try{localStorage.setItem(workspaceCache(e),JSON.stringify(s))}catch{}}const useWorkspace=()=>{var Rt;const{user:e}=useAuth(),[s,i]=reactExports.useState(()=>{var Tt;return e?((Tt=loadWsCache(e.id))==null?void 0:Tt.allWorkspaces)??[]:[]}),[o,a]=reactExports.useState(()=>localStorage.getItem(WORKSPACE_STORAGE_KEY)),[c,d]=reactExports.useState(()=>{var Tt;return e?((Tt=loadWsCache(e.id))==null?void 0:Tt.myRole)??null:null}),[h,g]=reactExports.useState(()=>{var Tt;return e?((Tt=loadWsCache(e.id))==null?void 0:Tt.members)??[]:[]}),[b,_]=reactExports.useState(()=>{var Tt;return e?((Tt=loadWsCache(e.id))==null?void 0:Tt.invites)??[]:[]}),[_e,$]=reactExports.useState(()=>!(e&&loadWsCache(e.id))),et=reactExports.useCallback(async(Tt,It,Lt)=>{const{data:$t,error:Bt}=await supabase.from("workspace_members").select("*").eq("workspace_id",Tt);Bt&&console.error("[useWorkspace] fetchWorkspaceDetails members error:",Bt);const Ut=$t??[],Ht=Ut.map(Vt=>
500Vt.user_id).filter(Boolean);let qt={};if(Ht.length>0){const{data:Vt}=await supabase.from("profiles").select("id, username, avatar_url, first_name, last_name").in("id",Ht);for(const er of Vt??[])qt[er.id]=er}const Kt=Ut.map(Vt=>({...Vt,profiles:qt[Vt.user_id]??null}));g(Kt);const Jt=It!==void 0?It:c;let zt=[];if(Jt==="workspace_admin"){const{data:Vt}=await supabase.from("workspace_invites").select("*").eq("workspace_id",Tt).eq("status","pending");zt=Vt??[],_(zt)}else _([]);if($(!1),Lt){const Vt=loadWsCache(Lt);Vt&&saveWsCache(Lt,{...Vt,members:Kt,invites:zt})}},[c]),it=reactExports.useCallback(async()=>{if(!e){i([]),a(null),d(null),g([]),_([]),$(!1);return}$(!0);const{data:Tt,error:It}=await supabase.from("workspace_members").select("id, workspace_id, role, status, workspaces(*)").eq("user_id",e.id).eq("status","active");if(It){console.error("[useWorkspace] fetch memberships error:",It),$(!1);return}const Lt=(Tt??[]).filter(Jt=>Jt.workspaces).map(Jt=>({workspace:Jt.workspaces,role:Jt.role,membershipId:Jt.id}));i(Lt);const $t=localStorage.getItem(WORKSPACE_STORAGE_KEY),Bt=Lt.find(Jt=>Jt.workspace.id===$t),Ut=Lt.find(Jt=>!Jt.workspace.is_personal),Ht=Lt[0],qt=Bt??Ut??Ht??null,Kt=(qt==null?void 0:qt.workspace.id)??null;a(Kt),d((qt==null?void 0:qt.role)??null),Kt?($t!==Kt&&localStorage.setItem(WORKSPACE_STORAGE_KEY,Kt),await et(Kt,(qt==null?void 0:qt.role)??null,e.i
500d)):(g([]),_([]),$(!1)),e&&saveWsCache(e.id,{allWorkspaces:Lt,activeWorkspaceId:Kt,myRole:(qt==null?void 0:qt.role)??null,members:[],invites:[]})},[e]);reactExports.useEffect(()=>{it()},[it]),reactExports.useEffect(()=>{if(!e)return;const Tt=loadWsCache(e.id);Tt&&(i(It=>It.length===0?Tt.allWorkspaces:It),d(It=>It??Tt.myRole),g(It=>It.length===0?Tt.members:It),_(It=>It.length===0?Tt.invites:It),Tt.activeWorkspaceId&&a(It=>It??Tt.activeWorkspaceId),$(!1))},[e==null?void 0:e.id]),reactExports.useEffect(()=>{const Tt=new BroadcastChannel("sq_workspace_sync"),It=()=>it();Tt.addEventListener("message",It);const Lt=$t=>{$t.key===WORKSPACE_STORAGE_KEY&&it()};return window.addEventListener("storage",Lt),()=>{Tt.removeEventListener("message",It),Tt.close(),window.removeEventListener("storage",Lt)}},[it]);const rt=reactExports.useCallback(async Tt=>{localStorage.setItem(WORKSPACE_STORAGE_KEY,Tt),a(Tt);const It=s.find(Bt=>Bt.workspace.id===Tt),Lt=(It==null?void 0:It.role)??null;d(Lt),g([]),_([]),await et(Tt,Lt,e==null?void 0:e.id);const $t=new BroadcastChannel("sq_workspace_sync");$t.postMessage("changed"),$t.close()},[s,et]),lt=((Rt=s.find(Tt=>Tt.workspace.id===o))==null?void 0:Rt.workspace)??null,st=s.length>0,ot=c==="workspace_admin",nt=c==="creator",at=c==="viewer",ct=ot||nt,dt=(lt==null?void 0:lt.is_personal)??!1,pt=s.some(Tt=>Tt.workspace.owner_id===(e==null?void 0:e.id)&&!Tt.workspace.is_personal),mt=s.filter(Tt=>Tt.role==="workspace_admin"||Tt.role==="creator");return{allWorkspaces:s,activeWorkspaceId:o,setActiveWorkspaceId:rt,workspace:lt,myRole:c,members:h,invites:b,loading:_e,hasWorkspace:st,isAdmin:ot,isCreator:nt,isViewer:at,canPublishToTeam:ct,isPersonalWorkspace:dt,ownsTeamWorkspace:pt,publishableTeams:mt,createWorkspace:async(Tt,It=!1)=>{if(!e)return null;let Lt=Tt;if(!Lt){const{data:Kt}=await supabase.from("profiles").select("first_name, last_name, username").eq("id",e.id).single(),Jt=(Kt==null?void 0:Kt.first_name)??"",zt=(Kt==null?void 0:Kt.last_name)??"",Vt=[Jt,zt].filter(Boolean).join(" ");Lt=Vt?`${Vt}'s Team`:`${(Kt==null?void 0:Kt.username)??"My"}'s Team`}const{data:$t,error:Bt}=await supabase.from("workspaces").insert({name:Lt,owner_id:e.id,is_personal:It}).select().single();let Ut=$t;if(Bt||!$t){if(It&&(Bt==null?void 0:Bt.code)==="23505"){const{data:Kt}=await supabase.from("workspaces").select("*").eq("owner_id",e.id).eq("is_personal",!0).single();if(Kt)return await it(),Kt}return(Bt==null?void 0:Bt.code)==="42501"?ue.error(pt?"You already have a team workspace â Pro accounts can own one team workspace at a time.":"Creating a team workspace requires an active Pro subscription."):ue.error("Failed to create workspace"),console.error("[useWorkspace] createWorkspace error:",Bt),null}const{error:Ht}=await supabase.from("workspace_members").insert({workspace_id:Ut.id,user_id:e.id,role:"workspace_admin",seat_type:"full",status:"active",joined_at:new Date().toISOString()});if(Ht)return console.error("[useWorkspace] member insert error:",Ht),ue.error("Workspace created but failed to add you as member â please refresh"),null;ue.success(It?"Personal workspace ready!":`"${Lt}" team created!`),await it();const qt=new BroadcastChannel("sq_workspace_sync");return qt.postMessage("changed"),qt.close(),It&&(localStorage.setItem(WORKSPACE_STORAGE_KEY,Ut.id),a(Ut.id)),Ut},renameWorkspace:async(Tt,It)=>{const Lt=s.find(Bt=>Bt.workspace.id===Tt);if(!Lt||Lt.role!=="workspace_admin")return;const{error:$t}=await supabase.from("workspaces").update({name:It}).eq("id",Tt);if($t){ue.error("Failed to rename workspace");return}i(Bt=>Bt.map(Ut=>Ut.workspace.id===Tt?{...Ut,workspace:{...Ut.workspace,name:It}}:Ut)),ue.success("Workspace renamed")},updateTileColor:async(Tt,It)=>{const Lt=s.find(Bt=>Bt.workspace.id===Tt);if(!Lt||Lt.role!=="workspace_admin")return;const{error:$t}=await supabase.from("workspaces").update({tile_color:It}).eq("id",Tt);if($t){ue.error("Failed to update tile colour");return}i(Bt=>Bt.map(Ut=>Ut.workspace.id===Tt?{...Ut,workspace:{...Ut.workspace,tile_color:It}}:Ut)),ue.success("Tile colour updated")}
500,updateWorkspaceBranding:async(Tt,It)=>{const Lt=s.find(Ht=>Ht.workspace.id===Tt);if(!Lt||Lt.role!=="workspace_admin")return null;const{data:$t,error:Bt}=await supabase.from("workspaces").update(It).eq("id",Tt).select("*").single();if(Bt||!$t)return ue.error("Failed to update workspace branding"),null;const Ut=$t;if(i(Ht=>Ht.map(qt=>qt.workspace.id===Tt?{...qt,workspace:{...qt.workspace,...Ut}}:qt)),e){const Ht=loadWsCache(e.id);Ht&&saveWsCache(e.id,{...Ht,allWorkspaces:Ht.allWorkspaces.map(qt=>qt.workspace.id===Tt?{...qt,workspace:{...qt.workspace,...Ut}}:qt)})}return Ut},updateMemberRole:async(Tt,It)=>{if(!ot)return;const Lt=It==="viewer"?"viewer":"full",{error:$t}=await supabase.from("workspace_members").update({role:It,seat_type:Lt}).eq("id",Tt);if($t){ue.error("Failed to update member role");return}g(Bt=>Bt.map(Ut=>Ut.id===Tt?{...Ut,role:It,seat_type:Lt}:Ut)),ue.success("Member role updated")},removeMember:async Tt=>{if(!ot)return;const{error:It}=await supabase.from("workspace_members").delete().eq("id",Tt);if(It){ue.error("Failed to remove member");return}g(Lt=>Lt.filter($t=>$t.id!==Tt)),ue.success("Member removed")},leaveWorkspace:async Tt=>{if(!e)return!1;const{error:It}=await supabase.from("workspace_members").delete().eq("workspace_id",Tt).eq("user_id",e.id);return It?(ue.error("Failed to leave workspace"),!1):(await it(),ue.success("You have left the workspace"),!0)},inviteMember:async(Tt,It,Lt)=>{var Kt;const $t=s.find(Jt=>Jt.workspace.id===Tt);if(!$t||$t.role!=="workspace_admin")return{success:!1};const{data:Bt}=await supabase.auth.getSession(),Ut=(Kt=Bt==null?void 0:Bt.session)==null?void 0:Kt.access_token;if(!Ut)return{success:!1};const{data:Ht,error:qt}=await supabase.functions.invoke("invite-member",{headers:{Authorization:`Bearer ${Ut}`},body:{workspace_id:Tt,email:It,role:Lt,site_url:window.location.origin}});return qt||Ht!=null&&Ht.error?(ue.error((Ht==null?void 0:Ht.error)??"Failed to send invite"),{success:!1}):(Ht!=null&&Ht.email_sent?ue.success(`Invite email sent to ${It}`):ue.success(`Invite created for ${It} â copy the link to share it`),await et(Tt,$t.role,e==null?void 0:e.id),{success:!0,accept_url:Ht.accept_url,email_sent:Ht.email_sent??!1})},revokeInvite:async Tt=>{if(!ot)return;const{error:It}=await supabase.from("workspace_invites").delete().eq("id",Tt);if(It){ue.error("Failed to revoke invite");return}_(Lt=>Lt.filter($t=>$t.id!==Tt)),ue.success("Invite revoked")},publishTutorialToTeam:async(Tt,It)=>{var $t,Bt,Ut;const{error:Lt}=await supabase.rpc("publish_tutorial_to_workspace",{p_tutorial_id:Tt,p_workspace_id:It});if(Lt){const Ht=($t=Lt.message)!=null&&$t.includes("not a member")?"You don't have permission to publish to this team":(Bt=Lt.message)!=null&&Bt.includes("Admin")||(Ut=Lt.message)!=null&&Ut.includes("Creator")?"Only Team Admins and Creators can publish to a team":"Failed to move guide";return ue.error(Ht),!1}return ue.success(It?"Guide moved to team workspace":"Guide moved back to personal"),!0},publishWorkbookToTeam:async(Tt,It,Lt)=>{const{error:$t}=await supabase.from("workbooks").update({workspace_id:Lt}).eq("id",Tt);if($t)return ue.error("Failed to move workbook"),!1;for(const Bt of It){const{error:Ut}=await supabase.rpc("publish_tutorial_to_workspace",{p_tutorial_id:Bt,p_workspace_id:Lt});Ut&&console.warn("Could not transfer tutorial",Bt,Ut.message)}return ue.success(Lt?"Workbook and guides moved to team workspace":"Workbook and guides moved back to personal"),!0},deleteWorkspace:async Tt=>{const It=s.find($t=>$t.workspace.id===Tt);if(!It||It.role!=="workspace_admin")return ue.error("Only workspace admins can delete a workspace"),!1;const{error:Lt}=await supabase.from("workspaces").delete().eq("id",Tt);return Lt?(ue.error("Failed to delete workspace: "+Lt.message),!1):(i($t=>$t.filter(Bt=>Bt.workspace.id!==Tt)),o===Tt&&(a(null),localStorage.removeItem(WORKSPACE_STORAGE_KEY)),ue.success("Workspace deleted"),!0)},refreshWorkspace:it,refreshDetails:async()=>{o&&await et(o,c,e==null?void 0:e.id)}}},db=supabase;function useFollowing(){const{user:e}=useAuth(),[s,i]=reactExports.useState([]),[o,a]=reactExports.useState(!1),c=reactExports.useCallback(async()=>
500{if(!e)return;a(!0);const{data:b,error:_}=await db.from("follows").select("following_id, profiles!follows_following_id_fkey(id, username, avatar_url, first_name, last_name)").eq("follower_id",e.id);!_&&b&&i(b.map(_e=>_e.profiles).filter(Boolean)),a(!1)},[e]);reactExports.useEffect(()=>{c()},[c]);const d=reactExports.useCallback(b=>s.some(_=>_.id===b),[s]),h=reactExports.useCallback(async b=>{if(!e)return;const{error:_}=await db.from("follows").insert({follower_id:e.id,following_id:b});if(!_){const{data:_e}=await db.from("profiles").select("id, username, avatar_url, first_name, last_name").eq("id",b).single();_e&&i($=>[...$,_e])}},[e]),g=reactExports.useCallback(async b=>{if(!e)return;const{error:_}=await db.from("follows").delete().eq("follower_id",e.id).eq("following_id",b);_||i(_e=>_e.filter($=>$.id!==b))},[e]);return{following:s,loading:o,isFollowing:d,follow:h,unfollow:g,refetch:c}}var DirectionContext=reactExports.createContext(void 0);function useDirection(e){const s=reactExports.useContext(DirectionContext);return e||s||"ltr"}var ENTRY_FOCUS="rovingFocusGroup.onEntryFocus",EVENT_OPTIONS={bubbles:!1,cancelable:!0},GROUP_NAME$2="RovingFocusGroup",[Collection$1,useCollection$1,createCollectionScope$1]=createCollection(GROUP_NAME$2),[createRovingFocusGroupContext,createRovingFocusGroupScope]=createContextScope(GROUP_NAME$2,[createCollectionScope$1]),[RovingFocusProvider,useRovingFocusContext]=createRovingFocusGroupContext(GROUP_NAME$2),RovingFocusGroup=reactExports.forwardRef((e,s)=>jsxRuntimeExports.jsx(Collection$1.Provider,{scope:e.__scopeRovingFocusGroup,children:jsxRuntimeExports.jsx(Collection$1.Slot,{scope:e.__scopeRovingFocusGroup,children:jsxRuntimeExports.jsx(RovingFocusGroupImpl,{...e,ref:s})})}));RovingFocusGroup.displayName=GROUP_NAME$2;var RovingFocusGroupImpl=reactExports.forwardRef((e,s)=>{const{__scopeRovingFocusGroup:i,orientation:o,loop:a=!1,dir:c,currentTabStopId:d,defaultCurrentTabStopId:h,onCurrentTabStopIdChange:g,onEntryFocus:b,preventScrollOnEntryFocus:_=!1,..._e}=e,$=reactExports.useRef(null),et=useComposedRefs(s,$),it=useDirection(c),[rt,lt]=useControllableState({prop:d,defaultProp:h??null,onChange:g,caller:GROUP_NAME$2}),[st,ot]=reactExports.useState(!1),nt=useCallbackRef$1(b),at=useCollection$1(i),ct=reactExports.useRef(!1),[dt,pt]=reactExports.useState(0);return reactExports.useEffect(()=>{const mt=$.current;if(mt)return mt.addEventListener(ENTRY_FOCUS,nt),()=>mt.removeEventListener(ENTRY_FOCUS,nt)},[nt]),jsxRuntimeExports.jsx(RovingFocusProvider,{scope:i,orientation:o,dir:it,loop:a,currentTabStopId:rt,onItemFocus:reactExports.useCallback(mt=>lt(mt),[lt]),onItemShiftTab:reactExports.useCallback(()=>ot(!0),[]),onFocusableItemAdd:reactExports.useCallback(()=>pt(mt=>mt+1),[]),onFocusableItemRemove:reactExports.useCallback(()=>pt(mt=>mt-1),[]),children:jsxRuntimeExports.jsx(Primitive.div,{tabIndex:st||dt===0?-1:0,"data-orientation":o,..._e,ref:et,style:{outline:"none",...e.style},onMouseDown:composeEventHandlers(e.onMouseDown,()=>{ct.current=!0}),onFocus:composeEventHandlers(e.onFocus,mt=>{const St=!ct.current;if(mt.target===mt.currentTarget&&St&&!st){const Pt=new CustomEvent(ENTRY_FOCUS,EVENT_OPTIONS);if(mt.currentTarget.dispatchEvent(Pt),!Pt.defaultPrevented){const Mt=at().filter(ft=>ft.focusable),Ct=Mt.find(ft=>ft.active),Nt=Mt.find(ft=>ft.id===rt),At=[Ct,Nt,...Mt].filter(Boolean).map(ft=>ft.ref.current);focusFirst$1(At,_)}}ct.current=!1}),onBlur:composeEventHandlers(e.onBlur,()=>ot(!1))})})}),ITEM_NAME$2="RovingFocusGroupItem",RovingFocusGroupItem=reactExports.forwardRef((e,s)=>{const{__scopeRovingFocusGroup:i,focusable:o=!0,active:a=!1,tabStopId:c,children:d,...h}=e,g=useId(),b=c||g,_=useRovingFocusContext(ITEM_NAME$2,i),_e=_.currentTabStopId===b,$=useCollection$1(i),{onFocusableItemAdd:et,onFocusableItemRemove:it,currentTabStopId:rt}=_;return reactExports.useEffect(()=>{if(o)return et(),()=>it()},[o,et,it]),jsxRuntimeExports.jsx(Collection$1.ItemSlot,{scope:i,id:b,focusable:o,active:a,children:jsxRuntimeExports.jsx(Primitive.span,{tabIndex:_e?0:-1,"data-orientation":_.orientation,...h,ref:s,onMouseDown:composeEventHandlers(e.onMouseDown,lt=>{o?_.onItemFocus(b):lt.preventDefault()}),onFocus:composeEventHandlers(e.onFocus,()=>_.onItemFocus(b)),onKeyDown:composeEventHandlers(e.onKeyDown,lt=>{if(lt.key==="Tab"&<.shiftKey){_.onItemShiftTab();return}if(lt.target!==lt.currentTarget)return;const st=getFocusIntent(lt,_.orientation,_.dir);if(st!==void 0){if(lt.metaKey||lt.ctrlKey||lt.altKey||lt.shiftKey)return;lt.preventDefault();let nt=$().filter(at=>at.focusable).map(at=>at.ref.current);if(st==="last")nt.reverse();else if(st==="prev"||st==="next"){st==="prev"&&nt.reverse();const at=nt.indexOf(lt.currentTarget);nt=_.loop?wrapArray$1(nt,at+1):nt.slice(at+1)}setTimeout(()=>focusFirst$1(nt))}}),children:typeof d=="function"?d({isCurrentTabStop:_e,hasTabStop:rt!=null}):d})})});RovingFocusGroupItem.displayName=ITEM_NAME$2;var MAP_KEY_TO_FOCUS_INTENT={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function getDirectionAwareKey(e,s){return s!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function getFocusIntent(e,s,i){const o=getDirectionAwareKey(e.ke
500y,i);if(!(s==="vertical"&&["ArrowLeft","ArrowRight"].includes(o))&&!(s==="horizontal"&&["ArrowUp","ArrowDown"].includes(o)))return MAP_KEY_TO_FOCUS_INTENT[o]}function focusFirst$1(e,s=!1){const i=document.activeElement;for(const o of e)if(o===i||(o.focus({preventScroll:s}),document.activeElement!==i))return}function wrapArray$1(e,s){return e.map((i,o)=>e[(s+o)%e.length])}var Root$1=RovingFocusGroup,Item=RovingFocusGroupItem,SELECTION_KEYS=["Enter"," "],FIRST_KEYS=["ArrowDown","PageUp","Home"],LAST_KEYS=["ArrowUp","PageDown","End"],FIRST_LAST_KEYS=[...FIRST_KEYS,...LAST_KEYS],SUB_OPEN_KEYS={ltr:[...SELECTION_KEYS,"ArrowRight"],rtl:[...SELECTION_KEYS,"ArrowLeft"]},SUB_CLOSE_KEYS={ltr:["ArrowLeft"],rtl:["ArrowRight"]},MENU_NAME="Menu",[Collection,useCollection,createCollectionScope]=createCollection(MENU_NAME),[createMenuContext,createMenuScope]=createContextScope(MENU_NAME,[createCollectionScope,createPopperScope,createRovingFocusGroupScope]),usePopperScope$1=createPopperScope(),useRovingFocusGroupScope=createRovingFocusGroupScope(),[MenuProvider,useMenuContext]=createMenuContext(MENU_NAME),[MenuRootProvider,useMenuRootContext]=createMenuContext(MENU_NAME),Menu=e=>{const{__scopeMenu:s,open:i=!1,children:o,dir:a,onOpenChange:c,modal:d=!0}=e,h=usePopperScope$1(s),[g,b]=reactExports.useState(null),_=reactExports.useRef(!1),_e=useCallbackRef$1(c),$=useDirection(a);return reactExports.useEffect(()=>{const et=()=>{_.current=!0,document.addEventListener("pointerdown",it,{capture:!0,once:!0}),document.addEventListener("pointermove",it,{capture:!0,once:!0})},it=()=>_.current=!1;return document.addEventListener("keydown",et,{capture:!0}),()=>{document.removeEventListener("keydown",et,{capture:!0}),document.removeEventListener("pointerdown",it,{capture:!0}),document.removeEventListener("pointermove",it,{capture:!0})}},[]),jsxRuntimeExports.jsx(Root2$2,{...h,children:jsxRuntimeExports.jsx(MenuProvider,{scope:s,open:i,onOpenChange:_e,content:g,onContentChange:b,children:jsxRuntimeExports.jsx(MenuRootProvider,{scope:s,onClose:reactExports.useCallback(()=>_e(!1),[_e]),isUsingKeyboardRef:_,dir:$,modal:d,children:o})})})};Menu.displayName=MENU_NAME;var ANCHOR_NAME$1="MenuAnchor",MenuAnchor=reactExports.forwardRef((e,s)=>{const{__scopeMenu:i,...o}=e,a=usePopperScope$1(i);return jsxRuntimeExports.jsx(Anchor,{...a,...o,ref:s})});MenuAnchor.displayName=ANCHOR_NAME$1;var PORTAL_NAME$2="MenuPortal",[PortalProvider$1,usePortalContext$1]=createMenuContext(PORTAL_NAME$2,{forceMount:void 0}),MenuPortal=e=>{const{__scopeMenu:s,forceMount:i,children:o,container:a}=e,c=useMenuContext(PORTAL_NAME$2,s);return jsxRuntimeExports.jsx(PortalProvider$1,{scope:s,forceMount:i,children:jsxRuntimeExports.jsx(Presence,{present:i||c.open,children:jsxRuntimeExports.jsx(Portal$3,{asChild:!0,container:a,children:o})})})};MenuPortal.displayName=PORTAL_NAME$2;var CONTENT_NAME$2="MenuContent",[MenuContentProvider,useMenuContentContext]=createMenuContext(CONTENT_NAME$2),MenuContent=reactExports.forwardRef((e,s)=>{const i=usePortalContext$1(CONTENT_NAME$2,e.__scopeMenu),{forceMount:o=i.forceMount,...a}=e,c=useMenuContext(CONTENT_NAME$2,e.__scopeMenu),d=useMenuRootContext(CONTENT_NAME$2,e.__scopeMenu);return jsxRuntimeExports.jsx(Collection.Provider,{scope:e.__scopeMenu,children:jsxRuntimeExports.jsx(Presence,{present:o||c.open,children:jsxRuntimeExports.jsx(Collection.Slot,{scope:e.__scopeMenu,children:d.modal?jsxRuntimeExports.jsx(MenuRootContentModal,{...a,ref:s}):jsxRuntimeExports.jsx(MenuRootContentNonModal,{...a,ref:s})})})})}),MenuRootContentModal=reactExports.forwardRef((e,s)=>
500{const i=useMenuContext(CONTENT_NAME$2,e.__scopeMenu),o=reactExports.useRef(null),a=useComposedRefs(s,o);return reactExports.useEffect(()=>{const c=o.current;if(c)return hideOthers(c)},[]),jsxRuntimeExports.jsx(MenuContentImpl,{...e,ref:a,trapFocus:i.open,disableOutsidePointerEvents:i.open,disableOutsideScroll:!0,onFocusOutside:composeEventHandlers(e.onFocusOutside,c=>c.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>i.onOpenChange(!1)})}),MenuRootContentNonModal=reactExports.forwardRef((e,s)=>{const i=useMenuContext(CONTENT_NAME$2,e.__scopeMenu);return jsxRuntimeExports.jsx(MenuContentImpl,{...e,ref:s,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>i.onOpenChange(!1)})}),Slot$1=createSlot("MenuContent.ScrollLock"),MenuContentImpl=reactExports.forwardRef((e,s)=>{const{__scopeMenu:i,loop:o=!1,trapFocus:a,onOpenAutoFocus:c,onCloseAutoFocus:d,disableOutsidePointerEvents:h,onEntryFocus:g,onEscapeKeyDown:b,onPointerDownOutside:_,onFocusOutside:_e,onInteractOutside:$,onDismiss:et,disableOutsideScroll:it,...rt}=e,lt=useMenuContext(CONTENT_NAME$2,i),st=useMenuRootContext(CONTENT_NAME$2,i),ot=usePopperScope$1(i),nt=useRovingFocusGroupScope(i),at=useCollection(i),[ct,dt]=reactExports.useState(null),pt=reactExports.useRef(null),mt=useComposedRefs(s,pt,lt.onContentChange),St=reactExports.useRef(0),Pt=reactExports.useRef(""),Mt=reactExports.useRef(0),Ct=reactExports.useRef(null),Nt=reactExports.useRef("right"),kt=reactExports.useRef(0),At=it?ReactRemoveScroll:reactExports.Fragment,ft=it?{as:Slot$1,allowPinchZoom:!0}:void 0,Et=ht=>{var Bt,Ut;const gt=Pt.current+ht,xt=at().filter(Ht=>!Ht.disabled),Rt=document.activeElement,Tt=(Bt=xt.find(Ht=>Ht.ref.current===Rt))==null?void 0:Bt.textValue,It=xt.map(Ht=>Ht.textValue),Lt=getNextMatch(It,gt,Tt),$t=(Ut=xt.find(Ht=>Ht.textValue===Lt))==null?void 0:Ut.ref.current;(function Ht(qt){Pt.current=qt,window.clearTimeout(St.current),qt!==""&&(St.current=window.setTimeout(()=>Ht(""),1e3))})(gt),$t&&setTimeout(()=>$t.focus())};reactExports.useEffect(()=>()=>window.clearTimeout(St.current),[]),useFocusGuards();const ut=reactExports.useCallback(ht=>{var xt,Rt;return Nt.current===((xt=Ct.current)==null?void 0:xt.side)&&isPointerInGraceArea(ht,(Rt=Ct.current)==null?void 0:Rt.area)},[]);return jsxRuntimeExports.jsx(MenuContentProvider,{scope:i,searchRef:Pt,onItemEnter:reactExports.useCallback(ht=>{ut(ht)&&ht.preventDefault()},[ut]),onItemLeave:reactExports.useCallback(ht=>{var gt;ut(ht)||((gt=pt.current)==null||gt.focus(),dt(null))},[ut]),onTriggerLeave:reactExports.useCallback(ht=>{ut(ht)&&ht.preventDefault()},[ut]),pointerGraceTimerRef:Mt,onPointerGraceIntentChange:reactExports.useCallback(ht=>{Ct.current=ht},[]),children:jsxRuntimeExports.jsx(At,{...ft,children:jsxRuntimeExports.jsx(FocusScope,{asChild:!0,trapped:a,onMountAutoFocus:composeEventHandlers(c,ht=>{var gt;ht.preventDefault(),(gt=pt.current)==null||gt.focus({preventScroll:!0})}),onUnmountAutoFocus:d,children:jsxRuntimeExports.jsx(DismissableLayer,{asChild:!0,disableOutsidePointerEvents:h,onEscapeKeyDown:b,onPointerDownOutside:_,onFocusOutside:_e,onInteractOutside:$,onDismiss:et,children:jsxRuntimeExports.jsx(Root$1,{asChild:!0,...nt,dir:st.dir,orientation:"vertical",loop:o,currentTabStopId:ct,onCurrentTabStopIdChange:dt,onEntryFocus:composeEventHandlers(g,ht=>{st.isUsingKeyboardRef.current||ht.preventDefault()}),preventScrollOnEntryFocus:!0,children:jsxRuntimeExports.jsx(Content$1,{role:"menu","aria-orientation":"vertical","data-state":getOpenState(lt.open),"data-radix-menu-content":"",dir:st.dir,...ot,...rt,ref:mt,style:{outline:"none",...rt.style},onKeyDown:composeEventHandlers(rt.onKeyDown,ht=>{const xt=ht.target.closest("[data-radix-menu-content]")===ht.currentTarget,Rt=ht.ctrlKey||ht.altKey||ht.metaKey,Tt=ht.key.length===1;xt&&(ht.key==="Tab"&&ht.preventDefault(),!Rt&&Tt&&Et(ht.key));const It=pt.current;if(ht.target!==It||!FIRST_LAST_KEYS.includes(ht.key))return;ht.preventDefault();const $t=at().filter(Bt=>!Bt.disabled).map(Bt=>Bt.ref.current);LAST_KEYS.includes(ht.key)&&$t.reverse(),focusFirst($t)}),onBlur:composeEventHandlers(e.onBlur,ht=>{ht.currentTarget.contains(ht.target)||(window.clearTimeout(St.current),Pt.current="")}),onPointerMove:composeEventHandlers(e.onPointerMove,whenMouse(ht=>{const gt=ht.target,xt=kt.current!==ht.clientX;if(ht.currentTarget.contains(gt)&&xt){const Rt=ht.clientX>kt.current?"right":"left";Nt.current=Rt,kt.current=ht.clientX}}))})})})})})})});MenuContent.displayName=CONTENT_NAME$2;var GROUP_NAME$1="MenuGroup",MenuGroup=reactExports.forwardRef((e,s)=>{const{__scopeMenu:i,...o}=e;return jsxRuntimeExports.jsx(Primitive.div,{role:"group",...o,ref:s})});MenuGroup.displayName=GROUP_NAME$1;var LABEL_NAME$1="MenuLabel",MenuLabel=reactExports.forwardRef((e,s)=>{const{__scopeMenu:i,...o}=e;return jsxRuntimeExports.jsx(Primitive.div,{...o,ref:s})});MenuLabel.displayName=LABEL_NAME$1;var ITEM_NAME$1="MenuItem",ITEM_SELECT="menu.itemSelect",MenuItem=reactExports.forwardRef((e,s)=>{const{disabled:i=!1,onSelect:o,...a}=e,c=reactExports.useRef(null),d=useMenuRootContext(ITEM_NAME$1,e.__scopeMenu),h=useMenuContentContext(ITEM_NAME$1,e.__scopeMenu),g=useComposedRefs(s,c),b=reactExports.useRef(!1),_=()=>{const _e=c.current;if(!i&&_e){const $=new CustomEvent(ITEM_SELECT,{bubbles:!0,cancelable:!0});_e.addEventListener(ITEM_SELECT,et=>o==null?void 0:o(et),{once:!0}),dispatchDiscreteCustomEvent(_e,$),$.defaultPrevented?b.current=!1:d.onClose()}};return jsxRuntimeExports.jsx(MenuItemImpl,{...a,ref:g,disabled:i,onClick:composeEventHandlers(e.onClick,_),onPointerDown:_e=>{var $;($=e.onPointerDown)==null||$.call(e,_e),b.current=!0},onPointerUp:composeEventHandlers(e.onPointerUp,_e=>{var $;b.current||($=_e.currentTarget)==null||$.click()}),onKeyDown:composeEventHandlers(e.onKeyDown,_e=>{const $=h.searchRef.current!=="";
500i||$&&_e.key===" "||SELECTION_KEYS.includes(_e.key)&&(_e.currentTarget.click(),_e.preventDefault())})})});MenuItem.displayName=ITEM_NAME$1;var MenuItemImpl=reactExports.forwardRef((e,s)=>{const{__scopeMenu:i,disabled:o=!1,textValue:a,...c}=e,d=useMenuContentContext(ITEM_NAME$1,i),h=useRovingFocusGroupScope(i),g=reactExports.useRef(null),b=useComposedRefs(s,g),[_,_e]=reactExports.useState(!1),[$,et]=reactExports.useState("");return reactExports.useEffect(()=>{const it=g.current;it&&et((it.textContent??"").trim())},[c.children]),jsxRuntimeExports.jsx(Collection.ItemSlot,{scope:i,disabled:o,textValue:a??$,children:jsxRuntimeExports.jsx(Item,{asChild:!0,...h,focusable:!o,children:jsxRuntimeExports.jsx(Primitive.div,{role:"menuitem","data-highlighted":_?"":void 0,"aria-disabled":o||void 0,"data-disabled":o?"":void 0,...c,ref:b,onPointerMove:composeEventHandlers(e.onPointerMove,whenMouse(it=>{o?d.onItemLeave(it):(d.onItemEnter(it),it.defaultPrevented||it.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:composeEventHandlers(e.onPointerLeave,whenMouse(it=>d.onItemLeave(it))),onFocus:composeEventHandlers(e.onFocus,()=>_e(!0)),onBlur:composeEventHandlers(e.onBlur,()=>_e(!1))})})})}),CHECKBOX_ITEM_NAME$1="MenuCheckboxItem",MenuCheckboxItem=reactExports.forwardRef((e,s)=>{const{checked:i=!1,onCheckedChange:o,...a}=e;return jsxRuntimeExports.jsx(ItemIndicatorProvider,{scope:e.__scopeMenu,checked:i,children:jsxRuntimeExports.jsx(MenuItem,{role:"menuitemcheckbox","aria-checked":isIndeterminate(i)?"mixed":i,...a,ref:s,"data-state":getCheckedState(i),onSelect:composeEventHandlers(a.onSelect,()=>o==null?void 0:o(isIndeterminate(i)?!0:!i),{checkForDefaultPrevented:!1})})})});MenuCheckboxItem.displayName=CHECKBOX_ITEM_NAME$1;var RADIO_GROUP_NAME$1="MenuRadioGroup",[RadioGroupProvider,useRadioGroupContext]=createMenuContext(RADIO_GROUP_NAME$1,{value:void 0,onValueChange:()=>{}}),MenuRadioGroup=reactExports.forwardRef((e,s)=>{const{value:i,onValueChange:o,...a}=e,c=useCallbackRef$1(o);return jsxRuntimeExports.jsx(RadioGroupProvider,{scope:e.__scopeMenu,value:i,onValueChange:c,children:jsxRuntimeExports.jsx(MenuGroup,{...a,ref:s})})});MenuRadioGroup.displayName=RADIO_GROUP_NAME$1;var RADIO_ITEM_NAME$1="MenuRadioItem",MenuRadioItem=reactExports.forwardRef((e,s)=>{const{value:i,...o}=e,a=useRadioGroupContext(RADIO_ITEM_NAME$1,e.__scopeMenu),c=i===a.value;return jsxRuntimeExports.jsx(ItemIndicatorProvider,{scope:e.__scopeMenu,checked:c,children:jsxRuntimeExports.jsx(MenuItem,{role:"menuitemradio","aria-checked":c,...o,ref:s,"data-state":getCheckedState(c),onSelect:composeEventHandlers(o.onSelect,()=>{var d;return(d=a.onValueChange)==null?void 0:d.call(a,i)},{checkForDefaultPrevented:!1})})})});MenuRadioItem.displayName=RADIO_ITEM_NAME$1;var ITEM_INDICATOR_NAME="MenuItemIndicator",[ItemIndicatorProvider,useItemIndicatorContext]=createMenuContext(ITEM_INDICATOR_NAME,{checked:!1}),MenuItemIndicator=reactExports.forwardRef((e,s)=>{const{__scopeMenu:i,forceMount:o,...a}=e,c=useItemIndicatorContext(ITEM_INDICATOR_NAME,i);return jsxRuntimeExports.jsx(Presence,{present:o||isIndeterminate(c.checked)||c.checked===!0,children:jsxRuntimeExports.jsx(Primitive.span,{...a,ref:s,"data-state":getCheckedState(c.checked)})})});MenuItemIndicator.displayName=ITEM_INDICATOR_NAME;var SEPARATOR_NAME$1="MenuSeparator",MenuSeparator=reactExports.forwardRef((e,s)=>{const{__scopeMenu:i,...o}=e;return jsxRuntimeExports.jsx(Primitive.div,{role:"separator","aria-orientation":"horizontal",...o,ref:s})});MenuSeparator.displayName=SEPARATOR_NAME$1;var ARROW_NAME$2="MenuArrow",MenuArrow=reactExports.forwardRef((e,s)=>{const{__scopeMenu:i,...o}=e,a=usePopperScope$1(i);return jsxRuntimeExports.jsx(Arrow,{...a,...o,ref:s})});MenuArrow.displayName=ARROW_NAME$2;var SUB_NAME="MenuSub",[MenuSubProvider,useMenuSubContext]=createMenuContext(SUB_NAME),SUB_TRIGGER_NAME$1="MenuSubTrigger",MenuSubTrigger=reactExports.forwardRef((e,s)=>
500{const i=useMenuContext(SUB_TRIGGER_NAME$1,e.__scopeMenu),o=useMenuRootContext(SUB_TRIGGER_NAME$1,e.__scopeMenu),a=useMenuSubContext(SUB_TRIGGER_NAME$1,e.__scopeMenu),c=useMenuContentContext(SUB_TRIGGER_NAME$1,e.__scopeMenu),d=reactExports.useRef(null),{pointerGraceTimerRef:h,onPointerGraceIntentChange:g}=c,b={__scopeMenu:e.__scopeMenu},_=reactExports.useCallback(()=>{d.current&&window.clearTimeout(d.current),d.current=null},[]);return reactExports.useEffect(()=>_,[_]),reactExports.useEffect(()=>{const _e=h.current;return()=>{window.clearTimeout(_e),g(null)}},[h,g]),jsxRuntimeExports.jsx(MenuAnchor,{asChild:!0,...b,children:jsxRuntimeExports.jsx(MenuItemImpl,{id:a.triggerId,"aria-haspopup":"menu","aria-expanded":i.open,"aria-controls":a.contentId,"data-state":getOpenState(i.open),...e,ref:composeRefs(s,a.onTriggerChange),onClick:_e=>{var $;($=e.onClick)==null||$.call(e,_e),!(e.disabled||_e.defaultPrevented)&&(_e.currentTarget.focus(),i.open||i.onOpenChange(!0))},onPointerMove:composeEventHandlers(e.onPointerMove,whenMouse(_e=>{c.onItemEnter(_e),!_e.defaultPrevented&&!e.disabled&&!i.open&&!d.current&&(c.onPointerGraceIntentChange(null),d.current=window.setTimeout(()=>{i.onOpenChange(!0),_()},100))})),onPointerLeave:composeEventHandlers(e.onPointerLeave,whenMouse(_e=>{var et,it;_();const $=(et=i.content)==null?void 0:et.getBoundingClientRect();if($){const rt=(it=i.content)==null?void 0:it.dataset.side,lt=rt==="right",st=lt?-5:5,ot=$[lt?"left":"right"],nt=$[lt?"right":"left"];c.onPointerGraceIntentChange({area:[{x:_e.clientX+st,y:_e.clientY},{x:ot,y:$.top},{x:nt,y:$.top},{x:nt,y:$.bottom},{x:ot,y:$.bottom}],side:rt}),window.clearTimeout(h.current),h.current=window.setTimeout(()=>c.onPointerGraceIntentChange(null),300)}else{if(c.onTriggerLeave(_e),_e.defaultPrevented)return;c.onPointerGraceIntentChange(null)}})),onKeyDown:composeEventHandlers(e.onKeyDown,_e=>{var et;const $=c.searchRef.current!=="";e.disabled||$&&_e.key===" "||SUB_OPEN_KEYS[o.dir].includes(_e.key)&&(i.onOpenChange(!0),(et=i.content)==null||et.focus(),_e.preventDefault())})})})});MenuSubTrigger.displayName=SUB_TRIGGER_NAME$1;var SUB_CONTENT_NAME$1="MenuSubContent",MenuSubContent=reactExports.forwardRef((e,s)=>{const i=usePortalContext$1(CONTENT_NAME$2,e.__scopeMenu),{forceMount:o=i.forceMount,...a}=e,c=useMenuContext(CONTENT_NAME$2,e.__scopeMenu),d=useMenuRootContext(CONTENT_NAME$2,e.__scopeMenu),h=useMenuSubContext(SUB_CONTENT_NAME$1,e.__scopeMenu),g=reactExports.useRef(null),b=useComposedRefs(s,g);return jsxRuntimeExports.jsx(Collection.Provider,{scope:e.__scopeMenu,children:jsxRuntimeExports.jsx(Presence,{present:o||c.open,children:jsxRuntimeExports.jsx(Collection.Slot,{scope:e.__scopeMenu,children:jsxRuntimeExports.jsx(MenuContentImpl,{id:h.contentId,"aria-labelledby":h.triggerId,...a,ref:b,align:"start",side:d.dir==="rtl"?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:_=>{var _e;d.isUsingKeyboardRef.current&&((_e=g.current)==null||_e.focus()),_.preventDefault()},onCloseAutoFocus:_=>_.preventDefault(),onFocusOutside:composeEventHandlers(e.onFocusOutside,_=>{_.target!==h.trigger&&c.onOpenChange(!1)}),onEscapeKeyDown:composeEventHandlers(e.onEscapeKeyDown,_=>{d.onClose(),_.preventDefault()}),onKeyDown:composeEventHandlers(e.onKeyDown,_=>{var et;const _e=_.currentTarget.contains(_.target),$=SUB_CLOSE_KEYS[d.dir].includes(_.key);_e&&$&&(c.onOpenChange(!1),(et=h.trigger)==null||et.focus(),_.preventDefault())})})})})})});MenuSubContent.displayName=SUB_CONTENT_NAME$1;function getOpenState(e){return e?"open":"closed"}function isIndeterminate(e){return e==="indeterminate"}function getCheckedState(e){return isIndeterminate(e)?"indeterminate":e?"checked":"unchecked"}function focusFirst(e){const s=document.activeElement;for(const i of e)if(i===s||(i.focus(),document.activeElement!==s))return}function wrapArray(e,s){return e.map((i,o)=>e[(s+o)%e.length])}function getNextMatch(e,s,i){const a=s.length>1&&Array.from(s).every(b=>b===s[0])?s[0]:s,c=i?e.indexOf(i):-1;let d=wrapArray(e,Math.max(c,0));a.length===1&&(d=d.filter(b=>b!==i));const g=d.find(b=>b.toLowerCase().startsWith(a.toLowerCase()));return g!==i?g:void 0}function isPointInPolygon(e,s){const{x:i,y:o}=e;let a=!1;for(let c=0,d=s.length-1;c<s.length;d=c++){const h=s[c],g=s[d],b=h.x,_=h.y,_e=g.x,$=g.y;_>o!=$>o&&i<(_e-b)*(o-_)/($-_)+b&&(a=!a)}return a}function isPointerInGraceArea(e,s){if(!s)return!1;const i={x:e.clientX,y:e.clientY};return isPointInPolygon(i,s)}function whenMouse(e){return s=>s.pointerType==="mouse"?e(s):void 0}var Root3=Menu,Anchor2=MenuAnchor,Portal$1=MenuPortal,Content2$2=MenuContent,Group=MenuGroup,Label=MenuLabel,Item2$1=MenuItem,CheckboxItem=MenuCheckboxItem,RadioGroup=MenuRadioGroup,RadioItem=MenuRadioItem,ItemIndicator=MenuItemIndicator,Separator=MenuSeparator,Arrow2=MenuArrow,SubTrigger=MenuSubTrigger,SubContent=MenuSubContent,DROPDOWN_MENU_NAME="DropdownMenu",[createDropdownMenuContext]=createContextScope(DROPDOWN_MENU_NAME,[createMenuScope]),useMenuScope=createMenuScope(),[DropdownMenuProvider,useDropdownMenuContext]=createDropdownMenuContext(DROPDOWN_MENU_NAME),DropdownMenu$1=e=>{const{__scopeDropdownMenu:s,children:i,dir:o,open:a,defaultOpen:c,onOpenChange:d,modal:h=!0}=e,g=useMenuScope(s),b=reactExports.useRef(null),[_,_e]=useControllableState({prop:a,defaultProp:c??!1,onChange:d,caller:DROPDOWN_MENU_NAME});return jsxRuntimeExports.jsx(DropdownMenuProvider,{scope:s,triggerId:useId(),triggerRef:b,contentId:u
500seId(),open:_,onOpenChange:_e,onOpenToggle:reactExports.useCallback(()=>_e($=>!$),[_e]),modal:h,children:jsxRuntimeExports.jsx(Root3,{...g,open:_,onOpenChange:_e,dir:o,modal:h,children:i})})};DropdownMenu$1.displayName=DROPDOWN_MENU_NAME;var TRIGGER_NAME$1="DropdownMenuTrigger",DropdownMenuTrigger$1=reactExports.forwardRef((e,s)=>{const{__scopeDropdownMenu:i,disabled:o=!1,...a}=e,c=useDropdownMenuContext(TRIGGER_NAME$1,i),d=useMenuScope(i);return jsxRuntimeExports.jsx(Anchor2,{asChild:!0,...d,children:jsxRuntimeExports.jsx(Primitive.button,{type:"button",id:c.triggerId,"aria-haspopup":"menu","aria-expanded":c.open,"aria-controls":c.open?c.contentId:void 0,"data-state":c.open?"open":"closed","data-disabled":o?"":void 0,disabled:o,...a,ref:composeRefs(s,c.triggerRef),onPointerDown:composeEventHandlers(e.onPointerDown,h=>{!o&&h.button===0&&h.ctrlKey===!1&&(c.onOpenToggle(),c.open||h.preventDefault())}),onKeyDown:composeEventHandlers(e.onKeyDown,h=>{o||(["Enter"," "].includes(h.key)&&c.onOpenToggle(),h.key==="ArrowDown"&&c.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(h.key)&&h.preventDefault())})})})});DropdownMenuTrigger$1.displayName=TRIGGER_NAME$1;var PORTAL_NAME$1="DropdownMenuPortal",DropdownMenuPortal=e=>{const{__scopeDropdownMenu:s,...i}=e,o=useMenuScope(s);return jsxRuntimeExports.jsx(Portal$1,{...o,...i})};DropdownMenuPortal.displayName=PORTAL_NAME$1;var CONTENT_NAME$1="DropdownMenuContent",DropdownMenuContent$1=reactExports.forwardRef((e,s)=>{const{__scopeDropdownMenu:i,...o}=e,a=useDropdownMenuContext(CONTENT_NAME$1,i),c=useMenuScope(i),d=reactExports.useRef(!1);return jsxRuntimeExports.jsx(Content2$2,{id:a.contentId,"aria-labelledby":a.triggerId,...c,...o,ref:s,onCloseAutoFocus:composeEventHandlers(e.onCloseAutoFocus,h=>{var g;d.current||(g=a.triggerRef.current)==null||g.focus(),d.current=!1,h.preventDefault()}),onInteractOutside:composeEventHandlers(e.onInteractOutside,h=>{const g=h.detail.originalEvent,b=g.button===0&&g.ctrlKey===!0,_=g.button===2||b;(!a.modal||_)&&(d.current=!0)}),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});DropdownMenuContent$1.displayName=CONTENT_NAME$1;var GROUP_NAME="DropdownMenuGroup",DropdownMenuGroup=reactExports.forwardRef((e,s)=>{const{__scopeDropdownMenu:i,...o}=e,a=useMenuScope(i);return jsxRuntimeExports.jsx(Group,{...a,...o,ref:s})});DropdownMenuGroup.displayName=GROUP_NAME;var LABEL_NAME="DropdownMenuLabel",DropdownMenuLabel$1=reactExports.forwardRef((e,s)=>{const{__scopeDropdownMenu:i,...o}=e,a=useMenuScope(i);return jsxRuntimeExports.jsx(Label,{...a,...o,ref:s})});DropdownMenuLabel$1.displayName=LABEL_NAME;var ITEM_NAME="DropdownMenuItem",DropdownMenuItem$1=reactExports.forwardRef((e,s)=>{const{__scopeDropdownMenu:i,...o}=e,a=useMenuScope(i);return jsxRuntimeExports.jsx(Item2$1,{...a,...o,ref:s})});DropdownMenuItem$1.displayName=ITEM_NAME;var CHECKBOX_ITEM_NAME="DropdownMenuCheckboxItem",DropdownMenuCheckboxItem$1=reactExports.forwardRef((e,s)=>{const{__scopeDropdownMenu:i,...o}=e,a=useMenuScope(i);return jsxRuntimeExports.jsx(CheckboxItem,{...a,...o,ref:s})});DropdownMenuCheckboxItem$1.displayName=CHECKBOX_ITEM_NAME;var RADIO_GROUP_NAME="DropdownMenuRadioGroup",DropdownMenuRadioGroup=reactExports.forwardRef((e,s)=>{const{__scopeDropdownMenu:i,...o}=e,a=useMenuScope(i);return jsxRuntimeExports.jsx(RadioGroup,{...a,...o,ref:s})});DropdownMenuRadioGroup.displayName=RADIO_GROUP_NAME;var RADIO_ITEM_NAME="DropdownMenuRadioItem",DropdownMenuRadioItem$1=reactExports.forwardRef((e,s)=>{const{__scopeDropdownMenu:i,...o}=e,a=useMenuScope(i);return jsxRuntimeExports.jsx(RadioItem,{...a,...o,ref:s})});DropdownMenuRadioItem$1.displayName=RADIO_ITEM_NAME;var INDICATOR_NAME="DropdownMenuItemIndicator",DropdownMenuItemIndicator=reactExports.forwardRef((e,s)=>{const{__scopeDropdownMenu:i,...o}=e,a=useMenuScope(i);return jsxRuntimeExports.jsx(ItemIndicator,{...a,...o,ref:s})});DropdownMenuItemIndicator.displayName=INDICATOR_NAME;var SEPARATOR_NAME="DropdownMenuSeparator",DropdownMenuSeparator$1=reactExports.forwardRef((e,s)=>{const{__scopeDropdownMenu:i,...o}=e,a=useMenuScope(i);return jsxRuntimeExports.jsx(Separator,{...a,...o,ref:s})});DropdownMenuSeparator$1.displayName=SEPARATOR_NAME;var ARROW_NAME$1="DropdownMenuArrow",DropdownMenuArrow=reactExports.forwardRef((e,s)=>{const{__scopeDropdownMenu:i,...o}=e,a=useMenuScope(i);return jsxRuntimeExports.jsx(Arrow2,{...a,...o,ref:s})});DropdownMenuArrow.displayName=ARROW_NAME$1;var SUB_TRIGGER_NAME="DropdownMenuSubTrigger",DropdownMenuSubTrigger$1=reactExports.forwardRef((e,s)=>{const{__scopeDropdownMenu:i,...o}=e,a=useMenuScope(i);return jsxRuntimeExports.jsx(SubTrigger,{...a,...o,ref:s})});DropdownMenuSubTrigger$1.displayName=SUB_TRIGGER_NAME;var SUB_CONTENT_NAME="DropdownMenuSubContent",DropdownMenuSubContent$1=reactExports.forwardRef((e,s)=>{const{__scopeDropdownMenu:i,...o}=e,a=useMenuScope(i);return jsxRuntimeExports.jsx(SubContent,{...a,...o,ref:s,style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});DropdownMenuSubContent$1.displayName=SUB_CONTENT_NAME;var Root2$1=DropdownMenu$1,Trigger$1=DropdownMenuTrigger$1,Portal2=DropdownMenuPortal,Content2$1=DropdownMenuContent$1,Label2=DropdownMenuLabel$1,Item2=DropdownMenuItem$1,CheckboxItem2=DropdownMenuCheckboxItem$1,RadioItem2=DropdownMenuRadioItem$1,ItemIndicator2=DropdownMenuItemIndicator,Separator2=DropdownMenuSeparator$1,SubTrigger2=DropdownMenuSubTrigger$1,SubContent2=DropdownMenuSubContent$1;const DropdownMenu=Root2$1,DropdownMenuTrigger=Trigger$1,DropdownMenuSubTrigger=reactExports.forwardRef(({className:e,inset:s,children:i,...o},a)=>jsxRuntimeExports.jsxs(SubTrigger2,{ref:a,className:cn("flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none data-[state=open]:bg-button-hover focus:bg-button-hover",s&&"pl-8",e),...o,children:[i,jsxRuntimeExports.jsx(ChevronRight,{className:"ml-auto h-4 w-4"})]}));DropdownMenuSubTrigger.displayName=SubTrigger2.displayName;const DropdownMenuSubContent=reactExports.forwardRef(({className:e,...s},i)=>jsxRuntimeExports.jsx(SubContent2,{ref:i,className:cn("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg 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-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:sli
500de-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...s}));DropdownMenuSubContent.displayName=SubContent2.displayName;const DropdownMenuContent=reactExports.forwardRef(({className:e,sideOffset:s=4,...i},o)=>jsxRuntimeExports.jsx(Portal2,{children:jsxRuntimeExports.jsx(Content2$1,{ref:o,sideOffset:s,className:cn("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md 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-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...i})}));DropdownMenuContent.displayName=Content2$1.displayName;const DropdownMenuItem=reactExports.forwardRef(({className:e,inset:s,...i},o)=>jsxRuntimeExports.jsx(Item2,{ref:o,className:cn("relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none transition-colors data-[disabled]:pointer-events-none data-[disabled]:opacity-50 focus:bg-button-hover focus:text-button-hover-foreground",s&&"pl-8",e),...i}));DropdownMenuItem.displayName=Item2.displayName;const DropdownMenuCheckboxItem=reactExports.forwardRef(({className:e,children:s,checked:i,...o},a)=>jsxRuntimeExports.jsxs(CheckboxItem2,{ref:a,className:cn("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors data-[disabled]:pointer-events-none data-[disabled]:opacity-50 focus:bg-button-hover focus:text-button-hover-foreground",e),checked:i,...o,children:[jsxRuntimeExports.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:jsxRuntimeExports.jsx(ItemIndicator2,{children:jsxRuntimeExports.jsx(Check,{className:"h-4 w-4"})})}),s]}));DropdownMenuCheckboxItem.displayName=CheckboxItem2.displayName;const DropdownMenuRadioItem=reactExports.forwardRef(({className:e,children:s,...i},o)=>jsxRuntimeExports.jsxs(RadioItem2,{ref:o,className:cn("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors data-[disabled]:pointer-events-none data-[disabled]:opacity-50 focus:bg-button-hover focus:text-button-hover-foreground",e),...i,children:[jsxRuntimeExports.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:jsxRuntimeExports.jsx(ItemIndicator2,{children:jsxRuntimeExports.jsx(Circle,{className:"h-2 w-2 fill-current"})})}),s]}));DropdownMenuRadioItem.displayName=RadioItem2.displayName;const DropdownMenuLabel=reactExports.forwardRef(({className:e,inset:s,...i},o)=>jsxRuntimeExports.jsx(Label2,{ref:o,className:cn("px-2 py-1.5 text-sm font-semibold",s&&"pl-8",e),...i}));DropdownMenuLabel.displayName=Label2.displayName;const DropdownMenuSeparator=reactExports.forwardRef(({className:e,...s},i)=>jsxRuntimeExports.jsx(Separator2,{ref:i,className:cn("-mx-1 my-1 h-px bg-muted",e),...s}));DropdownMenuSeparator.displayName=Separator2.displayName;const Dialog=Root$3,DialogTrigger=Trigger$2,DialogPortal=Portal$2,DialogOverlay=reactExports.forwardRef(({className:e,...s},i)=>jsxRuntimeExports.jsx(Overlay,{ref:i,className:cn("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...s}));DialogOverlay.displayName=Overlay.displayName;const DialogContent=reactExports.forwardRef(({className:e,children:s,...i},o)=>jsxRuntimeExports.jsxs(DialogPortal,{children:[jsxRuntimeExports.jsx(DialogOverlay,{}),jsxRuntimeExports.jsxs(Content,{ref:o,className:cn("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] 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:rou
500nded-lg",e),...i,children:[s,jsxRuntimeExports.jsxs(Close,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity data-[state=open]:bg-button-hover data-[state=open]:text-muted-foreground hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none",children:[jsxRuntimeExports.jsx(X,{className:"h-4 w-4"}),jsxRuntimeExports.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));DialogContent.displayName=Content.displayName;const DialogHeader=({className:e,...s})=>jsxRuntimeExports.jsx("div",{className:cn("flex flex-col space-y-1.5 text-center sm:text-left",e),...s});DialogHeader.displayName="DialogHeader";const DialogFooter=({className:e,...s})=>jsxRuntimeExports.jsx("div",{className:cn("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...s});DialogFooter.displayName="DialogFooter";const DialogTitle=reactExports.forwardRef(({className:e,...s},i)=>jsxRuntimeExports.jsx(Title,{ref:i,className:cn("text-lg font-semibold leading-none tracking-tight",e),...s}));DialogTitle.displayName=Title.displayName;const DialogDescription=reactExports.forwardRef(({className:e,...s},i)=>jsxRuntimeExports.jsx(Description,{ref:i,className:cn("text-sm text-muted-foreground",e),...s}));DialogDescription.displayName=Description.displayName;const WS_COLORS=["bg-violet-600","bg-blue-600","bg-emerald-600","bg-orange-600","bg-rose-600","bg-teal-600","bg-amber-600"],wsColor=(e,s)=>s??WS_COLORS[e.charCodeAt(0)%WS_COLORS.length];function AppSidebar(){var Ir,Nr;const{t:e}=useTranslation(),{state:s}=useSidebar(),i=useLocation(),o=useNavigate(),{user:a,signOut:c}=useAuth(),{isOfficialCreator:d,loading:h}=useUserRole(),{following:g}=useFollowing(),b=s==="collapsed",[_,_e]=reactExports.useState(null),[$,et]=reactExports.useState(!1),{privateFolders:it,createFolder:rt,renameFolder:lt,deleteFolder:st}=useFolders(),{allWorkspaces:ot,activeWorkspaceId:nt,setActiveWorkspaceId:at,workspace:ct,hasWorkspace:dt,isAdmin:pt,loading:mt,createWorkspace:St,ownsTeamWorkspace:Pt}=useWorkspace(),[Mt,Ct]=reactExports.useState(!1),[Nt,kt]=reactExports.useState(""),At=reactExports.useRef(null),[ft,Et]=reactExports.useState(null),[ut,ht]=reactExports.useState(""),gt=reactExports.useRef(null),[xt,Rt]=reactExports.useState(!1),[Tt,It]=reactExports.useState(""),[Lt,$t]=reactExports.useState(!1),[Bt,Ut]=reactExports.useState(0),[Ht,qt]=reactExports.useState(0),Kt=Bt+Ht;reactExports.useEffect(()=>{a&&Jt()},[a]),reactExports.useEffect(()=>{if(!a)return;(async()=>{const{data:gr}=await supabase.from("tutorials").select("extension_upload_id").eq("user_id",a.id).eq("is_published",!0).not("extension_upload_id","is",null),ar=(gr==null?void 0:gr.map(gn=>gn.extension_upload_id))||[];let xr=supabase.from("extension_uploads").select("id",{count:"exact",head:!0}).eq("user_id",a.id).eq("source","extension").in("upload_status",["in_progress","completed","pending"]);ar.length>0&&(xr=xr.not("id","in",`(${ar.join(",")})`));const{count:wr}=await xr;Ut(wr??0);let Dr=supabase.from("extension_uploads").select("id",{count:"exact",head:!0}).eq("user_id",a.id).eq("source","desktop").eq("upload_status","completed");ar.length>0&&(Dr=Dr.not("id","in",`(${ar.join(",")})`));const{count:Fr}=await Dr;qt(Fr??0)})()},[a]),reactExports.useEffect(()=>{var Gt;if(!mt&&ot.length===0&&a&&$){const gr=`sq_personal_ws_attempted_${a.id}`;if(sessionStorage.getItem(gr))return;sessionStorage.setItem(gr,"1");const ar=(_==null?void 0:_.first_name)??"",xr=(_==null?void 0:_.last_name)??"",Dr=[ar,xr].filter(
500Boolean).join(" ")||(_==null?void 0:_.username)||((Gt=a.email)==null?void 0:Gt.split("@")[0])||"My";St(`${Dr}'s Workspace`,!0)}},[mt,ot.length,a,$]),reactExports.useEffect(()=>{Mt&&At.current&&At.current.focus()},[Mt]),reactExports.useEffect(()=>{ft&>.current&>.current.focus()},[ft]);const Jt=async()=>{const{data:Gt}=await supabase.from("profiles").select("username, avatar_url, first_name, last_name").eq("id",a.id).single();_e(Gt),et(!0)},zt=(Gt,gr)=>{const[ar,xr]=Gt.split("?");return gr?i.pathname===ar&&!i.search:xr?i.pathname===ar&&i.search===`?${xr}`:i.pathname===ar},Vt=zt("/dashboard?tab=extension-uploads")||zt("/dashboard?tab=desktop-uploads"),er=new URLSearchParams(i.search).get("tab")||"extension-uploads",fr=er==="published-private"||er==="published-anyone"||er==="published"||er==="private"||er.startsWith("folder-"),mr=Vt,ir=fr,lr=zt("/dashboard?tab=following")||((Ir=new URLSearchParams(i.search).get("tab"))==null?void 0:Ir.startsWith("following-user-"))===!0,yr=lr,nr=zt("/dashboard?tab=team-guides")||zt("/dashboard?tab=team-guides-public")||zt("/dashboard?tab=team-guides-private")||zt("/dashboard?tab=team-guides-anyone"),br=nr,cr=async()=>{try{await c(),o("/"),ue.success(e("appSidebar.toasts.signOutSuccess"))}catch{ue.error(e("appSidebar.toasts.signOutError"))}},dr=async()=>{if(!Nt.trim()){Ct(!1);return}await rt(Nt.trim(),"private"),Ct(!1),kt("")},Er=async()=>{if(!ft||!ut.trim()){Et(null);return}await lt(ft,ut.trim()),Et(null)},rr=async Gt=>{confirm(e("appSidebar.confirmDeleteFolder"))&&(await st(Gt),er===`folder-${Gt}`&&o("/dashboard?tab=published-private"))},ur=async()=>{if(!Tt.trim())return;if(Pt){ue.error("You already have a team workspace â Pro accounts can own one team workspace at a time."),Rt(!1);return}$t(!0);const Gt=await St(Tt.trim(),!1);$t(!1),Rt(!1),It(""),Gt&&o(`/workspace/settings?team=${Gt.id}§ion=general`)};return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsxs(Sidebar,{collapsible:"icon",children:[jsxRuntimeExports.jsxs(SidebarContent,{className:"pt-2",children:[jsxRuntimeExports.jsxs(SidebarGroup,{className:"pb-0",children:[jsxRuntimeExports.jsx(SidebarGroupLabel,{className:"h-6 px-2 mb-0 text-[11px] font-semibold uppercase tracking-wider",children:e("appSidebar.community")}),jsxRuntimeExports.jsx(SidebarGroupContent,{children:jsxRuntimeExports.jsx(SidebarMenu,{children:jsxRuntimeExports.jsx(SidebarMenuItem,{children:jsxRuntimeExports.jsxs(SidebarMenuButton,{isActive:lr,tooltip:e("appSidebar.following"),onClick:()=>{lr||o("/dashboard?tab=following")},className:"flex items-center gap-3",children:[jsxRuntimeExports.jsx(UserCheck,{className:"h-4 w-4 shrink-0"}),jsxRuntimeExports.jsx("span",{className:cn(b?"sr-only":"flex-1"),children:e("appSidebar.following")}),!b&&jsxRuntimeExports.jsx("span",{className:"ml-auto rounded-full bg-primary/10 px-1.5 py-0.5 text-[9px] font-semibold uppercase tracking-wide text-primary",children:e("appSidebar.beta")})]})})})})]}),jsxRuntimeExports.jsx("div",{className:"mx-3 my-2 border-t border-border"}),jsxRuntimeExports.jsx(SidebarGroup,{className:"pb-0",children:jsxRuntimeExports.jsx(SidebarGroupContent,{children:jsxRuntimeExports.jsx(SidebarMenu,{children:jsxRuntimeExports.jsx(SidebarMenuItem,{children:jsxRuntimeExports.jsx(SidebarMenuButton,{asChild:!0,isActive:zt("/",!0),tooltip:e("appSidebar.home"),children:jsxRuntimeExports.jsxs(NavLink,{to:"/",end:!0,className:"flex items-center gap-3",activeClassName:"bg-sidebar-accent text-sidebar-accent-foreground",children:[jsxRuntimeExports.jsx(House,{className:"h-4 w-4 shrink-0"}),jsxRuntimeExports.jsx("span",{className:b?"sr-only":"",children:e("appSidebar.home")})]})})})})})}),jsxRuntimeExports.jsx("div",{className:"mx-3 my-2 border-t border-border"}),jsxRuntimeExports.jsxs(SidebarGroup,{className:"pb-0",children:[jsxRuntimeExports.jsx(SidebarGroupLabel,{className:"h-6 px-2 mb-0 text-[11px] font-semibold uppercase tracking-wider",children:e("appSidebar.myGuides")}),jsxRuntimeExports.jsx(SidebarGroupContent,{children:jsxRuntimeExports.jsxs(SidebarMenu,{children:[jsxRuntimeExports.jsx(SidebarMenuItem,{children:jsxRuntimeExports.jsxs(SidebarMenuButton,{isActive:Vt,tooltip:e("appSidebar.drafts"),onClick:()=>{Vt||o("/dashboard?tab=extension-uploads")},className:"flex items-center gap-3",children:[jsxRuntimeExports.jsx(FileText,{className:"h-4 w-4 shrink-0"}),jsxRuntimeExports.jsx("span",{className:cn(b?"sr-only":"flex-1"),children:e("appSidebar.drafts")}),!b&&Kt>0&&jsxRuntimeExports.jsx("span",{className:"ml-auto text-xs tabular-nums text-muted-foreground",children:Kt})]})}),d?jsxRuntimeExports.jsx(SidebarMenuItem,{children:jsxRuntimeExports.jsxs(SidebarMenuButton,{isActive:ir,tooltip:e("appSidebar.published"),onClick:()=>{ir||o("/dashboard?tab=published")},className:"flex items-center gap-3",children:[jsxRuntimeExports.jsx(Globe,{className:"h-4 w-4 shrink-0"}),jsxRuntimeExports.jsx("span",{className:cn(b?"sr-only":"flex-1"),children:e("appSidebar.published")})]})}):jsxRuntimeExports.jsx(SidebarMenuItem,{children:jsxRuntimeExports.jsxs(SidebarMenuButton,{isActive:ir,tooltip:e("appSidebar.published"),onClick:()=>{ir||o("/dashboard?tab=published-private")},className:"flex items-center gap-3",children:[jsxRuntimeExports.jsx(Globe,{className:"h-4 w-4 shrink-0"}),jsxRuntimeExports.jsx("span",{className:cn(b?"sr-only":"flex-1"),children:e("appSidebar.published")})]})}),jsxRuntimeExports.jsx(SidebarMenuItem,{children:jsxRuntimeExports.jsx(SidebarMenuButton,{asChild:!0,isActive:zt("/dashboard?tab=shared"),tooltip:e("appSidebar.sharedWithMe"),children:jsxRuntimeExports.jsxs(NavLink,{to:"/dashboard?tab=shared",className:"flex items-center gap-3",activeClassName:"bg-sidebar-accent text-sidebar-accent-foreground",children:[jsxRuntimeExports.jsx(Users,{className:"h-4 w-4 shrink-0"}),jsxRuntimeExports.jsx("span",{className:b?"sr-only":"",children:e("appSidebar.sharedWithMe")})]})})}),jsxRuntimeExports.jsx(SidebarMenuItem,{children:jsxRuntimeExports.jsx(SidebarMenuButton,{asChild:!0,isActive:zt("/dashboard?tab=favorites"),tooltip:e("appSidebar.saved"),children:jsxRuntimeExports.jsxs(NavLink,{to:"/dashboard?tab=favorites",className:"flex items-center gap-3",activeClassName:"bg-sidebar-accent text-sidebar-accent-foreground",children:[jsxRuntimeExports.jsx(Bookmark,{className:"h-4 w-4 shrink-0"}),jsxRuntimeExports.jsx("span",{className:b?"sr-only":"",children:e("appSidebar.saved")})]})})}),jsxRuntimeExports.jsx(SidebarMenuItem,{children:jsxRuntimeExports.jsx(SidebarMenuButton,{asChild:!0,isActive:zt("/dashboard?tab=trash"),tooltip:e("appSidebar.trash"),children:jsxRuntimeExports.jsxs(NavLink,{to:"/dashboard?tab=trash",className:"flex items-center gap-3",activeClassName:"bg-sidebar-accent text-sidebar-accent-foreground",children:[jsxRuntimeExports.jsx(Trash2,{className:"h-4 w-4 shrink-0"}),jsxRuntimeExports.jsx("span",{className:b?"sr-only":"",children:e("appSidebar.trash")})]})})})]})})]}),(a||h)&&jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx("div",{className:"mx-3 my-2 border-t border-border"}),jsxRuntimeExports.jsx(SidebarGroup,{children:jsxRuntimeExports.jsx(SidebarGroupContent,{children:jsxRuntimeExports.jsxs(SidebarMenu,{children:[(h||mt)&&ot.length===0?jsxRuntimeExports.jsx(SidebarMenuItem,{children:jsxRuntimeExports.jsx("div",{className:"h-8 mx-2 rounded-md bg-muted/50 animate-pulse"})}):ot.length>0&&ct?jsxRuntimeExports.jsx(SidebarMenuItem,{children:jsxRuntimeExports.jsxs(DropdownMenu,{children:[jsxRuntimeExports.jsx(DropdownMenuTrigger,{asChild:!0,children:jsxRuntimeExports.jsxs(SidebarMenuButton,{tooltip:ct.name,children:[jsxRuntimeExports.jsx("div",{className:cn("h-5 w-5 rounded shrink-0 flex items-center justify-center text-white text-[10px] font-bold",wsColor(ct.name,ct.tile_color)),children:ct.name[0].toUpperCase()}),jsxRuntimeExports.jsx("span",{className:cn("flex-1 truncate text-left font-medium",b&&"sr-only"),children:ct.name}),!b&&jsxRuntimeExports.jsx(ChevronDown,{className:"h-3.5 w-3.5 shrink-0 text-muted-foreground"})]})}),jsxRuntimeExports.jsxs(DropdownMenuContent,{side:"right",align:"start",className:"w-60",children:[jsxRuntimeExports.jsx(DropdownMenuLabel,{className:"text-xs text-muted-foreground font-normal px-2 py-1.5",children:e("appSidebar.switchWorkspace")}),ot.map(Gt=>jsxRuntimeExports.jsxs(DropdownMenuItem,{onClick:()=>at(Gt.workspace.id),className:"flex items-center gap-2",children:[jsxRuntimeExports.jsx("div",{className:cn("h-5 w-5 rounded flex items-center justify-center text-white text-[10px] font-bold shrink-0",wsColor(Gt.workspace.name,Gt.workspace.tile_color)),children:Gt.workspace.name[0].toUpperCase()}),jsxRuntimeExports.jsx("span",{className:"flex-1 truncate",children:Gt.workspace.name}),Gt.workspace.id===nt&&jsxRuntimeExports.jsx(Check,{className:"h-3.5 w-3.5 text-primary shrink-0"})]},Gt.workspace.id)),jsxRuntimeExports.jsx(DropdownMenuSeparator,{}),jsxRuntimeExports.jsxs(DropdownMenuItem,{onClick:()=>o(`/workspace/settings?team=${nt}§ion=members`),children:[jsxRuntimeExports.jsx(UserPlus,{className:"h-4 w-4 mr-2"}),e("appSidebar.inviteTeammates")]}),jsxRuntimeExports.jsxs(DropdownMenuItem,{onClick:()=>Rt(!0),children:[jsxRuntimeExports.jsx(Plus,{className:"h-4 w-4 mr-2"}),e("appSidebar.createNewTeam")]}),jsxRuntimeExports.jsxs(DropdownMenuItem,{onClick:()=>o(`/workspace/settings?team=${nt}§ion=general`),children:[jsxRuntimeExports.jsx(Settings,{className:"h-4 w-4 mr-2"}),e("appSidebar.settings")]})]})]})}):h||mt?null:jsxRuntimeExports.jsx(SidebarMenuItem,{children:jsxRuntimeExports.jsxs(SidebarMenuButton,{onClick:()=>Rt(!0),tooltip:e("appSidebar.createTeamPrompt"),children:[jsxRuntimeExports.jsx(Building2,{className:"h-4 w-4 shrink-0"}),jsxRuntimeExports.jsx("span",{className:b?"sr-only":"text-muted-foreground text-sm",children:e("appSidebar.createTeamPrompt")})]})}),dt&&ct&&jsxRuntimeExports.jsx(SidebarMenuItem,{children:jsxRuntimeExports.jsxs(SidebarMenuButton,{isActive:nr,tooltip:e("appSidebar.teamGuides"),onClick:()=>{nr||o("/dashboard?tab=team-guides-private")},className:"flex items-center gap-3",children:[jsxRuntimeExports.jsx(Share2,{className:"h-4 w-4 shrink-0"}),jsxRuntimeExports.jsx("span",{className:cn(b?"sr-only":"flex-1"),children:e("appSidebar.teamGuides")})]})}),dt&&ct&&pt&&jsxRuntimeExports.jsx(SidebarMenuItem,{children:jsxRuntimeExports.jsx(SidebarMenuButton,{asChild:!0,isActive:zt("/dashboard?tab=team-trash"),tooltip:e("appSidebar.teamTrash"),children:jsxRuntimeExports.jsxs(NavLink,{to:"/dashboard?tab=team-trash",className:"flex items-center gap-3",activeClassName:"bg-sidebar-accent text-sidebar-accent-foreground",children:[jsxRuntimeExports.jsx(Trash2,{className:"h-4 w-4 shrink-0"}),jsxRuntimeExports.jsx("span",{className:b?"sr-only":"",children:e("appSidebar.trash")})]})})})]})})})]})]}),jsxRuntimeExports.jsx(SidebarFooter,{children:jsxRuntimeExports.jsxs(SidebarMenu,{children:[jsxRuntimeExports.jsx(SidebarMenuItem,{children:jsxRuntimeExports.jsx(SidebarMenuButton,{asChild:!0,tooltip:e("appSidebar.profile"),onClick:()=>o("/profile"),children:jsxRuntimeExports.jsxs("button",{className:"flex items-center gap-3 w-full",children:[jsxRuntimeExports.jsxs(Avatar,{className:"h-6 w-6 shrink-0",children:[jsxRuntimeExports.jsx(AvatarImage,{src:(_==null?void 0:_.avatar_url)||void 0}),jsxRuntimeExports.jsx(AvatarFallback,{className:"text-xs",children:((_==null?void 0:_.username)||(a==null?void 0:a.email)||"U")[0].toUpperCase()})]}),jsxRuntimeExports.jsx("span",{className:b?"sr-only":"truncate text-sm",children:(_==null?void 0:_.username)||((Nr=a==null?void 0:a.email)==null?void 0:Nr.split("@")[0])||e("appSidebar.defaultUsername")})]})})}),jsxRuntimeExports.jsx(SidebarMenuItem,{children:jsxRuntimeExports.jsxs(SidebarMenuButton,{tooltip:e("appSidebar.logOut"),onClick:cr,children:[jsxRuntimeExports.jsx(LogOut,{className:"h-4 w-4 shrink-0"}),jsxRuntimeExports.jsx("span",{className:b?"sr-only":"",children:e("appSidebar.logOut")})]})})]})})]}),mr&&jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx("div",{className:"hidden md:block shrink-0 w-52"}),jsxRuntimeExports.jsxs("div",{className:cn("fixed inset-y-0 z-[9] hidden md:flex flex-col w-52","bg-sidebar border-r border-sidebar-border"),style:{left:b?"var(--sidebar-width-icon)":"var(--sidebar-width)"},children:[jsxRuntimeExports.jsx("div",{className:"px-4 py-3 border-b border-sidebar-border",children:jsxRuntimeExports.jsx("p",{className:"text-xs font-semibold uppercase tracking-wider text-sidebar-foreground
500/60",children:e("appSidebar.drafts")})}),jsxRuntimeExports.jsxs(NavLink,{to:"/dashboard?tab=extension-uploads",className:cn("flex items-center gap-3 px-4 py-3 text-sm border-b border-sidebar-border transition-colors",zt("/dashboard?tab=extension-uploads")?"bg-sidebar-accent text-sidebar-accent-foreground font-medium":"text-sidebar-foreground hover:bg-sidebar-accent/50 font-medium"),children:[jsxRuntimeExports.jsx(Upload,{className:"h-4 w-4 shrink-0"}),jsxRuntimeExports.jsx("span",{className:"flex-1 whitespace-nowrap",children:e("appSidebar.extensionUploads")}),Bt>0&&jsxRuntimeExports.jsx("span",{className:"ml-auto text-xs tabular-nums text-muted-foreground",children:Bt})]}),jsxRuntimeExports.jsxs(NavLink,{to:"/dashboard?tab=desktop-uploads",className:cn("flex items-center gap-3 px-4 py-3 text-sm border-b border-sidebar-border transition-colors",zt("/dashboard?tab=desktop-uploads")?"bg-sidebar-accent text-sidebar-accent-foreground font-medium":"text-sidebar-foreground hover:bg-sidebar-accent/50 font-medium"),children:[jsxRuntimeExports.jsx(Monitor,{className:"h-4 w-4 shrink-0"}),jsxRuntimeExports.jsx("span",{className:"flex-1 whitespace-nowrap",children:e("appSidebar.desktopUploads")}),Ht>0&&jsxRuntimeExports.jsx("span",{className:"ml-auto text-xs tabular-nums text-muted-foreground",children:Ht})]})]})]}),yr&&jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx("div",{className:"hidden md:block shrink-0 w-52"}),jsxRuntimeExports.jsxs("div",{className:cn("fixed inset-y-0 z-[9] hidden md:flex flex-col w-52","bg-sidebar border-r border-sidebar-border"),style:{left:b?"var(--sidebar-width-icon)":"var(--sidebar-width)"},children:[jsxRuntimeExports.jsx("div",{className:"px-4 py-3 border-b border-sidebar-border",children:jsxRuntimeExports.jsx("p",{className:"text-xs font-semibold uppercase tracking-wider text-sidebar-foreground/60",children:e("appSidebar.following")})}),g.length===0?jsxRuntimeExports.jsx("p",{className:"px-4 py-4 text-sm text-sidebar-foreground/50",children:e("appSidebar.notFollowingAnyone")}):jsxRuntimeExports.jsxs("div",{className:"overflow-y-auto flex-1",children:[jsxRuntimeExports.jsxs(NavLink,{to:"/dashboard?tab=following",className:cn("flex items-center gap-3 px-4 py-3 text-sm border-b border-sidebar-border transition-colors",zt("/dashboard?tab=following")?"bg-sidebar-accent text-sidebar-accent-foreground font-medium":"text-sidebar-foreground hover:bg-sidebar-accent/50"),children:[jsxRuntimeExports.jsx(UserCheck,{className:"h-4 w-4 shrink-0"}),jsxRuntimeExports.jsx("span",{children:e("appSidebar.all")})]}),g.map(Gt=>{var wr;const gr=`following-user-${Gt.id}`,ar=[Gt.first_name,Gt.last_name].filter(Boolean).join(" ")||Gt.username||e("appSidebar.unknownUser"),xr=new URLSearchParams(i.search).get("tab")===gr;return jsxRuntimeExports.jsxs(NavLink,{to:`/dashboard?tab=${gr}`,className:cn("flex items-center gap-2.5 px-4 py-3 text-sm border-b border-sidebar-border transition-colors",xr?"bg-sidebar-accent text-sidebar-accent-foreground font-medium":"text-sidebar-foreground hover:bg-sidebar-accent/50"),children:[jsxRuntimeExports.jsxs(Avatar,{className:"h-5 w-5 shrink-0",children:[jsxRuntimeExports.jsx(AvatarImage,{src:Gt.avatar_url||void 0}),jsxRuntimeExports.jsx(AvatarFallback,{className:"text-[10px]",children:(wr=ar[0])==null?void 0:wr.toUpperCase()})]}),jsxRuntimeExports.jsx("span",{className:"truncate",children:ar})]},Gt.id)})]})]})]}),ir&&jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx("div",{className:"hidden md:block shrink-0 w-52"}),jsxRuntimeExports.jsxs("div",{className:cn("fixed inset-y-0 z-[9] hidden md:flex flex-col w-52","bg-sidebar border-r border-sidebar-border"),style:{left:b?"var(--sidebar-width-icon)":"var(--sidebar-width)"},children:[jsxRuntimeExports.jsx("div",{className:"px-4 py-3 border-b border-sidebar-border",children:jsxRuntimeExports.jsx("p",{className:"text-xs font-semibold uppercase tracking-wider text-sidebar-foreground/60",children:e("appSidebar.published")})}),jsxRuntimeExports.jsxs("div",{className:"overflow-y-auto flex-1",children:[d&&jsxRuntimeExports.jsxs(NavLink,{to:"/dashboard?tab=published",className:cn("flex items-center gap-3 px-4 py-3 text-sm border-b border-sidebar-border transition-colors",er==="published"?"bg-sidebar-accent text-sidebar-accent-foreground font-medium":"text-sidebar-foreground hover:bg-sidebar-accent/50 font-medium"),children:[jsxRuntimeExports.jsx(Globe,{className:"h-4 w-4 shrink-0"}),jsxRuntimeExports.jsx("span",{children:e("appSidebar.public")})]}),jsxRuntimeExports.jsxs(NavLink,{to:"/dashboard?tab=published-private",className:cn("flex items-center gap-3 px-4 py-3 text-sm border-b border-sidebar-border transition-colors",er==="published-private"||er==="private"||er.startsWith("folder-")?"bg-sidebar-accent text-sidebar-accent-foreground font-medium":"text-sidebar-foreground hover:bg-sidebar-accent/50 font-medium"),children:[jsxRuntimeExports.jsx(Lock,{className:"h-4 w-4 shrink-0"}),jsxRuntimeExports.jsx("span",{className:"flex-1 whitespace-nowrap",children:e("appSidebar.private")}),jsxRuntimeExports.jsx("button",{onClick:Gt=>{Gt.preventDefault(),Gt.stopPropagation(),Ct(!0),kt("")},className:"p-1 -mr-1 hover:bg-sidebar-accent rounded",title:e("appSidebar.createFolderTooltip"),children:jsxRuntimeExports.jsx(Plus,{className:"h-3.5 w-3.5"})})]}),it.map(Gt=>{const gr=er===`folder-${Gt.id}`;return ft===Gt.id?jsxRuntimeExports.jsx("div",{className:"pl-10 pr-2 py-1 border-b border-sidebar-border",children:jsxRuntimeExports.jsx(Input,{ref:gt,value:ut,onChange:ar=>ht(ar.target.value),onKeyDown:ar=>{ar.key==="Enter"&&Er(),ar.key==="Escape"&&Et(null)},onBlur:Er,className:"h-7 text-sm"})},Gt.id):jsxRuntimeExports.jsxs("div",{className:"flex items-center group/folder border-b border-sidebar-border",children:[jsxRuntimeExports.jsxs(NavLink,{to:`/dashboard?tab=folder-${Gt.id}`,className:cn("flex items-center gap-3 flex-1 pl-10 pr-2 py-3 text-sm transition-colors",gr?"bg-sidebar-accent text-sidebar-accent-foreground font-medium":"text-sidebar-foreground hover:bg-sidebar-accent/50"),children:[jsxRuntimeExports.jsx(Folder,{className:"h-4 w-4 shrink-0"}),jsxRuntimeExports.jsx("span",{className:"truncate",children:Gt.name})]}),jsxRuntimeExports.jsxs(DropdownMenu,{children:[jsxRuntimeExports.jsx(DropdownMenuTrigger,{asChild:!0,children:jsxRuntimeExports.jsx("button",{className:"p-1 mr-2 opacity-0 group-hover/folder:opacity-100 transition-opacity hover:bg-sidebar-accent rounded",children:jsxRuntimeExports.jsx(Ellipsis,{className:"h-3.5 w-3.5"})})}),jsxRuntimeExports.jsxs(DropdownMenuContent,{side:"right",align:"start",children:[jsxRuntimeExports.jsxs(DropdownMenuItem,{onClick:()=>{Et(Gt.id),ht(Gt.name)}
500,children:[jsxRuntimeExports.jsx(Pencil,{className:"h-3.5 w-3.5 mr-2"}),e("appSidebar.rename")]}),jsxRuntimeExports.jsxs(DropdownMenuItem,{onClick:()=>rr(Gt.id),className:"text-destructive",children:[jsxRuntimeExports.jsx(Trash2,{className:"h-3.5 w-3.5 mr-2"}),e("appSidebar.delete")]})]})]})]},Gt.id)}),Mt&&jsxRuntimeExports.jsx("div",{className:"pl-10 pr-2 py-2 border-b border-sidebar-border",children:jsxRuntimeExports.jsx(Input,{ref:At,value:Nt,onChange:Gt=>kt(Gt.target.value),onKeyDown:Gt=>{Gt.key==="Enter"&&dr(),Gt.key==="Escape"&&Ct(!1)},onBlur:dr,placeholder:e("appSidebar.folderNamePlaceholder"),className:"h-7 text-sm"})}),jsxRuntimeExports.jsxs(NavLink,{to:"/dashboard?tab=published-anyone",className:cn("flex items-center gap-3 px-4 py-3 text-sm border-b border-sidebar-border transition-colors",er==="published-anyone"?"bg-sidebar-accent text-sidebar-accent-foreground font-medium":"text-sidebar-foreground hover:bg-sidebar-accent/50 font-medium"),children:[jsxRuntimeExports.jsx(Link2,{className:"h-4 w-4 shrink-0"}),jsxRuntimeExports.jsx("span",{children:e("appSidebar.anyoneWithLink")})]})]})]})]}),br&&dt&&ct&&jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx("div",{className:"hidden md:block shrink-0 w-52"}),jsxRuntimeExports.jsxs("div",{className:cn("fixed inset-y-0 z-[9] hidden md:flex flex-col w-52","bg-sidebar border-r border-sidebar-border"),style:{left:b?"var(--sidebar-width-icon)":"var(--sidebar-width)"},children:[jsxRuntimeExports.jsx("div",{className:"px-4 py-3 border-b border-sidebar-border",children:jsxRuntimeExports.jsx("p",{className:"text-xs font-semibold uppercase tracking-wider text-sidebar-foreground/60",children:e("appSidebar.teamGuides")})}),jsxRuntimeExports.jsxs(NavLink,{to:"/dashboard?tab=team-guides-private",className:cn("flex items-center gap-3 px-4 py-3 text-sm border-b border-sidebar-border transition-colors",zt("/dashboard?tab=team-guides-private")||zt("/dashboard?tab=team-guides")?"bg-sidebar-accent text-sidebar-accent-foreground font-medium":"text-sidebar-foreground hover:bg-sidebar-accent/50"),children:[jsxRuntimeExports.jsx(Lock,{className:"h-4 w-4 shrink-0"}),jsxRuntimeExports.jsx("span",{children:e("appSidebar.teamOnly")})]}),jsxRuntimeExports.jsxs(NavLink,{to:"/dashboard?tab=team-guides-anyone",className:cn("flex items-center gap-3 px-4 py-3 text-sm border-b border-sidebar-border transition-colors",zt("/dashboard?tab=team-guides-anyone")?"bg-sidebar-accent text-sidebar-accent-foreground font-medium":"text-sidebar-foreground hover:bg-sidebar-accent/50"),children:[jsxRuntimeExports.jsx(Link2,{className:"h-4 w-4 shrink-0"}),jsxRuntimeExports.jsx("span",{children:e("appSidebar.anyoneWithLink")})]}),d&&jsxRuntimeExports.jsxs(NavLink,{to:"/dashboard?tab=team-guides-public",className:cn("flex items-center gap-3 px-4 py-3 text-sm border-b border-sidebar-border transition-colors",zt("/dashboard?tab=team-guides-public")?"bg-sidebar-accent text-sidebar-accent-foreground font-medium":"text-sidebar-foreground hover:bg-sidebar-accent/50"),children:[jsxRuntimeExports.jsx(Globe,{className:"h-4 w-4 shrink-0"}),jsxRuntimeExports.jsx("span",{children:e("appSidebar.public")})]})]})]}),jsxRuntimeExports.jsx(Dialog,{open:xt,onOpenChange:Rt,children:jsxRuntimeExports.jsxs(DialogContent,{className:"sm:max-w-md",children:[jsxRuntimeExports.jsx(DialogHeader,{children:jsxRuntimeExports.jsx(DialogTitle,{children:e("appSidebar.createTeamDialog.title")})}),jsxRuntimeExports.jsx("div",{className:"py-4",children:jsxRuntimeExports.jsx(Input,{placeholder:e("appSidebar.createTeamDialog.placeholder"),value:Tt,onChange:Gt=>It(Gt.target.value),onKeyDown:Gt=>{Gt.key==="Enter"&&ur(),Gt.key==="Escape"&&Rt(!1)},autoFocus:!0})}),jsxRuntimeExports.jsxs(DialogFooter,{children:[jsxRuntimeExports.jsx(Button,{variant:"outline",onClick:()=>Rt(!1),children:e("appSidebar.createTeamDialog.cancel")}),jsxRuntimeExports.jsx(Button,{onClick:ur,disabled:Lt||!Tt.trim(),children:e(Lt?"appSidebar.createTeamDialog.creating":"appSidebar.createTeamDialog.create")})]})]})})]})}const stepilyLogo="data:image/svg+xml,%3csvg%20width='103'%20height='93'%20viewBox='0%200%20103%2093'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M2%2074.7145V82.5237C2%2084.7328%203.79086%2086.5237%206%2086.5237H57.7294C58.3381%2086.5237%2058.9388%2086.3848%2059.4857%2086.1175L98.7562%2066.9267C100.129%2066.2558%20101%2064.8611%20101%2063.3329V55.5237C101%2053.3145%2099.2091%2051.5237%2097%2051.5237H45.2706C44.6619%2051.5237%2044.0612%2051.6626%2043.5143%2051.9299L4.24376%2071.1206C2.87074%2071.7916%202%2073.1863%202%2074.7145Z'%20fill='%232FD5AF'%20stroke='black'%20stroke-width='4'/%3e%3cpath%20d='M9.3578%2042.738L43.648%2023.2218C44.2207%2022.8958%2044.9176%2022.8731%2045.5105%2023.1606L92.9014%2046.1436C94.3866%2046.8642%2094.4081%2048.9723%2092.9382%2049.7238L55.855%2068.6844C55.2875%2068.9744%2054.6153%2068.9765%2054.0459%2068.6902L9.44861%2046.2636C8.02198%2045.5462%207.96998%2043.5279%209.3578%2042.738Z'%20fill='%23F5F5F5'%20stroke='black'%20stroke-width='4'/%3e%3cpath%20d='M2%2028.7145V36.5237C2%2038.7328%203.79086%2040.5237%206%2040.5237H57.7294C58.3381%2040.5237%2058.9388%2040.3848%2059.4857%2040.1175L98.7562%2020.9267C100.129%2020.2558%20101%2018.8611%20101%2017.3329V9.52368C101%207.31454%2099.2091%205.52368%2097%205.52368H45.2706C44.6619%205.52368%2044.0612%205.6626%2043.5143%205.92985L4.24376%2025.1206C2.87074%2025.7916%202%2027.1863%202%2028.7145Z'%20fill='%232FD5AF'%20stroke='black'%20stroke-width='4'/%3e%3c/svg%3e";var POPOVER_NAME="Popover",[createPopoverContext]=createContextScope(POPOVER_NAME,[createPopperScope]),usePopperScope=createPopperScope(),[PopoverProvider,usePopoverContext]=createPopoverContext(POPOVER_NAME),Popover$1=e=>{const{__scopePopover:s,children:i,open:o,defaultOpen:a,onOpenChange:c,modal:d=!1}=e,h=usePopperScope(s),g=reactExports.useRef(null),[b,_]=reactExports.useState(!1),[_e,$]=useControllableState({prop:o,defaultProp:a??!1,onChange:c,caller:POPOVER_NAME});return jsxRuntimeExports.jsx(Root2$2,{...h,children:jsxRuntimeExports.jsx(PopoverProvider,{scope:s,contentId:u
500seId(),triggerRef:g,open:_e,onOpenChange:$,onOpenToggle:reactExports.useCallback(()=>$(et=>!et),[$]),hasCustomAnchor:b,onCustomAnchorAdd:reactExports.useCallback(()=>_(!0),[]),onCustomAnchorRemove:reactExports.useCallback(()=>_(!1),[]),modal:d,children:i})})};Popover$1.displayName=POPOVER_NAME;var ANCHOR_NAME="PopoverAnchor",PopoverAnchor=reactExports.forwardRef((e,s)=>{const{__scopePopover:i,...o}=e,a=usePopoverContext(ANCHOR_NAME,i),c=usePopperScope(i),{onCustomAnchorAdd:d,onCustomAnchorRemove:h}=a;return reactExports.useEffect(()=>(d(),()=>h()),[d,h]),jsxRuntimeExports.jsx(Anchor,{...c,...o,ref:s})});PopoverAnchor.displayName=ANCHOR_NAME;var TRIGGER_NAME="PopoverTrigger",PopoverTrigger$1=reactExports.forwardRef((e,s)=>{const{__scopePopover:i,...o}=e,a=usePopoverContext(TRIGGER_NAME,i),c=usePopperScope(i),d=useComposedRefs(s,a.triggerRef),h=jsxRuntimeExports.jsx(Primitive.button,{type:"button","aria-haspopup":"dialog","aria-expanded":a.open,"aria-controls":a.contentId,"data-state":getState(a.open),...o,ref:d,onClick:composeEventHandlers(e.onClick,a.onOpenToggle)});return a.hasCustomAnchor?h:jsxRuntimeExports.jsx(Anchor,{asChild:!0,...c,children:h})});PopoverTrigger$1.displayName=TRIGGER_NAME;var PORTAL_NAME="PopoverPortal",[PortalProvider,usePortalContext]=createPopoverContext(PORTAL_NAME,{forceMount:void 0}),PopoverPortal=e=>{const{__scopePopover:s,forceMount:i,children:o,container:a}=e,c=usePopoverContext(PORTAL_NAME,s);return jsxRuntimeExports.jsx(PortalProvider,{scope:s,forceMount:i,children:jsxRuntimeExports.jsx(Presence,{present:i||c.open,children:jsxRuntimeExports.jsx(Portal$3,{asChild:!0,container:a,children:o})})})};PopoverPortal.displayName=PORTAL_NAME;var CONTENT_NAME="PopoverContent",PopoverContent$1=reactExports.forwardRef((e,s)=>{const i=usePortalContext(CONTENT_NAME,e.__scopePopover),{forceMount:o=i.forceMount,...a}=e,c=usePopoverContext(CONTENT_NAME,e.__scopePopover);return jsxRuntimeExports.jsx(Presence,{present:o||c.open,children:c.modal?jsxRuntimeExports.jsx(PopoverContentModal,{...a,ref:s}):jsxRuntimeExports.jsx(PopoverContentNonModal,{...a,ref:s})})});PopoverContent$1.displayName=CONTENT_NAME;var Slot=createSlot("PopoverContent.RemoveScroll"),PopoverContentModal=reactExports.forwardRef((e,s)=>{const i=usePopoverContext(CONTENT_NAME,e.__scopePopover),o=reactExports.useRef(null),a=useComposedRefs(s,o),c=reactExports.useRef(!1);return reactExports.useEffect(()=>{const d=o.current;if(d)return hideOthers(d)},[]),jsxRuntimeExports.jsx(ReactRemoveScroll,{as:Slot,allowPinchZoom:!0,children:jsxRuntimeExports.jsx(PopoverContentImpl,{...e,ref:a,trapFocus:i.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:composeEventHandlers(e.onCloseAutoFocus,d=>{var h;d.preventDefault(),c.current||(h=i.triggerRef.current)==null||h.focus()}),onPointerDownOutside:composeEventHandlers(e.onPointerDownOutside,d=>{const h=d.detail.originalEvent,g=h.button===0&&h.ctrlKey===!0,b=h.button===2||g;c.current=b},{checkForDefaultPrevented:!1}),onFocusOutside:composeEventHandlers(e.onFocusOutside,d=>d.preventDefault(),{checkForDefaultPrevented:!1})})})}),PopoverContentNonModal=reactExports.forwardRef((e,s)=>{const i=usePopoverContext(CONTENT_NAME,e.__scopePopover),o=reactExports.useRef(!1),a=reactExports.useRef(!1);return jsxRuntimeExports.jsx(PopoverContentImpl,{...e,ref:s,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:c=>{var d,h;(d=e.onCloseAutoFocus)==null||d.call(e,c),c.defaultPrevented||(o.current||(h=i.triggerRef.current)==null||h.focus(),c.preventDefault()),o.current=!1,a.current=!1},onInteractOutside:c=>{var g,b;(g=e.onInteractOutside)==null||g.call(e,c),c.defaultPrevented||(o.current=!0,c.detail.originalEvent.type==="pointerdown"&&(a.current=!0));const d=c.target;((b=i.triggerRef.current)==null?void 0:b.contains(d))&&c.preventDefault(),c.detail.originalEvent.type==="focusin"&&a.current&&c.preventDefault()}})}),PopoverContentImpl=reactExports.forwardRef((e,s)=>{const{__scopePopover:i,trapFocus:o,onOpenAutoFocus:a,onCloseAutoFocus:c,disableOutsidePointerEvents:d,onEscapeKeyDown:h,onPointerDownOutside:g,onFocusOutside:b,onInteractOutside:_,..._e}=e,$=usePopoverContext(CONTENT_NAME,i),et=usePopperScope(i);return useFocusGuards(),jsxRuntimeExports.jsx(FocusScope,{asChild:!0,loop:!0,trapped:o,onMountAutoFocus:a,onUnmountAutoFocus:c,children:jsxRuntimeExports.jsx(DismissableLayer,{asChild:!0,disableOutsidePointerEvents:d,onInteractOutside:_,onEscapeKeyDown:h,onPointerDownOutside:g,onFocusOutside:b,onDismiss:()=>$.onOpenChange(!1),children:jsxRuntimeExports.jsx(Content$1,{"data-state":getState($.open),role:"dialog",id:$.contentId,...et,..._e,ref:s,style:{..._e.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})}),CLOSE_NAME="PopoverClose",PopoverClose=reactExports.forwardRef((e,s)=>{const{__scopePopover:i,...o}=e,a=usePopoverContext(CLOSE_NAME,i);return jsxRuntimeExports.jsx(Primitive.button,{type:"button",...o,ref:s,onClick:composeEventHandlers(e.onClick,()=>a.onOpenChange(!1))})});PopoverClose.displayName=CLOSE_NAME;var ARROW_NAME="PopoverArrow",PopoverArrow=reactExports.forwardRef((e,s)=>{const{__scopePopover:i,...o}=e,a=usePopperScope(i);return jsxRuntimeExports.jsx(Arrow,{...a,...o,ref:s})});PopoverArrow.displayName=ARROW_NAME;function getState(e){return e?"open":"closed"}var Root2=Popover$1,Trigger=PopoverTrigger$1,Portal=PopoverPortal,Content2=PopoverContent$1;const Popover=Root2,PopoverTrigger=Trigger,PopoverContent=reactExports.forwardRef(({className:e,align:s="center",sideOffset:i=4,...o},a)=>jsxRuntimeExports.jsx(Portal,{children:jsxRuntimeExports.jsx(Content2,{ref:a,align:s,sideOffset:i,className:cn("z-50 w-72 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none 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-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:sli
500de-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...o})}));PopoverContent.displayName=Content2.displayName;function clamp(e,[s,i]){return Math.min(i,Math.max(s,e))}function useStateMachine(e,s){return reactExports.useReducer((i,o)=>s[i][o]??i,e)}var SCROLL_AREA_NAME="ScrollArea",[createScrollAreaContext]=createContextScope(SCROLL_AREA_NAME),[ScrollAreaProvider,useScrollAreaContext]=createScrollAreaContext(SCROLL_AREA_NAME),ScrollArea$1=reactExports.forwardRef((e,s)=>{const{__scopeScrollArea:i,type:o="hover",dir:a,scrollHideDelay:c=600,...d}=e,[h,g]=reactExports.useState(null),[b,_]=reactExports.useState(null),[_e,$]=reactExports.useState(null),[et,it]=reactExports.useState(null),[rt,lt]=reactExports.useState(null),[st,ot]=reactExports.useState(0),[nt,at]=reactExports.useState(0),[ct,dt]=reactExports.useState(!1),[pt,mt]=reactExports.useState(!1),St=useComposedRefs(s,Mt=>g(Mt)),Pt=useDirection(a);return jsxRuntimeExports.jsx(ScrollAreaProvider,{scope:i,type:o,dir:Pt,scrollHideDelay:c,scrollArea:h,viewport:b,onViewportChange:_,content:_e,onContentChange:$,scrollbarX:et,onScrollbarXChange:it,scrollbarXEnabled:ct,onScrollbarXEnabledChange:dt,scrollbarY:rt,onScrollbarYChange:lt,scrollbarYEnabled:pt,onScrollbarYEnabledChange:mt,onCornerWidthChange:ot,onCornerHeightChange:at,children:jsxRuntimeExports.jsx(Primitive.div,{dir:Pt,...d,ref:St,style:{position:"relative","--radix-scroll-area-corner-width":st+"px","--radix-scroll-area-corner-height":nt+"px",...e.style}})})});ScrollArea$1.displayName=SCROLL_AREA_NAME;var VIEWPORT_NAME="ScrollAreaViewport",ScrollAreaViewport=reactExports.forwardRef((e,s)=>{const{__scopeScrollArea:i,children:o,nonce:a,...c}=e,d=useScrollAreaContext(VIEWPORT_NAME,i),h=reactExports.useRef(null),g=useComposedRefs(s,h,d.onViewportChange);return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-scroll-area-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-scroll-area-viewport]::-webkit-scrollbar{display:none}"},nonce:a}),jsxRuntimeExports.jsx(Primitive.div,{"data-radix-scroll-area-viewport":"",...c,ref:g,style:{overflowX:d.scrollbarXEnabled?"scroll":"hidden",overflowY:d.scrollbarYEnabled?"scroll":"hidden",...e.style},children:jsxRuntimeExports.jsx("div",{ref:d.onContentChange,style:{minWidth:"100%",display:"table"},children:o})})]})});ScrollAreaViewport.displayName=VIEWPORT_NAME;var SCROLLBAR_NAME="ScrollAreaScrollbar",ScrollAreaScrollbar=reactExports.forwardRef((e,s)=>{const{forceMount:i,...o}=e,a=useScrollAreaContext(SCROLLBAR_NAME,e.__scopeScrollArea),{onScrollbarXEnabledChange:c,onScrollbarYEnabledChange:d}=a,h=e.orientation==="horizontal";return reactExports.useEffect(()=>(h?c(!0):d(!0),()=>{h?c(!1):d(!1)}),[h,c,d]),a.type==="hover"?jsxRuntimeExports.jsx(ScrollAreaScrollbarHover,{...o,ref:s,forceMount:i}):a.type==="scroll"?jsxRuntimeExports.jsx(ScrollAreaScrollbarScroll,{...o,ref:s,forceMount:i}):a.type==="auto"?jsxRuntimeExports.jsx(ScrollAreaScrollbarAuto,{...o,ref:s,forceMount:i}):a.type==="always"?jsxRuntimeExports.jsx(ScrollAreaScrollbarVisible,{...o,ref:s}):null});ScrollAreaScrollbar.displayName=SCROLLBAR_NAME;var ScrollAreaScrollbarHover=reactExports.forwardRef((e,s)=>{const{forceMount:i,...o}=e,a=useScrollAreaContext(SCROLLBAR_NAME,e.__scopeScrollArea),[c,d]=reactExports.useState(!1);return reactExports.useEffect(()=>{const h=a.scrollArea;let g=0;if(h){const b=()=>{window.clearTimeout(g),d(!0)},_=()=>{g=window.setTimeout(()=>d(!1),a.scrollHideDelay)};return h.addEventListener("pointerenter",b),h.addEventListener("pointerleave",_),()=>{window.clearTimeout(g),h.removeEventListener("pointerenter",b),h.removeEventListener("pointerleave",_)}
500}},[a.scrollArea,a.scrollHideDelay]),jsxRuntimeExports.jsx(Presence,{present:i||c,children:jsxRuntimeExports.jsx(ScrollAreaScrollbarAuto,{"data-state":c?"visible":"hidden",...o,ref:s})})}),ScrollAreaScrollbarScroll=reactExports.forwardRef((e,s)=>{const{forceMount:i,...o}=e,a=useScrollAreaContext(SCROLLBAR_NAME,e.__scopeScrollArea),c=e.orientation==="horizontal",d=useDebounceCallback(()=>g("SCROLL_END"),100),[h,g]=useStateMachine("hidden",{hidden:{SCROLL:"scrolling"},scrolling:{SCROLL_END:"idle",POINTER_ENTER:"interacting"},interacting:{SCROLL:"interacting",POINTER_LEAVE:"idle"},idle:{HIDE:"hidden",SCROLL:"scrolling",POINTER_ENTER:"interacting"}});return reactExports.useEffect(()=>{if(h==="idle"){const b=window.setTimeout(()=>g("HIDE"),a.scrollHideDelay);return()=>window.clearTimeout(b)}},[h,a.scrollHideDelay,g]),reactExports.useEffect(()=>{const b=a.viewport,_=c?"scrollLeft":"scrollTop";if(b){let _e=b[_];const $=()=>{const et=b[_];_e!==et&&(g("SCROLL"),d()),_e=et};return b.addEventListener("scroll",$),()=>b.removeEventListener("scroll",$)}},[a.viewport,c,g,d]),jsxRuntimeExports.jsx(Presence,{present:i||h!=="hidden",children:jsxRuntimeExports.jsx(ScrollAreaScrollbarVisible,{"data-state":h==="hidden"?"hidden":"visible",...o,ref:s,onPointerEnter:composeEventHandlers(e.onPointerEnter,()=>g("POINTER_ENTER")),onPointerLeave:composeEventHandlers(e.onPointerLeave,()=>g("POINTER_LEAVE"))})})}),ScrollAreaScrollbarAuto=reactExports.forwardRef((e,s)=>{const i=useScrollAreaContext(SCROLLBAR_NAME,e.__scopeScrollArea),{forceMount:o,...a}=e,[c,d]=reactExports.useState(!1),h=e.orientation==="horizontal",g=useDebounceCallback(()=>{if(i.viewport){const b=i.viewport.offsetWidth<i.viewport.scrollWidth,_=i.viewport.offsetHeight<i.viewport.scrollHeight;d(h?b:_)}},10);return useResizeObserver(i.viewport,g),useResizeObserver(i.content,g),jsxRuntimeExports.jsx(Presence,{present:o||c,children:jsxRuntimeExports.jsx(ScrollAreaScrollbarVisible,{"data-state":c?"visible":"hidden",...a,ref:s})})}),ScrollAreaScrollbarVisible=reactExports.forwardRef((e,s)=>{const{orientation:i="vertical",...o}=e,a=useScrollAreaContext(SCROLLBAR_NAME,e.__scopeScrollArea),c=reactExports.useRef(null),d=reactExports.useRef(0),[h,g]=reactExports.useState({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),b=getThumbRatio(h.viewport,h.content),_={...o,sizes:h,onSizesChange:g,hasThumb:b>0&&b<1,onThumbChange:$=>c.current=$,onThumbPointerUp:()=>d.current=0,onThumbPointerDown:$=>d.current=$};function _e($,et){return getScrollPositionFromPointer($,d.current,h,et)}return i==="horizontal"?jsxRuntimeExports.jsx(ScrollAreaScrollbarX,{..._,ref:s,onThumbPositionChange:()=>{if(a.viewport&&c.current){const $=a.viewport.scrollLeft,et=getThumbOffsetFromScroll($,h,a.dir);c.current.style.transform=`translate3d(${et}px, 0, 0)`}},onWheelScroll:$=>{a.viewport&&(a.viewport.scrollLeft=$)},onDragScroll:$=>{a.viewport&&(a.viewport.scrollLeft=_e($,a.dir))}}):i==="vertical"?jsxRuntimeExports.jsx(ScrollAreaScrollbarY,{..._,ref:s,onThumbPositionChange:()=>{if(a.viewport&&c.current){const $=a.viewport.scrollTop,et=getThumbOffsetFromScroll($,h);c.current.style.transform=`translate3d(0, ${et}px, 0)`}}
500,onWheelScroll:$=>{a.viewport&&(a.viewport.scrollTop=$)},onDragScroll:$=>{a.viewport&&(a.viewport.scrollTop=_e($))}}):null}),ScrollAreaScrollbarX=reactExports.forwardRef((e,s)=>{const{sizes:i,onSizesChange:o,...a}=e,c=useScrollAreaContext(SCROLLBAR_NAME,e.__scopeScrollArea),[d,h]=reactExports.useState(),g=reactExports.useRef(null),b=useComposedRefs(s,g,c.onScrollbarXChange);return reactExports.useEffect(()=>{g.current&&h(getComputedStyle(g.current))},[g]),jsxRuntimeExports.jsx(ScrollAreaScrollbarImpl,{"data-orientation":"horizontal",...a,ref:b,sizes:i,style:{bottom:0,left:c.dir==="rtl"?"var(--radix-scroll-area-corner-width)":0,right:c.dir==="ltr"?"var(--radix-scroll-area-corner-width)":0,"--radix-scroll-area-thumb-width":getThumbSize(i)+"px",...e.style},onThumbPointerDown:_=>e.onThumbPointerDown(_.x),onDragScroll:_=>e.onDragScroll(_.x),onWheelScroll:(_,_e)=>{if(c.viewport){const $=c.viewport.scrollLeft+_.deltaX;e.onWheelScroll($),isScrollingWithinScrollbarBounds($,_e)&&_.preventDefault()}},onResize:()=>{g.current&&c.viewport&&d&&o({content:c.viewport.scrollWidth,viewport:c.viewport.offsetWidth,scrollbar:{size:g.current.clientWidth,paddingStart:toInt(d.paddingLeft),paddingEnd:toInt(d.paddingRight)}})}})}),ScrollAreaScrollbarY=reactExports.forwardRef((e,s)=>{const{sizes:i,onSizesChange:o,...a}=e,c=useScrollAreaContext(SCROLLBAR_NAME,e.__scopeScrollArea),[d,h]=reactExports.useState(),g=reactExports.useRef(null),b=useComposedRefs(s,g,c.onScrollbarYChange);return reactExports.useEffect(()=>{g.current&&h(getComputedStyle(g.current))},[g]),jsxRuntimeExports.jsx(ScrollAreaScrollbarImpl,{"data-orientation":"vertical",...a,ref:b,sizes:i,style:{top:0,right:c.dir==="ltr"?0:void 0,left:c.dir==="rtl"?0:void 0,bottom:"var(--radix-scroll-area-corner-height)","--radix-scroll-area-thumb-height":getThumbSize(i)+"px",...e.style},onThumbPointerDown:_=>e.onThumbPointerDown(_.y),onDragScroll:_=>e.onDragScroll(_.y),onWheelScroll:(_,_e)=>{if(c.viewport){const $=c.viewport.scrollTop+_.deltaY;e.onWheelScroll($),isScrollingWithinScrollbarBounds($,_e)&&_.preventDefault()}},onResize:()=>{g.current&&c.viewport&&d&&o({content:c.viewport.scrollHeight,viewport:c.viewport.offsetHeight,scrollbar:{size:g.current.clientHeight,paddingStart:toInt(d.paddingTop),paddingEnd:toInt(d.paddingBottom)}})}})}),[ScrollbarProvider,useScrollbarContext]=createScrollAreaContext(SCROLLBAR_NAME),ScrollAreaScrollbarImpl=reactExports.forwardRef((e,s)=>{const{__scopeScrollArea:i,sizes:o,hasThumb:a,onThumbChange:c,onThumbPointerUp:d,onThumbPointerDown:h,onThumbPositionChange:g,onDragScroll:b,onWheelScroll:_,onResize:_e,...$}=e,et=useScrollAreaContext(SCROLLBAR_NAME,i),[it,rt]=reactExports.useState(null),lt=useComposedRefs(s,St=>rt(St)),st=reactExports.useRef(null),ot=reactExports.useRef(""),nt=et.viewport,at=o.content-o.viewport,ct=useCallbackRef$1(_),dt=useCallbackRef$1(g),pt=useDebounceCallback(_e,10);function mt(St){if(st.current){const Pt=St.clientX-st.current.left,Mt=St.clientY-st.current.top;b({x:Pt,y:Mt})}}return reactExports.useEffect(()=>{const St=Pt=>{const Mt=Pt.target;(it==null?void 0:it.contains(Mt))&&ct(Pt,at)};return document.addEventListener("wheel",St,{passive:!1}),()=>document.removeEventListener("wheel",St,{passive:!1})},[nt,it,at,ct]),reactExports.useEffect(dt,[o,dt]),useResizeObserver(it,pt),useResizeObserver(et.content,pt),jsxRuntimeExports.jsx(ScrollbarProvider,{scope:i,scrollbar:it,hasThumb:a,onThumbChange:useCallbackRef$1(c),onThumbPointerUp:useCallbackRef$1(d),onThumbPositionChange:dt,onThumbPointerDown:useCallbackRef$1(h),children:jsxRuntimeExports.jsx(Primitive.div,{...$,ref:lt,style:{position:"absolute",...$.style},onPointerDown:composeEventHandlers(e.onPointerDown,St=>{St.button===0&&(St.target.setPointerCapture(St.pointerId),st.current=it.getBoundingClientRect(),ot.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",et.viewport&&(et.viewport.style.scrollBehavior="auto"),mt(St))}),onPointerMove:composeEventHandlers(e.onPointerMove,mt),onPointerUp:composeEventHandlers(e.onPointerUp,St=>{const Pt=St.target;Pt.hasPointerCapture(St.pointerId)&&Pt.releasePointerCapture(St.pointerId),document.body.style.webkitUserSelect=ot.current,et.viewport&&(et.viewport.style.scrollBehavior=""),st.current=null})})})}),THUMB_NAME="ScrollAreaThumb",ScrollAreaThumb=reactExports.forwardRef((e,s)=>{const{forceMount:i,...o}=e,a=useScrollbarContext(THUMB_NAME,e.__scopeScrollArea);return jsxRuntimeExports.jsx(Presence,{present:i||a.hasThumb,children:jsxRuntimeExports.jsx(ScrollAreaThumbImpl,{ref:s,...o})})}),ScrollAreaThumbImpl=reactExports.forwardRef((e,s)=>{const{__scopeScrollArea:i,style:o,...a}=e,c=useScrollAreaContext(THUMB_NAME,i),d=useScrollbarContext(THUMB_NAME,i),{onThumbPositionChange:h}=d,g=useComposedRefs(s,_e=>d.onThumbChange(_e)),b=reactExports.useRef(void 0),_=useDebounceCallback(()=>{b.current&&(b.current(),b.current=void 0)},100);return reactExports.useEffect(()=>{const _e=c.viewport;if(_e){const $=()=>{if(_(),!b.current){const et=addUnlinkedScrollListener(_e,h);b.current=et,h()}};return h(),_e.addEventListener("scroll",$),()=>_e.removeEventListener("scroll",$)}},[c.viewport,_,h]),jsxRuntimeExports.jsx(Primitive.div,{"data-state":d.hasThumb?"visible":"hidden",...a,ref:g,style:{width:"var(--radix-scroll-area-thumb-width)",height:"var(--radix-scroll-area-thumb-height)",...o},onPointerDownCapture:composeEventHandlers(e.onPointerDownCapture,_e=>{const et=_e.target.getBoundingClientRect(),it=_e.clientX-et.left,rt=_e.clientY-et.top;d.onThumbPointerDown({x:it,y:rt})}),onPointerUp:composeEventHandlers(e.onPointerUp,d.onThumbPointerUp)})});
500ScrollAreaThumb.displayName=THUMB_NAME;var CORNER_NAME="ScrollAreaCorner",ScrollAreaCorner=reactExports.forwardRef((e,s)=>{const i=useScrollAreaContext(CORNER_NAME,e.__scopeScrollArea),o=!!(i.scrollbarX&&i.scrollbarY);return i.type!=="scroll"&&o?jsxRuntimeExports.jsx(ScrollAreaCornerImpl,{...e,ref:s}):null});ScrollAreaCorner.displayName=CORNER_NAME;var ScrollAreaCornerImpl=reactExports.forwardRef((e,s)=>{const{__scopeScrollArea:i,...o}=e,a=useScrollAreaContext(CORNER_NAME,i),[c,d]=reactExports.useState(0),[h,g]=reactExports.useState(0),b=!!(c&&h);return useResizeObserver(a.scrollbarX,()=>{var _e;const _=((_e=a.scrollbarX)==null?void 0:_e.offsetHeight)||0;a.onCornerHeightChange(_),g(_)}),useResizeObserver(a.scrollbarY,()=>{var _e;const _=((_e=a.scrollbarY)==null?void 0:_e.offsetWidth)||0;a.onCornerWidthChange(_),d(_)}),b?jsxRuntimeExports.jsx(Primitive.div,{...o,ref:s,style:{width:c,height:h,position:"absolute",right:a.dir==="ltr"?0:void 0,left:a.dir==="rtl"?0:void 0,bottom:0,...e.style}}):null});function toInt(e){return e?parseInt(e,10):0}function getThumbRatio(e,s){const i=e/s;return isNaN(i)?0:i}function getThumbSize(e){const s=getThumbRatio(e.viewport,e.content),i=e.scrollbar.paddingStart+e.scrollbar.paddingEnd,o=(e.scrollbar.size-i)*s;return Math.max(o,18)}function getScrollPositionFromPointer(e,s,i,o="ltr"){const a=getThumbSize(i),c=a/2,d=s||c,h=a-d,g=i.scrollbar.paddingStart+d,b=i.scrollbar.size-i.scrollbar.paddingEnd-h,_=i.content-i.viewport,_e=o==="ltr"?[0,_]:[_*-1,0];return linearScale([g,b],_e)(e)}function getThumbOffsetFromScroll(e,s,i="ltr"){const o=getThumbSize(s),a=s.scrollbar.paddingStart+s.scrollbar.paddingEnd,c=s.scrollbar.size-a,d=s.content-s.viewport,h=c-o,g=i==="ltr"?[0,d]:[d*-1,0],b=clamp(e,g);return linearScale([0,d],[0,h])(b)}function linearScale(e,s){return i=>{if(e[0]===e[1]||s[0]===s[1])return s[0];const o=(s[1]-s[0])/(e[1]-e[0]);return s[0]+o*(i-e[0])}}function isScrollingWithinScrollbarBounds(e,s){return e>0&&e<s}var addUnlinkedScrollListener=(e,s=()=>{})=>{let i={left:e.scrollLeft,top:e.scrollTop},o=0;return function a(){const c={left:e.scrollLeft,top:e.scrollTop},d=i.left!==c.left,h=i.top!==c.top;(d||h)&&s(),i=c,o=window.requestAnimationFrame(a)}(),()=>window.cancelAnimationFrame(o)};function useDebounceCallback(e,s){const i=useCallbackRef$1(e),o=reactExports.useRef(0);return reactExports.useEffect(()=>()=>window.clearTimeout(o.current),[]),reactExports.useCallback(()=>{window.clearTimeout(o.current),o.current=window.setTimeout(i,s)},[i,s])}function useResizeObserver(e,s){const i=useCallbackRef$1(s);useLayoutEffect2(()=>{let o=0;if(e){const a=new ResizeObserver(()=>{cancelAnimationFrame(o),o=window.requestAnimationFrame(i)});return a.observe(e),()=>{window.cancelAnimationFrame(o),a.unobserve(e)}}},[e,i])}var Root=ScrollArea$1,Viewport=ScrollAreaViewport,Corner=ScrollAreaCorner;const ScrollArea=reactExports.forwardRef(({className:e,children:s,...i},o)=>jsxRuntimeExports.jsxs(Root,{ref:o,className:cn("relative overflow-hidden",e),...i,children:[jsxRuntimeExports.jsx(Viewport,{className:"h-full w-full rounded-[inherit]",children:s}),jsxRuntimeExports.jsx(ScrollBar,{}),jsxRuntimeExports.jsx(Corner,{})]}));ScrollArea.displayName=Root.displayName;const ScrollBar=reactExports.forwardRef(({className:e,orientation:s="vertical",...i},o)=>jsxRuntimeExports.jsx(ScrollAreaScrollbar,{ref:o,orientation:s,className:cn("flex touch-none select-none transition-colors",s==="vertical"&&"h-full w-2.5 border-l border-l-transparent p-[1px]",s==="horizontal"&&"h-2.5 flex-col border-t border-t-transparent p-[1px]",e),...i,children:jsxRuntimeExports.jsx(ScrollAreaThumb,{className:"relative flex-1 rounded-full bg-border"})}));ScrollBar.displayName=ScrollAreaScrollbar.displayName;const DEFAULT_GLOBAL_SEARCH_FILTERS={scope:"all",documentType:"all",creatorId:null,workspaceId:null,app:null},RESULT_LIMIT=50,FACET_LIMIT=500,TUTORIAL_RESULT_SELECT=` 501 id, 502 title, 503 description, 504 app, 505 user_id, 506 created_at, 507 total_steps, 508 estimated_time, 509 duration_seconds, 510 workspace_id, 511 visibility, 512 profiles (id, username, avatar_url, first_name, last_name), 513 workspaces!tutorials_workspace_id_fkey (id, name, is_personal) 514`,WORKBOOK_RESULT_SELECT=` 515 id, 516 title, 517 description, 518 app, 519 user_id, 520 created_at, 521 workspace_id, 522 profiles (id, username, avatar_url, first_name, last_name), 523 workspaces (id, name, is_personal) 524`,TUTORIAL_FACET_SELECT=` 525 id, 526 app, 527 user_id, 528 workspace_id, 529 profiles (id, username, avatar_url, first_name, last_name), 530 workspaces!tutorials_workspace_id_fkey (id, name, is_personal) 531`,WORKBOOK_FACET_SELECT=` 532 id, 533 app, 534 user_id, 535 workspace_id, 536 profiles (id, username, avatar_url, first_name, last_name), 537 workspaces (id, name, is_personal) 538`;function useDebouncedValue(e,s){const[i,o]=reactExports.useState(e);return reactExports.useEffect(()=>{const a=window.setTimeout(()=>
538o(e),s);return()=>window.clearTimeout(a)},[e,s]),i}function cleanSearchTerm(e){return e.replace(/[,%]/g," ").replace(/[_\\]/g,"\\$&").trim()}function asSingle(e){return Array.isArray(e)?e[0]??null:e??null}function asSearchQuery(e){return e}function getCreator(e){const s=asSingle(e.profiles);if(!(s!=null&&s.id)&&!e.user_id)return null;const i=[s==null?void 0:s.first_name,s==null?void 0:s.last_name].filter(Boolean).join(" ")||(s==null?void 0:s.username)||"Anonymous";return{id:(s==null?void 0:s.id)??e.user_id,name:i,avatarUrl:(s==null?void 0:s.avatar_url)??null}}function getWorkspace(e){const s=asSingle(e.workspaces);return s!=null&&s.id?{id:s.id,name:s.name||"Workspace"}:null}function applySearchFilters(e,s,i,o,a={}){const c=cleanSearchTerm(i);let d=e;return c&&(d=d.or(`title.ilike.%${c}%,description.ilike.%${c}%`)),a.scope||(s.scope==="workspace"?d=d.not("workspace_id","is",null):s.scope==="community"&&(d=d.is("workspace_id",null),o==="tutorial"&&(d=d.eq("visibility","public")))),!a.creatorId&&s.creatorId&&(d=d.eq("user_id",s.creatorId)),!a.workspaceId&&s.workspaceId&&(d=d.eq("workspace_id",s.workspaceId)),!a.app&&s.app&&(d=d.eq("app",s.app)),d}function sortResults(e){return[...e].sort((s,i)=>{const o=s.createdAt?new Date(s.createdAt).getTime():0;return(i.createdAt?new Date(i.createdAt).getTime():0)-o})}function normalizeTutorial(e){return{id:e.id,type:"tutorial",title:e.title||"Untitled tutorial",description:e.description??null,app:e.app??null,href:`/t/${e.id}`,createdAt:e.created_at??null,creator:getCreator(e),workspace:getWorkspace(e),totalSteps:e.total_steps??null,estimatedTime:e.estimated_time??null,durationSeconds:e.duration_seconds??null}}function normalizeWorkbook(e){return{id:e.id,type:"workbook",title:e.title||"Untitled workbook",description:e.description??null,app:e.app??null,href:`/workbook/${e.id}`,createdAt:e.created_at??null,creator:getCreator(e),workspace:getWorkspace(e),totalSteps:null,estimatedTime:null,durationSeconds:null}}async function fetchTutorialResults(e,s){let i=supabase.from("tutorials").select(TUTORIAL_RESULT_SELECT,{count:"exact"}).eq("is_published",!0).eq("is_duplicate",!1).eq("is_trashed",!1);i=applySearchFilters(i,e,s,"tutorial"),i=i.order("created_at",{ascending:!1}).limit(RESULT_LIMIT);const{data:o,error:a,count:c}=await i;if(a)throw a;return{results:(o??[]).map(normalizeTutorial),count:c??(o==null?void 0:o.length)??0}}async function fetchWorkbookResults(e,s){let i=supabase.from("workbooks").select(WORKBOOK_RESULT_SELECT,{count:"exact"}).eq("is_published",!0);i=applySearchFilters(i,e,s,"workbook"),i=i.order("created_at",{ascending:!1}).limit(RESULT_LIMIT);const{data:o,error:a,count:c}=await i;if(a)throw a;return{results:(o??[]).map(normalizeWorkbook),count:c??(o==null?void 0:o.length)??0}}async function fetchTutorialFacets(e,s){let i=supabase.from("tutorials").select(TUTORIAL_FACET_SELECT).eq("is_published",!0).eq("is_duplicate",!1).eq("is_trashed",!1);i=applySearchFilters(i,e,s,"tutorial",{creatorId:!0,workspaceId:!0,app:!0}),i=i.order("created_at",{ascending:!1}).limit(FACET_LIMIT);const{data:o,error:a}=await i;if(a)throw a;return o??[]}async function fetchWorkbookFacets(e,s){let i=supabase.from("workbooks").select(WORKBOOK_FACET_SELECT).eq("is_published",!0);i=applySearchFilters(i,e,s,"workbook",{creatorId:!0,workspaceId:!0,app:!0}),i=i.order("created_at",{ascending:!1}).limit(FACET_LIMIT);const{data:o,error:a}=await i;if(a)throw a;return o??[]}function incrementOption(e,s,i,o){if(!s||!i)return;const a=e.get(s);if(a){a.count+=1;return}e.set(s,{id:s,label:i,count:1,avatarUrl:o})}function buildFacets(e){const s=new Map,i=new Map,o=new Map;e.forEach(d=>{const h=getCreator(d);incrementOption(s,h==null?void 0:h.id,h==null?void 0:h.name,h==null?void 0:h.avatarUrl);const g=typeof d.app=="string"?d.app.trim():"";incrementOption(i,g,g);const b=getWorkspace(d);incrementOption(o,b==null?void 0:b.id,b==null?void 0:b.name)});const a=(d,h)=>d.label.localeCompare(h.label),c=(d,h)=>h.count-d.count||a(d,h);return{creators:Array.from(s.values()).sort(a),applications:Array.from(i.values()).sort(c),workspaces:Array.from(o.values()).sort(a)}}function useGlobalSearch(e,s,i){const o=useDebouncedValue(e,180),[a,c]=reactExports.useState([]),[d,h]=reactExports.useState({creators:[],applications:[],workspaces:[]}),[g,b]=reactExports.useState(0),[_,_e]=reactExports.useState(!1),[$,et]=reactExports.useState(null),it=reactExports.useRef(0),rt=reactExports.useMemo(()=>({...s,workspaceId:s.scope==="community"?null:s.workspaceId}),[s]);return reactExports.useEffect(()=>{if(!i)return;const lt=++it.current;async function st(){_e(!0),et(null);try{const ot=[],nt=[];rt.documentType!=="workbook"&&(ot.push(fetchTutorialResults(rt,o)),nt.push(fetchTutorialFacets(rt,o))),rt.documentType!=="tutorial"&&(ot.push(fetchWorkbookResults(rt,o)),nt.push(fetchWorkbookFacets(rt,o)));const[at,ct]=await Promise.all([Promise.all(ot),Promise.all(nt)]);if(lt!==it.current)return;const dt=at.flatMap(mt=>mt.results),pt=ct.flat();c(sortResults(dt).slice(0,RESULT_LIMIT)),b(at.reduce((mt,St)=>mt+St.count,0)),h(buildFacets(pt))}catch(ot){if(lt!==it.current)return;console.error("[global search]",ot),et(ot instanceof Error?ot.message:"Search failed"),c([]),b(0)}finally{lt===it.current&&_e(!1)}}st()},[o,i,rt]),{results:a,facets:d,totalCount:g,loading:_,error:$}}const APP_DOMAIN_MAP={"Microsoft Word":"microsoft.com","Microsoft Excel":"microsoft.com","Microsoft PowerPoint":"microsoft.com","Microsoft Outlook":"microsoft.com","Microsoft OneNote":"microsoft.com",OneDrive:"onedrive.com",SharePoint:"sharepoint.com","Google Docs":"docs.google.com","Google Sheets":"sheets.google.com","Google Slides":"slides.google.com",Gmail:"gmail.com","Google Drive":"drive.google.com","Google Forms":"forms.google.com","Google Keep":"keep.google.com",Notion:"notion.so",Evernote:"evernote.com",Obsidian:"obsidian.md",Bear:"bear.app","Microsoft Loop":"loop.microsoft.com","Apple Keynote":"apple.com","Apple Pages":"apple.com","Apple Numbers":"apple.com","PDF Expert"
538:"pdfexpert.com","Adobe Acrobat Reader":"adobe.com",Asana:"asana.com",Trello:"trello.com","Monday.com":"monday.com",ClickUp:"clickup.com",Smartsheet:"smartsheet.com",Wrike:"wrike.com",Airtable:"airtable.com",Slack:"slack.com","Microsoft Teams":"teams.microsoft.com",Discord:"discord.com",Zoom:"zoom.us","Google Meet":"meet.google.com",Webex:"webex.com",Todoist:"todoist.com","Microsoft To Do":"todo.microsoft.com","Things 3":"culturedcode.com","Any.do":"any.do",Zapier:"zapier.com",Make:"make.com",IFTTT:"ifttt.com",Photoshop:"adobe.com",Illustrator:"adobe.com",InDesign:"adobe.com",Lightroom:"adobe.com","After Effects":"adobe.com","Premiere Pro":"adobe.com","Adobe XD":"adobe.com","Premiere Rush":"adobe.com","Adobe Acrobat Pro":"adobe.com","Adobe Animate":"adobe.com","Adobe Audition":"adobe.com","Adobe Fresco":"adobe.com",Figma:"figma.com",Sketch:"sketch.com",Canva:"canva.com",Miro:"miro.com",Mural:"mural.co",Framer:"framer.com",InVision:"invisionapp.com",Balsamiq:"balsamiq.com",Procreate:"procreate.com","Affinity Designer":"affinity.serif.com","Affinity Photo":"affinity.serif.com","Affinity Publisher":"affinity.serif.com",CorelDRAW:"coreldraw.com",Blender:"blender.org",Spline:"spline.design","Cinema 4D":"maxon.net",Maya:"autodesk.com","3ds Max":"autodesk.com",ZBrush:"maxon.net","VS Code":"code.visualstudio.com","Sublime Text":"sublimetext.com","IntelliJ IDEA":"jetbrains.com",PyCharm:"jetbrains.com",WebStorm:"jetbrains.com",Xcode:"developer.apple.com","Android Studio":"developer.android.com",GitHub:"github.com",GitLab:"gitlab.com",Bitbucket:"bitbucket.org",GitKraken:"gitkraken.com",AWS:"aws.amazon.com","Microsoft Azure":"azure.microsoft.com","Google Cloud Platform":"cloud.google.com",DigitalOcean:"digitalocean.com",Heroku:"heroku.com",Docker:"docker.com",Kubernetes:"kubernetes.io",Terraform:"terraform.io",Jenkins:"jenkins.io",Postman:"postman.com",Vercel:"vercel.com",Netlify:"netlify.com",Firebase:"firebase.google.com",AutoCAD:"autodesk.com",SolidWorks:"solidworks.com","Autodesk Revit":"autodesk.com","Fusion 360":"autodesk.com",SketchUp:"sketchup.com",Rhino:"rhino3d.com","Civil 3D":"autodesk.com",CATIA:"3ds.com",Tableau:"tableau.com","Power BI":"powerbi.microsoft.com","Looker Studio":"lookerstudio.google.com",QlikView:"qlik.com",Sisense:"sisense.com","Google Analytics 4":"analytics.google.com",Mixpanel:"mixpanel.com",Amplitude:"amplitude.com",Segment:"segment.com",Hotjar:"hotjar.com",Datadog:"datadoghq.com",ChatGPT:"openai.com",Claude:"anthropic.com",Gemini:"gemini.google.com",Midjourney:"midjourney.com",Jasper:"jasper.ai","Copy.ai":"copy.ai",Perplexity:"perplexity.ai","Otter.ai":"otter.ai",Descript:"descript.com",ElevenLabs:"elevenlabs.io",NotebookLM:"notebooklm.google.com",MySQL:"mysql.com",PostgreSQL:"postgresql.org",MongoDB:"mongodb.com",Snowflake:"snowflake.com",Supabase:"supabase.com",Redis:"redis.io",Salesforce:"salesforce.com",HubSpot:"hubspot.com",Pipedrive:"pipedrive.com","Zoho CRM":"zoho.com","Microsoft Dynamics 365":"dynamics.microsoft.com",Mailchimp:"mailchimp.com",Klaviyo:"klaviyo.com",ActiveCampaign:"activecampaign.com",Marketo:"marketo.com","Constant Contact":"constantcontact.com",Brevo:"brevo.com",SEMrush:"semrush.com",Ahrefs:"ahrefs.com",Moz:"moz.com","Google Search Console":"search.google.com","Screaming Frog":"screamingfrog.co.uk",SpyFu:"spyfu.com",Hootsuite:"hootsuite.com","Sprout Social":"sproutsocial.com",Buffer:"buffer.com",Later:"later.com",Agorapulse:"agorapulse.com",Loomly:"loomly.com",Linktree:"linktr.ee",Shopify:"shopify.com",WooCommerce:"woocommerce.com",BigCommerce:"bigcommerce.com",Magento:"magento.com","Amazon Seller Central":"sellercentral.amazon.com",Etsy:"etsy.com","DaVinci Resolve":"blackmagicdesign.com","Final Cut Pro":"apple.com",CapCut:"capcut.com",Camtasia:"techsmith.com",LumaFusion:"luma-touch.com",Audacity:"audacityteam.org",GarageBand:"apple.com","Logic Pro":"apple.com","Ableton Live":"ableton.com","FL Studio":"image-line.com","Riverside.fm":"riverside.fm","Spotify for Podcasters":"podcasters.spotify.com","OBS Studio":"obsproject.com",StreamYard:"streamyard.com",Restream:"restream.io",ClickMeeting:"clickmeeting.com",GoToWebinar:"goto.com",QuickBooks:"quickbooks.intuit.com",Xero:"xero.com",FreshBooks:"freshbooks.com",NetSuite:"netsuite.com","Zoho Books":"zoho.com",Wave:"waveapps.com",Sage:"sage.com",Stripe:"stripe.com",PayPal:"paypal.com",Expensify:"expensify.com","Bill.com":"bill.com",Ramp:"ramp.com",Brex:"brex.com",BambooHR:"bamboohr.com",Workday:"workday.com",Greenhouse:"greenhouse.io",Lever:"lever.co",Rippling:"rippling.com",Gusto:"gusto.com",Deel:"deel.com",Lattice:"lattice.com","LinkedIn Recruiter":"linkedin.com",Zendesk:"zendesk.com",Intercom:"intercom.com",Freshdesk:"freshdesk.com",Gorgias:"gorgias.com","Help Scout":"helpscout.com",CrowdStrike:"crowdstrike.com","Palo Alto Networks":"paloaltonetworks.com",Okta:"okta.com","1Password":"1password.com",LastPass:"lastpass.com",Wireshark:"wireshark.org","Burp Suite":"portswigger.net",SentinelOne:"sentinelone.com","Jira Service Management":"atlassian.com",ServiceNow:"servicenow.com",Jamf:"jamf.com",TeamViewer:"teamviewer.com",AnyDesk:"anydesk.com","Epic Systems":"epic.com","Oracle Health":"oracle.com","Doxy.me":"doxy.me",Kareo:"kareo.com",Clio:"clio.com",MyCase:"mycase.com",Westlaw:"westlaw.com",LexisNexis:"lexisnexis.com",Canvas:"instructure.com",Moodle:"moodle.org","Google Classroom":"classroom.google.com",Teachable:"teach
538able.com",Kajabi:"kajabi.com",Thinkific:"thinkific.com",Duolingo:"duolingo.com",Coursera:"coursera.org",Udemy:"udemy.com","LinkedIn Learning":"linkedin.com",MasterClass:"masterclass.com",Skillshare:"skillshare.com"},LOGO_DEV_TOKEN="pk_cHp1J0vOS52eGKqN3kOdvw",LOCAL_LOGO_OVERRIDES={Stepily:"/stepily-logo-icon.svg"};function getAppLogoUrl(e,s){if(LOCAL_LOGO_OVERRIDES[e])return LOCAL_LOGO_OVERRIDES[e];const i=APP_DOMAIN_MAP[e]||s||guessDomain(e);return i?`https://img.logo.dev/${i}?token=${LOGO_DEV_TOKEN}&size=128&format=png`:null}function guessDomain(e){return e.toLowerCase().replace(/[^a-z0-9]/g,"")+".com"}function normalizeDomainInput(e){return e.trim().toLowerCase().replace(/^[a-z]+:\/\//,"").replace(/^www\./,"").replace(/[/?#].*$/,"").replace(/:\d+$/,"").replace(/\.+$/,"")}const DOMAIN_PATTERN=/^([a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z]{2,}$/;function isCompleteDomain(e){return DOMAIN_PATTERN.test(normalizeDomainInput(e))}const SECOND_LEVEL_LABELS=new Set(["co","com","net","org","gov","edu","ac"]);function brandLabelIndex(e){const s=e.length-2;return s>0&&SECOND_LEVEL_LABELS.has(e[s])?s-1:s}function registrableDomain(e){const s=normalizeDomainInput(e).split(".");return s.slice(Math.max(0,brandLabelIndex(s))).join(".")}function appNameFromDomain(e){const s=normalizeDomainInput(e).split(".");return(s[brandLabelIndex(s)]??s[0]??"").split("-").filter(Boolean).map(o=>o.charAt(0).toUpperCase()+o.slice(1)).join(" ")}const APPS_BY_DOMAIN=(()=>{const e={};for(const[s,i]of Object.entries(APP_DOMAIN_MAP))(e[i]??(e[i]=[])).push(s);return e})();function appsForDomain(e){return APPS_BY_DOMAIN[normalizeDomainInput(e)]??[]}function getInitials(e){const s=e.trim().split(/\s+/).filter(Boolean);return s.length===0?"?":s.slice(0,2).map(i=>i[0]).join("").toUpperCase()}function FilterPill({icon:e,label:s,active:i,children:o}){return jsxRuntimeExports.jsxs(Popover,{children:[jsxRuntimeExports.jsx(PopoverTrigger,{asChild:!0,children:jsxRuntimeExports.jsxs(Button,{type:"button",variant:"outline",className:cn("h-10 shrink-0 gap-2 rounded-md border-border bg-background px-3 text-sm font-semibold",i&&"border-teal-400 border text-foreground bg-background hover:bg-muted/40"),children:[jsxRuntimeExports.jsx(e,{className:"h-4 w-4"}),jsxRuntimeExports.jsx("span",{className:"max-w-[180px] truncate",children:s})]})}),jsxRuntimeExports.jsx(PopoverContent,{className:"w-72 p-2",align:"start",children:o})]})}function ChoiceButton({label:e,description:s,active:i,onClick:o}){return jsxRuntimeExports.jsxs("button",{type:"button",className:cn("flex w-full items-start gap-3 rounded-md px-3 py-2 text-left hover:bg-muted/50",i&&"border border-teal-400/60 bg-muted/30 text-foreground"),onClick:o,children:[jsxRuntimeExports.jsx("span",{className:"mt-0.5 flex h-5 w-5 items-center justify-center",children:i&&jsxRuntimeExports.jsx(Check,{className:"h-4 w-4 text-muted-foreground"})}),jsxRuntimeExports.jsxs("span",{className:"min-w-0",children:[jsxRuntimeExports.jsx("span",{className:"block text-sm font-medium leading-none",children:e}),s&&jsxRuntimeExports.jsx("span",{className:"mt-1 block text-xs leading-snug text-muted-foreground",children:s})]})]})}function SingleChoicePill({icon:e,label:s,value:i,options:o,onValueChange:a,active:c}){return jsxRuntimeExports.jsx(FilterPill,{icon:e,label:s,active:c,children:jsxRuntimeExports.jsx("div",{className:"space-y-1",children:o.map(d=>jsxRuntimeExports.jsx(ChoiceButton,{label:d.label,description:d.description,active:d.value===i,onClick:()=>a(d.value)},d.value))})})}function FacetPill({icon:e,defaultLabel:s,allLabel:i,value:o,options:a,searchPlaceholder:c,emptyLabel:d,onSelect:h,renderIcon:g}){const{t:b}=useTranslation(),[_,_e]=reactExports.useState(""),$=a.find(rt=>rt.id===o),et=_.trim().toLowerCase(),it=et?a.filter(rt=>rt.label.toLowerCase().includes(et)):a;return jsxRuntimeExports.jsx(FilterPill,{icon:e,label:($==null?void 0:$.label)??s,active:!!o,children:jsxRuntimeExports.jsxs("div",{className:"space-y-2",children:[jsxRuntimeExports.jsx(Input,{value:_,onChange:rt=>_e(rt.target.value),placeholder:c,className:"h-9"}),jsxRuntimeExports.jsxs("div",{className:"max-h-64 overflow-y-auto pr-1",children:[jsxRuntimeExports.jsx(ChoiceButton,{label:i,active:!o,onClick:()=>{h(null),_e("")}}),jsxRuntimeExports.jsx(Separator$1,{className:"my-1"}),it.length===0?jsxRuntimeExports.jsx("div",{className:"px-3 py-6 text-center text-sm text-muted-foreground",children:d}):it.map(rt=>jsxRuntimeExports.jsxs("button",{type:"button",className:cn("flex w-full items-center gap-3 rounded-md px-3 py-2 text-left hover:bg-muted/50",rt.id===o&&"border border-teal-400/60 bg-muted/30 text-foreground"),onClick:()=>{h(rt.id),_e("")},children:[g(rt),jsxRuntimeExports.jsxs("span",{className:"min-w-0 flex-1",children:[jsxRuntimeExports.jsx("span",{className:"block truncate text-sm font-medium",children:rt.label}),jsxRuntimeExports.jsx("span",{className:"block text-xs text-muted-foreground",children:b(rt.count===1?"globalSearch.optionResultCountSingular":"globalSearch.optionResultCountPlural",{c
538ount:rt.count})})]}),rt.id===o&&jsxRuntimeExports.jsx(Check,{className:"h-4 w-4 text-muted-foreground"})]},rt.id))]})]})})}function AppIcon({app:e}){const s=e?getAppLogoUrl(e):null;return s?jsxRuntimeExports.jsx("img",{src:s,alt:e??"",className:"h-5 w-5 rounded object-contain"}):jsxRuntimeExports.jsx(Earth,{className:"h-4 w-4 text-muted-foreground"})}function ResultIcon({result:e}){const s=e.app?getAppLogoUrl(e.app):null,i=e.type==="workbook"?BookOpen:FileText;return jsxRuntimeExports.jsx("span",{className:"flex h-10 w-10 shrink-0 items-center justify-center rounded-full border bg-background shadow-sm",children:s?jsxRuntimeExports.jsx("img",{src:s,alt:e.app??"",className:"h-5 w-5 rounded object-contain"}):jsxRuntimeExports.jsx(i,{className:"h-5 w-5 text-muted-foreground"})})}function ResultRow({result:e,onSelect:s,selectable:i=!1,selected:o=!1,alreadyAdded:a=!1}){const{t:c}=useTranslation(),d=e.type==="tutorial"?formatDuration(e.durationSeconds,e.estimatedTime):null;return jsxRuntimeExports.jsxs("button",{type:"button",disabled:a,"aria-pressed":i?o||a:void 0,className:cn("group flex w-full items-center gap-4 border-b px-4 py-4 text-left transition-colors hover:bg-muted/50",o&&"bg-muted/40",a&&"cursor-default opacity-60 hover:bg-transparent"),onClick:()=>s(e),children:[i&&jsxRuntimeExports.jsx("span",{className:cn("flex h-5 w-5 shrink-0 items-center justify-center rounded border",o||a?"border-primary bg-primary text-primary-foreground":"border-input"),children:(o||a)&&jsxRuntimeExports.jsx(Check,{className:"h-3.5 w-3.5"})}),jsxRuntimeExports.jsx(ResultIcon,{result:e}),jsxRuntimeExports.jsxs("span",{className:"min-w-0 flex-1",children:[jsxRuntimeExports.jsx("span",{className:"block truncate text-base font-medium text-foreground",children:e.title}),e.description&&jsxRuntimeExports.jsx("span",{className:"mt-1 block truncate text-sm text-muted-foreground",children:e.description}),jsxRuntimeExports.jsxs("span",{className:"mt-2 flex flex-wrap items-center gap-2 text-sm text-muted-foreground",children:[e.workspace&&jsxRuntimeExports.jsxs("span",{className:"inline-flex items-center gap-1 rounded-md bg-muted px-2 py-0.5 font-medium text-foreground",children:[jsxRuntimeExports.jsx(Users,{className:"h-3.5 w-3.5"}),e.workspace.name]}),e.creator&&jsxRuntimeExports.jsx("span",{children:e.creator.name}),jsxRuntimeExports.jsx("span",{children:e.type==="workbook"?c("globalSearch.resultRow.workbookType"):c("globalSearch.resultRow.tutorialType")}),e.app&&jsxRuntimeExports.jsx("span",{children:e.app}),e.totalSteps!=null&&jsxRuntimeExports.jsx("span",{children:c("globalSearch.resultRow.stepsCount",{count:e.totalSteps})}),d&&jsxRuntimeExports.jsx("span",{children:d}),a&&jsxRuntimeExports.jsx("span",{className:"font-medium text-foreground",children:c("globalSearch.selection.alreadyAdded")})]})]})]})}function GlobalSearchDialog({open:e,onOpenChange:s,initialQuery:i="",mode:o="navigate",documentType:a,disabledIds:c,onConfirmSelection:d}){const{t:h}=useTranslation(),g=o==="select",b=[{value:"all",label:h("globalSearch.scopes.all.label"),description:h("globalSearch.scopes.all.description")},{value:"workspace",label:h("globalSearch.scopes.workspace.label"),description:h("globalSearch.scopes.workspace.description")},{value:"community",label:h("globalSearch.scopes.community.label"),description:h("globalSearch.scopes.community.description")}],_=[{value:"all",label:h("globalSearch.documents.all.label"),description:h("globalSearch.documents.all.description")},{value:"tutorial",label:h("globalSearch.documents.tutorial.label"),description:h("globalSearch.documents.tutorial.description")},{value:"workbook",label:h("globalSearch.documents.workbook.label"),description:h("globalSearch.documents.workbook.description")}],_e=gt=>{var xt;return((xt=b.find(Rt=>Rt.value===gt))==null?void 0:xt.label)??h("globalSearch.scopes.all.label")},$=gt=>{var xt;return((xt=_.find(Rt=>Rt.value===gt))==null?void 0:xt.label)??h("globalSearch.documents.all.label")},et=useNavigate(),[it,rt]=reactExports.useState(i),[lt,st]=reactExports.useState(DEFAULT_GLOBAL_SEARCH_FILTERS),[ot,nt]=reactExports.useState([]),at=reactExports.useMemo(()=>a?{...lt,documentType:a}:lt,[a,lt]),{results:ct,facets:dt,totalCount:pt,loading:mt,error:St}=useGlobalSearch(it,at,e),Pt=reactExports.useMemo(()=>new Set(c??[]),[c]),Mt=reactExports.useMemo(()=>new Set(ot.map(gt=>gt.id)),[ot]);reactExports.useEffect(()=>{e&&(rt(i),nt([]))},[i,e]);const Ct=reactExports.useMemo(()=>dt.creators.find(gt=>gt.id===lt.creatorId)??null,[dt.creators,lt.creatorId]),Nt=reactExports.useMemo(()=>dt.applications.find(gt=>gt.id===lt.app)??null,[dt.applications,lt.app]),kt=reactExports.useMemo(()=>dt.workspaces.find(gt=>gt.id===lt.workspaceId)??null,[dt.workspaces,lt.workspaceId]),At=lt.scope!=="all"||!a&<.documentType!=="all"||!!lt.creatorId||!!lt.workspaceId||!!lt.app,ft=gt=>{st(xt=>({...xt,...gt}))},Et=()=>{st(DEFAULT_GLOBAL_SEARCH_FILTERS)},ut=gt=>{if(g){if(Pt.has(gt.id))return;nt(xt=>xt.some(Rt=>Rt.id===gt.id)?xt.filter(Rt=>Rt.id!==gt.id):[...xt,gt]);return}s(!1),et(gt.href)},ht=()=>{d==null||d(ot),s(!1)};return jsxRuntimeExports.jsx(Dialog,{open:e,onOpenChange:s,children:jsxRuntimeExports.jsxs(DialogContent,{className:"flex max-h-[70vh] max-w-[720px] flex-col gap-0 overflow-hidden p-0 shadow-2xl [&>button]:hidden",children:[jsxRuntimeExports.jsx(DialogTitle,{className:"sr-only",children:h("globalSearch.dialogTitle")}),jsxRuntimeExports.jsxs("div",{className:"p-5",children:[jsxRuntimeExports.jsxs("div",{className:"relative",children:[jsxRuntimeExports.jsx(Search,{className:"absolute left-3 top-1/2 h-4 w-4 -translate-y-1/2 text-muted-foreground"}),jsxRuntimeExports.jsx(Input,{autoFocus:!0,value:it,onChange:gt=>rt(gt.target.value),placeholder:h("globalSearch.searchInputPlaceholder"),className:"h-10 rounded-md border-border bg-muted/50 pl-10 pr-10 text-sm"}),jsxRuntimeExports.jsx("button",{type:"button",className:"absolute right-2 top-1/2 -translate-y-1/2 roun
538ded-md p-1 text-muted-foreground hover:bg-button-hover hover:text-button-hover-foreground","aria-label":h(it?"globalSearch.clearSearch":"globalSearch.closeSearch"),onClick:()=>{it?rt(""):s(!1)},children:jsxRuntimeExports.jsx(X,{className:"h-4 w-4"})})]}),jsxRuntimeExports.jsxs("div",{className:"mt-5 flex gap-3 overflow-x-auto pb-1",children:[jsxRuntimeExports.jsx(SingleChoicePill,{icon:Layers,label:_e(lt.scope),value:lt.scope,options:b,active:lt.scope!=="all",onValueChange:gt=>ft({scope:gt,workspaceId:gt==="community"?null:lt.workspaceId})}),jsxRuntimeExports.jsx(FacetPill,{icon:UserRound,defaultLabel:h("globalSearch.creator.default"),allLabel:h("globalSearch.creator.all"),value:(Ct==null?void 0:Ct.id)??lt.creatorId,options:dt.creators,searchPlaceholder:h("globalSearch.creator.searchPlaceholder"),emptyLabel:h("globalSearch.creator.empty"),onSelect:gt=>ft({creatorId:gt}),renderIcon:gt=>jsxRuntimeExports.jsxs(Avatar,{className:"h-8 w-8",children:[jsxRuntimeExports.jsx(AvatarImage,{src:gt.avatarUrl??void 0}),jsxRuntimeExports.jsx(AvatarFallback,{className:"text-xs",children:getInitials(gt.label)})]})}),!a&&jsxRuntimeExports.jsx(SingleChoicePill,{icon:FileText,label:$(lt.documentType),value:lt.documentType,options:_,active:lt.documentType!=="all",onValueChange:gt=>ft({documentType:gt})}),jsxRuntimeExports.jsx(FacetPill,{icon:Building2,defaultLabel:h("globalSearch.workspace.default"),allLabel:h("globalSearch.workspace.all"),value:(kt==null?void 0:kt.id)??lt.workspaceId,options:dt.workspaces,searchPlaceholder:h("globalSearch.workspace.searchPlaceholder"),emptyLabel:h("globalSearch.workspace.empty"),onSelect:gt=>ft({workspaceId:gt,scope:gt?"workspace":lt.scope}),renderIcon:gt=>jsxRuntimeExports.jsx("span",{className:"flex h-8 w-8 items-center justify-center rounded-full bg-primary/10 text-xs font-semibold text-primary",children:getInitials(gt.label)})}),jsxRuntimeExports.jsx(FacetPill,{icon:Earth,defaultLabel:h("globalSearch.application.default"),allLabel:h("globalSearch.application.all"),value:(Nt==null?void 0:Nt.id)??lt.app,options:dt.applications,searchPlaceholder:h("globalSearch.application.searchPlaceholder"),emptyLabel:h("globalSearch.application.empty"),onSelect:gt=>ft({app:gt}),renderIcon:gt=>jsxRuntimeExports.jsx("span",{className:"flex h-8 w-8 items-center justify-center rounded-full border bg-background",children:jsxRuntimeExports.jsx(AppIcon,{app:gt.label})})})]})]}),jsxRuntimeExports.jsx(Separator$1,{}),jsxRuntimeExports.jsxs("div",{className:"flex min-h-0 flex-1 flex-col",children:[jsxRuntimeExports.jsxs("div",{className:"flex items-center justify-between px-5 py-4",children:[jsxRuntimeExports.jsx("h2",{className:"text-xl font-semibold",children:pt===1?h("globalSearch.resultsCountSingular",{count:pt}):h("globalSearch.resultsCountPlural",{count:pt})}),At&&jsxRuntimeExports.jsx(Button,{type:"button",variant:"ghost",size:"sm",onClick:Et,children:h("globalSearch.clearFilters")})]}),jsxRuntimeExports.jsx(ScrollArea,{className:"min-h-[210px] flex-1",children:mt?jsxRuntimeExports.jsxs("div",{className:"flex min-h-[210px] items-center justify-center text-muted-foreground",children:[jsxRuntimeExports.jsx(LoaderCircle,{className:"mr-2 h-5 w-5 animate-spin"}),h("globalSearch.searching")]}):St?jsxRuntimeExports.jsxs("div",{className:"flex min-h-[210px] flex-col items-center justify-center gap-3 px-6 text-center",children:[jsxRuntimeExports.jsx("p",{className:"font-medium text-destructive",children:h("globalSearch.searchFailedTitle")}),jsxRuntimeExports.jsx("p",{className:"max-w-md text-sm text-muted-foreground",children:St})]}):ct.length===0?jsxRuntimeExports.jsxs("div",{className:"flex min-h-[210px] flex-col items-center justify-center gap-3 px-6 text-center",children:[jsxRuntimeExports.jsx(Search,{className:"h-8 w-8 text-muted-foreground"}),jsxRuntimeExports.jsx("p",{className:"font-medium",children:h("globalSearch.noResults.title")}),jsxRuntimeExports.jsx("p",{className:"max-w-md text-sm text-muted-foreground",children:h("globalSearch.noResults.hint")}),jsxRuntimeExports.jsx(Button,{type:"button",variant:"outline",onClick:()=>{rt(""),Et()},children:h("globalSearch.noResults.clearButton")})]}):jsxRuntimeExports.jsx("div",{children:ct.map(gt=>jsxRuntimeExports.jsx(ResultRow,{result:gt,onSelect:ut,selectable:g,selected:Mt.has(gt.id),alreadyAdded:Pt.has(gt.id)},`${gt.type}-${gt.id}`))})}),g&&jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(Separator$1,{}),jsxRuntimeExports.jsxs("div",{className:"flex items-center justify-between gap-3 px-5 py-3",children:[jsxRuntimeExports.jsx("p",{className:"text-sm text-muted-foreground",children:h("globalSearch.selection.selectedCount",{count:ot.length})}),jsxRuntimeExports.jsxs("div",{className:"flex items-center gap-2",children:[jsxRuntimeExports.jsx(Button,{type:"button",variant:"outline",onClick:()=>s(!1),children:h("globalSearch.selection.cancel")}),jsxRuntimeExports.jsx(Button,{type:"button",disabled:ot.length===0,onClick:ht,children:h("globalSearch.selection.confirm",{count:ot.length})})]})]})]})]})]})})}const DESKTOP_CLIENT_ID="seequence-desktop",DESKTOP_PLATFORMS=["mac","win"],formatDownloadSize=e=>`${Math.round(e/1e6)} MB`;function detectPlatform(){if(typeof navigator>"u")return"mac";const e=`${navigator.userAgent} ${navigator.platform??""}`;return/Macintosh|Mac OS X|MacIntel/i.test(e)?"mac":/Windows NT|Win32|Win64/i.test(e)?"win":"mac"}async function fetchDesktopReleases(){const e=await Promise.all(DESKTOP_PLATFORMS.map(async s=>{try{const i=await fetch(`/api/desktop/latest?platform=${s}`,{cache:"no-store"});return i.ok?[s,await i.json()]:[s,null]}catch{return[s,null]}}));return Object.fromEntries(e.filter(([,s])=>s!==null))}
538class DesktopDownloadError extends Error{}async function createDesktopDownloadUrl(e){const{data:{session:s}}=await supabase.auth.getSession();if(!(s!=null&&s.access_token))throw new DesktopDownloadError("not signed in");const i=await fetch(`/api/desktop/grant?platform=${e}`,{method:"POST",headers:{Authorization:`Bearer ${s.access_token}`}});if(!i.ok)throw new DesktopDownloadError(`grant request returned ${i.status}`);const{downloadUrl:o}=await i.json();if(typeof o!="string"||!o)throw new DesktopDownloadError("grant response carried no download URL");return o}const CONNECTED_CHECK_TIMEOUT_MS=1500;async function hasConnectedDesktopApp(){try{const e=supabase.from("extension_access_tokens").select("id").eq("client_id",DESKTOP_CLIENT_ID).eq("revoked",!1).limit(1).then(({data:i,error:o})=>o?(console.warn("[desktopApp] could not check for a connected desktop app:",o.message),!1):((i==null?void 0:i.length)??0)>0),s=new Promise(i=>{setTimeout(()=>i(!1),CONNECTED_CHECK_TIMEOUT_MS)});return await Promise.race([e,s])}catch(e){return console.warn("[desktopApp] connected desktop app check failed:",e),!1}}const PLATFORM_ICON={mac:Apple,win:Monitor},DesktopDownloadDialog=({open:e,onOpenChange:s,alreadyInstalled:i=!1})=>{const{t:o}=useTranslation(),a=useNavigate(),[c,d]=reactExports.useState(null),[h,g]=reactExports.useState(null),b=detectPlatform(),_=b==="win"?["win","mac"]:["mac","win"];reactExports.useEffect(()=>{if(!e){d(null);return}if(c!==null)return;let it=!1;return fetchDesktopReleases().then(rt=>{it||d(rt)}),()=>{it=!0}},[e,c]);const _e=reactExports.useCallback(async it=>{g(it);try{window.location.href=await createDesktopDownloadUrl(it)}catch(rt){console.error("[DesktopDownloadDialog] download failed:",rt),ue.error(o("desktopDownload.errors.failed"))}finally{g(null)}},[o]),$=c===null,et=!$&&Object.keys(c).length>0;return jsxRuntimeExports.jsx(Dialog,{open:e,onOpenChange:s,children:jsxRuntimeExports.jsxs(DialogContent,{className:"sm:max-w-[26rem]",children:[jsxRuntimeExports.jsxs(DialogHeader,{children:[jsxRuntimeExports.jsx(DialogTitle,{children:o(i?"desktopDownload.installed.title":"desktopDownload.title")}),jsxRuntimeExports.jsx(DialogDescription,{children:o(i?"desktopDownload.installed.description":"desktopDownload.description")})]}),i&&jsxRuntimeExports.jsx(Button,{variant:"secondary",className:"w-full",onClick:()=>{s(!1),a("/dashboard?tab=desktop-uploads")},children:o("desktopDownload.installed.viewUploads")}),jsxRuntimeExports.jsxs("div",{className:"space-y-2",children:[i&&jsxRuntimeExports.jsx("p",{className:"pt-1 text-xs font-medium uppercase tracking-wide text-muted-foreground",children:o("desktopDownload.installed.downloadAgain")}),$&&jsxRuntimeExports.jsxs("p",{className:"flex items-center gap-2 py-2 text-sm text-muted-foreground",children:[jsxRuntimeExports.jsx(LoaderCircle,{className:"h-4 w-4 animate-spin","aria-hidden":"true"}),o("desktopDownload.loading")]}),!$&&!et&&jsxRuntimeExports.jsxs("p",{className:"flex items-center gap-2 py-2 text-sm text-muted-foreground",children:[jsxRuntimeExports.jsx(Download,{className:"h-4 w-4","aria-hidden":"true"}),o("desktopDownload.unavailable")]}),!$&&_.map(it=>{const rt=c[it];if(!rt)return null;const lt=PLATFORM_ICON[it],st=h===it;return jsxRuntimeExports.jsxs(Button,{variant:it===b&&!i?"default":"outline",className:"h-auto w-full justify-start gap-3 py-3",disabled:h!==null,onClick:()=>void _e(it),children:[st?jsxRuntimeExports.jsx(LoaderCircle,{className:"h-4 w-4 shrink-0 animate-spin","aria-hidden":"true"}):jsxRuntimeExports.jsx(lt,{className:"h-4 w-4 shrink-0","aria-hidden":"true"}),jsxRuntimeExports.jsxs("span",{className:"flex flex-col items-start text-left",children:[jsxRuntimeExports.jsx("span",{className:"text-sm font-medium",children:o(`desktopDownload.platforms.${it}.label`)}),jsxRuntimeExports.jsxs("span",{className:"text-xs font-normal opacity-80",children:[o(`desktopDownload.platforms.${it}.requirements`),` · ${rt.version}`,rt.size?` · ${formatDownloadSize(rt.size)}`:""]})]})]},it)})]}),et&&jsxRuntimeExports.jsxs("p",{className:"flex items-start gap-2 text-xs leading-5 text-muted-foreground",children:[jsxRuntimeExports.jsx(ShieldCheck,{className:"mt-0.5 h-3.5 w-3.5 shrink-0 text-emerald-600","aria-hidden":"true"}),o("desktopDownload.signed")]})]})})},EXTENSION_PIN_STATUS_TIMEOUT_MS=1200,EXTENSION_CAPTURE_PICKER_TIMEOUT_MS=3e3,CAPTURE_PICKER_CAPABILITY="capturePickerAck",getExtensionPinStatus=()=>{const e=`sq-pin-${Date.now()}-${Math.random().toString(36).slice(2,8)}`;let s=null,i=null,o=!1;const a=()=>{s!==null&&(window.clearTimeout(s),s=null),i&&window.removeEventListener("message",i)};return{promise:new Promise(d=>{const h=g=>{o||(o=!0,a(),d(g))};s=window.setTimeout(()=>{h({installed:!1,isPinned:null,capabilities:[]})},EXTENSION_PIN_STATUS_TIMEOUT_MS),i=g=>{if(g.source!==window)return;const b=g.data;!b||b.type!=="sq_extension_pin_status"||b.requestId!==e||h({installed:!!b.installed,isPinned:typeof b.isPinned=="boolean"?b.isPinned:null,capabilities:Array.isArray(b.capabilities)?b.capabilities.filter(_=>typeof _=="string"):[]})},window.addEventListener("message",i),window.postMessage({type:"sq_get_extension_pin_status",requestId:e},"*")}),cleanup:a}}
538,canOpenCapturePicker=e=>e.installed&&e.capabilities.includes(CAPTURE_PICKER_CAPABILITY),openExtensionCapturePicker=()=>{const e=`sq-picker-${Date.now()}-${Math.random().toString(36).slice(2,8)}`;let s=null,i=null,o=!1;const a=()=>{s!==null&&(window.clearTimeout(s),s=null),i&&window.removeEventListener("message",i)};return{promise:new Promise(d=>{const h=g=>{o||(o=!0,a(),d(g))};s=window.setTimeout(()=>{h({opened:!1,error:"timeout"})},EXTENSION_CAPTURE_PICKER_TIMEOUT_MS),i=g=>{if(g.source!==window)return;const b=g.data;!b||b.type!=="sq_capture_picker_opened"||b.requestId!==e||h({opened:!!b.opened,error:typeof b.error=="string"?b.error:null})},window.addEventListener("message",i),window.dispatchEvent(new CustomEvent("sq_open_capture_picker",{detail:{requestId:e}}))}),cleanup:a}},EXTENSION_PIN_STATUS_POLL_INTERVAL_MS=1500;function BrowserFrame({children:e}){return jsxRuntimeExports.jsxs("div",{className:"mx-auto w-full max-w-[22rem] rounded-xl bg-gradient-to-br from-violet-200 via-indigo-100 to-sky-300 p-4",children:[jsxRuntimeExports.jsx("div",{className:"rounded-t-xl bg-white px-3 py-2 shadow-sm",children:jsxRuntimeExports.jsxs("div",{className:"flex items-center gap-2",children:[jsxRuntimeExports.jsx("div",{className:"h-7 flex-1 rounded-tl-md rounded-tr-2xl bg-muted"}),jsxRuntimeExports.jsxs("div",{className:"relative flex h-9 w-9 items-center justify-center text-[#3f4f3a]",children:[jsxRuntimeExports.jsx("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",className:"h-5 w-5",fill:"none",stroke:"currentColor",strokeWidth:"2.2",strokeLinecap:"round",strokeLinejoin:"round",children:jsxRuntimeExports.jsx("path",{d:"M8.5 4H11a1 1 0 0 1 2 0h2.5A1.5 1.5 0 0 1 17 5.5V9h2a1 1 0 0 1 1 1v4a1 1 0 0 1-1 1h-2v3.5a1.5 1.5 0 0 1-1.5 1.5H4.5A1.5 1.5 0 0 1 3 18.5V15h1a3 3 0 0 0 0-6H3V5.5A1.5 1.5 0 0 1 4.5 4h4z"})}),jsxRuntimeExports.jsx("div",{className:"pointer-events-none absolute left-1/2 top-1/2 h-16 w-16 -translate-x-1/2 -translate-y-1/2 rounded-full bg-red-600/15",children:jsxRuntimeExports.jsx("div",{className:"absolute inset-0 rounded-full border-[3px] border-red-600 opacity-70"})})]}),jsxRuntimeExports.jsx("div",{className:"h-9 w-9"}),jsxRuntimeExports.jsx(EllipsisVertical,{className:"h-5 w-5 text-foreground"})]})}),jsxRuntimeExports.jsx("div",{className:"relative flex min-h-[10rem] items-start justify-center rounded-b-xl bg-sky-100/45 px-4 pb-5 pt-4",children:e})]})}function PinExtensionGraphic(){const{t:e}=useTranslation();return jsxRuntimeExports.jsx(BrowserFrame,{children:jsxRuntimeExports.jsxs("div",{className:"w-[78%] rounded-xl bg-white p-4 shadow-md",children:[jsxRuntimeExports.jsx("p",{className:"text-sm font-semibold text-foreground",children:e("compactHeader.extensionsLabel")}),jsxRuntimeExports.jsx("p",{className:"mt-1 text-xs text-muted-foreground",children:e("compactHeader.pinHint")}),jsxRuntimeExports.jsxs("div",{className:"mt-4 flex items-center justify-between gap-3",children:[jsxRuntimeExports.jsxs("div",{className:"flex items-center gap-3",children:[jsxRuntimeExports.jsx("img",{src:stepilyLogo,alt:"",className:"h-10 w-10 object-contain"}),jsxRuntimeExports.jsx("span",{className:"text-lg font-bold text-foreground",children:"Stepily"})]}),jsxRuntimeExports.jsx("div",{className:"flex h-9 w-9 items-center justify-center rounded-md bg-blue-50 text-blue-600",children:jsxRuntimeExports.jsx(Pin,{className:"h-5 w-5 fill-current"})})]})]})})}function RecordExtensionGraphic(){const{t:e}=useTranslation();return jsxRuntimeExports.jsxs("div",{className:"mx-auto w-full max-w-[22rem] rounded-2xl border border-[#dfeae2] bg-[#fffef8] p-3 shadow-sm",children:[jsxRuntimeExports.jsxs("div",{className:"flex items-center justify-between gap-3",children:[jsxRuntimeExports.jsxs("div",{className:"flex items-center gap-3",children:[jsxRuntimeExports.jsx("img",{src:stepilyLogo,alt:"",className:"h-11 w-11 object-contain"}),jsxRuntimeExports.jsxs("div",{children:[jsxRuntimeExports.jsx("p",{className:"text-xl font-bold text-[#2b424a]",children:"Stepily"}),jsxRuntimeExports.jsx("div",{className:"mt-1 h-px w-16 bg-[#d4e4e2]"})]})]}),jsxRuntimeExports.jsxs("div",{className:"flex items-center gap-2",children:[jsxRuntimeExports.jsx("div",{className:"flex h-11 w-11 items-center justify-center rounded-lg border border-[#dbe8e7] bg-white text-[#2b424a]",children:jsxRuntimeExports.jsx(Search,{className:"h-6 w-6",strokeWidth:2.4})}),jsxRuntimeExports.jsx("div",{className:"flex h-11 w-11 items-center justify-center rounded-lg border border-[#dbe8e7] bg-white text-[#2b424a]",children:jsxRuntimeExports.jsx(Settings,{className:"h-6 w-6",strokeWidth:2.4})})]})]}),jsxRuntimeExports.jsx("div",{className:"mt-8 rounded-lg border border-[#dbe8e7] bg-white p-3",children:jsxRuntimeExports.jsxs("div",{className:"flex items-center justify-center gap-3 rounded-md border-2 border-[#78c9bd] py-3 text-[#2b424a]",children:[jsxRuntimeExports.jsx("span",{className:"h-3.5 w-3.5 rounded-full bg-[#2b424a]"}),jsxRuntimeExports.jsx("span",{className:"text-lg font-bold",children:e("compactHeader.startRecording")})]})}),jsxRuntimeExports.jsx("div",{className:"h-28"})]})}const CompactHeader=()=>{const{t:e}=useTranslation(),s=useNavigate(),i=useLocation(),{hasPaidEntitlement:o,loading:a}=useUserRole(),c=reactExports.useRef(null),d=reactExports.useRef(null),[h,g]=reactExports.useState(""),[b,_]=reactExports.useState(!1),[_e,$]=reactExports.useState(!1),[et,it]=reactExports.useState("pin"),[rt,lt]=reactExports.useState(!1),[st,ot]=reactExports.useState(!1),nt=new URLSearchParams(i.search).get("tab")??"",at=i.pathname==="/"||i.pathname==="/dashboard"&&(nt==="favorites"||nt==="following"||nt.startsWith("following-user-")),ct=Ct=>{Ct.preventDefault(),_(!0)},dt=Ct=>{_(Ct),Ct||g("")};reactExports.useEffect(()=>()=>{var Ct,Nt;
538(Ct=c.current)==null||Ct.call(c),(Nt=d.current)==null||Nt.call(d)},[]),reactExports.useEffect(()=>{if(!_e||et!=="pin")return;let Ct=!0,Nt=null,kt=null;const At=async()=>{const{promise:ft,cleanup:Et}=getExtensionPinStatus();kt=Et;let ut;try{ut=await ft}finally{kt===Et&&(kt=null)}if(Ct){if(ut.isPinned===!0){it("record");return}Nt=window.setTimeout(()=>void At(),EXTENSION_PIN_STATUS_POLL_INTERVAL_MS)}};return At(),()=>{Ct=!1,Nt!==null&&window.clearTimeout(Nt),kt==null||kt()}},[_e,et]);const pt=async()=>{var kt;(kt=c.current)==null||kt.call(c);const{promise:Ct,cleanup:Nt}=getExtensionPinStatus();c.current=Nt;try{return await Ct}finally{c.current===Nt&&(c.current=null)}},mt=async Ct=>{var At;if(!canOpenCapturePicker(Ct))return!1;(At=d.current)==null||At.call(d);const{promise:Nt,cleanup:kt}=openExtensionCapturePicker();d.current=kt;try{return(await Nt).opened}finally{d.current===kt&&(d.current=null)}},St=async()=>{const Ct=await pt();if(!Ct.installed){it("install"),$(!0);return}await mt(Ct)||(it(Ct.isPinned===!0?"record":"pin"),$(!0))},Pt=async()=>{ot(await hasConnectedDesktopApp()),lt(!0)},Mt=async()=>{const Ct=await pt();if(await mt(Ct)){$(!1);return}it(Ct.isPinned===!0?"record":"pin")};return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsxs("header",{className:"compact-header sticky top-0 z-50 h-12 border-b bg-sidebar flex items-center justify-between px-4",children:[jsxRuntimeExports.jsxs("div",{className:"compact-header__brand flex items-center gap-2",children:[jsxRuntimeExports.jsx(SidebarTrigger,{className:"text-sidebar-foreground hover:bg-sidebar-accent"}),jsxRuntimeExports.jsxs(Link,{to:"/",className:"flex items-center gap-2 text-sidebar-foreground",children:[jsxRuntimeExports.jsx("img",{src:stepilyLogo,alt:e("header.logoAlt"),className:"w-6 h-6"}),jsxRuntimeExports.jsx("span",{className:`compact-header__wordmark font-semibold text-sm ${IS_STAGING?"text-red-600 font-bold":""}`,children:IS_STAGING?"STAGING Stepily":"Stepily"})]})]}),at&&jsxRuntimeExports.jsx("form",{onSubmit:ct,className:"compact-header__search flex-1 max-w-md mx-6",children:jsxRuntimeExports.jsxs("div",{className:"relative",children:[jsxRuntimeExports.jsx(Search,{className:"absolute left-2.5 top-1/2 -translate-y-1/2 h-3.5 w-3.5 text-muted-foreground"}),jsxRuntimeExports.jsx(Input,{placeholder:e("compactHeader.searchPlaceholder"),className:"pl-8 h-8 text-sm bg-background border-border",value:h,"aria-label":e("compactHeader.searchAriaLabel"),onFocus:()=>_(!0),onChange:Ct=>{g(Ct.target.value),_(!0)}})]})}),jsxRuntimeExports.jsxs("div",{className:"compact-header__actions flex items-center gap-2",children:[!a&&!o&&jsxRuntimeExports.jsxs(Button,{size:"sm",variant:"outline",className:"compact-header__upgrade gap-1 border-primary/30 text-primary hover:bg-primary/40 hover:text-white",onClick:()=>s("/checkout?plan=pro"),children:[jsxRuntimeExports.jsx(Sparkles,{className:"h-3.5 w-3.5"}),jsxRuntimeExports.jsx("span",{children:e("compactHeader.upgradeToPro")})]}),jsxRuntimeExports.jsxs(DropdownMenu,{children:[jsxRuntimeExports.jsx(DropdownMenuTrigger,{asChild:!0,children:jsxRuntimeExports.jsxs(Button,{size:"sm",className:"compact-header__new gap-1",children:[e("compactHeader.createNew"),jsxRuntimeExports.jsx(ChevronDown,{className:"h-3.5 w-3.5"})]})}),jsxRuntimeExports.jsxs(DropdownMenuContent,{align:"end",className:"w-56",children:[jsxRuntimeExports.jsxs(DropdownMenuItem,{className:"gap-2",onSelect:()=>{St()},children:[jsxRuntimeExports.jsx(Globe,{className:"h-4 w-4 shrink-0"}),jsxRuntimeExports.jsx("span",{children:e("compactHeader.create.browser")})]}),jsxRuntimeExports.jsxs(DropdownMenuItem,{className:"gap-2",onSelect:()=>{Pt()},children:[jsxRuntimeExports.jsx(Monitor,{className:"h-4 w-4 shrink-0"}),jsxRuntimeExports.jsx("span",{children:e("compactHeader.create.desktop")})]}),jsxRuntimeExports.jsxs(DropdownMenuItem,{className:"gap-2",onSelect:()=>s("/workbook/new"),children:[jsxRuntimeExports.jsx(BookOpen,{className:"h-4 w-4 shrink-0"}),jsxRuntimeExports.jsx("span",{children:e("compactHeader.create.
538workbook")})]})]})]})]})]}),jsxRuntimeExports.jsx(Dialog,{open:_e,onOpenChange:$,children:jsxRuntimeExports.jsxs(DialogContent,{className:"left-4 right-4 top-16 w-auto max-w-none translate-x-0 translate-y-0 gap-0 rounded-2xl p-6 sm:left-auto sm:right-6 sm:top-16 sm:w-full sm:max-w-[25rem]",children:[jsxRuntimeExports.jsxs(DialogHeader,{className:"sr-only",children:[jsxRuntimeExports.jsx(DialogTitle,{children:e(et==="install"?"compactHeader.dialog.install.srTitle":et==="pin"?"compactHeader.dialog.pin.srTitle":"compactHeader.dialog.record.srTitle")}),jsxRuntimeExports.jsx(DialogDescription,{children:e(et==="install"?"compactHeader.dialog.install.srDescription":et==="pin"?"compactHeader.dialog.pin.srDescription":"compactHeader.dialog.record.srDescription")})]}),et==="install"?jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(PinExtensionGraphic,{}),jsxRuntimeExports.jsxs("div",{className:"mt-8 text-center",children:[jsxRuntimeExports.jsx("h2",{className:"text-2xl font-bold text-foreground",children:e("compactHeader.dialog.install.heading")}),jsxRuntimeExports.jsx("p",{className:"mx-auto mt-3 max-w-[20rem] text-base leading-relaxed text-muted-foreground",children:e("compactHeader.dialog.install.description")})]}),jsxRuntimeExports.jsx(DialogFooter,{className:"mt-10",children:jsxRuntimeExports.jsx(Button,{asChild:!0,className:"h-12 w-full rounded-full text-base font-semibold",children:jsxRuntimeExports.jsx("a",{href:CHROME_WEB_STORE_URL,target:"_blank",rel:"noopener noreferrer",children:e("compactHeader.dialog.install.button")})})})]}):et==="pin"?jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(PinExtensionGraphic,{}),jsxRuntimeExports.jsxs("div",{className:"mt-8 text-center",children:[jsxRuntimeExports.jsx("h2",{className:"text-2xl font-bold text-foreground",children:e("compactHeader.dialog.pin.heading")}),jsxRuntimeExports.jsx("p",{className:"mx-auto mt-3 max-w-[20rem] text-base leading-relaxed text-muted-foreground",children:e("compactHeader.dialog.pin.description")})]}),jsxRuntimeExports.jsxs("div",{className:"mt-8 flex justify-center gap-3",children:[jsxRuntimeExports.jsx("span",{className:"h-2.5 w-2.5 rounded-full bg-primary"}),jsxRuntimeExports.jsx("span",{className:"h-2.5 w-2.5 rounded-full bg-muted-foreground/30"})]}),jsxRuntimeExports.jsx(DialogFooter,{className:"mt-12",children:jsxRuntimeExports.jsx(Button,{className:"h-12 w-full rounded-full text-base font-semibold",onClick:()=>void Mt(),children:e("compactHeader.dialog.pin.button")})})]}):jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(RecordExtensionGraphic,{}),jsxRuntimeExports.jsxs("div",{className:"mt-8 text-center",children:[jsxRuntimeExports.jsx("h2",{className:"text-2xl font-bold text-foreground",children:e("compactHeader.dialog.record.heading")}),jsxRuntimeExports.jsx("p",{className:"mx-auto mt-3 max-w-[20rem] text-base leading-relaxed text-muted-foreground",children:e("compactHeader.dialog.record.description")})]}),jsxRuntimeExports.jsxs("div",{className:"mt-8 flex justify-center gap-3",children:[jsxRuntimeExports.jsx("span",{className:"h-2.5 w-2.5 rounded-full bg-muted-foreground/30"}),jsxRuntimeExports.jsx("span",{className:"h-2.5 w-2.5 rounded-full bg-primary"})]}),jsxRuntimeExports.jsxs(DialogFooter,{className:"mt-12 grid grid-cols-2 gap-3 sm:grid-cols-2",children:[jsxRuntimeExports.jsx(Button,{variant:"outline",className:"h-12 rounded-full text-base font-semibold",onClick:()=>it("pin"),children:e("compactHeader.dialog.record.back")}),jsxRuntimeExports.jsx(Button,{variant:"secondary",className:"h-12 rounded-full border border-primary/40 bg-primary/10 text-base font-semibold text-primary hover:bg-primary/15",onClick:()=>$(!1),children:e("compactHeader.dialog.record.done")})]})]})]})}),jsxRuntimeExports.jsx(DesktopDownloadDialog,{open:rt,onOpenChange:lt,alreadyInstalled:st}),at&&jsxRuntimeExports.jsx(GlobalSearchDialog,{open:b,onOpenChange:dt,initialQuery:h})]})},AuthenticatedLayout=({children:e})=>jsxRuntimeExports.jsx(SidebarProvider,{defaultOpen:!0,children:jsxRuntimeExports.jsxs("div",{className:"app-shell min-h-screen flex w-full",children:[jsxRuntimeExports.jsx(AppSidebar,{}),jsxRuntimeExports.jsxs(SidebarInset,{className:"app-shell__content flex flex-col",children:[jsxRuntimeExports.jsx(CompactHeader,{}),jsxRuntimeExports.jsx("main",{className:"app-shell__main flex-1 overflow-auto",children:e})]})]})});
538class TimeoutError extends Error{constructor(s="Request timed out"){super(s),this.name="TimeoutError"}}function createTimeoutSignal(e){const s=new AbortController,i=window.setTimeout(()=>s.abort(new TimeoutError),e);return{signal:s.signal,clear:()=>window.clearTimeout(i)}}const ONBOARDING_QUERY_TIMEOUT_MS=6e3;function useFirstTimeOnboarding(e){const[s,i]=reactExports.useState(e?"loading":"not-needed"),[o,a]=reactExports.useState(0),c=reactExports.useRef(e);c.current!==e&&(c.current=e,i(e?"loading":"not-needed")),reactExports.useEffect(()=>{if(!e){i("not-needed");return}let g=!0;i("loading");const{signal:b,clear:_}=createTimeoutSignal(ONBOARDING_QUERY_TIMEOUT_MS);return supabase.from("profiles").select("onboarding_completed_at").eq("id",e).abortSignal(b).maybeSingle().then(({data:_e,error:$})=>{if(_(),!!g){if($){console.error("Failed to load onboarding status:",$),i("error");return}i(_e!=null&&_e.onboarding_completed_at?"not-needed":"needed")}}).catch(_e=>{_(),console.error("Unexpected error loading onboarding status:",_e),g&&i("error")}),()=>{g=!1,_()}},[e,o]);const d=reactExports.useCallback(()=>{a(g=>g+1)},[]);return{status:s,loading:s==="loading",needsOnboarding:s==="needed",error:s==="error",retry:d,completeOnboarding:async()=>{if(!e)return{data:null,error:{message:"Cannot complete onboarding without a user."}};const g=new Date().toISOString(),b=await supabase.from("profiles").update({onboarding_completed_at:g}).eq("id",e);return b.error||i("not-needed"),b}}}var lottie$1={exports:{}};(function(module,exports){typeof document<"u"&&typeof navigator<"u"&&function(e,s){module.exports=s()}(commonjsGlobal,function(){var svgNS="http://www.w3.org/2000/svg",locationHref="",_useWebWorker=!1,initialDefaultFrame=-999999,setWebWorker=function(s){_useWebWorker=!!s},getWebWorker=function(){return _useWebWorker},setLocationHref=function(s){locationHref=s},getLocationHref=function(){return locationHref};function createTag(e){return document.createElement(e)}function extendPrototype(e,s){var i,o=e.length,a;for(i=0;i<o;
vendor: 6,329 bytes, line 538
538i+=1){a=e[i].prototype;for(var c in a)Object.prototype.hasOwnProperty.call(a,c)&&(s.prototype[c]=a[c])}}function getDescriptor(e,s){return Object.getOwnPropertyDescriptor(e,s)}function createProxyFunction(e){function s(){}return s.prototype=e,s}var audioControllerFactory=function(){function e(s){this.audios=[],this.audioFactory=s,this._volume=1,this._isMuted=!1}return e.prototype={addAudio:function(i){this.audios.push(i)},pause:function(){var i,o=this.audios.length;for(i=0;i<o;i+=1)this.audios[i].pause()},resume:function(){var i,o=this.audios.length;for(i=0;i<o;i+=1)this.audios[i].resume()},setRate:function(i){var o,a=this.audios.length;for(o=0;o<a;o+=1)this.audios[o].setRate(i)},createAudio:function(i){return this.audioFactory?this.audioFactory(i):window.Howl?new window.Howl({src:[i]}):{isPlaying:!1,play:function(){this.isPlaying=!0},seek:function(){this.isPlaying=!1},playing:function(){},rate:function(){},setVolume:function(){}}},setAudioFactory:function(i){this.audioFactory=i},setVolume:function(i){this._volume=i,this._updateVolume()},mute:function(){this._isMuted=!0,this._updateVolume()},unmute:function(){this._isMuted=!1,this._updateVolume()},getVolume:function(){return this._volume},_updateVolume:function(){var i,o=this.audios.length;for(i=0;i<o;i+=1)this.audios[i].volume(this._volume*(this._isMuted?0:1))}},function(){return new e}}(),createTypedArray=function(){function e(i,o){var a=0,c=[],d;switch(i){case"int16":case"uint8c":d=1;break;default:d=1.1;break}for(a=0;a<o;a+=1)c.push(d);return c}function s(i,o){return i==="float32"?new Float32Array(o):i==="int16"?new Int16Array(o):i==="uint8c"?new Uint8ClampedArray(o):e(i,o)}return typeof Uint8ClampedArray=="function"&&typeof Float32Array=="function"?s: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(s){return typeof s}:function(s){return s&&typeof Symbol=="function"&&s.constructor===Symbol&&s!==Symbol.prototype?"symbol":typeof s},_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"],s,i=e.length;for(s=0;s<i;s+=1)BMMath[e[s]]=Math[e[s]]})(),BMMath.random=Math.random,BMMath.abs=function(e){var s=_typeof$6(e);if(s==="object"&&e.length){var i=createSizedArray(e.length),o,a=e.length;for(o=0;o<a;o+=1)i[o]=Math.abs(e[o]);return i}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,s,i,o){this.type=e,this.currentTime=s,this.totalTime=i,this.direction=o<0?-1:1}function BMCompleteEvent(e,s){this.type=e,this.direction=s<0?-1:1}function BMCompleteLoopEvent(e,s,i,o){this.type=e,this.currentLoop=i,this.totalLoops=s,this.direction=o<0?-1:1}function BMSegmentStartEvent(e,s,i){this.type=e,this.firstFrame=s,this.totalFrames=i}function BMDestroyEvent(e,s){this.type=e,this.target=s}function BMRenderFrameErrorEvent(e,s){this.type="renderFrameError",this.nativeError=e,this.currentTime=s}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,s,i){var o,a,c,d,h,g,b,_;switch(d=Math.floor(e*6),h=e*6-d,g=i*(1-s),b=i*(1-h*s),_=i*(1-(1-h)*s),d%6){case 0:o=i,a=_,c=g;break;case 1:o=b,a=i,c=g;break;case 2:o=g,a=i,c=_;break;case 3:o=g,a=b,c=i;break;case 4:o=_,a=g,c=i;break;case 5:o=i,a=g,c=b;break}return[o,a,c]}function RGBtoHSV(e,s,i){var o=Math.max(e,s,i),a=Math.min(e,s,i),c=o-a,d,h=o===0?0:c/o,g=o/255;switch(o){case a:d=0;break;case e:d=s-i+c*(s<i?6:0),d/=6*c;break;case s:d=i-e+c*2,d/=6*c;break;case i:d=e-s+c*4,d/=6*c;break}return[d,h,g]}function addSaturationToRGB(e,s){var i=RGBtoHSV(e[0]*255,e[1]*255,e[2]*255);return i[1]+=s,i[1]>1?i[1]=1:i[1]<=0&&(i[1]=0),HSVtoRGB(i[0],i[1],i[2])}function addBrightnessToRGB(e,s){var i=RGBtoHSV(e[0]*255,e[1]*255,e[2]*255);return i[2]+=s,i[2]>1?i[2]=1:i[2]<0&&(i[2]=0),HSVtoRGB(i[0],i[1],i[2])}function addHueToRGB(e,s){var i=RGBtoHSV(e[0]*255,e[1]*255,e[2]*255);return i[0]+=s/360,i[0]>1?i[0]-=1:i[0]<0&&(i[0]+=1),HSVtoRGB(i[0],i[1],i[2])}var rgbToHex=function(){var e=[],s,i;for(s=0;s<256;s+=1)i=s.toString(16),e[s]=i.length===1?"0"+i:i;return function(o,a,c){return o<0&&(o=0),a<0&&(a=0),c<0&&(c=0),"#"+e[o]+e[a]+e[c]}}(),setSubframeEnabled=function(s){subframeEnabled=!!s},getSubframeEnabled=function(){return subframeEnabled},setExpressionsPlugin=function(s){expressionsPlugin=s},getExpressionsPlugin=function(){return expressionsPlugin},setExpressionInterfaces=function(s){expressionsInterfaces=s},getExpressionInterfaces=function(){return expressionsInterfaces},setDefaultCurveSegments=function(s){defaultCurveSegments=s},getDefaultCurveSegments=function(){return defaultCurveSegments},setIdPrefix=function(s){idPrefix$1=s};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(s){return typeof s}:function(s){return s&&typeof Symbol=="function"&&s.constructor===Symbol&&s!==Symbol.prototype?"symbol":typeof s},_typeof$5(e)}var dataManager=function(){var e=1,s=[],i,o,a={onmessage:function(){},postMessage:function(et){i({data:et})}},c={postMessage:function(et){a.onmessage({data:et})}};function d($){if(window.Worker&&window.Blob&&getWebWorker()){var et=new Blob(["var _workerSelf = self;
538 self.onmessage = ",$.toString()],{type:"text/javascript"}),it=URL.createObjectURL(et);return new Worker(it)}return i=$,a}function h(){o||(o=d(function(et){function it(){function lt(At,ft){var Et,ut,ht=At.length,gt,xt,Rt,Tt;for(ut=0;ut<ht;ut+=1)if(Et=At[ut],"ks"in Et&&!Et.completed){if(Et.completed=!0,Et.hasMask){var It=Et.masksProperties;for(xt=It.length,gt=0;gt<xt;gt+=1)if(It[gt].pt.k.i)ct(It[gt].pt.k);else for(Tt=It[gt].pt.k.length,Rt=0;Rt<Tt;Rt+=1)It[gt].pt.k[Rt].s&&ct(It[gt].pt.k[Rt].s[0]),It[gt].pt.k[Rt].e&&ct(It[gt].pt.k[Rt].e[0])}Et.ty===0?(Et.layers=nt(Et.refId,ft),lt(Et.layers,ft)):Et.ty===4?at(Et.shapes):Et.ty===5&&Nt(Et)}}function st(At,ft){if(At){var Et=0,ut=At.length;for(Et=0;Et<ut;Et+=1)At[Et].t===1&&(At[Et].data.layers=nt(At[Et].data.refId,ft),lt(At[Et].data.layers,ft))}}function ot(At,ft){for(var Et=0,ut=ft.length;Et<ut;){if(ft[Et].id===At)return ft[Et];Et+=1}return null}function nt(At,ft){var Et=ot(At,ft);return Et?Et.layers.__used?JSON.parse(JSON.stringify(Et.layers)):(Et.layers.__used=!0,Et.layers):null}function at(At){var ft,Et=At.length,ut,ht;for(ft=Et-1;ft>=0;ft-=1)if(At[ft].ty==="sh")if(At[ft].ks.k.i)ct(At[ft].ks.k);else for(ht=At[ft].ks.k.length,ut=0;ut<ht;ut+=1)At[ft].ks.k[ut].s&&ct(At[ft].ks.k[ut].s[0]),At[ft].ks.k[ut].e&&ct(At[ft].ks.k[ut].e[0]);else At[ft].ty==="gr"&&at(At[ft].it)}function ct(At){var ft,Et=At.i.length;for(ft=0;ft<Et;ft+=1)At.i[ft][0]+=At.v[ft][0],At.i[ft][1]+=At.v[ft][1],At.o[ft][0]+=At.v[ft][0],At.o[ft][1]+=At.v[ft][1]}function dt(At,ft){var Et=ft?ft.split("."):[100,100,100];return At[0]>Et[0]?!0:Et[0]>At[0]?!1:At[1]>Et[1]?!0:Et[1]>At[1]?!1:At[2]>Et[2]?!0:Et[2]>At[2]?!1:null}var pt=function(){var At=[4,4,14];function ft(ut){var ht=ut.t.d;ut.t.d={k:[{s:ht,t:0}]}}function Et(ut){var ht,gt=ut.length;for(ht=0;ht<gt;ht+=1)ut[ht].ty===5&&ft(ut[ht])}return function(ut){if(dt(At,ut.v)&&(Et(ut.layers),ut.assets)){var ht,gt=ut.assets.length;for(ht=0;ht<gt;ht+=1)ut.assets[ht].layers&&Et(ut.assets[ht].layers)}}}(),mt=function(){var At=[4,7,99];return function(ft){if(ft.chars&&!dt(At,ft.v)){var Et,ut=ft.chars.length;for(Et=0;Et<ut;Et+=1){var ht=ft.chars[Et];ht.data&&ht.data.shapes&&(at(ht.data.shapes),ht.data.ip=0,ht.data.op=99999,ht.data.st=0,ht.data.sr=1,ht.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}},ft.chars[Et].t||(ht.data.shapes.push({ty:"no"}),ht.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"})))}}}}(),St=function(){var At=[5,7,15];function ft(ut){var ht=ut.t.p;typeof ht.a=="number"&&(ht.a={a:0,k:ht.a}),typeof ht.p=="number"&&(ht.p={a:0,k:ht.p}),typeof ht.r=="number"&&(ht.r={a:0,k:ht.r})}function Et(ut){var ht,gt=ut.length;for(ht=0;ht<gt;ht+=1)ut[ht].ty===5&&ft(ut[ht])}return function(ut){if(dt(At,ut.v)&&(Et(ut.layers),ut.assets)){var ht,gt=ut.assets.length;for(ht=0;ht<gt;ht+=1)ut.assets[ht].layers&&Et(ut.assets[ht].layers)}}}(),Pt=function(){var At=[4,1,9];function ft(ut){var ht,gt=ut.length,xt,Rt;for(ht=0;ht<gt;ht+=1)if(ut[ht].ty==="gr")ft(ut[ht].it);else if(ut[ht].ty==="fl"||ut[ht].ty==="st")if(ut[ht].c.k&&ut[ht].c.k[0].i)for(Rt=ut[ht].c.k.length,xt=0;xt<Rt;xt+=1)ut[ht].c.k[xt].s&&(ut[ht].c.k[xt].s[0]/=255,ut[ht].c.k[xt].s[1]/=255,ut[ht].c.k[xt].s[2]/=255,ut[ht].c.k[xt].s[3]/=255),ut[ht].c.k[xt].e&&(ut[ht].c.k[xt].e[0]/=255,ut[ht].c.k[xt].e[1]/=255,ut[ht].c.k[xt].e[2]/=255,ut[ht].c.k[xt].e[3]/=255);else ut[ht].c.k[0]/=255,ut[ht].c.k[1]/=255,ut[ht].c.k[2]/=255,ut[ht].c.k[3]/=255}function Et(ut){var ht,gt=ut.length;for(ht=0;ht<gt;ht+=1)ut[ht].ty===4&&ft(ut[ht].shapes)}return function(ut){if(dt(At,ut.v)&&(Et(ut.layers),ut.assets)){var ht,gt=ut.assets.length;for(ht=0;ht<gt;ht+=1)ut.assets[ht].layers&&Et(ut.assets[ht].layers)}}}(),Mt=function(){var At=[4,4,18];function ft(ut){var ht,gt=ut.length,xt,Rt;for(ht=gt-1;ht>=0;ht-=1)if(ut[ht].ty==="sh")if(ut[ht].ks.k.i)ut[ht].ks.k.c=ut[ht].closed;else for(Rt=ut[ht].ks.k.length,xt=0;xt<Rt;xt+=1)ut[ht].ks.k[xt].s&&(ut[ht].ks.k[xt].s[0].c=ut[ht].closed),ut[ht].ks.k[xt].e&&(ut[ht].ks.k[xt].e[0].c=ut[ht].closed);else ut[ht].ty==="gr"&&ft(ut[ht].it)}function Et(ut){var ht,gt,xt=ut.length,Rt,Tt,It,Lt;for(gt=0;gt<xt;gt+=1){if(ht=ut[gt],ht.hasMask){var $t=ht.masksProperties;for(Tt=$t.length,Rt=0;Rt<Tt;Rt+=1)if($t[Rt].pt.k.i)$t[Rt].pt.k.c=$t[Rt].cl;else for(Lt=$t[Rt].pt.k.length,It=0;It<Lt;It+=1)$t[Rt].pt.k[It].s&&($t[Rt].pt.k[It].s[0].c=$t[Rt].cl),$t[Rt].pt.k[It].e&&($t[Rt].pt.k[It].e[0].c=$t[Rt].cl)}ht.ty===4&&ft(ht.shapes)}}
vendor: 122,019 bytes, lines 538-546
538return function(ut){if(dt(At,ut.v)&&(Et(ut.layers),ut.assets)){var ht,gt=ut.assets.length;for(ht=0;ht<gt;ht+=1)ut.assets[ht].layers&&Et(ut.assets[ht].layers)}}}();function Ct(At){At.__complete||(Pt(At),pt(At),mt(At),St(At),Mt(At),lt(At.layers,At.assets),st(At.chars,At.assets),At.__complete=!0)}function Nt(At){At.t.a.length===0&&"m"in At.t.p}var kt={};return kt.completeData=Ct,kt.checkColors=Pt,kt.checkChars=mt,kt.checkPathProperties=St,kt.checkShapes=Mt,kt.completeLayers=lt,kt}if(c.dataManager||(c.dataManager=it()),c.assetLoader||(c.assetLoader=function(){function lt(ot){var nt=ot.getResponseHeader("content-type");return nt&&ot.responseType==="json"&&nt.indexOf("json")!==-1||ot.response&&_typeof$5(ot.response)==="object"?ot.response:ot.response&&typeof ot.response=="string"?JSON.parse(ot.response):ot.responseText?JSON.parse(ot.responseText):null}function st(ot,nt,at,ct){var dt,pt=new XMLHttpRequest;try{pt.responseType="json"}catch{}pt.onreadystatechange=function(){if(pt.readyState===4)if(pt.status===200)dt=lt(pt),at(dt);else try{dt=lt(pt),at(dt)}catch(mt){ct&&ct(mt)}};try{pt.open(["G","E","T"].join(""),ot,!0)}catch{pt.open(["G","E","T"].join(""),nt+"/"+ot,!0)}pt.send()}return{load:st}}()),et.data.type==="loadAnimation")c.assetLoader.load(et.data.path,et.data.fullPath,function(lt){c.dataManager.completeData(lt),c.postMessage({id:et.data.id,payload:lt,status:"success"})},function(){c.postMessage({id:et.data.id,status:"error"})});else if(et.data.type==="complete"){var rt=et.data.animation;c.dataManager.completeData(rt),c.postMessage({id:et.data.id,payload:rt,status:"success"})}else et.data.type==="loadData"&&c.assetLoader.load(et.data.path,et.data.fullPath,function(lt){c.postMessage({id:et.data.id,payload:lt,status:"success"})},function(){c.postMessage({id:et.data.id,status:"error"})})}),o.onmessage=function($){var et=$.data,it=et.id,rt=s[it];s[it]=null,et.status==="success"?rt.onComplete(et.payload):rt.onError&&rt.onError()})}function g($,et){e+=1;var it="processId_"+e;return s[it]={onComplete:$,onError:et},it}function b($,et,it){h();var rt=g(et,it);o.postMessage({type:"loadAnimation",path:$,fullPath:window.location.origin+window.location.pathname,id:rt})}function _($,et,it){h();var rt=g(et,it);o.postMessage({type:"loadData",path:$,fullPath:window.location.origin+window.location.pathname,id:rt})}function _e($,et,it){h();var rt=g(et,it);o.postMessage({type:"complete",animation:$,id:rt})}return{loadAnimation:b,loadData:_,completeAnimation:_e}}(),ImagePreloader=function(){var e=function(){var st=createTag("canvas");st.width=1,st.height=1;var ot=st.getContext("2d");return ot.fillStyle="rgba(0,0,0,0)",ot.fillRect(0,0,1,1),st}();function s(){this.loadedAssets+=1,this.loadedAssets===this.totalImages&&this.loadedFootagesCount===this.totalFootages&&this.imagesLoadedCb&&this.imagesLoadedCb(null)}function i(){this.loadedFootagesCount+=1,this.loadedAssets===this.totalImages&&this.loadedFootagesCount===this.totalFootages&&this.imagesLoadedCb&&this.imagesLoadedCb(null)}function o(st,ot,nt){var at="";if(st.e)at=st.p;else if(ot){var ct=st.p;ct.indexOf("images/")!==-1&&(ct=ct.split("/")[1]),at=ot+ct}else at=nt,at+=st.u?st.u:"",at+=st.p;return at}function a(st){var ot=0,nt=setInterval((function(){var at=st.getBBox();(at.width||ot>500)&&(this._imageLoaded(),clearInterval(nt)),ot+=1}).bind(this),50)}function c(st){var ot=o(st,this.assetsPath,this.path),nt=createNS("image");isSafari?this.testImageLoaded(nt):nt.addEventListener("load",this._imageLoaded,!1),nt.addEventListener("error",(function(){at.img=e,this._imageLoaded()}).bind(this),!1),nt.setAttributeNS("http://www.w3.org/1999/xlink","href",ot),this._elementHelper.append?this._elementHelper.append(nt):this._elementHelper.appendChild(nt);var at={img:nt,assetData:st};return at}function d(st){var ot=o(st,this.assetsPath,this.path),nt=createTag("img");nt.crossOrigin="anonymous",nt.addEventListener("load",this._imageLoaded,!1),nt.addEventListener("error",(function(){at.img=e,this._imageLoaded()}).bind(this),!1),nt.src=ot;var at={img:nt,assetData:st};return at}function h(st){var ot={assetData:st},nt=o(st,this.assetsPath,this.path);return dataManager.loadData(nt,(function(at){ot.img=at,this._footageLoaded()}).bind(this),(function(){ot.img={},this._footageLoaded()}).bind(this)),ot}function g(st,ot){this.imagesLoadedCb=ot;var nt,at=st.length;for(nt=0;nt<at;nt+=1)st[nt].layers||(!st[nt].t||st[nt].t==="seq"?(this.totalImages+=1,this.images.push(this._createImageData(st[nt]))):st[nt].t===3&&(this.totalFootages+=1,this.images.push(this.createFootageData(st[nt]))))}function b(st){this.path=st||""}function _(st){this.assetsPath=st||""}function _e(st){for(var ot=0,nt=this.images.length;ot<nt;){if(this.images[ot].assetData===st)return this.images[ot].img;ot+=1}return null}function $(){this.imagesLoadedCb=null,this.images.length=0}function et(){return this.totalImages===this.loadedAssets}function it(){return this.totalFootages===this.loadedFootagesCount}function rt(st,ot){st==="svg"?(this._elementHelper=ot,this._createImageData=this.createImageData.bind(this)):this._createImageData=this.createImgData.bind(this)}function lt(){this._imageLoaded=s.bind(this),this._footageLoaded=i.bind(this),this.testImageLoaded=a.bind(this),this.createFootageData=h.bind(this),this.assetsPath="",this.path="",this.totalImages=0,this.totalFootages=0,this.loadedAssets=0,this.loadedFootagesCount=0,this.imagesLoadedCb=null,this.images=[]}return lt.prototype={loadAssets:g,setAssetsPath:_,setPath:b,loadedImages:et,loadedFootages:it,destroy:$,getAsset:_e,createImgData:d,createImageData:c,imageLoaded:s,footageLoaded:i,setCacheType:rt},lt}();function BaseEvent(){}BaseEvent.prototype={triggerEvent:function(s,i){if(this._cbs[s])for(var o=this._cbs[s],a=0;a<o.length;a+=1)o[a](i)},addEventListener:function(s,i){return this._cbs[s]||(this._cbs[s]=[]),this._cbs[s].push(i),(function(){this.removeEventListener(s,i)}).bind(this)},removeEventListener:function(s,i){if(!i)this._cbs[s]=null;else if(this._cbs[s]){for(var o=0,a=this._cbs[s].length;o<a;)this._cbs[s][o]===i&&(this._cbs[s].splice(o,1),o-=1,a-=1),o+=1;this._cbs[s].length||(this._cbs[s]=null)}}};var markerParser=function(){function e(s){for(var i=s.split(`\r 539`),o={},a,c=0,d=0;d<i.length;d+=1)a=i[d].split(":"),a.length===2&&(o[a[0]]=a[1].trim(),c+=1);if(c===0)throw new Error;return o}return function(s){for(var i=[],o=0;o<s.length;o+=1){var a=s[o],c={time:a.tm,duration:a.dr};try{c.payload=JSON.parse(s[o].cm)}catch{try{c.payload=e(s[o].cm)}catch{c.payload={name:s[o].cm}}}i.push(c)}return i}}(),ProjectInterface=function(){function e(s){this.compositions.push(s)}return function(){function s(i){for(var o=0,a=this.compositions.length;o<a;){if(this.compositions[o].data&&this.compositions[o].data.nm===i)return this.compositions[o].prepareFrame&&this.compositions[o].data.xt&&this.compositions[o].prepareFrame(this.currentFrame),this.compositions[o].compInterface;o+=1}return null}return s.compositions=[],s.currentFrame=0,s.registerComposition=e,s}}(),renderers={},registerRenderer=function(s,i){renderers[s]=i};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(s){return typeof s}:function(s){return s&&typeof Symbol=="function"&&s.constructor===Symbol&&s!==Symbol.prototype?"symbol":typeof s},_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 s="svg";e.animType?s=e.animType:e.renderer&&(s=e.renderer);var i=getRenderer(s);this.renderer=new i(this,e.rendererSettings),this.imagePreloader.setCacheType(s,this.renderer.globalData.defs),this.renderer.setProjectInterface(this.projectInterface),this.animType=s,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,s){s&&_typeof$4(s)!=="object"&&(s=JSON.parse(s));var i={wrapper:e,animationData:s},o=e.attributes;i.path=o.getNamedItem("data-animation-path")?o.getNamedItem("data-animation-path").value:o.getNamedItem("data-bm-path")?o.getNamedItem("data-bm-path").value:o.getNamedItem("bm-path")?o.getNamedItem("bm-path").value:"",i.animType=o.getNamedItem("data-anim-type")?o.getNamedItem("data-anim-type").value:o.getNamedItem("data-bm-type")?o.getNamedItem("data-bm-type").value:o.getNamedItem("bm-type")?o.getNamedItem("bm-type").value:o.getNamedItem("data-bm-renderer")?o.getNamedItem("data-bm-renderer").value:o.getNamedItem("bm-renderer")?o.getNamedItem("bm-renderer").value:getRegisteredRenderer()||"canvas";var a=o.getNamedItem("data-anim-loop")?o.getNamedItem("data-anim-loop").value:o.getNamedItem("data-bm-loop")?o.getNamedItem("data-bm-loop").value:o.getNamedItem("bm-loop")?o.getNamedItem("bm-loop").value:"";a==="false"?i.loop=!1:a==="true"?i.loop=!0:a!==""&&(i.loop=parseInt(a,10));var c=o.getNamedItem("data-anim-autoplay")?o.getNamedItem("data-anim-autoplay").value:o.getNamedItem("data-bm-autoplay")?o.getNamedItem("data-bm-autoplay").value:o.getNamedItem("bm-autoplay")?o.getNamedItem("bm-autoplay").value:!0;i.autoplay=c!=="false",i.name=o.getNamedItem("data-name")?o.getNamedItem("data-name").value:o.getNamedItem("data-bm-name")?o.getNamedItem("data-bm-name").value:o.getNamedItem("bm-name")?o.getNamedItem("bm-name").value:"";var d=o.getNamedItem("data-anim-prerender")?o.getNamedItem("data-anim-prerender").value:o.getNamedItem("data-bm-prerender")?o.getNamedItem("data-bm-prerender").value:o.getNamedItem("bm-prerender")?o.getNamedItem("bm-prerender").value:"";d==="false"&&(i.prerender=!1),i.path?this.setParams(i):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 s=this.animationData.layers,i,o=s.length,a=e.layers,c,d=a.length;for(c=0;c<d;c+=1)for(i=0;i<o;){if(s[i].id===a[c].id){s[i]=a[c];break}i+=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(o=e.assets.length,i=0;i<o;i+=1)this.animationData.assets.push(e.assets[i]);this.animationData.__complete=!1,dataManager.completeAnimation(this.animationData,this.onSegmentComplete)},AnimationItem.prototype.onSegmentComplete=function(e){this.animationData=e;var s=getExpressionsPlugin();s&&s.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 s=e.shift();this.timeCompleted=s.time*this.frameRate;var i=this.path+this.fileName+"_"+this.segmentPos+".json";this.segmentPos+=1,dataManager.loadData(i,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(s){this.triggerConfigError(s)}},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,s){var i=typeof e=="number"?e:void 0,o=typeof s=="number"?s:void 0;this.renderer.updateContainerSize(i,o)},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 s,i=0;i<this.markers.length;i+=1)if(s=this.markers[i],s.payload&&s.payload.name===e)return s;return null},AnimationItem.prototype.goToAndStop=function(e,s,i){if(!(i&&this.name!==i)){var o=Number(e);if(isNaN(o)){var a=this.getMarkerData(e);a&&this.goToAndStop(a.time,!0)}else s?this.setCurrentRawFrameValue(e):this.setCurrentRawFrameValue(e*this.frameModifier);this.pause()}},AnimationItem.prototype.goToAndPlay=function(e,s,i){if(!(i&&this.name!==i)){var o=Number(e);if(isNaN(o)){var a=this.getMarkerData(e);a&&(a.duration?this.playSegments([a.time,a.time+a.duration],!0):this.goToAndStop(a.time,!0))}else this.goToAndStop(o,s,i);this.play()}},AnimationItem.prototype.advanceTime=function(e){if(!(this.isPaused===!0||this.isLoaded===!1)){var s=this.currentRawFrame+e*this.frameModifier,i=!1;s>=this.totalFrames-1&&this.frameModifier>0?!this.loop||this.playCount===this.loop?this.checkSegments(s>this.totalFrames?s%this.totalFrames:0)||(i=!0,s=this.totalFrames-1):s>=this.totalFrames?(this.playCount+=1,this.checkSegments(s%this.totalFrames)||(this.setCurrentRawFrameValue(s%this.totalFrames),this._completedLoop=!0,this.trigger("loopComplete"))):this.setCurrentRawFrameValue(s):s<0?this.checkSegments(s%this.totalFrames)||(this.loop&&!(this.playCount--<=0&&this.loop!==!0)?(this.setCurrentRawFrameValue(this.totalFrames+s%this.totalFrames),this._completedLoop?this.trigger("loopComplete"):this._completedLoop=!0):(i=!0,s=0)):this.setCurrentRawFrameValue(s),i&&(this.setCurrentRawFrameValue(s),this.pause(),this.trigger("complete"))}},AnimationItem.prototype.adjustSegment=function(e,s){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-s)):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+s)),this.trigger("segmentStart")},AnimationItem.prototype.setSegment=function(e,s){var i=-1;this.isPaused&&(this.currentRawFrame+this.firstFrame<e?i=e:this.currentRawFrame+this.firstFrame>s&&(i=s-e)),this.firstFrame=e,this.totalFrames=s-e,this.timeCompleted=this.totalFrames,i!==-1&&this.goToAndStop(i,!0)},AnimationItem.prototype.playSegments=function(e,s){if(s&&(this.segments.length=0),_typeof$4(e[0])==="object"){var i,o=e.length;for(i=0;i<o;i+=1)this.segments.push(e[i])}else this.segments.push(e);this.segments.length&&s&&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,s){s&&this.name!==s||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 s="";if(e.e)s=e.p;else if(this.assetsPath){var i=e.p;i.indexOf("images/")!==-1&&(i=i.split("/")[1]),s=this.assetsPath+i}else s=this.path,s+=e.u?e.u:"",s+=e.p;return s},AnimationItem.prototype.getAssetData=function(e){for(var s=0,i=this.assets.length;s<i;){if(e===this.assets[s].id)return this.assets[s];s+=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,s,i){try{var o=this.renderer.getElementByPath(e);o.updateDocumentData(s,i)}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 s=new BMRenderFrameErrorEvent(e,this.currentFrame);this.triggerEvent("error",s),this.onError&&this.onError.call(this,s)},AnimationItem.prototype.triggerConfigError=function(e){var s=new BMConfigErrorEvent(e,this.currentFrame);this.triggerEvent("error",s),this.onError&&this.onError.call(this,s)};var animationManager=function(){var e={},s=[],i=0,o=0,a=0,c=!0,d=!1;function h(ft){for(var Et=0,ut=ft.target;Et<o;)s[Et].animation===ut&&(s.splice(Et,1),Et-=1,o-=1,ut.isPaused||_e()),Et+=1}function g(ft,Et){if(!ft)return null;for(var ut=0;ut<o;){if(s[ut].elem===ft&&s[ut].elem!==null)return s[ut].animation;ut+=1}var ht=new AnimationItem;return $(ht,ft),ht.setData(ft,Et),ht}function b(){var ft,Et=s.length,ut=[];for(ft=0;ft<Et;ft+=1)ut.push(s[ft].animation);return ut}function _(){a+=1,Pt()}function _e(){a-=1}function $(ft,Et){ft.addEventListener("destroy",h),ft.addEventListener("_active",_),ft.addEventListener("_idle",_e),s.push({elem:Et,animation:ft}),o+=1}function et(ft){var Et=new AnimationItem;return $(Et,null),Et.setParams(ft),Et}function it(ft,Et){var ut;for(ut=0;ut<o;ut+=1)s[ut].animation.setSpeed(ft,Et)}function rt(ft,Et){var ut;for(ut=0;ut<o;ut+=1)s[ut].animation.setDirection(ft,Et)}function lt(ft){var Et;for(Et=0;Et<o;Et+=1)s[Et].animation.play(ft)}function st(ft){var Et=ft-i,ut;for(ut=0;ut<o;ut+=1)s[ut].animation.advanceTime(Et);i=ft,a&&!d?window.requestAnimationFrame(st):c=!0}function ot(ft){i=ft,window.requestAnimationFrame(st)}function nt(ft){var Et;for(Et=0;Et<o;Et+=1)s[Et].animation.pause(ft)}function at(ft,Et,ut){var ht;for(ht=0;ht<o;ht+=1)s[ht].animation.goToAndStop(ft,Et,ut)}function ct(ft){var Et;for(Et=0;Et<o;Et+=1)s[Et].animation.stop(ft)}function dt(ft){var Et;for(Et=0;Et<o;Et+=1)s[Et].animation.togglePause(ft)}function pt(ft){var Et;for(Et=o-1;Et>=0;Et-=1)s[Et].animation.destroy(ft)}function mt(ft,Et,ut){var ht=[].concat([].slice.call(document.getElementsByClassName("lottie")),[].slice.call(document.getElementsByClassName("bodymovin"))),gt,xt=ht.length;for(gt=0;gt<xt;gt+=1)ut&&ht[gt].setAttribute("data-bm-type",ut),g(ht[gt],ft);if(Et&&xt===0){ut||(ut="svg");var Rt=document.getElementsByTagName("body")[0];Rt.innerText="";var Tt=createTag("div");Tt.style.width="100%",Tt.style.height="100%",Tt.setAttribute("data-bm-type",ut),Rt.appendChild(Tt),g(Tt,ft)}}function St(){var ft;for(ft=0;ft<o;ft+=1)s[ft].animation.resize()}function Pt(){!d&&a&&c&&(window.requestAnimationFrame(ot),c=!1)}function Mt(){d=!0}function Ct(){d=!1,Pt()}function Nt(ft,Et){var ut;for(ut=0;ut<o;ut+=1)s[ut].animation.setVolume(ft,Et)}function kt(ft){var Et;for(Et=0;Et<o;Et+=1)s[Et].animation.mute(ft)}function At(ft){var Et;for(Et=0;Et<o;Et+=1)s[Et].animation.unmute(ft)}return e.registerAnimation=g,e.loadAnimation=et,e.setSpeed=it,e.setDirection=rt,e.play=lt,e.pause=nt,e.stop=ct,e.togglePause=dt,e.searchAnimations=mt,e.resize=St,e.goToAndStop=at,e.destroy=pt,e.freeze=Mt,e.unfreeze=Ct,e.setVolume=Nt,e.mute=kt,e.unmute=At,e.getRegisteredAnimations=b,e}(),BezierFactory=function(){var e={};e.getBezierEasing=i;var s={};function i(ot,nt,at,ct,dt){var pt=dt||("bez_"+ot+"_"+nt+"_"+at+"_"+ct).replace(/\./g,"p");if(s[pt])return s[pt];var mt=new st([ot,nt,at,ct]);return s[pt]=mt,mt}var o=4,a=.001,c=1e-7,d=10,h=11,g=1/(h-1),b=typeof Float32Array=="function";function _(ot,nt){return 1-3*nt+3*ot}function _e(ot,nt){return 3*nt-6*ot}function $(ot){return 3*ot}function et(ot,nt,at){return((_(nt,at)*ot+_e(nt,at))*ot+$(nt))*ot}function it(ot,nt,at){return 3*_(nt,at)*ot*ot+2*_e(nt,at)*ot+$(nt)}function rt(ot,nt,at,ct,dt){var pt,mt,St=0;do mt=nt+(at-nt)/2,pt=et(mt,ct,dt)-ot,pt>0?at=mt:nt=mt;while(Math.abs(pt)>c&&++St<d);return mt}function lt(ot,nt,at,ct){for(var dt=0;dt<o;++dt){var pt=it(nt,at,ct);if(pt===0)return nt;var mt=et(nt,at,ct)-ot;nt-=mt/pt}return nt}function st(ot){this._p=ot,this._mSampleValues=b?new Float32Array(h):new Array(h),this._precomputed=!1,this.get=this.get.bind(this)}return st.prototype={get:function(nt){var at=this._p[0],ct=this._p[1],dt=this._p[2],pt=this._p[3];return this._precomputed||this._precompute(),at===ct&&dt===pt?nt:nt===0?0:nt===1?1:et(this._getTForX(nt),ct,pt)},_precompute:function(){var nt=this._p[0],at=this._p[1],ct=this._p[2],dt=this._p[3];this._precomputed=!0,(nt!==at||ct!==dt)&&this._calcSampleValues()},_calcSampleValues:function(){for(var nt=this._p[0],at=this._p[2],ct=0;ct<h;++ct)this._mSampleValues[ct]=et(ct*g,nt,at)},_getTForX:function(nt){for(var at=this._p[0],ct=this._p[2],dt=this._mSampleValues,pt=0,mt=1,St=h-1;mt!==St&&dt[mt]<=nt;++mt)pt+=g;--mt;var Pt=(nt-dt[mt])/(dt[mt+1]-dt[mt]),Mt=pt+Pt*g,Ct=it(Mt,at,ct);return Ct>=a?lt(nt,Mt,at,ct):Ct===0?Mt:rt(nt,pt,pt+g,at,ct)}},e}(),pooling=function(){function e(s){return s.concat(createSizedArray(s.length))}return{double:e}}(),poolFactory=function(){return function(e,s,i){var o=0,a=e,c=createSizedArray(a),d={newElement:h,release:g};function h(){var b;return o?(o-=1,b=c[o]):b=s(),b}function g(b){o===a&&(c=pooling.double(c),a*=2),i&&i(b),c[o]=b,o+=1}return d}}(),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 s(i){var o,a=i.lengths.length;for(o=0;o<a;o+=1)bezierLengthPool.release(i.lengths[o]);i.lengths.length=0}return poolFactory(8,e,s)}();function bezFunction(){var e=Math;function s($,et,it,rt,lt,st){var ot=$*rt+et*lt+it*st-lt*rt-st*$-it*et;return ot>-.001&&ot<.001}function i($,et,it,rt,lt,st,ot,nt,at){if(it===0&&st===0&&at===0)return s($,et,rt,lt,ot,nt);var ct=e.sqrt(e.pow(rt-$,2)+e.pow(lt-et,2)+e.pow(st-it,2)),dt=e.sqrt(e.pow(ot-$,2)+e.pow(nt-et,2)+e.pow(at-it,2)),pt=e.sqrt(e.pow(ot-rt,2)+e.pow(nt-lt,2)+e.pow(at-st,2)),mt;return ct>dt?ct>pt?mt=ct-dt-pt:mt=pt-dt-ct:pt>dt?mt=pt-dt-ct:mt=dt-ct-pt,mt>-1e-4&&mt<1e-4}var o=function(){return function($,et,it,rt){var lt=getDefaultCurveSegments(),st,ot,nt,at,ct,dt=0,pt,mt=[],St=[],Pt=bezierLengthPool.newElement();for(nt=it.length,st=0;st<lt;st+=1){for(ct=st/(lt-1),pt=0,ot=0;ot<nt;ot+=1)at=bmPow(1-ct,3)*$[ot]+3*bmPow(1-ct,2)*ct*it[ot]+3*(1-ct)*bmPow(ct,2)*rt[ot]+bmPow(ct,3)*et[ot],mt[ot]=at,St[ot]!==null&&(pt+=bmPow(mt[ot]-St[ot],2)),St[ot]=mt[ot];pt&&(pt=bmSqrt(pt),dt+=pt),Pt.percents[st]=ct,Pt.lengths[st]=dt}return Pt.addedLength=dt,Pt}}();function a($){var et=segmentsLengthPool.newElement(),it=$.c,rt=$.v,lt=$.o,st=$.i,ot,nt=$._length,at=et.lengths,ct=0;for(ot=0;ot<nt-1;ot+=1)at[ot]=o(rt[ot],rt[ot+1],lt[ot],st[ot+1]),ct+=at[ot].addedLength;return it&&nt&&(at[ot]=o(rt[ot],rt[0],lt[ot],st[0]),ct+=at[ot].addedLength),et.totalLength=ct,et}function c($){this.segmentLength=0,this.points=new Array($)}function d($,et){this.partialLength=$,this.point=et}var h=function(){var $={};return function(et,it,rt,lt){var st=(et[0]+"_"+et[1]+"_"+it[0]+"_"+it[1]+"_"+rt[0]+"_"+rt[1]+"_"+lt[0]+"_"+lt[1]).replace(/\./g,"p");if(!$[st]){var ot=getDefaultCurveSegments(),nt,at,ct,dt,pt,mt=0,St,Pt,Mt=null;et.length===2&&(et[0]!==it[0]||et[1]!==it[1])&&s(et[0],et[1],it[0],it[1],et[0]+rt[0],et[1]+rt[1])&&s(et[0],et[1],it[0],it[1],it[0]+lt[0],it[1]+lt[1])&&(ot=2);var Ct=new c(ot);for(ct=rt.length,nt=0;nt<ot;nt+=1){for(Pt=createSizedArray(ct),pt=nt/(ot-1),St=0,at=0;at<ct;at+=1)dt=bmPow(1-pt,3)*et[at]+3*bmPow(1-pt,2)*pt*(et[at]+rt[at])+3*(1-pt)*bmPow(pt,2)*(it[at]+lt[at])+bmPow(pt,3)*it[at],Pt[at]=dt,Mt!==null&&(St+=bmPow(Pt[at]-Mt[at],2));St=bmSqrt(St),mt+=St,Ct.points[nt]=new d(St,Pt),Mt=Pt}Ct.segmentLength=mt,$[st]=Ct}return $[st]}}();function g($,et){var it=et.percents,rt=et.lengths,lt=it.length,st=bmFloor((lt-1)*$),ot=$*et.addedLength,nt=0;if(st===lt-1||st===0||ot===rt[st])return it[st];for(var at=rt[st]>ot?-1:1,ct=!0;ct;)if(rt[st]<=ot&&rt[st+1]>ot?(nt=(ot-rt[st])/(rt[st+1]-rt[st]),ct=!1):st+=at,st<0||st>=lt-1){if(st===lt-1)return it[st];ct=!1}return it[st]+(it[st+1]-it[st])*nt}function b($,et,it,rt,lt,st){var ot=g(lt,st),nt=1-ot,at=e.round((nt*nt*nt*$[0]+(ot*nt*nt+nt*ot*nt+nt*nt*ot)*it[0]+(ot*ot*nt+nt*ot*ot+ot*nt*ot)*rt[0]+ot*ot*ot*et[0])*1e3)/1e3,ct=e.round((nt*nt*nt*$[1]+(ot*nt*nt+nt*ot*nt+nt*nt*ot)*it[1]+(ot*ot*nt+nt*ot*ot+ot*nt*ot)*rt[1]+ot*ot*ot*et[1])*1e3)/1e3;return[at,ct]}var _=createTypedArray("float32",8);function _e($,et,it,rt,lt,st,ot){lt<0?lt=0:lt>1&&(lt=1);var nt=g(lt,ot);st=st>1?1:st;var at=g(st,ot),ct,dt=$.length,pt=1-nt,mt=1-at,St=pt*pt*pt,Pt=nt*pt*pt*3,Mt=nt*nt*pt*3,Ct=nt*nt*nt,Nt=pt*pt*mt,kt=nt*pt*mt+pt*nt*mt+pt*pt*at,At=nt*nt*mt+pt*nt*at+nt*pt*at,ft=nt*nt*at,Et=pt*mt*mt,ut=nt*mt*mt+pt*at*mt+pt*mt*at,ht=nt*at*mt+pt*at*at+nt*mt*at,gt=nt*at*at,xt=mt*mt*mt,Rt=at*mt*mt+mt*at*mt+mt*mt*at,Tt=at*at*mt+mt*at*at+at*mt*at,It=at*at*at;for(ct=0;ct<dt;ct+=1)_[ct*4]=e.round((St*$[ct]+Pt*it[ct]+Mt*rt[ct]+Ct*et[ct])*1e3)/1e3,_[ct*4+1]=e.round((Nt*$[ct]+kt*it[ct]+At*rt[ct]+ft*et[ct])*1e3)/1e3,_[ct*4+2]=e.round((Et*$[ct]+ut*it[ct]+ht*rt[ct]+gt*et[ct])*1e3)/1e3,_[ct*4+3]=e.round((xt*$[ct]+Rt*it[ct]+Tt*rt[ct]+It*et[ct])*1e3)/1e3;return _}return{getSegmentsLength:a,getNewSegment:_e,getPointInSegment:b,buildBezierData:h,pointOnLine2D:s,pointOnLine3D:i}}var bez=bezFunction(),initFrame=initialDefaultFrame,mathAbs=Math.abs;function interpolateValue(e,s){var i=this.offsetTime,o;this.propType==="multidimensional"&&(o=createTypedArray("float32",this.pv.length));for(var a=s.lastIndex,c=a,d=this.keyframes.length-1,h=!0,g,b,_;h;){if(g=this.keyframes[c],b=this.keyframes[c+1],c===d-1&&e>=b.t-i){g.h&&(g=b),a=0;break}if(b.t-i>e){a=c;break}c<d-1?c+=1:(a=0,h=!1)}_=this.keyframesMetadata[c]||{};var _e,$,et,it,rt,lt,st=b.t-i,ot=g.t-i,nt;if(g.to){_.bezierData||(_.bezierData=bez.buildBezierData(g.s,b.s||g.e,g.to,g.ti));var at=_.bezierData;if(e>=st||e<ot){var ct=e>=st?at.points.length-1:0;for($=at.points[ct].point.length,_e=0;_e<$;_e+=1)o[_e]=at.points[ct].point[_e]}else{_.__fnct?lt=_.__fnct:(lt=BezierFactory.getBezierEasing(g.o.x,g.o.y,g.i.x,g.i.y,g.n).get,_.__fnct=lt),et=lt((e-ot)/(st-ot));var dt=at.segmentLength*et,pt,mt=s.lastFrame<e&&s._lastKeyframeIndex===c?s._lastAddedLength:0;for(rt=s.lastFrame<e&&s._lastKeyframeIndex===c?s._lastPoint:0,h=!0,it=at.points.length;h;){if(mt+=at.points[rt].partialLength,dt===0||et===0||rt===at.points.length-1){for($=at.points[rt].point.length,_e=0;_e<$;_e+=1)o[_e]=at.points[rt].point[_e];break}else if(dt>=mt&&dt<mt+at.points[rt+1].partialLength){for(pt=(dt-mt)/at.points[rt+1].partialLength,$=at.points[rt].point.length,_e=0;_e<$;_e+=1)o[_e]=at.points[rt].point[_e]+(at.points[rt+1].point[_e]-at.points[rt].point[_e])*pt;break}rt<it-1?rt+=1:h=!1}s._lastPoint=rt,s._lastAddedLength=mt-at.points[rt].partialLength,s._lastKeyframeIndex=c}}else{var St,Pt,Mt,Ct,Nt;if(d=g.s.length,nt=b.s||g.e,this.sh&&g.h!==1)if(e>=st)o[0]=nt[0],o[1]=nt[1],o[2]=nt[2];else if(e<=ot)o[0]=g.s[0],o[1]=g.s[1],o[2]=g.s[2];else{var kt=createQuaternion(g.s),At=createQuaternion(nt),ft=(e-ot)/(st-ot);quaternionToEuler(o,slerp(kt,At,ft))}else for(c=0;c<d;c+=1)g.h!==1&&(e>=st?et=1:e<ot?et=0:(g.o.x.constructor===Array?(_.__fnct||(_.__fnct=[]),_.__fnct[c]?lt=_.__fnct[c]:(St=g.o.x[c]===void 0?g.o.x[0]:g.o.x[c],Pt=g.o.y[c]===void 0?g.o.y[0]:g.o.y[c],Mt=g.i.x[c]===void 0?g.i.x[0]:g.i.x[c],Ct=g.i.y[c]===void 0?g.i.y[0]:g.i.y[c],lt=BezierFactory.getBezierEasing(St,Pt,Mt,Ct).get,_.__fnct[c]=lt)):_.__fnct?lt=_.__fnct:(St=g.o.x,Pt=g.o.y,Mt=g.i.x,Ct=g.i.y,lt=BezierFactory.getBezierEasing(St,Pt,Mt,Ct).get,g.keyframeMetadata=lt),et=lt((e-ot)/(st-ot)))),nt=b.s||g.e,Nt=g.h===1?g.s[c]:g.s[c]+(nt[c]-g.s[c])*et,this.propType==="multidimensional"?o[c]=Nt:o=Nt}return s.lastIndex=a,o}function slerp(e,s,i){var o=[],a=e[0],c=e[1],d=e[2],h=e[3],g=s[0],b=s[1],_=s[2],_e=s[3],$,et,it,rt,lt;return et=a*g+c*b+d*_+h*_e,et<0&&(et=-et,g=-g,b=-b,_=-_,_e=-_e),1-et>1e-6?($=Math.acos(et),it=Math.sin($),rt=Math.sin((1-i)*$)/it,lt=Math.sin(i*$)/it):(rt=1-i,lt=i),o[0]=rt*a+lt*g,o[1]=rt*c+lt*b,o[2]=rt*d+lt*_,o[3]=rt*h+lt*_e,o}function quaternionToEuler(e,s){var i=s[0],o=s[1],a=s[2],c=s[3],d=Math.atan2(2*o*c-2*i*a,1-2*o*o-2*a*a),h=Math.asin(2*i*o+2*a*c),g=Math.atan2(2*i*c-2*o*a,1-2*i*i-2*a*a);e[0]=d/degToRads,e[1]=h/degToRads,e[2]=g/degToRads}function createQuaternion(e){var s=e[0]*degToRads,i=e[1]*degToRads,o=e[2]*degToRads,a=Math.cos(s/2),c=Math.cos(i/2),d=Math.cos(o/2),h=Math.sin(s/2),g=Math.sin(i/2),b=Math.sin(o/2),_=a*c*d-h*g*b,_e=h*g*d+a*c*b,$=h*c*d+a*g*b,et=a*g*d-h*c*b;return[_e,$,et,_]}function getValueAtCurrentTime(){var e=this.comp.renderedFrame-this.offsetTime,s=this.keyframes[0].t-this.offsetTime,i=this.keyframes[this.keyframes.length-1].t-this.offsetTime;if(!(e===this._caching.lastFrame||this._caching.lastFrame!==initFrame&&(this._caching.lastFrame>=i&&e>=i||this._caching.lastFrame<s&&e<s))){this._caching.lastFrame>=e&&(this._caching._lastKeyframeIndex=-1,this._caching.lastIndex=0);var o=this.interpolateValue(e,this._caching);this.pv=o}return this._caching.lastFrame=e,this.pv}function setVValue(e){var s;if(this.propType==="unidimensional")s=e*this.mult,mathAbs(this.v-s)>1e-5&&(this.v=s,this._mdf=!0);else for(var i=0,o=this.v.length;i<o;)s=e[i]*this.mult,mathAbs(this.v[i]-s)>1e-5&&(this.v[i]=s,this._mdf=!0),i+=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,s=this.effectsSequence.length,i=this.kf?this.pv:this.data.k;for(e=0;e<s;e+=1)i=this.effectsSequence[e](i);this.setVValue(i),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,s,i,o){this.propType="unidimensional",this.mult=i||1,this.data=s,this.v=i?s.k*i:s.k,this.pv=s.k,this._mdf=!1,this.elem=e,this.container=o,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,s,i,o){this.propType="multidimensional",this.mult=i||1,this.data=s,this._mdf=!1,this.elem=e,this.container=o,this.comp=e.comp,this.k=!1,this.kf=!1,this.frameId=-1;var a,c=s.k.length;for(this.v=createTypedArray("float32",c),this.pv=createTypedArray("float32",c),this.vel=createTypedArray("float32",c),a=0;a<c;a+=1)this.v[a]=s.k[a]*this.mult,this.pv[a]=s.k[a];this._isFirstFrame=!0,this.effectsSequence=[],this.getValue=processEffectsSequence,this.setVValue=setVValue,this.addEffect=addEffect}function KeyframedValueProperty(e,s,i,o){this.propType="unidimensional",this.keyframes=s.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=s,this.mult=i||1,this.elem=e,this.container=o,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,s,i,o){this.propType="multidimensional";var a,c=s.k.length,d,h,g,b;for(a=0;a<c-1;a+=1)s.k[a].to&&s.k[a].s&&s.k[a+1]&&s.k[a+1].s&&(d=s.k[a].s,h=s.k[a+1].s,g=s.k[a].to,b=s.k[a].ti,(d.length===2&&!(d[0]===h[0]&&d[1]===h[1])&&bez.pointOnLine2D(d[0],d[1],h[0],h[1],d[0]+g[0],d[1]+g[1])&&bez.pointOnLine2D(d[0],d[1],h[0],h[1],h[0]+b[0],h[1]+b[1])||d.length===3&&!(d[0]===h[0]&&d[1]===h[1]&&d[2]===h[2])&&bez.pointOnLine3D(d[0],d[1],d[2],h[0],h[1],h[2],d[0]+g[0],d[1]+g[1],d[2]+g[2])&&bez.pointOnLine3D(d[0],d[1],d[2],h[0],h[1],h[2],h[0]+b[0],h[1]+b[1],h[2]+b[2]))&&(s.k[a].to=null,s.k[a].ti=null),d[0]===h[0]&&d[1]===h[1]&&g[0]===0&&g[1]===0&&b[0]===0&&b[1]===0&&(d.length===2||d[2]===h[2]&&g[2]===0&&b[2]===0)&&(s.k[a].to=null,s.k[a].ti=null));this.effectsSequence=[getValueAtCurrentTime.bind(this)],this.data=s,this.keyframes=s.k,this.keyframesMetadata=[],this.offsetTime=e.data.st,this.k=!0,this.kf=!0,this._isFirstFrame=!0,this.mult=i||1,this.elem=e,this.container=o,this.comp=e.comp,this.getValue=processEffectsSequence,this.setVValue=setVValue,this.interpolateValue=interpolateValue,this.frameId=-1;var _=s.k[0].s.length;for(this.v=createTypedArray("float32",_),this.pv=createTypedArray("float32",_),a=0;a<_;a+=1)this.v[a]=initFrame,this.pv[a]=initFrame;this._caching={lastFrame:initFrame,lastIndex:0,value:createTypedArray("float32",_)},this.addEffect=addEffect}var PropertyFactory=function(){function e(i,o,a,c,d){o.sid&&(o=i.globalData.slotManager.getProp(o));var h;if(!o.k.length)h=new ValueProperty(i,o,c,d);else if(typeof o.k[0]=="number")h=new MultiDimensionalProperty(i,o,c,d);else switch(a){case 0:h=new KeyframedValueProperty(i,o,c,d);break;case 1:h=new KeyframedMultidimensionalProperty(i,o,c,d);break}return h.effectsSequence.length&&d.addDynamicProperty(h),h}var s={getProp:e};return s}();function DynamicPropertyContainer(){}DynamicPropertyContainer.prototype={addDynamicProperty:function(s){this.dynamicProperties.indexOf(s)===-1&&(this.dynamicProperties.push(s),this.container.addDynamicProperty(this),this._isAnimated=!0)},iterateDynamicProperties:function(){this._mdf=!1;var s,i=this.dynamicProperties.length;for(s=0;s<i;s+=1)this.dynamicProperties[s].getValue(),this.dynamicProperties[s]._mdf&&(this._mdf=!0)},initDynamicPropertyContainer:function(s){this.container=s,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,s){this.c=e,this.setLength(s);for(var i=0;i<s;)this.v[i]=pointPool.newElement(),this.o[i]=pointPool.newElement(),this.i[i]=pointPool.newElement(),i+=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,s,i,o,a){var c;switch(this._length=Math.max(this._length,o+1),this._length>=this._maxLength&&this.doubleArrayLength(),i){case"v":c=this.v;break;case"i":c=this.i;break;case"o":c=this.o;break;default:c=[];break}(!c[o]||c[o]&&!a)&&(c[o]=pointPool.newElement()),c[o][0]=e,c[o][1]=s},ShapePath.prototype.setTripleAt=function(e,s,i,o,a,c,d,h){this.setXYAt(e,s,"v",d,h),this.setXYAt(i,o,"o",d,h),this.setXYAt(a,c,"i",d,h)},ShapePath.prototype.reverse=function(){var e=new ShapePath;e.setPathData(this.c,this._length);var s=this.v,i=this.o,o=this.i,a=0;this.c&&(e.setTripleAt(s[0][0],s[0][1],o[0][0],o[0][1],i[0][0],i[0][1],0,!1),a=1);var c=this._length-1,d=this._length,h;for(h=a;h<d;h+=1)e.setTripleAt(s[c][0],s[c][1],o[c][0],o[c][1],i[c][0],i[c][1],h,!1),c-=1;return e},ShapePath.prototype.length=function(){return this._length};var shapePool=function(){function e(){return new ShapePath}function s(a){var c=a._length,d;for(d=0;d<c;d+=1)pointPool.release(a.v[d]),pointPool.release(a.i[d]),pointPool.release(a.o[d]),a.v[d]=null,a.i[d]=null,a.o[d]=null;a._length=0,a.c=!1}function i(a){var c=o.newElement(),d,h=a._length===void 0?a.v.length:a._length;for(c.setLength(h),c.c=a.c,d=0;d<h;d+=1)c.setTripleAt(a.v[d][0],a.v[d][1],a.o[d][0],a.o[d][1],a.i[d][0],a.i[d][1],d);return c}var o=poolFactory(4,e,s);return o.clone=i,o}();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:a,release:c},s=0,i=4,o=createSizedArray(i);function a(){var d;return s?(s-=1,d=o[s]):d=new ShapeCollection,d}function c(d){var h,g=d._length;for(h=0;h<g;h+=1)shapePool.release(d.shapes[h]);d._length=0,s===i&&(o=pooling.double(o),i*=2),o[s]=d,s+=1}return e}(),ShapePropertyFactory=function(){var e=-999999;function s(st,ot,nt){var at=nt.lastIndex,ct,dt,pt,mt,St,Pt,Mt,Ct,Nt,kt=this.keyframes;if(st<kt[0].t-this.offsetTime)ct=kt[0].s[0],pt=!0,at=0;else if(st>=kt[kt.length-1].t-this.offsetTime)ct=kt[kt.length-1].s?kt[kt.length-1].s[0]:kt[kt.length-2].e[0],pt=!0;else{for(var At=at,ft=kt.length-1,Et=!0,ut,ht,gt;Et&&(ut=kt[At],ht=kt[At+1],!(ht.t-this.offsetTime>st));)At<ft-1?At+=1:Et=!1;if(gt=this.keyframesMetadata[At]||{},pt=ut.h===1,at=At,!pt){if(st>=ht.t-this.offsetTime)Ct=1;else if(st<ut.t-this.offsetTime)Ct=0;else{var xt;gt.__fnct?xt=gt.__fnct:(xt=BezierFactory.getBezierEasing(ut.o.x,ut.o.y,ut.i.x,ut.i.y).get,gt.__fnct=xt),Ct=xt((st-(ut.t-this.offsetTime))/(ht.t-this.offsetTime-(ut.t-this.offsetTime)))}dt=ht.s?ht.s[0]:ut.e[0]}ct=ut.s[0]}for(Pt=ot._length,Mt=ct.i[0].length,nt.lastIndex=at,mt=0;mt<Pt;mt+=1)for(St=0;St<Mt;St+=1)Nt=pt?ct.i[mt][St]:ct.i[mt][St]+(dt.i[mt][St]-ct.i[mt][St])*Ct,ot.i[mt][St]=Nt,Nt=pt?ct.o[mt][St]:ct.o[mt][St]+(dt.o[mt][St]-ct.o[mt][St])*Ct,ot.o[mt][St]=Nt,Nt=pt?ct.v[mt][St]:ct.v[mt][St]+(dt.v[mt][St]-ct.v[mt][St])*Ct,ot.v[mt][St]=Nt}function i(){var st=this.comp.renderedFrame-this.offsetTime,ot=this.keyframes[0].t-this.offsetTime,nt=this.keyframes[this.keyframes.length-1].t-this.offsetTime,at=this._caching.lastFrame;return at!==e&&(at<ot&&st<ot||at>nt&&st>nt)||(this._caching.lastIndex=at<st?this._caching.lastIndex:0,this.interpolateShape(st,this.pv,this._caching)),this._caching.lastFrame=st,this.pv}function o(){this.paths=this.localShapeCollection}function a(st,ot){if(st._length!==ot._length||st.c!==ot.c)return!1;var nt,at=st._length;for(nt=0;nt<at;nt+=1)if(st.v[nt][0]!==ot.v[nt][0]||st.v[nt][1]!==ot.v[nt][1]||st.o[nt][0]!==ot.o[nt][0]||st.o[nt][1]!==ot.o[nt][1]||st.i[nt][0]!==ot.i[nt][0]||st.i[nt][1]!==ot.i[nt][1])return!1;return!0}function c(st){a(this.v,st)||(this.v=shapePool.clone(st),this.localShapeCollection.releaseShapes(),this.localShapeCollection.addShape(this.v),this._mdf=!0,this.paths=this.localShapeCollection)}function d(){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 st;this.kf?st=this.pv:this.data.ks?st=this.data.ks.k:st=this.data.pt.k;var ot,nt=this.effectsSequence.length;for(ot=0;ot<nt;ot+=1)st=this.effectsSequence[ot](st);this.setVValue(st),this.lock=!1,this.frameId=this.elem.globalData.frameId}}function h(st,ot,nt){this.propType="shape",this.comp=st.comp,this.container=st,this.elem=st,this.data=ot,this.k=!1,this.kf=!1,this._mdf=!1;var at=nt===3?ot.pt.k:ot.ks.k;this.v=shapePool.clone(at),this.pv=shapePool.clone(this.v),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.reset=o,this.effectsSequence=[]}function g(st){this.effectsSequence.push(st),this.container.addDynamicProperty(this)}h.prototype.interpolateShape=s,h.prototype.getValue=d,h.prototype.setVValue=c,h.prototype.addEffect=g;function b(st,ot,nt){this.propType="shape",this.comp=st.comp,this.elem=st,this.container=st,this.offsetTime=st.data.st,this.keyframes=nt===3?ot.pt.k:ot.ks.k,this.keyframesMetadata=[],this.k=!0,this.kf=!0;var at=this.keyframes[0].s[0].i.length;this.v=shapePool.newElement(),this.v.setPathData(this.keyframes[0].s[0].c,at),this.pv=shapePool.clone(this.v),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.lastFrame=e,this.reset=o,this._caching={lastFrame:e,lastIndex:0},this.effectsSequence=[i.bind(this)]}b.prototype.getValue=d,b.prototype.interpolateShape=s,b.prototype.setVValue=c,b.prototype.addEffect=g;var _=function(){var st=roundCorner;function ot(nt,at){this.v=shapePool.newElement(),this.v.setPathData(!0,4),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.paths=this.localShapeCollection,this.localShapeCollection.addShape(this.v),this.d=at.d,this.elem=nt,this.comp=nt.comp,this.frameId=-1,this.initDynamicPropertyContainer(nt),this.p=PropertyFactory.getProp(nt,at.p,1,0,this),this.s=PropertyFactory.getProp(nt,at.s,1,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertEllToPath())}return ot.prototype={reset:o,getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertEllToPath())},convertEllToPath:function(){var at=this.p.v[0],ct=this.p.v[1],dt=this.s.v[0]/2,pt=this.s.v[1]/2,mt=this.d!==3,St=this.v;St.v[0][0]=at,St.v[0][1]=ct-pt,St.v[1][0]=mt?at+dt:at-dt,St.v[1][1]=ct,St.v[2][0]=at,St.v[2][1]=ct+pt,St.v[3][0]=mt?at-dt:at+dt,St.v[3][1]=ct,St.i[0][0]=mt?at-dt*st:at+dt*st,St.i[0][1]=ct-pt,St.i[1][0]=mt?at+dt:at-dt,St.i[1][1]=ct-pt*st,St.i[2][0]=mt?at+dt*st:at-dt*st,St.i[2][1]=ct+pt,St.i[3][0]=mt?at-dt:at+dt,St.i[3][1]=ct+pt*st,St.o[0][0]=mt?at+dt*st:at-dt*st,St.o[0][1]=ct-pt,St.o[1][0]=mt?at+dt:at-dt,St.o[1][1]=ct+pt*st,St.o[2][0]=mt?at-dt*st:at+dt*st,St.o[2][1]=ct+pt,St.o[3][0]=mt?at-dt:at+dt,St.o[3][1]=ct-pt*st}},extendPrototype([DynamicPropertyContainer],ot),ot}(),_e=function(){function st(ot,nt){this.v=shapePool.newElement(),this.v.setPathData(!0,0),this.elem=ot,this.comp=ot.comp,this.data=nt,this.frameId=-1,this.d=nt.d,this.initDynamicPropertyContainer(ot),nt.sy===1?(this.ir=PropertyFactory.getProp(ot,nt.ir,0,0,this),this.is=PropertyFactory.getProp(ot,nt.is,0,.01,this),this.convertToPath=this.convertStarToPath):this.convertToPath=this.convertPolygonToPath,this.pt=PropertyFactory.getProp(ot,nt.pt,0,0,this),this.p=PropertyFactory.getProp(ot,nt.p,1,0,this),this.r=PropertyFactory.getProp(ot,nt.r,0,degToRads,this),this.or=PropertyFactory.getProp(ot,nt.or,0,0,this),this.os=PropertyFactory.getProp(ot,nt.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 st.prototype={reset:o,getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertToPath())},convertStarToPath:function(){var nt=Math.floor(this.pt.v)*2,at=Math.PI*2/nt,ct=!0,dt=this.or.v,pt=this.ir.v,mt=this.os.v,St=this.is.v,Pt=2*Math.PI*dt/(nt*2),Mt=2*Math.PI*pt/(nt*2),Ct,Nt,kt,At,ft=-Math.PI/2;ft+=this.r.v;var Et=this.data.d===3?-1:1;for(this.v._length=0,Ct=0;Ct<nt;Ct+=1){Nt=ct?dt:pt,kt=ct?mt:St,At=ct?Pt:Mt;var ut=Nt*Math.cos(ft),ht=Nt*Math.sin(ft),gt=ut===0&&ht===0?0:ht/Math.sqrt(ut*ut+ht*ht),xt=ut===0&&ht===0?0:-ut/Math.sqrt(ut*ut+ht*ht);ut+=+this.p.v[0],ht+=+this.p.v[1],this.v.setTripleAt(ut,ht,ut-gt*At*kt*Et,ht-xt*At*kt*Et,ut+gt*At*kt*Et,ht+xt*At*kt*Et,Ct,!0),ct=!ct,ft+=at*Et}},convertPolygonToPath:function(){var nt=Math.floor(this.pt.v),at=Math.PI*2/nt,ct=this.or.v,dt=this.os.v,pt=2*Math.PI*ct/(nt*4),mt,St=-Math.PI*.5,Pt=this.data.d===3?-1:1;for(St+=this.r.v,this.v._length=0,mt=0;mt<nt;mt+=1){var Mt=ct*Math.cos(St),Ct=ct*Math.sin(St),Nt=Mt===0&&Ct===0?0:Ct/Math.sqrt(Mt*Mt+Ct*Ct),kt=Mt===0&&Ct===0?0:-Mt/Math.sqrt(Mt*Mt+Ct*Ct);Mt+=+this.p.v[0],Ct+=+this.p.v[1],this.v.setTripleAt(Mt,Ct,Mt-Nt*pt*dt*Pt,Ct-kt*pt*dt*Pt,Mt+Nt*pt*dt*Pt,Ct+kt*pt*dt*Pt,mt,!0),St+=at*Pt}this.paths.length=0,this.paths[0]=this.v}},extendPrototype([DynamicPropertyContainer],st),st}(),$=function(){function st(ot,nt){this.v=shapePool.newElement(),this.v.c=!0,this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.elem=ot,this.comp=ot.comp,this.frameId=-1,this.d=nt.d,this.initDynamicPropertyContainer(ot),this.p=PropertyFactory.getProp(ot,nt.p,1,0,this),this.s=PropertyFactory.getProp(ot,nt.s,1,0,this),this.r=PropertyFactory.getProp(ot,nt.r,0,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertRectToPath())}return st.prototype={convertRectToPath:function(){var nt=this.p.v[0],at=this.p.v[1],ct=this.s.v[0]/2,dt=this.s.v[1]/2,pt=bmMin(ct,dt,this.r.v),mt=pt*(1-roundCorner);this.v._length=0,this.d===2||this.d===1?(this.v.setTripleAt(nt+ct,at-dt+pt,nt+ct,at-dt+pt,nt+ct,at-dt+mt,0,!0),this.v.setTripleAt(nt+ct,at+dt-pt,nt+ct,at+dt-mt,nt+ct,at+dt-pt,1,!0),pt!==0?(this.v.setTripleAt(nt+ct-pt,at+dt,nt+ct-pt,at+dt,nt+ct-mt,at+dt,2,!0),this.v.setTripleAt(nt-ct+pt,at+dt,nt-ct+mt,at+dt,nt-ct+pt,at+dt,3,!0),this.v.setTripleAt(nt-ct,at+dt-pt,nt-ct,at+dt-pt,nt-ct,at+dt-mt,4,!0),this.v.setTripleAt(nt-ct,at-dt+pt,nt-ct,at-dt+mt,nt-ct,at-dt+pt,5,!0),this.v.setTripleAt(nt-ct+pt,at-dt,nt-ct+pt,at-dt,nt-ct+mt,at-dt,6,!0),this.v.setTripleAt(nt+ct-pt,at-dt,nt+ct-mt,at-dt,nt+ct-pt,at-dt,7,!0)):(this.v.setTripleAt(nt-ct,at+dt,nt-ct+mt,at+dt,nt-ct,at+dt,2),this.v.setTripleAt(nt-ct,at-dt,nt-ct,at-dt+mt,nt-ct,at-dt,3))):(this.v.setTripleAt(nt+ct,at-dt+pt,nt+ct,at-dt+mt,nt+ct,at-dt+pt,0,!0),pt!==0?(this.v.setTripleAt(nt+ct-pt,at-dt,nt+ct-pt,at-dt,nt+ct-mt,at-dt,1,!0),this.v.setTripleAt(nt-ct+pt,at-dt,nt-ct+mt,at-dt,nt-ct+pt,at-dt,2,!0),this.v.setTripleAt(nt-ct,at-dt+pt,nt-ct,at-dt+pt,nt-ct,at-dt+mt,3,!0),this.v.setTripleAt(nt-ct,at+dt-pt,nt-ct,at+dt-mt,nt-ct,at+dt-pt,4,!0),this.v.setTripleAt(nt-ct+pt,at+dt,nt-ct+pt,at+dt,nt-ct+mt,at+dt,5,!0),this.v.setTripleAt(nt+ct-pt,at+dt,nt+ct-mt,at+dt,nt+ct-pt,at+dt,6,!0),this.v.setTripleAt(nt+ct,at+dt-pt,nt+ct,at+dt-pt,nt+ct,at+dt-mt,7,!0)):(this.v.setTripleAt(nt-ct,at-dt,nt-ct+mt,at-dt,nt-ct,at-dt,1,!0),this.v.setTripleAt(nt-ct,at+dt,nt-ct,at+dt-mt,nt-ct,at+dt,2,!0),this.v.setTripleAt(nt+ct,at+dt,nt+ct-mt,at+dt,nt+ct,at+dt,3,!0)))},getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertRectToPath())},reset:o},extendPrototype([DynamicPropertyContainer],st),st}();function et(st,ot,nt){var at;if(nt===3||nt===4){var ct=nt===3?ot.pt:ot.ks,dt=ct.k;dt.length?at=new b(st,ot,nt):at=new h(st,ot,nt)}else nt===5?at=new $(st,ot):nt===6?at=new _(st,ot):nt===7&&(at=new _e(st,ot));return at.k&&st.addDynamicProperty(at),at}function it(){return h}function rt(){return b}var lt={};return lt.getShapeProp=et,lt.getConstructorFunction=it,lt.getKeyframedConstructorFunction=rt,lt}();/*! 540 Transformation Matrix v2.0 541 (c) Epistemex 2014-2015 542 www.epistemex.com 543 By Ken Fyrstenberg 544 Contributions by leeoniya. 545 License: MIT, header required. 546 */var Matrix=function(){var e=Math.cos,s=Math.sin,i=Math.tan,o=Math.round;function a(){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 c(ut){if(ut===0)return this;var ht=e(ut),gt=s(ut);return this._t(ht,-gt,0,0,gt,ht,0,0,0,0,1,0,0,0,0,1)}function d(ut){if(ut===0)return this;var ht=e(ut),gt=s(ut);return this._t(1,0,0,0,0,ht,-gt,0,0,gt,ht,0,0,0,0,1)}function h(ut){if(ut===0)return this;var ht=e(ut),gt=s(ut);return this._t(ht,0,gt,0,0,1,0,0,-gt,0,ht,0,0,0,0,1)}function g(ut){if(ut===0)return this;var ht=e(ut),gt=s(ut);return this._t(ht,-gt,0,0,gt,ht,0,0,0,0,1,0,0,0,0,1)}function b(ut,ht){return this._t(1,ht,ut,1,0,0)}function _(ut,ht){return this.shear(i(ut),i(ht))}function _e(ut,ht){var gt=e(ht),xt=s(ht);return this._t(gt,xt,0,0,-xt,gt,0,0,0,0,1,0,0,0,0,1)._t(1,0,0,0,i(ut),1,0,0,0,0,1,0,0,0,0,1)._t(gt,-xt,0,0,xt,gt,0,0,0,0,1,0,0,0,0,1)}function $(ut,ht,gt){return!gt&>!==0&&(gt=1),ut===1&&ht===1&>===1?this:this._t(ut,0,0,0,0,ht,0,0,0,0,gt,0,0,0,0,1)}function et(ut,ht,gt,xt,Rt,Tt,It,Lt,$t,Bt,Ut,Ht,qt,Kt,Jt,zt){return this.props[0]=ut,this.props[1]=ht,this.props[2]=gt,this.props[3]=xt,this.props[4]=Rt,this.props[5]=Tt,this.props[6]=It,this.props[7]=Lt,this.props[8]=$t,this.props[9]=Bt,this.props[10]=Ut,this.props[11]=Ht,this.props[12]=qt,this.props[13]=Kt,this.props[14]=Jt,this.props[15]=zt,this}function it(ut,ht,gt){return gt=gt||0,ut!==0||ht!==0||gt!==0?this._t(1,0,0,0,0,1,0,0,0,0,1,0,ut,ht,gt,1):this}function rt(ut,ht,gt,xt,Rt,Tt,It,Lt,$t,Bt,Ut,Ht,qt,Kt,Jt,zt){var Vt=this.props;if(ut===1&&ht===0&>===0&&xt===0&&Rt===0&&Tt===1&&It===0&&Lt===0&&$t===0&&Bt===0&&Ut===1&&Ht===0)return Vt[12]=Vt[12]*ut+Vt[15]*qt,Vt[13]=Vt[13]*Tt+Vt[15]*Kt,Vt[14]=Vt[14]*Ut+Vt[15]*Jt,Vt[15]*=zt,this._identityCalculated=!1,this;var er=Vt[0],fr=Vt[1],mr=Vt[2],ir=Vt[3],lr=Vt[4],yr=Vt[5],nr=Vt[6],br=Vt[7],cr=Vt[8],dr=Vt[9],Er=Vt[10],rr=Vt[11],ur=Vt[12],Ir=Vt[13],Nr=Vt[14],Gt=Vt[15];return Vt[0]=er*ut+fr*Rt+mr*$t+ir*qt,Vt[1]=er*ht+fr*Tt+mr*Bt+ir*Kt,Vt[2]=er*gt+fr*It+mr*Ut+ir*Jt,Vt[3]=er*xt+fr*Lt+mr*Ht+ir*zt,Vt[4]=lr*ut+yr*Rt+nr*$t+br*qt,Vt[5]=lr*ht+yr*Tt+nr*Bt+br*Kt,Vt[6]=lr*gt+yr*It+nr*Ut+br*Jt,Vt[7]=lr*xt+yr*Lt+nr*Ht+br*zt,Vt[8]=cr*ut+dr*Rt+Er*$t+rr*qt,Vt[9]=cr*ht+dr*Tt+Er*Bt+rr*Kt,Vt[10]=cr*gt+dr*It+Er*Ut+rr*Jt,Vt[11]=cr*xt+dr*Lt+Er*Ht+rr*zt,Vt[12]=ur*ut+Ir*Rt+Nr*$t+Gt*qt,Vt[13]=ur*ht+Ir*Tt+Nr*Bt+Gt*Kt,Vt[14]=ur*gt+Ir*It+Nr*Ut+Gt*Jt,Vt[15]=ur*xt+Ir*Lt+Nr*Ht+Gt*zt,this._identityCalculated=!1,this}function lt(ut){var ht=ut.props;return this.transform(ht[0],ht[1],ht[2],ht[3],ht[4],ht[5],ht[6],ht[7],ht[8],ht[9],ht[10],ht[11],ht[12],ht[13],ht[14],ht[15])}function st(){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 ot(ut){for(var ht=0;ht<16;){if(ut.props[ht]!==this.props[ht])return!1;ht+=1}return!0}function nt(ut){var ht;for(ht=0;ht<16;ht+=1)ut.props[ht]=this.props[ht];return ut}function at(ut){var ht;for(ht=0;ht<16;ht+=1)this.props[ht]=ut[ht]}function ct(ut,ht,gt){return{x:ut*this.props[0]+ht*this.props[4]+gt*this.props[8]+this.props[12],y:ut*this.props[1]+ht*this.props[5]+gt*this.props[9]+this.props[13],z:ut*this.props[2]+ht*this.props[6]+gt*this.props[10]+this.props[14]}}function dt(ut,ht,gt){return ut*this.props[0]+ht*this.props[4]+gt*this.props[8]+this.props[12]}function pt(ut,ht,gt){return ut*this.props[1]+ht*this.props[5]+gt*this.props[9]+this.props[13]}function mt(ut,ht,gt){return ut*this.props[2]+ht*this.props[6]+gt*this.props[10]+this.props[14]}function St(){var ut=this.props[0]*this.props[5]-this.props[1]*this.props[4],ht=this.props[5]/ut,gt=-this.props[1]/ut,xt=-this.props[4]/ut,Rt=this.props[0]/ut,Tt=(this.props[4]*this.props[13]-this.props[5]*this.props[12])/ut,It=-(this.props[0]*this.props[13]-this.props[1]*this.props[12])/ut,Lt=new Matrix;return Lt.props[0]=ht,Lt.props[1]=gt,Lt.props[4]=xt,Lt.props[5]=Rt,Lt.props[12]=Tt,Lt.props[13]=It,Lt}function Pt(ut){var ht=this.getInverseMatrix();return ht.applyToPointArray(ut[0],ut[1],ut[2]||0)}function Mt(ut){var ht,gt=ut.length,xt=[];for(ht=0;ht<gt;ht+=1)xt[ht]=Pt(ut[ht]);return xt}function Ct(ut,ht,gt){var xt=createTypedArray("float32",6);if(this.isIdentity())xt[0]=ut[0],xt[1]=ut[1],xt[2]=ht[0],xt[3]=ht[1],xt[4]=gt[0],xt[5]=gt[1];else{var Rt=this.props[0],Tt=this.props[1],It=this.props[4],Lt=this.props[5],$t=this.props[12],Bt=this.props[13];xt[0]=ut[0]*Rt+ut[1]*It+$t,xt[1]=ut[0]*Tt+ut[1]*Lt+Bt,xt[2]=ht[0]*Rt+ht[1]*It+$t,xt[3]=ht[0]*Tt+ht[1]*Lt+Bt,xt[4]=gt[0]*Rt+gt[1]*It+$t,xt[5]=gt[0]*Tt+gt[1]*Lt+Bt}return xt}function Nt(ut,ht,gt){var xt;return this.isIdentity()?xt=[ut,ht,gt]:xt=[ut*this.props[0]+ht*this.props[4]+gt*this.props[8]+this.props[12],ut*this.props[1]+ht*this.props[5]+gt*this.props[9]+this.props[13],ut*this.props[2]+ht*this.props[6]+gt*this.props[10]+this.props[14]],xt}function kt(ut,ht){if(this.isIdentity())return ut+","+ht;var gt=this.props;return Math.round((ut*gt[0]+ht*gt[4]+gt[12])*100)/100+","+Math.round((ut*gt[1]+ht*gt[5]+gt[13])*100)/100}function At(){for(var ut=0,ht=this.props,gt="matrix3d(",xt=1e4;ut<16;)gt+=o(ht[ut]*xt)/xt,gt+=ut===15?")":",",ut+=1;return gt}function ft(ut){var ht=1e4;return ut<1e-6&&ut>0||ut>-1e-6&&ut<0?o(ut*ht)/ht:ut}function Et(){var ut=this.props,ht=ft(ut[0]),gt=ft(ut[1]),xt=ft(ut[4]),Rt=ft(ut[5]),Tt=ft(ut[12]),It=ft(ut[13]);return"matrix("+ht+","+gt+","+xt+","+Rt+","+Tt+","+It+")"}return function(){this.reset=a,this.rotate=c,this.rotateX=d,this.rotateY=h,this.rotateZ=g,this.skew=_,this.skewFromAxis=_e,this.shear=b,this.scale=$,this.setTransform=et,this.translate=it,this.transform=rt,this.multiply=lt,this.applyToPoint=ct,this.applyToX=dt,this.applyToY=pt,this.applyToZ=mt,this.applyToPointArray=Nt,this.applyToTriplePoints=Ct,this.applyToPointStringified=kt,this.toCSS=At,this.to2dCSS=Et,this.clone=nt,this.cloneFromProps=at,this.equals=ot,this.inversePoints=Mt,this.inversePoint=Pt,this.getInverseMatrix=St,this._t=this.transform,this.isIdentity=st,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(s){return typeof s}:function(s){return s&&typeof Symbol=="function"&&s.constructor===Symbol&&s!==Symbol.prototype?"symbol":typeof s},_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,s){e==="expressions"&&setExpressionsPlugin(s)}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 s=queryString.split("&"),i=0;i<s.length;i+=1){var o=s[i].split("=");if(decodeURIComponent(o[0])==e)return decodeURIComponent(o[1])}return null}var queryString="";{var scripts=document.getElementsByTagName("script"),index=scripts.length-1,myScript=scripts[index]||{src:""};queryString=myScript.src?myScript.src.replace(/^[^\?]+\??/,""):"",getQueryVariable("renderer")}var readyStateCheckInterval=setInterval(checkReady,100);try{_typeof$3(exports)!=="object"&&(window.bodymovin=lottie)}catch(e){}var ShapeModifiers=function(){var e={},s={};e.registerModifier=i,e.getModifier=o;function i(a,c){s[a]||(s[a]=c)}function o(a,c,d){return new s[a](c,d)}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 s={shape:e.sh,data:e,localShapeCollection:shapeCollectionPool.newShapeCollection()};this.shapes.push(s),this.addShapeToModifier(s),this._isAnimated&&e.setAsAnimated()}},ShapeModifier.prototype.init=function(e,s){this.shapes=[],this.elem=e,this.initDynamicPropertyContainer(e),this.initModifierProperties(e,s),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,s){this.s=PropertyFactory.getProp(e,s.s,0,.01,this),this.e=PropertyFactory.getProp(e,s.e,0,.01,this),this.o=PropertyFactory.getProp(e,s.o,0,0,this),this.sValue=0,this.eValue=0,this.getValue=this.processKeys,this.m=s.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,s,i,o,a){var c=[];s<=1?c.push({s:e,e:s}):e>=1?c.push({s:e-1,e:s-1}):(c.push({s:e,e:1}),c.push({s:0,e:s-1}));var d=[],h,g=c.length,b;for(h=0;h<g;h+=1)if(b=c[h],!(b.e*a<o||b.s*a>o+i)){var _,_e;b.s*a<=o?_=0:_=(b.s*a-o)/i,b.e*a>=o+i?_e=1:_e=(b.e*a-o)/i,d.push([_,_e])}return d.length||d.push([0,0]),d},TrimModifier.prototype.releasePathsData=function(e){var s,i=e.length;for(s=0;s<i;s+=1)segmentsLengthPool.release(e[s]);return e.length=0,e},TrimModifier.prototype.processShapes=function(e){var s,i;if(this._mdf||e){var o=this.o.v%360/360;if(o<0&&(o+=1),this.s.v>1?s=1+o:this.s.v<0?s=0+o:s=this.s.v+o,this.e.v>1?i=1+o:this.e.v<0?i=0+o:i=this.e.v+o,s>i){var a=s;s=i,i=a}s=Math.round(s*1e4)*1e-4,i=Math.round(i*1e4)*1e-4,this.sValue=s,this.eValue=i}else s=this.sValue,i=this.eValue;var c,d,h=this.shapes.length,g,b,_,_e,$,et=0;if(i===s)for(d=0;d<h;d+=1)this.shapes[d].localShapeCollection.releaseShapes(),this.shapes[d].shape._mdf=!0,this.shapes[d].shape.paths=this.shapes[d].localShapeCollection,this._mdf&&(this.shapes[d].pathsData.length=0);else if(i===1&&s===0||i===0&&s===1){if(this._mdf)for(d=0;d<h;d+=1)this.shapes[d].pathsData.length=0,this.shapes[d].shape._mdf=!0}else{var it=[],rt,lt;for(d=0;d<h;d+=1)if(rt=this.shapes[d],!rt.shape._mdf&&!this._mdf&&!e&&this.m!==2)rt.shape.paths=rt.localShapeCollection;else{if(c=rt.shape.paths,b=c._length,$=0,!rt.shape._mdf&&rt.pathsData.length)$=rt.totalShapeLength;else{for(_=this.releasePathsData(rt.pathsData),g=0;g<b;g+=1)_e=bez.getSegmentsLength(c.shapes[g]),_.push(_e),$+=_e.totalLength;rt.totalShapeLength=$,rt.pathsData=_}et+=$,rt.shape._mdf=!0}var st=s,ot=i,nt=0,at;for(d=h-1;d>=0;d-=1)if(rt=this.shapes[d],rt.shape._mdf){for(lt=rt.localShapeCollection,lt.releaseShapes(),this.m===2&&h>1?(at=this.calculateShapeEdges(s,i,rt.totalShapeLength,nt,et),nt+=rt.totalShapeLength):at=[[st,ot]],b=at.length,g=0;g<b;g+=1){st=at[g][0],ot=at[g][1],it.length=0,ot<=1?it.push({s:rt.totalShapeLength*st,e:rt.totalShapeLength*ot}):st>=1?it.push({s:rt.totalShapeLength*(st-1),e:rt.totalShapeLength*(ot-1)}):(it.push({s:rt.totalShapeLength*st,e:rt.totalShapeLength}),it.push({s:0,e:rt.totalShapeLength*(ot-1)}));var ct=this.addShapes(rt,it[0]);if(it[0].s!==it[0].e){if(it.length>1){var dt=rt.shape.paths.shapes[rt.shape.paths._length-1];if(dt.c){var pt=ct.pop();this.addPaths(ct,lt),ct=this.addShapes(rt,it[1],pt)}else this.addPaths(ct,lt),ct=this.addShapes(rt,it[1])}this.addPaths(ct,lt)}}rt.shape.paths=lt}}},TrimModifier.prototype.addPaths=function(e,s){var i,o=e.length;for(i=0;i<o;i+=1)s.addShape(e[i])},TrimModifier.prototype.addSegment=function(e,s,i,o,a,c,d){a.setXYAt(s[0],s[1],"o",c),a.setXYAt(i[0],i[1],"i",c+1),d&&a.setXYAt(e[0],e[1],"v",c),a.setXYAt(o[0],o[1],"v",c+1)},TrimModifier.prototype.addSegmentFromArray=function(e,s,i,o){s.setXYAt(e[1],e[5],"o",i),s.setXYAt(e[2],e[6],"i",i+1),o&&s.setXYAt(e[0],e[4],"v",i),s.setXYAt(e[3],e[7],"v",i+1)},TrimModifier.prototype.addShapes=function(e,s,i){var o=e.pathsData,a=e.shape.paths.shapes,c,d=e.shape.paths._length,h,g,b=0,_,_e,$,et,it=[],rt,lt=!0;for(i?(_e=i._length,rt=i._length):(i=shapePool.newElement(),_e=0,rt=0),it.push(i),c=0;c<d;c+=1){for($=o[c].lengths,i.c=a[c].c,g=a[c].c?$.length:$.length+1,h=1;h<g;h+=1)if(_=$[h-1],b+_.addedLength<s.s)b+=_.addedLength,i.c=!1;else if(b>s.e){i.c=!1;break}else s.s<=b&&s.e>=b+_.addedLength?(this.addSegment(a[c].v[h-1],a[c].o[h-1],a[c].i[h],a[c].v[h],i,_e,lt),lt=!1):(et=bez.getNewSegment(a[c].v[h-1],a[c].v[h],a[c].o[h-1],a[c].i[h],(s.s-b)/_.addedLength,(s.e-b)/_.addedLength,$[h-1]),this.addSegmentFromArray(et,i,_e,lt),lt=!1,i.c=!1),b+=_.addedLength,_e+=1;if(a[c].c&&$.length){if(_=$[h-1],b<=s.e){var st=$[h-1].addedLength;s.s<=b&&s.e>=b+st?(this.addSegment(a[c].v[h-1],a[c].o[h-1],a[c].i[0],a[c].v[0],i,_e,lt),lt=!1):(et=bez.getNewSegment(a[c].v[h-1],a[c].v[0],a[c].o[h-1],a[c].i[0],(s.s-b)/st,(s.e-b)/st,$[h-1]),this.addSegmentFromArray(et,i,_e,lt),lt=!1,i.c=!1)}else i.c=!1;b+=_.addedLength,_e+=1}if(i._length&&(i.setXYAt(i.v[rt][0],i.v[rt][1],"i",rt),i.setXYAt(i.v[i._length-1][0],i.v[i._length-1][1],"o",i._length-1)),b>s.e)break;c<d-1&&(i=shapePool.newElement(),lt=!0,it.push(i),_e=0)}return it};function PuckerAndBloatModifier(){}extendPrototype([ShapeModifier],PuckerAndBloatModifier),PuckerAndBloatModifier.prototype.initModifierProperties=function(e,s){this.getValue=this.processKeys,this.amount=PropertyFactory.getProp(e,s.a,0,null,this),this._isAnimated=!!this.amount.effectsSequence.length},PuckerAndBloatModifier.prototype.processPath=function(e,s){var i=s/100,o=[0,0],a=e._length,c=0;for(c=0;c<a;c+=1)o[0]+=e.v[c][0],o[1]+=e.v[c][1];o[0]/=a,o[1]/=a;var d=shapePool.newElement();d.c=e.c;var h,g,b,_,_e,$;for(c=0;c<a;c+=1)h=e.v[c][0]+(o[0]-e.v[c][0])*i,g=e.v[c][1]+(o[1]-e.v[c][1])*i,b=e.o[c][0]+(o[0]-e.o[c][0])*-i,_=e.o[c][1]+(o[1]-e.o[c][1])*-i,_e=e.i[c][0]+(o[0]-e.i[c][0])*-i,$=e.i[c][1]+(o[1]-e.i[c][1])*-i,d.setTripleAt(h,g,b,_,_e,$,c);return d},PuckerAndBloatModifier.prototype.processShapes=function(e){var s,i,o=this.shapes.length,a,c,d=this.amount.v;if(d!==0){var h,g;for(i=0;i<o;i+=1){if(h=this.shapes[i],g=h.localShapeCollection,!(!h.shape._mdf&&!this._mdf&&!e))for(g.releaseShapes(),h.shape._mdf=!0,s=h.shape.paths.shapes,c=h.shape.paths._length,a=0;a<c;a+=1)g.addShape(this.processPath(s[a],d));h.shape.paths=h.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};var TransformPropertyFactory=function(){var e=[0,0];function s(g){var b=this._mdf;this.iterateDynamicProperties(),this._mdf=this._mdf||b,this.a&&g.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.s&&g.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.sk&&g.skewFromAxis(-this.sk.v,this.sa.v),this.r?g.rotate(-this.r.v):g.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?g.translate(this.px.v,this.py.v,-this.pz.v):g.translate(this.px.v,this.py.v,0):g.translate(this.p.v[0],this.p.v[1],-this.p.v[2])}function i(g){if(this.elem.globalData.frameId!==this.frameId){if(this._isDirty&&(this.precalculateMatrix(),this._isDirty=!1),this.iterateDynamicProperties(),this._mdf||g){var b;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 _,_e;if(b=this.elem.globalData.frameRate,this.p&&this.p.keyframes&&this.p.getValueAtTime)this.p._caching.lastFrame+this.p.offsetTime<=this.p.keyframes[0].t?(_=this.p.getValueAtTime((this.p.keyframes[0].t+.01)/b,0),_e=this.p.getValueAtTime(this.p.keyframes[0].t/b,0)):this.p._caching.lastFrame+this.p.offsetTime>=this.p.keyframes[this.p.keyframes.length-1].t?(_=this.p.getValueAtTime(this.p.keyframes[this.p.keyframes.length-1].t/b,0),_e=this.p.getValueAtTime((this.p.keyframes[this.p.keyframes.length-1].t-.05)/b,0)):(_=this.p.pv,_e=this.p.getValueAtTime((this.p._caching.lastFrame+this.p.offsetTime-.01)/b,this.p.offsetTime));else if(this.px&&this.px.keyframes&&this.py.keyframes&&this.px.getValueAtTime&&this.py.getValueAtTime){_=[],_e=[];var $=this.px,et=this.py;$._caching.lastFrame+$.offsetTime<=$.keyframes[0].t?(_[0]=$.getValueAtTime(($.keyframes[0].t+.01)/b,0),_[1]=et.getValueAtTime((et.keyframes[0].t+.01)/b,0),_e[0]=$.getValueAtTime($.keyframes[0].t/b,0),_e[1]=et.getValueAtTime(et.keyframes[0].t/b,0)):$._caching.lastFrame+$.offsetTime>=$.keyframes[$.keyframes.length-1].t?(_[0]=$.getValueAtTime($.keyframes[$.keyframes.length-1].t/b,0),_[1]=et.getValueAtTime(et.keyframes[et.keyframes.length-1].t/b,0),_e[0]=$.getValueAtTime(($.keyframes[$.keyframes.length-1].t-.01)/b,0),_e[1]=et.getValueAtTime((et.keyframes[et.keyframes.length-1].t-.01)/b,0)):(_=[$.pv,et.pv],_e[0]=$.getValueAtTime(($._caching.lastFrame+$.offsetTime-.01)/b,$.offsetTime),_e[1]=et.getValueAtTime((et._caching.lastFrame+et.offsetTime-.01)/b,et.offsetTime))}else _e=e,_=_e;this.v.rotate(-Math.atan2(_[1]-_e[1],_[0]-_e[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 o(){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 a(){}function c(g){this._addDynamicProperty(g),this.elem.addDynamicProperty(g),this._isDirty=!0}function d(g,b,_){if(this.elem=g,this.frameId=-1,this.propType="transform",this.data=b,this.v=new Matrix,this.pre=new Matrix,this.appliedTransformations=0,this.initDynamicPropertyContainer(_||g),b.p&&b.p.s?(this.px=PropertyFactory.getProp(g,b.p.x,0,0,this),this.py=PropertyFactory.getProp(g,b.p.y,0,0,this),b.p.z&&(this.pz=PropertyFactory.getProp(g,b.p.z,0,0,this))):this.p=PropertyFactory.getProp(g,b.p||{k:[0,0,0]},1,0,this),b.rx){if(this.rx=PropertyFactory.getProp(g,b.rx,0,degToRads,this),this.ry=PropertyFactory.getProp(g,b.ry,0,degToRads,this),this.rz=PropertyFactory.getProp(g,b.rz,0,degToRads,this),b.or.k[0].ti){var _e,$=b.or.k.length;for(_e=0;_e<$;_e+=1)b.or.k[_e].to=null,b.or.k[_e].ti=null}this.or=PropertyFactory.getProp(g,b.or,1,degToRads,this),this.or.sh=!0}else this.r=PropertyFactory.getProp(g,b.r||{k:0},0,degToRads,this);b.sk&&(this.sk=PropertyFactory.getProp(g,b.sk,0,degToRads,this),this.sa=PropertyFactory.getProp(g,b.sa,0,degToRads,this)),this.a=PropertyFactory.getProp(g,b.a||{k:[0,0,0]},1,0,this),this.s=PropertyFactory.getProp(g,b.s||{k:[100,100,100]},1,.01,this),b.o?this.o=PropertyFactory.getProp(g,b.o,0,.01,g):this.o={_mdf:!1,v:1},this._isDirty=!0,this.dynamicProperties.length||this.getValue(!0)}d.prototype={applyToMatrix:s,getValue:i,precalculateMatrix:o,autoOrient:a},extendPrototype([DynamicPropertyContainer],d),d.prototype.addDynamicProperty=c,d.prototype._addDynamicProperty=DynamicPropertyContainer.prototype.addDynamicProperty;function h(g,b,_){return new d(g,b,_)}return{getTransformProperty:h}}();function RepeaterModifier(){}extendPrototype([ShapeModifier],RepeaterModifier),RepeaterModifier.prototype.initModifierProperties=function(e,s){this.getValue=this.processKeys,this.c=PropertyFactory.getProp(e,s.c,0,null,this),this.o=PropertyFactory.getProp(e,s.o,0,null,this),this.tr=TransformPropertyFactory.getTransformProperty(e,s.tr,this),this.so=PropertyFactory.getProp(e,s.tr.so,0,.01,this),this.eo=PropertyFactory.getProp(e,s.tr.eo,0,.01,this),this.data=s,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,s,i,o,a,c){var d=c?-1:1,h=o.s.v[0]+(1-o.s.v[0])*(1-a),g=o.s.v[1]+(1-o.s.v[1])*(1-a);e.translate(o.p.v[0]*d*a,o.p.v[1]*d*a,o.p.v[2]),s.translate(-o.a.v[0],-o.a.v[1],o.a.v[2]),s.rotate(-o.r.v*d*a),s.translate(o.a.v[0],o.a.v[1],o.a.v[2]),i.translate(-o.a.v[0],-o.a.v[1],o.a.v[2]),i.scale(c?1/h:h,c?1/g:g),i.translate(o.a.v[0],o.a.v[1],o.a.v[2])},RepeaterModifier.prototype.init=function(e,s,i,o){for(this.elem=e,this.arr=s,this.pos=i,this.elemsData=o,this._currentCopies=0,this._elements=[],this._groups=[],this.frameId=-1,this.initDynamicPropertyContainer(e),this.initModifierProperties(e,s[i]);i>0;)i-=1,this._elements.unshift(s[i]);this.dynamicProperties.length?this.k=!0:this.getValue(!0)},RepeaterModifier.prototype.resetElements=function(e){var s,i=e.length;for(s=0;s<i;s+=1)e[s]._processed=!1,e[s].ty==="gr"&&this.resetElements(e[s].it)},RepeaterModifier.prototype.cloneElements=function(e){var s=JSON.parse(JSON.stringify(e));return this.resetElements(s),s},RepeaterModifier.prototype.changeGroupRender=function(e,s){var i,o=e.length;for(i=0;i<o;i+=1)e[i]._render=s,e[i].ty==="gr"&&this.changeGroupRender(e[i].it,s)},RepeaterModifier.prototype.processShapes=function(e){var s,i,o,a,c,d=!1;if(this._mdf||e){var h=Math.ceil(this.c.v);if(this._groups.length<h){for(;this._groups.length<h;){var g={it:this.cloneElements(this._elements),ty:"gr"};g.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,g),this._groups.splice(0,0,g),this._currentCopies+=1}this.elem.reloadShapes(),d=!0}c=0;var b;for(o=0;o<=this._groups.length-1;o+=1){if(b=c<h,this._groups[o]._render=b,this.changeGroupRender(this._groups[o].it,b),!b){var _=this.elemsData[o].it,_e=_[_.length-1];_e.transform.op.v!==0?(_e.transform.op._mdf=!0,_e.transform.op.v=0):_e.transform.op._mdf=!1}c+=1}this._currentCopies=h;var $=this.o.v,et=$%1,it=$>0?Math.floor($):Math.ceil($),rt=this.pMatrix.props,lt=this.rMatrix.props,st=this.sMatrix.props;this.pMatrix.reset(),this.rMatrix.reset(),this.sMatrix.reset(),this.tMatrix.reset(),this.matrix.reset();var ot=0;if($>0){for(;ot<it;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),ot+=1;et&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,et,!1),ot+=et)}else if($<0){for(;ot>it;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!0),ot-=1;et&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,-et,!0),ot-=et)}o=this.data.m===1?0:this._currentCopies-1,a=this.data.m===1?1:-1,c=this._currentCopies;for(var nt,at;c;){if(s=this.elemsData[o].it,i=s[s.length-1].transform.mProps.v.props,at=i.length,s[s.length-1].transform.mProps._mdf=!0,s[s.length-1].transform.op._mdf=!0,s[s.length-1].transform.op.v=this._currentCopies===1?this.so.v:this.so.v+(this.eo.v-this.so.v)*(o/(this._currentCopies-1)),ot!==0){for((o!==0&&a===1||o!==this._currentCopies-1&&a===-1)&&this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),this.matrix.transform(lt[0],lt[1],lt[2],lt[3],lt[4],lt[5],lt[6],lt[7],lt[8],lt[9],lt[10],lt[11],lt[12],lt[13],lt[14],lt[15]),this.matrix.transform(st[0],st[1],st[2],st[3],st[4],st[5],st[6],st[7],st[8],st[9],st[10],st[11],st[12],st[13],st[14],st[15]),this.matrix.transform(rt[0],rt[1],rt[2],rt[3],rt[4],rt[5],rt[6],rt[7],rt[8],rt[9],rt[10],rt[11],rt[12],rt[13],rt[14],rt[15]),nt=0;nt<at;nt+=1)i[nt]=this.matrix.props[nt];this.matrix.reset()}else for(this.matrix.reset(),nt=0;nt<at;nt+=1)i[nt]=this.matrix.props[nt];ot+=1,c-=1,o+=a}}else for(c=this._currentCopies,o=0,a=1;c;)s=this.elemsData[o].it,i=s[s.length-1].transform.mProps.v.props,s[s.length-1].transform.mProps._mdf=!1,s[s.length-1].transform.op._mdf=!1,c-=1,o+=a;return d},RepeaterModifier.prototype.addShape=function(){};function RoundCornersModifier(){}extendPrototype([ShapeModifier],RoundCornersModifier),RoundCornersModifier.prototype.initModifierProperties=function(e,s){this.getValue=this.processKeys,this.rd=PropertyFactory.getProp(e,s.r,0,null,this),this._isAnimated=!!this.rd.effectsSequence.length},RoundCornersModifier.prototype.processPath=function(e,s){var i=shapePool.newElement();i.c=e.c;var o,a=e._length,c,d,h,g,b,_,_e=0,$,et,it,rt,lt,st;for(o=0;o<a;o+=1)c=e.v[o],h=e.o[o],d=e.i[o],c[0]===h[0]&&c[1]===h[1]&&c[0]===d[0]&&c[1]===d[1]?(o===0||o===a-1)&&!e.c?(i.setTripleAt(c[0],c[1],h[0],h[1],d[0],d[1],_e),_e+=1):(o===0?g=e.v[a-1]:g=e.v[o-1],b=Math.sqrt(Math.pow(c[0]-g[0],2)+Math.pow(c[1]-g[1],2)),_=b?Math.min(b/2,s)/b:0,lt=c[0]+(g[0]-c[0])*_,$=lt,st=c[1]-(c[1]-g[1])*_,et=st,it=$-($-c[0])*roundCorner,rt=et-(et-c[1])*roundCorner,i.setTripleAt($,et,it,rt,lt,st,_e),_e+=1,o===a-1?g=e.v[0]:g=e.v[o+1],b=Math.sqrt(Math.pow(c[0]-g[0],2)+Math.pow(c[1]-g[1],2)),_=b?Math.min(b/2,s)/b:0,it=c[0]+(g[0]-c[0])*_,$=it,rt=c[1]+(g[1]-c[1])*_,et=rt,lt=$-($-c[0])*roundCorner,st=et-(et-c[1])*roundCorner,i.setTripleAt($,et,it,rt,lt,st,_e),_e+=1):(i.setTripleAt(e.v[o][0],e.v[o][1],e.o[o][0],e.o[o][1],e.i[o][0],e.i[o][1],_e),_e+=1);return i},RoundCornersModifier.prototype.processShapes=function(e){var s,i,o=this.shapes.length,a,c,d=this.rd.v;if(d!==0){var h,g;for(i=0;i<o;i+=1){if(h=this.shapes[i],g=h.localShapeCollection,!(!h.shape._mdf&&!this._mdf&&!e))for(g.releaseShapes(),h.shape._mdf=!0,s=h.shape.paths.shapes,c=h.shape.paths._length,a=0;a<c;a+=1)g.addShape(this.processPath(s[a],d));h.shape.paths=h.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};function floatEqual(e,s){return Math.abs(e-s)*1e5<=Math.min(Math.abs(e),Math.abs(s))}function floatZero(e){return Math.abs(e)<=1e-5}function lerp(e,s,i){return e*(1-i)+s*i}function lerpPoint(e,s,i){return[lerp(e[0],s[0],i),lerp(e[1],s[1],i)]}function quadRoots(e,s,i){if(e===0)return[];var o=s*s-4*e*i;if(o<0)return[];var a=-s/(2*e);if(o===0)return[a];var c=Math.sqrt(o)/(2*e);return[a-c,a+c]}function polynomialCoefficients(e,s,i,o){return[-e+3*s-3*i+o,3*e-6*s+3*i,-3*e+3*s,e]}function singlePoint(e){return new PolynomialBezier(e,e,e,e,!1)}function PolynomialBezier(e,s,i,o,a){a&&pointEqual(e,s)&&(s=lerpPoint(e,o,1/3)),a&&pointEqual(i,o)&&(i=lerpPoint(e,o,2/3));var c=polynomialCoefficients(e[0],s[0],i[0],o[0]),d=polynomialCoefficients(e[1],s[1],i[1],o[1]);this.a=[c[0],d[0]],this.b=[c[1],d[1]],this.c=[c[2],d[2]],this.d=[c[3],d[3]],this.points=[e,s,i,o]}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 s=this.derivative(e);return Math.atan2(s[1],s[0])},PolynomialBezier.prototype.normalAngle=function(e){var s=this.derivative(e);return Math.atan2(s[0],s[1])},PolynomialBezier.prototype.inflectionPoints=function(){var e=this.a[1]*this.b[0]-this.a[0]*this.b[1];if(floatZero(e))return[];var s=-.5*(this.a[1]*this.c[0]-this.a[0]*this.c[1])/e,i=s*s-1/3*(this.b[1]*this.c[0]-this.b[0]*this.c[1])/e;if(i<0)return[];var o=Math.sqrt(i);return floatZero(o)?o>0&&o<1?[s]:[]:[s-o,s+o].filter(function(a){return a>0&&a<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 s=lerpPoint(this.points[0],this.points[1],e),i=lerpPoint(this.points[1],this.points[2],e),o=lerpPoint(this.points[2],this.points[3],e),a=lerpPoint(s,i,e),c=lerpPoint(i,o,e),d=lerpPoint(a,c,e);return[new PolynomialBezier(this.points[0],s,a,d,!0),new PolynomialBezier(d,c,o,this.points[3],!0)]};function extrema(e,s){var i=e.points[0][s],o=e.points[e.points.length-1][s];if(i>o){var a=o;o=i,i=a}for(var c=quadRoots(3*e.a[s],2*e.b[s],e.c[s]),d=0;d<c.length;d+=1)if(c[d]>0&&c[d]<1){var h=e.point(c[d])[s];h<i?i=h:h>o&&(o=h)}return{min:i,max:o}}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,s,i){var o=e.boundingBox();return{cx:o.cx,cy:o.cy,width:o.width,height:o.height,bez:e,t:(s+i)/2,t1:s,t2:i}}function splitData(e){var s=e.bez.split(.5);return[intersectData(s[0],e.t1,e.t),intersectData(s[1],e.t,e.t2)]}function boxIntersect(e,s){return Math.abs(e.cx-s.cx)*2<e.width+s.width&&Math.abs(e.cy-s.cy)*2<e.height+s.height}function intersectsImpl(e,s,i,o,a,c){if(boxIntersect(e,s)){if(i>=c||e.width<=o&&e.height<=o&&s.width<=o&&s.height<=o){a.push([e.t,s.t]);return}var d=splitData(e),h=splitData(s);intersectsImpl(d[0],h[0],i+1,o,a,c),intersectsImpl(d[0],h[1],i+1,o,a,c),intersectsImpl(d[1],h[0],i+1,o,a,c),intersectsImpl(d[1],h[1],i+1,o,a,c)}}PolynomialBezier.prototype.intersections=function(e,s,i){s===void 0&&(s=2),i===void 0&&(i=7);var o=[];return intersectsImpl(intersectData(this,0,1),intersectData(e,0,1),0,s,o,i),o},PolynomialBezier.shapeSegment=function(e,s){var i=(s+1)%e.length();return new PolynomialBezier(e.v[s],e.o[s],e.i[i],e.v[i],!0)},PolynomialBezier.shapeSegmentInverted=function(e,s){var i=(s+1)%e.length();return new PolynomialBezier(e.v[i],e.i[i],e.o[s],e.v[s],!0)};function crossProduct(e,s){return[e[1]*s[2]-e[2]*s[1],e[2]*s[0]-e[0]*s[2],e[0]*s[1]-e[1]*s[0]]}function lineIntersection(e,s,i,o){var a=[e[0],e[1],1],c=[s[0],s[1],1],d=[i[0],i[1],1],h=[o[0],o[1],1],g=crossProduct(crossProduct(a,c),crossProduct(d,h));return floatZero(g[2])?null:[g[0]/g[2],g[1]/g[2]]}function polarOffset(e,s,i){return[e[0]+Math.cos(s)*i,e[1]-Math.sin(s)*i]}function pointDistance(e,s){return Math.hypot(e[0]-s[0],e[1]-s[1])}function pointEqual(e,s){return floatEqual(e[0],s[0])&&floatEqual(e[1],s[1])}function ZigZagModifier(){}extendPrototype([ShapeModifier],ZigZagModifier),ZigZagModifier.prototype.initModifierProperties=function(e,s){this.getValue=this.processKeys,this.amplitude=PropertyFactory.getProp(e,s.s,0,null,this),this.frequency=PropertyFactory.getProp(e,s.r,0,null,this),this.pointsType=PropertyFactory.getProp(e,s.pt,0,null,this),this._isAnimated=this.amplitude.effectsSequence.length!==0||this.frequency.effectsSequence.length!==0||this.pointsType.effectsSequence.length!==0};function setPoint(e,s,i,o,a,c,d){var h=i-Math.PI/2,g=i+Math.PI/2,b=s[0]+Math.cos(i)*o*a,_=s[1]-Math.sin(i)*o*a;e.setTripleAt(b,_,b+Math.cos(h)*c,_-Math.sin(h)*c,b+Math.cos(g)*d,_-Math.sin(g)*d,e.length())}function getPerpendicularVector(e,s){var i=[s[0]-e[0],s[1]-e[1]],o=-Math.PI*.5,a=[Math.cos(o)*i[0]-Math.sin(o)*i[1],Math.sin(o)*i[0]+Math.cos(o)*i[1]];return a}function getProjectingAngle(e,s){var i=s===0?e.length()-1:s-1,o=(s+1)%e.length(),a=e.v[i],c=e.v[o],d=getPerpendicularVector(a,c);return Math.atan2(0,1)-Math.atan2(d[1],d[0])}function zigZagCorner(e,s,i,o,a,c,d){var h=getProjectingAngle(s,i),g=s.v[i%s._length],b=s.v[i===0?s._length-1:i-1],_=s.v[(i+1)%s._length],_e=c===2?Math.sqrt(Math.pow(g[0]-b[0],2)+Math.pow(g[1]-b[1],2)):0,$=c===2?Math.sqrt(Math.pow(g[0]-_[0],2)+Math.pow(g[1]-_[1],2)):0;setPoint(e,s.v[i%s._length],h,d,o,$/((a+1)*2),_e/((a+1)*2))}function zigZagSegment(e,s,i,o,a,c){for(var d=0;d<o;d+=1){var h=(d+1)/(o+1),g=a===2?Math.sqrt(Math.pow(s.points[3][0]-s.points[0][0],2)+Math.pow(s.points[3][1]-s.points[0][1],2)):0,b=s.normalAngle(h),_=s.point(h);setPoint(e,_,b,c,i,g/((o+1)*2),g/((o+1)*2)),c=-c}return c}ZigZagModifier.prototype.processPath=function(e,s,i,o){var a=e._length,c=shapePool.newElement();if(c.c=e.c,e.c||(a-=1),a===0)return c;var d=-1,h=PolynomialBezier.shapeSegment(e,0);zigZagCorner(c,e,0,s,i,o,d);for(var g=0;g<a;g+=1)d=zigZagSegment(c,h,s,i,o,-d),g===a-1&&!e.c?h=null:h=PolynomialBezier.shapeSegment(e,(g+1)%a),zigZagCorner(c,e,g+1,s,i,o,d);return c},ZigZagModifier.prototype.processShapes=function(e){var s,i,o=this.shapes.length,a,c,d=this.amplitude.v,h=Math.max(0,Math.round(this.frequency.v)),g=this.pointsType.v;if(d!==0){var b,_;for(i=0;i<o;i+=1){if(b=this.shapes[i],_=b.localShapeCollection,!(!b.shape._mdf&&!this._mdf&&!e))for(_.releaseShapes(),b.shape._mdf=!0,s=b.shape.paths.shapes,c=b.shape.paths._length,a=0;a<c;a+=1)_.addShape(this.processPath(s[a],d,h,g));b.shape.paths=b.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};function linearOffset(e,s,i){var o=Math.atan2(s[0]-e[0],s[1]-e[1]);return[polarOffset(e,o,i),polarOffset(s,o,i)]}function offsetSegment(e,s){var i,o,a,c,d,h,g;g=linearOffset(e.points[0],e.points[1],s),i=g[0],o=g[1],g=linearOffset(e.points[1],e.points[2],s),a=g[0],c=g[1],g=linearOffset(e.points[2],e.points[3],s),d=g[0],h=g[1];var b=lineIntersection(i,o,a,c);b===null&&(b=o);var _=lineIntersection(d,h,a,c);return _===null&&(_=d),new PolynomialBezier(i,b,_,h)}function joinLines(e,s,i,o,a){var c=s.points[3],d=i.points[0];if(o===3||pointEqual(c,d))return c;if(o===2){var h=-s.tangentAngle(1),g=-i.tangentAngle(0)+Math.PI,b=lineIntersection(c,polarOffset(c,h+Math.PI/2,100),d,polarOffset(d,h+Math.PI/2,100)),_=b?pointDistance(b,c):pointDistance(c,d)/2,_e=polarOffset(c,h,2*_*roundCorner);return e.setXYAt(_e[0],_e[1],"o",e.length()-1),_e=polarOffset(d,g,2*_*roundCorner),e.setTripleAt(d[0],d[1],d[0],d[1],_e[0],_e[1],e.length()),d}var $=pointEqual(c,s.points[2])?s.points[0]:s.points[2],et=pointEqual(d,i.points[1])?i.points[3]:i.points[1],it=lineIntersection($,c,d,et);return it&&pointDistance(it,c)<a?(e.setTripleAt(it[0],it[1],it[0],it[1],it[0],it[1],e.length()),it):c}function getIntersection(e,s){var i=e.intersections(s);return i.length&&floatEqual(i[0][0],1)&&i.shift(),i.length?i[0]:null}function pruneSegmentIntersection(e,s){var i=e.slice(),o=s.slice(),a=getIntersection(e[e.length-1],s[0]);return a&&(i[e.length-1]=e[e.length-1].split(a[0])[0],o[0]=s[0].split(a[1])[1]),e.length>1&&s.length>1&&(a=getIntersection(e[0],s[s.length-1]),a)?[[e[0].split(a[0])[0]],[s[s.length-1].split(a[1])[1]]]:[i,o]}function pruneIntersections(e){for(var s,i=1;i<e.length;i+=1)s=pruneSegmentIntersection(e[i-1],e[i]),e[i-1]=s[0],e[i]=s[1];return e.length>1&&(s=pruneSegmentIntersection(e[e.length-1],e[0]),e[e.length-1]=s[0],e[0]=s[1]),e}function offsetSegmentSplit(e,s){var i=e.inflectionPoints(),o,a,c,d;if(i.length===0)return[offsetSegment(e,s)];if(i.length===1||floatEqual(i[1],1))return c=e.split(i[0]),o=c[0],a=c[1],[offsetSegment(o,s),offsetSegment(a,s)];c=e.split(i[0]),o=c[0];var h=(i[1]-i[0])/(1-i[0]);return c=c[1].split(h),d=c[0],a=c[1],[offsetSegment(o,s),offsetSegment(d,s),offsetSegment(a,s)]}function OffsetPathModifier(){}extendPrototype([ShapeModifier],OffsetPathModifier),OffsetPathModifier.prototype.initModifierProperties=function(e,s){this.getValue=this.processKeys,this.amount=PropertyFactory.getProp(e,s.a,0,null,this),this.miterLimit=PropertyFactory.getProp(e,s.ml,0,null,this),this.lineJoin=s.lj,this._isAnimated=this.amount.effectsSequence.length!==0},OffsetPathModifier.prototype.processPath=function(e,s,i,o){var a=shapePool.newElement();a.c=e.c;var c=e.length();e.c||(c-=1);var d,h,g,b=[];for(d=0;d<c;d+=1)g=PolynomialBezier.shapeSegment(e,d),b.push(offsetSegmentSplit(g,s));if(!e.c)for(d=c-1;d>=0;d-=1)g=PolynomialBezier.shapeSegmentInverted(e,d),b.push(offsetSegmentSplit(g,s));b=pruneIntersections(b);var _=null,_e=null;for(d=0;d<b.length;d+=1){var $=b[d];for(_e&&(_=joinLines(a,_e,$[0],i,o)),_e=$[$.length-1],h=0;h<$.length;h+=1)g=$[h],_&&pointEqual(g.points[0],_)?a.setXYAt(g.points[1][0],g.points[1][1],"o",a.length()-1):a.setTripleAt(g.points[0][0],g.points[0][1],g.points[1][0],g.points[1][1],g.points[0][0],g.points[0][1],a.length()),a.setTripleAt(g.points[3][0],g.points[3][1],g.points[3][0],g.points[3][1],g.points[2][0],g.points[2][1],a.length()),_=g.points[3]}return b.length&&joinLines(a,_e,b[0][0],i,o),a},OffsetPathModifier.prototype.processShapes=function(e){var s,i,o=this.shapes.length,a,c,d=this.amount.v,h=this.miterLimit.v,g=this.lineJoin;if(d!==0){var b,_;for(i=0;i<o;i+=1){if(b=this.shapes[i],_=b.localShapeCollection,!(!b.shape._mdf&&!this._mdf&&!e))for(_.releaseShapes(),b.shape._mdf=!0,s=b.shape.paths.shapes,c=b.shape.paths._length,a=0;a<c;a+=1)_.addShape(this.processPath(s[a],d,g,h));b.shape.paths=b.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};function getFontProperties(e){for(var s=e.fStyle?e.fStyle.split(" "):[],i="normal",o="normal",a=s.length,c,d=0;d<a;d+=1)switch(c=s[d].toLowerCase(),c){case"italic":o="italic";break;case"bold":i="700";break;case"black":i="900";break;case"medium":i="500";break;case"regular":case"normal":i="400";break;case"light":case"thin":i="200";break}return{style:o,weight:e.fWeight||i}}var FontManager=function(){var e=5e3,s={w:0,size:0,shapes:[],data:{shapes:[]}},i=[];i=i.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 o=127988,a=917631,c=917601,d=917626,h=65039,g=8205,b=127462,_=127487,_e=["d83cdffb","d83cdffc","d83cdffd","d83cdffe","d83cdfff"];function $(ft){var Et=ft.split(","),ut,ht=Et.length,gt=[];for(ut=0;ut<ht;ut+=1)Et[ut]!=="sans-serif"&&Et[ut]!=="monospace"&>.push(Et[ut]);return gt.join(",")}function et(ft,Et){var ut=createTag("span");ut.setAttribute("aria-hidden",!0),ut.style.fontFamily=Et;var ht=createTag("span");ht.innerText="giItT1WQy@!-/#",ut.style.position="absolute",ut.style.left="-10000px",ut.style.top="-10000px",ut.style.fontSize="300px",ut.style.fontVariant="normal",ut.style.fontStyle="normal",ut.style.fontWeight="normal",ut.style.letterSpacing="0",ut.appendChild(ht),document.body.appendChild(ut);var gt=ht.offsetWidth;return ht.style.fontFamily=$(ft)+", "+Et,{node:ht,w:gt,parent:ut}}function it(){var ft,Et=this.fonts.length,ut,ht,gt=Et;for(ft=0;ft<Et;ft+=1)this.fonts[ft].loaded?gt-=1:this.fonts[ft].fOrigin==="n"||this.fonts[ft].origin===0?this.fonts[ft].loaded=!0:(ut=this.fonts[ft].monoCase.node,ht=this.fonts[ft].monoCase.w,ut.offsetWidth!==ht?(gt-=1,this.fonts[ft].loaded=!0):(ut=this.fonts[ft].sansCase.node,ht=this.fonts[ft].sansCase.w,ut.offsetWidth!==ht&&(gt-=1,this.fonts[ft].loaded=!0)),this.fonts[ft].loaded&&(this.fonts[ft].sansCase.parent.parentNode.removeChild(this.fonts[ft].sansCase.parent),this.fonts[ft].monoCase.parent.parentNode.removeChild(this.fonts[ft].monoCase.parent)));gt!==0&&Date.now()-this.initTime<e?setTimeout(this.checkLoadedFontsBinded,20):setTimeout(this.setIsLoadedBinded,10)}function rt(ft,Et){var ut=document.body&&Et?"svg":"canvas",ht,gt=getFontProperties(ft);if(ut==="svg"){var xt=createNS("text");xt.style.fontSize="100px",xt.setAttribute("font-family",ft.fFamily),xt.setAttribute("font-style",gt.style),xt.setAttribute("font-weight",gt.weight),xt.textContent="1",ft.fClass?(xt.style.fontFamily="inherit",xt.setAttribute("class",ft.fClass)):xt.style.fontFamily=ft.fFamily,Et.appendChild(xt),ht=xt}else{var Rt=new OffscreenCanvas(500,500).getContext("2d");Rt.font=gt.style+" "+gt.weight+" 100px "+ft.fFamily,ht=Rt}function Tt(It){return ut==="svg"?(ht.textContent=It,ht.getComputedTextLength()):ht.measureText(It).width}return{measureText:Tt}}function lt(ft,Et){if(!ft){this.isLoaded=!0;return}if(this.chars){this.isLoaded=!0,this.fonts=ft.list;return}if(!document.body){this.isLoaded=!0,ft.list.forEach(function(Ut){Ut.helper=rt(Ut),Ut.cache={}}),this.fonts=ft.list;return}var ut=ft.list,ht,gt=ut.length,xt=gt;for(ht=0;ht<gt;ht+=1){var Rt=!0,Tt,It;if(ut[ht].loaded=!1,ut[ht].monoCase=et(ut[ht].fFamily,"monospace"),ut[ht].sansCase=et(ut[ht].fFamily,"sans-serif"),!ut[ht].fPath)ut[ht].loaded=!0,xt-=1;else if(ut[ht].fOrigin==="p"||ut[ht].origin===3){if(Tt=document.querySelectorAll('style[f-forigin="p"][f-family="'+ut[ht].fFamily+'"], style[f-origin="3"][f-family="'+ut[ht].fFamily+'"]'),Tt.length>0&&(Rt=!1),Rt){var Lt=createTag("style");Lt.setAttribute("f-forigin",ut[ht].fOrigin),Lt.setAttribute("f-origin",ut[ht].origin),Lt.setAttribute("f-family",ut[ht].fFamily),Lt.type="text/css",Lt.innerText="@font-face {font-family: "+ut[ht].fFamily+"; font-style: normal; src: url('"+ut[ht].fPath+"');}",Et.appendChild(Lt)}}else if(ut[ht].fOrigin==="g"||ut[ht].origin===1){for(Tt=document.querySelectorAll('link[f-forigin="g"], link[f-origin="1"]'),It=0;It<Tt.length;It+=1)Tt[It].href.indexOf(ut[ht].fPath)!==-1&&(Rt=!1);if(Rt){var $t=createTag("link");$t.setAttribute("f-forigin",ut[ht].fOrigin),$t.setAttribute("f-origin",ut[ht].origin),$t.type="text/css",$t.rel="stylesheet",$t.href=ut[ht].fPath,document.body.appendChild($t)}}else if(ut[ht].fOrigin==="t"||ut[ht].origin===2){for(Tt=document.querySelectorAll('script[f-forigin="t"], script[f-origin="2"]'),It=0;It<Tt.length;It+=1)ut[ht].fPath===Tt[It].src&&(Rt=!1);if(Rt){var Bt=createTag("link");Bt.setAttribute("f-forigin",ut[ht].fOrigin),Bt.setAttribute("f-origin",ut[ht].origin),Bt.setAttribute("rel","stylesheet"),Bt.setAttribute("href",ut[ht].fPath),Et.appendChild(Bt)}}ut[ht].helper=rt(ut[ht],Et),ut[ht].cache={},this.fonts.push(ut[ht])}xt===0?this.isLoaded=!0:setTimeout(this.checkLoadedFonts.bind(this),100)}function st(ft){if(ft){this.chars||(this.chars=[]);var Et,ut=ft.length,ht,gt=this.chars.length,xt;for(Et=0;Et<ut;Et+=1){for(ht=0,xt=!1;ht<gt;)this.chars[ht].style===ft[Et].style&&this.chars[ht].fFamily===ft[Et].fFamily&&this.chars[ht].ch===ft[Et].ch&&(xt=!0),ht+=1;xt||(this.chars.push(ft[Et]),gt+=1)}}}function ot(ft,Et,ut){for(var ht=0,gt=this.chars.length;ht<gt;){if(this.chars[ht].ch===ft&&this.chars[ht].style===Et&&this.chars[ht].fFamily===ut)return this.chars[ht];ht+=1}return(typeof ft=="string"&&ft.charCodeAt(0)!==13||!ft)&&console&&console.warn&&!this._warned&&(this._warned=!0,console.warn("Missing character from exported characters list: ",ft,Et,ut)),s}function nt(ft,Et,ut){var ht=this.getFontByName(Et),gt=ft;if(!ht.cache[gt]){var xt=ht.helper;if(ft===" "){var Rt=xt.measureText("|"+ft+"|"),Tt=xt.measureText("||");ht.cache[gt]=(Rt-Tt)/100}else ht.cache[gt]=xt.measureText(ft)/100}return ht.cache[gt]*ut}function at(ft){for(var Et=0,ut=this.fonts.length;Et<ut;){if(this.fonts[Et].fName===ft)return this.fonts[Et];Et+=1}return this.fonts[0]}function ct(ft){var Et=0,ut=ft.charCodeAt(0);if(ut>=55296&&ut<=56319){var ht=ft.charCodeAt(1);ht>=56320&&ht<=57343&&(Et=(ut-55296)*1024+ht-56320+65536)}return Et}function dt(ft,Et){var ut=ft.toString(16)+Et.toString(16);return _e.indexOf(ut)!==-1}function pt(ft){return ft===g}function mt(ft){return ft===h}function St(ft){var Et=ct(ft);return Et>=b&&Et<=_}function Pt(ft){return St(ft.substr(0,2))&&St(ft.substr(2,2))}function Mt(ft){return i.indexOf(ft)!==-1}function Ct(ft,Et){var ut=ct(ft.substr(Et,2));if(ut!==o)return!1;var ht=0;for(Et+=2;ht<5;){if(ut=ct(ft.substr(Et,2)),ut<c||ut>d)return!1;ht+=1,Et+=2}return ct(ft.substr(Et,2))===a}function Nt(){this.isLoaded=!0}var kt=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)};kt.isModifier=dt,kt.isZeroWidthJoiner=pt,kt.isFlagEmoji=Pt,kt.isRegionalCode=St,kt.isCombinedCharacter=Mt,kt.isRegionalFlag=Ct,kt.isVariationSelector=mt,kt.BLACK_FLAG_CODE_POINT=o;var At={addChars:st,addFonts:lt,getCharData:ot,getFontByName:at,measureText:nt,checkLoadedFonts:it,setIsLoaded:Nt};return kt.prototype=At,kt}();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(s){this.renderableComponents.indexOf(s)===-1&&this.renderableComponents.push(s)},removeRenderableComponent:function(s){this.renderableComponents.indexOf(s)!==-1&&this.renderableComponents.splice(this.renderableComponents.indexOf(s),1)},prepareRenderableFrame:function(s){this.checkLayerLimits(s)},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(s){this.data.ip-this.data.st<=s&&this.data.op-this.data.st>s?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 s,i=this.renderableComponents.length;for(s=0;s<i;s+=1)this.renderableComponents[s].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(s){return e[s]||""}}();function SliderEffect(e,s,i){this.p=PropertyFactory.getProp(s,e.v,0,0,i)}function AngleEffect(e,s,i){this.p=PropertyFactory.getProp(s,e.v,0,0,i)}function ColorEffect(e,s,i){this.p=PropertyFactory.getProp(s,e.v,1,0,i)}function PointEffect(e,s,i){this.p=PropertyFactory.getProp(s,e.v,1,0,i)}function LayerIndexEffect(e,s,i){this.p=PropertyFactory.getProp(s,e.v,0,0,i)}function MaskIndexEffect(e,s,i){this.p=PropertyFactory.getProp(s,e.v,0,0,i)}function CheckboxEffect(e,s,i){this.p=PropertyFactory.getProp(s,e.v,0,0,i)}function NoValueEffect(){this.p={}}function EffectsManager(e,s){var i=e.ef||[];this.effectElements=[];var o,a=i.length,c;for(o=0;o<a;o+=1)c=new GroupEffect(i[o],s),this.effectElements.push(c)}function GroupEffect(e,s){this.init(e,s)}extendPrototype([DynamicPropertyContainer],GroupEffect),GroupEffect.prototype.getValue=GroupEffect.prototype.iterateDynamicProperties,GroupEffect.prototype.init=function(e,s){this.data=e,this.effectElements=[],this.initDynamicPropertyContainer(s);var i,o=this.data.ef.length,a,c=this.data.ef;for(i=0;i<o;i+=1){switch(a=null,c[i].ty){case 0:a=new SliderEffect(c[i],s,this);break;case 1:a=new AngleEffect(c[i],s,this);break;case 2:a=new ColorEffect(c[i],s,this);break;case 3:a=new PointEffect(c[i],s,this);break;case 4:case 7:a=new CheckboxEffect(c[i],s,this);break;case 10:a=new LayerIndexEffect(c[i],s,this);break;case 11:a=new MaskIndexEffect(c[i],s,this);break;case 5:a=new EffectsManager(c[i],s);break;default:a=new NoValueEffect(c[i]);break}a&&this.effectElements.push(a)}};function BaseElement(){}BaseElement.prototype={checkMasks:function(){if(!this.data.hasMask)return!1;for(var s=0,i=this.data.masksProperties.length;s<i;){if(this.data.masksProperties[s].mode!=="n"&&this.data.masksProperties[s].cl!==!1)return!0;s+=1}return!1},initExpressions:function(){var s=getExpressionInterfaces();if(s){var i=s("layer"),o=s("effects"),a=s("shape"),c=s("text"),d=s("comp");this.layerInterface=i(this),this.data.hasMask&&this.maskManager&&this.layerInterface.registerMaskInterface(this.maskManager);var h=o.createEffectsInterface(this,this.layerInterface);this.layerInterface.registerEffectsInterface(h),this.data.ty===0||this.data.xt?this.compInterface=d(this):this.data.ty===4?(this.layerInterface.shapeInterface=a(this.shapesData,this.itemsData,this.layerInterface),this.layerInterface.content=this.layerInterface.shapeInterface):this.data.ty===5&&(this.layerInterface.textInterface=c(this),this.layerInterface.text=this.layerInterface.textInterface)}},setBlendMode:function(){var s=getBlendMode(this.data.bm),i=this.baseElement||this.layerElement;i.style["mix-blend-mode"]=s},initBaseData:function(s,i,o){this.globalData=i,this.comp=o,this.data=s,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(s,i){var o,a=this.dynamicProperties.length;for(o=0;o<a;o+=1)(i||this._isParent&&this.dynamicProperties[o].propType==="transform")&&(this.dynamicProperties[o].getValue(),this.dynamicProperties[o]._mdf&&(this.globalData._mdf=!0,this._mdf=!0))},addDynamicProperty:function(s){this.dynamicProperties.indexOf(s)===-1&&this.dynamicProperties.push(s)}};function FootageElement(e,s,i){this.initFrame(),this.initRenderable(),this.assetData=s.getAssetData(e.refId),this.footageData=s.imageLoader.getAsset(this.assetData),this.initBaseData(e,s,i)}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 s=e("footage");this.layerInterface=s(this)}},FootageElement.prototype.getFootageData=function(){return this.footageData};function AudioElement(e,s,i){this.initFrame(),this.initRenderable(),this.assetData=s.getAssetData(e.refId),this.initBaseData(e,s,i),this._isPlaying=!1,this._canPlay=!1;var o=this.globalData.getAssetsPath(this.assetData);this.audio=this.globalData.audioController.createAudio(o),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,s.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 s=this.tm.v;this._currentTime=s}this._volume=this.lv.v[0];var i=this._volume*this._volumeMultiplier;this._previousVolume!==i&&(this._previousVolume=i,this.audio.volume(i))},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 s,i=this.layers.length,o;for(this.completeLayers=!0,s=i-1;s>=0;s-=1)this.elements[s]||(o=this.layers[s],o.ip-o.st<=e-this.layers[s].st&&o.op-o.st>e-this.layers[s].st&&this.buildItem(s)),this.completeLayers=this.elements[s]?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,s=this.layers.length;for(e=0;e<s;e+=1)this.buildItem(e);this.checkPendingElements()},BaseRenderer.prototype.includeLayers=function(e){this.completeLayers=!1;var s,i=e.length,o,a=this.layers.length;for(s=0;s<i;s+=1)for(o=0;o<a;){if(this.layers[o].id===e[s].id){this.layers[o]=e[s];break}o+=1}},BaseRenderer.prototype.setProjectInterface=function(e){this.globalData.projectInterface=e},BaseRenderer.prototype.initItems=function(){this.globalData.progressiveLoad||this.buildAllItems()},BaseRenderer.prototype.buildElementParenting=function(e,s,i){for(var o=this.elements,a=this.layers,c=0,d=a.length;c<d;)a[c].ind==s&&(!o[c]||o[c]===!0?(this.buildItem(c),this.addPendingElement(e)):(i.push(o[c]),o[c].setAsParent(),a[c].parent!==void 0?this.buildElementParenting(e,a[c].parent,i):e.setHierarchy(i))),c+=1},BaseRenderer.prototype.addPendingElement=function(e){this.pendingElements.push(e)},BaseRenderer.prototype.searchExtraCompositions=function(e){var s,i=e.length;for(s=0;s<i;s+=1)if(e[s].xt){var o=this.createComp(e[s]);o.initExpressions(),this.globalData.projectInterface.registerComposition(o)}},BaseRenderer.prototype.getElementById=function(e){var s,i=this.elements.length;for(s=0;s<i;s+=1)if(this.elements[s].data.ind===e)return this.elements[s];return null},BaseRenderer.prototype.getElementByPath=function(e){var s=e.shift(),i;if(typeof s=="number")i=this.elements[s];else{var o,a=this.elements.length;for(o=0;o<a;o+=1)if(this.elements[o].data.nm===s){i=this.elements[o];break}}return e.length===0?i:i.getElementByPath(e)},BaseRenderer.prototype.setupGlobalData=function(e,s){this.globalData.fontManager=new FontManager,this.globalData.slotManager=slotFactory(e),this.globalData.fontManager.addChars(e.chars),this.globalData.fontManager.addFonts(e.fonts,s),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 s=new Matrix;this.finalTransform={mProp:this.data.ks?TransformPropertyFactory.getTransformProperty(this,this.data.ks,this):{o:0},_matMdf:!1,_localMatMdf:!1,_opMdf:!1,mat:s,localMat:s,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 s,i=this.finalTransform.mat,o=0,a=this.hierarchy.length;if(!this.finalTransform._matMdf)for(;o<a;){if(this.hierarchy[o].finalTransform.mProp._mdf){this.finalTransform._matMdf=!0;break}o+=1}if(this.finalTransform._matMdf)for(s=this.finalTransform.mProp.v.props,i.cloneFromProps(s),o=0;o<a;o+=1)i.multiply(this.hierarchy[o].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 s=0,i=this.localTransforms.length;if(this.finalTransform._localMatMdf=this.finalTransform._matMdf,!this.finalTransform._localMatMdf||!this.finalTransform._opMdf)for(;s<i;)this.localTransforms[s]._mdf&&(this.finalTransform._localMatMdf=!0),this.localTransforms[s]._opMdf&&!this.finalTransform._opMdf&&(this.finalTransform.localOpacity=this.finalTransform.mProp.o.v,this.finalTransform._opMdf=!0),s+=1;if(this.finalTransform._localMatMdf){var o=this.finalTransform.localMat;for(this.localTransforms[0].matrix.clone(o),s=1;s<i;s+=1){var a=this.localTransforms[s].matrix;o.multiply(a)}o.multiply(this.finalTransform.mat)}if(this.finalTransform._opMdf){var c=this.finalTransform.localOpacity;for(s=0;s<i;s+=1)c*=this.localTransforms[s].opacity*.01;this.finalTransform.localOpacity=c}}},searchEffectTransforms:function(){if(this.renderableEffectsManager){var s=this.renderableEffectsManager.getEffects(effectTypes.TRANSFORM_EFFECT);if(s.length){this.localTransforms=[],this.finalTransform.localMat=new Matrix;var i=0,o=s.length;for(i=0;i<o;i+=1)this.localTransforms.push(s[i])}}},globalToLocal:function(s){var i=[];i.push(this.finalTransform);for(var o=!0,a=this.comp;o;)a.finalTransform?(a.data.hasMask&&i.splice(0,0,a.finalTransform),a=a.comp):o=!1;var c,d=i.length,h;for(c=0;c<d;c+=1)h=i[c].mat.applyToPointArray(0,0,0),s=[s[0]-h[0],s[1]-h[1],0];return s},mHelper:new Matrix};function MaskElement(e,s,i){this.data=e,this.element=s,this.globalData=i,this.storedData=[],this.masksProperties=this.data.masksProperties||[],this.maskElement=null;var o=this.globalData.defs,a,c=this.masksProperties?this.masksProperties.length:0;this.viewData=createSizedArray(c),this.solidPath="";var d,h=this.masksProperties,g=0,b=[],_,_e,$=createElementID(),et,it,rt,lt,st="clipPath",ot="clip-path";for(a=0;a<c;a+=1)if((h[a].mode!=="a"&&h[a].mode!=="n"||h[a].inv||h[a].o.k!==100||h[a].o.x)&&(st="mask",ot="mask"),(h[a].mode==="s"||h[a].mode==="i")&&g===0?(et=createNS("rect"),et.setAttribute("fill","#ffffff"),et.setAttribute("width",this.element.comp.data.w||0),et.setAttribute("height",this.element.comp.data.h||0),b.push(et)):et=null,d=createNS("path"),h[a].mode==="n")this.viewData[a]={op:PropertyFactory.getProp(this.element,h[a].o,0,.01,this.element),prop:ShapePropertyFactory.getShapeProp(this.element,h[a],3),elem:d,lastPath:""},o.appendChild(d);else{g+=1,d.setAttribute("fill",h[a].mode==="s"?"#000000":"#ffffff"),d.setAttribute("clip-rule","nonzero");var nt;if(h[a].x.k!==0?(st="mask",ot="mask",lt=PropertyFactory.getProp(this.element,h[a].x,0,null,this.element),nt=createElementID(),it=createNS("filter"),it.setAttribute("id",nt),rt=createNS("feMorphology"),rt.setAttribute("operator","erode"),rt.setAttribute("in","SourceGraphic"),rt.setAttribute("radius","0"),it.appendChild(rt),o.appendChild(it),d.setAttribute("stroke",h[a].mode==="s"?"#000000":"#ffffff")):(rt=null,lt=null),this.storedData[a]={elem:d,x:lt,expan:rt,lastPath:"",lastOperator:"",filterId:nt,lastRadius:0},h[a].mode==="i"){_e=b.length;var at=createNS("g");for(_=0;_<_e;_+=1)at.appendChild(b[_]);var ct=createNS("mask");ct.setAttribute("mask-type","alpha"),ct.setAttribute("id",$+"_"+g),ct.appendChild(d),o.appendChild(ct),at.setAttribute("mask","url("+getLocationHref()+"#"+$+"_"+g+")"),b.length=0,b.push(at)}else b.push(d);h[a].inv&&!this.solidPath&&(this.solidPath=this.createLayerSolidPath()),this.viewData[a]={elem:d,lastPath:"",op:PropertyFactory.getProp(this.element,h[a].o,0,.01,this.element),prop:ShapePropertyFactory.getShapeProp(this.element,h[a],3),invRect:et},this.viewData[a].prop.k||this.drawPath(h[a],this.viewData[a].prop.v,this.viewData[a])}for(this.maskElement=createNS(st),c=b.length,a=0;a<c;a+=1)this.maskElement.appendChild(b[a]);g>0&&(this.maskElement.setAttribute("id",$),this.element.maskedElement.setAttribute(ot,"url("+getLocationHref()+"#"+$+")"),o.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 s=this.element.finalTransform.mat,i,o=this.masksProperties.length;for(i=0;i<o;i+=1)if((this.viewData[i].prop._mdf||e)&&this.drawPath(this.masksProperties[i],this.viewData[i].prop.v,this.viewData[i]),(this.viewData[i].op._mdf||e)&&this.viewData[i].elem.setAttribute("fill-opacity",this.viewData[i].op.v),this.masksProperties[i].mode!=="n"&&(this.viewData[i].invRect&&(this.element.finalTransform.mProp._mdf||e)&&this.viewData[i].invRect.setAttribute("transform",s.getInverseMatrix().to2dCSS()),this.storedData[i].x&&(this.storedData[i].x._mdf||e))){var a=this.storedData[i].expan;this.storedData[i].x.v<0?(this.storedData[i].lastOperator!=="erode"&&(this.storedData[i].lastOperator="erode",this.storedData[i].elem.setAttribute("filter","url("+getLocationHref()+"#"+this.storedData[i].filterId+")")),a.setAttribute("radius",-this.storedData[i].x.v)):(this.storedData[i].lastOperator!=="dilate"&&(this.storedData[i].lastOperator="dilate",this.storedData[i].elem.setAttribute("filter",null)),this.storedData[i].elem.setAttribute("stroke-width",this.storedData[i].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,s,i){var o=" M"+s.v[0][0]+","+s.v[0][1],a,c;for(c=s._length,a=1;a<c;a+=1)o+=" C"+s.o[a-1][0]+","+s.o[a-1][1]+" "+s.i[a][0]+","+s.i[a][1]+" "+s.v[a][0]+","+s.v[a][1];if(s.c&&c>1&&(o+=" C"+s.o[a-1][0]+","+s.o[a-1][1]+" "+s.i[0][0]+","+s.i[0][1]+" "+s.v[0][0]+","+s.v[0][1]),i.lastPath!==o){var d="";i.elem&&(s.c&&(d=e.inv?this.solidPath+o:o),i.elem.setAttribute("d",d)),i.lastPath=o}},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=s,e.createAlphaToLuminanceFilter=i;function s(o,a){var c=createNS("filter");return c.setAttribute("id",o),a!==!0&&(c.setAttribute("filterUnits","objectBoundingBox"),c.setAttribute("x","0%"),c.setAttribute("y","0%"),c.setAttribute("width","100%"),c.setAttribute("height","100%")),c}function i(){var o=createNS("feColorMatrix");return o.setAttribute("type","matrix"),o.setAttribute("color-interpolation-filters","sRGB"),o.setAttribute("values","0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 1"),o}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 s,i="SourceGraphic",o=e.data.ef?e.data.ef.length:0,a=createElementID(),c=filtersFactory.createFilter(a,!0),d=0;this.filters=[];var h;for(s=0;s<o;s+=1){h=null;var g=e.data.ef[s].ty;if(registeredEffects$1[g]){var b=registeredEffects$1[g].effect;h=new b(c,e.effectsManager.effectElements[s],e,idPrefix+d,i),i=idPrefix+d,registeredEffects$1[g].countsAsEffect&&(d+=1)}h&&this.filters.push(h)}d&&(e.globalData.defs.appendChild(c),e.layerElement.setAttribute("filter","url("+getLocationHref()+"#"+a+")")),this.filters.length&&e.addRenderableComponent(this)}SVGEffects.prototype.renderFrame=function(e){var s,i=this.filters.length;for(s=0;s<i;s+=1)this.filters[s].renderFrame(e)},SVGEffects.prototype.getEffects=function(e){var s,i=this.filters.length,o=[];for(s=0;s<i;s+=1)this.filters[s].type===e&&o.push(this.filters[s]);return o};function registerEffect$1(e,s,i){registeredEffects$1[e]={effect:s,countsAsEffect:i}}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 s=null;if(this.data.td){this.matteMasks={};var i=createNS("g");i.setAttribute("id",this.layerId),i.appendChild(this.layerElement),s=i,this.globalData.defs.appendChild(i)}else this.data.tt?(this.matteElement.appendChild(this.layerElement),s=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 o=createNS("clipPath"),a=createNS("path");a.setAttribute("d","M0,0 L"+this.data.w+",0 L"+this.data.w+","+this.data.h+" L0,"+this.data.h+"z");var c=createElementID();if(o.setAttribute("id",c),o.appendChild(a),this.globalData.defs.appendChild(o),this.checkMasks()){var d=createNS("g");d.setAttribute("clip-path","url("+getLocationHref()+"#"+c+")"),d.appendChild(this.layerElement),this.transformedElement=d,s?s.appendChild(this.transformedElement):this.baseElement=this.transformedElement}else this.layerElement.setAttribute("clip-path","url("+getLocationHref()+"#"+c+")")}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("op
546acity",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(s){if(this.matteMasks||(this.matteMasks={}),!this.matteMasks[s]){var i=this.layerId+"_"+s,o,a,c,d;if(s===1||s===3){var h=createNS("mask");h.setAttribute("id",i),h.setAttribute("mask-type",s===3?"luminance":"alpha"),c=createNS("use"),c.setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),h.appendChild(c),this.globalData.defs.appendChild(h),!featureSupport.maskType&&s===1&&(h.setAttribute("mask-type","luminance"),o=createElementID(),a=filtersFactory.createFilter(o),this.globalData.defs.appendChild(a),a.appendChild(filtersFactory.createAlphaToLuminanceFilter()),d=createNS("g"),d.appendChild(c),h.appendChild(d),d.setAttribute("filter","url("+getLocationHref()+"#"+o+")"))}else if(s===2){var g=createNS("mask");g.setAttribute("id",i),g.setAttribute("mask-type","alpha");var b=createNS("g");g.appendChild(b),o=createElementID(),a=filtersFactory.createFilter(o);var _=createNS("feComponentTransfer");_.setAttribute("in","SourceGraphic"),a.appendChild(_);var _e=createNS("feFuncA");_e.setAttribute("type","table"),_e.setAttribute("tableValues","1.0 0.0"),_.appendChild(_e),this.globalData.defs.appendChild(a);var $=createNS("rect");$.setAttribute("width",this.comp.data.w),$.setAttribute("height",this.comp.data.h),$.setAttribute("x","0"),$.setAttribute("y","0"),$.setAttribute("fill","#ffffff"),$.setAttribute("opacity","0"),b.setAttribute("filter","url("+getLocationHref()+"#"+o+")"),b.appendChild($),c=createNS("use"),c.setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),b.appendChild(c),featureSupport.maskType||(g.setAttribute("mask-type","luminance"),a.appendChild(filtersFactory.createAlphaToLuminanceFilter()),d=createNS("g"),b.appendChild($),d.appendChild(this.layerElement),b.appendChild(d)),this.globalData.defs.appendChild(g)}this.matteMasks[s]=i}return this.matteMasks[s]},setMatte:function(s){this.matteElement&&this.matteElement.setAttribute("mask","url("+getLocationHref()+"#"+s+")")}};function HierarchyElement(){}HierarchyElement.prototype={initHierarchy:function(){this.hierarchy=[],this._isParent=!1,this.checkParenting()},setHierarchy:function(s){this.hierarchy=s},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(i,o,a){this.initFrame(),this.initBaseData(i,o,a),this.initTransform(i,o,a),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.createContent(),this.hide()},hide:function(){if(!this.hidden&&(!this.isInRange||this.isTransparent)){var i=this.baseElement||this.layerElement;i.style.display="none",this.hidden=!0}},show:function(){if(this.isInRange&&!this.isTransparent){if(!this.data.hd){var i=this.baseElement||this.layerElement;i.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(i){this._mdf=!1,this.prepareRenderableFrame(i),this.prepareProperties(i,this.isInRange),this.checkTransparency()},destroy:function(){this.innerElem=null,this.destroyBaseElement()}};extendPrototype([RenderableElement,createProxyFunction(e)],RenderableDOMElement)})();function IImageElement(e,s,i){this.assetData=s.getAssetData(e.refId),this.assetData&&this.assetData.sid&&(this.assetData=s.slotManager.getProp(this.assetData)),this.initElement(e,s,i),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,s){this.elem=e,this.pos=s}function IShapeElement(){}IShapeElement.prototype={addShapeToModifiers:function(s){var i,o=this.shapeModifiers.length;for(i=0;i<o;i+=1)this.shapeModifiers[i].addShape(s)},isShapeInAnimatedModifiers:function(s){for(var i=0,o=this.shapeModifiers.length;i<o;)if(this.shapeModifiers[i].isAnimatedWithShape(s))return!0;return!1},renderModifiers:function(){if(this.shapeModifiers.length){var s,i=this.shapes.length;for(s=0;s<i;s+=1)this.shapes[s].sh.reset();i=this.shapeModifiers.length;var o;for(s=i-1;s>=0&&(o=this.shapeModifiers[s].processShapes(this._isFirstFrame),!o);s-=1);}},searchProcessedElement:function(s){for(var i=this.processedElements,o=0,a=i.length;o<a;){if(i[o].elem===s)return i[o].pos;o+=1}return 0},addProcessedElement:function(s,i){for(var o=this.processedElements,a=o.length;a;)if(a-=1,o[a].elem===s){o[a].pos=i;return}o.push(new ProcessedElement(s,i))},prepareFrame:function(s){this.prepareRenderableFrame(s),this.prepareProperties(s,this.isInRange)}};var lineCapEnum={1:"butt",2:"round",3:"square"},lineJoinEnum={1:"miter",2:"round",3:"bevel"};function SVGShapeData(e,s,i){this.caches=[],this.styles=[],this.transformers=e,this.lStr="",this.sh=i,this.lvl=s,this._isAnimated=!!i.k;for(var o=0,a=e.length;o<a;){if(e[o].mProps.dynamicProperties.length){this._isAnimated=!0;break}o+=1}}SVGShapeData.prototype.setAsAnimated=function(){this._isAnimated=!0};function SVGStyleData(e,s){this.data=e,this.type=e.ty,this.d="",this.lvl=s,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,s,i,o){this.elem=e,this.frameId=-1,this.dataProps=createSizedArray(s.length),this.renderer=i,this.k=!1,this.dashStr="",this.dashArray=createTypedArray("float32",s.length?s.length-1:0),this.dashoffset=createTypedArray("float32",1),this.initDynamicPropertyContainer(o);var a,c=s.length||0,d;for(a=0;a<c;a+=1)d=PropertyFactory.getProp(e,s[a].v,0,0,this),this.k=d.k||this.k,this.dataProps[a]={n:s[a].n,p:d};this.k||this.getValue(!0),this._isAnimated=this.k}DashProperty.prototype.getValue=function(e){if(!(this.elem.globalData.frameId===this.frameId&&
vendor: 41,049 bytes, line 546
546!e)&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf=this._mdf||e,this._mdf)){var s=0,i=this.dataProps.length;for(this.renderer==="svg"&&(this.dashStr=""),s=0;s<i;s+=1)this.dataProps[s].n!=="o"?this.renderer==="svg"?this.dashStr+=" "+this.dataProps[s].p.v:this.dashArray[s]=this.dataProps[s].p.v:this.dashoffset[0]=this.dataProps[s].p.v}},extendPrototype([DynamicPropertyContainer],DashProperty);function SVGStrokeStyleData(e,s,i){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.o=PropertyFactory.getProp(e,s.o,0,.01,this),this.w=PropertyFactory.getProp(e,s.w,0,null,this),this.d=new DashProperty(e,s.d||{},"svg",this),this.c=PropertyFactory.getProp(e,s.c,1,255,this),this.style=i,this._isAnimated=!!this._isAnimated}extendPrototype([DynamicPropertyContainer],SVGStrokeStyleData);function SVGFillStyleData(e,s,i){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.o=PropertyFactory.getProp(e,s.o,0,.01,this),this.c=PropertyFactory.getProp(e,s.c,1,255,this),this.style=i}extendPrototype([DynamicPropertyContainer],SVGFillStyleData);function SVGNoStyleData(e,s,i){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.style=i}extendPrototype([DynamicPropertyContainer],SVGNoStyleData);function GradientProperty(e,s,i){this.data=s,this.c=createTypedArray("uint8c",s.p*4);var o=s.k.k[0].s?s.k.k[0].s.length-s.p*4:s.k.k.length-s.p*4;this.o=createTypedArray("float32",o),this._cmdf=!1,this._omdf=!1,this._collapsable=this.checkCollapsable(),this._hasOpacity=o,this.initDynamicPropertyContainer(i),this.prop=PropertyFactory.getProp(e,s.k,1,null,this),this.k=this.prop.k,this.getValue(!0)}GradientProperty.prototype.comparePoints=function(e,s){for(var i=0,o=this.o.length/2,a;i<o;){if(a=Math.abs(e[i*4]-e[s*4+i*2]),a>.01)return!1;i+=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,s=this.data.k.k.length;e<s;){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 s,i=this.data.p*4,o,a;for(s=0;s<i;s+=1)o=s%4===0?100:255,a=Math.round(this.prop.v[s]*o),this.c[s]!==a&&(this.c[s]=a,this._cmdf=!e);if(this.o.length)for(i=this.prop.v.length,s=this.data.p*4;s<i;s+=1)o=s%2===0?100:1,a=s%2===0?Math.round(this.prop.v[s]*100):this.prop.v[s],this.o[s-this.data.p*4]!==a&&(this.o[s-this.data.p*4]=a,this._omdf=!e);this._mdf=!e}},extendPrototype([DynamicPropertyContainer],GradientProperty);function SVGGradientFillStyleData(e,s,i){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.initGradientData(e,s,i)}SVGGradientFillStyleData.prototype.initGradientData=function(e,s,i){this.o=PropertyFactory.getProp(e,s.o,0,.01,this),this.s=PropertyFactory.getProp(e,s.s,1,null,this),this.e=PropertyFactory.getProp(e,s.e,1,null,this),this.h=PropertyFactory.getProp(e,s.h||{k:0},0,.01,this),this.a=PropertyFactory.getProp(e,s.a||{k:0},0,degToRads,this),this.g=new GradientProperty(e,s.g,this),this.style=i,this.stops=[],this.setGradientData(i.pElem,s),this.setGradientOpacity(s,i),this._isAnimated=!!this._isAnimated},SVGGradientFillStyleData.prototype.setGradientData=function(e,s){var i=createElementID(),o=createNS(s.t===1?"linearGradient":"radialGradient");o.setAttribute("id",i),o.setAttribute("spreadMethod","pad"),o.setAttribute("gradientUnits","userSpaceOnUse");var a=[],c,d,h;for(h=s.g.p*4,d=0;d<h;d+=4)c=createNS("stop"),o.appendChild(c),a.push(c);e.setAttribute(s.ty==="gf"?"fill":"stroke","url("+getLocationHref()+"#"+i+")"),this.gf=o,this.cst=a},SVGGradientFillStyleData.prototype.setGradientOpacity=function(e,s){if(this.g._hasOpacity&&!this.g._collapsable){var i,o,a,c=createNS("mask"),d=createNS("path");c.appendChild(d);var h=createElementID(),g=createElementID();c.setAttribute("id",g);var b=createNS(e.t===1?"linearGradient":"radialGradient");b.setAttribute("id",h),b.setAttribute("spreadMethod","pad"),b.setAttribute("gradientUnits","userSpaceOnUse"),a=e.g.k.k[0].s?e.g.k.k[0].s.length:e.g.k.k.length;var _=this.stops;for(o=e.g.p*4;o<a;o+=2)i=createNS("stop"),i.setAttribute("stop-color","rgb(255,255,255)"),b.appendChild(i),_.push(i);d.setAttribute(e.ty==="gf"?"fill":"stroke","url("+getLocationHref()+"#"+h+")"),e.ty==="gs"&&(d.setAttribute("stroke-linecap",lineCapEnum[e.lc||2]),d.setAttribute("stroke-linejoin",lineJoinEnum[e.lj||2]),e.lj===1&&d.setAttribute("stroke-miterlimit",e.ml)),this.of=b,this.ms=c,this.ost=_,this.maskId=g,s.msElem=d}},extendPrototype([DynamicPropertyContainer],SVGGradientFillStyleData);function SVGGradientStrokeStyleData(e,s,i){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.w=PropertyFactory.getProp(e,s.w,0,null,this),this.d=new DashProperty(e,s.d||{},"svg",this),this.initGradientData(e,s,i),this._isAnimated=!!this._isAnimated}extendPrototype([SVGGradientFillStyleData,DynamicPropertyContainer],SVGGradientStrokeStyleData);function ShapeGroupData(){this.it=[],this.prevViewData=[],this.gr=createNS("g")}function SVGTransformData(e,s,i){this.transform={mProps:e,op:s,container:i},this.elements=[],this._isAnimated=this.transform.mProps.dynamicProperties.length||this.transform.op.effectsSequence.length}var buildShapeString=function(s,i,o,a){if(i===0)return"";var c=s.o,d=s.i,h=s.v,g,b=" M"+a.applyToPointStringified(h[0][0],h[0][1]);for(g=1;g<i;g+=1)b+=" C"+a.applyToPointStringified(c[g-1][0],c[g-1][1])+" "+a.applyToPointStringified(d[g][0],d[g][1])+" "+a.applyToPointStringified(h[g][0],h[g][1]);return o&&i&&(b+=" C"+a.applyToPointStringified(c[g-1][0],c[g-1][1])+" "+a.applyToPointStringified(d[0][0],d[0][1])+" "+a.applyToPointStringified(h[0][0],h[0][1]),b+="z"),b},SVGElementsRenderer=function(){var e=new Matrix,s=new Matrix,i={createRenderFunction:o};function o(_e){switch(_e.ty){case"fl":return h;case"gf":return b;case"gs":return g;case"st":return _;case"sh":case"el":case"rc":case"sr":return d;case"tr":return a;case"no":return c;default:return null}}function a(_e,$,et){(et||$.transform.op._mdf)&&$.transform.container.setAttribute("opacity",$.transform.op.v),(et||$.transform.mProps._mdf)&&$.transform.container.setAttribute("transform",$.transform.mProps.v.to2dCSS())}function c(){}function d(_e,$,et){var it,rt,lt,st,ot,nt,at=$.styles.length,ct=$.lvl,dt,pt,mt,St;for(nt=0;nt<at;nt+=1){if(st=$.sh._mdf||et,$.styles[nt].lvl<ct){for(pt=s.reset(),mt=ct-$.styles[nt].lvl,St=$.transformers.length-1;!st&&mt>0;)st=$.transformers[St].mProps._mdf||st,mt-=1,St-=1;if(st)for(mt=ct-$.styles[nt].lvl,St=$.transformers.length-1;mt>0;)pt.multiply($.transformers[St].mProps.v),mt-=1,St-=1}else pt=e;if(dt=$.sh.paths,rt=dt._length,st){for(lt="",it=0;it<rt;it+=1)ot=dt.shapes[it],ot&&ot._length&&(lt+=buildShapeString(ot,ot._length,ot.c,pt));$.caches[nt]=lt}else lt=$.caches[nt];$.styles[nt].d+=_e.hd===!0?"":lt,$.styles[nt]._mdf=st||$.styles[nt]._mdf}}function h(_e,$,et){var it=$.style;($.c._mdf||et)&&it.pElem.setAttribute("fill","rgb("+bmFloor($.c.v[0])+","+bmFloor($.c.v[1])+","+bmFloor($.c.v[2])+")"),($.o._mdf||et)&&it.pElem.setAttribute("fill-opacity",$.o.v)}function g(_e,$,et){b(_e,$,et),_(_e,$,et)}function b(_e,$,et){var it=$.gf,rt=$.g._hasOpacity,lt=$.s.v,st=$.e.v;if($.o._mdf||et){var ot=_e.ty==="gf"?"fill-opacity":"stroke-opacity";$.style.pElem.setAttribute(ot,$.o.v)}if($.s._mdf||et){var nt=_e.t===1?"x1":"cx",at=nt==="x1"?"y1":"cy";it.setAttribute(nt,lt[0]),it.setAttribute(at,lt[1]),rt&&!$.g._collapsable&&($.of.setAttribute(nt,lt[0]),$.of.setAttribute(at,lt[1]))}var ct,dt,pt,mt;if($.g._cmdf||et){ct=$.cst;var St=$.g.c;for(pt=ct.length,dt=0;dt<pt;dt+=1)mt=ct[dt],mt.setAttribute("offset",St[dt*4]+"%"),mt.setAttribute("stop-color","rgb("+St[dt*4+1]+","+St[dt*4+2]+","+St[dt*4+3]+")")}if(rt&&($.g._omdf||et)){var Pt=$.g.o;for($.g._collapsable?ct=$.cst:ct=$.ost,pt=ct.length,dt=0;dt<pt;dt+=1)mt=ct[dt],$.g._collapsable||mt.setAttribute("offset",Pt[dt*2]+"%"),mt.setAttribute("stop-opacity",Pt[dt*2+1])}if(_e.t===1)($.e._mdf||et)&&(it.setAttribute("x2",st[0]),it.setAttribute("y2",st[1]),rt&&!$.g._collapsable&&($.of.setAttribute("x2",st[0]),$.of.setAttribute("y2",st[1])));else{var Mt;if(($.s._mdf||$.e._mdf||et)&&(Mt=Math.sqrt(Math.pow(lt[0]-st[0],2)+Math.pow(lt[1]-st[1],2)),it.setAttribute("r",Mt),rt&&!$.g._collapsable&&$.of.setAttribute("r",Mt)),$.s._mdf||$.e._mdf||$.h._mdf||$.a._mdf||et){Mt||(Mt=Math.sqrt(Math.pow(lt[0]-st[0],2)+Math.pow(lt[1]-st[1],2)));var Ct=Math.atan2(st[1]-lt[1],st[0]-lt[0]),Nt=$.h.v;Nt>=1?Nt=.99:Nt<=-1&&(Nt=-.99);var kt=Mt*Nt,At=Math.cos(Ct+$.a.v)*kt+lt[0],ft=Math.sin(Ct+$.a.v)*kt+lt[1];it.setAttribute("fx",At),it.setAttribute("fy",ft),rt&&!$.g._collapsable&&($.of.setAttribute("fx",At),$.of.setAttribute("fy",ft))}}}function _(_e,$,et){var it=$.style,rt=$.d;rt&&(rt._mdf||et)&&rt.dashStr&&(it.pElem.setAttribute("stroke-dasharray",rt.dashStr),it.pElem.setAttribute("stroke-dashoffset",rt.dashoffset[0])),$.c&&($.c._mdf||et)&&it.pElem.setAttribute("stroke","rgb("+bmFloor($.c.v[0])+","+bmFloor($.c.v[1])+","+bmFloor($.c.v[2])+")"),($.o._mdf||et)&&it.pElem.setAttribute("stroke-opacity",$.o.v),($.w._mdf||et)&&(it.pElem.setAttribute("stroke-width",$.w.v),it.msElem&&it.msElem.setAttribute("stroke-width",$.w.v))}return i}();function SVGShapeElement(e,s,i){this.shapes=[],this.shapesData=e.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.animatedContents=[],this.initElement(e,s,i),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,s=this.shapes.length,i,o,a=this.stylesList.length,c,d=[],h=!1;for(o=0;o<a;o+=1){for(c=this.stylesList[o],h=!1,d.length=0,e=0;e<s;e+=1)i=this.shapes[e],i.styles.indexOf(c)!==-1&&(d.push(i),h=i._isAnimated||h);d.length>1&&h&&this.setShapesAsAnimated(d)}},SVGShapeElement.prototype.setShapesAsAnimated=function(e){var s,i=e.length;for(s=0;s<i;s+=1)e[s].setAsAnimated()},SVGShapeElement.prototype.createStyleElement=function(e,s){var i,o=new SVGStyleData(e,s),a=o.pElem;if(e.ty==="st")i=new SVGStrokeStyleData(this,e,o);else if(e.ty==="fl")i=new SVGFillStyleData(this,e,o);else if(e.ty==="gf"||e.ty==="gs"){var c=e.ty==="gf"?SVGGradientFillStyleData:SVGGradientStrokeStyleData;i=new c(this,e,o),this.globalData.defs.appendChild(i.gf),i.maskId&&(this.globalData.defs.appendChild(i.ms),this.globalData.defs.appendChild(i.of),a.setAttribute("mask","url("+getLocationHref()+"#"+i.maskId+")"))}else e.ty==="no"&&(i=new SVGNoStyleData(this,e,o));return(e.ty==="st"||e.ty==="gs")&&(a.setAttribute("stroke-linecap",lineCapEnum[e.lc||2]),a.setAttribute("stroke-linejoin",lineJoinEnum[e.lj||2]),a.setAttribute("fill-opacity","0"),e.lj===1&&a.setAttribute("stroke-miterlimit",e.ml)),e.r===2&&a.setAttribute("fill-rule","evenodd"),e.ln&&a.setAttribute("id",e.ln),e.cl&&a.setAttribute("class",e.cl),e.bm&&(a.style["mix-blend-mode"]=getBlendMode(e.bm)),this.stylesList.push(o),this.addToAnimatedContents(e,i),i},SVGShapeElement.prototype.createGroupElement=function(e){var s=new ShapeGroupData;return e.ln&&s.gr.setAttribute("id",e.ln),e.cl&&s.gr.setAttribute("class",e.cl),e.bm&&(s.gr.style["mix-blend-mode"]=getBlendMode(e.bm)),s},SVGShapeElement.prototype.createTransformElement=function(e,s){var i=TransformPropertyFactory.getTransformProperty(this,e,this),o=new SVGTransformData(i,i.o,s);return this.addToAnimatedContents(e,o),o},SVGShapeElement.prototype.createShapeElement=function(e,s,i){var o=4;e.ty==="rc"?o=5:e.ty==="el"?o=6:e.ty==="sr"&&(o=7);var a=ShapePropertyFactory.getShapeProp(this,e,o,this),c=new SVGShapeData(s,i,a);return this.shapes.push(c),this.addShapeToModifiers(c),this.addToAnimatedContents(e,c),c},SVGShapeElement.prototype.addToAnimatedContents=function(e,s){for(var i=0,o=this.animatedContents.length;i<o;){if(this.animatedContents[i].element===s)return;i+=1}this.animatedContents.push({fn:SVGElementsRenderer.createRenderFunction(e),element:s,data:e})},SVGShapeElement.prototype.setElementStyles=function(e){var s=e.styles,i,o=this.stylesList.length;for(i=0;i<o;i+=1)s.indexOf(this.stylesList[i])===-1&&!this.stylesList[i].closed&&s.push(this.stylesList[i])},SVGShapeElement.prototype.reloadShapes=function(){this._isFirstFrame=!0;var e,s=this.itemsData.length;for(e=0;e<s;e+=1)this.prevViewData[e]=this.itemsData[e];for(this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes(),s=this.dynamicProperties.length,e=0;e<s;e+=1)this.dynamicProperties[e].getValue();this.renderModifiers()},SVGShapeElement.prototype.searchShapes=function(e,s,i,o,a,c,d){var h=[].concat(c),g,b=e.length-1,_,_e,$=[],et=[],it,rt,lt;for(g=b;g>=0;g-=1){if(lt=this.searchProcessedElement(e[g]),lt?s[g]=i[lt-1]:e[g]._render=d,e[g].ty==="fl"||e[g].ty==="st"||e[g].ty==="gf"||e[g].ty==="gs"||e[g].ty==="no")lt?s[g].style.closed=e[g].hd:s[g]=this.createStyleElement(e[g],a),e[g]._render&&s[g].style.pElem.parentNode!==o&&o.appendChild(s[g].style.pElem),$.push(s[g].style);else if(e[g].ty==="gr"){if(!lt)s[g]=this.createGroupElement(e[g]);else for(_e=s[g].it.length,_=0;_<_e;_+=1)s[g].prevViewData[_]=s[g].it[_];this.searchShapes(e[g].it,s[g].it,s[g].prevViewData,s[g].gr,a+1,h,d),e[g]._render&&s[g].gr.parentNode!==o&&o.appendChild(s[g].gr)}else e[g].ty==="tr"?(lt||(s[g]=this.createTransformElement(e[g],o)),it=s[g].transform,h.push(it)):e[g].ty==="sh"||e[g].ty==="rc"||e[g].ty==="el"||e[g].ty==="sr"?(lt||(s[g]=this.createShapeElement(e[g],h,a)),this.setElementStyles(s[g])):e[g].ty==="tm"||e[g].ty==="rd"||e[g].ty==="ms"||e[g].ty==="pb"||e[g].ty==="zz"||e[g].ty==="op"?(lt?(rt=s[g],rt.closed=!1):(rt=ShapeModifiers.getModifier(e[g].ty),rt.init(this,e[g]),s[g]=rt,this.shapeModifiers.push(rt)),et.push(rt)):e[g].ty==="rp"&&(lt?(rt=s[g],rt.closed=!0):(rt=ShapeModifiers.getModifier(e[g].ty),s[g]=rt,rt.init(this,e,g,s),this.shapeModifiers.push(rt),d=!1),et.push(rt));this.addProcessedElement(e[g],g+1)}for(b=$.length,g=0;g<b;g+=1)$[g].closed=!0;for(b=et.length,g=0;g<b;g+=1)et[g].closed=!0},SVGShapeElement.prototype.renderInnerContent=function(){this.renderModifiers();var e,s=this.stylesList.length;for(e=0;e<s;e+=1)this.stylesList[e].reset();for(this.renderShape(),e=0;e<s;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,s=this.animatedContents.length,i;for(e=0;e<s;e+=1)i=this.animatedContents[e],(this._isFirstFrame||i.element._isAnimated)&&i.data!==!0&&i.fn(i.data,i.element,this._isFirstFrame)},SVGShapeElement.prototype.destroy=function(){this.destroyBaseElement(),this.shapesData=null,this.itemsData=null};function LetterProps(e,s,i,o,a,c){this.o=e,this.sw=s,this.sc=i,this.fc=o,this.m=a,this.p=c,this._mdf={o:!0,sw:!!s,sc:!!i,fc:!!o,m:!0,p:!0}}LetterProps.prototype.update=function(e,s,i,o,a,c){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 d=!1;return this.o!==e&&(this.o=e,this._mdf.o=!0,d=!0),this.sw!==s&&(this.sw=s,this._mdf.sw=!0,d=!0),this.sc!==i&&(this.sc=i,this._mdf.sc=!0,d=!0),this.fc!==o&&(this.fc=o,this._mdf.fc=!0,d=!0),this.m!==a&&(this.m=a,this._mdf.m=!0,d=!0),c.length&&(this.p[0]!==c[0]||this.p[1]!==c[1]||this.p[4]!==c[4]||this.p[5]!==c[5]||this.p[12]!==c[12]||this.p[13]!==c[13])&&(this.p=c,this._mdf.p=!0,d=!0),d};function TextProperty(e,s){this._frameId=initialDefaultFrame,this.pv="",this.v="",this.kf=!1,this._isFirstFrame=!0,this._mdf=!1,s.d&&s.d.sid&&(s.d=e.globalData.slotManager.getProp(s.d)),this.data=s,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,s){for(var i in s)Object.prototype.hasOwnProperty.call(s,i)&&(e[i]=s[i]);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 s=this.currentData,i=this.keysIndex;if(this.lock){this.setCurrentData(this.currentData);return}this.lock=!0,this._mdf=!1;var o,a=this.effectsSequence.length,c=e||this.data.d.k[this.keysIndex].s;for(o=0;o<a;o+=1)i!==this.keysIndex?c=this.effectsSequence[o](c,c.t):c=this.effectsSequence[o](this.currentData,c.t);s!==c&&this.setCurrentData(c),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,s=this.elem.comp.renderedFrame,i=0,o=e.length;i<=o-1&&!(i===o-1||e[i+1].t>s);)i+=1;return this.keysIndex!==i&&(this.keysIndex=i),this.data.d.k[this.keysIndex].s},TextProperty.prototype.buildFinalText=function(e){for(var s=[],i=0,o=e.length,a,c,d=!1,h=!1,g="";i<o;)d=h,h=!1,a=e.charCodeAt(i),g=e.charAt(i),FontManager.isCombinedCharacter(a)?d=!0:a>=55296&&a<=56319?FontManager.isRegionalFlag(e,i)?g=e.substr(i,14):(c=e.charCodeAt(i+1),c>=56320&&c<=57343&&(FontManager.isModifier(a,c)?(g=e.substr(i,2),d=!0):FontManager.isFlagEmoji(e.substr(i,4))?g=e.substr(i,4):g=e.substr(i,2))):a>56319?(c=e.charCodeAt(i+1),FontManager.isVariationSelector(a)&&(d=!0)):FontManager.isZeroWidthJoiner(a)&&(d=!0,h=!0),d?(s[s.length-1]+=g,d=!1):s.push(g),i+=g.length;return s},TextProperty.prototype.completeTextData=function(e){e.__complete=!0;var s=this.elem.globalData.fontManager,i=this.data,o=[],a,c,d,h=0,g,b=i.m.g,_=0,_e=0,$=0,et=[],it=0,rt=0,lt,st,ot=s.getFontByName(e.f),nt,at=0,ct=getFontProperties(ot);e.fWeight=ct.weight,e.fStyle=ct.style,e.finalSize=e.s,e.finalText=this.buildFinalText(e.t),c=e.finalText.length,e.finalLineHeight=e.lh;var dt=e.tr/1e3*e.finalSize,pt;if(e.sz)for(var mt=!0,St=e.sz[0],Pt=e.sz[1],Mt,Ct;mt;){Ct=this.buildFinalText(e.t),Mt=0,it=0,c=Ct.length,dt=e.tr/1e3*e.finalSize;var Nt=-1;for(a=0;a<c;a+=1)pt=Ct[a].charCodeAt(0),d=!1,Ct[a]===" "?Nt=a:(pt===13||pt===3)&&(it=0,d=!0,Mt+=e.finalLineHeight||e.finalSize*1.2),s.chars?(nt=s.getCharData(Ct[a],ot.fStyle,ot.fFamily),at=d?0:nt.w*e.finalSize/100):at=s.measureText(Ct[a],e.f,e.finalSize),it+at>St&&Ct[a]!==" "?(Nt===-1?c+=1:a=Nt,Mt+=e.finalLineHeight||e.finalSize*1.2,Ct.splice(a,Nt===a?1:0,"\r"),Nt=-1,it=0):(it+=at,it+=dt);Mt+=ot.ascent*e.finalSize/100,this.canResize&&e.finalSize>this.minimumFontSize&&Pt<Mt?(e.finalSize-=1,e.finalLineHeight=e.finalSize*e.lh/e.s):(e.finalText=Ct,c=e.finalText.length,mt=!1)}it=-dt,at=0;var kt=0,At;for(a=0;a<c;a+=1)if(d=!1,At=e.finalText[a],pt=At.charCodeAt(0),pt===13||pt===3?(kt=0,et.push(it),rt=it>rt?it:rt,it=-2*dt,g="",d=!0,$+=1):g=At,s.chars?(nt=s.getCharData(At,ot.fStyle,s.getFontByName(e.f).fFamily),at=d?0:nt.w*e.finalSize/100):at=s.measureText(g,e.f,e.finalSize),At===" "?kt+=at+dt:(it+=at+dt+kt,kt=0),o.push({l:at,an:at,add:_,n:d,anIndexes:[],val:g,line:$,animatorJustifyOffset:0}),b==2){if(_+=at,g===""||g===" "||a===c-1){for((g===""||g===" ")&&(_-=at);_e<=a;)o[_e].an=_,o[_e].ind=h,o[_e].extra=at,_e+=1;h+=1,_=0}}else if(b==3){if(_+=at,g===""||a===c-1){for(g===""&&(_-=at);_e<=a;)o[_e].an=_,o[_e].ind=h,o[_e].extra=at,_e+=1;_=0,h+=1}}else o[h].ind=h,o[h].extra=0,h+=1;if(e.l=o,rt=it>rt?it:rt,et.push(it),e.sz)e.boxWidth=e.sz[0],e.justifyOffset=0;else switch(e.boxWidth=rt,e.j){case 1:e.justifyOffset=-e.boxWidth;break;case 2:e.justifyOffset=-e.boxWidth/2;break;default:e.justifyOffset=0}e.lineWidths=et;var ft=i.a,Et,ut;st=ft.length;var ht,gt,xt=[];for(lt=0;lt<st;lt+=1){for(Et=ft[lt],Et.a.sc&&(e.strokeColorAnim=!0),Et.a.sw&&(e.strokeWidthAnim=!0),(Et.a.fc||Et.a.fh||Et.a.fs||Et.a.fb)&&(e.fillColorAnim=!0),gt=0,ht=Et.s.b,a=0;a<c;a+=1)ut=o[a],ut.anIndexes[lt]=gt,(ht==1&&ut.val!==""||ht==2&&ut.val!==""&&ut.val!==" "||ht==3&&(ut.n||ut.val==" "||a==c-1)||ht==4&&(ut.n||a==c-1))&&(Et.s.rn===1&&xt.push(gt),gt+=1);i.a[lt].s.totalChars=gt;var Rt=-1,Tt;if(Et.s.rn===1)for(a=0;a<c;a+=1)ut=o[a],Rt!=ut.anIndexes[lt]&&(Rt=ut.anIndexes[lt],Tt=xt.splice(Math.floor(Math.random()*xt.length),1)[0]),ut.anIndexes[lt]=Tt}e.yOffset=e.finalLineHeight||e.finalSize*1.2,e.ls=e.ls||0,e.ascent=ot.ascent*e.finalSize/100},TextProperty.prototype.updateDocumentData=function(e,s){s=s===void 0?this.keysIndex:s;var i=this.copyData({},this.data.d.k[s].s);i=this.copyData(i,e),this.data.d.k[s].s=i,this.recalculate(s),this.setCurrentData(i),this.elem.addDynamicProperty(this)},TextProperty.prototype.recalculate=function(e){var s=this.data.d.k[e].s;s.__complete=!1,this.keysIndex=0,this._isFirstFrame=!0,this.getValue(s)},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,s=Math.min,i=Math.floor;function o(c,d){this._currentTextLength=-1,this.k=!1,this.data=d,this.elem=c,this.comp=c.comp,this.finalS=0,this.finalE=0,this.initDynamicPropertyContainer(c),this.s=PropertyFactory.getProp(c,d.s||{k:0},0,0,this),"e"in d?this.e=PropertyFactory.getProp(c,d.e,0,0,this):this.e={v:100},this.o=PropertyFactory.getProp(c,d.o||{k:0},0,0,this),this.xe=PropertyFactory.getProp(c,d.xe||{k:0},0,0,this),this.ne=PropertyFactory.getProp(c,d.ne||{k:0},0,0,this),this.sm=PropertyFactory.getProp(c,d.sm||{k:100},0,0,this),this.a=PropertyFactory.getProp(c,d.a,0,.01,this),this.dynamicProperties.length||this.getValue()}o.prototype={getMult:function(d){this._currentTextLength!==this.elem.textProperty.currentData.l.length&&this.getValue();var h=0,g=0,b=1,_=1;this.ne.v>0?h=this.ne.v/100:g=-this.ne.v/100,this.xe.v>0?b=1-this.xe.v/100:_=1+this.xe.v/100;var _e=BezierFactory.getBezierEasing(h,g,b,_).get,$=0,et=this.finalS,it=this.finalE,rt=this.data.sh;if(rt===2)it===et?$=d>=it?1:0:$=e(0,s(.5/(it-et)+(d-et)/(it-et),1)),$=_e($);else if(rt===3)it===et?$=d>=it?0:1:$=1-e(0,s(.5/(it-et)+(d-et)/(it-et),1)),$=_e($);else if(rt===4)it===et?$=0:($=e(0,s(.5/(it-et)+(d-et)/(it-et),1)),$<.5?$*=2:$=1-2*($-.5)),$=_e($);else if(rt===5){if(it===et)$=0;else{var lt=it-et;d=s(e(0,d+.5-et),it-et);var st=-lt/2+d,ot=lt/2;$=Math.sqrt(1-st*st/(ot*ot))}$=_e($)}else rt===6?(it===et?$=0:(d=s(e(0,d+.5-et),it-et),$=(1+Math.cos(Math.PI+Math.PI*2*d/(it-et)))/2),$=_e($)):(d>=i(et)&&(d-et<0?$=e(0,s(s(it,1)-(et-d),1)):$=e(0,s(it-d,1))),$=_e($));if(this.sm.v!==100){var nt=this.sm.v*.01;nt===0&&(nt=1e-8);var at=.5-nt*.5;$<at?$=0:($=($-at)/nt,$>1&&($=1))}return $*this.a.v},getValue:function(d){this.iterateDynamicProperties(),this._mdf=d||this._mdf,this._currentTextLength=this.elem.textProperty.currentData.l.length||0,d&&this.data.r===2&&(this.e.v=this._currentTextLength);var h=this.data.r===2?1:100/this.data.totalChars,g=this.o.v/h,b=this.s.v/h+g,_=this.e.v/h+g;if(b>_){var _e=b;b=_,_=_e}this.finalS=b,this.finalE=_}},extendPrototype([DynamicPropertyContainer],o);function a(c,d,h){return new o(c,d)}return{getTextSelectorProp:a}}();function TextAnimatorDataProperty(e,s,i){var o={propType:!1},a=PropertyFactory.getProp,c=s.a;this.a={r:c.r?a(e,c.r,0,degToRads,i):o,rx:c.rx?a(e,c.rx,0,degToRads,i):o,ry:c.ry?a(e,c.ry,0,degToRads,i):o,sk:c.sk?a(e,c.sk,0,degToRads,i):o,sa:c.sa?a(e,c.sa,0,degToRads,i):o,s:c.s?a(e,c.s,1,.01,i):o,a:c.a?a(e,c.a,1,0,i):o,o:c.o?a(e,c.o,0,.01,i):o,p:c.p?a(e,c.p,1,0,i):o,sw:c.sw?a(e,c.sw,0,0,i):o,sc:c.sc?a(e,c.sc,1,0,i):o,fc:c.fc?a(e,c.fc,1,0,i):o,fh:c.fh?a(e,c.fh,0,0,i):o,fs:c.fs?a(e,c.fs,0,.01,i):o,fb:c.fb?a(e,c.fb,0,.01,i):o,t:c.t?a(e,c.t,0,0,i):o},this.s=TextSelectorProp.getTextSelectorProp(e,s.s,i),this.s.t=s.s.t}function TextAnimatorProperty(e,s,i){this._isFirstFrame=!0,this._hasMaskedPath=!1,this._frameId=-1,this._textData=e,this._renderType=s,this._elem=i,this._animatorsData=createSizedArray(this._textData.a.length),this._pathData={},this._moreOptions={alignment:{}},this.renderedLetters=[],this.lettersChangedFlag=!1,this.initDynamicPropertyContainer(i)}TextAnimatorProperty.prototype.searchProperties=function(){var e,s=this._textData.a.length,i,o=PropertyFactory.getProp;for(e=0;e<s;e+=1)i=this._textData.a[e],this._animatorsData[e]=new TextAnimatorDataProperty(this._elem,i,this);this._textData.p&&"m"in this._textData.p?(this._pathData={a:o(this._elem,this._textData.p.a,0,0,this),f:o(this._elem,this._textData.p.f,0,0,this),l:o(this._elem,this._textData.p.l,0,0,this),r:o(this._elem,this._textData.p.r,0,0,this),p:o(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=o(this._elem,this._textData.m.a,1,0,this)},TextAnimatorProperty.prototype.getMeasures=function(e,s){if(this.lettersChangedFlag=s,!(!this._mdf&&!this._isFirstFrame&&!s&&(!this._hasMaskedPath||!this._pathData.m._mdf))){this._isFirstFrame=!1;var i=this._moreOptions.alignment.v,o=this._animatorsData,a=this._textData,c=this.mHelper,d=this._renderType,h=this.renderedLetters.length,g,b,_,_e,$=e.l,et,it,rt,lt,st,ot,nt,at,ct,dt,pt,mt,St,Pt,Mt;if(this._hasMaskedPath){if(Mt=this._pathData.m,!this._pathData.n||this._pathData._mdf){var Ct=Mt.v;this._pathData.r.v&&(Ct=Ct.reverse()),et={tLength:0,segments:[]},_e=Ct._length-1;var Nt;for(mt=0,_=0;_<_e;_+=1)Nt=bez.buildBezierData(Ct.v[_],Ct.v[_+1],[Ct.o[_][0]-Ct.v[_][0],Ct.o[_][1]-Ct.v[_][1]],[Ct.i[_+1][0]-Ct.v[_+1][0],Ct.i[_+1][1]-Ct.v[_+1][1]]),et.tLength+=Nt.segmentLength,et.segments.push(Nt),mt+=Nt.segmentLength;_=_e,Mt.v.c&&(Nt=bez.buildBezierData(Ct.v[_],Ct.v[0],[Ct.o[_][0]-Ct.v[_][0],Ct.o[_][1]-Ct.v[_][1]],[Ct.i[0][0]-Ct.v[0][0],Ct.i[0][1]-Ct.v[0][1]]),et.tLength+=Nt.segmentLength,et.segments.push(Nt),mt+=Nt.segmentLength),this._pathData.pi=et}if(et=this._pathData.pi,it=this._pathData.f.v,nt=0,ot=1,lt=0,st=!0,dt=et.segments,it<0&&Mt.v.c)for(et.tLength<Math.abs(it)&&(it=-Math.abs(it)%et.tLength),nt=dt.length-1,ct=dt[nt].points,ot=ct.length-1;it<0;)it+=ct[ot].partialLength,ot-=1,ot<0&&(nt-=1,ct=dt[nt].points,ot=ct.length-1);ct=dt[nt].points,at=ct[ot-1],rt=ct[ot],pt=rt.partialLength}_e=$.length,g=0,b=0;var kt=e.finalSize*1.2*.714,At=!0,ft,Et,ut,ht,gt;ht=o.length;var xt,Rt=-1,Tt,It,Lt,$t=it,Bt=nt,Ut=ot,Ht=-1,qt,Kt,Jt,zt,Vt,er,fr,mr,ir="",lr=this.defaultPropsArray,yr;if(e.j===2||e.j===1){var nr=0,br=0,cr=e.j===2?-.5:-1,dr=0,Er=!0;for(_=0;_<_e;_+=1)if($[_].n){for(nr&&(nr+=br);dr<_;)$[dr].animatorJustifyOffset=nr,dr+=1;nr=0,Er=!0}else{for(ut=0;ut<ht;ut+=1)ft=o[ut].a,ft.t.propType&&(Er&&e.j===2&&(br+=ft.t.v*cr),Et=o[ut].s,xt=Et.getMult($[_].anIndexes[ut],a.a[ut].s.totalChars),xt.length?nr+=ft.t.v*xt[0]*cr:nr+=ft.t.v*xt*cr);Er=!1}for(nr&&(nr+=br);dr<_;)$[dr].animatorJustifyOffset=nr,dr+=1}for(_=0;_<_e;_+=1){if(c.reset(),qt=1,$[_].n)g=0,b+=e.yOffset,b+=At?1:0,it=$t,At=!1,this._hasMaskedPath&&(nt=Bt,ot=Ut,ct=dt[nt].points,at=ct[ot-1],rt=ct[ot],pt=rt.partialLength,lt=0),ir="",mr="",er="",yr="",lr=this.defaultPropsArray;else{if(this._hasMaskedPath){if(Ht!==$[_].line){switch(e.j){case 1:it+=mt-e.lineWidths[$[_].line];break;case 2:it+=(mt-e.lineWidths[$[_].line])/2;break}Ht=$[_].line}Rt!==$[_].ind&&($[Rt]&&(it+=$[Rt].extra),it+=$[_].an/2,Rt=$[_].ind),it+=i[0]*$[_].an*.005;var rr=0;for(ut=0;ut<ht;ut+=1)ft=o[ut].a,ft.p.propType&&(Et=o[ut].s,xt=Et.getMult($[_].anIndexes[ut],a.a[ut].s.totalChars),xt.length?rr+=ft.p.v[0]*xt[0]:rr+=ft.p.v[0]*xt),ft.a.propType&&(Et=o[ut].s,xt=Et.getMult($[_].anIndexes[ut],a.a[ut].s.totalChars),xt.length?rr+=ft.a.v[0]*xt[0]:rr+=ft.a.v[0]*xt);for(st=!0,this._pathData.a.v&&(it=$[0].an*.5+(mt-this._pathData.f.v-$[0].an*.5-$[$.length-1].an*.5)*Rt/(_e-1),it+=this._pathData.f.v);st;)lt+pt>=it+rr||!ct?(St=(it+rr-lt)/rt.partialLength,It=at.point[0]+(rt.point[0]-at.point[0])*St,Lt=at.point[1]+(rt.point[1]-at.point[1])*St,c.translate(-i[0]*$[_].an*.005,-(i[1]*kt)*.01),st=!1):ct&&(lt+=rt.partialLength,ot+=1,ot>=ct.length&&(ot=0,nt+=1,dt[nt]?ct=dt[nt].points:Mt.v.c?(ot=0,nt=0,ct=dt[nt].points):(lt-=rt.partialLength,ct=null)),ct&&(at=rt,rt=ct[ot],pt=rt.partialLength));Tt=$[_].an/2-$[_].add,c.translate(-Tt,0,0)}else Tt=$[_].an/2-$[_].add,c.translate(-Tt,0,0),c.translate(-i[0]*$[_].an*.005,-i[1]*kt*.01,0);for(ut=0;ut<ht;ut+=1)ft=o[ut].a,ft.t.propType&&(Et=o[ut].s,xt=Et.getMult($[_].anIndexes[ut],a.a[ut].s.totalChars),(g!==0||e.j!==0)&&(this._hasMaskedPath?xt.length?it+=ft.t.v*xt[0]:it+=ft.t.v*xt:xt.length?g+=ft.t.v*xt[0]:g+=ft.t.v*xt));for(e.strokeWidthAnim&&(Jt=e.sw||0),e.strokeColorAnim&&(e.sc?Kt=[e.sc[0],e.sc[1],e.sc[2]]:Kt=[0,0,0]),e.fillColorAnim&&e.fc&&(zt=[e.fc[0],e.fc[1],e.fc[2]]),ut=0;ut<ht;ut+=1)ft=o[ut].a,ft.a.propType&&(Et=o[ut].s,xt=Et.getMult($[_].anIndexes[ut],a.a[ut].s.totalChars),xt.length?c.translate(-ft.a.v[0]*xt[0],-ft.a.v[1]*xt[1],ft.a.v[2]*xt[2]):c.translate(-ft.a.v[0]*xt,-ft.a.v[1]*xt,ft.a.v[2]*xt));for(ut=0;ut<ht;ut+=1)ft=o[ut].a,ft.s.propType&&(Et=o[ut].s,xt=Et.getMult($[_].anIndexes[ut],a.a[ut].s.totalChars),xt.length?c.scale(1+(ft.s.v[0]-1)*xt[0],1+(ft.s.v[1]-1)*xt[1],1):c.scale(1+(ft.s.v[0]-1)*xt,1+(ft.s.v[1]-1)*xt,1));for(ut=0;ut<ht;ut+=1){if(ft=o[ut].a,Et=o[ut].s,xt=Et.getMult($[_].anIndexes[ut],a.a[ut].s.totalChars),ft.sk.propType&&(xt.length?c.skewFromAxis(-ft.sk.v*xt[0],ft.sa.v*xt[1]):c.skewFromAxis(-ft.sk.v*xt,ft.sa.v*xt)),ft.r.propType&&(xt.length?c.rotateZ(-ft.r.v*xt[2]):c.rotateZ(-ft.r.v*xt)),ft.ry.propType&&(xt.length?c.rotateY(ft.ry.v*xt[1]):c.rotateY(ft.ry.v*xt)),ft.rx.propType&&(xt.length?c.rotateX(ft.rx.v*xt[0]):c.rotateX(ft.rx.v*xt)),ft.o.propType&&(xt.length?qt+=(ft.o.v*xt[0]-qt)*xt[0]:qt+=(ft.o.v*xt-qt)*xt),e.strokeWidthAnim&&ft.sw.propType&&(xt.length?Jt+=ft.sw.v*xt[0]:Jt+=ft.sw.v*xt),e.strokeColorAnim&&ft.sc.propType)for(Vt=0;Vt<3;Vt+=1)xt.length?Kt[Vt]+=(ft.sc.v[Vt]-Kt[Vt])*xt[0]:Kt[Vt]+=(ft.sc.v[Vt]-Kt[Vt])*xt;if(e.fillColorAnim&&e.fc){if(ft.fc.propType)for(Vt=0;Vt<3;Vt+=1)xt.length?zt[Vt]+=(ft.fc.v[Vt]-zt[Vt])*xt[0]:zt[Vt]+=(ft.fc.v[Vt]-zt[Vt])*xt;ft.fh.propType&&(xt.length?zt=addHueToRGB(zt,ft.fh.v*xt[0]):zt=addHueToRGB(zt,ft.fh.v*xt)),ft.fs.propType&&(xt.length?zt=addSaturationToRGB(zt,ft.fs.v*xt[0]):zt=addSaturationToRGB(zt,ft.fs.v*xt)),ft.fb.propType&&(xt.length?zt=addBrightnessToRGB(zt,ft.fb.v*xt[0]):zt=addBrightnessToRGB(zt,ft.fb.v*xt))}}for(ut=0;ut<ht;ut+=1)ft=o[ut].a,ft.p.propType&&(Et=o[ut].s,xt=Et.getMult($[_].anIndexes[ut],a.a[ut].s.totalChars),this._hasMaskedPath?xt.length?c.translate(0,ft.p.v[1]*xt[0],-ft.p.v[2]*xt[1]):c.translate(0,ft.p.v[1]*xt,-ft.p.v[2]*xt):xt.length?c.translate(ft.p.v[0]*xt[0],ft.p.v[1]*xt[1],-ft.p.v[2]*xt[2]):c.translate(ft.p.v[0]*xt,ft.p.v[1]*xt,-ft.p.v[2]*xt));if(e.strokeWidthAnim&&(er=Jt<0?0:Jt),e.strokeColorAnim&&(fr="rgb("+Math.round(Kt[0]*255)+","+Math.round(Kt[1]*255)+","+Math.round(Kt[2]*255)+")"),e.fillColorAnim&&e.fc&&(mr="rgb("+Math.round(zt[0]*255)+","+Math.round(zt[1]*255)+","+Math.round(zt[2]*255)+")"),this._hasMaskedPath){if(c.translate(0,-e.ls),c.translate(0,i[1]*kt*.01+b,0),this._pathData.p.v){Pt=(rt.point[1]-at.point[1])/(rt.point[0]-at.point[0]);var ur=Math.atan(Pt)*180/Math.PI;rt.point[0]<at.point[0]&&(ur+=180),c.rotate(-ur*Math.PI/180)}c.translate(It,Lt,0),it-=i[0]*$[_].an*.005,$[_+1]&&Rt!==$[_+1].ind&&(it+=$[_].an/2,it+=e.tr*.001*e.finalSize)}else{switch(c.translate(g,b,0),e.ps&&c.translate(e.ps[0],e.ps[1]+e.ascent,0),e.j){case 1:c.translate($[_].animatorJustifyOffset+e.justifyOffset+(e.boxWidth-e.lineWidths[$[_].line]),0,0);break;case 2:c.translate($[_].animatorJustifyOffset+e.justifyOffset+(e.boxWidth-e.lineWidths[$[_].line])/2,0,0);break}c.translate(0,-e.ls),c.translate(Tt,0,0),c.translate(i[0]*$[_].an*.005,i[1]*kt*.01,0),g+=$[_].l+e.tr*.001*e.finalSize}d==="html"?ir=c.toCSS():d==="svg"?ir=c.to2dCSS():lr=[c.props[0],c.props[1],c.props[2],c.props[3],c.props[4],c.props[5],c.props[6],c.props[7],c.props[8],c.props[9],c.props[10],c.props[11],c.props[12],c.props[13],c.props[14],c.props[15]],yr=qt}h<=_?(gt=new LetterProps(yr,er,fr,mr,ir,lr),this.renderedLetters.push(gt),h+=1,this.lettersChangedFlag=!0):(gt=this.renderedLetters[_],this.lettersChangedFlag=gt.update(yr,er,fr,mr,ir,lr)||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,s,i){this.lettersChangedFlag=!0,this.initFrame(),this.initBaseData(e,s,i),this.textProperty=new TextProperty(this,e.t,this.dynamicProperties),this.textAnimator=new TextAnimatorProperty(e.t,this.renderType,this),this.initTransform(e,s,i),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,s){var i,o=s.length,a,c="";for(i=0;i<o;i+=1)s[i].ty==="sh"&&(a=s[i].ks.k,c+=buildShapeString(a,a.i.length,!0,e));return c},ITextElement.prototype.updateDocumentData=function(e,s){this.textProperty.updateDocumentData(e,s)},ITextElement.prototype.canResizeFont=function(e){this.textProperty.canResizeFont(e)},ITextElement.prototype.setMinimumFontSize=function(e){this.textProperty.setMinimumFontSize(e)},ITextElement.prototype.applyTextPropertiesToMatrix=function(e,s,i,o,a){switch(e.ps&&s.translate(e.ps[0],e.ps[1]+e.ascent,0),s.translate(0,-e.ls,0),e.j){case 1:s.translate(e.justifyOffset+(e.boxWidth-e.lineWidths[i]),0,0);break;case 2:s.translate(e.justifyOffset+(e.boxWidth-e.lineWidths[i])/2,0,0);break}s.translate(o,a,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,s,i){this.textSpans=[],this.renderType="svg",this.initElement(e,s,i)}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 s=0,i=e.length,o=[],a="";s<i;)e[s]==="\r"||e[s]==="�"?(o.push(a),a=""):a+=e[s],s+=1;return o.push(a),o},SVGTextLottieElement.prototype.buildShapeData=function(e,s){if(e.shapes&&e.shapes.length){var i=e.shapes[0];if(i.it){var o=i.it[i.it.length-1];o.s&&(o.s.k[0]=s,o.s.k[1]=s)}}return e},SVGTextLottieElement.prototype.buildNewText=function(){this.addDynamicProperty(this);var e,s,i=this.textProperty.currentData;this.renderedLetters=createSizedArray(i?i.l.length:0),i.fc?this.layerElement.setAttribute("fill",this.buildColor(i.fc)):this.layerElement.setAttribute("fill","rgba(0,0,0,0)"),i.sc&&(this.layerElement.setAttribute("stroke",this.buildColor(i.sc)),this.layerElement.setAttribute("stroke-width",i.sw)),this.layerElement.setAttribute("font-size",i.finalSize);var o=this.globalData.fontManager.getFontByName(i.f);if(o.fClass)this.layerElement.setAttribute("class",o.fClass);else{this.layerElement.setAttribute("font-family",o.fFamily);var a=i.fWeight,c=i.fStyle;this.layerElement.setAttribute("font-style",c),this.layerElement.setAttribute("font-weight",a)}this.layerElement.setAttribute("aria-label",i.t);var d=i.l||[],h=!!this.globalData.fontManager.chars;s=d.length;var g,b=this.mHelper,_="",_e=this.data.singleShape,$=0,et=0,it=!0,rt=i.tr*.001*i.finalSize;if(_e&&!h&&!i.sz){var lt=this.textContainer,st="start";switch(i.j){case 1:st="end";break;case 2:st="middle";break;default:st="start";break}lt.setAttribute("text-anchor",st),lt.setAttribute("letter-spacing",rt);var ot=this.buildTextContents(i.finalText);for(s=ot.length,et=i.ps?i.ps[1]+i.ascent:0,e=0;e<s;e+=1)g=this.textSpans[e].span||createNS("tspan"),g.textContent=ot[e],g.setAttribute("x",0),g.setAttribute("y",et),g.style.display="inherit",lt.appendChild(g),this.textSpans[e]||(this.textSpans[e]={span:null,glyph:null}),this.textSpans[e].span=g,et+=i.finalLineHeight;this.layerElement.appendChild(lt)}else{var nt=this.textSpans.length,at;for(e=0;e<s;e+=1){if(this.textSpans[e]||(this.textSpans[e]={span:null,childSpan:null,glyph:null}),!h||!_e||e===0){if(g=nt>e?this.textSpans[e].span:createNS(h?"g":"text"),nt<=e){if(g.setAttribute("stroke-linecap","butt"),g.setAttribute("stroke-linejoin","round"),g.setAttribute("stroke-miterlimit","4"),this.textSpans[e].span=g,h){var ct=createNS("g");g.appendChild(ct),this.textSpans[e].childSpan=ct}this.textSpans[e].span=g,this.layerElement.appendChild(g)}g.style.display="inherit"}if(b.reset(),_e&&(d[e].n&&($=-rt,et+=i.yOffset,et+=it?1:0,it=!1),this.applyTextPropertiesToMatrix(i,b,d[e].line,$,et),$+=d[e].l||0,$+=rt),h){at=this.globalData.fontManager.getCharData(i.finalText[e],o.fStyle,this.globalData.fontManager.getFontByName(i.f).fFamily);var dt;if(at.t===1)dt=new SVGCompElement(at.data,this.globalData,this);else{var pt=emptyShapeData;at.data&&at.data.shapes&&(pt=this.buildShapeData(at.data,i.finalSize)),dt=new SVGShapeElement(pt,this.globalData,this)}if(this.textSpans[e].glyph){var mt=this.textSpans[e].glyph;this.textSpans[e].childSpan.removeChild(mt.layerElement),mt.destroy()}this.textSpans[e].glyph=dt,dt._debug=!0,dt.prepareFrame(0),dt.renderFrame(),this.textSpans[e].childSpan.appendChild(dt.layerElement),at.t===1&&this.textSpans[e].childSpan.setAttribute("transform","scale("+i.finalSize/100+","+i.finalSize/100+")")}else _e&&g.setAttribute("transform","translate("+b.props[12]+","+b.props[13]+")"),g.textContent=d[e].val,g.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve")}_e&&g&&g.setAttribute("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,s=this.textSpans.length,i;for(this.renderedFrame=this.comp.renderedFrame,e=0;e<s;e+=1)i=this.textSpans[e].glyph,i&&(i.prepareFrame(this.comp.renderedFrame-this.data.st),i._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,s,i=this.textAnimator.renderedLetters,o=this.textProperty.currentData.l;s=o.length;var a,c,d;for(e=0;e<s;e+=1)o[e].n||(a=i[e],c=this.textSpans[e].span,d=this.textSpans[e].glyph,d&&d.renderFrame(),a._mdf.m&&c.setAttribute("transform",a.m),a._mdf.o&&c.setAttribute("op
546acity",a.o),a._mdf.sw&&c.setAttribute("stroke-width",a.sw),a._mdf.sc&&c.setAttribute("stroke",a.sc),a._mdf.fc&&c.setAttribute("fill",a.fc))}};function ISolidElement(e,s,i){this.initElement(e,s,i)}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,s,i){this.initFrame(),this.initBaseData(e,s,i),this.initFrame(),this.initTransform(e,s,i),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 s=this.globalData.defs;this.setupGlobalData(e,s),this.globalData.progressiveLoad=this.renderConfig.progressiveLoad,this.data=e;var i=createNS("clipPath"),o=createNS("rect");o.setAttribute("width",e.w),o.setAttribute("height",e.h),o.setAttribute("x",0),o.setAttribute("y",0);var a=createElementID();i.setAttribute("id",a),i.appendChild(o),this.layerElement.setAttribute("clip-path","url("+getLocationHref()+"#"+a+")"),s.appendChild(i),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,s=this.layers?this.layers.length:0;for(e=0;e<s;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 s=0,i=this.layers.length;for(s=0;s<i;s+=1)if(this.layers[s].ind===e)return s;return-1},SVGRendererBase.prototype.buildItem=function(e){var s=this.elements;if(!(s[e]||this.layers[e].ty===99)){s[e]=!0;var i=this.createItem(this.layers[e]);if(s[e]=i,getExpressionsPlugin()&&(this.layers[e].ty===0&&this.globalData.projectInterface.registerComposition(i),i.initExpressions()),this.appendElementInPos(i,e),this.layers[e].tt){var o="tp"in this.layers[e]?this.findIndexByInd(this.layers[e].tp):e-1;if(o===-1)return;if(!this.elements[o]||this.elements[o]===!0)this.buildItem(o),this.addPendingElement(i);else{var a=s[o],c=a.getMatte(this.layers[e].tt);i.setMatte(c)}}}},SVGRendererBase.prototype.checkPendingElements=function(){for(;this.pendingElements.length;){var e=this.pendingElements.pop();if(e.checkParenting(),e.data.tt)for(var s=0,i=this.elements.length;s<i;){if(this.elements[s]===e){var o="tp"in e.data?this.findIndexByInd(e.data.tp):s-1,a=this.elements[o],c=a.getMatte(this.layers[s].tt);e.setMatte(c);break}s+=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 s,i=this.layers.length;for(this.completeLayers||this.checkLayers(e),s=i-1;s>=0;s-=1)(this.completeLayers||this.elements[s])&&this.elements[s].prepareFrame(e-this.layers[s].st);if(this.globalData._mdf)for(s=0;s<i;s+=1)(this.completeLayers||this.elements[s])&&this.elements[s].renderFrame()}},SVGRendererBase.prototype.appendElementInPos=function(e,s){var i=e.getBaseElement();if(i){for(var o=0,a;o<s;)this.elements[o]&&this.elements[o]!==!0&&this.elements[o].getBaseElement()&&
vendor: 5,410 bytes, line 546
546(a=this.elements[o].getBaseElement()),o+=1;a?this.layerElement.insertBefore(i,a):this.layerElement.appendChild(i)}},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,s,i){this.initFrame(),this.initBaseData(e,s,i),this.initTransform(e,s,i),this.initRenderable(),this.initHierarchy(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),(this.data.xt||!s.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 s=this.tm.v;s===this.data.op&&(s=this.data.op-1),this.renderedFrame=s}var i,o=this.elements.length;for(this.completeLayers||this.checkLayers(this.renderedFrame),i=o-1;i>=0;i-=1)(this.completeLayers||this.elements[i])&&(this.elements[i].prepareFrame(this.renderedFrame-this.layers[i].st),this.elements[i]._mdf&&(this._mdf=!0))}},ICompElement.prototype.renderInnerContent=function(){var e,s=this.layers.length;for(e=0;e<s;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,s=this.layers.length;for(e=0;e<s;e+=1)this.elements[e]&&this.elements[e].destroy()},ICompElement.prototype.destroy=function(){this.destroyElements(),this.destroyBaseElement()};function SVGCompElement(e,s,i){this.layers=e.layers,this.supports3d=!0,this.completeLayers=!1,this.pendingElements=[],this.elements=this.layers?createSizedArray(this.layers.length):[],this.initElement(e,s,i),this.tm=e.tm?PropertyFactory.getProp(this,e.tm,0,s.frameRate,this):{_placeholder:!0}}extendPrototype([SVGRendererBase,ICompElement,SVGBaseElement],SVGCompElement),SVGCompElement.prototype.createComp=function(e){return new SVGCompElement(e,this.globalData,this)};function SVGRenderer(e,s){this.animationItem=e,this.layers=null,this.renderedFrame=-1,this.svgElement=createNS("svg");var i="";if(s&&s.title){var o=createNS("title"),a=createElementID();o.setAttribute("id",a),o.textContent=s.title,this.svgElement.appendChild(o),i+=a}if(s&&s.description){var c=createNS("desc"),d=createElementID();c.setAttribute("id",d),c.textContent=s.description,this.svgElement.appendChild(c),i+=" "+d}i&&this.svgElement.setAttribute("aria-labelledby",i);var h=createNS("defs");this.svgElement.appendChild(h);var g=createNS("g");this.svgElement.appendChild(g),this.layerElement=g,this.renderConfig={preserveAspectRatio:s&&s.preserveAspectRatio||"xMidYMid meet",imagePreserveAspectRatio:s&&s.imagePreserveAspectRatio||"xMidYMid slice",contentVisibility:s&&s.contentVisibility||"visible",progressiveLoad:s&&s.progressiveLoad||!1,hideOnTransparent:!(s&&s.hideOnTransparent===!1),viewBoxOnly:s&&s.viewBoxOnly||!1,viewBoxSize:s&&s.viewBoxSize||!1,className:s&&s.className||"",id:s&&s.id||"",focusable:s&&s.focusable,filterSize:{width:s&&s.filterSize&&s.filterSize.width||"100%",height:s&&s.filterSize&&s.filterSize.height||"100%",x:s&&s.filterSize&&s.filterSize.x||"0%",y:s&&s.filterSize&&s.filterSize.y||"0%"},width:s&&s.width,height:s&&s.height,runExpressions:!s||s.runExpressions===void 0||s.runExpressions},this.globalData={_mdf:!1,frameNum:-1,defs:h,renderConfig:this.renderConfig},this.elements=[],this.pendingElements=[],this.destroyed=!1,this.rendererType="svg"}extendPrototype([SVGRendererBase],SVGRenderer),SVGRenderer.prototype.createComp=function(e){return new SVGCompElement(e,this.globalData,this)};function ShapeTransformManager(){this.sequences={},this.sequenceList=[],this.transform_key_count=0}ShapeTransformManager.prototype={addTransformSequence:function(s){var i,o=s.length,a="_";for(i=0;i<o;i+=1)a+=s[i].transform.key+"_";var c=this.sequences[a];return c||(c={transforms:[].concat(s),finalTransform:new Matrix,_mdf:!1},this.sequences[a]=c,this.sequenceList.push(c)),c},processSequence:function(s,i){for(var o=0,a=s.transforms.length,c=i;o<a&&!i;){if(s.transforms[o].transform.mProps._mdf){c=!0;break}o+=1}if(c)for(s.finalTransform.reset(),o=a-1;o>=0;o-=1)s.finalTransform.multiply(s.transforms[o].transform.mProps.v);s._mdf=c},processSequences:function(s){var i,o=this.sequenceList.length;for(i=0;i<o;i+=1)this.processSequence(this.sequenceList[i],s)},getNewKey:function(){return this.transform_key_count+=1,"_"+this.transform_key_count}};var lumaLoader=function(){var s="__lottie_element_luma_buffer",i=null,o=null,a=null;function c(){var g=createNS("svg"),b=createNS("filter"),_=createNS("feColorMatrix");return b.setAttribute("id",s),_.setAttribute("type","matrix"),_.setAttribute("color-interpolation-filters","sRGB"),_.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"),b.appendChild(_),g.appendChild(b),g.setAttribute("id",s+"_svg"),featureSupport.svgLumaHidden&&(g.style.display="none"),g}function d(){i||(a=c(),document.body.appendChild(a),i=createTag("canvas"),o=i.getContext("2d"),o.filter="url
546(#"+s+")",o.fillStyle="rgba(0,0,0,0)",o.fillRect(0,0,1,1))}function h(g){return i||d(),i.width=g.width,i.height=g.height,o.filter="url(#"+s+")",i}return{load:d,get:h}};function createCanvas(e,s){if(featureSupport.offscreenCanvas)return new OffscreenCanvas(e,s);var i=createTag("canvas");return i.width=e,i.height=s,i}var assetLoader=function(){return{loadLumaCanvas:lumaLoader.load,getLumaCanvas:lumaLoader.get,createCanvas}}(),registeredEffects={};function CVEffects(e){var s,i=e.data.ef?e.data.ef.length:0;this.filters=[];var o;for(s=0;s<i;s+=1){o=null;var a=e.data.ef[s].ty;if(registeredEffects[a]){var c=registeredEffects[a].effect;o=new c(e.effectsManager.effectElements[s],e)}o&&this.filters.push(o)}this.filters.length&&e.addRenderableComponent(this)}CVEffects.prototype.renderFrame=function(e){var s,i=this.filters.length;for(s=0;s<i;s+=1)this.filters[s].renderFrame(e)},CVEffects.prototype.getEffects=function(e){var s,i=this.filters.length,o=[];for(s=0;s<i;s+=1)this.filters[s].type===e&&o.push(this.filters[s]);return o};function registerEffect(e,s){registeredEffects[e]={effect:s}}function CVMaskElement(e,s){this.data=e,this.element=s,this.masksProperties=this.data.masksProperties||[],this.viewData=createSizedArray(this.masksProperties.length);var i,o=this.masksProperties.length,a=!1;for(i=0;i<o;i+=1)this.masksProperties[i].mode!=="n"&&(a=!0),this.viewData[i]=ShapePropertyFactory.getShapeProp(this.element,this.masksProperties[i],3);this.hasMasks=a,a&&this.element.addRenderableComponent(this)}CVMaskElement.prototype.renderFrame=function(){if(this.hasMasks){var e=this.element.finalTransform.mat,s=this.element.canvasContext,i,o=this.masksProperties.length,a,c,d;for(s.beginPath(),i=0;i<o;i+=1)if(this.masksProperties[i].mode!=="n"){this.masksProperties[i].inv&&(s.moveTo(0,0),s.lineTo(this.element.globalData.compSize.w,0),s.lineTo(this.element.globalData.compSize.w,this.element.globalData.compSize.h),s.lineTo(0,this.element.globalData.compSize.h),s.lineTo(0,0)),d=this.viewData[i].v,a=e.applyToPointArray(d.v[0][0],d.v[0][1],0),s.moveTo(a[0],a[1]);var h,g=d._length;for(h=1;h<g;h+=1)c=e.applyToTriplePoints(d.o[h-1],d.i[h],d.v[h]),s.bezierCurveTo(c[0],c[1],c[2],c[3],c[4],c[5]);c=e.applyToTriplePoints(d.o[h-1],d.i[0],d.v[0]),s.bezierCurveTo(c[0],c[1],c[2],c[3],c[4],c[5])}this.element.globalData.renderer.save(!0),s.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 s=this.globalData.canvasContext,i=assetLoader.createCanvas(s.canvas.width,s.canvas.height);this.buffers.push(i);var o=assetLoader.createCanvas(s.canvas.width,s.canvas.height);this.buffers.push(o),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 s=this.globalData;if(s.blendMode!==this.data.bm){s.blendMode=this.data.bm;var i=getBlendMode(this.data.bm);s.canvasContext.globalCompositeOperation=i}},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(s){s.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 s=this.buffers[0],i=s.getContext("2d");this.clearCanvas(i),i.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 s=this.buffers[1],i=s.getContext("2d");this.clearCanvas(i),i.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 o=this.comp.getElementById("tp"in this.data?this.data.tp:this.data.ind-1);if(o.renderFrame(!0),this.canvasContext.setTransform(1,0,0,1,0,0),this.data.tt>=3&&!document._isProxy){var a=assetLoader.getLumaCanvas(this.canvasContext.canvas),c=a.getContext("2d");c.drawImage(this.canvasContext.canvas,0,0),this.clearCanvas(this.canvasContext),this.canvasContext.drawImage(a,0,0)}this.canvasContext.globalCompositeOperation=operationsMap[this.data.tt],this.canvasContext.drawImage(s,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(s){if(!(this.hidden||this.data.hd)&&!(this.data.td===1&&!s)){this.renderTransform(),this.renderRenderable(),this.renderLocalTransform(),this.setBlendMode();var i=this.data.ty===0;this.prepareLayer(),this.globalData.renderer.save(i),this.globalData.renderer.ctxTransform(this.finalTransform.localMat.props),this.globalData.renderer.ctxOpacity(this.finalTransform.localOpacity),this.renderInnerContent(),this.globalData.renderer.restore(i),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,s,i,o){this.styledShapes=[],this.tr=[0,0,0,0,0,0];var a=4;s.ty==="rc"?a=5:s.ty==="el"?a=6:s.ty==="sr"&&(a=7),this.sh=ShapePropertyFactory.getShapeProp(e,s,a,e);var c,d=i.length,h;for(c=0;c<d;c+=1)i[c].closed||(h={transforms:o.addTransformSequence(i[c].transforms),trNodes:[]},this.styledShapes.push(h),i[c].elements.push(h))}CVShapeData.prototype.setAsAnimated=SVGShapeData.prototype.setAsAnimated;function CVShapeElement(e,s,i){this.shapes=[],this.shapesData=e.shapes,this.stylesList=[],this.itemsData=[],this.prevViewData=[],this.shapeModifiers=[],this.processedElements=[],this.transformsManager=new ShapeTransformManager,this.initElement(e,s,i)}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,s){var i={data:e,type:e.ty,preTransforms:this.transformsManager.addTransformSequence(s),transforms:[],elements:[],closed:e.hd===!0},o={};if(e.ty==="fl"||e.ty==="st"?(o.c=PropertyFactory.getProp(this,e.c,1,255,this),o.c.k||(i.co="rgb("+bmFloor(o.c.v[0])+","+bmFloor(o.c.v[1])+","+bmFloor(o.c.v[2])+")")):(e.ty==="gf"||e.ty==="gs")&&(o.s=PropertyFactory.getProp(this,e.s,1,null,this),o.e=PropertyFactory.getProp(this,e.e,1,null,this),o.h=PropertyFactory.getProp(this,e.h||{k:0},0,.01,this),o.a=PropertyFactory.getProp(this,e.a||{k:0},0,degToRads,this),o.g=new GradientProperty(this,e.g,this)),o.o=PropertyFactory.getProp(this,e.o,0,.01,this),e.ty==="st"||e.ty==="gs"){if(i.lc=lineCapEnum[e.lc||2],i.lj=lineJoinEnum[e.lj||2],e.lj==1&&(i.ml=e.ml),o.w=PropertyFactory.getProp(this,e.w,0,null,this),o.w.k||(i.wi=o.w.v),e.d){var a=new DashProperty(this,e.d,"canvas",this);o.d=a,o.d.k||(i.da=o.d.dashArray,i.do=o.d.dashoffset[0])}}else i.r=e.r===2?"evenodd":"nonzero";return this.stylesList.push(i),o.style=i,o},CVShapeElement.prototype.createGroupElement=function(){var e={it:[],prevViewData:[]};return e},CVShapeElement.prototype.createTransformElement=function(e){var s={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 s},CVShapeElement.prototype.createShapeElement=function(e){var s=new CVShapeData(this,e,this.stylesList,this.transformsManager);return this.shapes.push(s),this.addShapeToModifiers(s),s},CVShapeElement.prototype.reloadShapes=function(){this._isFirstFrame=!0;var e,s=this.itemsData.length;for(e=0;e<s;e+=1)this.prevViewData[e]=this.itemsData[e];for(this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,!0,[]),s=this.dynamicProperties.length,e=0;e<s;e+=1)this.dynamicProperties[e].getValue();this.renderModifiers(),this.transformsManager.processSequences(this._isFirstFrame)},CVShapeElement.prototype.addTransformToStyleList=function(e){var s,i=this.stylesList.length;for(s=0;s<i;s+=1)this.stylesList[s].closed||this.stylesList[s].transforms.push(e)},CVShapeElement.prototype.removeTransformFromStyleList=function(){var e,s=this.stylesList.length;for(e=0;e<s;e+=1)this.stylesList[e].closed||this.stylesList[e].transforms.pop()},CVShapeElement.prototype.closeStyles=function(e){var s,i=e.length;for(s=0;s<i;s+=1)e[s].closed=!0},CVShapeElement.prototype.searchShapes=function(e,s,i,o,a){var c,d=e.length-1,h,g,b=[],_=[],_e,$,et,it=[].concat(a);for(c=d;c>=0;c-=1){if(_e=this.searchProcessedElement(e[c]),_e?s[c]=i[_e-1]:e[c]._shouldRender=o,e[c].ty==="fl"||e[c].ty==="st"||e[c].ty==="gf"||e[c].ty==="gs")_e?s[c].style.closed=!1:s[c]=this.createStyleElement(e[c],it),b.push(s[c].style);else if(e[c].ty==="gr"){if(!_e)s[c]=this.createGroupElement(e[c]);else for(g=s[c].it.length,h=0;h<g;h+=1)s[c].prevViewData[h]=s[c].it[h];this.searchShapes(e[c].it,s[c].it,s[c].prevViewData,o,it)}else e[c].ty==="tr"?(_e||(et=this.createTransformElement(e[c]),s[c]=et),it.push(s[c]),this.addTransformToStyleList(s[c])):e[c].ty==="sh"||e[c].ty==="rc"||e[c].ty==="el"||e[c].ty==="sr"?_e||(s[c]=this.createShapeElement(e[c])):e[c].ty==="tm"||e[c].ty==="rd"||e[c].ty==="pb"||e[c].ty==="zz"||e[c].ty==="op"?(_e?($=s[c],$.closed=!1):($=ShapeModifiers.getModifier(e[c].ty),$.init(this,e[c]),s[c]=$,this.shapeModifiers.push($)),_.push($)):e[c].ty==="rp"&&(_e?($=s[c],$.closed=!0):($=ShapeModifiers.getModifier(e[c].ty),s[c]=$,$.init(this,e,c,s),this.shapeModifiers.push($),o=!1),_.push($));this.addProcessedElement(e[c],c+1)}for(this.removeTransformFromStyleList(),this.closeStyles(b),d=_.length,c=0;c<d;c+=1)_[c].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,s){(e._opMdf||s.op._mdf||this._isFirstFrame)&&(s.opacity=e.opacity,s.opacity*=s.op.v,s._opMdf=!0)},CVShapeElement.prototype.drawLayer=function(){var e,s=this.stylesList.length,i,o,a,c,d,h,g=this.globalData.renderer,b=this.globalData.canvasContext,_,_e;for(e=0;e<s;e+=1)if(_e=this.stylesList[e],_=_e.type,!((_==="st"||_==="gs")&&_e.wi===0||!_e.data._shouldRender||_e.coOp===0||this.globalData.currentGlobalAlpha===0)){for(g.save(),d=_e.elements,_==="st"||_==="gs"?(g.ctxStrokeStyle(_==="st"?_e.co:_e.grd),g.ctxLineWidth(_e.wi),g.ctxLineCap(_e.lc),g.ctxLineJoin(_e.lj),g.ctxMiterLimit(_e.ml||0)):g.ctxFillStyle(_==="fl"?_e.co:_e.grd),g.ctxOpacity(_e.coOp),_!=="st"&&_!=="gs"&&b.beginPath(),g.ctxTransform(_e.preTransforms.finalTransform.props),o=d.length,i=0;i<o;i+=1){for((_==="st"||_==="gs")&&(b.beginPath(),_e.da&&(b.setLineDash(_e.da),b.lineDashOffset=_e.do)),h=d[i].trNodes,c=h.length,a=0;a<c;a+=1)h[a].t==="m"?b.moveTo(h[a].p[0],h[a].p[1]):h[a].t==="c"?b.bezierCurveTo(h[a].pts[0],h[a].pts[1],h[a].pts[2],h[a].pts[3],h[a].pts[4],h[a].pts[5]):b.closePath();(_==="st"||_==="gs")&&(g.ctxStroke(),_e.da&&b.setLineDash(this.dashResetter))}_!=="st"&&_!=="gs"&&this.globalData.renderer.ctxFill(_e.r),g.restore(
vendor: 109,482 bytes, line 546
546)}},CVShapeElement.prototype.renderShape=function(e,s,i,o){var a,c=s.length-1,d;for(d=e,a=c;a>=0;a-=1)s[a].ty==="tr"?(d=i[a].transform,this.renderShapeTransform(e,d)):s[a].ty==="sh"||s[a].ty==="el"||s[a].ty==="rc"||s[a].ty==="sr"?this.renderPath(s[a],i[a]):s[a].ty==="fl"?this.renderFill(s[a],i[a],d):s[a].ty==="st"?this.renderStroke(s[a],i[a],d):s[a].ty==="gf"||s[a].ty==="gs"?this.renderGradientFill(s[a],i[a],d):s[a].ty==="gr"?this.renderShape(d,s[a].it,i[a].it):s[a].ty;o&&this.drawLayer()},CVShapeElement.prototype.renderStyledShape=function(e,s){if(this._isFirstFrame||s._mdf||e.transforms._mdf){var i=e.trNodes,o=s.paths,a,c,d,h=o._length;i.length=0;var g=e.transforms.finalTransform;for(d=0;d<h;d+=1){var b=o.shapes[d];if(b&&b.v){for(c=b._length,a=1;a<c;a+=1)a===1&&i.push({t:"m",p:g.applyToPointArray(b.v[0][0],b.v[0][1],0)}),i.push({t:"c",pts:g.applyToTriplePoints(b.o[a-1],b.i[a],b.v[a])});c===1&&i.push({t:"m",p:g.applyToPointArray(b.v[0][0],b.v[0][1],0)}),b.c&&c&&(i.push({t:"c",pts:g.applyToTriplePoints(b.o[a-1],b.i[0],b.v[0])}),i.push({t:"z"}))}}e.trNodes=i}},CVShapeElement.prototype.renderPath=function(e,s){if(e.hd!==!0&&e._shouldRender){var i,o=s.styledShapes.length;for(i=0;i<o;i+=1)this.renderStyledShape(s.styledShapes[i],s.sh)}},CVShapeElement.prototype.renderFill=function(e,s,i){var o=s.style;(s.c._mdf||this._isFirstFrame)&&(o.co="rgb("+bmFloor(s.c.v[0])+","+bmFloor(s.c.v[1])+","+bmFloor(s.c.v[2])+")"),(s.o._mdf||i._opMdf||this._isFirstFrame)&&(o.coOp=s.o.v*i.opacity)},CVShapeElement.prototype.renderGradientFill=function(e,s,i){var o=s.style,a;if(!o.grd||s.g._mdf||s.s._mdf||s.e._mdf||e.t!==1&&(s.h._mdf||s.a._mdf)){var c=this.globalData.canvasContext,d=s.s.v,h=s.e.v;if(e.t===1)a=c.createLinearGradient(d[0],d[1],h[0],h[1]);else{var g=Math.sqrt(Math.pow(d[0]-h[0],2)+Math.pow(d[1]-h[1],2)),b=Math.atan2(h[1]-d[1],h[0]-d[0]),_=s.h.v;_>=1?_=.99:_<=-1&&(_=-.99);var _e=g*_,$=Math.cos(b+s.a.v)*_e+d[0],et=Math.sin(b+s.a.v)*_e+d[1];a=c.createRadialGradient($,et,0,d[0],d[1],g)}var it,rt=e.g.p,lt=s.g.c,st=1;for(it=0;it<rt;it+=1)s.g._hasOpacity&&s.g._collapsable&&(st=s.g.o[it*2+1]),a.addColorStop(lt[it*4]/100,"rgba("+lt[it*4+1]+","+lt[it*4+2]+","+lt[it*4+3]+","+st+")");o.grd=a}o.coOp=s.o.v*i.opacity},CVShapeElement.prototype.renderStroke=function(e,s,i){var o=s.style,a=s.d;a&&(a._mdf||this._isFirstFrame)&&(o.da=a.dashArray,o.do=a.dashoffset[0]),(s.c._mdf||this._isFirstFrame)&&(o.co="rgb("+bmFloor(s.c.v[0])+","+bmFloor(s.c.v[1])+","+bmFloor(s.c.v[2])+")"),(s.o._mdf||i._opMdf||this._isFirstFrame)&&(o.coOp=s.o.v*i.opacity),(s.w._mdf||this._isFirstFrame)&&(o.wi=s.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,s,i){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,s,i)}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 s=!1;e.fc?(s=!0,this.values.fill=this.buildColor(e.fc)):this.values.fill="rgba(0,0,0,0)",this.fill=s;var i=!1;e.sc&&(i=!0,this.values.stroke=this.buildColor(e.sc),this.values.sWidth=e.sw);var o=this.globalData.fontManager.getFontByName(e.f),a,c,d=e.l,h=this.mHelper;this.stroke=i,this.values.fValue=e.finalSize+"px "+this.globalData.fontManager.getFontByName(e.f).fFamily,c=e.finalText.length;var g,b,_,_e,$,et,it,rt,lt,st,ot=this.data.singleShape,nt=e.tr*.001*e.finalSize,at=0,ct=0,dt=!0,pt=0;for(a=0;a<c;a+=1){g=this.globalData.fontManager.getCharData(e.finalText[a],o.fStyle,this.globalData.fontManager.getFontByName(e.f).fFamily),b=g&&g.data||{},h.reset(),ot&&d[a].n&&(at=-nt,ct+=e.yOffset,ct+=dt?1:0,dt=!1),$=b.shapes?b.shapes[0].it:[],it=$.length,h.scale(e.finalSize/100,e.finalSize/100),ot&&this.applyTextPropertiesToMatrix(e,h,d[a].line,at,ct),lt=createSizedArray(it-1);var mt=0;for(et=0;et<it;et+=1)if($[et].ty==="sh"){for(_e=$[et].ks.k.i.length,rt=$[et].ks.k,st=[],_=1;_<_e;_+=1)_===1&&st.push(h.applyToX(rt.v[0][0],rt.v[0][1],0),h.applyToY(rt.v[0][0],rt.v[0][1],0)),st.push(h.applyToX(rt.o[_-1][0],rt.o[_-1][1],0),h.applyToY(rt.o[_-1][0],rt.o[_-1][1],0),h.applyToX(rt.i[_][0],rt.i[_][1],0),h.applyToY(rt.i[_][0],rt.i[_][1],0),h.applyToX(rt.v[_][0],rt.v[_][1],0),h.applyToY(rt.v[_][0],rt.v[_][1],0));st.push(h.applyToX(rt.o[_-1][0],rt.o[_-1][1],0),h.applyToY(rt.o[_-1][0],rt.o[_-1][1],0),h.applyToX(rt.i[0][0],rt.i[0][1],0),h.applyToY(rt.i[0][0],rt.i[0][1],0),h.applyToX(rt.v[0][0],rt.v[0][1],0),h.applyToY(rt.v[0][0],rt.v[0][1],0)),lt[mt]=st,mt+=1}ot&&(at+=d[a].l,at+=nt),this.textSpans[pt]?this.textSpans[pt].elem=lt:this.textSpans[pt]={elem:lt},pt+=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 s,i,o,a,c,d,h=this.textAnimator.renderedLetters,g=this.textProperty.currentData.l;i=g.length;var b,_=null,_e=null,$=null,et,it,rt=this.globalData.renderer;for(s=0;s<i;s+=1)if(!g[s].n){if(b=h[s],b&&(rt.save(),rt.ctxTransform(b.p),rt.ctxOpacity(b.o)),this.fill){for(b&&b.fc?_!==b.fc&&(rt.ctxFillStyle(b.fc),_=b.fc):_!==this.values.fill&&(_=this.values.fill,rt.ctxFillStyle(this.values.fill)),et=this.textSpans[s].elem,a=et.length,this.globalData.canvasContext.beginPath(),o=0;o<a;o+=1)for(it=et[o],d=it.length,this.globalData.canvasContext.moveTo(it[0],it[1]),c=2;c<d;c+=6)this.globalData.canvasContext.bezierCurveTo(it[c],it[c+1],it[c+2],it[c+3],it[c+4],it[c+5]);this.globalData.canvasContext.closePath(),rt.ctxFill()}if(this.stroke){for(b&&b.sw?$!==b.sw&&($=b.sw,rt.ctxLineWidth(b.sw)):$!==this.values.sWidth&&($=this.values.sWidth,rt.ctxLineWidth(this.values.sWidth)),b&&b.sc?_e!==b.sc&&(_e=b.sc,rt.ctxStrokeStyle(b.sc)):_e!==this.values.stroke&&(_e=this.values.stroke,rt.ctxStrokeStyle(this.values.stroke)),et=this.textSpans[s].elem,a=et.length,this.globalData.canvasContext.beginPath(),o=0;o<a;o+=1)for(it=et[o],d=it.length,this.globalData.canvasContext.moveTo(it[0],it[1]),c=2;c<d;c+=6)this.globalData.canvasContext.bezierCurveTo(it[c],it[c+1],it[c+2],it[c+3],it[c+4],it[c+5]);this.globalData.canvasContext.closePath(),rt.ctxStroke()}b&&this.globalData.renderer.restore()}};function CVImageElement(e,s,i){this.assetData=s.getAssetData(e.refId),this.img=s.imageLoader.getAsset(this.assetData),this.initElement(e,s,i)}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 s=e.getContext("2d"),i=this.img.width,o=this.img.height,a=i/o,c=this.assetData.w/this.assetData.h,d,h,g=this.assetData.pr||this.globalData.renderConfig.imagePreserveAspectRatio;a>c&&g==="xMidYMid slice"||a<c&&g!=="xMidYMid slice"?(h=o,d=h*c):(d=i,h=d/c),s.drawImage(this.img,(i-d)/2,(o-h)/2,d,h,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,s,i){this.initElement(e,s,i)}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,s,i,o){this.canvasContext.fillRect(e,s,i,o)},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 s=this.animationItem.container.style;s.width="100%",s.height="100%";var i="0px 0px 0px";s.transformOrigin=i,s.mozTransformOrigin=i,s.webkitTransformOrigin=i,s["-webkit-transform"]=i,s.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,s){this.reset();var i,o;e?(i=e,o=s,this.canvasContext.canvas.width=i,this.canvasContext.canvas.height=o):(this.animationItem.wrapper&&this.animationItem.container?(i=this.animationItem.wrapper.offsetWidth,o=this.animationItem.wrapper.offsetHeight):(i=this.canvasContext.canvas.width,o=this.canvasContext.canvas.height),this.canvasContext.canvas.width=i*this.renderConfig.dpr,this.canvasContext.canvas.height=o*this.renderConfig.dpr);var a,c;if(this.renderConfig.preserveAspectRatio.indexOf("meet")!==-1||this.renderConfig.preserveAspectRatio.indexOf("slice")!==-1){var d=this.renderConfig.preserveAspectRatio.split(" "),h=d[1]||"meet",g=d[0]||"xMidYMid",b=g.substr(0,4),_=g.substr(4);a=i/o,c=this.transformCanvas.w/this.transformCanvas.h,c>a&&h==="meet"||c<a&&h==="slice"?(this.transformCanvas.sx=i/(this.transformCanvas.w/this.renderConfig.dpr),this.transformCanvas.sy=i/(this.transformCanvas.w/this.renderConfig.dpr)):(this.transformCanvas.sx=o/(this.transformCanvas.h/this.renderConfig.dpr),this.transformCanvas.sy=o/(this.transformCanvas.h/this.renderConfig.dpr)),b==="xMid"&&(c<a&&h==="meet"||c>a&&h==="slice")?this.transformCanvas.tx=(i-this.transformCanvas.w*(o/this.transformCanvas.h))/2*this.renderConfig.dpr:b==="xMax"&&(c<a&&h==="meet"||c>a&&h==="slice")?this.transformCanvas.tx=(i-this.transformCanvas.w*(o/this.transformCanvas.h))*this.renderConfig.dpr:this.transformCanvas.tx=0,_==="YMid"&&(c>a&&h==="meet"||c<a&&h==="slice")?this.transformCanvas.ty=(o-this.transformCanvas.h*(i/this.transformCanvas.w))/2*this.renderConfig.dpr:_==="YMax"&&(c>a&&h==="meet"||c<a&&h==="slice")?this.transformCanvas.ty=(o-this.transformCanvas.h*(i/this.transformCanvas.w))*this.renderConfig.dpr:this.transformCanvas.ty=0}else this.renderConfig.preserveAspectRatio==="none"?(this.transformCanvas.sx=i/(this.transformCanvas.w/this.renderConfig.dpr),this.transformCanvas.sy=o/(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,s=this.layers?this.layers.length:0;for(e=s-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,s){if(!(this.renderedFrame===e&&this.renderConfig.clearCanvas===!0&&!s||this.destroyed||e===-1)){this.renderedFrame=e,this.globalData.frameNum=e-this.animationItem._isFirstFrame,this.globalData.frameId+=1,this.globalData._mdf=!this.renderConfig.clearCanvas||s,this.globalData.projectInterface.currentFrame=e;var i,o=this.layers.length;for(this.completeLayers||this.checkLayers(e),i=o-1;i>=0;i-=1)(this.completeLayers||this.elements[i])&&this.elements[i].prepareFrame(e-this.layers[i].st);if(this.globalData._mdf){for(this.renderConfig.clearCanvas===!0?this.canvasContext.clearRect(0,0,this.transformCanvas.w,this.transformCanvas.h):this.save(),i=o-1;i>=0;i-=1)(this.completeLayers||this.elements[i])&&this.elements[i].renderFrame();this.renderConfig.clearCanvas!==!0&&this.restore()}}},CanvasRendererBase.prototype.buildItem=function(e){var s=this.elements;if(!(s[e]||this.layers[e].ty===99)){var i=this.createItem(this.layers[e],this,this.globalData);s[e]=i,i.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,s=15;for(e=0;e<s;e+=1){var i=new CanvasContext;this.stack[e]=i}this._length=s,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,s=0;for(s=this._length;s<e;s+=1)this.stack[s]=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 s=this.stack[this.cArrPos],i=s.transform,o,a=this.cTr.props;for(o=0;o<16;o+=1)a[o]=i[o];if(e){this.nativeContext.restore();var c=this.stack[this.cArrPos+1];this.appliedFillStyle=c.fillStyle,this.appliedStrokeStyle=c.strokeStyle,this.appliedLineWidth=c.lineWidth,this.appliedLineCap=c.lineCap,this.appliedLineJoin=c.lineJoin,this.appliedMiterLimit=c.miterLimit}this.nativeContext.setTransform(i[0],i[1],i[4],i[5],i[12],i[13]),(e||s.opacity!==-1&&this.currentOpacity!==s.opacity)&&(this.nativeContext.globalAlpha=s.opacity,this.currentOpacity=s.opacity),this.currentFillStyle=s.fillStyle,this.currentStrokeStyle=s.strokeStyle,this.currentLineWidth=s.lineWidth,this.currentLineCap=s.lineCap,this.currentLineJoin=s.lineJoin,this.currentMiterLimit=s.miterLimit},CVContextData.prototype.save=function(e){e&&this.nativeContext.save();var s=this.cTr.props;this._length<=this.cArrPos&&this.duplicate();var i=this.stack[this.cArrPos],o;for(o=0;o<16;o+=1)i.transform[o]=s[o];this.cArrPos+=1;var a=this.stack[this.cArrPos];a.opacity=i.opacity,a.fillStyle=i.fillStyle,a.strokeStyle=i.strokeStyle,a.lineWidth=i.lineWidth,a.lineCap=i.lineCap,a.lineJoin=i.lineJoin,a.miterLimit=i.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 s=this.cTr;this.transformMat.multiply(s),s.cloneFromProps(this.transformMat.props);var i=s.props;this.nativeContext.setTransform(i[0],i[1],i[4],i[5],i[12],i[13])},CVContextData.prototype.opacity=function(e){var s=this.stack[this.cArrPos].opacity;s*=e<0?0:e,this.stack[this.cArrPos].opacity!==s&&(this.currentOpacity!==e&&(this.nativeContext.globalAlpha=e,this.currentOpacity=e),this.stack[this.cArrPos].opacity=s)},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,s,i,o){this.appliedFillStyle!==this.currentFillStyle&&(this.appliedFillStyle=this.currentFillStyle,this.nativeContext.fillStyle=this.appliedFillStyle),this.nativeContext.fillRect(e,s,i,o)},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,s,i){this.completeLayers=!1,this.layers=e.layers,this.pendingElements=[],this.elements=createSizedArray(this.layers.length),this.initElement(e,s,i),this.tm=e.tm?PropertyFactory.getProp(this,e.tm,0,s.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 s,i=this.layers.length;for(s=i-1;s>=0;s-=1)(this.completeLayers||this.elements[s])&&this.elements[s].renderFrame()},CVCompElement.prototype.destroy=function(){var e,s=this.layers.length;for(e=s-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,s){this.animationItem=e,this.renderConfig={clearCanvas:s&&s.clearCanvas!==void 0?s.clearCanvas:!0,context:s&&s.context||null,progressiveLoad:s&&s.progressiveLoad||!1,preserveAspectRatio:s&&s.preserveAspectRatio||"xMidYMid meet",imagePreserveAspectRatio:s&&s.imagePreserveAspectRatio||"xMidYMid slice",contentVisibility:s&&s.contentVisibility||"visible",className:s&&s.className||"",id:s&&s.id||"",runExpressions:!s||s.runExpressions===void 0||s.runExpressions},this.renderConfig.dpr=s&&s.dpr||1,this.animationItem.wrapper&&(this.renderConfig.dpr=s&&s.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 s=this.transformedElement?this.transformedElement.style:{};if(this.finalTransform._matMdf){var i=this.finalTransform.mat.toCSS();s.transform=i,s.webkitTransform=i}this.finalTransform._opMdf&&(s.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,s,i){this.initElement(e,s,i)}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,s,i){this.shapes=[],this.shapesData=e.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.animatedContents=[],this.shapesContainer=createNS("g"),this.initElement(e,s,i),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 s=this.comp.data?this.comp.data:this.globalData.compSize;e.setAttribute("width",s.w),e.setAttribute("height",s.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,s){var i,o=e.length;for(i=0;i<o;i+=1)s=e[i].mProps.v.applyToPointArray(s[0],s[1],0);return s},HShapeElement.prototype.calculateShapeBoundingBox=function(e,s){var i=e.sh.v,o=e.transformers,a,c=i._length,d,h,g,b;if(!(c<=1)){for(a=0;a<c-1;a+=1)d=this.getTransformedPoint(o,i.v[a]),h=this.getTransformedPoint(o,i.o[a]),g=this.getTransformedPoint(o,i.i[a+1]),b=this.getTransformedPoint(o,i.v[a+1]),this.checkBounds(d,h,g,b,s);i.c&&(d=this.getTransformedPoint(o,i.v[a]),h=this.getTransformedPoint(o,i.o[a]),g=this.getTransformedPoint(o,i.i[0]),b=this.getTransformedPoint(o,i.v[0]),this.checkBounds(d,h,g,b,s))}},HShapeElement.prototype.checkBounds=function(e,s,i,o,a){this.getBoundsOfCurve(e,s,i,o);var c=this.shapeBoundingBox;a.x=bmMin(c.left,a.x),a.xMax=bmMax(c.right,a.xMax),a.y=bmMin(c.top,a.y),a.yMax=bmMax(c.bottom,a.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,s,i,o){for(var a=[[e[0],o[0]],[e[1],o[1]]],c,d,h,g,b,_,_e,$=0;$<2;++$)d=6*e[$]-12*s[$]+6*i[$],c=-3*e[$]+9*s[$]-9*i[$]+3*o[$],h=3*s[$]-3*e[$],d|=0,c|=0,h|=0,c===0&&d===0||(c===0?(g=-h/d,g>0&&g<1&&a[$].push(this.calculateF(g,e,s,i,o,$))):(b=d*d-4*h*c,b>=0&&(_=(-d+bmSqrt(b))/(2*c),_>0&&_<1&&a[$].push(this.calculateF(_,e,s,i,o,$)),_e=(-d-bmSqrt(b))/(2*c),_e>0&&_e<1&&a[$].push(this.calculateF(_e,e,s,i,o,$)))));this.shapeBoundingBox.left=bmMin.apply(null,a[0]),this.shapeBoundingBox.top=bmMin.apply(null,a[1]),this.shapeBoundingBox.right=bmMax.apply(null,a[0]),this.shapeBoundingBox.bottom=bmMax.apply(null,a[1])},HShapeElement.prototype.calculateF=function(e,s,i,o,a,c){return bmPow(1-e,3)*s[c]+3*bmPow(1-e,2)*e*i[c]+3*(1-e)*bmPow(e,2)*o[c]+bmPow(e,3)*a[c]},HShapeElement.prototype.calculateBoundingBox=function(e,s){var i,o=e.length;for(i=0;i<o;i+=1)e[i]&&e[i].sh?this.calculateShapeBoundingBox(e[i],s):e[i]&&e[i].it?this.calculateBoundingBox(e[i].it,s):e[i]&&e[i].style&&e[i].w&&this.expandStrokeBoundingBox(e[i].w,s)},HShapeElement.prototype.expandStrokeBoundingBox=function(e,s){var i=0;if(e.keyframes){for(var o=0;o<e.keyframes.length;o+=1){var a=e.keyframes[o].s;a>i&&(i=a)}i*=e.mult}else i=e.v*e.mult;s.x-=i,s.xMax+=i,s.y-=i,s.yMax+=i},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,s=999999;if(e.x=s,e.xMax=-s,e.y=s,e.yMax=-s,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 i=!1;if(this.currentBBox.w!==e.width&&(this.currentBBox.w=e.width,this.shapeCont.setAttribute("width",e.width),i=!0),this.currentBBox.h!==e.height&&(this.currentBBox.h=e.height,this.shapeCont.setAttribute("height",e.height),i=!0),i||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 o=this.shapeCont.style,a="translate("+this.currentBBox.x+"px,"+this.currentBBox.y+"px)";o.transform=a,o.webkitTransform=a}}};function HTextElement(e,s,i){this.textSpans=[],this.textPaths=[],this.currentBBox={x:999999,y:-999999,h:0,w:0},this.renderType="svg",this.isMasked=!1,this.initElement(e,s,i)}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 s=this.innerElem.style,i=e.fc?this.buildColor(e.fc):"rgba(0,0,0,0)";s.fill=i,s.color=i,e.sc&&(s.stroke=this.buildColor(e.sc),s.strokeWidth=e.sw+"px");var o=this.globalData.fontManager.getFontByName(e.f);if(!this.globalData.fontManager.chars)if(s.fontSize=e.finalSize+"px",s.lineHeight=e.finalSize+"px",o.fClass)this.innerElem.className=o.fClass;else{s.fontFamily=o.fFamily;var a=e.fWeight,c=e.fStyle;s.fontStyle=c,s.fontWeight=a}var d,h,g=e.l;h=g.length;var b,_,_e,$=this.mHelper,et,it="",rt=0;for(d=0;d<h;d+=1){if(this.globalData.fontManager.chars?(this.textPaths[rt]?b=this.textPaths[rt]:(b=createNS("path"),b.setAttribute("stroke-linecap",lineCapEnum[1]),b.setAttribute("stroke-linejoin",lineJoinEnum[2]),b.setAttribute("stroke-miterlimit","4")),this.isMasked||(this.textSpans[rt]?(_=this.textSpans[rt],_e=_.children[0]):(_=createTag("div"),_.style.lineHeight=0,_e=createNS("svg"),_e.appendChild(b),styleDiv(_)))):this.isMasked?b=this.textPaths[rt]?this.textPaths[rt]:createNS("text"):this.textSpans[rt]?(_=this.textSpans[rt],b=this.textPaths[rt]):(_=createTag("span"),styleDiv(_),b=createTag("span"),styleDiv(b),_.appendChild(b)),this.globalData.fontManager.chars){var lt=this.globalData.fontManager.getCharData(e.finalText[d],o.fStyle,this.globalData.fontManager.getFontByName(e.f).fFamily),st;if(lt?st=lt.data:st=null,$.reset(),st&&st.shapes&&st.shapes.length&&(et=st.shapes[0].it,$.scale(e.finalSize/100,e.finalSize/100),it=this.createPathShape($,et),b.setAttribute("d",it)),this.isMasked)this.innerElem.appendChild(b);else{if(this.innerElem.appendChild(_),st&&st.shapes){document.body.appendChild(_e);var ot=_e.getBBox();_e.setAttribute("width",ot.width+2),_e.setAttribute("height",ot.height+2),_e.setAttribute("viewBox",ot.x-1+" "+(ot.y-1)+" "+(ot.width+2)+" "+(ot.height+2));var nt=_e.style,at="translate("+(ot.x-1)+"px,"+(ot.y-1)+"px)";nt.transform=at,nt.webkitTransform=at,g[d].yOffset=ot.y-1}else _e.setAttribute("width",1),_e.setAttribute("height",1);_.appendChild(_e)}}else if(b.textContent=g[d].val,b.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),this.isMasked)this.innerElem.appendChild(b);else{this.innerElem.appendChild(_);var ct=b.style,dt="translate3d(0,"+-e.finalSize/1.2+"px,0)";ct.transform=dt,ct.webkitTransform=dt}this.isMasked?this.textSpans[rt]=b:this.textSpans[rt]=_,this.textSpans[rt].style.display="block",this.textPaths[rt]=b,rt+=1}for(;rt<this.textSpans.length;)this.textSpans[rt].style.display="none",rt+=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 s="translate("+-this.finalTransform.mProp.p.v[0]+"px,"+-this.finalTransform.mProp.p.v[1]+"px)";e.transform=s,e.webkitTransform=s}}if(this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag),!(!this.lettersChangedFlag&&!this.textAnimator.lettersChangedFlag)){var i,o,a=0,c=this.textAnimator.renderedLetters,d=this.textProperty.currentData.l;o=d.length;var h,g,b;for(i=0;i<o;i+=1)d[i].n?a+=1:(g=this.textSpans[i],b=this.textPaths[i],h=c[a],a+=1,h._mdf.m&&(this.isMasked?g.setAttribute("transform",h.m):(g.style.webkitTransform=h.m,g.style.transform=h.m)),g.style.opacity=h.o,h.sw&&h._mdf.sw&&b.setAttribute("stroke-width",h.sw),h.sc&&h._mdf.sc&&b.setAttribute("stroke",h.sc),h.fc&&h._mdf.fc&&(b.setAttribute("fill",h.fc),b.style.color=h.fc));if(this.innerElem.getBBox&&!this.hidden&&(this._isFirstFrame||this._mdf)){var _=this.innerElem.getBBox();this.currentBBox.w!==_.width&&(this.currentBBox.w=_.width,this.svgElement.setAttribute("width",_.width)),this.currentBBox.h!==_.height&&(this.currentBBox.h=_.height,this.svgElement.setAttribute("height",_.height));var _e=1;if(this.currentBBox.w!==_.width+_e*2||this.currentBBox.h!==_.height+_e*2||this.currentBBox.x!==_.x-_e||this.currentBBox.y!==_.y-_e){this.currentBBox.w=_.width+_e*2,this.currentBBox.h=_.height+_e*2,this.currentBBox.x=_.x-_e,this.currentBBox.y=_.y-_e,this.svgElement.setAttribute("viewBox",this.currentBBox.x+" "+this.currentBBox.y+" "+this.currentBBox.w+" "+this.currentBBox.h),e=this.svgElement.style;var $="translate("+this.currentBBox.x+"px,"+this.currentBBox.y+"px)";e.transform=$,e.webkitTransform=$}}}};function HCameraElement(e,s,i){this.initFrame(),this.initBaseData(e,s,i),this.initHierarchy();var o=PropertyFactory.getProp;if(this.pe=o(this,e.pe,0,0,this),e.ks.p.s?(this.px=o(this,e.ks.p.x,1,0,this),this.py=o(this,e.ks.p.y,1,0,this),this.pz=o(this,e.ks.p.z,1,0,this)):this.p=o(this,e.ks.p,1,0,this),e.ks.a&&(this.a=o(this,e.ks.a,1,0,this)),e.ks.or.k.length&&e.ks.or.k[0].to){var a,c=e.ks.or.k.length;for(a=0;a<c;a+=1)e.ks.or.k[a].to=null,e.ks.or.k[a].ti=null}this.or=o(this,e.ks.or,1,degToRads,this),this.or.sh=!0,this.rx=o(this,e.ks.rx,0,degToRads,this),this.ry=o(this,e.ks.ry,0,degToRads,this),this.rz=o(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,s=this.comp.threeDElements.length,i,o,a;for(e=0;e<s;e+=1)if(i=this.comp.threeDElements[e],i.type==="3d"){o=i.perspectiveElem.style,a=i.container.style;var c=this.pe.v+"px",d="0px 0px 0px",h="matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1)";o.perspective=c,o.webkitPerspective=c,a.transformOrigin=d,a.mozTransformOrigin=d,a.webkitTransformOrigin=d,o.transform=h,o.webkitTransform=h}},HCameraElement.prototype.createElements=function(){},HCameraElement.prototype.hide=function(){},HCameraElement.prototype.renderFrame=function(){var e=this._isFirstFrame,s,i;if(this.hierarchy)for(i=this.hierarchy.length,s=0;s<i;s+=1)e=this.hierarchy[s].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(i=this.hierarchy.length-1,s=i;s>=0;s-=1){var o=this.hierarchy[s].finalTransform.mProp;this.mat.translate(-o.p.v[0],-o.p.v[1],o.p.v[2]),this.mat.rotateX(-o.or.v[0]).rotateY(-o.or.v[1]).rotateZ(o.or.v[2]),this.mat.rotateX(-o.rx.v).rotateY(-o.ry.v).rotateZ(o.rz.v),this.mat.scale(1/o.s.v[0],1/o.s.v[1],1/o.s.v[2]),this.mat.translate(o.a.v[0],o.a.v[1],o.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 a;this.p?a=[this.p.v[0]-this.a.v[0],this.p.v[1]-this.a.v[1],this.p.v[2]-this.a.v[2]]:a=[this.px.v-this.a.v[0],this.py.v-this.a.v[1],this.pz.v-this.a.v[2]];var c=Math.sqrt(Math.pow(a[0],2)+Math.pow(a[1],2)+Math.pow(a[2],2)),d=[a[0]/c,a[1]/c,a[2]/c],h=Math.sqrt(d[2]*d[2]+d[0]*d[0]),g=Math.atan2(d[1],h),b=Math.atan2(d[0],-d[2]);this.mat.rotateY(b).rotateX(-g)}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 _=!this._prevMat.equals(this.mat);if((_||this.pe._mdf)&&this.comp.threeDElements){i=this.comp.threeDElements.length;var _e,$,et;for(s=0;s<i;s+=1)if(_e=this.comp.threeDElements[s],_e.type==="3d"){if(_){var it=this.mat.toCSS();et=_e.container.style,et.transform=it,et.webkitTransform=it}this.pe._mdf&&($=_e.perspectiveElem.style,$.perspective=this.pe.v+"px",$.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,s,i){this.assetData=s.getAssetData(e.refId),this.initElement(e,s,i)}extendPrototype([BaseElement,TransformElement,HBaseElement,HSolidElement,HierarchyElement,FrameElement,RenderableElement],HImageElement),HImageElement.prototype.createContent=function(){var e=this.globalData.getAssetsPath(this.assetData),s=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(s),s.crossOrigin="anonymous",s.src=e,this.data.ln&&this.baseElement.setAttribute("id",this.data.ln)};function HybridRendererBase(e,s){this.animationItem=e,this.layers=null,this.renderedFrame=-1,this.renderConfig={className:s&&s.className||"",imagePreserveAspectRatio:s&&s.imagePreserveAspectRatio||"xMidYMid slice",hideOnTransparent:!(s&&s.hideOnTransparent===!1),filterSize:{width:s&&s.filterSize&&s.filterSize.width||"400%",height:s&&s.filterSize&&s.filterSize.height||"400%",x:s&&s.filterSize&&s.filterSize.x||"-100%",y:s&&s.filterSize&&s.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,s){var i=e.getBaseElement();if(i){var o=this.layers[s];if(!o.ddd||!this.supports3d)if(this.threeDElements)this.addTo3dContainer(i,s);else{for(var a=0,c,d,h;a<s;)this.elements[a]&&this.elements[a]!==!0&&this.elements[a].getBaseElement&&(d=this.elements[a],h=this.layers[a].ddd?this.getThreeDContainerByPos(a):d.getBaseElement(),c=h||c),a+=1;c?(!o.ddd||!this.supports3d)&&this.layerElement.insertBefore(i,c):(!o.ddd||!this.supports3d)&&this.layerElement.appendChild(i)}else this.addTo3dContainer(i,s)}},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 s=0,i=this.threeDElements.length;s<i;){if(this.threeDElements[s].startPos<=e&&this.threeDElements[s].endPos>=e)return this.threeDElements[s].perspectiveElem;s+=1}return null},HybridRendererBase.prototype.createThreeDContainer=function(e,s){var i=createTag("div"),o,a;styleDiv(i);var c=createTag("div");if(styleDiv(c),s==="3d"){o=i.style,o.width=this.globalData.compSize.w+"px",o.height=this.globalData.compSize.h+"px";var d="50% 50%";o.webkitTransformOrigin=d,o.mozTransformOrigin=d,o.transformOrigin=d,a=c.style;var h="matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1)";a.transform=h,a.webkitTransform=h}i.appendChild(c);var g={container:c,perspectiveElem:i,startPos:e,endPos:e,type:s};return this.threeDElements.push(g),g},HybridRendererBase.prototype.build3dContainers=function(){var e,s=this.layers.length,i,o="";for(e=0;e<s;e+=1)this.layers[e].ddd&&this.layers[e].ty!==3?(o!=="3d"&&(o="3d",i=this.createThreeDContainer(e,"3d")),i.endPos=Math.max(i.endPos,e)):(o!=="2d"&&(o="2d",i=this.createThreeDContainer(e,"2d")),i.endPos=Math.max(i.endPos,e));for(s=this.threeDElements.length,e=s-1;e>=0;e-=1)this.resizerElem.appendChild(this.threeDElements[e].perspectiveElem)},HybridRendererBase.prototype.addTo3dContainer=function(e,s){for(var i=0,o=this.threeDElements.length;i<o;){if(s<=this.threeDElements[i].endPos){for(var a=this.threeDElements[i].startPos,c;a<s;)this.elements[a]&&this.elements[a].getBaseElement&&(c=this.elements[a].getBaseElement()),a+=1;c?this.threeDElements[i].container.insertBefore(e,c):this.threeDElements[i].container.appendChild(e);break}i+=1}},HybridRendererBase.prototype.configAnimation=function(e){var s=createTag("div"),i=this.animationItem.wrapper,o=s.style;o.width=e.w+"px",o.height=e.h+"px",this.resizerElem=s,styleDiv(s),o.transformStyle="flat",o.mozTransformStyle="flat",o.webkitTransformStyle="flat",this.renderConfig.className&&s.setAttribute("class",this.renderConfig.className),i.appendChild(s),o.overflow="hidden";var a=createNS("svg");a.setAttribute("width","1"),a.setAttribute("height","1"),styleDiv(a),this.resizerElem.appendChild(a);var c=createNS("defs");a.appendChild(c),this.data=e,this.setupGlobalData(e,a),this.globalData.defs=c,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,s=this.layers?this.layers.length:0;for(e=0;e<s;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,s=this.animationItem.wrapper.offsetHeight,i=e/s,o=this.globalData.compSize.w/this.globalData.compSize.h,a,c,d,h;o>i?(a=e/this.globalData.compSize.w,c=e/this.globalData.compSize.w,d=0,h=(s-this.globalData.compSize.h*(e/this.globalData.compSize.w))/2):(a=s/this.globalData.compSize.h,c=s/this.globalData.compSize.h,d=(e-this.globalData.compSize.w*(s/this.globalData.compSize.h))/2,h=0);var g=this.resizerElem.style;g.webkitTransform="matrix3d("+a+",0,0,0,0,"+c+",0,0,0,0,1,0,"+d+","+h+",0,1)",g.transform=g.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,s=this.globalData.compSize.h,i,o=this.threeDElements.length;for(i=0;i<o;i+=1){var a=this.threeDElements[i].perspectiveElem.style;a.webkitPerspective=Math.sqrt(Math.pow(e,2)+Math.pow(s,2))+"px",a.perspective=a.webkitPerspective}}},HybridRendererBase.prototype.searchExtraCompositions=function(e){var s,i=e.length,o=createTag("div");for(s=0;s<i;s+=1)if(e[s].xt){var a=this.createComp(e[s],o,this.globalData.comp,null);a.initExpressions(),this.globalData.projectInterface.registerComposition(a)}};function HCompElement(e,s,i){this.layers=e.layers,this.supports3d=!e.hasMask,this.completeLayers=!1,this.pendingElements=[],this.elements=this.layers?createSizedArray(this.layers.length):[],this.initElement(e,s,i),this.tm=e.tm?PropertyFactory.getProp(this,e.tm,0,s.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,s){for(var i=0,o;i<s;)this.elements[i]&&this.elements[i].getBaseElement&&(o=this.elements[i].getBaseElement()),i+=1;o?this.layerElement.insertBefore(e,o):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,s){this.animationItem=e,this.layers=null,this.renderedFrame=-1,this.renderConfig={className:s&&s.className||"",imagePreserveAspectRatio:s&&s.imagePreserveAspectRatio||"xMidYMid slice",hideOnTransparent:!(s&&s.hideOnTransparent===!1),filterSize:{width:s&&s.filterSize&&s.filterSize.width||"400%",height:s&&s.filterSize&&s.filterSize.height||"400%",x:s&&s.filterSize&&s.filterSize.x||"-100%",y:s&&s.filterSize&&s.filterSize.y||"-100%"},runExpressions:!s||s.runExpressions===void 0||s.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 s(i){for(var o=0,a=e.layers.length;o<a;){if(e.layers[o].nm===i||e.layers[o].ind===i)return e.elements[o].layerInterface;o+=1}return null}return Object.defineProperty(s,"_name",{value:e.data.nm}),s.layer=s,s.pixelAspect=1,s.height=e.data.h||e.globalData.compSize.h,s.width=e.data.w||e.globalData.compSize.w,s.pixelAspect=1,s.frameDuration=1/e.globalData.frameRate,s.displayStartTime=0,s.numLayers=e.layers.length,s}}();function _typeof$2(e){"@babel/helpers - typeof";return _typeof$2=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(s){return typeof s}:function(s){return s&&typeof Symbol=="function"&&s.constructor===Symbol&&s!==Symbol.prototype?"symbol":typeof s},_typeof$2(e)}function seedRandom(e,s){var i=this,o=256,a=6,c=52,d="random",h=s.pow(o,a),g=s.pow(2,c),b=g*2,_=o-1,_e;function $(nt,at,ct){var dt=[];at=at===!0?{entropy:!0}:at||{};var pt=lt(rt(at.entropy?[nt,ot(e)]:nt===null?st():nt,3),dt),mt=new et(dt),St=function(){for(var Mt=mt.g(a),Ct=h,Nt=0;Mt<g;)Mt=(Mt+Nt)*o,Ct*=o,Nt=mt.g(1);for(;Mt>=b;)Mt/=2,Ct/=2,Nt>>>=1;return(Mt+Nt)/Ct};return St.int32=function(){return mt.g(4)|0},St.quick=function(){return mt.g(4)/4294967296},St.double=St,lt(ot(mt.S),e),(at.pass||ct||function(Pt,Mt,Ct,Nt){return Nt&&(Nt.S&&it(Nt,mt),Pt.state=function(){return it(mt,{})}),Ct?(s[d]=Pt,Mt):Pt})(St,pt,"global"in at?at.global:this==s,at.state)}s["seed"+d]=$;function et(nt){var at,ct=nt.length,dt=this,pt=0,mt=dt.i=dt.j=0,St=dt.S=[];for(ct||(nt=[ct++]);pt<o;)St[pt]=pt++;for(pt=0;pt<o;pt++)St[pt]=St[mt=_&mt+nt[pt%ct]+(at=St[pt])],St[mt]=at;dt.g=function(Pt){for(var Mt,Ct=0,Nt=dt.i,kt=dt.j,At=dt.S;Pt--;)Mt=At[Nt=_&Nt+1],Ct=Ct*o+At[_&(At[Nt]=At[kt=_&kt+Mt])+(At[kt]=Mt)];return dt.i=Nt,dt.j=kt,Ct}}function it(nt,at){return at.i=nt.i,at.j=nt.j,at.S=nt.S.slice(),at}function rt(nt,at){var ct=[],dt=_typeof$2(nt),pt;if(at&&dt=="object")for(pt in nt)try{ct.push(rt(nt[pt],at-1))}catch{}return ct.length?ct:dt=="string"?nt:nt+"\0"}function lt(nt,at){for(var ct=nt+"",dt,pt=0;pt<ct.length;)at[_&pt]=_&(dt^=at[_&pt]*19)+ct.charCodeAt(pt++);return ot(at)}function st(){try{var nt=new Uint8Array(o);return(i.crypto||i.msCrypto).getRandomValues(nt),ot(nt)}catch{var at=i.navigator,ct=at&&at.plugins;return[+new Date,i,ct,i.screen,ot(e)]}}function ot(nt){return String.fromCharCode.apply(0,nt)}lt(s.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(s){return typeof s}:function(s){return s&&typeof Symbol=="function"&&s.constructor===Symbol&&s!==Symbol.prototype?"symbol":typeof s},_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,s){return e==="number"||s instanceof Number||e==="boolean"||e==="string"}function $bm_neg(e){var s=_typeof$1(e);if(s==="number"||e instanceof Number||s==="boolean")return-e;if($bm_isInstanceOfArray(e)){var i,o=e.length,a=[];for(i=0;i<o;i+=1)a[i]=-e[i];return a}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,s){var i=_typeof$1(e),o=_typeof$1(s);if(isNumerable(i,e)&&isNumerable(o,s)||i==="string"||o==="string")return e+s;if($bm_isInstanceOfArray(e)&&isNumerable(o,s))return e=e.slice(0),e[0]+=s,e;if(isNumerable(i,e)&&$bm_isInstanceOfArray(s))return s=s.slice(0),s[0]=e+s[0],s;if($bm_isInstanceOfArray(e)&&$bm_isInstanceOfArray(s)){for(var a=0,c=e.length,d=s.length,h=[];a<c||a<d;)(typeof e[a]=="number"||e[a]instanceof Number)&&(typeof s[a]=="number"||s[a]instanceof Number)?h[a]=e[a]+s[a]:h[a]=s[a]===void 0?e[a]:e[a]||s[a],a+=1;return h}return 0}var add=sum;function sub(e,s){var i=_typeof$1(e),o=_typeof$1(s);if(isNumerable(i,e)&&isNumerable(o,s))return i==="string"&&(e=parseInt(e,10)),o==="string"&&(s=parseInt(s,10)),e-s;if($bm_isInstanceOfArray(e)&&isNumerable(o,s))return e=e.slice(0),e[0]-=s,e;if(isNumerable(i,e)&&$bm_isInstanceOfArray(s))return s=s.slice(0),s[0]=e-s[0],s;if($bm_isInstanceOfArray(e)&&$bm_isInstanceOfArray(s)){for(var a=0,c=e.length,d=s.length,h=[];a<c||a<d;)(typeof e[a]=="number"||e[a]instanceof Number)&&(typeof s[a]=="number"||s[a]instanceof Number)?h[a]=e[a]-s[a]:h[a]=s[a]===void 0?e[a]:e[a]||s[a],a+=1;return h}return 0}function mul(e,s){var i=_typeof$1(e),o=_typeof$1(s),a;if(isNumerable(i,e)&&isNumerable(o,s))return e*s;var c,d;if($bm_isInstanceOfArray(e)&&isNumerable(o,s)){for(d=e.length,a=createTypedArray("float32",d),c=0;c<d;c+=1)a[c]=e[c]*s;return a}if(isNumerable(i,e)&&$bm_isInstanceOfArray(s)){for(d=s.length,a=createTypedArray("float32",d),c=0;c<d;c+=1)a[c]=e*s[c];return a}return 0}function div(e,s){var i=_typeof$1(e),o=_typeof$1(s),a;if(isNumerable(i,e)&&isNumerable(o,s))return e/s;var c,d;if($bm_isInstanceOfArray(e)&&isNumerable(o,s)){for(d=e.length,a=createTypedArray("float32",d),c=0;c<d;c+=1)a[c]=e[c]/s;return a}if(isNumerable(i,e)&&$bm_isInstanceOfArray(s)){for(d=s.length,a=createTypedArray("float32",d),c=0;c<d;c+=1)a[c]=e/s[c];return a}return 0}function mod(e,s){return typeof e=="string"&&(e=parseInt(e,10)),typeof s=="string"&&(s=parseInt(s,10)),e%s}var $bm_sum=sum,$bm_sub=sub,$bm_mul=mul,$bm_div=div,$bm_mod=mod;function clamp(e,s,i){if(s>i){var o=i;i=s,s=o}return Math.min(Math.max(e,s),i)}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,s){if(typeof e=="number"||e instanceof Number)return s=s||0,Math.abs(e-s);s||(s=helperLengthArray);var i,o=Math.min(e.length,s.length),a=0;for(i=0;i<o;i+=1)a+=Math.pow(s[i]-e[i],2);return Math.sqrt(a)}function normalize(e){return div(e,length(e))}function rgbToHsl(e){var s=e[0],i=e[1],o=e[2],a=Math.max(s,i,o),c=Math.min(s,i,o),d,h,g=(a+c)/2;if(a===c)d=0,h=0;else{var b=a-c;switch(h=g>.5?b/(2-a-c):b/(a+c),a){case s:d=(i-o)/b+(i<o?6:0);break;case i:d=(o-s)/b+2;break;case o:d=(s-i)/b+4;break}d/=6}return[d,h,g,e[3]]}function hue2rgb(e,s,i){return i<0&&(i+=1),i>1&&(i-=1),i<1/6?e+(s-e)*6*i:i<1/2?s:i<2/3?e+(s-e)*(2/3-i)*6:e}function hslToRgb(e){var s=e[0],i=e[1],o=e[2],a,c,d;if(i===0)a=o,d=o,c=o;else{var h=o<.5?o*(1+i):o+i-o*i,g=2*o-h;a=hue2rgb(g,h,s+1/3),c=hue2rgb(g,h,s),d=hue2rgb(g,h,s-1/3)}return[a,c,d,e[3]]}function linear(e,s,i,o,a){if((o===void 0||a===void 0)&&(o=s,a=i,s=0,i=1),i<s){var c=i;i=s,s=c}if(e<=s)return o;if(e>=i)return a;var d=i===s?0:(e-s)/(i-s);if(!o.length)return o+(a-o)*d;var h,g=o.length,b=createTypedArray("float32",g);for(h=0;h<g;h+=1)b[h]=o[h]+(a[h]-o[h])*d;return b}function random(e,s){if(s===void 0&&(e===void 0?(e=0,s=1):(s=e,e=void 0)),s.length){var i,o=s.length;e||(e=createTypedArray("float32",o));var a=createTypedArray("float32",o),c=BMMath.random();for(i=0;i<o;i+=1)a[i]=e[i]+c*(s[i]-e[i]);return a}e===void 0&&(e=0);var d=BMMath.random();return e+d*(s-e)}function createPath(e,s,i,o){var a,c=e.length,d=shapePool.newElement();d.setPathData(!!o,c);var h=[0,0],g,b;for(a=0;a<c;a+=1)g=s&&s[a]?s[a]:h,b=i&&i[a]?i[a]:h,d.setTripleAt(e[a][0],e[a][1],b[0]+e[a][0],b[1]+e[a][1],g[0]+e[a][0],g[1]+e[a][1],a,!0);return d}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(s,i){var o,a,c=this.pv.length?this.pv.length:1,d=createTypedArray("float32",c);s=5;var h=Math.floor(time*s);for(o=0,a=0;o<h;){for(a=0;a<c;a+=1)d[a]+=-i+i*2*BMMath.random();o+=1}var g=time*s,b=g-Math.floor(g),_=createTypedArray("float32",c);if(c>1){for(a=0;a<c;a+=1)_[a]=this.pv[a]+d[a]+(-i+i*2*BMMath.random())*b;return _}return this.pv+d[0]+(-i+i*2*BMMath.random())*b}).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,s){return loopIn(e,s,!0)}function loopOutDuration(e,s){return loopOut(e,s,!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,s){var i=[s[0]-e[0],s[1]-e[1],s[2]-e[2]],o=Math.atan2(i[0],Math.sqrt(i[1]*i[1]+i[2]*i[2]))/degToRads,a=-Math.atan2(i[1],i[2])/degToRads;return[a,o,0]}function easeOut(e,s,i,o,a){return applyEase(easeOutBez,e,s,i,o,a)}function easeIn(e,s,i,o,a){return applyEase(easeInBez,e,s,i,o,a)}function ease(e,s,i,o,a){return applyEase(easeInOutBez,e,s,i,o,a)}function applyEase(e,s,i,o,a,c){a===void 0?(a=i,c=o):s=(s-i)/(o-i),s>1?s=1:s<0&&(s=0);var d=e(s);if($bm_isInstanceOfArray(a)){var h,g=a.length,b=createTypedArray("float32",g);for(h=0;h<g;h+=1)b[h]=(c[h]-a[h])*d+a[h];return b}return(c-a)*d+a}function nearestKey(e){var s,i=data.k.length,o,a;if(!data.k.length||typeof data.k[0]=="number")o=0,a=0;else if(o=-1,e*=elem.comp.globalData.frameRate,e<data.k[0].t)o=1,a=data.k[0].t;else{for(s=0;s<i-1;s+=1)if(e===data.k[s].t){o=s+1,a=data.k[s].t;break}else if(e>data.k[s].t&&e<data.k[s+1].t){e-data.k[s].t>data.k[s+1].t-e?(o=s+2,a=data.k[s+1].t):(o=s+1,a=data.k[s].t);break}o===-1&&(o=s+1,a=data.k[s].t)}var c={};return c.index=o,c.time=a/elem.comp.globalData.frameRate,c}function key(e){var s,i,o;if(!data.k.length||typeof data.k[0]=="number")throw new Error("The property has no keyframe at index "+e);e-=1,s={time:data.k[e].t/elem.comp.globalData.frameRate,value:[]};var a=Object.prototype.hasOwnProperty.call(data.k[e],"s")?data.k[e].s:data.k[e-1].e;for(o=a.length,i=0;i<o;i+=1)s[i]=a[i],s.value[i]=a[i];return s}function framesToTime(e,s){return s||(s=elem.comp.globalData.frameRate),e/s}function timeToFrames(e,s){return!e&&e!==0&&(e=time),s||(s=elem.comp.globalData.frameRate),e*s}function seedRandom(e){BMMath.seedrandom(randSeed+e)}function sourceRectAtTime(){return elem.sourceRectAtTime()}function substring(e,s){return typeof value=="string"?s===void 0?value.substring(e):value.substring(e,s):""}function substr(e,s){return typeof value=="string"?s===void 0?value.substr(e):value.substr(e,s):""}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=s,e.resetFrame=ExpressionManager.resetFrame;function s(i){var o=0,a=[];function c(){o+=1}function d(){o-=1,o===0&&g()}function h(b){a.indexOf(b)===-1&&a.push(b)}function g(){var b,_=a.length;for(b=0;b<_;b+=1)a[b].release();a.length=0}i.renderer.compInterface=CompExpressionInterface(i.renderer),i.renderer.globalData.projectInterface.registerComposition(i.renderer),i.renderer.globalData.pushExpression=c,i.renderer.globalData.popExpression=d,i.renderer.globalData.registerExpressionProperty=h}return e}(),MaskManagerInterface=function(){function e(i,o){this._mask=i,this._data=o}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 s=function(o){var a=createSizedArray(o.viewData.length),c,d=o.viewData.length;for(c=0;c<d;c+=1)a[c]=new e(o.viewData[c],o.masksProperties[c]);var h=function(b){for(c=0;c<d;){if(o.masksProperties[c].nm===b)return a[c];c+=1}return null};return h};return s}(),ExpressionPropertyInterface=function(){var e={pv:0,v:0,mult:1},s={pv:[0,0,0],v:[0,0,0],mult:1};function i(d,h,g){Object.defineProperty(d,"velocity",{get:function(){return h.getVelocityAtTime(h.comp.currentFrame)}}),d.numKeys=h.keyframes?h.keyframes.length:0,d.key=function(b){if(!d.numKeys)return 0;var _="";"s"in h.keyframes[b-1]?_=h.keyframes[b-1].s:"e"in h.keyframes[b-2]?_=h.keyframes[b-2].e:_=h.keyframes[b-2].s;var _e=g==="unidimensional"?new Number(_):Object.assign({},_);return _e.time=h.keyframes[b-1].t/h.elem.comp.globalData.frameRate,_e.value=g==="unidimensional"?_[0]:_,_e},d.valueAtTime=h.getValueAtTime,d.speedAtTime=h.getSpeedAtTime,d.velocityAtTime=h.getVelocityAtTime,d.propertyGroup=h.propertyGroup}function o(d){(!d||!("pv"in d))&&(d=e);var h=1/d.mult,g=d.pv*h,b=new Number(g);return b.value=g,i(b,d,"unidimensional"),function(){return d.k&&d.getValue(),g=d.v*h,b.value!==g&&(b=new Number(g),b.value=g,b[0]=g,i(b,d,"unidimensional")),b}}function a(d){(!d||!("pv"in d))&&(d=s);var h=1/d.mult,g=d.data&&d.data.l||d.pv.length,b=createTypedArray("float32",g),_=createTypedArray("float32",g);return b.value=_,i(b,d,"multidimensional"),function(){d.k&&d.getValue();for(var _e=0;_e<g;_e+=1)_[_e]=d.v[_e]*h,b[_e]=_[_e];return b}}function c(){return e}return function(d){return d?d.propType==="unidimensional"?o(d):a(d):c}}(),TransformExpressionInterface=function(){return function(e){function s(d){switch(d){case"scale":case"Scale":case"ADBE Scale":case 6:return s.scale;case"rotation":case"Rotation":case"ADBE Rotation":case"ADBE Rotate Z":case 10:return s.rotation;case"ADBE Rotate X":return s.xRotation;case"ADBE Rotate Y":return s.yRotation;case"position":case"Position":case"ADBE Position":case 2:return s.position;case"ADBE Position_0":return s.xPosition;case"ADBE Position_1":return s.yPosition;case"ADBE Position_2":return s.zPosition;case"anchorPoint":case"AnchorPoint":case"Anchor Point":case"ADBE AnchorPoint":case 1:return s.anchorPoint;case"opacity":case"Opacity":case 11:return s.opacity;default:return null}}Object.defineProperty(s,"rotation",{get:ExpressionPropertyInterface(e.r||e.rz)}),Object.defineProperty(s,"zRotation",{get:ExpressionPropertyInterface(e.rz||e.r)}),Object.defineProperty(s,"xRotation",{get:ExpressionPropertyInterface(e.rx)}),Object.defineProperty(s,"yRotation",{get:ExpressionPropertyInterface(e.ry)}),Object.defineProperty(s,"scale",{get:ExpressionPropertyInterface(e.s)});var i,o,a,c;return e.p?c=ExpressionPropertyInterface(e.p):(i=ExpressionPropertyInterface(e.px),o=ExpressionPropertyInterface(e.py),e.pz&&(a=ExpressionPropertyInterface(e.pz))),Object.defineProperty(s,"position",{get:function(){return e.p?c():[i(),o(),a?a():0]}}),Object.defineProperty(s,"xPosition",{get:ExpressionPropertyInterface(e.px)}),Object.defineProperty(s,"yPosition",{get:ExpressionPropertyInterface(e.py)}),Object.defineProperty(s,"zPosition",{get:ExpressionPropertyInterface(e.pz)}),Object.defineProperty(s,"anchorPoint",{get:ExpressionPropertyInterface(e.a)}),Object.defineProperty(s,"opacity",{get:ExpressionPropertyInterface(e.o)}),Object.defineProperty(s,"skew",{get:ExpressionPropertyInterface(e.sk)}),Object.defineProperty(s,"skewAxis",{get:ExpressionPropertyInterface(e.sa)}),Object.defineProperty(s,"orientation",{get:ExpressionPropertyInterface(e.or)}),s}}(),LayerExpressionInterface=function(){function e(b){var _=new Matrix;if(b!==void 0){var _e=this._elem.finalTransform.mProp.getValueAtTime(b);_e.clone(_)}else{var $=this._elem.finalTransform.mProp;$.applyToMatrix(_)}return _}function s(b,_){var _e=this.getMatrix(_);return _e.props[12]=0,_e.props[13]=0,_e.props[14]=0,this.applyPoint(_e,b)}function i(b,_){var _e=this.getMatrix(_);return this.applyPoint(_e,b)}function o(b,_){var _e=this.getMatrix(_);return _e.props[12]=0,_e.props[13]=0,_e.props[14]=0,this.invertPoint(_e,b)}function a(b,_){var _e=this.getMatrix(_);return this.invertPoint(_e,b)}function c(b,_){if(this._elem.hierarchy&&this._elem.hierarchy.length){var _e,$=this._elem.hierarchy.length;for(_e=0;_e<$;_e+=1)this._elem.hierarchy[_e].finalTransform.mProp.applyToMatrix(b)}return b.applyToPointArray(_[0],_[1],_[2]||0)}function d(b,_){if(this._elem.hierarchy&&this._elem.hierarchy.length){var _e,$=this._elem.hierarchy.length;for(_e=0;_e<$;_e+=1)this._elem.hierarchy[_e].finalTransform.mProp.applyToMatrix(b)}return b.inversePoint(_)}function h(b){var _=new Matrix;if(_.reset(),this._elem.finalTransform.mProp.applyToMatrix(_),this._elem.hierarchy&&this._elem.hierarchy.length){var _e,$=this._elem.hierarchy.length;for(_e=0;_e<$;_e+=1)this._elem.hierarchy[_e].finalTransform.mProp.applyToMatrix(_);return _.inversePoint(b)}return _.inversePoint(b)}function g(){return[1,1,1,1]}return function(b){var _;function _e(rt){et.mask=new MaskManagerInterface(rt,b)}function $(rt){et.effect=rt}function et(rt){switch(rt){case"ADBE Root Vectors Group":case"Contents":case 2:return et.shapeInterface;case 1:case 6:case"Transform":case"transform":case"ADBE Transform Group":return _;case 4:case"ADBE Effect Parade":case"effects":case"Effects":return et.effect;case"ADBE Text Properties":return et.textInterface;default:return null}}et.getMatrix=e,et.invertPoint=d,et.applyPoint=c,et.toWorld=i,et.toWorldVec=s,et.fromWorld=a,et.fromWorldVec=o,et.toComp=i,et.fromComp=h,et.sampleImage=g,et.sourceRectAtTime=b.sourceRectAtTime.bind(b),et._elem=b,_=TransformExpressionInterface(b.finalTransform.mProp);var it=getDescriptor(_,"anchorPoint");return Object.defineProperties(et,{hasParent:{get:function(){return b.hierarchy.length}},parent:{get:function(){return b.hierarchy[0].layerInterface}},rotation:getDescriptor(_,"rotation"),scale:getDescriptor(_,"scale"),position:getDescriptor(_,"position"),opacity:getDescriptor(_,"opacity"),anchorPoint:it,anchor_point:it,transform:{get:function(){return _}},active:{get:function(){return b.isInRange}}}),et.startTime=b.data.st,et.index=b.data.ind,et.source=b.data.refId,et.height=b.data.ty===0?b.data.h:100,et.width=b.data.ty===0?b.data.w:100,et.inPoint=b.data.ip/b.comp.globalData.frameRate,et.outPoint=b.data.op/b.comp.globalData.frameRate,et._name=b.data.nm,et.registerMaskInterface=_e,et.registerEffectsInterface=$,et}}(),propertyGroupFactory=function(){return function(e,s){return function(i){return i=i===void 0?1:i,i<=0?e:s(i-1)}}}(),PropertyInterface=function(){return function(e,s){var i={_name:e};function o(a){return a=a===void 0?1:a,a<=0?i:s(a-1)}return o}}(),EffectsExpressionInterface=function(){var e={createEffectsInterface:s};function s(a,c){if(a.effectsManager){var d=[],h=a.data.ef,g,b=a.effectsManager.effectElements.length;for(g=0;g<b;g+=1)d.push(i(h[g],a.effectsManager.effectElements[g],c,a));var _=a.data.ef||[],_e=function(et){for(g=0,b=_.length;g<b;){if(et===_[g].nm||et===_[g].mn||et===_[g].ix)return d[g];g+=1}return null};return Object.defineProperty(_e,"numProperties",{get:function(){return _.length}}),_e}return null}function i(a,c,d,h){function g(et){for(var it=a.ef,rt=0,lt=it.length;rt<lt;){if(et===it[rt].nm||et===it[rt].mn||et===it[rt].ix)return it[rt].ty===5?_[rt]:_[rt]();rt+=1}throw new Error}var b=propertyGroupFactory(g,d),_=[],_e,$=a.ef.length;for(_e=0;_e<$;_e+=1)a.ef[_e].ty===5?_.push(i(a.ef[_e],c.effectElements[_e],c.effectElements[_e].propertyGroup,h)):_.push(o(c.effectElements[_e],a.ef[_e].ty,h,b));return a.mn==="ADBE Color Control"&&Object.defineProperty(g,"color",{get:function(){return _[0]()}}),Object.defineProperties(g,{numProperties:{get:function(){return a.np}},_name:{value:a.nm},propertyGroup:{value:b}}),g.enabled=a.en!==0,g.active=g.enabled,g}function o(a,c,d,h){var g=ExpressionPropertyInterface(a.p);function b(){return c===10?d.comp.compInterface(a.p.v):g()}return a.p.setGroupProperty&&a.p.setGroupProperty(PropertyInterface("",h)),b}return e}(),ShapePathInterface=function(){return function(s,i,o){var a=i.sh;function c(h){return h==="Shape"||h==="shape"||h==="Path"||h==="path"||h==="ADBE Vector Shape"||h===2?c.path:null}var d=propertyGroupFactory(c,o);return a.setGroupProperty(PropertyInterface("Path",d)),Object.defineProperties(c,{path:{get:function(){return a.k&&a.getValue(),a}},shape:{get:function(){return a.k&&a.getValue(),a}},_name:{value:s.nm},ix:{value:s.ix},propertyIndex:{value:s.ix},mn:{value:s.mn},propertyGroup:{value:o}}),c}}(),ShapeExpressionInterface=function(){function e(it,rt,lt){var st=[],ot,nt=it?it.length:0;for(ot=0;ot<nt;ot+=1)it[ot].ty==="gr"?st.push(i(it[ot],rt[ot],lt)):it[ot].ty==="fl"?st.push(o(it[ot],rt[ot],lt)):it[ot].ty==="st"?st.push(d(it[ot],rt[ot],lt)):it[ot].ty==="tm"?st.push(h(it[ot],rt[ot],lt)):it[ot].ty==="tr"||(it[ot].ty==="el"?st.push(b(it[ot],rt[ot],lt)):it[ot].ty==="sr"?st.push(_(it[ot],rt[ot],lt)):it[ot].ty==="sh"?st.push(ShapePathInterface(it[ot],rt[ot],lt)):it[ot].ty==="rc"?st.push(_e(it[ot],rt[ot],lt)):it[ot].ty==="rd"?st.push($(it[ot],rt[ot],lt)):it[ot].ty==="rp"?st.push(et(it[ot],rt[ot],lt)):it[ot].ty==="gf"?st.push(a(it[ot],rt[ot],lt)):st.push(c(it[ot],rt[ot])));return st}function s(it,rt,lt){var st,ot=function(ct){for(var dt=0,pt=st.length;dt<pt;){if(st[dt]._name===ct||st[dt].mn===ct||st[dt].propertyIndex===ct||st[dt].ix===ct||st[dt].ind===ct)return st[dt];dt+=1}return typeof ct=="number"?st[ct-1]:null};ot.propertyGroup=propertyGroupFactory(ot,lt),st=e(it.it,rt.it,ot.propertyGroup),ot.numProperties=st.length;var nt=g(it.it[it.it.length-1],rt.it[rt.it.length-1],ot.propertyGroup);return ot.transform=nt,ot.propertyIndex=it.cix,ot._name=it.nm,ot}function i(it,rt,lt){var st=function(ct){switch(ct){case"ADBE Vectors Group":case"Contents":case 2:return st.content;default:return st.transform}};st.propertyGroup=propertyGroupFactory(st,lt);var ot=s(it,rt,st.propertyGroup),nt=g(it.it[it.it.length-1],rt.it[rt.it.length-1],st.propertyGroup);return st.content=ot,st.transform=nt,Object.defineProperty(st,"_name",{get:function(){return it.nm}}),st.numProperties=it.np,st.propertyIndex=it.ix,st.nm=it.nm,st.mn=it.mn,st}function o(it,rt,lt){function st(ot){return ot==="Color"||ot==="color"?st.color:ot==="Opacity"||ot==="opacity"?st.opacity:null}return Object.defineProperties(st,{color:{get:ExpressionPropertyInterface(rt.c)},opacity:{get:ExpressionPropertyInterface(rt.o)},_name:{value:it.nm},mn:{value:it.mn}}),rt.c.setGroupProperty(PropertyInterface("Color",lt)),rt.o.setGroupProperty(PropertyInterface("Opacity",lt)),st}function a(it,rt,lt){function st(ot){return ot==="Start Point"||ot==="start point"?st.startPoint:ot==="End Point"||ot==="end point"?st.endPoint:ot==="Opacity"||ot==="opacity"?st.opacity:null}return Object.defineProperties(st,{startPoint:{get:ExpressionPropertyInterface(rt.s)},endPoint:{get:ExpressionPropertyInterface(rt.e)},opacity:{get:ExpressionPropertyInterface(rt.o)},type:{get:function(){return"a"}},_name:{value:it.nm},mn:{value:it.mn}}),rt.s.setGroupProperty(PropertyInterface("Start Point",lt)),rt.e.setGroupProperty(PropertyInterface("End Point",lt)),rt.o.setGroupProperty(PropertyInterface("Opacity",lt)),st}function c(){function it(){return null}return it}function d(it,rt,lt){var st=propertyGroupFactory(pt,lt),ot=propertyGroupFactory(dt,st);function nt(mt){Object.defineProperty(dt,it.d[mt].nm,{get:ExpressionPropertyInterface(rt.d.dataProps[mt].p)})}var at,ct=it.d?it.d.length:0,dt={};for(at=0;at<ct;at+=1)nt(at),rt.d.dataProps[at].p.setGroupProperty(ot);function pt(mt){return mt==="Color"||mt==="color"?pt.color:mt==="Opacity"||mt==="opacity"?pt.opacity:mt==="Stroke Width"||mt==="stroke width"?pt.strokeWidth:null}return Object.defineProperties(pt,{color:{get:ExpressionPropertyInterface(rt.c)},opacity:{get:ExpressionPropertyInterface(rt.o)},strokeWidth:{get:ExpressionPropertyInterface(rt.w)},dash:{get:function(){return dt}},_name:{value:it.nm},mn:{value:it.mn}}),rt.c.setGroupProperty(PropertyInterface("Color",st)),rt.o.setGroupProperty(PropertyInterface("Opacity",st)),rt.w.setGroupProperty(PropertyInterface("Stroke Width",st)),pt}function h(it,rt,lt){function st(nt){return nt===it.e.ix||nt==="End"||nt==="end"?st.end:nt===it.s.ix?st.start:nt===it.o.ix?st.offset:null}var ot=propertyGroupFactory(st,lt);return st.propertyIndex=it.ix,rt.s.setGroupProperty(PropertyInterface("Start",ot)),rt.e.setGroupProperty(PropertyInterface("End",ot)),rt.o.setGroupProperty(PropertyInterface("Offset",ot)),st.propertyIndex=it.ix,st.propertyGroup=lt,Object.defineProperties(st,{start:{get:ExpressionPropertyInterface(rt.s)},end:{get:ExpressionPropertyInterface(rt.e)},offset:{get:ExpressionPropertyInterface(rt.o)},_name:{value:it.nm}}),st.mn=it.mn,st}function g(it,rt,lt){function st(nt){return it.a.ix===nt||nt==="Anchor Point"?st.anchorPoint:it.o.ix===nt||nt==="Opacity"?st.opacity:it.p.ix===nt||nt==="Position"?st.position:it.r.ix===nt||nt==="Rotation"||nt==="ADBE Vector Rotation"?st.rotation:it.s.ix===nt||nt==="Scale"?st.scale:it.sk&&it.sk.ix===nt||nt==="Skew"?st.skew:it.sa&&it.sa.ix===nt||nt==="Skew Axis"?st.skewAxis:null}var ot=propertyGroupFactory(st,lt);return rt.transform.mProps.o.setGroupProperty(PropertyInterface("Opacity",ot)),rt.transform.mProps.p.setGroupProperty(PropertyInterface("Position",ot)),rt.transform.mProps.a.setGroupProperty(PropertyInterface("Anchor Point",ot)),rt.transform.mProps.s.setGroupProperty(PropertyInterface("Scale",ot)),rt.transform.mProps.r.setGroupProperty(PropertyInterface("Rotation",ot)),rt.transform.mProps.sk&&(rt.transform.mProps.sk.setGroupProperty(PropertyInterface("Skew",ot)),rt.transform.mProps.sa.setGroupProperty(PropertyInterface("Skew Angle",ot))),rt.transform.op.setGroupProperty(PropertyInterface("Opacity",ot)),Object.defineProperties(st,{opacity:{get:ExpressionPropertyInterface(rt.transform.mProps.o)},position:{get:ExpressionPropertyInterface(rt.transform.mProps.p)},anchorPoint:{get:ExpressionPropertyInterface(rt.transform.mProps.a)},scale:{get:ExpressionPropertyInterface(rt.transform.mProps.s)},rotation:{get:ExpressionPropertyInterface(rt.transform.mProps.r)},skew:{get:ExpressionPropertyInterface(rt.transform.mProps.sk)},skewAxis:{get:ExpressionPropertyInterface(rt.transform.mProps.sa)},_name:{value:it.nm}}),st.ty="tr",st.mn=it.mn,st.propertyGroup=lt,st}function b(it,rt,lt){function st(at){return it.p.ix===at?st.position:it.s.ix===at?st.size:null}var ot=propertyGroupFactory(st,lt);st.propertyIndex=it.ix;var nt=rt.sh.ty==="tm"?rt.sh.prop:rt.sh;return nt.s.setGroupProperty(PropertyInterface("Size",ot)),nt.p.setGroupProperty(PropertyInterface("Position",ot)),Object.defineProperties(st,{size:{get:ExpressionPropertyInterface(nt.s)},position:{get:ExpressionPropertyInterface(nt.p)},_name:{value:it.nm}}),st.mn=it.mn,st}function _(it,rt,lt){function st(at){return it.p.ix===at?st.position:it.r.ix===at?st.rotation:it.pt.ix===at?st.points:it.or.ix===at||at==="ADBE Vector Star Outer Radius"?st.outerRadius:it.os.ix===at?st.outerRoundness:it.ir&&(it.ir.ix===at||at==="ADBE Vector Star Inner Radius")?st.innerRadius:it.is&&it.is.ix===at?st.innerRoundness:null}var ot=propertyGroupFactory(st,lt),nt=rt.sh.ty==="tm"?rt.sh.prop:rt.sh;return st.propertyIndex=it.ix,nt.or.setGroupProperty(PropertyInterface("Outer Radius",ot)),nt.os.setGroupProperty(PropertyInterface("Outer Roundness",ot)),nt.pt.setGroupProperty(PropertyInterface("Points",ot)),nt.p.setGroupProperty(PropertyInterface("Position",ot)),nt.r.setGroupProperty(PropertyInterface("Rotation",ot)),it.ir&&(nt.ir.setGroupProperty(PropertyInterface("Inner Radius",ot)),nt.is.setGroupProperty(PropertyInterface("Inner Roundness",ot))),Object.defineProperties(st,{position:{get:ExpressionPropertyInterface(nt.p)},rotation:{get:ExpressionPropertyInterface(nt.r)},points:{get:ExpressionPropertyInterface(nt.pt)},outerRadius:{get:ExpressionPropertyInterface(nt.or)},outerRoundness:{get:ExpressionPropertyInterface(nt.os)},innerRadius:{get:ExpressionPropertyInterface(nt.ir)},innerRoundness:{get:ExpressionPropertyInterface(nt.is)},_name:{value:it.nm}}),st.mn=it.mn,st}function _e(it,rt,lt){function st(at){return it.p.ix===at?st.position:it.r.ix===at?st.roundness:it.s.ix===at||at==="Size"||at==="ADBE Vector Rect Size"?st.size:null}var ot=propertyGroupFactory(st,lt),nt=rt.sh.ty==="tm"?rt.sh.prop:rt.sh;return st.propertyIndex=it.ix,nt.p.setGroupProperty(PropertyInterface("Position",ot)),nt.s.setGroupProperty(PropertyInterface("Size",ot)),nt.r.setGroupProperty(PropertyInterface("Rotation",ot)),Object.defineProperties(st,{position:{get:ExpressionPropertyInterface(nt.p)},roundness:{get:ExpressionPropertyInterface(nt.r)},size:{get:ExpressionPropertyInterface(nt.s)},_name:{value:it.nm}}),st.mn=it.mn,st}function $(it,rt,lt){function st(at){return it.r.ix===at||at==="Round Corners 1"?st.radius:null}var ot=propertyGroupFactory(st,lt),nt=rt;return st.propertyIndex=it.ix,nt.rd.setGroupProperty(PropertyInterface("Radius",ot)),Object.defineProperties(st,{radius:{get:ExpressionPropertyInterface(nt.rd)},_name:{value:it.nm}}),st.mn=it.mn,st}function et(it,rt,lt){function st(at){return it.c.ix===at||at==="Copies"?st.copies:it.o.ix===at||at==="Offset"?st.offset:null}var ot=propertyGroupFactory(st,lt),nt=rt;return st.propertyIndex=it.ix,nt.c.setGroupProperty(PropertyInterface("Copies",ot)),nt.o.setGroupProperty(PropertyInterface("Offset",ot)),Object.defineProperties(st,{copies:{get:ExpressionPropertyInterface(nt.c)},offset:{get:ExpressionPropertyInterface(nt.o)},_name:{value:it.nm}}),st.mn=it.mn,st}return function(it,rt,lt){var st;function ot(at){if(typeof at=="number")return at=at===void 0?1:at,at===0?lt:st[at-1];for(var ct=0,dt=st.length;ct<dt;){if(st[ct]._name===at)return st[ct];ct+=1}return null}function nt(){return lt}return ot.propertyGroup=propertyGroupFactory(ot,nt),st=e(it,rt,ot.propertyGroup),ot.numProperties=st.length,ot._name="Contents",ot}}(),TextExpressionInterface=function(){return function(e){var s;function i(o){switch(o){case"ADBE Text Document":return i.sourceText;default:return null}}return Object.defineProperty(i,"sourceText",{get:function(){e.textProperty.getValue();var a=e.textProperty.currentData.t;return(!s||a!==s.value)&&(s=new String(a),s.value=a||new String(a),Object.defineProperty(s,"style",{get:function(){return{fillColor:e.textProperty.currentData.fc}}})),s}}),i}}();function _typeof(e){"@babel/helpers - typeof";return _typeof=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(s){return typeof s}:function(s){return s&&typeof Symbol=="function"&&s.constructor===Symbol&&s!==Symbol.prototype?"symbol":typeof s},_typeof(e)}var FootageInterface=function(){var e=function(o){var a="",c=o.getFootageData();function d(){return a="",c=o.getFootageData(),h}function h(g){if(c[g])return a=g,c=c[g],_typeof(c)==="object"?h:c;var b=g.indexOf(a);if(b!==-1){var _=parseInt(g.substr(b+a.length),10);return c=c[_],_typeof(c)==="object"?h:c}return""}return d},s=function(o){function a(c){return c==="Outline"?a.outlineInterface():null}return a._name="Outline",a.outlineInterface=e(o),a};return function(i){function o(a){return a==="Data"?o.dataInterface:null}return o._name="Data",o.dataInterface=s(i),o}}(),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(d,h,g){h.x&&(g.k=!0,g.x=!0,g.initiateExpression=ExpressionManager.initiateExpression,g.effectsSequence.push(g.initiateExpression(d,h,g).bind(g)))}function s(d){return d*=this.elem.globalData.frameRate,d-=this.offsetTime,d!==this._cachingAtTime.lastFrame&&(this._cachingAtTime.lastIndex=this._cachingAtTime.lastFrame<d?this._cachingAtTime.lastIndex:0,this._cachingAtTime.value=this.interpolateValue(d,this._cachingAtTime),this._cachingAtTime.lastFrame=d),this._cachingAtTime.value}function i(d){var h=-.01,g=this.getValueAtTime(d),b=this.getValueAtTime(d+h),_=0;if(g.length){var _e;for(_e=0;_e<g.length;_e+=1)_+=Math.pow(b[_e]-g[_e],2);_=Math.sqrt(_)*100}else _=0;return _}function o(d){if(this.vel!==void 0)return this.vel;var h=-.001,g=this.getValueAtTime(d),b=this.getValueAtTime(d+h),_;if(g.length){_=createTypedArray("float32",g.length);var _e;for(_e=0;_e<g.length;_e+=1)_[_e]=(b[_e]-g[_e])/h}else _=(b-g)/h;return _}function a(){return this.pv}function c(d){this.propertyGroup=d}return{searchExpressions:e,getSpeedAtTime:i,getVelocityAtTime:o,getValueAtTime:s,getStaticValueAtTime:a,setGroupProperty:c}}();function addPropertyDecorator(){function e($,et,it){if(!this.k||!this.keyframes)return this.pv;$=$?$.toLowerCase():"";var rt=this.comp.renderedFrame,lt=this.keyframes,st=lt[lt.length-1].t;if(rt<=st)return this.pv;var ot,nt;it?(et?ot=Math.abs(st-this.elem.comp.globalData.frameRate*et):ot=Math.max(0,st-this.elem.data.ip),nt=st-ot):((!et||et>lt.length-1)&&(et=lt.length-1),nt=lt[lt.length-1-et].t,ot=st-nt);var at,ct,dt;if($==="pingpong"){var pt=Math.floor((rt-nt)/ot);if(pt%2!==0)return this.getValueAtTime((ot-(rt-nt)%ot+nt)/this.comp.globalData.frameRate,0)}else if($==="offset"){var mt=this.getValueAtTime(nt/this.comp.globalData.frameRate,0),St=this.getValueAtTime(st/this.comp.globalData.frameRate,0),Pt=this.getValueAtTime(((rt-nt)%ot+nt)/this.comp.globalData.frameRate,0),Mt=Math.floor((rt-nt)/ot);if(this.pv.length){for(dt=new Array(mt.length),ct=dt.length,at=0;at<ct;at+=1)dt[at]=(St[at]-mt[at])*Mt+Pt[at];return dt}return(St-mt)*Mt+Pt}else if($==="continue"){var Ct=this.getValueAtTime(st/this.comp.globalData.frameRate,0),Nt=this.getValueAtTime((st-.001)/this.comp.globalData.frameRate,0);if(this.pv.length){for(dt=new Array(Ct.length),ct=dt.length,at=0;at<ct;at+=1)dt[at]=Ct[at]+(Ct[at]-Nt[at])*((rt-st)/this.comp.globalData.frameRate)/5e-4;return dt}return Ct+(Ct-Nt)*((rt-st)/.001)}return this.getValueAtTime(((rt-nt)%ot+nt)/this.comp.globalData.frameRate,0)}function s($,et,it){if(!this.k)return this.pv;$=$?$.toLowerCase():"";var rt=this.comp.renderedFrame,lt=this.keyframes,st=lt[0].t;if(rt>=st)return this.pv;var ot,nt;it?(et?ot=Math.abs(this.elem.comp.globalData.frameRate*et):ot=Math.max(0,this.elem.data.op-st),nt=st+ot):((!et||et>lt.length-1)&&(et=lt.length-1),nt=lt[et].t,ot=nt-st);var at,ct,dt;if($==="pingpong"){var pt=Math.floor((st-rt)/ot);if(pt%2===0)return this.getValueAtTime(((st-rt)%ot+st)/this.comp.globalData.frameRate,0)}else if($==="offset"){var mt=this.getValueAtTime(st/this.comp.globalData.frameRate,0),St=this.getValueAtTime(nt/this.comp.globalData.frameRate,0),Pt=this.getValueAtTime((ot-(st-rt)%ot+st)/this.comp.globalData.frameRate,0),Mt=Math.floor((st-rt)/ot)+1;if(this.pv.length){for(dt=new Array(mt.length),ct=dt.length,at=0;at<ct;at+=1)dt[at]=Pt[at]-(St[at]-mt[at])*Mt;return dt}return Pt-(St-mt)*Mt}else if($==="continue"){var Ct=this.getValueAtTime(st/this.comp.globalData.frameRate,0),Nt=this.getValueAtTime((st+.001)/this.comp.globalData.frameRate,0);if(this.pv.length){for(dt=new Array(Ct.length),ct=dt.length,at=0;at<ct;at+=1)dt[at]=Ct[at]+(Ct[at]-Nt[at])*(st-rt)/.001;return dt}return Ct+(Ct-Nt)*(st-rt)/.001}return this.getValueAtTime((ot-((st-rt)%ot+st))/this.comp.globalData.frameRate,0)}function i($,et){if(!this.k)return this.pv;if($=($||.4)*.5,et=Math.floor(et||5),et<=1)return this.pv;var it=this.comp.renderedFrame/this.comp.globalData.frameRate,rt=it-$,lt=it+$,st=et>1?(lt-rt)/(et-1):1,ot=0,nt=0,at;this.pv.length?at=createTypedArray("float32",this.pv.length):at=0;for(var ct;ot<et;){if(ct=this.getValueAtTime(rt+ot*st),this.pv.length)for(nt=0;nt<this.pv.length;nt+=1)at[nt]+=ct[nt];else at+=ct;ot+=1}if(this.pv.length)for(nt=0;nt<this.pv.length;nt+=1)at[nt]/=et;else at/=et;return at}function o($){this._transformCachingAtTime||(this._transformCachingAtTime={v:new Matrix});var et=this._transformCachingAtTime.v;if(et.cloneFromProps(this.pre.props),this.appliedTransformations<1){var it=this.a.getValueAtTime($);et.translate(-it[0]*this.a.mult,-it[1]*this.a.mult,it[2]*this.a.mult)}if(this.appliedTransformations<2){var rt=this.s.getValueAtTime($);et.scale(rt[0]*this.s.mult,rt[1]*this.s.mult,rt[2]*this.s.mult)}if(this.sk&&this.appliedTransformations<3){var lt=this.sk.getValueAtTime($),st=this.sa.getValueAtTime($);et.skewFromAxis(-lt*this.sk.mult,st*this.sa.mult)}if(this.r&&this.appliedTransformations<4){var ot=this.r.getValueAtTime($);et.rotate(-ot*this.r.mult)}else if(!this.r&&this.appliedTransformations<4){var nt=this.rz.getValueAtTime($),at=this.ry.getValueAtTime($),ct=this.rx.getValueAtTime($),dt=this.or.getValueAtTime($);et.rotateZ(-nt*this.rz.mult).rotateY(at*this.ry.mult).rotateX(ct*this.rx.mult).rotateZ(-dt[2]*this.or.mult).rotateY(dt[1]*this.or.mult).rotateX(dt[0]*this.or.mult)}if(this.data.p&&this.data.p.s){var pt=this.px.getValueAtTime($),mt=this.py.getValueAtTime($);if(this.data.p.z){var St=this.pz.getValueAtTime($);et.translate(pt*this.px.mult,mt*this.py.mult,-St*this.pz.mult)}else et.translate(pt*this.px.mult,mt*this.py.mult,0)}else{var Pt=this.p.getValueAtTime($);et.translate(Pt[0]*this.p.mult,Pt[1]*this.p.mult,-Pt[2]*this.p.mult)}return et}function a(){return this.v.clone(new Matrix)}var c=TransformPropertyFactory.getTransformProperty;TransformPropertyFactory.getTransformProperty=function($,et,it){var rt=c($,et,it);return rt.dynamicProperties.length?rt.getValueAtTime=o.bind(rt):rt.getValueAtTime=a.bind(rt),rt.setGroupProperty=expressionHelpers.setGroupProperty,rt};var d=PropertyFactory.getProp;PropertyFactory.getProp=function($,et,it,rt,lt){var st=d($,et,it,rt,lt);st.kf?st.getValueAtTime=expressionHelpers.getValueAtTime.bind(st):st.getValueAtTime=expressionHelpers.getStaticValueAtTime.bind(st),st.setGroupProperty=expressionHelpers.setGroupProperty,st.loopOut=e,st.loopIn=s,st.smooth=i,st.getVelocityAtTime=expressionHelpers.getVelocityAtTime.bind(st),st.getSpeedAtTime=expressionHelpers.getSpeedAtTime.bind(st),st.numKeys=et.a===1?et.k.length:0,st.propertyIndex=et.ix;var ot=0;return it!==0&&(ot=createTypedArray("float32",et.a===1?et.k[0].s.length:et.k.length)),st._cachingAtTime={lastFrame:initialDefaultFrame,lastIndex:0,value:ot},expressionHelpers.searchExpressions($,et,st),st.k&<.addDynamicProperty(st),st};function h($){return this._cachingAtTime||(this._cachingAtTime={shapeValue:shapePool.clone(this.pv),lastIndex:0,lastTime:initialDefaultFrame}),$*=this.elem.globalData.frameRate,$-=this.offsetTime,$!==this._cachingAtTime.lastTime&&(this._cachingAtTime.lastIndex=this._cachingAtTime.lastTime<$?this._caching.lastIndex:0,this._cachingAtTime.lastTime=$,this.interpolateShape($,this._cachingAtTime.shapeValue,this._cachingAtTime)),this._cachingAtTime.shapeValue}var g=ShapePropertyFactory.getConstructorFunction(),b=ShapePropertyFactory.getKeyframedConstructorFunction();function _(){}_.prototype={vertices:function(et,it){this.k&&this.getValue();var rt=this.v;it!==void 0&&(rt=this.getValueAtTime(it,0));var lt,st=rt._length,ot=rt[et],nt=rt.v,at=createSizedArray(st);for(lt=0;lt<st;lt+=1)et==="i"||et==="o"?at[lt]=[ot[lt][0]-nt[lt][0],ot[lt][1]-nt[lt][1]]:at[lt]=[ot[lt][0],ot[lt][1]];return at},points:function(et){return this.vertices("v",et)},inTangents:function(et){return this.vertices("i",et)},outTangents:function(et){return this.vertices("o",et)},isClosed:function(){return this.v.c},pointOnPath:function(et,it){var rt=this.v;it!==void 0&&(rt=this.getValueAtTime(it,0)),this._segmentsLength||(this._segmentsLength=bez.getSegmentsLength(rt));for(var lt=this._segmentsLength,st=lt.lengths,ot=lt.totalLength*et,nt=0,at=st.length,ct=0,dt;nt<at;){if(ct+st[nt].addedLength>ot){var pt=nt,mt=rt.c&&nt===at-1?0:nt+1,St=(ot-ct)/st[nt].addedLength;dt=bez.getPointInSegment(rt.v[pt],rt.v[mt],rt.o[pt],rt.i[mt],St,st[nt]);break}else ct+=st[nt].addedLength;nt+=1}return dt||(dt=rt.c?[rt.v[0][0],rt.v[0][1]]:[rt.v[rt._length-1][0],rt.v[rt._length-1][1]]),dt},vectorOnPath:function(et,it,rt){et==1?et=this.v.c:et==0&&(et=.999);var lt=this.pointOnPath(et,it),st=this.pointOnPath(et+.001,it),ot=st[0]-lt[0],nt=st[1]-lt[1],at=Math.sqrt(Math.pow(ot,2)+Math.pow(nt,2));if(at===0)return[0,0];var ct=rt==="tangent"?[ot/at,nt/at]:[-nt/at,ot/at];return ct},tangentOnPath:function(et,it){return this.vectorOnPath(et,it,"tangent")},normalOnPath:function(et,it){return this.vectorOnPath(et,it,"normal")},setGroupProperty:expressionHelpers.setGroupProperty,getValueAtTime:expressionHelpers.getStaticValueAtTime},extendPrototype([_],g),extendPrototype([_],b),b.prototype.getValueAtTime=h,b.prototype.initiateExpression=ExpressionManager.initiateExpression;var _e=ShapePropertyFactory.getShapeProp;ShapePropertyFactory.getShapeProp=function($,et,it,rt,lt){var st=_e($,et,it,rt,lt);return st.propertyIndex=et.ix,st.lock=!1,it===3?expressionHelpers.searchExpressions($,et.pt,st):it===4&&expressionHelpers.searchExpressions($,et.ks,st),st.k&&$.addDynamicProperty(st),st}}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(s,i){var o=this.calculateExpression(i);if(s.t!==o){var a={};return this.copyData(a,s),a.t=o.toString(),a.__complete=!1,a}return s},TextProperty.prototype.searchProperty=function(){var s=this.searchKeyframes(),i=this.searchExpressions();return this.kf=s||i,this.kf},TextProperty.prototype.searchExpressions=e}function initialize(){addDecorator()}function SVGComposableEffect(){}SVGComposableEffect.prototype={createMergeNode:function e(s,i){var o=createNS("feMerge");o.setAttribute("result",s);var a,c;for(c=0;c<i.length;c+=1)a=createNS("feMergeNode"),a.setAttribute("in",i[c]),o.appendChild(a),o.appendChild(a);return o}};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,s,i,o,a){this.filterManager=s;var c=createNS("feColorMatrix");c.setAttribute("type","matrix"),c.setAttribute("color-interpolation-filters","linearRGB"),c.setAttribute("values",linearFilterValue+" 1 0"),this.linearFilter=c,c.setAttribute("result",o+"_tint_1"),e.appendChild(c),c=createNS("feColorMatrix"),c.setAttribute("type","matrix"),c.setAttribute("color-interpolation-filters","sRGB"),c.setAttribute("values","1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"),c.setAttribute("result",o+"_tint_2"),e.appendChild(c),this.matrixFilter=c;var d=this.createMergeNode(o,[a,o+"_tint_1",o+"_tint_2"]);e.appendChild(d)}extendPrototype([SVGComposableEffect],SVGTintFilter),SVGTintFilter.prototype.renderFrame=function(e){if(e||this.filterManager._mdf){var s=this.filterManager.effectElements[0].p.v,i=this.filterManager.effectElements[1].p.v,o=this.filterManager.effectElements[2].p.v/100;this.linearFilter.setAttribute("values",linearFilterValue+" "+o+" 0"),this.matrixFilter.setAttribute("values",i[0]-s[0]+" 0 0 0 "+s[0]+" "+(i[1]-s[1])+" 0 0 0 "+s[1]+" "+(i[2]-s[2])+" 0 0 0 "+s[2]+" 0 0 0 1 0")}};function SVGFillFilter(e,s,i,o){this.filterManager=s;var 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",o),e.appendChild(a),this.matrixFilter=a}SVGFillFilter.prototype.renderFrame=function(e){if(e||this.filterManager._mdf){var s=this.filterManager.effectElements[2].p.v,i=this.filterManager.effectElements[6].p.v;this.matrixFilter.setAttribute("values","0 0 0 0 "+s[0]+" 0 0 0 0 "+s[1]+" 0 0 0 0 "+s[2]+" 0 0 0 "+i+" 0")}};function SVGStrokeEffect(e,s,i){this.initialized=!1,this.filterManager=s,this.elem=i,this.paths=[]}SVGStrokeEffect.prototype.initialize=function(){var e=this.elem.layerElement.children||this.elem.layerElement.childNodes,s,i,o,a;for(this.filterManager.effectElements[1].p.v===1?(a=this.elem.maskManager.masksProperties.length,o=0):(o=this.filterManager.effectElements[0].p.v-1,a=o+1),i=createNS("g"),i.setAttribute("fill","none"),i.setAttribute("stroke-linecap","round"),i.setAttribute("stroke-dashoffset",1),o;o<a;o+=1)s=createNS("path"),i.appendChild(s),this.paths.push({p:s,m:o});if(this.filterManager.effectElements[10].p.v===3){var c=createNS("mask"),d=createElementID();c.setAttribute("id",d),c.setAttribute("mask-type","alpha"),c.appendChild(i),this.elem.globalData.defs.appendChild(c);var h=createNS("g");for(h.setAttribute("mask","url("+getLocationHref()+"#"+d+")");e[0];)h.appendChild(e[0]);this.elem.layerElement.appendChild(h),this.masker=c,i.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(i),this.elem.layerElement.removeAttribute("mask"),i.setAttribute("stroke","#fff")}this.initialized=!0,this.pathMasker=i},SVGStrokeEffect.prototype.renderFrame=function(e){this.initialized||this.initialize();var s,i=this.paths.length,o,a;for(s=0;s<i;s+=1)if(this.paths[s].m!==-1&&(o=this.elem.maskManager.viewData[this.paths[s].m],a=this.paths[s].p,(e||this.filterManager._mdf||o.prop._mdf)&&a.setAttribute("d",o.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||o.prop._mdf)){var c;if(this.filterManager.effectElements[7].p.v!==0||this.filterManager.effectElements[8].p.v!==100){var d=Math.min(this.filterManager.effectElements[7].p.v,this.filterManager.effectElements[8].p.v)*.01,h=Math.max(this.filterManager.effectElements[7].p.v,this.filterManager.effectElements[8].p.v)*.01,g=a.getTotalLength();c="0 0 0 "+g*d+" ";var b=g*(h-d),_=1+this.filterManager.effectElements[4].p.v*2*this.filterManager.effectElements[9].p.v*.01,_e=Math.floor(b/_),$;for($=0;$<_e;$+=1)c+="1 "+this.filterManager.effectElements[4].p.v*2*this.filterManager.effectElements[9].p.v*.01+" ";c+="0 "+g*10+" 0 0"}else c="1 "+this.filterManager.effectElements[4].p.v*2*this.filterManager.effectElements[9].p.v*.01;a.setAttribute("stroke-dasharray",c)}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 et=this.filterManager.effectElements[3].p.v;this.pathMasker.setAttribute("stroke","rgb("+bmFloor(et[0]*255)+","+bmFloor(et[1]*255)+","+bmFloor(et[2]*255)+")")}};function SVGTritoneFilter(e,s,i,o){this.filterManager=s;var a=createNS("feColorMatrix");a.setAttribute("type","matrix"),a.setAttribute("color-interpolation-filters","linearRGB"),a.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(a);var c=createNS("feComponentTransfer");c.setAttribute("color-interpolation-filters","sRGB"),c.setAttribute("result",o),this.matrixFilter=c;var d=createNS("feFuncR");d.setAttribute("type","table"),c.appendChild(d),this.feFuncR=d;var h=createNS("feFuncG");h.setAttribute("type","table"),c.appendChild(h),this.feFuncG=h;var g=createNS("feFuncB");g.setAttribute("type","table"),c.appendChild(g),this.feFuncB=g,e.appendChild(c)}SVGTritoneFilter.prototype.renderFrame=function(e){if(e||this.filterManager._mdf){var s=this.filterManager.effectElements[0].p.v,i=this.filterManager.effectElements[1].p.v,o=this.filterManager.effectElements[2].p.v,a=o[0]+" "+i[0]+" "+s[0],c=o[1]+" "+i[1]+" "+s[1],d=o[2]+" "+i[2]+" "+s[2];this.feFuncR.setAttribute("tableValues",a),this.feFuncG.setAttribute("tableValues",c),this.feFuncB.setAttribute("tableValues",d)}};function SVGProLevelsFilter(e,s,i,o){this.filterManager=s;var a=this.filterManager.effectElements,c=createNS("feComponentTransfer");(a[10].p.k||a[10].p.v!==0||a[11].p.k||a[11].p.v!==1||a[12].p.k||a[12].p.v!==1||a[13].p.k||a[13].p.v!==0||a[14].p.k||a[14].p.v!==1)&&(this.feFuncR=this.createFeFunc("feFuncR",c)),(a[17].p.k||a[17].p.v!==0||a[18].p.k||a[18].p.v!==1||a[19].p.k||a[19].p.v!==1||a[20].p.k||a[20].p.v!==0||a[21].p.k||a[21].p.v!==1)&&(this.feFuncG=this.createFeFunc("feFuncG",c)),(a[24].p.k||a[24].p.v!==0||a[25].p.k||a[25].p.v!==1||a[26].p.k||a[26].p.v!==1||a[27].p.k||a[27].p.v!==0||a[28].p.k||a[28].p.v!==1)&&(this.feFuncB=this.createFeFunc("feFuncB",c)),(a[31].p.k||a[31].p.v!==0||a[32].p.k||a[32].p.v!==1||a[33].p.k||a[33].p.v!==1||a[34].p.k||a[34].p.v!==0||a[35].p.k||a[35].p.v!==1)&&(this.feFuncA=this.createFeFunc("feFuncA",c)),(this.feFuncR||this.feFuncG||this.feFuncB||this.feFuncA)&&(c.setAttribute("color-interpolation-filters","sRGB"),e.appendChild(c)),(a[3].p.k||a[3].p.v!==0||a[4].p.k||a[4].p.v!==1||a[5].p.k||a[5].p.v!==1||a[6].p.k||a[6].p.v!==0||a[7].p.k||a[7].p.v!==1)&&(c=createNS("feComponentTransfer"),c.setAttribute("color-interpolation-filters","sRGB"),c.setAttribute("result",o),e.appendChild(c),this.feFuncRComposed=this.createFeFunc("feFuncR",c),this.feFuncGComposed=this.createFeFunc("feFuncG",c),this.feFuncBComposed=this.createFeFunc("feFuncB",c))}SVGProLevelsFilter.prototype.createFeFunc=function(e,s){var i=createNS(e);return i.setAttribute("type","table"),s.appendChild(i),i},SVGProLevelsFilter.prototype.getTableValue=function(e,s,i,o,a){for(var c=0,d=256,h,g=Math.min(e,s),b=Math.max(e,s),_=Array.call(null,{length:d}),_e,$=0,et=a-o,it=s-e;c<=256;)h=c/256,h<=g?_e=it<0?a:o:h>=b?_e=it<0?o:a:_e=o+et*Math.pow((h-e)/it,1/i),_[$]=_e,$+=1,c+=256/(d-1);return _.join(" ")},SVGProLevelsFilter.prototype.renderFrame=function(e){if(e||this.filterManager._mdf){var s,i=this.filterManager.effectElements;this.feFuncRComposed&&(e||i[3].p._mdf||i[4].p._mdf||i[5].p._mdf||i[6].p._mdf||i[7].p._mdf)&&(s=this.getTableValue(i[3].p.v,i[4].p.v,i[5].p.v,i[6].p.v,i[7].p.v),this.feFuncRComposed.setAttribute("tableValues",s),this.feFuncGComposed.setAttribute("tableValues",s),this.feFuncBComposed.setAttribute("tableValues",s)),this.feFuncR&&(e||i[10].p._mdf||i[11].p._mdf||i[12].p._mdf||i[13].p._mdf||i[14].p._mdf)&&(s=this.getTableValue(i[10].p.v,i[11].p.v,i[12].p.v,i[13].p.v,i[14].p.v),this.feFuncR.setAttribute("tableValues",s)),this.feFuncG&&(e||i[17].p._mdf||i[18].p._mdf||i[19].p._mdf||i[20].p._mdf||i[21].p._mdf)&&(s=this.getTableValue(i[17].p.v,i[18].p.v,i[19].p.v,i[20].p.v,i[21].p.v),this.feFuncG.setAttribute("tableValues",s)),this.feFuncB&&(e||i[24].p._mdf||i[25].p._mdf||i[26].p._mdf||i[27].p._mdf||i[28].p._mdf)&&(s=this.getTableValue(i[24].p.v,i[25].p.v,i[26].p.v,i[27].p.v,i[28].p.v),this.feFuncB.setAttribute("tableValues",s)),this.feFuncA&&(e||i[31].p._mdf||i[32].p._mdf||i[33].p._mdf||i[34].p._mdf||i[35].p._mdf)&&(s=this.getTableValue(i[31].p.v,i[32].p.v,i[33].p.v,i[34].p.v,i[35].p.v),this.feFuncA.setAttribute("tableValues",s))}};function SVGDropShadowEffect(e,s,i,o,a){var c=s.container.globalData.renderConfig.filterSize,d=s.data.fs||c;e.setAttribute("x",d.x||c.x),e.setAttribute("y",d.y||c.y),e.setAttribute("width",d.width||c.width),e.setAttribute("height",d.height||c.height),this.filterManager=s;var h=createNS("feGaussianBlur");h.setAttribute("in","SourceAlpha"),h.setAttribute("result",o+"_drop_shadow_1"),h.setAttribute("stdDeviation","0"),this.feGaussianBlur=h,e.appendChild(h);var g=createNS("feOffset");g.setAttribute("dx","25"),g.setAttribute("dy","0"),g.setAttribute("in",o+"_drop_shadow_1"),g.setAttribute("result",o+"_drop_shadow_2"),this.feOffset=g,e.appendChild(g);var b=createNS("feFlood");b.setAttribute("flood-color","#00ff00"),b.setAttribute("flood-opacity","1"),b.setAttribute("result",o+"_drop_shadow_3"),this.feFlood=b,e.appendChild(b);var _=createNS("feComposite");_.setAttribute("in",o+"_drop_shadow_3"),_.setAttribute("in2",o+"_drop_shadow_2"),_.setAttribute("operator","in"),_.setAttribute("result",o+"_drop_shadow_4"),e.appendChild(_);var _e=this.createMergeNode(o,[o+"_drop_shadow_4",a]);e.appendChild(_e)}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 s=this.filterManager.effectElements[0].p.v;this.feFlood.setAttribute("flood-color",rgbToHex(Math.round(s[0]*255),Math.round(s[1]*255),Math.round(s[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 i=this.filterManager.effectElements[3].p.v,o=(this.filterManager.effectElements[2].p.v-90)*degToRads,a=i*Math.cos(o),c=i*Math.sin(o);this.feOffset.setAttribute("dx",a),this.feOffset.setAttribute("dy",c)}}};var _svgMatteSymbols=[];function SVGMatte3Effect(e,s,i){this.initialized=!1,this.filterManager=s,this.filterElem=e,this.elem=i,i.matteElement=createNS("g"),i.matteElement.appendChild(i.layerElement),i.matteElement.appendChild(i.transformedElement),i.baseElement=i.matteElement}SVGMatte3Effect.prototype.findSymbol=function(e){for(var s=0,i=_svgMatteSymbols.length;s<i;){if(_svgMatteSymbols[s]===e)return _svgMatteSymbols[s];s+=1}return null},SVGMatte3Effect.prototype.replaceInParent=function(e,s){var i=e.layerElement.parentNode;if(i){for(var o=i.children,a=0,c=o.length;a<c&&o[a]!==e.layerElement;)a+=1;var d;a<=c-2&&(d=o[a+1]);var h=createNS("use");h.setAttribute("href","#"+s),d?i.insertBefore(h,d):i.appendChild(h)}},SVGMatte3Effect.prototype.setElementAsMask=function(e,s){if(!this.findSymbol(s)){var i=createElementID(),o=createNS("mask");o.setAttribute("id",s.layerId),o.setAttribute("mask-type","alpha"),_svgMatteSymbols.push(s);var a=e.globalData.defs;a.appendChild(o);var c=createNS("symbol");c.setAttribute("id",i),this.replaceInParent(s,i),c.appendChild(s.layerElement),a.appendChild(c);var d=createNS("use");d.setAttribute("href","#"+i),o.appendChild(d),s.data.hd=!1,s.show()}e.setMatte(s.layerId)},SVGMatte3Effect.prototype.initialize=function(){for(var e=this.filterManager.effectElements[0].p.v,s=this.elem.comp.elements,i=0,o=s.length;i<o;)s[i]&&s[i].data.ind===e&&this.setElementAsMask(this.elem,s[i]),i+=1;this.initialized=!0},SVGMatte3Effect.prototype.renderFrame=function(){this.initialized||this.initialize()};function SVGGaussianBlurEffect(e,s,i,o){e.setAttribute("x","-100%"),e.setAttribute("y","-100%"),e.setAttribute("width","300%"),e.setAttribute("height","300%"),this.filterManager=s;var a=createNS("feGaussianBlur");a.setAttribute("result",o),e.appendChild(a),this.feGaussianBlur=a}SVGGaussianBlurEffect.prototype.renderFrame=function(e){if(e||this.filterManager._mdf){var s=.3,i=this.filterManager.effectElements[0].p.v*s,o=this.filterManager.effectElements[1].p.v,a=o==3?0:i,c=o==2?0:i;this.feGaussianBlur.setAttribute("stdDeviation",a+" "+c);var d=this.filterManager.effectElements[2].p.v==1?"wrap":"duplicate";this.feGaussianBlur.setAttribute("edgeMode",d)}};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 s=this.effectsManager.effectElements,i=s[0].p.v,o=s[1].p.v,a=s[2].p.v===1,c=s[3].p.v,d=a?c:s[4].p.v,h=s[5].p.v,g=s[6].p.v,b=s[7].p.v;this.matrix.reset(),this.matrix.translate(-i[0],-i[1],i[2]),this.matrix.scale(d*.01,c*.01,1),this.matrix.rotate(-b*degToRads),this.matrix.skewFromAxis(-h*degToRads,(g+90)*degToRads),this.matrix.translate(o[0],o[1],0),this._mdf=!0,this.opacity!==s[8].p.v&&(this.opacity=s[8].p.v,this._opMdf=!0)}};function SVGTransformEffect(e,s){this.init(s)}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})}
546)(lottie$1,lottie$1.exports);var lottieExports=lottie$1.exports;const lottie=getDefaultExportFromCjs(lottieExports);function _arrayLikeToArray(e,s){(s==null||s>e.length)&&(s=e.length);for(var i=0,o=Array(s);i<s;i++)o[i]=e[i];return o}function _arrayWithHoles(e){if(Array.isArray(e))return e}function _defineProperty(e,s,i){return(s=_toPropertyKey(s))in e?Object.defineProperty(e,s,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[s]=i,e}function _iterableToArrayLimit(e,s){var i=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(i!=null){var o,a,c,d,h=[],g=!0,b=!1;try{if(c=(i=i.call(e)).next,s!==0)for(;!(g=(o=c.call(i)).done)&&(h.push(o.value),h.length!==s);g=!0);}catch(_){b=!0,a=_}finally{try{if(!g&&i.return!=null&&(d=i.return(),Object(d)!==d))return}finally{if(b)throw a}}return h}}function _nonIterableRest(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 547In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ownKeys(e,s){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);s&&(o=o.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),i.push.apply(i,o)}return i}function _objectSpread2(e){for(var s=1;s<arguments.length;s++){var i=arguments[s]!=null?arguments[s]:{};s%2?ownKeys(Object(i),!0).forEach(function(o){_defineProperty(e,o,i[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):ownKeys(Object(i)).forEach(function(o){Object.defineProperty(e,o,Object.getOwnPropertyDescriptor(i,o))})}return e}function _objectWithoutProperties(e,s){if(e==null)return{};var i,o,a=_objectWithoutPropertiesLoose(e,s);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(e);for(o=0;o<c.length;o++)i=c[o],s.includes(i)||{}.propertyIsEnumerable.call(e,i)&&(a[i]=e[i])}return a}function _objectWithoutPropertiesLoose(e,s){if(e==null)return{};var i={};for(var o in e)if({}.hasOwnProperty.call(e,o)){if(s.includes(o))continue;i[o]=e[o]}return i}function _slicedToArray(e,s){return _arrayWithHoles(e)||_iterableToArrayLimit(e,s)||_unsupportedIterableToArray(e,s)||_nonIterableRest()}function _toPrimitive(e,s){if(typeof e!="object"||!e)return e;var i=e[Symbol.toPrimitive];if(i!==void 0){var o=i.call(e,s);if(typeof o!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(s==="string"?String:Number)(e)}function _toPropertyKey(e){var s=_toPrimitive(e,"string");return typeof s=="symbol"?s:s+""}function _unsupportedIterableToArray(e,s){if(e){if(typeof e=="string")return _arrayLikeToArray(e,s);var i={}.toString.call(e).slice(8,-1);return i==="Object"&&e.constructor&&(i=e.constructor.name),i==="Map"||i==="Set"?Array.from(e):i==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?_arrayLikeToArray(e,s):void 0}}var _excluded$1=["animationData","loop","autoplay","initialSegment","onComplete","onLoopComplete","onEnterFrame","onSegmentStart","onConfigReady","onDataReady","onDataFailed","onLoadedImages","onDOMLoaded","onDestroy","lottieRef","renderer","name","assetsPath","rendererSettings"],useLottie=function e(s,i){var o=s.animationData,a=s.loop,c=s.autoplay,d=s.initialSegment,h=s.onComplete,g=s.onLoopComplete,b=s.onEnterFrame,_=s.onSegmentStart,_e=s.onConfigReady,$=s.onDataReady,et=s.onDataFailed,it=s.onLoadedImages,rt=s.onDOMLoaded,lt=s.onDestroy;s.lottieRef,s.renderer,s.name,s.assetsPath,s.rendererSettings;var st=_objectWithoutProperties(s,_excluded$1),ot=reactExports.useState(!1),nt=_slicedToArray(ot,2),at=nt[0],ct=nt[1],dt=reactExports.useRef(),pt=reactExports.useRef(null),mt=function(){var Rt;(Rt=dt.current)===null||Rt===void 0||Rt.play()},St=function(){var Rt;(Rt=dt.current)===null||Rt===void 0||Rt.stop()},Pt=function(){var Rt;(Rt=dt.current)===null||Rt===void 0||Rt.pause()},Mt=function(Rt){var Tt;(Tt=dt.current)===null||Tt===void 0||Tt.setSpeed(Rt)},Ct=function(Rt,Tt){var It;(It=dt.current)===null||It===void 0||It.goToAndPlay(Rt,Tt)},Nt=function(Rt,Tt){var It;(It=dt.current)===null||It===void 0||It.goToAndStop(Rt,Tt)},kt=function(Rt){var Tt;(Tt=dt.current)===null||Tt===void 0||Tt.setDirection(Rt)},At=function(Rt,Tt){var It;(It=dt.current)===null||It===void 0||It.playSegments(Rt,Tt)},ft=function(Rt){var Tt;(Tt=dt.current)===null||Tt===void 0||Tt.setSubframe(Rt)},Et=function(Rt){var Tt;return(Tt=dt.current)===null||Tt===void 0?void 0:Tt.getDuration(Rt)},ut=function(){var Rt;(Rt=dt.current)===null||Rt===void 0||Rt.destroy(),dt.current=void 0},ht=function(){var Rt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},Tt;if(pt.current){(Tt=dt.current)===null||Tt===void 0||Tt.destroy();
vendor: 4,097 bytes, lines 547-548
547var It=_objectSpread2(_objectSpread2(_objectSpread2({},s),Rt),{},{container:pt.current});return dt.current=lottie.loadAnimation(It),ct(!!dt.current),function(){var Lt;(Lt=dt.current)===null||Lt===void 0||Lt.destroy(),dt.current=void 0}}};reactExports.useEffect(function(){var xt=ht();return function(){return xt==null?void 0:xt()}},[o,a]),reactExports.useEffect(function(){dt.current&&(dt.current.autoplay=!!c)},[c]),reactExports.useEffect(function(){if(dt.current){if(!d){dt.current.resetSegments(!0);return}!Array.isArray(d)||!d.length||((dt.current.currentRawFrame<d[0]||dt.current.currentRawFrame>d[1])&&(dt.current.currentRawFrame=d[0]),dt.current.setSegment(d[0],d[1]))}},[d]),reactExports.useEffect(function(){var xt=[{name:"complete",handler:h},{name:"loopComplete",handler:g},{name:"enterFrame",handler:b},{name:"segmentStart",handler:_},{name:"config_ready",handler:_e},{name:"data_ready",handler:$},{name:"data_failed",handler:et},{name:"loaded_images",handler:it},{name:"DOMLoaded",handler:rt},{name:"destroy",handler:lt}],Rt=xt.filter(function(It){return It.handler!=null});if(Rt.length){var Tt=Rt.map(function(It){var Lt;return(Lt=dt.current)===null||Lt===void 0||Lt.addEventListener(It.name,It.handler),function(){var $t;($t=dt.current)===null||$t===void 0||$t.removeEventListener(It.name,It.handler)}});return function(){Tt.forEach(function(It){return It()})}}},[h,g,b,_,_e,$,et,it,rt,lt]);var gt=React$1.createElement("div",_objectSpread2({style:i,ref:pt},st));return{View:gt,play:mt,stop:St,pause:Pt,setSpeed:Mt,goToAndStop:Nt,goToAndPlay:Ct,setDirection:kt,playSegments:At,setSubframe:ft,getDuration:Et,destroy:ut,animationContainerRef:pt,animationLoaded:at,animationItem:dt.current}};function getContainerVisibility(e){var s=e.getBoundingClientRect(),i=s.top,o=s.height,a=window.innerHeight-i,c=window.innerHeight+o;return a/c}function getContainerCursorPosition(e,s,i){var o=e.getBoundingClientRect(),a=o.top,c=o.left,d=o.width,h=o.height,g=(s-c)/d,b=(i-a)/h;return{x:g,y:b}}var useInitInteractivity=function e(s){var i=s.wrapperRef,o=s.animationItem,a=s.mode,c=s.actions;reactExports.useEffect(function(){var d=i.current;if(!(!d||!o||!c.length)){o.stop();var h=function(){var _=null,_e=function(){var et=getContainerVisibility(d),it=c.find(function(lt){var st=lt.visibility;return st&&et>=st[0]&&et<=st[1]});if(it){if(it.type==="seek"&&it.visibility&&it.frames.length===2){var rt=it.frames[0]+Math.ceil((et-it.visibility[0])/(it.visibility[1]-it.visibility[0])*it.frames[1]);//! goToAndStop must be relative to the start of the current segment 548o.goToAndStop(rt-o.firstFrame-1,!0)}it.type==="loop"&&(_===null||_!==it.frames||o.isPaused)&&(o.playSegments(it.frames,!0),_=it.frames),it.type==="play"&&o.isPaused&&(o.resetSegments(!0),o.play()),it.type==="stop"&&o.goToAndStop(it.frames[0]-o.firstFrame-1,!0)}};return document.addEventListener("scroll",_e),function(){document.removeEventListener("scroll",_e)}},g=function(){var _=function(it,rt){var lt=it,st=rt;if(lt!==-1&&st!==-1){var ot=getContainerCursorPosition(d,lt,st);lt=ot.x,st=ot.y}var nt=c.find(function(dt){var pt=dt.position;return pt&&Array.isArray(pt.x)&&Array.isArray(pt.y)?lt>=pt.x[0]&<<=pt.x[1]&&st>=pt.y[0]&&st<=pt.y[1]:pt&&!Number.isNaN(pt.x)&&!Number.isNaN(pt.y)?lt===pt.x&&st===pt.y:!1});if(nt){if(nt.type==="seek"&&nt.position&&Array.isArray(nt.position.x)&&Array.isArray(nt.position.y)&&nt.frames.length===2){var at=(lt-nt.position.x[0])/(nt.position.x[1]-nt.position.x[0]),ct=(st-nt.position.y[0])/(nt.position.y[1]-nt.position.y[0]);o.playSegments(nt.frames,!0),o.goToAndStop(Math.ceil((at+ct)/2*(nt.frames[1]-nt.frames[0])),!0)}nt.type==="loop"&&o.playSegments(nt.frames,!0),nt.type==="play"&&(o.isPaused&&o.resetSegments(!1),o.playSegments(nt.frames)),nt.type==="stop"&&o.goToAndStop(nt.frames[0],!0)}},_e=function(it){_(it.clientX,it.clientY)},$=function(){_(-1,-1)};return d.addEventListener("mousemove",_e),d.addEventListener("mouseout",$),function(){d.removeEventListener("mousemove",_e),d.removeEventListener("mouseout",$)}};switch(a){case"scroll":return h();case"cursor":return g()}}},[a,o])}
548,useLottieInteractivity=function e(s){var i=s.actions,o=s.mode,a=s.lottieObj,c=a.animationItem,d=a.View,h=a.animationContainerRef;return useInitInteractivity({actions:i,animationItem:c,mode:o,wrapperRef:h}),d},_excluded=["style","interactivity"],Lottie=function e(s){var i,o,a,c=s.style,d=s.interactivity,h=_objectWithoutProperties(s,_excluded),g=useLottie(h,c),b=g.View,_=g.play,_e=g.stop,$=g.pause,et=g.setSpeed,it=g.goToAndStop,rt=g.goToAndPlay,lt=g.setDirection,st=g.playSegments,ot=g.setSubframe,nt=g.getDuration,at=g.destroy,ct=g.animationContainerRef,dt=g.animationLoaded,pt=g.animationItem;return reactExports.useEffect(function(){s.lottieRef&&(s.lottieRef.current={play:_,stop:_e,pause:$,setSpeed:et,goToAndPlay:rt,goToAndStop:it,setDirection:lt,playSegments:st,setSubframe:ot,getDuration:nt,destroy:at,animationContainerRef:ct,animationLoaded:dt,animationItem:pt})},[(i=s.lottieRef)===null||i===void 0?void 0:i.current]),useLottieInteractivity({lottieObj:{View:b,play:_,stop:_e,pause:$,setSpeed:et,goToAndStop:it,goToAndPlay:rt,setDirection:lt,playSegments:st,setSubframe:ot,getDuration:nt,destroy:at,animationContainerRef:ct,animationLoaded:dt,animationItem:pt},actions:(o=d==null?void 0:d.actions)!==null&&o!==void 0?o:[],mode:(a=d==null?void 0:d.mode)!==null&&a!==void 0?a:"scroll"})};const LANGUAGES=[{code:"en",label:"English"},{code:"ja",label:"æ¥æ¬èª"}],LanguageSwitcher=()=>{const{i18n:e,t:s}=useTranslation(),i=LANGUAGES.find(o=>o.code===e.resolvedLanguage)??LANGUAGES[0];return jsxRuntimeExports.jsxs(DropdownMenu,{children:[jsxRuntimeExports.jsx(DropdownMenuTrigger,{asChild:!0,children:jsxRuntimeExports.jsxs(Button,{variant:"ghost",size:"sm","aria-label":s("languageSwitcher.changeLanguage"),className:"gap-1.5",children:[jsxRuntimeExports.jsx(Earth,{className:"h-4 w-4"}),jsxRuntimeExports.jsx("span",{className:"hidden sm:inline",children:i.label})]})}),jsxRuntimeExports.jsx(DropdownMenuContent,{align:"end",children:LANGUAGES.map(o=>jsxRuntimeExports.jsx(DropdownMenuItem,{onSelect:()=>e.changeLanguage(o.code),children:o.label},o.code))})]})},SOLUTION_GROUPS=[{key:"useCase",links:[{slug:"standardize-processes",icon:Settings2,built:!0},{slug:"onboard-employees",icon:Rocket,built:!0},{slug:"train-customers",icon:BookOpen,built:!0},{slug:"software-adoption",icon:MonitorSmartphone,built:!0},{slug:"knowledge-management",icon:ChartLine,built:!0}]},{key:"function",links:[{slug:"human-resources",icon:Users,built:!0},{slug:"information-technology",icon:Wrench,built:!0},{slug:"operations",icon:ShieldCheck,built:!0},{slug:"healthcare",icon:Stethoscope,built:!0},{slug:"finance",icon:BadgeDollarSign,built:!0}]}],SOLUTION_LINKS=SOLUTION_GROUPS.flatMap(e=>e.links),solutionPath=e=>`/solutions/${e}`,solutionLinkKey=e=>`solutionsNav.links.${e}`,PRODUCT_LINKS=[{slug:"desktop-app",icon:Monitor,built:!0},{slug:"browser-extension",icon:Puzzle,built:!0},{slug:"blur-and-annotate",icon:EyeOff,built:!0},{slug:"autoquiz",icon:GraduationCap,built:!0}],productPath=(e,s)=>s&&/^ja(-|$)/.test(s)?`/ja/product/${e}`:`/product/${e}`,productLinkKey=e=>`productNav.links.${e}`,Header=({showBack:e=!1,showSearch:s=!0,showNav:i=!0,sticky:o=!0})=>{const a=useNavigate(),{t:c,i18n:d}=useTranslation(),{user:h,signOut:g}=useAuth(),{isAdmin:b}=useUserRole(),[_,_e]=reactExports.useState(""),[$,et]=reactExports.useState(!1),[it,rt]=reactExports.useState(0),[lt,st]=reactExports.useState(!1);reactExports.useEffect(()=>{if(!b)return;const ct=async()=>{const{count:pt}=await supabase.from("tutorial_reports").select("*",{count:"exact",head:!0}).eq("status","pending");rt(pt||0)};ct();const dt=setInterval(ct,3e4);return()=>clearInterval(dt)},[b]);const ot=async()=>{try{await g(),ue.success(c("header.logoutSuccess")),window.location.href="/"}catch{ue.error(c("header.logoutError"))}},nt=ct=>{ct.preventDefault(),et(!0)},at=ct=>{et(ct),ct||_e("")};return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx("header",{className:`${o?"sticky top-0":""} z-50 w-full border-b bg-background/95 backdrop-blur supports-[backdrop-filter]:bg-background/60`,children:jsxRuntimeExports.jsxs("div",{className:"container relative flex h-16 items-center gap-4 px-4 md:px-8",children:[e&&jsxRuntimeExports.jsx(Button,{variant:"ghost",size:"icon",onClick:()=>a(-1),className:"shrink-0",children:jsxRuntimeExports.jsx(ArrowLeft,{className:"h-5 w-5"})}),jsxRuntimeExports.jsxs(Link,{to:"/",className:"flex items-center gap-2 shrink-0",children:[jsxRuntimeExports.jsx("img",{src:stepilyLogo,alt:c("header.logoAlt"),className:"w-8 h-8"}),jsxRuntimeExports.jsx("span",{className:`font-semibold text-base ${IS_STAGING?"text-red-600 font-bold":""}`,children:IS_STAGING?"STAGING Stepily":"Stepily"})]}),(i||!h)&&jsxRuntimeExports.jsxs(Sheet,{open:lt,onOpenChange:st,children:[jsxRuntimeExports.jsx(SheetTrigger,{asChild:!0,children:jsxRuntimeExports.jsx(Button,{variant:"ghost",size:"icon",className:"md:hidden shrink-0","aria-label":c("header.openNav"),children:jsxRuntimeExports.jsx(Menu$1,{className:"h-5 w-5"})})}),jsxRuntimeExports.jsxs(SheetContent,{side:"left",className:"w-64",children:[jsxRuntimeExports.jsx(SheetTitle,{className:"sr-only",children:c("header.n
548avMenuTitle")}),jsxRuntimeExports.jsx("nav",{className:"flex flex-col gap-1 mt-8",children:i?jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(Link,{to:"/tutorials",onClick:()=>st(!1),className:"rounded-md px-3 py-2 text-sm font-medium text-foreground/80 hover:bg-muted hover:text-foreground",children:c("header.nav.tutorials")}),jsxRuntimeExports.jsx(Link,{to:"/leaderboard",onClick:()=>st(!1),className:"rounded-md px-3 py-2 text-sm font-medium text-foreground/80 hover:bg-muted hover:text-foreground",children:c("header.nav.leaderboard")}),jsxRuntimeExports.jsx(Link,{to:"/pricing",onClick:()=>st(!1),className:"rounded-md px-3 py-2 text-sm font-medium text-foreground/80 hover:bg-muted hover:text-foreground",children:c("header.nav.pricing")})]}):jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[!1,jsxRuntimeExports.jsxs("div",{className:"mb-1",children:[jsxRuntimeExports.jsx("p",{className:"px-3 pb-1 pt-2 text-[11px] font-semibold uppercase tracking-[0.14em] text-muted-foreground",children:c("header.nav.products")}),PRODUCT_LINKS.filter(ct=>ct.built).map(({slug:ct})=>jsxRuntimeExports.jsx("a",{href:productPath(ct,d.language),className:"block rounded-md px-3 py-2 text-sm font-medium text-foreground/80 hover:bg-muted hover:text-foreground",children:c(`${productLinkKey(ct)}.label`)},ct))]}),SOLUTION_GROUPS.map(ct=>jsxRuntimeExports.jsxs("div",{className:"mb-1",children:[jsxRuntimeExports.jsx("p",{className:"px-3 pb-1 pt-2 text-[11px] font-semibold uppercase tracking-[0.14em] text-muted-foreground",children:c(`solutionsNav.groups.${ct.key}`)}),ct.links.map(({slug:dt})=>jsxRuntimeExports.jsx("a",{href:solutionPath(dt),className:"block rounded-md px-3 py-2 text-sm font-medium text-foreground/80 hover:bg-muted hover:text-foreground",children:c(`${solutionLinkKey(dt)}.label`)},dt))]},ct.key)),jsxRuntimeExports.jsx(Link,{to:"/pricing",onClick:()=>st(!1),className:"rounded-md px-3 py-2 text-sm font-medium text-foreground/80 hover:bg-muted hover:text-foreground",children:c("header.nav.pricing")}),jsxRuntimeExports.jsx(Link,{to:"/faq",onClick:()=>st(!1),className:"rounded-md px-3 py-2 text-sm font-medium text-foreground/80 hover:bg-muted hover:text-foreground",children:c("header.nav.faq")}),jsxRuntimeExports.jsx(Link,{to:"/case-studies",onClick:()=>st(!1),className:"rounded-md px-3 py-2 text-sm font-medium text-foreground/80 hover:bg-muted hover:text-foreground",children:c("header.nav.customers")})]})})]})]}),!i&&!h&&jsxRuntimeExports.jsxs("nav",{className:"absolute left-1/2 top-1/2 hidden -translate-x-1/2 -translate-y-1/2 items-center gap-5 md:flex",children:[jsxRuntimeExports.jsxs(DropdownMenu,{children:[jsxRuntimeExports.jsx(DropdownMenuTrigger,{asChild:!0,children:jsxRuntimeExports.jsxs(Button,{variant:"ghost",className:"h-auto px-0 py-0 text-sm font-medium text-foreground/80 transition-colors hover:bg-transparent hover:text-foreground data-[state=open]:text-foreground",children:[c("header.nav.products"),jsxRuntimeExports.jsx(ChevronDown,{className:"ml-1 h-4 w-4 transition-transform duration-200 data-[state=open]:rotate-180"})]})}),jsxRuntimeExports.jsx(DropdownMenuContent,{align:"start",className:"w-64 p-2",children:PRODUCT_LINKS.filter(ct=>ct.built).map(({slug:ct,icon:dt})=>jsxRuntimeExports.jsx(DropdownMenuItem,{asChild:!0,className:"cursor-pointer",children:jsxRuntimeExports.jsxs("a",{href:productPath(ct,d.language),className:"flex items-center gap-2.5 rounded-md p-2",children:[jsxRuntimeExports.jsx("span",{className:"flex h-7 w-7 shrink-0 items-center justify-center rounded-md bg-primary/15 text-primary",children:jsxRuntimeExports.jsx(dt,{className:"h-3.5 w-3.5","aria-hidden":"true"})}),jsxRuntimeExports.jsx("span",{className:"text-sm font-medium leading-tight",children:c(`${productLinkKey(ct)}.label`)})]})},ct))})]}),jsxRuntimeExports.jsxs(DropdownMenu,{children:[jsxRuntimeExports.jsx(DropdownMenuTrigger,{asChild:!0,children:jsxRuntimeExports.jsxs(Button,{variant:"ghost",className:"h-auto px-0 py-0 text-sm font-medium text-foreground/80 transition-colors hover:bg-transparent hover:text-foreground data-[state=open]:text-foreground",children:[c("header.n
548av.solutions"),jsxRuntimeExports.jsx(ChevronDown,{className:"ml-1 h-4 w-4 transition-transform duration-200 data-[state=open]:rotate-180"})]})}),jsxRuntimeExports.jsx(DropdownMenuContent,{align:"start",className:"w-[520px] p-0",children:jsxRuntimeExports.jsx("div",{className:"grid grid-cols-2 divide-x divide-border",children:SOLUTION_GROUPS.map(ct=>jsxRuntimeExports.jsxs("div",{className:"p-3",children:[jsxRuntimeExports.jsx("p",{className:"px-2 pb-1.5 text-[11px] font-semibold uppercase tracking-[0.14em] text-muted-foreground",children:c(`solutionsNav.groups.${ct.key}`)}),ct.links.map(({slug:dt,icon:pt})=>jsxRuntimeExports.jsx(DropdownMenuItem,{asChild:!0,className:"cursor-pointer",children:jsxRuntimeExports.jsxs("a",{href:solutionPath(dt),className:"flex items-center gap-2.5 rounded-md p-2",children:[jsxRuntimeExports.jsx("span",{className:"flex h-7 w-7 shrink-0 items-center justify-center rounded-md bg-primary/15 text-primary",children:jsxRuntimeExports.jsx(pt,{className:"h-3.5 w-3.5","aria-hidden":"true"})}),jsxRuntimeExports.jsx("span",{className:"text-sm font-medium leading-tight",children:c(`${solutionLinkKey(dt)}.label`)})]})},dt))]},ct.key))})})]}),jsxRuntimeExports.jsx(Link,{to:"/pricing",className:"text-sm font-medium text-foreground/80 transition-colors hover:text-foreground",children:c("header.nav.pricing")}),jsxRuntimeExports.jsx(Link,{to:"/faq",className:"text-sm font-medium text-foreground/80 transition-colors hover:text-foreground",children:c("header.nav.faq")}),jsxRuntimeExports.jsx(Link,{to:"/case-studies",className:"text-sm font-medium text-foreground/80 transition-colors hover:text-foreground",children:c("header.nav.customers")})]}),i&&jsxRuntimeExports.jsxs("nav",{className:"hidden md:flex items-center gap-1 ml-4",children:[jsxRuntimeExports.jsx(Button,{variant:"ghost",size:"sm",asChild:!0,children:jsxRuntimeExports.jsx(Link,{to:"/tutorials",children:c("header.nav.tutorials")})}),jsxRuntimeExports.jsx(Button,{variant:"ghost",size:"sm",asChild:!0,children:jsxRuntimeExports.jsx(Link,{to:"/leaderboard",children:c("header.nav.leaderboard")})}),jsxRuntimeExports.jsx(Button,{variant:"ghost",size:"sm",asChild:!0,children:jsxRuntimeExports.jsx(Link,{to:"/pricing",children:c("header.nav.pricing")})})]}),jsxRuntimeExports.jsx("div",{className:"flex-1"}),s&&jsxRuntimeExports.jsx("form",{onSubmit:nt,className:"max-w-2xl mx-auto",children:jsxRuntimeExports.jsxs("div",{className:"relative",children:[jsxRuntimeExports.jsx(Search,{className:"absolute left-3 top-1/2 -translate-y-1/2 h-4 w-4 text-muted-foreground"}),jsxRuntimeExports.jsx(Input,{placeholder:c("common.searchPlaceholder"),className:"pl-10 bg-muted/50 border-border",value:_,onFocus:()=>et(!0),onChange:ct=>{_e(ct.target.value),et(!0)}})]})}),h?jsxRuntimeExports.jsxs("div",{className:"flex items-center gap-2",children:[jsxRuntimeExports.jsx(LanguageSwitcher,{}),jsxRuntimeExports.jsx(Button,{variant:"ghost",asChild:!0,children:jsxRuntimeExports.jsx(Link,{to:"/dashboard",children:c("header.myDashboard")})}),b&&jsxRuntimeExports.jsx(Button,{variant:"ghost",size:"icon",asChild:!0,className:"relative",children:jsxRuntimeExports.jsxs(Link,{to:"/admin/reports",children:[jsxRuntimeExports.jsx(Bell,{className:"h-5 w-5"}),it>0&&jsxRuntimeExports.jsx("span",{className:"absolute -top-1 -right-1 bg-destructive text-destructive-foreground text-xs rounded-full w-5 h-5 flex items-center justify-center",children:it>9?"9+":it})]})}),jsxRuntimeExports.jsx(Button,{variant:"ghost",size:"icon",asChild:!0,className:"relative",children:jsxRuntimeExports.jsx(Link,{to:"/profile",children:jsxRuntimeExports.jsx(User,{className:"h-5 w-5"})})}),jsxRuntimeExports.jsx(Button,{variant:"ghost",size:"icon",onClick:ot,children:jsxRuntimeExports.jsx(LogOut,{className:"h-5 w-5"})})]}):jsxRuntimeExports.jsxs("div",{className:"flex items-center gap-5",children:[jsxRuntimeExports.jsx(LanguageSwitcher,{}),jsxRuntimeExports.jsx(Button,{size:"sm",variant:"outline",asChild:!0,className:"bg-background text-foreground transition-colors hover:bg-primary/5 hover:text-foreground",children:jsxRuntimeExports.jsx(Link,{to:"/auth",children:c("header.logIn")})})]})]})}),s&&jsxRuntimeExports.jsx(GlobalSearchDialog,{open:$,onOpenChange:at,initialQuery:_})]})},SITE_URL="https://stepily.com",SITE_NAME="Stepily",DEFAULT_DESCRIPTION="Create, share, and discover step-by-step visual guides. Join the Stepily community where complex workflows are made simple.",organizationJsonLd={"@context":"https://schema.org","@type":"Organization",name:SITE_NAME,url:SITE_URL,logo:`${SITE_URL}/stepily-logo-icon.svg`,sameAs:["https://www.linkedin.com/company/stepily/"]},SEO=({title:e,description:s=DEFAULT_DESCRIPTION,path:i,jsonLd:o})=>{const a=e.includes(SITE_NAME)?e:`${e} | ${SITE_NAME}`,c=`${SITE_URL}${i}`,d=o?Array.isArray(o)?o:[o]:[],h=[organizationJsonLd,...d];return jsxRuntimeExports.jsxs(Helmet,{children:[jsxRuntimeExports.jsx("title",{children:a}),jsxRuntimeExports.jsx("meta",{name:"description",content:s}),jsxRuntimeExports.jsx("link",{rel:"canonical",href:c}),jsxRuntimeExports.jsx("meta",{property:"og:title",content:a}),jsxRuntimeExports.jsx("meta",{property:"og:description",content:s}),jsxRuntimeExports.jsx("meta",{property:"og:url",content:c}),jsxRuntimeExports.jsx("meta",{property:"og:type",content:"website"}),jsxRuntimeExports.jsx("meta",{property:"og:site_name",content:SITE_NAME}),jsxRuntimeExports.jsx("meta",{name:"twitter:card",content:"summary_large_image"}),jsxRuntimeExports.jsx("meta",{name:"twitter:title",content:a}),jsxRuntimeExports.jsx("meta",{name:"twitter:description",content:s}),h.map((g,b)=>jsxRuntimeExports.jsx("script",{type:"application/ld+json",children:JSON.stringify(g).replace(/</g,"\\u003c")},b))]})},figmaLogo="/assets/figma-logo-CuqGF-QS.png",n8nLogo="/assets/n8n-logo-BjDLZzcW.png",makeLogo="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAOEAAADhCAMAAAAJbSJIAAABEVBMVEX///8AAAD/AP9tAMy2trZXV1esrKyWlpaPj4/9+f9ra2vx8fF2G86cnJxycnKDg4P79f7BwcGRKNqlpaXOzs6bKd+lK+NiAMn39/fj4+PcyPKHJdXp6enZ2dl7CdIjIyPIHe/SF/IuLi47OztjY2NCQkJ/JNKKiornC/iBC9W8vLx7e3u7AOu/IuzKHPAODg7xBvv+qf4zMzPz3vvfqPbWufCweOPLq+zn1fb06vsaGhrbnvSLPNZLS0vps/iUWNfQOPKyEumIRNPurfrIneyxiOKxK+qua+PFae/lLPitfuHRYvGSANyYT9r42f2/d+qsRuXiXff+pP73Wf21Qer+gP7iv/b
548+6f6NANv+Nv6zdeVT6i2vAAAGSElEQVR4nO2ae1faSByGBwQKolwksAFJqAJFQKtWW8TW3bLr2svS6rbbrdvv/0E2ydxzI67pcXvO+/xlJpmQJ28y88u0hAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAApItZaDDKD30p34lJhrP50JfyncgJw0cPfSnfCRj++MDwxweGD45pmitb5K62ZRhWV9t/B8Ny22rfvSw4OS3xP5+/mJ2xjXmHMfcdbtQZ3gU3BruHmfNh1RAKuUr/PJPpXYwM4qc+7TOVw/yjtmgOMSzXBeJmlAuDnndUb1CIvIOhPN7ff1mjf26Nbdt+9X52Rkr2T4wN/Wh5OVVCimIj0/eEzJFsyfTqakdzM6NzYQROyQ0t5bA8bWpXtM7TOyT58/7BweLqpRvdfLy9/eTJxsba2i8le42xUdIOL4gfqZhD7UcbTr7nusRU9jN6mQDVCENDPYhWcsVA51xiw9ePDw48R0I6jqGj6Ej+SlYbrvd9v1kwMn4GvFsusMs7RahhPSBoXoR0HiUU/O3pY1fx6mqxqF0Kw98TZJgIVktPInZXQwy1X/CSKu+Gdp6SJJRe7zz1QnQUv77ZYoZrz9MyzHTdTt3I3VbAUHtd6as6DHSjFBJFuLPDQly8Ja9cQ1dx7Sw1w6LbaT1y97rfUHvhqOAo0IvTTWC44xjSEBcn860tHmKtZtvpGPZ8Eearo+kzZdvUDdUR85xOKNrAWtycKo/sIMQoGCEL0Ymwc8sMNz6QpIaHQadDva2tXuOw7T+JoRoWVcFdNiEMREuf9m7IY6yVhu/2uOH+CblcshA33pPaOIlhoWuWfaNkxTJNa6A0uJOitZmnG3ymrordjahxts+ObUtl3lubk+M53tujIR7svyXkTZMZ2jPX0F5lyG6yNoywl1/JosE6tgvruxP2d1e+bcUIQ/EAypFHFhBy8lghWHq3t8dCdCIkTWa4bZ8lMuR1lzL68Xtalk3+tZfyRH2TIg1FNzGQHspzyF9sk1icCFmIT/8gpLZ0DT3Fmmdor5jxeZN8jjKilsqHGpr1kX/kjzIUpxINuw2BHJtXVDZHR9zQjbAjDD+QJIYV0RZiKF80YVguSO0EhtPA7QsjvrA59gw9RSdCZ6Bhj+n4vWs4TtewOw2/xEhD9gAGK0GNComhlJWGH53t62aThjieMUM7PUP/h0UCQzrW1MN3ctZJDJ+yQtGNkNwIw7PUDdXpI6khrWjuYVjKSkM3wlqrSRW3xzXPcJyeYTWj0ZtGzhbnynR+4Z5oxVMaV9Uce4ae4p/udmfZYoavCDe00zFU667MxaalXrfPsKvMdbRYEFvPKutBggsJkmxWhOhGSE6XPMQXzHCclqEy/49osSyfPc2wX9Zuh1vTmoniCuOYGR6xCMl1ixm6Aw2pbfEQUzCUMzyfviIMve9DZU5x6yG5NnC3JahSNitC9CIkN60WfUzHnZQNZQyiyIozVJ9p7UxF9Try6yuEPwnDIxrhvNXiIbqra7Umf0zvb6iUcGxvWRYlQUN14B1pQ42ysuUGHVvP8AhdRRrhxwVT3LohiqGdriFVaCjfVyGGahnjvLbK1ySvjyzaFhfjsTT8TFtOuWHzW9qGynvojKSNqrbqFmKoLglU9KG2V83VJ4/kcDshUWSlIY2QXF8xw+WMGt6yxzTdsTRAmKH6PWZpQ0+AKMFP0pBFSP7yDB3FZSd1w7hZO8yQKDXshfYp5ieyLP0sDVmEpYUwnFPD5ZgqplHThC13xhmqIRoxd6gfJUhqX/wRfhSGNyR9w+jVxHBDtcxzLayQjg7DuH+++PpFi5D8zQxbdKBxDZfpGRLLt2IVUZfKf5lRjnUnhXLYuxj75cQdP4vN07dXi8Wy1Vpeepul5fL29tYbTVd+4yf5etIusW9Jg5G21iZOqSyb7noNE/+69zCuJGXMv/xzom7XOpfXN0vWNLv+5vFmpnfqDvIM+QtF3iS/uC3elOcrKQafA/LuED9VdpcH/mMdRFuer2wbyjrrcLR6HTGK0upD/iumNcnljPv8v6eukSsUCpN7nQMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA/z/+BRv4uqQ+/Nq7AAAAAElFTkSuQmCC",zapierLogo="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAVwAAAFnBAMAAAAYhexxAAAAG1BMVEX/SgD////v7+/yMADtoH/zYCbxf1L03dHywq8yXOruAAAPWklEQVR42uydy3PayhKHp0qGulsUJ2J5JDsXljqRTbK0ibG9JDEhLE3iB8sLcWwvD8TG/rMvCPGSejTd85A4VfQO21gfP3p6enperDQz25vZhr9kW9wt7hZ3i7vF3eJucbe4W9y8caMfuNFPNvzlFneLu8Xd4maAa9ulfwmua1ceHl5fX14n9vLw8DAYlDYYt/r6dHP9bWE37auT85fNxK08ntxcN1ncvrVvTl42DXfw+HTzLck6s8K3m/OXDcKtPPJZGbOYzwrtkxd3M3Cd1xs+69LaVy8PG4D7eLqA9YXArgZchTTUdk6uGd7a56M80/PK03WTUaxwNXLzwnUfTmmwUyue93PCrV7TaSdB4mqQB+7EEZBNLG6t8+xxK+NvTNba54OMcR0Jt11pcb1BprhqtGGEsLPDrZ7Czcgn8WaFW2kwZZvwZoRb1kA7sat+JrgLWktR314/A1ynwe0BqD3GTF+juM4p02YzfU3iVsZNppPXNVuBvNdJO+E9N5qeP+mlnSRoZwZxq5dMt7VHxnDnIczXydvqm8Idh6NazVa4NYSr3XEj3jMjuAYcd2Y7QwO4ToOZso4B3LEx2sgdtOLeXZrDZcWRZtxKg5m0aTTTiTs2Shu6g0bcu6ZZXFYcasSdu4JljrenEde4uFN30FaBLF8y81YcaErP7bH+TAGwc024+1mIG7Y2HbjL3tcyy9vTgrvfZNlYYagB12mwrKyjATczcSfyHivjVrITdyavGu44Q9pQXiXcymWWuKylhuveZ0o7lVcFt3KULe5EXhXcDMNCJG9dBfeaZW0tTx73rpk5bvFFvgLZYNlbRzo9L2On/g0kZhK4z1YO6kaJGR23epkHLdvpy+He5yIuYz+kcJ3LTH12JZa5Mrh3OdFGaToVt8Hyso4EbvXSzwu32Kfjjll+dkvGreQn7qyx0XD3cxQ3bGw03Oc8cafeQMJ1LjNOFWI9GxH3jlk5ewOpAtlg+VqHlJ4rlEj9YGny31BxRMGVHgBbweHV+UO4UPfh6fQikB+zUXCl44I1LK3aO18hNqBxy9JjNKu/hrsrjVvs43HvWO64YXkPifucP+58iInAVYgL+nB3+lhceV/QiBt5AwL3eRNwo9ggxnUuNwJ3B4mrUsfTiFsc4nBVaroacf0zHK5CTdfSiMuZCIrjOs3NUJcVXUwF8r9sQ3ALdUx63tgUXNbD4BLCmCWBS/gALQTuLsF1D35Sca3kW9JydDEuwXWD4Vufitvdxafsh3UxLr4Htr6U7AsarlUrlf6Hd4dbW4TroKs300eX3vs03G4p+RFT+mGhuviBRBCmTBck3BptRDRxXgEuuge2PoV/H5M3HTfohj/97OMjrwAX7bpBlD5fEHAPqNG4J8LFJgzW1+j/rMubihtE46/SHx8dedNxy01kKeNw/n/W5U3Frc1/7GBxi4N03F2LIO7sX63F3jTcyHNDebHOO0rHxba0hbix4JCGW1v+3MH2FT/Scf9B9xBLW/XeFFyru/KLX9icN7UCiV3L4q+Iu+a9fFyrtvqLMlLeVmp6XsV1EtbHNagV703B7a795g+2raXhImckguGiocXk5eKui4uOvYVRGi6ypX1af/SK9/Jxu7H3IBPJehoubiRhHccevQwOPNy4uLH4l1ZG5+MiW1ri0ctnc3Hj4pZsHO5OCi4uHVuLYjHv5eAmxcXGsnlbg3BxLS2GtCYvD7ebfAuusc3bGoR7L9XQVuWFcSFxsWPYOh8Xt/jmAHp2JC8Htwu9BRfjv9tcXFz2CD48khfEhcV9TwoNAC4yMKQ9HcZN+XzY0ADgVpu+vLyz2AvhWmnegw0NAC66yM+XF8SFxUVm1oUhDxc9rAy48gK4sO/8hR1Q+HVeBfI3U5J3+vVCuHzXIcxRAOl5A11w48qbxFUKC8sJNgCXUDbnMQC4KmEhzNA5uJQZH568SVxVcWdFdAC33PSV5U3gBhxxLWXcXdKcCSc6xXGVxY2vMVzg0iYl4OAQxHCD45QOG/mkYxj3NwmX8y2v475TF5exLoxLnAoGSd7EVouohoWwNALjEqf/YHndtZeOBnFjC07nuOTtPaC8YqOKO5vLVseFY6/QpuKS9N3pQ7jhuNIyLi9Z3NhyXia97U9KXqrnRoE3gSuxpKWWhbhxXPmpawl56eLOBsOJ9Pw3y0Be50LiKT8g3GeJfcsWVd63EuKyWw4u2ayacc+d2FcbwD2S+U9EeWU8l1kdS
548F25pfw18+KG6xriuPal1L8iBYdQXLoqOyCulLqwvItDHnWIy4oAruwCp4T3OifXF0EQ+O3zvg7P5eBOUgYd8pavJ6Rh7cYK/FZfh7hh3SmOuyur7qq8TiNYm1YNeq66uGFJOoHLZG1F3p9xouBAXVzNuMvgAMykWzFxfYnNCdOqnj7cpbzAdMNiJD8VV9YbAFxx/mgFPPvCzwgWc3C/uO9GpWSxCiTmaINXns0P5d9LmdV65L35Tqz5cTI9F+MeCnstaF76g7BnFuP+SOI+a8D9iZzWUsdFFEXE2UwTSJnF7xLHilsZdQ+ED/YBoQrCd11I4LoacMszWp8TeCkupEFdoReCs7zQDLI6rqsB9x3UZcW2hAH2WTzRmsQVj30+CnHBzuXYBC5iPlgYQd/Kjeb+mFH3b9Fz30BDGzHur5xw98C3fTGB65nCtf5duGJ1xb7bMYL7y5S6nWQF0hSuDt/tJNPzTfbdjm0M1zfhu0Zw32So7j+mcLub6gxv5XIGRCcso+4HuRRnaARXnECKMzJfCheRkXkSuPml52ZwyyCu+uDHuk3iiuepEENLqeE+Ymgpoy5q4K7pQ2rAnQ3B3RzKIlLOIFd0+tsMrrhGZp3w7Cwlx5n3wU+8N4/FuMkKJGa9Jrfk2eV3a4tO7b1CwVSqAskPGTaiHM0PAAVxOVon7nKtGFDsPxTPXgtLegUAV/4AspVQ9Tn+zQafZNbAYnCbsuKuZojjYHWmKjg8U10cEOL2k7jVprq4U384vZgePeX7fhAc9lzJJcaxaUAAV3aSNbHK0X49DS8/vnrRsvZiigssHZI81Dp9AYarZQp7RyOucLCwLq/MEWUtaGGWFK51UKKYlLxWB8I9kvAsiySurPf2AFz3WT0sGJL3K6Tus46wYGZhFoR7b9xzZeWtQ85wbzgszEfLdH2PoTWQu1mIG+6toPbBI2gdGX11i4S4Mt4L45KPJ5QSV8J7iwMIl3pqmiUlroS8O/B+tUvDMVdWXg7ukXrMtZ31ElPZxZbS0sulEO6zBnH3Yts8vmiQ99bTgAt2aE58i1JNg/f+AHGJZ+jB4sZx+bsyCZ0arO6+clhwkBvASPLOtrImcUmBFxT3L+T2utJPatgFcCnjCVBcG715kSJv0VPGhTu039DWUGXvDeMYtK25oSiuBe4TVpX3O0dd/HgCFnfPN7Kt+QdvF/a9krjhwUfQHndFeWfPArY17yqJ+96HnUH
548Re2cbWSFcbCTjhQWOukryWtGZ1wAu8tg/blhglOMksPLOjuEFT8w6UgsLPFwleTt83N8K2YKfggt7Ly7Md/m499K4zgXjO4PSQTPHfFzc6BKalJ7viSAc44PL0qPAAOIiQ8MHSNxUXMh7cSeSFUt8XOTo8pArLlfdpLzI0wr/k4KL3BGYeLYdMIG6DDjgC8X7PQ0X2Q0fgDGXpR11nfiIF5QumIOL7IaDobs+QmNCdWPyusjh8LylwbjYbvhT3HN9IW5M3s+4BxXdNFzswdFrh1w4qIMV1+UtI7cqtZK4i1SSUJP+CHluurpr8mJPBe2kH9OOvUjL7wNhwUcfCoo9tZKdpeOiB+/fl4vsVpF0H7naT8dFDy8P+8mwIMBddi/hkihMaNgRndmPrestzgXd85mPxF1472fsyKcjwsUPL4eJsCDEraUsj+NkjwJc9CkN0VHXsVPM08+OjuRF13AmnYQAF79OICxB2rEmLsCt0SZ/JuM00X0T6FJO+Oxfi3BvIXDD4EA4UaIlvh6DcAj+11hYEONOY+8f9AOm05Ui3Ht8HTIY7vlEXKtLKPVP8xsRLmGRi1VLfK9C3BqhmDctMQjvSiHMqEhcj0GZsgRvoY/jyt2h5CNxSZMSGNxdo+qSqvwlxE00labCI7RenIO7KPJoQ3DDXFeMq3B5rKX10iecuptypdYIh7spF5ZhLzndkOvgsLj7m4BbqGNxFS5w13iV4QB94+0mXBR5i7+gdz9/3OgMZhSuvDdow418AYUr7w1WfbXYZ99L40ans6NwXYVLWQ/bJ68PU3s9vbbkfeGYcrm0SmwgbeDg+kKfdBe2nsulFeIC7S7s3RxRWbiOEKLi3dYse1SdLmvZNFypQyz12eqOLxSu7GlqWmztADIUrnOUpy8MqLhKF8mq2plHxi3n19jWF+zicO1Gbrg9TwL3rpljQ6PjepLHbmppaHRcd5yTuLHrO7DqVvNpbDsDOVxvnFsUk8Ldz6OxFfuyuCoFB/koZgtweZllLolDcZjEEKfn0cvsu4pOSQE3866iWHcVcDPviTueCm7W8kIXCFNwM5a35arhZitvoe4p4mYaHFqeMm6G8hbqtjKul528PU9dXTezzKE41IDrVbKSd5YtqOJmlfe2h54W3Gzy3kK0wk0dNxN5WwMPh8vPd+cvMwhmhboYQ5Sez1865lvblacP13xJpz3SiVsam29nOnENu0NayVEGt/Ro0h3aL55mXJPRYRZyteLaBvviTiqfHK5rrLNojwzget6TGXcontlGcO1x04jjip4rietVDbhvoeeawnWr17pp/ZZrm8KduK/uinp7VDKI62mOvsXjEhnXwyWasz/X2dyssJmhnktJz9cWdP6/fbtXbRgGAgBcKHqA09JZt8RjH0JVPWaxnsASWZVFno3BeeyocUuGtMXWj+2WExh0i+9DnKTD4IxedsLSXDyoYzbtuTxXVHm8z+zksDw3l/dLW5qbx3u/HkpzUaTXL2sdrMUN13Hi+cDeHazITWzPdC1gVa6AIb5/0KOAtbnQvcWW7bgsUR4uxG24j022CRdeIgpC1wgbcUNBLFxg1vZxifJwwQ9mPpjp+syTuUv63YeQV8rMxrqERFHt+XdhJc0crBxTE+Xh3sDHX/5Ee31iVvbI98INJSHVj0XcmPbSx/tKcMO0G5RtHq1WXjxy3B03PJXvlLWmmYa2gTq6+7beFXcKw8wf/OfAnG8uwp1CLm7LDX+EWzAkLnGJS9zEL5Dbh8QlLnGJS1ziEpe4/5B7BVNlgl9CQ3wnAAAAAElFTkSuQmCC",notionLogo="/assets/notion-logo-OVZkis7M.png",excelLogo="/assets/excel-logo-CUqGQIur.png",canvaLogo="/assets/canva-logo-D7w-E0ro.png",photoshopLogo="/assets/photoshop-logo-B6dLJC10.png",illustratorLogo="/assets/illustrator-logo-C1qXaXHE.png",gcpLogo="/assets/gcp-logo-yMRX_PaX.png",githubLogo="/assets/github-logo-BoxFv9JT.png",googleDriveLogo="/assets/google-drive-logo-B0984wdh.png",Card=reactExports.forwardRef(({className:e,...s},i)=>jsxRuntimeExports.jsx("div",{ref:i,className:cn("rounded-lg border bg-card text-card-foreground shadow-sm",e),...s}));Card.displayName="Card";const CardHeader=reactExports.forwardRef(({className:e,...s},i)=>jsxRuntimeExports.jsx("div",{ref:i,className:cn("flex flex-col space-y-1.5 p-6",e),...s}));CardHeader.displayName="CardHeader";const CardTitle=reactExports.forwardRef(({className:e,...s},i)=>jsxRuntimeExports.jsx("h3",{ref:i,className:cn("text-2xl font-semibold leading-none tracking-tight",e),...s}));CardTitle.displayName="CardTitle";const CardDescription=reactExports.forwardRef(({className:e,...s},i)=>jsxRuntimeExports.jsx("p",{ref:i,className:cn("text-sm text-muted-foreground",e),...s}));CardDescription.displayName="CardDescription";const CardContent=reactExports.forwardRef(({className:e,...s},i)=>jsxRuntimeExports.jsx("div",{ref:i,className:cn("p-6 pt-0",e),...s}));CardContent.displayName="CardContent";const CardFooter=reactExports.forwardRef(({className:e,...s},i)=>jsxRuntimeExports.jsx("div",{ref:i,className:cn("flex items-center p-6 pt-0",e),...s}));CardFooter.displayName="CardFooter";const AppCard=({name:e,icon:s,tutorialCount:i,onClick:o})=>{const{t:a}=useTranslation();return jsxRuntimeExports.jsx(Card,{className:"cursor-pointer transition-all hover:shadow-card-hover animate-fade-in",onClick:o,children:jsxRuntimeExports.jsxs(CardContent,{className:"p-3 flex flex-col items-center gap-2",children:[jsxRuntimeExports.jsx("div",{className:"w-10 h-10 flex items-center justify-center",children:s?jsxRuntimeExports.jsx("img",{src:s,alt:e,className:"w-10 h-10 object-contain"}):jsxRuntimeExports.jsx(FileText,{className:"w-6 h-6"})}),jsxRuntimeExports.jsxs("div",{className:"text-center",children:[jsxRuntimeExports.jsx("h3",{className:"font-medium text-sm text-foreground line-clamp-1",children:e}),i>0&&jsxRuntimeExports.jsx("p",{className:"text-xs text-muted-foreground",children:a("appCard.tutorialCount",{count:i})})]})]})})},stepilyWordmark="/assets/stepily-wordmark-Bg6mZRQw.svg",socialItems=[{label:"Facebook",href:"https://www.facebook.com/people/Stepily/61591736800299/",icon:jsxRuntimeExports.jsx(Facebook,{className:"h-5 w-5","aria-hidden":"true"})},{label:"Instagram",href:"https://www.instagram.com/stepily_guides/",icon:jsxRuntimeExports.jsx(Instagram,{className:"h-5 w-5","aria-hidden":"true"})},{label:"TikTok",href:"https://www.tiktok.com/@stepily",icon:jsxRuntimeExports.jsx("svg",{viewBox:"0 0 24 24","aria-hidden":"true",className:"h-5 w-5 fill-current",children:jsxRuntimeExports.jsx("path",{d:"M16.6 5.82a4.28 4.28 0 0 1-3.14-1.4A4.85 4.85 0 0 1 12.5 1.5h-3.1v13.9a2.6 2.6 0 1 1-1.83-2.48v-3.12a5.72 5.72 0 1 0 4.93 5.66V8.15a7.34 7.34 0 0 0 4.1 1.25V6.29c-.03 0 .03 0 0 0Z"})})},{label:"YouTube",href:"https://www.youtube.com/@StepilyAI",icon:jsxRuntimeExports.jsx(Youtube,{className:"h-5 w-5","aria-hidden":"true"})},{label:"LinkedIn",href:"https://www.linkedin.com/company/stepily",icon:jsxRuntimeExports.jsx(Linkedin,{className:"h-5 w-5","aria-hidden":"true"})}],LandingFooter=()=>{const{t:e,i18n:s}=useTranslation(),i=useLocation(),o=d=>{i.pathname!=="/case-studies"||!d.startsWith("/case-studies")||window.requestAnimationFrame(()=>{var g;
548const h=d.includes("#")?decodeURIComponent(d.split("#")[1]):"";if(h){(g=document.getElementById(h))==null||g.scrollIntoView({behavior:"smooth",block:"start"});return}window.scrollTo({top:0,behavior:"smooth"})})},a=/^ja(-|$)/.test(s.language)?"/ja/blog":"/blog",c=[{title:e("footer.columns.company"),links:[{label:e("footer.privacyPolicy"),to:"/privacy-policy"},{label:e("footer.blog"),to:a,external:!0},{label:e("footer.caseStudiesLinks.all"),to:"/case-studies"}]},{title:e("footer.columns.product"),links:PRODUCT_LINKS.filter(d=>d.built).map(({slug:d})=>({label:e(`${productLinkKey(d)}.label`),to:productPath(d,s.language),external:!0}))},{title:e("footer.columns.caseStudies"),links:[{label:e("footer.caseStudiesLinks.concreteCms"),to:"/case-studies#portlandlabs"},{label:e("footer.caseStudiesLinks.womboCombo"),to:"/case-studies#wombo-combo"},{label:e("footer.caseStudiesLinks.plana"),to:"/case-studies#plana"}]}];return jsxRuntimeExports.jsx("footer",{className:"mt-20 border-t border-border/70 bg-[linear-gradient(180deg,hsl(222_72%_90%)_0%,hsl(0_0%_100%)_18%,hsl(0_0%_100%)_100%)]",children:jsxRuntimeExports.jsx("div",{className:"mx-auto max-w-7xl px-4 py-12 md:px-12 md:py-16",children:jsxRuntimeExports.jsxs("div",{className:"grid gap-10 lg:grid-cols-[minmax(280px,1.2fr)_minmax(0,1.8fr)] lg:items-start lg:gap-16",children:[jsxRuntimeExports.jsxs("div",{className:"flex flex-col gap-7",children:[jsxRuntimeExports.jsxs(Link,{to:"/",className:"inline-flex items-center gap-3",children:[jsxRuntimeExports.jsx("img",{src:stepilyLogo,alt:"Stepily logo",className:"h-10 w-auto"}),jsxRuntimeExports.jsx("img",{src:stepilyWordmark,alt:"Stepily",className:"h-7 w-auto"})]}),jsxRuntimeExports.jsx("p",{className:"max-w-md text-sm leading-6 text-muted-foreground md:text-base md:leading-7",children:e("footer.tagline")}),jsxRuntimeExports.jsx("div",{className:"flex flex-wrap items-center gap-2",children:socialItems.map(d=>d.href?jsxRuntimeExports.jsx("a",{href:d.href,target:"_blank",rel:"noreferrer","aria-label":d.label,className:"inline-flex h-10 w-10 items-center justify-center rounded-full border border-border bg-white text-foreground shadow-sm transition-colors hover:border-primary/40 hover:bg-primary/5 hover:text-primary",children:d.icon},d.label):jsxRuntimeExports.jsx("span",{className:"inline-flex h-10 w-10 items-center justify-center rounded-full border border-border bg-white text-foreground shadow-sm",children:d.label},d.label))})]}),jsxRuntimeExports.jsx("div",{className:"grid gap-8 sm:grid-cols-3",children:c.map(d=>jsxRuntimeExports.jsxs("div",{className:"space-y-4",children:[jsxRuntimeExports.jsx("h3",{className:"text-sm font-semibold uppercase tracking-[0.14em] text-foreground",children:d.title}),jsxRuntimeExports.jsx("ul",{className:"space-y-3",children:d.links.map(h=>jsxRuntimeExports.jsx("li",{children:"external"in h&&h.external?jsxRuntimeExports.jsx("a",{href:h.to,className:"text-sm leading-6 text-muted-foreground transition-colors hover:text-foreground",children:h.label}):jsxRuntimeExports.jsx(Link,{to:h.to,onClick:()=>o(h.to),className:"text-sm leading-6 text-muted-foreground transition-colors hover:text-foreground",children:h.label})},h.label))})]},d.title))})]})})})},SHOW_PROMO_BANNER=!1,SHOW_FREE_GUIDE_LIBRARY_LINKS=!1,Table=reactExports.forwardRef(({className:e,...s},i)=>jsxRuntimeExports.jsx("div",{className:"relative w-full overflow-auto",children:jsxRuntimeExports.jsx("table",{ref:i,className:cn("w-full caption-bottom text-sm",e),...s})}));Table.displayName="Table";const TableHeader=reactExports.forwardRef(({className:e,...s},i)=>jsxRuntimeExports.jsx("thead",{ref:i,className:cn("[&_tr]:border-b",e),...s}));TableHeader.displayName="TableHeader";const TableBody=reactExports.forwardRef(({className:e,...s},i)=>jsxRuntimeExports.jsx("tbody",{ref:i,className:cn("[&_tr:last-child]:border-0",e),...s}));TableBody.displayName="TableBody";const TableFooter=reactExports.forwardRef(({className:e,...s},i)=>jsxRuntimeExports.jsx("tfoot",{ref:i,className:cn("border-t bg-muted/50 font-medium [&>tr]:last:border-b-0",e),...s}));TableFooter.displayName="TableFooter";const TableRow=reactExports.forwardRef(({className:e,...s},i)=>jsxRuntimeExports.jsx("tr",{ref:i,className:cn("border-b transition-colors data-[state=selected]:bg-muted hover:bg-muted/50",e),...s}));TableRow.displayName="TableRow";const TableHead=reactExports.forwardRef(({className:e,...s},i)=>jsxRuntimeExports.jsx("th",{ref:i,className:cn("h-12 px-4 text-left align-middle font-medium text-muted-foreground [&:has([role=checkbox])]:pr-0",e),...s}));TableHead.displayName="TableHead";const TableCell=reactExports.forwardRef(({className:e,...s},i)=>jsxRuntimeExports.jsx("td",{ref:i,className:cn("p-4 align-middle [&:has([role=checkbox])]:pr-0",e),...s}));TableCell.displayName="TableCell";const TableCaption=reactExports.forwardRef(({className:e,...s},i)=>
548jsxRuntimeExports.jsx("caption",{ref:i,className:cn("mt-4 text-sm text-muted-foreground",e),...s}));TableCaption.displayName="TableCaption";const badgeVariants=cva("inline-flex items-center rounded-full 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",{variants:{variant:{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"}},defaultVariants:{variant:"default"}});function Badge({className:e,variant:s,...i}){return jsxRuntimeExports.jsx("div",{className:cn(badgeVariants({variant:s}),e),...i})}const TOTAL_COLS=7,ROWS=10,VISIBLE_COLS=3,SLOPE=.65,WAVE_DURATION=9,WAVE_SPREAD=.18,SNAKE_PATH=new Set(["2-0","2-1","2-2","2-3","3-3","4-3","4-4","4-5","4-6","5-6","6-6","6-7","6-8","6-9","7-9","8-9"]),GeometricHeroAnimation=()=>{const e=[];for(let s=0;s<ROWS;s++){const i=Math.round(s*SLOPE);for(let o=0;o<TOTAL_COLS;o++){const a=o>=i&&o<i+VISIBLE_COLS;e.push({col:o,row:s,visible:a,key:`${o}-${s}`})}}return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx("style",{children:` 549 @keyframes tile-lift { 550 0% { 551 transform: translateY(0px); 552 box-shadow: 0 2px 8px rgba(0,0,0,0.10), 0 1px 2px rgba(0,0,0,0.07); 553 } 554 6% { 555 transform: translateY(-16px); 556 box-shadow: 0 20px 38px rgba(0,0,0,0.17), 0 8px 16px rgba(0,0,0,0.10); 557 } 558 13% { 559 transform: translateY(0px); 560 box-shadow: 0 2px 8px rgba(0,0,0,0.10), 0 1px 2px rgba(0,0,0,0.07); 561 } 562 13.01%, 100% { 563 transform: translateY(0px); 564 box-shadow: 0 2px 8px rgba(0,0,0,0.10), 0 1px 2px rgba(0,0,0,0.07); 565 } 566 } 567 @keyframes tile-teal { 568 0% { 569 background: linear-gradient(145deg, #f5f5f5 0%, #e8e8e8 100%); 570 } 571 5% { 572 background: linear-gradient(145deg, hsl(174,50%,72%) 0%, hsl(174,45%,56%) 100%); 573 } 574 13% { 575 background: linear-gradient(145deg, #f5f5f5 0%, #e8e8e8 100%); 576 } 577 13.01%, 100% { 578 background: linear-gradient(145deg, #f5f5f5 0%, #e8e8e8 100%); 579 } 580 } 581 `}),jsxRuntimeExports.jsx("div",{style:{display:"grid",gridTemplateColumns:`repeat(${TOTAL_COLS}, 1fr)`,gridTemplateRows:`repeat(${ROWS}, 1fr)`,gap:"10px",width:"100%",height:"100%",padding:"8px",boxSizing:"border-box"},children:e.map(({col:s,row:i,visible:o,key:a})=>{const c=(s+i*.6)*WAVE_SPREAD,d=SNAKE_PATH.has(a);return jsxRuntimeExports.jsx("div",{style:{visibility:o?"visible":"hidden",borderRadius:"10px",background:"linear-gradient(145deg, #f5f5f5 0%, #e8e8e8 100%)",boxShadow:"0 2px 8px rgba(0,0,0,0.10), 0 1px 2px rgba(0,0,0,0.07)",animation:o?d?`tile-lift ${WAVE_DURATION}s ease-in-out ${c}s infinite, tile-teal ${WAVE_DURATION}s ease-in-out ${c}s infinite`:`tile-lift ${WAVE_DURATION}s ease-in-out ${c}s infinite`:"none"}},a)})})]})};function useLottieData$1(e){const[s,i]=reactExports.useState(null);return reactExports.useEffect(()=>{const o=new AbortController;return fetch(e,{signal:o.signal,cache:"no-store"}).then(a=>a.json()).then(i).catch(a=>{a.name!=="AbortError"&&i(null)}),()=>o.abort()},[e]),s}function useStaggeredVisible(e){const[s,i]=reactExports.useState(Array(e).fill(!1)),[o,a]=reactExports.useState(!1),c=reactExports.useRef(null);return reactExports.useEffect(()=>{const d=c.current;if(!d)return;let h=[];const g=()=>{h.forEach(clearTimeout),h=[],a(!0);const _=setTimeout(()=>{for(let _e=0;_e<e;_e++){const $=setTimeout(()=>{i(et=>{const it=[...et];return it[_e]=!0,it})},_e*3e3);h.push($)}},300);h.push(_)},b=new IntersectionObserver(([_])=>{_.isIntersecting&&(b.disconnect(),g())},{threshold:.2});return b.observe(d),()=>{b.disconnect(),h.forEach(clearTimeout)}},[e]),{ref:c,visible:s,inView:o}}const SequenceAnimation=({src:e})=>{const s=useLottieData$1(e);return s?jsxRuntimeExports.jsx(Lottie,{animationData:s,loop:!0,autoplay:!0,style:{width:"100%",height:"100%"}}):null},ANIMATION_LAYOUT_DESKTOP=[{width:420,height:250,scale:1.42},{width:420,height:250,scale:1.42},{width:360,height:250,scale:1.72}],ANIMATION_LAYOUT_MOBILE=[{width:168,height:100,scale:1.42},{width:168,height:100,scale:1.42},{width:140,height:98,scale:1.72}],stepStyle=e=>({opacity:e?1:0,transform:e?"translateY(0)":"translateY(20px)",transition:"opacity 0.5s ease, transform 0.5s ease"}),HomeAnimations=()=>{const{t:e}=useTranslation(),{ref:s,visible:i}=useStaggeredVisible(5),a=useIsMobile()?ANIMATION_LAYOUT_MOBILE:ANIMATION_LAYOUT_DESKTOP;return jsxRuntimeExports.jsx("section",{className:"w-full py-16 px-8 md:px-16",children:jsxRuntimeExports.jsx("div",{ref:s,className:"max-w-[96vw] mx-auto",children:jsxRuntimeExports.jsxs("div",{className:"flex flex-col md:flex-row items-start justify-between gap-16 md:gap-0",children:[jsxRuntimeExports.jsxs("div",{className:"flex-1 flex flex-col items-center",style:stepStyle(i[0]),children:[jsxRuntimeExports.jsx("p",{className:"text-center text-lg md:text-2xl font-semibold leading-tight tracking-tight text-foreground mb-5 max-w-[26ch]",children:e("homeAnimations.step1")}),jsxRuntimeExports.jsx("div",{className:"flex min-h-[180px] md:min-
581h-[390px] items-start justify-center overflow-hidden pt-1",children:jsxRuntimeExports.jsx("div",{className:"origin-center",style:{width:a[0].width,height:a[0].height,transform:`scale(${a[0].scale})`},children:jsxRuntimeExports.jsx(SequenceAnimation,{src:"/animations/startrecordinganimation.json"})})})]}),jsxRuntimeExports.jsxs("div",{className:"flex-1 flex flex-col items-center",style:stepStyle(i[1]),children:[jsxRuntimeExports.jsx("p",{className:"text-center text-lg md:text-2xl font-semibold leading-tight tracking-tight text-foreground mb-5 max-w-[26ch]",children:e("homeAnimations.step2")}),jsxRuntimeExports.jsx("div",{className:"flex min-h-[180px] md:min-h-[390px] items-start justify-center overflow-hidden pt-1",children:jsxRuntimeExports.jsx("div",{className:"origin-center",style:{width:a[1].width,height:a[1].height,transform:`scale(${a[1].scale})`},children:jsxRuntimeExports.jsx(SequenceAnimation,{src:"/animations/clickinbrowser.json"})})})]}),jsxRuntimeExports.jsxs("div",{className:"flex-1 flex flex-col items-center",style:stepStyle(i[2]),children:[jsxRuntimeExports.jsx("p",{className:"text-center text-lg md:text-2xl font-semibold leading-tight tracking-tight text-foreground mb-7 max-w-[26ch]",children:e("homeAnimations.step3")}),jsxRuntimeExports.jsx("div",{className:"flex min-h-[180px] md:min-h-[390px] items-start justify-center overflow-hidden pt-1",children:jsxRuntimeExports.jsx("div",{className:"origin-center",style:{width:a[2].width,height:a[2].height,transform:`scale(${a[2].scale})`},children:jsxRuntimeExports.jsx(SequenceAnimation,{src:"/animations/getguidesteps.json"})})})]})]})})})},useExtensionStatus=()=>{const[e,s]=reactExports.useState({installed:!1,isPinned:null,capabilities:[]}),[i,o]=reactExports.useState(!1),a=reactExports.useRef(null),c=reactExports.useRef(()=>{});return reactExports.useEffect(()=>{let d=!0;const h=()=>{var _e;(_e=a.current)==null||_e.call(a);const{promise:b,cleanup:_}=getExtensionPinStatus();a.current=_,b.then($=>{a.current===_&&(a.current=null),d&&(s($),o(!0))})};c.current=h,h();const g=()=>{document.visibilityState==="visible"&&h()};return window.addEventListener("focus",g),document.addEventListener("visibilitychange",g),()=>{var b;d=!1,(b=a.current)==null||b.call(a),a.current=null,window.removeEventListener("focus",g),document.removeEventListener("visibilitychange",g)}},[]),{...e,checked:i,refresh:()=>c.current()}},TutorialCard=({id:e,title:s,author:i,authorAvatar:o,authorProfileUrl:a,app:c,rating:d=0,ratingCount:h=0,isSaved:g=!1,onSave:b,onClick:_,onEdit:_e,onShare:$,onDuplicate:et,onMoveToTeam:it,teamName:rt,onTrash:lt})=>{const{t:st}=useTranslation(),ot=c?getAppLogoUrl(c):null,nt=at=>{if(at.stopPropagation(),!e)return;const ct=`${window.location.origin}/t/${e}`;navigator.clipboard.writeText(ct).then(()=>{ue.success(st("common.toasts.linkCopiedToClipboard"))}).catch(()=>{ue.error(st("tutorialViewer.toasts.linkCopyFailed"))})};return jsxRuntimeExports.jsxs(Card,{className:"tutorial-card cursor-pointer transition-all hover:shadow-card-hover animate-fade-in p-4 flex flex-col gap-3 group relative overflow-hidden",onClick:_,children:[jsxRuntimeExports.jsxs("div",{className:"flex items-center gap-2",children:[ot?jsxRuntimeExports.jsx("img",{src:ot,alt:c||"",className:"w-7 h-7 object-contain rounded"}):jsxRuntimeExports.jsx("div",{className:"w-7 h-7 rounded bg-muted"}),jsxRuntimeExports.jsx("span",{className:"text-sm text-muted-foreground truncate",children:c||st("allTutorials.generalApp")}),(e||_e||$||et||it||lt)&&jsxRuntimeExports.jsxs("div",{className:"ml-auto flex items-center gap-1",children:[e&&jsxRuntimeExports.jsx("button",{onClick:nt,className:"tutorial-card__quick-action rounded-full p-1 transition-opacity hover:bg-muted opacity-0 group-hover:opacity-100",title:st("tutorialViewer.copyLink"),children:jsxRuntimeExports.jsx(Link$1,{className:"w-3.5 h-3.5 text-foreground"})}),b&&jsxRuntimeExports.jsx("button",{onClick:at=>{at.stopPropagation(),b()},className:`tutorial-card__quick-action rounded-full p-1 transition-opacity hover:bg-muted ${g?"opacity-100":"opacity-0 group-hover:opacity-100"}`,title:st(g?"tutorialCard.unsave":"tutorialCard.saveForLater"),children:jsxRuntimeExports.jsx(Bookmark,{className:`w-3.5 h-3.5 ${g?"fill-current text-primary":"text-foreground"}`})}),(_e||$||et||it||lt)&&jsxRuntimeExports.jsxs(DropdownMenu,{children:[jsxRuntimeExports.jsx(DropdownMenuTrigger,{asChild:!0,children:jsxRuntimeExports.jsx("button",{onClick:at=>at.stopPropagation(),className:"tutorial-card__quick-action bg-background/90 backdrop-blur-sm text-foreground rounded-full p-1 opacity-0 group-hover:opacity-100 transition-opacity hover:bg-muted",title:st("dashboard.uploadCard.moreOptions"),children:jsxRuntimeExports.jsx(Ellipsis,{className:"w-3.5 h-3.5"})})}),jsxRuntimeExports.jsxs(DropdownMenuContent,{align:"end",onClick:at=>at.stopPropagation(),children:[_e&&jsxRuntimeExports.jsxs(DropdownMenuItem,{onClick:at=>{at.stopPropagation(),_e()},className:"gap-2",children:[jsxRuntimeExports.jsx(Pencil,{className:"w-3.5 h-3.5"}),st("tutorialCard.edit")]}),$&&jsxRuntimeExports.jsxs(DropdownMenuItem,{onClick:at=>{at.stopPropagation(),$()},className:"gap-2",children:[jsxRuntimeExports.jsx(Share2,{className:"w-3.5 h-3.5"}),st("tutorialCard.share")]}),et&&jsxRuntimeExports.jsxs(DropdownMenuItem,{onClick:at=>{at.stopPropagation(),et()},className:"gap-2",children:[jsxRuntimeExports.jsx(Copy,{className:"w-3.5 h-3.5"}),st("tutorialCard.duplicate")]}),it&&jsxRuntimeExports.jsxs(DropdownMenuItem,{onClick:at=>{at.stopPropagation(),it()},className:"gap-2",children:[jsxRuntimeExports.jsx(ArrowRight,{className:"w-3.5 h-3.5"}),rt??st("dashboard.moveToTeam")]}),lt&&jsxRuntimeExports.jsxs(DropdownMenuItem,{onClick:at=>{at.stopPropagation(),lt()},className:"gap-2 text-destructive focus:text-destructive",children:[jsxRuntimeExports.jsx(Trash2,{className:"w-3.5 h-3.5"}),st("tutorialCard.moveToTrash")]})]})]})]})]}),jsxRuntimeExports.jsx("h3",{className:"font-semibold text-foreground line-clamp-2 text-sm leading-snug",children:s}),jsxRuntimeExports.jsxs("div",{className:"flex items-center gap-2",children:[jsxRuntimeExports.jsxs(Avatar,{className:"w-5 h-5",children:[jsxRuntimeExports.jsx(AvatarImage,{src:o}),jsxRuntimeExports.jsx(AvatarFallback,{className:"text-[10px]",children:i[0]})]}),a?jsxRuntimeExports.jsx(Link,{to:a,onClick:at=>at.stopPropagation(),className:"text-xs text-muted-foreground truncate hover:underline",children:i}):jsxRuntimeExports.jsx("span",{className:"text-xs text-muted-foreground truncate",children:i})]}),d>0&&jsxRuntimeExports.jsx("div",{className:"flex items-center text-xs text-muted-foreground mt-auto min-w-0",children:jsxRuntimeExports.jsxs("span",{className:"whitespace-nowrap",children:[d.toFixed(1)," â
",h>0&&` (${h})`]})})]})},RECENT_LIMIT=3,getScreenshotUrl=(e,s)=>{const{data:i}=supabase.storage.from("tutorial-screenshots").getPublicUrl(`extension-uploads/${e}/${s}`);return i.publicUrl},RecentGuidesSection=()=>{var et,it;const{t:e}=useTranslation(),{user:s}=useAuth(),i=useNavigate(),[o,a]=reactExports.useState([]),[c,d]=reactExports.useState([]),[h,g]=reactExports.useState(!1);reactExports.useEffect(()=>{if(!s)return;let rt=!0;const lt=async()=>{const{data:ot}=await supabase.from("tutorials").select("extension_upload_id").eq("user_id",s.id).eq("is_published",!0).not("extension_upload_id","is",null),nt=(ot??[]).map(pt=>
581pt.extension_upload_id).filter(Boolean);let at=supabase.from("extension_uploads").select("*, tutorials(title, total_steps)").eq("user_id",s.id).eq("source","extension").in("upload_status",["in_progress","completed","pending"]).order("created_at",{ascending:!1}).limit(RECENT_LIMIT);nt.length>0&&(at=at.not("id","in",`(${nt.join(",")})`));const{data:ct,error:dt}=await at;return dt?(console.error("Error fetching recent drafts:",dt),[]):ct??[]},st=async()=>{const{data:ot,error:nt}=await supabase.from("tutorials").select("id, title, app, rating, rating_count, profiles (username, avatar_url)").eq("user_id",s.id).eq("is_published",!0).eq("is_trashed",!1).order("updated_at",{ascending:!1}).limit(RECENT_LIMIT);return nt?(console.error("Error fetching recent published guides:",nt),[]):ot??[]};return Promise.all([lt(),st()]).then(([ot,nt])=>{rt&&(a(ot),d(nt),g(!0))}),()=>{rt=!1}},[s]);const b=async rt=>{var lt;if(s)try{const{data:st}=await supabase.from("tutorials").select("id").eq("extension_upload_id",rt.id).eq("user_id",s.id).maybeSingle();if(st!=null&&st.id){i(`/t/${st.id}?mode=edit`);return}const{data:ot,error:nt}=await supabase.from("tutorials").insert({user_id:s.id,title:rt.manifest.name||e("recentGuides.newTutorial"),is_published:!1,visibility:"private",extension_upload_id:rt.id,total_steps:((lt=rt.manifest.steps)==null?void 0:lt.length)||0}).select().single();if(nt)throw nt;
581i(`/t/${ot.id}?mode=edit`)}catch(st){ue.error(e("recentGuides.errors.openDraftFailed",{message:st.message}))}};if(!h||o.length===0&&c.length===0)return null;const _=(et=s==null?void 0:s.user_metadata)==null?void 0:et.avatar_url,_e=((it=s==null?void 0:s.user_metadata)==null?void 0:it.username)||e("recentGuides.defaultUsername"),$=(_e||(s==null?void 0:s.email)||"U")[0];return jsxRuntimeExports.jsxs("div",{className:"mt-6 space-y-8",children:[o.length>0&&jsxRuntimeExports.jsxs("section",{children:[jsxRuntimeExports.jsxs("div",{className:"mb-3 flex items-center justify-between",children:[jsxRuntimeExports.jsx("h3",{className:"text-base font-semibold text-foreground",children:e("recentGuides.draftsHeading")}),jsxRuntimeExports.jsx(Link,{to:"/dashboard?tab=extension-uploads",className:"text-xs font-medium text-muted-foreground transition-colors hover:text-foreground",children:e("recentGuides.viewAll")})]}),jsxRuntimeExports.jsx("div",{className:"grid grid-cols-2 gap-4 md:grid-cols-3 lg:grid-cols-4 xl:grid-cols-5",children:o.map(rt=>{var lt,st,ot,nt,at,ct,dt,pt,mt;return jsxRuntimeExports.jsxs(Card,{className:"group cursor-pointer overflow-hidden transition-all animate-fade-in hover:shadow-card-hover",onClick:()=>void b(rt),children:[jsxRuntimeExports.jsxs("div",{className:"relative aspect-video overflow-hidden bg-gradient-primary",children:[rt.manifest.steps&&rt.manifest.steps.length>0?jsxRuntimeExports.jsx("img",{src:getScreenshotUrl(rt.id,rt.manifest.steps[0].filename),alt:((st=(lt=rt.tutorials)==null?void 0:lt[0])==null?void 0:st.title)||rt.manifest.name,className:"h-full w-full object-cover"}):jsxRuntimeExports.jsx("div",{className:"flex h-full w-full items-center justify-center font-semibold text-white",children:((nt=(ot=rt.tutorials)==null?void 0:ot[0])==null?void 0:nt.title)||rt.manifest.name}),jsxRuntimeExports.jsx("div",{className:"absolute right-2 top-2",children:jsxRuntimeExports.jsx("span",{className:`rounded-full px-2 py-1 text-xs font-semibold ${rt.upload_status==="completed"?"bg-green-500/80 text-white":"bg-yellow-500/80 text-white"}`,children:rt.upload_status==="completed"?e("recentGuides.statusCompleted"):e("recentGuides.statusPending")})})]}),jsxRuntimeExports.jsxs(CardContent,{className:"p-4",children:[jsxRuntimeExports.jsx("h3",{className:"mb-2 line-clamp-2 font-semibold text-foreground",children:((ct=(at=rt.tutorials)==null?void 0:at[0])==null?void 0:ct.title)||rt.manifest.name}),jsxRuntimeExports.jsxs("div",{className:"mb-2 flex items-center gap-2",children:[jsxRuntimeExports.jsxs(Avatar,{className:"h-6 w-6",children:[jsxRuntimeExports.jsx(AvatarImage,{src:_}),jsxRuntimeExports.jsx(AvatarFallback,{children:$})]}),jsxRuntimeExports.jsx("span",{className:"text-sm text-foreground",children:_e})]}),jsxRuntimeExports.jsx("div",{className:"flex items-center gap-4 text-sm text-muted-foreground",children:jsxRuntimeExports.jsx("span",{children:e("recentGuides.steps",{count:((pt=(dt=rt.tutorials)==null?void 0:dt[0])==null?void 0:pt.total_steps)??((mt=rt.manifest.steps)==null?void 0:mt.length)??0})})})]})]},rt.id)})})]}),c.length>0&&jsxRuntimeExports.jsxs("section",{children:[jsxRuntimeExports.jsxs("div",{className:"mb-3 flex items-center justify-between",children:[jsxRuntimeExports.jsx("h3",{className:"text-base font-semibold text-foreground",children:e("recentGuides.publishedHeading")}),jsxRuntimeExports.jsx(Link,{to:"/dashboard?tab=published",className:"text-xs font-medium text-muted-foreground transition-colors hover:text-foreground",children:e("recentGuides.viewAll")})]}),jsxRuntimeExports.jsx("div",{className:"grid grid-cols-2 gap-4 md:grid-cols-3 lg:grid-cols-4 xl:grid-cols-5",children:c.map(rt=>{var lt,st;return jsxRuntimeExports.jsx(TutorialCard,{id:rt.id,title:rt.title,author:((lt=rt.profiles)==null?void 0:lt.username)||_e,authorAvatar:((st=rt.profiles)==null?void 0:st.avatar_url)||_,app:rt.app,rating:rt.rating||0,ratingCount:rt.rating_count||0,onClick:()=>i(`/t/${rt.id}`)},rt.id)})})]})]})};function useLottieData(e){const[s,i]=reactExports.useState(null);return reactExports.useEffect(()=>{const o=new AbortController;return fetch(e,{signal:o.signal}).then(a=>a.json()).then(i).catch(a=>{a.name!=="AbortError"&&i(null)}),()=>o.abort()},[e]),s}const SearchExtensionAnimation=()=>{const e=useLottieData("/animations/searchguidesanimation.json");return e?jsxRuntimeExports.jsx(Lottie,{animationData:e,loop:!0,autoplay:!0,style:{width:"100%",height:"100%"}}):null},RotatingAnimation=()=>
581{const e=useLottieData("/rotatingguidesanimation.json");return e?jsxRuntimeExports.jsx(Lottie,{animationData:e,loop:!0,autoplay:!0,style:{width:"100%",height:"100%"}}):null},KnowledgeBaseAnimation=()=>{const e=useLottieData("/animations/knowledgebaseanimation-nw.json");return e?jsxRuntimeExports.jsx(Lottie,{animationData:e,loop:!0,autoplay:!0,style:{width:"100%",height:"100%"}}):null},HomeContent=()=>{const{t:e}=useTranslation(),s=useNavigate(),[i,o]=reactExports.useState([]);reactExports.useEffect(()=>{a()},[]);const a=async()=>{const{data:h,error:g}=await supabase.from("tutorials").select(` 582 id, 583 title, 584 category, 585 likes_count, 586 rating, 587 rating_count, 588 total_steps, 589 estimated_time, 590 profiles!inner (username, avatar_url, is_official_creator) 591 `).eq("is_published",!0).eq("profiles.is_official_creator",!0).order("wilson_score",{ascending:!1}).limit(5);!g&&h&&o(h)},c=h=>h===1?"text-yellow-500":h===2?"text-gray-400":h===3?"text-orange-600":"text-muted-foreground",d=h=>h<=3?jsxRuntimeExports.jsx(Trophy,{className:`w-5 h-5 ${c(h)}`}):null;return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsxs("section",{className:"container py-16 px-4 md:px-8",children:[jsxRuntimeExports.jsx("div",{className:"flex items-center justify-between mb-8",children:jsxRuntimeExports.jsx("h2",{className:"text-3xl font-bold",children:e("homeContent.popularApps")})}),jsxRuntimeExports.jsx("div",{className:"grid grid-cols-3 md:grid-cols-4 lg:grid-cols-6 gap-3",children:apps.map(h=>jsxRuntimeExports.jsx(AppCard,{...h,onClick:()=>s(`/tutorials?q=${encodeURIComponent(h.name)}`)},h.name))}),jsxRuntimeExports.jsx("div",{className:"text-center mt-8",children:jsxRuntimeExports.jsx(Button,{asChild:!0,size:"lg",children:jsxRuntimeExports.jsx(Link,{to:"/auth",children:e("homeContent.exploreLibrary")})})})]}),jsxRuntimeExports.jsxs("section",{className:"container py-16 px-4 md:px-8",children:[jsxRuntimeExports.jsx("div",{className:"flex items-center justify-between mb-8",children:jsxRuntimeExports.jsx("h2",{className:"text-3xl font-bold",children:e("homeContent.topTutorials")})}),jsxRuntimeExports.jsx(Card,{children:jsxRuntimeExports.jsxs(Table,{children:[jsxRuntimeExports.jsx(TableHeader,{children:jsxRuntimeExports.jsxs(TableRow,{children:[jsxRuntimeExports.jsx(TableHead,{className:"w-20",children:e("homeContent.table.rank")}),jsxRuntimeExports.jsx(TableHead,{children:e("homeContent.table.tutorial")}),jsxRuntimeExports.jsx(TableHead,{children:e("homeContent.table.creator")}),jsxRuntimeExports.jsx(TableHead,{children:e("homeContent.table.category")}),jsxRuntimeExports.jsx(TableHead,{className:"text-right",children:e("homeContent.table.likes")}),jsxRuntimeExports.jsx(TableHead,{className:"text-right",children:e("homeContent.table.rating")})]})}),jsxRuntimeExports.jsx(TableBody,{children:i.length===0?jsxRuntimeExports.jsx(TableRow,{children:jsxRuntimeExports.jsx(TableCell,{colSpan:6,className:"text-center py-8 text-muted-foreground",children:e("homeContent.noTutorialsYet")})}):i.map((h,g)=>{var b,_,_e;return jsxRuntimeExports.jsxs(TableRow,{className:"hover:bg-muted/50 transition-colors",children:[jsxRuntimeExports.jsx(TableCell,{children:jsxRuntimeExports.jsxs("div",{className:"flex items-center gap-2",children:[d(g+1),jsxRuntimeExports.jsxs("span",{className:`font-bold ${c(g
591+1)}`,children:["#",g+1]})]})}),jsxRuntimeExports.jsx(TableCell,{children:jsxRuntimeExports.jsx("div",{className:"font-medium",children:h.title})}),jsxRuntimeExports.jsx(TableCell,{children:jsxRuntimeExports.jsxs("div",{className:"flex items-center gap-3",children:[jsxRuntimeExports.jsxs(Avatar,{className:"w-8 h-8",children:[jsxRuntimeExports.jsx(AvatarImage,{src:((b=h.profiles)==null?void 0:b.avatar_url)||void 0}),jsxRuntimeExports.jsx(AvatarFallback,{children:(((_=h.profiles)==null?void 0:_.username)||"A")[0].toUpperCase()})]}),jsxRuntimeExports.jsx("span",{children:((_e=h.profiles)==null?void 0:_e.username)||e("homeContent.anonymous")})]})}),jsxRuntimeExports.jsx(TableCell,{children:jsxRuntimeExports.jsx(Badge,{variant:"outline",children:h.category||e("homeContent.uncategorized")})}),jsxRuntimeExports.jsx(TableCell,{className:"text-right",children:jsxRuntimeExports.jsxs("div",{className:"flex items-center justify-end gap-1",children:[jsxRuntimeExports.jsx(ThumbsUp,{className:"w-4 h-4 text-muted-foreground"}),jsxRuntimeExports.jsx("span",{className:"font-medium",children:(h.likes_count||0).toLocaleString()})]})}),jsxRuntimeExports.jsx(TableCell,{className:"text-right",children:jsxRuntimeExports.jsxs("div",{className:"flex items-center justify-end gap-1",children:[jsxRuntimeExports.jsx(Star,{className:"w-4 h-4 text-accent fill-accent"}),jsxRuntimeExports.jsx("span",{className:"font-medium",children:(h.rating||0).toFixed(1)}),(h.rating_count||0)>0&&jsxRuntimeExports.jsxs("span",{className:"text-muted-foreground",children:["· (",h.rating_count,")"]})]})})]},h.id)})})]})}),jsxRuntimeExports.jsx("div",{className:"mt-4 text-center",children:jsxRuntimeExports.jsx(Button,{variant:"link",asChild:!0,children:jsxRuntimeExports.jsxs(Link,{to:"/leaderboard",className:"flex items-center gap-2",children:[jsxRuntimeExports.jsx(Star,{className:"w-4 h-4"}),e("homeContent.viewFullLeaderboard"),jsxRuntimeExports.jsx(ChevronRight,{className:"w-4 h-4"})]})})})]})]})},apps=[{name:"Figma",icon:figmaLogo,tutorialCount:0},{name:"n8n",icon:n8nLogo,tutorialCount:0},{name:"Make",icon:makeLogo,tutorialCount:0},{name:"Zapier",icon:zapierLogo,tutorialCount:0},{name:"Notion",icon:notionLogo,tutorialCount:0},{name:"Excel",icon:excelLogo,tutorialCount:0},{name:"Canva",icon:canvaLogo,tutorialCount:0},{name:"Photoshop",icon:photoshopLogo,tutorialCount:0},{name:"Illustrator",icon:illustratorLogo,tutorialCount:0},{name:"Google Cloud Platform",icon:gcpLogo,tutorialCount:0},{name:"Github",icon:githubLogo,tutorialCount:0},{name:"Google Drive",icon:googleDriveLogo,tutorialCount:0}],AuthenticatedHome=()=>{const{t:e}=useTranslation(),{installed:s,checked:i}=useExtensionStatus();return jsxRuntimeExports.jsx("div",{className:"bg-background",children:jsxRuntimeExports.jsxs("section",{className:"container py-8 px-4 md:px-8",children:[jsxRuntimeExports.jsx("h2",{className:"text-2xl font-bold mb-2",children:e("authenticatedHome.title")}),i&&!s&&jsxRuntimeExports.jsxs("a",{href:CHROME_WEB_STORE_URL,target:"_blank",rel:"noopener noreferrer",className:"group mt-6 flex min-h-[160px] w-full flex-col items-center justify-center gap-3 rounded-2xl border-2 border-dashed border-border bg-card/50 p-8 text-center transition-colors hover:border-primary/60 hover:bg-primary/5",children:[jsxRuntimeExports.jsx("span",{className:"flex h-14 w-14 items-center justify-center rounded-full bg-primary/10 text-primary transition-colors group-hover:bg-primary/15",children:jsxRuntimeExports.jsx(Plus,{className:"h-7 w-7"})}),jsxRuntimeExports.jsx("span",{className:"text-lg font-semibold text-foreground",children:e("authenticatedHome.createGuide.title")}),jsxRuntimeExports.jsx("span",{className:"max-w-sm text-sm leading-6 text-muted-foreground",children:e("authenticatedHome.createGuide.description")})]}),jsxRuntimeExports.jsx(RecentGuidesSection,{}),jsxRuntimeExports.jsxs(Card,{className:"relative mt-6 overflow-hidden rounded-2xl border-border bg-card shadow-card",children:[jsxRuntimeExports.jsx("div",{className:"absolute inset-0",style:{background:"radial-gradient(ellipse at 12% 18%, hsl(174 45% 64% / 0.20) 0%, transparent 38%), radial-gradient(ellipse at 92% 72%, hsl(var(--button-hover) / 0.10) 0%, transparent 34%)"}}),jsxRuntimeExports.jsxs("div",{className:"relative z-10 grid gap-6 p-6 md:grid-cols-[1.2fr_0.8fr] md:p-8",children:[jsxRuntimeExports.jsxs("div",{className:"space-y-4",children:[jsxRuntimeExports.jsxs("div",{className:"inline-flex items-center gap-2 rounded-full border border-primary/30 bg-primary/10 px-3 py-1 text-xs font-semibold uppercase tracking-[0.16em] text-foreground",children:[jsxRuntimeExports.jsx(Sparkles,{className:"h-3.5 w-3.5 text-primary"}),e("authenticatedHome.autoguidesBadge")]}),jsxRuntimeExports.jsxs("div",{className:"space-y-2",children:[jsxRuntimeExports.jsx("h3",{className:"text-2xl md:text-3xl font-semibold leading-tight text-foreground",children:e("authenticatedHome.pitch.title")}),jsxRuntimeExports.jsx("p",{className:"max-w-2xl text-sm md:text-base leading-7 text-muted-foreground",children:e("authenticatedHome.pitch.description")})]}),jsxRuntimeExports.jsx(Button,{asChild:!0,className:"w-fit",children:jsxRuntimeExports.jsx(Link,{to:"/book-demo",children:e("authenticatedHome.bookDemo")})})]}),jsxRuntimeExports.jsxs("div",{className:"grid gap-3 rounded-xl border border-border/80 bg-background/80 p-4 shadow-sm backdrop-blur",children:[jsxRuntimeExports.jsxs("div",{className:"flex items-start gap-3 rounded-lg border border-border/80 bg-background/90 p-4",children:[jsxRuntimeExports.jsx("div",{className:"flex h-9 w-9 shrink-0 items-center justify-center rounded-md bg-primary/15 text-primary",children:jsxRuntimeExports.jsx(Bot,{className:"h-4 w-4"})}),jsxRuntimeExports.jsxs("div",{children:[jsxRuntimeExports.jsx("p",{className:"text-sm font-semibold text-foreground",children:e("authenticatedHome.whoItsFor.title")}),jsxRuntimeExports.jsx("ul",{className:"mt-1 space-y-1 text-sm leading-6 text-muted-foreground",children:e("authenticatedHome.whoItsFor.items",{returnObjects:!0}).map(o=>jsxRuntimeExports.jsx("li",{children:o},o))})]})]}),jsxRuntimeExports.jsxs("div",{className:"flex items-start gap-3 rounded-lg border border-border/80 bg-background/90 p-4",children:[jsxRuntimeExports.jsx("div",{className:"flex h-9 w-9 shrink-0 items-center justify-center rounded-md bg-accent/15 text-accent",children:jsxRuntimeExports.jsx(Route$1,{className:"h-4 w-4"})}),jsxRuntimeExports.jsxs("div",{children:[jsxRuntimeExports.jsx("p",{className:"text-sm font-semibold text-foreground",children:e("authenticatedHome.whatYouGet.title")}),jsxRuntimeExports.jsx("p",{className:"mt-1 text-sm leading-6 text-muted-foreground",children:e("authenticatedHome.whatYouGet.description")})]})]})]})]})]})]})})},Home=()=>{const{t:e}=useTranslation();return jsxRuntimeExports.jsxs("div",{className:"relative min-h-screen bg-background",children:[jsxRuntimeExports.jsx(SEO,{title:"Stepily â AI Step-by-Step Guide Maker for Teams & Individuals",description:"Automatically capture and share step-by-step visual guides, SOPs, and training docs. The easiest way to document any workflow â free to start.",path:"/",jsonLd:{"@context":"https://schema.org","@type":"SoftwareApplication",name:"Stepily",applicationCategory:"BusinessApplication",operatingSystem:"Web, Chrome",description:"AI-powered tool that automatically captures step-by-step visual guides, SOPs, and training documentation from any workflow.",offers:{"@type":"Offer",price:"0",priceCurrency:"USD"},url:"https://stepily.com"}}),jsxRuntimeExports.jsx("div",{className:"absolute inset-0 pointer-events-none overflow-hidden",style:{zIndex:0},children:jsxRuntimeExports.jsx("div",{className:"h-full max-w-[86 vw] mx-auto border-x-2 border-border hidden md:block"})}),jsxRuntimeExports.jsxs("div",{className:"sticky top-0 z-50",children:[SHOW_PROMO_BANNER,jsxRuntimeExports.jsx(Header,{showSearch:!1,showNav:!1,sticky:!1})]}),jsxRuntimeExports.jsxs("section",{className:"relative",children:[jsxRuntimeExports.jsx("div",{className:"absolute hidden md:block pointer-events-none",style:{to
591p:"-80px",right:0,width:"36%",height:"calc(100% + 80px)",zIndex:2},children:jsxRuntimeExports.jsx(GeometricHeroAnimation,{})}),jsxRuntimeExports.jsx("div",{className:"relative max-w-6xl mx-auto py-20 md:py-28 px-4 md:px-12",style:{zIndex:3},children:jsxRuntimeExports.jsxs("div",{className:"flex flex-col max-w-2xl gap-6",children:[jsxRuntimeExports.jsx("h1",{className:"text-4xl md:text-5xl lg:text-6xl font-normal leading-snug tracking-tight text-foreground",children:e("home.hero.title")}),jsxRuntimeExports.jsx("p",{className:"text-2xl md:text-3xl lg:text-4xl text-muted-foreground leading-snug font-normal",children:e("home.hero.subtitle")}),jsxRuntimeExports.jsxs("div",{className:"flex gap-8 mt-2",children:[jsxRuntimeExports.jsx(Button,{size:"sm",asChild:!0,className:"scale-[1.15] origin-left",children:jsxRuntimeExports.jsx(Link,{to:"/auth",children:e("home.hero.getFree")})}),jsxRuntimeExports.jsx(Button,{size:"sm",variant:"default",asChild:!0,className:"scale-[1.15] origin-left border border-muted-foreground bg-muted-foreground text-background shadow-lg shadow-black/10 transition-colors hover:border-foreground hover:bg-foreground hover:text-background",children:jsxRuntimeExports.jsx(Link,{to:"/auth",children:e("home.hero.bookDemo")})})]}),jsxRuntimeExports.jsx("div",{className:"flex flex-wrap gap-3 mt-6",children:[{label:e("home.hero.chips.onboarding"),icon:"ð¤"},{label:e("home.hero.chips.sops"),icon:"â¡"},{label:e("home.hero.chips.trainingDocs"),icon:"ð"},{label:e("home.hero.chips.implementSoftware"),icon:"â
"},{label:e("home.hero.chips.assistCustomers"),icon:"ð§"},{label:e("home.hero.chips.somethingElse"),icon:"â¶"}].map(({label:s,icon:i})=>jsxRuntimeExports.jsxs(Link,{to:"/auth",className:"flex items-center gap-2 px-4 py-2.5 rounded-xl border border-border bg-white hover:bg-primary/5 transition-colors text-sm font-medium text-foreground shadow-sm whitespace-nowrap",children:[jsxRuntimeExports.jsx("span",{className:"text-base grayscale opacity-60",children:i}),s]},s))})]})})]}),jsxRuntimeExports.jsx("section",{className:"pt-8 md:pt-12 pb-4 md:pb-8",children:jsxRuntimeExports.jsx(HomeAnimations,{})}),jsxRuntimeExports.jsx("section",{className:"w-full mx-auto px-4 md:px-12 pt-0 pb-4",children:jsxRuntimeExports.jsxs("p",{className:"text-3xl md:text-4xl lg:text-5xl font-normal leading-snug text-foreground text-center flex flex-wrap md:flex-nowrap items-center justify-center gap-x-3 gap-y-3 md:whitespace-nowrap",children:[jsxRuntimeExports.jsx("span",{children:e("home.extensionCta.getFree")}),jsxRuntimeExports.jsx(Button,{asChild:!0,size:"lg",className:"text-2xl md:text-3xl lg:text-4xl h-auto px-5 py-2 rounded-xl",children:jsxRuntimeExports.jsx(Link,{to:"/auth",children:e("home.extensionCta.chromeExtension")})}),jsxRuntimeExports.jsx("span",{children:e("home.extensionCta.toMakeGuide")})]})}),jsxRuntimeExports.jsx("section",{className:"max-w-7xl mx-auto px-4 md:px-12 py-16 md:py-24",children:jsxRuntimeExports.jsxs("div",{className:"grid md:grid-cols-2 gap-12 md:gap-16 items-center",children:[jsxRuntimeExports.jsxs("div",{className:"flex flex-col gap-5",children:[jsxRuntimeExports.jsx("h2",{className:"text-4xl md:text-5xl font-normal leading-snug tracking-tight text-foreground",children:e("home.documentProcess.title")}),jsxRuntimeExports.jsx("p",{className:"text-lg text-muted-foreground max-w-xl leading-8",children:e("home.documentProcess.description")})]}),jsxRuntimeExports.jsx("div",{className:"relative flex items-center justify-center",children:jsxRuntimeExports.jsx("div",{className:"mx-auto flex w-full max-w-2xl items-center justify-center overflow-hidden rounded-3xl border border-border/60 bg-white p-5",style:{boxShadow:"0 22px 60px rgba(0,0,0,0.12)",minHeight:"360px"},children:jsxRuntimeExports.jsx("div",{className:"flex h-[78%] w-[78%] items-center justify-center",children:jsxRuntimeExports.jsx(RotatingAnimation,{})})})})]})}),jsxRuntimeExports.jsx("section",{className:"max-w-7xl mx-auto px-4 md:px-12 py-16 md:py-24",children:jsxRuntimeExports.jsxs("div",{className:"grid md:grid-cols-2 gap-12 md:gap-16 items-center",children:[jsxRuntimeExports.jsx("div",{className:"relative flex items-center justify-center",children:jsxRuntimeExports.jsx("div",{className:"mx-auto flex w-full max-w-2xl items-center justify-center overflow-hidden rounded-3xl border border-border/60 bg-white p-5",style:{boxShadow:"0 22px 60px rgba(0,0,0,0.12)",minHeight:"360px"},children:jsxRuntimeExports.jsx(SearchExtensionAnimation,{})})}),jsxRuntimeExports.jsxs("div",{className:"flex flex-col gap-5",children:[jsxRuntimeExports.jsx("h2",{className:"text-4xl md:text-5xl font-normal leading-snug tracking-tight text-foreground",children:e("home.searchGuides.title")}),jsxRuntimeExports.jsx("p",{className:"text-lg text-muted-foreground max-w-xl leading-8",children:e("home.searchGuides.description")})]})]})}),jsxRuntimeExports.jsx("section",{className:"max-w-7xl mx-auto px-4 md:px-12 py-16 md:py-24",children:jsxRuntimeExports.jsxs("div",{className:"grid md:grid-cols-2 gap-12 md:gap-16 items-center",children:[jsxRuntimeExports.jsxs("div",{className:"flex flex-col gap-5",children:[jsxRuntimeExports.jsx("h2",{className:"text-4xl md:text-5xl font-normal leading-snug tracking-tight text-foreground",children:e("home.integrateWalkthroughs.title")}),jsxRuntimeExports.jsx("p",{className:"text-lg text-muted-foreground max-w-xl leading-8",children:e("home.integrateWalkthroughs.description")})]}),jsxRuntimeExports.jsx("div",{className:"relative flex items-center justify-center",children:jsxRuntimeExports.jsx("div",{className:"mx-auto flex w-full max-w-2xl items-center justify-center overflow-hidden rounded-3xl border border-border/60 bg-white p-5",style:{boxShadow:"0 22px 60px rgba(0,0,0,0.12)",minHeight:"360px"},children:jsxRuntimeExports.jsx(KnowledgeBaseAnimation,{})})})]})}),jsxRuntimeExports.jsx("section",{className:"max-w-7xl mx-auto px-4 md:px-12 py-12 md:py-16"}),jsxRuntimeExports.jsx("div",{className:"container py-8 px-4 md:px-8 text-center",children:jsxRuntimeExports.jsxs(Link,{to:"/community",className:"inline-flex items-center gap-2 text-primary hover:underline font-medium",children:[e("home.communityLink"),jsxRuntimeExports.jsx(ChevronRight,{className:"w-4 h-4"})]})}),jsxRuntimeExports.jsx(LandingFooter,{})]})},Dashboard=reactExports.lazy(()=>__vitePreload(()=>import("./Dashboard-CjiFH6Ws.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16]))),TutorialViewer=reactExports.lazy(()=>__vitePreload(()=>import("./TutorialViewer-BvoKcRkT.js").then(e=>e.b),__vite__mapDeps([17,18,4,7,9,8,1,10,3,11,12,14,19,20,21,22]))),TutorialPage=reactExports.lazy(()=>__vitePreload(()=>import("./TutorialPage-IDertqIs.js"),__vite__mapDeps([23,17,18,4,7,9,8,1,10,3,11,12,14,19,20,21,22,24,25,26,27,15,28]))
591),WorkbookViewer=reactExports.lazy(()=>__vitePreload(()=>import("./WorkbookViewer-DEWolqrz.js"),__vite__mapDeps([29,20,21,10,3,11,22]))),WorkbookEditor=reactExports.lazy(()=>__vitePreload(()=>import("./WorkbookEditor-Dhsda2oS.js"),__vite__mapDeps([30,18,7,25,24,13,8,4,14]))),Leaderboard=reactExports.lazy(()=>__vitePreload(()=>import("./Leaderboard-ChiGjtob.js"),__vite__mapDeps([31,8,4,16]))),Community=reactExports.lazy(()=>__vitePreload(()=>import("./Community-DKZG-WLu.js"),__vite__mapDeps([32,1]))),Profile=reactExports.lazy(()=>__vitePreload(()=>import("./Profile-CSCmr-aN.js"),__vite__mapDeps([33,7,18,26,4,11,6,34,28,27,35]))),PublicProfile=reactExports.lazy(()=>__vitePreload(()=>import("./PublicProfile-D8febGKo.js"),__vite__mapDeps([36,2,3,22,35]))),Auth=reactExports.lazy(()=>__vitePreload(()=>import("./Auth-C7KiodZ4.js"),__vite__mapDeps([37,34,28,7,1,38,8,4]))),Authorize=reactExports.lazy(()=>__vitePreload(()=>import("./Authorize-CX38T9G2.js"),[])),AllTutorials=reactExports.lazy(()=>__vitePreload(()=>import("./AllTutorials-cWBl27v-.js"),__vite__mapDeps([39,2,3,5]))),ResetPassword=reactExports.lazy(()=>__vitePreload(()=>import("./ResetPassword-CHkdyYpO.js"),__vite__mapDeps([40,34,28,7]))),GoogleOnboarding=reactExports.lazy(()=>__vitePreload(()=>import("./GoogleOnboarding-DOW1AFs-.js"),__vite__mapDeps([41,38,34,28,7,8,4]))),ExtensionOnboarding=reactExports.lazy(()=>__vitePreload(()=>import("./ExtensionOnboarding-nJdslyZR.js"),[])),AdminReports=reactExports.lazy(()=>__vitePreload(()=>import("./AdminReports-DsfDEFQ7.js"),__vite__mapDeps([42,28]))),Pricing=reactExports.lazy(()=>__vitePreload(()=>import("./Pricing-CJpjtecE.js"),__vite__mapDeps([43,26,4,38,34,28,7,8]))),FAQ=reactExports.lazy(()=>__vitePreload(()=>import("./FAQ-D0no6tCE.js"),__vite__mapDeps([44,21]))),CaseStudies=reactExports.lazy(()=>__vitePreload(()=>import("./CaseStudies-CZbnfGcT.js"),[])),Checkout=reactExports.lazy(()=>__vitePreload(()=>import("./Checkout-ua5DxrtX.js"),__vite__mapDeps([45,8,4]))),NotFound=reactExports.lazy(()=>__vitePreload(()=>
591import("./NotFound-BTeVdQcH.js"),[])),AcceptInvite=reactExports.lazy(()=>__vitePreload(()=>import("./AcceptInvite-B92HPFcq.js"),[])),BookDemo=reactExports.lazy(()=>__vitePreload(()=>import("./BookDemo-CMSb-uGw.js"),__vite__mapDeps([46,7,18,47]))),FreeGuideLibrary=reactExports.lazy(()=>__vitePreload(()=>import("./FreeGuideLibrary-P-8V_sMP.js"),__vite__mapDeps([48,7,47]))),WorkspaceSettings=reactExports.lazy(()=>__vitePreload(()=>import("./WorkspaceSettings-DJKH52n2.js"),__vite__mapDeps([49,7,8,4,6,26,12,24,14]))),EmbedTest=reactExports.lazy(()=>__vitePreload(()=>import("./EmbedTest-BlBtD64B.js"),__vite__mapDeps([50,7,19]))),PrivacyPolicy=reactExports.lazy(()=>__vitePreload(()=>import("./PrivacyPolicy-CRxpdhMj.js"),[])),Autoguides=reactExports.lazy(()=>__vitePreload(()=>import("./Autoguides-Dy7t8I5N.js"),[])),SolutionComingSoon=reactExports.lazy(()=>__vitePreload(()=>import("./SolutionComingSoon-bz-dFS7z.js"),__vite__mapDeps([51,52]))),queryClient=new QueryClient,LoadingScreen=()=>jsxRuntimeExports.jsx("div",{className:"min-h-screen flex items-center justify-center",children:jsxRuntimeExports.jsx("p",{className:"text-muted-foreground",children:"Loading..."})}),getOnboardingRedirectUrl=(e,s,i)=>{const o=`${e}${s}${i}`||"/";return`/welcome?next=${encodeURIComponent(o)}`},AuthenticatedRoute=({children:e})=>{const s=useLocation(),{user:i,loading:o}=useAuth(),{loading:a,needsOnboarding:c}=useFirstTimeOnboarding(i==null?void 0:i.id);return o||i&&a?jsxRuntimeExports.jsx(LoadingScreen,{}):i?c?jsxRuntimeExports.jsx(Navigate,{to:getOnboardingRedirectUrl(s.pathname,s.search,s.hash),replace:!0}):jsxRuntimeExports.jsx(AuthenticatedLayout,{children:e}):jsxRuntimeExports.jsx(Navigate,{to:"/auth",replace:!0})},AuthenticatedRouteRaw=({children:e})=>{const s=useLocation(),{user:i,loading:o}=useAuth(),{loading:a,needsOnboarding:c}=useFirstTimeOnboarding(i==null?void 0:i.id);return o||i&&a?jsxRuntimeExports.jsx(LoadingScreen,{}):i?c?jsxRuntimeExports.jsx(Navigate,{to:getOnboardingRedirectUrl(s.pathname,s.search,s.hash),replace:!0}):jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:e}):jsxRuntimeExports.jsx(Navigate,{to:"/auth",replace:!0})},HomeRoute=()=>{const{user:e,loading:s}=useAuth(),{loading:i,needsOnboarding:o}=useFirstTimeOnboarding(e==null?void 0:e.id);return s||e&&i?jsxRuntimeExports.jsx(LoadingScreen,{}):e?o?jsxRuntimeExports.jsx(Navigate,{to:getOnboardingRedirectUrl("/","",""),replace:!0}):jsxRuntimeExports.jsx(AuthenticatedLayout,{children:jsxRuntimeExports.jsx(AuthenticatedHome,{})}):jsxRuntimeExports.jsx(Home,{})},RouteAnalytics=()=>(usePageViewTracking(),null),App=()=>(useSyncHtmlLang(),jsxRuntimeExports.jsx(HelmetProvider,{children:jsxRuntimeExports.jsx(QueryClientProvider,{client:queryClient,children:jsxRuntimeExports.jsxs(TooltipProvider,{children:[jsxRuntimeExports.jsx(Toaster$1,{}),jsxRuntimeExports.jsx(Toaster,{}),jsxRuntimeExports.jsxs(BrowserRouter,{children:[jsxRuntimeExports.jsx(RouteAnalytics,{}),jsxRuntimeExports.jsx(reactExports.Suspense,{fallback:jsxRuntimeExports.jsx(LoadingScreen,{}),children:jsxRuntimeExports.jsxs(Routes,{children:[jsxRuntimeExports.jsx(Route,{path:"/",element:jsxRuntimeExports.jsx(HomeRoute,{})}),jsxRuntimeExports.jsx(Route,{path:"/dashboard",element:jsxRuntimeExports.jsx(AuthenticatedRoute,{children:jsxRuntimeExports.jsx(Dashboard,{})})}),jsxRuntimeExports.jsx(Route,{path:"/t/:id",element:jsxRuntimeExports.jsx(TutorialPage,{})}),jsxRuntimeExports.jsx(Route,{path:"/tutorial/:id",element:jsxRuntimeExports.jsx(TutorialViewer,{})}),jsxRuntimeExports.jsx(Route,{path:"/workbook/new",element:jsxRuntimeExports.jsx(AuthenticatedRouteRaw,{children:jsxRuntimeExports.jsx(WorkbookEditor,{})})}),jsxRuntimeExports.jsx(Route,{path:"/workbook/:id",element:jsxRuntimeExports.jsx(WorkbookViewer,{})}),jsxRuntimeExports.jsx(Route,{path:"/workbook/:id/edit",element:jsxRuntimeExports.jsx(AuthenticatedRouteRaw,{children:jsxRuntimeExports.jsx(WorkbookEditor,{})})}),jsxRuntimeExports.jsx(Route,{path:"/tutorials",element:jsxRuntimeExports.jsx(AllTutorials,{})}),jsxRuntimeExports.jsx(Route,{path:"/leaderboard",element:jsxRuntimeExports.jsx(Leaderboard,{})}),jsxRuntimeExports.jsx(Route,{path:"/community",element:jsxRuntimeExports.jsx(Community,{})}),jsxRuntimeExports.jsx(Route,{path:"/profile",element:jsxRuntimeExports.jsx(AuthenticatedRoute,{children:jsxRuntimeExports.jsx(Profile,{})})}),jsxRuntimeExports.jsx(Route,{path:"/profile/:userId",element:jsxRuntimeExports.jsx(PublicProfile,{})}),jsxRuntimeExports.jsx(Route,{path:"/auth",element:jsxRuntimeExports.jsx(Auth,{})}),jsxRuntimeExports.jsx(Route,{path:"/auth/google-onboarding",element:jsxRuntimeExports.jsx(GoogleOnboarding,{})}),jsxRuntimeExports.jsx(Route,{path:"/welcome",element:jsxRuntimeExports.jsx(ExtensionOnboarding,{})}),jsxRuntimeExports.jsx(Route,{path:"/reset-password",element:jsxRuntimeExports.jsx(ResetPassword,{})}),jsxRuntimeExports.jsx(Route,{path:"/authorize",element:jsxRuntimeExports.jsx(Authorize,{})}),jsxRuntimeExports.jsx(Route,{path:"/admin/reports",element:jsxRuntimeExports.jsx(Adm
591inReports,{})}),jsxRuntimeExports.jsx(Route,{path:"/pricing",element:jsxRuntimeExports.jsx(Pricing,{})}),jsxRuntimeExports.jsx(Route,{path:"/faq",element:jsxRuntimeExports.jsx(FAQ,{})}),jsxRuntimeExports.jsx(Route,{path:"/case-studies",element:jsxRuntimeExports.jsx(CaseStudies,{})}),jsxRuntimeExports.jsx(Route,{path:"/autoguides",element:jsxRuntimeExports.jsx(Autoguides,{})}),jsxRuntimeExports.jsx(Route,{path:"/solutions/:slug",element:jsxRuntimeExports.jsx(SolutionComingSoon,{})}),jsxRuntimeExports.jsx(Route,{path:"/checkout",element:jsxRuntimeExports.jsx(AuthenticatedRouteRaw,{children:jsxRuntimeExports.jsx(Checkout,{})})}),jsxRuntimeExports.jsx(Route,{path:"/privacy",element:jsxRuntimeExports.jsx(PrivacyPolicy,{})}),jsxRuntimeExports.jsx(Route,{path:"/privacy-policy",element:jsxRuntimeExports.jsx(PrivacyPolicy,{})}),jsxRuntimeExports.jsx(Route,{path:"/accept-invite/:token",element:jsxRuntimeExports.jsx(AcceptInvite,{})}),jsxRuntimeExports.jsx(Route,{path:"/book-demo",element:jsxRuntimeExports.jsx(BookDemo,{})}),jsxRuntimeExports.jsx(Route,{path:"/free-guide-library",element:jsxRuntimeExports.jsx(FreeGuideLibrary,{})}),jsxRuntimeExports.jsx(Route,{path:"/workspace/settings",element:jsxRuntimeExports.jsx(AuthenticatedRouteRaw,{children:jsxRuntimeExports.jsx(WorkspaceSettings,{})})}),jsxRuntimeExports.jsx(Route,{path:"/embed-test",element:jsxRuntimeExports.jsx(EmbedTest,{})}),jsxRuntimeExports.jsx(Route,{path:"*",element:jsxRuntimeExports.jsx(NotFound,{})})]})})]})]})})})),{slice,forEach}=[];function defaults(e){return forEach.call(slice.call(arguments,1),s=>{if(s)for(const i in s)e[i]===void 0&&(e[i]=s[i])}),e}
591function hasXSS(e){return typeof e!="string"?!1:[/<\s*script.*?>/i,/<\s*\/\s*script\s*>/i,/<\s*img.*?on\w+\s*=/i,/<\s*\w+\s*on\w+\s*=.*?>/i,/javascript\s*:/i,/vbscript\s*:/i,/expression\s*\(/i,/eval\s*\(/i,/alert\s*\(/i,/document\.cookie/i,/document\.write\s*\(/i,/window\.location/i,/innerHTML/i].some(i=>i.test(e))}const fieldContentRegExp=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/,serializeCookie=function(e,s){const o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{path:"/"},a=encodeURIComponent(s);let c=`${e}=${a}`;if(o.maxAge>0){const d=o.maxAge-0;if(Number.isNaN(d))throw new Error("maxAge should be a Number");c+=`; Max-Age=${Math.floor(d)}`}if(o.domain){if(!fieldContentRegExp.test(o.domain))throw new TypeError("option domain is invalid");c+=`; Domain=${o.domain}`}if(o.path){if(!fieldContentRegExp.test(o.path))throw new TypeError("option path is invalid");c+=`; Path=${o.path}`}if(o.expires){if(typeof o.expires.toUTCString!="function")throw new TypeError("option expires is invalid");c+=`; Expires=${o.expires.toUTCString()}`}if(o.httpOnly&&(c+="; HttpOnly"),o.secure&&(c+="; Secure"),o.sameSite)switch(typeof o.sameSite=="string"?o.sameSite.toLowerCase():o.sameSite){case!0:c+="; SameSite=Strict";break;case"lax":c+="; SameSite=Lax";break;case"strict":c+="; SameSite=Strict";break;case"none":c+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}return o.partitioned&&(c+="; Partitioned"),c},cookie={create(e,s,i,o){let a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{path:"/",sameSite:"strict"};i&&(a.expires=new Date,a.expires.setTime(a.expires.getTime()+i*60*1e3)),o&&(a.domain=o),document.cookie=serializeCookie(e,s,a)},read(e){const s=`${e}=`,i=document.cookie.split(";");for(let o=0;o<i.length;o++){let a=i[o];for(;a.charAt(0)===" ";)a=a.substring(1,a.length);if(a.indexOf(s)===0)return a.substring(s.length,a.length)}return null},remove(e,s){this.create(e,"",-1,s)}};var cookie$1={name:"cookie",lookup(e){let{lookupCookie:s}=e;if(s&&typeof document<"u")return cookie.read(s)||void 0},cacheUserLanguage(e,s){let{lookupCookie:i,cookieMinutes:o,cookieDomain:a,cookieOptions:c}=s;i&&typeof document<"u"&&cookie.create(i,e,o,a,c)}},querystring={name:"querystring",lookup(e){var o;let{lookupQuerystring:s}=e,i;if(typeof window<"u"){let{search:a}=window.location;!window.location.search&&((o=window.location.hash)==null?void 0:o.indexOf("?"))>-1&&(a=window.location.hash.substring(window.location.hash.indexOf("?")));const d=a.substring(1).split("&");for(let h=0;h<d.length;h++){const g=d[h].indexOf("=");g>0&&d[h].substring(0,g)===s&&(i=d[h].substring(g+1))}}return i}},hash={name:"hash",lookup(e){var a;let{lookupHash:s,lookupFromHashIndex:i}=e,o;if(typeof window<"u"){const{hash:c}=window.location;if(c&&c.length>2){const d=c.substring(1);if(s){const h=d.split("&");for(let g=0;g<h.length;g++){const b=h[g].indexOf("=");b>0&&h[g].substring(0,b)===s&&(o=h[g].substring(b+1))}}if(o)return o;if(!o&&i>-1){const h=c.match(/\/([a-zA-Z-]*)/g);return Array.isArray(h)?(a=h[typeof i=="number"?i:0])==null?void 0:a.replace("/",""):void 0}}}return o}};let hasLocalStorageSupport=null;const localStorageAvailable=()=>{if(hasLocalStorageSupport!==null)return hasLocalStorageSupport;try{if(hasLocalStorageSupport=typeof window<"u"&&window.localStorage!==null,!hasLocalStorageSupport)return!1;const e="i18next.translate.boo";window.localStorage.setItem(e,"foo"),window.localStorage.removeItem(e)}catch{hasLocalStorageSupport=!1}return hasLocalStorageSupport};var localStorage$1={name:"localStorage",lookup(e){let{lookupLocalStorage:s}=e;if(s&&localStorageAvailable())return window.localStorage.getItem(s)||void 0},cacheUserLanguage(e,s){let{lookupLocalStorage:i}=s;i&&localStorageAvailable()&&window.localStorage.setItem(i,e)}};let hasSessionStorageSupport=null;const sessionStorageAvailable=()=>{if(hasSessionStorageSupport!==null)return hasSessionStorageSupport;try{if(hasSessionStorageSupport=typeof window<"u"&&window.sessionStorage!==null,!hasSessionStorageSupport)return!1;const e="i18next.translate.boo";window.sessionStorage.setItem(e,"foo"),window.sessionStorage.removeItem(e)}catch{hasSessionStorageSupport=!1}return hasSessionStorageSupport};var sessionStorage$1={name:"sessionStorage",lookup(e){let{lookupSessionStorage:s}=e;if(s&&sessionStorageAvailable())return window.sessionStorage.getItem(s)||void 0},cacheUserLanguage(e,s){let{lookupSessionStorage:i}=s;i&&sessionStorageAvailable()&&window.sessionStorage.setItem(i,e)}}
591,navigator$1={name:"navigator",lookup(e){const s=[];if(typeof navigator<"u"){const{languages:i,userLanguage:o,language:a}=navigator;if(i)for(let c=0;c<i.length;c++)s.push(i[c]);o&&s.push(o),a&&s.push(a)}return s.length>0?s:void 0}},htmlTag={name:"htmlTag",lookup(e){let{htmlTag:s}=e,i;const o=s||(typeof document<"u"?document.documentElement:null);return o&&typeof o.getAttribute=="function"&&(i=o.getAttribute("lang")),i}},path={name:"path",lookup(e){var a;let{lookupFromPathIndex:s}=e;if(typeof window>"u")return;const i=window.location.pathname.match(/\/([a-zA-Z-]*)/g);return Array.isArray(i)?(a=i[typeof s=="number"?s:0])==null?void 0:a.replace("/",""):void 0}},subdomain={name:"subdomain",lookup(e){var a,c;let{lookupFromSubdomainIndex:s}=e;const i=typeof s=="number"?s+1:1,o=typeof window<"u"&&((c=(a=window.location)==null?void 0:a.hostname)==null?void 0:c.match(/^(\w{2,5})\.(([a-z0-9-]{1,63}\.[a-z]{2,6})|localhost)/i));if(o)return o[i]}};let canCookies=!1;try{document.cookie,canCookies=!0}catch(e){}const order=["querystring","cookie","localStorage","sessionStorage","navigator","htmlTag"];canCookies||order.splice(1,1);const getDefaults=()=>({order,lookupQuerystring:"lng",lookupCookie:"i18next",lookupLocalStorage:"i18nextLng",lookupSessionStorage:"i18nextLng",caches:["localStorage"],excludeCacheFor:["cimode"],convertDetectedLanguage:e=>e});class Browser{constructor(s){let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.type="languageDetector",this.detectors={},this.init(s,i)}init(){let s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{languageUtils:{}},i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};this.services=s,this.options=defaults(i,this.options||{},getDefaults()),typeof this.options.convertDetectedLanguage=="string"&&this.options.convertDetectedLanguage.indexOf("15897")>-1&&(this.options.convertDetectedLanguage=a=>a.replace("-","_")),this.options.lookupFromUrlIndex&&(this.options.lookupFromPathIndex=this.options.lookupFromUrlIndex),this.i18nOptions=o,this.addDetector(cookie$1),this.addDetector(querystring),this.addDetector(localStorage$1),this.addDetector(sessionStorage$1),this.addDetector(navigator$1),this.addDetector(htmlTag),this.addDetector(path),this.addDetector(subdomain),this.addDetector(hash)}addDetector(s){return this.detectors[s.name]=s,this}detect(){let s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.options.order,i=[];return s.forEach(o=>{if(this.detectors[o]){let a=this.detectors[o].lookup(this.options);a&&typeof a=="string"&&(a=[a]),a&&(i=i.concat(a))}}),i=i.filter(o=>o!=null&&!hasXSS(o)).map(o=>this.options.convertDetectedLanguage(o)),this.services&&this.services.languageUtils&&this.services.languageUtils.getBestMatchFromCodes?i:i.length>0?i[0]:null}cacheUserLanguage(s){let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.options.caches;i&&(this.options.excludeCacheFor&&this.options.excludeCacheFor.indexOf(s)>-1||i.forEach(o=>{this.detectors[o]&&this.detectors[o].cacheUserLanguage(s,this.options)}))}}Browser.type="languageDetector";const languageSwitcher$1={changeLanguage:"Change language"},common$1={searchPlaceholder:"Search apps, creators, and sequences",toasts:{loadWorkbookFailed:"Failed to load workbook",loadTutorialsFailed:"Failed to load workbook tutorials",loadTutorialDetailsFailed:"Failed to load tutorial details",linkCopiedToClipboard:"Link copied to clipboard!",nonPublicQuotaReached:"You've used all your included private, link-only, and team guides. Upgrade to Pro to publish more."}},header$1={logoAlt:"Stepily Logo",openNav:"Open navigation menu",navMenuTitle:"Navigation menu",nav:{tutorials:"Tutorials",leaderboard:"Leaderboard",pricing:"Pricing",autoguides:"Autoguides",faq:"FAQ",products:"Product",customers:"Customers",solutions:"Solutions"},myDashboard:"My Dashboard",logIn:"Log In",logoutSuccess:"Logged out successfully",logoutError:"Failed to log out"},footer$1={tagline:"© 2026 Stepily Inc. Stepily helps teams turn software workflows into agentic documentation, training guides, and repeatable operational knowledge.",columns:{company:"Company",product:"Product",useCases:"Use Cases",caseStudies:"Case Studies"},privacyPolicy:"Privacy Policy",desktopApp:"Desktop app",blog:"Blog",caseStudiesLinks:{all:"All case studies",concreteCms:"Concrete CMS",womboCombo:"Wombo Combo Studio",plana:"Plana"}},home$1={banner:{text:"Limited free offer: 5 spots to get enterprise documentation agents built for your software.",cta:"Claim your spot â"}
591,hero:{title:"The easiest way to make visual guides.",subtitle:"Automatically capture formatted, step by step guides and share them instantly.",getFree:"Get Stepily Free",bookDemo:"Book Demo",chips:{onboarding:"Onboard new hires",sops:"Create SOPs",trainingDocs:"Build training docs",implementSoftware:"Implement software",assistCustomers:"Assist customers",somethingElse:"Something else"}},extensionCta:{getFree:"Get our free",chromeExtension:"chrome extension",toMakeGuide:"to make your first guide."},documentProcess:{title:"Document Your Process",description:"Click through your work process like normal. Stepily collects screenshots, instructions, and highlights so someone else can copy your exact steps."},searchGuides:{title:"Search guides and tips",description:"Search for guides made by you or your team, while using any web page. Visual instructions can be accessed inside the extension by search."},integrateWalkthroughs:{title:"Integrate walkthroughs",description:"Place your guides in your knowledge base, learning management system, ticketing, and chat systems."},communityLink:"Explore Community Tutorials"},pricing$1={heading:"Move faster and smarter",billing:{annual:"Annual Billing",save:"Save up to 25% with yearly billing!"},keyFeatures:"Key Features",everythingFromFree:"Everything from Free, plus...",everythingFromPro:"Everything from Pro, plus...",period:{year:"year",month:"month"},free:{name:"Free",description:"For creators and learners to make, share, and learn from guides.",price:"Free",ctaLoggedIn:"Go to Dashboard",ctaLoggedOut:"Sign up",features:["10 free, shareable guides","Browser capture","Edit and redact screenshots with a variety of tools","Personal workspace with up to 20 viewers"]},pro:{badge:"Lower per-seat pricing starts at 3+",name:"Pro",description:"A self-serve plan for individual creators through teams.",startsAt:"Starts at 1 paid seat",team:"Team",personal:"Personal",perUserPrice:"${{price}}/{{period}} per user",teamUsers:"3 or more users*",personalUsers:"1 - 2 users*",billingNoteAnnual:"Annual billing â price shown per month per user, billed yearly",billingNoteMonthly:"Monthly billing",cta:"Get Started",features:["Chrome browser + Mac desktop capture","Screenshot blurring","Embed and Export to PDF, HTML, Markdown","Customize with company branding","Unlimited private guides + sharing","Quiz mode for better learning"]},enterprise:{name:"Enterprise",description:"Advanced security and compliance. Features vary by plan.",price:"Custom",cta:"Schedule Demo",features:["Autoguides (AI generates guides for you)","Auto-redact of PII & sensitive data","SSO","Desktop app for capture outside the browser","Dedicated customer support contact"]}},faq$1={eyebrow:"Support",title:"Frequently Asked Questions",subtitle:"Quick answers about Stepily, pricing, the Chrome extension, and how teams usually get started.",viewPricing:"View Pricing",bookDemo:"Book Demo",items:{whatIsStepily:{question:"What is Stepily?",intro:"Stepily is a set of tools to let you make documentation as seamlessly as possible. You can either",list:["Use the desktop app to capture processes outside the browser on offline apps. (available on paid plan for MacOS and Windows)","Use the browser extension to quickly capture guides on any website. (available on free and paid plans)"]},whoIsFor:{question:"Who is Stepily for?",answer:"Anybody who wants to create visual guides quickly: For onboarding new hires, helping customers with software, standardizing operations, IT support for employees, or simple knowledge sharing. If you want a computer-based task to be repeatable by others, capture it with Stepily and share."},extension:{question:"What does the browser extension do?",intro:"The Stepily chrome extension follows along as you complete your process, capturing each step as instructions and screenshots. It then formats and generates a shareable guide automatically.",useItTo:"You can use it to",list:["Create a guide from scratch in a matter of seconds.","Insert steps to customize existing guides."]},needExtension:{question:"Do I need the Chrome extension to use Stepily?",intro:"No, you can generate tutorials using Autoguides - our AI guide generator. However, we recommend it so you can:",list:["Fine tune guides exactly how you want, for example by inserting custom steps.","Make highly specific guides or steps you do not want our AI to decide on."]},privateGuides:{question:"Can I make private guides?",answer:"Yes, even the free plan allows you to make and share guides privately."}}},desktopDownload$1={title:"Add a guide with Stepily Desktop",description:"The desktop app records apps outside the browser, and finished captures upload straight to your dashboard.",loading:"Finding the latest buildâ¦",unavailable:"Downloads are temporarily unavailable. Please try again shortly.",signed:"Notarized by Apple on macOS and code-signed on Windows, so both install without security warnings.",platforms:{mac:{label:"Download for macOS",requirements:"Apple Silicon & Intel"},win:{label:"Download for Windows",requirements:"Windows 10 and later"}},installed:{title:"Record with Stepily Desktop",description:"Open Stepily Desktop on your computer and start a capture. Finished recordings land in Desktop Uploads, ready to edit.",viewUploads:"Go to Desktop Uploads",downloadAgain:"Install on another computer"},errors:{failed:"Couldn't start the download. Please try again."}},solutionsNav$1={groups:{useCase:"By use case",function:"By function"},links:{"standardize-processes":{label:"Standardize processes",description:"One documented way to do the work, every time."},"onboard-employees":{label:"Onboard employees",description:"Get new hires productive in days, not weeks."},"train-customers":{label:"Train customers",description:"Show customers how, without a live call."},"software-adoption":{label:"Software adoption",description:"Roll out new tools people actually use."},"knowledge-management":{label:"Knowledge management",description:"Capture what your experts know before they go."},"human-resources":{label:"Human Resources",description:"Onboarding, records, payroll, and audits."},"information-technology":{label:"IT & Support",description:"Fewer tickets, faster fixes, clear runbooks."},operations:{label:"Operations",description:"Repeatable SOPs across every location."},healthcare:{label:"Healthcare",description:"Patient intake, clinical workflows, and compliance documented."},finance:{label:"Finance",description:"Client onboarding, compliance, and loan processing documented."}}},solutions$1={eyebrow:"Solutions",getStartedFree:"Get Started Free",ctaNote:"No credit card required.",example:"Example",comingSoon:{description:"We're writing this page now. In the meantime, see the full version on our Human Resources page â or start building guides for your team today.",seeExample:"See the HR example"},useCaseVisuals:{guideAlt:"A finished Stepily guide, with each step written out and screenshotted"},useCases:{standardizeProcesses:{seoTitle:"Standardize processes with Stepily",seoDescription:"Document every process once and give your whole team one clear, current way to do the work.",eyebrow:"Solutions · Standardize processes",title:"One right way to do the work",subtitle:"Give every team the same clear steps, every single time.",features:{capture:{title:"Document it once, get it right every time",description:"Run the process as you normally would. Stepily writes down every step as you go, so the way it's done stops drifting from person to person."},guides:{title:"Replace tribal knowledge with a single source of truth",description:"Turn the way your best people work into a documented standard the whole company can follow â no more half-finished wiki pages."},search:{title:"The current version, right when it's needed",description:"Your team pulls up the latest steps for any process in seconds, instead of guessing or digging through outdated docs."}},cta:{title:"Ready to standardize how the work gets done?"}},onboardEmployees:{seoTitle:"Onboard employees with Stepily",seoDescription:"Get new hires productive in days with step-by-step guides they can follow inside the tools they're learning.",eyebrow:"Solutions · Onboard employees",title:"Ramp new hires faster, repeat yourself less",subtitle:"Give every new teammate the confidence to learn by doing.",features:{capture:{title:"Productive from their first week",description:"Skip the training calls and screenshares. Stepily shows new hires exactly what to do, right inside the tools they need to learn."},guides:{title:"Turn your top performers into shared knowledge",description:"Capture how your best people actually work and scale it into onboarding guides anyone can follow on their own."},search:{title:"Answer questions before they're asked",description:"New hires find the guide they need the moment they're stuck â without waiting on a teammate to be free."}},cta:{title:"Ready to make onboarding effortless?"}},trainCustomers:{seoTitle:"Train customers with Stepily",seoDescription:"Show customers exactly how to use your product with visual step-by-step guides instead of live calls.",eyebrow:"Solutions · Train customers",title:"Show customers how, without the call",subtitle:"Let customers learn your product at their own pace.",features:{capture:{title:"Answer âhow do Iâ¦â in a couple of clicks",description:"Walk through the workflow once and Stepily turns it into a guide you can send instead of booking another call."},guides:{title:"Scale onboarding without scaling headcount",description:"Collect your team's best walkthroughs into a library that trains every customer the same way, from the first one to the thousandth."},search:{title:"Help that reaches them first",description:"Customers search and land on the exact steps they need, so fewer questions ever turn into support tickets."}},cta:{title:"Ready to help customers help themselves?"}},softwareAdoption:{seoTitle:"Drive software adoption with Stepily",seoDescription:"Turn software rollouts into real adoption with guid
591ance your team can follow inside the new tool.",eyebrow:"Solutions · Software adoption",title:"Get people actually using the tools you bought",subtitle:"Turn a rollout into real adoption, not another forgotten login.",features:{capture:{title:"Guidance where the work happens",description:"Show your team exactly what to click in the new tool, without pulling everyone into another hour-long training session."},guides:{title:"Roll out to every team, consistently",description:"Document the workflows that matter most and share them so every team adopts the tool the same way from day one."},search:{title:"No more âhow do I do this again?â",description:"When someone forgets a step weeks later, they pull up the guide themselves instead of filing a ticket."}},cta:{title:"Ready to make your next rollout stick?"}},knowledgeManagement:{seoTitle:"Knowledge management with Stepily",seoDescription:"Capture what your experts know as searchable visual guides, before that knowledge walks out the door.",eyebrow:"Solutions · Knowledge management",title:"Capture what your experts know",subtitle:"Keep hard-won knowledge in the company, not in a few people's heads.",features:{capture:{title:"Documentation that writes itself",description:"Your experts just do the work as usual. Stepily turns it into a guide, so nothing has to be written up after the fact."},guides:{title:"Build a library that stays current",description:"Gather your team's real workflows in one place, and re-record a guide in minutes when the process changes."},search:{title:"Knowledge people can actually find",description:"Search the whole library from any page and surface the right guide instantly â knowledge nobody uses isn't knowledge."}},cta:{title:"Ready to turn expertise into shared knowledge?"}}},sharedVisuals:{capture:{url:"docs.google.com/spreadsheets",docTitle:"New hire onboarding tracker",recording:"Capturing",panelTitle:"Tutorial Creator",finish:"Finish tutorial",steps:{0:{title:"Click 'Add new hire'"},1:{title:"Select 'Onboarding'"}}},search:{url:"workday.com/benefits-enrollment",docTitle:"Benefits enrollment â Q3",panelTitle:"Guide library",query:"benefits enrollment",resultsLabel:"From your library",results:{0:{title:"Enroll a new hire",meta:"9 steps · updated 3 days ago"},1:{title:"Add a dependent",meta:"6 steps · updated last week"},2:{title:"Qualifying life event",meta:"12 steps · updated last month"}},shortcut:"Press ⥠+ K to search from any page"},automation:{appName:"AI assistant",attachment:"New-hire-onboarding-SOP.pdf",prompt:"Using the attached SOP, build an automation that provisions accounts for every new hire.",replyIntro:"Here's the workflow, straight from your SOP:",composer:"Ask a follow-upâ¦",steps:["Create the account and assign the role named in step 3.","Grant the four system permissions listed in steps 5â7.","Email the welcome pack and notify the hiring manager."]}},humanResources:{seoTitle:"Stepily for Human Resources",seoDescription:"See how HR teams use Stepily to document onboarding, employee records, payroll, performance reviews, and compliance as clear step-by-step guides.",eyebrow:"Solutions · Human Resources",title:"How Human Resources Teams Use Stepily",subtitle:"From the first offer letter to the next compliance audit, HR runs on processes that have to be right every time. Stepily turns each one into a clear, visual guide your team can follow â and keep current.",capabilities:{recruiting:{title:"Recruiting & onboarding",description:"Give every new hire a smooth, consistent experience with clear, step-by-step onboarding."},records:{title:"Employee records",description:"Keep employee information accurate with well-documented, consistent update processes."},payroll:{title:"Payroll & benefits",description:"Make payroll and benefits easy to manage with clear, documented workflows."},performance:{title:"Performance management",description:"Bring consistency to reviews and feedback with standardized, repeatable processes."},compliance:{title:"Compliance & audits",description:"Stay audit-ready with documentation that's always current and easy to access."}},stack:{heading:"Works with your current HR stack",tools:["Workday","ADP","Greenhouse","Gusto","Namely","SAP SuccessFactors","BambooHR","OrangeHRM","Rippling","Lever","Paylocity","Deel"]},features:{capture:{title:"Easily make training materials",description:"Stepily captures a task as it happens and makes a polished guide automatically."},search:{title:"Pull up guides as you work, when you need it most",description:"Search your team's guides at any time in your automatic personal searchable library in the browser. Or, integrate them into your knowledge base."},automations:{title:"Use Stepily to create automations",description:"Feed PDF exports of your SOPs into AI and create automations that rely on accurate data and steps."}},cta:{title:"Ready to document your HR processes?",description:"Record a process once and share a clear, visual guide with your whole team in minutes."}},informationTechnology:{seoTitle:"Stepily for IT & Support Teams",seoDescription:"See how IT teams use Stepily to document onboarding and offboarding, incident resolution, access management, softw
591are deployment, and compliance as clear step-by-step guides.",eyebrow:"Solutions · IT & Support",title:"How IT & Support Teams Use Stepily",subtitle:"From the first offer letter to the next compliance audit, IT runs on processes that have to be right every time. Stepily turns each one into a clear, visual guide your team can follow â and keep current.",capabilities:{onboardingOffboarding:{title:"Onboarding & offboarding",description:"Set up new hires and close out departures with the same reliable checklist every time."},incidentResolution:{title:"Incident & ticket resolution",description:"Turn common fixes into repeatable steps your whole team can follow."},accessSecurity:{title:"Access & security management",description:"Standardize how access is granted, changed, and revoked across every system."},softwareDeployment:{title:"Software deployment & updates",description:"Keep rollouts and updates consistent across every device and team."},complianceAudits:{title:"Compliance & audits",description:"Stay audit-ready with security procedures that are always current and accessible."}},stack:{heading:"Works with your current IT stack",tools:["Workday","ADP","Greenhouse","Gusto","Namely","SAP SuccessFactors","BambooHR","OrangeHRM","Rippling","Lever","Paylocity","Deel"]},features:{capture:{title:"Easily make training materials",description:"Stepily captures a task as it happens and makes a polished guide automatically."},search:{title:"Pull up guides as you work, when you need it most",description:"Search your team's guides at any time in your automatic personal searchable library in the browser. Or, integrate them into your knowledge base."},automations:{title:"Use Stepily to create automations",description:"Feed PDF exports of your SOPs into AI and create automations that rely on accurate data and steps."}},cta:{title:"Ready to document your IT processes?",description:"Record a process once and share a clear, visual guide with your whole team in minutes."}},operations:{seoTitle:"Stepily for Operations Teams",seoDescription:"See how operations teams use Stepily to document site procedures, vendor management, inventory and fulfillment, quality control, and safety compliance as clear step-by-step guides.",eyebrow:"Solutions · Operations",title:"How Operations Teams Use Stepily",subtitle:"From the first offer letter to the next compliance audit, Operations runs on processes that have to be right every time. Stepily turns each one into a clear, visual guide your team can follow â and keep current.",capabilities:{siteOperations:{title:"Site & location operations",description:"Keep procedures consistent across every site and location."},vendorManagement:{title:"Vendor & supplier management",description:"Standardize onboarding and processes for every supplier relationship."},inventoryFulfillment:{title:"Inventory & fulfillment",description:"Document consistent steps for receiving, stocking, and shipping."},qualityControl:{title:"Quality control & inspections",description:"Standardize inspection checklists so every process meets the same bar."},safetyCompliance:{title:"Safety & compliance",description:"Keep safety procedures current, accessible, and easy to follow."}},stack:{heading:"Works with your current Operations stack",tools:["Workday","ADP","Greenhouse","Gusto","Namely","SAP SuccessFactors","BambooHR","OrangeHRM","Rippling","Lever","Paylocity","Deel"]},features:{capture:{title:"Easily make training materials",description:"Stepily captures a task as it happens and makes a polished guide automatically."},search:{title:"Pull up guides as you work, when you need it most",description:"Search your team's guides at any time in your automatic personal searchable library in the browser. Or, integrate them into your knowledge base."},automations:{title:"Use Stepily to create automations",description:"Feed PDF exports of your SOPs into AI and create automations that rely on accurate data and steps."}},cta:{title:"Ready to document your Operations processes?",description:"Record a process once and share a clear, visual guide with your whole team in minutes."}},healthcare:{seoTitle:"Stepily for Healthcare Teams",seoDescription:"See how healthcare teams use Stepily to document patient intake, clinical workflows, care coordination, billing and coding, and compliance as clear step-by-step guides.",eyebrow:"Solutions · Healthcare",title:"How Healthcare Teams Use Stepily",subtitle:"From the first offer letter to the next compliance audit, Healthcare runs on processes that have to be right every time. Stepily turns each one into a clear, visual guide your team can follow â and keep current.",capabilities:{patientIntake:{title:"Patient intake & registration",description:"Guide staff through consistent, accurate patient intake and registration steps."},clinicalWorkflows:{title:"Clinical workflows",description:"Keep care protocols consistent across every team and system."},careCoordination:{title:"Care coordination",description:"Document clear handoffs for referrals, transitions, and follow-up care."},billingCoding:{title:"Billing & coding",description:"Standardize coding, documentation, and claims preparation for every case."},complianceAudits:{title:"Compliance & audits",description:"Stay ready for regulatory review with organized, accessible procedures."}},stack:{heading:"Works with your current Healthcare stack",tools:["Workday","ADP","Greenhouse","Gusto","Namely","SAP SuccessFactors","BambooHR","OrangeHRM","Rippling","Lever","Paylocity","Deel"]},features:{capture:{title:"Easily make training materials",description:"Stepily captures a task as it happens and makes a polished guide automatically."},search:{title:"Pull up guides as you work, when you need it most",description:"Search your team's guides at any time in your automatic personal searchable library in the browser. Or, integrate them into your knowledge base."},automations:{title:"Use Stepily to create automations",description:"Feed PDF exports of your SOPs into AI and create automations that rely on accurate data and steps."}},cta:{title:"Ready to document your Healthcare processes?",description:"Record a process once and share a clear, visual guide with your whole team in minutes."}},finance:{visuals:{capture:{url:"app.ncino.com",docTitle:"New client onboarding checklist",recording:"Capturing",panelTitle:"Tutorial Creator",finish:"Finish tutorial",steps:{0:{title:"Click 'New client'"},1:{title:"Select 'KYC documents'"}}},search:{url:"app.ncino.com/loan-application",docTitle:"Loan application â Smith Co.",panelTitle:"Guide library",query:"loan application",resultsLabel:"From your library",results:{0:{title:"Process a new loan application",meta:"8 steps · updated 2 days ago"},1:{title:"Update a client's account details",meta:"5 steps · updated last week"},2:{title:"Prepare a regulatory disclosure",meta:"10 steps · updated last month"}},shortcut:"Press ⥠+ K to search from any page"},automation:{appName:"AI assistant",attachment:"Loan-closing-SOP.pdf",prompt:"Using the attached SOP, build an automation that flags missing documents before a loan closes.",replyIntro:"Here's the workflow, straight from your SOP:",composer:"Ask a follow-upâ¦",steps:["Check the closing file against the document checklist in step 2.","Flag any missing disclosures listed in steps 4â6.","Notify the loan officer and update the client's status."]}}
591,seoTitle:"Stepily for Finance Teams",seoDescription:"See how finance teams use Stepily to document client onboarding, regulatory requirements, account updates, loan processing, and audit prep as clear step-by-step guides.",eyebrow:"Solutions · Finance",title:"How Finance Teams Use Stepily",subtitle:"From the first client meeting to the next regulatory audit, finance teams run on processes that have to be precise and repeatable. Stepily turns each one into a clear, visual guide your team can follow â and keep current.",capabilities:{clientOnboarding:{title:"Client onboarding",description:"Give every client a consistent onboarding experience with clear guidance at each step."},regulatoryDocumentation:{title:"Regulatory documentation",description:"Keep disclosures and compliance requirements clearly documented and up to date."},accountUpdates:{title:"Account updates",description:"Standardize account changes with consistent processes across teams and systems."},loanDealProcessing:{title:"Loan & deal processing",description:"Bring consistency to deal processing with clear, repeatable workflows."},riskAuditPrep:{title:"Risk & audit prep",description:"Stay organized and ready for audits with accessible, well-maintained procedures."}},stack:{heading:"Works with your current finance stack",tools:["Salesforce","nCino","DocuSign","Plaid","Encompass","MeridianLink","Temenos","Backbase","Workiva","Fiserv","Jack Henry","FIS"]},features:{capture:{title:"Easily make training materials",description:"Stepily captures a task as it happens and makes a polished guide automatically."},search:{title:"Pull up guides as you work, when you need it most",description:"Search your team's guides at any time in your automatic personal searchable library in the browser. Or, integrate them into your knowledge base."},automations:{title:"Use Stepily to create automations",description:"Feed PDF exports of your SOPs into AI and create automations that rely on accurate data and steps."}},cta:{title:"Ready to document your finance processes?",description:"Record a process once and share a clear, visual guide with your whole team in minutes."}}},caseStudies$1={seo:{title:"Customer Stories",description:"How teams use Stepily to document processes, onboard faster, and cut the time spent answering the same questions."},eyebrow:"Case studies",title:"Customer stories",subtitle:"How teams use Stepily to document processes, onboard people faster, and keep their standard procedures up to date.",viewPricing:"View Pricing",getStartedFree:"Get Started Free",logoAlt:"{{company}} logo",industries:{software:"Software",agency:"Marketing agency",manufacturing:"Manufacturing",technology:"Technology",consulting:"Consulting"},domesticHeading:"Domestic case studies",globalHeading:"Global recognition",cta:{title:"Ready to document your own processes?",description:"Record a process once and share a clear, visual guide with your whole team in minutes.",getStartedFree:"Get Started Free",viewPricing:"View pricing"}},privacyPolicy$1={eyebrow:"Legal",title:"Privacy Policy",subtitle:"Public privacy terms for Stepily's website, portal, browser extension, and Autoguides features.",backToHome:"Back to home"},bookDemo$1={eyebrow:"Book Demo",title:"Book a demo of Stepily for Enterprise",close:"Close",success:{title:"Check your inbox.",description:"We sent the booking link to your work email. If you do not see it, check spam or promotions."},form:{emailLabel:"Work Email*",emailPlaceholder:"[email protected]",companySizeLabel:"Company Size*",companySizePlaceholder:"Select company size",useCaseLabel:"What are you exploring Stepily for?*",useCasePlaceholder:"Customer onboarding, SOPs, support deflection, employee training, or another use case",referralLabel:"How did you hear about us?*",referralPlaceholder:"LinkedIn, search, friend, event, etc.",consent:"By filling out this form, I agree to receive emails from Stepily.",submit:"Get booking link",submitting:"Sending...",goBack:"Go Back"},errors:{requiredFields:"Please fill out all required fields.",consentRequired:"Please agree to receive emails from Stepily.",generic:"Something went wrong. Please try again."}}
591,homeContent$1={popularApps:"Popular Apps To Learn",exploreLibrary:"Explore the Library",topTutorials:"Top Tutorials",table:{rank:"Rank",tutorial:"Tutorial",creator:"Creator",category:"Category",likes:"Likes",rating:"Rating"},noTutorialsYet:"No tutorials yet",anonymous:"Anonymous",uncategorized:"Uncategorized",viewFullLeaderboard:"View Full Leaderboard"},authenticatedHome$1={title:"Home",createGuide:{title:"Create new guide",description:"Add the free Stepily Chrome extension to start recording and creating guides."},autoguidesBadge:"Stepily for Enterprise",pitch:{title:"Create workflow tutorials and training from your team's real processes",description:"Use the Stepily Chrome extension to capture established workflows, turn them into clear visual tutorials, and help employees learn the right way to complete recurring tasks."},bookDemo:"Book Demo",whoItsFor:{title:"Who it's for",items:["Enterprise teams standardizing internal workflows","Operations, enablement, and training teams","Companies onboarding or upskilling large workforces","Support and success teams documenting repeatable processes"]},whatYouGet:{title:"What you get",description:"A free pilot to create your first set of workflow tutorials using the Stepily Chrome extension, with options to train employees, quiz workers on established processes, and keep guidance aligned as tools and procedures change."}},recentGuides$1={draftsHeading:"Recent drafts",viewAll:"View all",statusCompleted:"completed",statusPending:"pending",steps:"{{count}} steps",publishedHeading:"Recent published",defaultUsername:"You",newTutorial:"New Tutorial",errors:{openDraftFailed:"Failed to open draft: {{message}}"}},signupQuestionnaire$1={steps:{department:{question:"What do you do?",placeholder:"Select one of the following...",options:{accountingFinance:"Accounting & Finance",consultingClientServices:"Consulting & Client Services",customerSupport:"Customer Support",engineeringProductDesign:"Engineering, Product & Design",humanResources:"Human Resources",learningDevelopment:"Learning & Development",it:"IT",marketing:"Marketing",operations:"Operations",projectProgramManagement:"Project & Program Management",salesCustomerSuccess:"Sales & Customer Success",other:"Other"}},companySize:{question:"What's your company size?",placeholder:"Select one of the following..."},role:{question:"What's your role?",placeholder:"Select one of the following...",options:{individualContributor:"Individual Contributor",teamManager:"Team Manager",director:"Director",executive:"Executive (C-Level, VP)",contractorFreelancer:"Contractor/Freelancer"}},referralSource:{question:"How did you hear about us?",placeholder:"Select one of the following...",options:{blogNewsletter:"Blog or newsletter",facebookInstagram:"Facebook or Instagram",linkedin:"LinkedIn",friendColleague:"Friend or colleague",googleBing:"Google, Bing, etc.",inviteReferral:"Invite or referral",podcast:"Podcast",youtube:"YouTube",tiktok:"TikTok",somethingElse:"Something else"}}},questionnaire:{dialogTitle:"Tell us about your team",dialogDescription:"Help us plan new features and improvements",saving:"Saving...",continue:"Continue",next:"Next"},signup:{dialogTitle:"Create your account",dialogDescription:"Get started with Stepily",continueWithGoogle:"Continue with Google",orContinueWithEmail:"Or continue with email",usernameLabel:"Username (optional)",usernameHint:"3-20 characters, letters, numbers, and underscores only",emailLabel:"Email",passwordLabel:"Password",submitting:"Creating account...",submit:"Sign Up",back:"â Back",alreadyHaveAccount:"Already have an account? Sign in"},verifyEmail:{dialogTitle:"Check your email",prefix:"We sent a verification link to ",suffix:". Click the link to activate your account.",spamHint:"Didn't receive it? Check your spam folder or try signing up again.",close:"Close"},errors:{sessionExpired:"Your session expired. Please sign in again.",captchaWait:"Please wait for the security check to complete.",usernameLength:"Username must be 3-20 characters",usernameChars:"Only letters, numbers, and underscores",usernameTaken:"Username is already taken"},success:{accountCreated:"Account created!"}},globalSearch$1={scopes:{all:{label:"All Results",description:"Community, personal, shared, and team content you can access"},workspace:{label:"Workspace",description:"Team-owned guides and workbooks"},community:{label:"Community",description:"Public guides and workbooks"}},documents:{all:{label:"All Documents",description:"Tutorials and workbooks"},tutorial:{label:"Tutorials",description:"Individual step-by-step guides"},workbook:{label:"Workbooks",description:"Collections of tutorials"}},searchInputPlaceholder:"Search guides, apps, creators, and workbooks",clearSearch:"
591Clear search",closeSearch:"Close search",dialogTitle:"Search guides and workbooks",creator:{default:"Creator",all:"All Creators",searchPlaceholder:"Search creators...",empty:"No creators found"},workspace:{default:"Workspace",all:"All Workspaces",searchPlaceholder:"Search workspaces...",empty:"No workspaces found"},application:{default:"Application",all:"All Applications",searchPlaceholder:"Search applications...",empty:"No applications found"},resultsCountSingular:"{{count}} Result",resultsCountPlural:"{{count}} Results",optionResultCountSingular:"{{count}} result",optionResultCountPlural:"{{count}} results",clearFilters:"Clear filters",searching:"Searching",searchFailedTitle:"Search failed",noResults:{title:"No results found for this search and filter combination.",hint:"Try a broader keyword, switch back to all results, or clear the active filters.",clearButton:"Clear search and filters"},resultRow:{workbookType:"Workbook",tutorialType:"Tutorial",stepsCount:"{{count}} steps"},selection:{selectedCount:"{{count}} selected",cancel:"Cancel",confirm:"Add {{count}} guides",alreadyAdded:"Already added"}},compactHeader$1={searchPlaceholder:"Search tutorials, apps, creators...",searchAriaLabel:"Search tutorials, apps, creators",upgradeToPro:"Upgrade to Pro",createNew:"Create new",create:{browser:"Browser Guide",desktop:"Desktop Guide",workbook:"Workbook"},extensionsLabel:"Extensions",pinHint:"Pin Stepily for easy access.",startRecording:"Start Recording",dialog:{install:{srTitle:"Get the Stepily Chrome Extension",srDescription:"Install the Stepily extension to create new guides.",heading:"Get the extension",description:"Install Stepily to create guides by recording workflows in your browser.",button:"Get Extension"},pin:{srTitle:"Pin the extension",srDescription:"Pin the Stepily extension to your browser toolbar.",heading:"Pin the extension",description:"Keep Stepily visible in your browser for quick access. Click the puzzle icon above to pin Stepily to your toolbar.",button:"Next"},record:{srTitle:"Record from the extension",srDescription:"Click Start recording in the Stepily extension.",heading:"Record from the extension",description:"Click Start recording in the Stepily extension to begin creating your guide.",back:"Back",done:"Done"}}},community$1={heading:"Community",subtitle:"Trending tutorials, popular apps, and top-rated guides from the Stepily community.",officialCreator:{heading:"Official Creator Access",description:"Official creators keep the public community publishing experience. Approval is reviewed manually.",badges:{official:"Official Creator",pending:"Request Pending"},messages:{official:"Your account is marked as an official creator. No further action is needed here.",pending:"Your request has been submitted. It will stay pending until it is reviewed manually in Supabase.",cta:"Request access if you want your account considered for official creator status and future public community publishing access."},button:{default:"Become Official Creator",loading:"Submitting..."}},toasts:{emailRequired:"A verified account email is required to request official creator access.",alreadyPending:"Your official creator request is already pending review.",submitError:"Could not submit request: ",submitSuccess:"Official creator request submitted for manual review."}},appSidebar$1={community:"Community",following:"Following",beta:"Beta",home:"Home",myGuides:"My Guides",drafts:"Drafts",published:"Published",sharedWithMe:"Shared with me",saved:"Saved",trash:"Trash",rename:"Rename",delete:"Delete",switchWorkspace:"Switch workspace",inviteTeammates:"Invite teammates",createNewTeam:"Create new team",settings:"Settings",createTeamPrompt:"Create a team",teamGuides:"Team Guides",teamTrash:"Team Trash",profile:"Profile",logOut:"Log out",defaultUsername:"User",extensionUploads:"Extension Uploads",desktopUploads:"Desktop Uploads",notFollowingAnyone:"Not following anyone yet.",all:"All",unknownUser:"Unknown",public:"Public",private:"Private",anyoneWithLink:"Anyone with a link",teamOnly:"Team only",createFolderTooltip:"Create folder",folderNamePlaceholder:"Folder name...",createTeamDialog:{title:"Create a New Team",placeholder:"Team name...",cancel:"Cancel",creating:"Creating...",create:"Create Team"},confirmDeleteFolder:"Delete this folder? Tutorials inside won't be deleted.",toasts:{signOutSuccess:"Signed out successfully",signOutError:"Failed to sign out"}},appCard$1={tutorialCount_one:"{{count}} tutorial",tutorialCount_other:"{{count}} tutorials"},auth$1={welcomeTitle:"Welcome to Stepily",welcomeDescription:"Create and share screenshot tutorials",signInTab:"Sign In",signUpTab:"Sign Up",continueWithGoogle:"Continue with Google",orContinueWithEmail:"Or continue with email",emailLabel:"Email",passwordLabel:"Password",forgotPassword:"Forgot password?",signingIn:"Signing in...",signIn:"Sign In",resetPassword:{title:"Reset Password",description:"Enter your email and we'll send you a link to reset your password.",sending:"Sending...",sendLink:"Send Reset Link",cancel:"Cancel"},toasts:{captchaWait:"Please wait for the security check to complete.",signedIn:"Logged in successfully!",passwordResetSent:"Password reset email sent! Check your inbox."}},shareDialog$1={title:{tutorial:"Share Tutorial",folder:"Share Folder"},tabs:{share:"Share",embed:"Embed",export:"Export"},emailLabel:"Email",emailPlaceholder:"Add emails to share",sharedWith:"Shared with ({{count}})",loading:"Loading...",notSharedYet:"Not shared with anyone yet",defaultUsername:"User",viewingMode:"Viewing Mode",scroll:"Scroll",slides:"Slides",embedTutorialOnly:"Embed is only available for tutorials.",embedProFeatureTitle:"Embed is a Pro feature for private tutorials",embedProFeatureDescription:"Upgrade to embed private tutorials on any webpage.",unlockPro:"Unlock Pro",linkSharingOffTitle:"Link sharing is off",linkSharingOffDescription:`Visitors won't be able to see this embedded tutorial until you enable "Anyone with the link can view" in the Share tab.`,copied:"Copied!",copyEmbedCode:"Copy Embed Code",exportToPdf:"Export to PDF",preview:"Preview",exportToPowerPoint:"Export to PowerPoint",exportToMarkdown:"Export to Markdown",proBadge:"Pro",upsellFeatures:{embeds:"private tutorial embeds",markdownExports:"Markdown exports"},checking:"Checking",copiedShort:"Copied",copying:"Copying",copy:"Copy",exporting:"Exporting",download:"Download",notShared:"Not shared",anyoneWithLinkCanView:"Anyone with the link can view",linkCopied:"Link Copied!",copyLink:"Copy Link",done:"Done",errors:{invalidEmail:"Please enter a valid email address",genericTryAgain:"Please try again.",tutorialNotFound:"Tutorial not found"},toasts:{embedCodeCopied:"Embed code copied!",copyFailedManual:"Failed to copy â please copy manually.",linkCopied:"Link copied!",markdownCopied:"Markdown copied!",markdownCopyFailed:"Markdown copy failed: {{error}}",markdownDownloaded:"Markdown export downloaded",markdownExportFailed:"Markdown export failed: {{error}}",linkSharingUpdateFailed:"Failed to update link sharing",linkSharingEnabled:"Anyone with the link can now view",linkSharingDisabled:"Link sharing disabled",cantShareWithSelf:"You can't share with yourself",noAccountFound:"No account found for this email.",alreadyShared:"Already shared with this user",sharedWithEmail:"Shared with {{email}}",shareFailed:"Failed to share: {{error}}",removeAccessFailed:"Failed to remove access",accessRemoved:"Access removed"}},workbookViewer$1={loading:"Loading workbook...",notFound:"Workbook not found",back:"Back",workbookBadge:"WORKBOOK",unknownAuthor:"Unknown",tutorialsCount:"{{count}} tutorials",stepsCount:"{{count}} steps",stepTypeTip:"Tip",stepTypeAlert:"Alert",stepTypeHeader:"Header",copyLink:"Copy link",edit:"Edit",publish:"Publish",copy:"Copy",toasts:{copiedToClipboard:"Copied to clipboard",copyFailed:"Failed to copy",linkCopied:"Link copied!",linkCopyFailed:"Failed to copy link"}},workbookEditor$1={loading:"Loading workbook...",notFound:"Workbook not found",backToDashboard:"Back to Dashboard",backToWorkbook:"Back to Workbook",workbookBadge:"WORKBOOK",createWorkbook:"Create Workbook",editWorkbook:"Edit Workbook",titleLabel:"Title",titlePlaceholder:"Workbook title",descriptionLabel:"Description",descriptionPlaceholder:"Workbook description (optional)",appLabel:"Ap
591p",tutorialsLabel:"Tutorials ({{count}})",dragToReorder:"Drag to reorder tutorials, or click the trash icon to remove",addGuides:"Add guides",noGuidesYet:"No guides yet. Use âAdd guidesâ to search for guides and add them to this workbook.",saving:"Saving...",cancel:"Cancel",defaultTitle:"Untitled workbook",done:"Done",publish:"Publish",publishPublic:"Publish publicly",publishPrivate:"Publish privately",publishAnyoneWithLink:"Anyone with the link",publishToTeam:"Publish to team",toasts:{noPermission:"You don't have permission to edit this workbook",removeTutorialFailed:"Failed to remove tutorial",tutorialRemoved:"Tutorial removed from workbook",saveWorkbookFailed:"Failed to save workbook",updateOrderFailed:"Failed to update tutorial order",workbookSaved:"Workbook saved successfully",titleRequired:"Give your workbook a title before saving",workbookCreated:"Workbook created",publicPublishingRestricted:"Public publishing isn't available on your account",published:{public:"Workbook published publicly",private:"Workbook published privately",anyoneWithLink:"Workbook shared with anyone who has the link"}}},tutorialViewer$1={loading:"Loading tutorial...",notFound:"Tutorial not found",goBackHome:"Go Back Home",goBack:"Go back",companyLogoAlt:"Company logo",edit:"Edit",exitQuiz:"Exit Quiz",quizMode:"Quiz Mode",saved:"Saved",save:"Save",share:"Share",copyLink:"Copy link",duplicating:"Duplicating...",duplicate:"Duplicate",anonymous:"Anonymous",rateThisTutorial:"Rate this tutorial",copy:"Copy",openStepUrl:"Open {{url}} in a new tab",noStepsYet:"This tutorial doesn't have any steps yet.",tableOfContents:"Contents",stepsCount_one:"{{count}} step",stepsCount_other:"{{count}} steps",toasts:{duplicateFailed:"Failed to duplicate tutorial",duplicateNoId:"Duplication failed â no tutorial ID returned",duplicateSuccess:"Tutorial duplicated!",loadTutorialFailed:"Failed to load tutorial",signInToSave:"Please sign in to save tutorials",removedFromSaved:"Removed from saved tutorials",savedForLater:"Saved for later",updateSaveFailed:"Failed to update save status",signInToRate:"Please sign in to rate tutorials",ratingSubmitted:"Rating submitted successfully",ratingSubmitFailed:"Failed to submit rating",linkCopied:"Link copied!",linkCopyFailed:"Failed to copy link",copiedToClipboard:"Copied to clipboard",copyFailed:"Failed to copy to clipboard"}},profile$1={pageTitle:"Profile",pageTitleCreator:"Community Profile",loading:"Loading...",basicInfo:{title:"Basic Information",photoTitle:"Profile Photo",photoHelpUploading:"Uploading...",photoHelp:"Upload a photo to help others recognize you (max 5MB)",usernameLabel:"Username",usernameHelp:"3-20 characters, letters, numbers, and underscores only",firstNameLabel:"First Name",lastNameLabel:"Last Name",emailLabel:"Email",changePassword:"Change Password",languageLabel:"Language",bioLabel:"Bio",bioPlaceholder:"Tell the community about yourself...",specialtyLabel:"Specialty/Role"},socialMedia:{title:"Social Media Links",makePublic:"Make Public"},stats:{title:"Your Stats",tutorialsCreated:"Tutorials Created",averageRating:"Average Rating",totalViews:"Total Views"},badges:{title:"Badges",noBadgesYet:"No badges yet",earnBadgesHint:"Create tutorials and engage with the community to earn badges!"},subscription:{title:"Subscription",planPro:"Pro",planEnterprise:"Enterprise",planFree:"Free",paidSeats_one:"{{count}} paid seat included. Viewer seats remain free.",paidSeats_other:"{{count}} paid seats included. Viewer seats remain free.",renews:"Renews {{date}}",manageBilling:"Manage Billing",freePlanPrefix:"You're on the",freePlanSuffix:"plan.",upgradeToPro:"Upgrade to Pro"},deleteAccount:{button:"Delete Account",warning:"This will delete all your data and cannot be undone.",dialogTitle:"Delete Account",dialogDescriptionPrefix:"Are you absolutely sure? This will permanently delete your account, all your tutorials, workspaces, and every other piece of data associated with it.",dialogDescriptionEmphasis:"This cannot be undone.",cancel:"Cancel",deleting:"Deletingâ¦",confirmButton:"Delete My Account"},removePhotoDialog:{title:"Remove Profile Picture",description:"Are you sure you want to remove your profile picture? This action cannot be undone.",cancel:"Cancel",confirm:"Remove"},changePasswordDialog:{title:"Change Password",description:"Enter your current password and choose a new one.",currentPasswordLabel:"Current Password",newPasswordLabel:"New Password",confirmNewPasswordLabel:"Confirm New Password",cancel:"Cancel",updating:"Updating...",submit:"Update Password"},validation:{usernameLength:"Username must be 3-20 characters",usernameFormat:"Username can only contain letters, numbers, and underscores",usernameTaken:"Username is already taken"},toasts:{loadProfileFailed:"Failed to load profile",usernameUpdated:"Username updated successfully!",usernameUpdateFailed:"Failed to update username",passwordsDoNotMatch:"Passwords do not match",passwordTooShort:"Password must be at least 6 characters long",unableToVerifyAccount:"Unable to verify your account. Please try again.",currentPasswordIncorrect:"Current password is incorrect",passwordUpdated:"Password updated successfully!",selectImageFile:"Please select an image file",imageTooLarge:"Image size must be less than 5MB",photoUpdated:"Profile picture updated!",photoUploadFailed:"Failed to upload profile picture",ph
591otoRemoved:"Profile picture removed",photoRemoveFailed:"Failed to remove profile picture",socialMediaErrors:"Please fix the social media URL errors",profileUpdated:"Profile updated successfully!",profileUpdateFailed:"Failed to update profile",accountDeleted:"Your account has been deleted.",accountDeleteFailed:"Failed to delete account. Please contact support."},saveProfile:"Save Profile"},stepCanvasEditor$1={heading:"Step {{number}} â Editing",done:"Done",cancel:"Cancel",noScreenshot:"No screenshot uploaded for this step.",blurTag:"BLUR",textPlaceholder:"Type here, Enter to confirm",duplicate:"Duplicate",delete:"Delete",clearAll:"Clear all",remove:"Remove",custom:"Custom:",stroke:"Stroke",fill:"Fill",strokeTextColorTitle:"Stroke / text color",fillColorTitle:"Fill color",capStart:"Start",capEnd:"End",lineWidths:{thin:"Thin (2px)",medium:"Medium (4px)",thick:"Thick (7px)"},tools:{select:{label:"Select",title:"Select (S)"},blur:{label:"Blur",title:"Blur region (B)"},highlight:{label:"Rect",title:"Rectangle highlight (H)"},ellipse:{label:"Ellipse",title:"Ellipse (E)"},arrow:{label:"Arrow",title:"Arrow (A)"},line:{label:"Line",title:"Line (L)"},text:{label:"Text",title:"Text (T)"},clickTarget:{label:"Click",title:"Click indicator (C)"},eraser:{label:"Erase",title:"Erase (X)"},elementBounds:{label:"Element outline",title:"Outline the control this step clicks"}},hints:{selectWithSelection:"Click duplicate or delete in the toolbar above the selection. Click blank area to deselect.",selectEmpty:"Click any annotation to select it.",blur:"Drag to draw a blur region.",highlight:"Drag to draw a highlight rectangle.",ellipse:"Drag to draw an ellipse.",arrow:"Drag from start to end. The end cap gets the arrowhead by default.",line:"Drag to draw a straight line.",text:"Click on the image to place text. Press Enter to confirm.",clickTarget:"Click anywhere on the image to place a click indicator.",eraser:"Click any annotation to remove it.",elementBounds:"Drag a box over the control this step clicks."},chips:{blur:"{{count}} blur",rect:"{{count}} rect",ellipse:"{{count}} ellipse",arrow:"{{count}} arrow",line:"{{count}} line",text:"{{count}} text",clickTarget:"click target",elementBounds:"Element outline"},fontStyles:{normal:"Normal",bold:"Bold",italic:"Italic",boldItalic:"Bold Italic"},capOptions:{none:"None",bar:"Bar",arrow:"Arrow",arrowSolid:"Arrow solid",circle:"Circle",circleSolid:"Circle solid",square:"Square",squareSolid:"Square solid"}},tutorialEditor$1={defaultTitle:"New Tutorial",titlePlaceholder:"Tutorial title",appLabel:"App",cancel:"Cancel",minUnit:"min",secUnit:"sec",autoSaveSaving:"Savingâ¦",autoSaveSaved:"Saved",savingButton:"Saving...",done:"Done",publish:"Publish",publishPublic:"Publish Public",publishPrivate:"Publish Private",publishAnyoneWithLink:"Publish Anyone with a link",proBadge:"Pro",usageOfLimit:"{{count}} of {{limit}}",publishToTeam:"Publish to Team",duplicateBanner:"This is a duplicate of another creator's tutorial. You can edit it for personal reference but cannot publish it.",tipPlaceholder:"Enter tip...",alertPlaceholder:"Enter alert...",sectionHeaderPlaceholder:"Section header...",codeLabelPlaceholder:"Code block label (e.g. Workflow JSON)",codePlaceholder:"Paste JSON or code here...",copyButton:"Copy",duplicateStepMenuItem:"Duplicate step",stepInstructionsPlaceholder:"Step instructions",editButton:"Edit",clickToUploadScreenshot:"Click to upload screenshot",screenshotFileTypes:"PNG, JPG, or WEBP",addStepMenuLabel:"Add a step",uploadImageMenuItem:"Upload image",recordStepMenuItem:"Record a step",textStepMenuItem:"Text step",jsonCodeMenuItem:"JSON / Code",tipMenuItem:"Tip",alertMenuItem:"Alert",headerMenuItem:"Header",addNewStepTitle:"Add New Step",addNewStepDescription:"Click to create a new step, then upload a screenshot",tableOfContents:"Table of Contents",publishToTeamDescription:"Choose which team workspace to publish this tutorial to.",selectTeamLabel:"Select a team:",chooseWorkspacePlaceholder:"Choose workspaceâ¦",viewerOnlyBadge:"Viewer only",defaultStepDescription:"Add description for this step",stepFallbackTitle:"Step {{number}}",newStepTitle:"New Step",newStepFallback:"New step",typedTextFallback:"Typed text",modeGuide:"Guide",modeQuiz:"Quiz",markerStyleMarker:"Click marker",markerStyleOutline:"Element outline",markerStyleMarkerHint:"Show a circle on the point that was clicked.",markerStyleOutlineHint:"Show a box around the element that was clicked.",preview:"Preview",descriptionPlaceholder:"Add a descriptionâ¦",removeApp:"Remove {{app}}",estTimeMinutesLabel:"Estimated minutes",estTimeSecondsLabel:"Estimated seconds",options:{visibilityHeading:"Visible to readers",markerHeading:"Marker",hiddenFromReaders:"Hidden from readers",addQuiz:"Quiz",addQuizWithAi:"Create with AI",addQuizWithAiHint:"Writes a question for every step",addQuizManually:"Add questions myself",addQuizManuallyHint:"Start empty and write your own",labels:{tableOfContents:"Table of contents",a
591ppAndCategory:"App & category",author:"Author",stepCount:"Step count",estimatedTime:"Estimated time",rating:"Rating",quiz:"Quiz"}},stepsCountBadge_one:"{{count}} step",stepsCountBadge_other:"{{count}} steps",toasts:{signInRequired:"Please sign in to create tutorials",stepsInsertedFromExtension_one:"{{count}} step inserted from extension recording!",stepsInsertedFromExtension_other:"{{count}} steps inserted from extension recording!",tutorialLoaded:"Loaded tutorial: {{title}}",loadTutorialFailed:"Failed to load tutorial: {{error}}",stepsLoadedFromUpload:"{{count}} steps loaded from extension upload",loadExtensionUploadFailed:"Failed to load extension upload: {{error}}",stepsCreatedFromFiles:"{{count}} steps created from uploaded files",signInRequiredScreenshot:"Please sign in to upload screenshots",screenshotUploaded:"Screenshot uploaded successfully",uploadScreenshotFailed:"Failed to upload screenshot: {{error}}",newStepAdded:"New step added",stepLimitReached:"You've reached the {{limit}}-step limit for this guide. Upgrade to Pro for more.",recordingTruncatedToStepLimit:"This recording has {{recorded}} steps, but your plan allows {{kept}} per guide â only the first {{kept}} were loaded. Upgrade to Pro to keep longer guides.",saveFailed:"Failed to save: {{error}}",publishBusySaving:"Still saving your changes â please try publishing again in a moment.",saveTutorialFirst:"Please save the tutorial first",exportingTo:"Exporting to {{format}}...",exportFailed:"Export failed: {{error}}",noTeamWorkspaceSelected:"No team workspace selected",signInRequiredPublish:"Please sign in to publish tutorials",publicPublishingRequiresOfficial:"Public publishing requires official creator status",selectAppBeforePublish:"Please select an app before publishing",duplicateCannotPublish:"This tutorial is a duplicate and cannot be published. You can edit it for personal reference.",tutorialPublished:"Tutorial published successfully!",publishFailed:"Failed to publish: {{error}}",selectedStepsDeleted:"Deleted selected steps",stepDuplicated:"Step duplicated",stepDeleted:"Step deleted",tipAdded:"Tip added",alertAdded:"Alert added",headerAdded:"Header added",typingStepAdded:"Typing step added",codeStepAdded:"Code step added",signInRequiredGeneric:"Please sign in to upload",imageStepInserted:"Image step inserted",uploadFailed:"Failed to upload: {{error}}",extensionOpening:"Extension opening⦠pick a tab or open a new one to start recording.",saveBeforeRecording:"Save this guide before recording steps into it.",stepsReordered:"Steps reordered",copiedToClipboard:"Copied to clipboard",copyToClipboardFailed:"Failed to copy to clipboard"}},workspaceSettings$1={sections:{general:"General",branding:"Branding",members:"Team Members",apps:"Apps",billing:"Plans & Billing",activity:"Activity Log"},colors:{violet:"Violet",blue:"Blue",emerald:"Emerald",orange:"Orange",rose:"Rose",teal:"Teal",amber:"Amber"},roles:{workspace_admin:{label:"Team Admin",description:"Full access â can manage members and publish"},creator:{label:"Creator",description:"Can create guides and publish to the team workspace"},viewer:{label:"Viewer",description:"Read-only access to team guides (free seat)"}},backButton:"Back",settingsBreadcrumb:"Settings",myWorkspacesLabel:"My Workspaces",noWorkspacesYet:"No workspaces yet.",selectTeamPrompt:"Select a team from the sidebar to view its settings.",cancel:"Cancel",general:{description:"Manage workspace settings",workspaceNameTitle:"Workspace Name",tileColorTitle:"Workspace Tile Colour",tileColorDescription:"Choose a colour for the workspace badge shown in the sidebar and settings.",customColorLabel:"Custom: {{color}}",defaultColorLabel:"Default (auto from name)",resetColorButton:"Reset to default",deleteWorkspaceTitle:"Delete Workspace",deleteWorkspaceDescription:"Permanently delete this workspace, all memberships, and invites. Tutorials will be unlinked but not deleted.",deleteWorkspaceButton:"Delete workspace",deletingButton:"Deletingâ¦",deleteWorkspaceConfirmTitle:"Are you absolutely sure?",deleteWorkspaceConfirmBefore:"This will permanently delete",deleteWorkspaceConfirmAfter:"and remove all team members. Tutorials published to this workspace will be unlinked but not deleted. This action cannot be undone."},members:{subtitle:"{{active}} active · {{pending}} pending",activeBadge:"Active",pendingBadge:"Pending",billableSeatLabel:"Billable seat",freeSeatLabel:"Free seat",joinedOn:"joined {{date}}",expiresOn:"expires {{date}}",unknownUser:"Unknown User",upgradePlanLink:"Upgrade plan",toAssignPaidRoles:"to assign paid roles",toInv
591iteCreatorsAdmins:"to invite creators & admins",seatIncreaseConfirmNotice:"Sending a creator or admin invite will ask you to confirm a paid seat increase.",youSuffix:" (you)",removeMemberTitle:"Remove member?",removeMemberDescription:"This person will lose access to the team workspace immediately.",removeButton:"Remove",leaveButton:"Leave",leaveWorkspaceConfirmTitle:"Leave workspace?",leaveWorkspaceConfirmDescription:"You will immediately lose access to this workspace and all its team guides.",leaveWorkspaceConfirmButton:"Leave workspace",revokeButton:"Revoke",noMembersYet:"No members yet.",inviteMemberTitle:"Invite a Member",inviteMemberDescription:"They'll receive an invite link valid for 7 days.",emailAddressLabel:"Email address",roleLabel:"Role",sendInviteButton:"Send Invite",inviteLinkLabel:"Invite link â share this if the email didn't arrive",copyButton:"Copy"},branding:{description:"Add company branding to workspace exports and guide embeds.",companyBrandingTitle:"Company Branding",companyBrandingDescription:"Stepily branding stays visible. Your company logo and color are added alongside it in supported exports and embeds.",proRequiredTitle:"Pro required",proRequiredDescription:"Upgrade this account to Pro to upload a company logo and apply workspace branding colors.",companyLogoLabel:"Company logo",workspaceLogoAlt:"Workspace logo",noLogoText:"No logo",logoUploadHint:"Upload a PNG, JPG, or WebP logo up to 1MB. It will be shown alongside Stepily branding in exports.",replaceLogoButton:"Replace logo",uploadLogoButton:"Upload logo",removeLogoButton:"Remove logo",brandColorLabel:"Brand color",brandColorHint:"Used for click markers and slideshow action buttons when the toggles below are enabled.",useBrandColorClickMarkersTitle:"Use brand color for click markers",useBrandColorClickMarkersDescription:"Override guide click markers with your workspace brand color in exports and viewer surfaces.",useBrandColorButtonsTitle:"Use brand color for guide buttons",useBrandColorButtonsDescription:"Apply your workspace brand color to slideshow embed buttons such as the Get Started and Next actions.",viewProPricingButton:"View Pro pricing"},billing:{planNames:{pro:"Pro",enterprise:"Enterprise",admin:"Admin",free:"Free"},description:"Manage your plan and team seats",freePlanTitle:"Free Plan",freePlanDescription:"You can invite unlimited viewers. Upgrade to Pro to add creators or admins.",currentPlanBadge:"Current Plan",billableSeatsUsed_one:"billable seat used · viewers are always free",billableSeatsUsed_other:"billable seats used · viewers are always free",proCardTitle:"Pro",proCardDescription:"Paid seats for creators and admins. ${{entryPrice}}/mo for 1-2 seats, then ${{volumePrice}}/mo at 3+ seats.",enterpriseCardTitle:"Enterprise",enterpriseCardDescription:"Need SSO, compliance, or centralized user management? We can help.",contactSalesButton:"Contact sales",proPlanTitle:"Pro Plan",renewsOn:"Renews {{date}}",activeSubscription:"Active subscription",paidSeatsIncluded_one:"paid seat included",paidSeatsIncluded_other:"paid seats included",seatsInUse:"{{count}} in use",seatsRemaining:" · {{count}} remaining",manageSeatsTitle:"Manage Seats",manageSeatsDescription:"Volume pricing applies automatically at 3+ paid seats. Update paid-seat quantity here.",addSubtractSeatsLabel:"Add/subtract paid seats",noSeatChange:"No seat change",seatChangeSummary_one:"{{signedCount}} seat -> {{total}} total",seatChangeSummary_other:"{{signedCount}} seats -> {{total}} total",seatReductionBlocked_one:"Remove {{count}} active creator/admin member in Team Members before decreasing paid seats by {{decreaseBy}}.",seatReductionBlocked_other:"Remove {{count}} active creator/admin members in Team Members before decreasing paid seats by {{decreaseBy}}.",seatChangeHint_one:"Use positive numbers to add seats and negative numbers to remove them. You cannot go below {{count}} paid seat while that many creator or admin seats are in use.",seatChangeHint_other:"Use positive numbers to add seats and negative numbers to remove them. You cannot go below {{count}} paid seats while that many creator or admin seats are in use.",reviewSeatChangeButton:"Review Seat Change",enterprisePlanTitle:"Enterprise Plan",managedBilling:"Managed billing",enterpriseBillingManagedText:"Enterprise billing is managed directly with Stepily. Contact support for seat changes or contract questions.",contactSupportButton:"Contact support",unsupportedBillingTitle:"Unsupported billing state detected",unsupportedBillingDescription:"This workspace is not on the supported free, Pro, or enterprise billing contract locally. Move it to Pro billing before validating the migration.",moveToProButton:"Move to Pro",debug:{title:"Local Billing Debug",descriptionBefore:"Local-only billing metadata from",descriptionAfter:"for phase 1 and phase 2 verification.",appRole:"App role",billingPlanKey:"Billing plan key",subscribed:"Subscribed",subscriptionStatus:"Subscription status",paidSeatQuantity:"Paid seat quantity",priceLookupKey:"Price lookup key",billingSource:"Billing source",subscriptionEnd:"Subscription end",yes:"yes",no:"no"}},activity:{description:"Recent team activity",comingSoon:"Activity log coming soon."},apps:{description:"Rename or remove the custom apps created for this team.",noAppsYet:"No custom apps yet. Create one from the app picker when tagging a tutorial or workflow.",usedIn_one:"Used in {{count}} guide or workflow",usedIn_other:"Used in {{count}} guides or workflows",deleteTitle:"Delete custom app?",deleteDescription:`This will permanently remove "{{name}}" from your team's custom apps.`,deleteButton:"Delete",renameLabel:"Rename app",renameDisabledInUse:"Can't rename â this app is still used in guides or workflows"},seatPreview:{confirmSeatIncreaseTitle:"Confirm seat increase",confirmSeatChangeTitle:"Confirm seat change",inviteNeedsSeatDescription:"This invite needs one more paid seat before it can be sent.",reviewBillingImpactDescription:"Review the billing impact before updating paid seats.",billingChangeRequiredTitle:"Billing change required",confirmBillingUpdateTitle:"Confirm billing update",changeSubscriptionInvite:"Change your Pro subscription from {{current}} to {{target}} paid seats, then send the invite to",changeSubscription:"Change your Pro subscription from {{current}} to {{target}} paid seats.",currentRecurringTotalLabel:"Current recurring total",newRecurringTotalLabel:"New recurring total",dueTodayLabel:"Due today (prorated)",creditedTodayLabel:"Credited today (prorated)",noChargeTodayLabel:"Due today",perSeatRateLabel:"Per-seat rate after change",bulkPricingThresholdCrossedTitle:"Bulk pricing threshold crossed",bulkPricingThresholdCrossedDescription:"This change reaches 3 paid seats, so your Pro plan switches to the lower bulk per-seat rate.",volumePricingDroppedTitle:"Volume pricing will no longer apply",volumePricingDroppedDescription:"This change drops below 3 paid seats, so your Pro plan returns to the 1-2 seat rate.",confirmAndSendInviteButton:"Confirm and Send Invite",confirmSeatChangeButton:"Confirm Seat Change"},toasts:{enterEmailAddress:"Please enter an email address",cannotInviteSelf:"You can't invite yourself to your own workspace.",ownerMustIncreaseSeats:"The workspace owner must increase paid seats in billing before you can invite creators or admins.",upgradeBeforeInviting:"Upgrade to Pro before inviting additional creators or admins.",signInRequiredPreviewSeat:"You must be signed in to preview seat changes",previewSeatChangeFailed:"Failed to preview seat change",signInRequiredApplySeat:"You must be signed in to apply seat changes",applySeatChangeFailed:"Failed to apply seat change",paidSeatsUpdatedBilling:"Paid seats updated in billing",paidSeatsUpdated:"Paid seats updated",brandColorUpdated:"Brand color updated",brandingPreferencesUpdated:"Branding preferences updated",upgradeToUploadBranding:"Upgrade to Pro to upload company branding.",selectValidImageType:"Please select a PNG, JPG, or WebP image",logoSizeTooLarge:"Logo size must be less than 1MB",companyLogoUpdated:"Company logo updated",uploadLogoFailed:"Failed to upload company logo",companyLogoRemoved:"Company logo removed",deleteWorkspaceFailed:"Failed to delete workspace",seatLimitUpgradeToPro:"Upgrade to Pro to add creators and admins.",seatLimitReached_one:"Seat limit reached. {{plan}} currently includes {{count}} paid seat. Increase seats in billing to add more.",seatLimitReached_other:"Seat limit reached. {{plan}} currently includes {{count}} paid seats. Increase seats in billing to add more.",assignAnotherAdminFirst:"Assign another admin before leaving.",ownerCannotLeave:"As the workspace owner, you can't leave this workspace â delete it, or contact support about transferring billing.",inviteLinkCopied:"Invite link copied!",appRenamed:"App renamed",appRenameFailed:"Failed to rename app",appRenameConflict:'"{{name}}" already exists',appDeleted:"App deleted",appDeleteFailed:"Failed to delete app"}},dashboard$1={pageTitles:{teamGuidesPublic:"Team Guides â Public",teamGuidesPrivate:"Team Guides â Private",teamGuidesAnyone:"Team Guides â Anyone with a link"},fallbackYou:"You",fallbackTeamMember:"Team Member",fallbackTeamName:"Team",pastMemberLabel:"Past Member",removeFromTeam:"Remove from team",moveToTeam:"Move to Team",moveToWorkspace:"Move to {{name}}",workbooksHeading:"Workbooks",teamWorkbooksHeading:"Team Workbooks",individualTutorialsHeading:"Individual Tutorials",teamGuidesHeading:"Team Guides",proU
591psellFeature:"unlimited private, link-only, and team tutorials",selection:{createWorkbook:"Create Workbook",addToFolder:"Add to Folder",addToFolderCount:"Add to Folder ({{count}})",publishWorkbookCount:"Publish Workbook ({{count}})",cancel:"Cancel"},empty:{noSavedTutorialsTitle:"No Saved Tutorials Yet",noSavedTutorialsDescription:"Save tutorials to see them here",noPublishedTutorialsTitle:"No Published Tutorials",noPublishedTutorialsDescription:"Publish your tutorials to share them with others",noTutorialsSharedByLinkTitle:"No Tutorials Shared by Link",noTutorialsSharedByLinkDescription:"Enable âAnyone with a link can viewâ in the share dialog to see tutorials here.",noExtensionUploadsTitle:"No Extension Uploads",noExtensionUploadsDescription:"Uploads from the browser extension will appear here",noDesktopUploadsTitle:"No Desktop Uploads",noDesktopUploadsDescription:"Uploads from the desktop app will appear here",nothingSharedTitle:"Nothing Shared with You",nothingSharedDescription:"When someone shares a tutorial or folder with you, it will appear here",noTeamWorkspaceTitle:"No Team Workspace",noTeamWorkspaceCollabDescription:"Create a team workspace to collaborate with others",noTeamWorkspaceTrashDescription:"Create a team workspace to use the team trash bin.",noTeamGuidesTitle:"No Team Guides",noTeamGuidesDescription:"Use the ⯠menu on any guide or workbook to move it into your team workspace",noPublicTeamGuidesTitle:"No Public Team Guides",noPublicTeamGuidesDescription:"Guides moved to the team from the Public tab will appear here",noPrivateTeamGuidesTitle:"No Private Team Guides",noPrivateTeamGuidesDescription:"Guides transferred to the team from the Private tab will appear here",noTeamGuidesSharedByLinkTitle:"No Team Guides Shared by Link",noTeamGuidesSharedByLinkDescription:"Team guides with link sharing enabled will appear here",noTutorialsInFolderTitle:"No Tutorials in this Folder",noTutorialsInFolderDescription:'Go to the Published or Private tab and use "Add to Folder" to add tutorials here',noTutorialsWithTagTitle:'No Tutorials with "{{tag}}" Tag',noTutorialsWithTagDescription:"Tag tutorials in the editor to see them here",noPublishedGuidesTitle:"No Published Guides",noPublishedGuidesDescription:"{{name}} hasnât published any guides yet.",trashEmptyTitle:"Trash is Empty",trashEmptyDescription:"Tutorials you move to trash will appear here. They are not visible publicly while in the trash.",teamTrashEmptyTitle:"Team Trash is Empty",teamTrashEmptyDescription:"Team tutorials moved to trash will appear here. Only workspace admins can trash team tutorials.",accessRestrictedTitle:"Access Restricted",accessRestrictedDescription:"Only workspace admins can view and manage the team trash bin."},privateTutorials:{badgeTitle:"Private Tutorials",descriptionPaid:'Publish tutorials as "Private" from the editor to see them here.',descriptionFree:"Keep tutorials private and share them on your terms.",featureIncluded_one:"{{count}} free private, link-only, or team tutorial included",featureIncluded_other:"{{count}} free private, link-only, and team tutorials included",featureUnlimited:"Unlimited with Pro",featureSharing:"Private sharing and PDF export",unlockPro:"Unlock Pro",upsellUsed_one:"You have used your {{count}} included tutorial. Upgrade to Pro to do more.",upsellUsed_other:"You have used your {{count}} included tutorials. Upgrade to Pro to do more.",upgrade:"Upgrade"},workbookDialog:{title:"Create Workbook",description_one:"Group {{count}} tutorial into a workbook",description_other:"Group {{count}} tutorials into a workbook",titleLabel:"Workbook Title *",titlePlaceholder:"e.g., Getting Started with Figma",descriptionLabel:"Description (optional)",descriptionPlaceholder:"Brief description of this workbook",cancel:"Cancel",publish:"Publish Workbook"},moveGuideDialog:{title:"Move Guide",privateWarning:"This is a private guide. Moving it to a team transfers workspace ownership â it will be removed from your Private tab.",cancel:"Cancel",move:"Move"},transferDialog:{title:"Transfer Ownership to {{name}}?",description:"is private. Moving it to the team transfers workspace ownership to {{name}} â it will be removed from your Private tab. You will retain the ability to edit it as its original creator.",fallbackTutorial:"This tutorial",fallbackTeam:"the team",cancel:"Cancel",confirm:"Transfer Ownership"},deleteDialog:{cancel:"Cancel",deleting:"Deletingâ¦",delete:"Delete",deleteTutorialTitle:"Delete tutorial?",deleteTutorialDe
591scription:"Are you sure you want to delete this tutorial? This action cannot be undone.",deletePermanentlyTitle:"Delete tutorial permanently?",deletePermanentlyDescription:"will be permanently deleted. This cannot be undone.",deleteDraftTitle:"Delete draft permanently?"},uploadCard:{moreOptions:"More options",deletePermanently:"Delete permanently",statusCompleted:"completed",statusPending:"pending",steps_one:"{{count}} step",steps_other:"{{count}} steps",session:"Session: {{id}}..."},trash:{restore:"Restore",restoreToTeamGuides:"Restore to Team Guides",personalRestoreNote:"Restored tutorials will return to their original tab but won't be re-published automatically.",teamRestoreNote:"Restored tutorials will return to Team Guides. Permanently deleted tutorials cannot be recovered."},following:{browseCommunity:"Browse Community Tutorials"},toasts:{failedMoveToTrash:"Failed to move to trash",movedToTrash:"Moved to trash",signInToDuplicate:"Please sign in to duplicate tutorials",failedDuplicate:"Failed to duplicate tutorial",tutorialDuplicated:"Tutorial duplicated!",edit:"Edit",failedRestore:"Failed to restore tutorial",tutorialRestored:"Tutorial restored",failedPermanentDelete:"Failed to permanently delete tutorial",tutorialPermanentlyDeleted:"Tutorial permanently deleted",failedUnsave:"Failed to unsave: {{message}}",removedFromSaved:"Removed from saved",failedSave:"Failed to save: {{message}}",savedForLater:"Saved for later",failedOpenUpload:"Failed to open upload: {{message}}",failedCreateTag:"Failed to create tag",tagCreated:"Tag created successfully",failedDeleteTag:"Failed to delete tag",tagDeleted:"Tag deleted",selectAtLeastOneTutorial:"Please select at least one tutorial",removedFromFolder:"Removed from folder",selectTutorialAndTitle:"Please select at least one tutorial and provide a title",workbookCreated:"Workbook created successfully!",failedCreateWorkbook:"Failed to create workbook",tutorialPublished:"Tutorial published successfully",failedPublish:"Failed to publish tutorial: {{message}}",tutorialDeleted:"Tutorial deleted successfully",failedDelete:"Failed to delete tutorial: {{message}}",draftDeleted:"Draft deleted permanently",failedDeleteDraft:"Failed to delete draft: {{message}}"},untitledGuide:"Untitled guide"},allTutorials$1={heading:"All Tutorials",searchResultsHeading:'Search Results for "{{query}}"',resultsFound_one:"{{count}} result found",resultsFound_other:"{{count}} results found",emptyStateDefault:"No tutorials available yet",emptyStateSearch:'No tutorials or workbooks found matching "{{query}}"',creatorsHeading:"Creators ({{count}})",anonymous:"Anonymous",workbooksHeading:"Workbooks ({{count}})",loadMoreWorkbooks:"Load More Workbooks",individualTutorialsHeading:"Individual Tutorials ({{count}})",generalApp:"General",stepsCount_one:"{{count}} step",stepsCount_other:"{{count}} steps",loadMoreTutorials:"Load More Tutorials"},freeGuideLibrary$1={badge:"Limited · 4 of 5 spots",headline:"B2B software companies: Let our AI agents make you a visual knowledge base - for free.",description:"Decrease customer support tickets for your software. We'll point our autonomous AI agents at your software, and they'll generate a complete, interactive library of visual guides.",benefit1:"All we need is to log into your software, whether desktop or browser",benefit2:"You get to beta our full enterprise offer, no strings attached",successTitle:"You're on the list.",successDescription:"We'll reach out within 1 business day to get your documentation agents set up. Check your inbox for a confirmation.",form:{nameLabel:"Your name",emailLabel:"Work email",phoneLabel:"Phone (optional)",hopeLabel:"What you hope to achieve",hopePlaceholder:"e.g. Onboard new hires faster, build a knowledge baseâ¦",submitButton:"Apply for a Free Spot",submittingButton:"Submittingâ¦"},toasts:{nameEmailRequired:"Name and email are required."}},autoguides$1={seo:{title:"Autoguides â AI-Generated How-To Guides",description:"Stepily's Autoguides watch how you work and write the step-by-step documentation for you, so processes get captured without anyone writing them up."}
591,hero:{subtitle:"Agentic documentation infrastructure for teams that want visual guides without manual recording."},card:{title:"Agentic documentation infrastructure",description:"Skip manual recording like Scribe and complex digital adoption platforms. Stepily maps your software to generate complete visual guides on autopilot.",feature1:{title:"Autonomous mapping",description:"Browser agents explore workflows and keep guide coverage current."},feature2:{title:"Self-healing guides",description:"Visual documentation updates as your product changes."}},steps:{step1:"1. Stepily scans your approved systems",step2:"2. Stepily creates your full library of visual guides",step3:"3. Answer questions visually, deflect tickets"},showcase:{knowledgeBase:{text:"Add guides directly to your knowledge base with HTML, Markdown, and other exports.",alt:"Capture step-by-step guides and publish them straight to your knowledge base"},chatbot:{text:"Serve guides directly in your chatbot / AI assistant",alt:"Serve step-by-step guides directly in your chatbot or AI assistant"}}},autoguidesTab$1={subtitle:"Generate visual guides for your software.",subheadline:"Customers get help, you get time back.",whoItsFor:{item1:"Fast-growing software startups that need customer support to scale without linear headcount growth.",item2:"Enterprise companies that want to save time for the support team."},theValue:{heading:"The value",item1:"Deflect repetitive support tickets.",item2:"Documentation that updates with your software. Avoid knowledge drift.",item3:"Integrate guides into knowledge base or AI chatbot."},offer:{heading:"Free launch offer: pilot for 4 remaining companies",description:"Claim our offer to build you a full set of guides before June 31st.",buttonText:"Claim offer"}},trendingTutorialsSection$1={heading:"Trending Tutorials",emptyState:"No published tutorials yet. Be the first to create one!",categories:{generalProductivityOffice:"General Productivity & Office",projectWorkManagement:"Project & Work Management",designCreativeArts:"Design & Creative Arts",developmentEngineering:"Development & Engineering",dataAiBusinessIntelligence:"Data, AI & Business Intelligence",marketingSales:"Marketing & Sales",videoAudioContentCreation:"Video, Audio & Content Creation",financeHrBusinessOps:"Finance, HR & Business Ops",itSecuritySpecialized:"IT, Security & Specialized",educationPersonalGrowth:"Education & Personal Growth"}},homeAnimations$1={step1:"1. Open Stepily's browser extension",step2:"2. Complete your process as usual",step3:"3. Stepily makes a visual guide"},extensionOnboarding$1={loadingStatus:"Preparing your onboardingâ¦",statusError:"We couldn't check your onboarding status. Please check your connection and try again.",tryAgain:"Try again",stepLabelFirst:"First Step",stepLabelNext:"Next Step",graphic:{productivity:"Productivity",instantGuideCapture:"Instant guide capture",addToChromeBadge:"Add to Chrome",captureStepsHint:"Capture each step as you click.",installLabel:"Install",installDescription:"Click âAdd to Chromeâ to pin Stepily in your browser.",recordLabel:"Record",recordDescription:"Open the extension whenever you want to capture a workflow."},install:{heading:"Add the Stepily extension and sign in to it.",description:"Once the extension is installed and connected to your Stepily account, this page will automatically move you to the recording step.",getExtensionButton:"Get the extension.",signedInButton:"I've signed in",skipButton:"Skip for now",detectHint:"We detect connection once the extension finishes its Stepily sign-in flow."},success:{heading:"Nice work, you've just created your first tutorial!",redirecting:"Going to your dashboard in {{count}}â¦",redirectingToTutorial:"Going to your tutorial in {{count}}â¦",goToDashboardButton:"Go to dashboard now",viewTutorialButton:"View your tutorial now"},record:{heading:"Your extension is connected!",description:"Try making something.",startCaptureButton:"Start capture",recordingInProgress:"Recording tutorial in progressâ¦",doneButton:"I'm done",hint:"Stepily will open the tab picker so you can choose where to record your first workflow."}},googleOnboarding$1={loadingStatus:"Finishing your Stepily sign in..."},checkout$1={breadcrumb:"Checkout",title:"Configure your {{plan}} Plan",confirmPlanTitle:"Confirm your {{plan}} Plan",savingBadge:"Saving {{percent}}%",viewerSeatsFreeNote:"Viewer seats remain free; you only pay for creator and admin seats.",billingOption:{monthly:"Monthly (${{price}}/mo per paid seat)",annual:"Annual (${{price}}/yr per paid seat â save ${{saving}}/seat/yr)"},paidSeatsLabel:"Paid seats",priceUnit:{annualBilled:"${{price}}/seat/yr billed annually",monthly:"${{price}}/seat/mo"},volumePricingActive:"Volume pricing is active at {{seats}} paid seats: {{priceText}}.",volumePricingHint:"At 3+ paid seats, Pro automatically drops to {{priceText}}.",minSeatsNote:"Starts at {{minSeats}} paid seat. Adjust quantity here or later in Stripe billing.",paymentDetailsTitle:"Payment Details",paymentDetailsNote:"Securely enter your card and billing information on the next step.",purchaseSummaryTitle:"Purchase Summary",planLine:"{{plan}} Plan",pricePerSeat:{annual:"${{price}}/yr*",monthly:"${{price}}/mo"},seatsLineItem_one:"à {{count}} paid seat",seatsLineItem_other:"à {{count}} paid seats",totalCost:{annual:"${{price}}/yr",monthly:"${{price}}/mo"},savedWithAnnualBillingPrefix:"You saved ",savedWithAnnualBillingSuffix:" with annual billing",switchToAnnualSavePrefix:"Switch to annual and save ",switchToAnnualSaveSuffix:"/seat/yr",totalLabelAnnual:"Total per year",totalLabelMonthly:"Total per month",annualFootnote:"* ${{price}}/yr per paid seat, billed annually",viewerSeatsStayFreeNote:"Viewer seats stay free. You can update paid-seat quantity later in billing.",redirecting:"Redirectingâ¦",continueButton:"Continue to Secure Payment â",toasts:{checkoutFailed:"Checkout failed â please try again."}},proUpsellDialog$1={dialogTitle:"Upgrade to Pro",dialogDescription:"Unlock {{feature}} and review the benefits included with a Pro upgrade.",proLabel:"Pro",heroDescription:"Unlock {{feature}} and more with Pro",whatYouGet:"What you get",features:{embedExport:"Embed and export to PDF, HTML, and Markdown",customBranding:"Customize tutorials with company branding",unlimitedS
591haring:"Unlimited private and link-only sharing",privateWorkspaces:"Private workspaces for your team",seatBilling:"Pay only for creator and admin seats"},upgradeButton:"Upgrade to Pro",maybeLater:"Maybe later"},acceptInvite$1={heading:"Team Workspace Invite",loading:"Loading inviteâ¦",invalid:{title:"Invalid invite link",description:"This invite link is invalid or has been revoked."},expired:{title:"Invite expired",description:"This invite link has expired. Ask your team admin to send a new one."},accepted:{title:"Invite already accepted"},alreadyMember:{title:"You're already a member"},goHome:"Go home",goToDashboard:"Go to dashboard",invitedToJoin:"You've been invited to join",workspaceNameFallback:"a team workspace",asRolePrefix:"as a ",acceptButton:"Accept invite",mismatchedEmailPrefix:"This invite was sent to ",mismatchedEmailMiddle:". You're signed in as ",mismatchedEmailSuffix:".",signInCorrectAccount:"Sign in with the correct account",noUserDescription:"Create an account or sign in to accept this invite.",createAccount:"Create account",alreadyHaveAccount:"Already have an account? Sign in",theWorkspaceFallback:"the workspace",toasts:{joinFailed:"Failed to join workspace",joined:"You've joined {{workspace}}!"}},leaderboard$1={heading:"All Tutorials",subheading:"Browse all published tutorials by category and app",categoryLabel:"Category:",appLabel:"App:",selectCategoryPlaceholder:"Select category",selectAppPlaceholder:"Select app",tutorialsCount:"# of Tutorials",table:{rank:"Rank",tutorial:"Tutorial",creator:"Creator",category:"Category",app:"App",rating:"Rating"},noTutorials:"No tutorials available",appFallback:"N/A",categories:{topRated:"Top Rated",sales:"Sales",basic:"Basic",marketing:"Marketing",design:"Design",elderly:"Elderly",uncategorized:"Uncategorized"}},publicProfile$1={loading:"Loading profile...",notFound:"Profile not found",goBackHome:"Go Back Home",back:"Back",anonymousUser:"Anonymous User",follow:"Follow",unfollow:"Unfollow",linkedinAriaLabel:"LinkedIn Profile",instagramAriaLabel:"Instagram Profile",youtubeAriaLabel:"YouTube Channel",twitterAriaLabel:"Twitter/X Profile",workbooksHeading:"Workbooks",workbookCount_one:"{{count}} workbook",workbookCount_other:"{{count}} workbooks",tutorialsHeading:"Published Tutorials",tutorialCount_one:"{{count}} tutorial",tutorialCount_other:"{{count}} tutorials",toasts:{noPublishedContent:"This user hasn't published any tutorials yet",loadFailed:"Failed to load profile",unfollowed:"Unfollowed",followed:"Following!"}},resetPassword$1={invalidLinkTitle:"Link expired or invalid",invalidLinkFallback:"This password reset link is no longer valid.",requestNewLink:" Request a new one from the sign-in page.",backToSignIn:"Back to sign in",setNewPasswordTitle:"Set a new password",setNewPasswordDescription:"Enter and confirm your new password below.",newPasswordLabel:"New Password",confirmPasswordLabel:"Confirm New Password",checkingLink:"Checking link...",updating:"Updating...",updatePassword:"Update Password",toasts:{passwordsDoNotMatch:"Passwords do not match",passwordTooShort:"Password must be at least 6 characters long",passwordUpdated:"Password updated successfully! You're now logged in."}},tutorialPage$1={loading:"Loadingâ¦"},authorize$1={loading:"Loading...",invalidRequestTitle:"Invalid Request",missingParameters:"Missing required parameters. Please check your extension configuration.",redirectNotAuthorized:"The redirect URI is not authorized for this client. Please check your extension configuration.",returnHome:"Return Home",title:"Authorization Request",descriptionPrefix:"The ",descriptionSuffix:" {{appType}} wants to access your Stepily account",allowIntro:"This will allow the {{appType}} to:",permissions:{viewTutorials:"View your public tutorials",accessContent:"Access tutorial content and images",displayIn:"Display tutorials in the {{location}}"},revokeNotice:"You can revoke access at any time from your profile settings.",decline:"Decline",approve:"Approve",authorizing:"Authorizing...",appNames:{stepilyDesktop:"Stepily Desktop",tutorialSidePanel:"Tutorial Side Panel"},appTypes:{application:"application",extension:"extension"},sidePanel:"side panel",toasts:{authorizeFailed:"Failed to authorize extension"}},adminReports$1={loading:"Loading...",heading:"Content Reports",noReports:"No reports found.",unknownTutorial:"Unknown Tutorial",reportedOn:"Reported {{date}}",buttons:{view:"View",action:"Action",dismiss:"Dismiss"},statuses:{pending:"Pending",actioned:"Actioned",dismissed:"Dismissed"}
591,toasts:{updateFailed:"Failed to update report",reportMarkedAs:"Report marked as {{status}}"}},imageCropDialog$1={dialogTitle:"Crop Profile Picture",helperText:"Drag to reposition ⢠Scroll to zoom",cancel:"Cancel",saveUpload:"Save & Upload"},appSelector$1={searchPlaceholder:"Search apps or type a domain...",domainHint:"Type the full domain (e.g. google.com)",customCategory:"Custom",toasts:{addedCustomApp:'Added "{{name}}" as a custom app',addCustomAppFailed:"Failed to add custom app"}},reportTutorialDialog$1={trigger:"Report",dialogTitle:"Report Tutorial",reportingPrefix:"Reporting:",reasons:["Inappropriate or offensive content","Spam or misleading","Copyright violation","Contains sensitive/private information","Other"],detailsPlaceholder:"Additional details (optional)",cancel:"Cancel",submitReport:"Submit Report",submitting:"Submitting...",toasts:{signInRequired:"Please sign in to report a tutorial",selectReason:"Please select a reason",alreadyReported:"You have already reported this tutorial",reportSubmitted:"Report submitted. Thank you for helping keep the community safe.",submitFailed:"Failed to submit report"}},tutorialCard$1={unsave:"Unsave",saveForLater:"Save for later",edit:"Edit",share:"Share",duplicate:"Duplicate",moveToTrash:"Move to Trash"},workbookCard$1={edit:"Edit",moreThumbnails:"+{{count}} more",tutorialCount_one:"{{count}} tutorial",tutorialCount_other:"{{count}} tutorials",stepCount_one:"{{count}} step",stepCount_other:"{{count}} steps",thumbnailAlt:"Tutorial {{index}}"},tutorialPdfPreview$1={dialogTitle:"PDF Preview",dialogTitleWithTutorial:"PDF Preview â {{title}}",pageLabel:"Page {{current}} / {{total}}",byAuthor:"by {{username}}",generating:"Generatingâ¦",downloadPdf:"Download PDF",proLabel:"Pro",proFeatureLabel:"PDF exports",loadFailed:"Failed to load tutorial data.",companyLogoAlt:"Company logo"},tutorialPptxPreview$1={dialogTitle:"PowerPoint Preview",dialogTitleWithTutorial:"PowerPoint Preview â {{title}}",slideLabel:"Step {{current}} / {{total}}",byAuthor:"by {{username}}",generating:"Generatingâ¦",downloadPptx:"Download PowerPoint",proLabel:"Pro",proFeatureLabel:"PowerPoint exports",loadFailed:"Failed to load tutorial data.",companyLogoAlt:"Company logo",exportFailed:"PowerPoint export failed. Please try again."},screenshotViewport$1={zoomIn:"Zoom in",zoomOut:"Zoom out",quizBanner:"ð Click where the target should be!"},quiz$1={sampleDataTitle:"Sample data",sampleDataDescription:"Enter these values into the correct fields as you work through the quiz.",typeAnswerPlaceholder:"Type your answer",submitAnswer:"Check",clickInstruction:"Click the spot on the screenshot.",typeInstruction:"Enter the value from the sample data.",hintLabel:"Hint",progress:"Question {{current}} of {{total}}",missCount:"{{count}} wrong so far",noQuestions:"This quiz no longer matches the guide. Ask the author to regenerate it.",completeTitle:"Quiz complete",completeScore:"{{firstTry}} of {{total}} right first time ({{percent}}%)",completeMisses:"{{count}} wrong attempt along the way",completeMisses_other:"{{count}} wrong attempts along the way",restart:"Try again",exit:"Back to the guide",feedback:{match:"Correct.",empty:"Enter an answer first.",typo:"Almost â check your spelling.",wrongDomain:"Right name, wrong domain.",wrongMagnitude:"Right digits, wrong amount.",partial:"On the right track, but something is missing.",invalidFormat:"That isn't in the format this field expects.",mismatch:"Not quite. Check the sample data and try again."},matcher:{exact:"Exact value",name:"Name",email:"Email",phone:"Phone number",postal:"Postal code",url:"URL",numeric:"Number",currency:"Amount",date:"Date",freeText:"Free text"},toasts:{answerCorrect:"Correct!",clickIncorrect:"Not there â try again."},editor:{generate:"Create quiz with AI",regenerate:"Regenerate quiz",generating:"Creating quiz...",generatingHint:"Reading every step and screenshot. This usually takes 30â60 seconds.",usageOfLimit:"{{count}}/{{limit}} quizzes",staleWarning:"This guide has changed since the quiz was created. Regenerate it so the questions still match.",enableLabel:"Quiz Mode available on this guide",enableHint:"Turn off to hide Quiz Mode from readers without deleting the quiz.",sampleDataHeading:"Sample data",sampleDataHint:"Shown to the reader during the quiz. Values read from a screenshot in your guide are marked as such.",fieldLabel:"Field name",fieldValue:"Value",source:{screenshot:"From screenshot",invented:"Made up"},kind:{click:"Click",type:"Type"},promptLabel:"Question",hintLabel:"Hint",hintPlaceholder:"Shown after a wrong answer",matcherLabel:"Compare as",removeQuestion:"Remove question",delete:"Delete quiz",confirmDelete:"Delete this quiz? The guide itself is not affected.",toasts:{generated:"Quiz created",generateFailed:"Couldn't create the quiz. Please try again.",monthlyQuotaExhausted:"You've used {{used}} of {{limit}} AI generations this month. Your quota resets on the 1st.",screenshotsSkipped:"{{count}} screenshot was past the per-quiz limit and wasn't used.",screenshotsSkipped_other:"{{count}} screenshots were past the per-quiz limit and weren't used.",deleted:"Quiz deleted",deleteFailed:"Couldn't delete the quiz",toggleFailed:"Couldn't update Quiz Mode"}
591,saveStatus:{saving:"Savingâ¦",saved:"Saved",error:"Couldn't save"},promptPlaceholder:"What should the reader be asked to do?",approximateOutline:"Outline is a guess around the click point â open the step editor to draw the real one"}},stepilyLoader$1={loadingAlt:"Loading"},moveWorkbookToTeam$1={title:"Move workbook to a team",description:"â{{title}}â will live in the team workspace, where members can read it.",workspaceLabel:"Team workspace",workspacePlaceholder:"Choose a workspace",guidesWarning:"Its {{count}} guides move to {{workspace}} as well, so you don't have to add them one by one.",guidesAlreadyThere:"Every guide in this workbook is already in the selected workspace.",noGuides:"This workbook has no guides yet.",cardAction:"Move to team",cancel:"Cancel",confirm:"Move workbook and guides",moving:"Moving..."},productNav$1={links:{"desktop-app":{label:"Desktop app",description:"Capture guides from any app on your computer."},"browser-extension":{label:"Browser extension",description:"Document any website in one click."},"blur-and-annotate":{label:"Blur & annotate",description:"Hide sensitive data and point readers at what matters."},autoquiz:{label:"Autoquiz",description:"Turn any guide into a quiz."}}},en={languageSwitcher:languageSwitcher$1,common:common$1,header:header$1,footer:footer$1,home:home$1,pricing:pricing$1,faq:faq$1,desktopDownload:desktopDownload$1,solutionsNav:solutionsNav$1,solutions:solutions$1,caseStudies:caseStudies$1,privacyPolicy:privacyPolicy$1,bookDemo:bookDemo$1,homeContent:homeContent$1,authenticatedHome:authenticatedHome$1,recentGuides:recentGuides$1,signupQuestionnaire:signupQuestionnaire$1,globalSearch:globalSearch$1,compactHeader:compactHeader$1,community:community$1,appSidebar:appSidebar$1,appCard:appCard$1,auth:auth$1,shareDialog:shareDialog$1,workbookViewer:workbookViewer$1,workbookEditor:workbookEditor$1,tutorialViewer:tutorialViewer$1,profile:profile$1,stepCanvasEditor:stepCanvasEditor$1,tutorialEditor:tutorialEditor$1,workspaceSettings:workspaceSettings$1,dashboard:dashboard$1,allTutorials:allTutorials$1,freeGuideLibrary:freeGuideLibrary$1,autoguides:autoguides$1,autoguidesTab:autoguidesTab$1,trendingTutorialsSection:trendingTutorialsSection$1,homeAnimations:homeAnimations$1,extensionOnboarding:extensionOnboarding$1,googleOnboarding:googleOnboarding$1,checkout:checkout$1,proUpsellDialog:proUpsellDialog$1,acceptInvite:acceptInvite$1,leaderboard:leaderboard$1,publicProfile:publicProfile$1,resetPassword:resetPassword$1,tutorialPage:tutorialPage$1,authorize:authorize$1,adminReports:adminReports$1,imageCropDialog:imageCropDialog$1,appSelector:appSelector$1,reportTutorialDialog:reportTutorialDialog$1,tutorialCard:tutorialCard$1,workbookCard:workbookCard$1,tutorialPdfPreview:tutorialPdfPreview$1,tutorialPptxPreview:tutorialPptxPreview$1,screenshotViewport:screenshotViewport$1,quiz:quiz$1,stepilyLoader:stepilyLoader$1,moveWorkbookToTeam:moveWorkbookToTeam$1,productNav:productNav$1},languageSwitcher={changeLanguage:"è¨èªã夿´"},common={searchPlaceholder:"ã¢ããªã使è
ãã·ã¼ã±ã³ã¹ãæ¤ç´¢",toasts:{loadWorkbookFailed:"ã¯ã¼ã¯ããã¯ã®èªã¿è¾¼ã¿ã«å¤±æãã¾ãã",loadTutorialsFailed:"ã¯ã¼ã¯ããã¯ã®ãã¥ã¼ããªã¢ã«ã®èªã¿è¾¼ã¿ã«å¤±æãã¾ãã",loadTutorialDetailsFailed:"ãã¥ã¼ããªã¢ã«ã®è©³ç´°ã®èªã¿è¾¼ã¿ã«å¤±æãã¾ãã",linkCopiedToClipboard:"ãªã³ã¯ãã¯ãªãããã¼ãã«ã³ãã¼ãã¾ããï¼",nonPublicQuotaReached:"ç¡æãã©ã³ã«å«ã¾ããéå
¬éã»ãªã³ã¯éå®ã»ãã¼ã ã¬ã¤ãã®ä¸éã«éãã¾ãããããã«å
¬éããã«ã¯ Pro ã«ã¢ããã°ã¬ã¼ããã¦ãã ããã"}},header={logoAlt:"Stepilyã®ãã´",openNav:"ããã²ã¼ã·ã§ã³ã¡ãã¥ã¼ãéã",navMenuTitle:"ããã²ã¼ã·ã§ã³ã¡ãã¥ã¼",nav:{tutorials:"ãã¥ã¼ããªã¢ã«",leaderboard:"ãªã¼ãã¼ãã¼ã",pricing:"æé",autoguides:"ãªã¼ãã¬ã¤ã",faq:"ãããã質å",products:"製å",customers:"ã客æ§ã®å£°",solutions:"ã½ãªã¥ã¼ã·ã§ã³"},myDashboard:"ãã¤ããã·ã¥ãã¼ã",logIn:"ãã°ã¤ã³",logoutSuccess:"ãã°ã¢ã¦ããã¾ãã",logoutError:"ãã°ã¢ã¦ãã«å¤±æãã¾ãã"},footer={tagline:"© 2026 Stepily Inc. Stepilyã¯ãã½ããã¦ã§ã¢ã®ã¯ã¼ã¯ããã¼ãã¨ã¼ã¸ã§ã³ãåã®ããã¥ã¡ã³ããç ä¿®ã¬ã¤ããåå©ç¨å¯è½ãªæ¥åç¥èã«å¤ãããæä¼ãããã¾ãã",columns:{company:"ä¼ç¤¾æ
å ±",product:"製å",useCases:"æ´»ç¨äºä¾",caseStudies:"å°å
¥äºä¾"},privacyPolicy:"ãã©ã¤ãã·ã¼ããªã·ã¼",desktopApp:"ãã¹ã¯ãããã¢ããª",blog:"ããã°",caseStudiesLinks:{all:"ã
591ã¹ã¦ã®å°å
¥äºä¾",concreteCms:"Concrete CMS",womboCombo:"Wombo Combo Studio",plana:"Plana"}},home={banner:{text:"æééå®ã®ç¡æãªãã¡ã¼: ã½ããã¦ã§ã¢åãã®ã¨ã³ã¿ã¼ãã©ã¤ãºã»ããã¥ã¡ã³ã使ã¨ã¼ã¸ã§ã³ããæ§ç¯ã§ããæ ã5社éå®ã§ããã¾ãã",cta:"ä»ããç³ãè¾¼ã â"},hero:{title:"ãã¸ã¥ã¢ã«ã¬ã¤ããä½ãããã¡ã°ãç°¡åãªæ¹æ³ã",subtitle:"æé ãèªåã§ãã£ããã£ãã¦æ´å½¢ããã¹ããããã¤ã¹ãããã®ã¬ã¤ãã¨ãã¦å³åº§ã«å
±æã§ãã¾ãã",getFree:"Stepilyãç¡æã§å§ãã",bookDemo:"ãã¢ãäºç´",chips:{onboarding:"æ°å
¥ç¤¾å¡ã®ãªã³ãã¼ãã£ã³ã°",sops:"SOPã®ä½æ",trainingDocs:"ç ä¿®è³æã®ä½æ",implementSoftware:"ã½ããã¦ã§ã¢å°å
¥",assistCustomers:"ã«ã¹ã¿ãã¼ãµãã¼ã",somethingElse:"ãã®ä»"}},extensionCta:{getFree:"ç¡æã®",chromeExtension:"Chromeæ¡å¼µæ©è½",toMakeGuide:"ãå
¥æãã¦ãæåã®ã¬ã¤ãã使ãã¾ãããã"},documentProcess:{title:"æ¥åããã»ã¹ãããã¥ã¡ã³ãå",description:"ãã¤ãéãã«ä½æ¥ãé²ããã ãã§ãStepilyãã¹ã¯ãªã¼ã³ã·ã§ããã»èª¬æã»ãã¤ã©ã¤ããèªååéã誰ã§ãããªãã®æé ããã®ã¾ã¾åç¾ã§ãã¾ãã"},searchGuides:{title:"ã¬ã¤ãã¨ãã³ããæ¤ç´¢",description:"ã©ã®Webãã¼ã¸ãè¦ã¦ãã¦ããèªåããã¼ã ã使ããã¬ã¤ããæ¤ç´¢ã§ãã¾ããæ¡å¼µæ©è½å
ã®æ¤ç´¢ãããã¸ã¥ã¢ã«æé ã«ã¢ã¯ã»ã¹ã§ãã¾ãã"},integrateWalkthroughs:{title:"ã¦ã©ã¼ã¯ã¹ã«ã¼ã飿º",description:"ã¬ã¤ãããã¬ãã¸ãã¼ã¹ãå¦ç¿ç®¡çã·ã¹ãã ï¼LMSï¼ããã±ãã管çããã£ããã·ã¹ãã ã«çµã¿è¾¼ãã¾ãã"},communityLink:"ã³ãã¥ããã£ã®ãã¥ã¼ããªã¢ã«ãè¦ã"},pricing={heading:"ãã£ã¨éãããã£ã¨è³¢ã",billing:{annual:"å¹´éè«æ±",save:"å¹´éè«æ±ãªãæå¤§25%ãå¾ï¼"},keyFeatures:"ä¸»ãªæ©è½",everythingFromFree:"ç¡æãã©ã³ã®ãã¹ã¦ã®æ©è½ã«å ãã¦...",everythingFromPro:"Proãã©ã³ã®ãã¹ã¦ã®æ©è½ã«å ãã¦...",period:{year:"å¹´",month:"æ"},free:{name:"ç¡æ",description:"ã¬ã¤ãã®ä½æã»å
±æã»å¦ç¿ãè¡ãã¯ãªã¨ã¤ã¿ã¼ãå¦ç¿è
åãã",price:"ç¡æ",ctaLoggedIn:"ããã·ã¥ãã¼ãã¸",ctaLoggedOut:"ãµã¤ã³ã¢ãã",features:["ç¡æã§å
±æã§ããã¬ã¤ã10æ¬","ãã©ã¦ã¶ã§ã®ãã£ããã£","å種ãã¼ã«ã§ã¹ã¯ãªã¼ã³ã·ã§ãããç·¨éã»ãã¹ãã³ã°","æå¤§20人ã®é²è¦§è
ãæå¾
ã§ããå人ã¯ã¼ã¯ã¹ãã¼ã¹"]},pro:{badge:"3å¸ä»¥ä¸ã§ã·ã¼ãå価ãããã«ãå¾ã«",name:"Pro",description:"å人ã¯ãªã¨ã¤ã¿ã¼ãããã¼ã ã¾ã§å¯¾å¿ããã»ã«ããµã¼ããã©ã³ã",startsAt:"ææã·ã¼ã1å¸ããå©ç¨å¯è½",team:"ãã¼ã ",personal:"å人",perUserPrice:"1ã¦ã¼ã¶ã¼ããã ${{price}}/{{period}}",teamUsers:"3ã¦ã¼ã¶ã¼ä»¥ä¸*",personalUsers:"1ã2ã¦ã¼ã¶ã¼*",billingNoteAnnual:"å¹´éè«æ± â è¡¨ç¤ºä¾¡æ ¼ã¯1ã¦ã¼ã¶ã¼ãããã®æé¡ã§ãï¼å¹´æãï¼",billingNoteMonthly:"æéè«æ±",cta:"ä»ããå§ãã",features:["Chromeãã©ã¦ã¶ + Macçãã¹ã¯ãããã¢ããªã§ãã£ããã£","ã¹ã¯ãªã¼ã³ã·ã§ããã®ã¼ããå¦ç","PDFã»HTMLã»Markdownã¸ã®åãè¾¼ã¿ã»æ¸ãåºã","èªç¤¾ãã©ã³ãã§ã«ã¹ã¿ãã¤ãº","éå
¬éã¬ã¤ãã®ç¡å¶é使ã»å
±æ","å¦ç¿å¹æãé«ããã¯ã¤ãºã¢ã¼ã"]},enterprise:{name:"ã¨ã³ã¿ã¼ãã©ã¤ãº",description:"é«åº¦ãªã»ãã¥ãªãã£ã¨ã³ã³ãã©ã¤ã¢ã³ã¹ãæ©è½ã¯ãã©ã³ã«ããç°ãªãã¾ãã",price:"åå¥è¦ç©ãã",cta:"ãã¢ãäºç´",features:["ãªã¼ãã¬ã¤ãï¼AIãèªåã§ã¬ã¤ããçæï¼","å人æ
å ±ã»æ©å¯ãã¼ã¿ã®èªåãã¹ãã³ã°","SSOï¼ã·ã³ã°ã«ãµã¤ã³ãªã³ï¼","ãã©ã¦ã¶å¤ã§ããã£ããã£ã§ãããã¹ã¯ãããã¢ããª","å°ä»»ã®ã«ã¹ã¿ãã¼ãµãã¼ãæ
å½"]}},faq={eyebrow:"ãµãã¼ã",title:"ãããã質å",subtitle:"StepilyãæéãChromeæ¡å¼µæ©è½ãããã¦å°å
¥æ¹æ³ã«ã¤ãã¦ã®ãããã質åã«ãçããã¾ãã",viewPricing:"æéãè¦ã",bookDemo:"ãã¢ãäºç´",items:{whatIsStepily:{question:"Stepilyã¨ã¯ä½ã§ããï¼",intro:"Stepilyã¯ãããã¥ã¡ã³ã使ãã§ããã ãã·ã¼ã ã¬ã¹ã«è¡ãããã®ãã¼ã«ç¾¤ã§ããæ¬¡ã®ããããã®æ¹æ³ã§å©ç¨ã§ãã¾ãã",list:["ãªã¼ãã¬ã¤ãã使ã£ã¦ãã½ããã¦ã§ã¢ã社å
ã·ã¹ãã ããã¬ã¤ãéãèªåçæããã","ãã©ã¦ã¶æ¡å¼µæ©è½ã使ã£ã¦ãèªåã§ä½æ¥æé ããã°ããã¬ã¤ãã¨ãã¦ãã£ããã£ããã"]},whoIsFor:{question:"Stepilyã¯èª°ã®ããã®ãã¼ã«ã§ããï¼",answer:"顧客æè²ãã¼ã ããªãã¬ã¼ã·ã§ã³ãã¼ã ã社å
ã¤ãã¼ãã«ã¡ã³ãã代çåºãããã¦ã¦ã¼ã¶ã¼ã徿¥å¡åãã«åå©ç¨å¯è½ãªãã¸ã¥ã¢ã«ããã¥ã¡ã³ããå¿
è¦ã¨ããã½ããã¦ã§ã¢ä¼æ¥ã®ããã«ä½ããã¦ãã¾ãã"},extension:{question:"ãã©ã¦ã¶æ¡å¼µæ©è½ã¯ä½ããã¦ããã¾ããï¼",intro:"Stepilyã®chromeæ¡å¼µæ©è½ã¯ã使¥ãé²ããæ§åã«è¿½éãã¦åã¹ãããã説æã¨ã¹ã¯ãªã¼ã³ã·ã§ããã¨ãã¦ãã£ããã£ãã¾ãããã®å¾ãèªåçã«æ´å½¢ããå
±æå¯è½ãªã¬ã¤ããçæãã¾ãã",useItTo:"次ã
591®ãããªç¨éã«ä½¿ãã¾ã",list:["æ°ç§ã§ã¼ãããã¬ã¤ãã使ããã","æ¢åã®ã¬ã¤ãã«ã¹ããããæ¿å
¥ãã¦ã«ã¹ã¿ãã¤ãºããã"]},needExtension:{question:"Stepilyã使ãã«ã¯Chromeæ¡å¼µæ©è½ãå¿
è¦ã§ããï¼",intro:"ããããAIã¬ã¤ãçææ©è½ã§ãããªã¼ãã¬ã¤ãã使ã£ã¦ãã¥ã¼ããªã¢ã«ã使ã§ãã¾ãããã ããæ¬¡ã®ãããªçç±ããæ¡å¼µæ©è½ã®å©ç¨ããããããã¾ãã",list:["ã«ã¹ã¿ã ã¹ãããã®æ¿å
¥ãªã©ãã¬ã¤ããæãéãã«ç´°ãã調æ´ã§ããã","AIã«å¤æãä»»ããããªããé常ã«å
·ä½çãªã¬ã¤ããã¹ãããã使ã§ããã"]},privateGuides:{question:"éå
¬éã®ã¬ã¤ãã使ã§ãã¾ããï¼",answer:"ã¯ããç¡æãã©ã³ã§ãéå
¬éã§ã¬ã¤ãã使ã»å
±æã§ãã¾ãã"}}},desktopDownload={title:"Stepily ãã¹ã¯ãããã§ã¬ã¤ãã使",description:"ãã¹ã¯ãããã¢ããªã¯ãã©ã¦ã¶å¤ã®ã¢ããªãè¨é²ãã宿ããã¬ã¤ãã¯ãã®ã¾ã¾ããã·ã¥ãã¼ãã«ã¢ãããã¼ãããã¾ãã",loading:"ææ°ãã«ãã確èªãã¦ãã¾ãâ¦",unavailable:"ç¾å¨ãã¦ã³ãã¼ãã§ãã¾ããããã°ãããã¦ããã試ããã ããã",signed:"macOS ã§ã¯ Apple ã®å
¬è¨¼æ¸ã¿ãWindows ã§ã¯ã³ã¼ãç½²åæ¸ã¿ã®ãããã©ã¡ããã»ãã¥ãªãã£è¦åãªãã«ã¤ã
591³ã¹ãã¼ã«ã§ãã¾ãã",platforms:{mac:{label:"macOS çããã¦ã³ãã¼ã",requirements:"Apple Silicon / Intel 対å¿"},win:{label:"Windows çããã¦ã³ãã¼ã",requirements:"Windows 10 以é"}},installed:{title:"Stepily ãã¹ã¯ãããã§è¨é²ãã",description:"ã使ãã®ã³ã³ãã¥ã¼ã¿ã¼ã§ Stepily ãã¹ã¯ããããéããè¨é²ãéå§ãã¦ãã ããã宿ããè¨é²ã¯ããã¹ã¯ãããã¢ãããã¼ããã«ä¿åãããããã«ç·¨éã§ãã¾ãã",viewUploads:"ãã¹ã¯ãããã¢ãããã¼ããéã",downloadAgain:"å¥ã®ã³ã³ãã¥ã¼ã¿ã¼ã«ã¤ã³ã¹ãã¼ã«"},errors:{failed:"ãã¦ã³ãã¼ããéå§ã§ãã¾ããã§ãããããä¸åº¦ã試ããã ããã"}},solutionsNav={groups:{useCase:"æ´»ç¨ã·ã¼ã³å¥",function:"é¨éå¥"},links:{"standardize-processes":{label:"æ¥åã®æ¨æºå",description:"誰ãæ
å½ãã¦ãåãå質ã§é²ãããã¾ãã"},"onboard-employees":{label:"徿¥å¡ã®ãªã³ãã¼ãã£ã³ã°",description:"æ°å
¥ç¤¾å¡ãæ°é±éã§ã¯ãªãæ°æ¥ã§ç«ã¡ä¸ããã¾ãã"},"train-customers":{label:"顧客ãã¬ã¼ãã³ã°",description:"åå¥ã®æã¡åãããªãã§ä½¿ãæ¹ãä¼ãããã¾ãã"},"software-adoption":{label:"ã½ããã¦ã§ã¢ã®å®ç",description:"å°å
¥ãããã¼ã«ãå®éã«ä½¿ãããããã«ãªãã¾ãã"},"knowledge-management":{label:"ãã¬ãã¸ç®¡ç",description:"çç·´è
ã®ç¥èã失ãããåã«è³ç£åãã¾ãã"},"human-resources":{label:"人äº",description:"æ¡ç¨ã»å´åã»çµ¦ä¸ã»ç£æ»å¯¾å¿ã¾ã§ã"},"information-technology":{label:"ITã»ãµãã¼ã",description:"åãåãããæ¸ããã対å¿ãéããã¾ãã"},operations:{label:"ãªãã¬ã¼ã·ã§ã³",description:"æ ç¹ãã¾ããã§æé ãçµ±ä¸ã§ãã¾ãã"},healthcare:{label:"å»ç",description:"æ£è
対å¿ãè¨åºã¯ã¼ã¯ããã¼ãã³ã³ãã©ã¤ã¢ã³ã¹ãããã¥ã¡ã³ãåã"},finance:{label:"éè",description:"顧客対å¿ãè¦å¶å¯¾å¿ãèè³æ¥åã®ããã¥ã¡ã³ãåã"}}},solutions={eyebrow:"ã½ãªã¥ã¼ã·ã§ã³",getStartedFree:"ç¡æã§å§ãã",ctaNote:"ã¯ã¬ã¸ããã«ã¼ãã¯ä¸è¦ã§ãã",example:"ä¾",comingSoon:{description:"ãã®ãã¼ã¸ã¯ç¾å¨æºåä¸ã§ããã¾ãã¯äººäºåãã®ãã¼ã¸ã§å
¨ä½åãã覧ããã ãããä»ããã¬ã¤ãã®ä½æãå§ãã¦ã¿ã¦ãã ããã",seeExample:"人äºåããã¼ã¸ãè¦ã"},useCaseVisuals:{guideAlt:"åæé ã説æã¨ã¹ã¯ãªã¼ã³ã·ã§ããã§è¨é²ãããã宿ããStepilyã®ã¬ã¤ã"},useCases:{standardizeProcesses:{seoTitle:"Stepilyã§æ¥åãæ¨æºå",seoDescription:"æ¥åãä¸åº¦è¨é²ããã ãã§ããã¼ã å
¨å¡ãåãææ°ã®æé ã§ä½æ¥ã§ããããã«ãªãã¾ãã",eyebrow:"ã½ãªã¥ã¼ã·ã§ã³ · æ¥åã®æ¨æºå",title:"使¥ã®æ£ããããæ¹ããã²ã¨ã¤ã«",subtitle:"ã©ã®ãã¼ã ã§ããæ¯ååãæç¢ºãªæé ã§ã",features:{capture:{title:"ä¸åº¦è¨é²ããã°ãæ¯åæ£ç¢ºã«",description:"æ®æ®µã©ããã«ä½æ¥ãé²ããã ãã§ãStepilyããã¹ã¦ã®æé ãè¨é²ãã¾ããæ
å½è
ã«ãã£ã¦ããæ¹ãã¶ãããã¨ããªããªãã¾ãã"},guides:{title:"å±äººçãªç¥èããå¯ä¸ã®åºæºã«",description:"åªç§ãªã¡ã³ãã¼ã®é²ãæ¹ããä¼ç¤¾å
¨ä½ãå¾ããæ¨æºæé ã«å¤ãã¾ããæ¸ãããã®ã¾ã¾ã®Wikiãã¼ã¸ã¯ããå¿
è¦ããã¾ããã"},search:{title:"å¿
è¦ãªã¨ãã«ãææ°ã®æé ã",description:"å¤ãè³æãæ¢ãåããã¨ãªããã©ã®æ¥åã®ææ°æé ãæ°ç§ã§å¼ã³åºãã¾ãã"}},cta:{title:"æ¥åã®ããæ¹ãæ¨æºåãã¾ãããï¼"}},onboardEmployees:{seoTitle:"Stepilyã§å¾æ¥å¡ã®ãªã³ãã¼ãã£ã³ã°",seoDescription:"å®éã«ä½¿ããã¼ã«ã®ä¸ã§æé ã確èªã§ããã¬ã¤ãã§ãæ°å
¥ç¤¾å¡ãæ°æ¥ã§ç«ã¡ä¸ããã¾ãã",eyebrow:"ã½ãªã¥ã¼ã·ã§ã³ · 徿¥å¡ã®ãªã³ãã¼ãã£ã³ã°",title:"æ°å
¥ç¤¾å¡ã®ç«ã¡ä¸ãããæ©ãã説æã®ç¹°ãè¿ããæ¸ãã",subtitle:"ãã¹ã¦ã®æ°ãã仲éããèªåã§å¦ã³ãªããé²ããããããã«ã",features:{capture:{title:"æåã®ä¸é±éãã峿¦åã«",description:"ç ä¿®ãç»é¢å
±æã¯ä¸è¦ã§ããStepilyããå¦ã¶ã¹ããã¼ã«ã®ä¸ã§ãä½ãããã°ããããããã®ã¾ã¾ç¤ºãã¾ãã"},guides:{title:"åªç§ãªã¡ã³ãã¼ã®é²ãæ¹ããå
¨å¡ã®ç¥èã«",description:"ææãåºãã¦ããã¡ã³ãã¼ã®å®éã®é²ãæ¹ãè¨é²ãã誰ã§ãèªåã§é²ãããããªã³ãã¼ãã£ã³ã°ã¬ã¤ãã«å
591¤ãã¾ãã"},search:{title:"質åãããåã«çãã",description:"æ°å
¥ç¤¾å¡ã¯è¿·ã£ãç¬éã«å¿
è¦ãªã¬ã¤ããè¦ã¤ãããã¾ããå
輩ã®ç©ºãæéãå¾
ã¤å¿
è¦ã¯ããã¾ããã"}},cta:{title:"ãªã³ãã¼ãã£ã³ã°ããã£ã¨ç°¡åã«ãã¾ãããï¼"}},trainCustomers:{seoTitle:"Stepilyã§é¡§å®¢ãã¬ã¼ãã³ã°",seoDescription:"æã¡åããã®ä»£ããã«ã製åã®ä½¿ãæ¹ããã¸ã¥ã¢ã«ãªæé æ¸ã§é¡§å®¢ã«ä¼ãããã¾ãã",eyebrow:"ã½ãªã¥ã¼ã·ã§ã³ · 顧客ãã¬ã¼ãã³ã°",title:"æã¡åãããªãã§ãä½¿ãæ¹ãä¼ãã",subtitle:"顧客ãèªåã®ãã¼ã¹ã§è£½åãå¦ã¹ãããã«ã",features:{capture:{title:"ãã©ãããã®ï¼ãã«æ°ã¯ãªãã¯ã§çãã",description:"ä¸åº¦æä½ããã ãã§ãStepilyãã¬ã¤ãã使ãã¾ããæ¬¡ã®æã¡åãããè¨å®ãã代ããã«ããããéãã ãã§æ¸ã¿ã¾ãã"},guides:{title:"人å¡ãå¢ãããã«ãªã³ãã¼ãã£ã³ã°ãæ¡å¤§",description:"ãã¼ã ã®åªãã説ææé ãã©ã¤ãã©ãªã«ã¾ã¨ããæåã®é¡§å®¢ããå人ç®ã¾ã§åãå質ã§ãã¬ã¼ãã³ã°ã§ãã¾ãã"},search:{title:"åãåããããå
ã«å±ããµãã¼ã",description:"é¡§å®¢ã¯æ¤ç´¢ãã¦å¿
è¦ãªæé ã«ãã©ãçãããããåãåããã«çºå±ããçåãæ¸ãã¾ãã"}},cta:{title:"顧客ãèªåã§è§£æ±ºã§ããä»çµã¿ãã¤ããã¾ãããï¼"}},softwareAdoption:{seoTitle:"Stepilyã§ã½ããã¦ã§ã¢ã®å®çãä¿é²",seoDescription:"æ°ãããã¼ã«ã®ä¸ã§ç¢ºèªã§ããã¬ã¤ãã§ãå°å
¥ãå®éã®æ´»ç¨ã«ã¤ãªãã¾ãã",eyebrow:"ã½ãªã¥ã¼ã·ã§ã³ · ã½ããã¦ã§ã¢ã®å®ç",title:"å°å
¥ãããã¼ã«ããå®éã«ä½¿ãããç¶æ
ã«",subtitle:"å°å
¥ãã使ãããªããã°ã¤ã³æ
å ±ã§ã¯ãªãæ¬å½ã®å®çã«ã",features:{capture:{title:"使¥ã®ç¾å ´ã«ããã®ã¾ã¾æé ã",description:"使éãã®ç ä¿®ã«å
¨å¡ãéãããã¨ãªããæ°ãããã¼ã«ã§ä½ãã¯ãªãã¯ããã°ãããããã®ã¾ã¾ç¤ºãã¾ãã"},guides:{title:"ãã¹ã¦ã®ãã¼ã ã«ãä¸è²«ããå±éã",description:"éè¦ãªã¯ã¼ã¯ããã¼ãææ¸åãã¦å
±æãããã¨ã§ã忥ããã©ã®ãã¼ã ãåãä½¿ãæ¹ã§å®çããããã¾ãã"},search:{title:"ããããã©ããããã ã£ãï¼ãããªãã",description:"æ°é±éå¾ã«æé ãå¿ãã¦ããåãåãããåºãåã«èªåã§ã¬ã¤ããéãã¦ç¢ºèªã§ãã¾ãã"}},cta:{title:"次ã®å°å
¥ã確å®ã«å®çããã¾ãããï¼"}},knowledgeManagement:{seoTitle:"Stepilyã§ãã¬ãã¸ç®¡ç",seoDescription:"çç·´è
ã®ç¥èã失ãããåã«ãæ¤ç´¢ã§ãããã¸ã¥ã¢ã«ã¬ã¤ãã¨ãã¦æ®ãã¾ãã",eyebrow:"ã½ãªã¥ã¼ã·ã§ã³ · ãã¬ãã¸ç®¡ç",title:"çç·´è
ã®ç¥èãã確å®ã«æ®ã",subtitle:"è¦å´ãã¦å¾ãç¥èããæ°äººã®é ã®ä¸ã§ã¯ãªãä¼ç¤¾ã®è³ç£ã«ã",features:{capture:{title:"åæã«ã§ããããããã¥ã¡ã³ã",description:"çç·´è
ã¯æ®æ®µã©ãã使¥ããã ãã§ããStepilyããããã¬ã¤ãã«å¤ããã®ã§ãå¾ããæ¸ãèµ·ãã使¥ã¯å¿
è¦ããã¾ããã"},guides:{title:"å¸¸ã«ææ°ã«ä¿ã¦ãã©ã¤ãã©ãª",description:"ãã¼ã ã®å®éã®ã¯ã¼ã¯ããã¼ãä¸ç®æã«éããæé ãå¤ãã£ã¦ãæ°åã§åè¨é²ã§ãã¾ãã"},search:{title:"ãã¡ãã¨è¦ã¤ããããç¥è",description:"ã©ã®ãã¼ã¸ããã§ãã©ã¤ãã©ãªå
¨ä½ãæ¤ç´¢ããå¿
è¦ãªã¬ã¤ããããã«è¡¨ç¤ºã§ãã¾ãã使ãããªãç¥èã¯ç¥èã§ã¯ããã¾ããã"}},cta:{title:"çç·´è
ã®ç¥èãå
¨å¡ã®è³ç£ã«ãã¾ãããï¼"}}},sharedVisuals:{capture:{url:"docs.google.com/spreadsheets",docTitle:"æ°å
¥ç¤¾å¡ãªã³ãã¼ãã£ã³ã°ç®¡ç表",recording:"è¨é²ä¸",panelTitle:"ãã¥ã¼ããªã¢ã«ä½æ",finish:"ãã¥ã¼ããªã¢ã«ãå®äº",steps:{0:{title:"ãæ°å
¥ç¤¾å¡ã追å ããã¯ãªãã¯"},1:{title:"ããªã³ãã¼ãã£ã³ã°ãã鏿"}}},search:{url:"workday.com/benefits-enrollment",docTitle:"ç¦å©åçã®å å
¥æç¶ãï¼ç¬¬3ååæï¼",panelTitle:"ã¬ã¤ãã©ã¤ãã©ãª",query:"ç¦å©åç å å
¥",resultsLabel:"ããªãã®ã©ã¤ãã©ãªãã",results:{0:{title:"æ°å
¥ç¤¾å¡ã®ç»é²",meta:"9ã¹ãããã»3æ¥åã«æ´æ°"},1:{title:"æ¶é¤å®¶æã®è¿½å ",meta:"6ã¹ãããã»å
鱿´æ°"},2:{title:"ã©ã¤ãã¤ãã³ã対å¿",meta:"12ã¹ãããã»å
ææ´æ°"}}
591,shortcut:"⥠+ K ã§ã©ã®ãã¼ã¸ããã§ãæ¤ç´¢"},automation:{appName:"AIã¢ã·ã¹ã¿ã³ã",attachment:"æ°å
¥ç¤¾å¡ãªã³ãã¼ãã£ã³ã°SOP.pdf",prompt:"æ·»ä»ã®SOPããã¨ã«ãæ°å
¥ç¤¾å¡ã®ã¢ã«ã¦ã³ããèªåã§çºè¡ããã¯ã¼ã¯ããã¼ã使ãã¦ãã ããã",replyIntro:"SOPã®å
容ãããæ¬¡ã®ã¯ã¼ã¯ããã¼ã使ãã¾ããã",composer:"ç¶ãã¦è³ªåããâ¦",steps:["ã¢ã«ã¦ã³ãã使ããæé 3ã§æå®ãããå½¹å²ãå²ãå½ã¦ã¾ãã","æé 5ã7ã«è¨è¼ããã4ã¤ã®æ¨©éãä»ä¸ãã¾ãã","æ¡å
è³æãéä»ããæ¡ç¨ããã¼ã¸ã£ã¼ã«éç¥ãã¾ãã"]}},humanResources:{seoTitle:"人äºé¨éã®ããã®Stepily",seoDescription:"ãªã³ãã¼ãã£ã³ã°ã徿¥å¡æ
å ±ã®ç®¡çã給ä¸ã»ç¦å©åçã人äºè©ä¾¡ãã³ã³ãã©ã¤ã¢ã³ã¹å¯¾å¿ããããããããæé æ¸ã¨ãã¦ããã¥ã¡ã³ãåããæ¹æ³ããç´¹ä»ãã¾ãã",eyebrow:"ã½ãªã¥ã¼ã·ã§ã³ · 人äº",title:"人äºãã¼ã ã®Stepilyæ´»ç¨æ¹æ³",subtitle:"å
å®éç¥ããæ¬¡ã®ç£æ»å¯¾å¿ã¾ã§ã人äºã®æ¥åã¯æ¯åæ£ç¢ºã§ãããã¨ãæ±ãããã¾ããStepilyã¯ãã®ä¸ã¤ã²ã¨ã¤ãããã¼ã ãè¿·ããå®è¡ããå¸¸ã«ææ°ã«ä¿ã¦ããã¸ã¥ã¢ã«ã¬ã¤ãã«å¤ãã¾ãã",capabilities:{recruiting:{title:"æ¡ç¨ã»ãªã³ãã¼ãã£ã³ã°",description:"ããããããæé æ¸ã§ããã¹ã¦ã®æ°å
¥ç¤¾å¡ã«ä¸è²«ããåãå
¥ãä½é¨ãæä¾ãã¾ãã"},records:{title:"徿¥å¡æ
å ±ã®ç®¡ç",description:"æ´æ°æé ããã¡ãã¨ææ¸åãã徿¥å¡æ
å ±ãæ£ç¢ºã«ä¿ã¡ã¾ãã"},payroll:{title:"給ä¸ã»ç¦å©åç",description:"æé ãææåãã給ä¸ã¨ç¦å©åçã®éç¨ãã·ã³ãã«ã«ãã¾ãã"},performance:{title:"人äºè©ä¾¡",description:"æ¨æºåãããç¹°ãè¿ãå¯è½ãªæé ã§ãè©ä¾¡ã¨ãã£ã¼ãããã¯ã«ä¸è²«æ§ãããããã¾ãã"},compliance:{title:"ã³ã³ãã©ã¤ã¢ã³ã¹ã»ç£æ»",description:"å¸¸ã«ææ°ã§åç
§ããããææ¸ã«ããããã¤ã§ãç£æ»ã«å¯¾å¿ã§ãã¾ãã"}},stack:{heading:"ã使ãã®äººäºã·ã¹ãã ã¨ãã®ã¾ã¾ä½µç¨ã§ãã¾ã",tools:["Workday","ADP","Greenhouse","Gusto","Namely","SAP SuccessFactors","BambooHR","OrangeHRM","Rippling","Lever","Paylocity","Deel"]},features:{capture:{title:"ç ä¿®è³æãããããã«ä½æ",description:"Stepilyã使¥ã®æµãããã®ã¾ã¾è¨é²ããæ´ç·´ãããã¬ã¤ããèªåã§ä½æãã¾ãã"},search:{title:"å¿
è¦ãªã¨ãã«ããã®å ´ã§ã¬ã¤ããå¼ã³åºãã¾ã",description:"ãã©ã¦ã¶å
ã«èªåã§ã¤ããããæ¤ç´¢å¯è½ãªå人ã©ã¤ãã©ãªããããã¼ã ã®ã¬ã¤ãããã¤ã§ãæ¤ç´¢ã§ãã¾ãã"},automations:{title:"Stepilyã§èªååãã¤ãã",description:"SOPã®PDFãAIã«èªã¿è¾¼ã¾ããæ£ç¢ºãªãã¼ã¿ã¨æé ã«åºã¥ããèªååã使ã§ãã¾ãã"}},cta:{title:"äººäºæ¥åã®ããã¥ã¡ã³ãåãå§ãã¾ãããï¼",description:"æé ãä¸åº¦è¨é²ããã ãã§ããããããããã¸ã¥ã¢ã«ã¬ã¤ããæ°åã§ãã¼ã å
¨ä½ã«å
±æã§ãã¾ãã"}},informationTechnology:{seoTitle:"ITã»ãµãã¼ããã¼ã ã®ããã®Stepily",seoDescription:"ãªã³ãã¼ãã£ã³ã°ã»ãªããã¼ãã£ã³ã°ãã¤ã³ã·ãã³ã対å¿ãã¢ã¯ã»ã¹ç®¡çãã½ããã¦ã§ã¢å±éãã³ã³ãã©ã¤ã¢ã³ã¹å¯¾å¿ããããããããæé æ¸ã¨ãã¦ããã¥ã¡ã³ãåããæ¹æ³ããç´¹ä»ãã¾ãã",eyebrow:"ã½ãªã¥ã¼ã·ã§ã³ · ITã»ãµãã¼ã",title:"ITã»ãµãã¼ããã¼ã ã®Stepilyæ´»ç¨æ¹æ³",subtitle:"å
å®éç¥ããæ¬¡ã®ç£æ»å¯¾å¿ã¾ã§ãITã®æ¥åã¯æ¯åæ£ç¢ºã§ãããã¨ãæ±ãããã¾ããStepilyã¯ãã®ä¸ã¤ã²ã¨ã¤ãããã¼ã ãè¿·ããå®è¡ããå¸¸ã«ææ°ã«ä¿ã¦ããã¸ã¥ã¢ã«ã¬ã¤ãã«å¤ãã¾ãã",capabilities:{onboardingOffboarding:{title:"ãªã³ãã¼ãã£ã³ã°ã»ãªããã¼ãã£ã³ã°",description:"å
¥ç¤¾æã®åãå
¥ãããéè·æã®å¯¾å¿ã¾ã§ãåãæé ã§ç¢ºå®ã«è¡ãã¾ãã"},incidentResolution:{title:"ã¤ã³ã·ãã³ãã»ãã±ãã対å¿",description:"ãããã対å¿ãæé åãããã¼ã å
¨ä½ã§åãããã«è§£æ±ºã§ããããã«ãã¾ãã"},accessSecurity:{title:"ã¢ã¯ã»ã¹ã»ã»ãã¥ãªãã£ç®¡ç",description:"権éã®ä»ä¸ã»å¤æ´ã»åé¤ã®æé ããã¹ã¦ã®ã·ã¹ãã ã§çµ±ä¸ãã¾ãã"}
591,softwareDeployment:{title:"ã½ããã¦ã§ã¢å±éã»æ´æ°",description:"ãã¹ã¦ã®ç«¯æ«ã¨ãã¼ã ã§å±éã¨æ´æ°ã®æé ãçµ±ä¸ãã¾ãã"},complianceAudits:{title:"ã³ã³ãã©ã¤ã¢ã³ã¹ã»ç£æ»",description:"å¸¸ã«ææ°ã®ã»ãã¥ãªãã£æé ã§ããã¤ã§ãç£æ»ã«å¯¾å¿ã§ãã¾ãã"}},stack:{heading:"ã使ãã®ITã·ã¹ãã ã¨ãã®ã¾ã¾ä½µç¨ã§ãã¾ã",tools:["Workday","ADP","Greenhouse","Gusto","Namely","SAP SuccessFactors","BambooHR","OrangeHRM","Rippling","Lever","Paylocity","Deel"]},features:{capture:{title:"ç ä¿®è³æãããããã«ä½æ",description:"Stepilyã使¥ã®æµãããã®ã¾ã¾è¨é²ããæ´ç·´ãããã¬ã¤ããèªåã§ä½æãã¾ãã"},search:{title:"å¿
è¦ãªã¨ãã«ããã®å ´ã§ã¬ã¤ããå¼ã³åºãã¾ã",description:"ãã©ã¦ã¶å
ã«èªåã§ã¤ããããæ¤ç´¢å¯è½ãªå人ã©ã¤ãã©ãªããããã¼ã ã®ã¬ã¤ãããã¤ã§ãæ¤ç´¢ã§ãã¾ãã"},automations:{title:"Stepilyã§èªååãã¤ãã",description:"SOPã®PDFãAIã«èªã¿è¾¼ã¾ããæ£ç¢ºãªãã¼ã¿ã¨æé ã«åºã¥ããèªååã使ã§ãã¾ãã"}},cta:{title:"ITæ¥åã®ããã¥ã¡ã³ãåãå§ãã¾ãããï¼",description:"æé ãä¸åº¦è¨é²ããã ãã§ããããããããã¸ã¥ã¢ã«ã¬ã¤ããæ°åã§ãã¼ã å
¨ä½ã«å
±æã§ãã¾ãã"}},operations:{seoTitle:"ãªãã¬ã¼ã·ã§ã³ãã¼ã ã®ããã®Stepily",seoDescription:"æ ç¹éå¶ãä»å
¥å
管çãå¨åº«ã»åºè·æ¥åãå質管çãå®å
¨å¯¾å¿ããããããããæé æ¸ã¨ãã¦ããã¥ã¡ã³ãåããæ¹æ³ããç´¹ä»ãã¾ãã",eyebrow:"ã½ãªã¥ã¼ã·ã§ã³ · ãªãã¬ã¼ã·ã§ã³",title:"ãªãã¬ã¼ã·ã§ã³ãã¼ã ã®Stepilyæ´»ç¨æ¹æ³",subtitle:"å
å®éç¥ããæ¬¡ã®ç£æ»å¯¾å¿ã¾ã§ããªãã¬ã¼ã·ã§ã³ã®æ¥åã¯æ¯åæ£ç¢ºã§ãããã¨ãæ±ãããã¾ããStepilyã¯ãã®ä¸ã¤ã²ã¨ã¤ãããã¼ã ãè¿·ããå®è¡ããå¸¸ã«ææ°ã«ä¿ã¦ããã¸ã¥ã¢ã«ã¬ã¤ãã«å¤ãã¾ãã",capabilities:{siteOperations:{title:"æ ç¹éå¶",description:"ãã¹ã¦ã®æ ç¹ã§æé ãä¸è²«ããã¾ãã"},vendorManagement:{title:"ä»å
¥å
管ç",description:"ãã¹ã¦ã®ä»å
¥å
ã¨ã®ããåãã«ãããæé ãæ¨æºåãã¾ãã"},inventoryFulfillment:{title:"å¨åº«ã»åºè·æ¥å",description:"å
¥è·ã»ä¿ç®¡ã»åºè·ã®æé ãæç¢ºã«ææ¸åãã¾ãã"},qualityControl:{title:"å質管çã»æ¤æ»",description:"æ¤æ»ãã§ãã¯ãªã¹ããçµ±ä¸ãã常ã«åãåºæºãä¿ã¡ã¾ãã"},safetyCompliance:{title:"å®å
¨ã»ã³ã³ãã©ã¤ã¢ã³ã¹",description:"å®å
¨æé ãå¸¸ã«ææ°ã§ããããããç¶æ
ã«ä¿ã¡ã¾ãã"}},stack:{heading:"ã使ãã®ãªãã¬ã¼ã·ã§ã³ã·ã¹ãã ã¨ãã®ã¾ã¾ä½µç¨ã§ãã¾ã",tools:["Workday","ADP","Greenhouse","Gusto","Namely","SAP SuccessFactors","BambooHR","OrangeHRM","Rippling","Lever","Paylocity","Deel"]},features:{capture:{title:"ç ä¿®è³æãããããã«ä½æ",description:"Stepilyã使¥ã®æµãããã®ã¾ã¾è¨é²ããæ´ç·´ãããã¬ã¤ããèªåã§ä½æãã¾ãã"},search:{title:"å¿
è¦ãªã¨ãã«ããã®å ´ã§ã¬ã¤ããå¼ã³åºãã¾ã",description:"ãã©ã¦ã¶å
ã«èªåã§ã¤ããããæ¤ç´¢å¯è½ãªå人ã©ã¤ãã©ãªããããã¼ã ã®ã¬ã¤ãããã¤ã§ãæ¤ç´¢ã§ãã¾ãã"},automations:{title:"Stepilyã§èªååãã¤ãã",description:"SOPã®PDFãAIã«èªã¿è¾¼ã¾ããæ£ç¢ºãªãã¼ã¿ã¨æé ã«åºã¥ããèªååã使ã§ãã¾ãã"}},cta:{title:"ãªãã¬ã¼ã·ã§ã³æ¥åã®ããã¥ã¡ã³ãåãå§ãã¾ãããï¼",description:"æé ãä¸åº¦è¨é²ããã ãã§ããããããããã¸ã¥ã¢ã«ã¬ã¤ããæ°åã§ãã¼ã å
¨ä½ã«å
±æã§ãã¾ãã"}},healthcare:{seoTitle:"å»çæ©é¢ã®ããã®Stepily",seoDescription:"æ£è
ã®åä»ãè¨åºã¯ã¼ã¯ããã¼ãã±ã¢ã³ã¼ãã£ãã¼ã·ã§ã³ãè«æ±ã»ã³ã¼ãã£ã³ã°ãã³ã³ãã©ã¤ã¢ã³ã¹å¯¾å¿ããããããããæé æ¸ã¨ãã¦ããã¥ã¡ã³ãåããæ¹æ³ããç´¹ä»ãã¾ãã",eyebrow:"ã½ãªã¥ã¼ã·ã§ã³ · å»ç",title:"å»çãã¼ã ã®Stepilyæ´»ç¨æ¹æ³",subtitle:"å
å®éç¥ããæ¬¡ã®ç£æ»å¯¾å¿ã¾ã§ãå»çã®æ¥åã¯æ¯åæ£ç¢ºã§ãããã¨ãæ±ãããã¾ããStepilyã¯ãã®ä¸ã¤ã²ã¨ã¤ãããã¼ã ãè¿·ããå®è¡ããå¸¸ã«ææ°ã«ä¿ã¦ããã¸ã¥ã¢ã«ã¬ã¤ãã«å
591¤ãã¾ãã",capabilities:{patientIntake:{title:"æ£è
ã®åä»ã»ç»é²",description:"æ£ç¢ºã§ä¸è²«ããåä»ã»ç»é²ã®æé ãã¹ã¿ããã«ç¤ºãã¾ãã"},clinicalWorkflows:{title:"è¨åºã¯ã¼ã¯ããã¼",description:"ãã¼ã ãã·ã¹ãã ãã¾ããã§ãã±ã¢ãããã³ã«ãä¸è²«ããã¾ãã"},careCoordination:{title:"ã±ã¢ã³ã¼ãã£ãã¼ã·ã§ã³",description:"ç´¹ä»ã»è»¢ç§ã»ãã©ãã¼ã¢ããã®å¼ãç¶ããæç¢ºã«ææ¸åãã¾ãã"},billingCoding:{title:"è«æ±ã»ã³ã¼ãã£ã³ã°",description:"ã³ã¼ãã£ã³ã°ãè«æ±æ¸é¡ã®æºåæé ããã¹ã¦ã®æ¡ä»¶ã§çµ±ä¸ãã¾ãã"},complianceAudits:{title:"ã³ã³ãã©ã¤ã¢ã³ã¹ã»ç£æ»",description:"æ´çããã¢ã¯ã»ã¹ããããæé æ¸ã§ããã¤ã§ãè¦å¶å¯¾å¿ã«åãã¾ãã"}},stack:{heading:"ã使ãã®å»çã·ã¹ãã ã¨ãã®ã¾ã¾ä½µç¨ã§ãã¾ã",tools:["Workday","ADP","Greenhouse","Gusto","Namely","SAP SuccessFactors","BambooHR","OrangeHRM","Rippling","Lever","Paylocity","Deel"]},features:{capture:{title:"ç ä¿®è³æãããããã«ä½æ",description:"Stepilyã使¥ã®æµãããã®ã¾ã¾è¨é²ããæ´ç·´ãããã¬ã¤ããèªåã§ä½æãã¾ãã"},search:{title:"å¿
è¦ãªã¨ãã«ããã®å ´ã§ã¬ã¤ããå¼ã³åºãã¾ã",description:"ãã©ã¦ã¶å
ã«èªåã§ã¤ããããæ¤ç´¢å¯è½ãªå人ã©ã¤ãã©ãªããããã¼ã ã®ã¬ã¤ãããã¤ã§ãæ¤ç´¢ã§ãã¾ãã"},automations:{title:"Stepilyã§èªååãã¤ãã",description:"SOPã®PDFãAIã«èªã¿è¾¼ã¾ããæ£ç¢ºãªãã¼ã¿ã¨æé ã«åºã¥ããèªååã使ã§ãã¾ãã"}},cta:{title:"å»çæ¥åã®ããã¥ã¡ã³ãåãå§ãã¾ãããï¼",description:"æé ãä¸åº¦è¨é²ããã ãã§ããããããããã¸ã¥ã¢ã«ã¬ã¤ããæ°åã§ãã¼ã å
¨ä½ã«å
±æã§ãã¾ãã"}},finance:{visuals:{capture:{url:"app.ncino.com",docTitle:"æ°è¦é¡§å®¢ãªã³ãã¼ãã£ã³ã°ãã§ãã¯ãªã¹ã",recording:"è¨é²ä¸",panelTitle:"ãã¥ã¼ããªã¢ã«ä½æ",finish:"ãã¥ã¼ããªã¢ã«ãå®äº",steps:{0:{title:"ãæ°è¦é¡§å®¢ããã¯ãªãã¯"},1:{title:"ãæ¬äººç¢ºèªæ¸é¡ãã鏿"}}},search:{url:"app.ncino.com/loan-application",docTitle:"èè³ç³è¾¼ â Smith Co.",panelTitle:"ã¬ã¤ãã©ã¤ãã©ãª",query:"èè³ç³è¾¼",resultsLabel:"ããªãã®ã©ã¤ãã©ãªãã",results:{0:{title:"æ°è¦èè³ç³è¾¼ãå¦çãã",meta:"8ã¹ãããã»2æ¥åã«æ´æ°"},1:{title:"顧客ã®å£åº§æ
å ±ãæ´æ°ãã",meta:"5ã¹ãããã»å
鱿´æ°"},2:{title:"è¦å¶éç¤ºè³æãæºåãã",meta:"10ã¹ãããã»å
ææ´æ°"}}
591,shortcut:"⥠+ K ã§ã©ã®ãã¼ã¸ããã§ãæ¤ç´¢"},automation:{appName:"AIã¢ã·ã¹ã¿ã³ã",attachment:"èè³ã¯ãã¼ã¸ã³ã°SOP.pdf",prompt:"æ·»ä»ã®SOPããã¨ã«ãèè³å®è¡åã«ä¸è¶³æ¸é¡ãæ¤ç¥ããèªååã使ãã¦ãã ããã",replyIntro:"SOPã®å
容ãããæ¬¡ã®ã¯ã¼ã¯ããã¼ã使ãã¾ããã",composer:"ç¶ãã¦è³ªåããâ¦",steps:["ã¯ãã¼ã¸ã³ã°ãã¡ã¤ã«ãæé 2ã®æ¸é¡ãã§ãã¯ãªã¹ãã¨ç
§åãã¾ãã","æé 4ã6ã«è¨è¼ãããä¸è¶³ãã¦ããé示æ¸é¡ãæ¤ç¥ãã¾ãã","èè³æ
å½è
ã«éç¥ãã顧客ã®ã¹ãã¼ã¿ã¹ãæ´æ°ãã¾ãã"]}},seoTitle:"éèãã¼ã ã®ããã®Stepily",seoDescription:"顧客ãªã³ãã¼ãã£ã³ã°ãè¦å¶å¯¾å¿ãå£åº§æ
å ±ã®æ´æ°ãèè³æ¥åãç£æ»æºåããããããããæé æ¸ã¨ãã¦ããã¥ã¡ã³ãåããæ¹æ³ããç´¹ä»ãã¾ãã",eyebrow:"ã½ãªã¥ã¼ã·ã§ã³ · éè",title:"éèãã¼ã ã®Stepilyæ´»ç¨æ¹æ³",subtitle:"æåã®é¡§å®¢å¯¾å¿ããæ¬¡ã®è¦å¶ç£æ»ã¾ã§ãéèæ¥åã¯æ£ç¢ºãã¨åç¾æ§ãæ¬ ããã¾ãããStepilyã¯ãã®ä¸ã¤ã²ã¨ã¤ãããã¼ã ãè¿·ããå®è¡ããå¸¸ã«ææ°ã«ä¿ã¦ããã¸ã¥ã¢ã«ã¬ã¤ãã«å¤ãã¾ãã",capabilities:{clientOnboarding:{title:"顧客ãªã³ãã¼ãã£ã³ã°",description:"ããããããã¬ã¤ãã§ããã¹ã¦ã®é¡§å®¢ã«ä¸è²«ãããªã³ãã¼ãã£ã³ã°ä½é¨ãæä¾ãã¾ãã"},regulatoryDocumentation:{title:"è¦å¶é¢é£ææ¸",description:"éç¤ºè³æãã³ã³ãã©ã¤ã¢ã³ã¹è¦ä»¶ãå¸¸ã«ææ°ã®ç¶æ
ã§æç¢ºã«ææ¸åãã¾ãã"},accountUpdates:{title:"å£åº§æ
å ±ã®æ´æ°",description:"ãã¼ã ãã·ã¹ãã ãã¾ããã§ãå£åº§å¤æ´ã®æé ãæ¨æºåãã¾ãã"},loanDealProcessing:{title:"èè³ã»åå¼å¦ç",description:"æç¢ºã§åç¾å¯è½ãªæé ã«ãããåå¼å¦çã«ä¸è²«æ§ãããããã¾ãã"},riskAuditPrep:{title:"ãªã¹ã¯ã»ç£æ»å¯¾å¿",description:"å¸¸ã«æ´çãããã¢ã¯ã»ã¹ããããæé æ¸ã§ããã¤ã§ãç£æ»ã«åãããã¾ãã"}},stack:{heading:"ã使ãã®éèã·ã¹ãã ã¨ãã®ã¾ã¾ä½µç¨ã§ãã¾ã",tools:["Salesforce","nCino","DocuSign","Plaid","Encompass","MeridianLink","Temenos","Backbase","Workiva","Fiserv","Jack Henry","FIS"]},features:{capture:{title:"ç ä¿®è³æãããããã«ä½æ",description:"Stepilyã使¥ã®æµãããã®ã¾ã¾è¨é²ããæ´ç·´ãããã¬ã¤ããèªåã§ä½æãã¾ãã"},search:{title:"å¿
è¦ãªã¨ãã«ããã®å ´ã§ã¬ã¤ããå¼ã³åºãã¾ã",description:"ãã©ã¦ã¶å
ã«èªåã§ã¤ããããæ¤ç´¢å¯è½ãªå人ã©ã¤ãã©ãªããããã¼ã ã®ã¬ã¤ãããã¤ã§ãæ¤ç´¢ã§ãã¾ãã"},automations:{title:"Stepilyã§èªååãã¤ãã",description:"SOPã®PDFãAIã«èªã¿è¾¼ã¾ããæ£ç¢ºãªãã¼ã¿ã¨æé ã«åºã¥ããèªååã使ã§ãã¾ãã"}},cta:{title:"éèæ¥åã®ããã¥ã¡ã³ãåãå§ãã¾ãããï¼",description:"æé ãä¸åº¦è¨é²ããã ãã§ããããããããã¸ã¥ã¢ã«ã¬ã¤ããæ°åã§ãã¼ã å
¨ä½ã«å
±æã§ãã¾ãã"}}},caseStudies={seo:{title:"ã客æ§ã®å£°",description:"å社ãStepilyã使ã£ã¦æ¥åæé ãããã¥ã¡ã³ãåãããªã³ãã¼ãã£ã³ã°ãå éãããåã質åã¸ã®å¯¾å¿ã«ãããæéã忏ãã¦ããæ¹æ³ããç´¹ä»ãã¾ãã"},eyebrow:"å°å
¥äºä¾",title:"ã客æ§ã®å£°",subtitle:"å社ãStepilyã使ã£ã¦æ¥åæé ãããã¥ã¡ã³ãåãããªã³ãã¼ãã£ã³ã°ãå éãããæ¨æºæé æ¸ãææ°ã®ç¶æ
ã«ä¿ã£ã¦ããæ¹æ³ããç´¹ä»ãã¾ãã",viewPricing:"æéãè¦ã",getStartedFree:"ç¡æã§å§ãã",logoAlt:"{{company}}ã®ãã´",industries:{software:"ã½ããã¦ã§ã¢",agency:"ãã¼ã±ãã£ã³ã°ä»£çåº",manufacturing:"è£½é æ¥",technology:"ãã¯ããã¸ã¼",consulting:"ã³ã³ãµã«ãã£ã³ã°"},domesticHeading:"å½å
ã®å°å
¥äºä¾",globalHeading:"æµ·å¤ã§ã®å®ç¸¾",cta:{title:"èªç¤¾ã®æ¥åæé ãããã¥ã¡ã³ãåãã¾ãããï¼",description:"æé ãä¸åº¦è¨é²ããã ãã§ããããããããã¸ã¥ã¢ã«ã¬ã¤ããæ°åã§ãã¼ã å
¨ä½ã«å
±æã§ãã¾ãã",getStartedFree:"ç¡æã§å§ãã",viewPricing:"æéãè¦ã"}},privacyPolicy={eyebrow:"æ³çæ
å ±",title:"ãã©ã¤ãã·ã¼ããªã·ã¼",subt
591itle:"Stepilyã®ã¦ã§ããµã¤ãããã¼ã¿ã«ããã©ã¦ã¶æ¡å¼µæ©è½ãããã³ãªã¼ãã¬ã¤ãæ©è½ã«é¢ããå
¬éãã©ã¤ãã·ã¼è¦ç´ã§ãã",backToHome:"ãã¼ã ã«æ»ã"},bookDemo={eyebrow:"ãã¢ãäºç´",title:"Stepily for Enterpriseã®ãã¢ãäºç´ãã",close:"éãã",success:{title:"åä¿¡ãã¬ã¤ãã確èªãã ããã",description:"äºç´ãªã³ã¯ãå¤åå
ã®ã¡ã¼ã«ã¢ãã¬ã¹ã«éä¿¡ãã¾ãããè¦å½ãããªãå ´åã¯ãè¿·æã¡ã¼ã«ãããã¢ã¼ã·ã§ã³ãã©ã«ããã確èªãã ããã"},form:{emailLabel:"å¤åå
ã¡ã¼ã«ã¢ãã¬ã¹*",emailPlaceholder:"[email protected]",companySizeLabel:"ä¼ç¤¾ã®è¦æ¨¡*",companySizePlaceholder:"ä¼ç¤¾ã®è¦æ¨¡ã鏿",useCaseLabel:"Stepilyãã©ã®ãããªç¨éã§ãæ¤è¨ã§ããï¼*",useCasePlaceholder:"顧客ãªã³ãã¼ãã£ã³ã°ãSOPããµãã¼ãæ¥åã®åæ¸ã徿¥å¡ç ä¿®ããã®ä»ã®ç¨éãªã©",referralLabel:"å½ç¤¾ãã©ãã§ãç¥ãã«ãªãã¾ãããï¼*",referralPlaceholder:"LinkedInãæ¤ç´¢ãç¥äººã®ç´¹ä»ãã¤ãã³ããªã©",consent:"ãã®ãã©ã¼ã ã«å
¥åãããã¨ã§ãStepilyããã®ã¡ã¼ã«åä¿¡ã«åæãããã®ã¨ã¿ãªããã¾ãã",submit:"äºç´ãªã³ã¯ãåå¾",submitting:"éä¿¡ä¸...",goBack:"æ»ã"},errors:{requiredFields:"å¿
é é
ç®ããã¹ã¦å
¥åãã¦ãã ããã",consentRequired:"Stepilyããã®ã¡ã¼ã«åä¿¡ã«åæãã¦ãã ããã",generic:"ã¨ã©ã¼ãçºçãã¾ãããããä¸åº¦ã試ããã ããã"}},homeContent={popularApps:"人æ°ã®å¦ç¿ã¢ããª",exploreLibrary:"ã©ã¤ãã©ãªãè¦ã",topTutorials:"人æ°ãã¥ã¼ããªã¢ã«",table:{rank:"é ä½",tutorial:"ãã¥ã¼ããªã¢ã«",creator:"使è
",category:"ã«ãã´ãªã¼",likes:"ãããæ°",rating:"è©ä¾¡"},noTutorialsYet:"ã¾ã ãã¥ã¼ããªã¢ã«ãããã¾ãã",anonymous:"å¿å",uncategorized:"æªåé¡",viewFullLeaderboard:"ãªã¼ãã¼ãã¼ãããã¹ã¦è¦ã"},authenticatedHome={title:"ãã¼ã ",createGuide:{title:"æ°ããã¬ã¤ãã使",description:"ç¡æã®Stepily Chromeæ¡å¼µæ©è½ã追å ãã¦ãè¨é²ã¨ã¬ã¤ã使ãå§ãã¾ãããã"},autoguidesBadge:"Stepily for Enterprise",pitch:{title:"ãã¼ã ã®å®éã®æ¥åããã»ã¹ãããã¯ã¼ã¯ããã¼ã®ãã¥ã¼ããªã¢ã«ã¨ç ä¿®ã使",description:"Stepilyã®Chromeæ¡å¼µæ©è½ã§ç¢ºç«æ¸ã¿ã®ã¯ã¼ã¯ããã¼ãè¨é²ãããããããããã¸ã¥ã¢ã«ãã¥ã¼ããªã¢ã«ã«å¤æãã¦ã徿¥å¡ãç¹°ãè¿ãçºçããæ¥åãæ£ããæé ã§ç¿å¾ã§ããããã«ãã¾ãã"},bookDemo:"ãã¢ãäºç´",whoItsFor:{title:"対象è
",items:["社å
ã¯ã¼ã¯ããã¼ãæ¨æºåãããã¨ã³ã¿ã¼ãã©ã¤ãºãã¼ã ","ãªãã¬ã¼ã·ã§ã³ãã¤ãã¼ãã«ã¡ã³ããç ä¿®ãã¼ã ","å¤§è¦æ¨¡ãªãªã³ãã¼ãã£ã³ã°ããªã¹ããªã³ã°ãé²ãã伿¥","å復å¯è½ãªããã»ã¹ãææ¸åãããµãã¼ãã»ãµã¯ã»ã¹ãã¼ã "]},whatYouGet:{title:"å¾ããããã®",description:"Stepilyã®Chromeæ¡å¼µæ©è½ã使ã£ã¦æåã®ã¯ã¼ã¯ããã¼ãã¥ã¼ããªã¢ã«ã使ããç¡æãã¤ãããã«å ãã徿¥å¡ã®ç ä¿®ãç¢ºç«æ¸ã¿ããã»ã¹ã«é¢ããã¯ã¤ãºããã¼ã«ãæé ã®å¤æ´ã«åãããã¬ã¤ãæ´æ°ã®é¸æè¢ããå©ç¨ããã ãã¾ãã"}},recentGuides={draftsHeading:"æè¿ã®ä¸æ¸ã",viewAll:"ãã¹ã¦è¡¨ç¤º",statusCompleted:"å®äº",statusPending:"ä¿çä¸",steps:"{{count}} ã¹ããã",publishedHeading:"æè¿å
¬éããã¬ã¤ã",defaultUsername:"ããªã",newTutorial:"æ°ãããã¥ã¼ããªã¢ã«",errors:{openDraftFailed:"䏿¸ããéãã¾ããã§ãã: {{message}}"}},signupQuestionnaire={steps:{department:{question:"ãæ
å½ã®æ¥åã¯ï¼",placeholder:"以ä¸ãã鏿ãã¦ãã ãã...",options:{accountingFinance:"çµçã»è²¡å",consultingClientServices:"ã³ã³ãµã«ãã£ã³ã°ã»ã¯ã©ã¤ã¢ã³ããµã¼ãã¹",customerSupport:"ã«ã¹ã¿ãã¼ãµãã¼ã",engineeringProductDesign:"ã¨ã³ã¸ãã¢ãªã³ã°ã»ãããã¯ãã»ãã¶ã¤ã³",humanResources:"人äº",learningDevelopment:"人æè²æã»ç ä¿®",it:"IT",marketing:"ãã¼ã±ãã£ã³ã°",operations:"ãªãã¬ã¼ã·ã§ã³",projectProgramManagement:"ããã¸ã§ã¯ãã»ããã°ã©ã ããã¸ã¡ã³ã",salesCustomerSuccess:"å¶æ¥ã»ã«ã¹ã¿ãã¼ãµã¯ã»ã¹",other:"ãã®ä»"}},companySize:{question:"ä¼ç¤¾ã®è¦æ¨¡ã¯ï¼",placeholder:"以ä¸ãã鏿ãã¦ãã ãã..."},role:{question:"ããªãã®å½¹è·ã¯ï¼",placeholder:"以ä¸ãã鏿ãã¦ãã ãã...",options:{individualContributor:"å人貢ç®è
ï¼ICï¼",teamManager:"ãã¼ã ããã¼ã¸ã£ã¼",director:"ãã£ã¬ã¯ã¿ã¼",executive:"çµå¶å¹¹é¨ï¼C-Levelã»VPï¼",contractorFreelancer:"å¥ç´ç¤¾å¡ã»ããªã¼ã©ã³ã¹"}},referralSource:{question:"å½ç¤¾ãã©ãã§ãç¥ãã«ãªãã¾ãããï¼",placeholder:"以ä¸ãã鏿ãã¦ãã ãã...",options:{blogNewsletter:"ããã°ã¾ãã¯ãã¥ã¼ã¹ã¬ã¿ã¼",facebookInstagram:"Facebookã¾ãã¯Instagram",linkedin:"LinkedIn",friendColleague:"å人ã»ååã®ç´¹ä»",googleBing:"GoogleãBingãªã©ã®æ¤ç´¢",inviteReferral:"æå¾
ã»ç´¹ä»",podcast:"ããããã£ã¹ã",youtube:"YouTube",tiktok:"TikTok",
591somethingElse:"ãã®ä»"}}},questionnaire:{dialogTitle:"ããªãã®ãã¼ã ã«ã¤ãã¦æãã¦ãã ãã",dialogDescription:"æ°æ©è½ãæ¹åã®è¨ç»ã«ãååãã ãã",saving:"ä¿åä¸...",continue:"ç¶ãã",next:"次ã¸"},signup:{dialogTitle:"ã¢ã«ã¦ã³ãã使",dialogDescription:"Stepilyãå§ãã¾ããã",continueWithGoogle:"Googleã§ç¶ãã",orContinueWithEmail:"ã¾ãã¯ã¡ã¼ã«ã¢ãã¬ã¹ã§ç¶ãã",usernameLabel:"ã¦ã¼ã¶ã¼åï¼ä»»æï¼",usernameHint:"3ã20æåã®åè§è±æ°åã¨ã¢ã³ãã¼ã¹ã³ã¢ã®ã¿ä½¿ç¨ã§ãã¾ã",emailLabel:"ã¡ã¼ã«ã¢ãã¬ã¹",passwordLabel:"ãã¹ã¯ã¼ã",submitting:"ã¢ã«ã¦ã³ãã使ä¸...",submit:"ãµã¤ã³ã¢ãã",back:"â æ»ã",alreadyHaveAccount:"ãã§ã«ã¢ã«ã¦ã³ãããæã¡ã§ããï¼ ãµã¤ã³ã¤ã³"},verifyEmail:{dialogTitle:"ã¡ã¼ã«ãã確èªãã ãã",prefix:"確èªãªã³ã¯ã",suffix:" å®ã«éä¿¡ãã¾ããããªã³ã¯ãã¯ãªãã¯ãã¦ã¢ã«ã¦ã³ããæå¹åãã¦ãã ããã",spamHint:"å±ãã¦ãã¾ãããï¼ è¿·æã¡ã¼ã«ãã©ã«ããã確èªããã ãããããä¸åº¦ãµã¤ã³ã¢ãããã試ããã ããã",close:"éãã"},errors:{sessionExpired:"ã»ãã·ã§ã³ã®æå¹æéãåãã¾ãããããä¸åº¦ãµã¤ã³ã¤ã³ãã¦ãã ããã",captchaWait:"ã»ãã¥ãªãã£ãã§ãã¯ãå®äºããã¾ã§ãå¾
ã¡ãã ããã",usernameLength:"ã¦ã¼ã¶ã¼åã¯3ã20æåã§å
¥åãã¦ãã ãã",usernameChars:"åè§è±æ°åã¨ã¢ã³ãã¼ã¹ã³ã¢ã®ã¿ä½¿ç¨ã§ãã¾ã",usernameTaken:"ãã®ã¦ã¼ã¶ã¼åã¯ãã§ã«ä½¿ç¨ããã¦ãã¾ã"},success:{accountCreated:"ã¢ã«ã¦ã³ãã使ãã¾ããï¼"}},globalSearch={scopes:{all:{label:"ãã¹ã¦ã®çµæ",description:"ã¢ã¯ã»ã¹å¯è½ãªã³ãã¥ããã£ãå人ãå
±æããã¼ã ã®ã³ã³ãã³ã"},workspace:{label:"ã¯ã¼ã¯ã¹ãã¼ã¹",description:"ãã¼ã ææã®ã¬ã¤ãã¨ã¯ã¼ã¯ããã¯"},community:{label:"ã³ãã¥ããã£",description:"å
¬éã¬ã¤ãã¨ã¯ã¼ã¯ããã¯"}},documents:{all:{label:"ãã¹ã¦ã®ããã¥ã¡ã³ã",description:"ãã¥ã¼ããªã¢ã«ã¨ã¯ã¼ã¯ããã¯"},tutorial:{label:"ãã¥ã¼ããªã¢ã«",description:"åå¥ã®ã¹ããããã¤ã¹ãããã¬ã¤ã"},workbook:{label:"ã¯ã¼ã¯ããã¯",description:"ãã¥ã¼ããªã¢ã«ã®ã³ã¬ã¯ã·ã§ã³"}},searchInputPlaceholder:"ã¬ã¤ããã¢ããªã使è
ãã¯ã¼ã¯ããã¯ãæ¤ç´¢",clearSearch:"æ¤ç´¢ãã¯ãªã¢",closeSearch:"æ¤ç´¢ãéãã",dialogTitle:"ã¬ã¤ãã¨ã¯ã¼ã¯ããã¯ãæ¤ç´¢",creator:{default:"使è
",all:"ãã¹ã¦ã®ä½æè
",searchPlaceholder:"使è
ãæ¤ç´¢...",empty:"使è
ãè¦ã¤ããã¾ãã"},workspace:{default:"ã¯ã¼ã¯ã¹ãã¼ã¹",all:"ãã¹ã¦ã®ã¯ã¼ã¯ã¹ãã¼ã¹",searchPlaceholder:"ã¯ã¼ã¯ã¹ãã¼ã¹ãæ¤ç´¢...",empty:"ã¯ã¼ã¯ã¹ãã¼ã¹ãè¦ã¤ããã¾ãã"},application:{default:"ã¢ããªã±ã¼ã·ã§ã³",all:"ãã¹ã¦ã®ã¢ããªã±ã¼ã·ã§ã³",searchPlaceholder:"ã¢ããªã±ã¼ã·ã§ã³ãæ¤ç´¢...",empty:"ã¢ããªã±ã¼ã·ã§ã³ãè¦ã¤ããã¾ãã"},resultsCountSingular:"{{count}} ä»¶ã®çµæ",resultsCountPlural:"{{count}} ä»¶ã®çµæ",optionResultCountSingular:"{{count}} ä»¶",optionResultCountPlural:"{{count}} ä»¶",clearFilters:"ãã£ã«ã¿ã¼ãã¯ãªã¢",searching:"æ¤ç´¢ä¸",searchFailedTitle:"æ¤ç´¢ã«å¤±æãã¾ãã",noResults:{title:"ãã®æ¤ç´¢æ¡ä»¶ã¨ãã£ã«ã¿ã¼ã®çµã¿åããã§ã¯çµæãè¦ã¤ããã¾ããã§ããã",hint:"ããåºããã¼ã¯ã¼ãã試ããããã¹ã¦ã®çµæã«æ»ãããé©ç¨ä¸ã®ãã£ã«ã¿ã¼ãã¯ãªã¢ãã¦ãã ããã",clearButton:"æ¤ç´¢ã¨ãã£ã«ã¿ã¼ãã¯ãªã¢"},resultRow:{workbookType:"ã¯ã¼ã¯ããã¯",tutorialType:"ãã¥ã¼ããªã¢ã«",stepsCount:"{{count}} ã¹ããã"},selection:{selectedCount:"{{count}}件鏿ä¸",cancel:"ãã£ã³ã»ã«",confirm:"{{count}}ä»¶ã®ã¬ã¤ãã追å ",alreadyAdded:"è¿½å æ¸ã¿"}},compactHeader={searchPlaceholder:"ãã¥ã¼ããªã¢ã«ãã¢ããªã使è
ãæ¤ç´¢...",searchAriaLabel:"ãã¥ã¼ããªã¢ã«ãã¢ããªã使è
ãæ¤ç´¢",upgradeToPro:"Proã«ã¢ããã°ã¬ã¼ã",createNew:"æ°è¦ä½æ",create:{browser:"ãã©ã¦ã¶ã¬ã¤ã",desktop:"ãã¹ã¯ãããã¬ã¤ã",workbook:"ã¯ã¼ã¯ããã¯"},extensionsLabel:"æ¡å¼µæ©è½",pinHint:"Stepilyããã³çããã¦ç°¡åã«ã¢ã¯ã»ã¹ã",startRecording:"è¨é²ãéå§",dialog:{install:{srTitle:"Stepily Chromeæ¡å¼µæ©è½ãå
¥æ",srDescription:"æ°ããã¬ã¤ãã使ããã«ã¯ãStepilyæ¡å¼µæ©è½ãã¤ã³ã¹ãã¼ã«ãã¦ãã ããã",heading:"æ¡å¼µæ©è½ãå
¥æ",description:"Stepilyãã¤ã³ã¹ãã¼ã«ãã¦ããã©ã¦ã¶ã§ã®ä½æ¥ãè¨é²ãã¬ã¤ãã使ãã¾ãããã",button:"æ¡å¼µæ©è½ãå
¥æãã"},pin:{srTitle:"æ¡å¼µæ©è½ããã³çã",srDescription:"Stepilyæ¡å¼µæ©è½ããã©ã¦ã¶ã®ãã¼ã«ãã¼ã«ãã³çããã¦ãã ããã",heading:"æ¡å¼µæ©è½ããã³çã",description:"Stepilyããã©ã¦ã¶å
ã§ãã¤ã§ãè¦ããç¶æ
ã«ãã¦ãããã«ã
591¢ã¯ã»ã¹ã§ããããã«ãã¾ããããä¸ã®ããºã«ã¢ã¤ã³ã³ãã¯ãªãã¯ãã¦Stepilyããã¼ã«ãã¼ã«ãã³çããã¦ãã ããã",button:"次ã¸"},record:{srTitle:"æ¡å¼µæ©è½ããè¨é²",srDescription:"Stepilyæ¡å¼µæ©è½ã§ãè¨é²ãéå§ããã¯ãªãã¯ãã¦ãã ããã",heading:"æ¡å¼µæ©è½ããè¨é²",description:"Stepilyæ¡å¼µæ©è½ã§ãè¨é²ãéå§ããã¯ãªãã¯ãã¦ãã¬ã¤ãã®ä½æãå§ãã¾ãããã",back:"æ»ã",done:"å®äº"}}},community={heading:"ã³ãã¥ããã£",subtitle:"Stepilyã³ãã¥ããã£ããå³é¸ãããã¬ã³ãä¸ã®ãã¥ã¼ããªã¢ã«ã人æ°ã¢ããªãå®è©ããã¬ã¤ãããç´¹ä»ãã¾ãã",officialCreator:{heading:"ãªãã£ã·ã£ã«ã¯ãªã¨ã¤ã¿ã¼èªå®",description:"ãªãã£ã·ã£ã«ã¯ãªã¨ã¤ã¿ã¼ã¯ã³ãã¥ããã£ã®å
¬éåºçãç¶æãã¦ãã¾ããèªå®ã¯æåã§ç¢ºèªããã¾ãã",badges:{official:"ãªãã£ã·ã£ã«ã¯ãªã¨ã¤ã¿ã¼",pending:"ç³è«ä¸"},messages:{official:"ããªãã®ã¢ã«ã¦ã³ãã¯ãªãã£ã·ã£ã«ã¯ãªã¨ã¤ã¿ã¼ã¨ãã¦ç»é²ããã¦ãã¾ãããã以ä¸ã®æä½ã¯ä¸è¦ã§ãã",pending:"ç³è«ãéä¿¡ããã¾ãããSupabaseã§æåã§ç¢ºèªãããã¾ã§ãç³è«ã¯ä¿çä¸ã§ãã",cta:"ãªãã£ã·ã£ã«ã¯ãªã¨ã¤ã¿ã¼èªå®ã¨å°æ¥çãªã³ãã¥ããã£å
¬éåºçã叿ãããå ´åã¯ãã¢ã¯ã»ã¹ç³è«ããã¦ãã ããã"},button:{default:"ãªãã£ã·ã£ã«ã¯ãªã¨ã¤ã¿ã¼ã«ãªã",loading:"éä¿¡ä¸..."}},toasts:{emailRequired:"ãªãã£ã·ã£ã«ã¯ãªã¨ã¤ã¿ã¼èªå®ãç³è«ããã«ã¯ãèªè¨¼æ¸ã¿ã®ã¢ã«ã¦ã³ãã¡ã¼ã«ã¢ãã¬ã¹ãå¿
è¦ã§ãã",alreadyPending:"ããªãã®ãªãã£ã·ã£ã«ã¯ãªã¨ã¤ã¿ã¼ç³è«ã¯ãã§ã«ç¢ºèªå¾
ã¡ã§ãã",submitError:"ç³è«ã®éä¿¡ã«å¤±æãã¾ãã: ",submitSuccess:"ãªãã£ã·ã£ã«ã¯ãªã¨ã¤ã¿ã¼ç³è«ãæå確èªç¨ã«éä¿¡ããã¾ããã"}},appSidebar={community:"ã³ãã¥ããã£",following:"ãã©ãã¼ä¸",beta:"ãã¼ã¿",home:"ãã¼ã ",myGuides:"ãã¤ã¬ã¤ã",drafts:"䏿¸ã",published:"å
¬éæ¸ã¿",sharedWithMe:"å
±æãããã¬ã¤ã",saved:"ä¿åæ¸ã¿",trash:"ã´ãç®±",rename:"ååã夿´",delete:"åé¤",switchWorkspace:"ã¯ã¼ã¯ã¹ãã¼ã¹ãåãæ¿ã",inviteTeammates:"ãã¼ã ã¡ã³ãã¼ãæå¾
",createNewTeam:"æ°ãããã¼ã ã使",settings:"è¨å®",createTeamPrompt:"ãã¼ã ã使",teamGuides:"ãã¼ã ã¬ã¤ã",teamTrash:"ãã¼ã ã®ã´ãç®±",profile:"ãããã£ã¼ã«",logOut:"ãã°ã¢ã¦ã",defaultUsername:"ã¦ã¼ã¶ã¼",extensionUploads:"æ¡å¼µæ©è½ã®ã¢ãããã¼ã",desktopUploads:"ãã¹ã¯ããã",notFollowingAnyone:"ã¾ã 誰ããã©ãã¼ãã¦ãã¾ããã",all:"ãã¹ã¦",unknownUser:"䏿ãªã¦ã¼ã¶ã¼",public:"å
¬é",private:"éå
¬é",anyoneWithLink:"ãªã³ã¯ãç¥ã£ã¦ããå
¨å¡",teamOnly:"ãã¼ã ã®ã¿",createFolderTooltip:"ãã©ã«ãã使",folderNamePlaceholder:"ãã©ã«ãå...",createTeamDialog:{title:"æ°ãããã¼ã ã使",placeholder:"ãã¼ã å...",cancel:"ãã£ã³ã»ã«",creating:"使ä¸...",create:"ãã¼ã ã使"},confirmDeleteFolder:"ãã®ãã©ã«ããåé¤ãã¾ããï¼ãã©ã«ãå
ã®ãã¥ã¼ããªã¢ã«ã¯åé¤ããã¾ããã",toasts:{signOutSuccess:"ãã°ã¢ã¦ããã¾ãã",signOutError:"ãã°ã¢ã¦ãã«å¤±æãã¾ãã"}},appCard={tutorialCount_one:"ãã¥ã¼ããªã¢ã«{{count}}ä»¶",tutorialCount_other:"ãã¥ã¼ããªã¢ã«{{count}}ä»¶"},auth={welcomeTitle:"Stepilyã¸ãããã",welcomeDescription:"ã¹ã¯ãªã¼ã³ã·ã§ãããã¥ã¼ããªã¢ã«ã使ã»å
±æãã¾ããã",signInTab:"ãµã¤ã³ã¤ã³",signUpTab:"ãµã¤ã³ã¢ãã",continueWithGoogle:"Googleã§ç¶ãã",orContinueWithEmail:"ã¾ãã¯ã¡ã¼ã«ã¢ãã¬ã¹ã§ç¶ãã",emailLabel:"ã¡ã¼ã«ã¢ãã¬ã¹",passwordLabel:"ãã¹ã¯ã¼ã",forgotPassword:"ãã¹ã¯ã¼ãããå¿ãã§ããï¼",signingIn:"ãµã¤ã³ã¤ã³ä¸...",signIn:"ãµã¤ã³ã¤ã³",resetPassword:{title:"ãã¹ã¯ã¼ãããªã»ãã",description:"ã¡ã¼ã«ã¢ãã¬ã¹ãå
¥åããã¨ããã¹ã¯ã¼ããªã»ããç¨ã®ãªã³ã¯ããéããã¾ãã",sending:"éä¿¡ä¸...",sendLink:"ãªã»ãããªã³ã¯ãéä¿¡",cancel:"ãã£ã³ã»ã«"},toasts:{captchaWait:"ã»ãã¥ãªãã£ãã§ãã¯ãå®äºããã¾ã§ãå¾
ã¡ãã ããã",signedIn:"ãã°ã¤ã³ãã¾ããï¼",passwordResetSent:"ãã¹ã¯ã¼ããªã»ããã¡ã¼ã«ãé
591ä¿¡ãã¾ããï¼åä¿¡ãã¬ã¤ãã確èªãã ããã"}},shareDialog={title:{tutorial:"ãã¥ã¼ããªã¢ã«ãå
±æ",folder:"ãã©ã«ããå
±æ"},tabs:{share:"å
±æ",embed:"åãè¾¼ã¿",export:"ã¨ã¯ã¹ãã¼ã"},emailLabel:"ã¡ã¼ã«ã¢ãã¬ã¹",emailPlaceholder:"å
±æããã¡ã¼ã«ã¢ãã¬ã¹ã追å ",sharedWith:"å
±æä¸ï¼{{count}}ï¼",loading:"èªã¿è¾¼ã¿ä¸...",notSharedYet:"ã¾ã 誰ã¨ãå
±æãã¦ãã¾ãã",defaultUsername:"ã¦ã¼ã¶ã¼",viewingMode:"表示ã¢ã¼ã",scroll:"ã¹ã¯ãã¼ã«",slides:"ã¹ã©ã¤ã",embedTutorialOnly:"åãè¾¼ã¿ã¯ãã¥ã¼ããªã¢ã«ã§ã®ã¿ãå©ç¨ããã ãã¾ãã",embedProFeatureTitle:"éå
¬éãã¥ã¼ããªã¢ã«ã®åãè¾¼ã¿ã¯Proãã©ã³ã®æ©è½ã§ã",embedProFeatureDescription:"ã¢ããã°ã¬ã¼ãããã¨ãéå
¬éãã¥ã¼ããªã¢ã«ãä»»æã®Webãã¼ã¸ã«åãè¾¼ãã¾ãã",unlockPro:"Proãå©ç¨ãã",linkSharingOffTitle:"ãªã³ã¯å
±æã¯ãªãã§ã",linkSharingOffDescription:"å
±æã¿ãã§ããªã³ã¯ãç¥ã£ã¦ããå
¨å¡ãé²è¦§å¯è½ããæå¹ã«ããã¾ã§ã訪åè
ã¯ãã®åãè¾¼ã¿ãã¥ã¼ããªã¢ã«ãé²è¦§ã§ãã¾ããã",copied:"ã³ãã¼ãã¾ããï¼",copyEmbedCode:"åãè¾¼ã¿ã³ã¼ããã³ãã¼",exportToPdf:"PDFã«ã¨ã¯ã¹ãã¼ã",preview:"ãã¬ãã¥ã¼",exportToPowerPoint:"PowerPoint ã«ã¨ã¯ã¹ãã¼ã",exportToMarkdown:"Markdownã«ã¨ã¯ã¹ãã¼ã",proBadge:"Pro",upsellFeatures:{embeds:"éå
¬éãã¥ã¼ããªã¢ã«ã®åãè¾¼ã¿",markdownExports:"Markdownã¨ã¯ã¹ãã¼ã"},checking:"確èªä¸",copiedShort:"ã³ãã¼æ¸ã¿",copying:"ã³ãã¼ä¸",copy:"ã³ãã¼",exporting:"ã¨ã¯ã¹ãã¼ãä¸",download:"ãã¦ã³ãã¼ã",notShared:"å
±æãã¦ãã¾ãã",anyoneWithLinkCanView:"ãªã³ã¯ãç¥ã£ã¦ããå
¨å¡ãé²è¦§å¯è½",linkCopied:"ãªã³ã¯ãã³ãã¼ãã¾ããï¼",copyLink:"ãªã³ã¯ãã³ãã¼",done:"å®äº",errors:{invalidEmail:"æå¹ãªã¡ã¼ã«ã¢ãã¬ã¹ãå
¥åãã¦ãã ãã",genericTryAgain:"ããä¸åº¦ã試ããã ããã",tutorialNotFound:"ãã¥ã¼ããªã¢ã«ãè¦ã¤ããã¾ãã"},toasts:{embedCodeCopied:"åãè¾¼ã¿ã³ã¼ããã³ãã¼ãã¾ããï¼",copyFailedManual:"ã³ãã¼ã«å¤±æãã¾ãããæåã§ã³ãã¼ãã¦ãã ããã",linkCopied:"ãªã³ã¯ãã³ãã¼ãã¾ããï¼",markdownCopied:"Markdownãã³ãã¼ãã¾ããï¼",markdownCopyFailed:"Markdownã®ã³ãã¼ã«å¤±æãã¾ãã: {{error}}",markdownDownloaded:"Markdownã¨ã¯ã¹ãã¼ãããã¦ã³ãã¼ããã¾ãã",markdownExportFailed:"Markdownã®ã¨ã¯ã¹ãã¼ãã«å¤±æãã¾ãã: {{error}}",linkSharingUpdateFailed:"ãªã³ã¯å
±æã®æ´æ°ã«å¤±æãã¾ãã",linkSharingEnabled:"ãªã³ã¯ãç¥ã£ã¦ããå
¨å¡ãé²è¦§å¯è½ã«ãªãã¾ãã",linkSharingDisabled:"ãªã³ã¯å
±æãç¡å¹ã«ãã¾ãã",cantShareWithSelf:"èªåèªèº«ã¨ã¯å
±æã§ãã¾ãã",noAccountFound:"ãã®ã¡ã¼ã«ã¢ãã¬ã¹ã«å¯¾å¿ããã¢ã«ã¦ã³ããè¦ã¤ããã¾ããã",alreadyShared:"ãã®ã¦ã¼ã¶ã¼ã¨ã¯ãã§ã«å
±ææ¸ã¿ã§ã",sharedWithEmail:"{{email}} ã¨å
±æãã¾ãã",shareFailed:"å
±æã«å¤±æãã¾ãã: {{error}}",removeAccessFailed:"ã¢ã¯ã»ã¹æ¨©ã®åé¤ã«å¤±æãã¾ãã",accessRemoved:"ã¢ã¯ã»ã¹æ¨©ãåé¤ãã¾ãã"}},workbookViewer={loading:"ã¯ã¼ã¯ããã¯ãèªã¿è¾¼ã¿ä¸...",notFound:"ã¯ã¼ã¯ããã¯ãè¦ã¤ããã¾ãã",back:"æ»ã",workbookBadge:"ã¯ã¼ã¯ããã¯",unknownAuthor:"䏿",tutorialsCount:"ãã¥ã¼ããªã¢ã« {{count}} ä»¶",stepsCount:"{{count}} ã¹ããã",stepTypeTip:"ãã³ã",stepTypeAlert:"è¦å",stepTypeHeader:"è¦åºã",copyLink:"ãªã³ã¯ãã³ãã¼",edit:"ç·¨é",publish:"å
¬é",copy:"ã³ãã¼",toasts:{copiedToClipboard:"ã¯ãªãããã¼ãã«ã³ãã¼ãã¾ãã",copyFailed:"ã³ãã¼ã«å¤±æãã¾ãã",linkCopied:"ãªã³ã¯ãã³ãã¼ãã¾ããï¼",linkCopyFailed:"ãªã³ã¯ã®ã³ãã¼ã«å¤±æãã¾ãã"}},workbookEditor={loading:"ã¯ã¼ã¯ããã¯ãèªã¿è¾¼ã¿ä¸...",notFound:"ã¯ã¼ã¯ããã¯ãè¦ã¤ããã¾ãã",backToDashboard:"ããã·ã¥ãã¼ãã«æ»ã",backToWorkbook:"ã¯ã¼ã¯ããã¯ã«æ»ã",workbookBadge:"ã¯ã¼ã¯ããã¯",createWorkbook:"ã¯ã¼ã¯ããã¯ã使",editWorkbook:"ã¯ã¼ã¯ããã¯ãç·¨é",titleLabel:"ã¿ã¤ãã«",titlePlaceholder:"ã¯ã¼ã¯ããã¯ã®ã¿ã¤ãã«",descriptionLabel:"説æ",descriptionPlaceholder:"ã¯ã¼ã¯ããã¯ã®èª¬æï¼ä»»æï¼",appLabel:"ã¢ããª",tutorialsLabel:"ãã¥ã¼ããªã¢ã«ï¼{{count}}ï¼",dragToReorder:"ãã©ãã°ãã¦ãã¥ã¼ããªã¢ã«ãä¸¦ã¹æ¿ããããã´ãç®±ã¢ã¤ã³ã³ãã¯ãªãã¯ãã¦åé¤ãã¾ã",addGuides:"ã¬ã¤ãã追å ",noGuidesYet:"ã¾ã ã¬ã¤ããããã¾ããããã¬ã¤ãã追å ãããã¬ã¤ããæ¤ç´¢ãã¦ããã®ã¯ã¼ã¯ããã¯ã«è¿½å ãã¦ãã ããã",saving:"ä¿åä¸...",cancel:"ãã£ã³ã»ã«",defaultTitle:"ç¡é¡ã
591®ã¯ã¼ã¯ããã¯",done:"å®äº",publish:"å
¬é",publishPublic:"ä¸è¬å
¬é",publishPrivate:"éå
¬éã§å
¬é",publishAnyoneWithLink:"ãªã³ã¯ãç¥ã£ã¦ããå
¨å¡",publishToTeam:"ãã¼ã ã«å
¬é",toasts:{noPermission:"ãã®ã¯ã¼ã¯ããã¯ãç·¨éããæ¨©éãããã¾ãã",removeTutorialFailed:"ãã¥ã¼ããªã¢ã«ã®åé¤ã«å¤±æãã¾ãã",tutorialRemoved:"ãã¥ã¼ããªã¢ã«ãã¯ã¼ã¯ããã¯ããåé¤ãã¾ãã",saveWorkbookFailed:"ã¯ã¼ã¯ããã¯ã®ä¿åã«å¤±æãã¾ãã",updateOrderFailed:"ãã¥ã¼ããªã¢ã«ã®é åºã®æ´æ°ã«å¤±æãã¾ãã",workbookSaved:"ã¯ã¼ã¯ããã¯ãä¿åãã¾ãã",titleRequired:"ä¿åããåã«ã¯ã¼ã¯ããã¯ã®ã¿ã¤ãã«ãå
¥åãã¦ãã ãã",workbookCreated:"ã¯ã¼ã¯ããã¯ã使ãã¾ãã",publicPublishingRestricted:"ã使ãã®ã¢ã«ã¦ã³ãã§ã¯ä¸è¬å
¬éãå©ç¨ã§ãã¾ãã",published:{public:"ã¯ã¼ã¯ããã¯ãä¸è¬å
¬éãã¾ãã",private:"ã¯ã¼ã¯ããã¯ãéå
¬éã§å
¬éãã¾ãã",anyoneWithLink:"ãªã³ã¯ãç¥ã£ã¦ããå
¨å¡ã«ã¯ã¼ã¯ããã¯ãå
±æãã¾ãã"}}},tutorialViewer={loading:"ãã¥ã¼ããªã¢ã«ãèªã¿è¾¼ã¿ä¸...",notFound:"ãã¥ã¼ããªã¢ã«ãè¦ã¤ããã¾ãã",goBackHome:"ãã¼ã ã«æ»ã",goBack:"æ»ã",companyLogoAlt:"ä¼ç¤¾ã®ãã´",edit:"ç·¨é",exitQuiz:"ã¯ã¤ãºãçµäº",quizMode:"ã¯ã¤ãºã¢ã¼ã",saved:"ä¿åæ¸ã¿",save:"ä¿å",share:"å
±æ",copyLink:"ãªã³ã¯ãã³ãã¼",duplicating:"è¤è£½ä¸...",duplicate:"è¤è£½",anonymous:"å¿å",rateThisTutorial:"ãã®ãã¥ã¼ããªã¢ã«ãè©ä¾¡ãã",copy:"ã³ãã¼",openStepUrl:"{{url}} ãæ°ããã¿ãã§éã",noStepsYet:"ãã®ãã¥ã¼ããªã¢ã«ã«ã¯ã¾ã ã¹ããããããã¾ããã",tableOfContents:"ç®æ¬¡",stepsCount_one:"{{count}}ã¹ããã",stepsCount_other:"{{count}}ã¹ããã",toasts:{duplicateFailed:"ãã¥ã¼ããªã¢ã«ã®è¤è£½ã«å¤±æãã¾ãã",duplicateNoId:"è¤è£½ã«å¤±æãã¾ãã â ãã¥ã¼ããªã¢ã«IDãè¿ããã¾ããã§ãã",duplicateSuccess:"ãã¥ã¼ããªã¢ã«ãè¤è£½ãã¾ããï¼",loadTutorialFailed:"ãã¥ã¼ããªã¢ã«ã®èªã¿è¾¼ã¿ã«å¤±æãã¾ãã",signInToSave:"ãã¥ã¼ããªã¢ã«ãä¿åããã«ã¯ãµã¤ã³ã¤ã³ãã¦ãã ãã",removedFromSaved:"ä¿åæ¸ã¿ãã¥ã¼ããªã¢ã«ããåé¤ãã¾ãã",savedForLater:"å¾ã§è¦ãããã«ä¿åãã¾ãã",updateSaveFailed:"ä¿åç¶æ
ã®æ´æ°ã«å¤±æãã¾ãã",signInToRate:"ãã¥ã¼ããªã¢ã«ãè©ä¾¡ããã«ã¯ãµã¤ã³ã¤ã³ãã¦ãã ãã",ratingSubmitted:"è©ä¾¡ãéä¿¡ãã¾ãã",ratingSubmitFailed:"è©ä¾¡ã®éä¿¡ã«å¤±æãã¾ãã",linkCopied:"ãªã³ã¯ãã³ãã¼ãã¾ããï¼",linkCopyFailed:"ãªã³ã¯ã®ã³ãã¼ã«å¤±æãã¾ãã",copiedToClipboard:"ã¯ãªãããã¼ãã«ã³ãã¼ãã¾ãã",copyFailed:"ã¯ãªãããã¼ãã¸ã®ã³ãã¼ã«å¤±æãã¾ãã"}},profile={pageTitle:"ãããã£ã¼ã«",pageTitleCreator:"ã³ãã¥ããã£ãããã£ã¼ã«",loading:"èªã¿è¾¼ã¿ä¸...",basicInfo:{title:"åºæ¬æ
å ±",photoTitle:"ãããã£ã¼ã«åç",photoHelpUploading:"ã¢ãããã¼ãä¸...",photoHelp:"ä»ã®ã¦ã¼ã¶ã¼ãèªèããããããã«ãåçãã¢ãããã¼ããã¦ãã ããï¼æå¤§5MBï¼",usernameLabel:"ã¦ã¼ã¶ã¼å",usernameHelp:"3ã20æåã§ãè±æ°åã¨ã¢ã³ãã¼ã¹ã³ã¢ã®ã¿ä½¿ç¨ã§ãã¾ã",firstNameLabel:"å",lastNameLabel:"å§",emailLabel:"ã¡ã¼ã«ã¢ãã¬ã¹",changePassword:"ãã¹ã¯ã¼ãã夿´",languageLabel:"è¨èª",bioLabel:"èªå·±ç´¹ä»",bioPlaceholder:"ã³ãã¥ããã£ã«èªå·±ç´¹ä»ããã¾ãããâ¦",specialtyLabel:"å°éåé/å½¹è·"},socialMedia:{title:"ã½ã¼ã·ã£ã«ã¡ãã£ã¢ãªã³ã¯",makePublic:"å
¬éãã"},stats:{title:"ããªãã®çµ±è¨",tutorialsCreated:"使ãããã¥ã¼ããªã¢ã«",averageRating:"å¹³åè©ä¾¡",totalViews:"ç·é²è¦§æ°"},badges:{title:"ããã¸",noBadgesYet:"ããã¸ã¯ã¾ã ããã¾ãã",earnBadgesHint:"ãã¥ã¼ããªã¢ã«ã使ããã³ãã¥ããã£ã¨äº¤æµãã¦ããã¸ãç²å¾ãã¾ãããï¼"},subscription:{title:"ãµãã¹ã¯ãªãã·ã§ã³",planPro:"Pro",planEnterprise:"ã¨ã³ã¿ã¼ãã©ã¤ãº",planFree:"ç¡æ",paidSeats_one:"ææã·ã¼ã{{count}}å¸ãå«ã¾ãã¦ãã¾ããé²è¦§è
ç¨ã·ã¼ãã¯ç¡æã§ãã",paidSeats_other:"ææã·ã¼ã{{count}}å¸ãå«ã¾ãã¦ãã¾ããé²è¦§è
ç¨ã·ã¼ãã¯ç¡æã§ãã",renews:"æ´æ°æ¥: {{date}}",manageBilling:"è«æ±æ
å ±ã管ç",freePlanPrefix:"ç¾å¨ã®ãã©ã³ã¯",freePlanSuffix:"ã§ãã",upgradeToPro:"Proã«ã¢ããã°ã¬ã¼ã"},deleteAccount:{button:"ã¢ã«ã¦ã³ããåé¤",warning:"ãã®æä½ãè¡ãã¨ããã¹ã¦ã®ãã¼ã¿ãåé¤ãããå
ã«æ»ããã¨ã¯ã§ãã¾ããã",dialogTitle:"ã¢ã«ã¦ã³ããåé¤",dialogDescriptionPrefix:"æ¬å½ã«ããããã§ããï¼ãã®æä½ãè¡ãã¨ãã¢ã«ã¦ã³ãããã¹ã¦ã®ãã¥ã¼ããªã¢ã«ãã¯ã¼ã¯ã¹ãã¼ã¹ãããã³ããã«é¢é£ãããã¹ã¦ã®ãã¼ã¿ãå®å
¨ã«åé¤ããã¾ãã",dialogDescriptionEmphasis:"ãã®æä½ã¯å
ã«æ»ãã¾ããã",cancel:"ãã£ã³ã»ã«",deleting:"åé¤ä¸â¦",confirmButton:"ã¢ã«ã¦ã³ããåé¤ãã"},removePhotoDialog:{title:"ãããã£ã¼ã«åçãåé¤",description:"ãããã£ã¼ã«åçãåé¤ãã¦ãããããã§ããï¼ãã®æä½ã¯å
ã«æ»ãã¾ããã",cancel:"ãã£ã³ã»ã«",confirm:"åé¤"},changePasswordDialog:{title:"ãã¹ã¯ã¼ãã夿´",description:"ç¾å¨ã®ãã¹ã¯ã¼ããå
¥åããæ°ãããã¹ã¯ã¼ããè¨å®ãã¦ãã ããã",currentPasswordLabel:"ç¾å¨ã®ãã¹ã¯ã¼ã",newPasswordLabel:"æ°ãããã¹ã¯ã¼ã",confirmNewPasswordLabel:"æ°ãããã¹ã¯ã¼ãï¼ç¢ºèªï¼",cancel:"ãã£ã³ã»ã«",updating:"æ´æ°ä¸...",submit:"ãã¹ã¯ã¼ããæ´æ°"},validation:{usernameLength:"ã¦ã¼ã¶ã¼åã¯3ã20æåã§å
¥åãã¦ãã ãã",usernameFormat:"ã¦ã¼ã¶ã¼åã«ã¯è±æ°åã¨ã¢ã³ãã¼ã¹ã³ã¢ã®ã¿ä½¿ç¨ã§ãã¾ã",usernameTaken:"ãã®ã¦ã¼ã¶ã¼åã¯ãã§ã«ä½¿ç¨ããã¦ãã¾ã"},toasts:{loadProfileFailed:"ãããã£ã¼ã«ã®èªã¿è¾¼ã¿ã«å¤±æãã¾ãã",usernameUpdated:"ã¦ã¼ã¶ã¼åãæ´æ°ãã¾ããï¼",usernameUpdateFailed:"ã¦ã¼ã¶ã¼åã®æ´æ°ã«å¤±æãã¾ãã",passwordsDoNotMatch:"ãã¹ã¯ã¼ããä¸è´ãã¾ãã",passwordTooShort:"ãã¹ã¯ã¼ãã¯6æå以ä¸ã§å
¥åãã¦ãã ãã",unableToVerifyAccount:"ã¢ã«ã¦ã³ãã確èªã§ãã¾ããã§ãããããä¸åº¦ã試ããã ããã",currentPasswordIncorrect:"ç¾å¨ã®ãã¹ã¯ã¼ããæ£ããããã¾ãã",passwordUpdated:"ãã¹ã¯ã¼ããæ´æ°ãã¾ããï¼",selectImageFile:"ç»åãã¡ã¤ã«ã鏿ãã¦ãã ãã",imageTooLarge:"ç»åãµã¤ãºã¯5MBæªæºã«ãã¦ãã ãã",photoUpdated:"ãããã£ã¼ã«åçãæ´æ°ãã¾ããï¼",photoUploadFailed:"ãããã£ã¼ã«åçã®ã¢ãããã¼ãã«å¤±æãã¾ãã",photoRemoved:"ãããã£ã¼ã«åçãåé¤ãã¾ãã",photoRemoveFailed:"ãããã£ã¼ã«åçã®åé¤ã«å¤±æãã¾ãã",socialMediaErrors:"ã½ã¼ã·ã£ã«ã¡ãã£ã¢ã®URLã¨ã©ã¼ãä¿®æ£ãã¦ãã ãã",profileUpdated:"ãããã£ã¼ã«ãæ´æ°ãã¾ããï¼",profileUpdateFailed:"ãããã£ã¼ã«ã®æ´æ°ã«å¤±æãã¾ãã",accountDeleted:"ã¢ã«ã¦ã³ããåé¤ãã¾ããã",accountDeleteFailed:"ã¢ã«ã¦ã³ãã®åé¤ã«å¤±æãã¾ããããµãã¼ãã¾ã§ã
591åãåãããã ããã"},saveProfile:"ãããã£ã¼ã«ãä¿å"},stepCanvasEditor={heading:"ã¹ããã {{number}} â ç·¨éä¸",done:"å®äº",cancel:"ãã£ã³ã»ã«",noScreenshot:"ãã®ã¹ãããã«ã¯ã¹ã¯ãªã¼ã³ã·ã§ãããã¢ãããã¼ãããã¦ãã¾ããã",blurTag:"ã¼ãã",textPlaceholder:"ããã«å
¥åãEnterã§ç¢ºå®",duplicate:"è¤è£½",delete:"åé¤",clearAll:"ãã¹ã¦ã¯ãªã¢",remove:"åé¤",custom:"ã«ã¹ã¿ã :",stroke:"ç·",fill:"å¡ã",strokeTextColorTitle:"ç·/ããã¹ãã®è²",fillColorTitle:"å¡ãã®è²",capStart:"å§ç¹",capEnd:"çµç¹",lineWidths:{thin:"ç´°ã (2px)",medium:"æ®é (4px)",thick:"太ã (7px)"},tools:{select:{label:"鏿",title:"鏿 (S)"},blur:{label:"ã¼ãã",title:"ã¼ããç¯å² (B)"},highlight:{label:"åè§å½¢",title:"åè§å½¢ãã¤ã©ã¤ã (H)"},ellipse:{label:"æ¥å",title:"æ¥å (E)"},arrow:{label:"ç¢å°",title:"ç¢å° (A)"},line:{label:"ç´ç·",title:"ç´ç· (L)"},text:{label:"ããã¹ã",title:"ããã¹ã (T)"},clickTarget:{label:"ã¯ãªãã¯",title:"ã¯ãªãã¯ä½ç½® (C)"},eraser:{label:"æ¶ãã´ã ",title:"æ¶ãã´ã (X)"},elementBounds:{label:"è¦ç´ ã®æ ",title:"ãã®ã¹ãããã§ã¯ãªãã¯ããè¦ç´ ãå²ã"}},hints:{selectWithSelection:"鏿é
ç®ã®ä¸ã®ãã¼ã«ãã¼ã§è¤è£½ã¾ãã¯åé¤ã§ãã¾ãã空ç½é¨åãã¯ãªãã¯ããã¨é¸æãè§£é¤ãã¾ãã",selectEmpty:"注éãã¯ãªãã¯ãã¦é¸æãã¾ãã",blur:"ãã©ãã°ãã¦ã¼ããç¯å²ãæç»ãã¾ãã",highlight:"ãã©ãã°ãã¦åè§å½¢ã®ãã¤ã©ã¤ããæç»ãã¾ãã",ellipse:"ãã©ãã°ãã¦æ¥åãæç»ãã¾ãã",arrow:"å§ç¹ããçµç¹ã¾ã§ãã©ãã°ãã¾ããæ¢å®ã§ã¯çµç¹ã«ç¢å°ã®å
端ãä»ãã¾ãã",line:"ãã©ãã°ãã¦ç´ç·ãæç»ãã¾ãã",text:"ç»åãã¯ãªãã¯ãã¦ããã¹ããé
ç½®ãã¾ããEnterã§ç¢ºå®ãã¾ãã",clickTarget:"ç»åä¸ã®ä»»æã®å ´æãã¯ãªãã¯ãã¦ã¯ãªãã¯ä½ç½®ãé
ç½®ãã¾ãã",eraser:"注éãã¯ãªãã¯ãã¦åé¤ãã¾ãã",elementBounds:"ãã®ã¹ãããã§ã¯ãªãã¯ããè¦ç´ ãå²ãããã«ãã©ãã°ãã¾ãã"},chips:{blur:"ã¼ãã {{count}}ä»¶",rect:"åè§å½¢ {{count}}ä»¶",ellipse:"æ¥å {{count}}ä»¶",arrow:"ç¢å° {{count}}ä»¶",line:"ç· {{count}}ä»¶",text:"ããã¹ã {{count}}ä»¶",clickTarget:"ã¯ãªãã¯ä½ç½®",elementBounds:"è¦ç´ ã®æ "},fontStyles:{normal:"æ¨æº",bold:"太å",italic:"æä½",boldItalic:"太åæä½"},capOptions:{none:"ãªã",bar:"ãã¼",arrow:"ç¢å°",arrowSolid:"ç¢å°ï¼å¡ãã¤ã¶ãï¼",circle:"å",circleSolid:"åï¼å¡ãã¤ã¶ãï¼",square:"åè§å½¢",squareSolid:"åè§å½¢ï¼å¡ãã¤ã¶ãï¼"}},tutorialEditor={defaultTitle:"æ°ãããã¥ã¼ããªã¢ã«",titlePlaceholder:"ãã¥ã¼ããªã¢ã«ã®ã¿ã¤ãã«",appLabel:"ã¢ããª",cancel:"ãã£ã³ã»ã«",minUnit:"å",secUnit:"ç§",autoSaveSaving:"ä¿åä¸â¦",autoSaveSaved:"ä¿åæ¸ã¿",savingButton:"ä¿åä¸...",done:"å®äº",publish:"å
¬é",publishPublic:"å
¬éï¼ãããªãã¯ï¼",publishPrivate:"å
¬éï¼ãã©ã¤ãã¼ãï¼",publishAnyoneWithLink:"å
¬éï¼ãªã³ã¯ãç¥ã£ã¦ããå
¨å¡ï¼",proBadge:"Pro",usageOfLimit:"{{count}} / {{limit}}",publishToTeam:"ãã¼ã ã«å
¬é",duplicateBanner:"ããã¯ä»ã®ä½æè
ã®ãã¥ã¼ããªã¢ã«ã®è¤è£½ã§ããå人çãªåèç¨ã«ç·¨éã§ãã¾ãããå
¬éãããã¨ã¯ã§ãã¾ããã",tipPlaceholder:"ãã³ããå
¥å...",alertPlaceholder:"注æäºé
ãå
¥å...",sectionHeaderPlaceholder:"ã»ã¯ã·ã§ã³è¦åºã...",codeLabelPlaceholder:"ã³ã¼ããããã¯ã®ã©ãã«ï¼ä¾: ã¯ã¼ã¯ããã¼JSONï¼",codePlaceholder:"ããã«JSONã¾ãã¯ã³ã¼ããè²¼ãä»ã...",copyButton:"ã³ãã¼",duplicateStepMenuItem:"ã¹ããããè¤è£½",stepInstructionsPlaceholder:"ã¹ãããã®èª¬æ",editButton:"ç·¨é",clickToUploadScreenshot:"ã¯ãªãã¯ãã¦ã¹ã¯ãªã¼ã³ã·ã§ãããã¢ãããã¼ã",screenshotFileTypes:"PNGãJPGãã¾ãã¯WEBP",addStepMenuLabel:"ã¹ãããã追å ",uploadImageMenuItem:"ç»åãã¢ãããã¼ã",recordStepMenuItem:"ã¹ããããè¨é²",textStepMenuItem:"ããã¹ãã¹ããã",jsonCodeMenuItem:"JSON / ã³ã¼ã",tipMenuItem:"ãã³ã",alertMenuItem:"注æ",headerMenuItem:"è¦åºã",addNewStepTitle:"æ°ããã¹ãããã追å ",addNewStepDescription:"ã¯ãªãã¯ãã¦æ°ããã¹ãããã使ããã¹ã¯ãªã¼ã³ã·ã§ãããã¢ãããã¼ããã¾ã",tableOfContents:"ç®æ¬¡",publishToTeamDescription:"å
¬éãããã¼ã ã¯ã¼ã¯ã¹ãã¼ã¹ã鏿ãã¦ãã ããã",selectTeamLabel:"ãã¼ã ã鏿:",chooseWorkspacePlaceholder:"ã¯ã¼ã¯ã¹ãã¼ã¹ã鏿â¦",viewerOnlyBadge:"é²è¦§ã®ã¿",defaultStepDescription:"ãã®ã¹ãããã®èª¬æã追å ãã¦ãã ãã",stepFallbackTitle:"ã¹ããã {{number}}",newStepTitle:"æ°ããã¹ããã",newStepFallback:"æ°ããã¹ããã",typedTextFallback:"å
¥åãããããã¹ã",modeGuide:"ã¬ã¤ã",modeQuiz:"ã¯ã¤ãº",markerStyleMarker:"ã¯ãªãã¯ãã¼ã«ã¼",markerStyleOutline:"è¦ç´ ã®æ ",markerStyleMarkerHint:"ã¯ãªãã¯ããä½ç½®ã«åã表示ãã¾ãã",markerStyleOutlineHint:"ã¯ãªãã¯ããè¦ç´ ãæ ã§å²ã¿ã¾ãã",preview:"ãã¬ãã¥ã¼",descriptionPlaceholder:"説æã追å â¦",removeApp:"{{app}} ãåé¤",estTimeMinutesLabel:"æ¨å®æéï¼åï¼",estTimeSecondsLabel:"æ¨å®æéï¼ç§ï¼",options:{visibilityHeading:"èªè
ã«è¡¨ç¤º",markerHeading:"ãã¼ã«ã¼",hiddenFromReaders:"èªè
ã«ã¯è¡¨ç¤ºããã¾ãã",addQuiz:"ã¯ã¤ãº",addQuizWithAi:"AIã§ä½æ",addQuizWithAiHint:"åã¹ãããã«åé¡ãèªåçæãã¾ã",addQuizManually:"èªåã§åé¡ã追å ",addQuizManuallyHint:"空ã®ç¶æ
ããèªåã§ä½æãã¾ã",labels:{tableOfContents:"ç®æ¬¡",appAndCategory:"ã¢ããªã¨ã«ãã´ãª",author:"使è
",stepCount:"ã¹ãããæ°",estimatedTime:"æ¨å®æè¦æé",rating:"è©ä¾¡",quiz:"ã¯ã¤ãº"}},stepsCountBadge_one:"{{count}}ã¹ããã",stepsCountBadge_other:"{{count}}ã¹ããã",toasts:{signInRequired:"ãã¥ã¼ããªã¢ã«ã使ããã«ã¯ãµã¤ã³ã¤ã³ã
591ã¦ãã ãã",stepsInsertedFromExtension_one:"æ¡å¼µæ©è½ã®è¨é²ãã{{count}}ä»¶ã®ã¹ããããæ¿å
¥ãã¾ããï¼",stepsInsertedFromExtension_other:"æ¡å¼µæ©è½ã®è¨é²ãã{{count}}ä»¶ã®ã¹ããããæ¿å
¥ãã¾ããï¼",tutorialLoaded:"ãã¥ã¼ããªã¢ã«ãèªã¿è¾¼ã¿ã¾ãã: {{title}}",loadTutorialFailed:"ãã¥ã¼ããªã¢ã«ã®èªã¿è¾¼ã¿ã«å¤±æãã¾ãã: {{error}}",stepsLoadedFromUpload:"æ¡å¼µæ©è½ã®ã¢ãããã¼ããã{{count}}ä»¶ã®ã¹ããããèªã¿è¾¼ã¿ã¾ãã",loadExtensionUploadFailed:"æ¡å¼µæ©è½ã®ã¢ãããã¼ãã®èªã¿è¾¼ã¿ã«å¤±æãã¾ãã: {{error}}",stepsCreatedFromFiles:"ã¢ãããã¼ãããããã¡ã¤ã«ãã{{count}}ä»¶ã®ã¹ãããã使ãã¾ãã",signInRequiredScreenshot:"ã¹ã¯ãªã¼ã³ã·ã§ãããã¢ãããã¼ãããã«ã¯ãµã¤ã³ã¤ã³ãã¦ãã ãã",screenshotUploaded:"ã¹ã¯ãªã¼ã³ã·ã§ããã®ã¢ãããã¼ããå®äºãã¾ãã",uploadScreenshotFailed:"ã¹ã¯ãªã¼ã³ã·ã§ããã®ã¢ãããã¼ãã«å¤±æãã¾ãã: {{error}}",newStepAdded:"æ°ããã¹ãããã追å ãã¾ãã",stepLimitReached:"ãã®ã¬ã¤ãã®ã¹ãããæ°ä¸éï¼{{limit}}ï¼ã«éãã¾ãããProã«ã¢ããã°ã¬ã¼ãããã¨ä¸éãå¢ãã¾ãã",recordingTruncatedToStepLimit:"ãã®é²ç»ã«ã¯{{recorded}}ã¹ãããããã¾ãããç¾å¨ã®ãã©ã³ã§ã¯ã¬ã¤ãããã{{kept}}ã¹ãããã¾ã§ã®ãããæåã®{{kept}}ã¹ãããã®ã¿èªã¿è¾¼ã¾ãã¾ãããããé·ãã¬ã¤ãã使ããã«ã¯Proã«ã¢ããã°ã¬ã¼ããã¦ãã ããã",saveFailed:"ä¿åã«å¤±æãã¾ãã: {{error}}",publishBusySaving:"ã¾ã 夿´ãä¿åä¸ã§ããå°ãå¾
ã£ã¦ãããããä¸åº¦å
¬éãã試ããã ããã",saveTutorialFirst:"å
ã«ãã¥ã¼ããªã¢ã«ãä¿åãã¦ãã ãã",exportingTo:"{{format}}ã«ã¨ã¯ã¹ãã¼ãä¸...",exportFailed:"ã¨ã¯ã¹ãã¼ãã«å¤±æãã¾ãã: {{error}}",noTeamWorkspaceSelected:"ãã¼ã ã¯ã¼ã¯ã¹ãã¼ã¹ã鏿ããã¦ãã¾ãã",signInRequiredPublish:"ãã¥ã¼ããªã¢ã«ãå
¬éããã«ã¯ãµã¤ã³ã¤ã³ãã¦ãã ãã",publicPublishingRequiresOfficial:"ãããªãã¯å
¬éã«ã¯å
¬å¼ã¯ãªã¨ã¤ã¿ã¼ã®ã¹ãã¼ã¿ã¹ãå¿
è¦ã§ã",selectAppBeforePublish:"å
¬éããåã«ã¢ããªã鏿ãã¦ãã ãã",duplicateCannotPublish:"ãã®ãã¥ã¼ããªã¢ã«ã¯è¤è£½ã®ããå
¬éã§ãã¾ãããå人çãªåèç¨ã«ç·¨éãããã¨ã¯å¯è½ã§ãã",tutorialPublished:"ãã¥ã¼ããªã¢ã«ã®å
¬éãå®äºãã¾ããï¼",publishFailed:"å
¬éã«å¤±æãã¾ãã: {{error}}",selectedStepsDeleted:"鏿ããã¹ããããåé¤ãã¾ãã",stepDuplicated:"ã¹ããããè¤è£½ãã¾ãã",stepDeleted:"ã¹ããããåé¤ãã¾ãã",tipAdded:"ãã³ãã追å ãã¾ãã",alertAdded:"注æäºé
ã追å ãã¾ãã",headerAdded:"è¦åºãã追å ãã¾ãã",typingStepAdded:"ããã¹ãã¹ãããã追å ãã¾ãã",codeStepAdded:"ã³ã¼ãã¹ãããã追å ãã¾ãã",signInRequiredGeneric:"ã¢ãããã¼ãããã«ã¯ãµã¤ã³ã¤ã³ãã¦ãã ãã",imageStepInserted:"ç»åã¹ããããæ¿å
¥ãã¾ãã",uploadFailed:"ã¢ãããã¼ãã«å¤±æãã¾ãã: {{error}}",extensionOpening:"æ¡å¼µæ©è½ãéãã¦ãã¾ãâ¦ã¿ãã鏿ããããæ°ããã¿ããéãã¦è¨é²ãéå§ãã¦ãã ããã",saveBeforeRecording:"ãã®ã¬ã¤ãã«ã¹ããããè¨é²ããåã«ä¿åãã¦ãã ããã",stepsReordered:"ã¹ãããã®é åºã夿´ãã¾ãã",copiedToClipboard:"ã¯ãªãããã¼ãã«ã³ãã¼ãã¾ãã",copyToClipboardFailed:"ã¯ãªãããã¼ãã¸ã®ã³ãã¼ã«å¤±æãã¾ãã"}},workspaceSettings={sections:{general:"ä¸è¬",branding:"ãã©ã³ãã£ã³ã°",members:"ãã¼ã ã¡ã³ãã¼",apps:"ã¢ããª",billing:"ãã©ã³ã¨è«æ±",activity:"ã¢ã¯ãã£ããã£ãã°"},colors:{violet:"ãã¤ãªã¬ãã",blue:"ãã«ã¼",emerald:"ã¨ã¡ã©ã«ã",orange:"ãªã¬ã³ã¸",rose:"ãã¼ãº",teal:"ãã£ã¼ã«",amber:"ã¢ã³ãã¼"},roles:{workspace_admin:{label:"ãã¼ã 管çè
",description:"ãã«ã¢ã¯ã»ã¹ â ã¡ã³ãã¼ã®ç®¡çã¨å
¬éãå¯è½ã§ã"}
591,creator:{label:"使è
",description:"ã¬ã¤ãã使ãããã¼ã ã¯ã¼ã¯ã¹ãã¼ã¹ã«å
¬éã§ãã¾ã"},viewer:{label:"é²è¦§è
",description:"ãã¼ã ã¬ã¤ãã®é²è¦§ã®ã¿å¯è½ã§ãï¼ç¡æã·ã¼ãï¼"}},backButton:"æ»ã",settingsBreadcrumb:"è¨å®",myWorkspacesLabel:"ãã¤ã¯ã¼ã¯ã¹ãã¼ã¹",noWorkspacesYet:"ã¯ã¼ã¯ã¹ãã¼ã¹ãã¾ã ããã¾ããã",selectTeamPrompt:"ãµã¤ããã¼ãããã¼ã ã鏿ãã¦è¨å®ã表示ãã¦ãã ããã",cancel:"ãã£ã³ã»ã«",general:{description:"ã¯ã¼ã¯ã¹ãã¼ã¹è¨å®ã管çãã¾ã",workspaceNameTitle:"ã¯ã¼ã¯ã¹ãã¼ã¹å",tileColorTitle:"ã¯ã¼ã¯ã¹ãã¼ã¹ã¿ã¤ã«ã®è²",tileColorDescription:"ãµã¤ããã¼ã¨è¨å®ç»é¢ã«è¡¨ç¤ºãããã¯ã¼ã¯ã¹ãã¼ã¹ããã¸ã®è²ã鏿ãã¦ãã ããã",customColorLabel:"ã«ã¹ã¿ã : {{color}}",defaultColorLabel:"ããã©ã«ãï¼ååããèªåè¨å®ï¼",resetColorButton:"ããã©ã«ãã«æ»ã",deleteWorkspaceTitle:"ã¯ã¼ã¯ã¹ãã¼ã¹ãåé¤",deleteWorkspaceDescription:"ãã®ã¯ã¼ã¯ã¹ãã¼ã¹ããã¹ã¦ã®ã¡ã³ãã¼ã·ãããæå¾
ãå®å
¨ã«åé¤ãã¾ãããã¥ã¼ããªã¢ã«ã¯ãªã³ã¯ãè§£é¤ããã¾ããåé¤ã¯ããã¾ããã",deleteWorkspaceButton:"ã¯ã¼ã¯ã¹ãã¼ã¹ãåé¤",deletingButton:"åé¤ä¸â¦",deleteWorkspaceConfirmTitle:"æ¬å½ã«ããããã§ããï¼",deleteWorkspaceConfirmBefore:"ã¯ã¼ã¯ã¹ãã¼ã¹",deleteWorkspaceConfirmAfter:"ãå®å
¨ã«åé¤ãããã¹ã¦ã®ãã¼ã ã¡ã³ãã¼ãåé¤ãã¾ãããã®ã¯ã¼ã¯ã¹ãã¼ã¹ã«å
¬éããããã¥ã¼ããªã¢ã«ã¯ãªã³ã¯ãè§£é¤ããã¾ãããåé¤ã¯ããã¾ããããã®æä½ã¯åãæ¶ãã¾ããã"},members:{subtitle:"{{active}}人ãã¢ã¯ãã£ã · {{pending}}ä»¶ãä¿çä¸",activeBadge:"ã¢ã¯ãã£ã",pendingBadge:"ä¿çä¸",billableSeatLabel:"課é対象ã·ã¼ã",freeSeatLabel:"ç¡æã·ã¼ã",joinedOn:"{{date}}ã«åå ",expiresOn:"{{date}}ã«æéåã",unknownUser:"䏿ãªã¦ã¼ã¶ã¼",upgradePlanLink:"ãã©ã³ãã¢ããã°ã¬ã¼ã",toAssignPaidRoles:"ããã¨ãææãã¼ã«ãå²ãå½ã¦ããã¾ã",toInviteCreatorsAdmins:"ããã¨ã使è
ã管çè
ãæå¾
ã§ãã¾ã",seatIncreaseConfirmNotice:"使è
ã¾ãã¯ç®¡çè
ãæå¾
ããã¨ãææã·ã¼ãã®è¿½å ã«ã¤ãã¦ã®ç¢ºèªãæ±ãããã¾ãã",youSuffix:"ï¼èªåï¼",removeMemberTitle:"ã¡ã³ãã¼ãåé¤ãã¾ããï¼",removeMemberDescription:"ãã®æä½ãè¡ãã¨ããã®ã¦ã¼ã¶ã¼ã¯ç´ã¡ã«ãã¼ã ã¯ã¼ã¯ã¹ãã¼ã¹ã¸ã®ã¢ã¯ã»ã¹ã失ãã¾ãã",removeButton:"åé¤",leaveButton:"éåº",leaveWorkspaceConfirmTitle:"ã¯ã¼ã¯ã¹ãã¼ã¹ããéåºãã¾ããï¼",leaveWorkspaceConfirmDescription:"ãã®ã¯ã¼ã¯ã¹ãã¼ã¹ããã³ãã¹ã¦ã®ãã¼ã ã¬ã¤ãã¸ã®ã¢ã¯ã»ã¹ãç´ã¡ã«å¤±ãã¾ãã",leaveWorkspaceConfirmButton:"ã¯ã¼ã¯ã¹ãã¼ã¹ããéåº",revokeButton:"åãæ¶ã",noMembersYet:"ã¡ã³ãã¼ã¯ã¾ã ãã¾ããã",inviteMemberTitle:"ã¡ã³ãã¼ãæå¾
",inviteMemberDescription:"æå¾
ãªã³ã¯ã¯7æ¥éæå¹ã§ãã",emailAddressLabel:"ã¡ã¼ã«ã¢ãã¬ã¹",roleLabel:"ãã¼ã«",sendInviteButton:"æå¾
ãéä¿¡",inviteLinkLabel:"æå¾
ãªã³ã¯ â ã¡ã¼ã«ãå±ããªãå ´åã¯ãã¡ããå
±æãã¦ãã ãã",copyButton:"ã³ãã¼"},branding:{description:"ã¯ã¼ã¯ã¹ãã¼ã¹ã®ã¨ã¯ã¹ãã¼ãã¨ã¬ã¤ãåãè¾¼ã¿ã«èªç¤¾ãã©ã³ãã£ã³ã°ã追å ãã¾ãã",companyBrandingTitle:"ä¼ç¤¾ã®ãã©ã³ãã£ã³ã°",companyBrandingDescription:"Stepilyã®ãã©ã³ãã£ã³ã°ã¯å¸¸ã«è¡¨ç¤ºããã¾ãã対å¿ããã¨ã¯ã¹ãã¼ããåãè¾¼ã¿ã§ã¯ãä¼ç¤¾ã®ãã´ã¨ã«ã©ã¼ãããã«å ãã¦è¡¨ç¤ºããã¾ãã",proRequiredTitle:"Proãã©ã³ãå¿
è¦ã§ã",proRequiredDescription:"ä¼ç¤¾ã®ãã´ãã¢ãããã¼ãããã¯ã¼ã¯ã¹ãã¼ã¹ã®ãã©ã³ãã£ã³ã°ã«ã©ã¼ãé©ç¨ããã«ã¯ããã®ã¢ã«ã¦ã³ããProã«ã¢ããã°ã¬ã¼ããã¦ãã ããã",companyLogoLabel:"ä¼ç¤¾ã®ãã´",workspaceLogoAlt:"ã¯ã¼ã¯ã¹ãã¼ã¹ã®ãã´",noLogoText:"ãã´ãªã",logoUploadHint:"PNGãJPGãWebPå½¢å¼ã®ãã´ã1MBã¾ã§ã¢ãããã¼ãã§ãã¾ããã¨ã¯ã¹ãã¼ãæã«Stepilyã®ãã©ã³ãã£ã³ã°ã¨ä¸¦ãã§è¡¨ç¤ºããã¾ãã",replaceLogoButton:"ãã´ã夿´",uploadLogoButton:"ãã´ãã¢ãããã¼ã",removeLogoButton:"ãã´ãåé¤",brandColorLabel:"ãã©ã³ãã«ã©ã¼",brandColorHint:"ä¸ã®ãã°ã«ãæå¹ãª
591å ´åãã¯ãªãã¯ãã¼ã«ã¼ã¨ã¹ã©ã¤ãã·ã§ã¼ã®ã¢ã¯ã·ã§ã³ãã¿ã³ã«ä½¿ç¨ããã¾ãã",useBrandColorClickMarkersTitle:"ã¯ãªãã¯ãã¼ã«ã¼ã«ãã©ã³ãã«ã©ã¼ã使ç¨",useBrandColorClickMarkersDescription:"ã¨ã¯ã¹ãã¼ãããã³ãã¥ã¼ã¢ç»é¢ã®ã¬ã¤ãã¯ãªãã¯ãã¼ã«ã¼ãã¯ã¼ã¯ã¹ãã¼ã¹ã®ãã©ã³ãã«ã©ã¼ã§ä¸æ¸ããã¾ãã",useBrandColorButtonsTitle:"ã¬ã¤ããã¿ã³ã«ãã©ã³ãã«ã©ã¼ã使ç¨",useBrandColorButtonsDescription:"ãéå§ãããããæ¬¡ã¸ããªã©ã®ã¹ã©ã¤ãã·ã§ã¼åãè¾¼ã¿ãã¿ã³ã«ã¯ã¼ã¯ã¹ãã¼ã¹ã®ãã©ã³ãã«ã©ã¼ãé©ç¨ãã¾ãã",viewProPricingButton:"Proãã©ã³ã®æéãè¦ã"},billing:{planNames:{pro:"Pro",enterprise:"ã¨ã³ã¿ã¼ãã©ã¤ãº",admin:"管çè
",free:"ç¡æ"},description:"ãã©ã³ã¨ãã¼ã ã·ã¼ãã管çãã¾ã",freePlanTitle:"ç¡æãã©ã³",freePlanDescription:"é²è¦§è
ã¯ç¡å¶éã«æå¾
ã§ãã¾ãã使è
ã管çè
ã追å ããã«ã¯Proã«ã¢ããã°ã¬ã¼ããã¦ãã ããã",currentPlanBadge:"ç¾å¨ã®ãã©ã³",billableSeatsUsed_one:"ä»¶ã®èª²é対象ã·ã¼ãã使ç¨ä¸ · é²è¦§è
ã¯å¸¸ã«ç¡æã§ã",billableSeatsUsed_other:"ä»¶ã®èª²é対象ã·ã¼ãã使ç¨ä¸ · é²è¦§è
ã¯å¸¸ã«ç¡æã§ã",proCardTitle:"Pro",proCardDescription:"使è
ã¨ç®¡çè
åãã®ææã·ã¼ãã§ãã1ã2ã·ã¼ãã¯æé¡${{entryPrice}}ã3ã·ã¼ã以ä¸ã¯æé¡${{volumePrice}}ã«ãªãã¾ãã",enterpriseCardTitle:"ã¨ã³ã¿ã¼ãã©ã¤ãº",enterpriseCardDescription:"SSOãã³ã³ãã©ã¤ã¢ã³ã¹ãä¸å
çãªã¦ã¼ã¶ã¼ç®¡çãå¿
è¦ã§ããï¼ãæä¼ããã¾ãã",contactSalesButton:"å¶æ¥ã¸åãåããã",proPlanTitle:"Proãã©ã³",renewsOn:"{{date}}ã«æ´æ°",activeSubscription:"æå¹ãªãµãã¹ã¯ãªãã·ã§ã³",paidSeatsIncluded_one:"ææã·ã¼ããå«ã¾ãã¦ãã¾ã",paidSeatsIncluded_other:"ææã·ã¼ããå«ã¾ãã¦ãã¾ã",seatsInUse:"{{count}}件使ç¨ä¸",seatsRemaining:" · æ®ã{{count}}ä»¶",manageSeatsTitle:"ã·ã¼ãã管ç",manageSeatsDescription:"ææã·ã¼ãã3å¸ä»¥ä¸ã«ãªãã¨ãããªã¥ã¼ã ä¾¡æ ¼ãèªåçã«é©ç¨ããã¾ããããã§ææã·ã¼ãæ°ãæ´æ°ã§ãã¾ãã",addSubtractSeatsLabel:"ææã·ã¼ãã墿¸",noSeatChange:"ã·ã¼ãã®å¤æ´ã¯ããã¾ãã",seatChangeSummary_one:"{{signedCount}}ã·ã¼ã â åè¨{{total}}ã·ã¼ã",seatChangeSummary_other:"{{signedCount}}ã·ã¼ã â åè¨{{total}}ã·ã¼ã",seatReductionBlocked_one:"ææã·ã¼ãã{{decreaseBy}}æ¸ããåã«ããã¼ã ã¡ã³ãã¼ã§{{count}}人åã®ã¢ã¯ãã£ããªä½æè
/管çè
ãåé¤ãã¦ãã ããã",seatReductionBlocked_other:"ææã·ã¼ãã{{decreaseBy}}æ¸ããåã«ããã¼ã ã¡ã³ãã¼ã§{{count}}人åã®ã¢ã¯ãã£ããªä½æè
/管çè
ãåé¤ãã¦ãã ããã",seatChangeHint_one:"ã·ã¼ãã追å ããã«ã¯æ£ã®æ°ãåé¤ããã«ã¯è² ã®æ°ã使ç¨ãã¦ãã ããããã®äººæ°åã®ä½æè
ã¾ãã¯ç®¡çè
ã·ã¼ãã使ç¨ä¸ã®éã¯ãææã·ã¼ãæ°ã{{count}}æªæºã«ãããã¨ã¯ã§ãã¾ããã",seatChangeHint_other:"ã·ã¼ãã追å ããã«ã¯æ£ã®æ°ãåé¤ããã«ã¯è² ã®æ°ã使ç¨ãã¦ãã ããããã®äººæ°åã®ä½æè
ã¾ãã¯ç®¡çè
ã·ã¼ãã使ç¨ä¸ã®éã¯ãææã·ã¼ãæ°ã{{count}}æªæºã«ãããã¨ã¯ã§ãã¾ããã",reviewSeatChangeButton:"ã·ã¼ã夿´ã確èª",enterprisePlanTitle:"Enterpriseãã©ã³",managedBilling:"管çãããè«æ±",enterpriseBillingManagedText:"Enterpriseã®è«æ±ã¯Stepilyãç´æ¥ç®¡çãã¦ãã¾ããã·ã¼ãã®å¤æ´ãå¥ç´ã«é¢ããã質åã¯ãµãã¼ãã¾ã§ãåãåãããã ããã",contactSupportButton:"ãµãã¼ãã«åãåããã",unsupportedBillingTitle:"ãµãã¼ã対象å¤ã®è«æ±ç¶æ
ãæ¤åºããã¾ãã",unsupportedBillingDescription:"ãã®ã¯ã¼ã¯ã¹ãã¼ã¹ã¯ããã¼ã«ã«ã§ãµãã¼ãããã¦ããç¡æã»Proã»Enterpriseã®ãããã®è«æ±å¥ç´ã«ã該å½ãã¾ãããç§»è¡ãæ¤è¨¼ããåã«Proãã©ã³ã®è«æ±ã«ç§»è¡ãã¦ãã ããã",moveToProButton:"Proã«ç§»è¡",debug:{title:"ãã¼ã«ã«è«æ±ãããã°",descriptionBefore:"ãã§ã¼ãº1ã»ãã§ã¼ãº2ã®æ¤è¨¼ç¨ã«",descriptionAfter:"ããåå¾ãããã¼ã«ã«å°ç¨ã®è«æ±ã¡ã¿ãã¼ã¿ã§ãã",appRole:"ã¢ããªãã¼ã«",billingPlanKey:"è«æ±ãã©ã³ãã¼",subscribed:"è³¼èªä¸",subscriptionStatus:"ãµãã¹ã¯ãªãã·ã§ã³ç¶æ
",paidSeatQuantity:"ææã·ã¼ãæ°",priceLookupKey:"æéã«ãã¯ã¢ãããã¼",billingSource:"è«æ±ã½ã¼ã¹",subscriptionEnd:"ãµãã¹ã¯ãªãã·ã§ã³çµäºæ¥",yes:"ã¯ã",no:"ããã"}},activity:{description:"æè¿ã®ãã¼ã ã¢ã¯ãã£ããã£",comingSoon:"ã¢ã¯ãã£ããã£ãã°ã¯è¿æ¥å
¬éäºå®ã§ãã"},apps:{description:"ãã®ãã¼ã ç¨ã«ä½æããã«ã¹ã¿ã ã¢ããªã®ååã夿´ã¾ãã¯åé¤ã§ãã¾ãã",noAppsYet:"ã«ã¹ã¿ã ã¢ããªã¯ã¾ã ããã¾ããããã¥ã¼ããªã¢ã«ãã¯ã¼ã¯ããã¼ã«ã¢ããªãè¨å®ããéã«ãã¢ããªé¸æç»é¢ãã使ã§ãã¾ãã",usedIn_one:"{{count}}ä»¶ã®ã¬ã¤ãã»ã¯ã¼ã¯ããã¼ã§ä½¿ç¨ä¸",usedIn_other:"{{count}}ä»¶ã®ã¬ã¤ãã»ã¯ã¼ã¯ããã¼ã§ä½¿ç¨ä¸",deleteTitle:"ã«ã¹ã¿ã ã¢ããªãåé¤ãã¾ããï¼",deleteDescription:"ã{{name}}ãããã®ãã¼ã ã®ã«ã¹ã¿ã ã¢ããªããå®å
¨ã«åé¤ãã¾ãã",deleteButton:"åé¤",renameLabel:"ã¢ããªåã夿´",renameDisabledInUse:"ååã夿´ã§ãã¾ãã â ãã®ã¢ããªã¯ã¾ã ã¬ã¤ããã¯ã¼ã¯ããã¼ã§ä½¿ç¨ããã¦ãã¾ã"},seatPreview:{confirmSeatIncreaseTitle:"ã·ã¼ãå¢å ã®ç¢ºèª",confirmSeatChangeTitle:"ã·ã¼ã夿´ã®ç¢ºèª",inviteNeedsSeatDescription:"ãã®æå¾
ãéä
591¿¡ããã«ã¯ãææã·ã¼ãããã1ã¤å¿
è¦ã§ãã",reviewBillingImpactDescription:"ææã·ã¼ããæ´æ°ããåã«ãè«æ±ã¸ã®å½±é¿ãã確èªãã ããã",billingChangeRequiredTitle:"è«æ±ã®å¤æ´ãå¿
è¦ã§ã",confirmBillingUpdateTitle:"è«æ±ã®æ´æ°ã確èª",changeSubscriptionInvite:"Proãµãã¹ã¯ãªãã·ã§ã³ã{{current}}ã·ã¼ããã{{target}}ã·ã¼ãã«å¤æ´ããæ¬¡ã®å®å
ã«æå¾
ãéä¿¡ãã¾ã:",changeSubscription:"Proãµãã¹ã¯ãªãã·ã§ã³ã{{current}}ã·ã¼ããã{{target}}ã·ã¼ãã«å¤æ´ãã¾ãã",currentRecurringTotalLabel:"ç¾å¨ã®å®æè«æ±åè¨",newRecurringTotalLabel:"夿´å¾ã®å®æè«æ±åè¨",dueTodayLabel:"æ¬æ¥ã®ãæ¯æãï¼æ¥å²ãï¼",creditedTodayLabel:"æ¬æ¥ã®è¿éã¯ã¬ã¸ããï¼æ¥å²ãï¼",noChargeTodayLabel:"æ¬æ¥ã®ãæ¯æã",perSeatRateLabel:"夿´å¾ã®1ã·ã¼ããããã®æé",bulkPricingThresholdCrossedTitle:"ããªã¥ã¼ã æéã®ãããå¤ãè¶
ãã¾ãã",bulkPricingThresholdCrossedDescription:"ãã®å¤æ´ã«ããææã·ã¼ãã3å¸ã«éãããããProãã©ã³ã¯ããä½ãããªã¥ã¼ã æéã«åãæ¿ããã¾ãã",volumePricingDroppedTitle:"ããªã¥ã¼ã æéã¯é©ç¨ãããªããªãã¾ã",volumePricingDroppedDescription:"ãã®å¤æ´ã«ããææã·ã¼ãã3叿ªæºã«ãªããããProãã©ã³ã¯1ã2ã·ã¼ãã®æéã«æ»ãã¾ãã",confirmAndSendInviteButton:"確èªãã¦æå¾
ãéä¿¡",confirmSeatChangeButton:"ã·ã¼ã夿´ã確èª"},toasts:{enterEmailAddress:"ã¡ã¼ã«ã¢ãã¬ã¹ãå
¥åãã¦ãã ãã",cannotInviteSelf:"èªåèªèº«ãèªåã®ã¯ã¼ã¯ã¹ãã¼ã¹ã«æå¾
ãããã¨ã¯ã§ãã¾ããã",ownerMustIncreaseSeats:"使è
ã管çè
ãæå¾
ããåã«ãã¯ã¼ã¯ã¹ãã¼ã¹ã®ãªã¼ãã¼ãè«æ±ã§ææã·ã¼ããå¢ããå¿
è¦ãããã¾ãã",upgradeBeforeInviting:"使è
ã管çè
ãããã«æå¾
ããåã«Proã«ã¢ããã°ã¬ã¼ããã¦ãã ããã",signInRequiredPreviewSeat:"ã·ã¼ã夿´ããã¬ãã¥ã¼ããã«ã¯ãµã¤ã³ã¤ã³ãå¿
è¦ã§ã",previewSeatChangeFailed:"ã·ã¼ã夿´ã®ãã¬ãã¥ã¼ã«å¤±æãã¾ãã",signInRequiredApplySeat:"ã·ã¼ã夿´ãé©ç¨ããã«ã¯ãµã¤ã³ã¤ã³ãå¿
è¦ã§ã",applySeatChangeFailed:"ã·ã¼ã夿´ã®é©ç¨ã«å¤±æãã¾ãã",paidSeatsUpdatedBilling:"è«æ±ã®ææã·ã¼ããæ´æ°ãã¾ãã",paidSeatsUpdated:"ææã·ã¼ããæ´æ°ãã¾ãã",brandColorUpdated:"ãã©ã³ãã«ã©ã¼ãæ´æ°ãã¾ãã",brandingPreferencesUpdated:"ãã©ã³ãã£ã³ã°è¨å®ãæ´æ°ãã¾ãã",upgradeToUploadBranding:"ä¼ç¤¾ã®ãã©ã³ãã£ã³ã°ãã¢ãããã¼ãããã«ã¯Proã«ã¢ããã°ã¬ã¼ããã¦ãã ããã",selectValidImageType:"PNGãJPGãã¾ãã¯WebPå½¢å¼ã®ç»åã鏿ãã¦ãã ãã",logoSizeTooLarge:"ãã´ã®ãµã¤ãºã¯1MBæªæºã«ãã¦ãã ãã",companyLogoUpdated:"ä¼ç¤¾ã®ãã´ãæ´æ°ãã¾ãã",uploadLogoFailed:"ä¼ç¤¾ã®ãã´ã®ã¢ãããã¼ãã«å¤±æãã¾ãã",companyLogoRemoved:"ä¼ç¤¾ã®ãã´ãåé¤ãã¾ãã",deleteWorkspaceFailed:"ã¯ã¼ã¯ã¹ãã¼ã¹ã®åé¤ã«å¤±æãã¾ãã",seatLimitUpgradeToPro:"使è
ã管çè
ã追å ããã«ã¯Proã«ã¢ããã°ã¬ã¼ããã¦ãã ããã",seatLimitReached_one:"ã·ã¼ãã®ä¸éã«éãã¾ããã{{plan}}ã«ã¯ç¾å¨{{count}}ä»¶ã®ææã·ã¼ããå«ã¾ãã¦ãã¾ãã追å ããã«ã¯è«æ±ã§ã·ã¼ããå¢ããã¦ãã ããã",seatLimitReached_other:"ã·ã¼ãã®ä¸éã«éãã¾ããã{{plan}}ã«ã¯ç¾å¨{{count}}ä»¶ã®ææã·ã¼ããå«ã¾ãã¦ãã¾ãã追å ããã«ã¯è«æ±ã§ã·ã¼ããå¢ããã¦ãã ããã",assignAnotherAdminFirst:"éåºããåã«ãå¥ã®ç®¡çè
ãå²ãå½ã¦ã¦ãã ããã",ownerCannotLeave:"ã¯ã¼ã¯ã¹ãã¼ã¹ã®ãªã¼ãã¼ã¯ãã®ã¯ã¼ã¯ã¹ãã¼ã¹ãéåºã§ãã¾ãããã¯ã¼ã¯ã¹ãã¼ã¹ãåé¤ããããè«æ±ã®ç§»ç®¡ã«ã¤ãã¦ãµãã¼ãã¾ã§ãåãåãããã ããã",inviteLinkCopied:"æå¾
ãªã³ã¯ãã³ãã¼ãã¾ããï¼",appRenamed:"ã¢ããªåã夿´ãã¾ãã",appRenameFailed:"ã¢ããªåã®å¤æ´ã«å¤±æãã¾ãã",appRenameConflict:"ã{{name}}ãã¯ãã§ã«åå¨ãã¾ã",appDeleted:"ã¢ããªãåé¤ãã¾ãã",appDeleteFailed:"ã¢ããªã®åé¤ã«å¤±æãã¾ãã"}},dashboard={pageTitles:{teamGuidesPublic:"ãã¼ã ã¬ã¤ã â å
¬é",teamGuidesPrivate:"ãã¼ã ã¬ã¤ã â éå
¬é",teamGuidesAnyone:"ãã¼ã ã¬ã¤ã â ãªã³ã¯ãç¥ã£ã¦ããå
¨å¡"},fallbackYou:"ããªã",fallbackTeamMember:"ãã¼ã ã¡ã³ãã¼",fallbackTeamName:"ãã¼ã ",pastMemberLabel:"éä¼ããã¡ã³ãã¼",removeFromTeam:"ãã¼ã ããåé¤",moveToTeam:"ãã¼ã ã«ç§»å",moveToWorkspace:"{{name}}ã«ç§»å",workbooksHeading:"ã¯ã¼ã¯ããã¯",teamWorkbooksHeading:"ãã¼ã ã®ã¯ã¼ã¯ããã¯",individualTutorialsHeading:"åå¥ã®ãã¥ã¼ããªã¢ã«",teamGuidesHeading:"ãã¼ã ã¬ã¤ã",proUpsellFeature:"ç¡å¶éã®éå
¬éã»ãªã³ã¯éå®ã»ãã¼ã ãã¥ã¼ããªã¢ã«",selection:{createWorkbook:"ã¯ã¼ã¯ããã¯ã使",addToFolder:"ãã©ã«ãã«è¿½å ",addToFolderCount:"ãã©ã«ãã«è¿½å ({{count}})",publishWorkbookCount:"ã¯ã¼ã¯ããã¯ãå
¬é ({{count}})",cancel:"ãã£ã³ã»ã«"},empty:{noSavedTutorialsTitle:"ä¿åæ¸ã¿ã®ãã¥ã¼ããªã¢ã«ã¯ã¾ã ããã¾ãã",noSavedTutorialsDescription:"ãã¥ã¼ããªã¢ã«ãä¿åããã¨ããã«è¡¨ç¤ºããã¾ã",noPublishedTutorialsTitle:"å
¬éæ¸ã¿ã®ãã¥ã¼ããªã¢ã«ã¯ããã¾ãã",noPublishedTutorialsDescription:"ãã¥ã¼ããªã¢ã«ãå
¬éãã¦ä»ã®äººã¨å
±æãã¾ããã",noTutorialsSharedByLinkTitle:"ãªã³ã¯ã§å
±æããããã¥ã¼ããªã¢ã«ã¯ããã¾ãã",noTutorialsSharedByLinkDescription:"å
±æãã¤ã¢ãã°ã§ããªã³ã¯ãç¥ã£ã¦ããå
¨å¡ãé²è¦§å¯è½ããæå¹ã«ããã¨ãããã«ãã¥ã¼ããªã¢ã«ã表示ããã¾ãã",noExtensionUploadsTitle:"æ¡å¼µæ©è½ã®ã¢ãããã¼ãã¯ããã¾ãã",noExtensionUploadsDescription:"ãã©ã¦ã¶æ¡å¼µæ©è½ããã®ã¢ãããã¼ãã¯ããã«è¡¨ç¤ºããã¾ã",noDesktopUploadsTitle:"ãã¹ã¯ãããã®ã¢ãããã¼ãã¯ããã¾ãã",noDesktopUploadsDescription:"ãã¹ã¯ãããã¢ããªããã®ã¢ãããã¼ãã¯ããã«è¡¨ç¤ºããã¾ã",nothingSharedTitle:"å
±æããããã®ã¯ããã¾ãã",nothingSharedDescription:"誰ãããã¥ã¼ããªã¢ã«ããã©ã«ããããªãã¨å
±æããã¨ãããã«è¡¨ç¤ºããã¾ã",noTeamWorkspaceTitle:"ãã¼ã ã¯ã¼ã¯ã¹ãã¼ã¹ãããã¾ãã",noTeamWorkspaceCollabDescription:"ãã¼ã ã¯ã¼ã¯ã¹ãã¼ã¹ã使ãã¦ä»ã®ã¡ã³ãã¼ã¨ååãã¾ããã",noTeamWorkspaceTrashDescription:"ãã¼ã ã®ã´ãç®±ãå©ç¨ããã«ã¯ãã¼ã ã¯ã¼ã¯ã¹ãã¼ã¹ã使ãã¦ãã ããã",noTeamGuidesTitle:"ãã¼ã ã¬ã¤ãã¯ããã¾ãã",noTeamGuidesDescription:"ã¬ã¤ããã¯ã¼ã¯ããã¯ã® ⯠ã¡ãã¥ã¼ãããã¼ã ã¯ã¼ã¯ã¹ãã¼ã¹ã«ç§»åã§ãã¾ã",noPublicTeamGuidesTitle:"å
¬éããããã¼ã ã¬ã¤ãã¯ããã¾ãã",noPublicTeamGuidesDescription:"å
¬éã¿ããããã¼ã ã«ç§»åãããã¬ã¤ããããã«è¡¨ç¤ºããã¾ã",noPrivateTeamGuidesTitle:"éå
¬éã®ãã¼ã ã¬ã¤ãã¯ããã¾ãã",noPrivateTeamGuidesDescription:"éå
¬éã¿ããããã¼ã ã«ç§»åãããã¬ã¤ããããã«è¡¨ç¤ºããã¾ã",noTeamGuidesSharedByLinkTitle:"ãªã³ã¯ã§å
±æããããã¼ã ã¬ã¤ãã¯ããã¾ãã",noTeamGuidesSharedByLinkDescription:"ãªã³ã¯å
±æãæå¹ãªãã¼ã ã¬ã¤ããããã«è¡¨ç¤ºããã¾ã",noTutorialsInFolderTitle:"ãã®ãã©ã«ãã«ãã¥ã¼ããªã¢ã«ã¯ããã¾ãã",noTutorialsInFolderDe
591scription:"å
¬éã¾ãã¯éå
¬éã¿ãã§ããã©ã«ãã«è¿½å ãã使ã£ã¦ãã¥ã¼ããªã¢ã«ãããã«è¿½å ãã¦ãã ãã",noTutorialsWithTagTitle:"ã{{tag}}ãã¿ã°ã®ä»ãããã¥ã¼ããªã¢ã«ã¯ããã¾ãã",noTutorialsWithTagDescription:"ã¨ãã£ã¿ã§ãã¥ã¼ããªã¢ã«ã«ã¿ã°ãä»ããã¨ããã«è¡¨ç¤ºããã¾ã",noPublishedGuidesTitle:"å
¬éãããã¬ã¤ãã¯ããã¾ãã",noPublishedGuidesDescription:"{{name}}ããã¯ã¾ã ã¬ã¤ããå
¬éãã¦ãã¾ããã",trashEmptyTitle:"ã´ãç®±ã¯ç©ºã§ã",trashEmptyDescription:"ã´ãç®±ã«ç§»åãããã¥ã¼ããªã¢ã«ã¯ããã«è¡¨ç¤ºããã¾ããã´ãç®±ã«ããéã¯ä¸è¬ã«ã¯å
¬éããã¾ããã",teamTrashEmptyTitle:"ãã¼ã ã®ã´ãç®±ã¯ç©ºã§ã",teamTrashEmptyDescription:"ã´ãç®±ã«ç§»åãããã¼ã ãã¥ã¼ããªã¢ã«ã¯ããã«è¡¨ç¤ºããã¾ãããã¼ã ãã¥ã¼ããªã¢ã«ãã´ãç®±ã«ç§»åã§ããã®ã¯ã¯ã¼ã¯ã¹ãã¼ã¹ç®¡çè
ã®ã¿ã§ãã",accessRestrictedTitle:"ã¢ã¯ã»ã¹ãå¶éããã¦ãã¾ã",accessRestrictedDescription:"ãã¼ã ã®ã´ãç®±ã表示ã»ç®¡çã§ããã®ã¯ã¯ã¼ã¯ã¹ãã¼ã¹ç®¡çè
ã®ã¿ã§ãã"},privateTutorials:{badgeTitle:"éå
¬éãã¥ã¼ããªã¢ã«",descriptionPaid:"ã¨ãã£ã¿ã§ãã¥ã¼ããªã¢ã«ããéå
¬éãã¨ãã¦å
¬éããã¨ãããã«è¡¨ç¤ºããã¾ãã",descriptionFree:"ãã¥ã¼ããªã¢ã«ãéå
¬éã®ã¾ã¾ä¿ã¡ãããªãã®æ¡ä»¶ã§å
±æã§ãã¾ãã",featureIncluded_one:"ç¡æã§{{count}}ä»¶ã®éå
¬éã»ãªã³ã¯éå®ã»ãã¼ã ãã¥ã¼ããªã¢ã«ãå«ã¾ãã¾ã",featureIncluded_other:"ç¡æã§{{count}}ä»¶ã®éå
¬éã»ãªã³ã¯éå®ã»ãã¼ã ãã¥ã¼ããªã¢ã«ãå«ã¾ãã¾ã",featureUnlimited:"Proãªãç¡å¶é",featureSharing:"éå
¬éå
±æã¨PDFã¨ã¯ã¹ãã¼ã",unlockPro:"Proãå©ç¨ãã",upsellUsed_one:"ç¡ææ ã®{{count}}ä»¶ã®ãã¥ã¼ããªã¢ã«ã使ãåãã¾ãããããã«å©ç¨ããã«ã¯Proã«ã¢ããã°ã¬ã¼ããã¦ãã ããã",upsellUsed_other:"ç¡ææ ã®{{count}}ä»¶ã®ãã¥ã¼ããªã¢ã«ã使ãåãã¾ãããããã«å©ç¨ããã«ã¯Proã«ã¢ããã°ã¬ã¼ããã¦ãã ããã",upgrade:"ã¢ããã°ã¬ã¼ã"},workbookDialog:{title:"ã¯ã¼ã¯ããã¯ã使",description_one:"{{count}}ä»¶ã®ãã¥ã¼ããªã¢ã«ãã¯ã¼ã¯ããã¯ã«ã¾ã¨ãã¾ã",description_other:"{{count}}ä»¶ã®ãã¥ã¼ããªã¢ã«ãã¯ã¼ã¯ããã¯ã«ã¾ã¨ãã¾ã",titleLabel:"ã¯ã¼ã¯ããã¯ã®ã¿ã¤ãã« *",titlePlaceholder:"ä¾ï¼Figmaå
¥é",descriptionLabel:"説æï¼ä»»æï¼",descriptionPlaceholder:"ãã®ã¯ã¼ã¯ããã¯ã®ç°¡åãªèª¬æ",cancel:"ãã£ã³ã»ã«",publish:"ã¯ã¼ã¯ããã¯ãå
¬é"},moveGuideDialog:{title:"ã¬ã¤ããç§»å",privateWarning:"ããã¯éå
¬éã®ã¬ã¤ãã§ãããã¼ã ã«ç§»åããã¨ã¯ã¼ã¯ã¹ãã¼ã¹ã®æææ¨©ãç§»ããéå
¬éã¿ãããåé¤ããã¾ãã",cancel:"ãã£ã³ã»ã«",move:"ç§»å"},transferDialog:{title:"{{name}}ã«æææ¨©ãç§»ãã¾ããï¼",description:"ã¯éå
¬éã§ãããã¼ã ã«ç§»åããã¨ã¯ã¼ã¯ã¹ãã¼ã¹ã®æææ¨©ã{{name}}ã«ç§»ããéå
¬éã¿ãããåé¤ããã¾ãã使è
ã¨ãã¦å¼ãç¶ãç·¨éããæ¨©éã¯ä¿æããã¾ãã",fallbackTutorial:"ãã®ãã¥ã¼ããªã¢ã«",fallbackTeam:"ãã¼ã ",cancel:"ãã£ã³ã»ã«",confirm:"æææ¨©ãç§»ã"},deleteDialog:{cancel:"ãã£ã³ã»ã«",deleting:"åé¤ä¸â¦",delete:"åé¤",deleteTutorialTitle:"ãã¥ã¼ããªã¢ã«ãåé¤ãã¾ããï¼",deleteTutorialDescription:"ãã®ãã¥ã¼ããªã¢ã«ãåé¤ãã¦ãããããã§ããï¼ãã®æä½ã¯åãæ¶ãã¾ããã",deletePermanentlyTitle:"ãã¥ã¼ããªã¢ã«ãå®å
¨ã«åé¤ãã¾ããï¼",deletePermanentlyDescription:"ã¯å®å
¨ã«åé¤ããã¾ãããã®æä½ã¯åãæ¶ãã¾ããã",deleteDraftTitle:"䏿¸ããå®å
¨ã«åé¤ãã¾ããï¼"},uploadCard:{moreOptions:"ãã®ä»ã®ãªãã·ã§ã³",deletePermanently:"å®å
¨ã«åé¤",statusCompleted:"å®äº",statusPending:"ä¿çä¸",steps_one:"{{count}}ã¹ããã",steps_other:"{{count}}ã¹ããã",session:"ã»ãã·ã§ã³ï¼{{id}}..."},trash:{restore:"復å
",restoreToTeamGuides:"ãã¼ã ã¬ã¤ãã«å¾©å
",personalRestoreNote:"復å
ãããã¥ã¼ããªã¢ã«ã¯å
ã®ã¿ãã«æ»ãã¾ãããèªåçã«ã¯åå
¬éããã¾ããã",teamRestoreNote:"復å
ãããã¥ã¼ããªã¢ã«ã¯ãã¼ã ã¬ã¤ãã«æ»ãã¾ããå®å
¨ã«åé¤ãããã¥ã¼ããªã¢ã«ã¯å¾©å
ã§ã
591ã¾ããã"},following:{browseCommunity:"ã³ãã¥ããã£ã®ãã¥ã¼ããªã¢ã«ãè¦ã"},toasts:{failedMoveToTrash:"ã´ãç®±ã¸ã®ç§»åã«å¤±æãã¾ãã",movedToTrash:"ã´ãç®±ã«ç§»åãã¾ãã",signInToDuplicate:"ãã¥ã¼ããªã¢ã«ãè¤è£½ããã«ã¯ãµã¤ã³ã¤ã³ãã¦ãã ãã",failedDuplicate:"ãã¥ã¼ããªã¢ã«ã®è¤è£½ã«å¤±æãã¾ãã",tutorialDuplicated:"ãã¥ã¼ããªã¢ã«ãè¤è£½ãã¾ããï¼",edit:"ç·¨é",failedRestore:"ãã¥ã¼ããªã¢ã«ã®å¾©å
ã«å¤±æãã¾ãã",tutorialRestored:"ãã¥ã¼ããªã¢ã«ã復å
ãã¾ãã",failedPermanentDelete:"ãã¥ã¼ããªã¢ã«ã®å®å
¨åé¤ã«å¤±æãã¾ãã",tutorialPermanentlyDeleted:"ãã¥ã¼ããªã¢ã«ãå®å
¨ã«åé¤ãã¾ãã",failedUnsave:"ä¿åã®è§£é¤ã«å¤±æãã¾ããï¼{{message}}",removedFromSaved:"ä¿åãè§£é¤ãã¾ãã",failedSave:"ä¿åã«å¤±æãã¾ããï¼{{message}}",savedForLater:"å¾ã§è¦ãããã«ä¿åãã¾ãã",failedOpenUpload:"ã¢ãããã¼ããéãã¾ããã§ããï¼{{message}}",failedCreateTag:"ã¿ã°ã®ä½æã«å¤±æãã¾ãã",tagCreated:"ã¿ã°ã使ãã¾ãã",failedDeleteTag:"ã¿ã°ã®åé¤ã«å¤±æãã¾ãã",tagDeleted:"ã¿ã°ãåé¤ãã¾ãã",selectAtLeastOneTutorial:"ãã¥ã¼ããªã¢ã«ã1件以ä¸é¸æãã¦ãã ãã",removedFromFolder:"ãã©ã«ãããåé¤ãã¾ãã",selectTutorialAndTitle:"ãã¥ã¼ããªã¢ã«ã1件以ä¸é¸æããã¿ã¤ãã«ãå
¥åãã¦ãã ãã",workbookCreated:"ã¯ã¼ã¯ããã¯ã使ãã¾ããï¼",failedCreateWorkbook:"ã¯ã¼ã¯ããã¯ã®ä½æã«å¤±æãã¾ãã",tutorialPublished:"ãã¥ã¼ããªã¢ã«ãå
¬éãã¾ãã",failedPublish:"ãã¥ã¼ããªã¢ã«ã®å
¬éã«å¤±æãã¾ããï¼{{message}}",tutorialDeleted:"ãã¥ã¼ããªã¢ã«ãåé¤ãã¾ãã",failedDelete:"ãã¥ã¼ããªã¢ã«ã®åé¤ã«å¤±æãã¾ããï¼{{message}}",draftDeleted:"䏿¸ããå®å
¨ã«åé¤ãã¾ãã",failedDeleteDraft:"䏿¸ãã®åé¤ã«å¤±æãã¾ããï¼{{message}}"},untitledGuide:"ç¡é¡ã®ã¬ã¤ã"},allTutorials={heading:"ãã¹ã¦ã®ãã¥ã¼ããªã¢ã«",searchResultsHeading:"ã{{query}}ãã®æ¤ç´¢çµæ",resultsFound_one:"{{count}}ä»¶ã®çµæãè¦ã¤ããã¾ãã",resultsFound_other:"{{count}}ä»¶ã®çµæãè¦ã¤ããã¾ãã",emptyStateDefault:"ãã¥ã¼ããªã¢ã«ã¯ã¾ã ããã¾ãã",emptyStateSearch:"ã{{query}}ãã«ä¸è´ãããã¥ã¼ããªã¢ã«ã¾ãã¯ã¯ã¼ã¯ããã¯ãè¦ã¤ããã¾ããã§ãã",creatorsHeading:"ã¯ãªã¨ã¤ã¿ã¼ï¼{{count}}ï¼",anonymous:"å¿å",workbooksHeading:"ã¯ã¼ã¯ããã¯ï¼{{count}}ï¼",loadMoreWorkbooks:"ã¯ã¼ã¯ããã¯ããã£ã¨èªã¿è¾¼ã",individualTutorialsHeading:"åå¥ãã¥ã¼ããªã¢ã«ï¼{{count}}ï¼",generalApp:"ä¸è¬",stepsCount_one:"{{count}}ã¹ããã",stepsCount_other:"{{count}}ã¹ããã",loadMoreTutorials:"ãã¥ã¼ããªã¢ã«ããã£ã¨èªã¿è¾¼ã"},freeGuideLibrary={badge:"éå®ã»5æ ä¸4æ ",headline:"B2Bã½ããã¦ã§ã¢ä¼æ¥åãï¼AIã¨ã¼ã¸ã§ã³ãããã¸ã¥ã¢ã«ãã¬ãã¸ãã¼ã¹ãç¡æã§æ§ç¯ãã¾ãã",description:"ã½ããã¦ã§ã¢ã®ã«ã¹ã¿ãã¼ãµãã¼ããã±ããã忏ãã¾ããèªå¾åAIã¨ã¼ã¸ã§ã³ããã½ããã¦ã§ã¢ã«é
ç½®ããå®å
¨ãªã¤ã³ã¿ã©ã¯ãã£ããªãã¸ã¥ã¢ã«ã¬ã¤ãã©ã¤ãã©ãªãçæãã¾ãã",benefit1:"å¿
è¦ãªã®ã¯ã½ããã¦ã§ã¢ã¸ã®ãã°ã¤ã³ã ãã§ãããã¹ã¯ãããçã§ããã©ã¦ã¶çã§ã対å¿ãã¦ãã¾ãã",benefit2:"å®å
¨ãªã¨ã³ã¿ã¼ãã©ã¤ãºãªãã¡ã¼ã®ãã¼ã¿çãç¡å¶éã«ãå©ç¨ããã ãã¾ãã",successTitle:"ãªã¹ãã«ç»é²ããã¾ããã",successDescription:"1å¶æ¥æ¥ä»¥å
ã«ããã¥ã¡ã³ãã¨ã¼ã¸ã§ã³ãã®ã»ããã¢ããã«ã¤ãã¦ãé£çµ¡ãã¾ãã確èªã¡ã¼ã«ãã確èªãã ããã",form:{nameLabel:"ãåå",emailLabel:"å¤åå
ã¡ã¼ã«",phoneLabel:"é»è©±çªå·ï¼ä»»æï¼",hopeLabel:"éæããããã¨",hopePlaceholder:"ä¾ï¼æ°å
¥ç¤¾å¡ã®ãªã³ãã¼ãã£ã³ã°é«éåããã¬ãã¸ãã¼ã¹ã®æ§ç¯â¦",submitButton:"ç¡ææ ã«ç³ãè¾¼ã",submittingButton:"éä¿¡ä¸â¦"},toasts:{nameEmailRequired:"ãååã¨ã¡ã¼ã«ã¢ãã¬ã¹ã¯å¿
é ã§ãã"}},autoguides={seo:{title:"ãªã¼ãã¬ã¤ã â AIãçæãããã¦ãã¼ã¬ã¤ã",description:"Stepilyã®ãªã¼ãã¬ã¤ãã¯ã使¥ã®æ§åãè¦ã¦ãã®ã¾ã¾ã
591¹ããããã¤ã¹ãããã®ããã¥ã¡ã³ãã使ãã¾ãã誰ããæ¸ãèµ·ããå¿
è¦ã¯ããã¾ããã"},hero:{subtitle:"æåã§ã®é²ç»ãªãã«ãã¸ã¥ã¢ã«ã¬ã¤ãã使ããããã¼ã ã®ããã®ãã¨ã¼ã¸ã§ã³ãåããã¥ã¡ã³ãåºç¤ã§ãã"},card:{title:"ã¨ã¼ã¸ã§ã³ãåããã¥ã¡ã³ãåºç¤",description:"Scribeã®ãããªæåé²ç»ãè¤éãªãã¸ã¿ã«ã¢ããã·ã§ã³ãã©ãããã©ã¼ã ã¯ä¸è¦ã§ããStepilyãã½ããã¦ã§ã¢ãèªåã§ãããã³ã°ããå®å
¨ãªãã¸ã¥ã¢ã«ã¬ã¤ããèªåçæãã¾ãã",feature1:{title:"èªå¾åãããã³ã°",description:"ãã©ã¦ã¶ã¨ã¼ã¸ã§ã³ããã¯ã¼ã¯ããã¼ãæ¢ç´¢ããã¬ã¤ãã®ç¶²ç¾
æ§ãå¸¸ã«ææ°ã®ç¶æ
ã«ä¿ã¡ã¾ãã"},feature2:{title:"èªå·±ä¿®å¾©åã¬ã¤ã",description:"ãããã¯ãã®å¤æ´ã«åããã¦ããã¸ã¥ã¢ã«ããã¥ã¡ã³ããèªåã§æ´æ°ããã¾ãã"}},steps:{step1:"1. Stepilyãæ¿èªæ¸ã¿ã®ã·ã¹ãã ãã¹ãã£ã³",step2:"2. Stepilyããã¸ã¥ã¢ã«ã¬ã¤ãã®ã©ã¤ãã©ãªãä¸å¼ä½æ",step3:"3. 質åã«ãã¸ã¥ã¢ã«ã§åçããåãåããä»¶æ°ã忏"},showcase:{knowledgeBase:{text:"HTMLãMarkdownãªã©ã®å½¢å¼ã§ã¨ã¯ã¹ãã¼ãããã¬ã¤ãããã®ã¾ã¾ãã¬ãã¸ãã¼ã¹ã«è¿½å ã§ãã¾ãã",alt:"ã¹ããããã¤ã¹ãããã¬ã¤ãããã£ããã£ãããã®ã¾ã¾ãã¬ãã¸ãã¼ã¹ã«å
¬éããæ§å"},chatbot:{text:"ãã£ããããããAIã¢ã·ã¹ã¿ã³ãã«ç´æ¥ã¬ã¤ãã表示",alt:"ãã£ããããããAIã¢ã·ã¹ã¿ã³ãå
ã§ã¹ããããã¤ã¹ãããã¬ã¤ããç´æ¥è¡¨ç¤ºããæ§å"}}},autoguidesTab={subtitle:"ã½ããã¦ã§ã¢åãã®ãã¸ã¥ã¢ã«ã¬ã¤ããèªåçæã§ãã¾ãã",subheadline:"顧客ã¯å¯¾å¿æ¹æ³ãåãããããªãã¯æéãåãæ»ããã¨ãã§ãã¾ãã",whoItsFor:{item1:"æ¥æé·ä¸ã®ã½ããã¦ã§ã¢ã¹ã¿ã¼ãã¢ããã§ã人å¡å¢å ãªãã«ã«ã¹ã¿ãã¼ãµãã¼ããã¹ã±ã¼ã«ãããã伿¥",item2:"ãµãã¼ããã¼ã ã®å·¥æ°ã忏ãããã¨ã³ã¿ã¼ãã©ã¤ãºä¼æ¥"},theValue:{heading:"価夿æ¡",item1:"å復çãªãµãã¼ããã±ããã忏ãã¾ãã",item2:"ã½ããã¦ã§ã¢ã®å¤æ´ã«åããã¦ããã¥ã¡ã³ããèªåæ´æ°ããã¾ããæ
å ±ã®é³è
åãé²ãã¾ãã",item3:"ã¬ã¤ãããã¬ãã¸ãã¼ã¹ãAIãã£ãããããã«çµ±åã§ãã¾ãã"},offer:{heading:"æééå®ã®ç¡æãªãã¡ã¼: æ®ã4社éå®ã®ãã¤ãããããã°ã©ã ",description:"ãã®ãªãã¡ã¼ã«ç³ãè¾¼ãã¨ã6æ31æ¥ã¾ã§ã«å
æ¬çãªã¬ã¤ããå®å
¨ã«æ§ç¯ãã¾ãã",buttonText:"ãªãã¡ã¼ãç³ãè¾¼ã"}},trendingTutorialsSection={heading:"ãã¬ã³ãã®ãã¥ã¼ããªã¢ã«",emptyState:"å
¬éããã¦ãããã¥ã¼ããªã¢ã«ã¯ã¾ã ããã¾ãããæåã®ãã¥ã¼ããªã¢ã«ã使ãã¦ã¿ã¾ããã!",categories:{generalProductivityOffice:"çç£æ§ã»ãªãã£ã¹å
¨è¬",projectWorkManagement:"ããã¸ã§ã¯ãã»ã¿ã¹ã¯ç®¡ç",designCreativeArts:"ãã¶ã¤ã³ã»ã¯ãªã¨ã¤ãã£ã",developmentEngineering:"éçºã»ã¨ã³ã¸ãã¢ãªã³ã°",dataAiBusinessIntelligence:"ãã¼ã¿ã»AIã»ãã¸ãã¹ã¤ã³ããªã¸ã§ã³ã¹",marketingSales:"ãã¼ã±ãã£ã³ã°ã»å¶æ¥",videoAudioContentCreation:"åç»ã»é³å£°ã»ã³ã³ãã³ãå¶ä½",financeHrBusinessOps:"財åã»äººäºã»æ¥å管ç",itSecuritySpecialized:"ITã»ã»ãã¥ãªãã£ã»å°éåé",educationPersonalGrowth:"æè²ã»èªå·±æé·"}},homeAnimations={step1:"1. Stepilyã®ãã©ã¦ã¶æ¡å¼µæ©è½ãéãã¾ã",step2:"2. ãã¤ãéãã«ä½æ¥ãé²ãã¾ã",step3:"3. Stepilyããã¸ã¥ã¢ã«ã¬ã¤ããèªåã§ä½æãã¾ã"},extensionOnboarding={loadingStatus:"ãªã³ãã¼ãã£ã³ã°ãæºåãã¦ãã¾ãâ¦",statusError:"ãªã³ãã¼ãã£ã³ã°ã®ç¶æ³ã確èªã§ãã¾ããã§ãããæ¥ç¶ã確èªãã¦ãããä¸åº¦ã試ããã ããã",tryAgain:"å試è¡",stepLabelFirst:"æåã®ã¹ããã",stepLabelNext:"次ã®ã¹ããã",graphic:{productivity:"çç£æ§",instantGuideCapture:"ã¬ã¤ããç¬æã«ãã£ããã£",addToChromeBadge:"Chromeã«è¿½å ",captureStepsHint:"ã¯ãªãã¯ãããã³ã«åã¹ãããããã£ããã£ãã¾ãã",installLabel:"ã¤ã³ã¹ãã¼ã«",installDescription:"ãChromeã«è¿½å ããã¯ãªãã¯ãã¦ãStepilyããã©ã¦ã¶ã«ãã³çããã¾ãã",recordLabel:"è¨é²",recordDescription:"ã¯ã¼ã¯ããã¼ãè¨é²ãããã¨ãã«æ¡å¼µæ©è½ãéãã¾ãã"},install:{heading:"Stepilyæ¡å¼µæ©è½ã追å ãããµã¤ã³ã¤ã³ã
591ã¾ãããã",description:"æ¡å¼µæ©è½ãã¤ã³ã¹ãã¼ã«ãã¦Stepilyã¢ã«ã¦ã³ãã«æ¥ç¶ããã¨ããã®ãã¼ã¸ã¯èªåçã«è¨é²ã¹ãããã¸é²ã¿ã¾ãã",getExtensionButton:"æ¡å¼µæ©è½ãå
¥æããã",signedInButton:"ãµã¤ã³ã¤ã³ãã¾ãã",skipButton:"å¾ã§ã¹ããã",detectHint:"æ¡å¼µæ©è½ã§ã®Stepilyãµã¤ã³ã¤ã³ãå®äºããã¨ãæ¥ç¶ãèªåçã«æ¤åºãã¾ãã"},success:{heading:"ãç²ããã¾ã§ãããæåã®ãã¥ã¼ããªã¢ã«ã使ãã¾ãã!",redirecting:"{{count}}ç§å¾ã«ããã·ã¥ãã¼ãã«ç§»åãã¾ãâ¦",redirectingToTutorial:"{{count}}ç§å¾ã«ãã¥ã¼ããªã¢ã«ã«ç§»åãã¾ãâ¦",goToDashboardButton:"ä»ããããã·ã¥ãã¼ãã¸",viewTutorialButton:"ä»ãããã¥ã¼ããªã¢ã«ãè¦ã"},record:{heading:"æ¡å¼µæ©è½ãæ¥ç¶ããã¾ãã!",description:"æ©éä½ã使ãã¦ã¿ã¾ãããã",startCaptureButton:"ãã£ããã£ãéå§",recordingInProgress:"ãã¥ã¼ããªã¢ã«ãè¨é²ä¸â¦",doneButton:"å®äº",hint:"Stepilyãã¿ã鏿ç»é¢ãéãã®ã§ãæåã®ã¯ã¼ã¯ããã¼ãè¨é²ããå ´æã鏿ã§ãã¾ãã"}},googleOnboarding={loadingStatus:"Stepilyã¸ã®ãµã¤ã³ã¤ã³ãå®äºãã¦ãã¾ã..."},checkout={breadcrumb:"ãã§ãã¯ã¢ã¦ã",title:"{{plan}}ãã©ã³ã®è¨å®",confirmPlanTitle:"{{plan}}ãã©ã³ã®ç¢ºèª",savingBadge:"{{percent}}%ãå¾",viewerSeatsFreeNote:"é²è¦§è
ç¨ã·ã¼ãã¯å¸¸ã«ç¡æã§ããæéã¯ä½æè
ã»ç®¡çè
ã·ã¼ãã«ã®ã¿çºçãã¾ãã",billingOption:{monthly:"ææã(ææã·ã¼ã1å¸ãããæé¡${{price}})",annual:"å¹´æã(ææã·ã¼ã1å¸ãããå¹´é¡${{price}} â 1å¸ãããå¹´é${{saving}}ãå¾)"},paidSeatsLabel:"ææã·ã¼ãæ°",priceUnit:{annualBilled:"å¹´é¡${{price}}/å¸(å¹´æã)",monthly:"æé¡${{price}}/å¸"},volumePricingActive:"ææã·ã¼ã{{seats}}å¸ã§ããªã¥ã¼ã å²å¼ãé©ç¨ããã¦ãã¾ã: {{priceText}}ã",volumePricingHint:"ææã·ã¼ãã3å¸ä»¥ä¸ã«ãªãã¨ãProã®ä¾¡æ ¼ã¯èªåçã«{{priceText}}ã«ãªãã¾ãã",minSeatsNote:"æä½{{minSeats}}ææã·ã¼ãããéå§ãã¾ããæ°éã¯ãããã¾ãã¯å¾ã§Stripeã®è«æ±è¨å®ãã調æ´ã§ãã¾ãã",paymentDetailsTitle:"ãæ¯æãæ
å ±",paymentDetailsNote:"次ã®ã¹ãããã§ãã«ã¼ãæ
å ±ã¨ãæ¯æãæ
å ±ãå®å
¨ã«å
¥åãã¾ãã",purchaseSummaryTitle:"è³¼å
¥å
容ã®ç¢ºèª",planLine:"{{plan}}ãã©ã³",pricePerSeat:{annual:"å¹´é¡${{price}}*",monthly:"æé¡${{price}}"},seatsLineItem_one:"ææã·ã¼ã à {{count}}",seatsLineItem_other:"ææã·ã¼ã à {{count}}",totalCost:{annual:"å¹´é¡${{price}}",monthly:"æé¡${{price}}"},savedWithAnnualBillingPrefix:"å¹´éè«æ±ã§",savedWithAnnualBillingSuffix:"ç¯ç´ã§ãã¾ãã",switchToAnnualSavePrefix:"å¹´æãã«åãæ¿ããã¨ã1å¸ãããå¹´é",switchToAnnualSaveSuffix:"ãå¾ã«ãªãã¾ã",totalLabelAnnual:"å¹´éåè¨",totalLabelMonthly:"æéåè¨",annualFootnote:"â» ææã·ã¼ã1å¸ãããå¹´é¡${{price}}(å¹´æã)",viewerSeatsStayFreeNote:"é²è¦§è
ç¨ã·ã¼ãã¯å¼ãç¶ãç¡æã§ããææã·ã¼ãæ°ã¯å¾ããè«æ±è¨å®ã§å¤æ´ã§ãã¾ãã",redirecting:"ãªãã¤ã¬ã¯ãä¸â¦",continueButton:"å®å
¨ãªæ±ºæ¸ã«é²ã â",toasts:{checkoutFailed:"ãã§ãã¯ã¢ã¦ãã«å¤±æãã¾ãããããä¸åº¦ã試ããã ããã"}},proUpsellDialog={dialogTitle:"Proã«ã¢ããã°ã¬ã¼ã",dialogDescription:"{{feature}}ãå©ç¨ããã«ã¯ãProã¢ããã°ã¬ã¼ãã®ç¹å
¸ãã確èªãã ããã",proLabel:"Pro",heroDescription:"Proã§{{feature}}ããã®ä»ã®æ©è½ãå©ç¨ã§ãã¾ã",whatYouGet:"å¾ããããã®",features:{embedExport:"PDFãHTMLãMarkdownã¸ã®åãè¾¼ã¿ã»ã¨ã¯ã¹ãã¼ã",customBranding:"ä¼ç¤¾ã®ãã©ã³ãã£ã³ã°ã§ãã¥ã¼ããªã¢ã«ãã«ã¹ã¿ãã¤ãº",unlimitedSharing:"éå
¬éã»ãªã³ã¯éå®å
±æãç¡å¶é",privateWorkspaces:"ãã¼ã å°ç¨ã®éå
¬éã¯ã¼ã¯ã¹ãã¼ã¹",seatBilling:"使è
ã»ç®¡çè
ã·ã¼ãåã®ã¿èª²é"},upgradeButton:"Proã«ã¢ããã°ã¬ã¼ã",maybeLater:"å¾ã§"},acceptInvite={heading:"ãã¼ã ã¯ã¼ã¯ã¹ãã¼ã¹ã¸ã®æå¾
",loading:"æå¾
æ
å ±ãèªã¿è¾¼ãã§ãã¾ãâ¦",invalid:{title:"ç¡å¹ãªæå¾
ãªã³ã¯ã§ã",description:"ãã®æå¾
ãªã³ã¯ã¯ç¡å¹ããåãæ¶ããã¦ãã¾ãã"},expired:{title:"æå¾
ã®æå¹æéãåãã¦ãã¾ã",description:"ãã®æå¾
ãªã³ã¯ã®æå¹æéãåãã¦ãã¾ãããã¼ã 管çè
ã«æ°ããæå¾
ã®éä»ãä¾é ¼ãã¦ãã ããã"},accepted:{title:"ãã®æå¾
ã¯ãã§ã«æ¿è«¾æ¸ã¿ã§ã"}
591,alreadyMember:{title:"ãã§ã«ã¡ã³ãã¼ã¨ãã¦åå ãã¦ãã¾ã"},goHome:"ãã¼ã ã«æ»ã",goToDashboard:"ããã·ã¥ãã¼ãã«ç§»å",invitedToJoin:"以ä¸ã®ã¯ã¼ã¯ã¹ãã¼ã¹ã¸ã®åå ã«æå¾
ããã¦ãã¾ã",workspaceNameFallback:"ãã¼ã ã¯ã¼ã¯ã¹ãã¼ã¹",asRolePrefix:"å½¹å²: ",acceptButton:"æå¾
ãæ¿è«¾",mismatchedEmailPrefix:"ãã®æå¾
ã®éä¿¡å
㯠",mismatchedEmailMiddle:" ã§ããç¾å¨ ",mismatchedEmailSuffix:" ã¨ãã¦ãµã¤ã³ã¤ã³ãã¦ãã¾ãã",signInCorrectAccount:"æ£ããã¢ã«ã¦ã³ãã§ãµã¤ã³ã¤ã³ãã",noUserDescription:"ãã®æå¾
ãæ¿è«¾ããã«ã¯ãã¢ã«ã¦ã³ãã使ããããµã¤ã³ã¤ã³ãã¦ãã ããã",createAccount:"ã¢ã«ã¦ã³ãã使",alreadyHaveAccount:"ãã§ã«ã¢ã«ã¦ã³ãããæã¡ã§ããï¼ ãµã¤ã³ã¤ã³",theWorkspaceFallback:"ã¯ã¼ã¯ã¹ãã¼ã¹",toasts:{joinFailed:"ã¯ã¼ã¯ã¹ãã¼ã¹ã¸ã®åå ã«å¤±æãã¾ãã",joined:"{{workspace}}ã«åå ãã¾ããï¼"}},leaderboard={heading:"ãã¹ã¦ã®ãã¥ã¼ããªã¢ã«",subheading:"ã«ãã´ãªã¼ã¨ã¢ããªã§å
¬éæ¸ã¿ã®ãã¥ã¼ããªã¢ã«ãçµãè¾¼ãã¾ã",categoryLabel:"ã«ãã´ãªã¼:",appLabel:"ã¢ããª:",selectCategoryPlaceholder:"ã«ãã´ãªã¼ã鏿",selectAp
591pPlaceholder:"ã¢ããªã鏿",tutorialsCount:"ãã¥ã¼ããªã¢ã«æ°",table:{rank:"é ä½",tutorial:"ãã¥ã¼ããªã¢ã«",creator:"使è
",category:"ã«ãã´ãªã¼",app:"ã¢ããª",rating:"è©ä¾¡"},noTutorials:"å©ç¨å¯è½ãªãã¥ã¼ããªã¢ã«ãããã¾ãã",appFallback:"N/A",categories:{topRated:"é«è©ä¾¡",sales:"ã»ã¼ã«ã¹",basic:"åºæ¬",marketing:"ãã¼ã±ãã£ã³ã°",design:"ãã¶ã¤ã³",elderly:"é«é½¢è
",uncategorized:"æªåé¡"}},publicProfile={loading:"ãããã£ã¼ã«ãèªã¿è¾¼ãã§ãã¾ã...",notFound:"ãããã£ã¼ã«ãè¦ã¤ããã¾ãã",goBackHome:"ãã¼ã ã«æ»ã",back:"æ»ã",anonymousUser:"å¿åã¦ã¼ã¶ã¼",follow:"ãã©ãã¼",unfollow:"ãã©ãã¼è§£é¤",linkedinAriaLabel:"LinkedInãããã£ã¼ã«",instagramAriaLabel:"Instagramãããã£ã¼ã«",youtubeAriaLabel:"YouTubeãã£ã³ãã«",twitterAriaLabel:"Twitter/Xãããã£ã¼ã«",workbooksHeading:"ã¯ã¼ã¯ããã¯",workbookCount_one:"ã¯ã¼ã¯ããã¯{{count}}ä»¶",workbookCount_other:"ã¯ã¼ã¯ããã¯{{count}}ä»¶",tutorialsHeading:"å
¬éæ¸ã¿ãã¥ã¼ããªã¢ã«",tutorialCount_one:"ãã¥ã¼ããªã¢ã«{{count}}ä»¶",tutorialCount_other:"ãã¥ã¼ããªã¢ã«{{count}}ä»¶",toasts:{noPublishedContent:"ãã®ã¦ã¼ã¶ã¼ã¯ã¾ã ãã¥ã¼ããªã¢ã«ãå
¬éãã¦ãã¾ãã",loadFailed:"ãããã£ã¼ã«ã®èªã¿è¾¼ã¿ã«å¤±æãã¾ãã",unfollowed:"ãã©ãã¼ãè§£é¤ãã¾ãã",followed:"ãã©ãã¼ãã¾ããï¼"}},resetPassword={invalidLinkTitle:"ãªã³ã¯ã®æå¹æéãåãã¦ããããç¡å¹ã§ã",invalidLinkFallback:"ãã®ãã¹ã¯ã¼ããªã»ãããªã³ã¯ã¯ç¡å¹ã«ãªã£ã¦ãã¾ãã",requestNewLink:" ãµã¤ã³ã¤ã³ãã¼ã¸ããæ°ãããªã³ã¯ããªã¯ã¨ã¹ããã¦ãã ããã",backToSignIn:"ãµã¤ã³ã¤ã³ã«æ»ã",setNewPasswordTitle:"æ°ãããã¹ã¯ã¼ããè¨å®",setNewPasswordDescription:"æ°ãããã¹ã¯ã¼ããå
¥åãã確èªã®ããããä¸åº¦å
¥åãã¦ãã ããã",newPasswordLabel:"æ°ãããã¹ã¯ã¼ã",confirmPasswordLabel:"æ°ãããã¹ã¯ã¼ãï¼ç¢ºèªï¼",checkingLink:"ãªã³ã¯ã確èªãã¦ãã¾ã...",updating:"æ´æ°ä¸...",updatePassword:"ãã¹ã¯ã¼ããæ´æ°",toasts:{passwordsDoNotMatch:"ãã¹ã¯ã¼ããä¸è´ãã¾ãã",passwordTooShort:"ãã¹ã¯ã¼ãã¯6æå以ä¸ã§å
¥åãã¦ãã ãã",passwordUpdated:"ãã¹ã¯ã¼ããæ´æ°ãã¾ããããã°ã¤ã³ãã¾ããã"}},tutorialPage={loading:"èªã¿è¾¼ã¿ä¸â¦"},authorize={loading:"èªã¿è¾¼ã¿ä¸...",invalidRequestTitle:"ç¡å¹ãªãªã¯ã¨ã¹ã",missingParameters:"å¿
é ãã©ã¡ã¼ã¿ãä¸è¶³ãã¦ãã¾ããæ¡å¼µæ©è½ã®è¨å®ãã確èªãã ããã",redirectNotAuthorized:"ãã®ã¯ã©ã¤ã¢ã³ãã§ã¯ãªãã¤ã¬ã¯ãURIã許å¯ããã¦ãã¾ãããæ¡å¼µæ©è½ã®è¨å®ãã確èªãã ããã",returnHome:"ãã¼ã ã«æ»ã",title:"èªè¨¼ãªã¯ã¨ã¹ã",descriptionPrefix:"ãã¡ãã®",descriptionSuffix:"{{appType}}ããããªãã®Stepilyã¢ã«ã¦ã³ãã¸ã®ã¢ã¯ã»ã¹ãæ±ãã¦ãã¾ã",allowIntro:"ããã«ããã{{appType}}ã¯ä»¥ä¸ãè¡ããããã«ãªãã¾ãï¼",permissions:{viewTutorials:"å
¬éãã¥ã¼ããªã¢ã«ã®é²è¦§",accessContent:"ãã¥ã¼ããªã¢ã«ã®ã³ã³ãã³ãã¨ç»åã¸ã®ã¢ã¯ã»ã¹",displayIn:"{{location}}ã§ã®ãã¥ã¼ããªã¢ã«ã®è¡¨ç¤º"},revokeNotice:"ã¢ã¯ã»ã¹æ¨©ã¯ãã¤ã§ããããã£ã¼ã«è¨å®ããåãæ¶ããã¨ãã§ãã¾ãã",decline:"æå¦",approve:"æ¿èª",authorizing:"èªè¨¼ä¸...",appNames:{stepilyDesktop:"Stepilyãã¹ã¯ããã",tutorialSidePanel:"ãã¥ã¼ããªã¢ã«ãµã¤ãããã«"},appTypes:{application:"ã¢ããªã±ã¼ã·ã§ã³",extension:"æ¡å¼µæ©è½"},sidePanel:"ãµã¤ãããã«",toasts:{authorizeFailed:"æ¡å¼µæ©è½ã®èªè¨¼ã«å¤±æãã¾ãã"}},adminReports={loading:"èªã¿è¾¼ã¿ä¸...",heading:"ã³ã³ãã³ãã®éå ±",noReports:"éå ±ã¯ããã¾ããã",unknownTutorial:"䏿ãªãã¥ã¼ããªã¢ã«",reportedOn:"{{date}}ã«éå ±",buttons:{view:"表示",action:"対å¿",dismiss:"å´ä¸"},statuses:{pending:"ä¿çä¸",actioned:"å¯¾å¿æ¸ã¿",dismissed:"å´ä¸æ¸ã¿"},toasts:{updateFailed:"éå ±ã®æ´æ°ã«å¤±æãã¾ãã",reportMar
591kedAs:"éå ±ã{{status}}ã«æ´æ°ãã¾ãã"}},imageCropDialog={dialogTitle:"ãããã£ã¼ã«åçãããªãã³ã°",helperText:"ãã©ãã°ã§ç§»å ⢠ã¹ã¯ãã¼ã«ã§ãºã¼ã ",cancel:"ãã£ã³ã»ã«",saveUpload:"ä¿åãã¦ã¢ãããã¼ã"},appSelector={searchPlaceholder:"ã¢ããªãæ¤ç´¢ãã¾ãã¯ãã¡ã¤ã³ãå
¥å...",domainHint:"å®å
¨ãªãã¡ã¤ã³ãå
¥åãã¦ãã ããï¼ä¾: google.comï¼",customCategory:"ã«ã¹ã¿ã ",toasts:{addedCustomApp:"ã{{name}}ããã«ã¹ã¿ã ã¢ããªã¨ãã¦è¿½å ãã¾ãã",addCustomAppFailed:"ã«ã¹ã¿ã ã¢ããªã®è¿½å ã«å¤±æãã¾ãã"}},reportTutorialDialog={trigger:"å ±å",dialogTitle:"ãã¥ã¼ããªã¢ã«ãå ±å",reportingPrefix:"å ±å対象:",reasons:["ä¸é©åã¾ãã¯æ»æçãªã³ã³ãã³ã","ã¹ãã ã¾ãã¯èª¤è§£ãæãå
容","è使¨©ä¾µå®³","æ©å¯ã»å人æ
å ±ãå«ã","ãã®ä»"],detailsPlaceholder:"詳細ï¼ä»»æï¼",cancel:"ãã£ã³ã»ã«",submitReport:"å ±åãéä¿¡",submitting:"éä¿¡ä¸...",toasts:{signInRequired:"ãã¥ã¼ããªã¢ã«ãå ±åããã«ã¯ãµã¤ã³ã¤ã³ãã¦ãã ãã",selectReason:"çç±ã鏿ãã¦ãã ãã",alreadyReported:"ãã®ãã¥ã¼ããªã¢ã«ã¯ãã§ã«å ±åæ¸ã¿ã§ã",reportSubmitted:"å ±åãéä¿¡ãã¾ãããã³ãã¥ããã£ã®å®å
¨ç¶æã«ãååããã ããããã¨ããããã¾ãã",submitFailed:"å ±åã®éä¿¡ã«å¤±æãã¾ãã"}},tutorialCard={unsave:"ä¿åãè§£é¤",saveForLater:"å¾ã§è¦ãããã«ä¿å",edit:"ç·¨é",share:"å
±æ",duplicate:"è¤è£½",moveToTrash:"ã´ãç®±ã«ç§»å"},workbookCard={edit:"ç·¨é",moreThumbnails:"ä»{{count}}ä»¶",tutorialCount_one:"ãã¥ã¼ããªã¢ã«{{count}}ä»¶",tutorialCount_other:"ãã¥ã¼ããªã¢ã«{{count}}ä»¶",stepCount_one:"ã¹ããã{{count}}ä»¶",stepCount_other:"ã¹ããã{{count}}ä»¶",thumbnailAlt:"ãã¥ã¼ããªã¢ã«{{index}}"},tutorialPdfPreview={dialogTitle:"PDFãã¬ãã¥ã¼",dialogTitleWithTutorial:"PDFãã¬ãã¥ã¼ â {{title}}",pageLabel:"ãã¼ã¸ {{current}} / {{total}}",byAuthor:"使è
: {{username}}",generating:"çæä¸â¦",downloadPdf:"PDFããã¦ã³ãã¼ã",proLabel:"Pro",proFeatureLabel:"PDFã¨ã¯ã¹ãã¼ã",loadFailed:"ãã¥ã¼ããªã¢ã«ãã¼ã¿ã®èªã¿è¾¼ã¿ã«å¤±æãã¾ããã",companyLogoAlt:"ä¼ç¤¾ã®ãã´"},tutorialPptxPreview={dialogTitle:"PowerPoint ãã¬ãã¥ã¼",dialogTitleWithTutorial:"PowerPoint ãã¬ãã¥ã¼ â {{title}}",slideLabel:"ã¹ããã {{current}} / {{total}}",byAuthor:"使è
: {{username}}",generating:"çæä¸â¦",downloadPptx:"PowerPoint ããã¦ã³ãã¼ã",proLabel:"Pro",proFeatureLabel:"PowerPoint ã¨ã¯ã¹ãã¼ã",loadFailed:"ãã¥ã¼ããªã¢ã«ãã¼ã¿ã®èªã¿è¾¼ã¿ã«å¤±æãã¾ããã",companyLogoAlt:"ä¼ç¤¾ã®ãã´",exportFailed:"PowerPoint ã®ã¨ã¯ã¹ãã¼ãã«å¤±æãã¾ãããããä¸åº¦ã試ããã ããã"},screenshotViewport={zoomIn:"ãºã¼ã ã¤ã³",zoomOut:"ãºã¼ã ã¢ã¦ã",quizBanner:"ð ã¿ã¼ã²ããã®ä½ç½®ãã¯ãªãã¯ãã¦ãã ããï¼"},quiz={sampleDataTitle:"ãµã³ãã«ãã¼ã¿",sampleDataDescription:"ã¯ã¤ãºãé²ããªããããããã®å¤ãæ£ããé
ç®ã«å
¥åãã¦ãã ããã",typeAnswerPlaceholder:"çããå
¥å",submitAnswer:"確èª",clickInstruction:"ã¹ã¯ãªã¼ã³ã·ã§ããä¸ã®è©²å½ç®æãã¯ãªãã¯ãã¦ãã ããã",typeInstruction:"ãµã³ãã«ãã¼ã¿ããå¤ãå
¥åãã¦ãã ããã",hintLabel:"ãã³ã",progress:"åé¡ {{current}} / {{total}}",missCount:"誤ç {{count}} å",noQuestions:"ãã®ã¯ã¤ãºã¯ã¬ã¤ãã®å
容ã¨ä¸è´ããªããªã£ã¦ãã¾ãã使è
ã«å使ãä¾é ¼ãã¦ãã ããã",completeTitle:"ã¯ã¤ãºçµäº",completeScore:"{{total}} åä¸ {{firstTry}} åã«ä¸çºæ£è§£ï¼{{percent}}%ï¼",completeMisses:"éä¸ã®èª¤ç㯠{{count}} åã§ãã",completeMisses_other:"éä¸ã®èª¤ç㯠{{count}} åã§ãã",restart:"ããä¸åº¦ææ¦",exit:"ã¬ã¤ãã«æ»ã",feedback:{match:"æ£è§£ã§ãã",empty:"å
ã«çããå
¥åãã¦ãã ããã",typo:"æããã§ããã¤ã¥ãã確èªãã¦ãã ããã",wrongDomain:"ååã¯åã£ã¦ãã¾ããããã¡ã¤ã³ãéãã¾ãã",wrongMagnitude:"æ°åã¯åã£ã¦ãã¾ãããæ¡ãéãã¾ãã",partial:"æ¹åã¯åã£ã¦ãã¾ãããè¶³ããªãé¨åãããã¾ãã",invali
591dFormat:"ãã®é
ç®ã®å½¢å¼ã«åã£ã¦ãã¾ããã",mismatch:"éãã¾ãããµã³ãã«ãã¼ã¿ã確èªãã¦ããä¸åº¦ã試ããã ããã"},matcher:{exact:"å®å
¨ä¸è´",name:"æ°å",email:"ã¡ã¼ã«ã¢ãã¬ã¹",phone:"é»è©±çªå·",postal:"éµä¾¿çªå·",url:"URL",numeric:"æ°å¤",currency:"éé¡",date:"æ¥ä»",freeText:"èªç±è¨è¿°"},toasts:{answerCorrect:"æ£è§£ã§ãï¼",clickIncorrect:"ããã§ã¯ããã¾ãããããä¸åº¦ã試ããã ããã"},editor:{generate:"AI ã§ã¯ã¤ãºã使",regenerate:"ã¯ã¤ãºãå使",generating:"ã¯ã¤ãºã使ä¸...",generatingHint:"ãã¹ã¦ã®æé ã¨ã¹ã¯ãªã¼ã³ã·ã§ãããèªã¿åã£ã¦ãã¾ããé常 30ã60 ç§ãããã¾ãã",usageOfLimit:"ã¯ã¤ãº {{count}}/{{limit}}",staleWarning:"ã¯ã¤ãºä½æå¾ã«ã¬ã¤ãã夿´ããã¦ãã¾ããåé¡ãå
容ã¨åãããã«å使ãã¦ãã ããã",enableLabel:"ãã®ã¬ã¤ãã§ã¯ã¤ãºã¢ã¼ããæå¹ã«ãã",enableHint:"ãªãã«ããã¨ãã¯ã¤ãºãåé¤ããã«é²è¦§è
ããé表示ã«ã§ãã¾ãã",sampleDataHeading:"ãµã³ãã«ãã¼ã¿",sampleDataHint:"ã¯ã¤ãºä¸ã«é²è¦§è
ã¸è¡¨ç¤ºããã¾ããã¬ã¤ãå
ã®ã¹ã¯ãªã¼ã³ã·ã§ããããèªã¿åã£ãå¤ã«ã¯ãã®æ¨ã表示ããã¾ãã",fieldLabel:"é
ç®å",fieldValue:"å¤",source:{screenshot:"ã¹ã¯ãªã¼ã³ã·ã§ãããã",invented:"AI ã使"},kind:{click:"ã¯ãªãã¯",type:"å
¥å"},promptLabel:"å顿",hintLabel:"ãã³ã",hintPlaceholder:"誤çæã«è¡¨ç¤ºããã¾ã",matcherLabel:"å¤å®æ¹æ³",removeQuestion:"åé¡ãåé¤",delete:"ã¯ã¤ãºãåé¤",confirmDelete:"ãã®ã¯ã¤ãºãåé¤ãã¾ããï¼ã¬ã¤ãèªä½ã«ã¯å½±é¿ãã¾ããã",toasts:{generated:"ã¯ã¤ãºã使ãã¾ãã",generateFailed:"ã¯ã¤ãºã使ã§ãã¾ããã§ãããããä¸åº¦ã試ããã ããã",monthlyQuotaExhausted:"仿ã®AIçæã¯{{limit}}åä¸{{used}}åã使ç¨ãã¾ãããå©ç¨æ ã¯æ¯æ1æ¥ã«ãªã»ããããã¾ãã",screenshotsSkipped:"{{count}} ä»¶ã®ã¹ã¯ãªã¼ã³ã·ã§ãããä¸éãè¶
ãããã使ç¨ããã¾ããã§ããã",screenshotsSkipped_other:"{{count}} ä»¶ã®ã¹ã¯ãªã¼ã³ã·ã§ãããä¸éãè¶
ãããã使ç¨ããã¾ããã§ããã",deleted:"ã¯ã¤ãºãåé¤ãã¾ãã",deleteFailed:"ã¯ã¤ãºãåé¤ã§ãã¾ããã§ãã",toggleFailed:"ã¯ã¤ãºã¢ã¼ããæ´æ°ã§ãã¾ããã§ãã"},saveStatus:{saving:"ä¿åä¸â¦",saved:"ä¿åæ¸ã¿",error:"ä¿åã§ãã¾ããã§ãã"},promptPlaceholder:"èªè
ã«æ±ããæä½ãå
¥å",approximateOutline:"æ ã¯ã¯ãªãã¯ä½ç½®ããã®æ¨å®ã§ããã¹ãããã¨ãã£ã¿ã§æ£ç¢ºãªç¯å²ãæå®ãã¦ãã ãã"}},stepilyLoader={loadingAlt:"èªã¿è¾¼ã¿ä¸"},moveWorkbookToTeam={title:"ã¯ã¼ã¯ããã¯ããã¼ã ã«ç§»å",description:"ã{{title}}ãã¯ãã¼ã ã¯ã¼ã¯ã¹ãã¼ã¹ã«é
ç½®ãããã¡ã³ãã¼ãé²è¦§ã§ããããã«ãªãã¾ãã",workspaceLabel:"ãã¼ã ã¯ã¼ã¯ã¹ãã¼ã¹",workspacePlaceholder:"ã¯ã¼ã¯ã¹ãã¼ã¹ã鏿",guidesWarning:"å«ã¾ãã{{count}}ä»¶ã®ã¬ã¤ãã{{workspace}}ã«ç§»åããããã1ä»¶ãã¤è¿½å ããå¿
è¦ã¯ããã¾ããã",guidesAlreadyThere:"ãã®ã¯ã¼ã¯ããã¯ã®ã¬ã¤ãã¯ãã¹ã¦ã鏿ããã¯ã¼ã¯ã¹ãã¼ã¹ã«æ¢ã«åå¨ãã¾ãã",noGuides:"ãã®ã¯ã¼ã¯ããã¯ã«ã¯ã¾ã ã¬ã¤ããããã¾ããã",cardAction:"ãã¼ã ã«ç§»å",cancel:"ãã£ã³ã»ã«",confirm:"ã¯ã¼ã¯ããã¯ã¨ã¬ã¤ããç§»å",moving:"ç§»åä¸..."},productNav={links:{"desktop-app":{label:"ãã¹ã¯ãããã¢ããª",description:"ãã½ã³ã³ä¸ã®ããããã¢ããªããã¬ã¤ãã使ã"},"browser-extension":{label:"ãã©ã¦ã¶æ¡å¼µæ©è½",description:"ã¯ã³ã¯ãªãã¯ã§ãããããµã¤ããææ¸åã"},"blur-and-annotate":{label:"ã¼ããã¨æ³¨é",description:"æ©å¯æ
å ±ãé ããèªã¿æã«è¦ã¦ã»ããå ´æã示ãã"},autoquiz:{label:"Autoquiz",description:"ã¬ã¤ãããã®ã¾ã¾ã¯ã¤ãºã«ã"}}},ja={languageSwitcher,common,header,footer,home,pricing,faq,desktopDownload,solutionsNav,solutions,caseStudies,privacyPolicy,bookDemo,homeContent,authenticatedHome,recentGuides,signupQuestionnaire,globalSearch,compactHeader,community,appSidebar,appCard,auth,shareDialog,workbookViewer,workbookEditor,tutorialViewer,profile,stepCanvasEditor,tutorialEditor,workspaceSettings,dashboard,allTutorials,freeGuideLibrary,autoguides,autoguidesTab,trendingTutorialsSection,homeAnimations,extensionOnboarding,googleOnboarding,checkout,proUpsellDialog,acceptInvite,leaderboard,publicProfile,resetPassword,tutorialPage,authorize,adminReports,imageCropDialog,appSelector,reportTutorialDialog,tutorialCard,workbookCard,tutorialPdfPreview,tutorialPptxPreview,screenshotViewport,quiz,stepilyLoader,moveWorkbookToTeam,productNav},SUPPORTED_LANGUAGES=["en","ja"],LANGUAGE_STORAGE_KEY="stepily_language";instance.use(Browser).use(initReactI18next).init({resources:{en:{translation:en},ja:{translation:ja}},fallbackLng:"en",supportedLngs:SUPPORTED_LANGUAGES,load:"languageOnly",interpolation:{escapeValue:!1},detection:{order:["localStorage","navigator"],caches:["localStorage"],lookupLocalStorage:LANGUAGE_STORAGE_KEY}});createRoot(document.getElementById("root")).render(jsxRuntimeExports.jsx(App,{}));export{Folder as $,DialogHeader as A,Bot as B,Check as C,Dialog as D,DialogTitle as E,DialogDescription as F,DialogFooter as G,Badge as H,Input as I,DropdownMenu as J,DropdownMenuTrigger as K,Lock as L,Ellipsis as M,DropdownMenuContent as N,DropdownMenuItem as O,Presence as P,Trash2 as Q,CardContent as R,SHOW_FREE_GUIDE_LIBRARY_LINKS as S,TutorialCard as T,Avatar as U,AvatarImage as V,AvatarFallback as W,X,ChevronRight as Y,ue as Z,Skeleton as _,Primitive as a,Linkedin as a$,Loa
591derCircle as a0,React$1 as a1,Item as a2,createRovingFocusGroupScope as a3,useDirection as a4,Root$1 as a5,cva as a6,Separator$1 as a7,Circle as a8,Plus as a9,Bookmark as aA,Share2 as aB,GlobalSearchDialog as aC,Download as aD,__vitePreload as aE,UserPlus as aF,ThumbsUp as aG,ArrowRight as aH,appsForDomain as aI,registrableDomain as aJ,appNameFromDomain as aK,normalizeDomainInput as aL,isCompleteDomain as aM,Earth as aN,Table as aO,TableHeader as aP,TableRow as aQ,TableHead as aR,TableBody as aS,TableCell as aT,HomeContent as aU,getDefaultExportFromCjs as aV,__extends as aW,__assign as aX,createCollection as aY,clamp as aZ,LanguageSwitcher as a_,GraduationCap as aa,Upload as ab,DropdownMenuSeparator as ac,getAppLogoUrl as ad,ArrowLeft as ae,ChevronDown as af,Globe as ag,Link2 as ah,Copy as ai,FileText as aj,User as ak,EllipsisVertical as al,Pencil as am,ScrollArea as an,EyeOff as ao,useParams as ap,stepilyLogo as aq,stepilyWordmark as ar,formatDuration as as,Header as at,DialogTrigger as au,Star as av,Trophy as aw,SEO as ax,Link as ay,Search as az,useComposedRefs as b,commonjsGlobal as b$,Instagram as b0,Youtube as b1,useFollowing as b2,AUTH_REDIRECT_KEY as b3,PENDING_CHECKOUT_PLAN_KEY as b4,setPendingGoogleSigninOnboarding as b5,GOOGLE_SIGNIN_ONBOARDING_PATH as b6,clearPendingGoogleSigninOnboarding as b7,useId as b8,useLocation as b9,Root$3 as bA,createDialogScope as bB,Portal$2 as bC,WarningProvider as bD,Content as bE,Title as bF,Description as bG,Close as bH,Trigger$2 as bI,Overlay as bJ,createSlottable as bK,buttonVariants as bL,Root2$2 as bM,createPopperScope as bN,VISUALLY_HIDDEN_STYLES as bO,Anchor as bP,Portal$3 as bQ,reactDomExports as bR,useCallbackRef$1 as bS,hideOthers as bT,useFocusGuards as bU,ReactRemoveScroll as bV,FocusScope as bW,DismissableLayer as bX,createSlot as bY,Content$1 as bZ,Arrow as b_,CardFooter as ba,Link$1 as bb,SUPABASE_STORAGE_ORIGIN as bc,getPendingGoogleSigninOnboardingRedirect as bd,hasPendingGoogleSigninOnboarding as be,isGoogleAuthUser as bf,isFreshGoogleAuthUser as bg,useFirstTimeOnboarding as bh,Navigate as bi,CHROME_WEB_STORE_URL as bj,createTimeoutSignal as bk,Users as bl,PRO_ENTRY_MONTHLY_PRICE as bm,PRO_VOLUME_MONTHLY_PRICE as bn,PRO_ENTRY_ANNUAL_PRICE as bo,PRO_VOLUME_ANNUAL_PRICE as bp,toSignupQuestionnaireAnswers as bq,persistSignupQuestionnaire as br,clearStoredSignupQuestionnaire as bs,setStoredSignupQuestionnaire as bt,LandingFooter as bu,useLayoutEffect2 as bv,PRO_TEAM_ANNUAL_PRICE_ID as bw,PRO_TEAM_MONTHLY_PRICE_ID as bx,PRO_ANNUAL_PRICE_ID as by,PRO_MONTHLY_PRICE_ID as bz,createLucideIcon as c,SHOW_PROMO_BANNER as c0,GeometricHeroAnimation as c1,Route$1 as c2,Lottie as c3,SOLUTION_LINKS as c4,solutionLinkKey as c5,solutionPath as c6,composeEventHandlers as d,useSize as e,createContextScope as f,cn as g,useTranslation as h,Building2 as i,jsxRuntimeExports as j,useNavigate as k,useSearchParams as l,useAuth as m,useUserRole as n,useFolders as o,useWorkspace as p,Card as q,reactExports as r,supabase as s,CardHeader as t,useControllableState as u,CardTitle as v,CardDescription as w,Button as x,Sparkles as y,DialogContent as z};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.