@qratilabs/qrati-connect 2.7.3 → 2.8.0

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 (91) hide show
  1. package/CHANGELOG.md +7 -0
  2. package/element/{B8jogRzT.js → 5CiAlCjU.js} +4 -4
  3. package/element/BDQCQkX_.js +1 -0
  4. package/element/BPMOttLj.js +1 -0
  5. package/element/BVN_VOhG.js +1 -0
  6. package/element/Bajer8z8.js +17 -0
  7. package/element/Bf4EqlE2.js +1 -0
  8. package/element/C8NFfssj.js +8 -0
  9. package/element/DQu7AGsF.js +1 -0
  10. package/element/Dqtdp5CD.js +2 -0
  11. package/element/EgsEX4Mk.js +5 -0
  12. package/element/ZsvY3_BP.js +32 -0
  13. package/element/hkAPI6mV.js +1 -0
  14. package/element/nSrWCryV.js +5 -0
  15. package/element/web.es.js +419 -419
  16. package/package.json +1 -1
  17. package/{element/BjbDXTeP.js → react/-Gc1XJZE.js} +4 -4
  18. package/react/2j0Uva3f.js +2 -0
  19. package/react/5Kn_YMsi.js +5 -0
  20. package/react/BHul_-9n.js +1 -0
  21. package/react/BMpF19BV.js +1 -0
  22. package/react/BOcElY6J.js +1 -0
  23. package/react/BW8JB9yA.js +1 -0
  24. package/react/B_X6sOg3.js +1 -0
  25. package/react/BfMBYO4b.js +1 -0
  26. package/react/C72dPYhQ.js +5 -0
  27. package/react/C83WiqkM.js +1 -0
  28. package/react/CIEA9OWd.js +1 -0
  29. package/react/COOPnhZa.js +1 -0
  30. package/react/CX7kEcm7.js +1 -0
  31. package/react/CYLiwpjD.js +32 -0
  32. package/react/{DSAOtDOg.js → CYZuQpl9.js} +4 -4
  33. package/react/Ca2GW-tU.js +1 -0
  34. package/react/CbCxF_PL.js +1 -0
  35. package/react/CjSSZsql.js +1 -0
  36. package/react/{CDAGXOJa.js → CrKuU6G6.js} +1 -1
  37. package/react/CzkP4JdG.js +1 -0
  38. package/react/D3gIYCSb.js +1 -0
  39. package/react/DEk8rfah.js +1 -0
  40. package/react/DFgDBn6O.js +17 -0
  41. package/react/{B57jvRJw.js → T39bw9GN.js} +1 -1
  42. package/react/index.cjs +1 -1
  43. package/react/index.mjs +381 -381
  44. package/react/u07nHbMK.js +1 -0
  45. package/umd/web.umd.js +1 -1
  46. package/element/BiQECCnr.js +0 -1
  47. package/element/COUnPxHl.js +0 -6
  48. package/element/CkfXzc1_.js +0 -1
  49. package/element/DGeYAYfl.js +0 -3
  50. package/element/DXPR6JWg.js +0 -1
  51. package/element/DqOnDVHH.js +0 -1
  52. package/element/KwvjdBxj.js +0 -17
  53. package/element/ThtSVXLE.js +0 -32
  54. package/element/gajcOMzQ.js +0 -1
  55. package/element/ojjN3KY4.js +0 -1
  56. package/react/B0pbGxj0.js +0 -1
  57. package/react/BBaYBpSS.js +0 -1
  58. package/react/BUm8-ZtV.js +0 -1
  59. package/react/Bran9aUe.js +0 -32
  60. package/react/BzMDry65.js +0 -1
  61. package/react/CMUYyO6F.js +0 -1
  62. package/react/CPs8NoX7.js +0 -1
  63. package/react/CdZcv5CJ.js +0 -1
  64. package/react/Ce4GGag_.js +0 -1
  65. package/react/CzNVO0Zz.js +0 -1
  66. package/react/D6h9tRAZ.js +0 -1
  67. package/react/DCjmEjZr.js +0 -1
  68. package/react/DJ-3Sziz.js +0 -1
  69. package/react/DKvJBrWM.js +0 -8
  70. package/react/DaQR1Bft.js +0 -1
  71. package/react/Dbq_PyC6.js +0 -3
  72. package/react/DdmNkEML.js +0 -1
  73. package/react/buiUjKpV.js +0 -6
  74. package/react/dLaHt9rf.js +0 -1
  75. package/react/mNvBH-um.js +0 -17
  76. package/react/zrUJi_8F.js +0 -1
  77. /package/element/{C2ydm0ZD.js → Ccwm5LwS.js} +0 -0
  78. /package/element/{DUlbZyIi.js → DD-DUfz5.js} +0 -0
  79. /package/element/{BppxGns9.js → DMDEuqn7.js} +0 -0
  80. /package/element/{CjmNvKgB.js → DSjmSa7l.js} +0 -0
  81. /package/element/{CziefUVo.js → ZShDCNL_.js} +0 -0
  82. /package/react/{DtvJNH06.js → BqRDSbh4.js} +0 -0
  83. /package/react/{CO70kETi.js → Bqe_56Ho.js} +0 -0
  84. /package/react/{CvLw8owR.js → BxS4S1Bm.js} +0 -0
  85. /package/react/{BT55gXKs.js → CCCbXwws.js} +0 -0
  86. /package/react/{Bxitmzur.js → CEEUMvOM.js} +0 -0
  87. /package/react/{CR2MwRBM.js → CssqM9iA.js} +0 -0
  88. /package/react/{CtCRzhKd.js → DV8H8PH6.js} +0 -0
  89. /package/react/{zyOknCLQ.js → DYyT8DeU.js} +0 -0
  90. /package/react/{LDusNFdQ.js → DvZVbBR7.js} +0 -0
  91. /package/react/{D5puLxf7.js → bYucjLbl.js} +0 -0
@@ -1 +0,0 @@
1
- import{n as e}from"./2R3GoXB1.js";var t,n,r,o,s,i,a,l,c,u,d,f,_={},p=[],h=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,m=Array.isArray;function b(e,t){for(var n in t)e[n]=t[n];return e}function v(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function g(e,n,r){var o,s,i,a={};for(i in n)"key"==i?o=n[i]:"ref"==i?s=n[i]:a[i]=n[i];if(arguments.length>2&&(a.children=arguments.length>3?t.call(arguments,2):r),"function"==typeof e&&null!=e.defaultProps)for(i in e.defaultProps)void 0===a[i]&&(a[i]=e.defaultProps[i]);return y(e,a,o,s,null)}function y(e,t,o,s,i){var a={type:e,props:t,key:o,ref:s,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:null==i?++r:i,__i:-1,__u:0};return null==i&&null!=n.vnode&&n.vnode(a),a}function w(){return{current:null}}function k(e){return e.children}function E(e,t){this.props=e,this.context=t}function x(e,t){if(null==t)return e.__?x(e.__,e.__i+1):null;for(var n;t<e.__k.length;t++)if(null!=(n=e.__k[t])&&null!=n.__e)return n.__e;return"function"==typeof e.type?x(e):null}function S(e){if(e.__P&&e.__d){var t=e.__v,r=t.__e,o=[],s=[],i=b({},t);i.__v=t.__v+1,n.vnode&&n.vnode(i),U(e.__P,i,t,e.__n,e.__P.namespaceURI,32&t.__u?[r]:null,o,null==r?x(t):r,!!(32&t.__u),s),i.__v=t.__v,i.__.__k[i.__i]=i,$(o,i,s),t.__e=t.__=null,i.__e!=r&&T(i)}}function T(e){if(null!=(e=e.__)&&null!=e.__c)return e.__e=e.__c.base=null,e.__k.some(function(t){if(null!=t&&null!=t.__e)return e.__e=e.__c.base=t.__e}),T(e)}function C(e){(!e.__d&&(e.__d=!0)&&o.push(e)&&!O.__r++||s!=n.debounceRendering)&&((s=n.debounceRendering)||i)(O)}function O(){try{for(var e,t=1;o.length;)o.length>t&&o.sort(a),e=o.shift(),t=o.length,S(e)}finally{o.length=O.__r=0}}function N(e,t,n,r,o,s,i,a,l,c,u){var d,f,h,b,v,g,w,E=r&&r.__k||p,S=t.length;for(l=function(e,t,n,r,o){var s,i,a,l,c,u=n.length,d=u,f=0;for(e.__k=new Array(o),s=0;s<o;s++)null!=(i=t[s])&&"boolean"!=typeof i&&"function"!=typeof i?("string"==typeof i||"number"==typeof i||"bigint"==typeof i||i.constructor==String?i=e.__k[s]=y(null,i,null,null,null):m(i)?i=e.__k[s]=y(k,{children:i},null,null,null):void 0===i.constructor&&i.__b>0?i=e.__k[s]=y(i.type,i.props,i.key,i.ref?i.ref:null,i.__v):e.__k[s]=i,l=s+f,i.__=e,i.__b=e.__b+1,a=null,-1!=(c=i.__i=A(i,n,l,d))&&(d--,(a=n[c])&&(a.__u|=2)),null==a||null==a.__v?(-1==c&&(o>u?f--:o<u&&f++),"function"!=typeof i.type&&(i.__u|=4)):c!=l&&(c==l-1?f--:c==l+1?f++:(c>l?f--:f++,i.__u|=4))):e.__k[s]=null;if(d)for(s=0;s<u;s++)null!=(a=n[s])&&!(2&a.__u)&&(a.__e==r&&(r=x(a)),j(a,a));return r}(n,t,E,l,S),d=0;d<S;d++)null!=(h=n.__k[d])&&(f=-1!=h.__i&&E[h.__i]||_,h.__i=d,g=U(e,h,f,o,s,i,a,l,c,u),b=h.__e,h.ref&&f.ref!=h.ref&&(f.ref&&G(f.ref,null,h),u.push(h.ref,h.__c||b,h)),null==v&&null!=b&&(v=b),(w=!!(4&h.__u))||f.__k===h.__k?l=I(h,l,e,w):"function"==typeof h.type&&void 0!==g?l=g:b&&(l=b.nextSibling),h.__u&=-7);return n.__e=v,l}function I(e,t,n,r){var o,s;if("function"==typeof e.type){for(o=e.__k,s=0;o&&s<o.length;s++)o[s]&&(o[s].__=e,t=I(o[s],t,n,r));return t}e.__e!=t&&(r&&(t&&e.type&&!t.parentNode&&(t=x(e)),n.insertBefore(e.__e,t||null)),t=e.__e);do{t=t&&t.nextSibling}while(null!=t&&8==t.nodeType);return t}function R(e,t){return t=t||[],null==e||"boolean"==typeof e||(m(e)?e.some(function(e){R(e,t)}):t.push(e)),t}function A(e,t,n,r){var o,s,i,a=e.key,l=e.type,c=t[n],u=null!=c&&!(2&c.__u);if(null===c&&null==a||u&&a==c.key&&l==c.type)return n;if(r>(u?1:0))for(o=n-1,s=n+1;o>=0||s<t.length;)if(null!=(c=t[i=o>=0?o--:s++])&&!(2&c.__u)&&a==c.key&&l==c.type)return i;return-1}function P(e,t,n){"-"==t[0]?e.setProperty(t,null==n?"":n):e[t]=null==n?"":"number"!=typeof n||h.test(t)?n:n+"px"}function D(e,t,n,r,o){var s,i;e:if("style"==t)if("string"==typeof n)e.style.cssText=n;else{if("string"==typeof r&&(e.style.cssText=r=""),r)for(t in r)n&&t in n||P(e.style,t,"");if(n)for(t in n)r&&n[t]==r[t]||P(e.style,t,n[t])}else if("o"==t[0]&&"n"==t[1])s=t!=(t=t.replace(l,"$1")),i=t.toLowerCase(),t=i in e||"onFocusOut"==t||"onFocusIn"==t?i.slice(2):t.slice(2),e.l||(e.l={}),e.l[t+s]=n,n?r?n.u=r.u:(n.u=c,e.addEventListener(t,s?d:u,s)):e.removeEventListener(t,s?d:u,s);else{if("http://www.w3.org/2000/svg"==o)t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("width"!=t&&"height"!=t&&"href"!=t&&"list"!=t&&"form"!=t&&"tabIndex"!=t&&"download"!=t&&"rowSpan"!=t&&"colSpan"!=t&&"role"!=t&&"popover"!=t&&t in e)try{e[t]=null==n?"":n;break e}catch(e){}"function"==typeof n||(null==n||!1===n&&"-"!=t[4]?e.removeAttribute(t):e.setAttribute(t,"popover"==t&&1==n?"":n))}}function L(e){return function(t){if(this.l){var r=this.l[t.type+e];if(null==t.t)t.t=c++;else if(t.t<r.u)return;return r(n.event?n.event(t):t)}}}function U(e,t,r,o,s,i,a,l,c,u){var d,f,_,h,g,y,w,x,S,T,C,O,I,R,A,P=t.type;if(void 0!==t.constructor)return null;128&r.__u&&(c=!!(32&r.__u),i=[l=t.__e=r.__e]),(d=n.__b)&&d(t);e:if("function"==typeof P)try{if(x=t.props,S=P.prototype&&P.prototype.render,T=(d=P.contextType)&&o[d.__c],C=d?T?T.props.value:d.__:o,r.__c?w=(f=t.__c=r.__c).__=f.__E:(S?t.__c=f=new P(x,C):(t.__c=f=new E(x,C),f.constructor=P,f.render=H),T&&T.sub(f),f.state||(f.state={}),f.__n=o,_=f.__d=!0,f.__h=[],f._sb=[]),S&&null==f.__s&&(f.__s=f.state),S&&null!=P.getDerivedStateFromProps&&(f.__s==f.state&&(f.__s=b({},f.__s)),b(f.__s,P.getDerivedStateFromProps(x,f.__s))),h=f.props,g=f.state,f.__v=t,_)S&&null==P.getDerivedStateFromProps&&null!=f.componentWillMount&&f.componentWillMount(),S&&null!=f.componentDidMount&&f.__h.push(f.componentDidMount);else{if(S&&null==P.getDerivedStateFromProps&&x!==h&&null!=f.componentWillReceiveProps&&f.componentWillReceiveProps(x,C),t.__v==r.__v||!f.__e&&null!=f.shouldComponentUpdate&&!1===f.shouldComponentUpdate(x,f.__s,C)){t.__v!=r.__v&&(f.props=x,f.state=f.__s,f.__d=!1),t.__e=r.__e,t.__k=r.__k,t.__k.some(function(e){e&&(e.__=t)}),p.push.apply(f.__h,f._sb),f._sb=[],f.__h.length&&a.push(f);break e}null!=f.componentWillUpdate&&f.componentWillUpdate(x,f.__s,C),S&&null!=f.componentDidUpdate&&f.__h.push(function(){f.componentDidUpdate(h,g,y)})}if(f.context=C,f.props=x,f.__P=e,f.__e=!1,O=n.__r,I=0,S)f.state=f.__s,f.__d=!1,O&&O(t),d=f.render(f.props,f.state,f.context),p.push.apply(f.__h,f._sb),f._sb=[];else do{f.__d=!1,O&&O(t),d=f.render(f.props,f.state,f.context),f.state=f.__s}while(f.__d&&++I<25);f.state=f.__s,null!=f.getChildContext&&(o=b(b({},o),f.getChildContext())),S&&!_&&null!=f.getSnapshotBeforeUpdate&&(y=f.getSnapshotBeforeUpdate(h,g)),R=null!=d&&d.type===k&&null==d.key?M(d.props.children):d,l=N(e,m(R)?R:[R],t,r,o,s,i,a,l,c,u),f.base=t.__e,t.__u&=-161,f.__h.length&&a.push(f),w&&(f.__E=f.__=null)}catch(e){if(t.__v=null,c||null!=i)if(e.then){for(t.__u|=c?160:128;l&&8==l.nodeType&&l.nextSibling;)l=l.nextSibling;i[i.indexOf(l)]=null,t.__e=l}else{for(A=i.length;A--;)v(i[A]);F(t)}else t.__e=r.__e,t.__k=r.__k,e.then||F(t);n.__e(e,t,r)}else null==i&&t.__v==r.__v?(t.__k=r.__k,t.__e=r.__e):l=t.__e=z(r.__e,t,r,o,s,i,a,c,u);return(d=n.diffed)&&d(t),128&t.__u?void 0:l}function F(e){e&&(e.__c&&(e.__c.__e=!0),e.__k&&e.__k.some(F))}function $(e,t,r){for(var o=0;o<r.length;o++)G(r[o],r[++o],r[++o]);n.__c&&n.__c(t,e),e.some(function(t){try{e=t.__h,t.__h=[],e.some(function(e){e.call(t)})}catch(e){n.__e(e,t.__v)}})}function M(e){return"object"!=typeof e||null==e||e.__b>0?e:m(e)?e.map(M):b({},e)}function z(e,r,o,s,i,a,l,c,u){var d,f,p,h,b,g,y,w=o.props||_,k=r.props,E=r.type;if("svg"==E?i="http://www.w3.org/2000/svg":"math"==E?i="http://www.w3.org/1998/Math/MathML":i||(i="http://www.w3.org/1999/xhtml"),null!=a)for(d=0;d<a.length;d++)if((b=a[d])&&"setAttribute"in b==!!E&&(E?b.localName==E:3==b.nodeType)){e=b,a[d]=null;break}if(null==e){if(null==E)return document.createTextNode(k);e=document.createElementNS(i,E,k.is&&k),c&&(n.__m&&n.__m(r,a),c=!1),a=null}if(null==E)w===k||c&&e.data==k||(e.data=k);else{if(a=a&&t.call(e.childNodes),!c&&null!=a)for(w={},d=0;d<e.attributes.length;d++)w[(b=e.attributes[d]).name]=b.value;for(d in w)b=w[d],"dangerouslySetInnerHTML"==d?p=b:"children"==d||d in k||"value"==d&&"defaultValue"in k||"checked"==d&&"defaultChecked"in k||D(e,d,null,b,i);for(d in k)b=k[d],"children"==d?h=b:"dangerouslySetInnerHTML"==d?f=b:"value"==d?g=b:"checked"==d?y=b:c&&"function"!=typeof b||w[d]===b||D(e,d,b,w[d],i);if(f)c||p&&(f.__html==p.__html||f.__html==e.innerHTML)||(e.innerHTML=f.__html),r.__k=[];else if(p&&(e.innerHTML=""),N("template"==r.type?e.content:e,m(h)?h:[h],r,o,s,"foreignObject"==E?"http://www.w3.org/1999/xhtml":i,a,l,a?a[0]:o.__k&&x(o,0),c,u),null!=a)for(d=a.length;d--;)v(a[d]);c||(d="value","progress"==E&&null==g?e.removeAttribute("value"):null!=g&&(g!==e[d]||"progress"==E&&!g||"option"==E&&g!=w[d])&&D(e,d,g,w[d],i),d="checked",null!=y&&y!=e[d]&&D(e,d,y,w[d],i))}return e}function G(e,t,r){try{if("function"==typeof e){var o="function"==typeof e.__u;o&&e.__u(),o&&null==t||(e.__u=e(t))}else e.current=t}catch(e){n.__e(e,r)}}function j(e,t,r){var o,s;if(n.unmount&&n.unmount(e),(o=e.ref)&&(o.current&&o.current!=e.__e||G(o,null,t)),null!=(o=e.__c)){if(o.componentWillUnmount)try{o.componentWillUnmount()}catch(e){n.__e(e,t)}o.base=o.__P=null}if(o=e.__k)for(s=0;s<o.length;s++)o[s]&&j(o[s],t,r||"function"!=typeof e.type);r||v(e.__e),e.__c=e.__=e.__e=void 0}function H(e,t,n){return this.constructor(e,n)}function W(e,r,o){var s,i,a,l;r==document&&(r=document.documentElement),n.__&&n.__(e,r),i=(s="function"==typeof o)?null:o&&o.__k||r.__k,a=[],l=[],U(r,e=(!s&&o||r).__k=g(k,null,[e]),i||_,_,r.namespaceURI,!s&&o?[o]:i?null:r.firstChild?t.call(r.childNodes):null,a,!s&&o?o:i?i.__e:r.firstChild,s,l),$(a,e,l)}function V(e,t){W(e,t,V)}function q(e,n,r){var o,s,i,a,l=b({},e.props);for(i in e.type&&e.type.defaultProps&&(a=e.type.defaultProps),n)"key"==i?o=n[i]:"ref"==i?s=n[i]:l[i]=void 0===n[i]&&null!=a?a[i]:n[i];return arguments.length>2&&(l.children=arguments.length>3?t.call(arguments,2):r),y(e.type,l,o||e.key,s||e.ref,null)}function B(e){function t(e){var n,r;return this.getChildContext||(n=/* @__PURE__ */new Set,(r={})[t.__c]=this,this.getChildContext=function(){return r},this.componentWillUnmount=function(){n=null},this.shouldComponentUpdate=function(e){this.props.value!=e.value&&n.forEach(function(e){e.__e=!0,C(e)})},this.sub=function(e){n.add(e);var t=e.componentWillUnmount;e.componentWillUnmount=function(){n&&n.delete(e),t&&t.call(e)}}),e.children}return t.__c="__cC"+f++,t.__=e,t.Provider=t.__l=(t.Consumer=function(e,t){return e.children(t)}).contextType=t,t}t=p.slice,n={__e:function(e,t,n,r){for(var o,s,i;t=t.__;)if((o=t.__c)&&!o.__)try{if((s=o.constructor)&&null!=s.getDerivedStateFromError&&(o.setState(s.getDerivedStateFromError(e)),i=o.__d),null!=o.componentDidCatch&&(o.componentDidCatch(e,r||{}),i=o.__d),i)return o.__E=o}catch(t){e=t}throw e}},r=0,E.prototype.setState=function(e,t){var n=null!=this.__s&&this.__s!=this.state?this.__s:this.__s=b({},this.state);"function"==typeof e&&(e=e(b({},n),this.props)),e&&b(n,e),null!=e&&this.__v&&(t&&this._sb.push(t),C(this))},E.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),C(this))},E.prototype.render=k,o=[],i="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,a=function(e,t){return e.__v.__b-t.__v.__b},O.__r=0,l=/(PointerCapture)$|Capture$/i,c=0,u=L(!1),d=L(!0),f=0;var K,Y,Q,Z,J=0,X=[],ee=n,te=ee.__b,ne=ee.__r,re=ee.diffed,oe=ee.__c,se=ee.unmount,ie=ee.__;function ae(e,t){ee.__h&&ee.__h(Y,e,J||t),J=0;var n=Y.__H||(Y.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({}),n.__[e]}function le(e){return J=1,ce(Te,e)}function ce(e,t,n){var r=ae(K++,2);if(r.t=e,!r.__c&&(r.__=[n?n(t):Te(void 0,t),function(e){var t=r.__N?r.__N[0]:r.__[0],n=r.t(t,e);t!==n&&(r.__N=[n,r.__[1]],r.__c.setState({}))}],r.__c=Y,!Y.__f)){var o=function(e,t,n){if(!r.__c.__H)return!0;var o=r.__c.__H.__.filter(function(e){return e.__c});if(o.every(function(e){return!e.__N}))return!s||s.call(this,e,t,n);var i=r.__c.props!==e;return o.some(function(e){if(e.__N){var t=e.__[0];e.__=e.__N,e.__N=void 0,t!==e.__[0]&&(i=!0)}}),s&&s.call(this,e,t,n)||i};Y.__f=!0;var s=Y.shouldComponentUpdate,i=Y.componentWillUpdate;Y.componentWillUpdate=function(e,t,n){if(this.__e){var r=s;s=void 0,o(e,t,n),s=r}i&&i.call(this,e,t,n)},Y.shouldComponentUpdate=o}return r.__N||r.__}function ue(e,t){var n=ae(K++,3);!ee.__s&&Se(n.__H,t)&&(n.__=e,n.u=t,Y.__H.__h.push(n))}function de(e,t){var n=ae(K++,4);!ee.__s&&Se(n.__H,t)&&(n.__=e,n.u=t,Y.__h.push(n))}function fe(e){return J=5,pe(function(){return{current:e}},[])}function _e(e,t,n){J=6,de(function(){if("function"==typeof e){var n=e(t());return function(){e(null),n&&"function"==typeof n&&n()}}if(e)return e.current=t(),function(){return e.current=null}},null==n?n:n.concat(e))}function pe(e,t){var n=ae(K++,7);return Se(n.__H,t)&&(n.__=e(),n.__H=t,n.__h=e),n.__}function he(e,t){return J=8,pe(function(){return e},t)}function me(e){var t=Y.context[e.__c],n=ae(K++,9);return n.c=e,t?(n.__??(n.__=!0,t.sub(Y)),t.props.value):e.__}function be(e,t){ee.useDebugValue&&ee.useDebugValue(t?t(e):e)}function ve(e){var t=ae(K++,10),n=le();return t.__=e,Y.componentDidCatch||(Y.componentDidCatch=function(e,r){t.__&&t.__(e,r),n[1](e)}),[n[0],function(){n[1](void 0)}]}function ge(){var e=ae(K++,11);if(!e.__){for(var t=Y.__v;null!==t&&!t.__m&&null!==t.__;)t=t.__;var n=t.__m||(t.__m=[0,0]);e.__="P"+n[0]+"-"+n[1]++}return e.__}function ye(){for(var e;e=X.shift();){var t=e.__H;if(e.__P&&t)try{t.__h.some(Ee),t.__h.some(xe),t.__h=[]}catch(er){t.__h=[],ee.__e(er,e.__v)}}}ee.__b=function(e){Y=null,te&&te(e)},ee.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),ie&&ie(e,t)},ee.__r=function(e){ne&&ne(e),K=0;var t=(Y=e.__c).__H;t&&(Q===Y?(t.__h=[],Y.__h=[],t.__.some(function(e){e.__N&&(e.__=e.__N),e.u=e.__N=void 0})):(t.__h.some(Ee),t.__h.some(xe),t.__h=[],K=0)),Q=Y},ee.diffed=function(e){re&&re(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(1!==X.push(t)&&Z===ee.requestAnimationFrame||((Z=ee.requestAnimationFrame)||ke)(ye)),t.__H.__.some(function(e){e.u&&(e.__H=e.u),e.u=void 0})),Q=Y=null},ee.__c=function(e,t){t.some(function(e){try{e.__h.some(Ee),e.__h=e.__h.filter(function(e){return!e.__||xe(e)})}catch(er){t.some(function(e){e.__h&&(e.__h=[])}),t=[],ee.__e(er,e.__v)}}),oe&&oe(e,t)},ee.unmount=function(e){se&&se(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.some(function(e){try{Ee(e)}catch(e){t=e}}),n.__H=void 0,t&&ee.__e(t,n.__v))};var we="function"==typeof requestAnimationFrame;function ke(e){var t,n=function(){clearTimeout(r),we&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,35);we&&(t=requestAnimationFrame(n))}function Ee(e){var t=Y,n=e.__c;"function"==typeof n&&(e.__c=void 0,n()),Y=t}function xe(e){var t=Y;e.__c=e.__(),Y=t}function Se(e,t){return!e||e.length!==t.length||t.some(function(t,n){return t!==e[n]})}function Te(e,t){return"function"==typeof t?t(e):t}var Ce=class{constructor(){this.listeners=/* @__PURE__ */new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},Oe=new class extends Ce{#e;#t;#n;constructor(){super(),this.#n=e=>{if("undefined"!=typeof window&&window.addEventListener){const t=()=>e();return window.addEventListener("visibilitychange",t,!1),()=>{window.removeEventListener("visibilitychange",t)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#n=e,this.#t?.(),this.#t=e(e=>{"boolean"==typeof e?this.setFocused(e):this.onFocus()})}setFocused(e){this.#e!==e&&(this.#e=e,this.onFocus())}onFocus(){const e=this.isFocused();this.listeners.forEach(t=>{t(e)})}isFocused(){return"boolean"==typeof this.#e?this.#e:"hidden"!==globalThis.document?.visibilityState}},Ne={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},Ie=new class{#r=Ne;#o=!1;setTimeoutProvider(e){this.#r=e}setTimeout(e,t){return this.#r.setTimeout(e,t)}clearTimeout(e){this.#r.clearTimeout(e)}setInterval(e,t){return this.#r.setInterval(e,t)}clearInterval(e){this.#r.clearInterval(e)}},Re="undefined"==typeof window||"Deno"in globalThis;function Ae(){}function Pe(e,t){return"function"==typeof e?e(t):e}function De(e){return"number"==typeof e&&e>=0&&e!==1/0}function Le(e,t){return Math.max(e+(t||0)-Date.now(),0)}function Ue(e,t){return"function"==typeof e?e(t):e}function Fe(e,t){return"function"==typeof e?e(t):e}function $e(e,t){const{type:n="all",exact:r,fetchStatus:o,predicate:s,queryKey:i,stale:a}=e;if(i)if(r){if(t.queryHash!==ze(i,t.options))return!1}else if(!je(t.queryKey,i))return!1;if("all"!==n){const e=t.isActive();if("active"===n&&!e)return!1;if("inactive"===n&&e)return!1}return!("boolean"==typeof a&&t.isStale()!==a||o&&o!==t.state.fetchStatus||s&&!s(t))}function Me(e,t){const{exact:n,status:r,predicate:o,mutationKey:s}=e;if(s){if(!t.options.mutationKey)return!1;if(n){if(Ge(t.options.mutationKey)!==Ge(s))return!1}else if(!je(t.options.mutationKey,s))return!1}return!(r&&t.state.status!==r||o&&!o(t))}function ze(e,t){return(t?.queryKeyHashFn||Ge)(e)}function Ge(e){return JSON.stringify(e,(e,t)=>Be(t)?Object.keys(t).sort().reduce((e,n)=>(e[n]=t[n],e),{}):t)}function je(e,t){return e===t||typeof e==typeof t&&!(!e||!t||"object"!=typeof e||"object"!=typeof t)&&Object.keys(t).every(n=>je(e[n],t[n]))}var He=Object.prototype.hasOwnProperty;function We(e,t,n=0){if(e===t)return e;if(n>500)return t;const r=qe(e)&&qe(t);if(!(r||Be(e)&&Be(t)))return t;const o=(r?e:Object.keys(e)).length,s=r?t:Object.keys(t),i=s.length,a=r?new Array(i):{};let l=0;for(let c=0;c<i;c++){const i=r?c:s[c],u=e[i],d=t[i];if(u===d){a[i]=u,(r?c<o:He.call(e,i))&&l++;continue}if(null===u||null===d||"object"!=typeof u||"object"!=typeof d){a[i]=d;continue}const f=We(u,d,n+1);a[i]=f,f===u&&l++}return o===i&&l===o?e:a}function Ve(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(e[n]!==t[n])return!1;return!0}function qe(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function Be(e){if(!Ke(e))return!1;const t=e.constructor;if(void 0===t)return!0;const n=t.prototype;return!!Ke(n)&&!!n.hasOwnProperty("isPrototypeOf")&&Object.getPrototypeOf(e)===Object.prototype}function Ke(e){return"[object Object]"===Object.prototype.toString.call(e)}function Ye(e,t,n){return"function"==typeof n.structuralSharing?n.structuralSharing(e,t):!1!==n.structuralSharing?We(e,t):t}function Qe(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function Ze(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var Je=/* @__PURE__ */Symbol();function Xe(e,t){return!e.queryFn&&t?.initialPromise?()=>t.initialPromise:e.queryFn&&e.queryFn!==Je?e.queryFn:()=>Promise.reject(/* @__PURE__ */new Error(`Missing queryFn: '${e.queryHash}'`))}function et(e,t){return"function"==typeof e?e(...t):!!e}function tt(e,t,n){let r,o=!1;return Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(r??=t(),o||(o=!0,r.aborted?n():r.addEventListener("abort",n,{once:!0})),r)}),e}var nt=/* @__PURE__ */(()=>{let e=()=>Re;return{isServer:()=>e(),setIsServer(t){e=t}}})();function rt(){let e,t;const n=new Promise((n,r)=>{e=n,t=r});function r(e){Object.assign(n,e),delete n.resolve,delete n.reject}return n.status="pending",n.catch(()=>{}),n.resolve=t=>{r({status:"fulfilled",value:t}),e(t)},n.reject=e=>{r({status:"rejected",reason:e}),t(e)},n}var ot=function(e){setTimeout(e,0)},st=function(){let e=[],t=0,n=e=>{e()},r=e=>{e()},o=ot;const s=r=>{t?e.push(r):o(()=>{n(r)})};return{batch:s=>{let i;t++;try{i=s()}finally{t--,t||(()=>{const t=e;e=[],t.length&&o(()=>{r(()=>{t.forEach(e=>{n(e)})})})})()}return i},batchCalls:e=>(...t)=>{s(()=>{e(...t)})},schedule:s,setNotifyFunction:e=>{n=e},setBatchNotifyFunction:e=>{r=e},setScheduler:e=>{o=e}}}(),it=new class extends Ce{#s=!0;#t;#n;constructor(){super(),this.#n=e=>{if("undefined"!=typeof window&&window.addEventListener){const t=()=>e(!0),n=()=>e(!1);return window.addEventListener("online",t,!1),window.addEventListener("offline",n,!1),()=>{window.removeEventListener("online",t),window.removeEventListener("offline",n)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#n=e,this.#t?.(),this.#t=e(this.setOnline.bind(this))}setOnline(e){this.#s!==e&&(this.#s=e,this.listeners.forEach(t=>{t(e)}))}isOnline(){return this.#s}};function at(e){return Math.min(1e3*2**e,3e4)}function lt(e){return"online"!==(e??"online")||it.isOnline()}var ct=class extends Error{constructor(e){super("CancelledError"),this.revert=e?.revert,this.silent=e?.silent}};function ut(e){let t,n=!1,r=0;const o=rt(),s=()=>"pending"!==o.status,i=()=>Oe.isFocused()&&("always"===e.networkMode||it.isOnline())&&e.canRun(),a=()=>lt(e.networkMode)&&e.canRun(),l=e=>{s()||(t?.(),o.resolve(e))},c=e=>{s()||(t?.(),o.reject(e))},u=()=>new Promise(n=>{t=e=>{(s()||i())&&n(e)},e.onPause?.()}).then(()=>{t=void 0,s()||e.onContinue?.()}),d=()=>{if(s())return;let t;const o=0===r?e.initialPromise:void 0;try{t=o??e.fn()}catch(a){t=Promise.reject(a)}Promise.resolve(t).then(l).catch(t=>{if(s())return;const o=e.retry??(nt.isServer()?0:3),a=e.retryDelay??at,l="function"==typeof a?a(r,t):a,f=!0===o||"number"==typeof o&&r<o||"function"==typeof o&&o(r,t);var _;!n&&f?(r++,e.onFail?.(r,t),(_=l,new Promise(e=>{Ie.setTimeout(e,_)})).then(()=>i()?void 0:u()).then(()=>{n?c(t):d()})):c(t)})};return{promise:o,status:()=>o.status,cancel:t=>{if(!s()){const n=new ct(t);c(n),e.onCancel?.(n)}},continue:()=>(t?.(),o),cancelRetry:()=>{n=!0},continueRetry:()=>{n=!1},canStart:a,start:()=>(a()?d():u().then(d),o)}}var dt=class{#i;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),De(this.gcTime)&&(this.#i=Ie.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(nt.isServer()?1/0:3e5))}clearGcTimeout(){this.#i&&(Ie.clearTimeout(this.#i),this.#i=void 0)}},ft=class extends dt{#a;#l;#c;#u;#d;#f;#_;constructor(e){super(),this.#_=!1,this.#f=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.#u=e.client,this.#c=this.#u.getQueryCache(),this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.#a=ht(this.options),this.state=e.state??this.#a,this.scheduleGc()}get meta(){return this.options.meta}get promise(){return this.#d?.promise}setOptions(e){if(this.options={...this.#f,...e},this.updateGcTime(this.options.gcTime),this.state&&void 0===this.state.data){const e=ht(this.options);void 0!==e.data&&(this.setState(pt(e.data,e.dataUpdatedAt)),this.#a=e)}}optionalRemove(){this.observers.length||"idle"!==this.state.fetchStatus||this.#c.remove(this)}setData(e,t){const n=Ye(this.state.data,e,this.options);return this.#p({data:n,type:"success",dataUpdatedAt:t?.updatedAt,manual:t?.manual}),n}setState(e,t){this.#p({type:"setState",state:e,setStateOptions:t})}cancel(e){const t=this.#d?.promise;return this.#d?.cancel(e),t?t.then(Ae).catch(Ae):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}get resetState(){return this.#a}reset(){this.destroy(),this.setState(this.resetState)}isActive(){return this.observers.some(e=>!1!==Fe(e.options.enabled,this))}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===Je||!this.isFetched()}isFetched(){return this.state.dataUpdateCount+this.state.errorUpdateCount>0}isStatic(){return this.getObserversCount()>0&&this.observers.some(e=>"static"===Ue(e.options.staleTime,this))}isStale(){return this.getObserversCount()>0?this.observers.some(e=>e.getCurrentResult().isStale):void 0===this.state.data||this.state.isInvalidated}isStaleByTime(e=0){return void 0===this.state.data||"static"!==e&&(!!this.state.isInvalidated||!Le(this.state.dataUpdatedAt,e))}onFocus(){this.observers.find(e=>e.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#d?.continue()}onOnline(){this.observers.find(e=>e.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),this.#d?.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.#c.notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter(t=>t!==e),this.observers.length||(this.#d&&(this.#_||this.#h()?this.#d.cancel({revert:!0}):this.#d.cancelRetry()),this.scheduleGc()),this.#c.notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}#h(){return"paused"===this.state.fetchStatus&&"pending"===this.state.status}invalidate(){this.state.isInvalidated||this.#p({type:"invalidate"})}async fetch(e,t){if("idle"!==this.state.fetchStatus&&"rejected"!==this.#d?.status())if(void 0!==this.state.data&&t?.cancelRefetch)this.cancel({silent:!0});else if(this.#d)return this.#d.continueRetry(),this.#d.promise;if(e&&this.setOptions(e),!this.options.queryFn){const e=this.observers.find(e=>e.options.queryFn);e&&this.setOptions(e.options)}const n=new AbortController,r=e=>{Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(this.#_=!0,n.signal)})},o=()=>{const e=Xe(this.options,t),n=(()=>{const e={client:this.#u,queryKey:this.queryKey,meta:this.meta};return r(e),e})();return this.#_=!1,this.options.persister?this.options.persister(e,n,this):e(n)},s=(()=>{const e={fetchOptions:t,options:this.options,queryKey:this.queryKey,client:this.#u,state:this.state,fetchFn:o};return r(e),e})();this.options.behavior?.onFetch(s,this),this.#l=this.state,"idle"!==this.state.fetchStatus&&this.state.fetchMeta===s.fetchOptions?.meta||this.#p({type:"fetch",meta:s.fetchOptions?.meta}),this.#d=ut({initialPromise:t?.initialPromise,fn:s.fetchFn,onCancel:e=>{e instanceof ct&&e.revert&&this.setState({...this.#l,fetchStatus:"idle"}),n.abort()},onFail:(e,t)=>{this.#p({type:"failed",failureCount:e,error:t})},onPause:()=>{this.#p({type:"pause"})},onContinue:()=>{this.#p({type:"continue"})},retry:s.options.retry,retryDelay:s.options.retryDelay,networkMode:s.options.networkMode,canRun:()=>!0});try{const e=await this.#d.start();if(void 0===e)throw new Error(`${this.queryHash} data is undefined`);return this.setData(e),this.#c.config.onSuccess?.(e,this),this.#c.config.onSettled?.(e,this.state.error,this),e}catch(i){if(i instanceof ct){if(i.silent)return this.#d.promise;if(i.revert){if(void 0===this.state.data)throw i;return this.state.data}}throw this.#p({type:"error",error:i}),this.#c.config.onError?.(i,this),this.#c.config.onSettled?.(this.state.data,i,this),i}finally{this.scheduleGc()}}#p(e){this.state=(t=>{switch(e.type){case"failed":return{...t,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case"pause":return{...t,fetchStatus:"paused"};case"continue":return{...t,fetchStatus:"fetching"};case"fetch":return{...t,..._t(t.data,this.options),fetchMeta:e.meta??null};case"success":const n={...t,...pt(e.data,e.dataUpdatedAt),dataUpdateCount:t.dataUpdateCount+1,...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return this.#l=e.manual?n:void 0,n;case"error":const r=e.error;return{...t,error:r,errorUpdateCount:t.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:t.fetchFailureCount+1,fetchFailureReason:r,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...t,isInvalidated:!0};case"setState":return{...t,...e.state}}})(this.state),st.batch(()=>{this.observers.forEach(e=>{e.onQueryUpdate()}),this.#c.notify({query:this,type:"updated",action:e})})}};function _t(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:lt(t.networkMode)?"fetching":"paused",...void 0===e&&{error:null,status:"pending"}}}function pt(e,t){return{data:e,dataUpdatedAt:t??Date.now(),error:null,isInvalidated:!1,status:"success"}}function ht(e){const t="function"==typeof e.initialData?e.initialData():e.initialData,n=void 0!==t,r=n?"function"==typeof e.initialDataUpdatedAt?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}var mt=/* @__PURE__ */e({Children:()=>Rt,Component:()=>E,Fragment:()=>k,PureComponent:()=>St,StrictMode:()=>k,Suspense:()=>Ut,SuspenseList:()=>Mt,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:()=>on,cloneElement:()=>dn,createContext:()=>B,createElement:()=>g,createFactory:()=>an,createPortal:()=>Ht,createRef:()=>w,default:()=>bn,findDOMNode:()=>_n,flushSync:()=>hn,forwardRef:()=>Nt,hydrate:()=>Zt,isElement:()=>mn,isFragment:()=>cn,isMemo:()=>un,isValidElement:()=>ln,lazy:()=>$t,memo:()=>Tt,render:()=>Qt,startTransition:()=>wt,unmountComponentAtNode:()=>fn,unstable_batchedUpdates:()=>pn,useCallback:()=>he,useContext:()=>me,useDebugValue:()=>be,useDeferredValue:()=>kt,useEffect:()=>ue,useErrorBoundary:()=>ve,useId:()=>ge,useImperativeHandle:()=>_e,useInsertionEffect:()=>xt,useLayoutEffect:()=>de,useMemo:()=>pe,useReducer:()=>ce,useRef:()=>fe,useState:()=>le,useSyncExternalStore:()=>gt,useTransition:()=>Et,version:()=>sn});function bt(e,t){for(var n in t)e[n]=t[n];return e}function vt(e,t){for(var n in e)if("__source"!==n&&!(n in t))return!0;for(var r in t)if("__source"!==r&&e[r]!==t[r])return!0;return!1}function gt(e,t){var n=t(),r=le({t:{__:n,u:t}}),o=r[0].t,s=r[1];return de(function(){o.__=n,o.u=t,yt(o)&&s({t:o})},[e,n,t]),ue(function(){return yt(o)&&s({t:o}),e(function(){yt(o)&&s({t:o})})},[e]),n}function yt(e){try{return!((t=e.__)===(n=e.u())&&(0!==t||1/t==1/n)||t!=t&&n!=n)}catch(e){return!0}var t,n}function wt(e){e()}function kt(e){return e}function Et(){return[!1,wt]}var xt=de;function St(e,t){this.props=e,this.context=t}function Tt(e,t){function n(e){var n=this.props.ref;return n!=e.ref&&n&&("function"==typeof n?n(null):n.current=null),t?!t(this.props,e)||n!=e.ref:vt(this.props,e)}function r(t){return this.shouldComponentUpdate=n,g(e,t)}return r.displayName="Memo("+(e.displayName||e.name)+")",r.__f=r.prototype.isReactComponent=!0,r.type=e,r}(St.prototype=new E).isPureReactComponent=!0,St.prototype.shouldComponentUpdate=function(e,t){return vt(this.props,e)||vt(this.state,t)};var Ct=n.__b;n.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),Ct&&Ct(e)};var Ot="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function Nt(e){function t(t){var n=bt({},t);return delete n.ref,e(n,t.ref||null)}return t.$$typeof=Ot,t.render=e,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t}var It=function(e,t){return null==e?null:R(R(e).map(t))},Rt={map:It,forEach:It,count:function(e){return e?R(e).length:0},only:function(e){var t=R(e);if(1!==t.length)throw"Children.only";return t[0]},toArray:R},At=n.__e;n.__e=function(e,t,n,r){if(e.then)for(var o,s=t;s=s.__;)if((o=s.__c)&&o.__c)return t.__e??(t.__e=n.__e,t.__k=n.__k),o.__c(e,t);At(e,t,n,r)};var Pt=n.unmount;function Dt(e,t,n){return e&&(e.__c&&e.__c.__H&&(e.__c.__H.__.forEach(function(e){"function"==typeof e.__c&&e.__c()}),e.__c.__H=null),null!=(e=bt({},e)).__c&&(e.__c.__P===n&&(e.__c.__P=t),e.__c.__e=!0,e.__c=null),e.__k=e.__k&&e.__k.map(function(e){return Dt(e,t,n)})),e}function Lt(e,t,n){return e&&n&&(e.__v=null,e.__k=e.__k&&e.__k.map(function(e){return Lt(e,t,n)}),e.__c&&e.__c.__P===t&&(e.__e&&n.appendChild(e.__e),e.__c.__e=!0,e.__c.__P=n)),e}function Ut(){this.__u=0,this.o=null,this.__b=null}function Ft(e){var t=e.__&&e.__.__c;return t&&t.__a&&t.__a(e)}function $t(e){var t,n,r,o=null;function s(s){if(t||(t=e()).then(function(e){e&&(o=e.default||e),r=!0},function(e){n=e,r=!0}),n)throw n;if(!r)throw t;return o?g(o,s):null}return s.displayName="Lazy",s.__f=!0,s}function Mt(){this.i=null,this.l=null}n.unmount=function(e){var t=e.__c;t&&(t.__z=!0),t&&t.__R&&t.__R(),t&&32&e.__u&&(e.type=null),Pt&&Pt(e)},(Ut.prototype=new E).__c=function(e,t){var n=t.__c,r=this;r.o??=[],r.o.push(n);var o=Ft(r.__v),s=!1,i=function(){s||r.__z||(s=!0,n.__R=null,o?o(l):l())};n.__R=i;var a=n.__P;n.__P=null;var l=function(){if(! --r.__u){if(r.state.__a){var e=r.state.__a;r.__v.__k[0]=Lt(e,e.__c.__P,e.__c.__O)}var t;for(r.setState({__a:r.__b=null});t=r.o.pop();)t.__P=a,t.forceUpdate()}};r.__u++||32&t.__u||r.setState({__a:r.__b=r.__v.__k[0]}),e.then(i,i)},Ut.prototype.componentWillUnmount=function(){this.o=[]},Ut.prototype.render=function(e,t){if(this.__b){if(this.__v.__k){var n=document.createElement("div"),r=this.__v.__k[0].__c;this.__v.__k[0]=Dt(this.__b,n,r.__O=r.__P)}this.__b=null}var o=t.__a&&g(k,null,e.fallback);return o&&(o.__u&=-33),[g(k,null,t.__a?null:e.children),o]};var zt=function(e,t,n){if(++n[1]===n[0]&&e.l.delete(t),e.props.revealOrder&&("t"!==e.props.revealOrder[0]||!e.l.size))for(n=e.i;n;){for(;n.length>3;)n.pop()();if(n[1]<n[0])break;e.i=n=n[2]}};function Gt(e){return this.getChildContext=function(){return e.context},e.children}function jt(e){var t=this,n=e.h;if(t.componentWillUnmount=function(){W(null,t.v),t.v=null,t.h=null},t.h&&t.h!==n&&t.componentWillUnmount(),!t.v){for(var r=t.__v;null!==r&&!r.__m&&null!==r.__;)r=r.__;t.h=n,t.v={nodeType:1,parentNode:n,childNodes:[],__k:{__m:r.__m},contains:function(){return!0},namespaceURI:n.namespaceURI,insertBefore:function(e,n){this.childNodes.push(e),t.h.insertBefore(e,n)},removeChild:function(e){this.childNodes.splice(this.childNodes.indexOf(e)>>>1,1),t.h.removeChild(e)}}}W(g(Gt,{context:t.context},e.__v),t.v)}function Ht(e,t){var n=g(jt,{__v:e,h:t});return n.containerInfo=t,n}(Mt.prototype=new E).__a=function(e){var t=this,n=Ft(t.__v),r=t.l.get(e);return r[0]++,function(o){var s=function(){t.props.revealOrder?(r.push(o),zt(t,e,r)):o()};n?n(s):s()}},Mt.prototype.render=function(e){this.i=null,this.l=/* @__PURE__ */new Map;var t=R(e.children);e.revealOrder&&"b"===e.revealOrder[0]&&t.reverse();for(var n=t.length;n--;)this.l.set(t[n],this.i=[1,0,this.i]);return e.children},Mt.prototype.componentDidUpdate=Mt.prototype.componentDidMount=function(){var e=this;this.l.forEach(function(t,n){zt(e,n,t)})};var Wt="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,Vt=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image(!S)|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,qt=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,Bt=/[A-Z0-9]/g,Kt="undefined"!=typeof document,Yt=function(e){return("undefined"!=typeof Symbol&&"symbol"==typeof Symbol()?/fil|che|rad/:/fil|che|ra/).test(e)};function Qt(e,t,n){return t.__k??(t.textContent=""),W(e,t),"function"==typeof n&&n(),e?e.__c:null}function Zt(e,t,n){return V(e,t),"function"==typeof n&&n(),e?e.__c:null}E.prototype.isReactComponent=!0,["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(e){Object.defineProperty(E.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})});var Jt=n.event;n.event=function(e){return Jt&&(e=Jt(e)),e.persist=function(){},e.isPropagationStopped=function(){return this.cancelBubble},e.isDefaultPrevented=function(){return this.defaultPrevented},e.nativeEvent=e};var Xt,en={configurable:!0,get:function(){return this.class}},tn=n.vnode;n.vnode=function(e){"string"==typeof e.type&&function(e){var t=e.props,n=e.type,r={},o=-1==n.indexOf("-");for(var s in t){var i=t[s];if(!("value"===s&&"defaultValue"in t&&null==i||Kt&&"children"===s&&"noscript"===n||"class"===s||"className"===s)){var a=s.toLowerCase();"defaultValue"===s&&"value"in t&&null==t.value?s="value":"download"===s&&!0===i?i="":"translate"===a&&"no"===i?i=!1:"o"===a[0]&&"n"===a[1]?"ondoubleclick"===a?s="ondblclick":"onchange"!==a||"input"!==n&&"textarea"!==n||Yt(t.type)?"onfocus"===a?s="onfocusin":"onblur"===a?s="onfocusout":qt.test(s)&&(s=a):a=s="oninput":o&&Vt.test(s)?s=s.replace(Bt,"-$&").toLowerCase():null===i&&(i=void 0),"oninput"===a&&r[s=a]&&(s="oninputCapture"),r[s]=i}}"select"==n&&(r.multiple&&Array.isArray(r.value)&&(r.value=R(t.children).forEach(function(e){e.props.selected=-1!=r.value.indexOf(e.props.value)})),null!=r.defaultValue&&(r.value=R(t.children).forEach(function(e){e.props.selected=r.multiple?-1!=r.defaultValue.indexOf(e.props.value):r.defaultValue==e.props.value}))),t.class&&!t.className?(r.class=t.class,Object.defineProperty(r,"className",en)):t.className&&(r.class=r.className=t.className),e.props=r}(e),e.$$typeof=Wt,tn&&tn(e)};var nn=n.__r;n.__r=function(e){nn&&nn(e),Xt=e.__c};var rn=n.diffed;n.diffed=function(e){rn&&rn(e);var t=e.props,n=e.__e;null!=n&&"textarea"===e.type&&"value"in t&&t.value!==n.value&&(n.value=null==t.value?"":t.value),Xt=null};var on={ReactCurrentDispatcher:{current:{readContext:function(e){return Xt.__n[e.__c].props.value},useCallback:he,useContext:me,useDebugValue:be,useDeferredValue:kt,useEffect:ue,useId:ge,useImperativeHandle:_e,useInsertionEffect:xt,useLayoutEffect:de,useMemo:pe,useReducer:ce,useRef:fe,useState:le,useSyncExternalStore:gt,useTransition:Et}}},sn="18.3.1";function an(e){return g.bind(null,e)}function ln(e){return!!e&&e.$$typeof===Wt}function cn(e){return ln(e)&&e.type===k}function un(e){return!!e&&"string"==typeof e.displayName&&0==e.displayName.indexOf("Memo(")}function dn(e){return ln(e)?q.apply(null,arguments):e}function fn(e){return!!e.__k&&(W(null,e),!0)}function _n(e){return e&&(e.base||1===e.nodeType&&e)||null}var pn=function(e,t){return e(t)},hn=function(e,t){var r=n.debounceRendering;n.debounceRendering=function(e){return e()};var o=e(t);return n.debounceRendering=r,o},mn=ln,bn={useState:le,useId:ge,useReducer:ce,useEffect:ue,useLayoutEffect:de,useInsertionEffect:xt,useTransition:Et,useDeferredValue:kt,useSyncExternalStore:gt,startTransition:wt,useRef:fe,useImperativeHandle:_e,useMemo:pe,useCallback:he,useContext:me,useDebugValue:be,version:"18.3.1",Children:Rt,render:Qt,hydrate:Zt,unmountComponentAtNode:fn,createPortal:Ht,createElement:g,createContext:B,createFactory:an,cloneElement:dn,createRef:w,Fragment:k,isValidElement:ln,isElement:mn,isFragment:cn,isMemo:un,findDOMNode:_n,Component:E,PureComponent:St,memo:Tt,forwardRef:Nt,flushSync:hn,unstable_batchedUpdates:pn,StrictMode:k,Suspense:Ut,SuspenseList:Mt,lazy:$t,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:on},vn=0;function gn(e,t,r,o,s,i){t||(t={});var a,l,c=t;if("ref"in c)for(l in c={},t)"ref"==l?a=t[l]:c[l]=t[l];var u={type:e,props:c,key:r,ref:a,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:--vn,__i:-1,__u:0,__source:s,__self:i};if("function"==typeof e&&(a=e.defaultProps))for(l in a)void 0===c[l]&&(c[l]=a[l]);return n.vnode&&n.vnode(u),u}Array.isArray;var yn=B(void 0),wn=e=>{const t=me(yn);if(e)return e;if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},kn=({client:e,children:t})=>(ue(()=>(e.mount(),()=>{e.unmount()}),[e]),/* @__PURE__ */gn(yn.Provider,{value:e,children:t})),En={PUBLIC_EVENTS:"/",FOLDER_EVENTS:e=>`/${e}`,LOGIN:"/auth/login",REGISTER:"/auth/register",FORGOT_PASSWORD:"/auth/forgot-password",RESET_PASSWORD:"/auth/reset-password",VERIFY_EMAIL:"/auth/verify-email",GALLERY:e=>`/event/${e}`,UPLOAD:e=>`/event/${e}/upload`,CURATE:e=>`/event/${e}/curate`,LEADERBOARD:e=>`/event/${e}/leaderboard`},xn={ORGANIZATION_SETTINGS:e=>`https://qrati.com/org/${e}/settings`,ORGANIZATION_SETTINGS_INTEGRATION:e=>`https://qrati.com/org/${e}/settings/integration`,ORGANIZATION_DASHBOARD:e=>`https://qrati.com/org/${e}/dashboard`,ORGANIZATION_ADMINS:e=>`https://qrati.com/org/${e}/admins`,EVENT_SETTINGS_BASIC_DETAILS:e=>`https://qrati.com/event/${e}/settings`,EVENT_REVIEW_CONTENTS:e=>`https://qrati.com/event/${e}/review-contents`,EVENT_DEEP_SEARCH:e=>`https://qrati.com/event/${e}/deep-search`,EVENT_GENERATE_ARTICLE:e=>`https://qrati.com/event/${e}/generate-article`,EVENT_ACCESS_REQUESTS:e=>`https://qrati.com/event/${e}/access-requests`,EVENT_SHOT_INSPECTOR:e=>`https://qrati.com/event/${e}/shot-inspector`,EVENT_CURATION_DETAILS:e=>`https://qrati.com/event/${e}/curation-details`},Sn={PUBLIC:"PUBLIC",PRIVATE:"PRIVATE",SECRET:"SECRET"},Tn="https://qrati.com/api/connect",Cn={INITIALIZE_SESSION:`${Tn}/session/initialize`,REGISTER:`${Tn}/auth/register`,LOGIN:`${Tn}/auth/login`,LOGOUT:`${Tn}/auth/logout`,UPDATE_SESSION:`${Tn}/session/update`,ACCEPT_TERMS:`${Tn}/auth/accept-terms`,EXTERNAL_LOGIN:`${Tn}/auth/external-login`,PUBLIC_EVENTS:`${Tn}/event/public-events`,SEARCH_EVENTS:`${Tn}/event/search`,FOLDER_DETAILS:`${Tn}/folder/details`,NESTED_FOLDERS:`${Tn}/folder/nested-folders`,GET_EVENT_POINTS:`${Tn}/event/points`,ELIGIBLE_TO_CURATE:`${Tn}/content/curation-eligibility`,CONTENT_FOR_CURATION:`${Tn}/content/for-curation`,CURATE_CONTENT:`${Tn}/content/curate`,GET_LEADERBOARD:`${Tn}/event/leaderboard`,GET_UPLOAD_COUNT:`${Tn}/event/upload-count`,SINGLE_UPLOAD:`${Tn}/content/single-upload`,UPDATE_REACTION:`${Tn}/content/update-reaction`,EVENT_DATA:`${Tn}/event/details-with-ads-parameters`,UPDATE_EVENT_LAYOUT:`${Tn}/event/update-layout`,GET_EVENT_STATISTICS:`${Tn}/event/statistics`,GET_CONTENTS:`${Tn}/content/for-gallery`,SEARCH_CONTENTS:`${Tn}/content/search`,GET_CONTENTS_COUNT:`${Tn}/content/count`,UPDATE_AD_ANALYTICS:`${Tn}/event/update-ad-analytics`,INCREMENT_EVENT_VIEW:`${Tn}/event/increment-view`,SEND_PASSWORD_RESET_CODE:`${Tn}/auth/send-password-reset-code`,VERIFY_PASSWORD_RESET_CODE:`${Tn}/auth/verify-password-reset-code`,RESET_PASSWORD:`${Tn}/auth/reset-password`,REPORT_ERROR:`${Tn}/session/report-error`},On={OWNER:"owner",ADMIN:"admin",MODERATOR:"moderator"},Nn={IMAGE:"IMAGE",VIDEO:"VIDEO",AD:"AD"},In={ROW:"ROW",COLUMN:"COLUMN",MASONRY:"MASONRY"},Rn={IN_REVIEW:"IN_REVIEW",APPROVED:"APPROVED",REJECTED:"REJECTED"},An={WAITING:"Waiting",UPLOADING:"Uploading",RETRYING:"Retrying",DONE:"Done",FAILED:"Failed",ERROR:"Error"},Pn=1048576,Dn={CLOSED:"CLOSED",OPEN:"OPEN",UPCOMING:"UPCOMING"},Ln={WAITING:"Waiting",PROCESSING:"Processing",DONE:"Done"},Un={TEXT:"text",IMAGE:"image",LOTTIE:"lottie"},Fn={CONTEST:"CONTEST",REACTION:"REACTION"},$n={GRID:"grid",SINGLE:"single"},Mn={POPULAR:"popular",UPLOAD_TIME:"upload",CAPTURE_TIME:"capture"},zn={[Mn.POPULAR]:{label:"Popular",sortField:"score"},[Mn.UPLOAD_TIME]:{label:"Uploaded",sortField:"createdAt"},[Mn.CAPTURE_TIME]:{label:"Captured",sortField:"capturedAt"}},Gn=Mn.UPLOAD_TIME,jn={ASC:"asc",DESC:"desc"},Hn={[jn.ASC]:{label:"Ascending",sortOrder:""},[jn.DESC]:{label:"Descending",sortOrder:"-"}},Wn=jn.DESC,Vn={OWN:"own",CURATED:"curated",ELIGIBLE:"eligible"},qn={NONE:null,LINK:"LINK",EMAIL:"EMAIL",PHONE:"PHONE",SMS:"SMS",WHATSAPP:"WHATSAPP",MESSENGER:"MESSENGER"},Bn={[qn.LINK]:"material-symbols:open-in-new-rounded",[qn.EMAIL]:"material-symbols:alternate-email-rounded",[qn.PHONE]:"material-symbols:call-outline",[qn.SMS]:"material-symbols:sms-outline-rounded",[qn.WHATSAPP]:"logos:whatsapp-icon",[qn.MESSENGER]:"logos:messenger"},Kn={AD_IMPRESSION:"impression",AD_ENGAGEMENT:"engagement",AD_CLICK:"click"},Yn={QRATI_CONNECT_SESSION:"qrati-connect-session",EVENT_IN_REVIEW_COUNT:e=>`in-review-count-${e}`,CONTENTS_BY_EVENT:e=>`contents-by-event-${e}`},Qn='-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif',Zn=e=>e.trim().replace(/\s+/g," "),Jn=e=>{if(!e)return Qn;const t=Zn("string"==typeof e?e:e.fontFamily||""),n="string"==typeof e?void 0:e.customFontName;return t&&"system"!==t?"custom"===t?`"${n||"QratiCustomFont"}", ${Qn}`:`"${t}", ${Qn}`:Qn},Xn=(e,t)=>{if(!e?.fontFamily||"system"===e.fontFamily)return"";const n=Zn(e.fontFamily);if("custom"===n&&t){const n=e.customFontName||"QratiCustomFont",o=/\.woff2(\?|$)/i.test(t)?"woff2":/\.ttf(\?|$)/i.test(t)?"truetype":"woff";return`@font-face{font-family:"${r=n,r.replace(/"/g,'\\"')}";src:url("${t}") format("${o}");font-weight:400 700;font-style:normal;font-display:swap;}`}var r;const o=(e=>{if(!e)return null;const t=Zn(e);return t&&"system"!==t.toLowerCase()&&"custom"!==t.toLowerCase()?`https://fonts.googleapis.com/css2?family=${t.replace(/\s+/g,"+")}:wght@400;500;600;700&display=swap`:null})(n);return o?`@import url("${o}");`:""};function er(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=er(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function tr(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=er(e))&&(r&&(r+=" "),r+=t);return r}var nr=(e=/* @__PURE__ */new Map,t=null,n)=>({nextPart:e,validators:t,classGroupId:n}),rr="-",or=[],sr=e=>{const t=lr(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:e=>{if(e.startsWith("[")&&e.endsWith("]"))return ar(e);const n=e.split(rr);return ir(n,""===n[0]&&n.length>1?1:0,t)},getConflictingClassGroupIds:(e,t)=>{if(t){const t=r[e],o=n[e];return t?o?((e,t)=>{const n=new Array(e.length+t.length);for(let r=0;r<e.length;r++)n[r]=e[r];for(let r=0;r<t.length;r++)n[e.length+r]=t[r];return n})(o,t):t:o||or}return n[e]||or}}},ir=(e,t,n)=>{if(e.length-t===0)return n.classGroupId;const r=e[t],o=n.nextPart.get(r);if(o){const n=ir(e,t+1,o);if(n)return n}const s=n.validators;if(null===s)return;const i=0===t?e.join(rr):e.slice(t).join(rr),a=s.length;for(let l=0;l<a;l++){const e=s[l];if(e.validator(i))return e.classGroupId}},ar=e=>-1===e.slice(1,-1).indexOf(":")?void 0:(()=>{const t=e.slice(1,-1),n=t.indexOf(":"),r=t.slice(0,n);return r?"arbitrary.."+r:void 0})(),lr=e=>{const{theme:t,classGroups:n}=e;return cr(n,t)},cr=(e,t)=>{const n=nr();for(const r in e){const o=e[r];ur(o,n,r,t)}return n},ur=(e,t,n,r)=>{const o=e.length;for(let s=0;s<o;s++){const o=e[s];dr(o,t,n,r)}},dr=(e,t,n,r)=>{"string"!=typeof e?"function"!=typeof e?pr(e,t,n,r):_r(e,t,n,r):fr(e,t,n)},fr=(e,t,n)=>{(""===e?t:hr(t,e)).classGroupId=n},_r=(e,t,n,r)=>{mr(e)?ur(e(r),t,n,r):(null===t.validators&&(t.validators=[]),t.validators.push(((e,t)=>({classGroupId:e,validator:t}))(n,e)))},pr=(e,t,n,r)=>{const o=Object.entries(e),s=o.length;for(let i=0;i<s;i++){const[e,s]=o[i];ur(s,hr(t,e),n,r)}},hr=(e,t)=>{let n=e;const r=t.split(rr),o=r.length;for(let s=0;s<o;s++){const e=r[s];let t=n.nextPart.get(e);t||(t=nr(),n.nextPart.set(e,t)),n=t}return n},mr=e=>"isThemeGetter"in e&&!0===e.isThemeGetter,br=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=Object.create(null),r=Object.create(null);const o=(o,s)=>{n[o]=s,t++,t>e&&(t=0,r=n,n=Object.create(null))};return{get(e){let t=n[e];return void 0!==t?t:void 0!==(t=r[e])?(o(e,t),t):void 0},set(e,t){e in n?n[e]=t:o(e,t)}}},vr=[],gr=(e,t,n,r,o)=>({modifiers:e,hasImportantModifier:t,baseClassName:n,maybePostfixModifierPosition:r,isExternal:o}),yr=e=>{const{prefix:t,experimentalParseClassName:n}=e;let r=e=>{const t=[];let n,r=0,o=0,s=0;const i=e.length;for(let u=0;u<i;u++){const i=e[u];if(0===r&&0===o){if(":"===i){t.push(e.slice(s,u)),s=u+1;continue}if("/"===i){n=u;continue}}"["===i?r++:"]"===i?r--:"("===i?o++:")"===i&&o--}const a=0===t.length?e:e.slice(s);let l=a,c=!1;return a.endsWith("!")?(l=a.slice(0,-1),c=!0):a.startsWith("!")&&(l=a.slice(1),c=!0),gr(t,c,l,n&&n>s?n-s:void 0)};if(t){const e=t+":",n=r;r=t=>t.startsWith(e)?n(t.slice(e.length)):gr(vr,!1,t,void 0,!0)}if(n){const e=r;r=t=>n({className:t,parseClassName:e})}return r},wr=e=>{const t=/* @__PURE__ */new Map;return e.orderSensitiveModifiers.forEach((e,n)=>{t.set(e,1e6+n)}),e=>{const n=[];let r=[];for(let o=0;o<e.length;o++){const s=e[o],i="["===s[0],a=t.has(s);i||a?(r.length>0&&(r.sort(),n.push(...r),r=[]),n.push(s)):r.push(s)}return r.length>0&&(r.sort(),n.push(...r)),n}},kr=/\s+/,Er=e=>{if("string"==typeof e)return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=Er(e[r]))&&(n&&(n+=" "),n+=t);return n},xr=[],Sr=e=>{const t=t=>t[e]||xr;return t.isThemeGetter=!0,t},Tr=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Cr=/^\((?:(\w[\w-]*):)?(.+)\)$/i,Or=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,Nr=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Ir=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,Rr=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,Ar=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Pr=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Dr=e=>Or.test(e),Lr=e=>!!e&&!Number.isNaN(Number(e)),Ur=e=>!!e&&Number.isInteger(Number(e)),Fr=e=>e.endsWith("%")&&Lr(e.slice(0,-1)),$r=e=>Nr.test(e),Mr=()=>!0,zr=e=>Ir.test(e)&&!Rr.test(e),Gr=()=>!1,jr=e=>Ar.test(e),Hr=e=>Pr.test(e),Wr=e=>!qr(e)&&!eo(e),Vr=e=>lo(e,_o,Gr),qr=e=>Tr.test(e),Br=e=>lo(e,po,zr),Kr=e=>lo(e,ho,Lr),Yr=e=>lo(e,bo,Mr),Qr=e=>lo(e,mo,Gr),Zr=e=>lo(e,uo,Gr),Jr=e=>lo(e,fo,Hr),Xr=e=>lo(e,vo,jr),eo=e=>Cr.test(e),to=e=>co(e,po),no=e=>co(e,mo),ro=e=>co(e,uo),oo=e=>co(e,_o),so=e=>co(e,fo),io=e=>co(e,vo,!0),ao=e=>co(e,bo,!0),lo=(e,t,n)=>{const r=Tr.exec(e);return!!r&&(r[1]?t(r[1]):n(r[2]))},co=(e,t,n=!1)=>{const r=Cr.exec(e);return!!r&&(r[1]?t(r[1]):n)},uo=e=>"position"===e||"percentage"===e,fo=e=>"image"===e||"url"===e,_o=e=>"length"===e||"size"===e||"bg-size"===e,po=e=>"length"===e,ho=e=>"number"===e,mo=e=>"family-name"===e,bo=e=>"number"===e||"weight"===e,vo=e=>"shadow"===e,go=/* @__PURE__ */((e,...t)=>{let n,r,o,s;const i=e=>{const t=r(e);if(t)return t;const s=((e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:o,sortModifiers:s}=t,i=[],a=e.trim().split(kr);let l="";for(let c=a.length-1;c>=0;c-=1){const e=a[c],{isExternal:t,modifiers:u,hasImportantModifier:d,baseClassName:f,maybePostfixModifierPosition:_}=n(e);if(t){l=e+(l.length>0?" "+l:l);continue}let p=!!_,h=r(p?f.substring(0,_):f);if(!h){if(!p){l=e+(l.length>0?" "+l:l);continue}if(h=r(f),!h){l=e+(l.length>0?" "+l:l);continue}p=!1}const m=0===u.length?"":1===u.length?u[0]:s(u).join(":"),b=d?m+"!":m,v=b+h;if(i.indexOf(v)>-1)continue;i.push(v);const g=o(h,p);for(let n=0;n<g.length;++n){const e=g[n];i.push(b+e)}l=e+(l.length>0?" "+l:l)}return l})(e,n);return o(e,s),s};return s=a=>{var l;return l=t.reduce((e,t)=>t(e),e()),n={cache:br(l.cacheSize),parseClassName:yr(l),sortModifiers:wr(l),...sr(l)},r=n.cache.get,o=n.cache.set,s=i,i(a)},(...e)=>s(((...e)=>{let t,n,r=0,o="";for(;r<e.length;)(t=e[r++])&&(n=Er(t))&&(o&&(o+=" "),o+=n);return o})(...e))})(()=>{const e=Sr("color"),t=Sr("font"),n=Sr("text"),r=Sr("font-weight"),o=Sr("tracking"),s=Sr("leading"),i=Sr("breakpoint"),a=Sr("container"),l=Sr("spacing"),c=Sr("radius"),u=Sr("shadow"),d=Sr("inset-shadow"),f=Sr("text-shadow"),_=Sr("drop-shadow"),p=Sr("blur"),h=Sr("perspective"),m=Sr("aspect"),b=Sr("ease"),v=Sr("animate"),g=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom",eo,qr],y=()=>[eo,qr,l],w=()=>[Dr,"full","auto",...y()],k=()=>[Ur,"none","subgrid",eo,qr],E=()=>["auto",{span:["full",Ur,eo,qr]},Ur,eo,qr],x=()=>[Ur,"auto",eo,qr],S=()=>["auto","min","max","fr",eo,qr],T=()=>["auto",...y()],C=()=>[Dr,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...y()],O=()=>[Dr,"screen","full","dvw","lvw","svw","min","max","fit",...y()],N=()=>[Dr,"screen","full","lh","dvh","lvh","svh","min","max","fit",...y()],I=()=>[e,eo,qr],R=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom",ro,Zr,{position:[eo,qr]}],A=()=>["auto","cover","contain",oo,Vr,{size:[eo,qr]}],P=()=>[Fr,to,Br],D=()=>["","none","full",c,eo,qr],L=()=>["",Lr,to,Br],U=()=>[Lr,Fr,ro,Zr],F=()=>["","none",p,eo,qr],$=()=>["none",Lr,eo,qr],M=()=>["none",Lr,eo,qr],z=()=>[Lr,eo,qr],G=()=>[Dr,"full",...y()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[$r],breakpoint:[$r],color:[Mr],container:[$r],"drop-shadow":[$r],ease:["in","out","in-out"],font:[Wr],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[$r],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[$r],shadow:[$r],spacing:["px",Lr],text:[$r],"text-shadow":[$r],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Dr,qr,eo,m]}],container:["container"],columns:[{columns:[Lr,qr,eo,a]}],"break-after":[{"break-after":["auto","avoid","all","avoid-page","page","left","right","column"]}],"break-before":[{"break-before":["auto","avoid","all","avoid-page","page","left","right","column"]}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:g()}],overflow:[{overflow:["auto","hidden","clip","visible","scroll"]}],"overflow-x":[{"overflow-x":["auto","hidden","clip","visible","scroll"]}],"overflow-y":[{"overflow-y":["auto","hidden","clip","visible","scroll"]}],overscroll:[{overscroll:["auto","contain","none"]}],"overscroll-x":[{"overscroll-x":["auto","contain","none"]}],"overscroll-y":[{"overscroll-y":["auto","contain","none"]}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:w()}],"inset-x":[{"inset-x":w()}],"inset-y":[{"inset-y":w()}],start:[{"inset-s":w(),start:w()}],end:[{"inset-e":w(),end:w()}],"inset-bs":[{"inset-bs":w()}],"inset-be":[{"inset-be":w()}],top:[{top:w()}],right:[{right:w()}],bottom:[{bottom:w()}],left:[{left:w()}],visibility:["visible","invisible","collapse"],z:[{z:[Ur,"auto",eo,qr]}],basis:[{basis:[Dr,"full","auto",a,...y()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[Lr,Dr,"auto","initial","none",qr]}],grow:[{grow:["",Lr,eo,qr]}],shrink:[{shrink:["",Lr,eo,qr]}],order:[{order:[Ur,"first","last","none",eo,qr]}],"grid-cols":[{"grid-cols":k()}],"col-start-end":[{col:E()}],"col-start":[{"col-start":x()}],"col-end":[{"col-end":x()}],"grid-rows":[{"grid-rows":k()}],"row-start-end":[{row:E()}],"row-start":[{"row-start":x()}],"row-end":[{"row-end":x()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":S()}],"auto-rows":[{"auto-rows":S()}],gap:[{gap:y()}],"gap-x":[{"gap-x":y()}],"gap-y":[{"gap-y":y()}],"justify-content":[{justify:["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe","normal"]}],"justify-items":[{"justify-items":["start","end","center","stretch","center-safe","end-safe","normal"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch","center-safe","end-safe"]}],"align-content":[{content:["normal","start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"]}],"align-items":[{items:["start","end","center","stretch","center-safe","end-safe",{baseline:["","last"]}]}],"align-self":[{self:["auto","start","end","center","stretch","center-safe","end-safe",{baseline:["","last"]}]}],"place-content":[{"place-content":["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"]}],"place-items":[{"place-items":["start","end","center","stretch","center-safe","end-safe","baseline"]}],"place-self":[{"place-self":["auto","start","end","center","stretch","center-safe","end-safe"]}],p:[{p:y()}],px:[{px:y()}],py:[{py:y()}],ps:[{ps:y()}],pe:[{pe:y()}],pbs:[{pbs:y()}],pbe:[{pbe:y()}],pt:[{pt:y()}],pr:[{pr:y()}],pb:[{pb:y()}],pl:[{pl:y()}],m:[{m:T()}],mx:[{mx:T()}],my:[{my:T()}],ms:[{ms:T()}],me:[{me:T()}],mbs:[{mbs:T()}],mbe:[{mbe:T()}],mt:[{mt:T()}],mr:[{mr:T()}],mb:[{mb:T()}],ml:[{ml:T()}],"space-x":[{"space-x":y()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":y()}],"space-y-reverse":["space-y-reverse"],size:[{size:C()}],"inline-size":[{inline:["auto",...O()]}],"min-inline-size":[{"min-inline":["auto",...O()]}],"max-inline-size":[{"max-inline":["none",...O()]}],"block-size":[{block:["auto",...N()]}],"min-block-size":[{"min-block":["auto",...N()]}],"max-block-size":[{"max-block":["none",...N()]}],w:[{w:[a,"screen",...C()]}],"min-w":[{"min-w":[a,"screen","none",...C()]}],"max-w":[{"max-w":[a,"screen","none","prose",{screen:[i]},...C()]}],h:[{h:["screen","lh",...C()]}],"min-h":[{"min-h":["screen","lh","none",...C()]}],"max-h":[{"max-h":["screen","lh",...C()]}],"font-size":[{text:["base",n,to,Br]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,ao,Yr]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Fr,qr]}],"font-family":[{font:[no,Qr,t]}],"font-features":[{"font-features":[qr]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[o,eo,qr]}],"line-clamp":[{"line-clamp":[Lr,"none",eo,Kr]}],leading:[{leading:[s,...y()]}],"list-image":[{"list-image":["none",eo,qr]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",eo,qr]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:I()}],"text-color":[{text:I()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:["solid","dashed","dotted","double","wavy"]}],"text-decoration-thickness":[{decoration:[Lr,"from-font","auto",eo,Br]}],"text-decoration-color":[{decoration:I()}],"underline-offset":[{"underline-offset":[Lr,"auto",eo,qr]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:y()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",eo,qr]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",eo,qr]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:R()}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","space","round"]}]}],"bg-size":[{bg:A()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Ur,eo,qr],radial:["",eo,qr],conic:[Ur,eo,qr]},so,Jr]}],"bg-color":[{bg:I()}],"gradient-from-pos":[{from:P()}],"gradient-via-pos":[{via:P()}],"gradient-to-pos":[{to:P()}],"gradient-from":[{from:I()}],"gradient-via":[{via:I()}],"gradient-to":[{to:I()}],rounded:[{rounded:D()}],"rounded-s":[{"rounded-s":D()}],"rounded-e":[{"rounded-e":D()}],"rounded-t":[{"rounded-t":D()}],"rounded-r":[{"rounded-r":D()}],"rounded-b":[{"rounded-b":D()}],"rounded-l":[{"rounded-l":D()}],"rounded-ss":[{"rounded-ss":D()}],"rounded-se":[{"rounded-se":D()}],"rounded-ee":[{"rounded-ee":D()}],"rounded-es":[{"rounded-es":D()}],"rounded-tl":[{"rounded-tl":D()}],"rounded-tr":[{"rounded-tr":D()}],"rounded-br":[{"rounded-br":D()}],"rounded-bl":[{"rounded-bl":D()}],"border-w":[{border:L()}],"border-w-x":[{"border-x":L()}],"border-w-y":[{"border-y":L()}],"border-w-s":[{"border-s":L()}],"border-w-e":[{"border-e":L()}],"border-w-bs":[{"border-bs":L()}],"border-w-be":[{"border-be":L()}],"border-w-t":[{"border-t":L()}],"border-w-r":[{"border-r":L()}],"border-w-b":[{"border-b":L()}],"border-w-l":[{"border-l":L()}],"divide-x":[{"divide-x":L()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":L()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:["solid","dashed","dotted","double","hidden","none"]}],"divide-style":[{divide:["solid","dashed","dotted","double","hidden","none"]}],"border-color":[{border:I()}],"border-color-x":[{"border-x":I()}],"border-color-y":[{"border-y":I()}],"border-color-s":[{"border-s":I()}],"border-color-e":[{"border-e":I()}],"border-color-bs":[{"border-bs":I()}],"border-color-be":[{"border-be":I()}],"border-color-t":[{"border-t":I()}],"border-color-r":[{"border-r":I()}],"border-color-b":[{"border-b":I()}],"border-color-l":[{"border-l":I()}],"divide-color":[{divide:I()}],"outline-style":[{outline:["solid","dashed","dotted","double","none","hidden"]}],"outline-offset":[{"outline-offset":[Lr,eo,qr]}],"outline-w":[{outline:["",Lr,to,Br]}],"outline-color":[{outline:I()}],shadow:[{shadow:["","none",u,io,Xr]}],"shadow-color":[{shadow:I()}],"inset-shadow":[{"inset-shadow":["none",d,io,Xr]}],"inset-shadow-color":[{"inset-shadow":I()}],"ring-w":[{ring:L()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:I()}],"ring-offset-w":[{"ring-offset":[Lr,Br]}],"ring-offset-color":[{"ring-offset":I()}],"inset-ring-w":[{"inset-ring":L()}],"inset-ring-color":[{"inset-ring":I()}],"text-shadow":[{"text-shadow":["none",f,io,Xr]}],"text-shadow-color":[{"text-shadow":I()}],opacity:[{opacity:[Lr,eo,qr]}],"mix-blend":[{"mix-blend":["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity","plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"]}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[Lr]}],"mask-image-linear-from-pos":[{"mask-linear-from":U()}],"mask-image-linear-to-pos":[{"mask-linear-to":U()}],"mask-image-linear-from-color":[{"mask-linear-from":I()}],"mask-image-linear-to-color":[{"mask-linear-to":I()}],"mask-image-t-from-pos":[{"mask-t-from":U()}],"mask-image-t-to-pos":[{"mask-t-to":U()}],"mask-image-t-from-color":[{"mask-t-from":I()}],"mask-image-t-to-color":[{"mask-t-to":I()}],"mask-image-r-from-pos":[{"mask-r-from":U()}],"mask-image-r-to-pos":[{"mask-r-to":U()}],"mask-image-r-from-color":[{"mask-r-from":I()}],"mask-image-r-to-color":[{"mask-r-to":I()}],"mask-image-b-from-pos":[{"mask-b-from":U()}],"mask-image-b-to-pos":[{"mask-b-to":U()}],"mask-image-b-from-color":[{"mask-b-from":I()}],"mask-image-b-to-color":[{"mask-b-to":I()}],"mask-image-l-from-pos":[{"mask-l-from":U()}],"mask-image-l-to-pos":[{"mask-l-to":U()}],"mask-image-l-from-color":[{"mask-l-from":I()}],"mask-image-l-to-color":[{"mask-l-to":I()}],"mask-image-x-from-pos":[{"mask-x-from":U()}],"mask-image-x-to-pos":[{"mask-x-to":U()}],"mask-image-x-from-color":[{"mask-x-from":I()}],"mask-image-x-to-color":[{"mask-x-to":I()}],"mask-image-y-from-pos":[{"mask-y-from":U()}],"mask-image-y-to-pos":[{"mask-y-to":U()}],"mask-image-y-from-color":[{"mask-y-from":I()}],"mask-image-y-to-color":[{"mask-y-to":I()}],"mask-image-radial":[{"mask-radial":[eo,qr]}],"mask-image-radial-from-pos":[{"mask-radial-from":U()}],"mask-image-radial-to-pos":[{"mask-radial-to":U()}],"mask-image-radial-from-color":[{"mask-radial-from":I()}],"mask-image-radial-to-color":[{"mask-radial-to":I()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"]}],"mask-image-conic-pos":[{"mask-conic":[Lr]}],"mask-image-conic-from-pos":[{"mask-conic-from":U()}],"mask-image-conic-to-pos":[{"mask-conic-to":U()}],"mask-image-conic-from-color":[{"mask-conic-from":I()}],"mask-image-conic-to-color":[{"mask-conic-to":I()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:R()}],"mask-repeat":[{mask:["no-repeat",{repeat:["","x","y","space","round"]}]}],"mask-size":[{mask:A()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",eo,qr]}],filter:[{filter:["","none",eo,qr]}],blur:[{blur:F()}],brightness:[{brightness:[Lr,eo,qr]}],contrast:[{contrast:[Lr,eo,qr]}],"drop-shadow":[{"drop-shadow":["","none",_,io,Xr]}],"drop-shadow-color":[{"drop-shadow":I()}],grayscale:[{grayscale:["",Lr,eo,qr]}],"hue-rotate":[{"hue-rotate":[Lr,eo,qr]}],invert:[{invert:["",Lr,eo,qr]}],saturate:[{saturate:[Lr,eo,qr]}],sepia:[{sepia:["",Lr,eo,qr]}],"backdrop-filter":[{"backdrop-filter":["","none",eo,qr]}],"backdrop-blur":[{"backdrop-blur":F()}],"backdrop-brightness":[{"backdrop-brightness":[Lr,eo,qr]}],"backdrop-contrast":[{"backdrop-contrast":[Lr,eo,qr]}],"backdrop-grayscale":[{"backdrop-grayscale":["",Lr,eo,qr]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[Lr,eo,qr]}],"backdrop-invert":[{"backdrop-invert":["",Lr,eo,qr]}],"backdrop-opacity":[{"backdrop-opacity":[Lr,eo,qr]}],"backdrop-saturate":[{"backdrop-saturate":[Lr,eo,qr]}],"backdrop-sepia":[{"backdrop-sepia":["",Lr,eo,qr]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":y()}],"border-spacing-x":[{"border-spacing-x":y()}],"border-spacing-y":[{"border-spacing-y":y()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",eo,qr]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[Lr,"initial",eo,qr]}],ease:[{ease:["linear","initial",b,eo,qr]}],delay:[{delay:[Lr,eo,qr]}],animate:[{animate:["none",v,eo,qr]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[h,eo,qr]}],"perspective-origin":[{"perspective-origin":g()}],rotate:[{rotate:$()}],"rotate-x":[{"rotate-x":$()}],"rotate-y":[{"rotate-y":$()}],"rotate-z":[{"rotate-z":$()}],scale:[{scale:M()}],"scale-x":[{"scale-x":M()}],"scale-y":[{"scale-y":M()}],"scale-z":[{"scale-z":M()}],"scale-3d":["scale-3d"],skew:[{skew:z()}],"skew-x":[{"skew-x":z()}],"skew-y":[{"skew-y":z()}],transform:[{transform:[eo,qr,"","none","gpu","cpu"]}],"transform-origin":[{origin:g()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:G()}],"translate-x":[{"translate-x":G()}],"translate-y":[{"translate-y":G()}],"translate-z":[{"translate-z":G()}],"translate-none":["translate-none"],accent:[{accent:I()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:I()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",eo,qr]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":y()}],"scroll-mx":[{"scroll-mx":y()}],"scroll-my":[{"scroll-my":y()}],"scroll-ms":[{"scroll-ms":y()}],"scroll-me":[{"scroll-me":y()}],"scroll-mbs":[{"scroll-mbs":y()}],"scroll-mbe":[{"scroll-mbe":y()}],"scroll-mt":[{"scroll-mt":y()}],"scroll-mr":[{"scroll-mr":y()}],"scroll-mb":[{"scroll-mb":y()}],"scroll-ml":[{"scroll-ml":y()}],"scroll-p":[{"scroll-p":y()}],"scroll-px":[{"scroll-px":y()}],"scroll-py":[{"scroll-py":y()}],"scroll-ps":[{"scroll-ps":y()}],"scroll-pe":[{"scroll-pe":y()}],"scroll-pbs":[{"scroll-pbs":y()}],"scroll-pbe":[{"scroll-pbe":y()}],"scroll-pt":[{"scroll-pt":y()}],"scroll-pr":[{"scroll-pr":y()}],"scroll-pb":[{"scroll-pb":y()}],"scroll-pl":[{"scroll-pl":y()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",eo,qr]}],fill:[{fill:["none",...I()]}],"stroke-w":[{stroke:[Lr,to,Br,Kr]}],stroke:[{stroke:["none",...I()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pbs","pbe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mbs","mbe","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-bs","border-w-be","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-bs","border-color-be","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mbs","scroll-mbe","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pbs","scroll-pbe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}}),yo=(...e)=>tr(go(...e.filter(Boolean))),wo=e=>{const t=e.replace(/#/g,"");return(299*parseInt(t.slice(0,2),16)+587*parseInt(t.slice(2,4),16)+114*parseInt(t.slice(4,6),16))/1e3>=128?"#000000":"#FFFFFF"},ko="px",Eo=(e,t="light")=>{const n=e?.themeSettings?.colors??{},r=e?.themeSettings?.border,o=e?.themeSettings?.shadow,s=e?.integrationSettings,i="dark"===t,a=(e,t,r,o)=>{const s=i?o:r;return n[i?t:e]||s},l=a("primaryLight","primaryDark","#ff4800","#ff4800");return{"--background":a("backgroundLight","backgroundDark","#fafafa","#0a0a0a"),"--foreground":a("foregroundLight","foregroundDark","#252629","#f5f5f5"),"--muted":a("mutedLight","mutedDark","#e5e5e5","#171717"),"--muted-foreground":a("mutedForegroundLight","mutedForegroundDark","#484848","#b5b8bb"),"--border":a("borderLight","borderDark","#dddddd","#353538"),"--input":a("inputLight","inputDark","#f5f5f5","#171717"),"--primary":l,"--primary-foreground":wo(l),"--popover":a("popoverLight","popoverDark","#f5f5f5","#171717"),"--popover-foreground":a("popoverForegroundLight","popoverForegroundDark","#252629","#fafafa"),"--info":a("infoLight","infoDark","#2563eb","#5b8def"),"--warning":a("warningLight","warningDark","#f59e0b","#fbbf24"),"--success":a("successLight","successDark","#10b981","#34d399"),"--destructive":a("destructiveLight","destructiveDark","#ef4444","#f87171"),"--border-width":`${r?.width||"1"}${r?.unit||"px"}`,"--radius":`${r?.radius||"10"}${r?.unit||"px"}`,"--shadow-outer-horizontal-offset":`${o?.outerHorizontalOffset||"0"}${o?.unit||ko}`,"--shadow-outer-vertical-offset":`${o?.outerVerticalOffset||"0"}${o?.unit||ko}`,"--shadow-outer-blur":`${o?.outerBlur||"0"}${o?.unit||ko}`,"--shadow-outer-spread":`${o?.outerSpread||"0"}${o?.unit||ko}`,"--font-family":Jn(s)}};export{st as $,Hn as A,he as At,Ut as B,Pn as C,Ce as Ct,Vn as D,le as Dt,Yn as E,de as Et,gt as F,B as Ft,dn as G,mt as H,Nt as I,g as It,ft as J,wt as K,Rt as L,w as Lt,wn as M,ue as Mt,gn as N,W as Nt,Un as O,ge as Ot,Ht as P,q as Pt,it as Q,St as R,k as Rt,xn as S,Oe as St,En as T,pe as Tt,bn as U,hn as V,ln as W,dt as X,_t as Y,ut as Z,Gn as _,Ve as _t,On as a,Xe as at,Dn as b,Le as bt,Bn as c,ze as ct,Mn as d,$e as dt,rt as et,zn as f,Ae as ft,$n as g,Ue as gt,An as h,Fe as ht,Xn as i,Ze as it,kn as j,me as jt,jn as k,ce as kt,Cn as l,De as lt,Nn as m,Ye as mt,Eo as n,tt as nt,Kn as o,Pe as ot,Rn as p,je as pt,$t as q,tr as r,Qe as rt,qn as s,Ge as st,yo as t,nt as tt,Ln as u,Me as ut,Wn as v,et as vt,In as w,fe as wt,Sn as x,Ie as xt,Fn as y,Je as yt,Tt as z,E as zt};
@@ -1,6 +0,0 @@
1
- import{At as e,Dt as t,Et as n,Ft as r,I as a,It as o,K as i,L as l,Mt as s,N as u,R as c,Rt as h,Tt as p,W as d,jt as m,t as f,wt as g,z as v,zt as y}from"./BiQECCnr.js";var b="popstate";function w(e){return"object"==typeof e&&null!=e&&"pathname"in e&&"search"in e&&"hash"in e&&"state"in e&&"key"in e}function R(e,t){if(!1===e||null==e)throw new Error(t)}function E(e,t){if(!e){"undefined"!=typeof console&&console.warn(t);try{throw new Error(t)}catch(n){}}}function S(e,t){return{usr:e.state,key:e.key,idx:t,masked:e.unstable_mask?{pathname:e.pathname,search:e.search,hash:e.hash}:void 0}}function x(e,t,n=null,r,a){return{pathname:"string"==typeof e?e:e.pathname,search:"",hash:"",..."string"==typeof t?k(t):t,state:n,key:t&&t.key||r||Math.random().toString(36).substring(2,10),unstable_mask:a}}function $({pathname:e="/",search:t="",hash:n=""}){return t&&"?"!==t&&(e+="?"===t.charAt(0)?t:"?"+t),n&&"#"!==n&&(e+="#"===n.charAt(0)?n:"#"+n),e}function k(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substring(n),e=e.substring(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substring(r),e=e.substring(0,r)),e&&(t.pathname=e)}return t}function T(e,t,n="/"){return function(e,t,n){let r=I(("string"==typeof t?k(t):t).pathname||"/",n);if(null==r)return null;let a=P(e);!function(e){e.sort((e,t)=>e.score!==t.score?t.score-e.score:function(e,t){return e.length===t.length&&e.slice(0,-1).every((e,n)=>e===t[n])?e[e.length-1]-t[t.length-1]:0}(e.routesMeta.map(e=>e.childrenIndex),t.routesMeta.map(e=>e.childrenIndex)))}(a);let o=null;for(let i=0;null==o&&i<a.length;++i){let e=F(r);o=U(a[i],e,false)}return o}(e,t,n)}function P(e,t=[],n=[],r="",a=!1){let o=(e,o,i=a,l)=>{let s={relativePath:void 0===l?e.path||"":l,caseSensitive:!0===e.caseSensitive,childrenIndex:o,route:e};if(s.relativePath.startsWith("/")){if(!s.relativePath.startsWith(r)&&i)return;R(s.relativePath.startsWith(r),`Absolute route path "${s.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),s.relativePath=s.relativePath.slice(r.length)}let u=K([r,s.relativePath]),c=n.concat(s);e.children&&e.children.length>0&&(R(!0!==e.index,`Index routes must not have child routes. Please remove all child routes from route path "${u}".`),P(e.children,t,c,u,i)),(null!=e.path||e.index)&&t.push({path:u,score:D(u,e.index),routesMeta:c})};return e.forEach((e,t)=>{if(""!==e.path&&e.path?.includes("?"))for(let n of L(e.path))o(e,t,!0,n);else o(e,t)}),t}function L(e){let t=e.split("/");if(0===t.length)return[];let[n,...r]=t,a=n.endsWith("?"),o=n.replace(/\?$/,"");if(0===r.length)return a?[o,""]:[o];let i=L(r.join("/")),l=[];return l.push(...i.map(e=>""===e?o:[o,e].join("/"))),a&&l.push(...i),l.map(t=>e.startsWith("/")&&""===t?"/":t)}var O=/^:[\w-]+$/,C=3,_=2,N=1,M=10,j=-2,A=e=>"*"===e;function D(e,t){let n=e.split("/"),r=n.length;return n.some(A)&&(r+=j),t&&(r+=_),n.filter(e=>!A(e)).reduce((e,t)=>e+(O.test(t)?C:""===t?N:M),r)}function U(e,t,n=!1){let{routesMeta:r}=e,a={},o="/",i=[];for(let l=0;l<r.length;++l){let e=r[l],s=l===r.length-1,u="/"===o?t:t.slice(o.length)||"/",c=W({path:e.relativePath,caseSensitive:e.caseSensitive,end:s},u),h=e.route;if(!c&&s&&n&&!r[r.length-1].route.index&&(c=W({path:e.relativePath,caseSensitive:e.caseSensitive,end:!1},u)),!c)return null;Object.assign(a,c.params),i.push({params:a,pathname:K([o,c.pathname]),pathnameBase:V(K([o,c.pathnameBase])),route:h}),"/"!==c.pathnameBase&&(o=K([o,c.pathnameBase]))}return i}function W(e,t){"string"==typeof e&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=function(e,t=!1,n=!0){E("*"===e||!e.endsWith("*")||e.endsWith("/*"),`Route path "${e}" will be treated as if it were "${e.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/,"/*")}".`);let r=[],a="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(e,t,n,a,o)=>{if(r.push({paramName:t,isOptional:null!=n}),n){let t=o.charAt(a+e.length);return t&&"/"!==t?"/([^\\/]*)":"(?:/([^\\/]*))?"}return"/([^\\/]+)"}).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return e.endsWith("*")?(r.push({paramName:"*"}),a+="*"===e||"/*"===e?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?a+="\\/*$":""!==e&&"/"!==e&&(a+="(?:(?=\\/|$))"),[new RegExp(a,t?void 0:"i"),r]}(e.path,e.caseSensitive,e.end),a=t.match(n);if(!a)return null;let o=a[0],i=o.replace(/(.)\/+$/,"$1"),l=a.slice(1);return{params:r.reduce((e,{paramName:t,isOptional:n},r)=>{if("*"===t){let e=l[r]||"";i=o.slice(0,o.length-e.length).replace(/(.)\/+$/,"$1")}const a=l[r];return e[t]=n&&!a?void 0:(a||"").replace(/%2F/g,"/"),e},{}),pathname:o,pathnameBase:i,pattern:e}}function F(e){try{return e.split("/").map(e=>decodeURIComponent(e).replace(/\//g,"%2F")).join("/")}catch(t){return E(!1,`The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`),e}}function I(e,t){if("/"===t)return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&"/"!==r?null:e.slice(n)||"/"}var B=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i;function z(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(e=>{".."===e?n.length>1&&n.pop():"."!==e&&n.push(e)}),n.length>1?n.join("/"):"/"}function H(e,t,n,r){return`Cannot include a '${e}' character in a manually specified \`to.${t}\` field [${JSON.stringify(r)}]. Please separate it out to the \`to.${n}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function J(e){let t=function(e){return e.filter((e,t)=>0===t||e.route.path&&e.route.path.length>0)}(e);return t.map((e,n)=>n===t.length-1?e.pathname:e.pathnameBase)}function Y(e,t,n,r=!1){let a;"string"==typeof e?a=k(e):(a={...e},R(!a.pathname||!a.pathname.includes("?"),H("?","pathname","search",a)),R(!a.pathname||!a.pathname.includes("#"),H("#","pathname","hash",a)),R(!a.search||!a.search.includes("#"),H("#","search","hash",a)));let o,i=""===e||""===a.pathname,l=i?"/":a.pathname;if(null==l)o=n;else{let e=t.length-1;if(!r&&l.startsWith("..")){let t=l.split("/");for(;".."===t[0];)t.shift(),e-=1;a.pathname=t.join("/")}o=e>=0?t[e]:"/"}let s=function(e,t="/"){let n,{pathname:r,search:a="",hash:o=""}="string"==typeof e?k(e):e;return r?(r=r.replace(/\/\/+/g,"/"),n=r.startsWith("/")?z(r.substring(1),"/"):z(r,t)):n=t,{pathname:n,search:X(a),hash:q(o)}}(a,o),u=l&&"/"!==l&&l.endsWith("/"),c=(i||"."===l)&&n.endsWith("/");return s.pathname.endsWith("/")||!u&&!c||(s.pathname+="/"),s}var K=e=>e.join("/").replace(/\/\/+/g,"/"),V=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),X=e=>e&&"?"!==e?e.startsWith("?")?e:"?"+e:"",q=e=>e&&"#"!==e?e.startsWith("#")?e:"#"+e:"",G=class{constructor(e,t,n,r=!1){this.status=e,this.statusText=t||"",this.internal=r,n instanceof Error?(this.data=n.toString(),this.error=n):this.data=n}};function Q(e){return e.map(e=>e.route.path).filter(Boolean).join("/").replace(/\/\/*/g,"/")||"/"}var Z="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement;function ee(e,t){let n=e;if("string"!=typeof n||!B.test(n))return{absoluteURL:void 0,isExternal:!1,to:n};let r=n,a=!1;if(Z)try{let e=new URL(window.location.href),r=n.startsWith("//")?new URL(e.protocol+n):new URL(n),o=I(r.pathname,t);r.origin===e.origin&&null!=o?n=o+r.search+r.hash:a=!0}catch(o){E(!1,`<Link to="${n}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:r,isExternal:a,to:n}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var te=["POST","PUT","PATCH","DELETE"],ne=(new Set(te),["GET",...te]),re=(new Set(ne),r(null));re.displayName="DataRouter";var ae=r(null);ae.displayName="DataRouterState";var oe=r(!1),ie=r({isTransitioning:!1});ie.displayName="ViewTransition",r(/* @__PURE__ */new Map).displayName="Fetchers",r(null).displayName="Await";var le=r(null);le.displayName="Navigation";var se=r(null);se.displayName="Location";var ue=r({outlet:null,matches:[],isDataRoute:!1});ue.displayName="Route";var ce=r(null);ce.displayName="RouteError";var he="REACT_ROUTER_ERROR";function pe(){return null!=m(se)}function de(){return R(pe(),"useLocation() may be used only in the context of a <Router> component."),m(se).location}var me="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function fe(e){m(le).static||n(e)}function ge(){let{isDataRoute:t}=m(ue);return t?function(){let{router:t}=function(){let e=m(re);return R(e,Te("useNavigate")),e}(),n=Pe("useNavigate"),r=g(!1);return fe(()=>{r.current=!0}),e(async(e,a={})=>{E(r.current,me),r.current&&("number"==typeof e?await t.navigate(e):await t.navigate(e,{fromRouteId:n,...a}))},[t,n])}():function(){R(pe(),"useNavigate() may be used only in the context of a <Router> component.");let t=m(re),{basename:n,navigator:r}=m(le),{matches:a}=m(ue),{pathname:o}=de(),i=JSON.stringify(J(a)),l=g(!1);return fe(()=>{l.current=!0}),e((e,a={})=>{if(E(l.current,me),!l.current)return;if("number"==typeof e)return void r.go(e);let s=Y(e,JSON.parse(i),o,"path"===a.relative);null==t&&"/"!==n&&(s.pathname="/"===s.pathname?n:K([n,s.pathname])),(a.replace?r.replace:r.push)(s,a.state,a)},[n,r,i,o,t])}()}var ve=r(null);function ye(){let{matches:e}=m(ue),t=e[e.length-1];return t?t.params:{}}function be(e,{relative:t}={}){let{matches:n}=m(ue),{pathname:r}=de(),a=JSON.stringify(J(n));return p(()=>Y(e,JSON.parse(a),r,"path"===t),[e,a,r,t])}function we(e,t,n){R(pe(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:r}=m(le),{matches:a}=m(ue),i=a[a.length-1],l=i?i.params:{},s=i?i.pathname:"/",u=i?i.pathnameBase:"/",c=i&&i.route;{let e=c&&c.path||"";Oe(s,!c||e.endsWith("*")||e.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${s}" (under <Route path="${e}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.\n\nPlease change the parent <Route path="${e}"> to <Route path="${"/"===e?"*":`${e}/*`}">.`)}let h,p=de();if(t){let e="string"==typeof t?k(t):t;R("/"===u||e.pathname?.startsWith(u),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${u}" but pathname "${e.pathname}" was given in the \`location\` prop.`),h=e}else h=p;let d=h.pathname||"/",f=d;if("/"!==u){let e=u.replace(/^\//,"").split("/");f="/"+d.replace(/^\//,"").split("/").slice(e.length).join("/")}let g=T(e,{pathname:f});E(c||null!=g,`No routes matched location "${h.pathname}${h.search}${h.hash}" `),E(null==g||void 0!==g[g.length-1].route.element||void 0!==g[g.length-1].route.Component||void 0!==g[g.length-1].route.lazy,`Matched leaf route at location "${h.pathname}${h.search}${h.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let v=function(e,t=[],n){let r=n?.state;if(null==e){if(!r)return null;if(r.errors)e=r.matches;else{if(0!==t.length||r.initialized||!(r.matches.length>0))return null;e=r.matches}}let a=e,i=r?.errors;if(null!=i){let e=a.findIndex(e=>e.route.id&&void 0!==i?.[e.route.id]);R(e>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(i).join(",")}`),a=a.slice(0,Math.min(a.length,e+1))}let l=!1,s=-1;if(n&&r){l=r.renderFallback;for(let e=0;e<a.length;e++){let t=a[e];if((t.route.HydrateFallback||t.route.hydrateFallbackElement)&&(s=e),t.route.id){let{loaderData:e,errors:o}=r,i=t.route.loader&&!e.hasOwnProperty(t.route.id)&&(!o||void 0===o[t.route.id]);if(t.route.lazy||i){n.isStatic&&(l=!0),a=s>=0?a.slice(0,s+1):[a[0]];break}}}}let u=n?.onError,c=r&&u?(e,t)=>{u(e,{location:r.location,params:r.matches?.[0]?.params??{},unstable_pattern:Q(r.matches),errorInfo:t})}:void 0;return a.reduceRight((e,n,u)=>{let h,p=!1,d=null,m=null;r&&(h=i&&n.route.id?i[n.route.id]:void 0,d=n.route.errorElement||Ee,l&&(s<0&&0===u?(Oe("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),p=!0,m=null):s===u&&(p=!0,m=n.route.hydrateFallbackElement||null)));let f=t.concat(a.slice(0,u+1)),g=()=>{let t;return t=h?d:p?m:n.route.Component?/* @__PURE__ */o(n.route.Component,null):n.route.element?n.route.element:e,/* @__PURE__ */o(ke,{match:n,routeContext:{outlet:e,matches:f,isDataRoute:null!=r},children:t})};return r&&(n.route.ErrorBoundary||n.route.errorElement||0===u)?/* @__PURE__ */o(Se,{location:r.location,revalidation:r.revalidation,component:d,error:h,children:g(),routeContext:{outlet:null,matches:f,isDataRoute:!0},onError:c}):g()},null)}(g&&g.map(e=>Object.assign({},e,{params:Object.assign({},l,e.params),pathname:K([u,r.encodeLocation?r.encodeLocation(e.pathname.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:e.pathname]),pathnameBase:"/"===e.pathnameBase?u:K([u,r.encodeLocation?r.encodeLocation(e.pathnameBase.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:e.pathnameBase])})),a,n);return t&&v?/* @__PURE__ */o(se.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",unstable_mask:void 0,...h},navigationType:"POP"}},v):v}function Re(){let e=function(){let e=m(ce),t=function(e){let t=m(ae);return R(t,Te(e)),t}("useRouteError"),n=Pe("useRouteError");return void 0!==e?e:t.errors?.[n]}(),t=function(e){return null!=e&&"number"==typeof e.status&&"string"==typeof e.statusText&&"boolean"==typeof e.internal&&"data"in e}(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,r="rgba(200,200,200, 0.5)",a={padding:"0.5rem",backgroundColor:r},i={padding:"2px 4px",backgroundColor:r},l=null;return console.error("Error handled by React Router default ErrorBoundary:",e),l=/* @__PURE__ */o(h,null,/* @__PURE__ */o("p",null,"💿 Hey developer 👋"),/* @__PURE__ */o("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",/* @__PURE__ */o("code",{style:i},"ErrorBoundary")," or"," ",/* @__PURE__ */o("code",{style:i},"errorElement")," prop on your route.")),/* @__PURE__ */o(h,null,/* @__PURE__ */o("h2",null,"Unexpected Application Error!"),/* @__PURE__ */o("h3",{style:{fontStyle:"italic"}},t),n?/* @__PURE__ */o("pre",{style:a},n):null,l)}var Ee=/* @__PURE__ */o(Re,null),Se=class extends y{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||"idle"!==t.revalidation&&"idle"===e.revalidation?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:void 0!==e.error?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){this.props.onError?this.props.onError(e,t):console.error("React Router caught the following error during render",e)}render(){let e=this.state.error;if(this.context&&"object"==typeof e&&e&&"digest"in e&&"string"==typeof e.digest){const t=function(e){if(e.startsWith(`${he}:ROUTE_ERROR_RESPONSE:{`))try{let t=JSON.parse(e.slice(40));if("object"==typeof t&&t&&"number"==typeof t.status&&"string"==typeof t.statusText)return new G(t.status,t.statusText,t.data)}catch{}}(e.digest);t&&(e=t)}let t=void 0!==e?/* @__PURE__ */o(ue.Provider,{value:this.props.routeContext},/* @__PURE__ */o(ce.Provider,{value:e,children:this.props.component})):this.props.children;return this.context?/* @__PURE__ */o($e,{error:e},t):t}};Se.contextType=oe;var xe=/* @__PURE__ */new WeakMap;function $e({children:e,error:t}){let{basename:n}=m(le);if("object"==typeof t&&t&&"digest"in t&&"string"==typeof t.digest){let e=function(e){if(e.startsWith(`${he}:REDIRECT:{`))try{let t=JSON.parse(e.slice(28));if("object"==typeof t&&t&&"number"==typeof t.status&&"string"==typeof t.statusText&&"string"==typeof t.location&&"boolean"==typeof t.reloadDocument&&"boolean"==typeof t.replace)return t}catch{}}(t.digest);if(e){let r=xe.get(t);if(r)throw r;let a=ee(e.location,n);if(Z&&!xe.get(t)){if(!a.isExternal&&!e.reloadDocument){const n=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(a.to,{replace:e.replace}));throw xe.set(t,n),n}window.location.href=a.absoluteURL||a.to}/* @__PURE__ */
2
- return o("meta",{httpEquiv:"refresh",content:`0;url=${a.absoluteURL||a.to}`})}}return e}function ke({routeContext:e,match:t,children:n}){let r=m(re);return r&&r.static&&r.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=t.route.id),/* @__PURE__ */o(ue.Provider,{value:e},n)}function Te(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Pe(e){let t=function(e){let t=m(ue);return R(t,Te(e)),t}(e),n=t.matches[t.matches.length-1];return R(n.route.id,`${e} can only be used on routes that contain a unique "id"`),n.route.id}var Le={};function Oe(e,t,n){t||Le[e]||(Le[e]=!0,E(!1,n))}function Ce({basename:r,children:a,initialEntries:l,initialIndex:s,unstable_useTransitions:u}){let c=g();null==c.current&&(c.current=function(e={}){let t,{initialEntries:n=["/"],initialIndex:r,v5Compat:a=!1}=e;t=n.map((e,t)=>c(e,"string"==typeof e?null:e.state,0===t?"default":void 0,"string"==typeof e?void 0:e.unstable_mask));let o=s(null==r?t.length-1:r),i="POP",l=null;function s(e){return Math.min(Math.max(e,0),t.length-1)}function u(){return t[o]}function c(e,n=null,r,a){let o=x(t?u().pathname:"/",e,n,r,a);return E("/"===o.pathname.charAt(0),`relative pathnames are not supported in memory history: ${JSON.stringify(e)}`),o}function h(e){return"string"==typeof e?e:$(e)}return{get index(){return o},get action(){return i},get location(){return u()},createHref:h,createURL:e=>new URL(h(e),"http://localhost"),encodeLocation(e){let t="string"==typeof e?k(e):e;return{pathname:t.pathname||"",search:t.search||"",hash:t.hash||""}},push(e,n){i="PUSH";let r=w(e)?e:c(e,n);o+=1,t.splice(o,t.length,r),a&&l&&l({action:i,location:r,delta:1})},replace(e,n){i="REPLACE";let r=w(e)?e:c(e,n);t[o]=r,a&&l&&l({action:i,location:r,delta:0})},go(e){i="POP";let n=s(o+e),r=t[n];o=n,l&&l({action:i,location:r,delta:e})},listen:e=>(l=e,()=>{l=null})}}({initialEntries:l,initialIndex:s,v5Compat:!0}));let h=c.current,[p,d]=t({action:h.action,location:h.location}),m=e(e=>{!1===u?d(e):i(()=>d(e))},[u]);return n(()=>h.listen(m),[h,m]),/* @__PURE__ */o(je,{basename:r,children:a,location:p.location,navigationType:p.action,navigator:h,unstable_useTransitions:u})}function _e({to:e,replace:t,state:n,relative:r}){R(pe(),"<Navigate> may be used only in the context of a <Router> component.");let{static:a}=m(le);E(!a,"<Navigate> must not be used on the initial render in a <StaticRouter>. This is a no-op, but you should modify your code so the <Navigate> is only ever rendered in response to some user interaction or state change.");let{matches:o}=m(ue),{pathname:i}=de(),l=ge(),u=Y(e,J(o),i,"path"===r),c=JSON.stringify(u);return s(()=>{l(JSON.parse(c),{replace:t,state:n,relative:r})},[l,c,r,t,n]),null}function Ne(e){return function(e){let t=m(ue).outlet;return p(()=>t&&/* @__PURE__ */o(ve.Provider,{value:e},t),[t,e])}(e.context)}function Me(e){R(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.")}function je({basename:e="/",children:t=null,location:n,navigationType:r="POP",navigator:a,static:i=!1,unstable_useTransitions:l}){R(!pe(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let s=e.replace(/^\/*/,"/"),u=p(()=>({basename:s,navigator:a,static:i,unstable_useTransitions:l,future:{}}),[s,a,i,l]);"string"==typeof n&&(n=k(n));let{pathname:c="/",search:h="",hash:d="",state:m=null,key:f="default",unstable_mask:g}=n,v=p(()=>{let e=I(c,s);return null==e?null:{location:{pathname:e,search:h,hash:d,state:m,key:f,unstable_mask:g},navigationType:r}},[s,c,h,d,m,f,r,g]);return E(null!=v,`<Router basename="${s}"> is not able to match the URL "${c}${h}${d}" because it does not start with the basename, so the <Router> won't render anything.`),null==v?null:/* @__PURE__ */o(le.Provider,{value:u},/* @__PURE__ */o(se.Provider,{children:t,value:v}))}function Ae({children:e,location:t}){return we(De(e),t)}function De(e,t=[]){let n=[];return l.forEach(e,(e,r)=>{if(!d(e))return;let a=[...t,r];if(e.type===h)return void n.push.apply(n,De(e.props.children,a));R(e.type===Me,`[${"string"==typeof e.type?e.type:e.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),R(!e.props.index||!e.props.children,"An index route cannot have child routes.");let o={id:e.props.id||a.join("-"),caseSensitive:e.props.caseSensitive,element:e.props.element,Component:e.props.Component,index:e.props.index,path:e.props.path,middleware:e.props.middleware,loader:e.props.loader,action:e.props.action,hydrateFallbackElement:e.props.hydrateFallbackElement,HydrateFallback:e.props.HydrateFallback,errorElement:e.props.errorElement,ErrorBoundary:e.props.ErrorBoundary,hasErrorBoundary:!0===e.props.hasErrorBoundary||null!=e.props.ErrorBoundary||null!=e.props.errorElement,shouldRevalidate:e.props.shouldRevalidate,handle:e.props.handle,lazy:e.props.lazy};e.props.children&&(o.children=De(e.props.children,a)),n.push(o)}),n}v(function({routes:e,future:t,state:n,isStatic:r,onError:a}){return we(e,void 0,{state:n,isStatic:r,onError:a,future:t})});var Ue="get",We="application/x-www-form-urlencoded";function Fe(e){return"undefined"!=typeof HTMLElement&&e instanceof HTMLElement}var Ie=null,Be=/* @__PURE__ */new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function ze(e){return null==e||Be.has(e)?e:(E(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${We}"`),null)}function He(e,t){if(!1===e||null==e)throw new Error(t)}function Je(e){return null!=e&&(null==e.href?"preload"===e.rel&&"string"==typeof e.imageSrcSet&&"string"==typeof e.imageSizes:"string"==typeof e.rel&&"string"==typeof e.href)}function Ye(e,t,n,r,a,o){let i=(e,t)=>!n[t]||e.route.id!==n[t].route.id,l=(e,t)=>n[t].pathname!==e.pathname||n[t].route.path?.endsWith("*")&&n[t].params["*"]!==e.params["*"];return"assets"===o?t.filter((e,t)=>i(e,t)||l(e,t)):"data"===o?t.filter((t,o)=>{let s=r.routes[t.route.id];if(!s||!s.hasLoader)return!1;if(i(t,o)||l(t,o))return!0;if(t.route.shouldRevalidate){let r=t.route.shouldRevalidate({currentUrl:new URL(a.pathname+a.search+a.hash,window.origin),currentParams:n[0]?.params||{},nextUrl:new URL(e,window.origin),nextParams:t.params,defaultShouldRevalidate:!0});if("boolean"==typeof r)return r}return!0}):[]}function Ke(){let e=m(re);return He(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var Ve=r(void 0);function Xe(){let e=m(Ve);return He(e,"You must render this element inside a <HydratedRouter> element"),e}function qe(e,t){return n=>{e&&e(n),n.defaultPrevented||t(n)}}function Ge({page:e,...t}){let{router:n}=Ke(),r=p(()=>T(n.routes,e,n.basename),[n.routes,e,n.basename]);return r?/* @__PURE__ */o(Qe,{page:e,matches:r,...t}):null}function Qe({page:e,matches:n,...r}){let a=de(),{future:i,manifest:l,routeModules:u}=Xe(),{basename:c}=Ke(),{loaderData:d,matches:f}=function(){let e=m(ae);return He(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}(),g=p(()=>Ye(e,n,f,l,a,"data"),[e,n,f,l,a]),v=p(()=>Ye(e,n,f,l,a,"assets"),[e,n,f,l,a]),y=p(()=>{if(e===a.pathname+a.search+a.hash)return[];let t=/* @__PURE__ */new Set,r=!1;if(n.forEach(e=>{let n=l.routes[e.route.id];n&&n.hasLoader&&(!g.some(t=>t.route.id===e.route.id)&&e.route.id in d&&u[e.route.id]?.shouldRevalidate||n.hasClientLoader?r=!0:t.add(e.route.id))}),0===t.size)return[];let o=function(e,t,n,r){let a="string"==typeof e?new URL(e,"undefined"==typeof window?"server://singlefetch/":window.location.origin):e;return n?a.pathname.endsWith("/")?a.pathname=`${a.pathname}_.${r}`:a.pathname=`${a.pathname}.${r}`:"/"===a.pathname?a.pathname=`_root.${r}`:t&&"/"===I(a.pathname,t)?a.pathname=`${t.replace(/\/$/,"")}/_root.${r}`:a.pathname=`${a.pathname.replace(/\/$/,"")}.${r}`,a}(e,c,i.unstable_trailingSlashAwareDataRequests,"data");return r&&t.size>0&&o.searchParams.set("_routes",n.filter(e=>t.has(e.route.id)).map(e=>e.route.id).join(",")),[o.pathname+o.search]},[c,i.unstable_trailingSlashAwareDataRequests,d,a,l,g,n,e,u]),b=p(()=>function(e,t,{includeHydrateFallback:n}={}){return r=e.map(e=>{let r=t.routes[e.route.id];if(!r)return[];let a=[r.module];return r.clientActionModule&&(a=a.concat(r.clientActionModule)),r.clientLoaderModule&&(a=a.concat(r.clientLoaderModule)),n&&r.hydrateFallbackModule&&(a=a.concat(r.hydrateFallbackModule)),r.imports&&(a=a.concat(r.imports)),a}).flat(1),[...new Set(r)];var r}(v,l),[v,l]),w=function(e){let{manifest:n,routeModules:r}=Xe(),[a,o]=t([]);return s(()=>{let t=!1;return async function(e,t,n){return function(e,t){let n=/* @__PURE__ */new Set;return new Set(t),e.reduce((e,t)=>{let r=JSON.stringify(function(e){let t={},n=Object.keys(e).sort();for(let r of n)t[r]=e[r];return t}(t));return n.has(r)||(n.add(r),e.push({key:r,link:t})),e},[])}((await Promise.all(e.map(async e=>{let r=t.routes[e.route.id];if(r){let e=await async function(e,t){if(e.id in t)return t[e.id];try{let n=await import(e.module);return t[e.id]=n,n}catch(n){return console.error(`Error loading route module \`${e.module}\`, reloading page...`),console.error(n),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}(r,n);return e.links?e.links():[]}return[]}))).flat(1).filter(Je).filter(e=>"stylesheet"===e.rel||"preload"===e.rel).map(e=>"stylesheet"===e.rel?{...e,rel:"prefetch",as:"style"}:{...e,rel:"prefetch"}))}(e,n,r).then(e=>{t||o(e)}),()=>{t=!0}},[e,n,r]),a}(v);/* @__PURE__ */
3
- return o(h,null,y.map(e=>/* @__PURE__ */o("link",{key:e,rel:"prefetch",as:"fetch",href:e,...r})),b.map(e=>/* @__PURE__ */o("link",{key:e,rel:"modulepreload",href:e,...r})),w.map(({key:e,link:t})=>/* @__PURE__ */o("link",{key:e,nonce:r.nonce,...t,crossOrigin:t.crossOrigin??r.crossOrigin})))}function Ze(...e){return t=>{e.forEach(e=>{"function"==typeof e?e(t):null!=e&&(e.current=t)})}}Ve.displayName="FrameworkContext";var et="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement;try{et&&(window.__reactRouterVersion="7.13.1")}catch(Nt){}function tt({basename:r,children:a,unstable_useTransitions:l,window:s}){let u=g();null==u.current&&(u.current=function(e={}){return function(e,t,n,r={}){let{window:a=document.defaultView,v5Compat:o=!1}=r,i=a.history,l="POP",s=null,u=c();function c(){return(i.state||{idx:null}).idx}function h(){l="POP";let e=c(),t=null==e?null:e-u;u=e,s&&s({action:l,location:d.location,delta:t})}function p(e){return function(e,t=!1){let n="http://localhost";"undefined"!=typeof window&&(n="null"!==window.location.origin?window.location.origin:window.location.href),R(n,"No window.location.(origin|href) available to create URL");let r="string"==typeof e?e:$(e);return r=r.replace(/ $/,"%20"),!t&&r.startsWith("//")&&(r=n+r),new URL(r,n)}(e)}null==u&&(u=0,i.replaceState({...i.state,idx:u},""));let d={get action(){return l},get location(){return e(a,i)},listen(e){if(s)throw new Error("A history only accepts one active listener");return a.addEventListener(b,h),s=e,()=>{a.removeEventListener(b,h),s=null}},createHref:e=>t(a,e),createURL:p,encodeLocation(e){let t=p(e);return{pathname:t.pathname,search:t.search,hash:t.hash}},push:function(e,t){l="PUSH";let r=w(e)?e:x(d.location,e,t);n&&n(r,e),u=c()+1;let h=S(r,u),p=d.createHref(r.unstable_mask||r);try{i.pushState(h,"",p)}catch(m){if(m instanceof DOMException&&"DataCloneError"===m.name)throw m;a.location.assign(p)}o&&s&&s({action:l,location:d.location,delta:1})},replace:function(e,t){l="REPLACE";let r=w(e)?e:x(d.location,e,t);n&&n(r,e),u=c();let a=S(r,u),h=d.createHref(r.unstable_mask||r);i.replaceState(a,"",h),o&&s&&s({action:l,location:d.location,delta:0})},go:e=>i.go(e)};return d}(function(e,t){let{pathname:n="/",search:r="",hash:a=""}=k(e.location.hash.substring(1));return n.startsWith("/")||n.startsWith(".")||(n="/"+n),x("",{pathname:n,search:r,hash:a},t.state&&t.state.usr||null,t.state&&t.state.key||"default")},function(e,t){let n=e.document.querySelector("base"),r="";if(n&&n.getAttribute("href")){let t=e.location.href,n=t.indexOf("#");r=-1===n?t:t.slice(0,n)}return r+"#"+("string"==typeof t?t:$(t))},function(e,t){E("/"===e.pathname.charAt(0),`relative pathnames are not supported in hash history.push(${JSON.stringify(t)})`)},e)}({window:s,v5Compat:!0}));let c=u.current,[h,p]=t({action:c.action,location:c.location}),d=e(e=>{!1===l?p(e):i(()=>p(e))},[l]);return n(()=>c.listen(d),[c,d]),/* @__PURE__ */o(je,{basename:r,children:a,location:h.location,navigationType:h.action,navigator:c,unstable_useTransitions:l})}var nt=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,rt=a(function({onClick:n,discover:r="render",prefetch:a="none",relative:l,reloadDocument:u,replace:c,unstable_mask:p,state:d,target:f,to:v,preventScrollReset:y,viewTransition:b,unstable_defaultShouldRevalidate:w,...E},S){let{basename:x,navigator:k,unstable_useTransitions:T}=m(le),P="string"==typeof v&&nt.test(v),L=ee(v,x),O=function(e,{relative:t}={}){R(pe(),"useHref() may be used only in the context of a <Router> component.");let{basename:n,navigator:r}=m(le),{hash:a,pathname:o,search:i}=be(e,{relative:t}),l=o;return"/"!==n&&(l="/"===o?n:K([n,o])),r.createHref({pathname:l,search:i,hash:a})}(v=L.to,{relative:l}),C=de(),_=null;if(p){let e=Y(p,[],C.unstable_mask?C.unstable_mask.pathname:"/",!0);"/"!==x&&(e.pathname="/"===e.pathname?x:K([x,e.pathname])),_=k.createHref(e)}let[N,M,j]=function(e,n){let r=m(Ve),[a,o]=t(!1),[i,l]=t(!1),{onFocus:u,onBlur:c,onMouseEnter:h,onMouseLeave:p,onTouchStart:d}=n,f=g(null);s(()=>{if("render"===e&&l(!0),"viewport"===e){let e=new IntersectionObserver(e=>{e.forEach(e=>{l(e.isIntersecting)})},{threshold:.5});return f.current&&e.observe(f.current),()=>{e.disconnect()}}},[e]),s(()=>{if(a){let e=setTimeout(()=>{l(!0)},100);return()=>{clearTimeout(e)}}},[a]);let v=()=>{o(!0)},y=()=>{o(!1),l(!1)};return r?"intent"!==e?[i,f,{}]:[i,f,{onFocus:qe(u,v),onBlur:qe(c,y),onMouseEnter:qe(h,v),onMouseLeave:qe(p,y),onTouchStart:qe(d,v)}]:[!1,f,{}]}(a,E),A=function(t,{target:n,replace:r,unstable_mask:a,state:o,preventScrollReset:l,relative:s,viewTransition:u,unstable_defaultShouldRevalidate:c,unstable_useTransitions:h}={}){let p=ge(),d=de(),m=be(t,{relative:s});return e(e=>{if(function(e,t){return!(0!==e.button||t&&"_self"!==t||function(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}(e))}(e,n)){e.preventDefault();let n=void 0!==r?r:$(d)===$(m),f=()=>p(t,{replace:n,unstable_mask:a,state:o,preventScrollReset:l,relative:s,viewTransition:u,unstable_defaultShouldRevalidate:c});h?i(()=>f()):f()}},[d,p,m,r,a,o,n,t,l,s,u,c,h])}(v,{replace:c,unstable_mask:p,state:d,target:f,preventScrollReset:y,relative:l,viewTransition:b,unstable_defaultShouldRevalidate:w,unstable_useTransitions:T}),D=!(L.isExternal||u),U=/* @__PURE__ */o("a",{...E,...j,href:(D?_:void 0)||L.absoluteURL||O,onClick:D?function(e){n&&n(e),e.defaultPrevented||A(e)}:n,ref:Ze(S,M),target:f,"data-discover":P||"render"!==r?void 0:"true"});return N&&!P?/* @__PURE__ */o(h,null,U,/* @__PURE__ */o(Ge,{page:O})):U});rt.displayName="Link";var at=a(function({"aria-current":e="page",caseSensitive:t=!1,className:n="",end:r=!1,style:a,to:i,viewTransition:l,children:s,...u},c){let h=be(i,{relative:u.relative}),p=de(),d=m(ae),{navigator:f,basename:g}=m(le),v=null!=d&&function(e,{relative:t}={}){let n=m(ie);R(null!=n,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=it("useViewTransitionState"),a=be(e,{relative:t});if(!n.isTransitioning)return!1;let o=I(n.currentLocation.pathname,r)||n.currentLocation.pathname,i=I(n.nextLocation.pathname,r)||n.nextLocation.pathname;return null!=W(a.pathname,i)||null!=W(a.pathname,o)}(h)&&!0===l,y=f.encodeLocation?f.encodeLocation(h).pathname:h.pathname,b=p.pathname,w=d&&d.navigation&&d.navigation.location?d.navigation.location.pathname:null;t||(b=b.toLowerCase(),w=w?w.toLowerCase():null,y=y.toLowerCase()),w&&g&&(w=I(w,g)||w);const E="/"!==y&&y.endsWith("/")?y.length-1:y.length;let S,x=b===y||!r&&b.startsWith(y)&&"/"===b.charAt(E),$=null!=w&&(w===y||!r&&w.startsWith(y)&&"/"===w.charAt(y.length)),k={isActive:x,isPending:$,isTransitioning:v},T=x?e:void 0;S="function"==typeof n?n(k):[n,x?"active":null,$?"pending":null,v?"transitioning":null].filter(Boolean).join(" ");let P="function"==typeof a?a(k):a;/* @__PURE__ */
4
- return o(rt,{...u,"aria-current":T,className:S,ref:c,style:P,to:i,viewTransition:l},"function"==typeof s?s(k):s)});at.displayName="NavLink";var ot=a(({discover:t="render",fetcherKey:n,navigate:r,reloadDocument:a,replace:l,state:s,method:u=Ue,action:c,onSubmit:h,relative:p,preventScrollReset:d,viewTransition:f,unstable_defaultShouldRevalidate:g,...v},y)=>{let{unstable_useTransitions:b}=m(le),w=function(){let{router:t}=it("useSubmit"),{basename:n}=m(le),r=Pe("useRouteId"),a=t.fetch,o=t.navigate;return e(async(e,t={})=>{let{action:i,method:l,encType:s,formData:u,body:c}=function(e,t){let n,r,a,o,i;if(Fe(l=e)&&"form"===l.tagName.toLowerCase()){let i=e.getAttribute("action");r=i?I(i,t):null,n=e.getAttribute("method")||Ue,a=ze(e.getAttribute("enctype"))||We,o=new FormData(e)}else if(function(e){return Fe(e)&&"button"===e.tagName.toLowerCase()}(e)||function(e){return Fe(e)&&"input"===e.tagName.toLowerCase()}(e)&&("submit"===e.type||"image"===e.type)){let i=e.form;if(null==i)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let l=e.getAttribute("formaction")||i.getAttribute("action");if(r=l?I(l,t):null,n=e.getAttribute("formmethod")||i.getAttribute("method")||Ue,a=ze(e.getAttribute("formenctype"))||ze(i.getAttribute("enctype"))||We,o=new FormData(i,e),!function(){if(null===Ie)try{new FormData(document.createElement("form"),0),Ie=!1}catch(Nt){Ie=!0}return Ie}()){let{name:t,type:n,value:r}=e;if("image"===n){let e=t?`${t}.`:"";o.append(`${e}x`,"0"),o.append(`${e}y`,"0")}else t&&o.append(t,r)}}else{if(Fe(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');n=Ue,r=null,a=We,i=e}var l;return o&&"text/plain"===a&&(i=o,o=void 0),{action:r,method:n.toLowerCase(),encType:a,formData:o,body:i}}(e,n);!1===t.navigate?await a(t.fetcherKey||st(),r,t.action||i,{unstable_defaultShouldRevalidate:t.unstable_defaultShouldRevalidate,preventScrollReset:t.preventScrollReset,formData:u,body:c,formMethod:t.method||l,formEncType:t.encType||s,flushSync:t.flushSync}):await o(t.action||i,{unstable_defaultShouldRevalidate:t.unstable_defaultShouldRevalidate,preventScrollReset:t.preventScrollReset,formData:u,body:c,formMethod:t.method||l,formEncType:t.encType||s,replace:t.replace,state:t.state,fromRouteId:r,flushSync:t.flushSync,viewTransition:t.viewTransition})},[a,o,n,r])}(),E=function(e,{relative:t}={}){let{basename:n}=m(le),r=m(ue);R(r,"useFormAction must be used inside a RouteContext");let[a]=r.matches.slice(-1),o={...be(e||".",{relative:t})},i=de();if(null==e){o.search=i.search;let e=new URLSearchParams(o.search),t=e.getAll("index");if(t.some(e=>""===e)){e.delete("index"),t.filter(e=>e).forEach(t=>e.append("index",t));let n=e.toString();o.search=n?`?${n}`:""}}return e&&"."!==e||!a.route.index||(o.search=o.search?o.search.replace(/^\?/,"?index&"):"?index"),"/"!==n&&(o.pathname="/"===o.pathname?n:K([n,o.pathname])),$(o)}(c,{relative:p}),S="get"===u.toLowerCase()?"get":"post",x="string"==typeof c&&nt.test(c);/* @__PURE__ */
5
- return o("form",{ref:y,method:S,action:E,onSubmit:a?h:e=>{if(h&&h(e),e.defaultPrevented)return;e.preventDefault();let t=e.nativeEvent.submitter,a=t?.getAttribute("formmethod")||u,o=()=>w(t||e.currentTarget,{fetcherKey:n,method:a,navigate:r,replace:l,state:s,relative:p,preventScrollReset:d,viewTransition:f,unstable_defaultShouldRevalidate:g});b&&!1!==r?i(()=>o()):o()},...v,"data-discover":x||"render"!==t?void 0:"true"})});function it(e){let t=m(re);return R(t,function(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}(e)),t}ot.displayName="Form";var lt=0,st=()=>`__${String(++lt)}__`,ut=({as:e="div",className:t,threshold:n=.5,rootMargin:r="0px",triggerOnce:a,onChange:o,onClick:i,children:l})=>{const c=g(null),h=g(!1);return s(()=>{const e=c.current;if(!e)return;const t=new IntersectionObserver(e=>{e.forEach(e=>{a&&h.current||(e.isIntersecting&&(h.current=!0),o?.(e.isIntersecting))})},{threshold:n,rootMargin:r});return t.observe(e),()=>t.disconnect()},[n,r,o,a]),/* @__PURE__ */u(e,{ref:c,className:t,onClick:i,children:l})},ct=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","#","$","%","*","+",",","-",".",":",";","=","?","@","[","]","^","_","{","|","}","~"],ht=e=>{let t=0;for(let n=0;n<e.length;n++){let r=e[n];t=83*t+ct.indexOf(r)}return t},pt=e=>{let t=e/255;return t<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)},dt=e=>{let t=Math.max(0,Math.min(1,e));return t<=.0031308?Math.trunc(12.92*t*255+.5):Math.trunc(255*(1.055*Math.pow(t,.4166666666666667)-.055)+.5)},mt=(e,t)=>(e=>e<0?-1:1)(e)*Math.pow(Math.abs(e),t),ft=class extends Error{constructor(e){super(e),this.name="ValidationError",this.message=e}},gt=e=>{let t=e>>8&255,n=255&e;return[pt(e>>16),pt(t),pt(n)]},vt=(e,t)=>{let n=Math.floor(e/361),r=Math.floor(e/19)%19,a=e%19;return[mt((n-9)/9,2)*t,mt((r-9)/9,2)*t,mt((a-9)/9,2)*t]},yt=(e,t,n,r)=>{(e=>{if(!e||e.length<6)throw new ft("The blurhash string must be at least 6 characters");let t=ht(e[0]),n=Math.floor(t/9)+1,r=t%9+1;if(e.length!==4+2*r*n)throw new ft(`blurhash length mismatch: length is ${e.length} but it should be ${4+2*r*n}`)})(e),r|=1;let a=ht(e[0]),o=Math.floor(a/9)+1,i=a%9+1,l=(ht(e[1])+1)/166,s=new Array(i*o);for(let h=0;h<s.length;h++)s[h]=0===h?gt(ht(e.substring(2,6))):vt(ht(e.substring(4+2*h,6+2*h)),l*r);let u=4*t,c=new Uint8ClampedArray(u*n);for(let h=0;h<n;h++)for(let e=0;e<t;e++){let r=0,a=0,l=0;for(let u=0;u<o;u++)for(let o=0;o<i;o++){let c=Math.cos(Math.PI*e*o/t)*Math.cos(Math.PI*h*u/n),p=s[o+u*i];r+=p[0]*c,a+=p[1]*c,l+=p[2]*c}let p=dt(r),d=dt(a),m=dt(l);c[4*e+0+h*u]=p,c[4*e+1+h*u]=d,c[4*e+2+h*u]=m,c[4*e+3+h*u]=255}return c},bt=Object.defineProperty,wt=Object.defineProperties,Rt=Object.getOwnPropertyDescriptors,Et=Object.getOwnPropertySymbols,St=Object.prototype.hasOwnProperty,xt=Object.prototype.propertyIsEnumerable,$t=(e,t,n)=>t in e?bt(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,kt=(e,t)=>{for(var n in t||(t={}))St.call(t,n)&&$t(e,n,t[n]);if(Et)for(var n of Et(t))xt.call(t,n)&&$t(e,n,t[n]);return e},Tt=(e,t)=>wt(e,Rt(t)),Pt=(e,t)=>{var n={};for(var r in e)St.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&Et)for(var r of Et(e))t.indexOf(r)<0&&xt.call(e,r)&&(n[r]=e[r]);return n},Lt=class extends c{constructor(){super(...arguments),this.canvas=null,this.handleRef=e=>{this.canvas=e,this.draw()},this.draw=()=>{let{hash:e,height:t,punch:n,width:r}=this.props;if(this.canvas){let a=yt(e,r,t,n),o=this.canvas.getContext("2d"),i=o.createImageData(r,t);i.data.set(a),o.putImageData(i,0,0)}}}componentDidUpdate(){this.draw()}render(){let e=this.props,{hash:t,height:n,width:r}=e,a=Pt(e,["hash","height","width"]);return o("canvas",Tt(kt({},a),{height:n,width:r,ref:this.handleRef}))}};Lt.defaultProps={height:128,width:128};var Ot={position:"absolute",top:0,bottom:0,left:0,right:0,width:"100%",height:"100%"};(class extends c{componentDidUpdate(){if(this.props.resolutionX<=0)throw new Error("resolutionX must be larger than zero");if(this.props.resolutionY<=0)throw new Error("resolutionY must be larger than zero")}render(){let e=this.props,{hash:t,height:n,width:r,punch:a,resolutionX:i,resolutionY:l,style:s}=e,u=Pt(e,["hash","height","width","punch","resolutionX","resolutionY","style"]);return o("div",Tt(kt({},u),{style:Tt(kt({display:"inline-block",height:n,width:r},s),{position:"relative"})}),o(Lt,{hash:t,height:l,width:i,punch:a,style:Ot}))}}).defaultProps={height:128,width:128,resolutionX:32,resolutionY:32};var Ct=Lt,_t=({src:e,alt:n,threshold:r=.1,rootMargin:a="200px 0px",blurhash:o,containerClassName:i="size-full",wrapperClassName:l,imgClassName:c="",sizeMode:h="cover",position:p="center",delayMs:d=100,delayTime:m,onClick:v})=>{const y=o&&o.length>=6?o:"LEHV6nWB2yk8pyo0adR*.7kCMdnj",[b,w]=t(!1),[R,E]=t(!1),[S,x]=t(!1),$=g(null),k="number"==typeof m?m:d,T=l??i;s(()=>{if(!b)return S?$.current=window.setTimeout(()=>{E(!0)},k):$.current&&(clearTimeout($.current),$.current=null),()=>{$.current&&clearTimeout($.current)}},[S,b,k]);const P=R&&S||b;/* @__PURE__ */
6
- return u(ut,{as:"div",className:f(T,"relative overflow-hidden"),threshold:r,rootMargin:a,onChange:e=>x(e),children:[!b&&/* @__PURE__ */u(Ct,{className:"size-full blur-2xl",hash:y}),P&&e&&/* @__PURE__ */u("img",{alt:n,src:e,onLoad:()=>w(!0),className:f("absolute top-0 left-0 size-full object-center transition-all duration-300",b?"scale-100 opacity-100":"scale-95 opacity-0","contain"===h?"object-contain":"object-cover","top"===p?"object-top":"bottom"===p?"object-bottom":"object-center",c),onClick:e=>v?.(e)})]})};export{rt as a,_e as c,Ae as d,de as f,tt as i,Ne as l,ye as m,yt as n,Ce as o,ge as p,ut as r,at as s,_t as t,Me as u};
@@ -1 +0,0 @@
1
- import{r as t}from"./2R3GoXB1.js";import{Mt as o,N as r,Nt as n,j as e,wt as a}from"./BiQECCnr.js";import{t as i}from"./DXPR6JWg.js";import{o as s}from"./COUnPxHl.js";import{t as c}from"./DGeYAYfl.js";var l=new i,p=(t,o)=>{n(/* @__PURE__ */r(e,{client:l,children:/* @__PURE__ */r(s,{children:/* @__PURE__ */r(c,{event:t})})}),o)},m=({events:n})=>{const e=a(null),i=a(null);return o(()=>{if(!e.current||i.current)return;let o;return(async()=>{const r=await import("./CziefUVo.js").then(o=>/* @__PURE__ */t(o.default,1));if(await Promise.resolve({ }),!e.current)return;const a=r.map(e.current,{center:[20,0],zoom:2,zoomControl:!0,worldCopyJump:!0});r.tileLayer("https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png",{attribution:"&copy; OpenStreetMap contributors",maxZoom:19}).addTo(a),i.current=a;const s=n.filter(t=>"number"==typeof t.location?.x&&"number"==typeof t.location?.y);if(s.length>0){const t=r.latLngBounds([]);for(const o of s){const n=o.location.x,e=o.location.y;t.extend([e,n]);const i=r.divIcon({className:"qrati-leaflet-marker-wrapper",html:'\n <div style="\n width: 28px;\n height: 28px;\n cursor: pointer;\n background: var(--color-primary, #6366f1);\n border-radius: 50% 50% 50% 0;\n transform: rotate(-45deg);\n border: 2px solid white;\n box-shadow: 0 2px 8px rgba(0,0,0,0.3);\n "></div>\n ',iconSize:[28,28],iconAnchor:[14,28],popupAnchor:[0,-28]}),s=r.marker([e,n],{icon:i}).addTo(a),c=document.createElement("div");p(o,c),s.bindPopup(c,{closeButton:!0,maxWidth:220})}t.isValid()&&a.fitBounds(t,{padding:[60,60],maxZoom:14})}o=()=>{a.remove(),i.current=null}})(),()=>{o?.()}},[n]),/* @__PURE__ */r("div",{ref:e,class:"size-full"})};export{m as default};
@@ -1,3 +0,0 @@
1
- import{Dt as e,Mt as l,N as t,T as r,wt as n}from"./BiQECCnr.js";import{p as s,t as a}from"./COUnPxHl.js";var i=({event:i})=>{const o=s(),[c,d]=e(0),u=n(null),h=(i.contents??[]).filter(e=>e.thumbnailUrl||e.url);return l(()=>{if(!(h.length<=1))return u.current=setInterval(()=>{d(e=>(e+1)%h.length)},3e3),()=>{u.current&&clearInterval(u.current)}},[h.length]),/* @__PURE__ */t("div",{class:"w-44 overflow-hidden",children:[h.length>0?/* @__PURE__ */t("div",{class:"relative h-28 w-full overflow-hidden",children:[/* @__PURE__ */t(a,{src:h[c]?.thumbnailUrl||h[c]?.url,blurhash:h[c]?.blurHash,containerClassName:"size-full",imgClassName:"rounded-none"}),h.length>1&&/* @__PURE__ */t("div",{class:"absolute right-0 bottom-1.5 left-0 flex justify-center gap-1",children:h.map((e,l)=>/* @__PURE__ */t("button",{onClick:()=>d(l),class:"size-1.5 rounded-full transition-all "+(l===c?"bg-white":"bg-white/50"),"aria-label":`Go to image ${l+1}`},l))})]}):/* @__PURE__ */t("div",{class:"bg-muted flex h-28 w-full items-center justify-center",children:/* @__PURE__ */t("svg",{xmlns:"http://www.w3.org/2000/svg",class:"text-muted-foreground size-10",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"1.5",children:/* @__PURE__ */t("path",{d:"M2.25 15.75l5.159-5.159a2.25 2.25 0 013.182 0l5.159 5.159m-1.5-1.5l1.409-1.409a2.25 2.25 0 013.182 0l2.909 2.909M9 12.75a2.25 2.25 0 100-4.5 2.25 2.25 0 000 4.5z"})})}),/* @__PURE__ */t("div",{class:"",children:[
2
- /* @__PURE__ */t("p",{class:"line-clamp-2 text-sm leading-tight font-medium",children:i.name}),i.location?.label&&/* @__PURE__ */t("p",{class:"text-foreground line-clamp-1 text-xs",children:i.location.label}),
3
- /* @__PURE__ */t("button",{onClick:()=>{o(r.GALLERY(i.slug))},class:"bg-background text-foreground mt-2 w-full rounded py-1 text-xs font-medium transition-opacity hover:opacity-90",children:"Explore"})]})]})};export{i as t};
@@ -1 +0,0 @@
1
- import{$ as t,Ct as e,J as s,Q as i,St as a,X as r,Z as n,at as o,ct as u,dt as h,ft as c,gt as l,it as d,nt as f,ot as y,pt as p,rt as m,st as g,ut as v,yt as b}from"./BiQECCnr.js";function q(t){return{onFetch:(e,s)=>{const i=e.options,a=e.fetchOptions?.meta?.fetchMore?.direction,r=e.state.data?.pages||[],n=e.state.data?.pageParams||[];let u={pages:[],pageParams:[]},h=0;const c=async()=>{let s=!1;const c=o(e.options,e.fetchOptions),l=async(t,i,a)=>{if(s)return Promise.reject();if(null==i&&t.pages.length)return Promise.resolve(t);const r=await c((()=>{const t={client:e.client,queryKey:e.queryKey,pageParam:i,direction:a?"backward":"forward",meta:e.options.meta};return f(t,()=>e.signal,()=>s=!0),t})()),{maxPages:n}=e.options,o=a?d:m;return{pages:o(t.pages,r,n),pageParams:o(t.pageParams,i,n)}};if(a&&r.length){const t="backward"===a,e=t?P:C,s={pages:r,pageParams:n};u=await l(s,e(i,s),t)}else{const e=t??r.length;do{const t=0===h?n[0]??i.initialPageParam:C(i,u);if(h>0&&null==t)break;u=await l(u,t),h++}while(h<e)}return u};e.options.persister?e.fetchFn=()=>e.options.persister?.(c,{client:e.client,queryKey:e.queryKey,meta:e.options.meta,signal:e.signal},s):e.fetchFn=c}}}function C(t,{pages:e,pageParams:s}){const i=e.length-1;return e.length>0?t.getNextPageParam(e[i],e,s[i],s):void 0}function P(t,{pages:e,pageParams:s}){return e.length>0?t.getPreviousPageParam?.(e[0],e,s[0],s):void 0}function O(t,e){return!!e&&null!=C(t,e)}function w(t,e){return!(!e||!t.getPreviousPageParam)&&null!=P(t,e)}var Q=class extends r{#t;#e;#s;#i;constructor(t){super(),this.#t=t.client,this.mutationId=t.mutationId,this.#s=t.mutationCache,this.#e=[],this.state=t.state||{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0},this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){this.#e.includes(t)||(this.#e.push(t),this.clearGcTimeout(),this.#s.notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){this.#e=this.#e.filter(e=>e!==t),this.scheduleGc(),this.#s.notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){this.#e.length||("pending"===this.state.status?this.scheduleGc():this.#s.remove(this))}continue(){return this.#i?.continue()??this.execute(this.state.variables)}async execute(t){const e=()=>{this.#a({type:"continue"})},s={client:this.#t,meta:this.options.meta,mutationKey:this.options.mutationKey};this.#i=n({fn:()=>this.options.mutationFn?this.options.mutationFn(t,s):Promise.reject(/* @__PURE__ */new Error("No mutationFn found")),onFail:(t,e)=>{this.#a({type:"failed",failureCount:t,error:e})},onPause:()=>{this.#a({type:"pause"})},onContinue:e,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#s.canRun(this)});const i="pending"===this.state.status,a=!this.#i.canStart();try{if(i)e();else{this.#a({type:"pending",variables:t,isPaused:a}),this.#s.config.onMutate&&await this.#s.config.onMutate(t,this,s);const e=await(this.options.onMutate?.(t,s));e!==this.state.context&&this.#a({type:"pending",context:e,variables:t,isPaused:a})}const r=await this.#i.start();return await(this.#s.config.onSuccess?.(r,t,this.state.context,this,s)),await(this.options.onSuccess?.(r,t,this.state.context,s)),await(this.#s.config.onSettled?.(r,null,this.state.variables,this.state.context,this,s)),await(this.options.onSettled?.(r,null,t,this.state.context,s)),this.#a({type:"success",data:r}),r}catch(r){try{await(this.#s.config.onError?.(r,t,this.state.context,this,s))}catch(o){Promise.reject(o)}try{await(this.options.onError?.(r,t,this.state.context,s))}catch(o){Promise.reject(o)}try{await(this.#s.config.onSettled?.(void 0,r,this.state.variables,this.state.context,this,s))}catch(o){Promise.reject(o)}try{await(this.options.onSettled?.(void 0,r,t,this.state.context,s))}catch(o){Promise.reject(o)}throw this.#a({type:"error",error:r}),r}finally{this.#s.runNext(this)}}#a(e){this.state=(t=>{switch(e.type){case"failed":return{...t,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...t,isPaused:!0};case"continue":return{...t,isPaused:!1};case"pending":return{...t,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:e.isPaused,status:"pending",variables:e.variables,submittedAt:Date.now()};case"success":return{...t,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...t,data:void 0,error:e.error,failureCount:t.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"}}})(this.state),t.batch(()=>{this.#e.forEach(t=>{t.onMutationUpdate(e)}),this.#s.notify({mutation:this,type:"updated",action:e})})}},D=class extends e{constructor(t={}){super(),this.config=t,this.#r=/* @__PURE__ */new Set,this.#n=/* @__PURE__ */new Map,this.#o=0}#r;#n;#o;build(t,e,s){const i=new Q({client:t,mutationCache:this,mutationId:++this.#o,options:t.defaultMutationOptions(e),state:s});return this.add(i),i}add(t){this.#r.add(t);const e=x(t);if("string"==typeof e){const s=this.#n.get(e);s?s.push(t):this.#n.set(e,[t])}this.notify({type:"added",mutation:t})}remove(t){if(this.#r.delete(t)){const e=x(t);if("string"==typeof e){const s=this.#n.get(e);if(s)if(s.length>1){const e=s.indexOf(t);-1!==e&&s.splice(e,1)}else s[0]===t&&this.#n.delete(e)}}this.notify({type:"removed",mutation:t})}canRun(t){const e=x(t);if("string"==typeof e){const s=this.#n.get(e)?.find(t=>"pending"===t.state.status);return!s||s===t}return!0}runNext(t){const e=x(t);return"string"==typeof e?(this.#n.get(e)?.find(e=>e!==t&&e.state.isPaused))?.continue()??Promise.resolve():Promise.resolve()}clear(){t.batch(()=>{this.#r.forEach(t=>{this.notify({type:"removed",mutation:t})}),this.#r.clear(),this.#n.clear()})}getAll(){return Array.from(this.#r)}find(t){const e={exact:!0,...t};return this.getAll().find(t=>v(e,t))}findAll(t={}){return this.getAll().filter(e=>v(t,e))}notify(e){t.batch(()=>{this.listeners.forEach(t=>{t(e)})})}resumePausedMutations(){const e=this.getAll().filter(t=>t.state.isPaused);return t.batch(()=>Promise.all(e.map(t=>t.continue().catch(c))))}};function x(t){return t.options.scope?.id}var M=class extends e{constructor(t={}){super(),this.config=t,this.#u=/* @__PURE__ */new Map}#u;build(t,e,i){const a=e.queryKey,r=e.queryHash??u(a,e);let n=this.get(r);return n||(n=new s({client:t,queryKey:a,queryHash:r,options:t.defaultQueryOptions(e),state:i,defaultOptions:t.getQueryDefaults(a)}),this.add(n)),n}add(t){this.#u.has(t.queryHash)||(this.#u.set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const e=this.#u.get(t.queryHash);e&&(t.destroy(),e===t&&this.#u.delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){t.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return this.#u.get(t)}getAll(){return[...this.#u.values()]}find(t){const e={exact:!0,...t};return this.getAll().find(t=>h(e,t))}findAll(t={}){const e=this.getAll();return Object.keys(t).length>0?e.filter(e=>h(t,e)):e}notify(e){t.batch(()=>{this.listeners.forEach(t=>{t(e)})})}onFocus(){t.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){t.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},A=class{#h;#s;#c;#l;#d;#f;#y;#p;constructor(t={}){this.#h=t.queryCache||new M,this.#s=t.mutationCache||new D,this.#c=t.defaultOptions||{},this.#l=/* @__PURE__ */new Map,this.#d=/* @__PURE__ */new Map,this.#f=0}mount(){this.#f++,1===this.#f&&(this.#y=a.subscribe(async t=>{t&&(await this.resumePausedMutations(),this.#h.onFocus())}),this.#p=i.subscribe(async t=>{t&&(await this.resumePausedMutations(),this.#h.onOnline())}))}unmount(){this.#f--,0===this.#f&&(this.#y?.(),this.#y=void 0,this.#p?.(),this.#p=void 0)}isFetching(t){return this.#h.findAll({...t,fetchStatus:"fetching"}).length}isMutating(t){return this.#s.findAll({...t,status:"pending"}).length}getQueryData(t){const e=this.defaultQueryOptions({queryKey:t});return this.#h.get(e.queryHash)?.state.data}ensureQueryData(t){const e=this.defaultQueryOptions(t),s=this.#h.build(this,e),i=s.state.data;return void 0===i?this.fetchQuery(t):(t.revalidateIfStale&&s.isStaleByTime(l(e.staleTime,s))&&this.prefetchQuery(e),Promise.resolve(i))}getQueriesData(t){return this.#h.findAll(t).map(({queryKey:t,state:e})=>[t,e.data])}setQueryData(t,e,s){const i=this.defaultQueryOptions({queryKey:t}),a=this.#h.get(i.queryHash)?.state.data,r=y(e,a);if(void 0!==r)return this.#h.build(this,i).setData(r,{...s,manual:!0})}setQueriesData(e,s,i){return t.batch(()=>this.#h.findAll(e).map(({queryKey:t})=>[t,this.setQueryData(t,s,i)]))}getQueryState(t){const e=this.defaultQueryOptions({queryKey:t});return this.#h.get(e.queryHash)?.state}removeQueries(e){const s=this.#h;t.batch(()=>{s.findAll(e).forEach(t=>{s.remove(t)})})}resetQueries(e,s){const i=this.#h;return t.batch(()=>(i.findAll(e).forEach(t=>{t.reset()}),this.refetchQueries({type:"active",...e},s)))}cancelQueries(e,s={}){const i={revert:!0,...s},a=t.batch(()=>this.#h.findAll(e).map(t=>t.cancel(i)));return Promise.all(a).then(c).catch(c)}invalidateQueries(e,s={}){return t.batch(()=>(this.#h.findAll(e).forEach(t=>{t.invalidate()}),"none"===e?.refetchType?Promise.resolve():this.refetchQueries({...e,type:e?.refetchType??e?.type??"active"},s)))}refetchQueries(e,s={}){const i={...s,cancelRefetch:s.cancelRefetch??!0},a=t.batch(()=>this.#h.findAll(e).filter(t=>!t.isDisabled()&&!t.isStatic()).map(t=>{let e=t.fetch(void 0,i);return i.throwOnError||(e=e.catch(c)),"paused"===t.state.fetchStatus?Promise.resolve():e}));return Promise.all(a).then(c)}fetchQuery(t){const e=this.defaultQueryOptions(t);void 0===e.retry&&(e.retry=!1);const s=this.#h.build(this,e);return s.isStaleByTime(l(e.staleTime,s))?s.fetch(e):Promise.resolve(s.state.data)}prefetchQuery(t){return this.fetchQuery(t).then(c).catch(c)}fetchInfiniteQuery(t){return t.behavior=q(t.pages),this.fetchQuery(t)}prefetchInfiniteQuery(t){return this.fetchInfiniteQuery(t).then(c).catch(c)}ensureInfiniteQueryData(t){return t.behavior=q(t.pages),this.ensureQueryData(t)}resumePausedMutations(){return i.isOnline()?this.#s.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#h}getMutationCache(){return this.#s}getDefaultOptions(){return this.#c}setDefaultOptions(t){this.#c=t}setQueryDefaults(t,e){this.#l.set(g(t),{queryKey:t,defaultOptions:e})}getQueryDefaults(t){const e=[...this.#l.values()],s={};return e.forEach(e=>{p(t,e.queryKey)&&Object.assign(s,e.defaultOptions)}),s}setMutationDefaults(t,e){this.#d.set(g(t),{mutationKey:t,defaultOptions:e})}getMutationDefaults(t){const e=[...this.#d.values()],s={};return e.forEach(e=>{p(t,e.mutationKey)&&Object.assign(s,e.defaultOptions)}),s}defaultQueryOptions(t){if(t._defaulted)return t;const e={...this.#c.queries,...this.getQueryDefaults(t.queryKey),...t,_defaulted:!0};return e.queryHash||(e.queryHash=u(e.queryKey,e)),void 0===e.refetchOnReconnect&&(e.refetchOnReconnect="always"!==e.networkMode),void 0===e.throwOnError&&(e.throwOnError=!!e.suspense),!e.networkMode&&e.persister&&(e.networkMode="offlineFirst"),e.queryFn===b&&(e.enabled=!1),e}defaultMutationOptions(t){return t?._defaulted?t:{...this.#c.mutations,...t?.mutationKey&&this.getMutationDefaults(t.mutationKey),...t,_defaulted:!0}}clear(){this.#h.clear(),this.#s.clear()}};export{q as i,O as n,w as r,A as t};
@@ -1 +0,0 @@
1
- import{r as e}from"./2R3GoXB1.js";import{Mt as t,N as n,Nt as r,j as o,wt as i}from"./BiQECCnr.js";import{t as a}from"./DXPR6JWg.js";import{o as s}from"./COUnPxHl.js";import{t as l}from"./DGeYAYfl.js";var c=new a,u=(e,t)=>{r(/* @__PURE__ */n(o,{client:c,children:/* @__PURE__ */n(s,{children:/* @__PURE__ */n(l,{event:e})})}),t)},d=({events:r,apiKey:o,is3D:a})=>{const s=i(null),l=i(null),c=i(a);return t(()=>{if(!s.current||l.current)return;let t;return(async()=>{const n=(await import("./C2ydm0ZD.js").then(t=>/* @__PURE__ */e(t.default,1))).default;if(await Promise.resolve({ }),!s.current)return;n.accessToken=o;const i=new n.Map({container:s.current,style:"mapbox://styles/mapbox/streets-v12",center:[0,20],zoom:2,pitch:c.current?60:0,bearing:c.current?-20:0,antialias:!0});l.current=i,i.on("style.load",()=>{i.getLayer("3d-buildings")||i.addLayer({id:"3d-buildings",source:"composite","source-layer":"building",filter:["==","extrude","true"],type:"fill-extrusion",minzoom:14,paint:{"fill-extrusion-color":"#aaa","fill-extrusion-height":["interpolate",["linear"],["zoom"],14,0,14.05,["get","height"]],"fill-extrusion-base":["interpolate",["linear"],["zoom"],14,0,14.05,["get","min_height"]],"fill-extrusion-opacity":.6}})}),i.on("load",()=>{const e=r.filter(e=>"number"==typeof e.location?.x&&"number"==typeof e.location?.y);if(0===e.length)return;const t=new n.LngLatBounds;for(const r of e){const e=r.location.x,o=r.location.y;t.extend([e,o]);const a=document.createElement("div");a.style.cssText="\n width: 28px; height: 28px; cursor: pointer;\n background: var(--color-primary, #6366f1);\n border-radius: 50% 50% 50% 0;\n transform: rotate(-45deg);\n border: 2px solid white;\n box-shadow: 0 2px 8px rgba(0,0,0,0.3);\n ";const s=document.createElement("div");u(r,s);const l=new n.Popup({closeButton:!0,closeOnClick:!1,maxWidth:"none",offset:[0,-20]}).setDOMContent(s);new n.Marker({element:a}).setLngLat([e,o]).setPopup(l).addTo(i)}t.isEmpty()||i.fitBounds(t,{padding:60,maxZoom:14,duration:1200})}),t=()=>{i.remove(),l.current=null}})(),()=>{t?.()}},[o]),t(()=>{l.current&&(c.current=a,l.current.easeTo({pitch:a?60:0,bearing:a?-20:0,duration:800}))},[a]),/* @__PURE__ */n("div",{ref:s,class:"size-full"})};export{d as default};