@tnf-dev/react 1.0.1-12 → 1.0.1-13

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 (65) hide show
  1. package/dist/cjs/components/inbox/empty.cjs +10 -10
  2. package/dist/cjs/components/inbox/inbox.cjs +9 -9
  3. package/dist/cjs/components/inbox/inbox.d.cts +1 -1
  4. package/dist/cjs/components/inbox/index.cjs +9 -9
  5. package/dist/cjs/components/inbox/index.d.cts +2 -2
  6. package/dist/cjs/components/inbox/loader.cjs +9 -9
  7. package/dist/cjs/components/inbox/notification-header.cjs +9 -9
  8. package/dist/cjs/components/inbox/notification-item/actions.d.cts +1 -1
  9. package/dist/cjs/components/inbox/notification-item/index.d.cts +1 -1
  10. package/dist/cjs/components/index.cjs +9 -9
  11. package/dist/cjs/components/index.d.cts +2 -2
  12. package/dist/cjs/contexts/TeknifyProvider.cjs +9 -9
  13. package/dist/cjs/contexts/TeknifyProvider.d.cts +7 -1
  14. package/dist/cjs/contexts/index.cjs +9 -9
  15. package/dist/cjs/contexts/index.d.cts +2 -1
  16. package/dist/cjs/dto/index.d.cts +1 -1
  17. package/dist/cjs/dto/notifications/index.d.cts +1 -1
  18. package/dist/cjs/dto/notifications/notification.interface.d.cts +1 -1
  19. package/dist/cjs/hooks/index.cjs +1 -1
  20. package/dist/cjs/hooks/index.d.cts +1 -1
  21. package/dist/cjs/hooks/useNotifications.cjs +1 -1
  22. package/dist/cjs/hooks/useNotifications.d.cts +1 -1
  23. package/dist/cjs/index.cjs +9 -9
  24. package/dist/cjs/index.d.cts +4 -3
  25. package/dist/cjs/locale/default.cjs +2 -0
  26. package/dist/cjs/locale/default.d.cts +5 -0
  27. package/dist/cjs/locale/index.cjs +2 -0
  28. package/dist/cjs/locale/index.d.cts +2 -0
  29. package/dist/cjs/types/index.cjs +2 -0
  30. package/dist/cjs/types/index.d.cts +1 -0
  31. package/dist/cjs/types/locale.cjs +2 -0
  32. package/dist/cjs/types/locale.d.cts +15 -0
  33. package/dist/esm/components/inbox/empty.js +6 -6
  34. package/dist/esm/components/inbox/inbox.d.ts +1 -1
  35. package/dist/esm/components/inbox/inbox.js +6 -6
  36. package/dist/esm/components/inbox/index.d.ts +2 -2
  37. package/dist/esm/components/inbox/index.js +6 -6
  38. package/dist/esm/components/inbox/loader.js +6 -6
  39. package/dist/esm/components/inbox/notification-header.js +6 -6
  40. package/dist/esm/components/inbox/notification-item/actions.d.ts +1 -1
  41. package/dist/esm/components/inbox/notification-item/index.d.ts +1 -1
  42. package/dist/esm/components/index.d.ts +2 -2
  43. package/dist/esm/components/index.js +6 -6
  44. package/dist/esm/contexts/TeknifyProvider.d.ts +7 -1
  45. package/dist/esm/contexts/TeknifyProvider.js +6 -6
  46. package/dist/esm/contexts/index.d.ts +2 -1
  47. package/dist/esm/contexts/index.js +6 -6
  48. package/dist/esm/dto/index.d.ts +1 -1
  49. package/dist/esm/dto/notifications/index.d.ts +1 -1
  50. package/dist/esm/dto/notifications/notification.interface.d.ts +1 -1
  51. package/dist/esm/hooks/index.d.ts +1 -1
  52. package/dist/esm/hooks/index.js +1 -1
  53. package/dist/esm/hooks/useNotifications.d.ts +1 -1
  54. package/dist/esm/hooks/useNotifications.js +1 -1
  55. package/dist/esm/index.d.ts +4 -3
  56. package/dist/esm/index.js +6 -6
  57. package/dist/esm/locale/default.d.ts +5 -0
  58. package/dist/esm/locale/default.js +2 -0
  59. package/dist/esm/locale/index.d.ts +2 -0
  60. package/dist/esm/locale/index.js +2 -0
  61. package/dist/esm/types/index.d.ts +1 -0
  62. package/dist/esm/types/index.js +1 -0
  63. package/dist/esm/types/locale.d.ts +15 -0
  64. package/dist/esm/types/locale.js +1 -0
  65. package/package.json +2 -2
@@ -1,12 +1,12 @@
1
1
  "use client"
2
- var bn=Object.create;var Ft=Object.defineProperty;var xn=Object.getOwnPropertyDescriptor;var Sn=Object.getOwnPropertyNames;var Pn=Object.getPrototypeOf,wn=Object.prototype.hasOwnProperty;var le=(r,e)=>()=>(e||r((e={exports:{}}).exports,e),e.exports);var Rn=(r,e,n,t)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of Sn(e))!wn.call(r,i)&&i!==n&&Ft(r,i,{get:()=>e[i],enumerable:!(t=xn(e,i))||t.enumerable});return r};var We=(r,e,n)=>(n=r!=null?bn(Pn(r)):{},Rn(e||!r||!r.__esModule?Ft(n,"default",{value:r,enumerable:!0}):n,r));var Wt=le(g=>{"use strict";var N=typeof Symbol=="function"&&Symbol.for,ze=N?Symbol.for("react.element"):60103,Be=N?Symbol.for("react.portal"):60106,fe=N?Symbol.for("react.fragment"):60107,ce=N?Symbol.for("react.strict_mode"):60108,de=N?Symbol.for("react.profiler"):60114,he=N?Symbol.for("react.provider"):60109,pe=N?Symbol.for("react.context"):60110,$e=N?Symbol.for("react.async_mode"):60111,me=N?Symbol.for("react.concurrent_mode"):60111,ve=N?Symbol.for("react.forward_ref"):60112,ge=N?Symbol.for("react.suspense"):60113,Cn=N?Symbol.for("react.suspense_list"):60120,ye=N?Symbol.for("react.memo"):60115,be=N?Symbol.for("react.lazy"):60116,Nn=N?Symbol.for("react.block"):60121,On=N?Symbol.for("react.fundamental"):60117,Tn=N?Symbol.for("react.responder"):60118,En=N?Symbol.for("react.scope"):60119;function A(r){if(typeof r=="object"&&r!==null){var e=r.$$typeof;switch(e){case ze:switch(r=r.type,r){case $e:case me:case fe:case de:case ce:case ge:return r;default:switch(r=r&&r.$$typeof,r){case pe:case ve:case be:case ye:case he:return r;default:return e}}case Be:return e}}}function Lt(r){return A(r)===me}g.AsyncMode=$e;g.ConcurrentMode=me;g.ContextConsumer=pe;g.ContextProvider=he;g.Element=ze;g.ForwardRef=ve;g.Fragment=fe;g.Lazy=be;g.Memo=ye;g.Portal=Be;g.Profiler=de;g.StrictMode=ce;g.Suspense=ge;g.isAsyncMode=function(r){return Lt(r)||A(r)===$e};g.isConcurrentMode=Lt;g.isContextConsumer=function(r){return A(r)===pe};g.isContextProvider=function(r){return A(r)===he};g.isElement=function(r){return typeof r=="object"&&r!==null&&r.$$typeof===ze};g.isForwardRef=function(r){return A(r)===ve};g.isFragment=function(r){return A(r)===fe};g.isLazy=function(r){return A(r)===be};g.isMemo=function(r){return A(r)===ye};g.isPortal=function(r){return A(r)===Be};g.isProfiler=function(r){return A(r)===de};g.isStrictMode=function(r){return A(r)===ce};g.isSuspense=function(r){return A(r)===ge};g.isValidElementType=function(r){return typeof r=="string"||typeof r=="function"||r===fe||r===me||r===de||r===ce||r===ge||r===Cn||typeof r=="object"&&r!==null&&(r.$$typeof===be||r.$$typeof===ye||r.$$typeof===he||r.$$typeof===pe||r.$$typeof===ve||r.$$typeof===On||r.$$typeof===Tn||r.$$typeof===En||r.$$typeof===Nn)};g.typeOf=A});var Bt=le((rs,zt)=>{"use strict";zt.exports=Wt()});var Ge=le((ns,qt)=>{"use strict";var Ue=Bt(),In={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},An={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},_n={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Gt={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},He={};He[Ue.ForwardRef]=_n;He[Ue.Memo]=Gt;function $t(r){return Ue.isMemo(r)?Gt:He[r.$$typeof]||In}var jn=Object.defineProperty,Mn=Object.getOwnPropertyNames,Ut=Object.getOwnPropertySymbols,Vn=Object.getOwnPropertyDescriptor,Fn=Object.getPrototypeOf,Ht=Object.prototype;function Jt(r,e,n){if(typeof e!="string"){if(Ht){var t=Fn(e);t&&t!==Ht&&Jt(r,t,n)}var i=Mn(e);Ut&&(i=i.concat(Ut(e)));for(var o=$t(r),a=$t(e),s=0;s<i.length;++s){var u=i[s];if(!An[u]&&!(n&&n[u])&&!(a&&a[u])&&!(o&&o[u])){var f=Vn(e,u);try{jn(r,u,f)}catch{}}}}return r}qt.exports=Jt});var Kt=le(qe=>{"use strict";Object.defineProperty(qe,"__esModule",{value:!0});qe.default=Wn;function Wn(r){return r.displayName||r.name||(typeof r=="string"&&r.length>0?r:"Unknown")}});function Dt(r){var e,n,t="";if(typeof r=="string"||typeof r=="number")t+=r;else if(typeof r=="object")if(Array.isArray(r)){var i=r.length;for(e=0;e<i;e++)r[e]&&(n=Dt(r[e]))&&(t&&(t+=" "),t+=n)}else for(n in r)r[n]&&(t&&(t+=" "),t+=n);return t}function kn(){for(var r,e,n=0,t="",i=arguments.length;n<i;n++)(r=arguments[n])&&(e=Dt(r))&&(t&&(t+=" "),t+=e);return t}var x=kn;import{useMemo as sn}from"react";function b(){return b=Object.assign?Object.assign.bind():function(r){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var t in n)({}).hasOwnProperty.call(n,t)&&(r[t]=n[t])}return r},b.apply(null,arguments)}function ue(r,e){if(r==null)return{};var n={};for(var t in r)if({}.hasOwnProperty.call(r,t)){if(e.indexOf(t)!==-1)continue;n[t]=r[t]}return n}var ta=We(Ge());import Xo,{createContext as Yo,useRef as Zo,useContext as qr,useMemo as Kr,useEffect as en,useLayoutEffect as Qo,useDebugValue as Xr,forwardRef as Gl,createElement as ea}from"react";import $,{createContext as zn}from"react";var Dn=!0;function Ln(r,e){if(!Dn){if(r)return;var n="Warning: "+e;typeof console<"u"&&console.warn(n);try{throw Error(n)}catch{}}}var Je=Ln;var Xt=We(Ge()),ss=We(Kt());function xe(r,e,n){return e in r?Object.defineProperty(r,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):r[e]=n,r}function Se(){return Se=Object.assign||function(r){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var t in n)Object.prototype.hasOwnProperty.call(n,t)&&(r[t]=n[t])}return r},Se.apply(this,arguments)}function Bn(r,e){r.prototype=Object.create(e.prototype),r.prototype.constructor=r,r.__proto__=e}function F(r){if(r===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return r}function $n(r){var e=function(n){Bn(t,n);function t(){for(var o,a=arguments.length,s=new Array(a),u=0;u<a;u++)s[u]=arguments[u];return o=n.call.apply(n,[this].concat(s))||this,xe(F(F(o)),"cachedTheme",void 0),xe(F(F(o)),"lastOuterTheme",void 0),xe(F(F(o)),"lastTheme",void 0),xe(F(F(o)),"renderProvider",function(f){var c=o.props.children;return $.createElement(r.Provider,{value:o.getTheme(f)},c)}),o}var i=t.prototype;return i.getTheme=function(a){if(this.props.theme!==this.lastTheme||a!==this.lastOuterTheme||!this.cachedTheme)if(this.lastOuterTheme=a,this.lastTheme=this.props.theme,typeof this.lastTheme=="function"){var s=this.props.theme;this.cachedTheme=s(a)}else{var u=this.props.theme;this.cachedTheme=a?Se({},a,u):u}return this.cachedTheme},i.render=function(){var a=this.props.children;return a?$.createElement(r.Consumer,null,this.renderProvider):null},t}($.Component);return e}function Un(r){return function(n){var t=$.forwardRef(function(i,o){return $.createElement(r.Consumer,null,function(a){return $.createElement(n,Se({theme:a,ref:o},i))})});return(0,Xt.default)(t,n),t}}function Hn(r){var e=function(){var t=$.useContext(r);return t};return e}function Yt(r){return{context:r,withTheme:Un(r),useTheme:Hn(r),ThemeProvider:$n(r)}}var Ke=zn(),Xe=Yt(Ke),Gn=Xe.withTheme,Jn=Xe.ThemeProvider,qn=Xe.useTheme;var Zt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Kn=(typeof window>"u"?"undefined":Zt(window))==="object"&&(typeof document>"u"?"undefined":Zt(document))==="object"&&document.nodeType===9,M=Kn;function U(r){"@babel/helpers - typeof";return U=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},U(r)}function Qt(r,e){if(U(r)!="object"||!r)return r;var n=r[Symbol.toPrimitive];if(n!==void 0){var t=n.call(r,e||"default");if(U(t)!="object")return t;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(r)}function er(r){var e=Qt(r,"string");return U(e)=="symbol"?e:e+""}function tr(r,e){for(var n=0;n<e.length;n++){var t=e[n];t.enumerable=t.enumerable||!1,t.configurable=!0,"value"in t&&(t.writable=!0),Object.defineProperty(r,er(t.key),t)}}function Pe(r,e,n){return e&&tr(r.prototype,e),n&&tr(r,n),Object.defineProperty(r,"prototype",{writable:!1}),r}function we(r,e){return we=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,t){return n.__proto__=t,n},we(r,e)}function Ye(r,e){r.prototype=Object.create(e.prototype),r.prototype.constructor=r,we(r,e)}function Ze(r){if(r===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return r}var Xn={}.constructor;function tt(r){if(r==null||typeof r!="object")return r;if(Array.isArray(r))return r.map(tt);if(r.constructor!==Xn)return r;var e={};for(var n in r)e[n]=tt(r[n]);return e}function J(r,e,n){r===void 0&&(r="unnamed");var t=n.jss,i=tt(e),o=t.plugins.onCreateRule(r,i,n);return o||(r[0],null)}var rr=function(e,n){for(var t="",i=0;i<e.length&&e[i]!=="!important";i++)t&&(t+=n),t+=e[i];return t},D=function(e){if(!Array.isArray(e))return e;var n="";if(Array.isArray(e[0]))for(var t=0;t<e.length&&e[t]!=="!important";t++)n&&(n+=", "),n+=rr(e[t]," ");else n=rr(e,", ");return e[e.length-1]==="!important"&&(n+=" !important"),n};function q(r){return r&&r.format===!1?{linebreak:"",space:""}:{linebreak:`
3
- `,space:" "}}function Z(r,e){for(var n="",t=0;t<e;t++)n+=" ";return n+r}function ee(r,e,n){n===void 0&&(n={});var t="";if(!e)return t;var i=n,o=i.indent,a=o===void 0?0:o,s=e.fallbacks;n.format===!1&&(a=-1/0);var u=q(n),f=u.linebreak,c=u.space;if(r&&a++,s)if(Array.isArray(s))for(var d=0;d<s.length;d++){var p=s[d];for(var m in p){var y=p[m];y!=null&&(t&&(t+=f),t+=Z(m+":"+c+D(y)+";",a))}}else for(var v in s){var w=s[v];w!=null&&(t&&(t+=f),t+=Z(v+":"+c+D(w)+";",a))}for(var k in e){var P=e[k];P!=null&&k!=="fallbacks"&&(t&&(t+=f),t+=Z(k+":"+c+D(P)+";",a))}return!t&&!n.allowEmpty||!r?t:(a--,t&&(t=""+f+t+f),Z(""+r+c+"{"+t,a)+Z("}",a))}var Yn=/([[\].#*$><+~=|^:(),"'`\s])/g,nr=typeof CSS<"u"&&CSS.escape,lt=function(r){return nr?nr(r):r.replace(Yn,"\\$1")},fr=function(){function r(n,t,i){this.type="style",this.isProcessed=!1;var o=i.sheet,a=i.Renderer;this.key=n,this.options=i,this.style=t,o?this.renderer=o.renderer:a&&(this.renderer=new a)}var e=r.prototype;return e.prop=function(t,i,o){if(i===void 0)return this.style[t];var a=o?o.force:!1;if(!a&&this.style[t]===i)return this;var s=i;(!o||o.process!==!1)&&(s=this.options.jss.plugins.onChangeValue(i,t,this));var u=s==null||s===!1,f=t in this.style;if(u&&!f&&!a)return this;var c=u&&f;if(c?delete this.style[t]:this.style[t]=s,this.renderable&&this.renderer)return c?this.renderer.removeProperty(this.renderable,t):this.renderer.setProperty(this.renderable,t,s),this;var d=this.options.sheet;return d&&d.attached,this},r}(),rt=function(r){Ye(e,r);function e(t,i,o){var a;a=r.call(this,t,i,o)||this;var s=o.selector,u=o.scoped,f=o.sheet,c=o.generateId;return s?a.selectorText=s:u!==!1&&(a.id=c(Ze(Ze(a)),f),a.selectorText="."+lt(a.id)),a}var n=e.prototype;return n.applyTo=function(i){var o=this.renderer;if(o){var a=this.toJSON();for(var s in a)o.setProperty(i,s,a[s])}return this},n.toJSON=function(){var i={};for(var o in this.style){var a=this.style[o];typeof a!="object"?i[o]=a:Array.isArray(a)&&(i[o]=D(a))}return i},n.toString=function(i){var o=this.options.sheet,a=o?o.options.link:!1,s=a?b({},i,{allowEmpty:!0}):i;return ee(this.selectorText,this.style,s)},Pe(e,[{key:"selector",set:function(i){if(i!==this.selectorText){this.selectorText=i;var o=this.renderer,a=this.renderable;if(!(!a||!o)){var s=o.setSelector(a,i);s||o.replaceRule(a,this)}}},get:function(){return this.selectorText}}]),e}(fr),Zn={onCreateRule:function(e,n,t){return e[0]==="@"||t.parent&&t.parent.type==="keyframes"?null:new rt(e,n,t)}},Qe={indent:1,children:!0},Qn=/@([\w-]+)/,ei=function(){function r(n,t,i){this.type="conditional",this.isProcessed=!1,this.key=n;var o=n.match(Qn);this.at=o?o[1]:"unknown",this.query=i.name||"@"+this.at,this.options=i,this.rules=new te(b({},i,{parent:this}));for(var a in t)this.rules.add(a,t[a]);this.rules.process()}var e=r.prototype;return e.getRule=function(t){return this.rules.get(t)},e.indexOf=function(t){return this.rules.indexOf(t)},e.addRule=function(t,i,o){var a=this.rules.add(t,i,o);return a?(this.options.jss.plugins.onProcessRule(a),a):null},e.replaceRule=function(t,i,o){var a=this.rules.replace(t,i,o);return a&&this.options.jss.plugins.onProcessRule(a),a},e.toString=function(t){t===void 0&&(t=Qe);var i=q(t),o=i.linebreak;if(t.indent==null&&(t.indent=Qe.indent),t.children==null&&(t.children=Qe.children),t.children===!1)return this.query+" {}";var a=this.rules.toString(t);return a?this.query+" {"+o+a+o+"}":""},r}(),ti=/@container|@media|@supports\s+/,ri={onCreateRule:function(e,n,t){return ti.test(e)?new ei(e,n,t):null}},et={indent:1,children:!0},ni=/@keyframes\s+([\w-]+)/,nt=function(){function r(n,t,i){this.type="keyframes",this.at="@keyframes",this.isProcessed=!1;var o=n.match(ni);o&&o[1]?this.name=o[1]:this.name="noname",this.key=this.type+"-"+this.name,this.options=i;var a=i.scoped,s=i.sheet,u=i.generateId;this.id=a===!1?this.name:lt(u(this,s)),this.rules=new te(b({},i,{parent:this}));for(var f in t)this.rules.add(f,t[f],b({},i,{parent:this}));this.rules.process()}var e=r.prototype;return e.toString=function(t){t===void 0&&(t=et);var i=q(t),o=i.linebreak;if(t.indent==null&&(t.indent=et.indent),t.children==null&&(t.children=et.children),t.children===!1)return this.at+" "+this.id+" {}";var a=this.rules.toString(t);return a&&(a=""+o+a+o),this.at+" "+this.id+" {"+a+"}"},r}(),ii=/@keyframes\s+/,oi=/\$([\w-]+)/g,it=function(e,n){return typeof e=="string"?e.replace(oi,function(t,i){return i in n?n[i]:t}):e},ir=function(e,n,t){var i=e[n],o=it(i,t);o!==i&&(e[n]=o)},ai={onCreateRule:function(e,n,t){return typeof e=="string"&&ii.test(e)?new nt(e,n,t):null},onProcessStyle:function(e,n,t){return n.type!=="style"||!t||("animation-name"in e&&ir(e,"animation-name",t.keyframes),"animation"in e&&ir(e,"animation",t.keyframes)),e},onChangeValue:function(e,n,t){var i=t.options.sheet;if(!i)return e;switch(n){case"animation":return it(e,i.keyframes);case"animation-name":return it(e,i.keyframes);default:return e}}},si=function(r){Ye(e,r);function e(){return r.apply(this,arguments)||this}var n=e.prototype;return n.toString=function(i){var o=this.options.sheet,a=o?o.options.link:!1,s=a?b({},i,{allowEmpty:!0}):i;return ee(this.key,this.style,s)},e}(fr),li={onCreateRule:function(e,n,t){return t.parent&&t.parent.type==="keyframes"?new si(e,n,t):null}},ui=function(){function r(n,t,i){this.type="font-face",this.at="@font-face",this.isProcessed=!1,this.key=n,this.style=t,this.options=i}var e=r.prototype;return e.toString=function(t){var i=q(t),o=i.linebreak;if(Array.isArray(this.style)){for(var a="",s=0;s<this.style.length;s++)a+=ee(this.at,this.style[s]),this.style[s+1]&&(a+=o);return a}return ee(this.at,this.style,t)},r}(),fi=/@font-face/,ci={onCreateRule:function(e,n,t){return fi.test(e)?new ui(e,n,t):null}},di=function(){function r(n,t,i){this.type="viewport",this.at="@viewport",this.isProcessed=!1,this.key=n,this.style=t,this.options=i}var e=r.prototype;return e.toString=function(t){return ee(this.key,this.style,t)},r}(),hi={onCreateRule:function(e,n,t){return e==="@viewport"||e==="@-ms-viewport"?new di(e,n,t):null}},pi=function(){function r(n,t,i){this.type="simple",this.isProcessed=!1,this.key=n,this.value=t,this.options=i}var e=r.prototype;return e.toString=function(t){if(Array.isArray(this.value)){for(var i="",o=0;o<this.value.length;o++)i+=this.key+" "+this.value[o]+";",this.value[o+1]&&(i+=`
4
- `);return i}return this.key+" "+this.value+";"},r}(),mi={"@charset":!0,"@import":!0,"@namespace":!0},vi={onCreateRule:function(e,n,t){return e in mi?new pi(e,n,t):null}},or=[Zn,ri,ai,li,ci,hi,vi],gi={process:!0},ar={force:!0,process:!0},te=function(){function r(n){this.map={},this.raw={},this.index=[],this.counter=0,this.options=n,this.classes=n.classes,this.keyframes=n.keyframes}var e=r.prototype;return e.add=function(t,i,o){var a=this.options,s=a.parent,u=a.sheet,f=a.jss,c=a.Renderer,d=a.generateId,p=a.scoped,m=b({classes:this.classes,parent:s,sheet:u,jss:f,Renderer:c,generateId:d,scoped:p,name:t,keyframes:this.keyframes,selector:void 0},o),y=t;t in this.raw&&(y=t+"-d"+this.counter++),this.raw[y]=i,y in this.classes&&(m.selector="."+lt(this.classes[y]));var v=J(y,i,m);if(!v)return null;this.register(v);var w=m.index===void 0?this.index.length:m.index;return this.index.splice(w,0,v),v},e.replace=function(t,i,o){var a=this.get(t),s=this.index.indexOf(a);a&&this.remove(a);var u=o;return s!==-1&&(u=b({},o,{index:s})),this.add(t,i,u)},e.get=function(t){return this.map[t]},e.remove=function(t){this.unregister(t),delete this.raw[t.key],this.index.splice(this.index.indexOf(t),1)},e.indexOf=function(t){return this.index.indexOf(t)},e.process=function(){var t=this.options.jss.plugins;this.index.slice(0).forEach(t.onProcessRule,t)},e.register=function(t){this.map[t.key]=t,t instanceof rt?(this.map[t.selector]=t,t.id&&(this.classes[t.key]=t.id)):t instanceof nt&&this.keyframes&&(this.keyframes[t.name]=t.id)},e.unregister=function(t){delete this.map[t.key],t instanceof rt?(delete this.map[t.selector],delete this.classes[t.key]):t instanceof nt&&delete this.keyframes[t.name]},e.update=function(){var t,i,o;if(typeof(arguments.length<=0?void 0:arguments[0])=="string"?(t=arguments.length<=0?void 0:arguments[0],i=arguments.length<=1?void 0:arguments[1],o=arguments.length<=2?void 0:arguments[2]):(i=arguments.length<=0?void 0:arguments[0],o=arguments.length<=1?void 0:arguments[1],t=null),t)this.updateOne(this.get(t),i,o);else for(var a=0;a<this.index.length;a++)this.updateOne(this.index[a],i,o)},e.updateOne=function(t,i,o){o===void 0&&(o=gi);var a=this.options,s=a.jss.plugins,u=a.sheet;if(t.rules instanceof r){t.rules.update(i,o);return}var f=t.style;if(s.onUpdate(i,t,u,o),o.process&&f&&f!==t.style){s.onProcessStyle(t.style,t,u);for(var c in t.style){var d=t.style[c],p=f[c];d!==p&&t.prop(c,d,ar)}for(var m in f){var y=t.style[m],v=f[m];y==null&&y!==v&&t.prop(m,null,ar)}}},e.toString=function(t){for(var i="",o=this.options.sheet,a=o?o.options.link:!1,s=q(t),u=s.linebreak,f=0;f<this.index.length;f++){var c=this.index[f],d=c.toString(t);!d&&!a||(i&&(i+=u),i+=d)}return i},r}(),cr=function(){function r(n,t){this.attached=!1,this.deployed=!1,this.classes={},this.keyframes={},this.options=b({},t,{sheet:this,parent:this,classes:this.classes,keyframes:this.keyframes}),t.Renderer&&(this.renderer=new t.Renderer(this)),this.rules=new te(this.options);for(var i in n)this.rules.add(i,n[i]);this.rules.process()}var e=r.prototype;return e.attach=function(){return this.attached?this:(this.renderer&&this.renderer.attach(),this.attached=!0,this.deployed||this.deploy(),this)},e.detach=function(){return this.attached?(this.renderer&&this.renderer.detach(),this.attached=!1,this):this},e.addRule=function(t,i,o){var a=this.queue;this.attached&&!a&&(this.queue=[]);var s=this.rules.add(t,i,o);return s?(this.options.jss.plugins.onProcessRule(s),this.attached?(this.deployed&&(a?a.push(s):(this.insertRule(s),this.queue&&(this.queue.forEach(this.insertRule,this),this.queue=void 0))),s):(this.deployed=!1,s)):null},e.replaceRule=function(t,i,o){var a=this.rules.get(t);if(!a)return this.addRule(t,i,o);var s=this.rules.replace(t,i,o);return s&&this.options.jss.plugins.onProcessRule(s),this.attached?(this.deployed&&this.renderer&&(s?a.renderable&&this.renderer.replaceRule(a.renderable,s):this.renderer.deleteRule(a)),s):(this.deployed=!1,s)},e.insertRule=function(t){this.renderer&&this.renderer.insertRule(t)},e.addRules=function(t,i){var o=[];for(var a in t){var s=this.addRule(a,t[a],i);s&&o.push(s)}return o},e.getRule=function(t){return this.rules.get(t)},e.deleteRule=function(t){var i=typeof t=="object"?t:this.rules.get(t);return!i||this.attached&&!i.renderable?!1:(this.rules.remove(i),this.attached&&i.renderable&&this.renderer?this.renderer.deleteRule(i.renderable):!0)},e.indexOf=function(t){return this.rules.indexOf(t)},e.deploy=function(){return this.renderer&&this.renderer.deploy(),this.deployed=!0,this},e.update=function(){var t;return(t=this.rules).update.apply(t,arguments),this},e.updateOne=function(t,i,o){return this.rules.updateOne(t,i,o),this},e.toString=function(t){return this.rules.toString(t)},r}(),yi=function(){function r(){this.plugins={internal:[],external:[]},this.registry={}}var e=r.prototype;return e.onCreateRule=function(t,i,o){for(var a=0;a<this.registry.onCreateRule.length;a++){var s=this.registry.onCreateRule[a](t,i,o);if(s)return s}return null},e.onProcessRule=function(t){if(!t.isProcessed){for(var i=t.options.sheet,o=0;o<this.registry.onProcessRule.length;o++)this.registry.onProcessRule[o](t,i);t.style&&this.onProcessStyle(t.style,t,i),t.isProcessed=!0}},e.onProcessStyle=function(t,i,o){for(var a=0;a<this.registry.onProcessStyle.length;a++)i.style=this.registry.onProcessStyle[a](i.style,i,o)},e.onProcessSheet=function(t){for(var i=0;i<this.registry.onProcessSheet.length;i++)this.registry.onProcessSheet[i](t)},e.onUpdate=function(t,i,o,a){for(var s=0;s<this.registry.onUpdate.length;s++)this.registry.onUpdate[s](t,i,o,a)},e.onChangeValue=function(t,i,o){for(var a=t,s=0;s<this.registry.onChangeValue.length;s++)a=this.registry.onChangeValue[s](a,i,o);return a},e.use=function(t,i){i===void 0&&(i={queue:"external"});var o=this.plugins[i.queue];o.indexOf(t)===-1&&(o.push(t),this.registry=[].concat(this.plugins.external,this.plugins.internal).reduce(function(a,s){for(var u in s)u in a&&a[u].push(s[u]);return a},{onCreateRule:[],onProcessRule:[],onProcessStyle:[],onProcessSheet:[],onChangeValue:[],onUpdate:[]}))},r}(),bi=function(){function r(){this.registry=[]}var e=r.prototype;return e.add=function(t){var i=this.registry,o=t.options.index;if(i.indexOf(t)===-1){if(i.length===0||o>=this.index){i.push(t);return}for(var a=0;a<i.length;a++)if(i[a].options.index>o){i.splice(a,0,t);return}}},e.reset=function(){this.registry=[]},e.remove=function(t){var i=this.registry.indexOf(t);this.registry.splice(i,1)},e.toString=function(t){for(var i=t===void 0?{}:t,o=i.attached,a=ue(i,["attached"]),s=q(a),u=s.linebreak,f="",c=0;c<this.registry.length;c++){var d=this.registry[c];o!=null&&d.attached!==o||(f&&(f+=u),f+=d.toString(a))}return f},Pe(r,[{key:"index",get:function(){return this.registry.length===0?0:this.registry[this.registry.length-1].options.index}}]),r}(),Q=new bi,ot=typeof globalThis<"u"?globalThis:typeof window<"u"&&window.Math===Math?window:typeof self<"u"&&self.Math===Math?self:Function("return this")(),at="2f1acc6c3a606b082e5eef5e54414ffb";ot[at]==null&&(ot[at]=0);var sr=ot[at]++,xi=1e10,st=function(e){e===void 0&&(e={});var n=0,t=function(o,a){n+=1,n>xi;var s="",u="";return a&&(a.options.classNamePrefix&&(u=a.options.classNamePrefix),a.options.jss.id!=null&&(s=String(a.options.jss.id))),e.minify?""+(u||"c")+sr+s+n:u+o.key+"-"+sr+(s?"-"+s:"")+"-"+n};return t},dr=function(e){var n;return function(){return n||(n=e()),n}},Si=function(e,n){try{return e.attributeStyleMap?e.attributeStyleMap.get(n):e.style.getPropertyValue(n)}catch{return""}},Pi=function(e,n,t){try{var i=t;if(Array.isArray(t)&&(i=D(t)),e.attributeStyleMap)e.attributeStyleMap.set(n,i);else{var o=i?i.indexOf("!important"):-1,a=o>-1?i.substr(0,o-1):i;e.style.setProperty(n,a,o>-1?"important":"")}}catch{return!1}return!0},wi=function(e,n){try{e.attributeStyleMap?e.attributeStyleMap.delete(n):e.style.removeProperty(n)}catch{}},Ri=function(e,n){return e.selectorText=n,e.selectorText===n},hr=dr(function(){return document.querySelector("head")});function ki(r,e){for(var n=0;n<r.length;n++){var t=r[n];if(t.attached&&t.options.index>e.index&&t.options.insertionPoint===e.insertionPoint)return t}return null}function Ci(r,e){for(var n=r.length-1;n>=0;n--){var t=r[n];if(t.attached&&t.options.insertionPoint===e.insertionPoint)return t}return null}function Ni(r){for(var e=hr(),n=0;n<e.childNodes.length;n++){var t=e.childNodes[n];if(t.nodeType===8&&t.nodeValue.trim()===r)return t}return null}function Oi(r){var e=Q.registry;if(e.length>0){var n=ki(e,r);if(n&&n.renderer)return{parent:n.renderer.element.parentNode,node:n.renderer.element};if(n=Ci(e,r),n&&n.renderer)return{parent:n.renderer.element.parentNode,node:n.renderer.element.nextSibling}}var t=r.insertionPoint;if(t&&typeof t=="string"){var i=Ni(t);if(i)return{parent:i.parentNode,node:i.nextSibling}}return!1}function Ti(r,e){var n=e.insertionPoint,t=Oi(e);if(t!==!1&&t.parent){t.parent.insertBefore(r,t.node);return}if(n&&typeof n.nodeType=="number"){var i=n,o=i.parentNode;o&&o.insertBefore(r,i.nextSibling);return}hr().appendChild(r)}var Ei=dr(function(){var r=document.querySelector('meta[property="csp-nonce"]');return r?r.getAttribute("content"):null}),lr=function(e,n,t){try{"insertRule"in e?e.insertRule(n,t):"appendRule"in e&&e.appendRule(n)}catch{return!1}return e.cssRules[t]},ur=function(e,n){var t=e.cssRules.length;return n===void 0||n>t?t:n},Ii=function(){var e=document.createElement("style");return e.textContent=`
5
- `,e},Ai=function(){function r(n){this.getPropertyValue=Si,this.setProperty=Pi,this.removeProperty=wi,this.setSelector=Ri,this.hasInsertedRules=!1,this.cssRules=[],n&&Q.add(n),this.sheet=n;var t=this.sheet?this.sheet.options:{},i=t.media,o=t.meta,a=t.element;this.element=a||Ii(),this.element.setAttribute("data-jss",""),i&&this.element.setAttribute("media",i),o&&this.element.setAttribute("data-meta",o);var s=Ei();s&&this.element.setAttribute("nonce",s)}var e=r.prototype;return e.attach=function(){if(!(this.element.parentNode||!this.sheet)){Ti(this.element,this.sheet.options);var t=!!(this.sheet&&this.sheet.deployed);this.hasInsertedRules&&t&&(this.hasInsertedRules=!1,this.deploy())}},e.detach=function(){if(this.sheet){var t=this.element.parentNode;t&&t.removeChild(this.element),this.sheet.options.link&&(this.cssRules=[],this.element.textContent=`
2
+ var Sn=Object.create;var Dt=Object.defineProperty;var Pn=Object.getOwnPropertyDescriptor;var wn=Object.getOwnPropertyNames;var Rn=Object.getPrototypeOf,kn=Object.prototype.hasOwnProperty;var fe=(r,e)=>()=>(e||r((e={exports:{}}).exports,e),e.exports);var Cn=(r,e,n,t)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of wn(e))!kn.call(r,i)&&i!==n&&Dt(r,i,{get:()=>e[i],enumerable:!(t=Pn(e,i))||t.enumerable});return r};var ze=(r,e,n)=>(n=r!=null?Sn(Rn(r)):{},Cn(e||!r||!r.__esModule?Dt(n,"default",{value:r,enumerable:!0}):n,r));var Bt=fe(g=>{"use strict";var C=typeof Symbol=="function"&&Symbol.for,Be=C?Symbol.for("react.element"):60103,$e=C?Symbol.for("react.portal"):60106,de=C?Symbol.for("react.fragment"):60107,he=C?Symbol.for("react.strict_mode"):60108,pe=C?Symbol.for("react.profiler"):60114,me=C?Symbol.for("react.provider"):60109,ve=C?Symbol.for("react.context"):60110,Ue=C?Symbol.for("react.async_mode"):60111,ge=C?Symbol.for("react.concurrent_mode"):60111,ye=C?Symbol.for("react.forward_ref"):60112,be=C?Symbol.for("react.suspense"):60113,On=C?Symbol.for("react.suspense_list"):60120,xe=C?Symbol.for("react.memo"):60115,Se=C?Symbol.for("react.lazy"):60116,Tn=C?Symbol.for("react.block"):60121,En=C?Symbol.for("react.fundamental"):60117,In=C?Symbol.for("react.responder"):60118,An=C?Symbol.for("react.scope"):60119;function I(r){if(typeof r=="object"&&r!==null){var e=r.$$typeof;switch(e){case Be:switch(r=r.type,r){case Ue:case ge:case de:case pe:case he:case be:return r;default:switch(r=r&&r.$$typeof,r){case ve:case ye:case Se:case xe:case me:return r;default:return e}}case $e:return e}}}function zt(r){return I(r)===ge}g.AsyncMode=Ue;g.ConcurrentMode=ge;g.ContextConsumer=ve;g.ContextProvider=me;g.Element=Be;g.ForwardRef=ye;g.Fragment=de;g.Lazy=Se;g.Memo=xe;g.Portal=$e;g.Profiler=pe;g.StrictMode=he;g.Suspense=be;g.isAsyncMode=function(r){return zt(r)||I(r)===Ue};g.isConcurrentMode=zt;g.isContextConsumer=function(r){return I(r)===ve};g.isContextProvider=function(r){return I(r)===me};g.isElement=function(r){return typeof r=="object"&&r!==null&&r.$$typeof===Be};g.isForwardRef=function(r){return I(r)===ye};g.isFragment=function(r){return I(r)===de};g.isLazy=function(r){return I(r)===Se};g.isMemo=function(r){return I(r)===xe};g.isPortal=function(r){return I(r)===$e};g.isProfiler=function(r){return I(r)===pe};g.isStrictMode=function(r){return I(r)===he};g.isSuspense=function(r){return I(r)===be};g.isValidElementType=function(r){return typeof r=="string"||typeof r=="function"||r===de||r===ge||r===pe||r===he||r===be||r===On||typeof r=="object"&&r!==null&&(r.$$typeof===Se||r.$$typeof===xe||r.$$typeof===me||r.$$typeof===ve||r.$$typeof===ye||r.$$typeof===En||r.$$typeof===In||r.$$typeof===An||r.$$typeof===Tn)};g.typeOf=I});var Ut=fe((as,$t)=>{"use strict";$t.exports=Bt()});var Je=fe((ss,Xt)=>{"use strict";var He=Ut(),_n={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},jn={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},Mn={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},qt={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Ge={};Ge[He.ForwardRef]=Mn;Ge[He.Memo]=qt;function Ht(r){return He.isMemo(r)?qt:Ge[r.$$typeof]||_n}var Fn=Object.defineProperty,Vn=Object.getOwnPropertyNames,Gt=Object.getOwnPropertySymbols,Ln=Object.getOwnPropertyDescriptor,Dn=Object.getPrototypeOf,Jt=Object.prototype;function Kt(r,e,n){if(typeof e!="string"){if(Jt){var t=Dn(e);t&&t!==Jt&&Kt(r,t,n)}var i=Vn(e);Gt&&(i=i.concat(Gt(e)));for(var o=Ht(r),a=Ht(e),s=0;s<i.length;++s){var u=i[s];if(!jn[u]&&!(n&&n[u])&&!(a&&a[u])&&!(o&&o[u])){var f=Ln(e,u);try{Fn(r,u,f)}catch{}}}}return r}Xt.exports=Kt});var Yt=fe(Ke=>{"use strict";Object.defineProperty(Ke,"__esModule",{value:!0});Ke.default=Bn;function Bn(r){return r.displayName||r.name||(typeof r=="string"&&r.length>0?r:"Unknown")}});function Wt(r){var e,n,t="";if(typeof r=="string"||typeof r=="number")t+=r;else if(typeof r=="object")if(Array.isArray(r)){var i=r.length;for(e=0;e<i;e++)r[e]&&(n=Wt(r[e]))&&(t&&(t+=" "),t+=n)}else for(n in r)r[n]&&(t&&(t+=" "),t+=n);return t}function Nn(){for(var r,e,n=0,t="",i=arguments.length;n<i;n++)(r=arguments[n])&&(e=Wt(r))&&(t&&(t+=" "),t+=e);return t}var x=Nn;import{useMemo as un}from"react";function b(){return b=Object.assign?Object.assign.bind():function(r){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var t in n)({}).hasOwnProperty.call(n,t)&&(r[t]=n[t])}return r},b.apply(null,arguments)}function ce(r,e){if(r==null)return{};var n={};for(var t in r)if({}.hasOwnProperty.call(r,t)){if(e.indexOf(t)!==-1)continue;n[t]=r[t]}return n}var na=ze(Je());import Zo,{createContext as Qo,useRef as ea,useContext as Xr,useMemo as Yr,useEffect as rn,useLayoutEffect as ta,useDebugValue as Zr,forwardRef as Xl,createElement as ra}from"react";import U,{createContext as $n}from"react";var Wn=!0;function zn(r,e){if(!Wn){if(r)return;var n="Warning: "+e;typeof console<"u"&&console.warn(n);try{throw Error(n)}catch{}}}var qe=zn;var Zt=ze(Je()),cs=ze(Yt());function Pe(r,e,n){return e in r?Object.defineProperty(r,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):r[e]=n,r}function we(){return we=Object.assign||function(r){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var t in n)Object.prototype.hasOwnProperty.call(n,t)&&(r[t]=n[t])}return r},we.apply(this,arguments)}function Un(r,e){r.prototype=Object.create(e.prototype),r.prototype.constructor=r,r.__proto__=e}function V(r){if(r===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return r}function Hn(r){var e=function(n){Un(t,n);function t(){for(var o,a=arguments.length,s=new Array(a),u=0;u<a;u++)s[u]=arguments[u];return o=n.call.apply(n,[this].concat(s))||this,Pe(V(V(o)),"cachedTheme",void 0),Pe(V(V(o)),"lastOuterTheme",void 0),Pe(V(V(o)),"lastTheme",void 0),Pe(V(V(o)),"renderProvider",function(f){var c=o.props.children;return U.createElement(r.Provider,{value:o.getTheme(f)},c)}),o}var i=t.prototype;return i.getTheme=function(a){if(this.props.theme!==this.lastTheme||a!==this.lastOuterTheme||!this.cachedTheme)if(this.lastOuterTheme=a,this.lastTheme=this.props.theme,typeof this.lastTheme=="function"){var s=this.props.theme;this.cachedTheme=s(a)}else{var u=this.props.theme;this.cachedTheme=a?we({},a,u):u}return this.cachedTheme},i.render=function(){var a=this.props.children;return a?U.createElement(r.Consumer,null,this.renderProvider):null},t}(U.Component);return e}function Gn(r){return function(n){var t=U.forwardRef(function(i,o){return U.createElement(r.Consumer,null,function(a){return U.createElement(n,we({theme:a,ref:o},i))})});return(0,Zt.default)(t,n),t}}function Jn(r){var e=function(){var t=U.useContext(r);return t};return e}function Qt(r){return{context:r,withTheme:Gn(r),useTheme:Jn(r),ThemeProvider:Hn(r)}}var Xe=$n(),Ye=Qt(Xe),qn=Ye.withTheme,Kn=Ye.ThemeProvider,Xn=Ye.useTheme;var er=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Yn=(typeof window>"u"?"undefined":er(window))==="object"&&(typeof document>"u"?"undefined":er(document))==="object"&&document.nodeType===9,M=Yn;function H(r){"@babel/helpers - typeof";return H=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},H(r)}function tr(r,e){if(H(r)!="object"||!r)return r;var n=r[Symbol.toPrimitive];if(n!==void 0){var t=n.call(r,e||"default");if(H(t)!="object")return t;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(r)}function rr(r){var e=tr(r,"string");return H(e)=="symbol"?e:e+""}function nr(r,e){for(var n=0;n<e.length;n++){var t=e[n];t.enumerable=t.enumerable||!1,t.configurable=!0,"value"in t&&(t.writable=!0),Object.defineProperty(r,rr(t.key),t)}}function Re(r,e,n){return e&&nr(r.prototype,e),n&&nr(r,n),Object.defineProperty(r,"prototype",{writable:!1}),r}function ke(r,e){return ke=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,t){return n.__proto__=t,n},ke(r,e)}function Ze(r,e){r.prototype=Object.create(e.prototype),r.prototype.constructor=r,ke(r,e)}function Qe(r){if(r===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return r}var Zn={}.constructor;function rt(r){if(r==null||typeof r!="object")return r;if(Array.isArray(r))return r.map(rt);if(r.constructor!==Zn)return r;var e={};for(var n in r)e[n]=rt(r[n]);return e}function K(r,e,n){r===void 0&&(r="unnamed");var t=n.jss,i=rt(e),o=t.plugins.onCreateRule(r,i,n);return o||(r[0],null)}var ir=function(e,n){for(var t="",i=0;i<e.length&&e[i]!=="!important";i++)t&&(t+=n),t+=e[i];return t},L=function(e){if(!Array.isArray(e))return e;var n="";if(Array.isArray(e[0]))for(var t=0;t<e.length&&e[t]!=="!important";t++)n&&(n+=", "),n+=ir(e[t]," ");else n=ir(e,", ");return e[e.length-1]==="!important"&&(n+=" !important"),n};function X(r){return r&&r.format===!1?{linebreak:"",space:""}:{linebreak:`
3
+ `,space:" "}}function ee(r,e){for(var n="",t=0;t<e;t++)n+=" ";return n+r}function re(r,e,n){n===void 0&&(n={});var t="";if(!e)return t;var i=n,o=i.indent,a=o===void 0?0:o,s=e.fallbacks;n.format===!1&&(a=-1/0);var u=X(n),f=u.linebreak,c=u.space;if(r&&a++,s)if(Array.isArray(s))for(var d=0;d<s.length;d++){var p=s[d];for(var m in p){var y=p[m];y!=null&&(t&&(t+=f),t+=ee(m+":"+c+L(y)+";",a))}}else for(var v in s){var w=s[v];w!=null&&(t&&(t+=f),t+=ee(v+":"+c+L(w)+";",a))}for(var k in e){var P=e[k];P!=null&&k!=="fallbacks"&&(t&&(t+=f),t+=ee(k+":"+c+L(P)+";",a))}return!t&&!n.allowEmpty||!r?t:(a--,t&&(t=""+f+t+f),ee(""+r+c+"{"+t,a)+ee("}",a))}var Qn=/([[\].#*$><+~=|^:(),"'`\s])/g,or=typeof CSS<"u"&&CSS.escape,ut=function(r){return or?or(r):r.replace(Qn,"\\$1")},dr=function(){function r(n,t,i){this.type="style",this.isProcessed=!1;var o=i.sheet,a=i.Renderer;this.key=n,this.options=i,this.style=t,o?this.renderer=o.renderer:a&&(this.renderer=new a)}var e=r.prototype;return e.prop=function(t,i,o){if(i===void 0)return this.style[t];var a=o?o.force:!1;if(!a&&this.style[t]===i)return this;var s=i;(!o||o.process!==!1)&&(s=this.options.jss.plugins.onChangeValue(i,t,this));var u=s==null||s===!1,f=t in this.style;if(u&&!f&&!a)return this;var c=u&&f;if(c?delete this.style[t]:this.style[t]=s,this.renderable&&this.renderer)return c?this.renderer.removeProperty(this.renderable,t):this.renderer.setProperty(this.renderable,t,s),this;var d=this.options.sheet;return d&&d.attached,this},r}(),nt=function(r){Ze(e,r);function e(t,i,o){var a;a=r.call(this,t,i,o)||this;var s=o.selector,u=o.scoped,f=o.sheet,c=o.generateId;return s?a.selectorText=s:u!==!1&&(a.id=c(Qe(Qe(a)),f),a.selectorText="."+ut(a.id)),a}var n=e.prototype;return n.applyTo=function(i){var o=this.renderer;if(o){var a=this.toJSON();for(var s in a)o.setProperty(i,s,a[s])}return this},n.toJSON=function(){var i={};for(var o in this.style){var a=this.style[o];typeof a!="object"?i[o]=a:Array.isArray(a)&&(i[o]=L(a))}return i},n.toString=function(i){var o=this.options.sheet,a=o?o.options.link:!1,s=a?b({},i,{allowEmpty:!0}):i;return re(this.selectorText,this.style,s)},Re(e,[{key:"selector",set:function(i){if(i!==this.selectorText){this.selectorText=i;var o=this.renderer,a=this.renderable;if(!(!a||!o)){var s=o.setSelector(a,i);s||o.replaceRule(a,this)}}},get:function(){return this.selectorText}}]),e}(dr),ei={onCreateRule:function(e,n,t){return e[0]==="@"||t.parent&&t.parent.type==="keyframes"?null:new nt(e,n,t)}},et={indent:1,children:!0},ti=/@([\w-]+)/,ri=function(){function r(n,t,i){this.type="conditional",this.isProcessed=!1,this.key=n;var o=n.match(ti);this.at=o?o[1]:"unknown",this.query=i.name||"@"+this.at,this.options=i,this.rules=new ne(b({},i,{parent:this}));for(var a in t)this.rules.add(a,t[a]);this.rules.process()}var e=r.prototype;return e.getRule=function(t){return this.rules.get(t)},e.indexOf=function(t){return this.rules.indexOf(t)},e.addRule=function(t,i,o){var a=this.rules.add(t,i,o);return a?(this.options.jss.plugins.onProcessRule(a),a):null},e.replaceRule=function(t,i,o){var a=this.rules.replace(t,i,o);return a&&this.options.jss.plugins.onProcessRule(a),a},e.toString=function(t){t===void 0&&(t=et);var i=X(t),o=i.linebreak;if(t.indent==null&&(t.indent=et.indent),t.children==null&&(t.children=et.children),t.children===!1)return this.query+" {}";var a=this.rules.toString(t);return a?this.query+" {"+o+a+o+"}":""},r}(),ni=/@container|@media|@supports\s+/,ii={onCreateRule:function(e,n,t){return ni.test(e)?new ri(e,n,t):null}},tt={indent:1,children:!0},oi=/@keyframes\s+([\w-]+)/,it=function(){function r(n,t,i){this.type="keyframes",this.at="@keyframes",this.isProcessed=!1;var o=n.match(oi);o&&o[1]?this.name=o[1]:this.name="noname",this.key=this.type+"-"+this.name,this.options=i;var a=i.scoped,s=i.sheet,u=i.generateId;this.id=a===!1?this.name:ut(u(this,s)),this.rules=new ne(b({},i,{parent:this}));for(var f in t)this.rules.add(f,t[f],b({},i,{parent:this}));this.rules.process()}var e=r.prototype;return e.toString=function(t){t===void 0&&(t=tt);var i=X(t),o=i.linebreak;if(t.indent==null&&(t.indent=tt.indent),t.children==null&&(t.children=tt.children),t.children===!1)return this.at+" "+this.id+" {}";var a=this.rules.toString(t);return a&&(a=""+o+a+o),this.at+" "+this.id+" {"+a+"}"},r}(),ai=/@keyframes\s+/,si=/\$([\w-]+)/g,ot=function(e,n){return typeof e=="string"?e.replace(si,function(t,i){return i in n?n[i]:t}):e},ar=function(e,n,t){var i=e[n],o=ot(i,t);o!==i&&(e[n]=o)},li={onCreateRule:function(e,n,t){return typeof e=="string"&&ai.test(e)?new it(e,n,t):null},onProcessStyle:function(e,n,t){return n.type!=="style"||!t||("animation-name"in e&&ar(e,"animation-name",t.keyframes),"animation"in e&&ar(e,"animation",t.keyframes)),e},onChangeValue:function(e,n,t){var i=t.options.sheet;if(!i)return e;switch(n){case"animation":return ot(e,i.keyframes);case"animation-name":return ot(e,i.keyframes);default:return e}}},ui=function(r){Ze(e,r);function e(){return r.apply(this,arguments)||this}var n=e.prototype;return n.toString=function(i){var o=this.options.sheet,a=o?o.options.link:!1,s=a?b({},i,{allowEmpty:!0}):i;return re(this.key,this.style,s)},e}(dr),fi={onCreateRule:function(e,n,t){return t.parent&&t.parent.type==="keyframes"?new ui(e,n,t):null}},ci=function(){function r(n,t,i){this.type="font-face",this.at="@font-face",this.isProcessed=!1,this.key=n,this.style=t,this.options=i}var e=r.prototype;return e.toString=function(t){var i=X(t),o=i.linebreak;if(Array.isArray(this.style)){for(var a="",s=0;s<this.style.length;s++)a+=re(this.at,this.style[s]),this.style[s+1]&&(a+=o);return a}return re(this.at,this.style,t)},r}(),di=/@font-face/,hi={onCreateRule:function(e,n,t){return di.test(e)?new ci(e,n,t):null}},pi=function(){function r(n,t,i){this.type="viewport",this.at="@viewport",this.isProcessed=!1,this.key=n,this.style=t,this.options=i}var e=r.prototype;return e.toString=function(t){return re(this.key,this.style,t)},r}(),mi={onCreateRule:function(e,n,t){return e==="@viewport"||e==="@-ms-viewport"?new pi(e,n,t):null}},vi=function(){function r(n,t,i){this.type="simple",this.isProcessed=!1,this.key=n,this.value=t,this.options=i}var e=r.prototype;return e.toString=function(t){if(Array.isArray(this.value)){for(var i="",o=0;o<this.value.length;o++)i+=this.key+" "+this.value[o]+";",this.value[o+1]&&(i+=`
4
+ `);return i}return this.key+" "+this.value+";"},r}(),gi={"@charset":!0,"@import":!0,"@namespace":!0},yi={onCreateRule:function(e,n,t){return e in gi?new vi(e,n,t):null}},sr=[ei,ii,li,fi,hi,mi,yi],bi={process:!0},lr={force:!0,process:!0},ne=function(){function r(n){this.map={},this.raw={},this.index=[],this.counter=0,this.options=n,this.classes=n.classes,this.keyframes=n.keyframes}var e=r.prototype;return e.add=function(t,i,o){var a=this.options,s=a.parent,u=a.sheet,f=a.jss,c=a.Renderer,d=a.generateId,p=a.scoped,m=b({classes:this.classes,parent:s,sheet:u,jss:f,Renderer:c,generateId:d,scoped:p,name:t,keyframes:this.keyframes,selector:void 0},o),y=t;t in this.raw&&(y=t+"-d"+this.counter++),this.raw[y]=i,y in this.classes&&(m.selector="."+ut(this.classes[y]));var v=K(y,i,m);if(!v)return null;this.register(v);var w=m.index===void 0?this.index.length:m.index;return this.index.splice(w,0,v),v},e.replace=function(t,i,o){var a=this.get(t),s=this.index.indexOf(a);a&&this.remove(a);var u=o;return s!==-1&&(u=b({},o,{index:s})),this.add(t,i,u)},e.get=function(t){return this.map[t]},e.remove=function(t){this.unregister(t),delete this.raw[t.key],this.index.splice(this.index.indexOf(t),1)},e.indexOf=function(t){return this.index.indexOf(t)},e.process=function(){var t=this.options.jss.plugins;this.index.slice(0).forEach(t.onProcessRule,t)},e.register=function(t){this.map[t.key]=t,t instanceof nt?(this.map[t.selector]=t,t.id&&(this.classes[t.key]=t.id)):t instanceof it&&this.keyframes&&(this.keyframes[t.name]=t.id)},e.unregister=function(t){delete this.map[t.key],t instanceof nt?(delete this.map[t.selector],delete this.classes[t.key]):t instanceof it&&delete this.keyframes[t.name]},e.update=function(){var t,i,o;if(typeof(arguments.length<=0?void 0:arguments[0])=="string"?(t=arguments.length<=0?void 0:arguments[0],i=arguments.length<=1?void 0:arguments[1],o=arguments.length<=2?void 0:arguments[2]):(i=arguments.length<=0?void 0:arguments[0],o=arguments.length<=1?void 0:arguments[1],t=null),t)this.updateOne(this.get(t),i,o);else for(var a=0;a<this.index.length;a++)this.updateOne(this.index[a],i,o)},e.updateOne=function(t,i,o){o===void 0&&(o=bi);var a=this.options,s=a.jss.plugins,u=a.sheet;if(t.rules instanceof r){t.rules.update(i,o);return}var f=t.style;if(s.onUpdate(i,t,u,o),o.process&&f&&f!==t.style){s.onProcessStyle(t.style,t,u);for(var c in t.style){var d=t.style[c],p=f[c];d!==p&&t.prop(c,d,lr)}for(var m in f){var y=t.style[m],v=f[m];y==null&&y!==v&&t.prop(m,null,lr)}}},e.toString=function(t){for(var i="",o=this.options.sheet,a=o?o.options.link:!1,s=X(t),u=s.linebreak,f=0;f<this.index.length;f++){var c=this.index[f],d=c.toString(t);!d&&!a||(i&&(i+=u),i+=d)}return i},r}(),hr=function(){function r(n,t){this.attached=!1,this.deployed=!1,this.classes={},this.keyframes={},this.options=b({},t,{sheet:this,parent:this,classes:this.classes,keyframes:this.keyframes}),t.Renderer&&(this.renderer=new t.Renderer(this)),this.rules=new ne(this.options);for(var i in n)this.rules.add(i,n[i]);this.rules.process()}var e=r.prototype;return e.attach=function(){return this.attached?this:(this.renderer&&this.renderer.attach(),this.attached=!0,this.deployed||this.deploy(),this)},e.detach=function(){return this.attached?(this.renderer&&this.renderer.detach(),this.attached=!1,this):this},e.addRule=function(t,i,o){var a=this.queue;this.attached&&!a&&(this.queue=[]);var s=this.rules.add(t,i,o);return s?(this.options.jss.plugins.onProcessRule(s),this.attached?(this.deployed&&(a?a.push(s):(this.insertRule(s),this.queue&&(this.queue.forEach(this.insertRule,this),this.queue=void 0))),s):(this.deployed=!1,s)):null},e.replaceRule=function(t,i,o){var a=this.rules.get(t);if(!a)return this.addRule(t,i,o);var s=this.rules.replace(t,i,o);return s&&this.options.jss.plugins.onProcessRule(s),this.attached?(this.deployed&&this.renderer&&(s?a.renderable&&this.renderer.replaceRule(a.renderable,s):this.renderer.deleteRule(a)),s):(this.deployed=!1,s)},e.insertRule=function(t){this.renderer&&this.renderer.insertRule(t)},e.addRules=function(t,i){var o=[];for(var a in t){var s=this.addRule(a,t[a],i);s&&o.push(s)}return o},e.getRule=function(t){return this.rules.get(t)},e.deleteRule=function(t){var i=typeof t=="object"?t:this.rules.get(t);return!i||this.attached&&!i.renderable?!1:(this.rules.remove(i),this.attached&&i.renderable&&this.renderer?this.renderer.deleteRule(i.renderable):!0)},e.indexOf=function(t){return this.rules.indexOf(t)},e.deploy=function(){return this.renderer&&this.renderer.deploy(),this.deployed=!0,this},e.update=function(){var t;return(t=this.rules).update.apply(t,arguments),this},e.updateOne=function(t,i,o){return this.rules.updateOne(t,i,o),this},e.toString=function(t){return this.rules.toString(t)},r}(),xi=function(){function r(){this.plugins={internal:[],external:[]},this.registry={}}var e=r.prototype;return e.onCreateRule=function(t,i,o){for(var a=0;a<this.registry.onCreateRule.length;a++){var s=this.registry.onCreateRule[a](t,i,o);if(s)return s}return null},e.onProcessRule=function(t){if(!t.isProcessed){for(var i=t.options.sheet,o=0;o<this.registry.onProcessRule.length;o++)this.registry.onProcessRule[o](t,i);t.style&&this.onProcessStyle(t.style,t,i),t.isProcessed=!0}},e.onProcessStyle=function(t,i,o){for(var a=0;a<this.registry.onProcessStyle.length;a++)i.style=this.registry.onProcessStyle[a](i.style,i,o)},e.onProcessSheet=function(t){for(var i=0;i<this.registry.onProcessSheet.length;i++)this.registry.onProcessSheet[i](t)},e.onUpdate=function(t,i,o,a){for(var s=0;s<this.registry.onUpdate.length;s++)this.registry.onUpdate[s](t,i,o,a)},e.onChangeValue=function(t,i,o){for(var a=t,s=0;s<this.registry.onChangeValue.length;s++)a=this.registry.onChangeValue[s](a,i,o);return a},e.use=function(t,i){i===void 0&&(i={queue:"external"});var o=this.plugins[i.queue];o.indexOf(t)===-1&&(o.push(t),this.registry=[].concat(this.plugins.external,this.plugins.internal).reduce(function(a,s){for(var u in s)u in a&&a[u].push(s[u]);return a},{onCreateRule:[],onProcessRule:[],onProcessStyle:[],onProcessSheet:[],onChangeValue:[],onUpdate:[]}))},r}(),Si=function(){function r(){this.registry=[]}var e=r.prototype;return e.add=function(t){var i=this.registry,o=t.options.index;if(i.indexOf(t)===-1){if(i.length===0||o>=this.index){i.push(t);return}for(var a=0;a<i.length;a++)if(i[a].options.index>o){i.splice(a,0,t);return}}},e.reset=function(){this.registry=[]},e.remove=function(t){var i=this.registry.indexOf(t);this.registry.splice(i,1)},e.toString=function(t){for(var i=t===void 0?{}:t,o=i.attached,a=ce(i,["attached"]),s=X(a),u=s.linebreak,f="",c=0;c<this.registry.length;c++){var d=this.registry[c];o!=null&&d.attached!==o||(f&&(f+=u),f+=d.toString(a))}return f},Re(r,[{key:"index",get:function(){return this.registry.length===0?0:this.registry[this.registry.length-1].options.index}}]),r}(),te=new Si,at=typeof globalThis<"u"?globalThis:typeof window<"u"&&window.Math===Math?window:typeof self<"u"&&self.Math===Math?self:Function("return this")(),st="2f1acc6c3a606b082e5eef5e54414ffb";at[st]==null&&(at[st]=0);var ur=at[st]++,Pi=1e10,lt=function(e){e===void 0&&(e={});var n=0,t=function(o,a){n+=1,n>Pi;var s="",u="";return a&&(a.options.classNamePrefix&&(u=a.options.classNamePrefix),a.options.jss.id!=null&&(s=String(a.options.jss.id))),e.minify?""+(u||"c")+ur+s+n:u+o.key+"-"+ur+(s?"-"+s:"")+"-"+n};return t},pr=function(e){var n;return function(){return n||(n=e()),n}},wi=function(e,n){try{return e.attributeStyleMap?e.attributeStyleMap.get(n):e.style.getPropertyValue(n)}catch{return""}},Ri=function(e,n,t){try{var i=t;if(Array.isArray(t)&&(i=L(t)),e.attributeStyleMap)e.attributeStyleMap.set(n,i);else{var o=i?i.indexOf("!important"):-1,a=o>-1?i.substr(0,o-1):i;e.style.setProperty(n,a,o>-1?"important":"")}}catch{return!1}return!0},ki=function(e,n){try{e.attributeStyleMap?e.attributeStyleMap.delete(n):e.style.removeProperty(n)}catch{}},Ci=function(e,n){return e.selectorText=n,e.selectorText===n},mr=pr(function(){return document.querySelector("head")});function Ni(r,e){for(var n=0;n<r.length;n++){var t=r[n];if(t.attached&&t.options.index>e.index&&t.options.insertionPoint===e.insertionPoint)return t}return null}function Oi(r,e){for(var n=r.length-1;n>=0;n--){var t=r[n];if(t.attached&&t.options.insertionPoint===e.insertionPoint)return t}return null}function Ti(r){for(var e=mr(),n=0;n<e.childNodes.length;n++){var t=e.childNodes[n];if(t.nodeType===8&&t.nodeValue.trim()===r)return t}return null}function Ei(r){var e=te.registry;if(e.length>0){var n=Ni(e,r);if(n&&n.renderer)return{parent:n.renderer.element.parentNode,node:n.renderer.element};if(n=Oi(e,r),n&&n.renderer)return{parent:n.renderer.element.parentNode,node:n.renderer.element.nextSibling}}var t=r.insertionPoint;if(t&&typeof t=="string"){var i=Ti(t);if(i)return{parent:i.parentNode,node:i.nextSibling}}return!1}function Ii(r,e){var n=e.insertionPoint,t=Ei(e);if(t!==!1&&t.parent){t.parent.insertBefore(r,t.node);return}if(n&&typeof n.nodeType=="number"){var i=n,o=i.parentNode;o&&o.insertBefore(r,i.nextSibling);return}mr().appendChild(r)}var Ai=pr(function(){var r=document.querySelector('meta[property="csp-nonce"]');return r?r.getAttribute("content"):null}),fr=function(e,n,t){try{"insertRule"in e?e.insertRule(n,t):"appendRule"in e&&e.appendRule(n)}catch{return!1}return e.cssRules[t]},cr=function(e,n){var t=e.cssRules.length;return n===void 0||n>t?t:n},_i=function(){var e=document.createElement("style");return e.textContent=`
5
+ `,e},ji=function(){function r(n){this.getPropertyValue=wi,this.setProperty=Ri,this.removeProperty=ki,this.setSelector=Ci,this.hasInsertedRules=!1,this.cssRules=[],n&&te.add(n),this.sheet=n;var t=this.sheet?this.sheet.options:{},i=t.media,o=t.meta,a=t.element;this.element=a||_i(),this.element.setAttribute("data-jss",""),i&&this.element.setAttribute("media",i),o&&this.element.setAttribute("data-meta",o);var s=Ai();s&&this.element.setAttribute("nonce",s)}var e=r.prototype;return e.attach=function(){if(!(this.element.parentNode||!this.sheet)){Ii(this.element,this.sheet.options);var t=!!(this.sheet&&this.sheet.deployed);this.hasInsertedRules&&t&&(this.hasInsertedRules=!1,this.deploy())}},e.detach=function(){if(this.sheet){var t=this.element.parentNode;t&&t.removeChild(this.element),this.sheet.options.link&&(this.cssRules=[],this.element.textContent=`
6
6
  `)}},e.deploy=function(){var t=this.sheet;if(t){if(t.options.link){this.insertRules(t.rules);return}this.element.textContent=`
7
7
  `+t.toString()+`
8
- `}},e.insertRules=function(t,i){for(var o=0;o<t.index.length;o++)this.insertRule(t.index[o],o,i)},e.insertRule=function(t,i,o){if(o===void 0&&(o=this.element.sheet),t.rules){var a=t,s=o;if(t.type==="conditional"||t.type==="keyframes"){var u=ur(o,i);if(s=lr(o,a.toString({children:!1}),u),s===!1)return!1;this.refCssRule(t,u,s)}return this.insertRules(a.rules,s),s}var f=t.toString();if(!f)return!1;var c=ur(o,i),d=lr(o,f,c);return d===!1?!1:(this.hasInsertedRules=!0,this.refCssRule(t,c,d),d)},e.refCssRule=function(t,i,o){t.renderable=o,t.options.parent instanceof cr&&this.cssRules.splice(i,0,o)},e.deleteRule=function(t){var i=this.element.sheet,o=this.indexOf(t);return o===-1?!1:(i.deleteRule(o),this.cssRules.splice(o,1),!0)},e.indexOf=function(t){return this.cssRules.indexOf(t)},e.replaceRule=function(t,i){var o=this.indexOf(t);return o===-1?!1:(this.element.sheet.deleteRule(o),this.cssRules.splice(o,1),this.insertRule(i,o))},e.getRules=function(){return this.element.sheet.cssRules},r}(),_i=0,ji=function(){function r(n){this.id=_i++,this.version="10.10.0",this.plugins=new yi,this.options={id:{minify:!1},createGenerateId:st,Renderer:M?Ai:null,plugins:[]},this.generateId=st({minify:!1});for(var t=0;t<or.length;t++)this.plugins.use(or[t],{queue:"internal"});this.setup(n)}var e=r.prototype;return e.setup=function(t){return t===void 0&&(t={}),t.createGenerateId&&(this.options.createGenerateId=t.createGenerateId),t.id&&(this.options.id=b({},this.options.id,t.id)),(t.createGenerateId||t.id)&&(this.generateId=this.options.createGenerateId(this.options.id)),t.insertionPoint!=null&&(this.options.insertionPoint=t.insertionPoint),"Renderer"in t&&(this.options.Renderer=t.Renderer),t.plugins&&this.use.apply(this,t.plugins),this},e.createStyleSheet=function(t,i){i===void 0&&(i={});var o=i,a=o.index;typeof a!="number"&&(a=Q.index===0?0:Q.index+1);var s=new cr(t,b({},i,{jss:this,generateId:i.generateId||this.generateId,insertionPoint:this.options.insertionPoint,Renderer:this.options.Renderer,index:a}));return this.plugins.onProcessSheet(s),s},e.removeStyleSheet=function(t){return t.detach(),Q.remove(t),this},e.createRule=function(t,i,o){if(i===void 0&&(i={}),o===void 0&&(o={}),typeof t=="object")return this.createRule(void 0,t,i);var a=b({},o,{name:t,jss:this,Renderer:this.options.Renderer});a.generateId||(a.generateId=this.generateId),a.classes||(a.classes={}),a.keyframes||(a.keyframes={});var s=J(t,i,a);return s&&this.plugins.onProcessRule(s),s},e.use=function(){for(var t=this,i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return o.forEach(function(s){t.plugins.use(s)}),this},r}(),re=function(e){return new ji(e)},ut=function(){function r(){this.length=0,this.sheets=new WeakMap}var e=r.prototype;return e.get=function(t){var i=this.sheets.get(t);return i&&i.sheet},e.add=function(t,i){this.sheets.has(t)||(this.length++,this.sheets.set(t,{sheet:i,refs:0}))},e.manage=function(t){var i=this.sheets.get(t);if(i)return i.refs===0&&i.sheet.attach(),i.refs++,i.sheet;Je(!1,"[JSS] SheetsManager: can't find sheet to manage")},e.unmanage=function(t){var i=this.sheets.get(t);i?i.refs>0&&(i.refs--,i.refs===0&&i.sheet.detach()):Je(!1,"SheetsManager: can't find sheet to unmanage")},Pe(r,[{key:"size",get:function(){return this.length}}]),r}(),Re=typeof CSS=="object"&&CSS!=null&&"number"in CSS;function ft(r){var e=null;for(var n in r){var t=r[n],i=typeof t;if(i==="function")e||(e={}),e[n]=t;else if(i==="object"&&t!==null&&!Array.isArray(t)){var o=ft(t);o&&(e||(e={}),e[n]=o)}}return e}var Es=re();var pr=Date.now(),ct="fnValues"+pr,dt="fnStyle"+ ++pr,Mi=function(){return{onCreateRule:function(n,t,i){if(typeof t!="function")return null;var o=J(n,{},i);return o[dt]=t,o},onProcessStyle:function(n,t){if(ct in t||dt in t)return n;var i={};for(var o in n){var a=n[o];typeof a=="function"&&(delete n[o],i[o]=a)}return t[ct]=i,n},onUpdate:function(n,t,i,o){var a=t,s=a[dt];if(s&&(a.style=s(n)||{},0))for(var u in a.style);var f=a[ct];if(f)for(var c in f)a.prop(c,f[c](n),o)}}},mr=Mi;function ht(r){var e,n=r.Symbol;return typeof n=="function"?n.observable?e=n.observable:(e=n("observable"),n.observable=e):e="@@observable",e}var K;typeof self<"u"?K=self:typeof window<"u"?K=window:typeof global<"u"?K=global:typeof module<"u"?K=module:K=Function("return this")();var Vi=ht(K),pt=Vi;var vr=function(e){return e&&e[pt]&&e===e[pt]()},Fi=function(e){return{onCreateRule:function(t,i,o){if(!vr(i))return null;var a=i,s=J(t,{},o);return a.subscribe(function(u){for(var f in u)s.prop(f,u[f],e)}),s},onProcessRule:function(t){if(!(t&&t.type!=="style")){var i=t,o=i.style,a=function(c){var d=o[c];if(!vr(d))return"continue";delete o[c],d.subscribe({next:function(m){i.prop(c,m,e)}})};for(var s in o)var u=a(s)}}}},gr=Fi;var Di=/;\n/,Li=function(e){for(var n={},t=e.split(Di),i=0;i<t.length;i++){var o=(t[i]||"").trim();if(o){var a=o.indexOf(":");if(a!==-1){var s=o.substr(0,a).trim(),u=o.substr(a+1).trim();n[s]=u}}}return n},Wi=function(e){typeof e.style=="string"&&(e.style=Li(e.style))};function zi(){return{onProcessRule:Wi}}var yr=zi;var L="@global",mt="@global ",Bi=function(){function r(n,t,i){this.type="global",this.at=L,this.isProcessed=!1,this.key=n,this.options=i,this.rules=new te(b({},i,{parent:this}));for(var o in t)this.rules.add(o,t[o]);this.rules.process()}var e=r.prototype;return e.getRule=function(t){return this.rules.get(t)},e.addRule=function(t,i,o){var a=this.rules.add(t,i,o);return a&&this.options.jss.plugins.onProcessRule(a),a},e.replaceRule=function(t,i,o){var a=this.rules.replace(t,i,o);return a&&this.options.jss.plugins.onProcessRule(a),a},e.indexOf=function(t){return this.rules.indexOf(t)},e.toString=function(t){return this.rules.toString(t)},r}(),$i=function(){function r(n,t,i){this.type="global",this.at=L,this.isProcessed=!1,this.key=n,this.options=i;var o=n.substr(mt.length);this.rule=i.jss.createRule(o,t,b({},i,{parent:this}))}var e=r.prototype;return e.toString=function(t){return this.rule?this.rule.toString(t):""},r}(),Ui=/\s*,\s*/g;function br(r,e){for(var n=r.split(Ui),t="",i=0;i<n.length;i++)t+=e+" "+n[i].trim(),n[i+1]&&(t+=", ");return t}function Hi(r,e){var n=r.options,t=r.style,i=t?t[L]:null;if(i){for(var o in i)e.addRule(o,i[o],b({},n,{selector:br(o,r.selector)}));delete t[L]}}function Gi(r,e){var n=r.options,t=r.style;for(var i in t)if(!(i[0]!=="@"||i.substr(0,L.length)!==L)){var o=br(i.substr(L.length),r.selector);e.addRule(o,t[i],b({},n,{selector:o})),delete t[i]}}function Ji(){function r(n,t,i){if(!n)return null;if(n===L)return new Bi(n,t,i);if(n[0]==="@"&&n.substr(0,mt.length)===mt)return new $i(n,t,i);var o=i.parent;return o&&(o.type==="global"||o.options.parent&&o.options.parent.type==="global")&&(i.scoped=!1),!i.selector&&i.scoped===!1&&(i.selector=n),null}function e(n,t){n.type!=="style"||!t||(Hi(n,t),Gi(n,t))}return{onCreateRule:r,onProcessRule:e}}var xr=Ji;var ke=function(e){return e&&typeof e=="object"&&!Array.isArray(e)},vt="extendCurrValue"+Date.now();function qi(r,e,n,t){var i=typeof r.extend;if(i==="string"){if(!n)return;var o=n.getRule(r.extend);if(!o||o===e)return;var a=o.options.parent;if(a){var s=a.rules.raw[r.extend];H(s,e,n,t)}return}if(Array.isArray(r.extend)){for(var u=0;u<r.extend.length;u++){var f=r.extend[u],c=typeof f=="string"?b({},r,{extend:f}):r.extend[u];H(c,e,n,t)}return}for(var d in r.extend){if(d==="extend"){H(r.extend.extend,e,n,t);continue}if(ke(r.extend[d])){d in t||(t[d]={}),H(r.extend[d],e,n,t[d]);continue}t[d]=r.extend[d]}}function Ki(r,e,n,t){for(var i in r)if(i!=="extend"){if(ke(t[i])&&ke(r[i])){H(r[i],e,n,t[i]);continue}if(ke(r[i])){t[i]=H(r[i],e,n);continue}t[i]=r[i]}}function H(r,e,n,t){return t===void 0&&(t={}),qi(r,e,n,t),Ki(r,e,n,t),t}function Xi(){function r(n,t,i){return"extend"in n?H(n,t,i):n}function e(n,t,i){if(t!=="extend")return n;if(n==null||n===!1){for(var o in i[vt])i.prop(o,null);return i[vt]=null,null}if(typeof n=="object"){for(var a in n)i.prop(a,n[a]);i[vt]=n}return null}return{onProcessStyle:r,onChangeValue:e}}var Sr=Xi;var Pr=/\s*,\s*/g,Yi=/&/g,Zi=/\$([\w-]+)/g;function Qi(){function r(i,o){return function(a,s){var u=i.getRule(s)||o&&o.getRule(s);return u?u.selector:s}}function e(i,o){for(var a=o.split(Pr),s=i.split(Pr),u="",f=0;f<a.length;f++)for(var c=a[f],d=0;d<s.length;d++){var p=s[d];u&&(u+=", "),u+=p.indexOf("&")!==-1?p.replace(Yi,c):c+" "+p}return u}function n(i,o,a){if(a)return b({},a,{index:a.index+1});var s=i.options.nestingLevel;s=s===void 0?1:s+1;var u=b({},i.options,{nestingLevel:s,index:o.indexOf(i)+1});return delete u.name,u}function t(i,o,a){if(o.type!=="style")return i;var s=o,u=s.options.parent,f,c;for(var d in i){var p=d.indexOf("&")!==-1,m=d[0]==="@";if(!(!p&&!m)){if(f=n(s,u,f),p){var y=e(d,s.selector);c||(c=r(u,a)),y=y.replace(Zi,c);var v=s.key+"-"+d;"replaceRule"in u?u.replaceRule(v,i[d],b({},f,{selector:y})):u.addRule(v,i[d],b({},f,{selector:y}))}else m&&u.addRule(d,{},f).addRule(s.key,i[d],{selector:s.selector});delete i[d]}}return i}return{onProcessStyle:t}}var wr=Qi;function gt(r,e){if(!e)return!0;if(Array.isArray(e)){for(var n=0;n<e.length;n++){var t=gt(r,e[n]);if(!t)return!1}return!0}if(e.indexOf(" ")>-1)return gt(r,e.split(" "));var i=r.options.parent;if(e[0]==="$"){var o=i.getRule(e.substr(1));return!o||o===r?!1:(i.classes[r.key]+=" "+i.classes[o.key],!0)}return i.classes[r.key]+=" "+e,!0}function eo(){function r(e,n){return"composes"in e&&(gt(n,e.composes),delete e.composes),e}return{onProcessStyle:r}}var Rr=eo;var to=/[A-Z]/g,ro=/^ms-/,yt={};function no(r){return"-"+r.toLowerCase()}function io(r){if(yt.hasOwnProperty(r))return yt[r];var e=r.replace(to,no);return yt[r]=ro.test(e)?"-"+e:e}var bt=io;function Ce(r){var e={};for(var n in r){var t=n.indexOf("--")===0?n:bt(n);e[t]=r[n]}return r.fallbacks&&(Array.isArray(r.fallbacks)?e.fallbacks=r.fallbacks.map(Ce):e.fallbacks=Ce(r.fallbacks)),e}function oo(){function r(n){if(Array.isArray(n)){for(var t=0;t<n.length;t++)n[t]=Ce(n[t]);return n}return Ce(n)}function e(n,t,i){if(t.indexOf("--")===0)return n;var o=bt(t);return t===o?n:(i.prop(o,n),null)}return{onProcessStyle:r,onChangeValue:e}}var kr=oo;var l=Re&&CSS?CSS.px:"px",Ne=Re&&CSS?CSS.ms:"ms",X=Re&&CSS?CSS.percent:"%",ao={"animation-delay":Ne,"animation-duration":Ne,"background-position":l,"background-position-x":l,"background-position-y":l,"background-size":l,border:l,"border-bottom":l,"border-bottom-left-radius":l,"border-bottom-right-radius":l,"border-bottom-width":l,"border-left":l,"border-left-width":l,"border-radius":l,"border-right":l,"border-right-width":l,"border-top":l,"border-top-left-radius":l,"border-top-right-radius":l,"border-top-width":l,"border-width":l,"border-block":l,"border-block-end":l,"border-block-end-width":l,"border-block-start":l,"border-block-start-width":l,"border-block-width":l,"border-inline":l,"border-inline-end":l,"border-inline-end-width":l,"border-inline-start":l,"border-inline-start-width":l,"border-inline-width":l,"border-start-start-radius":l,"border-start-end-radius":l,"border-end-start-radius":l,"border-end-end-radius":l,margin:l,"margin-bottom":l,"margin-left":l,"margin-right":l,"margin-top":l,"margin-block":l,"margin-block-end":l,"margin-block-start":l,"margin-inline":l,"margin-inline-end":l,"margin-inline-start":l,padding:l,"padding-bottom":l,"padding-left":l,"padding-right":l,"padding-top":l,"padding-block":l,"padding-block-end":l,"padding-block-start":l,"padding-inline":l,"padding-inline-end":l,"padding-inline-start":l,"mask-position-x":l,"mask-position-y":l,"mask-size":l,height:l,width:l,"min-height":l,"max-height":l,"min-width":l,"max-width":l,bottom:l,left:l,top:l,right:l,inset:l,"inset-block":l,"inset-block-end":l,"inset-block-start":l,"inset-inline":l,"inset-inline-end":l,"inset-inline-start":l,"box-shadow":l,"text-shadow":l,"column-gap":l,"column-rule":l,"column-rule-width":l,"column-width":l,"font-size":l,"font-size-delta":l,"letter-spacing":l,"text-decoration-thickness":l,"text-indent":l,"text-stroke":l,"text-stroke-width":l,"word-spacing":l,motion:l,"motion-offset":l,outline:l,"outline-offset":l,"outline-width":l,perspective:l,"perspective-origin-x":X,"perspective-origin-y":X,"transform-origin":X,"transform-origin-x":X,"transform-origin-y":X,"transform-origin-z":X,"transition-delay":Ne,"transition-duration":Ne,"vertical-align":l,"flex-basis":l,"shape-margin":l,size:l,gap:l,grid:l,"grid-gap":l,"row-gap":l,"grid-row-gap":l,"grid-column-gap":l,"grid-template-rows":l,"grid-template-columns":l,"grid-auto-rows":l,"grid-auto-columns":l,"box-shadow-x":l,"box-shadow-y":l,"box-shadow-blur":l,"box-shadow-spread":l,"font-line-height":l,"text-shadow-x":l,"text-shadow-y":l,"text-shadow-blur":l};function Cr(r){var e=/(-[a-z])/g,n=function(a){return a[1].toUpperCase()},t={};for(var i in r)t[i]=r[i],t[i.replace(e,n)]=r[i];return t}var so=Cr(ao);function ne(r,e,n){if(e==null)return e;if(Array.isArray(e))for(var t=0;t<e.length;t++)e[t]=ne(r,e[t],n);else if(typeof e=="object")if(r==="fallbacks")for(var i in e)e[i]=ne(i,e[i],n);else for(var o in e)e[o]=ne(r+"-"+o,e[o],n);else if(typeof e=="number"&&isNaN(e)===!1){var a=n[r]||so[r];return a&&!(e===0&&a===l)?typeof a=="function"?a(e).toString():""+e+a:e.toString()}return e}function lo(r){r===void 0&&(r={});var e=Cr(r);function n(i,o){if(o.type!=="style")return i;for(var a in i)i[a]=ne(a,i[a],e);return i}function t(i,o){return ne(o,i,e)}return{onProcessStyle:n,onChangeValue:t}}var Nr=lo;var uo={"background-size":!0,"background-position":!0,border:!0,"border-bottom":!0,"border-left":!0,"border-top":!0,"border-right":!0,"border-radius":!0,"border-image":!0,"border-width":!0,"border-style":!0,"border-color":!0,"box-shadow":!0,flex:!0,margin:!0,padding:!0,outline:!0,"transform-origin":!0,transform:!0,transition:!0},fo={position:!0,size:!0},Oe={padding:{top:0,right:0,bottom:0,left:0},margin:{top:0,right:0,bottom:0,left:0},background:{attachment:null,color:null,image:null,position:null,repeat:null},border:{width:null,style:null,color:null},"border-top":{width:null,style:null,color:null},"border-right":{width:null,style:null,color:null},"border-bottom":{width:null,style:null,color:null},"border-left":{width:null,style:null,color:null},outline:{width:null,style:null,color:null},"list-style":{type:null,position:null,image:null},transition:{property:null,duration:null,"timing-function":null,timingFunction:null,delay:null},animation:{name:null,duration:null,"timing-function":null,timingFunction:null,delay:null,"iteration-count":null,iterationCount:null,direction:null,"fill-mode":null,fillMode:null,"play-state":null,playState:null},"box-shadow":{x:0,y:0,blur:0,spread:0,color:null,inset:null},"text-shadow":{x:0,y:0,blur:null,color:null}},xt={border:{radius:"border-radius",image:"border-image",width:"border-width",style:"border-style",color:"border-color"},"border-bottom":{width:"border-bottom-width",style:"border-bottom-style",color:"border-bottom-color"},"border-top":{width:"border-top-width",style:"border-top-style",color:"border-top-color"},"border-left":{width:"border-left-width",style:"border-left-style",color:"border-left-color"},"border-right":{width:"border-right-width",style:"border-right-style",color:"border-right-color"},background:{size:"background-size",image:"background-image"},font:{style:"font-style",variant:"font-variant",weight:"font-weight",stretch:"font-stretch",size:"font-size",family:"font-family",lineHeight:"line-height","line-height":"line-height"},flex:{grow:"flex-grow",basis:"flex-basis",direction:"flex-direction",wrap:"flex-wrap",flow:"flex-flow",shrink:"flex-shrink"},align:{self:"align-self",items:"align-items",content:"align-content"},grid:{"template-columns":"grid-template-columns",templateColumns:"grid-template-columns","template-rows":"grid-template-rows",templateRows:"grid-template-rows","template-areas":"grid-template-areas",templateAreas:"grid-template-areas",template:"grid-template","auto-columns":"grid-auto-columns",autoColumns:"grid-auto-columns","auto-rows":"grid-auto-rows",autoRows:"grid-auto-rows","auto-flow":"grid-auto-flow",autoFlow:"grid-auto-flow",row:"grid-row",column:"grid-column","row-start":"grid-row-start",rowStart:"grid-row-start","row-end":"grid-row-end",rowEnd:"grid-row-end","column-start":"grid-column-start",columnStart:"grid-column-start","column-end":"grid-column-end",columnEnd:"grid-column-end",area:"grid-area",gap:"grid-gap","row-gap":"grid-row-gap",rowGap:"grid-row-gap","column-gap":"grid-column-gap",columnGap:"grid-column-gap"}};function co(r,e,n){return r.map(function(t){return Tr(t,e,n,!1,!0)})}function Or(r,e,n,t){return n[e]==null?r:r.length===0?[]:Array.isArray(r[0])?Or(r[0],e,n,t):typeof r[0]=="object"?co(r,e,t):[r]}function Tr(r,e,n,t,i){if(!(Oe[e]||xt[e]))return[];var o=[];if(xt[e]&&(r=ho(r,n,xt[e],t)),Object.keys(r).length)for(var a in Oe[e]){if(r[a]){Array.isArray(r[a])?o.push(fo[a]===null?r[a]:r[a].join(" ")):o.push(r[a]);continue}Oe[e][a]!=null&&o.push(Oe[e][a])}return!o.length||i?o:[o]}function ho(r,e,n,t){for(var i in n){var o=n[i];if(typeof r[i]<"u"&&(t||!e.prop(o))){var a,s=ie((a={},a[o]=r[i],a),e)[o];t?e.style.fallbacks[o]=s:e.style[o]=s}delete r[i]}return r}function ie(r,e,n){for(var t in r){var i=r[t];if(Array.isArray(i)){if(!Array.isArray(i[0])){if(t==="fallbacks"){for(var o=0;o<r.fallbacks.length;o++)r.fallbacks[o]=ie(r.fallbacks[o],e,!0);continue}r[t]=Or(i,t,uo,e),r[t].length||delete r[t]}}else if(typeof i=="object"){if(t==="fallbacks"){r.fallbacks=ie(r.fallbacks,e,!0);continue}r[t]=Tr(i,t,e,n),r[t].length||delete r[t]}else r[t]===""&&delete r[t]}return r}function po(){function r(e,n){if(!e||n.type!=="style")return e;if(Array.isArray(e)){for(var t=0;t<e.length;t++)e[t]=ie(e[t],n);return e}return ie(e,n)}return{onProcessStyle:r}}var Er=po;function oe(r,e){(e==null||e>r.length)&&(e=r.length);for(var n=0,t=Array(e);n<e;n++)t[n]=r[n];return t}function Ir(r){if(Array.isArray(r))return oe(r)}function Ar(r){if(typeof Symbol<"u"&&r[Symbol.iterator]!=null||r["@@iterator"]!=null)return Array.from(r)}function _r(r,e){if(r){if(typeof r=="string")return oe(r,e);var n={}.toString.call(r).slice(8,-1);return n==="Object"&&r.constructor&&(n=r.constructor.name),n==="Map"||n==="Set"?Array.from(r):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?oe(r,e):void 0}}function jr(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
9
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Mr(r){return Ir(r)||Ar(r)||_r(r)||jr()}var ae="",St="",Lr="",Wr="",mo=M&&"ontouchstart"in document.documentElement;if(M){Te={Moz:"-moz-",ms:"-ms-",O:"-o-",Webkit:"-webkit-"},Vr=document.createElement("p"),Ee=Vr.style,Fr="Transform";for(Ie in Te)if(Ie+Fr in Ee){ae=Ie,St=Te[Ie];break}ae==="Webkit"&&"msHyphens"in Ee&&(ae="ms",St=Te.ms,Wr="edge"),ae==="Webkit"&&"-apple-trailing-word"in Ee&&(Lr="apple")}var Te,Vr,Ee,Fr,Ie,h={js:ae,css:St,vendor:Lr,browser:Wr,isTouch:mo};function zr(r){return r[1]==="-"||h.js==="ms"?r:"@"+h.css+"keyframes"+r.substr(10)}var vo={noPrefill:["appearance"],supportedProperty:function(e){return e!=="appearance"?!1:h.js==="ms"?"-webkit-"+e:h.css+e}},go={noPrefill:["color-adjust"],supportedProperty:function(e){return e!=="color-adjust"?!1:h.js==="Webkit"?h.css+"print-"+e:e}},yo=/[-\s]+(.)?/g;function bo(r,e){return e?e.toUpperCase():""}function Pt(r){return r.replace(yo,bo)}function z(r){return Pt("-"+r)}var xo={noPrefill:["mask"],supportedProperty:function(e,n){if(!/^mask/.test(e))return!1;if(h.js==="Webkit"){var t="mask-image";if(Pt(t)in n)return e;if(h.js+z(t)in n)return h.css+e}return e}},So={noPrefill:["text-orientation"],supportedProperty:function(e){return e!=="text-orientation"?!1:h.vendor==="apple"&&!h.isTouch?h.css+e:e}},Po={noPrefill:["transform"],supportedProperty:function(e,n,t){return e!=="transform"?!1:t.transform?e:h.css+e}},wo={noPrefill:["transition"],supportedProperty:function(e,n,t){return e!=="transition"?!1:t.transition?e:h.css+e}},Ro={noPrefill:["writing-mode"],supportedProperty:function(e){return e!=="writing-mode"?!1:h.js==="Webkit"||h.js==="ms"&&h.browser!=="edge"?h.css+e:e}},ko={noPrefill:["user-select"],supportedProperty:function(e){return e!=="user-select"?!1:h.js==="Moz"||h.js==="ms"||h.vendor==="apple"?h.css+e:e}},Co={supportedProperty:function(e,n){if(!/^break-/.test(e))return!1;if(h.js==="Webkit"){var t="WebkitColumn"+z(e);return t in n?h.css+"column-"+e:!1}if(h.js==="Moz"){var i="page"+z(e);return i in n?"page-"+e:!1}return!1}},No={supportedProperty:function(e,n){if(!/^(border|margin|padding)-inline/.test(e))return!1;if(h.js==="Moz")return e;var t=e.replace("-inline","");return h.js+z(t)in n?h.css+t:!1}},Oo={supportedProperty:function(e,n){return Pt(e)in n?e:!1}},To={supportedProperty:function(e,n){var t=z(e);return e[0]==="-"||e[0]==="-"&&e[1]==="-"?e:h.js+t in n?h.css+e:h.js!=="Webkit"&&"Webkit"+t in n?"-webkit-"+e:!1}},Eo={supportedProperty:function(e){return e.substring(0,11)!=="scroll-snap"?!1:h.js==="ms"?""+h.css+e:e}},Io={supportedProperty:function(e){return e!=="overscroll-behavior"?!1:h.js==="ms"?h.css+"scroll-chaining":e}},Ao={"flex-grow":"flex-positive","flex-shrink":"flex-negative","flex-basis":"flex-preferred-size","justify-content":"flex-pack",order:"flex-order","align-items":"flex-align","align-content":"flex-line-pack"},_o={supportedProperty:function(e,n){var t=Ao[e];return t&&h.js+z(t)in n?h.css+t:!1}},Br={flex:"box-flex","flex-grow":"box-flex","flex-direction":["box-orient","box-direction"],order:"box-ordinal-group","align-items":"box-align","flex-flow":["box-orient","box-direction"],"justify-content":"box-pack"},jo=Object.keys(Br),Mo=function(e){return h.css+e},Vo={supportedProperty:function(e,n,t){var i=t.multiple;if(jo.indexOf(e)>-1){var o=Br[e];if(!Array.isArray(o))return h.js+z(o)in n?h.css+o:!1;if(!i)return!1;for(var a=0;a<o.length;a++)if(!(h.js+z(o[0])in n))return!1;return o.map(Mo)}return!1}},$r=[vo,go,xo,So,Po,wo,Ro,ko,Co,No,Oo,To,Eo,Io,_o,Vo],Dr=$r.filter(function(r){return r.supportedProperty}).map(function(r){return r.supportedProperty}),Fo=$r.filter(function(r){return r.noPrefill}).reduce(function(r,e){return r.push.apply(r,Mr(e.noPrefill)),r},[]),se,G={};if(M){se=document.createElement("p"),Ae=window.getComputedStyle(document.documentElement,"");for(_e in Ae)isNaN(_e)||(G[Ae[_e]]=Ae[_e]);Fo.forEach(function(r){return delete G[r]})}var Ae,_e;function je(r,e){if(e===void 0&&(e={}),!se)return r;if(G[r]!=null)return G[r];(r==="transition"||r==="transform")&&(e[r]=r in se.style);for(var n=0;n<Dr.length&&(G[r]=Dr[n](r,se.style,e),!G[r]);n++);try{se.style[r]=""}catch{return!1}return G[r]}var Y={},Do={transition:1,"transition-property":1,"-webkit-transition":1,"-webkit-transition-property":1},Lo=/(^\s*[\w-]+)|, (\s*[\w-]+)(?![^()]*\))/g,W;function Wo(r,e,n){if(e==="var")return"var";if(e==="all")return"all";if(n==="all")return", all";var t=e?je(e):", "+je(n);return t||e||n}M&&(W=document.createElement("p"));function wt(r,e){var n=e;if(!W||r==="content")return e;if(typeof n!="string"||!isNaN(parseInt(n,10)))return n;var t=r+n;if(Y[t]!=null)return Y[t];try{W.style[r]=n}catch{return Y[t]=!1,!1}if(Do[r])n=n.replace(Lo,Wo);else if(W.style[r]===""&&(n=h.css+n,n==="-ms-flex"&&(W.style[r]="-ms-flexbox"),W.style[r]=n,W.style[r]===""))return Y[t]=!1,!1;return W.style[r]="",Y[t]=n,Y[t]}function zo(){function r(i){if(i.type==="keyframes"){var o=i;o.at=zr(o.at)}}function e(i){for(var o in i){var a=i[o];if(o==="fallbacks"&&Array.isArray(a)){i[o]=a.map(e);continue}var s=!1,u=je(o);u&&u!==o&&(s=!0);var f=!1,c=wt(u,D(a));c&&c!==a&&(f=!0),(s||f)&&(s&&delete i[o],i[u||o]=c||a)}return i}function n(i,o){return o.type!=="style"?i:e(i)}function t(i,o){return wt(o,D(i))||i}return{onProcessRule:r,onProcessStyle:n,onChangeValue:t}}var Ur=zo;function Bo(){var r=function(n,t){return n.length===t.length?n>t?1:-1:n.length-t.length};return{onProcessStyle:function(n,t){if(t.type!=="style")return n;for(var i={},o=Object.keys(n).sort(r),a=0;a<o.length;a++)i[o[a]]=n[o[a]];return i}}}var Hr=Bo;var $o=function(e){return e===void 0&&(e={}),{plugins:[mr(),gr(e.observable),yr(),xr(),Sr(),wr(),Rr(),kr(),Nr(e.defaultUnit),Er(),Ur(),Hr()]}},Me=$o;function Uo(r){var e={};return function(n){return e[n]===void 0&&(e[n]=r(n)),e[n]}}var Gr=Uo;var Ho=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|default|defer|dir|disabled|download|draggable|encType|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|itemProp|itemScope|itemType|itemID|itemRef|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,Vl=Gr(function(r){return Ho.test(r)||r.charCodeAt(0)===111&&r.charCodeAt(1)===110&&r.charCodeAt(2)<91});var Go=1e4,Jo=re(Me()),qo=function(e){e===void 0&&(e=Jo);var n=new Map,t=0,i,o=function(){return(!i||i.rules.index.length>Go)&&(i=e.createStyleSheet().attach()),i};function a(){var s=arguments,u=JSON.stringify(s),f=n.get(u);if(f)return f.className;var c=[];for(var d in s){var p=s[d];if(!Array.isArray(p)){c.push(p);continue}for(var m=0;m<p.length;m++)c.push(p[m])}for(var y={},v=[],w=0;w<c.length;w++){var k=c[w];if(k){var P=k;if(typeof k=="string"){var T=n.get(k);T&&(T.labels.length&&v.push.apply(v,T.labels),P=T.style)}P.label&&v.indexOf(P.label)===-1&&v.push(P.label),Object.assign(y,P)}}delete y.label;var S=v.length===0?"css":v.join("-"),E=S+"-"+t++;o().addRule(E,y);var C=o().classes[E],I={style:y,labels:v,className:C};return n.set(u,I),n.set(C,I),C}return a.getSheet=o,a},Ko=qo(),Jr=Ko;var ra=Number.MIN_SAFE_INTEGER||-1e9,na=function(){return ra++},ia=Yo({classNamePrefix:"",disableStylesGeneration:!1,isSSR:!M}),Yr=new Map,kt=function(e,n){var t=e.managers;if(t)return t[n]||(t[n]=new ut),t[n];var i=Yr.get(n);return i||(i=new ut,Yr.set(n,i)),i},Zr=function(e){var n=e.sheet,t=e.context,i=e.index,o=e.theme;if(n){var a=kt(t,i);a.manage(o),t.registry&&t.registry.add(n)}},oa=function(e){if(e.sheet){var n=kt(e.context,e.index);n.unmanage(e.theme)}},aa=re(Me()),tn=new WeakMap,rn=function(e){return tn.get(e)},sa=function(e,n){tn.set(e,n)},la=function(e){var n=e.styles;return typeof n!="function"?n:n(e.theme)};function ua(r,e){var n;r.context.id&&r.context.id.minify!=null&&(n=r.context.id.minify);var t=r.context.classNamePrefix||"";r.name&&!n&&(t+=r.name.replace(/\s/g,"-")+"-");var i="";return r.name&&(i=r.name+", "),i+=typeof r.styles=="function"?"Themed":"Unthemed",b({},r.sheetOptions,{index:r.index,meta:i,classNamePrefix:t,link:e,generateId:r.sheetOptions&&r.sheetOptions.generateId?r.sheetOptions.generateId:r.context.generateId})}var fa=function(e){if(!e.context.disableStylesGeneration){var n=kt(e.context,e.index),t=n.get(e.theme);if(t)return t;var i=e.context.jss||aa,o=la(e),a=ft(o),s=i.createStyleSheet(o,ua(e,a!==null));return sa(s,{dynamicStyles:a,styles:o}),n.add(e.theme,s),s}},ca=function(e,n){for(var t in n)e.deleteRule(n[t])},da=function(e,n,t){for(var i in t)n.updateOne(t[i],e)},ha=function(e,n){var t=rn(e);if(t){var i={};for(var o in t.dynamicStyles)for(var a=e.rules.index.length,s=e.addRule(o,t.dynamicStyles[o]),u=a;u<e.rules.index.length;u++){var f=e.rules.index[u];e.updateOne(f,n),i[s===f?o:f.key]=f}return i}},pa=function(e,n){if(!n)return e.classes;var t=rn(e);if(!t)return e.classes;var i={};for(var o in t.styles)i[o]=e.classes[o],o in n&&(i[o]+=" "+e.classes[n[o].key]);return i};function Qr(r){return r?en:Xo.useInsertionEffect||Qo}var Rt={},O=function(e,n){n===void 0&&(n={});var t=n,i=t.index,o=i===void 0?na():i,a=t.theming,s=t.name,u=ue(t,["index","theming","name"]),f=a&&a.context||Ke,c=function(m){return typeof e=="function"&&(m||qr(f))||Rt},d={};return function(m){var y=Zo(!0),v=qr(ia),w=c(m&&m.theme),k=Kr(function(){var E=fa({context:v,styles:e,name:s,theme:w,index:o,sheetOptions:u});return E&&v.isSSR&&Zr({index:o,context:v,sheet:E,theme:w}),[E,E?ha(E,m):null]},[v,w]),P=k[0],T=k[1];Qr(v.isSSR)(function(){P&&T&&!y.current&&da(m,P,T)},[m]),Qr(v.isSSR)(function(){return P&&Zr({index:o,context:v,sheet:P,theme:w}),function(){P&&(oa({index:o,context:v,sheet:P,theme:w}),T&&ca(P,T))}},[P]);var S=Kr(function(){return P&&T?pa(P,T):d},[P,T]);return Xr(S),Xr(w===Rt?"No theme":w),en(function(){y.current=!1}),S}};var eu=Symbol("react-jss-styled");var ma=function(e){return e===void 0&&(e=Jr),function(t,i){var o=arguments;if(i&&i.css){var a=e(i.css),s=Object.assign({},i);s.className=i.className?i.className+" "+a:a,delete s.css,o[1]=s}return ea.apply(void 0,o)}},tu=ma();var R="teknify";import{jsx as nn}from"react/jsx-runtime";var va=r=>nn("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",className:"size-6",...r,children:nn("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m20.25 7.5-.625 10.632a2.25 2.25 0 0 1-2.247 2.118H6.622a2.25 2.25 0 0 1-2.247-2.118L3.75 7.5M10 11.25h4M3.375 7.5h17.25c.621 0 1.125-.504 1.125-1.125v-1.5c0-.621-.504-1.125-1.125-1.125H3.375c-.621 0-1.125.504-1.125 1.125v1.5c0 .621.504 1.125 1.125 1.125Z"})}),Ct=va;import{jsx as on}from"react/jsx-runtime";var ga=r=>on("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",className:"size-6",...r,children:on("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M14.857 17.082a23.848 23.848 0 0 0 5.454-1.31A8.967 8.967 0 0 1 18 9.75V9A6 6 0 0 0 6 9v.75a8.967 8.967 0 0 1-2.312 6.022c1.733.64 3.56 1.085 5.455 1.31m5.714 0a24.255 24.255 0 0 1-5.714 0m5.714 0a3 3 0 1 1-5.714 0"})}),Nt=ga;import{jsx as an}from"react/jsx-runtime";var ya=r=>an("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",className:"size-6",...r,children:an("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9 12.75 11.25 15 15 9.75M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"})}),Ot=ya;import{jsx as ln,jsxs as Sa}from"react/jsx-runtime";var ba=O({button:r=>({width:40,height:40,display:"flex",justifyContent:"center",alignItems:"center",borderRadius:"50%",backgroundColor:"#fff",border:"none",cursor:"pointer",transition:"all 0.2s ease-in-out",position:"relative","&:hover":{backgroundColor:"#f5f5f5"},...r.active&&{backgroundColor:"#f1f1f1"}}),badge:{position:"absolute",top:0,right:0,padding:"2px 6px",height:18,minWidth:18,backgroundColor:"red",display:"flex",justifyContent:"center",alignItems:"center",borderRadius:100,color:"#fff",fontSize:10,visibility:"hidden",opacity:0,transition:"all 0.2s ease-in-out",scale:.8,userSelect:"none"},badgeOpen:{visibility:"visible",opacity:1,scale:1}},{name:R}),xa=({className:r,counts:e,active:n,...t})=>{let i=ba({counts:e,active:n}),o=sn(()=>e<=99?`${e}`:"99+",[e]),a=sn(()=>e>0,[e]);return Sa("button",{...t,className:`${i.button} ${r}`,children:[ln(Nt,{width:24,height:24}),ln("div",{className:x(i.badge,a&&i.badgeOpen),children:o})]})},Tt=xa;import{jsx as Ra}from"react/jsx-runtime";var Pa=O({button:r=>({textDecoration:"none",background:`var(--${r.variant}-color)`,borderRadius:"var(--border-radius)",color:r.variant==="tertiary"?"#000":"#fff",fontWeight:500,border:"none",cursor:"pointer",fontSize:12,...r.icon?{width:24,height:24,display:"flex",alignItems:"center",justifyContent:"center"}:{minWidth:100,padding:"8px 12px"},"&:hover":{background:`var(--${r.variant}-color-darker)`}})},{name:R}),wa=({className:r,variant:e="tertiary",icon:n=!1,...t})=>{let i=Pa({variant:e,icon:n});return Ra("button",{...t,className:x(i.button,r)})},V=wa;import{jsx as Na}from"react/jsx-runtime";var ka=O({empty:{textAlign:"center",padding:"20px 0"}},{name:R}),Ca=()=>{let r=ka();return Na("div",{className:x(r.empty),children:"No notifications"})},Et=Ca;import{useCallback as Ha,useState as vn}from"react";import Ga from"react-infinite-scroller";import{useCallback as It,useContext as Ta,useEffect as fn,useState as B}from"react";import{TeknifyClient as _u}from"@teknify/js";import{createContext as Oa,useMemo as Fu}from"react";import{jsx as Lu}from"react/jsx-runtime";var un=Oa({applicationId:"",subscriberId:""});var cn=()=>{let{client:r}=Ta(un),[e,n]=B([]),[t,i]=B(!1),[o,a]=B(null),[s,u]=B(!1),[f,c]=B(!0),[d,p]=B(!0),[m,y]=B(),[v,w]=B(0),k=It(async S=>{try{n(E=>E.map(C=>C._id===S?{...C,isRead:!0}:C)),await r.notification.markAsRead(S)}catch{n(C=>C.map(I=>I._id===S?{...I,isRead:!1}:I))}},[]),P=It(async()=>{if(!s)try{u(!0);let S=await r.notification.getNotifications({...m?{cursor:m}:{}});n(E=>[...E,...S.data.filter(C=>!E.find(I=>I._id===C._id)).map(C=>({...C,markAsRead:()=>k(C._id)}))]),p(!!S.pagination.continueCursor),y(S.pagination.continueCursor),w(S.unread)}catch(S){i(!0),S instanceof Error?a(S):a(new Error("Unknown error"))}finally{u(!1),c(!1)}},[s,m,k]);fn(()=>{P()},[]),fn(()=>{let S=E=>{n(C=>[...E.filter(I=>{let Le=C.findIndex(yn=>yn._id===I._id);return Le&&(C[Le]={...I,markAsRead:()=>k(I._id)}),Le===-1}).map(I=>({...I,markAsRead:()=>k(I._id)})),...C])};return r.notification.on(S),()=>{r.notification.off(S)}},[k]);let T=It(()=>{P()},[P]);return{notifications:e,isLoading:s,isFirstLoad:f,isError:t,error:o,hasMore:d,unread:v,fetchMore:T}};import{jsx as Aa}from"react/jsx-runtime";var Ea=O({loader:{textAlign:"center",padding:"20px 0"}}),Ia=()=>{let r=Ea();return Aa("div",{className:x(r.loader),children:"Loading..."})},At=Ia;import{jsx as dn,jsxs as Ma}from"react/jsx-runtime";var _a=O({notificationHeader:{padding:"10px 15px",borderBottom:"1px solid #0001",display:"flex",justifyContent:"space-between",background:"var(--card-background-color)",borderRadius:"5px 5px 0 0",height:36,alignItems:"center"},notificationHeaderTitle:{fontSize:15,fontWeight:600,flex:1}},{name:R}),ja=()=>{let r=_a();return Ma("div",{className:x(r.notificationHeader),children:[dn("h2",{className:x(r.notificationHeaderTitle),children:"Notifications"}),dn("div",{})]})},_t=ja;import La from"sanitize-html";import{jsx as Ve,jsxs as Da}from"react/jsx-runtime";var Va=O({actions:{position:"absolute",top:5,right:5,display:"flex",gap:5,padding:0,background:"#fafafa",borderRadius:5},button:{background:"transparent","&:hover":{background:"#fafafa"}}},{name:R}),Fa=({notification:r})=>{let e=Va();return Da("div",{className:x(e.actions,`${R}-actions`),children:[!r.isRead&&Ve(V,{icon:!0,onClick:r.markAsRead,className:x(e.button),children:Ve(Ot,{width:12,height:12})}),Ve(V,{icon:!0,className:x(e.button),children:Ve(Ct,{width:12,height:12})})]})},hn=Fa;import{jsx as j,jsxs as Fe}from"react/jsx-runtime";var Wa=O({notificationItem:{padding:"10px 15px",display:"flex",flexWrap:"wrap",columnGap:10,flexDirection:"column",margin:10,background:"var(--card-background-color)",borderRadius:10,border:"1px solid #ddd",position:"relative",[`& .${R}-actions`]:{visibility:"hidden",opacity:0,transition:"0.3s ease-in-out"},[`&:hover .${R}-actions`]:{visibility:"visible",opacity:1}},notificationItemImage:{width:24,height:24,objectFit:"cover"},notificationItemTitle:{fontSize:14,fontWeight:600,paddingBottom:5,whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},notificationItemBody:{fontSize:14,lineClamp:2,overflow:"hidden",textOverflow:"ellipsis"},notificationItemActions:{display:"flex",gap:8,marginTop:10,alignItems:"center",justifyContent:"flex-end",width:"100%"},unreadDot:{width:7,height:7,borderRadius:100,background:"var(--primary-color)",position:"relative","&::before":{content:'""',position:"absolute",top:-3,left:-3,width:"calc(100% + 6px)",height:"calc(100% + 6px)",borderRadius:100,background:"var(--primary-color)",opacity:.2}}},{name:R}),za=({notification:r})=>{let e=Wa();return Fe("div",{className:x(e.notificationItem),children:[Fe("div",{style:{display:"flex",gap:10,width:"100%"},children:[j("div",{children:r.icon&&j("img",{src:r.icon,alt:r.title,width:32,height:32,className:x(e.notificationItemImage)})}),Fe("div",{style:{flex:1,overflow:"hidden"},children:[j("h3",{className:x(e.notificationItemTitle),children:r.title}),j("div",{dangerouslySetInnerHTML:{__html:La(r.message)},className:x(e.notificationItemBody)})]}),!r.isRead&&j("div",{className:x(e.unreadDot)})]}),Fe("div",{className:x(e.notificationItemActions),children:[r.secondary_action&&j("a",{href:r.secondary_action.href,target:r.secondary_action.target,rel:r.secondary_action.rel,children:j(V,{variant:"secondary",children:r.secondary_action.label})}),r.primary_action&&j("a",{href:r.primary_action.href,target:r.primary_action.target,rel:r.primary_action.rel,children:j(V,{variant:"primary",children:r.primary_action.label})})]}),j(hn,{notification:r})]})},jt=za;import{useEffect as pn,useMemo as Mt,useState as mn}from"react";import{jsx as Ua}from"react/jsx-runtime";var Ba=O({popover:{width:"100%",height:"100%",maxWidth:400,maxHeight:500,boxShadow:"0 10px 40px #0001",position:"fixed",background:"#fff",borderRadius:10,visibility:"hidden",opacity:0,scale:.8,transition:"all 0.3s",backgroundColor:"var(--background-color)",border:"1px solid var(--card-background-color)"},popoverOpen:{top:0,left:0,visibility:"visible",opacity:1,scale:1}},{name:R}),$a=({open:r,anchorElement:e,onClose:n,children:t})=>{let i=Ba(),[o,a]=mn(null),[s,u]=mn(typeof window>"u"?0:window.innerWidth),f=Mt(()=>{if(!e)return 0;let p=e.getBoundingClientRect();return p.top+p.height+20},[e,s]),c=Mt(()=>e?e.getBoundingClientRect().left+10:0,[e,s]),d=Mt(()=>{if(!o||!e)return!0;let p=e.getBoundingClientRect(),m=o.getBoundingClientRect();return p.left+m.width>s},[o,e,s]);return pn(()=>{let p=()=>{r&&n?.()};return window.addEventListener("click",p),()=>{window.removeEventListener("click",p)}},[r]),pn(()=>{let p=()=>{u(window.innerWidth)};return window.addEventListener("resize",p),()=>{window.removeEventListener("resize",p)}},[]),Ua("div",{className:x(i.popover,r&&i.popoverOpen),style:{top:f,left:c,...d?{transform:"translateX(calc(-100% + 20px))"}:{}},ref:a,onClick:p=>{p.stopPropagation()},children:t})},Vt=$a;import{Fragment as De,jsx as _,jsxs as gn}from"react/jsx-runtime";var Ja=O({inboxContent:{height:"100%",display:"flex",flexDirection:"column"},inboxContentList:{flex:1,overflowY:"auto"}},{name:R}),qa={Bell:Tt,Button:V,NotificationHeader:_t,Empty:Et,Loader:At,NotificationItem:jt,NotificationPopover:Vt},Ka=({components:r})=>{let[e,n]=vn(null),[t,i]=vn(!1),{Bell:o,Empty:a,Loader:s,NotificationHeader:u,NotificationItem:f,NotificationPopover:c}={...qa,...r},d=Ha(()=>{i(S=>!S)},[]),{notifications:p,unread:m,isFirstLoad:y,hasMore:v,fetchMore:w,isError:k,error:P}=cn(),T=Ja();return gn(De,{children:[_(o,{onClick:S=>{S.stopPropagation(),d()},ref:n,active:t,counts:m}),_(c,{open:t,anchorElement:e,onClose:d,children:gn("div",{className:x(T.inboxContent),children:[_(u,{}),_("div",{className:x(T.inboxContentList),children:_(Ga,{loadMore:w,hasMore:v,loader:_(s,{},0),useWindow:!1,children:y?_(De,{}):_(De,{children:p.length?_(De,{children:p.map(S=>_(f,{notification:S},S._id))}):_(a,{})})})})]})})]})},Xa=Ka;export{Tt as Bell,V as Button,Et as Empty,Xa as Inbox,At as Loader,_t as NotificationHeader,jt as NotificationItem,Vt as NotificationPopover};
8
+ `}},e.insertRules=function(t,i){for(var o=0;o<t.index.length;o++)this.insertRule(t.index[o],o,i)},e.insertRule=function(t,i,o){if(o===void 0&&(o=this.element.sheet),t.rules){var a=t,s=o;if(t.type==="conditional"||t.type==="keyframes"){var u=cr(o,i);if(s=fr(o,a.toString({children:!1}),u),s===!1)return!1;this.refCssRule(t,u,s)}return this.insertRules(a.rules,s),s}var f=t.toString();if(!f)return!1;var c=cr(o,i),d=fr(o,f,c);return d===!1?!1:(this.hasInsertedRules=!0,this.refCssRule(t,c,d),d)},e.refCssRule=function(t,i,o){t.renderable=o,t.options.parent instanceof hr&&this.cssRules.splice(i,0,o)},e.deleteRule=function(t){var i=this.element.sheet,o=this.indexOf(t);return o===-1?!1:(i.deleteRule(o),this.cssRules.splice(o,1),!0)},e.indexOf=function(t){return this.cssRules.indexOf(t)},e.replaceRule=function(t,i){var o=this.indexOf(t);return o===-1?!1:(this.element.sheet.deleteRule(o),this.cssRules.splice(o,1),this.insertRule(i,o))},e.getRules=function(){return this.element.sheet.cssRules},r}(),Mi=0,Fi=function(){function r(n){this.id=Mi++,this.version="10.10.0",this.plugins=new xi,this.options={id:{minify:!1},createGenerateId:lt,Renderer:M?ji:null,plugins:[]},this.generateId=lt({minify:!1});for(var t=0;t<sr.length;t++)this.plugins.use(sr[t],{queue:"internal"});this.setup(n)}var e=r.prototype;return e.setup=function(t){return t===void 0&&(t={}),t.createGenerateId&&(this.options.createGenerateId=t.createGenerateId),t.id&&(this.options.id=b({},this.options.id,t.id)),(t.createGenerateId||t.id)&&(this.generateId=this.options.createGenerateId(this.options.id)),t.insertionPoint!=null&&(this.options.insertionPoint=t.insertionPoint),"Renderer"in t&&(this.options.Renderer=t.Renderer),t.plugins&&this.use.apply(this,t.plugins),this},e.createStyleSheet=function(t,i){i===void 0&&(i={});var o=i,a=o.index;typeof a!="number"&&(a=te.index===0?0:te.index+1);var s=new hr(t,b({},i,{jss:this,generateId:i.generateId||this.generateId,insertionPoint:this.options.insertionPoint,Renderer:this.options.Renderer,index:a}));return this.plugins.onProcessSheet(s),s},e.removeStyleSheet=function(t){return t.detach(),te.remove(t),this},e.createRule=function(t,i,o){if(i===void 0&&(i={}),o===void 0&&(o={}),typeof t=="object")return this.createRule(void 0,t,i);var a=b({},o,{name:t,jss:this,Renderer:this.options.Renderer});a.generateId||(a.generateId=this.generateId),a.classes||(a.classes={}),a.keyframes||(a.keyframes={});var s=K(t,i,a);return s&&this.plugins.onProcessRule(s),s},e.use=function(){for(var t=this,i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return o.forEach(function(s){t.plugins.use(s)}),this},r}(),ie=function(e){return new Fi(e)},ft=function(){function r(){this.length=0,this.sheets=new WeakMap}var e=r.prototype;return e.get=function(t){var i=this.sheets.get(t);return i&&i.sheet},e.add=function(t,i){this.sheets.has(t)||(this.length++,this.sheets.set(t,{sheet:i,refs:0}))},e.manage=function(t){var i=this.sheets.get(t);if(i)return i.refs===0&&i.sheet.attach(),i.refs++,i.sheet;qe(!1,"[JSS] SheetsManager: can't find sheet to manage")},e.unmanage=function(t){var i=this.sheets.get(t);i?i.refs>0&&(i.refs--,i.refs===0&&i.sheet.detach()):qe(!1,"SheetsManager: can't find sheet to unmanage")},Re(r,[{key:"size",get:function(){return this.length}}]),r}(),Ce=typeof CSS=="object"&&CSS!=null&&"number"in CSS;function ct(r){var e=null;for(var n in r){var t=r[n],i=typeof t;if(i==="function")e||(e={}),e[n]=t;else if(i==="object"&&t!==null&&!Array.isArray(t)){var o=ct(t);o&&(e||(e={}),e[n]=o)}}return e}var js=ie();var vr=Date.now(),dt="fnValues"+vr,ht="fnStyle"+ ++vr,Vi=function(){return{onCreateRule:function(n,t,i){if(typeof t!="function")return null;var o=K(n,{},i);return o[ht]=t,o},onProcessStyle:function(n,t){if(dt in t||ht in t)return n;var i={};for(var o in n){var a=n[o];typeof a=="function"&&(delete n[o],i[o]=a)}return t[dt]=i,n},onUpdate:function(n,t,i,o){var a=t,s=a[ht];if(s&&(a.style=s(n)||{},0))for(var u in a.style);var f=a[dt];if(f)for(var c in f)a.prop(c,f[c](n),o)}}},gr=Vi;function pt(r){var e,n=r.Symbol;return typeof n=="function"?n.observable?e=n.observable:(e=n("observable"),n.observable=e):e="@@observable",e}var Y;typeof self<"u"?Y=self:typeof window<"u"?Y=window:typeof global<"u"?Y=global:typeof module<"u"?Y=module:Y=Function("return this")();var Li=pt(Y),mt=Li;var yr=function(e){return e&&e[mt]&&e===e[mt]()},Di=function(e){return{onCreateRule:function(t,i,o){if(!yr(i))return null;var a=i,s=K(t,{},o);return a.subscribe(function(u){for(var f in u)s.prop(f,u[f],e)}),s},onProcessRule:function(t){if(!(t&&t.type!=="style")){var i=t,o=i.style,a=function(c){var d=o[c];if(!yr(d))return"continue";delete o[c],d.subscribe({next:function(m){i.prop(c,m,e)}})};for(var s in o)var u=a(s)}}}},br=Di;var Wi=/;\n/,zi=function(e){for(var n={},t=e.split(Wi),i=0;i<t.length;i++){var o=(t[i]||"").trim();if(o){var a=o.indexOf(":");if(a!==-1){var s=o.substr(0,a).trim(),u=o.substr(a+1).trim();n[s]=u}}}return n},Bi=function(e){typeof e.style=="string"&&(e.style=zi(e.style))};function $i(){return{onProcessRule:Bi}}var xr=$i;var D="@global",vt="@global ",Ui=function(){function r(n,t,i){this.type="global",this.at=D,this.isProcessed=!1,this.key=n,this.options=i,this.rules=new ne(b({},i,{parent:this}));for(var o in t)this.rules.add(o,t[o]);this.rules.process()}var e=r.prototype;return e.getRule=function(t){return this.rules.get(t)},e.addRule=function(t,i,o){var a=this.rules.add(t,i,o);return a&&this.options.jss.plugins.onProcessRule(a),a},e.replaceRule=function(t,i,o){var a=this.rules.replace(t,i,o);return a&&this.options.jss.plugins.onProcessRule(a),a},e.indexOf=function(t){return this.rules.indexOf(t)},e.toString=function(t){return this.rules.toString(t)},r}(),Hi=function(){function r(n,t,i){this.type="global",this.at=D,this.isProcessed=!1,this.key=n,this.options=i;var o=n.substr(vt.length);this.rule=i.jss.createRule(o,t,b({},i,{parent:this}))}var e=r.prototype;return e.toString=function(t){return this.rule?this.rule.toString(t):""},r}(),Gi=/\s*,\s*/g;function Sr(r,e){for(var n=r.split(Gi),t="",i=0;i<n.length;i++)t+=e+" "+n[i].trim(),n[i+1]&&(t+=", ");return t}function Ji(r,e){var n=r.options,t=r.style,i=t?t[D]:null;if(i){for(var o in i)e.addRule(o,i[o],b({},n,{selector:Sr(o,r.selector)}));delete t[D]}}function qi(r,e){var n=r.options,t=r.style;for(var i in t)if(!(i[0]!=="@"||i.substr(0,D.length)!==D)){var o=Sr(i.substr(D.length),r.selector);e.addRule(o,t[i],b({},n,{selector:o})),delete t[i]}}function Ki(){function r(n,t,i){if(!n)return null;if(n===D)return new Ui(n,t,i);if(n[0]==="@"&&n.substr(0,vt.length)===vt)return new Hi(n,t,i);var o=i.parent;return o&&(o.type==="global"||o.options.parent&&o.options.parent.type==="global")&&(i.scoped=!1),!i.selector&&i.scoped===!1&&(i.selector=n),null}function e(n,t){n.type!=="style"||!t||(Ji(n,t),qi(n,t))}return{onCreateRule:r,onProcessRule:e}}var Pr=Ki;var Ne=function(e){return e&&typeof e=="object"&&!Array.isArray(e)},gt="extendCurrValue"+Date.now();function Xi(r,e,n,t){var i=typeof r.extend;if(i==="string"){if(!n)return;var o=n.getRule(r.extend);if(!o||o===e)return;var a=o.options.parent;if(a){var s=a.rules.raw[r.extend];G(s,e,n,t)}return}if(Array.isArray(r.extend)){for(var u=0;u<r.extend.length;u++){var f=r.extend[u],c=typeof f=="string"?b({},r,{extend:f}):r.extend[u];G(c,e,n,t)}return}for(var d in r.extend){if(d==="extend"){G(r.extend.extend,e,n,t);continue}if(Ne(r.extend[d])){d in t||(t[d]={}),G(r.extend[d],e,n,t[d]);continue}t[d]=r.extend[d]}}function Yi(r,e,n,t){for(var i in r)if(i!=="extend"){if(Ne(t[i])&&Ne(r[i])){G(r[i],e,n,t[i]);continue}if(Ne(r[i])){t[i]=G(r[i],e,n);continue}t[i]=r[i]}}function G(r,e,n,t){return t===void 0&&(t={}),Xi(r,e,n,t),Yi(r,e,n,t),t}function Zi(){function r(n,t,i){return"extend"in n?G(n,t,i):n}function e(n,t,i){if(t!=="extend")return n;if(n==null||n===!1){for(var o in i[gt])i.prop(o,null);return i[gt]=null,null}if(typeof n=="object"){for(var a in n)i.prop(a,n[a]);i[gt]=n}return null}return{onProcessStyle:r,onChangeValue:e}}var wr=Zi;var Rr=/\s*,\s*/g,Qi=/&/g,eo=/\$([\w-]+)/g;function to(){function r(i,o){return function(a,s){var u=i.getRule(s)||o&&o.getRule(s);return u?u.selector:s}}function e(i,o){for(var a=o.split(Rr),s=i.split(Rr),u="",f=0;f<a.length;f++)for(var c=a[f],d=0;d<s.length;d++){var p=s[d];u&&(u+=", "),u+=p.indexOf("&")!==-1?p.replace(Qi,c):c+" "+p}return u}function n(i,o,a){if(a)return b({},a,{index:a.index+1});var s=i.options.nestingLevel;s=s===void 0?1:s+1;var u=b({},i.options,{nestingLevel:s,index:o.indexOf(i)+1});return delete u.name,u}function t(i,o,a){if(o.type!=="style")return i;var s=o,u=s.options.parent,f,c;for(var d in i){var p=d.indexOf("&")!==-1,m=d[0]==="@";if(!(!p&&!m)){if(f=n(s,u,f),p){var y=e(d,s.selector);c||(c=r(u,a)),y=y.replace(eo,c);var v=s.key+"-"+d;"replaceRule"in u?u.replaceRule(v,i[d],b({},f,{selector:y})):u.addRule(v,i[d],b({},f,{selector:y}))}else m&&u.addRule(d,{},f).addRule(s.key,i[d],{selector:s.selector});delete i[d]}}return i}return{onProcessStyle:t}}var kr=to;function yt(r,e){if(!e)return!0;if(Array.isArray(e)){for(var n=0;n<e.length;n++){var t=yt(r,e[n]);if(!t)return!1}return!0}if(e.indexOf(" ")>-1)return yt(r,e.split(" "));var i=r.options.parent;if(e[0]==="$"){var o=i.getRule(e.substr(1));return!o||o===r?!1:(i.classes[r.key]+=" "+i.classes[o.key],!0)}return i.classes[r.key]+=" "+e,!0}function ro(){function r(e,n){return"composes"in e&&(yt(n,e.composes),delete e.composes),e}return{onProcessStyle:r}}var Cr=ro;var no=/[A-Z]/g,io=/^ms-/,bt={};function oo(r){return"-"+r.toLowerCase()}function ao(r){if(bt.hasOwnProperty(r))return bt[r];var e=r.replace(no,oo);return bt[r]=io.test(e)?"-"+e:e}var xt=ao;function Oe(r){var e={};for(var n in r){var t=n.indexOf("--")===0?n:xt(n);e[t]=r[n]}return r.fallbacks&&(Array.isArray(r.fallbacks)?e.fallbacks=r.fallbacks.map(Oe):e.fallbacks=Oe(r.fallbacks)),e}function so(){function r(n){if(Array.isArray(n)){for(var t=0;t<n.length;t++)n[t]=Oe(n[t]);return n}return Oe(n)}function e(n,t,i){if(t.indexOf("--")===0)return n;var o=xt(t);return t===o?n:(i.prop(o,n),null)}return{onProcessStyle:r,onChangeValue:e}}var Nr=so;var l=Ce&&CSS?CSS.px:"px",Te=Ce&&CSS?CSS.ms:"ms",Z=Ce&&CSS?CSS.percent:"%",lo={"animation-delay":Te,"animation-duration":Te,"background-position":l,"background-position-x":l,"background-position-y":l,"background-size":l,border:l,"border-bottom":l,"border-bottom-left-radius":l,"border-bottom-right-radius":l,"border-bottom-width":l,"border-left":l,"border-left-width":l,"border-radius":l,"border-right":l,"border-right-width":l,"border-top":l,"border-top-left-radius":l,"border-top-right-radius":l,"border-top-width":l,"border-width":l,"border-block":l,"border-block-end":l,"border-block-end-width":l,"border-block-start":l,"border-block-start-width":l,"border-block-width":l,"border-inline":l,"border-inline-end":l,"border-inline-end-width":l,"border-inline-start":l,"border-inline-start-width":l,"border-inline-width":l,"border-start-start-radius":l,"border-start-end-radius":l,"border-end-start-radius":l,"border-end-end-radius":l,margin:l,"margin-bottom":l,"margin-left":l,"margin-right":l,"margin-top":l,"margin-block":l,"margin-block-end":l,"margin-block-start":l,"margin-inline":l,"margin-inline-end":l,"margin-inline-start":l,padding:l,"padding-bottom":l,"padding-left":l,"padding-right":l,"padding-top":l,"padding-block":l,"padding-block-end":l,"padding-block-start":l,"padding-inline":l,"padding-inline-end":l,"padding-inline-start":l,"mask-position-x":l,"mask-position-y":l,"mask-size":l,height:l,width:l,"min-height":l,"max-height":l,"min-width":l,"max-width":l,bottom:l,left:l,top:l,right:l,inset:l,"inset-block":l,"inset-block-end":l,"inset-block-start":l,"inset-inline":l,"inset-inline-end":l,"inset-inline-start":l,"box-shadow":l,"text-shadow":l,"column-gap":l,"column-rule":l,"column-rule-width":l,"column-width":l,"font-size":l,"font-size-delta":l,"letter-spacing":l,"text-decoration-thickness":l,"text-indent":l,"text-stroke":l,"text-stroke-width":l,"word-spacing":l,motion:l,"motion-offset":l,outline:l,"outline-offset":l,"outline-width":l,perspective:l,"perspective-origin-x":Z,"perspective-origin-y":Z,"transform-origin":Z,"transform-origin-x":Z,"transform-origin-y":Z,"transform-origin-z":Z,"transition-delay":Te,"transition-duration":Te,"vertical-align":l,"flex-basis":l,"shape-margin":l,size:l,gap:l,grid:l,"grid-gap":l,"row-gap":l,"grid-row-gap":l,"grid-column-gap":l,"grid-template-rows":l,"grid-template-columns":l,"grid-auto-rows":l,"grid-auto-columns":l,"box-shadow-x":l,"box-shadow-y":l,"box-shadow-blur":l,"box-shadow-spread":l,"font-line-height":l,"text-shadow-x":l,"text-shadow-y":l,"text-shadow-blur":l};function Or(r){var e=/(-[a-z])/g,n=function(a){return a[1].toUpperCase()},t={};for(var i in r)t[i]=r[i],t[i.replace(e,n)]=r[i];return t}var uo=Or(lo);function oe(r,e,n){if(e==null)return e;if(Array.isArray(e))for(var t=0;t<e.length;t++)e[t]=oe(r,e[t],n);else if(typeof e=="object")if(r==="fallbacks")for(var i in e)e[i]=oe(i,e[i],n);else for(var o in e)e[o]=oe(r+"-"+o,e[o],n);else if(typeof e=="number"&&isNaN(e)===!1){var a=n[r]||uo[r];return a&&!(e===0&&a===l)?typeof a=="function"?a(e).toString():""+e+a:e.toString()}return e}function fo(r){r===void 0&&(r={});var e=Or(r);function n(i,o){if(o.type!=="style")return i;for(var a in i)i[a]=oe(a,i[a],e);return i}function t(i,o){return oe(o,i,e)}return{onProcessStyle:n,onChangeValue:t}}var Tr=fo;var co={"background-size":!0,"background-position":!0,border:!0,"border-bottom":!0,"border-left":!0,"border-top":!0,"border-right":!0,"border-radius":!0,"border-image":!0,"border-width":!0,"border-style":!0,"border-color":!0,"box-shadow":!0,flex:!0,margin:!0,padding:!0,outline:!0,"transform-origin":!0,transform:!0,transition:!0},ho={position:!0,size:!0},Ee={padding:{top:0,right:0,bottom:0,left:0},margin:{top:0,right:0,bottom:0,left:0},background:{attachment:null,color:null,image:null,position:null,repeat:null},border:{width:null,style:null,color:null},"border-top":{width:null,style:null,color:null},"border-right":{width:null,style:null,color:null},"border-bottom":{width:null,style:null,color:null},"border-left":{width:null,style:null,color:null},outline:{width:null,style:null,color:null},"list-style":{type:null,position:null,image:null},transition:{property:null,duration:null,"timing-function":null,timingFunction:null,delay:null},animation:{name:null,duration:null,"timing-function":null,timingFunction:null,delay:null,"iteration-count":null,iterationCount:null,direction:null,"fill-mode":null,fillMode:null,"play-state":null,playState:null},"box-shadow":{x:0,y:0,blur:0,spread:0,color:null,inset:null},"text-shadow":{x:0,y:0,blur:null,color:null}},St={border:{radius:"border-radius",image:"border-image",width:"border-width",style:"border-style",color:"border-color"},"border-bottom":{width:"border-bottom-width",style:"border-bottom-style",color:"border-bottom-color"},"border-top":{width:"border-top-width",style:"border-top-style",color:"border-top-color"},"border-left":{width:"border-left-width",style:"border-left-style",color:"border-left-color"},"border-right":{width:"border-right-width",style:"border-right-style",color:"border-right-color"},background:{size:"background-size",image:"background-image"},font:{style:"font-style",variant:"font-variant",weight:"font-weight",stretch:"font-stretch",size:"font-size",family:"font-family",lineHeight:"line-height","line-height":"line-height"},flex:{grow:"flex-grow",basis:"flex-basis",direction:"flex-direction",wrap:"flex-wrap",flow:"flex-flow",shrink:"flex-shrink"},align:{self:"align-self",items:"align-items",content:"align-content"},grid:{"template-columns":"grid-template-columns",templateColumns:"grid-template-columns","template-rows":"grid-template-rows",templateRows:"grid-template-rows","template-areas":"grid-template-areas",templateAreas:"grid-template-areas",template:"grid-template","auto-columns":"grid-auto-columns",autoColumns:"grid-auto-columns","auto-rows":"grid-auto-rows",autoRows:"grid-auto-rows","auto-flow":"grid-auto-flow",autoFlow:"grid-auto-flow",row:"grid-row",column:"grid-column","row-start":"grid-row-start",rowStart:"grid-row-start","row-end":"grid-row-end",rowEnd:"grid-row-end","column-start":"grid-column-start",columnStart:"grid-column-start","column-end":"grid-column-end",columnEnd:"grid-column-end",area:"grid-area",gap:"grid-gap","row-gap":"grid-row-gap",rowGap:"grid-row-gap","column-gap":"grid-column-gap",columnGap:"grid-column-gap"}};function po(r,e,n){return r.map(function(t){return Ir(t,e,n,!1,!0)})}function Er(r,e,n,t){return n[e]==null?r:r.length===0?[]:Array.isArray(r[0])?Er(r[0],e,n,t):typeof r[0]=="object"?po(r,e,t):[r]}function Ir(r,e,n,t,i){if(!(Ee[e]||St[e]))return[];var o=[];if(St[e]&&(r=mo(r,n,St[e],t)),Object.keys(r).length)for(var a in Ee[e]){if(r[a]){Array.isArray(r[a])?o.push(ho[a]===null?r[a]:r[a].join(" ")):o.push(r[a]);continue}Ee[e][a]!=null&&o.push(Ee[e][a])}return!o.length||i?o:[o]}function mo(r,e,n,t){for(var i in n){var o=n[i];if(typeof r[i]<"u"&&(t||!e.prop(o))){var a,s=ae((a={},a[o]=r[i],a),e)[o];t?e.style.fallbacks[o]=s:e.style[o]=s}delete r[i]}return r}function ae(r,e,n){for(var t in r){var i=r[t];if(Array.isArray(i)){if(!Array.isArray(i[0])){if(t==="fallbacks"){for(var o=0;o<r.fallbacks.length;o++)r.fallbacks[o]=ae(r.fallbacks[o],e,!0);continue}r[t]=Er(i,t,co,e),r[t].length||delete r[t]}}else if(typeof i=="object"){if(t==="fallbacks"){r.fallbacks=ae(r.fallbacks,e,!0);continue}r[t]=Ir(i,t,e,n),r[t].length||delete r[t]}else r[t]===""&&delete r[t]}return r}function vo(){function r(e,n){if(!e||n.type!=="style")return e;if(Array.isArray(e)){for(var t=0;t<e.length;t++)e[t]=ae(e[t],n);return e}return ae(e,n)}return{onProcessStyle:r}}var Ar=vo;function se(r,e){(e==null||e>r.length)&&(e=r.length);for(var n=0,t=Array(e);n<e;n++)t[n]=r[n];return t}function _r(r){if(Array.isArray(r))return se(r)}function jr(r){if(typeof Symbol<"u"&&r[Symbol.iterator]!=null||r["@@iterator"]!=null)return Array.from(r)}function Mr(r,e){if(r){if(typeof r=="string")return se(r,e);var n={}.toString.call(r).slice(8,-1);return n==="Object"&&r.constructor&&(n=r.constructor.name),n==="Map"||n==="Set"?Array.from(r):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?se(r,e):void 0}}function Fr(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
9
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Vr(r){return _r(r)||jr(r)||Mr(r)||Fr()}var le="",Pt="",zr="",Br="",go=M&&"ontouchstart"in document.documentElement;if(M){Ie={Moz:"-moz-",ms:"-ms-",O:"-o-",Webkit:"-webkit-"},Lr=document.createElement("p"),Ae=Lr.style,Dr="Transform";for(_e in Ie)if(_e+Dr in Ae){le=_e,Pt=Ie[_e];break}le==="Webkit"&&"msHyphens"in Ae&&(le="ms",Pt=Ie.ms,Br="edge"),le==="Webkit"&&"-apple-trailing-word"in Ae&&(zr="apple")}var Ie,Lr,Ae,Dr,_e,h={js:le,css:Pt,vendor:zr,browser:Br,isTouch:go};function $r(r){return r[1]==="-"||h.js==="ms"?r:"@"+h.css+"keyframes"+r.substr(10)}var yo={noPrefill:["appearance"],supportedProperty:function(e){return e!=="appearance"?!1:h.js==="ms"?"-webkit-"+e:h.css+e}},bo={noPrefill:["color-adjust"],supportedProperty:function(e){return e!=="color-adjust"?!1:h.js==="Webkit"?h.css+"print-"+e:e}},xo=/[-\s]+(.)?/g;function So(r,e){return e?e.toUpperCase():""}function wt(r){return r.replace(xo,So)}function z(r){return wt("-"+r)}var Po={noPrefill:["mask"],supportedProperty:function(e,n){if(!/^mask/.test(e))return!1;if(h.js==="Webkit"){var t="mask-image";if(wt(t)in n)return e;if(h.js+z(t)in n)return h.css+e}return e}},wo={noPrefill:["text-orientation"],supportedProperty:function(e){return e!=="text-orientation"?!1:h.vendor==="apple"&&!h.isTouch?h.css+e:e}},Ro={noPrefill:["transform"],supportedProperty:function(e,n,t){return e!=="transform"?!1:t.transform?e:h.css+e}},ko={noPrefill:["transition"],supportedProperty:function(e,n,t){return e!=="transition"?!1:t.transition?e:h.css+e}},Co={noPrefill:["writing-mode"],supportedProperty:function(e){return e!=="writing-mode"?!1:h.js==="Webkit"||h.js==="ms"&&h.browser!=="edge"?h.css+e:e}},No={noPrefill:["user-select"],supportedProperty:function(e){return e!=="user-select"?!1:h.js==="Moz"||h.js==="ms"||h.vendor==="apple"?h.css+e:e}},Oo={supportedProperty:function(e,n){if(!/^break-/.test(e))return!1;if(h.js==="Webkit"){var t="WebkitColumn"+z(e);return t in n?h.css+"column-"+e:!1}if(h.js==="Moz"){var i="page"+z(e);return i in n?"page-"+e:!1}return!1}},To={supportedProperty:function(e,n){if(!/^(border|margin|padding)-inline/.test(e))return!1;if(h.js==="Moz")return e;var t=e.replace("-inline","");return h.js+z(t)in n?h.css+t:!1}},Eo={supportedProperty:function(e,n){return wt(e)in n?e:!1}},Io={supportedProperty:function(e,n){var t=z(e);return e[0]==="-"||e[0]==="-"&&e[1]==="-"?e:h.js+t in n?h.css+e:h.js!=="Webkit"&&"Webkit"+t in n?"-webkit-"+e:!1}},Ao={supportedProperty:function(e){return e.substring(0,11)!=="scroll-snap"?!1:h.js==="ms"?""+h.css+e:e}},_o={supportedProperty:function(e){return e!=="overscroll-behavior"?!1:h.js==="ms"?h.css+"scroll-chaining":e}},jo={"flex-grow":"flex-positive","flex-shrink":"flex-negative","flex-basis":"flex-preferred-size","justify-content":"flex-pack",order:"flex-order","align-items":"flex-align","align-content":"flex-line-pack"},Mo={supportedProperty:function(e,n){var t=jo[e];return t&&h.js+z(t)in n?h.css+t:!1}},Ur={flex:"box-flex","flex-grow":"box-flex","flex-direction":["box-orient","box-direction"],order:"box-ordinal-group","align-items":"box-align","flex-flow":["box-orient","box-direction"],"justify-content":"box-pack"},Fo=Object.keys(Ur),Vo=function(e){return h.css+e},Lo={supportedProperty:function(e,n,t){var i=t.multiple;if(Fo.indexOf(e)>-1){var o=Ur[e];if(!Array.isArray(o))return h.js+z(o)in n?h.css+o:!1;if(!i)return!1;for(var a=0;a<o.length;a++)if(!(h.js+z(o[0])in n))return!1;return o.map(Vo)}return!1}},Hr=[yo,bo,Po,wo,Ro,ko,Co,No,Oo,To,Eo,Io,Ao,_o,Mo,Lo],Wr=Hr.filter(function(r){return r.supportedProperty}).map(function(r){return r.supportedProperty}),Do=Hr.filter(function(r){return r.noPrefill}).reduce(function(r,e){return r.push.apply(r,Vr(e.noPrefill)),r},[]),ue,J={};if(M){ue=document.createElement("p"),je=window.getComputedStyle(document.documentElement,"");for(Me in je)isNaN(Me)||(J[je[Me]]=je[Me]);Do.forEach(function(r){return delete J[r]})}var je,Me;function Fe(r,e){if(e===void 0&&(e={}),!ue)return r;if(J[r]!=null)return J[r];(r==="transition"||r==="transform")&&(e[r]=r in ue.style);for(var n=0;n<Wr.length&&(J[r]=Wr[n](r,ue.style,e),!J[r]);n++);try{ue.style[r]=""}catch{return!1}return J[r]}var Q={},Wo={transition:1,"transition-property":1,"-webkit-transition":1,"-webkit-transition-property":1},zo=/(^\s*[\w-]+)|, (\s*[\w-]+)(?![^()]*\))/g,W;function Bo(r,e,n){if(e==="var")return"var";if(e==="all")return"all";if(n==="all")return", all";var t=e?Fe(e):", "+Fe(n);return t||e||n}M&&(W=document.createElement("p"));function Rt(r,e){var n=e;if(!W||r==="content")return e;if(typeof n!="string"||!isNaN(parseInt(n,10)))return n;var t=r+n;if(Q[t]!=null)return Q[t];try{W.style[r]=n}catch{return Q[t]=!1,!1}if(Wo[r])n=n.replace(zo,Bo);else if(W.style[r]===""&&(n=h.css+n,n==="-ms-flex"&&(W.style[r]="-ms-flexbox"),W.style[r]=n,W.style[r]===""))return Q[t]=!1,!1;return W.style[r]="",Q[t]=n,Q[t]}function $o(){function r(i){if(i.type==="keyframes"){var o=i;o.at=$r(o.at)}}function e(i){for(var o in i){var a=i[o];if(o==="fallbacks"&&Array.isArray(a)){i[o]=a.map(e);continue}var s=!1,u=Fe(o);u&&u!==o&&(s=!0);var f=!1,c=Rt(u,L(a));c&&c!==a&&(f=!0),(s||f)&&(s&&delete i[o],i[u||o]=c||a)}return i}function n(i,o){return o.type!=="style"?i:e(i)}function t(i,o){return Rt(o,L(i))||i}return{onProcessRule:r,onProcessStyle:n,onChangeValue:t}}var Gr=$o;function Uo(){var r=function(n,t){return n.length===t.length?n>t?1:-1:n.length-t.length};return{onProcessStyle:function(n,t){if(t.type!=="style")return n;for(var i={},o=Object.keys(n).sort(r),a=0;a<o.length;a++)i[o[a]]=n[o[a]];return i}}}var Jr=Uo;var Ho=function(e){return e===void 0&&(e={}),{plugins:[gr(),br(e.observable),xr(),Pr(),wr(),kr(),Cr(),Nr(),Tr(e.defaultUnit),Ar(),Gr(),Jr()]}},Ve=Ho;function Go(r){var e={};return function(n){return e[n]===void 0&&(e[n]=r(n)),e[n]}}var qr=Go;var Jo=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|default|defer|dir|disabled|download|draggable|encType|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|itemProp|itemScope|itemType|itemID|itemRef|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,Wl=qr(function(r){return Jo.test(r)||r.charCodeAt(0)===111&&r.charCodeAt(1)===110&&r.charCodeAt(2)<91});var qo=1e4,Ko=ie(Ve()),Xo=function(e){e===void 0&&(e=Ko);var n=new Map,t=0,i,o=function(){return(!i||i.rules.index.length>qo)&&(i=e.createStyleSheet().attach()),i};function a(){var s=arguments,u=JSON.stringify(s),f=n.get(u);if(f)return f.className;var c=[];for(var d in s){var p=s[d];if(!Array.isArray(p)){c.push(p);continue}for(var m=0;m<p.length;m++)c.push(p[m])}for(var y={},v=[],w=0;w<c.length;w++){var k=c[w];if(k){var P=k;if(typeof k=="string"){var O=n.get(k);O&&(O.labels.length&&v.push.apply(v,O.labels),P=O.style)}P.label&&v.indexOf(P.label)===-1&&v.push(P.label),Object.assign(y,P)}}delete y.label;var S=v.length===0?"css":v.join("-"),T=S+"-"+t++;o().addRule(T,y);var E=o().classes[T],A={style:y,labels:v,className:E};return n.set(u,A),n.set(E,A),E}return a.getSheet=o,a},Yo=Xo(),Kr=Yo;var ia=Number.MIN_SAFE_INTEGER||-1e9,oa=function(){return ia++},aa=Qo({classNamePrefix:"",disableStylesGeneration:!1,isSSR:!M}),Qr=new Map,Ct=function(e,n){var t=e.managers;if(t)return t[n]||(t[n]=new ft),t[n];var i=Qr.get(n);return i||(i=new ft,Qr.set(n,i)),i},en=function(e){var n=e.sheet,t=e.context,i=e.index,o=e.theme;if(n){var a=Ct(t,i);a.manage(o),t.registry&&t.registry.add(n)}},sa=function(e){if(e.sheet){var n=Ct(e.context,e.index);n.unmanage(e.theme)}},la=ie(Ve()),nn=new WeakMap,on=function(e){return nn.get(e)},ua=function(e,n){nn.set(e,n)},fa=function(e){var n=e.styles;return typeof n!="function"?n:n(e.theme)};function ca(r,e){var n;r.context.id&&r.context.id.minify!=null&&(n=r.context.id.minify);var t=r.context.classNamePrefix||"";r.name&&!n&&(t+=r.name.replace(/\s/g,"-")+"-");var i="";return r.name&&(i=r.name+", "),i+=typeof r.styles=="function"?"Themed":"Unthemed",b({},r.sheetOptions,{index:r.index,meta:i,classNamePrefix:t,link:e,generateId:r.sheetOptions&&r.sheetOptions.generateId?r.sheetOptions.generateId:r.context.generateId})}var da=function(e){if(!e.context.disableStylesGeneration){var n=Ct(e.context,e.index),t=n.get(e.theme);if(t)return t;var i=e.context.jss||la,o=fa(e),a=ct(o),s=i.createStyleSheet(o,ca(e,a!==null));return ua(s,{dynamicStyles:a,styles:o}),n.add(e.theme,s),s}},ha=function(e,n){for(var t in n)e.deleteRule(n[t])},pa=function(e,n,t){for(var i in t)n.updateOne(t[i],e)},ma=function(e,n){var t=on(e);if(t){var i={};for(var o in t.dynamicStyles)for(var a=e.rules.index.length,s=e.addRule(o,t.dynamicStyles[o]),u=a;u<e.rules.index.length;u++){var f=e.rules.index[u];e.updateOne(f,n),i[s===f?o:f.key]=f}return i}},va=function(e,n){if(!n)return e.classes;var t=on(e);if(!t)return e.classes;var i={};for(var o in t.styles)i[o]=e.classes[o],o in n&&(i[o]+=" "+e.classes[n[o].key]);return i};function tn(r){return r?rn:Zo.useInsertionEffect||ta}var kt={},N=function(e,n){n===void 0&&(n={});var t=n,i=t.index,o=i===void 0?oa():i,a=t.theming,s=t.name,u=ce(t,["index","theming","name"]),f=a&&a.context||Xe,c=function(m){return typeof e=="function"&&(m||Xr(f))||kt},d={};return function(m){var y=ea(!0),v=Xr(aa),w=c(m&&m.theme),k=Yr(function(){var T=da({context:v,styles:e,name:s,theme:w,index:o,sheetOptions:u});return T&&v.isSSR&&en({index:o,context:v,sheet:T,theme:w}),[T,T?ma(T,m):null]},[v,w]),P=k[0],O=k[1];tn(v.isSSR)(function(){P&&O&&!y.current&&pa(m,P,O)},[m]),tn(v.isSSR)(function(){return P&&en({index:o,context:v,sheet:P,theme:w}),function(){P&&(sa({index:o,context:v,sheet:P,theme:w}),O&&ha(P,O))}},[P]);var S=Yr(function(){return P&&O?va(P,O):d},[P,O]);return Zr(S),Zr(w===kt?"No theme":w),rn(function(){y.current=!1}),S}};var iu=Symbol("react-jss-styled");var ga=function(e){return e===void 0&&(e=Kr),function(t,i){var o=arguments;if(i&&i.css){var a=e(i.css),s=Object.assign({},i);s.className=i.className?i.className+" "+a:a,delete s.css,o[1]=s}return ra.apply(void 0,o)}},ou=ga();var R="teknify";import{jsx as an}from"react/jsx-runtime";var ya=r=>an("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",className:"size-6",...r,children:an("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m20.25 7.5-.625 10.632a2.25 2.25 0 0 1-2.247 2.118H6.622a2.25 2.25 0 0 1-2.247-2.118L3.75 7.5M10 11.25h4M3.375 7.5h17.25c.621 0 1.125-.504 1.125-1.125v-1.5c0-.621-.504-1.125-1.125-1.125H3.375c-.621 0-1.125.504-1.125 1.125v1.5c0 .621.504 1.125 1.125 1.125Z"})}),Nt=ya;import{jsx as sn}from"react/jsx-runtime";var ba=r=>sn("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",className:"size-6",...r,children:sn("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M14.857 17.082a23.848 23.848 0 0 0 5.454-1.31A8.967 8.967 0 0 1 18 9.75V9A6 6 0 0 0 6 9v.75a8.967 8.967 0 0 1-2.312 6.022c1.733.64 3.56 1.085 5.455 1.31m5.714 0a24.255 24.255 0 0 1-5.714 0m5.714 0a3 3 0 1 1-5.714 0"})}),Ot=ba;import{jsx as ln}from"react/jsx-runtime";var xa=r=>ln("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",className:"size-6",...r,children:ln("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9 12.75 11.25 15 15 9.75M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"})}),Tt=xa;import{jsx as fn,jsxs as wa}from"react/jsx-runtime";var Sa=N({button:r=>({width:40,height:40,display:"flex",justifyContent:"center",alignItems:"center",borderRadius:"50%",backgroundColor:"#fff",border:"none",cursor:"pointer",transition:"all 0.2s ease-in-out",position:"relative","&:hover":{backgroundColor:"#f5f5f5"},...r.active&&{backgroundColor:"#f1f1f1"}}),badge:{position:"absolute",top:0,right:0,padding:"2px 6px",height:18,minWidth:18,backgroundColor:"red",display:"flex",justifyContent:"center",alignItems:"center",borderRadius:100,color:"#fff",fontSize:10,visibility:"hidden",opacity:0,transition:"all 0.2s ease-in-out",scale:.8,userSelect:"none"},badgeOpen:{visibility:"visible",opacity:1,scale:1}},{name:R}),Pa=({className:r,counts:e,active:n,...t})=>{let i=Sa({counts:e,active:n}),o=un(()=>e<=99?`${e}`:"99+",[e]),a=un(()=>e>0,[e]);return wa("button",{...t,className:`${i.button} ${r}`,children:[fn(Ot,{width:24,height:24}),fn("div",{className:x(i.badge,a&&i.badgeOpen),children:o})]})},Et=Pa;import{jsx as Ca}from"react/jsx-runtime";var Ra=N({button:r=>({textDecoration:"none",background:`var(--${r.variant}-color)`,borderRadius:"var(--border-radius)",color:r.variant==="tertiary"?"#000":"#fff",fontWeight:500,border:"none",cursor:"pointer",fontSize:12,...r.icon?{width:24,height:24,display:"flex",alignItems:"center",justifyContent:"center"}:{minWidth:100,padding:"8px 12px"},"&:hover":{background:`var(--${r.variant}-color-darker)`}})},{name:R}),ka=({className:r,variant:e="tertiary",icon:n=!1,...t})=>{let i=Ra({variant:e,icon:n});return Ca("button",{...t,className:x(i.button,r)})},F=ka;import{useContext as Oa}from"react";import{TeknifyClient as Au}from"@tnf-dev/js";import{createContext as Na,useMemo as Fu}from"react";import{jsx as Lu}from"react/jsx-runtime";var B=Na({applicationId:"",subscriberId:""});import{jsx as Ia}from"react/jsx-runtime";var Ta=N({empty:{textAlign:"center",padding:"20px 0"}},{name:R}),Ea=()=>{let r=Ta(),{locale:e}=Oa(B);return Ia("div",{className:x(r.empty),children:e.components.Empty.noNotifications})},It=Ea;import{useCallback as Xa,useState as gn}from"react";import Ya from"react-infinite-scroller";import{useCallback as At,useContext as Aa,useEffect as cn,useState as $}from"react";var dn=()=>{let{client:r}=Aa(B),[e,n]=$([]),[t,i]=$(!1),[o,a]=$(null),[s,u]=$(!1),[f,c]=$(!0),[d,p]=$(!0),[m,y]=$(),[v,w]=$(0),k=At(async S=>{try{n(T=>T.map(E=>E._id===S?{...E,isRead:!0}:E)),await r.notification.markAsRead(S)}catch{n(E=>E.map(A=>A._id===S?{...A,isRead:!1}:A))}},[]),P=At(async()=>{if(!(s||t))try{u(!0);let S=await r.notification.getNotifications({...m?{cursor:m}:{}});n(T=>[...T,...S.data.filter(E=>!T.find(A=>A._id===E._id)).map(E=>({...E,markAsRead:()=>k(E._id)}))]),p(!!S.pagination.continueCursor),y(S.pagination.continueCursor),w(S.unread)}catch(S){i(!0),S instanceof Error?a(S):a(new Error("Unknown error"))}finally{u(!1),c(!1)}},[s,m,k,t]);cn(()=>{P()},[]),cn(()=>{let S=(T,{counts:E})=>{w(E.unread),n(A=>[...T.filter(q=>{let Lt=A.findIndex(xn=>xn._id===q._id);return Lt!==-1?(A[Lt]={...q,markAsRead:()=>k(q._id)},!1):!0}).map(q=>({...q,markAsRead:()=>k(q._id)})),...A])};return r.notification.on(S),()=>{r.notification.off(S)}},[k]);let O=At(()=>{P()},[P]);return{notifications:e,isLoading:s,isFirstLoad:f,isError:t,error:o,hasMore:d,unread:v,fetchMore:O}};import{useContext as _a}from"react";import{jsx as Fa}from"react/jsx-runtime";var ja=N({loader:{textAlign:"center",padding:"20px 0"}}),Ma=()=>{let r=ja(),{locale:e}=_a(B);return Fa("div",{className:x(r.loader),children:e.components.Loader.loading})},_t=Ma;import{useContext as Va}from"react";import{jsx as hn,jsxs as Wa}from"react/jsx-runtime";var La=N({notificationHeader:{padding:"10px 15px",borderBottom:"1px solid #0001",display:"flex",justifyContent:"space-between",background:"var(--card-background-color)",borderRadius:"5px 5px 0 0",height:36,alignItems:"center"},notificationHeaderTitle:{fontSize:15,fontWeight:600,flex:1}},{name:R}),Da=()=>{let r=La(),{locale:e}=Va(B);return Wa("div",{className:x(r.notificationHeader),children:[hn("h2",{className:x(r.notificationHeaderTitle),children:e.components.NotificationHeader.notifications}),hn("div",{})]})},jt=Da;import Ua from"sanitize-html";import{jsx as Le,jsxs as $a}from"react/jsx-runtime";var za=N({actions:{position:"absolute",top:5,right:5,display:"flex",gap:5,padding:0,background:"#fafafa",borderRadius:5},button:{background:"transparent","&:hover":{background:"#fafafa"}}},{name:R}),Ba=({notification:r})=>{let e=za();return $a("div",{className:x(e.actions,`${R}-actions`),children:[!r.isRead&&Le(F,{icon:!0,onClick:r.markAsRead,className:x(e.button),children:Le(Tt,{width:12,height:12})}),Le(F,{icon:!0,className:x(e.button),children:Le(Nt,{width:12,height:12})})]})},pn=Ba;import{jsx as j,jsxs as De}from"react/jsx-runtime";var Ha=N({notificationItem:{padding:"10px 15px",display:"flex",flexWrap:"wrap",columnGap:10,flexDirection:"column",margin:10,background:"var(--card-background-color)",borderRadius:10,border:"1px solid #ddd",position:"relative",[`& .${R}-actions`]:{visibility:"hidden",opacity:0,transition:"0.3s ease-in-out"},[`&:hover .${R}-actions`]:{visibility:"visible",opacity:1}},notificationItemImage:{width:24,height:24,objectFit:"cover"},notificationItemTitle:{fontSize:14,fontWeight:600,paddingBottom:5,whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},notificationItemBody:{fontSize:14,lineClamp:2,overflow:"hidden",textOverflow:"ellipsis"},notificationItemActions:{display:"flex",gap:8,marginTop:10,alignItems:"center",justifyContent:"flex-end",width:"100%"},unreadDot:{width:7,height:7,borderRadius:100,background:"var(--primary-color)",position:"relative","&::before":{content:'""',position:"absolute",top:-3,left:-3,width:"calc(100% + 6px)",height:"calc(100% + 6px)",borderRadius:100,background:"var(--primary-color)",opacity:.2}}},{name:R}),Ga=({notification:r})=>{let e=Ha();return De("div",{className:x(e.notificationItem),children:[De("div",{style:{display:"flex",gap:10,width:"100%"},children:[j("div",{children:r.icon&&j("img",{src:r.icon,alt:r.title,width:32,height:32,className:x(e.notificationItemImage)})}),De("div",{style:{flex:1,overflow:"hidden"},children:[j("h3",{className:x(e.notificationItemTitle),children:r.title}),j("div",{dangerouslySetInnerHTML:{__html:Ua(r.message)},className:x(e.notificationItemBody)})]}),!r.isRead&&j("div",{className:x(e.unreadDot)})]}),De("div",{className:x(e.notificationItemActions),children:[r.secondary_action&&j("a",{href:r.secondary_action.href,target:r.secondary_action.target,rel:r.secondary_action.rel,children:j(F,{variant:"secondary",children:r.secondary_action.label})}),r.primary_action&&j("a",{href:r.primary_action.href,target:r.primary_action.target,rel:r.primary_action.rel,children:j(F,{variant:"primary",children:r.primary_action.label})})]}),j(pn,{notification:r})]})},Mt=Ga;import{useEffect as mn,useMemo as Ft,useState as vn}from"react";import{jsx as Ka}from"react/jsx-runtime";var Ja=N({popover:{width:"100%",height:"100%",maxWidth:400,maxHeight:500,boxShadow:"0 10px 40px #0001",position:"fixed",background:"#fff",borderRadius:10,visibility:"hidden",opacity:0,scale:.8,transition:"all 0.3s",backgroundColor:"var(--background-color)",border:"1px solid var(--card-background-color)"},popoverOpen:{top:0,left:0,visibility:"visible",opacity:1,scale:1}},{name:R}),qa=({open:r,anchorElement:e,onClose:n,children:t})=>{let i=Ja(),[o,a]=vn(null),[s,u]=vn(typeof window>"u"?0:window.innerWidth),f=Ft(()=>{if(!e)return 0;let p=e.getBoundingClientRect();return p.top+p.height+20},[e,s]),c=Ft(()=>e?e.getBoundingClientRect().left+10:0,[e,s]),d=Ft(()=>{if(!o||!e)return!0;let p=e.getBoundingClientRect(),m=o.getBoundingClientRect();return p.left+m.width>s},[o,e,s]);return mn(()=>{let p=()=>{r&&n?.()};return window.addEventListener("click",p),()=>{window.removeEventListener("click",p)}},[r]),mn(()=>{let p=()=>{u(window.innerWidth)};return window.addEventListener("resize",p),()=>{window.removeEventListener("resize",p)}},[]),Ka("div",{className:x(i.popover,r&&i.popoverOpen),style:{top:f,left:c,...d?{transform:"translateX(calc(-100% + 20px))"}:{}},ref:a,onClick:p=>{p.stopPropagation()},children:t})},Vt=qa;import{Fragment as We,jsx as _,jsxs as yn}from"react/jsx-runtime";var Za=N({inboxContent:{height:"100%",display:"flex",flexDirection:"column"},inboxContentList:{flex:1,overflowY:"auto"}},{name:R}),Qa={Bell:Et,Button:F,NotificationHeader:jt,Empty:It,Loader:_t,NotificationItem:Mt,NotificationPopover:Vt},es=({components:r})=>{let[e,n]=gn(null),[t,i]=gn(!1),{Bell:o,Empty:a,Loader:s,NotificationHeader:u,NotificationItem:f,NotificationPopover:c}={...Qa,...r},d=Xa(()=>{i(S=>!S)},[]),{notifications:p,unread:m,isFirstLoad:y,hasMore:v,fetchMore:w,isError:k,error:P}=dn(),O=Za();return yn(We,{children:[_(o,{onClick:S=>{S.stopPropagation(),d()},ref:n,active:t,counts:m}),_(c,{open:t,anchorElement:e,onClose:d,children:yn("div",{className:x(O.inboxContent),children:[_(u,{}),_("div",{className:x(O.inboxContentList),children:_(Ya,{loadMore:w,hasMore:v,loader:_(s,{},0),useWindow:!1,children:y?_(We,{}):_(We,{children:p.length?_(We,{children:p.map(S=>_(f,{notification:S},S._id))}):_(a,{})})})})]})})]})},bn=es;export{Et as Bell,F as Button,It as Empty,bn as Inbox,_t as Loader,jt as NotificationHeader,Mt as NotificationItem,Vt as NotificationPopover,bn as TeknifyInbox};
10
10
  /*! Bundled license information:
11
11
 
12
12
  react-is/cjs/react-is.production.min.js: