@wellesley/ws 1.0.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/index.mjs +88 -0
  2. package/package.json +38 -0
package/index.mjs ADDED
@@ -0,0 +1,88 @@
1
+ import*as M from"https://cdn.jsdelivr.net/npm/react@18.2.0/+esm";import Pt,{useEffect as Et,useCallback as Zn,createContext as Mv,useMemo as Wh,createElement as me,useContext as J_,useRef as At,useState as Ot,useLayoutEffect as Ax,Children as Kd,cloneElement as e1,useReducer as wC,forwardRef as gt,isValidElement as Fv,Fragment as o0}from"https://cdn.jsdelivr.net/npm/react@18.2.0/+esm";import{useSelector as Un,useDispatch as Qh}from"https://cdn.jsdelivr.net/npm/react-redux@9.1.0/+esm";import{createSelector as oi,createSlice as Rf}from"https://cdn.jsdelivr.net/npm/@reduxjs/toolkit@2.2.1/+esm";import{rootReducer as s0}from"https://cdn.jsdelivr.net/npm/@wellesley/store@1.0.78";import{userSlice as Xd,useCurrentUser as Nx,useGetUserByUserName as xC,isBlocked as bC,canFollowBack as SC,isFollowPending as EC,canUnfollow as W1,UserAvatar as t1,usePutApiV1NotesMutation as CC,useDeleteApiV1NotesByUserIdMutation as kC,usePostApiV1MuteByUserIdMutation as TC,useDeleteApiV1MuteByUserIdMutation as AC,isMuted as NC}from"https://cdn.jsdelivr.net/npm/@wellesley/user@1.0.38";import{api as qd,handleBasicResponse as pr,usePostApiV1UsersFollowByUsernameMutation as RC,usePostApiV1UsersFollowByUsernameUndoMutation as $C,usePostApiV1BlockByUserIdMutation as IC,useDeleteApiV1BlockByUserIdMutation as PC,useGetApiV1UsersFollowersQuery as OC,useGetApiV1UsersByUserIdFollowersQuery as LC,usePostApiV1UsersFollowByUsernameAcceptMutation as Rx,usePostApiV1UsersFollowByUsernameRejectMutation as $x,useGetApiV1UsersFolloweesQuery as DC,useGetApiV1UsersByUserIdFollowingQuery as MC,useGetApiV1SearchQuery as FC}from"https://cdn.jsdelivr.net/npm/@wellesley/openapi@1.0.79";import{toast as Cn}from"https://cdn.jsdelivr.net/npm/react-toastify@10.0.5/+esm";import*as a0 from"https://cdn.jsdelivr.net/npm/@radix-ui/react-tooltip@1.0.7/+esm";import{authSlice as wf}from"https://cdn.jsdelivr.net/npm/@wellesley/auth@1.0.105";import{useAppsNavigate as Ix,AppsLink as dg}from"https://cdn.jsdelivr.net/npm/@wellesley/router@1.0.8";const jC=(e,t)=>Object.keys(t).reduce(((e,n)=>e.replace(`$${n}`,t[n])),e),UC={messages:[],subscribers:[],unsubscribers:[]},n1=e=>e,BC=oi(n1,(e=>e.subscribers)),zC=oi(n1,(e=>e.unsubscribers)),WC=oi([n1,(e,t)=>t],((e,t)=>{var n;return null==(n=e.messages)?void 0:n.find((({topic:e})=>e===t))})),_l=Rf({name:"ws",initialState:UC,reducers:{subscribe:(e,{payload:t})=>{!e.subscribers.find((e=>e.id===t.id))&&e.subscribers.push(t)},onMessage:(e,{payload:t})=>{e.messages=[t,...e.messages.slice(0,100)]},unsubscribe:(e,{payload:t})=>{const n=e.subscribers.find((e=>e.id===t));n&&e.unsubscribers.push(n)},onUnsubscribe:(e,{payload:t})=>{e.subscribers=e.subscribers.filter((e=>e.id!==t)),e.unsubscribers=e.unsubscribers.filter((e=>e.id!==t))}},selectors:{selectSubscribers:BC,selectUnSubscribers:zC,selectLastUpdateFor:WC}}).injectInto(s0),ns=e=>`@${e.username}${e.domain?`@${e.domain}`:""}`,V1={data:null,isError:!1,isPending:!1,isSuccess:!1},pf=Rf({name:"user",initialState:V1,reducers:{reset:e=>{Object.assign(e,V1)},setData:(e,{payload:t})=>{e.data=t},updateData:(e,{payload:t})=>{e.data&&Object.assign(e.data,t)},setSuccess:(e,{payload:t})=>{e.isSuccess=t},setPending:(e,{payload:t})=>{e.isPending=t},setIsError:(e,{payload:t})=>{e.isError=t},setError:(e,{payload:t})=>{e.error=t},updateUser:(e,{payload:t})=>{var n;null!=(n=e.data)&&n.users&&(e.data.users=e.data.users.map((e=>t.id===e.id?t:e)))}},selectors:{selectIsError:e=>e.isError,selectError:e=>e.error,selectPending:e=>e.isPending,selectData:e=>e.data,selectAccount:e=>{var t;return null==(t=e.data)?void 0:t.account},selectUsers:e=>{var t;return null==(t=e.data)?void 0:t.users},selectUserById:(e,t)=>{var n;return null==(n=e.data)?void 0:n.users.find((({id:e})=>e===t))},selectCurrentUser:e=>{var t;return null==(t=e.data)?void 0:t.users.find((({id:t})=>{var n;return t===(null==(n=e.data)?void 0:n.selectedUserId)}))},selectSelectedUserId:e=>{var t;return null==(t=e.data)?void 0:t.selectedUserId},selectSuccess:e=>e.isSuccess,selectIsAdmin:e=>{var t;return"ADMIN"===(null==(t=e.data)?void 0:t.account.role)}}});var vf=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function VC(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var H1,ig={exports:{}},HC=ig.exports;
2
+ /**
3
+ * @license
4
+ * Lodash <https://lodash.com/>
5
+ * Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
6
+ * Released under MIT license <https://lodash.com/license>
7
+ * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
8
+ * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
9
+ */function GC(){return H1||(H1=1,e=ig,t=ig.exports,function(){function n(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function r(e,t,n,r){for(var o=-1,i=null==e?0:e.length;++o<i;){var a=e[o];t(r,a,n(a),e)}return r}function o(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e}function i(e,t){for(var n=null==e?0:e.length;n--&&!1!==t(e[n],n,e););return e}function a(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(!t(e[n],n,e))return!1;return!0}function s(e,t){for(var n=-1,r=null==e?0:e.length,o=0,i=[];++n<r;){var a=e[n];t(a,n,e)&&(i[o++]=a)}return i}function l(e,t){return!(null==e||!e.length)&&g(e,t,0)>-1}function u(e,t,n){for(var r=-1,o=null==e?0:e.length;++r<o;)if(n(t,e[r]))return!0;return!1}function c(e,t){for(var n=-1,r=null==e?0:e.length,o=Array(r);++n<r;)o[n]=t(e[n],n,e);return o}function d(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}function f(e,t,n,r){var o=-1,i=null==e?0:e.length;for(r&&i&&(n=e[++o]);++o<i;)n=t(n,e[o],o,e);return n}function p(e,t,n,r){var o=null==e?0:e.length;for(r&&o&&(n=e[--o]);o--;)n=t(n,e[o],o,e);return n}function h(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}function m(e,t,n){var r;return n(e,(function(e,n,o){if(t(e,n,o))return r=n,!1})),r}function v(e,t,n,r){for(var o=e.length,i=n+(r?1:-1);r?i--:++i<o;)if(t(e[i],i,e))return i;return-1}function g(e,t,n){return t==t?function(e,t,n){for(var r=n-1,o=e.length;++r<o;)if(e[r]===t)return r;return-1}(e,t,n):v(e,b,n)}function y(e,t,n,r){for(var o=n-1,i=e.length;++o<i;)if(r(e[o],t))return o;return-1}function b(e){return e!=e}function _(e,t){var n=null==e?0:e.length;return n?E(e,t)/n:X}function w(e){return function(t){return null==t?$:t[e]}}function x(e){return function(t){return null==e?$:e[t]}}function k(e,t,n,r,o){return o(e,(function(e,o,i){n=r?(r=!1,e):t(n,e,o,i)})),n}function E(e,t){for(var n,r=-1,o=e.length;++r<o;){var i=t(e[r]);i!==$&&(n=n===$?i:n+i)}return n}function S(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}function C(e){return e&&e.slice(0,z(e)+1).replace(Ke,"")}function N(e){return function(t){return e(t)}}function I(e,t){return c(t,(function(t){return e[t]}))}function A(e,t){return e.has(t)}function T(e,t){for(var n=-1,r=e.length;++n<r&&g(t,e[n],0)>-1;);return n}function O(e,t){for(var n=e.length;n--&&g(t,e[n],0)>-1;);return n}function D(e){return"\\"+Gt[e]}function P(e){return Wt.test(e)}function R(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}function M(e,t){return function(n){return e(t(n))}}function j(e,t){for(var n=-1,r=e.length,o=0,i=[];++n<r;){var a=e[n];a!==t&&a!==V||(e[n]=V,i[o++]=n)}return i}function L(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}function U(e){return P(e)?function(e){for(var t=$t.lastIndex=0;$t.test(e);)++t;return t}(e):pn(e)}function F(e){return P(e)?function(e){return e.match($t)||[]}(e):function(e){return e.split("")}(e)}function z(e){for(var t=e.length;t--&&Ze.test(e.charAt(t)););return t}var $,B="Expected a function",W="__lodash_hash_undefined__",V="__lodash_placeholder__",K=16,Z=32,q=64,H=128,G=256,Q=1/0,Y=9007199254740991,X=NaN,J=4294967295,ee=J-1,te=J>>>1,ne=[["ary",H],["bind",1],["bindKey",2],["curry",8],["curryRight",K],["flip",512],["partial",Z],["partialRight",q],["rearg",G]],re="[object Arguments]",oe="[object Array]",ie="[object Boolean]",ae="[object Date]",se="[object Error]",le="[object Function]",ue="[object GeneratorFunction]",ce="[object Map]",de="[object Number]",fe="[object Object]",pe="[object Promise]",he="[object RegExp]",me="[object Set]",ve="[object String]",ge="[object Symbol]",ye="[object WeakMap]",be="[object ArrayBuffer]",_e="[object DataView]",we="[object Float32Array]",xe="[object Float64Array]",ke="[object Int8Array]",Ee="[object Int16Array]",Se="[object Int32Array]",Ce="[object Uint8Array]",Ne="[object Uint8ClampedArray]",Ie="[object Uint16Array]",Ae="[object Uint32Array]",Te=/\b__p \+= '';/g,Oe=/\b(__p \+=) '' \+/g,De=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Pe=/&(?:amp|lt|gt|quot|#39);/g,Re=/[&<>"']/g,Me=RegExp(Pe.source),je=RegExp(Re.source),Le=/<%-([\s\S]+?)%>/g,Ue=/<%([\s\S]+?)%>/g,Fe=/<%=([\s\S]+?)%>/g,ze=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,$e=/^\w*$/,Be=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,We=/[\\^$.*+?()[\]{}|]/g,Ve=RegExp(We.source),Ke=/^\s+/,Ze=/\s/,qe=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,He=/\{\n\/\* \[wrapped with (.+)\] \*/,Ge=/,? & /,Qe=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Ye=/[()=,{}\[\]\/\s]/,Xe=/\\(\\)?/g,Je=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,et=/\w*$/,tt=/^[-+]0x[0-9a-f]+$/i,nt=/^0b[01]+$/i,rt=/^\[object .+?Constructor\]$/,ot=/^0o[0-7]+$/i,it=/^(?:0|[1-9]\d*)$/,at=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,st=/($^)/,lt=/['\n\r\u2028\u2029\\]/g,ut="\\ud800-\\udfff",ct="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",dt="\\u2700-\\u27bf",ft="a-z\\xdf-\\xf6\\xf8-\\xff",pt="A-Z\\xc0-\\xd6\\xd8-\\xde",ht="\\ufe0e\\ufe0f",mt="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",vt="['’]",gt="["+ut+"]",yt="["+mt+"]",bt="["+ct+"]",_t="\\d+",wt="["+dt+"]",xt="["+ft+"]",kt="[^"+ut+mt+_t+dt+ft+pt+"]",Et="\\ud83c[\\udffb-\\udfff]",St="[^"+ut+"]",Ct="(?:\\ud83c[\\udde6-\\uddff]){2}",Nt="[\\ud800-\\udbff][\\udc00-\\udfff]",It="["+pt+"]",At="\\u200d",Tt="(?:"+xt+"|"+kt+")",Ot="(?:"+It+"|"+kt+")",Dt="(?:['’](?:d|ll|m|re|s|t|ve))?",Pt="(?:['’](?:D|LL|M|RE|S|T|VE))?",Rt="(?:"+bt+"|"+Et+")?",Mt="["+ht+"]?",jt=Mt+Rt+"(?:"+At+"(?:"+[St,Ct,Nt].join("|")+")"+Mt+Rt+")*",Lt="(?:"+[wt,Ct,Nt].join("|")+")"+jt,Ut="(?:"+[St+bt+"?",bt,Ct,Nt,gt].join("|")+")",Ft=RegExp(vt,"g"),zt=RegExp(bt,"g"),$t=RegExp(Et+"(?="+Et+")|"+Ut+jt,"g"),Bt=RegExp([It+"?"+xt+"+"+Dt+"(?="+[yt,It,"$"].join("|")+")",Ot+"+"+Pt+"(?="+[yt,It+Tt,"$"].join("|")+")",It+"?"+Tt+"+"+Dt,It+"+"+Pt,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",_t,Lt].join("|"),"g"),Wt=RegExp("["+At+ut+ct+ht+"]"),Vt=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Kt=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],Zt=-1,qt={};qt[we]=qt[xe]=qt[ke]=qt[Ee]=qt[Se]=qt[Ce]=qt[Ne]=qt[Ie]=qt[Ae]=!0,qt[re]=qt[oe]=qt[be]=qt[ie]=qt[_e]=qt[ae]=qt[se]=qt[le]=qt[ce]=qt[de]=qt[fe]=qt[he]=qt[me]=qt[ve]=qt[ye]=!1;var Ht={};Ht[re]=Ht[oe]=Ht[be]=Ht[_e]=Ht[ie]=Ht[ae]=Ht[we]=Ht[xe]=Ht[ke]=Ht[Ee]=Ht[Se]=Ht[ce]=Ht[de]=Ht[fe]=Ht[he]=Ht[me]=Ht[ve]=Ht[ge]=Ht[Ce]=Ht[Ne]=Ht[Ie]=Ht[Ae]=!0,Ht[se]=Ht[le]=Ht[ye]=!1;var Gt={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Qt=parseFloat,Yt=parseInt,Xt="object"==typeof vf&&vf&&vf.Object===Object&&vf,Jt="object"==typeof self&&self&&self.Object===Object&&self,en=Xt||Jt||Function("return this")(),tn=t&&!t.nodeType&&t,nn=tn&&e&&!e.nodeType&&e,rn=nn&&nn.exports===tn,on=rn&&Xt.process,an=function(){try{return nn&&nn.require&&nn.require("util").types||on&&on.binding&&on.binding("util")}catch{}}(),sn=an&&an.isArrayBuffer,ln=an&&an.isDate,un=an&&an.isMap,cn=an&&an.isRegExp,dn=an&&an.isSet,fn=an&&an.isTypedArray,pn=w("length"),hn=x({"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"s"}),mn=x({"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"}),vn=x({"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"}),gn=function e(t){function x(e){if(Uo(e)&&!Is(e)&&!(e instanceof ct)){if(e instanceof ut)return e;if(Ii.call(e,"__wrapped__"))return uo(e)}return new ut(e)}function Ze(){}function ut(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=$}function ct(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=J,this.__views__=[]}function dt(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function ft(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function pt(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function ht(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new pt;++t<n;)this.add(e[t])}function mt(e){this.size=(this.__data__=new ft(e)).size}function vt(e,t){var n=Is(e),r=!n&&Ns(e),o=!n&&!r&&Ts(e),i=!n&&!r&&!o&&Ms(e),a=n||r||o||i,s=a?S(e.length,wi):[],l=s.length;for(var u in e)!t&&!Ii.call(e,u)||a&&("length"==u||o&&("offset"==u||"parent"==u)||i&&("buffer"==u||"byteLength"==u||"byteOffset"==u)||Hr(u,l))||s.push(u);return s}function gt(e){var t=e.length;return t?e[Pn(0,t-1)]:$}function yt(e,t){return ao(cr(e),Nt(t,0,e.length))}function bt(e){return ao(cr(e))}function _t(e,t,n){(n===$||To(e[t],n))&&(n!==$||t in e)||St(e,t,n)}function wt(e,t,n){var r=e[t];Ii.call(e,t)&&To(r,n)&&(n!==$||t in e)||St(e,t,n)}function xt(e,t){for(var n=e.length;n--;)if(To(e[n][0],t))return n;return-1}function kt(e,t,n,r){return Ca(e,(function(e,o,i){t(r,e,n(e),i)})),r}function Et(e,t){return e&&dr(t,Xo(t),e)}function St(e,t,n){"__proto__"==t&&Zi?Zi(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function Ct(e,t){for(var n=-1,r=t.length,o=hi(r),i=null==e;++n<r;)o[n]=i?$:Qo(e,t[n]);return o}function Nt(e,t,n){return e==e&&(n!==$&&(e=e<=n?e:n),t!==$&&(e=e>=t?e:t)),e}function It(e,t,n,r,i,a){var s,l=1&t,u=2&t,c=4&t;if(n&&(s=i?n(e,r,i,a):n(e)),s!==$)return s;if(!Lo(e))return e;var d=Is(e);if(d){if(s=function(e){var t=e.length,n=new e.constructor(t);return t&&"string"==typeof e[0]&&Ii.call(e,"index")&&(n.index=e.index,n.input=e.input),n}(e),!l)return cr(e,s)}else{var f=Ua(e),p=f==le||f==ue;if(Ts(e))return or(e,l);if(f==fe||f==re||p&&!i){if(s=u||p?{}:Zr(e),!l)return u?function(e,t){return dr(e,La(e),t)}(e,function(e,t){return e&&dr(t,Jo(t),e)}(s,e)):function(e,t){return dr(e,ja(e),t)}(e,Et(s,e))}else{if(!Ht[f])return i?e:{};s=function(e,t,n){var r=e.constructor;switch(t){case be:return ir(e);case ie:case ae:return new r(+e);case _e:return function(e,t){return new e.constructor(t?ir(e.buffer):e.buffer,e.byteOffset,e.byteLength)}(e,n);case we:case xe:case ke:case Ee:case Se:case Ce:case Ne:case Ie:case Ae:return ar(e,n);case ce:return new r;case de:case ve:return new r(e);case he:return function(e){var t=new e.constructor(e.source,et.exec(e));return t.lastIndex=e.lastIndex,t}(e);case me:return new r;case ge:return function(e){return ka?bi(ka.call(e)):{}}(e)}}(e,f,l)}}a||(a=new mt);var h=a.get(e);if(h)return h;a.set(e,s),Rs(e)?e.forEach((function(r){s.add(It(r,t,n,r,e,a))})):Ds(e)&&e.forEach((function(r,o){s.set(o,It(r,t,n,o,e,a))}));var m=d?$:(c?u?Ur:Lr:u?Jo:Xo)(e);return o(m||e,(function(r,o){m&&(r=e[o=r]),wt(s,o,It(r,t,n,o,e,a))})),s}function At(e,t,n){var r=n.length;if(null==e)return!r;for(e=bi(e);r--;){var o=n[r],i=t[o],a=e[o];if(a===$&&!(o in e)||!i(a))return!1}return!0}function Tt(e,t,n){if("function"!=typeof e)throw new xi(B);return $a((function(){e.apply($,n)}),t)}function Ot(e,t,n,r){var o=-1,i=l,a=!0,s=e.length,d=[],f=t.length;if(!s)return d;n&&(t=c(t,N(n))),r?(i=u,a=!1):t.length>=200&&(i=A,a=!1,t=new ht(t));e:for(;++o<s;){var p=e[o],h=null==n?p:n(p);if(p=r||0!==p?p:0,a&&h==h){for(var m=f;m--;)if(t[m]===h)continue e;d.push(p)}else i(t,h,r)||d.push(p)}return d}function Dt(e,t){var n=!0;return Ca(e,(function(e,r,o){return n=!!t(e,r,o)})),n}function Pt(e,t,n){for(var r=-1,o=e.length;++r<o;){var i=e[r],a=t(i);if(null!=a&&(s===$?a==a&&!Bo(a):n(a,s)))var s=a,l=i}return l}function Rt(e,t){var n=[];return Ca(e,(function(e,r,o){t(e,r,o)&&n.push(e)})),n}function Mt(e,t,n,r,o){var i=-1,a=e.length;for(n||(n=qr),o||(o=[]);++i<a;){var s=e[i];t>0&&n(s)?t>1?Mt(s,t-1,n,r,o):d(o,s):r||(o[o.length]=s)}return o}function jt(e,t){return e&&Ia(e,t,Xo)}function Lt(e,t){return e&&Aa(e,t,Xo)}function Ut(e,t){return s(t,(function(t){return Ro(e[t])}))}function $t(e,t){for(var n=0,r=(t=nr(t,e)).length;null!=e&&n<r;)e=e[so(t[n++])];return n&&n==r?e:$}function Wt(e,t,n){var r=t(e);return Is(e)?r:d(r,n(e))}function Gt(e){return null==e?e===$?"[object Undefined]":"[object Null]":Ki&&Ki in bi(e)?function(e){var t=Ii.call(e,Ki),n=e[Ki];try{e[Ki]=$;var r=!0}catch{}var o=Oi.call(e);return r&&(t?e[Ki]=n:delete e[Ki]),o}(e):function(e){return Oi.call(e)}(e)}function Xt(e,t){return e>t}function Jt(e,t){return null!=e&&Ii.call(e,t)}function tn(e,t){return null!=e&&t in bi(e)}function nn(e,t,n){for(var r=n?u:l,o=e[0].length,i=e.length,a=i,s=hi(i),d=1/0,f=[];a--;){var p=e[a];a&&t&&(p=c(p,N(t))),d=oa(p.length,d),s[a]=!n&&(t||o>=120&&p.length>=120)?new ht(a&&p):$}p=e[0];var h=-1,m=s[0];e:for(;++h<o&&f.length<d;){var v=p[h],g=t?t(v):v;if(v=n||0!==v?v:0,!(m?A(m,g):r(f,g,n))){for(a=i;--a;){var y=s[a];if(!(y?A(y,g):r(e[a],g,n)))continue e}m&&m.push(g),f.push(v)}}return f}function on(e,t,r){var o=null==(e=no(e,t=nr(t,e)))?e:e[so(mo(t))];return null==o?$:n(o,e,r)}function an(e){return Uo(e)&&Gt(e)==re}function pn(e,t,n,r,o){return e===t||(null==e||null==t||!Uo(e)&&!Uo(t)?e!=e&&t!=t:function(e,t,n,r,o,i){var a=Is(e),s=Is(t),l=a?oe:Ua(e),u=s?oe:Ua(t),c=(l=l==re?fe:l)==fe,d=(u=u==re?fe:u)==fe,f=l==u;if(f&&Ts(e)){if(!Ts(t))return!1;a=!0,c=!1}if(f&&!c)return i||(i=new mt),a||Ms(e)?Mr(e,t,n,r,o,i):function(e,t,n,r,o,i,a){switch(n){case _e:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case be:return!(e.byteLength!=t.byteLength||!i(new Li(e),new Li(t)));case ie:case ae:case de:return To(+e,+t);case se:return e.name==t.name&&e.message==t.message;case he:case ve:return e==t+"";case ce:var s=R;case me:var l=1&r;if(s||(s=L),e.size!=t.size&&!l)return!1;var u=a.get(e);if(u)return u==t;r|=2,a.set(e,t);var c=Mr(s(e),s(t),r,o,i,a);return a.delete(e),c;case ge:if(ka)return ka.call(e)==ka.call(t)}return!1}(e,t,l,n,r,o,i);if(!(1&n)){var p=c&&Ii.call(e,"__wrapped__"),h=d&&Ii.call(t,"__wrapped__");if(p||h){var m=p?e.value():e,v=h?t.value():t;return i||(i=new mt),o(m,v,n,r,i)}}return!!f&&(i||(i=new mt),function(e,t,n,r,o,i){var a=1&n,s=Lr(e),l=s.length;if(l!=Lr(t).length&&!a)return!1;for(var u=l;u--;){var c=s[u];if(!(a?c in t:Ii.call(t,c)))return!1}var d=i.get(e),f=i.get(t);if(d&&f)return d==t&&f==e;var p=!0;i.set(e,t),i.set(t,e);for(var h=a;++u<l;){var m=e[c=s[u]],v=t[c];if(r)var g=a?r(v,m,c,t,e,i):r(m,v,c,e,t,i);if(!(g===$?m===v||o(m,v,n,r,i):g)){p=!1;break}h||(h="constructor"==c)}if(p&&!h){var y=e.constructor,b=t.constructor;y!=b&&"constructor"in e&&"constructor"in t&&!("function"==typeof y&&y instanceof y&&"function"==typeof b&&b instanceof b)&&(p=!1)}return i.delete(e),i.delete(t),p}(e,t,n,r,o,i))}(e,t,n,r,pn,o))}function yn(e,t,n,r){var o=n.length,i=o,a=!r;if(null==e)return!i;for(e=bi(e);o--;){var s=n[o];if(a&&s[2]?s[1]!==e[s[0]]:!(s[0]in e))return!1}for(;++o<i;){var l=(s=n[o])[0],u=e[l],c=s[1];if(a&&s[2]){if(u===$&&!(l in e))return!1}else{var d=new mt;if(r)var f=r(u,c,l,e,t,d);if(!(f===$?pn(c,u,3,r,d):f))return!1}}return!0}function bn(e){return!(!Lo(e)||function(e){return!!Ti&&Ti in e}(e))&&(Ro(e)?Ri:rt).test(lo(e))}function _n(e){return"function"==typeof e?e:null==e?ai:"object"==typeof e?Is(e)?Cn(e[0],e[1]):Sn(e):ci(e)}function wn(e){if(!Xr(e))return na(e);var t=[];for(var n in bi(e))Ii.call(e,n)&&"constructor"!=n&&t.push(n);return t}function xn(e){if(!Lo(e))return function(e){var t=[];if(null!=e)for(var n in bi(e))t.push(n);return t}(e);var t=Xr(e),n=[];for(var r in e)("constructor"!=r||!t&&Ii.call(e,r))&&n.push(r);return n}function kn(e,t){return e<t}function En(e,t){var n=-1,r=Oo(e)?hi(e.length):[];return Ca(e,(function(e,o,i){r[++n]=t(e,o,i)})),r}function Sn(e){var t=Wr(e);return 1==t.length&&t[0][2]?eo(t[0][0],t[0][1]):function(n){return n===e||yn(n,e,t)}}function Cn(e,t){return Qr(e)&&Jr(t)?eo(so(e),t):function(n){var r=Qo(n,e);return r===$&&r===t?Yo(n,e):pn(t,r,3)}}function Nn(e,t,n,r,o){e!==t&&Ia(t,(function(i,a){if(o||(o=new mt),Lo(i))!function(e,t,n,r,o,i,a){var s=ro(e,n),l=ro(t,n),u=a.get(l);if(u)return _t(e,n,u),$;var c=i?i(s,l,n+"",e,t,a):$,d=c===$;if(d){var f=Is(l),p=!f&&Ts(l),h=!f&&!p&&Ms(l);c=l,f||p||h?Is(s)?c=s:Do(s)?c=cr(s):p?(d=!1,c=or(l,!0)):h?(d=!1,c=ar(l,!0)):c=[]:zo(l)||Ns(l)?(c=s,Ns(s)?c=Ho(s):Lo(s)&&!Ro(s)||(c=Zr(l))):d=!1}d&&(a.set(l,c),o(c,l,r,i,a),a.delete(l)),_t(e,n,c)}(e,t,a,n,Nn,r,o);else{var s=r?r(ro(e,a),i,a+"",e,t,o):$;s===$&&(s=i),_t(e,a,s)}}),Jo)}function In(e,t){var n=e.length;if(n)return Hr(t+=t<0?n:0,n)?e[t]:$}function An(e,t,n){t=t.length?c(t,(function(e){return Is(e)?function(t){return $t(t,1===e.length?e[0]:e)}:e})):[ai];var r=-1;return t=c(t,N($r())),function(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}(En(e,(function(e,n,o){return{criteria:c(t,(function(t){return t(e)})),index:++r,value:e}})),(function(e,t){return function(e,t,n){for(var r=-1,o=e.criteria,i=t.criteria,a=o.length,s=n.length;++r<a;){var l=sr(o[r],i[r]);if(l)return r>=s?l:l*("desc"==n[r]?-1:1)}return e.index-t.index}(e,t,n)}))}function Tn(e,t,n){for(var r=-1,o=t.length,i={};++r<o;){var a=t[r],s=$t(e,a);n(s,a)&&Un(i,nr(a,e),s)}return i}function On(e,t,n,r){var o=r?y:g,i=-1,a=t.length,s=e;for(e===t&&(t=cr(t)),n&&(s=c(e,N(n)));++i<a;)for(var l=0,u=t[i],d=n?n(u):u;(l=o(s,d,l,r))>-1;)s!==e&&Bi.call(s,l,1),Bi.call(e,l,1);return e}function Dn(e,t){for(var n=e?t.length:0,r=n-1;n--;){var o=t[n];if(n==r||o!==i){var i=o;Hr(o)?Bi.call(e,o,1):Hn(e,o)}}return e}function Pn(e,t){return e+Yi(sa()*(t-e+1))}function Rn(e,t){var n="";if(!e||t<1||t>Y)return n;do{t%2&&(n+=e),(t=Yi(t/2))&&(e+=e)}while(t);return n}function Mn(e,t){return Ba(to(e,t,ai),e+"")}function jn(e){return gt(ti(e))}function Ln(e,t){var n=ti(e);return ao(n,Nt(t,0,n.length))}function Un(e,t,n,r){if(!Lo(e))return e;for(var o=-1,i=(t=nr(t,e)).length,a=i-1,s=e;null!=s&&++o<i;){var l=so(t[o]),u=n;if("__proto__"===l||"constructor"===l||"prototype"===l)return e;if(o!=a){var c=s[l];(u=r?r(c,l,s):$)===$&&(u=Lo(c)?c:Hr(t[o+1])?[]:{})}wt(s,l,u),s=s[l]}return e}function Fn(e){return ao(ti(e))}function zn(e,t,n){var r=-1,o=e.length;t<0&&(t=-t>o?0:o+t),(n=n>o?o:n)<0&&(n+=o),o=t>n?0:n-t>>>0,t>>>=0;for(var i=hi(o);++r<o;)i[r]=e[r+t];return i}function $n(e,t){var n;return Ca(e,(function(e,r,o){return!(n=t(e,r,o))})),!!n}function Bn(e,t,n){var r=0,o=null==e?r:e.length;if("number"==typeof t&&t==t&&o<=te){for(;r<o;){var i=r+o>>>1,a=e[i];null!==a&&!Bo(a)&&(n?a<=t:a<t)?r=i+1:o=i}return o}return Wn(e,t,ai,n)}function Wn(e,t,n,r){var o=0,i=null==e?0:e.length;if(0===i)return 0;for(var a=(t=n(t))!=t,s=null===t,l=Bo(t),u=t===$;o<i;){var c=Yi((o+i)/2),d=n(e[c]),f=d!==$,p=null===d,h=d==d,m=Bo(d);if(a)var v=r||h;else v=u?h&&(r||f):s?h&&f&&(r||!p):l?h&&f&&!p&&(r||!m):!p&&!m&&(r?d<=t:d<t);v?o=c+1:i=c}return oa(i,ee)}function Vn(e,t){for(var n=-1,r=e.length,o=0,i=[];++n<r;){var a=e[n],s=t?t(a):a;if(!n||!To(s,l)){var l=s;i[o++]=0===a?0:a}}return i}function Kn(e){return"number"==typeof e?e:Bo(e)?X:+e}function Zn(e){if("string"==typeof e)return e;if(Is(e))return c(e,Zn)+"";if(Bo(e))return Ea?Ea.call(e):"";var t=e+"";return"0"==t&&1/e==-Q?"-0":t}function qn(e,t,n){var r=-1,o=l,i=e.length,a=!0,s=[],c=s;if(n)a=!1,o=u;else if(i>=200){var d=t?null:Ra(e);if(d)return L(d);a=!1,o=A,c=new ht}else c=t?[]:s;e:for(;++r<i;){var f=e[r],p=t?t(f):f;if(f=n||0!==f?f:0,a&&p==p){for(var h=c.length;h--;)if(c[h]===p)continue e;t&&c.push(p),s.push(f)}else o(c,p,n)||(c!==s&&c.push(p),s.push(f))}return s}function Hn(e,t){return null==(e=no(e,t=nr(t,e)))||delete e[so(mo(t))]}function Gn(e,t,n,r){return Un(e,t,n($t(e,t)),r)}function Qn(e,t,n,r){for(var o=e.length,i=r?o:-1;(r?i--:++i<o)&&t(e[i],i,e););return n?zn(e,r?0:i,r?i+1:o):zn(e,r?i+1:0,r?o:i)}function Yn(e,t){var n=e;return n instanceof ct&&(n=n.value()),f(t,(function(e,t){return t.func.apply(t.thisArg,d([e],t.args))}),n)}function Xn(e,t,n){var r=e.length;if(r<2)return r?qn(e[0]):[];for(var o=-1,i=hi(r);++o<r;)for(var a=e[o],s=-1;++s<r;)s!=o&&(i[o]=Ot(i[o]||a,e[s],t,n));return qn(Mt(i,1),t,n)}function Jn(e,t,n){for(var r=-1,o=e.length,i=t.length,a={};++r<o;)n(a,e[r],r<i?t[r]:$);return a}function er(e){return Do(e)?e:[]}function tr(e){return"function"==typeof e?e:ai}function nr(e,t){return Is(e)?e:Qr(e,t)?[e]:Wa(Go(e))}function rr(e,t,n){var r=e.length;return n=n===$?r:n,!t&&n>=r?e:zn(e,t,n)}function or(e,t){if(t)return e.slice();var n=e.length,r=Ui?Ui(n):new e.constructor(n);return e.copy(r),r}function ir(e){var t=new e.constructor(e.byteLength);return new Li(t).set(new Li(e)),t}function ar(e,t){return new e.constructor(t?ir(e.buffer):e.buffer,e.byteOffset,e.length)}function sr(e,t){if(e!==t){var n=e!==$,r=null===e,o=e==e,i=Bo(e),a=t!==$,s=null===t,l=t==t,u=Bo(t);if(!s&&!u&&!i&&e>t||i&&a&&l&&!s&&!u||r&&a&&l||!n&&l||!o)return 1;if(!r&&!i&&!u&&e<t||u&&n&&o&&!r&&!i||s&&n&&o||!a&&o||!l)return-1}return 0}function lr(e,t,n,r){for(var o=-1,i=e.length,a=n.length,s=-1,l=t.length,u=ra(i-a,0),c=hi(l+u),d=!r;++s<l;)c[s]=t[s];for(;++o<a;)(d||o<i)&&(c[n[o]]=e[o]);for(;u--;)c[s++]=e[o++];return c}function ur(e,t,n,r){for(var o=-1,i=e.length,a=-1,s=n.length,l=-1,u=t.length,c=ra(i-s,0),d=hi(c+u),f=!r;++o<c;)d[o]=e[o];for(var p=o;++l<u;)d[p+l]=t[l];for(;++a<s;)(f||o<i)&&(d[p+n[a]]=e[o++]);return d}function cr(e,t){var n=-1,r=e.length;for(t||(t=hi(r));++n<r;)t[n]=e[n];return t}function dr(e,t,n,r){var o=!n;n||(n={});for(var i=-1,a=t.length;++i<a;){var s=t[i],l=r?r(n[s],e[s],s,n,e):$;l===$&&(l=e[s]),o?St(n,s,l):wt(n,s,l)}return n}function fr(e,t){return function(n,o){var i=Is(n)?r:kt,a=t?t():{};return i(n,e,$r(o,2),a)}}function pr(e){return Mn((function(t,n){var r=-1,o=n.length,i=o>1?n[o-1]:$,a=o>2?n[2]:$;for(i=e.length>3&&"function"==typeof i?(o--,i):$,a&&Gr(n[0],n[1],a)&&(i=o<3?$:i,o=1),t=bi(t);++r<o;){var s=n[r];s&&e(t,s,r,i)}return t}))}function hr(e,t){return function(n,r){if(null==n)return n;if(!Oo(n))return e(n,r);for(var o=n.length,i=t?o:-1,a=bi(n);(t?i--:++i<o)&&!1!==r(a[i],i,a););return n}}function mr(e){return function(t,n,r){for(var o=-1,i=bi(t),a=r(t),s=a.length;s--;){var l=a[e?s:++o];if(!1===n(i[l],l,i))break}return t}}function vr(e){return function(t){var n=P(t=Go(t))?F(t):$,r=n?n[0]:t.charAt(0),o=n?rr(n,1).join(""):t.slice(1);return r[e]()+o}}function gr(e){return function(t){return f(oi(ri(t).replace(Ft,"")),e,"")}}function yr(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var n=Sa(e.prototype),r=e.apply(n,t);return Lo(r)?r:n}}function br(e){return function(t,n,r){var o=bi(t);if(!Oo(t)){var i=$r(n,3);t=Xo(t),n=function(e){return i(o[e],e,o)}}var a=e(t,n,r);return a>-1?o[i?t[a]:a]:$}}function _r(e){return jr((function(t){var n=t.length,r=n,o=ut.prototype.thru;for(e&&t.reverse();r--;){var i=t[r];if("function"!=typeof i)throw new xi(B);if(o&&!a&&"wrapper"==Fr(i))var a=new ut([],!0)}for(r=a?r:n;++r<n;){var s=Fr(i=t[r]),l="wrapper"==s?Ma(i):$;a=l&&Yr(l[0])&&424==l[1]&&!l[4].length&&1==l[9]?a[Fr(l[0])].apply(a,l[3]):1==i.length&&Yr(i)?a[s]():a.thru(i)}return function(){var e=arguments,r=e[0];if(a&&1==e.length&&Is(r))return a.plant(r).value();for(var o=0,i=n?t[o].apply(this,e):r;++o<n;)i=t[o].call(this,i);return i}}))}function wr(e,t,n,r,o,i,a,s,l,u){var c=t&H,d=1&t,f=2&t,p=24&t,h=512&t,m=f?$:yr(e);return function v(){for(var g=arguments.length,y=hi(g),b=g;b--;)y[b]=arguments[b];if(p)var _=zr(v),w=function(e,t){for(var n=e.length,r=0;n--;)e[n]===t&&++r;return r}(y,_);if(r&&(y=lr(y,r,o,p)),i&&(y=ur(y,i,a,p)),g-=w,p&&g<u)return Ir(e,t,wr,v.placeholder,n,y,j(y,_),s,l,u-g);var x=d?n:this,k=f?x[e]:e;return g=y.length,s?y=function(e,t){for(var n=e.length,r=oa(t.length,n),o=cr(e);r--;){var i=t[r];e[r]=Hr(i,n)?o[i]:$}return e}(y,s):h&&g>1&&y.reverse(),c&&l<g&&(y.length=l),this&&this!==en&&this instanceof v&&(k=m||yr(k)),k.apply(x,y)}}function xr(e,t){return function(n,r){return function(e,t,n,r){return jt(e,(function(e,o,i){t(r,n(e),o,i)})),r}(n,e,t(r),{})}}function kr(e,t){return function(n,r){var o;if(n===$&&r===$)return t;if(n!==$&&(o=n),r!==$){if(o===$)return r;"string"==typeof n||"string"==typeof r?(n=Zn(n),r=Zn(r)):(n=Kn(n),r=Kn(r)),o=e(n,r)}return o}}function Er(e){return jr((function(t){return t=c(t,N($r())),Mn((function(r){var o=this;return e(t,(function(e){return n(e,o,r)}))}))}))}function Sr(e,t){var n=(t=t===$?" ":Zn(t)).length;if(n<2)return n?Rn(t,e):t;var r=Rn(t,Qi(e/U(t)));return P(t)?rr(F(r),0,e).join(""):r.slice(0,e)}function Cr(e){return function(t,n,r){return r&&"number"!=typeof r&&Gr(t,n,r)&&(n=r=$),t=Vo(t),n===$?(n=t,t=0):n=Vo(n),function(e,t,n,r){for(var o=-1,i=ra(Qi((t-e)/(n||1)),0),a=hi(i);i--;)a[r?i:++o]=e,e+=n;return a}(t,n,r=r===$?t<n?1:-1:Vo(r),e)}}function Nr(e){return function(t,n){return"string"==typeof t&&"string"==typeof n||(t=qo(t),n=qo(n)),e(t,n)}}function Ir(e,t,n,r,o,i,a,s,l,u){var c=8&t;t|=c?Z:q,4&(t&=~(c?q:Z))||(t&=-4);var d=[e,t,o,c?i:$,c?a:$,c?$:i,c?$:a,s,l,u],f=n.apply($,d);return Yr(e)&&za(f,d),f.placeholder=r,oo(f,e,t)}function Ar(e){var t=yi[e];return function(e,n){if(e=qo(e),(n=null==n?0:oa(Ko(n),292))&&ea(e)){var r=(Go(e)+"e").split("e");return+((r=(Go(t(r[0]+"e"+(+r[1]+n)))+"e").split("e"))[0]+"e"+(+r[1]-n))}return t(e)}}function Tr(e){return function(t){var n=Ua(t);return n==ce?R(t):n==me?function(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=[e,e]})),n}(t):function(e,t){return c(t,(function(t){return[t,e[t]]}))}(t,e(t))}}function Or(e,t,r,o,i,a,s,l){var u=2&t;if(!u&&"function"!=typeof e)throw new xi(B);var c=o?o.length:0;if(c||(t&=-97,o=i=$),s=s===$?s:ra(Ko(s),0),l=l===$?l:Ko(l),c-=i?i.length:0,t&q){var d=o,f=i;o=i=$}var p=u?$:Ma(e),h=[e,t,r,o,i,d,f,a,s,l];if(p&&function(e,t){var n=e[1],r=t[1],o=n|r,i=o<131,a=r==H&&8==n||r==H&&n==G&&e[7].length<=t[8]||384==r&&t[7].length<=t[8]&&8==n;if(!i&&!a)return e;1&r&&(e[2]=t[2],o|=1&n?0:4);var s=t[3];if(s){var l=e[3];e[3]=l?lr(l,s,t[4]):s,e[4]=l?j(e[3],V):t[4]}(s=t[5])&&(l=e[5],e[5]=l?ur(l,s,t[6]):s,e[6]=l?j(e[5],V):t[6]),(s=t[7])&&(e[7]=s),r&H&&(e[8]=null==e[8]?t[8]:oa(e[8],t[8])),null==e[9]&&(e[9]=t[9]),e[0]=t[0],e[1]=o}(h,p),e=h[0],t=h[1],r=h[2],o=h[3],i=h[4],!(l=h[9]=h[9]===$?u?0:e.length:ra(h[9]-c,0))&&24&t&&(t&=-25),t&&1!=t)m=8==t||t==K?function(e,t,r){var o=yr(e);return function i(){for(var a=arguments.length,s=hi(a),l=a,u=zr(i);l--;)s[l]=arguments[l];var c=a<3&&s[0]!==u&&s[a-1]!==u?[]:j(s,u);return(a-=c.length)<r?Ir(e,t,wr,i.placeholder,$,s,c,$,$,r-a):n(this&&this!==en&&this instanceof i?o:e,this,s)}}(e,t,l):t!=Z&&33!=t||i.length?wr.apply($,h):function(e,t,r,o){var i=1&t,a=yr(e);return function t(){for(var s=-1,l=arguments.length,u=-1,c=o.length,d=hi(c+l),f=this&&this!==en&&this instanceof t?a:e;++u<c;)d[u]=o[u];for(;l--;)d[u++]=arguments[++s];return n(f,i?r:this,d)}}(e,t,r,o);else var m=function(e,t,n){var r=1&t,o=yr(e);return function t(){return(this&&this!==en&&this instanceof t?o:e).apply(r?n:this,arguments)}}(e,t,r);return oo((p?Ta:za)(m,h),e,t)}function Dr(e,t,n,r){return e===$||To(e,Si[n])&&!Ii.call(r,n)?t:e}function Pr(e,t,n,r,o,i){return Lo(e)&&Lo(t)&&(i.set(t,e),Nn(e,t,$,Pr,i),i.delete(t)),e}function Rr(e){return zo(e)?$:e}function Mr(e,t,n,r,o,i){var a=1&n,s=e.length,l=t.length;if(s!=l&&!(a&&l>s))return!1;var u=i.get(e),c=i.get(t);if(u&&c)return u==t&&c==e;var d=-1,f=!0,p=2&n?new ht:$;for(i.set(e,t),i.set(t,e);++d<s;){var m=e[d],v=t[d];if(r)var g=a?r(v,m,d,t,e,i):r(m,v,d,e,t,i);if(g!==$){if(g)continue;f=!1;break}if(p){if(!h(t,(function(e,t){if(!A(p,t)&&(m===e||o(m,e,n,r,i)))return p.push(t)}))){f=!1;break}}else if(m!==v&&!o(m,v,n,r,i)){f=!1;break}}return i.delete(e),i.delete(t),f}function jr(e){return Ba(to(e,$,po),e+"")}function Lr(e){return Wt(e,Xo,ja)}function Ur(e){return Wt(e,Jo,La)}function Fr(e){for(var t=e.name+"",n=va[t],r=Ii.call(va,t)?n.length:0;r--;){var o=n[r],i=o.func;if(null==i||i==e)return o.name}return t}function zr(e){return(Ii.call(x,"placeholder")?x:e).placeholder}function $r(){var e=x.iteratee||si;return e=e===si?_n:e,arguments.length?e(arguments[0],arguments[1]):e}function Br(e,t){var n=e.__data__;return function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}(t)?n["string"==typeof t?"string":"hash"]:n.map}function Wr(e){for(var t=Xo(e),n=t.length;n--;){var r=t[n],o=e[r];t[n]=[r,o,Jr(o)]}return t}function Vr(e,t){var n=function(e,t){return null==e?$:e[t]}(e,t);return bn(n)?n:$}function Kr(e,t,n){for(var r=-1,o=(t=nr(t,e)).length,i=!1;++r<o;){var a=so(t[r]);if(!(i=null!=e&&n(e,a)))break;e=e[a]}return i||++r!=o?i:!!(o=null==e?0:e.length)&&jo(o)&&Hr(a,o)&&(Is(e)||Ns(e))}function Zr(e){return"function"!=typeof e.constructor||Xr(e)?{}:Sa(Fi(e))}function qr(e){return Is(e)||Ns(e)||!!(Wi&&e&&e[Wi])}function Hr(e,t){var n=typeof e;return!!(t=t??Y)&&("number"==n||"symbol"!=n&&it.test(e))&&e>-1&&e%1==0&&e<t}function Gr(e,t,n){if(!Lo(n))return!1;var r=typeof t;return!!("number"==r?Oo(n)&&Hr(t,n.length):"string"==r&&t in n)&&To(n[t],e)}function Qr(e,t){if(Is(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!Bo(e))||$e.test(e)||!ze.test(e)||null!=t&&e in bi(t)}function Yr(e){var t=Fr(e),n=x[t];if("function"!=typeof n||!(t in ct.prototype))return!1;if(e===n)return!0;var r=Ma(n);return!!r&&e===r[0]}function Xr(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||Si)}function Jr(e){return e==e&&!Lo(e)}function eo(e,t){return function(n){return null!=n&&n[e]===t&&(t!==$||e in bi(n))}}function to(e,t,r){return t=ra(t===$?e.length-1:t,0),function(){for(var o=arguments,i=-1,a=ra(o.length-t,0),s=hi(a);++i<a;)s[i]=o[t+i];i=-1;for(var l=hi(t+1);++i<t;)l[i]=o[i];return l[t]=r(s),n(e,this,l)}}function no(e,t){return t.length<2?e:$t(e,zn(t,0,-1))}function ro(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}function oo(e,t,n){var r=t+"";return Ba(e,function(e,t){var n=t.length;if(!n)return e;var r=n-1;return t[r]=(n>1?"& ":"")+t[r],t=t.join(n>2?", ":" "),e.replace(qe,"{\n/* [wrapped with "+t+"] */\n")}(r,function(e,t){return o(ne,(function(n){var r="_."+n[0];t&n[1]&&!l(e,r)&&e.push(r)})),e.sort()}(function(e){var t=e.match(He);return t?t[1].split(Ge):[]}(r),n)))}function io(e){var t=0,n=0;return function(){var r=ia(),o=16-(r-n);if(n=r,o>0){if(++t>=800)return arguments[0]}else t=0;return e.apply($,arguments)}}function ao(e,t){var n=-1,r=e.length,o=r-1;for(t=t===$?r:t;++n<t;){var i=Pn(n,o),a=e[i];e[i]=e[n],e[n]=a}return e.length=t,e}function so(e){if("string"==typeof e||Bo(e))return e;var t=e+"";return"0"==t&&1/e==-Q?"-0":t}function lo(e){if(null!=e){try{return Ni.call(e)}catch{}try{return e+""}catch{}}return""}function uo(e){if(e instanceof ct)return e.clone();var t=new ut(e.__wrapped__,e.__chain__);return t.__actions__=cr(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}function co(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=null==n?0:Ko(n);return o<0&&(o=ra(r+o,0)),v(e,$r(t,3),o)}function fo(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=r-1;return n!==$&&(o=Ko(n),o=n<0?ra(r+o,0):oa(o,r-1)),v(e,$r(t,3),o,!0)}function po(e){return null!=e&&e.length?Mt(e,1):[]}function ho(e){return e&&e.length?e[0]:$}function mo(e){var t=null==e?0:e.length;return t?e[t-1]:$}function vo(e,t){return e&&e.length&&t&&t.length?On(e,t):e}function go(e){return null==e?e:la.call(e)}function yo(e){if(!e||!e.length)return[];var t=0;return e=s(e,(function(e){if(Do(e))return t=ra(e.length,t),!0})),S(t,(function(t){return c(e,w(t))}))}function bo(e,t){if(!e||!e.length)return[];var r=yo(e);return null==t?r:c(r,(function(e){return n(t,$,e)}))}function _o(e){var t=x(e);return t.__chain__=!0,t}function wo(e,t){return t(e)}function xo(e,t){return(Is(e)?o:Ca)(e,$r(t,3))}function ko(e,t){return(Is(e)?i:Na)(e,$r(t,3))}function Eo(e,t){return(Is(e)?c:En)(e,$r(t,3))}function So(e,t,n){return t=n?$:t,t=e&&null==t?e.length:t,Or(e,H,$,$,$,$,t)}function Co(e,t){var n;if("function"!=typeof t)throw new xi(B);return e=Ko(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=$),n}}function No(e,t,n){function r(t){var n=l,r=u;return l=u=$,h=t,d=e.apply(r,n)}function o(e){var n=e-p;return p===$||n>=t||n<0||v&&e-h>=c}function i(){var e=vs();return o(e)?a(e):(f=$a(i,function(e){var n=t-(e-p);return v?oa(n,c-(e-h)):n}(e)),$)}function a(e){return f=$,g&&l?r(e):(l=u=$,d)}function s(){var e=vs(),n=o(e);if(l=arguments,u=this,p=e,n){if(f===$)return function(e){return h=e,f=$a(i,t),m?r(e):d}(p);if(v)return Pa(f),f=$a(i,t),r(p)}return f===$&&(f=$a(i,t)),d}var l,u,c,d,f,p,h=0,m=!1,v=!1,g=!0;if("function"!=typeof e)throw new xi(B);return t=qo(t)||0,Lo(n)&&(m=!!n.leading,c=(v="maxWait"in n)?ra(qo(n.maxWait)||0,t):c,g="trailing"in n?!!n.trailing:g),s.cancel=function(){f!==$&&Pa(f),h=0,l=p=u=f=$},s.flush=function(){return f===$?d:a(vs())},s}function Io(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new xi(B);var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var a=e.apply(this,r);return n.cache=i.set(o,a)||i,a};return n.cache=new(Io.Cache||pt),n}function Ao(e){if("function"!=typeof e)throw new xi(B);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}function To(e,t){return e===t||e!=e&&t!=t}function Oo(e){return null!=e&&jo(e.length)&&!Ro(e)}function Do(e){return Uo(e)&&Oo(e)}function Po(e){if(!Uo(e))return!1;var t=Gt(e);return t==se||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!zo(e)}function Ro(e){if(!Lo(e))return!1;var t=Gt(e);return t==le||t==ue||"[object AsyncFunction]"==t||"[object Proxy]"==t}function Mo(e){return"number"==typeof e&&e==Ko(e)}function jo(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=Y}function Lo(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function Uo(e){return null!=e&&"object"==typeof e}function Fo(e){return"number"==typeof e||Uo(e)&&Gt(e)==de}function zo(e){if(!Uo(e)||Gt(e)!=fe)return!1;var t=Fi(e);if(null===t)return!0;var n=Ii.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&Ni.call(n)==Di}function $o(e){return"string"==typeof e||!Is(e)&&Uo(e)&&Gt(e)==ve}function Bo(e){return"symbol"==typeof e||Uo(e)&&Gt(e)==ge}function Wo(e){if(!e)return[];if(Oo(e))return $o(e)?F(e):cr(e);if(Vi&&e[Vi])return function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}(e[Vi]());var t=Ua(e);return(t==ce?R:t==me?L:ti)(e)}function Vo(e){return e?(e=qo(e))===Q||e===-Q?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}function Ko(e){var t=Vo(e),n=t%1;return t==t?n?t-n:t:0}function Zo(e){return e?Nt(Ko(e),0,J):0}function qo(e){if("number"==typeof e)return e;if(Bo(e))return X;if(Lo(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=Lo(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=C(e);var n=nt.test(e);return n||ot.test(e)?Yt(e.slice(2),n?2:8):tt.test(e)?X:+e}function Ho(e){return dr(e,Jo(e))}function Go(e){return null==e?"":Zn(e)}function Qo(e,t,n){var r=null==e?$:$t(e,t);return r===$?n:r}function Yo(e,t){return null!=e&&Kr(e,t,tn)}function Xo(e){return Oo(e)?vt(e):wn(e)}function Jo(e){return Oo(e)?vt(e,!0):xn(e)}function ei(e,t){if(null==e)return{};var n=c(Ur(e),(function(e){return[e]}));return t=$r(t),Tn(e,n,(function(e,n){return t(e,n[0])}))}function ti(e){return null==e?[]:I(e,Xo(e))}function ni(e){return sl(Go(e).toLowerCase())}function ri(e){return(e=Go(e))&&e.replace(at,hn).replace(zt,"")}function oi(e,t,n){return e=Go(e),(t=n?$:t)===$?function(e){return Vt.test(e)}(e)?function(e){return e.match(Bt)||[]}(e):function(e){return e.match(Qe)||[]}(e):e.match(t)||[]}function ii(e){return function(){return e}}function ai(e){return e}function si(e){return _n("function"==typeof e?e:It(e,1))}function li(e,t,n){var r=Xo(t),i=Ut(t,r);null!=n||Lo(t)&&(i.length||!r.length)||(n=t,t=e,e=this,i=Ut(t,Xo(t)));var a=!(Lo(n)&&"chain"in n&&!n.chain),s=Ro(e);return o(i,(function(n){var r=t[n];e[n]=r,s&&(e.prototype[n]=function(){var t=this.__chain__;if(a||t){var n=e(this.__wrapped__);return(n.__actions__=cr(this.__actions__)).push({func:r,args:arguments,thisArg:e}),n.__chain__=t,n}return r.apply(e,d([this.value()],arguments))})})),e}function ui(){}function ci(e){return Qr(e)?w(so(e)):function(e){return function(t){return $t(t,e)}}(e)}function di(){return[]}function fi(){return!1}var pi,hi=(t=null==t?en:gn.defaults(en.Object(),t,gn.pick(en,Kt))).Array,mi=t.Date,vi=t.Error,gi=t.Function,yi=t.Math,bi=t.Object,_i=t.RegExp,wi=t.String,xi=t.TypeError,ki=hi.prototype,Ei=gi.prototype,Si=bi.prototype,Ci=t["__core-js_shared__"],Ni=Ei.toString,Ii=Si.hasOwnProperty,Ai=0,Ti=(pi=/[^.]+$/.exec(Ci&&Ci.keys&&Ci.keys.IE_PROTO||""))?"Symbol(src)_1."+pi:"",Oi=Si.toString,Di=Ni.call(bi),Pi=en._,Ri=_i("^"+Ni.call(Ii).replace(We,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Mi=rn?t.Buffer:$,ji=t.Symbol,Li=t.Uint8Array,Ui=Mi?Mi.allocUnsafe:$,Fi=M(bi.getPrototypeOf,bi),zi=bi.create,$i=Si.propertyIsEnumerable,Bi=ki.splice,Wi=ji?ji.isConcatSpreadable:$,Vi=ji?ji.iterator:$,Ki=ji?ji.toStringTag:$,Zi=function(){try{var e=Vr(bi,"defineProperty");return e({},"",{}),e}catch{}}(),qi=t.clearTimeout!==en.clearTimeout&&t.clearTimeout,Hi=mi&&mi.now!==en.Date.now&&mi.now,Gi=t.setTimeout!==en.setTimeout&&t.setTimeout,Qi=yi.ceil,Yi=yi.floor,Xi=bi.getOwnPropertySymbols,Ji=Mi?Mi.isBuffer:$,ea=t.isFinite,ta=ki.join,na=M(bi.keys,bi),ra=yi.max,oa=yi.min,ia=mi.now,aa=t.parseInt,sa=yi.random,la=ki.reverse,ua=Vr(t,"DataView"),ca=Vr(t,"Map"),da=Vr(t,"Promise"),fa=Vr(t,"Set"),pa=Vr(t,"WeakMap"),ha=Vr(bi,"create"),ma=pa&&new pa,va={},ga=lo(ua),ya=lo(ca),ba=lo(da),_a=lo(fa),wa=lo(pa),xa=ji?ji.prototype:$,ka=xa?xa.valueOf:$,Ea=xa?xa.toString:$,Sa=function(){function e(){}return function(t){if(!Lo(t))return{};if(zi)return zi(t);e.prototype=t;var n=new e;return e.prototype=$,n}}();x.templateSettings={escape:Le,evaluate:Ue,interpolate:Fe,variable:"",imports:{_:x}},x.prototype=Ze.prototype,x.prototype.constructor=x,ut.prototype=Sa(Ze.prototype),ut.prototype.constructor=ut,ct.prototype=Sa(Ze.prototype),ct.prototype.constructor=ct,dt.prototype.clear=function(){this.__data__=ha?ha(null):{},this.size=0},dt.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},dt.prototype.get=function(e){var t=this.__data__;if(ha){var n=t[e];return n===W?$:n}return Ii.call(t,e)?t[e]:$},dt.prototype.has=function(e){var t=this.__data__;return ha?t[e]!==$:Ii.call(t,e)},dt.prototype.set=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=ha&&t===$?W:t,this},ft.prototype.clear=function(){this.__data__=[],this.size=0},ft.prototype.delete=function(e){var t=this.__data__,n=xt(t,e);return!(n<0||(n==t.length-1?t.pop():Bi.call(t,n,1),--this.size,0))},ft.prototype.get=function(e){var t=this.__data__,n=xt(t,e);return n<0?$:t[n][1]},ft.prototype.has=function(e){return xt(this.__data__,e)>-1},ft.prototype.set=function(e,t){var n=this.__data__,r=xt(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},pt.prototype.clear=function(){this.size=0,this.__data__={hash:new dt,map:new(ca||ft),string:new dt}},pt.prototype.delete=function(e){var t=Br(this,e).delete(e);return this.size-=t?1:0,t},pt.prototype.get=function(e){return Br(this,e).get(e)},pt.prototype.has=function(e){return Br(this,e).has(e)},pt.prototype.set=function(e,t){var n=Br(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},ht.prototype.add=ht.prototype.push=function(e){return this.__data__.set(e,W),this},ht.prototype.has=function(e){return this.__data__.has(e)},mt.prototype.clear=function(){this.__data__=new ft,this.size=0},mt.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},mt.prototype.get=function(e){return this.__data__.get(e)},mt.prototype.has=function(e){return this.__data__.has(e)},mt.prototype.set=function(e,t){var n=this.__data__;if(n instanceof ft){var r=n.__data__;if(!ca||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new pt(r)}return n.set(e,t),this.size=n.size,this};var Ca=hr(jt),Na=hr(Lt,!0),Ia=mr(),Aa=mr(!0),Ta=ma?function(e,t){return ma.set(e,t),e}:ai,Oa=Zi?function(e,t){return Zi(e,"toString",{configurable:!0,enumerable:!1,value:ii(t),writable:!0})}:ai,Da=Mn,Pa=qi||function(e){return en.clearTimeout(e)},Ra=fa&&1/L(new fa([,-0]))[1]==Q?function(e){return new fa(e)}:ui,Ma=ma?function(e){return ma.get(e)}:ui,ja=Xi?function(e){return null==e?[]:(e=bi(e),s(Xi(e),(function(t){return $i.call(e,t)})))}:di,La=Xi?function(e){for(var t=[];e;)d(t,ja(e)),e=Fi(e);return t}:di,Ua=Gt;(ua&&Ua(new ua(new ArrayBuffer(1)))!=_e||ca&&Ua(new ca)!=ce||da&&Ua(da.resolve())!=pe||fa&&Ua(new fa)!=me||pa&&Ua(new pa)!=ye)&&(Ua=function(e){var t=Gt(e),n=t==fe?e.constructor:$,r=n?lo(n):"";if(r)switch(r){case ga:return _e;case ya:return ce;case ba:return pe;case _a:return me;case wa:return ye}return t});var Fa=Ci?Ro:fi,za=io(Ta),$a=Gi||function(e,t){return en.setTimeout(e,t)},Ba=io(Oa),Wa=function(e){var t=Io(e,(function(e){return 500===n.size&&n.clear(),e})),n=t.cache;return t}((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(Be,(function(e,n,r,o){t.push(r?o.replace(Xe,"$1"):n||e)})),t})),Va=Mn((function(e,t){return Do(e)?Ot(e,Mt(t,1,Do,!0)):[]})),Ka=Mn((function(e,t){var n=mo(t);return Do(n)&&(n=$),Do(e)?Ot(e,Mt(t,1,Do,!0),$r(n,2)):[]})),Za=Mn((function(e,t){var n=mo(t);return Do(n)&&(n=$),Do(e)?Ot(e,Mt(t,1,Do,!0),$,n):[]})),qa=Mn((function(e){var t=c(e,er);return t.length&&t[0]===e[0]?nn(t):[]})),Ha=Mn((function(e){var t=mo(e),n=c(e,er);return t===mo(n)?t=$:n.pop(),n.length&&n[0]===e[0]?nn(n,$r(t,2)):[]})),Ga=Mn((function(e){var t=mo(e),n=c(e,er);return(t="function"==typeof t?t:$)&&n.pop(),n.length&&n[0]===e[0]?nn(n,$,t):[]})),Qa=Mn(vo),Ya=jr((function(e,t){var n=null==e?0:e.length,r=Ct(e,t);return Dn(e,c(t,(function(e){return Hr(e,n)?+e:e})).sort(sr)),r})),Xa=Mn((function(e){return qn(Mt(e,1,Do,!0))})),Ja=Mn((function(e){var t=mo(e);return Do(t)&&(t=$),qn(Mt(e,1,Do,!0),$r(t,2))})),es=Mn((function(e){var t=mo(e);return t="function"==typeof t?t:$,qn(Mt(e,1,Do,!0),$,t)})),ts=Mn((function(e,t){return Do(e)?Ot(e,t):[]})),ns=Mn((function(e){return Xn(s(e,Do))})),rs=Mn((function(e){var t=mo(e);return Do(t)&&(t=$),Xn(s(e,Do),$r(t,2))})),os=Mn((function(e){var t=mo(e);return t="function"==typeof t?t:$,Xn(s(e,Do),$,t)})),is=Mn(yo),as=Mn((function(e){var t=e.length,n=t>1?e[t-1]:$;return n="function"==typeof n?(e.pop(),n):$,bo(e,n)})),ss=jr((function(e){var t=e.length,n=t?e[0]:0,r=this.__wrapped__,o=function(t){return Ct(t,e)};return!(t>1||this.__actions__.length)&&r instanceof ct&&Hr(n)?((r=r.slice(n,+n+(t?1:0))).__actions__.push({func:wo,args:[o],thisArg:$}),new ut(r,this.__chain__).thru((function(e){return t&&!e.length&&e.push($),e}))):this.thru(o)})),ls=fr((function(e,t,n){Ii.call(e,n)?++e[n]:St(e,n,1)})),us=br(co),cs=br(fo),ds=fr((function(e,t,n){Ii.call(e,n)?e[n].push(t):St(e,n,[t])})),fs=Mn((function(e,t,r){var o=-1,i="function"==typeof t,a=Oo(e)?hi(e.length):[];return Ca(e,(function(e){a[++o]=i?n(t,e,r):on(e,t,r)})),a})),ps=fr((function(e,t,n){St(e,n,t)})),hs=fr((function(e,t,n){e[n?0:1].push(t)}),(function(){return[[],[]]})),ms=Mn((function(e,t){if(null==e)return[];var n=t.length;return n>1&&Gr(e,t[0],t[1])?t=[]:n>2&&Gr(t[0],t[1],t[2])&&(t=[t[0]]),An(e,Mt(t,1),[])})),vs=Hi||function(){return en.Date.now()},gs=Mn((function(e,t,n){var r=1;if(n.length){var o=j(n,zr(gs));r|=Z}return Or(e,r,t,n,o)})),ys=Mn((function(e,t,n){var r=3;if(n.length){var o=j(n,zr(ys));r|=Z}return Or(t,r,e,n,o)})),bs=Mn((function(e,t){return Tt(e,1,t)})),_s=Mn((function(e,t,n){return Tt(e,qo(t)||0,n)}));Io.Cache=pt;var ws=Da((function(e,t){var r=(t=1==t.length&&Is(t[0])?c(t[0],N($r())):c(Mt(t,1),N($r()))).length;return Mn((function(o){for(var i=-1,a=oa(o.length,r);++i<a;)o[i]=t[i].call(this,o[i]);return n(e,this,o)}))})),xs=Mn((function(e,t){return Or(e,Z,$,t,j(t,zr(xs)))})),ks=Mn((function(e,t){return Or(e,q,$,t,j(t,zr(ks)))})),Es=jr((function(e,t){return Or(e,G,$,$,$,t)})),Ss=Nr(Xt),Cs=Nr((function(e,t){return e>=t})),Ns=an(function(){return arguments}())?an:function(e){return Uo(e)&&Ii.call(e,"callee")&&!$i.call(e,"callee")},Is=hi.isArray,As=sn?N(sn):function(e){return Uo(e)&&Gt(e)==be},Ts=Ji||fi,Os=ln?N(ln):function(e){return Uo(e)&&Gt(e)==ae},Ds=un?N(un):function(e){return Uo(e)&&Ua(e)==ce},Ps=cn?N(cn):function(e){return Uo(e)&&Gt(e)==he},Rs=dn?N(dn):function(e){return Uo(e)&&Ua(e)==me},Ms=fn?N(fn):function(e){return Uo(e)&&jo(e.length)&&!!qt[Gt(e)]},js=Nr(kn),Ls=Nr((function(e,t){return e<=t})),Us=pr((function(e,t){if(Xr(t)||Oo(t))return dr(t,Xo(t),e),$;for(var n in t)Ii.call(t,n)&&wt(e,n,t[n])})),Fs=pr((function(e,t){dr(t,Jo(t),e)})),zs=pr((function(e,t,n,r){dr(t,Jo(t),e,r)})),$s=pr((function(e,t,n,r){dr(t,Xo(t),e,r)})),Bs=jr(Ct),Ws=Mn((function(e,t){e=bi(e);var n=-1,r=t.length,o=r>2?t[2]:$;for(o&&Gr(t[0],t[1],o)&&(r=1);++n<r;)for(var i=t[n],a=Jo(i),s=-1,l=a.length;++s<l;){var u=a[s],c=e[u];(c===$||To(c,Si[u])&&!Ii.call(e,u))&&(e[u]=i[u])}return e})),Vs=Mn((function(e){return e.push($,Pr),n(Gs,$,e)})),Ks=xr((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=Oi.call(t)),e[t]=n}),ii(ai)),Zs=xr((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=Oi.call(t)),Ii.call(e,t)?e[t].push(n):e[t]=[n]}),$r),qs=Mn(on),Hs=pr((function(e,t,n){Nn(e,t,n)})),Gs=pr((function(e,t,n,r){Nn(e,t,n,r)})),Qs=jr((function(e,t){var n={};if(null==e)return n;var r=!1;t=c(t,(function(t){return t=nr(t,e),r||(r=t.length>1),t})),dr(e,Ur(e),n),r&&(n=It(n,7,Rr));for(var o=t.length;o--;)Hn(n,t[o]);return n})),Ys=jr((function(e,t){return null==e?{}:function(e,t){return Tn(e,t,(function(t,n){return Yo(e,n)}))}(e,t)})),Xs=Tr(Xo),Js=Tr(Jo),el=gr((function(e,t,n){return t=t.toLowerCase(),e+(n?ni(t):t)})),tl=gr((function(e,t,n){return e+(n?"-":"")+t.toLowerCase()})),nl=gr((function(e,t,n){return e+(n?" ":"")+t.toLowerCase()})),rl=vr("toLowerCase"),ol=gr((function(e,t,n){return e+(n?"_":"")+t.toLowerCase()})),il=gr((function(e,t,n){return e+(n?" ":"")+sl(t)})),al=gr((function(e,t,n){return e+(n?" ":"")+t.toUpperCase()})),sl=vr("toUpperCase"),ll=Mn((function(e,t){try{return n(e,$,t)}catch(e){return Po(e)?e:new vi(e)}})),ul=jr((function(e,t){return o(t,(function(t){t=so(t),St(e,t,gs(e[t],e))})),e})),cl=_r(),dl=_r(!0),fl=Mn((function(e,t){return function(n){return on(n,e,t)}})),pl=Mn((function(e,t){return function(n){return on(e,n,t)}})),hl=Er(c),ml=Er(a),vl=Er(h),gl=Cr(),yl=Cr(!0),bl=kr((function(e,t){return e+t}),0),_l=Ar("ceil"),wl=kr((function(e,t){return e/t}),1),xl=Ar("floor"),kl=kr((function(e,t){return e*t}),1),El=Ar("round"),Sl=kr((function(e,t){return e-t}),0);return x.after=function(e,t){if("function"!=typeof t)throw new xi(B);return e=Ko(e),function(){if(--e<1)return t.apply(this,arguments)}},x.ary=So,x.assign=Us,x.assignIn=Fs,x.assignInWith=zs,x.assignWith=$s,x.at=Bs,x.before=Co,x.bind=gs,x.bindAll=ul,x.bindKey=ys,x.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return Is(e)?e:[e]},x.chain=_o,x.chunk=function(e,t,n){t=(n?Gr(e,t,n):t===$)?1:ra(Ko(t),0);var r=null==e?0:e.length;if(!r||t<1)return[];for(var o=0,i=0,a=hi(Qi(r/t));o<r;)a[i++]=zn(e,o,o+=t);return a},x.compact=function(e){for(var t=-1,n=null==e?0:e.length,r=0,o=[];++t<n;){var i=e[t];i&&(o[r++]=i)}return o},x.concat=function(){var e=arguments.length;if(!e)return[];for(var t=hi(e-1),n=arguments[0],r=e;r--;)t[r-1]=arguments[r];return d(Is(n)?cr(n):[n],Mt(t,1))},x.cond=function(e){var t=null==e?0:e.length,r=$r();return e=t?c(e,(function(e){if("function"!=typeof e[1])throw new xi(B);return[r(e[0]),e[1]]})):[],Mn((function(r){for(var o=-1;++o<t;){var i=e[o];if(n(i[0],this,r))return n(i[1],this,r)}}))},x.conforms=function(e){return function(e){var t=Xo(e);return function(n){return At(n,e,t)}}(It(e,1))},x.constant=ii,x.countBy=ls,x.create=function(e,t){var n=Sa(e);return null==t?n:Et(n,t)},x.curry=function e(t,n,r){var o=Or(t,8,$,$,$,$,$,n=r?$:n);return o.placeholder=e.placeholder,o},x.curryRight=function e(t,n,r){var o=Or(t,K,$,$,$,$,$,n=r?$:n);return o.placeholder=e.placeholder,o},x.debounce=No,x.defaults=Ws,x.defaultsDeep=Vs,x.defer=bs,x.delay=_s,x.difference=Va,x.differenceBy=Ka,x.differenceWith=Za,x.drop=function(e,t,n){var r=null==e?0:e.length;return r?zn(e,(t=n||t===$?1:Ko(t))<0?0:t,r):[]},x.dropRight=function(e,t,n){var r=null==e?0:e.length;return r?zn(e,0,(t=r-(t=n||t===$?1:Ko(t)))<0?0:t):[]},x.dropRightWhile=function(e,t){return e&&e.length?Qn(e,$r(t,3),!0,!0):[]},x.dropWhile=function(e,t){return e&&e.length?Qn(e,$r(t,3),!0):[]},x.fill=function(e,t,n,r){var o=null==e?0:e.length;return o?(n&&"number"!=typeof n&&Gr(e,t,n)&&(n=0,r=o),function(e,t,n,r){var o=e.length;for((n=Ko(n))<0&&(n=-n>o?0:o+n),(r=r===$||r>o?o:Ko(r))<0&&(r+=o),r=n>r?0:Zo(r);n<r;)e[n++]=t;return e}(e,t,n,r)):[]},x.filter=function(e,t){return(Is(e)?s:Rt)(e,$r(t,3))},x.flatMap=function(e,t){return Mt(Eo(e,t),1)},x.flatMapDeep=function(e,t){return Mt(Eo(e,t),Q)},x.flatMapDepth=function(e,t,n){return n=n===$?1:Ko(n),Mt(Eo(e,t),n)},x.flatten=po,x.flattenDeep=function(e){return null!=e&&e.length?Mt(e,Q):[]},x.flattenDepth=function(e,t){return null!=e&&e.length?Mt(e,t=t===$?1:Ko(t)):[]},x.flip=function(e){return Or(e,512)},x.flow=cl,x.flowRight=dl,x.fromPairs=function(e){for(var t=-1,n=null==e?0:e.length,r={};++t<n;){var o=e[t];r[o[0]]=o[1]}return r},x.functions=function(e){return null==e?[]:Ut(e,Xo(e))},x.functionsIn=function(e){return null==e?[]:Ut(e,Jo(e))},x.groupBy=ds,x.initial=function(e){return null!=e&&e.length?zn(e,0,-1):[]},x.intersection=qa,x.intersectionBy=Ha,x.intersectionWith=Ga,x.invert=Ks,x.invertBy=Zs,x.invokeMap=fs,x.iteratee=si,x.keyBy=ps,x.keys=Xo,x.keysIn=Jo,x.map=Eo,x.mapKeys=function(e,t){var n={};return t=$r(t,3),jt(e,(function(e,r,o){St(n,t(e,r,o),e)})),n},x.mapValues=function(e,t){var n={};return t=$r(t,3),jt(e,(function(e,r,o){St(n,r,t(e,r,o))})),n},x.matches=function(e){return Sn(It(e,1))},x.matchesProperty=function(e,t){return Cn(e,It(t,1))},x.memoize=Io,x.merge=Hs,x.mergeWith=Gs,x.method=fl,x.methodOf=pl,x.mixin=li,x.negate=Ao,x.nthArg=function(e){return e=Ko(e),Mn((function(t){return In(t,e)}))},x.omit=Qs,x.omitBy=function(e,t){return ei(e,Ao($r(t)))},x.once=function(e){return Co(2,e)},x.orderBy=function(e,t,n,r){return null==e?[]:(Is(t)||(t=null==t?[]:[t]),Is(n=r?$:n)||(n=null==n?[]:[n]),An(e,t,n))},x.over=hl,x.overArgs=ws,x.overEvery=ml,x.overSome=vl,x.partial=xs,x.partialRight=ks,x.partition=hs,x.pick=Ys,x.pickBy=ei,x.property=ci,x.propertyOf=function(e){return function(t){return null==e?$:$t(e,t)}},x.pull=Qa,x.pullAll=vo,x.pullAllBy=function(e,t,n){return e&&e.length&&t&&t.length?On(e,t,$r(n,2)):e},x.pullAllWith=function(e,t,n){return e&&e.length&&t&&t.length?On(e,t,$,n):e},x.pullAt=Ya,x.range=gl,x.rangeRight=yl,x.rearg=Es,x.reject=function(e,t){return(Is(e)?s:Rt)(e,Ao($r(t,3)))},x.remove=function(e,t){var n=[];if(!e||!e.length)return n;var r=-1,o=[],i=e.length;for(t=$r(t,3);++r<i;){var a=e[r];t(a,r,e)&&(n.push(a),o.push(r))}return Dn(e,o),n},x.rest=function(e,t){if("function"!=typeof e)throw new xi(B);return Mn(e,t=t===$?t:Ko(t))},x.reverse=go,x.sampleSize=function(e,t,n){return t=(n?Gr(e,t,n):t===$)?1:Ko(t),(Is(e)?yt:Ln)(e,t)},x.set=function(e,t,n){return null==e?e:Un(e,t,n)},x.setWith=function(e,t,n,r){return r="function"==typeof r?r:$,null==e?e:Un(e,t,n,r)},x.shuffle=function(e){return(Is(e)?bt:Fn)(e)},x.slice=function(e,t,n){var r=null==e?0:e.length;return r?(n&&"number"!=typeof n&&Gr(e,t,n)?(t=0,n=r):(t=null==t?0:Ko(t),n=n===$?r:Ko(n)),zn(e,t,n)):[]},x.sortBy=ms,x.sortedUniq=function(e){return e&&e.length?Vn(e):[]},x.sortedUniqBy=function(e,t){return e&&e.length?Vn(e,$r(t,2)):[]},x.split=function(e,t,n){return n&&"number"!=typeof n&&Gr(e,t,n)&&(t=n=$),(n=n===$?J:n>>>0)?(e=Go(e))&&("string"==typeof t||null!=t&&!Ps(t))&&!(t=Zn(t))&&P(e)?rr(F(e),0,n):e.split(t,n):[]},x.spread=function(e,t){if("function"!=typeof e)throw new xi(B);return t=null==t?0:ra(Ko(t),0),Mn((function(r){var o=r[t],i=rr(r,0,t);return o&&d(i,o),n(e,this,i)}))},x.tail=function(e){var t=null==e?0:e.length;return t?zn(e,1,t):[]},x.take=function(e,t,n){return e&&e.length?zn(e,0,(t=n||t===$?1:Ko(t))<0?0:t):[]},x.takeRight=function(e,t,n){var r=null==e?0:e.length;return r?zn(e,(t=r-(t=n||t===$?1:Ko(t)))<0?0:t,r):[]},x.takeRightWhile=function(e,t){return e&&e.length?Qn(e,$r(t,3),!1,!0):[]},x.takeWhile=function(e,t){return e&&e.length?Qn(e,$r(t,3)):[]},x.tap=function(e,t){return t(e),e},x.throttle=function(e,t,n){var r=!0,o=!0;if("function"!=typeof e)throw new xi(B);return Lo(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),No(e,t,{leading:r,maxWait:t,trailing:o})},x.thru=wo,x.toArray=Wo,x.toPairs=Xs,x.toPairsIn=Js,x.toPath=function(e){return Is(e)?c(e,so):Bo(e)?[e]:cr(Wa(Go(e)))},x.toPlainObject=Ho,x.transform=function(e,t,n){var r=Is(e),i=r||Ts(e)||Ms(e);if(t=$r(t,4),null==n){var a=e&&e.constructor;n=i?r?new a:[]:Lo(e)&&Ro(a)?Sa(Fi(e)):{}}return(i?o:jt)(e,(function(e,r,o){return t(n,e,r,o)})),n},x.unary=function(e){return So(e,1)},x.union=Xa,x.unionBy=Ja,x.unionWith=es,x.uniq=function(e){return e&&e.length?qn(e):[]},x.uniqBy=function(e,t){return e&&e.length?qn(e,$r(t,2)):[]},x.uniqWith=function(e,t){return t="function"==typeof t?t:$,e&&e.length?qn(e,$,t):[]},x.unset=function(e,t){return null==e||Hn(e,t)},x.unzip=yo,x.unzipWith=bo,x.update=function(e,t,n){return null==e?e:Gn(e,t,tr(n))},x.updateWith=function(e,t,n,r){return r="function"==typeof r?r:$,null==e?e:Gn(e,t,tr(n),r)},x.values=ti,x.valuesIn=function(e){return null==e?[]:I(e,Jo(e))},x.without=ts,x.words=oi,x.wrap=function(e,t){return xs(tr(t),e)},x.xor=ns,x.xorBy=rs,x.xorWith=os,x.zip=is,x.zipObject=function(e,t){return Jn(e||[],t||[],wt)},x.zipObjectDeep=function(e,t){return Jn(e||[],t||[],Un)},x.zipWith=as,x.entries=Xs,x.entriesIn=Js,x.extend=Fs,x.extendWith=zs,li(x,x),x.add=bl,x.attempt=ll,x.camelCase=el,x.capitalize=ni,x.ceil=_l,x.clamp=function(e,t,n){return n===$&&(n=t,t=$),n!==$&&(n=(n=qo(n))==n?n:0),t!==$&&(t=(t=qo(t))==t?t:0),Nt(qo(e),t,n)},x.clone=function(e){return It(e,4)},x.cloneDeep=function(e){return It(e,5)},x.cloneDeepWith=function(e,t){return It(e,5,t="function"==typeof t?t:$)},x.cloneWith=function(e,t){return It(e,4,t="function"==typeof t?t:$)},x.conformsTo=function(e,t){return null==t||At(e,t,Xo(t))},x.deburr=ri,x.defaultTo=function(e,t){return null==e||e!=e?t:e},x.divide=wl,x.endsWith=function(e,t,n){e=Go(e),t=Zn(t);var r=e.length,o=n=n===$?r:Nt(Ko(n),0,r);return(n-=t.length)>=0&&e.slice(n,o)==t},x.eq=To,x.escape=function(e){return(e=Go(e))&&je.test(e)?e.replace(Re,mn):e},x.escapeRegExp=function(e){return(e=Go(e))&&Ve.test(e)?e.replace(We,"\\$&"):e},x.every=function(e,t,n){var r=Is(e)?a:Dt;return n&&Gr(e,t,n)&&(t=$),r(e,$r(t,3))},x.find=us,x.findIndex=co,x.findKey=function(e,t){return m(e,$r(t,3),jt)},x.findLast=cs,x.findLastIndex=fo,x.findLastKey=function(e,t){return m(e,$r(t,3),Lt)},x.floor=xl,x.forEach=xo,x.forEachRight=ko,x.forIn=function(e,t){return null==e?e:Ia(e,$r(t,3),Jo)},x.forInRight=function(e,t){return null==e?e:Aa(e,$r(t,3),Jo)},x.forOwn=function(e,t){return e&&jt(e,$r(t,3))},x.forOwnRight=function(e,t){return e&&Lt(e,$r(t,3))},x.get=Qo,x.gt=Ss,x.gte=Cs,x.has=function(e,t){return null!=e&&Kr(e,t,Jt)},x.hasIn=Yo,x.head=ho,x.identity=ai,x.includes=function(e,t,n,r){e=Oo(e)?e:ti(e),n=n&&!r?Ko(n):0;var o=e.length;return n<0&&(n=ra(o+n,0)),$o(e)?n<=o&&e.indexOf(t,n)>-1:!!o&&g(e,t,n)>-1},x.indexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=null==n?0:Ko(n);return o<0&&(o=ra(r+o,0)),g(e,t,o)},x.inRange=function(e,t,n){return t=Vo(t),n===$?(n=t,t=0):n=Vo(n),function(e,t,n){return e>=oa(t,n)&&e<ra(t,n)}(e=qo(e),t,n)},x.invoke=qs,x.isArguments=Ns,x.isArray=Is,x.isArrayBuffer=As,x.isArrayLike=Oo,x.isArrayLikeObject=Do,x.isBoolean=function(e){return!0===e||!1===e||Uo(e)&&Gt(e)==ie},x.isBuffer=Ts,x.isDate=Os,x.isElement=function(e){return Uo(e)&&1===e.nodeType&&!zo(e)},x.isEmpty=function(e){if(null==e)return!0;if(Oo(e)&&(Is(e)||"string"==typeof e||"function"==typeof e.splice||Ts(e)||Ms(e)||Ns(e)))return!e.length;var t=Ua(e);if(t==ce||t==me)return!e.size;if(Xr(e))return!wn(e).length;for(var n in e)if(Ii.call(e,n))return!1;return!0},x.isEqual=function(e,t){return pn(e,t)},x.isEqualWith=function(e,t,n){var r=(n="function"==typeof n?n:$)?n(e,t):$;return r===$?pn(e,t,$,n):!!r},x.isError=Po,x.isFinite=function(e){return"number"==typeof e&&ea(e)},x.isFunction=Ro,x.isInteger=Mo,x.isLength=jo,x.isMap=Ds,x.isMatch=function(e,t){return e===t||yn(e,t,Wr(t))},x.isMatchWith=function(e,t,n){return n="function"==typeof n?n:$,yn(e,t,Wr(t),n)},x.isNaN=function(e){return Fo(e)&&e!=+e},x.isNative=function(e){if(Fa(e))throw new vi("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return bn(e)},x.isNil=function(e){return null==e},x.isNull=function(e){return null===e},x.isNumber=Fo,x.isObject=Lo,x.isObjectLike=Uo,x.isPlainObject=zo,x.isRegExp=Ps,x.isSafeInteger=function(e){return Mo(e)&&e>=-Y&&e<=Y},x.isSet=Rs,x.isString=$o,x.isSymbol=Bo,x.isTypedArray=Ms,x.isUndefined=function(e){return e===$},x.isWeakMap=function(e){return Uo(e)&&Ua(e)==ye},x.isWeakSet=function(e){return Uo(e)&&"[object WeakSet]"==Gt(e)},x.join=function(e,t){return null==e?"":ta.call(e,t)},x.kebabCase=tl,x.last=mo,x.lastIndexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=r;return n!==$&&(o=(o=Ko(n))<0?ra(r+o,0):oa(o,r-1)),t==t?function(e,t,n){for(var r=n+1;r--;)if(e[r]===t)return r;return r}(e,t,o):v(e,b,o,!0)},x.lowerCase=nl,x.lowerFirst=rl,x.lt=js,x.lte=Ls,x.max=function(e){return e&&e.length?Pt(e,ai,Xt):$},x.maxBy=function(e,t){return e&&e.length?Pt(e,$r(t,2),Xt):$},x.mean=function(e){return _(e,ai)},x.meanBy=function(e,t){return _(e,$r(t,2))},x.min=function(e){return e&&e.length?Pt(e,ai,kn):$},x.minBy=function(e,t){return e&&e.length?Pt(e,$r(t,2),kn):$},x.stubArray=di,x.stubFalse=fi,x.stubObject=function(){return{}},x.stubString=function(){return""},x.stubTrue=function(){return!0},x.multiply=kl,x.nth=function(e,t){return e&&e.length?In(e,Ko(t)):$},x.noConflict=function(){return en._===this&&(en._=Pi),this},x.noop=ui,x.now=vs,x.pad=function(e,t,n){e=Go(e);var r=(t=Ko(t))?U(e):0;if(!t||r>=t)return e;var o=(t-r)/2;return Sr(Yi(o),n)+e+Sr(Qi(o),n)},x.padEnd=function(e,t,n){e=Go(e);var r=(t=Ko(t))?U(e):0;return t&&r<t?e+Sr(t-r,n):e},x.padStart=function(e,t,n){e=Go(e);var r=(t=Ko(t))?U(e):0;return t&&r<t?Sr(t-r,n)+e:e},x.parseInt=function(e,t,n){return n||null==t?t=0:t&&(t=+t),aa(Go(e).replace(Ke,""),t||0)},x.random=function(e,t,n){if(n&&"boolean"!=typeof n&&Gr(e,t,n)&&(t=n=$),n===$&&("boolean"==typeof t?(n=t,t=$):"boolean"==typeof e&&(n=e,e=$)),e===$&&t===$?(e=0,t=1):(e=Vo(e),t===$?(t=e,e=0):t=Vo(t)),e>t){var r=e;e=t,t=r}if(n||e%1||t%1){var o=sa();return oa(e+o*(t-e+Qt("1e-"+((o+"").length-1))),t)}return Pn(e,t)},x.reduce=function(e,t,n){var r=Is(e)?f:k,o=arguments.length<3;return r(e,$r(t,4),n,o,Ca)},x.reduceRight=function(e,t,n){var r=Is(e)?p:k,o=arguments.length<3;return r(e,$r(t,4),n,o,Na)},x.repeat=function(e,t,n){return t=(n?Gr(e,t,n):t===$)?1:Ko(t),Rn(Go(e),t)},x.replace=function(){var e=arguments,t=Go(e[0]);return e.length<3?t:t.replace(e[1],e[2])},x.result=function(e,t,n){var r=-1,o=(t=nr(t,e)).length;for(o||(o=1,e=$);++r<o;){var i=null==e?$:e[so(t[r])];i===$&&(r=o,i=n),e=Ro(i)?i.call(e):i}return e},x.round=El,x.runInContext=e,x.sample=function(e){return(Is(e)?gt:jn)(e)},x.size=function(e){if(null==e)return 0;if(Oo(e))return $o(e)?U(e):e.length;var t=Ua(e);return t==ce||t==me?e.size:wn(e).length},x.snakeCase=ol,x.some=function(e,t,n){var r=Is(e)?h:$n;return n&&Gr(e,t,n)&&(t=$),r(e,$r(t,3))},x.sortedIndex=function(e,t){return Bn(e,t)},x.sortedIndexBy=function(e,t,n){return Wn(e,t,$r(n,2))},x.sortedIndexOf=function(e,t){var n=null==e?0:e.length;if(n){var r=Bn(e,t);if(r<n&&To(e[r],t))return r}return-1},x.sortedLastIndex=function(e,t){return Bn(e,t,!0)},x.sortedLastIndexBy=function(e,t,n){return Wn(e,t,$r(n,2),!0)},x.sortedLastIndexOf=function(e,t){if(null!=e&&e.length){var n=Bn(e,t,!0)-1;if(To(e[n],t))return n}return-1},x.startCase=il,x.startsWith=function(e,t,n){return e=Go(e),n=null==n?0:Nt(Ko(n),0,e.length),t=Zn(t),e.slice(n,n+t.length)==t},x.subtract=Sl,x.sum=function(e){return e&&e.length?E(e,ai):0},x.sumBy=function(e,t){return e&&e.length?E(e,$r(t,2)):0},x.template=function(e,t,n){var r=x.templateSettings;n&&Gr(e,t,n)&&(t=$),e=Go(e),t=zs({},t,r,Dr);var o,i,a=zs({},t.imports,r.imports,Dr),s=Xo(a),l=I(a,s),u=0,c=t.interpolate||st,d="__p += '",f=_i((t.escape||st).source+"|"+c.source+"|"+(c===Fe?Je:st).source+"|"+(t.evaluate||st).source+"|$","g"),p="//# sourceURL="+(Ii.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Zt+"]")+"\n";e.replace(f,(function(t,n,r,a,s,l){return r||(r=a),d+=e.slice(u,l).replace(lt,D),n&&(o=!0,d+="' +\n__e("+n+") +\n'"),s&&(i=!0,d+="';\n"+s+";\n__p += '"),r&&(d+="' +\n((__t = ("+r+")) == null ? '' : __t) +\n'"),u=l+t.length,t})),d+="';\n";var h=Ii.call(t,"variable")&&t.variable;if(h){if(Ye.test(h))throw new vi("Invalid `variable` option passed into `_.template`")}else d="with (obj) {\n"+d+"\n}\n";d=(i?d.replace(Te,""):d).replace(Oe,"$1").replace(De,"$1;"),d="function("+(h||"obj")+") {\n"+(h?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(o?", __e = _.escape":"")+(i?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+d+"return __p\n}";var m=ll((function(){return gi(s,p+"return "+d).apply($,l)}));if(m.source=d,Po(m))throw m;return m},x.times=function(e,t){if((e=Ko(e))<1||e>Y)return[];var n=J,r=oa(e,J);t=$r(t),e-=J;for(var o=S(r,t);++n<e;)t(n);return o},x.toFinite=Vo,x.toInteger=Ko,x.toLength=Zo,x.toLower=function(e){return Go(e).toLowerCase()},x.toNumber=qo,x.toSafeInteger=function(e){return e?Nt(Ko(e),-Y,Y):0===e?e:0},x.toString=Go,x.toUpper=function(e){return Go(e).toUpperCase()},x.trim=function(e,t,n){if((e=Go(e))&&(n||t===$))return C(e);if(!e||!(t=Zn(t)))return e;var r=F(e),o=F(t);return rr(r,T(r,o),O(r,o)+1).join("")},x.trimEnd=function(e,t,n){if((e=Go(e))&&(n||t===$))return e.slice(0,z(e)+1);if(!e||!(t=Zn(t)))return e;var r=F(e);return rr(r,0,O(r,F(t))+1).join("")},x.trimStart=function(e,t,n){if((e=Go(e))&&(n||t===$))return e.replace(Ke,"");if(!e||!(t=Zn(t)))return e;var r=F(e);return rr(r,T(r,F(t))).join("")},x.truncate=function(e,t){var n=30,r="...";if(Lo(t)){var o="separator"in t?t.separator:o;n="length"in t?Ko(t.length):n,r="omission"in t?Zn(t.omission):r}var i=(e=Go(e)).length;if(P(e)){var a=F(e);i=a.length}if(n>=i)return e;var s=n-U(r);if(s<1)return r;var l=a?rr(a,0,s).join(""):e.slice(0,s);if(o===$)return l+r;if(a&&(s+=l.length-s),Ps(o)){if(e.slice(s).search(o)){var u,c=l;for(o.global||(o=_i(o.source,Go(et.exec(o))+"g")),o.lastIndex=0;u=o.exec(c);)var d=u.index;l=l.slice(0,d===$?s:d)}}else if(e.indexOf(Zn(o),s)!=s){var f=l.lastIndexOf(o);f>-1&&(l=l.slice(0,f))}return l+r},x.unescape=function(e){return(e=Go(e))&&Me.test(e)?e.replace(Pe,vn):e},x.uniqueId=function(e){var t=++Ai;return Go(e)+t},x.upperCase=al,x.upperFirst=sl,x.each=xo,x.eachRight=ko,x.first=ho,li(x,function(){var e={};return jt(x,(function(t,n){Ii.call(x.prototype,n)||(e[n]=t)})),e}(),{chain:!1}),x.VERSION="4.17.21",o(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(e){x[e].placeholder=x})),o(["drop","take"],(function(e,t){ct.prototype[e]=function(n){n=n===$?1:ra(Ko(n),0);var r=this.__filtered__&&!t?new ct(this):this.clone();return r.__filtered__?r.__takeCount__=oa(n,r.__takeCount__):r.__views__.push({size:oa(n,J),type:e+(r.__dir__<0?"Right":"")}),r},ct.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}})),o(["filter","map","takeWhile"],(function(e,t){var n=t+1,r=1==n||3==n;ct.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:$r(e,3),type:n}),t.__filtered__=t.__filtered__||r,t}})),o(["head","last"],(function(e,t){var n="take"+(t?"Right":"");ct.prototype[e]=function(){return this[n](1).value()[0]}})),o(["initial","tail"],(function(e,t){var n="drop"+(t?"":"Right");ct.prototype[e]=function(){return this.__filtered__?new ct(this):this[n](1)}})),ct.prototype.compact=function(){return this.filter(ai)},ct.prototype.find=function(e){return this.filter(e).head()},ct.prototype.findLast=function(e){return this.reverse().find(e)},ct.prototype.invokeMap=Mn((function(e,t){return"function"==typeof e?new ct(this):this.map((function(n){return on(n,e,t)}))})),ct.prototype.reject=function(e){return this.filter(Ao($r(e)))},ct.prototype.slice=function(e,t){e=Ko(e);var n=this;return n.__filtered__&&(e>0||t<0)?new ct(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),t!==$&&(n=(t=Ko(t))<0?n.dropRight(-t):n.take(t-e)),n)},ct.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},ct.prototype.toArray=function(){return this.take(J)},jt(ct.prototype,(function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),r=/^(?:head|last)$/.test(t),o=x[r?"take"+("last"==t?"Right":""):t],i=r||/^find/.test(t);o&&(x.prototype[t]=function(){var t=this.__wrapped__,a=r?[1]:arguments,s=t instanceof ct,l=a[0],u=s||Is(t),c=function(e){var t=o.apply(x,d([e],a));return r&&f?t[0]:t};u&&n&&"function"==typeof l&&1!=l.length&&(s=u=!1);var f=this.__chain__,p=!!this.__actions__.length,h=i&&!f,m=s&&!p;if(!i&&u){t=m?t:new ct(this);var v=e.apply(t,a);return v.__actions__.push({func:wo,args:[c],thisArg:$}),new ut(v,f)}return h&&m?e.apply(this,a):(v=this.thru(c),h?r?v.value()[0]:v.value():v)})})),o(["pop","push","shift","sort","splice","unshift"],(function(e){var t=ki[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",r=/^(?:pop|shift)$/.test(e);x.prototype[e]=function(){var e=arguments;if(r&&!this.__chain__){var o=this.value();return t.apply(Is(o)?o:[],e)}return this[n]((function(n){return t.apply(Is(n)?n:[],e)}))}})),jt(ct.prototype,(function(e,t){var n=x[t];if(n){var r=n.name+"";Ii.call(va,r)||(va[r]=[]),va[r].push({name:t,func:n})}})),va[wr($,2).name]=[{name:"wrapper",func:$}],ct.prototype.clone=function(){var e=new ct(this.__wrapped__);return e.__actions__=cr(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=cr(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=cr(this.__views__),e},ct.prototype.reverse=function(){if(this.__filtered__){var e=new ct(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},ct.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,n=Is(e),r=t<0,o=n?e.length:0,i=function(e,t,n){for(var r=-1,o=n.length;++r<o;){var i=n[r],a=i.size;switch(i.type){case"drop":e+=a;break;case"dropRight":t-=a;break;case"take":t=oa(t,e+a);break;case"takeRight":e=ra(e,t-a)}}return{start:e,end:t}}(0,o,this.__views__),a=i.start,s=i.end,l=s-a,u=r?s:a-1,c=this.__iteratees__,d=c.length,f=0,p=oa(l,this.__takeCount__);if(!n||!r&&o==l&&p==l)return Yn(e,this.__actions__);var h=[];e:for(;l--&&f<p;){for(var m=-1,v=e[u+=t];++m<d;){var g=c[m],y=g.iteratee,b=g.type,_=y(v);if(2==b)v=_;else if(!_){if(1==b)continue e;break e}}h[f++]=v}return h},x.prototype.at=ss,x.prototype.chain=function(){return _o(this)},x.prototype.commit=function(){return new ut(this.value(),this.__chain__)},x.prototype.next=function(){this.__values__===$&&(this.__values__=Wo(this.value()));var e=this.__index__>=this.__values__.length;return{done:e,value:e?$:this.__values__[this.__index__++]}},x.prototype.plant=function(e){for(var t,n=this;n instanceof Ze;){var r=uo(n);r.__index__=0,r.__values__=$,t?o.__wrapped__=r:t=r;var o=r;n=n.__wrapped__}return o.__wrapped__=e,t},x.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof ct){var t=e;return this.__actions__.length&&(t=new ct(this)),(t=t.reverse()).__actions__.push({func:wo,args:[go],thisArg:$}),new ut(t,this.__chain__)}return this.thru(go)},x.prototype.toJSON=x.prototype.valueOf=x.prototype.value=function(){return Yn(this.__wrapped__,this.__actions__)},x.prototype.first=x.prototype.head,Vi&&(x.prototype[Vi]=function(){return this}),x}();nn?((nn.exports=gn)._=gn,tn._=gn):en._=gn}.call(HC)),ig.exports;var e,t}var G1,Yy,Z1,Qy,K1,Xy,q1,qy={};function ZC(){return G1||(G1=1,(e=qy).aliasToReal={each:"forEach",eachRight:"forEachRight",entries:"toPairs",entriesIn:"toPairsIn",extend:"assignIn",extendAll:"assignInAll",extendAllWith:"assignInAllWith",extendWith:"assignInWith",first:"head",conforms:"conformsTo",matches:"isMatch",property:"get",__:"placeholder",F:"stubFalse",T:"stubTrue",all:"every",allPass:"overEvery",always:"constant",any:"some",anyPass:"overSome",apply:"spread",assoc:"set",assocPath:"set",complement:"negate",compose:"flowRight",contains:"includes",dissoc:"unset",dissocPath:"unset",dropLast:"dropRight",dropLastWhile:"dropRightWhile",equals:"isEqual",identical:"eq",indexBy:"keyBy",init:"initial",invertObj:"invert",juxt:"over",omitAll:"omit",nAry:"ary",path:"get",pathEq:"matchesProperty",pathOr:"getOr",paths:"at",pickAll:"pick",pipe:"flow",pluck:"map",prop:"get",propEq:"matchesProperty",propOr:"getOr",props:"at",symmetricDifference:"xor",symmetricDifferenceBy:"xorBy",symmetricDifferenceWith:"xorWith",takeLast:"takeRight",takeLastWhile:"takeRightWhile",unapply:"rest",unnest:"flatten",useWith:"overArgs",where:"conformsTo",whereEq:"isMatch",zipObj:"zipObject"},e.aryMethod={1:["assignAll","assignInAll","attempt","castArray","ceil","create","curry","curryRight","defaultsAll","defaultsDeepAll","floor","flow","flowRight","fromPairs","invert","iteratee","memoize","method","mergeAll","methodOf","mixin","nthArg","over","overEvery","overSome","rest","reverse","round","runInContext","spread","template","trim","trimEnd","trimStart","uniqueId","words","zipAll"],2:["add","after","ary","assign","assignAllWith","assignIn","assignInAllWith","at","before","bind","bindAll","bindKey","chunk","cloneDeepWith","cloneWith","concat","conformsTo","countBy","curryN","curryRightN","debounce","defaults","defaultsDeep","defaultTo","delay","difference","divide","drop","dropRight","dropRightWhile","dropWhile","endsWith","eq","every","filter","find","findIndex","findKey","findLast","findLastIndex","findLastKey","flatMap","flatMapDeep","flattenDepth","forEach","forEachRight","forIn","forInRight","forOwn","forOwnRight","get","groupBy","gt","gte","has","hasIn","includes","indexOf","intersection","invertBy","invoke","invokeMap","isEqual","isMatch","join","keyBy","lastIndexOf","lt","lte","map","mapKeys","mapValues","matchesProperty","maxBy","meanBy","merge","mergeAllWith","minBy","multiply","nth","omit","omitBy","overArgs","pad","padEnd","padStart","parseInt","partial","partialRight","partition","pick","pickBy","propertyOf","pull","pullAll","pullAt","random","range","rangeRight","rearg","reject","remove","repeat","restFrom","result","sampleSize","some","sortBy","sortedIndex","sortedIndexOf","sortedLastIndex","sortedLastIndexOf","sortedUniqBy","split","spreadFrom","startsWith","subtract","sumBy","take","takeRight","takeRightWhile","takeWhile","tap","throttle","thru","times","trimChars","trimCharsEnd","trimCharsStart","truncate","union","uniqBy","uniqWith","unset","unzipWith","without","wrap","xor","zip","zipObject","zipObjectDeep"],3:["assignInWith","assignWith","clamp","differenceBy","differenceWith","findFrom","findIndexFrom","findLastFrom","findLastIndexFrom","getOr","includesFrom","indexOfFrom","inRange","intersectionBy","intersectionWith","invokeArgs","invokeArgsMap","isEqualWith","isMatchWith","flatMapDepth","lastIndexOfFrom","mergeWith","orderBy","padChars","padCharsEnd","padCharsStart","pullAllBy","pullAllWith","rangeStep","rangeStepRight","reduce","reduceRight","replace","set","slice","sortedIndexBy","sortedLastIndexBy","transform","unionBy","unionWith","update","xorBy","xorWith","zipWith"],4:["fill","setWith","updateWith"]},e.aryRearg={2:[1,0],3:[2,0,1],4:[3,2,0,1]},e.iterateeAry={dropRightWhile:1,dropWhile:1,every:1,filter:1,find:1,findFrom:1,findIndex:1,findIndexFrom:1,findKey:1,findLast:1,findLastFrom:1,findLastIndex:1,findLastIndexFrom:1,findLastKey:1,flatMap:1,flatMapDeep:1,flatMapDepth:1,forEach:1,forEachRight:1,forIn:1,forInRight:1,forOwn:1,forOwnRight:1,map:1,mapKeys:1,mapValues:1,partition:1,reduce:2,reduceRight:2,reject:1,remove:1,some:1,takeRightWhile:1,takeWhile:1,times:1,transform:2},e.iterateeRearg={mapKeys:[1],reduceRight:[1,0]},e.methodRearg={assignInAllWith:[1,0],assignInWith:[1,2,0],assignAllWith:[1,0],assignWith:[1,2,0],differenceBy:[1,2,0],differenceWith:[1,2,0],getOr:[2,1,0],intersectionBy:[1,2,0],intersectionWith:[1,2,0],isEqualWith:[1,2,0],isMatchWith:[2,1,0],mergeAllWith:[1,0],mergeWith:[1,2,0],padChars:[2,1,0],padCharsEnd:[2,1,0],padCharsStart:[2,1,0],pullAllBy:[2,1,0],pullAllWith:[2,1,0],rangeStep:[1,2,0],rangeStepRight:[1,2,0],setWith:[3,1,2,0],sortedIndexBy:[2,1,0],sortedLastIndexBy:[2,1,0],unionBy:[1,2,0],unionWith:[1,2,0],updateWith:[3,1,2,0],xorBy:[1,2,0],xorWith:[1,2,0],zipWith:[1,2,0]},e.methodSpread={assignAll:{start:0},assignAllWith:{start:0},assignInAll:{start:0},assignInAllWith:{start:0},defaultsAll:{start:0},defaultsDeepAll:{start:0},invokeArgs:{start:2},invokeArgsMap:{start:2},mergeAll:{start:0},mergeAllWith:{start:0},partial:{start:1},partialRight:{start:1},without:{start:1},zipAll:{start:0}},e.mutate={array:{fill:!0,pull:!0,pullAll:!0,pullAllBy:!0,pullAllWith:!0,pullAt:!0,remove:!0,reverse:!0},object:{assign:!0,assignAll:!0,assignAllWith:!0,assignIn:!0,assignInAll:!0,assignInAllWith:!0,assignInWith:!0,assignWith:!0,defaults:!0,defaultsAll:!0,defaultsDeep:!0,defaultsDeepAll:!0,merge:!0,mergeAll:!0,mergeAllWith:!0,mergeWith:!0},set:{set:!0,setWith:!0,unset:!0,update:!0,updateWith:!0}},e.realToAlias=function(){var t=Object.prototype.hasOwnProperty,n=e.aliasToReal,r={};for(var o in n){var i=n[o];t.call(r,i)?r[i].push(o):r[i]=[o]}return r}(),e.remap={assignAll:"assign",assignAllWith:"assignWith",assignInAll:"assignIn",assignInAllWith:"assignInWith",curryN:"curry",curryRightN:"curryRight",defaultsAll:"defaults",defaultsDeepAll:"defaultsDeep",findFrom:"find",findIndexFrom:"findIndex",findLastFrom:"findLast",findLastIndexFrom:"findLastIndex",getOr:"get",includesFrom:"includes",indexOfFrom:"indexOf",invokeArgs:"invoke",invokeArgsMap:"invokeMap",lastIndexOfFrom:"lastIndexOf",mergeAll:"merge",mergeAllWith:"mergeWith",padChars:"pad",padCharsEnd:"padEnd",padCharsStart:"padStart",propertyOf:"get",rangeStep:"range",rangeStepRight:"rangeRight",restFrom:"rest",spreadFrom:"spread",trimChars:"trim",trimCharsEnd:"trimEnd",trimCharsStart:"trimStart",zipAll:"zip"},e.skipFixed={castArray:!0,flow:!0,flowRight:!0,iteratee:!0,mixin:!0,rearg:!0,runInContext:!0},e.skipRearg={add:!0,assign:!0,assignIn:!0,bind:!0,bindKey:!0,concat:!0,difference:!0,divide:!0,eq:!0,gt:!0,gte:!0,isEqual:!0,lt:!0,lte:!0,matchesProperty:!0,merge:!0,multiply:!0,overArgs:!0,partial:!0,partialRight:!0,propertyOf:!0,random:!0,range:!0,rangeRight:!0,subtract:!0,zip:!0,zipObject:!0,zipObjectDeep:!0}),qy;var e}function KC(){return Z1||(Z1=1,Yy={}),Yy}function qC(){if(K1)return Qy;K1=1;var e=ZC(),t=KC(),n=Array.prototype.push;function r(e,t){return 2==t?function(t,n){return e(t,n)}:function(t){return e(t)}}function o(e){for(var t=e?e.length:0,n=Array(t);t--;)n[t]=e[t];return n}function i(e,t){return function(){var n=arguments.length;if(n){for(var r=Array(n);n--;)r[n]=arguments[n];var o=r[0]=t.apply(void 0,r);return e.apply(void 0,r),o}}}return Qy=function a(s,l,u,c){var d="function"==typeof l,f=l===Object(l);if(f&&(c=u,u=l,l=void 0),null==u)throw new TypeError;c||(c={});var p=!("cap"in c)||c.cap,h=!("curry"in c)||c.curry,m=!("fixed"in c)||c.fixed,v=!("immutable"in c)||c.immutable,g=!("rearg"in c)||c.rearg,y=d?u:t,b="curry"in c&&c.curry,_="fixed"in c&&c.fixed,w="rearg"in c&&c.rearg,x=d?u.runInContext():void 0,k=d?u:{ary:s.ary,assign:s.assign,clone:s.clone,curry:s.curry,forEach:s.forEach,isArray:s.isArray,isError:s.isError,isFunction:s.isFunction,isWeakMap:s.isWeakMap,iteratee:s.iteratee,keys:s.keys,rearg:s.rearg,toInteger:s.toInteger,toPath:s.toPath},E=k.ary,S=k.assign,C=k.clone,N=k.curry,I=k.forEach,A=k.isArray,T=k.isError,O=k.isFunction,D=k.isWeakMap,P=k.keys,R=k.rearg,M=k.toInteger,j=k.toPath,L=P(e.aryMethod),U={castArray:function(e){return function(){var t=arguments[0];return A(t)?e(o(t)):e.apply(void 0,arguments)}},iteratee:function(e){return function(){var t=arguments[1],n=e(arguments[0],t),o=n.length;return p&&"number"==typeof t?(t=t>2?t-2:1,o&&o<=t?n:r(n,t)):n}},mixin:function(e){return function(t){var n=this;if(!O(n))return e(n,Object(t));var r=[];return I(P(t),(function(e){O(t[e])&&r.push([e,n.prototype[e]])})),e(n,Object(t)),I(r,(function(e){var t=e[1];O(t)?n.prototype[e[0]]=t:delete n.prototype[e[0]]})),n}},nthArg:function(e){return function(t){var n=t<0?1:M(t)+1;return N(e(t),n)}},rearg:function(e){return function(t,n){var r=n?n.length:0;return N(e(t,n),r)}},runInContext:function(e){return function(t){return a(s,e(t),c)}}};function F(t,n){if(p){var o=e.iterateeRearg[t];if(o)return function(e,t){return V(e,(function(e){var n=t.length;return function(e,t){return 2==t?function(t,n){return e.apply(void 0,arguments)}:function(t){return e.apply(void 0,arguments)}}(R(r(e,n),t),n)}))}(n,o);var i=!d&&e.iterateeAry[t];if(i)return function(e,t){return V(e,(function(e){return"function"==typeof e?r(e,t):e}))}(n,i)}return n}function z(t,r,o){if(m&&(_||!e.skipFixed[t])){var i=e.methodSpread[t],a=i&&i.start;return void 0===a?E(r,o):function(e,t){return function(){for(var r=arguments.length,o=r-1,i=Array(r);r--;)i[r]=arguments[r];var a=i[t],s=i.slice(0,t);return a&&n.apply(s,a),t!=o&&n.apply(s,i.slice(t+1)),e.apply(this,s)}}(r,a)}return r}function $(t,n,r){return g&&r>1&&(w||!e.skipRearg[t])?R(n,e.methodRearg[t]||e.aryRearg[r]):n}function B(e,t){for(var n=-1,r=(t=j(t)).length,o=r-1,i=C(Object(e)),a=i;null!=a&&++n<r;){var s=t[n],l=a[s];null!=l&&!(O(l)||T(l)||D(l))&&(a[s]=C(n==o?l:Object(l))),a=a[s]}return i}function W(t,n){var r=e.aliasToReal[t]||t,o=e.remap[r]||r,i=c;return function(e){var t=d?x:k,s=d?x[o]:n,l=S(S({},i),e);return a(t,r,s,l)}}function V(e,t){return function(){var n=arguments.length;if(!n)return e();for(var r=Array(n);n--;)r[n]=arguments[n];var o=g?0:n-1;return r[o]=t(r[o]),e.apply(void 0,r)}}function K(t,n,r){var a,s=e.aliasToReal[t]||t,l=n,u=U[s];return u?l=u(n):v&&(e.mutate.array[s]?l=i(n,o):e.mutate.object[s]?l=i(n,function(e){return function(t){return e({},t)}}(n)):e.mutate.set[s]&&(l=i(n,B))),I(L,(function(t){return I(e.aryMethod[t],(function(n){if(s==n){var r=e.methodSpread[s],o=r&&r.afterRearg;return a=o?z(s,$(s,l,t),t):$(s,z(s,l,t),t),a=function(e,t,n){return b||h&&n>1?N(t,n):t}(0,a=F(s,a),t),!1}})),!a})),a||(a=l),a==n&&(a=b?N(a,1):function(){return n.apply(this,arguments)}),a.convert=W(s,n),a.placeholder=n.placeholder=r,a}if(!f)return K(l,u,y);var Z=u,q=[];return I(L,(function(t){I(e.aryMethod[t],(function(t){var n=Z[e.remap[t]||t];n&&q.push([t,K(t,n,Z)])}))})),I(P(Z),(function(e){var t=Z[e];if("function"==typeof t){for(var n=q.length;n--;)if(q[n][0]==e)return;t.convert=W(e,t),q.push([e,t])}})),I(q,(function(e){Z[e[0]]=e[1]})),Z.convert=function(e){return Z.runInContext.convert(e)(void 0)},Z.placeholder=Z,I(P(Z),(function(t){I(e.realToAlias[t]||[],(function(e){Z[e]=Z[t]}))})),Z},Qy}function YC(){if(q1)return Xy;q1=1;var e=GC().runInContext();return Xy=qC()(e,e)}var Fh=YC();const Y1={400:{title:"",description:"You have no permission ..."},401:{title:"Unauthorized",description:"Your access is restricted. Please ensure you have the correct login details"},404:{title:"Oh no, bad luck!",description:"Looks like the page you were looking for has been removed. Just in case, please make sure to check your spelling."},user404:{title:"We could not find the user you were looking for",description:"Check the username and try one more time",links:[{text:"To the Wellsley account",link:"/account"},{text:"To account settings",link:"/account/settings"}]},page404:{title:"We could not find the page you were looking for",description:"Check the address and try one more time"},post404:{title:"We could not find the post you were looking for",description:"Check the address and try one more time"},403:{title:"",description:"Your session has been expired. Please re-login again."},440:{title:"",description:"You have reached maximum allowed number of concurrent sessions."},460:{title:"",description:"Please re-login again."},498:{title:"Expired",description:"The link was expired or invalid. Please try again."},500:{title:"Oops, something went wrong!",description:'We are already on it. Please try again later or contact us at <a href="mailto:support@wave.video">support@wave.video</a>'}},Jy=e=>Y1[e]||Y1[500],Tu=e=>{var t,n;if(!e)return Jy(500).description;if(Fh.isString(e))return e;if("data"in e&&Fh.isString(e.data))return e.data;if("data"in e&&null!=(t=e.data)&&t.errorCode)return null==(n=e.data)?void 0:n.message;if("isUnhandledError"in e&&!e.isUnhandledError){const{status:t,data:n}=null==e?void 0:e.error;return(Fh.isString(n)?n:null==n?void 0:n.message)||Jy(t||500).description}return"message"in e&&e.message?e.message:"error"in e?e.error:"status"in e?Jy(e.status).description:void 0},QC={data:null,isPending:!1,isSuccess:!1},Wd=Rf({name:"userNoHTML",initialState:QC,reducers:{setUser:(e,t)=>{e.data=t.payload},setPending:(e,t)=>{e.isPending=t.payload},setSuccess:(e,{payload:t})=>{e.isSuccess=t},setError:(e,{payload:t})=>{e.error=t}},selectors:{selectUser:e=>e.data,selectPending:e=>e.isPending,selectError:e=>e.error,selectSuccess:e=>e.isSuccess}}),XC=qd.enhanceEndpoints({endpoints:{deleteApiV1UsersByUserIdDelete:{async onQueryStarted(e,{queryFulfilled:t}){await pr(t)}},getApiV1AccountsProfile:{providesTags:["Secure","Account"],async onQueryStarted(e,{dispatch:t,queryFulfilled:n}){t(pf.actions.setPending(!0));try{const e=await pr(n);e&&t(pf.actions.setData(e.data)),t(pf.actions.setSuccess(!0))}catch(e){t(pf.actions.setSuccess(!1)),t(pf.actions.setIsError(!0)),t(pf.actions.setError(e))}finally{t(pf.actions.setPending(!1))}}},putApiV1UsersByUserId:{async onQueryStarted(e,{queryFulfilled:t}){await pr(t,"User updated succesfully")}},getApiV1Users:{providesTags:["Secure","UserNoHtml"],async onQueryStarted(e,{dispatch:t,queryFulfilled:n}){const r=!e.htmlContent;try{r&&t(Wd.actions.setPending(!0));const e=await pr(n);r&&e&&(t(Wd.actions.setUser(e.data)),t(Wd.actions.setSuccess(!0)),t(Wd.actions.setPending(!1)))}catch(e){r&&(t(Wd.actions.setSuccess(!1)),t(Wd.actions.setError(e)),t(Wd.actions.setPending(!1))),Cn.error(Tu(e))}}},postApiV1Users:{invalidatesTags:["Account"],async onQueryStarted(e,{queryFulfilled:t}){try{await t,Cn.success("User created successfully")}catch(e){const t=e;Cn.error(409===(null==t?void 0:t.status)?"Username already exists":Tu(t))}}},getApiV1UsersFollowers:{providesTags:["Follow"],async onQueryStarted(e,{queryFulfilled:t}){await pr(t)}},getApiV1UsersFollowees:{providesTags:["Follow"],async onQueryStarted(e,{queryFulfilled:t}){await pr(t)}},getApiV1UsersByUserIdFollowing:{providesTags:["Follow"],async onQueryStarted(e,{queryFulfilled:t}){await pr(t)}},postApiV1UsersFollowByUsernameAccept:{invalidatesTags:["Follow","Relationship"],async onQueryStarted(e,{queryFulfilled:t}){try{await t,Cn.success(`Accepted follow request from ${e.username}`)}catch(e){Cn.error(Tu(e))}}},postApiV1UsersFollowByUsernameReject:{invalidatesTags:["Follow","Secure","Relationship"],async onQueryStarted(e,{queryFulfilled:t}){try{await t,Cn.success(`Rejected follow request from ${e.username}`)}catch(e){Cn.error(Tu(e))}}},postApiV1UsersFollowByUsername:{invalidatesTags:["Follow","Secure","Relationship"],async onQueryStarted(e,{queryFulfilled:t}){try{await t,Cn.success(`Follow request sent to ${e.username}`)}catch(e){Cn.error(Tu(e))}}},postApiV1UsersFollowByUsernameUndo:{invalidatesTags:["Follow","Secure","Relationship"],async onQueryStarted(e,{queryFulfilled:t}){try{await t,Cn.success(`You unfollowed ${e.username}`)}catch(e){Cn.error(Tu(e))}}},getApiV1Block:{providesTags:["Follow"]},postApiV1BlockByUserId:{invalidatesTags:["Follow","Relationship"],async onQueryStarted(e,{queryFulfilled:t}){await pr(t)}},deleteApiV1BlockByUserId:{invalidatesTags:["Follow","Relationship"],async onQueryStarted(e,{queryFulfilled:t}){await pr(t)}},deleteApiV1AccountsDelete:{},postApiV1MuteByUserId:{invalidatesTags:["Relationship"],async onQueryStarted(e,{queryFulfilled:t}){await pr(t)}},deleteApiV1MuteByUserId:{invalidatesTags:["Relationship"],async onQueryStarted(e,{queryFulfilled:t}){await pr(t)}},getApiV1Mute:{async onQueryStarted(e,{queryFulfilled:t}){await pr(t)}},getApiV1UsersRelationships:{providesTags:["Relationship"],async onQueryStarted(e,{queryFulfilled:t}){await pr(t)}},putApiV1UsersByUserIdState:{invalidatesTags:["Secure"],async onQueryStarted(e,{queryFulfilled:t}){try{await pr(t),Cn.success(`User ${e.userId} state changed to ${e.userState}`)}catch(e){Cn.error(Tu(e))}}},putApiV1Notes:{async onQueryStarted(e,{queryFulfilled:t}){try{await pr(t),Cn.success("Note has been updated")}catch(e){Cn.error(Tu(e))}}},deleteApiV1NotesByUserId:{async onQueryStarted(e,{queryFulfilled:t}){try{await pr(t),Cn.success("Note has been removed")}catch(e){Cn.error(Tu(e))}}}}}).injectEndpoints({endpoints:e=>({getInteractionUrl:e.query({query:e=>({url:e,headers:{Accept:"application/activity+json"}}),transformResponse:e=>"string"==typeof e?JSON.parse(e):e})})}),{useGetInteractionUrlQuery:J3,usePostApiV1UsersMutation:e4,useDeleteApiV1AccountsDeleteMutation:t4,useGetApiV1AccountsProfileQuery:n4,usePutApiV1UsersByUserIdMutation:r4,useGetApiV1UsersQuery:i4,useDeleteApiV1UsersByUserIdDeleteMutation:o4,usePostApiV1MuteByUserIdMutation:s4,useDeleteApiV1MuteByUserIdMutation:a4,useGetApiV1MuteQuery:l4,usePutApiV1UsersByUserIdStateMutation:u4,useGetApiV1UsersRelationshipsQuery:JC,usePutApiV1NotesMutation:c4,useDeleteApiV1NotesByUserIdMutation:f4,useLazyGetApiV1UsersRelationshipsQuery:e2,useLazyGetApiV1GeoQuery:d4}=XC,Q1=["following","followed","blocked","muted","note","blocked_by"],X1=({userId:e,currentUserId:t})=>{const n="string"==typeof e,r=n?[e]:(null==e?void 0:e.filter((e=>e!==t)))||[],o=e===t;return{isSingleUser:n,canFetch:!(!r.length||o||!t),safeTargets:r}},Dg=({userId:e})=>{const t=Un(pf.selectors.selectCurrentUser),n=null==t?void 0:t.id,{canFetch:r,isSingleUser:o,safeTargets:i}=X1({userId:e,currentUserId:n}),{data:a,isLoading:s}=JC({targets:i,filter:Q1},{skip:!r}),[l]=e2();return{relationship:(o?null==a?void 0:a[e]:a)||{},isLoading:s,updateRelations:({userId:e})=>{const{canFetch:t,safeTargets:r}=X1({userId:e,currentUserId:n});t&&l({targets:r,filter:Q1})}}},p4=({user:e,onUpdate:t})=>{const n=Qh(),{updateRelations:r}=Dg({}),o=Un(Xd.selectors.selectCurrentUser),i=(null==o?void 0:o.username)===(null==e?void 0:e.username),a=jC("user:$username",{username:e?ns(e).slice(1):""}),s=Un((e=>_l.selectors.selectLastUpdateFor(e,a)));Et((()=>{if(null==e||!e.username)return;const t=!i;return n(_l.actions.subscribe({id:a,topics:[a]})),t?()=>{n(_l.actions.unsubscribe(a))}:void 0}),[null==e?void 0:e.username,i]),Et((()=>{const e=null==s?void 0:s.data;e&&(!i&&r({userId:e.id}),t(e))}),[null==s?void 0:s.data,i])};var J1,ew,e_={exports:{}},Qm={};
10
+ /**
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
+ */function t2(){if(J1)return Qm;J1=1;var e=Pt,t=Symbol.for("react.element"),n=Symbol.for("react.fragment"),r=Object.prototype.hasOwnProperty,o=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,i={key:!0,ref:!0,__self:!0,__source:!0};function a(e,n,a){var s,l={},u=null,c=null;for(s in void 0!==a&&(u=""+a),void 0!==n.key&&(u=""+n.key),void 0!==n.ref&&(c=n.ref),n)r.call(n,s)&&!i.hasOwnProperty(s)&&(l[s]=n[s]);if(e&&e.defaultProps)for(s in n=e.defaultProps)void 0===l[s]&&(l[s]=n[s]);return{$$typeof:t,type:e,key:u,ref:c,props:l,_owner:o.current}}return Qm.Fragment=n,Qm.jsx=a,Qm.jsxs=a,Qm}function n2(){return ew||(ew=1,e_.exports=t2()),e_.exports}var D=n2();const tw={data:{userId:"",list:[]},count:{},isPending:!1},r2=e=>e,i2=e=>e.error,o2=e=>e.isPending,s2=e=>{var t;return null==(t=e.count)?void 0:t.total},a2=e=>{var t;return null==(t=e.count)?void 0:t.unread},l2=e=>e.data.userId,r1=oi(r2,(e=>e.data.list)),u2=oi(r1,(e=>null==e?void 0:e.filter((e=>"UNREAD"===e.status)))),c2=oi(r1,(e=>null==e?void 0:e.at(-1))),es=Rf({name:"notifications",initialState:tw,reducers:{setPending:(e,t)=>{e.isPending=t.payload},setError:(e,t)=>{e.error=t.payload},setNotifications:(e,t)=>{const n=t.payload.userId,r=t.payload.list;e.data={userId:n,list:[...e.data.list||[],...r.filter((t=>{var n;return!(null!=(n=e.data.list)&&n.some((e=>e.id===t.id)))}))]}},addNotification:(e,t)=>{e.count.unread=(e.count.unread||0)+1,e.data.list&&(e.data.list=[t.payload,...e.data.list||[]])},markNotification:(e,t)=>{e.data.list&&(e.data.list=e.data.list.map((e=>e.id===t.payload.id?{...e,status:t.payload.status}:e)))},updateNotification:(e,t)=>{var n;if(!e.data.list)return;const r=t.payload;e.data.list=null==(n=e.data.list)?void 0:n.map((e=>e.id===r.id?{...e,...r}:e))},setTotalCount:(e,t)=>{e.count.total=t.payload},setUnreadCount:(e,t)=>{e.count.unread=t.payload},readAll:e=>{var t;e.data.list&&(e.data.list=null==(t=e.data.list)?void 0:t.map((e=>({...e,status:"READ"}))))},resetState:()=>tw,undoNotitication:(e,t)=>{var n,r,o;const i=t.payload;"UNREAD"===(null==(r=null==(n=e.data.list)?void 0:n.find((e=>e.id===i)))?void 0:r.status)&&e.count.unread&&(e.count.unread-=1),e.data.list=(null==(o=e.data.list)?void 0:o.filter((e=>e.id!==i)))||[]}},selectors:{selectError:i2,selectIsPending:o2,selectTotalCount:s2,selectUnreadCount:a2,selectNotifications:r1,selectUnreadNotifications:u2,selectLastNotification:c2,selectNotificationsOwner:l2}}).injectInto(s0);qd.enhanceEndpoints({endpoints:{getApiV1Notifications:{async onQueryStarted(e,{dispatch:t,queryFulfilled:n,getState:r}){var o;t(es.actions.setPending(!0));try{const e=await pr(n),i=(null==(o=r().user.data)?void 0:o.selectedUserId)||"";e&&t(es.actions.setNotifications({userId:i,list:e.data}))}catch(e){t(es.actions.setError(e))}finally{t(es.actions.setPending(!1))}}},postApiV1NotificationsByIdMark:{async onQueryStarted(e,{dispatch:t,queryFulfilled:n}){try{await pr(n),t(es.actions.markNotification(e))}catch(e){Cn.error(`Mark notification error', ${e}`)}}},postApiV1NotificationsMarkAll:{async onQueryStarted(e,{dispatch:t,queryFulfilled:n}){await pr(n),t(es.actions.setUnreadCount(0))}},getApiV1NotificationsCount:{async onQueryStarted(e,{dispatch:t,queryFulfilled:n}){try{const r=await pr(n),o=!e.status;r&&t(o?es.actions.setTotalCount(r.data):es.actions.setUnreadCount(r.data))}catch(e){Cn.error(`Error getting unread notifications count', ${e}`)}}}}});var nw,rw,iw,ow,t_={exports:{}},ko={},n_={exports:{}},r_={};
19
+ /**
20
+ * @license React
21
+ * scheduler.production.min.js
22
+ *
23
+ * Copyright (c) Facebook, Inc. and its affiliates.
24
+ *
25
+ * This source code is licensed under the MIT license found in the
26
+ * LICENSE file in the root directory of this source tree.
27
+ */function f2(){return nw||(nw=1,function(e){function t(e,t){var n=e.length;e.push(t);e:for(;0<n;){var r=n-1>>>1,i=e[r];if(!(0<o(i,t)))break e;e[r]=t,e[n]=i,n=r}}function n(e){return 0===e.length?null:e[0]}function r(e){if(0===e.length)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,i=e.length,a=i>>>1;r<a;){var s=2*(r+1)-1,l=e[s],u=s+1,c=e[u];if(0>o(l,n))u<i&&0>o(c,l)?(e[r]=c,e[u]=n,r=u):(e[r]=l,e[s]=n,r=s);else{if(!(u<i&&0>o(c,n)))break e;e[r]=c,e[u]=n,r=u}}}return t}function o(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}if("object"==typeof performance&&"function"==typeof performance.now){var i=performance;e.unstable_now=function(){return i.now()}}else{var a=Date,s=a.now();e.unstable_now=function(){return a.now()-s}}var l=[],u=[],c=1,d=null,f=3,p=!1,h=!1,m=!1,v="function"==typeof setTimeout?setTimeout:null,g="function"==typeof clearTimeout?clearTimeout:null,y=typeof setImmediate<"u"?setImmediate:null;function b(e){for(var o=n(u);null!==o;){if(null===o.callback)r(u);else{if(!(o.startTime<=e))break;r(u),o.sortIndex=o.expirationTime,t(l,o)}o=n(u)}}function _(e){if(m=!1,b(e),!h)if(null!==n(l))h=!0,D(w);else{var t=n(u);null!==t&&P(_,t.startTime-e)}}function w(t,o){h=!1,m&&(m=!1,g(S),S=-1),p=!0;var i=f;try{for(b(o),d=n(l);null!==d&&(!(d.expirationTime>o)||t&&!I());){var a=d.callback;if("function"==typeof a){d.callback=null,f=d.priorityLevel;var s=a(d.expirationTime<=o);o=e.unstable_now(),"function"==typeof s?d.callback=s:d===n(l)&&r(l),b(o)}else r(l);d=n(l)}if(null!==d)var c=!0;else{var v=n(u);null!==v&&P(_,v.startTime-o),c=!1}return c}finally{d=null,f=i,p=!1}}typeof navigator<"u"&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);var x,k=!1,E=null,S=-1,C=5,N=-1;function I(){return!(e.unstable_now()-N<C)}function A(){if(null!==E){var t=e.unstable_now();N=t;var n=!0;try{n=E(!0,t)}finally{n?x():(k=!1,E=null)}}else k=!1}if("function"==typeof y)x=function(){y(A)};else if(typeof MessageChannel<"u"){var T=new MessageChannel,O=T.port2;T.port1.onmessage=A,x=function(){O.postMessage(null)}}else x=function(){v(A,0)};function D(e){E=e,k||(k=!0,x())}function P(t,n){S=v((function(){t(e.unstable_now())}),n)}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(e){e.callback=null},e.unstable_continueExecution=function(){h||p||(h=!0,D(w))},e.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):C=0<e?Math.floor(1e3/e):5},e.unstable_getCurrentPriorityLevel=function(){return f},e.unstable_getFirstCallbackNode=function(){return n(l)},e.unstable_next=function(e){switch(f){case 1:case 2:case 3:var t=3;break;default:t=f}var n=f;f=t;try{return e()}finally{f=n}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=f;f=e;try{return t()}finally{f=n}},e.unstable_scheduleCallback=function(r,o,i){var a=e.unstable_now();switch("object"==typeof i&&null!==i?i="number"==typeof(i=i.delay)&&0<i?a+i:a:i=a,r){case 1:var s=-1;break;case 2:s=250;break;case 5:s=1073741823;break;case 4:s=1e4;break;default:s=5e3}return r={id:c++,callback:o,priorityLevel:r,startTime:i,expirationTime:s=i+s,sortIndex:-1},i>a?(r.sortIndex=i,t(u,r),null===n(l)&&r===n(u)&&(m?(g(S),S=-1):m=!0,P(_,i-a))):(r.sortIndex=s,t(l,r),h||p||(h=!0,D(w))),r},e.unstable_shouldYield=I,e.unstable_wrapCallback=function(e){var t=f;return function(){var n=f;f=t;try{return e.apply(this,arguments)}finally{f=n}}}}(r_)),r_}function d2(){return rw||(rw=1,n_.exports=f2()),n_.exports
28
+ /**
29
+ * @license React
30
+ * react-dom.production.min.js
31
+ *
32
+ * Copyright (c) Facebook, Inc. and its affiliates.
33
+ *
34
+ * This source code is licensed under the MIT license found in the
35
+ * LICENSE file in the root directory of this source tree.
36
+ */}function p2(){if(iw)return ko;iw=1;var e=Pt,t=d2();function n(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var r=new Set,o={};function i(e,t){a(e,t),a(e+"Capture",t)}function a(e,t){for(o[e]=t,e=0;e<t.length;e++)r.add(t[e])}var s=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),l=Object.prototype.hasOwnProperty,u=/^[: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]*$/,c={},d={};function f(e,t,n,r,o,i,a){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=a}var p={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){p[e]=new f(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];p[t]=new f(t,1,!1,e[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){p[e]=new f(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){p[e]=new f(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){p[e]=new f(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){p[e]=new f(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){p[e]=new f(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){p[e]=new f(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){p[e]=new f(e,5,!1,e.toLowerCase(),null,!1,!1)}));var h=/[\-:]([a-z])/g;function m(e){return e[1].toUpperCase()}function v(e,t,n,r){var o=p.hasOwnProperty(t)?p[t]:null;(null!==o?0!==o.type:r||!(2<t.length)||"o"!==t[0]&&"O"!==t[0]||"n"!==t[1]&&"N"!==t[1])&&(function(e,t,n,r){if(null===t||typeof t>"u"||function(e,t,n,r){if(null!==n&&0===n.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!r&&(null!==n?!n.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,n,r))return!0;if(r)return!1;if(null!==n)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(t,n,o,r)&&(n=null),r||null===o?function(e){return!!l.call(d,e)||!l.call(c,e)&&(u.test(e)?d[e]=!0:(c[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):o.mustUseProperty?e[o.propertyName]=null===n?3!==o.type&&"":n:(t=o.attributeName,r=o.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(o=o.type)||4===o&&!0===n?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}"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-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 t=e.replace(h,m);p[t]=new f(t,1,!1,e,null,!1,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace(h,m);p[t]=new f(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(h,m);p[t]=new f(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){p[e]=new f(e,1,!1,e.toLowerCase(),null,!1,!1)})),p.xlinkHref=new f("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){p[e]=new f(e,1,!1,e.toLowerCase(),null,!0,!0)}));var g=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,y=Symbol.for("react.element"),b=Symbol.for("react.portal"),_=Symbol.for("react.fragment"),w=Symbol.for("react.strict_mode"),x=Symbol.for("react.profiler"),k=Symbol.for("react.provider"),E=Symbol.for("react.context"),S=Symbol.for("react.forward_ref"),C=Symbol.for("react.suspense"),N=Symbol.for("react.suspense_list"),I=Symbol.for("react.memo"),A=Symbol.for("react.lazy"),T=Symbol.for("react.offscreen"),O=Symbol.iterator;function D(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=O&&e[O]||e["@@iterator"])?e:null}var P,R=Object.assign;function M(e){if(void 0===P)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);P=t&&t[1]||""}return"\n"+P+e}var j=!1;function L(e,t){if(!e||j)return"";j=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(t,[])}catch(e){var r=e}Reflect.construct(e,[],t)}else{try{t.call()}catch(e){r=e}e.call(t.prototype)}else{try{throw Error()}catch(e){r=e}e()}}catch(t){if(t&&r&&"string"==typeof t.stack){for(var o=t.stack.split("\n"),i=r.stack.split("\n"),a=o.length-1,s=i.length-1;1<=a&&0<=s&&o[a]!==i[s];)s--;for(;1<=a&&0<=s;a--,s--)if(o[a]!==i[s]){if(1!==a||1!==s)do{if(a--,0>--s||o[a]!==i[s]){var l="\n"+o[a].replace(" at new "," at ");return e.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",e.displayName)),l}}while(1<=a&&0<=s);break}}}finally{j=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?M(e):""}function U(e){switch(e.tag){case 5:return M(e.type);case 16:return M("Lazy");case 13:return M("Suspense");case 19:return M("SuspenseList");case 0:case 2:case 15:return e=L(e.type,!1);case 11:return e=L(e.type.render,!1);case 1:return e=L(e.type,!0);default:return""}}function F(e){if(null==e)return null;if("function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case _:return"Fragment";case b:return"Portal";case x:return"Profiler";case w:return"StrictMode";case C:return"Suspense";case N:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case E:return(e.displayName||"Context")+".Consumer";case k:return(e._context.displayName||"Context")+".Provider";case S:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case I:return null!==(t=e.displayName||null)?t:F(e.type)||"Memo";case A:t=e._payload,e=e._init;try{return F(e(t))}catch{}}return null}function z(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=(e=t.render).displayName||e.name||"",t.displayName||(""!==e?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return F(t);case 8:return t===w?"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("function"==typeof t)return t.displayName||t.name||null;if("string"==typeof t)return t}return null}function $(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":case"object":return e;default:return""}}function B(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function W(e){e._valueTracker||(e._valueTracker=function(e){var t=B(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&"function"==typeof n.get&&"function"==typeof n.set){var o=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(e){r=""+e,i.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function V(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=B(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function K(e){if(typeof(e=e||(typeof document<"u"?document:void 0))>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function Z(e,t){var n=t.checked;return R({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function q(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=$(null!=t.value?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function H(e,t){null!=(t=t.checked)&&v(e,"checked",t,!1)}function G(e,t){H(e,t);var n=$(t.value),r=t.type;if(null!=n)"number"===r?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===r||"reset"===r)return void e.removeAttribute("value");t.hasOwnProperty("value")?Y(e,t.type,n):t.hasOwnProperty("defaultValue")&&Y(e,t.type,$(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function Q(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!("submit"!==r&&"reset"!==r||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function Y(e,t,n){("number"!==t||K(e.ownerDocument)!==e)&&(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var X=Array.isArray;function J(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o<n.length;o++)t["$"+n[o]]=!0;for(n=0;n<e.length;n++)o=t.hasOwnProperty("$"+e[n].value),e[n].selected!==o&&(e[n].selected=o),o&&r&&(e[n].defaultSelected=!0)}else{for(n=""+$(n),t=null,o=0;o<e.length;o++){if(e[o].value===n)return e[o].selected=!0,void(r&&(e[o].defaultSelected=!0));null!==t||e[o].disabled||(t=e[o])}null!==t&&(t.selected=!0)}}function ee(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(n(91));return R({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function te(e,t){var r=t.value;if(null==r){if(r=t.children,t=t.defaultValue,null!=r){if(null!=t)throw Error(n(92));if(X(r)){if(1<r.length)throw Error(n(93));r=r[0]}t=r}null==t&&(t=""),r=t}e._wrapperState={initialValue:$(r)}}function ne(e,t){var n=$(t.value),r=$(t.defaultValue);null!=n&&((n=""+n)!==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!==n&&(e.defaultValue=n)),null!=r&&(e.defaultValue=""+r)}function re(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}function oe(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 ie(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?oe(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var ae,se,le=(se=function(e,t){if("http://www.w3.org/2000/svg"!==e.namespaceURI||"innerHTML"in e)e.innerHTML=t;else{for((ae=ae||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=ae.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}},typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(e,t,n,r){MSApp.execUnsafeLocalFunction((function(){return se(e,t)}))}:se);function ue(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}var ce={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},de=["Webkit","ms","Moz","O"];function fe(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||ce.hasOwnProperty(e)&&ce[e]?(""+t).trim():t+"px"}function pe(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),o=fe(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}Object.keys(ce).forEach((function(e){de.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),ce[t]=ce[e]}))}));var he=R({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 me(e,t){if(t){if(he[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(n(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(n(60));if("object"!=typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(n(61))}if(null!=t.style&&"object"!=typeof t.style)throw Error(n(62))}}function ve(e,t){if(-1===e.indexOf("-"))return"string"==typeof t.is;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 ge=null;function ye(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var be=null,_e=null,we=null;function xe(e){if(e=yo(e)){if("function"!=typeof be)throw Error(n(280));var t=e.stateNode;t&&(t=_o(t),be(e.stateNode,e.type,t))}}function ke(e){_e?we?we.push(e):we=[e]:_e=e}function Ee(){if(_e){var e=_e,t=we;if(we=_e=null,xe(e),t)for(e=0;e<t.length;e++)xe(t[e])}}function Se(e,t){return e(t)}function Ce(){}var Ne=!1;function Ie(e,t,n){if(Ne)return e(t,n);Ne=!0;try{return Se(e,t,n)}finally{Ne=!1,(null!==_e||null!==we)&&(Ce(),Ee())}}function Ae(e,t){var r=e.stateNode;if(null===r)return null;var o=_o(r);if(null===o)return null;r=o[t];e:switch(t){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)||(o=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!o;break e;default:e=!1}if(e)return null;if(r&&"function"!=typeof r)throw Error(n(231,t,typeof r));return r}var Te=!1;if(s)try{var Oe={};Object.defineProperty(Oe,"passive",{get:function(){Te=!0}}),window.addEventListener("test",Oe,Oe),window.removeEventListener("test",Oe,Oe)}catch{Te=!1}function De(e,t,n,r,o,i,a,s,l){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(e){this.onError(e)}}var Pe=!1,Re=null,Me=!1,je=null,Le={onError:function(e){Pe=!0,Re=e}};function Ue(e,t,n,r,o,i,a,s,l){Pe=!1,Re=null,De.apply(Le,arguments)}function Fe(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{4098&(t=e).flags&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function ze(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&(null!==(e=e.alternate)&&(t=e.memoizedState)),null!==t)return t.dehydrated}return null}function $e(e){if(Fe(e)!==e)throw Error(n(188))}function Be(e){return null!==(e=function(e){var t=e.alternate;if(!t){if(null===(t=Fe(e)))throw Error(n(188));return t!==e?null:e}for(var r=e,o=t;;){var i=r.return;if(null===i)break;var a=i.alternate;if(null===a){if(null!==(o=i.return)){r=o;continue}break}if(i.child===a.child){for(a=i.child;a;){if(a===r)return $e(i),e;if(a===o)return $e(i),t;a=a.sibling}throw Error(n(188))}if(r.return!==o.return)r=i,o=a;else{for(var s=!1,l=i.child;l;){if(l===r){s=!0,r=i,o=a;break}if(l===o){s=!0,o=i,r=a;break}l=l.sibling}if(!s){for(l=a.child;l;){if(l===r){s=!0,r=a,o=i;break}if(l===o){s=!0,o=a,r=i;break}l=l.sibling}if(!s)throw Error(n(189))}}if(r.alternate!==o)throw Error(n(190))}if(3!==r.tag)throw Error(n(188));return r.stateNode.current===r?e:t}(e))?We(e):null}function We(e){if(5===e.tag||6===e.tag)return e;for(e=e.child;null!==e;){var t=We(e);if(null!==t)return t;e=e.sibling}return null}var Ve=t.unstable_scheduleCallback,Ke=t.unstable_cancelCallback,Ze=t.unstable_shouldYield,qe=t.unstable_requestPaint,He=t.unstable_now,Ge=t.unstable_getCurrentPriorityLevel,Qe=t.unstable_ImmediatePriority,Ye=t.unstable_UserBlockingPriority,Xe=t.unstable_NormalPriority,Je=t.unstable_LowPriority,et=t.unstable_IdlePriority,tt=null,nt=null;var rt=Math.clz32?Math.clz32:function(e){return e>>>=0,0===e?32:31-(ot(e)/it|0)|0},ot=Math.log,it=Math.LN2;var at=64,st=4194304;function lt(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 4194240&e;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return 130023424&e;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function ut(e,t){var n=e.pendingLanes;if(0===n)return 0;var r=0,o=e.suspendedLanes,i=e.pingedLanes,a=268435455&n;if(0!==a){var s=a&~o;0!==s?r=lt(s):0!==(i&=a)&&(r=lt(i))}else 0!==(a=n&~o)?r=lt(a):0!==i&&(r=lt(i));if(0===r)return 0;if(0!==t&&t!==r&&!(t&o)&&((o=r&-r)>=(i=t&-t)||16===o&&4194240&i))return t;if(4&r&&(r|=16&n),0!==(t=e.entangledLanes))for(e=e.entanglements,t&=r;0<t;)o=1<<(n=31-rt(t)),r|=e[n],t&=~o;return r}function ct(e,t){switch(e){case 1:case 2:case 4:return t+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 t+5e3;default:return-1}}function dt(e){return 0!==(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function ft(){var e=at;return!(4194240&(at<<=1))&&(at=64),e}function pt(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function ht(e,t,n){e.pendingLanes|=t,536870912!==t&&(e.suspendedLanes=0,e.pingedLanes=0),(e=e.eventTimes)[t=31-rt(t)]=n}function mt(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-rt(n),o=1<<r;o&t|e[r]&t&&(e[r]|=t),n&=~o}}var vt=0;function gt(e){return 1<(e&=-e)?4<e?268435455&e?16:536870912:4:1}var yt,bt,_t,wt,xt,kt=!1,Et=[],St=null,Ct=null,Nt=null,It=new Map,At=new Map,Tt=[],Ot="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 Dt(e,t){switch(e){case"focusin":case"focusout":St=null;break;case"dragenter":case"dragleave":Ct=null;break;case"mouseover":case"mouseout":Nt=null;break;case"pointerover":case"pointerout":It.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":At.delete(t.pointerId)}}function Rt(e,t,n,r,o,i){return null===e||e.nativeEvent!==i?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:i,targetContainers:[o]},null!==t&&(null!==(t=yo(t))&&bt(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,null!==o&&-1===t.indexOf(o)&&t.push(o),e)}function Mt(e){var t=go(e.target);if(null!==t){var n=Fe(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=ze(n)))return e.blockedOn=t,void xt(e.priority,(function(){_t(n)}))}else if(3===t&&n.stateNode.current.memoizedState.isDehydrated)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function jt(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=qt(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n)return null!==(t=yo(n))&&bt(t),e.blockedOn=n,!1;var r=new(n=e.nativeEvent).constructor(n.type,n);ge=r,n.target.dispatchEvent(r),ge=null,t.shift()}return!0}function Lt(e,t,n){jt(e)&&n.delete(t)}function Ut(){kt=!1,null!==St&&jt(St)&&(St=null),null!==Ct&&jt(Ct)&&(Ct=null),null!==Nt&&jt(Nt)&&(Nt=null),It.forEach(Lt),At.forEach(Lt)}function Ft(e,n){e.blockedOn===n&&(e.blockedOn=null,kt||(kt=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,Ut)))}function zt(e){function t(t){return Ft(t,e)}if(0<Et.length){Ft(Et[0],e);for(var n=1;n<Et.length;n++){var r=Et[n];r.blockedOn===e&&(r.blockedOn=null)}}for(null!==St&&Ft(St,e),null!==Ct&&Ft(Ct,e),null!==Nt&&Ft(Nt,e),It.forEach(t),At.forEach(t),n=0;n<Tt.length;n++)(r=Tt[n]).blockedOn===e&&(r.blockedOn=null);for(;0<Tt.length&&null===(n=Tt[0]).blockedOn;)Mt(n),null===n.blockedOn&&Tt.shift()}var $t=g.ReactCurrentBatchConfig,Bt=!0;function Wt(e,t,n,r){var o=vt,i=$t.transition;$t.transition=null;try{vt=1,Kt(e,t,n,r)}finally{vt=o,$t.transition=i}}function Vt(e,t,n,r){var o=vt,i=$t.transition;$t.transition=null;try{vt=4,Kt(e,t,n,r)}finally{vt=o,$t.transition=i}}function Kt(e,t,n,r){if(Bt){var o=qt(e,t,n,r);if(null===o)Br(e,t,r,Zt,n),Dt(e,r);else if(function(e,t,n,r,o){switch(t){case"focusin":return St=Rt(St,e,t,n,r,o),!0;case"dragenter":return Ct=Rt(Ct,e,t,n,r,o),!0;case"mouseover":return Nt=Rt(Nt,e,t,n,r,o),!0;case"pointerover":var i=o.pointerId;return It.set(i,Rt(It.get(i)||null,e,t,n,r,o)),!0;case"gotpointercapture":return i=o.pointerId,At.set(i,Rt(At.get(i)||null,e,t,n,r,o)),!0}return!1}(o,e,t,n,r))r.stopPropagation();else if(Dt(e,r),4&t&&-1<Ot.indexOf(e)){for(;null!==o;){var i=yo(o);if(null!==i&&yt(i),null===(i=qt(e,t,n,r))&&Br(e,t,r,Zt,n),i===o)break;o=i}null!==o&&r.stopPropagation()}else Br(e,t,r,null,n)}}var Zt=null;function qt(e,t,n,r){if(Zt=null,null!==(e=go(e=ye(r))))if(null===(t=Fe(e)))e=null;else if(13===(n=t.tag)){if(null!==(e=ze(t)))return e;e=null}else if(3===n){if(t.stateNode.current.memoizedState.isDehydrated)return 3===t.tag?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return Zt=e,null}function Ht(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(Ge()){case Qe:return 1;case Ye:return 4;case Xe:case Je:return 16;case et:return 536870912;default:return 16}default:return 16}}var Gt=null,Qt=null,Yt=null;function Xt(){if(Yt)return Yt;var e,t,n=Qt,r=n.length,o="value"in Gt?Gt.value:Gt.textContent,i=o.length;for(e=0;e<r&&n[e]===o[e];e++);var a=r-e;for(t=1;t<=a&&n[r-t]===o[i-t];t++);return Yt=o.slice(e,1<t?1-t:void 0)}function Jt(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}function en(){return!0}function tn(){return!1}function nn(e){function t(t,n,r,o,i){for(var a in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=o,this.target=i,this.currentTarget=null,e)e.hasOwnProperty(a)&&(t=e[a],this[a]=t?t(o):o[a]);return this.isDefaultPrevented=(null!=o.defaultPrevented?o.defaultPrevented:!1===o.returnValue)?en:tn,this.isPropagationStopped=tn,this}return R(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=en)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=en)},persist:function(){},isPersistent:en}),t}var rn,on,an,sn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},ln=nn(sn),un=R({},sn,{view:0,detail:0}),cn=nn(un),dn=R({},un,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:kn,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==an&&(an&&"mousemove"===e.type?(rn=e.screenX-an.screenX,on=e.screenY-an.screenY):on=rn=0,an=e),rn)},movementY:function(e){return"movementY"in e?e.movementY:on}}),fn=nn(dn),pn=nn(R({},dn,{dataTransfer:0})),hn=nn(R({},un,{relatedTarget:0})),mn=nn(R({},sn,{animationName:0,elapsedTime:0,pseudoElement:0})),vn=R({},sn,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),gn=nn(vn),yn=nn(R({},sn,{data:0})),bn={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},_n={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"},wn={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function xn(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=wn[e])&&!!t[e]}function kn(){return xn}var En=R({},un,{key:function(e){if(e.key){var t=bn[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=Jt(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?_n[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:kn,charCode:function(e){return"keypress"===e.type?Jt(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?Jt(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),Sn=nn(En),Cn=nn(R({},dn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),Nn=nn(R({},un,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:kn})),In=nn(R({},sn,{propertyName:0,elapsedTime:0,pseudoElement:0})),An=R({},dn,{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}),Tn=nn(An),On=[9,13,27,32],Dn=s&&"CompositionEvent"in window,Pn=null;s&&"documentMode"in document&&(Pn=document.documentMode);var Rn=s&&"TextEvent"in window&&!Pn,Mn=s&&(!Dn||Pn&&8<Pn&&11>=Pn),jn=" ",Ln=!1;function Un(e,t){switch(e){case"keyup":return-1!==On.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Fn(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var zn=!1;var $n={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 Bn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!$n[e.type]:"textarea"===t}function Wn(e,t,n,r){ke(r),0<(t=Vr(t,"onChange")).length&&(n=new ln("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Vn=null,Kn=null;function Zn(e){jr(e,0)}function qn(e){if(V(bo(e)))return e}function Hn(e,t){if("change"===e)return t}var Gn=!1;if(s){var Qn;if(s){var Yn="oninput"in document;if(!Yn){var Xn=document.createElement("div");Xn.setAttribute("oninput","return;"),Yn="function"==typeof Xn.oninput}Qn=Yn}else Qn=!1;Gn=Qn&&(!document.documentMode||9<document.documentMode)}function Jn(){Vn&&(Vn.detachEvent("onpropertychange",er),Kn=Vn=null)}function er(e){if("value"===e.propertyName&&qn(Kn)){var t=[];Wn(t,Kn,e,ye(e)),Ie(Zn,t)}}function tr(e,t,n){"focusin"===e?(Jn(),Kn=n,(Vn=t).attachEvent("onpropertychange",er)):"focusout"===e&&Jn()}function nr(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return qn(Kn)}function rr(e,t){if("click"===e)return qn(t)}function or(e,t){if("input"===e||"change"===e)return qn(t)}var ir="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t};function ar(e,t){if(ir(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var o=n[r];if(!l.call(t,o)||!ir(e[o],t[o]))return!1}return!0}function sr(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function lr(e,t){var n,r=sr(e);for(e=0;r;){if(3===r.nodeType){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=sr(r)}}function ur(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?ur(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function cr(){for(var e=window,t=K();t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch{n=!1}if(!n)break;t=K((e=t.contentWindow).document)}return t}function dr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}function fr(e){var t=cr(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&ur(n.ownerDocument.documentElement,n)){if(null!==r&&dr(n))if(t=r.start,void 0===(e=r.end)&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if((e=(t=n.ownerDocument||document)&&t.defaultView||window).getSelection){e=e.getSelection();var o=n.textContent.length,i=Math.min(r.start,o);r=void 0===r.end?i:Math.min(r.end,o),!e.extend&&i>r&&(o=r,r=i,i=o),o=lr(n,i);var a=lr(n,r);o&&a&&(1!==e.rangeCount||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&((t=t.createRange()).setStart(o.node,o.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(a.node,a.offset)):(t.setEnd(a.node,a.offset),e.addRange(t)))}for(t=[],e=n;e=e.parentNode;)1===e.nodeType&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for("function"==typeof n.focus&&n.focus(),n=0;n<t.length;n++)(e=t[n]).element.scrollLeft=e.left,e.element.scrollTop=e.top}}var pr=s&&"documentMode"in document&&11>=document.documentMode,hr=null,mr=null,vr=null,gr=!1;function yr(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;gr||null==hr||hr!==K(r)||("selectionStart"in(r=hr)&&dr(r)?r={start:r.selectionStart,end:r.selectionEnd}:r={anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},vr&&ar(vr,r)||(vr=r,0<(r=Vr(mr,"onSelect")).length&&(t=new ln("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=hr)))}function br(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var _r={animationend:br("Animation","AnimationEnd"),animationiteration:br("Animation","AnimationIteration"),animationstart:br("Animation","AnimationStart"),transitionend:br("Transition","TransitionEnd")},wr={},xr={};function kr(e){if(wr[e])return wr[e];if(!_r[e])return e;var t,n=_r[e];for(t in n)if(n.hasOwnProperty(t)&&t in xr)return wr[e]=n[t];return e}s&&(xr=document.createElement("div").style,"AnimationEvent"in window||(delete _r.animationend.animation,delete _r.animationiteration.animation,delete _r.animationstart.animation),"TransitionEvent"in window||delete _r.transitionend.transition);var Er=kr("animationend"),Sr=kr("animationiteration"),Cr=kr("animationstart"),Nr=kr("transitionend"),Ir=new Map,Ar="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 Tr(e,t){Ir.set(e,t),i(t,[e])}for(var Or=0;Or<Ar.length;Or++){var Dr=Ar[Or];Tr(Dr.toLowerCase(),"on"+(Dr[0].toUpperCase()+Dr.slice(1)))}Tr(Er,"onAnimationEnd"),Tr(Sr,"onAnimationIteration"),Tr(Cr,"onAnimationStart"),Tr("dblclick","onDoubleClick"),Tr("focusin","onFocus"),Tr("focusout","onBlur"),Tr(Nr,"onTransitionEnd"),a("onMouseEnter",["mouseout","mouseover"]),a("onMouseLeave",["mouseout","mouseover"]),a("onPointerEnter",["pointerout","pointerover"]),a("onPointerLeave",["pointerout","pointerover"]),i("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),i("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),i("onBeforeInput",["compositionend","keypress","textInput","paste"]),i("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),i("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),i("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Pr="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(" "),Rr=new Set("cancel close invalid load scroll toggle".split(" ").concat(Pr));function Mr(e,t,r){var o=e.type||"unknown-event";e.currentTarget=r,function(e,t,r,o,i,a,s,l,u){if(Ue.apply(this,arguments),Pe){if(!Pe)throw Error(n(198));var c=Re;Pe=!1,Re=null,Me||(Me=!0,je=c)}}(o,t,void 0,e),e.currentTarget=null}function jr(e,t){t=!!(4&t);for(var n=0;n<e.length;n++){var r=e[n],o=r.event;r=r.listeners;e:{var i=void 0;if(t)for(var a=r.length-1;0<=a;a--){var s=r[a],l=s.instance,u=s.currentTarget;if(s=s.listener,l!==i&&o.isPropagationStopped())break e;Mr(o,s,u),i=l}else for(a=0;a<r.length;a++){if(l=(s=r[a]).instance,u=s.currentTarget,s=s.listener,l!==i&&o.isPropagationStopped())break e;Mr(o,s,u),i=l}}}if(Me)throw e=je,Me=!1,je=null,e}function Lr(e,t){var n=t[ho];void 0===n&&(n=t[ho]=new Set);var r=e+"__bubble";n.has(r)||($r(t,e,2,!1),n.add(r))}function Ur(e,t,n){var r=0;t&&(r|=4),$r(n,e,r,t)}var Fr="_reactListening"+Math.random().toString(36).slice(2);function zr(e){if(!e[Fr]){e[Fr]=!0,r.forEach((function(t){"selectionchange"!==t&&(Rr.has(t)||Ur(t,!1,e),Ur(t,!0,e))}));var t=9===e.nodeType?e:e.ownerDocument;null===t||t[Fr]||(t[Fr]=!0,Ur("selectionchange",!1,t))}}function $r(e,t,n,r){switch(Ht(t)){case 1:var o=Wt;break;case 4:o=Vt;break;default:o=Kt}n=o.bind(null,t,n,e),o=void 0,!Te||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(o=!0),r?void 0!==o?e.addEventListener(t,n,{capture:!0,passive:o}):e.addEventListener(t,n,!0):void 0!==o?e.addEventListener(t,n,{passive:o}):e.addEventListener(t,n,!1)}function Br(e,t,n,r,o){var i=r;if(!(1&t||2&t||null===r))e:for(;;){if(null===r)return;var a=r.tag;if(3===a||4===a){var s=r.stateNode.containerInfo;if(s===o||8===s.nodeType&&s.parentNode===o)break;if(4===a)for(a=r.return;null!==a;){var l=a.tag;if((3===l||4===l)&&((l=a.stateNode.containerInfo)===o||8===l.nodeType&&l.parentNode===o))return;a=a.return}for(;null!==s;){if(null===(a=go(s)))return;if(5===(l=a.tag)||6===l){r=i=a;continue e}s=s.parentNode}}r=r.return}Ie((function(){var r=i,o=ye(n),a=[];e:{var s=Ir.get(e);if(void 0!==s){var l=ln,u=e;switch(e){case"keypress":if(0===Jt(n))break e;case"keydown":case"keyup":l=Sn;break;case"focusin":u="focus",l=hn;break;case"focusout":u="blur",l=hn;break;case"beforeblur":case"afterblur":l=hn;break;case"click":if(2===n.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":l=fn;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":l=pn;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":l=Nn;break;case Er:case Sr:case Cr:l=mn;break;case Nr:l=In;break;case"scroll":l=cn;break;case"wheel":l=Tn;break;case"copy":case"cut":case"paste":l=gn;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":l=Cn}var c=!!(4&t),d=!c&&"scroll"===e,f=c?null!==s?s+"Capture":null:s;c=[];for(var p,h=r;null!==h;){var m=(p=h).stateNode;if(5===p.tag&&null!==m&&(p=m,null!==f&&(null!=(m=Ae(h,f))&&c.push(Wr(h,m,p)))),d)break;h=h.return}0<c.length&&(s=new l(s,u,null,n,o),a.push({event:s,listeners:c}))}}if(!(7&t)){if(l="mouseout"===e||"pointerout"===e,(!(s="mouseover"===e||"pointerover"===e)||n===ge||!(u=n.relatedTarget||n.fromElement)||!go(u)&&!u[po])&&(l||s)&&(s=o.window===o?o:(s=o.ownerDocument)?s.defaultView||s.parentWindow:window,l?(l=r,null!==(u=(u=n.relatedTarget||n.toElement)?go(u):null)&&(u!==(d=Fe(u))||5!==u.tag&&6!==u.tag)&&(u=null)):(l=null,u=r),l!==u)){if(c=fn,m="onMouseLeave",f="onMouseEnter",h="mouse",("pointerout"===e||"pointerover"===e)&&(c=Cn,m="onPointerLeave",f="onPointerEnter",h="pointer"),d=null==l?s:bo(l),p=null==u?s:bo(u),(s=new c(m,h+"leave",l,n,o)).target=d,s.relatedTarget=p,m=null,go(o)===r&&((c=new c(f,h+"enter",u,n,o)).target=p,c.relatedTarget=d,m=c),d=m,l&&u)e:{for(f=u,h=0,p=c=l;p;p=Kr(p))h++;for(p=0,m=f;m;m=Kr(m))p++;for(;0<h-p;)c=Kr(c),h--;for(;0<p-h;)f=Kr(f),p--;for(;h--;){if(c===f||null!==f&&c===f.alternate)break e;c=Kr(c),f=Kr(f)}c=null}else c=null;null!==l&&Zr(a,s,l,c,!1),null!==u&&null!==d&&Zr(a,d,u,c,!0)}if("select"===(l=(s=r?bo(r):window).nodeName&&s.nodeName.toLowerCase())||"input"===l&&"file"===s.type)var v=Hn;else if(Bn(s))if(Gn)v=or;else{v=nr;var g=tr}else(l=s.nodeName)&&"input"===l.toLowerCase()&&("checkbox"===s.type||"radio"===s.type)&&(v=rr);switch(v&&(v=v(e,r))?Wn(a,v,n,o):(g&&g(e,s,r),"focusout"===e&&(g=s._wrapperState)&&g.controlled&&"number"===s.type&&Y(s,"number",s.value)),g=r?bo(r):window,e){case"focusin":(Bn(g)||"true"===g.contentEditable)&&(hr=g,mr=r,vr=null);break;case"focusout":vr=mr=hr=null;break;case"mousedown":gr=!0;break;case"contextmenu":case"mouseup":case"dragend":gr=!1,yr(a,n,o);break;case"selectionchange":if(pr)break;case"keydown":case"keyup":yr(a,n,o)}var y;if(Dn)e:{switch(e){case"compositionstart":var b="onCompositionStart";break e;case"compositionend":b="onCompositionEnd";break e;case"compositionupdate":b="onCompositionUpdate";break e}b=void 0}else zn?Un(e,n)&&(b="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(b="onCompositionStart");b&&(Mn&&"ko"!==n.locale&&(zn||"onCompositionStart"!==b?"onCompositionEnd"===b&&zn&&(y=Xt()):(Qt="value"in(Gt=o)?Gt.value:Gt.textContent,zn=!0)),0<(g=Vr(r,b)).length&&(b=new yn(b,e,null,n,o),a.push({event:b,listeners:g}),y?b.data=y:null!==(y=Fn(n))&&(b.data=y))),(y=Rn?function(e,t){switch(e){case"compositionend":return Fn(t);case"keypress":return 32!==t.which?null:(Ln=!0,jn);case"textInput":return(e=t.data)===jn&&Ln?null:e;default:return null}}(e,n):function(e,t){if(zn)return"compositionend"===e||!Dn&&Un(e,t)?(e=Xt(),Yt=Qt=Gt=null,zn=!1,e):null;switch(e){case"paste":default:return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Mn&&"ko"!==t.locale?null:t.data}}(e,n))&&(0<(r=Vr(r,"onBeforeInput")).length&&(o=new yn("onBeforeInput","beforeinput",null,n,o),a.push({event:o,listeners:r}),o.data=y))}jr(a,t)}))}function Wr(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Vr(e,t){for(var n=t+"Capture",r=[];null!==e;){var o=e,i=o.stateNode;5===o.tag&&null!==i&&(o=i,null!=(i=Ae(e,n))&&r.unshift(Wr(e,i,o)),null!=(i=Ae(e,t))&&r.push(Wr(e,i,o))),e=e.return}return r}function Kr(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function Zr(e,t,n,r,o){for(var i=t._reactName,a=[];null!==n&&n!==r;){var s=n,l=s.alternate,u=s.stateNode;if(null!==l&&l===r)break;5===s.tag&&null!==u&&(s=u,o?null!=(l=Ae(n,i))&&a.unshift(Wr(n,l,s)):o||null!=(l=Ae(n,i))&&a.push(Wr(n,l,s))),n=n.return}0!==a.length&&e.push({event:t,listeners:a})}var qr=/\r\n?/g,Hr=/\u0000|\uFFFD/g;function Gr(e){return("string"==typeof e?e:""+e).replace(qr,"\n").replace(Hr,"")}function Qr(e,t,r){if(t=Gr(t),Gr(e)!==t&&r)throw Error(n(425))}function Yr(){}var Xr=null,Jr=null;function eo(e,t){return"textarea"===e||"noscript"===e||"string"==typeof t.children||"number"==typeof t.children||"object"==typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var to="function"==typeof setTimeout?setTimeout:void 0,no="function"==typeof clearTimeout?clearTimeout:void 0,ro="function"==typeof Promise?Promise:void 0,oo="function"==typeof queueMicrotask?queueMicrotask:typeof ro<"u"?function(e){return ro.resolve(null).then(e).catch(io)}:to;function io(e){setTimeout((function(){throw e}))}function ao(e,t){var n=t,r=0;do{var o=n.nextSibling;if(e.removeChild(n),o&&8===o.nodeType)if("/$"===(n=o.data)){if(0===r)return e.removeChild(o),void zt(t);r--}else"$"!==n&&"$?"!==n&&"$!"!==n||r++;n=o}while(n);zt(t)}function so(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break;if(8===t){if("$"===(t=e.data)||"$!"===t||"$?"===t)break;if("/$"===t)return null}}return e}function lo(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("$"===n||"$!"===n||"$?"===n){if(0===t)return e;t--}else"/$"===n&&t++}e=e.previousSibling}return null}var uo=Math.random().toString(36).slice(2),co="__reactFiber$"+uo,fo="__reactProps$"+uo,po="__reactContainer$"+uo,ho="__reactEvents$"+uo,mo="__reactListeners$"+uo,vo="__reactHandles$"+uo;function go(e){var t=e[co];if(t)return t;for(var n=e.parentNode;n;){if(t=n[po]||n[co]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=lo(e);null!==e;){if(n=e[co])return n;e=lo(e)}return t}n=(e=n).parentNode}return null}function yo(e){return!(e=e[co]||e[po])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function bo(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(n(33))}function _o(e){return e[fo]||null}var wo=[],xo=-1;function Eo(e){return{current:e}}function So(e){0>xo||(e.current=wo[xo],wo[xo]=null,xo--)}function Co(e,t){xo++,wo[xo]=e.current,e.current=t}var No={},Io=Eo(No),Ao=Eo(!1),To=No;function Oo(e,t){var n=e.type.contextTypes;if(!n)return No;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o,i={};for(o in n)i[o]=t[o];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function Do(e){return null!=(e=e.childContextTypes)}function Po(){So(Ao),So(Io)}function Ro(e,t,r){if(Io.current!==No)throw Error(n(168));Co(Io,t),Co(Ao,r)}function Mo(e,t,r){var o=e.stateNode;if(t=t.childContextTypes,"function"!=typeof o.getChildContext)return r;for(var i in o=o.getChildContext())if(!(i in t))throw Error(n(108,z(e)||"Unknown",i));return R({},r,o)}function jo(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||No,To=Io.current,Co(Io,e),Co(Ao,Ao.current),!0}function Lo(e,t,r){var o=e.stateNode;if(!o)throw Error(n(169));r?(e=Mo(e,t,To),o.__reactInternalMemoizedMergedChildContext=e,So(Ao),So(Io),Co(Io,e)):So(Ao),Co(Ao,r)}var Uo=null,Fo=!1,zo=!1;function $o(e){null===Uo?Uo=[e]:Uo.push(e)}function Bo(){if(!zo&&null!==Uo){zo=!0;var e=0,t=vt;try{var n=Uo;for(vt=1;e<n.length;e++){var r=n[e];do{r=r(!0)}while(null!==r)}Uo=null,Fo=!1}catch(t){throw null!==Uo&&(Uo=Uo.slice(e+1)),Ve(Qe,Bo),t}finally{vt=t,zo=!1}}return null}var Wo=[],Vo=0,Ko=null,Zo=0,qo=[],Ho=0,Go=null,Qo=1,Yo="";function Xo(e,t){Wo[Vo++]=Zo,Wo[Vo++]=Ko,Ko=e,Zo=t}function Jo(e,t,n){qo[Ho++]=Qo,qo[Ho++]=Yo,qo[Ho++]=Go,Go=e;var r=Qo;e=Yo;var o=32-rt(r)-1;r&=~(1<<o),n+=1;var i=32-rt(t)+o;if(30<i){var a=o-o%5;i=(r&(1<<a)-1).toString(32),r>>=a,o-=a,Qo=1<<32-rt(t)+o|n<<o|r,Yo=i+e}else Qo=1<<i|n<<o|r,Yo=e}function ei(e){null!==e.return&&(Xo(e,1),Jo(e,1,0))}function ti(e){for(;e===Ko;)Ko=Wo[--Vo],Wo[Vo]=null,Zo=Wo[--Vo],Wo[Vo]=null;for(;e===Go;)Go=qo[--Ho],qo[Ho]=null,Yo=qo[--Ho],qo[Ho]=null,Qo=qo[--Ho],qo[Ho]=null}var ni=null,ri=null,oi=!1,ii=null;function ai(e,t){var n=Ou(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,null===(t=e.deletions)?(e.deletions=[n],e.flags|=16):t.push(n)}function si(e,t){switch(e.tag){case 5:var n=e.type;return null!==(t=1!==t.nodeType||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,ni=e,ri=so(t.firstChild),!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,ni=e,ri=null,!0);case 13:return null!==(t=8!==t.nodeType?null:t)&&(n=null!==Go?{id:Qo,overflow:Yo}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},(n=Ou(18,null,null,0)).stateNode=t,n.return=e,e.child=n,ni=e,ri=null,!0);default:return!1}}function li(e){return!(!(1&e.mode)||128&e.flags)}function ui(e){if(oi){var t=ri;if(t){var r=t;if(!si(e,t)){if(li(e))throw Error(n(418));t=so(r.nextSibling);var o=ni;t&&si(e,t)?ai(o,r):(e.flags=-4097&e.flags|2,oi=!1,ni=e)}}else{if(li(e))throw Error(n(418));e.flags=-4097&e.flags|2,oi=!1,ni=e}}}function ci(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;ni=e}function di(e){if(e!==ni)return!1;if(!oi)return ci(e),oi=!0,!1;var t;if((t=3!==e.tag)&&!(t=5!==e.tag)&&(t="head"!==(t=e.type)&&"body"!==t&&!eo(e.type,e.memoizedProps)),t&&(t=ri)){if(li(e))throw fi(),Error(n(418));for(;t;)ai(e,t),t=so(t.nextSibling)}if(ci(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(n(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var r=e.data;if("/$"===r){if(0===t){ri=so(e.nextSibling);break e}t--}else"$"!==r&&"$!"!==r&&"$?"!==r||t++}e=e.nextSibling}ri=null}}else ri=ni?so(e.stateNode.nextSibling):null;return!0}function fi(){for(var e=ri;e;)e=so(e.nextSibling)}function pi(){ri=ni=null,oi=!1}function hi(e){null===ii?ii=[e]:ii.push(e)}var mi=g.ReactCurrentBatchConfig;function vi(e,t){if(e&&e.defaultProps){for(var n in t=R({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}return t}var gi=Eo(null),yi=null,bi=null,_i=null;function wi(){_i=bi=yi=null}function xi(e){var t=gi.current;So(gi),e._currentValue=t}function ki(e,t,n){for(;null!==e;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,null!==r&&(r.childLanes|=t)):null!==r&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Ei(e,t){yi=e,_i=bi=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(e.lanes&t&&(bs=!0),e.firstContext=null)}function Si(e){var t=e._currentValue;if(_i!==e)if(e={context:e,memoizedValue:t,next:null},null===bi){if(null===yi)throw Error(n(308));bi=e,yi.dependencies={lanes:0,firstContext:e}}else bi=bi.next=e;return t}var Ci=null;function Ni(e){null===Ci?Ci=[e]:Ci.push(e)}function Ii(e,t,n,r){var o=t.interleaved;return null===o?(n.next=n,Ni(t)):(n.next=o.next,o.next=n),t.interleaved=n,Ai(e,r)}function Ai(e,t){e.lanes|=t;var n=e.alternate;for(null!==n&&(n.lanes|=t),n=e,e=e.return;null!==e;)e.childLanes|=t,null!==(n=e.alternate)&&(n.childLanes|=t),n=e,e=e.return;return 3===n.tag?n.stateNode:null}var Ti=!1;function Oi(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Di(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Pi(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Ri(e,t,n){var r=e.updateQueue;if(null===r)return null;if(r=r.shared,2&Il){var o=r.pending;return null===o?t.next=t:(t.next=o.next,o.next=t),r.pending=t,Ai(e,n)}return null===(o=r.interleaved)?(t.next=t,Ni(r)):(t.next=o.next,o.next=t),r.interleaved=t,Ai(e,n)}function Mi(e,t,n){if(null!==(t=t.updateQueue)&&(t=t.shared,4194240&n)){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,mt(e,n)}}function ji(e,t){var n=e.updateQueue,r=e.alternate;if(null!==r&&n===(r=r.updateQueue)){var o=null,i=null;if(null!==(n=n.firstBaseUpdate)){do{var a={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};null===i?o=i=a:i=i.next=a,n=n.next}while(null!==n);null===i?o=i=t:i=i.next=t}else o=i=t;return n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:i,shared:r.shared,effects:r.effects},void(e.updateQueue=n)}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Li(e,t,n,r){var o=e.updateQueue;Ti=!1;var i=o.firstBaseUpdate,a=o.lastBaseUpdate,s=o.shared.pending;if(null!==s){o.shared.pending=null;var l=s,u=l.next;l.next=null,null===a?i=u:a.next=u,a=l;var c=e.alternate;null!==c&&((s=(c=c.updateQueue).lastBaseUpdate)!==a&&(null===s?c.firstBaseUpdate=u:s.next=u,c.lastBaseUpdate=l))}if(null!==i){var d=o.baseState;for(a=0,c=u=l=null,s=i;;){var f=s.lane,p=s.eventTime;if((r&f)===f){null!==c&&(c=c.next={eventTime:p,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var h=e,m=s;switch(f=t,p=n,m.tag){case 1:if("function"==typeof(h=m.payload)){d=h.call(p,d,f);break e}d=h;break e;case 3:h.flags=-65537&h.flags|128;case 0:if(null==(f="function"==typeof(h=m.payload)?h.call(p,d,f):h))break e;d=R({},d,f);break e;case 2:Ti=!0}}null!==s.callback&&0!==s.lane&&(e.flags|=64,null===(f=o.effects)?o.effects=[s]:f.push(s))}else p={eventTime:p,lane:f,tag:s.tag,payload:s.payload,callback:s.callback,next:null},null===c?(u=c=p,l=d):c=c.next=p,a|=f;if(null===(s=s.next)){if(null===(s=o.shared.pending))break;s=(f=s).next,f.next=null,o.lastBaseUpdate=f,o.shared.pending=null}}if(null===c&&(l=d),o.baseState=l,o.firstBaseUpdate=u,o.lastBaseUpdate=c,null!==(t=o.shared.interleaved)){o=t;do{a|=o.lane,o=o.next}while(o!==t)}else null===i&&(o.shared.lanes=0);jl|=a,e.lanes=a,e.memoizedState=d}}function Ui(e,t,r){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var o=e[t],i=o.callback;if(null!==i){if(o.callback=null,o=r,"function"!=typeof i)throw Error(n(191,i));i.call(o)}}}var Fi=(new e.Component).refs;function zi(e,t,n,r){n=null==(n=n(r,t=e.memoizedState))?t:R({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}var $i={isMounted:function(e){return!!(e=e._reactInternals)&&Fe(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=eu(),o=tu(e),i=Pi(r,o);i.payload=t,null!=n&&(i.callback=n),null!==(t=Ri(e,i,o))&&(nu(t,e,o,r),Mi(t,e,o))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=eu(),o=tu(e),i=Pi(r,o);i.tag=1,i.payload=t,null!=n&&(i.callback=n),null!==(t=Ri(e,i,o))&&(nu(t,e,o,r),Mi(t,e,o))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=eu(),r=tu(e),o=Pi(n,r);o.tag=2,null!=t&&(o.callback=t),null!==(t=Ri(e,o,r))&&(nu(t,e,r,n),Mi(t,e,r))}};function Bi(e,t,n,r,o,i,a){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,i,a):!t.prototype||!t.prototype.isPureReactComponent||(!ar(n,r)||!ar(o,i))}function Wi(e,t,n){var r=!1,o=No,i=t.contextType;return"object"==typeof i&&null!==i?i=Si(i):(o=Do(t)?To:Io.current,i=(r=null!=(r=t.contextTypes))?Oo(e,o):No),t=new t(n,i),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=$i,e.stateNode=t,t._reactInternals=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=i),t}function Vi(e,t,n,r){e=t.state,"function"==typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"==typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&$i.enqueueReplaceState(t,t.state,null)}function Ki(e,t,n,r){var o=e.stateNode;o.props=n,o.state=e.memoizedState,o.refs=Fi,Oi(e);var i=t.contextType;"object"==typeof i&&null!==i?o.context=Si(i):(i=Do(t)?To:Io.current,o.context=Oo(e,i)),o.state=e.memoizedState,"function"==typeof(i=t.getDerivedStateFromProps)&&(zi(e,t,i,n),o.state=e.memoizedState),"function"==typeof t.getDerivedStateFromProps||"function"==typeof o.getSnapshotBeforeUpdate||"function"!=typeof o.UNSAFE_componentWillMount&&"function"!=typeof o.componentWillMount||(t=o.state,"function"==typeof o.componentWillMount&&o.componentWillMount(),"function"==typeof o.UNSAFE_componentWillMount&&o.UNSAFE_componentWillMount(),t!==o.state&&$i.enqueueReplaceState(o,o.state,null),Li(e,n,o,r),o.state=e.memoizedState),"function"==typeof o.componentDidMount&&(e.flags|=4194308)}function Zi(e,t,r){if(null!==(e=r.ref)&&"function"!=typeof e&&"object"!=typeof e){if(r._owner){if(r=r._owner){if(1!==r.tag)throw Error(n(309));var o=r.stateNode}if(!o)throw Error(n(147,e));var i=o,a=""+e;return null!==t&&null!==t.ref&&"function"==typeof t.ref&&t.ref._stringRef===a?t.ref:((t=function(e){var t=i.refs;t===Fi&&(t=i.refs={}),null===e?delete t[a]:t[a]=e})._stringRef=a,t)}if("string"!=typeof e)throw Error(n(284));if(!r._owner)throw Error(n(290,e))}return e}function qi(e,t){throw e=Object.prototype.toString.call(t),Error(n(31,"[object Object]"===e?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function Hi(e){return(0,e._init)(e._payload)}function Gi(e){function t(t,n){if(e){var r=t.deletions;null===r?(t.deletions=[n],t.flags|=16):r.push(n)}}function r(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function o(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function i(e,t){return(e=Pu(e,t)).index=0,e.sibling=null,e}function a(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.flags|=2,n):r:(t.flags|=2,n):(t.flags|=1048576,n)}function s(t){return e&&null===t.alternate&&(t.flags|=2),t}function l(e,t,n,r){return null===t||6!==t.tag?((t=Lu(n,e.mode,r)).return=e,t):((t=i(t,n)).return=e,t)}function u(e,t,n,r){var o=n.type;return o===_?d(e,t,n.props.children,r,n.key):null!==t&&(t.elementType===o||"object"==typeof o&&null!==o&&o.$$typeof===A&&Hi(o)===t.type)?((r=i(t,n.props)).ref=Zi(e,t,n),r.return=e,r):((r=Ru(n.type,n.key,n.props,null,e.mode,r)).ref=Zi(e,t,n),r.return=e,r)}function c(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=Uu(n,e.mode,r)).return=e,t):((t=i(t,n.children||[])).return=e,t)}function d(e,t,n,r,o){return null===t||7!==t.tag?((t=Mu(n,e.mode,r,o)).return=e,t):((t=i(t,n)).return=e,t)}function f(e,t,n){if("string"==typeof t&&""!==t||"number"==typeof t)return(t=Lu(""+t,e.mode,n)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case y:return(n=Ru(t.type,t.key,t.props,null,e.mode,n)).ref=Zi(e,null,t),n.return=e,n;case b:return(t=Uu(t,e.mode,n)).return=e,t;case A:return f(e,(0,t._init)(t._payload),n)}if(X(t)||D(t))return(t=Mu(t,e.mode,n,null)).return=e,t;qi(e,t)}return null}function p(e,t,n,r){var o=null!==t?t.key:null;if("string"==typeof n&&""!==n||"number"==typeof n)return null!==o?null:l(e,t,""+n,r);if("object"==typeof n&&null!==n){switch(n.$$typeof){case y:return n.key===o?u(e,t,n,r):null;case b:return n.key===o?c(e,t,n,r):null;case A:return p(e,t,(o=n._init)(n._payload),r)}if(X(n)||D(n))return null!==o?null:d(e,t,n,r,null);qi(e,n)}return null}function h(e,t,n,r,o){if("string"==typeof r&&""!==r||"number"==typeof r)return l(t,e=e.get(n)||null,""+r,o);if("object"==typeof r&&null!==r){switch(r.$$typeof){case y:return u(t,e=e.get(null===r.key?n:r.key)||null,r,o);case b:return c(t,e=e.get(null===r.key?n:r.key)||null,r,o);case A:return h(e,t,n,(0,r._init)(r._payload),o)}if(X(r)||D(r))return d(t,e=e.get(n)||null,r,o,null);qi(t,r)}return null}return function l(u,c,d,m){if("object"==typeof d&&null!==d&&d.type===_&&null===d.key&&(d=d.props.children),"object"==typeof d&&null!==d){switch(d.$$typeof){case y:e:{for(var v=d.key,g=c;null!==g;){if(g.key===v){if((v=d.type)===_){if(7===g.tag){r(u,g.sibling),(c=i(g,d.props.children)).return=u,u=c;break e}}else if(g.elementType===v||"object"==typeof v&&null!==v&&v.$$typeof===A&&Hi(v)===g.type){r(u,g.sibling),(c=i(g,d.props)).ref=Zi(u,g,d),c.return=u,u=c;break e}r(u,g);break}t(u,g),g=g.sibling}d.type===_?((c=Mu(d.props.children,u.mode,m,d.key)).return=u,u=c):((m=Ru(d.type,d.key,d.props,null,u.mode,m)).ref=Zi(u,c,d),m.return=u,u=m)}return s(u);case b:e:{for(g=d.key;null!==c;){if(c.key===g){if(4===c.tag&&c.stateNode.containerInfo===d.containerInfo&&c.stateNode.implementation===d.implementation){r(u,c.sibling),(c=i(c,d.children||[])).return=u,u=c;break e}r(u,c);break}t(u,c),c=c.sibling}(c=Uu(d,u.mode,m)).return=u,u=c}return s(u);case A:return l(u,c,(g=d._init)(d._payload),m)}if(X(d))return function(n,i,s,l){for(var u=null,c=null,d=i,m=i=0,v=null;null!==d&&m<s.length;m++){d.index>m?(v=d,d=null):v=d.sibling;var g=p(n,d,s[m],l);if(null===g){null===d&&(d=v);break}e&&d&&null===g.alternate&&t(n,d),i=a(g,i,m),null===c?u=g:c.sibling=g,c=g,d=v}if(m===s.length)return r(n,d),oi&&Xo(n,m),u;if(null===d){for(;m<s.length;m++)null!==(d=f(n,s[m],l))&&(i=a(d,i,m),null===c?u=d:c.sibling=d,c=d);return oi&&Xo(n,m),u}for(d=o(n,d);m<s.length;m++)null!==(v=h(d,n,m,s[m],l))&&(e&&null!==v.alternate&&d.delete(null===v.key?m:v.key),i=a(v,i,m),null===c?u=v:c.sibling=v,c=v);return e&&d.forEach((function(e){return t(n,e)})),oi&&Xo(n,m),u}(u,c,d,m);if(D(d))return function(i,s,l,u){var c=D(l);if("function"!=typeof c)throw Error(n(150));if(null==(l=c.call(l)))throw Error(n(151));for(var d=c=null,m=s,v=s=0,g=null,y=l.next();null!==m&&!y.done;v++,y=l.next()){m.index>v?(g=m,m=null):g=m.sibling;var b=p(i,m,y.value,u);if(null===b){null===m&&(m=g);break}e&&m&&null===b.alternate&&t(i,m),s=a(b,s,v),null===d?c=b:d.sibling=b,d=b,m=g}if(y.done)return r(i,m),oi&&Xo(i,v),c;if(null===m){for(;!y.done;v++,y=l.next())null!==(y=f(i,y.value,u))&&(s=a(y,s,v),null===d?c=y:d.sibling=y,d=y);return oi&&Xo(i,v),c}for(m=o(i,m);!y.done;v++,y=l.next())null!==(y=h(m,i,v,y.value,u))&&(e&&null!==y.alternate&&m.delete(null===y.key?v:y.key),s=a(y,s,v),null===d?c=y:d.sibling=y,d=y);return e&&m.forEach((function(e){return t(i,e)})),oi&&Xo(i,v),c}(u,c,d,m);qi(u,d)}return"string"==typeof d&&""!==d||"number"==typeof d?(d=""+d,null!==c&&6===c.tag?(r(u,c.sibling),(c=i(c,d)).return=u,u=c):(r(u,c),(c=Lu(d,u.mode,m)).return=u,u=c),s(u)):r(u,c)}}var Qi=Gi(!0),Yi=Gi(!1),Xi={},Ji=Eo(Xi),ea=Eo(Xi),ta=Eo(Xi);function na(e){if(e===Xi)throw Error(n(174));return e}function ra(e,t){switch(Co(ta,t),Co(ea,e),Co(Ji,Xi),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:ie(null,"");break;default:t=ie(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}So(Ji),Co(Ji,t)}function oa(){So(Ji),So(ea),So(ta)}function ia(e){na(ta.current);var t=na(Ji.current),n=ie(t,e.type);t!==n&&(Co(ea,e),Co(Ji,n))}function aa(e){ea.current===e&&(So(Ji),So(ea))}var sa=Eo(0);function la(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||"$!"===n.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(128&t.flags)return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var ua=[];function ca(){for(var e=0;e<ua.length;e++)ua[e]._workInProgressVersionPrimary=null;ua.length=0}var da=g.ReactCurrentDispatcher,fa=g.ReactCurrentBatchConfig,pa=0,ha=null,ma=null,va=null,ga=!1,ya=!1,ba=0,_a=0;function wa(){throw Error(n(321))}function xa(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!ir(e[n],t[n]))return!1;return!0}function ka(e,t,r,o,i,a){if(pa=a,ha=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,da.current=null===e||null===e.memoizedState?as:ss,e=r(o,i),ya){a=0;do{if(ya=!1,ba=0,25<=a)throw Error(n(301));a+=1,va=ma=null,t.updateQueue=null,da.current=ls,e=r(o,i)}while(ya)}if(da.current=is,t=null!==ma&&null!==ma.next,pa=0,va=ma=ha=null,ga=!1,t)throw Error(n(300));return e}function Ea(){var e=0!==ba;return ba=0,e}function Sa(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===va?ha.memoizedState=va=e:va=va.next=e,va}function Ca(){if(null===ma){var e=ha.alternate;e=null!==e?e.memoizedState:null}else e=ma.next;var t=null===va?ha.memoizedState:va.next;if(null!==t)va=t,ma=e;else{if(null===e)throw Error(n(310));e={memoizedState:(ma=e).memoizedState,baseState:ma.baseState,baseQueue:ma.baseQueue,queue:ma.queue,next:null},null===va?ha.memoizedState=va=e:va=va.next=e}return va}function Na(e,t){return"function"==typeof t?t(e):t}function Ia(e){var t=Ca(),r=t.queue;if(null===r)throw Error(n(311));r.lastRenderedReducer=e;var o=ma,i=o.baseQueue,a=r.pending;if(null!==a){if(null!==i){var s=i.next;i.next=a.next,a.next=s}o.baseQueue=i=a,r.pending=null}if(null!==i){a=i.next,o=o.baseState;var l=s=null,u=null,c=a;do{var d=c.lane;if((pa&d)===d)null!==u&&(u=u.next={lane:0,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null}),o=c.hasEagerState?c.eagerState:e(o,c.action);else{var f={lane:d,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null};null===u?(l=u=f,s=o):u=u.next=f,ha.lanes|=d,jl|=d}c=c.next}while(null!==c&&c!==a);null===u?s=o:u.next=l,ir(o,t.memoizedState)||(bs=!0),t.memoizedState=o,t.baseState=s,t.baseQueue=u,r.lastRenderedState=o}if(null!==(e=r.interleaved)){i=e;do{a=i.lane,ha.lanes|=a,jl|=a,i=i.next}while(i!==e)}else null===i&&(r.lanes=0);return[t.memoizedState,r.dispatch]}function Aa(e){var t=Ca(),r=t.queue;if(null===r)throw Error(n(311));r.lastRenderedReducer=e;var o=r.dispatch,i=r.pending,a=t.memoizedState;if(null!==i){r.pending=null;var s=i=i.next;do{a=e(a,s.action),s=s.next}while(s!==i);ir(a,t.memoizedState)||(bs=!0),t.memoizedState=a,null===t.baseQueue&&(t.baseState=a),r.lastRenderedState=a}return[a,o]}function Ta(){}function Oa(e,t){var r=ha,o=Ca(),i=t(),a=!ir(o.memoizedState,i);if(a&&(o.memoizedState=i,bs=!0),o=o.queue,Wa(Ra.bind(null,r,o,e),[e]),o.getSnapshot!==t||a||null!==va&&1&va.memoizedState.tag){if(r.flags|=2048,Ua(9,Pa.bind(null,r,o,i,t),void 0,null),null===Al)throw Error(n(349));30&pa||Da(r,t,i)}return i}function Da(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},null===(t=ha.updateQueue)?(t={lastEffect:null,stores:null},ha.updateQueue=t,t.stores=[e]):null===(n=t.stores)?t.stores=[e]:n.push(e)}function Pa(e,t,n,r){t.value=n,t.getSnapshot=r,Ma(t)&&ja(e)}function Ra(e,t,n){return n((function(){Ma(t)&&ja(e)}))}function Ma(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!ir(e,n)}catch{return!0}}function ja(e){var t=Ai(e,1);null!==t&&nu(t,e,1,-1)}function La(e){var t=Sa();return"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Na,lastRenderedState:e},t.queue=e,e=e.dispatch=ts.bind(null,ha,e),[t.memoizedState,e]}function Ua(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=ha.updateQueue)?(t={lastEffect:null,stores:null},ha.updateQueue=t,t.lastEffect=e.next=e):null===(n=t.lastEffect)?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function Fa(){return Ca().memoizedState}function za(e,t,n,r){var o=Sa();ha.flags|=e,o.memoizedState=Ua(1|t,n,void 0,void 0===r?null:r)}function $a(e,t,n,r){var o=Ca();r=void 0===r?null:r;var i=void 0;if(null!==ma){var a=ma.memoizedState;if(i=a.destroy,null!==r&&xa(r,a.deps))return void(o.memoizedState=Ua(t,n,i,r))}ha.flags|=e,o.memoizedState=Ua(1|t,n,i,r)}function Ba(e,t){return za(8390656,8,e,t)}function Wa(e,t){return $a(2048,8,e,t)}function Va(e,t){return $a(4,2,e,t)}function Ka(e,t){return $a(4,4,e,t)}function Za(e,t){return"function"==typeof t?(e=e(),t(e),function(){t(null)}):null!=t?(e=e(),t.current=e,function(){t.current=null}):void 0}function qa(e,t,n){return n=null!=n?n.concat([e]):null,$a(4,4,Za.bind(null,t,e),n)}function Ha(){}function Ga(e,t){var n=Ca();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&xa(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Qa(e,t){var n=Ca();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&xa(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Ya(e,t,n){return 21&pa?(ir(n,t)||(n=ft(),ha.lanes|=n,jl|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,bs=!0),e.memoizedState=n)}function Xa(e,t){var n=vt;vt=0!==n&&4>n?n:4,e(!0);var r=fa.transition;fa.transition={};try{e(!1),t()}finally{vt=n,fa.transition=r}}function Ja(){return Ca().memoizedState}function es(e,t,n){var r=tu(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},ns(e))rs(t,n);else if(null!==(n=Ii(e,t,n,r))){nu(n,e,r,eu()),os(n,t,r)}}function ts(e,t,n){var r=tu(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(ns(e))rs(t,o);else{var i=e.alternate;if(0===e.lanes&&(null===i||0===i.lanes)&&null!==(i=t.lastRenderedReducer))try{var a=t.lastRenderedState,s=i(a,n);if(o.hasEagerState=!0,o.eagerState=s,ir(s,a)){var l=t.interleaved;return null===l?(o.next=o,Ni(t)):(o.next=l.next,l.next=o),void(t.interleaved=o)}}catch{}null!==(n=Ii(e,t,o,r))&&(nu(n,e,r,o=eu()),os(n,t,r))}}function ns(e){var t=e.alternate;return e===ha||null!==t&&t===ha}function rs(e,t){ya=ga=!0;var n=e.pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function os(e,t,n){if(4194240&n){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,mt(e,n)}}var is={readContext:Si,useCallback:wa,useContext:wa,useEffect:wa,useImperativeHandle:wa,useInsertionEffect:wa,useLayoutEffect:wa,useMemo:wa,useReducer:wa,useRef:wa,useState:wa,useDebugValue:wa,useDeferredValue:wa,useTransition:wa,useMutableSource:wa,useSyncExternalStore:wa,useId:wa,unstable_isNewReconciler:!1},as={readContext:Si,useCallback:function(e,t){return Sa().memoizedState=[e,void 0===t?null:t],e},useContext:Si,useEffect:Ba,useImperativeHandle:function(e,t,n){return n=null!=n?n.concat([e]):null,za(4194308,4,Za.bind(null,t,e),n)},useLayoutEffect:function(e,t){return za(4194308,4,e,t)},useInsertionEffect:function(e,t){return za(4,2,e,t)},useMemo:function(e,t){var n=Sa();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Sa();return t=void 0!==n?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=es.bind(null,ha,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},Sa().memoizedState=e},useState:La,useDebugValue:Ha,useDeferredValue:function(e){return Sa().memoizedState=e},useTransition:function(){var e=La(!1),t=e[0];return e=Xa.bind(null,e[1]),Sa().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,r){var o=ha,i=Sa();if(oi){if(void 0===r)throw Error(n(407));r=r()}else{if(r=t(),null===Al)throw Error(n(349));30&pa||Da(o,t,r)}i.memoizedState=r;var a={value:r,getSnapshot:t};return i.queue=a,Ba(Ra.bind(null,o,a,e),[e]),o.flags|=2048,Ua(9,Pa.bind(null,o,a,r,t),void 0,null),r},useId:function(){var e=Sa(),t=Al.identifierPrefix;if(oi){var n=Yo;t=":"+t+"R"+(n=(Qo&~(1<<32-rt(Qo)-1)).toString(32)+n),0<(n=ba++)&&(t+="H"+n.toString(32)),t+=":"}else t=":"+t+"r"+(n=_a++).toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},ss={readContext:Si,useCallback:Ga,useContext:Si,useEffect:Wa,useImperativeHandle:qa,useInsertionEffect:Va,useLayoutEffect:Ka,useMemo:Qa,useReducer:Ia,useRef:Fa,useState:function(){return Ia(Na)},useDebugValue:Ha,useDeferredValue:function(e){return Ya(Ca(),ma.memoizedState,e)},useTransition:function(){return[Ia(Na)[0],Ca().memoizedState]},useMutableSource:Ta,useSyncExternalStore:Oa,useId:Ja,unstable_isNewReconciler:!1},ls={readContext:Si,useCallback:Ga,useContext:Si,useEffect:Wa,useImperativeHandle:qa,useInsertionEffect:Va,useLayoutEffect:Ka,useMemo:Qa,useReducer:Aa,useRef:Fa,useState:function(){return Aa(Na)},useDebugValue:Ha,useDeferredValue:function(e){var t=Ca();return null===ma?t.memoizedState=e:Ya(t,ma.memoizedState,e)},useTransition:function(){return[Aa(Na)[0],Ca().memoizedState]},useMutableSource:Ta,useSyncExternalStore:Oa,useId:Ja,unstable_isNewReconciler:!1};function us(e,t){try{var n="",r=t;do{n+=U(r),r=r.return}while(r);var o=n}catch(e){o="\nError generating stack: "+e.message+"\n"+e.stack}return{value:e,source:t,stack:o,digest:null}}function cs(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function ds(e,t){try{console.error(t.value)}catch(e){setTimeout((function(){throw e}))}}var fs="function"==typeof WeakMap?WeakMap:Map;function ps(e,t,n){(n=Pi(-1,n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Vl||(Vl=!0,Kl=r),ds(0,t)},n}function hs(e,t,n){(n=Pi(-1,n)).tag=3;var r=e.type.getDerivedStateFromError;if("function"==typeof r){var o=t.value;n.payload=function(){return r(o)},n.callback=function(){ds(0,t)}}var i=e.stateNode;return null!==i&&"function"==typeof i.componentDidCatch&&(n.callback=function(){ds(0,t),"function"!=typeof r&&(null===Zl?Zl=new Set([this]):Zl.add(this));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}function ms(e,t,n){var r=e.pingCache;if(null===r){r=e.pingCache=new fs;var o=new Set;r.set(t,o)}else void 0===(o=r.get(t))&&(o=new Set,r.set(t,o));o.has(n)||(o.add(n),e=Su.bind(null,e,t,n),t.then(e,e))}function vs(e){do{var t;if((t=13===e.tag)&&(t=null===(t=e.memoizedState)||null!==t.dehydrated),t)return e;e=e.return}while(null!==e);return null}function gs(e,t,n,r,o){return 1&e.mode?(e.flags|=65536,e.lanes=o,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,1===n.tag&&(null===n.alternate?n.tag=17:((t=Pi(-1,1)).tag=2,Ri(n,t,1))),n.lanes|=1),e)}var ys=g.ReactCurrentOwner,bs=!1;function _s(e,t,n,r){t.child=null===e?Yi(t,null,n,r):Qi(t,e.child,n,r)}function ws(e,t,n,r,o){n=n.render;var i=t.ref;return Ei(t,o),r=ka(e,t,n,r,i,o),n=Ea(),null===e||bs?(oi&&n&&ei(t),t.flags|=1,_s(e,t,r,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Vs(e,t,o))}function xs(e,t,n,r,o){if(null===e){var i=n.type;return"function"!=typeof i||Du(i)||void 0!==i.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=Ru(n.type,null,r,t,t.mode,o)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=i,ks(e,t,i,r,o))}if(i=e.child,!(e.lanes&o)){var a=i.memoizedProps;if((n=null!==(n=n.compare)?n:ar)(a,r)&&e.ref===t.ref)return Vs(e,t,o)}return t.flags|=1,(e=Pu(i,r)).ref=t.ref,e.return=t,t.child=e}function ks(e,t,n,r,o){if(null!==e){var i=e.memoizedProps;if(ar(i,r)&&e.ref===t.ref){if(bs=!1,t.pendingProps=r=i,!(e.lanes&o))return t.lanes=e.lanes,Vs(e,t,o);131072&e.flags&&(bs=!0)}}return Cs(e,t,n,r,o)}function Es(e,t,n){var r=t.pendingProps,o=r.children,i=null!==e?e.memoizedState:null;if("hidden"===r.mode)if(1&t.mode){if(!(1073741824&n))return e=null!==i?i.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Co(Pl,Dl),Dl|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=null!==i?i.baseLanes:n,Co(Pl,Dl),Dl|=r}else t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Co(Pl,Dl),Dl|=n;else null!==i?(r=i.baseLanes|n,t.memoizedState=null):r=n,Co(Pl,Dl),Dl|=r;return _s(e,t,o,n),t.child}function Ss(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Cs(e,t,n,r,o){var i=Do(n)?To:Io.current;return i=Oo(t,i),Ei(t,o),n=ka(e,t,n,r,i,o),r=Ea(),null===e||bs?(oi&&r&&ei(t),t.flags|=1,_s(e,t,n,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Vs(e,t,o))}function Ns(e,t,n,r,o){if(Do(n)){var i=!0;jo(t)}else i=!1;if(Ei(t,o),null===t.stateNode)Ws(e,t),Wi(t,n,r),Ki(t,n,r,o),r=!0;else if(null===e){var a=t.stateNode,s=t.memoizedProps;a.props=s;var l=a.context,u=n.contextType;"object"==typeof u&&null!==u?u=Si(u):u=Oo(t,u=Do(n)?To:Io.current);var c=n.getDerivedStateFromProps,d="function"==typeof c||"function"==typeof a.getSnapshotBeforeUpdate;d||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(s!==r||l!==u)&&Vi(t,a,r,u),Ti=!1;var f=t.memoizedState;a.state=f,Li(t,r,a,o),l=t.memoizedState,s!==r||f!==l||Ao.current||Ti?("function"==typeof c&&(zi(t,n,c,r),l=t.memoizedState),(s=Ti||Bi(t,n,s,r,f,l,u))?(d||"function"!=typeof a.UNSAFE_componentWillMount&&"function"!=typeof a.componentWillMount||("function"==typeof a.componentWillMount&&a.componentWillMount(),"function"==typeof a.UNSAFE_componentWillMount&&a.UNSAFE_componentWillMount()),"function"==typeof a.componentDidMount&&(t.flags|=4194308)):("function"==typeof a.componentDidMount&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=l),a.props=r,a.state=l,a.context=u,r=s):("function"==typeof a.componentDidMount&&(t.flags|=4194308),r=!1)}else{a=t.stateNode,Di(e,t),s=t.memoizedProps,u=t.type===t.elementType?s:vi(t.type,s),a.props=u,d=t.pendingProps,f=a.context,"object"==typeof(l=n.contextType)&&null!==l?l=Si(l):l=Oo(t,l=Do(n)?To:Io.current);var p=n.getDerivedStateFromProps;(c="function"==typeof p||"function"==typeof a.getSnapshotBeforeUpdate)||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(s!==d||f!==l)&&Vi(t,a,r,l),Ti=!1,f=t.memoizedState,a.state=f,Li(t,r,a,o);var h=t.memoizedState;s!==d||f!==h||Ao.current||Ti?("function"==typeof p&&(zi(t,n,p,r),h=t.memoizedState),(u=Ti||Bi(t,n,u,r,f,h,l)||!1)?(c||"function"!=typeof a.UNSAFE_componentWillUpdate&&"function"!=typeof a.componentWillUpdate||("function"==typeof a.componentWillUpdate&&a.componentWillUpdate(r,h,l),"function"==typeof a.UNSAFE_componentWillUpdate&&a.UNSAFE_componentWillUpdate(r,h,l)),"function"==typeof a.componentDidUpdate&&(t.flags|=4),"function"==typeof a.getSnapshotBeforeUpdate&&(t.flags|=1024)):("function"!=typeof a.componentDidUpdate||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),"function"!=typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=h),a.props=r,a.state=h,a.context=l,r=u):("function"!=typeof a.componentDidUpdate||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),"function"!=typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),r=!1)}return Is(e,t,n,r,i,o)}function Is(e,t,n,r,o,i){Ss(e,t);var a=!!(128&t.flags);if(!r&&!a)return o&&Lo(t,n,!1),Vs(e,t,i);r=t.stateNode,ys.current=t;var s=a&&"function"!=typeof n.getDerivedStateFromError?null:r.render();return t.flags|=1,null!==e&&a?(t.child=Qi(t,e.child,null,i),t.child=Qi(t,null,s,i)):_s(e,t,s,i),t.memoizedState=r.state,o&&Lo(t,n,!0),t.child}function As(e){var t=e.stateNode;t.pendingContext?Ro(0,t.pendingContext,t.pendingContext!==t.context):t.context&&Ro(0,t.context,!1),ra(e,t.containerInfo)}function Ts(e,t,n,r,o){return pi(),hi(o),t.flags|=256,_s(e,t,n,r),t.child}var Os,Ds,Ps,Rs,Ms={dehydrated:null,treeContext:null,retryLane:0};function js(e){return{baseLanes:e,cachePool:null,transitions:null}}function Ls(e,t,r){var o,i=t.pendingProps,a=sa.current,s=!1,l=!!(128&t.flags);if((o=l)||(o=(null===e||null!==e.memoizedState)&&!!(2&a)),o?(s=!0,t.flags&=-129):(null===e||null!==e.memoizedState)&&(a|=1),Co(sa,1&a),null===e)return ui(t),null!==(e=t.memoizedState)&&null!==(e=e.dehydrated)?(1&t.mode?"$!"===e.data?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(l=i.children,e=i.fallback,s?(i=t.mode,s=t.child,l={mode:"hidden",children:l},1&i||null===s?s=ju(l,i,0,null):(s.childLanes=0,s.pendingProps=l),e=Mu(e,i,r,null),s.return=t,e.return=t,s.sibling=e,t.child=s,t.child.memoizedState=js(r),t.memoizedState=Ms,e):Us(t,l));if(null!==(a=e.memoizedState)&&null!==(o=a.dehydrated))return function(e,t,r,o,i,a,s){if(r)return 256&t.flags?(t.flags&=-257,o=cs(Error(n(422))),Fs(e,t,s,o)):null!==t.memoizedState?(t.child=e.child,t.flags|=128,null):(a=o.fallback,i=t.mode,o=ju({mode:"visible",children:o.children},i,0,null),a=Mu(a,i,s,null),a.flags|=2,o.return=t,a.return=t,o.sibling=a,t.child=o,1&t.mode&&Qi(t,e.child,null,s),t.child.memoizedState=js(s),t.memoizedState=Ms,a);if(!(1&t.mode))return Fs(e,t,s,null);if("$!"===i.data){if(o=i.nextSibling&&i.nextSibling.dataset)var l=o.dgst;return o=l,Fs(e,t,s,o=cs(a=Error(n(419)),o,void 0))}if(l=!!(s&e.childLanes),bs||l){if(null!==(o=Al)){switch(s&-s){case 4:i=2;break;case 16:i=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:i=32;break;case 536870912:i=268435456;break;default:i=0}0!==(i=i&(o.suspendedLanes|s)?0:i)&&i!==a.retryLane&&(a.retryLane=i,Ai(e,i),nu(o,e,i,-1))}return mu(),Fs(e,t,s,o=cs(Error(n(421))))}return"$?"===i.data?(t.flags|=128,t.child=e.child,t=Nu.bind(null,e),i._reactRetry=t,null):(e=a.treeContext,ri=so(i.nextSibling),ni=t,oi=!0,ii=null,null!==e&&(qo[Ho++]=Qo,qo[Ho++]=Yo,qo[Ho++]=Go,Qo=e.id,Yo=e.overflow,Go=t),t=Us(t,o.children),t.flags|=4096,t)}(e,t,l,i,o,a,r);if(s){s=i.fallback,l=t.mode,o=(a=e.child).sibling;var u={mode:"hidden",children:i.children};return 1&l||t.child===a?(i=Pu(a,u)).subtreeFlags=14680064&a.subtreeFlags:((i=t.child).childLanes=0,i.pendingProps=u,t.deletions=null),null!==o?s=Pu(o,s):(s=Mu(s,l,r,null)).flags|=2,s.return=t,i.return=t,i.sibling=s,t.child=i,i=s,s=t.child,l=null===(l=e.child.memoizedState)?js(r):{baseLanes:l.baseLanes|r,cachePool:null,transitions:l.transitions},s.memoizedState=l,s.childLanes=e.childLanes&~r,t.memoizedState=Ms,i}return e=(s=e.child).sibling,i=Pu(s,{mode:"visible",children:i.children}),!(1&t.mode)&&(i.lanes=r),i.return=t,i.sibling=null,null!==e&&(null===(r=t.deletions)?(t.deletions=[e],t.flags|=16):r.push(e)),t.child=i,t.memoizedState=null,i}function Us(e,t){return(t=ju({mode:"visible",children:t},e.mode,0,null)).return=e,e.child=t}function Fs(e,t,n,r){return null!==r&&hi(r),Qi(t,e.child,null,n),(e=Us(t,t.pendingProps.children)).flags|=2,t.memoizedState=null,e}function zs(e,t,n){e.lanes|=t;var r=e.alternate;null!==r&&(r.lanes|=t),ki(e.return,t,n)}function $s(e,t,n,r,o){var i=e.memoizedState;null===i?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:o}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=r,i.tail=n,i.tailMode=o)}function Bs(e,t,n){var r=t.pendingProps,o=r.revealOrder,i=r.tail;if(_s(e,t,r.children,n),2&(r=sa.current))r=1&r|2,t.flags|=128;else{if(null!==e&&128&e.flags)e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&zs(e,n,t);else if(19===e.tag)zs(e,n,t);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(Co(sa,r),1&t.mode)switch(o){case"forwards":for(n=t.child,o=null;null!==n;)null!==(e=n.alternate)&&null===la(e)&&(o=n),n=n.sibling;null===(n=o)?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),$s(t,!1,o,n,i);break;case"backwards":for(n=null,o=t.child,t.child=null;null!==o;){if(null!==(e=o.alternate)&&null===la(e)){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}$s(t,!0,n,null,i);break;case"together":$s(t,!1,null,null,void 0);break;default:t.memoizedState=null}else t.memoizedState=null;return t.child}function Ws(e,t){!(1&t.mode)&&null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Vs(e,t,r){if(null!==e&&(t.dependencies=e.dependencies),jl|=t.lanes,!(r&t.childLanes))return null;if(null!==e&&t.child!==e.child)throw Error(n(153));if(null!==t.child){for(r=Pu(e=t.child,e.pendingProps),t.child=r,r.return=t;null!==e.sibling;)e=e.sibling,(r=r.sibling=Pu(e,e.pendingProps)).return=t;r.sibling=null}return t.child}function Ks(e,t){if(!oi)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Zs(e){var t=null!==e.alternate&&e.alternate.child===e.child,n=0,r=0;if(t)for(var o=e.child;null!==o;)n|=o.lanes|o.childLanes,r|=14680064&o.subtreeFlags,r|=14680064&o.flags,o.return=e,o=o.sibling;else for(o=e.child;null!==o;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags,r|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function qs(e,t,r){var i=t.pendingProps;switch(ti(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Zs(t),null;case 1:case 17:return Do(t.type)&&Po(),Zs(t),null;case 3:return i=t.stateNode,oa(),So(Ao),So(Io),ca(),i.pendingContext&&(i.context=i.pendingContext,i.pendingContext=null),(null===e||null===e.child)&&(di(t)?t.flags|=4:null===e||e.memoizedState.isDehydrated&&!(256&t.flags)||(t.flags|=1024,null!==ii&&(au(ii),ii=null))),Ds(e,t),Zs(t),null;case 5:aa(t);var a=na(ta.current);if(r=t.type,null!==e&&null!=t.stateNode)Ps(e,t,r,i,a),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!i){if(null===t.stateNode)throw Error(n(166));return Zs(t),null}if(e=na(Ji.current),di(t)){i=t.stateNode,r=t.type;var s=t.memoizedProps;switch(i[co]=t,i[fo]=s,e=!!(1&t.mode),r){case"dialog":Lr("cancel",i),Lr("close",i);break;case"iframe":case"object":case"embed":Lr("load",i);break;case"video":case"audio":for(a=0;a<Pr.length;a++)Lr(Pr[a],i);break;case"source":Lr("error",i);break;case"img":case"image":case"link":Lr("error",i),Lr("load",i);break;case"details":Lr("toggle",i);break;case"input":q(i,s),Lr("invalid",i);break;case"select":i._wrapperState={wasMultiple:!!s.multiple},Lr("invalid",i);break;case"textarea":te(i,s),Lr("invalid",i)}for(var l in me(r,s),a=null,s)if(s.hasOwnProperty(l)){var u=s[l];"children"===l?"string"==typeof u?i.textContent!==u&&(!0!==s.suppressHydrationWarning&&Qr(i.textContent,u,e),a=["children",u]):"number"==typeof u&&i.textContent!==""+u&&(!0!==s.suppressHydrationWarning&&Qr(i.textContent,u,e),a=["children",""+u]):o.hasOwnProperty(l)&&null!=u&&"onScroll"===l&&Lr("scroll",i)}switch(r){case"input":W(i),Q(i,s,!0);break;case"textarea":W(i),re(i);break;case"select":case"option":break;default:"function"==typeof s.onClick&&(i.onclick=Yr)}i=a,t.updateQueue=i,null!==i&&(t.flags|=4)}else{l=9===a.nodeType?a:a.ownerDocument,"http://www.w3.org/1999/xhtml"===e&&(e=oe(r)),"http://www.w3.org/1999/xhtml"===e?"script"===r?((e=l.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"==typeof i.is?e=l.createElement(r,{is:i.is}):(e=l.createElement(r),"select"===r&&(l=e,i.multiple?l.multiple=!0:i.size&&(l.size=i.size))):e=l.createElementNS(e,r),e[co]=t,e[fo]=i,Os(e,t,!1,!1),t.stateNode=e;e:{switch(l=ve(r,i),r){case"dialog":Lr("cancel",e),Lr("close",e),a=i;break;case"iframe":case"object":case"embed":Lr("load",e),a=i;break;case"video":case"audio":for(a=0;a<Pr.length;a++)Lr(Pr[a],e);a=i;break;case"source":Lr("error",e),a=i;break;case"img":case"image":case"link":Lr("error",e),Lr("load",e),a=i;break;case"details":Lr("toggle",e),a=i;break;case"input":q(e,i),a=Z(e,i),Lr("invalid",e);break;case"option":default:a=i;break;case"select":e._wrapperState={wasMultiple:!!i.multiple},a=R({},i,{value:void 0}),Lr("invalid",e);break;case"textarea":te(e,i),a=ee(e,i),Lr("invalid",e)}for(s in me(r,a),u=a)if(u.hasOwnProperty(s)){var c=u[s];"style"===s?pe(e,c):"dangerouslySetInnerHTML"===s?null!=(c=c?c.__html:void 0)&&le(e,c):"children"===s?"string"==typeof c?("textarea"!==r||""!==c)&&ue(e,c):"number"==typeof c&&ue(e,""+c):"suppressContentEditableWarning"!==s&&"suppressHydrationWarning"!==s&&"autoFocus"!==s&&(o.hasOwnProperty(s)?null!=c&&"onScroll"===s&&Lr("scroll",e):null!=c&&v(e,s,c,l))}switch(r){case"input":W(e),Q(e,i,!1);break;case"textarea":W(e),re(e);break;case"option":null!=i.value&&e.setAttribute("value",""+$(i.value));break;case"select":e.multiple=!!i.multiple,null!=(s=i.value)?J(e,!!i.multiple,s,!1):null!=i.defaultValue&&J(e,!!i.multiple,i.defaultValue,!0);break;default:"function"==typeof a.onClick&&(e.onclick=Yr)}switch(r){case"button":case"input":case"select":case"textarea":i=!!i.autoFocus;break e;case"img":i=!0;break e;default:i=!1}}i&&(t.flags|=4)}null!==t.ref&&(t.flags|=512,t.flags|=2097152)}return Zs(t),null;case 6:if(e&&null!=t.stateNode)Rs(e,t,e.memoizedProps,i);else{if("string"!=typeof i&&null===t.stateNode)throw Error(n(166));if(r=na(ta.current),na(Ji.current),di(t)){if(i=t.stateNode,r=t.memoizedProps,i[co]=t,(s=i.nodeValue!==r)&&null!==(e=ni))switch(e.tag){case 3:Qr(i.nodeValue,r,!!(1&e.mode));break;case 5:!0!==e.memoizedProps.suppressHydrationWarning&&Qr(i.nodeValue,r,!!(1&e.mode))}s&&(t.flags|=4)}else(i=(9===r.nodeType?r:r.ownerDocument).createTextNode(i))[co]=t,t.stateNode=i}return Zs(t),null;case 13:if(So(sa),i=t.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(oi&&null!==ri&&1&t.mode&&!(128&t.flags))fi(),pi(),t.flags|=98560,s=!1;else if(s=di(t),null!==i&&null!==i.dehydrated){if(null===e){if(!s)throw Error(n(318));if(!(s=null!==(s=t.memoizedState)?s.dehydrated:null))throw Error(n(317));s[co]=t}else pi(),!(128&t.flags)&&(t.memoizedState=null),t.flags|=4;Zs(t),s=!1}else null!==ii&&(au(ii),ii=null),s=!0;if(!s)return 65536&t.flags?t:null}return 128&t.flags?(t.lanes=r,t):((i=null!==i)!==(null!==e&&null!==e.memoizedState)&&i&&(t.child.flags|=8192,1&t.mode&&(null===e||1&sa.current?0===Rl&&(Rl=3):mu())),null!==t.updateQueue&&(t.flags|=4),Zs(t),null);case 4:return oa(),Ds(e,t),null===e&&zr(t.stateNode.containerInfo),Zs(t),null;case 10:return xi(t.type._context),Zs(t),null;case 19:if(So(sa),null===(s=t.memoizedState))return Zs(t),null;if(i=!!(128&t.flags),null===(l=s.rendering))if(i)Ks(s,!1);else{if(0!==Rl||null!==e&&128&e.flags)for(e=t.child;null!==e;){if(null!==(l=la(e))){for(t.flags|=128,Ks(s,!1),null!==(i=l.updateQueue)&&(t.updateQueue=i,t.flags|=4),t.subtreeFlags=0,i=r,r=t.child;null!==r;)e=i,(s=r).flags&=14680066,null===(l=s.alternate)?(s.childLanes=0,s.lanes=e,s.child=null,s.subtreeFlags=0,s.memoizedProps=null,s.memoizedState=null,s.updateQueue=null,s.dependencies=null,s.stateNode=null):(s.childLanes=l.childLanes,s.lanes=l.lanes,s.child=l.child,s.subtreeFlags=0,s.deletions=null,s.memoizedProps=l.memoizedProps,s.memoizedState=l.memoizedState,s.updateQueue=l.updateQueue,s.type=l.type,e=l.dependencies,s.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext}),r=r.sibling;return Co(sa,1&sa.current|2),t.child}e=e.sibling}null!==s.tail&&He()>Bl&&(t.flags|=128,i=!0,Ks(s,!1),t.lanes=4194304)}else{if(!i)if(null!==(e=la(l))){if(t.flags|=128,i=!0,null!==(r=e.updateQueue)&&(t.updateQueue=r,t.flags|=4),Ks(s,!0),null===s.tail&&"hidden"===s.tailMode&&!l.alternate&&!oi)return Zs(t),null}else 2*He()-s.renderingStartTime>Bl&&1073741824!==r&&(t.flags|=128,i=!0,Ks(s,!1),t.lanes=4194304);s.isBackwards?(l.sibling=t.child,t.child=l):(null!==(r=s.last)?r.sibling=l:t.child=l,s.last=l)}return null!==s.tail?(t=s.tail,s.rendering=t,s.tail=t.sibling,s.renderingStartTime=He(),t.sibling=null,r=sa.current,Co(sa,i?1&r|2:1&r),t):(Zs(t),null);case 22:case 23:return du(),i=null!==t.memoizedState,null!==e&&null!==e.memoizedState!==i&&(t.flags|=8192),i&&1&t.mode?1073741824&Dl&&(Zs(t),6&t.subtreeFlags&&(t.flags|=8192)):Zs(t),null;case 24:case 25:return null}throw Error(n(156,t.tag))}function Hs(e,t){switch(ti(t),t.tag){case 1:return Do(t.type)&&Po(),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return oa(),So(Ao),So(Io),ca(),65536&(e=t.flags)&&!(128&e)?(t.flags=-65537&e|128,t):null;case 5:return aa(t),null;case 13:if(So(sa),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(n(340));pi()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return So(sa),null;case 4:return oa(),null;case 10:return xi(t.type._context),null;case 22:case 23:return du(),null;default:return null}}Os=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},Ds=function(){},Ps=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,na(Ji.current);var a,s=null;switch(n){case"input":i=Z(e,i),r=Z(e,r),s=[];break;case"select":i=R({},i,{value:void 0}),r=R({},r,{value:void 0}),s=[];break;case"textarea":i=ee(e,i),r=ee(e,r),s=[];break;default:"function"!=typeof i.onClick&&"function"==typeof r.onClick&&(e.onclick=Yr)}for(c in me(n,r),n=null,i)if(!r.hasOwnProperty(c)&&i.hasOwnProperty(c)&&null!=i[c])if("style"===c){var l=i[c];for(a in l)l.hasOwnProperty(a)&&(n||(n={}),n[a]="")}else"dangerouslySetInnerHTML"!==c&&"children"!==c&&"suppressContentEditableWarning"!==c&&"suppressHydrationWarning"!==c&&"autoFocus"!==c&&(o.hasOwnProperty(c)?s||(s=[]):(s=s||[]).push(c,null));for(c in r){var u=r[c];if(l=null!=i?i[c]:void 0,r.hasOwnProperty(c)&&u!==l&&(null!=u||null!=l))if("style"===c)if(l){for(a in l)!l.hasOwnProperty(a)||u&&u.hasOwnProperty(a)||(n||(n={}),n[a]="");for(a in u)u.hasOwnProperty(a)&&l[a]!==u[a]&&(n||(n={}),n[a]=u[a])}else n||(s||(s=[]),s.push(c,n)),n=u;else"dangerouslySetInnerHTML"===c?(u=u?u.__html:void 0,l=l?l.__html:void 0,null!=u&&l!==u&&(s=s||[]).push(c,u)):"children"===c?"string"!=typeof u&&"number"!=typeof u||(s=s||[]).push(c,""+u):"suppressContentEditableWarning"!==c&&"suppressHydrationWarning"!==c&&(o.hasOwnProperty(c)?(null!=u&&"onScroll"===c&&Lr("scroll",e),s||l===u||(s=[])):(s=s||[]).push(c,u))}n&&(s=s||[]).push("style",n);var c=s;(t.updateQueue=c)&&(t.flags|=4)}},Rs=function(e,t,n,r){n!==r&&(t.flags|=4)};var Gs=!1,Qs=!1,Ys="function"==typeof WeakSet?WeakSet:Set,Xs=null;function Js(e,t){var n=e.ref;if(null!==n)if("function"==typeof n)try{n(null)}catch(n){Eu(e,t,n)}else n.current=null}function el(e,t,n){try{n()}catch(n){Eu(e,t,n)}}var tl=!1;function nl(e,t,n){var r=t.updateQueue;if(null!==(r=null!==r?r.lastEffect:null)){var o=r=r.next;do{if((o.tag&e)===e){var i=o.destroy;o.destroy=void 0,void 0!==i&&el(t,n,i)}o=o.next}while(o!==r)}}function rl(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function ol(e){var t=e.ref;if(null!==t){var n=e.stateNode;e.tag,e=n,"function"==typeof t?t(e):t.current=e}}function il(e){var t=e.alternate;null!==t&&(e.alternate=null,il(t)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag&&(null!==(t=e.stateNode)&&(delete t[co],delete t[fo],delete t[ho],delete t[mo],delete t[vo])),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 al(e){return 5===e.tag||3===e.tag||4===e.tag}function sl(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||al(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;5!==e.tag&&6!==e.tag&&18!==e.tag;){if(2&e.flags||null===e.child||4===e.tag)continue e;e.child.return=e,e=e.child}if(!(2&e.flags))return e.stateNode}}function ll(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?8===n.nodeType?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(8===n.nodeType?(t=n.parentNode).insertBefore(e,n):(t=n).appendChild(e),null!=(n=n._reactRootContainer)||null!==t.onclick||(t.onclick=Yr));else if(4!==r&&null!==(e=e.child))for(ll(e,t,n),e=e.sibling;null!==e;)ll(e,t,n),e=e.sibling}function ul(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==r&&null!==(e=e.child))for(ul(e,t,n),e=e.sibling;null!==e;)ul(e,t,n),e=e.sibling}var cl=null,dl=!1;function fl(e,t,n){for(n=n.child;null!==n;)pl(e,t,n),n=n.sibling}function pl(e,t,n){if(nt&&"function"==typeof nt.onCommitFiberUnmount)try{nt.onCommitFiberUnmount(tt,n)}catch{}switch(n.tag){case 5:Qs||Js(n,t);case 6:var r=cl,o=dl;cl=null,fl(e,t,n),dl=o,null!==(cl=r)&&(dl?(e=cl,n=n.stateNode,8===e.nodeType?e.parentNode.removeChild(n):e.removeChild(n)):cl.removeChild(n.stateNode));break;case 18:null!==cl&&(dl?(e=cl,n=n.stateNode,8===e.nodeType?ao(e.parentNode,n):1===e.nodeType&&ao(e,n),zt(e)):ao(cl,n.stateNode));break;case 4:r=cl,o=dl,cl=n.stateNode.containerInfo,dl=!0,fl(e,t,n),cl=r,dl=o;break;case 0:case 11:case 14:case 15:if(!Qs&&(null!==(r=n.updateQueue)&&null!==(r=r.lastEffect))){o=r=r.next;do{var i=o,a=i.destroy;i=i.tag,void 0!==a&&(2&i||4&i)&&el(n,t,a),o=o.next}while(o!==r)}fl(e,t,n);break;case 1:if(!Qs&&(Js(n,t),"function"==typeof(r=n.stateNode).componentWillUnmount))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(e){Eu(n,t,e)}fl(e,t,n);break;case 21:fl(e,t,n);break;case 22:1&n.mode?(Qs=(r=Qs)||null!==n.memoizedState,fl(e,t,n),Qs=r):fl(e,t,n);break;default:fl(e,t,n)}}function hl(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new Ys),t.forEach((function(t){var r=Iu.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))}))}}function ml(e,t){var r=t.deletions;if(null!==r)for(var o=0;o<r.length;o++){var i=r[o];try{var a=e,s=t,l=s;e:for(;null!==l;){switch(l.tag){case 5:cl=l.stateNode,dl=!1;break e;case 3:case 4:cl=l.stateNode.containerInfo,dl=!0;break e}l=l.return}if(null===cl)throw Error(n(160));pl(a,s,i),cl=null,dl=!1;var u=i.alternate;null!==u&&(u.return=null),i.return=null}catch(e){Eu(i,t,e)}}if(12854&t.subtreeFlags)for(t=t.child;null!==t;)vl(t,e),t=t.sibling}function vl(e,t){var r=e.alternate,o=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(ml(t,e),gl(e),4&o){try{nl(3,e,e.return),rl(3,e)}catch(t){Eu(e,e.return,t)}try{nl(5,e,e.return)}catch(t){Eu(e,e.return,t)}}break;case 1:ml(t,e),gl(e),512&o&&null!==r&&Js(r,r.return);break;case 5:if(ml(t,e),gl(e),512&o&&null!==r&&Js(r,r.return),32&e.flags){var i=e.stateNode;try{ue(i,"")}catch(t){Eu(e,e.return,t)}}if(4&o&&null!=(i=e.stateNode)){var a=e.memoizedProps,s=null!==r?r.memoizedProps:a,l=e.type,u=e.updateQueue;if(e.updateQueue=null,null!==u)try{"input"===l&&"radio"===a.type&&null!=a.name&&H(i,a),ve(l,s);var c=ve(l,a);for(s=0;s<u.length;s+=2){var d=u[s],f=u[s+1];"style"===d?pe(i,f):"dangerouslySetInnerHTML"===d?le(i,f):"children"===d?ue(i,f):v(i,d,f,c)}switch(l){case"input":G(i,a);break;case"textarea":ne(i,a);break;case"select":var p=i._wrapperState.wasMultiple;i._wrapperState.wasMultiple=!!a.multiple;var h=a.value;null!=h?J(i,!!a.multiple,h,!1):p!==!!a.multiple&&(null!=a.defaultValue?J(i,!!a.multiple,a.defaultValue,!0):J(i,!!a.multiple,a.multiple?[]:"",!1))}i[fo]=a}catch(t){Eu(e,e.return,t)}}break;case 6:if(ml(t,e),gl(e),4&o){if(null===e.stateNode)throw Error(n(162));i=e.stateNode,a=e.memoizedProps;try{i.nodeValue=a}catch(t){Eu(e,e.return,t)}}break;case 3:if(ml(t,e),gl(e),4&o&&null!==r&&r.memoizedState.isDehydrated)try{zt(t.containerInfo)}catch(t){Eu(e,e.return,t)}break;case 4:default:ml(t,e),gl(e);break;case 13:ml(t,e),gl(e),8192&(i=e.child).flags&&(a=null!==i.memoizedState,i.stateNode.isHidden=a,!a||null!==i.alternate&&null!==i.alternate.memoizedState||($l=He())),4&o&&hl(e);break;case 22:if(d=null!==r&&null!==r.memoizedState,1&e.mode?(Qs=(c=Qs)||d,ml(t,e),Qs=c):ml(t,e),gl(e),8192&o){if(c=null!==e.memoizedState,(e.stateNode.isHidden=c)&&!d&&1&e.mode)for(Xs=e,d=e.child;null!==d;){for(f=Xs=d;null!==Xs;){switch(h=(p=Xs).child,p.tag){case 0:case 11:case 14:case 15:nl(4,p,p.return);break;case 1:Js(p,p.return);var m=p.stateNode;if("function"==typeof m.componentWillUnmount){o=p,r=p.return;try{t=o,m.props=t.memoizedProps,m.state=t.memoizedState,m.componentWillUnmount()}catch(e){Eu(o,r,e)}}break;case 5:Js(p,p.return);break;case 22:if(null!==p.memoizedState){wl(f);continue}}null!==h?(h.return=p,Xs=h):wl(f)}d=d.sibling}e:for(d=null,f=e;;){if(5===f.tag){if(null===d){d=f;try{i=f.stateNode,c?"function"==typeof(a=i.style).setProperty?a.setProperty("display","none","important"):a.display="none":(l=f.stateNode,s=null!=(u=f.memoizedProps.style)&&u.hasOwnProperty("display")?u.display:null,l.style.display=fe("display",s))}catch(t){Eu(e,e.return,t)}}}else if(6===f.tag){if(null===d)try{f.stateNode.nodeValue=c?"":f.memoizedProps}catch(t){Eu(e,e.return,t)}}else if((22!==f.tag&&23!==f.tag||null===f.memoizedState||f===e)&&null!==f.child){f.child.return=f,f=f.child;continue}if(f===e)break e;for(;null===f.sibling;){if(null===f.return||f.return===e)break e;d===f&&(d=null),f=f.return}d===f&&(d=null),f.sibling.return=f.return,f=f.sibling}}break;case 19:ml(t,e),gl(e),4&o&&hl(e);case 21:}}function gl(e){var t=e.flags;if(2&t){try{e:{for(var r=e.return;null!==r;){if(al(r)){var o=r;break e}r=r.return}throw Error(n(160))}switch(o.tag){case 5:var i=o.stateNode;32&o.flags&&(ue(i,""),o.flags&=-33),ul(e,sl(e),i);break;case 3:case 4:var a=o.stateNode.containerInfo;ll(e,sl(e),a);break;default:throw Error(n(161))}}catch(t){Eu(e,e.return,t)}e.flags&=-3}4096&t&&(e.flags&=-4097)}function yl(e,t,n){Xs=e,bl(e)}function bl(e,t,n){for(var r=!!(1&e.mode);null!==Xs;){var o=Xs,i=o.child;if(22===o.tag&&r){var a=null!==o.memoizedState||Gs;if(!a){var s=o.alternate,l=null!==s&&null!==s.memoizedState||Qs;s=Gs;var u=Qs;if(Gs=a,(Qs=l)&&!u)for(Xs=o;null!==Xs;)l=(a=Xs).child,22===a.tag&&null!==a.memoizedState?xl(o):null!==l?(l.return=a,Xs=l):xl(o);for(;null!==i;)Xs=i,bl(i),i=i.sibling;Xs=o,Gs=s,Qs=u}_l(e)}else 8772&o.subtreeFlags&&null!==i?(i.return=o,Xs=i):_l(e)}}function _l(e){for(;null!==Xs;){var t=Xs;if(8772&t.flags){var r=t.alternate;try{if(8772&t.flags)switch(t.tag){case 0:case 11:case 15:Qs||rl(5,t);break;case 1:var o=t.stateNode;if(4&t.flags&&!Qs)if(null===r)o.componentDidMount();else{var i=t.elementType===t.type?r.memoizedProps:vi(t.type,r.memoizedProps);o.componentDidUpdate(i,r.memoizedState,o.__reactInternalSnapshotBeforeUpdate)}var a=t.updateQueue;null!==a&&Ui(t,a,o);break;case 3:var s=t.updateQueue;if(null!==s){if(r=null,null!==t.child)switch(t.child.tag){case 5:case 1:r=t.child.stateNode}Ui(t,s,r)}break;case 5:var l=t.stateNode;if(null===r&&4&t.flags){r=l;var u=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":u.autoFocus&&r.focus();break;case"img":u.src&&(r.src=u.src)}}break;case 6:case 4:case 12:case 19:case 17:case 21:case 22:case 23:case 25:break;case 13:if(null===t.memoizedState){var c=t.alternate;if(null!==c){var d=c.memoizedState;if(null!==d){var f=d.dehydrated;null!==f&&zt(f)}}}break;default:throw Error(n(163))}Qs||512&t.flags&&ol(t)}catch(e){Eu(t,t.return,e)}}if(t===e){Xs=null;break}if(null!==(r=t.sibling)){r.return=t.return,Xs=r;break}Xs=t.return}}function wl(e){for(;null!==Xs;){var t=Xs;if(t===e){Xs=null;break}var n=t.sibling;if(null!==n){n.return=t.return,Xs=n;break}Xs=t.return}}function xl(e){for(;null!==Xs;){var t=Xs;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{rl(4,t)}catch(e){Eu(t,n,e)}break;case 1:var r=t.stateNode;if("function"==typeof r.componentDidMount){var o=t.return;try{r.componentDidMount()}catch(e){Eu(t,o,e)}}var i=t.return;try{ol(t)}catch(e){Eu(t,i,e)}break;case 5:var a=t.return;try{ol(t)}catch(e){Eu(t,a,e)}}}catch(e){Eu(t,t.return,e)}if(t===e){Xs=null;break}var s=t.sibling;if(null!==s){s.return=t.return,Xs=s;break}Xs=t.return}}var kl,El=Math.ceil,Sl=g.ReactCurrentDispatcher,Cl=g.ReactCurrentOwner,Nl=g.ReactCurrentBatchConfig,Il=0,Al=null,Tl=null,Ol=0,Dl=0,Pl=Eo(0),Rl=0,Ml=null,jl=0,Ll=0,Ul=0,Fl=null,zl=null,$l=0,Bl=1/0,Wl=null,Vl=!1,Kl=null,Zl=null,ql=!1,Hl=null,Gl=0,Ql=0,Yl=null,Xl=-1,Jl=0;function eu(){return 6&Il?He():-1!==Xl?Xl:Xl=He()}function tu(e){return 1&e.mode?2&Il&&0!==Ol?Ol&-Ol:null!==mi.transition?(0===Jl&&(Jl=ft()),Jl):(0!==(e=vt)||(e=void 0===(e=window.event)?16:Ht(e.type)),e):1}function nu(e,t,r,o){if(50<Ql)throw Ql=0,Yl=null,Error(n(185));ht(e,r,o),(!(2&Il)||e!==Al)&&(e===Al&&(!(2&Il)&&(Ll|=r),4===Rl&&su(e,Ol)),ru(e,o),1===r&&0===Il&&!(1&t.mode)&&(Bl=He()+500,Fo&&Bo()))}function ru(e,t){var n=e.callbackNode;!function(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,o=e.expirationTimes,i=e.pendingLanes;0<i;){var a=31-rt(i),s=1<<a,l=o[a];-1===l?(!(s&n)||s&r)&&(o[a]=ct(s,t)):l<=t&&(e.expiredLanes|=s),i&=~s}}(e,t);var r=ut(e,e===Al?Ol:0);if(0===r)null!==n&&Ke(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(null!=n&&Ke(n),1===t)0===e.tag?function(e){Fo=!0,$o(e)}(lu.bind(null,e)):$o(lu.bind(null,e)),oo((function(){!(6&Il)&&Bo()})),n=null;else{switch(gt(r)){case 1:n=Qe;break;case 4:n=Ye;break;case 16:default:n=Xe;break;case 536870912:n=et}n=Au(n,ou.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function ou(e,t){if(Xl=-1,Jl=0,6&Il)throw Error(n(327));var r=e.callbackNode;if(xu()&&e.callbackNode!==r)return null;var o=ut(e,e===Al?Ol:0);if(0===o)return null;if(30&o||o&e.expiredLanes||t)t=vu(e,o);else{t=o;var i=Il;Il|=2;var a=hu();for((Al!==e||Ol!==t)&&(Wl=null,Bl=He()+500,fu(e,t));;)try{yu();break}catch(t){pu(e,t)}wi(),Sl.current=a,Il=i,null!==Tl?t=0:(Al=null,Ol=0,t=Rl)}if(0!==t){if(2===t&&(0!==(i=dt(e))&&(o=i,t=iu(e,i))),1===t)throw r=Ml,fu(e,0),su(e,o),ru(e,He()),r;if(6===t)su(e,o);else{if(i=e.current.alternate,!(30&o||function(e){for(var t=e;;){if(16384&t.flags){var n=t.updateQueue;if(null!==n&&null!==(n=n.stores))for(var r=0;r<n.length;r++){var o=n[r],i=o.getSnapshot;o=o.value;try{if(!ir(i(),o))return!1}catch{return!1}}}if(n=t.child,16384&t.subtreeFlags&&null!==n)n.return=t,t=n;else{if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}(i)||(t=vu(e,o),2===t&&(a=dt(e),0!==a&&(o=a,t=iu(e,a))),1!==t)))throw r=Ml,fu(e,0),su(e,o),ru(e,He()),r;switch(e.finishedWork=i,e.finishedLanes=o,t){case 0:case 1:throw Error(n(345));case 2:case 5:wu(e,zl,Wl);break;case 3:if(su(e,o),(130023424&o)===o&&10<(t=$l+500-He())){if(0!==ut(e,0))break;if(((i=e.suspendedLanes)&o)!==o){eu(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=to(wu.bind(null,e,zl,Wl),t);break}wu(e,zl,Wl);break;case 4:if(su(e,o),(4194240&o)===o)break;for(t=e.eventTimes,i=-1;0<o;){var s=31-rt(o);a=1<<s,(s=t[s])>i&&(i=s),o&=~a}if(o=i,10<(o=(120>(o=He()-o)?120:480>o?480:1080>o?1080:1920>o?1920:3e3>o?3e3:4320>o?4320:1960*El(o/1960))-o)){e.timeoutHandle=to(wu.bind(null,e,zl,Wl),o);break}wu(e,zl,Wl);break;default:throw Error(n(329))}}}return ru(e,He()),e.callbackNode===r?ou.bind(null,e):null}function iu(e,t){var n=Fl;return e.current.memoizedState.isDehydrated&&(fu(e,t).flags|=256),2!==(e=vu(e,t))&&(t=zl,zl=n,null!==t&&au(t)),e}function au(e){null===zl?zl=e:zl.push.apply(zl,e)}function su(e,t){for(t&=~Ul,t&=~Ll,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-rt(t),r=1<<n;e[n]=-1,t&=~r}}function lu(e){if(6&Il)throw Error(n(327));xu();var t=ut(e,0);if(!(1&t))return ru(e,He()),null;var r=vu(e,t);if(0!==e.tag&&2===r){var o=dt(e);0!==o&&(t=o,r=iu(e,o))}if(1===r)throw r=Ml,fu(e,0),su(e,t),ru(e,He()),r;if(6===r)throw Error(n(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,wu(e,zl,Wl),ru(e,He()),null}function uu(e,t){var n=Il;Il|=1;try{return e(t)}finally{0===(Il=n)&&(Bl=He()+500,Fo&&Bo())}}function cu(e){null!==Hl&&0===Hl.tag&&!(6&Il)&&xu();var t=Il;Il|=1;var n=Nl.transition,r=vt;try{if(Nl.transition=null,vt=1,e)return e()}finally{vt=r,Nl.transition=n,!(6&(Il=t))&&Bo()}}function du(){Dl=Pl.current,So(Pl)}function fu(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,no(n)),null!==Tl)for(n=Tl.return;null!==n;){var r=n;switch(ti(r),r.tag){case 1:null!=(r=r.type.childContextTypes)&&Po();break;case 3:oa(),So(Ao),So(Io),ca();break;case 5:aa(r);break;case 4:oa();break;case 13:case 19:So(sa);break;case 10:xi(r.type._context);break;case 22:case 23:du()}n=n.return}if(Al=e,Tl=e=Pu(e.current,null),Ol=Dl=t,Rl=0,Ml=null,Ul=Ll=jl=0,zl=Fl=null,null!==Ci){for(t=0;t<Ci.length;t++)if(null!==(r=(n=Ci[t]).interleaved)){n.interleaved=null;var o=r.next,i=n.pending;if(null!==i){var a=i.next;i.next=o,r.next=a}n.pending=r}Ci=null}return e}function pu(e,t){for(;;){var r=Tl;try{if(wi(),da.current=is,ga){for(var o=ha.memoizedState;null!==o;){var i=o.queue;null!==i&&(i.pending=null),o=o.next}ga=!1}if(pa=0,va=ma=ha=null,ya=!1,ba=0,Cl.current=null,null===r||null===r.return){Rl=1,Ml=t,Tl=null;break}e:{var a=e,s=r.return,l=r,u=t;if(t=Ol,l.flags|=32768,null!==u&&"object"==typeof u&&"function"==typeof u.then){var c=u,d=l,f=d.tag;if(!(1&d.mode||0!==f&&11!==f&&15!==f)){var p=d.alternate;p?(d.updateQueue=p.updateQueue,d.memoizedState=p.memoizedState,d.lanes=p.lanes):(d.updateQueue=null,d.memoizedState=null)}var h=vs(s);if(null!==h){h.flags&=-257,gs(h,s,l,0,t),1&h.mode&&ms(a,c,t),u=c;var m=(t=h).updateQueue;if(null===m){var v=new Set;v.add(u),t.updateQueue=v}else m.add(u);break e}if(!(1&t)){ms(a,c,t),mu();break e}u=Error(n(426))}else if(oi&&1&l.mode){var g=vs(s);if(null!==g){!(65536&g.flags)&&(g.flags|=256),gs(g,s,l,0,t),hi(us(u,l));break e}}a=u=us(u,l),4!==Rl&&(Rl=2),null===Fl?Fl=[a]:Fl.push(a),a=s;do{switch(a.tag){case 3:a.flags|=65536,t&=-t,a.lanes|=t,ji(a,ps(0,u,t));break e;case 1:l=u;var y=a.type,b=a.stateNode;if(!(128&a.flags||"function"!=typeof y.getDerivedStateFromError&&(null===b||"function"!=typeof b.componentDidCatch||null!==Zl&&Zl.has(b)))){a.flags|=65536,t&=-t,a.lanes|=t,ji(a,hs(a,l,t));break e}}a=a.return}while(null!==a)}_u(r)}catch(e){t=e,Tl===r&&null!==r&&(Tl=r=r.return);continue}break}}function hu(){var e=Sl.current;return Sl.current=is,null===e?is:e}function mu(){(0===Rl||3===Rl||2===Rl)&&(Rl=4),null===Al||!(268435455&jl)&&!(268435455&Ll)||su(Al,Ol)}function vu(e,t){var r=Il;Il|=2;var o=hu();for((Al!==e||Ol!==t)&&(Wl=null,fu(e,t));;)try{gu();break}catch(t){pu(e,t)}if(wi(),Il=r,Sl.current=o,null!==Tl)throw Error(n(261));return Al=null,Ol=0,Rl}function gu(){for(;null!==Tl;)bu(Tl)}function yu(){for(;null!==Tl&&!Ze();)bu(Tl)}function bu(e){var t=kl(e.alternate,e,Dl);e.memoizedProps=e.pendingProps,null===t?_u(e):Tl=t,Cl.current=null}function _u(e){var t=e;do{var n=t.alternate;if(e=t.return,32768&t.flags){if(null!==(n=Hs(n,t)))return n.flags&=32767,void(Tl=n);if(null===e)return Rl=6,void(Tl=null);e.flags|=32768,e.subtreeFlags=0,e.deletions=null}else if(null!==(n=qs(n,t,Dl)))return void(Tl=n);if(null!==(t=t.sibling))return void(Tl=t);Tl=t=e}while(null!==t);0===Rl&&(Rl=5)}function wu(e,t,r){var o=vt,i=Nl.transition;try{Nl.transition=null,vt=1,function(e,t,r,o){do{xu()}while(null!==Hl);if(6&Il)throw Error(n(327));r=e.finishedWork;var i=e.finishedLanes;if(null===r)return null;if(e.finishedWork=null,e.finishedLanes=0,r===e.current)throw Error(n(177));e.callbackNode=null,e.callbackPriority=0;var a=r.lanes|r.childLanes;if(function(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var o=31-rt(n),i=1<<o;t[o]=0,r[o]=-1,e[o]=-1,n&=~i}}(e,a),e===Al&&(Tl=Al=null,Ol=0),!(2064&r.subtreeFlags)&&!(2064&r.flags)||ql||(ql=!0,Au(Xe,(function(){return xu(),null}))),a=!!(15990&r.flags),15990&r.subtreeFlags||a){a=Nl.transition,Nl.transition=null;var s=vt;vt=1;var l=Il;Il|=4,Cl.current=null,function(e,t){if(Xr=Bt,dr(e=cr())){if("selectionStart"in e)var r={start:e.selectionStart,end:e.selectionEnd};else e:{var o=(r=(r=e.ownerDocument)&&r.defaultView||window).getSelection&&r.getSelection();if(o&&0!==o.rangeCount){r=o.anchorNode;var i=o.anchorOffset,a=o.focusNode;o=o.focusOffset;try{r.nodeType,a.nodeType}catch{r=null;break e}var s=0,l=-1,u=-1,c=0,d=0,f=e,p=null;t:for(;;){for(var h;f!==r||0!==i&&3!==f.nodeType||(l=s+i),f!==a||0!==o&&3!==f.nodeType||(u=s+o),3===f.nodeType&&(s+=f.nodeValue.length),null!==(h=f.firstChild);)p=f,f=h;for(;;){if(f===e)break t;if(p===r&&++c===i&&(l=s),p===a&&++d===o&&(u=s),null!==(h=f.nextSibling))break;p=(f=p).parentNode}f=h}r=-1===l||-1===u?null:{start:l,end:u}}else r=null}r=r||{start:0,end:0}}else r=null;for(Jr={focusedElem:e,selectionRange:r},Bt=!1,Xs=t;null!==Xs;)if(e=(t=Xs).child,1028&t.subtreeFlags&&null!==e)e.return=t,Xs=e;else for(;null!==Xs;){t=Xs;try{var m=t.alternate;if(1024&t.flags)switch(t.tag){case 0:case 11:case 15:case 5:case 6:case 4:case 17:break;case 1:if(null!==m){var v=m.memoizedProps,g=m.memoizedState,y=t.stateNode,b=y.getSnapshotBeforeUpdate(t.elementType===t.type?v:vi(t.type,v),g);y.__reactInternalSnapshotBeforeUpdate=b}break;case 3:var _=t.stateNode.containerInfo;1===_.nodeType?_.textContent="":9===_.nodeType&&_.documentElement&&_.removeChild(_.documentElement);break;default:throw Error(n(163))}}catch(e){Eu(t,t.return,e)}if(null!==(e=t.sibling)){e.return=t.return,Xs=e;break}Xs=t.return}m=tl,tl=!1}(e,r),vl(r,e),fr(Jr),Bt=!!Xr,Jr=Xr=null,e.current=r,yl(r),qe(),Il=l,vt=s,Nl.transition=a}else e.current=r;if(ql&&(ql=!1,Hl=e,Gl=i),a=e.pendingLanes,0===a&&(Zl=null),function(e){if(nt&&"function"==typeof nt.onCommitFiberRoot)try{nt.onCommitFiberRoot(tt,e,void 0,!(128&~e.current.flags))}catch{}}(r.stateNode),ru(e,He()),null!==t)for(o=e.onRecoverableError,r=0;r<t.length;r++)i=t[r],o(i.value,{componentStack:i.stack,digest:i.digest});if(Vl)throw Vl=!1,e=Kl,Kl=null,e;1&Gl&&0!==e.tag&&xu(),a=e.pendingLanes,1&a?e===Yl?Ql++:(Ql=0,Yl=e):Ql=0,Bo()}(e,t,r,o)}finally{Nl.transition=i,vt=o}return null}function xu(){if(null!==Hl){var e=gt(Gl),t=Nl.transition,r=vt;try{if(Nl.transition=null,vt=16>e?16:e,null===Hl)var o=!1;else{if(e=Hl,Hl=null,Gl=0,6&Il)throw Error(n(331));var i=Il;for(Il|=4,Xs=e.current;null!==Xs;){var a=Xs,s=a.child;if(16&Xs.flags){var l=a.deletions;if(null!==l){for(var u=0;u<l.length;u++){var c=l[u];for(Xs=c;null!==Xs;){var d=Xs;switch(d.tag){case 0:case 11:case 15:nl(8,d,a)}var f=d.child;if(null!==f)f.return=d,Xs=f;else for(;null!==Xs;){var p=(d=Xs).sibling,h=d.return;if(il(d),d===c){Xs=null;break}if(null!==p){p.return=h,Xs=p;break}Xs=h}}}var m=a.alternate;if(null!==m){var v=m.child;if(null!==v){m.child=null;do{var g=v.sibling;v.sibling=null,v=g}while(null!==v)}}Xs=a}}if(2064&a.subtreeFlags&&null!==s)s.return=a,Xs=s;else e:for(;null!==Xs;){if(2048&(a=Xs).flags)switch(a.tag){case 0:case 11:case 15:nl(9,a,a.return)}var y=a.sibling;if(null!==y){y.return=a.return,Xs=y;break e}Xs=a.return}}var b=e.current;for(Xs=b;null!==Xs;){var _=(s=Xs).child;if(2064&s.subtreeFlags&&null!==_)_.return=s,Xs=_;else e:for(s=b;null!==Xs;){if(2048&(l=Xs).flags)try{switch(l.tag){case 0:case 11:case 15:rl(9,l)}}catch(e){Eu(l,l.return,e)}if(l===s){Xs=null;break e}var w=l.sibling;if(null!==w){w.return=l.return,Xs=w;break e}Xs=l.return}}if(Il=i,Bo(),nt&&"function"==typeof nt.onPostCommitFiberRoot)try{nt.onPostCommitFiberRoot(tt,e)}catch{}o=!0}return o}finally{vt=r,Nl.transition=t}}return!1}function ku(e,t,n){e=Ri(e,t=ps(0,t=us(n,t),1),1),t=eu(),null!==e&&(ht(e,1,t),ru(e,t))}function Eu(e,t,n){if(3===e.tag)ku(e,e,n);else for(;null!==t;){if(3===t.tag){ku(t,e,n);break}if(1===t.tag){var r=t.stateNode;if("function"==typeof t.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===Zl||!Zl.has(r))){t=Ri(t,e=hs(t,e=us(n,e),1),1),e=eu(),null!==t&&(ht(t,1,e),ru(t,e));break}}t=t.return}}function Su(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),t=eu(),e.pingedLanes|=e.suspendedLanes&n,Al===e&&(Ol&n)===n&&(4===Rl||3===Rl&&(130023424&Ol)===Ol&&500>He()-$l?fu(e,0):Ul|=n),ru(e,t)}function Cu(e,t){0===t&&(1&e.mode?(t=st,!(130023424&(st<<=1))&&(st=4194304)):t=1);var n=eu();null!==(e=Ai(e,t))&&(ht(e,t,n),ru(e,n))}function Nu(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),Cu(e,n)}function Iu(e,t){var r=0;switch(e.tag){case 13:var o=e.stateNode,i=e.memoizedState;null!==i&&(r=i.retryLane);break;case 19:o=e.stateNode;break;default:throw Error(n(314))}null!==o&&o.delete(t),Cu(e,r)}function Au(e,t){return Ve(e,t)}function Tu(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Ou(e,t,n,r){return new Tu(e,t,n,r)}function Du(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Pu(e,t){var n=e.alternate;return null===n?((n=Ou(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=14680064&e.flags,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Ru(e,t,r,o,i,a){var s=2;if(o=e,"function"==typeof e)Du(e)&&(s=1);else if("string"==typeof e)s=5;else e:switch(e){case _:return Mu(r.children,i,a,t);case w:s=8,i|=8;break;case x:return(e=Ou(12,r,t,2|i)).elementType=x,e.lanes=a,e;case C:return(e=Ou(13,r,t,i)).elementType=C,e.lanes=a,e;case N:return(e=Ou(19,r,t,i)).elementType=N,e.lanes=a,e;case T:return ju(r,i,a,t);default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case k:s=10;break e;case E:s=9;break e;case S:s=11;break e;case I:s=14;break e;case A:s=16,o=null;break e}throw Error(n(130,null==e?e:typeof e,""))}return(t=Ou(s,r,t,i)).elementType=e,t.type=o,t.lanes=a,t}function Mu(e,t,n,r){return(e=Ou(7,e,r,t)).lanes=n,e}function ju(e,t,n,r){return(e=Ou(22,e,r,t)).elementType=T,e.lanes=n,e.stateNode={isHidden:!1},e}function Lu(e,t,n){return(e=Ou(6,e,null,t)).lanes=n,e}function Uu(e,t,n){return(t=Ou(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Fu(e,t,n,r,o){this.tag=t,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=pt(0),this.expirationTimes=pt(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=pt(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function zu(e,t,n,r,o,i,a,s,l){return e=new Fu(e,t,n,s,l),1===t?(t=1,!0===i&&(t|=8)):t=0,i=Ou(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Oi(i),e}function $u(e){if(!e)return No;e:{if(Fe(e=e._reactInternals)!==e||1!==e.tag)throw Error(n(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Do(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(null!==t);throw Error(n(171))}if(1===e.tag){var r=e.type;if(Do(r))return Mo(e,r,t)}return t}function Bu(e,t,n,r,o,i,a,s,l){return(e=zu(n,r,!0,e,0,i,0,s,l)).context=$u(null),n=e.current,(i=Pi(r=eu(),o=tu(n))).callback=t??null,Ri(n,i,o),e.current.lanes=o,ht(e,o,r),ru(e,r),e}function Wu(e,t,n,r){var o=t.current,i=eu(),a=tu(o);return n=$u(n),null===t.context?t.context=n:t.pendingContext=n,(t=Pi(i,a)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),null!==(e=Ri(o,t,a))&&(nu(e,o,a,i),Mi(e,o,a)),a}function Vu(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function Ku(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function Zu(e,t){Ku(e,t),(e=e.alternate)&&Ku(e,t)}kl=function(e,t,r){if(null!==e)if(e.memoizedProps!==t.pendingProps||Ao.current)bs=!0;else{if(!(e.lanes&r||128&t.flags))return bs=!1,function(e,t,n){switch(t.tag){case 3:As(t),pi();break;case 5:ia(t);break;case 1:Do(t.type)&&jo(t);break;case 4:ra(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,o=t.memoizedProps.value;Co(gi,r._currentValue),r._currentValue=o;break;case 13:if(null!==(r=t.memoizedState))return null!==r.dehydrated?(Co(sa,1&sa.current),t.flags|=128,null):n&t.child.childLanes?Ls(e,t,n):(Co(sa,1&sa.current),null!==(e=Vs(e,t,n))?e.sibling:null);Co(sa,1&sa.current);break;case 19:if(r=!!(n&t.childLanes),128&e.flags){if(r)return Bs(e,t,n);t.flags|=128}if(null!==(o=t.memoizedState)&&(o.rendering=null,o.tail=null,o.lastEffect=null),Co(sa,sa.current),r)break;return null;case 22:case 23:return t.lanes=0,Es(e,t,n)}return Vs(e,t,n)}(e,t,r);bs=!!(131072&e.flags)}else bs=!1,oi&&1048576&t.flags&&Jo(t,Zo,t.index);switch(t.lanes=0,t.tag){case 2:var o=t.type;Ws(e,t),e=t.pendingProps;var i=Oo(t,Io.current);Ei(t,r),i=ka(null,t,o,e,i,r);var a=Ea();return t.flags|=1,"object"==typeof i&&null!==i&&"function"==typeof i.render&&void 0===i.$$typeof?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Do(o)?(a=!0,jo(t)):a=!1,t.memoizedState=null!==i.state&&void 0!==i.state?i.state:null,Oi(t),i.updater=$i,t.stateNode=i,i._reactInternals=t,Ki(t,o,e,r),t=Is(null,t,o,!0,a,r)):(t.tag=0,oi&&a&&ei(t),_s(null,t,i,r),t=t.child),t;case 16:o=t.elementType;e:{switch(Ws(e,t),e=t.pendingProps,o=(i=o._init)(o._payload),t.type=o,i=t.tag=function(e){if("function"==typeof e)return Du(e)?1:0;if(null!=e){if((e=e.$$typeof)===S)return 11;if(e===I)return 14}return 2}(o),e=vi(o,e),i){case 0:t=Cs(null,t,o,e,r);break e;case 1:t=Ns(null,t,o,e,r);break e;case 11:t=ws(null,t,o,e,r);break e;case 14:t=xs(null,t,o,vi(o.type,e),r);break e}throw Error(n(306,o,""))}return t;case 0:return o=t.type,i=t.pendingProps,Cs(e,t,o,i=t.elementType===o?i:vi(o,i),r);case 1:return o=t.type,i=t.pendingProps,Ns(e,t,o,i=t.elementType===o?i:vi(o,i),r);case 3:e:{if(As(t),null===e)throw Error(n(387));o=t.pendingProps,i=(a=t.memoizedState).element,Di(e,t),Li(t,o,null,r);var s=t.memoizedState;if(o=s.element,a.isDehydrated){if(a={element:o,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=a,t.memoizedState=a,256&t.flags){t=Ts(e,t,o,r,i=us(Error(n(423)),t));break e}if(o!==i){t=Ts(e,t,o,r,i=us(Error(n(424)),t));break e}for(ri=so(t.stateNode.containerInfo.firstChild),ni=t,oi=!0,ii=null,r=Yi(t,null,o,r),t.child=r;r;)r.flags=-3&r.flags|4096,r=r.sibling}else{if(pi(),o===i){t=Vs(e,t,r);break e}_s(e,t,o,r)}t=t.child}return t;case 5:return ia(t),null===e&&ui(t),o=t.type,i=t.pendingProps,a=null!==e?e.memoizedProps:null,s=i.children,eo(o,i)?s=null:null!==a&&eo(o,a)&&(t.flags|=32),Ss(e,t),_s(e,t,s,r),t.child;case 6:return null===e&&ui(t),null;case 13:return Ls(e,t,r);case 4:return ra(t,t.stateNode.containerInfo),o=t.pendingProps,null===e?t.child=Qi(t,null,o,r):_s(e,t,o,r),t.child;case 11:return o=t.type,i=t.pendingProps,ws(e,t,o,i=t.elementType===o?i:vi(o,i),r);case 7:return _s(e,t,t.pendingProps,r),t.child;case 8:case 12:return _s(e,t,t.pendingProps.children,r),t.child;case 10:e:{if(o=t.type._context,i=t.pendingProps,a=t.memoizedProps,s=i.value,Co(gi,o._currentValue),o._currentValue=s,null!==a)if(ir(a.value,s)){if(a.children===i.children&&!Ao.current){t=Vs(e,t,r);break e}}else for(null!==(a=t.child)&&(a.return=t);null!==a;){var l=a.dependencies;if(null!==l){s=a.child;for(var u=l.firstContext;null!==u;){if(u.context===o){if(1===a.tag){(u=Pi(-1,r&-r)).tag=2;var c=a.updateQueue;if(null!==c){var d=(c=c.shared).pending;null===d?u.next=u:(u.next=d.next,d.next=u),c.pending=u}}a.lanes|=r,null!==(u=a.alternate)&&(u.lanes|=r),ki(a.return,r,t),l.lanes|=r;break}u=u.next}}else if(10===a.tag)s=a.type===t.type?null:a.child;else if(18===a.tag){if(null===(s=a.return))throw Error(n(341));s.lanes|=r,null!==(l=s.alternate)&&(l.lanes|=r),ki(s,r,t),s=a.sibling}else s=a.child;if(null!==s)s.return=a;else for(s=a;null!==s;){if(s===t){s=null;break}if(null!==(a=s.sibling)){a.return=s.return,s=a;break}s=s.return}a=s}_s(e,t,i.children,r),t=t.child}return t;case 9:return i=t.type,o=t.pendingProps.children,Ei(t,r),o=o(i=Si(i)),t.flags|=1,_s(e,t,o,r),t.child;case 14:return i=vi(o=t.type,t.pendingProps),xs(e,t,o,i=vi(o.type,i),r);case 15:return ks(e,t,t.type,t.pendingProps,r);case 17:return o=t.type,i=t.pendingProps,i=t.elementType===o?i:vi(o,i),Ws(e,t),t.tag=1,Do(o)?(e=!0,jo(t)):e=!1,Ei(t,r),Wi(t,o,i),Ki(t,o,i,r),Is(null,t,o,!0,e,r);case 19:return Bs(e,t,r);case 22:return Es(e,t,r)}throw Error(n(156,t.tag))};var qu="function"==typeof reportError?reportError:function(e){console.error(e)};function Hu(e){this._internalRoot=e}function Gu(e){this._internalRoot=e}function Qu(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType)}function Yu(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function Xu(){}function Ju(e,t,n,r,o){var i=n._reactRootContainer;if(i){var a=i;if("function"==typeof o){var s=o;o=function(){var e=Vu(a);s.call(e)}}Wu(t,a,e,o)}else a=function(e,t,n,r,o){if(o){if("function"==typeof r){var i=r;r=function(){var e=Vu(a);i.call(e)}}var a=Bu(t,r,e,0,null,!1,0,"",Xu);return e._reactRootContainer=a,e[po]=a.current,zr(8===e.nodeType?e.parentNode:e),cu(),a}for(;o=e.lastChild;)e.removeChild(o);if("function"==typeof r){var s=r;r=function(){var e=Vu(l);s.call(e)}}var l=zu(e,0,!1,null,0,!1,0,"",Xu);return e._reactRootContainer=l,e[po]=l.current,zr(8===e.nodeType?e.parentNode:e),cu((function(){Wu(t,l,n,r)})),l}(n,t,e,o,r);return Vu(a)}Gu.prototype.render=Hu.prototype.render=function(e){var t=this._internalRoot;if(null===t)throw Error(n(409));Wu(e,t,null,null)},Gu.prototype.unmount=Hu.prototype.unmount=function(){var e=this._internalRoot;if(null!==e){this._internalRoot=null;var t=e.containerInfo;cu((function(){Wu(null,e,null,null)})),t[po]=null}},Gu.prototype.unstable_scheduleHydration=function(e){if(e){var t=wt();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Tt.length&&0!==t&&t<Tt[n].priority;n++);Tt.splice(n,0,e),0===n&&Mt(e)}},yt=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=lt(t.pendingLanes);0!==n&&(mt(t,1|n),ru(t,He()),!(6&Il)&&(Bl=He()+500,Bo()))}break;case 13:cu((function(){var t=Ai(e,1);if(null!==t){var n=eu();nu(t,e,1,n)}})),Zu(e,1)}},bt=function(e){if(13===e.tag){var t=Ai(e,134217728);if(null!==t)nu(t,e,134217728,eu());Zu(e,134217728)}},_t=function(e){if(13===e.tag){var t=tu(e),n=Ai(e,t);if(null!==n)nu(n,e,t,eu());Zu(e,t)}},wt=function(){return vt},xt=function(e,t){var n=vt;try{return vt=e,t()}finally{vt=n}},be=function(e,t,r){switch(t){case"input":if(G(e,r),t=r.name,"radio"===r.type&&null!=t){for(r=e;r.parentNode;)r=r.parentNode;for(r=r.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<r.length;t++){var o=r[t];if(o!==e&&o.form===e.form){var i=_o(o);if(!i)throw Error(n(90));V(o),G(o,i)}}}break;case"textarea":ne(e,r);break;case"select":null!=(t=r.value)&&J(e,!!r.multiple,t,!1)}},Se=uu,Ce=cu;var ec={usingClientEntryPoint:!1,Events:[yo,bo,_o,ke,Ee,uu]},tc={findFiberByHostInstance:go,bundleType:0,version:"18.2.0",rendererPackageName:"react-dom"},nc={bundleType:tc.bundleType,version:tc.version,rendererPackageName:tc.rendererPackageName,rendererConfig:tc.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:g.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=Be(e))?null:e.stateNode},findFiberByHostInstance:tc.findFiberByHostInstance,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.2.0-next-9e3b772b8-20220608"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var rc=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!rc.isDisabled&&rc.supportsFiber)try{tt=rc.inject(nc),nt=rc}catch{}}return ko.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=ec,ko.createPortal=function(e,t){var r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!Qu(t))throw Error(n(200));return function(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:b,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}(e,t,null,r)},ko.createRoot=function(e,t){if(!Qu(e))throw Error(n(299));var r=!1,o="",i=qu;return null!=t&&(!0===t.unstable_strictMode&&(r=!0),void 0!==t.identifierPrefix&&(o=t.identifierPrefix),void 0!==t.onRecoverableError&&(i=t.onRecoverableError)),t=zu(e,1,!1,null,0,r,0,o,i),e[po]=t.current,zr(8===e.nodeType?e.parentNode:e),new Hu(t)},ko.findDOMNode=function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternals;if(void 0===t)throw"function"==typeof e.render?Error(n(188)):(e=Object.keys(e).join(","),Error(n(268,e)));return e=null===(e=Be(t))?null:e.stateNode},ko.flushSync=function(e){return cu(e)},ko.hydrate=function(e,t,r){if(!Yu(t))throw Error(n(200));return Ju(null,e,t,!0,r)},ko.hydrateRoot=function(e,t,r){if(!Qu(e))throw Error(n(405));var o=null!=r&&r.hydratedSources||null,i=!1,a="",s=qu;if(null!=r&&(!0===r.unstable_strictMode&&(i=!0),void 0!==r.identifierPrefix&&(a=r.identifierPrefix),void 0!==r.onRecoverableError&&(s=r.onRecoverableError)),t=Bu(t,null,e,1,r??null,i,0,a,s),e[po]=t.current,zr(e),o)for(e=0;e<o.length;e++)i=(i=(r=o[e])._getVersion)(r._source),null==t.mutableSourceEagerHydrationData?t.mutableSourceEagerHydrationData=[r,i]:t.mutableSourceEagerHydrationData.push(r,i);return new Gu(t)},ko.render=function(e,t,r){if(!Yu(t))throw Error(n(200));return Ju(null,e,t,!1,r)},ko.unmountComponentAtNode=function(e){if(!Yu(e))throw Error(n(40));return!!e._reactRootContainer&&(cu((function(){Ju(null,null,e,!1,(function(){e._reactRootContainer=null,e[po]=null}))})),!0)},ko.unstable_batchedUpdates=uu,ko.unstable_renderSubtreeIntoContainer=function(e,t,r,o){if(!Yu(r))throw Error(n(200));if(null==e||void 0===e._reactInternals)throw Error(n(38));return Ju(e,t,r,!1,o)},ko.version="18.2.0-next-9e3b772b8-20220608",ko}function h2(){if(ow)return t_.exports;return ow=1,function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||"function"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}(),t_.exports=p2(),t_.exports}var $f=h2();const Px=VC($f),m2=(e,t)=>Cn(e,{...t,containerId:"custom"});function rt(){return rt=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},rt.apply(this,arguments)}function g2(e,t){"function"==typeof e?e(t):null!=e&&(e.current=t)}function Ox(...e){return t=>e.forEach((e=>g2(e,t)))}function Kn(...e){return Zn(Ox(...e),e)}function Tl(e,t=[]){let n=[];const r=()=>{const t=n.map((e=>Mv(e)));return function(n){const r=(null==n?void 0:n[e])||t;return Wh((()=>({[`__scope${e}`]:{...n,[e]:r}})),[n,r])}};return r.scopeName=e,[function(t,r){const o=Mv(r),i=n.length;function a(t){const{scope:n,children:r,...a}=t,s=(null==n?void 0:n[e][i])||o,l=Wh((()=>a),Object.values(a));return me(s.Provider,{value:l},r)}return n=[...n,r],a.displayName=t+"Provider",[a,function(n,a){const s=(null==a?void 0:a[e][i])||o,l=J_(s);if(l)return l;if(void 0!==r)return r;throw new Error(`\`${n}\` must be used within \`${t}\``)}]},v2(r,...t)]}function v2(...e){const t=e[0];if(1===e.length)return t;const n=()=>{const n=e.map((e=>({useScope:e(),scopeName:e.scopeName})));return function(e){const r=n.reduce(((t,{useScope:n,scopeName:r})=>({...t,...n(e)[`__scope${r}`]})),{});return Wh((()=>({[`__scope${t.scopeName}`]:r})),[r])}};return n.scopeName=t.scopeName,n}function Bt(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(null==e||e(r),!1===n||!r.defaultPrevented)return null==t?void 0:t(r)}}function bl(e){const t=At(e);return Et((()=>{t.current=e})),Wh((()=>(...e)=>{var n;return null===(n=t.current)||void 0===n?void 0:n.call(t,...e)}),[])}function Xh({prop:e,defaultProp:t,onChange:n=()=>{}}){const[r,o]=y2({defaultProp:t,onChange:n}),i=void 0!==e,a=i?e:r,s=bl(n);return[a,Zn((t=>{if(i){const n="function"==typeof t?t(e):t;n!==e&&s(n)}else o(t)}),[i,e,o,s])]}function y2({defaultProp:e,onChange:t}){const n=Ot(e),[r]=n,o=At(r),i=bl(t);return Et((()=>{o.current!==r&&(i(r),o.current=r)}),[r,o,i]),n}function l0(e){const t=At({value:e,previous:e});return Wh((()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous)),[e])}const os=null!=globalThis&&globalThis.document?Ax:()=>{};function u0(e){const[t,n]=Ot(void 0);return os((()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const t=new ResizeObserver((t=>{if(!Array.isArray(t)||!t.length)return;const r=t[0];let o,i;if("borderBoxSize"in r){const e=r.borderBoxSize,t=Array.isArray(e)?e[0]:e;o=t.inlineSize,i=t.blockSize}else o=e.offsetWidth,i=e.offsetHeight;n({width:o,height:i})}));return t.observe(e,{box:"border-box"}),()=>t.unobserve(e)}n(void 0)}),[e]),t}function _2(e,t){return wC(((e,n)=>t[e][n]??e),e)}const sp=e=>{const{present:t,children:n}=e,r=w2(t),o="function"==typeof n?n({present:r.isPresent}):Kd.only(n),i=Kn(r.ref,o.ref);return"function"==typeof n||r.isPresent?e1(o,{ref:i}):null};function w2(e){const[t,n]=Ot(),r=At({}),o=At(e),i=At("none"),a=e?"mounted":"unmounted",[s,l]=_2(a,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return Et((()=>{const e=vv(r.current);i.current="mounted"===s?e:"none"}),[s]),os((()=>{const t=r.current,n=o.current;if(n!==e){const r=i.current,a=vv(t);e?l("MOUNT"):"none"===a||"none"===(null==t?void 0:t.display)?l("UNMOUNT"):l(n&&r!==a?"ANIMATION_OUT":"UNMOUNT"),o.current=e}}),[e,l]),os((()=>{if(t){const e=e=>{const n=vv(r.current).includes(e.animationName);e.target===t&&n&&$f.flushSync((()=>l("ANIMATION_END")))},n=e=>{e.target===t&&(i.current=vv(r.current))};return t.addEventListener("animationstart",n),t.addEventListener("animationcancel",e),t.addEventListener("animationend",e),()=>{t.removeEventListener("animationstart",n),t.removeEventListener("animationcancel",e),t.removeEventListener("animationend",e)}}l("ANIMATION_END")}),[t,l]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:Zn((e=>{e&&(r.current=getComputedStyle(e)),n(e)}),[])}}function vv(e){return(null==e?void 0:e.animationName)||"none"}sp.displayName="Presence";const Vh=gt(((e,t)=>{const{children:n,...r}=e,o=Kd.toArray(n),i=o.find(b2);if(i){const e=i.props.children,n=o.map((t=>t===i?Kd.count(e)>1?Kd.only(null):Fv(e)?e.props.children:null:t));return me(T_,rt({},r,{ref:t}),Fv(e)?e1(e,void 0,n):null)}return me(T_,rt({},r,{ref:t}),n)}));Vh.displayName="Slot";const T_=gt(((e,t)=>{const{children:n,...r}=e;return Fv(n)?e1(n,{...S2(r,n.props),ref:t?Ox(t,n.ref):n.ref}):Kd.count(n)>1?Kd.only(null):null}));T_.displayName="SlotClone";const x2=({children:e})=>me(o0,null,e);function b2(e){return Fv(e)&&e.type===x2}function S2(e,t){const n={...t};for(const r in t){const o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...e)=>{i(...e),o(...e)}:o&&(n[r]=o):"style"===r?n[r]={...o,...i}:"className"===r&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}const E2=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],Lt=E2.reduce(((e,t)=>{const n=gt(((e,n)=>{const{asChild:r,...o}=e,i=r?Vh:t;return Et((()=>{window[Symbol.for("radix-ui")]=!0}),[]),me(i,rt({},o,{ref:n}))}));return n.displayName=`Primitive.${t}`,{...e,[t]:n}}),{});function C2(e,t){e&&$f.flushSync((()=>e.dispatchEvent(t)))}const Lx="Checkbox",[k2,h4]=Tl(Lx),[T2,A2]=k2(Lx),N2=gt(((e,t)=>{const{__scopeCheckbox:n,name:r,checked:o,defaultChecked:i,required:a,disabled:s,value:l="on",onCheckedChange:u,...c}=e,[d,f]=Ot(null),p=Kn(t,(e=>f(e))),h=At(!1),m=!d||!!d.closest("form"),[v=!1,g]=Xh({prop:o,defaultProp:i,onChange:u}),y=At(v);return Et((()=>{const e=null==d?void 0:d.form;if(e){const t=()=>g(y.current);return e.addEventListener("reset",t),()=>e.removeEventListener("reset",t)}}),[d,g]),me(T2,{scope:n,state:v,disabled:s},me(Lt.button,rt({type:"button",role:"checkbox","aria-checked":Yd(v)?"mixed":v,"aria-required":a,"data-state":Dx(v),"data-disabled":s?"":void 0,disabled:s,value:l},c,{ref:p,onKeyDown:Bt(e.onKeyDown,(e=>{"Enter"===e.key&&e.preventDefault()})),onClick:Bt(e.onClick,(e=>{g((e=>!!Yd(e)||!e)),m&&(h.current=e.isPropagationStopped(),h.current||e.stopPropagation())}))})),m&&me(I2,{control:d,bubbles:!h.current,name:r,value:l,checked:v,required:a,disabled:s,style:{transform:"translateX(-100%)"}}))})),R2="CheckboxIndicator",$2=gt(((e,t)=>{const{__scopeCheckbox:n,forceMount:r,...o}=e,i=A2(R2,n);return me(sp,{present:r||Yd(i.state)||!0===i.state},me(Lt.span,rt({"data-state":Dx(i.state),"data-disabled":i.disabled?"":void 0},o,{ref:t,style:{pointerEvents:"none",...e.style}})))})),I2=e=>{const{control:t,checked:n,bubbles:r=!0,...o}=e,i=At(null),a=l0(n),s=u0(t);return Et((()=>{const e=i.current,t=window.HTMLInputElement.prototype,o=Object.getOwnPropertyDescriptor(t,"checked").set;if(a!==n&&o){const t=new Event("click",{bubbles:r});e.indeterminate=Yd(n),o.call(e,!Yd(n)&&n),e.dispatchEvent(t)}}),[a,n,r]),me("input",rt({type:"checkbox","aria-hidden":!0,defaultChecked:!Yd(n)&&n},o,{tabIndex:-1,ref:i,style:{...e.style,...s,position:"absolute",pointerEvents:"none",opacity:0,margin:0}}))};function Yd(e){return"indeterminate"===e}function Dx(e){return Yd(e)?"indeterminate":e?"checked":"unchecked"}const Mx=N2,P2=$2,O2=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Fx=(...e)=>e.filter(((e,t,n)=>!!e&&""!==e.trim()&&n.indexOf(e)===t)).join(" ").trim()
37
+ /**
38
+ * @license lucide-react v0.471.2 - ISC
39
+ *
40
+ * This source code is licensed under the ISC license.
41
+ * See the LICENSE file in the root directory of this source tree.
42
+ */;
43
+ /**
44
+ * @license lucide-react v0.471.2 - ISC
45
+ *
46
+ * This source code is licensed under the ISC license.
47
+ * See the LICENSE file in the root directory of this source tree.
48
+ */var L2={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"};
49
+ /**
50
+ * @license lucide-react v0.471.2 - ISC
51
+ *
52
+ * This source code is licensed under the ISC license.
53
+ * See the LICENSE file in the root directory of this source tree.
54
+ */const D2=gt((({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:o="",children:i,iconNode:a,...s},l)=>me("svg",{ref:l,...L2,width:t,height:t,stroke:e,strokeWidth:r?24*Number(n)/Number(t):n,className:Fx("lucide",o),...s},[...a.map((([e,t])=>me(e,t))),...Array.isArray(i)?i:[i]]))),si=(e,t)=>{const n=gt((({className:n,...r},o)=>me(D2,{ref:o,iconNode:t,className:Fx(`lucide-${O2(e)}`,n),...r})));return n.displayName=`${e}`,n},M2=[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M16 8v5a3 3 0 0 0 6 0v-1a10 10 0 1 0-4 8",key:"7n84p3"}]],F2=si("AtSign",M2),j2=[["path",{d:"M10.268 21a2 2 0 0 0 3.464 0",key:"vwvbt9"}],["path",{d:"M17 17H4a1 1 0 0 1-.74-1.673C4.59 13.956 6 12.499 6 8a6 6 0 0 1 .258-1.742",key:"178tsu"}],["path",{d:"m2 2 20 20",key:"1ooewy"}],["path",{d:"M8.668 3.01A6 6 0 0 1 18 8c0 2.687.77 4.653 1.707 6.05",key:"1hqiys"}]],U2=si("BellOff",j2),B2=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],jx=si("Check",B2),z2=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],Ux=si("ChevronDown",z2),W2=[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]],V2=si("ChevronUp",W2),H2=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]],Bx=si("CircleX",H2),G2=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],Z2=si("Circle",G2),K2=[["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"}]],zx=si("EyeOff",K2),q2=[["path",{d:"M19 14c1.49-1.46 3-3.21 3-5.5A5.5 5.5 0 0 0 16.5 3c-1.76 0-3 .5-4.5 2-1.5-1.5-2.74-2-4.5-2A5.5 5.5 0 0 0 2 8.5c0 2.3 1.5 4.05 3 5.5l7 7Z",key:"c3ymky"}]],Y2=si("Heart",q2),Q2=[["path",{d:"M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z",key:"1lielz"}]],X2=si("MessageSquare",Q2),J2=[["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.76V7a1 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"}]],ek=si("Pin",J2),tk=[["path",{d:"M16 3a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2 1 1 0 0 1 1 1v1a2 2 0 0 1-2 2 1 1 0 0 0-1 1v2a1 1 0 0 0 1 1 6 6 0 0 0 6-6V5a2 2 0 0 0-2-2z",key:"rib7q0"}],["path",{d:"M5 3a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2 1 1 0 0 1 1 1v1a2 2 0 0 1-2 2 1 1 0 0 0-1 1v2a1 1 0 0 0 1 1 6 6 0 0 0 6-6V5a2 2 0 0 0-2-2z",key:"1ymkrd"}]],nk=si("Quote",tk),rk=[["path",{d:"m2 9 3-3 3 3",key:"1ltn5i"}],["path",{d:"M13 18H7a2 2 0 0 1-2-2V6",key:"1r6tfw"}],["path",{d:"m22 15-3 3-3-3",key:"4rnwn2"}],["path",{d:"M11 6h6a2 2 0 0 1 2 2v10",key:"2f72bc"}]],ik=si("Repeat2",rk),ok=[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]],sk=si("Search",ok),ak=[["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:"17",x2:"22",y1:"8",y2:"13",key:"3nzzx3"}],["line",{x1:"22",x2:"17",y1:"8",y2:"13",key:"1swrse"}]],Wx=si("UserX",ak),lk=[["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"}]],sw=si("User",lk),uk=[["path",{d:"M11 4.702a.705.705 0 0 0-1.203-.498L6.413 7.587A1.4 1.4 0 0 1 5.416 8H3a1 1 0 0 0-1 1v6a1 1 0 0 0 1 1h2.416a1.4 1.4 0 0 1 .997.413l3.383 3.384A.705.705 0 0 0 11 19.298z",key:"uqj9uw"}],["line",{x1:"22",x2:"16",y1:"9",y2:"15",key:"1ewh16"}],["line",{x1:"16",x2:"22",y1:"9",y2:"15",key:"5ykzw1"}]],ck=si("VolumeX",uk),fk=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],dk=si("X",fk);
55
+ /**
56
+ * @license lucide-react v0.471.2 - ISC
57
+ *
58
+ * This source code is licensed under the ISC license.
59
+ * See the LICENSE file in the root directory of this source tree.
60
+ */function Vx(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=Vx(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function pk(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=Vx(e))&&(r&&(r+=" "),r+=t);return r}const i1="-";function hk(e){const t=gk(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:function(e){const n=e.split(i1);return""===n[0]&&1!==n.length&&n.shift(),Hx(n,t)||mk(e)},getConflictingClassGroupIds:function(e,t){const o=n[e]||[];return t&&r[e]?[...o,...r[e]]:o}}}function Hx(e,t){var n;if(0===e.length)return t.classGroupId;const r=e[0],o=t.nextPart.get(r),i=o?Hx(e.slice(1),o):void 0;if(i)return i;if(0===t.validators.length)return;const a=e.join(i1);return null==(n=t.validators.find((({validator:e})=>e(a))))?void 0:n.classGroupId}const aw=/^\[(.+)\]$/;function mk(e){if(aw.test(e)){const t=aw.exec(e)[1],n=null==t?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}}function gk(e){const{theme:t,prefix:n}=e,r={nextPart:new Map,validators:[]};return yk(Object.entries(e.classGroups),n).forEach((([e,n])=>{A_(n,r,e,t)})),r}function A_(e,t,n,r){e.forEach((e=>{if("string"!=typeof e){if("function"==typeof e)return vk(e)?void A_(e(r),t,n,r):void t.validators.push({validator:e,classGroupId:n});Object.entries(e).forEach((([e,o])=>{A_(o,lw(t,e),n,r)}))}else{(""===e?t:lw(t,e)).classGroupId=n}}))}function lw(e,t){let n=e;return t.split(i1).forEach((e=>{n.nextPart.has(e)||n.nextPart.set(e,{nextPart:new Map,validators:[]}),n=n.nextPart.get(e)})),n}function vk(e){return e.isThemeGetter}function yk(e,t){return t?e.map((([e,n])=>[e,n.map((e=>"string"==typeof e?t+e:"object"==typeof e?Object.fromEntries(Object.entries(e).map((([e,n])=>[t+e,n]))):e))])):e}function _k(e){if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;function o(o,i){n.set(o,i),t++,t>e&&(t=0,r=n,n=new Map)}return{get(e){let t=n.get(e);return void 0!==t?t:void 0!==(t=r.get(e))?(o(e,t),t):void 0},set(e,t){n.has(e)?n.set(e,t):o(e,t)}}}const Gx="!";function wk(e){const t=e.separator,n=1===t.length,r=t[0],o=t.length;return function(e){const i=[];let a,s=0,l=0;for(let u=0;u<e.length;u++){let c=e[u];if(0===s){if(c===r&&(n||e.slice(u,u+o)===t)){i.push(e.slice(l,u)),l=u+o;continue}if("/"===c){a=u;continue}}"["===c?s++:"]"===c&&s--}const u=0===i.length?e:e.substring(l),c=u.startsWith(Gx);return{modifiers:i,hasImportantModifier:c,baseClassName:c?u.substring(1):u,maybePostfixModifierPosition:a&&a>l?a-l:void 0}}}function xk(e){if(e.length<=1)return e;const t=[];let n=[];return e.forEach((e=>{"["===e[0]?(t.push(...n.sort(),e),n=[]):n.push(e)})),t.push(...n.sort()),t}function bk(e){return{cache:_k(e.cacheSize),splitModifiers:wk(e),...hk(e)}}const Sk=/\s+/;function Ek(e,t){const{splitModifiers:n,getClassGroupId:r,getConflictingClassGroupIds:o}=t,i=new Set;return e.trim().split(Sk).map((e=>{const{modifiers:t,hasImportantModifier:o,baseClassName:i,maybePostfixModifierPosition:a}=n(e);let s=r(a?i.substring(0,a):i),l=!!a;if(!s){if(!a)return{isTailwindClass:!1,originalClassName:e};if(s=r(i),!s)return{isTailwindClass:!1,originalClassName:e};l=!1}const u=xk(t).join(":");return{isTailwindClass:!0,modifierId:o?u+Gx:u,classGroupId:s,originalClassName:e,hasPostfixModifier:l}})).reverse().filter((e=>{if(!e.isTailwindClass)return!0;const{modifierId:t,classGroupId:n,hasPostfixModifier:r}=e,a=t+n;return!i.has(a)&&(i.add(a),o(n,r).forEach((e=>i.add(t+e))),!0)})).reverse().map((e=>e.originalClassName)).join(" ")}function Ck(){let e,t,n=0,r="";for(;n<arguments.length;)(e=arguments[n++])&&(t=Zx(e))&&(r&&(r+=" "),r+=t);return r}function Zx(e){if("string"==typeof e)return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=Zx(e[r]))&&(n&&(n+=" "),n+=t);return n}function kk(e,...t){let n,r,o,i=function(s){const l=t.reduce(((e,t)=>t(e)),e());return n=bk(l),r=n.cache.get,o=n.cache.set,i=a,a(s)};function a(e){const t=r(e);if(t)return t;const i=Ek(e,n);return o(e,i),i}return function(){return i(Ck.apply(null,arguments))}}function Dn(e){const t=t=>t[e]||[];return t.isThemeGetter=!0,t}const Kx=/^\[(?:([a-z-]+):)?(.+)\]$/i,Tk=/^\d+\/\d+$/,Ak=new Set(["px","full","screen"]),Nk=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Rk=/\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$/,$k=/^-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Ik=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/;function Au(e){return Gd(e)||Ak.has(e)||Tk.test(e)}function ff(e){return Jh(e,"length",Uk)}function Gd(e){return!!e&&!Number.isNaN(Number(e))}function yv(e){return Jh(e,"number",Gd)}function Xm(e){return!!e&&Number.isInteger(Number(e))}function Pk(e){return e.endsWith("%")&&Gd(e.slice(0,-1))}function Rt(e){return Kx.test(e)}function df(e){return Nk.test(e)}const Ok=new Set(["length","size","percentage"]);function Lk(e){return Jh(e,Ok,qx)}function Dk(e){return Jh(e,"position",qx)}const Mk=new Set(["image","url"]);function Fk(e){return Jh(e,Mk,zk)}function jk(e){return Jh(e,"",Bk)}function Jm(){return!0}function Jh(e,t,n){const r=Kx.exec(e);return!!r&&(r[1]?"string"==typeof t?r[1]===t:t.has(r[1]):n(r[2]))}function Uk(e){return Rk.test(e)}function qx(){return!1}function Bk(e){return $k.test(e)}function zk(e){return Ik.test(e)}function Wk(){const e=Dn("colors"),t=Dn("spacing"),n=Dn("blur"),r=Dn("brightness"),o=Dn("borderColor"),i=Dn("borderRadius"),a=Dn("borderSpacing"),s=Dn("borderWidth"),l=Dn("contrast"),u=Dn("grayscale"),c=Dn("hueRotate"),d=Dn("invert"),f=Dn("gap"),p=Dn("gradientColorStops"),h=Dn("gradientColorStopPositions"),m=Dn("inset"),v=Dn("margin"),g=Dn("opacity"),y=Dn("padding"),b=Dn("saturate"),_=Dn("scale"),w=Dn("sepia"),x=Dn("skew"),k=Dn("space"),E=Dn("translate"),S=()=>["auto",Rt,t],C=()=>[Rt,t],N=()=>["",Au,ff],I=()=>["auto",Gd,Rt],A=()=>["","0",Rt],T=()=>[Gd,yv],O=()=>[Gd,Rt];return{cacheSize:500,separator:":",theme:{colors:[Jm],spacing:[Au,ff],blur:["none","",df,Rt],brightness:T(),borderColor:[e],borderRadius:["none","","full",df,Rt],borderSpacing:C(),borderWidth:N(),contrast:T(),grayscale:A(),hueRotate:O(),invert:A(),gap:C(),gradientColorStops:[e],gradientColorStopPositions:[Pk,ff],inset:S(),margin:S(),opacity:T(),padding:C(),saturate:T(),scale:T(),sepia:A(),skew:O(),space:C(),translate:C()},classGroups:{aspect:[{aspect:["auto","square","video",Rt]}],container:["container"],columns:[{columns:[df]}],"break-after":[{"break-after":["auto","avoid","all","avoid-page","page","left","right","column"]}],"break-before":[{"break-before":["auto","avoid","all","avoid-page","page","left","right","column"]}],"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:["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top",Rt]}],overflow:[{overflow:["auto","hidden","clip","visible","scroll"]}],"overflow-x":[{"overflow-x":["auto","hidden","clip","visible","scroll"]}],"overflow-y":[{"overflow-y":["auto","hidden","clip","visible","scroll"]}],overscroll:[{overscroll:["auto","contain","none"]}],"overscroll-x":[{"overscroll-x":["auto","contain","none"]}],"overscroll-y":[{"overscroll-y":["auto","contain","none"]}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[m]}],"inset-x":[{"inset-x":[m]}],"inset-y":[{"inset-y":[m]}],start:[{start:[m]}],end:[{end:[m]}],top:[{top:[m]}],right:[{right:[m]}],bottom:[{bottom:[m]}],left:[{left:[m]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",Xm,Rt]}],basis:[{basis:S()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",Rt]}],grow:[{grow:A()}],shrink:[{shrink:A()}],order:[{order:["first","last","none",Xm,Rt]}],"grid-cols":[{"grid-cols":[Jm]}],"col-start-end":[{col:["auto",{span:["full",Xm,Rt]},Rt]}],"col-start":[{"col-start":I()}],"col-end":[{"col-end":I()}],"grid-rows":[{"grid-rows":[Jm]}],"row-start-end":[{row:["auto",{span:[Xm,Rt]},Rt]}],"row-start":[{"row-start":I()}],"row-end":[{"row-end":I()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",Rt]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",Rt]}],gap:[{gap:[f]}],"gap-x":[{"gap-x":[f]}],"gap-y":[{"gap-y":[f]}],"justify-content":[{justify:["normal","start","end","center","between","around","evenly","stretch"]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal","start","end","center","between","around","evenly","stretch","baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":["start","end","center","between","around","evenly","stretch","baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[y]}],px:[{px:[y]}],py:[{py:[y]}],ps:[{ps:[y]}],pe:[{pe:[y]}],pt:[{pt:[y]}],pr:[{pr:[y]}],pb:[{pb:[y]}],pl:[{pl:[y]}],m:[{m:[v]}],mx:[{mx:[v]}],my:[{my:[v]}],ms:[{ms:[v]}],me:[{me:[v]}],mt:[{mt:[v]}],mr:[{mr:[v]}],mb:[{mb:[v]}],ml:[{ml:[v]}],"space-x":[{"space-x":[k]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[k]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",Rt,t]}],"min-w":[{"min-w":[Rt,t,"min","max","fit"]}],"max-w":[{"max-w":[Rt,t,"none","full","min","max","fit","prose",{screen:[df]},df]}],h:[{h:[Rt,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[Rt,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[Rt,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[Rt,t,"auto","min","max","fit"]}],"font-size":[{text:["base",df,ff]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",yv]}],"font-family":[{font:[Jm]}],"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-fractons"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",Rt]}],"line-clamp":[{"line-clamp":["none",Gd,yv]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",Au,Rt]}],"list-image":[{"list-image":["none",Rt]}],"list-style-type":[{list:["none","disc","decimal",Rt]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[g]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[g]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:["solid","dashed","dotted","double","none","wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",Au,ff]}],"underline-offset":[{"underline-offset":["auto",Au,Rt]}],"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:C()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",Rt]}],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",Rt]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[g]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top",Dk]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",Lk]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},Fk]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[h]}],"gradient-via-pos":[{via:[h]}],"gradient-to-pos":[{to:[h]}],"gradient-from":[{from:[p]}],"gradient-via":[{via:[p]}],"gradient-to":[{to:[p]}],rounded:[{rounded:[i]}],"rounded-s":[{"rounded-s":[i]}],"rounded-e":[{"rounded-e":[i]}],"rounded-t":[{"rounded-t":[i]}],"rounded-r":[{"rounded-r":[i]}],"rounded-b":[{"rounded-b":[i]}],"rounded-l":[{"rounded-l":[i]}],"rounded-ss":[{"rounded-ss":[i]}],"rounded-se":[{"rounded-se":[i]}],"rounded-ee":[{"rounded-ee":[i]}],"rounded-es":[{"rounded-es":[i]}],"rounded-tl":[{"rounded-tl":[i]}],"rounded-tr":[{"rounded-tr":[i]}],"rounded-br":[{"rounded-br":[i]}],"rounded-bl":[{"rounded-bl":[i]}],"border-w":[{border:[s]}],"border-w-x":[{"border-x":[s]}],"border-w-y":[{"border-y":[s]}],"border-w-s":[{"border-s":[s]}],"border-w-e":[{"border-e":[s]}],"border-w-t":[{"border-t":[s]}],"border-w-r":[{"border-r":[s]}],"border-w-b":[{"border-b":[s]}],"border-w-l":[{"border-l":[s]}],"border-opacity":[{"border-opacity":[g]}],"border-style":[{border:["solid","dashed","dotted","double","none","hidden"]}],"divide-x":[{"divide-x":[s]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[s]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[g]}],"divide-style":[{divide:["solid","dashed","dotted","double","none"]}],"border-color":[{border:[o]}],"border-color-x":[{"border-x":[o]}],"border-color-y":[{"border-y":[o]}],"border-color-t":[{"border-t":[o]}],"border-color-r":[{"border-r":[o]}],"border-color-b":[{"border-b":[o]}],"border-color-l":[{"border-l":[o]}],"divide-color":[{divide:[o]}],"outline-style":[{outline:["","solid","dashed","dotted","double","none"]}],"outline-offset":[{"outline-offset":[Au,Rt]}],"outline-w":[{outline:[Au,ff]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:N()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[g]}],"ring-offset-w":[{"ring-offset":[Au,ff]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",df,jk]}],"shadow-color":[{shadow:[Jm]}],opacity:[{opacity:[g]}],"mix-blend":[{"mix-blend":["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity","plus-lighter"]}],"bg-blend":[{"bg-blend":["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity","plus-lighter"]}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[r]}],contrast:[{contrast:[l]}],"drop-shadow":[{"drop-shadow":["","none",df,Rt]}],grayscale:[{grayscale:[u]}],"hue-rotate":[{"hue-rotate":[c]}],invert:[{invert:[d]}],saturate:[{saturate:[b]}],sepia:[{sepia:[w]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[l]}],"backdrop-grayscale":[{"backdrop-grayscale":[u]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[c]}],"backdrop-invert":[{"backdrop-invert":[d]}],"backdrop-opacity":[{"backdrop-opacity":[g]}],"backdrop-saturate":[{"backdrop-saturate":[b]}],"backdrop-sepia":[{"backdrop-sepia":[w]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[a]}],"border-spacing-x":[{"border-spacing-x":[a]}],"border-spacing-y":[{"border-spacing-y":[a]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",Rt]}],duration:[{duration:O()}],ease:[{ease:["linear","in","out","in-out",Rt]}],delay:[{delay:O()}],animate:[{animate:["none","spin","ping","pulse","bounce",Rt]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[_]}],"scale-x":[{"scale-x":[_]}],"scale-y":[{"scale-y":[_]}],rotate:[{rotate:[Xm,Rt]}],"translate-x":[{"translate-x":[E]}],"translate-y":[{"translate-y":[E]}],"skew-x":[{"skew-x":[x]}],"skew-y":[{"skew-y":[x]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",Rt]}],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",Rt]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":C()}],"scroll-mx":[{"scroll-mx":C()}],"scroll-my":[{"scroll-my":C()}],"scroll-ms":[{"scroll-ms":C()}],"scroll-me":[{"scroll-me":C()}],"scroll-mt":[{"scroll-mt":C()}],"scroll-mr":[{"scroll-mr":C()}],"scroll-mb":[{"scroll-mb":C()}],"scroll-ml":[{"scroll-ml":C()}],"scroll-p":[{"scroll-p":C()}],"scroll-px":[{"scroll-px":C()}],"scroll-py":[{"scroll-py":C()}],"scroll-ps":[{"scroll-ps":C()}],"scroll-pe":[{"scroll-pe":C()}],"scroll-pt":[{"scroll-pt":C()}],"scroll-pr":[{"scroll-pr":C()}],"scroll-pb":[{"scroll-pb":C()}],"scroll-pl":[{"scroll-pl":C()}],"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",Rt]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[Au,ff,yv]}],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-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"]}}}const Vk=kk(Wk);function ut(...e){return Vk(pk(e))}function Yx(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=Yx(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function Hk(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=Yx(e))&&(r&&(r+=" "),r+=t);return r}const uw=e=>"boolean"==typeof e?"".concat(e):0===e?"0":e,cw=Hk,em=(e,t)=>n=>{var r;if(null==(null==t?void 0:t.variants))return cw(e,null==n?void 0:n.class,null==n?void 0:n.className);const{variants:o,defaultVariants:i}=t,a=Object.keys(o).map((e=>{const t=null==n?void 0:n[e],r=null==i?void 0:i[e];if(null===t)return null;const a=uw(t)||uw(r);return o[e][a]})),s=n&&Object.entries(n).reduce(((e,t)=>{let[n,r]=t;return void 0===r||(e[n]=r),e}),{}),l=null==t||null===(r=t.compoundVariants)||void 0===r?void 0:r.reduce(((e,t)=>{let{class:n,className:r,...o}=t;return Object.entries(o).every((e=>{let[t,n]=e;return Array.isArray(n)?n.includes({...i,...s}[t]):{...i,...s}[t]===n}))?[...e,n,r]:e}),[]);return cw(e,a,l,null==n?void 0:n.class,null==n?void 0:n.className)},fw=em("",{variants:{size:{default:"h-4 w-4",20:"size-[20px]",24:"size-[24px]",32:"size-[32px]"},variant:{default:"peer shrink-0 rounded-sm border border-slate-700 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 data-[state=unchecked]:border-slate-700 data-[state=checked]:bg-slate-700 data-[state=checked]:text-primary-foreground",dark:"shrink-0 bg-slate-900_50 data-[state=checked]:bg-slate-700 rounded-[4px] border-[2px] data-[state=checked]:text-primary-foreground border-slate-100 [&_svg]:size-[24px] [&_svg]:border-none"}},defaultVariants:{size:"default",variant:"default"}}),Gk=M.forwardRef((({className:e,size:t,variant:n,...r},o)=>D.jsx(Mx,{ref:o,className:ut(e,fw({size:t,variant:n})),...r,children:D.jsx(P2,{className:ut("flex items-center justify-center text-current"),children:D.jsx(jx,{className:ut(fw({size:t}))})})})));function Qx(e){const t=e+"CollectionProvider",[n,r]=Tl(t),[o,i]=n(t,{collectionRef:{current:null},itemMap:new Map}),a=e+"CollectionSlot",s=e+"CollectionItemSlot",l="data-radix-collection-item";return[{Provider:e=>{const{scope:t,children:n}=e,r=Pt.useRef(null),i=Pt.useRef(new Map).current;return Pt.createElement(o,{scope:t,itemMap:i,collectionRef:r},n)},Slot:Pt.forwardRef(((e,t)=>{const{scope:n,children:r}=e,o=Kn(t,i(a,n).collectionRef);return Pt.createElement(Vh,{ref:o},r)})),ItemSlot:Pt.forwardRef(((e,t)=>{const{scope:n,children:r,...o}=e,a=Pt.useRef(null),u=Kn(t,a),c=i(s,n);return Pt.useEffect((()=>(c.itemMap.set(a,{ref:a,...o}),()=>{c.itemMap.delete(a)}))),Pt.createElement(Vh,{[l]:"",ref:u},r)}))},function(t){const n=i(e+"CollectionConsumer",t);return Pt.useCallback((()=>{const e=n.collectionRef.current;if(!e)return[];const t=Array.from(e.querySelectorAll(`[${l}]`));return Array.from(n.itemMap.values()).sort(((e,n)=>t.indexOf(e.ref.current)-t.indexOf(n.ref.current)))}),[n.collectionRef,n.itemMap])},r]}Gk.displayName=Mx.displayName;const Zk=M.useId||(()=>{});let Kk=0;function jh(e){const[t,n]=M.useState(Zk());return os((()=>{n((e=>e??String(Kk++)))}),[e]),t?`radix-${t}`:""}const qk=Mv(void 0);function o1(e){const t=J_(qk);return e||t||"ltr"}const i_="rovingFocusGroup.onEntryFocus",Yk={bubbles:!1,cancelable:!0},s1="RovingFocusGroup",[N_,Xx,Qk]=Qx(s1),[Xk,c0]=Tl(s1,[Qk]),[Jk,eT]=Xk(s1),tT=gt(((e,t)=>me(N_.Provider,{scope:e.__scopeRovingFocusGroup},me(N_.Slot,{scope:e.__scopeRovingFocusGroup},me(nT,rt({},e,{ref:t})))))),nT=gt(((e,t)=>{const{__scopeRovingFocusGroup:n,orientation:r,loop:o=!1,dir:i,currentTabStopId:a,defaultCurrentTabStopId:s,onCurrentTabStopIdChange:l,onEntryFocus:u,...c}=e,d=At(null),f=Kn(t,d),p=o1(i),[h=null,m]=Xh({prop:a,defaultProp:s,onChange:l}),[v,g]=Ot(!1),y=bl(u),b=Xx(n),_=At(!1),[w,x]=Ot(0);return Et((()=>{const e=d.current;if(e)return e.addEventListener(i_,y),()=>e.removeEventListener(i_,y)}),[y]),me(Jk,{scope:n,orientation:r,dir:p,loop:o,currentTabStopId:h,onItemFocus:Zn((e=>m(e)),[m]),onItemShiftTab:Zn((()=>g(!0)),[]),onFocusableItemAdd:Zn((()=>x((e=>e+1))),[]),onFocusableItemRemove:Zn((()=>x((e=>e-1))),[])},me(Lt.div,rt({tabIndex:v||0===w?-1:0,"data-orientation":r},c,{ref:f,style:{outline:"none",...e.style},onMouseDown:Bt(e.onMouseDown,(()=>{_.current=!0})),onFocus:Bt(e.onFocus,(e=>{const t=!_.current;if(e.target===e.currentTarget&&t&&!v){const t=new CustomEvent(i_,Yk);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){const e=b().filter((e=>e.focusable));Jx([e.find((e=>e.active)),e.find((e=>e.id===h)),...e].filter(Boolean).map((e=>e.ref.current)))}}_.current=!1})),onBlur:Bt(e.onBlur,(()=>g(!1)))})))})),rT="RovingFocusGroupItem",iT=gt(((e,t)=>{const{__scopeRovingFocusGroup:n,focusable:r=!0,active:o=!1,tabStopId:i,...a}=e,s=jh(),l=i||s,u=eT(rT,n),c=u.currentTabStopId===l,d=Xx(n),{onFocusableItemAdd:f,onFocusableItemRemove:p}=u;return Et((()=>{if(r)return f(),()=>p()}),[r,f,p]),me(N_.ItemSlot,{scope:n,id:l,focusable:r,active:o},me(Lt.span,rt({tabIndex:c?0:-1,"data-orientation":u.orientation},a,{ref:t,onMouseDown:Bt(e.onMouseDown,(e=>{r?u.onItemFocus(l):e.preventDefault()})),onFocus:Bt(e.onFocus,(()=>u.onItemFocus(l))),onKeyDown:Bt(e.onKeyDown,(e=>{if("Tab"===e.key&&e.shiftKey)return void u.onItemShiftTab();if(e.target!==e.currentTarget)return;const t=aT(e,u.orientation,u.dir);if(void 0!==t){e.preventDefault();let n=d().filter((e=>e.focusable)).map((e=>e.ref.current));if("last"===t)n.reverse();else if("prev"===t||"next"===t){"prev"===t&&n.reverse();const r=n.indexOf(e.currentTarget);n=u.loop?lT(n,r+1):n.slice(r+1)}setTimeout((()=>Jx(n)))}}))})))})),oT={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function sT(e,t){return"rtl"!==t?e:"ArrowLeft"===e?"ArrowRight":"ArrowRight"===e?"ArrowLeft":e}function aT(e,t,n){const r=sT(e.key,n);if(!("vertical"===t&&["ArrowLeft","ArrowRight"].includes(r)||"horizontal"===t&&["ArrowUp","ArrowDown"].includes(r)))return oT[r]}function Jx(e){const t=document.activeElement;for(const n of e)if(n===t||(n.focus(),document.activeElement!==t))return}function lT(e,t){return e.map(((n,r)=>e[(t+r)%e.length]))}const eb=tT,tb=iT,nb="Radio",[uT,rb]=Tl(nb),[cT,fT]=uT(nb),dT=gt(((e,t)=>{const{__scopeRadio:n,name:r,checked:o=!1,required:i,disabled:a,value:s="on",onCheck:l,...u}=e,[c,d]=Ot(null),f=Kn(t,(e=>d(e))),p=At(!1),h=!c||!!c.closest("form");return me(cT,{scope:n,checked:o,disabled:a},me(Lt.button,rt({type:"button",role:"radio","aria-checked":o,"data-state":ib(o),"data-disabled":a?"":void 0,disabled:a,value:s},u,{ref:f,onClick:Bt(e.onClick,(e=>{o||null==l||l(),h&&(p.current=e.isPropagationStopped(),p.current||e.stopPropagation())}))})),h&&me(mT,{control:c,bubbles:!p.current,name:r,value:s,checked:o,required:i,disabled:a,style:{transform:"translateX(-100%)"}}))})),pT="RadioIndicator",hT=gt(((e,t)=>{const{__scopeRadio:n,forceMount:r,...o}=e,i=fT(pT,n);return me(sp,{present:r||i.checked},me(Lt.span,rt({"data-state":ib(i.checked),"data-disabled":i.disabled?"":void 0},o,{ref:t})))})),mT=e=>{const{control:t,checked:n,bubbles:r=!0,...o}=e,i=At(null),a=l0(n),s=u0(t);return Et((()=>{const e=i.current,t=window.HTMLInputElement.prototype,o=Object.getOwnPropertyDescriptor(t,"checked").set;if(a!==n&&o){const t=new Event("click",{bubbles:r});o.call(e,n),e.dispatchEvent(t)}}),[a,n,r]),me("input",rt({type:"radio","aria-hidden":!0,defaultChecked:n},o,{tabIndex:-1,ref:i,style:{...e.style,...s,position:"absolute",pointerEvents:"none",opacity:0,margin:0}}))};function ib(e){return e?"checked":"unchecked"}const gT=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],ob="RadioGroup",[vT,m4]=Tl(ob,[c0,rb]),sb=c0(),ab=rb(),[yT,_T]=vT(ob),wT=gt(((e,t)=>{const{__scopeRadioGroup:n,name:r,defaultValue:o,value:i,required:a=!1,disabled:s=!1,orientation:l,dir:u,loop:c=!0,onValueChange:d,...f}=e,p=sb(n),h=o1(u),[m,v]=Xh({prop:i,defaultProp:o,onChange:d});return me(yT,{scope:n,name:r,required:a,disabled:s,value:m,onValueChange:v},me(eb,rt({asChild:!0},p,{orientation:l,dir:h,loop:c}),me(Lt.div,rt({role:"radiogroup","aria-required":a,"aria-orientation":l,"data-disabled":s?"":void 0,dir:h},f,{ref:t}))))})),xT="RadioGroupItem",bT=gt(((e,t)=>{const{__scopeRadioGroup:n,disabled:r,...o}=e,i=_T(xT,n),a=i.disabled||r,s=sb(n),l=ab(n),u=At(null),c=Kn(t,u),d=i.value===o.value,f=At(!1);return Et((()=>{const e=e=>{gT.includes(e.key)&&(f.current=!0)},t=()=>f.current=!1;return document.addEventListener("keydown",e),document.addEventListener("keyup",t),()=>{document.removeEventListener("keydown",e),document.removeEventListener("keyup",t)}}),[]),me(tb,rt({asChild:!0},s,{focusable:!a,active:d}),me(dT,rt({disabled:a,required:i.required,checked:d},l,o,{name:i.name,ref:c,onCheck:()=>i.onValueChange(o.value),onKeyDown:Bt((e=>{"Enter"===e.key&&e.preventDefault()})),onFocus:Bt(o.onFocus,(()=>{var e;f.current&&(null===(e=u.current)||void 0===e||e.click())}))})))})),ST=gt(((e,t)=>{const{__scopeRadioGroup:n,...r}=e,o=ab(n);return me(hT,rt({},o,r,{ref:t}))})),lb=wT,ub=bT,ET=ST,cb=M.forwardRef((({className:e,...t},n)=>D.jsx(lb,{className:ut("grid gap-2",e),...t,ref:n})));cb.displayName=lb.displayName;const fb=M.forwardRef((({className:e,...t},n)=>D.jsx(ub,{ref:n,className:ut("aspect-square h-4 w-4 rounded-full border-[1.67px] border-primary text-primary ring-offset-background focus:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",e),...t,children:D.jsx(ET,{className:"flex items-center justify-center",children:D.jsx(Z2,{className:"h-2.5 w-2.5 fill-current text-current"})})})));fb.displayName=ub.displayName;const CT=gt(((e,t)=>me(Lt.label,rt({},e,{ref:t,onMouseDown:t=>{var n;null===(n=e.onMouseDown)||void 0===n||n.call(e,t),!t.defaultPrevented&&t.detail>1&&t.preventDefault()}})))),db=CT,kT=em("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),pb=M.forwardRef((({className:e,...t},n)=>D.jsx(db,{ref:n,className:ut(kT(),e),...t})));pb.displayName=db.displayName;const TT=a0.Root,AT=a0.Trigger,NT=em("z-50 overflow-hidden 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-1 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",{variants:{size:{default:"rounded-md border text-sm px-3 py-1.5",small:"rounded-md border px-[11px] py-[3px] text-[12px] leading-[16px]"},theme:{default:"bg-popover text-popover-foreground",dark:"bg-slate-900_90 text-slate-50"},defaultVariants:{size:"small",theme:"dark"}}}),hb=M.forwardRef((({className:e,sideOffset:t=1,size:n,theme:r,...o},i)=>D.jsx(a0.Content,{ref:i,sideOffset:t,className:ut(NT({size:n,theme:r,className:e})),...o})));hb.displayName=a0.Content.displayName;const RT=({children:e,tooltipText:t,triggerClassname:n,...r})=>D.jsxs(TT,{children:[D.jsx(AT,{className:n,children:e}),t&&D.jsx(hb,{...r,children:t})]});function dw(e,[t,n]){return Math.min(n,Math.max(t,e))}function $T(e,t=(null==globalThis?void 0:globalThis.document)){const n=bl(e);Et((()=>{const e=e=>{"Escape"===e.key&&n(e)};return t.addEventListener("keydown",e),()=>t.removeEventListener("keydown",e)}),[n,t])}const R_="dismissableLayer.update",IT="dismissableLayer.pointerDownOutside",PT="dismissableLayer.focusOutside";let pw;const OT=Mv({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),mb=gt(((e,t)=>{var n;const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:o,onPointerDownOutside:i,onFocusOutside:a,onInteractOutside:s,onDismiss:l,...u}=e,c=J_(OT),[d,f]=Ot(null),p=null!==(n=null==d?void 0:d.ownerDocument)&&void 0!==n?n:null==globalThis?void 0:globalThis.document,[,h]=Ot({}),m=Kn(t,(e=>f(e))),v=Array.from(c.layers),[g]=[...c.layersWithOutsidePointerEventsDisabled].slice(-1),y=v.indexOf(g),b=d?v.indexOf(d):-1,_=c.layersWithOutsidePointerEventsDisabled.size>0,w=b>=y,x=LT((e=>{const t=e.target,n=[...c.branches].some((e=>e.contains(t)));!w||n||(null==i||i(e),null==s||s(e),e.defaultPrevented||null==l||l())}),p),k=DT((e=>{const t=e.target;[...c.branches].some((e=>e.contains(t)))||(null==a||a(e),null==s||s(e),e.defaultPrevented||null==l||l())}),p);return $T((e=>{b===c.layers.size-1&&(null==o||o(e),!e.defaultPrevented&&l&&(e.preventDefault(),l()))}),p),Et((()=>{if(d)return r&&(0===c.layersWithOutsidePointerEventsDisabled.size&&(pw=p.body.style.pointerEvents,p.body.style.pointerEvents="none"),c.layersWithOutsidePointerEventsDisabled.add(d)),c.layers.add(d),hw(),()=>{r&&1===c.layersWithOutsidePointerEventsDisabled.size&&(p.body.style.pointerEvents=pw)}}),[d,p,r,c]),Et((()=>()=>{d&&(c.layers.delete(d),c.layersWithOutsidePointerEventsDisabled.delete(d),hw())}),[d,c]),Et((()=>{const e=()=>h({});return document.addEventListener(R_,e),()=>document.removeEventListener(R_,e)}),[]),me(Lt.div,rt({},u,{ref:m,style:{pointerEvents:_?w?"auto":"none":void 0,...e.style},onFocusCapture:Bt(e.onFocusCapture,k.onFocusCapture),onBlurCapture:Bt(e.onBlurCapture,k.onBlurCapture),onPointerDownCapture:Bt(e.onPointerDownCapture,x.onPointerDownCapture)}))}));function LT(e,t=(null==globalThis?void 0:globalThis.document)){const n=bl(e),r=At(!1),o=At((()=>{}));return Et((()=>{const e=e=>{if(e.target&&!r.current){let r=function(){gb(IT,n,i,{discrete:!0})};const i={originalEvent:e};"touch"===e.pointerType?(t.removeEventListener("click",o.current),o.current=r,t.addEventListener("click",o.current,{once:!0})):r()}else t.removeEventListener("click",o.current);r.current=!1},i=window.setTimeout((()=>{t.addEventListener("pointerdown",e)}),0);return()=>{window.clearTimeout(i),t.removeEventListener("pointerdown",e),t.removeEventListener("click",o.current)}}),[t,n]),{onPointerDownCapture:()=>r.current=!0}}function DT(e,t=(null==globalThis?void 0:globalThis.document)){const n=bl(e),r=At(!1);return Et((()=>{const e=e=>{e.target&&!r.current&&gb(PT,n,{originalEvent:e},{discrete:!1})};return t.addEventListener("focusin",e),()=>t.removeEventListener("focusin",e)}),[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function hw(){const e=new CustomEvent(R_);document.dispatchEvent(e)}function gb(e,t,n,{discrete:r}){const o=n.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?C2(o,i):o.dispatchEvent(i)}let o_=0;function vb(){Et((()=>{var e,t;const n=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",null!==(e=n[0])&&void 0!==e?e:mw()),document.body.insertAdjacentElement("beforeend",null!==(t=n[1])&&void 0!==t?t:mw()),o_++,()=>{1===o_&&document.querySelectorAll("[data-radix-focus-guard]").forEach((e=>e.remove())),o_--}}),[])}function mw(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.cssText="outline: none; opacity: 0; position: fixed; pointer-events: none",e}const s_="focusScope.autoFocusOnMount",a_="focusScope.autoFocusOnUnmount",gw={bubbles:!1,cancelable:!0},yb=gt(((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:i,...a}=e,[s,l]=Ot(null),u=bl(o),c=bl(i),d=At(null),f=Kn(t,(e=>l(e))),p=At({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;Et((()=>{if(r){let e=function(e){if(p.paused||!s)return;const t=e.target;s.contains(t)?d.current=t:hf(d.current,{select:!0})},t=function(e){if(p.paused||!s)return;const t=e.relatedTarget;null!==t&&(s.contains(t)||hf(d.current,{select:!0}))},n=function(e){if(document.activeElement===document.body)for(const t of e)t.removedNodes.length>0&&hf(s)};document.addEventListener("focusin",e),document.addEventListener("focusout",t);const r=new MutationObserver(n);return s&&r.observe(s,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t),r.disconnect()}}}),[r,s,p.paused]),Et((()=>{if(s){yw.add(p);const e=document.activeElement;if(!s.contains(e)){const t=new CustomEvent(s_,gw);s.addEventListener(s_,u),s.dispatchEvent(t),t.defaultPrevented||(MT(zT(_b(s)),{select:!0}),document.activeElement===e&&hf(s))}return()=>{s.removeEventListener(s_,u),setTimeout((()=>{const t=new CustomEvent(a_,gw);s.addEventListener(a_,c),s.dispatchEvent(t),t.defaultPrevented||hf(e??document.body,{select:!0}),s.removeEventListener(a_,c),yw.remove(p)}),0)}}}),[s,u,c,p]);const h=Zn((e=>{if(!n&&!r||p.paused)return;const t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,o=document.activeElement;if(t&&o){const t=e.currentTarget,[r,i]=FT(t);r&&i?e.shiftKey||o!==i?e.shiftKey&&o===r&&(e.preventDefault(),n&&hf(i,{select:!0})):(e.preventDefault(),n&&hf(r,{select:!0})):o===t&&e.preventDefault()}}),[n,r,p.paused]);return me(Lt.div,rt({tabIndex:-1},a,{ref:f,onKeyDown:h}))}));function MT(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(hf(r,{select:t}),document.activeElement!==n)return}function FT(e){const t=_b(e);return[vw(t,e),vw(t.reverse(),e)]}function _b(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{const t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function vw(e,t){for(const n of e)if(!jT(n,{upTo:t}))return n}function jT(e,{upTo:t}){if("hidden"===getComputedStyle(e).visibility)return!0;for(;e;){if(void 0!==t&&e===t)return!1;if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1}function UT(e){return e instanceof HTMLInputElement&&"select"in e}function hf(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&UT(e)&&t&&e.select()}}const yw=BT();function BT(){let e=[];return{add(t){const n=e[0];t!==n&&(null==n||n.pause()),e=_w(e,t),e.unshift(t)},remove(t){var n;e=_w(e,t),null===(n=e[0])||void 0===n||n.resume()}}}function _w(e,t){const n=[...e],r=n.indexOf(t);return-1!==r&&n.splice(r,1),n}function zT(e){return e.filter((e=>"A"!==e.tagName))}const WT=["top","right","bottom","left"],xf=Math.min,ts=Math.max,jv=Math.round,_v=Math.floor,bf=e=>({x:e,y:e}),VT={left:"right",right:"left",bottom:"top",top:"bottom"},HT={start:"end",end:"start"};function $_(e,t,n){return ts(e,xf(t,n))}function Iu(e,t){return"function"==typeof e?e(t):e}function Pu(e){return e.split("-")[0]}function tm(e){return e.split("-")[1]}function a1(e){return"x"===e?"y":"x"}function l1(e){return"y"===e?"height":"width"}function Sf(e){return["top","bottom"].includes(Pu(e))?"y":"x"}function u1(e){return a1(Sf(e))}function GT(e,t,n){void 0===n&&(n=!1);const r=tm(e),o=u1(e),i=l1(o);let a="x"===o?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[i]>t.floating[i]&&(a=Uv(a)),[a,Uv(a)]}function ZT(e){const t=Uv(e);return[I_(e),t,I_(t)]}function I_(e){return e.replace(/start|end/g,(e=>HT[e]))}function KT(e,t,n){const r=["left","right"],o=["right","left"],i=["top","bottom"],a=["bottom","top"];switch(e){case"top":case"bottom":return n?t?o:r:t?r:o;case"left":case"right":return t?i:a;default:return[]}}function qT(e,t,n,r){const o=tm(e);let i=KT(Pu(e),"start"===n,r);return o&&(i=i.map((e=>e+"-"+o)),t&&(i=i.concat(i.map(I_)))),i}function Uv(e){return e.replace(/left|right|bottom|top/g,(e=>VT[e]))}function YT(e){return{top:0,right:0,bottom:0,left:0,...e}}function wb(e){return"number"!=typeof e?YT(e):{top:e,right:e,bottom:e,left:e}}function Bv(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function ww(e,t,n){let{reference:r,floating:o}=e;const i=Sf(t),a=u1(t),s=l1(a),l=Pu(t),u="y"===i,c=r.x+r.width/2-o.width/2,d=r.y+r.height/2-o.height/2,f=r[s]/2-o[s]/2;let p;switch(l){case"top":p={x:c,y:r.y-o.height};break;case"bottom":p={x:c,y:r.y+r.height};break;case"right":p={x:r.x+r.width,y:d};break;case"left":p={x:r.x-o.width,y:d};break;default:p={x:r.x,y:r.y}}switch(tm(t)){case"start":p[a]-=f*(n&&u?-1:1);break;case"end":p[a]+=f*(n&&u?-1:1)}return p}const QT=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:a}=n,s=i.filter(Boolean),l=await(null==a.isRTL?void 0:a.isRTL(t));let u=await a.getElementRects({reference:e,floating:t,strategy:o}),{x:c,y:d}=ww(u,r,l),f=r,p={},h=0;for(let n=0;n<s.length;n++){const{name:i,fn:m}=s[n],{x:v,y:g,data:y,reset:b}=await m({x:c,y:d,initialPlacement:r,placement:f,strategy:o,middlewareData:p,rects:u,platform:a,elements:{reference:e,floating:t}});c=v??c,d=g??d,p={...p,[i]:{...p[i],...y}},b&&h<=50&&(h++,"object"==typeof b&&(b.placement&&(f=b.placement),b.rects&&(u=!0===b.rects?await a.getElementRects({reference:e,floating:t,strategy:o}):b.rects),({x:c,y:d}=ww(u,f,l))),n=-1)}return{x:c,y:d,placement:f,strategy:o,middlewareData:p}};async function vg(e,t){var n;void 0===t&&(t={});const{x:r,y:o,platform:i,rects:a,elements:s,strategy:l}=e,{boundary:u="clippingAncestors",rootBoundary:c="viewport",elementContext:d="floating",altBoundary:f=!1,padding:p=0}=Iu(t,e),h=wb(p),m=s[f?"floating"===d?"reference":"floating":d],v=Bv(await i.getClippingRect({element:null==(n=await(null==i.isElement?void 0:i.isElement(m)))||n?m:m.contextElement||await(null==i.getDocumentElement?void 0:i.getDocumentElement(s.floating)),boundary:u,rootBoundary:c,strategy:l})),g="floating"===d?{x:r,y:o,width:a.floating.width,height:a.floating.height}:a.reference,y=await(null==i.getOffsetParent?void 0:i.getOffsetParent(s.floating)),b=await(null==i.isElement?void 0:i.isElement(y))&&await(null==i.getScale?void 0:i.getScale(y))||{x:1,y:1},_=Bv(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:g,offsetParent:y,strategy:l}):g);return{top:(v.top-_.top+h.top)/b.y,bottom:(_.bottom-v.bottom+h.bottom)/b.y,left:(v.left-_.left+h.left)/b.x,right:(_.right-v.right+h.right)/b.x}}const XT=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:i,platform:a,elements:s,middlewareData:l}=t,{element:u,padding:c=0}=Iu(e,t)||{};if(null==u)return{};const d=wb(c),f={x:n,y:r},p=u1(o),h=l1(p),m=await a.getDimensions(u),v="y"===p,g=v?"top":"left",y=v?"bottom":"right",b=v?"clientHeight":"clientWidth",_=i.reference[h]+i.reference[p]-f[p]-i.floating[h],w=f[p]-i.reference[p],x=await(null==a.getOffsetParent?void 0:a.getOffsetParent(u));let k=x?x[b]:0;(!k||!await(null==a.isElement?void 0:a.isElement(x)))&&(k=s.floating[b]||i.floating[h]);const E=_/2-w/2,S=k/2-m[h]/2-1,C=xf(d[g],S),N=xf(d[y],S),I=C,A=k-m[h]-N,T=k/2-m[h]/2+E,O=$_(I,T,A),D=!l.arrow&&null!=tm(o)&&T!==O&&i.reference[h]/2-(T<I?C:N)-m[h]/2<0,P=D?T<I?T-I:T-A:0;return{[p]:f[p]+P,data:{[p]:O,centerOffset:T-O-P,...D&&{alignmentOffset:P}},reset:D}}}),JT=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:i,rects:a,initialPlacement:s,platform:l,elements:u}=t,{mainAxis:c=!0,crossAxis:d=!0,fallbackPlacements:f,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:h="none",flipAlignment:m=!0,...v}=Iu(e,t);if(null!=(n=i.arrow)&&n.alignmentOffset)return{};const g=Pu(o),y=Sf(s),b=Pu(s)===s,_=await(null==l.isRTL?void 0:l.isRTL(u.floating)),w=f||(b||!m?[Uv(s)]:ZT(s)),x="none"!==h;!f&&x&&w.push(...qT(s,m,h,_));const k=[s,...w],E=await vg(t,v),S=[];let C=(null==(r=i.flip)?void 0:r.overflows)||[];if(c&&S.push(E[g]),d){const e=GT(o,a,_);S.push(E[e[0]],E[e[1]])}if(C=[...C,{placement:o,overflows:S}],!S.every((e=>e<=0))){var N,I;const e=((null==(N=i.flip)?void 0:N.index)||0)+1,t=k[e];if(t)return{data:{index:e,overflows:C},reset:{placement:t}};let n=null==(I=C.filter((e=>e.overflows[0]<=0)).sort(((e,t)=>e.overflows[1]-t.overflows[1]))[0])?void 0:I.placement;if(!n)switch(p){case"bestFit":{var A;const e=null==(A=C.filter((e=>{if(x){const t=Sf(e.placement);return t===y||"y"===t}return!0})).map((e=>[e.placement,e.overflows.filter((e=>e>0)).reduce(((e,t)=>e+t),0)])).sort(((e,t)=>e[1]-t[1]))[0])?void 0:A[0];e&&(n=e);break}case"initialPlacement":n=s}if(o!==n)return{reset:{placement:n}}}return{}}}};function xw(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function bw(e){return WT.some((t=>e[t]>=0))}const eA=function(e){return void 0===e&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...o}=Iu(e,t);switch(r){case"referenceHidden":{const e=xw(await vg(t,{...o,elementContext:"reference"}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:bw(e)}}}case"escaped":{const e=xw(await vg(t,{...o,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:bw(e)}}}default:return{}}}}};async function tA(e,t){const{placement:n,platform:r,elements:o}=e,i=await(null==r.isRTL?void 0:r.isRTL(o.floating)),a=Pu(n),s=tm(n),l="y"===Sf(n),u=["left","top"].includes(a)?-1:1,c=i&&l?-1:1,d=Iu(t,e);let{mainAxis:f,crossAxis:p,alignmentAxis:h}="number"==typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return s&&"number"==typeof h&&(p="end"===s?-1*h:h),l?{x:p*c,y:f*u}:{x:f*u,y:p*c}}const nA=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:i,placement:a,middlewareData:s}=t,l=await tA(t,e);return a===(null==(n=s.offset)?void 0:n.placement)&&null!=(r=s.arrow)&&r.alignmentOffset?{}:{x:o+l.x,y:i+l.y,data:{...l,placement:a}}}}},rA=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:i=!0,crossAxis:a=!1,limiter:s={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...l}=Iu(e,t),u={x:n,y:r},c=await vg(t,l),d=Sf(Pu(o)),f=a1(d);let p=u[f],h=u[d];if(i){const e="y"===f?"bottom":"right";p=$_(p+c["y"===f?"top":"left"],p,p-c[e])}if(a){const e="y"===d?"bottom":"right";h=$_(h+c["y"===d?"top":"left"],h,h-c[e])}const m=s.fn({...t,[f]:p,[d]:h});return{...m,data:{x:m.x-n,y:m.y-r,enabled:{[f]:i,[d]:a}}}}}},iA=function(e){return void 0===e&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:i,middlewareData:a}=t,{offset:s=0,mainAxis:l=!0,crossAxis:u=!0}=Iu(e,t),c={x:n,y:r},d=Sf(o),f=a1(d);let p=c[f],h=c[d];const m=Iu(s,t),v="number"==typeof m?{mainAxis:m,crossAxis:0}:{mainAxis:0,crossAxis:0,...m};if(l){const e="y"===f?"height":"width",t=i.reference[f]-i.floating[e]+v.mainAxis,n=i.reference[f]+i.reference[e]-v.mainAxis;p<t?p=t:p>n&&(p=n)}if(u){var g,y;const e="y"===f?"width":"height",t=["top","left"].includes(Pu(o)),n=i.reference[d]-i.floating[e]+(t&&(null==(g=a.offset)?void 0:g[d])||0)+(t?0:v.crossAxis),r=i.reference[d]+i.reference[e]+(t?0:(null==(y=a.offset)?void 0:y[d])||0)-(t?v.crossAxis:0);h<n?h=n:h>r&&(h=r)}return{[f]:p,[d]:h}}}},oA=function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:o,rects:i,platform:a,elements:s}=t,{apply:l=()=>{},...u}=Iu(e,t),c=await vg(t,u),d=Pu(o),f=tm(o),p="y"===Sf(o),{width:h,height:m}=i.floating;let v,g;"top"===d||"bottom"===d?(v=d,g=f===(await(null==a.isRTL?void 0:a.isRTL(s.floating))?"start":"end")?"left":"right"):(g=d,v="end"===f?"top":"bottom");const y=m-c.top-c.bottom,b=h-c.left-c.right,_=xf(m-c[v],y),w=xf(h-c[g],b),x=!t.middlewareData.shift;let k=_,E=w;if(null!=(n=t.middlewareData.shift)&&n.enabled.x&&(E=b),null!=(r=t.middlewareData.shift)&&r.enabled.y&&(k=y),x&&!f){const e=ts(c.left,0),t=ts(c.right,0),n=ts(c.top,0),r=ts(c.bottom,0);p?E=h-2*(0!==e||0!==t?e+t:ts(c.left,c.right)):k=m-2*(0!==n||0!==r?n+r:ts(c.top,c.bottom))}await l({...t,availableWidth:E,availableHeight:k});const S=await a.getDimensions(s.floating);return h!==S.width||m!==S.height?{reset:{rects:!0}}:{}}}};function f0(){return typeof window<"u"}function Ef(e){return xb(e)?(e.nodeName||"").toLowerCase():"#document"}function rs(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function Du(e){var t;return null==(t=(xb(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function xb(e){return!!f0()&&(e instanceof Node||e instanceof rs(e).Node)}function Sl(e){return!!f0()&&(e instanceof Element||e instanceof rs(e).Element)}function El(e){return!!f0()&&(e instanceof HTMLElement||e instanceof rs(e).HTMLElement)}function Sw(e){return!(!f0()||typeof ShadowRoot>"u")&&(e instanceof ShadowRoot||e instanceof rs(e).ShadowRoot)}function Mg(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=Bs(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function sA(e){return["table","td","th"].includes(Ef(e))}function aA(e){return[":popover-open",":modal"].some((t=>{try{return e.matches(t)}catch{return!1}}))}function c1(e){const t=f1(),n=Sl(e)?Bs(e):e;return"none"!==n.transform||"none"!==n.perspective||!!n.containerType&&"normal"!==n.containerType||!t&&!!n.backdropFilter&&"none"!==n.backdropFilter||!t&&!!n.filter&&"none"!==n.filter||["transform","perspective","filter"].some((e=>(n.willChange||"").includes(e)))||["paint","layout","strict","content"].some((e=>(n.contain||"").includes(e)))}function bb(e){let t=Hh(e);for(;El(t)&&!d0(t);){if(c1(t))return t;if(aA(t))return null;t=Hh(t)}return null}function f1(){return!(typeof CSS>"u"||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function d0(e){return["html","body","#document"].includes(Ef(e))}function Bs(e){return rs(e).getComputedStyle(e)}function p0(e){return Sl(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Hh(e){if("html"===Ef(e))return e;const t=e.assignedSlot||e.parentNode||Sw(e)&&e.host||Du(e);return Sw(t)?t.host:t}function Sb(e){const t=Hh(e);return d0(t)?e.ownerDocument?e.ownerDocument.body:e.body:El(t)&&Mg(t)?t:Sb(t)}function yg(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);const o=Sb(e),i=o===(null==(r=e.ownerDocument)?void 0:r.body),a=rs(o);if(i){const e=lA(a);return t.concat(a,a.visualViewport||[],Mg(o)?o:[],e&&n?yg(e):[])}return t.concat(o,yg(o,[],n))}function lA(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Eb(e){const t=Bs(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=El(e),i=o?e.offsetWidth:n,a=o?e.offsetHeight:r,s=jv(n)!==i||jv(r)!==a;return s&&(n=i,r=a),{width:n,height:r,$:s}}function d1(e){return Sl(e)?e:e.contextElement}function Uh(e){const t=d1(e);if(!El(t))return bf(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=Eb(t);let a=(i?jv(n.width):n.width)/r,s=(i?jv(n.height):n.height)/o;return(!a||!Number.isFinite(a))&&(a=1),(!s||!Number.isFinite(s))&&(s=1),{x:a,y:s}}const uA=bf(0);function Cb(e){const t=rs(e);return f1()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:uA}function cA(e,t,n){return void 0===t&&(t=!1),!(!n||t&&n!==rs(e))&&t}function Jd(e,t,n,r){void 0===t&&(t=!1),void 0===n&&(n=!1);const o=e.getBoundingClientRect(),i=d1(e);let a=bf(1);t&&(r?Sl(r)&&(a=Uh(r)):a=Uh(e));const s=cA(i,n,r)?Cb(i):bf(0);let l=(o.left+s.x)/a.x,u=(o.top+s.y)/a.y,c=o.width/a.x,d=o.height/a.y;if(i){const e=rs(i),t=r&&Sl(r)?rs(r):r;let n=e.frameElement;for(;n&&r&&t!==e;){const e=Uh(n),t=n.getBoundingClientRect(),r=Bs(n),o=t.left+(n.clientLeft+parseFloat(r.paddingLeft))*e.x,i=t.top+(n.clientTop+parseFloat(r.paddingTop))*e.y;l*=e.x,u*=e.y,c*=e.x,d*=e.y,l+=o,u+=i,n=rs(n).frameElement}}return Bv({width:c,height:d,x:l,y:u})}const fA=[":popover-open",":modal"];function kb(e){let t=!1,n=0,r=0;if(fA.forEach((n=>{!function(n){try{t=t||e.matches(n)}catch{}}(n)})),t){const t=bb(e);if(t){const e=t.getBoundingClientRect();n=e.x,r=e.y}}return[t,n,r]}function dA(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const i=Du(r),[a]=t?kb(t.floating):[!1];if(r===i||a)return n;let s={scrollLeft:0,scrollTop:0},l=bf(1);const u=bf(0),c=El(r);if((c||!c&&"fixed"!==o)&&(("body"!==Ef(r)||Mg(i))&&(s=p0(r)),El(r))){const e=Jd(r);l=Uh(r),u.x=e.x+r.clientLeft,u.y=e.y+r.clientTop}return{width:n.width*l.x,height:n.height*l.y,x:n.x*l.x-s.scrollLeft*l.x+u.x,y:n.y*l.y-s.scrollTop*l.y+u.y}}function pA(e){return Array.from(e.getClientRects())}function Tb(e){return Jd(Du(e)).left+p0(e).scrollLeft}function hA(e){const t=Du(e),n=p0(e),r=e.ownerDocument.body,o=ts(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=ts(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let a=-n.scrollLeft+Tb(e);const s=-n.scrollTop;return"rtl"===Bs(r).direction&&(a+=ts(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:a,y:s}}function mA(e,t){const n=rs(e),r=Du(e),o=n.visualViewport;let i=r.clientWidth,a=r.clientHeight,s=0,l=0;if(o){i=o.width,a=o.height;const e=f1();(!e||e&&"fixed"===t)&&(s=o.offsetLeft,l=o.offsetTop)}return{width:i,height:a,x:s,y:l}}function gA(e,t){const n=Jd(e,!0,"fixed"===t),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=El(e)?Uh(e):bf(1);return{width:e.clientWidth*i.x,height:e.clientHeight*i.y,x:o*i.x,y:r*i.y}}function Ew(e,t,n){let r;if("viewport"===t)r=mA(e,n);else if("document"===t)r=hA(Du(e));else if(Sl(t))r=gA(t,n);else{const n=Cb(e);r={...t,x:t.x-n.x,y:t.y-n.y}}return Bv(r)}function Ab(e,t){const n=Hh(e);return!(n===t||!Sl(n)||d0(n))&&("fixed"===Bs(n).position||Ab(n,t))}function vA(e,t){const n=t.get(e);if(n)return n;let r=yg(e,[],!1).filter((e=>Sl(e)&&"body"!==Ef(e))),o=null;const i="fixed"===Bs(e).position;let a=i?Hh(e):e;for(;Sl(a)&&!d0(a);){const t=Bs(a),n=c1(a);!n&&"fixed"===t.position&&(o=null),(i?!n&&!o:!n&&"static"===t.position&&o&&["absolute","fixed"].includes(o.position)||Mg(a)&&!n&&Ab(e,a))?r=r.filter((e=>e!==a)):o=t,a=Hh(a)}return t.set(e,r),r}function yA(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const i=[..."clippingAncestors"===n?vA(t,this._c):[].concat(n),r],a=i[0],s=i.reduce(((e,n)=>{const r=Ew(t,n,o);return e.top=ts(r.top,e.top),e.right=xf(r.right,e.right),e.bottom=xf(r.bottom,e.bottom),e.left=ts(r.left,e.left),e}),Ew(t,a,o));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}}function _A(e){const{width:t,height:n}=Eb(e);return{width:t,height:n}}function wA(e,t,n,r){const o=El(t),i=Du(t),a="fixed"===n,s=Jd(e,!0,a,t);let l={scrollLeft:0,scrollTop:0};const u=bf(0);if(o||!o&&!a)if(("body"!==Ef(t)||Mg(i))&&(l=p0(t)),o){const e=Jd(t,!0,a,t);u.x=e.x+t.clientLeft,u.y=e.y+t.clientTop}else i&&(u.x=Tb(i));let c=s.left+l.scrollLeft-u.x,d=s.top+l.scrollTop-u.y;const[f,p,h]=kb(r);return f&&(c+=p,d+=h,o&&(c+=t.clientLeft,d+=t.clientTop)),{x:c,y:d,width:s.width,height:s.height}}function Cw(e,t){return El(e)&&"fixed"!==Bs(e).position?t?t(e):e.offsetParent:null}function Nb(e,t){const n=rs(e);if(!El(e))return n;let r=Cw(e,t);for(;r&&sA(r)&&"static"===Bs(r).position;)r=Cw(r,t);return r&&("html"===Ef(r)||"body"===Ef(r)&&"static"===Bs(r).position&&!c1(r))?n:r||bb(e)||n}const xA=async function(e){const t=this.getOffsetParent||Nb,n=this.getDimensions;return{reference:wA(e.reference,await t(e.floating),e.strategy,e.floating),floating:{x:0,y:0,...await n(e.floating)}}};function bA(e){return"rtl"===Bs(e).direction}const SA={convertOffsetParentRelativeRectToViewportRelativeRect:dA,getDocumentElement:Du,getClippingRect:yA,getOffsetParent:Nb,getElementRects:xA,getClientRects:pA,getDimensions:_A,getScale:Uh,isElement:Sl,isRTL:bA};function EA(e,t){let n,r=null;const o=Du(e);function i(){var e;clearTimeout(n),null==(e=r)||e.disconnect(),r=null}return function a(s,l){void 0===s&&(s=!1),void 0===l&&(l=1),i();const{left:u,top:c,width:d,height:f}=e.getBoundingClientRect();if(s||t(),!d||!f)return;const p={rootMargin:-_v(c)+"px "+-_v(o.clientWidth-(u+d))+"px "+-_v(o.clientHeight-(c+f))+"px "+-_v(u)+"px",threshold:ts(0,xf(1,l))||1};let h=!0;function m(e){const t=e[0].intersectionRatio;if(t!==l){if(!h)return a();t?a(!1,t):n=setTimeout((()=>{a(!1,1e-7)}),100)}h=!1}try{r=new IntersectionObserver(m,{...p,root:o.ownerDocument})}catch{r=new IntersectionObserver(m,p)}r.observe(e)}(!0),i}function CA(e,t,n,r){void 0===r&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:a="function"==typeof ResizeObserver,layoutShift:s="function"==typeof IntersectionObserver,animationFrame:l=!1}=r,u=d1(e),c=o||i?[...u?yg(u):[],...yg(t)]:[];c.forEach((e=>{o&&e.addEventListener("scroll",n,{passive:!0}),i&&e.addEventListener("resize",n)}));const d=u&&s?EA(u,n):null;let f=-1,p=null;a&&(p=new ResizeObserver((e=>{let[r]=e;r&&r.target===u&&p&&(p.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame((()=>{var e;null==(e=p)||e.observe(t)}))),n()})),u&&!l&&p.observe(u),p.observe(t));let h,m=l?Jd(e):null;return l&&function t(){const r=Jd(e);m&&(r.x!==m.x||r.y!==m.y||r.width!==m.width||r.height!==m.height)&&n(),m=r,h=requestAnimationFrame(t)}(),n(),()=>{var e;c.forEach((e=>{o&&e.removeEventListener("scroll",n),i&&e.removeEventListener("resize",n)})),null==d||d(),null==(e=p)||e.disconnect(),p=null,l&&cancelAnimationFrame(h)}}const kA=rA,TA=JT,AA=oA,NA=eA,kw=XT,RA=iA,$A=(e,t,n)=>{const r=new Map,o={platform:SA,...n},i={...o.platform,_c:r};return QT(e,t,{...o,platform:i})};var $v=typeof document<"u"?Ax:Et;function zv(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;0!=r--;)if(!zv(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;0!=r--;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;0!=r--;){const n=o[r];if(!("_owner"===n&&e.$$typeof||zv(e[n],t[n])))return!1}return!0}return e!=e&&t!=t}function Rb(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Tw(e,t){const n=Rb(e);return Math.round(t*n)/n}function l_(e){const t=M.useRef(e);return $v((()=>{t.current=e})),t}function IA(e){void 0===e&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:i,floating:a}={},transform:s=!0,whileElementsMounted:l,open:u}=e,[c,d]=M.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[f,p]=M.useState(r);zv(f,r)||p(r);const[h,m]=M.useState(null),[v,g]=M.useState(null),y=M.useCallback((e=>{e!==x.current&&(x.current=e,m(e))}),[]),b=M.useCallback((e=>{e!==k.current&&(k.current=e,g(e))}),[]),_=i||h,w=a||v,x=M.useRef(null),k=M.useRef(null),E=M.useRef(c),S=null!=l,C=l_(l),N=l_(o),I=l_(u),A=M.useCallback((()=>{if(!x.current||!k.current)return;const e={placement:t,strategy:n,middleware:f};N.current&&(e.platform=N.current),$A(x.current,k.current,e).then((e=>{const t={...e,isPositioned:!1!==I.current};T.current&&!zv(E.current,t)&&(E.current=t,$f.flushSync((()=>{d(t)})))}))}),[f,t,n,N,I]);$v((()=>{!1===u&&E.current.isPositioned&&(E.current.isPositioned=!1,d((e=>({...e,isPositioned:!1}))))}),[u]);const T=M.useRef(!1);$v((()=>(T.current=!0,()=>{T.current=!1})),[]),$v((()=>{if(_&&(x.current=_),w&&(k.current=w),_&&w){if(C.current)return C.current(_,w,A);A()}}),[_,w,A,C,S]);const O=M.useMemo((()=>({reference:x,floating:k,setReference:y,setFloating:b})),[y,b]),D=M.useMemo((()=>({reference:_,floating:w})),[_,w]),P=M.useMemo((()=>{const e={position:n,left:0,top:0};if(!D.floating)return e;const t=Tw(D.floating,c.x),r=Tw(D.floating,c.y);return s?{...e,transform:"translate("+t+"px, "+r+"px)",...Rb(D.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:r}}),[n,s,D.floating,c.x,c.y]);return M.useMemo((()=>({...c,update:A,refs:O,elements:D,floatingStyles:P})),[c,A,O,D,P])}const PA=e=>({name:"arrow",options:e,fn(t){const{element:n,padding:r}="function"==typeof e?e(t):e;return n&&function(e){return{}.hasOwnProperty.call(e,"current")}(n)?null!=n.current?kw({element:n.current,padding:r}).fn(t):{}:n?kw({element:n,padding:r}).fn(t):{}}}),OA=(e,t)=>({...nA(e),options:[e,t]}),LA=(e,t)=>({...kA(e),options:[e,t]}),DA=(e,t)=>({...RA(e),options:[e,t]}),MA=(e,t)=>({...TA(e),options:[e,t]}),FA=(e,t)=>({...AA(e),options:[e,t]}),jA=(e,t)=>({...NA(e),options:[e,t]}),UA=(e,t)=>({...PA(e),options:[e,t]}),$b="Popper",[Ib,Pb]=Tl($b),[g4,Ob]=Ib($b),BA="PopperAnchor",zA=gt(((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,i=Ob(BA,n),a=At(null),s=Kn(t,a);return Et((()=>{i.onAnchorChange((null==r?void 0:r.current)||a.current)})),r?null:me(Lt.div,rt({},o,{ref:s}))})),Lb="PopperContent",[WA,v4]=Ib(Lb),VA=gt(((e,t)=>{var n,r,o,i,a,s,l,u;const{__scopePopper:c,side:d="bottom",sideOffset:f=0,align:p="center",alignOffset:h=0,arrowPadding:m=0,avoidCollisions:v=!0,collisionBoundary:g=[],collisionPadding:y=0,sticky:b="partial",hideWhenDetached:_=!1,updatePositionStrategy:w="optimized",onPlaced:x,...k}=e,E=Ob(Lb,c),[S,C]=Ot(null),N=Kn(t,(e=>C(e))),[I,A]=Ot(null),T=u0(I),O=null!==(n=null==T?void 0:T.width)&&void 0!==n?n:0,D=null!==(r=null==T?void 0:T.height)&&void 0!==r?r:0,P=d+("center"!==p?"-"+p:""),R="number"==typeof y?y:{top:0,right:0,bottom:0,left:0,...y},M=Array.isArray(g)?g:[g],j=M.length>0,L={padding:R,boundary:M.filter(HA),altBoundary:j},{refs:U,floatingStyles:F,placement:z,isPositioned:$,middlewareData:B}=IA({strategy:"fixed",placement:P,whileElementsMounted:(...e)=>CA(...e,{animationFrame:"always"===w}),elements:{reference:E.anchor},middleware:[OA({mainAxis:f+D,alignmentAxis:h}),v&&LA({mainAxis:!0,crossAxis:!1,limiter:"partial"===b?DA():void 0,...L}),v&&MA({...L}),FA({...L,apply:({elements:e,rects:t,availableWidth:n,availableHeight:r})=>{const{width:o,height:i}=t.reference,a=e.floating.style;a.setProperty("--radix-popper-available-width",`${n}px`),a.setProperty("--radix-popper-available-height",`${r}px`),a.setProperty("--radix-popper-anchor-width",`${o}px`),a.setProperty("--radix-popper-anchor-height",`${i}px`)}}),I&&UA({element:I,padding:m}),GA({arrowWidth:O,arrowHeight:D}),_&&jA({strategy:"referenceHidden",...L})]}),[W,V]=Db(z),K=bl(x);os((()=>{$&&(null==K||K())}),[$,K]);const Z=null===(o=B.arrow)||void 0===o?void 0:o.x,q=null===(i=B.arrow)||void 0===i?void 0:i.y,H=0!==(null===(a=B.arrow)||void 0===a?void 0:a.centerOffset),[G,Q]=Ot();return os((()=>{S&&Q(window.getComputedStyle(S).zIndex)}),[S]),me("div",{ref:U.setFloating,"data-radix-popper-content-wrapper":"",style:{...F,transform:$?F.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:G,"--radix-popper-transform-origin":[null===(s=B.transformOrigin)||void 0===s?void 0:s.x,null===(l=B.transformOrigin)||void 0===l?void 0:l.y].join(" ")},dir:e.dir},me(WA,{scope:c,placedSide:W,onArrowChange:A,arrowX:Z,arrowY:q,shouldHideArrow:H},me(Lt.div,rt({"data-side":W,"data-align":V},k,{ref:N,style:{...k.style,animation:$?void 0:"none",opacity:null!==(u=B.hide)&&void 0!==u&&u.referenceHidden?0:void 0}}))))}));function HA(e){return null!==e}const GA=e=>({name:"transformOrigin",options:e,fn(t){var n,r,o,i,a;const{placement:s,rects:l,middlewareData:u}=t,c=0!==(null===(n=u.arrow)||void 0===n?void 0:n.centerOffset),d=c?0:e.arrowWidth,f=c?0:e.arrowHeight,[p,h]=Db(s),m={start:"0%",center:"50%",end:"100%"}[h],v=(null!==(r=null===(o=u.arrow)||void 0===o?void 0:o.x)&&void 0!==r?r:0)+d/2,g=(null!==(i=null===(a=u.arrow)||void 0===a?void 0:a.y)&&void 0!==i?i:0)+f/2;let y="",b="";return"bottom"===p?(y=c?m:`${v}px`,b=-f+"px"):"top"===p?(y=c?m:`${v}px`,b=`${l.floating.height+f}px`):"right"===p?(y=-f+"px",b=c?m:`${g}px`):"left"===p&&(y=`${l.floating.width+f}px`,b=c?m:`${g}px`),{data:{x:y,y:b}}}});function Db(e){const[t,n="center"]=e.split("-");return[t,n]}const ZA=zA,KA=VA,Mb=gt(((e,t)=>{var n;const{container:r=(null==globalThis||null===(n=globalThis.document)||void 0===n?void 0:n.body),...o}=e;return r?Px.createPortal(me(Lt.div,rt({},o,{ref:t})),r):null})),qA=gt(((e,t)=>me(Lt.span,rt({},e,{ref:t,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...e.style}}))));var YA=function(e){return typeof document>"u"?null:(Array.isArray(e)?e[0]:e).ownerDocument.body},Ch=new WeakMap,wv=new WeakMap,xv={},u_=0,Fb=function(e){return e&&(e.host||Fb(e.parentNode))},QA=function(e,t){return t.map((function(t){if(e.contains(t))return t;var n=Fb(t);return n&&e.contains(n)?n:(console.error("aria-hidden",t,"in not contained inside",e,". Doing nothing"),null)})).filter((function(e){return!!e}))},XA=function(e,t,n,r){var o=QA(t,Array.isArray(e)?e:[e]);xv[n]||(xv[n]=new WeakMap);var i=xv[n],a=[],s=new Set,l=new Set(o),u=function(e){!e||s.has(e)||(s.add(e),u(e.parentNode))};o.forEach(u);var c=function(e){!e||l.has(e)||Array.prototype.forEach.call(e.children,(function(e){if(s.has(e))c(e);else{var t=e.getAttribute(r),o=null!==t&&"false"!==t,l=(Ch.get(e)||0)+1,u=(i.get(e)||0)+1;Ch.set(e,l),i.set(e,u),a.push(e),1===l&&o&&wv.set(e,!0),1===u&&e.setAttribute(n,"true"),o||e.setAttribute(r,"true")}}))};return c(t),s.clear(),u_++,function(){a.forEach((function(e){var t=Ch.get(e)-1,o=i.get(e)-1;Ch.set(e,t),i.set(e,o),t||(wv.has(e)||e.removeAttribute(r),wv.delete(e)),o||e.removeAttribute(n)})),--u_||(Ch=new WeakMap,Ch=new WeakMap,wv=new WeakMap,xv={})}},p1=function(e,t,n){void 0===n&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=YA(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live]"))),XA(r,o,n,"aria-hidden")):function(){return null}},Bi=function(){return Bi=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Bi.apply(this,arguments)};function h1(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}function jb(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)(r||!(o in t))&&(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}var pg="right-scroll-bar-position",hg="width-before-scroll-bar",JA="with-scroll-bars-hidden",eN="--removed-body-scroll-bar-size";function c_(e,t){return"function"==typeof e?e(t):e&&(e.current=t),e}function tN(e,t){var n=Ot((function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(e){var t=n.value;t!==e&&(n.value=e,n.callback(e,t))}}}}))[0];return n.callback=t,n.facade}var nN=typeof window<"u"?M.useLayoutEffect:M.useEffect,Aw=new WeakMap;function Ub(e,t){var n=tN(null,(function(t){return e.forEach((function(e){return c_(e,t)}))}));return nN((function(){var t=Aw.get(n);if(t){var r=new Set(t),o=new Set(e),i=n.current;r.forEach((function(e){o.has(e)||c_(e,null)})),o.forEach((function(e){r.has(e)||c_(e,i)}))}Aw.set(n,e)}),[e]),n}function rN(e){return e}function iN(e,t){void 0===t&&(t=rN);var n=[],r=!1;return{read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(e){var o=t(e,r);return n.push(o),function(){n=n.filter((function(e){return e!==o}))}},assignSyncMedium:function(e){for(r=!0;n.length;){var t=n;n=[],t.forEach(e)}n={push:function(t){return e(t)},filter:function(){return n}}},assignMedium:function(e){r=!0;var t=[];if(n.length){var o=n;n=[],o.forEach(e),t=n}var i=function(){var n=t;t=[],n.forEach(e)},a=function(){return Promise.resolve().then(i)};a(),n={push:function(e){t.push(e),a()},filter:function(e){return t=t.filter(e),n}}}}}function Bb(e){void 0===e&&(e={});var t=iN(null);return t.options=Bi({async:!0,ssr:!1},e),t}var zb=function(e){var t=e.sideCar,n=h1(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return M.createElement(r,Bi({},n))};function Wb(e,t){return e.useMedium(t),zb}zb.isSideCarExport=!0;var Vb=Bb(),f_=function(){},h0=M.forwardRef((function(e,t){var n=M.useRef(null),r=M.useState({onScrollCapture:f_,onWheelCapture:f_,onTouchMoveCapture:f_}),o=r[0],i=r[1],a=e.forwardProps,s=e.children,l=e.className,u=e.removeScrollBar,c=e.enabled,d=e.shards,f=e.sideCar,p=e.noIsolation,h=e.inert,m=e.allowPinchZoom,v=e.as,g=void 0===v?"div":v,y=h1(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as"]),b=f,_=Ub([n,t]),w=Bi(Bi({},y),o);return M.createElement(M.Fragment,null,c&&M.createElement(b,{sideCar:Vb,removeScrollBar:u,shards:d,noIsolation:p,inert:h,setCallbacks:i,allowPinchZoom:!!m,lockRef:n}),a?M.cloneElement(M.Children.only(s),Bi(Bi({},w),{ref:_})):M.createElement(g,Bi({},w,{className:l,ref:_}),s))}));h0.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},h0.classNames={fullWidth:hg,zeroRight:pg};var oN=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function sN(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=oN();return t&&e.setAttribute("nonce",t),e}function aN(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function lN(e){(document.head||document.getElementsByTagName("head")[0]).appendChild(e)}var uN=function(){var e=0,t=null;return{add:function(n){0==e&&(t=sN())&&(aN(t,n),lN(t)),e++},remove:function(){! --e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},cN=function(){var e=uN();return function(t,n){M.useEffect((function(){return e.add(t),function(){e.remove()}}),[t&&n])}},m1=function(){var e=cN();return function(t){var n=t.styles,r=t.dynamic;return e(n,r),null}},fN={left:0,top:0,right:0,gap:0},d_=function(e){return parseInt(e||"",10)||0},dN=function(e){var t=window.getComputedStyle(document.body),n=t["padding"===e?"paddingLeft":"marginLeft"],r=t["padding"===e?"paddingTop":"marginTop"],o=t["padding"===e?"paddingRight":"marginRight"];return[d_(n),d_(r),d_(o)]},pN=function(e){if(void 0===e&&(e="margin"),typeof window>"u")return fN;var t=dN(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},hN=m1(),mN=function(e,t,n,r){var o=e.left,i=e.top,a=e.right,s=e.gap;return void 0===n&&(n="margin"),"\n .".concat(JA," {\n overflow: hidden ").concat(r,";\n padding-right: ").concat(s,"px ").concat(r,";\n }\n body {\n overflow: hidden ").concat(r,";\n overscroll-behavior: contain;\n ").concat([t&&"position: relative ".concat(r,";"),"margin"===n&&"\n padding-left: ".concat(o,"px;\n padding-top: ").concat(i,"px;\n padding-right: ").concat(a,"px;\n margin-left:0;\n margin-top:0;\n margin-right: ").concat(s,"px ").concat(r,";\n "),"padding"===n&&"padding-right: ".concat(s,"px ").concat(r,";")].filter(Boolean).join(""),"\n }\n \n .").concat(pg," {\n right: ").concat(s,"px ").concat(r,";\n }\n \n .").concat(hg," {\n margin-right: ").concat(s,"px ").concat(r,";\n }\n \n .").concat(pg," .").concat(pg," {\n right: 0 ").concat(r,";\n }\n \n .").concat(hg," .").concat(hg," {\n margin-right: 0 ").concat(r,";\n }\n \n body {\n ").concat(eN,": ").concat(s,"px;\n }\n")},Hb=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=void 0===r?"margin":r,i=M.useMemo((function(){return pN(o)}),[o]);return M.createElement(hN,{styles:mN(i,!t,o,n?"":"!important")})},P_=!1;if(typeof window<"u")try{var bv=Object.defineProperty({},"passive",{get:function(){return P_=!0,!0}});window.addEventListener("test",bv,bv),window.removeEventListener("test",bv,bv)}catch{P_=!1}var kh=!!P_&&{passive:!1},gN=function(e){return"TEXTAREA"===e.tagName},Gb=function(e,t){var n=window.getComputedStyle(e);return"hidden"!==n[t]&&!(n.overflowY===n.overflowX&&!gN(e)&&"visible"===n[t])},vN=function(e){return Gb(e,"overflowY")},yN=function(e){return Gb(e,"overflowX")},Nw=function(e,t){var n=t;do{if(typeof ShadowRoot<"u"&&n instanceof ShadowRoot&&(n=n.host),Zb(e,n)){var r=Kb(e,n);if(r[1]>r[2])return!0}n=n.parentNode}while(n&&n!==document.body);return!1},_N=function(e){return[e.scrollTop,e.scrollHeight,e.clientHeight]},wN=function(e){return[e.scrollLeft,e.scrollWidth,e.clientWidth]},Zb=function(e,t){return"v"===e?vN(t):yN(t)},Kb=function(e,t){return"v"===e?_N(t):wN(t)},xN=function(e,t){return"h"===e&&"rtl"===t?-1:1},bN=function(e,t,n,r,o){var i=xN(e,window.getComputedStyle(t).direction),a=i*r,s=n.target,l=t.contains(s),u=!1,c=a>0,d=0,f=0;do{var p=Kb(e,s),h=p[0],m=p[1]-p[2]-i*h;(h||m)&&Zb(e,s)&&(d+=m,f+=h),s=s.parentNode}while(!l&&s!==document.body||l&&(t.contains(s)||t===s));return(c&&(0===d||!o)||!c&&(0===f||!o))&&(u=!0),u},Sv=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Rw=function(e){return[e.deltaX,e.deltaY]},$w=function(e){return e&&"current"in e?e.current:e},SN=function(e,t){return e[0]===t[0]&&e[1]===t[1]},EN=function(e){return"\n .block-interactivity-".concat(e," {pointer-events: none;}\n .allow-interactivity-").concat(e," {pointer-events: all;}\n")},CN=0,Th=[];function kN(e){var t=M.useRef([]),n=M.useRef([0,0]),r=M.useRef(),o=M.useState(CN++)[0],i=M.useState((function(){return m1()}))[0],a=M.useRef(e);M.useEffect((function(){a.current=e}),[e]),M.useEffect((function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var t=jb([e.lockRef.current],(e.shards||[]).map($w),!0).filter(Boolean);return t.forEach((function(e){return e.classList.add("allow-interactivity-".concat(o))})),function(){document.body.classList.remove("block-interactivity-".concat(o)),t.forEach((function(e){return e.classList.remove("allow-interactivity-".concat(o))}))}}}),[e.inert,e.lockRef.current,e.shards]);var s=M.useCallback((function(e,t){if("touches"in e&&2===e.touches.length)return!a.current.allowPinchZoom;var o,i=Sv(e),s=n.current,l="deltaX"in e?e.deltaX:s[0]-i[0],u="deltaY"in e?e.deltaY:s[1]-i[1],c=e.target,d=Math.abs(l)>Math.abs(u)?"h":"v";if("touches"in e&&"h"===d&&"range"===c.type)return!1;var f=Nw(d,c);if(!f)return!0;if(f?o=d:(o="v"===d?"h":"v",f=Nw(d,c)),!f)return!1;if(!r.current&&"changedTouches"in e&&(l||u)&&(r.current=o),!o)return!0;var p=r.current||o;return bN(p,t,e,"h"===p?l:u,!0)}),[]),l=M.useCallback((function(e){var n=e;if(Th.length&&Th[Th.length-1]===i){var r="deltaY"in n?Rw(n):Sv(n),o=t.current.filter((function(e){return e.name===n.type&&e.target===n.target&&SN(e.delta,r)}))[0];if(o&&o.should)return void(n.cancelable&&n.preventDefault());if(!o){var l=(a.current.shards||[]).map($w).filter(Boolean).filter((function(e){return e.contains(n.target)}));(l.length>0?s(n,l[0]):!a.current.noIsolation)&&n.cancelable&&n.preventDefault()}}}),[]),u=M.useCallback((function(e,n,r,o){var i={name:e,delta:n,target:r,should:o};t.current.push(i),setTimeout((function(){t.current=t.current.filter((function(e){return e!==i}))}),1)}),[]),c=M.useCallback((function(e){n.current=Sv(e),r.current=void 0}),[]),d=M.useCallback((function(t){u(t.type,Rw(t),t.target,s(t,e.lockRef.current))}),[]),f=M.useCallback((function(t){u(t.type,Sv(t),t.target,s(t,e.lockRef.current))}),[]);M.useEffect((function(){return Th.push(i),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:f}),document.addEventListener("wheel",l,kh),document.addEventListener("touchmove",l,kh),document.addEventListener("touchstart",c,kh),function(){Th=Th.filter((function(e){return e!==i})),document.removeEventListener("wheel",l,kh),document.removeEventListener("touchmove",l,kh),document.removeEventListener("touchstart",c,kh)}}),[]);var p=e.removeScrollBar,h=e.inert;return M.createElement(M.Fragment,null,h?M.createElement(i,{styles:EN(o)}):null,p?M.createElement(Hb,{gapMode:"margin"}):null)}const TN=Wb(Vb,kN);var g1=M.forwardRef((function(e,t){return M.createElement(h0,Bi({},e,{ref:t,sideCar:TN}))}));g1.classNames=h0.classNames;const AN=[" ","Enter","ArrowUp","ArrowDown"],NN=[" ","Enter"],m0="Select",[v1,g0,RN]=Qx(m0),[nm,y4]=Tl(m0,[RN,Pb]),qb=Pb(),[_4,rm]=nm(m0),[w4,$N]=nm(m0),IN="SelectTrigger",PN=gt(((e,t)=>{const{__scopeSelect:n,disabled:r=!1,...o}=e,i=qb(n),a=rm(IN,n),s=a.disabled||r,l=Kn(t,a.onTriggerChange),u=g0(n),[c,d,f]=Jb((e=>{const t=u().filter((e=>!e.disabled)),n=t.find((e=>e.value===a.value)),r=eS(t,e,n);void 0!==r&&a.onValueChange(r.value)})),p=()=>{s||(a.onOpenChange(!0),f())};return me(ZA,rt({asChild:!0},i),me(Lt.button,rt({type:"button",role:"combobox","aria-controls":a.contentId,"aria-expanded":a.open,"aria-required":a.required,"aria-autocomplete":"none",dir:a.dir,"data-state":a.open?"open":"closed",disabled:s,"data-disabled":s?"":void 0,"data-placeholder":JN(a.value)?"":void 0},o,{ref:l,onClick:Bt(o.onClick,(e=>{e.currentTarget.focus()})),onPointerDown:Bt(o.onPointerDown,(e=>{const t=e.target;t.hasPointerCapture(e.pointerId)&&t.releasePointerCapture(e.pointerId),0===e.button&&!1===e.ctrlKey&&(p(),a.triggerPointerDownPosRef.current={x:Math.round(e.pageX),y:Math.round(e.pageY)},e.preventDefault())})),onKeyDown:Bt(o.onKeyDown,(e=>{const t=""!==c.current;!(e.ctrlKey||e.altKey||e.metaKey)&&1===e.key.length&&d(e.key),(!t||" "!==e.key)&&AN.includes(e.key)&&(p(),e.preventDefault())}))})))})),ON=gt(((e,t)=>{const{__scopeSelect:n,children:r,...o}=e;return me(Lt.span,rt({"aria-hidden":!0},o,{ref:t}),r||"▼")})),LN=e=>me(Mb,rt({asChild:!0},e)),Gh="SelectContent",DN=gt(((e,t)=>{const n=rm(Gh,e.__scopeSelect),[r,o]=Ot();if(os((()=>{o(new DocumentFragment)}),[]),!n.open){const t=r;return t?$f.createPortal(me(Yb,{scope:e.__scopeSelect},me(v1.Slot,{scope:e.__scopeSelect},me("div",null,e.children))),t):null}return me(MN,rt({},e,{ref:t}))})),$u=10,[Yb,ap]=nm(Gh),MN=gt(((e,t)=>{const{__scopeSelect:n,position:r="item-aligned",onCloseAutoFocus:o,onEscapeKeyDown:i,onPointerDownOutside:a,side:s,sideOffset:l,align:u,alignOffset:c,arrowPadding:d,collisionBoundary:f,collisionPadding:p,sticky:h,hideWhenDetached:m,avoidCollisions:v,...g}=e,y=rm(Gh,n),[b,_]=Ot(null),[w,x]=Ot(null),k=Kn(t,(e=>_(e))),[E,S]=Ot(null),[C,N]=Ot(null),I=g0(n),[A,T]=Ot(!1),O=At(!1);Et((()=>{if(b)return p1(b)}),[b]),vb();const D=Zn((e=>{const[t,...n]=I().map((e=>e.ref.current)),[r]=n.slice(-1),o=document.activeElement;for(const n of e)if(n===o||(null==n||n.scrollIntoView({block:"nearest"}),n===t&&w&&(w.scrollTop=0),n===r&&w&&(w.scrollTop=w.scrollHeight),null==n||n.focus(),document.activeElement!==o))return}),[I,w]),P=Zn((()=>D([E,b])),[D,E,b]);Et((()=>{A&&P()}),[A,P]);const{onOpenChange:R,triggerPointerDownPosRef:M}=y;Et((()=>{if(b){let e={x:0,y:0};const t=t=>{var n,r,o,i;e={x:Math.abs(Math.round(t.pageX)-(null!==(n=null===(r=M.current)||void 0===r?void 0:r.x)&&void 0!==n?n:0)),y:Math.abs(Math.round(t.pageY)-(null!==(o=null===(i=M.current)||void 0===i?void 0:i.y)&&void 0!==o?o:0))}},n=n=>{e.x<=10&&e.y<=10?n.preventDefault():b.contains(n.target)||R(!1),document.removeEventListener("pointermove",t),M.current=null};return null!==M.current&&(document.addEventListener("pointermove",t),document.addEventListener("pointerup",n,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",t),document.removeEventListener("pointerup",n,{capture:!0})}}}),[b,R,M]),Et((()=>{const e=()=>R(!1);return window.addEventListener("blur",e),window.addEventListener("resize",e),()=>{window.removeEventListener("blur",e),window.removeEventListener("resize",e)}}),[R]);const[j,L]=Jb((e=>{const t=I().filter((e=>!e.disabled)),n=t.find((e=>e.ref.current===document.activeElement)),r=eS(t,e,n);r&&setTimeout((()=>r.ref.current.focus()))})),U=Zn(((e,t,n)=>{const r=!O.current&&!n;(void 0!==y.value&&y.value===t||r)&&(S(e),r&&(O.current=!0))}),[y.value]),F=Zn((()=>null==b?void 0:b.focus()),[b]),z=Zn(((e,t,n)=>{const r=!O.current&&!n;(void 0!==y.value&&y.value===t||r)&&N(e)}),[y.value]),$="popper"===r?Iw:FN,B=$===Iw?{side:s,sideOffset:l,align:u,alignOffset:c,arrowPadding:d,collisionBoundary:f,collisionPadding:p,sticky:h,hideWhenDetached:m,avoidCollisions:v}:{};return me(Yb,{scope:n,content:b,viewport:w,onViewportChange:x,itemRefCallback:U,selectedItem:E,onItemLeave:F,itemTextRefCallback:z,focusSelectedItem:P,selectedItemText:C,position:r,isPositioned:A,searchRef:j},me(g1,{as:Vh,allowPinchZoom:!0},me(yb,{asChild:!0,trapped:y.open,onMountAutoFocus:e=>{e.preventDefault()},onUnmountAutoFocus:Bt(o,(e=>{var t;null===(t=y.trigger)||void 0===t||t.focus({preventScroll:!0}),e.preventDefault()}))},me(mb,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:i,onPointerDownOutside:a,onFocusOutside:e=>e.preventDefault(),onDismiss:()=>y.onOpenChange(!1)},me($,rt({role:"listbox",id:y.contentId,"data-state":y.open?"open":"closed",dir:y.dir,onContextMenu:e=>e.preventDefault()},g,B,{onPlaced:()=>T(!0),ref:k,style:{display:"flex",flexDirection:"column",outline:"none",...g.style},onKeyDown:Bt(g.onKeyDown,(e=>{const t=e.ctrlKey||e.altKey||e.metaKey;if("Tab"===e.key&&e.preventDefault(),!t&&1===e.key.length&&L(e.key),["ArrowUp","ArrowDown","Home","End"].includes(e.key)){let t=I().filter((e=>!e.disabled)).map((e=>e.ref.current));if(["ArrowUp","End"].includes(e.key)&&(t=t.slice().reverse()),["ArrowUp","ArrowDown"].includes(e.key)){const n=e.target,r=t.indexOf(n);t=t.slice(r+1)}setTimeout((()=>D(t))),e.preventDefault()}}))}))))))})),FN=gt(((e,t)=>{const{__scopeSelect:n,onPlaced:r,...o}=e,i=rm(Gh,n),a=ap(Gh,n),[s,l]=Ot(null),[u,c]=Ot(null),d=Kn(t,(e=>c(e))),f=g0(n),p=At(!1),h=At(!0),{viewport:m,selectedItem:v,selectedItemText:g,focusSelectedItem:y}=a,b=Zn((()=>{if(i.trigger&&i.valueNode&&s&&u&&m&&v&&g){const e=i.trigger.getBoundingClientRect(),t=u.getBoundingClientRect(),n=i.valueNode.getBoundingClientRect(),o=g.getBoundingClientRect();if("rtl"!==i.dir){const r=o.left-t.left,i=n.left-r,a=e.left-i,l=e.width+a,u=Math.max(l,t.width),c=window.innerWidth-$u,d=dw(i,[$u,c-u]);s.style.minWidth=l+"px",s.style.left=d+"px"}else{const r=t.right-o.right,i=window.innerWidth-n.right-r,a=window.innerWidth-e.right-i,l=e.width+a,u=Math.max(l,t.width),c=window.innerWidth-$u,d=dw(i,[$u,c-u]);s.style.minWidth=l+"px",s.style.right=d+"px"}const a=f(),l=window.innerHeight-2*$u,c=m.scrollHeight,d=window.getComputedStyle(u),h=parseInt(d.borderTopWidth,10),y=parseInt(d.paddingTop,10),b=parseInt(d.borderBottomWidth,10),_=h+y+c+parseInt(d.paddingBottom,10)+b,w=Math.min(5*v.offsetHeight,_),x=window.getComputedStyle(m),k=parseInt(x.paddingTop,10),E=parseInt(x.paddingBottom,10),S=e.top+e.height/2-$u,C=l-S,N=v.offsetHeight/2,I=h+y+(v.offsetTop+N),A=_-I;if(I<=S){const e=v===a[a.length-1].ref.current;s.style.bottom="0px";const t=u.clientHeight-m.offsetTop-m.offsetHeight,n=I+Math.max(C,N+(e?E:0)+t+b);s.style.height=n+"px"}else{const e=v===a[0].ref.current;s.style.top="0px";const t=Math.max(S,h+m.offsetTop+(e?k:0)+N)+A;s.style.height=t+"px",m.scrollTop=I-S+m.offsetTop}s.style.margin=`${$u}px 0`,s.style.minHeight=w+"px",s.style.maxHeight=l+"px",null==r||r(),requestAnimationFrame((()=>p.current=!0))}}),[f,i.trigger,i.valueNode,s,u,m,v,g,i.dir,r]);os((()=>b()),[b]);const[_,w]=Ot();os((()=>{u&&w(window.getComputedStyle(u).zIndex)}),[u]);const x=Zn((e=>{e&&!0===h.current&&(b(),null==y||y(),h.current=!1)}),[b,y]);return me(jN,{scope:n,contentWrapper:s,shouldExpandOnScrollRef:p,onScrollButtonChange:x},me("div",{ref:l,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:_}},me(Lt.div,rt({},o,{ref:d,style:{boxSizing:"border-box",maxHeight:"100%",...o.style}}))))})),Iw=gt(((e,t)=>{const{__scopeSelect:n,align:r="start",collisionPadding:o=$u,...i}=e,a=qb(n);return me(KA,rt({},a,i,{ref:t,align:r,collisionPadding:o,style:{boxSizing:"border-box",...i.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}}))})),[jN,y1]=nm(Gh,{}),Pw="SelectViewport",UN=gt(((e,t)=>{const{__scopeSelect:n,...r}=e,o=ap(Pw,n),i=y1(Pw,n),a=Kn(t,o.onViewportChange),s=At(0);return me(o0,null,me("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"}}),me(v1.Slot,{scope:n},me(Lt.div,rt({"data-radix-select-viewport":"",role:"presentation"},r,{ref:a,style:{position:"relative",flex:1,overflow:"auto",...r.style},onScroll:Bt(r.onScroll,(e=>{const t=e.currentTarget,{contentWrapper:n,shouldExpandOnScrollRef:r}=i;if(null!=r&&r.current&&n){const e=Math.abs(s.current-t.scrollTop);if(e>0){const r=window.innerHeight-2*$u,o=parseFloat(n.style.minHeight),i=parseFloat(n.style.height),a=Math.max(o,i);if(a<r){const o=a+e,i=Math.min(r,o),s=o-i;n.style.height=i+"px","0px"===n.style.bottom&&(t.scrollTop=s>0?s:0,n.style.justifyContent="flex-end")}}}s.current=t.scrollTop}))}))))})),BN="SelectGroup",[x4,zN]=nm(BN),WN="SelectLabel",VN=gt(((e,t)=>{const{__scopeSelect:n,...r}=e,o=zN(WN,n);return me(Lt.div,rt({id:o.id},r,{ref:t}))})),O_="SelectItem",[HN,Qb]=nm(O_),GN=gt(((e,t)=>{const{__scopeSelect:n,value:r,disabled:o=!1,textValue:i,...a}=e,s=rm(O_,n),l=ap(O_,n),u=s.value===r,[c,d]=Ot(i??""),[f,p]=Ot(!1),h=Kn(t,(e=>{var t;return null===(t=l.itemRefCallback)||void 0===t?void 0:t.call(l,e,r,o)})),m=jh(),v=()=>{o||(s.onValueChange(r),s.onOpenChange(!1))};if(""===r)throw new Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return me(HN,{scope:n,value:r,disabled:o,textId:m,isSelected:u,onItemTextChange:Zn((e=>{d((t=>{var n;return t||(null!==(n=null==e?void 0:e.textContent)&&void 0!==n?n:"").trim()}))}),[])},me(v1.ItemSlot,{scope:n,value:r,disabled:o,textValue:c},me(Lt.div,rt({role:"option","aria-labelledby":m,"data-highlighted":f?"":void 0,"aria-selected":u&&f,"data-state":u?"checked":"unchecked","aria-disabled":o||void 0,"data-disabled":o?"":void 0,tabIndex:o?void 0:-1},a,{ref:h,onFocus:Bt(a.onFocus,(()=>p(!0))),onBlur:Bt(a.onBlur,(()=>p(!1))),onPointerUp:Bt(a.onPointerUp,v),onPointerMove:Bt(a.onPointerMove,(e=>{var t;o?null===(t=l.onItemLeave)||void 0===t||t.call(l):e.currentTarget.focus({preventScroll:!0})})),onPointerLeave:Bt(a.onPointerLeave,(e=>{var t;e.currentTarget===document.activeElement&&(null===(t=l.onItemLeave)||void 0===t||t.call(l))})),onKeyDown:Bt(a.onKeyDown,(e=>{var t;""!==(null===(t=l.searchRef)||void 0===t?void 0:t.current)&&" "===e.key||(NN.includes(e.key)&&v()," "===e.key&&e.preventDefault())}))}))))})),Ev="SelectItemText",ZN=gt(((e,t)=>{const{__scopeSelect:n,className:r,style:o,...i}=e,a=rm(Ev,n),s=ap(Ev,n),l=Qb(Ev,n),u=$N(Ev,n),[c,d]=Ot(null),f=Kn(t,(e=>d(e)),l.onItemTextChange,(e=>{var t;return null===(t=s.itemTextRefCallback)||void 0===t?void 0:t.call(s,e,l.value,l.disabled)})),p=null==c?void 0:c.textContent,h=Wh((()=>me("option",{key:l.value,value:l.value,disabled:l.disabled},p)),[l.disabled,l.value,p]),{onNativeOptionAdd:m,onNativeOptionRemove:v}=u;return os((()=>(m(h),()=>v(h))),[m,v,h]),me(o0,null,me(Lt.span,rt({id:l.textId},i,{ref:f})),l.isSelected&&a.valueNode&&!a.valueNodeHasChildren?$f.createPortal(i.children,a.valueNode):null)})),KN="SelectItemIndicator",qN=gt(((e,t)=>{const{__scopeSelect:n,...r}=e;return Qb(KN,n).isSelected?me(Lt.span,rt({"aria-hidden":!0},r,{ref:t})):null})),Ow="SelectScrollUpButton",YN=gt(((e,t)=>{const n=ap(Ow,e.__scopeSelect),r=y1(Ow,e.__scopeSelect),[o,i]=Ot(!1),a=Kn(t,r.onScrollButtonChange);return os((()=>{if(n.viewport&&n.isPositioned){let e=function(){const e=t.scrollTop>0;i(e)};const t=n.viewport;return e(),t.addEventListener("scroll",e),()=>t.removeEventListener("scroll",e)}}),[n.viewport,n.isPositioned]),o?me(Xb,rt({},e,{ref:a,onAutoScroll:()=>{const{viewport:e,selectedItem:t}=n;e&&t&&(e.scrollTop=e.scrollTop-t.offsetHeight)}})):null})),Lw="SelectScrollDownButton",QN=gt(((e,t)=>{const n=ap(Lw,e.__scopeSelect),r=y1(Lw,e.__scopeSelect),[o,i]=Ot(!1),a=Kn(t,r.onScrollButtonChange);return os((()=>{if(n.viewport&&n.isPositioned){let e=function(){const e=t.scrollHeight-t.clientHeight,n=Math.ceil(t.scrollTop)<e;i(n)};const t=n.viewport;return e(),t.addEventListener("scroll",e),()=>t.removeEventListener("scroll",e)}}),[n.viewport,n.isPositioned]),o?me(Xb,rt({},e,{ref:a,onAutoScroll:()=>{const{viewport:e,selectedItem:t}=n;e&&t&&(e.scrollTop=e.scrollTop+t.offsetHeight)}})):null})),Xb=gt(((e,t)=>{const{__scopeSelect:n,onAutoScroll:r,...o}=e,i=ap("SelectScrollButton",n),a=At(null),s=g0(n),l=Zn((()=>{null!==a.current&&(window.clearInterval(a.current),a.current=null)}),[]);return Et((()=>()=>l()),[l]),os((()=>{var e;const t=s().find((e=>e.ref.current===document.activeElement));null==t||null===(e=t.ref.current)||void 0===e||e.scrollIntoView({block:"nearest"})}),[s]),me(Lt.div,rt({"aria-hidden":!0},o,{ref:t,style:{flexShrink:0,...o.style},onPointerDown:Bt(o.onPointerDown,(()=>{null===a.current&&(a.current=window.setInterval(r,50))})),onPointerMove:Bt(o.onPointerMove,(()=>{var e;null===(e=i.onItemLeave)||void 0===e||e.call(i),null===a.current&&(a.current=window.setInterval(r,50))})),onPointerLeave:Bt(o.onPointerLeave,(()=>{l()}))}))})),XN=gt(((e,t)=>{const{__scopeSelect:n,...r}=e;return me(Lt.div,rt({"aria-hidden":!0},r,{ref:t}))}));function JN(e){return""===e||void 0===e}const eR=gt(((e,t)=>{const{value:n,...r}=e,o=At(null),i=Kn(t,o),a=l0(n);return Et((()=>{const e=o.current,t=window.HTMLSelectElement.prototype,r=Object.getOwnPropertyDescriptor(t,"value").set;if(a!==n&&r){const t=new Event("change",{bubbles:!0});r.call(e,n),e.dispatchEvent(t)}}),[a,n]),me(qA,{asChild:!0},me("select",rt({},r,{ref:i,defaultValue:n})))}));function Jb(e){const t=bl(e),n=At(""),r=At(0),o=Zn((e=>{const o=n.current+e;t(o),function e(t){n.current=t,window.clearTimeout(r.current),""!==t&&(r.current=window.setTimeout((()=>e("")),1e3))}(o)}),[t]),i=Zn((()=>{n.current="",window.clearTimeout(r.current)}),[]);return Et((()=>()=>window.clearTimeout(r.current)),[]),[n,o,i]}function eS(e,t,n){const r=t.length>1&&Array.from(t).every((e=>e===t[0]))?t[0]:t,o=n?e.indexOf(n):-1;let i=tR(e,Math.max(o,0));1===r.length&&(i=i.filter((e=>e!==n)));const a=i.find((e=>e.textValue.toLowerCase().startsWith(r.toLowerCase())));return a!==n?a:void 0}function tR(e,t){return e.map(((n,r)=>e[(t+r)%e.length]))}eR.displayName="BubbleSelect";const tS=PN,nR=ON,rR=LN,nS=DN,iR=UN,rS=VN,iS=GN,oR=ZN,sR=qN,oS=YN,sS=QN,aS=XN,aR=M.forwardRef((({className:e,children:t,...n},r)=>D.jsxs(tS,{ref:r,className:ut("flex h-10 w-full items-center justify-between rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus:outline-none focus-visible:ring-1 focus-visible:ring-slate-700 focus-visible:ring-offset-1 disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",e),...n,children:[t,D.jsx(nR,{asChild:!0,children:D.jsx(Ux,{className:"h-4 w-4 opacity-50"})})]})));aR.displayName=tS.displayName;const lS=M.forwardRef((({className:e,...t},n)=>D.jsx(oS,{ref:n,className:ut("flex cursor-default items-center justify-center py-1",e),...t,children:D.jsx(V2,{className:"h-4 w-4"})})));lS.displayName=oS.displayName;const uS=M.forwardRef((({className:e,...t},n)=>D.jsx(sS,{ref:n,className:ut("flex cursor-default items-center justify-center py-1",e),...t,children:D.jsx(Ux,{className:"h-4 w-4"})})));uS.displayName=sS.displayName;const lR=M.forwardRef((({className:e,children:t,position:n="popper",...r},o)=>D.jsx(rR,{children:D.jsxs(nS,{ref:o,className:ut("relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border bg-popover 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","popper"===n&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",e),position:n,...r,children:[D.jsx(lS,{}),D.jsx(iR,{className:ut("p-1","popper"===n&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:t}),D.jsx(uS,{})]})})));lR.displayName=nS.displayName;const uR=M.forwardRef((({className:e,...t},n)=>D.jsx(rS,{ref:n,className:ut("py-1.5 pl-8 pr-2 text-sm font-semibold",e),...t})));uR.displayName=rS.displayName;const cR=M.forwardRef((({className:e,children:t,...n},r)=>D.jsxs(iS,{ref:r,className:ut("relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...n,children:[D.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:D.jsx(sR,{children:D.jsx(jx,{className:"h-4 w-4"})})}),D.jsx(oR,{children:t})]})));cR.displayName=iS.displayName;const fR=M.forwardRef((({className:e,...t},n)=>D.jsx(aS,{ref:n,className:ut("-mx-1 my-1 h-px bg-muted",e),...t})));fR.displayName=aS.displayName;const cS="Switch",[dR,b4]=Tl(cS),[pR,hR]=dR(cS),mR=gt(((e,t)=>{const{__scopeSwitch:n,name:r,checked:o,defaultChecked:i,required:a,disabled:s,value:l="on",onCheckedChange:u,...c}=e,[d,f]=Ot(null),p=Kn(t,(e=>f(e))),h=At(!1),m=!d||!!d.closest("form"),[v=!1,g]=Xh({prop:o,defaultProp:i,onChange:u});return me(pR,{scope:n,checked:v,disabled:s},me(Lt.button,rt({type:"button",role:"switch","aria-checked":v,"aria-required":a,"data-state":fS(v),"data-disabled":s?"":void 0,disabled:s,value:l},c,{ref:p,onClick:Bt(e.onClick,(e=>{g((e=>!e)),m&&(h.current=e.isPropagationStopped(),h.current||e.stopPropagation())}))})),m&&me(yR,{control:d,bubbles:!h.current,name:r,value:l,checked:v,required:a,disabled:s,style:{transform:"translateX(-100%)"}}))})),gR="SwitchThumb",vR=gt(((e,t)=>{const{__scopeSwitch:n,...r}=e,o=hR(gR,n);return me(Lt.span,rt({"data-state":fS(o.checked),"data-disabled":o.disabled?"":void 0},r,{ref:t}))})),yR=e=>{const{control:t,checked:n,bubbles:r=!0,...o}=e,i=At(null),a=l0(n),s=u0(t);return Et((()=>{const e=i.current,t=window.HTMLInputElement.prototype,o=Object.getOwnPropertyDescriptor(t,"checked").set;if(a!==n&&o){const t=new Event("click",{bubbles:r});o.call(e,n),e.dispatchEvent(t)}}),[a,n,r]),me("input",rt({type:"checkbox","aria-hidden":!0,defaultChecked:n},o,{tabIndex:-1,ref:i,style:{...e.style,...s,position:"absolute",pointerEvents:"none",opacity:0,margin:0}}))};function fS(e){return e?"checked":"unchecked"}const dS=mR,_R=vR,wR=M.forwardRef((({className:e,...t},n)=>D.jsx(dS,{className:ut("peer inline-flex h-6 w-11 shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-slate-700 data-[state=unchecked]:bg-input md:h-[18px] md:w-8",e),...t,ref:n,children:D.jsx(_R,{className:ut("pointer-events-none block size-[20px] rounded-full bg-background shadow-lg ring-0 transition-transform data-[state=checked]:translate-x-[20px] data-[state=unchecked]:translate-x-0 md:size-[14px] md:data-[state=checked]:translate-x-[14px]")})})));function xR(e,t){"function"==typeof e?e(t):null!=e&&(e.current=t)}function pS(...e){return t=>e.forEach((e=>xR(e,t)))}function lp(...e){return M.useCallback(pS(...e),e)}wR.displayName=dS.displayName;var Fg=M.forwardRef(((e,t)=>{const{children:n,...r}=e,o=M.Children.toArray(n),i=o.find(SR);if(i){const e=i.props.children,n=o.map((t=>t===i?M.Children.count(e)>1?M.Children.only(null):M.isValidElement(e)?e.props.children:null:t));return D.jsx(L_,{...r,ref:t,children:M.isValidElement(e)?M.cloneElement(e,void 0,n):null})}return D.jsx(L_,{...r,ref:t,children:n})}));Fg.displayName="Slot";var L_=M.forwardRef(((e,t)=>{const{children:n,...r}=e;if(M.isValidElement(n)){const e=CR(n);return M.cloneElement(n,{...ER(r,n.props),ref:t?pS(t,e):e})}return M.Children.count(n)>1?M.Children.only(null):null}));L_.displayName="SlotClone";var bR=({children:e})=>D.jsx(D.Fragment,{children:e});function SR(e){return M.isValidElement(e)&&e.type===bR}function ER(e,t){const n={...t};for(const r in t){const o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...e)=>{i(...e),o(...e)}:o&&(n[r]=o):"style"===r?n[r]={...o,...i}:"className"===r&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}function CR(e){var t,n;let r=null==(t=Object.getOwnPropertyDescriptor(e.props,"ref"))?void 0:t.get,o=r&&"isReactWarning"in r&&r.isReactWarning;return o?e.ref:(r=null==(n=Object.getOwnPropertyDescriptor(e,"ref"))?void 0:n.get,o=r&&"isReactWarning"in r&&r.isReactWarning,o?e.props.ref:e.props.ref||e.ref)}var jg=e=>"checkbox"===e.type,Dh=e=>e instanceof Date,oo=e=>null==e;const hS=e=>"object"==typeof e;var Dr=e=>!oo(e)&&!Array.isArray(e)&&hS(e)&&!Dh(e),mS=e=>Dr(e)&&e.target?jg(e.target)?e.target.checked:e.target.value:e,kR=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,gS=(e,t)=>e.has(kR(t)),TR=e=>{const t=e.constructor&&e.constructor.prototype;return Dr(t)&&t.hasOwnProperty("isPrototypeOf")},_1=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function To(e){let t;const n=Array.isArray(e);if(e instanceof Date)t=new Date(e);else if(e instanceof Set)t=new Set(e);else{if(_1&&(e instanceof Blob||e instanceof FileList)||!n&&!Dr(e))return e;if(t=n?[]:{},n||TR(e))for(const n in e)e.hasOwnProperty(n)&&(t[n]=To(e[n]));else t=e}return t}var Ug=e=>Array.isArray(e)?e.filter(Boolean):[],rr=e=>void 0===e,Ie=(e,t,n)=>{if(!t||!Dr(e))return n;const r=Ug(t.split(/[,[\].]+?/)).reduce(((e,t)=>oo(e)?e:e[t]),e);return rr(r)||r===e?rr(e[t])?n:e[t]:r},Sa=e=>"boolean"==typeof e;const Wv={BLUR:"blur",FOCUS_OUT:"focusout",CHANGE:"change"},Ea={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},Nu={max:"max",min:"min",maxLength:"maxLength",minLength:"minLength",pattern:"pattern",required:"required",validate:"validate"},vS=Pt.createContext(null),v0=()=>Pt.useContext(vS),yS=e=>{const{children:t,...n}=e;return Pt.createElement(vS.Provider,{value:n},t)};var _S=(e,t,n,r=!0)=>{const o={defaultValues:t._defaultValues};for(const i in e)Object.defineProperty(o,i,{get:()=>{const o=i;return t._proxyFormState[o]!==Ea.all&&(t._proxyFormState[o]=!r||Ea.all),n&&(n[o]=!0),e[o]}});return o},Us=e=>Dr(e)&&!Object.keys(e).length,wS=(e,t,n,r)=>{n(e);const{name:o,...i}=e;return Us(i)||Object.keys(i).length>=Object.keys(t).length||Object.keys(i).find((e=>t[e]===(!r||Ea.all)))},Iv=e=>Array.isArray(e)?e:[e],xS=(e,t,n)=>!e||!t||e===t||Iv(e).some((e=>e&&(n?e===t:e.startsWith(t)||t.startsWith(e))));function w1(e){const t=Pt.useRef(e);t.current=e,Pt.useEffect((()=>{const n=!e.disabled&&t.current.subject&&t.current.subject.subscribe({next:t.current.next});return()=>{n&&n.unsubscribe()}}),[e.disabled])}function AR(e){const t=v0(),{control:n=t.control,disabled:r,name:o,exact:i}=e,[a,s]=Pt.useState(n._formState),l=Pt.useRef(!0),u=Pt.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1}),c=Pt.useRef(o);return c.current=o,w1({disabled:r,next:e=>l.current&&xS(c.current,e.name,i)&&wS(e,u.current,n._updateFormState)&&s({...n._formState,...e}),subject:n._subjects.state}),Pt.useEffect((()=>(l.current=!0,u.current.isValid&&n._updateValid(!0),()=>{l.current=!1})),[n]),_S(a,n,u.current,!1)}var wl=e=>"string"==typeof e,bS=(e,t,n,r,o)=>wl(e)?(r&&t.watch.add(e),Ie(n,e,o)):Array.isArray(e)?e.map((e=>(r&&t.watch.add(e),Ie(n,e)))):(r&&(t.watchAll=!0),n);function NR(e){const t=v0(),{control:n=t.control,name:r,defaultValue:o,disabled:i,exact:a}=e,s=Pt.useRef(r);s.current=r,w1({disabled:i,subject:n._subjects.values,next:e=>{xS(s.current,e.name,a)&&u(To(bS(s.current,n._names,e.values||n._formValues,!1,o)))}});const[l,u]=Pt.useState(n._getWatch(r,o));return Pt.useEffect((()=>n._removeUnmounted())),l}var x1=e=>/^\w*$/.test(e),SS=e=>Ug(e.replace(/["|']|\]/g,"").split(/\.|\[/)),cn=(e,t,n)=>{let r=-1;const o=x1(t)?[t]:SS(t),i=o.length,a=i-1;for(;++r<i;){const t=o[r];let i=n;if(r!==a){const n=e[t];i=Dr(n)||Array.isArray(n)?n:isNaN(+o[r+1])?{}:[]}e[t]=i,e=e[t]}return e};function RR(e){const t=v0(),{name:n,disabled:r,control:o=t.control,shouldUnregister:i}=e,a=gS(o._names.array,n),s=NR({control:o,name:n,defaultValue:Ie(o._formValues,n,Ie(o._defaultValues,n,e.defaultValue)),exact:!0}),l=AR({control:o,name:n}),u=Pt.useRef(o.register(n,{...e.rules,value:s,...Sa(e.disabled)?{disabled:e.disabled}:{}}));return Pt.useEffect((()=>{const e=o._options.shouldUnregister||i,t=(e,t)=>{const n=Ie(o._fields,e);n&&(n._f.mount=t)};if(t(n,!0),e){const e=To(Ie(o._options.defaultValues,n));cn(o._defaultValues,n,e),rr(Ie(o._formValues,n))&&cn(o._formValues,n,e)}return()=>{(a?e&&!o._state.action:e)?o.unregister(n):t(n,!1)}}),[n,o,a,i]),Pt.useEffect((()=>{Ie(o._fields,n)&&o._updateDisabledField({disabled:r,fields:o._fields,name:n,value:Ie(o._fields,n)._f.value})}),[r,n,o]),{field:{name:n,value:s,...Sa(r)||l.disabled?{disabled:l.disabled||r}:{},onChange:Pt.useCallback((e=>u.current.onChange({target:{value:mS(e),name:n},type:Wv.CHANGE})),[n]),onBlur:Pt.useCallback((()=>u.current.onBlur({target:{value:Ie(o._formValues,n),name:n},type:Wv.BLUR})),[n,o]),ref:e=>{const t=Ie(o._fields,n);t&&e&&(t._f.ref={focus:()=>e.focus(),select:()=>e.select(),setCustomValidity:t=>e.setCustomValidity(t),reportValidity:()=>e.reportValidity()})}},formState:l,fieldState:Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!Ie(l.errors,n)},isDirty:{enumerable:!0,get:()=>!!Ie(l.dirtyFields,n)},isTouched:{enumerable:!0,get:()=>!!Ie(l.touchedFields,n)},isValidating:{enumerable:!0,get:()=>!!Ie(l.validatingFields,n)},error:{enumerable:!0,get:()=>Ie(l.errors,n)}})}}const $R=e=>e.render(RR(e));var ES=(e,t,n,r,o)=>t?{...n[e],types:{...n[e]&&n[e].types?n[e].types:{},[r]:o||!0}}:{},Dw=e=>({isOnSubmit:!e||e===Ea.onSubmit,isOnBlur:e===Ea.onBlur,isOnChange:e===Ea.onChange,isOnAll:e===Ea.all,isOnTouch:e===Ea.onTouched}),Mw=(e,t,n)=>!n&&(t.watchAll||t.watch.has(e)||[...t.watch].some((t=>e.startsWith(t)&&/^\.\w+/.test(e.slice(t.length)))));const mg=(e,t,n,r)=>{for(const o of n||Object.keys(e)){const n=Ie(e,o);if(n){const{_f:e,...i}=n;if(e){if(e.refs&&e.refs[0]&&t(e.refs[0],o)&&!r)break;if(e.ref&&t(e.ref,e.name)&&!r)break;mg(i,t)}else Dr(i)&&mg(i,t)}}};var IR=(e,t,n)=>{const r=Ug(Ie(e,n));return cn(r,"root",t[n]),cn(e,n,r),e},b1=e=>"file"===e.type,yf=e=>"function"==typeof e,Vv=e=>{if(!_1)return!1;const t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},Pv=e=>wl(e),S1=e=>"radio"===e.type,Hv=e=>e instanceof RegExp;const Fw={value:!1,isValid:!1},jw={value:!0,isValid:!0};var CS=e=>{if(Array.isArray(e)){if(e.length>1){const t=e.filter((e=>e&&e.checked&&!e.disabled)).map((e=>e.value));return{value:t,isValid:!!t.length}}return e[0].checked&&!e[0].disabled?e[0].attributes&&!rr(e[0].attributes.value)?rr(e[0].value)||""===e[0].value?jw:{value:e[0].value,isValid:!0}:jw:Fw}return Fw};const Uw={isValid:!1,value:null};var kS=e=>Array.isArray(e)?e.reduce(((e,t)=>t&&t.checked&&!t.disabled?{isValid:!0,value:t.value}:e),Uw):Uw;function Bw(e,t,n="validate"){if(Pv(e)||Array.isArray(e)&&e.every(Pv)||Sa(e)&&!e)return{type:n,message:Pv(e)?e:"",ref:t}}var Ah=e=>Dr(e)&&!Hv(e)?e:{value:e,message:""},zw=async(e,t,n,r,o)=>{const{ref:i,refs:a,required:s,maxLength:l,minLength:u,min:c,max:d,pattern:f,validate:p,name:h,valueAsNumber:m,mount:v,disabled:g}=e._f,y=Ie(t,h);if(!v||g)return{};const b=a?a[0]:i,_=e=>{r&&b.reportValidity&&(b.setCustomValidity(Sa(e)?"":e||""),b.reportValidity())},w={},x=S1(i),k=jg(i),E=x||k,S=(m||b1(i))&&rr(i.value)&&rr(y)||Vv(i)&&""===i.value||""===y||Array.isArray(y)&&!y.length,C=ES.bind(null,h,n,w),N=(e,t,n,r=Nu.maxLength,o=Nu.minLength)=>{const a=e?t:n;w[h]={type:e?r:o,message:a,ref:i,...C(e?r:o,a)}};if(o?!Array.isArray(y)||!y.length:s&&(!E&&(S||oo(y))||Sa(y)&&!y||k&&!CS(a).isValid||x&&!kS(a).isValid)){const{value:e,message:t}=Pv(s)?{value:!!s,message:s}:Ah(s);if(e&&(w[h]={type:Nu.required,message:t,ref:b,...C(Nu.required,t)},!n))return _(t),w}if(!(S||oo(c)&&oo(d))){let e,t;const r=Ah(d),o=Ah(c);if(oo(y)||isNaN(y)){const n=i.valueAsDate||new Date(y),a=e=>new Date((new Date).toDateString()+" "+e),s="time"==i.type,l="week"==i.type;wl(r.value)&&y&&(e=s?a(y)>a(r.value):l?y>r.value:n>new Date(r.value)),wl(o.value)&&y&&(t=s?a(y)<a(o.value):l?y<o.value:n<new Date(o.value))}else{const n=i.valueAsNumber||y&&+y;oo(r.value)||(e=n>r.value),oo(o.value)||(t=n<o.value)}if((e||t)&&(N(!!e,r.message,o.message,Nu.max,Nu.min),!n))return _(w[h].message),w}if((l||u)&&!S&&(wl(y)||o&&Array.isArray(y))){const e=Ah(l),t=Ah(u),r=!oo(e.value)&&y.length>+e.value,o=!oo(t.value)&&y.length<+t.value;if((r||o)&&(N(r,e.message,t.message),!n))return _(w[h].message),w}if(f&&!S&&wl(y)){const{value:e,message:t}=Ah(f);if(Hv(e)&&!y.match(e)&&(w[h]={type:Nu.pattern,message:t,ref:i,...C(Nu.pattern,t)},!n))return _(t),w}if(p)if(yf(p)){const e=Bw(await p(y,t),b);if(e&&(w[h]={...e,...C(Nu.validate,e.message)},!n))return _(e.message),w}else if(Dr(p)){let e={};for(const r in p){if(!Us(e)&&!n)break;const o=Bw(await p[r](y,t),b,r);o&&(e={...o,...C(r,o.message)},_(o.message),n&&(w[h]=e))}if(!Us(e)&&(w[h]={ref:b,...e},!n))return w}return _(!0),w};function PR(e,t){const n=t.slice(0,-1).length;let r=0;for(;r<n;)e=rr(e)?r++:e[t[r++]];return e}function OR(e){for(const t in e)if(e.hasOwnProperty(t)&&!rr(e[t]))return!1;return!0}function ii(e,t){const n=Array.isArray(t)?t:x1(t)?[t]:SS(t),r=1===n.length?e:PR(e,n),o=n.length-1,i=n[o];return r&&delete r[i],0!==o&&(Dr(r)&&Us(r)||Array.isArray(r)&&OR(r))&&ii(e,n.slice(0,-1)),e}var p_=()=>{let e=[];return{get observers(){return e},next:t=>{for(const n of e)n.next&&n.next(t)},subscribe:t=>(e.push(t),{unsubscribe:()=>{e=e.filter((e=>e!==t))}}),unsubscribe:()=>{e=[]}}},Gv=e=>oo(e)||!hS(e);function Zd(e,t){if(Gv(e)||Gv(t))return e===t;if(Dh(e)&&Dh(t))return e.getTime()===t.getTime();const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(const o of n){const n=e[o];if(!r.includes(o))return!1;if("ref"!==o){const e=t[o];if(Dh(n)&&Dh(e)||Dr(n)&&Dr(e)||Array.isArray(n)&&Array.isArray(e)?!Zd(n,e):n!==e)return!1}}return!0}var TS=e=>"select-multiple"===e.type,LR=e=>S1(e)||jg(e),h_=e=>Vv(e)&&e.isConnected,DR=e=>Dr(e)&&Object.values(e).some((e=>e)),AS=e=>{for(const t in e)if(yf(e[t]))return!0;return!1};function Zv(e,t={}){const n=Array.isArray(e);if(Dr(e)||n)for(const n in e)Array.isArray(e[n])||Dr(e[n])&&!AS(e[n])?(t[n]=Array.isArray(e[n])?[]:{},Zv(e[n],t[n])):oo(e[n])||(t[n]=!0);return t}function NS(e,t,n){const r=Array.isArray(e);if(Dr(e)||r)for(const r in e)Array.isArray(e[r])||Dr(e[r])&&!AS(e[r])?rr(t)||Gv(n[r])?n[r]=Array.isArray(e[r])?Zv(e[r],[]):{...Zv(e[r])}:NS(e[r],oo(t)?{}:t[r],n[r]):n[r]=!Zd(e[r],t[r]);return n}var Cv=(e,t)=>NS(e,t,Zv(t)),RS=(e,{valueAsNumber:t,valueAsDate:n,setValueAs:r})=>rr(e)?e:t?""===e?NaN:e&&+e:n&&wl(e)?new Date(e):r?r(e):e;function m_(e){const t=e.ref;if(!(e.refs?e.refs.every((e=>e.disabled)):t.disabled))return b1(t)?t.files:S1(t)?kS(e.refs).value:TS(t)?[...t.selectedOptions].map((({value:e})=>e)):jg(t)?CS(e.refs).value:RS(rr(t.value)?e.ref.value:t.value,e)}var MR=(e,t,n,r)=>{const o={};for(const n of e){const e=Ie(t,n);e&&cn(o,n,e._f)}return{criteriaMode:n,names:[...e],fields:o,shouldUseNativeValidation:r}},eg=e=>rr(e)?e:Hv(e)?e.source:Dr(e)?Hv(e.value)?e.value.source:e.value:e,FR=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate);function Ww(e,t,n){const r=Ie(e,n);if(r||x1(n))return{error:r,name:n};const o=n.split(".");for(;o.length;){const r=o.join("."),i=Ie(t,r),a=Ie(e,r);if(i&&!Array.isArray(i)&&n!==r)return{name:n};if(a&&a.type)return{name:r,error:a};o.pop()}return{name:n}}var jR=(e,t,n,r,o)=>!o.isOnAll&&(!n&&o.isOnTouch?!(t||e):(n?r.isOnBlur:o.isOnBlur)?!e:!(n?r.isOnChange:o.isOnChange)||e),UR=(e,t)=>!Ug(Ie(e,t)).length&&ii(e,t);const BR={mode:Ea.onSubmit,reValidateMode:Ea.onChange,shouldFocusError:!0};function zR(e={}){let t,n={...BR,...e},r={submitCount:0,isDirty:!1,isLoading:yf(n.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},validatingFields:{},errors:n.errors||{},disabled:n.disabled||!1},o={},i=(Dr(n.defaultValues)||Dr(n.values))&&To(n.defaultValues||n.values)||{},a=n.shouldUnregister?{}:To(i),s={action:!1,mount:!1,watch:!1},l={mount:new Set,unMount:new Set,array:new Set,watch:new Set},u=0;const c={isDirty:!1,dirtyFields:!1,validatingFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},d={values:p_(),array:p_(),state:p_()},f=Dw(n.mode),p=Dw(n.reValidateMode),h=n.criteriaMode===Ea.all,m=async e=>{if(c.isValid||e){const e=n.resolver?Us((await _()).errors):await w(o,!0);e!==r.isValid&&d.state.next({isValid:e})}},v=(e,t)=>{(c.isValidating||c.validatingFields)&&(t.forEach((t=>{cn(r.validatingFields,t,e)})),r.isValidating=DR(r.validatingFields),d.state.next({validatingFields:r.validatingFields,isValidating:r.isValidating}))},g=(e,t,n,r)=>{const l=Ie(o,e);if(l){const o=Ie(a,e,rr(n)?Ie(i,e):n);rr(o)||r&&r.defaultChecked||t?cn(a,e,t?o:m_(l._f)):E(e,o),s.mount&&m()}},y=(e,t,n,a,s)=>{let l=!1,u=!1;const f={name:e},p=!(!Ie(o,e)||!Ie(o,e)._f.disabled);if(!n||a){c.isDirty&&(u=r.isDirty,r.isDirty=f.isDirty=x(),l=u!==f.isDirty);const n=p||Zd(Ie(i,e),t);u=!(p||!Ie(r.dirtyFields,e)),n||p?ii(r.dirtyFields,e):cn(r.dirtyFields,e,!0),f.dirtyFields=r.dirtyFields,l=l||c.dirtyFields&&u!==!n}if(n){const t=Ie(r.touchedFields,e);t||(cn(r.touchedFields,e,n),f.touchedFields=r.touchedFields,l=l||c.touchedFields&&t!==n)}return l&&s&&d.state.next(f),l?f:{}},b=(n,o,i,a)=>{const s=Ie(r.errors,n),l=c.isValid&&Sa(o)&&r.isValid!==o;if(e.delayError&&i?(t=(e=>t=>{clearTimeout(u),u=setTimeout(e,t)})((()=>((e,t)=>{cn(r.errors,e,t),d.state.next({errors:r.errors})})(n,i))),t(e.delayError)):(clearTimeout(u),t=null,i?cn(r.errors,n,i):ii(r.errors,n)),(i?!Zd(s,i):s)||!Us(a)||l){const e={...a,...l&&Sa(o)?{isValid:o}:{},errors:r.errors,name:n};r={...r,...e},d.state.next(e)}v(!1,Object.keys(r.validatingFields).filter((e=>e===n)))},_=async e=>n.resolver(a,n.context,MR(e||l.mount,o,n.criteriaMode,n.shouldUseNativeValidation)),w=async(e,t,o={valid:!0})=>{for(const i in e){const s=e[i];if(s){const{_f:e,...i}=s;if(e){const i=l.array.has(e.name),u=await zw(s,a,h,n.shouldUseNativeValidation&&!t,i);if(u[e.name]&&(o.valid=!1,t))break;!t&&(Ie(u,e.name)?i?IR(r.errors,u,e.name):cn(r.errors,e.name,u[e.name]):ii(r.errors,e.name))}i&&await w(i,t,o)}}return o.valid},x=(e,t)=>(e&&t&&cn(a,e,t),!Zd(T(),i)),k=(e,t,n)=>bS(e,l,{...s.mount?a:rr(t)?i:wl(e)?{[e]:t}:t},n,t),E=(e,t,n={})=>{const r=Ie(o,e);let i=t;if(r){const n=r._f;n&&(!n.disabled&&cn(a,e,RS(t,n)),i=Vv(n.ref)&&oo(t)?"":t,TS(n.ref)?[...n.ref.options].forEach((e=>e.selected=i.includes(e.value))):n.refs?jg(n.ref)?n.refs.length>1?n.refs.forEach((e=>(!e.defaultChecked||!e.disabled)&&(e.checked=Array.isArray(i)?!!i.find((t=>t===e.value)):i===e.value))):n.refs[0]&&(n.refs[0].checked=!!i):n.refs.forEach((e=>e.checked=e.value===i)):b1(n.ref)?n.ref.value="":(n.ref.value=i,n.ref.type||d.values.next({name:e,values:{...a}})))}(n.shouldDirty||n.shouldTouch)&&y(e,i,n.shouldTouch,n.shouldDirty,!0),n.shouldValidate&&A(e)},S=(e,t,n)=>{for(const r in t){const i=t[r],a=`${e}.${r}`,s=Ie(o,a);!l.array.has(e)&&Gv(i)&&(!s||s._f)||Dh(i)?E(a,i,n):S(a,i,n)}},C=(e,t,n={})=>{const u=Ie(o,e),f=l.array.has(e),p=To(t);cn(a,e,p),f?(d.array.next({name:e,values:{...a}}),(c.isDirty||c.dirtyFields)&&n.shouldDirty&&d.state.next({name:e,dirtyFields:Cv(i,a),isDirty:x(e,p)})):!u||u._f||oo(p)?E(e,p,n):S(e,p,n),Mw(e,l)&&d.state.next({...r}),d.values.next({name:s.mount?e:void 0,values:{...a}})},N=async e=>{const i=e.target;let s=i.name,u=!0;const g=Ie(o,s),x=e=>{u=Number.isNaN(e)||e===Ie(a,s,e)};if(g){let k,E;const S=i.type?m_(g._f):mS(e),C=e.type===Wv.BLUR||e.type===Wv.FOCUS_OUT,N=!FR(g._f)&&!n.resolver&&!Ie(r.errors,s)&&!g._f.deps||jR(C,Ie(r.touchedFields,s),r.isSubmitted,p,f),I=Mw(s,l,C);cn(a,s,S),C?(g._f.onBlur&&g._f.onBlur(e),t&&t(0)):g._f.onChange&&g._f.onChange(e);const T=y(s,S,C,!1),O=!Us(T)||I;if(!C&&d.values.next({name:s,type:e.type,values:{...a}}),N)return c.isValid&&m(),O&&d.state.next({name:s,...I?{}:T});if(!C&&I&&d.state.next({...r}),v(!0,[s]),n.resolver){const{errors:e}=await _([s]);if(x(S),u){const t=Ww(r.errors,o,s),n=Ww(e,o,t.name||s);k=n.error,s=n.name,E=Us(e)}}else k=(await zw(g,a,h,n.shouldUseNativeValidation))[s],x(S),u&&(k?E=!1:c.isValid&&(E=await w(o,!0)));u&&(g._f.deps&&A(g._f.deps),b(s,E,k,T))}},I=(e,t)=>{if(Ie(r.errors,t)&&e.focus)return e.focus(),1},A=async(e,t={})=>{let i,a;const s=Iv(e);if(v(!0,s),n.resolver){const t=await(async e=>{const{errors:t}=await _(e);if(e)for(const n of e){const e=Ie(t,n);e?cn(r.errors,n,e):ii(r.errors,n)}else r.errors=t;return t})(rr(e)?e:s);i=Us(t),a=e?!s.some((e=>Ie(t,e))):i}else e?(a=(await Promise.all(s.map((async e=>{const t=Ie(o,e);return await w(t&&t._f?{[e]:t}:t)})))).every(Boolean),(a||r.isValid)&&m()):a=i=await w(o);return d.state.next({...!wl(e)||c.isValid&&i!==r.isValid?{}:{name:e},...n.resolver||!e?{isValid:i}:{},errors:r.errors,isValidating:!1}),t.shouldFocus&&!a&&mg(o,I,e?s:l.mount),a},T=e=>{const t={...i,...s.mount?a:{}};return rr(e)?t:wl(e)?Ie(t,e):e.map((e=>Ie(t,e)))},O=(e,t)=>({invalid:!!Ie((t||r).errors,e),isDirty:!!Ie((t||r).dirtyFields,e),isTouched:!!Ie((t||r).touchedFields,e),isValidating:!!Ie((t||r).validatingFields,e),error:Ie((t||r).errors,e)}),D=(e,t,n)=>{const i=(Ie(o,e,{_f:{}})._f||{}).ref;cn(r.errors,e,{...t,ref:i}),d.state.next({name:e,errors:r.errors,isValid:!1}),n&&n.shouldFocus&&i&&i.focus&&i.focus()},P=(e,t={})=>{for(const s of e?Iv(e):l.mount)l.mount.delete(s),l.array.delete(s),t.keepValue||(ii(o,s),ii(a,s)),!t.keepError&&ii(r.errors,s),!t.keepDirty&&ii(r.dirtyFields,s),!t.keepTouched&&ii(r.touchedFields,s),!t.keepIsValidating&&ii(r.validatingFields,s),!n.shouldUnregister&&!t.keepDefaultValue&&ii(i,s);d.values.next({values:{...a}}),d.state.next({...r,...t.keepDirty?{isDirty:x()}:{}}),!t.keepIsValid&&m()},R=({disabled:e,name:t,field:n,fields:r,value:o})=>{if(Sa(e)){const i=e?void 0:rr(o)?m_(n?n._f:Ie(r,t)._f):o;cn(a,t,i),y(t,i,!1,!1,!0)}},M=(e,t={})=>{let r=Ie(o,e);const a=Sa(t.disabled);return cn(o,e,{...r||{},_f:{...r&&r._f?r._f:{ref:{name:e}},name:e,mount:!0,...t}}),l.mount.add(e),r?R({field:r,disabled:t.disabled,name:e,value:t.value}):g(e,!0,t.value),{...a?{disabled:t.disabled}:{},...n.progressive?{required:!!t.required,min:eg(t.min),max:eg(t.max),minLength:eg(t.minLength),maxLength:eg(t.maxLength),pattern:eg(t.pattern)}:{},name:e,onChange:N,onBlur:N,ref:a=>{if(a){M(e,t),r=Ie(o,e);const n=rr(a.value)&&a.querySelectorAll&&a.querySelectorAll("input,select,textarea")[0]||a,s=LR(n),l=r._f.refs||[];if(s?l.find((e=>e===n)):n===r._f.ref)return;cn(o,e,{_f:{...r._f,...s?{refs:[...l.filter(h_),n,...Array.isArray(Ie(i,e))?[{}]:[]],ref:{type:n.type,name:e}}:{ref:n}}}),g(e,!1,void 0,n)}else r=Ie(o,e,{}),r._f&&(r._f.mount=!1),(n.shouldUnregister||t.shouldUnregister)&&(!gS(l.array,e)||!s.action)&&l.unMount.add(e)}}},j=()=>n.shouldFocusError&&mg(o,I,l.mount),L=(e,t)=>async i=>{let s;i&&(i.preventDefault&&i.preventDefault(),i.persist&&i.persist());let l=To(a);if(d.state.next({isSubmitting:!0}),n.resolver){const{errors:e,values:t}=await _();r.errors=e,l=t}else await w(o);if(ii(r.errors,"root"),Us(r.errors)){d.state.next({errors:{}});try{await e(l,i)}catch(e){s=e}}else t&&await t({...r.errors},i),j(),setTimeout(j);if(d.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:Us(r.errors)&&!s,submitCount:r.submitCount+1,errors:r.errors}),s)throw s},U=(t,n={})=>{const u=t?To(t):i,f=To(u),p=Us(t),h=p?i:f;if(n.keepDefaultValues||(i=u),!n.keepValues){if(n.keepDirtyValues)for(const e of l.mount)Ie(r.dirtyFields,e)?cn(h,e,Ie(a,e)):C(e,Ie(h,e));else{if(_1&&rr(t))for(const e of l.mount){const t=Ie(o,e);if(t&&t._f){const e=Array.isArray(t._f.refs)?t._f.refs[0]:t._f.ref;if(Vv(e)){const t=e.closest("form");if(t){t.reset();break}}}}o={}}a=e.shouldUnregister?n.keepDefaultValues?To(i):{}:To(h),d.array.next({values:{...h}}),d.values.next({values:{...h}})}l={mount:n.keepDirtyValues?l.mount:new Set,unMount:new Set,array:new Set,watch:new Set,watchAll:!1,focus:""},s.mount=!c.isValid||!!n.keepIsValid||!!n.keepDirtyValues,s.watch=!!e.shouldUnregister,d.state.next({submitCount:n.keepSubmitCount?r.submitCount:0,isDirty:!p&&(n.keepDirty?r.isDirty:!(!n.keepDefaultValues||Zd(t,i))),isSubmitted:!!n.keepIsSubmitted&&r.isSubmitted,dirtyFields:p?[]:n.keepDirtyValues?n.keepDefaultValues&&a?Cv(i,a):r.dirtyFields:n.keepDefaultValues&&t?Cv(i,t):{},touchedFields:n.keepTouched?r.touchedFields:{},errors:n.keepErrors?r.errors:{},isSubmitSuccessful:!!n.keepIsSubmitSuccessful&&r.isSubmitSuccessful,isSubmitting:!1})},F=(e,t)=>U(yf(e)?e(a):e,t);return{control:{register:M,unregister:P,getFieldState:O,handleSubmit:L,setError:D,_executeSchema:_,_getWatch:k,_getDirty:x,_updateValid:m,_removeUnmounted:()=>{for(const e of l.unMount){const t=Ie(o,e);t&&(t._f.refs?t._f.refs.every((e=>!h_(e))):!h_(t._f.ref))&&P(e)}l.unMount=new Set},_updateFieldArray:(e,t=[],n,l,u=!0,f=!0)=>{if(l&&n){if(s.action=!0,f&&Array.isArray(Ie(o,e))){const t=n(Ie(o,e),l.argA,l.argB);u&&cn(o,e,t)}if(f&&Array.isArray(Ie(r.errors,e))){const t=n(Ie(r.errors,e),l.argA,l.argB);u&&cn(r.errors,e,t),UR(r.errors,e)}if(c.touchedFields&&f&&Array.isArray(Ie(r.touchedFields,e))){const t=n(Ie(r.touchedFields,e),l.argA,l.argB);u&&cn(r.touchedFields,e,t)}c.dirtyFields&&(r.dirtyFields=Cv(i,a)),d.state.next({name:e,isDirty:x(e,t),dirtyFields:r.dirtyFields,errors:r.errors,isValid:r.isValid})}else cn(a,e,t)},_updateDisabledField:R,_getFieldArray:t=>Ug(Ie(s.mount?a:i,t,e.shouldUnregister?Ie(i,t,[]):[])),_reset:U,_resetDefaultValues:()=>yf(n.defaultValues)&&n.defaultValues().then((e=>{F(e,n.resetOptions),d.state.next({isLoading:!1})})),_updateFormState:e=>{r={...r,...e}},_disableForm:e=>{Sa(e)&&(d.state.next({disabled:e}),mg(o,((t,n)=>{let r=e;const i=Ie(o,n);i&&Sa(i._f.disabled)&&(r||(r=i._f.disabled)),t.disabled=r}),0,!1))},_subjects:d,_proxyFormState:c,_setErrors:e=>{r.errors=e,d.state.next({errors:r.errors,isValid:!1})},get _fields(){return o},get _formValues(){return a},get _state(){return s},set _state(e){s=e},get _defaultValues(){return i},get _names(){return l},set _names(e){l=e},get _formState(){return r},set _formState(e){r=e},get _options(){return n},set _options(e){n={...n,...e}}},trigger:A,register:M,handleSubmit:L,watch:(e,t)=>yf(e)?d.values.subscribe({next:n=>e(k(void 0,t),n)}):k(e,t,!0),setValue:C,getValues:T,reset:F,resetField:(e,t={})=>{Ie(o,e)&&(rr(t.defaultValue)?C(e,To(Ie(i,e))):(C(e,t.defaultValue),cn(i,e,To(t.defaultValue))),t.keepTouched||ii(r.touchedFields,e),t.keepDirty||(ii(r.dirtyFields,e),r.isDirty=t.defaultValue?x(e,To(Ie(i,e))):x()),t.keepError||(ii(r.errors,e),c.isValid&&m()),d.state.next({...r}))},clearErrors:e=>{e&&Iv(e).forEach((e=>ii(r.errors,e))),d.state.next({errors:e?r.errors:{}})},unregister:P,setError:D,setFocus:(e,t={})=>{const n=Ie(o,e),r=n&&n._f;if(r){const e=r.refs?r.refs[0]:r.ref;e.focus&&(e.focus(),t.shouldSelect&&e.select())}},getFieldState:O}}function E1(e={}){const t=Pt.useRef(),n=Pt.useRef(),[r,o]=Pt.useState({isDirty:!1,isValidating:!1,isLoading:yf(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},validatingFields:{},errors:e.errors||{},disabled:e.disabled||!1,defaultValues:yf(e.defaultValues)?void 0:e.defaultValues});t.current||(t.current={...zR(e),formState:r});const i=t.current.control;return i._options=e,w1({subject:i._subjects.state,next:e=>{wS(e,i._proxyFormState,i._updateFormState,!0)&&o({...i._formState})}}),Pt.useEffect((()=>i._disableForm(e.disabled)),[i,e.disabled]),Pt.useEffect((()=>{if(i._proxyFormState.isDirty){const e=i._getDirty();e!==r.isDirty&&i._subjects.state.next({isDirty:e})}}),[i,r.isDirty]),Pt.useEffect((()=>{e.values&&!Zd(e.values,n.current)?(i._reset(e.values,i._options.resetOptions),n.current=e.values,o((e=>({...e})))):i._resetDefaultValues()}),[e.values,i]),Pt.useEffect((()=>{e.errors&&i._setErrors(e.errors)}),[e.errors,i]),Pt.useEffect((()=>{i._state.mount||(i._updateValid(),i._state.mount=!0),i._state.watch&&(i._state.watch=!1,i._subjects.state.next({...i._formState})),i._removeUnmounted()})),Pt.useEffect((()=>{e.shouldUnregister&&i._subjects.values.next({values:i._getWatch()})}),[e.shouldUnregister,i]),t.current.formState=_S(r,i),t.current}const WR="data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%200%2014%2014'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='NEW%20p-custom%20icons'%3e%3ccircle%20id='Ellipse%2027'%20cx='7'%20cy='7'%20r='5'%20fill='%23BD3131'%20stroke='%23BD3131'%20stroke-width='1.3'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20id='Vector%2071'%20d='M5.19922%205.2002L8.73475%208.73573'%20stroke='white'%20stroke-width='1.3'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20id='Vector%2072'%20d='M8.80078%205.2002L5.26525%208.73573'%20stroke='white'%20stroke-width='1.3'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/g%3e%3c/svg%3e",$S=yS,IS=M.createContext({}),PS=({...e})=>D.jsx(IS.Provider,{value:{name:e.name},children:D.jsx($R,{...e})}),Bg=()=>{const e=M.useContext(IS),t=M.useContext(OS),{getFieldState:n,formState:r}=v0(),o=n(e.name,r);if(!e)throw new Error("useFormField should be used within <FormField>");const{id:i}=t;return{id:i,name:e.name,formItemId:`${i}-form-item`,formDescriptionId:`${i}-form-item-description`,formMessageId:`${i}-form-item-message`,...o}},OS=M.createContext({}),LS=M.forwardRef((({className:e,...t},n)=>{const r=M.useId();return D.jsx(OS.Provider,{value:{id:r},children:D.jsx("div",{ref:n,className:ut("mt-[8px]",e),...t})})}));LS.displayName="FormItem";const DS=M.forwardRef((({className:e,isRequired:t,...n},r)=>{var o;const{formItemId:i}=Bg();return D.jsx(pb,{ref:r,className:ut("mb-2 text-sm font-medium",e),htmlFor:i,...n,children:t?`*${null==(o=n.children)?void 0:o.toString()}`:n.children})}));DS.displayName="FormLabel";const MS=M.forwardRef((({...e},t)=>{const{error:n,formItemId:r,formDescriptionId:o,formMessageId:i}=Bg();return D.jsx(Fg,{ref:t,id:r,"aria-describedby":n?`${o} ${i}`:`${o}`,"aria-invalid":!!n,...e})}));MS.displayName="FormControl";const VR=M.forwardRef((({className:e,...t},n)=>{const{formDescriptionId:r}=Bg();return D.jsx("p",{ref:n,id:r,className:ut("text-sm text-muted-foreground",e),...t})}));VR.displayName="FormDescription";const FS=M.forwardRef((({className:e,children:t,...n},r)=>{const{error:o,formMessageId:i}=Bg(),a=o?String(null==o?void 0:o.message):t;return a?D.jsxs("p",{ref:r,id:i,className:ut("flex items-center gap-[2px] pt-2 text-sm font-medium text-destructive",e),...n,children:[D.jsx("img",{src:WR,width:16,height:16,alt:"delete"})," ",a]}):null}));FS.displayName="FormMessage";const y0=M.forwardRef((({className:e,type:t,...n},r)=>{const{error:o}=Bg();return D.jsx("input",{type:t,className:ut(`flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-slate-700 focus-visible:ring-offset-1 disabled:cursor-not-allowed disabled:opacity-50 ${!!o&&"border-red-dark focus-visible:border-input focus-visible:ring-red-dark"}`,e),ref:r,...n})}));y0.displayName="Input";const Ui={followAutoAccept:"user.follow.autoAccept",notificationsPrefsFollow:"user.notifications.prefs.follow",notificationsPrefsFollow_request:"user.notifications.prefs.follow_request",notificationsPrefsLike:"user.notifications.prefs.like",notificationsPrefsComment:"user.notifications.prefs.comment",notificationsPrefsMention:"user.notifications.prefs.mention",notificationsPrefsRepost:"user.notifications.prefs.repost",notificationsPrefsList_post_create:"user.notifications.prefs.list_post_create",notificationsPrefsPost_update:"user.notifications.prefs.post_update",notificationsPrefsSubscribeOnComment:"user.notifications.prefs.subscribeOnComment",notificationsPrefsAlwaysSendEmail:"user.notifications.prefs.alwaysSendEmail",notificationsShowPopup:"user.notifications.showPopup",notificationsPolicyBlockNonFollowers:"user.notifications.policy.blockNonFollowers",notificationsPolicyBlockNonFollowing:"user.notifications.policy.blockNonFollowing",notificationsPolicyBlockNonFollowingMessages:"user.notifications.policy.blockNonFollowingMessages",notificationsPolicyBlockNewAccounts:"user.notifications.policy.blockNewAccounts",privacyShowPublicPosts:"user.privacy.showPublicPosts",privacyShowProfilePage:"user.privacy.showProfilePage",privacyShowFollowers:"user.privacy.showFollowers"},HR=qd.enhanceEndpoints({endpoints:{getApiV1SettingsByNamespace:{},putApiV1SettingsByNamespace:{async onQueryStarted(e,{dispatch:t,queryFulfilled:n,getState:r}){const o=qd.util.selectCachedArgsForQuery(r(),"getApiV1SettingsByNamespace").find((t=>t.namespace===e.namespace)),i=t(qd.util.updateQueryData("getApiV1SettingsByNamespace",o||{namespace:""},(t=>{Object.assign(t,Fh.merge(t,e.jsonNode))})));try{await n,Cn.success("Updated")}catch{i.undo()}}}}}),{useGetApiV1SettingsByNamespaceQuery:GR,usePutApiV1SettingsByNamespaceMutation:S4}=HR,ZR=()=>{const e=Un(Xd.selectors.selectPending),t=Un(wf.selectors.selectPending),n=Un(wf.selectors.selectIsAuthenticated),r=Un(Xd.selectors.selectSelectedUserId);return GR({namespace:r},{skip:!n||!r||t||e})},KR={privacy:{[Ui.privacyShowPublicPosts]:{title:"Include public posts in search results",type:"switch",readonly:!1},[Ui.privacyShowProfilePage]:{title:"Include profile page in search results",type:"switch",readonly:!1},[Ui.followAutoAccept]:{title:"Automatically accept new followers",type:"switch",readonly:!1},[Ui.privacyShowFollowers]:{title:"Show follows and followers on profile",type:"switch",readonly:!1}},notifications:{regular:{[Ui.notificationsPrefsFollow]:{title:"Someone followed you",type:"check",readonly:!1},[Ui.notificationsPrefsFollow_request]:{title:"Someone requested to follow you",type:"check",readonly:!1},[Ui.notificationsPrefsRepost]:{title:"Someone boosted your post",type:"check",readonly:!1},[Ui.notificationsPrefsLike]:{title:"Someone liked your post",type:"check",readonly:!1},[Ui.notificationsPrefsMention]:{title:"Someone mentioned you",type:"check",readonly:!1},[Ui.notificationsPrefsComment]:{title:"Someone commented your post",type:"check",readonly:!1},[Ui.notificationsPrefsAlwaysSendEmail]:{title:"Send email notifications even if you are using the app",type:"check",readonly:!1}},stranger:{[Ui.notificationsPolicyBlockNonFollowers]:{title:"Block notifications from non-followers",type:"check",readonly:!1},[Ui.notificationsPolicyBlockNonFollowing]:{title:"Block notifications from people you don’t follow",type:"check",readonly:!1},[Ui.notificationsPolicyBlockNonFollowingMessages]:{title:"Block direct messages from people you don’t follow",type:"check",readonly:!1},[Ui.notificationsShowPopup]:{title:"Show notifications in popup",type:"check",readonly:!1}}}},gg="8.48.0",Ou=globalThis;function C1(e,t,n){const r=Ou,o=r.__SENTRY__=r.__SENTRY__||{},i=o[gg]=o[gg]||{};return i[e]||(i[e]=t())}const jS=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,qR="Sentry Logger ",Vw=["debug","info","warn","error","log","assert","trace"],Hw={};function YR(e){if(!("console"in Ou))return e();const t=Ou.console,n={},r=Object.keys(Hw);r.forEach((e=>{const r=Hw[e];n[e]=t[e],t[e]=r}));try{return e()}finally{r.forEach((e=>{t[e]=n[e]}))}}function QR(){let e=!1;const t={enable:()=>{e=!0},disable:()=>{e=!1},isEnabled:()=>e};return jS?Vw.forEach((n=>{t[n]=(...t)=>{e&&YR((()=>{Ou.console[n](`${qR}[${n}]:`,...t)}))}})):Vw.forEach((e=>{t[e]=()=>{}})),t}const Ov=C1("logger",QR);function k1(){return T1(Ou),Ou}function T1(e){const t=e.__SENTRY__=e.__SENTRY__||{};return t.version=t.version||gg,t[gg]=t[gg]||{}}const XR=Object.prototype.toString;function JR(e,t){return XR.call(e)===`[object ${t}]`}function e$(e){return JR(e,"Object")}function t$(e){return!(!e||!e.then||"function"!=typeof e.then)}function n$(e,t,n){try{Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0})}catch{jS&&Ov.log(`Failed to add non-enumerable property "${t}" to object`,e)}}const US=1e3;function BS(){return Date.now()/US}function r$(){const{performance:e}=Ou;if(!e||!e.now)return BS;const t=Date.now()-e.now(),n=null==e.timeOrigin?t:e.timeOrigin;return()=>(n+e.now())/US}const i$=r$();function Bh(){const e=Ou,t=e.crypto||e.msCrypto;let n=()=>16*Math.random();try{if(t&&t.randomUUID)return t.randomUUID().replace(/-/g,"");t&&t.getRandomValues&&(n=()=>{const e=new Uint8Array(1);return t.getRandomValues(e),e[0]})}catch{}return"10000000100040008000100000000000".replace(/[018]/g,(e=>(e^(15&n())>>e/4).toString(16)))}function o$(e,t={}){if(t.user&&(!e.ipAddress&&t.user.ip_address&&(e.ipAddress=t.user.ip_address),!e.did&&!t.did&&(e.did=t.user.id||t.user.email||t.user.username)),e.timestamp=t.timestamp||i$(),t.abnormal_mechanism&&(e.abnormal_mechanism=t.abnormal_mechanism),t.ignoreDuration&&(e.ignoreDuration=t.ignoreDuration),t.sid&&(e.sid=32===t.sid.length?t.sid:Bh()),void 0!==t.init&&(e.init=t.init),!e.did&&t.did&&(e.did=`${t.did}`),"number"==typeof t.started&&(e.started=t.started),e.ignoreDuration)e.duration=void 0;else if("number"==typeof t.duration)e.duration=t.duration;else{const t=e.timestamp-e.started;e.duration=t>=0?t:0}t.release&&(e.release=t.release),t.environment&&(e.environment=t.environment),!e.ipAddress&&t.ipAddress&&(e.ipAddress=t.ipAddress),!e.userAgent&&t.userAgent&&(e.userAgent=t.userAgent),"number"==typeof t.errors&&(e.errors=t.errors),t.status&&(e.status=t.status)}function Gw(){return Bh()}function Zw(){return Bh().substring(16)}function zS(e,t,n=2){if(!t||"object"!=typeof t||n<=0)return t;if(e&&t&&0===Object.keys(t).length)return e;const r={...e};for(const e in t)Object.prototype.hasOwnProperty.call(t,e)&&(r[e]=zS(r[e],t[e],n-1));return r}(()=>{const{performance:e}=Ou;if(!e||!e.now)return;const t=36e5,n=e.now(),r=Date.now(),o=e.timeOrigin?Math.abs(e.timeOrigin+n-r):t,i=o<t,a=e.timing&&e.timing.navigationStart,s="number"==typeof a?Math.abs(a+n-r):t;(i||s<t)&&(o<=s&&e.timeOrigin)})();const D_="_sentrySpan";function Kw(e,t){t?n$(e,D_,t):delete e[D_]}function qw(e){return e[D_]}const s$=100;class A1{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext={traceId:Gw(),spanId:Zw()}}clone(){const e=new A1;return e._breadcrumbs=[...this._breadcrumbs],e._tags={...this._tags},e._extra={...this._extra},e._contexts={...this._contexts},this._contexts.flags&&(e._contexts.flags={values:[...this._contexts.flags.values]}),e._user=this._user,e._level=this._level,e._session=this._session,e._transactionName=this._transactionName,e._fingerprint=this._fingerprint,e._eventProcessors=[...this._eventProcessors],e._requestSession=this._requestSession,e._attachments=[...this._attachments],e._sdkProcessingMetadata={...this._sdkProcessingMetadata},e._propagationContext={...this._propagationContext},e._client=this._client,e._lastEventId=this._lastEventId,Kw(e,qw(this)),e}setClient(e){this._client=e}setLastEventId(e){this._lastEventId=e}getClient(){return this._client}lastEventId(){return this._lastEventId}addScopeListener(e){this._scopeListeners.push(e)}addEventProcessor(e){return this._eventProcessors.push(e),this}setUser(e){return this._user=e||{email:void 0,id:void 0,ip_address:void 0,username:void 0},this._session&&o$(this._session,{user:e}),this._notifyScopeListeners(),this}getUser(){return this._user}getRequestSession(){return this._requestSession}setRequestSession(e){return this._requestSession=e,this}setTags(e){return this._tags={...this._tags,...e},this._notifyScopeListeners(),this}setTag(e,t){return this._tags={...this._tags,[e]:t},this._notifyScopeListeners(),this}setExtras(e){return this._extra={...this._extra,...e},this._notifyScopeListeners(),this}setExtra(e,t){return this._extra={...this._extra,[e]:t},this._notifyScopeListeners(),this}setFingerprint(e){return this._fingerprint=e,this._notifyScopeListeners(),this}setLevel(e){return this._level=e,this._notifyScopeListeners(),this}setTransactionName(e){return this._transactionName=e,this._notifyScopeListeners(),this}setContext(e,t){return null===t?delete this._contexts[e]:this._contexts[e]=t,this._notifyScopeListeners(),this}setSession(e){return e?this._session=e:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(e){if(!e)return this;const t="function"==typeof e?e(this):e,[n,r]=t instanceof _g?[t.getScopeData(),t.getRequestSession()]:e$(t)?[e,e.requestSession]:[],{tags:o,extra:i,user:a,contexts:s,level:l,fingerprint:u=[],propagationContext:c}=n||{};return this._tags={...this._tags,...o},this._extra={...this._extra,...i},this._contexts={...this._contexts,...s},a&&Object.keys(a).length&&(this._user=a),l&&(this._level=l),u.length&&(this._fingerprint=u),c&&(this._propagationContext=c),r&&(this._requestSession=r),this}clear(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._requestSession=void 0,this._session=void 0,Kw(this,void 0),this._attachments=[],this.setPropagationContext({traceId:Gw()}),this._notifyScopeListeners(),this}addBreadcrumb(e,t){const n="number"==typeof t?t:s$;if(n<=0)return this;const r={timestamp:BS(),...e},o=this._breadcrumbs;return o.push(r),this._breadcrumbs=o.length>n?o.slice(-n):o,this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(e){return this._attachments.push(e),this}clearAttachments(){return this._attachments=[],this}getScopeData(){return{breadcrumbs:this._breadcrumbs,attachments:this._attachments,contexts:this._contexts,tags:this._tags,extra:this._extra,user:this._user,level:this._level,fingerprint:this._fingerprint||[],eventProcessors:this._eventProcessors,propagationContext:this._propagationContext,sdkProcessingMetadata:this._sdkProcessingMetadata,transactionName:this._transactionName,span:qw(this)}}setSDKProcessingMetadata(e){return this._sdkProcessingMetadata=zS(this._sdkProcessingMetadata,e,2),this}setPropagationContext(e){return this._propagationContext={spanId:Zw(),...e},this}getPropagationContext(){return this._propagationContext}captureException(e,t){const n=t&&t.event_id?t.event_id:Bh();if(!this._client)return Ov.warn("No client configured on scope - will not capture exception!"),n;const r=new Error("Sentry syntheticException");return this._client.captureException(e,{originalException:e,syntheticException:r,...t,event_id:n},this),n}captureMessage(e,t,n){const r=n&&n.event_id?n.event_id:Bh();if(!this._client)return Ov.warn("No client configured on scope - will not capture message!"),r;const o=new Error(e);return this._client.captureMessage(e,t,{originalException:e,syntheticException:o,...n,event_id:r},this),r}captureEvent(e,t){const n=t&&t.event_id?t.event_id:Bh();return this._client?(this._client.captureEvent(e,{...t,event_id:n},this),n):(Ov.warn("No client configured on scope - will not capture event!"),n)}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach((e=>{e(this)})),this._notifyingListeners=!1)}}const _g=A1;function a$(){return C1("defaultCurrentScope",(()=>new _g))}function l$(){return C1("defaultIsolationScope",(()=>new _g))}class u${constructor(e,t){let n,r;n=e||new _g,r=t||new _g,this._stack=[{scope:n}],this._isolationScope=r}withScope(e){const t=this._pushScope();let n;try{n=e(t)}catch(e){throw this._popScope(),e}return t$(n)?n.then((e=>(this._popScope(),e)),(e=>{throw this._popScope(),e})):(this._popScope(),n)}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getIsolationScope(){return this._isolationScope}getStackTop(){return this._stack[this._stack.length-1]}_pushScope(){const e=this.getScope().clone();return this._stack.push({client:this.getClient(),scope:e}),e}_popScope(){return!(this._stack.length<=1)&&!!this._stack.pop()}}function Zh(){const e=T1(k1());return e.stack=e.stack||new u$(a$(),l$())}function c$(e){return Zh().withScope(e)}function f$(e,t){const n=Zh();return n.withScope((()=>(n.getStackTop().scope=e,t(e))))}function Yw(e){return Zh().withScope((()=>e(Zh().getIsolationScope())))}function d$(){return{withIsolationScope:Yw,withScope:c$,withSetScope:f$,withSetIsolationScope:(e,t)=>Yw(t),getCurrentScope:()=>Zh().getScope(),getIsolationScope:()=>Zh().getIsolationScope()}}function WS(e){const t=T1(e);return t.acs?t.acs:d$()}function VS(){return WS(k1()).getCurrentScope()}function p$(){return WS(k1()).getIsolationScope()}function h$(e,t){return VS().captureException(e,void 0)}function m$(e,t){const n={captureContext:t};return VS().captureMessage(e,void 0,n)}function g$(e,t){p$().setExtra(e,t)}const v$=(...e)=>{let t="";for(const n of e){if(n instanceof Error){const e=n;return g$("exceptionMessage",t),void h$(e)}if("object"!=typeof n)t+=n;else try{t+=" "+JSON.stringify(n)}catch{t+=" "+n}}m$(t)},y$=()=>"object"!=typeof window,Qw=["debug","info","warn","error"],_$=(e,t)=>{const n=Qw.indexOf(e);return Qw.indexOf(t)>=n},kv=(e,t,n,...r)=>{_$(t,e)&&console.log(`[${e}] ${n}`,...r)},w$=(e=!y$()&&(null==window?void 0:window.localStorage.getItem("logger_lvl"))||"warn")=>{let t=e;return{debug:(e,...n)=>kv("debug",t,e,...n),info:(e,...n)=>kv("info",t,e,...n),warn:(e,...n)=>kv("warn",t,e,...n),error:(e,...n)=>(v$(e,...n),kv("error",t,e,...n)),setLevel:e=>{t=e},getLevel:()=>t}},Fs=w$(),x$=e=>!(null==e||!e.type),HS=({defaultSettings:e,incomeSettings:t})=>{const n={...e};for(const r in n)if(x$(e[r])){const e=t[r];e&&(n[r]={...n[r],value:e})}else n[r]=HS({defaultSettings:e[r],incomeSettings:t});return n},b$={data:null,isPending:!1,isSuccess:!1},Xw=Rf({name:"profileSettings",initialState:b$,reducers:{setSettings:(e,t)=>{e.data=t.payload},setPending:(e,t)=>{e.isPending=t.payload},setSuccess:(e,{payload:t})=>{e.isSuccess=t},setError:(e,{payload:t})=>{e.error=t}},selectors:{selectSettings:e=>e.data,selectPending:e=>e.isPending,selectError:e=>e.error,selectSuccess:e=>e.isSuccess}}),S$=()=>{const e=Qh(),t=Un(Xw.selectors.selectSettings),{data:n,isSuccess:r}=ZR();return Et((()=>{if(r)try{const t=HS({defaultSettings:KR,incomeSettings:n});e(Xw.actions.setSettings(t))}catch(e){Fs.error("Merge profile settings error:",e)}}),[n,r]),t},GS=1e3,M_=6e4,F_=60*M_,og=24*F_,Lv=30*og,E$=12*Lv,C$=e=>{const t=Date.now(),n=new Date(e).getTime(),r=Math.max(1,t-n);return r<M_?`${Math.floor(r/GS)}s`:r<F_?`${Math.floor(r/M_)}min`:r<og?`${Math.floor(r/F_)}h`:r<7*og?`${Math.floor(r/og)}d`:r<Lv?`${Math.floor(r/(7*og))}w`:r<E$?`${Math.floor(r/Lv)}m`:`${Math.floor(r/Lv)}y`},k$=({type:e,post:t})=>{var n,r;return"LIKE"===e&&null!=(n=null==t?void 0:t.path)&&n.length||"COMMENT"===e&&(null==t?void 0:t.path)&&t.path.length>1||"REPOST"===e&&(null==(r=null==t?void 0:t.originalPost)?void 0:r.path.length)?"reply":"post"},Nh=e=>{var t;const n=k$(e);switch(e.type){case"COMMENT":return`replied to your ${n}`;case"FOLLOW":return"started following you";case"FOLLOW_REQUEST":return"requested following you";case"LIKE":return`liked your ${n}`;case"MENTION":return"mentioned you";case"REPOST":return null!=(t=e.post)&&t.text?`quoted your ${n}`:`reposted your ${n}`}},T$=(e,t=!1)=>{var n;const r=t?"mr-1":"mr-2";switch(e.type){case"COMMENT":return D.jsxs("div",{className:"flex items-center",children:[D.jsx(X2,{size:16,className:r})," ",Nh(e)]});case"FOLLOW":case"FOLLOW_REQUEST":return D.jsxs("div",{className:"flex items-center",children:[D.jsx(sw,{size:16,className:r}),Nh(e)]});case"LIKE":return D.jsxs("div",{className:"flex items-center",children:[D.jsx(Y2,{size:16,className:r,color:t?"#fff":"#334155",fill:"transparent"})," ",Nh(e)]});case"MENTION":return D.jsxs("div",{className:"flex items-center",children:[D.jsx(F2,{size:16,className:r})," ",Nh(e)]});case"REPOST":{const t=null==(n=e.post)?void 0:n.text;return D.jsxs("div",{className:"flex items-center",children:[t?D.jsx(nk,{size:16,className:r}):D.jsx(ik,{size:16,className:r})," ",Nh(e)]})}}},ZS=e=>e.size&&e.uri&&e.meta.height&&e.meta.width,A$=e=>{const t=e.error;return e.files.some(ZS)&&!t},Jw=({upload:e,imgExtenstion:t})=>{if(!A$(e))return null;const n=e.files.filter(ZS),r=n[0].meta.height>n[0].meta.width?"height":"width";return n.filter((e=>null==t?void 0:t.includes(e.extension))).sort(((e,t)=>e.meta[r]-t.meta[r]))[0]},N1=e=>e,R1=oi(N1,(e=>e.data)),N$=oi(N1,(e=>e.error)),R$=oi(N1,(e=>e.isPending)),im=oi(R1,(e=>null==e?void 0:e.configuration)),$$=oi(im,(e=>null==e?void 0:e.media_attachments)),$1=oi(im,(e=>({IMAGE:null==e?void 0:e.media_attachments.image_extensions,VIDEO:null==e?void 0:e.media_attachments.video_extensions,AUDIO:null==e?void 0:e.media_attachments.audio_extensions,DOCUMENT:null==e?void 0:e.media_attachments.doc_extensions}))),I$=oi([$1,(e,t)=>t],((e,t)=>e[t])),P$=oi($1,(e=>Object.keys(e).reduce(((t,n)=>[...t,...e[n]||[]]),[]))),O$=oi(im,(e=>(null==e?void 0:e.posts.max_media_attachments)||0)),L$=oi(im,(e=>(null==e?void 0:e.posts.max_characters)||0)),D$=oi(im,(e=>(null==e?void 0:e.posts.max_pins)||0)),M$=oi(R1,(e=>null==e?void 0:e.rules)),F$={data:null,isPending:!1},sg=Rf({name:"instanceInfo",initialState:F$,reducers:{setInfo:(e,t)=>{e.data=t.payload},setError:(e,t)=>{e.error=t.payload},setPending:(e,t)=>{e.isPending=t.payload}},selectors:{selectInstanceInfo:R1,selectPostPinsLimit:D$,selectInstanceInfoError:N$,selectInstanceInfoPending:R$,selectPostSizeLimit:L$,selectConfiguration:im,selectAttachmentsLimit:O$,selectSupportedExtensions:$1,selectFullExtensionsList:P$,selectPlatformRules:M$,selectMediaConfiguration:$$,selectSupportedExtensionsFor:I$,selectRegistrations:e=>{var t;return null==(t=e.data)?void 0:t.configuration.registrations}}});qd.enhanceEndpoints({endpoints:{getApiV1Instance:{async onQueryStarted(e,{dispatch:t,queryFulfilled:n}){t(sg.actions.setPending(!0));try{const e=await pr(n);e&&t(sg.actions.setInfo(e.data))}catch(e){t(sg.actions.setError(e))}finally{t(sg.actions.setPending(!1))}}}}});const KS=(e=0,t=!1,n=[])=>{const r=At(null),[o,i]=Ot(t),a=At(null),s=()=>{a.current=setTimeout((()=>{i(!0)}),e)},l=()=>{a.current&&clearTimeout(a.current),i(!1)};return Et((()=>()=>{a.current&&clearTimeout(a.current)}),[]),Et((()=>{const e=r.current;if(e)return e.addEventListener("mouseenter",s),e.addEventListener("mouseleave",l),()=>{e.removeEventListener("mouseenter",s),e.removeEventListener("mouseleave",l)}}),[r.current,...n]),[r,o,i]},j$=em("inline-flex items-center justify-center whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",{variants:{variant:{default:"bg-slate-700 rounded-[6px] text-primary-foreground hover:bg-slate-900 disabled:bg-slate-400",black:"bg-slate-700 text-primary-foreground hover:bg-slate-900 disabled:background-slate-300",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",outline:"rounded-[6px] hover:bg-slate-50 text-slate-700 font-semibold border border-slate-700 disabled:border-slate-400 disabled:text-slate-400",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline",blue_link:"text-blue_100 hover:underline","simple-gray":"bg-slate-100 text-slate-700 font-medium text-[14px] leading-[14px]"},size:{link:"",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",h24:"h-[24px]",small:"py-[4px] px-[8px] rounded-[4px]"}},defaultVariants:{variant:"default",size:"default"}}),Cf=M.forwardRef((({className:e,variant:t,size:n,asChild:r=!1,as:o="button",...i},a)=>{const s=r?Fg:o,l="link"===t||"blue_link"===t?"link":n;return D.jsx(s,{className:ut(j$({variant:t,size:l,className:e})),ref:a,...i})}));function _f(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(null==e||e(r),!1===n||!r.defaultPrevented)return null==t?void 0:t(r)}}function U$(e,t){const n=M.createContext(t);function r(e){const{children:t,...r}=e,o=M.useMemo((()=>r),Object.values(r));return D.jsx(n.Provider,{value:o,children:t})}return r.displayName=e+"Provider",[r,function(r){const o=M.useContext(n);if(o)return o;if(void 0!==t)return t;throw new Error(`\`${r}\` must be used within \`${e}\``)}]}function B$(e,t=[]){let n=[];const r=()=>{const t=n.map((e=>M.createContext(e)));return function(n){const r=(null==n?void 0:n[e])||t;return M.useMemo((()=>({[`__scope${e}`]:{...n,[e]:r}})),[n,r])}};return r.scopeName=e,[function(t,r){const o=M.createContext(r),i=n.length;function a(t){const{scope:n,children:r,...a}=t,s=(null==n?void 0:n[e][i])||o,l=M.useMemo((()=>a),Object.values(a));return D.jsx(s.Provider,{value:l,children:r})}return n=[...n,r],a.displayName=t+"Provider",[a,function(n,a){const s=(null==a?void 0:a[e][i])||o,l=M.useContext(s);if(l)return l;if(void 0!==r)return r;throw new Error(`\`${n}\` must be used within \`${t}\``)}]},z$(r,...t)]}function z$(...e){const t=e[0];if(1===e.length)return t;const n=()=>{const n=e.map((e=>({useScope:e(),scopeName:e.scopeName})));return function(e){const r=n.reduce(((t,{useScope:n,scopeName:r})=>({...t,...n(e)[`__scope${r}`]})),{});return M.useMemo((()=>({[`__scope${t.scopeName}`]:r})),[r])}};return n.scopeName=t.scopeName,n}Cf.displayName="Button";var Kv=null!=globalThis&&globalThis.document?M.useLayoutEffect:()=>{},W$=M.useId||(()=>{}),V$=0;function g_(e){const[t,n]=M.useState(W$());return Kv((()=>{e||n((e=>e??String(V$++)))}),[e]),e||(t?`radix-${t}`:"")}function ep(e){const t=M.useRef(e);return M.useEffect((()=>{t.current=e})),M.useMemo((()=>(...e)=>{var n;return null==(n=t.current)?void 0:n.call(t,...e)}),[])}function H$({prop:e,defaultProp:t,onChange:n=()=>{}}){const[r,o]=G$({defaultProp:t,onChange:n}),i=void 0!==e,a=i?e:r,s=ep(n);return[a,M.useCallback((t=>{if(i){const n="function"==typeof t?t(e):t;n!==e&&s(n)}else o(t)}),[i,e,o,s])]}function G$({defaultProp:e,onChange:t}){const n=M.useState(e),[r]=n,o=M.useRef(r),i=ep(t);return M.useEffect((()=>{o.current!==r&&(i(r),o.current=r)}),[r,o,i]),n}var Z$=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],Mu=Z$.reduce(((e,t)=>{const n=M.forwardRef(((e,n)=>{const{asChild:r,...o}=e,i=r?Fg:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),D.jsx(i,{...o,ref:n})}));return n.displayName=`Primitive.${t}`,{...e,[t]:n}}),{});function K$(e,t){e&&$f.flushSync((()=>e.dispatchEvent(t)))}function q$(e,t=(null==globalThis?void 0:globalThis.document)){const n=ep(e);M.useEffect((()=>{const e=e=>{"Escape"===e.key&&n(e)};return t.addEventListener("keydown",e,{capture:!0}),()=>t.removeEventListener("keydown",e,{capture:!0})}),[n,t])}var ex,Y$="DismissableLayer",j_="dismissableLayer.update",Q$="dismissableLayer.pointerDownOutside",X$="dismissableLayer.focusOutside",qS=M.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),YS=M.forwardRef(((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:i,onInteractOutside:a,onDismiss:s,...l}=e,u=M.useContext(qS),[c,d]=M.useState(null),f=(null==c?void 0:c.ownerDocument)??(null==globalThis?void 0:globalThis.document),[,p]=M.useState({}),h=lp(t,(e=>d(e))),m=Array.from(u.layers),[v]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),g=m.indexOf(v),y=c?m.indexOf(c):-1,b=u.layersWithOutsidePointerEventsDisabled.size>0,_=y>=g,w=tI((e=>{const t=e.target,n=[...u.branches].some((e=>e.contains(t)));!_||n||(null==o||o(e),null==a||a(e),e.defaultPrevented||null==s||s())}),f),x=nI((e=>{const t=e.target;[...u.branches].some((e=>e.contains(t)))||(null==i||i(e),null==a||a(e),e.defaultPrevented||null==s||s())}),f);return q$((e=>{y===u.layers.size-1&&(null==r||r(e),!e.defaultPrevented&&s&&(e.preventDefault(),s()))}),f),M.useEffect((()=>{if(c)return n&&(0===u.layersWithOutsidePointerEventsDisabled.size&&(ex=f.body.style.pointerEvents,f.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(c)),u.layers.add(c),tx(),()=>{n&&1===u.layersWithOutsidePointerEventsDisabled.size&&(f.body.style.pointerEvents=ex)}}),[c,f,n,u]),M.useEffect((()=>()=>{c&&(u.layers.delete(c),u.layersWithOutsidePointerEventsDisabled.delete(c),tx())}),[c,u]),M.useEffect((()=>{const e=()=>p({});return document.addEventListener(j_,e),()=>document.removeEventListener(j_,e)}),[]),D.jsx(Mu.div,{...l,ref:h,style:{pointerEvents:b?_?"auto":"none":void 0,...e.style},onFocusCapture:_f(e.onFocusCapture,x.onFocusCapture),onBlurCapture:_f(e.onBlurCapture,x.onBlurCapture),onPointerDownCapture:_f(e.onPointerDownCapture,w.onPointerDownCapture)})}));YS.displayName=Y$;var J$="DismissableLayerBranch",eI=M.forwardRef(((e,t)=>{const n=M.useContext(qS),r=M.useRef(null),o=lp(t,r);return M.useEffect((()=>{const e=r.current;if(e)return n.branches.add(e),()=>{n.branches.delete(e)}}),[n.branches]),D.jsx(Mu.div,{...e,ref:o})}));function tI(e,t=(null==globalThis?void 0:globalThis.document)){const n=ep(e),r=M.useRef(!1),o=M.useRef((()=>{}));return M.useEffect((()=>{const e=e=>{if(e.target&&!r.current){let r=function(){QS(Q$,n,i,{discrete:!0})};const i={originalEvent:e};"touch"===e.pointerType?(t.removeEventListener("click",o.current),o.current=r,t.addEventListener("click",o.current,{once:!0})):r()}else t.removeEventListener("click",o.current);r.current=!1},i=window.setTimeout((()=>{t.addEventListener("pointerdown",e)}),0);return()=>{window.clearTimeout(i),t.removeEventListener("pointerdown",e),t.removeEventListener("click",o.current)}}),[t,n]),{onPointerDownCapture:()=>r.current=!0}}function nI(e,t=(null==globalThis?void 0:globalThis.document)){const n=ep(e),r=M.useRef(!1);return M.useEffect((()=>{const e=e=>{e.target&&!r.current&&QS(X$,n,{originalEvent:e},{discrete:!1})};return t.addEventListener("focusin",e),()=>t.removeEventListener("focusin",e)}),[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function tx(){const e=new CustomEvent(j_);document.dispatchEvent(e)}function QS(e,t,n,{discrete:r}){const o=n.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?K$(o,i):o.dispatchEvent(i)}eI.displayName=J$;var v_="focusScope.autoFocusOnMount",y_="focusScope.autoFocusOnUnmount",nx={bubbles:!1,cancelable:!0},rI="FocusScope",XS=M.forwardRef(((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:i,...a}=e,[s,l]=M.useState(null),u=ep(o),c=ep(i),d=M.useRef(null),f=lp(t,(e=>l(e))),p=M.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;M.useEffect((()=>{if(r){let e=function(e){if(p.paused||!s)return;const t=e.target;s.contains(t)?d.current=t:mf(d.current,{select:!0})},t=function(e){if(p.paused||!s)return;const t=e.relatedTarget;null!==t&&(s.contains(t)||mf(d.current,{select:!0}))},n=function(e){if(document.activeElement===document.body)for(const t of e)t.removedNodes.length>0&&mf(s)};document.addEventListener("focusin",e),document.addEventListener("focusout",t);const r=new MutationObserver(n);return s&&r.observe(s,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t),r.disconnect()}}}),[r,s,p.paused]),M.useEffect((()=>{if(s){ix.add(p);const e=document.activeElement;if(!s.contains(e)){const t=new CustomEvent(v_,nx);s.addEventListener(v_,u),s.dispatchEvent(t),t.defaultPrevented||(iI(uI(JS(s)),{select:!0}),document.activeElement===e&&mf(s))}return()=>{s.removeEventListener(v_,u),setTimeout((()=>{const t=new CustomEvent(y_,nx);s.addEventListener(y_,c),s.dispatchEvent(t),t.defaultPrevented||mf(e??document.body,{select:!0}),s.removeEventListener(y_,c),ix.remove(p)}),0)}}}),[s,u,c,p]);const h=M.useCallback((e=>{if(!n&&!r||p.paused)return;const t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,o=document.activeElement;if(t&&o){const t=e.currentTarget,[r,i]=oI(t);r&&i?e.shiftKey||o!==i?e.shiftKey&&o===r&&(e.preventDefault(),n&&mf(i,{select:!0})):(e.preventDefault(),n&&mf(r,{select:!0})):o===t&&e.preventDefault()}}),[n,r,p.paused]);return D.jsx(Mu.div,{tabIndex:-1,...a,ref:f,onKeyDown:h})}));function iI(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(mf(r,{select:t}),document.activeElement!==n)return}function oI(e){const t=JS(e);return[rx(t,e),rx(t.reverse(),e)]}function JS(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{const t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function rx(e,t){for(const n of e)if(!sI(n,{upTo:t}))return n}function sI(e,{upTo:t}){if("hidden"===getComputedStyle(e).visibility)return!0;for(;e;){if(void 0!==t&&e===t)return!1;if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1}function aI(e){return e instanceof HTMLInputElement&&"select"in e}function mf(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&aI(e)&&t&&e.select()}}XS.displayName=rI;var ix=lI();function lI(){let e=[];return{add(t){const n=e[0];t!==n&&(null==n||n.pause()),e=ox(e,t),e.unshift(t)},remove(t){var n;e=ox(e,t),null==(n=e[0])||n.resume()}}}function ox(e,t){const n=[...e],r=n.indexOf(t);return-1!==r&&n.splice(r,1),n}function uI(e){return e.filter((e=>"A"!==e.tagName))}var cI="Portal",eE=M.forwardRef(((e,t)=>{var n;const{container:r,...o}=e,[i,a]=M.useState(!1);Kv((()=>a(!0)),[]);const s=r||i&&(null==(n=null==globalThis?void 0:globalThis.document)?void 0:n.body);return s?Px.createPortal(D.jsx(Mu.div,{...o,ref:t}),s):null}));function fI(e,t){return M.useReducer(((e,n)=>t[e][n]??e),e)}eE.displayName=cI;var _0=e=>{const{present:t,children:n}=e,r=dI(t),o="function"==typeof n?n({present:r.isPresent}):M.Children.only(n),i=lp(r.ref,pI(o));return"function"==typeof n||r.isPresent?M.cloneElement(o,{ref:i}):null};function dI(e){const[t,n]=M.useState(),r=M.useRef({}),o=M.useRef(e),i=M.useRef("none"),a=e?"mounted":"unmounted",[s,l]=fI(a,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return M.useEffect((()=>{const e=Tv(r.current);i.current="mounted"===s?e:"none"}),[s]),Kv((()=>{const t=r.current,n=o.current;if(n!==e){const r=i.current,a=Tv(t);e?l("MOUNT"):"none"===a||"none"===(null==t?void 0:t.display)?l("UNMOUNT"):l(n&&r!==a?"ANIMATION_OUT":"UNMOUNT"),o.current=e}}),[e,l]),Kv((()=>{if(t){const e=e=>{const n=Tv(r.current).includes(e.animationName);e.target===t&&n&&$f.flushSync((()=>l("ANIMATION_END")))},n=e=>{e.target===t&&(i.current=Tv(r.current))};return t.addEventListener("animationstart",n),t.addEventListener("animationcancel",e),t.addEventListener("animationend",e),()=>{t.removeEventListener("animationstart",n),t.removeEventListener("animationcancel",e),t.removeEventListener("animationend",e)}}l("ANIMATION_END")}),[t,l]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:M.useCallback((e=>{e&&(r.current=getComputedStyle(e)),n(e)}),[])}}function Tv(e){return(null==e?void 0:e.animationName)||"none"}function pI(e){var t,n;let r=null==(t=Object.getOwnPropertyDescriptor(e.props,"ref"))?void 0:t.get,o=r&&"isReactWarning"in r&&r.isReactWarning;return o?e.ref:(r=null==(n=Object.getOwnPropertyDescriptor(e,"ref"))?void 0:n.get,o=r&&"isReactWarning"in r&&r.isReactWarning,o?e.props.ref:e.props.ref||e.ref)}_0.displayName="Presence";var __=0;function hI(){M.useEffect((()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??sx()),document.body.insertAdjacentElement("beforeend",e[1]??sx()),__++,()=>{1===__&&document.querySelectorAll("[data-radix-focus-guard]").forEach((e=>e.remove())),__--}}),[])}function sx(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.cssText="outline: none; opacity: 0; position: fixed; pointer-events: none",e}var tE=Bb(),w_=function(){},w0=M.forwardRef((function(e,t){var n=M.useRef(null),r=M.useState({onScrollCapture:w_,onWheelCapture:w_,onTouchMoveCapture:w_}),o=r[0],i=r[1],a=e.forwardProps,s=e.children,l=e.className,u=e.removeScrollBar,c=e.enabled,d=e.shards,f=e.sideCar,p=e.noIsolation,h=e.inert,m=e.allowPinchZoom,v=e.as,g=void 0===v?"div":v,y=e.gapMode,b=h1(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),_=f,w=Ub([n,t]),x=Bi(Bi({},b),o);return M.createElement(M.Fragment,null,c&&M.createElement(_,{sideCar:tE,removeScrollBar:u,shards:d,noIsolation:p,inert:h,setCallbacks:i,allowPinchZoom:!!m,lockRef:n,gapMode:y}),a?M.cloneElement(M.Children.only(s),Bi(Bi({},x),{ref:w})):M.createElement(g,Bi({},x,{className:l,ref:w}),s))}));w0.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},w0.classNames={fullWidth:hg,zeroRight:pg};var U_=!1;if(typeof window<"u")try{var Av=Object.defineProperty({},"passive",{get:function(){return U_=!0,!0}});window.addEventListener("test",Av,Av),window.removeEventListener("test",Av,Av)}catch{U_=!1}var Rh=!!U_&&{passive:!1},mI=function(e){return"TEXTAREA"===e.tagName},nE=function(e,t){var n=window.getComputedStyle(e);return"hidden"!==n[t]&&!(n.overflowY===n.overflowX&&!mI(e)&&"visible"===n[t])},gI=function(e){return nE(e,"overflowY")},vI=function(e){return nE(e,"overflowX")},ax=function(e,t){var n=t.ownerDocument,r=t;do{if(typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host),rE(e,r)){var o=iE(e,r);if(o[1]>o[2])return!0}r=r.parentNode}while(r&&r!==n.body);return!1},yI=function(e){return[e.scrollTop,e.scrollHeight,e.clientHeight]},_I=function(e){return[e.scrollLeft,e.scrollWidth,e.clientWidth]},rE=function(e,t){return"v"===e?gI(t):vI(t)},iE=function(e,t){return"v"===e?yI(t):_I(t)},wI=function(e,t){return"h"===e&&"rtl"===t?-1:1},xI=function(e,t,n,r,o){var i=wI(e,window.getComputedStyle(t).direction),a=i*r,s=n.target,l=t.contains(s),u=!1,c=a>0,d=0,f=0;do{var p=iE(e,s),h=p[0],m=p[1]-p[2]-i*h;(h||m)&&rE(e,s)&&(d+=m,f+=h),s=s instanceof ShadowRoot?s.host:s.parentNode}while(!l&&s!==document.body||l&&(t.contains(s)||t===s));return(c&&(Math.abs(d)<1||!o)||!c&&(Math.abs(f)<1||!o))&&(u=!0),u},Nv=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},lx=function(e){return[e.deltaX,e.deltaY]},ux=function(e){return e&&"current"in e?e.current:e},bI=function(e,t){return e[0]===t[0]&&e[1]===t[1]},SI=function(e){return"\n .block-interactivity-".concat(e," {pointer-events: none;}\n .allow-interactivity-").concat(e," {pointer-events: all;}\n")},EI=0,$h=[];function CI(e){var t=M.useRef([]),n=M.useRef([0,0]),r=M.useRef(),o=M.useState(EI++)[0],i=M.useState(m1)[0],a=M.useRef(e);M.useEffect((function(){a.current=e}),[e]),M.useEffect((function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var t=jb([e.lockRef.current],(e.shards||[]).map(ux),!0).filter(Boolean);return t.forEach((function(e){return e.classList.add("allow-interactivity-".concat(o))})),function(){document.body.classList.remove("block-interactivity-".concat(o)),t.forEach((function(e){return e.classList.remove("allow-interactivity-".concat(o))}))}}}),[e.inert,e.lockRef.current,e.shards]);var s=M.useCallback((function(e,t){if("touches"in e&&2===e.touches.length)return!a.current.allowPinchZoom;var o,i=Nv(e),s=n.current,l="deltaX"in e?e.deltaX:s[0]-i[0],u="deltaY"in e?e.deltaY:s[1]-i[1],c=e.target,d=Math.abs(l)>Math.abs(u)?"h":"v";if("touches"in e&&"h"===d&&"range"===c.type)return!1;var f=ax(d,c);if(!f)return!0;if(f?o=d:(o="v"===d?"h":"v",f=ax(d,c)),!f)return!1;if(!r.current&&"changedTouches"in e&&(l||u)&&(r.current=o),!o)return!0;var p=r.current||o;return xI(p,t,e,"h"===p?l:u,!0)}),[]),l=M.useCallback((function(e){var n=e;if($h.length&&$h[$h.length-1]===i){var r="deltaY"in n?lx(n):Nv(n),o=t.current.filter((function(e){return e.name===n.type&&(e.target===n.target||n.target===e.shadowParent)&&bI(e.delta,r)}))[0];if(o&&o.should)return void(n.cancelable&&n.preventDefault());if(!o){var l=(a.current.shards||[]).map(ux).filter(Boolean).filter((function(e){return e.contains(n.target)}));(l.length>0?s(n,l[0]):!a.current.noIsolation)&&n.cancelable&&n.preventDefault()}}}),[]),u=M.useCallback((function(e,n,r,o){var i={name:e,delta:n,target:r,should:o,shadowParent:kI(r)};t.current.push(i),setTimeout((function(){t.current=t.current.filter((function(e){return e!==i}))}),1)}),[]),c=M.useCallback((function(e){n.current=Nv(e),r.current=void 0}),[]),d=M.useCallback((function(t){u(t.type,lx(t),t.target,s(t,e.lockRef.current))}),[]),f=M.useCallback((function(t){u(t.type,Nv(t),t.target,s(t,e.lockRef.current))}),[]);M.useEffect((function(){return $h.push(i),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:f}),document.addEventListener("wheel",l,Rh),document.addEventListener("touchmove",l,Rh),document.addEventListener("touchstart",c,Rh),function(){$h=$h.filter((function(e){return e!==i})),document.removeEventListener("wheel",l,Rh),document.removeEventListener("touchmove",l,Rh),document.removeEventListener("touchstart",c,Rh)}}),[]);var p=e.removeScrollBar,h=e.inert;return M.createElement(M.Fragment,null,h?M.createElement(i,{styles:SI(o)}):null,p?M.createElement(Hb,{gapMode:e.gapMode}):null)}function kI(e){for(var t=null;null!==e;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const TI=Wb(tE,CI);var oE=M.forwardRef((function(e,t){return M.createElement(w0,Bi({},e,{ref:t,sideCar:TI}))}));oE.classNames=w0.classNames;var I1="Dialog",[sE,E4]=B$(I1),[AI,Aa]=sE(I1),aE=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:o,onOpenChange:i,modal:a=!0}=e,s=M.useRef(null),l=M.useRef(null),[u=!1,c]=H$({prop:r,defaultProp:o,onChange:i});return D.jsx(AI,{scope:t,triggerRef:s,contentRef:l,contentId:g_(),titleId:g_(),descriptionId:g_(),open:u,onOpenChange:c,onOpenToggle:M.useCallback((()=>c((e=>!e))),[c]),modal:a,children:n})};aE.displayName=I1;var lE="DialogTrigger",NI=M.forwardRef(((e,t)=>{const{__scopeDialog:n,...r}=e,o=Aa(lE,n),i=lp(t,o.triggerRef);return D.jsx(Mu.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":L1(o.open),...r,ref:i,onClick:_f(e.onClick,o.onOpenToggle)})}));NI.displayName=lE;var P1="DialogPortal",[RI,uE]=sE(P1,{forceMount:void 0}),cE=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:o}=e,i=Aa(P1,t);return D.jsx(RI,{scope:t,forceMount:n,children:M.Children.map(r,(e=>D.jsx(_0,{present:n||i.open,children:D.jsx(eE,{asChild:!0,container:o,children:e})})))})};cE.displayName=P1;var qv="DialogOverlay",fE=M.forwardRef(((e,t)=>{const n=uE(qv,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,i=Aa(qv,e.__scopeDialog);return i.modal?D.jsx(_0,{present:r||i.open,children:D.jsx($I,{...o,ref:t})}):null}));fE.displayName=qv;var $I=M.forwardRef(((e,t)=>{const{__scopeDialog:n,...r}=e,o=Aa(qv,n);return D.jsx(oE,{as:Fg,allowPinchZoom:!0,shards:[o.contentRef],children:D.jsx(Mu.div,{"data-state":L1(o.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})})),tp="DialogContent",dE=M.forwardRef(((e,t)=>{const n=uE(tp,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,i=Aa(tp,e.__scopeDialog);return D.jsx(_0,{present:r||i.open,children:i.modal?D.jsx(II,{...o,ref:t}):D.jsx(PI,{...o,ref:t})})}));dE.displayName=tp;var II=M.forwardRef(((e,t)=>{const n=Aa(tp,e.__scopeDialog),r=M.useRef(null),o=lp(t,n.contentRef,r);return M.useEffect((()=>{const e=r.current;if(e)return p1(e)}),[]),D.jsx(pE,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:_f(e.onCloseAutoFocus,(e=>{var t;e.preventDefault(),null==(t=n.triggerRef.current)||t.focus()})),onPointerDownOutside:_f(e.onPointerDownOutside,(e=>{const t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey;(2===t.button||n)&&e.preventDefault()})),onFocusOutside:_f(e.onFocusOutside,(e=>e.preventDefault()))})})),PI=M.forwardRef(((e,t)=>{const n=Aa(tp,e.__scopeDialog),r=M.useRef(!1),o=M.useRef(!1);return D.jsx(pE,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{var i,a;null==(i=e.onCloseAutoFocus)||i.call(e,t),t.defaultPrevented||(r.current||null==(a=n.triggerRef.current)||a.focus(),t.preventDefault()),r.current=!1,o.current=!1},onInteractOutside:t=>{var i,a;null==(i=e.onInteractOutside)||i.call(e,t),t.defaultPrevented||(r.current=!0,"pointerdown"===t.detail.originalEvent.type&&(o.current=!0));const s=t.target;(null==(a=n.triggerRef.current)?void 0:a.contains(s))&&t.preventDefault(),"focusin"===t.detail.originalEvent.type&&o.current&&t.preventDefault()}})})),pE=M.forwardRef(((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:i,...a}=e,s=Aa(tp,n),l=M.useRef(null),u=lp(t,l);return hI(),D.jsxs(D.Fragment,{children:[D.jsx(XS,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:i,children:D.jsx(YS,{role:"dialog",id:s.contentId,"aria-describedby":s.descriptionId,"aria-labelledby":s.titleId,"data-state":L1(s.open),...a,ref:u,onDismiss:()=>s.onOpenChange(!1)})}),D.jsxs(D.Fragment,{children:[D.jsx(OI,{titleId:s.titleId}),D.jsx(DI,{contentRef:l,descriptionId:s.descriptionId})]})]})})),O1="DialogTitle",hE=M.forwardRef(((e,t)=>{const{__scopeDialog:n,...r}=e,o=Aa(O1,n);return D.jsx(Mu.h2,{id:o.titleId,...r,ref:t})}));hE.displayName=O1;var mE="DialogDescription",gE=M.forwardRef(((e,t)=>{const{__scopeDialog:n,...r}=e,o=Aa(mE,n);return D.jsx(Mu.p,{id:o.descriptionId,...r,ref:t})}));gE.displayName=mE;var vE="DialogClose",yE=M.forwardRef(((e,t)=>{const{__scopeDialog:n,...r}=e,o=Aa(vE,n);return D.jsx(Mu.button,{type:"button",...r,ref:t,onClick:_f(e.onClick,(()=>o.onOpenChange(!1)))})}));function L1(e){return e?"open":"closed"}yE.displayName=vE;var _E="DialogTitleWarning",[C4,wE]=U$(_E,{contentName:tp,titleName:O1,docsSlug:"dialog"}),OI=({titleId:e})=>{const t=wE(_E),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.\n\nIf you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.\n\nFor more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return M.useEffect((()=>{e&&(document.getElementById(e)||console.error(n))}),[n,e]),null},LI="DialogDescriptionWarning",DI=({contentRef:e,descriptionId:t})=>{const n=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${wE(LI).contentName}}.`;return M.useEffect((()=>{var r;const o=null==(r=e.current)?void 0:r.getAttribute("aria-describedby");t&&o&&(document.getElementById(t)||console.warn(n))}),[n,e,t]),null},MI=aE,FI=cE,xE=fE,bE=dE,SE=hE,EE=gE,jI=yE;const D1=MI,UI=FI,CE=M.forwardRef((({className:e,...t},n)=>(M.useEffect((()=>{const e=document.querySelectorAll(".blured-modal-overlay");return e.forEach((e=>e&&(e.style.filter="blur(5px)"))),()=>{e.forEach((e=>e&&(e.style.filter="none")))}}),[]),D.jsx(xE,{ref:n,"data-testid":"dialog_overlay",className:ut("fixed inset-0 z-50 bg-slate-900 opacity-[0.7] data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t}))));CE.displayName=xE.displayName;const BI=em("",{variants:{closeVariant:{insideCard:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground",outsideCard:"fixed right-[30px] top-[30px] z-50"}},defaultVariants:{closeVariant:"outsideCard"}}),zI=em("",{variants:{closeSize:{small:"h-4 w-4",big:"h-[42px] w-[42px]"}},defaultVariants:{closeSize:"big"}}),x0=M.forwardRef((({className:e,showClose:t=!0,closeVariant:n="outsideCard",closeSize:r="big",children:o,overlayClassName:i,...a},s)=>{const l=D.jsxs(jI,{className:ut(BI({closeVariant:n})),children:[D.jsx(dk,{color:"#94A3B8",className:ut(zI({closeSize:r}))}),D.jsx("span",{className:"sr-only",children:"Close"})]});return D.jsxs(UI,{children:[D.jsx(CE,{className:i}),t&&"outsideCard"===n&&l,D.jsxs(bE,{ref:s,className:ut("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 !overflow-visible border bg-background p-5 shadow-lg outline-none duration-200 data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",e),...a,children:[D.jsx(kE,{className:"hidden",children:"DialogTitle"}),D.jsx(TE,{className:"hidden",children:"DialogDescription"}),o,t&&"insideCard"===n&&l]})]})}));x0.displayName=bE.displayName;const kE=M.forwardRef((({className:e,...t},n)=>D.jsx(SE,{ref:n,className:ut("text-lg font-semibold leading-none tracking-tight",e),...t})));kE.displayName=SE.displayName;const TE=M.forwardRef((({className:e,...t},n)=>D.jsx(EE,{ref:n,className:ut("text-sm text-muted-foreground",e),...t})));var Kt,B_;TE.displayName=EE.displayName,function(e){e.assertEqual=e=>e,e.assertIs=function(e){},e.assertNever=function(e){throw new Error},e.arrayToEnum=e=>{const t={};for(const n of e)t[n]=n;return t},e.getValidEnumValues=t=>{const n=e.objectKeys(t).filter((e=>"number"!=typeof t[t[e]])),r={};for(const e of n)r[e]=t[e];return e.objectValues(r)},e.objectValues=t=>e.objectKeys(t).map((function(e){return t[e]})),e.objectKeys="function"==typeof Object.keys?e=>Object.keys(e):e=>{const t=[];for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.push(n);return t},e.find=(e,t)=>{for(const n of e)if(t(n))return n},e.isInteger="function"==typeof Number.isInteger?e=>Number.isInteger(e):e=>"number"==typeof e&&isFinite(e)&&Math.floor(e)===e,e.joinValues=function(e,t=" | "){return e.map((e=>"string"==typeof e?`'${e}'`:e)).join(t)},e.jsonStringifyReplacer=(e,t)=>"bigint"==typeof t?t.toString():t}(Kt||(Kt={})),(B_||(B_={})).mergeShapes=(e,t)=>({...e,...t});const Ke=Kt.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),gf=e=>{switch(typeof e){case"undefined":return Ke.undefined;case"string":return Ke.string;case"number":return isNaN(e)?Ke.nan:Ke.number;case"boolean":return Ke.boolean;case"function":return Ke.function;case"bigint":return Ke.bigint;case"symbol":return Ke.symbol;case"object":return Array.isArray(e)?Ke.array:null===e?Ke.null:e.then&&"function"==typeof e.then&&e.catch&&"function"==typeof e.catch?Ke.promise:typeof Map<"u"&&e instanceof Map?Ke.map:typeof Set<"u"&&e instanceof Set?Ke.set:typeof Date<"u"&&e instanceof Date?Ke.date:Ke.object;default:return Ke.unknown}},Ce=Kt.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]),WI=e=>JSON.stringify(e,null,2).replace(/"([^"]+)":/g,"$1:");class is extends Error{constructor(e){super(),this.issues=[],this.addIssue=e=>{this.issues=[...this.issues,e]},this.addIssues=(e=[])=>{this.issues=[...this.issues,...e]};const t=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,t):this.__proto__=t,this.name="ZodError",this.issues=e}get errors(){return this.issues}format(e){const t=e||function(e){return e.message},n={_errors:[]},r=e=>{for(const o of e.issues)if("invalid_union"===o.code)o.unionErrors.map(r);else if("invalid_return_type"===o.code)r(o.returnTypeError);else if("invalid_arguments"===o.code)r(o.argumentsError);else if(0===o.path.length)n._errors.push(t(o));else{let e=n,r=0;for(;r<o.path.length;){const n=o.path[r];r===o.path.length-1?(e[n]=e[n]||{_errors:[]},e[n]._errors.push(t(o))):e[n]=e[n]||{_errors:[]},e=e[n],r++}}};return r(this),n}static assert(e){if(!(e instanceof is))throw new Error(`Not a ZodError: ${e}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,Kt.jsonStringifyReplacer,2)}get isEmpty(){return 0===this.issues.length}flatten(e=e=>e.message){const t={},n=[];for(const r of this.issues)r.path.length>0?(t[r.path[0]]=t[r.path[0]]||[],t[r.path[0]].push(e(r))):n.push(e(r));return{formErrors:n,fieldErrors:t}}get formErrors(){return this.flatten()}}is.create=e=>new is(e);const Kh=(e,t)=>{let n;switch(e.code){case Ce.invalid_type:n=e.received===Ke.undefined?"Required":`Expected ${e.expected}, received ${e.received}`;break;case Ce.invalid_literal:n=`Invalid literal value, expected ${JSON.stringify(e.expected,Kt.jsonStringifyReplacer)}`;break;case Ce.unrecognized_keys:n=`Unrecognized key(s) in object: ${Kt.joinValues(e.keys,", ")}`;break;case Ce.invalid_union:n="Invalid input";break;case Ce.invalid_union_discriminator:n=`Invalid discriminator value. Expected ${Kt.joinValues(e.options)}`;break;case Ce.invalid_enum_value:n=`Invalid enum value. Expected ${Kt.joinValues(e.options)}, received '${e.received}'`;break;case Ce.invalid_arguments:n="Invalid function arguments";break;case Ce.invalid_return_type:n="Invalid function return type";break;case Ce.invalid_date:n="Invalid date";break;case Ce.invalid_string:"object"==typeof e.validation?"includes"in e.validation?(n=`Invalid input: must include "${e.validation.includes}"`,"number"==typeof e.validation.position&&(n=`${n} at one or more positions greater than or equal to ${e.validation.position}`)):"startsWith"in e.validation?n=`Invalid input: must start with "${e.validation.startsWith}"`:"endsWith"in e.validation?n=`Invalid input: must end with "${e.validation.endsWith}"`:Kt.assertNever(e.validation):n="regex"!==e.validation?`Invalid ${e.validation}`:"Invalid";break;case Ce.too_small:n="array"===e.type?`Array must contain ${e.exact?"exactly":e.inclusive?"at least":"more than"} ${e.minimum} element(s)`:"string"===e.type?`String must contain ${e.exact?"exactly":e.inclusive?"at least":"over"} ${e.minimum} character(s)`:"number"===e.type?`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:"date"===e.type?`Date must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(e.minimum))}`:"Invalid input";break;case Ce.too_big:n="array"===e.type?`Array must contain ${e.exact?"exactly":e.inclusive?"at most":"less than"} ${e.maximum} element(s)`:"string"===e.type?`String must contain ${e.exact?"exactly":e.inclusive?"at most":"under"} ${e.maximum} character(s)`:"number"===e.type?`Number must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:"bigint"===e.type?`BigInt must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:"date"===e.type?`Date must be ${e.exact?"exactly":e.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(e.maximum))}`:"Invalid input";break;case Ce.custom:n="Invalid input";break;case Ce.invalid_intersection_types:n="Intersection results could not be merged";break;case Ce.not_multiple_of:n=`Number must be a multiple of ${e.multipleOf}`;break;case Ce.not_finite:n="Number must be finite";break;default:n=t.defaultError,Kt.assertNever(e)}return{message:n}};let AE=Kh;function VI(e){AE=e}function Yv(){return AE}const Qv=e=>{const{data:t,path:n,errorMaps:r,issueData:o}=e,i=[...n,...o.path||[]],a={...o,path:i};if(void 0!==o.message)return{...o,path:i,message:o.message};let s="";const l=r.filter((e=>!!e)).slice().reverse();for(const e of l)s=e(a,{data:t,defaultError:s}).message;return{...o,path:i,message:s}},HI=[];function Ue(e,t){const n=Yv(),r=Qv({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,n,n===Kh?void 0:Kh].filter((e=>!!e))});e.common.issues.push(r)}class zi{constructor(){this.value="valid"}dirty(){"valid"===this.value&&(this.value="dirty")}abort(){"aborted"!==this.value&&(this.value="aborted")}static mergeArray(e,t){const n=[];for(const r of t){if("aborted"===r.status)return _t;"dirty"===r.status&&e.dirty(),n.push(r.value)}return{status:e.value,value:n}}static async mergeObjectAsync(e,t){const n=[];for(const e of t){const t=await e.key,r=await e.value;n.push({key:t,value:r})}return zi.mergeObjectSync(e,n)}static mergeObjectSync(e,t){const n={};for(const r of t){const{key:t,value:o}=r;if("aborted"===t.status||"aborted"===o.status)return _t;"dirty"===t.status&&e.dirty(),"dirty"===o.status&&e.dirty(),"__proto__"!==t.value&&(typeof o.value<"u"||r.alwaysSet)&&(n[t.value]=o.value)}return{status:e.value,value:n}}}const _t=Object.freeze({status:"aborted"}),Mh=e=>({status:"dirty",value:e}),so=e=>({status:"valid",value:e}),z_=e=>"aborted"===e.status,W_=e=>"dirty"===e.status,wg=e=>"valid"===e.status,xg=e=>typeof Promise<"u"&&e instanceof Promise;function Xv(e,t,n,r){if("function"==typeof t?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return t.get(e)}function NE(e,t,n,r,o){if("function"==typeof t?e!==t||!o:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return t.set(e,n),n}var lt,ag,lg;!function(e){e.errToObj=e=>"string"==typeof e?{message:e}:e||{},e.toString=e=>"string"==typeof e?e:null==e?void 0:e.message}(lt||(lt={}));class Cl{constructor(e,t,n,r){this._cachedPath=[],this.parent=e,this.data=t,this._path=n,this._key=r}get path(){return this._cachedPath.length||(this._key instanceof Array?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}}const cx=(e,t)=>{if(wg(t))return{success:!0,data:t.value};if(!e.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;const t=new is(e.common.issues);return this._error=t,this._error}}};function Nt(e){if(!e)return{};const{errorMap:t,invalid_type_error:n,required_error:r,description:o}=e;if(t&&(n||r))throw new Error('Can\'t use "invalid_type_error" or "required_error" in conjunction with custom error map.');return t?{errorMap:t,description:o}:{errorMap:(t,o)=>{var i,a;const{message:s}=e;return"invalid_enum_value"===t.code?{message:s??o.defaultError}:typeof o.data>"u"?{message:null!==(i=s??r)&&void 0!==i?i:o.defaultError}:"invalid_type"!==t.code?{message:o.defaultError}:{message:null!==(a=s??n)&&void 0!==a?a:o.defaultError}},description:o}}class It{constructor(e){this.spa=this.safeParseAsync,this._def=e,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this)}get description(){return this._def.description}_getType(e){return gf(e.data)}_getOrReturnCtx(e,t){return t||{common:e.parent.common,data:e.data,parsedType:gf(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}_processInputParams(e){return{status:new zi,ctx:{common:e.parent.common,data:e.data,parsedType:gf(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}}_parseSync(e){const t=this._parse(e);if(xg(t))throw new Error("Synchronous parse encountered promise.");return t}_parseAsync(e){const t=this._parse(e);return Promise.resolve(t)}parse(e,t){const n=this.safeParse(e,t);if(n.success)return n.data;throw n.error}safeParse(e,t){var n;const r={common:{issues:[],async:null!==(n=null==t?void 0:t.async)&&void 0!==n&&n,contextualErrorMap:null==t?void 0:t.errorMap},path:(null==t?void 0:t.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:gf(e)},o=this._parseSync({data:e,path:r.path,parent:r});return cx(r,o)}async parseAsync(e,t){const n=await this.safeParseAsync(e,t);if(n.success)return n.data;throw n.error}async safeParseAsync(e,t){const n={common:{issues:[],contextualErrorMap:null==t?void 0:t.errorMap,async:!0},path:(null==t?void 0:t.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:gf(e)},r=this._parse({data:e,path:n.path,parent:n}),o=await(xg(r)?r:Promise.resolve(r));return cx(n,o)}refine(e,t){const n=e=>"string"==typeof t||typeof t>"u"?{message:t}:"function"==typeof t?t(e):t;return this._refinement(((t,r)=>{const o=e(t),i=()=>r.addIssue({code:Ce.custom,...n(t)});return typeof Promise<"u"&&o instanceof Promise?o.then((e=>!!e||(i(),!1))):!!o||(i(),!1)}))}refinement(e,t){return this._refinement(((n,r)=>!!e(n)||(r.addIssue("function"==typeof t?t(n,r):t),!1)))}_refinement(e){return new Ta({schema:this,typeName:yt.ZodEffects,effect:{type:"refinement",refinement:e}})}superRefine(e){return this._refinement(e)}optional(){return xl.create(this,this._def)}nullable(){return Nf.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return ka.create(this,this._def)}promise(){return Yh.create(this,this._def)}or(e){return Cg.create([this,e],this._def)}and(e){return kg.create(this,e,this._def)}transform(e){return new Ta({...Nt(this._def),schema:this,typeName:yt.ZodEffects,effect:{type:"transform",transform:e}})}default(e){const t="function"==typeof e?e:()=>e;return new $g({...Nt(this._def),innerType:this,defaultValue:t,typeName:yt.ZodDefault})}brand(){return new M1({typeName:yt.ZodBranded,type:this,...Nt(this._def)})}catch(e){const t="function"==typeof e?e:()=>e;return new Ig({...Nt(this._def),innerType:this,catchValue:t,typeName:yt.ZodCatch})}describe(e){return new(0,this.constructor)({...this._def,description:e})}pipe(e){return zg.create(this,e)}readonly(){return Pg.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}const GI=/^c[^\s-]{8,}$/i,ZI=/^[0-9a-z]+$/,KI=/^[0-9A-HJKMNP-TV-Z]{26}$/,qI=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,YI=/^[a-z0-9_-]{21}$/i,QI=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,XI=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,JI="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";let x_;const eP=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,tP=/^(([a-f0-9]{1,4}:){7}|::([a-f0-9]{1,4}:){0,6}|([a-f0-9]{1,4}:){1}:([a-f0-9]{1,4}:){0,5}|([a-f0-9]{1,4}:){2}:([a-f0-9]{1,4}:){0,4}|([a-f0-9]{1,4}:){3}:([a-f0-9]{1,4}:){0,3}|([a-f0-9]{1,4}:){4}:([a-f0-9]{1,4}:){0,2}|([a-f0-9]{1,4}:){5}:([a-f0-9]{1,4}:){0,1})([a-f0-9]{1,4}|(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2})))$/,nP=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,RE="((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))",rP=new RegExp(`^${RE}$`);function $E(e){let t="([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d";return e.precision?t=`${t}\\.\\d{${e.precision}}`:null==e.precision&&(t=`${t}(\\.\\d+)?`),t}function iP(e){return new RegExp(`^${$E(e)}$`)}function IE(e){let t=`${RE}T${$E(e)}`;const n=[];return n.push(e.local?"Z?":"Z"),e.offset&&n.push("([+-]\\d{2}:?\\d{2})"),t=`${t}(${n.join("|")})`,new RegExp(`^${t}$`)}function oP(e,t){return!(("v4"!==t&&t||!eP.test(e))&&("v6"!==t&&t||!tP.test(e)))}class Ca extends It{_parse(e){if(this._def.coerce&&(e.data=String(e.data)),this._getType(e)!==Ke.string){const t=this._getOrReturnCtx(e);return Ue(t,{code:Ce.invalid_type,expected:Ke.string,received:t.parsedType}),_t}const t=new zi;let n;for(const r of this._def.checks)if("min"===r.kind)e.data.length<r.value&&(n=this._getOrReturnCtx(e,n),Ue(n,{code:Ce.too_small,minimum:r.value,type:"string",inclusive:!0,exact:!1,message:r.message}),t.dirty());else if("max"===r.kind)e.data.length>r.value&&(n=this._getOrReturnCtx(e,n),Ue(n,{code:Ce.too_big,maximum:r.value,type:"string",inclusive:!0,exact:!1,message:r.message}),t.dirty());else if("length"===r.kind){const o=e.data.length>r.value,i=e.data.length<r.value;(o||i)&&(n=this._getOrReturnCtx(e,n),o?Ue(n,{code:Ce.too_big,maximum:r.value,type:"string",inclusive:!0,exact:!0,message:r.message}):i&&Ue(n,{code:Ce.too_small,minimum:r.value,type:"string",inclusive:!0,exact:!0,message:r.message}),t.dirty())}else if("email"===r.kind)XI.test(e.data)||(n=this._getOrReturnCtx(e,n),Ue(n,{validation:"email",code:Ce.invalid_string,message:r.message}),t.dirty());else if("emoji"===r.kind)x_||(x_=new RegExp(JI,"u")),x_.test(e.data)||(n=this._getOrReturnCtx(e,n),Ue(n,{validation:"emoji",code:Ce.invalid_string,message:r.message}),t.dirty());else if("uuid"===r.kind)qI.test(e.data)||(n=this._getOrReturnCtx(e,n),Ue(n,{validation:"uuid",code:Ce.invalid_string,message:r.message}),t.dirty());else if("nanoid"===r.kind)YI.test(e.data)||(n=this._getOrReturnCtx(e,n),Ue(n,{validation:"nanoid",code:Ce.invalid_string,message:r.message}),t.dirty());else if("cuid"===r.kind)GI.test(e.data)||(n=this._getOrReturnCtx(e,n),Ue(n,{validation:"cuid",code:Ce.invalid_string,message:r.message}),t.dirty());else if("cuid2"===r.kind)ZI.test(e.data)||(n=this._getOrReturnCtx(e,n),Ue(n,{validation:"cuid2",code:Ce.invalid_string,message:r.message}),t.dirty());else if("ulid"===r.kind)KI.test(e.data)||(n=this._getOrReturnCtx(e,n),Ue(n,{validation:"ulid",code:Ce.invalid_string,message:r.message}),t.dirty());else if("url"===r.kind)try{new URL(e.data)}catch{n=this._getOrReturnCtx(e,n),Ue(n,{validation:"url",code:Ce.invalid_string,message:r.message}),t.dirty()}else"regex"===r.kind?(r.regex.lastIndex=0,r.regex.test(e.data)||(n=this._getOrReturnCtx(e,n),Ue(n,{validation:"regex",code:Ce.invalid_string,message:r.message}),t.dirty())):"trim"===r.kind?e.data=e.data.trim():"includes"===r.kind?e.data.includes(r.value,r.position)||(n=this._getOrReturnCtx(e,n),Ue(n,{code:Ce.invalid_string,validation:{includes:r.value,position:r.position},message:r.message}),t.dirty()):"toLowerCase"===r.kind?e.data=e.data.toLowerCase():"toUpperCase"===r.kind?e.data=e.data.toUpperCase():"startsWith"===r.kind?e.data.startsWith(r.value)||(n=this._getOrReturnCtx(e,n),Ue(n,{code:Ce.invalid_string,validation:{startsWith:r.value},message:r.message}),t.dirty()):"endsWith"===r.kind?e.data.endsWith(r.value)||(n=this._getOrReturnCtx(e,n),Ue(n,{code:Ce.invalid_string,validation:{endsWith:r.value},message:r.message}),t.dirty()):"datetime"===r.kind?IE(r).test(e.data)||(n=this._getOrReturnCtx(e,n),Ue(n,{code:Ce.invalid_string,validation:"datetime",message:r.message}),t.dirty()):"date"===r.kind?rP.test(e.data)||(n=this._getOrReturnCtx(e,n),Ue(n,{code:Ce.invalid_string,validation:"date",message:r.message}),t.dirty()):"time"===r.kind?iP(r).test(e.data)||(n=this._getOrReturnCtx(e,n),Ue(n,{code:Ce.invalid_string,validation:"time",message:r.message}),t.dirty()):"duration"===r.kind?QI.test(e.data)||(n=this._getOrReturnCtx(e,n),Ue(n,{validation:"duration",code:Ce.invalid_string,message:r.message}),t.dirty()):"ip"===r.kind?oP(e.data,r.version)||(n=this._getOrReturnCtx(e,n),Ue(n,{validation:"ip",code:Ce.invalid_string,message:r.message}),t.dirty()):"base64"===r.kind?nP.test(e.data)||(n=this._getOrReturnCtx(e,n),Ue(n,{validation:"base64",code:Ce.invalid_string,message:r.message}),t.dirty()):Kt.assertNever(r);return{status:t.value,value:e.data}}_regex(e,t,n){return this.refinement((t=>e.test(t)),{validation:t,code:Ce.invalid_string,...lt.errToObj(n)})}_addCheck(e){return new Ca({...this._def,checks:[...this._def.checks,e]})}email(e){return this._addCheck({kind:"email",...lt.errToObj(e)})}url(e){return this._addCheck({kind:"url",...lt.errToObj(e)})}emoji(e){return this._addCheck({kind:"emoji",...lt.errToObj(e)})}uuid(e){return this._addCheck({kind:"uuid",...lt.errToObj(e)})}nanoid(e){return this._addCheck({kind:"nanoid",...lt.errToObj(e)})}cuid(e){return this._addCheck({kind:"cuid",...lt.errToObj(e)})}cuid2(e){return this._addCheck({kind:"cuid2",...lt.errToObj(e)})}ulid(e){return this._addCheck({kind:"ulid",...lt.errToObj(e)})}base64(e){return this._addCheck({kind:"base64",...lt.errToObj(e)})}ip(e){return this._addCheck({kind:"ip",...lt.errToObj(e)})}datetime(e){var t,n;return"string"==typeof e?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:e}):this._addCheck({kind:"datetime",precision:typeof(null==e?void 0:e.precision)>"u"?null:null==e?void 0:e.precision,offset:null!==(t=null==e?void 0:e.offset)&&void 0!==t&&t,local:null!==(n=null==e?void 0:e.local)&&void 0!==n&&n,...lt.errToObj(null==e?void 0:e.message)})}date(e){return this._addCheck({kind:"date",message:e})}time(e){return"string"==typeof e?this._addCheck({kind:"time",precision:null,message:e}):this._addCheck({kind:"time",precision:typeof(null==e?void 0:e.precision)>"u"?null:null==e?void 0:e.precision,...lt.errToObj(null==e?void 0:e.message)})}duration(e){return this._addCheck({kind:"duration",...lt.errToObj(e)})}regex(e,t){return this._addCheck({kind:"regex",regex:e,...lt.errToObj(t)})}includes(e,t){return this._addCheck({kind:"includes",value:e,position:null==t?void 0:t.position,...lt.errToObj(null==t?void 0:t.message)})}startsWith(e,t){return this._addCheck({kind:"startsWith",value:e,...lt.errToObj(t)})}endsWith(e,t){return this._addCheck({kind:"endsWith",value:e,...lt.errToObj(t)})}min(e,t){return this._addCheck({kind:"min",value:e,...lt.errToObj(t)})}max(e,t){return this._addCheck({kind:"max",value:e,...lt.errToObj(t)})}length(e,t){return this._addCheck({kind:"length",value:e,...lt.errToObj(t)})}nonempty(e){return this.min(1,lt.errToObj(e))}trim(){return new Ca({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new Ca({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new Ca({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find((e=>"datetime"===e.kind))}get isDate(){return!!this._def.checks.find((e=>"date"===e.kind))}get isTime(){return!!this._def.checks.find((e=>"time"===e.kind))}get isDuration(){return!!this._def.checks.find((e=>"duration"===e.kind))}get isEmail(){return!!this._def.checks.find((e=>"email"===e.kind))}get isURL(){return!!this._def.checks.find((e=>"url"===e.kind))}get isEmoji(){return!!this._def.checks.find((e=>"emoji"===e.kind))}get isUUID(){return!!this._def.checks.find((e=>"uuid"===e.kind))}get isNANOID(){return!!this._def.checks.find((e=>"nanoid"===e.kind))}get isCUID(){return!!this._def.checks.find((e=>"cuid"===e.kind))}get isCUID2(){return!!this._def.checks.find((e=>"cuid2"===e.kind))}get isULID(){return!!this._def.checks.find((e=>"ulid"===e.kind))}get isIP(){return!!this._def.checks.find((e=>"ip"===e.kind))}get isBase64(){return!!this._def.checks.find((e=>"base64"===e.kind))}get minLength(){let e=null;for(const t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return e}get maxLength(){let e=null;for(const t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return e}}function sP(e,t){const n=(e.toString().split(".")[1]||"").length,r=(t.toString().split(".")[1]||"").length,o=n>r?n:r;return parseInt(e.toFixed(o).replace(".",""))%parseInt(t.toFixed(o).replace(".",""))/Math.pow(10,o)}Ca.create=e=>{var t;return new Ca({checks:[],typeName:yt.ZodString,coerce:null!==(t=null==e?void 0:e.coerce)&&void 0!==t&&t,...Nt(e)})};class kf extends It{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(e){if(this._def.coerce&&(e.data=Number(e.data)),this._getType(e)!==Ke.number){const t=this._getOrReturnCtx(e);return Ue(t,{code:Ce.invalid_type,expected:Ke.number,received:t.parsedType}),_t}let t;const n=new zi;for(const r of this._def.checks)"int"===r.kind?Kt.isInteger(e.data)||(t=this._getOrReturnCtx(e,t),Ue(t,{code:Ce.invalid_type,expected:"integer",received:"float",message:r.message}),n.dirty()):"min"===r.kind?(r.inclusive?e.data<r.value:e.data<=r.value)&&(t=this._getOrReturnCtx(e,t),Ue(t,{code:Ce.too_small,minimum:r.value,type:"number",inclusive:r.inclusive,exact:!1,message:r.message}),n.dirty()):"max"===r.kind?(r.inclusive?e.data>r.value:e.data>=r.value)&&(t=this._getOrReturnCtx(e,t),Ue(t,{code:Ce.too_big,maximum:r.value,type:"number",inclusive:r.inclusive,exact:!1,message:r.message}),n.dirty()):"multipleOf"===r.kind?0!==sP(e.data,r.value)&&(t=this._getOrReturnCtx(e,t),Ue(t,{code:Ce.not_multiple_of,multipleOf:r.value,message:r.message}),n.dirty()):"finite"===r.kind?Number.isFinite(e.data)||(t=this._getOrReturnCtx(e,t),Ue(t,{code:Ce.not_finite,message:r.message}),n.dirty()):Kt.assertNever(r);return{status:n.value,value:e.data}}gte(e,t){return this.setLimit("min",e,!0,lt.toString(t))}gt(e,t){return this.setLimit("min",e,!1,lt.toString(t))}lte(e,t){return this.setLimit("max",e,!0,lt.toString(t))}lt(e,t){return this.setLimit("max",e,!1,lt.toString(t))}setLimit(e,t,n,r){return new kf({...this._def,checks:[...this._def.checks,{kind:e,value:t,inclusive:n,message:lt.toString(r)}]})}_addCheck(e){return new kf({...this._def,checks:[...this._def.checks,e]})}int(e){return this._addCheck({kind:"int",message:lt.toString(e)})}positive(e){return this._addCheck({kind:"min",value:0,inclusive:!1,message:lt.toString(e)})}negative(e){return this._addCheck({kind:"max",value:0,inclusive:!1,message:lt.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:0,inclusive:!0,message:lt.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:0,inclusive:!0,message:lt.toString(e)})}multipleOf(e,t){return this._addCheck({kind:"multipleOf",value:e,message:lt.toString(t)})}finite(e){return this._addCheck({kind:"finite",message:lt.toString(e)})}safe(e){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:lt.toString(e)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:lt.toString(e)})}get minValue(){let e=null;for(const t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return e}get maxValue(){let e=null;for(const t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return e}get isInt(){return!!this._def.checks.find((e=>"int"===e.kind||"multipleOf"===e.kind&&Kt.isInteger(e.value)))}get isFinite(){let e=null,t=null;for(const n of this._def.checks){if("finite"===n.kind||"int"===n.kind||"multipleOf"===n.kind)return!0;"min"===n.kind?(null===t||n.value>t)&&(t=n.value):"max"===n.kind&&(null===e||n.value<e)&&(e=n.value)}return Number.isFinite(t)&&Number.isFinite(e)}}kf.create=e=>new kf({checks:[],typeName:yt.ZodNumber,coerce:(null==e?void 0:e.coerce)||!1,...Nt(e)});class Tf extends It{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(e){if(this._def.coerce&&(e.data=BigInt(e.data)),this._getType(e)!==Ke.bigint){const t=this._getOrReturnCtx(e);return Ue(t,{code:Ce.invalid_type,expected:Ke.bigint,received:t.parsedType}),_t}let t;const n=new zi;for(const r of this._def.checks)"min"===r.kind?(r.inclusive?e.data<r.value:e.data<=r.value)&&(t=this._getOrReturnCtx(e,t),Ue(t,{code:Ce.too_small,type:"bigint",minimum:r.value,inclusive:r.inclusive,message:r.message}),n.dirty()):"max"===r.kind?(r.inclusive?e.data>r.value:e.data>=r.value)&&(t=this._getOrReturnCtx(e,t),Ue(t,{code:Ce.too_big,type:"bigint",maximum:r.value,inclusive:r.inclusive,message:r.message}),n.dirty()):"multipleOf"===r.kind?e.data%r.value!==BigInt(0)&&(t=this._getOrReturnCtx(e,t),Ue(t,{code:Ce.not_multiple_of,multipleOf:r.value,message:r.message}),n.dirty()):Kt.assertNever(r);return{status:n.value,value:e.data}}gte(e,t){return this.setLimit("min",e,!0,lt.toString(t))}gt(e,t){return this.setLimit("min",e,!1,lt.toString(t))}lte(e,t){return this.setLimit("max",e,!0,lt.toString(t))}lt(e,t){return this.setLimit("max",e,!1,lt.toString(t))}setLimit(e,t,n,r){return new Tf({...this._def,checks:[...this._def.checks,{kind:e,value:t,inclusive:n,message:lt.toString(r)}]})}_addCheck(e){return new Tf({...this._def,checks:[...this._def.checks,e]})}positive(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:lt.toString(e)})}negative(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:lt.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:lt.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:lt.toString(e)})}multipleOf(e,t){return this._addCheck({kind:"multipleOf",value:e,message:lt.toString(t)})}get minValue(){let e=null;for(const t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return e}get maxValue(){let e=null;for(const t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return e}}Tf.create=e=>{var t;return new Tf({checks:[],typeName:yt.ZodBigInt,coerce:null!==(t=null==e?void 0:e.coerce)&&void 0!==t&&t,...Nt(e)})};class bg extends It{_parse(e){if(this._def.coerce&&(e.data=!!e.data),this._getType(e)!==Ke.boolean){const t=this._getOrReturnCtx(e);return Ue(t,{code:Ce.invalid_type,expected:Ke.boolean,received:t.parsedType}),_t}return so(e.data)}}bg.create=e=>new bg({typeName:yt.ZodBoolean,coerce:(null==e?void 0:e.coerce)||!1,...Nt(e)});class np extends It{_parse(e){if(this._def.coerce&&(e.data=new Date(e.data)),this._getType(e)!==Ke.date){const t=this._getOrReturnCtx(e);return Ue(t,{code:Ce.invalid_type,expected:Ke.date,received:t.parsedType}),_t}if(isNaN(e.data.getTime())){return Ue(this._getOrReturnCtx(e),{code:Ce.invalid_date}),_t}const t=new zi;let n;for(const r of this._def.checks)"min"===r.kind?e.data.getTime()<r.value&&(n=this._getOrReturnCtx(e,n),Ue(n,{code:Ce.too_small,message:r.message,inclusive:!0,exact:!1,minimum:r.value,type:"date"}),t.dirty()):"max"===r.kind?e.data.getTime()>r.value&&(n=this._getOrReturnCtx(e,n),Ue(n,{code:Ce.too_big,message:r.message,inclusive:!0,exact:!1,maximum:r.value,type:"date"}),t.dirty()):Kt.assertNever(r);return{status:t.value,value:new Date(e.data.getTime())}}_addCheck(e){return new np({...this._def,checks:[...this._def.checks,e]})}min(e,t){return this._addCheck({kind:"min",value:e.getTime(),message:lt.toString(t)})}max(e,t){return this._addCheck({kind:"max",value:e.getTime(),message:lt.toString(t)})}get minDate(){let e=null;for(const t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return null!=e?new Date(e):null}get maxDate(){let e=null;for(const t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return null!=e?new Date(e):null}}np.create=e=>new np({checks:[],coerce:(null==e?void 0:e.coerce)||!1,typeName:yt.ZodDate,...Nt(e)});class Jv extends It{_parse(e){if(this._getType(e)!==Ke.symbol){const t=this._getOrReturnCtx(e);return Ue(t,{code:Ce.invalid_type,expected:Ke.symbol,received:t.parsedType}),_t}return so(e.data)}}Jv.create=e=>new Jv({typeName:yt.ZodSymbol,...Nt(e)});class Sg extends It{_parse(e){if(this._getType(e)!==Ke.undefined){const t=this._getOrReturnCtx(e);return Ue(t,{code:Ce.invalid_type,expected:Ke.undefined,received:t.parsedType}),_t}return so(e.data)}}Sg.create=e=>new Sg({typeName:yt.ZodUndefined,...Nt(e)});class Eg extends It{_parse(e){if(this._getType(e)!==Ke.null){const t=this._getOrReturnCtx(e);return Ue(t,{code:Ce.invalid_type,expected:Ke.null,received:t.parsedType}),_t}return so(e.data)}}Eg.create=e=>new Eg({typeName:yt.ZodNull,...Nt(e)});class qh extends It{constructor(){super(...arguments),this._any=!0}_parse(e){return so(e.data)}}qh.create=e=>new qh({typeName:yt.ZodAny,...Nt(e)});class Qd extends It{constructor(){super(...arguments),this._unknown=!0}_parse(e){return so(e.data)}}Qd.create=e=>new Qd({typeName:yt.ZodUnknown,...Nt(e)});class Lu extends It{_parse(e){const t=this._getOrReturnCtx(e);return Ue(t,{code:Ce.invalid_type,expected:Ke.never,received:t.parsedType}),_t}}Lu.create=e=>new Lu({typeName:yt.ZodNever,...Nt(e)});class e0 extends It{_parse(e){if(this._getType(e)!==Ke.undefined){const t=this._getOrReturnCtx(e);return Ue(t,{code:Ce.invalid_type,expected:Ke.void,received:t.parsedType}),_t}return so(e.data)}}e0.create=e=>new e0({typeName:yt.ZodVoid,...Nt(e)});class ka extends It{_parse(e){const{ctx:t,status:n}=this._processInputParams(e),r=this._def;if(t.parsedType!==Ke.array)return Ue(t,{code:Ce.invalid_type,expected:Ke.array,received:t.parsedType}),_t;if(null!==r.exactLength){const e=t.data.length>r.exactLength.value,o=t.data.length<r.exactLength.value;(e||o)&&(Ue(t,{code:e?Ce.too_big:Ce.too_small,minimum:o?r.exactLength.value:void 0,maximum:e?r.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:r.exactLength.message}),n.dirty())}if(null!==r.minLength&&t.data.length<r.minLength.value&&(Ue(t,{code:Ce.too_small,minimum:r.minLength.value,type:"array",inclusive:!0,exact:!1,message:r.minLength.message}),n.dirty()),null!==r.maxLength&&t.data.length>r.maxLength.value&&(Ue(t,{code:Ce.too_big,maximum:r.maxLength.value,type:"array",inclusive:!0,exact:!1,message:r.maxLength.message}),n.dirty()),t.common.async)return Promise.all([...t.data].map(((e,n)=>r.type._parseAsync(new Cl(t,e,t.path,n))))).then((e=>zi.mergeArray(n,e)));const o=[...t.data].map(((e,n)=>r.type._parseSync(new Cl(t,e,t.path,n))));return zi.mergeArray(n,o)}get element(){return this._def.type}min(e,t){return new ka({...this._def,minLength:{value:e,message:lt.toString(t)}})}max(e,t){return new ka({...this._def,maxLength:{value:e,message:lt.toString(t)}})}length(e,t){return new ka({...this._def,exactLength:{value:e,message:lt.toString(t)}})}nonempty(e){return this.min(1,e)}}function Ih(e){if(e instanceof Gn){const t={};for(const n in e.shape){const r=e.shape[n];t[n]=xl.create(Ih(r))}return new Gn({...e._def,shape:()=>t})}return e instanceof ka?new ka({...e._def,type:Ih(e.element)}):e instanceof xl?xl.create(Ih(e.unwrap())):e instanceof Nf?Nf.create(Ih(e.unwrap())):e instanceof kl?kl.create(e.items.map((e=>Ih(e)))):e}ka.create=(e,t)=>new ka({type:e,minLength:null,maxLength:null,exactLength:null,typeName:yt.ZodArray,...Nt(t)});class Gn extends It{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(null!==this._cached)return this._cached;const e=this._def.shape(),t=Kt.objectKeys(e);return this._cached={shape:e,keys:t}}_parse(e){if(this._getType(e)!==Ke.object){const t=this._getOrReturnCtx(e);return Ue(t,{code:Ce.invalid_type,expected:Ke.object,received:t.parsedType}),_t}const{status:t,ctx:n}=this._processInputParams(e),{shape:r,keys:o}=this._getCached(),i=[];if(!(this._def.catchall instanceof Lu&&"strip"===this._def.unknownKeys))for(const e in n.data)o.includes(e)||i.push(e);const a=[];for(const e of o){const t=r[e],o=n.data[e];a.push({key:{status:"valid",value:e},value:t._parse(new Cl(n,o,n.path,e)),alwaysSet:e in n.data})}if(this._def.catchall instanceof Lu){const e=this._def.unknownKeys;if("passthrough"===e)for(const e of i)a.push({key:{status:"valid",value:e},value:{status:"valid",value:n.data[e]}});else if("strict"===e)i.length>0&&(Ue(n,{code:Ce.unrecognized_keys,keys:i}),t.dirty());else if("strip"!==e)throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{const e=this._def.catchall;for(const t of i){const r=n.data[t];a.push({key:{status:"valid",value:t},value:e._parse(new Cl(n,r,n.path,t)),alwaysSet:t in n.data})}}return n.common.async?Promise.resolve().then((async()=>{const e=[];for(const t of a){const n=await t.key,r=await t.value;e.push({key:n,value:r,alwaysSet:t.alwaysSet})}return e})).then((e=>zi.mergeObjectSync(t,e))):zi.mergeObjectSync(t,a)}get shape(){return this._def.shape()}strict(e){return lt.errToObj,new Gn({...this._def,unknownKeys:"strict",...void 0!==e?{errorMap:(t,n)=>{var r,o,i,a;const s=null!==(i=null===(o=(r=this._def).errorMap)||void 0===o?void 0:o.call(r,t,n).message)&&void 0!==i?i:n.defaultError;return"unrecognized_keys"===t.code?{message:null!==(a=lt.errToObj(e).message)&&void 0!==a?a:s}:{message:s}}}:{}})}strip(){return new Gn({...this._def,unknownKeys:"strip"})}passthrough(){return new Gn({...this._def,unknownKeys:"passthrough"})}extend(e){return new Gn({...this._def,shape:()=>({...this._def.shape(),...e})})}merge(e){return new Gn({unknownKeys:e._def.unknownKeys,catchall:e._def.catchall,shape:()=>({...this._def.shape(),...e._def.shape()}),typeName:yt.ZodObject})}setKey(e,t){return this.augment({[e]:t})}catchall(e){return new Gn({...this._def,catchall:e})}pick(e){const t={};return Kt.objectKeys(e).forEach((n=>{e[n]&&this.shape[n]&&(t[n]=this.shape[n])})),new Gn({...this._def,shape:()=>t})}omit(e){const t={};return Kt.objectKeys(this.shape).forEach((n=>{e[n]||(t[n]=this.shape[n])})),new Gn({...this._def,shape:()=>t})}deepPartial(){return Ih(this)}partial(e){const t={};return Kt.objectKeys(this.shape).forEach((n=>{const r=this.shape[n];e&&!e[n]?t[n]=r:t[n]=r.optional()})),new Gn({...this._def,shape:()=>t})}required(e){const t={};return Kt.objectKeys(this.shape).forEach((n=>{if(e&&!e[n])t[n]=this.shape[n];else{let e=this.shape[n];for(;e instanceof xl;)e=e._def.innerType;t[n]=e}})),new Gn({...this._def,shape:()=>t})}keyof(){return PE(Kt.objectKeys(this.shape))}}Gn.create=(e,t)=>new Gn({shape:()=>e,unknownKeys:"strip",catchall:Lu.create(),typeName:yt.ZodObject,...Nt(t)}),Gn.strictCreate=(e,t)=>new Gn({shape:()=>e,unknownKeys:"strict",catchall:Lu.create(),typeName:yt.ZodObject,...Nt(t)}),Gn.lazycreate=(e,t)=>new Gn({shape:e,unknownKeys:"strip",catchall:Lu.create(),typeName:yt.ZodObject,...Nt(t)});class Cg extends It{_parse(e){const{ctx:t}=this._processInputParams(e),n=this._def.options;if(t.common.async)return Promise.all(n.map((async e=>{const n={...t,common:{...t.common,issues:[]},parent:null};return{result:await e._parseAsync({data:t.data,path:t.path,parent:n}),ctx:n}}))).then((function(e){for(const t of e)if("valid"===t.result.status)return t.result;for(const n of e)if("dirty"===n.result.status)return t.common.issues.push(...n.ctx.common.issues),n.result;const n=e.map((e=>new is(e.ctx.common.issues)));return Ue(t,{code:Ce.invalid_union,unionErrors:n}),_t}));{let e;const r=[];for(const o of n){const n={...t,common:{...t.common,issues:[]},parent:null},i=o._parseSync({data:t.data,path:t.path,parent:n});if("valid"===i.status)return i;"dirty"===i.status&&!e&&(e={result:i,ctx:n}),n.common.issues.length&&r.push(n.common.issues)}if(e)return t.common.issues.push(...e.ctx.common.issues),e.result;const o=r.map((e=>new is(e)));return Ue(t,{code:Ce.invalid_union,unionErrors:o}),_t}}get options(){return this._def.options}}Cg.create=(e,t)=>new Cg({options:e,typeName:yt.ZodUnion,...Nt(t)});const Ru=e=>e instanceof Ag?Ru(e.schema):e instanceof Ta?Ru(e.innerType()):e instanceof Ng?[e.value]:e instanceof Af?e.options:e instanceof Rg?Kt.objectValues(e.enum):e instanceof $g?Ru(e._def.innerType):e instanceof Sg?[void 0]:e instanceof Eg?[null]:e instanceof xl?[void 0,...Ru(e.unwrap())]:e instanceof Nf?[null,...Ru(e.unwrap())]:e instanceof M1||e instanceof Pg?Ru(e.unwrap()):e instanceof Ig?Ru(e._def.innerType):[];class b0 extends It{_parse(e){const{ctx:t}=this._processInputParams(e);if(t.parsedType!==Ke.object)return Ue(t,{code:Ce.invalid_type,expected:Ke.object,received:t.parsedType}),_t;const n=this.discriminator,r=t.data[n],o=this.optionsMap.get(r);return o?t.common.async?o._parseAsync({data:t.data,path:t.path,parent:t}):o._parseSync({data:t.data,path:t.path,parent:t}):(Ue(t,{code:Ce.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[n]}),_t)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(e,t,n){const r=new Map;for(const n of t){const t=Ru(n.shape[e]);if(!t.length)throw new Error(`A discriminator value for key \`${e}\` could not be extracted from all schema options`);for(const o of t){if(r.has(o))throw new Error(`Discriminator property ${String(e)} has duplicate value ${String(o)}`);r.set(o,n)}}return new b0({typeName:yt.ZodDiscriminatedUnion,discriminator:e,options:t,optionsMap:r,...Nt(n)})}}function V_(e,t){const n=gf(e),r=gf(t);if(e===t)return{valid:!0,data:e};if(n===Ke.object&&r===Ke.object){const n=Kt.objectKeys(t),r=Kt.objectKeys(e).filter((e=>-1!==n.indexOf(e))),o={...e,...t};for(const n of r){const r=V_(e[n],t[n]);if(!r.valid)return{valid:!1};o[n]=r.data}return{valid:!0,data:o}}if(n===Ke.array&&r===Ke.array){if(e.length!==t.length)return{valid:!1};const n=[];for(let r=0;r<e.length;r++){const o=V_(e[r],t[r]);if(!o.valid)return{valid:!1};n.push(o.data)}return{valid:!0,data:n}}return n===Ke.date&&r===Ke.date&&+e==+t?{valid:!0,data:e}:{valid:!1}}class kg extends It{_parse(e){const{status:t,ctx:n}=this._processInputParams(e),r=(e,r)=>{if(z_(e)||z_(r))return _t;const o=V_(e.value,r.value);return o.valid?((W_(e)||W_(r))&&t.dirty(),{status:t.value,value:o.data}):(Ue(n,{code:Ce.invalid_intersection_types}),_t)};return n.common.async?Promise.all([this._def.left._parseAsync({data:n.data,path:n.path,parent:n}),this._def.right._parseAsync({data:n.data,path:n.path,parent:n})]).then((([e,t])=>r(e,t))):r(this._def.left._parseSync({data:n.data,path:n.path,parent:n}),this._def.right._parseSync({data:n.data,path:n.path,parent:n}))}}kg.create=(e,t,n)=>new kg({left:e,right:t,typeName:yt.ZodIntersection,...Nt(n)});class kl extends It{_parse(e){const{status:t,ctx:n}=this._processInputParams(e);if(n.parsedType!==Ke.array)return Ue(n,{code:Ce.invalid_type,expected:Ke.array,received:n.parsedType}),_t;if(n.data.length<this._def.items.length)return Ue(n,{code:Ce.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),_t;!this._def.rest&&n.data.length>this._def.items.length&&(Ue(n,{code:Ce.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),t.dirty());const r=[...n.data].map(((e,t)=>{const r=this._def.items[t]||this._def.rest;return r?r._parse(new Cl(n,e,n.path,t)):null})).filter((e=>!!e));return n.common.async?Promise.all(r).then((e=>zi.mergeArray(t,e))):zi.mergeArray(t,r)}get items(){return this._def.items}rest(e){return new kl({...this._def,rest:e})}}kl.create=(e,t)=>{if(!Array.isArray(e))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new kl({items:e,typeName:yt.ZodTuple,rest:null,...Nt(t)})};class Tg extends It{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){const{status:t,ctx:n}=this._processInputParams(e);if(n.parsedType!==Ke.object)return Ue(n,{code:Ce.invalid_type,expected:Ke.object,received:n.parsedType}),_t;const r=[],o=this._def.keyType,i=this._def.valueType;for(const e in n.data)r.push({key:o._parse(new Cl(n,e,n.path,e)),value:i._parse(new Cl(n,n.data[e],n.path,e)),alwaysSet:e in n.data});return n.common.async?zi.mergeObjectAsync(t,r):zi.mergeObjectSync(t,r)}get element(){return this._def.valueType}static create(e,t,n){return new Tg(t instanceof It?{keyType:e,valueType:t,typeName:yt.ZodRecord,...Nt(n)}:{keyType:Ca.create(),valueType:e,typeName:yt.ZodRecord,...Nt(t)})}}class t0 extends It{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){const{status:t,ctx:n}=this._processInputParams(e);if(n.parsedType!==Ke.map)return Ue(n,{code:Ce.invalid_type,expected:Ke.map,received:n.parsedType}),_t;const r=this._def.keyType,o=this._def.valueType,i=[...n.data.entries()].map((([e,t],i)=>({key:r._parse(new Cl(n,e,n.path,[i,"key"])),value:o._parse(new Cl(n,t,n.path,[i,"value"]))})));if(n.common.async){const e=new Map;return Promise.resolve().then((async()=>{for(const n of i){const r=await n.key,o=await n.value;if("aborted"===r.status||"aborted"===o.status)return _t;("dirty"===r.status||"dirty"===o.status)&&t.dirty(),e.set(r.value,o.value)}return{status:t.value,value:e}}))}{const e=new Map;for(const n of i){const r=n.key,o=n.value;if("aborted"===r.status||"aborted"===o.status)return _t;("dirty"===r.status||"dirty"===o.status)&&t.dirty(),e.set(r.value,o.value)}return{status:t.value,value:e}}}}t0.create=(e,t,n)=>new t0({valueType:t,keyType:e,typeName:yt.ZodMap,...Nt(n)});class rp extends It{_parse(e){const{status:t,ctx:n}=this._processInputParams(e);if(n.parsedType!==Ke.set)return Ue(n,{code:Ce.invalid_type,expected:Ke.set,received:n.parsedType}),_t;const r=this._def;null!==r.minSize&&n.data.size<r.minSize.value&&(Ue(n,{code:Ce.too_small,minimum:r.minSize.value,type:"set",inclusive:!0,exact:!1,message:r.minSize.message}),t.dirty()),null!==r.maxSize&&n.data.size>r.maxSize.value&&(Ue(n,{code:Ce.too_big,maximum:r.maxSize.value,type:"set",inclusive:!0,exact:!1,message:r.maxSize.message}),t.dirty());const o=this._def.valueType;function i(e){const n=new Set;for(const r of e){if("aborted"===r.status)return _t;"dirty"===r.status&&t.dirty(),n.add(r.value)}return{status:t.value,value:n}}const a=[...n.data.values()].map(((e,t)=>o._parse(new Cl(n,e,n.path,t))));return n.common.async?Promise.all(a).then((e=>i(e))):i(a)}min(e,t){return new rp({...this._def,minSize:{value:e,message:lt.toString(t)}})}max(e,t){return new rp({...this._def,maxSize:{value:e,message:lt.toString(t)}})}size(e,t){return this.min(e,t).max(e,t)}nonempty(e){return this.min(1,e)}}rp.create=(e,t)=>new rp({valueType:e,minSize:null,maxSize:null,typeName:yt.ZodSet,...Nt(t)});class zh extends It{constructor(){super(...arguments),this.validate=this.implement}_parse(e){const{ctx:t}=this._processInputParams(e);if(t.parsedType!==Ke.function)return Ue(t,{code:Ce.invalid_type,expected:Ke.function,received:t.parsedType}),_t;function n(e,n){return Qv({data:e,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,Yv(),Kh].filter((e=>!!e)),issueData:{code:Ce.invalid_arguments,argumentsError:n}})}function r(e,n){return Qv({data:e,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,Yv(),Kh].filter((e=>!!e)),issueData:{code:Ce.invalid_return_type,returnTypeError:n}})}const o={errorMap:t.common.contextualErrorMap},i=t.data;if(this._def.returns instanceof Yh){const e=this;return so((async function(...t){const a=new is([]),s=await e._def.args.parseAsync(t,o).catch((e=>{throw a.addIssue(n(t,e)),a})),l=await Reflect.apply(i,this,s);return await e._def.returns._def.type.parseAsync(l,o).catch((e=>{throw a.addIssue(r(l,e)),a}))}))}{const e=this;return so((function(...t){const a=e._def.args.safeParse(t,o);if(!a.success)throw new is([n(t,a.error)]);const s=Reflect.apply(i,this,a.data),l=e._def.returns.safeParse(s,o);if(!l.success)throw new is([r(s,l.error)]);return l.data}))}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...e){return new zh({...this._def,args:kl.create(e).rest(Qd.create())})}returns(e){return new zh({...this._def,returns:e})}implement(e){return this.parse(e)}strictImplement(e){return this.parse(e)}static create(e,t,n){return new zh({args:e||kl.create([]).rest(Qd.create()),returns:t||Qd.create(),typeName:yt.ZodFunction,...Nt(n)})}}class Ag extends It{get schema(){return this._def.getter()}_parse(e){const{ctx:t}=this._processInputParams(e);return this._def.getter()._parse({data:t.data,path:t.path,parent:t})}}Ag.create=(e,t)=>new Ag({getter:e,typeName:yt.ZodLazy,...Nt(t)});class Ng extends It{_parse(e){if(e.data!==this._def.value){const t=this._getOrReturnCtx(e);return Ue(t,{received:t.data,code:Ce.invalid_literal,expected:this._def.value}),_t}return{status:"valid",value:e.data}}get value(){return this._def.value}}function PE(e,t){return new Af({values:e,typeName:yt.ZodEnum,...Nt(t)})}Ng.create=(e,t)=>new Ng({value:e,typeName:yt.ZodLiteral,...Nt(t)});class Af extends It{constructor(){super(...arguments),ag.set(this,void 0)}_parse(e){if("string"!=typeof e.data){const t=this._getOrReturnCtx(e),n=this._def.values;return Ue(t,{expected:Kt.joinValues(n),received:t.parsedType,code:Ce.invalid_type}),_t}if(Xv(this,ag)||NE(this,ag,new Set(this._def.values)),!Xv(this,ag).has(e.data)){const t=this._getOrReturnCtx(e),n=this._def.values;return Ue(t,{received:t.data,code:Ce.invalid_enum_value,options:n}),_t}return so(e.data)}get options(){return this._def.values}get enum(){const e={};for(const t of this._def.values)e[t]=t;return e}get Values(){const e={};for(const t of this._def.values)e[t]=t;return e}get Enum(){const e={};for(const t of this._def.values)e[t]=t;return e}extract(e,t=this._def){return Af.create(e,{...this._def,...t})}exclude(e,t=this._def){return Af.create(this.options.filter((t=>!e.includes(t))),{...this._def,...t})}}ag=new WeakMap,Af.create=PE;class Rg extends It{constructor(){super(...arguments),lg.set(this,void 0)}_parse(e){const t=Kt.getValidEnumValues(this._def.values),n=this._getOrReturnCtx(e);if(n.parsedType!==Ke.string&&n.parsedType!==Ke.number){const e=Kt.objectValues(t);return Ue(n,{expected:Kt.joinValues(e),received:n.parsedType,code:Ce.invalid_type}),_t}if(Xv(this,lg)||NE(this,lg,new Set(Kt.getValidEnumValues(this._def.values))),!Xv(this,lg).has(e.data)){const e=Kt.objectValues(t);return Ue(n,{received:n.data,code:Ce.invalid_enum_value,options:e}),_t}return so(e.data)}get enum(){return this._def.values}}lg=new WeakMap,Rg.create=(e,t)=>new Rg({values:e,typeName:yt.ZodNativeEnum,...Nt(t)});class Yh extends It{unwrap(){return this._def.type}_parse(e){const{ctx:t}=this._processInputParams(e);if(t.parsedType!==Ke.promise&&!1===t.common.async)return Ue(t,{code:Ce.invalid_type,expected:Ke.promise,received:t.parsedType}),_t;const n=t.parsedType===Ke.promise?t.data:Promise.resolve(t.data);return so(n.then((e=>this._def.type.parseAsync(e,{path:t.path,errorMap:t.common.contextualErrorMap}))))}}Yh.create=(e,t)=>new Yh({type:e,typeName:yt.ZodPromise,...Nt(t)});class Ta extends It{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===yt.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(e){const{status:t,ctx:n}=this._processInputParams(e),r=this._def.effect||null,o={addIssue:e=>{Ue(n,e),e.fatal?t.abort():t.dirty()},get path(){return n.path}};if(o.addIssue=o.addIssue.bind(o),"preprocess"===r.type){const e=r.transform(n.data,o);if(n.common.async)return Promise.resolve(e).then((async e=>{if("aborted"===t.value)return _t;const r=await this._def.schema._parseAsync({data:e,path:n.path,parent:n});return"aborted"===r.status?_t:"dirty"===r.status||"dirty"===t.value?Mh(r.value):r}));{if("aborted"===t.value)return _t;const r=this._def.schema._parseSync({data:e,path:n.path,parent:n});return"aborted"===r.status?_t:"dirty"===r.status||"dirty"===t.value?Mh(r.value):r}}if("refinement"===r.type){const e=e=>{const t=r.refinement(e,o);if(n.common.async)return Promise.resolve(t);if(t instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return e};if(!1===n.common.async){const r=this._def.schema._parseSync({data:n.data,path:n.path,parent:n});return"aborted"===r.status?_t:("dirty"===r.status&&t.dirty(),e(r.value),{status:t.value,value:r.value})}return this._def.schema._parseAsync({data:n.data,path:n.path,parent:n}).then((n=>"aborted"===n.status?_t:("dirty"===n.status&&t.dirty(),e(n.value).then((()=>({status:t.value,value:n.value}))))))}if("transform"===r.type){if(!1===n.common.async){const e=this._def.schema._parseSync({data:n.data,path:n.path,parent:n});if(!wg(e))return e;const i=r.transform(e.value,o);if(i instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:t.value,value:i}}return this._def.schema._parseAsync({data:n.data,path:n.path,parent:n}).then((e=>wg(e)?Promise.resolve(r.transform(e.value,o)).then((e=>({status:t.value,value:e}))):e))}Kt.assertNever(r)}}Ta.create=(e,t,n)=>new Ta({schema:e,typeName:yt.ZodEffects,effect:t,...Nt(n)}),Ta.createWithPreprocess=(e,t,n)=>new Ta({schema:t,effect:{type:"preprocess",transform:e},typeName:yt.ZodEffects,...Nt(n)});class xl extends It{_parse(e){return this._getType(e)===Ke.undefined?so(void 0):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}xl.create=(e,t)=>new xl({innerType:e,typeName:yt.ZodOptional,...Nt(t)});class Nf extends It{_parse(e){return this._getType(e)===Ke.null?so(null):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}Nf.create=(e,t)=>new Nf({innerType:e,typeName:yt.ZodNullable,...Nt(t)});class $g extends It{_parse(e){const{ctx:t}=this._processInputParams(e);let n=t.data;return t.parsedType===Ke.undefined&&(n=this._def.defaultValue()),this._def.innerType._parse({data:n,path:t.path,parent:t})}removeDefault(){return this._def.innerType}}$g.create=(e,t)=>new $g({innerType:e,typeName:yt.ZodDefault,defaultValue:"function"==typeof t.default?t.default:()=>t.default,...Nt(t)});class Ig extends It{_parse(e){const{ctx:t}=this._processInputParams(e),n={...t,common:{...t.common,issues:[]}},r=this._def.innerType._parse({data:n.data,path:n.path,parent:{...n}});return xg(r)?r.then((e=>({status:"valid",value:"valid"===e.status?e.value:this._def.catchValue({get error(){return new is(n.common.issues)},input:n.data})}))):{status:"valid",value:"valid"===r.status?r.value:this._def.catchValue({get error(){return new is(n.common.issues)},input:n.data})}}removeCatch(){return this._def.innerType}}Ig.create=(e,t)=>new Ig({innerType:e,typeName:yt.ZodCatch,catchValue:"function"==typeof t.catch?t.catch:()=>t.catch,...Nt(t)});class n0 extends It{_parse(e){if(this._getType(e)!==Ke.nan){const t=this._getOrReturnCtx(e);return Ue(t,{code:Ce.invalid_type,expected:Ke.nan,received:t.parsedType}),_t}return{status:"valid",value:e.data}}}n0.create=e=>new n0({typeName:yt.ZodNaN,...Nt(e)});const aP=Symbol("zod_brand");class M1 extends It{_parse(e){const{ctx:t}=this._processInputParams(e),n=t.data;return this._def.type._parse({data:n,path:t.path,parent:t})}unwrap(){return this._def.type}}class zg extends It{_parse(e){const{status:t,ctx:n}=this._processInputParams(e);if(n.common.async)return(async()=>{const e=await this._def.in._parseAsync({data:n.data,path:n.path,parent:n});return"aborted"===e.status?_t:"dirty"===e.status?(t.dirty(),Mh(e.value)):this._def.out._parseAsync({data:e.value,path:n.path,parent:n})})();{const e=this._def.in._parseSync({data:n.data,path:n.path,parent:n});return"aborted"===e.status?_t:"dirty"===e.status?(t.dirty(),{status:"dirty",value:e.value}):this._def.out._parseSync({data:e.value,path:n.path,parent:n})}}static create(e,t){return new zg({in:e,out:t,typeName:yt.ZodPipeline})}}class Pg extends It{_parse(e){const t=this._def.innerType._parse(e),n=e=>(wg(e)&&(e.value=Object.freeze(e.value)),e);return xg(t)?t.then((e=>n(e))):n(t)}unwrap(){return this._def.innerType}}function OE(e,t={},n){return e?qh.create().superRefine(((r,o)=>{var i,a;if(!e(r)){const e="function"==typeof t?t(r):"string"==typeof t?{message:t}:t,s=null===(a=null!==(i=e.fatal)&&void 0!==i?i:n)||void 0===a||a,l="string"==typeof e?{message:e}:e;o.addIssue({code:"custom",...l,fatal:s})}})):qh.create()}Pg.create=(e,t)=>new Pg({innerType:e,typeName:yt.ZodReadonly,...Nt(t)});const lP={object:Gn.lazycreate};var yt;!function(e){e.ZodString="ZodString",e.ZodNumber="ZodNumber",e.ZodNaN="ZodNaN",e.ZodBigInt="ZodBigInt",e.ZodBoolean="ZodBoolean",e.ZodDate="ZodDate",e.ZodSymbol="ZodSymbol",e.ZodUndefined="ZodUndefined",e.ZodNull="ZodNull",e.ZodAny="ZodAny",e.ZodUnknown="ZodUnknown",e.ZodNever="ZodNever",e.ZodVoid="ZodVoid",e.ZodArray="ZodArray",e.ZodObject="ZodObject",e.ZodUnion="ZodUnion",e.ZodDiscriminatedUnion="ZodDiscriminatedUnion",e.ZodIntersection="ZodIntersection",e.ZodTuple="ZodTuple",e.ZodRecord="ZodRecord",e.ZodMap="ZodMap",e.ZodSet="ZodSet",e.ZodFunction="ZodFunction",e.ZodLazy="ZodLazy",e.ZodLiteral="ZodLiteral",e.ZodEnum="ZodEnum",e.ZodEffects="ZodEffects",e.ZodNativeEnum="ZodNativeEnum",e.ZodOptional="ZodOptional",e.ZodNullable="ZodNullable",e.ZodDefault="ZodDefault",e.ZodCatch="ZodCatch",e.ZodPromise="ZodPromise",e.ZodBranded="ZodBranded",e.ZodPipeline="ZodPipeline",e.ZodReadonly="ZodReadonly"}(yt||(yt={}));const uP=(e,t={message:`Input not instance of ${e.name}`})=>OE((t=>t instanceof e),t),LE=Ca.create,DE=kf.create,cP=n0.create,fP=Tf.create,ME=bg.create,dP=np.create,pP=Jv.create,hP=Sg.create,mP=Eg.create,gP=qh.create,vP=Qd.create,yP=Lu.create,_P=e0.create,wP=ka.create,xP=Gn.create,bP=Gn.strictCreate,SP=Cg.create,EP=b0.create,CP=kg.create,kP=kl.create,TP=Tg.create,AP=t0.create,NP=rp.create,RP=zh.create,$P=Ag.create,IP=Ng.create,PP=Af.create,OP=Rg.create,LP=Yh.create,fx=Ta.create,DP=xl.create,MP=Nf.create,FP=Ta.createWithPreprocess,jP=zg.create,UP=()=>LE().optional(),BP=()=>DE().optional(),zP=()=>ME().optional(),WP={string:e=>Ca.create({...e,coerce:!0}),number:e=>kf.create({...e,coerce:!0}),boolean:e=>bg.create({...e,coerce:!0}),bigint:e=>Tf.create({...e,coerce:!0}),date:e=>np.create({...e,coerce:!0})},VP=_t;var r0=Object.freeze({__proto__:null,defaultErrorMap:Kh,setErrorMap:VI,getErrorMap:Yv,makeIssue:Qv,EMPTY_PATH:HI,addIssueToContext:Ue,ParseStatus:zi,INVALID:_t,DIRTY:Mh,OK:so,isAborted:z_,isDirty:W_,isValid:wg,isAsync:xg,get util(){return Kt},get objectUtil(){return B_},ZodParsedType:Ke,getParsedType:gf,ZodType:It,datetimeRegex:IE,ZodString:Ca,ZodNumber:kf,ZodBigInt:Tf,ZodBoolean:bg,ZodDate:np,ZodSymbol:Jv,ZodUndefined:Sg,ZodNull:Eg,ZodAny:qh,ZodUnknown:Qd,ZodNever:Lu,ZodVoid:e0,ZodArray:ka,ZodObject:Gn,ZodUnion:Cg,ZodDiscriminatedUnion:b0,ZodIntersection:kg,ZodTuple:kl,ZodRecord:Tg,ZodMap:t0,ZodSet:rp,ZodFunction:zh,ZodLazy:Ag,ZodLiteral:Ng,ZodEnum:Af,ZodNativeEnum:Rg,ZodPromise:Yh,ZodEffects:Ta,ZodTransformer:Ta,ZodOptional:xl,ZodNullable:Nf,ZodDefault:$g,ZodCatch:Ig,ZodNaN:n0,BRAND:aP,ZodBranded:M1,ZodPipeline:zg,ZodReadonly:Pg,custom:OE,Schema:It,ZodSchema:It,late:lP,get ZodFirstPartyTypeKind(){return yt},coerce:WP,any:gP,array:wP,bigint:fP,boolean:ME,date:dP,discriminatedUnion:EP,effect:fx,enum:PP,function:RP,instanceof:uP,intersection:CP,lazy:$P,literal:IP,map:AP,nan:cP,nativeEnum:OP,never:yP,null:mP,nullable:MP,number:DE,object:xP,oboolean:zP,onumber:BP,optional:DP,ostring:UP,pipeline:jP,preprocess:FP,promise:LP,record:TP,set:NP,strictObject:bP,string:LE,symbol:pP,transformer:fx,tuple:kP,undefined:hP,union:SP,unknown:vP,void:_P,NEVER:VP,ZodIssueCode:Ce,quotelessJson:WI,ZodError:is}),dx=function(e,t,n){if(e&&"reportValidity"in e){var r=Ie(n,t);e.setCustomValidity(r&&r.message||""),e.reportValidity()}},FE=function(e,t){var n=function(n){var r=t.fields[n];r&&r.ref&&"reportValidity"in r.ref?dx(r.ref,n,e):r.refs&&r.refs.forEach((function(t){return dx(t,n,e)}))};for(var r in t.fields)n(r)},HP=function(e,t){t.shouldUseNativeValidation&&FE(e,t);var n={};for(var r in e){var o=Ie(t.fields,r),i=Object.assign(e[r]||{},{ref:o&&o.ref});if(GP(t.names||Object.keys(e),r)){var a=Object.assign({},Ie(n,r));cn(a,"root",i),cn(n,r,a)}else cn(n,r,i)}return n},GP=function(e,t){return e.some((function(e){return e.startsWith(t+".")}))},ZP=function(e,t){for(var n={};e.length;){var r=e[0],o=r.code,i=r.message,a=r.path.join(".");if(!n[a])if("unionErrors"in r){var s=r.unionErrors[0].errors[0];n[a]={message:s.message,type:s.code}}else n[a]={message:i,type:o};if("unionErrors"in r&&r.unionErrors.forEach((function(t){return t.errors.forEach((function(t){return e.push(t)}))})),t){var l=n[a].types,u=l&&l[r.code];n[a]=ES(a,t,n,o,u?[].concat(u,r.message):r.message)}e.shift()}return n},jE=function(e,t,n){return void 0===n&&(n={}),function(r,o,i){try{return Promise.resolve(function(o,a){try{var s=Promise.resolve(e["sync"===n.mode?"parse":"parseAsync"](r,t)).then((function(e){return i.shouldUseNativeValidation&&FE({},i),{errors:{},values:n.raw?r:e}}))}catch(e){return a(e)}return s&&s.then?s.then(void 0,a):s}(0,(function(e){if(null!=e.errors)return{values:{},errors:HP(ZP(e.errors,!i.shouldUseNativeValidation&&"all"===i.criteriaMode),i)};throw e})))}catch(e){return Promise.reject(e)}}},px=1,KP=.9,qP=.8,YP=.17,b_=.1,S_=.999,QP=.9999,XP=.99,JP=/[\\\/_+.#"@\[\(\{&]/,eO=/[\\\/_+.#"@\[\(\{&]/g,tO=/[\s-]/,UE=/[\s-]/g;function H_(e,t,n,r,o,i,a){if(i===t.length)return o===e.length?px:XP;var s=`${o},${i}`;if(void 0!==a[s])return a[s];for(var l,u,c,d,f=r.charAt(i),p=n.indexOf(f,o),h=0;p>=0;)(l=H_(e,t,n,r,p+1,i+1,a))>h&&(p===o?l*=px:JP.test(e.charAt(p-1))?(l*=qP,(c=e.slice(o,p-1).match(eO))&&o>0&&(l*=Math.pow(S_,c.length))):tO.test(e.charAt(p-1))?(l*=KP,(d=e.slice(o,p-1).match(UE))&&o>0&&(l*=Math.pow(S_,d.length))):(l*=YP,o>0&&(l*=Math.pow(S_,p-o))),e.charAt(p)!==t.charAt(i)&&(l*=QP)),(l<b_&&n.charAt(p-1)===r.charAt(i+1)||r.charAt(i+1)===r.charAt(i)&&n.charAt(p-1)!==r.charAt(i))&&((u=H_(e,t,n,r,p+1,i+2,a))*b_>l&&(l=u*b_)),l>h&&(h=l),p=n.indexOf(f,p+1);return a[s]=h,h}function hx(e){return e.toLowerCase().replace(UE," ")}function nO(e,t,n){return H_(e=n&&n.length>0?""+(e+" "+n.join(" ")):e,t,hx(e),hx(t),0,0,{})}const BE="Dialog",[zE,k4]=Tl(BE),[rO,up]=zE(BE),iO=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:o,onOpenChange:i,modal:a=!0}=e,s=At(null),l=At(null),[u=!1,c]=Xh({prop:r,defaultProp:o,onChange:i});return me(rO,{scope:t,triggerRef:s,contentRef:l,contentId:jh(),titleId:jh(),descriptionId:jh(),open:u,onOpenChange:c,onOpenToggle:Zn((()=>c((e=>!e))),[c]),modal:a},n)},WE="DialogPortal",[oO,VE]=zE(WE,{forceMount:void 0}),sO=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:o}=e,i=up(WE,t);return me(oO,{scope:t,forceMount:n},Kd.map(r,(e=>me(sp,{present:n||i.open},me(Mb,{asChild:!0,container:o},e)))))},G_="DialogOverlay",aO=gt(((e,t)=>{const n=VE(G_,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,i=up(G_,e.__scopeDialog);return i.modal?me(sp,{present:r||i.open},me(lO,rt({},o,{ref:t}))):null})),lO=gt(((e,t)=>{const{__scopeDialog:n,...r}=e,o=up(G_,n);return me(g1,{as:Vh,allowPinchZoom:!0,shards:[o.contentRef]},me(Lt.div,rt({"data-state":GE(o.open)},r,{ref:t,style:{pointerEvents:"auto",...r.style}})))})),Og="DialogContent",uO=gt(((e,t)=>{const n=VE(Og,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,i=up(Og,e.__scopeDialog);return me(sp,{present:r||i.open},i.modal?me(cO,rt({},o,{ref:t})):me(fO,rt({},o,{ref:t})))})),cO=gt(((e,t)=>{const n=up(Og,e.__scopeDialog),r=At(null),o=Kn(t,n.contentRef,r);return Et((()=>{const e=r.current;if(e)return p1(e)}),[]),me(HE,rt({},e,{ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Bt(e.onCloseAutoFocus,(e=>{var t;e.preventDefault(),null===(t=n.triggerRef.current)||void 0===t||t.focus()})),onPointerDownOutside:Bt(e.onPointerDownOutside,(e=>{const t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey;(2===t.button||n)&&e.preventDefault()})),onFocusOutside:Bt(e.onFocusOutside,(e=>e.preventDefault()))}))})),fO=gt(((e,t)=>{const n=up(Og,e.__scopeDialog),r=At(!1),o=At(!1);return me(HE,rt({},e,{ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{var i,a;(null===(i=e.onCloseAutoFocus)||void 0===i||i.call(e,t),t.defaultPrevented)||(r.current||null===(a=n.triggerRef.current)||void 0===a||a.focus(),t.preventDefault());r.current=!1,o.current=!1},onInteractOutside:t=>{var i,a;null===(i=e.onInteractOutside)||void 0===i||i.call(e,t),t.defaultPrevented||(r.current=!0,"pointerdown"===t.detail.originalEvent.type&&(o.current=!0));const s=t.target;(null===(a=n.triggerRef.current)||void 0===a?void 0:a.contains(s))&&t.preventDefault(),"focusin"===t.detail.originalEvent.type&&o.current&&t.preventDefault()}}))})),HE=gt(((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:i,...a}=e,s=up(Og,n),l=Kn(t,At(null));return vb(),me(o0,null,me(yb,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:i},me(mb,rt({role:"dialog",id:s.contentId,"aria-describedby":s.descriptionId,"aria-labelledby":s.titleId,"data-state":GE(s.open)},a,{ref:l,onDismiss:()=>s.onOpenChange(!1)}))),!1)}));function GE(e){return e?"open":"closed"}const dO=iO,pO=sO,hO=aO,mO=uO;var tg='[cmdk-group=""]',E_='[cmdk-group-items=""]',gO='[cmdk-group-heading=""]',F1='[cmdk-item=""]',mx=`${F1}:not([aria-disabled="true"])`,Z_="cmdk-item-select",Hd="data-value",vO=(e,t,n)=>nO(e,t,n),ZE=M.createContext(void 0),Wg=()=>M.useContext(ZE),KE=M.createContext(void 0),j1=()=>M.useContext(KE),qE=M.createContext(void 0),YE=M.forwardRef(((e,t)=>{let n=Ph((()=>{var t,n;return{search:"",value:null!=(n=null!=(t=e.value)?t:e.defaultValue)?n:"",filtered:{count:0,items:new Map,groups:new Set}}})),r=Ph((()=>new Set)),o=Ph((()=>new Map)),i=Ph((()=>new Map)),a=Ph((()=>new Set)),s=QE(e),{label:l,children:u,value:c,onValueChange:d,filter:f,shouldFilter:p,loop:h,disablePointerSelection:m=!1,vimBindings:v=!0,...g}=e,y=M.useId(),b=M.useId(),_=M.useId(),w=M.useRef(null),x=AO();ip((()=>{if(void 0!==c){let e=c.trim();n.current.value=e,k.emit()}}),[c]),ip((()=>{x(6,A)}),[]);let k=M.useMemo((()=>({subscribe:e=>(a.current.add(e),()=>a.current.delete(e)),snapshot:()=>n.current,setState:(e,t,r)=>{var o,i,a;if(!Object.is(n.current[e],t)){if(n.current[e]=t,"search"===e)I(),C(),x(1,N);else if("value"===e&&(r||x(5,A),void 0!==(null==(o=s.current)?void 0:o.value))){let e=t??"";return void(null==(a=(i=s.current).onValueChange)||a.call(i,e))}k.emit()}},emit:()=>{a.current.forEach((e=>e()))}})),[]),E=M.useMemo((()=>({value:(e,t,r)=>{var o;t!==(null==(o=i.current.get(e))?void 0:o.value)&&(i.current.set(e,{value:t,keywords:r}),n.current.filtered.items.set(e,S(t,r)),x(2,(()=>{C(),k.emit()})))},item:(e,t)=>(r.current.add(e),t&&(o.current.has(t)?o.current.get(t).add(e):o.current.set(t,new Set([e]))),x(3,(()=>{I(),C(),n.current.value||N(),k.emit()})),()=>{i.current.delete(e),r.current.delete(e),n.current.filtered.items.delete(e);let t=T();x(4,(()=>{I(),(null==t?void 0:t.getAttribute("id"))===e&&N(),k.emit()}))}),group:e=>(o.current.has(e)||o.current.set(e,new Set),()=>{i.current.delete(e),o.current.delete(e)}),filter:()=>s.current.shouldFilter,label:l||e["aria-label"],disablePointerSelection:m,listId:y,inputId:_,labelId:b,listInnerRef:w})),[]);function S(e,t){var r,o;let i=null!=(o=null==(r=s.current)?void 0:r.filter)?o:vO;return e?i(e,n.current.search,t):0}function C(){if(!n.current.search||!1===s.current.shouldFilter)return;let e=n.current.filtered.items,t=[];n.current.filtered.groups.forEach((n=>{let r=o.current.get(n),i=0;r.forEach((t=>{let n=e.get(t);i=Math.max(n,i)})),t.push([n,i])}));let r=w.current;O().sort(((t,n)=>{var r,o;let i=t.getAttribute("id"),a=n.getAttribute("id");return(null!=(r=e.get(a))?r:0)-(null!=(o=e.get(i))?o:0)})).forEach((e=>{let t=e.closest(E_);t?t.appendChild(e.parentElement===t?e:e.closest(`${E_} > *`)):r.appendChild(e.parentElement===r?e:e.closest(`${E_} > *`))})),t.sort(((e,t)=>t[1]-e[1])).forEach((e=>{let t=w.current.querySelector(`${tg}[${Hd}="${encodeURIComponent(e[0])}"]`);null==t||t.parentElement.appendChild(t)}))}function N(){let e=O().find((e=>"true"!==e.getAttribute("aria-disabled"))),t=null==e?void 0:e.getAttribute(Hd);k.setState("value",t||void 0)}function I(){var e,t,a,l;if(!n.current.search||!1===s.current.shouldFilter)return void(n.current.filtered.count=r.current.size);n.current.filtered.groups=new Set;let u=0;for(let o of r.current){let r=S(null!=(t=null==(e=i.current.get(o))?void 0:e.value)?t:"",null!=(l=null==(a=i.current.get(o))?void 0:a.keywords)?l:[]);n.current.filtered.items.set(o,r),r>0&&u++}for(let[e,t]of o.current)for(let r of t)if(n.current.filtered.items.get(r)>0){n.current.filtered.groups.add(e);break}n.current.filtered.count=u}function A(){var e,t,n;let r=T();r&&((null==(e=r.parentElement)?void 0:e.firstChild)===r&&(null==(n=null==(t=r.closest(tg))?void 0:t.querySelector(gO))||n.scrollIntoView({block:"nearest"})),r.scrollIntoView({block:"nearest"}))}function T(){var e;return null==(e=w.current)?void 0:e.querySelector(`${F1}[aria-selected="true"]`)}function O(){var e;return Array.from(null==(e=w.current)?void 0:e.querySelectorAll(mx))}function D(e){let t=O()[e];t&&k.setState("value",t.getAttribute(Hd))}function P(e){var t;let n=T(),r=O(),o=r.findIndex((e=>e===n)),i=r[o+e];null!=(t=s.current)&&t.loop&&(i=o+e<0?r[r.length-1]:o+e===r.length?r[0]:r[o+e]),i&&k.setState("value",i.getAttribute(Hd))}function R(e){let t,n=T(),r=null==n?void 0:n.closest(tg);for(;r&&!t;)r=e>0?kO(r,tg):TO(r,tg),t=null==r?void 0:r.querySelector(mx);t?k.setState("value",t.getAttribute(Hd)):P(e)}let j=()=>D(O().length-1),L=e=>{e.preventDefault(),e.metaKey?j():e.altKey?R(1):P(1)},U=e=>{e.preventDefault(),e.metaKey?D(0):e.altKey?R(-1):P(-1)};return M.createElement(Lt.div,{ref:t,tabIndex:-1,...g,"cmdk-root":"",onKeyDown:e=>{var t;if(null==(t=g.onKeyDown)||t.call(g,e),!e.defaultPrevented)switch(e.key){case"n":case"j":v&&e.ctrlKey&&L(e);break;case"ArrowDown":L(e);break;case"p":case"k":v&&e.ctrlKey&&U(e);break;case"ArrowUp":U(e);break;case"Home":e.preventDefault(),D(0);break;case"End":e.preventDefault(),j();break;case"Enter":if(!e.nativeEvent.isComposing&&229!==e.keyCode){e.preventDefault();let t=T();if(t){let e=new Event(Z_);t.dispatchEvent(e)}}}}},M.createElement("label",{"cmdk-label":"",htmlFor:E.inputId,id:E.labelId,style:RO},l),S0(e,(e=>M.createElement(KE.Provider,{value:k},M.createElement(ZE.Provider,{value:E},e)))))})),yO=M.forwardRef(((e,t)=>{var n,r;let o=M.useId(),i=M.useRef(null),a=M.useContext(qE),s=Wg(),l=QE(e),u=null!=(r=null==(n=l.current)?void 0:n.forceMount)?r:null==a?void 0:a.forceMount;ip((()=>{if(!u)return s.item(o,null==a?void 0:a.id)}),[u]);let c=XE(o,i,[e.value,e.children,i],e.keywords),d=j1(),f=op((e=>e.value&&e.value===c.current)),p=op((e=>!(!u&&!1!==s.filter())||(!e.search||e.filtered.items.get(o)>0)));function h(){var e,t;m(),null==(t=(e=l.current).onSelect)||t.call(e,c.current)}function m(){d.setState("value",c.current,!0)}if(M.useEffect((()=>{let t=i.current;if(t&&!e.disabled)return t.addEventListener(Z_,h),()=>t.removeEventListener(Z_,h)}),[p,e.onSelect,e.disabled]),!p)return null;let{disabled:v,value:g,onSelect:y,forceMount:b,keywords:_,...w}=e;return M.createElement(Lt.div,{ref:Lg([i,t]),...w,id:o,"cmdk-item":"",role:"option","aria-disabled":!!v,"aria-selected":!!f,"data-disabled":!!v,"data-selected":!!f,onPointerMove:v||s.disablePointerSelection?void 0:m,onClick:v?void 0:h},e.children)})),_O=M.forwardRef(((e,t)=>{let{heading:n,children:r,forceMount:o,...i}=e,a=M.useId(),s=M.useRef(null),l=M.useRef(null),u=M.useId(),c=Wg(),d=op((e=>!(!o&&!1!==c.filter())||(!e.search||e.filtered.groups.has(a))));ip((()=>c.group(a)),[]),XE(a,s,[e.value,e.heading,l]);let f=M.useMemo((()=>({id:a,forceMount:o})),[o]);return M.createElement(Lt.div,{ref:Lg([s,t]),...i,"cmdk-group":"",role:"presentation",hidden:!d||void 0},n&&M.createElement("div",{ref:l,"cmdk-group-heading":"","aria-hidden":!0,id:u},n),S0(e,(e=>M.createElement("div",{"cmdk-group-items":"",role:"group","aria-labelledby":n?u:void 0},M.createElement(qE.Provider,{value:f},e)))))})),wO=M.forwardRef(((e,t)=>{let{alwaysRender:n,...r}=e,o=M.useRef(null),i=op((e=>!e.search));return n||i?M.createElement(Lt.div,{ref:Lg([o,t]),...r,"cmdk-separator":"",role:"separator"}):null})),xO=M.forwardRef(((e,t)=>{let{onValueChange:n,...r}=e,o=null!=e.value,i=j1(),a=op((e=>e.search)),s=op((e=>e.value)),l=Wg(),u=M.useMemo((()=>{var e;let t=null==(e=l.listInnerRef.current)?void 0:e.querySelector(`${F1}[${Hd}="${encodeURIComponent(s)}"]`);return null==t?void 0:t.getAttribute("id")}),[]);return M.useEffect((()=>{null!=e.value&&i.setState("search",e.value)}),[e.value]),M.createElement(Lt.input,{ref:t,...r,"cmdk-input":"",autoComplete:"off",autoCorrect:"off",spellCheck:!1,"aria-autocomplete":"list",role:"combobox","aria-expanded":!0,"aria-controls":l.listId,"aria-labelledby":l.labelId,"aria-activedescendant":u,id:l.inputId,type:"text",value:o?e.value:a,onChange:e=>{o||i.setState("search",e.target.value),null==n||n(e.target.value)}})})),bO=M.forwardRef(((e,t)=>{let{children:n,label:r="Suggestions",...o}=e,i=M.useRef(null),a=M.useRef(null),s=Wg();return M.useEffect((()=>{if(a.current&&i.current){let e,t=a.current,n=i.current,r=new ResizeObserver((()=>{e=requestAnimationFrame((()=>{let e=t.offsetHeight;n.style.setProperty("--cmdk-list-height",e.toFixed(1)+"px")}))}));return r.observe(t),()=>{cancelAnimationFrame(e),r.unobserve(t)}}}),[]),M.createElement(Lt.div,{ref:Lg([i,t]),...o,"cmdk-list":"",role:"listbox","aria-label":r,id:s.listId},S0(e,(e=>M.createElement("div",{ref:Lg([a,s.listInnerRef]),"cmdk-list-sizer":""},e))))})),SO=M.forwardRef(((e,t)=>{let{open:n,onOpenChange:r,overlayClassName:o,contentClassName:i,container:a,...s}=e;return M.createElement(dO,{open:n,onOpenChange:r},M.createElement(pO,{container:a},M.createElement(hO,{"cmdk-overlay":"",className:o}),M.createElement(mO,{"aria-label":e.label,"cmdk-dialog":"",className:i},M.createElement(YE,{ref:t,...s}))))})),EO=M.forwardRef(((e,t)=>op((e=>0===e.filtered.count))?M.createElement(Lt.div,{ref:t,...e,"cmdk-empty":"",role:"presentation"}):null)),CO=M.forwardRef(((e,t)=>{let{progress:n,children:r,label:o="Loading...",...i}=e;return M.createElement(Lt.div,{ref:t,...i,"cmdk-loading":"",role:"progressbar","aria-valuenow":n,"aria-valuemin":0,"aria-valuemax":100,"aria-label":o},S0(e,(e=>M.createElement("div",{"aria-hidden":!0},e))))})),Ao=Object.assign(YE,{List:bO,Item:yO,Input:xO,Group:_O,Separator:wO,Dialog:SO,Empty:EO,Loading:CO});function kO(e,t){let n=e.nextElementSibling;for(;n;){if(n.matches(t))return n;n=n.nextElementSibling}}function TO(e,t){let n=e.previousElementSibling;for(;n;){if(n.matches(t))return n;n=n.previousElementSibling}}function QE(e){let t=M.useRef(e);return ip((()=>{t.current=e})),t}var ip=typeof window>"u"?M.useEffect:M.useLayoutEffect;function Ph(e){let t=M.useRef();return void 0===t.current&&(t.current=e()),t}function Lg(e){return t=>{e.forEach((e=>{"function"==typeof e?e(t):null!=e&&(e.current=t)}))}}function op(e){let t=j1(),n=()=>e(t.snapshot());return M.useSyncExternalStore(t.subscribe,n,n)}function XE(e,t,n,r=[]){let o=M.useRef(),i=Wg();return ip((()=>{var a;let s=(()=>{var e;for(let t of n){if("string"==typeof t)return t.trim();if("object"==typeof t&&"current"in t)return t.current?null==(e=t.current.textContent)?void 0:e.trim():o.current}})(),l=r.map((e=>e.trim()));i.value(e,s,l),null==(a=t.current)||a.setAttribute(Hd,s),o.current=s})),o}var AO=()=>{let[e,t]=M.useState(),n=Ph((()=>new Map));return ip((()=>{n.current.forEach((e=>e())),n.current=new Map}),[e]),(e,r)=>{n.current.set(e,r),t({})}};function NO(e){let t=e.type;return"function"==typeof t?t(e.props):"render"in t?t.render(e.props):e}function S0({asChild:e,children:t},n){return e&&M.isValidElement(t)?M.cloneElement(NO(t),{ref:t.ref},n(t.props.children)):n(t)}var RO={position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"};const JE=M.forwardRef((({className:e,...t},n)=>D.jsx(Ao,{ref:n,className:ut("flex h-full w-full flex-col overflow-hidden rounded-md bg-popover text-popover-foreground",e),...t})));JE.displayName=Ao.displayName;const $O=M.forwardRef((({className:e,...t},n)=>D.jsx("div",{className:"flex items-center border-b px-3","cmdk-input-wrapper":"",children:D.jsx(Ao.Input,{ref:n,className:ut("flex h-11 w-full rounded-md bg-transparent py-3 text-sm outline-none placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50",e),...t})})));$O.displayName=Ao.Input.displayName;const eC=M.forwardRef((({className:e,...t},n)=>D.jsx(Ao.List,{ref:n,className:ut("mt-[8px] max-h-[300px] overflow-y-auto overflow-x-hidden",e),...t})));eC.displayName=Ao.List.displayName;const IO=M.forwardRef(((e,t)=>D.jsx(Ao.Empty,{ref:t,className:"py-6 text-center text-sm",...e})));IO.displayName=Ao.Empty.displayName;const PO=M.forwardRef((({className:e,...t},n)=>D.jsx(Ao.Group,{ref:n,className:ut("overflow-hidden p-1 text-foreground [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground",e),...t})));PO.displayName=Ao.Group.displayName;const OO=M.forwardRef((({className:e,...t},n)=>D.jsx(Ao.Separator,{ref:n,className:ut("-mx-1 h-px bg-border",e),...t})));OO.displayName=Ao.Separator.displayName;const tC=M.forwardRef((({className:e,...t},n)=>D.jsx(Ao.Item,{ref:n,className:ut("relative flex max-w-[215px] cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none data-[disabled=true]:pointer-events-none data-[selected=true]:bg-accent data-[selected=true]:text-accent-foreground data-[disabled=true]:opacity-50",e),...t})));tC.displayName=Ao.Item.displayName;const LO=e=>{try{return e.startsWith("https")||e.startsWith("http")?new URL(e).origin:new URL(`https://${e}`).origin}catch{throw new Error("Error getting domain from entered URL")}},DO=e=>{const t=e.links.find((e=>"http://ostatus.org/schema/1.0/subscribe"===e.rel));return null==t?void 0:t.template},MO=({template:e,user:t})=>null==e?void 0:e.replace("{uri}",t.uri),FO=async({url:e,...t})=>{const n=await fetch(e,t);if(!n.ok)throw new Error(n.statusText);if("PUT"===t.method)return;const r=await n.json(),o=r;if(o.errorCode)throw new Error(o.message);return r},jO=({user:e})=>async({url:t})=>{const n=LO(t);try{const t=`${n}/.well-known/webfinger?resource=${n}`,r=await FO({url:t,headers:{Accept:"application/json"}});if(!r)return;const o=DO(r),i=MO({template:o,user:e});if(!i)throw new Error("Error getting follow link");window.open(i,"_self")}catch{window.open(`${n}/authorize_interaction?uri=${e.uri}`,"_self")}},K_=(e,t)=>{const n=e.at(0),r=(null==n?void 0:n.toUpperCase())===n&&"@"!==n,o=e.toLowerCase(),i=(null==t?void 0:t.toLowerCase())||"";if(!i)return e;const a=o.startsWith(i),s=o.replace(i,`<mark>${a?Fh.capitalize(i):t}</mark>`);return r&&a?s:Fh.capitalize(s)},UO=r0.object({url:r0.string().min(1,"Cannot stay empty")}),BO=({isOpen:e,onClose:t,user:n})=>{const r=jO({user:n}),o=Ix(),[i,a]=Ot(!0),s=E1({shouldFocusError:!1,mode:"onSubmit",resolver:jE(UO),defaultValues:{url:""}}),[l,{data:u}]=qd.endpoints.getApiV1InstanceDomains.useLazyQuery(),c=e=>{!i&&a(!0),s.setValue("url",e),(e=>{i&&l({protocol:"TOOT",limit:20,domain:e})})(e)},d=i&&!!s.getValues("url");return D.jsx(D1,{open:e,onOpenChange:t,children:D.jsxs(x0,{className:"block w-[608px] max-w-full p-[20px]",children:[D.jsxs("div",{className:"text-[16px] leading-[24px] text-slate-900",children:[D.jsx("span",{"data-testid":"heading",children:`You're not following @${n.username} on Tooter`}),D.jsx("p",{className:"my-0 font-semibold",children:"Enter your server name to follow this user"})]}),D.jsx("div",{className:"flex",children:D.jsx($S,{...s,children:D.jsx("form",{autoFocus:!1,className:"space-0 w-[100%]",onSubmit:(...e)=>{s.handleSubmit(r)(...e)},children:D.jsx("div",{className:"mb-3 mt-5 w-[100%]",children:D.jsx(PS,{control:s.control,name:"url",render:({field:e})=>D.jsxs(LS,{className:"relative mt-0 space-y-0",children:[D.jsx(DS,{className:"mb-[4px] block text-[14px]",children:"Your server name"}),D.jsx(MS,{className:"relative overflow-visible",children:D.jsxs(JE,{"data-testid":"command",children:[D.jsxs("div",{className:"flex items-center",children:[D.jsx(y0,{"data-testid":"input",placeholder:"Start typing domain of your server",...e,onChange:e=>c(e.target.value),className:"relative"}),D.jsx(Cf,{type:"submit",className:"ml-2 bg-slate-700",disabled:s.getFieldState("url").invalid,children:"Take me home"})]}),D.jsx(eC,{"data-testid":"list",className:"empty:hidden",children:d&&(null==u?void 0:u.map((e=>D.jsx(tC,{className:"w-full max-w-[unset] [&>div]:overflow-hidden [&>div]:text-ellipsis",onSelect:e=>{a(!1),s.setValue("url",e)},children:D.jsx("div",{dangerouslySetInnerHTML:{__html:K_(e,s.getValues("url"))}})},e))))})]})}),D.jsx(FS,{className:"b-[0] absolute pt-[4px]"})]})})})})})}),D.jsxs("div",{className:"flex items-center text-[16px] leading-[24px] text-slate-500",children:["Do not have an account yet?",D.jsx(Cf,{"data-testid":"join",variant:"link",className:"ml-[4px] h-[unset] p-0 text-[16px] text-[#0D99FF]",onClick:()=>{t(),o("/signin",{props:{redirectUrl:window.location.href}})},children:"Join Wellsley"})]})]})})};var zO={DISTRIB_RELEASE:"24.04",JDK_18:"/usr/lib/jvm/java-1.8.0-amazon-corretto",TEAMCITY_PROJECT_NAME:"Web Apps",USER:"teamcity",npm_config_user_agent:"npm/10.9.0 node/v22.12.0 linux x64 workspaces/false ci/teamcity",rvm_pretty_print_flag:"0",NUGET_PLUGIN_HANDSHAKE_TIMEOUT_IN_SECONDS:"20",TEAMCITY_PROCESS_PARENT_FLOW_ID:"",ANDROID_SDK_HOME:"/home/teamcity/android-sdk-linux",DOTNET_CLI_TELEMETRY_OPTOUT:"true",JDK_11_x64:"/usr/lib/jvm/java-11-amazon-corretto",npm_node_execpath:"/home/teamcity/.nvm/versions/node/v22.12.0/bin/node",SHLVL:"0",npm_config_noproxy:"",BUILD_VCS_NUMBER:"64c6182c8a55167663c0c0a3f3f2c519a244f38b",HOME:"/home/teamcity",OLDPWD:"/",BUILD_URL:"https://wellesley.teamcity.com/build/13503",JRE_HOME:"/usr/lib/jvm/java-21-amazon-corretto",npm_package_json:"/mnt/agent/work/a9beceb47246ff20/apps/packages/ws/package.json",ANDROID_SDKMANAGER_PATH:"/home/teamcity/android-sdk-linux/cmdline-tools/latest/bin/sdkmanager",TEAMCITY_BUILD_PROPERTIES_FILE:"/mnt/agent/temp/buildTmp/teamcity.build.parameters",npm_package_engines_node:">=20.2.0",rvm_stored_umask:"0022",GRADLE_HOME:"/opt/gradle",npm_config_local_prefix:"/mnt/agent/work/a9beceb47246ff20/apps",npm_config_userconfig:"/home/teamcity/.npmrc",rvm_user_install_flag:"1",GOROOT:"/opt/go",JDK_18_x64:"/usr/lib/jvm/java-1.8.0-amazon-corretto",SYSTEMD_EXEC_PID:"1340",COLOR:"1",TEAMCITY_BUILDCONF_NAME:"Apps",DISTRIB_DESCRIPTION:"Ubuntu 24.04.1 LTS",DOTNET_SKIP_FIRST_TIME_EXPERIENCE:"true",TMPDIR:"/mnt/agent/temp/buildTmp",LOGNAME:"teamcity",JOURNAL_STREAM:"8:9633",TEMP:"/mnt/agent/temp/buildTmp",_:"/usr/bin/nohup",npm_config_npm_version:"10.9.0",npm_config_prefix:"/home/teamcity/.nvm/versions/node/v22.12.0",rvm_bin_path:"/home/teamcity/.rvm/bin",BUILD_VCS_NUMBER_WebApps_WellesleyApps:"64c6182c8a55167663c0c0a3f3f2c519a244f38b",IRBRC:"/home/teamcity/.rvm/rubies/ruby-3.3.6/.irbrc",MEMORY_PRESSURE_WATCH:"/sys/fs/cgroup/system.slice/teamcity-agent.service/memory.pressure",P4CONFIG:".p4config",RUBY_VERSION:"ruby-3.3.6",npm_config_cache:"/home/teamcity/.npm",DOTNET_ROOT:"/usr/share/dotnet",JDK_1_8:"/usr/lib/jvm/java-1.8.0-amazon-corretto",MNT_MOUNT:"/dev/nvme1n1 on /mnt type ext4 (rw,noatime)",TEAMCITY_GIT_PATH:"/usr/local/bin/git",AWS_SHARED_CREDENTIALS_FILE:"/mnt/agent/temp/agentTmp/aws.credentials",DISTRIB_ID:"Ubuntu",npm_config_node_gyp:"/home/teamcity/.nvm/versions/node/v22.12.0/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js",PATH:"/mnt/agent/work/a9beceb47246ff20/apps/packages/ws/node_modules/.bin:/mnt/agent/work/a9beceb47246ff20/apps/packages/node_modules/.bin:/mnt/agent/work/a9beceb47246ff20/apps/node_modules/.bin:/mnt/agent/work/a9beceb47246ff20/node_modules/.bin:/mnt/agent/work/node_modules/.bin:/mnt/agent/node_modules/.bin:/mnt/node_modules/.bin:/node_modules/.bin:/home/teamcity/.nvm/versions/node/v22.12.0/lib/node_modules/npm/node_modules/@npmcli/run-script/lib/node-gyp-bin:/mnt/agent/work/a9beceb47246ff20/apps/node_modules/.bin:/mnt/agent/work/a9beceb47246ff20/node_modules/.bin:/mnt/agent/work/node_modules/.bin:/mnt/agent/node_modules/.bin:/mnt/node_modules/.bin:/node_modules/.bin:/home/teamcity/.nvm/versions/node/v22.12.0/lib/node_modules/npm/node_modules/@npmcli/run-script/lib/node-gyp-bin:/mnt/agent/work/a9beceb47246ff20/apps/node_modules/.bin:/mnt/agent/work/a9beceb47246ff20/node_modules/.bin:/mnt/agent/work/node_modules/.bin:/mnt/agent/node_modules/.bin:/mnt/node_modules/.bin:/node_modules/.bin:/home/teamcity/.nvm/versions/node/v22.12.0/lib/node_modules/npm/node_modules/@npmcli/run-script/lib/node-gyp-bin:/home/teamcity/.cargo/bin:/home/teamcity/.rvm/gems/ruby-3.3.6/bin:/home/teamcity/.rvm/gems/ruby-3.3.6@global/bin:/home/teamcity/.rvm/rubies/ruby-3.3.6/bin:/home/teamcity/.rvm/bin:/home/teamcity/.local/bin:/usr/lib/jvm/java-17-amazon-corretto/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/snap/bin:/usr/share/dotnet:/usr/share/dotnet/tools:/home/teamcity/google-cloud-sdk/bin:/home/teamcity/go/bin:/usr/bin/mvn:/home/teamcity/.nvm/versions/node/v22.12.0/bin",INVOCATION_ID:"6d7e16e7bc8249778047bdf926812f6d",JDK_11_0:"/usr/lib/jvm/java-11-amazon-corretto",NODE:"/home/teamcity/.nvm/versions/node/v22.12.0/bin/node",TEAMCITY_CAPTURE_ENV:'"/usr/lib/jvm/java-17-amazon-corretto/bin/java" -jar "/home/teamcity/agent/plugins/environment-fetcher/lib/environment-fetcher-bin-2024.12-174504-jar-with-dependencies.jar"',TURBO_HASH:"5e1c79be8a9df17e",npm_package_name:"@wellesley/ws",DISTRIB_CODENAME:"noble",JDK_21_0:"/usr/lib/jvm/java-21-amazon-corretto",npm_config_color:"always",DOMAIN_ENV:"test",MY_RUBY_HOME:"/home/teamcity/.rvm/rubies/ruby-3.3.6",TEAMCITY_VERSION:"2024.12.2 (build 174504)",LANG:"en_US.UTF-8",GROOVY_HOME:"/opt/groovy",TMP:"/mnt/agent/temp/buildTmp",npm_lifecycle_script:"tsc && vite build",BUILD_NUMBER:"1944",NUGET_PLUGIN_REQUEST_TIMEOUT_IN_SECONDS:"20",UID:"1001",AWS_PROFILE:"default",GOPATH:"/home/teamcity/go",JDK_17_0:"/usr/lib/jvm/java-17-amazon-corretto",SHELL:"/bin/bash",TEAMCITY_AGENT_OPTS:"-XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=../logs/agent_%p.hprof -Dteamcity.internal.hosted.server.technicalName=PREINIT_AGENT",npm_lifecycle_event:"build",npm_package_version:"1.0.6",JDK_1_8_x64:"/usr/lib/jvm/java-1.8.0-amazon-corretto",rvm_loaded_flag:"1",rvm_prefix:"/home/teamcity",GEM_HOME:"/home/teamcity/.rvm/gems/ruby-3.3.6",TURBO_INVOCATION_DIR:"/mnt/agent/work/a9beceb47246ff20/apps",JDK_11_0_x64:"/usr/lib/jvm/java-11-amazon-corretto",JDK_21_0_x64:"/usr/lib/jvm/java-21-amazon-corretto",rvm_version:"1.29.12 (latest)",npm_config_globalconfig:"/home/teamcity/.nvm/versions/node/v22.12.0/etc/npmrc",npm_config_init_module:"/home/teamcity/.npm-init.js",GEM_PATH:"/home/teamcity/.rvm/gems/ruby-3.3.6:/home/teamcity/.rvm/gems/ruby-3.3.6@global",JAVA_HOME:"/usr/lib/jvm/java-17-amazon-corretto",PWD:"/mnt/agent/work/a9beceb47246ff20/apps/packages/ws",TEAMCITY_AGENT_MEM_OPTS:"-Xmx512m",npm_execpath:"/home/teamcity/.nvm/versions/node/v22.12.0/lib/node_modules/npm/bin/npm-cli.js",ANDROID_HOME:"/home/teamcity/android-sdk-linux",JDK_11:"/usr/lib/jvm/java-11-amazon-corretto",TEAMCITY_GIT_VERSION:"2.47.1.0",XDG_DATA_DIRS:"/usr/local/share:/usr/share:/var/lib/snapd/desktop",npm_config_global_prefix:"/home/teamcity/.nvm/versions/node/v22.12.0",TEAMCITY_PROCESS_FLOW_ID:"153562341847",npm_command:"run-script",JDK_17_0_x64:"/usr/lib/jvm/java-17-amazon-corretto",rvm_ruby_string:"ruby-3.3.6",MEMORY_PRESSURE_WRITE:"c29tZSAyMDAwMDAgMjAwMDAwMAA=",rvm_path:"/home/teamcity/.rvm",EDITOR:"vi",INIT_CWD:"/mnt/agent/work/a9beceb47246ff20/apps/packages/ws",JDK_HOME:"/usr/lib/jvm/java-21-amazon-corretto",rvm_delete_flag:"0",NODE_ENV:"production",APP_NAME:"@wellesley/ws"};const[WO,VO]=(zO.TEST_1_SERVER||"").split("://"),HO={schema:WO,domain:VO},nC=({user:e,onFollow:t,onUnfollow:n})=>{const[r,o]=Ot(!1),i=Un(wf.selectors.selectIsAuthenticated),[a]=RC(),[s]=$C(),l=(null==e?void 0:e.domain)||location.host,u=null!=e&&e.domain?"":HO.schema;return{follow:async()=>{i?await a({username:e.username,domain:l,...u&&{schema:u}}):o(!0),null==t||t()},unfollow:async()=>{await s({username:e.username,domain:l,...u&&{schema:u}}),null==n||n()},renderGuestFollowModal:()=>r?D.jsx(BO,{user:e,isOpen:r,onClose:()=>o(!1)}):null}},GO=e=>{const{user:t,isLoading:n}=Nx(),{data:r,isLoading:o}=xC(e);return[r,`@${null==t?void 0:t.username}`===e.username,n||o]},rC=({user:e,title:t,isOpen:n,actionText:r,onClose:o,onSubmit:i,renderContent:a})=>(Et((()=>()=>{document.body.style.pointerEvents="auto"}),[n]),D.jsx(D1,{open:n,onOpenChange:o,children:D.jsxs(x0,{className:"gap-0 p-0","data-testid":"action-dialog",children:[D.jsxs("div",{className:"flex items-center justify-center gap-1 border-b border-slate-200 p-5",children:[D.jsxs("b",{children:[t,D.jsx("span",{className:"pl-1",children:e.displayName})]}),ns(e),"?"]}),a(),D.jsxs("div",{className:"flex items-center justify-end gap-3 border-t border-slate-200 p-5",children:[D.jsx(Cf,{variant:"ghost",className:"min-w-[110px]",onClick:o,children:"Cancel"}),D.jsx(Cf,{"data-testid":"submitAction",className:"min-w-[120px]",onClick:i,children:r})]})]})})),iC=(e=!1)=>{const[t,n]=Ot(e);return[t,Zn((()=>n(!0)),[]),Zn((()=>n(!1)),[]),Zn((()=>n((e=>!e))),[]),n,n]},gx={autoClose:3e3,isLoading:!1},oC=({user:e,relationship:t})=>{const[n]=IC(),[r]=PC(),[o,i,a,s]=iC(),l=bC(t),u=()=>{const t=Cn.loading(`Blocking ${e.displayName}...`);n({userId:e.id}).then((()=>Cn.update(t,{render:`Blocked ${e.displayName}`,type:"success",...gx}))),a()};return Et((()=>()=>{document.body.style.pointerEvents="auto"}),[o]),[l,i,()=>{const t=Cn.loading(`Unblocking ${e.displayName}...`);r({userId:e.id}).then((()=>Cn.update(t,{render:`Unblocked ${e.displayName}`,type:"success",...gx})))},()=>D.jsx(rC,{user:e,isOpen:o,title:"Do you want to block",onClose:s,onSubmit:u,actionText:"Block",renderContent:()=>D.jsxs("ul",{className:"p-5 text-sm font-medium [&>li]:mb-3 [&>li]:flex [&>li]:items-center [&>li]:gap-2 last:[&>li]:mb-0",children:[D.jsxs("li",{children:[D.jsx(Bx,{size:20})," You will not see their posts, reposts, quotes and replies"]}),D.jsxs("li",{children:[D.jsx(zx,{size:20})," They will not be able to see your posts or follow you"]}),D.jsxs("li",{children:[D.jsx(Wx,{size:20})," They will know you blocked them"]})]})})]},sC=({user:e,follow:t,unfollow:n,disabled:r,relationship:o,isRelationshipPending:i,size:a="small"})=>{const[s,,l]=oC({user:e,relationship:o}),u=SC(o)?"Follow back":"Follow",c=EC(o),d=W1(o),[f,p]=KS(),h=c&&!p||d;if(!i)return D.jsx(Cf,{ref:f,"data-testid":"followBtn",onClick:s?l:d||c?n:t,className:ut("w-[100%] md:max-w-[300px] lg:max-w-full","small"===a,!W1&&"bg-slate-700",s&&"text-red-dark border-red-dark"),variant:s||h?"outline":"default",disabled:r,children:s?"Unblock":c?p?"Cancel follow request":"Follow Pending":d?"Unfollow":u})},ZO=e=>e.replace(/(&lt;)/g,"<").replace(/&gt;/g,">"),vx=(e,t)=>null!=t&&t.length?t.reduce(((e,t)=>e=e.replaceAll(new RegExp(`:${t.shortcode}:`,"g"),`<img class="custom-emoji" src="${t.staticUrl}" alt='emoji ${t.shortcode}'/>`)),e):e,KO={list:[]},qO=Rf({name:"emojis",initialState:KO,reducers:{addEmoji:(e,t)=>{e.list.push(t.payload)},addList:(e,t)=>{e.list=t.payload}},selectors:{selectEmojis:e=>e.list}}).injectInto(s0);var U1=(e=>(e.header="header",e.avatar="avatar",e))(U1||{});const aC=({user:e,type:t})=>{var n,r,o,i;if(!e)return"";try{return("avatar"===t?null==(r=null==(n=e.avatar)?void 0:n.files[0])?void 0:r.uri:null==(i=null==(o=e.header)?void 0:o.files[0])?void 0:i.uri)||""}catch(e){return console.log(111,e),""}},lC="Tabs",[YO,T4]=Tl(lC,[c0]),uC=c0(),[QO,B1]=YO(lC),XO=gt(((e,t)=>{const{__scopeTabs:n,value:r,onValueChange:o,defaultValue:i,orientation:a="horizontal",dir:s,activationMode:l="automatic",...u}=e,c=o1(s),[d,f]=Xh({prop:r,onChange:o,defaultProp:i});return me(QO,{scope:n,baseId:jh(),value:d,onValueChange:f,orientation:a,dir:c,activationMode:l},me(Lt.div,rt({dir:c,"data-orientation":a},u,{ref:t})))})),JO="TabsList",e3=gt(((e,t)=>{const{__scopeTabs:n,loop:r=!0,...o}=e,i=B1(JO,n),a=uC(n);return me(eb,rt({asChild:!0},a,{orientation:i.orientation,dir:i.dir,loop:r}),me(Lt.div,rt({role:"tablist","aria-orientation":i.orientation},o,{ref:t})))})),t3="TabsTrigger",n3=gt(((e,t)=>{const{__scopeTabs:n,value:r,disabled:o=!1,...i}=e,a=B1(t3,n),s=uC(n),l=cC(a.baseId,r),u=fC(a.baseId,r),c=r===a.value;return me(tb,rt({asChild:!0},s,{focusable:!o,active:c}),me(Lt.button,rt({type:"button",role:"tab","aria-selected":c,"aria-controls":u,"data-state":c?"active":"inactive","data-disabled":o?"":void 0,disabled:o,id:l},i,{ref:t,onMouseDown:Bt(e.onMouseDown,(e=>{o||0!==e.button||!1!==e.ctrlKey?e.preventDefault():a.onValueChange(r)})),onKeyDown:Bt(e.onKeyDown,(e=>{[" ","Enter"].includes(e.key)&&a.onValueChange(r)})),onFocus:Bt(e.onFocus,(()=>{const e="manual"!==a.activationMode;!c&&!o&&e&&a.onValueChange(r)}))})))})),r3="TabsContent",i3=gt(((e,t)=>{const{__scopeTabs:n,value:r,forceMount:o,children:i,...a}=e,s=B1(r3,n),l=cC(s.baseId,r),u=fC(s.baseId,r),c=r===s.value,d=At(c);return Et((()=>{const e=requestAnimationFrame((()=>d.current=!1));return()=>cancelAnimationFrame(e)}),[]),me(sp,{present:o||c},(({present:n})=>me(Lt.div,rt({"data-state":c?"active":"inactive","data-orientation":s.orientation,role:"tabpanel","aria-labelledby":l,hidden:!n,id:u,tabIndex:0},a,{ref:t,style:{...e.style,animationDuration:d.current?"0s":void 0}}),n&&i)))}));function cC(e,t){return`${e}-trigger-${t}`}function fC(e,t){return`${e}-content-${t}`}const o3=XO,dC=e3,pC=n3,hC=i3,s3=o3,mC=M.forwardRef((({className:e,useDefaults:t=!0,...n},r)=>D.jsx(dC,{ref:r,"data-testid":"tabsList",className:t?ut("inline-flex items-center justify-center border-b border-slate-200 bg-white p-0 text-muted-foreground",e):e,...n})));mC.displayName=dC.displayName;const q_=M.forwardRef((({className:e,useDefaults:t=!0,...n},r)=>D.jsx(pC,{ref:r,className:t?ut("m-b-[-1px] inline-flex items-center justify-center whitespace-nowrap px-3 py-1.5 text-sm font-medium ring-offset-background transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring border-b-2 border-transparent focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:border-blue_100",e):e,...n})));q_.displayName=pC.displayName;const Y_=M.forwardRef((({className:e,...t},n)=>D.jsx(hC,{ref:n,className:ut("ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",e),...t})));Y_.displayName=hC.displayName;const a3=({userId:e,status:t,skip:n=!1})=>{const r=Un(Xd.selectors.selectCurrentUser),o=Un(wf.selectors.selectIsAuthenticated),i=!n&&o,a=e||(null==r?void 0:r.id),s=!(t||!a||!i),l=!(!t||!o||s||!i),{data:u}=OC({status:t},{skip:s||!l}),{data:c}=LC({userId:a},{skip:l||!s}),[d]=Rx(),[f]=$x();return[c||u,({username:e,domain:t})=>{d({username:`@${e}@${t}`})},({username:e,domain:t})=>{f({username:`@${e}@${t}`})}]},l3=({status:e,userId:t,skip:n=!1})=>{const r=Un(wf.selectors.selectIsAuthenticated),o=!!e&&r,{data:i,isLoading:a}=DC({status:e},{skip:!o||n}),{data:s,isLoading:l}=MC({userId:t},{skip:o||!t||!r||n});return{data:i||s,isLoading:a||l}},u3=()=>"TOOT",z1=()=>{const e=Un(Xd.selectors.selectCurrentUser),t=Un(wf.selectors.selectIsAuthenticated),n=Ix(),r="SUSPENDED"===(null==e?void 0:e.state),o=r;return{isDisabled:o,guardedAction:(e=()=>{})=>()=>{t?t&&!r&&e():n("/signin",{props:{redirectUrl:window.location.href}})},ActionTooltipWrapper:({children:t,triggerClassname:n})=>o?D.jsx(RT,{theme:"dark",tooltipText:`${ns(e)} is suspended`,size:"default",triggerClassname:n,children:D.jsx("div",{className:"!pointer-events-auto w-full",children:t})}):D.jsx(D.Fragment,{children:t})}},gC=({user:e,size:t,disabled:n,relationship:r,isRelationshipPending:o,onFollow:i,onUnfollow:a})=>{const{follow:s,unfollow:l,renderGuestFollowModal:u}=nC({user:e,onFollow:i,onUnfollow:a}),c=Un(Xd.selectors.selectCurrentUser),d=e.id===(null==c?void 0:c.id),{isDisabled:f,ActionTooltipWrapper:p}=z1();return d||o?null:D.jsxs("div",{"data-testid":"followControl",children:[u(),D.jsx(p,{triggerClassname:ut("big"===t&&"w-full"),children:D.jsx(sC,{user:e,size:t,disabled:n,follow:()=>{s()},unfollow:()=>{l()},disabled:f,relationship:r,isRelationshipPending:!1})})]})};var yx,ug={exports:{}},c3=ug.exports;
61
+ /**
62
+ * @license
63
+ * Lodash <https://lodash.com/>
64
+ * Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
65
+ * Released under MIT license <https://lodash.com/license>
66
+ * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
67
+ * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
68
+ */function f3(){return yx||(yx=1,e=ug,t=ug.exports,function(){var n,r="Expected a function",o="__lodash_hash_undefined__",i="__lodash_placeholder__",a=16,s=32,l=64,u=128,c=256,d=1/0,f=9007199254740991,p=NaN,h=4294967295,m=h-1,v=h>>>1,g=[["ary",u],["bind",1],["bindKey",2],["curry",8],["curryRight",a],["flip",512],["partial",s],["partialRight",l],["rearg",c]],y="[object Arguments]",b="[object Array]",_="[object Boolean]",w="[object Date]",x="[object Error]",k="[object Function]",E="[object GeneratorFunction]",S="[object Map]",C="[object Number]",N="[object Object]",I="[object Promise]",A="[object RegExp]",T="[object Set]",O="[object String]",D="[object Symbol]",P="[object WeakMap]",R="[object ArrayBuffer]",M="[object DataView]",j="[object Float32Array]",L="[object Float64Array]",U="[object Int8Array]",F="[object Int16Array]",z="[object Int32Array]",$="[object Uint8Array]",B="[object Uint8ClampedArray]",W="[object Uint16Array]",V="[object Uint32Array]",K=/\b__p \+= '';/g,Z=/\b(__p \+=) '' \+/g,q=/(__e\(.*?\)|\b__t\)) \+\n'';/g,H=/&(?:amp|lt|gt|quot|#39);/g,G=/[&<>"']/g,Q=RegExp(H.source),Y=RegExp(G.source),X=/<%-([\s\S]+?)%>/g,J=/<%([\s\S]+?)%>/g,ee=/<%=([\s\S]+?)%>/g,te=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,ne=/^\w*$/,re=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,oe=/[\\^$.*+?()[\]{}|]/g,ie=RegExp(oe.source),ae=/^\s+/,se=/\s/,le=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,ue=/\{\n\/\* \[wrapped with (.+)\] \*/,ce=/,? & /,de=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,fe=/[()=,{}\[\]\/\s]/,pe=/\\(\\)?/g,he=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,me=/\w*$/,ve=/^[-+]0x[0-9a-f]+$/i,ge=/^0b[01]+$/i,ye=/^\[object .+?Constructor\]$/,be=/^0o[0-7]+$/i,_e=/^(?:0|[1-9]\d*)$/,we=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,xe=/($^)/,ke=/['\n\r\u2028\u2029\\]/g,Ee="\\ud800-\\udfff",Se="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",Ce="\\u2700-\\u27bf",Ne="a-z\\xdf-\\xf6\\xf8-\\xff",Ie="A-Z\\xc0-\\xd6\\xd8-\\xde",Ae="\\ufe0e\\ufe0f",Te="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Oe="['’]",De="["+Ee+"]",Pe="["+Te+"]",Re="["+Se+"]",Me="\\d+",je="["+Ce+"]",Le="["+Ne+"]",Ue="[^"+Ee+Te+Me+Ce+Ne+Ie+"]",Fe="\\ud83c[\\udffb-\\udfff]",ze="[^"+Ee+"]",$e="(?:\\ud83c[\\udde6-\\uddff]){2}",Be="[\\ud800-\\udbff][\\udc00-\\udfff]",We="["+Ie+"]",Ve="\\u200d",Ke="(?:"+Le+"|"+Ue+")",Ze="(?:"+We+"|"+Ue+")",qe="(?:['’](?:d|ll|m|re|s|t|ve))?",He="(?:['’](?:D|LL|M|RE|S|T|VE))?",Ge="(?:"+Re+"|"+Fe+")?",Qe="["+Ae+"]?",Ye=Qe+Ge+"(?:"+Ve+"(?:"+[ze,$e,Be].join("|")+")"+Qe+Ge+")*",Xe="(?:"+[je,$e,Be].join("|")+")"+Ye,Je="(?:"+[ze+Re+"?",Re,$e,Be,De].join("|")+")",et=RegExp(Oe,"g"),tt=RegExp(Re,"g"),nt=RegExp(Fe+"(?="+Fe+")|"+Je+Ye,"g"),rt=RegExp([We+"?"+Le+"+"+qe+"(?="+[Pe,We,"$"].join("|")+")",Ze+"+"+He+"(?="+[Pe,We+Ke,"$"].join("|")+")",We+"?"+Ke+"+"+qe,We+"+"+He,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Me,Xe].join("|"),"g"),ot=RegExp("["+Ve+Ee+Se+Ae+"]"),it=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,at=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],st=-1,lt={};lt[j]=lt[L]=lt[U]=lt[F]=lt[z]=lt[$]=lt[B]=lt[W]=lt[V]=!0,lt[y]=lt[b]=lt[R]=lt[_]=lt[M]=lt[w]=lt[x]=lt[k]=lt[S]=lt[C]=lt[N]=lt[A]=lt[T]=lt[O]=lt[P]=!1;var ut={};ut[y]=ut[b]=ut[R]=ut[M]=ut[_]=ut[w]=ut[j]=ut[L]=ut[U]=ut[F]=ut[z]=ut[S]=ut[C]=ut[N]=ut[A]=ut[T]=ut[O]=ut[D]=ut[$]=ut[B]=ut[W]=ut[V]=!0,ut[x]=ut[k]=ut[P]=!1;var ct={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},dt=parseFloat,ft=parseInt,pt="object"==typeof vf&&vf&&vf.Object===Object&&vf,ht="object"==typeof self&&self&&self.Object===Object&&self,mt=pt||ht||Function("return this")(),vt=t&&!t.nodeType&&t,gt=vt&&e&&!e.nodeType&&e,yt=gt&&gt.exports===vt,bt=yt&&pt.process,_t=function(){try{return gt&&gt.require&&gt.require("util").types||bt&&bt.binding&&bt.binding("util")}catch{}}(),wt=_t&&_t.isArrayBuffer,xt=_t&&_t.isDate,kt=_t&&_t.isMap,Et=_t&&_t.isRegExp,St=_t&&_t.isSet,Ct=_t&&_t.isTypedArray;function Nt(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function It(e,t,n,r){for(var o=-1,i=null==e?0:e.length;++o<i;){var a=e[o];t(r,a,n(a),e)}return r}function At(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e}function Tt(e,t){for(var n=null==e?0:e.length;n--&&!1!==t(e[n],n,e););return e}function Ot(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(!t(e[n],n,e))return!1;return!0}function Dt(e,t){for(var n=-1,r=null==e?0:e.length,o=0,i=[];++n<r;){var a=e[n];t(a,n,e)&&(i[o++]=a)}return i}function Pt(e,t){return!(null==e||!e.length)&&Wt(e,t,0)>-1}function Rt(e,t,n){for(var r=-1,o=null==e?0:e.length;++r<o;)if(n(t,e[r]))return!0;return!1}function Mt(e,t){for(var n=-1,r=null==e?0:e.length,o=Array(r);++n<r;)o[n]=t(e[n],n,e);return o}function jt(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}function Lt(e,t,n,r){var o=-1,i=null==e?0:e.length;for(r&&i&&(n=e[++o]);++o<i;)n=t(n,e[o],o,e);return n}function Ut(e,t,n,r){var o=null==e?0:e.length;for(r&&o&&(n=e[--o]);o--;)n=t(n,e[o],o,e);return n}function Ft(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}var zt=qt("length");function $t(e,t,n){var r;return n(e,(function(e,n,o){if(t(e,n,o))return r=n,!1})),r}function Bt(e,t,n,r){for(var o=e.length,i=n+(r?1:-1);r?i--:++i<o;)if(t(e[i],i,e))return i;return-1}function Wt(e,t,n){return t==t?function(e,t,n){for(var r=n-1,o=e.length;++r<o;)if(e[r]===t)return r;return-1}(e,t,n):Bt(e,Kt,n)}function Vt(e,t,n,r){for(var o=n-1,i=e.length;++o<i;)if(r(e[o],t))return o;return-1}function Kt(e){return e!=e}function Zt(e,t){var n=null==e?0:e.length;return n?Qt(e,t)/n:p}function qt(e){return function(t){return null==t?n:t[e]}}function Ht(e){return function(t){return null==e?n:e[t]}}function Gt(e,t,n,r,o){return o(e,(function(e,o,i){n=r?(r=!1,e):t(n,e,o,i)})),n}function Qt(e,t){for(var r,o=-1,i=e.length;++o<i;){var a=t(e[o]);a!==n&&(r=r===n?a:r+a)}return r}function Yt(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}function Xt(e){return e&&e.slice(0,mn(e)+1).replace(ae,"")}function Jt(e){return function(t){return e(t)}}function en(e,t){return Mt(t,(function(t){return e[t]}))}function tn(e,t){return e.has(t)}function nn(e,t){for(var n=-1,r=e.length;++n<r&&Wt(t,e[n],0)>-1;);return n}function rn(e,t){for(var n=e.length;n--&&Wt(t,e[n],0)>-1;);return n}var on=Ht({"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"s"}),an=Ht({"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"});function sn(e){return"\\"+ct[e]}function ln(e){return ot.test(e)}function un(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}function cn(e,t){return function(n){return e(t(n))}}function dn(e,t){for(var n=-1,r=e.length,o=0,a=[];++n<r;){var s=e[n];(s===t||s===i)&&(e[n]=i,a[o++]=n)}return a}function fn(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}function pn(e){return ln(e)?function(e){for(var t=nt.lastIndex=0;nt.test(e);)++t;return t}(e):zt(e)}function hn(e){return ln(e)?function(e){return e.match(nt)||[]}(e):function(e){return e.split("")}(e)}function mn(e){for(var t=e.length;t--&&se.test(e.charAt(t)););return t}var vn=Ht({"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"}),gn=function e(t){var se,Ee=(t=null==t?mt:gn.defaults(mt.Object(),t,gn.pick(mt,at))).Array,Se=t.Date,Ce=t.Error,Ne=t.Function,Ie=t.Math,Ae=t.Object,Te=t.RegExp,Oe=t.String,De=t.TypeError,Pe=Ee.prototype,Re=Ne.prototype,Me=Ae.prototype,je=t["__core-js_shared__"],Le=Re.toString,Ue=Me.hasOwnProperty,Fe=0,ze=(se=/[^.]+$/.exec(je&&je.keys&&je.keys.IE_PROTO||""))?"Symbol(src)_1."+se:"",$e=Me.toString,Be=Le.call(Ae),We=mt._,Ve=Te("^"+Le.call(Ue).replace(oe,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Ke=yt?t.Buffer:n,Ze=t.Symbol,qe=t.Uint8Array,He=Ke?Ke.allocUnsafe:n,Ge=cn(Ae.getPrototypeOf,Ae),Qe=Ae.create,Ye=Me.propertyIsEnumerable,Xe=Pe.splice,Je=Ze?Ze.isConcatSpreadable:n,nt=Ze?Ze.iterator:n,ot=Ze?Ze.toStringTag:n,ct=function(){try{var e=hi(Ae,"defineProperty");return e({},"",{}),e}catch{}}(),pt=t.clearTimeout!==mt.clearTimeout&&t.clearTimeout,ht=Se&&Se.now!==mt.Date.now&&Se.now,vt=t.setTimeout!==mt.setTimeout&&t.setTimeout,gt=Ie.ceil,bt=Ie.floor,_t=Ae.getOwnPropertySymbols,zt=Ke?Ke.isBuffer:n,Ht=t.isFinite,yn=Pe.join,bn=cn(Ae.keys,Ae),_n=Ie.max,wn=Ie.min,xn=Se.now,kn=t.parseInt,En=Ie.random,Sn=Pe.reverse,Cn=hi(t,"DataView"),Nn=hi(t,"Map"),In=hi(t,"Promise"),An=hi(t,"Set"),Tn=hi(t,"WeakMap"),On=hi(Ae,"create"),Dn=Tn&&new Tn,Pn={},Rn=zi(Cn),Mn=zi(Nn),jn=zi(In),Ln=zi(An),Un=zi(Tn),Fn=Ze?Ze.prototype:n,zn=Fn?Fn.valueOf:n,$n=Fn?Fn.toString:n;function Bn(e){if(rs(e)&&!Za(e)&&!(e instanceof Zn)){if(e instanceof Kn)return e;if(Ue.call(e,"__wrapped__"))return $i(e)}return new Kn(e)}var Wn=function(){function e(){}return function(t){if(!ns(t))return{};if(Qe)return Qe(t);e.prototype=t;var r=new e;return e.prototype=n,r}}();function Vn(){}function Kn(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=n}function Zn(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=h,this.__views__=[]}function qn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Hn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Gn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Qn(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new Gn;++t<n;)this.add(e[t])}function Yn(e){var t=this.__data__=new Hn(e);this.size=t.size}function Xn(e,t){var n=Za(e),r=!n&&Ka(e),o=!n&&!r&&Qa(e),i=!n&&!r&&!o&&ds(e),a=n||r||o||i,s=a?Yt(e.length,Oe):[],l=s.length;for(var u in e)(t||Ue.call(e,u))&&(!a||!("length"==u||o&&("offset"==u||"parent"==u)||i&&("buffer"==u||"byteLength"==u||"byteOffset"==u)||wi(u,l)))&&s.push(u);return s}function Jn(e){var t=e.length;return t?e[Qr(0,t-1)]:n}function er(e,t){return Li(Do(e),ur(t,0,e.length))}function tr(e){return Li(Do(e))}function nr(e,t,r){(r!==n&&!Ba(e[t],r)||r===n&&!(t in e))&&sr(e,t,r)}function rr(e,t,r){var o=e[t];(!Ue.call(e,t)||!Ba(o,r)||r===n&&!(t in e))&&sr(e,t,r)}function or(e,t){for(var n=e.length;n--;)if(Ba(e[n][0],t))return n;return-1}function ir(e,t,n,r){return hr(e,(function(e,o,i){t(r,e,n(e),i)})),r}function ar(e,t){return e&&Po(t,Ps(t),e)}function sr(e,t,n){"__proto__"==t&&ct?ct(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function lr(e,t){for(var r=-1,o=t.length,i=Ee(o),a=null==e;++r<o;)i[r]=a?n:Is(e,t[r]);return i}function ur(e,t,r){return e==e&&(r!==n&&(e=e<=r?e:r),t!==n&&(e=e>=t?e:t)),e}function cr(e,t,r,o,i,a){var s,l=1&t,u=2&t,c=4&t;if(r&&(s=i?r(e,o,i,a):r(e)),s!==n)return s;if(!ns(e))return e;var d=Za(e);if(d){if(s=function(e){var t=e.length,n=new e.constructor(t);return t&&"string"==typeof e[0]&&Ue.call(e,"index")&&(n.index=e.index,n.input=e.input),n}(e),!l)return Do(e,s)}else{var f=gi(e),p=f==k||f==E;if(Qa(e))return Co(e,l);if(f==N||f==y||p&&!i){if(s=u||p?{}:bi(e),!l)return u?function(e,t){return Po(e,vi(e),t)}(e,function(e,t){return e&&Po(t,Rs(t),e)}(s,e)):function(e,t){return Po(e,mi(e),t)}(e,ar(s,e))}else{if(!ut[f])return i?e:{};s=function(e,t,n){var r=e.constructor;switch(t){case R:return No(e);case _:case w:return new r(+e);case M:return function(e,t){var n=t?No(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,n);case j:case L:case U:case F:case z:case $:case B:case W:case V:return Io(e,n);case S:return new r;case C:case O:return new r(e);case A:return function(e){var t=new e.constructor(e.source,me.exec(e));return t.lastIndex=e.lastIndex,t}(e);case T:return new r;case D:return function(e){return zn?Ae(zn.call(e)):{}}(e)}}(e,f,l)}}a||(a=new Yn);var h=a.get(e);if(h)return h;a.set(e,s),ls(e)?e.forEach((function(n){s.add(cr(n,t,r,n,e,a))})):os(e)&&e.forEach((function(n,o){s.set(o,cr(n,t,r,o,e,a))}));var m=d?n:(c?u?si:ai:u?Rs:Ps)(e);return At(m||e,(function(n,o){m&&(n=e[o=n]),rr(s,o,cr(n,t,r,o,e,a))})),s}function dr(e,t,r){var o=r.length;if(null==e)return!o;for(e=Ae(e);o--;){var i=r[o],a=t[i],s=e[i];if(s===n&&!(i in e)||!a(s))return!1}return!0}function fr(e,t,o){if("function"!=typeof e)throw new De(r);return Pi((function(){e.apply(n,o)}),t)}function pr(e,t,n,r){var o=-1,i=Pt,a=!0,s=e.length,l=[],u=t.length;if(!s)return l;n&&(t=Mt(t,Jt(n))),r?(i=Rt,a=!1):t.length>=200&&(i=tn,a=!1,t=new Qn(t));e:for(;++o<s;){var c=e[o],d=null==n?c:n(c);if(c=r||0!==c?c:0,a&&d==d){for(var f=u;f--;)if(t[f]===d)continue e;l.push(c)}else i(t,d,r)||l.push(c)}return l}Bn.templateSettings={escape:X,evaluate:J,interpolate:ee,variable:"",imports:{_:Bn}},Bn.prototype=Vn.prototype,Bn.prototype.constructor=Bn,Kn.prototype=Wn(Vn.prototype),Kn.prototype.constructor=Kn,Zn.prototype=Wn(Vn.prototype),Zn.prototype.constructor=Zn,qn.prototype.clear=function(){this.__data__=On?On(null):{},this.size=0},qn.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},qn.prototype.get=function(e){var t=this.__data__;if(On){var r=t[e];return r===o?n:r}return Ue.call(t,e)?t[e]:n},qn.prototype.has=function(e){var t=this.__data__;return On?t[e]!==n:Ue.call(t,e)},qn.prototype.set=function(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=On&&t===n?o:t,this},Hn.prototype.clear=function(){this.__data__=[],this.size=0},Hn.prototype.delete=function(e){var t=this.__data__,n=or(t,e);return!(n<0||(n==t.length-1?t.pop():Xe.call(t,n,1),--this.size,0))},Hn.prototype.get=function(e){var t=this.__data__,r=or(t,e);return r<0?n:t[r][1]},Hn.prototype.has=function(e){return or(this.__data__,e)>-1},Hn.prototype.set=function(e,t){var n=this.__data__,r=or(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},Gn.prototype.clear=function(){this.size=0,this.__data__={hash:new qn,map:new(Nn||Hn),string:new qn}},Gn.prototype.delete=function(e){var t=fi(this,e).delete(e);return this.size-=t?1:0,t},Gn.prototype.get=function(e){return fi(this,e).get(e)},Gn.prototype.has=function(e){return fi(this,e).has(e)},Gn.prototype.set=function(e,t){var n=fi(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},Qn.prototype.add=Qn.prototype.push=function(e){return this.__data__.set(e,o),this},Qn.prototype.has=function(e){return this.__data__.has(e)},Yn.prototype.clear=function(){this.__data__=new Hn,this.size=0},Yn.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},Yn.prototype.get=function(e){return this.__data__.get(e)},Yn.prototype.has=function(e){return this.__data__.has(e)},Yn.prototype.set=function(e,t){var n=this.__data__;if(n instanceof Hn){var r=n.__data__;if(!Nn||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Gn(r)}return n.set(e,t),this.size=n.size,this};var hr=jo(xr),mr=jo(kr,!0);function vr(e,t){var n=!0;return hr(e,(function(e,r,o){return n=!!t(e,r,o)})),n}function gr(e,t,r){for(var o=-1,i=e.length;++o<i;){var a=e[o],s=t(a);if(null!=s&&(l===n?s==s&&!cs(s):r(s,l)))var l=s,u=a}return u}function yr(e,t){var n=[];return hr(e,(function(e,r,o){t(e,r,o)&&n.push(e)})),n}function br(e,t,n,r,o){var i=-1,a=e.length;for(n||(n=_i),o||(o=[]);++i<a;){var s=e[i];t>0&&n(s)?t>1?br(s,t-1,n,r,o):jt(o,s):r||(o[o.length]=s)}return o}var _r=Lo(),wr=Lo(!0);function xr(e,t){return e&&_r(e,t,Ps)}function kr(e,t){return e&&wr(e,t,Ps)}function Er(e,t){return Dt(t,(function(t){return Ja(e[t])}))}function Sr(e,t){for(var r=0,o=(t=xo(t,e)).length;null!=e&&r<o;)e=e[Fi(t[r++])];return r&&r==o?e:n}function Cr(e,t,n){var r=t(e);return Za(e)?r:jt(r,n(e))}function Nr(e){return null==e?e===n?"[object Undefined]":"[object Null]":ot&&ot in Ae(e)?function(e){var t=Ue.call(e,ot),r=e[ot];try{e[ot]=n;var o=!0}catch{}var i=$e.call(e);return o&&(t?e[ot]=r:delete e[ot]),i}(e):function(e){return $e.call(e)}(e)}function Ir(e,t){return e>t}function Ar(e,t){return null!=e&&Ue.call(e,t)}function Tr(e,t){return null!=e&&t in Ae(e)}function Or(e,t,r){for(var o=r?Rt:Pt,i=e[0].length,a=e.length,s=a,l=Ee(a),u=1/0,c=[];s--;){var d=e[s];s&&t&&(d=Mt(d,Jt(t))),u=wn(d.length,u),l[s]=!r&&(t||i>=120&&d.length>=120)?new Qn(s&&d):n}d=e[0];var f=-1,p=l[0];e:for(;++f<i&&c.length<u;){var h=d[f],m=t?t(h):h;if(h=r||0!==h?h:0,!(p?tn(p,m):o(c,m,r))){for(s=a;--s;){var v=l[s];if(!(v?tn(v,m):o(e[s],m,r)))continue e}p&&p.push(m),c.push(h)}}return c}function Dr(e,t,r){var o=null==(e=Ti(e,t=xo(t,e)))?e:e[Fi(Xi(t))];return null==o?n:Nt(o,e,r)}function Pr(e){return rs(e)&&Nr(e)==y}function Rr(e,t,r,o,i){return e===t||(null==e||null==t||!rs(e)&&!rs(t)?e!=e&&t!=t:function(e,t,r,o,i,a){var s=Za(e),l=Za(t),u=s?b:gi(e),c=l?b:gi(t),d=(u=u==y?N:u)==N,f=(c=c==y?N:c)==N,p=u==c;if(p&&Qa(e)){if(!Qa(t))return!1;s=!0,d=!1}if(p&&!d)return a||(a=new Yn),s||ds(e)?oi(e,t,r,o,i,a):function(e,t,n,r,o,i,a){switch(n){case M:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case R:return!(e.byteLength!=t.byteLength||!i(new qe(e),new qe(t)));case _:case w:case C:return Ba(+e,+t);case x:return e.name==t.name&&e.message==t.message;case A:case O:return e==t+"";case S:var s=un;case T:var l=1&r;if(s||(s=fn),e.size!=t.size&&!l)return!1;var u=a.get(e);if(u)return u==t;r|=2,a.set(e,t);var c=oi(s(e),s(t),r,o,i,a);return a.delete(e),c;case D:if(zn)return zn.call(e)==zn.call(t)}return!1}(e,t,u,r,o,i,a);if(!(1&r)){var h=d&&Ue.call(e,"__wrapped__"),m=f&&Ue.call(t,"__wrapped__");if(h||m){var v=h?e.value():e,g=m?t.value():t;return a||(a=new Yn),i(v,g,r,o,a)}}return!!p&&(a||(a=new Yn),function(e,t,r,o,i,a){var s=1&r,l=ai(e),u=l.length,c=ai(t),d=c.length;if(u!=d&&!s)return!1;for(var f=u;f--;){var p=l[f];if(!(s?p in t:Ue.call(t,p)))return!1}var h=a.get(e),m=a.get(t);if(h&&m)return h==t&&m==e;var v=!0;a.set(e,t),a.set(t,e);for(var g=s;++f<u;){var y=e[p=l[f]],b=t[p];if(o)var _=s?o(b,y,p,t,e,a):o(y,b,p,e,t,a);if(!(_===n?y===b||i(y,b,r,o,a):_)){v=!1;break}g||(g="constructor"==p)}if(v&&!g){var w=e.constructor,x=t.constructor;w!=x&&"constructor"in e&&"constructor"in t&&!("function"==typeof w&&w instanceof w&&"function"==typeof x&&x instanceof x)&&(v=!1)}return a.delete(e),a.delete(t),v}(e,t,r,o,i,a))}(e,t,r,o,Rr,i))}function Mr(e,t,r,o){var i=r.length,a=i,s=!o;if(null==e)return!a;for(e=Ae(e);i--;){var l=r[i];if(s&&l[2]?l[1]!==e[l[0]]:!(l[0]in e))return!1}for(;++i<a;){var u=(l=r[i])[0],c=e[u],d=l[1];if(s&&l[2]){if(c===n&&!(u in e))return!1}else{var f=new Yn;if(o)var p=o(c,d,u,e,t,f);if(!(p===n?Rr(d,c,3,o,f):p))return!1}}return!0}function jr(e){return!(!ns(e)||function(e){return!!ze&&ze in e}(e))&&(Ja(e)?Ve:ye).test(zi(e))}function Lr(e){return"function"==typeof e?e:null==e?il:"object"==typeof e?Za(e)?Wr(e[0],e[1]):Br(e):hl(e)}function Ur(e){if(!Ci(e))return bn(e);var t=[];for(var n in Ae(e))Ue.call(e,n)&&"constructor"!=n&&t.push(n);return t}function Fr(e){if(!ns(e))return function(e){var t=[];if(null!=e)for(var n in Ae(e))t.push(n);return t}(e);var t=Ci(e),n=[];for(var r in e)"constructor"==r&&(t||!Ue.call(e,r))||n.push(r);return n}function zr(e,t){return e<t}function $r(e,t){var n=-1,r=Ha(e)?Ee(e.length):[];return hr(e,(function(e,o,i){r[++n]=t(e,o,i)})),r}function Br(e){var t=pi(e);return 1==t.length&&t[0][2]?Ii(t[0][0],t[0][1]):function(n){return n===e||Mr(n,e,t)}}function Wr(e,t){return ki(e)&&Ni(t)?Ii(Fi(e),t):function(r){var o=Is(r,e);return o===n&&o===t?As(r,e):Rr(t,o,3)}}function Vr(e,t,r,o,i){e!==t&&_r(t,(function(a,s){if(i||(i=new Yn),ns(a))!function(e,t,r,o,i,a,s){var l=Oi(e,r),u=Oi(t,r),c=s.get(u);if(c)nr(e,r,c);else{var d=a?a(l,u,r+"",e,t,s):n,f=d===n;if(f){var p=Za(u),h=!p&&Qa(u),m=!p&&!h&&ds(u);d=u,p||h||m?Za(l)?d=l:Ga(l)?d=Do(l):h?(f=!1,d=Co(u,!0)):m?(f=!1,d=Io(u,!0)):d=[]:as(u)||Ka(u)?(d=l,Ka(l)?d=bs(l):(!ns(l)||Ja(l))&&(d=bi(u))):f=!1}f&&(s.set(u,d),i(d,u,o,a,s),s.delete(u)),nr(e,r,d)}}(e,t,s,r,Vr,o,i);else{var l=o?o(Oi(e,s),a,s+"",e,t,i):n;l===n&&(l=a),nr(e,s,l)}}),Rs)}function Kr(e,t){var r=e.length;if(r)return wi(t+=t<0?r:0,r)?e[t]:n}function Zr(e,t,n){t=t.length?Mt(t,(function(e){return Za(e)?function(t){return Sr(t,1===e.length?e[0]:e)}:e})):[il];var r=-1;return t=Mt(t,Jt(di())),function(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}($r(e,(function(e,n,o){return{criteria:Mt(t,(function(t){return t(e)})),index:++r,value:e}})),(function(e,t){return function(e,t,n){for(var r=-1,o=e.criteria,i=t.criteria,a=o.length,s=n.length;++r<a;){var l=Ao(o[r],i[r]);if(l)return r>=s?l:l*("desc"==n[r]?-1:1)}return e.index-t.index}(e,t,n)}))}function qr(e,t,n){for(var r=-1,o=t.length,i={};++r<o;){var a=t[r],s=Sr(e,a);n(s,a)&&to(i,xo(a,e),s)}return i}function Hr(e,t,n,r){var o=r?Vt:Wt,i=-1,a=t.length,s=e;for(e===t&&(t=Do(t)),n&&(s=Mt(e,Jt(n)));++i<a;)for(var l=0,u=t[i],c=n?n(u):u;(l=o(s,c,l,r))>-1;)s!==e&&Xe.call(s,l,1),Xe.call(e,l,1);return e}function Gr(e,t){for(var n=e?t.length:0,r=n-1;n--;){var o=t[n];if(n==r||o!==i){var i=o;wi(o)?Xe.call(e,o,1):ho(e,o)}}return e}function Qr(e,t){return e+bt(En()*(t-e+1))}function Yr(e,t){var n="";if(!e||t<1||t>f)return n;do{t%2&&(n+=e),(t=bt(t/2))&&(e+=e)}while(t);return n}function Xr(e,t){return Ri(Ai(e,t,il),e+"")}function Jr(e){return Jn(Bs(e))}function eo(e,t){var n=Bs(e);return Li(n,ur(t,0,n.length))}function to(e,t,r,o){if(!ns(e))return e;for(var i=-1,a=(t=xo(t,e)).length,s=a-1,l=e;null!=l&&++i<a;){var u=Fi(t[i]),c=r;if("__proto__"===u||"constructor"===u||"prototype"===u)return e;if(i!=s){var d=l[u];(c=o?o(d,u,l):n)===n&&(c=ns(d)?d:wi(t[i+1])?[]:{})}rr(l,u,c),l=l[u]}return e}var no=Dn?function(e,t){return Dn.set(e,t),e}:il,ro=ct?function(e,t){return ct(e,"toString",{configurable:!0,enumerable:!1,value:nl(t),writable:!0})}:il;function oo(e){return Li(Bs(e))}function io(e,t,n){var r=-1,o=e.length;t<0&&(t=-t>o?0:o+t),(n=n>o?o:n)<0&&(n+=o),o=t>n?0:n-t>>>0,t>>>=0;for(var i=Ee(o);++r<o;)i[r]=e[r+t];return i}function ao(e,t){var n;return hr(e,(function(e,r,o){return!(n=t(e,r,o))})),!!n}function so(e,t,n){var r=0,o=null==e?r:e.length;if("number"==typeof t&&t==t&&o<=v){for(;r<o;){var i=r+o>>>1,a=e[i];null!==a&&!cs(a)&&(n?a<=t:a<t)?r=i+1:o=i}return o}return lo(e,t,il,n)}function lo(e,t,r,o){var i=0,a=null==e?0:e.length;if(0===a)return 0;for(var s=(t=r(t))!=t,l=null===t,u=cs(t),c=t===n;i<a;){var d=bt((i+a)/2),f=r(e[d]),p=f!==n,h=null===f,v=f==f,g=cs(f);if(s)var y=o||v;else y=c?v&&(o||p):l?v&&p&&(o||!h):u?v&&p&&!h&&(o||!g):!h&&!g&&(o?f<=t:f<t);y?i=d+1:a=d}return wn(a,m)}function uo(e,t){for(var n=-1,r=e.length,o=0,i=[];++n<r;){var a=e[n],s=t?t(a):a;if(!n||!Ba(s,l)){var l=s;i[o++]=0===a?0:a}}return i}function co(e){return"number"==typeof e?e:cs(e)?p:+e}function fo(e){if("string"==typeof e)return e;if(Za(e))return Mt(e,fo)+"";if(cs(e))return $n?$n.call(e):"";var t=e+"";return"0"==t&&1/e==-d?"-0":t}function po(e,t,n){var r=-1,o=Pt,i=e.length,a=!0,s=[],l=s;if(n)a=!1,o=Rt;else if(i>=200){var u=t?null:Xo(e);if(u)return fn(u);a=!1,o=tn,l=new Qn}else l=t?[]:s;e:for(;++r<i;){var c=e[r],d=t?t(c):c;if(c=n||0!==c?c:0,a&&d==d){for(var f=l.length;f--;)if(l[f]===d)continue e;t&&l.push(d),s.push(c)}else o(l,d,n)||(l!==s&&l.push(d),s.push(c))}return s}function ho(e,t){return null==(e=Ti(e,t=xo(t,e)))||delete e[Fi(Xi(t))]}function mo(e,t,n,r){return to(e,t,n(Sr(e,t)),r)}function vo(e,t,n,r){for(var o=e.length,i=r?o:-1;(r?i--:++i<o)&&t(e[i],i,e););return n?io(e,r?0:i,r?i+1:o):io(e,r?i+1:0,r?o:i)}function go(e,t){var n=e;return n instanceof Zn&&(n=n.value()),Lt(t,(function(e,t){return t.func.apply(t.thisArg,jt([e],t.args))}),n)}function yo(e,t,n){var r=e.length;if(r<2)return r?po(e[0]):[];for(var o=-1,i=Ee(r);++o<r;)for(var a=e[o],s=-1;++s<r;)s!=o&&(i[o]=pr(i[o]||a,e[s],t,n));return po(br(i,1),t,n)}function bo(e,t,r){for(var o=-1,i=e.length,a=t.length,s={};++o<i;){var l=o<a?t[o]:n;r(s,e[o],l)}return s}function _o(e){return Ga(e)?e:[]}function wo(e){return"function"==typeof e?e:il}function xo(e,t){return Za(e)?e:ki(e,t)?[e]:Ui(_s(e))}var ko=Xr;function Eo(e,t,r){var o=e.length;return r=r===n?o:r,!t&&r>=o?e:io(e,t,r)}var So=pt||function(e){return mt.clearTimeout(e)};function Co(e,t){if(t)return e.slice();var n=e.length,r=He?He(n):new e.constructor(n);return e.copy(r),r}function No(e){var t=new e.constructor(e.byteLength);return new qe(t).set(new qe(e)),t}function Io(e,t){var n=t?No(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function Ao(e,t){if(e!==t){var r=e!==n,o=null===e,i=e==e,a=cs(e),s=t!==n,l=null===t,u=t==t,c=cs(t);if(!l&&!c&&!a&&e>t||a&&s&&u&&!l&&!c||o&&s&&u||!r&&u||!i)return 1;if(!o&&!a&&!c&&e<t||c&&r&&i&&!o&&!a||l&&r&&i||!s&&i||!u)return-1}return 0}function To(e,t,n,r){for(var o=-1,i=e.length,a=n.length,s=-1,l=t.length,u=_n(i-a,0),c=Ee(l+u),d=!r;++s<l;)c[s]=t[s];for(;++o<a;)(d||o<i)&&(c[n[o]]=e[o]);for(;u--;)c[s++]=e[o++];return c}function Oo(e,t,n,r){for(var o=-1,i=e.length,a=-1,s=n.length,l=-1,u=t.length,c=_n(i-s,0),d=Ee(c+u),f=!r;++o<c;)d[o]=e[o];for(var p=o;++l<u;)d[p+l]=t[l];for(;++a<s;)(f||o<i)&&(d[p+n[a]]=e[o++]);return d}function Do(e,t){var n=-1,r=e.length;for(t||(t=Ee(r));++n<r;)t[n]=e[n];return t}function Po(e,t,r,o){var i=!r;r||(r={});for(var a=-1,s=t.length;++a<s;){var l=t[a],u=o?o(r[l],e[l],l,r,e):n;u===n&&(u=e[l]),i?sr(r,l,u):rr(r,l,u)}return r}function Ro(e,t){return function(n,r){var o=Za(n)?It:ir,i=t?t():{};return o(n,e,di(r,2),i)}}function Mo(e){return Xr((function(t,r){var o=-1,i=r.length,a=i>1?r[i-1]:n,s=i>2?r[2]:n;for(a=e.length>3&&"function"==typeof a?(i--,a):n,s&&xi(r[0],r[1],s)&&(a=i<3?n:a,i=1),t=Ae(t);++o<i;){var l=r[o];l&&e(t,l,o,a)}return t}))}function jo(e,t){return function(n,r){if(null==n)return n;if(!Ha(n))return e(n,r);for(var o=n.length,i=t?o:-1,a=Ae(n);(t?i--:++i<o)&&!1!==r(a[i],i,a););return n}}function Lo(e){return function(t,n,r){for(var o=-1,i=Ae(t),a=r(t),s=a.length;s--;){var l=a[e?s:++o];if(!1===n(i[l],l,i))break}return t}}function Uo(e){return function(t){var r=ln(t=_s(t))?hn(t):n,o=r?r[0]:t.charAt(0),i=r?Eo(r,1).join(""):t.slice(1);return o[e]()+i}}function Fo(e){return function(t){return Lt(Js(Ks(t).replace(et,"")),e,"")}}function zo(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var n=Wn(e.prototype),r=e.apply(n,t);return ns(r)?r:n}}function $o(e){return function(t,r,o){var i=Ae(t);if(!Ha(t)){var a=di(r,3);t=Ps(t),r=function(e){return a(i[e],e,i)}}var s=e(t,r,o);return s>-1?i[a?t[s]:s]:n}}function Bo(e){return ii((function(t){var o=t.length,i=o,a=Kn.prototype.thru;for(e&&t.reverse();i--;){var s=t[i];if("function"!=typeof s)throw new De(r);if(a&&!l&&"wrapper"==ui(s))var l=new Kn([],!0)}for(i=l?i:o;++i<o;){var u=ui(s=t[i]),c="wrapper"==u?li(s):n;l=c&&Ei(c[0])&&424==c[1]&&!c[4].length&&1==c[9]?l[ui(c[0])].apply(l,c[3]):1==s.length&&Ei(s)?l[u]():l.thru(s)}return function(){var e=arguments,n=e[0];if(l&&1==e.length&&Za(n))return l.plant(n).value();for(var r=0,i=o?t[r].apply(this,e):n;++r<o;)i=t[r].call(this,i);return i}}))}function Wo(e,t,r,o,i,a,s,l,c,d){var f=t&u,p=1&t,h=2&t,m=24&t,v=512&t,g=h?n:zo(e);return function u(){for(var y=arguments.length,b=Ee(y),_=y;_--;)b[_]=arguments[_];if(m)var w=ci(u),x=function(e,t){for(var n=e.length,r=0;n--;)e[n]===t&&++r;return r}(b,w);if(o&&(b=To(b,o,i,m)),a&&(b=Oo(b,a,s,m)),y-=x,m&&y<d){var k=dn(b,w);return Qo(e,t,Wo,u.placeholder,r,b,k,l,c,d-y)}var E=p?r:this,S=h?E[e]:e;return y=b.length,l?b=function(e,t){for(var r=e.length,o=wn(t.length,r),i=Do(e);o--;){var a=t[o];e[o]=wi(a,r)?i[a]:n}return e}(b,l):v&&y>1&&b.reverse(),f&&c<y&&(b.length=c),this&&this!==mt&&this instanceof u&&(S=g||zo(S)),S.apply(E,b)}}function Vo(e,t){return function(n,r){return function(e,t,n,r){return xr(e,(function(e,o,i){t(r,n(e),o,i)})),r}(n,e,t(r),{})}}function Ko(e,t){return function(r,o){var i;if(r===n&&o===n)return t;if(r!==n&&(i=r),o!==n){if(i===n)return o;"string"==typeof r||"string"==typeof o?(r=fo(r),o=fo(o)):(r=co(r),o=co(o)),i=e(r,o)}return i}}function Zo(e){return ii((function(t){return t=Mt(t,Jt(di())),Xr((function(n){var r=this;return e(t,(function(e){return Nt(e,r,n)}))}))}))}function qo(e,t){var r=(t=t===n?" ":fo(t)).length;if(r<2)return r?Yr(t,e):t;var o=Yr(t,gt(e/pn(t)));return ln(t)?Eo(hn(o),0,e).join(""):o.slice(0,e)}function Ho(e){return function(t,r,o){return o&&"number"!=typeof o&&xi(t,r,o)&&(r=o=n),t=ms(t),r===n?(r=t,t=0):r=ms(r),function(e,t,n,r){for(var o=-1,i=_n(gt((t-e)/(n||1)),0),a=Ee(i);i--;)a[r?i:++o]=e,e+=n;return a}(t,r,o=o===n?t<r?1:-1:ms(o),e)}}function Go(e){return function(t,n){return"string"==typeof t&&"string"==typeof n||(t=ys(t),n=ys(n)),e(t,n)}}function Qo(e,t,r,o,i,a,u,c,d,f){var p=8&t;t|=p?s:l,4&(t&=~(p?l:s))||(t&=-4);var h=[e,t,i,p?a:n,p?u:n,p?n:a,p?n:u,c,d,f],m=r.apply(n,h);return Ei(e)&&Di(m,h),m.placeholder=o,Mi(m,e,t)}function Yo(e){var t=Ie[e];return function(e,n){if(e=ys(e),(n=null==n?0:wn(vs(n),292))&&Ht(e)){var r=(_s(e)+"e").split("e");return+((r=(_s(t(r[0]+"e"+(+r[1]+n)))+"e").split("e"))[0]+"e"+(+r[1]-n))}return t(e)}}var Xo=An&&1/fn(new An([,-0]))[1]==d?function(e){return new An(e)}:cl;function Jo(e){return function(t){var n=gi(t);return n==S?un(t):n==T?function(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=[e,e]})),n}(t):function(e,t){return Mt(t,(function(t){return[t,e[t]]}))}(t,e(t))}}function ei(e,t,o,d,f,p,h,m){var v=2&t;if(!v&&"function"!=typeof e)throw new De(r);var g=d?d.length:0;if(g||(t&=-97,d=f=n),h=h===n?h:_n(vs(h),0),m=m===n?m:vs(m),g-=f?f.length:0,t&l){var y=d,b=f;d=f=n}var _=v?n:li(e),w=[e,t,o,d,f,y,b,p,h,m];if(_&&function(e,t){var n=e[1],r=t[1],o=n|r,a=o<131,s=r==u&&8==n||r==u&&n==c&&e[7].length<=t[8]||384==r&&t[7].length<=t[8]&&8==n;if(!a&&!s)return e;1&r&&(e[2]=t[2],o|=1&n?0:4);var l=t[3];if(l){var d=e[3];e[3]=d?To(d,l,t[4]):l,e[4]=d?dn(e[3],i):t[4]}(l=t[5])&&(d=e[5],e[5]=d?Oo(d,l,t[6]):l,e[6]=d?dn(e[5],i):t[6]),(l=t[7])&&(e[7]=l),r&u&&(e[8]=null==e[8]?t[8]:wn(e[8],t[8])),null==e[9]&&(e[9]=t[9]),e[0]=t[0],e[1]=o}(w,_),e=w[0],t=w[1],o=w[2],d=w[3],f=w[4],!(m=w[9]=w[9]===n?v?0:e.length:_n(w[9]-g,0))&&24&t&&(t&=-25),t&&1!=t)x=8==t||t==a?function(e,t,r){var o=zo(e);return function i(){for(var a=arguments.length,s=Ee(a),l=a,u=ci(i);l--;)s[l]=arguments[l];var c=a<3&&s[0]!==u&&s[a-1]!==u?[]:dn(s,u);return(a-=c.length)<r?Qo(e,t,Wo,i.placeholder,n,s,c,n,n,r-a):Nt(this&&this!==mt&&this instanceof i?o:e,this,s)}}(e,t,m):t!=s&&33!=t||f.length?Wo.apply(n,w):function(e,t,n,r){var o=1&t,i=zo(e);return function t(){for(var a=-1,s=arguments.length,l=-1,u=r.length,c=Ee(u+s),d=this&&this!==mt&&this instanceof t?i:e;++l<u;)c[l]=r[l];for(;s--;)c[l++]=arguments[++a];return Nt(d,o?n:this,c)}}(e,t,o,d);else var x=function(e,t,n){var r=1&t,o=zo(e);return function t(){return(this&&this!==mt&&this instanceof t?o:e).apply(r?n:this,arguments)}}(e,t,o);return Mi((_?no:Di)(x,w),e,t)}function ti(e,t,r,o){return e===n||Ba(e,Me[r])&&!Ue.call(o,r)?t:e}function ni(e,t,r,o,i,a){return ns(e)&&ns(t)&&(a.set(t,e),Vr(e,t,n,ni,a),a.delete(t)),e}function ri(e){return as(e)?n:e}function oi(e,t,r,o,i,a){var s=1&r,l=e.length,u=t.length;if(l!=u&&!(s&&u>l))return!1;var c=a.get(e),d=a.get(t);if(c&&d)return c==t&&d==e;var f=-1,p=!0,h=2&r?new Qn:n;for(a.set(e,t),a.set(t,e);++f<l;){var m=e[f],v=t[f];if(o)var g=s?o(v,m,f,t,e,a):o(m,v,f,e,t,a);if(g!==n){if(g)continue;p=!1;break}if(h){if(!Ft(t,(function(e,t){if(!tn(h,t)&&(m===e||i(m,e,r,o,a)))return h.push(t)}))){p=!1;break}}else if(m!==v&&!i(m,v,r,o,a)){p=!1;break}}return a.delete(e),a.delete(t),p}function ii(e){return Ri(Ai(e,n,qi),e+"")}function ai(e){return Cr(e,Ps,mi)}function si(e){return Cr(e,Rs,vi)}var li=Dn?function(e){return Dn.get(e)}:cl;function ui(e){for(var t=e.name+"",n=Pn[t],r=Ue.call(Pn,t)?n.length:0;r--;){var o=n[r],i=o.func;if(null==i||i==e)return o.name}return t}function ci(e){return(Ue.call(Bn,"placeholder")?Bn:e).placeholder}function di(){var e=Bn.iteratee||al;return e=e===al?Lr:e,arguments.length?e(arguments[0],arguments[1]):e}function fi(e,t){var n=e.__data__;return function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}(t)?n["string"==typeof t?"string":"hash"]:n.map}function pi(e){for(var t=Ps(e),n=t.length;n--;){var r=t[n],o=e[r];t[n]=[r,o,Ni(o)]}return t}function hi(e,t){var r=function(e,t){return null==e?n:e[t]}(e,t);return jr(r)?r:n}var mi=_t?function(e){return null==e?[]:(e=Ae(e),Dt(_t(e),(function(t){return Ye.call(e,t)})))}:gl,vi=_t?function(e){for(var t=[];e;)jt(t,mi(e)),e=Ge(e);return t}:gl,gi=Nr;function yi(e,t,n){for(var r=-1,o=(t=xo(t,e)).length,i=!1;++r<o;){var a=Fi(t[r]);if(!(i=null!=e&&n(e,a)))break;e=e[a]}return i||++r!=o?i:!!(o=null==e?0:e.length)&&ts(o)&&wi(a,o)&&(Za(e)||Ka(e))}function bi(e){return"function"!=typeof e.constructor||Ci(e)?{}:Wn(Ge(e))}function _i(e){return Za(e)||Ka(e)||!!(Je&&e&&e[Je])}function wi(e,t){var n=typeof e;return!!(t=t??f)&&("number"==n||"symbol"!=n&&_e.test(e))&&e>-1&&e%1==0&&e<t}function xi(e,t,n){if(!ns(n))return!1;var r=typeof t;return!!("number"==r?Ha(n)&&wi(t,n.length):"string"==r&&t in n)&&Ba(n[t],e)}function ki(e,t){if(Za(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!cs(e))||ne.test(e)||!te.test(e)||null!=t&&e in Ae(t)}function Ei(e){var t=ui(e),n=Bn[t];if("function"!=typeof n||!(t in Zn.prototype))return!1;if(e===n)return!0;var r=li(n);return!!r&&e===r[0]}(Cn&&gi(new Cn(new ArrayBuffer(1)))!=M||Nn&&gi(new Nn)!=S||In&&gi(In.resolve())!=I||An&&gi(new An)!=T||Tn&&gi(new Tn)!=P)&&(gi=function(e){var t=Nr(e),r=t==N?e.constructor:n,o=r?zi(r):"";if(o)switch(o){case Rn:return M;case Mn:return S;case jn:return I;case Ln:return T;case Un:return P}return t});var Si=je?Ja:yl;function Ci(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||Me)}function Ni(e){return e==e&&!ns(e)}function Ii(e,t){return function(r){return null!=r&&r[e]===t&&(t!==n||e in Ae(r))}}function Ai(e,t,r){return t=_n(t===n?e.length-1:t,0),function(){for(var n=arguments,o=-1,i=_n(n.length-t,0),a=Ee(i);++o<i;)a[o]=n[t+o];o=-1;for(var s=Ee(t+1);++o<t;)s[o]=n[o];return s[t]=r(a),Nt(e,this,s)}}function Ti(e,t){return t.length<2?e:Sr(e,io(t,0,-1))}function Oi(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}var Di=ji(no),Pi=vt||function(e,t){return mt.setTimeout(e,t)},Ri=ji(ro);function Mi(e,t,n){var r=t+"";return Ri(e,function(e,t){var n=t.length;if(!n)return e;var r=n-1;return t[r]=(n>1?"& ":"")+t[r],t=t.join(n>2?", ":" "),e.replace(le,"{\n/* [wrapped with "+t+"] */\n")}(r,function(e,t){return At(g,(function(n){var r="_."+n[0];t&n[1]&&!Pt(e,r)&&e.push(r)})),e.sort()}(function(e){var t=e.match(ue);return t?t[1].split(ce):[]}(r),n)))}function ji(e){var t=0,r=0;return function(){var o=xn(),i=16-(o-r);if(r=o,i>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(n,arguments)}}function Li(e,t){var r=-1,o=e.length,i=o-1;for(t=t===n?o:t;++r<t;){var a=Qr(r,i),s=e[a];e[a]=e[r],e[r]=s}return e.length=t,e}var Ui=function(e){var t=ja(e,(function(e){return 500===n.size&&n.clear(),e})),n=t.cache;return t}((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(re,(function(e,n,r,o){t.push(r?o.replace(pe,"$1"):n||e)})),t}));function Fi(e){if("string"==typeof e||cs(e))return e;var t=e+"";return"0"==t&&1/e==-d?"-0":t}function zi(e){if(null!=e){try{return Le.call(e)}catch{}try{return e+""}catch{}}return""}function $i(e){if(e instanceof Zn)return e.clone();var t=new Kn(e.__wrapped__,e.__chain__);return t.__actions__=Do(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}var Bi=Xr((function(e,t){return Ga(e)?pr(e,br(t,1,Ga,!0)):[]})),Wi=Xr((function(e,t){var r=Xi(t);return Ga(r)&&(r=n),Ga(e)?pr(e,br(t,1,Ga,!0),di(r,2)):[]})),Vi=Xr((function(e,t){var r=Xi(t);return Ga(r)&&(r=n),Ga(e)?pr(e,br(t,1,Ga,!0),n,r):[]}));function Ki(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=null==n?0:vs(n);return o<0&&(o=_n(r+o,0)),Bt(e,di(t,3),o)}function Zi(e,t,r){var o=null==e?0:e.length;if(!o)return-1;var i=o-1;return r!==n&&(i=vs(r),i=r<0?_n(o+i,0):wn(i,o-1)),Bt(e,di(t,3),i,!0)}function qi(e){return null!=e&&e.length?br(e,1):[]}function Hi(e){return e&&e.length?e[0]:n}var Gi=Xr((function(e){var t=Mt(e,_o);return t.length&&t[0]===e[0]?Or(t):[]})),Qi=Xr((function(e){var t=Xi(e),r=Mt(e,_o);return t===Xi(r)?t=n:r.pop(),r.length&&r[0]===e[0]?Or(r,di(t,2)):[]})),Yi=Xr((function(e){var t=Xi(e),r=Mt(e,_o);return(t="function"==typeof t?t:n)&&r.pop(),r.length&&r[0]===e[0]?Or(r,n,t):[]}));function Xi(e){var t=null==e?0:e.length;return t?e[t-1]:n}var Ji=Xr(ea);function ea(e,t){return e&&e.length&&t&&t.length?Hr(e,t):e}var ta=ii((function(e,t){var n=null==e?0:e.length,r=lr(e,t);return Gr(e,Mt(t,(function(e){return wi(e,n)?+e:e})).sort(Ao)),r}));function na(e){return null==e?e:Sn.call(e)}var ra=Xr((function(e){return po(br(e,1,Ga,!0))})),oa=Xr((function(e){var t=Xi(e);return Ga(t)&&(t=n),po(br(e,1,Ga,!0),di(t,2))})),ia=Xr((function(e){var t=Xi(e);return t="function"==typeof t?t:n,po(br(e,1,Ga,!0),n,t)}));function aa(e){if(!e||!e.length)return[];var t=0;return e=Dt(e,(function(e){if(Ga(e))return t=_n(e.length,t),!0})),Yt(t,(function(t){return Mt(e,qt(t))}))}function sa(e,t){if(!e||!e.length)return[];var r=aa(e);return null==t?r:Mt(r,(function(e){return Nt(t,n,e)}))}var la=Xr((function(e,t){return Ga(e)?pr(e,t):[]})),ua=Xr((function(e){return yo(Dt(e,Ga))})),ca=Xr((function(e){var t=Xi(e);return Ga(t)&&(t=n),yo(Dt(e,Ga),di(t,2))})),da=Xr((function(e){var t=Xi(e);return t="function"==typeof t?t:n,yo(Dt(e,Ga),n,t)})),fa=Xr(aa),pa=Xr((function(e){var t=e.length,r=t>1?e[t-1]:n;return r="function"==typeof r?(e.pop(),r):n,sa(e,r)}));function ha(e){var t=Bn(e);return t.__chain__=!0,t}function ma(e,t){return t(e)}var va=ii((function(e){var t=e.length,r=t?e[0]:0,o=this.__wrapped__,i=function(t){return lr(t,e)};return!(t>1||this.__actions__.length)&&o instanceof Zn&&wi(r)?((o=o.slice(r,+r+(t?1:0))).__actions__.push({func:ma,args:[i],thisArg:n}),new Kn(o,this.__chain__).thru((function(e){return t&&!e.length&&e.push(n),e}))):this.thru(i)})),ga=Ro((function(e,t,n){Ue.call(e,n)?++e[n]:sr(e,n,1)})),ya=$o(Ki),ba=$o(Zi);function _a(e,t){return(Za(e)?At:hr)(e,di(t,3))}function wa(e,t){return(Za(e)?Tt:mr)(e,di(t,3))}var xa=Ro((function(e,t,n){Ue.call(e,n)?e[n].push(t):sr(e,n,[t])})),ka=Xr((function(e,t,n){var r=-1,o="function"==typeof t,i=Ha(e)?Ee(e.length):[];return hr(e,(function(e){i[++r]=o?Nt(t,e,n):Dr(e,t,n)})),i})),Ea=Ro((function(e,t,n){sr(e,n,t)}));function Sa(e,t){return(Za(e)?Mt:$r)(e,di(t,3))}var Ca=Ro((function(e,t,n){e[n?0:1].push(t)}),(function(){return[[],[]]})),Na=Xr((function(e,t){if(null==e)return[];var n=t.length;return n>1&&xi(e,t[0],t[1])?t=[]:n>2&&xi(t[0],t[1],t[2])&&(t=[t[0]]),Zr(e,br(t,1),[])})),Ia=ht||function(){return mt.Date.now()};function Aa(e,t,r){return t=r?n:t,t=e&&null==t?e.length:t,ei(e,u,n,n,n,n,t)}function Ta(e,t){var o;if("function"!=typeof t)throw new De(r);return e=vs(e),function(){return--e>0&&(o=t.apply(this,arguments)),e<=1&&(t=n),o}}var Oa=Xr((function(e,t,n){var r=1;if(n.length){var o=dn(n,ci(Oa));r|=s}return ei(e,r,t,n,o)})),Da=Xr((function(e,t,n){var r=3;if(n.length){var o=dn(n,ci(Da));r|=s}return ei(t,r,e,n,o)}));function Pa(e,t,o){var i,a,s,l,u,c,d=0,f=!1,p=!1,h=!0;if("function"!=typeof e)throw new De(r);function m(t){var r=i,o=a;return i=a=n,d=t,l=e.apply(o,r)}function v(e){var r=e-c;return c===n||r>=t||r<0||p&&e-d>=s}function g(){var e=Ia();if(v(e))return y(e);u=Pi(g,function(e){var n=t-(e-c);return p?wn(n,s-(e-d)):n}(e))}function y(e){return u=n,h&&i?m(e):(i=a=n,l)}function b(){var e=Ia(),r=v(e);if(i=arguments,a=this,c=e,r){if(u===n)return function(e){return d=e,u=Pi(g,t),f?m(e):l}(c);if(p)return So(u),u=Pi(g,t),m(c)}return u===n&&(u=Pi(g,t)),l}return t=ys(t)||0,ns(o)&&(f=!!o.leading,s=(p="maxWait"in o)?_n(ys(o.maxWait)||0,t):s,h="trailing"in o?!!o.trailing:h),b.cancel=function(){u!==n&&So(u),d=0,i=c=a=u=n},b.flush=function(){return u===n?l:y(Ia())},b}var Ra=Xr((function(e,t){return fr(e,1,t)})),Ma=Xr((function(e,t,n){return fr(e,ys(t)||0,n)}));function ja(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new De(r);var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var a=e.apply(this,r);return n.cache=i.set(o,a)||i,a};return n.cache=new(ja.Cache||Gn),n}function La(e){if("function"!=typeof e)throw new De(r);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}ja.Cache=Gn;var Ua=ko((function(e,t){var n=(t=1==t.length&&Za(t[0])?Mt(t[0],Jt(di())):Mt(br(t,1),Jt(di()))).length;return Xr((function(r){for(var o=-1,i=wn(r.length,n);++o<i;)r[o]=t[o].call(this,r[o]);return Nt(e,this,r)}))})),Fa=Xr((function(e,t){var r=dn(t,ci(Fa));return ei(e,s,n,t,r)})),za=Xr((function(e,t){var r=dn(t,ci(za));return ei(e,l,n,t,r)})),$a=ii((function(e,t){return ei(e,c,n,n,n,t)}));function Ba(e,t){return e===t||e!=e&&t!=t}var Wa=Go(Ir),Va=Go((function(e,t){return e>=t})),Ka=Pr(function(){return arguments}())?Pr:function(e){return rs(e)&&Ue.call(e,"callee")&&!Ye.call(e,"callee")},Za=Ee.isArray,qa=wt?Jt(wt):function(e){return rs(e)&&Nr(e)==R};function Ha(e){return null!=e&&ts(e.length)&&!Ja(e)}function Ga(e){return rs(e)&&Ha(e)}var Qa=zt||yl,Ya=xt?Jt(xt):function(e){return rs(e)&&Nr(e)==w};function Xa(e){if(!rs(e))return!1;var t=Nr(e);return t==x||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!as(e)}function Ja(e){if(!ns(e))return!1;var t=Nr(e);return t==k||t==E||"[object AsyncFunction]"==t||"[object Proxy]"==t}function es(e){return"number"==typeof e&&e==vs(e)}function ts(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=f}function ns(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function rs(e){return null!=e&&"object"==typeof e}var os=kt?Jt(kt):function(e){return rs(e)&&gi(e)==S};function is(e){return"number"==typeof e||rs(e)&&Nr(e)==C}function as(e){if(!rs(e)||Nr(e)!=N)return!1;var t=Ge(e);if(null===t)return!0;var n=Ue.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&Le.call(n)==Be}var ss=Et?Jt(Et):function(e){return rs(e)&&Nr(e)==A},ls=St?Jt(St):function(e){return rs(e)&&gi(e)==T};function us(e){return"string"==typeof e||!Za(e)&&rs(e)&&Nr(e)==O}function cs(e){return"symbol"==typeof e||rs(e)&&Nr(e)==D}var ds=Ct?Jt(Ct):function(e){return rs(e)&&ts(e.length)&&!!lt[Nr(e)]},fs=Go(zr),ps=Go((function(e,t){return e<=t}));function hs(e){if(!e)return[];if(Ha(e))return us(e)?hn(e):Do(e);if(nt&&e[nt])return function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}(e[nt]());var t=gi(e);return(t==S?un:t==T?fn:Bs)(e)}function ms(e){return e?(e=ys(e))===d||e===-d?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}function vs(e){var t=ms(e),n=t%1;return t==t?n?t-n:t:0}function gs(e){return e?ur(vs(e),0,h):0}function ys(e){if("number"==typeof e)return e;if(cs(e))return p;if(ns(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=ns(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=Xt(e);var n=ge.test(e);return n||be.test(e)?ft(e.slice(2),n?2:8):ve.test(e)?p:+e}function bs(e){return Po(e,Rs(e))}function _s(e){return null==e?"":fo(e)}var ws=Mo((function(e,t){if(Ci(t)||Ha(t))Po(t,Ps(t),e);else for(var n in t)Ue.call(t,n)&&rr(e,n,t[n])})),xs=Mo((function(e,t){Po(t,Rs(t),e)})),ks=Mo((function(e,t,n,r){Po(t,Rs(t),e,r)})),Es=Mo((function(e,t,n,r){Po(t,Ps(t),e,r)})),Ss=ii(lr),Cs=Xr((function(e,t){e=Ae(e);var r=-1,o=t.length,i=o>2?t[2]:n;for(i&&xi(t[0],t[1],i)&&(o=1);++r<o;)for(var a=t[r],s=Rs(a),l=-1,u=s.length;++l<u;){var c=s[l],d=e[c];(d===n||Ba(d,Me[c])&&!Ue.call(e,c))&&(e[c]=a[c])}return e})),Ns=Xr((function(e){return e.push(n,ni),Nt(js,n,e)}));function Is(e,t,r){var o=null==e?n:Sr(e,t);return o===n?r:o}function As(e,t){return null!=e&&yi(e,t,Tr)}var Ts=Vo((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=$e.call(t)),e[t]=n}),nl(il)),Os=Vo((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=$e.call(t)),Ue.call(e,t)?e[t].push(n):e[t]=[n]}),di),Ds=Xr(Dr);function Ps(e){return Ha(e)?Xn(e):Ur(e)}function Rs(e){return Ha(e)?Xn(e,!0):Fr(e)}var Ms=Mo((function(e,t,n){Vr(e,t,n)})),js=Mo((function(e,t,n,r){Vr(e,t,n,r)})),Ls=ii((function(e,t){var n={};if(null==e)return n;var r=!1;t=Mt(t,(function(t){return t=xo(t,e),r||(r=t.length>1),t})),Po(e,si(e),n),r&&(n=cr(n,7,ri));for(var o=t.length;o--;)ho(n,t[o]);return n})),Us=ii((function(e,t){return null==e?{}:function(e,t){return qr(e,t,(function(t,n){return As(e,n)}))}(e,t)}));function Fs(e,t){if(null==e)return{};var n=Mt(si(e),(function(e){return[e]}));return t=di(t),qr(e,n,(function(e,n){return t(e,n[0])}))}var zs=Jo(Ps),$s=Jo(Rs);function Bs(e){return null==e?[]:en(e,Ps(e))}var Ws=Fo((function(e,t,n){return t=t.toLowerCase(),e+(n?Vs(t):t)}));function Vs(e){return Xs(_s(e).toLowerCase())}function Ks(e){return(e=_s(e))&&e.replace(we,on).replace(tt,"")}var Zs=Fo((function(e,t,n){return e+(n?"-":"")+t.toLowerCase()})),qs=Fo((function(e,t,n){return e+(n?" ":"")+t.toLowerCase()})),Hs=Uo("toLowerCase"),Gs=Fo((function(e,t,n){return e+(n?"_":"")+t.toLowerCase()})),Qs=Fo((function(e,t,n){return e+(n?" ":"")+Xs(t)})),Ys=Fo((function(e,t,n){return e+(n?" ":"")+t.toUpperCase()})),Xs=Uo("toUpperCase");function Js(e,t,r){return e=_s(e),(t=r?n:t)===n?function(e){return it.test(e)}(e)?function(e){return e.match(rt)||[]}(e):function(e){return e.match(de)||[]}(e):e.match(t)||[]}var el=Xr((function(e,t){try{return Nt(e,n,t)}catch(e){return Xa(e)?e:new Ce(e)}})),tl=ii((function(e,t){return At(t,(function(t){t=Fi(t),sr(e,t,Oa(e[t],e))})),e}));function nl(e){return function(){return e}}var rl=Bo(),ol=Bo(!0);function il(e){return e}function al(e){return Lr("function"==typeof e?e:cr(e,1))}var sl=Xr((function(e,t){return function(n){return Dr(n,e,t)}})),ll=Xr((function(e,t){return function(n){return Dr(e,n,t)}}));function ul(e,t,n){var r=Ps(t),o=Er(t,r);null==n&&(!ns(t)||!o.length&&r.length)&&(n=t,t=e,e=this,o=Er(t,Ps(t)));var i=!(ns(n)&&"chain"in n&&!n.chain),a=Ja(e);return At(o,(function(n){var r=t[n];e[n]=r,a&&(e.prototype[n]=function(){var t=this.__chain__;if(i||t){var n=e(this.__wrapped__);return(n.__actions__=Do(this.__actions__)).push({func:r,args:arguments,thisArg:e}),n.__chain__=t,n}return r.apply(e,jt([this.value()],arguments))})})),e}function cl(){}var dl=Zo(Mt),fl=Zo(Ot),pl=Zo(Ft);function hl(e){return ki(e)?qt(Fi(e)):function(e){return function(t){return Sr(t,e)}}(e)}var ml=Ho(),vl=Ho(!0);function gl(){return[]}function yl(){return!1}var bl=Ko((function(e,t){return e+t}),0),_l=Yo("ceil"),wl=Ko((function(e,t){return e/t}),1),xl=Yo("floor"),kl=Ko((function(e,t){return e*t}),1),El=Yo("round"),Sl=Ko((function(e,t){return e-t}),0);return Bn.after=function(e,t){if("function"!=typeof t)throw new De(r);return e=vs(e),function(){if(--e<1)return t.apply(this,arguments)}},Bn.ary=Aa,Bn.assign=ws,Bn.assignIn=xs,Bn.assignInWith=ks,Bn.assignWith=Es,Bn.at=Ss,Bn.before=Ta,Bn.bind=Oa,Bn.bindAll=tl,Bn.bindKey=Da,Bn.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return Za(e)?e:[e]},Bn.chain=ha,Bn.chunk=function(e,t,r){t=(r?xi(e,t,r):t===n)?1:_n(vs(t),0);var o=null==e?0:e.length;if(!o||t<1)return[];for(var i=0,a=0,s=Ee(gt(o/t));i<o;)s[a++]=io(e,i,i+=t);return s},Bn.compact=function(e){for(var t=-1,n=null==e?0:e.length,r=0,o=[];++t<n;){var i=e[t];i&&(o[r++]=i)}return o},Bn.concat=function(){var e=arguments.length;if(!e)return[];for(var t=Ee(e-1),n=arguments[0],r=e;r--;)t[r-1]=arguments[r];return jt(Za(n)?Do(n):[n],br(t,1))},Bn.cond=function(e){var t=null==e?0:e.length,n=di();return e=t?Mt(e,(function(e){if("function"!=typeof e[1])throw new De(r);return[n(e[0]),e[1]]})):[],Xr((function(n){for(var r=-1;++r<t;){var o=e[r];if(Nt(o[0],this,n))return Nt(o[1],this,n)}}))},Bn.conforms=function(e){return function(e){var t=Ps(e);return function(n){return dr(n,e,t)}}(cr(e,1))},Bn.constant=nl,Bn.countBy=ga,Bn.create=function(e,t){var n=Wn(e);return null==t?n:ar(n,t)},Bn.curry=function e(t,r,o){var i=ei(t,8,n,n,n,n,n,r=o?n:r);return i.placeholder=e.placeholder,i},Bn.curryRight=function e(t,r,o){var i=ei(t,a,n,n,n,n,n,r=o?n:r);return i.placeholder=e.placeholder,i},Bn.debounce=Pa,Bn.defaults=Cs,Bn.defaultsDeep=Ns,Bn.defer=Ra,Bn.delay=Ma,Bn.difference=Bi,Bn.differenceBy=Wi,Bn.differenceWith=Vi,Bn.drop=function(e,t,r){var o=null==e?0:e.length;return o?io(e,(t=r||t===n?1:vs(t))<0?0:t,o):[]},Bn.dropRight=function(e,t,r){var o=null==e?0:e.length;return o?io(e,0,(t=o-(t=r||t===n?1:vs(t)))<0?0:t):[]},Bn.dropRightWhile=function(e,t){return e&&e.length?vo(e,di(t,3),!0,!0):[]},Bn.dropWhile=function(e,t){return e&&e.length?vo(e,di(t,3),!0):[]},Bn.fill=function(e,t,r,o){var i=null==e?0:e.length;return i?(r&&"number"!=typeof r&&xi(e,t,r)&&(r=0,o=i),function(e,t,r,o){var i=e.length;for((r=vs(r))<0&&(r=-r>i?0:i+r),(o=o===n||o>i?i:vs(o))<0&&(o+=i),o=r>o?0:gs(o);r<o;)e[r++]=t;return e}(e,t,r,o)):[]},Bn.filter=function(e,t){return(Za(e)?Dt:yr)(e,di(t,3))},Bn.flatMap=function(e,t){return br(Sa(e,t),1)},Bn.flatMapDeep=function(e,t){return br(Sa(e,t),d)},Bn.flatMapDepth=function(e,t,r){return r=r===n?1:vs(r),br(Sa(e,t),r)},Bn.flatten=qi,Bn.flattenDeep=function(e){return null!=e&&e.length?br(e,d):[]},Bn.flattenDepth=function(e,t){return null!=e&&e.length?br(e,t=t===n?1:vs(t)):[]},Bn.flip=function(e){return ei(e,512)},Bn.flow=rl,Bn.flowRight=ol,Bn.fromPairs=function(e){for(var t=-1,n=null==e?0:e.length,r={};++t<n;){var o=e[t];r[o[0]]=o[1]}return r},Bn.functions=function(e){return null==e?[]:Er(e,Ps(e))},Bn.functionsIn=function(e){return null==e?[]:Er(e,Rs(e))},Bn.groupBy=xa,Bn.initial=function(e){return null!=e&&e.length?io(e,0,-1):[]},Bn.intersection=Gi,Bn.intersectionBy=Qi,Bn.intersectionWith=Yi,Bn.invert=Ts,Bn.invertBy=Os,Bn.invokeMap=ka,Bn.iteratee=al,Bn.keyBy=Ea,Bn.keys=Ps,Bn.keysIn=Rs,Bn.map=Sa,Bn.mapKeys=function(e,t){var n={};return t=di(t,3),xr(e,(function(e,r,o){sr(n,t(e,r,o),e)})),n},Bn.mapValues=function(e,t){var n={};return t=di(t,3),xr(e,(function(e,r,o){sr(n,r,t(e,r,o))})),n},Bn.matches=function(e){return Br(cr(e,1))},Bn.matchesProperty=function(e,t){return Wr(e,cr(t,1))},Bn.memoize=ja,Bn.merge=Ms,Bn.mergeWith=js,Bn.method=sl,Bn.methodOf=ll,Bn.mixin=ul,Bn.negate=La,Bn.nthArg=function(e){return e=vs(e),Xr((function(t){return Kr(t,e)}))},Bn.omit=Ls,Bn.omitBy=function(e,t){return Fs(e,La(di(t)))},Bn.once=function(e){return Ta(2,e)},Bn.orderBy=function(e,t,r,o){return null==e?[]:(Za(t)||(t=null==t?[]:[t]),Za(r=o?n:r)||(r=null==r?[]:[r]),Zr(e,t,r))},Bn.over=dl,Bn.overArgs=Ua,Bn.overEvery=fl,Bn.overSome=pl,Bn.partial=Fa,Bn.partialRight=za,Bn.partition=Ca,Bn.pick=Us,Bn.pickBy=Fs,Bn.property=hl,Bn.propertyOf=function(e){return function(t){return null==e?n:Sr(e,t)}},Bn.pull=Ji,Bn.pullAll=ea,Bn.pullAllBy=function(e,t,n){return e&&e.length&&t&&t.length?Hr(e,t,di(n,2)):e},Bn.pullAllWith=function(e,t,r){return e&&e.length&&t&&t.length?Hr(e,t,n,r):e},Bn.pullAt=ta,Bn.range=ml,Bn.rangeRight=vl,Bn.rearg=$a,Bn.reject=function(e,t){return(Za(e)?Dt:yr)(e,La(di(t,3)))},Bn.remove=function(e,t){var n=[];if(!e||!e.length)return n;var r=-1,o=[],i=e.length;for(t=di(t,3);++r<i;){var a=e[r];t(a,r,e)&&(n.push(a),o.push(r))}return Gr(e,o),n},Bn.rest=function(e,t){if("function"!=typeof e)throw new De(r);return Xr(e,t=t===n?t:vs(t))},Bn.reverse=na,Bn.sampleSize=function(e,t,r){return t=(r?xi(e,t,r):t===n)?1:vs(t),(Za(e)?er:eo)(e,t)},Bn.set=function(e,t,n){return null==e?e:to(e,t,n)},Bn.setWith=function(e,t,r,o){return o="function"==typeof o?o:n,null==e?e:to(e,t,r,o)},Bn.shuffle=function(e){return(Za(e)?tr:oo)(e)},Bn.slice=function(e,t,r){var o=null==e?0:e.length;return o?(r&&"number"!=typeof r&&xi(e,t,r)?(t=0,r=o):(t=null==t?0:vs(t),r=r===n?o:vs(r)),io(e,t,r)):[]},Bn.sortBy=Na,Bn.sortedUniq=function(e){return e&&e.length?uo(e):[]},Bn.sortedUniqBy=function(e,t){return e&&e.length?uo(e,di(t,2)):[]},Bn.split=function(e,t,r){return r&&"number"!=typeof r&&xi(e,t,r)&&(t=r=n),(r=r===n?h:r>>>0)?(e=_s(e))&&("string"==typeof t||null!=t&&!ss(t))&&!(t=fo(t))&&ln(e)?Eo(hn(e),0,r):e.split(t,r):[]},Bn.spread=function(e,t){if("function"!=typeof e)throw new De(r);return t=null==t?0:_n(vs(t),0),Xr((function(n){var r=n[t],o=Eo(n,0,t);return r&&jt(o,r),Nt(e,this,o)}))},Bn.tail=function(e){var t=null==e?0:e.length;return t?io(e,1,t):[]},Bn.take=function(e,t,r){return e&&e.length?io(e,0,(t=r||t===n?1:vs(t))<0?0:t):[]},Bn.takeRight=function(e,t,r){var o=null==e?0:e.length;return o?io(e,(t=o-(t=r||t===n?1:vs(t)))<0?0:t,o):[]},Bn.takeRightWhile=function(e,t){return e&&e.length?vo(e,di(t,3),!1,!0):[]},Bn.takeWhile=function(e,t){return e&&e.length?vo(e,di(t,3)):[]},Bn.tap=function(e,t){return t(e),e},Bn.throttle=function(e,t,n){var o=!0,i=!0;if("function"!=typeof e)throw new De(r);return ns(n)&&(o="leading"in n?!!n.leading:o,i="trailing"in n?!!n.trailing:i),Pa(e,t,{leading:o,maxWait:t,trailing:i})},Bn.thru=ma,Bn.toArray=hs,Bn.toPairs=zs,Bn.toPairsIn=$s,Bn.toPath=function(e){return Za(e)?Mt(e,Fi):cs(e)?[e]:Do(Ui(_s(e)))},Bn.toPlainObject=bs,Bn.transform=function(e,t,n){var r=Za(e),o=r||Qa(e)||ds(e);if(t=di(t,4),null==n){var i=e&&e.constructor;n=o?r?new i:[]:ns(e)&&Ja(i)?Wn(Ge(e)):{}}return(o?At:xr)(e,(function(e,r,o){return t(n,e,r,o)})),n},Bn.unary=function(e){return Aa(e,1)},Bn.union=ra,Bn.unionBy=oa,Bn.unionWith=ia,Bn.uniq=function(e){return e&&e.length?po(e):[]},Bn.uniqBy=function(e,t){return e&&e.length?po(e,di(t,2)):[]},Bn.uniqWith=function(e,t){return t="function"==typeof t?t:n,e&&e.length?po(e,n,t):[]},Bn.unset=function(e,t){return null==e||ho(e,t)},Bn.unzip=aa,Bn.unzipWith=sa,Bn.update=function(e,t,n){return null==e?e:mo(e,t,wo(n))},Bn.updateWith=function(e,t,r,o){return o="function"==typeof o?o:n,null==e?e:mo(e,t,wo(r),o)},Bn.values=Bs,Bn.valuesIn=function(e){return null==e?[]:en(e,Rs(e))},Bn.without=la,Bn.words=Js,Bn.wrap=function(e,t){return Fa(wo(t),e)},Bn.xor=ua,Bn.xorBy=ca,Bn.xorWith=da,Bn.zip=fa,Bn.zipObject=function(e,t){return bo(e||[],t||[],rr)},Bn.zipObjectDeep=function(e,t){return bo(e||[],t||[],to)},Bn.zipWith=pa,Bn.entries=zs,Bn.entriesIn=$s,Bn.extend=xs,Bn.extendWith=ks,ul(Bn,Bn),Bn.add=bl,Bn.attempt=el,Bn.camelCase=Ws,Bn.capitalize=Vs,Bn.ceil=_l,Bn.clamp=function(e,t,r){return r===n&&(r=t,t=n),r!==n&&(r=(r=ys(r))==r?r:0),t!==n&&(t=(t=ys(t))==t?t:0),ur(ys(e),t,r)},Bn.clone=function(e){return cr(e,4)},Bn.cloneDeep=function(e){return cr(e,5)},Bn.cloneDeepWith=function(e,t){return cr(e,5,t="function"==typeof t?t:n)},Bn.cloneWith=function(e,t){return cr(e,4,t="function"==typeof t?t:n)},Bn.conformsTo=function(e,t){return null==t||dr(e,t,Ps(t))},Bn.deburr=Ks,Bn.defaultTo=function(e,t){return null==e||e!=e?t:e},Bn.divide=wl,Bn.endsWith=function(e,t,r){e=_s(e),t=fo(t);var o=e.length,i=r=r===n?o:ur(vs(r),0,o);return(r-=t.length)>=0&&e.slice(r,i)==t},Bn.eq=Ba,Bn.escape=function(e){return(e=_s(e))&&Y.test(e)?e.replace(G,an):e},Bn.escapeRegExp=function(e){return(e=_s(e))&&ie.test(e)?e.replace(oe,"\\$&"):e},Bn.every=function(e,t,r){var o=Za(e)?Ot:vr;return r&&xi(e,t,r)&&(t=n),o(e,di(t,3))},Bn.find=ya,Bn.findIndex=Ki,Bn.findKey=function(e,t){return $t(e,di(t,3),xr)},Bn.findLast=ba,Bn.findLastIndex=Zi,Bn.findLastKey=function(e,t){return $t(e,di(t,3),kr)},Bn.floor=xl,Bn.forEach=_a,Bn.forEachRight=wa,Bn.forIn=function(e,t){return null==e?e:_r(e,di(t,3),Rs)},Bn.forInRight=function(e,t){return null==e?e:wr(e,di(t,3),Rs)},Bn.forOwn=function(e,t){return e&&xr(e,di(t,3))},Bn.forOwnRight=function(e,t){return e&&kr(e,di(t,3))},Bn.get=Is,Bn.gt=Wa,Bn.gte=Va,Bn.has=function(e,t){return null!=e&&yi(e,t,Ar)},Bn.hasIn=As,Bn.head=Hi,Bn.identity=il,Bn.includes=function(e,t,n,r){e=Ha(e)?e:Bs(e),n=n&&!r?vs(n):0;var o=e.length;return n<0&&(n=_n(o+n,0)),us(e)?n<=o&&e.indexOf(t,n)>-1:!!o&&Wt(e,t,n)>-1},Bn.indexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=null==n?0:vs(n);return o<0&&(o=_n(r+o,0)),Wt(e,t,o)},Bn.inRange=function(e,t,r){return t=ms(t),r===n?(r=t,t=0):r=ms(r),function(e,t,n){return e>=wn(t,n)&&e<_n(t,n)}(e=ys(e),t,r)},Bn.invoke=Ds,Bn.isArguments=Ka,Bn.isArray=Za,Bn.isArrayBuffer=qa,Bn.isArrayLike=Ha,Bn.isArrayLikeObject=Ga,Bn.isBoolean=function(e){return!0===e||!1===e||rs(e)&&Nr(e)==_},Bn.isBuffer=Qa,Bn.isDate=Ya,Bn.isElement=function(e){return rs(e)&&1===e.nodeType&&!as(e)},Bn.isEmpty=function(e){if(null==e)return!0;if(Ha(e)&&(Za(e)||"string"==typeof e||"function"==typeof e.splice||Qa(e)||ds(e)||Ka(e)))return!e.length;var t=gi(e);if(t==S||t==T)return!e.size;if(Ci(e))return!Ur(e).length;for(var n in e)if(Ue.call(e,n))return!1;return!0},Bn.isEqual=function(e,t){return Rr(e,t)},Bn.isEqualWith=function(e,t,r){var o=(r="function"==typeof r?r:n)?r(e,t):n;return o===n?Rr(e,t,n,r):!!o},Bn.isError=Xa,Bn.isFinite=function(e){return"number"==typeof e&&Ht(e)},Bn.isFunction=Ja,Bn.isInteger=es,Bn.isLength=ts,Bn.isMap=os,Bn.isMatch=function(e,t){return e===t||Mr(e,t,pi(t))},Bn.isMatchWith=function(e,t,r){return r="function"==typeof r?r:n,Mr(e,t,pi(t),r)},Bn.isNaN=function(e){return is(e)&&e!=+e},Bn.isNative=function(e){if(Si(e))throw new Ce("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return jr(e)},Bn.isNil=function(e){return null==e},Bn.isNull=function(e){return null===e},Bn.isNumber=is,Bn.isObject=ns,Bn.isObjectLike=rs,Bn.isPlainObject=as,Bn.isRegExp=ss,Bn.isSafeInteger=function(e){return es(e)&&e>=-f&&e<=f},Bn.isSet=ls,Bn.isString=us,Bn.isSymbol=cs,Bn.isTypedArray=ds,Bn.isUndefined=function(e){return e===n},Bn.isWeakMap=function(e){return rs(e)&&gi(e)==P},Bn.isWeakSet=function(e){return rs(e)&&"[object WeakSet]"==Nr(e)},Bn.join=function(e,t){return null==e?"":yn.call(e,t)},Bn.kebabCase=Zs,Bn.last=Xi,Bn.lastIndexOf=function(e,t,r){var o=null==e?0:e.length;if(!o)return-1;var i=o;return r!==n&&(i=(i=vs(r))<0?_n(o+i,0):wn(i,o-1)),t==t?function(e,t,n){for(var r=n+1;r--;)if(e[r]===t)return r;return r}(e,t,i):Bt(e,Kt,i,!0)},Bn.lowerCase=qs,Bn.lowerFirst=Hs,Bn.lt=fs,Bn.lte=ps,Bn.max=function(e){return e&&e.length?gr(e,il,Ir):n},Bn.maxBy=function(e,t){return e&&e.length?gr(e,di(t,2),Ir):n},Bn.mean=function(e){return Zt(e,il)},Bn.meanBy=function(e,t){return Zt(e,di(t,2))},Bn.min=function(e){return e&&e.length?gr(e,il,zr):n},Bn.minBy=function(e,t){return e&&e.length?gr(e,di(t,2),zr):n},Bn.stubArray=gl,Bn.stubFalse=yl,Bn.stubObject=function(){return{}},Bn.stubString=function(){return""},Bn.stubTrue=function(){return!0},Bn.multiply=kl,Bn.nth=function(e,t){return e&&e.length?Kr(e,vs(t)):n},Bn.noConflict=function(){return mt._===this&&(mt._=We),this},Bn.noop=cl,Bn.now=Ia,Bn.pad=function(e,t,n){e=_s(e);var r=(t=vs(t))?pn(e):0;if(!t||r>=t)return e;var o=(t-r)/2;return qo(bt(o),n)+e+qo(gt(o),n)},Bn.padEnd=function(e,t,n){e=_s(e);var r=(t=vs(t))?pn(e):0;return t&&r<t?e+qo(t-r,n):e},Bn.padStart=function(e,t,n){e=_s(e);var r=(t=vs(t))?pn(e):0;return t&&r<t?qo(t-r,n)+e:e},Bn.parseInt=function(e,t,n){return n||null==t?t=0:t&&(t=+t),kn(_s(e).replace(ae,""),t||0)},Bn.random=function(e,t,r){if(r&&"boolean"!=typeof r&&xi(e,t,r)&&(t=r=n),r===n&&("boolean"==typeof t?(r=t,t=n):"boolean"==typeof e&&(r=e,e=n)),e===n&&t===n?(e=0,t=1):(e=ms(e),t===n?(t=e,e=0):t=ms(t)),e>t){var o=e;e=t,t=o}if(r||e%1||t%1){var i=En();return wn(e+i*(t-e+dt("1e-"+((i+"").length-1))),t)}return Qr(e,t)},Bn.reduce=function(e,t,n){var r=Za(e)?Lt:Gt,o=arguments.length<3;return r(e,di(t,4),n,o,hr)},Bn.reduceRight=function(e,t,n){var r=Za(e)?Ut:Gt,o=arguments.length<3;return r(e,di(t,4),n,o,mr)},Bn.repeat=function(e,t,r){return t=(r?xi(e,t,r):t===n)?1:vs(t),Yr(_s(e),t)},Bn.replace=function(){var e=arguments,t=_s(e[0]);return e.length<3?t:t.replace(e[1],e[2])},Bn.result=function(e,t,r){var o=-1,i=(t=xo(t,e)).length;for(i||(i=1,e=n);++o<i;){var a=null==e?n:e[Fi(t[o])];a===n&&(o=i,a=r),e=Ja(a)?a.call(e):a}return e},Bn.round=El,Bn.runInContext=e,Bn.sample=function(e){return(Za(e)?Jn:Jr)(e)},Bn.size=function(e){if(null==e)return 0;if(Ha(e))return us(e)?pn(e):e.length;var t=gi(e);return t==S||t==T?e.size:Ur(e).length},Bn.snakeCase=Gs,Bn.some=function(e,t,r){var o=Za(e)?Ft:ao;return r&&xi(e,t,r)&&(t=n),o(e,di(t,3))},Bn.sortedIndex=function(e,t){return so(e,t)},Bn.sortedIndexBy=function(e,t,n){return lo(e,t,di(n,2))},Bn.sortedIndexOf=function(e,t){var n=null==e?0:e.length;if(n){var r=so(e,t);if(r<n&&Ba(e[r],t))return r}return-1},Bn.sortedLastIndex=function(e,t){return so(e,t,!0)},Bn.sortedLastIndexBy=function(e,t,n){return lo(e,t,di(n,2),!0)},Bn.sortedLastIndexOf=function(e,t){if(null!=e&&e.length){var n=so(e,t,!0)-1;if(Ba(e[n],t))return n}return-1},Bn.startCase=Qs,Bn.startsWith=function(e,t,n){return e=_s(e),n=null==n?0:ur(vs(n),0,e.length),t=fo(t),e.slice(n,n+t.length)==t},Bn.subtract=Sl,Bn.sum=function(e){return e&&e.length?Qt(e,il):0},Bn.sumBy=function(e,t){return e&&e.length?Qt(e,di(t,2)):0},Bn.template=function(e,t,r){var o=Bn.templateSettings;r&&xi(e,t,r)&&(t=n),e=_s(e),t=ks({},t,o,ti);var i,a,s=ks({},t.imports,o.imports,ti),l=Ps(s),u=en(s,l),c=0,d=t.interpolate||xe,f="__p += '",p=Te((t.escape||xe).source+"|"+d.source+"|"+(d===ee?he:xe).source+"|"+(t.evaluate||xe).source+"|$","g"),h="//# sourceURL="+(Ue.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++st+"]")+"\n";e.replace(p,(function(t,n,r,o,s,l){return r||(r=o),f+=e.slice(c,l).replace(ke,sn),n&&(i=!0,f+="' +\n__e("+n+") +\n'"),s&&(a=!0,f+="';\n"+s+";\n__p += '"),r&&(f+="' +\n((__t = ("+r+")) == null ? '' : __t) +\n'"),c=l+t.length,t})),f+="';\n";var m=Ue.call(t,"variable")&&t.variable;if(m){if(fe.test(m))throw new Ce("Invalid `variable` option passed into `_.template`")}else f="with (obj) {\n"+f+"\n}\n";f=(a?f.replace(K,""):f).replace(Z,"$1").replace(q,"$1;"),f="function("+(m||"obj")+") {\n"+(m?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(i?", __e = _.escape":"")+(a?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+f+"return __p\n}";var v=el((function(){return Ne(l,h+"return "+f).apply(n,u)}));if(v.source=f,Xa(v))throw v;return v},Bn.times=function(e,t){if((e=vs(e))<1||e>f)return[];var n=h,r=wn(e,h);t=di(t),e-=h;for(var o=Yt(r,t);++n<e;)t(n);return o},Bn.toFinite=ms,Bn.toInteger=vs,Bn.toLength=gs,Bn.toLower=function(e){return _s(e).toLowerCase()},Bn.toNumber=ys,Bn.toSafeInteger=function(e){return e?ur(vs(e),-f,f):0===e?e:0},Bn.toString=_s,Bn.toUpper=function(e){return _s(e).toUpperCase()},Bn.trim=function(e,t,r){if((e=_s(e))&&(r||t===n))return Xt(e);if(!e||!(t=fo(t)))return e;var o=hn(e),i=hn(t);return Eo(o,nn(o,i),rn(o,i)+1).join("")},Bn.trimEnd=function(e,t,r){if((e=_s(e))&&(r||t===n))return e.slice(0,mn(e)+1);if(!e||!(t=fo(t)))return e;var o=hn(e);return Eo(o,0,rn(o,hn(t))+1).join("")},Bn.trimStart=function(e,t,r){if((e=_s(e))&&(r||t===n))return e.replace(ae,"");if(!e||!(t=fo(t)))return e;var o=hn(e);return Eo(o,nn(o,hn(t))).join("")},Bn.truncate=function(e,t){var r=30,o="...";if(ns(t)){var i="separator"in t?t.separator:i;r="length"in t?vs(t.length):r,o="omission"in t?fo(t.omission):o}var a=(e=_s(e)).length;if(ln(e)){var s=hn(e);a=s.length}if(r>=a)return e;var l=r-pn(o);if(l<1)return o;var u=s?Eo(s,0,l).join(""):e.slice(0,l);if(i===n)return u+o;if(s&&(l+=u.length-l),ss(i)){if(e.slice(l).search(i)){var c,d=u;for(i.global||(i=Te(i.source,_s(me.exec(i))+"g")),i.lastIndex=0;c=i.exec(d);)var f=c.index;u=u.slice(0,f===n?l:f)}}else if(e.indexOf(fo(i),l)!=l){var p=u.lastIndexOf(i);p>-1&&(u=u.slice(0,p))}return u+o},Bn.unescape=function(e){return(e=_s(e))&&Q.test(e)?e.replace(H,vn):e},Bn.uniqueId=function(e){var t=++Fe;return _s(e)+t},Bn.upperCase=Ys,Bn.upperFirst=Xs,Bn.each=_a,Bn.eachRight=wa,Bn.first=Hi,ul(Bn,function(){var e={};return xr(Bn,(function(t,n){Ue.call(Bn.prototype,n)||(e[n]=t)})),e}(),{chain:!1}),Bn.VERSION="4.17.21",At(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(e){Bn[e].placeholder=Bn})),At(["drop","take"],(function(e,t){Zn.prototype[e]=function(r){r=r===n?1:_n(vs(r),0);var o=this.__filtered__&&!t?new Zn(this):this.clone();return o.__filtered__?o.__takeCount__=wn(r,o.__takeCount__):o.__views__.push({size:wn(r,h),type:e+(o.__dir__<0?"Right":"")}),o},Zn.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}})),At(["filter","map","takeWhile"],(function(e,t){var n=t+1,r=1==n||3==n;Zn.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:di(e,3),type:n}),t.__filtered__=t.__filtered__||r,t}})),At(["head","last"],(function(e,t){var n="take"+(t?"Right":"");Zn.prototype[e]=function(){return this[n](1).value()[0]}})),At(["initial","tail"],(function(e,t){var n="drop"+(t?"":"Right");Zn.prototype[e]=function(){return this.__filtered__?new Zn(this):this[n](1)}})),Zn.prototype.compact=function(){return this.filter(il)},Zn.prototype.find=function(e){return this.filter(e).head()},Zn.prototype.findLast=function(e){return this.reverse().find(e)},Zn.prototype.invokeMap=Xr((function(e,t){return"function"==typeof e?new Zn(this):this.map((function(n){return Dr(n,e,t)}))})),Zn.prototype.reject=function(e){return this.filter(La(di(e)))},Zn.prototype.slice=function(e,t){e=vs(e);var r=this;return r.__filtered__&&(e>0||t<0)?new Zn(r):(e<0?r=r.takeRight(-e):e&&(r=r.drop(e)),t!==n&&(r=(t=vs(t))<0?r.dropRight(-t):r.take(t-e)),r)},Zn.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},Zn.prototype.toArray=function(){return this.take(h)},xr(Zn.prototype,(function(e,t){var r=/^(?:filter|find|map|reject)|While$/.test(t),o=/^(?:head|last)$/.test(t),i=Bn[o?"take"+("last"==t?"Right":""):t],a=o||/^find/.test(t);i&&(Bn.prototype[t]=function(){var t=this.__wrapped__,s=o?[1]:arguments,l=t instanceof Zn,u=s[0],c=l||Za(t),d=function(e){var t=i.apply(Bn,jt([e],s));return o&&f?t[0]:t};c&&r&&"function"==typeof u&&1!=u.length&&(l=c=!1);var f=this.__chain__,p=!!this.__actions__.length,h=a&&!f,m=l&&!p;if(!a&&c){t=m?t:new Zn(this);var v=e.apply(t,s);return v.__actions__.push({func:ma,args:[d],thisArg:n}),new Kn(v,f)}return h&&m?e.apply(this,s):(v=this.thru(d),h?o?v.value()[0]:v.value():v)})})),At(["pop","push","shift","sort","splice","unshift"],(function(e){var t=Pe[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",r=/^(?:pop|shift)$/.test(e);Bn.prototype[e]=function(){var e=arguments;if(r&&!this.__chain__){var o=this.value();return t.apply(Za(o)?o:[],e)}return this[n]((function(n){return t.apply(Za(n)?n:[],e)}))}})),xr(Zn.prototype,(function(e,t){var n=Bn[t];if(n){var r=n.name+"";Ue.call(Pn,r)||(Pn[r]=[]),Pn[r].push({name:t,func:n})}})),Pn[Wo(n,2).name]=[{name:"wrapper",func:n}],Zn.prototype.clone=function(){var e=new Zn(this.__wrapped__);return e.__actions__=Do(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=Do(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=Do(this.__views__),e},Zn.prototype.reverse=function(){if(this.__filtered__){var e=new Zn(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},Zn.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,n=Za(e),r=t<0,o=n?e.length:0,i=function(e,t,n){for(var r=-1,o=n.length;++r<o;){var i=n[r],a=i.size;switch(i.type){case"drop":e+=a;break;case"dropRight":t-=a;break;case"take":t=wn(t,e+a);break;case"takeRight":e=_n(e,t-a)}}return{start:e,end:t}}(0,o,this.__views__),a=i.start,s=i.end,l=s-a,u=r?s:a-1,c=this.__iteratees__,d=c.length,f=0,p=wn(l,this.__takeCount__);if(!n||!r&&o==l&&p==l)return go(e,this.__actions__);var h=[];e:for(;l--&&f<p;){for(var m=-1,v=e[u+=t];++m<d;){var g=c[m],y=g.iteratee,b=g.type,_=y(v);if(2==b)v=_;else if(!_){if(1==b)continue e;break e}}h[f++]=v}return h},Bn.prototype.at=va,Bn.prototype.chain=function(){return ha(this)},Bn.prototype.commit=function(){return new Kn(this.value(),this.__chain__)},Bn.prototype.next=function(){this.__values__===n&&(this.__values__=hs(this.value()));var e=this.__index__>=this.__values__.length;return{done:e,value:e?n:this.__values__[this.__index__++]}},Bn.prototype.plant=function(e){for(var t,r=this;r instanceof Vn;){var o=$i(r);o.__index__=0,o.__values__=n,t?i.__wrapped__=o:t=o;var i=o;r=r.__wrapped__}return i.__wrapped__=e,t},Bn.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof Zn){var t=e;return this.__actions__.length&&(t=new Zn(this)),(t=t.reverse()).__actions__.push({func:ma,args:[na],thisArg:n}),new Kn(t,this.__chain__)}return this.thru(na)},Bn.prototype.toJSON=Bn.prototype.valueOf=Bn.prototype.value=function(){return go(this.__wrapped__,this.__actions__)},Bn.prototype.first=Bn.prototype.head,nt&&(Bn.prototype[nt]=function(){return this}),Bn}();gt?((gt.exports=gn)._=gn,vt._=gn):mt._=gn}.call(c3)),ug.exports;var e,t}var ng=f3();const cg=e=>""===e.text&&0===e.uploads.length&&!!e.repostOf,js=(e,t)=>{var n;let r;return(null==t?void 0:t.id)===e?t:(null==(n=null==t?void 0:t.replies)||n.some((t=>(r=js(e,t),!!r))),r)},Oh=(e,t,n,r=!1)=>{e.forEach(((e,o)=>{var i,a,s;cg(e)&&t===(null==(i=e.originalPost)?void 0:i.id)?n(e,o):t===(null==(a=e.originalPost)?void 0:a.id)?n(e.originalPost,o):t===e.id&&n(e,o),null!=(s=e.replies)&&s.length&&!r&&Oh(e.replies,t,n)}))},_x=e=>e&&!!e.repostOf&&(!!e.text||e.uploads.length>0),wx="feed",Lh="feeds",xx="replies",d3="reposts",p3="pinned-posts",h3="feeds-public",C_={page:1,items:[],initOffset:0},m3={},fg=(e,t)=>`${e}-${t}`,rg=e=>e===h3,g3=(e,t)=>e===fg(Lh,t),bx=Rf({name:"feeds",initialState:m3,reducers:{addList:(e,t)=>{const{key:n,posts:r,isNewList:o}=t.payload;!e[n]||o?(e[n]={...C_},e[n].items=r):e[n].items.push(...r)},addPost:(e,t)=>{Object.keys(e).forEach((n=>{var r;if(!rg(n)||"PUBLIC"===t.payload.privacy)if(rg(n)||g3(n,t.payload.author.id)){if(e[n].items.some((e=>e.id===t.payload.id)))return;e[n].items=[t.payload,...e[n].items],e[n].initOffset+=1}else{const o=fg(Lh,t.payload.author.id);(null==(r=e[o])||!r.items.length)&&n.startsWith("feed")&&(e[o]={...C_},e[o].items=[t.payload])}}))},updatePost:(e,t)=>{const n=Object.keys(e);let r=0;const o=e=>{var n;const o=cg(t.payload)&&t.payload.originalPost||t.payload,i={...o,...!(null!=(n=o.settings)&&n.sensitive)&&{summary:""}};Object.assign(e,i),r=1};n.forEach((n=>{var i;if(rg(n)&&"PUBLIC"!==t.payload.privacy&&(e[n].items=e[n].items.filter((e=>e.id!==t.payload.id))),Oh(e[n].items,t.payload.id,o),!r&&!t.payload.pinned)if(rg(n)||n.startsWith(Lh)){const r=e[n].items.findIndex((e=>new Date(e.createdAt).getTime()<new Date(t.payload.createdAt).getTime()))||0,o=[...e[n].items];o.splice(r,0,t.payload),e[n].items=o}else{const r=js((null==(i=t.payload.path)?void 0:i.at(-1))||"",{id:"root-feed",replies:e[n].items});r&&(null!=r&&r.replies?r.replies.unshift(t.payload):r.replies=[])}r=0}))},deletePost:(e,t)=>{Object.keys(e).forEach((n=>{const r=js(t.payload,{id:"root-feed",replies:e[n].items});if(null!=r&&r.repostOf){const t=e=>{(null==r?void 0:r.repostOf)===(null==e?void 0:e.id)&&ng.isNumber(e.stats.reposts)&&(cg(r)?e.reposted=!1:_x(e)&&(e.quoted=!1),e.stats.reposts-=1,0===e.stats.reposts&&(e.reposted=!1))};Oh(e[n].items,r.repostOf,t)}e[n].items.forEach((e=>{e.repostOf===t.payload&&e.originalPost&&(e.originalPost.deleted=!0,e.originalPost.text="")}));const o=e[n].items.filter((e=>e.id!==t.payload));e[n].items=o,e[n].initOffset=o.length}))},changeOffset:(e,t)=>{const n=t.payload;if(!e[n])return;const r=n.startsWith(xx),o=e[n].items.reduce(((e,t)=>{var n;return e+((null==(n=null==t?void 0:t.replies)?void 0:n.length)||0)}),0)||0;e[n].page=1,e[n].initOffset=r?o:e[n].items.length},likePost:(e,t)=>{const n=Object.keys(e),{id:r,count:o,isLiked:i}=t.payload;n.forEach((t=>{Oh(e[t].items,r,(e=>{cg(e)?(e.originalPost.liked=i,e.originalPost.stats.likes=o):(e.liked=i,e.stats.likes=o)}))}))},repost:(e,t)=>{Object.keys(e).forEach((n=>{if(e[n].items.some((e=>e.id===t.payload.id)))return;Oh(e[n].items,t.payload.repostOf,(e=>{var n;const r=e.stats;e&&ng.isNumber(e.stats.reposts)&&(r.reposts=null==(n=t.payload.originalPost)?void 0:n.stats.reposts,_x(t.payload)?e.quoted=!0:e.reposted=!0)})),(rg(n)||[fg(Lh),fg(Lh,t.payload.author.id),fg(d3,t.payload.author.id)].includes(n))&&(e[n].items.unshift(t.payload),e[n].initOffset+=1)}))},addComment:(e,t)=>{Object.keys(e).forEach((n=>{const r=n.startsWith(xx),o=n.startsWith(`${wx}-`);if(js(t.payload.id,{id:"root-feed",replies:e[n].items}))return;const i=r?t.payload.conversationId:t.payload.path.at(-1),a=js(i,{id:"root-feed",replies:e[n].items});if(r){e[n].initOffset+=1;const r=js(t.payload.conversationId,e[n].items[0]);r&&e[n].items.unshift({...r,replies:[t.payload]})}else a&&(a.replies?a.replies.unshift(t.payload):null!=a&&a.replies||(a.replies=[t.payload]));const s=(t,r)=>{const o=e[n].items[r],i=cg(o)?o.originalPost:o;i&&ng.isNumber(i.stats.comments)&&(i.stats.comments+=1)};t.payload.path.forEach((t=>{if(o){const r=js(t,{id:"root-feed",replies:e[n].items});r&&ng.isNumber(r.stats.comments)&&(r.stats.comments+=1)}else Oh(e[n].items,t,s,!0)}))}))},deleteComment:(e,t)=>{const{commentId:n,skipCounterUpdate:r,isVisibilityChanged:o}=t.payload;Object.keys(e).forEach((t=>{var i;const a=js(n,{id:"comment-feed",replies:e[t].items});if(a){if(o){const r=js(a.path.at(-1)||"",{id:"comment-feed",replies:e[t].items});null!=r&&r.replies&&(r.replies=null==(i=null==r?void 0:r.replies)?void 0:i.filter((e=>e.id!==n)))}else a.text="",a.uploads=[],a.deleted=!0;a.path.forEach((n=>{const o=js(n,{id:"sub-feed",replies:e[t].items});o&&ng.isNumber(o.stats.comments)&&o.stats.comments>0&&!r&&(o.stats.comments-=1)}))}}))},removePrivatePosts:(e,t)=>{const n=Object.keys(e),{id:r}=t.payload;n.forEach((t=>{const n=e[t].items.filter((e=>"PRIVATE"!==e.privacy||e.author.id!==r));e[t].items=n,e[t].initOffset=n.length}))},removeUserPosts:(e,t)=>{const n=Object.keys(e),r=t.payload;n.forEach((t=>{const n=e[t].items.filter((e=>e.author.id!==r));e[t].items=n,e[t].initOffset=n.length}))},clearList:(e,t)=>{const n=t.payload;e[n]&&(e[n].page=1,e[n].items=[],e[n].initOffset=0)},clearAllLists:e=>{Object.keys(e).forEach((t=>{e[t].page=1,e[t].items=[],e[t].initOffset=0}))},updatePinPost:(e,t)=>{const n=Object.keys(e),{postId:r,pinned:o}=t.payload;n.forEach((t=>{if(t.startsWith(Lh)||t.startsWith(p3)||t.startsWith(wx)){const n=js(r,{id:"root-feed",replies:e[t].items});if(n&&(n.pinned=o),o){const o=e[t].items.filter((e=>e.id!==r));n&&(e[t].items=[n,...o])}}}))},deleteRepost:(e,t)=>{const n=Object.keys(e),{postId:r,userId:o}=t.payload;n.forEach((t=>{const n=js(r,{id:"root-feed",replies:e[t].items});n&&(n.quoted=!1,n.reposted=!1,n.stats.reposts&&(n.stats.reposts-=1)),e[t].items.forEach((n=>{if(n.originalPost&&n.originalPost.id===r&&n.author.id===o){const r=e[t].items.indexOf(n);r>-1&&e[t].items.splice(r,1)}}))}))}},selectors:{selectFeedState:(e,t)=>e[t]||{...C_}}}).injectInto(s0),v3=({user:e,relationship:t,searchString:n,showUserInfo:r,isRelationshipPending:o,onUserClick:i})=>{const a=Qh();return D.jsxs("li",{className:"mb-[12px] flex items-center justify-between",children:[D.jsx(dg,{to:"/:username/:tab?",onClick:i,props:{username:ns(e)},children:D.jsx(vC,{username:ns(e),canShow:r,children:D.jsxs("div",{className:"flex",children:[D.jsx(t1,{size:52,variant:"rounded_outline",name:e.displayName,imgUrl:aC({user:e,type:U1.avatar})}),D.jsx("div",{className:"ml-[8px] text-slate-700 ",children:D.jsxs("div",{className:"cursor-pointer",children:[D.jsx("div",{"data-testId":"displayName",className:"mb-[8px] text-[16px] font-bold leading-[22px]",dangerouslySetInnerHTML:{__html:K_(e.displayName,n)}}),D.jsx("div",{"data-testId":"userName",className:"text-14px font-medium leading-[14px]",dangerouslySetInnerHTML:{__html:K_(ns(e),n)}})]})})]})})}),D.jsx(gC,{user:e,relationship:t,isRelationshipPending:o,size:"small",onFollow:()=>{a(bx.actions.clearAllLists())},onUnfollow:()=>{a(bx.actions.removePrivatePosts(e))}})]})},Sx=({list:e,onClose:t})=>{const{relationship:n,isLoading:r}=Dg({userId:null==e?void 0:e.map((e=>e.id))});return D.jsx("ul",{className:"max-h-[400px] overflow-scroll [&::-webkit-scrollbar]:hidden","data-testid":"f_list",children:null==e?void 0:e.map((e=>D.jsx(v3,{user:e,relationship:n[e.id],onUserClick:t,showUserInfo:!1,isRelationshipPending:r},e.id)))})};var Dv=(e=>(e.followers="Followers",e.following="Following",e))(Dv||{});const y3=({tab:e,user:t,isOpen:n,onClose:r})=>{var o,i;const[a,s]=Ot(e),[l,u]=Ot(""),c=E1(),{data:d}=l3({userId:t.id}),[f]=a3({userId:t.id}),{data:p}=FC({q:l,followers:"Followers"===a,following:"Following"===a,protocol:u3()},{skip:!l}),h=l?null==p?void 0:p.users:f,m=l?null==p?void 0:p.users:d;return D.jsx(D1,{open:n,onOpenChange:e=>!e&&r(),children:D.jsx(x0,{className:"max-h-[560px] max-w-[560px] gap-0 rounded-[6px] border-none px-[24px] pt-[16px]",children:D.jsxs(s3,{defaultValue:e,onValueChange:e=>s(e),children:[D.jsxs(mC,{className:"flex h-[unset] w-[100%] justify-between gap-[5px] bg-transparent p-0 [&>[data-state=active]]:border-b-slate-700 [&>[data-state=active]]:text-slate-700 [&>button]:w-[100%] [&>button]:rounded-none [&>button]:border-b-[2px] [&>button]:border-b-transparent [&>button]:pb-[14px] [&>button]:pt-[16px] [&>button]:text-[16px] [&>button]:font-medium [&>button]:leading-[22px] [&>button]:text-slate-600 [&_span]:pl-[4px] [&_span]:font-bold",children:[D.jsxs(q_,{value:"Followers",children:["Followers"," ",D.jsx("span",{children:null==(o=t.stats)?void 0:o.followers})]}),D.jsxs(q_,{value:"Following",children:["Following"," ",D.jsx("span",{children:null==(i=t.stats)?void 0:i.following})]})]}),D.jsx("div",{className:"relative my-[20px] w-[100%]",children:D.jsxs(yS,{...c,children:[D.jsx(y0,{autoFocus:!1,placeholder:"Search",value:l,onChange:e=>u(e.target.value)}),D.jsx(sk,{className:"absolute right-[8px] top-[10px] size-[20px] stroke-slate-300"})]})}),D.jsx(Y_,{value:"Followers",children:D.jsx(Sx,{onClose:r,list:h})}),D.jsx(Y_,{value:"Following",children:D.jsx(Sx,{onClose:r,list:m})})]})})})},i0=1e3,Q_=i0*i0,Ex=i0*Q_,k_=e=>{switch(!0){case e<1e3:return`${e}`;case e<Q_:return+(e/i0).toFixed(1)+"K";case e<Ex:return+(e/Q_).toFixed(1)+"M";default:return+(e/Ex).toFixed(1)+"B"}},_3=({user:e,className:t,isHorizontal:n=!1,showFollowingModal:r=!0})=>{const[o,i]=Ot({open:!1,tab:Dv.followers}),{guardedAction:a,ActionTooltipWrapper:s}=z1(),l=e=>{r&&i({tab:e,open:!0})};return D.jsxs(D.Fragment,{children:[o.open&&D.jsx(y3,{user:e,tab:o.tab,isOpen:!0,onClose:()=>i((e=>({...e,open:!1})))}),e.stats&&D.jsxs("ul",{className:ut("my-[12px] flex justify-center gap-2 text-sm leading-5 [&_div]:mb-[2px] [&_div]:font-medium [&_li]:basis-[calc(100%/3-(16px/3))] [&_li]:whitespace-nowrap [&_li]:rounded-[3px] [&_li]:bg-slate-100 [&_li]:p-2 [&_li]:text-center [&_p]:font-bold",n&&"[&_li]:flex [&_li]:items-center [&_li]:justify-center [&_li]:gap-1",t),children:[D.jsxs("li",{className:"flex items-center justify-center gap-1 lg:block",children:[D.jsx("div",{children:"Posts"}),D.jsx("p",{children:k_(e.stats.posts)})]}),D.jsx(s,{children:D.jsxs("li",{className:ut("flex items-center justify-center gap-1 lg:block",r&&"cursor-pointer "),onClick:a((()=>l(Dv.followers))),children:[D.jsx("div",{children:"Followers"}),D.jsx("p",{children:k_(e.stats.followers)})]})}),D.jsx(s,{children:D.jsxs("li",{className:ut("flex items-center justify-center gap-1 lg:block",r&&"cursor-pointer "),onClick:a((()=>l(Dv.following))),children:[D.jsx("div",{children:"Following"}),D.jsx("p",{children:k_(e.stats.following)})]})})]})]})},w3="data:image/svg+xml,%3csvg%20width='12'%20height='12'%20viewBox='0%200%2012%2012'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M12%209V0L0%2012H9C10.6569%2012%2012%2010.6569%2012%209Z'%20fill='white'/%3e%3cpath%20d='M0%203V12L12%200H3C1.34315%200%200%201.34315%200%203Z'%20fill='%23CBD5E1'/%3e%3c/svg%3e",x3="Enter",b3=r0.object({note:r0.string().max(32)}),S3=({userId:e,note:t,className:n})=>{const[r]=CC(),[o]=kC(),i=At(null),a=Un(wf.selectors.selectIsAuthenticated),s=Un(Xd.selectors.selectCurrentUser),l=(null==s?void 0:s.id)===e,{updateRelations:u}=Dg({}),c=e=>{const t=e.target.value;d(t)},d=async(t="")=>{t?await r({noteUpdate:{userId:e,text:t}}):await o({userId:e}),u({userId:e})},f=E1({resolver:jE(b3)});if(!l&&a)return D.jsx($S,{...f,children:D.jsx("form",{className:ut("my-5",n),onKeyDown:e=>{var t;e.key===x3&&(e.preventDefault(),null==(t=i.current)||t.blur())},children:D.jsx(PS,{control:f.control,name:"note",render:e=>D.jsxs("div",{className:"relative flex items-center rounded-[3px] bg-slate-100 px-[10px] text-slate-700",children:[D.jsx(ek,{size:14,className:"mr-2"}),D.jsx(y0,{...e,ref:i,maxLength:32,onBlur:c,defaultValue:t,placeholder:"Leave a note visible only to you",className:"border-0 bg-transparent px-0 focus:border-0 focus-visible:border-0 focus-visible:ring-0 focus-visible:ring-offset-0 disabled:opacity-[1]"}),D.jsx("img",{src:w3,alt:"user note",className:"absolute bottom-0 right-0"})]})})})})},E3=({children:e})=>D.jsx("div",{className:"line-clamp-2 text-ellipsis whitespace-pre-wrap break-words text-left",children:e}),Cx={forever:0,"6 hours":21600,"12 hours":43200,"24 hours":86400,"7 days":604800,"30 days":2592e3},C3=({user:e,relationship:t,onMute:n})=>{const[r,{isLoading:o}]=TC(),[i,{isLoading:a}]=AC(),[s,l]=Ot("forever"),u=e?ns(e):"",[c,d,f,p]=iC(),h=NC(t),m=()=>{if(!e)return;const t=Cx[s];r({userId:e.id,...t&&{duration:t}}),Cn.success(`${u} is muted`),f(),null==n||n()};return{isLoading:o||a,isMuted:h,mute:d,unmute:()=>{e&&(i({userId:e.id}),Cn.success(`${u} is unmuted`))},renderMuteDialog:()=>e?D.jsx(rC,{user:e,isOpen:c,title:"Do you want to mute",onClose:p,onSubmit:m,actionText:"Next",renderContent:()=>D.jsxs("div",{children:[D.jsxs("ul",{className:"border-b border-slate-200 p-5 text-sm font-medium [&>li]:mb-3 [&>li]:flex [&>li]:items-center [&>li]:gap-2 last:[&>li]:mb-0",children:[D.jsxs("li",{children:[D.jsx(Bx,{size:20}),"You will not see their posts, reposts, quotes and replies"]}),D.jsxs("li",{children:[D.jsx(zx,{size:20})," They can still follow you and see your posts"]}),D.jsxs("li",{children:[D.jsx(ck,{size:20})," They will not know that they are muted"]})]}),D.jsx("div",{className:"p-5",children:D.jsx(cb,{value:s,onValueChange:e=>l(e),children:Object.keys(Cx).map((e=>D.jsxs("label",{className:"mb-3 flex cursor-pointer items-center gap-2 text-sm font-semibold text-slate-700 last:mb-0",children:[D.jsx(fb,{className:"size-5",id:e,value:e}),D.jsx("span",{onClick:()=>l(e),children:"forever"===e?"Untill I unmute":`For ${e}`})]},e)))})})]})}):null,isMuteDialogOpened:c}},kx=({status:e,clasName:t})=>{const n="muted"===e?D.jsx(U2,{size:12}):D.jsx(Wx,{size:12}),r="muted"===e?"text-brown border-brown":"text-red-dark border-red-dark";return D.jsxs("div",{className:ut(r,"flex items-center gap-1 rounded-[3px] border bg-white px-2 py-1 text-[12px] font-normal leading-4",t),children:[n,e.toUpperCase()]})},k3=1e3,T3=({user:e,follow:t,unfollow:n,isOwnProfile:r})=>{const o=Un(qO.selectors.selectEmojis),i=ns(e),{relationship:a,isLoading:s}=Dg({userId:e.id}),{isDisabled:l,ActionTooltipWrapper:u}=z1(),{isMuted:c}=C3({user:e,relationship:a}),[d]=oC({user:e,relationship:a});return D.jsx("div",{className:"absolute left-0 top-[calc(100%+10px)] z-[6] w-[366px] rounded-[6px] border-[1px] border-slate-200 bg-white p-[12px] text-[16px] shadow-[0px_4px_6px_0px_rgba(0,0,0,0.09)]","data-testid":"infoPopupContent",onClick:e=>{e.preventDefault(),e.stopPropagation()},children:D.jsxs("div",{children:[D.jsx("div",{className:"border-b-[1px] border-dashed border-slate-200 pb-[12px]",children:D.jsxs("div",{className:"flex justify-between",children:[D.jsxs("div",{className:"max-w-[calc(100%-80px)]",children:[D.jsx(D.Fragment,{children:c?D.jsx(kx,{status:"muted",clasName:"mb-2"}):d?D.jsx(kx,{status:"blocked",clasName:"mb-2"}):null}),D.jsxs(dg,{to:"/:username/:tab?",props:{username:i},className:"block ",children:[D.jsx("h2",{className:"bold truncate font-bold leading-[22px] text-slate-700",dangerouslySetInnerHTML:{__html:vx(e.displayName,o)}}),D.jsx(E3,{children:i})]})]}),D.jsx(t1,{className:"ml-2 shrink-0",size:72,name:e.displayName,imgUrl:aC({user:e,type:U1.avatar})})]})}),D.jsx(S3,{userId:e.id,note:a.note,className:"my-3"}),D.jsx("div",{className:"my-3 line-clamp-2 overflow-hidden text-ellipsis leading-[24px] text-slate-900 empty:hidden",dangerouslySetInnerHTML:{__html:ZO(vx(e.summary||"",o))}}),D.jsx(_3,{isHorizontal:!0,user:e,className:"justify-between",showFollowingModal:!1}),!r&&D.jsx("div",{className:"mt-[12px]",children:D.jsx(u,{triggerClassname:"w-full",children:D.jsx(sC,{user:e,follow:t,unfollow:n,relationship:a,disabled:l,isRelationshipPending:s})})})]})})},vC=({className:e,canShow:t=!0,onUnfollow:n,onFollow:r,...o})=>{const[i,a]=KS(k3),[s,l,u]=GO({username:o.username,canFetch:a}),{follow:c,unfollow:d,renderGuestFollowModal:f}=nC({user:s,onFollow:r,onUnfollow:n}),p=a&&s&&!u&&t;return D.jsxs("div",{ref:i,"data-testid":"infoPopupWrapper",className:ut("z-1 relative max-w-full cursor-default",a?"before:absolute before:left-0 before:top-[100%] before:block before:h-[10px] before:w-full before:content-['']":"",e),children:[f(),o.children,p&&D.jsx(T3,{follow:()=>{c()},unfollow:()=>{d()},user:s,isOwnProfile:l,...o})]})},A3=({author:e,isPopup:t,notification:n})=>{var r,o;const i=Qh(),[a]=Rx(),[s]=$x(),l=e?ns(e):"",{relationship:u,isLoading:c}=Dg({userId:null==e?void 0:e.id}),d=!(!e||"FOLLOW"!==n.type||t),f=!(!e||"FOLLOW_REQUEST"!==n.type||t),p=n.followResponse||(null==(o=null==(r=n.meta)?void 0:r.actionsTaken)?void 0:o[0].text);return D.jsxs(D.Fragment,{children:[d&&e&&D.jsx(gC,{user:e,size:"small",relationship:u,isRelationshipPending:c}),p?D.jsx("div",{className:"min-w-[120px] text-center text-sm font-semibold text-slate-400",children:p}):f?D.jsxs("div",{className:"flex items-center gap-2","data-testid":"followControls",children:[D.jsx(Cf,{variant:"link",className:"px-3",onClick:()=>{s({username:l}),i(es.actions.updateNotification({...n,followResponse:"Declined"}))},children:"Decline"}),D.jsx(Cf,{className:"h-8 min-w-28 bg-slate-700",onClick:()=>{a({username:l}),i(es.actions.updateNotification({...n,followResponse:"Accepted"}))},children:"Confirm"})]}):null]})},N3=(e,t=!1)=>({displayName:t?14:28,userName:t?e?14:6:e?25:10}),Rv=(e="",t)=>e.length>t?e.slice(0,t)+"...":e,R3=e=>{const t=e.split(/(?=@)/);return 2===t.length?[t[0],t[1]]:[]},$3=({user:e,maxShortenedInfo:t})=>{const n=!e.domain,r=N3(n,t),o=ns(e),i=e.displayName.length<=r.displayName?e.displayName:Rv(e.displayName,r.displayName),a=R3(o);return{displayName:i,userName:o.length<=r.userName?o:n?Rv(o,r.userName):`${Rv(a[0],r.userName)}${Rv(a[1],r.userName)}`}},I3=({notification:e,isPopup:t=!1})=>{var n,r,o,i,a;const s=Un(sg.selectors.selectSupportedExtensions).IMAGE,l=e.fromUser,u=null!=l&&l.avatar?Jw({upload:l.avatar,imgExtenstion:s}):null,c=l?ns(l):"",d="REPOST"===e.type&&(null==(n=e.post)?void 0:n.text)?e.post:(null==(r=e.post)?void 0:r.originalPost)||e.post,f="REPOST"===e.type&&(null==(o=e.post)?void 0:o.text)||"COMMENT"===e.type||"MENTION"===e.type,p=null==d?void 0:d.uploads[0],h=p?Jw({upload:p,imgExtenstion:s}):null,m=!(null!=l&&l.domain),v="FOLLOW_REQUEST"===e.type,g=!(null==(i=e.post)||!i.uploads.length),y=l?$3({user:l,maxShortenedInfo:v||g&&!m}):{displayName:"",userName:""},b="UNREAD"===e.status,_=(null==h?void 0:h.uri)&&d,w=!(null==(a=e.post)||!a.summary||!e.post.settings.sensitive);return D.jsxs(D.Fragment,{children:[D.jsxs("div",{className:ut("flex items-center justify-between",t&&"w-[270px]"),children:[D.jsx("div",{className:ut("relative flex items-center justify-between",t&&_&&"max-w-[calc(100%-55px)]"),children:D.jsxs("div",{className:ut("flex items-center",t&&"w-full"),children:[l&&D.jsx("div",{className:ut(b&&!t&&"before-content-[''] relative before:absolute before:left-[-9px] before:top-6 before:block before:size-[3px] before:rounded before:bg-slate-700"),children:D.jsx(t1,{name:l.displayName||"",className:ut("size-12",t?"text-base_white_60 mr-3":"mr-2 text-slate-700"),imgUrl:(null==u?void 0:u.uri)||""})}),D.jsxs("div",{"data-testid":"notificationAuthor",className:ut(t&&(l?_?"max-w-[calc(100%-60px)]":"":"w-full")),children:[l&&D.jsx(dg,{to:"/:username/:tab?",props:{username:c},className:"block",children:D.jsx(vC,{canShow:!t,username:c,children:D.jsxs("div",{className:ut("flex cursor-pointer items-center text-[13px] leading-[18px] ",t&&"text-base_white_60 text-sm hover:text-white"),children:[D.jsx("div",{className:ut("mr-[2px] whitespace-nowrap font-semibold",t?"text-base_white_60 w-full overflow-hidden text-ellipsis hover:text-white":"text-slate-900"),children:y.displayName}),!t&&D.jsx("div",{className:"font-medium text-slate-600",children:y.userName})]})})}),D.jsxs("div",{className:ut("flex flex-nowrap items-center text-sm",t?"font-semibold":"font-medium"),"data-testid":"notificationTitle",children:[D.jsx("div",{className:"whitespace-nowrap",children:T$(e,t)}),D.jsx("span",{className:ut("flex items-center before:mx-[6px] before:block before:size-[2px] before:bg-slate-700 before:content-['']",t&&"before:hidden"),children:!t&&C$(e.createdAt)})]})]})]})}),D.jsxs("div",{className:"relative shrink-0 empty:hidden",children:[_&&D.jsxs(dg,{to:"/:username/posts/:postId",props:{postId:d.id,username:ns(d.author)},children:[w&&D.jsx("div",{className:"absolute z-[1] size-full backdrop-blur-[5px]"}),D.jsx("img",{className:"border-slate-900_20 block size-12 shrink-0 rounded-[6px] border",src:h.uri,alt:""})]}),D.jsx(A3,{author:l,isPopup:t,notification:e})]})]}),d&&D.jsx(dg,{to:"/:username/posts/:postId",props:{postId:d.id,username:ns(d.author)},children:D.jsx("div",{className:ut("notificationBody mt-1 line-clamp-2 text-ellipsis text-base",t&&l&&"text-base_white_60 pl-[60px] text-[14px] hover:text-white",f&&"font-medium"),"data-testid":"mentionedFeed",dangerouslySetInnerHTML:{__html:d.text}})})]})},P3=e=>"NOTIFICATION_UNDO"===e.type,Tx="notification",O3=e=>"true"===e,A4=()=>{const e=Qh(),t=S$(),n=O3(null==t?void 0:t.notifications.stranger[Ui.notificationsShowPopup].value),r=Un(es.selectors.selectNotifications),{user:o}=Nx(),i=`${Tx}:${null==o?void 0:o.id}`,a=Un((e=>_l.selectors.selectLastUpdateFor(e,i)));Et((()=>{if(null!=o&&o.id)return e(_l.actions.subscribe({id:i,topics:[Tx]})),()=>{e(_l.actions.unsubscribe(i))}}),[null==o?void 0:o.id]),Et((()=>{null!=a&&a.data&&(P3(a)?e(es.actions.undoNotitication(a.data)):"LIKE"===(null==a?void 0:a.data.type)&&null!=r&&r.find((e=>{var t,n;return e.activityId===(null==a?void 0:a.data.activityId)&&(null==(t=e.fromUser)?void 0:t.id)===(null==(n=a.data.fromUser)?void 0:n.id)}))||null!=r&&r.find((e=>e.id===a.data.id))||(e(es.actions.addNotification(a.data)),n&&m2(D.jsx(I3,{notification:a.data,isPopup:!0}),{})))}),[null==a?void 0:a.data,n])},L3=e=>{switch(e.code){case 1e3:return"Normal closure, meaning that the purpose for which the connection was established has been fulfilled.";case 1001:return"An endpoint is 'going away', such as a server going down or a browser having navigated away from a page.";case 1002:return"An endpoint is terminating the connection due to a protocol error.";case 1003:return"An endpoint is terminating the connection because it has received a type of data it cannot accept (e.g., an endpoint that understands only text data MAY send this if it receives a binary message).";case 1004:return"Reserved. The specific meaning might be defined in the future.";case 1005:return"No status code was actually present.";case 1006:return"The connection was closed abnormally, e.g., without sending or receiving a Close control frame.";case 1007:return"An endpoint is terminating the connection because it has received data within a message that was not consistent with the type of the message (e.g., non-UTF-8 data within a text message).";case 1008:return"An endpoint is terminating the connection because it has received a message that 'violates its policy'. This reason is given either if there is no other suitable reason, or if there is a need to hide specific details about the policy.";case 1009:return"An endpoint is terminating the connection because it has received a message that is too big for it to process.";case 1010:return`An endpoint (client) is terminating the connection because it has expected the server to negotiate one or more extension, but the server didn't return them in the response message of the WebSocket handshake. Specifically, the extensions that are needed are: ${e.reason}`;case 1011:return"A server is terminating the connection because it encountered an unexpected condition that prevented it from fulfilling the request.";case 1015:return"The connection was closed due to a failure to perform a TLS handshake (e.g., the server certificate can't be verified).";default:return"Unknown reason."}};
69
+ /*! *****************************************************************************
70
+ Copyright (c) Microsoft Corporation. All rights reserved.
71
+ Licensed under the Apache License, Version 2.0 (the "License"); you may not use
72
+ this file except in compliance with the License. You may obtain a copy of the
73
+ License at http://www.apache.org/licenses/LICENSE-2.0
74
+
75
+ THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
76
+ KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
77
+ WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
78
+ MERCHANTABLITY OR NON-INFRINGEMENT.
79
+
80
+ See the Apache Version 2.0 License for specific language governing permissions
81
+ and limitations under the License.
82
+ ***************************************************************************** */var X_=function(e,t){return(X_=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)};function yC(e,t){function n(){this.constructor=e}X_(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}function D3(e){var t="function"==typeof Symbol&&e[Symbol.iterator],n=0;return t?t.call(e):{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}}}function M3(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}function F3(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(M3(arguments[t]));return e}var _C=function(){return function(e,t){this.target=t,this.type=e}}(),j3=function(e){function t(t,n){var r=e.call(this,"error",n)||this;return r.message=t.message,r.error=t,r}return yC(t,e),t}(_C),U3=function(e){function t(t,n,r){void 0===t&&(t=1e3),void 0===n&&(n="");var o=e.call(this,"close",r)||this;return o.wasClean=!0,o.code=t,o.reason=n,o}return yC(t,e),t}(_C),B3=function(){if(typeof WebSocket<"u")return WebSocket},z3=function(e){return typeof e<"u"&&!!e&&2===e.CLOSING},Vd={maxReconnectionDelay:1e4,minReconnectionDelay:1e3+4e3*Math.random(),minUptime:5e3,reconnectionDelayGrowFactor:1.3,connectionTimeout:4e3,maxRetries:1/0,maxEnqueuedMessages:1/0,startClosed:!1,debug:!1},W3=function(){function e(e,t,n){var r=this;void 0===n&&(n={}),this._listeners={error:[],message:[],open:[],close:[]},this._retryCount=-1,this._shouldReconnect=!0,this._connectLock=!1,this._binaryType="blob",this._closeCalled=!1,this._messageQueue=[],this.onclose=null,this.onerror=null,this.onmessage=null,this.onopen=null,this._handleOpen=function(e){r._debug("open event");var t=r._options.minUptime,n=void 0===t?Vd.minUptime:t;clearTimeout(r._connectTimeout),r._uptimeTimeout=setTimeout((function(){return r._acceptOpen()}),n),r._ws.binaryType=r._binaryType,r._messageQueue.forEach((function(e){return r._ws.send(e)})),r._messageQueue=[],r.onopen&&r.onopen(e),r._listeners.open.forEach((function(t){return r._callEventListener(e,t)}))},this._handleMessage=function(e){r._debug("message event"),r.onmessage&&r.onmessage(e),r._listeners.message.forEach((function(t){return r._callEventListener(e,t)}))},this._handleError=function(e){r._debug("error event",e.message),r._disconnect(void 0,"TIMEOUT"===e.message?"timeout":void 0),r.onerror&&r.onerror(e),r._debug("exec error listeners"),r._listeners.error.forEach((function(t){return r._callEventListener(e,t)})),r._connect()},this._handleClose=function(e){r._debug("close event"),r._clearTimeouts(),r._shouldReconnect&&r._connect(),r.onclose&&r.onclose(e),r._listeners.close.forEach((function(t){return r._callEventListener(e,t)}))},this._url=e,this._protocols=t,this._options=n,this._options.startClosed&&(this._shouldReconnect=!1),this._connect()}return Object.defineProperty(e,"CONNECTING",{get:function(){return 0},enumerable:!0,configurable:!0}),Object.defineProperty(e,"OPEN",{get:function(){return 1},enumerable:!0,configurable:!0}),Object.defineProperty(e,"CLOSING",{get:function(){return 2},enumerable:!0,configurable:!0}),Object.defineProperty(e,"CLOSED",{get:function(){return 3},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"CONNECTING",{get:function(){return e.CONNECTING},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"OPEN",{get:function(){return e.OPEN},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"CLOSING",{get:function(){return e.CLOSING},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"CLOSED",{get:function(){return e.CLOSED},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"binaryType",{get:function(){return this._ws?this._ws.binaryType:this._binaryType},set:function(e){this._binaryType=e,this._ws&&(this._ws.binaryType=e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"retryCount",{get:function(){return Math.max(this._retryCount,0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"bufferedAmount",{get:function(){return this._messageQueue.reduce((function(e,t){return"string"==typeof t?e+=t.length:t instanceof Blob?e+=t.size:e+=t.byteLength,e}),0)+(this._ws?this._ws.bufferedAmount:0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"extensions",{get:function(){return this._ws?this._ws.extensions:""},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"protocol",{get:function(){return this._ws?this._ws.protocol:""},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"readyState",{get:function(){return this._ws?this._ws.readyState:this._options.startClosed?e.CLOSED:e.CONNECTING},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"url",{get:function(){return this._ws?this._ws.url:""},enumerable:!0,configurable:!0}),e.prototype.close=function(e,t){void 0===e&&(e=1e3),this._closeCalled=!0,this._shouldReconnect=!1,this._clearTimeouts(),this._ws?this._ws.readyState!==this.CLOSED?this._ws.close(e,t):this._debug("close: already closed"):this._debug("close enqueued: no ws instance")},e.prototype.reconnect=function(e,t){this._shouldReconnect=!0,this._closeCalled=!1,this._retryCount=-1,this._ws&&this._ws.readyState!==this.CLOSED?(this._disconnect(e,t),this._connect()):this._connect()},e.prototype.send=function(e){if(this._ws&&this._ws.readyState===this.OPEN)this._debug("send",e),this._ws.send(e);else{var t=this._options.maxEnqueuedMessages,n=void 0===t?Vd.maxEnqueuedMessages:t;this._messageQueue.length<n&&(this._debug("enqueue",e),this._messageQueue.push(e))}},e.prototype.addEventListener=function(e,t){this._listeners[e]&&this._listeners[e].push(t)},e.prototype.dispatchEvent=function(e){var t,n,r=this._listeners[e.type];if(r)try{for(var o=D3(r),i=o.next();!i.done;i=o.next()){var a=i.value;this._callEventListener(e,a)}}catch(e){t={error:e}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(t)throw t.error}}return!0},e.prototype.removeEventListener=function(e,t){this._listeners[e]&&(this._listeners[e]=this._listeners[e].filter((function(e){return e!==t})))},e.prototype._debug=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this._options.debug&&console.log.apply(console,F3(["RWS>"],e))},e.prototype._getNextDelay=function(){var e=this._options,t=e.reconnectionDelayGrowFactor,n=void 0===t?Vd.reconnectionDelayGrowFactor:t,r=e.minReconnectionDelay,o=void 0===r?Vd.minReconnectionDelay:r,i=e.maxReconnectionDelay,a=void 0===i?Vd.maxReconnectionDelay:i,s=0;return this._retryCount>0&&((s=o*Math.pow(n,this._retryCount-1))>a&&(s=a)),this._debug("next delay",s),s},e.prototype._wait=function(){var e=this;return new Promise((function(t){setTimeout(t,e._getNextDelay())}))},e.prototype._getNextUrl=function(e){if("string"==typeof e)return Promise.resolve(e);if("function"==typeof e){var t=e();if("string"==typeof t)return Promise.resolve(t);if(t.then)return t}throw Error("Invalid URL")},e.prototype._connect=function(){var e=this;if(!this._connectLock&&this._shouldReconnect){this._connectLock=!0;var t=this._options,n=t.maxRetries,r=void 0===n?Vd.maxRetries:n,o=t.connectionTimeout,i=void 0===o?Vd.connectionTimeout:o,a=t.WebSocket,s=void 0===a?B3():a;if(this._retryCount>=r)return void this._debug("max retries reached",this._retryCount,">=",r);if(this._retryCount++,this._debug("connect",this._retryCount),this._removeListeners(),!z3(s))throw Error("No valid WebSocket class provided");this._wait().then((function(){return e._getNextUrl(e._url)})).then((function(t){e._closeCalled||(e._debug("connect",{url:t,protocols:e._protocols}),e._ws=e._protocols?new s(t,e._protocols):new s(t),e._ws.binaryType=e._binaryType,e._connectLock=!1,e._addListeners(),e._connectTimeout=setTimeout((function(){return e._handleTimeout()}),i))}))}},e.prototype._handleTimeout=function(){this._debug("timeout event"),this._handleError(new j3(Error("TIMEOUT"),this))},e.prototype._disconnect=function(e,t){if(void 0===e&&(e=1e3),this._clearTimeouts(),this._ws){this._removeListeners();try{this._ws.close(e,t),this._handleClose(new U3(e,t,this))}catch{}}},e.prototype._acceptOpen=function(){this._debug("accept open"),this._retryCount=0},e.prototype._callEventListener=function(e,t){"handleEvent"in t?t.handleEvent(e):t(e)},e.prototype._removeListeners=function(){this._ws&&(this._debug("removeListeners"),this._ws.removeEventListener("open",this._handleOpen),this._ws.removeEventListener("close",this._handleClose),this._ws.removeEventListener("message",this._handleMessage),this._ws.removeEventListener("error",this._handleError))},e.prototype._addListeners=function(){this._ws&&(this._debug("addListeners"),this._ws.addEventListener("open",this._handleOpen),this._ws.addEventListener("close",this._handleClose),this._ws.addEventListener("message",this._handleMessage),this._ws.addEventListener("error",this._handleError))},e.prototype._clearTimeouts=function(){clearTimeout(this._connectTimeout),clearTimeout(this._uptimeTimeout)},e}();
83
+ /*!
84
+ * Reconnecting WebSocket
85
+ * by Pedro Ladaria <pedro.ladaria@gmail.com>
86
+ * https://github.com/pladaria/reconnecting-websocket
87
+ * License MIT
88
+ */const N4=()=>{const e=Qh(),t=Un(wf.selectors.selectToken),n=Un(_l.selectors.selectSubscribers),r=Un(_l.selectors.selectUnSubscribers),[o,i]=Ot(null),[a,s]=Ot(!1),l=At(null);l.current=o;const u=At([]);Et((()=>{(()=>{const e=location.hostname,n=new W3(`wss://${e}/api/v1/streaming${t?`?access_token=${t}`:""}`);i(n)})()}),[t]),Et((()=>{o&&(o.onopen=()=>{s(!0),Fs.info("Connected to WebSocket server")},o.onmessage=t=>{Fs.debug("WebSocket receive message: ",JSON.parse(t.data));try{e(_l.actions.onMessage(JSON.parse(t.data)))}catch(e){Fs.error("WebSocket:onmessage:parse: ",e)}},o.onclose=e=>{s(!1),Fs.info("Disconnected from WebSocket server:",L3(e))},o.onerror=e=>{s(!1),Fs.error("WebSocket error:",e)})}),[o]),Et((()=>()=>{var e,t,n;if((null==(e=l.current)?void 0:e.readyState)===(null==(t=l.current)?void 0:t.OPEN))try{null==(n=l.current)||n.close()}catch(e){Fs.error("WebSocket error when close: ",e)}}),[]),Et((()=>{if(a){const e=n.filter((e=>!u.current.includes(e)));Fs.debug("WebSocket subscribers list: ",n),e.forEach((e=>{var t;try{null==(t=l.current)||t.send(JSON.stringify({type:"SUBSCRIBE",topics:e.topics})),Fs.debug("WebSocket subscibed to: ",e),u.current.push(e)}catch(e){Fs.error("WebSocket error when send: ",e)}}))}}),[a,n,u.current]),Et((()=>{r.forEach((t=>{var n;try{null==(n=l.current)||n.send(JSON.stringify({type:"UNSUBSCRIBE",topics:t.topics})),Fs.debug("WebSocket unsubscribed from: ",t),e(_l.actions.onUnsubscribe(t.id))}catch(e){Fs.error("WebSocket error when send: ",e)}}))}),[r])};export{jC as fillTopic,A4 as useNotifications,p4 as useUserUpdate,N4 as useWebSocket,_l as wsSlice};