@ukpc-lib/react 0.13.1-dev.14 → 0.13.1-dev.15

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 (25) hide show
  1. package/dist/components/Notification/NotificationList/components/query.d.ts +1 -1
  2. package/dist/components/Notification/models/NotiticationDto.d.ts +2 -2
  3. package/dist/components/index.cjs +32 -19
  4. package/dist/components/index.js +2592 -2446
  5. package/dist/{index.esm2017-DFT9wFL2.cjs → index.esm2017-BqNn5ien.cjs} +17 -17
  6. package/dist/{index.esm2017-BFsaAJIb.js → index.esm2017-DVCjm-2j.js} +1974 -1972
  7. package/dist/share/index.cjs +1 -1
  8. package/dist/share/index.js +13 -13
  9. package/package.json +1 -1
  10. package/web-components-bundle/access-denied/index.js +2 -2
  11. package/web-components-bundle/base-breadcrumbs/index.js +2 -2
  12. package/web-components-bundle/favorite-menu/index.js +4 -4
  13. package/web-components-bundle/global-menu/index.js +4 -4
  14. package/web-components-bundle/global-topbar/index.js +6 -6
  15. package/web-components-bundle/has-permission/index.js +3 -3
  16. package/web-components-bundle/{index-T58UE-6b.js → index-C4Vqyh6C.js} +2 -2
  17. package/web-components-bundle/{index-BziS9Had.js → index-CJLndpJy.js} +593 -593
  18. package/web-components-bundle/{index-DN61Cz99.js → index-CNiqJEgy.js} +12248 -11832
  19. package/web-components-bundle/{index-BSe1av43.js → index-Cx0zTfOC.js} +1 -1
  20. package/web-components-bundle/page-not-found/index.js +2 -2
  21. package/web-components-bundle/{react-to-web-component-CXwKHjZr.js → react-to-web-component-D7SoYMky.js} +1535 -1527
  22. package/web-components-bundle/{react-toastify.esm-CrTD7cpE.js → react-toastify.esm-Y1WvK90L.js} +1 -1
  23. package/web-components-bundle/{setPrototypeOf-BVKdEITT.js → setPrototypeOf-CP0c5ut2.js} +2 -2
  24. package/web-components-bundle/toast-config/index.js +2 -2
  25. package/web-components-bundle/toast-config-notification/index.js +2 -2
@@ -1,34 +1,34 @@
1
1
  var EY=require("./index.css");const Re=require("react/jsx-runtime"),X=require("react"),uI=require("axios"),cI=require("moment"),sa=require("@mui/material"),Dd=require("react-query"),Sp=require("react-router-dom");require("@r2wc/react-to-web-component");const Lv=require("react-dom");function fI(t){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const n in t)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(e,n,r.get?r:{enumerable:!0,get:()=>t[n]})}}return e.default=t,Object.freeze(e)}function dI(t,e){for(var n=0;n<e.length;n++){const r=e[n];if(typeof r!="string"&&!Array.isArray(r)){for(const i in r)if(i!=="default"&&!(i in t)){const o=Object.getOwnPropertyDescriptor(r,i);o&&Object.defineProperty(t,i,o.get?o:{enumerable:!0,get:()=>r[i]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}const kn=fI(X),hI=".modal-overlay{z-index:1300;position:fixed;top:0;right:0;bottom:0;left:0;background:#00000041;--tw-backdrop-blur: blur(4px);justify-content:center;align-items:center;-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.modal-title{font-size:1.25rem;line-height:1.75rem;color:#e01b00;font-weight:500}.modal-footer{display:flex;justify-content:space-between;width:80%}.modal-container{background:#fff;-webkit-backdrop-filter:blur(4.5px);backdrop-filter:blur(4.5px);display:flex;padding:32px 24px 40px;flex-direction:column;align-items:center;gap:24px;align-self:stretch;width:500px;height:204px;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);border-radius:.5rem}.modal-button{border-radius:3px;border:1px solid #ddd;background:#ddd;padding:8px 32px;font-size:14px;transition:background-color .25s cubic-bezier(.4,0,.2,1) 0ms,box-shadow .25s cubic-bezier(.4,0,.2,1) 0ms,border-color .25s cubic-bezier(.4,0,.2,1) 0ms,color .25s cubic-bezier(.4,0,.2,1) 0ms}.cancel-btn:hover{background:#c5c5c5}.confirm-btn{background:#e01b00!important}.confirm-btn:hover{background:#be1700!important}.text-white{color:#fff}.text-sm{font-size:.875rem;line-height:1.25rem}";function q1({isOpen:t,onClose:e,onConfirm:n}){if(!t)return null;function r(i){var o;((o=i.target)==null?void 0:o.id)==="modal-wrapper"&&e()}return Re.jsxs(Re.Fragment,{children:[Re.jsx("style",{type:"text/css",children:hI}),Re.jsx("div",{onClick:r,className:"modal-overlay",id:"modal-wrapper",children:Re.jsxs("div",{className:"modal-container",children:[Re.jsx("h3",{className:"modal-title",children:"Log out"}),Re.jsx("p",{className:"text-sm",children:"Are you sure want to log out?"}),Re.jsxs("div",{className:"modal-footer",children:[Re.jsx("button",{className:"modal-button cancel-btn",onClick:e,children:"Cancel"}),Re.jsx("button",{onClick:n,className:"text-white confirm-btn modal-button",children:"Confirm"})]})]})})]})}const ki={primary:"#93D500",primary100:"#F0F6E1",primary200:"#E5F5ED",primary300:"#93D500",primary400:"#009D4F",primary500:"#2E7D32",secondary:"#CC0066",secondaryDark:"#AE1857",textPrimary:"#292929",white:"#FFFFFF",grey100:"#FAFAFA",grey200:"#EEEEEE",grey300:"#DDDDDD",grey400:"#C5C5C5",grey500:"#BFBFBF",grey600:"#85858A",success:"#009D4F",successLight:"#E5F5ED",warning:"#FFB600",warningLight:"#FFF8E5",danger:"#E01B00",dangerLight:"#FCE8E5",dangerDark:"#BE1700",linkPrimary:"#007BFF",linkLight:"#007BFF10",headerBgColor:"#292929",headerTextColor:"#FFF",buttonText:"#292929",buttonHover:"#2E7D32"};function Jo(t){"@babel/helpers - typeof";return Jo=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Jo(t)}function ts(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function pI(t,e){if(Jo(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(Jo(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function X1(t){var e=pI(t,"string");return Jo(e)=="symbol"?e:e+""}function a0(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,X1(r.key),r)}}function ns(t,e,n){return e&&a0(t.prototype,e),n&&a0(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function xl(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function qh(t,e){return qh=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},qh(t,e)}function Tp(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&qh(t,e)}function Ud(t,e){if(e&&(Jo(e)=="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return xl(t)}function Va(t){return Va=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Va(t)}function Ha(t,e,n){return(e=X1(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function K1(t){if(Array.isArray(t))return t}function gI(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function l0(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function Z1(t,e){if(t){if(typeof t=="string")return l0(t,e);var n={}.toString.call(t).slice(8,-1);return n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set"?Array.from(t):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?l0(t,e):void 0}}function J1(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
2
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function mI(t){return K1(t)||gI(t)||Z1(t)||J1()}function u0(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function c0(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?u0(Object(n),!0).forEach(function(r){Ha(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):u0(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}var vI={type:"logger",log:function(e){this.output("log",e)},warn:function(e){this.output("warn",e)},error:function(e){this.output("error",e)},output:function(e,n){console&&console[e]&&console[e].apply(console,n)}},yI=function(){function t(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};ts(this,t),this.init(e,n)}return ns(t,[{key:"init",value:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.prefix=r.prefix||"i18next:",this.logger=n||vI,this.options=r,this.debug=r.debug}},{key:"setDebug",value:function(n){this.debug=n}},{key:"log",value:function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return this.forward(r,"log","",!0)}},{key:"warn",value:function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return this.forward(r,"warn","",!0)}},{key:"error",value:function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return this.forward(r,"error","")}},{key:"deprecate",value:function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return this.forward(r,"warn","WARNING DEPRECATED: ",!0)}},{key:"forward",value:function(n,r,i,o){return o&&!this.debug?null:(typeof n[0]=="string"&&(n[0]="".concat(i).concat(this.prefix," ").concat(n[0])),this.logger[r](n))}},{key:"create",value:function(n){return new t(this.logger,c0(c0({},{prefix:"".concat(this.prefix,":").concat(n,":")}),this.options))}},{key:"clone",value:function(n){return n=n||this.options,n.prefix=n.prefix||this.prefix,new t(this.logger,n)}}]),t}(),Fa=new yI,gu=function(){function t(){ts(this,t),this.observers={}}return ns(t,[{key:"on",value:function(n,r){var i=this;return n.split(" ").forEach(function(o){i.observers[o]=i.observers[o]||[],i.observers[o].push(r)}),this}},{key:"off",value:function(n,r){if(this.observers[n]){if(!r){delete this.observers[n];return}this.observers[n]=this.observers[n].filter(function(i){return i!==r})}}},{key:"emit",value:function(n){for(var r=arguments.length,i=new Array(r>1?r-1:0),o=1;o<r;o++)i[o-1]=arguments[o];if(this.observers[n]){var a=[].concat(this.observers[n]);a.forEach(function(d){d.apply(void 0,i)})}if(this.observers["*"]){var c=[].concat(this.observers["*"]);c.forEach(function(d){d.apply(d,[n].concat(i))})}}}]),t}();function Qf(){var t,e,n=new Promise(function(r,i){t=r,e=i});return n.resolve=t,n.reject=e,n}function f0(t){return t==null?"":""+t}function bI(t,e,n){t.forEach(function(r){e[r]&&(n[r]=e[r])})}function Fv(t,e,n){function r(c){return c&&c.indexOf("###")>-1?c.replace(/###/g,"."):c}function i(){return!t||typeof t=="string"}for(var o=typeof e!="string"?[].concat(e):e.split(".");o.length>1;){if(i())return{};var a=r(o.shift());!t[a]&&n&&(t[a]=new n),Object.prototype.hasOwnProperty.call(t,a)?t=t[a]:t={}}return i()?{}:{obj:t,k:r(o.shift())}}function d0(t,e,n){var r=Fv(t,e,Object),i=r.obj,o=r.k;i[o]=n}function wI(t,e,n,r){var i=Fv(t,e,Object),o=i.obj,a=i.k;o[a]=o[a]||[],o[a].push(n)}function Xh(t,e){var n=Fv(t,e),r=n.obj,i=n.k;if(r)return r[i]}function xI(t,e,n){var r=Xh(t,n);return r!==void 0?r:Xh(e,n)}function Q1(t,e,n){for(var r in e)r!=="__proto__"&&r!=="constructor"&&(r in t?typeof t[r]=="string"||t[r]instanceof String||typeof e[r]=="string"||e[r]instanceof String?n&&(t[r]=e[r]):Q1(t[r],e[r],n):t[r]=e[r]);return t}function af(t){return t.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var SI={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"};function TI(t){return typeof t=="string"?t.replace(/[&<>"'\/]/g,function(e){return SI[e]}):t}var Cp=typeof window<"u"&&window.navigator&&typeof window.navigator.userAgentData>"u"&&window.navigator.userAgent&&window.navigator.userAgent.indexOf("MSIE")>-1,CI=[" ",",","?","!",";"];function EI(t,e,n){e=e||"",n=n||"";var r=CI.filter(function(c){return e.indexOf(c)<0&&n.indexOf(c)<0});if(r.length===0)return!0;var i=new RegExp("(".concat(r.map(function(c){return c==="?"?"\\?":c}).join("|"),")")),o=!i.test(t);if(!o){var a=t.indexOf(n);a>0&&!i.test(t.substring(0,a))&&(o=!0)}return o}function Kh(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:".";if(t){if(t[e])return t[e];for(var r=e.split(n),i=t,o=0;o<r.length;++o){if(!i||typeof i[r[o]]=="string"&&o+1<r.length)return;if(i[r[o]]===void 0){for(var a=2,c=r.slice(o,o+a).join(n),d=i[c];d===void 0&&r.length>o+a;)a++,c=r.slice(o,o+a).join(n),d=i[c];if(d===void 0)return;if(d===null)return null;if(e.endsWith(c)){if(typeof d=="string")return d;if(c&&typeof d[c]=="string")return d[c]}var p=r.slice(o+a).join(n);return p?Kh(d,p,n):void 0}i=i[r[o]]}return i}}function h0(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function dh(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?h0(Object(n),!0).forEach(function(r){Ha(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):h0(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function kI(t){var e=DI();return function(){var r=Va(t),i;if(e){var o=Va(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return Ud(this,i)}}function DI(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}var PI=function(t){Tp(n,t);var e=kI(n);function n(r){var i,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{ns:["translation"],defaultNS:"translation"};return ts(this,n),i=e.call(this),Cp&&gu.call(xl(i)),i.data=r||{},i.options=o,i.options.keySeparator===void 0&&(i.options.keySeparator="."),i.options.ignoreJSONStructure===void 0&&(i.options.ignoreJSONStructure=!0),i}return ns(n,[{key:"addNamespaces",value:function(i){this.options.ns.indexOf(i)<0&&this.options.ns.push(i)}},{key:"removeNamespaces",value:function(i){var o=this.options.ns.indexOf(i);o>-1&&this.options.ns.splice(o,1)}},{key:"getResource",value:function(i,o,a){var c=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},d=c.keySeparator!==void 0?c.keySeparator:this.options.keySeparator,p=c.ignoreJSONStructure!==void 0?c.ignoreJSONStructure:this.options.ignoreJSONStructure,w=[i,o];a&&typeof a!="string"&&(w=w.concat(a)),a&&typeof a=="string"&&(w=w.concat(d?a.split(d):a)),i.indexOf(".")>-1&&(w=i.split("."));var m=Xh(this.data,w);return m||!p||typeof a!="string"?m:Kh(this.data&&this.data[i]&&this.data[i][o],a,d)}},{key:"addResource",value:function(i,o,a,c){var d=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{silent:!1},p=d.keySeparator!==void 0?d.keySeparator:this.options.keySeparator,w=[i,o];a&&(w=w.concat(p?a.split(p):a)),i.indexOf(".")>-1&&(w=i.split("."),c=o,o=w[1]),this.addNamespaces(o),d0(this.data,w,c),d.silent||this.emit("added",i,o,a,c)}},{key:"addResources",value:function(i,o,a){var c=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:!1};for(var d in a)(typeof a[d]=="string"||Object.prototype.toString.apply(a[d])==="[object Array]")&&this.addResource(i,o,d,a[d],{silent:!0});c.silent||this.emit("added",i,o,a)}},{key:"addResourceBundle",value:function(i,o,a,c,d){var p=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1},w=[i,o];i.indexOf(".")>-1&&(w=i.split("."),c=a,a=o,o=w[1]),this.addNamespaces(o);var m=Xh(this.data,w)||{};c?Q1(m,a,d):m=dh(dh({},m),a),d0(this.data,w,m),p.silent||this.emit("added",i,o,a)}},{key:"removeResourceBundle",value:function(i,o){this.hasResourceBundle(i,o)&&delete this.data[i][o],this.removeNamespaces(o),this.emit("removed",i,o)}},{key:"hasResourceBundle",value:function(i,o){return this.getResource(i,o)!==void 0}},{key:"getResourceBundle",value:function(i,o){return o||(o=this.options.defaultNS),this.options.compatibilityAPI==="v1"?dh(dh({},{}),this.getResource(i,o)):this.getResource(i,o)}},{key:"getDataByLanguage",value:function(i){return this.data[i]}},{key:"hasLanguageSomeTranslations",value:function(i){var o=this.getDataByLanguage(i),a=o&&Object.keys(o)||[];return!!a.find(function(c){return o[c]&&Object.keys(o[c]).length>0})}},{key:"toJSON",value:function(){return this.data}}]),n}(gu),eT={processors:{},addPostProcessor:function(e){this.processors[e.name]=e},handle:function(e,n,r,i,o){var a=this;return e.forEach(function(c){a.processors[c]&&(n=a.processors[c].process(n,r,i,o))}),n}};function p0(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function Li(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?p0(Object(n),!0).forEach(function(r){Ha(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):p0(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function OI(t){var e=_I();return function(){var r=Va(t),i;if(e){var o=Va(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return Ud(this,i)}}function _I(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}var g0={},m0=function(t){Tp(n,t);var e=OI(n);function n(r){var i,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return ts(this,n),i=e.call(this),Cp&&gu.call(xl(i)),bI(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],r,xl(i)),i.options=o,i.options.keySeparator===void 0&&(i.options.keySeparator="."),i.logger=Fa.create("translator"),i}return ns(n,[{key:"changeLanguage",value:function(i){i&&(this.language=i)}},{key:"exists",value:function(i){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};if(i==null)return!1;var a=this.resolve(i,o);return a&&a.res!==void 0}},{key:"extractFromKey",value:function(i,o){var a=o.nsSeparator!==void 0?o.nsSeparator:this.options.nsSeparator;a===void 0&&(a=":");var c=o.keySeparator!==void 0?o.keySeparator:this.options.keySeparator,d=o.ns||this.options.defaultNS||[],p=a&&i.indexOf(a)>-1,w=!this.options.userDefinedKeySeparator&&!o.keySeparator&&!this.options.userDefinedNsSeparator&&!o.nsSeparator&&!EI(i,a,c);if(p&&!w){var m=i.match(this.interpolator.nestingRegexp);if(m&&m.length>0)return{key:i,namespaces:d};var T=i.split(a);(a!==c||a===c&&this.options.ns.indexOf(T[0])>-1)&&(d=T.shift()),i=T.join(c)}return typeof d=="string"&&(d=[d]),{key:i,namespaces:d}}},{key:"translate",value:function(i,o,a){var c=this;if(Jo(o)!=="object"&&this.options.overloadTranslationOptionHandler&&(o=this.options.overloadTranslationOptionHandler(arguments)),Jo(o)==="object"&&(o=Li({},o)),o||(o={}),i==null)return"";Array.isArray(i)||(i=[String(i)]);var d=o.returnDetails!==void 0?o.returnDetails:this.options.returnDetails,p=o.keySeparator!==void 0?o.keySeparator:this.options.keySeparator,w=this.extractFromKey(i[i.length-1],o),m=w.key,T=w.namespaces,E=T[T.length-1],A=o.lng||this.language,I=o.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(A&&A.toLowerCase()==="cimode"){if(I){var j=o.nsSeparator||this.options.nsSeparator;return d?{res:"".concat(E).concat(j).concat(m),usedKey:m,exactUsedKey:m,usedLng:A,usedNS:E}:"".concat(E).concat(j).concat(m)}return d?{res:m,usedKey:m,exactUsedKey:m,usedLng:A,usedNS:E}:m}var _=this.resolve(i,o),U=_&&_.res,G=_&&_.usedKey||m,re=_&&_.exactUsedKey||m,q=Object.prototype.toString.apply(U),se=["[object Number]","[object Function]","[object RegExp]"],S=o.joinArrays!==void 0?o.joinArrays:this.options.joinArrays,ue=!this.i18nFormat||this.i18nFormat.handleAsObject,ae=typeof U!="string"&&typeof U!="boolean"&&typeof U!="number";if(ue&&U&&ae&&se.indexOf(q)<0&&!(typeof S=="string"&&q==="[object Array]")){if(!o.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");var Ue=this.options.returnedObjectHandler?this.options.returnedObjectHandler(G,U,Li(Li({},o),{},{ns:T})):"key '".concat(m," (").concat(this.language,")' returned an object instead of string.");return d?(_.res=Ue,_):Ue}if(p){var nt=q==="[object Array]",et=nt?[]:{},De=nt?re:G;for(var Me in U)if(Object.prototype.hasOwnProperty.call(U,Me)){var fe="".concat(De).concat(p).concat(Me);et[Me]=this.translate(fe,Li(Li({},o),{joinArrays:!1,ns:T})),et[Me]===fe&&(et[Me]=U[Me])}U=et}}else if(ue&&typeof S=="string"&&q==="[object Array]")U=U.join(S),U&&(U=this.extendTranslation(U,i,o,a));else{var me=!1,Pe=!1,Be=o.count!==void 0&&typeof o.count!="string",Ze=n.hasDefaultValue(o),ve=Be?this.pluralResolver.getSuffix(A,o.count,o):"",Se=o["defaultValue".concat(ve)]||o.defaultValue;!this.isValidLookup(U)&&Ze&&(me=!0,U=Se),this.isValidLookup(U)||(Pe=!0,U=m);var je=o.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey,Qe=je&&Pe?void 0:U,Ye=Ze&&Se!==U&&this.options.updateMissing;if(Pe||me||Ye){if(this.logger.log(Ye?"updateKey":"missingKey",A,E,m,Ye?Se:U),p){var Ke=this.resolve(m,Li(Li({},o),{},{keySeparator:!1}));Ke&&Ke.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}var qe=[],ot=this.languageUtils.getFallbackCodes(this.options.fallbackLng,o.lng||this.language);if(this.options.saveMissingTo==="fallback"&&ot&&ot[0])for(var ct=0;ct<ot.length;ct++)qe.push(ot[ct]);else this.options.saveMissingTo==="all"?qe=this.languageUtils.toResolveHierarchy(o.lng||this.language):qe.push(o.lng||this.language);var pt=function(yt,Je,At){var Mt=Ze&&At!==U?At:Qe;c.options.missingKeyHandler?c.options.missingKeyHandler(yt,E,Je,Mt,Ye,o):c.backendConnector&&c.backendConnector.saveMissing&&c.backendConnector.saveMissing(yt,E,Je,Mt,Ye,o),c.emit("missingKey",yt,E,Je,U)};this.options.saveMissing&&(this.options.saveMissingPlurals&&Be?qe.forEach(function(ft){c.pluralResolver.getSuffixes(ft,o).forEach(function(yt){pt([ft],m+yt,o["defaultValue".concat(yt)]||Se)})}):pt(qe,m,Se))}U=this.extendTranslation(U,i,o,_,a),Pe&&U===m&&this.options.appendNamespaceToMissingKey&&(U="".concat(E,":").concat(m)),(Pe||me)&&this.options.parseMissingKeyHandler&&(this.options.compatibilityAPI!=="v1"?U=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?"".concat(E,":").concat(m):m,me?U:void 0):U=this.options.parseMissingKeyHandler(U))}return d?(_.res=U,_):U}},{key:"extendTranslation",value:function(i,o,a,c,d){var p=this;if(this.i18nFormat&&this.i18nFormat.parse)i=this.i18nFormat.parse(i,Li(Li({},this.options.interpolation.defaultVariables),a),c.usedLng,c.usedNS,c.usedKey,{resolved:c});else if(!a.skipInterpolation){a.interpolation&&this.interpolator.init(Li(Li({},a),{interpolation:Li(Li({},this.options.interpolation),a.interpolation)}));var w=typeof i=="string"&&(a&&a.interpolation&&a.interpolation.skipOnVariables!==void 0?a.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables),m;if(w){var T=i.match(this.interpolator.nestingRegexp);m=T&&T.length}var E=a.replace&&typeof a.replace!="string"?a.replace:a;if(this.options.interpolation.defaultVariables&&(E=Li(Li({},this.options.interpolation.defaultVariables),E)),i=this.interpolator.interpolate(i,E,a.lng||this.language,a),w){var A=i.match(this.interpolator.nestingRegexp),I=A&&A.length;m<I&&(a.nest=!1)}!a.lng&&this.options.compatibilityAPI!=="v1"&&c&&c.res&&(a.lng=c.usedLng),a.nest!==!1&&(i=this.interpolator.nest(i,function(){for(var U=arguments.length,G=new Array(U),re=0;re<U;re++)G[re]=arguments[re];return d&&d[0]===G[0]&&!a.context?(p.logger.warn("It seems you are nesting recursively key: ".concat(G[0]," in key: ").concat(o[0])),null):p.translate.apply(p,G.concat([o]))},a)),a.interpolation&&this.interpolator.reset()}var j=a.postProcess||this.options.postProcess,_=typeof j=="string"?[j]:j;return i!=null&&_&&_.length&&a.applyPostProcessor!==!1&&(i=eT.handle(_,i,o,this.options&&this.options.postProcessPassResolved?Li({i18nResolved:c},a):a,this)),i}},{key:"resolve",value:function(i){var o=this,a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},c,d,p,w,m;return typeof i=="string"&&(i=[i]),i.forEach(function(T){if(!o.isValidLookup(c)){var E=o.extractFromKey(T,a),A=E.key;d=A;var I=E.namespaces;o.options.fallbackNS&&(I=I.concat(o.options.fallbackNS));var j=a.count!==void 0&&typeof a.count!="string",_=j&&!a.ordinal&&a.count===0&&o.pluralResolver.shouldUseIntlApi(),U=a.context!==void 0&&(typeof a.context=="string"||typeof a.context=="number")&&a.context!=="",G=a.lngs?a.lngs:o.languageUtils.toResolveHierarchy(a.lng||o.language,a.fallbackLng);I.forEach(function(re){o.isValidLookup(c)||(m=re,!g0["".concat(G[0],"-").concat(re)]&&o.utils&&o.utils.hasLoadedNamespace&&!o.utils.hasLoadedNamespace(m)&&(g0["".concat(G[0],"-").concat(re)]=!0,o.logger.warn('key "'.concat(d,'" for languages "').concat(G.join(", "),`" won't get resolved as namespace "`).concat(m,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),G.forEach(function(q){if(!o.isValidLookup(c)){w=q;var se=[A];if(o.i18nFormat&&o.i18nFormat.addLookupKeys)o.i18nFormat.addLookupKeys(se,A,q,re,a);else{var S;j&&(S=o.pluralResolver.getSuffix(q,a.count,a));var ue="".concat(o.options.pluralSeparator,"zero");if(j&&(se.push(A+S),_&&se.push(A+ue)),U){var ae="".concat(A).concat(o.options.contextSeparator).concat(a.context);se.push(ae),j&&(se.push(ae+S),_&&se.push(ae+ue))}}for(var Ue;Ue=se.pop();)o.isValidLookup(c)||(p=Ue,c=o.getResource(q,re,Ue,a))}}))})}}),{res:c,usedKey:d,exactUsedKey:p,usedLng:w,usedNS:m}}},{key:"isValidLookup",value:function(i){return i!==void 0&&!(!this.options.returnNull&&i===null)&&!(!this.options.returnEmptyString&&i==="")}},{key:"getResource",value:function(i,o,a){var c=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(i,o,a,c):this.resourceStore.getResource(i,o,a,c)}}],[{key:"hasDefaultValue",value:function(i){var o="defaultValue";for(var a in i)if(Object.prototype.hasOwnProperty.call(i,a)&&o===a.substring(0,o.length)&&i[a]!==void 0)return!0;return!1}}]),n}(gu);function Sg(t){return t.charAt(0).toUpperCase()+t.slice(1)}var v0=function(){function t(e){ts(this,t),this.options=e,this.supportedLngs=this.options.supportedLngs||!1,this.logger=Fa.create("languageUtils")}return ns(t,[{key:"getScriptPartFromCode",value:function(n){if(!n||n.indexOf("-")<0)return null;var r=n.split("-");return r.length===2||(r.pop(),r[r.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(r.join("-"))}},{key:"getLanguagePartFromCode",value:function(n){if(!n||n.indexOf("-")<0)return n;var r=n.split("-");return this.formatLanguageCode(r[0])}},{key:"formatLanguageCode",value:function(n){if(typeof n=="string"&&n.indexOf("-")>-1){var r=["hans","hant","latn","cyrl","cans","mong","arab"],i=n.split("-");return this.options.lowerCaseLng?i=i.map(function(o){return o.toLowerCase()}):i.length===2?(i[0]=i[0].toLowerCase(),i[1]=i[1].toUpperCase(),r.indexOf(i[1].toLowerCase())>-1&&(i[1]=Sg(i[1].toLowerCase()))):i.length===3&&(i[0]=i[0].toLowerCase(),i[1].length===2&&(i[1]=i[1].toUpperCase()),i[0]!=="sgn"&&i[2].length===2&&(i[2]=i[2].toUpperCase()),r.indexOf(i[1].toLowerCase())>-1&&(i[1]=Sg(i[1].toLowerCase())),r.indexOf(i[2].toLowerCase())>-1&&(i[2]=Sg(i[2].toLowerCase()))),i.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?n.toLowerCase():n}},{key:"isSupportedCode",value:function(n){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(n=this.getLanguagePartFromCode(n)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(n)>-1}},{key:"getBestMatchFromCodes",value:function(n){var r=this;if(!n)return null;var i;return n.forEach(function(o){if(!i){var a=r.formatLanguageCode(o);(!r.options.supportedLngs||r.isSupportedCode(a))&&(i=a)}}),!i&&this.options.supportedLngs&&n.forEach(function(o){if(!i){var a=r.getLanguagePartFromCode(o);if(r.isSupportedCode(a))return i=a;i=r.options.supportedLngs.find(function(c){if(c===a)return c;if(!(c.indexOf("-")<0&&a.indexOf("-")<0)&&c.indexOf(a)===0)return c})}}),i||(i=this.getFallbackCodes(this.options.fallbackLng)[0]),i}},{key:"getFallbackCodes",value:function(n,r){if(!n)return[];if(typeof n=="function"&&(n=n(r)),typeof n=="string"&&(n=[n]),Object.prototype.toString.apply(n)==="[object Array]")return n;if(!r)return n.default||[];var i=n[r];return i||(i=n[this.getScriptPartFromCode(r)]),i||(i=n[this.formatLanguageCode(r)]),i||(i=n[this.getLanguagePartFromCode(r)]),i||(i=n.default),i||[]}},{key:"toResolveHierarchy",value:function(n,r){var i=this,o=this.getFallbackCodes(r||this.options.fallbackLng||[],n),a=[],c=function(p){p&&(i.isSupportedCode(p)?a.push(p):i.logger.warn("rejecting language code not found in supportedLngs: ".concat(p)))};return typeof n=="string"&&n.indexOf("-")>-1?(this.options.load!=="languageOnly"&&c(this.formatLanguageCode(n)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&c(this.getScriptPartFromCode(n)),this.options.load!=="currentOnly"&&c(this.getLanguagePartFromCode(n))):typeof n=="string"&&c(this.formatLanguageCode(n)),o.forEach(function(d){a.indexOf(d)<0&&c(i.formatLanguageCode(d))}),a}}]),t}(),RI=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],AI={1:function(e){return+(e>1)},2:function(e){return+(e!=1)},3:function(e){return 0},4:function(e){return e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2},5:function(e){return e==0?0:e==1?1:e==2?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5},6:function(e){return e==1?0:e>=2&&e<=4?1:2},7:function(e){return e==1?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2},8:function(e){return e==1?0:e==2?1:e!=8&&e!=11?2:3},9:function(e){return+(e>=2)},10:function(e){return e==1?0:e==2?1:e<7?2:e<11?3:4},11:function(e){return e==1||e==11?0:e==2||e==12?1:e>2&&e<20?2:3},12:function(e){return+(e%10!=1||e%100==11)},13:function(e){return+(e!==0)},14:function(e){return e==1?0:e==2?1:e==3?2:3},15:function(e){return e%10==1&&e%100!=11?0:e%10>=2&&(e%100<10||e%100>=20)?1:2},16:function(e){return e%10==1&&e%100!=11?0:e!==0?1:2},17:function(e){return e==1||e%10==1&&e%100!=11?0:1},18:function(e){return e==0?0:e==1?1:2},19:function(e){return e==1?0:e==0||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3},20:function(e){return e==1?0:e==0||e%100>0&&e%100<20?1:2},21:function(e){return e%100==1?1:e%100==2?2:e%100==3||e%100==4?3:0},22:function(e){return e==1?0:e==2?1:(e<0||e>10)&&e%10==0?2:3}},II=["v1","v2","v3"],y0={zero:0,one:1,two:2,few:3,many:4,other:5};function MI(){var t={};return RI.forEach(function(e){e.lngs.forEach(function(n){t[n]={numbers:e.nr,plurals:AI[e.fc]}})}),t}var LI=function(){function t(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};ts(this,t),this.languageUtils=e,this.options=n,this.logger=Fa.create("pluralResolver"),(!this.options.compatibilityJSON||this.options.compatibilityJSON==="v4")&&(typeof Intl>"u"||!Intl.PluralRules)&&(this.options.compatibilityJSON="v3",this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")),this.rules=MI()}return ns(t,[{key:"addRule",value:function(n,r){this.rules[n]=r}},{key:"getRule",value:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(this.shouldUseIntlApi())try{return new Intl.PluralRules(n,{type:r.ordinal?"ordinal":"cardinal"})}catch{return}return this.rules[n]||this.rules[this.languageUtils.getLanguagePartFromCode(n)]}},{key:"needsPlural",value:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=this.getRule(n,r);return this.shouldUseIntlApi()?i&&i.resolvedOptions().pluralCategories.length>1:i&&i.numbers.length>1}},{key:"getPluralFormsOfKey",value:function(n,r){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.getSuffixes(n,i).map(function(o){return"".concat(r).concat(o)})}},{key:"getSuffixes",value:function(n){var r=this,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=this.getRule(n,i);return o?this.shouldUseIntlApi()?o.resolvedOptions().pluralCategories.sort(function(a,c){return y0[a]-y0[c]}).map(function(a){return"".concat(r.options.prepend).concat(a)}):o.numbers.map(function(a){return r.getSuffix(n,a,i)}):[]}},{key:"getSuffix",value:function(n,r){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o=this.getRule(n,i);return o?this.shouldUseIntlApi()?"".concat(this.options.prepend).concat(o.select(r)):this.getSuffixRetroCompatible(o,r):(this.logger.warn("no plural rule found for: ".concat(n)),"")}},{key:"getSuffixRetroCompatible",value:function(n,r){var i=this,o=n.noAbs?n.plurals(r):n.plurals(Math.abs(r)),a=n.numbers[o];this.options.simplifyPluralSuffix&&n.numbers.length===2&&n.numbers[0]===1&&(a===2?a="plural":a===1&&(a=""));var c=function(){return i.options.prepend&&a.toString()?i.options.prepend+a.toString():a.toString()};return this.options.compatibilityJSON==="v1"?a===1?"":typeof a=="number"?"_plural_".concat(a.toString()):c():this.options.compatibilityJSON==="v2"||this.options.simplifyPluralSuffix&&n.numbers.length===2&&n.numbers[0]===1?c():this.options.prepend&&o.toString()?this.options.prepend+o.toString():o.toString()}},{key:"shouldUseIntlApi",value:function(){return!II.includes(this.options.compatibilityJSON)}}]),t}();function b0(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function ia(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?b0(Object(n),!0).forEach(function(r){Ha(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):b0(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function w0(t,e,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:".",i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,o=xI(t,e,n);return!o&&i&&typeof n=="string"&&(o=Kh(t,n,r),o===void 0&&(o=Kh(e,n,r))),o}var FI=function(){function t(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};ts(this,t),this.logger=Fa.create("interpolator"),this.options=e,this.format=e.interpolation&&e.interpolation.format||function(n){return n},this.init(e)}return ns(t,[{key:"init",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};n.interpolation||(n.interpolation={escapeValue:!0});var r=n.interpolation;this.escape=r.escape!==void 0?r.escape:TI,this.escapeValue=r.escapeValue!==void 0?r.escapeValue:!0,this.useRawValueToEscape=r.useRawValueToEscape!==void 0?r.useRawValueToEscape:!1,this.prefix=r.prefix?af(r.prefix):r.prefixEscaped||"{{",this.suffix=r.suffix?af(r.suffix):r.suffixEscaped||"}}",this.formatSeparator=r.formatSeparator?r.formatSeparator:r.formatSeparator||",",this.unescapePrefix=r.unescapeSuffix?"":r.unescapePrefix||"-",this.unescapeSuffix=this.unescapePrefix?"":r.unescapeSuffix||"",this.nestingPrefix=r.nestingPrefix?af(r.nestingPrefix):r.nestingPrefixEscaped||af("$t("),this.nestingSuffix=r.nestingSuffix?af(r.nestingSuffix):r.nestingSuffixEscaped||af(")"),this.nestingOptionsSeparator=r.nestingOptionsSeparator?r.nestingOptionsSeparator:r.nestingOptionsSeparator||",",this.maxReplaces=r.maxReplaces?r.maxReplaces:1e3,this.alwaysFormat=r.alwaysFormat!==void 0?r.alwaysFormat:!1,this.resetRegExp()}},{key:"reset",value:function(){this.options&&this.init(this.options)}},{key:"resetRegExp",value:function(){var n="".concat(this.prefix,"(.+?)").concat(this.suffix);this.regexp=new RegExp(n,"g");var r="".concat(this.prefix).concat(this.unescapePrefix,"(.+?)").concat(this.unescapeSuffix).concat(this.suffix);this.regexpUnescape=new RegExp(r,"g");var i="".concat(this.nestingPrefix,"(.+?)").concat(this.nestingSuffix);this.nestingRegexp=new RegExp(i,"g")}},{key:"interpolate",value:function(n,r,i,o){var a=this,c,d,p,w=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function m(j){return j.replace(/\$/g,"$$$$")}var T=function(_){if(_.indexOf(a.formatSeparator)<0){var U=w0(r,w,_,a.options.keySeparator,a.options.ignoreJSONStructure);return a.alwaysFormat?a.format(U,void 0,i,ia(ia(ia({},o),r),{},{interpolationkey:_})):U}var G=_.split(a.formatSeparator),re=G.shift().trim(),q=G.join(a.formatSeparator).trim();return a.format(w0(r,w,re,a.options.keySeparator,a.options.ignoreJSONStructure),q,i,ia(ia(ia({},o),r),{},{interpolationkey:re}))};this.resetRegExp();var E=o&&o.missingInterpolationHandler||this.options.missingInterpolationHandler,A=o&&o.interpolation&&o.interpolation.skipOnVariables!==void 0?o.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables,I=[{regex:this.regexpUnescape,safeValue:function(_){return m(_)}},{regex:this.regexp,safeValue:function(_){return a.escapeValue?m(a.escape(_)):m(_)}}];return I.forEach(function(j){for(p=0;c=j.regex.exec(n);){var _=c[1].trim();if(d=T(_),d===void 0)if(typeof E=="function"){var U=E(n,c,o);d=typeof U=="string"?U:""}else if(o&&Object.prototype.hasOwnProperty.call(o,_))d="";else if(A){d=c[0];continue}else a.logger.warn("missed to pass in variable ".concat(_," for interpolating ").concat(n)),d="";else typeof d!="string"&&!a.useRawValueToEscape&&(d=f0(d));var G=j.safeValue(d);if(n=n.replace(c[0],G),A?(j.regex.lastIndex+=d.length,j.regex.lastIndex-=c[0].length):j.regex.lastIndex=0,p++,p>=a.maxReplaces)break}}),n}},{key:"nest",value:function(n,r){var i=this,o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},a,c,d;function p(E,A){var I=this.nestingOptionsSeparator;if(E.indexOf(I)<0)return E;var j=E.split(new RegExp("".concat(I,"[ ]*{"))),_="{".concat(j[1]);E=j[0],_=this.interpolate(_,d);var U=_.match(/'/g),G=_.match(/"/g);(U&&U.length%2===0&&!G||G.length%2!==0)&&(_=_.replace(/'/g,'"'));try{d=JSON.parse(_),A&&(d=ia(ia({},A),d))}catch(re){return this.logger.warn("failed parsing options string in nesting for key ".concat(E),re),"".concat(E).concat(I).concat(_)}return delete d.defaultValue,E}for(;a=this.nestingRegexp.exec(n);){var w=[];d=ia({},o),d=d.replace&&typeof d.replace!="string"?d.replace:d,d.applyPostProcessor=!1,delete d.defaultValue;var m=!1;if(a[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(a[1])){var T=a[1].split(this.formatSeparator).map(function(E){return E.trim()});a[1]=T.shift(),w=T,m=!0}if(c=r(p.call(this,a[1].trim(),d),d),c&&a[0]===n&&typeof c!="string")return c;typeof c!="string"&&(c=f0(c)),c||(this.logger.warn("missed to resolve ".concat(a[1]," for nesting ").concat(n)),c=""),m&&(c=w.reduce(function(E,A){return i.format(E,A,o.lng,ia(ia({},o),{},{interpolationkey:a[1].trim()}))},c.trim())),n=n.replace(a[0],c),this.regexp.lastIndex=0}return n}}]),t}();function x0(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function ml(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?x0(Object(n),!0).forEach(function(r){Ha(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):x0(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function NI(t){var e=t.toLowerCase().trim(),n={};if(t.indexOf("(")>-1){var r=t.split("(");e=r[0].toLowerCase().trim();var i=r[1].substring(0,r[1].length-1);if(e==="currency"&&i.indexOf(":")<0)n.currency||(n.currency=i.trim());else if(e==="relativetime"&&i.indexOf(":")<0)n.range||(n.range=i.trim());else{var o=i.split(";");o.forEach(function(a){if(a){var c=a.split(":"),d=mI(c),p=d[0],w=d.slice(1),m=w.join(":").trim().replace(/^'+|'+$/g,"");n[p.trim()]||(n[p.trim()]=m),m==="false"&&(n[p.trim()]=!1),m==="true"&&(n[p.trim()]=!0),isNaN(m)||(n[p.trim()]=parseInt(m,10))}})}}return{formatName:e,formatOptions:n}}function lf(t){var e={};return function(r,i,o){var a=i+JSON.stringify(o),c=e[a];return c||(c=t(i,o),e[a]=c),c(r)}}var jI=function(){function t(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};ts(this,t),this.logger=Fa.create("formatter"),this.options=e,this.formats={number:lf(function(n,r){var i=new Intl.NumberFormat(n,ml({},r));return function(o){return i.format(o)}}),currency:lf(function(n,r){var i=new Intl.NumberFormat(n,ml(ml({},r),{},{style:"currency"}));return function(o){return i.format(o)}}),datetime:lf(function(n,r){var i=new Intl.DateTimeFormat(n,ml({},r));return function(o){return i.format(o)}}),relativetime:lf(function(n,r){var i=new Intl.RelativeTimeFormat(n,ml({},r));return function(o){return i.format(o,r.range||"day")}}),list:lf(function(n,r){var i=new Intl.ListFormat(n,ml({},r));return function(o){return i.format(o)}})},this.init(e)}return ns(t,[{key:"init",value:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}},i=r.interpolation;this.formatSeparator=i.formatSeparator?i.formatSeparator:i.formatSeparator||","}},{key:"add",value:function(n,r){this.formats[n.toLowerCase().trim()]=r}},{key:"addCached",value:function(n,r){this.formats[n.toLowerCase().trim()]=lf(r)}},{key:"format",value:function(n,r,i){var o=this,a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},c=r.split(this.formatSeparator),d=c.reduce(function(p,w){var m=NI(w),T=m.formatName,E=m.formatOptions;if(o.formats[T]){var A=p;try{var I=a&&a.formatParams&&a.formatParams[a.interpolationkey]||{},j=I.locale||I.lng||a.locale||a.lng||i;A=o.formats[T](p,j,ml(ml(ml({},E),a),I))}catch(_){o.logger.warn(_)}return A}else o.logger.warn("there was no format function for ".concat(T));return p},n);return d}}]),t}();function S0(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function T0(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?S0(Object(n),!0).forEach(function(r){Ha(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):S0(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function BI(t){var e=$I();return function(){var r=Va(t),i;if(e){var o=Va(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return Ud(this,i)}}function $I(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function VI(t,e){t.pending[e]!==void 0&&(delete t.pending[e],t.pendingCount--)}var HI=function(t){Tp(n,t);var e=BI(n);function n(r,i,o){var a,c=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return ts(this,n),a=e.call(this),Cp&&gu.call(xl(a)),a.backend=r,a.store=i,a.services=o,a.languageUtils=o.languageUtils,a.options=c,a.logger=Fa.create("backendConnector"),a.waitingReads=[],a.maxParallelReads=c.maxParallelReads||10,a.readingCalls=0,a.maxRetries=c.maxRetries>=0?c.maxRetries:5,a.retryTimeout=c.retryTimeout>=1?c.retryTimeout:350,a.state={},a.queue=[],a.backend&&a.backend.init&&a.backend.init(o,c.backend,c),a}return ns(n,[{key:"queueLoad",value:function(i,o,a,c){var d=this,p={},w={},m={},T={};return i.forEach(function(E){var A=!0;o.forEach(function(I){var j="".concat(E,"|").concat(I);!a.reload&&d.store.hasResourceBundle(E,I)?d.state[j]=2:d.state[j]<0||(d.state[j]===1?w[j]===void 0&&(w[j]=!0):(d.state[j]=1,A=!1,w[j]===void 0&&(w[j]=!0),p[j]===void 0&&(p[j]=!0),T[I]===void 0&&(T[I]=!0)))}),A||(m[E]=!0)}),(Object.keys(p).length||Object.keys(w).length)&&this.queue.push({pending:w,pendingCount:Object.keys(w).length,loaded:{},errors:[],callback:c}),{toLoad:Object.keys(p),pending:Object.keys(w),toLoadLanguages:Object.keys(m),toLoadNamespaces:Object.keys(T)}}},{key:"loaded",value:function(i,o,a){var c=i.split("|"),d=c[0],p=c[1];o&&this.emit("failedLoading",d,p,o),a&&this.store.addResourceBundle(d,p,a),this.state[i]=o?-1:2;var w={};this.queue.forEach(function(m){wI(m.loaded,[d],p),VI(m,i),o&&m.errors.push(o),m.pendingCount===0&&!m.done&&(Object.keys(m.loaded).forEach(function(T){w[T]||(w[T]={});var E=m.loaded[T];E.length&&E.forEach(function(A){w[T][A]===void 0&&(w[T][A]=!0)})}),m.done=!0,m.errors.length?m.callback(m.errors):m.callback())}),this.emit("loaded",w),this.queue=this.queue.filter(function(m){return!m.done})}},{key:"read",value:function(i,o,a){var c=this,d=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,p=arguments.length>4&&arguments[4]!==void 0?arguments[4]:this.retryTimeout,w=arguments.length>5?arguments[5]:void 0;if(!i.length)return w(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:i,ns:o,fcName:a,tried:d,wait:p,callback:w});return}this.readingCalls++;var m=function(I,j){if(c.readingCalls--,c.waitingReads.length>0){var _=c.waitingReads.shift();c.read(_.lng,_.ns,_.fcName,_.tried,_.wait,_.callback)}if(I&&j&&d<c.maxRetries){setTimeout(function(){c.read.call(c,i,o,a,d+1,p*2,w)},p);return}w(I,j)},T=this.backend[a].bind(this.backend);if(T.length===2){try{var E=T(i,o);E&&typeof E.then=="function"?E.then(function(A){return m(null,A)}).catch(m):m(null,E)}catch(A){m(A)}return}return T(i,o,m)}},{key:"prepareLoading",value:function(i,o){var a=this,c=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},d=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),d&&d();typeof i=="string"&&(i=this.languageUtils.toResolveHierarchy(i)),typeof o=="string"&&(o=[o]);var p=this.queueLoad(i,o,c,d);if(!p.toLoad.length)return p.pending.length||d(),null;p.toLoad.forEach(function(w){a.loadOne(w)})}},{key:"load",value:function(i,o,a){this.prepareLoading(i,o,{},a)}},{key:"reload",value:function(i,o,a){this.prepareLoading(i,o,{reload:!0},a)}},{key:"loadOne",value:function(i){var o=this,a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",c=i.split("|"),d=c[0],p=c[1];this.read(d,p,"read",void 0,void 0,function(w,m){w&&o.logger.warn("".concat(a,"loading namespace ").concat(p," for language ").concat(d," failed"),w),!w&&m&&o.logger.log("".concat(a,"loaded namespace ").concat(p," for language ").concat(d),m),o.loaded(i,w,m)})}},{key:"saveMissing",value:function(i,o,a,c,d){var p=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{},w=arguments.length>6&&arguments[6]!==void 0?arguments[6]:function(){};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(o)){this.logger.warn('did not save key "'.concat(a,'" as the namespace "').concat(o,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}if(!(a==null||a==="")){if(this.backend&&this.backend.create){var m=T0(T0({},p),{},{isUpdate:d}),T=this.backend.create.bind(this.backend);if(T.length<6)try{var E;T.length===5?E=T(i,o,a,c,m):E=T(i,o,a,c),E&&typeof E.then=="function"?E.then(function(A){return w(null,A)}).catch(w):w(null,E)}catch(A){w(A)}else T(i,o,a,c,w,m)}!i||!i[0]||this.store.addResource(i[0],o,a,c)}}}]),n}(gu);function C0(){return{debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!0,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function(e){var n={};if(Jo(e[1])==="object"&&(n=e[1]),typeof e[1]=="string"&&(n.defaultValue=e[1]),typeof e[2]=="string"&&(n.tDescription=e[2]),Jo(e[2])==="object"||Jo(e[3])==="object"){var r=e[3]||e[2];Object.keys(r).forEach(function(i){n[i]=r[i]})}return n},interpolation:{escapeValue:!0,format:function(e,n,r,i){return e},prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}}function E0(t){return typeof t.ns=="string"&&(t.ns=[t.ns]),typeof t.fallbackLng=="string"&&(t.fallbackLng=[t.fallbackLng]),typeof t.fallbackNS=="string"&&(t.fallbackNS=[t.fallbackNS]),t.supportedLngs&&t.supportedLngs.indexOf("cimode")<0&&(t.supportedLngs=t.supportedLngs.concat(["cimode"])),t}function k0(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function Ia(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?k0(Object(n),!0).forEach(function(r){Ha(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):k0(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function UI(t){var e=WI();return function(){var r=Va(t),i;if(e){var o=Va(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return Ud(this,i)}}function WI(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function hh(){}function zI(t){var e=Object.getOwnPropertyNames(Object.getPrototypeOf(t));e.forEach(function(n){typeof t[n]=="function"&&(t[n]=t[n].bind(t))})}var Zh=function(t){Tp(n,t);var e=UI(n);function n(){var r,i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=arguments.length>1?arguments[1]:void 0;if(ts(this,n),r=e.call(this),Cp&&gu.call(xl(r)),r.options=E0(i),r.services={},r.logger=Fa,r.modules={external:[]},zI(xl(r)),o&&!r.isInitialized&&!i.isClone){if(!r.options.initImmediate)return r.init(i,o),Ud(r,xl(r));setTimeout(function(){r.init(i,o)},0)}return r}return ns(n,[{key:"init",value:function(){var i=this,o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},a=arguments.length>1?arguments[1]:void 0;typeof o=="function"&&(a=o,o={}),!o.defaultNS&&o.defaultNS!==!1&&o.ns&&(typeof o.ns=="string"?o.defaultNS=o.ns:o.ns.indexOf("translation")<0&&(o.defaultNS=o.ns[0]));var c=C0();this.options=Ia(Ia(Ia({},c),this.options),E0(o)),this.options.compatibilityAPI!=="v1"&&(this.options.interpolation=Ia(Ia({},c.interpolation),this.options.interpolation)),o.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=o.keySeparator),o.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=o.nsSeparator);function d(_){return _?typeof _=="function"?new _:_:null}if(!this.options.isClone){this.modules.logger?Fa.init(d(this.modules.logger),this.options):Fa.init(null,this.options);var p;this.modules.formatter?p=this.modules.formatter:typeof Intl<"u"&&(p=jI);var w=new v0(this.options);this.store=new PI(this.options.resources,this.options);var m=this.services;m.logger=Fa,m.resourceStore=this.store,m.languageUtils=w,m.pluralResolver=new LI(w,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),p&&(!this.options.interpolation.format||this.options.interpolation.format===c.interpolation.format)&&(m.formatter=d(p),m.formatter.init(m,this.options),this.options.interpolation.format=m.formatter.format.bind(m.formatter)),m.interpolator=new FI(this.options),m.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},m.backendConnector=new HI(d(this.modules.backend),m.resourceStore,m,this.options),m.backendConnector.on("*",function(_){for(var U=arguments.length,G=new Array(U>1?U-1:0),re=1;re<U;re++)G[re-1]=arguments[re];i.emit.apply(i,[_].concat(G))}),this.modules.languageDetector&&(m.languageDetector=d(this.modules.languageDetector),m.languageDetector.init&&m.languageDetector.init(m,this.options.detection,this.options)),this.modules.i18nFormat&&(m.i18nFormat=d(this.modules.i18nFormat),m.i18nFormat.init&&m.i18nFormat.init(this)),this.translator=new m0(this.services,this.options),this.translator.on("*",function(_){for(var U=arguments.length,G=new Array(U>1?U-1:0),re=1;re<U;re++)G[re-1]=arguments[re];i.emit.apply(i,[_].concat(G))}),this.modules.external.forEach(function(_){_.init&&_.init(i)})}if(this.format=this.options.interpolation.format,a||(a=hh),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){var T=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);T.length>0&&T[0]!=="dev"&&(this.options.lng=T[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined");var E=["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"];E.forEach(function(_){i[_]=function(){var U;return(U=i.store)[_].apply(U,arguments)}});var A=["addResource","addResources","addResourceBundle","removeResourceBundle"];A.forEach(function(_){i[_]=function(){var U;return(U=i.store)[_].apply(U,arguments),i}});var I=Qf(),j=function(){var U=function(re,q){i.isInitialized&&!i.initializedStoreOnce&&i.logger.warn("init: i18next is already initialized. You should call init just once!"),i.isInitialized=!0,i.options.isClone||i.logger.log("initialized",i.options),i.emit("initialized",i.options),I.resolve(q),a(re,q)};if(i.languages&&i.options.compatibilityAPI!=="v1"&&!i.isInitialized)return U(null,i.t.bind(i));i.changeLanguage(i.options.lng,U)};return this.options.resources||!this.options.initImmediate?j():setTimeout(j,0),I}},{key:"loadResources",value:function(i){var o=this,a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:hh,c=a,d=typeof i=="string"?i:this.language;if(typeof i=="function"&&(c=i),!this.options.resources||this.options.partialBundledLanguages){if(d&&d.toLowerCase()==="cimode")return c();var p=[],w=function(E){if(E){var A=o.services.languageUtils.toResolveHierarchy(E);A.forEach(function(I){p.indexOf(I)<0&&p.push(I)})}};if(d)w(d);else{var m=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);m.forEach(function(T){return w(T)})}this.options.preload&&this.options.preload.forEach(function(T){return w(T)}),this.services.backendConnector.load(p,this.options.ns,function(T){!T&&!o.resolvedLanguage&&o.language&&o.setResolvedLanguage(o.language),c(T)})}else c(null)}},{key:"reloadResources",value:function(i,o,a){var c=Qf();return i||(i=this.languages),o||(o=this.options.ns),a||(a=hh),this.services.backendConnector.reload(i,o,function(d){c.resolve(),a(d)}),c}},{key:"use",value:function(i){if(!i)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!i.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return i.type==="backend"&&(this.modules.backend=i),(i.type==="logger"||i.log&&i.warn&&i.error)&&(this.modules.logger=i),i.type==="languageDetector"&&(this.modules.languageDetector=i),i.type==="i18nFormat"&&(this.modules.i18nFormat=i),i.type==="postProcessor"&&eT.addPostProcessor(i),i.type==="formatter"&&(this.modules.formatter=i),i.type==="3rdParty"&&this.modules.external.push(i),this}},{key:"setResolvedLanguage",value:function(i){if(!(!i||!this.languages)&&!(["cimode","dev"].indexOf(i)>-1))for(var o=0;o<this.languages.length;o++){var a=this.languages[o];if(!(["cimode","dev"].indexOf(a)>-1)&&this.store.hasLanguageSomeTranslations(a)){this.resolvedLanguage=a;break}}}},{key:"changeLanguage",value:function(i,o){var a=this;this.isLanguageChangingTo=i;var c=Qf();this.emit("languageChanging",i);var d=function(T){a.language=T,a.languages=a.services.languageUtils.toResolveHierarchy(T),a.resolvedLanguage=void 0,a.setResolvedLanguage(T)},p=function(T,E){E?(d(E),a.translator.changeLanguage(E),a.isLanguageChangingTo=void 0,a.emit("languageChanged",E),a.logger.log("languageChanged",E)):a.isLanguageChangingTo=void 0,c.resolve(function(){return a.t.apply(a,arguments)}),o&&o(T,function(){return a.t.apply(a,arguments)})},w=function(T){!i&&!T&&a.services.languageDetector&&(T=[]);var E=typeof T=="string"?T:a.services.languageUtils.getBestMatchFromCodes(T);E&&(a.language||d(E),a.translator.language||a.translator.changeLanguage(E),a.services.languageDetector&&a.services.languageDetector.cacheUserLanguage&&a.services.languageDetector.cacheUserLanguage(E)),a.loadResources(E,function(A){p(A,E)})};return!i&&this.services.languageDetector&&!this.services.languageDetector.async?w(this.services.languageDetector.detect()):!i&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(w):this.services.languageDetector.detect(w):w(i),c}},{key:"getFixedT",value:function(i,o,a){var c=this,d=function p(w,m){var T;if(Jo(m)!=="object"){for(var E=arguments.length,A=new Array(E>2?E-2:0),I=2;I<E;I++)A[I-2]=arguments[I];T=c.options.overloadTranslationOptionHandler([w,m].concat(A))}else T=Ia({},m);T.lng=T.lng||p.lng,T.lngs=T.lngs||p.lngs,T.ns=T.ns||p.ns,T.keyPrefix=T.keyPrefix||a||p.keyPrefix;var j=c.options.keySeparator||".",_;return T.keyPrefix&&Array.isArray(w)?_=w.map(function(U){return"".concat(T.keyPrefix).concat(j).concat(U)}):_=T.keyPrefix?"".concat(T.keyPrefix).concat(j).concat(w):w,c.t(_,T)};return typeof i=="string"?d.lng=i:d.lngs=i,d.ns=o,d.keyPrefix=a,d}},{key:"t",value:function(){var i;return this.translator&&(i=this.translator).translate.apply(i,arguments)}},{key:"exists",value:function(){var i;return this.translator&&(i=this.translator).exists.apply(i,arguments)}},{key:"setDefaultNamespace",value:function(i){this.options.defaultNS=i}},{key:"hasLoadedNamespace",value:function(i){var o=this,a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;var c=a.lng||this.resolvedLanguage||this.languages[0],d=this.options?this.options.fallbackLng:!1,p=this.languages[this.languages.length-1];if(c.toLowerCase()==="cimode")return!0;var w=function(E,A){var I=o.services.backendConnector.state["".concat(E,"|").concat(A)];return I===-1||I===2};if(a.precheck){var m=a.precheck(this,w);if(m!==void 0)return m}return!!(this.hasResourceBundle(c,i)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||w(c,i)&&(!d||w(p,i)))}},{key:"loadNamespaces",value:function(i,o){var a=this,c=Qf();return this.options.ns?(typeof i=="string"&&(i=[i]),i.forEach(function(d){a.options.ns.indexOf(d)<0&&a.options.ns.push(d)}),this.loadResources(function(d){c.resolve(),o&&o(d)}),c):(o&&o(),Promise.resolve())}},{key:"loadLanguages",value:function(i,o){var a=Qf();typeof i=="string"&&(i=[i]);var c=this.options.preload||[],d=i.filter(function(p){return c.indexOf(p)<0});return d.length?(this.options.preload=c.concat(d),this.loadResources(function(p){a.resolve(),o&&o(p)}),a):(o&&o(),Promise.resolve())}},{key:"dir",value:function(i){if(i||(i=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),!i)return"rtl";var o=["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"],a=this.services&&this.services.languageUtils||new v0(C0());return o.indexOf(a.getLanguagePartFromCode(i))>-1||i.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}},{key:"cloneInstance",value:function(){var i=this,o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:hh,c=Ia(Ia(Ia({},this.options),o),{isClone:!0}),d=new n(c);(o.debug!==void 0||o.prefix!==void 0)&&(d.logger=d.logger.clone(o));var p=["store","services","language"];return p.forEach(function(w){d[w]=i[w]}),d.services=Ia({},this.services),d.services.utils={hasLoadedNamespace:d.hasLoadedNamespace.bind(d)},d.translator=new m0(d.services,d.options),d.translator.on("*",function(w){for(var m=arguments.length,T=new Array(m>1?m-1:0),E=1;E<m;E++)T[E-1]=arguments[E];d.emit.apply(d,[w].concat(T))}),d.init(c,a),d.translator.options=d.options,d.translator.backendConnector.services.utils={hasLoadedNamespace:d.hasLoadedNamespace.bind(d)},d}},{key:"toJSON",value:function(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}]),n}(gu);Ha(Zh,"createInstance",function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},e=arguments.length>1?arguments[1]:void 0;return new Zh(t,e)});var ii=Zh.createInstance();ii.createInstance=Zh.createInstance;ii.createInstance;ii.dir;ii.init;ii.loadResources;ii.reloadResources;ii.use;ii.changeLanguage;ii.getFixedT;var tT=ii.t;ii.exists;ii.setDefaultNamespace;ii.hasLoadedNamespace;ii.loadNamespaces;ii.loadLanguages;const nT={TOKEN_MALFORMED:"token_malformed",TOKEN_EXPIRED:"token_expired"},rT=t=>{window.location.href=`${t}/authentication/login`},iT=t=>{window.location.href=`${t}/authentication/logout`},As=uI.create({withCredentials:!0});let Tg=!1,Pm=[];const D0=t=>{Pm.forEach(e=>{t?e.reject(t):e.resolve()}),Pm=[]};function oT(t,e){var o,a,c,d,p,w,m,T,E;const n=t.config,r=((a=(o=t.response)==null?void 0:o.data)==null?void 0:a.errorMessage)||((d=(c=t.response)==null?void 0:c.data)==null?void 0:d.message),i=r===nT.TOKEN_EXPIRED;if(((p=t.response)==null?void 0:p.status)===401&&i&&!n._retry)return Tg?new Promise((A,I)=>{Pm.push({resolve:A,reject:I})}).then(()=>As(n)).catch(A=>Promise.reject(A)):(n._retry=!0,Tg=!0,As.post("/authentication/api/v1/auth/refresh-token",void 0,{baseURL:window.env.AUTHEN_DOMAIN}).then(()=>(D0(null),As(n))).catch(A=>(D0(A),Promise.reject(A))).finally(()=>{Tg=!1}));if(((w=t.response)==null?void 0:w.status)===401&&!i){if(window.self!==window.top&&window.top){console.log("401 - IFRAME");const A=`${window.env.AUTHEN_DOMAIN||window.top.origin}/authentication/login`;window.top.location.href=A;return}return rT(window.env.AUTHEN_DOMAIN)}return((m=t.response)==null?void 0:m.status)===403?(T=e==null?void 0:e.handle403)==null||T.call(e,t):(!(e!=null&&e.disabledPushNotify)&&Wd(tT(`${r||"Something went wrong!"}`)),(E=e==null?void 0:e.handleOtherError)==null||E.call(e,t)),r&&t.response&&t.response.data&&(t.response.data.message=r),Promise.reject(t)}const YI=As.interceptors.response.use(t=>t,async t=>oT(t)),sT=X.createContext({}),GI=({children:t})=>{const[e,n]=X.useState(!1),[r,i]=X.useState({all:{rows:[],total:0},unread:{rows:[],total:0}}),o=()=>{n(!e)},a=()=>{n(!1)};return Re.jsx(sT.Provider,{value:{isOpen:e,toggleOpen:o,setShowModalFalse:a,notidata:r,setNotiData:i},children:t})};var aT={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},P0=X.createContext&&X.createContext(aT),qI=["attr","size","title"];function XI(t,e){if(t==null)return{};var n=KI(t,e),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(i=0;i<o.length;i++)r=o[i],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}function KI(t,e){if(t==null)return{};var n={};for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r)){if(e.indexOf(r)>=0)continue;n[r]=t[r]}return n}function Jh(){return Jh=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},Jh.apply(this,arguments)}function O0(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function Qh(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?O0(Object(n),!0).forEach(function(r){ZI(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):O0(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function ZI(t,e,n){return e=JI(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function JI(t){var e=QI(t,"string");return typeof e=="symbol"?e:e+""}function QI(t,e){if(typeof t!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function lT(t){return t&&t.map((e,n)=>X.createElement(e.tag,Qh({key:n},e.attr),lT(e.child)))}function Ep(t){return e=>X.createElement(eM,Jh({attr:Qh({},t.attr)},e),lT(t.child))}function eM(t){var e=n=>{var{attr:r,size:i,title:o}=t,a=XI(t,qI),c=i||n.size||"1em",d;return n.className&&(d=n.className),t.className&&(d=(d?d+" ":"")+t.className),X.createElement("svg",Jh({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},n.attr,r,a,{className:d,style:Qh(Qh({color:t.color||n.color},n.style),t.style),height:c,width:c,xmlns:"http://www.w3.org/2000/svg"}),o&&X.createElement("title",null,o),t.children)};return P0!==void 0?X.createElement(P0.Consumer,null,n=>e(n)):e(aT)}function tM(t){return Ep({attr:{viewBox:"0 0 1024 1024"},child:[{tag:"path",attr:{d:"M689 165.1L308.2 493.5c-10.9 9.4-10.9 27.5 0 37L689 858.9c14.2 12.2 35 1.2 35-18.5V183.6c0-19.7-20.8-30.7-35-18.5z"},child:[]}]})(t)}function nM(t){return Ep({attr:{viewBox:"0 0 1024 1024"},child:[{tag:"path",attr:{d:"M715.8 493.5L335 165.1c-14.2-12.2-35-1.2-35 18.5v656.8c0 19.7 20.8 30.7 35 18.5l380.8-328.4c10.9-9.4 10.9-27.6 0-37z"},child:[]}]})(t)}const uT={allVariants:{lineHeight:"inherit"},fontFamily:"'SpecialAmpersand', 'TT Firs Neue Trl'",button:{textTransform:"none",fontSize:"0.875rem",fontWeight:400,boxShadow:"none"},body1:{fontSize:"0.875rem",fontWeight:400},body2:{fontSize:"0.75rem"},h6:{fontSize:"0.875rem",fontWeight:500},h5:{fontSize:"1rem",fontWeight:500},h4:{fontSize:"1.25rem",fontWeight:500},h3:{fontSize:"1.5rem",fontWeight:500},h2:{fontSize:"2rem",fontWeight:500},h1:{fontSize:"2.5rem",fontWeight:500},subtitle1:{fontSize:"0.75rem"},subtitle2:{fontSize:"0.625rem"}};function Cg(t){return t+" !important"}const cT=t=>{const e={...t.colors};return sa.createTheme({palette:{primary:{main:e.primary300,contrastText:e.textPrimary},secondary:{main:e.secondary,contrastText:e.textPrimary},warning:{main:e.warning,contrastText:e.textPrimary},error:{main:e.danger,contrastText:e.textPrimary}},typography:uT,components:{MuiIconButton:{styleOverrides:{root:{},sizeSmall:{}}},MuiButton:{styleOverrides:{root:{boxShadow:"none !important",padding:"8px 32px",borderWidth:1,borderRadius:3,fontWeight:400}},variants:[{props:{variant:"primary"},style:{backgroundColor:e.primary300,color:e.buttonText,"&:hover":{backgroundColor:e.buttonHover||e.primary300},"&.Mui-disabled":{backgroundColor:e.grey200}}},{props:{variant:"contained",color:"error"},style:{color:e.white}},{props:{variant:"confirm"},style:{backgroundColor:e.danger,color:e.white,"&:hover":{backgroundColor:e.dangerDark},"&.Mui-disabled":{backgroundColor:e.grey200}}},{props:{variant:"cancel"},style:{backgroundColor:e.grey300,color:e.textPrimary,"&:hover":{backgroundColor:e.grey400}}},{props:{variant:"outlinedPrimary"},style:{color:e.primary500,border:"1px solid",borderColor:e.primary500,"&:hover":{backgroundColor:"inherit"}}},{props:{variant:"outLinedDanger"},style:{color:e.danger,border:"1px solid",borderColor:e.danger,"&:hover":{backgroundColor:"inherit"}}},{props:{size:"small"},style:{fontSize:"12px",lineHeight:"normal",borderRadius:"3px",padding:"4px 16px"}}]},MuiAppBar:{styleOverrides:{root:{backgroundColor:e.appBarBgColor,color:e.appBarColor}}},MuiSelect:{defaultProps:{MenuProps:{PaperProps:{sx:{boxShadow:"none",border:1,borderStyle:"solid",borderColor:e.grey300,mt:"5px"}},MenuListProps:{sx:{padding:"5px","& .MuiMenuItem-root":{fontWeight:400,minHeight:0,borderRadius:"5px","&:hover":{backgroundColor:e.grey100},"&.Mui-selected":{backgroundColor:e.primary200}}}}}},styleOverrides:{select:{padding:"9.94px 5px 9.94px 15px"}}},MuiMenuItem:{styleOverrides:{root:{"&.Mui-selected":{backgroundColor:Cg(e.primary200),"&:hover":{backgroundColor:Cg(e.primary200)}}}}},MuiPaginationItem:{defaultProps:{components:{previous:tM,next:nM}},styleOverrides:{root:{"& svg":{width:"10px"},border:"none",fontSize:"14px",lineHeight:"1.5rem",borderRadius:"7px","&.Mui-selected":{backgroundColor:Cg(e.primary300+"1a")},"&.MuiPaginationItem-previousNext":{backgroundColor:e.grey200}}}},MuiChip:{styleOverrides:{root:{borderRadius:"5px",fontSize:"14px","& .MuiChip-label":{lineHeight:"normal"}},avatar:{width:"10px"},colorSuccess:{color:e.success,backgroundColor:e.successLight},colorWarning:{color:e.warning,backgroundColor:e.warningLight},colorError:{color:e.danger,backgroundColor:e.dangerLight},colorSecondary:{color:e.linkPrimary,backgroundColor:e.linkLight}}},MuiTab:{styleOverrides:{root:{flexDirection:"row",alignContent:"center",gap:"8px",textTransform:"capitalize",fontSize:"14px",borderRadius:0,marginRight:0,height:"48px",minWidth:"100px",padding:"12px 16px",fontWeight:"500","& svg":{mb:"0 !important"},minHeight:"auto","& .chart-icon":{fill:e.grey600},"& .detail-icon":{stroke:e.grey600},color:e.grey400,"&.Mui-selected":{color:e.primary400}}}},MuiTabs:{styleOverrides:{indicator:{backgroundColor:e.primary400}}},MuiDrawer:{defaultProps:{},styleOverrides:{root:{"&.MuiDrawer-paper":{overflowY:"unset"},"& .MuiDrawer-paper":{zIndex:9},"&.MuiPaper-root":{border:"none",background:e.grey100,pt:12,zIndex:9}}}},MuiTextField:{defaultProps:{InputProps:{sx:{"& .Mui-disabled":{background:e.grey200}}},InputLabelProps:{shrink:!0}},styleOverrides:{root:{backgroundColor:e.white,"& .MuiOutlinedInput-input":{padding:"0px 16px 0px 12px",fontWeight:400,height:40,fontSize:"14px",border:1,borderRadius:4,"&::placeholder":{color:e.grey600}},"& .MuiFormLabel-asterisk":{color:e.danger}}}},MuiFormGroup:{styleOverrides:{root:{}}},MuiFormHelperText:{defaultProps:{sx:{fontSize:12}},styleOverrides:{}},MuiAutocomplete:{defaultProps:{sx:{"& .MuiPaper-root":{padding:"5px"}}},styleOverrides:{root:{"& .MuiSvgIcon-root":{width:"20px",height:"20px"},"& .MuiAutocomplete-tag":{margin:0},"& .MuiButtonBase-root":{marginRight:"2px !important",height:"max-content",padding:"2px"},"& .MuiOutlinedInput-root":{padding:"7.45px 55px 7.45px 10px !important"},"& svg":{},"& #checkboxes-tags-demo":{padding:"6px 4px"},"& .MuiAutocomplete-endAdornment":{top:"calc(50% - 12px)"}}}},MuiTableHead:{styleOverrides:{root:{"& th":{fontSize:"14px",padding:"8px 16px"}}}},MuiTableBody:{styleOverrides:{root:{"& th,td":{fontSize:"14px",padding:"8px 16px",height:"45px"},"& .MuiTableCell-root":{borderBottom:`1px solid ${e.grey300}`}}}},MuiRadio:{defaultProps:{sx:{"&.MuiButtonBase-root":{padding:"5px"}}},styleOverrides:{root:{"& .MuiSvgIcon-root":{fontSize:16},color:e.grey600,"&.Mui-checked":{color:e.success},"&.Mui-disabled":{color:e.grey600}}}},MuiTooltip:{defaultProps:{placement:"top"},styleOverrides:{tooltip:{fontSize:"10px",backgroundColor:e.grey600,color:e.white,"& .MuiTooltip-arrow":{color:e.grey600}}}}}})};function _0(t,e){const n={...t};return e==null||e.forEach(r=>{r.children&&r.children.forEach(({key:i,color:o})=>{n[i]=o.trim()||ki[i]})}),n}function fT(t){if(!t)return;let e=document.querySelector("link[rel*='icon']");e||(e=document.createElement("link"),e.rel="icon",document.head.appendChild(e)),e.href=t}function rM(t){var c,d,p;const{data:e,isFetching:n}=Dd.useQuery(["customTheme"],()=>t!=null&&t.url?fetch(t.url).then(w=>w.json()).then(w=>(["image","favicon","icon"].forEach(m=>{var T;(T=w==null?void 0:w.theme)!=null&&T[m]&&(w.theme[m]+=`?v=${Date.now()}`)}),w)):void 0,{enabled:!!(t!=null&&t.url)&&(t==null?void 0:t.enabled),refetchOnWindowFocus:!1,cacheTime:0,onSuccess(w){var T,E;fT((T=w==null?void 0:w.theme)==null?void 0:T.favicon);const m=_0(ki,(E=w==null?void 0:w.theme)==null?void 0:E.keyColor);Object.keys(m).forEach(A=>{document.documentElement.style.setProperty(`--${A}`,m[A])}),document.documentElement.style.setProperty("font-family",uT.fontFamily)}}),r=_0(ki,(c=e==null?void 0:e.theme)==null?void 0:c.keyColor),i=cT({colors:r}),o=(d=e==null?void 0:e.theme)==null?void 0:d.image,a=(p=e==null?void 0:e.theme)==null?void 0:p.icon;return{colors:r,theme:i,logo:o,icon:a,isFetching:n,themeDto:e==null?void 0:e.theme}}const dT=X.createContext({}),iM=()=>X.useContext(dT),oM=t=>{var o;const{children:e,brandTheme:n}=t,r=rM(n),i=((o=t.customTheme)==null?void 0:o.call(t,r.colors))||r.theme;return Re.jsx(dT.Provider,{value:r,children:Re.jsx(sa.ThemeProvider,{theme:i,children:e})})},sM=t=>{const e=Dd.useQueryClient(),n=X.useMemo(()=>t.axiosInstance||As,[t.axiosInstance]);window.env||(window.env={}),window.env.AUTHEN_DOMAIN=new URL(t.baseUrl).origin;const r=Dd.useQuery({queryKey:["user"],refetchOnWindowFocus:!1,retry:!1,queryFn:()=>n.get(t.baseUrl+"/user-management/api/v1/users/my-account").then(i=>(window.user=i.data,i.data))});return X.useEffect(()=>{window.onpageshow=function(i){i.persisted&&e.invalidateQueries(["user"])}},[e]),r},aM=t=>{const e=Dd.useQueryClient(),n=X.useMemo(()=>t.axiosInstance||As,[t.axiosInstance]);window.env||(window.env={}),window.env.AUTHEN_DOMAIN=new URL(t.baseUrl).origin;const r=Dd.useQuery({queryKey:["user-permissions"],refetchOnWindowFocus:!1,retry:!1,queryFn:()=>n.get(t.baseUrl+"/user-management/api/v1/users/my-account/permissions").then(i=>i.data)});return X.useEffect(()=>{window.onpageshow=function(i){i.persisted&&e.invalidateQueries(["user-permissions"])}},[e]),r},Nv=X.createContext({}),lM=t=>{const{children:e,baseUrl:n,axiosInstance:r}=t,i=new URL(n).origin,o=sM({axiosInstance:r,baseUrl:n}),a=aM({axiosInstance:r,baseUrl:n});function c(){window.location.href=`${i}/authentication/login`}function d(){window.location.href=`${i}/authentication/logout`}return o!=null&&o.isFetching?Re.jsx(sa.Grid,{container:!0,justifyContent:"center",alignItems:"center",sx:{minHeight:"100vh"},children:Re.jsx(sa.CircularProgress,{})}):Re.jsx(Nv.Provider,{value:{user:o==null?void 0:o.data,login:c,logout:d,isFetching:o.isFetching,permissions:a==null?void 0:a.data},children:e})},uM=()=>X.useContext(Nv);function cM(t,e,n){return n.some(r=>{const i=t[r];return String(i).toLowerCase().includes(e.toLowerCase())})}function fM(t){var e,n;(n=(e=window.top)==null?void 0:e.HostBridge)==null||n.openBackdrop(t)}var hT=[],dM=hT.forEach,hM=hT.slice;function pM(t){return dM.call(hM.call(arguments,1),function(e){if(e)for(var n in e)t[n]===void 0&&(t[n]=e[n])}),t}var R0=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/,gM=function(e,n,r){var i=r||{};i.path=i.path||"/";var o=encodeURIComponent(n),a="".concat(e,"=").concat(o);if(i.maxAge>0){var c=i.maxAge-0;if(Number.isNaN(c))throw new Error("maxAge should be a Number");a+="; Max-Age=".concat(Math.floor(c))}if(i.domain){if(!R0.test(i.domain))throw new TypeError("option domain is invalid");a+="; Domain=".concat(i.domain)}if(i.path){if(!R0.test(i.path))throw new TypeError("option path is invalid");a+="; Path=".concat(i.path)}if(i.expires){if(typeof i.expires.toUTCString!="function")throw new TypeError("option expires is invalid");a+="; Expires=".concat(i.expires.toUTCString())}if(i.httpOnly&&(a+="; HttpOnly"),i.secure&&(a+="; Secure"),i.sameSite){var d=typeof i.sameSite=="string"?i.sameSite.toLowerCase():i.sameSite;switch(d){case!0:a+="; SameSite=Strict";break;case"lax":a+="; SameSite=Lax";break;case"strict":a+="; SameSite=Strict";break;case"none":a+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}}return a},A0={create:function(e,n,r,i){var o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{path:"/",sameSite:"strict"};r&&(o.expires=new Date,o.expires.setTime(o.expires.getTime()+r*60*1e3)),i&&(o.domain=i),document.cookie=gM(e,encodeURIComponent(n),o)},read:function(e){for(var n="".concat(e,"="),r=document.cookie.split(";"),i=0;i<r.length;i++){for(var o=r[i];o.charAt(0)===" ";)o=o.substring(1,o.length);if(o.indexOf(n)===0)return o.substring(n.length,o.length)}return null},remove:function(e){this.create(e,"",-1)}},mM={name:"cookie",lookup:function(e){var n;if(e.lookupCookie&&typeof document<"u"){var r=A0.read(e.lookupCookie);r&&(n=r)}return n},cacheUserLanguage:function(e,n){n.lookupCookie&&typeof document<"u"&&A0.create(n.lookupCookie,e,n.cookieMinutes,n.cookieDomain,n.cookieOptions)}},vM={name:"querystring",lookup:function(e){var n;if(typeof window<"u"){var r=window.location.search;!window.location.search&&window.location.hash&&window.location.hash.indexOf("?")>-1&&(r=window.location.hash.substring(window.location.hash.indexOf("?")));for(var i=r.substring(1),o=i.split("&"),a=0;a<o.length;a++){var c=o[a].indexOf("=");if(c>0){var d=o[a].substring(0,c);d===e.lookupQuerystring&&(n=o[a].substring(c+1))}}}return n}},ed=null,I0=function(){if(ed!==null)return ed;try{ed=window!=="undefined"&&window.localStorage!==null;var e="i18next.translate.boo";window.localStorage.setItem(e,"foo"),window.localStorage.removeItem(e)}catch{ed=!1}return ed},yM={name:"localStorage",lookup:function(e){var n;if(e.lookupLocalStorage&&I0()){var r=window.localStorage.getItem(e.lookupLocalStorage);r&&(n=r)}return n},cacheUserLanguage:function(e,n){n.lookupLocalStorage&&I0()&&window.localStorage.setItem(n.lookupLocalStorage,e)}},td=null,M0=function(){if(td!==null)return td;try{td=window!=="undefined"&&window.sessionStorage!==null;var e="i18next.translate.boo";window.sessionStorage.setItem(e,"foo"),window.sessionStorage.removeItem(e)}catch{td=!1}return td},bM={name:"sessionStorage",lookup:function(e){var n;if(e.lookupSessionStorage&&M0()){var r=window.sessionStorage.getItem(e.lookupSessionStorage);r&&(n=r)}return n},cacheUserLanguage:function(e,n){n.lookupSessionStorage&&M0()&&window.sessionStorage.setItem(n.lookupSessionStorage,e)}},wM={name:"navigator",lookup:function(e){var n=[];if(typeof navigator<"u"){if(navigator.languages)for(var r=0;r<navigator.languages.length;r++)n.push(navigator.languages[r]);navigator.userLanguage&&n.push(navigator.userLanguage),navigator.language&&n.push(navigator.language)}return n.length>0?n:void 0}},xM={name:"htmlTag",lookup:function(e){var n,r=e.htmlTag||(typeof document<"u"?document.documentElement:null);return r&&typeof r.getAttribute=="function"&&(n=r.getAttribute("lang")),n}},SM={name:"path",lookup:function(e){var n;if(typeof window<"u"){var r=window.location.pathname.match(/\/([a-zA-Z-]*)/g);if(r instanceof Array)if(typeof e.lookupFromPathIndex=="number"){if(typeof r[e.lookupFromPathIndex]!="string")return;n=r[e.lookupFromPathIndex].replace("/","")}else n=r[0].replace("/","")}return n}},TM={name:"subdomain",lookup:function(e){var n=typeof e.lookupFromSubdomainIndex=="number"?e.lookupFromSubdomainIndex+1:1,r=typeof window<"u"&&window.location&&window.location.hostname&&window.location.hostname.match(/^(\w{2,5})\.(([a-z0-9-]{1,63}\.[a-z]{2,6})|localhost)/i);if(r)return r[n]}},pT=!1;try{document.cookie,pT=!0}catch{}var gT=["querystring","cookie","localStorage","sessionStorage","navigator","htmlTag"];pT||gT.splice(1,1);function CM(){return{order:gT,lookupQuerystring:"lng",lookupCookie:"i18next",lookupLocalStorage:"i18nextLng",lookupSessionStorage:"i18nextLng",caches:["localStorage"],excludeCacheFor:["cimode"],convertDetectedLanguage:function(e){return e}}}var mT=function(){function t(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};ts(this,t),this.type="languageDetector",this.detectors={},this.init(e,n)}return ns(t,[{key:"init",value:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};this.services=n||{languageUtils:{}},this.options=pM(r,this.options||{},CM()),typeof this.options.convertDetectedLanguage=="string"&&this.options.convertDetectedLanguage.indexOf("15897")>-1&&(this.options.convertDetectedLanguage=function(o){return o.replace("-","_")}),this.options.lookupFromUrlIndex&&(this.options.lookupFromPathIndex=this.options.lookupFromUrlIndex),this.i18nOptions=i,this.addDetector(mM),this.addDetector(vM),this.addDetector(yM),this.addDetector(bM),this.addDetector(wM),this.addDetector(xM),this.addDetector(SM),this.addDetector(TM)}},{key:"addDetector",value:function(n){return this.detectors[n.name]=n,this}},{key:"detect",value:function(n){var r=this;n||(n=this.options.order);var i=[];return n.forEach(function(o){if(r.detectors[o]){var a=r.detectors[o].lookup(r.options);a&&typeof a=="string"&&(a=[a]),a&&(i=i.concat(a))}}),i=i.map(function(o){return r.options.convertDetectedLanguage(o)}),this.services.languageUtils.getBestMatchFromCodes?i:i.length>0?i[0]:null}},{key:"cacheUserLanguage",value:function(n,r){var i=this;r||(r=this.options.caches),r&&(this.options.excludeCacheFor&&this.options.excludeCacheFor.indexOf(n)>-1||r.forEach(function(o){i.detectors[o]&&i.detectors[o].cacheUserLanguage(n,i.options)}))}}])}();mT.type="languageDetector";function jv(t,e){if(t==null)return{};var n={};for(var r in t)if({}.hasOwnProperty.call(t,r)){if(e.indexOf(r)!==-1)continue;n[r]=t[r]}return n}const EM=Object.freeze(Object.defineProperty({__proto__:null,default:jv},Symbol.toStringTag,{value:"Module"}));var Ei=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Oc(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function kM(t){if(t.__esModule)return t;var e=t.default;if(typeof e=="function"){var n=function r(){return this instanceof r?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};n.prototype=e.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(t).forEach(function(r){var i=Object.getOwnPropertyDescriptor(t,r);Object.defineProperty(n,r,i.get?i:{enumerable:!0,get:function(){return t[r]}})}),n}function DM(){if(console&&console.warn){for(var t,e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];typeof n[0]=="string"&&(n[0]="react-i18next:: ".concat(n[0])),(t=console).warn.apply(t,n)}}var L0={};function Om(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];typeof e[0]=="string"&&L0[e[0]]||(typeof e[0]=="string"&&(L0[e[0]]=new Date),DM.apply(void 0,e))}var vT=function(e,n){return function(){if(e.isInitialized)n();else{var r=function i(){setTimeout(function(){e.off("initialized",i)},0),n()};e.on("initialized",r)}}};function F0(t,e,n){t.loadNamespaces(e,vT(t,n))}function N0(t,e,n,r){typeof n=="string"&&(n=[n]),n.forEach(function(i){t.options.ns.indexOf(i)<0&&t.options.ns.push(i)}),t.loadLanguages(e,vT(t,r))}function PM(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=e.languages[0],i=e.options?e.options.fallbackLng:!1,o=e.languages[e.languages.length-1];if(r.toLowerCase()==="cimode")return!0;var a=function(d,p){var w=e.services.backendConnector.state["".concat(d,"|").concat(p)];return w===-1||w===2};return n.bindI18n&&n.bindI18n.indexOf("languageChanging")>-1&&e.services.backendConnector.backend&&e.isLanguageChangingTo&&!a(e.isLanguageChangingTo,t)?!1:!!(e.hasResourceBundle(r,t)||!e.services.backendConnector.backend||e.options.resources&&!e.options.partialBundledLanguages||a(r,t)&&(!i||a(o,t)))}function OM(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(!e.languages||!e.languages.length)return Om("i18n.languages were undefined or empty",e.languages),!0;var r=e.options.ignoreJSONStructure!==void 0;return r?e.hasLoadedNamespace(t,{lng:n.lng,precheck:function(o,a){if(n.bindI18n&&n.bindI18n.indexOf("languageChanging")>-1&&o.services.backendConnector.backend&&o.isLanguageChangingTo&&!a(o.isLanguageChangingTo,t))return!1}}):PM(t,e,n)}var _M=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,RM={"&amp;":"&","&#38;":"&","&lt;":"<","&#60;":"<","&gt;":">","&#62;":">","&apos;":"'","&#39;":"'","&quot;":'"',"&#34;":'"',"&nbsp;":" ","&#160;":" ","&copy;":"©","&#169;":"©","&reg;":"®","&#174;":"®","&hellip;":"…","&#8230;":"…","&#x2F;":"/","&#47;":"/"},AM=function(e){return RM[e]},IM=function(e){return e.replace(_M,AM)};function j0(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function B0(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?j0(Object(n),!0).forEach(function(r){Ha(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):j0(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}var _m={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:IM};function MM(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};_m=B0(B0({},_m),t)}function LM(){return _m}var yT;function FM(t){yT=t}function NM(){return yT}var jM={type:"3rdParty",init:function(e){MM(e.options.react),FM(e)}},bT=X.createContext(),BM=function(){function t(){ts(this,t),this.usedNamespaces={}}return ns(t,[{key:"addUsedNamespaces",value:function(n){var r=this;n.forEach(function(i){r.usedNamespaces[i]||(r.usedNamespaces[i]=!0)})}},{key:"getUsedNamespaces",value:function(){return Object.keys(this.usedNamespaces)}}]),t}();function $M(t,e){var n=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var r,i,o,a,c=[],d=!0,p=!1;try{if(o=(n=n.call(t)).next,e!==0)for(;!(d=(r=o.call(n)).done)&&(c.push(r.value),c.length!==e);d=!0);}catch(w){p=!0,i=w}finally{try{if(!d&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(p)throw i}}return c}}function VM(t,e){return K1(t)||$M(t,e)||Z1(t,e)||J1()}function $0(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function Eg(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?$0(Object(n),!0).forEach(function(r){Ha(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):$0(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}var HM=function(e,n){var r=X.useRef();return X.useEffect(function(){r.current=e},[e,n]),r.current};function wT(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=e.i18n,r=X.useContext(bT)||{},i=r.i18n,o=r.defaultNS,a=n||i||NM();if(a&&!a.reportNamespaces&&(a.reportNamespaces=new BM),!a){Om("You will need to pass in an i18next instance by using initReactI18next");var c=function(ae,Ue){return typeof Ue=="string"?Ue:Ue&&Jo(Ue)==="object"&&typeof Ue.defaultValue=="string"?Ue.defaultValue:Array.isArray(ae)?ae[ae.length-1]:ae},d=[c,{},!1];return d.t=c,d.i18n={},d.ready=!1,d}a.options.react&&a.options.react.wait!==void 0&&Om("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");var p=Eg(Eg(Eg({},LM()),a.options.react),e),w=p.useSuspense,m=p.keyPrefix,T=t||o||a.options&&a.options.defaultNS;T=typeof T=="string"?[T]:T||["translation"],a.reportNamespaces.addUsedNamespaces&&a.reportNamespaces.addUsedNamespaces(T);var E=(a.isInitialized||a.initializedStoreOnce)&&T.every(function(ue){return OM(ue,a,p)});function A(){return a.getFixedT(e.lng||null,p.nsMode==="fallback"?T:T[0],m)}var I=X.useState(A),j=VM(I,2),_=j[0],U=j[1],G=T.join();e.lng&&(G="".concat(e.lng).concat(G));var re=HM(G),q=X.useRef(!0);X.useEffect(function(){var ue=p.bindI18n,ae=p.bindI18nStore;q.current=!0,!E&&!w&&(e.lng?N0(a,e.lng,T,function(){q.current&&U(A)}):F0(a,T,function(){q.current&&U(A)})),E&&re&&re!==G&&q.current&&U(A);function Ue(){q.current&&U(A)}return ue&&a&&a.on(ue,Ue),ae&&a&&a.store.on(ae,Ue),function(){q.current=!1,ue&&a&&ue.split(" ").forEach(function(nt){return a.off(nt,Ue)}),ae&&a&&ae.split(" ").forEach(function(nt){return a.store.off(nt,Ue)})}},[a,G]);var se=X.useRef(!0);X.useEffect(function(){q.current&&!se.current&&U(A),se.current=!1},[a,m]);var S=[_,a,E];if(S.t=_,S.i18n=a,S.ready=E,E||!E&&!w)return S;throw new Promise(function(ue){e.lng?N0(a,e.lng,T,function(){return ue()}):F0(a,T,function(){return ue()})})}function UM(t){var e=t.i18n,n=t.defaultNS,r=t.children,i=X.useMemo(function(){return{i18n:e,defaultNS:n}},[e,n]);return X.createElement(bT.Provider,{value:i},r)}var xT=[],WM=xT.forEach,zM=xT.slice;function YM(t){return WM.call(zM.call(arguments,1),function(e){if(e)for(var n in e)t[n]===void 0&&(t[n]=e[n])}),t}function GM(t){return t?typeof t=="function"?new t:t:null}function qM(){return{handleEmptyResourcesAsFailed:!0,cacheHitMode:"none"}}function V0(t,e,n,r){var i=t.read.bind(t);if(i.length===2){try{var o=i(e,n);o&&typeof o.then=="function"?o.then(function(a){return r(null,a)}).catch(r):r(null,o)}catch(a){r(a)}return}i(e,n,r)}var ST=function(){function t(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};ts(this,t),this.backends=[],this.type="backend",this.allOptions=r,this.init(e,n)}return ns(t,[{key:"init",value:function(n){var r=this,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};this.services=n,this.options=YM(i,this.options||{},qM()),this.allOptions=o,this.options.backends&&this.options.backends.forEach(function(a,c){r.backends[c]=r.backends[c]||GM(a),r.backends[c].init(n,r.options.backendOptions&&r.options.backendOptions[c]||{},o)}),this.services&&this.options.reloadInterval&&setInterval(function(){return r.reload()},this.options.reloadInterval)}},{key:"read",value:function(n,r,i){var o=this,a=this.backends.length,c=function p(w){if(w>=a)return i(new Error("non of the backend loaded data",!0));var m=w===a-1,T=o.options.handleEmptyResourcesAsFailed&&!m?0:-1,E=o.backends[w];E.read?V0(E,n,r,function(A,I,j){if(!A&&I&&Object.keys(I).length>T){if(i(null,I,w),d(w-1,I),E.save&&o.options.cacheHitMode&&["refresh","refreshAndUpdateStore"].indexOf(o.options.cacheHitMode)>-1){if(j&&o.options.refreshExpirationTime&&j+o.options.refreshExpirationTime>Date.now())return;var _=o.backends[w+1];_&&_.read&&V0(_,n,r,function(U,G){U||G&&(Object.keys(G).length<=T||(d(w,G),o.options.cacheHitMode==="refreshAndUpdateStore"&&o.services&&o.services.resourceStore&&o.services.resourceStore.addResourceBundle(n,r,G)))})}}else p(w+1)}):p(w+1)},d=function p(w,m){if(!(w<0)){var T=o.backends[w];T.save&&T.save(n,r,m),p(w-1,m)}};c(0)}},{key:"create",value:function(n,r,i,o){var a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:function(){},c=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{};this.backends.forEach(function(d){if(d.create){var p=d.create.bind(d);if(p.length<6){try{var w;p.length===5?w=p(n,r,i,o,c):w=p(n,r,i,o),w&&typeof w.then=="function"?w.then(function(m){return a(null,m)}).catch(a):a(null,w)}catch(m){a(m)}return}p(n,r,i,o,a,c)}})}},{key:"reload",value:function(){var n=this,r=this.services,i=r.backendConnector,o=r.languageUtils,a=r.logger,c=i.language;if(!(c&&c.toLowerCase()==="cimode")){var d=[],p=function(m){var T=o.toResolveHierarchy(m);T.forEach(function(E){d.indexOf(E)<0&&d.push(E)})};p(c),this.allOptions.preload&&this.allOptions.preload.forEach(function(w){return p(w)}),d.forEach(function(w){n.allOptions.ns.forEach(function(m){i.read(w,m,"read",null,null,function(T,E){T&&a.warn("loading namespace ".concat(m," for language ").concat(w," failed"),T),!T&&E&&a.log("loaded namespace ".concat(m," for language ").concat(w),E),i.loaded("".concat(w,"|").concat(m),T,E)})})})}}}]),t}();ST.type="backend";function Rm(t){"@babel/helpers - typeof";return Rm=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Rm(t)}function TT(){return typeof XMLHttpRequest=="function"||(typeof XMLHttpRequest>"u"?"undefined":Rm(XMLHttpRequest))==="object"}function XM(t){return!!t&&typeof t.then=="function"}function KM(t){return XM(t)?t:Promise.resolve(t)}function ZM(t){throw new Error('Could not dynamically require "'+t+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var Am={exports:{}},ph={exports:{}},H0;function JM(){return H0||(H0=1,function(t,e){var n=typeof globalThis<"u"&&globalThis||typeof self<"u"&&self||typeof Ei<"u"&&Ei,r=function(){function o(){this.fetch=!1,this.DOMException=n.DOMException}return o.prototype=n,new o}();(function(o){(function(a){var c=typeof o<"u"&&o||typeof self<"u"&&self||typeof c<"u"&&c,d={searchParams:"URLSearchParams"in c,iterable:"Symbol"in c&&"iterator"in Symbol,blob:"FileReader"in c&&"Blob"in c&&function(){try{return new Blob,!0}catch{return!1}}(),formData:"FormData"in c,arrayBuffer:"ArrayBuffer"in c};function p(fe){return fe&&DataView.prototype.isPrototypeOf(fe)}if(d.arrayBuffer)var w=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],m=ArrayBuffer.isView||function(fe){return fe&&w.indexOf(Object.prototype.toString.call(fe))>-1};function T(fe){if(typeof fe!="string"&&(fe=String(fe)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(fe)||fe==="")throw new TypeError('Invalid character in header field name: "'+fe+'"');return fe.toLowerCase()}function E(fe){return typeof fe!="string"&&(fe=String(fe)),fe}function A(fe){var me={next:function(){var Pe=fe.shift();return{done:Pe===void 0,value:Pe}}};return d.iterable&&(me[Symbol.iterator]=function(){return me}),me}function I(fe){this.map={},fe instanceof I?fe.forEach(function(me,Pe){this.append(Pe,me)},this):Array.isArray(fe)?fe.forEach(function(me){this.append(me[0],me[1])},this):fe&&Object.getOwnPropertyNames(fe).forEach(function(me){this.append(me,fe[me])},this)}I.prototype.append=function(fe,me){fe=T(fe),me=E(me);var Pe=this.map[fe];this.map[fe]=Pe?Pe+", "+me:me},I.prototype.delete=function(fe){delete this.map[T(fe)]},I.prototype.get=function(fe){return fe=T(fe),this.has(fe)?this.map[fe]:null},I.prototype.has=function(fe){return this.map.hasOwnProperty(T(fe))},I.prototype.set=function(fe,me){this.map[T(fe)]=E(me)},I.prototype.forEach=function(fe,me){for(var Pe in this.map)this.map.hasOwnProperty(Pe)&&fe.call(me,this.map[Pe],Pe,this)},I.prototype.keys=function(){var fe=[];return this.forEach(function(me,Pe){fe.push(Pe)}),A(fe)},I.prototype.values=function(){var fe=[];return this.forEach(function(me){fe.push(me)}),A(fe)},I.prototype.entries=function(){var fe=[];return this.forEach(function(me,Pe){fe.push([Pe,me])}),A(fe)},d.iterable&&(I.prototype[Symbol.iterator]=I.prototype.entries);function j(fe){if(fe.bodyUsed)return Promise.reject(new TypeError("Already read"));fe.bodyUsed=!0}function _(fe){return new Promise(function(me,Pe){fe.onload=function(){me(fe.result)},fe.onerror=function(){Pe(fe.error)}})}function U(fe){var me=new FileReader,Pe=_(me);return me.readAsArrayBuffer(fe),Pe}function G(fe){var me=new FileReader,Pe=_(me);return me.readAsText(fe),Pe}function re(fe){for(var me=new Uint8Array(fe),Pe=new Array(me.length),Be=0;Be<me.length;Be++)Pe[Be]=String.fromCharCode(me[Be]);return Pe.join("")}function q(fe){if(fe.slice)return fe.slice(0);var me=new Uint8Array(fe.byteLength);return me.set(new Uint8Array(fe)),me.buffer}function se(){return this.bodyUsed=!1,this._initBody=function(fe){this.bodyUsed=this.bodyUsed,this._bodyInit=fe,fe?typeof fe=="string"?this._bodyText=fe:d.blob&&Blob.prototype.isPrototypeOf(fe)?this._bodyBlob=fe:d.formData&&FormData.prototype.isPrototypeOf(fe)?this._bodyFormData=fe:d.searchParams&&URLSearchParams.prototype.isPrototypeOf(fe)?this._bodyText=fe.toString():d.arrayBuffer&&d.blob&&p(fe)?(this._bodyArrayBuffer=q(fe.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):d.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(fe)||m(fe))?this._bodyArrayBuffer=q(fe):this._bodyText=fe=Object.prototype.toString.call(fe):this._bodyText="",this.headers.get("content-type")||(typeof fe=="string"?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):d.searchParams&&URLSearchParams.prototype.isPrototypeOf(fe)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},d.blob&&(this.blob=function(){var fe=j(this);if(fe)return fe;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){if(this._bodyArrayBuffer){var fe=j(this);return fe||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer))}else return this.blob().then(U)}),this.text=function(){var fe=j(this);if(fe)return fe;if(this._bodyBlob)return G(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(re(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},d.formData&&(this.formData=function(){return this.text().then(Ue)}),this.json=function(){return this.text().then(JSON.parse)},this}var S=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function ue(fe){var me=fe.toUpperCase();return S.indexOf(me)>-1?me:fe}function ae(fe,me){if(!(this instanceof ae))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');me=me||{};var Pe=me.body;if(fe instanceof ae){if(fe.bodyUsed)throw new TypeError("Already read");this.url=fe.url,this.credentials=fe.credentials,me.headers||(this.headers=new I(fe.headers)),this.method=fe.method,this.mode=fe.mode,this.signal=fe.signal,!Pe&&fe._bodyInit!=null&&(Pe=fe._bodyInit,fe.bodyUsed=!0)}else this.url=String(fe);if(this.credentials=me.credentials||this.credentials||"same-origin",(me.headers||!this.headers)&&(this.headers=new I(me.headers)),this.method=ue(me.method||this.method||"GET"),this.mode=me.mode||this.mode||null,this.signal=me.signal||this.signal,this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&Pe)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(Pe),(this.method==="GET"||this.method==="HEAD")&&(me.cache==="no-store"||me.cache==="no-cache")){var Be=/([?&])_=[^&]*/;if(Be.test(this.url))this.url=this.url.replace(Be,"$1_="+new Date().getTime());else{var Ze=/\?/;this.url+=(Ze.test(this.url)?"&":"?")+"_="+new Date().getTime()}}}ae.prototype.clone=function(){return new ae(this,{body:this._bodyInit})};function Ue(fe){var me=new FormData;return fe.trim().split("&").forEach(function(Pe){if(Pe){var Be=Pe.split("="),Ze=Be.shift().replace(/\+/g," "),ve=Be.join("=").replace(/\+/g," ");me.append(decodeURIComponent(Ze),decodeURIComponent(ve))}}),me}function nt(fe){var me=new I,Pe=fe.replace(/\r?\n[\t ]+/g," ");return Pe.split("\r").map(function(Be){return Be.indexOf(`
3
- `)===0?Be.substr(1,Be.length):Be}).forEach(function(Be){var Ze=Be.split(":"),ve=Ze.shift().trim();if(ve){var Se=Ze.join(":").trim();me.append(ve,Se)}}),me}se.call(ae.prototype);function et(fe,me){if(!(this instanceof et))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');me||(me={}),this.type="default",this.status=me.status===void 0?200:me.status,this.ok=this.status>=200&&this.status<300,this.statusText=me.statusText===void 0?"":""+me.statusText,this.headers=new I(me.headers),this.url=me.url||"",this._initBody(fe)}se.call(et.prototype),et.prototype.clone=function(){return new et(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new I(this.headers),url:this.url})},et.error=function(){var fe=new et(null,{status:0,statusText:""});return fe.type="error",fe};var De=[301,302,303,307,308];et.redirect=function(fe,me){if(De.indexOf(me)===-1)throw new RangeError("Invalid status code");return new et(null,{status:me,headers:{location:fe}})},a.DOMException=c.DOMException;try{new a.DOMException}catch{a.DOMException=function(me,Pe){this.message=me,this.name=Pe;var Be=Error(me);this.stack=Be.stack},a.DOMException.prototype=Object.create(Error.prototype),a.DOMException.prototype.constructor=a.DOMException}function Me(fe,me){return new Promise(function(Pe,Be){var Ze=new ae(fe,me);if(Ze.signal&&Ze.signal.aborted)return Be(new a.DOMException("Aborted","AbortError"));var ve=new XMLHttpRequest;function Se(){ve.abort()}ve.onload=function(){var Qe={status:ve.status,statusText:ve.statusText,headers:nt(ve.getAllResponseHeaders()||"")};Qe.url="responseURL"in ve?ve.responseURL:Qe.headers.get("X-Request-URL");var Ye="response"in ve?ve.response:ve.responseText;setTimeout(function(){Pe(new et(Ye,Qe))},0)},ve.onerror=function(){setTimeout(function(){Be(new TypeError("Network request failed"))},0)},ve.ontimeout=function(){setTimeout(function(){Be(new TypeError("Network request failed"))},0)},ve.onabort=function(){setTimeout(function(){Be(new a.DOMException("Aborted","AbortError"))},0)};function je(Qe){try{return Qe===""&&c.location.href?c.location.href:Qe}catch{return Qe}}ve.open(Ze.method,je(Ze.url),!0),Ze.credentials==="include"?ve.withCredentials=!0:Ze.credentials==="omit"&&(ve.withCredentials=!1),"responseType"in ve&&(d.blob?ve.responseType="blob":d.arrayBuffer&&Ze.headers.get("Content-Type")&&Ze.headers.get("Content-Type").indexOf("application/octet-stream")!==-1&&(ve.responseType="arraybuffer")),me&&typeof me.headers=="object"&&!(me.headers instanceof I)?Object.getOwnPropertyNames(me.headers).forEach(function(Qe){ve.setRequestHeader(Qe,E(me.headers[Qe]))}):Ze.headers.forEach(function(Qe,Ye){ve.setRequestHeader(Ye,Qe)}),Ze.signal&&(Ze.signal.addEventListener("abort",Se),ve.onreadystatechange=function(){ve.readyState===4&&Ze.signal.removeEventListener("abort",Se)}),ve.send(typeof Ze._bodyInit>"u"?null:Ze._bodyInit)})}return Me.polyfill=!0,c.fetch||(c.fetch=Me,c.Headers=I,c.Request=ae,c.Response=et),a.Headers=I,a.Request=ae,a.Response=et,a.fetch=Me,a})({})})(r),r.fetch.ponyfill=!0,delete r.fetch.polyfill;var i=n.fetch?n:r;e=i.fetch,e.default=i.fetch,e.fetch=i.fetch,e.Headers=i.Headers,e.Request=i.Request,e.Response=i.Response,t.exports=e}(ph,ph.exports)),ph.exports}(function(t,e){var n=typeof fetch=="function"?fetch:void 0;if(typeof Ei<"u"&&Ei.fetch?n=Ei.fetch:typeof window<"u"&&window.fetch&&(n=window.fetch),typeof ZM<"u"&&typeof window>"u"){var r=n||JM();r.default&&(r=r.default),e.default=r,t.exports=e.default}})(Am,Am.exports);var CT=Am.exports;const ET=Oc(CT),U0=dI({__proto__:null,default:ET},[CT]);function W0(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function z0(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?W0(Object(n),!0).forEach(function(r){QM(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):W0(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function QM(t,e,n){return(e=eL(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function eL(t){var e=tL(t,"string");return Tc(e)=="symbol"?e:e+""}function tL(t,e){if(Tc(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(Tc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function Tc(t){"@babel/helpers - typeof";return Tc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Tc(t)}var mu=typeof fetch=="function"?fetch:void 0;typeof global<"u"&&global.fetch?mu=global.fetch:typeof window<"u"&&window.fetch&&(mu=window.fetch);var Pd;TT()&&(typeof global<"u"&&global.XMLHttpRequest?Pd=global.XMLHttpRequest:typeof window<"u"&&window.XMLHttpRequest&&(Pd=window.XMLHttpRequest));var ep;typeof ActiveXObject=="function"&&(typeof global<"u"&&global.ActiveXObject?ep=global.ActiveXObject:typeof window<"u"&&window.ActiveXObject&&(ep=window.ActiveXObject));!mu&&U0&&!Pd&&!ep&&(mu=ET||U0);typeof mu!="function"&&(mu=void 0);var Im=function(e,n){if(n&&Tc(n)==="object"){var r="";for(var i in n)r+="&"+encodeURIComponent(i)+"="+encodeURIComponent(n[i]);if(!r)return e;e=e+(e.indexOf("?")!==-1?"&":"?")+r.slice(1)}return e},Y0=function(e,n,r,i){var o=function(d){if(!d.ok)return r(d.statusText||"Error",{status:d.status});d.text().then(function(p){r(null,{status:d.status,data:p})}).catch(r)};if(i){var a=i(e,n);if(a instanceof Promise){a.then(o).catch(r);return}}typeof fetch=="function"?fetch(e,n).then(o).catch(r):mu(e,n).then(o).catch(r)},G0=!1,nL=function(e,n,r,i){e.queryStringParams&&(n=Im(n,e.queryStringParams));var o=z0({},typeof e.customHeaders=="function"?e.customHeaders():e.customHeaders);typeof window>"u"&&typeof global<"u"&&typeof global.process<"u"&&global.process.versions&&global.process.versions.node&&(o["User-Agent"]="i18next-http-backend (node/".concat(global.process.version,"; ").concat(global.process.platform," ").concat(global.process.arch,")")),r&&(o["Content-Type"]="application/json");var a=typeof e.requestOptions=="function"?e.requestOptions(r):e.requestOptions,c=z0({method:r?"POST":"GET",body:r?e.stringify(r):void 0,headers:o},G0?{}:a),d=typeof e.alternateFetch=="function"&&e.alternateFetch.length>=1?e.alternateFetch:void 0;try{Y0(n,c,i,d)}catch(p){if(!a||Object.keys(a).length===0||!p.message||p.message.indexOf("not implemented")<0)return i(p);try{Object.keys(a).forEach(function(w){delete c[w]}),Y0(n,c,i,d),G0=!0}catch(w){i(w)}}},rL=function(e,n,r,i){r&&Tc(r)==="object"&&(r=Im("",r).slice(1)),e.queryStringParams&&(n=Im(n,e.queryStringParams));try{var o;Pd?o=new Pd:o=new ep("MSXML2.XMLHTTP.3.0"),o.open(r?"POST":"GET",n,1),e.crossDomain||o.setRequestHeader("X-Requested-With","XMLHttpRequest"),o.withCredentials=!!e.withCredentials,r&&o.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),o.overrideMimeType&&o.overrideMimeType("application/json");var a=e.customHeaders;if(a=typeof a=="function"?a():a,a)for(var c in a)o.setRequestHeader(c,a[c]);o.onreadystatechange=function(){o.readyState>3&&i(o.status>=400?o.statusText:null,{status:o.status,data:o.responseText})},o.send(r)}catch(d){console&&console.log(d)}},iL=function(e,n,r,i){if(typeof r=="function"&&(i=r,r=void 0),i=i||function(){},mu&&n.indexOf("file:")!==0)return nL(e,n,r,i);if(TT()||typeof ActiveXObject=="function")return rL(e,n,r,i);i(new Error("No fetch and no xhr implementation found!"))};function Ef(t){"@babel/helpers - typeof";return Ef=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ef(t)}function q0(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function kg(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?q0(Object(n),!0).forEach(function(r){kT(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):q0(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function oL(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function sL(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,DT(r.key),r)}}function aL(t,e,n){return e&&sL(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function kT(t,e,n){return(e=DT(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function DT(t){var e=lL(t,"string");return Ef(e)=="symbol"?e:e+""}function lL(t,e){if(Ef(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(Ef(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}var uL=function(){return{loadPath:"/locales/{{lng}}/{{ns}}.json",addPath:"/locales/add/{{lng}}/{{ns}}",parse:function(n){return JSON.parse(n)},stringify:JSON.stringify,parsePayload:function(n,r,i){return kT({},r,i||"")},parseLoadPayload:function(n,r){},request:iL,reloadInterval:typeof window<"u"?!1:60*60*1e3,customHeaders:{},queryStringParams:{},crossDomain:!1,withCredentials:!1,overrideMimeType:!1,requestOptions:{mode:"cors",credentials:"same-origin",cache:"default"}}},PT=function(){function t(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};oL(this,t),this.services=e,this.options=n,this.allOptions=r,this.type="backend",this.init(e,n,r)}return aL(t,[{key:"init",value:function(n){var r=this,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(this.services=n,this.options=kg(kg(kg({},uL()),this.options||{}),i),this.allOptions=o,this.services&&this.options.reloadInterval){var a=setInterval(function(){return r.reload()},this.options.reloadInterval);Ef(a)==="object"&&typeof a.unref=="function"&&a.unref()}}},{key:"readMulti",value:function(n,r,i){this._readAny(n,n,r,r,i)}},{key:"read",value:function(n,r,i){this._readAny([n],n,[r],r,i)}},{key:"_readAny",value:function(n,r,i,o,a){var c=this,d=this.options.loadPath;typeof this.options.loadPath=="function"&&(d=this.options.loadPath(n,i)),d=KM(d),d.then(function(p){if(!p)return a(null,{});var w=c.services.interpolator.interpolate(p,{lng:n.join("+"),ns:i.join("+")});c.loadUrl(w,a,r,o)})}},{key:"loadUrl",value:function(n,r,i,o){var a=this,c=typeof i=="string"?[i]:i,d=typeof o=="string"?[o]:o,p=this.options.parseLoadPayload(c,d);this.options.request(this.options,n,p,function(w,m){if(m&&(m.status>=500&&m.status<600||!m.status))return r("failed loading "+n+"; status code: "+m.status,!0);if(m&&m.status>=400&&m.status<500)return r("failed loading "+n+"; status code: "+m.status,!1);if(!m&&w&&w.message){var T=w.message.toLowerCase(),E=["failed","fetch","network","load"].find(function(j){return T.indexOf(j)>-1});if(E)return r("failed loading "+n+": "+w.message,!0)}if(w)return r(w,!1);var A,I;try{typeof m.data=="string"?A=a.options.parse(m.data,i,o):A=m.data}catch{I="failed parsing "+n+" to json"}if(I)return r(I,!1);r(null,A)})}},{key:"create",value:function(n,r,i,o,a){var c=this;if(this.options.addPath){typeof n=="string"&&(n=[n]);var d=this.options.parsePayload(r,i,o),p=0,w=[],m=[];n.forEach(function(T){var E=c.options.addPath;typeof c.options.addPath=="function"&&(E=c.options.addPath(T,r));var A=c.services.interpolator.interpolate(E,{lng:T,ns:r});c.options.request(c.options,A,d,function(I,j){p+=1,w.push(I),m.push(j),p===n.length&&typeof a=="function"&&a(w,m)})})}}},{key:"reload",value:function(){var n=this,r=this.services,i=r.backendConnector,o=r.languageUtils,a=r.logger,c=i.language;if(!(c&&c.toLowerCase()==="cimode")){var d=[],p=function(m){var T=o.toResolveHierarchy(m);T.forEach(function(E){d.indexOf(E)<0&&d.push(E)})};p(c),this.allOptions.preload&&this.allOptions.preload.forEach(function(w){return p(w)}),d.forEach(function(w){n.allOptions.ns.forEach(function(m){i.read(w,m,"read",null,null,function(T,E){T&&a.warn("loading namespace ".concat(m," for language ").concat(w," failed"),T),!T&&E&&a.log("loaded namespace ".concat(m," for language ").concat(w),E),i.loaded("".concat(w,"|").concat(m),T,E)})})})}}}])}();PT.type="backend";var Bv=(t=>(t.en="en",t.de="de",t))(Bv||{});const cL={en:"English",de:"German"};ii.use(ST).use(jM).use(mT).init({initImmediate:!0,ns:["translation"],fallbackLng:Object.keys(cL),fallbackNS:"translation",partialBundledLanguages:!0,resources:{},interpolation:{escapeValue:!1},backend:{backends:[PT],backendOptions:[{loadPath:()=>{var e,n,r;if((e=window==null?void 0:window.env)!=null&&e.TRANSLATION_URL)return`${window.env.TRANSLATION_URL}/{{lng}}`;const t=((n=window==null?void 0:window.env)==null?void 0:n.VITE_BASE_URL)||((r=window==null?void 0:window.env)==null?void 0:r.REACT_APP_BASE_URL)||location.protocol+"//"+location.host;return console.log("url",t),`${t}/translations/{{lng}}`},crossDomain:!0,cacheHitMode:"refresh"}]}});function fL(){const[t,e]=X.useState();return X.useEffect(()=>{const n=localStorage.getItem("language");e(n||Bv.en)},[]),{language:t,setLanguage:e}}const OT=X.createContext({}),dL=()=>X.useContext(OT),hL=ii,pL=tT,gL=()=>wT(),mL=({children:t})=>{const e=fL();return Re.jsx(OT.Provider,{value:e,children:Re.jsx(UM,{i18n:ii,children:t})})},vL="*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]{display:none}";function $v({children:t,styles:e=[],...n}){return Re.jsxs("div",{...n,children:[[vL,...e].map((r,i)=>Re.jsx("style",{type:"text/css",children:r},i)),t]})}function yL(t){var e=typeof t;return t!=null&&(e=="object"||e=="function")}var Vv=yL,bL=typeof Ei=="object"&&Ei&&Ei.Object===Object&&Ei,wL=bL,xL=wL,SL=typeof self=="object"&&self&&self.Object===Object&&self,TL=xL||SL||Function("return this")(),_T=TL,CL=_T,EL=function(){return CL.Date.now()},kL=EL,DL=/\s/;function PL(t){for(var e=t.length;e--&&DL.test(t.charAt(e)););return e}var OL=PL,_L=OL,RL=/^\s+/;function AL(t){return t&&t.slice(0,_L(t)+1).replace(RL,"")}var IL=AL,ML=_T,LL=ML.Symbol,RT=LL,X0=RT,AT=Object.prototype,FL=AT.hasOwnProperty,NL=AT.toString,nd=X0?X0.toStringTag:void 0;function jL(t){var e=FL.call(t,nd),n=t[nd];try{t[nd]=void 0;var r=!0}catch{}var i=NL.call(t);return r&&(e?t[nd]=n:delete t[nd]),i}var BL=jL,$L=Object.prototype,VL=$L.toString;function HL(t){return VL.call(t)}var UL=HL,K0=RT,WL=BL,zL=UL,YL="[object Null]",GL="[object Undefined]",Z0=K0?K0.toStringTag:void 0;function qL(t){return t==null?t===void 0?GL:YL:Z0&&Z0 in Object(t)?WL(t):zL(t)}var XL=qL;function KL(t){return t!=null&&typeof t=="object"}var ZL=KL,JL=XL,QL=ZL,e2="[object Symbol]";function t2(t){return typeof t=="symbol"||QL(t)&&JL(t)==e2}var n2=t2,r2=IL,J0=Vv,i2=n2,Q0=NaN,o2=/^[-+]0x[0-9a-f]+$/i,s2=/^0b[01]+$/i,a2=/^0o[0-7]+$/i,l2=parseInt;function u2(t){if(typeof t=="number")return t;if(i2(t))return Q0;if(J0(t)){var e=typeof t.valueOf=="function"?t.valueOf():t;t=J0(e)?e+"":e}if(typeof t!="string")return t===0?t:+t;t=r2(t);var n=s2.test(t);return n||a2.test(t)?l2(t.slice(2),n?2:8):o2.test(t)?Q0:+t}var c2=u2,f2=Vv,Dg=kL,ew=c2,d2="Expected a function",h2=Math.max,p2=Math.min;function g2(t,e,n){var r,i,o,a,c,d,p=0,w=!1,m=!1,T=!0;if(typeof t!="function")throw new TypeError(d2);e=ew(e)||0,f2(n)&&(w=!!n.leading,m="maxWait"in n,o=m?h2(ew(n.maxWait)||0,e):o,T="trailing"in n?!!n.trailing:T);function E(se){var S=r,ue=i;return r=i=void 0,p=se,a=t.apply(ue,S),a}function A(se){return p=se,c=setTimeout(_,e),w?E(se):a}function I(se){var S=se-d,ue=se-p,ae=e-S;return m?p2(ae,o-ue):ae}function j(se){var S=se-d,ue=se-p;return d===void 0||S>=e||S<0||m&&ue>=o}function _(){var se=Dg();if(j(se))return U(se);c=setTimeout(_,I(se))}function U(se){return c=void 0,T&&r?E(se):(r=i=void 0,a)}function G(){c!==void 0&&clearTimeout(c),p=0,r=d=i=c=void 0}function re(){return c===void 0?a:U(Dg())}function q(){var se=Dg(),S=j(se);if(r=arguments,i=this,d=se,S){if(c===void 0)return A(d);if(m)return clearTimeout(c),c=setTimeout(_,e),E(d)}return c===void 0&&(c=setTimeout(_,e)),a}return q.cancel=G,q.flush=re,q}var IT=g2;const Pg=Oc(IT);var m2=IT,v2=Vv,y2="Expected a function";function b2(t,e,n){var r=!0,i=!0;if(typeof t!="function")throw new TypeError(y2);return v2(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),m2(t,e,{leading:r,maxWait:e,trailing:i})}var w2=b2;const x2=Oc(w2);var hf=function(){return hf=Object.assign||function(e){for(var n,r=1,i=arguments.length;r<i;r++){n=arguments[r];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},hf.apply(this,arguments)};function MT(t){return!t||!t.ownerDocument||!t.ownerDocument.defaultView?window:t.ownerDocument.defaultView}function LT(t){return!t||!t.ownerDocument?document:t.ownerDocument}var FT=function(t){var e={},n=Array.prototype.reduce.call(t,function(r,i){var o=i.name.match(/data-simplebar-(.+)/);if(o){var a=o[1].replace(/\W+(.)/g,function(c,d){return d.toUpperCase()});switch(i.value){case"true":r[a]=!0;break;case"false":r[a]=!1;break;case void 0:r[a]=!0;break;default:r[a]=i.value}}return r},e);return n};function NT(t,e){var n;t&&(n=t.classList).add.apply(n,e.split(" "))}function jT(t,e){t&&e.split(" ").forEach(function(n){t.classList.remove(n)})}function BT(t){return".".concat(t.split(" ").join("."))}var Hv=!!(typeof window<"u"&&window.document&&window.document.createElement),S2=Object.freeze({__proto__:null,addClasses:NT,canUseDOM:Hv,classNamesToQuery:BT,getElementDocument:LT,getElementWindow:MT,getOptions:FT,removeClasses:jT}),ff=null,tw=null;Hv&&window.addEventListener("resize",function(){tw!==window.devicePixelRatio&&(tw=window.devicePixelRatio,ff=null)});function nw(){if(ff===null){if(typeof document>"u")return ff=0,ff;var t=document.body,e=document.createElement("div");e.classList.add("simplebar-hide-scrollbar"),t.appendChild(e);var n=e.getBoundingClientRect().right;t.removeChild(e),ff=n}return ff}var nu=MT,Og=LT,T2=FT,ru=NT,iu=jT,Oo=BT,rd=function(){function t(e,n){n===void 0&&(n={});var r=this;if(this.removePreventClickId=null,this.minScrollbarWidth=20,this.stopScrollDelay=175,this.isScrolling=!1,this.isMouseEntering=!1,this.isDragging=!1,this.scrollXTicking=!1,this.scrollYTicking=!1,this.wrapperEl=null,this.contentWrapperEl=null,this.contentEl=null,this.offsetEl=null,this.maskEl=null,this.placeholderEl=null,this.heightAutoObserverWrapperEl=null,this.heightAutoObserverEl=null,this.rtlHelpers=null,this.scrollbarWidth=0,this.resizeObserver=null,this.mutationObserver=null,this.elStyles=null,this.isRtl=null,this.mouseX=0,this.mouseY=0,this.onMouseMove=function(){},this.onWindowResize=function(){},this.onStopScrolling=function(){},this.onMouseEntered=function(){},this.onScroll=function(){var i=nu(r.el);r.scrollXTicking||(i.requestAnimationFrame(r.scrollX),r.scrollXTicking=!0),r.scrollYTicking||(i.requestAnimationFrame(r.scrollY),r.scrollYTicking=!0),r.isScrolling||(r.isScrolling=!0,ru(r.el,r.classNames.scrolling)),r.showScrollbar("x"),r.showScrollbar("y"),r.onStopScrolling()},this.scrollX=function(){r.axis.x.isOverflowing&&r.positionScrollbar("x"),r.scrollXTicking=!1},this.scrollY=function(){r.axis.y.isOverflowing&&r.positionScrollbar("y"),r.scrollYTicking=!1},this._onStopScrolling=function(){iu(r.el,r.classNames.scrolling),r.options.autoHide&&(r.hideScrollbar("x"),r.hideScrollbar("y")),r.isScrolling=!1},this.onMouseEnter=function(){r.isMouseEntering||(ru(r.el,r.classNames.mouseEntered),r.showScrollbar("x"),r.showScrollbar("y"),r.isMouseEntering=!0),r.onMouseEntered()},this._onMouseEntered=function(){iu(r.el,r.classNames.mouseEntered),r.options.autoHide&&(r.hideScrollbar("x"),r.hideScrollbar("y")),r.isMouseEntering=!1},this._onMouseMove=function(i){r.mouseX=i.clientX,r.mouseY=i.clientY,(r.axis.x.isOverflowing||r.axis.x.forceVisible)&&r.onMouseMoveForAxis("x"),(r.axis.y.isOverflowing||r.axis.y.forceVisible)&&r.onMouseMoveForAxis("y")},this.onMouseLeave=function(){r.onMouseMove.cancel(),(r.axis.x.isOverflowing||r.axis.x.forceVisible)&&r.onMouseLeaveForAxis("x"),(r.axis.y.isOverflowing||r.axis.y.forceVisible)&&r.onMouseLeaveForAxis("y"),r.mouseX=-1,r.mouseY=-1},this._onWindowResize=function(){r.scrollbarWidth=r.getScrollbarWidth(),r.hideNativeScrollbar()},this.onPointerEvent=function(i){if(!(!r.axis.x.track.el||!r.axis.y.track.el||!r.axis.x.scrollbar.el||!r.axis.y.scrollbar.el)){var o,a;r.axis.x.track.rect=r.axis.x.track.el.getBoundingClientRect(),r.axis.y.track.rect=r.axis.y.track.el.getBoundingClientRect(),(r.axis.x.isOverflowing||r.axis.x.forceVisible)&&(o=r.isWithinBounds(r.axis.x.track.rect)),(r.axis.y.isOverflowing||r.axis.y.forceVisible)&&(a=r.isWithinBounds(r.axis.y.track.rect)),(o||a)&&(i.stopPropagation(),i.type==="pointerdown"&&i.pointerType!=="touch"&&(o&&(r.axis.x.scrollbar.rect=r.axis.x.scrollbar.el.getBoundingClientRect(),r.isWithinBounds(r.axis.x.scrollbar.rect)?r.onDragStart(i,"x"):r.onTrackClick(i,"x")),a&&(r.axis.y.scrollbar.rect=r.axis.y.scrollbar.el.getBoundingClientRect(),r.isWithinBounds(r.axis.y.scrollbar.rect)?r.onDragStart(i,"y"):r.onTrackClick(i,"y"))))}},this.drag=function(i){var o,a,c,d,p,w,m,T,E,A,I;if(!(!r.draggedAxis||!r.contentWrapperEl)){var j,_=r.axis[r.draggedAxis].track,U=(a=(o=_.rect)===null||o===void 0?void 0:o[r.axis[r.draggedAxis].sizeAttr])!==null&&a!==void 0?a:0,G=r.axis[r.draggedAxis].scrollbar,re=(d=(c=r.contentWrapperEl)===null||c===void 0?void 0:c[r.axis[r.draggedAxis].scrollSizeAttr])!==null&&d!==void 0?d:0,q=parseInt((w=(p=r.elStyles)===null||p===void 0?void 0:p[r.axis[r.draggedAxis].sizeAttr])!==null&&w!==void 0?w:"0px",10);i.preventDefault(),i.stopPropagation(),r.draggedAxis==="y"?j=i.pageY:j=i.pageX;var se=j-((T=(m=_.rect)===null||m===void 0?void 0:m[r.axis[r.draggedAxis].offsetAttr])!==null&&T!==void 0?T:0)-r.axis[r.draggedAxis].dragOffset;se=r.draggedAxis==="x"&&r.isRtl?((A=(E=_.rect)===null||E===void 0?void 0:E[r.axis[r.draggedAxis].sizeAttr])!==null&&A!==void 0?A:0)-G.size-se:se;var S=se/(U-G.size),ue=S*(re-q);r.draggedAxis==="x"&&r.isRtl&&(ue=!((I=t.getRtlHelpers())===null||I===void 0)&&I.isScrollingToNegative?-ue:ue),r.contentWrapperEl[r.axis[r.draggedAxis].scrollOffsetAttr]=ue}},this.onEndDrag=function(i){r.isDragging=!1;var o=Og(r.el),a=nu(r.el);i.preventDefault(),i.stopPropagation(),iu(r.el,r.classNames.dragging),r.onStopScrolling(),o.removeEventListener("mousemove",r.drag,!0),o.removeEventListener("mouseup",r.onEndDrag,!0),r.removePreventClickId=a.setTimeout(function(){o.removeEventListener("click",r.preventClick,!0),o.removeEventListener("dblclick",r.preventClick,!0),r.removePreventClickId=null})},this.preventClick=function(i){i.preventDefault(),i.stopPropagation()},this.el=e,this.options=hf(hf({},t.defaultOptions),n),this.classNames=hf(hf({},t.defaultOptions.classNames),n.classNames),this.axis={x:{scrollOffsetAttr:"scrollLeft",sizeAttr:"width",scrollSizeAttr:"scrollWidth",offsetSizeAttr:"offsetWidth",offsetAttr:"left",overflowAttr:"overflowX",dragOffset:0,isOverflowing:!0,forceVisible:!1,track:{size:null,el:null,rect:null,isVisible:!1},scrollbar:{size:null,el:null,rect:null,isVisible:!1}},y:{scrollOffsetAttr:"scrollTop",sizeAttr:"height",scrollSizeAttr:"scrollHeight",offsetSizeAttr:"offsetHeight",offsetAttr:"top",overflowAttr:"overflowY",dragOffset:0,isOverflowing:!0,forceVisible:!1,track:{size:null,el:null,rect:null,isVisible:!1},scrollbar:{size:null,el:null,rect:null,isVisible:!1}}},typeof this.el!="object"||!this.el.nodeName)throw new Error("Argument passed to SimpleBar must be an HTML element instead of ".concat(this.el));this.onMouseMove=x2(this._onMouseMove,64),this.onWindowResize=Pg(this._onWindowResize,64,{leading:!0}),this.onStopScrolling=Pg(this._onStopScrolling,this.stopScrollDelay),this.onMouseEntered=Pg(this._onMouseEntered,this.stopScrollDelay),this.init()}return t.getRtlHelpers=function(){if(t.rtlHelpers)return t.rtlHelpers;var e=document.createElement("div");e.innerHTML='<div class="simplebar-dummy-scrollbar-size"><div></div></div>';var n=e.firstElementChild,r=n==null?void 0:n.firstElementChild;if(!r)return null;document.body.appendChild(n),n.scrollLeft=0;var i=t.getOffset(n),o=t.getOffset(r);n.scrollLeft=-999;var a=t.getOffset(r);return document.body.removeChild(n),t.rtlHelpers={isScrollOriginAtZero:i.left!==o.left,isScrollingToNegative:o.left!==a.left},t.rtlHelpers},t.prototype.getScrollbarWidth=function(){try{return this.contentWrapperEl&&getComputedStyle(this.contentWrapperEl,"::-webkit-scrollbar").display==="none"||"scrollbarWidth"in document.documentElement.style||"-ms-overflow-style"in document.documentElement.style?0:nw()}catch{return nw()}},t.getOffset=function(e){var n=e.getBoundingClientRect(),r=Og(e),i=nu(e);return{top:n.top+(i.pageYOffset||r.documentElement.scrollTop),left:n.left+(i.pageXOffset||r.documentElement.scrollLeft)}},t.prototype.init=function(){Hv&&(this.initDOM(),this.rtlHelpers=t.getRtlHelpers(),this.scrollbarWidth=this.getScrollbarWidth(),this.recalculate(),this.initListeners())},t.prototype.initDOM=function(){var e,n;this.wrapperEl=this.el.querySelector(Oo(this.classNames.wrapper)),this.contentWrapperEl=this.options.scrollableNode||this.el.querySelector(Oo(this.classNames.contentWrapper)),this.contentEl=this.options.contentNode||this.el.querySelector(Oo(this.classNames.contentEl)),this.offsetEl=this.el.querySelector(Oo(this.classNames.offset)),this.maskEl=this.el.querySelector(Oo(this.classNames.mask)),this.placeholderEl=this.findChild(this.wrapperEl,Oo(this.classNames.placeholder)),this.heightAutoObserverWrapperEl=this.el.querySelector(Oo(this.classNames.heightAutoObserverWrapperEl)),this.heightAutoObserverEl=this.el.querySelector(Oo(this.classNames.heightAutoObserverEl)),this.axis.x.track.el=this.findChild(this.el,"".concat(Oo(this.classNames.track)).concat(Oo(this.classNames.horizontal))),this.axis.y.track.el=this.findChild(this.el,"".concat(Oo(this.classNames.track)).concat(Oo(this.classNames.vertical))),this.axis.x.scrollbar.el=((e=this.axis.x.track.el)===null||e===void 0?void 0:e.querySelector(Oo(this.classNames.scrollbar)))||null,this.axis.y.scrollbar.el=((n=this.axis.y.track.el)===null||n===void 0?void 0:n.querySelector(Oo(this.classNames.scrollbar)))||null,this.options.autoHide||(ru(this.axis.x.scrollbar.el,this.classNames.visible),ru(this.axis.y.scrollbar.el,this.classNames.visible))},t.prototype.initListeners=function(){var e=this,n,r=nu(this.el);if(this.el.addEventListener("mouseenter",this.onMouseEnter),this.el.addEventListener("pointerdown",this.onPointerEvent,!0),this.el.addEventListener("mousemove",this.onMouseMove),this.el.addEventListener("mouseleave",this.onMouseLeave),(n=this.contentWrapperEl)===null||n===void 0||n.addEventListener("scroll",this.onScroll),r.addEventListener("resize",this.onWindowResize),!!this.contentEl){if(window.ResizeObserver){var i=!1,o=r.ResizeObserver||ResizeObserver;this.resizeObserver=new o(function(){i&&r.requestAnimationFrame(function(){e.recalculate()})}),this.resizeObserver.observe(this.el),this.resizeObserver.observe(this.contentEl),r.requestAnimationFrame(function(){i=!0})}this.mutationObserver=new r.MutationObserver(function(){r.requestAnimationFrame(function(){e.recalculate()})}),this.mutationObserver.observe(this.contentEl,{childList:!0,subtree:!0,characterData:!0})}},t.prototype.recalculate=function(){if(!(!this.heightAutoObserverEl||!this.contentEl||!this.contentWrapperEl||!this.wrapperEl||!this.placeholderEl)){var e=nu(this.el);this.elStyles=e.getComputedStyle(this.el),this.isRtl=this.elStyles.direction==="rtl";var n=this.contentEl.offsetWidth,r=this.heightAutoObserverEl.offsetHeight<=1,i=this.heightAutoObserverEl.offsetWidth<=1||n>0,o=this.contentWrapperEl.offsetWidth,a=this.elStyles.overflowX,c=this.elStyles.overflowY;this.contentEl.style.padding="".concat(this.elStyles.paddingTop," ").concat(this.elStyles.paddingRight," ").concat(this.elStyles.paddingBottom," ").concat(this.elStyles.paddingLeft),this.wrapperEl.style.margin="-".concat(this.elStyles.paddingTop," -").concat(this.elStyles.paddingRight," -").concat(this.elStyles.paddingBottom," -").concat(this.elStyles.paddingLeft);var d=this.contentEl.scrollHeight,p=this.contentEl.scrollWidth;this.contentWrapperEl.style.height=r?"auto":"100%",this.placeholderEl.style.width=i?"".concat(n||p,"px"):"auto",this.placeholderEl.style.height="".concat(d,"px");var w=this.contentWrapperEl.offsetHeight;this.axis.x.isOverflowing=n!==0&&p>n,this.axis.y.isOverflowing=d>w,this.axis.x.isOverflowing=a==="hidden"?!1:this.axis.x.isOverflowing,this.axis.y.isOverflowing=c==="hidden"?!1:this.axis.y.isOverflowing,this.axis.x.forceVisible=this.options.forceVisible==="x"||this.options.forceVisible===!0,this.axis.y.forceVisible=this.options.forceVisible==="y"||this.options.forceVisible===!0,this.hideNativeScrollbar();var m=this.axis.x.isOverflowing?this.scrollbarWidth:0,T=this.axis.y.isOverflowing?this.scrollbarWidth:0;this.axis.x.isOverflowing=this.axis.x.isOverflowing&&p>o-T,this.axis.y.isOverflowing=this.axis.y.isOverflowing&&d>w-m,this.axis.x.scrollbar.size=this.getScrollbarSize("x"),this.axis.y.scrollbar.size=this.getScrollbarSize("y"),this.axis.x.scrollbar.el&&(this.axis.x.scrollbar.el.style.width="".concat(this.axis.x.scrollbar.size,"px")),this.axis.y.scrollbar.el&&(this.axis.y.scrollbar.el.style.height="".concat(this.axis.y.scrollbar.size,"px")),this.positionScrollbar("x"),this.positionScrollbar("y"),this.toggleTrackVisibility("x"),this.toggleTrackVisibility("y")}},t.prototype.getScrollbarSize=function(e){var n,r;if(e===void 0&&(e="y"),!this.axis[e].isOverflowing||!this.contentEl)return 0;var i=this.contentEl[this.axis[e].scrollSizeAttr],o=(r=(n=this.axis[e].track.el)===null||n===void 0?void 0:n[this.axis[e].offsetSizeAttr])!==null&&r!==void 0?r:0,a=o/i,c;return c=Math.max(~~(a*o),this.options.scrollbarMinSize),this.options.scrollbarMaxSize&&(c=Math.min(c,this.options.scrollbarMaxSize)),c},t.prototype.positionScrollbar=function(e){var n,r,i;e===void 0&&(e="y");var o=this.axis[e].scrollbar;if(!(!this.axis[e].isOverflowing||!this.contentWrapperEl||!o.el||!this.elStyles)){var a=this.contentWrapperEl[this.axis[e].scrollSizeAttr],c=((n=this.axis[e].track.el)===null||n===void 0?void 0:n[this.axis[e].offsetSizeAttr])||0,d=parseInt(this.elStyles[this.axis[e].sizeAttr],10),p=this.contentWrapperEl[this.axis[e].scrollOffsetAttr];p=e==="x"&&this.isRtl&&(!((r=t.getRtlHelpers())===null||r===void 0)&&r.isScrollOriginAtZero)?-p:p,e==="x"&&this.isRtl&&(p=!((i=t.getRtlHelpers())===null||i===void 0)&&i.isScrollingToNegative?p:-p);var w=p/(a-d),m=~~((c-o.size)*w);m=e==="x"&&this.isRtl?-m+(c-o.size):m,o.el.style.transform=e==="x"?"translate3d(".concat(m,"px, 0, 0)"):"translate3d(0, ".concat(m,"px, 0)")}},t.prototype.toggleTrackVisibility=function(e){e===void 0&&(e="y");var n=this.axis[e].track.el,r=this.axis[e].scrollbar.el;!n||!r||!this.contentWrapperEl||(this.axis[e].isOverflowing||this.axis[e].forceVisible?(n.style.visibility="visible",this.contentWrapperEl.style[this.axis[e].overflowAttr]="scroll",this.el.classList.add("".concat(this.classNames.scrollable,"-").concat(e))):(n.style.visibility="hidden",this.contentWrapperEl.style[this.axis[e].overflowAttr]="hidden",this.el.classList.remove("".concat(this.classNames.scrollable,"-").concat(e))),this.axis[e].isOverflowing?r.style.display="block":r.style.display="none")},t.prototype.showScrollbar=function(e){e===void 0&&(e="y"),this.axis[e].isOverflowing&&!this.axis[e].scrollbar.isVisible&&(ru(this.axis[e].scrollbar.el,this.classNames.visible),this.axis[e].scrollbar.isVisible=!0)},t.prototype.hideScrollbar=function(e){e===void 0&&(e="y"),!this.isDragging&&this.axis[e].isOverflowing&&this.axis[e].scrollbar.isVisible&&(iu(this.axis[e].scrollbar.el,this.classNames.visible),this.axis[e].scrollbar.isVisible=!1)},t.prototype.hideNativeScrollbar=function(){this.offsetEl&&(this.offsetEl.style[this.isRtl?"left":"right"]=this.axis.y.isOverflowing||this.axis.y.forceVisible?"-".concat(this.scrollbarWidth,"px"):"0px",this.offsetEl.style.bottom=this.axis.x.isOverflowing||this.axis.x.forceVisible?"-".concat(this.scrollbarWidth,"px"):"0px")},t.prototype.onMouseMoveForAxis=function(e){e===void 0&&(e="y");var n=this.axis[e];!n.track.el||!n.scrollbar.el||(n.track.rect=n.track.el.getBoundingClientRect(),n.scrollbar.rect=n.scrollbar.el.getBoundingClientRect(),this.isWithinBounds(n.track.rect)?(this.showScrollbar(e),ru(n.track.el,this.classNames.hover),this.isWithinBounds(n.scrollbar.rect)?ru(n.scrollbar.el,this.classNames.hover):iu(n.scrollbar.el,this.classNames.hover)):(iu(n.track.el,this.classNames.hover),this.options.autoHide&&this.hideScrollbar(e)))},t.prototype.onMouseLeaveForAxis=function(e){e===void 0&&(e="y"),iu(this.axis[e].track.el,this.classNames.hover),iu(this.axis[e].scrollbar.el,this.classNames.hover),this.options.autoHide&&this.hideScrollbar(e)},t.prototype.onDragStart=function(e,n){var r;n===void 0&&(n="y"),this.isDragging=!0;var i=Og(this.el),o=nu(this.el),a=this.axis[n].scrollbar,c=n==="y"?e.pageY:e.pageX;this.axis[n].dragOffset=c-(((r=a.rect)===null||r===void 0?void 0:r[this.axis[n].offsetAttr])||0),this.draggedAxis=n,ru(this.el,this.classNames.dragging),i.addEventListener("mousemove",this.drag,!0),i.addEventListener("mouseup",this.onEndDrag,!0),this.removePreventClickId===null?(i.addEventListener("click",this.preventClick,!0),i.addEventListener("dblclick",this.preventClick,!0)):(o.clearTimeout(this.removePreventClickId),this.removePreventClickId=null)},t.prototype.onTrackClick=function(e,n){var r=this,i,o,a,c;n===void 0&&(n="y");var d=this.axis[n];if(!(!this.options.clickOnTrack||!d.scrollbar.el||!this.contentWrapperEl)){e.preventDefault();var p=nu(this.el);this.axis[n].scrollbar.rect=d.scrollbar.el.getBoundingClientRect();var w=this.axis[n].scrollbar,m=(o=(i=w.rect)===null||i===void 0?void 0:i[this.axis[n].offsetAttr])!==null&&o!==void 0?o:0,T=parseInt((c=(a=this.elStyles)===null||a===void 0?void 0:a[this.axis[n].sizeAttr])!==null&&c!==void 0?c:"0px",10),E=this.contentWrapperEl[this.axis[n].scrollOffsetAttr],A=n==="y"?this.mouseY-m:this.mouseX-m,I=A<0?-1:1,j=I===-1?E-T:E+T,_=40,U=function(){r.contentWrapperEl&&(I===-1?E>j&&(E-=_,r.contentWrapperEl[r.axis[n].scrollOffsetAttr]=E,p.requestAnimationFrame(U)):E<j&&(E+=_,r.contentWrapperEl[r.axis[n].scrollOffsetAttr]=E,p.requestAnimationFrame(U)))};U()}},t.prototype.getContentElement=function(){return this.contentEl},t.prototype.getScrollElement=function(){return this.contentWrapperEl},t.prototype.removeListeners=function(){var e=nu(this.el);this.el.removeEventListener("mouseenter",this.onMouseEnter),this.el.removeEventListener("pointerdown",this.onPointerEvent,!0),this.el.removeEventListener("mousemove",this.onMouseMove),this.el.removeEventListener("mouseleave",this.onMouseLeave),this.contentWrapperEl&&this.contentWrapperEl.removeEventListener("scroll",this.onScroll),e.removeEventListener("resize",this.onWindowResize),this.mutationObserver&&this.mutationObserver.disconnect(),this.resizeObserver&&this.resizeObserver.disconnect(),this.onMouseMove.cancel(),this.onWindowResize.cancel(),this.onStopScrolling.cancel(),this.onMouseEntered.cancel()},t.prototype.unMount=function(){this.removeListeners()},t.prototype.isWithinBounds=function(e){return this.mouseX>=e.left&&this.mouseX<=e.left+e.width&&this.mouseY>=e.top&&this.mouseY<=e.top+e.height},t.prototype.findChild=function(e,n){var r=e.matches||e.webkitMatchesSelector||e.mozMatchesSelector||e.msMatchesSelector;return Array.prototype.filter.call(e.children,function(i){return r.call(i,n)})[0]},t.rtlHelpers=null,t.defaultOptions={forceVisible:!1,clickOnTrack:!0,scrollbarMinSize:25,scrollbarMaxSize:0,ariaLabel:"scrollable content",tabIndex:0,classNames:{contentEl:"simplebar-content",contentWrapper:"simplebar-content-wrapper",offset:"simplebar-offset",mask:"simplebar-mask",wrapper:"simplebar-wrapper",placeholder:"simplebar-placeholder",scrollbar:"simplebar-scrollbar",track:"simplebar-track",heightAutoObserverWrapperEl:"simplebar-height-auto-observer-wrapper",heightAutoObserverEl:"simplebar-height-auto-observer",visible:"simplebar-visible",horizontal:"simplebar-horizontal",vertical:"simplebar-vertical",hover:"simplebar-hover",dragging:"simplebar-dragging",scrolling:"simplebar-scrolling",scrollable:"simplebar-scrollable",mouseEntered:"simplebar-mouse-entered"},scrollableNode:null,contentNode:null,autoHide:!0},t.getOptions=T2,t.helpers=S2,t}(),Ko=function(){return Ko=Object.assign||function(e){for(var n,r=1,i=arguments.length;r<i;r++){n=arguments[r];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},Ko.apply(this,arguments)};function C2(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n}var Uv=kn.forwardRef(function(t,e){var n=t.children,r=t.scrollableNodeProps,i=r===void 0?{}:r,o=C2(t,["children","scrollableNodeProps"]),a=kn.useRef(),c=kn.useRef(),d=kn.useRef(),p={},w={};Object.keys(o).forEach(function(E){Object.prototype.hasOwnProperty.call(rd.defaultOptions,E)?p[E]=o[E]:w[E]=o[E]});var m=Ko(Ko({},rd.defaultOptions.classNames),p.classNames),T=Ko(Ko({},i),{className:"".concat(m.contentWrapper).concat(i.className?" ".concat(i.className):""),tabIndex:p.tabIndex||rd.defaultOptions.tabIndex,role:"region","aria-label":p.ariaLabel||rd.defaultOptions.ariaLabel});return kn.useEffect(function(){var E;return c.current=T.ref?T.ref.current:c.current,a.current&&(E=new rd(a.current,Ko(Ko(Ko({},p),c.current&&{scrollableNode:c.current}),d.current&&{contentNode:d.current})),typeof e=="function"?e(E):e&&(e.current=E)),function(){E==null||E.unMount(),E=null,typeof e=="function"&&e(null)}},[]),kn.createElement("div",Ko({"data-simplebar":"init",ref:a},w),kn.createElement("div",{className:m.wrapper},kn.createElement("div",{className:m.heightAutoObserverWrapperEl},kn.createElement("div",{className:m.heightAutoObserverEl})),kn.createElement("div",{className:m.mask},kn.createElement("div",{className:m.offset},typeof n=="function"?n({scrollableNodeRef:c,scrollableNodeProps:Ko(Ko({},T),{ref:c}),contentNodeRef:d,contentNodeProps:{className:m.contentEl,ref:d}}):kn.createElement("div",Ko({},T),kn.createElement("div",{className:m.contentEl},n)))),kn.createElement("div",{className:m.placeholder})),kn.createElement("div",{className:"".concat(m.track," simplebar-horizontal")},kn.createElement("div",{className:m.scrollbar})),kn.createElement("div",{className:"".concat(m.track," simplebar-vertical")},kn.createElement("div",{className:m.scrollbar})))});Uv.displayName="SimpleBar";const $T='[data-simplebar]{position:relative;flex-direction:column;flex-wrap:wrap;justify-content:flex-start;align-content:flex-start;align-items:flex-start}.simplebar-wrapper{overflow:hidden;width:inherit;height:inherit;max-width:inherit;max-height:inherit}.simplebar-mask{direction:inherit;position:absolute;overflow:hidden;padding:0;margin:0;left:0;top:0;bottom:0;right:0;width:auto!important;height:auto!important;z-index:0}.simplebar-offset{direction:inherit!important;box-sizing:inherit!important;resize:none!important;position:absolute;top:0;left:0;bottom:0;right:0;padding:0;margin:0;-webkit-overflow-scrolling:touch}.simplebar-content-wrapper{direction:inherit;box-sizing:border-box!important;position:relative;display:block;height:100%;width:auto;max-width:100%;max-height:100%;overflow:auto;scrollbar-width:none;-ms-overflow-style:none}.simplebar-content-wrapper::-webkit-scrollbar,.simplebar-hide-scrollbar::-webkit-scrollbar{display:none;width:0;height:0}.simplebar-content:after,.simplebar-content:before{content:" ";display:table}.simplebar-placeholder{max-height:100%;max-width:100%;width:100%;pointer-events:none}.simplebar-height-auto-observer-wrapper{box-sizing:inherit!important;height:100%;width:100%;max-width:1px;position:relative;float:left;max-height:1px;overflow:hidden;z-index:-1;padding:0;margin:0;pointer-events:none;flex-grow:inherit;flex-shrink:0;flex-basis:0}.simplebar-height-auto-observer{box-sizing:inherit;display:block;opacity:0;position:absolute;top:0;left:0;height:1000%;width:1000%;min-height:1px;min-width:1px;overflow:hidden;pointer-events:none;z-index:-1}.simplebar-track{z-index:1;position:absolute;right:0;bottom:0;pointer-events:none;overflow:hidden}[data-simplebar].simplebar-dragging,[data-simplebar].simplebar-dragging .simplebar-content{pointer-events:none;-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}[data-simplebar].simplebar-dragging .simplebar-track{pointer-events:all}.simplebar-scrollbar{position:absolute;left:0;right:0;min-height:10px}.simplebar-scrollbar:before{position:absolute;content:"";background:#000;border-radius:7px;left:2px;right:2px;opacity:0;transition:opacity .2s .5s linear}.simplebar-scrollbar.simplebar-visible:before{opacity:.5;transition-delay:0s;transition-duration:0s}.simplebar-track.simplebar-vertical{top:0;width:11px}.simplebar-scrollbar:before{top:2px;bottom:2px;left:2px;right:2px}.simplebar-track.simplebar-horizontal{left:0;height:11px}.simplebar-track.simplebar-horizontal .simplebar-scrollbar{right:auto;left:0;top:0;bottom:0;min-height:0;min-width:10px;width:auto}[data-simplebar-direction=rtl] .simplebar-track.simplebar-vertical{right:auto;left:0}.simplebar-dummy-scrollbar-size{direction:rtl;position:fixed;opacity:0;visibility:hidden;height:500px;width:500px;overflow-y:hidden;overflow-x:scroll;-ms-overflow-style:scrollbar!important}.simplebar-dummy-scrollbar-size>div{width:200%;height:200%;margin:10px 0}.simplebar-hide-scrollbar{position:fixed;left:0;visibility:hidden;overflow-y:scroll;scrollbar-width:none;-ms-overflow-style:none}';function VT(t){var e,n,r="";if(typeof t=="string"||typeof t=="number")r+=t;else if(typeof t=="object")if(Array.isArray(t)){var i=t.length;for(e=0;e<i;e++)t[e]&&(n=VT(t[e]))&&(r&&(r+=" "),r+=n)}else for(n in t)t[n]&&(r&&(r+=" "),r+=n);return r}function bl(){for(var t,e,n=0,r="",i=arguments.length;n<i;n++)(t=arguments[n])&&(e=VT(t))&&(r&&(r+=" "),r+=e);return r}const Od=t=>typeof t=="number"&&!isNaN(t),bc=t=>typeof t=="string",Zo=t=>typeof t=="function",Lh=t=>bc(t)||Zo(t)?t:null,Mm=t=>X.isValidElement(t)||bc(t)||Zo(t)||Od(t);function E2(t,e,n){n===void 0&&(n=300);const{scrollHeight:r,style:i}=t;requestAnimationFrame(()=>{i.minHeight="initial",i.height=r+"px",i.transition=`all ${n}ms`,requestAnimationFrame(()=>{i.height="0",i.padding="0",i.margin="0",setTimeout(e,n)})})}function kp(t){let{enter:e,exit:n,appendPosition:r=!1,collapse:i=!0,collapseDuration:o=300}=t;return function(a){let{children:c,position:d,preventExitTransition:p,done:w,nodeRef:m,isIn:T,playToast:E}=a;const A=r?`${e}--${d}`:e,I=r?`${n}--${d}`:n,j=X.useRef(0);return X.useLayoutEffect(()=>{const _=m.current,U=A.split(" "),G=re=>{re.target===m.current&&(E(),_.removeEventListener("animationend",G),_.removeEventListener("animationcancel",G),j.current===0&&re.type!=="animationcancel"&&_.classList.remove(...U))};_.classList.add(...U),_.addEventListener("animationend",G),_.addEventListener("animationcancel",G)},[]),X.useEffect(()=>{const _=m.current,U=()=>{_.removeEventListener("animationend",U),i?E2(_,w,o):w()};T||(p?U():(j.current=1,_.className+=` ${I}`,_.addEventListener("animationend",U)))},[T]),X.createElement(X.Fragment,null,c)}}function rw(t,e){return t!=null?{content:t.content,containerId:t.props.containerId,id:t.props.toastId,theme:t.props.theme,type:t.props.type,data:t.props.data||{},isLoading:t.props.isLoading,icon:t.props.icon,status:e}:{}}const oo=new Map;let _d=[];const Lm=new Set,k2=t=>Lm.forEach(e=>e(t)),HT=()=>oo.size>0;function UT(t,e){var n;if(e)return!((n=oo.get(e))==null||!n.isToastActive(t));let r=!1;return oo.forEach(i=>{i.isToastActive(t)&&(r=!0)}),r}function WT(t,e){Mm(t)&&(HT()||_d.push({content:t,options:e}),oo.forEach(n=>{n.buildToast(t,e)}))}function iw(t,e){oo.forEach(n=>{e!=null&&e!=null&&e.containerId?(e==null?void 0:e.containerId)===n.id&&n.toggle(t,e==null?void 0:e.id):n.toggle(t,e==null?void 0:e.id)})}function D2(t){const{subscribe:e,getSnapshot:n,setProps:r}=X.useRef(function(o){const a=o.containerId||1;return{subscribe(c){const d=function(w,m,T){let E=1,A=0,I=[],j=[],_=[],U=m;const G=new Map,re=new Set,q=()=>{_=Array.from(G.values()),re.forEach(ue=>ue())},se=ue=>{j=ue==null?[]:j.filter(ae=>ae!==ue),q()},S=ue=>{const{toastId:ae,onOpen:Ue,updateId:nt,children:et}=ue.props,De=nt==null;ue.staleId&&G.delete(ue.staleId),G.set(ae,ue),j=[...j,ue.props.toastId].filter(Me=>Me!==ue.staleId),q(),T(rw(ue,De?"added":"updated")),De&&Zo(Ue)&&Ue(X.isValidElement(et)&&et.props)};return{id:w,props:U,observe:ue=>(re.add(ue),()=>re.delete(ue)),toggle:(ue,ae)=>{G.forEach(Ue=>{ae!=null&&ae!==Ue.props.toastId||Zo(Ue.toggle)&&Ue.toggle(ue)})},removeToast:se,toasts:G,clearQueue:()=>{A-=I.length,I=[]},buildToast:(ue,ae)=>{if((je=>{let{containerId:Qe,toastId:Ye,updateId:Ke}=je;const qe=Qe?Qe!==w:w!==1,ot=G.has(Ye)&&Ke==null;return qe||ot})(ae))return;const{toastId:Ue,updateId:nt,data:et,staleId:De,delay:Me}=ae,fe=()=>{se(Ue)},me=nt==null;me&&A++;const Pe={...U,style:U.toastStyle,key:E++,...Object.fromEntries(Object.entries(ae).filter(je=>{let[Qe,Ye]=je;return Ye!=null})),toastId:Ue,updateId:nt,data:et,closeToast:fe,isIn:!1,className:Lh(ae.className||U.toastClassName),bodyClassName:Lh(ae.bodyClassName||U.bodyClassName),progressClassName:Lh(ae.progressClassName||U.progressClassName),autoClose:!ae.isLoading&&(Be=ae.autoClose,Ze=U.autoClose,Be===!1||Od(Be)&&Be>0?Be:Ze),deleteToast(){const je=G.get(Ue),{onClose:Qe,children:Ye}=je.props;Zo(Qe)&&Qe(X.isValidElement(Ye)&&Ye.props),T(rw(je,"removed")),G.delete(Ue),A--,A<0&&(A=0),I.length>0?S(I.shift()):q()}};var Be,Ze;Pe.closeButton=U.closeButton,ae.closeButton===!1||Mm(ae.closeButton)?Pe.closeButton=ae.closeButton:ae.closeButton===!0&&(Pe.closeButton=!Mm(U.closeButton)||U.closeButton);let ve=ue;X.isValidElement(ue)&&!bc(ue.type)?ve=X.cloneElement(ue,{closeToast:fe,toastProps:Pe,data:et}):Zo(ue)&&(ve=ue({closeToast:fe,toastProps:Pe,data:et}));const Se={content:ve,props:Pe,staleId:De};U.limit&&U.limit>0&&A>U.limit&&me?I.push(Se):Od(Me)?setTimeout(()=>{S(Se)},Me):S(Se)},setProps(ue){U=ue},setToggle:(ue,ae)=>{G.get(ue).toggle=ae},isToastActive:ue=>j.some(ae=>ae===ue),getSnapshot:()=>_}}(a,o,k2);oo.set(a,d);const p=d.observe(c);return _d.forEach(w=>WT(w.content,w.options)),_d=[],()=>{p(),oo.delete(a)}},setProps(c){var d;(d=oo.get(a))==null||d.setProps(c)},getSnapshot(){var c;return(c=oo.get(a))==null?void 0:c.getSnapshot()}}}(t)).current;r(t);const i=X.useSyncExternalStore(e,n,n);return{getToastToRender:function(o){if(!i)return[];const a=new Map;return t.newestOnTop&&i.reverse(),i.forEach(c=>{const{position:d}=c.props;a.has(d)||a.set(d,[]),a.get(d).push(c)}),Array.from(a,c=>o(c[0],c[1]))},isToastActive:UT,count:i==null?void 0:i.length}}function P2(t){const[e,n]=X.useState(!1),[r,i]=X.useState(!1),o=X.useRef(null),a=X.useRef({start:0,delta:0,removalDistance:0,canCloseOnClick:!0,canDrag:!1,didMove:!1}).current,{autoClose:c,pauseOnHover:d,closeToast:p,onClick:w,closeOnClick:m}=t;var T,E;function A(){n(!0)}function I(){n(!1)}function j(G){const re=o.current;a.canDrag&&re&&(a.didMove=!0,e&&I(),a.delta=t.draggableDirection==="x"?G.clientX-a.start:G.clientY-a.start,a.start!==G.clientX&&(a.canCloseOnClick=!1),re.style.transform=`translate3d(${t.draggableDirection==="x"?`${a.delta}px, var(--y)`:`0, calc(${a.delta}px + var(--y))`},0)`,re.style.opacity=""+(1-Math.abs(a.delta/a.removalDistance)))}function _(){document.removeEventListener("pointermove",j),document.removeEventListener("pointerup",_);const G=o.current;if(a.canDrag&&a.didMove&&G){if(a.canDrag=!1,Math.abs(a.delta)>a.removalDistance)return i(!0),t.closeToast(),void t.collapseAll();G.style.transition="transform 0.2s, opacity 0.2s",G.style.removeProperty("transform"),G.style.removeProperty("opacity")}}(E=oo.get((T={id:t.toastId,containerId:t.containerId,fn:n}).containerId||1))==null||E.setToggle(T.id,T.fn),X.useEffect(()=>{if(t.pauseOnFocusLoss)return document.hasFocus()||I(),window.addEventListener("focus",A),window.addEventListener("blur",I),()=>{window.removeEventListener("focus",A),window.removeEventListener("blur",I)}},[t.pauseOnFocusLoss]);const U={onPointerDown:function(G){if(t.draggable===!0||t.draggable===G.pointerType){a.didMove=!1,document.addEventListener("pointermove",j),document.addEventListener("pointerup",_);const re=o.current;a.canCloseOnClick=!0,a.canDrag=!0,re.style.transition="none",t.draggableDirection==="x"?(a.start=G.clientX,a.removalDistance=re.offsetWidth*(t.draggablePercent/100)):(a.start=G.clientY,a.removalDistance=re.offsetHeight*(t.draggablePercent===80?1.5*t.draggablePercent:t.draggablePercent)/100)}},onPointerUp:function(G){const{top:re,bottom:q,left:se,right:S}=o.current.getBoundingClientRect();G.nativeEvent.type!=="touchend"&&t.pauseOnHover&&G.clientX>=se&&G.clientX<=S&&G.clientY>=re&&G.clientY<=q?I():A()}};return c&&d&&(U.onMouseEnter=I,t.stacked||(U.onMouseLeave=A)),m&&(U.onClick=G=>{w&&w(G),a.canCloseOnClick&&p()}),{playToast:A,pauseToast:I,isRunning:e,preventExitTransition:r,toastRef:o,eventHandlers:U}}function O2(t){let{delay:e,isRunning:n,closeToast:r,type:i="default",hide:o,className:a,style:c,controlledProgress:d,progress:p,rtl:w,isIn:m,theme:T}=t;const E=o||d&&p===0,A={...c,animationDuration:`${e}ms`,animationPlayState:n?"running":"paused"};d&&(A.transform=`scaleX(${p})`);const I=bl("Toastify__progress-bar",d?"Toastify__progress-bar--controlled":"Toastify__progress-bar--animated",`Toastify__progress-bar-theme--${T}`,`Toastify__progress-bar--${i}`,{"Toastify__progress-bar--rtl":w}),j=Zo(a)?a({rtl:w,type:i,defaultClassName:I}):bl(I,a),_={[d&&p>=1?"onTransitionEnd":"onAnimationEnd"]:d&&p<1?null:()=>{m&&r()}};return X.createElement("div",{className:"Toastify__progress-bar--wrp","data-hidden":E},X.createElement("div",{className:`Toastify__progress-bar--bg Toastify__progress-bar-theme--${T} Toastify__progress-bar--${i}`}),X.createElement("div",{role:"progressbar","aria-hidden":E?"true":"false","aria-label":"notification timer",className:j,style:A,..._}))}let _2=1;const zT=()=>""+_2++;function R2(t){return t&&(bc(t.toastId)||Od(t.toastId))?t.toastId:zT()}function gd(t,e){return WT(t,e),e.toastId}function tp(t,e){return{...e,type:e&&e.type||t,toastId:R2(e)}}function gh(t){return(e,n)=>gd(e,tp(t,n))}function xn(t,e){return gd(t,tp("default",e))}xn.loading=(t,e)=>gd(t,tp("default",{isLoading:!0,autoClose:!1,closeOnClick:!1,closeButton:!1,draggable:!1,...e})),xn.promise=function(t,e,n){let r,{pending:i,error:o,success:a}=e;i&&(r=bc(i)?xn.loading(i,n):xn.loading(i.render,{...n,...i}));const c={isLoading:null,autoClose:null,closeOnClick:null,closeButton:null,draggable:null},d=(w,m,T)=>{if(m==null)return void xn.dismiss(r);const E={type:w,...c,...n,data:T},A=bc(m)?{render:m}:m;return r?xn.update(r,{...E,...A}):xn(A.render,{...E,...A}),T},p=Zo(t)?t():t;return p.then(w=>d("success",a,w)).catch(w=>d("error",o,w)),p},xn.success=gh("success"),xn.info=gh("info"),xn.error=gh("error"),xn.warning=gh("warning"),xn.warn=xn.warning,xn.dark=(t,e)=>gd(t,tp("default",{theme:"dark",...e})),xn.dismiss=function(t){(function(e){var n;if(HT()){if(e==null||bc(n=e)||Od(n))oo.forEach(r=>{r.removeToast(e)});else if(e&&("containerId"in e||"id"in e)){const r=oo.get(e.containerId);r?r.removeToast(e.id):oo.forEach(i=>{i.removeToast(e.id)})}}else _d=_d.filter(r=>e!=null&&r.options.toastId!==e)})(t)},xn.clearWaitingQueue=function(t){t===void 0&&(t={}),oo.forEach(e=>{!e.props.limit||t.containerId&&e.id!==t.containerId||e.clearQueue()})},xn.isActive=UT,xn.update=function(t,e){e===void 0&&(e={});const n=((r,i)=>{var o;let{containerId:a}=i;return(o=oo.get(a||1))==null?void 0:o.toasts.get(r)})(t,e);if(n){const{props:r,content:i}=n,o={delay:100,...r,...e,toastId:e.toastId||t,updateId:zT()};o.toastId!==t&&(o.staleId=t);const a=o.render||i;delete o.render,gd(a,o)}},xn.done=t=>{xn.update(t,{progress:1})},xn.onChange=function(t){return Lm.add(t),()=>{Lm.delete(t)}},xn.play=t=>iw(!0,t),xn.pause=t=>iw(!1,t);const A2=typeof window<"u"?X.useLayoutEffect:X.useEffect,mh=t=>{let{theme:e,type:n,isLoading:r,...i}=t;return X.createElement("svg",{viewBox:"0 0 24 24",width:"100%",height:"100%",fill:e==="colored"?"currentColor":`var(--toastify-icon-color-${n})`,...i})},_g={info:function(t){return X.createElement(mh,{...t},X.createElement("path",{d:"M12 0a12 12 0 1012 12A12.013 12.013 0 0012 0zm.25 5a1.5 1.5 0 11-1.5 1.5 1.5 1.5 0 011.5-1.5zm2.25 13.5h-4a1 1 0 010-2h.75a.25.25 0 00.25-.25v-4.5a.25.25 0 00-.25-.25h-.75a1 1 0 010-2h1a2 2 0 012 2v4.75a.25.25 0 00.25.25h.75a1 1 0 110 2z"}))},warning:function(t){return X.createElement(mh,{...t},X.createElement("path",{d:"M23.32 17.191L15.438 2.184C14.728.833 13.416 0 11.996 0c-1.42 0-2.733.833-3.443 2.184L.533 17.448a4.744 4.744 0 000 4.368C1.243 23.167 2.555 24 3.975 24h16.05C22.22 24 24 22.044 24 19.632c0-.904-.251-1.746-.68-2.44zm-9.622 1.46c0 1.033-.724 1.823-1.698 1.823s-1.698-.79-1.698-1.822v-.043c0-1.028.724-1.822 1.698-1.822s1.698.79 1.698 1.822v.043zm.039-12.285l-.84 8.06c-.057.581-.408.943-.897.943-.49 0-.84-.367-.896-.942l-.84-8.065c-.057-.624.25-1.095.779-1.095h1.91c.528.005.84.476.784 1.1z"}))},success:function(t){return X.createElement(mh,{...t},X.createElement("path",{d:"M12 0a12 12 0 1012 12A12.014 12.014 0 0012 0zm6.927 8.2l-6.845 9.289a1.011 1.011 0 01-1.43.188l-4.888-3.908a1 1 0 111.25-1.562l4.076 3.261 6.227-8.451a1 1 0 111.61 1.183z"}))},error:function(t){return X.createElement(mh,{...t},X.createElement("path",{d:"M11.983 0a12.206 12.206 0 00-8.51 3.653A11.8 11.8 0 000 12.207 11.779 11.779 0 0011.8 24h.214A12.111 12.111 0 0024 11.791 11.766 11.766 0 0011.983 0zM10.5 16.542a1.476 1.476 0 011.449-1.53h.027a1.527 1.527 0 011.523 1.47 1.475 1.475 0 01-1.449 1.53h-.027a1.529 1.529 0 01-1.523-1.47zM11 12.5v-6a1 1 0 012 0v6a1 1 0 11-2 0z"}))},spinner:function(){return X.createElement("div",{className:"Toastify__spinner"})}},I2=t=>{const{isRunning:e,preventExitTransition:n,toastRef:r,eventHandlers:i,playToast:o}=P2(t),{closeButton:a,children:c,autoClose:d,onClick:p,type:w,hideProgressBar:m,closeToast:T,transition:E,position:A,className:I,style:j,bodyClassName:_,bodyStyle:U,progressClassName:G,progressStyle:re,updateId:q,role:se,progress:S,rtl:ue,toastId:ae,deleteToast:Ue,isIn:nt,isLoading:et,closeOnClick:De,theme:Me}=t,fe=bl("Toastify__toast",`Toastify__toast-theme--${Me}`,`Toastify__toast--${w}`,{"Toastify__toast--rtl":ue},{"Toastify__toast--close-on-click":De}),me=Zo(I)?I({rtl:ue,position:A,type:w,defaultClassName:fe}):bl(fe,I),Pe=function(Se){let{theme:je,type:Qe,isLoading:Ye,icon:Ke}=Se,qe=null;const ot={theme:je,type:Qe};return Ke===!1||(Zo(Ke)?qe=Ke({...ot,isLoading:Ye}):X.isValidElement(Ke)?qe=X.cloneElement(Ke,ot):Ye?qe=_g.spinner():(ct=>ct in _g)(Qe)&&(qe=_g[Qe](ot))),qe}(t),Be=!!S||!d,Ze={closeToast:T,type:w,theme:Me};let ve=null;return a===!1||(ve=Zo(a)?a(Ze):X.isValidElement(a)?X.cloneElement(a,Ze):function(Se){let{closeToast:je,theme:Qe,ariaLabel:Ye="close"}=Se;return X.createElement("button",{className:`Toastify__close-button Toastify__close-button--${Qe}`,type:"button",onClick:Ke=>{Ke.stopPropagation(),je(Ke)},"aria-label":Ye},X.createElement("svg",{"aria-hidden":"true",viewBox:"0 0 14 16"},X.createElement("path",{fillRule:"evenodd",d:"M7.71 8.23l3.75 3.75-1.48 1.48-3.75-3.75-3.75 3.75L1 11.98l3.75-3.75L1 4.48 2.48 3l3.75 3.75L9.98 3l1.48 1.48-3.75 3.75z"})))}(Ze)),X.createElement(E,{isIn:nt,done:Ue,position:A,preventExitTransition:n,nodeRef:r,playToast:o},X.createElement("div",{id:ae,onClick:p,"data-in":nt,className:me,...i,style:j,ref:r},X.createElement("div",{...nt&&{role:se},className:Zo(_)?_({type:w}):bl("Toastify__toast-body",_),style:U},Pe!=null&&X.createElement("div",{className:bl("Toastify__toast-icon",{"Toastify--animate-icon Toastify__zoom-enter":!et})},Pe),X.createElement("div",null,c)),ve,X.createElement(O2,{...q&&!Be?{key:`pb-${q}`}:{},rtl:ue,theme:Me,delay:d,isRunning:e,isIn:nt,closeToast:T,hide:m,type:w,style:re,className:G,controlledProgress:Be,progress:S||0})))},Dp=function(t,e){return e===void 0&&(e=!1),{enter:`Toastify--animate Toastify__${t}-enter`,exit:`Toastify--animate Toastify__${t}-exit`,appendPosition:e}},M2=kp(Dp("bounce",!0));kp(Dp("slide",!0));kp(Dp("zoom"));kp(Dp("flip"));const L2={position:"top-right",transition:M2,autoClose:5e3,closeButton:!0,pauseOnHover:!0,pauseOnFocusLoss:!0,draggable:"touch",draggablePercent:80,draggableDirection:"x",role:"alert",theme:"light"};function F2(t){let e={...L2,...t};const n=t.stacked,[r,i]=X.useState(!0),o=X.useRef(null),{getToastToRender:a,isToastActive:c,count:d}=D2(e),{className:p,style:w,rtl:m,containerId:T}=e;function E(I){const j=bl("Toastify__toast-container",`Toastify__toast-container--${I}`,{"Toastify__toast-container--rtl":m});return Zo(p)?p({position:I,rtl:m,defaultClassName:j}):bl(j,Lh(p))}function A(){n&&(i(!0),xn.play())}return A2(()=>{if(n){var I;const j=o.current.querySelectorAll('[data-in="true"]'),_=12,U=(I=e.position)==null?void 0:I.includes("top");let G=0,re=0;Array.from(j).reverse().forEach((q,se)=>{const S=q;S.classList.add("Toastify__toast--stacked"),se>0&&(S.dataset.collapsed=`${r}`),S.dataset.pos||(S.dataset.pos=U?"top":"bot");const ue=G*(r?.2:1)+(r?0:_*se);S.style.setProperty("--y",`${U?ue:-1*ue}px`),S.style.setProperty("--g",`${_}`),S.style.setProperty("--s",""+(1-(r?re:0))),G+=S.offsetHeight,re+=.025})}},[r,d,n]),X.createElement("div",{ref:o,className:"Toastify",id:T,onMouseEnter:()=>{n&&(i(!1),xn.pause())},onMouseLeave:A},a((I,j)=>{const _=j.length?{...w}:{...w,pointerEvents:"none"};return X.createElement("div",{className:E(I),style:_,key:`container-${I}`},j.map(U=>{let{content:G,props:re}=U;return X.createElement(I2,{...re,stacked:n,collapseAll:A,isIn:c(re.toastId,re.containerId),style:re.style,key:`toast-${re.key}`},G)}))}))}function N2(){return Re.jsxs("svg",{width:"22",height:"22",viewBox:"0 0 22 22",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[Re.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11 1C16.5222 1 21 5.47676 21 11C21 16.5222 16.5222 21 11 21C5.47676 21 1 16.5222 1 11C1 5.47676 5.47676 1 11 1Z",stroke:"#E01B00",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),Re.jsx("path",{d:"M10.9942 6.89636V11.6737",stroke:"#E01B00",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),Re.jsx("path",{d:"M10.9941 15.1038H11.0049",stroke:"#E01B00",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]})}function j2(){return Re.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[Re.jsx("rect",{width:"24",height:"24",rx:"12",fill:"#009D4F"}),Re.jsx("path",{d:"M7.25244 12L10.4174 15.165L16.7474 8.83496",stroke:"white",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]})}function B2(){return Re.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[Re.jsx("path",{d:"M12 7.73684V13.4211M12 21C7.69215 21 5.53823 21 4.29308 20.0953C3.20701 19.3063 2.50676 18.0934 2.36643 16.7583C2.20555 15.2276 3.28252 13.3623 5.43644 9.63158C7.59036 5.90088 8.66732 4.03553 10.0734 3.40952C11.2998 2.86349 12.7002 2.86349 13.9266 3.40952C15.3327 4.03553 16.4096 5.90088 18.5636 9.63158C20.7175 13.3623 21.7944 15.2276 21.6336 16.7583C21.4932 18.0934 20.793 19.3063 19.7069 20.0953C18.4618 21 16.3078 21 12 21Z",stroke:"#FFB600","stroke-width":"1.5","stroke-linecap":"round"}),Re.jsx("path",{d:"M12.9473 16.263C12.9473 16.7863 12.5232 17.2104 12 17.2104C11.4768 17.2104 11.0526 16.7863 11.0526 16.263C11.0526 15.7398 11.4768 15.3157 12 15.3157C12.5232 15.3157 12.9473 15.7398 12.9473 16.263Z",fill:"#FFB600"})]})}const Wv={paddingLeft:"16px",borderLeft:"2px solid",boxShadow:"none",fontFamily:"inherit"},$2=({closeToast:t})=>Re.jsx("i",{className:"material-icons",onClick:t,style:{cursor:"pointer"},children:Re.jsx("svg",{width:"24",height:"25",viewBox:"0 0 24 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:Re.jsx("path",{d:"M7.05086 6.13616C6.66033 5.74563 6.02717 5.74563 5.63664 6.13616C5.24612 6.52668 5.24612 7.15984 5.63664 7.55037L10.5864 12.5001L5.63664 17.4499C5.24612 17.8404 5.24612 18.4736 5.63664 18.8641C6.02717 19.2546 6.66033 19.2546 7.05086 18.8641L12.0006 13.9143L16.9504 18.8641C17.3409 19.2546 17.974 19.2546 18.3646 18.8641C18.7551 18.4736 18.7551 17.8404 18.3646 17.4499L13.4148 12.5001L18.3646 7.55037C18.7551 7.15984 18.7551 6.52668 18.3646 6.13616C17.974 5.74563 17.3409 5.74563 16.9504 6.13616L12.0006 11.0859L7.05086 6.13616Z",fill:"#85858A"})})}),zv=(t,e)=>{xn.success(t,{icon:Re.jsx(j2,{}),bodyStyle:{},position:"bottom-right",style:{...Wv,background:ki.successLight,borderColor:ki.success,color:ki.success},...e})},Wd=(t,e)=>{xn.error(t,{icon:Re.jsx(N2,{}),position:"bottom-right",style:{...Wv,background:ki.dangerLight,borderColor:ki.danger,color:ki.danger},...e})},V2=(t,e)=>{xn.error(t,{icon:Re.jsx(B2,{}),position:"bottom-right",style:{...Wv,background:ki.warningLight,borderColor:ki.warning,color:ki.warning},...e})},H2=t=>{xn(t,{closeButton:$2,toastId:"notify",position:"top-right",hideProgressBar:!0,containerId:"toastifyNotification",style:{padding:"12px 24px 12px 0",paddingLeft:"16px",fontFamily:"inherit",width:"610px",minHeight:"72px",color:ki.textPrimary}})};function YT(t){let e=null;return()=>(e==null&&(e=t()),e)}function U2(t,e){return t.filter(n=>n!==e)}function W2(t,e){const n=new Set,r=o=>n.add(o);t.forEach(r),e.forEach(r);const i=[];return n.forEach(o=>i.push(o)),i}class z2{enter(e){const n=this.entered.length,r=i=>this.isNodeInDocument(i)&&(!i.contains||i.contains(e));return this.entered=W2(this.entered.filter(r),[e]),n===0&&this.entered.length>0}leave(e){const n=this.entered.length;return this.entered=U2(this.entered.filter(this.isNodeInDocument),e),n>0&&this.entered.length===0}reset(){this.entered=[]}constructor(e){this.entered=[],this.isNodeInDocument=e}}class Y2{initializeExposedProperties(){Object.keys(this.config.exposeProperties).forEach(e=>{Object.defineProperty(this.item,e,{configurable:!0,enumerable:!0,get(){return console.warn(`Browser doesn't allow reading "${e}" until the drop event.`),null}})})}loadDataTransfer(e){if(e){const n={};Object.keys(this.config.exposeProperties).forEach(r=>{const i=this.config.exposeProperties[r];i!=null&&(n[r]={value:i(e,this.config.matchesTypes),configurable:!0,enumerable:!0})}),Object.defineProperties(this.item,n)}}canDrag(){return!0}beginDrag(){return this.item}isDragging(e,n){return n===e.getSourceId()}endDrag(){}constructor(e){this.config=e,this.item={},this.initializeExposedProperties()}}const GT="__NATIVE_FILE__",qT="__NATIVE_URL__",XT="__NATIVE_TEXT__",KT="__NATIVE_HTML__",ow=Object.freeze(Object.defineProperty({__proto__:null,FILE:GT,HTML:KT,TEXT:XT,URL:qT},Symbol.toStringTag,{value:"Module"}));function Rg(t,e,n){const r=e.reduce((i,o)=>i||t.getData(o),"");return r??n}const Fm={[GT]:{exposeProperties:{files:t=>Array.prototype.slice.call(t.files),items:t=>t.items,dataTransfer:t=>t},matchesTypes:["Files"]},[KT]:{exposeProperties:{html:(t,e)=>Rg(t,e,""),dataTransfer:t=>t},matchesTypes:["Html","text/html"]},[qT]:{exposeProperties:{urls:(t,e)=>Rg(t,e,"").split(`
4
- `),dataTransfer:t=>t},matchesTypes:["Url","text/uri-list"]},[XT]:{exposeProperties:{text:(t,e)=>Rg(t,e,""),dataTransfer:t=>t},matchesTypes:["Text","text/plain"]}};function G2(t,e){const n=Fm[t];if(!n)throw new Error(`native type ${t} has no configuration`);const r=new Y2(n);return r.loadDataTransfer(e),r}function Ag(t){if(!t)return null;const e=Array.prototype.slice.call(t.types||[]);return Object.keys(Fm).filter(n=>{const r=Fm[n];return r!=null&&r.matchesTypes?r.matchesTypes.some(i=>e.indexOf(i)>-1):!1})[0]||null}const q2=YT(()=>/firefox/i.test(navigator.userAgent)),ZT=YT(()=>!!window.safari);class sw{interpolate(e){const{xs:n,ys:r,c1s:i,c2s:o,c3s:a}=this;let c=n.length-1;if(e===n[c])return r[c];let d=0,p=a.length-1,w;for(;d<=p;){w=Math.floor(.5*(d+p));const E=n[w];if(E<e)d=w+1;else if(E>e)p=w-1;else return r[w]}c=Math.max(0,p);const m=e-n[c],T=m*m;return r[c]+i[c]*m+o[c]*T+a[c]*m*T}constructor(e,n){const{length:r}=e,i=[];for(let E=0;E<r;E++)i.push(E);i.sort((E,A)=>e[E]<e[A]?-1:1);const o=[],a=[];let c,d;for(let E=0;E<r-1;E++)c=e[E+1]-e[E],d=n[E+1]-n[E],o.push(c),a.push(d/c);const p=[a[0]];for(let E=0;E<o.length-1;E++){const A=a[E],I=a[E+1];if(A*I<=0)p.push(0);else{c=o[E];const j=o[E+1],_=c+j;p.push(3*_/((_+j)/A+(_+c)/I))}}p.push(a[a.length-1]);const w=[],m=[];let T;for(let E=0;E<p.length-1;E++){T=a[E];const A=p[E],I=1/o[E],j=A+p[E+1]-T-T;w.push((T-A-j)*I),m.push(j*I*I)}this.xs=e,this.ys=n,this.c1s=p,this.c2s=w,this.c3s=m}}const X2=1;function JT(t){const e=t.nodeType===X2?t:t.parentElement;if(!e)return null;const{top:n,left:r}=e.getBoundingClientRect();return{x:r,y:n}}function vh(t){return{x:t.clientX,y:t.clientY}}function K2(t){var e;return t.nodeName==="IMG"&&(q2()||!(!((e=document.documentElement)===null||e===void 0)&&e.contains(t)))}function Z2(t,e,n,r){let i=t?e.width:n,o=t?e.height:r;return ZT()&&t&&(o/=window.devicePixelRatio,i/=window.devicePixelRatio),{dragPreviewWidth:i,dragPreviewHeight:o}}function J2(t,e,n,r,i){const o=K2(e),c=JT(o?t:e),d={x:n.x-c.x,y:n.y-c.y},{offsetWidth:p,offsetHeight:w}=t,{anchorX:m,anchorY:T}=r,{dragPreviewWidth:E,dragPreviewHeight:A}=Z2(o,e,p,w),I=()=>{let se=new sw([0,.5,1],[d.y,d.y/w*A,d.y+A-w]).interpolate(T);return ZT()&&o&&(se+=(window.devicePixelRatio-1)*A),se},j=()=>new sw([0,.5,1],[d.x,d.x/p*E,d.x+E-p]).interpolate(m),{offsetX:_,offsetY:U}=i,G=_===0||_,re=U===0||U;return{x:G?_:j(),y:re?U:I()}}let Q2=class{get window(){if(this.globalContext)return this.globalContext;if(typeof window<"u")return window}get document(){var e;return!((e=this.globalContext)===null||e===void 0)&&e.document?this.globalContext.document:this.window?this.window.document:void 0}get rootElement(){var e;return((e=this.optionsArgs)===null||e===void 0?void 0:e.rootElement)||this.window}constructor(e,n){this.ownerDocument=null,this.globalContext=e,this.optionsArgs=n}};function eF(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function aw(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable}))),r.forEach(function(i){eF(t,i,n[i])})}return t}class tF{profile(){var e,n;return{sourcePreviewNodes:this.sourcePreviewNodes.size,sourcePreviewNodeOptions:this.sourcePreviewNodeOptions.size,sourceNodeOptions:this.sourceNodeOptions.size,sourceNodes:this.sourceNodes.size,dragStartSourceIds:((e=this.dragStartSourceIds)===null||e===void 0?void 0:e.length)||0,dropTargetIds:this.dropTargetIds.length,dragEnterTargetIds:this.dragEnterTargetIds.length,dragOverTargetIds:((n=this.dragOverTargetIds)===null||n===void 0?void 0:n.length)||0}}get window(){return this.options.window}get document(){return this.options.document}get rootElement(){return this.options.rootElement}setup(){const e=this.rootElement;if(e!==void 0){if(e.__isReactDndBackendSetUp)throw new Error("Cannot have two HTML5 backends at the same time.");e.__isReactDndBackendSetUp=!0,this.addEventListeners(e)}}teardown(){const e=this.rootElement;if(e!==void 0&&(e.__isReactDndBackendSetUp=!1,this.removeEventListeners(this.rootElement),this.clearCurrentDragSourceNode(),this.asyncEndDragFrameId)){var n;(n=this.window)===null||n===void 0||n.cancelAnimationFrame(this.asyncEndDragFrameId)}}connectDragPreview(e,n,r){return this.sourcePreviewNodeOptions.set(e,r),this.sourcePreviewNodes.set(e,n),()=>{this.sourcePreviewNodes.delete(e),this.sourcePreviewNodeOptions.delete(e)}}connectDragSource(e,n,r){this.sourceNodes.set(e,n),this.sourceNodeOptions.set(e,r);const i=a=>this.handleDragStart(a,e),o=a=>this.handleSelectStart(a);return n.setAttribute("draggable","true"),n.addEventListener("dragstart",i),n.addEventListener("selectstart",o),()=>{this.sourceNodes.delete(e),this.sourceNodeOptions.delete(e),n.removeEventListener("dragstart",i),n.removeEventListener("selectstart",o),n.setAttribute("draggable","false")}}connectDropTarget(e,n){const r=a=>this.handleDragEnter(a,e),i=a=>this.handleDragOver(a,e),o=a=>this.handleDrop(a,e);return n.addEventListener("dragenter",r),n.addEventListener("dragover",i),n.addEventListener("drop",o),()=>{n.removeEventListener("dragenter",r),n.removeEventListener("dragover",i),n.removeEventListener("drop",o)}}addEventListeners(e){e.addEventListener&&(e.addEventListener("dragstart",this.handleTopDragStart),e.addEventListener("dragstart",this.handleTopDragStartCapture,!0),e.addEventListener("dragend",this.handleTopDragEndCapture,!0),e.addEventListener("dragenter",this.handleTopDragEnter),e.addEventListener("dragenter",this.handleTopDragEnterCapture,!0),e.addEventListener("dragleave",this.handleTopDragLeaveCapture,!0),e.addEventListener("dragover",this.handleTopDragOver),e.addEventListener("dragover",this.handleTopDragOverCapture,!0),e.addEventListener("drop",this.handleTopDrop),e.addEventListener("drop",this.handleTopDropCapture,!0))}removeEventListeners(e){e.removeEventListener&&(e.removeEventListener("dragstart",this.handleTopDragStart),e.removeEventListener("dragstart",this.handleTopDragStartCapture,!0),e.removeEventListener("dragend",this.handleTopDragEndCapture,!0),e.removeEventListener("dragenter",this.handleTopDragEnter),e.removeEventListener("dragenter",this.handleTopDragEnterCapture,!0),e.removeEventListener("dragleave",this.handleTopDragLeaveCapture,!0),e.removeEventListener("dragover",this.handleTopDragOver),e.removeEventListener("dragover",this.handleTopDragOverCapture,!0),e.removeEventListener("drop",this.handleTopDrop),e.removeEventListener("drop",this.handleTopDropCapture,!0))}getCurrentSourceNodeOptions(){const e=this.monitor.getSourceId(),n=this.sourceNodeOptions.get(e);return aw({dropEffect:this.altKeyPressed?"copy":"move"},n||{})}getCurrentDropEffect(){return this.isDraggingNativeItem()?"copy":this.getCurrentSourceNodeOptions().dropEffect}getCurrentSourcePreviewNodeOptions(){const e=this.monitor.getSourceId(),n=this.sourcePreviewNodeOptions.get(e);return aw({anchorX:.5,anchorY:.5,captureDraggingState:!1},n||{})}isDraggingNativeItem(){const e=this.monitor.getItemType();return Object.keys(ow).some(n=>ow[n]===e)}beginDragNativeItem(e,n){this.clearCurrentDragSourceNode(),this.currentNativeSource=G2(e,n),this.currentNativeHandle=this.registry.addSource(e,this.currentNativeSource),this.actions.beginDrag([this.currentNativeHandle])}setCurrentDragSourceNode(e){this.clearCurrentDragSourceNode(),this.currentDragSourceNode=e;const n=1e3;this.mouseMoveTimeoutTimer=setTimeout(()=>{var r;return(r=this.rootElement)===null||r===void 0?void 0:r.addEventListener("mousemove",this.endDragIfSourceWasRemovedFromDOM,!0)},n)}clearCurrentDragSourceNode(){if(this.currentDragSourceNode){if(this.currentDragSourceNode=null,this.rootElement){var e;(e=this.window)===null||e===void 0||e.clearTimeout(this.mouseMoveTimeoutTimer||void 0),this.rootElement.removeEventListener("mousemove",this.endDragIfSourceWasRemovedFromDOM,!0)}return this.mouseMoveTimeoutTimer=null,!0}return!1}handleDragStart(e,n){e.defaultPrevented||(this.dragStartSourceIds||(this.dragStartSourceIds=[]),this.dragStartSourceIds.unshift(n))}handleDragEnter(e,n){this.dragEnterTargetIds.unshift(n)}handleDragOver(e,n){this.dragOverTargetIds===null&&(this.dragOverTargetIds=[]),this.dragOverTargetIds.unshift(n)}handleDrop(e,n){this.dropTargetIds.unshift(n)}constructor(e,n,r){this.sourcePreviewNodes=new Map,this.sourcePreviewNodeOptions=new Map,this.sourceNodes=new Map,this.sourceNodeOptions=new Map,this.dragStartSourceIds=null,this.dropTargetIds=[],this.dragEnterTargetIds=[],this.currentNativeSource=null,this.currentNativeHandle=null,this.currentDragSourceNode=null,this.altKeyPressed=!1,this.mouseMoveTimeoutTimer=null,this.asyncEndDragFrameId=null,this.dragOverTargetIds=null,this.lastClientOffset=null,this.hoverRafId=null,this.getSourceClientOffset=i=>{const o=this.sourceNodes.get(i);return o&&JT(o)||null},this.endDragNativeItem=()=>{this.isDraggingNativeItem()&&(this.actions.endDrag(),this.currentNativeHandle&&this.registry.removeSource(this.currentNativeHandle),this.currentNativeHandle=null,this.currentNativeSource=null)},this.isNodeInDocument=i=>!!(i&&this.document&&this.document.body&&this.document.body.contains(i)),this.endDragIfSourceWasRemovedFromDOM=()=>{const i=this.currentDragSourceNode;i==null||this.isNodeInDocument(i)||(this.clearCurrentDragSourceNode()&&this.monitor.isDragging()&&this.actions.endDrag(),this.cancelHover())},this.scheduleHover=i=>{this.hoverRafId===null&&typeof requestAnimationFrame<"u"&&(this.hoverRafId=requestAnimationFrame(()=>{this.monitor.isDragging()&&this.actions.hover(i||[],{clientOffset:this.lastClientOffset}),this.hoverRafId=null}))},this.cancelHover=()=>{this.hoverRafId!==null&&typeof cancelAnimationFrame<"u"&&(cancelAnimationFrame(this.hoverRafId),this.hoverRafId=null)},this.handleTopDragStartCapture=()=>{this.clearCurrentDragSourceNode(),this.dragStartSourceIds=[]},this.handleTopDragStart=i=>{if(i.defaultPrevented)return;const{dragStartSourceIds:o}=this;this.dragStartSourceIds=null;const a=vh(i);this.monitor.isDragging()&&(this.actions.endDrag(),this.cancelHover()),this.actions.beginDrag(o||[],{publishSource:!1,getSourceClientOffset:this.getSourceClientOffset,clientOffset:a});const{dataTransfer:c}=i,d=Ag(c);if(this.monitor.isDragging()){if(c&&typeof c.setDragImage=="function"){const w=this.monitor.getSourceId(),m=this.sourceNodes.get(w),T=this.sourcePreviewNodes.get(w)||m;if(T){const{anchorX:E,anchorY:A,offsetX:I,offsetY:j}=this.getCurrentSourcePreviewNodeOptions(),G=J2(m,T,a,{anchorX:E,anchorY:A},{offsetX:I,offsetY:j});c.setDragImage(T,G.x,G.y)}}try{c==null||c.setData("application/json",{})}catch{}this.setCurrentDragSourceNode(i.target);const{captureDraggingState:p}=this.getCurrentSourcePreviewNodeOptions();p?this.actions.publishDragSource():setTimeout(()=>this.actions.publishDragSource(),0)}else if(d)this.beginDragNativeItem(d);else{if(c&&!c.types&&(i.target&&!i.target.hasAttribute||!i.target.hasAttribute("draggable")))return;i.preventDefault()}},this.handleTopDragEndCapture=()=>{this.clearCurrentDragSourceNode()&&this.monitor.isDragging()&&this.actions.endDrag(),this.cancelHover()},this.handleTopDragEnterCapture=i=>{if(this.dragEnterTargetIds=[],this.isDraggingNativeItem()){var o;(o=this.currentNativeSource)===null||o===void 0||o.loadDataTransfer(i.dataTransfer)}if(!this.enterLeaveCounter.enter(i.target)||this.monitor.isDragging())return;const{dataTransfer:c}=i,d=Ag(c);d&&this.beginDragNativeItem(d,c)},this.handleTopDragEnter=i=>{const{dragEnterTargetIds:o}=this;if(this.dragEnterTargetIds=[],!this.monitor.isDragging())return;this.altKeyPressed=i.altKey,o.length>0&&this.actions.hover(o,{clientOffset:vh(i)}),o.some(c=>this.monitor.canDropOnTarget(c))&&(i.preventDefault(),i.dataTransfer&&(i.dataTransfer.dropEffect=this.getCurrentDropEffect()))},this.handleTopDragOverCapture=i=>{if(this.dragOverTargetIds=[],this.isDraggingNativeItem()){var o;(o=this.currentNativeSource)===null||o===void 0||o.loadDataTransfer(i.dataTransfer)}},this.handleTopDragOver=i=>{const{dragOverTargetIds:o}=this;if(this.dragOverTargetIds=[],!this.monitor.isDragging()){i.preventDefault(),i.dataTransfer&&(i.dataTransfer.dropEffect="none");return}this.altKeyPressed=i.altKey,this.lastClientOffset=vh(i),this.scheduleHover(o),(o||[]).some(c=>this.monitor.canDropOnTarget(c))?(i.preventDefault(),i.dataTransfer&&(i.dataTransfer.dropEffect=this.getCurrentDropEffect())):this.isDraggingNativeItem()?i.preventDefault():(i.preventDefault(),i.dataTransfer&&(i.dataTransfer.dropEffect="none"))},this.handleTopDragLeaveCapture=i=>{this.isDraggingNativeItem()&&i.preventDefault(),this.enterLeaveCounter.leave(i.target)&&(this.isDraggingNativeItem()&&setTimeout(()=>this.endDragNativeItem(),0),this.cancelHover())},this.handleTopDropCapture=i=>{if(this.dropTargetIds=[],this.isDraggingNativeItem()){var o;i.preventDefault(),(o=this.currentNativeSource)===null||o===void 0||o.loadDataTransfer(i.dataTransfer)}else Ag(i.dataTransfer)&&i.preventDefault();this.enterLeaveCounter.reset()},this.handleTopDrop=i=>{const{dropTargetIds:o}=this;this.dropTargetIds=[],this.actions.hover(o,{clientOffset:vh(i)}),this.actions.drop({dropEffect:this.getCurrentDropEffect()}),this.isDraggingNativeItem()?this.endDragNativeItem():this.monitor.isDragging()&&this.actions.endDrag(),this.cancelHover()},this.handleSelectStart=i=>{const o=i.target;typeof o.dragDrop=="function"&&(o.tagName==="INPUT"||o.tagName==="SELECT"||o.tagName==="TEXTAREA"||o.isContentEditable||(i.preventDefault(),o.dragDrop()))},this.options=new Q2(n,r),this.actions=e.getActions(),this.monitor=e.getMonitor(),this.registry=e.getRegistry(),this.enterLeaveCounter=new z2(this.isNodeInDocument)}}let yh;function nF(){return yh||(yh=new Image,yh.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=="),yh}const QT=function(e,n,r){return new tF(e,n,r)};var wc=[],rF=function(){return wc.some(function(t){return t.activeTargets.length>0})},iF=function(){return wc.some(function(t){return t.skippedTargets.length>0})},lw="ResizeObserver loop completed with undelivered notifications.",oF=function(){var t;typeof ErrorEvent=="function"?t=new ErrorEvent("error",{message:lw}):(t=document.createEvent("Event"),t.initEvent("error",!1,!1),t.message=lw),window.dispatchEvent(t)},Rd;(function(t){t.BORDER_BOX="border-box",t.CONTENT_BOX="content-box",t.DEVICE_PIXEL_CONTENT_BOX="device-pixel-content-box"})(Rd||(Rd={}));var xc=function(t){return Object.freeze(t)},sF=function(){function t(e,n){this.inlineSize=e,this.blockSize=n,xc(this)}return t}(),eC=function(){function t(e,n,r,i){return this.x=e,this.y=n,this.width=r,this.height=i,this.top=this.y,this.left=this.x,this.bottom=this.top+this.height,this.right=this.left+this.width,xc(this)}return t.prototype.toJSON=function(){var e=this,n=e.x,r=e.y,i=e.top,o=e.right,a=e.bottom,c=e.left,d=e.width,p=e.height;return{x:n,y:r,top:i,right:o,bottom:a,left:c,width:d,height:p}},t.fromRect=function(e){return new t(e.x,e.y,e.width,e.height)},t}(),Yv=function(t){return t instanceof SVGElement&&"getBBox"in t},tC=function(t){if(Yv(t)){var e=t.getBBox(),n=e.width,r=e.height;return!n&&!r}var i=t,o=i.offsetWidth,a=i.offsetHeight;return!(o||a||t.getClientRects().length)},uw=function(t){var e;if(t instanceof Element)return!0;var n=(e=t==null?void 0:t.ownerDocument)===null||e===void 0?void 0:e.defaultView;return!!(n&&t instanceof n.Element)},aF=function(t){switch(t.tagName){case"INPUT":if(t.type!=="image")break;case"VIDEO":case"AUDIO":case"EMBED":case"OBJECT":case"CANVAS":case"IFRAME":case"IMG":return!0}return!1},md=typeof window<"u"?window:{},bh=new WeakMap,cw=/auto|scroll/,lF=/^tb|vertical/,uF=/msie|trident/i.test(md.navigator&&md.navigator.userAgent),Ma=function(t){return parseFloat(t||"0")},Cf=function(t,e,n){return t===void 0&&(t=0),e===void 0&&(e=0),n===void 0&&(n=!1),new sF((n?e:t)||0,(n?t:e)||0)},fw=xc({devicePixelContentBoxSize:Cf(),borderBoxSize:Cf(),contentBoxSize:Cf(),contentRect:new eC(0,0,0,0)}),nC=function(t,e){if(e===void 0&&(e=!1),bh.has(t)&&!e)return bh.get(t);if(tC(t))return bh.set(t,fw),fw;var n=getComputedStyle(t),r=Yv(t)&&t.ownerSVGElement&&t.getBBox(),i=!uF&&n.boxSizing==="border-box",o=lF.test(n.writingMode||""),a=!r&&cw.test(n.overflowY||""),c=!r&&cw.test(n.overflowX||""),d=r?0:Ma(n.paddingTop),p=r?0:Ma(n.paddingRight),w=r?0:Ma(n.paddingBottom),m=r?0:Ma(n.paddingLeft),T=r?0:Ma(n.borderTopWidth),E=r?0:Ma(n.borderRightWidth),A=r?0:Ma(n.borderBottomWidth),I=r?0:Ma(n.borderLeftWidth),j=m+p,_=d+w,U=I+E,G=T+A,re=c?t.offsetHeight-G-t.clientHeight:0,q=a?t.offsetWidth-U-t.clientWidth:0,se=i?j+U:0,S=i?_+G:0,ue=r?r.width:Ma(n.width)-se-q,ae=r?r.height:Ma(n.height)-S-re,Ue=ue+j+q+U,nt=ae+_+re+G,et=xc({devicePixelContentBoxSize:Cf(Math.round(ue*devicePixelRatio),Math.round(ae*devicePixelRatio),o),borderBoxSize:Cf(Ue,nt,o),contentBoxSize:Cf(ue,ae,o),contentRect:new eC(m,d,ue,ae)});return bh.set(t,et),et},rC=function(t,e,n){var r=nC(t,n),i=r.borderBoxSize,o=r.contentBoxSize,a=r.devicePixelContentBoxSize;switch(e){case Rd.DEVICE_PIXEL_CONTENT_BOX:return a;case Rd.BORDER_BOX:return i;default:return o}},cF=function(){function t(e){var n=nC(e);this.target=e,this.contentRect=n.contentRect,this.borderBoxSize=xc([n.borderBoxSize]),this.contentBoxSize=xc([n.contentBoxSize]),this.devicePixelContentBoxSize=xc([n.devicePixelContentBoxSize])}return t}(),iC=function(t){if(tC(t))return 1/0;for(var e=0,n=t.parentNode;n;)e+=1,n=n.parentNode;return e},fF=function(){var t=1/0,e=[];wc.forEach(function(a){if(a.activeTargets.length!==0){var c=[];a.activeTargets.forEach(function(p){var w=new cF(p.target),m=iC(p.target);c.push(w),p.lastReportedSize=rC(p.target,p.observedBox),m<t&&(t=m)}),e.push(function(){a.callback.call(a.observer,c,a.observer)}),a.activeTargets.splice(0,a.activeTargets.length)}});for(var n=0,r=e;n<r.length;n++){var i=r[n];i()}return t},dw=function(t){wc.forEach(function(n){n.activeTargets.splice(0,n.activeTargets.length),n.skippedTargets.splice(0,n.skippedTargets.length),n.observationTargets.forEach(function(i){i.isActive()&&(iC(i.target)>t?n.activeTargets.push(i):n.skippedTargets.push(i))})})},dF=function(){var t=0;for(dw(t);rF();)t=fF(),dw(t);return iF()&&oF(),t>0},Ig,oC=[],hF=function(){return oC.splice(0).forEach(function(t){return t()})},pF=function(t){if(!Ig){var e=0,n=document.createTextNode(""),r={characterData:!0};new MutationObserver(function(){return hF()}).observe(n,r),Ig=function(){n.textContent="".concat(e?e--:e++)}}oC.push(t),Ig()},gF=function(t){pF(function(){requestAnimationFrame(t)})},Fh=0,mF=function(){return!!Fh},vF=250,yF={attributes:!0,characterData:!0,childList:!0,subtree:!0},hw=["resize","load","transitionend","animationend","animationstart","animationiteration","keyup","keydown","mouseup","mousedown","mouseover","mouseout","blur","focus"],pw=function(t){return t===void 0&&(t=0),Date.now()+t},Mg=!1,bF=function(){function t(){var e=this;this.stopped=!0,this.listener=function(){return e.schedule()}}return t.prototype.run=function(e){var n=this;if(e===void 0&&(e=vF),!Mg){Mg=!0;var r=pw(e);gF(function(){var i=!1;try{i=dF()}finally{if(Mg=!1,e=r-pw(),!mF())return;i?n.run(1e3):e>0?n.run(e):n.start()}})}},t.prototype.schedule=function(){this.stop(),this.run()},t.prototype.observe=function(){var e=this,n=function(){return e.observer&&e.observer.observe(document.body,yF)};document.body?n():md.addEventListener("DOMContentLoaded",n)},t.prototype.start=function(){var e=this;this.stopped&&(this.stopped=!1,this.observer=new MutationObserver(this.listener),this.observe(),hw.forEach(function(n){return md.addEventListener(n,e.listener,!0)}))},t.prototype.stop=function(){var e=this;this.stopped||(this.observer&&this.observer.disconnect(),hw.forEach(function(n){return md.removeEventListener(n,e.listener,!0)}),this.stopped=!0)},t}(),Nm=new bF,gw=function(t){!Fh&&t>0&&Nm.start(),Fh+=t,!Fh&&Nm.stop()},wF=function(t){return!Yv(t)&&!aF(t)&&getComputedStyle(t).display==="inline"},xF=function(){function t(e,n){this.target=e,this.observedBox=n||Rd.CONTENT_BOX,this.lastReportedSize={inlineSize:0,blockSize:0}}return t.prototype.isActive=function(){var e=rC(this.target,this.observedBox,!0);return wF(this.target)&&(this.lastReportedSize=e),this.lastReportedSize.inlineSize!==e.inlineSize||this.lastReportedSize.blockSize!==e.blockSize},t}(),SF=function(){function t(e,n){this.activeTargets=[],this.skippedTargets=[],this.observationTargets=[],this.observer=e,this.callback=n}return t}(),wh=new WeakMap,mw=function(t,e){for(var n=0;n<t.length;n+=1)if(t[n].target===e)return n;return-1},xh=function(){function t(){}return t.connect=function(e,n){var r=new SF(e,n);wh.set(e,r)},t.observe=function(e,n,r){var i=wh.get(e),o=i.observationTargets.length===0;mw(i.observationTargets,n)<0&&(o&&wc.push(i),i.observationTargets.push(new xF(n,r&&r.box)),gw(1),Nm.schedule())},t.unobserve=function(e,n){var r=wh.get(e),i=mw(r.observationTargets,n),o=r.observationTargets.length===1;i>=0&&(o&&wc.splice(wc.indexOf(r),1),r.observationTargets.splice(i,1),gw(-1))},t.disconnect=function(e){var n=this,r=wh.get(e);r.observationTargets.slice().forEach(function(i){return n.unobserve(e,i.target)}),r.activeTargets.splice(0,r.activeTargets.length)},t}(),TF=function(){function t(e){if(arguments.length===0)throw new TypeError("Failed to construct 'ResizeObserver': 1 argument required, but only 0 present.");if(typeof e!="function")throw new TypeError("Failed to construct 'ResizeObserver': The callback provided as parameter 1 is not a function.");xh.connect(this,e)}return t.prototype.observe=function(e,n){if(arguments.length===0)throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!uw(e))throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element");xh.observe(this,e,n)},t.prototype.unobserve=function(e){if(arguments.length===0)throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!uw(e))throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element");xh.unobserve(this,e)},t.prototype.disconnect=function(){xh.disconnect(this)},t.toString=function(){return"function ResizeObserver () { [polyfill code] }"},t}();const sC=X.createContext({});function CF(t){const e=X.useRef(null);return e.current===null&&(e.current=t()),e.current}const Gv=X.createContext(null),aC=X.createContext({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"});function EF(t=!0){const e=X.useContext(Gv);if(e===null)return[!0,null];const{isPresent:n,onExitComplete:r,register:i}=e,o=X.useId();X.useEffect(()=>{t&&i(o)},[t]);const a=X.useCallback(()=>t&&r&&r(o),[o,r,t]);return!n&&r?[!1,a]:[!0]}const qv=typeof window<"u",kF=qv?X.useLayoutEffect:X.useEffect,_o=t=>t;let Mf=_o,vu=_o;process.env.NODE_ENV!=="production"&&(Mf=(t,e)=>{!t&&typeof console<"u"&&console.warn(e)},vu=(t,e)=>{if(!t)throw new Error(e)});function Xv(t){let e;return()=>(e===void 0&&(e=t()),e)}const kf=(t,e,n)=>{const r=e-t;return r===0?1:(n-t)/r},Na=t=>t*1e3,Sl=t=>t/1e3,DF={useManualTiming:!1};function PF(t){let e=new Set,n=new Set,r=!1,i=!1;const o=new WeakSet;let a={delta:0,timestamp:0,isProcessing:!1};function c(p){o.has(p)&&(d.schedule(p),t()),p(a)}const d={schedule:(p,w=!1,m=!1)=>{const E=m&&r?e:n;return w&&o.add(p),E.has(p)||E.add(p),p},cancel:p=>{n.delete(p),o.delete(p)},process:p=>{if(a=p,r){i=!0;return}r=!0,[e,n]=[n,e],e.forEach(c),e.clear(),r=!1,i&&(i=!1,d.process(p))}};return d}const Sh=["read","resolveKeyframes","update","preRender","render","postRender"],OF=40;function lC(t,e){let n=!1,r=!0;const i={delta:0,timestamp:0,isProcessing:!1},o=()=>n=!0,a=Sh.reduce((_,U)=>(_[U]=PF(o),_),{}),{read:c,resolveKeyframes:d,update:p,preRender:w,render:m,postRender:T}=a,E=()=>{const _=performance.now();n=!1,i.delta=r?1e3/60:Math.max(Math.min(_-i.timestamp,OF),1),i.timestamp=_,i.isProcessing=!0,c.process(i),d.process(i),p.process(i),w.process(i),m.process(i),T.process(i),i.isProcessing=!1,n&&e&&(r=!1,t(E))},A=()=>{n=!0,r=!0,i.isProcessing||t(E)};return{schedule:Sh.reduce((_,U)=>{const G=a[U];return _[U]=(re,q=!1,se=!1)=>(n||A(),G.schedule(re,q,se)),_},{}),cancel:_=>{for(let U=0;U<Sh.length;U++)a[Sh[U]].cancel(_)},state:i,steps:a}}const{schedule:Fn,cancel:yu,state:Ci,steps:Lg}=lC(typeof requestAnimationFrame<"u"?requestAnimationFrame:_o,!0),uC=X.createContext({strict:!1}),vw={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},Df={};for(const t in vw)Df[t]={isEnabled:e=>vw[t].some(n=>!!e[n])};function _F(t){for(const e in t)Df[e]={...Df[e],...t[e]}}const RF=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function np(t){return t.startsWith("while")||t.startsWith("drag")&&t!=="draggable"||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||t.startsWith("onLayout")||RF.has(t)}let cC=t=>!np(t);function AF(t){t&&(cC=e=>e.startsWith("on")?!np(e):t(e))}try{AF(require("@emotion/is-prop-valid").default)}catch{}function IF(t,e,n){const r={};for(const i in t)i==="values"&&typeof t.values=="object"||(cC(i)||n===!0&&np(i)||!e&&!np(i)||t.draggable&&i.startsWith("onDrag"))&&(r[i]=t[i]);return r}const yw=new Set;function Pp(t,e,n){t||yw.has(e)||(console.warn(e),yw.add(e))}function MF(t){if(typeof Proxy>"u")return t;const e=new Map,n=(...r)=>(process.env.NODE_ENV!=="production"&&Pp(!1,"motion() is deprecated. Use motion.create() instead."),t(...r));return new Proxy(n,{get:(r,i)=>i==="create"?t:(e.has(i)||e.set(i,t(i)),e.get(i))})}const Op=X.createContext({});function Ad(t){return typeof t=="string"||Array.isArray(t)}function _p(t){return t!==null&&typeof t=="object"&&typeof t.start=="function"}const Kv=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Zv=["initial",...Kv];function Rp(t){return _p(t.animate)||Zv.some(e=>Ad(t[e]))}function fC(t){return!!(Rp(t)||t.variants)}function LF(t,e){if(Rp(t)){const{initial:n,animate:r}=t;return{initial:n===!1||Ad(n)?n:void 0,animate:Ad(r)?r:void 0}}return t.inherit!==!1?e:{}}function FF(t){const{initial:e,animate:n}=LF(t,X.useContext(Op));return X.useMemo(()=>({initial:e,animate:n}),[bw(e),bw(n)])}function bw(t){return Array.isArray(t)?t.join(" "):t}const NF=Symbol.for("motionComponentSymbol");function pf(t){return t&&typeof t=="object"&&Object.prototype.hasOwnProperty.call(t,"current")}function jF(t,e,n){return X.useCallback(r=>{r&&t.onMount&&t.onMount(r),e&&(r?e.mount(r):e.unmount()),n&&(typeof n=="function"?n(r):pf(n)&&(n.current=r))},[e])}const Jv=t=>t.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),BF="framerAppearId",dC="data-"+Jv(BF),{schedule:Qv}=lC(queueMicrotask,!1),hC=X.createContext({});function $F(t,e,n,r,i){var o,a;const{visualElement:c}=X.useContext(Op),d=X.useContext(uC),p=X.useContext(Gv),w=X.useContext(aC).reducedMotion,m=X.useRef(null);r=r||d.renderer,!m.current&&r&&(m.current=r(t,{visualState:e,parent:c,props:n,presenceContext:p,blockInitialAnimation:p?p.initial===!1:!1,reducedMotionConfig:w}));const T=m.current,E=X.useContext(hC);T&&!T.projection&&i&&(T.type==="html"||T.type==="svg")&&VF(m.current,n,i,E);const A=X.useRef(!1);X.useInsertionEffect(()=>{T&&A.current&&T.update(n,p)});const I=n[dC],j=X.useRef(!!I&&!(!((o=window.MotionHandoffIsComplete)===null||o===void 0)&&o.call(window,I))&&((a=window.MotionHasOptimisedAnimation)===null||a===void 0?void 0:a.call(window,I)));return kF(()=>{T&&(A.current=!0,window.MotionIsMounted=!0,T.updateFeatures(),Qv.render(T.render),j.current&&T.animationState&&T.animationState.animateChanges())}),X.useEffect(()=>{T&&(!j.current&&T.animationState&&T.animationState.animateChanges(),j.current&&(queueMicrotask(()=>{var _;(_=window.MotionHandoffMarkAsComplete)===null||_===void 0||_.call(window,I)}),j.current=!1))}),T}function VF(t,e,n,r){const{layoutId:i,layout:o,drag:a,dragConstraints:c,layoutScroll:d,layoutRoot:p}=e;t.projection=new n(t.latestValues,e["data-framer-portal-id"]?void 0:pC(t.parent)),t.projection.setOptions({layoutId:i,layout:o,alwaysMeasureLayout:!!a||c&&pf(c),visualElement:t,animationType:typeof o=="string"?o:"both",initialPromotionConfig:r,layoutScroll:d,layoutRoot:p})}function pC(t){if(t)return t.options.allowProjection!==!1?t.projection:pC(t.parent)}function HF({preloadedFeatures:t,createVisualElement:e,useRender:n,useVisualState:r,Component:i}){var o,a;t&&_F(t);function c(p,w){let m;const T={...X.useContext(aC),...p,layoutId:UF(p)},{isStatic:E}=T,A=FF(p),I=r(p,E);if(!E&&qv){WF(T,t);const j=zF(T);m=j.MeasureLayout,A.visualElement=$F(i,I,T,e,j.ProjectionNode)}return Re.jsxs(Op.Provider,{value:A,children:[m&&A.visualElement?Re.jsx(m,{visualElement:A.visualElement,...T}):null,n(i,p,jF(I,A.visualElement,w),I,E,A.visualElement)]})}c.displayName=`motion.${typeof i=="string"?i:`create(${(a=(o=i.displayName)!==null&&o!==void 0?o:i.name)!==null&&a!==void 0?a:""})`}`;const d=X.forwardRef(c);return d[NF]=i,d}function UF({layoutId:t}){const e=X.useContext(sC).id;return e&&t!==void 0?e+"-"+t:t}function WF(t,e){const n=X.useContext(uC).strict;if(process.env.NODE_ENV!=="production"&&e&&n){const r="You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.";t.ignoreStrict?Mf(!1,r):vu(!1,r)}}function zF(t){const{drag:e,layout:n}=Df;if(!e&&!n)return{};const r={...e,...n};return{MeasureLayout:e!=null&&e.isEnabled(t)||n!=null&&n.isEnabled(t)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}const YF=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function ey(t){return typeof t!="string"||t.includes("-")?!1:!!(YF.indexOf(t)>-1||/[A-Z]/u.test(t))}function ww(t){const e=[{},{}];return t==null||t.values.forEach((n,r)=>{e[0][r]=n.get(),e[1][r]=n.getVelocity()}),e}function ty(t,e,n,r){if(typeof e=="function"){const[i,o]=ww(r);e=e(n!==void 0?n:t.custom,i,o)}if(typeof e=="string"&&(e=t.variants&&t.variants[e]),typeof e=="function"){const[i,o]=ww(r);e=e(n!==void 0?n:t.custom,i,o)}return e}const jm=t=>Array.isArray(t),GF=t=>!!(t&&typeof t=="object"&&t.mix&&t.toValue),qF=t=>jm(t)?t[t.length-1]||0:t,ji=t=>!!(t&&t.getVelocity);function Nh(t){const e=ji(t)?t.get():t;return GF(e)?e.toValue():e}function XF({scrapeMotionValuesFromProps:t,createRenderState:e,onUpdate:n},r,i,o){const a={latestValues:KF(r,i,o,t),renderState:e()};return n&&(a.onMount=c=>n({props:r,current:c,...a}),a.onUpdate=c=>n(c)),a}const gC=t=>(e,n)=>{const r=X.useContext(Op),i=X.useContext(Gv),o=()=>XF(t,e,r,i);return n?o():CF(o)};function KF(t,e,n,r){const i={},o=r(t,{});for(const T in o)i[T]=Nh(o[T]);let{initial:a,animate:c}=t;const d=Rp(t),p=fC(t);e&&p&&!d&&t.inherit!==!1&&(a===void 0&&(a=e.initial),c===void 0&&(c=e.animate));let w=n?n.initial===!1:!1;w=w||a===!1;const m=w?c:a;if(m&&typeof m!="boolean"&&!_p(m)){const T=Array.isArray(m)?m:[m];for(let E=0;E<T.length;E++){const A=ty(t,T[E]);if(A){const{transitionEnd:I,transition:j,..._}=A;for(const U in _){let G=_[U];if(Array.isArray(G)){const re=w?G.length-1:0;G=G[re]}G!==null&&(i[U]=G)}for(const U in I)i[U]=I[U]}}}return i}const Lf=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],_c=new Set(Lf),mC=t=>e=>typeof e=="string"&&e.startsWith(t),vC=mC("--"),ZF=mC("var(--"),ny=t=>ZF(t)?JF.test(t.split("/*")[0].trim()):!1,JF=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,yC=(t,e)=>e&&typeof t=="number"?e.transform(t):t,kl=(t,e,n)=>n>e?e:n<t?t:n,Ff={test:t=>typeof t=="number",parse:parseFloat,transform:t=>t},Id={...Ff,transform:t=>kl(0,1,t)},Th={...Ff,default:1},zd=t=>({test:e=>typeof e=="string"&&e.endsWith(t)&&e.split(" ").length===1,parse:parseFloat,transform:e=>`${e}${t}`}),ou=zd("deg"),ja=zd("%"),Ot=zd("px"),QF=zd("vh"),eN=zd("vw"),xw={...ja,parse:t=>ja.parse(t)/100,transform:t=>ja.transform(t*100)},tN={borderWidth:Ot,borderTopWidth:Ot,borderRightWidth:Ot,borderBottomWidth:Ot,borderLeftWidth:Ot,borderRadius:Ot,radius:Ot,borderTopLeftRadius:Ot,borderTopRightRadius:Ot,borderBottomRightRadius:Ot,borderBottomLeftRadius:Ot,width:Ot,maxWidth:Ot,height:Ot,maxHeight:Ot,top:Ot,right:Ot,bottom:Ot,left:Ot,padding:Ot,paddingTop:Ot,paddingRight:Ot,paddingBottom:Ot,paddingLeft:Ot,margin:Ot,marginTop:Ot,marginRight:Ot,marginBottom:Ot,marginLeft:Ot,backgroundPositionX:Ot,backgroundPositionY:Ot},nN={rotate:ou,rotateX:ou,rotateY:ou,rotateZ:ou,scale:Th,scaleX:Th,scaleY:Th,scaleZ:Th,skew:ou,skewX:ou,skewY:ou,distance:Ot,translateX:Ot,translateY:Ot,translateZ:Ot,x:Ot,y:Ot,z:Ot,perspective:Ot,transformPerspective:Ot,opacity:Id,originX:xw,originY:xw,originZ:Ot},Sw={...Ff,transform:Math.round},ry={...tN,...nN,zIndex:Sw,size:Ot,fillOpacity:Id,strokeOpacity:Id,numOctaves:Sw},rN={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},iN=Lf.length;function oN(t,e,n){let r="",i=!0;for(let o=0;o<iN;o++){const a=Lf[o],c=t[a];if(c===void 0)continue;let d=!0;if(typeof c=="number"?d=c===(a.startsWith("scale")?1:0):d=parseFloat(c)===0,!d||n){const p=yC(c,ry[a]);if(!d){i=!1;const w=rN[a]||a;r+=`${w}(${p}) `}n&&(e[a]=p)}}return r=r.trim(),n?r=n(e,i?"":r):i&&(r="none"),r}function iy(t,e,n){const{style:r,vars:i,transformOrigin:o}=t;let a=!1,c=!1;for(const d in e){const p=e[d];if(_c.has(d)){a=!0;continue}else if(vC(d)){i[d]=p;continue}else{const w=yC(p,ry[d]);d.startsWith("origin")?(c=!0,o[d]=w):r[d]=w}}if(e.transform||(a||n?r.transform=oN(e,t.transform,n):r.transform&&(r.transform="none")),c){const{originX:d="50%",originY:p="50%",originZ:w=0}=o;r.transformOrigin=`${d} ${p} ${w}`}}const sN={offset:"stroke-dashoffset",array:"stroke-dasharray"},aN={offset:"strokeDashoffset",array:"strokeDasharray"};function lN(t,e,n=1,r=0,i=!0){t.pathLength=1;const o=i?sN:aN;t[o.offset]=Ot.transform(-r);const a=Ot.transform(e),c=Ot.transform(n);t[o.array]=`${a} ${c}`}function Tw(t,e,n){return typeof t=="string"?t:Ot.transform(e+n*t)}function uN(t,e,n){const r=Tw(e,t.x,t.width),i=Tw(n,t.y,t.height);return`${r} ${i}`}function oy(t,{attrX:e,attrY:n,attrScale:r,originX:i,originY:o,pathLength:a,pathSpacing:c=1,pathOffset:d=0,...p},w,m){if(iy(t,p,m),w){t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox);return}t.attrs=t.style,t.style={};const{attrs:T,style:E,dimensions:A}=t;T.transform&&(A&&(E.transform=T.transform),delete T.transform),A&&(i!==void 0||o!==void 0||E.transform)&&(E.transformOrigin=uN(A,i!==void 0?i:.5,o!==void 0?o:.5)),e!==void 0&&(T.x=e),n!==void 0&&(T.y=n),r!==void 0&&(T.scale=r),a!==void 0&&lN(T,a,c,d,!1)}const sy=()=>({style:{},transform:{},transformOrigin:{},vars:{}}),bC=()=>({...sy(),attrs:{}}),ay=t=>typeof t=="string"&&t.toLowerCase()==="svg";function wC(t,{style:e,vars:n},r,i){Object.assign(t.style,e,i&&i.getProjectionStyles(r));for(const o in n)t.style.setProperty(o,n[o])}const xC=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function SC(t,e,n,r){wC(t,e,void 0,r);for(const i in e.attrs)t.setAttribute(xC.has(i)?i:Jv(i),e.attrs[i])}const rp={};function cN(t){Object.assign(rp,t)}function TC(t,{layout:e,layoutId:n}){return _c.has(t)||t.startsWith("origin")||(e||n!==void 0)&&(!!rp[t]||t==="opacity")}function ly(t,e,n){var r;const{style:i}=t,o={};for(const a in i)(ji(i[a])||e.style&&ji(e.style[a])||TC(a,t)||((r=n==null?void 0:n.getValue(a))===null||r===void 0?void 0:r.liveStyle)!==void 0)&&(o[a]=i[a]);return o}function CC(t,e,n){const r=ly(t,e,n);for(const i in t)if(ji(t[i])||ji(e[i])){const o=Lf.indexOf(i)!==-1?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i;r[o]=t[i]}return r}function fN(t,e){try{e.dimensions=typeof t.getBBox=="function"?t.getBBox():t.getBoundingClientRect()}catch{e.dimensions={x:0,y:0,width:0,height:0}}}const Cw=["x","y","width","height","cx","cy","r"],dN={useVisualState:gC({scrapeMotionValuesFromProps:CC,createRenderState:bC,onUpdate:({props:t,prevProps:e,current:n,renderState:r,latestValues:i})=>{if(!n)return;let o=!!t.drag;if(!o){for(const c in i)if(_c.has(c)){o=!0;break}}if(!o)return;let a=!e;if(e)for(let c=0;c<Cw.length;c++){const d=Cw[c];t[d]!==e[d]&&(a=!0)}a&&Fn.read(()=>{fN(n,r),Fn.render(()=>{oy(r,i,ay(n.tagName),t.transformTemplate),SC(n,r)})})}})},hN={useVisualState:gC({scrapeMotionValuesFromProps:ly,createRenderState:sy})};function EC(t,e,n){for(const r in e)!ji(e[r])&&!TC(r,n)&&(t[r]=e[r])}function pN({transformTemplate:t},e){return X.useMemo(()=>{const n=sy();return iy(n,e,t),Object.assign({},n.vars,n.style)},[e])}function gN(t,e){const n=t.style||{},r={};return EC(r,n,t),Object.assign(r,pN(t,e)),r}function mN(t,e){const n={},r=gN(t,e);return t.drag&&t.dragListener!==!1&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.touchAction=t.drag===!0?"none":`pan-${t.drag==="x"?"y":"x"}`),t.tabIndex===void 0&&(t.onTap||t.onTapStart||t.whileTap)&&(n.tabIndex=0),n.style=r,n}function vN(t,e,n,r){const i=X.useMemo(()=>{const o=bC();return oy(o,e,ay(r),t.transformTemplate),{...o.attrs,style:{...o.style}}},[e]);if(t.style){const o={};EC(o,t.style,t),i.style={...o,...i.style}}return i}function yN(t=!1){return(n,r,i,{latestValues:o},a)=>{const d=(ey(n)?vN:mN)(r,o,a,n),p=IF(r,typeof n=="string",t),w=n!==X.Fragment?{...p,...d,ref:i}:{},{children:m}=r,T=X.useMemo(()=>ji(m)?m.get():m,[m]);return X.createElement(n,{...w,children:T})}}function bN(t,e){return function(r,{forwardMotionProps:i}={forwardMotionProps:!1}){const a={...ey(r)?dN:hN,preloadedFeatures:t,useRender:yN(i),createVisualElement:e,Component:r};return HF(a)}}function kC(t,e){if(!Array.isArray(e))return!1;const n=e.length;if(n!==t.length)return!1;for(let r=0;r<n;r++)if(e[r]!==t[r])return!1;return!0}function Ap(t,e,n){const r=t.getProps();return ty(r,e,n!==void 0?n:r.custom,t)}const wN=Xv(()=>window.ScrollTimeline!==void 0);class xN{constructor(e){this.stop=()=>this.runAll("stop"),this.animations=e.filter(Boolean)}get finished(){return Promise.all(this.animations.map(e=>"finished"in e?e.finished:e))}getAll(e){return this.animations[0][e]}setAll(e,n){for(let r=0;r<this.animations.length;r++)this.animations[r][e]=n}attachTimeline(e,n){const r=this.animations.map(i=>{if(wN()&&i.attachTimeline)return i.attachTimeline(e);if(typeof n=="function")return n(i)});return()=>{r.forEach((i,o)=>{i&&i(),this.animations[o].stop()})}}get time(){return this.getAll("time")}set time(e){this.setAll("time",e)}get speed(){return this.getAll("speed")}set speed(e){this.setAll("speed",e)}get startTime(){return this.getAll("startTime")}get duration(){let e=0;for(let n=0;n<this.animations.length;n++)e=Math.max(e,this.animations[n].duration);return e}runAll(e){this.animations.forEach(n=>n[e]())}flatten(){this.runAll("flatten")}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}class SN extends xN{then(e,n){return Promise.all(this.animations).then(e).catch(n)}}function uy(t,e){return t?t[e]||t.default||t:void 0}const Bm=2e4;function DC(t){let e=0;const n=50;let r=t.next(e);for(;!r.done&&e<Bm;)e+=n,r=t.next(e);return e>=Bm?1/0:e}function cy(t){return typeof t=="function"}function Ew(t,e){t.timeline=e,t.onfinish=null}const fy=t=>Array.isArray(t)&&typeof t[0]=="number",TN={linearEasing:void 0};function CN(t,e){const n=Xv(t);return()=>{var r;return(r=TN[e])!==null&&r!==void 0?r:n()}}const ip=CN(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),PC=(t,e,n=10)=>{let r="";const i=Math.max(Math.round(e/n),2);for(let o=0;o<i;o++)r+=t(kf(0,i-1,o))+", ";return`linear(${r.substring(0,r.length-2)})`};function OC(t){return!!(typeof t=="function"&&ip()||!t||typeof t=="string"&&(t in $m||ip())||fy(t)||Array.isArray(t)&&t.every(OC))}const ud=([t,e,n,r])=>`cubic-bezier(${t}, ${e}, ${n}, ${r})`,$m={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:ud([0,.65,.55,1]),circOut:ud([.55,0,1,.45]),backIn:ud([.31,.01,.66,-.59]),backOut:ud([.33,1.53,.69,.99])};function _C(t,e){if(t)return typeof t=="function"&&ip()?PC(t,e):fy(t)?ud(t):Array.isArray(t)?t.map(n=>_C(n,e)||$m.easeOut):$m[t]}const oa={x:!1,y:!1};function RC(){return oa.x||oa.y}function EN(t,e,n){var r;if(t instanceof Element)return[t];if(typeof t=="string"){let i=document;const o=(r=void 0)!==null&&r!==void 0?r:i.querySelectorAll(t);return o?Array.from(o):[]}return Array.from(t)}function AC(t,e){const n=EN(t),r=new AbortController,i={passive:!0,...e,signal:r.signal};return[n,i,()=>r.abort()]}function kw(t){return e=>{e.pointerType==="touch"||RC()||t(e)}}function kN(t,e,n={}){const[r,i,o]=AC(t,n),a=kw(c=>{const{target:d}=c,p=e(c);if(typeof p!="function"||!d)return;const w=kw(m=>{p(m),d.removeEventListener("pointerleave",w)});d.addEventListener("pointerleave",w,i)});return r.forEach(c=>{c.addEventListener("pointerenter",a,i)}),o}const IC=(t,e)=>e?t===e?!0:IC(t,e.parentElement):!1,dy=t=>t.pointerType==="mouse"?typeof t.button!="number"||t.button<=0:t.isPrimary!==!1,DN=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function PN(t){return DN.has(t.tagName)||t.tabIndex!==-1}const cd=new WeakSet;function Dw(t){return e=>{e.key==="Enter"&&t(e)}}function Fg(t,e){t.dispatchEvent(new PointerEvent("pointer"+e,{isPrimary:!0,bubbles:!0}))}const ON=(t,e)=>{const n=t.currentTarget;if(!n)return;const r=Dw(()=>{if(cd.has(n))return;Fg(n,"down");const i=Dw(()=>{Fg(n,"up")}),o=()=>Fg(n,"cancel");n.addEventListener("keyup",i,e),n.addEventListener("blur",o,e)});n.addEventListener("keydown",r,e),n.addEventListener("blur",()=>n.removeEventListener("keydown",r),e)};function Pw(t){return dy(t)&&!RC()}function _N(t,e,n={}){const[r,i,o]=AC(t,n),a=c=>{const d=c.currentTarget;if(!Pw(c)||cd.has(d))return;cd.add(d);const p=e(c),w=(E,A)=>{window.removeEventListener("pointerup",m),window.removeEventListener("pointercancel",T),!(!Pw(E)||!cd.has(d))&&(cd.delete(d),typeof p=="function"&&p(E,{success:A}))},m=E=>{w(E,n.useGlobalTarget||IC(d,E.target))},T=E=>{w(E,!1)};window.addEventListener("pointerup",m,i),window.addEventListener("pointercancel",T,i)};return r.forEach(c=>{!PN(c)&&c.getAttribute("tabindex")===null&&(c.tabIndex=0),(n.useGlobalTarget?window:c).addEventListener("pointerdown",a,i),c.addEventListener("focus",p=>ON(p,i),i)}),o}function RN(t){return t==="x"||t==="y"?oa[t]?null:(oa[t]=!0,()=>{oa[t]=!1}):oa.x||oa.y?null:(oa.x=oa.y=!0,()=>{oa.x=oa.y=!1})}const MC=new Set(["width","height","top","left","right","bottom",...Lf]);let jh;function AN(){jh=void 0}const Ba={now:()=>(jh===void 0&&Ba.set(Ci.isProcessing||DF.useManualTiming?Ci.timestamp:performance.now()),jh),set:t=>{jh=t,queueMicrotask(AN)}};function hy(t,e){t.indexOf(e)===-1&&t.push(e)}function py(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}let gy=class{constructor(){this.subscriptions=[]}add(e){return hy(this.subscriptions,e),()=>py(this.subscriptions,e)}notify(e,n,r){const i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](e,n,r);else for(let o=0;o<i;o++){const a=this.subscriptions[o];a&&a(e,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}};function LC(t,e){return e?t*(1e3/e):0}const Ow=30,IN=t=>!isNaN(parseFloat(t));let MN=class{constructor(e,n={}){this.version="11.18.2",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(r,i=!0)=>{const o=Ba.now();this.updatedAt!==o&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),i&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(e),this.owner=n.owner}setCurrent(e){this.current=e,this.updatedAt=Ba.now(),this.canTrackVelocity===null&&e!==void 0&&(this.canTrackVelocity=IN(this.current))}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return process.env.NODE_ENV!=="production"&&Pp(!1,'value.onChange(callback) is deprecated. Switch to value.on("change", callback).'),this.on("change",e)}on(e,n){this.events[e]||(this.events[e]=new gy);const r=this.events[e].add(n);return e==="change"?()=>{r(),Fn.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const e in this.events)this.events[e].clear()}attach(e,n){this.passiveEffect=e,this.stopPassiveEffect=n}set(e,n=!0){!n||!this.passiveEffect?this.updateAndNotify(e,n):this.passiveEffect(e,this.updateAndNotify)}setWithVelocity(e,n,r){this.set(n),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-r}jump(e,n=!0){this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const e=Ba.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||e-this.updatedAt>Ow)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,Ow);return LC(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(e){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=e(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}};function Md(t,e){return new MN(t,e)}function LN(t,e,n){t.hasValue(e)?t.getValue(e).set(n):t.addValue(e,Md(n))}function FN(t,e){const n=Ap(t,e);let{transitionEnd:r={},transition:i={},...o}=n||{};o={...o,...r};for(const a in o){const c=qF(o[a]);LN(t,a,c)}}function NN(t){return!!(ji(t)&&t.add)}function Vm(t,e){const n=t.getValue("willChange");if(NN(n))return n.add(e)}function FC(t){return t.props[dC]}const NC=(t,e,n)=>(((1-3*n+3*e)*t+(3*n-6*e))*t+3*e)*t,jN=1e-7,BN=12;function $N(t,e,n,r,i){let o,a,c=0;do a=e+(n-e)/2,o=NC(a,r,i)-t,o>0?n=a:e=a;while(Math.abs(o)>jN&&++c<BN);return a}function Yd(t,e,n,r){if(t===e&&n===r)return _o;const i=o=>$N(o,0,1,t,n);return o=>o===0||o===1?o:NC(i(o),e,r)}const jC=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,BC=t=>e=>1-t(1-e),$C=Yd(.33,1.53,.69,.99),my=BC($C),VC=jC(my),HC=t=>(t*=2)<1?.5*my(t):.5*(2-Math.pow(2,-10*(t-1))),vy=t=>1-Math.sin(Math.acos(t)),UC=BC(vy),WC=jC(vy),zC=t=>/^0[^.\s]+$/u.test(t);function VN(t){return typeof t=="number"?t===0:t!==null?t==="none"||t==="0"||zC(t):!0}const vd=t=>Math.round(t*1e5)/1e5,yy=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function HN(t){return t==null}const UN=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,by=(t,e)=>n=>!!(typeof n=="string"&&UN.test(n)&&n.startsWith(t)||e&&!HN(n)&&Object.prototype.hasOwnProperty.call(n,e)),YC=(t,e,n)=>r=>{if(typeof r!="string")return r;const[i,o,a,c]=r.match(yy);return{[t]:parseFloat(i),[e]:parseFloat(o),[n]:parseFloat(a),alpha:c!==void 0?parseFloat(c):1}},WN=t=>kl(0,255,t),Ng={...Ff,transform:t=>Math.round(WN(t))},mc={test:by("rgb","red"),parse:YC("red","green","blue"),transform:({red:t,green:e,blue:n,alpha:r=1})=>"rgba("+Ng.transform(t)+", "+Ng.transform(e)+", "+Ng.transform(n)+", "+vd(Id.transform(r))+")"};function zN(t){let e="",n="",r="",i="";return t.length>5?(e=t.substring(1,3),n=t.substring(3,5),r=t.substring(5,7),i=t.substring(7,9)):(e=t.substring(1,2),n=t.substring(2,3),r=t.substring(3,4),i=t.substring(4,5),e+=e,n+=n,r+=r,i+=i),{red:parseInt(e,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}}const Hm={test:by("#"),parse:zN,transform:mc.transform},gf={test:by("hsl","hue"),parse:YC("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:n,alpha:r=1})=>"hsla("+Math.round(t)+", "+ja.transform(vd(e))+", "+ja.transform(vd(n))+", "+vd(Id.transform(r))+")"},Ni={test:t=>mc.test(t)||Hm.test(t)||gf.test(t),parse:t=>mc.test(t)?mc.parse(t):gf.test(t)?gf.parse(t):Hm.parse(t),transform:t=>typeof t=="string"?t:t.hasOwnProperty("red")?mc.transform(t):gf.transform(t)},YN=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function GN(t){var e,n;return isNaN(t)&&typeof t=="string"&&(((e=t.match(yy))===null||e===void 0?void 0:e.length)||0)+(((n=t.match(YN))===null||n===void 0?void 0:n.length)||0)>0}const GC="number",qC="color",qN="var",XN="var(",_w="${}",KN=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function Ld(t){const e=t.toString(),n=[],r={color:[],number:[],var:[]},i=[];let o=0;const c=e.replace(KN,d=>(Ni.test(d)?(r.color.push(o),i.push(qC),n.push(Ni.parse(d))):d.startsWith(XN)?(r.var.push(o),i.push(qN),n.push(d)):(r.number.push(o),i.push(GC),n.push(parseFloat(d))),++o,_w)).split(_w);return{values:n,split:c,indexes:r,types:i}}function XC(t){return Ld(t).values}function KC(t){const{split:e,types:n}=Ld(t),r=e.length;return i=>{let o="";for(let a=0;a<r;a++)if(o+=e[a],i[a]!==void 0){const c=n[a];c===GC?o+=vd(i[a]):c===qC?o+=Ni.transform(i[a]):o+=i[a]}return o}}const ZN=t=>typeof t=="number"?0:t;function JN(t){const e=XC(t);return KC(t)(e.map(ZN))}const bu={test:GN,parse:XC,createTransformer:KC,getAnimatableNone:JN},QN=new Set(["brightness","contrast","saturate","opacity"]);function ej(t){const[e,n]=t.slice(0,-1).split("(");if(e==="drop-shadow")return t;const[r]=n.match(yy)||[];if(!r)return t;const i=n.replace(r,"");let o=QN.has(e)?1:0;return r!==n&&(o*=100),e+"("+o+i+")"}const tj=/\b([a-z-]*)\(.*?\)/gu,Um={...bu,getAnimatableNone:t=>{const e=t.match(tj);return e?e.map(ej).join(" "):t}},nj={...ry,color:Ni,backgroundColor:Ni,outlineColor:Ni,fill:Ni,stroke:Ni,borderColor:Ni,borderTopColor:Ni,borderRightColor:Ni,borderBottomColor:Ni,borderLeftColor:Ni,filter:Um,WebkitFilter:Um},wy=t=>nj[t];function ZC(t,e){let n=wy(t);return n!==Um&&(n=bu),n.getAnimatableNone?n.getAnimatableNone(e):void 0}const rj=new Set(["auto","none","0"]);function ij(t,e,n){let r=0,i;for(;r<t.length&&!i;){const o=t[r];typeof o=="string"&&!rj.has(o)&&Ld(o).values.length&&(i=t[r]),r++}if(i&&n)for(const o of e)t[o]=ZC(n,i)}const Rw=t=>t===Ff||t===Ot,Aw=(t,e)=>parseFloat(t.split(", ")[e]),Iw=(t,e)=>(n,{transform:r})=>{if(r==="none"||!r)return 0;const i=r.match(/^matrix3d\((.+)\)$/u);if(i)return Aw(i[1],e);{const o=r.match(/^matrix\((.+)\)$/u);return o?Aw(o[1],t):0}},oj=new Set(["x","y","z"]),sj=Lf.filter(t=>!oj.has(t));function aj(t){const e=[];return sj.forEach(n=>{const r=t.getValue(n);r!==void 0&&(e.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),e}const Pf={width:({x:t},{paddingLeft:e="0",paddingRight:n="0"})=>t.max-t.min-parseFloat(e)-parseFloat(n),height:({y:t},{paddingTop:e="0",paddingBottom:n="0"})=>t.max-t.min-parseFloat(e)-parseFloat(n),top:(t,{top:e})=>parseFloat(e),left:(t,{left:e})=>parseFloat(e),bottom:({y:t},{top:e})=>parseFloat(e)+(t.max-t.min),right:({x:t},{left:e})=>parseFloat(e)+(t.max-t.min),x:Iw(4,13),y:Iw(5,14)};Pf.translateX=Pf.x;Pf.translateY=Pf.y;const Sc=new Set;let Wm=!1,zm=!1;function JC(){if(zm){const t=Array.from(Sc).filter(r=>r.needsMeasurement),e=new Set(t.map(r=>r.element)),n=new Map;e.forEach(r=>{const i=aj(r);i.length&&(n.set(r,i),r.render())}),t.forEach(r=>r.measureInitialState()),e.forEach(r=>{r.render();const i=n.get(r);i&&i.forEach(([o,a])=>{var c;(c=r.getValue(o))===null||c===void 0||c.set(a)})}),t.forEach(r=>r.measureEndState()),t.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}zm=!1,Wm=!1,Sc.forEach(t=>t.complete()),Sc.clear()}function QC(){Sc.forEach(t=>{t.readKeyframes(),t.needsMeasurement&&(zm=!0)})}function lj(){QC(),JC()}class xy{constructor(e,n,r,i,o,a=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...e],this.onComplete=n,this.name=r,this.motionValue=i,this.element=o,this.isAsync=a}scheduleResolve(){this.isScheduled=!0,this.isAsync?(Sc.add(this),Wm||(Wm=!0,Fn.read(QC),Fn.resolveKeyframes(JC))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:e,name:n,element:r,motionValue:i}=this;for(let o=0;o<e.length;o++)if(e[o]===null)if(o===0){const a=i==null?void 0:i.get(),c=e[e.length-1];if(a!==void 0)e[0]=a;else if(r&&n){const d=r.readValue(n,c);d!=null&&(e[0]=d)}e[0]===void 0&&(e[0]=c),i&&a===void 0&&i.set(e[0])}else e[o]=e[o-1]}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe),Sc.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,Sc.delete(this))}resume(){this.isComplete||this.scheduleResolve()}}const eE=t=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t),uj=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function cj(t){const e=uj.exec(t);if(!e)return[,];const[,n,r,i]=e;return[`--${n??r}`,i]}const fj=4;function tE(t,e,n=1){vu(n<=fj,`Max CSS variable fallback depth detected in property "${t}". This may indicate a circular fallback dependency.`);const[r,i]=cj(t);if(!r)return;const o=window.getComputedStyle(e).getPropertyValue(r);if(o){const a=o.trim();return eE(a)?parseFloat(a):a}return ny(i)?tE(i,e,n+1):i}const nE=t=>e=>e.test(t),dj={test:t=>t==="auto",parse:t=>t},rE=[Ff,Ot,ja,ou,eN,QF,dj],Mw=t=>rE.find(nE(t));class iE extends xy{constructor(e,n,r,i,o){super(e,n,r,i,o,!0)}readKeyframes(){const{unresolvedKeyframes:e,element:n,name:r}=this;if(!n||!n.current)return;super.readKeyframes();for(let d=0;d<e.length;d++){let p=e[d];if(typeof p=="string"&&(p=p.trim(),ny(p))){const w=tE(p,n.current);w!==void 0&&(e[d]=w),d===e.length-1&&(this.finalKeyframe=p)}}if(this.resolveNoneKeyframes(),!MC.has(r)||e.length!==2)return;const[i,o]=e,a=Mw(i),c=Mw(o);if(a!==c)if(Rw(a)&&Rw(c))for(let d=0;d<e.length;d++){const p=e[d];typeof p=="string"&&(e[d]=parseFloat(p))}else this.needsMeasurement=!0}resolveNoneKeyframes(){const{unresolvedKeyframes:e,name:n}=this,r=[];for(let i=0;i<e.length;i++)VN(e[i])&&r.push(i);r.length&&ij(e,r,n)}measureInitialState(){const{element:e,unresolvedKeyframes:n,name:r}=this;if(!e||!e.current)return;r==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=Pf[r](e.measureViewportBox(),window.getComputedStyle(e.current)),n[0]=this.measuredOrigin;const i=n[n.length-1];i!==void 0&&e.getValue(r,i).jump(i,!1)}measureEndState(){var e;const{element:n,name:r,unresolvedKeyframes:i}=this;if(!n||!n.current)return;const o=n.getValue(r);o&&o.jump(this.measuredOrigin,!1);const a=i.length-1,c=i[a];i[a]=Pf[r](n.measureViewportBox(),window.getComputedStyle(n.current)),c!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=c),!((e=this.removedTransforms)===null||e===void 0)&&e.length&&this.removedTransforms.forEach(([d,p])=>{n.getValue(d).set(p)}),this.resolveNoneKeyframes()}}const Lw=(t,e)=>e==="zIndex"?!1:!!(typeof t=="number"||Array.isArray(t)||typeof t=="string"&&(bu.test(t)||t==="0")&&!t.startsWith("url("));function hj(t){const e=t[0];if(t.length===1)return!0;for(let n=0;n<t.length;n++)if(t[n]!==e)return!0}function pj(t,e,n,r){const i=t[0];if(i===null)return!1;if(e==="display"||e==="visibility")return!0;const o=t[t.length-1],a=Lw(i,e),c=Lw(o,e);return Mf(a===c,`You are trying to animate ${e} from "${i}" to "${o}". ${i} is not an animatable value - to enable this animation set ${i} to a value animatable to ${o} via the \`style\` property.`),!a||!c?!1:hj(t)||(n==="spring"||cy(n))&&r}const gj=t=>t!==null;function Ip(t,{repeat:e,repeatType:n="loop"},r){const i=t.filter(gj),o=e&&n!=="loop"&&e%2===1?0:i.length-1;return!o||r===void 0?i[o]:r}const mj=40;class oE{constructor({autoplay:e=!0,delay:n=0,type:r="keyframes",repeat:i=0,repeatDelay:o=0,repeatType:a="loop",...c}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=Ba.now(),this.options={autoplay:e,delay:n,type:r,repeat:i,repeatDelay:o,repeatType:a,...c},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt?this.resolvedAt-this.createdAt>mj?this.resolvedAt:this.createdAt:this.createdAt}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&lj(),this._resolved}onKeyframesResolved(e,n){this.resolvedAt=Ba.now(),this.hasAttemptedResolve=!0;const{name:r,type:i,velocity:o,delay:a,onComplete:c,onUpdate:d,isGenerator:p}=this.options;if(!p&&!pj(e,r,i,o))if(a)this.options.duration=0;else{d&&d(Ip(e,this.options,n)),c&&c(),this.resolveFinishedPromise();return}const w=this.initPlayback(e,n);w!==!1&&(this._resolved={keyframes:e,finalKeyframe:n,...w},this.onPostResolved())}onPostResolved(){}then(e,n){return this.currentFinishedPromise.then(e,n)}flatten(){this.options.type="keyframes",this.options.ease="linear"}updateFinishedPromise(){this.currentFinishedPromise=new Promise(e=>{this.resolveFinishedPromise=e})}}const Kn=(t,e,n)=>t+(e-t)*n;function jg(t,e,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?t+(e-t)*6*n:n<1/2?e:n<2/3?t+(e-t)*(2/3-n)*6:t}function vj({hue:t,saturation:e,lightness:n,alpha:r}){t/=360,e/=100,n/=100;let i=0,o=0,a=0;if(!e)i=o=a=n;else{const c=n<.5?n*(1+e):n+e-n*e,d=2*n-c;i=jg(d,c,t+1/3),o=jg(d,c,t),a=jg(d,c,t-1/3)}return{red:Math.round(i*255),green:Math.round(o*255),blue:Math.round(a*255),alpha:r}}function op(t,e){return n=>n>0?e:t}const Bg=(t,e,n)=>{const r=t*t,i=n*(e*e-r)+r;return i<0?0:Math.sqrt(i)},yj=[Hm,mc,gf],bj=t=>yj.find(e=>e.test(t));function Fw(t){const e=bj(t);if(Mf(!!e,`'${t}' is not an animatable color. Use the equivalent color code instead.`),!e)return!1;let n=e.parse(t);return e===gf&&(n=vj(n)),n}const Nw=(t,e)=>{const n=Fw(t),r=Fw(e);if(!n||!r)return op(t,e);const i={...n};return o=>(i.red=Bg(n.red,r.red,o),i.green=Bg(n.green,r.green,o),i.blue=Bg(n.blue,r.blue,o),i.alpha=Kn(n.alpha,r.alpha,o),mc.transform(i))},wj=(t,e)=>n=>e(t(n)),Gd=(...t)=>t.reduce(wj),Ym=new Set(["none","hidden"]);function xj(t,e){return Ym.has(t)?n=>n<=0?t:e:n=>n>=1?e:t}function Sj(t,e){return n=>Kn(t,e,n)}function Sy(t){return typeof t=="number"?Sj:typeof t=="string"?ny(t)?op:Ni.test(t)?Nw:Ej:Array.isArray(t)?sE:typeof t=="object"?Ni.test(t)?Nw:Tj:op}function sE(t,e){const n=[...t],r=n.length,i=t.map((o,a)=>Sy(o)(o,e[a]));return o=>{for(let a=0;a<r;a++)n[a]=i[a](o);return n}}function Tj(t,e){const n={...t,...e},r={};for(const i in n)t[i]!==void 0&&e[i]!==void 0&&(r[i]=Sy(t[i])(t[i],e[i]));return i=>{for(const o in r)n[o]=r[o](i);return n}}function Cj(t,e){var n;const r=[],i={color:0,var:0,number:0};for(let o=0;o<e.values.length;o++){const a=e.types[o],c=t.indexes[a][i[a]],d=(n=t.values[c])!==null&&n!==void 0?n:0;r[o]=d,i[a]++}return r}const Ej=(t,e)=>{const n=bu.createTransformer(e),r=Ld(t),i=Ld(e);return r.indexes.var.length===i.indexes.var.length&&r.indexes.color.length===i.indexes.color.length&&r.indexes.number.length>=i.indexes.number.length?Ym.has(t)&&!i.values.length||Ym.has(e)&&!r.values.length?xj(t,e):Gd(sE(Cj(r,i),i.values),n):(Mf(!0,`Complex values '${t}' and '${e}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`),op(t,e))};function aE(t,e,n){return typeof t=="number"&&typeof e=="number"&&typeof n=="number"?Kn(t,e,n):Sy(t)(t,e)}const kj=5;function lE(t,e,n){const r=Math.max(e-kj,0);return LC(n-t(r),e-r)}const Xn={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1},jw=.001;function Dj({duration:t=Xn.duration,bounce:e=Xn.bounce,velocity:n=Xn.velocity,mass:r=Xn.mass}){let i,o;Mf(t<=Na(Xn.maxDuration),"Spring duration must be 10 seconds or less");let a=1-e;a=kl(Xn.minDamping,Xn.maxDamping,a),t=kl(Xn.minDuration,Xn.maxDuration,Sl(t)),a<1?(i=p=>{const w=p*a,m=w*t,T=w-n,E=Gm(p,a),A=Math.exp(-m);return jw-T/E*A},o=p=>{const m=p*a*t,T=m*n+n,E=Math.pow(a,2)*Math.pow(p,2)*t,A=Math.exp(-m),I=Gm(Math.pow(p,2),a);return(-i(p)+jw>0?-1:1)*((T-E)*A)/I}):(i=p=>{const w=Math.exp(-p*t),m=(p-n)*t+1;return-.001+w*m},o=p=>{const w=Math.exp(-p*t),m=(n-p)*(t*t);return w*m});const c=5/t,d=Oj(i,o,c);if(t=Na(t),isNaN(d))return{stiffness:Xn.stiffness,damping:Xn.damping,duration:t};{const p=Math.pow(d,2)*r;return{stiffness:p,damping:a*2*Math.sqrt(r*p),duration:t}}}const Pj=12;function Oj(t,e,n){let r=n;for(let i=1;i<Pj;i++)r=r-t(r)/e(r);return r}function Gm(t,e){return t*Math.sqrt(1-e*e)}const _j=["duration","bounce"],Rj=["stiffness","damping","mass"];function Bw(t,e){return e.some(n=>t[n]!==void 0)}function Aj(t){let e={velocity:Xn.velocity,stiffness:Xn.stiffness,damping:Xn.damping,mass:Xn.mass,isResolvedFromDuration:!1,...t};if(!Bw(t,Rj)&&Bw(t,_j))if(t.visualDuration){const n=t.visualDuration,r=2*Math.PI/(n*1.2),i=r*r,o=2*kl(.05,1,1-(t.bounce||0))*Math.sqrt(i);e={...e,mass:Xn.mass,stiffness:i,damping:o}}else{const n=Dj(t);e={...e,...n,mass:Xn.mass},e.isResolvedFromDuration=!0}return e}function uE(t=Xn.visualDuration,e=Xn.bounce){const n=typeof t!="object"?{visualDuration:t,keyframes:[0,1],bounce:e}:t;let{restSpeed:r,restDelta:i}=n;const o=n.keyframes[0],a=n.keyframes[n.keyframes.length-1],c={done:!1,value:o},{stiffness:d,damping:p,mass:w,duration:m,velocity:T,isResolvedFromDuration:E}=Aj({...n,velocity:-Sl(n.velocity||0)}),A=T||0,I=p/(2*Math.sqrt(d*w)),j=a-o,_=Sl(Math.sqrt(d/w)),U=Math.abs(j)<5;r||(r=U?Xn.restSpeed.granular:Xn.restSpeed.default),i||(i=U?Xn.restDelta.granular:Xn.restDelta.default);let G;if(I<1){const q=Gm(_,I);G=se=>{const S=Math.exp(-I*_*se);return a-S*((A+I*_*j)/q*Math.sin(q*se)+j*Math.cos(q*se))}}else if(I===1)G=q=>a-Math.exp(-_*q)*(j+(A+_*j)*q);else{const q=_*Math.sqrt(I*I-1);G=se=>{const S=Math.exp(-I*_*se),ue=Math.min(q*se,300);return a-S*((A+I*_*j)*Math.sinh(ue)+q*j*Math.cosh(ue))/q}}const re={calculatedDuration:E&&m||null,next:q=>{const se=G(q);if(E)c.done=q>=m;else{let S=0;I<1&&(S=q===0?Na(A):lE(G,q,se));const ue=Math.abs(S)<=r,ae=Math.abs(a-se)<=i;c.done=ue&&ae}return c.value=c.done?a:se,c},toString:()=>{const q=Math.min(DC(re),Bm),se=PC(S=>re.next(q*S).value,q,30);return q+"ms "+se}};return re}function $w({keyframes:t,velocity:e=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:o=500,modifyTarget:a,min:c,max:d,restDelta:p=.5,restSpeed:w}){const m=t[0],T={done:!1,value:m},E=ue=>c!==void 0&&ue<c||d!==void 0&&ue>d,A=ue=>c===void 0?d:d===void 0||Math.abs(c-ue)<Math.abs(d-ue)?c:d;let I=n*e;const j=m+I,_=a===void 0?j:a(j);_!==j&&(I=_-m);const U=ue=>-I*Math.exp(-ue/r),G=ue=>_+U(ue),re=ue=>{const ae=U(ue),Ue=G(ue);T.done=Math.abs(ae)<=p,T.value=T.done?_:Ue};let q,se;const S=ue=>{E(T.value)&&(q=ue,se=uE({keyframes:[T.value,A(T.value)],velocity:lE(G,ue,T.value),damping:i,stiffness:o,restDelta:p,restSpeed:w}))};return S(0),{calculatedDuration:null,next:ue=>{let ae=!1;return!se&&q===void 0&&(ae=!0,re(ue),S(ue)),q!==void 0&&ue>=q?se.next(ue-q):(!ae&&re(ue),T)}}}const Ij=Yd(.42,0,1,1),Mj=Yd(0,0,.58,1),cE=Yd(.42,0,.58,1),Lj=t=>Array.isArray(t)&&typeof t[0]!="number",Vw={linear:_o,easeIn:Ij,easeInOut:cE,easeOut:Mj,circIn:vy,circInOut:WC,circOut:UC,backIn:my,backInOut:VC,backOut:$C,anticipate:HC},Hw=t=>{if(fy(t)){vu(t.length===4,"Cubic bezier arrays must contain four numerical values.");const[e,n,r,i]=t;return Yd(e,n,r,i)}else if(typeof t=="string")return vu(Vw[t]!==void 0,`Invalid easing type '${t}'`),Vw[t];return t};function Fj(t,e,n){const r=[],i=n||aE,o=t.length-1;for(let a=0;a<o;a++){let c=i(t[a],t[a+1]);if(e){const d=Array.isArray(e)?e[a]||_o:e;c=Gd(d,c)}r.push(c)}return r}function Nj(t,e,{clamp:n=!0,ease:r,mixer:i}={}){const o=t.length;if(vu(o===e.length,"Both input and output ranges must be the same length"),o===1)return()=>e[0];if(o===2&&e[0]===e[1])return()=>e[1];const a=t[0]===t[1];t[0]>t[o-1]&&(t=[...t].reverse(),e=[...e].reverse());const c=Fj(e,r,i),d=c.length,p=w=>{if(a&&w<t[0])return e[0];let m=0;if(d>1)for(;m<t.length-2&&!(w<t[m+1]);m++);const T=kf(t[m],t[m+1],w);return c[m](T)};return n?w=>p(kl(t[0],t[o-1],w)):p}function jj(t,e){const n=t[t.length-1];for(let r=1;r<=e;r++){const i=kf(0,e,r);t.push(Kn(n,1,i))}}function Bj(t){const e=[0];return jj(e,t.length-1),e}function $j(t,e){return t.map(n=>n*e)}function Vj(t,e){return t.map(()=>e||cE).splice(0,t.length-1)}function sp({duration:t=300,keyframes:e,times:n,ease:r="easeInOut"}){const i=Lj(r)?r.map(Hw):Hw(r),o={done:!1,value:e[0]},a=$j(n&&n.length===e.length?n:Bj(e),t),c=Nj(a,e,{ease:Array.isArray(i)?i:Vj(e,i)});return{calculatedDuration:t,next:d=>(o.value=c(d),o.done=d>=t,o)}}const Hj=t=>{const e=({timestamp:n})=>t(n);return{start:()=>Fn.update(e,!0),stop:()=>yu(e),now:()=>Ci.isProcessing?Ci.timestamp:Ba.now()}},Uj={decay:$w,inertia:$w,tween:sp,keyframes:sp,spring:uE},Wj=t=>t/100;class Ty extends oE{constructor(e){super(e),this.holdTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.startTime=null,this.state="idle",this.stop=()=>{if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.teardown();const{onStop:d}=this.options;d&&d()};const{name:n,motionValue:r,element:i,keyframes:o}=this.options,a=(i==null?void 0:i.KeyframeResolver)||xy,c=(d,p)=>this.onKeyframesResolved(d,p);this.resolver=new a(o,c,n,r,i),this.resolver.scheduleResolve()}flatten(){super.flatten(),this._resolved&&Object.assign(this._resolved,this.initPlayback(this._resolved.keyframes))}initPlayback(e){const{type:n="keyframes",repeat:r=0,repeatDelay:i=0,repeatType:o,velocity:a=0}=this.options,c=cy(n)?n:Uj[n]||sp;let d,p;c!==sp&&typeof e[0]!="number"&&(process.env.NODE_ENV!=="production"&&vu(e.length===2,`Only two keyframes currently supported with spring and inertia animations. Trying to animate ${e}`),d=Gd(Wj,aE(e[0],e[1])),e=[0,100]);const w=c({...this.options,keyframes:e});o==="mirror"&&(p=c({...this.options,keyframes:[...e].reverse(),velocity:-a})),w.calculatedDuration===null&&(w.calculatedDuration=DC(w));const{calculatedDuration:m}=w,T=m+i,E=T*(r+1)-i;return{generator:w,mirroredGenerator:p,mapPercentToKeyframes:d,calculatedDuration:m,resolvedDuration:T,totalDuration:E}}onPostResolved(){const{autoplay:e=!0}=this.options;this.play(),this.pendingPlayState==="paused"||!e?this.pause():this.state=this.pendingPlayState}tick(e,n=!1){const{resolved:r}=this;if(!r){const{keyframes:ue}=this.options;return{done:!0,value:ue[ue.length-1]}}const{finalKeyframe:i,generator:o,mirroredGenerator:a,mapPercentToKeyframes:c,keyframes:d,calculatedDuration:p,totalDuration:w,resolvedDuration:m}=r;if(this.startTime===null)return o.next(0);const{delay:T,repeat:E,repeatType:A,repeatDelay:I,onUpdate:j}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-w/this.speed,this.startTime)),n?this.currentTime=e:this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=Math.round(e-this.startTime)*this.speed;const _=this.currentTime-T*(this.speed>=0?1:-1),U=this.speed>=0?_<0:_>w;this.currentTime=Math.max(_,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=w);let G=this.currentTime,re=o;if(E){const ue=Math.min(this.currentTime,w)/m;let ae=Math.floor(ue),Ue=ue%1;!Ue&&ue>=1&&(Ue=1),Ue===1&&ae--,ae=Math.min(ae,E+1),!!(ae%2)&&(A==="reverse"?(Ue=1-Ue,I&&(Ue-=I/m)):A==="mirror"&&(re=a)),G=kl(0,1,Ue)*m}const q=U?{done:!1,value:d[0]}:re.next(G);c&&(q.value=c(q.value));let{done:se}=q;!U&&p!==null&&(se=this.speed>=0?this.currentTime>=w:this.currentTime<=0);const S=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&se);return S&&i!==void 0&&(q.value=Ip(d,this.options,i)),j&&j(q.value),S&&this.finish(),q}get duration(){const{resolved:e}=this;return e?Sl(e.calculatedDuration):0}get time(){return Sl(this.currentTime)}set time(e){e=Na(e),this.currentTime=e,this.holdTime!==null||this.speed===0?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.speed)}get speed(){return this.playbackSpeed}set speed(e){const n=this.playbackSpeed!==e;this.playbackSpeed=e,n&&(this.time=Sl(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;const{driver:e=Hj,onPlay:n,startTime:r}=this.options;this.driver||(this.driver=e(o=>this.tick(o))),n&&n();const i=this.driver.now();this.holdTime!==null?this.startTime=i-this.holdTime:this.startTime?this.state==="finished"&&(this.startTime=i):this.startTime=r??this.calcStartTime(),this.state==="finished"&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var e;if(!this._resolved){this.pendingPlayState="paused";return}this.state="paused",this.holdTime=(e=this.currentTime)!==null&&e!==void 0?e:0}complete(){this.state!=="running"&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";const{onComplete:e}=this.options;e&&e()}cancel(){this.cancelTime!==null&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedPromise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel()}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(e){return this.startTime=0,this.tick(e,!0)}}const zj=new Set(["opacity","clipPath","filter","transform"]);function Yj(t,e,n,{delay:r=0,duration:i=300,repeat:o=0,repeatType:a="loop",ease:c="easeInOut",times:d}={}){const p={[e]:n};d&&(p.offset=d);const w=_C(c,i);return Array.isArray(w)&&(p.easing=w),t.animate(p,{delay:r,duration:i,easing:Array.isArray(w)?"linear":w,fill:"both",iterations:o+1,direction:a==="reverse"?"alternate":"normal"})}const Gj=Xv(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),ap=10,qj=2e4;function Xj(t){return cy(t.type)||t.type==="spring"||!OC(t.ease)}function Kj(t,e){const n=new Ty({...e,keyframes:t,repeat:0,delay:0,isGenerator:!0});let r={done:!1,value:t[0]};const i=[];let o=0;for(;!r.done&&o<qj;)r=n.sample(o),i.push(r.value),o+=ap;return{times:void 0,keyframes:i,duration:o-ap,ease:"linear"}}const fE={anticipate:HC,backInOut:VC,circInOut:WC};function Zj(t){return t in fE}class Uw extends oE{constructor(e){super(e);const{name:n,motionValue:r,element:i,keyframes:o}=this.options;this.resolver=new iE(o,(a,c)=>this.onKeyframesResolved(a,c),n,r,i),this.resolver.scheduleResolve()}initPlayback(e,n){let{duration:r=300,times:i,ease:o,type:a,motionValue:c,name:d,startTime:p}=this.options;if(!c.owner||!c.owner.current)return!1;if(typeof o=="string"&&ip()&&Zj(o)&&(o=fE[o]),Xj(this.options)){const{onComplete:m,onUpdate:T,motionValue:E,element:A,...I}=this.options,j=Kj(e,I);e=j.keyframes,e.length===1&&(e[1]=e[0]),r=j.duration,i=j.times,o=j.ease,a="keyframes"}const w=Yj(c.owner.current,d,e,{...this.options,duration:r,times:i,ease:o});return w.startTime=p??this.calcStartTime(),this.pendingTimeline?(Ew(w,this.pendingTimeline),this.pendingTimeline=void 0):w.onfinish=()=>{const{onComplete:m}=this.options;c.set(Ip(e,this.options,n)),m&&m(),this.cancel(),this.resolveFinishedPromise()},{animation:w,duration:r,times:i,type:a,ease:o,keyframes:e}}get duration(){const{resolved:e}=this;if(!e)return 0;const{duration:n}=e;return Sl(n)}get time(){const{resolved:e}=this;if(!e)return 0;const{animation:n}=e;return Sl(n.currentTime||0)}set time(e){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.currentTime=Na(e)}get speed(){const{resolved:e}=this;if(!e)return 1;const{animation:n}=e;return n.playbackRate}set speed(e){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.playbackRate=e}get state(){const{resolved:e}=this;if(!e)return"idle";const{animation:n}=e;return n.playState}get startTime(){const{resolved:e}=this;if(!e)return null;const{animation:n}=e;return n.startTime}attachTimeline(e){if(!this._resolved)this.pendingTimeline=e;else{const{resolved:n}=this;if(!n)return _o;const{animation:r}=n;Ew(r,e)}return _o}play(){if(this.isStopped)return;const{resolved:e}=this;if(!e)return;const{animation:n}=e;n.playState==="finished"&&this.updateFinishedPromise(),n.play()}pause(){const{resolved:e}=this;if(!e)return;const{animation:n}=e;n.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.resolveFinishedPromise(),this.updateFinishedPromise();const{resolved:e}=this;if(!e)return;const{animation:n,keyframes:r,duration:i,type:o,ease:a,times:c}=e;if(n.playState==="idle"||n.playState==="finished")return;if(this.time){const{motionValue:p,onUpdate:w,onComplete:m,element:T,...E}=this.options,A=new Ty({...E,keyframes:r,duration:i,type:o,ease:a,times:c,isGenerator:!0}),I=Na(this.time);p.setWithVelocity(A.sample(I-ap).value,A.sample(I).value,ap)}const{onStop:d}=this.options;d&&d(),this.cancel()}complete(){const{resolved:e}=this;e&&e.animation.finish()}cancel(){const{resolved:e}=this;e&&e.animation.cancel()}static supports(e){const{motionValue:n,name:r,repeatDelay:i,repeatType:o,damping:a,type:c}=e;if(!n||!n.owner||!(n.owner.current instanceof HTMLElement))return!1;const{onUpdate:d,transformTemplate:p}=n.owner.getProps();return Gj()&&r&&zj.has(r)&&!d&&!p&&!i&&o!=="mirror"&&a!==0&&c!=="inertia"}}const Jj={type:"spring",stiffness:500,damping:25,restSpeed:10},Qj=t=>({type:"spring",stiffness:550,damping:t===0?2*Math.sqrt(550):30,restSpeed:10}),eB={type:"keyframes",duration:.8},tB={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},nB=(t,{keyframes:e})=>e.length>2?eB:_c.has(t)?t.startsWith("scale")?Qj(e[1]):Jj:tB;function rB({when:t,delay:e,delayChildren:n,staggerChildren:r,staggerDirection:i,repeat:o,repeatType:a,repeatDelay:c,from:d,elapsed:p,...w}){return!!Object.keys(w).length}const Cy=(t,e,n,r={},i,o)=>a=>{const c=uy(r,t)||{},d=c.delay||r.delay||0;let{elapsed:p=0}=r;p=p-Na(d);let w={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:e.getVelocity(),...c,delay:-p,onUpdate:T=>{e.set(T),c.onUpdate&&c.onUpdate(T)},onComplete:()=>{a(),c.onComplete&&c.onComplete()},name:t,motionValue:e,element:o?void 0:i};rB(c)||(w={...w,...nB(t,w)}),w.duration&&(w.duration=Na(w.duration)),w.repeatDelay&&(w.repeatDelay=Na(w.repeatDelay)),w.from!==void 0&&(w.keyframes[0]=w.from);let m=!1;if((w.type===!1||w.duration===0&&!w.repeatDelay)&&(w.duration=0,w.delay===0&&(m=!0)),m&&!o&&e.get()!==void 0){const T=Ip(w.keyframes,c);if(T!==void 0)return Fn.update(()=>{w.onUpdate(T),w.onComplete()}),new SN([])}return!o&&Uw.supports(w)?new Uw(w):new Ty(w)};function iB({protectedKeys:t,needsAnimating:e},n){const r=t.hasOwnProperty(n)&&e[n]!==!0;return e[n]=!1,r}function dE(t,e,{delay:n=0,transitionOverride:r,type:i}={}){var o;let{transition:a=t.getDefaultTransition(),transitionEnd:c,...d}=e;r&&(a=r);const p=[],w=i&&t.animationState&&t.animationState.getState()[i];for(const m in d){const T=t.getValue(m,(o=t.latestValues[m])!==null&&o!==void 0?o:null),E=d[m];if(E===void 0||w&&iB(w,m))continue;const A={delay:n,...uy(a||{},m)};let I=!1;if(window.MotionHandoffAnimation){const _=FC(t);if(_){const U=window.MotionHandoffAnimation(_,m,Fn);U!==null&&(A.startTime=U,I=!0)}}Vm(t,m),T.start(Cy(m,T,E,t.shouldReduceMotion&&MC.has(m)?{type:!1}:A,t,I));const j=T.animation;j&&p.push(j)}return c&&Promise.all(p).then(()=>{Fn.update(()=>{c&&FN(t,c)})}),p}function qm(t,e,n={}){var r;const i=Ap(t,e,n.type==="exit"?(r=t.presenceContext)===null||r===void 0?void 0:r.custom:void 0);let{transition:o=t.getDefaultTransition()||{}}=i||{};n.transitionOverride&&(o=n.transitionOverride);const a=i?()=>Promise.all(dE(t,i,n)):()=>Promise.resolve(),c=t.variantChildren&&t.variantChildren.size?(p=0)=>{const{delayChildren:w=0,staggerChildren:m,staggerDirection:T}=o;return oB(t,e,w+p,m,T,n)}:()=>Promise.resolve(),{when:d}=o;if(d){const[p,w]=d==="beforeChildren"?[a,c]:[c,a];return p().then(()=>w())}else return Promise.all([a(),c(n.delay)])}function oB(t,e,n=0,r=0,i=1,o){const a=[],c=(t.variantChildren.size-1)*r,d=i===1?(p=0)=>p*r:(p=0)=>c-p*r;return Array.from(t.variantChildren).sort(sB).forEach((p,w)=>{p.notify("AnimationStart",e),a.push(qm(p,e,{...o,delay:n+d(w)}).then(()=>p.notify("AnimationComplete",e)))}),Promise.all(a)}function sB(t,e){return t.sortNodePosition(e)}function aB(t,e,n={}){t.notify("AnimationStart",e);let r;if(Array.isArray(e)){const i=e.map(o=>qm(t,o,n));r=Promise.all(i)}else if(typeof e=="string")r=qm(t,e,n);else{const i=typeof e=="function"?Ap(t,e,n.custom):e;r=Promise.all(dE(t,i,n))}return r.then(()=>{t.notify("AnimationComplete",e)})}const lB=Zv.length;function hE(t){if(!t)return;if(!t.isControllingVariants){const n=t.parent?hE(t.parent)||{}:{};return t.props.initial!==void 0&&(n.initial=t.props.initial),n}const e={};for(let n=0;n<lB;n++){const r=Zv[n],i=t.props[r];(Ad(i)||i===!1)&&(e[r]=i)}return e}const uB=[...Kv].reverse(),cB=Kv.length;function fB(t){return e=>Promise.all(e.map(({animation:n,options:r})=>aB(t,n,r)))}function dB(t){let e=fB(t),n=Ww(),r=!0;const i=d=>(p,w)=>{var m;const T=Ap(t,w,d==="exit"?(m=t.presenceContext)===null||m===void 0?void 0:m.custom:void 0);if(T){const{transition:E,transitionEnd:A,...I}=T;p={...p,...I,...A}}return p};function o(d){e=d(t)}function a(d){const{props:p}=t,w=hE(t.parent)||{},m=[],T=new Set;let E={},A=1/0;for(let j=0;j<cB;j++){const _=uB[j],U=n[_],G=p[_]!==void 0?p[_]:w[_],re=Ad(G),q=_===d?U.isActive:null;q===!1&&(A=j);let se=G===w[_]&&G!==p[_]&&re;if(se&&r&&t.manuallyAnimateOnMount&&(se=!1),U.protectedKeys={...E},!U.isActive&&q===null||!G&&!U.prevProp||_p(G)||typeof G=="boolean")continue;const S=hB(U.prevProp,G);let ue=S||_===d&&U.isActive&&!se&&re||j>A&&re,ae=!1;const Ue=Array.isArray(G)?G:[G];let nt=Ue.reduce(i(_),{});q===!1&&(nt={});const{prevResolvedValues:et={}}=U,De={...et,...nt},Me=Pe=>{ue=!0,T.has(Pe)&&(ae=!0,T.delete(Pe)),U.needsAnimating[Pe]=!0;const Be=t.getValue(Pe);Be&&(Be.liveStyle=!1)};for(const Pe in De){const Be=nt[Pe],Ze=et[Pe];if(E.hasOwnProperty(Pe))continue;let ve=!1;jm(Be)&&jm(Ze)?ve=!kC(Be,Ze):ve=Be!==Ze,ve?Be!=null?Me(Pe):T.add(Pe):Be!==void 0&&T.has(Pe)?Me(Pe):U.protectedKeys[Pe]=!0}U.prevProp=G,U.prevResolvedValues=nt,U.isActive&&(E={...E,...nt}),r&&t.blockInitialAnimation&&(ue=!1),ue&&(!(se&&S)||ae)&&m.push(...Ue.map(Pe=>({animation:Pe,options:{type:_}})))}if(T.size){const j={};T.forEach(_=>{const U=t.getBaseTarget(_),G=t.getValue(_);G&&(G.liveStyle=!0),j[_]=U??null}),m.push({animation:j})}let I=!!m.length;return r&&(p.initial===!1||p.initial===p.animate)&&!t.manuallyAnimateOnMount&&(I=!1),r=!1,I?e(m):Promise.resolve()}function c(d,p){var w;if(n[d].isActive===p)return Promise.resolve();(w=t.variantChildren)===null||w===void 0||w.forEach(T=>{var E;return(E=T.animationState)===null||E===void 0?void 0:E.setActive(d,p)}),n[d].isActive=p;const m=a(d);for(const T in n)n[T].protectedKeys={};return m}return{animateChanges:a,setActive:c,setAnimateFunction:o,getState:()=>n,reset:()=>{n=Ww(),r=!0}}}function hB(t,e){return typeof e=="string"?e!==t:Array.isArray(e)?!kC(e,t):!1}function oc(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Ww(){return{animate:oc(!0),whileInView:oc(),whileHover:oc(),whileTap:oc(),whileDrag:oc(),whileFocus:oc(),exit:oc()}}let Cu=class{constructor(e){this.isMounted=!1,this.node=e}update(){}},pB=class extends Cu{constructor(e){super(e),e.animationState||(e.animationState=dB(e))}updateAnimationControlsSubscription(){const{animate:e}=this.node.getProps();_p(e)&&(this.unmountControls=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:e}=this.node.getProps(),{animate:n}=this.node.prevProps||{};e!==n&&this.updateAnimationControlsSubscription()}unmount(){var e;this.node.animationState.reset(),(e=this.unmountControls)===null||e===void 0||e.call(this)}},gB=0,mB=class extends Cu{constructor(){super(...arguments),this.id=gB++}update(){if(!this.node.presenceContext)return;const{isPresent:e,onExitComplete:n}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===r)return;const i=this.node.animationState.setActive("exit",!e);n&&!e&&i.then(()=>n(this.id))}mount(){const{register:e}=this.node.presenceContext||{};e&&(this.unmount=e(this.id))}unmount(){}};const vB={animation:{Feature:pB},exit:{Feature:mB}};function Fd(t,e,n,r={passive:!0}){return t.addEventListener(e,n,r),()=>t.removeEventListener(e,n)}function qd(t){return{point:{x:t.pageX,y:t.pageY}}}const yB=t=>e=>dy(e)&&t(e,qd(e));function yd(t,e,n,r){return Fd(t,e,yB(n),r)}const zw=(t,e)=>Math.abs(t-e);function bB(t,e){const n=zw(t.x,e.x),r=zw(t.y,e.y);return Math.sqrt(n**2+r**2)}let pE=class{constructor(e,n,{transformPagePoint:r,contextWindow:i,dragSnapToOrigin:o=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const m=Vg(this.lastMoveEventInfo,this.history),T=this.startEvent!==null,E=bB(m.offset,{x:0,y:0})>=3;if(!T&&!E)return;const{point:A}=m,{timestamp:I}=Ci;this.history.push({...A,timestamp:I});const{onStart:j,onMove:_}=this.handlers;T||(j&&j(this.lastMoveEvent,m),this.startEvent=this.lastMoveEvent),_&&_(this.lastMoveEvent,m)},this.handlePointerMove=(m,T)=>{this.lastMoveEvent=m,this.lastMoveEventInfo=$g(T,this.transformPagePoint),Fn.update(this.updatePoint,!0)},this.handlePointerUp=(m,T)=>{this.end();const{onEnd:E,onSessionEnd:A,resumeAnimation:I}=this.handlers;if(this.dragSnapToOrigin&&I&&I(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const j=Vg(m.type==="pointercancel"?this.lastMoveEventInfo:$g(T,this.transformPagePoint),this.history);this.startEvent&&E&&E(m,j),A&&A(m,j)},!dy(e))return;this.dragSnapToOrigin=o,this.handlers=n,this.transformPagePoint=r,this.contextWindow=i||window;const a=qd(e),c=$g(a,this.transformPagePoint),{point:d}=c,{timestamp:p}=Ci;this.history=[{...d,timestamp:p}];const{onSessionStart:w}=n;w&&w(e,Vg(c,this.history)),this.removeListeners=Gd(yd(this.contextWindow,"pointermove",this.handlePointerMove),yd(this.contextWindow,"pointerup",this.handlePointerUp),yd(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),yu(this.updatePoint)}};function $g(t,e){return e?{point:e(t.point)}:t}function Yw(t,e){return{x:t.x-e.x,y:t.y-e.y}}function Vg({point:t},e){return{point:t,delta:Yw(t,gE(e)),offset:Yw(t,wB(e)),velocity:xB(e,.1)}}function wB(t){return t[0]}function gE(t){return t[t.length-1]}function xB(t,e){if(t.length<2)return{x:0,y:0};let n=t.length-1,r=null;const i=gE(t);for(;n>=0&&(r=t[n],!(i.timestamp-r.timestamp>Na(e)));)n--;if(!r)return{x:0,y:0};const o=Sl(i.timestamp-r.timestamp);if(o===0)return{x:0,y:0};const a={x:(i.x-r.x)/o,y:(i.y-r.y)/o};return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}const mE=1e-4,SB=1-mE,TB=1+mE,vE=.01,CB=0-vE,EB=0+vE;function Qo(t){return t.max-t.min}function kB(t,e,n){return Math.abs(t-e)<=n}function Gw(t,e,n,r=.5){t.origin=r,t.originPoint=Kn(e.min,e.max,t.origin),t.scale=Qo(n)/Qo(e),t.translate=Kn(n.min,n.max,t.origin)-t.originPoint,(t.scale>=SB&&t.scale<=TB||isNaN(t.scale))&&(t.scale=1),(t.translate>=CB&&t.translate<=EB||isNaN(t.translate))&&(t.translate=0)}function bd(t,e,n,r){Gw(t.x,e.x,n.x,r?r.originX:void 0),Gw(t.y,e.y,n.y,r?r.originY:void 0)}function qw(t,e,n){t.min=n.min+e.min,t.max=t.min+Qo(e)}function DB(t,e,n){qw(t.x,e.x,n.x),qw(t.y,e.y,n.y)}function Xw(t,e,n){t.min=e.min-n.min,t.max=t.min+Qo(e)}function wd(t,e,n){Xw(t.x,e.x,n.x),Xw(t.y,e.y,n.y)}function PB(t,{min:e,max:n},r){return e!==void 0&&t<e?t=r?Kn(e,t,r.min):Math.max(t,e):n!==void 0&&t>n&&(t=r?Kn(n,t,r.max):Math.min(t,n)),t}function Kw(t,e,n){return{min:e!==void 0?t.min+e:void 0,max:n!==void 0?t.max+n-(t.max-t.min):void 0}}function OB(t,{top:e,left:n,bottom:r,right:i}){return{x:Kw(t.x,n,i),y:Kw(t.y,e,r)}}function Zw(t,e){let n=e.min-t.min,r=e.max-t.max;return e.max-e.min<t.max-t.min&&([n,r]=[r,n]),{min:n,max:r}}function _B(t,e){return{x:Zw(t.x,e.x),y:Zw(t.y,e.y)}}function RB(t,e){let n=.5;const r=Qo(t),i=Qo(e);return i>r?n=kf(e.min,e.max-r,t.min):r>i&&(n=kf(t.min,t.max-i,e.min)),kl(0,1,n)}function AB(t,e){const n={};return e.min!==void 0&&(n.min=e.min-t.min),e.max!==void 0&&(n.max=e.max-t.min),n}const Xm=.35;function IB(t=Xm){return t===!1?t=0:t===!0&&(t=Xm),{x:Jw(t,"left","right"),y:Jw(t,"top","bottom")}}function Jw(t,e,n){return{min:Qw(t,e),max:Qw(t,n)}}function Qw(t,e){return typeof t=="number"?t:t[e]||0}const ex=()=>({translate:0,scale:1,origin:0,originPoint:0}),mf=()=>({x:ex(),y:ex()}),tx=()=>({min:0,max:0}),gr=()=>({x:tx(),y:tx()});function Ds(t){return[t("x"),t("y")]}function yE({top:t,left:e,right:n,bottom:r}){return{x:{min:e,max:n},y:{min:t,max:r}}}function MB({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}function LB(t,e){if(!e)return t;const n=e({x:t.left,y:t.top}),r=e({x:t.right,y:t.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function Hg(t){return t===void 0||t===1}function Km({scale:t,scaleX:e,scaleY:n}){return!Hg(t)||!Hg(e)||!Hg(n)}function uc(t){return Km(t)||bE(t)||t.z||t.rotate||t.rotateX||t.rotateY||t.skewX||t.skewY}function bE(t){return nx(t.x)||nx(t.y)}function nx(t){return t&&t!=="0%"}function lp(t,e,n){const r=t-n,i=e*r;return n+i}function rx(t,e,n,r,i){return i!==void 0&&(t=lp(t,i,r)),lp(t,n,r)+e}function Zm(t,e=0,n=1,r,i){t.min=rx(t.min,e,n,r,i),t.max=rx(t.max,e,n,r,i)}function wE(t,{x:e,y:n}){Zm(t.x,e.translate,e.scale,e.originPoint),Zm(t.y,n.translate,n.scale,n.originPoint)}const ix=.999999999999,ox=1.0000000000001;function FB(t,e,n,r=!1){const i=n.length;if(!i)return;e.x=e.y=1;let o,a;for(let c=0;c<i;c++){o=n[c],a=o.projectionDelta;const{visualElement:d}=o.options;d&&d.props.style&&d.props.style.display==="contents"||(r&&o.options.layoutScroll&&o.scroll&&o!==o.root&&yf(t,{x:-o.scroll.offset.x,y:-o.scroll.offset.y}),a&&(e.x*=a.x.scale,e.y*=a.y.scale,wE(t,a)),r&&uc(o.latestValues)&&yf(t,o.latestValues))}e.x<ox&&e.x>ix&&(e.x=1),e.y<ox&&e.y>ix&&(e.y=1)}function vf(t,e){t.min=t.min+e,t.max=t.max+e}function sx(t,e,n,r,i=.5){const o=Kn(t.min,t.max,i);Zm(t,e,n,o,r)}function yf(t,e){sx(t.x,e.x,e.scaleX,e.scale,e.originX),sx(t.y,e.y,e.scaleY,e.scale,e.originY)}function xE(t,e){return yE(LB(t.getBoundingClientRect(),e))}function NB(t,e,n){const r=xE(t,n),{scroll:i}=e;return i&&(vf(r.x,i.offset.x),vf(r.y,i.offset.y)),r}const SE=({current:t})=>t?t.ownerDocument.defaultView:null,jB=new WeakMap;let BB=class{constructor(e){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=gr(),this.visualElement=e}start(e,{snapToCursor:n=!1}={}){const{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;const i=w=>{const{dragSnapToOrigin:m}=this.getProps();m?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(qd(w).point)},o=(w,m)=>{const{drag:T,dragPropagation:E,onDragStart:A}=this.getProps();if(T&&!E&&(this.openDragLock&&this.openDragLock(),this.openDragLock=RN(T),!this.openDragLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Ds(j=>{let _=this.getAxisMotionValue(j).get()||0;if(ja.test(_)){const{projection:U}=this.visualElement;if(U&&U.layout){const G=U.layout.layoutBox[j];G&&(_=Qo(G)*(parseFloat(_)/100))}}this.originPoint[j]=_}),A&&Fn.postRender(()=>A(w,m)),Vm(this.visualElement,"transform");const{animationState:I}=this.visualElement;I&&I.setActive("whileDrag",!0)},a=(w,m)=>{const{dragPropagation:T,dragDirectionLock:E,onDirectionLock:A,onDrag:I}=this.getProps();if(!T&&!this.openDragLock)return;const{offset:j}=m;if(E&&this.currentDirection===null){this.currentDirection=$B(j),this.currentDirection!==null&&A&&A(this.currentDirection);return}this.updateAxis("x",m.point,j),this.updateAxis("y",m.point,j),this.visualElement.render(),I&&I(w,m)},c=(w,m)=>this.stop(w,m),d=()=>Ds(w=>{var m;return this.getAnimationState(w)==="paused"&&((m=this.getAxisMotionValue(w).animation)===null||m===void 0?void 0:m.play())}),{dragSnapToOrigin:p}=this.getProps();this.panSession=new pE(e,{onSessionStart:i,onStart:o,onMove:a,onSessionEnd:c,resumeAnimation:d},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:p,contextWindow:SE(this.visualElement)})}stop(e,n){const r=this.isDragging;if(this.cancel(),!r)return;const{velocity:i}=n;this.startAnimation(i);const{onDragEnd:o}=this.getProps();o&&Fn.postRender(()=>o(e,n))}cancel(){this.isDragging=!1;const{projection:e,animationState:n}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:r}=this.getProps();!r&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(e,n,r){const{drag:i}=this.getProps();if(!r||!Ch(e,i,this.currentDirection))return;const o=this.getAxisMotionValue(e);let a=this.originPoint[e]+r[e];this.constraints&&this.constraints[e]&&(a=PB(a,this.constraints[e],this.elastic[e])),o.set(a)}resolveConstraints(){var e;const{dragConstraints:n,dragElastic:r}=this.getProps(),i=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(e=this.visualElement.projection)===null||e===void 0?void 0:e.layout,o=this.constraints;n&&pf(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&i?this.constraints=OB(i.layoutBox,n):this.constraints=!1,this.elastic=IB(r),o!==this.constraints&&i&&this.constraints&&!this.hasMutatedConstraints&&Ds(a=>{this.constraints!==!1&&this.getAxisMotionValue(a)&&(this.constraints[a]=AB(i.layoutBox[a],this.constraints[a]))})}resolveRefConstraints(){const{dragConstraints:e,onMeasureDragConstraints:n}=this.getProps();if(!e||!pf(e))return!1;const r=e.current;vu(r!==null,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");const{projection:i}=this.visualElement;if(!i||!i.layout)return!1;const o=NB(r,i.root,this.visualElement.getTransformPagePoint());let a=_B(i.layout.layoutBox,o);if(n){const c=n(MB(a));this.hasMutatedConstraints=!!c,c&&(a=yE(c))}return a}startAnimation(e){const{drag:n,dragMomentum:r,dragElastic:i,dragTransition:o,dragSnapToOrigin:a,onDragTransitionEnd:c}=this.getProps(),d=this.constraints||{},p=Ds(w=>{if(!Ch(w,n,this.currentDirection))return;let m=d&&d[w]||{};a&&(m={min:0,max:0});const T=i?200:1e6,E=i?40:1e7,A={type:"inertia",velocity:r?e[w]:0,bounceStiffness:T,bounceDamping:E,timeConstant:750,restDelta:1,restSpeed:10,...o,...m};return this.startAxisValueAnimation(w,A)});return Promise.all(p).then(c)}startAxisValueAnimation(e,n){const r=this.getAxisMotionValue(e);return Vm(this.visualElement,e),r.start(Cy(e,r,0,n,this.visualElement,!1))}stopAnimation(){Ds(e=>this.getAxisMotionValue(e).stop())}pauseAnimation(){Ds(e=>{var n;return(n=this.getAxisMotionValue(e).animation)===null||n===void 0?void 0:n.pause()})}getAnimationState(e){var n;return(n=this.getAxisMotionValue(e).animation)===null||n===void 0?void 0:n.state}getAxisMotionValue(e){const n=`_drag${e.toUpperCase()}`,r=this.visualElement.getProps(),i=r[n];return i||this.visualElement.getValue(e,(r.initial?r.initial[e]:void 0)||0)}snapToCursor(e){Ds(n=>{const{drag:r}=this.getProps();if(!Ch(n,r,this.currentDirection))return;const{projection:i}=this.visualElement,o=this.getAxisMotionValue(n);if(i&&i.layout){const{min:a,max:c}=i.layout.layoutBox[n];o.set(e[n]-Kn(a,c,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:e,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!pf(n)||!r||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};Ds(a=>{const c=this.getAxisMotionValue(a);if(c&&this.constraints!==!1){const d=c.get();i[a]=RB({min:d,max:d},this.constraints[a])}});const{transformTemplate:o}=this.visualElement.getProps();this.visualElement.current.style.transform=o?o({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),Ds(a=>{if(!Ch(a,e,null))return;const c=this.getAxisMotionValue(a),{min:d,max:p}=this.constraints[a];c.set(Kn(d,p,i[a]))})}addListeners(){if(!this.visualElement.current)return;jB.set(this.visualElement,this);const e=this.visualElement.current,n=yd(e,"pointerdown",d=>{const{drag:p,dragListener:w=!0}=this.getProps();p&&w&&this.start(d)}),r=()=>{const{dragConstraints:d}=this.getProps();pf(d)&&d.current&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,o=i.addEventListener("measure",r);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),Fn.read(r);const a=Fd(window,"resize",()=>this.scalePositionWithinConstraints()),c=i.addEventListener("didUpdate",({delta:d,hasLayoutChanged:p})=>{this.isDragging&&p&&(Ds(w=>{const m=this.getAxisMotionValue(w);m&&(this.originPoint[w]+=d[w].translate,m.set(m.get()+d[w].translate))}),this.visualElement.render())});return()=>{a(),n(),o(),c&&c()}}getProps(){const e=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:i=!1,dragConstraints:o=!1,dragElastic:a=Xm,dragMomentum:c=!0}=e;return{...e,drag:n,dragDirectionLock:r,dragPropagation:i,dragConstraints:o,dragElastic:a,dragMomentum:c}}};function Ch(t,e,n){return(e===!0||e===t)&&(n===null||n===t)}function $B(t,e=10){let n=null;return Math.abs(t.y)>e?n="y":Math.abs(t.x)>e&&(n="x"),n}let VB=class extends Cu{constructor(e){super(e),this.removeGroupControls=_o,this.removeListeners=_o,this.controls=new BB(e)}mount(){const{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||_o}unmount(){this.removeGroupControls(),this.removeListeners()}};const ax=t=>(e,n)=>{t&&Fn.postRender(()=>t(e,n))};let HB=class extends Cu{constructor(){super(...arguments),this.removePointerDownListener=_o}onPointerDown(e){this.session=new pE(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:SE(this.node)})}createPanHandlers(){const{onPanSessionStart:e,onPanStart:n,onPan:r,onPanEnd:i}=this.node.getProps();return{onSessionStart:ax(e),onStart:ax(n),onMove:r,onEnd:(o,a)=>{delete this.session,i&&Fn.postRender(()=>i(o,a))}}}mount(){this.removePointerDownListener=yd(this.node.current,"pointerdown",e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}};const Bh={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function lx(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}const id={correct:(t,e)=>{if(!e.target)return t;if(typeof t=="string")if(Ot.test(t))t=parseFloat(t);else return t;const n=lx(t,e.target.x),r=lx(t,e.target.y);return`${n}% ${r}%`}},UB={correct:(t,{treeScale:e,projectionDelta:n})=>{const r=t,i=bu.parse(t);if(i.length>5)return r;const o=bu.createTransformer(t),a=typeof i[0]!="number"?1:0,c=n.x.scale*e.x,d=n.y.scale*e.y;i[0+a]/=c,i[1+a]/=d;const p=Kn(c,d,.5);return typeof i[2+a]=="number"&&(i[2+a]/=p),typeof i[3+a]=="number"&&(i[3+a]/=p),o(i)}};let WB=class extends X.Component{componentDidMount(){const{visualElement:e,layoutGroup:n,switchLayoutGroup:r,layoutId:i}=this.props,{projection:o}=e;cN(zB),o&&(n.group&&n.group.add(o),r&&r.register&&i&&r.register(o),o.root.didUpdate(),o.addEventListener("animationComplete",()=>{this.safeToRemove()}),o.setOptions({...o.options,onExitComplete:()=>this.safeToRemove()})),Bh.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){const{layoutDependency:n,visualElement:r,drag:i,isPresent:o}=this.props,a=r.projection;return a&&(a.isPresent=o,i||e.layoutDependency!==n||n===void 0?a.willUpdate():this.safeToRemove(),e.isPresent!==o&&(o?a.promote():a.relegate()||Fn.postRender(()=>{const c=a.getStack();(!c||!c.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:e}=this.props.visualElement;e&&(e.root.didUpdate(),Qv.postRender(()=>{!e.currentAnimation&&e.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:e,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:i}=e;i&&(i.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(i),r&&r.deregister&&r.deregister(i))}safeToRemove(){const{safeToRemove:e}=this.props;e&&e()}render(){return null}};function TE(t){const[e,n]=EF(),r=X.useContext(sC);return Re.jsx(WB,{...t,layoutGroup:r,switchLayoutGroup:X.useContext(hC),isPresent:e,safeToRemove:n})}const zB={borderRadius:{...id,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:id,borderTopRightRadius:id,borderBottomLeftRadius:id,borderBottomRightRadius:id,boxShadow:UB};function YB(t,e,n){const r=ji(t)?t:Md(t);return r.start(Cy("",r,e,n)),r.animation}function GB(t){return t instanceof SVGElement&&t.tagName!=="svg"}const qB=(t,e)=>t.depth-e.depth;let XB=class{constructor(){this.children=[],this.isDirty=!1}add(e){hy(this.children,e),this.isDirty=!0}remove(e){py(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(qB),this.isDirty=!1,this.children.forEach(e)}};function KB(t,e){const n=Ba.now(),r=({timestamp:i})=>{const o=i-n;o>=e&&(yu(r),t(o-e))};return Fn.read(r,!0),()=>yu(r)}const CE=["TopLeft","TopRight","BottomLeft","BottomRight"],ZB=CE.length,ux=t=>typeof t=="string"?parseFloat(t):t,cx=t=>typeof t=="number"||Ot.test(t);function JB(t,e,n,r,i,o){i?(t.opacity=Kn(0,n.opacity!==void 0?n.opacity:1,QB(r)),t.opacityExit=Kn(e.opacity!==void 0?e.opacity:1,0,e$(r))):o&&(t.opacity=Kn(e.opacity!==void 0?e.opacity:1,n.opacity!==void 0?n.opacity:1,r));for(let a=0;a<ZB;a++){const c=`border${CE[a]}Radius`;let d=fx(e,c),p=fx(n,c);if(d===void 0&&p===void 0)continue;d||(d=0),p||(p=0),d===0||p===0||cx(d)===cx(p)?(t[c]=Math.max(Kn(ux(d),ux(p),r),0),(ja.test(p)||ja.test(d))&&(t[c]+="%")):t[c]=p}(e.rotate||n.rotate)&&(t.rotate=Kn(e.rotate||0,n.rotate||0,r))}function fx(t,e){return t[e]!==void 0?t[e]:t.borderRadius}const QB=EE(0,.5,UC),e$=EE(.5,.95,_o);function EE(t,e,n){return r=>r<t?0:r>e?1:n(kf(t,e,r))}function dx(t,e){t.min=e.min,t.max=e.max}function Ts(t,e){dx(t.x,e.x),dx(t.y,e.y)}function hx(t,e){t.translate=e.translate,t.scale=e.scale,t.originPoint=e.originPoint,t.origin=e.origin}function px(t,e,n,r,i){return t-=e,t=lp(t,1/n,r),i!==void 0&&(t=lp(t,1/i,r)),t}function t$(t,e=0,n=1,r=.5,i,o=t,a=t){if(ja.test(e)&&(e=parseFloat(e),e=Kn(a.min,a.max,e/100)-a.min),typeof e!="number")return;let c=Kn(o.min,o.max,r);t===o&&(c-=e),t.min=px(t.min,e,n,c,i),t.max=px(t.max,e,n,c,i)}function gx(t,e,[n,r,i],o,a){t$(t,e[n],e[r],e[i],e.scale,o,a)}const n$=["x","scaleX","originX"],r$=["y","scaleY","originY"];function mx(t,e,n,r){gx(t.x,e,n$,n?n.x:void 0,r?r.x:void 0),gx(t.y,e,r$,n?n.y:void 0,r?r.y:void 0)}function vx(t){return t.translate===0&&t.scale===1}function kE(t){return vx(t.x)&&vx(t.y)}function yx(t,e){return t.min===e.min&&t.max===e.max}function i$(t,e){return yx(t.x,e.x)&&yx(t.y,e.y)}function bx(t,e){return Math.round(t.min)===Math.round(e.min)&&Math.round(t.max)===Math.round(e.max)}function DE(t,e){return bx(t.x,e.x)&&bx(t.y,e.y)}function wx(t){return Qo(t.x)/Qo(t.y)}function xx(t,e){return t.translate===e.translate&&t.scale===e.scale&&t.originPoint===e.originPoint}let o$=class{constructor(){this.members=[]}add(e){hy(this.members,e),e.scheduleRender()}remove(e){if(py(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(e){const n=this.members.findIndex(i=>e===i);if(n===0)return!1;let r;for(let i=n;i>=0;i--){const o=this.members[i];if(o.isPresent!==!1){r=o;break}}return r?(this.promote(r),!0):!1}promote(e,n){const r=this.lead;if(e!==r&&(this.prevLead=r,this.lead=e,e.show(),r)){r.instance&&r.scheduleRender(),e.scheduleRender(),e.resumeFrom=r,n&&(e.resumeFrom.preserveOpacity=!0),r.snapshot&&(e.snapshot=r.snapshot,e.snapshot.latestValues=r.animationValues||r.latestValues),e.root&&e.root.isUpdating&&(e.isLayoutDirty=!0);const{crossfade:i}=e.options;i===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(e=>{const{options:n,resumingFrom:r}=e;n.onExitComplete&&n.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(e=>{e.instance&&e.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}};function s$(t,e,n){let r="";const i=t.x.translate/e.x,o=t.y.translate/e.y,a=(n==null?void 0:n.z)||0;if((i||o||a)&&(r=`translate3d(${i}px, ${o}px, ${a}px) `),(e.x!==1||e.y!==1)&&(r+=`scale(${1/e.x}, ${1/e.y}) `),n){const{transformPerspective:p,rotate:w,rotateX:m,rotateY:T,skewX:E,skewY:A}=n;p&&(r=`perspective(${p}px) ${r}`),w&&(r+=`rotate(${w}deg) `),m&&(r+=`rotateX(${m}deg) `),T&&(r+=`rotateY(${T}deg) `),E&&(r+=`skewX(${E}deg) `),A&&(r+=`skewY(${A}deg) `)}const c=t.x.scale*e.x,d=t.y.scale*e.y;return(c!==1||d!==1)&&(r+=`scale(${c}, ${d})`),r||"none"}const cc={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0},fd=typeof window<"u"&&window.MotionDebug!==void 0,Ug=["","X","Y","Z"],a$={visibility:"hidden"},Sx=1e3;let l$=0;function Wg(t,e,n,r){const{latestValues:i}=e;i[t]&&(n[t]=i[t],e.setStaticValue(t,0),r&&(r[t]=0))}function PE(t){if(t.hasCheckedOptimisedAppear=!0,t.root===t)return;const{visualElement:e}=t.options;if(!e)return;const n=FC(e);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:i,layoutId:o}=t.options;window.MotionCancelOptimisedAnimation(n,"transform",Fn,!(i||o))}const{parent:r}=t;r&&!r.hasCheckedOptimisedAppear&&PE(r)}function OE({attachResizeListener:t,defaultParent:e,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(a={},c=e==null?void 0:e()){this.id=l$++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,fd&&(cc.totalNodes=cc.resolvedTargetDeltas=cc.recalculatedProjection=0),this.nodes.forEach(f$),this.nodes.forEach(m$),this.nodes.forEach(v$),this.nodes.forEach(d$),fd&&window.MotionDebug.record(cc)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=a,this.root=c?c.root||c:this,this.path=c?[...c.path,c]:[],this.parent=c,this.depth=c?c.depth+1:0;for(let d=0;d<this.path.length;d++)this.path[d].shouldResetTransform=!0;this.root===this&&(this.nodes=new XB)}addEventListener(a,c){return this.eventHandlers.has(a)||this.eventHandlers.set(a,new gy),this.eventHandlers.get(a).add(c)}notifyListeners(a,...c){const d=this.eventHandlers.get(a);d&&d.notify(...c)}hasListeners(a){return this.eventHandlers.has(a)}mount(a,c=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=GB(a),this.instance=a;const{layoutId:d,layout:p,visualElement:w}=this.options;if(w&&!w.current&&w.mount(a),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),c&&(p||d)&&(this.isLayoutDirty=!0),t){let m;const T=()=>this.root.updateBlockedByResize=!1;t(a,()=>{this.root.updateBlockedByResize=!0,m&&m(),m=KB(T,250),Bh.hasAnimatedSinceResize&&(Bh.hasAnimatedSinceResize=!1,this.nodes.forEach(Cx))})}d&&this.root.registerSharedNode(d,this),this.options.animate!==!1&&w&&(d||p)&&this.addEventListener("didUpdate",({delta:m,hasLayoutChanged:T,hasRelativeTargetChanged:E,layout:A})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const I=this.options.transition||w.getDefaultTransition()||S$,{onLayoutAnimationStart:j,onLayoutAnimationComplete:_}=w.getProps(),U=!this.targetLayout||!DE(this.targetLayout,A)||E,G=!T&&E;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||G||T&&(U||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(m,G);const re={...uy(I,"layout"),onPlay:j,onComplete:_};(w.shouldReduceMotion||this.options.layoutRoot)&&(re.delay=0,re.type=!1),this.startAnimation(re)}else T||Cx(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=A})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const a=this.getStack();a&&a.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,yu(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(y$),this.animationId++)}getTransformTemplate(){const{visualElement:a}=this.options;return a&&a.getProps().transformTemplate}willUpdate(a=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&PE(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let w=0;w<this.path.length;w++){const m=this.path[w];m.shouldResetTransform=!0,m.updateScroll("snapshot"),m.options.layoutRoot&&m.willUpdate(!1)}const{layoutId:c,layout:d}=this.options;if(c===void 0&&!d)return;const p=this.getTransformTemplate();this.prevTransformTemplateValue=p?p(this.latestValues,""):void 0,this.updateSnapshot(),a&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(Tx);return}this.isUpdating||this.nodes.forEach(p$),this.isUpdating=!1,this.nodes.forEach(g$),this.nodes.forEach(u$),this.nodes.forEach(c$),this.clearAllSnapshots();const c=Ba.now();Ci.delta=kl(0,1e3/60,c-Ci.timestamp),Ci.timestamp=c,Ci.isProcessing=!0,Lg.update.process(Ci),Lg.preRender.process(Ci),Lg.render.process(Ci),Ci.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,Qv.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(h$),this.sharedNodes.forEach(b$)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,Fn.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){Fn.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure())}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let d=0;d<this.path.length;d++)this.path[d].updateScroll();const a=this.layout;this.layout=this.measure(!1),this.layoutCorrected=gr(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:c}=this.options;c&&c.notify("LayoutMeasure",this.layout.layoutBox,a?a.layoutBox:void 0)}updateScroll(a="measure"){let c=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===a&&(c=!1),c){const d=r(this.instance);this.scroll={animationId:this.root.animationId,phase:a,isRoot:d,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:d}}}resetTransform(){if(!i)return;const a=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,c=this.projectionDelta&&!kE(this.projectionDelta),d=this.getTransformTemplate(),p=d?d(this.latestValues,""):void 0,w=p!==this.prevTransformTemplateValue;a&&(c||uc(this.latestValues)||w)&&(i(this.instance,p),this.shouldResetTransform=!1,this.scheduleRender())}measure(a=!0){const c=this.measurePageBox();let d=this.removeElementScroll(c);return a&&(d=this.removeTransform(d)),T$(d),{animationId:this.root.animationId,measuredBox:c,layoutBox:d,latestValues:{},source:this.id}}measurePageBox(){var a;const{visualElement:c}=this.options;if(!c)return gr();const d=c.measureViewportBox();if(!(((a=this.scroll)===null||a===void 0?void 0:a.wasRoot)||this.path.some(C$))){const{scroll:w}=this.root;w&&(vf(d.x,w.offset.x),vf(d.y,w.offset.y))}return d}removeElementScroll(a){var c;const d=gr();if(Ts(d,a),!((c=this.scroll)===null||c===void 0)&&c.wasRoot)return d;for(let p=0;p<this.path.length;p++){const w=this.path[p],{scroll:m,options:T}=w;w!==this.root&&m&&T.layoutScroll&&(m.wasRoot&&Ts(d,a),vf(d.x,m.offset.x),vf(d.y,m.offset.y))}return d}applyTransform(a,c=!1){const d=gr();Ts(d,a);for(let p=0;p<this.path.length;p++){const w=this.path[p];!c&&w.options.layoutScroll&&w.scroll&&w!==w.root&&yf(d,{x:-w.scroll.offset.x,y:-w.scroll.offset.y}),uc(w.latestValues)&&yf(d,w.latestValues)}return uc(this.latestValues)&&yf(d,this.latestValues),d}removeTransform(a){const c=gr();Ts(c,a);for(let d=0;d<this.path.length;d++){const p=this.path[d];if(!p.instance||!uc(p.latestValues))continue;Km(p.latestValues)&&p.updateSnapshot();const w=gr(),m=p.measurePageBox();Ts(w,m),mx(c,p.latestValues,p.snapshot?p.snapshot.layoutBox:void 0,w)}return uc(this.latestValues)&&mx(c,this.latestValues),c}setTargetDelta(a){this.targetDelta=a,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(a){this.options={...this.options,...a,crossfade:a.crossfade!==void 0?a.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==Ci.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(a=!1){var c;const d=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=d.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=d.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=d.isSharedProjectionDirty);const p=!!this.resumingFrom||this!==d;if(!(a||p&&this.isSharedProjectionDirty||this.isProjectionDirty||!((c=this.parent)===null||c===void 0)&&c.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:m,layoutId:T}=this.options;if(!(!this.layout||!(m||T))){if(this.resolvedRelativeTargetAt=Ci.timestamp,!this.targetDelta&&!this.relativeTarget){const E=this.getClosestProjectingParent();E&&E.layout&&this.animationProgress!==1?(this.relativeParent=E,this.forceRelativeParentToResolveTarget(),this.relativeTarget=gr(),this.relativeTargetOrigin=gr(),wd(this.relativeTargetOrigin,this.layout.layoutBox,E.layout.layoutBox),Ts(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)){if(this.target||(this.target=gr(),this.targetWithTransforms=gr()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),DB(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):Ts(this.target,this.layout.layoutBox),wE(this.target,this.targetDelta)):Ts(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;const E=this.getClosestProjectingParent();E&&!!E.resumingFrom==!!this.resumingFrom&&!E.options.layoutScroll&&E.target&&this.animationProgress!==1?(this.relativeParent=E,this.forceRelativeParentToResolveTarget(),this.relativeTarget=gr(),this.relativeTargetOrigin=gr(),wd(this.relativeTargetOrigin,this.target,E.target),Ts(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}fd&&cc.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(!(!this.parent||Km(this.parent.latestValues)||bE(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var a;const c=this.getLead(),d=!!this.resumingFrom||this!==c;let p=!0;if((this.isProjectionDirty||!((a=this.parent)===null||a===void 0)&&a.isProjectionDirty)&&(p=!1),d&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(p=!1),this.resolvedRelativeTargetAt===Ci.timestamp&&(p=!1),p)return;const{layout:w,layoutId:m}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(w||m))return;Ts(this.layoutCorrected,this.layout.layoutBox);const T=this.treeScale.x,E=this.treeScale.y;FB(this.layoutCorrected,this.treeScale,this.path,d),c.layout&&!c.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(c.target=c.layout.layoutBox,c.targetWithTransforms=gr());const{target:A}=c;if(!A){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(hx(this.prevProjectionDelta.x,this.projectionDelta.x),hx(this.prevProjectionDelta.y,this.projectionDelta.y)),bd(this.projectionDelta,this.layoutCorrected,A,this.latestValues),(this.treeScale.x!==T||this.treeScale.y!==E||!xx(this.projectionDelta.x,this.prevProjectionDelta.x)||!xx(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",A)),fd&&cc.recalculatedProjection++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(a=!0){var c;if((c=this.options.visualElement)===null||c===void 0||c.scheduleRender(),a){const d=this.getStack();d&&d.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=mf(),this.projectionDelta=mf(),this.projectionDeltaWithTransform=mf()}setAnimationOrigin(a,c=!1){const d=this.snapshot,p=d?d.latestValues:{},w={...this.latestValues},m=mf();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!c;const T=gr(),E=d?d.source:void 0,A=this.layout?this.layout.source:void 0,I=E!==A,j=this.getStack(),_=!j||j.members.length<=1,U=!!(I&&!_&&this.options.crossfade===!0&&!this.path.some(x$));this.animationProgress=0;let G;this.mixTargetDelta=re=>{const q=re/1e3;Ex(m.x,a.x,q),Ex(m.y,a.y,q),this.setTargetDelta(m),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(wd(T,this.layout.layoutBox,this.relativeParent.layout.layoutBox),w$(this.relativeTarget,this.relativeTargetOrigin,T,q),G&&i$(this.relativeTarget,G)&&(this.isProjectionDirty=!1),G||(G=gr()),Ts(G,this.relativeTarget)),I&&(this.animationValues=w,JB(w,p,this.latestValues,q,U,_)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=q},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(a){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(yu(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Fn.update(()=>{Bh.hasAnimatedSinceResize=!0,this.currentAnimation=YB(0,Sx,{...a,onUpdate:c=>{this.mixTargetDelta(c),a.onUpdate&&a.onUpdate(c)},onComplete:()=>{a.onComplete&&a.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const a=this.getStack();a&&a.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(Sx),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const a=this.getLead();let{targetWithTransforms:c,target:d,layout:p,latestValues:w}=a;if(!(!c||!d||!p)){if(this!==a&&this.layout&&p&&_E(this.options.animationType,this.layout.layoutBox,p.layoutBox)){d=this.target||gr();const m=Qo(this.layout.layoutBox.x);d.x.min=a.target.x.min,d.x.max=d.x.min+m;const T=Qo(this.layout.layoutBox.y);d.y.min=a.target.y.min,d.y.max=d.y.min+T}Ts(c,d),yf(c,w),bd(this.projectionDeltaWithTransform,this.layoutCorrected,c,w)}}registerSharedNode(a,c){this.sharedNodes.has(a)||this.sharedNodes.set(a,new o$),this.sharedNodes.get(a).add(c);const p=c.options.initialPromotionConfig;c.promote({transition:p?p.transition:void 0,preserveFollowOpacity:p&&p.shouldPreserveFollowOpacity?p.shouldPreserveFollowOpacity(c):void 0})}isLead(){const a=this.getStack();return a?a.lead===this:!0}getLead(){var a;const{layoutId:c}=this.options;return c?((a=this.getStack())===null||a===void 0?void 0:a.lead)||this:this}getPrevLead(){var a;const{layoutId:c}=this.options;return c?(a=this.getStack())===null||a===void 0?void 0:a.prevLead:void 0}getStack(){const{layoutId:a}=this.options;if(a)return this.root.sharedNodes.get(a)}promote({needsReset:a,transition:c,preserveFollowOpacity:d}={}){const p=this.getStack();p&&p.promote(this,d),a&&(this.projectionDelta=void 0,this.needsReset=!0),c&&this.setOptions({transition:c})}relegate(){const a=this.getStack();return a?a.relegate(this):!1}resetSkewAndRotation(){const{visualElement:a}=this.options;if(!a)return;let c=!1;const{latestValues:d}=a;if((d.z||d.rotate||d.rotateX||d.rotateY||d.rotateZ||d.skewX||d.skewY)&&(c=!0),!c)return;const p={};d.z&&Wg("z",a,p,this.animationValues);for(let w=0;w<Ug.length;w++)Wg(`rotate${Ug[w]}`,a,p,this.animationValues),Wg(`skew${Ug[w]}`,a,p,this.animationValues);a.render();for(const w in p)a.setStaticValue(w,p[w]),this.animationValues&&(this.animationValues[w]=p[w]);a.scheduleRender()}getProjectionStyles(a){var c,d;if(!this.instance||this.isSVG)return;if(!this.isVisible)return a$;const p={visibility:""},w=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,p.opacity="",p.pointerEvents=Nh(a==null?void 0:a.pointerEvents)||"",p.transform=w?w(this.latestValues,""):"none",p;const m=this.getLead();if(!this.projectionDelta||!this.layout||!m.target){const I={};return this.options.layoutId&&(I.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,I.pointerEvents=Nh(a==null?void 0:a.pointerEvents)||""),this.hasProjected&&!uc(this.latestValues)&&(I.transform=w?w({},""):"none",this.hasProjected=!1),I}const T=m.animationValues||m.latestValues;this.applyTransformsToTarget(),p.transform=s$(this.projectionDeltaWithTransform,this.treeScale,T),w&&(p.transform=w(T,p.transform));const{x:E,y:A}=this.projectionDelta;p.transformOrigin=`${E.origin*100}% ${A.origin*100}% 0`,m.animationValues?p.opacity=m===this?(d=(c=T.opacity)!==null&&c!==void 0?c:this.latestValues.opacity)!==null&&d!==void 0?d:1:this.preserveOpacity?this.latestValues.opacity:T.opacityExit:p.opacity=m===this?T.opacity!==void 0?T.opacity:"":T.opacityExit!==void 0?T.opacityExit:0;for(const I in rp){if(T[I]===void 0)continue;const{correct:j,applyTo:_}=rp[I],U=p.transform==="none"?T[I]:j(T[I],m);if(_){const G=_.length;for(let re=0;re<G;re++)p[_[re]]=U}else p[I]=U}return this.options.layoutId&&(p.pointerEvents=m===this?Nh(a==null?void 0:a.pointerEvents)||"":"none"),p}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(a=>{var c;return(c=a.currentAnimation)===null||c===void 0?void 0:c.stop()}),this.root.nodes.forEach(Tx),this.root.sharedNodes.clear()}}}function u$(t){t.updateLayout()}function c$(t){var e;const n=((e=t.resumeFrom)===null||e===void 0?void 0:e.snapshot)||t.snapshot;if(t.isLead()&&t.layout&&n&&t.hasListeners("didUpdate")){const{layoutBox:r,measuredBox:i}=t.layout,{animationType:o}=t.options,a=n.source!==t.layout.source;o==="size"?Ds(m=>{const T=a?n.measuredBox[m]:n.layoutBox[m],E=Qo(T);T.min=r[m].min,T.max=T.min+E}):_E(o,n.layoutBox,r)&&Ds(m=>{const T=a?n.measuredBox[m]:n.layoutBox[m],E=Qo(r[m]);T.max=T.min+E,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[m].max=t.relativeTarget[m].min+E)});const c=mf();bd(c,r,n.layoutBox);const d=mf();a?bd(d,t.applyTransform(i,!0),n.measuredBox):bd(d,r,n.layoutBox);const p=!kE(c);let w=!1;if(!t.resumeFrom){const m=t.getClosestProjectingParent();if(m&&!m.resumeFrom){const{snapshot:T,layout:E}=m;if(T&&E){const A=gr();wd(A,n.layoutBox,T.layoutBox);const I=gr();wd(I,r,E.layoutBox),DE(A,I)||(w=!0),m.options.layoutRoot&&(t.relativeTarget=I,t.relativeTargetOrigin=A,t.relativeParent=m)}}}t.notifyListeners("didUpdate",{layout:r,snapshot:n,delta:d,layoutDelta:c,hasLayoutChanged:p,hasRelativeTargetChanged:w})}else if(t.isLead()){const{onExitComplete:r}=t.options;r&&r()}t.options.transition=void 0}function f$(t){fd&&cc.totalNodes++,t.parent&&(t.isProjecting()||(t.isProjectionDirty=t.parent.isProjectionDirty),t.isSharedProjectionDirty||(t.isSharedProjectionDirty=!!(t.isProjectionDirty||t.parent.isProjectionDirty||t.parent.isSharedProjectionDirty)),t.isTransformDirty||(t.isTransformDirty=t.parent.isTransformDirty))}function d$(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function h$(t){t.clearSnapshot()}function Tx(t){t.clearMeasurements()}function p$(t){t.isLayoutDirty=!1}function g$(t){const{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function Cx(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function m$(t){t.resolveTargetDelta()}function v$(t){t.calcProjection()}function y$(t){t.resetSkewAndRotation()}function b$(t){t.removeLeadSnapshot()}function Ex(t,e,n){t.translate=Kn(e.translate,0,n),t.scale=Kn(e.scale,1,n),t.origin=e.origin,t.originPoint=e.originPoint}function kx(t,e,n,r){t.min=Kn(e.min,n.min,r),t.max=Kn(e.max,n.max,r)}function w$(t,e,n,r){kx(t.x,e.x,n.x,r),kx(t.y,e.y,n.y,r)}function x$(t){return t.animationValues&&t.animationValues.opacityExit!==void 0}const S$={duration:.45,ease:[.4,0,.1,1]},Dx=t=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(t),Px=Dx("applewebkit/")&&!Dx("chrome/")?Math.round:_o;function Ox(t){t.min=Px(t.min),t.max=Px(t.max)}function T$(t){Ox(t.x),Ox(t.y)}function _E(t,e,n){return t==="position"||t==="preserve-aspect"&&!kB(wx(e),wx(n),.2)}function C$(t){var e;return t!==t.root&&((e=t.scroll)===null||e===void 0?void 0:e.wasRoot)}const E$=OE({attachResizeListener:(t,e)=>Fd(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),zg={current:void 0},RE=OE({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!zg.current){const t=new E$({});t.mount(window),t.setOptions({layoutScroll:!0}),zg.current=t}return zg.current},resetTransform:(t,e)=>{t.style.transform=e!==void 0?e:"none"},checkIsScrollRoot:t=>window.getComputedStyle(t).position==="fixed"}),k$={pan:{Feature:HB},drag:{Feature:VB,ProjectionNode:RE,MeasureLayout:TE}};function _x(t,e,n){const{props:r}=t;t.animationState&&r.whileHover&&t.animationState.setActive("whileHover",n==="Start");const i="onHover"+n,o=r[i];o&&Fn.postRender(()=>o(e,qd(e)))}let D$=class extends Cu{mount(){const{current:e}=this.node;e&&(this.unmount=kN(e,n=>(_x(this.node,n,"Start"),r=>_x(this.node,r,"End"))))}unmount(){}},P$=class extends Cu{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(":focus-visible")}catch{e=!0}!e||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=Gd(Fd(this.node.current,"focus",()=>this.onFocus()),Fd(this.node.current,"blur",()=>this.onBlur()))}unmount(){}};function Rx(t,e,n){const{props:r}=t;t.animationState&&r.whileTap&&t.animationState.setActive("whileTap",n==="Start");const i="onTap"+(n==="End"?"":n),o=r[i];o&&Fn.postRender(()=>o(e,qd(e)))}let O$=class extends Cu{mount(){const{current:e}=this.node;e&&(this.unmount=_N(e,n=>(Rx(this.node,n,"Start"),(r,{success:i})=>Rx(this.node,r,i?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}};const Jm=new WeakMap,Yg=new WeakMap,_$=t=>{const e=Jm.get(t.target);e&&e(t)},R$=t=>{t.forEach(_$)};function A$({root:t,...e}){const n=t||document;Yg.has(n)||Yg.set(n,{});const r=Yg.get(n),i=JSON.stringify(e);return r[i]||(r[i]=new IntersectionObserver(R$,{root:t,...e})),r[i]}function I$(t,e,n){const r=A$(e);return Jm.set(t,n),r.observe(t),()=>{Jm.delete(t),r.unobserve(t)}}const M$={some:0,all:1};let L$=class extends Cu{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:e={}}=this.node.getProps(),{root:n,margin:r,amount:i="some",once:o}=e,a={root:n?n.current:void 0,rootMargin:r,threshold:typeof i=="number"?i:M$[i]},c=d=>{const{isIntersecting:p}=d;if(this.isInView===p||(this.isInView=p,o&&!p&&this.hasEnteredView))return;p&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",p);const{onViewportEnter:w,onViewportLeave:m}=this.node.getProps(),T=p?w:m;T&&T(d)};return I$(this.node.current,a,c)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:e,prevProps:n}=this.node;["amount","margin","root"].some(F$(e,n))&&this.startObserver()}unmount(){}};function F$({viewport:t={}},{viewport:e={}}={}){return n=>t[n]!==e[n]}const N$={inView:{Feature:L$},tap:{Feature:O$},focus:{Feature:P$},hover:{Feature:D$}},j$={layout:{ProjectionNode:RE,MeasureLayout:TE}},Qm={current:null},AE={current:!1};function B$(){if(AE.current=!0,!!qv)if(window.matchMedia){const t=window.matchMedia("(prefers-reduced-motion)"),e=()=>Qm.current=t.matches;t.addListener(e),e()}else Qm.current=!1}const $$=[...rE,Ni,bu],V$=t=>$$.find(nE(t)),Ax=new WeakMap;function H$(t,e,n){for(const r in e){const i=e[r],o=n[r];if(ji(i))t.addValue(r,i),process.env.NODE_ENV==="development"&&Pp(i.version==="11.18.2",`Attempting to mix Motion versions ${i.version} with 11.18.2 may not work as expected.`);else if(ji(o))t.addValue(r,Md(i,{owner:t}));else if(o!==i)if(t.hasValue(r)){const a=t.getValue(r);a.liveStyle===!0?a.jump(i):a.hasAnimated||a.set(i)}else{const a=t.getStaticValue(r);t.addValue(r,Md(a!==void 0?a:i,{owner:t}))}}for(const r in n)e[r]===void 0&&t.removeValue(r);return e}const Ix=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];let U$=class{scrapeMotionValuesFromProps(e,n,r){return{}}constructor({parent:e,props:n,presenceContext:r,reducedMotionConfig:i,blockInitialAnimation:o,visualState:a},c={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=xy,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const E=Ba.now();this.renderScheduledAt<E&&(this.renderScheduledAt=E,Fn.render(this.render,!1,!0))};const{latestValues:d,renderState:p,onUpdate:w}=a;this.onUpdate=w,this.latestValues=d,this.baseTarget={...d},this.initialValues=n.initial?{...d}:{},this.renderState=p,this.parent=e,this.props=n,this.presenceContext=r,this.depth=e?e.depth+1:0,this.reducedMotionConfig=i,this.options=c,this.blockInitialAnimation=!!o,this.isControllingVariants=Rp(n),this.isVariantNode=fC(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);const{willChange:m,...T}=this.scrapeMotionValuesFromProps(n,{},this);for(const E in T){const A=T[E];d[E]!==void 0&&ji(A)&&A.set(d[E],!1)}}mount(e){this.current=e,Ax.set(e,this),this.projection&&!this.projection.instance&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((n,r)=>this.bindToMotionValue(r,n)),AE.current||B$(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:Qm.current,process.env.NODE_ENV!=="production"&&Pp(this.shouldReduceMotion!==!0,"You have Reduced Motion enabled on your device. Animations may not appear as expected."),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){Ax.delete(this.current),this.projection&&this.projection.unmount(),yu(this.notifyUpdate),yu(this.render),this.valueSubscriptions.forEach(e=>e()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const e in this.events)this.events[e].clear();for(const e in this.features){const n=this.features[e];n&&(n.unmount(),n.isMounted=!1)}this.current=null}bindToMotionValue(e,n){this.valueSubscriptions.has(e)&&this.valueSubscriptions.get(e)();const r=_c.has(e),i=n.on("change",c=>{this.latestValues[e]=c,this.props.onUpdate&&Fn.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0)}),o=n.on("renderRequest",this.scheduleRender);let a;window.MotionCheckAppearSync&&(a=window.MotionCheckAppearSync(this,e,n)),this.valueSubscriptions.set(e,()=>{i(),o(),a&&a(),n.owner&&n.stop()})}sortNodePosition(e){return!this.current||!this.sortInstanceNodePosition||this.type!==e.type?0:this.sortInstanceNodePosition(this.current,e.current)}updateFeatures(){let e="animation";for(e in Df){const n=Df[e];if(!n)continue;const{isEnabled:r,Feature:i}=n;if(!this.features[e]&&i&&r(this.props)&&(this.features[e]=new i(this)),this.features[e]){const o=this.features[e];o.isMounted?o.update():(o.mount(),o.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):gr()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,n){this.latestValues[e]=n}update(e,n){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let r=0;r<Ix.length;r++){const i=Ix[r];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);const o="on"+i,a=e[o];a&&(this.propEventSubscriptions[i]=this.on(i,a))}this.prevMotionValues=H$(this,this.scrapeMotionValuesFromProps(e,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue(),this.onUpdate&&this.onUpdate(this)}getProps(){return this.props}getVariant(e){return this.props.variants?this.props.variants[e]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(e){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(e),()=>n.variantChildren.delete(e)}addValue(e,n){const r=this.values.get(e);n!==r&&(r&&this.removeValue(e),this.bindToMotionValue(e,n),this.values.set(e,n),this.latestValues[e]=n.get())}removeValue(e){this.values.delete(e);const n=this.valueSubscriptions.get(e);n&&(n(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,n){if(this.props.values&&this.props.values[e])return this.props.values[e];let r=this.values.get(e);return r===void 0&&n!==void 0&&(r=Md(n===null?void 0:n,{owner:this}),this.addValue(e,r)),r}readValue(e,n){var r;let i=this.latestValues[e]!==void 0||!this.current?this.latestValues[e]:(r=this.getBaseTargetFromProps(this.props,e))!==null&&r!==void 0?r:this.readValueFromInstance(this.current,e,this.options);return i!=null&&(typeof i=="string"&&(eE(i)||zC(i))?i=parseFloat(i):!V$(i)&&bu.test(n)&&(i=ZC(e,n)),this.setBaseTarget(e,ji(i)?i.get():i)),ji(i)?i.get():i}setBaseTarget(e,n){this.baseTarget[e]=n}getBaseTarget(e){var n;const{initial:r}=this.props;let i;if(typeof r=="string"||typeof r=="object"){const a=ty(this.props,r,(n=this.presenceContext)===null||n===void 0?void 0:n.custom);a&&(i=a[e])}if(r&&i!==void 0)return i;const o=this.getBaseTargetFromProps(this.props,e);return o!==void 0&&!ji(o)?o:this.initialValues[e]!==void 0&&i===void 0?void 0:this.baseTarget[e]}on(e,n){return this.events[e]||(this.events[e]=new gy),this.events[e].add(n)}notify(e,...n){this.events[e]&&this.events[e].notify(...n)}},IE=class extends U${constructor(){super(...arguments),this.KeyframeResolver=iE}sortInstanceNodePosition(e,n){return e.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(e,n){return e.style?e.style[n]:void 0}removeValueFromRenderState(e,{vars:n,style:r}){delete n[e],delete r[e]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:e}=this.props;ji(e)&&(this.childSubscription=e.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}};function W$(t){return window.getComputedStyle(t)}let z$=class extends IE{constructor(){super(...arguments),this.type="html",this.renderInstance=wC}readValueFromInstance(e,n){if(_c.has(n)){const r=wy(n);return r&&r.default||0}else{const r=W$(e),i=(vC(n)?r.getPropertyValue(n):r[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(e,{transformPagePoint:n}){return xE(e,n)}build(e,n,r){iy(e,n,r.transformTemplate)}scrapeMotionValuesFromProps(e,n,r){return ly(e,n,r)}},Y$=class extends IE{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=gr}getBaseTargetFromProps(e,n){return e[n]}readValueFromInstance(e,n){if(_c.has(n)){const r=wy(n);return r&&r.default||0}return n=xC.has(n)?n:Jv(n),e.getAttribute(n)}scrapeMotionValuesFromProps(e,n,r){return CC(e,n,r)}build(e,n,r){oy(e,n,this.isSVGTag,r.transformTemplate)}renderInstance(e,n,r,i){SC(e,n,r,i)}mount(e){this.isSVGTag=ay(e.tagName),super.mount(e)}};const G$=(t,e)=>ey(t)?new Y$(e):new z$(e,{allowProjection:t!==X.Fragment}),q$=bN({...vB,...N$,...k$,...j$},G$),X$=MF(q$);function Mx(t,e){let n;return(...r)=>{window.clearTimeout(n),n=window.setTimeout(()=>t(...r),e)}}function K$({debounce:t,scroll:e,polyfill:n,offsetSize:r}={debounce:0,scroll:!1,offsetSize:!1}){const i=n||(typeof window>"u"?class{}:window.ResizeObserver);if(!i)throw new Error("This browser does not support ResizeObserver out of the box. See: https://github.com/react-spring/react-use-measure/#resize-observer-polyfills");const[o,a]=X.useState({left:0,top:0,width:0,height:0,bottom:0,right:0,x:0,y:0}),c=X.useRef({element:null,scrollContainers:null,resizeObserver:null,lastBounds:o,orientationHandler:null}),d=t?typeof t=="number"?t:t.scroll:null,p=t?typeof t=="number"?t:t.resize:null,w=X.useRef(!1);X.useEffect(()=>(w.current=!0,()=>void(w.current=!1)));const[m,T,E]=X.useMemo(()=>{const _=()=>{if(!c.current.element)return;const{left:U,top:G,width:re,height:q,bottom:se,right:S,x:ue,y:ae}=c.current.element.getBoundingClientRect(),Ue={left:U,top:G,width:re,height:q,bottom:se,right:S,x:ue,y:ae};c.current.element instanceof HTMLElement&&r&&(Ue.height=c.current.element.offsetHeight,Ue.width=c.current.element.offsetWidth),Object.freeze(Ue),w.current&&!eV(c.current.lastBounds,Ue)&&a(c.current.lastBounds=Ue)};return[_,p?Mx(_,p):_,d?Mx(_,d):_]},[a,r,d,p]);function A(){c.current.scrollContainers&&(c.current.scrollContainers.forEach(_=>_.removeEventListener("scroll",E,!0)),c.current.scrollContainers=null),c.current.resizeObserver&&(c.current.resizeObserver.disconnect(),c.current.resizeObserver=null),c.current.orientationHandler&&("orientation"in screen&&"removeEventListener"in screen.orientation?screen.orientation.removeEventListener("change",c.current.orientationHandler):"onorientationchange"in window&&window.removeEventListener("orientationchange",c.current.orientationHandler))}function I(){c.current.element&&(c.current.resizeObserver=new i(E),c.current.resizeObserver.observe(c.current.element),e&&c.current.scrollContainers&&c.current.scrollContainers.forEach(_=>_.addEventListener("scroll",E,{capture:!0,passive:!0})),c.current.orientationHandler=()=>{E()},"orientation"in screen&&"addEventListener"in screen.orientation?screen.orientation.addEventListener("change",c.current.orientationHandler):"onorientationchange"in window&&window.addEventListener("orientationchange",c.current.orientationHandler))}const j=_=>{!_||_===c.current.element||(A(),c.current.element=_,c.current.scrollContainers=ME(_),I())};return J$(E,!!e),Z$(T),X.useEffect(()=>{A(),I()},[e,E,T]),X.useEffect(()=>A,[]),[j,o,m]}function Z$(t){X.useEffect(()=>{const e=t;return window.addEventListener("resize",e),()=>void window.removeEventListener("resize",e)},[t])}function J$(t,e){X.useEffect(()=>{if(e){const n=t;return window.addEventListener("scroll",n,{capture:!0,passive:!0}),()=>void window.removeEventListener("scroll",n,!0)}},[t,e])}function ME(t){const e=[];if(!t||t===document.body)return e;const{overflow:n,overflowX:r,overflowY:i}=window.getComputedStyle(t);return[n,r,i].some(o=>o==="auto"||o==="scroll")&&e.push(t),[...e,...ME(t.parentElement)]}const Q$=["x","y","top","bottom","left","right","width","height"],eV=(t,e)=>Q$.every(n=>t[n]===e[n]),LE=X.createContext({dragDropManager:void 0});function Cs(t){return"Minified Redux error #"+t+"; visit https://redux.js.org/Errors?code="+t+" for the full message or use the non-minified dev environment for full errors. "}var Lx=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),Fx=function(){return Math.random().toString(36).substring(7).split("").join(".")},Nx={INIT:"@@redux/INIT"+Fx(),REPLACE:"@@redux/REPLACE"+Fx()};function tV(t){if(typeof t!="object"||t===null)return!1;for(var e=t;Object.getPrototypeOf(e)!==null;)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e}function nV(t){if(t===void 0)return"undefined";if(t===null)return"null";var e=typeof t;switch(e){case"boolean":case"string":case"number":case"symbol":case"function":return e}if(Array.isArray(t))return"array";if(oV(t))return"date";if(iV(t))return"error";var n=rV(t);switch(n){case"Symbol":case"Promise":case"WeakMap":case"WeakSet":case"Map":case"Set":return n}return e.slice(8,-1).toLowerCase().replace(/\s/g,"")}function rV(t){return typeof t.constructor=="function"?t.constructor.name:null}function iV(t){return t instanceof Error||typeof t.message=="string"&&t.constructor&&typeof t.constructor.stackTraceLimit=="number"}function oV(t){return t instanceof Date?!0:typeof t.toDateString=="function"&&typeof t.getDate=="function"&&typeof t.setDate=="function"}function uf(t){var e=typeof t;return process.env.NODE_ENV!=="production"&&(e=nV(t)),e}function FE(t,e,n){var r;if(typeof e=="function"&&typeof n=="function"||typeof n=="function"&&typeof arguments[3]=="function")throw new Error(process.env.NODE_ENV==="production"?Cs(0):"It looks like you are passing several store enhancers to createStore(). This is not supported. Instead, compose them together to a single function. See https://redux.js.org/tutorials/fundamentals/part-4-store#creating-a-store-with-enhancers for an example.");if(typeof e=="function"&&typeof n>"u"&&(n=e,e=void 0),typeof n<"u"){if(typeof n!="function")throw new Error(process.env.NODE_ENV==="production"?Cs(1):"Expected the enhancer to be a function. Instead, received: '"+uf(n)+"'");return n(FE)(t,e)}if(typeof t!="function")throw new Error(process.env.NODE_ENV==="production"?Cs(2):"Expected the root reducer to be a function. Instead, received: '"+uf(t)+"'");var i=t,o=e,a=[],c=a,d=!1;function p(){c===a&&(c=a.slice())}function w(){if(d)throw new Error(process.env.NODE_ENV==="production"?Cs(3):"You may not call store.getState() while the reducer is executing. The reducer has already received the state as an argument. Pass it down from the top reducer instead of reading it from the store.");return o}function m(I){if(typeof I!="function")throw new Error(process.env.NODE_ENV==="production"?Cs(4):"Expected the listener to be a function. Instead, received: '"+uf(I)+"'");if(d)throw new Error(process.env.NODE_ENV==="production"?Cs(5):"You may not call store.subscribe() while the reducer is executing. If you would like to be notified after the store has been updated, subscribe from a component and invoke store.getState() in the callback to access the latest state. See https://redux.js.org/api/store#subscribelistener for more details.");var j=!0;return p(),c.push(I),function(){if(j){if(d)throw new Error(process.env.NODE_ENV==="production"?Cs(6):"You may not unsubscribe from a store listener while the reducer is executing. See https://redux.js.org/api/store#subscribelistener for more details.");j=!1,p();var U=c.indexOf(I);c.splice(U,1),a=null}}}function T(I){if(!tV(I))throw new Error(process.env.NODE_ENV==="production"?Cs(7):"Actions must be plain objects. Instead, the actual type was: '"+uf(I)+"'. You may need to add middleware to your store setup to handle dispatching other values, such as 'redux-thunk' to handle dispatching functions. See https://redux.js.org/tutorials/fundamentals/part-4-store#middleware and https://redux.js.org/tutorials/fundamentals/part-6-async-logic#using-the-redux-thunk-middleware for examples.");if(typeof I.type>"u")throw new Error(process.env.NODE_ENV==="production"?Cs(8):'Actions may not have an undefined "type" property. You may have misspelled an action type string constant.');if(d)throw new Error(process.env.NODE_ENV==="production"?Cs(9):"Reducers may not dispatch actions.");try{d=!0,o=i(o,I)}finally{d=!1}for(var j=a=c,_=0;_<j.length;_++){var U=j[_];U()}return I}function E(I){if(typeof I!="function")throw new Error(process.env.NODE_ENV==="production"?Cs(10):"Expected the nextReducer to be a function. Instead, received: '"+uf(I));i=I,T({type:Nx.REPLACE})}function A(){var I,j=m;return I={subscribe:function(U){if(typeof U!="object"||U===null)throw new Error(process.env.NODE_ENV==="production"?Cs(11):"Expected the observer to be an object. Instead, received: '"+uf(U)+"'");function G(){U.next&&U.next(w())}G();var re=j(G);return{unsubscribe:re}}},I[Lx]=function(){return this},I}return T({type:Nx.INIT}),r={dispatch:T,subscribe:m,getState:w,replaceReducer:E},r[Lx]=A,r}function Ut(t,e,...n){if(sV()&&e===void 0)throw new Error("invariant requires an error message argument");if(!t){let r;if(e===void 0)r=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{let i=0;r=new Error(e.replace(/%s/g,function(){return n[i++]})),r.name="Invariant Violation"}throw r.framesToPop=1,r}}function sV(){return typeof process<"u"&&process.env.NODE_ENV==="production"}function aV(t,e,n){return e.split(".").reduce((r,i)=>r&&r[i]?r[i]:n||null,t)}function lV(t,e){return t.filter(n=>n!==e)}function NE(t){return typeof t=="object"}function uV(t,e){const n=new Map,r=o=>{n.set(o,n.has(o)?n.get(o)+1:1)};t.forEach(r),e.forEach(r);const i=[];return n.forEach((o,a)=>{o===1&&i.push(a)}),i}function cV(t,e){return t.filter(n=>e.indexOf(n)>-1)}const Ey="dnd-core/INIT_COORDS",Mp="dnd-core/BEGIN_DRAG",ky="dnd-core/PUBLISH_DRAG_SOURCE",Lp="dnd-core/HOVER",Fp="dnd-core/DROP",Np="dnd-core/END_DRAG";function jx(t,e){return{type:Ey,payload:{sourceClientOffset:e||null,clientOffset:t||null}}}const fV={type:Ey,payload:{clientOffset:null,sourceClientOffset:null}};function dV(t){return function(n=[],r={publishSource:!0}){const{publishSource:i=!0,clientOffset:o,getSourceClientOffset:a}=r,c=t.getMonitor(),d=t.getRegistry();t.dispatch(jx(o)),hV(n,c,d);const p=mV(n,c);if(p==null){t.dispatch(fV);return}let w=null;if(o){if(!a)throw new Error("getSourceClientOffset must be defined");pV(a),w=a(p)}t.dispatch(jx(o,w));const T=d.getSource(p).beginDrag(c,p);if(T==null)return;gV(T),d.pinSource(p);const E=d.getSourceType(p);return{type:Mp,payload:{itemType:E,item:T,sourceId:p,clientOffset:o||null,sourceClientOffset:w||null,isSourcePublic:!!i}}}}function hV(t,e,n){Ut(!e.isDragging(),"Cannot call beginDrag while dragging."),t.forEach(function(r){Ut(n.getSource(r),"Expected sourceIds to be registered.")})}function pV(t){Ut(typeof t=="function","When clientOffset is provided, getSourceClientOffset must be a function.")}function gV(t){Ut(NE(t),"Item must be an object.")}function mV(t,e){let n=null;for(let r=t.length-1;r>=0;r--)if(e.canDragSource(t[r])){n=t[r];break}return n}function vV(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function yV(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable}))),r.forEach(function(i){vV(t,i,n[i])})}return t}function bV(t){return function(n={}){const r=t.getMonitor(),i=t.getRegistry();wV(r),TV(r).forEach((a,c)=>{const d=xV(a,c,i,r),p={type:Fp,payload:{dropResult:yV({},n,d)}};t.dispatch(p)})}}function wV(t){Ut(t.isDragging(),"Cannot call drop while not dragging."),Ut(!t.didDrop(),"Cannot call drop twice during one drag operation.")}function xV(t,e,n,r){const i=n.getTarget(t);let o=i?i.drop(r,t):void 0;return SV(o),typeof o>"u"&&(o=e===0?{}:r.getDropResult()),o}function SV(t){Ut(typeof t>"u"||NE(t),"Drop result must either be an object or undefined.")}function TV(t){const e=t.getTargetIds().filter(t.canDropOnTarget,t);return e.reverse(),e}function CV(t){return function(){const n=t.getMonitor(),r=t.getRegistry();EV(n);const i=n.getSourceId();return i!=null&&(r.getSource(i,!0).endDrag(n,i),r.unpinSource()),{type:Np}}}function EV(t){Ut(t.isDragging(),"Cannot call endDrag while not dragging.")}function ev(t,e){return e===null?t===null:Array.isArray(t)?t.some(n=>n===e):t===e}function kV(t){return function(n,{clientOffset:r}={}){DV(n);const i=n.slice(0),o=t.getMonitor(),a=t.getRegistry(),c=o.getItemType();return OV(i,a,c),PV(i,o,a),_V(i,o,a),{type:Lp,payload:{targetIds:i,clientOffset:r||null}}}}function DV(t){Ut(Array.isArray(t),"Expected targetIds to be an array.")}function PV(t,e,n){Ut(e.isDragging(),"Cannot call hover while not dragging."),Ut(!e.didDrop(),"Cannot call hover after drop.");for(let r=0;r<t.length;r++){const i=t[r];Ut(t.lastIndexOf(i)===r,"Expected targetIds to be unique in the passed array.");const o=n.getTarget(i);Ut(o,"Expected targetIds to be registered.")}}function OV(t,e,n){for(let r=t.length-1;r>=0;r--){const i=t[r],o=e.getTargetType(i);ev(o,n)||t.splice(r,1)}}function _V(t,e,n){t.forEach(function(r){n.getTarget(r).hover(e,r)})}function RV(t){return function(){if(t.getMonitor().isDragging())return{type:ky}}}function AV(t){return{beginDrag:dV(t),publishDragSource:RV(t),hover:kV(t),drop:bV(t),endDrag:CV(t)}}class IV{receiveBackend(e){this.backend=e}getMonitor(){return this.monitor}getBackend(){return this.backend}getRegistry(){return this.monitor.registry}getActions(){const e=this,{dispatch:n}=this.store;function r(o){return(...a)=>{const c=o.apply(e,a);typeof c<"u"&&n(c)}}const i=AV(this);return Object.keys(i).reduce((o,a)=>{const c=i[a];return o[a]=r(c),o},{})}dispatch(e){this.store.dispatch(e)}constructor(e,n){this.isSetUp=!1,this.handleRefCountChange=()=>{const r=this.store.getState().refCount>0;this.backend&&(r&&!this.isSetUp?(this.backend.setup(),this.isSetUp=!0):!r&&this.isSetUp&&(this.backend.teardown(),this.isSetUp=!1))},this.store=e,this.monitor=n,e.subscribe(this.handleRefCountChange)}}function MV(t,e){return{x:t.x+e.x,y:t.y+e.y}}function jE(t,e){return{x:t.x-e.x,y:t.y-e.y}}function LV(t){const{clientOffset:e,initialClientOffset:n,initialSourceClientOffset:r}=t;return!e||!n||!r?null:jE(MV(e,r),n)}function FV(t){const{clientOffset:e,initialClientOffset:n}=t;return!e||!n?null:jE(e,n)}const xd=[],Dy=[];xd.__IS_NONE__=!0;Dy.__IS_ALL__=!0;function NV(t,e){return t===xd?!1:t===Dy||typeof e>"u"?!0:cV(e,t).length>0}class jV{subscribeToStateChange(e,n={}){const{handlerIds:r}=n;Ut(typeof e=="function","listener must be a function."),Ut(typeof r>"u"||Array.isArray(r),"handlerIds, when specified, must be an array of strings.");let i=this.store.getState().stateId;const o=()=>{const a=this.store.getState(),c=a.stateId;try{c===i||c===i+1&&!NV(a.dirtyHandlerIds,r)||e()}finally{i=c}};return this.store.subscribe(o)}subscribeToOffsetChange(e){Ut(typeof e=="function","listener must be a function.");let n=this.store.getState().dragOffset;const r=()=>{const i=this.store.getState().dragOffset;i!==n&&(n=i,e())};return this.store.subscribe(r)}canDragSource(e){if(!e)return!1;const n=this.registry.getSource(e);return Ut(n,`Expected to find a valid source. sourceId=${e}`),this.isDragging()?!1:n.canDrag(this,e)}canDropOnTarget(e){if(!e)return!1;const n=this.registry.getTarget(e);if(Ut(n,`Expected to find a valid target. targetId=${e}`),!this.isDragging()||this.didDrop())return!1;const r=this.registry.getTargetType(e),i=this.getItemType();return ev(r,i)&&n.canDrop(this,e)}isDragging(){return!!this.getItemType()}isDraggingSource(e){if(!e)return!1;const n=this.registry.getSource(e,!0);if(Ut(n,`Expected to find a valid source. sourceId=${e}`),!this.isDragging()||!this.isSourcePublic())return!1;const r=this.registry.getSourceType(e),i=this.getItemType();return r!==i?!1:n.isDragging(this,e)}isOverTarget(e,n={shallow:!1}){if(!e)return!1;const{shallow:r}=n;if(!this.isDragging())return!1;const i=this.registry.getTargetType(e),o=this.getItemType();if(o&&!ev(i,o))return!1;const a=this.getTargetIds();if(!a.length)return!1;const c=a.indexOf(e);return r?c===a.length-1:c>-1}getItemType(){return this.store.getState().dragOperation.itemType}getItem(){return this.store.getState().dragOperation.item}getSourceId(){return this.store.getState().dragOperation.sourceId}getTargetIds(){return this.store.getState().dragOperation.targetIds}getDropResult(){return this.store.getState().dragOperation.dropResult}didDrop(){return this.store.getState().dragOperation.didDrop}isSourcePublic(){return!!this.store.getState().dragOperation.isSourcePublic}getInitialClientOffset(){return this.store.getState().dragOffset.initialClientOffset}getInitialSourceClientOffset(){return this.store.getState().dragOffset.initialSourceClientOffset}getClientOffset(){return this.store.getState().dragOffset.clientOffset}getSourceClientOffset(){return LV(this.store.getState().dragOffset)}getDifferenceFromInitialOffset(){return FV(this.store.getState().dragOffset)}constructor(e,n){this.store=e,this.registry=n}}const Bx=typeof global<"u"?global:self,BE=Bx.MutationObserver||Bx.WebKitMutationObserver;function $E(t){return function(){const n=setTimeout(i,0),r=setInterval(i,50);function i(){clearTimeout(n),clearInterval(r),t()}}}function BV(t){let e=1;const n=new BE(t),r=document.createTextNode("");return n.observe(r,{characterData:!0}),function(){e=-e,r.data=e}}const $V=typeof BE=="function"?BV:$E;class VV{enqueueTask(e){const{queue:n,requestFlush:r}=this;n.length||(r(),this.flushing=!0),n[n.length]=e}constructor(){this.queue=[],this.pendingErrors=[],this.flushing=!1,this.index=0,this.capacity=1024,this.flush=()=>{const{queue:e}=this;for(;this.index<e.length;){const n=this.index;if(this.index++,e[n].call(),this.index>this.capacity){for(let r=0,i=e.length-this.index;r<i;r++)e[r]=e[r+this.index];e.length-=this.index,this.index=0}}e.length=0,this.index=0,this.flushing=!1},this.registerPendingError=e=>{this.pendingErrors.push(e),this.requestErrorThrow()},this.requestFlush=$V(this.flush),this.requestErrorThrow=$E(()=>{if(this.pendingErrors.length)throw this.pendingErrors.shift()})}}class HV{call(){try{this.task&&this.task()}catch(e){this.onError(e)}finally{this.task=null,this.release(this)}}constructor(e,n){this.onError=e,this.release=n,this.task=null}}class UV{create(e){const n=this.freeTasks,r=n.length?n.pop():new HV(this.onError,i=>n[n.length]=i);return r.task=e,r}constructor(e){this.onError=e,this.freeTasks=[]}}const VE=new VV,WV=new UV(VE.registerPendingError);function zV(t){VE.enqueueTask(WV.create(t))}const Py="dnd-core/ADD_SOURCE",Oy="dnd-core/ADD_TARGET",_y="dnd-core/REMOVE_SOURCE",jp="dnd-core/REMOVE_TARGET";function YV(t){return{type:Py,payload:{sourceId:t}}}function GV(t){return{type:Oy,payload:{targetId:t}}}function qV(t){return{type:_y,payload:{sourceId:t}}}function XV(t){return{type:jp,payload:{targetId:t}}}function KV(t){Ut(typeof t.canDrag=="function","Expected canDrag to be a function."),Ut(typeof t.beginDrag=="function","Expected beginDrag to be a function."),Ut(typeof t.endDrag=="function","Expected endDrag to be a function.")}function ZV(t){Ut(typeof t.canDrop=="function","Expected canDrop to be a function."),Ut(typeof t.hover=="function","Expected hover to be a function."),Ut(typeof t.drop=="function","Expected beginDrag to be a function.")}function tv(t,e){if(e&&Array.isArray(t)){t.forEach(n=>tv(n,!1));return}Ut(typeof t=="string"||typeof t=="symbol",e?"Type can only be a string, a symbol, or an array of either.":"Type can only be a string or a symbol.")}var Os;(function(t){t.SOURCE="SOURCE",t.TARGET="TARGET"})(Os||(Os={}));let JV=0;function QV(){return JV++}function e3(t){const e=QV().toString();switch(t){case Os.SOURCE:return`S${e}`;case Os.TARGET:return`T${e}`;default:throw new Error(`Unknown Handler Role: ${t}`)}}function $x(t){switch(t[0]){case"S":return Os.SOURCE;case"T":return Os.TARGET;default:throw new Error(`Cannot parse handler ID: ${t}`)}}function Vx(t,e){const n=t.entries();let r=!1;do{const{done:i,value:[,o]}=n.next();if(o===e)return!0;r=!!i}while(!r);return!1}class t3{addSource(e,n){tv(e),KV(n);const r=this.addHandler(Os.SOURCE,e,n);return this.store.dispatch(YV(r)),r}addTarget(e,n){tv(e,!0),ZV(n);const r=this.addHandler(Os.TARGET,e,n);return this.store.dispatch(GV(r)),r}containsHandler(e){return Vx(this.dragSources,e)||Vx(this.dropTargets,e)}getSource(e,n=!1){return Ut(this.isSourceId(e),"Expected a valid source ID."),n&&e===this.pinnedSourceId?this.pinnedSource:this.dragSources.get(e)}getTarget(e){return Ut(this.isTargetId(e),"Expected a valid target ID."),this.dropTargets.get(e)}getSourceType(e){return Ut(this.isSourceId(e),"Expected a valid source ID."),this.types.get(e)}getTargetType(e){return Ut(this.isTargetId(e),"Expected a valid target ID."),this.types.get(e)}isSourceId(e){return $x(e)===Os.SOURCE}isTargetId(e){return $x(e)===Os.TARGET}removeSource(e){Ut(this.getSource(e),"Expected an existing source."),this.store.dispatch(qV(e)),zV(()=>{this.dragSources.delete(e),this.types.delete(e)})}removeTarget(e){Ut(this.getTarget(e),"Expected an existing target."),this.store.dispatch(XV(e)),this.dropTargets.delete(e),this.types.delete(e)}pinSource(e){const n=this.getSource(e);Ut(n,"Expected an existing source."),this.pinnedSourceId=e,this.pinnedSource=n}unpinSource(){Ut(this.pinnedSource,"No source is pinned at the time."),this.pinnedSourceId=null,this.pinnedSource=null}addHandler(e,n,r){const i=e3(e);return this.types.set(i,n),e===Os.SOURCE?this.dragSources.set(i,r):e===Os.TARGET&&this.dropTargets.set(i,r),i}constructor(e){this.types=new Map,this.dragSources=new Map,this.dropTargets=new Map,this.pinnedSourceId=null,this.pinnedSource=null,this.store=e}}const n3=(t,e)=>t===e;function r3(t,e){return!t&&!e?!0:!t||!e?!1:t.x===e.x&&t.y===e.y}function i3(t,e,n=n3){if(t.length!==e.length)return!1;for(let r=0;r<t.length;++r)if(!n(t[r],e[r]))return!1;return!0}function o3(t=xd,e){switch(e.type){case Lp:break;case Py:case Oy:case jp:case _y:return xd;case Mp:case ky:case Np:case Fp:default:return Dy}const{targetIds:n=[],prevTargetIds:r=[]}=e.payload,i=uV(n,r);if(!(i.length>0||!i3(n,r)))return xd;const a=r[r.length-1],c=n[n.length-1];return a!==c&&(a&&i.push(a),c&&i.push(c)),i}function s3(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function a3(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable}))),r.forEach(function(i){s3(t,i,n[i])})}return t}const Hx={initialSourceClientOffset:null,initialClientOffset:null,clientOffset:null};function l3(t=Hx,e){const{payload:n}=e;switch(e.type){case Ey:case Mp:return{initialSourceClientOffset:n.sourceClientOffset,initialClientOffset:n.clientOffset,clientOffset:n.clientOffset};case Lp:return r3(t.clientOffset,n.clientOffset)?t:a3({},t,{clientOffset:n.clientOffset});case Np:case Fp:return Hx;default:return t}}function u3(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function cf(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable}))),r.forEach(function(i){u3(t,i,n[i])})}return t}const c3={itemType:null,item:null,sourceId:null,targetIds:[],dropResult:null,didDrop:!1,isSourcePublic:null};function f3(t=c3,e){const{payload:n}=e;switch(e.type){case Mp:return cf({},t,{itemType:n.itemType,item:n.item,sourceId:n.sourceId,isSourcePublic:n.isSourcePublic,dropResult:null,didDrop:!1});case ky:return cf({},t,{isSourcePublic:!0});case Lp:return cf({},t,{targetIds:n.targetIds});case jp:return t.targetIds.indexOf(n.targetId)===-1?t:cf({},t,{targetIds:lV(t.targetIds,n.targetId)});case Fp:return cf({},t,{dropResult:n.dropResult,didDrop:!0,targetIds:[]});case Np:return cf({},t,{itemType:null,item:null,sourceId:null,dropResult:null,didDrop:!1,isSourcePublic:null,targetIds:[]});default:return t}}function d3(t=0,e){switch(e.type){case Py:case Oy:return t+1;case _y:case jp:return t-1;default:return t}}function h3(t=0){return t+1}function p3(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function g3(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable}))),r.forEach(function(i){p3(t,i,n[i])})}return t}function m3(t={},e){return{dirtyHandlerIds:o3(t.dirtyHandlerIds,{type:e.type,payload:g3({},e.payload,{prevTargetIds:aV(t,"dragOperation.targetIds",[])})}),dragOffset:l3(t.dragOffset,e),refCount:d3(t.refCount,e),dragOperation:f3(t.dragOperation,e),stateId:h3(t.stateId)}}function v3(t,e=void 0,n={},r=!1){const i=y3(r),o=new jV(i,new t3(i)),a=new IV(i,o),c=t(a,e,n);return a.receiveBackend(c),a}function y3(t){const e=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__;return FE(m3,t&&e&&e({name:"dnd-core",instanceId:"dnd-core"}))}function b3(t,e){if(t==null)return{};var n=w3(t,e),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(i=0;i<o.length;i++)r=o[i],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}function w3(t,e){if(t==null)return{};var n={},r=Object.keys(t),i,o;for(o=0;o<r.length;o++)i=r[o],!(e.indexOf(i)>=0)&&(n[i]=t[i]);return n}let Ux=0;const $h=Symbol.for("__REACT_DND_CONTEXT_INSTANCE__");var HE=X.memo(function(e){var{children:n}=e,r=b3(e,["children"]);const[i,o]=x3(r);return X.useEffect(()=>{if(o){const a=UE();return++Ux,()=>{--Ux===0&&(a[$h]=null)}}},[]),Re.jsx(LE.Provider,{value:i,children:n})});function x3(t){if("manager"in t)return[{dragDropManager:t.manager},!1];const e=S3(t.backend,t.context,t.options,t.debugMode),n=!t.context;return[e,n]}function S3(t,e=UE(),n,r){const i=e;return i[$h]||(i[$h]={dragDropManager:v3(t,e,n,r)}),i[$h]}function UE(){return typeof global<"u"?global:window}var T3=function t(e,n){if(e===n)return!0;if(e&&n&&typeof e=="object"&&typeof n=="object"){if(e.constructor!==n.constructor)return!1;var r,i,o;if(Array.isArray(e)){if(r=e.length,r!=n.length)return!1;for(i=r;i--!==0;)if(!t(e[i],n[i]))return!1;return!0}if(e.constructor===RegExp)return e.source===n.source&&e.flags===n.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===n.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===n.toString();if(o=Object.keys(e),r=o.length,r!==Object.keys(n).length)return!1;for(i=r;i--!==0;)if(!Object.prototype.hasOwnProperty.call(n,o[i]))return!1;for(i=r;i--!==0;){var a=o[i];if(!t(e[a],n[a]))return!1}return!0}return e!==e&&n!==n};const C3=Oc(T3),Cc=typeof window<"u"?X.useLayoutEffect:X.useEffect;function WE(t,e,n){const[r,i]=X.useState(()=>e(t)),o=X.useCallback(()=>{const a=e(t);C3(r,a)||(i(a),n&&n())},[r,t,n]);return Cc(o),[r,o]}function E3(t,e,n){const[r,i]=WE(t,e,n);return Cc(function(){const a=t.getHandlerId();if(a!=null)return t.subscribeToStateChange(i,{handlerIds:[a]})},[t,i]),r}function zE(t,e,n){return E3(e,t||(()=>({})),()=>n.reconnect())}function YE(t,e){const n=[...e||[]];return e==null&&typeof t!="function"&&n.push(t),X.useMemo(()=>typeof t=="function"?t():t,n)}function k3(t){return X.useMemo(()=>t.hooks.dragSource(),[t])}function D3(t){return X.useMemo(()=>t.hooks.dragPreview(),[t])}let Gg=!1,qg=!1;class P3{receiveHandlerId(e){this.sourceId=e}getHandlerId(){return this.sourceId}canDrag(){Ut(!Gg,"You may not call monitor.canDrag() inside your canDrag() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source-monitor");try{return Gg=!0,this.internalMonitor.canDragSource(this.sourceId)}finally{Gg=!1}}isDragging(){if(!this.sourceId)return!1;Ut(!qg,"You may not call monitor.isDragging() inside your isDragging() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source-monitor");try{return qg=!0,this.internalMonitor.isDraggingSource(this.sourceId)}finally{qg=!1}}subscribeToStateChange(e,n){return this.internalMonitor.subscribeToStateChange(e,n)}isDraggingSource(e){return this.internalMonitor.isDraggingSource(e)}isOverTarget(e,n){return this.internalMonitor.isOverTarget(e,n)}getTargetIds(){return this.internalMonitor.getTargetIds()}isSourcePublic(){return this.internalMonitor.isSourcePublic()}getSourceId(){return this.internalMonitor.getSourceId()}subscribeToOffsetChange(e){return this.internalMonitor.subscribeToOffsetChange(e)}canDragSource(e){return this.internalMonitor.canDragSource(e)}canDropOnTarget(e){return this.internalMonitor.canDropOnTarget(e)}getItemType(){return this.internalMonitor.getItemType()}getItem(){return this.internalMonitor.getItem()}getDropResult(){return this.internalMonitor.getDropResult()}didDrop(){return this.internalMonitor.didDrop()}getInitialClientOffset(){return this.internalMonitor.getInitialClientOffset()}getInitialSourceClientOffset(){return this.internalMonitor.getInitialSourceClientOffset()}getSourceClientOffset(){return this.internalMonitor.getSourceClientOffset()}getClientOffset(){return this.internalMonitor.getClientOffset()}getDifferenceFromInitialOffset(){return this.internalMonitor.getDifferenceFromInitialOffset()}constructor(e){this.sourceId=null,this.internalMonitor=e.getMonitor()}}let Xg=!1;class O3{receiveHandlerId(e){this.targetId=e}getHandlerId(){return this.targetId}subscribeToStateChange(e,n){return this.internalMonitor.subscribeToStateChange(e,n)}canDrop(){if(!this.targetId)return!1;Ut(!Xg,"You may not call monitor.canDrop() inside your canDrop() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target-monitor");try{return Xg=!0,this.internalMonitor.canDropOnTarget(this.targetId)}finally{Xg=!1}}isOver(e){return this.targetId?this.internalMonitor.isOverTarget(this.targetId,e):!1}getItemType(){return this.internalMonitor.getItemType()}getItem(){return this.internalMonitor.getItem()}getDropResult(){return this.internalMonitor.getDropResult()}didDrop(){return this.internalMonitor.didDrop()}getInitialClientOffset(){return this.internalMonitor.getInitialClientOffset()}getInitialSourceClientOffset(){return this.internalMonitor.getInitialSourceClientOffset()}getSourceClientOffset(){return this.internalMonitor.getSourceClientOffset()}getClientOffset(){return this.internalMonitor.getClientOffset()}getDifferenceFromInitialOffset(){return this.internalMonitor.getDifferenceFromInitialOffset()}constructor(e){this.targetId=null,this.internalMonitor=e.getMonitor()}}function _3(t,e,n){const r=n.getRegistry(),i=r.addTarget(t,e);return[i,()=>r.removeTarget(i)]}function R3(t,e,n){const r=n.getRegistry(),i=r.addSource(t,e);return[i,()=>r.removeSource(i)]}function nv(t,e,n,r){let i;if(i!==void 0)return!!i;if(t===e)return!0;if(typeof t!="object"||!t||typeof e!="object"||!e)return!1;const o=Object.keys(t),a=Object.keys(e);if(o.length!==a.length)return!1;const c=Object.prototype.hasOwnProperty.bind(e);for(let d=0;d<o.length;d++){const p=o[d];if(!c(p))return!1;const w=t[p],m=e[p];if(i=void 0,i===!1||i===void 0&&w!==m)return!1}return!0}function rv(t){return t!==null&&typeof t=="object"&&Object.prototype.hasOwnProperty.call(t,"current")}function A3(t){if(typeof t.type=="string")return;const e=t.type.displayName||t.type.name||"the component";throw new Error(`Only native element nodes can now be passed to React DnD connectors.You can either wrap ${e} into a <div>, or turn it into a drag source or a drop target itself.`)}function I3(t){return(e=null,n=null)=>{if(!X.isValidElement(e)){const o=e;return t(o,n),o}const r=e;return A3(r),M3(r,n?o=>t(o,n):t)}}function GE(t){const e={};return Object.keys(t).forEach(n=>{const r=t[n];if(n.endsWith("Ref"))e[n]=t[n];else{const i=I3(r);e[n]=()=>i}}),e}function Wx(t,e){typeof t=="function"?t(e):t.current=e}function M3(t,e){const n=t.ref;return Ut(typeof n!="string","Cannot connect React DnD to an element with an existing string ref. Please convert it to use a callback ref instead, or wrap it into a <span> or <div>. Read more: https://reactjs.org/docs/refs-and-the-dom.html#callback-refs"),n?X.cloneElement(t,{ref:r=>{Wx(n,r),Wx(e,r)}}):X.cloneElement(t,{ref:e})}class L3{receiveHandlerId(e){this.handlerId!==e&&(this.handlerId=e,this.reconnect())}get connectTarget(){return this.dragSource}get dragSourceOptions(){return this.dragSourceOptionsInternal}set dragSourceOptions(e){this.dragSourceOptionsInternal=e}get dragPreviewOptions(){return this.dragPreviewOptionsInternal}set dragPreviewOptions(e){this.dragPreviewOptionsInternal=e}reconnect(){const e=this.reconnectDragSource();this.reconnectDragPreview(e)}reconnectDragSource(){const e=this.dragSource,n=this.didHandlerIdChange()||this.didConnectedDragSourceChange()||this.didDragSourceOptionsChange();return n&&this.disconnectDragSource(),this.handlerId?e?(n&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDragSource=e,this.lastConnectedDragSourceOptions=this.dragSourceOptions,this.dragSourceUnsubscribe=this.backend.connectDragSource(this.handlerId,e,this.dragSourceOptions)),n):(this.lastConnectedDragSource=e,n):n}reconnectDragPreview(e=!1){const n=this.dragPreview,r=e||this.didHandlerIdChange()||this.didConnectedDragPreviewChange()||this.didDragPreviewOptionsChange();if(r&&this.disconnectDragPreview(),!!this.handlerId){if(!n){this.lastConnectedDragPreview=n;return}r&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDragPreview=n,this.lastConnectedDragPreviewOptions=this.dragPreviewOptions,this.dragPreviewUnsubscribe=this.backend.connectDragPreview(this.handlerId,n,this.dragPreviewOptions))}}didHandlerIdChange(){return this.lastConnectedHandlerId!==this.handlerId}didConnectedDragSourceChange(){return this.lastConnectedDragSource!==this.dragSource}didConnectedDragPreviewChange(){return this.lastConnectedDragPreview!==this.dragPreview}didDragSourceOptionsChange(){return!nv(this.lastConnectedDragSourceOptions,this.dragSourceOptions)}didDragPreviewOptionsChange(){return!nv(this.lastConnectedDragPreviewOptions,this.dragPreviewOptions)}disconnectDragSource(){this.dragSourceUnsubscribe&&(this.dragSourceUnsubscribe(),this.dragSourceUnsubscribe=void 0)}disconnectDragPreview(){this.dragPreviewUnsubscribe&&(this.dragPreviewUnsubscribe(),this.dragPreviewUnsubscribe=void 0,this.dragPreviewNode=null,this.dragPreviewRef=null)}get dragSource(){return this.dragSourceNode||this.dragSourceRef&&this.dragSourceRef.current}get dragPreview(){return this.dragPreviewNode||this.dragPreviewRef&&this.dragPreviewRef.current}clearDragSource(){this.dragSourceNode=null,this.dragSourceRef=null}clearDragPreview(){this.dragPreviewNode=null,this.dragPreviewRef=null}constructor(e){this.hooks=GE({dragSource:(n,r)=>{this.clearDragSource(),this.dragSourceOptions=r||null,rv(n)?this.dragSourceRef=n:this.dragSourceNode=n,this.reconnectDragSource()},dragPreview:(n,r)=>{this.clearDragPreview(),this.dragPreviewOptions=r||null,rv(n)?this.dragPreviewRef=n:this.dragPreviewNode=n,this.reconnectDragPreview()}}),this.handlerId=null,this.dragSourceRef=null,this.dragSourceOptionsInternal=null,this.dragPreviewRef=null,this.dragPreviewOptionsInternal=null,this.lastConnectedHandlerId=null,this.lastConnectedDragSource=null,this.lastConnectedDragSourceOptions=null,this.lastConnectedDragPreview=null,this.lastConnectedDragPreviewOptions=null,this.backend=e}}class F3{get connectTarget(){return this.dropTarget}reconnect(){const e=this.didHandlerIdChange()||this.didDropTargetChange()||this.didOptionsChange();e&&this.disconnectDropTarget();const n=this.dropTarget;if(this.handlerId){if(!n){this.lastConnectedDropTarget=n;return}e&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDropTarget=n,this.lastConnectedDropTargetOptions=this.dropTargetOptions,this.unsubscribeDropTarget=this.backend.connectDropTarget(this.handlerId,n,this.dropTargetOptions))}}receiveHandlerId(e){e!==this.handlerId&&(this.handlerId=e,this.reconnect())}get dropTargetOptions(){return this.dropTargetOptionsInternal}set dropTargetOptions(e){this.dropTargetOptionsInternal=e}didHandlerIdChange(){return this.lastConnectedHandlerId!==this.handlerId}didDropTargetChange(){return this.lastConnectedDropTarget!==this.dropTarget}didOptionsChange(){return!nv(this.lastConnectedDropTargetOptions,this.dropTargetOptions)}disconnectDropTarget(){this.unsubscribeDropTarget&&(this.unsubscribeDropTarget(),this.unsubscribeDropTarget=void 0)}get dropTarget(){return this.dropTargetNode||this.dropTargetRef&&this.dropTargetRef.current}clearDropTarget(){this.dropTargetRef=null,this.dropTargetNode=null}constructor(e){this.hooks=GE({dropTarget:(n,r)=>{this.clearDropTarget(),this.dropTargetOptions=r,rv(n)?this.dropTargetRef=n:this.dropTargetNode=n,this.reconnect()}}),this.handlerId=null,this.dropTargetRef=null,this.dropTargetOptionsInternal=null,this.lastConnectedHandlerId=null,this.lastConnectedDropTarget=null,this.lastConnectedDropTargetOptions=null,this.backend=e}}function Ol(){const{dragDropManager:t}=X.useContext(LE);return Ut(t!=null,"Expected drag drop context"),t}function N3(t,e){const n=Ol(),r=X.useMemo(()=>new L3(n.getBackend()),[n]);return Cc(()=>(r.dragSourceOptions=t||null,r.reconnect(),()=>r.disconnectDragSource()),[r,t]),Cc(()=>(r.dragPreviewOptions=e||null,r.reconnect(),()=>r.disconnectDragPreview()),[r,e]),r}function j3(){const t=Ol();return X.useMemo(()=>new P3(t),[t])}class B3{beginDrag(){const e=this.spec,n=this.monitor;let r=null;return typeof e.item=="object"?r=e.item:typeof e.item=="function"?r=e.item(n):r={},r??null}canDrag(){const e=this.spec,n=this.monitor;return typeof e.canDrag=="boolean"?e.canDrag:typeof e.canDrag=="function"?e.canDrag(n):!0}isDragging(e,n){const r=this.spec,i=this.monitor,{isDragging:o}=r;return o?o(i):n===e.getSourceId()}endDrag(){const e=this.spec,n=this.monitor,r=this.connector,{end:i}=e;i&&i(n.getItem(),n),r.reconnect()}constructor(e,n,r){this.spec=e,this.monitor=n,this.connector=r}}function $3(t,e,n){const r=X.useMemo(()=>new B3(t,e,n),[e,n]);return X.useEffect(()=>{r.spec=t},[t]),r}function V3(t){return X.useMemo(()=>{const e=t.type;return Ut(e!=null,"spec.type must be defined"),e},[t])}function H3(t,e,n){const r=Ol(),i=$3(t,e,n),o=V3(t);Cc(function(){if(o!=null){const[c,d]=R3(o,i,r);return e.receiveHandlerId(c),n.receiveHandlerId(c),d}},[r,e,n,i,o])}function qE(t,e){const n=YE(t,e);Ut(!n.begin,"useDrag::spec.begin was deprecated in v14. Replace spec.begin() with spec.item(). (see more here - https://react-dnd.github.io/react-dnd/docs/api/use-drag)");const r=j3(),i=N3(n.options,n.previewOptions);return H3(n,r,i),[zE(n.collect,r,i),k3(i),D3(i)]}function U3(t){const n=Ol().getMonitor(),[r,i]=WE(n,t);return X.useEffect(()=>n.subscribeToOffsetChange(i)),X.useEffect(()=>n.subscribeToStateChange(i)),r}function W3(t){return X.useMemo(()=>t.hooks.dropTarget(),[t])}function z3(t){const e=Ol(),n=X.useMemo(()=>new F3(e.getBackend()),[e]);return Cc(()=>(n.dropTargetOptions=t||null,n.reconnect(),()=>n.disconnectDropTarget()),[t]),n}function Y3(){const t=Ol();return X.useMemo(()=>new O3(t),[t])}function G3(t){const{accept:e}=t;return X.useMemo(()=>(Ut(t.accept!=null,"accept must be defined"),Array.isArray(e)?e:[e]),[e])}class q3{canDrop(){const e=this.spec,n=this.monitor;return e.canDrop?e.canDrop(n.getItem(),n):!0}hover(){const e=this.spec,n=this.monitor;e.hover&&e.hover(n.getItem(),n)}drop(){const e=this.spec,n=this.monitor;if(e.drop)return e.drop(n.getItem(),n)}constructor(e,n){this.spec=e,this.monitor=n}}function X3(t,e){const n=X.useMemo(()=>new q3(t,e),[e]);return X.useEffect(()=>{n.spec=t},[t]),n}function K3(t,e,n){const r=Ol(),i=X3(t,e),o=G3(t);Cc(function(){const[c,d]=_3(o,i,r);return e.receiveHandlerId(c),n.receiveHandlerId(c),d},[r,e,i,n,o.map(a=>a.toString()).join("|")])}function up(t,e){const n=YE(t,e),r=Y3(),i=z3(n.options);return K3(n,r,i),[zE(n.collect,r,i),W3(i)]}var XE=t=>{throw TypeError(t)},KE=(t,e,n)=>e.has(t)||XE("Cannot "+n),Nt=(t,e,n)=>(KE(t,e,"read from private field"),n?n.call(t):e.get(t)),ks=(t,e,n)=>e.has(t)?XE("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,n),fc=(t,e,n,r)=>(KE(t,e,"write to private field"),e.set(t,n),n),su,Z3=class{constructor(){ks(this,su),this.register=t=>{Nt(this,su).push(t)},this.unregister=t=>{for(;Nt(this,su).indexOf(t)!==-1;)Nt(this,su).splice(Nt(this,su).indexOf(t),1)},this.backendChanged=t=>{for(let e of Nt(this,su))e.backendChanged(t)},fc(this,su,[])}};su=new WeakMap;var qo,dd,Xo,vl,dc,iv,ov,sv,Vh,Hh,hd,ZE=class Uh{constructor(e,n,r){if(ks(this,qo),ks(this,dd),ks(this,Xo),ks(this,vl),ks(this,dc),ks(this,iv,(i,o,a)=>{if(!a.backend)throw new Error(`You must specify a 'backend' property in your Backend entry: ${JSON.stringify(a)}`);let c=a.backend(i,o,a.options),d=a.id,p=!a.id&&c&&c.constructor;if(p&&(d=c.constructor.name),!d)throw new Error(`You must specify an 'id' property in your Backend entry: ${JSON.stringify(a)}
2
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function mI(t){return K1(t)||gI(t)||Z1(t)||J1()}function u0(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function c0(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?u0(Object(n),!0).forEach(function(r){Ha(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):u0(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}var vI={type:"logger",log:function(e){this.output("log",e)},warn:function(e){this.output("warn",e)},error:function(e){this.output("error",e)},output:function(e,n){console&&console[e]&&console[e].apply(console,n)}},yI=function(){function t(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};ts(this,t),this.init(e,n)}return ns(t,[{key:"init",value:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.prefix=r.prefix||"i18next:",this.logger=n||vI,this.options=r,this.debug=r.debug}},{key:"setDebug",value:function(n){this.debug=n}},{key:"log",value:function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return this.forward(r,"log","",!0)}},{key:"warn",value:function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return this.forward(r,"warn","",!0)}},{key:"error",value:function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return this.forward(r,"error","")}},{key:"deprecate",value:function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return this.forward(r,"warn","WARNING DEPRECATED: ",!0)}},{key:"forward",value:function(n,r,i,o){return o&&!this.debug?null:(typeof n[0]=="string"&&(n[0]="".concat(i).concat(this.prefix," ").concat(n[0])),this.logger[r](n))}},{key:"create",value:function(n){return new t(this.logger,c0(c0({},{prefix:"".concat(this.prefix,":").concat(n,":")}),this.options))}},{key:"clone",value:function(n){return n=n||this.options,n.prefix=n.prefix||this.prefix,new t(this.logger,n)}}]),t}(),Fa=new yI,gu=function(){function t(){ts(this,t),this.observers={}}return ns(t,[{key:"on",value:function(n,r){var i=this;return n.split(" ").forEach(function(o){i.observers[o]=i.observers[o]||[],i.observers[o].push(r)}),this}},{key:"off",value:function(n,r){if(this.observers[n]){if(!r){delete this.observers[n];return}this.observers[n]=this.observers[n].filter(function(i){return i!==r})}}},{key:"emit",value:function(n){for(var r=arguments.length,i=new Array(r>1?r-1:0),o=1;o<r;o++)i[o-1]=arguments[o];if(this.observers[n]){var a=[].concat(this.observers[n]);a.forEach(function(d){d.apply(void 0,i)})}if(this.observers["*"]){var c=[].concat(this.observers["*"]);c.forEach(function(d){d.apply(d,[n].concat(i))})}}}]),t}();function Qf(){var t,e,n=new Promise(function(r,i){t=r,e=i});return n.resolve=t,n.reject=e,n}function f0(t){return t==null?"":""+t}function bI(t,e,n){t.forEach(function(r){e[r]&&(n[r]=e[r])})}function Fv(t,e,n){function r(c){return c&&c.indexOf("###")>-1?c.replace(/###/g,"."):c}function i(){return!t||typeof t=="string"}for(var o=typeof e!="string"?[].concat(e):e.split(".");o.length>1;){if(i())return{};var a=r(o.shift());!t[a]&&n&&(t[a]=new n),Object.prototype.hasOwnProperty.call(t,a)?t=t[a]:t={}}return i()?{}:{obj:t,k:r(o.shift())}}function d0(t,e,n){var r=Fv(t,e,Object),i=r.obj,o=r.k;i[o]=n}function wI(t,e,n,r){var i=Fv(t,e,Object),o=i.obj,a=i.k;o[a]=o[a]||[],o[a].push(n)}function Xh(t,e){var n=Fv(t,e),r=n.obj,i=n.k;if(r)return r[i]}function xI(t,e,n){var r=Xh(t,n);return r!==void 0?r:Xh(e,n)}function Q1(t,e,n){for(var r in e)r!=="__proto__"&&r!=="constructor"&&(r in t?typeof t[r]=="string"||t[r]instanceof String||typeof e[r]=="string"||e[r]instanceof String?n&&(t[r]=e[r]):Q1(t[r],e[r],n):t[r]=e[r]);return t}function af(t){return t.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var SI={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"};function TI(t){return typeof t=="string"?t.replace(/[&<>"'\/]/g,function(e){return SI[e]}):t}var Cp=typeof window<"u"&&window.navigator&&typeof window.navigator.userAgentData>"u"&&window.navigator.userAgent&&window.navigator.userAgent.indexOf("MSIE")>-1,CI=[" ",",","?","!",";"];function EI(t,e,n){e=e||"",n=n||"";var r=CI.filter(function(c){return e.indexOf(c)<0&&n.indexOf(c)<0});if(r.length===0)return!0;var i=new RegExp("(".concat(r.map(function(c){return c==="?"?"\\?":c}).join("|"),")")),o=!i.test(t);if(!o){var a=t.indexOf(n);a>0&&!i.test(t.substring(0,a))&&(o=!0)}return o}function Kh(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:".";if(t){if(t[e])return t[e];for(var r=e.split(n),i=t,o=0;o<r.length;++o){if(!i||typeof i[r[o]]=="string"&&o+1<r.length)return;if(i[r[o]]===void 0){for(var a=2,c=r.slice(o,o+a).join(n),d=i[c];d===void 0&&r.length>o+a;)a++,c=r.slice(o,o+a).join(n),d=i[c];if(d===void 0)return;if(d===null)return null;if(e.endsWith(c)){if(typeof d=="string")return d;if(c&&typeof d[c]=="string")return d[c]}var p=r.slice(o+a).join(n);return p?Kh(d,p,n):void 0}i=i[r[o]]}return i}}function h0(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function dh(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?h0(Object(n),!0).forEach(function(r){Ha(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):h0(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function kI(t){var e=DI();return function(){var r=Va(t),i;if(e){var o=Va(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return Ud(this,i)}}function DI(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}var PI=function(t){Tp(n,t);var e=kI(n);function n(r){var i,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{ns:["translation"],defaultNS:"translation"};return ts(this,n),i=e.call(this),Cp&&gu.call(xl(i)),i.data=r||{},i.options=o,i.options.keySeparator===void 0&&(i.options.keySeparator="."),i.options.ignoreJSONStructure===void 0&&(i.options.ignoreJSONStructure=!0),i}return ns(n,[{key:"addNamespaces",value:function(i){this.options.ns.indexOf(i)<0&&this.options.ns.push(i)}},{key:"removeNamespaces",value:function(i){var o=this.options.ns.indexOf(i);o>-1&&this.options.ns.splice(o,1)}},{key:"getResource",value:function(i,o,a){var c=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},d=c.keySeparator!==void 0?c.keySeparator:this.options.keySeparator,p=c.ignoreJSONStructure!==void 0?c.ignoreJSONStructure:this.options.ignoreJSONStructure,w=[i,o];a&&typeof a!="string"&&(w=w.concat(a)),a&&typeof a=="string"&&(w=w.concat(d?a.split(d):a)),i.indexOf(".")>-1&&(w=i.split("."));var m=Xh(this.data,w);return m||!p||typeof a!="string"?m:Kh(this.data&&this.data[i]&&this.data[i][o],a,d)}},{key:"addResource",value:function(i,o,a,c){var d=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{silent:!1},p=d.keySeparator!==void 0?d.keySeparator:this.options.keySeparator,w=[i,o];a&&(w=w.concat(p?a.split(p):a)),i.indexOf(".")>-1&&(w=i.split("."),c=o,o=w[1]),this.addNamespaces(o),d0(this.data,w,c),d.silent||this.emit("added",i,o,a,c)}},{key:"addResources",value:function(i,o,a){var c=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:!1};for(var d in a)(typeof a[d]=="string"||Object.prototype.toString.apply(a[d])==="[object Array]")&&this.addResource(i,o,d,a[d],{silent:!0});c.silent||this.emit("added",i,o,a)}},{key:"addResourceBundle",value:function(i,o,a,c,d){var p=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1},w=[i,o];i.indexOf(".")>-1&&(w=i.split("."),c=a,a=o,o=w[1]),this.addNamespaces(o);var m=Xh(this.data,w)||{};c?Q1(m,a,d):m=dh(dh({},m),a),d0(this.data,w,m),p.silent||this.emit("added",i,o,a)}},{key:"removeResourceBundle",value:function(i,o){this.hasResourceBundle(i,o)&&delete this.data[i][o],this.removeNamespaces(o),this.emit("removed",i,o)}},{key:"hasResourceBundle",value:function(i,o){return this.getResource(i,o)!==void 0}},{key:"getResourceBundle",value:function(i,o){return o||(o=this.options.defaultNS),this.options.compatibilityAPI==="v1"?dh(dh({},{}),this.getResource(i,o)):this.getResource(i,o)}},{key:"getDataByLanguage",value:function(i){return this.data[i]}},{key:"hasLanguageSomeTranslations",value:function(i){var o=this.getDataByLanguage(i),a=o&&Object.keys(o)||[];return!!a.find(function(c){return o[c]&&Object.keys(o[c]).length>0})}},{key:"toJSON",value:function(){return this.data}}]),n}(gu),eT={processors:{},addPostProcessor:function(e){this.processors[e.name]=e},handle:function(e,n,r,i,o){var a=this;return e.forEach(function(c){a.processors[c]&&(n=a.processors[c].process(n,r,i,o))}),n}};function p0(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function Li(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?p0(Object(n),!0).forEach(function(r){Ha(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):p0(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function OI(t){var e=_I();return function(){var r=Va(t),i;if(e){var o=Va(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return Ud(this,i)}}function _I(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}var g0={},m0=function(t){Tp(n,t);var e=OI(n);function n(r){var i,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return ts(this,n),i=e.call(this),Cp&&gu.call(xl(i)),bI(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],r,xl(i)),i.options=o,i.options.keySeparator===void 0&&(i.options.keySeparator="."),i.logger=Fa.create("translator"),i}return ns(n,[{key:"changeLanguage",value:function(i){i&&(this.language=i)}},{key:"exists",value:function(i){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};if(i==null)return!1;var a=this.resolve(i,o);return a&&a.res!==void 0}},{key:"extractFromKey",value:function(i,o){var a=o.nsSeparator!==void 0?o.nsSeparator:this.options.nsSeparator;a===void 0&&(a=":");var c=o.keySeparator!==void 0?o.keySeparator:this.options.keySeparator,d=o.ns||this.options.defaultNS||[],p=a&&i.indexOf(a)>-1,w=!this.options.userDefinedKeySeparator&&!o.keySeparator&&!this.options.userDefinedNsSeparator&&!o.nsSeparator&&!EI(i,a,c);if(p&&!w){var m=i.match(this.interpolator.nestingRegexp);if(m&&m.length>0)return{key:i,namespaces:d};var T=i.split(a);(a!==c||a===c&&this.options.ns.indexOf(T[0])>-1)&&(d=T.shift()),i=T.join(c)}return typeof d=="string"&&(d=[d]),{key:i,namespaces:d}}},{key:"translate",value:function(i,o,a){var c=this;if(Jo(o)!=="object"&&this.options.overloadTranslationOptionHandler&&(o=this.options.overloadTranslationOptionHandler(arguments)),Jo(o)==="object"&&(o=Li({},o)),o||(o={}),i==null)return"";Array.isArray(i)||(i=[String(i)]);var d=o.returnDetails!==void 0?o.returnDetails:this.options.returnDetails,p=o.keySeparator!==void 0?o.keySeparator:this.options.keySeparator,w=this.extractFromKey(i[i.length-1],o),m=w.key,T=w.namespaces,E=T[T.length-1],A=o.lng||this.language,I=o.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(A&&A.toLowerCase()==="cimode"){if(I){var j=o.nsSeparator||this.options.nsSeparator;return d?{res:"".concat(E).concat(j).concat(m),usedKey:m,exactUsedKey:m,usedLng:A,usedNS:E}:"".concat(E).concat(j).concat(m)}return d?{res:m,usedKey:m,exactUsedKey:m,usedLng:A,usedNS:E}:m}var _=this.resolve(i,o),U=_&&_.res,G=_&&_.usedKey||m,re=_&&_.exactUsedKey||m,q=Object.prototype.toString.apply(U),se=["[object Number]","[object Function]","[object RegExp]"],S=o.joinArrays!==void 0?o.joinArrays:this.options.joinArrays,ue=!this.i18nFormat||this.i18nFormat.handleAsObject,ae=typeof U!="string"&&typeof U!="boolean"&&typeof U!="number";if(ue&&U&&ae&&se.indexOf(q)<0&&!(typeof S=="string"&&q==="[object Array]")){if(!o.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");var Ue=this.options.returnedObjectHandler?this.options.returnedObjectHandler(G,U,Li(Li({},o),{},{ns:T})):"key '".concat(m," (").concat(this.language,")' returned an object instead of string.");return d?(_.res=Ue,_):Ue}if(p){var nt=q==="[object Array]",et=nt?[]:{},De=nt?re:G;for(var Me in U)if(Object.prototype.hasOwnProperty.call(U,Me)){var fe="".concat(De).concat(p).concat(Me);et[Me]=this.translate(fe,Li(Li({},o),{joinArrays:!1,ns:T})),et[Me]===fe&&(et[Me]=U[Me])}U=et}}else if(ue&&typeof S=="string"&&q==="[object Array]")U=U.join(S),U&&(U=this.extendTranslation(U,i,o,a));else{var me=!1,Pe=!1,Be=o.count!==void 0&&typeof o.count!="string",Ze=n.hasDefaultValue(o),ve=Be?this.pluralResolver.getSuffix(A,o.count,o):"",Se=o["defaultValue".concat(ve)]||o.defaultValue;!this.isValidLookup(U)&&Ze&&(me=!0,U=Se),this.isValidLookup(U)||(Pe=!0,U=m);var je=o.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey,Qe=je&&Pe?void 0:U,Ye=Ze&&Se!==U&&this.options.updateMissing;if(Pe||me||Ye){if(this.logger.log(Ye?"updateKey":"missingKey",A,E,m,Ye?Se:U),p){var Ke=this.resolve(m,Li(Li({},o),{},{keySeparator:!1}));Ke&&Ke.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}var qe=[],ot=this.languageUtils.getFallbackCodes(this.options.fallbackLng,o.lng||this.language);if(this.options.saveMissingTo==="fallback"&&ot&&ot[0])for(var ct=0;ct<ot.length;ct++)qe.push(ot[ct]);else this.options.saveMissingTo==="all"?qe=this.languageUtils.toResolveHierarchy(o.lng||this.language):qe.push(o.lng||this.language);var pt=function(yt,Je,At){var Mt=Ze&&At!==U?At:Qe;c.options.missingKeyHandler?c.options.missingKeyHandler(yt,E,Je,Mt,Ye,o):c.backendConnector&&c.backendConnector.saveMissing&&c.backendConnector.saveMissing(yt,E,Je,Mt,Ye,o),c.emit("missingKey",yt,E,Je,U)};this.options.saveMissing&&(this.options.saveMissingPlurals&&Be?qe.forEach(function(ft){c.pluralResolver.getSuffixes(ft,o).forEach(function(yt){pt([ft],m+yt,o["defaultValue".concat(yt)]||Se)})}):pt(qe,m,Se))}U=this.extendTranslation(U,i,o,_,a),Pe&&U===m&&this.options.appendNamespaceToMissingKey&&(U="".concat(E,":").concat(m)),(Pe||me)&&this.options.parseMissingKeyHandler&&(this.options.compatibilityAPI!=="v1"?U=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?"".concat(E,":").concat(m):m,me?U:void 0):U=this.options.parseMissingKeyHandler(U))}return d?(_.res=U,_):U}},{key:"extendTranslation",value:function(i,o,a,c,d){var p=this;if(this.i18nFormat&&this.i18nFormat.parse)i=this.i18nFormat.parse(i,Li(Li({},this.options.interpolation.defaultVariables),a),c.usedLng,c.usedNS,c.usedKey,{resolved:c});else if(!a.skipInterpolation){a.interpolation&&this.interpolator.init(Li(Li({},a),{interpolation:Li(Li({},this.options.interpolation),a.interpolation)}));var w=typeof i=="string"&&(a&&a.interpolation&&a.interpolation.skipOnVariables!==void 0?a.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables),m;if(w){var T=i.match(this.interpolator.nestingRegexp);m=T&&T.length}var E=a.replace&&typeof a.replace!="string"?a.replace:a;if(this.options.interpolation.defaultVariables&&(E=Li(Li({},this.options.interpolation.defaultVariables),E)),i=this.interpolator.interpolate(i,E,a.lng||this.language,a),w){var A=i.match(this.interpolator.nestingRegexp),I=A&&A.length;m<I&&(a.nest=!1)}!a.lng&&this.options.compatibilityAPI!=="v1"&&c&&c.res&&(a.lng=c.usedLng),a.nest!==!1&&(i=this.interpolator.nest(i,function(){for(var U=arguments.length,G=new Array(U),re=0;re<U;re++)G[re]=arguments[re];return d&&d[0]===G[0]&&!a.context?(p.logger.warn("It seems you are nesting recursively key: ".concat(G[0]," in key: ").concat(o[0])),null):p.translate.apply(p,G.concat([o]))},a)),a.interpolation&&this.interpolator.reset()}var j=a.postProcess||this.options.postProcess,_=typeof j=="string"?[j]:j;return i!=null&&_&&_.length&&a.applyPostProcessor!==!1&&(i=eT.handle(_,i,o,this.options&&this.options.postProcessPassResolved?Li({i18nResolved:c},a):a,this)),i}},{key:"resolve",value:function(i){var o=this,a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},c,d,p,w,m;return typeof i=="string"&&(i=[i]),i.forEach(function(T){if(!o.isValidLookup(c)){var E=o.extractFromKey(T,a),A=E.key;d=A;var I=E.namespaces;o.options.fallbackNS&&(I=I.concat(o.options.fallbackNS));var j=a.count!==void 0&&typeof a.count!="string",_=j&&!a.ordinal&&a.count===0&&o.pluralResolver.shouldUseIntlApi(),U=a.context!==void 0&&(typeof a.context=="string"||typeof a.context=="number")&&a.context!=="",G=a.lngs?a.lngs:o.languageUtils.toResolveHierarchy(a.lng||o.language,a.fallbackLng);I.forEach(function(re){o.isValidLookup(c)||(m=re,!g0["".concat(G[0],"-").concat(re)]&&o.utils&&o.utils.hasLoadedNamespace&&!o.utils.hasLoadedNamespace(m)&&(g0["".concat(G[0],"-").concat(re)]=!0,o.logger.warn('key "'.concat(d,'" for languages "').concat(G.join(", "),`" won't get resolved as namespace "`).concat(m,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),G.forEach(function(q){if(!o.isValidLookup(c)){w=q;var se=[A];if(o.i18nFormat&&o.i18nFormat.addLookupKeys)o.i18nFormat.addLookupKeys(se,A,q,re,a);else{var S;j&&(S=o.pluralResolver.getSuffix(q,a.count,a));var ue="".concat(o.options.pluralSeparator,"zero");if(j&&(se.push(A+S),_&&se.push(A+ue)),U){var ae="".concat(A).concat(o.options.contextSeparator).concat(a.context);se.push(ae),j&&(se.push(ae+S),_&&se.push(ae+ue))}}for(var Ue;Ue=se.pop();)o.isValidLookup(c)||(p=Ue,c=o.getResource(q,re,Ue,a))}}))})}}),{res:c,usedKey:d,exactUsedKey:p,usedLng:w,usedNS:m}}},{key:"isValidLookup",value:function(i){return i!==void 0&&!(!this.options.returnNull&&i===null)&&!(!this.options.returnEmptyString&&i==="")}},{key:"getResource",value:function(i,o,a){var c=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(i,o,a,c):this.resourceStore.getResource(i,o,a,c)}}],[{key:"hasDefaultValue",value:function(i){var o="defaultValue";for(var a in i)if(Object.prototype.hasOwnProperty.call(i,a)&&o===a.substring(0,o.length)&&i[a]!==void 0)return!0;return!1}}]),n}(gu);function Sg(t){return t.charAt(0).toUpperCase()+t.slice(1)}var v0=function(){function t(e){ts(this,t),this.options=e,this.supportedLngs=this.options.supportedLngs||!1,this.logger=Fa.create("languageUtils")}return ns(t,[{key:"getScriptPartFromCode",value:function(n){if(!n||n.indexOf("-")<0)return null;var r=n.split("-");return r.length===2||(r.pop(),r[r.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(r.join("-"))}},{key:"getLanguagePartFromCode",value:function(n){if(!n||n.indexOf("-")<0)return n;var r=n.split("-");return this.formatLanguageCode(r[0])}},{key:"formatLanguageCode",value:function(n){if(typeof n=="string"&&n.indexOf("-")>-1){var r=["hans","hant","latn","cyrl","cans","mong","arab"],i=n.split("-");return this.options.lowerCaseLng?i=i.map(function(o){return o.toLowerCase()}):i.length===2?(i[0]=i[0].toLowerCase(),i[1]=i[1].toUpperCase(),r.indexOf(i[1].toLowerCase())>-1&&(i[1]=Sg(i[1].toLowerCase()))):i.length===3&&(i[0]=i[0].toLowerCase(),i[1].length===2&&(i[1]=i[1].toUpperCase()),i[0]!=="sgn"&&i[2].length===2&&(i[2]=i[2].toUpperCase()),r.indexOf(i[1].toLowerCase())>-1&&(i[1]=Sg(i[1].toLowerCase())),r.indexOf(i[2].toLowerCase())>-1&&(i[2]=Sg(i[2].toLowerCase()))),i.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?n.toLowerCase():n}},{key:"isSupportedCode",value:function(n){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(n=this.getLanguagePartFromCode(n)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(n)>-1}},{key:"getBestMatchFromCodes",value:function(n){var r=this;if(!n)return null;var i;return n.forEach(function(o){if(!i){var a=r.formatLanguageCode(o);(!r.options.supportedLngs||r.isSupportedCode(a))&&(i=a)}}),!i&&this.options.supportedLngs&&n.forEach(function(o){if(!i){var a=r.getLanguagePartFromCode(o);if(r.isSupportedCode(a))return i=a;i=r.options.supportedLngs.find(function(c){if(c===a)return c;if(!(c.indexOf("-")<0&&a.indexOf("-")<0)&&c.indexOf(a)===0)return c})}}),i||(i=this.getFallbackCodes(this.options.fallbackLng)[0]),i}},{key:"getFallbackCodes",value:function(n,r){if(!n)return[];if(typeof n=="function"&&(n=n(r)),typeof n=="string"&&(n=[n]),Object.prototype.toString.apply(n)==="[object Array]")return n;if(!r)return n.default||[];var i=n[r];return i||(i=n[this.getScriptPartFromCode(r)]),i||(i=n[this.formatLanguageCode(r)]),i||(i=n[this.getLanguagePartFromCode(r)]),i||(i=n.default),i||[]}},{key:"toResolveHierarchy",value:function(n,r){var i=this,o=this.getFallbackCodes(r||this.options.fallbackLng||[],n),a=[],c=function(p){p&&(i.isSupportedCode(p)?a.push(p):i.logger.warn("rejecting language code not found in supportedLngs: ".concat(p)))};return typeof n=="string"&&n.indexOf("-")>-1?(this.options.load!=="languageOnly"&&c(this.formatLanguageCode(n)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&c(this.getScriptPartFromCode(n)),this.options.load!=="currentOnly"&&c(this.getLanguagePartFromCode(n))):typeof n=="string"&&c(this.formatLanguageCode(n)),o.forEach(function(d){a.indexOf(d)<0&&c(i.formatLanguageCode(d))}),a}}]),t}(),RI=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],AI={1:function(e){return+(e>1)},2:function(e){return+(e!=1)},3:function(e){return 0},4:function(e){return e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2},5:function(e){return e==0?0:e==1?1:e==2?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5},6:function(e){return e==1?0:e>=2&&e<=4?1:2},7:function(e){return e==1?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2},8:function(e){return e==1?0:e==2?1:e!=8&&e!=11?2:3},9:function(e){return+(e>=2)},10:function(e){return e==1?0:e==2?1:e<7?2:e<11?3:4},11:function(e){return e==1||e==11?0:e==2||e==12?1:e>2&&e<20?2:3},12:function(e){return+(e%10!=1||e%100==11)},13:function(e){return+(e!==0)},14:function(e){return e==1?0:e==2?1:e==3?2:3},15:function(e){return e%10==1&&e%100!=11?0:e%10>=2&&(e%100<10||e%100>=20)?1:2},16:function(e){return e%10==1&&e%100!=11?0:e!==0?1:2},17:function(e){return e==1||e%10==1&&e%100!=11?0:1},18:function(e){return e==0?0:e==1?1:2},19:function(e){return e==1?0:e==0||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3},20:function(e){return e==1?0:e==0||e%100>0&&e%100<20?1:2},21:function(e){return e%100==1?1:e%100==2?2:e%100==3||e%100==4?3:0},22:function(e){return e==1?0:e==2?1:(e<0||e>10)&&e%10==0?2:3}},II=["v1","v2","v3"],y0={zero:0,one:1,two:2,few:3,many:4,other:5};function MI(){var t={};return RI.forEach(function(e){e.lngs.forEach(function(n){t[n]={numbers:e.nr,plurals:AI[e.fc]}})}),t}var LI=function(){function t(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};ts(this,t),this.languageUtils=e,this.options=n,this.logger=Fa.create("pluralResolver"),(!this.options.compatibilityJSON||this.options.compatibilityJSON==="v4")&&(typeof Intl>"u"||!Intl.PluralRules)&&(this.options.compatibilityJSON="v3",this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")),this.rules=MI()}return ns(t,[{key:"addRule",value:function(n,r){this.rules[n]=r}},{key:"getRule",value:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(this.shouldUseIntlApi())try{return new Intl.PluralRules(n,{type:r.ordinal?"ordinal":"cardinal"})}catch{return}return this.rules[n]||this.rules[this.languageUtils.getLanguagePartFromCode(n)]}},{key:"needsPlural",value:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=this.getRule(n,r);return this.shouldUseIntlApi()?i&&i.resolvedOptions().pluralCategories.length>1:i&&i.numbers.length>1}},{key:"getPluralFormsOfKey",value:function(n,r){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.getSuffixes(n,i).map(function(o){return"".concat(r).concat(o)})}},{key:"getSuffixes",value:function(n){var r=this,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=this.getRule(n,i);return o?this.shouldUseIntlApi()?o.resolvedOptions().pluralCategories.sort(function(a,c){return y0[a]-y0[c]}).map(function(a){return"".concat(r.options.prepend).concat(a)}):o.numbers.map(function(a){return r.getSuffix(n,a,i)}):[]}},{key:"getSuffix",value:function(n,r){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o=this.getRule(n,i);return o?this.shouldUseIntlApi()?"".concat(this.options.prepend).concat(o.select(r)):this.getSuffixRetroCompatible(o,r):(this.logger.warn("no plural rule found for: ".concat(n)),"")}},{key:"getSuffixRetroCompatible",value:function(n,r){var i=this,o=n.noAbs?n.plurals(r):n.plurals(Math.abs(r)),a=n.numbers[o];this.options.simplifyPluralSuffix&&n.numbers.length===2&&n.numbers[0]===1&&(a===2?a="plural":a===1&&(a=""));var c=function(){return i.options.prepend&&a.toString()?i.options.prepend+a.toString():a.toString()};return this.options.compatibilityJSON==="v1"?a===1?"":typeof a=="number"?"_plural_".concat(a.toString()):c():this.options.compatibilityJSON==="v2"||this.options.simplifyPluralSuffix&&n.numbers.length===2&&n.numbers[0]===1?c():this.options.prepend&&o.toString()?this.options.prepend+o.toString():o.toString()}},{key:"shouldUseIntlApi",value:function(){return!II.includes(this.options.compatibilityJSON)}}]),t}();function b0(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function ia(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?b0(Object(n),!0).forEach(function(r){Ha(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):b0(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function w0(t,e,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:".",i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,o=xI(t,e,n);return!o&&i&&typeof n=="string"&&(o=Kh(t,n,r),o===void 0&&(o=Kh(e,n,r))),o}var FI=function(){function t(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};ts(this,t),this.logger=Fa.create("interpolator"),this.options=e,this.format=e.interpolation&&e.interpolation.format||function(n){return n},this.init(e)}return ns(t,[{key:"init",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};n.interpolation||(n.interpolation={escapeValue:!0});var r=n.interpolation;this.escape=r.escape!==void 0?r.escape:TI,this.escapeValue=r.escapeValue!==void 0?r.escapeValue:!0,this.useRawValueToEscape=r.useRawValueToEscape!==void 0?r.useRawValueToEscape:!1,this.prefix=r.prefix?af(r.prefix):r.prefixEscaped||"{{",this.suffix=r.suffix?af(r.suffix):r.suffixEscaped||"}}",this.formatSeparator=r.formatSeparator?r.formatSeparator:r.formatSeparator||",",this.unescapePrefix=r.unescapeSuffix?"":r.unescapePrefix||"-",this.unescapeSuffix=this.unescapePrefix?"":r.unescapeSuffix||"",this.nestingPrefix=r.nestingPrefix?af(r.nestingPrefix):r.nestingPrefixEscaped||af("$t("),this.nestingSuffix=r.nestingSuffix?af(r.nestingSuffix):r.nestingSuffixEscaped||af(")"),this.nestingOptionsSeparator=r.nestingOptionsSeparator?r.nestingOptionsSeparator:r.nestingOptionsSeparator||",",this.maxReplaces=r.maxReplaces?r.maxReplaces:1e3,this.alwaysFormat=r.alwaysFormat!==void 0?r.alwaysFormat:!1,this.resetRegExp()}},{key:"reset",value:function(){this.options&&this.init(this.options)}},{key:"resetRegExp",value:function(){var n="".concat(this.prefix,"(.+?)").concat(this.suffix);this.regexp=new RegExp(n,"g");var r="".concat(this.prefix).concat(this.unescapePrefix,"(.+?)").concat(this.unescapeSuffix).concat(this.suffix);this.regexpUnescape=new RegExp(r,"g");var i="".concat(this.nestingPrefix,"(.+?)").concat(this.nestingSuffix);this.nestingRegexp=new RegExp(i,"g")}},{key:"interpolate",value:function(n,r,i,o){var a=this,c,d,p,w=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function m(j){return j.replace(/\$/g,"$$$$")}var T=function(_){if(_.indexOf(a.formatSeparator)<0){var U=w0(r,w,_,a.options.keySeparator,a.options.ignoreJSONStructure);return a.alwaysFormat?a.format(U,void 0,i,ia(ia(ia({},o),r),{},{interpolationkey:_})):U}var G=_.split(a.formatSeparator),re=G.shift().trim(),q=G.join(a.formatSeparator).trim();return a.format(w0(r,w,re,a.options.keySeparator,a.options.ignoreJSONStructure),q,i,ia(ia(ia({},o),r),{},{interpolationkey:re}))};this.resetRegExp();var E=o&&o.missingInterpolationHandler||this.options.missingInterpolationHandler,A=o&&o.interpolation&&o.interpolation.skipOnVariables!==void 0?o.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables,I=[{regex:this.regexpUnescape,safeValue:function(_){return m(_)}},{regex:this.regexp,safeValue:function(_){return a.escapeValue?m(a.escape(_)):m(_)}}];return I.forEach(function(j){for(p=0;c=j.regex.exec(n);){var _=c[1].trim();if(d=T(_),d===void 0)if(typeof E=="function"){var U=E(n,c,o);d=typeof U=="string"?U:""}else if(o&&Object.prototype.hasOwnProperty.call(o,_))d="";else if(A){d=c[0];continue}else a.logger.warn("missed to pass in variable ".concat(_," for interpolating ").concat(n)),d="";else typeof d!="string"&&!a.useRawValueToEscape&&(d=f0(d));var G=j.safeValue(d);if(n=n.replace(c[0],G),A?(j.regex.lastIndex+=d.length,j.regex.lastIndex-=c[0].length):j.regex.lastIndex=0,p++,p>=a.maxReplaces)break}}),n}},{key:"nest",value:function(n,r){var i=this,o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},a,c,d;function p(E,A){var I=this.nestingOptionsSeparator;if(E.indexOf(I)<0)return E;var j=E.split(new RegExp("".concat(I,"[ ]*{"))),_="{".concat(j[1]);E=j[0],_=this.interpolate(_,d);var U=_.match(/'/g),G=_.match(/"/g);(U&&U.length%2===0&&!G||G.length%2!==0)&&(_=_.replace(/'/g,'"'));try{d=JSON.parse(_),A&&(d=ia(ia({},A),d))}catch(re){return this.logger.warn("failed parsing options string in nesting for key ".concat(E),re),"".concat(E).concat(I).concat(_)}return delete d.defaultValue,E}for(;a=this.nestingRegexp.exec(n);){var w=[];d=ia({},o),d=d.replace&&typeof d.replace!="string"?d.replace:d,d.applyPostProcessor=!1,delete d.defaultValue;var m=!1;if(a[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(a[1])){var T=a[1].split(this.formatSeparator).map(function(E){return E.trim()});a[1]=T.shift(),w=T,m=!0}if(c=r(p.call(this,a[1].trim(),d),d),c&&a[0]===n&&typeof c!="string")return c;typeof c!="string"&&(c=f0(c)),c||(this.logger.warn("missed to resolve ".concat(a[1]," for nesting ").concat(n)),c=""),m&&(c=w.reduce(function(E,A){return i.format(E,A,o.lng,ia(ia({},o),{},{interpolationkey:a[1].trim()}))},c.trim())),n=n.replace(a[0],c),this.regexp.lastIndex=0}return n}}]),t}();function x0(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function ml(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?x0(Object(n),!0).forEach(function(r){Ha(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):x0(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function NI(t){var e=t.toLowerCase().trim(),n={};if(t.indexOf("(")>-1){var r=t.split("(");e=r[0].toLowerCase().trim();var i=r[1].substring(0,r[1].length-1);if(e==="currency"&&i.indexOf(":")<0)n.currency||(n.currency=i.trim());else if(e==="relativetime"&&i.indexOf(":")<0)n.range||(n.range=i.trim());else{var o=i.split(";");o.forEach(function(a){if(a){var c=a.split(":"),d=mI(c),p=d[0],w=d.slice(1),m=w.join(":").trim().replace(/^'+|'+$/g,"");n[p.trim()]||(n[p.trim()]=m),m==="false"&&(n[p.trim()]=!1),m==="true"&&(n[p.trim()]=!0),isNaN(m)||(n[p.trim()]=parseInt(m,10))}})}}return{formatName:e,formatOptions:n}}function lf(t){var e={};return function(r,i,o){var a=i+JSON.stringify(o),c=e[a];return c||(c=t(i,o),e[a]=c),c(r)}}var jI=function(){function t(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};ts(this,t),this.logger=Fa.create("formatter"),this.options=e,this.formats={number:lf(function(n,r){var i=new Intl.NumberFormat(n,ml({},r));return function(o){return i.format(o)}}),currency:lf(function(n,r){var i=new Intl.NumberFormat(n,ml(ml({},r),{},{style:"currency"}));return function(o){return i.format(o)}}),datetime:lf(function(n,r){var i=new Intl.DateTimeFormat(n,ml({},r));return function(o){return i.format(o)}}),relativetime:lf(function(n,r){var i=new Intl.RelativeTimeFormat(n,ml({},r));return function(o){return i.format(o,r.range||"day")}}),list:lf(function(n,r){var i=new Intl.ListFormat(n,ml({},r));return function(o){return i.format(o)}})},this.init(e)}return ns(t,[{key:"init",value:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}},i=r.interpolation;this.formatSeparator=i.formatSeparator?i.formatSeparator:i.formatSeparator||","}},{key:"add",value:function(n,r){this.formats[n.toLowerCase().trim()]=r}},{key:"addCached",value:function(n,r){this.formats[n.toLowerCase().trim()]=lf(r)}},{key:"format",value:function(n,r,i){var o=this,a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},c=r.split(this.formatSeparator),d=c.reduce(function(p,w){var m=NI(w),T=m.formatName,E=m.formatOptions;if(o.formats[T]){var A=p;try{var I=a&&a.formatParams&&a.formatParams[a.interpolationkey]||{},j=I.locale||I.lng||a.locale||a.lng||i;A=o.formats[T](p,j,ml(ml(ml({},E),a),I))}catch(_){o.logger.warn(_)}return A}else o.logger.warn("there was no format function for ".concat(T));return p},n);return d}}]),t}();function S0(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function T0(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?S0(Object(n),!0).forEach(function(r){Ha(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):S0(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function BI(t){var e=$I();return function(){var r=Va(t),i;if(e){var o=Va(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return Ud(this,i)}}function $I(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function VI(t,e){t.pending[e]!==void 0&&(delete t.pending[e],t.pendingCount--)}var HI=function(t){Tp(n,t);var e=BI(n);function n(r,i,o){var a,c=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return ts(this,n),a=e.call(this),Cp&&gu.call(xl(a)),a.backend=r,a.store=i,a.services=o,a.languageUtils=o.languageUtils,a.options=c,a.logger=Fa.create("backendConnector"),a.waitingReads=[],a.maxParallelReads=c.maxParallelReads||10,a.readingCalls=0,a.maxRetries=c.maxRetries>=0?c.maxRetries:5,a.retryTimeout=c.retryTimeout>=1?c.retryTimeout:350,a.state={},a.queue=[],a.backend&&a.backend.init&&a.backend.init(o,c.backend,c),a}return ns(n,[{key:"queueLoad",value:function(i,o,a,c){var d=this,p={},w={},m={},T={};return i.forEach(function(E){var A=!0;o.forEach(function(I){var j="".concat(E,"|").concat(I);!a.reload&&d.store.hasResourceBundle(E,I)?d.state[j]=2:d.state[j]<0||(d.state[j]===1?w[j]===void 0&&(w[j]=!0):(d.state[j]=1,A=!1,w[j]===void 0&&(w[j]=!0),p[j]===void 0&&(p[j]=!0),T[I]===void 0&&(T[I]=!0)))}),A||(m[E]=!0)}),(Object.keys(p).length||Object.keys(w).length)&&this.queue.push({pending:w,pendingCount:Object.keys(w).length,loaded:{},errors:[],callback:c}),{toLoad:Object.keys(p),pending:Object.keys(w),toLoadLanguages:Object.keys(m),toLoadNamespaces:Object.keys(T)}}},{key:"loaded",value:function(i,o,a){var c=i.split("|"),d=c[0],p=c[1];o&&this.emit("failedLoading",d,p,o),a&&this.store.addResourceBundle(d,p,a),this.state[i]=o?-1:2;var w={};this.queue.forEach(function(m){wI(m.loaded,[d],p),VI(m,i),o&&m.errors.push(o),m.pendingCount===0&&!m.done&&(Object.keys(m.loaded).forEach(function(T){w[T]||(w[T]={});var E=m.loaded[T];E.length&&E.forEach(function(A){w[T][A]===void 0&&(w[T][A]=!0)})}),m.done=!0,m.errors.length?m.callback(m.errors):m.callback())}),this.emit("loaded",w),this.queue=this.queue.filter(function(m){return!m.done})}},{key:"read",value:function(i,o,a){var c=this,d=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,p=arguments.length>4&&arguments[4]!==void 0?arguments[4]:this.retryTimeout,w=arguments.length>5?arguments[5]:void 0;if(!i.length)return w(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:i,ns:o,fcName:a,tried:d,wait:p,callback:w});return}this.readingCalls++;var m=function(I,j){if(c.readingCalls--,c.waitingReads.length>0){var _=c.waitingReads.shift();c.read(_.lng,_.ns,_.fcName,_.tried,_.wait,_.callback)}if(I&&j&&d<c.maxRetries){setTimeout(function(){c.read.call(c,i,o,a,d+1,p*2,w)},p);return}w(I,j)},T=this.backend[a].bind(this.backend);if(T.length===2){try{var E=T(i,o);E&&typeof E.then=="function"?E.then(function(A){return m(null,A)}).catch(m):m(null,E)}catch(A){m(A)}return}return T(i,o,m)}},{key:"prepareLoading",value:function(i,o){var a=this,c=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},d=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),d&&d();typeof i=="string"&&(i=this.languageUtils.toResolveHierarchy(i)),typeof o=="string"&&(o=[o]);var p=this.queueLoad(i,o,c,d);if(!p.toLoad.length)return p.pending.length||d(),null;p.toLoad.forEach(function(w){a.loadOne(w)})}},{key:"load",value:function(i,o,a){this.prepareLoading(i,o,{},a)}},{key:"reload",value:function(i,o,a){this.prepareLoading(i,o,{reload:!0},a)}},{key:"loadOne",value:function(i){var o=this,a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",c=i.split("|"),d=c[0],p=c[1];this.read(d,p,"read",void 0,void 0,function(w,m){w&&o.logger.warn("".concat(a,"loading namespace ").concat(p," for language ").concat(d," failed"),w),!w&&m&&o.logger.log("".concat(a,"loaded namespace ").concat(p," for language ").concat(d),m),o.loaded(i,w,m)})}},{key:"saveMissing",value:function(i,o,a,c,d){var p=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{},w=arguments.length>6&&arguments[6]!==void 0?arguments[6]:function(){};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(o)){this.logger.warn('did not save key "'.concat(a,'" as the namespace "').concat(o,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}if(!(a==null||a==="")){if(this.backend&&this.backend.create){var m=T0(T0({},p),{},{isUpdate:d}),T=this.backend.create.bind(this.backend);if(T.length<6)try{var E;T.length===5?E=T(i,o,a,c,m):E=T(i,o,a,c),E&&typeof E.then=="function"?E.then(function(A){return w(null,A)}).catch(w):w(null,E)}catch(A){w(A)}else T(i,o,a,c,w,m)}!i||!i[0]||this.store.addResource(i[0],o,a,c)}}}]),n}(gu);function C0(){return{debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!0,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function(e){var n={};if(Jo(e[1])==="object"&&(n=e[1]),typeof e[1]=="string"&&(n.defaultValue=e[1]),typeof e[2]=="string"&&(n.tDescription=e[2]),Jo(e[2])==="object"||Jo(e[3])==="object"){var r=e[3]||e[2];Object.keys(r).forEach(function(i){n[i]=r[i]})}return n},interpolation:{escapeValue:!0,format:function(e,n,r,i){return e},prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}}function E0(t){return typeof t.ns=="string"&&(t.ns=[t.ns]),typeof t.fallbackLng=="string"&&(t.fallbackLng=[t.fallbackLng]),typeof t.fallbackNS=="string"&&(t.fallbackNS=[t.fallbackNS]),t.supportedLngs&&t.supportedLngs.indexOf("cimode")<0&&(t.supportedLngs=t.supportedLngs.concat(["cimode"])),t}function k0(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function Ia(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?k0(Object(n),!0).forEach(function(r){Ha(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):k0(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function UI(t){var e=WI();return function(){var r=Va(t),i;if(e){var o=Va(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return Ud(this,i)}}function WI(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function hh(){}function zI(t){var e=Object.getOwnPropertyNames(Object.getPrototypeOf(t));e.forEach(function(n){typeof t[n]=="function"&&(t[n]=t[n].bind(t))})}var Zh=function(t){Tp(n,t);var e=UI(n);function n(){var r,i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=arguments.length>1?arguments[1]:void 0;if(ts(this,n),r=e.call(this),Cp&&gu.call(xl(r)),r.options=E0(i),r.services={},r.logger=Fa,r.modules={external:[]},zI(xl(r)),o&&!r.isInitialized&&!i.isClone){if(!r.options.initImmediate)return r.init(i,o),Ud(r,xl(r));setTimeout(function(){r.init(i,o)},0)}return r}return ns(n,[{key:"init",value:function(){var i=this,o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},a=arguments.length>1?arguments[1]:void 0;typeof o=="function"&&(a=o,o={}),!o.defaultNS&&o.defaultNS!==!1&&o.ns&&(typeof o.ns=="string"?o.defaultNS=o.ns:o.ns.indexOf("translation")<0&&(o.defaultNS=o.ns[0]));var c=C0();this.options=Ia(Ia(Ia({},c),this.options),E0(o)),this.options.compatibilityAPI!=="v1"&&(this.options.interpolation=Ia(Ia({},c.interpolation),this.options.interpolation)),o.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=o.keySeparator),o.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=o.nsSeparator);function d(_){return _?typeof _=="function"?new _:_:null}if(!this.options.isClone){this.modules.logger?Fa.init(d(this.modules.logger),this.options):Fa.init(null,this.options);var p;this.modules.formatter?p=this.modules.formatter:typeof Intl<"u"&&(p=jI);var w=new v0(this.options);this.store=new PI(this.options.resources,this.options);var m=this.services;m.logger=Fa,m.resourceStore=this.store,m.languageUtils=w,m.pluralResolver=new LI(w,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),p&&(!this.options.interpolation.format||this.options.interpolation.format===c.interpolation.format)&&(m.formatter=d(p),m.formatter.init(m,this.options),this.options.interpolation.format=m.formatter.format.bind(m.formatter)),m.interpolator=new FI(this.options),m.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},m.backendConnector=new HI(d(this.modules.backend),m.resourceStore,m,this.options),m.backendConnector.on("*",function(_){for(var U=arguments.length,G=new Array(U>1?U-1:0),re=1;re<U;re++)G[re-1]=arguments[re];i.emit.apply(i,[_].concat(G))}),this.modules.languageDetector&&(m.languageDetector=d(this.modules.languageDetector),m.languageDetector.init&&m.languageDetector.init(m,this.options.detection,this.options)),this.modules.i18nFormat&&(m.i18nFormat=d(this.modules.i18nFormat),m.i18nFormat.init&&m.i18nFormat.init(this)),this.translator=new m0(this.services,this.options),this.translator.on("*",function(_){for(var U=arguments.length,G=new Array(U>1?U-1:0),re=1;re<U;re++)G[re-1]=arguments[re];i.emit.apply(i,[_].concat(G))}),this.modules.external.forEach(function(_){_.init&&_.init(i)})}if(this.format=this.options.interpolation.format,a||(a=hh),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){var T=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);T.length>0&&T[0]!=="dev"&&(this.options.lng=T[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined");var E=["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"];E.forEach(function(_){i[_]=function(){var U;return(U=i.store)[_].apply(U,arguments)}});var A=["addResource","addResources","addResourceBundle","removeResourceBundle"];A.forEach(function(_){i[_]=function(){var U;return(U=i.store)[_].apply(U,arguments),i}});var I=Qf(),j=function(){var U=function(re,q){i.isInitialized&&!i.initializedStoreOnce&&i.logger.warn("init: i18next is already initialized. You should call init just once!"),i.isInitialized=!0,i.options.isClone||i.logger.log("initialized",i.options),i.emit("initialized",i.options),I.resolve(q),a(re,q)};if(i.languages&&i.options.compatibilityAPI!=="v1"&&!i.isInitialized)return U(null,i.t.bind(i));i.changeLanguage(i.options.lng,U)};return this.options.resources||!this.options.initImmediate?j():setTimeout(j,0),I}},{key:"loadResources",value:function(i){var o=this,a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:hh,c=a,d=typeof i=="string"?i:this.language;if(typeof i=="function"&&(c=i),!this.options.resources||this.options.partialBundledLanguages){if(d&&d.toLowerCase()==="cimode")return c();var p=[],w=function(E){if(E){var A=o.services.languageUtils.toResolveHierarchy(E);A.forEach(function(I){p.indexOf(I)<0&&p.push(I)})}};if(d)w(d);else{var m=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);m.forEach(function(T){return w(T)})}this.options.preload&&this.options.preload.forEach(function(T){return w(T)}),this.services.backendConnector.load(p,this.options.ns,function(T){!T&&!o.resolvedLanguage&&o.language&&o.setResolvedLanguage(o.language),c(T)})}else c(null)}},{key:"reloadResources",value:function(i,o,a){var c=Qf();return i||(i=this.languages),o||(o=this.options.ns),a||(a=hh),this.services.backendConnector.reload(i,o,function(d){c.resolve(),a(d)}),c}},{key:"use",value:function(i){if(!i)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!i.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return i.type==="backend"&&(this.modules.backend=i),(i.type==="logger"||i.log&&i.warn&&i.error)&&(this.modules.logger=i),i.type==="languageDetector"&&(this.modules.languageDetector=i),i.type==="i18nFormat"&&(this.modules.i18nFormat=i),i.type==="postProcessor"&&eT.addPostProcessor(i),i.type==="formatter"&&(this.modules.formatter=i),i.type==="3rdParty"&&this.modules.external.push(i),this}},{key:"setResolvedLanguage",value:function(i){if(!(!i||!this.languages)&&!(["cimode","dev"].indexOf(i)>-1))for(var o=0;o<this.languages.length;o++){var a=this.languages[o];if(!(["cimode","dev"].indexOf(a)>-1)&&this.store.hasLanguageSomeTranslations(a)){this.resolvedLanguage=a;break}}}},{key:"changeLanguage",value:function(i,o){var a=this;this.isLanguageChangingTo=i;var c=Qf();this.emit("languageChanging",i);var d=function(T){a.language=T,a.languages=a.services.languageUtils.toResolveHierarchy(T),a.resolvedLanguage=void 0,a.setResolvedLanguage(T)},p=function(T,E){E?(d(E),a.translator.changeLanguage(E),a.isLanguageChangingTo=void 0,a.emit("languageChanged",E),a.logger.log("languageChanged",E)):a.isLanguageChangingTo=void 0,c.resolve(function(){return a.t.apply(a,arguments)}),o&&o(T,function(){return a.t.apply(a,arguments)})},w=function(T){!i&&!T&&a.services.languageDetector&&(T=[]);var E=typeof T=="string"?T:a.services.languageUtils.getBestMatchFromCodes(T);E&&(a.language||d(E),a.translator.language||a.translator.changeLanguage(E),a.services.languageDetector&&a.services.languageDetector.cacheUserLanguage&&a.services.languageDetector.cacheUserLanguage(E)),a.loadResources(E,function(A){p(A,E)})};return!i&&this.services.languageDetector&&!this.services.languageDetector.async?w(this.services.languageDetector.detect()):!i&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(w):this.services.languageDetector.detect(w):w(i),c}},{key:"getFixedT",value:function(i,o,a){var c=this,d=function p(w,m){var T;if(Jo(m)!=="object"){for(var E=arguments.length,A=new Array(E>2?E-2:0),I=2;I<E;I++)A[I-2]=arguments[I];T=c.options.overloadTranslationOptionHandler([w,m].concat(A))}else T=Ia({},m);T.lng=T.lng||p.lng,T.lngs=T.lngs||p.lngs,T.ns=T.ns||p.ns,T.keyPrefix=T.keyPrefix||a||p.keyPrefix;var j=c.options.keySeparator||".",_;return T.keyPrefix&&Array.isArray(w)?_=w.map(function(U){return"".concat(T.keyPrefix).concat(j).concat(U)}):_=T.keyPrefix?"".concat(T.keyPrefix).concat(j).concat(w):w,c.t(_,T)};return typeof i=="string"?d.lng=i:d.lngs=i,d.ns=o,d.keyPrefix=a,d}},{key:"t",value:function(){var i;return this.translator&&(i=this.translator).translate.apply(i,arguments)}},{key:"exists",value:function(){var i;return this.translator&&(i=this.translator).exists.apply(i,arguments)}},{key:"setDefaultNamespace",value:function(i){this.options.defaultNS=i}},{key:"hasLoadedNamespace",value:function(i){var o=this,a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;var c=a.lng||this.resolvedLanguage||this.languages[0],d=this.options?this.options.fallbackLng:!1,p=this.languages[this.languages.length-1];if(c.toLowerCase()==="cimode")return!0;var w=function(E,A){var I=o.services.backendConnector.state["".concat(E,"|").concat(A)];return I===-1||I===2};if(a.precheck){var m=a.precheck(this,w);if(m!==void 0)return m}return!!(this.hasResourceBundle(c,i)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||w(c,i)&&(!d||w(p,i)))}},{key:"loadNamespaces",value:function(i,o){var a=this,c=Qf();return this.options.ns?(typeof i=="string"&&(i=[i]),i.forEach(function(d){a.options.ns.indexOf(d)<0&&a.options.ns.push(d)}),this.loadResources(function(d){c.resolve(),o&&o(d)}),c):(o&&o(),Promise.resolve())}},{key:"loadLanguages",value:function(i,o){var a=Qf();typeof i=="string"&&(i=[i]);var c=this.options.preload||[],d=i.filter(function(p){return c.indexOf(p)<0});return d.length?(this.options.preload=c.concat(d),this.loadResources(function(p){a.resolve(),o&&o(p)}),a):(o&&o(),Promise.resolve())}},{key:"dir",value:function(i){if(i||(i=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),!i)return"rtl";var o=["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"],a=this.services&&this.services.languageUtils||new v0(C0());return o.indexOf(a.getLanguagePartFromCode(i))>-1||i.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}},{key:"cloneInstance",value:function(){var i=this,o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:hh,c=Ia(Ia(Ia({},this.options),o),{isClone:!0}),d=new n(c);(o.debug!==void 0||o.prefix!==void 0)&&(d.logger=d.logger.clone(o));var p=["store","services","language"];return p.forEach(function(w){d[w]=i[w]}),d.services=Ia({},this.services),d.services.utils={hasLoadedNamespace:d.hasLoadedNamespace.bind(d)},d.translator=new m0(d.services,d.options),d.translator.on("*",function(w){for(var m=arguments.length,T=new Array(m>1?m-1:0),E=1;E<m;E++)T[E-1]=arguments[E];d.emit.apply(d,[w].concat(T))}),d.init(c,a),d.translator.options=d.options,d.translator.backendConnector.services.utils={hasLoadedNamespace:d.hasLoadedNamespace.bind(d)},d}},{key:"toJSON",value:function(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}]),n}(gu);Ha(Zh,"createInstance",function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},e=arguments.length>1?arguments[1]:void 0;return new Zh(t,e)});var ii=Zh.createInstance();ii.createInstance=Zh.createInstance;ii.createInstance;ii.dir;ii.init;ii.loadResources;ii.reloadResources;ii.use;ii.changeLanguage;ii.getFixedT;var tT=ii.t;ii.exists;ii.setDefaultNamespace;ii.hasLoadedNamespace;ii.loadNamespaces;ii.loadLanguages;const nT={TOKEN_MALFORMED:"token_malformed",TOKEN_EXPIRED:"token_expired"},rT=t=>{window.location.href=`${t}/authentication/login`},iT=t=>{window.location.href=`${t}/authentication/logout`},As=uI.create({withCredentials:!0});let Tg=!1,Pm=[];const D0=t=>{Pm.forEach(e=>{t?e.reject(t):e.resolve()}),Pm=[]};function oT(t,e){var o,a,c,d,p,w,m,T,E;const n=t.config,r=((a=(o=t.response)==null?void 0:o.data)==null?void 0:a.errorMessage)||((d=(c=t.response)==null?void 0:c.data)==null?void 0:d.message),i=r===nT.TOKEN_EXPIRED;if(((p=t.response)==null?void 0:p.status)===401&&i&&!n._retry)return Tg?new Promise((A,I)=>{Pm.push({resolve:A,reject:I})}).then(()=>As(n)).catch(A=>Promise.reject(A)):(n._retry=!0,Tg=!0,As.post("/authentication/api/v1/auth/refresh-token",void 0,{baseURL:window.env.AUTHEN_DOMAIN}).then(()=>(D0(null),As(n))).catch(A=>(D0(A),Promise.reject(A))).finally(()=>{Tg=!1}));if(((w=t.response)==null?void 0:w.status)===401&&!i){if(window.self!==window.top&&window.top){console.log("401 - IFRAME");const A=`${window.env.AUTHEN_DOMAIN||window.top.origin}/authentication/login`;window.top.location.href=A;return}return rT(window.env.AUTHEN_DOMAIN)}return((m=t.response)==null?void 0:m.status)===403?(T=e==null?void 0:e.handle403)==null||T.call(e,t):(!(e!=null&&e.disabledPushNotify)&&Wd(tT(`${r||"Something went wrong!"}`)),(E=e==null?void 0:e.handleOtherError)==null||E.call(e,t)),r&&t.response&&t.response.data&&(t.response.data.message=r),Promise.reject(t)}const YI=As.interceptors.response.use(t=>t,async t=>oT(t)),sT=X.createContext({}),GI=({children:t})=>{const[e,n]=X.useState(!1),[r,i]=X.useState({all:{total:0},unread:{total:0}}),o=()=>{n(!e)},a=()=>{n(!1)};return Re.jsx(sT.Provider,{value:{isOpen:e,toggleOpen:o,setShowModalFalse:a,notidata:r,setNotiData:i},children:t})};var aT={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},P0=X.createContext&&X.createContext(aT),qI=["attr","size","title"];function XI(t,e){if(t==null)return{};var n=KI(t,e),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(i=0;i<o.length;i++)r=o[i],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}function KI(t,e){if(t==null)return{};var n={};for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r)){if(e.indexOf(r)>=0)continue;n[r]=t[r]}return n}function Jh(){return Jh=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},Jh.apply(this,arguments)}function O0(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function Qh(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?O0(Object(n),!0).forEach(function(r){ZI(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):O0(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function ZI(t,e,n){return e=JI(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function JI(t){var e=QI(t,"string");return typeof e=="symbol"?e:e+""}function QI(t,e){if(typeof t!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function lT(t){return t&&t.map((e,n)=>X.createElement(e.tag,Qh({key:n},e.attr),lT(e.child)))}function Ep(t){return e=>X.createElement(eM,Jh({attr:Qh({},t.attr)},e),lT(t.child))}function eM(t){var e=n=>{var{attr:r,size:i,title:o}=t,a=XI(t,qI),c=i||n.size||"1em",d;return n.className&&(d=n.className),t.className&&(d=(d?d+" ":"")+t.className),X.createElement("svg",Jh({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},n.attr,r,a,{className:d,style:Qh(Qh({color:t.color||n.color},n.style),t.style),height:c,width:c,xmlns:"http://www.w3.org/2000/svg"}),o&&X.createElement("title",null,o),t.children)};return P0!==void 0?X.createElement(P0.Consumer,null,n=>e(n)):e(aT)}function tM(t){return Ep({attr:{viewBox:"0 0 1024 1024"},child:[{tag:"path",attr:{d:"M689 165.1L308.2 493.5c-10.9 9.4-10.9 27.5 0 37L689 858.9c14.2 12.2 35 1.2 35-18.5V183.6c0-19.7-20.8-30.7-35-18.5z"},child:[]}]})(t)}function nM(t){return Ep({attr:{viewBox:"0 0 1024 1024"},child:[{tag:"path",attr:{d:"M715.8 493.5L335 165.1c-14.2-12.2-35-1.2-35 18.5v656.8c0 19.7 20.8 30.7 35 18.5l380.8-328.4c10.9-9.4 10.9-27.6 0-37z"},child:[]}]})(t)}const uT={allVariants:{lineHeight:"inherit"},fontFamily:"'SpecialAmpersand', 'TT Firs Neue Trl'",button:{textTransform:"none",fontSize:"0.875rem",fontWeight:400,boxShadow:"none"},body1:{fontSize:"0.875rem",fontWeight:400},body2:{fontSize:"0.75rem"},h6:{fontSize:"0.875rem",fontWeight:500},h5:{fontSize:"1rem",fontWeight:500},h4:{fontSize:"1.25rem",fontWeight:500},h3:{fontSize:"1.5rem",fontWeight:500},h2:{fontSize:"2rem",fontWeight:500},h1:{fontSize:"2.5rem",fontWeight:500},subtitle1:{fontSize:"0.75rem"},subtitle2:{fontSize:"0.625rem"}};function Cg(t){return t+" !important"}const cT=t=>{const e={...t.colors};return sa.createTheme({palette:{primary:{main:e.primary300,contrastText:e.textPrimary},secondary:{main:e.secondary,contrastText:e.textPrimary},warning:{main:e.warning,contrastText:e.textPrimary},error:{main:e.danger,contrastText:e.textPrimary}},typography:uT,components:{MuiIconButton:{styleOverrides:{root:{},sizeSmall:{}}},MuiButton:{styleOverrides:{root:{boxShadow:"none !important",padding:"8px 32px",borderWidth:1,borderRadius:3,fontWeight:400}},variants:[{props:{variant:"primary"},style:{backgroundColor:e.primary300,color:e.buttonText,"&:hover":{backgroundColor:e.buttonHover||e.primary300},"&.Mui-disabled":{backgroundColor:e.grey200}}},{props:{variant:"contained",color:"error"},style:{color:e.white}},{props:{variant:"confirm"},style:{backgroundColor:e.danger,color:e.white,"&:hover":{backgroundColor:e.dangerDark},"&.Mui-disabled":{backgroundColor:e.grey200}}},{props:{variant:"cancel"},style:{backgroundColor:e.grey300,color:e.textPrimary,"&:hover":{backgroundColor:e.grey400}}},{props:{variant:"outlinedPrimary"},style:{color:e.primary500,border:"1px solid",borderColor:e.primary500,"&:hover":{backgroundColor:"inherit"}}},{props:{variant:"outLinedDanger"},style:{color:e.danger,border:"1px solid",borderColor:e.danger,"&:hover":{backgroundColor:"inherit"}}},{props:{size:"small"},style:{fontSize:"12px",lineHeight:"normal",borderRadius:"3px",padding:"4px 16px"}}]},MuiAppBar:{styleOverrides:{root:{backgroundColor:e.appBarBgColor,color:e.appBarColor}}},MuiSelect:{defaultProps:{MenuProps:{PaperProps:{sx:{boxShadow:"none",border:1,borderStyle:"solid",borderColor:e.grey300,mt:"5px"}},MenuListProps:{sx:{padding:"5px","& .MuiMenuItem-root":{fontWeight:400,minHeight:0,borderRadius:"5px","&:hover":{backgroundColor:e.grey100},"&.Mui-selected":{backgroundColor:e.primary200}}}}}},styleOverrides:{select:{padding:"9.94px 5px 9.94px 15px"}}},MuiMenuItem:{styleOverrides:{root:{"&.Mui-selected":{backgroundColor:Cg(e.primary200),"&:hover":{backgroundColor:Cg(e.primary200)}}}}},MuiPaginationItem:{defaultProps:{components:{previous:tM,next:nM}},styleOverrides:{root:{"& svg":{width:"10px"},border:"none",fontSize:"14px",lineHeight:"1.5rem",borderRadius:"7px","&.Mui-selected":{backgroundColor:Cg(e.primary300+"1a")},"&.MuiPaginationItem-previousNext":{backgroundColor:e.grey200}}}},MuiChip:{styleOverrides:{root:{borderRadius:"5px",fontSize:"14px","& .MuiChip-label":{lineHeight:"normal"}},avatar:{width:"10px"},colorSuccess:{color:e.success,backgroundColor:e.successLight},colorWarning:{color:e.warning,backgroundColor:e.warningLight},colorError:{color:e.danger,backgroundColor:e.dangerLight},colorSecondary:{color:e.linkPrimary,backgroundColor:e.linkLight}}},MuiTab:{styleOverrides:{root:{flexDirection:"row",alignContent:"center",gap:"8px",textTransform:"capitalize",fontSize:"14px",borderRadius:0,marginRight:0,height:"48px",minWidth:"100px",padding:"12px 16px",fontWeight:"500","& svg":{mb:"0 !important"},minHeight:"auto","& .chart-icon":{fill:e.grey600},"& .detail-icon":{stroke:e.grey600},color:e.grey400,"&.Mui-selected":{color:e.primary400}}}},MuiTabs:{styleOverrides:{indicator:{backgroundColor:e.primary400}}},MuiDrawer:{defaultProps:{},styleOverrides:{root:{"&.MuiDrawer-paper":{overflowY:"unset"},"& .MuiDrawer-paper":{zIndex:9},"&.MuiPaper-root":{border:"none",background:e.grey100,pt:12,zIndex:9}}}},MuiTextField:{defaultProps:{InputProps:{sx:{"& .Mui-disabled":{background:e.grey200}}},InputLabelProps:{shrink:!0}},styleOverrides:{root:{backgroundColor:e.white,"& .MuiOutlinedInput-input":{padding:"0px 16px 0px 12px",fontWeight:400,height:40,fontSize:"14px",border:1,borderRadius:4,"&::placeholder":{color:e.grey600}},"& .MuiFormLabel-asterisk":{color:e.danger}}}},MuiFormGroup:{styleOverrides:{root:{}}},MuiFormHelperText:{defaultProps:{sx:{fontSize:12}},styleOverrides:{}},MuiAutocomplete:{defaultProps:{sx:{"& .MuiPaper-root":{padding:"5px"}}},styleOverrides:{root:{"& .MuiSvgIcon-root":{width:"20px",height:"20px"},"& .MuiAutocomplete-tag":{margin:0},"& .MuiButtonBase-root":{marginRight:"2px !important",height:"max-content",padding:"2px"},"& .MuiOutlinedInput-root":{padding:"7.45px 55px 7.45px 10px !important"},"& svg":{},"& #checkboxes-tags-demo":{padding:"6px 4px"},"& .MuiAutocomplete-endAdornment":{top:"calc(50% - 12px)"}}}},MuiTableHead:{styleOverrides:{root:{"& th":{fontSize:"14px",padding:"8px 16px"}}}},MuiTableBody:{styleOverrides:{root:{"& th,td":{fontSize:"14px",padding:"8px 16px",height:"45px"},"& .MuiTableCell-root":{borderBottom:`1px solid ${e.grey300}`}}}},MuiRadio:{defaultProps:{sx:{"&.MuiButtonBase-root":{padding:"5px"}}},styleOverrides:{root:{"& .MuiSvgIcon-root":{fontSize:16},color:e.grey600,"&.Mui-checked":{color:e.success},"&.Mui-disabled":{color:e.grey600}}}},MuiTooltip:{defaultProps:{placement:"top"},styleOverrides:{tooltip:{fontSize:"10px",backgroundColor:e.grey600,color:e.white,"& .MuiTooltip-arrow":{color:e.grey600}}}}}})};function _0(t,e){const n={...t};return e==null||e.forEach(r=>{r.children&&r.children.forEach(({key:i,color:o})=>{n[i]=o.trim()||ki[i]})}),n}function fT(t){if(!t)return;let e=document.querySelector("link[rel*='icon']");e||(e=document.createElement("link"),e.rel="icon",document.head.appendChild(e)),e.href=t}function rM(t){var c,d,p;const{data:e,isFetching:n}=Dd.useQuery(["customTheme"],()=>t!=null&&t.url?fetch(t.url).then(w=>w.json()).then(w=>(["image","favicon","icon"].forEach(m=>{var T;(T=w==null?void 0:w.theme)!=null&&T[m]&&(w.theme[m]+=`?v=${Date.now()}`)}),w)):void 0,{enabled:!!(t!=null&&t.url)&&(t==null?void 0:t.enabled),refetchOnWindowFocus:!1,cacheTime:0,onSuccess(w){var T,E;fT((T=w==null?void 0:w.theme)==null?void 0:T.favicon);const m=_0(ki,(E=w==null?void 0:w.theme)==null?void 0:E.keyColor);Object.keys(m).forEach(A=>{document.documentElement.style.setProperty(`--${A}`,m[A])}),document.documentElement.style.setProperty("font-family",uT.fontFamily)}}),r=_0(ki,(c=e==null?void 0:e.theme)==null?void 0:c.keyColor),i=cT({colors:r}),o=(d=e==null?void 0:e.theme)==null?void 0:d.image,a=(p=e==null?void 0:e.theme)==null?void 0:p.icon;return{colors:r,theme:i,logo:o,icon:a,isFetching:n,themeDto:e==null?void 0:e.theme}}const dT=X.createContext({}),iM=()=>X.useContext(dT),oM=t=>{var o;const{children:e,brandTheme:n}=t,r=rM(n),i=((o=t.customTheme)==null?void 0:o.call(t,r.colors))||r.theme;return Re.jsx(dT.Provider,{value:r,children:Re.jsx(sa.ThemeProvider,{theme:i,children:e})})},sM=t=>{const e=Dd.useQueryClient(),n=X.useMemo(()=>t.axiosInstance||As,[t.axiosInstance]);window.env||(window.env={}),window.env.AUTHEN_DOMAIN=new URL(t.baseUrl).origin;const r=Dd.useQuery({queryKey:["user"],refetchOnWindowFocus:!1,retry:!1,queryFn:()=>n.get(t.baseUrl+"/user-management/api/v1/users/my-account").then(i=>(window.user=i.data,i.data))});return X.useEffect(()=>{window.onpageshow=function(i){i.persisted&&e.invalidateQueries(["user"])}},[e]),r},aM=t=>{const e=Dd.useQueryClient(),n=X.useMemo(()=>t.axiosInstance||As,[t.axiosInstance]);window.env||(window.env={}),window.env.AUTHEN_DOMAIN=new URL(t.baseUrl).origin;const r=Dd.useQuery({queryKey:["user-permissions"],refetchOnWindowFocus:!1,retry:!1,queryFn:()=>n.get(t.baseUrl+"/user-management/api/v1/users/my-account/permissions").then(i=>i.data)});return X.useEffect(()=>{window.onpageshow=function(i){i.persisted&&e.invalidateQueries(["user-permissions"])}},[e]),r},Nv=X.createContext({}),lM=t=>{const{children:e,baseUrl:n,axiosInstance:r}=t,i=new URL(n).origin,o=sM({axiosInstance:r,baseUrl:n}),a=aM({axiosInstance:r,baseUrl:n});function c(){window.location.href=`${i}/authentication/login`}function d(){window.location.href=`${i}/authentication/logout`}return o!=null&&o.isFetching?Re.jsx(sa.Grid,{container:!0,justifyContent:"center",alignItems:"center",sx:{minHeight:"100vh"},children:Re.jsx(sa.CircularProgress,{})}):Re.jsx(Nv.Provider,{value:{user:o==null?void 0:o.data,login:c,logout:d,isFetching:o.isFetching,permissions:a==null?void 0:a.data},children:e})},uM=()=>X.useContext(Nv);function cM(t,e,n){return n.some(r=>{const i=t[r];return String(i).toLowerCase().includes(e.toLowerCase())})}function fM(t){var e,n;(n=(e=window.top)==null?void 0:e.HostBridge)==null||n.openBackdrop(t)}var hT=[],dM=hT.forEach,hM=hT.slice;function pM(t){return dM.call(hM.call(arguments,1),function(e){if(e)for(var n in e)t[n]===void 0&&(t[n]=e[n])}),t}var R0=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/,gM=function(e,n,r){var i=r||{};i.path=i.path||"/";var o=encodeURIComponent(n),a="".concat(e,"=").concat(o);if(i.maxAge>0){var c=i.maxAge-0;if(Number.isNaN(c))throw new Error("maxAge should be a Number");a+="; Max-Age=".concat(Math.floor(c))}if(i.domain){if(!R0.test(i.domain))throw new TypeError("option domain is invalid");a+="; Domain=".concat(i.domain)}if(i.path){if(!R0.test(i.path))throw new TypeError("option path is invalid");a+="; Path=".concat(i.path)}if(i.expires){if(typeof i.expires.toUTCString!="function")throw new TypeError("option expires is invalid");a+="; Expires=".concat(i.expires.toUTCString())}if(i.httpOnly&&(a+="; HttpOnly"),i.secure&&(a+="; Secure"),i.sameSite){var d=typeof i.sameSite=="string"?i.sameSite.toLowerCase():i.sameSite;switch(d){case!0:a+="; SameSite=Strict";break;case"lax":a+="; SameSite=Lax";break;case"strict":a+="; SameSite=Strict";break;case"none":a+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}}return a},A0={create:function(e,n,r,i){var o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{path:"/",sameSite:"strict"};r&&(o.expires=new Date,o.expires.setTime(o.expires.getTime()+r*60*1e3)),i&&(o.domain=i),document.cookie=gM(e,encodeURIComponent(n),o)},read:function(e){for(var n="".concat(e,"="),r=document.cookie.split(";"),i=0;i<r.length;i++){for(var o=r[i];o.charAt(0)===" ";)o=o.substring(1,o.length);if(o.indexOf(n)===0)return o.substring(n.length,o.length)}return null},remove:function(e){this.create(e,"",-1)}},mM={name:"cookie",lookup:function(e){var n;if(e.lookupCookie&&typeof document<"u"){var r=A0.read(e.lookupCookie);r&&(n=r)}return n},cacheUserLanguage:function(e,n){n.lookupCookie&&typeof document<"u"&&A0.create(n.lookupCookie,e,n.cookieMinutes,n.cookieDomain,n.cookieOptions)}},vM={name:"querystring",lookup:function(e){var n;if(typeof window<"u"){var r=window.location.search;!window.location.search&&window.location.hash&&window.location.hash.indexOf("?")>-1&&(r=window.location.hash.substring(window.location.hash.indexOf("?")));for(var i=r.substring(1),o=i.split("&"),a=0;a<o.length;a++){var c=o[a].indexOf("=");if(c>0){var d=o[a].substring(0,c);d===e.lookupQuerystring&&(n=o[a].substring(c+1))}}}return n}},ed=null,I0=function(){if(ed!==null)return ed;try{ed=window!=="undefined"&&window.localStorage!==null;var e="i18next.translate.boo";window.localStorage.setItem(e,"foo"),window.localStorage.removeItem(e)}catch{ed=!1}return ed},yM={name:"localStorage",lookup:function(e){var n;if(e.lookupLocalStorage&&I0()){var r=window.localStorage.getItem(e.lookupLocalStorage);r&&(n=r)}return n},cacheUserLanguage:function(e,n){n.lookupLocalStorage&&I0()&&window.localStorage.setItem(n.lookupLocalStorage,e)}},td=null,M0=function(){if(td!==null)return td;try{td=window!=="undefined"&&window.sessionStorage!==null;var e="i18next.translate.boo";window.sessionStorage.setItem(e,"foo"),window.sessionStorage.removeItem(e)}catch{td=!1}return td},bM={name:"sessionStorage",lookup:function(e){var n;if(e.lookupSessionStorage&&M0()){var r=window.sessionStorage.getItem(e.lookupSessionStorage);r&&(n=r)}return n},cacheUserLanguage:function(e,n){n.lookupSessionStorage&&M0()&&window.sessionStorage.setItem(n.lookupSessionStorage,e)}},wM={name:"navigator",lookup:function(e){var n=[];if(typeof navigator<"u"){if(navigator.languages)for(var r=0;r<navigator.languages.length;r++)n.push(navigator.languages[r]);navigator.userLanguage&&n.push(navigator.userLanguage),navigator.language&&n.push(navigator.language)}return n.length>0?n:void 0}},xM={name:"htmlTag",lookup:function(e){var n,r=e.htmlTag||(typeof document<"u"?document.documentElement:null);return r&&typeof r.getAttribute=="function"&&(n=r.getAttribute("lang")),n}},SM={name:"path",lookup:function(e){var n;if(typeof window<"u"){var r=window.location.pathname.match(/\/([a-zA-Z-]*)/g);if(r instanceof Array)if(typeof e.lookupFromPathIndex=="number"){if(typeof r[e.lookupFromPathIndex]!="string")return;n=r[e.lookupFromPathIndex].replace("/","")}else n=r[0].replace("/","")}return n}},TM={name:"subdomain",lookup:function(e){var n=typeof e.lookupFromSubdomainIndex=="number"?e.lookupFromSubdomainIndex+1:1,r=typeof window<"u"&&window.location&&window.location.hostname&&window.location.hostname.match(/^(\w{2,5})\.(([a-z0-9-]{1,63}\.[a-z]{2,6})|localhost)/i);if(r)return r[n]}},pT=!1;try{document.cookie,pT=!0}catch{}var gT=["querystring","cookie","localStorage","sessionStorage","navigator","htmlTag"];pT||gT.splice(1,1);function CM(){return{order:gT,lookupQuerystring:"lng",lookupCookie:"i18next",lookupLocalStorage:"i18nextLng",lookupSessionStorage:"i18nextLng",caches:["localStorage"],excludeCacheFor:["cimode"],convertDetectedLanguage:function(e){return e}}}var mT=function(){function t(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};ts(this,t),this.type="languageDetector",this.detectors={},this.init(e,n)}return ns(t,[{key:"init",value:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};this.services=n||{languageUtils:{}},this.options=pM(r,this.options||{},CM()),typeof this.options.convertDetectedLanguage=="string"&&this.options.convertDetectedLanguage.indexOf("15897")>-1&&(this.options.convertDetectedLanguage=function(o){return o.replace("-","_")}),this.options.lookupFromUrlIndex&&(this.options.lookupFromPathIndex=this.options.lookupFromUrlIndex),this.i18nOptions=i,this.addDetector(mM),this.addDetector(vM),this.addDetector(yM),this.addDetector(bM),this.addDetector(wM),this.addDetector(xM),this.addDetector(SM),this.addDetector(TM)}},{key:"addDetector",value:function(n){return this.detectors[n.name]=n,this}},{key:"detect",value:function(n){var r=this;n||(n=this.options.order);var i=[];return n.forEach(function(o){if(r.detectors[o]){var a=r.detectors[o].lookup(r.options);a&&typeof a=="string"&&(a=[a]),a&&(i=i.concat(a))}}),i=i.map(function(o){return r.options.convertDetectedLanguage(o)}),this.services.languageUtils.getBestMatchFromCodes?i:i.length>0?i[0]:null}},{key:"cacheUserLanguage",value:function(n,r){var i=this;r||(r=this.options.caches),r&&(this.options.excludeCacheFor&&this.options.excludeCacheFor.indexOf(n)>-1||r.forEach(function(o){i.detectors[o]&&i.detectors[o].cacheUserLanguage(n,i.options)}))}}])}();mT.type="languageDetector";function jv(t,e){if(t==null)return{};var n={};for(var r in t)if({}.hasOwnProperty.call(t,r)){if(e.indexOf(r)!==-1)continue;n[r]=t[r]}return n}const EM=Object.freeze(Object.defineProperty({__proto__:null,default:jv},Symbol.toStringTag,{value:"Module"}));var Ei=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Oc(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function kM(t){if(t.__esModule)return t;var e=t.default;if(typeof e=="function"){var n=function r(){return this instanceof r?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};n.prototype=e.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(t).forEach(function(r){var i=Object.getOwnPropertyDescriptor(t,r);Object.defineProperty(n,r,i.get?i:{enumerable:!0,get:function(){return t[r]}})}),n}function DM(){if(console&&console.warn){for(var t,e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];typeof n[0]=="string"&&(n[0]="react-i18next:: ".concat(n[0])),(t=console).warn.apply(t,n)}}var L0={};function Om(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];typeof e[0]=="string"&&L0[e[0]]||(typeof e[0]=="string"&&(L0[e[0]]=new Date),DM.apply(void 0,e))}var vT=function(e,n){return function(){if(e.isInitialized)n();else{var r=function i(){setTimeout(function(){e.off("initialized",i)},0),n()};e.on("initialized",r)}}};function F0(t,e,n){t.loadNamespaces(e,vT(t,n))}function N0(t,e,n,r){typeof n=="string"&&(n=[n]),n.forEach(function(i){t.options.ns.indexOf(i)<0&&t.options.ns.push(i)}),t.loadLanguages(e,vT(t,r))}function PM(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=e.languages[0],i=e.options?e.options.fallbackLng:!1,o=e.languages[e.languages.length-1];if(r.toLowerCase()==="cimode")return!0;var a=function(d,p){var w=e.services.backendConnector.state["".concat(d,"|").concat(p)];return w===-1||w===2};return n.bindI18n&&n.bindI18n.indexOf("languageChanging")>-1&&e.services.backendConnector.backend&&e.isLanguageChangingTo&&!a(e.isLanguageChangingTo,t)?!1:!!(e.hasResourceBundle(r,t)||!e.services.backendConnector.backend||e.options.resources&&!e.options.partialBundledLanguages||a(r,t)&&(!i||a(o,t)))}function OM(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(!e.languages||!e.languages.length)return Om("i18n.languages were undefined or empty",e.languages),!0;var r=e.options.ignoreJSONStructure!==void 0;return r?e.hasLoadedNamespace(t,{lng:n.lng,precheck:function(o,a){if(n.bindI18n&&n.bindI18n.indexOf("languageChanging")>-1&&o.services.backendConnector.backend&&o.isLanguageChangingTo&&!a(o.isLanguageChangingTo,t))return!1}}):PM(t,e,n)}var _M=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,RM={"&amp;":"&","&#38;":"&","&lt;":"<","&#60;":"<","&gt;":">","&#62;":">","&apos;":"'","&#39;":"'","&quot;":'"',"&#34;":'"',"&nbsp;":" ","&#160;":" ","&copy;":"©","&#169;":"©","&reg;":"®","&#174;":"®","&hellip;":"…","&#8230;":"…","&#x2F;":"/","&#47;":"/"},AM=function(e){return RM[e]},IM=function(e){return e.replace(_M,AM)};function j0(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function B0(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?j0(Object(n),!0).forEach(function(r){Ha(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):j0(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}var _m={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:IM};function MM(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};_m=B0(B0({},_m),t)}function LM(){return _m}var yT;function FM(t){yT=t}function NM(){return yT}var jM={type:"3rdParty",init:function(e){MM(e.options.react),FM(e)}},bT=X.createContext(),BM=function(){function t(){ts(this,t),this.usedNamespaces={}}return ns(t,[{key:"addUsedNamespaces",value:function(n){var r=this;n.forEach(function(i){r.usedNamespaces[i]||(r.usedNamespaces[i]=!0)})}},{key:"getUsedNamespaces",value:function(){return Object.keys(this.usedNamespaces)}}]),t}();function $M(t,e){var n=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var r,i,o,a,c=[],d=!0,p=!1;try{if(o=(n=n.call(t)).next,e!==0)for(;!(d=(r=o.call(n)).done)&&(c.push(r.value),c.length!==e);d=!0);}catch(w){p=!0,i=w}finally{try{if(!d&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(p)throw i}}return c}}function VM(t,e){return K1(t)||$M(t,e)||Z1(t,e)||J1()}function $0(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function Eg(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?$0(Object(n),!0).forEach(function(r){Ha(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):$0(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}var HM=function(e,n){var r=X.useRef();return X.useEffect(function(){r.current=e},[e,n]),r.current};function wT(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=e.i18n,r=X.useContext(bT)||{},i=r.i18n,o=r.defaultNS,a=n||i||NM();if(a&&!a.reportNamespaces&&(a.reportNamespaces=new BM),!a){Om("You will need to pass in an i18next instance by using initReactI18next");var c=function(ae,Ue){return typeof Ue=="string"?Ue:Ue&&Jo(Ue)==="object"&&typeof Ue.defaultValue=="string"?Ue.defaultValue:Array.isArray(ae)?ae[ae.length-1]:ae},d=[c,{},!1];return d.t=c,d.i18n={},d.ready=!1,d}a.options.react&&a.options.react.wait!==void 0&&Om("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");var p=Eg(Eg(Eg({},LM()),a.options.react),e),w=p.useSuspense,m=p.keyPrefix,T=t||o||a.options&&a.options.defaultNS;T=typeof T=="string"?[T]:T||["translation"],a.reportNamespaces.addUsedNamespaces&&a.reportNamespaces.addUsedNamespaces(T);var E=(a.isInitialized||a.initializedStoreOnce)&&T.every(function(ue){return OM(ue,a,p)});function A(){return a.getFixedT(e.lng||null,p.nsMode==="fallback"?T:T[0],m)}var I=X.useState(A),j=VM(I,2),_=j[0],U=j[1],G=T.join();e.lng&&(G="".concat(e.lng).concat(G));var re=HM(G),q=X.useRef(!0);X.useEffect(function(){var ue=p.bindI18n,ae=p.bindI18nStore;q.current=!0,!E&&!w&&(e.lng?N0(a,e.lng,T,function(){q.current&&U(A)}):F0(a,T,function(){q.current&&U(A)})),E&&re&&re!==G&&q.current&&U(A);function Ue(){q.current&&U(A)}return ue&&a&&a.on(ue,Ue),ae&&a&&a.store.on(ae,Ue),function(){q.current=!1,ue&&a&&ue.split(" ").forEach(function(nt){return a.off(nt,Ue)}),ae&&a&&ae.split(" ").forEach(function(nt){return a.store.off(nt,Ue)})}},[a,G]);var se=X.useRef(!0);X.useEffect(function(){q.current&&!se.current&&U(A),se.current=!1},[a,m]);var S=[_,a,E];if(S.t=_,S.i18n=a,S.ready=E,E||!E&&!w)return S;throw new Promise(function(ue){e.lng?N0(a,e.lng,T,function(){return ue()}):F0(a,T,function(){return ue()})})}function UM(t){var e=t.i18n,n=t.defaultNS,r=t.children,i=X.useMemo(function(){return{i18n:e,defaultNS:n}},[e,n]);return X.createElement(bT.Provider,{value:i},r)}var xT=[],WM=xT.forEach,zM=xT.slice;function YM(t){return WM.call(zM.call(arguments,1),function(e){if(e)for(var n in e)t[n]===void 0&&(t[n]=e[n])}),t}function GM(t){return t?typeof t=="function"?new t:t:null}function qM(){return{handleEmptyResourcesAsFailed:!0,cacheHitMode:"none"}}function V0(t,e,n,r){var i=t.read.bind(t);if(i.length===2){try{var o=i(e,n);o&&typeof o.then=="function"?o.then(function(a){return r(null,a)}).catch(r):r(null,o)}catch(a){r(a)}return}i(e,n,r)}var ST=function(){function t(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};ts(this,t),this.backends=[],this.type="backend",this.allOptions=r,this.init(e,n)}return ns(t,[{key:"init",value:function(n){var r=this,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};this.services=n,this.options=YM(i,this.options||{},qM()),this.allOptions=o,this.options.backends&&this.options.backends.forEach(function(a,c){r.backends[c]=r.backends[c]||GM(a),r.backends[c].init(n,r.options.backendOptions&&r.options.backendOptions[c]||{},o)}),this.services&&this.options.reloadInterval&&setInterval(function(){return r.reload()},this.options.reloadInterval)}},{key:"read",value:function(n,r,i){var o=this,a=this.backends.length,c=function p(w){if(w>=a)return i(new Error("non of the backend loaded data",!0));var m=w===a-1,T=o.options.handleEmptyResourcesAsFailed&&!m?0:-1,E=o.backends[w];E.read?V0(E,n,r,function(A,I,j){if(!A&&I&&Object.keys(I).length>T){if(i(null,I,w),d(w-1,I),E.save&&o.options.cacheHitMode&&["refresh","refreshAndUpdateStore"].indexOf(o.options.cacheHitMode)>-1){if(j&&o.options.refreshExpirationTime&&j+o.options.refreshExpirationTime>Date.now())return;var _=o.backends[w+1];_&&_.read&&V0(_,n,r,function(U,G){U||G&&(Object.keys(G).length<=T||(d(w,G),o.options.cacheHitMode==="refreshAndUpdateStore"&&o.services&&o.services.resourceStore&&o.services.resourceStore.addResourceBundle(n,r,G)))})}}else p(w+1)}):p(w+1)},d=function p(w,m){if(!(w<0)){var T=o.backends[w];T.save&&T.save(n,r,m),p(w-1,m)}};c(0)}},{key:"create",value:function(n,r,i,o){var a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:function(){},c=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{};this.backends.forEach(function(d){if(d.create){var p=d.create.bind(d);if(p.length<6){try{var w;p.length===5?w=p(n,r,i,o,c):w=p(n,r,i,o),w&&typeof w.then=="function"?w.then(function(m){return a(null,m)}).catch(a):a(null,w)}catch(m){a(m)}return}p(n,r,i,o,a,c)}})}},{key:"reload",value:function(){var n=this,r=this.services,i=r.backendConnector,o=r.languageUtils,a=r.logger,c=i.language;if(!(c&&c.toLowerCase()==="cimode")){var d=[],p=function(m){var T=o.toResolveHierarchy(m);T.forEach(function(E){d.indexOf(E)<0&&d.push(E)})};p(c),this.allOptions.preload&&this.allOptions.preload.forEach(function(w){return p(w)}),d.forEach(function(w){n.allOptions.ns.forEach(function(m){i.read(w,m,"read",null,null,function(T,E){T&&a.warn("loading namespace ".concat(m," for language ").concat(w," failed"),T),!T&&E&&a.log("loaded namespace ".concat(m," for language ").concat(w),E),i.loaded("".concat(w,"|").concat(m),T,E)})})})}}}]),t}();ST.type="backend";function Rm(t){"@babel/helpers - typeof";return Rm=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Rm(t)}function TT(){return typeof XMLHttpRequest=="function"||(typeof XMLHttpRequest>"u"?"undefined":Rm(XMLHttpRequest))==="object"}function XM(t){return!!t&&typeof t.then=="function"}function KM(t){return XM(t)?t:Promise.resolve(t)}function ZM(t){throw new Error('Could not dynamically require "'+t+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var Am={exports:{}},ph={exports:{}},H0;function JM(){return H0||(H0=1,function(t,e){var n=typeof globalThis<"u"&&globalThis||typeof self<"u"&&self||typeof Ei<"u"&&Ei,r=function(){function o(){this.fetch=!1,this.DOMException=n.DOMException}return o.prototype=n,new o}();(function(o){(function(a){var c=typeof o<"u"&&o||typeof self<"u"&&self||typeof c<"u"&&c,d={searchParams:"URLSearchParams"in c,iterable:"Symbol"in c&&"iterator"in Symbol,blob:"FileReader"in c&&"Blob"in c&&function(){try{return new Blob,!0}catch{return!1}}(),formData:"FormData"in c,arrayBuffer:"ArrayBuffer"in c};function p(fe){return fe&&DataView.prototype.isPrototypeOf(fe)}if(d.arrayBuffer)var w=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],m=ArrayBuffer.isView||function(fe){return fe&&w.indexOf(Object.prototype.toString.call(fe))>-1};function T(fe){if(typeof fe!="string"&&(fe=String(fe)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(fe)||fe==="")throw new TypeError('Invalid character in header field name: "'+fe+'"');return fe.toLowerCase()}function E(fe){return typeof fe!="string"&&(fe=String(fe)),fe}function A(fe){var me={next:function(){var Pe=fe.shift();return{done:Pe===void 0,value:Pe}}};return d.iterable&&(me[Symbol.iterator]=function(){return me}),me}function I(fe){this.map={},fe instanceof I?fe.forEach(function(me,Pe){this.append(Pe,me)},this):Array.isArray(fe)?fe.forEach(function(me){this.append(me[0],me[1])},this):fe&&Object.getOwnPropertyNames(fe).forEach(function(me){this.append(me,fe[me])},this)}I.prototype.append=function(fe,me){fe=T(fe),me=E(me);var Pe=this.map[fe];this.map[fe]=Pe?Pe+", "+me:me},I.prototype.delete=function(fe){delete this.map[T(fe)]},I.prototype.get=function(fe){return fe=T(fe),this.has(fe)?this.map[fe]:null},I.prototype.has=function(fe){return this.map.hasOwnProperty(T(fe))},I.prototype.set=function(fe,me){this.map[T(fe)]=E(me)},I.prototype.forEach=function(fe,me){for(var Pe in this.map)this.map.hasOwnProperty(Pe)&&fe.call(me,this.map[Pe],Pe,this)},I.prototype.keys=function(){var fe=[];return this.forEach(function(me,Pe){fe.push(Pe)}),A(fe)},I.prototype.values=function(){var fe=[];return this.forEach(function(me){fe.push(me)}),A(fe)},I.prototype.entries=function(){var fe=[];return this.forEach(function(me,Pe){fe.push([Pe,me])}),A(fe)},d.iterable&&(I.prototype[Symbol.iterator]=I.prototype.entries);function j(fe){if(fe.bodyUsed)return Promise.reject(new TypeError("Already read"));fe.bodyUsed=!0}function _(fe){return new Promise(function(me,Pe){fe.onload=function(){me(fe.result)},fe.onerror=function(){Pe(fe.error)}})}function U(fe){var me=new FileReader,Pe=_(me);return me.readAsArrayBuffer(fe),Pe}function G(fe){var me=new FileReader,Pe=_(me);return me.readAsText(fe),Pe}function re(fe){for(var me=new Uint8Array(fe),Pe=new Array(me.length),Be=0;Be<me.length;Be++)Pe[Be]=String.fromCharCode(me[Be]);return Pe.join("")}function q(fe){if(fe.slice)return fe.slice(0);var me=new Uint8Array(fe.byteLength);return me.set(new Uint8Array(fe)),me.buffer}function se(){return this.bodyUsed=!1,this._initBody=function(fe){this.bodyUsed=this.bodyUsed,this._bodyInit=fe,fe?typeof fe=="string"?this._bodyText=fe:d.blob&&Blob.prototype.isPrototypeOf(fe)?this._bodyBlob=fe:d.formData&&FormData.prototype.isPrototypeOf(fe)?this._bodyFormData=fe:d.searchParams&&URLSearchParams.prototype.isPrototypeOf(fe)?this._bodyText=fe.toString():d.arrayBuffer&&d.blob&&p(fe)?(this._bodyArrayBuffer=q(fe.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):d.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(fe)||m(fe))?this._bodyArrayBuffer=q(fe):this._bodyText=fe=Object.prototype.toString.call(fe):this._bodyText="",this.headers.get("content-type")||(typeof fe=="string"?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):d.searchParams&&URLSearchParams.prototype.isPrototypeOf(fe)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},d.blob&&(this.blob=function(){var fe=j(this);if(fe)return fe;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){if(this._bodyArrayBuffer){var fe=j(this);return fe||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer))}else return this.blob().then(U)}),this.text=function(){var fe=j(this);if(fe)return fe;if(this._bodyBlob)return G(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(re(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},d.formData&&(this.formData=function(){return this.text().then(Ue)}),this.json=function(){return this.text().then(JSON.parse)},this}var S=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function ue(fe){var me=fe.toUpperCase();return S.indexOf(me)>-1?me:fe}function ae(fe,me){if(!(this instanceof ae))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');me=me||{};var Pe=me.body;if(fe instanceof ae){if(fe.bodyUsed)throw new TypeError("Already read");this.url=fe.url,this.credentials=fe.credentials,me.headers||(this.headers=new I(fe.headers)),this.method=fe.method,this.mode=fe.mode,this.signal=fe.signal,!Pe&&fe._bodyInit!=null&&(Pe=fe._bodyInit,fe.bodyUsed=!0)}else this.url=String(fe);if(this.credentials=me.credentials||this.credentials||"same-origin",(me.headers||!this.headers)&&(this.headers=new I(me.headers)),this.method=ue(me.method||this.method||"GET"),this.mode=me.mode||this.mode||null,this.signal=me.signal||this.signal,this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&Pe)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(Pe),(this.method==="GET"||this.method==="HEAD")&&(me.cache==="no-store"||me.cache==="no-cache")){var Be=/([?&])_=[^&]*/;if(Be.test(this.url))this.url=this.url.replace(Be,"$1_="+new Date().getTime());else{var Ze=/\?/;this.url+=(Ze.test(this.url)?"&":"?")+"_="+new Date().getTime()}}}ae.prototype.clone=function(){return new ae(this,{body:this._bodyInit})};function Ue(fe){var me=new FormData;return fe.trim().split("&").forEach(function(Pe){if(Pe){var Be=Pe.split("="),Ze=Be.shift().replace(/\+/g," "),ve=Be.join("=").replace(/\+/g," ");me.append(decodeURIComponent(Ze),decodeURIComponent(ve))}}),me}function nt(fe){var me=new I,Pe=fe.replace(/\r?\n[\t ]+/g," ");return Pe.split("\r").map(function(Be){return Be.indexOf(`
3
+ `)===0?Be.substr(1,Be.length):Be}).forEach(function(Be){var Ze=Be.split(":"),ve=Ze.shift().trim();if(ve){var Se=Ze.join(":").trim();me.append(ve,Se)}}),me}se.call(ae.prototype);function et(fe,me){if(!(this instanceof et))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');me||(me={}),this.type="default",this.status=me.status===void 0?200:me.status,this.ok=this.status>=200&&this.status<300,this.statusText=me.statusText===void 0?"":""+me.statusText,this.headers=new I(me.headers),this.url=me.url||"",this._initBody(fe)}se.call(et.prototype),et.prototype.clone=function(){return new et(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new I(this.headers),url:this.url})},et.error=function(){var fe=new et(null,{status:0,statusText:""});return fe.type="error",fe};var De=[301,302,303,307,308];et.redirect=function(fe,me){if(De.indexOf(me)===-1)throw new RangeError("Invalid status code");return new et(null,{status:me,headers:{location:fe}})},a.DOMException=c.DOMException;try{new a.DOMException}catch{a.DOMException=function(me,Pe){this.message=me,this.name=Pe;var Be=Error(me);this.stack=Be.stack},a.DOMException.prototype=Object.create(Error.prototype),a.DOMException.prototype.constructor=a.DOMException}function Me(fe,me){return new Promise(function(Pe,Be){var Ze=new ae(fe,me);if(Ze.signal&&Ze.signal.aborted)return Be(new a.DOMException("Aborted","AbortError"));var ve=new XMLHttpRequest;function Se(){ve.abort()}ve.onload=function(){var Qe={status:ve.status,statusText:ve.statusText,headers:nt(ve.getAllResponseHeaders()||"")};Qe.url="responseURL"in ve?ve.responseURL:Qe.headers.get("X-Request-URL");var Ye="response"in ve?ve.response:ve.responseText;setTimeout(function(){Pe(new et(Ye,Qe))},0)},ve.onerror=function(){setTimeout(function(){Be(new TypeError("Network request failed"))},0)},ve.ontimeout=function(){setTimeout(function(){Be(new TypeError("Network request failed"))},0)},ve.onabort=function(){setTimeout(function(){Be(new a.DOMException("Aborted","AbortError"))},0)};function je(Qe){try{return Qe===""&&c.location.href?c.location.href:Qe}catch{return Qe}}ve.open(Ze.method,je(Ze.url),!0),Ze.credentials==="include"?ve.withCredentials=!0:Ze.credentials==="omit"&&(ve.withCredentials=!1),"responseType"in ve&&(d.blob?ve.responseType="blob":d.arrayBuffer&&Ze.headers.get("Content-Type")&&Ze.headers.get("Content-Type").indexOf("application/octet-stream")!==-1&&(ve.responseType="arraybuffer")),me&&typeof me.headers=="object"&&!(me.headers instanceof I)?Object.getOwnPropertyNames(me.headers).forEach(function(Qe){ve.setRequestHeader(Qe,E(me.headers[Qe]))}):Ze.headers.forEach(function(Qe,Ye){ve.setRequestHeader(Ye,Qe)}),Ze.signal&&(Ze.signal.addEventListener("abort",Se),ve.onreadystatechange=function(){ve.readyState===4&&Ze.signal.removeEventListener("abort",Se)}),ve.send(typeof Ze._bodyInit>"u"?null:Ze._bodyInit)})}return Me.polyfill=!0,c.fetch||(c.fetch=Me,c.Headers=I,c.Request=ae,c.Response=et),a.Headers=I,a.Request=ae,a.Response=et,a.fetch=Me,a})({})})(r),r.fetch.ponyfill=!0,delete r.fetch.polyfill;var i=n.fetch?n:r;e=i.fetch,e.default=i.fetch,e.fetch=i.fetch,e.Headers=i.Headers,e.Request=i.Request,e.Response=i.Response,t.exports=e}(ph,ph.exports)),ph.exports}(function(t,e){var n=typeof fetch=="function"?fetch:void 0;if(typeof Ei<"u"&&Ei.fetch?n=Ei.fetch:typeof window<"u"&&window.fetch&&(n=window.fetch),typeof ZM<"u"&&typeof window>"u"){var r=n||JM();r.default&&(r=r.default),e.default=r,t.exports=e.default}})(Am,Am.exports);var CT=Am.exports;const ET=Oc(CT),U0=dI({__proto__:null,default:ET},[CT]);function W0(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function z0(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?W0(Object(n),!0).forEach(function(r){QM(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):W0(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function QM(t,e,n){return(e=eL(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function eL(t){var e=tL(t,"string");return Tc(e)=="symbol"?e:e+""}function tL(t,e){if(Tc(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(Tc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function Tc(t){"@babel/helpers - typeof";return Tc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Tc(t)}var mu=typeof fetch=="function"?fetch:void 0;typeof global<"u"&&global.fetch?mu=global.fetch:typeof window<"u"&&window.fetch&&(mu=window.fetch);var Pd;TT()&&(typeof global<"u"&&global.XMLHttpRequest?Pd=global.XMLHttpRequest:typeof window<"u"&&window.XMLHttpRequest&&(Pd=window.XMLHttpRequest));var ep;typeof ActiveXObject=="function"&&(typeof global<"u"&&global.ActiveXObject?ep=global.ActiveXObject:typeof window<"u"&&window.ActiveXObject&&(ep=window.ActiveXObject));!mu&&U0&&!Pd&&!ep&&(mu=ET||U0);typeof mu!="function"&&(mu=void 0);var Im=function(e,n){if(n&&Tc(n)==="object"){var r="";for(var i in n)r+="&"+encodeURIComponent(i)+"="+encodeURIComponent(n[i]);if(!r)return e;e=e+(e.indexOf("?")!==-1?"&":"?")+r.slice(1)}return e},Y0=function(e,n,r,i){var o=function(d){if(!d.ok)return r(d.statusText||"Error",{status:d.status});d.text().then(function(p){r(null,{status:d.status,data:p})}).catch(r)};if(i){var a=i(e,n);if(a instanceof Promise){a.then(o).catch(r);return}}typeof fetch=="function"?fetch(e,n).then(o).catch(r):mu(e,n).then(o).catch(r)},G0=!1,nL=function(e,n,r,i){e.queryStringParams&&(n=Im(n,e.queryStringParams));var o=z0({},typeof e.customHeaders=="function"?e.customHeaders():e.customHeaders);typeof window>"u"&&typeof global<"u"&&typeof global.process<"u"&&global.process.versions&&global.process.versions.node&&(o["User-Agent"]="i18next-http-backend (node/".concat(global.process.version,"; ").concat(global.process.platform," ").concat(global.process.arch,")")),r&&(o["Content-Type"]="application/json");var a=typeof e.requestOptions=="function"?e.requestOptions(r):e.requestOptions,c=z0({method:r?"POST":"GET",body:r?e.stringify(r):void 0,headers:o},G0?{}:a),d=typeof e.alternateFetch=="function"&&e.alternateFetch.length>=1?e.alternateFetch:void 0;try{Y0(n,c,i,d)}catch(p){if(!a||Object.keys(a).length===0||!p.message||p.message.indexOf("not implemented")<0)return i(p);try{Object.keys(a).forEach(function(w){delete c[w]}),Y0(n,c,i,d),G0=!0}catch(w){i(w)}}},rL=function(e,n,r,i){r&&Tc(r)==="object"&&(r=Im("",r).slice(1)),e.queryStringParams&&(n=Im(n,e.queryStringParams));try{var o;Pd?o=new Pd:o=new ep("MSXML2.XMLHTTP.3.0"),o.open(r?"POST":"GET",n,1),e.crossDomain||o.setRequestHeader("X-Requested-With","XMLHttpRequest"),o.withCredentials=!!e.withCredentials,r&&o.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),o.overrideMimeType&&o.overrideMimeType("application/json");var a=e.customHeaders;if(a=typeof a=="function"?a():a,a)for(var c in a)o.setRequestHeader(c,a[c]);o.onreadystatechange=function(){o.readyState>3&&i(o.status>=400?o.statusText:null,{status:o.status,data:o.responseText})},o.send(r)}catch(d){console&&console.log(d)}},iL=function(e,n,r,i){if(typeof r=="function"&&(i=r,r=void 0),i=i||function(){},mu&&n.indexOf("file:")!==0)return nL(e,n,r,i);if(TT()||typeof ActiveXObject=="function")return rL(e,n,r,i);i(new Error("No fetch and no xhr implementation found!"))};function Ef(t){"@babel/helpers - typeof";return Ef=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ef(t)}function q0(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function kg(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?q0(Object(n),!0).forEach(function(r){kT(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):q0(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function oL(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function sL(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,DT(r.key),r)}}function aL(t,e,n){return e&&sL(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function kT(t,e,n){return(e=DT(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function DT(t){var e=lL(t,"string");return Ef(e)=="symbol"?e:e+""}function lL(t,e){if(Ef(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(Ef(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}var uL=function(){return{loadPath:"/locales/{{lng}}/{{ns}}.json",addPath:"/locales/add/{{lng}}/{{ns}}",parse:function(n){return JSON.parse(n)},stringify:JSON.stringify,parsePayload:function(n,r,i){return kT({},r,i||"")},parseLoadPayload:function(n,r){},request:iL,reloadInterval:typeof window<"u"?!1:60*60*1e3,customHeaders:{},queryStringParams:{},crossDomain:!1,withCredentials:!1,overrideMimeType:!1,requestOptions:{mode:"cors",credentials:"same-origin",cache:"default"}}},PT=function(){function t(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};oL(this,t),this.services=e,this.options=n,this.allOptions=r,this.type="backend",this.init(e,n,r)}return aL(t,[{key:"init",value:function(n){var r=this,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(this.services=n,this.options=kg(kg(kg({},uL()),this.options||{}),i),this.allOptions=o,this.services&&this.options.reloadInterval){var a=setInterval(function(){return r.reload()},this.options.reloadInterval);Ef(a)==="object"&&typeof a.unref=="function"&&a.unref()}}},{key:"readMulti",value:function(n,r,i){this._readAny(n,n,r,r,i)}},{key:"read",value:function(n,r,i){this._readAny([n],n,[r],r,i)}},{key:"_readAny",value:function(n,r,i,o,a){var c=this,d=this.options.loadPath;typeof this.options.loadPath=="function"&&(d=this.options.loadPath(n,i)),d=KM(d),d.then(function(p){if(!p)return a(null,{});var w=c.services.interpolator.interpolate(p,{lng:n.join("+"),ns:i.join("+")});c.loadUrl(w,a,r,o)})}},{key:"loadUrl",value:function(n,r,i,o){var a=this,c=typeof i=="string"?[i]:i,d=typeof o=="string"?[o]:o,p=this.options.parseLoadPayload(c,d);this.options.request(this.options,n,p,function(w,m){if(m&&(m.status>=500&&m.status<600||!m.status))return r("failed loading "+n+"; status code: "+m.status,!0);if(m&&m.status>=400&&m.status<500)return r("failed loading "+n+"; status code: "+m.status,!1);if(!m&&w&&w.message){var T=w.message.toLowerCase(),E=["failed","fetch","network","load"].find(function(j){return T.indexOf(j)>-1});if(E)return r("failed loading "+n+": "+w.message,!0)}if(w)return r(w,!1);var A,I;try{typeof m.data=="string"?A=a.options.parse(m.data,i,o):A=m.data}catch{I="failed parsing "+n+" to json"}if(I)return r(I,!1);r(null,A)})}},{key:"create",value:function(n,r,i,o,a){var c=this;if(this.options.addPath){typeof n=="string"&&(n=[n]);var d=this.options.parsePayload(r,i,o),p=0,w=[],m=[];n.forEach(function(T){var E=c.options.addPath;typeof c.options.addPath=="function"&&(E=c.options.addPath(T,r));var A=c.services.interpolator.interpolate(E,{lng:T,ns:r});c.options.request(c.options,A,d,function(I,j){p+=1,w.push(I),m.push(j),p===n.length&&typeof a=="function"&&a(w,m)})})}}},{key:"reload",value:function(){var n=this,r=this.services,i=r.backendConnector,o=r.languageUtils,a=r.logger,c=i.language;if(!(c&&c.toLowerCase()==="cimode")){var d=[],p=function(m){var T=o.toResolveHierarchy(m);T.forEach(function(E){d.indexOf(E)<0&&d.push(E)})};p(c),this.allOptions.preload&&this.allOptions.preload.forEach(function(w){return p(w)}),d.forEach(function(w){n.allOptions.ns.forEach(function(m){i.read(w,m,"read",null,null,function(T,E){T&&a.warn("loading namespace ".concat(m," for language ").concat(w," failed"),T),!T&&E&&a.log("loaded namespace ".concat(m," for language ").concat(w),E),i.loaded("".concat(w,"|").concat(m),T,E)})})})}}}])}();PT.type="backend";var Bv=(t=>(t.en="en",t.de="de",t))(Bv||{});const cL={en:"English",de:"German"};ii.use(ST).use(jM).use(mT).init({initImmediate:!0,ns:["translation"],fallbackLng:Object.keys(cL),fallbackNS:"translation",partialBundledLanguages:!0,resources:{},interpolation:{escapeValue:!1},backend:{backends:[PT],backendOptions:[{loadPath:()=>{var e,n,r;if((e=window==null?void 0:window.env)!=null&&e.TRANSLATION_URL)return`${window.env.TRANSLATION_URL}/{{lng}}`;const t=((n=window==null?void 0:window.env)==null?void 0:n.VITE_BASE_URL)||((r=window==null?void 0:window.env)==null?void 0:r.REACT_APP_BASE_URL)||location.protocol+"//"+location.host;return console.log("url",t),`${t}/translations/{{lng}}`},crossDomain:!0,cacheHitMode:"refresh"}]}});function fL(){const[t,e]=X.useState();return X.useEffect(()=>{const n=localStorage.getItem("language");e(n||Bv.en)},[]),{language:t,setLanguage:e}}const OT=X.createContext({}),dL=()=>X.useContext(OT),hL=ii,pL=tT,gL=()=>wT(),mL=({children:t})=>{const e=fL();return Re.jsx(OT.Provider,{value:e,children:Re.jsx(UM,{i18n:ii,children:t})})};function X0(t){return typeof t=="number"&&isFinite(t)&&Math.floor(t)===t}function vL(t){var e=t.lastRenderedStartIndex,n=t.lastRenderedStopIndex,r=t.startIndex,i=t.stopIndex;return!(r>n||i<e)}function yL(t){for(var e=t.isItemLoaded,n=t.itemCount,r=t.minimumBatchSize,i=t.startIndex,o=t.stopIndex,a=[],c=null,d=null,p=i;p<=o;p++){var w=e(p);w?d!==null&&(a.push(c,d),c=d=null):(d=p,c===null&&(c=p))}if(d!==null){for(var m=Math.min(Math.max(d,c+r-1),n-1),T=d+1;T<=m&&!e(T);T++)d=T;a.push(c,d)}if(a.length)for(;a[1]-a[0]+1<r&&a[0]>0;){var E=a[0]-1;if(!e(E))a[0]=E;else break}return a}var bL=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")},wL=function(){function t(e,n){for(var r=0;r<n.length;r++){var i=n[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),xL=function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)},K0=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t},SL=function(t){xL(e,t);function e(){var n,r,i,o;bL(this,e);for(var a=arguments.length,c=Array(a),d=0;d<a;d++)c[d]=arguments[d];return o=(r=(i=K0(this,(n=e.__proto__||Object.getPrototypeOf(e)).call.apply(n,[this].concat(c))),i),i._lastRenderedStartIndex=-1,i._lastRenderedStopIndex=-1,i._memoizedUnloadedRanges=[],i._onItemsRendered=function(p){var w=p.visibleStartIndex,m=p.visibleStopIndex;process.env.NODE_ENV!=="production"&&((!X0(w)||!X0(m))&&console.warn("Invalid onItemsRendered signature; please refer to InfiniteLoader documentation."),typeof i.props.loadMoreRows=="function"&&console.warn('InfiniteLoader "loadMoreRows" prop has been renamed to "loadMoreItems".')),i._lastRenderedStartIndex=w,i._lastRenderedStopIndex=m,i._ensureRowsLoaded(w,m)},i._setRef=function(p){i._listRef=p},r),K0(i,o)}return wL(e,[{key:"resetloadMoreItemsCache",value:function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;this._memoizedUnloadedRanges=[],r&&this._ensureRowsLoaded(this._lastRenderedStartIndex,this._lastRenderedStopIndex)}},{key:"componentDidMount",value:function(){process.env.NODE_ENV!=="production"&&this._listRef==null&&console.warn("Invalid list ref; please refer to InfiniteLoader documentation.")}},{key:"render",value:function(){var r=this.props.children;return r({onItemsRendered:this._onItemsRendered,ref:this._setRef})}},{key:"_ensureRowsLoaded",value:function(r,i){var o=this.props,a=o.isItemLoaded,c=o.itemCount,d=o.minimumBatchSize,p=d===void 0?10:d,w=o.threshold,m=w===void 0?15:w,T=yL({isItemLoaded:a,itemCount:c,minimumBatchSize:p,startIndex:Math.max(0,r-m),stopIndex:Math.min(c-1,i+m)});(this._memoizedUnloadedRanges.length!==T.length||this._memoizedUnloadedRanges.some(function(E,A){return T[A]!==E}))&&(this._memoizedUnloadedRanges=T,this._loadUnloadedRanges(T))}},{key:"_loadUnloadedRanges",value:function(r){for(var i=this,o=this.props.loadMoreItems||this.props.loadMoreRows,a=function(p){var w=r[p],m=r[p+1],T=o(w,m);T!=null&&T.then(function(){if(vL({lastRenderedStartIndex:i._lastRenderedStartIndex,lastRenderedStopIndex:i._lastRenderedStopIndex,startIndex:w,stopIndex:m})){if(i._listRef==null)return;typeof i._listRef.resetAfterIndex=="function"?i._listRef.resetAfterIndex(w,!0):(typeof i._listRef._getItemStyleCache=="function"&&i._listRef._getItemStyleCache(-1),i._listRef.forceUpdate())}})},c=0;c<r.length;c+=2)a(c)}}]),e}(X.PureComponent);function kf(){return kf=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)({}).hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},kf.apply(null,arguments)}const TL=Object.freeze(Object.defineProperty({__proto__:null,get default(){return kf}},Symbol.toStringTag,{value:"Module"}));function _T(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,qh(t,e)}const CL="*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]{display:none}";function $v({children:t,styles:e=[],...n}){return Re.jsxs("div",{...n,children:[[CL,...e].map((r,i)=>Re.jsx("style",{type:"text/css",children:r},i)),t]})}function EL(t){var e=typeof t;return t!=null&&(e=="object"||e=="function")}var Vv=EL,kL=typeof Ei=="object"&&Ei&&Ei.Object===Object&&Ei,DL=kL,PL=DL,OL=typeof self=="object"&&self&&self.Object===Object&&self,_L=PL||OL||Function("return this")(),RT=_L,RL=RT,AL=function(){return RL.Date.now()},IL=AL,ML=/\s/;function LL(t){for(var e=t.length;e--&&ML.test(t.charAt(e)););return e}var FL=LL,NL=FL,jL=/^\s+/;function BL(t){return t&&t.slice(0,NL(t)+1).replace(jL,"")}var $L=BL,VL=RT,HL=VL.Symbol,AT=HL,Z0=AT,IT=Object.prototype,UL=IT.hasOwnProperty,WL=IT.toString,nd=Z0?Z0.toStringTag:void 0;function zL(t){var e=UL.call(t,nd),n=t[nd];try{t[nd]=void 0;var r=!0}catch{}var i=WL.call(t);return r&&(e?t[nd]=n:delete t[nd]),i}var YL=zL,GL=Object.prototype,qL=GL.toString;function XL(t){return qL.call(t)}var KL=XL,J0=AT,ZL=YL,JL=KL,QL="[object Null]",e2="[object Undefined]",Q0=J0?J0.toStringTag:void 0;function t2(t){return t==null?t===void 0?e2:QL:Q0&&Q0 in Object(t)?ZL(t):JL(t)}var n2=t2;function r2(t){return t!=null&&typeof t=="object"}var i2=r2,o2=n2,s2=i2,a2="[object Symbol]";function l2(t){return typeof t=="symbol"||s2(t)&&o2(t)==a2}var u2=l2,c2=$L,ew=Vv,f2=u2,tw=NaN,d2=/^[-+]0x[0-9a-f]+$/i,h2=/^0b[01]+$/i,p2=/^0o[0-7]+$/i,g2=parseInt;function m2(t){if(typeof t=="number")return t;if(f2(t))return tw;if(ew(t)){var e=typeof t.valueOf=="function"?t.valueOf():t;t=ew(e)?e+"":e}if(typeof t!="string")return t===0?t:+t;t=c2(t);var n=h2.test(t);return n||p2.test(t)?g2(t.slice(2),n?2:8):d2.test(t)?tw:+t}var v2=m2,y2=Vv,Dg=IL,nw=v2,b2="Expected a function",w2=Math.max,x2=Math.min;function S2(t,e,n){var r,i,o,a,c,d,p=0,w=!1,m=!1,T=!0;if(typeof t!="function")throw new TypeError(b2);e=nw(e)||0,y2(n)&&(w=!!n.leading,m="maxWait"in n,o=m?w2(nw(n.maxWait)||0,e):o,T="trailing"in n?!!n.trailing:T);function E(se){var S=r,ue=i;return r=i=void 0,p=se,a=t.apply(ue,S),a}function A(se){return p=se,c=setTimeout(_,e),w?E(se):a}function I(se){var S=se-d,ue=se-p,ae=e-S;return m?x2(ae,o-ue):ae}function j(se){var S=se-d,ue=se-p;return d===void 0||S>=e||S<0||m&&ue>=o}function _(){var se=Dg();if(j(se))return U(se);c=setTimeout(_,I(se))}function U(se){return c=void 0,T&&r?E(se):(r=i=void 0,a)}function G(){c!==void 0&&clearTimeout(c),p=0,r=d=i=c=void 0}function re(){return c===void 0?a:U(Dg())}function q(){var se=Dg(),S=j(se);if(r=arguments,i=this,d=se,S){if(c===void 0)return A(d);if(m)return clearTimeout(c),c=setTimeout(_,e),E(d)}return c===void 0&&(c=setTimeout(_,e)),a}return q.cancel=G,q.flush=re,q}var MT=S2;const Pg=Oc(MT);var T2=MT,C2=Vv,E2="Expected a function";function k2(t,e,n){var r=!0,i=!0;if(typeof t!="function")throw new TypeError(E2);return C2(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),T2(t,e,{leading:r,maxWait:e,trailing:i})}var D2=k2;const P2=Oc(D2);var hf=function(){return hf=Object.assign||function(e){for(var n,r=1,i=arguments.length;r<i;r++){n=arguments[r];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},hf.apply(this,arguments)};function LT(t){return!t||!t.ownerDocument||!t.ownerDocument.defaultView?window:t.ownerDocument.defaultView}function FT(t){return!t||!t.ownerDocument?document:t.ownerDocument}var NT=function(t){var e={},n=Array.prototype.reduce.call(t,function(r,i){var o=i.name.match(/data-simplebar-(.+)/);if(o){var a=o[1].replace(/\W+(.)/g,function(c,d){return d.toUpperCase()});switch(i.value){case"true":r[a]=!0;break;case"false":r[a]=!1;break;case void 0:r[a]=!0;break;default:r[a]=i.value}}return r},e);return n};function jT(t,e){var n;t&&(n=t.classList).add.apply(n,e.split(" "))}function BT(t,e){t&&e.split(" ").forEach(function(n){t.classList.remove(n)})}function $T(t){return".".concat(t.split(" ").join("."))}var Hv=!!(typeof window<"u"&&window.document&&window.document.createElement),O2=Object.freeze({__proto__:null,addClasses:jT,canUseDOM:Hv,classNamesToQuery:$T,getElementDocument:FT,getElementWindow:LT,getOptions:NT,removeClasses:BT}),ff=null,rw=null;Hv&&window.addEventListener("resize",function(){rw!==window.devicePixelRatio&&(rw=window.devicePixelRatio,ff=null)});function iw(){if(ff===null){if(typeof document>"u")return ff=0,ff;var t=document.body,e=document.createElement("div");e.classList.add("simplebar-hide-scrollbar"),t.appendChild(e);var n=e.getBoundingClientRect().right;t.removeChild(e),ff=n}return ff}var nu=LT,Og=FT,_2=NT,ru=jT,iu=BT,Oo=$T,rd=function(){function t(e,n){n===void 0&&(n={});var r=this;if(this.removePreventClickId=null,this.minScrollbarWidth=20,this.stopScrollDelay=175,this.isScrolling=!1,this.isMouseEntering=!1,this.isDragging=!1,this.scrollXTicking=!1,this.scrollYTicking=!1,this.wrapperEl=null,this.contentWrapperEl=null,this.contentEl=null,this.offsetEl=null,this.maskEl=null,this.placeholderEl=null,this.heightAutoObserverWrapperEl=null,this.heightAutoObserverEl=null,this.rtlHelpers=null,this.scrollbarWidth=0,this.resizeObserver=null,this.mutationObserver=null,this.elStyles=null,this.isRtl=null,this.mouseX=0,this.mouseY=0,this.onMouseMove=function(){},this.onWindowResize=function(){},this.onStopScrolling=function(){},this.onMouseEntered=function(){},this.onScroll=function(){var i=nu(r.el);r.scrollXTicking||(i.requestAnimationFrame(r.scrollX),r.scrollXTicking=!0),r.scrollYTicking||(i.requestAnimationFrame(r.scrollY),r.scrollYTicking=!0),r.isScrolling||(r.isScrolling=!0,ru(r.el,r.classNames.scrolling)),r.showScrollbar("x"),r.showScrollbar("y"),r.onStopScrolling()},this.scrollX=function(){r.axis.x.isOverflowing&&r.positionScrollbar("x"),r.scrollXTicking=!1},this.scrollY=function(){r.axis.y.isOverflowing&&r.positionScrollbar("y"),r.scrollYTicking=!1},this._onStopScrolling=function(){iu(r.el,r.classNames.scrolling),r.options.autoHide&&(r.hideScrollbar("x"),r.hideScrollbar("y")),r.isScrolling=!1},this.onMouseEnter=function(){r.isMouseEntering||(ru(r.el,r.classNames.mouseEntered),r.showScrollbar("x"),r.showScrollbar("y"),r.isMouseEntering=!0),r.onMouseEntered()},this._onMouseEntered=function(){iu(r.el,r.classNames.mouseEntered),r.options.autoHide&&(r.hideScrollbar("x"),r.hideScrollbar("y")),r.isMouseEntering=!1},this._onMouseMove=function(i){r.mouseX=i.clientX,r.mouseY=i.clientY,(r.axis.x.isOverflowing||r.axis.x.forceVisible)&&r.onMouseMoveForAxis("x"),(r.axis.y.isOverflowing||r.axis.y.forceVisible)&&r.onMouseMoveForAxis("y")},this.onMouseLeave=function(){r.onMouseMove.cancel(),(r.axis.x.isOverflowing||r.axis.x.forceVisible)&&r.onMouseLeaveForAxis("x"),(r.axis.y.isOverflowing||r.axis.y.forceVisible)&&r.onMouseLeaveForAxis("y"),r.mouseX=-1,r.mouseY=-1},this._onWindowResize=function(){r.scrollbarWidth=r.getScrollbarWidth(),r.hideNativeScrollbar()},this.onPointerEvent=function(i){if(!(!r.axis.x.track.el||!r.axis.y.track.el||!r.axis.x.scrollbar.el||!r.axis.y.scrollbar.el)){var o,a;r.axis.x.track.rect=r.axis.x.track.el.getBoundingClientRect(),r.axis.y.track.rect=r.axis.y.track.el.getBoundingClientRect(),(r.axis.x.isOverflowing||r.axis.x.forceVisible)&&(o=r.isWithinBounds(r.axis.x.track.rect)),(r.axis.y.isOverflowing||r.axis.y.forceVisible)&&(a=r.isWithinBounds(r.axis.y.track.rect)),(o||a)&&(i.stopPropagation(),i.type==="pointerdown"&&i.pointerType!=="touch"&&(o&&(r.axis.x.scrollbar.rect=r.axis.x.scrollbar.el.getBoundingClientRect(),r.isWithinBounds(r.axis.x.scrollbar.rect)?r.onDragStart(i,"x"):r.onTrackClick(i,"x")),a&&(r.axis.y.scrollbar.rect=r.axis.y.scrollbar.el.getBoundingClientRect(),r.isWithinBounds(r.axis.y.scrollbar.rect)?r.onDragStart(i,"y"):r.onTrackClick(i,"y"))))}},this.drag=function(i){var o,a,c,d,p,w,m,T,E,A,I;if(!(!r.draggedAxis||!r.contentWrapperEl)){var j,_=r.axis[r.draggedAxis].track,U=(a=(o=_.rect)===null||o===void 0?void 0:o[r.axis[r.draggedAxis].sizeAttr])!==null&&a!==void 0?a:0,G=r.axis[r.draggedAxis].scrollbar,re=(d=(c=r.contentWrapperEl)===null||c===void 0?void 0:c[r.axis[r.draggedAxis].scrollSizeAttr])!==null&&d!==void 0?d:0,q=parseInt((w=(p=r.elStyles)===null||p===void 0?void 0:p[r.axis[r.draggedAxis].sizeAttr])!==null&&w!==void 0?w:"0px",10);i.preventDefault(),i.stopPropagation(),r.draggedAxis==="y"?j=i.pageY:j=i.pageX;var se=j-((T=(m=_.rect)===null||m===void 0?void 0:m[r.axis[r.draggedAxis].offsetAttr])!==null&&T!==void 0?T:0)-r.axis[r.draggedAxis].dragOffset;se=r.draggedAxis==="x"&&r.isRtl?((A=(E=_.rect)===null||E===void 0?void 0:E[r.axis[r.draggedAxis].sizeAttr])!==null&&A!==void 0?A:0)-G.size-se:se;var S=se/(U-G.size),ue=S*(re-q);r.draggedAxis==="x"&&r.isRtl&&(ue=!((I=t.getRtlHelpers())===null||I===void 0)&&I.isScrollingToNegative?-ue:ue),r.contentWrapperEl[r.axis[r.draggedAxis].scrollOffsetAttr]=ue}},this.onEndDrag=function(i){r.isDragging=!1;var o=Og(r.el),a=nu(r.el);i.preventDefault(),i.stopPropagation(),iu(r.el,r.classNames.dragging),r.onStopScrolling(),o.removeEventListener("mousemove",r.drag,!0),o.removeEventListener("mouseup",r.onEndDrag,!0),r.removePreventClickId=a.setTimeout(function(){o.removeEventListener("click",r.preventClick,!0),o.removeEventListener("dblclick",r.preventClick,!0),r.removePreventClickId=null})},this.preventClick=function(i){i.preventDefault(),i.stopPropagation()},this.el=e,this.options=hf(hf({},t.defaultOptions),n),this.classNames=hf(hf({},t.defaultOptions.classNames),n.classNames),this.axis={x:{scrollOffsetAttr:"scrollLeft",sizeAttr:"width",scrollSizeAttr:"scrollWidth",offsetSizeAttr:"offsetWidth",offsetAttr:"left",overflowAttr:"overflowX",dragOffset:0,isOverflowing:!0,forceVisible:!1,track:{size:null,el:null,rect:null,isVisible:!1},scrollbar:{size:null,el:null,rect:null,isVisible:!1}},y:{scrollOffsetAttr:"scrollTop",sizeAttr:"height",scrollSizeAttr:"scrollHeight",offsetSizeAttr:"offsetHeight",offsetAttr:"top",overflowAttr:"overflowY",dragOffset:0,isOverflowing:!0,forceVisible:!1,track:{size:null,el:null,rect:null,isVisible:!1},scrollbar:{size:null,el:null,rect:null,isVisible:!1}}},typeof this.el!="object"||!this.el.nodeName)throw new Error("Argument passed to SimpleBar must be an HTML element instead of ".concat(this.el));this.onMouseMove=P2(this._onMouseMove,64),this.onWindowResize=Pg(this._onWindowResize,64,{leading:!0}),this.onStopScrolling=Pg(this._onStopScrolling,this.stopScrollDelay),this.onMouseEntered=Pg(this._onMouseEntered,this.stopScrollDelay),this.init()}return t.getRtlHelpers=function(){if(t.rtlHelpers)return t.rtlHelpers;var e=document.createElement("div");e.innerHTML='<div class="simplebar-dummy-scrollbar-size"><div></div></div>';var n=e.firstElementChild,r=n==null?void 0:n.firstElementChild;if(!r)return null;document.body.appendChild(n),n.scrollLeft=0;var i=t.getOffset(n),o=t.getOffset(r);n.scrollLeft=-999;var a=t.getOffset(r);return document.body.removeChild(n),t.rtlHelpers={isScrollOriginAtZero:i.left!==o.left,isScrollingToNegative:o.left!==a.left},t.rtlHelpers},t.prototype.getScrollbarWidth=function(){try{return this.contentWrapperEl&&getComputedStyle(this.contentWrapperEl,"::-webkit-scrollbar").display==="none"||"scrollbarWidth"in document.documentElement.style||"-ms-overflow-style"in document.documentElement.style?0:iw()}catch{return iw()}},t.getOffset=function(e){var n=e.getBoundingClientRect(),r=Og(e),i=nu(e);return{top:n.top+(i.pageYOffset||r.documentElement.scrollTop),left:n.left+(i.pageXOffset||r.documentElement.scrollLeft)}},t.prototype.init=function(){Hv&&(this.initDOM(),this.rtlHelpers=t.getRtlHelpers(),this.scrollbarWidth=this.getScrollbarWidth(),this.recalculate(),this.initListeners())},t.prototype.initDOM=function(){var e,n;this.wrapperEl=this.el.querySelector(Oo(this.classNames.wrapper)),this.contentWrapperEl=this.options.scrollableNode||this.el.querySelector(Oo(this.classNames.contentWrapper)),this.contentEl=this.options.contentNode||this.el.querySelector(Oo(this.classNames.contentEl)),this.offsetEl=this.el.querySelector(Oo(this.classNames.offset)),this.maskEl=this.el.querySelector(Oo(this.classNames.mask)),this.placeholderEl=this.findChild(this.wrapperEl,Oo(this.classNames.placeholder)),this.heightAutoObserverWrapperEl=this.el.querySelector(Oo(this.classNames.heightAutoObserverWrapperEl)),this.heightAutoObserverEl=this.el.querySelector(Oo(this.classNames.heightAutoObserverEl)),this.axis.x.track.el=this.findChild(this.el,"".concat(Oo(this.classNames.track)).concat(Oo(this.classNames.horizontal))),this.axis.y.track.el=this.findChild(this.el,"".concat(Oo(this.classNames.track)).concat(Oo(this.classNames.vertical))),this.axis.x.scrollbar.el=((e=this.axis.x.track.el)===null||e===void 0?void 0:e.querySelector(Oo(this.classNames.scrollbar)))||null,this.axis.y.scrollbar.el=((n=this.axis.y.track.el)===null||n===void 0?void 0:n.querySelector(Oo(this.classNames.scrollbar)))||null,this.options.autoHide||(ru(this.axis.x.scrollbar.el,this.classNames.visible),ru(this.axis.y.scrollbar.el,this.classNames.visible))},t.prototype.initListeners=function(){var e=this,n,r=nu(this.el);if(this.el.addEventListener("mouseenter",this.onMouseEnter),this.el.addEventListener("pointerdown",this.onPointerEvent,!0),this.el.addEventListener("mousemove",this.onMouseMove),this.el.addEventListener("mouseleave",this.onMouseLeave),(n=this.contentWrapperEl)===null||n===void 0||n.addEventListener("scroll",this.onScroll),r.addEventListener("resize",this.onWindowResize),!!this.contentEl){if(window.ResizeObserver){var i=!1,o=r.ResizeObserver||ResizeObserver;this.resizeObserver=new o(function(){i&&r.requestAnimationFrame(function(){e.recalculate()})}),this.resizeObserver.observe(this.el),this.resizeObserver.observe(this.contentEl),r.requestAnimationFrame(function(){i=!0})}this.mutationObserver=new r.MutationObserver(function(){r.requestAnimationFrame(function(){e.recalculate()})}),this.mutationObserver.observe(this.contentEl,{childList:!0,subtree:!0,characterData:!0})}},t.prototype.recalculate=function(){if(!(!this.heightAutoObserverEl||!this.contentEl||!this.contentWrapperEl||!this.wrapperEl||!this.placeholderEl)){var e=nu(this.el);this.elStyles=e.getComputedStyle(this.el),this.isRtl=this.elStyles.direction==="rtl";var n=this.contentEl.offsetWidth,r=this.heightAutoObserverEl.offsetHeight<=1,i=this.heightAutoObserverEl.offsetWidth<=1||n>0,o=this.contentWrapperEl.offsetWidth,a=this.elStyles.overflowX,c=this.elStyles.overflowY;this.contentEl.style.padding="".concat(this.elStyles.paddingTop," ").concat(this.elStyles.paddingRight," ").concat(this.elStyles.paddingBottom," ").concat(this.elStyles.paddingLeft),this.wrapperEl.style.margin="-".concat(this.elStyles.paddingTop," -").concat(this.elStyles.paddingRight," -").concat(this.elStyles.paddingBottom," -").concat(this.elStyles.paddingLeft);var d=this.contentEl.scrollHeight,p=this.contentEl.scrollWidth;this.contentWrapperEl.style.height=r?"auto":"100%",this.placeholderEl.style.width=i?"".concat(n||p,"px"):"auto",this.placeholderEl.style.height="".concat(d,"px");var w=this.contentWrapperEl.offsetHeight;this.axis.x.isOverflowing=n!==0&&p>n,this.axis.y.isOverflowing=d>w,this.axis.x.isOverflowing=a==="hidden"?!1:this.axis.x.isOverflowing,this.axis.y.isOverflowing=c==="hidden"?!1:this.axis.y.isOverflowing,this.axis.x.forceVisible=this.options.forceVisible==="x"||this.options.forceVisible===!0,this.axis.y.forceVisible=this.options.forceVisible==="y"||this.options.forceVisible===!0,this.hideNativeScrollbar();var m=this.axis.x.isOverflowing?this.scrollbarWidth:0,T=this.axis.y.isOverflowing?this.scrollbarWidth:0;this.axis.x.isOverflowing=this.axis.x.isOverflowing&&p>o-T,this.axis.y.isOverflowing=this.axis.y.isOverflowing&&d>w-m,this.axis.x.scrollbar.size=this.getScrollbarSize("x"),this.axis.y.scrollbar.size=this.getScrollbarSize("y"),this.axis.x.scrollbar.el&&(this.axis.x.scrollbar.el.style.width="".concat(this.axis.x.scrollbar.size,"px")),this.axis.y.scrollbar.el&&(this.axis.y.scrollbar.el.style.height="".concat(this.axis.y.scrollbar.size,"px")),this.positionScrollbar("x"),this.positionScrollbar("y"),this.toggleTrackVisibility("x"),this.toggleTrackVisibility("y")}},t.prototype.getScrollbarSize=function(e){var n,r;if(e===void 0&&(e="y"),!this.axis[e].isOverflowing||!this.contentEl)return 0;var i=this.contentEl[this.axis[e].scrollSizeAttr],o=(r=(n=this.axis[e].track.el)===null||n===void 0?void 0:n[this.axis[e].offsetSizeAttr])!==null&&r!==void 0?r:0,a=o/i,c;return c=Math.max(~~(a*o),this.options.scrollbarMinSize),this.options.scrollbarMaxSize&&(c=Math.min(c,this.options.scrollbarMaxSize)),c},t.prototype.positionScrollbar=function(e){var n,r,i;e===void 0&&(e="y");var o=this.axis[e].scrollbar;if(!(!this.axis[e].isOverflowing||!this.contentWrapperEl||!o.el||!this.elStyles)){var a=this.contentWrapperEl[this.axis[e].scrollSizeAttr],c=((n=this.axis[e].track.el)===null||n===void 0?void 0:n[this.axis[e].offsetSizeAttr])||0,d=parseInt(this.elStyles[this.axis[e].sizeAttr],10),p=this.contentWrapperEl[this.axis[e].scrollOffsetAttr];p=e==="x"&&this.isRtl&&(!((r=t.getRtlHelpers())===null||r===void 0)&&r.isScrollOriginAtZero)?-p:p,e==="x"&&this.isRtl&&(p=!((i=t.getRtlHelpers())===null||i===void 0)&&i.isScrollingToNegative?p:-p);var w=p/(a-d),m=~~((c-o.size)*w);m=e==="x"&&this.isRtl?-m+(c-o.size):m,o.el.style.transform=e==="x"?"translate3d(".concat(m,"px, 0, 0)"):"translate3d(0, ".concat(m,"px, 0)")}},t.prototype.toggleTrackVisibility=function(e){e===void 0&&(e="y");var n=this.axis[e].track.el,r=this.axis[e].scrollbar.el;!n||!r||!this.contentWrapperEl||(this.axis[e].isOverflowing||this.axis[e].forceVisible?(n.style.visibility="visible",this.contentWrapperEl.style[this.axis[e].overflowAttr]="scroll",this.el.classList.add("".concat(this.classNames.scrollable,"-").concat(e))):(n.style.visibility="hidden",this.contentWrapperEl.style[this.axis[e].overflowAttr]="hidden",this.el.classList.remove("".concat(this.classNames.scrollable,"-").concat(e))),this.axis[e].isOverflowing?r.style.display="block":r.style.display="none")},t.prototype.showScrollbar=function(e){e===void 0&&(e="y"),this.axis[e].isOverflowing&&!this.axis[e].scrollbar.isVisible&&(ru(this.axis[e].scrollbar.el,this.classNames.visible),this.axis[e].scrollbar.isVisible=!0)},t.prototype.hideScrollbar=function(e){e===void 0&&(e="y"),!this.isDragging&&this.axis[e].isOverflowing&&this.axis[e].scrollbar.isVisible&&(iu(this.axis[e].scrollbar.el,this.classNames.visible),this.axis[e].scrollbar.isVisible=!1)},t.prototype.hideNativeScrollbar=function(){this.offsetEl&&(this.offsetEl.style[this.isRtl?"left":"right"]=this.axis.y.isOverflowing||this.axis.y.forceVisible?"-".concat(this.scrollbarWidth,"px"):"0px",this.offsetEl.style.bottom=this.axis.x.isOverflowing||this.axis.x.forceVisible?"-".concat(this.scrollbarWidth,"px"):"0px")},t.prototype.onMouseMoveForAxis=function(e){e===void 0&&(e="y");var n=this.axis[e];!n.track.el||!n.scrollbar.el||(n.track.rect=n.track.el.getBoundingClientRect(),n.scrollbar.rect=n.scrollbar.el.getBoundingClientRect(),this.isWithinBounds(n.track.rect)?(this.showScrollbar(e),ru(n.track.el,this.classNames.hover),this.isWithinBounds(n.scrollbar.rect)?ru(n.scrollbar.el,this.classNames.hover):iu(n.scrollbar.el,this.classNames.hover)):(iu(n.track.el,this.classNames.hover),this.options.autoHide&&this.hideScrollbar(e)))},t.prototype.onMouseLeaveForAxis=function(e){e===void 0&&(e="y"),iu(this.axis[e].track.el,this.classNames.hover),iu(this.axis[e].scrollbar.el,this.classNames.hover),this.options.autoHide&&this.hideScrollbar(e)},t.prototype.onDragStart=function(e,n){var r;n===void 0&&(n="y"),this.isDragging=!0;var i=Og(this.el),o=nu(this.el),a=this.axis[n].scrollbar,c=n==="y"?e.pageY:e.pageX;this.axis[n].dragOffset=c-(((r=a.rect)===null||r===void 0?void 0:r[this.axis[n].offsetAttr])||0),this.draggedAxis=n,ru(this.el,this.classNames.dragging),i.addEventListener("mousemove",this.drag,!0),i.addEventListener("mouseup",this.onEndDrag,!0),this.removePreventClickId===null?(i.addEventListener("click",this.preventClick,!0),i.addEventListener("dblclick",this.preventClick,!0)):(o.clearTimeout(this.removePreventClickId),this.removePreventClickId=null)},t.prototype.onTrackClick=function(e,n){var r=this,i,o,a,c;n===void 0&&(n="y");var d=this.axis[n];if(!(!this.options.clickOnTrack||!d.scrollbar.el||!this.contentWrapperEl)){e.preventDefault();var p=nu(this.el);this.axis[n].scrollbar.rect=d.scrollbar.el.getBoundingClientRect();var w=this.axis[n].scrollbar,m=(o=(i=w.rect)===null||i===void 0?void 0:i[this.axis[n].offsetAttr])!==null&&o!==void 0?o:0,T=parseInt((c=(a=this.elStyles)===null||a===void 0?void 0:a[this.axis[n].sizeAttr])!==null&&c!==void 0?c:"0px",10),E=this.contentWrapperEl[this.axis[n].scrollOffsetAttr],A=n==="y"?this.mouseY-m:this.mouseX-m,I=A<0?-1:1,j=I===-1?E-T:E+T,_=40,U=function(){r.contentWrapperEl&&(I===-1?E>j&&(E-=_,r.contentWrapperEl[r.axis[n].scrollOffsetAttr]=E,p.requestAnimationFrame(U)):E<j&&(E+=_,r.contentWrapperEl[r.axis[n].scrollOffsetAttr]=E,p.requestAnimationFrame(U)))};U()}},t.prototype.getContentElement=function(){return this.contentEl},t.prototype.getScrollElement=function(){return this.contentWrapperEl},t.prototype.removeListeners=function(){var e=nu(this.el);this.el.removeEventListener("mouseenter",this.onMouseEnter),this.el.removeEventListener("pointerdown",this.onPointerEvent,!0),this.el.removeEventListener("mousemove",this.onMouseMove),this.el.removeEventListener("mouseleave",this.onMouseLeave),this.contentWrapperEl&&this.contentWrapperEl.removeEventListener("scroll",this.onScroll),e.removeEventListener("resize",this.onWindowResize),this.mutationObserver&&this.mutationObserver.disconnect(),this.resizeObserver&&this.resizeObserver.disconnect(),this.onMouseMove.cancel(),this.onWindowResize.cancel(),this.onStopScrolling.cancel(),this.onMouseEntered.cancel()},t.prototype.unMount=function(){this.removeListeners()},t.prototype.isWithinBounds=function(e){return this.mouseX>=e.left&&this.mouseX<=e.left+e.width&&this.mouseY>=e.top&&this.mouseY<=e.top+e.height},t.prototype.findChild=function(e,n){var r=e.matches||e.webkitMatchesSelector||e.mozMatchesSelector||e.msMatchesSelector;return Array.prototype.filter.call(e.children,function(i){return r.call(i,n)})[0]},t.rtlHelpers=null,t.defaultOptions={forceVisible:!1,clickOnTrack:!0,scrollbarMinSize:25,scrollbarMaxSize:0,ariaLabel:"scrollable content",tabIndex:0,classNames:{contentEl:"simplebar-content",contentWrapper:"simplebar-content-wrapper",offset:"simplebar-offset",mask:"simplebar-mask",wrapper:"simplebar-wrapper",placeholder:"simplebar-placeholder",scrollbar:"simplebar-scrollbar",track:"simplebar-track",heightAutoObserverWrapperEl:"simplebar-height-auto-observer-wrapper",heightAutoObserverEl:"simplebar-height-auto-observer",visible:"simplebar-visible",horizontal:"simplebar-horizontal",vertical:"simplebar-vertical",hover:"simplebar-hover",dragging:"simplebar-dragging",scrolling:"simplebar-scrolling",scrollable:"simplebar-scrollable",mouseEntered:"simplebar-mouse-entered"},scrollableNode:null,contentNode:null,autoHide:!0},t.getOptions=_2,t.helpers=O2,t}(),Ko=function(){return Ko=Object.assign||function(e){for(var n,r=1,i=arguments.length;r<i;r++){n=arguments[r];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},Ko.apply(this,arguments)};function R2(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n}var Uv=kn.forwardRef(function(t,e){var n=t.children,r=t.scrollableNodeProps,i=r===void 0?{}:r,o=R2(t,["children","scrollableNodeProps"]),a=kn.useRef(),c=kn.useRef(),d=kn.useRef(),p={},w={};Object.keys(o).forEach(function(E){Object.prototype.hasOwnProperty.call(rd.defaultOptions,E)?p[E]=o[E]:w[E]=o[E]});var m=Ko(Ko({},rd.defaultOptions.classNames),p.classNames),T=Ko(Ko({},i),{className:"".concat(m.contentWrapper).concat(i.className?" ".concat(i.className):""),tabIndex:p.tabIndex||rd.defaultOptions.tabIndex,role:"region","aria-label":p.ariaLabel||rd.defaultOptions.ariaLabel});return kn.useEffect(function(){var E;return c.current=T.ref?T.ref.current:c.current,a.current&&(E=new rd(a.current,Ko(Ko(Ko({},p),c.current&&{scrollableNode:c.current}),d.current&&{contentNode:d.current})),typeof e=="function"?e(E):e&&(e.current=E)),function(){E==null||E.unMount(),E=null,typeof e=="function"&&e(null)}},[]),kn.createElement("div",Ko({"data-simplebar":"init",ref:a},w),kn.createElement("div",{className:m.wrapper},kn.createElement("div",{className:m.heightAutoObserverWrapperEl},kn.createElement("div",{className:m.heightAutoObserverEl})),kn.createElement("div",{className:m.mask},kn.createElement("div",{className:m.offset},typeof n=="function"?n({scrollableNodeRef:c,scrollableNodeProps:Ko(Ko({},T),{ref:c}),contentNodeRef:d,contentNodeProps:{className:m.contentEl,ref:d}}):kn.createElement("div",Ko({},T),kn.createElement("div",{className:m.contentEl},n)))),kn.createElement("div",{className:m.placeholder})),kn.createElement("div",{className:"".concat(m.track," simplebar-horizontal")},kn.createElement("div",{className:m.scrollbar})),kn.createElement("div",{className:"".concat(m.track," simplebar-vertical")},kn.createElement("div",{className:m.scrollbar})))});Uv.displayName="SimpleBar";const VT='[data-simplebar]{position:relative;flex-direction:column;flex-wrap:wrap;justify-content:flex-start;align-content:flex-start;align-items:flex-start}.simplebar-wrapper{overflow:hidden;width:inherit;height:inherit;max-width:inherit;max-height:inherit}.simplebar-mask{direction:inherit;position:absolute;overflow:hidden;padding:0;margin:0;left:0;top:0;bottom:0;right:0;width:auto!important;height:auto!important;z-index:0}.simplebar-offset{direction:inherit!important;box-sizing:inherit!important;resize:none!important;position:absolute;top:0;left:0;bottom:0;right:0;padding:0;margin:0;-webkit-overflow-scrolling:touch}.simplebar-content-wrapper{direction:inherit;box-sizing:border-box!important;position:relative;display:block;height:100%;width:auto;max-width:100%;max-height:100%;overflow:auto;scrollbar-width:none;-ms-overflow-style:none}.simplebar-content-wrapper::-webkit-scrollbar,.simplebar-hide-scrollbar::-webkit-scrollbar{display:none;width:0;height:0}.simplebar-content:after,.simplebar-content:before{content:" ";display:table}.simplebar-placeholder{max-height:100%;max-width:100%;width:100%;pointer-events:none}.simplebar-height-auto-observer-wrapper{box-sizing:inherit!important;height:100%;width:100%;max-width:1px;position:relative;float:left;max-height:1px;overflow:hidden;z-index:-1;padding:0;margin:0;pointer-events:none;flex-grow:inherit;flex-shrink:0;flex-basis:0}.simplebar-height-auto-observer{box-sizing:inherit;display:block;opacity:0;position:absolute;top:0;left:0;height:1000%;width:1000%;min-height:1px;min-width:1px;overflow:hidden;pointer-events:none;z-index:-1}.simplebar-track{z-index:1;position:absolute;right:0;bottom:0;pointer-events:none;overflow:hidden}[data-simplebar].simplebar-dragging,[data-simplebar].simplebar-dragging .simplebar-content{pointer-events:none;-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}[data-simplebar].simplebar-dragging .simplebar-track{pointer-events:all}.simplebar-scrollbar{position:absolute;left:0;right:0;min-height:10px}.simplebar-scrollbar:before{position:absolute;content:"";background:#000;border-radius:7px;left:2px;right:2px;opacity:0;transition:opacity .2s .5s linear}.simplebar-scrollbar.simplebar-visible:before{opacity:.5;transition-delay:0s;transition-duration:0s}.simplebar-track.simplebar-vertical{top:0;width:11px}.simplebar-scrollbar:before{top:2px;bottom:2px;left:2px;right:2px}.simplebar-track.simplebar-horizontal{left:0;height:11px}.simplebar-track.simplebar-horizontal .simplebar-scrollbar{right:auto;left:0;top:0;bottom:0;min-height:0;min-width:10px;width:auto}[data-simplebar-direction=rtl] .simplebar-track.simplebar-vertical{right:auto;left:0}.simplebar-dummy-scrollbar-size{direction:rtl;position:fixed;opacity:0;visibility:hidden;height:500px;width:500px;overflow-y:hidden;overflow-x:scroll;-ms-overflow-style:scrollbar!important}.simplebar-dummy-scrollbar-size>div{width:200%;height:200%;margin:10px 0}.simplebar-hide-scrollbar{position:fixed;left:0;visibility:hidden;overflow-y:scroll;scrollbar-width:none;-ms-overflow-style:none}';function HT(t){var e,n,r="";if(typeof t=="string"||typeof t=="number")r+=t;else if(typeof t=="object")if(Array.isArray(t)){var i=t.length;for(e=0;e<i;e++)t[e]&&(n=HT(t[e]))&&(r&&(r+=" "),r+=n)}else for(n in t)t[n]&&(r&&(r+=" "),r+=n);return r}function bl(){for(var t,e,n=0,r="",i=arguments.length;n<i;n++)(t=arguments[n])&&(e=HT(t))&&(r&&(r+=" "),r+=e);return r}const Od=t=>typeof t=="number"&&!isNaN(t),bc=t=>typeof t=="string",Zo=t=>typeof t=="function",Lh=t=>bc(t)||Zo(t)?t:null,Mm=t=>X.isValidElement(t)||bc(t)||Zo(t)||Od(t);function A2(t,e,n){n===void 0&&(n=300);const{scrollHeight:r,style:i}=t;requestAnimationFrame(()=>{i.minHeight="initial",i.height=r+"px",i.transition=`all ${n}ms`,requestAnimationFrame(()=>{i.height="0",i.padding="0",i.margin="0",setTimeout(e,n)})})}function kp(t){let{enter:e,exit:n,appendPosition:r=!1,collapse:i=!0,collapseDuration:o=300}=t;return function(a){let{children:c,position:d,preventExitTransition:p,done:w,nodeRef:m,isIn:T,playToast:E}=a;const A=r?`${e}--${d}`:e,I=r?`${n}--${d}`:n,j=X.useRef(0);return X.useLayoutEffect(()=>{const _=m.current,U=A.split(" "),G=re=>{re.target===m.current&&(E(),_.removeEventListener("animationend",G),_.removeEventListener("animationcancel",G),j.current===0&&re.type!=="animationcancel"&&_.classList.remove(...U))};_.classList.add(...U),_.addEventListener("animationend",G),_.addEventListener("animationcancel",G)},[]),X.useEffect(()=>{const _=m.current,U=()=>{_.removeEventListener("animationend",U),i?A2(_,w,o):w()};T||(p?U():(j.current=1,_.className+=` ${I}`,_.addEventListener("animationend",U)))},[T]),X.createElement(X.Fragment,null,c)}}function ow(t,e){return t!=null?{content:t.content,containerId:t.props.containerId,id:t.props.toastId,theme:t.props.theme,type:t.props.type,data:t.props.data||{},isLoading:t.props.isLoading,icon:t.props.icon,status:e}:{}}const oo=new Map;let _d=[];const Lm=new Set,I2=t=>Lm.forEach(e=>e(t)),UT=()=>oo.size>0;function WT(t,e){var n;if(e)return!((n=oo.get(e))==null||!n.isToastActive(t));let r=!1;return oo.forEach(i=>{i.isToastActive(t)&&(r=!0)}),r}function zT(t,e){Mm(t)&&(UT()||_d.push({content:t,options:e}),oo.forEach(n=>{n.buildToast(t,e)}))}function sw(t,e){oo.forEach(n=>{e!=null&&e!=null&&e.containerId?(e==null?void 0:e.containerId)===n.id&&n.toggle(t,e==null?void 0:e.id):n.toggle(t,e==null?void 0:e.id)})}function M2(t){const{subscribe:e,getSnapshot:n,setProps:r}=X.useRef(function(o){const a=o.containerId||1;return{subscribe(c){const d=function(w,m,T){let E=1,A=0,I=[],j=[],_=[],U=m;const G=new Map,re=new Set,q=()=>{_=Array.from(G.values()),re.forEach(ue=>ue())},se=ue=>{j=ue==null?[]:j.filter(ae=>ae!==ue),q()},S=ue=>{const{toastId:ae,onOpen:Ue,updateId:nt,children:et}=ue.props,De=nt==null;ue.staleId&&G.delete(ue.staleId),G.set(ae,ue),j=[...j,ue.props.toastId].filter(Me=>Me!==ue.staleId),q(),T(ow(ue,De?"added":"updated")),De&&Zo(Ue)&&Ue(X.isValidElement(et)&&et.props)};return{id:w,props:U,observe:ue=>(re.add(ue),()=>re.delete(ue)),toggle:(ue,ae)=>{G.forEach(Ue=>{ae!=null&&ae!==Ue.props.toastId||Zo(Ue.toggle)&&Ue.toggle(ue)})},removeToast:se,toasts:G,clearQueue:()=>{A-=I.length,I=[]},buildToast:(ue,ae)=>{if((je=>{let{containerId:Qe,toastId:Ye,updateId:Ke}=je;const qe=Qe?Qe!==w:w!==1,ot=G.has(Ye)&&Ke==null;return qe||ot})(ae))return;const{toastId:Ue,updateId:nt,data:et,staleId:De,delay:Me}=ae,fe=()=>{se(Ue)},me=nt==null;me&&A++;const Pe={...U,style:U.toastStyle,key:E++,...Object.fromEntries(Object.entries(ae).filter(je=>{let[Qe,Ye]=je;return Ye!=null})),toastId:Ue,updateId:nt,data:et,closeToast:fe,isIn:!1,className:Lh(ae.className||U.toastClassName),bodyClassName:Lh(ae.bodyClassName||U.bodyClassName),progressClassName:Lh(ae.progressClassName||U.progressClassName),autoClose:!ae.isLoading&&(Be=ae.autoClose,Ze=U.autoClose,Be===!1||Od(Be)&&Be>0?Be:Ze),deleteToast(){const je=G.get(Ue),{onClose:Qe,children:Ye}=je.props;Zo(Qe)&&Qe(X.isValidElement(Ye)&&Ye.props),T(ow(je,"removed")),G.delete(Ue),A--,A<0&&(A=0),I.length>0?S(I.shift()):q()}};var Be,Ze;Pe.closeButton=U.closeButton,ae.closeButton===!1||Mm(ae.closeButton)?Pe.closeButton=ae.closeButton:ae.closeButton===!0&&(Pe.closeButton=!Mm(U.closeButton)||U.closeButton);let ve=ue;X.isValidElement(ue)&&!bc(ue.type)?ve=X.cloneElement(ue,{closeToast:fe,toastProps:Pe,data:et}):Zo(ue)&&(ve=ue({closeToast:fe,toastProps:Pe,data:et}));const Se={content:ve,props:Pe,staleId:De};U.limit&&U.limit>0&&A>U.limit&&me?I.push(Se):Od(Me)?setTimeout(()=>{S(Se)},Me):S(Se)},setProps(ue){U=ue},setToggle:(ue,ae)=>{G.get(ue).toggle=ae},isToastActive:ue=>j.some(ae=>ae===ue),getSnapshot:()=>_}}(a,o,I2);oo.set(a,d);const p=d.observe(c);return _d.forEach(w=>zT(w.content,w.options)),_d=[],()=>{p(),oo.delete(a)}},setProps(c){var d;(d=oo.get(a))==null||d.setProps(c)},getSnapshot(){var c;return(c=oo.get(a))==null?void 0:c.getSnapshot()}}}(t)).current;r(t);const i=X.useSyncExternalStore(e,n,n);return{getToastToRender:function(o){if(!i)return[];const a=new Map;return t.newestOnTop&&i.reverse(),i.forEach(c=>{const{position:d}=c.props;a.has(d)||a.set(d,[]),a.get(d).push(c)}),Array.from(a,c=>o(c[0],c[1]))},isToastActive:WT,count:i==null?void 0:i.length}}function L2(t){const[e,n]=X.useState(!1),[r,i]=X.useState(!1),o=X.useRef(null),a=X.useRef({start:0,delta:0,removalDistance:0,canCloseOnClick:!0,canDrag:!1,didMove:!1}).current,{autoClose:c,pauseOnHover:d,closeToast:p,onClick:w,closeOnClick:m}=t;var T,E;function A(){n(!0)}function I(){n(!1)}function j(G){const re=o.current;a.canDrag&&re&&(a.didMove=!0,e&&I(),a.delta=t.draggableDirection==="x"?G.clientX-a.start:G.clientY-a.start,a.start!==G.clientX&&(a.canCloseOnClick=!1),re.style.transform=`translate3d(${t.draggableDirection==="x"?`${a.delta}px, var(--y)`:`0, calc(${a.delta}px + var(--y))`},0)`,re.style.opacity=""+(1-Math.abs(a.delta/a.removalDistance)))}function _(){document.removeEventListener("pointermove",j),document.removeEventListener("pointerup",_);const G=o.current;if(a.canDrag&&a.didMove&&G){if(a.canDrag=!1,Math.abs(a.delta)>a.removalDistance)return i(!0),t.closeToast(),void t.collapseAll();G.style.transition="transform 0.2s, opacity 0.2s",G.style.removeProperty("transform"),G.style.removeProperty("opacity")}}(E=oo.get((T={id:t.toastId,containerId:t.containerId,fn:n}).containerId||1))==null||E.setToggle(T.id,T.fn),X.useEffect(()=>{if(t.pauseOnFocusLoss)return document.hasFocus()||I(),window.addEventListener("focus",A),window.addEventListener("blur",I),()=>{window.removeEventListener("focus",A),window.removeEventListener("blur",I)}},[t.pauseOnFocusLoss]);const U={onPointerDown:function(G){if(t.draggable===!0||t.draggable===G.pointerType){a.didMove=!1,document.addEventListener("pointermove",j),document.addEventListener("pointerup",_);const re=o.current;a.canCloseOnClick=!0,a.canDrag=!0,re.style.transition="none",t.draggableDirection==="x"?(a.start=G.clientX,a.removalDistance=re.offsetWidth*(t.draggablePercent/100)):(a.start=G.clientY,a.removalDistance=re.offsetHeight*(t.draggablePercent===80?1.5*t.draggablePercent:t.draggablePercent)/100)}},onPointerUp:function(G){const{top:re,bottom:q,left:se,right:S}=o.current.getBoundingClientRect();G.nativeEvent.type!=="touchend"&&t.pauseOnHover&&G.clientX>=se&&G.clientX<=S&&G.clientY>=re&&G.clientY<=q?I():A()}};return c&&d&&(U.onMouseEnter=I,t.stacked||(U.onMouseLeave=A)),m&&(U.onClick=G=>{w&&w(G),a.canCloseOnClick&&p()}),{playToast:A,pauseToast:I,isRunning:e,preventExitTransition:r,toastRef:o,eventHandlers:U}}function F2(t){let{delay:e,isRunning:n,closeToast:r,type:i="default",hide:o,className:a,style:c,controlledProgress:d,progress:p,rtl:w,isIn:m,theme:T}=t;const E=o||d&&p===0,A={...c,animationDuration:`${e}ms`,animationPlayState:n?"running":"paused"};d&&(A.transform=`scaleX(${p})`);const I=bl("Toastify__progress-bar",d?"Toastify__progress-bar--controlled":"Toastify__progress-bar--animated",`Toastify__progress-bar-theme--${T}`,`Toastify__progress-bar--${i}`,{"Toastify__progress-bar--rtl":w}),j=Zo(a)?a({rtl:w,type:i,defaultClassName:I}):bl(I,a),_={[d&&p>=1?"onTransitionEnd":"onAnimationEnd"]:d&&p<1?null:()=>{m&&r()}};return X.createElement("div",{className:"Toastify__progress-bar--wrp","data-hidden":E},X.createElement("div",{className:`Toastify__progress-bar--bg Toastify__progress-bar-theme--${T} Toastify__progress-bar--${i}`}),X.createElement("div",{role:"progressbar","aria-hidden":E?"true":"false","aria-label":"notification timer",className:j,style:A,..._}))}let N2=1;const YT=()=>""+N2++;function j2(t){return t&&(bc(t.toastId)||Od(t.toastId))?t.toastId:YT()}function gd(t,e){return zT(t,e),e.toastId}function tp(t,e){return{...e,type:e&&e.type||t,toastId:j2(e)}}function gh(t){return(e,n)=>gd(e,tp(t,n))}function xn(t,e){return gd(t,tp("default",e))}xn.loading=(t,e)=>gd(t,tp("default",{isLoading:!0,autoClose:!1,closeOnClick:!1,closeButton:!1,draggable:!1,...e})),xn.promise=function(t,e,n){let r,{pending:i,error:o,success:a}=e;i&&(r=bc(i)?xn.loading(i,n):xn.loading(i.render,{...n,...i}));const c={isLoading:null,autoClose:null,closeOnClick:null,closeButton:null,draggable:null},d=(w,m,T)=>{if(m==null)return void xn.dismiss(r);const E={type:w,...c,...n,data:T},A=bc(m)?{render:m}:m;return r?xn.update(r,{...E,...A}):xn(A.render,{...E,...A}),T},p=Zo(t)?t():t;return p.then(w=>d("success",a,w)).catch(w=>d("error",o,w)),p},xn.success=gh("success"),xn.info=gh("info"),xn.error=gh("error"),xn.warning=gh("warning"),xn.warn=xn.warning,xn.dark=(t,e)=>gd(t,tp("default",{theme:"dark",...e})),xn.dismiss=function(t){(function(e){var n;if(UT()){if(e==null||bc(n=e)||Od(n))oo.forEach(r=>{r.removeToast(e)});else if(e&&("containerId"in e||"id"in e)){const r=oo.get(e.containerId);r?r.removeToast(e.id):oo.forEach(i=>{i.removeToast(e.id)})}}else _d=_d.filter(r=>e!=null&&r.options.toastId!==e)})(t)},xn.clearWaitingQueue=function(t){t===void 0&&(t={}),oo.forEach(e=>{!e.props.limit||t.containerId&&e.id!==t.containerId||e.clearQueue()})},xn.isActive=WT,xn.update=function(t,e){e===void 0&&(e={});const n=((r,i)=>{var o;let{containerId:a}=i;return(o=oo.get(a||1))==null?void 0:o.toasts.get(r)})(t,e);if(n){const{props:r,content:i}=n,o={delay:100,...r,...e,toastId:e.toastId||t,updateId:YT()};o.toastId!==t&&(o.staleId=t);const a=o.render||i;delete o.render,gd(a,o)}},xn.done=t=>{xn.update(t,{progress:1})},xn.onChange=function(t){return Lm.add(t),()=>{Lm.delete(t)}},xn.play=t=>sw(!0,t),xn.pause=t=>sw(!1,t);const B2=typeof window<"u"?X.useLayoutEffect:X.useEffect,mh=t=>{let{theme:e,type:n,isLoading:r,...i}=t;return X.createElement("svg",{viewBox:"0 0 24 24",width:"100%",height:"100%",fill:e==="colored"?"currentColor":`var(--toastify-icon-color-${n})`,...i})},_g={info:function(t){return X.createElement(mh,{...t},X.createElement("path",{d:"M12 0a12 12 0 1012 12A12.013 12.013 0 0012 0zm.25 5a1.5 1.5 0 11-1.5 1.5 1.5 1.5 0 011.5-1.5zm2.25 13.5h-4a1 1 0 010-2h.75a.25.25 0 00.25-.25v-4.5a.25.25 0 00-.25-.25h-.75a1 1 0 010-2h1a2 2 0 012 2v4.75a.25.25 0 00.25.25h.75a1 1 0 110 2z"}))},warning:function(t){return X.createElement(mh,{...t},X.createElement("path",{d:"M23.32 17.191L15.438 2.184C14.728.833 13.416 0 11.996 0c-1.42 0-2.733.833-3.443 2.184L.533 17.448a4.744 4.744 0 000 4.368C1.243 23.167 2.555 24 3.975 24h16.05C22.22 24 24 22.044 24 19.632c0-.904-.251-1.746-.68-2.44zm-9.622 1.46c0 1.033-.724 1.823-1.698 1.823s-1.698-.79-1.698-1.822v-.043c0-1.028.724-1.822 1.698-1.822s1.698.79 1.698 1.822v.043zm.039-12.285l-.84 8.06c-.057.581-.408.943-.897.943-.49 0-.84-.367-.896-.942l-.84-8.065c-.057-.624.25-1.095.779-1.095h1.91c.528.005.84.476.784 1.1z"}))},success:function(t){return X.createElement(mh,{...t},X.createElement("path",{d:"M12 0a12 12 0 1012 12A12.014 12.014 0 0012 0zm6.927 8.2l-6.845 9.289a1.011 1.011 0 01-1.43.188l-4.888-3.908a1 1 0 111.25-1.562l4.076 3.261 6.227-8.451a1 1 0 111.61 1.183z"}))},error:function(t){return X.createElement(mh,{...t},X.createElement("path",{d:"M11.983 0a12.206 12.206 0 00-8.51 3.653A11.8 11.8 0 000 12.207 11.779 11.779 0 0011.8 24h.214A12.111 12.111 0 0024 11.791 11.766 11.766 0 0011.983 0zM10.5 16.542a1.476 1.476 0 011.449-1.53h.027a1.527 1.527 0 011.523 1.47 1.475 1.475 0 01-1.449 1.53h-.027a1.529 1.529 0 01-1.523-1.47zM11 12.5v-6a1 1 0 012 0v6a1 1 0 11-2 0z"}))},spinner:function(){return X.createElement("div",{className:"Toastify__spinner"})}},$2=t=>{const{isRunning:e,preventExitTransition:n,toastRef:r,eventHandlers:i,playToast:o}=L2(t),{closeButton:a,children:c,autoClose:d,onClick:p,type:w,hideProgressBar:m,closeToast:T,transition:E,position:A,className:I,style:j,bodyClassName:_,bodyStyle:U,progressClassName:G,progressStyle:re,updateId:q,role:se,progress:S,rtl:ue,toastId:ae,deleteToast:Ue,isIn:nt,isLoading:et,closeOnClick:De,theme:Me}=t,fe=bl("Toastify__toast",`Toastify__toast-theme--${Me}`,`Toastify__toast--${w}`,{"Toastify__toast--rtl":ue},{"Toastify__toast--close-on-click":De}),me=Zo(I)?I({rtl:ue,position:A,type:w,defaultClassName:fe}):bl(fe,I),Pe=function(Se){let{theme:je,type:Qe,isLoading:Ye,icon:Ke}=Se,qe=null;const ot={theme:je,type:Qe};return Ke===!1||(Zo(Ke)?qe=Ke({...ot,isLoading:Ye}):X.isValidElement(Ke)?qe=X.cloneElement(Ke,ot):Ye?qe=_g.spinner():(ct=>ct in _g)(Qe)&&(qe=_g[Qe](ot))),qe}(t),Be=!!S||!d,Ze={closeToast:T,type:w,theme:Me};let ve=null;return a===!1||(ve=Zo(a)?a(Ze):X.isValidElement(a)?X.cloneElement(a,Ze):function(Se){let{closeToast:je,theme:Qe,ariaLabel:Ye="close"}=Se;return X.createElement("button",{className:`Toastify__close-button Toastify__close-button--${Qe}`,type:"button",onClick:Ke=>{Ke.stopPropagation(),je(Ke)},"aria-label":Ye},X.createElement("svg",{"aria-hidden":"true",viewBox:"0 0 14 16"},X.createElement("path",{fillRule:"evenodd",d:"M7.71 8.23l3.75 3.75-1.48 1.48-3.75-3.75-3.75 3.75L1 11.98l3.75-3.75L1 4.48 2.48 3l3.75 3.75L9.98 3l1.48 1.48-3.75 3.75z"})))}(Ze)),X.createElement(E,{isIn:nt,done:Ue,position:A,preventExitTransition:n,nodeRef:r,playToast:o},X.createElement("div",{id:ae,onClick:p,"data-in":nt,className:me,...i,style:j,ref:r},X.createElement("div",{...nt&&{role:se},className:Zo(_)?_({type:w}):bl("Toastify__toast-body",_),style:U},Pe!=null&&X.createElement("div",{className:bl("Toastify__toast-icon",{"Toastify--animate-icon Toastify__zoom-enter":!et})},Pe),X.createElement("div",null,c)),ve,X.createElement(F2,{...q&&!Be?{key:`pb-${q}`}:{},rtl:ue,theme:Me,delay:d,isRunning:e,isIn:nt,closeToast:T,hide:m,type:w,style:re,className:G,controlledProgress:Be,progress:S||0})))},Dp=function(t,e){return e===void 0&&(e=!1),{enter:`Toastify--animate Toastify__${t}-enter`,exit:`Toastify--animate Toastify__${t}-exit`,appendPosition:e}},V2=kp(Dp("bounce",!0));kp(Dp("slide",!0));kp(Dp("zoom"));kp(Dp("flip"));const H2={position:"top-right",transition:V2,autoClose:5e3,closeButton:!0,pauseOnHover:!0,pauseOnFocusLoss:!0,draggable:"touch",draggablePercent:80,draggableDirection:"x",role:"alert",theme:"light"};function U2(t){let e={...H2,...t};const n=t.stacked,[r,i]=X.useState(!0),o=X.useRef(null),{getToastToRender:a,isToastActive:c,count:d}=M2(e),{className:p,style:w,rtl:m,containerId:T}=e;function E(I){const j=bl("Toastify__toast-container",`Toastify__toast-container--${I}`,{"Toastify__toast-container--rtl":m});return Zo(p)?p({position:I,rtl:m,defaultClassName:j}):bl(j,Lh(p))}function A(){n&&(i(!0),xn.play())}return B2(()=>{if(n){var I;const j=o.current.querySelectorAll('[data-in="true"]'),_=12,U=(I=e.position)==null?void 0:I.includes("top");let G=0,re=0;Array.from(j).reverse().forEach((q,se)=>{const S=q;S.classList.add("Toastify__toast--stacked"),se>0&&(S.dataset.collapsed=`${r}`),S.dataset.pos||(S.dataset.pos=U?"top":"bot");const ue=G*(r?.2:1)+(r?0:_*se);S.style.setProperty("--y",`${U?ue:-1*ue}px`),S.style.setProperty("--g",`${_}`),S.style.setProperty("--s",""+(1-(r?re:0))),G+=S.offsetHeight,re+=.025})}},[r,d,n]),X.createElement("div",{ref:o,className:"Toastify",id:T,onMouseEnter:()=>{n&&(i(!1),xn.pause())},onMouseLeave:A},a((I,j)=>{const _=j.length?{...w}:{...w,pointerEvents:"none"};return X.createElement("div",{className:E(I),style:_,key:`container-${I}`},j.map(U=>{let{content:G,props:re}=U;return X.createElement($2,{...re,stacked:n,collapseAll:A,isIn:c(re.toastId,re.containerId),style:re.style,key:`toast-${re.key}`},G)}))}))}function W2(){return Re.jsxs("svg",{width:"22",height:"22",viewBox:"0 0 22 22",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[Re.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11 1C16.5222 1 21 5.47676 21 11C21 16.5222 16.5222 21 11 21C5.47676 21 1 16.5222 1 11C1 5.47676 5.47676 1 11 1Z",stroke:"#E01B00",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),Re.jsx("path",{d:"M10.9942 6.89636V11.6737",stroke:"#E01B00",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),Re.jsx("path",{d:"M10.9941 15.1038H11.0049",stroke:"#E01B00",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]})}function z2(){return Re.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[Re.jsx("rect",{width:"24",height:"24",rx:"12",fill:"#009D4F"}),Re.jsx("path",{d:"M7.25244 12L10.4174 15.165L16.7474 8.83496",stroke:"white",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]})}function Y2(){return Re.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[Re.jsx("path",{d:"M12 7.73684V13.4211M12 21C7.69215 21 5.53823 21 4.29308 20.0953C3.20701 19.3063 2.50676 18.0934 2.36643 16.7583C2.20555 15.2276 3.28252 13.3623 5.43644 9.63158C7.59036 5.90088 8.66732 4.03553 10.0734 3.40952C11.2998 2.86349 12.7002 2.86349 13.9266 3.40952C15.3327 4.03553 16.4096 5.90088 18.5636 9.63158C20.7175 13.3623 21.7944 15.2276 21.6336 16.7583C21.4932 18.0934 20.793 19.3063 19.7069 20.0953C18.4618 21 16.3078 21 12 21Z",stroke:"#FFB600","stroke-width":"1.5","stroke-linecap":"round"}),Re.jsx("path",{d:"M12.9473 16.263C12.9473 16.7863 12.5232 17.2104 12 17.2104C11.4768 17.2104 11.0526 16.7863 11.0526 16.263C11.0526 15.7398 11.4768 15.3157 12 15.3157C12.5232 15.3157 12.9473 15.7398 12.9473 16.263Z",fill:"#FFB600"})]})}const Wv={paddingLeft:"16px",borderLeft:"2px solid",boxShadow:"none",fontFamily:"inherit"},G2=({closeToast:t})=>Re.jsx("i",{className:"material-icons",onClick:t,style:{cursor:"pointer"},children:Re.jsx("svg",{width:"24",height:"25",viewBox:"0 0 24 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:Re.jsx("path",{d:"M7.05086 6.13616C6.66033 5.74563 6.02717 5.74563 5.63664 6.13616C5.24612 6.52668 5.24612 7.15984 5.63664 7.55037L10.5864 12.5001L5.63664 17.4499C5.24612 17.8404 5.24612 18.4736 5.63664 18.8641C6.02717 19.2546 6.66033 19.2546 7.05086 18.8641L12.0006 13.9143L16.9504 18.8641C17.3409 19.2546 17.974 19.2546 18.3646 18.8641C18.7551 18.4736 18.7551 17.8404 18.3646 17.4499L13.4148 12.5001L18.3646 7.55037C18.7551 7.15984 18.7551 6.52668 18.3646 6.13616C17.974 5.74563 17.3409 5.74563 16.9504 6.13616L12.0006 11.0859L7.05086 6.13616Z",fill:"#85858A"})})}),zv=(t,e)=>{xn.success(t,{icon:Re.jsx(z2,{}),bodyStyle:{},position:"bottom-right",style:{...Wv,background:ki.successLight,borderColor:ki.success,color:ki.success},...e})},Wd=(t,e)=>{xn.error(t,{icon:Re.jsx(W2,{}),position:"bottom-right",style:{...Wv,background:ki.dangerLight,borderColor:ki.danger,color:ki.danger},...e})},q2=(t,e)=>{xn.error(t,{icon:Re.jsx(Y2,{}),position:"bottom-right",style:{...Wv,background:ki.warningLight,borderColor:ki.warning,color:ki.warning},...e})},X2=t=>{xn(t,{closeButton:G2,toastId:"notify",position:"top-right",hideProgressBar:!0,containerId:"toastifyNotification",style:{padding:"12px 24px 12px 0",paddingLeft:"16px",fontFamily:"inherit",width:"610px",minHeight:"72px",color:ki.textPrimary}})};function GT(t){let e=null;return()=>(e==null&&(e=t()),e)}function K2(t,e){return t.filter(n=>n!==e)}function Z2(t,e){const n=new Set,r=o=>n.add(o);t.forEach(r),e.forEach(r);const i=[];return n.forEach(o=>i.push(o)),i}class J2{enter(e){const n=this.entered.length,r=i=>this.isNodeInDocument(i)&&(!i.contains||i.contains(e));return this.entered=Z2(this.entered.filter(r),[e]),n===0&&this.entered.length>0}leave(e){const n=this.entered.length;return this.entered=K2(this.entered.filter(this.isNodeInDocument),e),n>0&&this.entered.length===0}reset(){this.entered=[]}constructor(e){this.entered=[],this.isNodeInDocument=e}}class Q2{initializeExposedProperties(){Object.keys(this.config.exposeProperties).forEach(e=>{Object.defineProperty(this.item,e,{configurable:!0,enumerable:!0,get(){return console.warn(`Browser doesn't allow reading "${e}" until the drop event.`),null}})})}loadDataTransfer(e){if(e){const n={};Object.keys(this.config.exposeProperties).forEach(r=>{const i=this.config.exposeProperties[r];i!=null&&(n[r]={value:i(e,this.config.matchesTypes),configurable:!0,enumerable:!0})}),Object.defineProperties(this.item,n)}}canDrag(){return!0}beginDrag(){return this.item}isDragging(e,n){return n===e.getSourceId()}endDrag(){}constructor(e){this.config=e,this.item={},this.initializeExposedProperties()}}const qT="__NATIVE_FILE__",XT="__NATIVE_URL__",KT="__NATIVE_TEXT__",ZT="__NATIVE_HTML__",aw=Object.freeze(Object.defineProperty({__proto__:null,FILE:qT,HTML:ZT,TEXT:KT,URL:XT},Symbol.toStringTag,{value:"Module"}));function Rg(t,e,n){const r=e.reduce((i,o)=>i||t.getData(o),"");return r??n}const Fm={[qT]:{exposeProperties:{files:t=>Array.prototype.slice.call(t.files),items:t=>t.items,dataTransfer:t=>t},matchesTypes:["Files"]},[ZT]:{exposeProperties:{html:(t,e)=>Rg(t,e,""),dataTransfer:t=>t},matchesTypes:["Html","text/html"]},[XT]:{exposeProperties:{urls:(t,e)=>Rg(t,e,"").split(`
4
+ `),dataTransfer:t=>t},matchesTypes:["Url","text/uri-list"]},[KT]:{exposeProperties:{text:(t,e)=>Rg(t,e,""),dataTransfer:t=>t},matchesTypes:["Text","text/plain"]}};function eF(t,e){const n=Fm[t];if(!n)throw new Error(`native type ${t} has no configuration`);const r=new Q2(n);return r.loadDataTransfer(e),r}function Ag(t){if(!t)return null;const e=Array.prototype.slice.call(t.types||[]);return Object.keys(Fm).filter(n=>{const r=Fm[n];return r!=null&&r.matchesTypes?r.matchesTypes.some(i=>e.indexOf(i)>-1):!1})[0]||null}const tF=GT(()=>/firefox/i.test(navigator.userAgent)),JT=GT(()=>!!window.safari);class lw{interpolate(e){const{xs:n,ys:r,c1s:i,c2s:o,c3s:a}=this;let c=n.length-1;if(e===n[c])return r[c];let d=0,p=a.length-1,w;for(;d<=p;){w=Math.floor(.5*(d+p));const E=n[w];if(E<e)d=w+1;else if(E>e)p=w-1;else return r[w]}c=Math.max(0,p);const m=e-n[c],T=m*m;return r[c]+i[c]*m+o[c]*T+a[c]*m*T}constructor(e,n){const{length:r}=e,i=[];for(let E=0;E<r;E++)i.push(E);i.sort((E,A)=>e[E]<e[A]?-1:1);const o=[],a=[];let c,d;for(let E=0;E<r-1;E++)c=e[E+1]-e[E],d=n[E+1]-n[E],o.push(c),a.push(d/c);const p=[a[0]];for(let E=0;E<o.length-1;E++){const A=a[E],I=a[E+1];if(A*I<=0)p.push(0);else{c=o[E];const j=o[E+1],_=c+j;p.push(3*_/((_+j)/A+(_+c)/I))}}p.push(a[a.length-1]);const w=[],m=[];let T;for(let E=0;E<p.length-1;E++){T=a[E];const A=p[E],I=1/o[E],j=A+p[E+1]-T-T;w.push((T-A-j)*I),m.push(j*I*I)}this.xs=e,this.ys=n,this.c1s=p,this.c2s=w,this.c3s=m}}const nF=1;function QT(t){const e=t.nodeType===nF?t:t.parentElement;if(!e)return null;const{top:n,left:r}=e.getBoundingClientRect();return{x:r,y:n}}function vh(t){return{x:t.clientX,y:t.clientY}}function rF(t){var e;return t.nodeName==="IMG"&&(tF()||!(!((e=document.documentElement)===null||e===void 0)&&e.contains(t)))}function iF(t,e,n,r){let i=t?e.width:n,o=t?e.height:r;return JT()&&t&&(o/=window.devicePixelRatio,i/=window.devicePixelRatio),{dragPreviewWidth:i,dragPreviewHeight:o}}function oF(t,e,n,r,i){const o=rF(e),c=QT(o?t:e),d={x:n.x-c.x,y:n.y-c.y},{offsetWidth:p,offsetHeight:w}=t,{anchorX:m,anchorY:T}=r,{dragPreviewWidth:E,dragPreviewHeight:A}=iF(o,e,p,w),I=()=>{let se=new lw([0,.5,1],[d.y,d.y/w*A,d.y+A-w]).interpolate(T);return JT()&&o&&(se+=(window.devicePixelRatio-1)*A),se},j=()=>new lw([0,.5,1],[d.x,d.x/p*E,d.x+E-p]).interpolate(m),{offsetX:_,offsetY:U}=i,G=_===0||_,re=U===0||U;return{x:G?_:j(),y:re?U:I()}}let sF=class{get window(){if(this.globalContext)return this.globalContext;if(typeof window<"u")return window}get document(){var e;return!((e=this.globalContext)===null||e===void 0)&&e.document?this.globalContext.document:this.window?this.window.document:void 0}get rootElement(){var e;return((e=this.optionsArgs)===null||e===void 0?void 0:e.rootElement)||this.window}constructor(e,n){this.ownerDocument=null,this.globalContext=e,this.optionsArgs=n}};function aF(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function uw(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable}))),r.forEach(function(i){aF(t,i,n[i])})}return t}class lF{profile(){var e,n;return{sourcePreviewNodes:this.sourcePreviewNodes.size,sourcePreviewNodeOptions:this.sourcePreviewNodeOptions.size,sourceNodeOptions:this.sourceNodeOptions.size,sourceNodes:this.sourceNodes.size,dragStartSourceIds:((e=this.dragStartSourceIds)===null||e===void 0?void 0:e.length)||0,dropTargetIds:this.dropTargetIds.length,dragEnterTargetIds:this.dragEnterTargetIds.length,dragOverTargetIds:((n=this.dragOverTargetIds)===null||n===void 0?void 0:n.length)||0}}get window(){return this.options.window}get document(){return this.options.document}get rootElement(){return this.options.rootElement}setup(){const e=this.rootElement;if(e!==void 0){if(e.__isReactDndBackendSetUp)throw new Error("Cannot have two HTML5 backends at the same time.");e.__isReactDndBackendSetUp=!0,this.addEventListeners(e)}}teardown(){const e=this.rootElement;if(e!==void 0&&(e.__isReactDndBackendSetUp=!1,this.removeEventListeners(this.rootElement),this.clearCurrentDragSourceNode(),this.asyncEndDragFrameId)){var n;(n=this.window)===null||n===void 0||n.cancelAnimationFrame(this.asyncEndDragFrameId)}}connectDragPreview(e,n,r){return this.sourcePreviewNodeOptions.set(e,r),this.sourcePreviewNodes.set(e,n),()=>{this.sourcePreviewNodes.delete(e),this.sourcePreviewNodeOptions.delete(e)}}connectDragSource(e,n,r){this.sourceNodes.set(e,n),this.sourceNodeOptions.set(e,r);const i=a=>this.handleDragStart(a,e),o=a=>this.handleSelectStart(a);return n.setAttribute("draggable","true"),n.addEventListener("dragstart",i),n.addEventListener("selectstart",o),()=>{this.sourceNodes.delete(e),this.sourceNodeOptions.delete(e),n.removeEventListener("dragstart",i),n.removeEventListener("selectstart",o),n.setAttribute("draggable","false")}}connectDropTarget(e,n){const r=a=>this.handleDragEnter(a,e),i=a=>this.handleDragOver(a,e),o=a=>this.handleDrop(a,e);return n.addEventListener("dragenter",r),n.addEventListener("dragover",i),n.addEventListener("drop",o),()=>{n.removeEventListener("dragenter",r),n.removeEventListener("dragover",i),n.removeEventListener("drop",o)}}addEventListeners(e){e.addEventListener&&(e.addEventListener("dragstart",this.handleTopDragStart),e.addEventListener("dragstart",this.handleTopDragStartCapture,!0),e.addEventListener("dragend",this.handleTopDragEndCapture,!0),e.addEventListener("dragenter",this.handleTopDragEnter),e.addEventListener("dragenter",this.handleTopDragEnterCapture,!0),e.addEventListener("dragleave",this.handleTopDragLeaveCapture,!0),e.addEventListener("dragover",this.handleTopDragOver),e.addEventListener("dragover",this.handleTopDragOverCapture,!0),e.addEventListener("drop",this.handleTopDrop),e.addEventListener("drop",this.handleTopDropCapture,!0))}removeEventListeners(e){e.removeEventListener&&(e.removeEventListener("dragstart",this.handleTopDragStart),e.removeEventListener("dragstart",this.handleTopDragStartCapture,!0),e.removeEventListener("dragend",this.handleTopDragEndCapture,!0),e.removeEventListener("dragenter",this.handleTopDragEnter),e.removeEventListener("dragenter",this.handleTopDragEnterCapture,!0),e.removeEventListener("dragleave",this.handleTopDragLeaveCapture,!0),e.removeEventListener("dragover",this.handleTopDragOver),e.removeEventListener("dragover",this.handleTopDragOverCapture,!0),e.removeEventListener("drop",this.handleTopDrop),e.removeEventListener("drop",this.handleTopDropCapture,!0))}getCurrentSourceNodeOptions(){const e=this.monitor.getSourceId(),n=this.sourceNodeOptions.get(e);return uw({dropEffect:this.altKeyPressed?"copy":"move"},n||{})}getCurrentDropEffect(){return this.isDraggingNativeItem()?"copy":this.getCurrentSourceNodeOptions().dropEffect}getCurrentSourcePreviewNodeOptions(){const e=this.monitor.getSourceId(),n=this.sourcePreviewNodeOptions.get(e);return uw({anchorX:.5,anchorY:.5,captureDraggingState:!1},n||{})}isDraggingNativeItem(){const e=this.monitor.getItemType();return Object.keys(aw).some(n=>aw[n]===e)}beginDragNativeItem(e,n){this.clearCurrentDragSourceNode(),this.currentNativeSource=eF(e,n),this.currentNativeHandle=this.registry.addSource(e,this.currentNativeSource),this.actions.beginDrag([this.currentNativeHandle])}setCurrentDragSourceNode(e){this.clearCurrentDragSourceNode(),this.currentDragSourceNode=e;const n=1e3;this.mouseMoveTimeoutTimer=setTimeout(()=>{var r;return(r=this.rootElement)===null||r===void 0?void 0:r.addEventListener("mousemove",this.endDragIfSourceWasRemovedFromDOM,!0)},n)}clearCurrentDragSourceNode(){if(this.currentDragSourceNode){if(this.currentDragSourceNode=null,this.rootElement){var e;(e=this.window)===null||e===void 0||e.clearTimeout(this.mouseMoveTimeoutTimer||void 0),this.rootElement.removeEventListener("mousemove",this.endDragIfSourceWasRemovedFromDOM,!0)}return this.mouseMoveTimeoutTimer=null,!0}return!1}handleDragStart(e,n){e.defaultPrevented||(this.dragStartSourceIds||(this.dragStartSourceIds=[]),this.dragStartSourceIds.unshift(n))}handleDragEnter(e,n){this.dragEnterTargetIds.unshift(n)}handleDragOver(e,n){this.dragOverTargetIds===null&&(this.dragOverTargetIds=[]),this.dragOverTargetIds.unshift(n)}handleDrop(e,n){this.dropTargetIds.unshift(n)}constructor(e,n,r){this.sourcePreviewNodes=new Map,this.sourcePreviewNodeOptions=new Map,this.sourceNodes=new Map,this.sourceNodeOptions=new Map,this.dragStartSourceIds=null,this.dropTargetIds=[],this.dragEnterTargetIds=[],this.currentNativeSource=null,this.currentNativeHandle=null,this.currentDragSourceNode=null,this.altKeyPressed=!1,this.mouseMoveTimeoutTimer=null,this.asyncEndDragFrameId=null,this.dragOverTargetIds=null,this.lastClientOffset=null,this.hoverRafId=null,this.getSourceClientOffset=i=>{const o=this.sourceNodes.get(i);return o&&QT(o)||null},this.endDragNativeItem=()=>{this.isDraggingNativeItem()&&(this.actions.endDrag(),this.currentNativeHandle&&this.registry.removeSource(this.currentNativeHandle),this.currentNativeHandle=null,this.currentNativeSource=null)},this.isNodeInDocument=i=>!!(i&&this.document&&this.document.body&&this.document.body.contains(i)),this.endDragIfSourceWasRemovedFromDOM=()=>{const i=this.currentDragSourceNode;i==null||this.isNodeInDocument(i)||(this.clearCurrentDragSourceNode()&&this.monitor.isDragging()&&this.actions.endDrag(),this.cancelHover())},this.scheduleHover=i=>{this.hoverRafId===null&&typeof requestAnimationFrame<"u"&&(this.hoverRafId=requestAnimationFrame(()=>{this.monitor.isDragging()&&this.actions.hover(i||[],{clientOffset:this.lastClientOffset}),this.hoverRafId=null}))},this.cancelHover=()=>{this.hoverRafId!==null&&typeof cancelAnimationFrame<"u"&&(cancelAnimationFrame(this.hoverRafId),this.hoverRafId=null)},this.handleTopDragStartCapture=()=>{this.clearCurrentDragSourceNode(),this.dragStartSourceIds=[]},this.handleTopDragStart=i=>{if(i.defaultPrevented)return;const{dragStartSourceIds:o}=this;this.dragStartSourceIds=null;const a=vh(i);this.monitor.isDragging()&&(this.actions.endDrag(),this.cancelHover()),this.actions.beginDrag(o||[],{publishSource:!1,getSourceClientOffset:this.getSourceClientOffset,clientOffset:a});const{dataTransfer:c}=i,d=Ag(c);if(this.monitor.isDragging()){if(c&&typeof c.setDragImage=="function"){const w=this.monitor.getSourceId(),m=this.sourceNodes.get(w),T=this.sourcePreviewNodes.get(w)||m;if(T){const{anchorX:E,anchorY:A,offsetX:I,offsetY:j}=this.getCurrentSourcePreviewNodeOptions(),G=oF(m,T,a,{anchorX:E,anchorY:A},{offsetX:I,offsetY:j});c.setDragImage(T,G.x,G.y)}}try{c==null||c.setData("application/json",{})}catch{}this.setCurrentDragSourceNode(i.target);const{captureDraggingState:p}=this.getCurrentSourcePreviewNodeOptions();p?this.actions.publishDragSource():setTimeout(()=>this.actions.publishDragSource(),0)}else if(d)this.beginDragNativeItem(d);else{if(c&&!c.types&&(i.target&&!i.target.hasAttribute||!i.target.hasAttribute("draggable")))return;i.preventDefault()}},this.handleTopDragEndCapture=()=>{this.clearCurrentDragSourceNode()&&this.monitor.isDragging()&&this.actions.endDrag(),this.cancelHover()},this.handleTopDragEnterCapture=i=>{if(this.dragEnterTargetIds=[],this.isDraggingNativeItem()){var o;(o=this.currentNativeSource)===null||o===void 0||o.loadDataTransfer(i.dataTransfer)}if(!this.enterLeaveCounter.enter(i.target)||this.monitor.isDragging())return;const{dataTransfer:c}=i,d=Ag(c);d&&this.beginDragNativeItem(d,c)},this.handleTopDragEnter=i=>{const{dragEnterTargetIds:o}=this;if(this.dragEnterTargetIds=[],!this.monitor.isDragging())return;this.altKeyPressed=i.altKey,o.length>0&&this.actions.hover(o,{clientOffset:vh(i)}),o.some(c=>this.monitor.canDropOnTarget(c))&&(i.preventDefault(),i.dataTransfer&&(i.dataTransfer.dropEffect=this.getCurrentDropEffect()))},this.handleTopDragOverCapture=i=>{if(this.dragOverTargetIds=[],this.isDraggingNativeItem()){var o;(o=this.currentNativeSource)===null||o===void 0||o.loadDataTransfer(i.dataTransfer)}},this.handleTopDragOver=i=>{const{dragOverTargetIds:o}=this;if(this.dragOverTargetIds=[],!this.monitor.isDragging()){i.preventDefault(),i.dataTransfer&&(i.dataTransfer.dropEffect="none");return}this.altKeyPressed=i.altKey,this.lastClientOffset=vh(i),this.scheduleHover(o),(o||[]).some(c=>this.monitor.canDropOnTarget(c))?(i.preventDefault(),i.dataTransfer&&(i.dataTransfer.dropEffect=this.getCurrentDropEffect())):this.isDraggingNativeItem()?i.preventDefault():(i.preventDefault(),i.dataTransfer&&(i.dataTransfer.dropEffect="none"))},this.handleTopDragLeaveCapture=i=>{this.isDraggingNativeItem()&&i.preventDefault(),this.enterLeaveCounter.leave(i.target)&&(this.isDraggingNativeItem()&&setTimeout(()=>this.endDragNativeItem(),0),this.cancelHover())},this.handleTopDropCapture=i=>{if(this.dropTargetIds=[],this.isDraggingNativeItem()){var o;i.preventDefault(),(o=this.currentNativeSource)===null||o===void 0||o.loadDataTransfer(i.dataTransfer)}else Ag(i.dataTransfer)&&i.preventDefault();this.enterLeaveCounter.reset()},this.handleTopDrop=i=>{const{dropTargetIds:o}=this;this.dropTargetIds=[],this.actions.hover(o,{clientOffset:vh(i)}),this.actions.drop({dropEffect:this.getCurrentDropEffect()}),this.isDraggingNativeItem()?this.endDragNativeItem():this.monitor.isDragging()&&this.actions.endDrag(),this.cancelHover()},this.handleSelectStart=i=>{const o=i.target;typeof o.dragDrop=="function"&&(o.tagName==="INPUT"||o.tagName==="SELECT"||o.tagName==="TEXTAREA"||o.isContentEditable||(i.preventDefault(),o.dragDrop()))},this.options=new sF(n,r),this.actions=e.getActions(),this.monitor=e.getMonitor(),this.registry=e.getRegistry(),this.enterLeaveCounter=new J2(this.isNodeInDocument)}}let yh;function uF(){return yh||(yh=new Image,yh.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=="),yh}const eC=function(e,n,r){return new lF(e,n,r)};var wc=[],cF=function(){return wc.some(function(t){return t.activeTargets.length>0})},fF=function(){return wc.some(function(t){return t.skippedTargets.length>0})},cw="ResizeObserver loop completed with undelivered notifications.",dF=function(){var t;typeof ErrorEvent=="function"?t=new ErrorEvent("error",{message:cw}):(t=document.createEvent("Event"),t.initEvent("error",!1,!1),t.message=cw),window.dispatchEvent(t)},Rd;(function(t){t.BORDER_BOX="border-box",t.CONTENT_BOX="content-box",t.DEVICE_PIXEL_CONTENT_BOX="device-pixel-content-box"})(Rd||(Rd={}));var xc=function(t){return Object.freeze(t)},hF=function(){function t(e,n){this.inlineSize=e,this.blockSize=n,xc(this)}return t}(),tC=function(){function t(e,n,r,i){return this.x=e,this.y=n,this.width=r,this.height=i,this.top=this.y,this.left=this.x,this.bottom=this.top+this.height,this.right=this.left+this.width,xc(this)}return t.prototype.toJSON=function(){var e=this,n=e.x,r=e.y,i=e.top,o=e.right,a=e.bottom,c=e.left,d=e.width,p=e.height;return{x:n,y:r,top:i,right:o,bottom:a,left:c,width:d,height:p}},t.fromRect=function(e){return new t(e.x,e.y,e.width,e.height)},t}(),Yv=function(t){return t instanceof SVGElement&&"getBBox"in t},nC=function(t){if(Yv(t)){var e=t.getBBox(),n=e.width,r=e.height;return!n&&!r}var i=t,o=i.offsetWidth,a=i.offsetHeight;return!(o||a||t.getClientRects().length)},fw=function(t){var e;if(t instanceof Element)return!0;var n=(e=t==null?void 0:t.ownerDocument)===null||e===void 0?void 0:e.defaultView;return!!(n&&t instanceof n.Element)},pF=function(t){switch(t.tagName){case"INPUT":if(t.type!=="image")break;case"VIDEO":case"AUDIO":case"EMBED":case"OBJECT":case"CANVAS":case"IFRAME":case"IMG":return!0}return!1},md=typeof window<"u"?window:{},bh=new WeakMap,dw=/auto|scroll/,gF=/^tb|vertical/,mF=/msie|trident/i.test(md.navigator&&md.navigator.userAgent),Ma=function(t){return parseFloat(t||"0")},Cf=function(t,e,n){return t===void 0&&(t=0),e===void 0&&(e=0),n===void 0&&(n=!1),new hF((n?e:t)||0,(n?t:e)||0)},hw=xc({devicePixelContentBoxSize:Cf(),borderBoxSize:Cf(),contentBoxSize:Cf(),contentRect:new tC(0,0,0,0)}),rC=function(t,e){if(e===void 0&&(e=!1),bh.has(t)&&!e)return bh.get(t);if(nC(t))return bh.set(t,hw),hw;var n=getComputedStyle(t),r=Yv(t)&&t.ownerSVGElement&&t.getBBox(),i=!mF&&n.boxSizing==="border-box",o=gF.test(n.writingMode||""),a=!r&&dw.test(n.overflowY||""),c=!r&&dw.test(n.overflowX||""),d=r?0:Ma(n.paddingTop),p=r?0:Ma(n.paddingRight),w=r?0:Ma(n.paddingBottom),m=r?0:Ma(n.paddingLeft),T=r?0:Ma(n.borderTopWidth),E=r?0:Ma(n.borderRightWidth),A=r?0:Ma(n.borderBottomWidth),I=r?0:Ma(n.borderLeftWidth),j=m+p,_=d+w,U=I+E,G=T+A,re=c?t.offsetHeight-G-t.clientHeight:0,q=a?t.offsetWidth-U-t.clientWidth:0,se=i?j+U:0,S=i?_+G:0,ue=r?r.width:Ma(n.width)-se-q,ae=r?r.height:Ma(n.height)-S-re,Ue=ue+j+q+U,nt=ae+_+re+G,et=xc({devicePixelContentBoxSize:Cf(Math.round(ue*devicePixelRatio),Math.round(ae*devicePixelRatio),o),borderBoxSize:Cf(Ue,nt,o),contentBoxSize:Cf(ue,ae,o),contentRect:new tC(m,d,ue,ae)});return bh.set(t,et),et},iC=function(t,e,n){var r=rC(t,n),i=r.borderBoxSize,o=r.contentBoxSize,a=r.devicePixelContentBoxSize;switch(e){case Rd.DEVICE_PIXEL_CONTENT_BOX:return a;case Rd.BORDER_BOX:return i;default:return o}},vF=function(){function t(e){var n=rC(e);this.target=e,this.contentRect=n.contentRect,this.borderBoxSize=xc([n.borderBoxSize]),this.contentBoxSize=xc([n.contentBoxSize]),this.devicePixelContentBoxSize=xc([n.devicePixelContentBoxSize])}return t}(),oC=function(t){if(nC(t))return 1/0;for(var e=0,n=t.parentNode;n;)e+=1,n=n.parentNode;return e},yF=function(){var t=1/0,e=[];wc.forEach(function(a){if(a.activeTargets.length!==0){var c=[];a.activeTargets.forEach(function(p){var w=new vF(p.target),m=oC(p.target);c.push(w),p.lastReportedSize=iC(p.target,p.observedBox),m<t&&(t=m)}),e.push(function(){a.callback.call(a.observer,c,a.observer)}),a.activeTargets.splice(0,a.activeTargets.length)}});for(var n=0,r=e;n<r.length;n++){var i=r[n];i()}return t},pw=function(t){wc.forEach(function(n){n.activeTargets.splice(0,n.activeTargets.length),n.skippedTargets.splice(0,n.skippedTargets.length),n.observationTargets.forEach(function(i){i.isActive()&&(oC(i.target)>t?n.activeTargets.push(i):n.skippedTargets.push(i))})})},bF=function(){var t=0;for(pw(t);cF();)t=yF(),pw(t);return fF()&&dF(),t>0},Ig,sC=[],wF=function(){return sC.splice(0).forEach(function(t){return t()})},xF=function(t){if(!Ig){var e=0,n=document.createTextNode(""),r={characterData:!0};new MutationObserver(function(){return wF()}).observe(n,r),Ig=function(){n.textContent="".concat(e?e--:e++)}}sC.push(t),Ig()},SF=function(t){xF(function(){requestAnimationFrame(t)})},Fh=0,TF=function(){return!!Fh},CF=250,EF={attributes:!0,characterData:!0,childList:!0,subtree:!0},gw=["resize","load","transitionend","animationend","animationstart","animationiteration","keyup","keydown","mouseup","mousedown","mouseover","mouseout","blur","focus"],mw=function(t){return t===void 0&&(t=0),Date.now()+t},Mg=!1,kF=function(){function t(){var e=this;this.stopped=!0,this.listener=function(){return e.schedule()}}return t.prototype.run=function(e){var n=this;if(e===void 0&&(e=CF),!Mg){Mg=!0;var r=mw(e);SF(function(){var i=!1;try{i=bF()}finally{if(Mg=!1,e=r-mw(),!TF())return;i?n.run(1e3):e>0?n.run(e):n.start()}})}},t.prototype.schedule=function(){this.stop(),this.run()},t.prototype.observe=function(){var e=this,n=function(){return e.observer&&e.observer.observe(document.body,EF)};document.body?n():md.addEventListener("DOMContentLoaded",n)},t.prototype.start=function(){var e=this;this.stopped&&(this.stopped=!1,this.observer=new MutationObserver(this.listener),this.observe(),gw.forEach(function(n){return md.addEventListener(n,e.listener,!0)}))},t.prototype.stop=function(){var e=this;this.stopped||(this.observer&&this.observer.disconnect(),gw.forEach(function(n){return md.removeEventListener(n,e.listener,!0)}),this.stopped=!0)},t}(),Nm=new kF,vw=function(t){!Fh&&t>0&&Nm.start(),Fh+=t,!Fh&&Nm.stop()},DF=function(t){return!Yv(t)&&!pF(t)&&getComputedStyle(t).display==="inline"},PF=function(){function t(e,n){this.target=e,this.observedBox=n||Rd.CONTENT_BOX,this.lastReportedSize={inlineSize:0,blockSize:0}}return t.prototype.isActive=function(){var e=iC(this.target,this.observedBox,!0);return DF(this.target)&&(this.lastReportedSize=e),this.lastReportedSize.inlineSize!==e.inlineSize||this.lastReportedSize.blockSize!==e.blockSize},t}(),OF=function(){function t(e,n){this.activeTargets=[],this.skippedTargets=[],this.observationTargets=[],this.observer=e,this.callback=n}return t}(),wh=new WeakMap,yw=function(t,e){for(var n=0;n<t.length;n+=1)if(t[n].target===e)return n;return-1},xh=function(){function t(){}return t.connect=function(e,n){var r=new OF(e,n);wh.set(e,r)},t.observe=function(e,n,r){var i=wh.get(e),o=i.observationTargets.length===0;yw(i.observationTargets,n)<0&&(o&&wc.push(i),i.observationTargets.push(new PF(n,r&&r.box)),vw(1),Nm.schedule())},t.unobserve=function(e,n){var r=wh.get(e),i=yw(r.observationTargets,n),o=r.observationTargets.length===1;i>=0&&(o&&wc.splice(wc.indexOf(r),1),r.observationTargets.splice(i,1),vw(-1))},t.disconnect=function(e){var n=this,r=wh.get(e);r.observationTargets.slice().forEach(function(i){return n.unobserve(e,i.target)}),r.activeTargets.splice(0,r.activeTargets.length)},t}(),_F=function(){function t(e){if(arguments.length===0)throw new TypeError("Failed to construct 'ResizeObserver': 1 argument required, but only 0 present.");if(typeof e!="function")throw new TypeError("Failed to construct 'ResizeObserver': The callback provided as parameter 1 is not a function.");xh.connect(this,e)}return t.prototype.observe=function(e,n){if(arguments.length===0)throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!fw(e))throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element");xh.observe(this,e,n)},t.prototype.unobserve=function(e){if(arguments.length===0)throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!fw(e))throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element");xh.unobserve(this,e)},t.prototype.disconnect=function(){xh.disconnect(this)},t.toString=function(){return"function ResizeObserver () { [polyfill code] }"},t}();const aC=X.createContext({});function RF(t){const e=X.useRef(null);return e.current===null&&(e.current=t()),e.current}const Gv=X.createContext(null),lC=X.createContext({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"});function AF(t=!0){const e=X.useContext(Gv);if(e===null)return[!0,null];const{isPresent:n,onExitComplete:r,register:i}=e,o=X.useId();X.useEffect(()=>{t&&i(o)},[t]);const a=X.useCallback(()=>t&&r&&r(o),[o,r,t]);return!n&&r?[!1,a]:[!0]}const qv=typeof window<"u",IF=qv?X.useLayoutEffect:X.useEffect,_o=t=>t;let Mf=_o,vu=_o;process.env.NODE_ENV!=="production"&&(Mf=(t,e)=>{!t&&typeof console<"u"&&console.warn(e)},vu=(t,e)=>{if(!t)throw new Error(e)});function Xv(t){let e;return()=>(e===void 0&&(e=t()),e)}const Df=(t,e,n)=>{const r=e-t;return r===0?1:(n-t)/r},Na=t=>t*1e3,Sl=t=>t/1e3,MF={useManualTiming:!1};function LF(t){let e=new Set,n=new Set,r=!1,i=!1;const o=new WeakSet;let a={delta:0,timestamp:0,isProcessing:!1};function c(p){o.has(p)&&(d.schedule(p),t()),p(a)}const d={schedule:(p,w=!1,m=!1)=>{const E=m&&r?e:n;return w&&o.add(p),E.has(p)||E.add(p),p},cancel:p=>{n.delete(p),o.delete(p)},process:p=>{if(a=p,r){i=!0;return}r=!0,[e,n]=[n,e],e.forEach(c),e.clear(),r=!1,i&&(i=!1,d.process(p))}};return d}const Sh=["read","resolveKeyframes","update","preRender","render","postRender"],FF=40;function uC(t,e){let n=!1,r=!0;const i={delta:0,timestamp:0,isProcessing:!1},o=()=>n=!0,a=Sh.reduce((_,U)=>(_[U]=LF(o),_),{}),{read:c,resolveKeyframes:d,update:p,preRender:w,render:m,postRender:T}=a,E=()=>{const _=performance.now();n=!1,i.delta=r?1e3/60:Math.max(Math.min(_-i.timestamp,FF),1),i.timestamp=_,i.isProcessing=!0,c.process(i),d.process(i),p.process(i),w.process(i),m.process(i),T.process(i),i.isProcessing=!1,n&&e&&(r=!1,t(E))},A=()=>{n=!0,r=!0,i.isProcessing||t(E)};return{schedule:Sh.reduce((_,U)=>{const G=a[U];return _[U]=(re,q=!1,se=!1)=>(n||A(),G.schedule(re,q,se)),_},{}),cancel:_=>{for(let U=0;U<Sh.length;U++)a[Sh[U]].cancel(_)},state:i,steps:a}}const{schedule:Fn,cancel:yu,state:Ci,steps:Lg}=uC(typeof requestAnimationFrame<"u"?requestAnimationFrame:_o,!0),cC=X.createContext({strict:!1}),bw={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},Pf={};for(const t in bw)Pf[t]={isEnabled:e=>bw[t].some(n=>!!e[n])};function NF(t){for(const e in t)Pf[e]={...Pf[e],...t[e]}}const jF=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function np(t){return t.startsWith("while")||t.startsWith("drag")&&t!=="draggable"||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||t.startsWith("onLayout")||jF.has(t)}let fC=t=>!np(t);function BF(t){t&&(fC=e=>e.startsWith("on")?!np(e):t(e))}try{BF(require("@emotion/is-prop-valid").default)}catch{}function $F(t,e,n){const r={};for(const i in t)i==="values"&&typeof t.values=="object"||(fC(i)||n===!0&&np(i)||!e&&!np(i)||t.draggable&&i.startsWith("onDrag"))&&(r[i]=t[i]);return r}const ww=new Set;function Pp(t,e,n){t||ww.has(e)||(console.warn(e),ww.add(e))}function VF(t){if(typeof Proxy>"u")return t;const e=new Map,n=(...r)=>(process.env.NODE_ENV!=="production"&&Pp(!1,"motion() is deprecated. Use motion.create() instead."),t(...r));return new Proxy(n,{get:(r,i)=>i==="create"?t:(e.has(i)||e.set(i,t(i)),e.get(i))})}const Op=X.createContext({});function Ad(t){return typeof t=="string"||Array.isArray(t)}function _p(t){return t!==null&&typeof t=="object"&&typeof t.start=="function"}const Kv=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Zv=["initial",...Kv];function Rp(t){return _p(t.animate)||Zv.some(e=>Ad(t[e]))}function dC(t){return!!(Rp(t)||t.variants)}function HF(t,e){if(Rp(t)){const{initial:n,animate:r}=t;return{initial:n===!1||Ad(n)?n:void 0,animate:Ad(r)?r:void 0}}return t.inherit!==!1?e:{}}function UF(t){const{initial:e,animate:n}=HF(t,X.useContext(Op));return X.useMemo(()=>({initial:e,animate:n}),[xw(e),xw(n)])}function xw(t){return Array.isArray(t)?t.join(" "):t}const WF=Symbol.for("motionComponentSymbol");function pf(t){return t&&typeof t=="object"&&Object.prototype.hasOwnProperty.call(t,"current")}function zF(t,e,n){return X.useCallback(r=>{r&&t.onMount&&t.onMount(r),e&&(r?e.mount(r):e.unmount()),n&&(typeof n=="function"?n(r):pf(n)&&(n.current=r))},[e])}const Jv=t=>t.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),YF="framerAppearId",hC="data-"+Jv(YF),{schedule:Qv}=uC(queueMicrotask,!1),pC=X.createContext({});function GF(t,e,n,r,i){var o,a;const{visualElement:c}=X.useContext(Op),d=X.useContext(cC),p=X.useContext(Gv),w=X.useContext(lC).reducedMotion,m=X.useRef(null);r=r||d.renderer,!m.current&&r&&(m.current=r(t,{visualState:e,parent:c,props:n,presenceContext:p,blockInitialAnimation:p?p.initial===!1:!1,reducedMotionConfig:w}));const T=m.current,E=X.useContext(pC);T&&!T.projection&&i&&(T.type==="html"||T.type==="svg")&&qF(m.current,n,i,E);const A=X.useRef(!1);X.useInsertionEffect(()=>{T&&A.current&&T.update(n,p)});const I=n[hC],j=X.useRef(!!I&&!(!((o=window.MotionHandoffIsComplete)===null||o===void 0)&&o.call(window,I))&&((a=window.MotionHasOptimisedAnimation)===null||a===void 0?void 0:a.call(window,I)));return IF(()=>{T&&(A.current=!0,window.MotionIsMounted=!0,T.updateFeatures(),Qv.render(T.render),j.current&&T.animationState&&T.animationState.animateChanges())}),X.useEffect(()=>{T&&(!j.current&&T.animationState&&T.animationState.animateChanges(),j.current&&(queueMicrotask(()=>{var _;(_=window.MotionHandoffMarkAsComplete)===null||_===void 0||_.call(window,I)}),j.current=!1))}),T}function qF(t,e,n,r){const{layoutId:i,layout:o,drag:a,dragConstraints:c,layoutScroll:d,layoutRoot:p}=e;t.projection=new n(t.latestValues,e["data-framer-portal-id"]?void 0:gC(t.parent)),t.projection.setOptions({layoutId:i,layout:o,alwaysMeasureLayout:!!a||c&&pf(c),visualElement:t,animationType:typeof o=="string"?o:"both",initialPromotionConfig:r,layoutScroll:d,layoutRoot:p})}function gC(t){if(t)return t.options.allowProjection!==!1?t.projection:gC(t.parent)}function XF({preloadedFeatures:t,createVisualElement:e,useRender:n,useVisualState:r,Component:i}){var o,a;t&&NF(t);function c(p,w){let m;const T={...X.useContext(lC),...p,layoutId:KF(p)},{isStatic:E}=T,A=UF(p),I=r(p,E);if(!E&&qv){ZF(T,t);const j=JF(T);m=j.MeasureLayout,A.visualElement=GF(i,I,T,e,j.ProjectionNode)}return Re.jsxs(Op.Provider,{value:A,children:[m&&A.visualElement?Re.jsx(m,{visualElement:A.visualElement,...T}):null,n(i,p,zF(I,A.visualElement,w),I,E,A.visualElement)]})}c.displayName=`motion.${typeof i=="string"?i:`create(${(a=(o=i.displayName)!==null&&o!==void 0?o:i.name)!==null&&a!==void 0?a:""})`}`;const d=X.forwardRef(c);return d[WF]=i,d}function KF({layoutId:t}){const e=X.useContext(aC).id;return e&&t!==void 0?e+"-"+t:t}function ZF(t,e){const n=X.useContext(cC).strict;if(process.env.NODE_ENV!=="production"&&e&&n){const r="You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.";t.ignoreStrict?Mf(!1,r):vu(!1,r)}}function JF(t){const{drag:e,layout:n}=Pf;if(!e&&!n)return{};const r={...e,...n};return{MeasureLayout:e!=null&&e.isEnabled(t)||n!=null&&n.isEnabled(t)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}const QF=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function ey(t){return typeof t!="string"||t.includes("-")?!1:!!(QF.indexOf(t)>-1||/[A-Z]/u.test(t))}function Sw(t){const e=[{},{}];return t==null||t.values.forEach((n,r)=>{e[0][r]=n.get(),e[1][r]=n.getVelocity()}),e}function ty(t,e,n,r){if(typeof e=="function"){const[i,o]=Sw(r);e=e(n!==void 0?n:t.custom,i,o)}if(typeof e=="string"&&(e=t.variants&&t.variants[e]),typeof e=="function"){const[i,o]=Sw(r);e=e(n!==void 0?n:t.custom,i,o)}return e}const jm=t=>Array.isArray(t),eN=t=>!!(t&&typeof t=="object"&&t.mix&&t.toValue),tN=t=>jm(t)?t[t.length-1]||0:t,ji=t=>!!(t&&t.getVelocity);function Nh(t){const e=ji(t)?t.get():t;return eN(e)?e.toValue():e}function nN({scrapeMotionValuesFromProps:t,createRenderState:e,onUpdate:n},r,i,o){const a={latestValues:rN(r,i,o,t),renderState:e()};return n&&(a.onMount=c=>n({props:r,current:c,...a}),a.onUpdate=c=>n(c)),a}const mC=t=>(e,n)=>{const r=X.useContext(Op),i=X.useContext(Gv),o=()=>nN(t,e,r,i);return n?o():RF(o)};function rN(t,e,n,r){const i={},o=r(t,{});for(const T in o)i[T]=Nh(o[T]);let{initial:a,animate:c}=t;const d=Rp(t),p=dC(t);e&&p&&!d&&t.inherit!==!1&&(a===void 0&&(a=e.initial),c===void 0&&(c=e.animate));let w=n?n.initial===!1:!1;w=w||a===!1;const m=w?c:a;if(m&&typeof m!="boolean"&&!_p(m)){const T=Array.isArray(m)?m:[m];for(let E=0;E<T.length;E++){const A=ty(t,T[E]);if(A){const{transitionEnd:I,transition:j,..._}=A;for(const U in _){let G=_[U];if(Array.isArray(G)){const re=w?G.length-1:0;G=G[re]}G!==null&&(i[U]=G)}for(const U in I)i[U]=I[U]}}}return i}const Lf=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],_c=new Set(Lf),vC=t=>e=>typeof e=="string"&&e.startsWith(t),yC=vC("--"),iN=vC("var(--"),ny=t=>iN(t)?oN.test(t.split("/*")[0].trim()):!1,oN=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,bC=(t,e)=>e&&typeof t=="number"?e.transform(t):t,kl=(t,e,n)=>n>e?e:n<t?t:n,Ff={test:t=>typeof t=="number",parse:parseFloat,transform:t=>t},Id={...Ff,transform:t=>kl(0,1,t)},Th={...Ff,default:1},zd=t=>({test:e=>typeof e=="string"&&e.endsWith(t)&&e.split(" ").length===1,parse:parseFloat,transform:e=>`${e}${t}`}),ou=zd("deg"),ja=zd("%"),Ot=zd("px"),sN=zd("vh"),aN=zd("vw"),Tw={...ja,parse:t=>ja.parse(t)/100,transform:t=>ja.transform(t*100)},lN={borderWidth:Ot,borderTopWidth:Ot,borderRightWidth:Ot,borderBottomWidth:Ot,borderLeftWidth:Ot,borderRadius:Ot,radius:Ot,borderTopLeftRadius:Ot,borderTopRightRadius:Ot,borderBottomRightRadius:Ot,borderBottomLeftRadius:Ot,width:Ot,maxWidth:Ot,height:Ot,maxHeight:Ot,top:Ot,right:Ot,bottom:Ot,left:Ot,padding:Ot,paddingTop:Ot,paddingRight:Ot,paddingBottom:Ot,paddingLeft:Ot,margin:Ot,marginTop:Ot,marginRight:Ot,marginBottom:Ot,marginLeft:Ot,backgroundPositionX:Ot,backgroundPositionY:Ot},uN={rotate:ou,rotateX:ou,rotateY:ou,rotateZ:ou,scale:Th,scaleX:Th,scaleY:Th,scaleZ:Th,skew:ou,skewX:ou,skewY:ou,distance:Ot,translateX:Ot,translateY:Ot,translateZ:Ot,x:Ot,y:Ot,z:Ot,perspective:Ot,transformPerspective:Ot,opacity:Id,originX:Tw,originY:Tw,originZ:Ot},Cw={...Ff,transform:Math.round},ry={...lN,...uN,zIndex:Cw,size:Ot,fillOpacity:Id,strokeOpacity:Id,numOctaves:Cw},cN={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},fN=Lf.length;function dN(t,e,n){let r="",i=!0;for(let o=0;o<fN;o++){const a=Lf[o],c=t[a];if(c===void 0)continue;let d=!0;if(typeof c=="number"?d=c===(a.startsWith("scale")?1:0):d=parseFloat(c)===0,!d||n){const p=bC(c,ry[a]);if(!d){i=!1;const w=cN[a]||a;r+=`${w}(${p}) `}n&&(e[a]=p)}}return r=r.trim(),n?r=n(e,i?"":r):i&&(r="none"),r}function iy(t,e,n){const{style:r,vars:i,transformOrigin:o}=t;let a=!1,c=!1;for(const d in e){const p=e[d];if(_c.has(d)){a=!0;continue}else if(yC(d)){i[d]=p;continue}else{const w=bC(p,ry[d]);d.startsWith("origin")?(c=!0,o[d]=w):r[d]=w}}if(e.transform||(a||n?r.transform=dN(e,t.transform,n):r.transform&&(r.transform="none")),c){const{originX:d="50%",originY:p="50%",originZ:w=0}=o;r.transformOrigin=`${d} ${p} ${w}`}}const hN={offset:"stroke-dashoffset",array:"stroke-dasharray"},pN={offset:"strokeDashoffset",array:"strokeDasharray"};function gN(t,e,n=1,r=0,i=!0){t.pathLength=1;const o=i?hN:pN;t[o.offset]=Ot.transform(-r);const a=Ot.transform(e),c=Ot.transform(n);t[o.array]=`${a} ${c}`}function Ew(t,e,n){return typeof t=="string"?t:Ot.transform(e+n*t)}function mN(t,e,n){const r=Ew(e,t.x,t.width),i=Ew(n,t.y,t.height);return`${r} ${i}`}function oy(t,{attrX:e,attrY:n,attrScale:r,originX:i,originY:o,pathLength:a,pathSpacing:c=1,pathOffset:d=0,...p},w,m){if(iy(t,p,m),w){t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox);return}t.attrs=t.style,t.style={};const{attrs:T,style:E,dimensions:A}=t;T.transform&&(A&&(E.transform=T.transform),delete T.transform),A&&(i!==void 0||o!==void 0||E.transform)&&(E.transformOrigin=mN(A,i!==void 0?i:.5,o!==void 0?o:.5)),e!==void 0&&(T.x=e),n!==void 0&&(T.y=n),r!==void 0&&(T.scale=r),a!==void 0&&gN(T,a,c,d,!1)}const sy=()=>({style:{},transform:{},transformOrigin:{},vars:{}}),wC=()=>({...sy(),attrs:{}}),ay=t=>typeof t=="string"&&t.toLowerCase()==="svg";function xC(t,{style:e,vars:n},r,i){Object.assign(t.style,e,i&&i.getProjectionStyles(r));for(const o in n)t.style.setProperty(o,n[o])}const SC=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function TC(t,e,n,r){xC(t,e,void 0,r);for(const i in e.attrs)t.setAttribute(SC.has(i)?i:Jv(i),e.attrs[i])}const rp={};function vN(t){Object.assign(rp,t)}function CC(t,{layout:e,layoutId:n}){return _c.has(t)||t.startsWith("origin")||(e||n!==void 0)&&(!!rp[t]||t==="opacity")}function ly(t,e,n){var r;const{style:i}=t,o={};for(const a in i)(ji(i[a])||e.style&&ji(e.style[a])||CC(a,t)||((r=n==null?void 0:n.getValue(a))===null||r===void 0?void 0:r.liveStyle)!==void 0)&&(o[a]=i[a]);return o}function EC(t,e,n){const r=ly(t,e,n);for(const i in t)if(ji(t[i])||ji(e[i])){const o=Lf.indexOf(i)!==-1?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i;r[o]=t[i]}return r}function yN(t,e){try{e.dimensions=typeof t.getBBox=="function"?t.getBBox():t.getBoundingClientRect()}catch{e.dimensions={x:0,y:0,width:0,height:0}}}const kw=["x","y","width","height","cx","cy","r"],bN={useVisualState:mC({scrapeMotionValuesFromProps:EC,createRenderState:wC,onUpdate:({props:t,prevProps:e,current:n,renderState:r,latestValues:i})=>{if(!n)return;let o=!!t.drag;if(!o){for(const c in i)if(_c.has(c)){o=!0;break}}if(!o)return;let a=!e;if(e)for(let c=0;c<kw.length;c++){const d=kw[c];t[d]!==e[d]&&(a=!0)}a&&Fn.read(()=>{yN(n,r),Fn.render(()=>{oy(r,i,ay(n.tagName),t.transformTemplate),TC(n,r)})})}})},wN={useVisualState:mC({scrapeMotionValuesFromProps:ly,createRenderState:sy})};function kC(t,e,n){for(const r in e)!ji(e[r])&&!CC(r,n)&&(t[r]=e[r])}function xN({transformTemplate:t},e){return X.useMemo(()=>{const n=sy();return iy(n,e,t),Object.assign({},n.vars,n.style)},[e])}function SN(t,e){const n=t.style||{},r={};return kC(r,n,t),Object.assign(r,xN(t,e)),r}function TN(t,e){const n={},r=SN(t,e);return t.drag&&t.dragListener!==!1&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.touchAction=t.drag===!0?"none":`pan-${t.drag==="x"?"y":"x"}`),t.tabIndex===void 0&&(t.onTap||t.onTapStart||t.whileTap)&&(n.tabIndex=0),n.style=r,n}function CN(t,e,n,r){const i=X.useMemo(()=>{const o=wC();return oy(o,e,ay(r),t.transformTemplate),{...o.attrs,style:{...o.style}}},[e]);if(t.style){const o={};kC(o,t.style,t),i.style={...o,...i.style}}return i}function EN(t=!1){return(n,r,i,{latestValues:o},a)=>{const d=(ey(n)?CN:TN)(r,o,a,n),p=$F(r,typeof n=="string",t),w=n!==X.Fragment?{...p,...d,ref:i}:{},{children:m}=r,T=X.useMemo(()=>ji(m)?m.get():m,[m]);return X.createElement(n,{...w,children:T})}}function kN(t,e){return function(r,{forwardMotionProps:i}={forwardMotionProps:!1}){const a={...ey(r)?bN:wN,preloadedFeatures:t,useRender:EN(i),createVisualElement:e,Component:r};return XF(a)}}function DC(t,e){if(!Array.isArray(e))return!1;const n=e.length;if(n!==t.length)return!1;for(let r=0;r<n;r++)if(e[r]!==t[r])return!1;return!0}function Ap(t,e,n){const r=t.getProps();return ty(r,e,n!==void 0?n:r.custom,t)}const DN=Xv(()=>window.ScrollTimeline!==void 0);class PN{constructor(e){this.stop=()=>this.runAll("stop"),this.animations=e.filter(Boolean)}get finished(){return Promise.all(this.animations.map(e=>"finished"in e?e.finished:e))}getAll(e){return this.animations[0][e]}setAll(e,n){for(let r=0;r<this.animations.length;r++)this.animations[r][e]=n}attachTimeline(e,n){const r=this.animations.map(i=>{if(DN()&&i.attachTimeline)return i.attachTimeline(e);if(typeof n=="function")return n(i)});return()=>{r.forEach((i,o)=>{i&&i(),this.animations[o].stop()})}}get time(){return this.getAll("time")}set time(e){this.setAll("time",e)}get speed(){return this.getAll("speed")}set speed(e){this.setAll("speed",e)}get startTime(){return this.getAll("startTime")}get duration(){let e=0;for(let n=0;n<this.animations.length;n++)e=Math.max(e,this.animations[n].duration);return e}runAll(e){this.animations.forEach(n=>n[e]())}flatten(){this.runAll("flatten")}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}class ON extends PN{then(e,n){return Promise.all(this.animations).then(e).catch(n)}}function uy(t,e){return t?t[e]||t.default||t:void 0}const Bm=2e4;function PC(t){let e=0;const n=50;let r=t.next(e);for(;!r.done&&e<Bm;)e+=n,r=t.next(e);return e>=Bm?1/0:e}function cy(t){return typeof t=="function"}function Dw(t,e){t.timeline=e,t.onfinish=null}const fy=t=>Array.isArray(t)&&typeof t[0]=="number",_N={linearEasing:void 0};function RN(t,e){const n=Xv(t);return()=>{var r;return(r=_N[e])!==null&&r!==void 0?r:n()}}const ip=RN(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),OC=(t,e,n=10)=>{let r="";const i=Math.max(Math.round(e/n),2);for(let o=0;o<i;o++)r+=t(Df(0,i-1,o))+", ";return`linear(${r.substring(0,r.length-2)})`};function _C(t){return!!(typeof t=="function"&&ip()||!t||typeof t=="string"&&(t in $m||ip())||fy(t)||Array.isArray(t)&&t.every(_C))}const ud=([t,e,n,r])=>`cubic-bezier(${t}, ${e}, ${n}, ${r})`,$m={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:ud([0,.65,.55,1]),circOut:ud([.55,0,1,.45]),backIn:ud([.31,.01,.66,-.59]),backOut:ud([.33,1.53,.69,.99])};function RC(t,e){if(t)return typeof t=="function"&&ip()?OC(t,e):fy(t)?ud(t):Array.isArray(t)?t.map(n=>RC(n,e)||$m.easeOut):$m[t]}const oa={x:!1,y:!1};function AC(){return oa.x||oa.y}function AN(t,e,n){var r;if(t instanceof Element)return[t];if(typeof t=="string"){let i=document;const o=(r=void 0)!==null&&r!==void 0?r:i.querySelectorAll(t);return o?Array.from(o):[]}return Array.from(t)}function IC(t,e){const n=AN(t),r=new AbortController,i={passive:!0,...e,signal:r.signal};return[n,i,()=>r.abort()]}function Pw(t){return e=>{e.pointerType==="touch"||AC()||t(e)}}function IN(t,e,n={}){const[r,i,o]=IC(t,n),a=Pw(c=>{const{target:d}=c,p=e(c);if(typeof p!="function"||!d)return;const w=Pw(m=>{p(m),d.removeEventListener("pointerleave",w)});d.addEventListener("pointerleave",w,i)});return r.forEach(c=>{c.addEventListener("pointerenter",a,i)}),o}const MC=(t,e)=>e?t===e?!0:MC(t,e.parentElement):!1,dy=t=>t.pointerType==="mouse"?typeof t.button!="number"||t.button<=0:t.isPrimary!==!1,MN=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function LN(t){return MN.has(t.tagName)||t.tabIndex!==-1}const cd=new WeakSet;function Ow(t){return e=>{e.key==="Enter"&&t(e)}}function Fg(t,e){t.dispatchEvent(new PointerEvent("pointer"+e,{isPrimary:!0,bubbles:!0}))}const FN=(t,e)=>{const n=t.currentTarget;if(!n)return;const r=Ow(()=>{if(cd.has(n))return;Fg(n,"down");const i=Ow(()=>{Fg(n,"up")}),o=()=>Fg(n,"cancel");n.addEventListener("keyup",i,e),n.addEventListener("blur",o,e)});n.addEventListener("keydown",r,e),n.addEventListener("blur",()=>n.removeEventListener("keydown",r),e)};function _w(t){return dy(t)&&!AC()}function NN(t,e,n={}){const[r,i,o]=IC(t,n),a=c=>{const d=c.currentTarget;if(!_w(c)||cd.has(d))return;cd.add(d);const p=e(c),w=(E,A)=>{window.removeEventListener("pointerup",m),window.removeEventListener("pointercancel",T),!(!_w(E)||!cd.has(d))&&(cd.delete(d),typeof p=="function"&&p(E,{success:A}))},m=E=>{w(E,n.useGlobalTarget||MC(d,E.target))},T=E=>{w(E,!1)};window.addEventListener("pointerup",m,i),window.addEventListener("pointercancel",T,i)};return r.forEach(c=>{!LN(c)&&c.getAttribute("tabindex")===null&&(c.tabIndex=0),(n.useGlobalTarget?window:c).addEventListener("pointerdown",a,i),c.addEventListener("focus",p=>FN(p,i),i)}),o}function jN(t){return t==="x"||t==="y"?oa[t]?null:(oa[t]=!0,()=>{oa[t]=!1}):oa.x||oa.y?null:(oa.x=oa.y=!0,()=>{oa.x=oa.y=!1})}const LC=new Set(["width","height","top","left","right","bottom",...Lf]);let jh;function BN(){jh=void 0}const Ba={now:()=>(jh===void 0&&Ba.set(Ci.isProcessing||MF.useManualTiming?Ci.timestamp:performance.now()),jh),set:t=>{jh=t,queueMicrotask(BN)}};function hy(t,e){t.indexOf(e)===-1&&t.push(e)}function py(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}let gy=class{constructor(){this.subscriptions=[]}add(e){return hy(this.subscriptions,e),()=>py(this.subscriptions,e)}notify(e,n,r){const i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](e,n,r);else for(let o=0;o<i;o++){const a=this.subscriptions[o];a&&a(e,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}};function FC(t,e){return e?t*(1e3/e):0}const Rw=30,$N=t=>!isNaN(parseFloat(t));let VN=class{constructor(e,n={}){this.version="11.18.2",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(r,i=!0)=>{const o=Ba.now();this.updatedAt!==o&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),i&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(e),this.owner=n.owner}setCurrent(e){this.current=e,this.updatedAt=Ba.now(),this.canTrackVelocity===null&&e!==void 0&&(this.canTrackVelocity=$N(this.current))}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return process.env.NODE_ENV!=="production"&&Pp(!1,'value.onChange(callback) is deprecated. Switch to value.on("change", callback).'),this.on("change",e)}on(e,n){this.events[e]||(this.events[e]=new gy);const r=this.events[e].add(n);return e==="change"?()=>{r(),Fn.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const e in this.events)this.events[e].clear()}attach(e,n){this.passiveEffect=e,this.stopPassiveEffect=n}set(e,n=!0){!n||!this.passiveEffect?this.updateAndNotify(e,n):this.passiveEffect(e,this.updateAndNotify)}setWithVelocity(e,n,r){this.set(n),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-r}jump(e,n=!0){this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const e=Ba.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||e-this.updatedAt>Rw)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,Rw);return FC(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(e){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=e(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}};function Md(t,e){return new VN(t,e)}function HN(t,e,n){t.hasValue(e)?t.getValue(e).set(n):t.addValue(e,Md(n))}function UN(t,e){const n=Ap(t,e);let{transitionEnd:r={},transition:i={},...o}=n||{};o={...o,...r};for(const a in o){const c=tN(o[a]);HN(t,a,c)}}function WN(t){return!!(ji(t)&&t.add)}function Vm(t,e){const n=t.getValue("willChange");if(WN(n))return n.add(e)}function NC(t){return t.props[hC]}const jC=(t,e,n)=>(((1-3*n+3*e)*t+(3*n-6*e))*t+3*e)*t,zN=1e-7,YN=12;function GN(t,e,n,r,i){let o,a,c=0;do a=e+(n-e)/2,o=jC(a,r,i)-t,o>0?n=a:e=a;while(Math.abs(o)>zN&&++c<YN);return a}function Yd(t,e,n,r){if(t===e&&n===r)return _o;const i=o=>GN(o,0,1,t,n);return o=>o===0||o===1?o:jC(i(o),e,r)}const BC=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,$C=t=>e=>1-t(1-e),VC=Yd(.33,1.53,.69,.99),my=$C(VC),HC=BC(my),UC=t=>(t*=2)<1?.5*my(t):.5*(2-Math.pow(2,-10*(t-1))),vy=t=>1-Math.sin(Math.acos(t)),WC=$C(vy),zC=BC(vy),YC=t=>/^0[^.\s]+$/u.test(t);function qN(t){return typeof t=="number"?t===0:t!==null?t==="none"||t==="0"||YC(t):!0}const vd=t=>Math.round(t*1e5)/1e5,yy=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function XN(t){return t==null}const KN=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,by=(t,e)=>n=>!!(typeof n=="string"&&KN.test(n)&&n.startsWith(t)||e&&!XN(n)&&Object.prototype.hasOwnProperty.call(n,e)),GC=(t,e,n)=>r=>{if(typeof r!="string")return r;const[i,o,a,c]=r.match(yy);return{[t]:parseFloat(i),[e]:parseFloat(o),[n]:parseFloat(a),alpha:c!==void 0?parseFloat(c):1}},ZN=t=>kl(0,255,t),Ng={...Ff,transform:t=>Math.round(ZN(t))},mc={test:by("rgb","red"),parse:GC("red","green","blue"),transform:({red:t,green:e,blue:n,alpha:r=1})=>"rgba("+Ng.transform(t)+", "+Ng.transform(e)+", "+Ng.transform(n)+", "+vd(Id.transform(r))+")"};function JN(t){let e="",n="",r="",i="";return t.length>5?(e=t.substring(1,3),n=t.substring(3,5),r=t.substring(5,7),i=t.substring(7,9)):(e=t.substring(1,2),n=t.substring(2,3),r=t.substring(3,4),i=t.substring(4,5),e+=e,n+=n,r+=r,i+=i),{red:parseInt(e,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}}const Hm={test:by("#"),parse:JN,transform:mc.transform},gf={test:by("hsl","hue"),parse:GC("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:n,alpha:r=1})=>"hsla("+Math.round(t)+", "+ja.transform(vd(e))+", "+ja.transform(vd(n))+", "+vd(Id.transform(r))+")"},Ni={test:t=>mc.test(t)||Hm.test(t)||gf.test(t),parse:t=>mc.test(t)?mc.parse(t):gf.test(t)?gf.parse(t):Hm.parse(t),transform:t=>typeof t=="string"?t:t.hasOwnProperty("red")?mc.transform(t):gf.transform(t)},QN=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function ej(t){var e,n;return isNaN(t)&&typeof t=="string"&&(((e=t.match(yy))===null||e===void 0?void 0:e.length)||0)+(((n=t.match(QN))===null||n===void 0?void 0:n.length)||0)>0}const qC="number",XC="color",tj="var",nj="var(",Aw="${}",rj=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function Ld(t){const e=t.toString(),n=[],r={color:[],number:[],var:[]},i=[];let o=0;const c=e.replace(rj,d=>(Ni.test(d)?(r.color.push(o),i.push(XC),n.push(Ni.parse(d))):d.startsWith(nj)?(r.var.push(o),i.push(tj),n.push(d)):(r.number.push(o),i.push(qC),n.push(parseFloat(d))),++o,Aw)).split(Aw);return{values:n,split:c,indexes:r,types:i}}function KC(t){return Ld(t).values}function ZC(t){const{split:e,types:n}=Ld(t),r=e.length;return i=>{let o="";for(let a=0;a<r;a++)if(o+=e[a],i[a]!==void 0){const c=n[a];c===qC?o+=vd(i[a]):c===XC?o+=Ni.transform(i[a]):o+=i[a]}return o}}const ij=t=>typeof t=="number"?0:t;function oj(t){const e=KC(t);return ZC(t)(e.map(ij))}const bu={test:ej,parse:KC,createTransformer:ZC,getAnimatableNone:oj},sj=new Set(["brightness","contrast","saturate","opacity"]);function aj(t){const[e,n]=t.slice(0,-1).split("(");if(e==="drop-shadow")return t;const[r]=n.match(yy)||[];if(!r)return t;const i=n.replace(r,"");let o=sj.has(e)?1:0;return r!==n&&(o*=100),e+"("+o+i+")"}const lj=/\b([a-z-]*)\(.*?\)/gu,Um={...bu,getAnimatableNone:t=>{const e=t.match(lj);return e?e.map(aj).join(" "):t}},uj={...ry,color:Ni,backgroundColor:Ni,outlineColor:Ni,fill:Ni,stroke:Ni,borderColor:Ni,borderTopColor:Ni,borderRightColor:Ni,borderBottomColor:Ni,borderLeftColor:Ni,filter:Um,WebkitFilter:Um},wy=t=>uj[t];function JC(t,e){let n=wy(t);return n!==Um&&(n=bu),n.getAnimatableNone?n.getAnimatableNone(e):void 0}const cj=new Set(["auto","none","0"]);function fj(t,e,n){let r=0,i;for(;r<t.length&&!i;){const o=t[r];typeof o=="string"&&!cj.has(o)&&Ld(o).values.length&&(i=t[r]),r++}if(i&&n)for(const o of e)t[o]=JC(n,i)}const Iw=t=>t===Ff||t===Ot,Mw=(t,e)=>parseFloat(t.split(", ")[e]),Lw=(t,e)=>(n,{transform:r})=>{if(r==="none"||!r)return 0;const i=r.match(/^matrix3d\((.+)\)$/u);if(i)return Mw(i[1],e);{const o=r.match(/^matrix\((.+)\)$/u);return o?Mw(o[1],t):0}},dj=new Set(["x","y","z"]),hj=Lf.filter(t=>!dj.has(t));function pj(t){const e=[];return hj.forEach(n=>{const r=t.getValue(n);r!==void 0&&(e.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),e}const Of={width:({x:t},{paddingLeft:e="0",paddingRight:n="0"})=>t.max-t.min-parseFloat(e)-parseFloat(n),height:({y:t},{paddingTop:e="0",paddingBottom:n="0"})=>t.max-t.min-parseFloat(e)-parseFloat(n),top:(t,{top:e})=>parseFloat(e),left:(t,{left:e})=>parseFloat(e),bottom:({y:t},{top:e})=>parseFloat(e)+(t.max-t.min),right:({x:t},{left:e})=>parseFloat(e)+(t.max-t.min),x:Lw(4,13),y:Lw(5,14)};Of.translateX=Of.x;Of.translateY=Of.y;const Sc=new Set;let Wm=!1,zm=!1;function QC(){if(zm){const t=Array.from(Sc).filter(r=>r.needsMeasurement),e=new Set(t.map(r=>r.element)),n=new Map;e.forEach(r=>{const i=pj(r);i.length&&(n.set(r,i),r.render())}),t.forEach(r=>r.measureInitialState()),e.forEach(r=>{r.render();const i=n.get(r);i&&i.forEach(([o,a])=>{var c;(c=r.getValue(o))===null||c===void 0||c.set(a)})}),t.forEach(r=>r.measureEndState()),t.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}zm=!1,Wm=!1,Sc.forEach(t=>t.complete()),Sc.clear()}function eE(){Sc.forEach(t=>{t.readKeyframes(),t.needsMeasurement&&(zm=!0)})}function gj(){eE(),QC()}class xy{constructor(e,n,r,i,o,a=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...e],this.onComplete=n,this.name=r,this.motionValue=i,this.element=o,this.isAsync=a}scheduleResolve(){this.isScheduled=!0,this.isAsync?(Sc.add(this),Wm||(Wm=!0,Fn.read(eE),Fn.resolveKeyframes(QC))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:e,name:n,element:r,motionValue:i}=this;for(let o=0;o<e.length;o++)if(e[o]===null)if(o===0){const a=i==null?void 0:i.get(),c=e[e.length-1];if(a!==void 0)e[0]=a;else if(r&&n){const d=r.readValue(n,c);d!=null&&(e[0]=d)}e[0]===void 0&&(e[0]=c),i&&a===void 0&&i.set(e[0])}else e[o]=e[o-1]}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe),Sc.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,Sc.delete(this))}resume(){this.isComplete||this.scheduleResolve()}}const tE=t=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t),mj=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function vj(t){const e=mj.exec(t);if(!e)return[,];const[,n,r,i]=e;return[`--${n??r}`,i]}const yj=4;function nE(t,e,n=1){vu(n<=yj,`Max CSS variable fallback depth detected in property "${t}". This may indicate a circular fallback dependency.`);const[r,i]=vj(t);if(!r)return;const o=window.getComputedStyle(e).getPropertyValue(r);if(o){const a=o.trim();return tE(a)?parseFloat(a):a}return ny(i)?nE(i,e,n+1):i}const rE=t=>e=>e.test(t),bj={test:t=>t==="auto",parse:t=>t},iE=[Ff,Ot,ja,ou,aN,sN,bj],Fw=t=>iE.find(rE(t));class oE extends xy{constructor(e,n,r,i,o){super(e,n,r,i,o,!0)}readKeyframes(){const{unresolvedKeyframes:e,element:n,name:r}=this;if(!n||!n.current)return;super.readKeyframes();for(let d=0;d<e.length;d++){let p=e[d];if(typeof p=="string"&&(p=p.trim(),ny(p))){const w=nE(p,n.current);w!==void 0&&(e[d]=w),d===e.length-1&&(this.finalKeyframe=p)}}if(this.resolveNoneKeyframes(),!LC.has(r)||e.length!==2)return;const[i,o]=e,a=Fw(i),c=Fw(o);if(a!==c)if(Iw(a)&&Iw(c))for(let d=0;d<e.length;d++){const p=e[d];typeof p=="string"&&(e[d]=parseFloat(p))}else this.needsMeasurement=!0}resolveNoneKeyframes(){const{unresolvedKeyframes:e,name:n}=this,r=[];for(let i=0;i<e.length;i++)qN(e[i])&&r.push(i);r.length&&fj(e,r,n)}measureInitialState(){const{element:e,unresolvedKeyframes:n,name:r}=this;if(!e||!e.current)return;r==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=Of[r](e.measureViewportBox(),window.getComputedStyle(e.current)),n[0]=this.measuredOrigin;const i=n[n.length-1];i!==void 0&&e.getValue(r,i).jump(i,!1)}measureEndState(){var e;const{element:n,name:r,unresolvedKeyframes:i}=this;if(!n||!n.current)return;const o=n.getValue(r);o&&o.jump(this.measuredOrigin,!1);const a=i.length-1,c=i[a];i[a]=Of[r](n.measureViewportBox(),window.getComputedStyle(n.current)),c!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=c),!((e=this.removedTransforms)===null||e===void 0)&&e.length&&this.removedTransforms.forEach(([d,p])=>{n.getValue(d).set(p)}),this.resolveNoneKeyframes()}}const Nw=(t,e)=>e==="zIndex"?!1:!!(typeof t=="number"||Array.isArray(t)||typeof t=="string"&&(bu.test(t)||t==="0")&&!t.startsWith("url("));function wj(t){const e=t[0];if(t.length===1)return!0;for(let n=0;n<t.length;n++)if(t[n]!==e)return!0}function xj(t,e,n,r){const i=t[0];if(i===null)return!1;if(e==="display"||e==="visibility")return!0;const o=t[t.length-1],a=Nw(i,e),c=Nw(o,e);return Mf(a===c,`You are trying to animate ${e} from "${i}" to "${o}". ${i} is not an animatable value - to enable this animation set ${i} to a value animatable to ${o} via the \`style\` property.`),!a||!c?!1:wj(t)||(n==="spring"||cy(n))&&r}const Sj=t=>t!==null;function Ip(t,{repeat:e,repeatType:n="loop"},r){const i=t.filter(Sj),o=e&&n!=="loop"&&e%2===1?0:i.length-1;return!o||r===void 0?i[o]:r}const Tj=40;class sE{constructor({autoplay:e=!0,delay:n=0,type:r="keyframes",repeat:i=0,repeatDelay:o=0,repeatType:a="loop",...c}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=Ba.now(),this.options={autoplay:e,delay:n,type:r,repeat:i,repeatDelay:o,repeatType:a,...c},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt?this.resolvedAt-this.createdAt>Tj?this.resolvedAt:this.createdAt:this.createdAt}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&gj(),this._resolved}onKeyframesResolved(e,n){this.resolvedAt=Ba.now(),this.hasAttemptedResolve=!0;const{name:r,type:i,velocity:o,delay:a,onComplete:c,onUpdate:d,isGenerator:p}=this.options;if(!p&&!xj(e,r,i,o))if(a)this.options.duration=0;else{d&&d(Ip(e,this.options,n)),c&&c(),this.resolveFinishedPromise();return}const w=this.initPlayback(e,n);w!==!1&&(this._resolved={keyframes:e,finalKeyframe:n,...w},this.onPostResolved())}onPostResolved(){}then(e,n){return this.currentFinishedPromise.then(e,n)}flatten(){this.options.type="keyframes",this.options.ease="linear"}updateFinishedPromise(){this.currentFinishedPromise=new Promise(e=>{this.resolveFinishedPromise=e})}}const Kn=(t,e,n)=>t+(e-t)*n;function jg(t,e,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?t+(e-t)*6*n:n<1/2?e:n<2/3?t+(e-t)*(2/3-n)*6:t}function Cj({hue:t,saturation:e,lightness:n,alpha:r}){t/=360,e/=100,n/=100;let i=0,o=0,a=0;if(!e)i=o=a=n;else{const c=n<.5?n*(1+e):n+e-n*e,d=2*n-c;i=jg(d,c,t+1/3),o=jg(d,c,t),a=jg(d,c,t-1/3)}return{red:Math.round(i*255),green:Math.round(o*255),blue:Math.round(a*255),alpha:r}}function op(t,e){return n=>n>0?e:t}const Bg=(t,e,n)=>{const r=t*t,i=n*(e*e-r)+r;return i<0?0:Math.sqrt(i)},Ej=[Hm,mc,gf],kj=t=>Ej.find(e=>e.test(t));function jw(t){const e=kj(t);if(Mf(!!e,`'${t}' is not an animatable color. Use the equivalent color code instead.`),!e)return!1;let n=e.parse(t);return e===gf&&(n=Cj(n)),n}const Bw=(t,e)=>{const n=jw(t),r=jw(e);if(!n||!r)return op(t,e);const i={...n};return o=>(i.red=Bg(n.red,r.red,o),i.green=Bg(n.green,r.green,o),i.blue=Bg(n.blue,r.blue,o),i.alpha=Kn(n.alpha,r.alpha,o),mc.transform(i))},Dj=(t,e)=>n=>e(t(n)),Gd=(...t)=>t.reduce(Dj),Ym=new Set(["none","hidden"]);function Pj(t,e){return Ym.has(t)?n=>n<=0?t:e:n=>n>=1?e:t}function Oj(t,e){return n=>Kn(t,e,n)}function Sy(t){return typeof t=="number"?Oj:typeof t=="string"?ny(t)?op:Ni.test(t)?Bw:Aj:Array.isArray(t)?aE:typeof t=="object"?Ni.test(t)?Bw:_j:op}function aE(t,e){const n=[...t],r=n.length,i=t.map((o,a)=>Sy(o)(o,e[a]));return o=>{for(let a=0;a<r;a++)n[a]=i[a](o);return n}}function _j(t,e){const n={...t,...e},r={};for(const i in n)t[i]!==void 0&&e[i]!==void 0&&(r[i]=Sy(t[i])(t[i],e[i]));return i=>{for(const o in r)n[o]=r[o](i);return n}}function Rj(t,e){var n;const r=[],i={color:0,var:0,number:0};for(let o=0;o<e.values.length;o++){const a=e.types[o],c=t.indexes[a][i[a]],d=(n=t.values[c])!==null&&n!==void 0?n:0;r[o]=d,i[a]++}return r}const Aj=(t,e)=>{const n=bu.createTransformer(e),r=Ld(t),i=Ld(e);return r.indexes.var.length===i.indexes.var.length&&r.indexes.color.length===i.indexes.color.length&&r.indexes.number.length>=i.indexes.number.length?Ym.has(t)&&!i.values.length||Ym.has(e)&&!r.values.length?Pj(t,e):Gd(aE(Rj(r,i),i.values),n):(Mf(!0,`Complex values '${t}' and '${e}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`),op(t,e))};function lE(t,e,n){return typeof t=="number"&&typeof e=="number"&&typeof n=="number"?Kn(t,e,n):Sy(t)(t,e)}const Ij=5;function uE(t,e,n){const r=Math.max(e-Ij,0);return FC(n-t(r),e-r)}const Xn={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1},$w=.001;function Mj({duration:t=Xn.duration,bounce:e=Xn.bounce,velocity:n=Xn.velocity,mass:r=Xn.mass}){let i,o;Mf(t<=Na(Xn.maxDuration),"Spring duration must be 10 seconds or less");let a=1-e;a=kl(Xn.minDamping,Xn.maxDamping,a),t=kl(Xn.minDuration,Xn.maxDuration,Sl(t)),a<1?(i=p=>{const w=p*a,m=w*t,T=w-n,E=Gm(p,a),A=Math.exp(-m);return $w-T/E*A},o=p=>{const m=p*a*t,T=m*n+n,E=Math.pow(a,2)*Math.pow(p,2)*t,A=Math.exp(-m),I=Gm(Math.pow(p,2),a);return(-i(p)+$w>0?-1:1)*((T-E)*A)/I}):(i=p=>{const w=Math.exp(-p*t),m=(p-n)*t+1;return-.001+w*m},o=p=>{const w=Math.exp(-p*t),m=(n-p)*(t*t);return w*m});const c=5/t,d=Fj(i,o,c);if(t=Na(t),isNaN(d))return{stiffness:Xn.stiffness,damping:Xn.damping,duration:t};{const p=Math.pow(d,2)*r;return{stiffness:p,damping:a*2*Math.sqrt(r*p),duration:t}}}const Lj=12;function Fj(t,e,n){let r=n;for(let i=1;i<Lj;i++)r=r-t(r)/e(r);return r}function Gm(t,e){return t*Math.sqrt(1-e*e)}const Nj=["duration","bounce"],jj=["stiffness","damping","mass"];function Vw(t,e){return e.some(n=>t[n]!==void 0)}function Bj(t){let e={velocity:Xn.velocity,stiffness:Xn.stiffness,damping:Xn.damping,mass:Xn.mass,isResolvedFromDuration:!1,...t};if(!Vw(t,jj)&&Vw(t,Nj))if(t.visualDuration){const n=t.visualDuration,r=2*Math.PI/(n*1.2),i=r*r,o=2*kl(.05,1,1-(t.bounce||0))*Math.sqrt(i);e={...e,mass:Xn.mass,stiffness:i,damping:o}}else{const n=Mj(t);e={...e,...n,mass:Xn.mass},e.isResolvedFromDuration=!0}return e}function cE(t=Xn.visualDuration,e=Xn.bounce){const n=typeof t!="object"?{visualDuration:t,keyframes:[0,1],bounce:e}:t;let{restSpeed:r,restDelta:i}=n;const o=n.keyframes[0],a=n.keyframes[n.keyframes.length-1],c={done:!1,value:o},{stiffness:d,damping:p,mass:w,duration:m,velocity:T,isResolvedFromDuration:E}=Bj({...n,velocity:-Sl(n.velocity||0)}),A=T||0,I=p/(2*Math.sqrt(d*w)),j=a-o,_=Sl(Math.sqrt(d/w)),U=Math.abs(j)<5;r||(r=U?Xn.restSpeed.granular:Xn.restSpeed.default),i||(i=U?Xn.restDelta.granular:Xn.restDelta.default);let G;if(I<1){const q=Gm(_,I);G=se=>{const S=Math.exp(-I*_*se);return a-S*((A+I*_*j)/q*Math.sin(q*se)+j*Math.cos(q*se))}}else if(I===1)G=q=>a-Math.exp(-_*q)*(j+(A+_*j)*q);else{const q=_*Math.sqrt(I*I-1);G=se=>{const S=Math.exp(-I*_*se),ue=Math.min(q*se,300);return a-S*((A+I*_*j)*Math.sinh(ue)+q*j*Math.cosh(ue))/q}}const re={calculatedDuration:E&&m||null,next:q=>{const se=G(q);if(E)c.done=q>=m;else{let S=0;I<1&&(S=q===0?Na(A):uE(G,q,se));const ue=Math.abs(S)<=r,ae=Math.abs(a-se)<=i;c.done=ue&&ae}return c.value=c.done?a:se,c},toString:()=>{const q=Math.min(PC(re),Bm),se=OC(S=>re.next(q*S).value,q,30);return q+"ms "+se}};return re}function Hw({keyframes:t,velocity:e=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:o=500,modifyTarget:a,min:c,max:d,restDelta:p=.5,restSpeed:w}){const m=t[0],T={done:!1,value:m},E=ue=>c!==void 0&&ue<c||d!==void 0&&ue>d,A=ue=>c===void 0?d:d===void 0||Math.abs(c-ue)<Math.abs(d-ue)?c:d;let I=n*e;const j=m+I,_=a===void 0?j:a(j);_!==j&&(I=_-m);const U=ue=>-I*Math.exp(-ue/r),G=ue=>_+U(ue),re=ue=>{const ae=U(ue),Ue=G(ue);T.done=Math.abs(ae)<=p,T.value=T.done?_:Ue};let q,se;const S=ue=>{E(T.value)&&(q=ue,se=cE({keyframes:[T.value,A(T.value)],velocity:uE(G,ue,T.value),damping:i,stiffness:o,restDelta:p,restSpeed:w}))};return S(0),{calculatedDuration:null,next:ue=>{let ae=!1;return!se&&q===void 0&&(ae=!0,re(ue),S(ue)),q!==void 0&&ue>=q?se.next(ue-q):(!ae&&re(ue),T)}}}const $j=Yd(.42,0,1,1),Vj=Yd(0,0,.58,1),fE=Yd(.42,0,.58,1),Hj=t=>Array.isArray(t)&&typeof t[0]!="number",Uw={linear:_o,easeIn:$j,easeInOut:fE,easeOut:Vj,circIn:vy,circInOut:zC,circOut:WC,backIn:my,backInOut:HC,backOut:VC,anticipate:UC},Ww=t=>{if(fy(t)){vu(t.length===4,"Cubic bezier arrays must contain four numerical values.");const[e,n,r,i]=t;return Yd(e,n,r,i)}else if(typeof t=="string")return vu(Uw[t]!==void 0,`Invalid easing type '${t}'`),Uw[t];return t};function Uj(t,e,n){const r=[],i=n||lE,o=t.length-1;for(let a=0;a<o;a++){let c=i(t[a],t[a+1]);if(e){const d=Array.isArray(e)?e[a]||_o:e;c=Gd(d,c)}r.push(c)}return r}function Wj(t,e,{clamp:n=!0,ease:r,mixer:i}={}){const o=t.length;if(vu(o===e.length,"Both input and output ranges must be the same length"),o===1)return()=>e[0];if(o===2&&e[0]===e[1])return()=>e[1];const a=t[0]===t[1];t[0]>t[o-1]&&(t=[...t].reverse(),e=[...e].reverse());const c=Uj(e,r,i),d=c.length,p=w=>{if(a&&w<t[0])return e[0];let m=0;if(d>1)for(;m<t.length-2&&!(w<t[m+1]);m++);const T=Df(t[m],t[m+1],w);return c[m](T)};return n?w=>p(kl(t[0],t[o-1],w)):p}function zj(t,e){const n=t[t.length-1];for(let r=1;r<=e;r++){const i=Df(0,e,r);t.push(Kn(n,1,i))}}function Yj(t){const e=[0];return zj(e,t.length-1),e}function Gj(t,e){return t.map(n=>n*e)}function qj(t,e){return t.map(()=>e||fE).splice(0,t.length-1)}function sp({duration:t=300,keyframes:e,times:n,ease:r="easeInOut"}){const i=Hj(r)?r.map(Ww):Ww(r),o={done:!1,value:e[0]},a=Gj(n&&n.length===e.length?n:Yj(e),t),c=Wj(a,e,{ease:Array.isArray(i)?i:qj(e,i)});return{calculatedDuration:t,next:d=>(o.value=c(d),o.done=d>=t,o)}}const Xj=t=>{const e=({timestamp:n})=>t(n);return{start:()=>Fn.update(e,!0),stop:()=>yu(e),now:()=>Ci.isProcessing?Ci.timestamp:Ba.now()}},Kj={decay:Hw,inertia:Hw,tween:sp,keyframes:sp,spring:cE},Zj=t=>t/100;class Ty extends sE{constructor(e){super(e),this.holdTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.startTime=null,this.state="idle",this.stop=()=>{if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.teardown();const{onStop:d}=this.options;d&&d()};const{name:n,motionValue:r,element:i,keyframes:o}=this.options,a=(i==null?void 0:i.KeyframeResolver)||xy,c=(d,p)=>this.onKeyframesResolved(d,p);this.resolver=new a(o,c,n,r,i),this.resolver.scheduleResolve()}flatten(){super.flatten(),this._resolved&&Object.assign(this._resolved,this.initPlayback(this._resolved.keyframes))}initPlayback(e){const{type:n="keyframes",repeat:r=0,repeatDelay:i=0,repeatType:o,velocity:a=0}=this.options,c=cy(n)?n:Kj[n]||sp;let d,p;c!==sp&&typeof e[0]!="number"&&(process.env.NODE_ENV!=="production"&&vu(e.length===2,`Only two keyframes currently supported with spring and inertia animations. Trying to animate ${e}`),d=Gd(Zj,lE(e[0],e[1])),e=[0,100]);const w=c({...this.options,keyframes:e});o==="mirror"&&(p=c({...this.options,keyframes:[...e].reverse(),velocity:-a})),w.calculatedDuration===null&&(w.calculatedDuration=PC(w));const{calculatedDuration:m}=w,T=m+i,E=T*(r+1)-i;return{generator:w,mirroredGenerator:p,mapPercentToKeyframes:d,calculatedDuration:m,resolvedDuration:T,totalDuration:E}}onPostResolved(){const{autoplay:e=!0}=this.options;this.play(),this.pendingPlayState==="paused"||!e?this.pause():this.state=this.pendingPlayState}tick(e,n=!1){const{resolved:r}=this;if(!r){const{keyframes:ue}=this.options;return{done:!0,value:ue[ue.length-1]}}const{finalKeyframe:i,generator:o,mirroredGenerator:a,mapPercentToKeyframes:c,keyframes:d,calculatedDuration:p,totalDuration:w,resolvedDuration:m}=r;if(this.startTime===null)return o.next(0);const{delay:T,repeat:E,repeatType:A,repeatDelay:I,onUpdate:j}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-w/this.speed,this.startTime)),n?this.currentTime=e:this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=Math.round(e-this.startTime)*this.speed;const _=this.currentTime-T*(this.speed>=0?1:-1),U=this.speed>=0?_<0:_>w;this.currentTime=Math.max(_,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=w);let G=this.currentTime,re=o;if(E){const ue=Math.min(this.currentTime,w)/m;let ae=Math.floor(ue),Ue=ue%1;!Ue&&ue>=1&&(Ue=1),Ue===1&&ae--,ae=Math.min(ae,E+1),!!(ae%2)&&(A==="reverse"?(Ue=1-Ue,I&&(Ue-=I/m)):A==="mirror"&&(re=a)),G=kl(0,1,Ue)*m}const q=U?{done:!1,value:d[0]}:re.next(G);c&&(q.value=c(q.value));let{done:se}=q;!U&&p!==null&&(se=this.speed>=0?this.currentTime>=w:this.currentTime<=0);const S=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&se);return S&&i!==void 0&&(q.value=Ip(d,this.options,i)),j&&j(q.value),S&&this.finish(),q}get duration(){const{resolved:e}=this;return e?Sl(e.calculatedDuration):0}get time(){return Sl(this.currentTime)}set time(e){e=Na(e),this.currentTime=e,this.holdTime!==null||this.speed===0?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.speed)}get speed(){return this.playbackSpeed}set speed(e){const n=this.playbackSpeed!==e;this.playbackSpeed=e,n&&(this.time=Sl(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;const{driver:e=Xj,onPlay:n,startTime:r}=this.options;this.driver||(this.driver=e(o=>this.tick(o))),n&&n();const i=this.driver.now();this.holdTime!==null?this.startTime=i-this.holdTime:this.startTime?this.state==="finished"&&(this.startTime=i):this.startTime=r??this.calcStartTime(),this.state==="finished"&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var e;if(!this._resolved){this.pendingPlayState="paused";return}this.state="paused",this.holdTime=(e=this.currentTime)!==null&&e!==void 0?e:0}complete(){this.state!=="running"&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";const{onComplete:e}=this.options;e&&e()}cancel(){this.cancelTime!==null&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedPromise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel()}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(e){return this.startTime=0,this.tick(e,!0)}}const Jj=new Set(["opacity","clipPath","filter","transform"]);function Qj(t,e,n,{delay:r=0,duration:i=300,repeat:o=0,repeatType:a="loop",ease:c="easeInOut",times:d}={}){const p={[e]:n};d&&(p.offset=d);const w=RC(c,i);return Array.isArray(w)&&(p.easing=w),t.animate(p,{delay:r,duration:i,easing:Array.isArray(w)?"linear":w,fill:"both",iterations:o+1,direction:a==="reverse"?"alternate":"normal"})}const eB=Xv(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),ap=10,tB=2e4;function nB(t){return cy(t.type)||t.type==="spring"||!_C(t.ease)}function rB(t,e){const n=new Ty({...e,keyframes:t,repeat:0,delay:0,isGenerator:!0});let r={done:!1,value:t[0]};const i=[];let o=0;for(;!r.done&&o<tB;)r=n.sample(o),i.push(r.value),o+=ap;return{times:void 0,keyframes:i,duration:o-ap,ease:"linear"}}const dE={anticipate:UC,backInOut:HC,circInOut:zC};function iB(t){return t in dE}class zw extends sE{constructor(e){super(e);const{name:n,motionValue:r,element:i,keyframes:o}=this.options;this.resolver=new oE(o,(a,c)=>this.onKeyframesResolved(a,c),n,r,i),this.resolver.scheduleResolve()}initPlayback(e,n){let{duration:r=300,times:i,ease:o,type:a,motionValue:c,name:d,startTime:p}=this.options;if(!c.owner||!c.owner.current)return!1;if(typeof o=="string"&&ip()&&iB(o)&&(o=dE[o]),nB(this.options)){const{onComplete:m,onUpdate:T,motionValue:E,element:A,...I}=this.options,j=rB(e,I);e=j.keyframes,e.length===1&&(e[1]=e[0]),r=j.duration,i=j.times,o=j.ease,a="keyframes"}const w=Qj(c.owner.current,d,e,{...this.options,duration:r,times:i,ease:o});return w.startTime=p??this.calcStartTime(),this.pendingTimeline?(Dw(w,this.pendingTimeline),this.pendingTimeline=void 0):w.onfinish=()=>{const{onComplete:m}=this.options;c.set(Ip(e,this.options,n)),m&&m(),this.cancel(),this.resolveFinishedPromise()},{animation:w,duration:r,times:i,type:a,ease:o,keyframes:e}}get duration(){const{resolved:e}=this;if(!e)return 0;const{duration:n}=e;return Sl(n)}get time(){const{resolved:e}=this;if(!e)return 0;const{animation:n}=e;return Sl(n.currentTime||0)}set time(e){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.currentTime=Na(e)}get speed(){const{resolved:e}=this;if(!e)return 1;const{animation:n}=e;return n.playbackRate}set speed(e){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.playbackRate=e}get state(){const{resolved:e}=this;if(!e)return"idle";const{animation:n}=e;return n.playState}get startTime(){const{resolved:e}=this;if(!e)return null;const{animation:n}=e;return n.startTime}attachTimeline(e){if(!this._resolved)this.pendingTimeline=e;else{const{resolved:n}=this;if(!n)return _o;const{animation:r}=n;Dw(r,e)}return _o}play(){if(this.isStopped)return;const{resolved:e}=this;if(!e)return;const{animation:n}=e;n.playState==="finished"&&this.updateFinishedPromise(),n.play()}pause(){const{resolved:e}=this;if(!e)return;const{animation:n}=e;n.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.resolveFinishedPromise(),this.updateFinishedPromise();const{resolved:e}=this;if(!e)return;const{animation:n,keyframes:r,duration:i,type:o,ease:a,times:c}=e;if(n.playState==="idle"||n.playState==="finished")return;if(this.time){const{motionValue:p,onUpdate:w,onComplete:m,element:T,...E}=this.options,A=new Ty({...E,keyframes:r,duration:i,type:o,ease:a,times:c,isGenerator:!0}),I=Na(this.time);p.setWithVelocity(A.sample(I-ap).value,A.sample(I).value,ap)}const{onStop:d}=this.options;d&&d(),this.cancel()}complete(){const{resolved:e}=this;e&&e.animation.finish()}cancel(){const{resolved:e}=this;e&&e.animation.cancel()}static supports(e){const{motionValue:n,name:r,repeatDelay:i,repeatType:o,damping:a,type:c}=e;if(!n||!n.owner||!(n.owner.current instanceof HTMLElement))return!1;const{onUpdate:d,transformTemplate:p}=n.owner.getProps();return eB()&&r&&Jj.has(r)&&!d&&!p&&!i&&o!=="mirror"&&a!==0&&c!=="inertia"}}const oB={type:"spring",stiffness:500,damping:25,restSpeed:10},sB=t=>({type:"spring",stiffness:550,damping:t===0?2*Math.sqrt(550):30,restSpeed:10}),aB={type:"keyframes",duration:.8},lB={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},uB=(t,{keyframes:e})=>e.length>2?aB:_c.has(t)?t.startsWith("scale")?sB(e[1]):oB:lB;function cB({when:t,delay:e,delayChildren:n,staggerChildren:r,staggerDirection:i,repeat:o,repeatType:a,repeatDelay:c,from:d,elapsed:p,...w}){return!!Object.keys(w).length}const Cy=(t,e,n,r={},i,o)=>a=>{const c=uy(r,t)||{},d=c.delay||r.delay||0;let{elapsed:p=0}=r;p=p-Na(d);let w={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:e.getVelocity(),...c,delay:-p,onUpdate:T=>{e.set(T),c.onUpdate&&c.onUpdate(T)},onComplete:()=>{a(),c.onComplete&&c.onComplete()},name:t,motionValue:e,element:o?void 0:i};cB(c)||(w={...w,...uB(t,w)}),w.duration&&(w.duration=Na(w.duration)),w.repeatDelay&&(w.repeatDelay=Na(w.repeatDelay)),w.from!==void 0&&(w.keyframes[0]=w.from);let m=!1;if((w.type===!1||w.duration===0&&!w.repeatDelay)&&(w.duration=0,w.delay===0&&(m=!0)),m&&!o&&e.get()!==void 0){const T=Ip(w.keyframes,c);if(T!==void 0)return Fn.update(()=>{w.onUpdate(T),w.onComplete()}),new ON([])}return!o&&zw.supports(w)?new zw(w):new Ty(w)};function fB({protectedKeys:t,needsAnimating:e},n){const r=t.hasOwnProperty(n)&&e[n]!==!0;return e[n]=!1,r}function hE(t,e,{delay:n=0,transitionOverride:r,type:i}={}){var o;let{transition:a=t.getDefaultTransition(),transitionEnd:c,...d}=e;r&&(a=r);const p=[],w=i&&t.animationState&&t.animationState.getState()[i];for(const m in d){const T=t.getValue(m,(o=t.latestValues[m])!==null&&o!==void 0?o:null),E=d[m];if(E===void 0||w&&fB(w,m))continue;const A={delay:n,...uy(a||{},m)};let I=!1;if(window.MotionHandoffAnimation){const _=NC(t);if(_){const U=window.MotionHandoffAnimation(_,m,Fn);U!==null&&(A.startTime=U,I=!0)}}Vm(t,m),T.start(Cy(m,T,E,t.shouldReduceMotion&&LC.has(m)?{type:!1}:A,t,I));const j=T.animation;j&&p.push(j)}return c&&Promise.all(p).then(()=>{Fn.update(()=>{c&&UN(t,c)})}),p}function qm(t,e,n={}){var r;const i=Ap(t,e,n.type==="exit"?(r=t.presenceContext)===null||r===void 0?void 0:r.custom:void 0);let{transition:o=t.getDefaultTransition()||{}}=i||{};n.transitionOverride&&(o=n.transitionOverride);const a=i?()=>Promise.all(hE(t,i,n)):()=>Promise.resolve(),c=t.variantChildren&&t.variantChildren.size?(p=0)=>{const{delayChildren:w=0,staggerChildren:m,staggerDirection:T}=o;return dB(t,e,w+p,m,T,n)}:()=>Promise.resolve(),{when:d}=o;if(d){const[p,w]=d==="beforeChildren"?[a,c]:[c,a];return p().then(()=>w())}else return Promise.all([a(),c(n.delay)])}function dB(t,e,n=0,r=0,i=1,o){const a=[],c=(t.variantChildren.size-1)*r,d=i===1?(p=0)=>p*r:(p=0)=>c-p*r;return Array.from(t.variantChildren).sort(hB).forEach((p,w)=>{p.notify("AnimationStart",e),a.push(qm(p,e,{...o,delay:n+d(w)}).then(()=>p.notify("AnimationComplete",e)))}),Promise.all(a)}function hB(t,e){return t.sortNodePosition(e)}function pB(t,e,n={}){t.notify("AnimationStart",e);let r;if(Array.isArray(e)){const i=e.map(o=>qm(t,o,n));r=Promise.all(i)}else if(typeof e=="string")r=qm(t,e,n);else{const i=typeof e=="function"?Ap(t,e,n.custom):e;r=Promise.all(hE(t,i,n))}return r.then(()=>{t.notify("AnimationComplete",e)})}const gB=Zv.length;function pE(t){if(!t)return;if(!t.isControllingVariants){const n=t.parent?pE(t.parent)||{}:{};return t.props.initial!==void 0&&(n.initial=t.props.initial),n}const e={};for(let n=0;n<gB;n++){const r=Zv[n],i=t.props[r];(Ad(i)||i===!1)&&(e[r]=i)}return e}const mB=[...Kv].reverse(),vB=Kv.length;function yB(t){return e=>Promise.all(e.map(({animation:n,options:r})=>pB(t,n,r)))}function bB(t){let e=yB(t),n=Yw(),r=!0;const i=d=>(p,w)=>{var m;const T=Ap(t,w,d==="exit"?(m=t.presenceContext)===null||m===void 0?void 0:m.custom:void 0);if(T){const{transition:E,transitionEnd:A,...I}=T;p={...p,...I,...A}}return p};function o(d){e=d(t)}function a(d){const{props:p}=t,w=pE(t.parent)||{},m=[],T=new Set;let E={},A=1/0;for(let j=0;j<vB;j++){const _=mB[j],U=n[_],G=p[_]!==void 0?p[_]:w[_],re=Ad(G),q=_===d?U.isActive:null;q===!1&&(A=j);let se=G===w[_]&&G!==p[_]&&re;if(se&&r&&t.manuallyAnimateOnMount&&(se=!1),U.protectedKeys={...E},!U.isActive&&q===null||!G&&!U.prevProp||_p(G)||typeof G=="boolean")continue;const S=wB(U.prevProp,G);let ue=S||_===d&&U.isActive&&!se&&re||j>A&&re,ae=!1;const Ue=Array.isArray(G)?G:[G];let nt=Ue.reduce(i(_),{});q===!1&&(nt={});const{prevResolvedValues:et={}}=U,De={...et,...nt},Me=Pe=>{ue=!0,T.has(Pe)&&(ae=!0,T.delete(Pe)),U.needsAnimating[Pe]=!0;const Be=t.getValue(Pe);Be&&(Be.liveStyle=!1)};for(const Pe in De){const Be=nt[Pe],Ze=et[Pe];if(E.hasOwnProperty(Pe))continue;let ve=!1;jm(Be)&&jm(Ze)?ve=!DC(Be,Ze):ve=Be!==Ze,ve?Be!=null?Me(Pe):T.add(Pe):Be!==void 0&&T.has(Pe)?Me(Pe):U.protectedKeys[Pe]=!0}U.prevProp=G,U.prevResolvedValues=nt,U.isActive&&(E={...E,...nt}),r&&t.blockInitialAnimation&&(ue=!1),ue&&(!(se&&S)||ae)&&m.push(...Ue.map(Pe=>({animation:Pe,options:{type:_}})))}if(T.size){const j={};T.forEach(_=>{const U=t.getBaseTarget(_),G=t.getValue(_);G&&(G.liveStyle=!0),j[_]=U??null}),m.push({animation:j})}let I=!!m.length;return r&&(p.initial===!1||p.initial===p.animate)&&!t.manuallyAnimateOnMount&&(I=!1),r=!1,I?e(m):Promise.resolve()}function c(d,p){var w;if(n[d].isActive===p)return Promise.resolve();(w=t.variantChildren)===null||w===void 0||w.forEach(T=>{var E;return(E=T.animationState)===null||E===void 0?void 0:E.setActive(d,p)}),n[d].isActive=p;const m=a(d);for(const T in n)n[T].protectedKeys={};return m}return{animateChanges:a,setActive:c,setAnimateFunction:o,getState:()=>n,reset:()=>{n=Yw(),r=!0}}}function wB(t,e){return typeof e=="string"?e!==t:Array.isArray(e)?!DC(e,t):!1}function oc(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Yw(){return{animate:oc(!0),whileInView:oc(),whileHover:oc(),whileTap:oc(),whileDrag:oc(),whileFocus:oc(),exit:oc()}}let Cu=class{constructor(e){this.isMounted=!1,this.node=e}update(){}},xB=class extends Cu{constructor(e){super(e),e.animationState||(e.animationState=bB(e))}updateAnimationControlsSubscription(){const{animate:e}=this.node.getProps();_p(e)&&(this.unmountControls=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:e}=this.node.getProps(),{animate:n}=this.node.prevProps||{};e!==n&&this.updateAnimationControlsSubscription()}unmount(){var e;this.node.animationState.reset(),(e=this.unmountControls)===null||e===void 0||e.call(this)}},SB=0,TB=class extends Cu{constructor(){super(...arguments),this.id=SB++}update(){if(!this.node.presenceContext)return;const{isPresent:e,onExitComplete:n}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===r)return;const i=this.node.animationState.setActive("exit",!e);n&&!e&&i.then(()=>n(this.id))}mount(){const{register:e}=this.node.presenceContext||{};e&&(this.unmount=e(this.id))}unmount(){}};const CB={animation:{Feature:xB},exit:{Feature:TB}};function Fd(t,e,n,r={passive:!0}){return t.addEventListener(e,n,r),()=>t.removeEventListener(e,n)}function qd(t){return{point:{x:t.pageX,y:t.pageY}}}const EB=t=>e=>dy(e)&&t(e,qd(e));function yd(t,e,n,r){return Fd(t,e,EB(n),r)}const Gw=(t,e)=>Math.abs(t-e);function kB(t,e){const n=Gw(t.x,e.x),r=Gw(t.y,e.y);return Math.sqrt(n**2+r**2)}let gE=class{constructor(e,n,{transformPagePoint:r,contextWindow:i,dragSnapToOrigin:o=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const m=Vg(this.lastMoveEventInfo,this.history),T=this.startEvent!==null,E=kB(m.offset,{x:0,y:0})>=3;if(!T&&!E)return;const{point:A}=m,{timestamp:I}=Ci;this.history.push({...A,timestamp:I});const{onStart:j,onMove:_}=this.handlers;T||(j&&j(this.lastMoveEvent,m),this.startEvent=this.lastMoveEvent),_&&_(this.lastMoveEvent,m)},this.handlePointerMove=(m,T)=>{this.lastMoveEvent=m,this.lastMoveEventInfo=$g(T,this.transformPagePoint),Fn.update(this.updatePoint,!0)},this.handlePointerUp=(m,T)=>{this.end();const{onEnd:E,onSessionEnd:A,resumeAnimation:I}=this.handlers;if(this.dragSnapToOrigin&&I&&I(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const j=Vg(m.type==="pointercancel"?this.lastMoveEventInfo:$g(T,this.transformPagePoint),this.history);this.startEvent&&E&&E(m,j),A&&A(m,j)},!dy(e))return;this.dragSnapToOrigin=o,this.handlers=n,this.transformPagePoint=r,this.contextWindow=i||window;const a=qd(e),c=$g(a,this.transformPagePoint),{point:d}=c,{timestamp:p}=Ci;this.history=[{...d,timestamp:p}];const{onSessionStart:w}=n;w&&w(e,Vg(c,this.history)),this.removeListeners=Gd(yd(this.contextWindow,"pointermove",this.handlePointerMove),yd(this.contextWindow,"pointerup",this.handlePointerUp),yd(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),yu(this.updatePoint)}};function $g(t,e){return e?{point:e(t.point)}:t}function qw(t,e){return{x:t.x-e.x,y:t.y-e.y}}function Vg({point:t},e){return{point:t,delta:qw(t,mE(e)),offset:qw(t,DB(e)),velocity:PB(e,.1)}}function DB(t){return t[0]}function mE(t){return t[t.length-1]}function PB(t,e){if(t.length<2)return{x:0,y:0};let n=t.length-1,r=null;const i=mE(t);for(;n>=0&&(r=t[n],!(i.timestamp-r.timestamp>Na(e)));)n--;if(!r)return{x:0,y:0};const o=Sl(i.timestamp-r.timestamp);if(o===0)return{x:0,y:0};const a={x:(i.x-r.x)/o,y:(i.y-r.y)/o};return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}const vE=1e-4,OB=1-vE,_B=1+vE,yE=.01,RB=0-yE,AB=0+yE;function Qo(t){return t.max-t.min}function IB(t,e,n){return Math.abs(t-e)<=n}function Xw(t,e,n,r=.5){t.origin=r,t.originPoint=Kn(e.min,e.max,t.origin),t.scale=Qo(n)/Qo(e),t.translate=Kn(n.min,n.max,t.origin)-t.originPoint,(t.scale>=OB&&t.scale<=_B||isNaN(t.scale))&&(t.scale=1),(t.translate>=RB&&t.translate<=AB||isNaN(t.translate))&&(t.translate=0)}function bd(t,e,n,r){Xw(t.x,e.x,n.x,r?r.originX:void 0),Xw(t.y,e.y,n.y,r?r.originY:void 0)}function Kw(t,e,n){t.min=n.min+e.min,t.max=t.min+Qo(e)}function MB(t,e,n){Kw(t.x,e.x,n.x),Kw(t.y,e.y,n.y)}function Zw(t,e,n){t.min=e.min-n.min,t.max=t.min+Qo(e)}function wd(t,e,n){Zw(t.x,e.x,n.x),Zw(t.y,e.y,n.y)}function LB(t,{min:e,max:n},r){return e!==void 0&&t<e?t=r?Kn(e,t,r.min):Math.max(t,e):n!==void 0&&t>n&&(t=r?Kn(n,t,r.max):Math.min(t,n)),t}function Jw(t,e,n){return{min:e!==void 0?t.min+e:void 0,max:n!==void 0?t.max+n-(t.max-t.min):void 0}}function FB(t,{top:e,left:n,bottom:r,right:i}){return{x:Jw(t.x,n,i),y:Jw(t.y,e,r)}}function Qw(t,e){let n=e.min-t.min,r=e.max-t.max;return e.max-e.min<t.max-t.min&&([n,r]=[r,n]),{min:n,max:r}}function NB(t,e){return{x:Qw(t.x,e.x),y:Qw(t.y,e.y)}}function jB(t,e){let n=.5;const r=Qo(t),i=Qo(e);return i>r?n=Df(e.min,e.max-r,t.min):r>i&&(n=Df(t.min,t.max-i,e.min)),kl(0,1,n)}function BB(t,e){const n={};return e.min!==void 0&&(n.min=e.min-t.min),e.max!==void 0&&(n.max=e.max-t.min),n}const Xm=.35;function $B(t=Xm){return t===!1?t=0:t===!0&&(t=Xm),{x:ex(t,"left","right"),y:ex(t,"top","bottom")}}function ex(t,e,n){return{min:tx(t,e),max:tx(t,n)}}function tx(t,e){return typeof t=="number"?t:t[e]||0}const nx=()=>({translate:0,scale:1,origin:0,originPoint:0}),mf=()=>({x:nx(),y:nx()}),rx=()=>({min:0,max:0}),gr=()=>({x:rx(),y:rx()});function Ds(t){return[t("x"),t("y")]}function bE({top:t,left:e,right:n,bottom:r}){return{x:{min:e,max:n},y:{min:t,max:r}}}function VB({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}function HB(t,e){if(!e)return t;const n=e({x:t.left,y:t.top}),r=e({x:t.right,y:t.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function Hg(t){return t===void 0||t===1}function Km({scale:t,scaleX:e,scaleY:n}){return!Hg(t)||!Hg(e)||!Hg(n)}function uc(t){return Km(t)||wE(t)||t.z||t.rotate||t.rotateX||t.rotateY||t.skewX||t.skewY}function wE(t){return ix(t.x)||ix(t.y)}function ix(t){return t&&t!=="0%"}function lp(t,e,n){const r=t-n,i=e*r;return n+i}function ox(t,e,n,r,i){return i!==void 0&&(t=lp(t,i,r)),lp(t,n,r)+e}function Zm(t,e=0,n=1,r,i){t.min=ox(t.min,e,n,r,i),t.max=ox(t.max,e,n,r,i)}function xE(t,{x:e,y:n}){Zm(t.x,e.translate,e.scale,e.originPoint),Zm(t.y,n.translate,n.scale,n.originPoint)}const sx=.999999999999,ax=1.0000000000001;function UB(t,e,n,r=!1){const i=n.length;if(!i)return;e.x=e.y=1;let o,a;for(let c=0;c<i;c++){o=n[c],a=o.projectionDelta;const{visualElement:d}=o.options;d&&d.props.style&&d.props.style.display==="contents"||(r&&o.options.layoutScroll&&o.scroll&&o!==o.root&&yf(t,{x:-o.scroll.offset.x,y:-o.scroll.offset.y}),a&&(e.x*=a.x.scale,e.y*=a.y.scale,xE(t,a)),r&&uc(o.latestValues)&&yf(t,o.latestValues))}e.x<ax&&e.x>sx&&(e.x=1),e.y<ax&&e.y>sx&&(e.y=1)}function vf(t,e){t.min=t.min+e,t.max=t.max+e}function lx(t,e,n,r,i=.5){const o=Kn(t.min,t.max,i);Zm(t,e,n,o,r)}function yf(t,e){lx(t.x,e.x,e.scaleX,e.scale,e.originX),lx(t.y,e.y,e.scaleY,e.scale,e.originY)}function SE(t,e){return bE(HB(t.getBoundingClientRect(),e))}function WB(t,e,n){const r=SE(t,n),{scroll:i}=e;return i&&(vf(r.x,i.offset.x),vf(r.y,i.offset.y)),r}const TE=({current:t})=>t?t.ownerDocument.defaultView:null,zB=new WeakMap;let YB=class{constructor(e){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=gr(),this.visualElement=e}start(e,{snapToCursor:n=!1}={}){const{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;const i=w=>{const{dragSnapToOrigin:m}=this.getProps();m?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(qd(w).point)},o=(w,m)=>{const{drag:T,dragPropagation:E,onDragStart:A}=this.getProps();if(T&&!E&&(this.openDragLock&&this.openDragLock(),this.openDragLock=jN(T),!this.openDragLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Ds(j=>{let _=this.getAxisMotionValue(j).get()||0;if(ja.test(_)){const{projection:U}=this.visualElement;if(U&&U.layout){const G=U.layout.layoutBox[j];G&&(_=Qo(G)*(parseFloat(_)/100))}}this.originPoint[j]=_}),A&&Fn.postRender(()=>A(w,m)),Vm(this.visualElement,"transform");const{animationState:I}=this.visualElement;I&&I.setActive("whileDrag",!0)},a=(w,m)=>{const{dragPropagation:T,dragDirectionLock:E,onDirectionLock:A,onDrag:I}=this.getProps();if(!T&&!this.openDragLock)return;const{offset:j}=m;if(E&&this.currentDirection===null){this.currentDirection=GB(j),this.currentDirection!==null&&A&&A(this.currentDirection);return}this.updateAxis("x",m.point,j),this.updateAxis("y",m.point,j),this.visualElement.render(),I&&I(w,m)},c=(w,m)=>this.stop(w,m),d=()=>Ds(w=>{var m;return this.getAnimationState(w)==="paused"&&((m=this.getAxisMotionValue(w).animation)===null||m===void 0?void 0:m.play())}),{dragSnapToOrigin:p}=this.getProps();this.panSession=new gE(e,{onSessionStart:i,onStart:o,onMove:a,onSessionEnd:c,resumeAnimation:d},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:p,contextWindow:TE(this.visualElement)})}stop(e,n){const r=this.isDragging;if(this.cancel(),!r)return;const{velocity:i}=n;this.startAnimation(i);const{onDragEnd:o}=this.getProps();o&&Fn.postRender(()=>o(e,n))}cancel(){this.isDragging=!1;const{projection:e,animationState:n}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:r}=this.getProps();!r&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(e,n,r){const{drag:i}=this.getProps();if(!r||!Ch(e,i,this.currentDirection))return;const o=this.getAxisMotionValue(e);let a=this.originPoint[e]+r[e];this.constraints&&this.constraints[e]&&(a=LB(a,this.constraints[e],this.elastic[e])),o.set(a)}resolveConstraints(){var e;const{dragConstraints:n,dragElastic:r}=this.getProps(),i=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(e=this.visualElement.projection)===null||e===void 0?void 0:e.layout,o=this.constraints;n&&pf(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&i?this.constraints=FB(i.layoutBox,n):this.constraints=!1,this.elastic=$B(r),o!==this.constraints&&i&&this.constraints&&!this.hasMutatedConstraints&&Ds(a=>{this.constraints!==!1&&this.getAxisMotionValue(a)&&(this.constraints[a]=BB(i.layoutBox[a],this.constraints[a]))})}resolveRefConstraints(){const{dragConstraints:e,onMeasureDragConstraints:n}=this.getProps();if(!e||!pf(e))return!1;const r=e.current;vu(r!==null,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");const{projection:i}=this.visualElement;if(!i||!i.layout)return!1;const o=WB(r,i.root,this.visualElement.getTransformPagePoint());let a=NB(i.layout.layoutBox,o);if(n){const c=n(VB(a));this.hasMutatedConstraints=!!c,c&&(a=bE(c))}return a}startAnimation(e){const{drag:n,dragMomentum:r,dragElastic:i,dragTransition:o,dragSnapToOrigin:a,onDragTransitionEnd:c}=this.getProps(),d=this.constraints||{},p=Ds(w=>{if(!Ch(w,n,this.currentDirection))return;let m=d&&d[w]||{};a&&(m={min:0,max:0});const T=i?200:1e6,E=i?40:1e7,A={type:"inertia",velocity:r?e[w]:0,bounceStiffness:T,bounceDamping:E,timeConstant:750,restDelta:1,restSpeed:10,...o,...m};return this.startAxisValueAnimation(w,A)});return Promise.all(p).then(c)}startAxisValueAnimation(e,n){const r=this.getAxisMotionValue(e);return Vm(this.visualElement,e),r.start(Cy(e,r,0,n,this.visualElement,!1))}stopAnimation(){Ds(e=>this.getAxisMotionValue(e).stop())}pauseAnimation(){Ds(e=>{var n;return(n=this.getAxisMotionValue(e).animation)===null||n===void 0?void 0:n.pause()})}getAnimationState(e){var n;return(n=this.getAxisMotionValue(e).animation)===null||n===void 0?void 0:n.state}getAxisMotionValue(e){const n=`_drag${e.toUpperCase()}`,r=this.visualElement.getProps(),i=r[n];return i||this.visualElement.getValue(e,(r.initial?r.initial[e]:void 0)||0)}snapToCursor(e){Ds(n=>{const{drag:r}=this.getProps();if(!Ch(n,r,this.currentDirection))return;const{projection:i}=this.visualElement,o=this.getAxisMotionValue(n);if(i&&i.layout){const{min:a,max:c}=i.layout.layoutBox[n];o.set(e[n]-Kn(a,c,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:e,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!pf(n)||!r||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};Ds(a=>{const c=this.getAxisMotionValue(a);if(c&&this.constraints!==!1){const d=c.get();i[a]=jB({min:d,max:d},this.constraints[a])}});const{transformTemplate:o}=this.visualElement.getProps();this.visualElement.current.style.transform=o?o({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),Ds(a=>{if(!Ch(a,e,null))return;const c=this.getAxisMotionValue(a),{min:d,max:p}=this.constraints[a];c.set(Kn(d,p,i[a]))})}addListeners(){if(!this.visualElement.current)return;zB.set(this.visualElement,this);const e=this.visualElement.current,n=yd(e,"pointerdown",d=>{const{drag:p,dragListener:w=!0}=this.getProps();p&&w&&this.start(d)}),r=()=>{const{dragConstraints:d}=this.getProps();pf(d)&&d.current&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,o=i.addEventListener("measure",r);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),Fn.read(r);const a=Fd(window,"resize",()=>this.scalePositionWithinConstraints()),c=i.addEventListener("didUpdate",({delta:d,hasLayoutChanged:p})=>{this.isDragging&&p&&(Ds(w=>{const m=this.getAxisMotionValue(w);m&&(this.originPoint[w]+=d[w].translate,m.set(m.get()+d[w].translate))}),this.visualElement.render())});return()=>{a(),n(),o(),c&&c()}}getProps(){const e=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:i=!1,dragConstraints:o=!1,dragElastic:a=Xm,dragMomentum:c=!0}=e;return{...e,drag:n,dragDirectionLock:r,dragPropagation:i,dragConstraints:o,dragElastic:a,dragMomentum:c}}};function Ch(t,e,n){return(e===!0||e===t)&&(n===null||n===t)}function GB(t,e=10){let n=null;return Math.abs(t.y)>e?n="y":Math.abs(t.x)>e&&(n="x"),n}let qB=class extends Cu{constructor(e){super(e),this.removeGroupControls=_o,this.removeListeners=_o,this.controls=new YB(e)}mount(){const{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||_o}unmount(){this.removeGroupControls(),this.removeListeners()}};const ux=t=>(e,n)=>{t&&Fn.postRender(()=>t(e,n))};let XB=class extends Cu{constructor(){super(...arguments),this.removePointerDownListener=_o}onPointerDown(e){this.session=new gE(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:TE(this.node)})}createPanHandlers(){const{onPanSessionStart:e,onPanStart:n,onPan:r,onPanEnd:i}=this.node.getProps();return{onSessionStart:ux(e),onStart:ux(n),onMove:r,onEnd:(o,a)=>{delete this.session,i&&Fn.postRender(()=>i(o,a))}}}mount(){this.removePointerDownListener=yd(this.node.current,"pointerdown",e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}};const Bh={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function cx(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}const id={correct:(t,e)=>{if(!e.target)return t;if(typeof t=="string")if(Ot.test(t))t=parseFloat(t);else return t;const n=cx(t,e.target.x),r=cx(t,e.target.y);return`${n}% ${r}%`}},KB={correct:(t,{treeScale:e,projectionDelta:n})=>{const r=t,i=bu.parse(t);if(i.length>5)return r;const o=bu.createTransformer(t),a=typeof i[0]!="number"?1:0,c=n.x.scale*e.x,d=n.y.scale*e.y;i[0+a]/=c,i[1+a]/=d;const p=Kn(c,d,.5);return typeof i[2+a]=="number"&&(i[2+a]/=p),typeof i[3+a]=="number"&&(i[3+a]/=p),o(i)}};let ZB=class extends X.Component{componentDidMount(){const{visualElement:e,layoutGroup:n,switchLayoutGroup:r,layoutId:i}=this.props,{projection:o}=e;vN(JB),o&&(n.group&&n.group.add(o),r&&r.register&&i&&r.register(o),o.root.didUpdate(),o.addEventListener("animationComplete",()=>{this.safeToRemove()}),o.setOptions({...o.options,onExitComplete:()=>this.safeToRemove()})),Bh.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){const{layoutDependency:n,visualElement:r,drag:i,isPresent:o}=this.props,a=r.projection;return a&&(a.isPresent=o,i||e.layoutDependency!==n||n===void 0?a.willUpdate():this.safeToRemove(),e.isPresent!==o&&(o?a.promote():a.relegate()||Fn.postRender(()=>{const c=a.getStack();(!c||!c.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:e}=this.props.visualElement;e&&(e.root.didUpdate(),Qv.postRender(()=>{!e.currentAnimation&&e.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:e,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:i}=e;i&&(i.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(i),r&&r.deregister&&r.deregister(i))}safeToRemove(){const{safeToRemove:e}=this.props;e&&e()}render(){return null}};function CE(t){const[e,n]=AF(),r=X.useContext(aC);return Re.jsx(ZB,{...t,layoutGroup:r,switchLayoutGroup:X.useContext(pC),isPresent:e,safeToRemove:n})}const JB={borderRadius:{...id,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:id,borderTopRightRadius:id,borderBottomLeftRadius:id,borderBottomRightRadius:id,boxShadow:KB};function QB(t,e,n){const r=ji(t)?t:Md(t);return r.start(Cy("",r,e,n)),r.animation}function e$(t){return t instanceof SVGElement&&t.tagName!=="svg"}const t$=(t,e)=>t.depth-e.depth;let n$=class{constructor(){this.children=[],this.isDirty=!1}add(e){hy(this.children,e),this.isDirty=!0}remove(e){py(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(t$),this.isDirty=!1,this.children.forEach(e)}};function r$(t,e){const n=Ba.now(),r=({timestamp:i})=>{const o=i-n;o>=e&&(yu(r),t(o-e))};return Fn.read(r,!0),()=>yu(r)}const EE=["TopLeft","TopRight","BottomLeft","BottomRight"],i$=EE.length,fx=t=>typeof t=="string"?parseFloat(t):t,dx=t=>typeof t=="number"||Ot.test(t);function o$(t,e,n,r,i,o){i?(t.opacity=Kn(0,n.opacity!==void 0?n.opacity:1,s$(r)),t.opacityExit=Kn(e.opacity!==void 0?e.opacity:1,0,a$(r))):o&&(t.opacity=Kn(e.opacity!==void 0?e.opacity:1,n.opacity!==void 0?n.opacity:1,r));for(let a=0;a<i$;a++){const c=`border${EE[a]}Radius`;let d=hx(e,c),p=hx(n,c);if(d===void 0&&p===void 0)continue;d||(d=0),p||(p=0),d===0||p===0||dx(d)===dx(p)?(t[c]=Math.max(Kn(fx(d),fx(p),r),0),(ja.test(p)||ja.test(d))&&(t[c]+="%")):t[c]=p}(e.rotate||n.rotate)&&(t.rotate=Kn(e.rotate||0,n.rotate||0,r))}function hx(t,e){return t[e]!==void 0?t[e]:t.borderRadius}const s$=kE(0,.5,WC),a$=kE(.5,.95,_o);function kE(t,e,n){return r=>r<t?0:r>e?1:n(Df(t,e,r))}function px(t,e){t.min=e.min,t.max=e.max}function Ts(t,e){px(t.x,e.x),px(t.y,e.y)}function gx(t,e){t.translate=e.translate,t.scale=e.scale,t.originPoint=e.originPoint,t.origin=e.origin}function mx(t,e,n,r,i){return t-=e,t=lp(t,1/n,r),i!==void 0&&(t=lp(t,1/i,r)),t}function l$(t,e=0,n=1,r=.5,i,o=t,a=t){if(ja.test(e)&&(e=parseFloat(e),e=Kn(a.min,a.max,e/100)-a.min),typeof e!="number")return;let c=Kn(o.min,o.max,r);t===o&&(c-=e),t.min=mx(t.min,e,n,c,i),t.max=mx(t.max,e,n,c,i)}function vx(t,e,[n,r,i],o,a){l$(t,e[n],e[r],e[i],e.scale,o,a)}const u$=["x","scaleX","originX"],c$=["y","scaleY","originY"];function yx(t,e,n,r){vx(t.x,e,u$,n?n.x:void 0,r?r.x:void 0),vx(t.y,e,c$,n?n.y:void 0,r?r.y:void 0)}function bx(t){return t.translate===0&&t.scale===1}function DE(t){return bx(t.x)&&bx(t.y)}function wx(t,e){return t.min===e.min&&t.max===e.max}function f$(t,e){return wx(t.x,e.x)&&wx(t.y,e.y)}function xx(t,e){return Math.round(t.min)===Math.round(e.min)&&Math.round(t.max)===Math.round(e.max)}function PE(t,e){return xx(t.x,e.x)&&xx(t.y,e.y)}function Sx(t){return Qo(t.x)/Qo(t.y)}function Tx(t,e){return t.translate===e.translate&&t.scale===e.scale&&t.originPoint===e.originPoint}let d$=class{constructor(){this.members=[]}add(e){hy(this.members,e),e.scheduleRender()}remove(e){if(py(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(e){const n=this.members.findIndex(i=>e===i);if(n===0)return!1;let r;for(let i=n;i>=0;i--){const o=this.members[i];if(o.isPresent!==!1){r=o;break}}return r?(this.promote(r),!0):!1}promote(e,n){const r=this.lead;if(e!==r&&(this.prevLead=r,this.lead=e,e.show(),r)){r.instance&&r.scheduleRender(),e.scheduleRender(),e.resumeFrom=r,n&&(e.resumeFrom.preserveOpacity=!0),r.snapshot&&(e.snapshot=r.snapshot,e.snapshot.latestValues=r.animationValues||r.latestValues),e.root&&e.root.isUpdating&&(e.isLayoutDirty=!0);const{crossfade:i}=e.options;i===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(e=>{const{options:n,resumingFrom:r}=e;n.onExitComplete&&n.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(e=>{e.instance&&e.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}};function h$(t,e,n){let r="";const i=t.x.translate/e.x,o=t.y.translate/e.y,a=(n==null?void 0:n.z)||0;if((i||o||a)&&(r=`translate3d(${i}px, ${o}px, ${a}px) `),(e.x!==1||e.y!==1)&&(r+=`scale(${1/e.x}, ${1/e.y}) `),n){const{transformPerspective:p,rotate:w,rotateX:m,rotateY:T,skewX:E,skewY:A}=n;p&&(r=`perspective(${p}px) ${r}`),w&&(r+=`rotate(${w}deg) `),m&&(r+=`rotateX(${m}deg) `),T&&(r+=`rotateY(${T}deg) `),E&&(r+=`skewX(${E}deg) `),A&&(r+=`skewY(${A}deg) `)}const c=t.x.scale*e.x,d=t.y.scale*e.y;return(c!==1||d!==1)&&(r+=`scale(${c}, ${d})`),r||"none"}const cc={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0},fd=typeof window<"u"&&window.MotionDebug!==void 0,Ug=["","X","Y","Z"],p$={visibility:"hidden"},Cx=1e3;let g$=0;function Wg(t,e,n,r){const{latestValues:i}=e;i[t]&&(n[t]=i[t],e.setStaticValue(t,0),r&&(r[t]=0))}function OE(t){if(t.hasCheckedOptimisedAppear=!0,t.root===t)return;const{visualElement:e}=t.options;if(!e)return;const n=NC(e);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:i,layoutId:o}=t.options;window.MotionCancelOptimisedAnimation(n,"transform",Fn,!(i||o))}const{parent:r}=t;r&&!r.hasCheckedOptimisedAppear&&OE(r)}function _E({attachResizeListener:t,defaultParent:e,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(a={},c=e==null?void 0:e()){this.id=g$++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,fd&&(cc.totalNodes=cc.resolvedTargetDeltas=cc.recalculatedProjection=0),this.nodes.forEach(y$),this.nodes.forEach(T$),this.nodes.forEach(C$),this.nodes.forEach(b$),fd&&window.MotionDebug.record(cc)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=a,this.root=c?c.root||c:this,this.path=c?[...c.path,c]:[],this.parent=c,this.depth=c?c.depth+1:0;for(let d=0;d<this.path.length;d++)this.path[d].shouldResetTransform=!0;this.root===this&&(this.nodes=new n$)}addEventListener(a,c){return this.eventHandlers.has(a)||this.eventHandlers.set(a,new gy),this.eventHandlers.get(a).add(c)}notifyListeners(a,...c){const d=this.eventHandlers.get(a);d&&d.notify(...c)}hasListeners(a){return this.eventHandlers.has(a)}mount(a,c=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=e$(a),this.instance=a;const{layoutId:d,layout:p,visualElement:w}=this.options;if(w&&!w.current&&w.mount(a),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),c&&(p||d)&&(this.isLayoutDirty=!0),t){let m;const T=()=>this.root.updateBlockedByResize=!1;t(a,()=>{this.root.updateBlockedByResize=!0,m&&m(),m=r$(T,250),Bh.hasAnimatedSinceResize&&(Bh.hasAnimatedSinceResize=!1,this.nodes.forEach(kx))})}d&&this.root.registerSharedNode(d,this),this.options.animate!==!1&&w&&(d||p)&&this.addEventListener("didUpdate",({delta:m,hasLayoutChanged:T,hasRelativeTargetChanged:E,layout:A})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const I=this.options.transition||w.getDefaultTransition()||O$,{onLayoutAnimationStart:j,onLayoutAnimationComplete:_}=w.getProps(),U=!this.targetLayout||!PE(this.targetLayout,A)||E,G=!T&&E;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||G||T&&(U||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(m,G);const re={...uy(I,"layout"),onPlay:j,onComplete:_};(w.shouldReduceMotion||this.options.layoutRoot)&&(re.delay=0,re.type=!1),this.startAnimation(re)}else T||kx(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=A})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const a=this.getStack();a&&a.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,yu(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(E$),this.animationId++)}getTransformTemplate(){const{visualElement:a}=this.options;return a&&a.getProps().transformTemplate}willUpdate(a=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&OE(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let w=0;w<this.path.length;w++){const m=this.path[w];m.shouldResetTransform=!0,m.updateScroll("snapshot"),m.options.layoutRoot&&m.willUpdate(!1)}const{layoutId:c,layout:d}=this.options;if(c===void 0&&!d)return;const p=this.getTransformTemplate();this.prevTransformTemplateValue=p?p(this.latestValues,""):void 0,this.updateSnapshot(),a&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(Ex);return}this.isUpdating||this.nodes.forEach(x$),this.isUpdating=!1,this.nodes.forEach(S$),this.nodes.forEach(m$),this.nodes.forEach(v$),this.clearAllSnapshots();const c=Ba.now();Ci.delta=kl(0,1e3/60,c-Ci.timestamp),Ci.timestamp=c,Ci.isProcessing=!0,Lg.update.process(Ci),Lg.preRender.process(Ci),Lg.render.process(Ci),Ci.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,Qv.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(w$),this.sharedNodes.forEach(k$)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,Fn.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){Fn.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure())}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let d=0;d<this.path.length;d++)this.path[d].updateScroll();const a=this.layout;this.layout=this.measure(!1),this.layoutCorrected=gr(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:c}=this.options;c&&c.notify("LayoutMeasure",this.layout.layoutBox,a?a.layoutBox:void 0)}updateScroll(a="measure"){let c=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===a&&(c=!1),c){const d=r(this.instance);this.scroll={animationId:this.root.animationId,phase:a,isRoot:d,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:d}}}resetTransform(){if(!i)return;const a=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,c=this.projectionDelta&&!DE(this.projectionDelta),d=this.getTransformTemplate(),p=d?d(this.latestValues,""):void 0,w=p!==this.prevTransformTemplateValue;a&&(c||uc(this.latestValues)||w)&&(i(this.instance,p),this.shouldResetTransform=!1,this.scheduleRender())}measure(a=!0){const c=this.measurePageBox();let d=this.removeElementScroll(c);return a&&(d=this.removeTransform(d)),_$(d),{animationId:this.root.animationId,measuredBox:c,layoutBox:d,latestValues:{},source:this.id}}measurePageBox(){var a;const{visualElement:c}=this.options;if(!c)return gr();const d=c.measureViewportBox();if(!(((a=this.scroll)===null||a===void 0?void 0:a.wasRoot)||this.path.some(R$))){const{scroll:w}=this.root;w&&(vf(d.x,w.offset.x),vf(d.y,w.offset.y))}return d}removeElementScroll(a){var c;const d=gr();if(Ts(d,a),!((c=this.scroll)===null||c===void 0)&&c.wasRoot)return d;for(let p=0;p<this.path.length;p++){const w=this.path[p],{scroll:m,options:T}=w;w!==this.root&&m&&T.layoutScroll&&(m.wasRoot&&Ts(d,a),vf(d.x,m.offset.x),vf(d.y,m.offset.y))}return d}applyTransform(a,c=!1){const d=gr();Ts(d,a);for(let p=0;p<this.path.length;p++){const w=this.path[p];!c&&w.options.layoutScroll&&w.scroll&&w!==w.root&&yf(d,{x:-w.scroll.offset.x,y:-w.scroll.offset.y}),uc(w.latestValues)&&yf(d,w.latestValues)}return uc(this.latestValues)&&yf(d,this.latestValues),d}removeTransform(a){const c=gr();Ts(c,a);for(let d=0;d<this.path.length;d++){const p=this.path[d];if(!p.instance||!uc(p.latestValues))continue;Km(p.latestValues)&&p.updateSnapshot();const w=gr(),m=p.measurePageBox();Ts(w,m),yx(c,p.latestValues,p.snapshot?p.snapshot.layoutBox:void 0,w)}return uc(this.latestValues)&&yx(c,this.latestValues),c}setTargetDelta(a){this.targetDelta=a,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(a){this.options={...this.options,...a,crossfade:a.crossfade!==void 0?a.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==Ci.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(a=!1){var c;const d=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=d.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=d.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=d.isSharedProjectionDirty);const p=!!this.resumingFrom||this!==d;if(!(a||p&&this.isSharedProjectionDirty||this.isProjectionDirty||!((c=this.parent)===null||c===void 0)&&c.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:m,layoutId:T}=this.options;if(!(!this.layout||!(m||T))){if(this.resolvedRelativeTargetAt=Ci.timestamp,!this.targetDelta&&!this.relativeTarget){const E=this.getClosestProjectingParent();E&&E.layout&&this.animationProgress!==1?(this.relativeParent=E,this.forceRelativeParentToResolveTarget(),this.relativeTarget=gr(),this.relativeTargetOrigin=gr(),wd(this.relativeTargetOrigin,this.layout.layoutBox,E.layout.layoutBox),Ts(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)){if(this.target||(this.target=gr(),this.targetWithTransforms=gr()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),MB(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):Ts(this.target,this.layout.layoutBox),xE(this.target,this.targetDelta)):Ts(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;const E=this.getClosestProjectingParent();E&&!!E.resumingFrom==!!this.resumingFrom&&!E.options.layoutScroll&&E.target&&this.animationProgress!==1?(this.relativeParent=E,this.forceRelativeParentToResolveTarget(),this.relativeTarget=gr(),this.relativeTargetOrigin=gr(),wd(this.relativeTargetOrigin,this.target,E.target),Ts(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}fd&&cc.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(!(!this.parent||Km(this.parent.latestValues)||wE(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var a;const c=this.getLead(),d=!!this.resumingFrom||this!==c;let p=!0;if((this.isProjectionDirty||!((a=this.parent)===null||a===void 0)&&a.isProjectionDirty)&&(p=!1),d&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(p=!1),this.resolvedRelativeTargetAt===Ci.timestamp&&(p=!1),p)return;const{layout:w,layoutId:m}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(w||m))return;Ts(this.layoutCorrected,this.layout.layoutBox);const T=this.treeScale.x,E=this.treeScale.y;UB(this.layoutCorrected,this.treeScale,this.path,d),c.layout&&!c.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(c.target=c.layout.layoutBox,c.targetWithTransforms=gr());const{target:A}=c;if(!A){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(gx(this.prevProjectionDelta.x,this.projectionDelta.x),gx(this.prevProjectionDelta.y,this.projectionDelta.y)),bd(this.projectionDelta,this.layoutCorrected,A,this.latestValues),(this.treeScale.x!==T||this.treeScale.y!==E||!Tx(this.projectionDelta.x,this.prevProjectionDelta.x)||!Tx(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",A)),fd&&cc.recalculatedProjection++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(a=!0){var c;if((c=this.options.visualElement)===null||c===void 0||c.scheduleRender(),a){const d=this.getStack();d&&d.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=mf(),this.projectionDelta=mf(),this.projectionDeltaWithTransform=mf()}setAnimationOrigin(a,c=!1){const d=this.snapshot,p=d?d.latestValues:{},w={...this.latestValues},m=mf();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!c;const T=gr(),E=d?d.source:void 0,A=this.layout?this.layout.source:void 0,I=E!==A,j=this.getStack(),_=!j||j.members.length<=1,U=!!(I&&!_&&this.options.crossfade===!0&&!this.path.some(P$));this.animationProgress=0;let G;this.mixTargetDelta=re=>{const q=re/1e3;Dx(m.x,a.x,q),Dx(m.y,a.y,q),this.setTargetDelta(m),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(wd(T,this.layout.layoutBox,this.relativeParent.layout.layoutBox),D$(this.relativeTarget,this.relativeTargetOrigin,T,q),G&&f$(this.relativeTarget,G)&&(this.isProjectionDirty=!1),G||(G=gr()),Ts(G,this.relativeTarget)),I&&(this.animationValues=w,o$(w,p,this.latestValues,q,U,_)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=q},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(a){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(yu(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Fn.update(()=>{Bh.hasAnimatedSinceResize=!0,this.currentAnimation=QB(0,Cx,{...a,onUpdate:c=>{this.mixTargetDelta(c),a.onUpdate&&a.onUpdate(c)},onComplete:()=>{a.onComplete&&a.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const a=this.getStack();a&&a.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(Cx),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const a=this.getLead();let{targetWithTransforms:c,target:d,layout:p,latestValues:w}=a;if(!(!c||!d||!p)){if(this!==a&&this.layout&&p&&RE(this.options.animationType,this.layout.layoutBox,p.layoutBox)){d=this.target||gr();const m=Qo(this.layout.layoutBox.x);d.x.min=a.target.x.min,d.x.max=d.x.min+m;const T=Qo(this.layout.layoutBox.y);d.y.min=a.target.y.min,d.y.max=d.y.min+T}Ts(c,d),yf(c,w),bd(this.projectionDeltaWithTransform,this.layoutCorrected,c,w)}}registerSharedNode(a,c){this.sharedNodes.has(a)||this.sharedNodes.set(a,new d$),this.sharedNodes.get(a).add(c);const p=c.options.initialPromotionConfig;c.promote({transition:p?p.transition:void 0,preserveFollowOpacity:p&&p.shouldPreserveFollowOpacity?p.shouldPreserveFollowOpacity(c):void 0})}isLead(){const a=this.getStack();return a?a.lead===this:!0}getLead(){var a;const{layoutId:c}=this.options;return c?((a=this.getStack())===null||a===void 0?void 0:a.lead)||this:this}getPrevLead(){var a;const{layoutId:c}=this.options;return c?(a=this.getStack())===null||a===void 0?void 0:a.prevLead:void 0}getStack(){const{layoutId:a}=this.options;if(a)return this.root.sharedNodes.get(a)}promote({needsReset:a,transition:c,preserveFollowOpacity:d}={}){const p=this.getStack();p&&p.promote(this,d),a&&(this.projectionDelta=void 0,this.needsReset=!0),c&&this.setOptions({transition:c})}relegate(){const a=this.getStack();return a?a.relegate(this):!1}resetSkewAndRotation(){const{visualElement:a}=this.options;if(!a)return;let c=!1;const{latestValues:d}=a;if((d.z||d.rotate||d.rotateX||d.rotateY||d.rotateZ||d.skewX||d.skewY)&&(c=!0),!c)return;const p={};d.z&&Wg("z",a,p,this.animationValues);for(let w=0;w<Ug.length;w++)Wg(`rotate${Ug[w]}`,a,p,this.animationValues),Wg(`skew${Ug[w]}`,a,p,this.animationValues);a.render();for(const w in p)a.setStaticValue(w,p[w]),this.animationValues&&(this.animationValues[w]=p[w]);a.scheduleRender()}getProjectionStyles(a){var c,d;if(!this.instance||this.isSVG)return;if(!this.isVisible)return p$;const p={visibility:""},w=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,p.opacity="",p.pointerEvents=Nh(a==null?void 0:a.pointerEvents)||"",p.transform=w?w(this.latestValues,""):"none",p;const m=this.getLead();if(!this.projectionDelta||!this.layout||!m.target){const I={};return this.options.layoutId&&(I.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,I.pointerEvents=Nh(a==null?void 0:a.pointerEvents)||""),this.hasProjected&&!uc(this.latestValues)&&(I.transform=w?w({},""):"none",this.hasProjected=!1),I}const T=m.animationValues||m.latestValues;this.applyTransformsToTarget(),p.transform=h$(this.projectionDeltaWithTransform,this.treeScale,T),w&&(p.transform=w(T,p.transform));const{x:E,y:A}=this.projectionDelta;p.transformOrigin=`${E.origin*100}% ${A.origin*100}% 0`,m.animationValues?p.opacity=m===this?(d=(c=T.opacity)!==null&&c!==void 0?c:this.latestValues.opacity)!==null&&d!==void 0?d:1:this.preserveOpacity?this.latestValues.opacity:T.opacityExit:p.opacity=m===this?T.opacity!==void 0?T.opacity:"":T.opacityExit!==void 0?T.opacityExit:0;for(const I in rp){if(T[I]===void 0)continue;const{correct:j,applyTo:_}=rp[I],U=p.transform==="none"?T[I]:j(T[I],m);if(_){const G=_.length;for(let re=0;re<G;re++)p[_[re]]=U}else p[I]=U}return this.options.layoutId&&(p.pointerEvents=m===this?Nh(a==null?void 0:a.pointerEvents)||"":"none"),p}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(a=>{var c;return(c=a.currentAnimation)===null||c===void 0?void 0:c.stop()}),this.root.nodes.forEach(Ex),this.root.sharedNodes.clear()}}}function m$(t){t.updateLayout()}function v$(t){var e;const n=((e=t.resumeFrom)===null||e===void 0?void 0:e.snapshot)||t.snapshot;if(t.isLead()&&t.layout&&n&&t.hasListeners("didUpdate")){const{layoutBox:r,measuredBox:i}=t.layout,{animationType:o}=t.options,a=n.source!==t.layout.source;o==="size"?Ds(m=>{const T=a?n.measuredBox[m]:n.layoutBox[m],E=Qo(T);T.min=r[m].min,T.max=T.min+E}):RE(o,n.layoutBox,r)&&Ds(m=>{const T=a?n.measuredBox[m]:n.layoutBox[m],E=Qo(r[m]);T.max=T.min+E,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[m].max=t.relativeTarget[m].min+E)});const c=mf();bd(c,r,n.layoutBox);const d=mf();a?bd(d,t.applyTransform(i,!0),n.measuredBox):bd(d,r,n.layoutBox);const p=!DE(c);let w=!1;if(!t.resumeFrom){const m=t.getClosestProjectingParent();if(m&&!m.resumeFrom){const{snapshot:T,layout:E}=m;if(T&&E){const A=gr();wd(A,n.layoutBox,T.layoutBox);const I=gr();wd(I,r,E.layoutBox),PE(A,I)||(w=!0),m.options.layoutRoot&&(t.relativeTarget=I,t.relativeTargetOrigin=A,t.relativeParent=m)}}}t.notifyListeners("didUpdate",{layout:r,snapshot:n,delta:d,layoutDelta:c,hasLayoutChanged:p,hasRelativeTargetChanged:w})}else if(t.isLead()){const{onExitComplete:r}=t.options;r&&r()}t.options.transition=void 0}function y$(t){fd&&cc.totalNodes++,t.parent&&(t.isProjecting()||(t.isProjectionDirty=t.parent.isProjectionDirty),t.isSharedProjectionDirty||(t.isSharedProjectionDirty=!!(t.isProjectionDirty||t.parent.isProjectionDirty||t.parent.isSharedProjectionDirty)),t.isTransformDirty||(t.isTransformDirty=t.parent.isTransformDirty))}function b$(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function w$(t){t.clearSnapshot()}function Ex(t){t.clearMeasurements()}function x$(t){t.isLayoutDirty=!1}function S$(t){const{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function kx(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function T$(t){t.resolveTargetDelta()}function C$(t){t.calcProjection()}function E$(t){t.resetSkewAndRotation()}function k$(t){t.removeLeadSnapshot()}function Dx(t,e,n){t.translate=Kn(e.translate,0,n),t.scale=Kn(e.scale,1,n),t.origin=e.origin,t.originPoint=e.originPoint}function Px(t,e,n,r){t.min=Kn(e.min,n.min,r),t.max=Kn(e.max,n.max,r)}function D$(t,e,n,r){Px(t.x,e.x,n.x,r),Px(t.y,e.y,n.y,r)}function P$(t){return t.animationValues&&t.animationValues.opacityExit!==void 0}const O$={duration:.45,ease:[.4,0,.1,1]},Ox=t=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(t),_x=Ox("applewebkit/")&&!Ox("chrome/")?Math.round:_o;function Rx(t){t.min=_x(t.min),t.max=_x(t.max)}function _$(t){Rx(t.x),Rx(t.y)}function RE(t,e,n){return t==="position"||t==="preserve-aspect"&&!IB(Sx(e),Sx(n),.2)}function R$(t){var e;return t!==t.root&&((e=t.scroll)===null||e===void 0?void 0:e.wasRoot)}const A$=_E({attachResizeListener:(t,e)=>Fd(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),zg={current:void 0},AE=_E({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!zg.current){const t=new A$({});t.mount(window),t.setOptions({layoutScroll:!0}),zg.current=t}return zg.current},resetTransform:(t,e)=>{t.style.transform=e!==void 0?e:"none"},checkIsScrollRoot:t=>window.getComputedStyle(t).position==="fixed"}),I$={pan:{Feature:XB},drag:{Feature:qB,ProjectionNode:AE,MeasureLayout:CE}};function Ax(t,e,n){const{props:r}=t;t.animationState&&r.whileHover&&t.animationState.setActive("whileHover",n==="Start");const i="onHover"+n,o=r[i];o&&Fn.postRender(()=>o(e,qd(e)))}let M$=class extends Cu{mount(){const{current:e}=this.node;e&&(this.unmount=IN(e,n=>(Ax(this.node,n,"Start"),r=>Ax(this.node,r,"End"))))}unmount(){}},L$=class extends Cu{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(":focus-visible")}catch{e=!0}!e||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=Gd(Fd(this.node.current,"focus",()=>this.onFocus()),Fd(this.node.current,"blur",()=>this.onBlur()))}unmount(){}};function Ix(t,e,n){const{props:r}=t;t.animationState&&r.whileTap&&t.animationState.setActive("whileTap",n==="Start");const i="onTap"+(n==="End"?"":n),o=r[i];o&&Fn.postRender(()=>o(e,qd(e)))}let F$=class extends Cu{mount(){const{current:e}=this.node;e&&(this.unmount=NN(e,n=>(Ix(this.node,n,"Start"),(r,{success:i})=>Ix(this.node,r,i?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}};const Jm=new WeakMap,Yg=new WeakMap,N$=t=>{const e=Jm.get(t.target);e&&e(t)},j$=t=>{t.forEach(N$)};function B$({root:t,...e}){const n=t||document;Yg.has(n)||Yg.set(n,{});const r=Yg.get(n),i=JSON.stringify(e);return r[i]||(r[i]=new IntersectionObserver(j$,{root:t,...e})),r[i]}function $$(t,e,n){const r=B$(e);return Jm.set(t,n),r.observe(t),()=>{Jm.delete(t),r.unobserve(t)}}const V$={some:0,all:1};let H$=class extends Cu{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:e={}}=this.node.getProps(),{root:n,margin:r,amount:i="some",once:o}=e,a={root:n?n.current:void 0,rootMargin:r,threshold:typeof i=="number"?i:V$[i]},c=d=>{const{isIntersecting:p}=d;if(this.isInView===p||(this.isInView=p,o&&!p&&this.hasEnteredView))return;p&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",p);const{onViewportEnter:w,onViewportLeave:m}=this.node.getProps(),T=p?w:m;T&&T(d)};return $$(this.node.current,a,c)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:e,prevProps:n}=this.node;["amount","margin","root"].some(U$(e,n))&&this.startObserver()}unmount(){}};function U$({viewport:t={}},{viewport:e={}}={}){return n=>t[n]!==e[n]}const W$={inView:{Feature:H$},tap:{Feature:F$},focus:{Feature:L$},hover:{Feature:M$}},z$={layout:{ProjectionNode:AE,MeasureLayout:CE}},Qm={current:null},IE={current:!1};function Y$(){if(IE.current=!0,!!qv)if(window.matchMedia){const t=window.matchMedia("(prefers-reduced-motion)"),e=()=>Qm.current=t.matches;t.addListener(e),e()}else Qm.current=!1}const G$=[...iE,Ni,bu],q$=t=>G$.find(rE(t)),Mx=new WeakMap;function X$(t,e,n){for(const r in e){const i=e[r],o=n[r];if(ji(i))t.addValue(r,i),process.env.NODE_ENV==="development"&&Pp(i.version==="11.18.2",`Attempting to mix Motion versions ${i.version} with 11.18.2 may not work as expected.`);else if(ji(o))t.addValue(r,Md(i,{owner:t}));else if(o!==i)if(t.hasValue(r)){const a=t.getValue(r);a.liveStyle===!0?a.jump(i):a.hasAnimated||a.set(i)}else{const a=t.getStaticValue(r);t.addValue(r,Md(a!==void 0?a:i,{owner:t}))}}for(const r in n)e[r]===void 0&&t.removeValue(r);return e}const Lx=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];let K$=class{scrapeMotionValuesFromProps(e,n,r){return{}}constructor({parent:e,props:n,presenceContext:r,reducedMotionConfig:i,blockInitialAnimation:o,visualState:a},c={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=xy,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const E=Ba.now();this.renderScheduledAt<E&&(this.renderScheduledAt=E,Fn.render(this.render,!1,!0))};const{latestValues:d,renderState:p,onUpdate:w}=a;this.onUpdate=w,this.latestValues=d,this.baseTarget={...d},this.initialValues=n.initial?{...d}:{},this.renderState=p,this.parent=e,this.props=n,this.presenceContext=r,this.depth=e?e.depth+1:0,this.reducedMotionConfig=i,this.options=c,this.blockInitialAnimation=!!o,this.isControllingVariants=Rp(n),this.isVariantNode=dC(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);const{willChange:m,...T}=this.scrapeMotionValuesFromProps(n,{},this);for(const E in T){const A=T[E];d[E]!==void 0&&ji(A)&&A.set(d[E],!1)}}mount(e){this.current=e,Mx.set(e,this),this.projection&&!this.projection.instance&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((n,r)=>this.bindToMotionValue(r,n)),IE.current||Y$(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:Qm.current,process.env.NODE_ENV!=="production"&&Pp(this.shouldReduceMotion!==!0,"You have Reduced Motion enabled on your device. Animations may not appear as expected."),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){Mx.delete(this.current),this.projection&&this.projection.unmount(),yu(this.notifyUpdate),yu(this.render),this.valueSubscriptions.forEach(e=>e()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const e in this.events)this.events[e].clear();for(const e in this.features){const n=this.features[e];n&&(n.unmount(),n.isMounted=!1)}this.current=null}bindToMotionValue(e,n){this.valueSubscriptions.has(e)&&this.valueSubscriptions.get(e)();const r=_c.has(e),i=n.on("change",c=>{this.latestValues[e]=c,this.props.onUpdate&&Fn.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0)}),o=n.on("renderRequest",this.scheduleRender);let a;window.MotionCheckAppearSync&&(a=window.MotionCheckAppearSync(this,e,n)),this.valueSubscriptions.set(e,()=>{i(),o(),a&&a(),n.owner&&n.stop()})}sortNodePosition(e){return!this.current||!this.sortInstanceNodePosition||this.type!==e.type?0:this.sortInstanceNodePosition(this.current,e.current)}updateFeatures(){let e="animation";for(e in Pf){const n=Pf[e];if(!n)continue;const{isEnabled:r,Feature:i}=n;if(!this.features[e]&&i&&r(this.props)&&(this.features[e]=new i(this)),this.features[e]){const o=this.features[e];o.isMounted?o.update():(o.mount(),o.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):gr()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,n){this.latestValues[e]=n}update(e,n){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let r=0;r<Lx.length;r++){const i=Lx[r];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);const o="on"+i,a=e[o];a&&(this.propEventSubscriptions[i]=this.on(i,a))}this.prevMotionValues=X$(this,this.scrapeMotionValuesFromProps(e,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue(),this.onUpdate&&this.onUpdate(this)}getProps(){return this.props}getVariant(e){return this.props.variants?this.props.variants[e]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(e){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(e),()=>n.variantChildren.delete(e)}addValue(e,n){const r=this.values.get(e);n!==r&&(r&&this.removeValue(e),this.bindToMotionValue(e,n),this.values.set(e,n),this.latestValues[e]=n.get())}removeValue(e){this.values.delete(e);const n=this.valueSubscriptions.get(e);n&&(n(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,n){if(this.props.values&&this.props.values[e])return this.props.values[e];let r=this.values.get(e);return r===void 0&&n!==void 0&&(r=Md(n===null?void 0:n,{owner:this}),this.addValue(e,r)),r}readValue(e,n){var r;let i=this.latestValues[e]!==void 0||!this.current?this.latestValues[e]:(r=this.getBaseTargetFromProps(this.props,e))!==null&&r!==void 0?r:this.readValueFromInstance(this.current,e,this.options);return i!=null&&(typeof i=="string"&&(tE(i)||YC(i))?i=parseFloat(i):!q$(i)&&bu.test(n)&&(i=JC(e,n)),this.setBaseTarget(e,ji(i)?i.get():i)),ji(i)?i.get():i}setBaseTarget(e,n){this.baseTarget[e]=n}getBaseTarget(e){var n;const{initial:r}=this.props;let i;if(typeof r=="string"||typeof r=="object"){const a=ty(this.props,r,(n=this.presenceContext)===null||n===void 0?void 0:n.custom);a&&(i=a[e])}if(r&&i!==void 0)return i;const o=this.getBaseTargetFromProps(this.props,e);return o!==void 0&&!ji(o)?o:this.initialValues[e]!==void 0&&i===void 0?void 0:this.baseTarget[e]}on(e,n){return this.events[e]||(this.events[e]=new gy),this.events[e].add(n)}notify(e,...n){this.events[e]&&this.events[e].notify(...n)}},ME=class extends K${constructor(){super(...arguments),this.KeyframeResolver=oE}sortInstanceNodePosition(e,n){return e.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(e,n){return e.style?e.style[n]:void 0}removeValueFromRenderState(e,{vars:n,style:r}){delete n[e],delete r[e]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:e}=this.props;ji(e)&&(this.childSubscription=e.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}};function Z$(t){return window.getComputedStyle(t)}let J$=class extends ME{constructor(){super(...arguments),this.type="html",this.renderInstance=xC}readValueFromInstance(e,n){if(_c.has(n)){const r=wy(n);return r&&r.default||0}else{const r=Z$(e),i=(yC(n)?r.getPropertyValue(n):r[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(e,{transformPagePoint:n}){return SE(e,n)}build(e,n,r){iy(e,n,r.transformTemplate)}scrapeMotionValuesFromProps(e,n,r){return ly(e,n,r)}},Q$=class extends ME{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=gr}getBaseTargetFromProps(e,n){return e[n]}readValueFromInstance(e,n){if(_c.has(n)){const r=wy(n);return r&&r.default||0}return n=SC.has(n)?n:Jv(n),e.getAttribute(n)}scrapeMotionValuesFromProps(e,n,r){return EC(e,n,r)}build(e,n,r){oy(e,n,this.isSVGTag,r.transformTemplate)}renderInstance(e,n,r,i){TC(e,n,r,i)}mount(e){this.isSVGTag=ay(e.tagName),super.mount(e)}};const eV=(t,e)=>ey(t)?new Q$(e):new J$(e,{allowProjection:t!==X.Fragment}),tV=kN({...CB,...W$,...I$,...z$},eV),nV=VF(tV);function Fx(t,e){let n;return(...r)=>{window.clearTimeout(n),n=window.setTimeout(()=>t(...r),e)}}function rV({debounce:t,scroll:e,polyfill:n,offsetSize:r}={debounce:0,scroll:!1,offsetSize:!1}){const i=n||(typeof window>"u"?class{}:window.ResizeObserver);if(!i)throw new Error("This browser does not support ResizeObserver out of the box. See: https://github.com/react-spring/react-use-measure/#resize-observer-polyfills");const[o,a]=X.useState({left:0,top:0,width:0,height:0,bottom:0,right:0,x:0,y:0}),c=X.useRef({element:null,scrollContainers:null,resizeObserver:null,lastBounds:o,orientationHandler:null}),d=t?typeof t=="number"?t:t.scroll:null,p=t?typeof t=="number"?t:t.resize:null,w=X.useRef(!1);X.useEffect(()=>(w.current=!0,()=>void(w.current=!1)));const[m,T,E]=X.useMemo(()=>{const _=()=>{if(!c.current.element)return;const{left:U,top:G,width:re,height:q,bottom:se,right:S,x:ue,y:ae}=c.current.element.getBoundingClientRect(),Ue={left:U,top:G,width:re,height:q,bottom:se,right:S,x:ue,y:ae};c.current.element instanceof HTMLElement&&r&&(Ue.height=c.current.element.offsetHeight,Ue.width=c.current.element.offsetWidth),Object.freeze(Ue),w.current&&!aV(c.current.lastBounds,Ue)&&a(c.current.lastBounds=Ue)};return[_,p?Fx(_,p):_,d?Fx(_,d):_]},[a,r,d,p]);function A(){c.current.scrollContainers&&(c.current.scrollContainers.forEach(_=>_.removeEventListener("scroll",E,!0)),c.current.scrollContainers=null),c.current.resizeObserver&&(c.current.resizeObserver.disconnect(),c.current.resizeObserver=null),c.current.orientationHandler&&("orientation"in screen&&"removeEventListener"in screen.orientation?screen.orientation.removeEventListener("change",c.current.orientationHandler):"onorientationchange"in window&&window.removeEventListener("orientationchange",c.current.orientationHandler))}function I(){c.current.element&&(c.current.resizeObserver=new i(E),c.current.resizeObserver.observe(c.current.element),e&&c.current.scrollContainers&&c.current.scrollContainers.forEach(_=>_.addEventListener("scroll",E,{capture:!0,passive:!0})),c.current.orientationHandler=()=>{E()},"orientation"in screen&&"addEventListener"in screen.orientation?screen.orientation.addEventListener("change",c.current.orientationHandler):"onorientationchange"in window&&window.addEventListener("orientationchange",c.current.orientationHandler))}const j=_=>{!_||_===c.current.element||(A(),c.current.element=_,c.current.scrollContainers=LE(_),I())};return oV(E,!!e),iV(T),X.useEffect(()=>{A(),I()},[e,E,T]),X.useEffect(()=>A,[]),[j,o,m]}function iV(t){X.useEffect(()=>{const e=t;return window.addEventListener("resize",e),()=>void window.removeEventListener("resize",e)},[t])}function oV(t,e){X.useEffect(()=>{if(e){const n=t;return window.addEventListener("scroll",n,{capture:!0,passive:!0}),()=>void window.removeEventListener("scroll",n,!0)}},[t,e])}function LE(t){const e=[];if(!t||t===document.body)return e;const{overflow:n,overflowX:r,overflowY:i}=window.getComputedStyle(t);return[n,r,i].some(o=>o==="auto"||o==="scroll")&&e.push(t),[...e,...LE(t.parentElement)]}const sV=["x","y","top","bottom","left","right","width","height"],aV=(t,e)=>sV.every(n=>t[n]===e[n]),FE=X.createContext({dragDropManager:void 0});function Cs(t){return"Minified Redux error #"+t+"; visit https://redux.js.org/Errors?code="+t+" for the full message or use the non-minified dev environment for full errors. "}var Nx=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),jx=function(){return Math.random().toString(36).substring(7).split("").join(".")},Bx={INIT:"@@redux/INIT"+jx(),REPLACE:"@@redux/REPLACE"+jx()};function lV(t){if(typeof t!="object"||t===null)return!1;for(var e=t;Object.getPrototypeOf(e)!==null;)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e}function uV(t){if(t===void 0)return"undefined";if(t===null)return"null";var e=typeof t;switch(e){case"boolean":case"string":case"number":case"symbol":case"function":return e}if(Array.isArray(t))return"array";if(dV(t))return"date";if(fV(t))return"error";var n=cV(t);switch(n){case"Symbol":case"Promise":case"WeakMap":case"WeakSet":case"Map":case"Set":return n}return e.slice(8,-1).toLowerCase().replace(/\s/g,"")}function cV(t){return typeof t.constructor=="function"?t.constructor.name:null}function fV(t){return t instanceof Error||typeof t.message=="string"&&t.constructor&&typeof t.constructor.stackTraceLimit=="number"}function dV(t){return t instanceof Date?!0:typeof t.toDateString=="function"&&typeof t.getDate=="function"&&typeof t.setDate=="function"}function uf(t){var e=typeof t;return process.env.NODE_ENV!=="production"&&(e=uV(t)),e}function NE(t,e,n){var r;if(typeof e=="function"&&typeof n=="function"||typeof n=="function"&&typeof arguments[3]=="function")throw new Error(process.env.NODE_ENV==="production"?Cs(0):"It looks like you are passing several store enhancers to createStore(). This is not supported. Instead, compose them together to a single function. See https://redux.js.org/tutorials/fundamentals/part-4-store#creating-a-store-with-enhancers for an example.");if(typeof e=="function"&&typeof n>"u"&&(n=e,e=void 0),typeof n<"u"){if(typeof n!="function")throw new Error(process.env.NODE_ENV==="production"?Cs(1):"Expected the enhancer to be a function. Instead, received: '"+uf(n)+"'");return n(NE)(t,e)}if(typeof t!="function")throw new Error(process.env.NODE_ENV==="production"?Cs(2):"Expected the root reducer to be a function. Instead, received: '"+uf(t)+"'");var i=t,o=e,a=[],c=a,d=!1;function p(){c===a&&(c=a.slice())}function w(){if(d)throw new Error(process.env.NODE_ENV==="production"?Cs(3):"You may not call store.getState() while the reducer is executing. The reducer has already received the state as an argument. Pass it down from the top reducer instead of reading it from the store.");return o}function m(I){if(typeof I!="function")throw new Error(process.env.NODE_ENV==="production"?Cs(4):"Expected the listener to be a function. Instead, received: '"+uf(I)+"'");if(d)throw new Error(process.env.NODE_ENV==="production"?Cs(5):"You may not call store.subscribe() while the reducer is executing. If you would like to be notified after the store has been updated, subscribe from a component and invoke store.getState() in the callback to access the latest state. See https://redux.js.org/api/store#subscribelistener for more details.");var j=!0;return p(),c.push(I),function(){if(j){if(d)throw new Error(process.env.NODE_ENV==="production"?Cs(6):"You may not unsubscribe from a store listener while the reducer is executing. See https://redux.js.org/api/store#subscribelistener for more details.");j=!1,p();var U=c.indexOf(I);c.splice(U,1),a=null}}}function T(I){if(!lV(I))throw new Error(process.env.NODE_ENV==="production"?Cs(7):"Actions must be plain objects. Instead, the actual type was: '"+uf(I)+"'. You may need to add middleware to your store setup to handle dispatching other values, such as 'redux-thunk' to handle dispatching functions. See https://redux.js.org/tutorials/fundamentals/part-4-store#middleware and https://redux.js.org/tutorials/fundamentals/part-6-async-logic#using-the-redux-thunk-middleware for examples.");if(typeof I.type>"u")throw new Error(process.env.NODE_ENV==="production"?Cs(8):'Actions may not have an undefined "type" property. You may have misspelled an action type string constant.');if(d)throw new Error(process.env.NODE_ENV==="production"?Cs(9):"Reducers may not dispatch actions.");try{d=!0,o=i(o,I)}finally{d=!1}for(var j=a=c,_=0;_<j.length;_++){var U=j[_];U()}return I}function E(I){if(typeof I!="function")throw new Error(process.env.NODE_ENV==="production"?Cs(10):"Expected the nextReducer to be a function. Instead, received: '"+uf(I));i=I,T({type:Bx.REPLACE})}function A(){var I,j=m;return I={subscribe:function(U){if(typeof U!="object"||U===null)throw new Error(process.env.NODE_ENV==="production"?Cs(11):"Expected the observer to be an object. Instead, received: '"+uf(U)+"'");function G(){U.next&&U.next(w())}G();var re=j(G);return{unsubscribe:re}}},I[Nx]=function(){return this},I}return T({type:Bx.INIT}),r={dispatch:T,subscribe:m,getState:w,replaceReducer:E},r[Nx]=A,r}function Ut(t,e,...n){if(hV()&&e===void 0)throw new Error("invariant requires an error message argument");if(!t){let r;if(e===void 0)r=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{let i=0;r=new Error(e.replace(/%s/g,function(){return n[i++]})),r.name="Invariant Violation"}throw r.framesToPop=1,r}}function hV(){return typeof process<"u"&&process.env.NODE_ENV==="production"}function pV(t,e,n){return e.split(".").reduce((r,i)=>r&&r[i]?r[i]:n||null,t)}function gV(t,e){return t.filter(n=>n!==e)}function jE(t){return typeof t=="object"}function mV(t,e){const n=new Map,r=o=>{n.set(o,n.has(o)?n.get(o)+1:1)};t.forEach(r),e.forEach(r);const i=[];return n.forEach((o,a)=>{o===1&&i.push(a)}),i}function vV(t,e){return t.filter(n=>e.indexOf(n)>-1)}const Ey="dnd-core/INIT_COORDS",Mp="dnd-core/BEGIN_DRAG",ky="dnd-core/PUBLISH_DRAG_SOURCE",Lp="dnd-core/HOVER",Fp="dnd-core/DROP",Np="dnd-core/END_DRAG";function $x(t,e){return{type:Ey,payload:{sourceClientOffset:e||null,clientOffset:t||null}}}const yV={type:Ey,payload:{clientOffset:null,sourceClientOffset:null}};function bV(t){return function(n=[],r={publishSource:!0}){const{publishSource:i=!0,clientOffset:o,getSourceClientOffset:a}=r,c=t.getMonitor(),d=t.getRegistry();t.dispatch($x(o)),wV(n,c,d);const p=TV(n,c);if(p==null){t.dispatch(yV);return}let w=null;if(o){if(!a)throw new Error("getSourceClientOffset must be defined");xV(a),w=a(p)}t.dispatch($x(o,w));const T=d.getSource(p).beginDrag(c,p);if(T==null)return;SV(T),d.pinSource(p);const E=d.getSourceType(p);return{type:Mp,payload:{itemType:E,item:T,sourceId:p,clientOffset:o||null,sourceClientOffset:w||null,isSourcePublic:!!i}}}}function wV(t,e,n){Ut(!e.isDragging(),"Cannot call beginDrag while dragging."),t.forEach(function(r){Ut(n.getSource(r),"Expected sourceIds to be registered.")})}function xV(t){Ut(typeof t=="function","When clientOffset is provided, getSourceClientOffset must be a function.")}function SV(t){Ut(jE(t),"Item must be an object.")}function TV(t,e){let n=null;for(let r=t.length-1;r>=0;r--)if(e.canDragSource(t[r])){n=t[r];break}return n}function CV(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function EV(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable}))),r.forEach(function(i){CV(t,i,n[i])})}return t}function kV(t){return function(n={}){const r=t.getMonitor(),i=t.getRegistry();DV(r),_V(r).forEach((a,c)=>{const d=PV(a,c,i,r),p={type:Fp,payload:{dropResult:EV({},n,d)}};t.dispatch(p)})}}function DV(t){Ut(t.isDragging(),"Cannot call drop while not dragging."),Ut(!t.didDrop(),"Cannot call drop twice during one drag operation.")}function PV(t,e,n,r){const i=n.getTarget(t);let o=i?i.drop(r,t):void 0;return OV(o),typeof o>"u"&&(o=e===0?{}:r.getDropResult()),o}function OV(t){Ut(typeof t>"u"||jE(t),"Drop result must either be an object or undefined.")}function _V(t){const e=t.getTargetIds().filter(t.canDropOnTarget,t);return e.reverse(),e}function RV(t){return function(){const n=t.getMonitor(),r=t.getRegistry();AV(n);const i=n.getSourceId();return i!=null&&(r.getSource(i,!0).endDrag(n,i),r.unpinSource()),{type:Np}}}function AV(t){Ut(t.isDragging(),"Cannot call endDrag while not dragging.")}function ev(t,e){return e===null?t===null:Array.isArray(t)?t.some(n=>n===e):t===e}function IV(t){return function(n,{clientOffset:r}={}){MV(n);const i=n.slice(0),o=t.getMonitor(),a=t.getRegistry(),c=o.getItemType();return FV(i,a,c),LV(i,o,a),NV(i,o,a),{type:Lp,payload:{targetIds:i,clientOffset:r||null}}}}function MV(t){Ut(Array.isArray(t),"Expected targetIds to be an array.")}function LV(t,e,n){Ut(e.isDragging(),"Cannot call hover while not dragging."),Ut(!e.didDrop(),"Cannot call hover after drop.");for(let r=0;r<t.length;r++){const i=t[r];Ut(t.lastIndexOf(i)===r,"Expected targetIds to be unique in the passed array.");const o=n.getTarget(i);Ut(o,"Expected targetIds to be registered.")}}function FV(t,e,n){for(let r=t.length-1;r>=0;r--){const i=t[r],o=e.getTargetType(i);ev(o,n)||t.splice(r,1)}}function NV(t,e,n){t.forEach(function(r){n.getTarget(r).hover(e,r)})}function jV(t){return function(){if(t.getMonitor().isDragging())return{type:ky}}}function BV(t){return{beginDrag:bV(t),publishDragSource:jV(t),hover:IV(t),drop:kV(t),endDrag:RV(t)}}class $V{receiveBackend(e){this.backend=e}getMonitor(){return this.monitor}getBackend(){return this.backend}getRegistry(){return this.monitor.registry}getActions(){const e=this,{dispatch:n}=this.store;function r(o){return(...a)=>{const c=o.apply(e,a);typeof c<"u"&&n(c)}}const i=BV(this);return Object.keys(i).reduce((o,a)=>{const c=i[a];return o[a]=r(c),o},{})}dispatch(e){this.store.dispatch(e)}constructor(e,n){this.isSetUp=!1,this.handleRefCountChange=()=>{const r=this.store.getState().refCount>0;this.backend&&(r&&!this.isSetUp?(this.backend.setup(),this.isSetUp=!0):!r&&this.isSetUp&&(this.backend.teardown(),this.isSetUp=!1))},this.store=e,this.monitor=n,e.subscribe(this.handleRefCountChange)}}function VV(t,e){return{x:t.x+e.x,y:t.y+e.y}}function BE(t,e){return{x:t.x-e.x,y:t.y-e.y}}function HV(t){const{clientOffset:e,initialClientOffset:n,initialSourceClientOffset:r}=t;return!e||!n||!r?null:BE(VV(e,r),n)}function UV(t){const{clientOffset:e,initialClientOffset:n}=t;return!e||!n?null:BE(e,n)}const xd=[],Dy=[];xd.__IS_NONE__=!0;Dy.__IS_ALL__=!0;function WV(t,e){return t===xd?!1:t===Dy||typeof e>"u"?!0:vV(e,t).length>0}class zV{subscribeToStateChange(e,n={}){const{handlerIds:r}=n;Ut(typeof e=="function","listener must be a function."),Ut(typeof r>"u"||Array.isArray(r),"handlerIds, when specified, must be an array of strings.");let i=this.store.getState().stateId;const o=()=>{const a=this.store.getState(),c=a.stateId;try{c===i||c===i+1&&!WV(a.dirtyHandlerIds,r)||e()}finally{i=c}};return this.store.subscribe(o)}subscribeToOffsetChange(e){Ut(typeof e=="function","listener must be a function.");let n=this.store.getState().dragOffset;const r=()=>{const i=this.store.getState().dragOffset;i!==n&&(n=i,e())};return this.store.subscribe(r)}canDragSource(e){if(!e)return!1;const n=this.registry.getSource(e);return Ut(n,`Expected to find a valid source. sourceId=${e}`),this.isDragging()?!1:n.canDrag(this,e)}canDropOnTarget(e){if(!e)return!1;const n=this.registry.getTarget(e);if(Ut(n,`Expected to find a valid target. targetId=${e}`),!this.isDragging()||this.didDrop())return!1;const r=this.registry.getTargetType(e),i=this.getItemType();return ev(r,i)&&n.canDrop(this,e)}isDragging(){return!!this.getItemType()}isDraggingSource(e){if(!e)return!1;const n=this.registry.getSource(e,!0);if(Ut(n,`Expected to find a valid source. sourceId=${e}`),!this.isDragging()||!this.isSourcePublic())return!1;const r=this.registry.getSourceType(e),i=this.getItemType();return r!==i?!1:n.isDragging(this,e)}isOverTarget(e,n={shallow:!1}){if(!e)return!1;const{shallow:r}=n;if(!this.isDragging())return!1;const i=this.registry.getTargetType(e),o=this.getItemType();if(o&&!ev(i,o))return!1;const a=this.getTargetIds();if(!a.length)return!1;const c=a.indexOf(e);return r?c===a.length-1:c>-1}getItemType(){return this.store.getState().dragOperation.itemType}getItem(){return this.store.getState().dragOperation.item}getSourceId(){return this.store.getState().dragOperation.sourceId}getTargetIds(){return this.store.getState().dragOperation.targetIds}getDropResult(){return this.store.getState().dragOperation.dropResult}didDrop(){return this.store.getState().dragOperation.didDrop}isSourcePublic(){return!!this.store.getState().dragOperation.isSourcePublic}getInitialClientOffset(){return this.store.getState().dragOffset.initialClientOffset}getInitialSourceClientOffset(){return this.store.getState().dragOffset.initialSourceClientOffset}getClientOffset(){return this.store.getState().dragOffset.clientOffset}getSourceClientOffset(){return HV(this.store.getState().dragOffset)}getDifferenceFromInitialOffset(){return UV(this.store.getState().dragOffset)}constructor(e,n){this.store=e,this.registry=n}}const Vx=typeof global<"u"?global:self,$E=Vx.MutationObserver||Vx.WebKitMutationObserver;function VE(t){return function(){const n=setTimeout(i,0),r=setInterval(i,50);function i(){clearTimeout(n),clearInterval(r),t()}}}function YV(t){let e=1;const n=new $E(t),r=document.createTextNode("");return n.observe(r,{characterData:!0}),function(){e=-e,r.data=e}}const GV=typeof $E=="function"?YV:VE;class qV{enqueueTask(e){const{queue:n,requestFlush:r}=this;n.length||(r(),this.flushing=!0),n[n.length]=e}constructor(){this.queue=[],this.pendingErrors=[],this.flushing=!1,this.index=0,this.capacity=1024,this.flush=()=>{const{queue:e}=this;for(;this.index<e.length;){const n=this.index;if(this.index++,e[n].call(),this.index>this.capacity){for(let r=0,i=e.length-this.index;r<i;r++)e[r]=e[r+this.index];e.length-=this.index,this.index=0}}e.length=0,this.index=0,this.flushing=!1},this.registerPendingError=e=>{this.pendingErrors.push(e),this.requestErrorThrow()},this.requestFlush=GV(this.flush),this.requestErrorThrow=VE(()=>{if(this.pendingErrors.length)throw this.pendingErrors.shift()})}}class XV{call(){try{this.task&&this.task()}catch(e){this.onError(e)}finally{this.task=null,this.release(this)}}constructor(e,n){this.onError=e,this.release=n,this.task=null}}class KV{create(e){const n=this.freeTasks,r=n.length?n.pop():new XV(this.onError,i=>n[n.length]=i);return r.task=e,r}constructor(e){this.onError=e,this.freeTasks=[]}}const HE=new qV,ZV=new KV(HE.registerPendingError);function JV(t){HE.enqueueTask(ZV.create(t))}const Py="dnd-core/ADD_SOURCE",Oy="dnd-core/ADD_TARGET",_y="dnd-core/REMOVE_SOURCE",jp="dnd-core/REMOVE_TARGET";function QV(t){return{type:Py,payload:{sourceId:t}}}function e3(t){return{type:Oy,payload:{targetId:t}}}function t3(t){return{type:_y,payload:{sourceId:t}}}function n3(t){return{type:jp,payload:{targetId:t}}}function r3(t){Ut(typeof t.canDrag=="function","Expected canDrag to be a function."),Ut(typeof t.beginDrag=="function","Expected beginDrag to be a function."),Ut(typeof t.endDrag=="function","Expected endDrag to be a function.")}function i3(t){Ut(typeof t.canDrop=="function","Expected canDrop to be a function."),Ut(typeof t.hover=="function","Expected hover to be a function."),Ut(typeof t.drop=="function","Expected beginDrag to be a function.")}function tv(t,e){if(e&&Array.isArray(t)){t.forEach(n=>tv(n,!1));return}Ut(typeof t=="string"||typeof t=="symbol",e?"Type can only be a string, a symbol, or an array of either.":"Type can only be a string or a symbol.")}var Os;(function(t){t.SOURCE="SOURCE",t.TARGET="TARGET"})(Os||(Os={}));let o3=0;function s3(){return o3++}function a3(t){const e=s3().toString();switch(t){case Os.SOURCE:return`S${e}`;case Os.TARGET:return`T${e}`;default:throw new Error(`Unknown Handler Role: ${t}`)}}function Hx(t){switch(t[0]){case"S":return Os.SOURCE;case"T":return Os.TARGET;default:throw new Error(`Cannot parse handler ID: ${t}`)}}function Ux(t,e){const n=t.entries();let r=!1;do{const{done:i,value:[,o]}=n.next();if(o===e)return!0;r=!!i}while(!r);return!1}class l3{addSource(e,n){tv(e),r3(n);const r=this.addHandler(Os.SOURCE,e,n);return this.store.dispatch(QV(r)),r}addTarget(e,n){tv(e,!0),i3(n);const r=this.addHandler(Os.TARGET,e,n);return this.store.dispatch(e3(r)),r}containsHandler(e){return Ux(this.dragSources,e)||Ux(this.dropTargets,e)}getSource(e,n=!1){return Ut(this.isSourceId(e),"Expected a valid source ID."),n&&e===this.pinnedSourceId?this.pinnedSource:this.dragSources.get(e)}getTarget(e){return Ut(this.isTargetId(e),"Expected a valid target ID."),this.dropTargets.get(e)}getSourceType(e){return Ut(this.isSourceId(e),"Expected a valid source ID."),this.types.get(e)}getTargetType(e){return Ut(this.isTargetId(e),"Expected a valid target ID."),this.types.get(e)}isSourceId(e){return Hx(e)===Os.SOURCE}isTargetId(e){return Hx(e)===Os.TARGET}removeSource(e){Ut(this.getSource(e),"Expected an existing source."),this.store.dispatch(t3(e)),JV(()=>{this.dragSources.delete(e),this.types.delete(e)})}removeTarget(e){Ut(this.getTarget(e),"Expected an existing target."),this.store.dispatch(n3(e)),this.dropTargets.delete(e),this.types.delete(e)}pinSource(e){const n=this.getSource(e);Ut(n,"Expected an existing source."),this.pinnedSourceId=e,this.pinnedSource=n}unpinSource(){Ut(this.pinnedSource,"No source is pinned at the time."),this.pinnedSourceId=null,this.pinnedSource=null}addHandler(e,n,r){const i=a3(e);return this.types.set(i,n),e===Os.SOURCE?this.dragSources.set(i,r):e===Os.TARGET&&this.dropTargets.set(i,r),i}constructor(e){this.types=new Map,this.dragSources=new Map,this.dropTargets=new Map,this.pinnedSourceId=null,this.pinnedSource=null,this.store=e}}const u3=(t,e)=>t===e;function c3(t,e){return!t&&!e?!0:!t||!e?!1:t.x===e.x&&t.y===e.y}function f3(t,e,n=u3){if(t.length!==e.length)return!1;for(let r=0;r<t.length;++r)if(!n(t[r],e[r]))return!1;return!0}function d3(t=xd,e){switch(e.type){case Lp:break;case Py:case Oy:case jp:case _y:return xd;case Mp:case ky:case Np:case Fp:default:return Dy}const{targetIds:n=[],prevTargetIds:r=[]}=e.payload,i=mV(n,r);if(!(i.length>0||!f3(n,r)))return xd;const a=r[r.length-1],c=n[n.length-1];return a!==c&&(a&&i.push(a),c&&i.push(c)),i}function h3(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function p3(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable}))),r.forEach(function(i){h3(t,i,n[i])})}return t}const Wx={initialSourceClientOffset:null,initialClientOffset:null,clientOffset:null};function g3(t=Wx,e){const{payload:n}=e;switch(e.type){case Ey:case Mp:return{initialSourceClientOffset:n.sourceClientOffset,initialClientOffset:n.clientOffset,clientOffset:n.clientOffset};case Lp:return c3(t.clientOffset,n.clientOffset)?t:p3({},t,{clientOffset:n.clientOffset});case Np:case Fp:return Wx;default:return t}}function m3(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function cf(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable}))),r.forEach(function(i){m3(t,i,n[i])})}return t}const v3={itemType:null,item:null,sourceId:null,targetIds:[],dropResult:null,didDrop:!1,isSourcePublic:null};function y3(t=v3,e){const{payload:n}=e;switch(e.type){case Mp:return cf({},t,{itemType:n.itemType,item:n.item,sourceId:n.sourceId,isSourcePublic:n.isSourcePublic,dropResult:null,didDrop:!1});case ky:return cf({},t,{isSourcePublic:!0});case Lp:return cf({},t,{targetIds:n.targetIds});case jp:return t.targetIds.indexOf(n.targetId)===-1?t:cf({},t,{targetIds:gV(t.targetIds,n.targetId)});case Fp:return cf({},t,{dropResult:n.dropResult,didDrop:!0,targetIds:[]});case Np:return cf({},t,{itemType:null,item:null,sourceId:null,dropResult:null,didDrop:!1,isSourcePublic:null,targetIds:[]});default:return t}}function b3(t=0,e){switch(e.type){case Py:case Oy:return t+1;case _y:case jp:return t-1;default:return t}}function w3(t=0){return t+1}function x3(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function S3(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable}))),r.forEach(function(i){x3(t,i,n[i])})}return t}function T3(t={},e){return{dirtyHandlerIds:d3(t.dirtyHandlerIds,{type:e.type,payload:S3({},e.payload,{prevTargetIds:pV(t,"dragOperation.targetIds",[])})}),dragOffset:g3(t.dragOffset,e),refCount:b3(t.refCount,e),dragOperation:y3(t.dragOperation,e),stateId:w3(t.stateId)}}function C3(t,e=void 0,n={},r=!1){const i=E3(r),o=new zV(i,new l3(i)),a=new $V(i,o),c=t(a,e,n);return a.receiveBackend(c),a}function E3(t){const e=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__;return NE(T3,t&&e&&e({name:"dnd-core",instanceId:"dnd-core"}))}function k3(t,e){if(t==null)return{};var n=D3(t,e),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(i=0;i<o.length;i++)r=o[i],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}function D3(t,e){if(t==null)return{};var n={},r=Object.keys(t),i,o;for(o=0;o<r.length;o++)i=r[o],!(e.indexOf(i)>=0)&&(n[i]=t[i]);return n}let zx=0;const $h=Symbol.for("__REACT_DND_CONTEXT_INSTANCE__");var UE=X.memo(function(e){var{children:n}=e,r=k3(e,["children"]);const[i,o]=P3(r);return X.useEffect(()=>{if(o){const a=WE();return++zx,()=>{--zx===0&&(a[$h]=null)}}},[]),Re.jsx(FE.Provider,{value:i,children:n})});function P3(t){if("manager"in t)return[{dragDropManager:t.manager},!1];const e=O3(t.backend,t.context,t.options,t.debugMode),n=!t.context;return[e,n]}function O3(t,e=WE(),n,r){const i=e;return i[$h]||(i[$h]={dragDropManager:C3(t,e,n,r)}),i[$h]}function WE(){return typeof global<"u"?global:window}var _3=function t(e,n){if(e===n)return!0;if(e&&n&&typeof e=="object"&&typeof n=="object"){if(e.constructor!==n.constructor)return!1;var r,i,o;if(Array.isArray(e)){if(r=e.length,r!=n.length)return!1;for(i=r;i--!==0;)if(!t(e[i],n[i]))return!1;return!0}if(e.constructor===RegExp)return e.source===n.source&&e.flags===n.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===n.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===n.toString();if(o=Object.keys(e),r=o.length,r!==Object.keys(n).length)return!1;for(i=r;i--!==0;)if(!Object.prototype.hasOwnProperty.call(n,o[i]))return!1;for(i=r;i--!==0;){var a=o[i];if(!t(e[a],n[a]))return!1}return!0}return e!==e&&n!==n};const R3=Oc(_3),Cc=typeof window<"u"?X.useLayoutEffect:X.useEffect;function zE(t,e,n){const[r,i]=X.useState(()=>e(t)),o=X.useCallback(()=>{const a=e(t);R3(r,a)||(i(a),n&&n())},[r,t,n]);return Cc(o),[r,o]}function A3(t,e,n){const[r,i]=zE(t,e,n);return Cc(function(){const a=t.getHandlerId();if(a!=null)return t.subscribeToStateChange(i,{handlerIds:[a]})},[t,i]),r}function YE(t,e,n){return A3(e,t||(()=>({})),()=>n.reconnect())}function GE(t,e){const n=[...e||[]];return e==null&&typeof t!="function"&&n.push(t),X.useMemo(()=>typeof t=="function"?t():t,n)}function I3(t){return X.useMemo(()=>t.hooks.dragSource(),[t])}function M3(t){return X.useMemo(()=>t.hooks.dragPreview(),[t])}let Gg=!1,qg=!1;class L3{receiveHandlerId(e){this.sourceId=e}getHandlerId(){return this.sourceId}canDrag(){Ut(!Gg,"You may not call monitor.canDrag() inside your canDrag() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source-monitor");try{return Gg=!0,this.internalMonitor.canDragSource(this.sourceId)}finally{Gg=!1}}isDragging(){if(!this.sourceId)return!1;Ut(!qg,"You may not call monitor.isDragging() inside your isDragging() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source-monitor");try{return qg=!0,this.internalMonitor.isDraggingSource(this.sourceId)}finally{qg=!1}}subscribeToStateChange(e,n){return this.internalMonitor.subscribeToStateChange(e,n)}isDraggingSource(e){return this.internalMonitor.isDraggingSource(e)}isOverTarget(e,n){return this.internalMonitor.isOverTarget(e,n)}getTargetIds(){return this.internalMonitor.getTargetIds()}isSourcePublic(){return this.internalMonitor.isSourcePublic()}getSourceId(){return this.internalMonitor.getSourceId()}subscribeToOffsetChange(e){return this.internalMonitor.subscribeToOffsetChange(e)}canDragSource(e){return this.internalMonitor.canDragSource(e)}canDropOnTarget(e){return this.internalMonitor.canDropOnTarget(e)}getItemType(){return this.internalMonitor.getItemType()}getItem(){return this.internalMonitor.getItem()}getDropResult(){return this.internalMonitor.getDropResult()}didDrop(){return this.internalMonitor.didDrop()}getInitialClientOffset(){return this.internalMonitor.getInitialClientOffset()}getInitialSourceClientOffset(){return this.internalMonitor.getInitialSourceClientOffset()}getSourceClientOffset(){return this.internalMonitor.getSourceClientOffset()}getClientOffset(){return this.internalMonitor.getClientOffset()}getDifferenceFromInitialOffset(){return this.internalMonitor.getDifferenceFromInitialOffset()}constructor(e){this.sourceId=null,this.internalMonitor=e.getMonitor()}}let Xg=!1;class F3{receiveHandlerId(e){this.targetId=e}getHandlerId(){return this.targetId}subscribeToStateChange(e,n){return this.internalMonitor.subscribeToStateChange(e,n)}canDrop(){if(!this.targetId)return!1;Ut(!Xg,"You may not call monitor.canDrop() inside your canDrop() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target-monitor");try{return Xg=!0,this.internalMonitor.canDropOnTarget(this.targetId)}finally{Xg=!1}}isOver(e){return this.targetId?this.internalMonitor.isOverTarget(this.targetId,e):!1}getItemType(){return this.internalMonitor.getItemType()}getItem(){return this.internalMonitor.getItem()}getDropResult(){return this.internalMonitor.getDropResult()}didDrop(){return this.internalMonitor.didDrop()}getInitialClientOffset(){return this.internalMonitor.getInitialClientOffset()}getInitialSourceClientOffset(){return this.internalMonitor.getInitialSourceClientOffset()}getSourceClientOffset(){return this.internalMonitor.getSourceClientOffset()}getClientOffset(){return this.internalMonitor.getClientOffset()}getDifferenceFromInitialOffset(){return this.internalMonitor.getDifferenceFromInitialOffset()}constructor(e){this.targetId=null,this.internalMonitor=e.getMonitor()}}function N3(t,e,n){const r=n.getRegistry(),i=r.addTarget(t,e);return[i,()=>r.removeTarget(i)]}function j3(t,e,n){const r=n.getRegistry(),i=r.addSource(t,e);return[i,()=>r.removeSource(i)]}function nv(t,e,n,r){let i;if(i!==void 0)return!!i;if(t===e)return!0;if(typeof t!="object"||!t||typeof e!="object"||!e)return!1;const o=Object.keys(t),a=Object.keys(e);if(o.length!==a.length)return!1;const c=Object.prototype.hasOwnProperty.bind(e);for(let d=0;d<o.length;d++){const p=o[d];if(!c(p))return!1;const w=t[p],m=e[p];if(i=void 0,i===!1||i===void 0&&w!==m)return!1}return!0}function rv(t){return t!==null&&typeof t=="object"&&Object.prototype.hasOwnProperty.call(t,"current")}function B3(t){if(typeof t.type=="string")return;const e=t.type.displayName||t.type.name||"the component";throw new Error(`Only native element nodes can now be passed to React DnD connectors.You can either wrap ${e} into a <div>, or turn it into a drag source or a drop target itself.`)}function $3(t){return(e=null,n=null)=>{if(!X.isValidElement(e)){const o=e;return t(o,n),o}const r=e;return B3(r),V3(r,n?o=>t(o,n):t)}}function qE(t){const e={};return Object.keys(t).forEach(n=>{const r=t[n];if(n.endsWith("Ref"))e[n]=t[n];else{const i=$3(r);e[n]=()=>i}}),e}function Yx(t,e){typeof t=="function"?t(e):t.current=e}function V3(t,e){const n=t.ref;return Ut(typeof n!="string","Cannot connect React DnD to an element with an existing string ref. Please convert it to use a callback ref instead, or wrap it into a <span> or <div>. Read more: https://reactjs.org/docs/refs-and-the-dom.html#callback-refs"),n?X.cloneElement(t,{ref:r=>{Yx(n,r),Yx(e,r)}}):X.cloneElement(t,{ref:e})}class H3{receiveHandlerId(e){this.handlerId!==e&&(this.handlerId=e,this.reconnect())}get connectTarget(){return this.dragSource}get dragSourceOptions(){return this.dragSourceOptionsInternal}set dragSourceOptions(e){this.dragSourceOptionsInternal=e}get dragPreviewOptions(){return this.dragPreviewOptionsInternal}set dragPreviewOptions(e){this.dragPreviewOptionsInternal=e}reconnect(){const e=this.reconnectDragSource();this.reconnectDragPreview(e)}reconnectDragSource(){const e=this.dragSource,n=this.didHandlerIdChange()||this.didConnectedDragSourceChange()||this.didDragSourceOptionsChange();return n&&this.disconnectDragSource(),this.handlerId?e?(n&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDragSource=e,this.lastConnectedDragSourceOptions=this.dragSourceOptions,this.dragSourceUnsubscribe=this.backend.connectDragSource(this.handlerId,e,this.dragSourceOptions)),n):(this.lastConnectedDragSource=e,n):n}reconnectDragPreview(e=!1){const n=this.dragPreview,r=e||this.didHandlerIdChange()||this.didConnectedDragPreviewChange()||this.didDragPreviewOptionsChange();if(r&&this.disconnectDragPreview(),!!this.handlerId){if(!n){this.lastConnectedDragPreview=n;return}r&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDragPreview=n,this.lastConnectedDragPreviewOptions=this.dragPreviewOptions,this.dragPreviewUnsubscribe=this.backend.connectDragPreview(this.handlerId,n,this.dragPreviewOptions))}}didHandlerIdChange(){return this.lastConnectedHandlerId!==this.handlerId}didConnectedDragSourceChange(){return this.lastConnectedDragSource!==this.dragSource}didConnectedDragPreviewChange(){return this.lastConnectedDragPreview!==this.dragPreview}didDragSourceOptionsChange(){return!nv(this.lastConnectedDragSourceOptions,this.dragSourceOptions)}didDragPreviewOptionsChange(){return!nv(this.lastConnectedDragPreviewOptions,this.dragPreviewOptions)}disconnectDragSource(){this.dragSourceUnsubscribe&&(this.dragSourceUnsubscribe(),this.dragSourceUnsubscribe=void 0)}disconnectDragPreview(){this.dragPreviewUnsubscribe&&(this.dragPreviewUnsubscribe(),this.dragPreviewUnsubscribe=void 0,this.dragPreviewNode=null,this.dragPreviewRef=null)}get dragSource(){return this.dragSourceNode||this.dragSourceRef&&this.dragSourceRef.current}get dragPreview(){return this.dragPreviewNode||this.dragPreviewRef&&this.dragPreviewRef.current}clearDragSource(){this.dragSourceNode=null,this.dragSourceRef=null}clearDragPreview(){this.dragPreviewNode=null,this.dragPreviewRef=null}constructor(e){this.hooks=qE({dragSource:(n,r)=>{this.clearDragSource(),this.dragSourceOptions=r||null,rv(n)?this.dragSourceRef=n:this.dragSourceNode=n,this.reconnectDragSource()},dragPreview:(n,r)=>{this.clearDragPreview(),this.dragPreviewOptions=r||null,rv(n)?this.dragPreviewRef=n:this.dragPreviewNode=n,this.reconnectDragPreview()}}),this.handlerId=null,this.dragSourceRef=null,this.dragSourceOptionsInternal=null,this.dragPreviewRef=null,this.dragPreviewOptionsInternal=null,this.lastConnectedHandlerId=null,this.lastConnectedDragSource=null,this.lastConnectedDragSourceOptions=null,this.lastConnectedDragPreview=null,this.lastConnectedDragPreviewOptions=null,this.backend=e}}class U3{get connectTarget(){return this.dropTarget}reconnect(){const e=this.didHandlerIdChange()||this.didDropTargetChange()||this.didOptionsChange();e&&this.disconnectDropTarget();const n=this.dropTarget;if(this.handlerId){if(!n){this.lastConnectedDropTarget=n;return}e&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDropTarget=n,this.lastConnectedDropTargetOptions=this.dropTargetOptions,this.unsubscribeDropTarget=this.backend.connectDropTarget(this.handlerId,n,this.dropTargetOptions))}}receiveHandlerId(e){e!==this.handlerId&&(this.handlerId=e,this.reconnect())}get dropTargetOptions(){return this.dropTargetOptionsInternal}set dropTargetOptions(e){this.dropTargetOptionsInternal=e}didHandlerIdChange(){return this.lastConnectedHandlerId!==this.handlerId}didDropTargetChange(){return this.lastConnectedDropTarget!==this.dropTarget}didOptionsChange(){return!nv(this.lastConnectedDropTargetOptions,this.dropTargetOptions)}disconnectDropTarget(){this.unsubscribeDropTarget&&(this.unsubscribeDropTarget(),this.unsubscribeDropTarget=void 0)}get dropTarget(){return this.dropTargetNode||this.dropTargetRef&&this.dropTargetRef.current}clearDropTarget(){this.dropTargetRef=null,this.dropTargetNode=null}constructor(e){this.hooks=qE({dropTarget:(n,r)=>{this.clearDropTarget(),this.dropTargetOptions=r,rv(n)?this.dropTargetRef=n:this.dropTargetNode=n,this.reconnect()}}),this.handlerId=null,this.dropTargetRef=null,this.dropTargetOptionsInternal=null,this.lastConnectedHandlerId=null,this.lastConnectedDropTarget=null,this.lastConnectedDropTargetOptions=null,this.backend=e}}function Ol(){const{dragDropManager:t}=X.useContext(FE);return Ut(t!=null,"Expected drag drop context"),t}function W3(t,e){const n=Ol(),r=X.useMemo(()=>new H3(n.getBackend()),[n]);return Cc(()=>(r.dragSourceOptions=t||null,r.reconnect(),()=>r.disconnectDragSource()),[r,t]),Cc(()=>(r.dragPreviewOptions=e||null,r.reconnect(),()=>r.disconnectDragPreview()),[r,e]),r}function z3(){const t=Ol();return X.useMemo(()=>new L3(t),[t])}class Y3{beginDrag(){const e=this.spec,n=this.monitor;let r=null;return typeof e.item=="object"?r=e.item:typeof e.item=="function"?r=e.item(n):r={},r??null}canDrag(){const e=this.spec,n=this.monitor;return typeof e.canDrag=="boolean"?e.canDrag:typeof e.canDrag=="function"?e.canDrag(n):!0}isDragging(e,n){const r=this.spec,i=this.monitor,{isDragging:o}=r;return o?o(i):n===e.getSourceId()}endDrag(){const e=this.spec,n=this.monitor,r=this.connector,{end:i}=e;i&&i(n.getItem(),n),r.reconnect()}constructor(e,n,r){this.spec=e,this.monitor=n,this.connector=r}}function G3(t,e,n){const r=X.useMemo(()=>new Y3(t,e,n),[e,n]);return X.useEffect(()=>{r.spec=t},[t]),r}function q3(t){return X.useMemo(()=>{const e=t.type;return Ut(e!=null,"spec.type must be defined"),e},[t])}function X3(t,e,n){const r=Ol(),i=G3(t,e,n),o=q3(t);Cc(function(){if(o!=null){const[c,d]=j3(o,i,r);return e.receiveHandlerId(c),n.receiveHandlerId(c),d}},[r,e,n,i,o])}function XE(t,e){const n=GE(t,e);Ut(!n.begin,"useDrag::spec.begin was deprecated in v14. Replace spec.begin() with spec.item(). (see more here - https://react-dnd.github.io/react-dnd/docs/api/use-drag)");const r=z3(),i=W3(n.options,n.previewOptions);return X3(n,r,i),[YE(n.collect,r,i),I3(i),M3(i)]}function K3(t){const n=Ol().getMonitor(),[r,i]=zE(n,t);return X.useEffect(()=>n.subscribeToOffsetChange(i)),X.useEffect(()=>n.subscribeToStateChange(i)),r}function Z3(t){return X.useMemo(()=>t.hooks.dropTarget(),[t])}function J3(t){const e=Ol(),n=X.useMemo(()=>new U3(e.getBackend()),[e]);return Cc(()=>(n.dropTargetOptions=t||null,n.reconnect(),()=>n.disconnectDropTarget()),[t]),n}function Q3(){const t=Ol();return X.useMemo(()=>new F3(t),[t])}function eH(t){const{accept:e}=t;return X.useMemo(()=>(Ut(t.accept!=null,"accept must be defined"),Array.isArray(e)?e:[e]),[e])}class tH{canDrop(){const e=this.spec,n=this.monitor;return e.canDrop?e.canDrop(n.getItem(),n):!0}hover(){const e=this.spec,n=this.monitor;e.hover&&e.hover(n.getItem(),n)}drop(){const e=this.spec,n=this.monitor;if(e.drop)return e.drop(n.getItem(),n)}constructor(e,n){this.spec=e,this.monitor=n}}function nH(t,e){const n=X.useMemo(()=>new tH(t,e),[e]);return X.useEffect(()=>{n.spec=t},[t]),n}function rH(t,e,n){const r=Ol(),i=nH(t,e),o=eH(t);Cc(function(){const[c,d]=N3(o,i,r);return e.receiveHandlerId(c),n.receiveHandlerId(c),d},[r,e,i,n,o.map(a=>a.toString()).join("|")])}function up(t,e){const n=GE(t,e),r=Q3(),i=J3(n.options);return rH(n,r,i),[YE(n.collect,r,i),Z3(i)]}var KE=t=>{throw TypeError(t)},ZE=(t,e,n)=>e.has(t)||KE("Cannot "+n),Nt=(t,e,n)=>(ZE(t,e,"read from private field"),n?n.call(t):e.get(t)),ks=(t,e,n)=>e.has(t)?KE("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,n),fc=(t,e,n,r)=>(ZE(t,e,"write to private field"),e.set(t,n),n),su,iH=class{constructor(){ks(this,su),this.register=t=>{Nt(this,su).push(t)},this.unregister=t=>{for(;Nt(this,su).indexOf(t)!==-1;)Nt(this,su).splice(Nt(this,su).indexOf(t),1)},this.backendChanged=t=>{for(let e of Nt(this,su))e.backendChanged(t)},fc(this,su,[])}};su=new WeakMap;var qo,dd,Xo,vl,dc,iv,ov,sv,Vh,Hh,hd,JE=class Uh{constructor(e,n,r){if(ks(this,qo),ks(this,dd),ks(this,Xo),ks(this,vl),ks(this,dc),ks(this,iv,(i,o,a)=>{if(!a.backend)throw new Error(`You must specify a 'backend' property in your Backend entry: ${JSON.stringify(a)}`);let c=a.backend(i,o,a.options),d=a.id,p=!a.id&&c&&c.constructor;if(p&&(d=c.constructor.name),!d)throw new Error(`You must specify an 'id' property in your Backend entry: ${JSON.stringify(a)}
5
5
  see this guide: https://github.com/louisbrunner/dnd-multi-backend/tree/master/packages/react-dnd-multi-backend#migrating-from-5xx`);if(p&&console.warn(`Deprecation notice: You are using a pipeline which doesn't include backends' 'id'.
6
6
  This might be unsupported in the future, please specify 'id' explicitely for every backend.`),Nt(this,Xo)[d])throw new Error(`You must specify a unique 'id' property in your Backend entry:
7
7
  ${JSON.stringify(a)} (conflicts with: ${JSON.stringify(Nt(this,Xo)[d])})`);return{id:d,instance:c,preview:a.preview??!1,transition:a.transition,skipDispatchOnTransition:a.skipDispatchOnTransition??!1}}),this.setup=()=>{if(!(typeof window>"u")){if(Uh.isSetUp)throw new Error("Cannot have two MultiBackends at the same time.");Uh.isSetUp=!0,Nt(this,ov).call(this,window),Nt(this,Xo)[Nt(this,qo)].instance.setup()}},this.teardown=()=>{typeof window>"u"||(Uh.isSetUp=!1,Nt(this,sv).call(this,window),Nt(this,Xo)[Nt(this,qo)].instance.teardown())},this.connectDragSource=(i,o,a)=>Nt(this,hd).call(this,"connectDragSource",i,o,a),this.connectDragPreview=(i,o,a)=>Nt(this,hd).call(this,"connectDragPreview",i,o,a),this.connectDropTarget=(i,o,a)=>Nt(this,hd).call(this,"connectDropTarget",i,o,a),this.profile=()=>Nt(this,Xo)[Nt(this,qo)].instance.profile(),this.previewEnabled=()=>Nt(this,Xo)[Nt(this,qo)].preview,this.previewsList=()=>Nt(this,dd),this.backendsList=()=>Nt(this,vl),ks(this,ov,i=>{for(let o of Nt(this,vl))o.transition&&i.addEventListener(o.transition.event,Nt(this,Vh))}),ks(this,sv,i=>{for(let o of Nt(this,vl))o.transition&&i.removeEventListener(o.transition.event,Nt(this,Vh))}),ks(this,Vh,i=>{var a;let o=Nt(this,qo);if(Nt(this,vl).some(c=>c.id!==Nt(this,qo)&&c.transition&&c.transition.check(i)?(fc(this,qo,c.id),!0):!1),Nt(this,qo)!==o){Nt(this,Xo)[o].instance.teardown();for(let[w,m]of Object.entries(Nt(this,dc)))m.unsubscribe(),m.unsubscribe=Nt(this,Hh).call(this,m.func,...m.args);Nt(this,dd).backendChanged(this);let c=Nt(this,Xo)[Nt(this,qo)];if(c.instance.setup(),c.skipDispatchOnTransition)return;let d=i.constructor,p=new d(i.type,i);(a=i.target)==null||a.dispatchEvent(p)}}),ks(this,Hh,(i,o,a,c)=>Nt(this,Xo)[Nt(this,qo)].instance[i](o,a,c)),ks(this,hd,(i,o,a,c)=>{let d=`${i}_${o}`,p=Nt(this,Hh).call(this,i,o,a,c);return Nt(this,dc)[d]={func:i,args:[o,a,c],unsubscribe:p},()=>{Nt(this,dc)[d].unsubscribe(),delete Nt(this,dc)[d]}}),!r||!r.backends||r.backends.length<1)throw new Error(`You must specify at least one Backend, if you are coming from 2.x.x (or don't understand this error)
8
- see this guide: https://github.com/louisbrunner/dnd-multi-backend/tree/master/packages/react-dnd-multi-backend#migrating-from-2xx`);fc(this,dd,new Z3),fc(this,Xo,{}),fc(this,vl,[]);for(let i of r.backends){let o=Nt(this,iv).call(this,e,n,i);Nt(this,Xo)[o.id]=o,Nt(this,vl).push(o)}fc(this,qo,Nt(this,vl)[0].id),fc(this,dc,{})}};qo=new WeakMap,dd=new WeakMap,Xo=new WeakMap,vl=new WeakMap,dc=new WeakMap,iv=new WeakMap,ov=new WeakMap,sv=new WeakMap,Vh=new WeakMap,Hh=new WeakMap,hd=new WeakMap,ZE.isSetUp=!1;var J3=ZE,Q3=(t,e,n)=>new J3(t,e,n),JE=(t,e)=>({event:t,check:e}),eH=JE("touchstart",t=>{let e=t;return e.touches!==null&&e.touches!==void 0}),tH=JE("pointerdown",t=>t.pointerType==="mouse"),cu;(function(t){t.mouse="mouse",t.touch="touch",t.keyboard="keyboard"})(cu||(cu={}));class nH{get delay(){var e;return(e=this.args.delay)!==null&&e!==void 0?e:0}get scrollAngleRanges(){return this.args.scrollAngleRanges}get getDropTargetElementsAtPoint(){return this.args.getDropTargetElementsAtPoint}get ignoreContextMenu(){var e;return(e=this.args.ignoreContextMenu)!==null&&e!==void 0?e:!1}get enableHoverOutsideTarget(){var e;return(e=this.args.enableHoverOutsideTarget)!==null&&e!==void 0?e:!1}get enableKeyboardEvents(){var e;return(e=this.args.enableKeyboardEvents)!==null&&e!==void 0?e:!1}get enableMouseEvents(){var e;return(e=this.args.enableMouseEvents)!==null&&e!==void 0?e:!1}get enableTouchEvents(){var e;return(e=this.args.enableTouchEvents)!==null&&e!==void 0?e:!0}get touchSlop(){return this.args.touchSlop||0}get delayTouchStart(){var e,n,r,i;return(i=(r=(e=this.args)===null||e===void 0?void 0:e.delayTouchStart)!==null&&r!==void 0?r:(n=this.args)===null||n===void 0?void 0:n.delay)!==null&&i!==void 0?i:0}get delayMouseStart(){var e,n,r,i;return(i=(r=(e=this.args)===null||e===void 0?void 0:e.delayMouseStart)!==null&&r!==void 0?r:(n=this.args)===null||n===void 0?void 0:n.delay)!==null&&i!==void 0?i:0}get window(){if(this.context&&this.context.window)return this.context.window;if(typeof window<"u")return window}get document(){var e;if(!((e=this.context)===null||e===void 0)&&e.document)return this.context.document;if(this.window)return this.window.document}get rootElement(){var e;return((e=this.args)===null||e===void 0?void 0:e.rootElement)||this.document}constructor(e,n){this.args=e,this.context=n}}function rH(t,e,n,r){return Math.sqrt(Math.pow(Math.abs(n-t),2)+Math.pow(Math.abs(r-e),2))}function iH(t,e,n,r,i){if(!i)return!1;const o=Math.atan2(r-e,n-t)*180/Math.PI+180;for(let a=0;a<i.length;++a){const c=i[a];if(c&&(c.start==null||o>=c.start)&&(c.end==null||o<=c.end))return!0}return!1}const oH={Left:1},sH={Left:0};function Kg(t){return t.button===void 0||t.button===sH.Left}function aH(t){return t.buttons===void 0||(t.buttons&oH.Left)===0}function QE(t){return!!t.targetTouches}const lH=1;function uH(t){const e=t.nodeType===lH?t:t.parentElement;if(!e)return;const{top:n,left:r}=e.getBoundingClientRect();return{x:r,y:n}}function cH(t,e){if(t.targetTouches.length===1)return cp(t.targetTouches[0]);if(e&&t.touches.length===1&&t.touches[0].target===e.target)return cp(t.touches[0])}function cp(t,e){return QE(t)?cH(t,e):{x:t.clientX,y:t.clientY}}const zx=(()=>{let t=!1;try{addEventListener("test",()=>{},Object.defineProperty({},"passive",{get(){return t=!0,!0}}))}catch{}return t})(),od={[cu.mouse]:{start:"mousedown",move:"mousemove",end:"mouseup",contextmenu:"contextmenu"},[cu.touch]:{start:"touchstart",move:"touchmove",end:"touchend"},[cu.keyboard]:{keydown:"keydown"}};class Sd{profile(){var e;return{sourceNodes:this.sourceNodes.size,sourcePreviewNodes:this.sourcePreviewNodes.size,sourcePreviewNodeOptions:this.sourcePreviewNodeOptions.size,targetNodes:this.targetNodes.size,dragOverTargetIds:((e=this.dragOverTargetIds)===null||e===void 0?void 0:e.length)||0}}get document(){return this.options.document}setup(){const e=this.options.rootElement;e&&(Ut(!Sd.isSetUp,"Cannot have two Touch backends at the same time."),Sd.isSetUp=!0,this.addEventListener(e,"start",this.getTopMoveStartHandler()),this.addEventListener(e,"start",this.handleTopMoveStartCapture,!0),this.addEventListener(e,"move",this.handleTopMove),this.addEventListener(e,"move",this.handleTopMoveCapture,!0),this.addEventListener(e,"end",this.handleTopMoveEndCapture,!0),this.options.enableMouseEvents&&!this.options.ignoreContextMenu&&this.addEventListener(e,"contextmenu",this.handleTopMoveEndCapture),this.options.enableKeyboardEvents&&this.addEventListener(e,"keydown",this.handleCancelOnEscape,!0))}teardown(){const e=this.options.rootElement;e&&(Sd.isSetUp=!1,this._mouseClientOffset={},this.removeEventListener(e,"start",this.handleTopMoveStartCapture,!0),this.removeEventListener(e,"start",this.handleTopMoveStart),this.removeEventListener(e,"move",this.handleTopMoveCapture,!0),this.removeEventListener(e,"move",this.handleTopMove),this.removeEventListener(e,"end",this.handleTopMoveEndCapture,!0),this.options.enableMouseEvents&&!this.options.ignoreContextMenu&&this.removeEventListener(e,"contextmenu",this.handleTopMoveEndCapture),this.options.enableKeyboardEvents&&this.removeEventListener(e,"keydown",this.handleCancelOnEscape,!0),this.uninstallSourceNodeRemovalObserver())}addEventListener(e,n,r,i=!1){const o=zx?{capture:i,passive:!1}:i;this.listenerTypes.forEach(function(a){const c=od[a][n];c&&e.addEventListener(c,r,o)})}removeEventListener(e,n,r,i=!1){const o=zx?{capture:i,passive:!1}:i;this.listenerTypes.forEach(function(a){const c=od[a][n];c&&e.removeEventListener(c,r,o)})}connectDragSource(e,n){const r=this.handleMoveStart.bind(this,e);return this.sourceNodes.set(e,n),this.addEventListener(n,"start",r),()=>{this.sourceNodes.delete(e),this.removeEventListener(n,"start",r)}}connectDragPreview(e,n,r){return this.sourcePreviewNodeOptions.set(e,r),this.sourcePreviewNodes.set(e,n),()=>{this.sourcePreviewNodes.delete(e),this.sourcePreviewNodeOptions.delete(e)}}connectDropTarget(e,n){const r=this.options.rootElement;if(!this.document||!r)return()=>{};const i=o=>{if(!this.document||!r||!this.monitor.isDragging())return;let a;switch(o.type){case od.mouse.move:a={x:o.clientX,y:o.clientY};break;case od.touch.move:var c,d;a={x:((c=o.touches[0])===null||c===void 0?void 0:c.clientX)||0,y:((d=o.touches[0])===null||d===void 0?void 0:d.clientY)||0};break}const p=a!=null?this.document.elementFromPoint(a.x,a.y):void 0,w=p&&n.contains(p);if(p===n||w)return this.handleMove(o,e)};return this.addEventListener(this.document.body,"move",i),this.targetNodes.set(e,n),()=>{this.document&&(this.targetNodes.delete(e),this.removeEventListener(this.document.body,"move",i))}}getTopMoveStartHandler(){return!this.options.delayTouchStart&&!this.options.delayMouseStart?this.handleTopMoveStart:this.handleTopMoveStartDelay}installSourceNodeRemovalObserver(e){this.uninstallSourceNodeRemovalObserver(),this.draggedSourceNode=e,this.draggedSourceNodeRemovalObserver=new MutationObserver(()=>{e&&!e.parentElement&&(this.resurrectSourceNode(),this.uninstallSourceNodeRemovalObserver())}),!(!e||!e.parentElement)&&this.draggedSourceNodeRemovalObserver.observe(e.parentElement,{childList:!0})}resurrectSourceNode(){this.document&&this.draggedSourceNode&&(this.draggedSourceNode.style.display="none",this.draggedSourceNode.removeAttribute("data-reactid"),this.document.body.appendChild(this.draggedSourceNode))}uninstallSourceNodeRemovalObserver(){this.draggedSourceNodeRemovalObserver&&this.draggedSourceNodeRemovalObserver.disconnect(),this.draggedSourceNodeRemovalObserver=void 0,this.draggedSourceNode=void 0}constructor(e,n,r){this.getSourceClientOffset=i=>{const o=this.sourceNodes.get(i);return o&&uH(o)},this.handleTopMoveStartCapture=i=>{Kg(i)&&(this.moveStartSourceIds=[])},this.handleMoveStart=i=>{Array.isArray(this.moveStartSourceIds)&&this.moveStartSourceIds.unshift(i)},this.handleTopMoveStart=i=>{if(!Kg(i))return;const o=cp(i);o&&(QE(i)&&(this.lastTargetTouchFallback=i.targetTouches[0]),this._mouseClientOffset=o),this.waitingForDelay=!1},this.handleTopMoveStartDelay=i=>{if(!Kg(i))return;const o=i.type===od.touch.start?this.options.delayTouchStart:this.options.delayMouseStart;this.timeout=setTimeout(this.handleTopMoveStart.bind(this,i),o),this.waitingForDelay=!0},this.handleTopMoveCapture=()=>{this.dragOverTargetIds=[]},this.handleMove=(i,o)=>{this.dragOverTargetIds&&this.dragOverTargetIds.unshift(o)},this.handleTopMove=i=>{if(this.timeout&&clearTimeout(this.timeout),!this.document||this.waitingForDelay)return;const{moveStartSourceIds:o,dragOverTargetIds:a}=this,c=this.options.enableHoverOutsideTarget,d=cp(i,this.lastTargetTouchFallback);if(!d)return;if(this._isScrolling||!this.monitor.isDragging()&&iH(this._mouseClientOffset.x||0,this._mouseClientOffset.y||0,d.x,d.y,this.options.scrollAngleRanges)){this._isScrolling=!0;return}if(!this.monitor.isDragging()&&this._mouseClientOffset.hasOwnProperty("x")&&o&&rH(this._mouseClientOffset.x||0,this._mouseClientOffset.y||0,d.x,d.y)>(this.options.touchSlop?this.options.touchSlop:0)&&(this.moveStartSourceIds=void 0,this.actions.beginDrag(o,{clientOffset:this._mouseClientOffset,getSourceClientOffset:this.getSourceClientOffset,publishSource:!1})),!this.monitor.isDragging())return;const p=this.sourceNodes.get(this.monitor.getSourceId());this.installSourceNodeRemovalObserver(p),this.actions.publishDragSource(),i.cancelable&&i.preventDefault();const w=(a||[]).map(A=>this.targetNodes.get(A)).filter(A=>!!A),m=this.options.getDropTargetElementsAtPoint?this.options.getDropTargetElementsAtPoint(d.x,d.y,w):this.document.elementsFromPoint(d.x,d.y),T=[];for(const A in m){if(!m.hasOwnProperty(A))continue;let I=m[A];for(I!=null&&T.push(I);I;)I=I.parentElement,I&&T.indexOf(I)===-1&&T.push(I)}const E=T.filter(A=>w.indexOf(A)>-1).map(A=>this._getDropTargetId(A)).filter(A=>!!A).filter((A,I,j)=>j.indexOf(A)===I);if(c)for(const A in this.targetNodes){const I=this.targetNodes.get(A);if(p&&I&&I.contains(p)&&E.indexOf(A)===-1){E.unshift(A);break}}E.reverse(),this.actions.hover(E,{clientOffset:d})},this._getDropTargetId=i=>{const o=this.targetNodes.keys();let a=o.next();for(;a.done===!1;){const c=a.value;if(i===this.targetNodes.get(c))return c;a=o.next()}},this.handleTopMoveEndCapture=i=>{if(this._isScrolling=!1,this.lastTargetTouchFallback=void 0,!!aH(i)){if(!this.monitor.isDragging()||this.monitor.didDrop()){this.moveStartSourceIds=void 0;return}i.cancelable&&i.preventDefault(),this._mouseClientOffset={},this.uninstallSourceNodeRemovalObserver(),this.actions.drop(),this.actions.endDrag()}},this.handleCancelOnEscape=i=>{i.key==="Escape"&&this.monitor.isDragging()&&(this._mouseClientOffset={},this.uninstallSourceNodeRemovalObserver(),this.actions.endDrag())},this.options=new nH(r,n),this.actions=e.getActions(),this.monitor=e.getMonitor(),this.sourceNodes=new Map,this.sourcePreviewNodes=new Map,this.sourcePreviewNodeOptions=new Map,this.targetNodes=new Map,this.listenerTypes=[],this._mouseClientOffset={},this._isScrolling=!1,this.options.enableMouseEvents&&this.listenerTypes.push(cu.mouse),this.options.enableTouchEvents&&this.listenerTypes.push(cu.touch),this.options.enableKeyboardEvents&&this.listenerTypes.push(cu.keyboard)}}const fH=function(e,n={},r={}){return new Sd(e,n,r)};var Is=function(){return Is=Object.assign||function(e){for(var n,r=1,i=arguments.length;r<i;r++){n=arguments[r];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},Is.apply(this,arguments)};function io(t,e,n){if(n||arguments.length===2)for(var r=0,i=e.length,o;r<i;r++)(o||!(r in e))&&(o||(o=Array.prototype.slice.call(e,0,r)),o[r]=e[r]);return t.concat(o||Array.prototype.slice.call(e))}function dH(t){var e=t.isVisible,n=t.ease,r=n===void 0?"easeIn":n,i=t.duration,o=t.variants,a=o===void 0?{open:{opacity:1,height:"auto"},close:{opacity:0,height:0}}:o,c=t.children,d=K$({polyfill:TF}),p=d[0],w=d[1].height,m=X.useState(e),T=m[0],E=m[1],A=X.useState(e),I=A[0],j=A[1],_=X.useState(!1),U=_[0],G=_[1],re=function(){G(!1),e||E(!1)};X.useEffect(function(){G(!0),e?E(!0):j(!1)},[e]);var q=w===0;return X.useEffect(function(){T&&j(!0)},[q]),X.createElement(X$.div,{style:U?{overflow:"hidden"}:void 0,onAnimationComplete:re,initial:I?"open":"close",animate:I?"open":"close",inherit:!1,variants:a,transition:{ease:r,duration:hH(w,i)}},X.createElement("div",{ref:p},T&&c))}function hH(t,e){if(e)return e;if(!t)return 0;var n=t/36;return Math.round((4+10*Math.pow(n,.25)+n/5)*10)/1500}var ek=X.createContext({}),pH={isLock:!1},gH=function(t){var e=X.useState(pH.isLock),n=e[0],r=e[1];return X.createElement(ek.Provider,{value:{isLock:n,lock:function(){return r(!0)},unlock:function(){return r(!1)}}},t.children)},Xd=X.createContext({}),Eh={dropTargetId:void 0,index:void 0},mH=function(t){var e=X.useState(Eh.dropTargetId),n=e[0],r=e[1],i=X.useState(Eh.index),o=i[0],a=i[1],c=function(p,w){r(p),a(w)},d=function(){r(Eh.dropTargetId),a(Eh.index)};return X.createElement(Xd.Provider,{value:{dropTargetId:n,index:o,showPlaceholder:c,hidePlaceholder:d}},t.children)},vH=function(t,e){return t.text>e.text?1:t.text<e.text?-1:0},sd=function(t,e){return t.find(function(n){return n.id===e})},tk=function(t,e,n){if(n===0)return!1;var r=t.find(function(i){return i.id===n});return r===void 0?!1:r.parent===e?!0:tk(t,e,r.parent)},Ry=function(t){return typeof t=="object"&&t!==null&&"id"in t&&"parent"in t&&"text"in t},wu=function(t,e,n){var r=n.tree,i=n.rootId,o=n.canDrop;if(t===null){if(e===i)return!0;var a=r.find(function(w){return w.id===e});return!!(a&&a.droppable)}else{var c=Ry(t)?t.id:null;if(o){var d=o(c,e);if(d!==void 0)return d}if(c===e)return!1;var p=r.find(function(m){return m.id===c}),a=r.find(function(m){return m.id===e});return p===void 0||c===null?e===i||!!(a!=null&&a.droppable):a===void 0?p.parent!==0:p.parent===e||!a.droppable?!1:!tk(r,c,e)}},yH=function(t,e,n){return t.map(function(r){return r.id===e?Is(Is({},r),{parent:n}):r})},nk=function(t,e,n){if(n===0)return 0;var r=t.filter(function(i){return i.parent===e});return r[n]?t.findIndex(function(i){return i.id===r[n].id}):t.findIndex(function(i){return i.id===r[n-1].id})+1},bH=function(t,e){return t.findIndex(function(n){return n.id===e})},rk=function(t,e,n,r){var i=bH(t,e),o=nk(t,n,r);return o=o>i?o-1:o,[i,o]},wH=function(t,e,n){var r=e<0?t.length+e:e;if(r>=0&&r<t.length){var i=n<0?t.length+n:n,o=t.splice(e,1)[0];t.splice(i,0,o)}},xH=function(t,e,n,r){var i=rk(t,e,n,r),o=i[0],a=i[1],c=io([],t,!0);return wH(c,o,a),c.map(function(d){return d.id===e?Is(Is({},d),{parent:n}):d})},SH=function(t,e){var n=t.getBoundingClientRect(),r=n.top+n.height/2;return e>r?"down":"up"},av=function(t,e){var n="",r=0;return t.forEach(function(i,o){var a,c=SH(i,((a=e.getClientOffset())===null||a===void 0?void 0:a.y)||0);n===""?n=c:n!==c&&(n=c,r=o),o===t.length-1&&c==="down"&&(r=o+1)}),r},Yx=function(t,e,n){var r=e.closest('[role="list"]'),i=r==null?void 0:r.querySelectorAll(':scope > [role="listitem"]');return i?av(i,n):null},TH=function(t,e,n){var r=t.getBoundingClientRect(),i=n.dropTargetOffset,o=r.top+i,a=r.bottom-i;return e>a?"lower":e<o?"upper":"middle"},lv=function(t,e,n,r){var i;if(!e)return null;if(t===null){var o=e.querySelectorAll(':scope > [role="listitem"]');return{id:r.rootId,index:av(o,n)}}var a=n.getItem(),c=e.querySelector('[role="list"]'),d=TH(e,((i=n.getClientOffset())===null||i===void 0?void 0:i.y)||0,r);if(c){if(d==="upper")if(wu(a,t.parent,r)){var p=Yx(t,e,n);return p===null?null:{id:t.parent,index:p}}else return{id:t.id,index:0};var o=c.querySelectorAll(':scope > [role="listitem"]');return{id:t.id,index:av(o,n)}}else{if(d==="middle")return{id:t.id,index:0};if(wu(a,t.parent,r)){var p=Yx(t,e,n);return p===null?null:{id:t.parent,index:p}}return null}},CH=function(t){return t===void 0&&(t={}),{backends:[{id:"html5",backend:QT,options:t.html5,transition:tH},{id:"touch",backend:fH,options:t.touch||{enableMouseEvents:!0},preview:!0,transition:eH}]}},Wh=function(t,e){return t.some(function(n){return n.parent===e})},ik=X.createContext({}),EH=function(t){var e=AH(t.tree,t.initialOpen),n=e[0],r=e[1],i=r.handleToggle,o=r.handleCloseAll,a=r.handleOpenAll,c=r.handleOpen,d=r.handleClose;X.useImperativeHandle(t.treeRef,function(){return{open:function(E){return c(E,t.onChangeOpen)},close:function(E){return d(E,t.onChangeOpen)},openAll:function(){return a(t.onChangeOpen)},closeAll:function(){return o(t.onChangeOpen)}}});var p=Ol().getMonitor(),w=t.canDrop,m=t.canDrag,T=Is(Is({extraAcceptTypes:[],listComponent:"ul",listItemComponent:"li",placeholderComponent:"li",sort:!0,insertDroppableFirst:!0,enableAnimateExpand:!1,dropTargetOffset:0,initialOpen:!1},t),{openIds:n,onDrop:function(E,A,I){if(E){var j={dragSourceId:E.id,dropTargetId:A,dragSource:E,dropTarget:sd(t.tree,A),monitor:p},_=t.tree;if(sd(_,E.id)||(_=io(io([],_,!0),[E],!1)),t.sort===!1){var U=rk(_,E.id,A,I),G=U[1];j.destinationIndex=G,j.relativeIndex=I,t.onDrop(xH(_,E.id,A,I),j);return}t.onDrop(yH(_,E.id,A),j)}else{var j={dropTargetId:A,dropTarget:sd(t.tree,A),monitor:p};t.sort===!1&&(j.destinationIndex=nk(t.tree,A,I),j.relativeIndex=I),t.onDrop(t.tree,j)}},canDrop:w?function(E,A){return w(t.tree,{dragSourceId:E??void 0,dropTargetId:A,dragSource:p.getItem(),dropTarget:sd(t.tree,A),monitor:p})}:void 0,canDrag:m?function(E){return m(sd(t.tree,E))}:void 0,onToggle:function(E){return i(E,t.onChangeOpen)}});return X.createElement(ik.Provider,{value:T},t.children)},kH=function(t){return X.createElement(EH,Is({},t),X.createElement(gH,null,X.createElement(mH,null,t.children)))},DH=function(t){var e=X.useContext(ek);X.useEffect(function(){if(t.current){var n=t.current,r=function(w){var m=w.target;(m instanceof HTMLInputElement||m instanceof HTMLTextAreaElement)&&e.lock()},i=function(w){var m=w.target;(m instanceof HTMLInputElement||m instanceof HTMLTextAreaElement)&&e.unlock()},o=function(w){return r(w)},a=function(w){return i(w)},c=function(w){return r(w)},d=function(w){return i(w)},p=new MutationObserver(function(){document.activeElement===document.body&&e.unlock()});return p.observe(n,{subtree:!0,childList:!0}),n.addEventListener("mouseover",o),n.addEventListener("mouseout",a),n.addEventListener("focusin",c),n.addEventListener("focusout",d),function(){p.disconnect(),n.removeEventListener("mouseover",o),n.removeEventListener("mouseout",a),n.removeEventListener("focusin",c),n.removeEventListener("focusout",d)}}},[t,e]),X.useEffect(function(){var n;(n=t.current)===null||n===void 0||n.setAttribute("draggable",e.isLock?"false":"true")},[t,e.isLock])},Bp={TREE_ITEM:Symbol()},ok=null,sk=function(t){var e=t.target;if(e instanceof HTMLElement){var n=e.closest('[role="listitem"]');t.currentTarget===n&&(ok=n)}},Gx=function(t){return sk(t)},qx=function(t){return sk(t)},PH=function(t,e){var n=Eu();X.useEffect(function(){var c=e.current;return c==null||c.addEventListener("dragstart",Gx),c==null||c.addEventListener("touchstart",qx,{passive:!0}),function(){c==null||c.removeEventListener("dragstart",Gx),c==null||c.removeEventListener("touchstart",qx)}},[e]);var r=qE({type:Bp.TREE_ITEM,item:function(c){var d=Is({ref:e},t);return n.onDragStart&&n.onDragStart(d,c),d},end:function(c,d){var p=c;n.onDragEnd&&n.onDragEnd(p,d)},canDrag:function(){var c=n.canDrag;return ok!==e.current?!1:c?c(t.id):!0},collect:function(c){return{isDragging:c.isDragging()}}}),i=r[0].isDragging,o=r[1],a=r[2];return[i,o,a]},OH=function(t,e,n){var r=X.useRef(0),i=X.useRef(0),o=function(){r.current+=1,r.current===1&&!e&&(i.current=window.setTimeout(function(){return n(t)},500))},a=function(){r.current-=1,r.current===0&&window.clearTimeout(i.current)},c=function(){i.current>0&&window.clearTimeout(i.current),r.current=0,i.current=0};return{onDragEnter:o,onDragLeave:a,onDrop:c}},_H=function(t){var e=Eu(),n=X.useContext(Xd),r=up({accept:io([Bp.TREE_ITEM],e.extraAcceptTypes,!0),drop:function(d,p){var w=e.rootId,m=e.onDrop,T=n.dropTargetId,E=n.index;p.isOver({shallow:!0})&&T!==void 0&&E!==void 0&&m(Ry(d)?d:null,w,E),n.hidePlaceholder()},canDrop:function(d,p){var w=e.rootId;return p.isOver({shallow:!0})?d===void 0?!1:wu(d,w,e):!1},hover:function(d,p){if(p.isOver({shallow:!0})){var w=e.rootId,m=n.dropTargetId,T=n.index,E=n.showPlaceholder,A=n.hidePlaceholder,I=lv(null,t.current,p,e);if(I===null||!wu(d,w,e)){A();return}(I.id!==m||I.index!==T)&&E(I.id,I.index)}},collect:function(d){var p=d.getItem();return{isOver:d.isOver({shallow:!0})&&d.canDrop(),dragSource:p}}}),i=r[0],o=i.isOver,a=i.dragSource,c=r[1];return[o,a,c]},RH=function(t,e){var n=Eu(),r=X.useContext(Xd),i=up({accept:io([Bp.TREE_ITEM],n.extraAcceptTypes,!0),drop:function(p,w){var m=r.dropTargetId,T=r.index;w.isOver({shallow:!0})&&m!==void 0&&T!==void 0&&n.onDrop(Ry(p)?p:null,m,T),r.hidePlaceholder()},canDrop:function(p,w){if(w.isOver({shallow:!0})){var m=lv(t,e.current,w,n);return m===null?!1:wu(p,m.id,n)}return!1},hover:function(p,w){if(w.isOver({shallow:!0})){var m=r.dropTargetId,T=r.index,E=r.showPlaceholder,A=r.hidePlaceholder,I=lv(t,e.current,w,n);if(I===null||!wu(p,I.id,n)){A();return}(I.id!==m||I.index!==T)&&E(I.id,I.index)}},collect:function(p){var w=p.getItem();return{isOver:p.isOver({shallow:!0})&&p.canDrop(),dragSource:w}}}),o=i[0],a=o.isOver,c=o.dragSource,d=i[1];return[a,c,d]},AH=function(t,e){var n=X.useMemo(function(){return e===!0?t.filter(function(m){return Wh(t,m.id)}).map(function(m){return m.id}):Array.isArray(e)?e:[]},[e]),r=X.useState(n),i=r[0],o=r[1];X.useEffect(function(){return o(n)},[n]);var a=function(m,T){var E=i.includes(m)?i.filter(function(A){return A!==m}):io(io([],i,!0),[m],!1);o(E),T&&T(E)},c=function(m){o([]),m&&m([])},d=function(m){var T=t.filter(function(E){return Wh(t,E.id)}).map(function(E){return E.id});o(T),m&&m(T)},p=function(m,T){var E=[];if(Array.isArray(m)){var A=t.filter(function(I){return m.includes(I.id)&&Wh(t,I.id)});E=io(io([],i,!0),A.map(function(I){return I.id}),!0).filter(function(I,j,_){return _.indexOf(I)===j})}else E=i.includes(m)?i:io(io([],i,!0),[m],!1);o(E),T&&T(E)},w=function(m,T){var E=i.filter(function(A){return Array.isArray(m)?!m.includes(A):A!==m});o(E),T&&T(E)};return[i,{handleToggle:a,handleCloseAll:c,handleOpenAll:d,handleOpen:p,handleClose:w}]},IH=function(){return U3(function(t){var e=t.getItemType();return{item:t.getItem(),clientOffset:t.getClientOffset(),isDragging:t.isDragging()&&e===Bp.TREE_ITEM}})},Eu=function(){var t=X.useContext(ik);if(!t)throw new Error("useTreeContext must be used under TreeProvider");return t},MH=function(t,e){var n=Eu(),r=n.rootId,i=n.rootProps,o=n.classes,a=(o==null?void 0:o.container)||"";return e&&(o!=null&&o.dropTarget)&&(a="".concat(a," ").concat(o.dropTarget)),t===r&&(o!=null&&o.root)&&(a="".concat(a," ").concat(o.root)),t===r&&(i!=null&&i.className)&&(a="".concat(a," ").concat(i.className)),a=a.trim(),a},LH=function(t,e,n){e.current?n(e):n(t),X.useEffect(function(){e.current?n(e):n(t)},[e.current])},FH=function(t){var e=Eu(),n=X.useContext(Xd),r=X.useRef(null),i=X.useRef(null),o=e.tree.find(function(ue){return ue.id===t.id}),a=e.openIds,c=e.classes,d=e.enableAnimateExpand,p=a.includes(t.id),w=PH(o,r),m=w[0],T=w[1],E=w[2],A=RH(o,r),I=A[0],j=A[1],_=A[2];LH(r,i,T),wu(j,t.id,e)&&_(r),X.useEffect(function(){e.dragPreviewRender?E(nF(),{captureDraggingState:!0}):i.current&&E(r)},[E,e.dragPreviewRender]),DH(r);var U=function(){return e.onToggle(o.id)},G=e.listItemComponent,re=e.canDrag?e.canDrag(t.id):!0,q=n.dropTargetId===t.id,se={depth:t.depth,isOpen:p,isDragging:m,isDropTarget:q,draggable:re,hasChild:Wh(e.tree,t.id),containerRef:r,handleRef:i,onToggle:U},S="";return c!=null&&c.listItem&&(S=typeof c.listItem=="string"?c.listItem:c.listItem(o,se)),I&&(c!=null&&c.dropTarget)&&(S="".concat(S," ").concat(c.dropTarget)),m&&(c!=null&&c.draggingSource)&&(S="".concat(S," ").concat(c.draggingSource)),X.createElement(G,{ref:r,className:S,role:"listitem"},e.render(o,se),d&&se.hasChild&&X.createElement(dH,{isVisible:p},X.createElement(uv,{parentId:t.id,depth:t.depth+1})),!d&&se.hasChild&&p&&X.createElement(uv,{parentId:t.id,depth:t.depth+1}))},Xx=function(t){var e=Eu(),n=e.placeholderRender,r=e.placeholderComponent,i=e.classes,o=X.useContext(Xd),a=Ol(),c=a.getMonitor(),d=c.getItem();if(!n||!d)return null;var p=t.dropTargetId===o.dropTargetId&&(t.index===o.index||t.index===void 0&&t.listCount===o.index),w=c.getTargetIds();return!p||!w.length?null:X.createElement(r,{className:(i==null?void 0:i.placeholder)||""},n(d,{depth:t.depth}))},uv=function(t){var e=Eu(),n=X.useRef(null),r=e.tree.filter(function(I){return I.parent===t.parentId}),i=r,o=typeof e.sort=="function"?e.sort:vH;if(e.insertDroppableFirst){var a=r.filter(function(I){return I.droppable}),c=r.filter(function(I){return!I.droppable});e.sort===!1?i=io(io([],a,!0),c,!0):(a=a.sort(o),c=c.sort(o),i=io(io([],a,!0),c,!0))}else e.sort!==!1&&(i=r.sort(o));var d=_H(n),p=d[0],w=d[1],m=d[2];t.parentId===e.rootId&&wu(w,e.rootId,e)&&m(n);var T=MH(t.parentId,p),E=e.rootProps||{},A=e.listComponent;return X.createElement(A,Is({ref:n,role:"list"},E,{className:T}),i.map(function(I,j){return X.createElement(X.Fragment,{key:I.id},X.createElement(Xx,{depth:t.depth,listCount:i.length,dropTargetId:t.parentId,index:j}),X.createElement(FH,{id:I.id,depth:t.depth}))}),X.createElement(Xx,{depth:t.depth,listCount:i.length,dropTargetId:t.parentId}))},NH={height:"100%",left:0,pointerEvents:"none",position:"fixed",top:0,width:"100%",zIndex:100},jH=function(t){var e=t.clientOffset;if(!e)return{};var n=e.x,r=e.y,i="translate(".concat(n,"px, ").concat(r,"px)");return{pointerEvents:"none",transform:i}},BH=function(){var t=Eu(),e=IH(),n=e.isDragging,r=e.clientOffset;return!n||!r?null:X.createElement("div",{style:NH},X.createElement("div",{style:jH(e)},t.dragPreviewRender&&t.dragPreviewRender(e)))};function $H(t,e){return X.createElement(kH,Is({},t,{treeRef:e}),t.dragPreviewRender&&X.createElement(BH,null),X.createElement(uv,{parentId:t.rootId,depth:0}))}var VH=X.forwardRef($H);const ak=X.createContext({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"}),$p=X.createContext({}),Ay=X.createContext(null),Vp=typeof document<"u",HH=Vp?X.useLayoutEffect:X.useEffect,lk=X.createContext({strict:!1}),Iy=t=>t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),UH="framerAppearId",uk="data-"+Iy(UH);function WH(t,e,n,r){const{visualElement:i}=X.useContext($p),o=X.useContext(lk),a=X.useContext(Ay),c=X.useContext(ak).reducedMotion,d=X.useRef();r=r||o.renderer,!d.current&&r&&(d.current=r(t,{visualState:e,parent:i,props:n,presenceContext:a,blockInitialAnimation:a?a.initial===!1:!1,reducedMotionConfig:c}));const p=d.current;X.useInsertionEffect(()=>{p&&p.update(n,a)});const w=X.useRef(!!(n[uk]&&!window.HandoffComplete));return HH(()=>{p&&(p.render(),w.current&&p.animationState&&p.animationState.animateChanges())}),X.useEffect(()=>{p&&(p.updateFeatures(),!w.current&&p.animationState&&p.animationState.animateChanges(),w.current&&(w.current=!1,window.HandoffComplete=!0))}),p}function bf(t){return t&&typeof t=="object"&&Object.prototype.hasOwnProperty.call(t,"current")}function zH(t,e,n){return X.useCallback(r=>{r&&t.mount&&t.mount(r),e&&(r?e.mount(r):e.unmount()),n&&(typeof n=="function"?n(r):bf(n)&&(n.current=r))},[e])}function Nd(t){return typeof t=="string"||Array.isArray(t)}function Hp(t){return t!==null&&typeof t=="object"&&typeof t.start=="function"}const My=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Ly=["initial",...My];function Up(t){return Hp(t.animate)||Ly.some(e=>Nd(t[e]))}function ck(t){return!!(Up(t)||t.variants)}function YH(t,e){if(Up(t)){const{initial:n,animate:r}=t;return{initial:n===!1||Nd(n)?n:void 0,animate:Nd(r)?r:void 0}}return t.inherit!==!1?e:{}}function GH(t){const{initial:e,animate:n}=YH(t,X.useContext($p));return X.useMemo(()=>({initial:e,animate:n}),[Kx(e),Kx(n)])}function Kx(t){return Array.isArray(t)?t.join(" "):t}const Zx={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},jd={};for(const t in Zx)jd[t]={isEnabled:e=>Zx[t].some(n=>!!e[n])};function qH(t){for(const e in t)jd[e]={...jd[e],...t[e]}}const fk=X.createContext({}),dk=X.createContext({}),XH=Symbol.for("motionComponentSymbol");function KH({preloadedFeatures:t,createVisualElement:e,useRender:n,useVisualState:r,Component:i}){t&&qH(t);function o(c,d){let p;const w={...X.useContext(ak),...c,layoutId:ZH(c)},{isStatic:m}=w,T=GH(c),E=r(c,m);if(!m&&Vp){T.visualElement=WH(i,E,w,e);const A=X.useContext(dk),I=X.useContext(lk).strict;T.visualElement&&(p=T.visualElement.loadFeatures(w,I,t,A))}return kn.createElement($p.Provider,{value:T},p&&T.visualElement?kn.createElement(p,{visualElement:T.visualElement,...w}):null,n(i,c,zH(E,T.visualElement,d),E,m,T.visualElement))}const a=X.forwardRef(o);return a[XH]=i,a}function ZH({layoutId:t}){const e=X.useContext(fk).id;return e&&t!==void 0?e+"-"+t:t}function JH(t){function e(r,i={}){return KH(t(r,i))}if(typeof Proxy>"u")return e;const n=new Map;return new Proxy(e,{get:(r,i)=>(n.has(i)||n.set(i,e(i)),n.get(i))})}const QH=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function Fy(t){return typeof t!="string"||t.includes("-")?!1:!!(QH.indexOf(t)>-1||/[A-Z]/.test(t))}const fp={};function eU(t){Object.assign(fp,t)}const Kd=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Rc=new Set(Kd);function hk(t,{layout:e,layoutId:n}){return Rc.has(t)||t.startsWith("origin")||(e||n!==void 0)&&(!!fp[t]||t==="opacity")}const Ro=t=>!!(t&&t.getVelocity),tU={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},nU=Kd.length;function rU(t,{enableHardwareAcceleration:e=!0,allowTransformNone:n=!0},r,i){let o="";for(let a=0;a<nU;a++){const c=Kd[a];if(t[c]!==void 0){const d=tU[c]||c;o+=`${d}(${t[c]}) `}}return e&&!t.z&&(o+="translateZ(0)"),o=o.trim(),i?o=i(t,r?"":o):n&&r&&(o="none"),o}const pk=t=>e=>typeof e=="string"&&e.startsWith(t),gk=pk("--"),cv=pk("var(--"),iU=/var\s*\(\s*--[\w-]+(\s*,\s*(?:(?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)+)?\s*\)/g,oU=(t,e)=>e&&typeof t=="number"?e.transform(t):t,xu=(t,e,n)=>Math.min(Math.max(n,t),e),Ac={test:t=>typeof t=="number",parse:parseFloat,transform:t=>t},Td={...Ac,transform:t=>xu(0,1,t)},kh={...Ac,default:1},Cd=t=>Math.round(t*1e5)/1e5,Wp=/(-)?([\d]*\.?[\d])+/g,mk=/(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi,sU=/^(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function Zd(t){return typeof t=="string"}const Jd=t=>({test:e=>Zd(e)&&e.endsWith(t)&&e.split(" ").length===1,parse:parseFloat,transform:e=>`${e}${t}`}),au=Jd("deg"),$a=Jd("%"),Rt=Jd("px"),aU=Jd("vh"),lU=Jd("vw"),Jx={...$a,parse:t=>$a.parse(t)/100,transform:t=>$a.transform(t*100)},Qx={...Ac,transform:Math.round},vk={borderWidth:Rt,borderTopWidth:Rt,borderRightWidth:Rt,borderBottomWidth:Rt,borderLeftWidth:Rt,borderRadius:Rt,radius:Rt,borderTopLeftRadius:Rt,borderTopRightRadius:Rt,borderBottomRightRadius:Rt,borderBottomLeftRadius:Rt,width:Rt,maxWidth:Rt,height:Rt,maxHeight:Rt,size:Rt,top:Rt,right:Rt,bottom:Rt,left:Rt,padding:Rt,paddingTop:Rt,paddingRight:Rt,paddingBottom:Rt,paddingLeft:Rt,margin:Rt,marginTop:Rt,marginRight:Rt,marginBottom:Rt,marginLeft:Rt,rotate:au,rotateX:au,rotateY:au,rotateZ:au,scale:kh,scaleX:kh,scaleY:kh,scaleZ:kh,skew:au,skewX:au,skewY:au,distance:Rt,translateX:Rt,translateY:Rt,translateZ:Rt,x:Rt,y:Rt,z:Rt,perspective:Rt,transformPerspective:Rt,opacity:Td,originX:Jx,originY:Jx,originZ:Rt,zIndex:Qx,fillOpacity:Td,strokeOpacity:Td,numOctaves:Qx};function Ny(t,e,n,r){const{style:i,vars:o,transform:a,transformOrigin:c}=t;let d=!1,p=!1,w=!0;for(const m in e){const T=e[m];if(gk(m)){o[m]=T;continue}const E=vk[m],A=oU(T,E);if(Rc.has(m)){if(d=!0,a[m]=A,!w)continue;T!==(E.default||0)&&(w=!1)}else m.startsWith("origin")?(p=!0,c[m]=A):i[m]=A}if(e.transform||(d||r?i.transform=rU(t.transform,n,w,r):i.transform&&(i.transform="none")),p){const{originX:m="50%",originY:T="50%",originZ:E=0}=c;i.transformOrigin=`${m} ${T} ${E}`}}const jy=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function yk(t,e,n){for(const r in e)!Ro(e[r])&&!hk(r,n)&&(t[r]=e[r])}function uU({transformTemplate:t},e,n){return X.useMemo(()=>{const r=jy();return Ny(r,e,{enableHardwareAcceleration:!n},t),Object.assign({},r.vars,r.style)},[e])}function cU(t,e,n){const r=t.style||{},i={};return yk(i,r,t),Object.assign(i,uU(t,e,n)),t.transformValues?t.transformValues(i):i}function fU(t,e,n){const r={},i=cU(t,e,n);return t.drag&&t.dragListener!==!1&&(r.draggable=!1,i.userSelect=i.WebkitUserSelect=i.WebkitTouchCallout="none",i.touchAction=t.drag===!0?"none":`pan-${t.drag==="x"?"y":"x"}`),t.tabIndex===void 0&&(t.onTap||t.onTapStart||t.whileTap)&&(r.tabIndex=0),r.style=i,r}const dU=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","transformValues","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function dp(t){return t.startsWith("while")||t.startsWith("drag")&&t!=="draggable"||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||t.startsWith("onLayout")||dU.has(t)}let bk=t=>!dp(t);function hU(t){t&&(bk=e=>e.startsWith("on")?!dp(e):t(e))}try{hU(require("@emotion/is-prop-valid").default)}catch{}function pU(t,e,n){const r={};for(const i in t)i==="values"&&typeof t.values=="object"||(bk(i)||n===!0&&dp(i)||!e&&!dp(i)||t.draggable&&i.startsWith("onDrag"))&&(r[i]=t[i]);return r}function eS(t,e,n){return typeof t=="string"?t:Rt.transform(e+n*t)}function gU(t,e,n){const r=eS(e,t.x,t.width),i=eS(n,t.y,t.height);return`${r} ${i}`}const mU={offset:"stroke-dashoffset",array:"stroke-dasharray"},vU={offset:"strokeDashoffset",array:"strokeDasharray"};function yU(t,e,n=1,r=0,i=!0){t.pathLength=1;const o=i?mU:vU;t[o.offset]=Rt.transform(-r);const a=Rt.transform(e),c=Rt.transform(n);t[o.array]=`${a} ${c}`}function By(t,{attrX:e,attrY:n,attrScale:r,originX:i,originY:o,pathLength:a,pathSpacing:c=1,pathOffset:d=0,...p},w,m,T){if(Ny(t,p,w,T),m){t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox);return}t.attrs=t.style,t.style={};const{attrs:E,style:A,dimensions:I}=t;E.transform&&(I&&(A.transform=E.transform),delete E.transform),I&&(i!==void 0||o!==void 0||A.transform)&&(A.transformOrigin=gU(I,i!==void 0?i:.5,o!==void 0?o:.5)),e!==void 0&&(E.x=e),n!==void 0&&(E.y=n),r!==void 0&&(E.scale=r),a!==void 0&&yU(E,a,c,d,!1)}const wk=()=>({...jy(),attrs:{}}),$y=t=>typeof t=="string"&&t.toLowerCase()==="svg";function bU(t,e,n,r){const i=X.useMemo(()=>{const o=wk();return By(o,e,{enableHardwareAcceleration:!1},$y(r),t.transformTemplate),{...o.attrs,style:{...o.style}}},[e]);if(t.style){const o={};yk(o,t.style,t),i.style={...o,...i.style}}return i}function wU(t=!1){return(n,r,i,{latestValues:o},a)=>{const d=(Fy(n)?bU:fU)(r,o,a,n),w={...pU(r,typeof n=="string",t),...d,ref:i},{children:m}=r,T=X.useMemo(()=>Ro(m)?m.get():m,[m]);return X.createElement(n,{...w,children:T})}}function xk(t,{style:e,vars:n},r,i){Object.assign(t.style,e,i&&i.getProjectionStyles(r));for(const o in n)t.style.setProperty(o,n[o])}const Sk=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function Tk(t,e,n,r){xk(t,e,void 0,r);for(const i in e.attrs)t.setAttribute(Sk.has(i)?i:Iy(i),e.attrs[i])}function Vy(t,e){const{style:n}=t,r={};for(const i in n)(Ro(n[i])||e.style&&Ro(e.style[i])||hk(i,t))&&(r[i]=n[i]);return r}function Ck(t,e){const n=Vy(t,e);for(const r in t)if(Ro(t[r])||Ro(e[r])){const i=Kd.indexOf(r)!==-1?"attr"+r.charAt(0).toUpperCase()+r.substring(1):r;n[i]=t[r]}return n}function Hy(t,e,n,r={},i={}){return typeof e=="function"&&(e=e(n!==void 0?n:t.custom,r,i)),typeof e=="string"&&(e=t.variants&&t.variants[e]),typeof e=="function"&&(e=e(n!==void 0?n:t.custom,r,i)),e}function xU(t){const e=X.useRef(null);return e.current===null&&(e.current=t()),e.current}const hp=t=>Array.isArray(t),SU=t=>!!(t&&typeof t=="object"&&t.mix&&t.toValue),TU=t=>hp(t)?t[t.length-1]||0:t;function zh(t){const e=Ro(t)?t.get():t;return SU(e)?e.toValue():e}function CU({scrapeMotionValuesFromProps:t,createRenderState:e,onMount:n},r,i,o){const a={latestValues:EU(r,i,o,t),renderState:e()};return n&&(a.mount=c=>n(r,c,a)),a}const Ek=t=>(e,n)=>{const r=X.useContext($p),i=X.useContext(Ay),o=()=>CU(t,e,r,i);return n?o():xU(o)};function EU(t,e,n,r){const i={},o=r(t,{});for(const T in o)i[T]=zh(o[T]);let{initial:a,animate:c}=t;const d=Up(t),p=ck(t);e&&p&&!d&&t.inherit!==!1&&(a===void 0&&(a=e.initial),c===void 0&&(c=e.animate));let w=n?n.initial===!1:!1;w=w||a===!1;const m=w?c:a;return m&&typeof m!="boolean"&&!Hp(m)&&(Array.isArray(m)?m:[m]).forEach(E=>{const A=Hy(t,E);if(!A)return;const{transitionEnd:I,transition:j,..._}=A;for(const U in _){let G=_[U];if(Array.isArray(G)){const re=w?G.length-1:0;G=G[re]}G!==null&&(i[U]=G)}for(const U in I)i[U]=I[U]}),i}const sr=t=>t;class tS{constructor(){this.order=[],this.scheduled=new Set}add(e){if(!this.scheduled.has(e))return this.scheduled.add(e),this.order.push(e),!0}remove(e){const n=this.order.indexOf(e);n!==-1&&(this.order.splice(n,1),this.scheduled.delete(e))}clear(){this.order.length=0,this.scheduled.clear()}}function kU(t){let e=new tS,n=new tS,r=0,i=!1,o=!1;const a=new WeakSet,c={schedule:(d,p=!1,w=!1)=>{const m=w&&i,T=m?e:n;return p&&a.add(d),T.add(d)&&m&&i&&(r=e.order.length),d},cancel:d=>{n.remove(d),a.delete(d)},process:d=>{if(i){o=!0;return}if(i=!0,[e,n]=[n,e],n.clear(),r=e.order.length,r)for(let p=0;p<r;p++){const w=e.order[p];w(d),a.has(w)&&(c.schedule(w),t())}i=!1,o&&(o=!1,c.process(d))}};return c}const Dh=["prepare","read","update","preRender","render","postRender"],DU=40;function PU(t,e){let n=!1,r=!0;const i={delta:0,timestamp:0,isProcessing:!1},o=Dh.reduce((m,T)=>(m[T]=kU(()=>n=!0),m),{}),a=m=>o[m].process(i),c=()=>{const m=performance.now();n=!1,i.delta=r?1e3/60:Math.max(Math.min(m-i.timestamp,DU),1),i.timestamp=m,i.isProcessing=!0,Dh.forEach(a),i.isProcessing=!1,n&&e&&(r=!1,t(c))},d=()=>{n=!0,r=!0,i.isProcessing||t(c)};return{schedule:Dh.reduce((m,T)=>{const E=o[T];return m[T]=(A,I=!1,j=!1)=>(n||d(),E.schedule(A,I,j)),m},{}),cancel:m=>Dh.forEach(T=>o[T].cancel(m)),state:i,steps:o}}const{schedule:Ln,cancel:Dl,state:Fi,steps:Zg}=PU(typeof requestAnimationFrame<"u"?requestAnimationFrame:sr,!0),OU={useVisualState:Ek({scrapeMotionValuesFromProps:Ck,createRenderState:wk,onMount:(t,e,{renderState:n,latestValues:r})=>{Ln.read(()=>{try{n.dimensions=typeof e.getBBox=="function"?e.getBBox():e.getBoundingClientRect()}catch{n.dimensions={x:0,y:0,width:0,height:0}}}),Ln.render(()=>{By(n,r,{enableHardwareAcceleration:!1},$y(e.tagName),t.transformTemplate),Tk(e,n)})}})},_U={useVisualState:Ek({scrapeMotionValuesFromProps:Vy,createRenderState:jy})};function RU(t,{forwardMotionProps:e=!1},n,r){return{...Fy(t)?OU:_U,preloadedFeatures:n,useRender:wU(e),createVisualElement:r,Component:t}}function wl(t,e,n,r={passive:!0}){return t.addEventListener(e,n,r),()=>t.removeEventListener(e,n)}const kk=t=>t.pointerType==="mouse"?typeof t.button!="number"||t.button<=0:t.isPrimary!==!1;function zp(t,e="page"){return{point:{x:t[e+"X"],y:t[e+"Y"]}}}const AU=t=>e=>kk(e)&&t(e,zp(e));function Tl(t,e,n,r){return wl(t,e,AU(n),r)}const IU=(t,e)=>n=>e(t(n)),fu=(...t)=>t.reduce(IU);function Dk(t){let e=null;return()=>{const n=()=>{e=null};return e===null?(e=t,n):!1}}const nS=Dk("dragHorizontal"),rS=Dk("dragVertical");function Pk(t){let e=!1;if(t==="y")e=rS();else if(t==="x")e=nS();else{const n=nS(),r=rS();n&&r?e=()=>{n(),r()}:(n&&n(),r&&r())}return e}function Ok(){const t=Pk(!0);return t?(t(),!1):!0}class ku{constructor(e){this.isMounted=!1,this.node=e}update(){}}function iS(t,e){const n="pointer"+(e?"enter":"leave"),r="onHover"+(e?"Start":"End"),i=(o,a)=>{if(o.pointerType==="touch"||Ok())return;const c=t.getProps();t.animationState&&c.whileHover&&t.animationState.setActive("whileHover",e),c[r]&&Ln.update(()=>c[r](o,a))};return Tl(t.current,n,i,{passive:!t.getProps()[r]})}class MU extends ku{mount(){this.unmount=fu(iS(this.node,!0),iS(this.node,!1))}unmount(){}}class LU extends ku{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(":focus-visible")}catch{e=!0}!e||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=fu(wl(this.node.current,"focus",()=>this.onFocus()),wl(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}const _k=(t,e)=>e?t===e?!0:_k(t,e.parentElement):!1;function Jg(t,e){if(!e)return;const n=new PointerEvent("pointer"+t);e(n,zp(n))}class FU extends ku{constructor(){super(...arguments),this.removeStartListeners=sr,this.removeEndListeners=sr,this.removeAccessibleListeners=sr,this.startPointerPress=(e,n)=>{if(this.isPressing)return;this.removeEndListeners();const r=this.node.getProps(),o=Tl(window,"pointerup",(c,d)=>{if(!this.checkPressEnd())return;const{onTap:p,onTapCancel:w,globalTapTarget:m}=this.node.getProps();Ln.update(()=>{!m&&!_k(this.node.current,c.target)?w&&w(c,d):p&&p(c,d)})},{passive:!(r.onTap||r.onPointerUp)}),a=Tl(window,"pointercancel",(c,d)=>this.cancelPress(c,d),{passive:!(r.onTapCancel||r.onPointerCancel)});this.removeEndListeners=fu(o,a),this.startPress(e,n)},this.startAccessiblePress=()=>{const e=o=>{if(o.key!=="Enter"||this.isPressing)return;const a=c=>{c.key!=="Enter"||!this.checkPressEnd()||Jg("up",(d,p)=>{const{onTap:w}=this.node.getProps();w&&Ln.update(()=>w(d,p))})};this.removeEndListeners(),this.removeEndListeners=wl(this.node.current,"keyup",a),Jg("down",(c,d)=>{this.startPress(c,d)})},n=wl(this.node.current,"keydown",e),r=()=>{this.isPressing&&Jg("cancel",(o,a)=>this.cancelPress(o,a))},i=wl(this.node.current,"blur",r);this.removeAccessibleListeners=fu(n,i)}}startPress(e,n){this.isPressing=!0;const{onTapStart:r,whileTap:i}=this.node.getProps();i&&this.node.animationState&&this.node.animationState.setActive("whileTap",!0),r&&Ln.update(()=>r(e,n))}checkPressEnd(){return this.removeEndListeners(),this.isPressing=!1,this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!Ok()}cancelPress(e,n){if(!this.checkPressEnd())return;const{onTapCancel:r}=this.node.getProps();r&&Ln.update(()=>r(e,n))}mount(){const e=this.node.getProps(),n=Tl(e.globalTapTarget?window:this.node.current,"pointerdown",this.startPointerPress,{passive:!(e.onTapStart||e.onPointerStart)}),r=wl(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=fu(n,r)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}const fv=new WeakMap,Qg=new WeakMap,NU=t=>{const e=fv.get(t.target);e&&e(t)},jU=t=>{t.forEach(NU)};function BU({root:t,...e}){const n=t||document;Qg.has(n)||Qg.set(n,{});const r=Qg.get(n),i=JSON.stringify(e);return r[i]||(r[i]=new IntersectionObserver(jU,{root:t,...e})),r[i]}function $U(t,e,n){const r=BU(e);return fv.set(t,n),r.observe(t),()=>{fv.delete(t),r.unobserve(t)}}const VU={some:0,all:1};class HU extends ku{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:e={}}=this.node.getProps(),{root:n,margin:r,amount:i="some",once:o}=e,a={root:n?n.current:void 0,rootMargin:r,threshold:typeof i=="number"?i:VU[i]},c=d=>{const{isIntersecting:p}=d;if(this.isInView===p||(this.isInView=p,o&&!p&&this.hasEnteredView))return;p&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",p);const{onViewportEnter:w,onViewportLeave:m}=this.node.getProps(),T=p?w:m;T&&T(d)};return $U(this.node.current,a,c)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:e,prevProps:n}=this.node;["amount","margin","root"].some(UU(e,n))&&this.startObserver()}unmount(){}}function UU({viewport:t={}},{viewport:e={}}={}){return n=>t[n]!==e[n]}const WU={inView:{Feature:HU},tap:{Feature:FU},focus:{Feature:LU},hover:{Feature:MU}};function Rk(t,e){if(!Array.isArray(e))return!1;const n=e.length;if(n!==t.length)return!1;for(let r=0;r<n;r++)if(e[r]!==t[r])return!1;return!0}function zU(t){const e={};return t.values.forEach((n,r)=>e[r]=n.get()),e}function YU(t){const e={};return t.values.forEach((n,r)=>e[r]=n.getVelocity()),e}function Yp(t,e,n){const r=t.getProps();return Hy(r,e,n!==void 0?n:r.custom,zU(t),YU(t))}let Qd=sr,aa=sr;process.env.NODE_ENV!=="production"&&(Qd=(t,e)=>{!t&&typeof console<"u"&&console.warn(e)},aa=(t,e)=>{if(!t)throw new Error(e)});const du=t=>t*1e3,Cl=t=>t/1e3,GU={current:!1},Ak=t=>Array.isArray(t)&&typeof t[0]=="number";function Ik(t){return!!(!t||typeof t=="string"&&Mk[t]||Ak(t)||Array.isArray(t)&&t.every(Ik))}const pd=([t,e,n,r])=>`cubic-bezier(${t}, ${e}, ${n}, ${r})`,Mk={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:pd([0,.65,.55,1]),circOut:pd([.55,0,1,.45]),backIn:pd([.31,.01,.66,-.59]),backOut:pd([.33,1.53,.69,.99])};function Lk(t){if(t)return Ak(t)?pd(t):Array.isArray(t)?t.map(Lk):Mk[t]}function qU(t,e,n,{delay:r=0,duration:i,repeat:o=0,repeatType:a="loop",ease:c,times:d}={}){const p={[e]:n};d&&(p.offset=d);const w=Lk(c);return Array.isArray(w)&&(p.easing=w),t.animate(p,{delay:r,duration:i,easing:Array.isArray(w)?"linear":w,fill:"both",iterations:o+1,direction:a==="reverse"?"alternate":"normal"})}function XU(t,{repeat:e,repeatType:n="loop"}){const r=e&&n!=="loop"&&e%2===1?0:t.length-1;return t[r]}const Fk=(t,e,n)=>(((1-3*n+3*e)*t+(3*n-6*e))*t+3*e)*t,KU=1e-7,ZU=12;function JU(t,e,n,r,i){let o,a,c=0;do a=e+(n-e)/2,o=Fk(a,r,i)-t,o>0?n=a:e=a;while(Math.abs(o)>KU&&++c<ZU);return a}function eh(t,e,n,r){if(t===e&&n===r)return sr;const i=o=>JU(o,0,1,t,n);return o=>o===0||o===1?o:Fk(i(o),e,r)}const QU=eh(.42,0,1,1),eW=eh(0,0,.58,1),Nk=eh(.42,0,.58,1),tW=t=>Array.isArray(t)&&typeof t[0]!="number",jk=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,Bk=t=>e=>1-t(1-e),Uy=t=>1-Math.sin(Math.acos(t)),$k=Bk(Uy),nW=jk(Uy),Vk=eh(.33,1.53,.69,.99),Wy=Bk(Vk),rW=jk(Wy),iW=t=>(t*=2)<1?.5*Wy(t):.5*(2-Math.pow(2,-10*(t-1))),oS={linear:sr,easeIn:QU,easeInOut:Nk,easeOut:eW,circIn:Uy,circInOut:nW,circOut:$k,backIn:Wy,backInOut:rW,backOut:Vk,anticipate:iW},sS=t=>{if(Array.isArray(t)){aa(t.length===4,"Cubic bezier arrays must contain four numerical values.");const[e,n,r,i]=t;return eh(e,n,r,i)}else if(typeof t=="string")return aa(oS[t]!==void 0,`Invalid easing type '${t}'`),oS[t];return t},zy=(t,e)=>n=>!!(Zd(n)&&sU.test(n)&&n.startsWith(t)||e&&Object.prototype.hasOwnProperty.call(n,e)),Hk=(t,e,n)=>r=>{if(!Zd(r))return r;const[i,o,a,c]=r.match(Wp);return{[t]:parseFloat(i),[e]:parseFloat(o),[n]:parseFloat(a),alpha:c!==void 0?parseFloat(c):1}},oW=t=>xu(0,255,t),em={...Ac,transform:t=>Math.round(oW(t))},vc={test:zy("rgb","red"),parse:Hk("red","green","blue"),transform:({red:t,green:e,blue:n,alpha:r=1})=>"rgba("+em.transform(t)+", "+em.transform(e)+", "+em.transform(n)+", "+Cd(Td.transform(r))+")"};function sW(t){let e="",n="",r="",i="";return t.length>5?(e=t.substring(1,3),n=t.substring(3,5),r=t.substring(5,7),i=t.substring(7,9)):(e=t.substring(1,2),n=t.substring(2,3),r=t.substring(3,4),i=t.substring(4,5),e+=e,n+=n,r+=r,i+=i),{red:parseInt(e,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}}const dv={test:zy("#"),parse:sW,transform:vc.transform},wf={test:zy("hsl","hue"),parse:Hk("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:n,alpha:r=1})=>"hsla("+Math.round(t)+", "+$a.transform(Cd(e))+", "+$a.transform(Cd(n))+", "+Cd(Td.transform(r))+")"},ro={test:t=>vc.test(t)||dv.test(t)||wf.test(t),parse:t=>vc.test(t)?vc.parse(t):wf.test(t)?wf.parse(t):dv.parse(t),transform:t=>Zd(t)?t:t.hasOwnProperty("red")?vc.transform(t):wf.transform(t)},Zn=(t,e,n)=>-n*t+n*e+t;function tm(t,e,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?t+(e-t)*6*n:n<1/2?e:n<2/3?t+(e-t)*(2/3-n)*6:t}function aW({hue:t,saturation:e,lightness:n,alpha:r}){t/=360,e/=100,n/=100;let i=0,o=0,a=0;if(!e)i=o=a=n;else{const c=n<.5?n*(1+e):n+e-n*e,d=2*n-c;i=tm(d,c,t+1/3),o=tm(d,c,t),a=tm(d,c,t-1/3)}return{red:Math.round(i*255),green:Math.round(o*255),blue:Math.round(a*255),alpha:r}}const nm=(t,e,n)=>{const r=t*t;return Math.sqrt(Math.max(0,n*(e*e-r)+r))},lW=[dv,vc,wf],uW=t=>lW.find(e=>e.test(t));function aS(t){const e=uW(t);aa(!!e,`'${t}' is not an animatable color. Use the equivalent color code instead.`);let n=e.parse(t);return e===wf&&(n=aW(n)),n}const Uk=(t,e)=>{const n=aS(t),r=aS(e),i={...n};return o=>(i.red=nm(n.red,r.red,o),i.green=nm(n.green,r.green,o),i.blue=nm(n.blue,r.blue,o),i.alpha=Zn(n.alpha,r.alpha,o),vc.transform(i))};function cW(t){var e,n;return isNaN(t)&&Zd(t)&&(((e=t.match(Wp))===null||e===void 0?void 0:e.length)||0)+(((n=t.match(mk))===null||n===void 0?void 0:n.length)||0)>0}const Wk={regex:iU,countKey:"Vars",token:"${v}",parse:sr},zk={regex:mk,countKey:"Colors",token:"${c}",parse:ro.parse},Yk={regex:Wp,countKey:"Numbers",token:"${n}",parse:Ac.parse};function rm(t,{regex:e,countKey:n,token:r,parse:i}){const o=t.tokenised.match(e);o&&(t["num"+n]=o.length,t.tokenised=t.tokenised.replace(e,r),t.values.push(...o.map(i)))}function pp(t){const e=t.toString(),n={value:e,tokenised:e,values:[],numVars:0,numColors:0,numNumbers:0};return n.value.includes("var(--")&&rm(n,Wk),rm(n,zk),rm(n,Yk),n}function Gk(t){return pp(t).values}function qk(t){const{values:e,numColors:n,numVars:r,tokenised:i}=pp(t),o=e.length;return a=>{let c=i;for(let d=0;d<o;d++)d<r?c=c.replace(Wk.token,a[d]):d<r+n?c=c.replace(zk.token,ro.transform(a[d])):c=c.replace(Yk.token,Cd(a[d]));return c}}const fW=t=>typeof t=="number"?0:t;function dW(t){const e=Gk(t);return qk(t)(e.map(fW))}const Su={test:cW,parse:Gk,createTransformer:qk,getAnimatableNone:dW},Xk=(t,e)=>n=>`${n>0?e:t}`;function Kk(t,e){return typeof t=="number"?n=>Zn(t,e,n):ro.test(t)?Uk(t,e):t.startsWith("var(")?Xk(t,e):Jk(t,e)}const Zk=(t,e)=>{const n=[...t],r=n.length,i=t.map((o,a)=>Kk(o,e[a]));return o=>{for(let a=0;a<r;a++)n[a]=i[a](o);return n}},hW=(t,e)=>{const n={...t,...e},r={};for(const i in n)t[i]!==void 0&&e[i]!==void 0&&(r[i]=Kk(t[i],e[i]));return i=>{for(const o in r)n[o]=r[o](i);return n}},Jk=(t,e)=>{const n=Su.createTransformer(e),r=pp(t),i=pp(e);return r.numVars===i.numVars&&r.numColors===i.numColors&&r.numNumbers>=i.numNumbers?fu(Zk(r.values,i.values),n):(Qd(!0,`Complex values '${t}' and '${e}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`),Xk(t,e))},Bd=(t,e,n)=>{const r=e-t;return r===0?1:(n-t)/r},lS=(t,e)=>n=>Zn(t,e,n);function pW(t){return typeof t=="number"?lS:typeof t=="string"?ro.test(t)?Uk:Jk:Array.isArray(t)?Zk:typeof t=="object"?hW:lS}function gW(t,e,n){const r=[],i=n||pW(t[0]),o=t.length-1;for(let a=0;a<o;a++){let c=i(t[a],t[a+1]);if(e){const d=Array.isArray(e)?e[a]||sr:e;c=fu(d,c)}r.push(c)}return r}function Qk(t,e,{clamp:n=!0,ease:r,mixer:i}={}){const o=t.length;if(aa(o===e.length,"Both input and output ranges must be the same length"),o===1)return()=>e[0];t[0]>t[o-1]&&(t=[...t].reverse(),e=[...e].reverse());const a=gW(e,r,i),c=a.length,d=p=>{let w=0;if(c>1)for(;w<t.length-2&&!(p<t[w+1]);w++);const m=Bd(t[w],t[w+1],p);return a[w](m)};return n?p=>d(xu(t[0],t[o-1],p)):d}function mW(t,e){const n=t[t.length-1];for(let r=1;r<=e;r++){const i=Bd(0,e,r);t.push(Zn(n,1,i))}}function vW(t){const e=[0];return mW(e,t.length-1),e}function yW(t,e){return t.map(n=>n*e)}function bW(t,e){return t.map(()=>e||Nk).splice(0,t.length-1)}function gp({duration:t=300,keyframes:e,times:n,ease:r="easeInOut"}){const i=tW(r)?r.map(sS):sS(r),o={done:!1,value:e[0]},a=yW(n&&n.length===e.length?n:vW(e),t),c=Qk(a,e,{ease:Array.isArray(i)?i:bW(e,i)});return{calculatedDuration:t,next:d=>(o.value=c(d),o.done=d>=t,o)}}function eD(t,e){return e?t*(1e3/e):0}const wW=5;function tD(t,e,n){const r=Math.max(e-wW,0);return eD(n-t(r),e-r)}const uS=.001,xW=.01,cS=10,SW=.05,TW=1;function CW({duration:t=800,bounce:e=.25,velocity:n=0,mass:r=1}){let i,o;Qd(t<=du(cS),"Spring duration must be 10 seconds or less");let a=1-e;a=xu(SW,TW,a),t=xu(xW,cS,Cl(t)),a<1?(i=p=>{const w=p*a,m=w*t,T=w-n,E=hv(p,a),A=Math.exp(-m);return uS-T/E*A},o=p=>{const m=p*a*t,T=m*n+n,E=Math.pow(a,2)*Math.pow(p,2)*t,A=Math.exp(-m),I=hv(Math.pow(p,2),a);return(-i(p)+uS>0?-1:1)*((T-E)*A)/I}):(i=p=>{const w=Math.exp(-p*t),m=(p-n)*t+1;return-.001+w*m},o=p=>{const w=Math.exp(-p*t),m=(n-p)*(t*t);return w*m});const c=5/t,d=kW(i,o,c);if(t=du(t),isNaN(d))return{stiffness:100,damping:10,duration:t};{const p=Math.pow(d,2)*r;return{stiffness:p,damping:a*2*Math.sqrt(r*p),duration:t}}}const EW=12;function kW(t,e,n){let r=n;for(let i=1;i<EW;i++)r=r-t(r)/e(r);return r}function hv(t,e){return t*Math.sqrt(1-e*e)}const DW=["duration","bounce"],PW=["stiffness","damping","mass"];function fS(t,e){return e.some(n=>t[n]!==void 0)}function OW(t){let e={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...t};if(!fS(t,PW)&&fS(t,DW)){const n=CW(t);e={...e,...n,mass:1},e.isResolvedFromDuration=!0}return e}function nD({keyframes:t,restDelta:e,restSpeed:n,...r}){const i=t[0],o=t[t.length-1],a={done:!1,value:i},{stiffness:c,damping:d,mass:p,duration:w,velocity:m,isResolvedFromDuration:T}=OW({...r,velocity:-Cl(r.velocity||0)}),E=m||0,A=d/(2*Math.sqrt(c*p)),I=o-i,j=Cl(Math.sqrt(c/p)),_=Math.abs(I)<5;n||(n=_?.01:2),e||(e=_?.005:.5);let U;if(A<1){const G=hv(j,A);U=re=>{const q=Math.exp(-A*j*re);return o-q*((E+A*j*I)/G*Math.sin(G*re)+I*Math.cos(G*re))}}else if(A===1)U=G=>o-Math.exp(-j*G)*(I+(E+j*I)*G);else{const G=j*Math.sqrt(A*A-1);U=re=>{const q=Math.exp(-A*j*re),se=Math.min(G*re,300);return o-q*((E+A*j*I)*Math.sinh(se)+G*I*Math.cosh(se))/G}}return{calculatedDuration:T&&w||null,next:G=>{const re=U(G);if(T)a.done=G>=w;else{let q=E;G!==0&&(A<1?q=tD(U,G,re):q=0);const se=Math.abs(q)<=n,S=Math.abs(o-re)<=e;a.done=se&&S}return a.value=a.done?o:re,a}}}function dS({keyframes:t,velocity:e=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:o=500,modifyTarget:a,min:c,max:d,restDelta:p=.5,restSpeed:w}){const m=t[0],T={done:!1,value:m},E=ue=>c!==void 0&&ue<c||d!==void 0&&ue>d,A=ue=>c===void 0?d:d===void 0||Math.abs(c-ue)<Math.abs(d-ue)?c:d;let I=n*e;const j=m+I,_=a===void 0?j:a(j);_!==j&&(I=_-m);const U=ue=>-I*Math.exp(-ue/r),G=ue=>_+U(ue),re=ue=>{const ae=U(ue),Ue=G(ue);T.done=Math.abs(ae)<=p,T.value=T.done?_:Ue};let q,se;const S=ue=>{E(T.value)&&(q=ue,se=nD({keyframes:[T.value,A(T.value)],velocity:tD(G,ue,T.value),damping:i,stiffness:o,restDelta:p,restSpeed:w}))};return S(0),{calculatedDuration:null,next:ue=>{let ae=!1;return!se&&q===void 0&&(ae=!0,re(ue),S(ue)),q!==void 0&&ue>q?se.next(ue-q):(!ae&&re(ue),T)}}}const _W=t=>{const e=({timestamp:n})=>t(n);return{start:()=>Ln.update(e,!0),stop:()=>Dl(e),now:()=>Fi.isProcessing?Fi.timestamp:performance.now()}},hS=2e4;function pS(t){let e=0;const n=50;let r=t.next(e);for(;!r.done&&e<hS;)e+=n,r=t.next(e);return e>=hS?1/0:e}const RW={decay:dS,inertia:dS,tween:gp,keyframes:gp,spring:nD};function mp({autoplay:t=!0,delay:e=0,driver:n=_W,keyframes:r,type:i="keyframes",repeat:o=0,repeatDelay:a=0,repeatType:c="loop",onPlay:d,onStop:p,onComplete:w,onUpdate:m,...T}){let E=1,A=!1,I,j;const _=()=>{j=new Promise(Se=>{I=Se})};_();let U;const G=RW[i]||gp;let re;G!==gp&&typeof r[0]!="number"&&(process.env.NODE_ENV!=="production"&&aa(r.length===2,`Only two keyframes currently supported with spring and inertia animations. Trying to animate ${r}`),re=Qk([0,100],r,{clamp:!1}),r=[0,100]);const q=G({...T,keyframes:r});let se;c==="mirror"&&(se=G({...T,keyframes:[...r].reverse(),velocity:-(T.velocity||0)}));let S="idle",ue=null,ae=null,Ue=null;q.calculatedDuration===null&&o&&(q.calculatedDuration=pS(q));const{calculatedDuration:nt}=q;let et=1/0,De=1/0;nt!==null&&(et=nt+a,De=et*(o+1)-a);let Me=0;const fe=Se=>{if(ae===null)return;E>0&&(ae=Math.min(ae,Se)),E<0&&(ae=Math.min(Se-De/E,ae)),ue!==null?Me=ue:Me=Math.round(Se-ae)*E;const je=Me-e*(E>=0?1:-1),Qe=E>=0?je<0:je>De;Me=Math.max(je,0),S==="finished"&&ue===null&&(Me=De);let Ye=Me,Ke=q;if(o){const pt=Math.min(Me,De)/et;let ft=Math.floor(pt),yt=pt%1;!yt&&pt>=1&&(yt=1),yt===1&&ft--,ft=Math.min(ft,o+1),!!(ft%2)&&(c==="reverse"?(yt=1-yt,a&&(yt-=a/et)):c==="mirror"&&(Ke=se)),Ye=xu(0,1,yt)*et}const qe=Qe?{done:!1,value:r[0]}:Ke.next(Ye);re&&(qe.value=re(qe.value));let{done:ot}=qe;!Qe&&nt!==null&&(ot=E>=0?Me>=De:Me<=0);const ct=ue===null&&(S==="finished"||S==="running"&&ot);return m&&m(qe.value),ct&&Be(),qe},me=()=>{U&&U.stop(),U=void 0},Pe=()=>{S="idle",me(),I(),_(),ae=Ue=null},Be=()=>{S="finished",w&&w(),me(),I()},Ze=()=>{if(A)return;U||(U=n(fe));const Se=U.now();d&&d(),ue!==null?ae=Se-ue:(!ae||S==="finished")&&(ae=Se),S==="finished"&&_(),Ue=ae,ue=null,S="running",U.start()};t&&Ze();const ve={then(Se,je){return j.then(Se,je)},get time(){return Cl(Me)},set time(Se){Se=du(Se),Me=Se,ue!==null||!U||E===0?ue=Se:ae=U.now()-Se/E},get duration(){const Se=q.calculatedDuration===null?pS(q):q.calculatedDuration;return Cl(Se)},get speed(){return E},set speed(Se){Se===E||!U||(E=Se,ve.time=Cl(Me))},get state(){return S},play:Ze,pause:()=>{S="paused",ue=Me},stop:()=>{A=!0,S!=="idle"&&(S="idle",p&&p(),Pe())},cancel:()=>{Ue!==null&&fe(Ue),Pe()},complete:()=>{S="finished"},sample:Se=>(ae=0,fe(Se))};return ve}function AW(t){let e;return()=>(e===void 0&&(e=t()),e)}const IW=AW(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),MW=new Set(["opacity","clipPath","filter","transform","backgroundColor"]),Ph=10,LW=2e4,FW=(t,e)=>e.type==="spring"||t==="backgroundColor"||!Ik(e.ease);function NW(t,e,{onUpdate:n,onComplete:r,...i}){if(!(IW()&&MW.has(e)&&!i.repeatDelay&&i.repeatType!=="mirror"&&i.damping!==0&&i.type!=="inertia"))return!1;let a=!1,c,d,p=!1;const w=()=>{d=new Promise(G=>{c=G})};w();let{keyframes:m,duration:T=300,ease:E,times:A}=i;if(FW(e,i)){const G=mp({...i,repeat:0,delay:0});let re={done:!1,value:m[0]};const q=[];let se=0;for(;!re.done&&se<LW;)re=G.sample(se),q.push(re.value),se+=Ph;A=void 0,m=q,T=se-Ph,E="linear"}const I=qU(t.owner.current,e,m,{...i,duration:T,ease:E,times:A}),j=()=>{p=!1,I.cancel()},_=()=>{p=!0,Ln.update(j),c(),w()};return I.onfinish=()=>{p||(t.set(XU(m,i)),r&&r(),_())},{then(G,re){return d.then(G,re)},attachTimeline(G){return I.timeline=G,I.onfinish=null,sr},get time(){return Cl(I.currentTime||0)},set time(G){I.currentTime=du(G)},get speed(){return I.playbackRate},set speed(G){I.playbackRate=G},get duration(){return Cl(T)},play:()=>{a||(I.play(),Dl(j))},pause:()=>I.pause(),stop:()=>{if(a=!0,I.playState==="idle")return;const{currentTime:G}=I;if(G){const re=mp({...i,autoplay:!1});t.setWithVelocity(re.sample(G-Ph).value,re.sample(G).value,Ph)}_()},complete:()=>{p||I.finish()},cancel:_}}function jW({keyframes:t,delay:e,onUpdate:n,onComplete:r}){const i=()=>(n&&n(t[t.length-1]),r&&r(),{time:0,speed:1,duration:0,play:sr,pause:sr,stop:sr,then:o=>(o(),Promise.resolve()),cancel:sr,complete:sr});return e?mp({keyframes:[0,1],duration:0,delay:e,onComplete:i}):i()}const BW={type:"spring",stiffness:500,damping:25,restSpeed:10},$W=t=>({type:"spring",stiffness:550,damping:t===0?2*Math.sqrt(550):30,restSpeed:10}),VW={type:"keyframes",duration:.8},HW={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},UW=(t,{keyframes:e})=>e.length>2?VW:Rc.has(t)?t.startsWith("scale")?$W(e[1]):BW:HW,pv=(t,e)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(Su.test(e)||e==="0")&&!e.startsWith("url(")),WW=new Set(["brightness","contrast","saturate","opacity"]);function zW(t){const[e,n]=t.slice(0,-1).split("(");if(e==="drop-shadow")return t;const[r]=n.match(Wp)||[];if(!r)return t;const i=n.replace(r,"");let o=WW.has(e)?1:0;return r!==n&&(o*=100),e+"("+o+i+")"}const YW=/([a-z-]*)\(.*?\)/g,gv={...Su,getAnimatableNone:t=>{const e=t.match(YW);return e?e.map(zW).join(" "):t}},GW={...vk,color:ro,backgroundColor:ro,outlineColor:ro,fill:ro,stroke:ro,borderColor:ro,borderTopColor:ro,borderRightColor:ro,borderBottomColor:ro,borderLeftColor:ro,filter:gv,WebkitFilter:gv},Yy=t=>GW[t];function rD(t,e){let n=Yy(t);return n!==gv&&(n=Su),n.getAnimatableNone?n.getAnimatableNone(e):void 0}const iD=t=>/^0[^.\s]+$/.test(t);function qW(t){if(typeof t=="number")return t===0;if(t!==null)return t==="none"||t==="0"||iD(t)}function XW(t,e,n,r){const i=pv(e,n);let o;Array.isArray(n)?o=[...n]:o=[null,n];const a=r.from!==void 0?r.from:t.get();let c;const d=[];for(let p=0;p<o.length;p++)o[p]===null&&(o[p]=p===0?a:o[p-1]),qW(o[p])&&d.push(p),typeof o[p]=="string"&&o[p]!=="none"&&o[p]!=="0"&&(c=o[p]);if(i&&d.length&&c)for(let p=0;p<d.length;p++){const w=d[p];o[w]=rD(e,c)}return o}function KW({when:t,delay:e,delayChildren:n,staggerChildren:r,staggerDirection:i,repeat:o,repeatType:a,repeatDelay:c,from:d,elapsed:p,...w}){return!!Object.keys(w).length}function Gy(t,e){return t[e]||t.default||t}const ZW={skipAnimations:!1},qy=(t,e,n,r={})=>i=>{const o=Gy(r,t)||{},a=o.delay||r.delay||0;let{elapsed:c=0}=r;c=c-du(a);const d=XW(e,t,n,o),p=d[0],w=d[d.length-1],m=pv(t,p),T=pv(t,w);Qd(m===T,`You are trying to animate ${t} from "${p}" to "${w}". ${p} is not an animatable value - to enable this animation set ${p} to a value animatable to ${w} via the \`style\` property.`);let E={keyframes:d,velocity:e.getVelocity(),ease:"easeOut",...o,delay:-c,onUpdate:A=>{e.set(A),o.onUpdate&&o.onUpdate(A)},onComplete:()=>{i(),o.onComplete&&o.onComplete()}};if(KW(o)||(E={...E,...UW(t,E)}),E.duration&&(E.duration=du(E.duration)),E.repeatDelay&&(E.repeatDelay=du(E.repeatDelay)),!m||!T||GU.current||o.type===!1||ZW.skipAnimations)return jW(E);if(!r.isHandoff&&e.owner&&e.owner.current instanceof HTMLElement&&!e.owner.getProps().onUpdate){const A=NW(e,t,E);if(A)return A}return mp(E)};function vp(t){return!!(Ro(t)&&t.add)}const oD=t=>/^\-?\d*\.?\d+$/.test(t);function Xy(t,e){t.indexOf(e)===-1&&t.push(e)}function Ky(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}class Zy{constructor(){this.subscriptions=[]}add(e){return Xy(this.subscriptions,e),()=>Ky(this.subscriptions,e)}notify(e,n,r){const i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](e,n,r);else for(let o=0;o<i;o++){const a=this.subscriptions[o];a&&a(e,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const gS=new Set;function Jy(t,e,n){t||gS.has(e)||(console.warn(e),gS.add(e))}const JW=t=>!isNaN(parseFloat(t));class QW{constructor(e,n={}){this.version="10.18.0",this.timeDelta=0,this.lastUpdated=0,this.canTrackVelocity=!1,this.events={},this.updateAndNotify=(r,i=!0)=>{this.prev=this.current,this.current=r;const{delta:o,timestamp:a}=Fi;this.lastUpdated!==a&&(this.timeDelta=o,this.lastUpdated=a,Ln.postRender(this.scheduleVelocityCheck)),this.prev!==this.current&&this.events.change&&this.events.change.notify(this.current),this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()),i&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.scheduleVelocityCheck=()=>Ln.postRender(this.velocityCheck),this.velocityCheck=({timestamp:r})=>{r!==this.lastUpdated&&(this.prev=this.current,this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()))},this.hasAnimated=!1,this.prev=this.current=e,this.canTrackVelocity=JW(this.current),this.owner=n.owner}onChange(e){return process.env.NODE_ENV!=="production"&&Jy(!1,'value.onChange(callback) is deprecated. Switch to value.on("change", callback).'),this.on("change",e)}on(e,n){this.events[e]||(this.events[e]=new Zy);const r=this.events[e].add(n);return e==="change"?()=>{r(),Ln.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const e in this.events)this.events[e].clear()}attach(e,n){this.passiveEffect=e,this.stopPassiveEffect=n}set(e,n=!0){!n||!this.passiveEffect?this.updateAndNotify(e,n):this.passiveEffect(e,this.updateAndNotify)}setWithVelocity(e,n,r){this.set(n),this.prev=e,this.timeDelta=r}jump(e){this.updateAndNotify(e),this.prev=e,this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){return this.canTrackVelocity?eD(parseFloat(this.current)-parseFloat(this.prev),this.timeDelta):0}start(e){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=e(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function Of(t,e){return new QW(t,e)}const sD=t=>e=>e.test(t),ez={test:t=>t==="auto",parse:t=>t},aD=[Ac,Rt,$a,au,lU,aU,ez],ad=t=>aD.find(sD(t)),tz=[...aD,ro,Su],nz=t=>tz.find(sD(t));function rz(t,e,n){t.hasValue(e)?t.getValue(e).set(n):t.addValue(e,Of(n))}function iz(t,e){const n=Yp(t,e);let{transitionEnd:r={},transition:i={},...o}=n?t.makeTargetAnimatable(n,!1):{};o={...o,...r};for(const a in o){const c=TU(o[a]);rz(t,a,c)}}function oz(t,e,n){var r,i;const o=Object.keys(e).filter(c=>!t.hasValue(c)),a=o.length;if(a)for(let c=0;c<a;c++){const d=o[c],p=e[d];let w=null;Array.isArray(p)&&(w=p[0]),w===null&&(w=(i=(r=n[d])!==null&&r!==void 0?r:t.readValue(d))!==null&&i!==void 0?i:e[d]),w!=null&&(typeof w=="string"&&(oD(w)||iD(w))?w=parseFloat(w):!nz(w)&&Su.test(p)&&(w=rD(d,p)),t.addValue(d,Of(w,{owner:t})),n[d]===void 0&&(n[d]=w),w!==null&&t.setBaseTarget(d,w))}}function sz(t,e){return e?(e[t]||e.default||e).from:void 0}function az(t,e,n){const r={};for(const i in t){const o=sz(i,e);if(o!==void 0)r[i]=o;else{const a=n.getValue(i);a&&(r[i]=a.get())}}return r}function lz({protectedKeys:t,needsAnimating:e},n){const r=t.hasOwnProperty(n)&&e[n]!==!0;return e[n]=!1,r}function uz(t,e){const n=t.get();if(Array.isArray(e)){for(let r=0;r<e.length;r++)if(e[r]!==n)return!0}else return n!==e}function lD(t,e,{delay:n=0,transitionOverride:r,type:i}={}){let{transition:o=t.getDefaultTransition(),transitionEnd:a,...c}=t.makeTargetAnimatable(e);const d=t.getValue("willChange");r&&(o=r);const p=[],w=i&&t.animationState&&t.animationState.getState()[i];for(const m in c){const T=t.getValue(m),E=c[m];if(!T||E===void 0||w&&lz(w,m))continue;const A={delay:n,elapsed:0,...Gy(o||{},m)};if(window.HandoffAppearAnimations){const _=t.getProps()[uk];if(_){const U=window.HandoffAppearAnimations(_,m,T,Ln);U!==null&&(A.elapsed=U,A.isHandoff=!0)}}let I=!A.isHandoff&&!uz(T,E);if(A.type==="spring"&&(T.getVelocity()||A.velocity)&&(I=!1),T.animation&&(I=!1),I)continue;T.start(qy(m,T,E,t.shouldReduceMotion&&Rc.has(m)?{type:!1}:A));const j=T.animation;vp(d)&&(d.add(m),j.then(()=>d.remove(m))),p.push(j)}return a&&Promise.all(p).then(()=>{a&&iz(t,a)}),p}function mv(t,e,n={}){const r=Yp(t,e,n.custom);let{transition:i=t.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(i=n.transitionOverride);const o=r?()=>Promise.all(lD(t,r,n)):()=>Promise.resolve(),a=t.variantChildren&&t.variantChildren.size?(d=0)=>{const{delayChildren:p=0,staggerChildren:w,staggerDirection:m}=i;return cz(t,e,p+d,w,m,n)}:()=>Promise.resolve(),{when:c}=i;if(c){const[d,p]=c==="beforeChildren"?[o,a]:[a,o];return d().then(()=>p())}else return Promise.all([o(),a(n.delay)])}function cz(t,e,n=0,r=0,i=1,o){const a=[],c=(t.variantChildren.size-1)*r,d=i===1?(p=0)=>p*r:(p=0)=>c-p*r;return Array.from(t.variantChildren).sort(fz).forEach((p,w)=>{p.notify("AnimationStart",e),a.push(mv(p,e,{...o,delay:n+d(w)}).then(()=>p.notify("AnimationComplete",e)))}),Promise.all(a)}function fz(t,e){return t.sortNodePosition(e)}function dz(t,e,n={}){t.notify("AnimationStart",e);let r;if(Array.isArray(e)){const i=e.map(o=>mv(t,o,n));r=Promise.all(i)}else if(typeof e=="string")r=mv(t,e,n);else{const i=typeof e=="function"?Yp(t,e,n.custom):e;r=Promise.all(lD(t,i,n))}return r.then(()=>t.notify("AnimationComplete",e))}const hz=[...My].reverse(),pz=My.length;function gz(t){return e=>Promise.all(e.map(({animation:n,options:r})=>dz(t,n,r)))}function mz(t){let e=gz(t);const n=yz();let r=!0;const i=(d,p)=>{const w=Yp(t,p);if(w){const{transition:m,transitionEnd:T,...E}=w;d={...d,...E,...T}}return d};function o(d){e=d(t)}function a(d,p){const w=t.getProps(),m=t.getVariantContext(!0)||{},T=[],E=new Set;let A={},I=1/0;for(let _=0;_<pz;_++){const U=hz[_],G=n[U],re=w[U]!==void 0?w[U]:m[U],q=Nd(re),se=U===p?G.isActive:null;se===!1&&(I=_);let S=re===m[U]&&re!==w[U]&&q;if(S&&r&&t.manuallyAnimateOnMount&&(S=!1),G.protectedKeys={...A},!G.isActive&&se===null||!re&&!G.prevProp||Hp(re)||typeof re=="boolean")continue;let ae=vz(G.prevProp,re)||U===p&&G.isActive&&!S&&q||_>I&&q,Ue=!1;const nt=Array.isArray(re)?re:[re];let et=nt.reduce(i,{});se===!1&&(et={});const{prevResolvedValues:De={}}=G,Me={...De,...et},fe=me=>{ae=!0,E.has(me)&&(Ue=!0,E.delete(me)),G.needsAnimating[me]=!0};for(const me in Me){const Pe=et[me],Be=De[me];if(A.hasOwnProperty(me))continue;let Ze=!1;hp(Pe)&&hp(Be)?Ze=!Rk(Pe,Be):Ze=Pe!==Be,Ze?Pe!==void 0?fe(me):E.add(me):Pe!==void 0&&E.has(me)?fe(me):G.protectedKeys[me]=!0}G.prevProp=re,G.prevResolvedValues=et,G.isActive&&(A={...A,...et}),r&&t.blockInitialAnimation&&(ae=!1),ae&&(!S||Ue)&&T.push(...nt.map(me=>({animation:me,options:{type:U,...d}})))}if(E.size){const _={};E.forEach(U=>{const G=t.getBaseTarget(U);G!==void 0&&(_[U]=G)}),T.push({animation:_})}let j=!!T.length;return r&&(w.initial===!1||w.initial===w.animate)&&!t.manuallyAnimateOnMount&&(j=!1),r=!1,j?e(T):Promise.resolve()}function c(d,p,w){var m;if(n[d].isActive===p)return Promise.resolve();(m=t.variantChildren)===null||m===void 0||m.forEach(E=>{var A;return(A=E.animationState)===null||A===void 0?void 0:A.setActive(d,p)}),n[d].isActive=p;const T=a(w,d);for(const E in n)n[E].protectedKeys={};return T}return{animateChanges:a,setActive:c,setAnimateFunction:o,getState:()=>n}}function vz(t,e){return typeof e=="string"?e!==t:Array.isArray(e)?!Rk(e,t):!1}function sc(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function yz(){return{animate:sc(!0),whileInView:sc(),whileHover:sc(),whileTap:sc(),whileDrag:sc(),whileFocus:sc(),exit:sc()}}class bz extends ku{constructor(e){super(e),e.animationState||(e.animationState=mz(e))}updateAnimationControlsSubscription(){const{animate:e}=this.node.getProps();this.unmount(),Hp(e)&&(this.unmount=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:e}=this.node.getProps(),{animate:n}=this.node.prevProps||{};e!==n&&this.updateAnimationControlsSubscription()}unmount(){}}let wz=0;class xz extends ku{constructor(){super(...arguments),this.id=wz++}update(){if(!this.node.presenceContext)return;const{isPresent:e,onExitComplete:n,custom:r}=this.node.presenceContext,{isPresent:i}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===i)return;const o=this.node.animationState.setActive("exit",!e,{custom:r??this.node.getProps().custom});n&&!e&&o.then(()=>n(this.id))}mount(){const{register:e}=this.node.presenceContext||{};e&&(this.unmount=e(this.id))}unmount(){}}const Sz={animation:{Feature:bz},exit:{Feature:xz}},mS=(t,e)=>Math.abs(t-e);function Tz(t,e){const n=mS(t.x,e.x),r=mS(t.y,e.y);return Math.sqrt(n**2+r**2)}class uD{constructor(e,n,{transformPagePoint:r,contextWindow:i,dragSnapToOrigin:o=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const m=om(this.lastMoveEventInfo,this.history),T=this.startEvent!==null,E=Tz(m.offset,{x:0,y:0})>=3;if(!T&&!E)return;const{point:A}=m,{timestamp:I}=Fi;this.history.push({...A,timestamp:I});const{onStart:j,onMove:_}=this.handlers;T||(j&&j(this.lastMoveEvent,m),this.startEvent=this.lastMoveEvent),_&&_(this.lastMoveEvent,m)},this.handlePointerMove=(m,T)=>{this.lastMoveEvent=m,this.lastMoveEventInfo=im(T,this.transformPagePoint),Ln.update(this.updatePoint,!0)},this.handlePointerUp=(m,T)=>{this.end();const{onEnd:E,onSessionEnd:A,resumeAnimation:I}=this.handlers;if(this.dragSnapToOrigin&&I&&I(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const j=om(m.type==="pointercancel"?this.lastMoveEventInfo:im(T,this.transformPagePoint),this.history);this.startEvent&&E&&E(m,j),A&&A(m,j)},!kk(e))return;this.dragSnapToOrigin=o,this.handlers=n,this.transformPagePoint=r,this.contextWindow=i||window;const a=zp(e),c=im(a,this.transformPagePoint),{point:d}=c,{timestamp:p}=Fi;this.history=[{...d,timestamp:p}];const{onSessionStart:w}=n;w&&w(e,om(c,this.history)),this.removeListeners=fu(Tl(this.contextWindow,"pointermove",this.handlePointerMove),Tl(this.contextWindow,"pointerup",this.handlePointerUp),Tl(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),Dl(this.updatePoint)}}function im(t,e){return e?{point:e(t.point)}:t}function vS(t,e){return{x:t.x-e.x,y:t.y-e.y}}function om({point:t},e){return{point:t,delta:vS(t,cD(e)),offset:vS(t,Cz(e)),velocity:Ez(e,.1)}}function Cz(t){return t[0]}function cD(t){return t[t.length-1]}function Ez(t,e){if(t.length<2)return{x:0,y:0};let n=t.length-1,r=null;const i=cD(t);for(;n>=0&&(r=t[n],!(i.timestamp-r.timestamp>du(e)));)n--;if(!r)return{x:0,y:0};const o=Cl(i.timestamp-r.timestamp);if(o===0)return{x:0,y:0};const a={x:(i.x-r.x)/o,y:(i.y-r.y)/o};return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}function es(t){return t.max-t.min}function vv(t,e=0,n=.01){return Math.abs(t-e)<=n}function yS(t,e,n,r=.5){t.origin=r,t.originPoint=Zn(e.min,e.max,t.origin),t.scale=es(n)/es(e),(vv(t.scale,1,1e-4)||isNaN(t.scale))&&(t.scale=1),t.translate=Zn(n.min,n.max,t.origin)-t.originPoint,(vv(t.translate)||isNaN(t.translate))&&(t.translate=0)}function Ed(t,e,n,r){yS(t.x,e.x,n.x,r?r.originX:void 0),yS(t.y,e.y,n.y,r?r.originY:void 0)}function bS(t,e,n){t.min=n.min+e.min,t.max=t.min+es(e)}function kz(t,e,n){bS(t.x,e.x,n.x),bS(t.y,e.y,n.y)}function wS(t,e,n){t.min=e.min-n.min,t.max=t.min+es(e)}function kd(t,e,n){wS(t.x,e.x,n.x),wS(t.y,e.y,n.y)}function Dz(t,{min:e,max:n},r){return e!==void 0&&t<e?t=r?Zn(e,t,r.min):Math.max(t,e):n!==void 0&&t>n&&(t=r?Zn(n,t,r.max):Math.min(t,n)),t}function xS(t,e,n){return{min:e!==void 0?t.min+e:void 0,max:n!==void 0?t.max+n-(t.max-t.min):void 0}}function Pz(t,{top:e,left:n,bottom:r,right:i}){return{x:xS(t.x,n,i),y:xS(t.y,e,r)}}function SS(t,e){let n=e.min-t.min,r=e.max-t.max;return e.max-e.min<t.max-t.min&&([n,r]=[r,n]),{min:n,max:r}}function Oz(t,e){return{x:SS(t.x,e.x),y:SS(t.y,e.y)}}function _z(t,e){let n=.5;const r=es(t),i=es(e);return i>r?n=Bd(e.min,e.max-r,t.min):r>i&&(n=Bd(t.min,t.max-i,e.min)),xu(0,1,n)}function Rz(t,e){const n={};return e.min!==void 0&&(n.min=e.min-t.min),e.max!==void 0&&(n.max=e.max-t.min),n}const yv=.35;function Az(t=yv){return t===!1?t=0:t===!0&&(t=yv),{x:TS(t,"left","right"),y:TS(t,"top","bottom")}}function TS(t,e,n){return{min:CS(t,e),max:CS(t,n)}}function CS(t,e){return typeof t=="number"?t:t[e]||0}const ES=()=>({translate:0,scale:1,origin:0,originPoint:0}),xf=()=>({x:ES(),y:ES()}),kS=()=>({min:0,max:0}),Er=()=>({x:kS(),y:kS()});function Ps(t){return[t("x"),t("y")]}function fD({top:t,left:e,right:n,bottom:r}){return{x:{min:e,max:n},y:{min:t,max:r}}}function Iz({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}function Mz(t,e){if(!e)return t;const n=e({x:t.left,y:t.top}),r=e({x:t.right,y:t.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function sm(t){return t===void 0||t===1}function bv({scale:t,scaleX:e,scaleY:n}){return!sm(t)||!sm(e)||!sm(n)}function hc(t){return bv(t)||dD(t)||t.z||t.rotate||t.rotateX||t.rotateY}function dD(t){return DS(t.x)||DS(t.y)}function DS(t){return t&&t!=="0%"}function yp(t,e,n){const r=t-n,i=e*r;return n+i}function PS(t,e,n,r,i){return i!==void 0&&(t=yp(t,i,r)),yp(t,n,r)+e}function wv(t,e=0,n=1,r,i){t.min=PS(t.min,e,n,r,i),t.max=PS(t.max,e,n,r,i)}function hD(t,{x:e,y:n}){wv(t.x,e.translate,e.scale,e.originPoint),wv(t.y,n.translate,n.scale,n.originPoint)}function Lz(t,e,n,r=!1){const i=n.length;if(!i)return;e.x=e.y=1;let o,a;for(let c=0;c<i;c++){o=n[c],a=o.projectionDelta;const d=o.instance;d&&d.style&&d.style.display==="contents"||(r&&o.options.layoutScroll&&o.scroll&&o!==o.root&&Sf(t,{x:-o.scroll.offset.x,y:-o.scroll.offset.y}),a&&(e.x*=a.x.scale,e.y*=a.y.scale,hD(t,a)),r&&hc(o.latestValues)&&Sf(t,o.latestValues))}e.x=OS(e.x),e.y=OS(e.y)}function OS(t){return Number.isInteger(t)||t>1.0000000000001||t<.999999999999?t:1}function lu(t,e){t.min=t.min+e,t.max=t.max+e}function _S(t,e,[n,r,i]){const o=e[i]!==void 0?e[i]:.5,a=Zn(t.min,t.max,o);wv(t,e[n],e[r],a,e.scale)}const Fz=["x","scaleX","originX"],Nz=["y","scaleY","originY"];function Sf(t,e){_S(t.x,e,Fz),_S(t.y,e,Nz)}function pD(t,e){return fD(Mz(t.getBoundingClientRect(),e))}function jz(t,e,n){const r=pD(t,n),{scroll:i}=e;return i&&(lu(r.x,i.offset.x),lu(r.y,i.offset.y)),r}const gD=({current:t})=>t?t.ownerDocument.defaultView:null,Bz=new WeakMap;class $z{constructor(e){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=Er(),this.visualElement=e}start(e,{snapToCursor:n=!1}={}){const{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;const i=w=>{const{dragSnapToOrigin:m}=this.getProps();m?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(zp(w,"page").point)},o=(w,m)=>{const{drag:T,dragPropagation:E,onDragStart:A}=this.getProps();if(T&&!E&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=Pk(T),!this.openGlobalLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Ps(j=>{let _=this.getAxisMotionValue(j).get()||0;if($a.test(_)){const{projection:U}=this.visualElement;if(U&&U.layout){const G=U.layout.layoutBox[j];G&&(_=es(G)*(parseFloat(_)/100))}}this.originPoint[j]=_}),A&&Ln.update(()=>A(w,m),!1,!0);const{animationState:I}=this.visualElement;I&&I.setActive("whileDrag",!0)},a=(w,m)=>{const{dragPropagation:T,dragDirectionLock:E,onDirectionLock:A,onDrag:I}=this.getProps();if(!T&&!this.openGlobalLock)return;const{offset:j}=m;if(E&&this.currentDirection===null){this.currentDirection=Vz(j),this.currentDirection!==null&&A&&A(this.currentDirection);return}this.updateAxis("x",m.point,j),this.updateAxis("y",m.point,j),this.visualElement.render(),I&&I(w,m)},c=(w,m)=>this.stop(w,m),d=()=>Ps(w=>{var m;return this.getAnimationState(w)==="paused"&&((m=this.getAxisMotionValue(w).animation)===null||m===void 0?void 0:m.play())}),{dragSnapToOrigin:p}=this.getProps();this.panSession=new uD(e,{onSessionStart:i,onStart:o,onMove:a,onSessionEnd:c,resumeAnimation:d},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:p,contextWindow:gD(this.visualElement)})}stop(e,n){const r=this.isDragging;if(this.cancel(),!r)return;const{velocity:i}=n;this.startAnimation(i);const{onDragEnd:o}=this.getProps();o&&Ln.update(()=>o(e,n))}cancel(){this.isDragging=!1;const{projection:e,animationState:n}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:r}=this.getProps();!r&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(e,n,r){const{drag:i}=this.getProps();if(!r||!Oh(e,i,this.currentDirection))return;const o=this.getAxisMotionValue(e);let a=this.originPoint[e]+r[e];this.constraints&&this.constraints[e]&&(a=Dz(a,this.constraints[e],this.elastic[e])),o.set(a)}resolveConstraints(){var e;const{dragConstraints:n,dragElastic:r}=this.getProps(),i=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(e=this.visualElement.projection)===null||e===void 0?void 0:e.layout,o=this.constraints;n&&bf(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&i?this.constraints=Pz(i.layoutBox,n):this.constraints=!1,this.elastic=Az(r),o!==this.constraints&&i&&this.constraints&&!this.hasMutatedConstraints&&Ps(a=>{this.getAxisMotionValue(a)&&(this.constraints[a]=Rz(i.layoutBox[a],this.constraints[a]))})}resolveRefConstraints(){const{dragConstraints:e,onMeasureDragConstraints:n}=this.getProps();if(!e||!bf(e))return!1;const r=e.current;aa(r!==null,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");const{projection:i}=this.visualElement;if(!i||!i.layout)return!1;const o=jz(r,i.root,this.visualElement.getTransformPagePoint());let a=Oz(i.layout.layoutBox,o);if(n){const c=n(Iz(a));this.hasMutatedConstraints=!!c,c&&(a=fD(c))}return a}startAnimation(e){const{drag:n,dragMomentum:r,dragElastic:i,dragTransition:o,dragSnapToOrigin:a,onDragTransitionEnd:c}=this.getProps(),d=this.constraints||{},p=Ps(w=>{if(!Oh(w,n,this.currentDirection))return;let m=d&&d[w]||{};a&&(m={min:0,max:0});const T=i?200:1e6,E=i?40:1e7,A={type:"inertia",velocity:r?e[w]:0,bounceStiffness:T,bounceDamping:E,timeConstant:750,restDelta:1,restSpeed:10,...o,...m};return this.startAxisValueAnimation(w,A)});return Promise.all(p).then(c)}startAxisValueAnimation(e,n){const r=this.getAxisMotionValue(e);return r.start(qy(e,r,0,n))}stopAnimation(){Ps(e=>this.getAxisMotionValue(e).stop())}pauseAnimation(){Ps(e=>{var n;return(n=this.getAxisMotionValue(e).animation)===null||n===void 0?void 0:n.pause()})}getAnimationState(e){var n;return(n=this.getAxisMotionValue(e).animation)===null||n===void 0?void 0:n.state}getAxisMotionValue(e){const n="_drag"+e.toUpperCase(),r=this.visualElement.getProps(),i=r[n];return i||this.visualElement.getValue(e,(r.initial?r.initial[e]:void 0)||0)}snapToCursor(e){Ps(n=>{const{drag:r}=this.getProps();if(!Oh(n,r,this.currentDirection))return;const{projection:i}=this.visualElement,o=this.getAxisMotionValue(n);if(i&&i.layout){const{min:a,max:c}=i.layout.layoutBox[n];o.set(e[n]-Zn(a,c,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:e,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!bf(n)||!r||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};Ps(a=>{const c=this.getAxisMotionValue(a);if(c){const d=c.get();i[a]=_z({min:d,max:d},this.constraints[a])}});const{transformTemplate:o}=this.visualElement.getProps();this.visualElement.current.style.transform=o?o({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),Ps(a=>{if(!Oh(a,e,null))return;const c=this.getAxisMotionValue(a),{min:d,max:p}=this.constraints[a];c.set(Zn(d,p,i[a]))})}addListeners(){if(!this.visualElement.current)return;Bz.set(this.visualElement,this);const e=this.visualElement.current,n=Tl(e,"pointerdown",d=>{const{drag:p,dragListener:w=!0}=this.getProps();p&&w&&this.start(d)}),r=()=>{const{dragConstraints:d}=this.getProps();bf(d)&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,o=i.addEventListener("measure",r);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),r();const a=wl(window,"resize",()=>this.scalePositionWithinConstraints()),c=i.addEventListener("didUpdate",({delta:d,hasLayoutChanged:p})=>{this.isDragging&&p&&(Ps(w=>{const m=this.getAxisMotionValue(w);m&&(this.originPoint[w]+=d[w].translate,m.set(m.get()+d[w].translate))}),this.visualElement.render())});return()=>{a(),n(),o(),c&&c()}}getProps(){const e=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:i=!1,dragConstraints:o=!1,dragElastic:a=yv,dragMomentum:c=!0}=e;return{...e,drag:n,dragDirectionLock:r,dragPropagation:i,dragConstraints:o,dragElastic:a,dragMomentum:c}}}function Oh(t,e,n){return(e===!0||e===t)&&(n===null||n===t)}function Vz(t,e=10){let n=null;return Math.abs(t.y)>e?n="y":Math.abs(t.x)>e&&(n="x"),n}class Hz extends ku{constructor(e){super(e),this.removeGroupControls=sr,this.removeListeners=sr,this.controls=new $z(e)}mount(){const{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||sr}unmount(){this.removeGroupControls(),this.removeListeners()}}const RS=t=>(e,n)=>{t&&Ln.update(()=>t(e,n))};class Uz extends ku{constructor(){super(...arguments),this.removePointerDownListener=sr}onPointerDown(e){this.session=new uD(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:gD(this.node)})}createPanHandlers(){const{onPanSessionStart:e,onPanStart:n,onPan:r,onPanEnd:i}=this.node.getProps();return{onSessionStart:RS(e),onStart:RS(n),onMove:r,onEnd:(o,a)=>{delete this.session,i&&Ln.update(()=>i(o,a))}}}mount(){this.removePointerDownListener=Tl(this.node.current,"pointerdown",e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}function Wz(){const t=X.useContext(Ay);if(t===null)return[!0,null];const{isPresent:e,onExitComplete:n,register:r}=t,i=X.useId();return X.useEffect(()=>r(i),[]),!e&&n?[!1,()=>n&&n(i)]:[!0]}const Yh={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function AS(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}const ld={correct:(t,e)=>{if(!e.target)return t;if(typeof t=="string")if(Rt.test(t))t=parseFloat(t);else return t;const n=AS(t,e.target.x),r=AS(t,e.target.y);return`${n}% ${r}%`}},zz={correct:(t,{treeScale:e,projectionDelta:n})=>{const r=t,i=Su.parse(t);if(i.length>5)return r;const o=Su.createTransformer(t),a=typeof i[0]!="number"?1:0,c=n.x.scale*e.x,d=n.y.scale*e.y;i[0+a]/=c,i[1+a]/=d;const p=Zn(c,d,.5);return typeof i[2+a]=="number"&&(i[2+a]/=p),typeof i[3+a]=="number"&&(i[3+a]/=p),o(i)}};class Yz extends X.Component{componentDidMount(){const{visualElement:e,layoutGroup:n,switchLayoutGroup:r,layoutId:i}=this.props,{projection:o}=e;eU(Gz),o&&(n.group&&n.group.add(o),r&&r.register&&i&&r.register(o),o.root.didUpdate(),o.addEventListener("animationComplete",()=>{this.safeToRemove()}),o.setOptions({...o.options,onExitComplete:()=>this.safeToRemove()})),Yh.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){const{layoutDependency:n,visualElement:r,drag:i,isPresent:o}=this.props,a=r.projection;return a&&(a.isPresent=o,i||e.layoutDependency!==n||n===void 0?a.willUpdate():this.safeToRemove(),e.isPresent!==o&&(o?a.promote():a.relegate()||Ln.postRender(()=>{const c=a.getStack();(!c||!c.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:e}=this.props.visualElement;e&&(e.root.didUpdate(),queueMicrotask(()=>{!e.currentAnimation&&e.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:e,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:i}=e;i&&(i.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(i),r&&r.deregister&&r.deregister(i))}safeToRemove(){const{safeToRemove:e}=this.props;e&&e()}render(){return null}}function mD(t){const[e,n]=Wz(),r=X.useContext(fk);return X.createElement(Yz,{...t,layoutGroup:r,switchLayoutGroup:X.useContext(dk),isPresent:e,safeToRemove:n})}const Gz={borderRadius:{...ld,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:ld,borderTopRightRadius:ld,borderBottomLeftRadius:ld,borderBottomRightRadius:ld,boxShadow:zz},vD=["TopLeft","TopRight","BottomLeft","BottomRight"],qz=vD.length,IS=t=>typeof t=="string"?parseFloat(t):t,MS=t=>typeof t=="number"||Rt.test(t);function Xz(t,e,n,r,i,o){i?(t.opacity=Zn(0,n.opacity!==void 0?n.opacity:1,Kz(r)),t.opacityExit=Zn(e.opacity!==void 0?e.opacity:1,0,Zz(r))):o&&(t.opacity=Zn(e.opacity!==void 0?e.opacity:1,n.opacity!==void 0?n.opacity:1,r));for(let a=0;a<qz;a++){const c=`border${vD[a]}Radius`;let d=LS(e,c),p=LS(n,c);if(d===void 0&&p===void 0)continue;d||(d=0),p||(p=0),d===0||p===0||MS(d)===MS(p)?(t[c]=Math.max(Zn(IS(d),IS(p),r),0),($a.test(p)||$a.test(d))&&(t[c]+="%")):t[c]=p}(e.rotate||n.rotate)&&(t.rotate=Zn(e.rotate||0,n.rotate||0,r))}function LS(t,e){return t[e]!==void 0?t[e]:t.borderRadius}const Kz=yD(0,.5,$k),Zz=yD(.5,.95,sr);function yD(t,e,n){return r=>r<t?0:r>e?1:n(Bd(t,e,r))}function FS(t,e){t.min=e.min,t.max=e.max}function Es(t,e){FS(t.x,e.x),FS(t.y,e.y)}function NS(t,e,n,r,i){return t-=e,t=yp(t,1/n,r),i!==void 0&&(t=yp(t,1/i,r)),t}function Jz(t,e=0,n=1,r=.5,i,o=t,a=t){if($a.test(e)&&(e=parseFloat(e),e=Zn(a.min,a.max,e/100)-a.min),typeof e!="number")return;let c=Zn(o.min,o.max,r);t===o&&(c-=e),t.min=NS(t.min,e,n,c,i),t.max=NS(t.max,e,n,c,i)}function jS(t,e,[n,r,i],o,a){Jz(t,e[n],e[r],e[i],e.scale,o,a)}const Qz=["x","scaleX","originX"],e5=["y","scaleY","originY"];function BS(t,e,n,r){jS(t.x,e,Qz,n?n.x:void 0,r?r.x:void 0),jS(t.y,e,e5,n?n.y:void 0,r?r.y:void 0)}function $S(t){return t.translate===0&&t.scale===1}function bD(t){return $S(t.x)&&$S(t.y)}function t5(t,e){return t.x.min===e.x.min&&t.x.max===e.x.max&&t.y.min===e.y.min&&t.y.max===e.y.max}function wD(t,e){return Math.round(t.x.min)===Math.round(e.x.min)&&Math.round(t.x.max)===Math.round(e.x.max)&&Math.round(t.y.min)===Math.round(e.y.min)&&Math.round(t.y.max)===Math.round(e.y.max)}function VS(t){return es(t.x)/es(t.y)}class n5{constructor(){this.members=[]}add(e){Xy(this.members,e),e.scheduleRender()}remove(e){if(Ky(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(e){const n=this.members.findIndex(i=>e===i);if(n===0)return!1;let r;for(let i=n;i>=0;i--){const o=this.members[i];if(o.isPresent!==!1){r=o;break}}return r?(this.promote(r),!0):!1}promote(e,n){const r=this.lead;if(e!==r&&(this.prevLead=r,this.lead=e,e.show(),r)){r.instance&&r.scheduleRender(),e.scheduleRender(),e.resumeFrom=r,n&&(e.resumeFrom.preserveOpacity=!0),r.snapshot&&(e.snapshot=r.snapshot,e.snapshot.latestValues=r.animationValues||r.latestValues),e.root&&e.root.isUpdating&&(e.isLayoutDirty=!0);const{crossfade:i}=e.options;i===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(e=>{const{options:n,resumingFrom:r}=e;n.onExitComplete&&n.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(e=>{e.instance&&e.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function HS(t,e,n){let r="";const i=t.x.translate/e.x,o=t.y.translate/e.y;if((i||o)&&(r=`translate3d(${i}px, ${o}px, 0) `),(e.x!==1||e.y!==1)&&(r+=`scale(${1/e.x}, ${1/e.y}) `),n){const{rotate:d,rotateX:p,rotateY:w}=n;d&&(r+=`rotate(${d}deg) `),p&&(r+=`rotateX(${p}deg) `),w&&(r+=`rotateY(${w}deg) `)}const a=t.x.scale*e.x,c=t.y.scale*e.y;return(a!==1||c!==1)&&(r+=`scale(${a}, ${c})`),r||"none"}const r5=(t,e)=>t.depth-e.depth;class i5{constructor(){this.children=[],this.isDirty=!1}add(e){Xy(this.children,e),this.isDirty=!0}remove(e){Ky(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(r5),this.isDirty=!1,this.children.forEach(e)}}function o5(t,e){const n=performance.now(),r=({timestamp:i})=>{const o=i-n;o>=e&&(Dl(r),t(o-e))};return Ln.read(r,!0),()=>Dl(r)}function s5(t){window.MotionDebug&&window.MotionDebug.record(t)}function a5(t){return t instanceof SVGElement&&t.tagName!=="svg"}function l5(t,e,n){const r=Ro(t)?t:Of(t);return r.start(qy("",r,e,n)),r.animation}const US=["","X","Y","Z"],u5={visibility:"hidden"},WS=1e3;let c5=0;const pc={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0};function xD({attachResizeListener:t,defaultParent:e,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(a={},c=e==null?void 0:e()){this.id=c5++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,pc.totalNodes=pc.resolvedTargetDeltas=pc.recalculatedProjection=0,this.nodes.forEach(h5),this.nodes.forEach(y5),this.nodes.forEach(b5),this.nodes.forEach(p5),s5(pc)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=a,this.root=c?c.root||c:this,this.path=c?[...c.path,c]:[],this.parent=c,this.depth=c?c.depth+1:0;for(let d=0;d<this.path.length;d++)this.path[d].shouldResetTransform=!0;this.root===this&&(this.nodes=new i5)}addEventListener(a,c){return this.eventHandlers.has(a)||this.eventHandlers.set(a,new Zy),this.eventHandlers.get(a).add(c)}notifyListeners(a,...c){const d=this.eventHandlers.get(a);d&&d.notify(...c)}hasListeners(a){return this.eventHandlers.has(a)}mount(a,c=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=a5(a),this.instance=a;const{layoutId:d,layout:p,visualElement:w}=this.options;if(w&&!w.current&&w.mount(a),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),c&&(p||d)&&(this.isLayoutDirty=!0),t){let m;const T=()=>this.root.updateBlockedByResize=!1;t(a,()=>{this.root.updateBlockedByResize=!0,m&&m(),m=o5(T,250),Yh.hasAnimatedSinceResize&&(Yh.hasAnimatedSinceResize=!1,this.nodes.forEach(YS))})}d&&this.root.registerSharedNode(d,this),this.options.animate!==!1&&w&&(d||p)&&this.addEventListener("didUpdate",({delta:m,hasLayoutChanged:T,hasRelativeTargetChanged:E,layout:A})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const I=this.options.transition||w.getDefaultTransition()||C5,{onLayoutAnimationStart:j,onLayoutAnimationComplete:_}=w.getProps(),U=!this.targetLayout||!wD(this.targetLayout,A)||E,G=!T&&E;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||G||T&&(U||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(m,G);const re={...Gy(I,"layout"),onPlay:j,onComplete:_};(w.shouldReduceMotion||this.options.layoutRoot)&&(re.delay=0,re.type=!1),this.startAnimation(re)}else T||YS(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=A})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const a=this.getStack();a&&a.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,Dl(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(w5),this.animationId++)}getTransformTemplate(){const{visualElement:a}=this.options;return a&&a.getProps().transformTemplate}willUpdate(a=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let w=0;w<this.path.length;w++){const m=this.path[w];m.shouldResetTransform=!0,m.updateScroll("snapshot"),m.options.layoutRoot&&m.willUpdate(!1)}const{layoutId:c,layout:d}=this.options;if(c===void 0&&!d)return;const p=this.getTransformTemplate();this.prevTransformTemplateValue=p?p(this.latestValues,""):void 0,this.updateSnapshot(),a&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(zS);return}this.isUpdating||this.nodes.forEach(m5),this.isUpdating=!1,this.nodes.forEach(v5),this.nodes.forEach(f5),this.nodes.forEach(d5),this.clearAllSnapshots();const c=performance.now();Fi.delta=xu(0,1e3/60,c-Fi.timestamp),Fi.timestamp=c,Fi.isProcessing=!0,Zg.update.process(Fi),Zg.preRender.process(Fi),Zg.render.process(Fi),Fi.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,queueMicrotask(()=>this.update()))}clearAllSnapshots(){this.nodes.forEach(g5),this.sharedNodes.forEach(x5)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,Ln.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){Ln.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure())}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let d=0;d<this.path.length;d++)this.path[d].updateScroll();const a=this.layout;this.layout=this.measure(!1),this.layoutCorrected=Er(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:c}=this.options;c&&c.notify("LayoutMeasure",this.layout.layoutBox,a?a.layoutBox:void 0)}updateScroll(a="measure"){let c=!!(this.options.layoutScroll&&this.instance);this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===a&&(c=!1),c&&(this.scroll={animationId:this.root.animationId,phase:a,isRoot:r(this.instance),offset:n(this.instance)})}resetTransform(){if(!i)return;const a=this.isLayoutDirty||this.shouldResetTransform,c=this.projectionDelta&&!bD(this.projectionDelta),d=this.getTransformTemplate(),p=d?d(this.latestValues,""):void 0,w=p!==this.prevTransformTemplateValue;a&&(c||hc(this.latestValues)||w)&&(i(this.instance,p),this.shouldResetTransform=!1,this.scheduleRender())}measure(a=!0){const c=this.measurePageBox();let d=this.removeElementScroll(c);return a&&(d=this.removeTransform(d)),E5(d),{animationId:this.root.animationId,measuredBox:c,layoutBox:d,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:a}=this.options;if(!a)return Er();const c=a.measureViewportBox(),{scroll:d}=this.root;return d&&(lu(c.x,d.offset.x),lu(c.y,d.offset.y)),c}removeElementScroll(a){const c=Er();Es(c,a);for(let d=0;d<this.path.length;d++){const p=this.path[d],{scroll:w,options:m}=p;if(p!==this.root&&w&&m.layoutScroll){if(w.isRoot){Es(c,a);const{scroll:T}=this.root;T&&(lu(c.x,-T.offset.x),lu(c.y,-T.offset.y))}lu(c.x,w.offset.x),lu(c.y,w.offset.y)}}return c}applyTransform(a,c=!1){const d=Er();Es(d,a);for(let p=0;p<this.path.length;p++){const w=this.path[p];!c&&w.options.layoutScroll&&w.scroll&&w!==w.root&&Sf(d,{x:-w.scroll.offset.x,y:-w.scroll.offset.y}),hc(w.latestValues)&&Sf(d,w.latestValues)}return hc(this.latestValues)&&Sf(d,this.latestValues),d}removeTransform(a){const c=Er();Es(c,a);for(let d=0;d<this.path.length;d++){const p=this.path[d];if(!p.instance||!hc(p.latestValues))continue;bv(p.latestValues)&&p.updateSnapshot();const w=Er(),m=p.measurePageBox();Es(w,m),BS(c,p.latestValues,p.snapshot?p.snapshot.layoutBox:void 0,w)}return hc(this.latestValues)&&BS(c,this.latestValues),c}setTargetDelta(a){this.targetDelta=a,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(a){this.options={...this.options,...a,crossfade:a.crossfade!==void 0?a.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==Fi.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(a=!1){var c;const d=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=d.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=d.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=d.isSharedProjectionDirty);const p=!!this.resumingFrom||this!==d;if(!(a||p&&this.isSharedProjectionDirty||this.isProjectionDirty||!((c=this.parent)===null||c===void 0)&&c.isProjectionDirty||this.attemptToResolveRelativeTarget))return;const{layout:m,layoutId:T}=this.options;if(!(!this.layout||!(m||T))){if(this.resolvedRelativeTargetAt=Fi.timestamp,!this.targetDelta&&!this.relativeTarget){const E=this.getClosestProjectingParent();E&&E.layout&&this.animationProgress!==1?(this.relativeParent=E,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Er(),this.relativeTargetOrigin=Er(),kd(this.relativeTargetOrigin,this.layout.layoutBox,E.layout.layoutBox),Es(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)){if(this.target||(this.target=Er(),this.targetWithTransforms=Er()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),kz(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):Es(this.target,this.layout.layoutBox),hD(this.target,this.targetDelta)):Es(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;const E=this.getClosestProjectingParent();E&&!!E.resumingFrom==!!this.resumingFrom&&!E.options.layoutScroll&&E.target&&this.animationProgress!==1?(this.relativeParent=E,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Er(),this.relativeTargetOrigin=Er(),kd(this.relativeTargetOrigin,this.target,E.target),Es(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}pc.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(!(!this.parent||bv(this.parent.latestValues)||dD(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var a;const c=this.getLead(),d=!!this.resumingFrom||this!==c;let p=!0;if((this.isProjectionDirty||!((a=this.parent)===null||a===void 0)&&a.isProjectionDirty)&&(p=!1),d&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(p=!1),this.resolvedRelativeTargetAt===Fi.timestamp&&(p=!1),p)return;const{layout:w,layoutId:m}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(w||m))return;Es(this.layoutCorrected,this.layout.layoutBox);const T=this.treeScale.x,E=this.treeScale.y;Lz(this.layoutCorrected,this.treeScale,this.path,d),c.layout&&!c.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(c.target=c.layout.layoutBox);const{target:A}=c;if(!A){this.projectionTransform&&(this.projectionDelta=xf(),this.projectionTransform="none",this.scheduleRender());return}this.projectionDelta||(this.projectionDelta=xf(),this.projectionDeltaWithTransform=xf());const I=this.projectionTransform;Ed(this.projectionDelta,this.layoutCorrected,A,this.latestValues),this.projectionTransform=HS(this.projectionDelta,this.treeScale),(this.projectionTransform!==I||this.treeScale.x!==T||this.treeScale.y!==E)&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",A)),pc.recalculatedProjection++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(a=!0){if(this.options.scheduleRender&&this.options.scheduleRender(),a){const c=this.getStack();c&&c.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}setAnimationOrigin(a,c=!1){const d=this.snapshot,p=d?d.latestValues:{},w={...this.latestValues},m=xf();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!c;const T=Er(),E=d?d.source:void 0,A=this.layout?this.layout.source:void 0,I=E!==A,j=this.getStack(),_=!j||j.members.length<=1,U=!!(I&&!_&&this.options.crossfade===!0&&!this.path.some(T5));this.animationProgress=0;let G;this.mixTargetDelta=re=>{const q=re/1e3;GS(m.x,a.x,q),GS(m.y,a.y,q),this.setTargetDelta(m),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(kd(T,this.layout.layoutBox,this.relativeParent.layout.layoutBox),S5(this.relativeTarget,this.relativeTargetOrigin,T,q),G&&t5(this.relativeTarget,G)&&(this.isProjectionDirty=!1),G||(G=Er()),Es(G,this.relativeTarget)),I&&(this.animationValues=w,Xz(w,p,this.latestValues,q,U,_)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=q},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(a){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(Dl(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Ln.update(()=>{Yh.hasAnimatedSinceResize=!0,this.currentAnimation=l5(0,WS,{...a,onUpdate:c=>{this.mixTargetDelta(c),a.onUpdate&&a.onUpdate(c)},onComplete:()=>{a.onComplete&&a.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const a=this.getStack();a&&a.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(WS),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const a=this.getLead();let{targetWithTransforms:c,target:d,layout:p,latestValues:w}=a;if(!(!c||!d||!p)){if(this!==a&&this.layout&&p&&SD(this.options.animationType,this.layout.layoutBox,p.layoutBox)){d=this.target||Er();const m=es(this.layout.layoutBox.x);d.x.min=a.target.x.min,d.x.max=d.x.min+m;const T=es(this.layout.layoutBox.y);d.y.min=a.target.y.min,d.y.max=d.y.min+T}Es(c,d),Sf(c,w),Ed(this.projectionDeltaWithTransform,this.layoutCorrected,c,w)}}registerSharedNode(a,c){this.sharedNodes.has(a)||this.sharedNodes.set(a,new n5),this.sharedNodes.get(a).add(c);const p=c.options.initialPromotionConfig;c.promote({transition:p?p.transition:void 0,preserveFollowOpacity:p&&p.shouldPreserveFollowOpacity?p.shouldPreserveFollowOpacity(c):void 0})}isLead(){const a=this.getStack();return a?a.lead===this:!0}getLead(){var a;const{layoutId:c}=this.options;return c?((a=this.getStack())===null||a===void 0?void 0:a.lead)||this:this}getPrevLead(){var a;const{layoutId:c}=this.options;return c?(a=this.getStack())===null||a===void 0?void 0:a.prevLead:void 0}getStack(){const{layoutId:a}=this.options;if(a)return this.root.sharedNodes.get(a)}promote({needsReset:a,transition:c,preserveFollowOpacity:d}={}){const p=this.getStack();p&&p.promote(this,d),a&&(this.projectionDelta=void 0,this.needsReset=!0),c&&this.setOptions({transition:c})}relegate(){const a=this.getStack();return a?a.relegate(this):!1}resetRotation(){const{visualElement:a}=this.options;if(!a)return;let c=!1;const{latestValues:d}=a;if((d.rotate||d.rotateX||d.rotateY||d.rotateZ)&&(c=!0),!c)return;const p={};for(let w=0;w<US.length;w++){const m="rotate"+US[w];d[m]&&(p[m]=d[m],a.setStaticValue(m,0))}a.render();for(const w in p)a.setStaticValue(w,p[w]);a.scheduleRender()}getProjectionStyles(a){var c,d;if(!this.instance||this.isSVG)return;if(!this.isVisible)return u5;const p={visibility:""},w=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,p.opacity="",p.pointerEvents=zh(a==null?void 0:a.pointerEvents)||"",p.transform=w?w(this.latestValues,""):"none",p;const m=this.getLead();if(!this.projectionDelta||!this.layout||!m.target){const I={};return this.options.layoutId&&(I.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,I.pointerEvents=zh(a==null?void 0:a.pointerEvents)||""),this.hasProjected&&!hc(this.latestValues)&&(I.transform=w?w({},""):"none",this.hasProjected=!1),I}const T=m.animationValues||m.latestValues;this.applyTransformsToTarget(),p.transform=HS(this.projectionDeltaWithTransform,this.treeScale,T),w&&(p.transform=w(T,p.transform));const{x:E,y:A}=this.projectionDelta;p.transformOrigin=`${E.origin*100}% ${A.origin*100}% 0`,m.animationValues?p.opacity=m===this?(d=(c=T.opacity)!==null&&c!==void 0?c:this.latestValues.opacity)!==null&&d!==void 0?d:1:this.preserveOpacity?this.latestValues.opacity:T.opacityExit:p.opacity=m===this?T.opacity!==void 0?T.opacity:"":T.opacityExit!==void 0?T.opacityExit:0;for(const I in fp){if(T[I]===void 0)continue;const{correct:j,applyTo:_}=fp[I],U=p.transform==="none"?T[I]:j(T[I],m);if(_){const G=_.length;for(let re=0;re<G;re++)p[_[re]]=U}else p[I]=U}return this.options.layoutId&&(p.pointerEvents=m===this?zh(a==null?void 0:a.pointerEvents)||"":"none"),p}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(a=>{var c;return(c=a.currentAnimation)===null||c===void 0?void 0:c.stop()}),this.root.nodes.forEach(zS),this.root.sharedNodes.clear()}}}function f5(t){t.updateLayout()}function d5(t){var e;const n=((e=t.resumeFrom)===null||e===void 0?void 0:e.snapshot)||t.snapshot;if(t.isLead()&&t.layout&&n&&t.hasListeners("didUpdate")){const{layoutBox:r,measuredBox:i}=t.layout,{animationType:o}=t.options,a=n.source!==t.layout.source;o==="size"?Ps(m=>{const T=a?n.measuredBox[m]:n.layoutBox[m],E=es(T);T.min=r[m].min,T.max=T.min+E}):SD(o,n.layoutBox,r)&&Ps(m=>{const T=a?n.measuredBox[m]:n.layoutBox[m],E=es(r[m]);T.max=T.min+E,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[m].max=t.relativeTarget[m].min+E)});const c=xf();Ed(c,r,n.layoutBox);const d=xf();a?Ed(d,t.applyTransform(i,!0),n.measuredBox):Ed(d,r,n.layoutBox);const p=!bD(c);let w=!1;if(!t.resumeFrom){const m=t.getClosestProjectingParent();if(m&&!m.resumeFrom){const{snapshot:T,layout:E}=m;if(T&&E){const A=Er();kd(A,n.layoutBox,T.layoutBox);const I=Er();kd(I,r,E.layoutBox),wD(A,I)||(w=!0),m.options.layoutRoot&&(t.relativeTarget=I,t.relativeTargetOrigin=A,t.relativeParent=m)}}}t.notifyListeners("didUpdate",{layout:r,snapshot:n,delta:d,layoutDelta:c,hasLayoutChanged:p,hasRelativeTargetChanged:w})}else if(t.isLead()){const{onExitComplete:r}=t.options;r&&r()}t.options.transition=void 0}function h5(t){pc.totalNodes++,t.parent&&(t.isProjecting()||(t.isProjectionDirty=t.parent.isProjectionDirty),t.isSharedProjectionDirty||(t.isSharedProjectionDirty=!!(t.isProjectionDirty||t.parent.isProjectionDirty||t.parent.isSharedProjectionDirty)),t.isTransformDirty||(t.isTransformDirty=t.parent.isTransformDirty))}function p5(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function g5(t){t.clearSnapshot()}function zS(t){t.clearMeasurements()}function m5(t){t.isLayoutDirty=!1}function v5(t){const{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function YS(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function y5(t){t.resolveTargetDelta()}function b5(t){t.calcProjection()}function w5(t){t.resetRotation()}function x5(t){t.removeLeadSnapshot()}function GS(t,e,n){t.translate=Zn(e.translate,0,n),t.scale=Zn(e.scale,1,n),t.origin=e.origin,t.originPoint=e.originPoint}function qS(t,e,n,r){t.min=Zn(e.min,n.min,r),t.max=Zn(e.max,n.max,r)}function S5(t,e,n,r){qS(t.x,e.x,n.x,r),qS(t.y,e.y,n.y,r)}function T5(t){return t.animationValues&&t.animationValues.opacityExit!==void 0}const C5={duration:.45,ease:[.4,0,.1,1]},XS=t=>typeof navigator<"u"&&navigator.userAgent.toLowerCase().includes(t),KS=XS("applewebkit/")&&!XS("chrome/")?Math.round:sr;function ZS(t){t.min=KS(t.min),t.max=KS(t.max)}function E5(t){ZS(t.x),ZS(t.y)}function SD(t,e,n){return t==="position"||t==="preserve-aspect"&&!vv(VS(e),VS(n),.2)}const k5=xD({attachResizeListener:(t,e)=>wl(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),am={current:void 0},TD=xD({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!am.current){const t=new k5({});t.mount(window),t.setOptions({layoutScroll:!0}),am.current=t}return am.current},resetTransform:(t,e)=>{t.style.transform=e!==void 0?e:"none"},checkIsScrollRoot:t=>window.getComputedStyle(t).position==="fixed"}),D5={pan:{Feature:Uz},drag:{Feature:Hz,ProjectionNode:TD,MeasureLayout:mD}},P5=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function O5(t){const e=P5.exec(t);if(!e)return[,];const[,n,r]=e;return[n,r]}const _5=4;function xv(t,e,n=1){aa(n<=_5,`Max CSS variable fallback depth detected in property "${t}". This may indicate a circular fallback dependency.`);const[r,i]=O5(t);if(!r)return;const o=window.getComputedStyle(e).getPropertyValue(r);if(o){const a=o.trim();return oD(a)?parseFloat(a):a}else return cv(i)?xv(i,e,n+1):i}function R5(t,{...e},n){const r=t.current;if(!(r instanceof Element))return{target:e,transitionEnd:n};n&&(n={...n}),t.values.forEach(i=>{const o=i.get();if(!cv(o))return;const a=xv(o,r);a&&i.set(a)});for(const i in e){const o=e[i];if(!cv(o))continue;const a=xv(o,r);a&&(e[i]=a,n||(n={}),n[i]===void 0&&(n[i]=o))}return{target:e,transitionEnd:n}}const A5=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),CD=t=>A5.has(t),I5=t=>Object.keys(t).some(CD),_h=t=>t===Ac||t===Rt,JS=(t,e)=>parseFloat(t.split(", ")[e]),QS=(t,e)=>(n,{transform:r})=>{if(r==="none"||!r)return 0;const i=r.match(/^matrix3d\((.+)\)$/);if(i)return JS(i[1],e);{const o=r.match(/^matrix\((.+)\)$/);return o?JS(o[1],t):0}},M5=new Set(["x","y","z"]),L5=Kd.filter(t=>!M5.has(t));function F5(t){const e=[];return L5.forEach(n=>{const r=t.getValue(n);r!==void 0&&(e.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),e.length&&t.render(),e}const _f={width:({x:t},{paddingLeft:e="0",paddingRight:n="0"})=>t.max-t.min-parseFloat(e)-parseFloat(n),height:({y:t},{paddingTop:e="0",paddingBottom:n="0"})=>t.max-t.min-parseFloat(e)-parseFloat(n),top:(t,{top:e})=>parseFloat(e),left:(t,{left:e})=>parseFloat(e),bottom:({y:t},{top:e})=>parseFloat(e)+(t.max-t.min),right:({x:t},{left:e})=>parseFloat(e)+(t.max-t.min),x:QS(4,13),y:QS(5,14)};_f.translateX=_f.x;_f.translateY=_f.y;const N5=(t,e,n)=>{const r=e.measureViewportBox(),i=e.current,o=getComputedStyle(i),{display:a}=o,c={};a==="none"&&e.setStaticValue("display",t.display||"block"),n.forEach(p=>{c[p]=_f[p](r,o)}),e.render();const d=e.measureViewportBox();return n.forEach(p=>{const w=e.getValue(p);w&&w.jump(c[p]),t[p]=_f[p](d,o)}),t},j5=(t,e,n={},r={})=>{e={...e},r={...r};const i=Object.keys(e).filter(CD);let o=[],a=!1;const c=[];if(i.forEach(d=>{const p=t.getValue(d);if(!t.hasValue(d))return;let w=n[d],m=ad(w);const T=e[d];let E;if(hp(T)){const A=T.length,I=T[0]===null?1:0;w=T[I],m=ad(w);for(let j=I;j<A&&T[j]!==null;j++)E?aa(ad(T[j])===E,"All keyframes must be of the same type"):(E=ad(T[j]),aa(E===m||_h(m)&&_h(E),"Keyframes must be of the same dimension as the current value"))}else E=ad(T);if(m!==E)if(_h(m)&&_h(E)){const A=p.get();typeof A=="string"&&p.set(parseFloat(A)),typeof T=="string"?e[d]=parseFloat(T):Array.isArray(T)&&E===Rt&&(e[d]=T.map(parseFloat))}else m!=null&&m.transform&&(E!=null&&E.transform)&&(w===0||T===0)?w===0?p.set(E.transform(w)):e[d]=m.transform(T):(a||(o=F5(t),a=!0),c.push(d),r[d]=r[d]!==void 0?r[d]:e[d],p.jump(T))}),c.length){const d=c.indexOf("height")>=0?window.pageYOffset:null,p=N5(e,t,c);return o.length&&o.forEach(([w,m])=>{t.getValue(w).set(m)}),t.render(),Vp&&d!==null&&window.scrollTo({top:d}),{target:p,transitionEnd:r}}else return{target:e,transitionEnd:r}};function B5(t,e,n,r){return I5(e)?j5(t,e,n,r):{target:e,transitionEnd:r}}const $5=(t,e,n,r)=>{const i=R5(t,e,r);return e=i.target,r=i.transitionEnd,B5(t,e,n,r)},Sv={current:null},ED={current:!1};function V5(){if(ED.current=!0,!!Vp)if(window.matchMedia){const t=window.matchMedia("(prefers-reduced-motion)"),e=()=>Sv.current=t.matches;t.addListener(e),e()}else Sv.current=!1}function H5(t,e,n){const{willChange:r}=e;for(const i in e){const o=e[i],a=n[i];if(Ro(o))t.addValue(i,o),vp(r)&&r.add(i),process.env.NODE_ENV==="development"&&Jy(o.version==="10.18.0",`Attempting to mix Framer Motion versions ${o.version} with 10.18.0 may not work as expected.`);else if(Ro(a))t.addValue(i,Of(o,{owner:t})),vp(r)&&r.remove(i);else if(a!==o)if(t.hasValue(i)){const c=t.getValue(i);!c.hasAnimated&&c.set(o)}else{const c=t.getStaticValue(i);t.addValue(i,Of(c!==void 0?c:o,{owner:t}))}}for(const i in n)e[i]===void 0&&t.removeValue(i);return e}const e1=new WeakMap,kD=Object.keys(jd),U5=kD.length,t1=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],W5=Ly.length;class z5{constructor({parent:e,props:n,presenceContext:r,reducedMotionConfig:i,visualState:o},a={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.scheduleRender=()=>Ln.render(this.render,!1,!0);const{latestValues:c,renderState:d}=o;this.latestValues=c,this.baseTarget={...c},this.initialValues=n.initial?{...c}:{},this.renderState=d,this.parent=e,this.props=n,this.presenceContext=r,this.depth=e?e.depth+1:0,this.reducedMotionConfig=i,this.options=a,this.isControllingVariants=Up(n),this.isVariantNode=ck(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);const{willChange:p,...w}=this.scrapeMotionValuesFromProps(n,{});for(const m in w){const T=w[m];c[m]!==void 0&&Ro(T)&&(T.set(c[m],!1),vp(p)&&p.add(m))}}scrapeMotionValuesFromProps(e,n){return{}}mount(e){this.current=e,e1.set(e,this),this.projection&&!this.projection.instance&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((n,r)=>this.bindToMotionValue(r,n)),ED.current||V5(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:Sv.current,process.env.NODE_ENV!=="production"&&Jy(this.shouldReduceMotion!==!0,"You have Reduced Motion enabled on your device. Animations may not appear as expected."),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){e1.delete(this.current),this.projection&&this.projection.unmount(),Dl(this.notifyUpdate),Dl(this.render),this.valueSubscriptions.forEach(e=>e()),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const e in this.events)this.events[e].clear();for(const e in this.features)this.features[e].unmount();this.current=null}bindToMotionValue(e,n){const r=Rc.has(e),i=n.on("change",a=>{this.latestValues[e]=a,this.props.onUpdate&&Ln.update(this.notifyUpdate,!1,!0),r&&this.projection&&(this.projection.isTransformDirty=!0)}),o=n.on("renderRequest",this.scheduleRender);this.valueSubscriptions.set(e,()=>{i(),o()})}sortNodePosition(e){return!this.current||!this.sortInstanceNodePosition||this.type!==e.type?0:this.sortInstanceNodePosition(this.current,e.current)}loadFeatures({children:e,...n},r,i,o){let a,c;if(process.env.NODE_ENV!=="production"&&i&&r){const d="You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.";n.ignoreStrict?Qd(!1,d):aa(!1,d)}for(let d=0;d<U5;d++){const p=kD[d],{isEnabled:w,Feature:m,ProjectionNode:T,MeasureLayout:E}=jd[p];T&&(a=T),w(n)&&(!this.features[p]&&m&&(this.features[p]=new m(this)),E&&(c=E))}if((this.type==="html"||this.type==="svg")&&!this.projection&&a){this.projection=new a(this.latestValues,this.parent&&this.parent.projection);const{layoutId:d,layout:p,drag:w,dragConstraints:m,layoutScroll:T,layoutRoot:E}=n;this.projection.setOptions({layoutId:d,layout:p,alwaysMeasureLayout:!!w||m&&bf(m),visualElement:this,scheduleRender:()=>this.scheduleRender(),animationType:typeof p=="string"?p:"both",initialPromotionConfig:o,layoutScroll:T,layoutRoot:E})}return c}updateFeatures(){for(const e in this.features){const n=this.features[e];n.isMounted?n.update():(n.mount(),n.isMounted=!0)}}triggerBuild(){this.build(this.renderState,this.latestValues,this.options,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):Er()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,n){this.latestValues[e]=n}makeTargetAnimatable(e,n=!0){return this.makeTargetAnimatableFromInstance(e,this.props,n)}update(e,n){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let r=0;r<t1.length;r++){const i=t1[r];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);const o=e["on"+i];o&&(this.propEventSubscriptions[i]=this.on(i,o))}this.prevMotionValues=H5(this,this.scrapeMotionValuesFromProps(e,this.prevProps),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(e){return this.props.variants?this.props.variants[e]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}getVariantContext(e=!1){if(e)return this.parent?this.parent.getVariantContext():void 0;if(!this.isControllingVariants){const r=this.parent?this.parent.getVariantContext()||{}:{};return this.props.initial!==void 0&&(r.initial=this.props.initial),r}const n={};for(let r=0;r<W5;r++){const i=Ly[r],o=this.props[i];(Nd(o)||o===!1)&&(n[i]=o)}return n}addVariantChild(e){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(e),()=>n.variantChildren.delete(e)}addValue(e,n){n!==this.values.get(e)&&(this.removeValue(e),this.bindToMotionValue(e,n)),this.values.set(e,n),this.latestValues[e]=n.get()}removeValue(e){this.values.delete(e);const n=this.valueSubscriptions.get(e);n&&(n(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,n){if(this.props.values&&this.props.values[e])return this.props.values[e];let r=this.values.get(e);return r===void 0&&n!==void 0&&(r=Of(n,{owner:this}),this.addValue(e,r)),r}readValue(e){var n;return this.latestValues[e]!==void 0||!this.current?this.latestValues[e]:(n=this.getBaseTargetFromProps(this.props,e))!==null&&n!==void 0?n:this.readValueFromInstance(this.current,e,this.options)}setBaseTarget(e,n){this.baseTarget[e]=n}getBaseTarget(e){var n;const{initial:r}=this.props,i=typeof r=="string"||typeof r=="object"?(n=Hy(this.props,r))===null||n===void 0?void 0:n[e]:void 0;if(r&&i!==void 0)return i;const o=this.getBaseTargetFromProps(this.props,e);return o!==void 0&&!Ro(o)?o:this.initialValues[e]!==void 0&&i===void 0?void 0:this.baseTarget[e]}on(e,n){return this.events[e]||(this.events[e]=new Zy),this.events[e].add(n)}notify(e,...n){this.events[e]&&this.events[e].notify(...n)}}class DD extends z5{sortInstanceNodePosition(e,n){return e.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(e,n){return e.style?e.style[n]:void 0}removeValueFromRenderState(e,{vars:n,style:r}){delete n[e],delete r[e]}makeTargetAnimatableFromInstance({transition:e,transitionEnd:n,...r},{transformValues:i},o){let a=az(r,e||{},this);if(i&&(n&&(n=i(n)),r&&(r=i(r)),a&&(a=i(a))),o){oz(this,r,a);const c=$5(this,r,a,n);n=c.transitionEnd,r=c.target}return{transition:e,transitionEnd:n,...r}}}function Y5(t){return window.getComputedStyle(t)}class G5 extends DD{constructor(){super(...arguments),this.type="html"}readValueFromInstance(e,n){if(Rc.has(n)){const r=Yy(n);return r&&r.default||0}else{const r=Y5(e),i=(gk(n)?r.getPropertyValue(n):r[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(e,{transformPagePoint:n}){return pD(e,n)}build(e,n,r,i){Ny(e,n,r,i.transformTemplate)}scrapeMotionValuesFromProps(e,n){return Vy(e,n)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:e}=this.props;Ro(e)&&(this.childSubscription=e.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}renderInstance(e,n,r,i){xk(e,n,r,i)}}class q5 extends DD{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1}getBaseTargetFromProps(e,n){return e[n]}readValueFromInstance(e,n){if(Rc.has(n)){const r=Yy(n);return r&&r.default||0}return n=Sk.has(n)?n:Iy(n),e.getAttribute(n)}measureInstanceViewportBox(){return Er()}scrapeMotionValuesFromProps(e,n){return Ck(e,n)}build(e,n,r,i){By(e,n,r,this.isSVGTag,i.transformTemplate)}renderInstance(e,n,r,i){Tk(e,n,r,i)}mount(e){this.isSVGTag=$y(e.tagName),super.mount(e)}}const X5=(t,e)=>Fy(t)?new q5(e,{enableHardwareAcceleration:!1}):new G5(e,{enableHardwareAcceleration:!0}),K5={layout:{ProjectionNode:TD,MeasureLayout:mD}},Z5={...Sz,...WU,...D5,...K5},PD=JH((t,e)=>RU(t,e,Z5,X5));function OD(t){return Ep({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M463 192H315.9L271.2 58.6C269 52.1 262.9 48 256 48s-13 4.1-15.2 10.6L196.1 192H48c-8.8 0-16 7.2-16 16 0 .9.1 1.9.3 2.7.2 3.5 1.8 7.4 6.7 11.3l120.9 85.2-46.4 134.9c-2.3 6.5 0 13.8 5.5 18 2.9 2.1 5.6 3.9 9 3.9 3.3 0 7.2-1.7 10-3.6l118-84.1 118 84.1c2.8 2 6.7 3.6 10 3.6 3.4 0 6.1-1.7 8.9-3.9 5.6-4.2 7.8-11.4 5.5-18L352 307.2l119.9-86 2.9-2.5c2.6-2.8 5.2-6.6 5.2-10.7 0-8.8-8.2-16-17-16zm-127.2 92.5c-10 7.2-14.2 20.2-10.2 31.8l30.1 87.7c1.3 3.7-2.9 6.8-6.1 4.6l-77.4-55.2c-4.9-3.5-10.6-5.2-16.3-5.2-5.7 0-11.4 1.7-16.2 5.2l-77.4 55.1c-3.2 2.3-7.4-.9-6.1-4.6l30.1-87.7c4-11.8-.2-24.8-10.3-32l-81-57.1c-3.2-2.2-1.6-7.3 2.3-7.3H196c12 0 22.7-7.7 26.5-19.1l29.6-88.2c1.2-3.6 6.4-3.6 7.6 0l29.6 88.2c3.8 11.4 14.5 19.1 26.5 19.1h97.3c3.9 0 5.5 5 2.3 7.2l-79.6 57.5z"},child:[]}]})(t)}function _D(t){return Ep({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M256 372.686L380.83 448l-33.021-142.066L458 210.409l-145.267-12.475L256 64l-56.743 133.934L54 210.409l110.192 95.525L131.161 448z"},child:[]}]})(t)}function Qy(t,e){return e?t:void 0}function J5(t){return Re.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",fill:"currentColor",viewBox:"0 0 16 16",...t,children:Re.jsx("path",{fill:"currenColor",d:"M4.427 7.427l3.396 3.396a.25.25 0 00.354 0l3.396-3.396A.25.25 0 0011.396 7H4.604a.25.25 0 00-.177.427z"})})}function Q5(t){const{renderChildren:e,parentRef:n,onlyChild:r}=t,[i,o]=X.useState({top:0,left:0}),a=X.useRef(null),[c,d]=X.useState("auto");return X.useLayoutEffect(()=>{if(n.current&&a.current){const p=n.current.getBoundingClientRect(),w=a.current.getBoundingClientRect();let m=p.top;const T=p.left+p.width,E=w.height+(window.innerHeight-p.top)>window.innerHeight;E&&(console.log("overtop"),d(window.innerHeight-p.top-50)),p.top+w.height>window.innerHeight&&!E&&(m=p.top-w.height+p.height),o({top:m,left:T})}},[n,a]),r?e({maxHeight:c}):Lv.createPortal(Re.jsx("div",{ref:a,style:{position:"fixed",top:i.top,left:i.left,zIndex:1200},onDragStart:p=>{console.log("onDragStart Dropdown",p.target)},children:e({maxHeight:c})}),n.current)}function Rf(){return Rf=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)({}).hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},Rf.apply(null,arguments)}const e4=Object.freeze(Object.defineProperty({__proto__:null,get default(){return Rf}},Symbol.toStringTag,{value:"Module"}));function RD(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,qh(t,e)}function lm(t,e,n){if(n||arguments.length===2)for(var r=0,i=e.length,o;r<i;r++)(o||!(r in e))&&(o||(o=Array.prototype.slice.call(e,0,r)),o[r]=e[r]);return t.concat(o||Array.prototype.slice.call(e))}/*!
8
+ see this guide: https://github.com/louisbrunner/dnd-multi-backend/tree/master/packages/react-dnd-multi-backend#migrating-from-2xx`);fc(this,dd,new iH),fc(this,Xo,{}),fc(this,vl,[]);for(let i of r.backends){let o=Nt(this,iv).call(this,e,n,i);Nt(this,Xo)[o.id]=o,Nt(this,vl).push(o)}fc(this,qo,Nt(this,vl)[0].id),fc(this,dc,{})}};qo=new WeakMap,dd=new WeakMap,Xo=new WeakMap,vl=new WeakMap,dc=new WeakMap,iv=new WeakMap,ov=new WeakMap,sv=new WeakMap,Vh=new WeakMap,Hh=new WeakMap,hd=new WeakMap,JE.isSetUp=!1;var oH=JE,sH=(t,e,n)=>new oH(t,e,n),QE=(t,e)=>({event:t,check:e}),aH=QE("touchstart",t=>{let e=t;return e.touches!==null&&e.touches!==void 0}),lH=QE("pointerdown",t=>t.pointerType==="mouse"),cu;(function(t){t.mouse="mouse",t.touch="touch",t.keyboard="keyboard"})(cu||(cu={}));class uH{get delay(){var e;return(e=this.args.delay)!==null&&e!==void 0?e:0}get scrollAngleRanges(){return this.args.scrollAngleRanges}get getDropTargetElementsAtPoint(){return this.args.getDropTargetElementsAtPoint}get ignoreContextMenu(){var e;return(e=this.args.ignoreContextMenu)!==null&&e!==void 0?e:!1}get enableHoverOutsideTarget(){var e;return(e=this.args.enableHoverOutsideTarget)!==null&&e!==void 0?e:!1}get enableKeyboardEvents(){var e;return(e=this.args.enableKeyboardEvents)!==null&&e!==void 0?e:!1}get enableMouseEvents(){var e;return(e=this.args.enableMouseEvents)!==null&&e!==void 0?e:!1}get enableTouchEvents(){var e;return(e=this.args.enableTouchEvents)!==null&&e!==void 0?e:!0}get touchSlop(){return this.args.touchSlop||0}get delayTouchStart(){var e,n,r,i;return(i=(r=(e=this.args)===null||e===void 0?void 0:e.delayTouchStart)!==null&&r!==void 0?r:(n=this.args)===null||n===void 0?void 0:n.delay)!==null&&i!==void 0?i:0}get delayMouseStart(){var e,n,r,i;return(i=(r=(e=this.args)===null||e===void 0?void 0:e.delayMouseStart)!==null&&r!==void 0?r:(n=this.args)===null||n===void 0?void 0:n.delay)!==null&&i!==void 0?i:0}get window(){if(this.context&&this.context.window)return this.context.window;if(typeof window<"u")return window}get document(){var e;if(!((e=this.context)===null||e===void 0)&&e.document)return this.context.document;if(this.window)return this.window.document}get rootElement(){var e;return((e=this.args)===null||e===void 0?void 0:e.rootElement)||this.document}constructor(e,n){this.args=e,this.context=n}}function cH(t,e,n,r){return Math.sqrt(Math.pow(Math.abs(n-t),2)+Math.pow(Math.abs(r-e),2))}function fH(t,e,n,r,i){if(!i)return!1;const o=Math.atan2(r-e,n-t)*180/Math.PI+180;for(let a=0;a<i.length;++a){const c=i[a];if(c&&(c.start==null||o>=c.start)&&(c.end==null||o<=c.end))return!0}return!1}const dH={Left:1},hH={Left:0};function Kg(t){return t.button===void 0||t.button===hH.Left}function pH(t){return t.buttons===void 0||(t.buttons&dH.Left)===0}function ek(t){return!!t.targetTouches}const gH=1;function mH(t){const e=t.nodeType===gH?t:t.parentElement;if(!e)return;const{top:n,left:r}=e.getBoundingClientRect();return{x:r,y:n}}function vH(t,e){if(t.targetTouches.length===1)return cp(t.targetTouches[0]);if(e&&t.touches.length===1&&t.touches[0].target===e.target)return cp(t.touches[0])}function cp(t,e){return ek(t)?vH(t,e):{x:t.clientX,y:t.clientY}}const Gx=(()=>{let t=!1;try{addEventListener("test",()=>{},Object.defineProperty({},"passive",{get(){return t=!0,!0}}))}catch{}return t})(),od={[cu.mouse]:{start:"mousedown",move:"mousemove",end:"mouseup",contextmenu:"contextmenu"},[cu.touch]:{start:"touchstart",move:"touchmove",end:"touchend"},[cu.keyboard]:{keydown:"keydown"}};class Sd{profile(){var e;return{sourceNodes:this.sourceNodes.size,sourcePreviewNodes:this.sourcePreviewNodes.size,sourcePreviewNodeOptions:this.sourcePreviewNodeOptions.size,targetNodes:this.targetNodes.size,dragOverTargetIds:((e=this.dragOverTargetIds)===null||e===void 0?void 0:e.length)||0}}get document(){return this.options.document}setup(){const e=this.options.rootElement;e&&(Ut(!Sd.isSetUp,"Cannot have two Touch backends at the same time."),Sd.isSetUp=!0,this.addEventListener(e,"start",this.getTopMoveStartHandler()),this.addEventListener(e,"start",this.handleTopMoveStartCapture,!0),this.addEventListener(e,"move",this.handleTopMove),this.addEventListener(e,"move",this.handleTopMoveCapture,!0),this.addEventListener(e,"end",this.handleTopMoveEndCapture,!0),this.options.enableMouseEvents&&!this.options.ignoreContextMenu&&this.addEventListener(e,"contextmenu",this.handleTopMoveEndCapture),this.options.enableKeyboardEvents&&this.addEventListener(e,"keydown",this.handleCancelOnEscape,!0))}teardown(){const e=this.options.rootElement;e&&(Sd.isSetUp=!1,this._mouseClientOffset={},this.removeEventListener(e,"start",this.handleTopMoveStartCapture,!0),this.removeEventListener(e,"start",this.handleTopMoveStart),this.removeEventListener(e,"move",this.handleTopMoveCapture,!0),this.removeEventListener(e,"move",this.handleTopMove),this.removeEventListener(e,"end",this.handleTopMoveEndCapture,!0),this.options.enableMouseEvents&&!this.options.ignoreContextMenu&&this.removeEventListener(e,"contextmenu",this.handleTopMoveEndCapture),this.options.enableKeyboardEvents&&this.removeEventListener(e,"keydown",this.handleCancelOnEscape,!0),this.uninstallSourceNodeRemovalObserver())}addEventListener(e,n,r,i=!1){const o=Gx?{capture:i,passive:!1}:i;this.listenerTypes.forEach(function(a){const c=od[a][n];c&&e.addEventListener(c,r,o)})}removeEventListener(e,n,r,i=!1){const o=Gx?{capture:i,passive:!1}:i;this.listenerTypes.forEach(function(a){const c=od[a][n];c&&e.removeEventListener(c,r,o)})}connectDragSource(e,n){const r=this.handleMoveStart.bind(this,e);return this.sourceNodes.set(e,n),this.addEventListener(n,"start",r),()=>{this.sourceNodes.delete(e),this.removeEventListener(n,"start",r)}}connectDragPreview(e,n,r){return this.sourcePreviewNodeOptions.set(e,r),this.sourcePreviewNodes.set(e,n),()=>{this.sourcePreviewNodes.delete(e),this.sourcePreviewNodeOptions.delete(e)}}connectDropTarget(e,n){const r=this.options.rootElement;if(!this.document||!r)return()=>{};const i=o=>{if(!this.document||!r||!this.monitor.isDragging())return;let a;switch(o.type){case od.mouse.move:a={x:o.clientX,y:o.clientY};break;case od.touch.move:var c,d;a={x:((c=o.touches[0])===null||c===void 0?void 0:c.clientX)||0,y:((d=o.touches[0])===null||d===void 0?void 0:d.clientY)||0};break}const p=a!=null?this.document.elementFromPoint(a.x,a.y):void 0,w=p&&n.contains(p);if(p===n||w)return this.handleMove(o,e)};return this.addEventListener(this.document.body,"move",i),this.targetNodes.set(e,n),()=>{this.document&&(this.targetNodes.delete(e),this.removeEventListener(this.document.body,"move",i))}}getTopMoveStartHandler(){return!this.options.delayTouchStart&&!this.options.delayMouseStart?this.handleTopMoveStart:this.handleTopMoveStartDelay}installSourceNodeRemovalObserver(e){this.uninstallSourceNodeRemovalObserver(),this.draggedSourceNode=e,this.draggedSourceNodeRemovalObserver=new MutationObserver(()=>{e&&!e.parentElement&&(this.resurrectSourceNode(),this.uninstallSourceNodeRemovalObserver())}),!(!e||!e.parentElement)&&this.draggedSourceNodeRemovalObserver.observe(e.parentElement,{childList:!0})}resurrectSourceNode(){this.document&&this.draggedSourceNode&&(this.draggedSourceNode.style.display="none",this.draggedSourceNode.removeAttribute("data-reactid"),this.document.body.appendChild(this.draggedSourceNode))}uninstallSourceNodeRemovalObserver(){this.draggedSourceNodeRemovalObserver&&this.draggedSourceNodeRemovalObserver.disconnect(),this.draggedSourceNodeRemovalObserver=void 0,this.draggedSourceNode=void 0}constructor(e,n,r){this.getSourceClientOffset=i=>{const o=this.sourceNodes.get(i);return o&&mH(o)},this.handleTopMoveStartCapture=i=>{Kg(i)&&(this.moveStartSourceIds=[])},this.handleMoveStart=i=>{Array.isArray(this.moveStartSourceIds)&&this.moveStartSourceIds.unshift(i)},this.handleTopMoveStart=i=>{if(!Kg(i))return;const o=cp(i);o&&(ek(i)&&(this.lastTargetTouchFallback=i.targetTouches[0]),this._mouseClientOffset=o),this.waitingForDelay=!1},this.handleTopMoveStartDelay=i=>{if(!Kg(i))return;const o=i.type===od.touch.start?this.options.delayTouchStart:this.options.delayMouseStart;this.timeout=setTimeout(this.handleTopMoveStart.bind(this,i),o),this.waitingForDelay=!0},this.handleTopMoveCapture=()=>{this.dragOverTargetIds=[]},this.handleMove=(i,o)=>{this.dragOverTargetIds&&this.dragOverTargetIds.unshift(o)},this.handleTopMove=i=>{if(this.timeout&&clearTimeout(this.timeout),!this.document||this.waitingForDelay)return;const{moveStartSourceIds:o,dragOverTargetIds:a}=this,c=this.options.enableHoverOutsideTarget,d=cp(i,this.lastTargetTouchFallback);if(!d)return;if(this._isScrolling||!this.monitor.isDragging()&&fH(this._mouseClientOffset.x||0,this._mouseClientOffset.y||0,d.x,d.y,this.options.scrollAngleRanges)){this._isScrolling=!0;return}if(!this.monitor.isDragging()&&this._mouseClientOffset.hasOwnProperty("x")&&o&&cH(this._mouseClientOffset.x||0,this._mouseClientOffset.y||0,d.x,d.y)>(this.options.touchSlop?this.options.touchSlop:0)&&(this.moveStartSourceIds=void 0,this.actions.beginDrag(o,{clientOffset:this._mouseClientOffset,getSourceClientOffset:this.getSourceClientOffset,publishSource:!1})),!this.monitor.isDragging())return;const p=this.sourceNodes.get(this.monitor.getSourceId());this.installSourceNodeRemovalObserver(p),this.actions.publishDragSource(),i.cancelable&&i.preventDefault();const w=(a||[]).map(A=>this.targetNodes.get(A)).filter(A=>!!A),m=this.options.getDropTargetElementsAtPoint?this.options.getDropTargetElementsAtPoint(d.x,d.y,w):this.document.elementsFromPoint(d.x,d.y),T=[];for(const A in m){if(!m.hasOwnProperty(A))continue;let I=m[A];for(I!=null&&T.push(I);I;)I=I.parentElement,I&&T.indexOf(I)===-1&&T.push(I)}const E=T.filter(A=>w.indexOf(A)>-1).map(A=>this._getDropTargetId(A)).filter(A=>!!A).filter((A,I,j)=>j.indexOf(A)===I);if(c)for(const A in this.targetNodes){const I=this.targetNodes.get(A);if(p&&I&&I.contains(p)&&E.indexOf(A)===-1){E.unshift(A);break}}E.reverse(),this.actions.hover(E,{clientOffset:d})},this._getDropTargetId=i=>{const o=this.targetNodes.keys();let a=o.next();for(;a.done===!1;){const c=a.value;if(i===this.targetNodes.get(c))return c;a=o.next()}},this.handleTopMoveEndCapture=i=>{if(this._isScrolling=!1,this.lastTargetTouchFallback=void 0,!!pH(i)){if(!this.monitor.isDragging()||this.monitor.didDrop()){this.moveStartSourceIds=void 0;return}i.cancelable&&i.preventDefault(),this._mouseClientOffset={},this.uninstallSourceNodeRemovalObserver(),this.actions.drop(),this.actions.endDrag()}},this.handleCancelOnEscape=i=>{i.key==="Escape"&&this.monitor.isDragging()&&(this._mouseClientOffset={},this.uninstallSourceNodeRemovalObserver(),this.actions.endDrag())},this.options=new uH(r,n),this.actions=e.getActions(),this.monitor=e.getMonitor(),this.sourceNodes=new Map,this.sourcePreviewNodes=new Map,this.sourcePreviewNodeOptions=new Map,this.targetNodes=new Map,this.listenerTypes=[],this._mouseClientOffset={},this._isScrolling=!1,this.options.enableMouseEvents&&this.listenerTypes.push(cu.mouse),this.options.enableTouchEvents&&this.listenerTypes.push(cu.touch),this.options.enableKeyboardEvents&&this.listenerTypes.push(cu.keyboard)}}const yH=function(e,n={},r={}){return new Sd(e,n,r)};var Is=function(){return Is=Object.assign||function(e){for(var n,r=1,i=arguments.length;r<i;r++){n=arguments[r];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},Is.apply(this,arguments)};function io(t,e,n){if(n||arguments.length===2)for(var r=0,i=e.length,o;r<i;r++)(o||!(r in e))&&(o||(o=Array.prototype.slice.call(e,0,r)),o[r]=e[r]);return t.concat(o||Array.prototype.slice.call(e))}function bH(t){var e=t.isVisible,n=t.ease,r=n===void 0?"easeIn":n,i=t.duration,o=t.variants,a=o===void 0?{open:{opacity:1,height:"auto"},close:{opacity:0,height:0}}:o,c=t.children,d=rV({polyfill:_F}),p=d[0],w=d[1].height,m=X.useState(e),T=m[0],E=m[1],A=X.useState(e),I=A[0],j=A[1],_=X.useState(!1),U=_[0],G=_[1],re=function(){G(!1),e||E(!1)};X.useEffect(function(){G(!0),e?E(!0):j(!1)},[e]);var q=w===0;return X.useEffect(function(){T&&j(!0)},[q]),X.createElement(nV.div,{style:U?{overflow:"hidden"}:void 0,onAnimationComplete:re,initial:I?"open":"close",animate:I?"open":"close",inherit:!1,variants:a,transition:{ease:r,duration:wH(w,i)}},X.createElement("div",{ref:p},T&&c))}function wH(t,e){if(e)return e;if(!t)return 0;var n=t/36;return Math.round((4+10*Math.pow(n,.25)+n/5)*10)/1500}var tk=X.createContext({}),xH={isLock:!1},SH=function(t){var e=X.useState(xH.isLock),n=e[0],r=e[1];return X.createElement(tk.Provider,{value:{isLock:n,lock:function(){return r(!0)},unlock:function(){return r(!1)}}},t.children)},Xd=X.createContext({}),Eh={dropTargetId:void 0,index:void 0},TH=function(t){var e=X.useState(Eh.dropTargetId),n=e[0],r=e[1],i=X.useState(Eh.index),o=i[0],a=i[1],c=function(p,w){r(p),a(w)},d=function(){r(Eh.dropTargetId),a(Eh.index)};return X.createElement(Xd.Provider,{value:{dropTargetId:n,index:o,showPlaceholder:c,hidePlaceholder:d}},t.children)},CH=function(t,e){return t.text>e.text?1:t.text<e.text?-1:0},sd=function(t,e){return t.find(function(n){return n.id===e})},nk=function(t,e,n){if(n===0)return!1;var r=t.find(function(i){return i.id===n});return r===void 0?!1:r.parent===e?!0:nk(t,e,r.parent)},Ry=function(t){return typeof t=="object"&&t!==null&&"id"in t&&"parent"in t&&"text"in t},wu=function(t,e,n){var r=n.tree,i=n.rootId,o=n.canDrop;if(t===null){if(e===i)return!0;var a=r.find(function(w){return w.id===e});return!!(a&&a.droppable)}else{var c=Ry(t)?t.id:null;if(o){var d=o(c,e);if(d!==void 0)return d}if(c===e)return!1;var p=r.find(function(m){return m.id===c}),a=r.find(function(m){return m.id===e});return p===void 0||c===null?e===i||!!(a!=null&&a.droppable):a===void 0?p.parent!==0:p.parent===e||!a.droppable?!1:!nk(r,c,e)}},EH=function(t,e,n){return t.map(function(r){return r.id===e?Is(Is({},r),{parent:n}):r})},rk=function(t,e,n){if(n===0)return 0;var r=t.filter(function(i){return i.parent===e});return r[n]?t.findIndex(function(i){return i.id===r[n].id}):t.findIndex(function(i){return i.id===r[n-1].id})+1},kH=function(t,e){return t.findIndex(function(n){return n.id===e})},ik=function(t,e,n,r){var i=kH(t,e),o=rk(t,n,r);return o=o>i?o-1:o,[i,o]},DH=function(t,e,n){var r=e<0?t.length+e:e;if(r>=0&&r<t.length){var i=n<0?t.length+n:n,o=t.splice(e,1)[0];t.splice(i,0,o)}},PH=function(t,e,n,r){var i=ik(t,e,n,r),o=i[0],a=i[1],c=io([],t,!0);return DH(c,o,a),c.map(function(d){return d.id===e?Is(Is({},d),{parent:n}):d})},OH=function(t,e){var n=t.getBoundingClientRect(),r=n.top+n.height/2;return e>r?"down":"up"},av=function(t,e){var n="",r=0;return t.forEach(function(i,o){var a,c=OH(i,((a=e.getClientOffset())===null||a===void 0?void 0:a.y)||0);n===""?n=c:n!==c&&(n=c,r=o),o===t.length-1&&c==="down"&&(r=o+1)}),r},qx=function(t,e,n){var r=e.closest('[role="list"]'),i=r==null?void 0:r.querySelectorAll(':scope > [role="listitem"]');return i?av(i,n):null},_H=function(t,e,n){var r=t.getBoundingClientRect(),i=n.dropTargetOffset,o=r.top+i,a=r.bottom-i;return e>a?"lower":e<o?"upper":"middle"},lv=function(t,e,n,r){var i;if(!e)return null;if(t===null){var o=e.querySelectorAll(':scope > [role="listitem"]');return{id:r.rootId,index:av(o,n)}}var a=n.getItem(),c=e.querySelector('[role="list"]'),d=_H(e,((i=n.getClientOffset())===null||i===void 0?void 0:i.y)||0,r);if(c){if(d==="upper")if(wu(a,t.parent,r)){var p=qx(t,e,n);return p===null?null:{id:t.parent,index:p}}else return{id:t.id,index:0};var o=c.querySelectorAll(':scope > [role="listitem"]');return{id:t.id,index:av(o,n)}}else{if(d==="middle")return{id:t.id,index:0};if(wu(a,t.parent,r)){var p=qx(t,e,n);return p===null?null:{id:t.parent,index:p}}return null}},RH=function(t){return t===void 0&&(t={}),{backends:[{id:"html5",backend:eC,options:t.html5,transition:lH},{id:"touch",backend:yH,options:t.touch||{enableMouseEvents:!0},preview:!0,transition:aH}]}},Wh=function(t,e){return t.some(function(n){return n.parent===e})},ok=X.createContext({}),AH=function(t){var e=BH(t.tree,t.initialOpen),n=e[0],r=e[1],i=r.handleToggle,o=r.handleCloseAll,a=r.handleOpenAll,c=r.handleOpen,d=r.handleClose;X.useImperativeHandle(t.treeRef,function(){return{open:function(E){return c(E,t.onChangeOpen)},close:function(E){return d(E,t.onChangeOpen)},openAll:function(){return a(t.onChangeOpen)},closeAll:function(){return o(t.onChangeOpen)}}});var p=Ol().getMonitor(),w=t.canDrop,m=t.canDrag,T=Is(Is({extraAcceptTypes:[],listComponent:"ul",listItemComponent:"li",placeholderComponent:"li",sort:!0,insertDroppableFirst:!0,enableAnimateExpand:!1,dropTargetOffset:0,initialOpen:!1},t),{openIds:n,onDrop:function(E,A,I){if(E){var j={dragSourceId:E.id,dropTargetId:A,dragSource:E,dropTarget:sd(t.tree,A),monitor:p},_=t.tree;if(sd(_,E.id)||(_=io(io([],_,!0),[E],!1)),t.sort===!1){var U=ik(_,E.id,A,I),G=U[1];j.destinationIndex=G,j.relativeIndex=I,t.onDrop(PH(_,E.id,A,I),j);return}t.onDrop(EH(_,E.id,A),j)}else{var j={dropTargetId:A,dropTarget:sd(t.tree,A),monitor:p};t.sort===!1&&(j.destinationIndex=rk(t.tree,A,I),j.relativeIndex=I),t.onDrop(t.tree,j)}},canDrop:w?function(E,A){return w(t.tree,{dragSourceId:E??void 0,dropTargetId:A,dragSource:p.getItem(),dropTarget:sd(t.tree,A),monitor:p})}:void 0,canDrag:m?function(E){return m(sd(t.tree,E))}:void 0,onToggle:function(E){return i(E,t.onChangeOpen)}});return X.createElement(ok.Provider,{value:T},t.children)},IH=function(t){return X.createElement(AH,Is({},t),X.createElement(SH,null,X.createElement(TH,null,t.children)))},MH=function(t){var e=X.useContext(tk);X.useEffect(function(){if(t.current){var n=t.current,r=function(w){var m=w.target;(m instanceof HTMLInputElement||m instanceof HTMLTextAreaElement)&&e.lock()},i=function(w){var m=w.target;(m instanceof HTMLInputElement||m instanceof HTMLTextAreaElement)&&e.unlock()},o=function(w){return r(w)},a=function(w){return i(w)},c=function(w){return r(w)},d=function(w){return i(w)},p=new MutationObserver(function(){document.activeElement===document.body&&e.unlock()});return p.observe(n,{subtree:!0,childList:!0}),n.addEventListener("mouseover",o),n.addEventListener("mouseout",a),n.addEventListener("focusin",c),n.addEventListener("focusout",d),function(){p.disconnect(),n.removeEventListener("mouseover",o),n.removeEventListener("mouseout",a),n.removeEventListener("focusin",c),n.removeEventListener("focusout",d)}}},[t,e]),X.useEffect(function(){var n;(n=t.current)===null||n===void 0||n.setAttribute("draggable",e.isLock?"false":"true")},[t,e.isLock])},Bp={TREE_ITEM:Symbol()},sk=null,ak=function(t){var e=t.target;if(e instanceof HTMLElement){var n=e.closest('[role="listitem"]');t.currentTarget===n&&(sk=n)}},Xx=function(t){return ak(t)},Kx=function(t){return ak(t)},LH=function(t,e){var n=Eu();X.useEffect(function(){var c=e.current;return c==null||c.addEventListener("dragstart",Xx),c==null||c.addEventListener("touchstart",Kx,{passive:!0}),function(){c==null||c.removeEventListener("dragstart",Xx),c==null||c.removeEventListener("touchstart",Kx)}},[e]);var r=XE({type:Bp.TREE_ITEM,item:function(c){var d=Is({ref:e},t);return n.onDragStart&&n.onDragStart(d,c),d},end:function(c,d){var p=c;n.onDragEnd&&n.onDragEnd(p,d)},canDrag:function(){var c=n.canDrag;return sk!==e.current?!1:c?c(t.id):!0},collect:function(c){return{isDragging:c.isDragging()}}}),i=r[0].isDragging,o=r[1],a=r[2];return[i,o,a]},FH=function(t,e,n){var r=X.useRef(0),i=X.useRef(0),o=function(){r.current+=1,r.current===1&&!e&&(i.current=window.setTimeout(function(){return n(t)},500))},a=function(){r.current-=1,r.current===0&&window.clearTimeout(i.current)},c=function(){i.current>0&&window.clearTimeout(i.current),r.current=0,i.current=0};return{onDragEnter:o,onDragLeave:a,onDrop:c}},NH=function(t){var e=Eu(),n=X.useContext(Xd),r=up({accept:io([Bp.TREE_ITEM],e.extraAcceptTypes,!0),drop:function(d,p){var w=e.rootId,m=e.onDrop,T=n.dropTargetId,E=n.index;p.isOver({shallow:!0})&&T!==void 0&&E!==void 0&&m(Ry(d)?d:null,w,E),n.hidePlaceholder()},canDrop:function(d,p){var w=e.rootId;return p.isOver({shallow:!0})?d===void 0?!1:wu(d,w,e):!1},hover:function(d,p){if(p.isOver({shallow:!0})){var w=e.rootId,m=n.dropTargetId,T=n.index,E=n.showPlaceholder,A=n.hidePlaceholder,I=lv(null,t.current,p,e);if(I===null||!wu(d,w,e)){A();return}(I.id!==m||I.index!==T)&&E(I.id,I.index)}},collect:function(d){var p=d.getItem();return{isOver:d.isOver({shallow:!0})&&d.canDrop(),dragSource:p}}}),i=r[0],o=i.isOver,a=i.dragSource,c=r[1];return[o,a,c]},jH=function(t,e){var n=Eu(),r=X.useContext(Xd),i=up({accept:io([Bp.TREE_ITEM],n.extraAcceptTypes,!0),drop:function(p,w){var m=r.dropTargetId,T=r.index;w.isOver({shallow:!0})&&m!==void 0&&T!==void 0&&n.onDrop(Ry(p)?p:null,m,T),r.hidePlaceholder()},canDrop:function(p,w){if(w.isOver({shallow:!0})){var m=lv(t,e.current,w,n);return m===null?!1:wu(p,m.id,n)}return!1},hover:function(p,w){if(w.isOver({shallow:!0})){var m=r.dropTargetId,T=r.index,E=r.showPlaceholder,A=r.hidePlaceholder,I=lv(t,e.current,w,n);if(I===null||!wu(p,I.id,n)){A();return}(I.id!==m||I.index!==T)&&E(I.id,I.index)}},collect:function(p){var w=p.getItem();return{isOver:p.isOver({shallow:!0})&&p.canDrop(),dragSource:w}}}),o=i[0],a=o.isOver,c=o.dragSource,d=i[1];return[a,c,d]},BH=function(t,e){var n=X.useMemo(function(){return e===!0?t.filter(function(m){return Wh(t,m.id)}).map(function(m){return m.id}):Array.isArray(e)?e:[]},[e]),r=X.useState(n),i=r[0],o=r[1];X.useEffect(function(){return o(n)},[n]);var a=function(m,T){var E=i.includes(m)?i.filter(function(A){return A!==m}):io(io([],i,!0),[m],!1);o(E),T&&T(E)},c=function(m){o([]),m&&m([])},d=function(m){var T=t.filter(function(E){return Wh(t,E.id)}).map(function(E){return E.id});o(T),m&&m(T)},p=function(m,T){var E=[];if(Array.isArray(m)){var A=t.filter(function(I){return m.includes(I.id)&&Wh(t,I.id)});E=io(io([],i,!0),A.map(function(I){return I.id}),!0).filter(function(I,j,_){return _.indexOf(I)===j})}else E=i.includes(m)?i:io(io([],i,!0),[m],!1);o(E),T&&T(E)},w=function(m,T){var E=i.filter(function(A){return Array.isArray(m)?!m.includes(A):A!==m});o(E),T&&T(E)};return[i,{handleToggle:a,handleCloseAll:c,handleOpenAll:d,handleOpen:p,handleClose:w}]},$H=function(){return K3(function(t){var e=t.getItemType();return{item:t.getItem(),clientOffset:t.getClientOffset(),isDragging:t.isDragging()&&e===Bp.TREE_ITEM}})},Eu=function(){var t=X.useContext(ok);if(!t)throw new Error("useTreeContext must be used under TreeProvider");return t},VH=function(t,e){var n=Eu(),r=n.rootId,i=n.rootProps,o=n.classes,a=(o==null?void 0:o.container)||"";return e&&(o!=null&&o.dropTarget)&&(a="".concat(a," ").concat(o.dropTarget)),t===r&&(o!=null&&o.root)&&(a="".concat(a," ").concat(o.root)),t===r&&(i!=null&&i.className)&&(a="".concat(a," ").concat(i.className)),a=a.trim(),a},HH=function(t,e,n){e.current?n(e):n(t),X.useEffect(function(){e.current?n(e):n(t)},[e.current])},UH=function(t){var e=Eu(),n=X.useContext(Xd),r=X.useRef(null),i=X.useRef(null),o=e.tree.find(function(ue){return ue.id===t.id}),a=e.openIds,c=e.classes,d=e.enableAnimateExpand,p=a.includes(t.id),w=LH(o,r),m=w[0],T=w[1],E=w[2],A=jH(o,r),I=A[0],j=A[1],_=A[2];HH(r,i,T),wu(j,t.id,e)&&_(r),X.useEffect(function(){e.dragPreviewRender?E(uF(),{captureDraggingState:!0}):i.current&&E(r)},[E,e.dragPreviewRender]),MH(r);var U=function(){return e.onToggle(o.id)},G=e.listItemComponent,re=e.canDrag?e.canDrag(t.id):!0,q=n.dropTargetId===t.id,se={depth:t.depth,isOpen:p,isDragging:m,isDropTarget:q,draggable:re,hasChild:Wh(e.tree,t.id),containerRef:r,handleRef:i,onToggle:U},S="";return c!=null&&c.listItem&&(S=typeof c.listItem=="string"?c.listItem:c.listItem(o,se)),I&&(c!=null&&c.dropTarget)&&(S="".concat(S," ").concat(c.dropTarget)),m&&(c!=null&&c.draggingSource)&&(S="".concat(S," ").concat(c.draggingSource)),X.createElement(G,{ref:r,className:S,role:"listitem"},e.render(o,se),d&&se.hasChild&&X.createElement(bH,{isVisible:p},X.createElement(uv,{parentId:t.id,depth:t.depth+1})),!d&&se.hasChild&&p&&X.createElement(uv,{parentId:t.id,depth:t.depth+1}))},Zx=function(t){var e=Eu(),n=e.placeholderRender,r=e.placeholderComponent,i=e.classes,o=X.useContext(Xd),a=Ol(),c=a.getMonitor(),d=c.getItem();if(!n||!d)return null;var p=t.dropTargetId===o.dropTargetId&&(t.index===o.index||t.index===void 0&&t.listCount===o.index),w=c.getTargetIds();return!p||!w.length?null:X.createElement(r,{className:(i==null?void 0:i.placeholder)||""},n(d,{depth:t.depth}))},uv=function(t){var e=Eu(),n=X.useRef(null),r=e.tree.filter(function(I){return I.parent===t.parentId}),i=r,o=typeof e.sort=="function"?e.sort:CH;if(e.insertDroppableFirst){var a=r.filter(function(I){return I.droppable}),c=r.filter(function(I){return!I.droppable});e.sort===!1?i=io(io([],a,!0),c,!0):(a=a.sort(o),c=c.sort(o),i=io(io([],a,!0),c,!0))}else e.sort!==!1&&(i=r.sort(o));var d=NH(n),p=d[0],w=d[1],m=d[2];t.parentId===e.rootId&&wu(w,e.rootId,e)&&m(n);var T=VH(t.parentId,p),E=e.rootProps||{},A=e.listComponent;return X.createElement(A,Is({ref:n,role:"list"},E,{className:T}),i.map(function(I,j){return X.createElement(X.Fragment,{key:I.id},X.createElement(Zx,{depth:t.depth,listCount:i.length,dropTargetId:t.parentId,index:j}),X.createElement(UH,{id:I.id,depth:t.depth}))}),X.createElement(Zx,{depth:t.depth,listCount:i.length,dropTargetId:t.parentId}))},WH={height:"100%",left:0,pointerEvents:"none",position:"fixed",top:0,width:"100%",zIndex:100},zH=function(t){var e=t.clientOffset;if(!e)return{};var n=e.x,r=e.y,i="translate(".concat(n,"px, ").concat(r,"px)");return{pointerEvents:"none",transform:i}},YH=function(){var t=Eu(),e=$H(),n=e.isDragging,r=e.clientOffset;return!n||!r?null:X.createElement("div",{style:WH},X.createElement("div",{style:zH(e)},t.dragPreviewRender&&t.dragPreviewRender(e)))};function GH(t,e){return X.createElement(IH,Is({},t,{treeRef:e}),t.dragPreviewRender&&X.createElement(YH,null),X.createElement(uv,{parentId:t.rootId,depth:0}))}var qH=X.forwardRef(GH);const lk=X.createContext({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"}),$p=X.createContext({}),Ay=X.createContext(null),Vp=typeof document<"u",XH=Vp?X.useLayoutEffect:X.useEffect,uk=X.createContext({strict:!1}),Iy=t=>t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),KH="framerAppearId",ck="data-"+Iy(KH);function ZH(t,e,n,r){const{visualElement:i}=X.useContext($p),o=X.useContext(uk),a=X.useContext(Ay),c=X.useContext(lk).reducedMotion,d=X.useRef();r=r||o.renderer,!d.current&&r&&(d.current=r(t,{visualState:e,parent:i,props:n,presenceContext:a,blockInitialAnimation:a?a.initial===!1:!1,reducedMotionConfig:c}));const p=d.current;X.useInsertionEffect(()=>{p&&p.update(n,a)});const w=X.useRef(!!(n[ck]&&!window.HandoffComplete));return XH(()=>{p&&(p.render(),w.current&&p.animationState&&p.animationState.animateChanges())}),X.useEffect(()=>{p&&(p.updateFeatures(),!w.current&&p.animationState&&p.animationState.animateChanges(),w.current&&(w.current=!1,window.HandoffComplete=!0))}),p}function bf(t){return t&&typeof t=="object"&&Object.prototype.hasOwnProperty.call(t,"current")}function JH(t,e,n){return X.useCallback(r=>{r&&t.mount&&t.mount(r),e&&(r?e.mount(r):e.unmount()),n&&(typeof n=="function"?n(r):bf(n)&&(n.current=r))},[e])}function Nd(t){return typeof t=="string"||Array.isArray(t)}function Hp(t){return t!==null&&typeof t=="object"&&typeof t.start=="function"}const My=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Ly=["initial",...My];function Up(t){return Hp(t.animate)||Ly.some(e=>Nd(t[e]))}function fk(t){return!!(Up(t)||t.variants)}function QH(t,e){if(Up(t)){const{initial:n,animate:r}=t;return{initial:n===!1||Nd(n)?n:void 0,animate:Nd(r)?r:void 0}}return t.inherit!==!1?e:{}}function eU(t){const{initial:e,animate:n}=QH(t,X.useContext($p));return X.useMemo(()=>({initial:e,animate:n}),[Jx(e),Jx(n)])}function Jx(t){return Array.isArray(t)?t.join(" "):t}const Qx={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},jd={};for(const t in Qx)jd[t]={isEnabled:e=>Qx[t].some(n=>!!e[n])};function tU(t){for(const e in t)jd[e]={...jd[e],...t[e]}}const dk=X.createContext({}),hk=X.createContext({}),nU=Symbol.for("motionComponentSymbol");function rU({preloadedFeatures:t,createVisualElement:e,useRender:n,useVisualState:r,Component:i}){t&&tU(t);function o(c,d){let p;const w={...X.useContext(lk),...c,layoutId:iU(c)},{isStatic:m}=w,T=eU(c),E=r(c,m);if(!m&&Vp){T.visualElement=ZH(i,E,w,e);const A=X.useContext(hk),I=X.useContext(uk).strict;T.visualElement&&(p=T.visualElement.loadFeatures(w,I,t,A))}return kn.createElement($p.Provider,{value:T},p&&T.visualElement?kn.createElement(p,{visualElement:T.visualElement,...w}):null,n(i,c,JH(E,T.visualElement,d),E,m,T.visualElement))}const a=X.forwardRef(o);return a[nU]=i,a}function iU({layoutId:t}){const e=X.useContext(dk).id;return e&&t!==void 0?e+"-"+t:t}function oU(t){function e(r,i={}){return rU(t(r,i))}if(typeof Proxy>"u")return e;const n=new Map;return new Proxy(e,{get:(r,i)=>(n.has(i)||n.set(i,e(i)),n.get(i))})}const sU=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function Fy(t){return typeof t!="string"||t.includes("-")?!1:!!(sU.indexOf(t)>-1||/[A-Z]/.test(t))}const fp={};function aU(t){Object.assign(fp,t)}const Kd=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Rc=new Set(Kd);function pk(t,{layout:e,layoutId:n}){return Rc.has(t)||t.startsWith("origin")||(e||n!==void 0)&&(!!fp[t]||t==="opacity")}const Ro=t=>!!(t&&t.getVelocity),lU={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},uU=Kd.length;function cU(t,{enableHardwareAcceleration:e=!0,allowTransformNone:n=!0},r,i){let o="";for(let a=0;a<uU;a++){const c=Kd[a];if(t[c]!==void 0){const d=lU[c]||c;o+=`${d}(${t[c]}) `}}return e&&!t.z&&(o+="translateZ(0)"),o=o.trim(),i?o=i(t,r?"":o):n&&r&&(o="none"),o}const gk=t=>e=>typeof e=="string"&&e.startsWith(t),mk=gk("--"),cv=gk("var(--"),fU=/var\s*\(\s*--[\w-]+(\s*,\s*(?:(?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)+)?\s*\)/g,dU=(t,e)=>e&&typeof t=="number"?e.transform(t):t,xu=(t,e,n)=>Math.min(Math.max(n,t),e),Ac={test:t=>typeof t=="number",parse:parseFloat,transform:t=>t},Td={...Ac,transform:t=>xu(0,1,t)},kh={...Ac,default:1},Cd=t=>Math.round(t*1e5)/1e5,Wp=/(-)?([\d]*\.?[\d])+/g,vk=/(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi,hU=/^(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function Zd(t){return typeof t=="string"}const Jd=t=>({test:e=>Zd(e)&&e.endsWith(t)&&e.split(" ").length===1,parse:parseFloat,transform:e=>`${e}${t}`}),au=Jd("deg"),$a=Jd("%"),Rt=Jd("px"),pU=Jd("vh"),gU=Jd("vw"),eS={...$a,parse:t=>$a.parse(t)/100,transform:t=>$a.transform(t*100)},tS={...Ac,transform:Math.round},yk={borderWidth:Rt,borderTopWidth:Rt,borderRightWidth:Rt,borderBottomWidth:Rt,borderLeftWidth:Rt,borderRadius:Rt,radius:Rt,borderTopLeftRadius:Rt,borderTopRightRadius:Rt,borderBottomRightRadius:Rt,borderBottomLeftRadius:Rt,width:Rt,maxWidth:Rt,height:Rt,maxHeight:Rt,size:Rt,top:Rt,right:Rt,bottom:Rt,left:Rt,padding:Rt,paddingTop:Rt,paddingRight:Rt,paddingBottom:Rt,paddingLeft:Rt,margin:Rt,marginTop:Rt,marginRight:Rt,marginBottom:Rt,marginLeft:Rt,rotate:au,rotateX:au,rotateY:au,rotateZ:au,scale:kh,scaleX:kh,scaleY:kh,scaleZ:kh,skew:au,skewX:au,skewY:au,distance:Rt,translateX:Rt,translateY:Rt,translateZ:Rt,x:Rt,y:Rt,z:Rt,perspective:Rt,transformPerspective:Rt,opacity:Td,originX:eS,originY:eS,originZ:Rt,zIndex:tS,fillOpacity:Td,strokeOpacity:Td,numOctaves:tS};function Ny(t,e,n,r){const{style:i,vars:o,transform:a,transformOrigin:c}=t;let d=!1,p=!1,w=!0;for(const m in e){const T=e[m];if(mk(m)){o[m]=T;continue}const E=yk[m],A=dU(T,E);if(Rc.has(m)){if(d=!0,a[m]=A,!w)continue;T!==(E.default||0)&&(w=!1)}else m.startsWith("origin")?(p=!0,c[m]=A):i[m]=A}if(e.transform||(d||r?i.transform=cU(t.transform,n,w,r):i.transform&&(i.transform="none")),p){const{originX:m="50%",originY:T="50%",originZ:E=0}=c;i.transformOrigin=`${m} ${T} ${E}`}}const jy=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function bk(t,e,n){for(const r in e)!Ro(e[r])&&!pk(r,n)&&(t[r]=e[r])}function mU({transformTemplate:t},e,n){return X.useMemo(()=>{const r=jy();return Ny(r,e,{enableHardwareAcceleration:!n},t),Object.assign({},r.vars,r.style)},[e])}function vU(t,e,n){const r=t.style||{},i={};return bk(i,r,t),Object.assign(i,mU(t,e,n)),t.transformValues?t.transformValues(i):i}function yU(t,e,n){const r={},i=vU(t,e,n);return t.drag&&t.dragListener!==!1&&(r.draggable=!1,i.userSelect=i.WebkitUserSelect=i.WebkitTouchCallout="none",i.touchAction=t.drag===!0?"none":`pan-${t.drag==="x"?"y":"x"}`),t.tabIndex===void 0&&(t.onTap||t.onTapStart||t.whileTap)&&(r.tabIndex=0),r.style=i,r}const bU=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","transformValues","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function dp(t){return t.startsWith("while")||t.startsWith("drag")&&t!=="draggable"||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||t.startsWith("onLayout")||bU.has(t)}let wk=t=>!dp(t);function wU(t){t&&(wk=e=>e.startsWith("on")?!dp(e):t(e))}try{wU(require("@emotion/is-prop-valid").default)}catch{}function xU(t,e,n){const r={};for(const i in t)i==="values"&&typeof t.values=="object"||(wk(i)||n===!0&&dp(i)||!e&&!dp(i)||t.draggable&&i.startsWith("onDrag"))&&(r[i]=t[i]);return r}function nS(t,e,n){return typeof t=="string"?t:Rt.transform(e+n*t)}function SU(t,e,n){const r=nS(e,t.x,t.width),i=nS(n,t.y,t.height);return`${r} ${i}`}const TU={offset:"stroke-dashoffset",array:"stroke-dasharray"},CU={offset:"strokeDashoffset",array:"strokeDasharray"};function EU(t,e,n=1,r=0,i=!0){t.pathLength=1;const o=i?TU:CU;t[o.offset]=Rt.transform(-r);const a=Rt.transform(e),c=Rt.transform(n);t[o.array]=`${a} ${c}`}function By(t,{attrX:e,attrY:n,attrScale:r,originX:i,originY:o,pathLength:a,pathSpacing:c=1,pathOffset:d=0,...p},w,m,T){if(Ny(t,p,w,T),m){t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox);return}t.attrs=t.style,t.style={};const{attrs:E,style:A,dimensions:I}=t;E.transform&&(I&&(A.transform=E.transform),delete E.transform),I&&(i!==void 0||o!==void 0||A.transform)&&(A.transformOrigin=SU(I,i!==void 0?i:.5,o!==void 0?o:.5)),e!==void 0&&(E.x=e),n!==void 0&&(E.y=n),r!==void 0&&(E.scale=r),a!==void 0&&EU(E,a,c,d,!1)}const xk=()=>({...jy(),attrs:{}}),$y=t=>typeof t=="string"&&t.toLowerCase()==="svg";function kU(t,e,n,r){const i=X.useMemo(()=>{const o=xk();return By(o,e,{enableHardwareAcceleration:!1},$y(r),t.transformTemplate),{...o.attrs,style:{...o.style}}},[e]);if(t.style){const o={};bk(o,t.style,t),i.style={...o,...i.style}}return i}function DU(t=!1){return(n,r,i,{latestValues:o},a)=>{const d=(Fy(n)?kU:yU)(r,o,a,n),w={...xU(r,typeof n=="string",t),...d,ref:i},{children:m}=r,T=X.useMemo(()=>Ro(m)?m.get():m,[m]);return X.createElement(n,{...w,children:T})}}function Sk(t,{style:e,vars:n},r,i){Object.assign(t.style,e,i&&i.getProjectionStyles(r));for(const o in n)t.style.setProperty(o,n[o])}const Tk=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function Ck(t,e,n,r){Sk(t,e,void 0,r);for(const i in e.attrs)t.setAttribute(Tk.has(i)?i:Iy(i),e.attrs[i])}function Vy(t,e){const{style:n}=t,r={};for(const i in n)(Ro(n[i])||e.style&&Ro(e.style[i])||pk(i,t))&&(r[i]=n[i]);return r}function Ek(t,e){const n=Vy(t,e);for(const r in t)if(Ro(t[r])||Ro(e[r])){const i=Kd.indexOf(r)!==-1?"attr"+r.charAt(0).toUpperCase()+r.substring(1):r;n[i]=t[r]}return n}function Hy(t,e,n,r={},i={}){return typeof e=="function"&&(e=e(n!==void 0?n:t.custom,r,i)),typeof e=="string"&&(e=t.variants&&t.variants[e]),typeof e=="function"&&(e=e(n!==void 0?n:t.custom,r,i)),e}function PU(t){const e=X.useRef(null);return e.current===null&&(e.current=t()),e.current}const hp=t=>Array.isArray(t),OU=t=>!!(t&&typeof t=="object"&&t.mix&&t.toValue),_U=t=>hp(t)?t[t.length-1]||0:t;function zh(t){const e=Ro(t)?t.get():t;return OU(e)?e.toValue():e}function RU({scrapeMotionValuesFromProps:t,createRenderState:e,onMount:n},r,i,o){const a={latestValues:AU(r,i,o,t),renderState:e()};return n&&(a.mount=c=>n(r,c,a)),a}const kk=t=>(e,n)=>{const r=X.useContext($p),i=X.useContext(Ay),o=()=>RU(t,e,r,i);return n?o():PU(o)};function AU(t,e,n,r){const i={},o=r(t,{});for(const T in o)i[T]=zh(o[T]);let{initial:a,animate:c}=t;const d=Up(t),p=fk(t);e&&p&&!d&&t.inherit!==!1&&(a===void 0&&(a=e.initial),c===void 0&&(c=e.animate));let w=n?n.initial===!1:!1;w=w||a===!1;const m=w?c:a;return m&&typeof m!="boolean"&&!Hp(m)&&(Array.isArray(m)?m:[m]).forEach(E=>{const A=Hy(t,E);if(!A)return;const{transitionEnd:I,transition:j,..._}=A;for(const U in _){let G=_[U];if(Array.isArray(G)){const re=w?G.length-1:0;G=G[re]}G!==null&&(i[U]=G)}for(const U in I)i[U]=I[U]}),i}const sr=t=>t;class rS{constructor(){this.order=[],this.scheduled=new Set}add(e){if(!this.scheduled.has(e))return this.scheduled.add(e),this.order.push(e),!0}remove(e){const n=this.order.indexOf(e);n!==-1&&(this.order.splice(n,1),this.scheduled.delete(e))}clear(){this.order.length=0,this.scheduled.clear()}}function IU(t){let e=new rS,n=new rS,r=0,i=!1,o=!1;const a=new WeakSet,c={schedule:(d,p=!1,w=!1)=>{const m=w&&i,T=m?e:n;return p&&a.add(d),T.add(d)&&m&&i&&(r=e.order.length),d},cancel:d=>{n.remove(d),a.delete(d)},process:d=>{if(i){o=!0;return}if(i=!0,[e,n]=[n,e],n.clear(),r=e.order.length,r)for(let p=0;p<r;p++){const w=e.order[p];w(d),a.has(w)&&(c.schedule(w),t())}i=!1,o&&(o=!1,c.process(d))}};return c}const Dh=["prepare","read","update","preRender","render","postRender"],MU=40;function LU(t,e){let n=!1,r=!0;const i={delta:0,timestamp:0,isProcessing:!1},o=Dh.reduce((m,T)=>(m[T]=IU(()=>n=!0),m),{}),a=m=>o[m].process(i),c=()=>{const m=performance.now();n=!1,i.delta=r?1e3/60:Math.max(Math.min(m-i.timestamp,MU),1),i.timestamp=m,i.isProcessing=!0,Dh.forEach(a),i.isProcessing=!1,n&&e&&(r=!1,t(c))},d=()=>{n=!0,r=!0,i.isProcessing||t(c)};return{schedule:Dh.reduce((m,T)=>{const E=o[T];return m[T]=(A,I=!1,j=!1)=>(n||d(),E.schedule(A,I,j)),m},{}),cancel:m=>Dh.forEach(T=>o[T].cancel(m)),state:i,steps:o}}const{schedule:Ln,cancel:Dl,state:Fi,steps:Zg}=LU(typeof requestAnimationFrame<"u"?requestAnimationFrame:sr,!0),FU={useVisualState:kk({scrapeMotionValuesFromProps:Ek,createRenderState:xk,onMount:(t,e,{renderState:n,latestValues:r})=>{Ln.read(()=>{try{n.dimensions=typeof e.getBBox=="function"?e.getBBox():e.getBoundingClientRect()}catch{n.dimensions={x:0,y:0,width:0,height:0}}}),Ln.render(()=>{By(n,r,{enableHardwareAcceleration:!1},$y(e.tagName),t.transformTemplate),Ck(e,n)})}})},NU={useVisualState:kk({scrapeMotionValuesFromProps:Vy,createRenderState:jy})};function jU(t,{forwardMotionProps:e=!1},n,r){return{...Fy(t)?FU:NU,preloadedFeatures:n,useRender:DU(e),createVisualElement:r,Component:t}}function wl(t,e,n,r={passive:!0}){return t.addEventListener(e,n,r),()=>t.removeEventListener(e,n)}const Dk=t=>t.pointerType==="mouse"?typeof t.button!="number"||t.button<=0:t.isPrimary!==!1;function zp(t,e="page"){return{point:{x:t[e+"X"],y:t[e+"Y"]}}}const BU=t=>e=>Dk(e)&&t(e,zp(e));function Tl(t,e,n,r){return wl(t,e,BU(n),r)}const $U=(t,e)=>n=>e(t(n)),fu=(...t)=>t.reduce($U);function Pk(t){let e=null;return()=>{const n=()=>{e=null};return e===null?(e=t,n):!1}}const iS=Pk("dragHorizontal"),oS=Pk("dragVertical");function Ok(t){let e=!1;if(t==="y")e=oS();else if(t==="x")e=iS();else{const n=iS(),r=oS();n&&r?e=()=>{n(),r()}:(n&&n(),r&&r())}return e}function _k(){const t=Ok(!0);return t?(t(),!1):!0}class ku{constructor(e){this.isMounted=!1,this.node=e}update(){}}function sS(t,e){const n="pointer"+(e?"enter":"leave"),r="onHover"+(e?"Start":"End"),i=(o,a)=>{if(o.pointerType==="touch"||_k())return;const c=t.getProps();t.animationState&&c.whileHover&&t.animationState.setActive("whileHover",e),c[r]&&Ln.update(()=>c[r](o,a))};return Tl(t.current,n,i,{passive:!t.getProps()[r]})}class VU extends ku{mount(){this.unmount=fu(sS(this.node,!0),sS(this.node,!1))}unmount(){}}class HU extends ku{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(":focus-visible")}catch{e=!0}!e||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=fu(wl(this.node.current,"focus",()=>this.onFocus()),wl(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}const Rk=(t,e)=>e?t===e?!0:Rk(t,e.parentElement):!1;function Jg(t,e){if(!e)return;const n=new PointerEvent("pointer"+t);e(n,zp(n))}class UU extends ku{constructor(){super(...arguments),this.removeStartListeners=sr,this.removeEndListeners=sr,this.removeAccessibleListeners=sr,this.startPointerPress=(e,n)=>{if(this.isPressing)return;this.removeEndListeners();const r=this.node.getProps(),o=Tl(window,"pointerup",(c,d)=>{if(!this.checkPressEnd())return;const{onTap:p,onTapCancel:w,globalTapTarget:m}=this.node.getProps();Ln.update(()=>{!m&&!Rk(this.node.current,c.target)?w&&w(c,d):p&&p(c,d)})},{passive:!(r.onTap||r.onPointerUp)}),a=Tl(window,"pointercancel",(c,d)=>this.cancelPress(c,d),{passive:!(r.onTapCancel||r.onPointerCancel)});this.removeEndListeners=fu(o,a),this.startPress(e,n)},this.startAccessiblePress=()=>{const e=o=>{if(o.key!=="Enter"||this.isPressing)return;const a=c=>{c.key!=="Enter"||!this.checkPressEnd()||Jg("up",(d,p)=>{const{onTap:w}=this.node.getProps();w&&Ln.update(()=>w(d,p))})};this.removeEndListeners(),this.removeEndListeners=wl(this.node.current,"keyup",a),Jg("down",(c,d)=>{this.startPress(c,d)})},n=wl(this.node.current,"keydown",e),r=()=>{this.isPressing&&Jg("cancel",(o,a)=>this.cancelPress(o,a))},i=wl(this.node.current,"blur",r);this.removeAccessibleListeners=fu(n,i)}}startPress(e,n){this.isPressing=!0;const{onTapStart:r,whileTap:i}=this.node.getProps();i&&this.node.animationState&&this.node.animationState.setActive("whileTap",!0),r&&Ln.update(()=>r(e,n))}checkPressEnd(){return this.removeEndListeners(),this.isPressing=!1,this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!_k()}cancelPress(e,n){if(!this.checkPressEnd())return;const{onTapCancel:r}=this.node.getProps();r&&Ln.update(()=>r(e,n))}mount(){const e=this.node.getProps(),n=Tl(e.globalTapTarget?window:this.node.current,"pointerdown",this.startPointerPress,{passive:!(e.onTapStart||e.onPointerStart)}),r=wl(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=fu(n,r)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}const fv=new WeakMap,Qg=new WeakMap,WU=t=>{const e=fv.get(t.target);e&&e(t)},zU=t=>{t.forEach(WU)};function YU({root:t,...e}){const n=t||document;Qg.has(n)||Qg.set(n,{});const r=Qg.get(n),i=JSON.stringify(e);return r[i]||(r[i]=new IntersectionObserver(zU,{root:t,...e})),r[i]}function GU(t,e,n){const r=YU(e);return fv.set(t,n),r.observe(t),()=>{fv.delete(t),r.unobserve(t)}}const qU={some:0,all:1};class XU extends ku{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:e={}}=this.node.getProps(),{root:n,margin:r,amount:i="some",once:o}=e,a={root:n?n.current:void 0,rootMargin:r,threshold:typeof i=="number"?i:qU[i]},c=d=>{const{isIntersecting:p}=d;if(this.isInView===p||(this.isInView=p,o&&!p&&this.hasEnteredView))return;p&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",p);const{onViewportEnter:w,onViewportLeave:m}=this.node.getProps(),T=p?w:m;T&&T(d)};return GU(this.node.current,a,c)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:e,prevProps:n}=this.node;["amount","margin","root"].some(KU(e,n))&&this.startObserver()}unmount(){}}function KU({viewport:t={}},{viewport:e={}}={}){return n=>t[n]!==e[n]}const ZU={inView:{Feature:XU},tap:{Feature:UU},focus:{Feature:HU},hover:{Feature:VU}};function Ak(t,e){if(!Array.isArray(e))return!1;const n=e.length;if(n!==t.length)return!1;for(let r=0;r<n;r++)if(e[r]!==t[r])return!1;return!0}function JU(t){const e={};return t.values.forEach((n,r)=>e[r]=n.get()),e}function QU(t){const e={};return t.values.forEach((n,r)=>e[r]=n.getVelocity()),e}function Yp(t,e,n){const r=t.getProps();return Hy(r,e,n!==void 0?n:r.custom,JU(t),QU(t))}let Qd=sr,aa=sr;process.env.NODE_ENV!=="production"&&(Qd=(t,e)=>{!t&&typeof console<"u"&&console.warn(e)},aa=(t,e)=>{if(!t)throw new Error(e)});const du=t=>t*1e3,Cl=t=>t/1e3,eW={current:!1},Ik=t=>Array.isArray(t)&&typeof t[0]=="number";function Mk(t){return!!(!t||typeof t=="string"&&Lk[t]||Ik(t)||Array.isArray(t)&&t.every(Mk))}const pd=([t,e,n,r])=>`cubic-bezier(${t}, ${e}, ${n}, ${r})`,Lk={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:pd([0,.65,.55,1]),circOut:pd([.55,0,1,.45]),backIn:pd([.31,.01,.66,-.59]),backOut:pd([.33,1.53,.69,.99])};function Fk(t){if(t)return Ik(t)?pd(t):Array.isArray(t)?t.map(Fk):Lk[t]}function tW(t,e,n,{delay:r=0,duration:i,repeat:o=0,repeatType:a="loop",ease:c,times:d}={}){const p={[e]:n};d&&(p.offset=d);const w=Fk(c);return Array.isArray(w)&&(p.easing=w),t.animate(p,{delay:r,duration:i,easing:Array.isArray(w)?"linear":w,fill:"both",iterations:o+1,direction:a==="reverse"?"alternate":"normal"})}function nW(t,{repeat:e,repeatType:n="loop"}){const r=e&&n!=="loop"&&e%2===1?0:t.length-1;return t[r]}const Nk=(t,e,n)=>(((1-3*n+3*e)*t+(3*n-6*e))*t+3*e)*t,rW=1e-7,iW=12;function oW(t,e,n,r,i){let o,a,c=0;do a=e+(n-e)/2,o=Nk(a,r,i)-t,o>0?n=a:e=a;while(Math.abs(o)>rW&&++c<iW);return a}function eh(t,e,n,r){if(t===e&&n===r)return sr;const i=o=>oW(o,0,1,t,n);return o=>o===0||o===1?o:Nk(i(o),e,r)}const sW=eh(.42,0,1,1),aW=eh(0,0,.58,1),jk=eh(.42,0,.58,1),lW=t=>Array.isArray(t)&&typeof t[0]!="number",Bk=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,$k=t=>e=>1-t(1-e),Uy=t=>1-Math.sin(Math.acos(t)),Vk=$k(Uy),uW=Bk(Uy),Hk=eh(.33,1.53,.69,.99),Wy=$k(Hk),cW=Bk(Wy),fW=t=>(t*=2)<1?.5*Wy(t):.5*(2-Math.pow(2,-10*(t-1))),aS={linear:sr,easeIn:sW,easeInOut:jk,easeOut:aW,circIn:Uy,circInOut:uW,circOut:Vk,backIn:Wy,backInOut:cW,backOut:Hk,anticipate:fW},lS=t=>{if(Array.isArray(t)){aa(t.length===4,"Cubic bezier arrays must contain four numerical values.");const[e,n,r,i]=t;return eh(e,n,r,i)}else if(typeof t=="string")return aa(aS[t]!==void 0,`Invalid easing type '${t}'`),aS[t];return t},zy=(t,e)=>n=>!!(Zd(n)&&hU.test(n)&&n.startsWith(t)||e&&Object.prototype.hasOwnProperty.call(n,e)),Uk=(t,e,n)=>r=>{if(!Zd(r))return r;const[i,o,a,c]=r.match(Wp);return{[t]:parseFloat(i),[e]:parseFloat(o),[n]:parseFloat(a),alpha:c!==void 0?parseFloat(c):1}},dW=t=>xu(0,255,t),em={...Ac,transform:t=>Math.round(dW(t))},vc={test:zy("rgb","red"),parse:Uk("red","green","blue"),transform:({red:t,green:e,blue:n,alpha:r=1})=>"rgba("+em.transform(t)+", "+em.transform(e)+", "+em.transform(n)+", "+Cd(Td.transform(r))+")"};function hW(t){let e="",n="",r="",i="";return t.length>5?(e=t.substring(1,3),n=t.substring(3,5),r=t.substring(5,7),i=t.substring(7,9)):(e=t.substring(1,2),n=t.substring(2,3),r=t.substring(3,4),i=t.substring(4,5),e+=e,n+=n,r+=r,i+=i),{red:parseInt(e,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}}const dv={test:zy("#"),parse:hW,transform:vc.transform},wf={test:zy("hsl","hue"),parse:Uk("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:n,alpha:r=1})=>"hsla("+Math.round(t)+", "+$a.transform(Cd(e))+", "+$a.transform(Cd(n))+", "+Cd(Td.transform(r))+")"},ro={test:t=>vc.test(t)||dv.test(t)||wf.test(t),parse:t=>vc.test(t)?vc.parse(t):wf.test(t)?wf.parse(t):dv.parse(t),transform:t=>Zd(t)?t:t.hasOwnProperty("red")?vc.transform(t):wf.transform(t)},Zn=(t,e,n)=>-n*t+n*e+t;function tm(t,e,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?t+(e-t)*6*n:n<1/2?e:n<2/3?t+(e-t)*(2/3-n)*6:t}function pW({hue:t,saturation:e,lightness:n,alpha:r}){t/=360,e/=100,n/=100;let i=0,o=0,a=0;if(!e)i=o=a=n;else{const c=n<.5?n*(1+e):n+e-n*e,d=2*n-c;i=tm(d,c,t+1/3),o=tm(d,c,t),a=tm(d,c,t-1/3)}return{red:Math.round(i*255),green:Math.round(o*255),blue:Math.round(a*255),alpha:r}}const nm=(t,e,n)=>{const r=t*t;return Math.sqrt(Math.max(0,n*(e*e-r)+r))},gW=[dv,vc,wf],mW=t=>gW.find(e=>e.test(t));function uS(t){const e=mW(t);aa(!!e,`'${t}' is not an animatable color. Use the equivalent color code instead.`);let n=e.parse(t);return e===wf&&(n=pW(n)),n}const Wk=(t,e)=>{const n=uS(t),r=uS(e),i={...n};return o=>(i.red=nm(n.red,r.red,o),i.green=nm(n.green,r.green,o),i.blue=nm(n.blue,r.blue,o),i.alpha=Zn(n.alpha,r.alpha,o),vc.transform(i))};function vW(t){var e,n;return isNaN(t)&&Zd(t)&&(((e=t.match(Wp))===null||e===void 0?void 0:e.length)||0)+(((n=t.match(vk))===null||n===void 0?void 0:n.length)||0)>0}const zk={regex:fU,countKey:"Vars",token:"${v}",parse:sr},Yk={regex:vk,countKey:"Colors",token:"${c}",parse:ro.parse},Gk={regex:Wp,countKey:"Numbers",token:"${n}",parse:Ac.parse};function rm(t,{regex:e,countKey:n,token:r,parse:i}){const o=t.tokenised.match(e);o&&(t["num"+n]=o.length,t.tokenised=t.tokenised.replace(e,r),t.values.push(...o.map(i)))}function pp(t){const e=t.toString(),n={value:e,tokenised:e,values:[],numVars:0,numColors:0,numNumbers:0};return n.value.includes("var(--")&&rm(n,zk),rm(n,Yk),rm(n,Gk),n}function qk(t){return pp(t).values}function Xk(t){const{values:e,numColors:n,numVars:r,tokenised:i}=pp(t),o=e.length;return a=>{let c=i;for(let d=0;d<o;d++)d<r?c=c.replace(zk.token,a[d]):d<r+n?c=c.replace(Yk.token,ro.transform(a[d])):c=c.replace(Gk.token,Cd(a[d]));return c}}const yW=t=>typeof t=="number"?0:t;function bW(t){const e=qk(t);return Xk(t)(e.map(yW))}const Su={test:vW,parse:qk,createTransformer:Xk,getAnimatableNone:bW},Kk=(t,e)=>n=>`${n>0?e:t}`;function Zk(t,e){return typeof t=="number"?n=>Zn(t,e,n):ro.test(t)?Wk(t,e):t.startsWith("var(")?Kk(t,e):Qk(t,e)}const Jk=(t,e)=>{const n=[...t],r=n.length,i=t.map((o,a)=>Zk(o,e[a]));return o=>{for(let a=0;a<r;a++)n[a]=i[a](o);return n}},wW=(t,e)=>{const n={...t,...e},r={};for(const i in n)t[i]!==void 0&&e[i]!==void 0&&(r[i]=Zk(t[i],e[i]));return i=>{for(const o in r)n[o]=r[o](i);return n}},Qk=(t,e)=>{const n=Su.createTransformer(e),r=pp(t),i=pp(e);return r.numVars===i.numVars&&r.numColors===i.numColors&&r.numNumbers>=i.numNumbers?fu(Jk(r.values,i.values),n):(Qd(!0,`Complex values '${t}' and '${e}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`),Kk(t,e))},Bd=(t,e,n)=>{const r=e-t;return r===0?1:(n-t)/r},cS=(t,e)=>n=>Zn(t,e,n);function xW(t){return typeof t=="number"?cS:typeof t=="string"?ro.test(t)?Wk:Qk:Array.isArray(t)?Jk:typeof t=="object"?wW:cS}function SW(t,e,n){const r=[],i=n||xW(t[0]),o=t.length-1;for(let a=0;a<o;a++){let c=i(t[a],t[a+1]);if(e){const d=Array.isArray(e)?e[a]||sr:e;c=fu(d,c)}r.push(c)}return r}function eD(t,e,{clamp:n=!0,ease:r,mixer:i}={}){const o=t.length;if(aa(o===e.length,"Both input and output ranges must be the same length"),o===1)return()=>e[0];t[0]>t[o-1]&&(t=[...t].reverse(),e=[...e].reverse());const a=SW(e,r,i),c=a.length,d=p=>{let w=0;if(c>1)for(;w<t.length-2&&!(p<t[w+1]);w++);const m=Bd(t[w],t[w+1],p);return a[w](m)};return n?p=>d(xu(t[0],t[o-1],p)):d}function TW(t,e){const n=t[t.length-1];for(let r=1;r<=e;r++){const i=Bd(0,e,r);t.push(Zn(n,1,i))}}function CW(t){const e=[0];return TW(e,t.length-1),e}function EW(t,e){return t.map(n=>n*e)}function kW(t,e){return t.map(()=>e||jk).splice(0,t.length-1)}function gp({duration:t=300,keyframes:e,times:n,ease:r="easeInOut"}){const i=lW(r)?r.map(lS):lS(r),o={done:!1,value:e[0]},a=EW(n&&n.length===e.length?n:CW(e),t),c=eD(a,e,{ease:Array.isArray(i)?i:kW(e,i)});return{calculatedDuration:t,next:d=>(o.value=c(d),o.done=d>=t,o)}}function tD(t,e){return e?t*(1e3/e):0}const DW=5;function nD(t,e,n){const r=Math.max(e-DW,0);return tD(n-t(r),e-r)}const fS=.001,PW=.01,dS=10,OW=.05,_W=1;function RW({duration:t=800,bounce:e=.25,velocity:n=0,mass:r=1}){let i,o;Qd(t<=du(dS),"Spring duration must be 10 seconds or less");let a=1-e;a=xu(OW,_W,a),t=xu(PW,dS,Cl(t)),a<1?(i=p=>{const w=p*a,m=w*t,T=w-n,E=hv(p,a),A=Math.exp(-m);return fS-T/E*A},o=p=>{const m=p*a*t,T=m*n+n,E=Math.pow(a,2)*Math.pow(p,2)*t,A=Math.exp(-m),I=hv(Math.pow(p,2),a);return(-i(p)+fS>0?-1:1)*((T-E)*A)/I}):(i=p=>{const w=Math.exp(-p*t),m=(p-n)*t+1;return-.001+w*m},o=p=>{const w=Math.exp(-p*t),m=(n-p)*(t*t);return w*m});const c=5/t,d=IW(i,o,c);if(t=du(t),isNaN(d))return{stiffness:100,damping:10,duration:t};{const p=Math.pow(d,2)*r;return{stiffness:p,damping:a*2*Math.sqrt(r*p),duration:t}}}const AW=12;function IW(t,e,n){let r=n;for(let i=1;i<AW;i++)r=r-t(r)/e(r);return r}function hv(t,e){return t*Math.sqrt(1-e*e)}const MW=["duration","bounce"],LW=["stiffness","damping","mass"];function hS(t,e){return e.some(n=>t[n]!==void 0)}function FW(t){let e={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...t};if(!hS(t,LW)&&hS(t,MW)){const n=RW(t);e={...e,...n,mass:1},e.isResolvedFromDuration=!0}return e}function rD({keyframes:t,restDelta:e,restSpeed:n,...r}){const i=t[0],o=t[t.length-1],a={done:!1,value:i},{stiffness:c,damping:d,mass:p,duration:w,velocity:m,isResolvedFromDuration:T}=FW({...r,velocity:-Cl(r.velocity||0)}),E=m||0,A=d/(2*Math.sqrt(c*p)),I=o-i,j=Cl(Math.sqrt(c/p)),_=Math.abs(I)<5;n||(n=_?.01:2),e||(e=_?.005:.5);let U;if(A<1){const G=hv(j,A);U=re=>{const q=Math.exp(-A*j*re);return o-q*((E+A*j*I)/G*Math.sin(G*re)+I*Math.cos(G*re))}}else if(A===1)U=G=>o-Math.exp(-j*G)*(I+(E+j*I)*G);else{const G=j*Math.sqrt(A*A-1);U=re=>{const q=Math.exp(-A*j*re),se=Math.min(G*re,300);return o-q*((E+A*j*I)*Math.sinh(se)+G*I*Math.cosh(se))/G}}return{calculatedDuration:T&&w||null,next:G=>{const re=U(G);if(T)a.done=G>=w;else{let q=E;G!==0&&(A<1?q=nD(U,G,re):q=0);const se=Math.abs(q)<=n,S=Math.abs(o-re)<=e;a.done=se&&S}return a.value=a.done?o:re,a}}}function pS({keyframes:t,velocity:e=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:o=500,modifyTarget:a,min:c,max:d,restDelta:p=.5,restSpeed:w}){const m=t[0],T={done:!1,value:m},E=ue=>c!==void 0&&ue<c||d!==void 0&&ue>d,A=ue=>c===void 0?d:d===void 0||Math.abs(c-ue)<Math.abs(d-ue)?c:d;let I=n*e;const j=m+I,_=a===void 0?j:a(j);_!==j&&(I=_-m);const U=ue=>-I*Math.exp(-ue/r),G=ue=>_+U(ue),re=ue=>{const ae=U(ue),Ue=G(ue);T.done=Math.abs(ae)<=p,T.value=T.done?_:Ue};let q,se;const S=ue=>{E(T.value)&&(q=ue,se=rD({keyframes:[T.value,A(T.value)],velocity:nD(G,ue,T.value),damping:i,stiffness:o,restDelta:p,restSpeed:w}))};return S(0),{calculatedDuration:null,next:ue=>{let ae=!1;return!se&&q===void 0&&(ae=!0,re(ue),S(ue)),q!==void 0&&ue>q?se.next(ue-q):(!ae&&re(ue),T)}}}const NW=t=>{const e=({timestamp:n})=>t(n);return{start:()=>Ln.update(e,!0),stop:()=>Dl(e),now:()=>Fi.isProcessing?Fi.timestamp:performance.now()}},gS=2e4;function mS(t){let e=0;const n=50;let r=t.next(e);for(;!r.done&&e<gS;)e+=n,r=t.next(e);return e>=gS?1/0:e}const jW={decay:pS,inertia:pS,tween:gp,keyframes:gp,spring:rD};function mp({autoplay:t=!0,delay:e=0,driver:n=NW,keyframes:r,type:i="keyframes",repeat:o=0,repeatDelay:a=0,repeatType:c="loop",onPlay:d,onStop:p,onComplete:w,onUpdate:m,...T}){let E=1,A=!1,I,j;const _=()=>{j=new Promise(Se=>{I=Se})};_();let U;const G=jW[i]||gp;let re;G!==gp&&typeof r[0]!="number"&&(process.env.NODE_ENV!=="production"&&aa(r.length===2,`Only two keyframes currently supported with spring and inertia animations. Trying to animate ${r}`),re=eD([0,100],r,{clamp:!1}),r=[0,100]);const q=G({...T,keyframes:r});let se;c==="mirror"&&(se=G({...T,keyframes:[...r].reverse(),velocity:-(T.velocity||0)}));let S="idle",ue=null,ae=null,Ue=null;q.calculatedDuration===null&&o&&(q.calculatedDuration=mS(q));const{calculatedDuration:nt}=q;let et=1/0,De=1/0;nt!==null&&(et=nt+a,De=et*(o+1)-a);let Me=0;const fe=Se=>{if(ae===null)return;E>0&&(ae=Math.min(ae,Se)),E<0&&(ae=Math.min(Se-De/E,ae)),ue!==null?Me=ue:Me=Math.round(Se-ae)*E;const je=Me-e*(E>=0?1:-1),Qe=E>=0?je<0:je>De;Me=Math.max(je,0),S==="finished"&&ue===null&&(Me=De);let Ye=Me,Ke=q;if(o){const pt=Math.min(Me,De)/et;let ft=Math.floor(pt),yt=pt%1;!yt&&pt>=1&&(yt=1),yt===1&&ft--,ft=Math.min(ft,o+1),!!(ft%2)&&(c==="reverse"?(yt=1-yt,a&&(yt-=a/et)):c==="mirror"&&(Ke=se)),Ye=xu(0,1,yt)*et}const qe=Qe?{done:!1,value:r[0]}:Ke.next(Ye);re&&(qe.value=re(qe.value));let{done:ot}=qe;!Qe&&nt!==null&&(ot=E>=0?Me>=De:Me<=0);const ct=ue===null&&(S==="finished"||S==="running"&&ot);return m&&m(qe.value),ct&&Be(),qe},me=()=>{U&&U.stop(),U=void 0},Pe=()=>{S="idle",me(),I(),_(),ae=Ue=null},Be=()=>{S="finished",w&&w(),me(),I()},Ze=()=>{if(A)return;U||(U=n(fe));const Se=U.now();d&&d(),ue!==null?ae=Se-ue:(!ae||S==="finished")&&(ae=Se),S==="finished"&&_(),Ue=ae,ue=null,S="running",U.start()};t&&Ze();const ve={then(Se,je){return j.then(Se,je)},get time(){return Cl(Me)},set time(Se){Se=du(Se),Me=Se,ue!==null||!U||E===0?ue=Se:ae=U.now()-Se/E},get duration(){const Se=q.calculatedDuration===null?mS(q):q.calculatedDuration;return Cl(Se)},get speed(){return E},set speed(Se){Se===E||!U||(E=Se,ve.time=Cl(Me))},get state(){return S},play:Ze,pause:()=>{S="paused",ue=Me},stop:()=>{A=!0,S!=="idle"&&(S="idle",p&&p(),Pe())},cancel:()=>{Ue!==null&&fe(Ue),Pe()},complete:()=>{S="finished"},sample:Se=>(ae=0,fe(Se))};return ve}function BW(t){let e;return()=>(e===void 0&&(e=t()),e)}const $W=BW(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),VW=new Set(["opacity","clipPath","filter","transform","backgroundColor"]),Ph=10,HW=2e4,UW=(t,e)=>e.type==="spring"||t==="backgroundColor"||!Mk(e.ease);function WW(t,e,{onUpdate:n,onComplete:r,...i}){if(!($W()&&VW.has(e)&&!i.repeatDelay&&i.repeatType!=="mirror"&&i.damping!==0&&i.type!=="inertia"))return!1;let a=!1,c,d,p=!1;const w=()=>{d=new Promise(G=>{c=G})};w();let{keyframes:m,duration:T=300,ease:E,times:A}=i;if(UW(e,i)){const G=mp({...i,repeat:0,delay:0});let re={done:!1,value:m[0]};const q=[];let se=0;for(;!re.done&&se<HW;)re=G.sample(se),q.push(re.value),se+=Ph;A=void 0,m=q,T=se-Ph,E="linear"}const I=tW(t.owner.current,e,m,{...i,duration:T,ease:E,times:A}),j=()=>{p=!1,I.cancel()},_=()=>{p=!0,Ln.update(j),c(),w()};return I.onfinish=()=>{p||(t.set(nW(m,i)),r&&r(),_())},{then(G,re){return d.then(G,re)},attachTimeline(G){return I.timeline=G,I.onfinish=null,sr},get time(){return Cl(I.currentTime||0)},set time(G){I.currentTime=du(G)},get speed(){return I.playbackRate},set speed(G){I.playbackRate=G},get duration(){return Cl(T)},play:()=>{a||(I.play(),Dl(j))},pause:()=>I.pause(),stop:()=>{if(a=!0,I.playState==="idle")return;const{currentTime:G}=I;if(G){const re=mp({...i,autoplay:!1});t.setWithVelocity(re.sample(G-Ph).value,re.sample(G).value,Ph)}_()},complete:()=>{p||I.finish()},cancel:_}}function zW({keyframes:t,delay:e,onUpdate:n,onComplete:r}){const i=()=>(n&&n(t[t.length-1]),r&&r(),{time:0,speed:1,duration:0,play:sr,pause:sr,stop:sr,then:o=>(o(),Promise.resolve()),cancel:sr,complete:sr});return e?mp({keyframes:[0,1],duration:0,delay:e,onComplete:i}):i()}const YW={type:"spring",stiffness:500,damping:25,restSpeed:10},GW=t=>({type:"spring",stiffness:550,damping:t===0?2*Math.sqrt(550):30,restSpeed:10}),qW={type:"keyframes",duration:.8},XW={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},KW=(t,{keyframes:e})=>e.length>2?qW:Rc.has(t)?t.startsWith("scale")?GW(e[1]):YW:XW,pv=(t,e)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(Su.test(e)||e==="0")&&!e.startsWith("url(")),ZW=new Set(["brightness","contrast","saturate","opacity"]);function JW(t){const[e,n]=t.slice(0,-1).split("(");if(e==="drop-shadow")return t;const[r]=n.match(Wp)||[];if(!r)return t;const i=n.replace(r,"");let o=ZW.has(e)?1:0;return r!==n&&(o*=100),e+"("+o+i+")"}const QW=/([a-z-]*)\(.*?\)/g,gv={...Su,getAnimatableNone:t=>{const e=t.match(QW);return e?e.map(JW).join(" "):t}},ez={...yk,color:ro,backgroundColor:ro,outlineColor:ro,fill:ro,stroke:ro,borderColor:ro,borderTopColor:ro,borderRightColor:ro,borderBottomColor:ro,borderLeftColor:ro,filter:gv,WebkitFilter:gv},Yy=t=>ez[t];function iD(t,e){let n=Yy(t);return n!==gv&&(n=Su),n.getAnimatableNone?n.getAnimatableNone(e):void 0}const oD=t=>/^0[^.\s]+$/.test(t);function tz(t){if(typeof t=="number")return t===0;if(t!==null)return t==="none"||t==="0"||oD(t)}function nz(t,e,n,r){const i=pv(e,n);let o;Array.isArray(n)?o=[...n]:o=[null,n];const a=r.from!==void 0?r.from:t.get();let c;const d=[];for(let p=0;p<o.length;p++)o[p]===null&&(o[p]=p===0?a:o[p-1]),tz(o[p])&&d.push(p),typeof o[p]=="string"&&o[p]!=="none"&&o[p]!=="0"&&(c=o[p]);if(i&&d.length&&c)for(let p=0;p<d.length;p++){const w=d[p];o[w]=iD(e,c)}return o}function rz({when:t,delay:e,delayChildren:n,staggerChildren:r,staggerDirection:i,repeat:o,repeatType:a,repeatDelay:c,from:d,elapsed:p,...w}){return!!Object.keys(w).length}function Gy(t,e){return t[e]||t.default||t}const iz={skipAnimations:!1},qy=(t,e,n,r={})=>i=>{const o=Gy(r,t)||{},a=o.delay||r.delay||0;let{elapsed:c=0}=r;c=c-du(a);const d=nz(e,t,n,o),p=d[0],w=d[d.length-1],m=pv(t,p),T=pv(t,w);Qd(m===T,`You are trying to animate ${t} from "${p}" to "${w}". ${p} is not an animatable value - to enable this animation set ${p} to a value animatable to ${w} via the \`style\` property.`);let E={keyframes:d,velocity:e.getVelocity(),ease:"easeOut",...o,delay:-c,onUpdate:A=>{e.set(A),o.onUpdate&&o.onUpdate(A)},onComplete:()=>{i(),o.onComplete&&o.onComplete()}};if(rz(o)||(E={...E,...KW(t,E)}),E.duration&&(E.duration=du(E.duration)),E.repeatDelay&&(E.repeatDelay=du(E.repeatDelay)),!m||!T||eW.current||o.type===!1||iz.skipAnimations)return zW(E);if(!r.isHandoff&&e.owner&&e.owner.current instanceof HTMLElement&&!e.owner.getProps().onUpdate){const A=WW(e,t,E);if(A)return A}return mp(E)};function vp(t){return!!(Ro(t)&&t.add)}const sD=t=>/^\-?\d*\.?\d+$/.test(t);function Xy(t,e){t.indexOf(e)===-1&&t.push(e)}function Ky(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}class Zy{constructor(){this.subscriptions=[]}add(e){return Xy(this.subscriptions,e),()=>Ky(this.subscriptions,e)}notify(e,n,r){const i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](e,n,r);else for(let o=0;o<i;o++){const a=this.subscriptions[o];a&&a(e,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const vS=new Set;function Jy(t,e,n){t||vS.has(e)||(console.warn(e),vS.add(e))}const oz=t=>!isNaN(parseFloat(t));class sz{constructor(e,n={}){this.version="10.18.0",this.timeDelta=0,this.lastUpdated=0,this.canTrackVelocity=!1,this.events={},this.updateAndNotify=(r,i=!0)=>{this.prev=this.current,this.current=r;const{delta:o,timestamp:a}=Fi;this.lastUpdated!==a&&(this.timeDelta=o,this.lastUpdated=a,Ln.postRender(this.scheduleVelocityCheck)),this.prev!==this.current&&this.events.change&&this.events.change.notify(this.current),this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()),i&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.scheduleVelocityCheck=()=>Ln.postRender(this.velocityCheck),this.velocityCheck=({timestamp:r})=>{r!==this.lastUpdated&&(this.prev=this.current,this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()))},this.hasAnimated=!1,this.prev=this.current=e,this.canTrackVelocity=oz(this.current),this.owner=n.owner}onChange(e){return process.env.NODE_ENV!=="production"&&Jy(!1,'value.onChange(callback) is deprecated. Switch to value.on("change", callback).'),this.on("change",e)}on(e,n){this.events[e]||(this.events[e]=new Zy);const r=this.events[e].add(n);return e==="change"?()=>{r(),Ln.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const e in this.events)this.events[e].clear()}attach(e,n){this.passiveEffect=e,this.stopPassiveEffect=n}set(e,n=!0){!n||!this.passiveEffect?this.updateAndNotify(e,n):this.passiveEffect(e,this.updateAndNotify)}setWithVelocity(e,n,r){this.set(n),this.prev=e,this.timeDelta=r}jump(e){this.updateAndNotify(e),this.prev=e,this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){return this.canTrackVelocity?tD(parseFloat(this.current)-parseFloat(this.prev),this.timeDelta):0}start(e){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=e(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function _f(t,e){return new sz(t,e)}const aD=t=>e=>e.test(t),az={test:t=>t==="auto",parse:t=>t},lD=[Ac,Rt,$a,au,gU,pU,az],ad=t=>lD.find(aD(t)),lz=[...lD,ro,Su],uz=t=>lz.find(aD(t));function cz(t,e,n){t.hasValue(e)?t.getValue(e).set(n):t.addValue(e,_f(n))}function fz(t,e){const n=Yp(t,e);let{transitionEnd:r={},transition:i={},...o}=n?t.makeTargetAnimatable(n,!1):{};o={...o,...r};for(const a in o){const c=_U(o[a]);cz(t,a,c)}}function dz(t,e,n){var r,i;const o=Object.keys(e).filter(c=>!t.hasValue(c)),a=o.length;if(a)for(let c=0;c<a;c++){const d=o[c],p=e[d];let w=null;Array.isArray(p)&&(w=p[0]),w===null&&(w=(i=(r=n[d])!==null&&r!==void 0?r:t.readValue(d))!==null&&i!==void 0?i:e[d]),w!=null&&(typeof w=="string"&&(sD(w)||oD(w))?w=parseFloat(w):!uz(w)&&Su.test(p)&&(w=iD(d,p)),t.addValue(d,_f(w,{owner:t})),n[d]===void 0&&(n[d]=w),w!==null&&t.setBaseTarget(d,w))}}function hz(t,e){return e?(e[t]||e.default||e).from:void 0}function pz(t,e,n){const r={};for(const i in t){const o=hz(i,e);if(o!==void 0)r[i]=o;else{const a=n.getValue(i);a&&(r[i]=a.get())}}return r}function gz({protectedKeys:t,needsAnimating:e},n){const r=t.hasOwnProperty(n)&&e[n]!==!0;return e[n]=!1,r}function mz(t,e){const n=t.get();if(Array.isArray(e)){for(let r=0;r<e.length;r++)if(e[r]!==n)return!0}else return n!==e}function uD(t,e,{delay:n=0,transitionOverride:r,type:i}={}){let{transition:o=t.getDefaultTransition(),transitionEnd:a,...c}=t.makeTargetAnimatable(e);const d=t.getValue("willChange");r&&(o=r);const p=[],w=i&&t.animationState&&t.animationState.getState()[i];for(const m in c){const T=t.getValue(m),E=c[m];if(!T||E===void 0||w&&gz(w,m))continue;const A={delay:n,elapsed:0,...Gy(o||{},m)};if(window.HandoffAppearAnimations){const _=t.getProps()[ck];if(_){const U=window.HandoffAppearAnimations(_,m,T,Ln);U!==null&&(A.elapsed=U,A.isHandoff=!0)}}let I=!A.isHandoff&&!mz(T,E);if(A.type==="spring"&&(T.getVelocity()||A.velocity)&&(I=!1),T.animation&&(I=!1),I)continue;T.start(qy(m,T,E,t.shouldReduceMotion&&Rc.has(m)?{type:!1}:A));const j=T.animation;vp(d)&&(d.add(m),j.then(()=>d.remove(m))),p.push(j)}return a&&Promise.all(p).then(()=>{a&&fz(t,a)}),p}function mv(t,e,n={}){const r=Yp(t,e,n.custom);let{transition:i=t.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(i=n.transitionOverride);const o=r?()=>Promise.all(uD(t,r,n)):()=>Promise.resolve(),a=t.variantChildren&&t.variantChildren.size?(d=0)=>{const{delayChildren:p=0,staggerChildren:w,staggerDirection:m}=i;return vz(t,e,p+d,w,m,n)}:()=>Promise.resolve(),{when:c}=i;if(c){const[d,p]=c==="beforeChildren"?[o,a]:[a,o];return d().then(()=>p())}else return Promise.all([o(),a(n.delay)])}function vz(t,e,n=0,r=0,i=1,o){const a=[],c=(t.variantChildren.size-1)*r,d=i===1?(p=0)=>p*r:(p=0)=>c-p*r;return Array.from(t.variantChildren).sort(yz).forEach((p,w)=>{p.notify("AnimationStart",e),a.push(mv(p,e,{...o,delay:n+d(w)}).then(()=>p.notify("AnimationComplete",e)))}),Promise.all(a)}function yz(t,e){return t.sortNodePosition(e)}function bz(t,e,n={}){t.notify("AnimationStart",e);let r;if(Array.isArray(e)){const i=e.map(o=>mv(t,o,n));r=Promise.all(i)}else if(typeof e=="string")r=mv(t,e,n);else{const i=typeof e=="function"?Yp(t,e,n.custom):e;r=Promise.all(uD(t,i,n))}return r.then(()=>t.notify("AnimationComplete",e))}const wz=[...My].reverse(),xz=My.length;function Sz(t){return e=>Promise.all(e.map(({animation:n,options:r})=>bz(t,n,r)))}function Tz(t){let e=Sz(t);const n=Ez();let r=!0;const i=(d,p)=>{const w=Yp(t,p);if(w){const{transition:m,transitionEnd:T,...E}=w;d={...d,...E,...T}}return d};function o(d){e=d(t)}function a(d,p){const w=t.getProps(),m=t.getVariantContext(!0)||{},T=[],E=new Set;let A={},I=1/0;for(let _=0;_<xz;_++){const U=wz[_],G=n[U],re=w[U]!==void 0?w[U]:m[U],q=Nd(re),se=U===p?G.isActive:null;se===!1&&(I=_);let S=re===m[U]&&re!==w[U]&&q;if(S&&r&&t.manuallyAnimateOnMount&&(S=!1),G.protectedKeys={...A},!G.isActive&&se===null||!re&&!G.prevProp||Hp(re)||typeof re=="boolean")continue;let ae=Cz(G.prevProp,re)||U===p&&G.isActive&&!S&&q||_>I&&q,Ue=!1;const nt=Array.isArray(re)?re:[re];let et=nt.reduce(i,{});se===!1&&(et={});const{prevResolvedValues:De={}}=G,Me={...De,...et},fe=me=>{ae=!0,E.has(me)&&(Ue=!0,E.delete(me)),G.needsAnimating[me]=!0};for(const me in Me){const Pe=et[me],Be=De[me];if(A.hasOwnProperty(me))continue;let Ze=!1;hp(Pe)&&hp(Be)?Ze=!Ak(Pe,Be):Ze=Pe!==Be,Ze?Pe!==void 0?fe(me):E.add(me):Pe!==void 0&&E.has(me)?fe(me):G.protectedKeys[me]=!0}G.prevProp=re,G.prevResolvedValues=et,G.isActive&&(A={...A,...et}),r&&t.blockInitialAnimation&&(ae=!1),ae&&(!S||Ue)&&T.push(...nt.map(me=>({animation:me,options:{type:U,...d}})))}if(E.size){const _={};E.forEach(U=>{const G=t.getBaseTarget(U);G!==void 0&&(_[U]=G)}),T.push({animation:_})}let j=!!T.length;return r&&(w.initial===!1||w.initial===w.animate)&&!t.manuallyAnimateOnMount&&(j=!1),r=!1,j?e(T):Promise.resolve()}function c(d,p,w){var m;if(n[d].isActive===p)return Promise.resolve();(m=t.variantChildren)===null||m===void 0||m.forEach(E=>{var A;return(A=E.animationState)===null||A===void 0?void 0:A.setActive(d,p)}),n[d].isActive=p;const T=a(w,d);for(const E in n)n[E].protectedKeys={};return T}return{animateChanges:a,setActive:c,setAnimateFunction:o,getState:()=>n}}function Cz(t,e){return typeof e=="string"?e!==t:Array.isArray(e)?!Ak(e,t):!1}function sc(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Ez(){return{animate:sc(!0),whileInView:sc(),whileHover:sc(),whileTap:sc(),whileDrag:sc(),whileFocus:sc(),exit:sc()}}class kz extends ku{constructor(e){super(e),e.animationState||(e.animationState=Tz(e))}updateAnimationControlsSubscription(){const{animate:e}=this.node.getProps();this.unmount(),Hp(e)&&(this.unmount=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:e}=this.node.getProps(),{animate:n}=this.node.prevProps||{};e!==n&&this.updateAnimationControlsSubscription()}unmount(){}}let Dz=0;class Pz extends ku{constructor(){super(...arguments),this.id=Dz++}update(){if(!this.node.presenceContext)return;const{isPresent:e,onExitComplete:n,custom:r}=this.node.presenceContext,{isPresent:i}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===i)return;const o=this.node.animationState.setActive("exit",!e,{custom:r??this.node.getProps().custom});n&&!e&&o.then(()=>n(this.id))}mount(){const{register:e}=this.node.presenceContext||{};e&&(this.unmount=e(this.id))}unmount(){}}const Oz={animation:{Feature:kz},exit:{Feature:Pz}},yS=(t,e)=>Math.abs(t-e);function _z(t,e){const n=yS(t.x,e.x),r=yS(t.y,e.y);return Math.sqrt(n**2+r**2)}class cD{constructor(e,n,{transformPagePoint:r,contextWindow:i,dragSnapToOrigin:o=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const m=om(this.lastMoveEventInfo,this.history),T=this.startEvent!==null,E=_z(m.offset,{x:0,y:0})>=3;if(!T&&!E)return;const{point:A}=m,{timestamp:I}=Fi;this.history.push({...A,timestamp:I});const{onStart:j,onMove:_}=this.handlers;T||(j&&j(this.lastMoveEvent,m),this.startEvent=this.lastMoveEvent),_&&_(this.lastMoveEvent,m)},this.handlePointerMove=(m,T)=>{this.lastMoveEvent=m,this.lastMoveEventInfo=im(T,this.transformPagePoint),Ln.update(this.updatePoint,!0)},this.handlePointerUp=(m,T)=>{this.end();const{onEnd:E,onSessionEnd:A,resumeAnimation:I}=this.handlers;if(this.dragSnapToOrigin&&I&&I(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const j=om(m.type==="pointercancel"?this.lastMoveEventInfo:im(T,this.transformPagePoint),this.history);this.startEvent&&E&&E(m,j),A&&A(m,j)},!Dk(e))return;this.dragSnapToOrigin=o,this.handlers=n,this.transformPagePoint=r,this.contextWindow=i||window;const a=zp(e),c=im(a,this.transformPagePoint),{point:d}=c,{timestamp:p}=Fi;this.history=[{...d,timestamp:p}];const{onSessionStart:w}=n;w&&w(e,om(c,this.history)),this.removeListeners=fu(Tl(this.contextWindow,"pointermove",this.handlePointerMove),Tl(this.contextWindow,"pointerup",this.handlePointerUp),Tl(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),Dl(this.updatePoint)}}function im(t,e){return e?{point:e(t.point)}:t}function bS(t,e){return{x:t.x-e.x,y:t.y-e.y}}function om({point:t},e){return{point:t,delta:bS(t,fD(e)),offset:bS(t,Rz(e)),velocity:Az(e,.1)}}function Rz(t){return t[0]}function fD(t){return t[t.length-1]}function Az(t,e){if(t.length<2)return{x:0,y:0};let n=t.length-1,r=null;const i=fD(t);for(;n>=0&&(r=t[n],!(i.timestamp-r.timestamp>du(e)));)n--;if(!r)return{x:0,y:0};const o=Cl(i.timestamp-r.timestamp);if(o===0)return{x:0,y:0};const a={x:(i.x-r.x)/o,y:(i.y-r.y)/o};return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}function es(t){return t.max-t.min}function vv(t,e=0,n=.01){return Math.abs(t-e)<=n}function wS(t,e,n,r=.5){t.origin=r,t.originPoint=Zn(e.min,e.max,t.origin),t.scale=es(n)/es(e),(vv(t.scale,1,1e-4)||isNaN(t.scale))&&(t.scale=1),t.translate=Zn(n.min,n.max,t.origin)-t.originPoint,(vv(t.translate)||isNaN(t.translate))&&(t.translate=0)}function Ed(t,e,n,r){wS(t.x,e.x,n.x,r?r.originX:void 0),wS(t.y,e.y,n.y,r?r.originY:void 0)}function xS(t,e,n){t.min=n.min+e.min,t.max=t.min+es(e)}function Iz(t,e,n){xS(t.x,e.x,n.x),xS(t.y,e.y,n.y)}function SS(t,e,n){t.min=e.min-n.min,t.max=t.min+es(e)}function kd(t,e,n){SS(t.x,e.x,n.x),SS(t.y,e.y,n.y)}function Mz(t,{min:e,max:n},r){return e!==void 0&&t<e?t=r?Zn(e,t,r.min):Math.max(t,e):n!==void 0&&t>n&&(t=r?Zn(n,t,r.max):Math.min(t,n)),t}function TS(t,e,n){return{min:e!==void 0?t.min+e:void 0,max:n!==void 0?t.max+n-(t.max-t.min):void 0}}function Lz(t,{top:e,left:n,bottom:r,right:i}){return{x:TS(t.x,n,i),y:TS(t.y,e,r)}}function CS(t,e){let n=e.min-t.min,r=e.max-t.max;return e.max-e.min<t.max-t.min&&([n,r]=[r,n]),{min:n,max:r}}function Fz(t,e){return{x:CS(t.x,e.x),y:CS(t.y,e.y)}}function Nz(t,e){let n=.5;const r=es(t),i=es(e);return i>r?n=Bd(e.min,e.max-r,t.min):r>i&&(n=Bd(t.min,t.max-i,e.min)),xu(0,1,n)}function jz(t,e){const n={};return e.min!==void 0&&(n.min=e.min-t.min),e.max!==void 0&&(n.max=e.max-t.min),n}const yv=.35;function Bz(t=yv){return t===!1?t=0:t===!0&&(t=yv),{x:ES(t,"left","right"),y:ES(t,"top","bottom")}}function ES(t,e,n){return{min:kS(t,e),max:kS(t,n)}}function kS(t,e){return typeof t=="number"?t:t[e]||0}const DS=()=>({translate:0,scale:1,origin:0,originPoint:0}),xf=()=>({x:DS(),y:DS()}),PS=()=>({min:0,max:0}),Er=()=>({x:PS(),y:PS()});function Ps(t){return[t("x"),t("y")]}function dD({top:t,left:e,right:n,bottom:r}){return{x:{min:e,max:n},y:{min:t,max:r}}}function $z({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}function Vz(t,e){if(!e)return t;const n=e({x:t.left,y:t.top}),r=e({x:t.right,y:t.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function sm(t){return t===void 0||t===1}function bv({scale:t,scaleX:e,scaleY:n}){return!sm(t)||!sm(e)||!sm(n)}function hc(t){return bv(t)||hD(t)||t.z||t.rotate||t.rotateX||t.rotateY}function hD(t){return OS(t.x)||OS(t.y)}function OS(t){return t&&t!=="0%"}function yp(t,e,n){const r=t-n,i=e*r;return n+i}function _S(t,e,n,r,i){return i!==void 0&&(t=yp(t,i,r)),yp(t,n,r)+e}function wv(t,e=0,n=1,r,i){t.min=_S(t.min,e,n,r,i),t.max=_S(t.max,e,n,r,i)}function pD(t,{x:e,y:n}){wv(t.x,e.translate,e.scale,e.originPoint),wv(t.y,n.translate,n.scale,n.originPoint)}function Hz(t,e,n,r=!1){const i=n.length;if(!i)return;e.x=e.y=1;let o,a;for(let c=0;c<i;c++){o=n[c],a=o.projectionDelta;const d=o.instance;d&&d.style&&d.style.display==="contents"||(r&&o.options.layoutScroll&&o.scroll&&o!==o.root&&Sf(t,{x:-o.scroll.offset.x,y:-o.scroll.offset.y}),a&&(e.x*=a.x.scale,e.y*=a.y.scale,pD(t,a)),r&&hc(o.latestValues)&&Sf(t,o.latestValues))}e.x=RS(e.x),e.y=RS(e.y)}function RS(t){return Number.isInteger(t)||t>1.0000000000001||t<.999999999999?t:1}function lu(t,e){t.min=t.min+e,t.max=t.max+e}function AS(t,e,[n,r,i]){const o=e[i]!==void 0?e[i]:.5,a=Zn(t.min,t.max,o);wv(t,e[n],e[r],a,e.scale)}const Uz=["x","scaleX","originX"],Wz=["y","scaleY","originY"];function Sf(t,e){AS(t.x,e,Uz),AS(t.y,e,Wz)}function gD(t,e){return dD(Vz(t.getBoundingClientRect(),e))}function zz(t,e,n){const r=gD(t,n),{scroll:i}=e;return i&&(lu(r.x,i.offset.x),lu(r.y,i.offset.y)),r}const mD=({current:t})=>t?t.ownerDocument.defaultView:null,Yz=new WeakMap;class Gz{constructor(e){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=Er(),this.visualElement=e}start(e,{snapToCursor:n=!1}={}){const{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;const i=w=>{const{dragSnapToOrigin:m}=this.getProps();m?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(zp(w,"page").point)},o=(w,m)=>{const{drag:T,dragPropagation:E,onDragStart:A}=this.getProps();if(T&&!E&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=Ok(T),!this.openGlobalLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Ps(j=>{let _=this.getAxisMotionValue(j).get()||0;if($a.test(_)){const{projection:U}=this.visualElement;if(U&&U.layout){const G=U.layout.layoutBox[j];G&&(_=es(G)*(parseFloat(_)/100))}}this.originPoint[j]=_}),A&&Ln.update(()=>A(w,m),!1,!0);const{animationState:I}=this.visualElement;I&&I.setActive("whileDrag",!0)},a=(w,m)=>{const{dragPropagation:T,dragDirectionLock:E,onDirectionLock:A,onDrag:I}=this.getProps();if(!T&&!this.openGlobalLock)return;const{offset:j}=m;if(E&&this.currentDirection===null){this.currentDirection=qz(j),this.currentDirection!==null&&A&&A(this.currentDirection);return}this.updateAxis("x",m.point,j),this.updateAxis("y",m.point,j),this.visualElement.render(),I&&I(w,m)},c=(w,m)=>this.stop(w,m),d=()=>Ps(w=>{var m;return this.getAnimationState(w)==="paused"&&((m=this.getAxisMotionValue(w).animation)===null||m===void 0?void 0:m.play())}),{dragSnapToOrigin:p}=this.getProps();this.panSession=new cD(e,{onSessionStart:i,onStart:o,onMove:a,onSessionEnd:c,resumeAnimation:d},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:p,contextWindow:mD(this.visualElement)})}stop(e,n){const r=this.isDragging;if(this.cancel(),!r)return;const{velocity:i}=n;this.startAnimation(i);const{onDragEnd:o}=this.getProps();o&&Ln.update(()=>o(e,n))}cancel(){this.isDragging=!1;const{projection:e,animationState:n}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:r}=this.getProps();!r&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(e,n,r){const{drag:i}=this.getProps();if(!r||!Oh(e,i,this.currentDirection))return;const o=this.getAxisMotionValue(e);let a=this.originPoint[e]+r[e];this.constraints&&this.constraints[e]&&(a=Mz(a,this.constraints[e],this.elastic[e])),o.set(a)}resolveConstraints(){var e;const{dragConstraints:n,dragElastic:r}=this.getProps(),i=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(e=this.visualElement.projection)===null||e===void 0?void 0:e.layout,o=this.constraints;n&&bf(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&i?this.constraints=Lz(i.layoutBox,n):this.constraints=!1,this.elastic=Bz(r),o!==this.constraints&&i&&this.constraints&&!this.hasMutatedConstraints&&Ps(a=>{this.getAxisMotionValue(a)&&(this.constraints[a]=jz(i.layoutBox[a],this.constraints[a]))})}resolveRefConstraints(){const{dragConstraints:e,onMeasureDragConstraints:n}=this.getProps();if(!e||!bf(e))return!1;const r=e.current;aa(r!==null,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");const{projection:i}=this.visualElement;if(!i||!i.layout)return!1;const o=zz(r,i.root,this.visualElement.getTransformPagePoint());let a=Fz(i.layout.layoutBox,o);if(n){const c=n($z(a));this.hasMutatedConstraints=!!c,c&&(a=dD(c))}return a}startAnimation(e){const{drag:n,dragMomentum:r,dragElastic:i,dragTransition:o,dragSnapToOrigin:a,onDragTransitionEnd:c}=this.getProps(),d=this.constraints||{},p=Ps(w=>{if(!Oh(w,n,this.currentDirection))return;let m=d&&d[w]||{};a&&(m={min:0,max:0});const T=i?200:1e6,E=i?40:1e7,A={type:"inertia",velocity:r?e[w]:0,bounceStiffness:T,bounceDamping:E,timeConstant:750,restDelta:1,restSpeed:10,...o,...m};return this.startAxisValueAnimation(w,A)});return Promise.all(p).then(c)}startAxisValueAnimation(e,n){const r=this.getAxisMotionValue(e);return r.start(qy(e,r,0,n))}stopAnimation(){Ps(e=>this.getAxisMotionValue(e).stop())}pauseAnimation(){Ps(e=>{var n;return(n=this.getAxisMotionValue(e).animation)===null||n===void 0?void 0:n.pause()})}getAnimationState(e){var n;return(n=this.getAxisMotionValue(e).animation)===null||n===void 0?void 0:n.state}getAxisMotionValue(e){const n="_drag"+e.toUpperCase(),r=this.visualElement.getProps(),i=r[n];return i||this.visualElement.getValue(e,(r.initial?r.initial[e]:void 0)||0)}snapToCursor(e){Ps(n=>{const{drag:r}=this.getProps();if(!Oh(n,r,this.currentDirection))return;const{projection:i}=this.visualElement,o=this.getAxisMotionValue(n);if(i&&i.layout){const{min:a,max:c}=i.layout.layoutBox[n];o.set(e[n]-Zn(a,c,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:e,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!bf(n)||!r||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};Ps(a=>{const c=this.getAxisMotionValue(a);if(c){const d=c.get();i[a]=Nz({min:d,max:d},this.constraints[a])}});const{transformTemplate:o}=this.visualElement.getProps();this.visualElement.current.style.transform=o?o({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),Ps(a=>{if(!Oh(a,e,null))return;const c=this.getAxisMotionValue(a),{min:d,max:p}=this.constraints[a];c.set(Zn(d,p,i[a]))})}addListeners(){if(!this.visualElement.current)return;Yz.set(this.visualElement,this);const e=this.visualElement.current,n=Tl(e,"pointerdown",d=>{const{drag:p,dragListener:w=!0}=this.getProps();p&&w&&this.start(d)}),r=()=>{const{dragConstraints:d}=this.getProps();bf(d)&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,o=i.addEventListener("measure",r);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),r();const a=wl(window,"resize",()=>this.scalePositionWithinConstraints()),c=i.addEventListener("didUpdate",({delta:d,hasLayoutChanged:p})=>{this.isDragging&&p&&(Ps(w=>{const m=this.getAxisMotionValue(w);m&&(this.originPoint[w]+=d[w].translate,m.set(m.get()+d[w].translate))}),this.visualElement.render())});return()=>{a(),n(),o(),c&&c()}}getProps(){const e=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:i=!1,dragConstraints:o=!1,dragElastic:a=yv,dragMomentum:c=!0}=e;return{...e,drag:n,dragDirectionLock:r,dragPropagation:i,dragConstraints:o,dragElastic:a,dragMomentum:c}}}function Oh(t,e,n){return(e===!0||e===t)&&(n===null||n===t)}function qz(t,e=10){let n=null;return Math.abs(t.y)>e?n="y":Math.abs(t.x)>e&&(n="x"),n}class Xz extends ku{constructor(e){super(e),this.removeGroupControls=sr,this.removeListeners=sr,this.controls=new Gz(e)}mount(){const{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||sr}unmount(){this.removeGroupControls(),this.removeListeners()}}const IS=t=>(e,n)=>{t&&Ln.update(()=>t(e,n))};class Kz extends ku{constructor(){super(...arguments),this.removePointerDownListener=sr}onPointerDown(e){this.session=new cD(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:mD(this.node)})}createPanHandlers(){const{onPanSessionStart:e,onPanStart:n,onPan:r,onPanEnd:i}=this.node.getProps();return{onSessionStart:IS(e),onStart:IS(n),onMove:r,onEnd:(o,a)=>{delete this.session,i&&Ln.update(()=>i(o,a))}}}mount(){this.removePointerDownListener=Tl(this.node.current,"pointerdown",e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}function Zz(){const t=X.useContext(Ay);if(t===null)return[!0,null];const{isPresent:e,onExitComplete:n,register:r}=t,i=X.useId();return X.useEffect(()=>r(i),[]),!e&&n?[!1,()=>n&&n(i)]:[!0]}const Yh={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function MS(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}const ld={correct:(t,e)=>{if(!e.target)return t;if(typeof t=="string")if(Rt.test(t))t=parseFloat(t);else return t;const n=MS(t,e.target.x),r=MS(t,e.target.y);return`${n}% ${r}%`}},Jz={correct:(t,{treeScale:e,projectionDelta:n})=>{const r=t,i=Su.parse(t);if(i.length>5)return r;const o=Su.createTransformer(t),a=typeof i[0]!="number"?1:0,c=n.x.scale*e.x,d=n.y.scale*e.y;i[0+a]/=c,i[1+a]/=d;const p=Zn(c,d,.5);return typeof i[2+a]=="number"&&(i[2+a]/=p),typeof i[3+a]=="number"&&(i[3+a]/=p),o(i)}};class Qz extends X.Component{componentDidMount(){const{visualElement:e,layoutGroup:n,switchLayoutGroup:r,layoutId:i}=this.props,{projection:o}=e;aU(e5),o&&(n.group&&n.group.add(o),r&&r.register&&i&&r.register(o),o.root.didUpdate(),o.addEventListener("animationComplete",()=>{this.safeToRemove()}),o.setOptions({...o.options,onExitComplete:()=>this.safeToRemove()})),Yh.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){const{layoutDependency:n,visualElement:r,drag:i,isPresent:o}=this.props,a=r.projection;return a&&(a.isPresent=o,i||e.layoutDependency!==n||n===void 0?a.willUpdate():this.safeToRemove(),e.isPresent!==o&&(o?a.promote():a.relegate()||Ln.postRender(()=>{const c=a.getStack();(!c||!c.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:e}=this.props.visualElement;e&&(e.root.didUpdate(),queueMicrotask(()=>{!e.currentAnimation&&e.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:e,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:i}=e;i&&(i.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(i),r&&r.deregister&&r.deregister(i))}safeToRemove(){const{safeToRemove:e}=this.props;e&&e()}render(){return null}}function vD(t){const[e,n]=Zz(),r=X.useContext(dk);return X.createElement(Qz,{...t,layoutGroup:r,switchLayoutGroup:X.useContext(hk),isPresent:e,safeToRemove:n})}const e5={borderRadius:{...ld,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:ld,borderTopRightRadius:ld,borderBottomLeftRadius:ld,borderBottomRightRadius:ld,boxShadow:Jz},yD=["TopLeft","TopRight","BottomLeft","BottomRight"],t5=yD.length,LS=t=>typeof t=="string"?parseFloat(t):t,FS=t=>typeof t=="number"||Rt.test(t);function n5(t,e,n,r,i,o){i?(t.opacity=Zn(0,n.opacity!==void 0?n.opacity:1,r5(r)),t.opacityExit=Zn(e.opacity!==void 0?e.opacity:1,0,i5(r))):o&&(t.opacity=Zn(e.opacity!==void 0?e.opacity:1,n.opacity!==void 0?n.opacity:1,r));for(let a=0;a<t5;a++){const c=`border${yD[a]}Radius`;let d=NS(e,c),p=NS(n,c);if(d===void 0&&p===void 0)continue;d||(d=0),p||(p=0),d===0||p===0||FS(d)===FS(p)?(t[c]=Math.max(Zn(LS(d),LS(p),r),0),($a.test(p)||$a.test(d))&&(t[c]+="%")):t[c]=p}(e.rotate||n.rotate)&&(t.rotate=Zn(e.rotate||0,n.rotate||0,r))}function NS(t,e){return t[e]!==void 0?t[e]:t.borderRadius}const r5=bD(0,.5,Vk),i5=bD(.5,.95,sr);function bD(t,e,n){return r=>r<t?0:r>e?1:n(Bd(t,e,r))}function jS(t,e){t.min=e.min,t.max=e.max}function Es(t,e){jS(t.x,e.x),jS(t.y,e.y)}function BS(t,e,n,r,i){return t-=e,t=yp(t,1/n,r),i!==void 0&&(t=yp(t,1/i,r)),t}function o5(t,e=0,n=1,r=.5,i,o=t,a=t){if($a.test(e)&&(e=parseFloat(e),e=Zn(a.min,a.max,e/100)-a.min),typeof e!="number")return;let c=Zn(o.min,o.max,r);t===o&&(c-=e),t.min=BS(t.min,e,n,c,i),t.max=BS(t.max,e,n,c,i)}function $S(t,e,[n,r,i],o,a){o5(t,e[n],e[r],e[i],e.scale,o,a)}const s5=["x","scaleX","originX"],a5=["y","scaleY","originY"];function VS(t,e,n,r){$S(t.x,e,s5,n?n.x:void 0,r?r.x:void 0),$S(t.y,e,a5,n?n.y:void 0,r?r.y:void 0)}function HS(t){return t.translate===0&&t.scale===1}function wD(t){return HS(t.x)&&HS(t.y)}function l5(t,e){return t.x.min===e.x.min&&t.x.max===e.x.max&&t.y.min===e.y.min&&t.y.max===e.y.max}function xD(t,e){return Math.round(t.x.min)===Math.round(e.x.min)&&Math.round(t.x.max)===Math.round(e.x.max)&&Math.round(t.y.min)===Math.round(e.y.min)&&Math.round(t.y.max)===Math.round(e.y.max)}function US(t){return es(t.x)/es(t.y)}class u5{constructor(){this.members=[]}add(e){Xy(this.members,e),e.scheduleRender()}remove(e){if(Ky(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(e){const n=this.members.findIndex(i=>e===i);if(n===0)return!1;let r;for(let i=n;i>=0;i--){const o=this.members[i];if(o.isPresent!==!1){r=o;break}}return r?(this.promote(r),!0):!1}promote(e,n){const r=this.lead;if(e!==r&&(this.prevLead=r,this.lead=e,e.show(),r)){r.instance&&r.scheduleRender(),e.scheduleRender(),e.resumeFrom=r,n&&(e.resumeFrom.preserveOpacity=!0),r.snapshot&&(e.snapshot=r.snapshot,e.snapshot.latestValues=r.animationValues||r.latestValues),e.root&&e.root.isUpdating&&(e.isLayoutDirty=!0);const{crossfade:i}=e.options;i===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(e=>{const{options:n,resumingFrom:r}=e;n.onExitComplete&&n.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(e=>{e.instance&&e.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function WS(t,e,n){let r="";const i=t.x.translate/e.x,o=t.y.translate/e.y;if((i||o)&&(r=`translate3d(${i}px, ${o}px, 0) `),(e.x!==1||e.y!==1)&&(r+=`scale(${1/e.x}, ${1/e.y}) `),n){const{rotate:d,rotateX:p,rotateY:w}=n;d&&(r+=`rotate(${d}deg) `),p&&(r+=`rotateX(${p}deg) `),w&&(r+=`rotateY(${w}deg) `)}const a=t.x.scale*e.x,c=t.y.scale*e.y;return(a!==1||c!==1)&&(r+=`scale(${a}, ${c})`),r||"none"}const c5=(t,e)=>t.depth-e.depth;class f5{constructor(){this.children=[],this.isDirty=!1}add(e){Xy(this.children,e),this.isDirty=!0}remove(e){Ky(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(c5),this.isDirty=!1,this.children.forEach(e)}}function d5(t,e){const n=performance.now(),r=({timestamp:i})=>{const o=i-n;o>=e&&(Dl(r),t(o-e))};return Ln.read(r,!0),()=>Dl(r)}function h5(t){window.MotionDebug&&window.MotionDebug.record(t)}function p5(t){return t instanceof SVGElement&&t.tagName!=="svg"}function g5(t,e,n){const r=Ro(t)?t:_f(t);return r.start(qy("",r,e,n)),r.animation}const zS=["","X","Y","Z"],m5={visibility:"hidden"},YS=1e3;let v5=0;const pc={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0};function SD({attachResizeListener:t,defaultParent:e,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(a={},c=e==null?void 0:e()){this.id=v5++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,pc.totalNodes=pc.resolvedTargetDeltas=pc.recalculatedProjection=0,this.nodes.forEach(w5),this.nodes.forEach(E5),this.nodes.forEach(k5),this.nodes.forEach(x5),h5(pc)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=a,this.root=c?c.root||c:this,this.path=c?[...c.path,c]:[],this.parent=c,this.depth=c?c.depth+1:0;for(let d=0;d<this.path.length;d++)this.path[d].shouldResetTransform=!0;this.root===this&&(this.nodes=new f5)}addEventListener(a,c){return this.eventHandlers.has(a)||this.eventHandlers.set(a,new Zy),this.eventHandlers.get(a).add(c)}notifyListeners(a,...c){const d=this.eventHandlers.get(a);d&&d.notify(...c)}hasListeners(a){return this.eventHandlers.has(a)}mount(a,c=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=p5(a),this.instance=a;const{layoutId:d,layout:p,visualElement:w}=this.options;if(w&&!w.current&&w.mount(a),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),c&&(p||d)&&(this.isLayoutDirty=!0),t){let m;const T=()=>this.root.updateBlockedByResize=!1;t(a,()=>{this.root.updateBlockedByResize=!0,m&&m(),m=d5(T,250),Yh.hasAnimatedSinceResize&&(Yh.hasAnimatedSinceResize=!1,this.nodes.forEach(qS))})}d&&this.root.registerSharedNode(d,this),this.options.animate!==!1&&w&&(d||p)&&this.addEventListener("didUpdate",({delta:m,hasLayoutChanged:T,hasRelativeTargetChanged:E,layout:A})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const I=this.options.transition||w.getDefaultTransition()||R5,{onLayoutAnimationStart:j,onLayoutAnimationComplete:_}=w.getProps(),U=!this.targetLayout||!xD(this.targetLayout,A)||E,G=!T&&E;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||G||T&&(U||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(m,G);const re={...Gy(I,"layout"),onPlay:j,onComplete:_};(w.shouldReduceMotion||this.options.layoutRoot)&&(re.delay=0,re.type=!1),this.startAnimation(re)}else T||qS(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=A})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const a=this.getStack();a&&a.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,Dl(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(D5),this.animationId++)}getTransformTemplate(){const{visualElement:a}=this.options;return a&&a.getProps().transformTemplate}willUpdate(a=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let w=0;w<this.path.length;w++){const m=this.path[w];m.shouldResetTransform=!0,m.updateScroll("snapshot"),m.options.layoutRoot&&m.willUpdate(!1)}const{layoutId:c,layout:d}=this.options;if(c===void 0&&!d)return;const p=this.getTransformTemplate();this.prevTransformTemplateValue=p?p(this.latestValues,""):void 0,this.updateSnapshot(),a&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(GS);return}this.isUpdating||this.nodes.forEach(T5),this.isUpdating=!1,this.nodes.forEach(C5),this.nodes.forEach(y5),this.nodes.forEach(b5),this.clearAllSnapshots();const c=performance.now();Fi.delta=xu(0,1e3/60,c-Fi.timestamp),Fi.timestamp=c,Fi.isProcessing=!0,Zg.update.process(Fi),Zg.preRender.process(Fi),Zg.render.process(Fi),Fi.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,queueMicrotask(()=>this.update()))}clearAllSnapshots(){this.nodes.forEach(S5),this.sharedNodes.forEach(P5)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,Ln.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){Ln.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure())}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let d=0;d<this.path.length;d++)this.path[d].updateScroll();const a=this.layout;this.layout=this.measure(!1),this.layoutCorrected=Er(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:c}=this.options;c&&c.notify("LayoutMeasure",this.layout.layoutBox,a?a.layoutBox:void 0)}updateScroll(a="measure"){let c=!!(this.options.layoutScroll&&this.instance);this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===a&&(c=!1),c&&(this.scroll={animationId:this.root.animationId,phase:a,isRoot:r(this.instance),offset:n(this.instance)})}resetTransform(){if(!i)return;const a=this.isLayoutDirty||this.shouldResetTransform,c=this.projectionDelta&&!wD(this.projectionDelta),d=this.getTransformTemplate(),p=d?d(this.latestValues,""):void 0,w=p!==this.prevTransformTemplateValue;a&&(c||hc(this.latestValues)||w)&&(i(this.instance,p),this.shouldResetTransform=!1,this.scheduleRender())}measure(a=!0){const c=this.measurePageBox();let d=this.removeElementScroll(c);return a&&(d=this.removeTransform(d)),A5(d),{animationId:this.root.animationId,measuredBox:c,layoutBox:d,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:a}=this.options;if(!a)return Er();const c=a.measureViewportBox(),{scroll:d}=this.root;return d&&(lu(c.x,d.offset.x),lu(c.y,d.offset.y)),c}removeElementScroll(a){const c=Er();Es(c,a);for(let d=0;d<this.path.length;d++){const p=this.path[d],{scroll:w,options:m}=p;if(p!==this.root&&w&&m.layoutScroll){if(w.isRoot){Es(c,a);const{scroll:T}=this.root;T&&(lu(c.x,-T.offset.x),lu(c.y,-T.offset.y))}lu(c.x,w.offset.x),lu(c.y,w.offset.y)}}return c}applyTransform(a,c=!1){const d=Er();Es(d,a);for(let p=0;p<this.path.length;p++){const w=this.path[p];!c&&w.options.layoutScroll&&w.scroll&&w!==w.root&&Sf(d,{x:-w.scroll.offset.x,y:-w.scroll.offset.y}),hc(w.latestValues)&&Sf(d,w.latestValues)}return hc(this.latestValues)&&Sf(d,this.latestValues),d}removeTransform(a){const c=Er();Es(c,a);for(let d=0;d<this.path.length;d++){const p=this.path[d];if(!p.instance||!hc(p.latestValues))continue;bv(p.latestValues)&&p.updateSnapshot();const w=Er(),m=p.measurePageBox();Es(w,m),VS(c,p.latestValues,p.snapshot?p.snapshot.layoutBox:void 0,w)}return hc(this.latestValues)&&VS(c,this.latestValues),c}setTargetDelta(a){this.targetDelta=a,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(a){this.options={...this.options,...a,crossfade:a.crossfade!==void 0?a.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==Fi.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(a=!1){var c;const d=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=d.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=d.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=d.isSharedProjectionDirty);const p=!!this.resumingFrom||this!==d;if(!(a||p&&this.isSharedProjectionDirty||this.isProjectionDirty||!((c=this.parent)===null||c===void 0)&&c.isProjectionDirty||this.attemptToResolveRelativeTarget))return;const{layout:m,layoutId:T}=this.options;if(!(!this.layout||!(m||T))){if(this.resolvedRelativeTargetAt=Fi.timestamp,!this.targetDelta&&!this.relativeTarget){const E=this.getClosestProjectingParent();E&&E.layout&&this.animationProgress!==1?(this.relativeParent=E,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Er(),this.relativeTargetOrigin=Er(),kd(this.relativeTargetOrigin,this.layout.layoutBox,E.layout.layoutBox),Es(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)){if(this.target||(this.target=Er(),this.targetWithTransforms=Er()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),Iz(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):Es(this.target,this.layout.layoutBox),pD(this.target,this.targetDelta)):Es(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;const E=this.getClosestProjectingParent();E&&!!E.resumingFrom==!!this.resumingFrom&&!E.options.layoutScroll&&E.target&&this.animationProgress!==1?(this.relativeParent=E,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Er(),this.relativeTargetOrigin=Er(),kd(this.relativeTargetOrigin,this.target,E.target),Es(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}pc.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(!(!this.parent||bv(this.parent.latestValues)||hD(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var a;const c=this.getLead(),d=!!this.resumingFrom||this!==c;let p=!0;if((this.isProjectionDirty||!((a=this.parent)===null||a===void 0)&&a.isProjectionDirty)&&(p=!1),d&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(p=!1),this.resolvedRelativeTargetAt===Fi.timestamp&&(p=!1),p)return;const{layout:w,layoutId:m}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(w||m))return;Es(this.layoutCorrected,this.layout.layoutBox);const T=this.treeScale.x,E=this.treeScale.y;Hz(this.layoutCorrected,this.treeScale,this.path,d),c.layout&&!c.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(c.target=c.layout.layoutBox);const{target:A}=c;if(!A){this.projectionTransform&&(this.projectionDelta=xf(),this.projectionTransform="none",this.scheduleRender());return}this.projectionDelta||(this.projectionDelta=xf(),this.projectionDeltaWithTransform=xf());const I=this.projectionTransform;Ed(this.projectionDelta,this.layoutCorrected,A,this.latestValues),this.projectionTransform=WS(this.projectionDelta,this.treeScale),(this.projectionTransform!==I||this.treeScale.x!==T||this.treeScale.y!==E)&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",A)),pc.recalculatedProjection++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(a=!0){if(this.options.scheduleRender&&this.options.scheduleRender(),a){const c=this.getStack();c&&c.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}setAnimationOrigin(a,c=!1){const d=this.snapshot,p=d?d.latestValues:{},w={...this.latestValues},m=xf();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!c;const T=Er(),E=d?d.source:void 0,A=this.layout?this.layout.source:void 0,I=E!==A,j=this.getStack(),_=!j||j.members.length<=1,U=!!(I&&!_&&this.options.crossfade===!0&&!this.path.some(_5));this.animationProgress=0;let G;this.mixTargetDelta=re=>{const q=re/1e3;XS(m.x,a.x,q),XS(m.y,a.y,q),this.setTargetDelta(m),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(kd(T,this.layout.layoutBox,this.relativeParent.layout.layoutBox),O5(this.relativeTarget,this.relativeTargetOrigin,T,q),G&&l5(this.relativeTarget,G)&&(this.isProjectionDirty=!1),G||(G=Er()),Es(G,this.relativeTarget)),I&&(this.animationValues=w,n5(w,p,this.latestValues,q,U,_)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=q},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(a){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(Dl(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Ln.update(()=>{Yh.hasAnimatedSinceResize=!0,this.currentAnimation=g5(0,YS,{...a,onUpdate:c=>{this.mixTargetDelta(c),a.onUpdate&&a.onUpdate(c)},onComplete:()=>{a.onComplete&&a.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const a=this.getStack();a&&a.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(YS),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const a=this.getLead();let{targetWithTransforms:c,target:d,layout:p,latestValues:w}=a;if(!(!c||!d||!p)){if(this!==a&&this.layout&&p&&TD(this.options.animationType,this.layout.layoutBox,p.layoutBox)){d=this.target||Er();const m=es(this.layout.layoutBox.x);d.x.min=a.target.x.min,d.x.max=d.x.min+m;const T=es(this.layout.layoutBox.y);d.y.min=a.target.y.min,d.y.max=d.y.min+T}Es(c,d),Sf(c,w),Ed(this.projectionDeltaWithTransform,this.layoutCorrected,c,w)}}registerSharedNode(a,c){this.sharedNodes.has(a)||this.sharedNodes.set(a,new u5),this.sharedNodes.get(a).add(c);const p=c.options.initialPromotionConfig;c.promote({transition:p?p.transition:void 0,preserveFollowOpacity:p&&p.shouldPreserveFollowOpacity?p.shouldPreserveFollowOpacity(c):void 0})}isLead(){const a=this.getStack();return a?a.lead===this:!0}getLead(){var a;const{layoutId:c}=this.options;return c?((a=this.getStack())===null||a===void 0?void 0:a.lead)||this:this}getPrevLead(){var a;const{layoutId:c}=this.options;return c?(a=this.getStack())===null||a===void 0?void 0:a.prevLead:void 0}getStack(){const{layoutId:a}=this.options;if(a)return this.root.sharedNodes.get(a)}promote({needsReset:a,transition:c,preserveFollowOpacity:d}={}){const p=this.getStack();p&&p.promote(this,d),a&&(this.projectionDelta=void 0,this.needsReset=!0),c&&this.setOptions({transition:c})}relegate(){const a=this.getStack();return a?a.relegate(this):!1}resetRotation(){const{visualElement:a}=this.options;if(!a)return;let c=!1;const{latestValues:d}=a;if((d.rotate||d.rotateX||d.rotateY||d.rotateZ)&&(c=!0),!c)return;const p={};for(let w=0;w<zS.length;w++){const m="rotate"+zS[w];d[m]&&(p[m]=d[m],a.setStaticValue(m,0))}a.render();for(const w in p)a.setStaticValue(w,p[w]);a.scheduleRender()}getProjectionStyles(a){var c,d;if(!this.instance||this.isSVG)return;if(!this.isVisible)return m5;const p={visibility:""},w=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,p.opacity="",p.pointerEvents=zh(a==null?void 0:a.pointerEvents)||"",p.transform=w?w(this.latestValues,""):"none",p;const m=this.getLead();if(!this.projectionDelta||!this.layout||!m.target){const I={};return this.options.layoutId&&(I.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,I.pointerEvents=zh(a==null?void 0:a.pointerEvents)||""),this.hasProjected&&!hc(this.latestValues)&&(I.transform=w?w({},""):"none",this.hasProjected=!1),I}const T=m.animationValues||m.latestValues;this.applyTransformsToTarget(),p.transform=WS(this.projectionDeltaWithTransform,this.treeScale,T),w&&(p.transform=w(T,p.transform));const{x:E,y:A}=this.projectionDelta;p.transformOrigin=`${E.origin*100}% ${A.origin*100}% 0`,m.animationValues?p.opacity=m===this?(d=(c=T.opacity)!==null&&c!==void 0?c:this.latestValues.opacity)!==null&&d!==void 0?d:1:this.preserveOpacity?this.latestValues.opacity:T.opacityExit:p.opacity=m===this?T.opacity!==void 0?T.opacity:"":T.opacityExit!==void 0?T.opacityExit:0;for(const I in fp){if(T[I]===void 0)continue;const{correct:j,applyTo:_}=fp[I],U=p.transform==="none"?T[I]:j(T[I],m);if(_){const G=_.length;for(let re=0;re<G;re++)p[_[re]]=U}else p[I]=U}return this.options.layoutId&&(p.pointerEvents=m===this?zh(a==null?void 0:a.pointerEvents)||"":"none"),p}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(a=>{var c;return(c=a.currentAnimation)===null||c===void 0?void 0:c.stop()}),this.root.nodes.forEach(GS),this.root.sharedNodes.clear()}}}function y5(t){t.updateLayout()}function b5(t){var e;const n=((e=t.resumeFrom)===null||e===void 0?void 0:e.snapshot)||t.snapshot;if(t.isLead()&&t.layout&&n&&t.hasListeners("didUpdate")){const{layoutBox:r,measuredBox:i}=t.layout,{animationType:o}=t.options,a=n.source!==t.layout.source;o==="size"?Ps(m=>{const T=a?n.measuredBox[m]:n.layoutBox[m],E=es(T);T.min=r[m].min,T.max=T.min+E}):TD(o,n.layoutBox,r)&&Ps(m=>{const T=a?n.measuredBox[m]:n.layoutBox[m],E=es(r[m]);T.max=T.min+E,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[m].max=t.relativeTarget[m].min+E)});const c=xf();Ed(c,r,n.layoutBox);const d=xf();a?Ed(d,t.applyTransform(i,!0),n.measuredBox):Ed(d,r,n.layoutBox);const p=!wD(c);let w=!1;if(!t.resumeFrom){const m=t.getClosestProjectingParent();if(m&&!m.resumeFrom){const{snapshot:T,layout:E}=m;if(T&&E){const A=Er();kd(A,n.layoutBox,T.layoutBox);const I=Er();kd(I,r,E.layoutBox),xD(A,I)||(w=!0),m.options.layoutRoot&&(t.relativeTarget=I,t.relativeTargetOrigin=A,t.relativeParent=m)}}}t.notifyListeners("didUpdate",{layout:r,snapshot:n,delta:d,layoutDelta:c,hasLayoutChanged:p,hasRelativeTargetChanged:w})}else if(t.isLead()){const{onExitComplete:r}=t.options;r&&r()}t.options.transition=void 0}function w5(t){pc.totalNodes++,t.parent&&(t.isProjecting()||(t.isProjectionDirty=t.parent.isProjectionDirty),t.isSharedProjectionDirty||(t.isSharedProjectionDirty=!!(t.isProjectionDirty||t.parent.isProjectionDirty||t.parent.isSharedProjectionDirty)),t.isTransformDirty||(t.isTransformDirty=t.parent.isTransformDirty))}function x5(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function S5(t){t.clearSnapshot()}function GS(t){t.clearMeasurements()}function T5(t){t.isLayoutDirty=!1}function C5(t){const{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function qS(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function E5(t){t.resolveTargetDelta()}function k5(t){t.calcProjection()}function D5(t){t.resetRotation()}function P5(t){t.removeLeadSnapshot()}function XS(t,e,n){t.translate=Zn(e.translate,0,n),t.scale=Zn(e.scale,1,n),t.origin=e.origin,t.originPoint=e.originPoint}function KS(t,e,n,r){t.min=Zn(e.min,n.min,r),t.max=Zn(e.max,n.max,r)}function O5(t,e,n,r){KS(t.x,e.x,n.x,r),KS(t.y,e.y,n.y,r)}function _5(t){return t.animationValues&&t.animationValues.opacityExit!==void 0}const R5={duration:.45,ease:[.4,0,.1,1]},ZS=t=>typeof navigator<"u"&&navigator.userAgent.toLowerCase().includes(t),JS=ZS("applewebkit/")&&!ZS("chrome/")?Math.round:sr;function QS(t){t.min=JS(t.min),t.max=JS(t.max)}function A5(t){QS(t.x),QS(t.y)}function TD(t,e,n){return t==="position"||t==="preserve-aspect"&&!vv(US(e),US(n),.2)}const I5=SD({attachResizeListener:(t,e)=>wl(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),am={current:void 0},CD=SD({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!am.current){const t=new I5({});t.mount(window),t.setOptions({layoutScroll:!0}),am.current=t}return am.current},resetTransform:(t,e)=>{t.style.transform=e!==void 0?e:"none"},checkIsScrollRoot:t=>window.getComputedStyle(t).position==="fixed"}),M5={pan:{Feature:Kz},drag:{Feature:Xz,ProjectionNode:CD,MeasureLayout:vD}},L5=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function F5(t){const e=L5.exec(t);if(!e)return[,];const[,n,r]=e;return[n,r]}const N5=4;function xv(t,e,n=1){aa(n<=N5,`Max CSS variable fallback depth detected in property "${t}". This may indicate a circular fallback dependency.`);const[r,i]=F5(t);if(!r)return;const o=window.getComputedStyle(e).getPropertyValue(r);if(o){const a=o.trim();return sD(a)?parseFloat(a):a}else return cv(i)?xv(i,e,n+1):i}function j5(t,{...e},n){const r=t.current;if(!(r instanceof Element))return{target:e,transitionEnd:n};n&&(n={...n}),t.values.forEach(i=>{const o=i.get();if(!cv(o))return;const a=xv(o,r);a&&i.set(a)});for(const i in e){const o=e[i];if(!cv(o))continue;const a=xv(o,r);a&&(e[i]=a,n||(n={}),n[i]===void 0&&(n[i]=o))}return{target:e,transitionEnd:n}}const B5=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),ED=t=>B5.has(t),$5=t=>Object.keys(t).some(ED),_h=t=>t===Ac||t===Rt,e1=(t,e)=>parseFloat(t.split(", ")[e]),t1=(t,e)=>(n,{transform:r})=>{if(r==="none"||!r)return 0;const i=r.match(/^matrix3d\((.+)\)$/);if(i)return e1(i[1],e);{const o=r.match(/^matrix\((.+)\)$/);return o?e1(o[1],t):0}},V5=new Set(["x","y","z"]),H5=Kd.filter(t=>!V5.has(t));function U5(t){const e=[];return H5.forEach(n=>{const r=t.getValue(n);r!==void 0&&(e.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),e.length&&t.render(),e}const Rf={width:({x:t},{paddingLeft:e="0",paddingRight:n="0"})=>t.max-t.min-parseFloat(e)-parseFloat(n),height:({y:t},{paddingTop:e="0",paddingBottom:n="0"})=>t.max-t.min-parseFloat(e)-parseFloat(n),top:(t,{top:e})=>parseFloat(e),left:(t,{left:e})=>parseFloat(e),bottom:({y:t},{top:e})=>parseFloat(e)+(t.max-t.min),right:({x:t},{left:e})=>parseFloat(e)+(t.max-t.min),x:t1(4,13),y:t1(5,14)};Rf.translateX=Rf.x;Rf.translateY=Rf.y;const W5=(t,e,n)=>{const r=e.measureViewportBox(),i=e.current,o=getComputedStyle(i),{display:a}=o,c={};a==="none"&&e.setStaticValue("display",t.display||"block"),n.forEach(p=>{c[p]=Rf[p](r,o)}),e.render();const d=e.measureViewportBox();return n.forEach(p=>{const w=e.getValue(p);w&&w.jump(c[p]),t[p]=Rf[p](d,o)}),t},z5=(t,e,n={},r={})=>{e={...e},r={...r};const i=Object.keys(e).filter(ED);let o=[],a=!1;const c=[];if(i.forEach(d=>{const p=t.getValue(d);if(!t.hasValue(d))return;let w=n[d],m=ad(w);const T=e[d];let E;if(hp(T)){const A=T.length,I=T[0]===null?1:0;w=T[I],m=ad(w);for(let j=I;j<A&&T[j]!==null;j++)E?aa(ad(T[j])===E,"All keyframes must be of the same type"):(E=ad(T[j]),aa(E===m||_h(m)&&_h(E),"Keyframes must be of the same dimension as the current value"))}else E=ad(T);if(m!==E)if(_h(m)&&_h(E)){const A=p.get();typeof A=="string"&&p.set(parseFloat(A)),typeof T=="string"?e[d]=parseFloat(T):Array.isArray(T)&&E===Rt&&(e[d]=T.map(parseFloat))}else m!=null&&m.transform&&(E!=null&&E.transform)&&(w===0||T===0)?w===0?p.set(E.transform(w)):e[d]=m.transform(T):(a||(o=U5(t),a=!0),c.push(d),r[d]=r[d]!==void 0?r[d]:e[d],p.jump(T))}),c.length){const d=c.indexOf("height")>=0?window.pageYOffset:null,p=W5(e,t,c);return o.length&&o.forEach(([w,m])=>{t.getValue(w).set(m)}),t.render(),Vp&&d!==null&&window.scrollTo({top:d}),{target:p,transitionEnd:r}}else return{target:e,transitionEnd:r}};function Y5(t,e,n,r){return $5(e)?z5(t,e,n,r):{target:e,transitionEnd:r}}const G5=(t,e,n,r)=>{const i=j5(t,e,r);return e=i.target,r=i.transitionEnd,Y5(t,e,n,r)},Sv={current:null},kD={current:!1};function q5(){if(kD.current=!0,!!Vp)if(window.matchMedia){const t=window.matchMedia("(prefers-reduced-motion)"),e=()=>Sv.current=t.matches;t.addListener(e),e()}else Sv.current=!1}function X5(t,e,n){const{willChange:r}=e;for(const i in e){const o=e[i],a=n[i];if(Ro(o))t.addValue(i,o),vp(r)&&r.add(i),process.env.NODE_ENV==="development"&&Jy(o.version==="10.18.0",`Attempting to mix Framer Motion versions ${o.version} with 10.18.0 may not work as expected.`);else if(Ro(a))t.addValue(i,_f(o,{owner:t})),vp(r)&&r.remove(i);else if(a!==o)if(t.hasValue(i)){const c=t.getValue(i);!c.hasAnimated&&c.set(o)}else{const c=t.getStaticValue(i);t.addValue(i,_f(c!==void 0?c:o,{owner:t}))}}for(const i in n)e[i]===void 0&&t.removeValue(i);return e}const n1=new WeakMap,DD=Object.keys(jd),K5=DD.length,r1=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],Z5=Ly.length;class J5{constructor({parent:e,props:n,presenceContext:r,reducedMotionConfig:i,visualState:o},a={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.scheduleRender=()=>Ln.render(this.render,!1,!0);const{latestValues:c,renderState:d}=o;this.latestValues=c,this.baseTarget={...c},this.initialValues=n.initial?{...c}:{},this.renderState=d,this.parent=e,this.props=n,this.presenceContext=r,this.depth=e?e.depth+1:0,this.reducedMotionConfig=i,this.options=a,this.isControllingVariants=Up(n),this.isVariantNode=fk(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);const{willChange:p,...w}=this.scrapeMotionValuesFromProps(n,{});for(const m in w){const T=w[m];c[m]!==void 0&&Ro(T)&&(T.set(c[m],!1),vp(p)&&p.add(m))}}scrapeMotionValuesFromProps(e,n){return{}}mount(e){this.current=e,n1.set(e,this),this.projection&&!this.projection.instance&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((n,r)=>this.bindToMotionValue(r,n)),kD.current||q5(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:Sv.current,process.env.NODE_ENV!=="production"&&Jy(this.shouldReduceMotion!==!0,"You have Reduced Motion enabled on your device. Animations may not appear as expected."),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){n1.delete(this.current),this.projection&&this.projection.unmount(),Dl(this.notifyUpdate),Dl(this.render),this.valueSubscriptions.forEach(e=>e()),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const e in this.events)this.events[e].clear();for(const e in this.features)this.features[e].unmount();this.current=null}bindToMotionValue(e,n){const r=Rc.has(e),i=n.on("change",a=>{this.latestValues[e]=a,this.props.onUpdate&&Ln.update(this.notifyUpdate,!1,!0),r&&this.projection&&(this.projection.isTransformDirty=!0)}),o=n.on("renderRequest",this.scheduleRender);this.valueSubscriptions.set(e,()=>{i(),o()})}sortNodePosition(e){return!this.current||!this.sortInstanceNodePosition||this.type!==e.type?0:this.sortInstanceNodePosition(this.current,e.current)}loadFeatures({children:e,...n},r,i,o){let a,c;if(process.env.NODE_ENV!=="production"&&i&&r){const d="You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.";n.ignoreStrict?Qd(!1,d):aa(!1,d)}for(let d=0;d<K5;d++){const p=DD[d],{isEnabled:w,Feature:m,ProjectionNode:T,MeasureLayout:E}=jd[p];T&&(a=T),w(n)&&(!this.features[p]&&m&&(this.features[p]=new m(this)),E&&(c=E))}if((this.type==="html"||this.type==="svg")&&!this.projection&&a){this.projection=new a(this.latestValues,this.parent&&this.parent.projection);const{layoutId:d,layout:p,drag:w,dragConstraints:m,layoutScroll:T,layoutRoot:E}=n;this.projection.setOptions({layoutId:d,layout:p,alwaysMeasureLayout:!!w||m&&bf(m),visualElement:this,scheduleRender:()=>this.scheduleRender(),animationType:typeof p=="string"?p:"both",initialPromotionConfig:o,layoutScroll:T,layoutRoot:E})}return c}updateFeatures(){for(const e in this.features){const n=this.features[e];n.isMounted?n.update():(n.mount(),n.isMounted=!0)}}triggerBuild(){this.build(this.renderState,this.latestValues,this.options,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):Er()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,n){this.latestValues[e]=n}makeTargetAnimatable(e,n=!0){return this.makeTargetAnimatableFromInstance(e,this.props,n)}update(e,n){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let r=0;r<r1.length;r++){const i=r1[r];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);const o=e["on"+i];o&&(this.propEventSubscriptions[i]=this.on(i,o))}this.prevMotionValues=X5(this,this.scrapeMotionValuesFromProps(e,this.prevProps),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(e){return this.props.variants?this.props.variants[e]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}getVariantContext(e=!1){if(e)return this.parent?this.parent.getVariantContext():void 0;if(!this.isControllingVariants){const r=this.parent?this.parent.getVariantContext()||{}:{};return this.props.initial!==void 0&&(r.initial=this.props.initial),r}const n={};for(let r=0;r<Z5;r++){const i=Ly[r],o=this.props[i];(Nd(o)||o===!1)&&(n[i]=o)}return n}addVariantChild(e){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(e),()=>n.variantChildren.delete(e)}addValue(e,n){n!==this.values.get(e)&&(this.removeValue(e),this.bindToMotionValue(e,n)),this.values.set(e,n),this.latestValues[e]=n.get()}removeValue(e){this.values.delete(e);const n=this.valueSubscriptions.get(e);n&&(n(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,n){if(this.props.values&&this.props.values[e])return this.props.values[e];let r=this.values.get(e);return r===void 0&&n!==void 0&&(r=_f(n,{owner:this}),this.addValue(e,r)),r}readValue(e){var n;return this.latestValues[e]!==void 0||!this.current?this.latestValues[e]:(n=this.getBaseTargetFromProps(this.props,e))!==null&&n!==void 0?n:this.readValueFromInstance(this.current,e,this.options)}setBaseTarget(e,n){this.baseTarget[e]=n}getBaseTarget(e){var n;const{initial:r}=this.props,i=typeof r=="string"||typeof r=="object"?(n=Hy(this.props,r))===null||n===void 0?void 0:n[e]:void 0;if(r&&i!==void 0)return i;const o=this.getBaseTargetFromProps(this.props,e);return o!==void 0&&!Ro(o)?o:this.initialValues[e]!==void 0&&i===void 0?void 0:this.baseTarget[e]}on(e,n){return this.events[e]||(this.events[e]=new Zy),this.events[e].add(n)}notify(e,...n){this.events[e]&&this.events[e].notify(...n)}}class PD extends J5{sortInstanceNodePosition(e,n){return e.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(e,n){return e.style?e.style[n]:void 0}removeValueFromRenderState(e,{vars:n,style:r}){delete n[e],delete r[e]}makeTargetAnimatableFromInstance({transition:e,transitionEnd:n,...r},{transformValues:i},o){let a=pz(r,e||{},this);if(i&&(n&&(n=i(n)),r&&(r=i(r)),a&&(a=i(a))),o){dz(this,r,a);const c=G5(this,r,a,n);n=c.transitionEnd,r=c.target}return{transition:e,transitionEnd:n,...r}}}function Q5(t){return window.getComputedStyle(t)}class e4 extends PD{constructor(){super(...arguments),this.type="html"}readValueFromInstance(e,n){if(Rc.has(n)){const r=Yy(n);return r&&r.default||0}else{const r=Q5(e),i=(mk(n)?r.getPropertyValue(n):r[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(e,{transformPagePoint:n}){return gD(e,n)}build(e,n,r,i){Ny(e,n,r,i.transformTemplate)}scrapeMotionValuesFromProps(e,n){return Vy(e,n)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:e}=this.props;Ro(e)&&(this.childSubscription=e.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}renderInstance(e,n,r,i){Sk(e,n,r,i)}}class t4 extends PD{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1}getBaseTargetFromProps(e,n){return e[n]}readValueFromInstance(e,n){if(Rc.has(n)){const r=Yy(n);return r&&r.default||0}return n=Tk.has(n)?n:Iy(n),e.getAttribute(n)}measureInstanceViewportBox(){return Er()}scrapeMotionValuesFromProps(e,n){return Ek(e,n)}build(e,n,r,i){By(e,n,r,this.isSVGTag,i.transformTemplate)}renderInstance(e,n,r,i){Ck(e,n,r,i)}mount(e){this.isSVGTag=$y(e.tagName),super.mount(e)}}const n4=(t,e)=>Fy(t)?new t4(e,{enableHardwareAcceleration:!1}):new e4(e,{enableHardwareAcceleration:!0}),r4={layout:{ProjectionNode:CD,MeasureLayout:vD}},i4={...Oz,...ZU,...M5,...r4},OD=oU((t,e)=>jU(t,e,i4,n4));function _D(t){return Ep({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M463 192H315.9L271.2 58.6C269 52.1 262.9 48 256 48s-13 4.1-15.2 10.6L196.1 192H48c-8.8 0-16 7.2-16 16 0 .9.1 1.9.3 2.7.2 3.5 1.8 7.4 6.7 11.3l120.9 85.2-46.4 134.9c-2.3 6.5 0 13.8 5.5 18 2.9 2.1 5.6 3.9 9 3.9 3.3 0 7.2-1.7 10-3.6l118-84.1 118 84.1c2.8 2 6.7 3.6 10 3.6 3.4 0 6.1-1.7 8.9-3.9 5.6-4.2 7.8-11.4 5.5-18L352 307.2l119.9-86 2.9-2.5c2.6-2.8 5.2-6.6 5.2-10.7 0-8.8-8.2-16-17-16zm-127.2 92.5c-10 7.2-14.2 20.2-10.2 31.8l30.1 87.7c1.3 3.7-2.9 6.8-6.1 4.6l-77.4-55.2c-4.9-3.5-10.6-5.2-16.3-5.2-5.7 0-11.4 1.7-16.2 5.2l-77.4 55.1c-3.2 2.3-7.4-.9-6.1-4.6l30.1-87.7c4-11.8-.2-24.8-10.3-32l-81-57.1c-3.2-2.2-1.6-7.3 2.3-7.3H196c12 0 22.7-7.7 26.5-19.1l29.6-88.2c1.2-3.6 6.4-3.6 7.6 0l29.6 88.2c3.8 11.4 14.5 19.1 26.5 19.1h97.3c3.9 0 5.5 5 2.3 7.2l-79.6 57.5z"},child:[]}]})(t)}function RD(t){return Ep({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M256 372.686L380.83 448l-33.021-142.066L458 210.409l-145.267-12.475L256 64l-56.743 133.934L54 210.409l110.192 95.525L131.161 448z"},child:[]}]})(t)}function Qy(t,e){return e?t:void 0}function o4(t){return Re.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",fill:"currentColor",viewBox:"0 0 16 16",...t,children:Re.jsx("path",{fill:"currenColor",d:"M4.427 7.427l3.396 3.396a.25.25 0 00.354 0l3.396-3.396A.25.25 0 0011.396 7H4.604a.25.25 0 00-.177.427z"})})}function s4(t){const{renderChildren:e,parentRef:n,onlyChild:r}=t,[i,o]=X.useState({top:0,left:0}),a=X.useRef(null),[c,d]=X.useState("auto");return X.useLayoutEffect(()=>{if(n.current&&a.current){const p=n.current.getBoundingClientRect(),w=a.current.getBoundingClientRect();let m=p.top;const T=p.left+p.width,E=w.height+(window.innerHeight-p.top)>window.innerHeight;E&&(console.log("overtop"),d(window.innerHeight-p.top-50)),p.top+w.height>window.innerHeight&&!E&&(m=p.top-w.height+p.height),o({top:m,left:T})}},[n,a]),r?e({maxHeight:c}):Lv.createPortal(Re.jsx("div",{ref:a,style:{position:"fixed",top:i.top,left:i.left,zIndex:1200},onDragStart:p=>{console.log("onDragStart Dropdown",p.target)},children:e({maxHeight:c})}),n.current)}function lm(t,e,n){if(n||arguments.length===2)for(var r=0,i=e.length,o;r<i;r++)(o||!(r in e))&&(o||(o=Array.prototype.slice.call(e,0,r)),o[r]=e[r]);return t.concat(o||Array.prototype.slice.call(e))}/*!
9
9
  * content-type
10
10
  * Copyright(c) 2015 Douglas Christopher Wilson
11
11
  * MIT Licensed
12
- */var n1=/; *([!#$%&'*+.^_`|~0-9A-Za-z-]+) *= *("(?:[\u000b\u0020\u0021\u0023-\u005b\u005d-\u007e\u0080-\u00ff]|\\[\u000b\u0020-\u00ff])*"|[!#$%&'*+.^_`|~0-9A-Za-z-]+) */g,t4=/\\([\u000b\u0020-\u00ff])/g,n4=/^[!#$%&'*+.^_`|~0-9A-Za-z-]+\/[!#$%&'*+.^_`|~0-9A-Za-z-]+$/,r4=i4;function i4(t){if(!t)throw new TypeError("argument string is required");var e=typeof t=="object"?o4(t):t;if(typeof e!="string")throw new TypeError("argument string is required to be a string");var n=e.indexOf(";"),r=n!==-1?e.slice(0,n).trim():e.trim();if(!n4.test(r))throw new TypeError("invalid media type");var i=new s4(r.toLowerCase());if(n!==-1){var o,a,c;for(n1.lastIndex=n;a=n1.exec(e);){if(a.index!==n)throw new TypeError("invalid parameter format");n+=a[0].length,o=a[1].toLowerCase(),c=a[2],c.charCodeAt(0)===34&&(c=c.slice(1,-1),c.indexOf("\\")!==-1&&(c=c.replace(t4,"$1"))),i.parameters[o]=c}if(n!==e.length)throw new TypeError("invalid parameter format")}return i}function o4(t){var e;if(typeof t.getHeader=="function"?e=t.getHeader("content-type"):typeof t.headers=="object"&&(e=t.headers&&t.headers["content-type"]),typeof e!="string")throw new TypeError("content-type header is missing from object");return e}function s4(t){this.parameters=Object.create(null),this.type=t}var df=new Map,AD=function(e){return e.cloneNode(!0)},r1=function(){return window.location.protocol==="file:"},ID=function(e,n,r){var i=new XMLHttpRequest;i.onreadystatechange=function(){try{if(!/\.svg/i.test(e)&&i.readyState===2){var o=i.getResponseHeader("Content-Type");if(!o)throw new Error("Content type not found");var a=r4(o).type;if(!(a==="image/svg+xml"||a==="text/plain"))throw new Error("Invalid content type: ".concat(a))}if(i.readyState===4){if(i.status===404||i.responseXML===null)throw new Error(r1()?"Note: SVG injection ajax calls do not work locally without adjusting security settings in your browser. Or consider using a local webserver.":"Unable to load SVG file: "+e);if(i.status===200||r1()&&i.status===0)r(null,i);else throw new Error("There was a problem injecting the SVG: "+i.status+" "+i.statusText)}}catch(c){if(i.abort(),c instanceof Error)r(c,i);else throw c}},i.open("GET",e),i.withCredentials=n,i.overrideMimeType&&i.overrideMimeType("text/xml"),i.send()},uu={},i1=function(e,n){uu[e]=uu[e]||[],uu[e].push(n)},a4=function(e){for(var n=function(a,c){setTimeout(function(){if(Array.isArray(uu[e])){var d=df.get(e),p=uu[e][a];d instanceof SVGSVGElement&&p(null,AD(d)),d instanceof Error&&p(d),a===uu[e].length-1&&delete uu[e]}},0)},r=0,i=uu[e].length;r<i;r++)n(r)},l4=function(e,n,r){if(df.has(e)){var i=df.get(e);if(i===void 0){i1(e,r);return}if(i instanceof SVGSVGElement){r(null,AD(i));return}}df.set(e,void 0),i1(e,r),ID(e,n,function(o,a){var c;o?df.set(e,o):((c=a.responseXML)===null||c===void 0?void 0:c.documentElement)instanceof SVGSVGElement&&df.set(e,a.responseXML.documentElement),a4(e)})},u4=function(e,n,r){ID(e,n,function(i,o){var a;i?r(i):((a=o.responseXML)===null||a===void 0?void 0:a.documentElement)instanceof SVGSVGElement&&r(null,o.responseXML.documentElement)})},c4=0,f4=function(){return++c4},La=[],o1={},d4="http://www.w3.org/2000/svg",um="http://www.w3.org/1999/xlink",s1=function(e,n,r,i,o,a,c){var d=e.getAttribute("data-src")||e.getAttribute("src");if(!d){c(new Error("Invalid data-src or src attribute"));return}if(La.indexOf(e)!==-1){La.splice(La.indexOf(e),1),e=null;return}La.push(e),e.setAttribute("src","");var p=i?l4:u4;p(d,o,function(w,m){if(!m){La.splice(La.indexOf(e),1),e=null,c(w);return}var T=e.getAttribute("id");T&&m.setAttribute("id",T);var E=e.getAttribute("title");E&&m.setAttribute("title",E);var A=e.getAttribute("width");A&&m.setAttribute("width",A);var I=e.getAttribute("height");I&&m.setAttribute("height",I);var j=Array.from(new Set(lm(lm(lm([],(m.getAttribute("class")||"").split(" "),!0),["injected-svg"],!1),(e.getAttribute("class")||"").split(" "),!0))).join(" ").trim();m.setAttribute("class",j);var _=e.getAttribute("style");_&&m.setAttribute("style",_),m.setAttribute("data-src",d);var U=[].filter.call(e.attributes,function(Be){return/^data-\w[\w-]*$/.test(Be.name)});if(Array.prototype.forEach.call(U,function(Be){Be.name&&Be.value&&m.setAttribute(Be.name,Be.value)}),r){var G={clipPath:["clip-path"],"color-profile":["color-profile"],cursor:["cursor"],filter:["filter"],linearGradient:["fill","stroke"],marker:["marker","marker-start","marker-mid","marker-end"],mask:["mask"],path:[],pattern:["fill","stroke"],radialGradient:["fill","stroke"]},re,q,se,S,ue;Object.keys(G).forEach(function(Be){re=Be,se=G[Be],q=m.querySelectorAll(re+"[id]");for(var Ze=function(Qe,Ye){S=q[Qe].id,ue=S+"-"+f4();var Ke;Array.prototype.forEach.call(se,function(At){Ke=m.querySelectorAll("["+At+'*="'+S+'"]');for(var Mt=0,Vn=Ke.length;Mt<Vn;Mt++){var mr=Ke[Mt].getAttribute(At);mr&&!mr.match(new RegExp('url\\("?#'+S+'"?\\)'))||Ke[Mt].setAttribute(At,"url(#"+ue+")")}});for(var qe=m.querySelectorAll("[*|href]"),ot=[],ct=0,pt=qe.length;ct<pt;ct++){var ft=qe[ct].getAttributeNS(um,"href");ft&&ft.toString()==="#"+q[Qe].id&&ot.push(qe[ct])}for(var yt=0,Je=ot.length;yt<Je;yt++)ot[yt].setAttributeNS(um,"href","#"+ue);q[Qe].id=ue},ve=0,Se=q.length;ve<Se;ve++)Ze(ve)})}m.removeAttribute("xmlns:a");for(var ae=m.querySelectorAll("script"),Ue=[],nt,et,De=0,Me=ae.length;De<Me;De++)et=ae[De].getAttribute("type"),(!et||et==="application/ecmascript"||et==="application/javascript"||et==="text/javascript")&&(nt=ae[De].innerText||ae[De].textContent,nt&&Ue.push(nt),m.removeChild(ae[De]));if(Ue.length>0&&(n==="always"||n==="once"&&!o1[d])){for(var fe=0,me=Ue.length;fe<me;fe++)new Function(Ue[fe])(window);o1[d]=!0}var Pe=m.querySelectorAll("style");if(Array.prototype.forEach.call(Pe,function(Be){Be.textContent+=""}),m.setAttribute("xmlns",d4),m.setAttribute("xmlns:xlink",um),a(m),!e.parentNode){La.splice(La.indexOf(e),1),e=null,c(new Error("Parent node is null"));return}e.parentNode.replaceChild(m,e),La.splice(La.indexOf(e),1),e=null,c(null,m)})},h4=function(e,n){var r=n===void 0?{}:n,i=r.afterAll,o=i===void 0?function(){}:i,a=r.afterEach,c=a===void 0?function(){}:a,d=r.beforeEach,p=d===void 0?function(){}:d,w=r.cacheRequests,m=w===void 0?!0:w,T=r.evalScripts,E=T===void 0?"never":T,A=r.httpRequestWithCredentials,I=A===void 0?!1:A,j=r.renumerateIRIElements,_=j===void 0?!0:j;if(e&&"length"in e)for(var U=0,G=0,re=e.length;G<re;G++)s1(e[G],E,_,m,I,p,function(q,se){c(q,se),e&&"length"in e&&e.length===++U&&o(U)});else e?s1(e,E,_,m,I,p,function(q,se){c(q,se),o(1),e=null}):o(0)},Tv={exports:{}},Rh={exports:{}},mn={};/** @license React v16.13.1
12
+ */var i1=/; *([!#$%&'*+.^_`|~0-9A-Za-z-]+) *= *("(?:[\u000b\u0020\u0021\u0023-\u005b\u005d-\u007e\u0080-\u00ff]|\\[\u000b\u0020-\u00ff])*"|[!#$%&'*+.^_`|~0-9A-Za-z-]+) */g,a4=/\\([\u000b\u0020-\u00ff])/g,l4=/^[!#$%&'*+.^_`|~0-9A-Za-z-]+\/[!#$%&'*+.^_`|~0-9A-Za-z-]+$/,u4=c4;function c4(t){if(!t)throw new TypeError("argument string is required");var e=typeof t=="object"?f4(t):t;if(typeof e!="string")throw new TypeError("argument string is required to be a string");var n=e.indexOf(";"),r=n!==-1?e.slice(0,n).trim():e.trim();if(!l4.test(r))throw new TypeError("invalid media type");var i=new d4(r.toLowerCase());if(n!==-1){var o,a,c;for(i1.lastIndex=n;a=i1.exec(e);){if(a.index!==n)throw new TypeError("invalid parameter format");n+=a[0].length,o=a[1].toLowerCase(),c=a[2],c.charCodeAt(0)===34&&(c=c.slice(1,-1),c.indexOf("\\")!==-1&&(c=c.replace(a4,"$1"))),i.parameters[o]=c}if(n!==e.length)throw new TypeError("invalid parameter format")}return i}function f4(t){var e;if(typeof t.getHeader=="function"?e=t.getHeader("content-type"):typeof t.headers=="object"&&(e=t.headers&&t.headers["content-type"]),typeof e!="string")throw new TypeError("content-type header is missing from object");return e}function d4(t){this.parameters=Object.create(null),this.type=t}var df=new Map,AD=function(e){return e.cloneNode(!0)},o1=function(){return window.location.protocol==="file:"},ID=function(e,n,r){var i=new XMLHttpRequest;i.onreadystatechange=function(){try{if(!/\.svg/i.test(e)&&i.readyState===2){var o=i.getResponseHeader("Content-Type");if(!o)throw new Error("Content type not found");var a=u4(o).type;if(!(a==="image/svg+xml"||a==="text/plain"))throw new Error("Invalid content type: ".concat(a))}if(i.readyState===4){if(i.status===404||i.responseXML===null)throw new Error(o1()?"Note: SVG injection ajax calls do not work locally without adjusting security settings in your browser. Or consider using a local webserver.":"Unable to load SVG file: "+e);if(i.status===200||o1()&&i.status===0)r(null,i);else throw new Error("There was a problem injecting the SVG: "+i.status+" "+i.statusText)}}catch(c){if(i.abort(),c instanceof Error)r(c,i);else throw c}},i.open("GET",e),i.withCredentials=n,i.overrideMimeType&&i.overrideMimeType("text/xml"),i.send()},uu={},s1=function(e,n){uu[e]=uu[e]||[],uu[e].push(n)},h4=function(e){for(var n=function(a,c){setTimeout(function(){if(Array.isArray(uu[e])){var d=df.get(e),p=uu[e][a];d instanceof SVGSVGElement&&p(null,AD(d)),d instanceof Error&&p(d),a===uu[e].length-1&&delete uu[e]}},0)},r=0,i=uu[e].length;r<i;r++)n(r)},p4=function(e,n,r){if(df.has(e)){var i=df.get(e);if(i===void 0){s1(e,r);return}if(i instanceof SVGSVGElement){r(null,AD(i));return}}df.set(e,void 0),s1(e,r),ID(e,n,function(o,a){var c;o?df.set(e,o):((c=a.responseXML)===null||c===void 0?void 0:c.documentElement)instanceof SVGSVGElement&&df.set(e,a.responseXML.documentElement),h4(e)})},g4=function(e,n,r){ID(e,n,function(i,o){var a;i?r(i):((a=o.responseXML)===null||a===void 0?void 0:a.documentElement)instanceof SVGSVGElement&&r(null,o.responseXML.documentElement)})},m4=0,v4=function(){return++m4},La=[],a1={},y4="http://www.w3.org/2000/svg",um="http://www.w3.org/1999/xlink",l1=function(e,n,r,i,o,a,c){var d=e.getAttribute("data-src")||e.getAttribute("src");if(!d){c(new Error("Invalid data-src or src attribute"));return}if(La.indexOf(e)!==-1){La.splice(La.indexOf(e),1),e=null;return}La.push(e),e.setAttribute("src","");var p=i?p4:g4;p(d,o,function(w,m){if(!m){La.splice(La.indexOf(e),1),e=null,c(w);return}var T=e.getAttribute("id");T&&m.setAttribute("id",T);var E=e.getAttribute("title");E&&m.setAttribute("title",E);var A=e.getAttribute("width");A&&m.setAttribute("width",A);var I=e.getAttribute("height");I&&m.setAttribute("height",I);var j=Array.from(new Set(lm(lm(lm([],(m.getAttribute("class")||"").split(" "),!0),["injected-svg"],!1),(e.getAttribute("class")||"").split(" "),!0))).join(" ").trim();m.setAttribute("class",j);var _=e.getAttribute("style");_&&m.setAttribute("style",_),m.setAttribute("data-src",d);var U=[].filter.call(e.attributes,function(Be){return/^data-\w[\w-]*$/.test(Be.name)});if(Array.prototype.forEach.call(U,function(Be){Be.name&&Be.value&&m.setAttribute(Be.name,Be.value)}),r){var G={clipPath:["clip-path"],"color-profile":["color-profile"],cursor:["cursor"],filter:["filter"],linearGradient:["fill","stroke"],marker:["marker","marker-start","marker-mid","marker-end"],mask:["mask"],path:[],pattern:["fill","stroke"],radialGradient:["fill","stroke"]},re,q,se,S,ue;Object.keys(G).forEach(function(Be){re=Be,se=G[Be],q=m.querySelectorAll(re+"[id]");for(var Ze=function(Qe,Ye){S=q[Qe].id,ue=S+"-"+v4();var Ke;Array.prototype.forEach.call(se,function(At){Ke=m.querySelectorAll("["+At+'*="'+S+'"]');for(var Mt=0,Vn=Ke.length;Mt<Vn;Mt++){var mr=Ke[Mt].getAttribute(At);mr&&!mr.match(new RegExp('url\\("?#'+S+'"?\\)'))||Ke[Mt].setAttribute(At,"url(#"+ue+")")}});for(var qe=m.querySelectorAll("[*|href]"),ot=[],ct=0,pt=qe.length;ct<pt;ct++){var ft=qe[ct].getAttributeNS(um,"href");ft&&ft.toString()==="#"+q[Qe].id&&ot.push(qe[ct])}for(var yt=0,Je=ot.length;yt<Je;yt++)ot[yt].setAttributeNS(um,"href","#"+ue);q[Qe].id=ue},ve=0,Se=q.length;ve<Se;ve++)Ze(ve)})}m.removeAttribute("xmlns:a");for(var ae=m.querySelectorAll("script"),Ue=[],nt,et,De=0,Me=ae.length;De<Me;De++)et=ae[De].getAttribute("type"),(!et||et==="application/ecmascript"||et==="application/javascript"||et==="text/javascript")&&(nt=ae[De].innerText||ae[De].textContent,nt&&Ue.push(nt),m.removeChild(ae[De]));if(Ue.length>0&&(n==="always"||n==="once"&&!a1[d])){for(var fe=0,me=Ue.length;fe<me;fe++)new Function(Ue[fe])(window);a1[d]=!0}var Pe=m.querySelectorAll("style");if(Array.prototype.forEach.call(Pe,function(Be){Be.textContent+=""}),m.setAttribute("xmlns",y4),m.setAttribute("xmlns:xlink",um),a(m),!e.parentNode){La.splice(La.indexOf(e),1),e=null,c(new Error("Parent node is null"));return}e.parentNode.replaceChild(m,e),La.splice(La.indexOf(e),1),e=null,c(null,m)})},b4=function(e,n){var r=n===void 0?{}:n,i=r.afterAll,o=i===void 0?function(){}:i,a=r.afterEach,c=a===void 0?function(){}:a,d=r.beforeEach,p=d===void 0?function(){}:d,w=r.cacheRequests,m=w===void 0?!0:w,T=r.evalScripts,E=T===void 0?"never":T,A=r.httpRequestWithCredentials,I=A===void 0?!1:A,j=r.renumerateIRIElements,_=j===void 0?!0:j;if(e&&"length"in e)for(var U=0,G=0,re=e.length;G<re;G++)l1(e[G],E,_,m,I,p,function(q,se){c(q,se),e&&"length"in e&&e.length===++U&&o(U)});else e?l1(e,E,_,m,I,p,function(q,se){c(q,se),o(1),e=null}):o(0)},Tv={exports:{}},Rh={exports:{}},mn={};/** @license React v16.13.1
13
13
  * react-is.production.min.js
14
14
  *
15
15
  * Copyright (c) Facebook, Inc. and its affiliates.
16
16
  *
17
17
  * This source code is licensed under the MIT license found in the
18
18
  * LICENSE file in the root directory of this source tree.
19
- */var a1;function p4(){if(a1)return mn;a1=1;var t=typeof Symbol=="function"&&Symbol.for,e=t?Symbol.for("react.element"):60103,n=t?Symbol.for("react.portal"):60106,r=t?Symbol.for("react.fragment"):60107,i=t?Symbol.for("react.strict_mode"):60108,o=t?Symbol.for("react.profiler"):60114,a=t?Symbol.for("react.provider"):60109,c=t?Symbol.for("react.context"):60110,d=t?Symbol.for("react.async_mode"):60111,p=t?Symbol.for("react.concurrent_mode"):60111,w=t?Symbol.for("react.forward_ref"):60112,m=t?Symbol.for("react.suspense"):60113,T=t?Symbol.for("react.suspense_list"):60120,E=t?Symbol.for("react.memo"):60115,A=t?Symbol.for("react.lazy"):60116,I=t?Symbol.for("react.block"):60121,j=t?Symbol.for("react.fundamental"):60117,_=t?Symbol.for("react.responder"):60118,U=t?Symbol.for("react.scope"):60119;function G(q){if(typeof q=="object"&&q!==null){var se=q.$$typeof;switch(se){case e:switch(q=q.type,q){case d:case p:case r:case o:case i:case m:return q;default:switch(q=q&&q.$$typeof,q){case c:case w:case A:case E:case a:return q;default:return se}}case n:return se}}}function re(q){return G(q)===p}return mn.AsyncMode=d,mn.ConcurrentMode=p,mn.ContextConsumer=c,mn.ContextProvider=a,mn.Element=e,mn.ForwardRef=w,mn.Fragment=r,mn.Lazy=A,mn.Memo=E,mn.Portal=n,mn.Profiler=o,mn.StrictMode=i,mn.Suspense=m,mn.isAsyncMode=function(q){return re(q)||G(q)===d},mn.isConcurrentMode=re,mn.isContextConsumer=function(q){return G(q)===c},mn.isContextProvider=function(q){return G(q)===a},mn.isElement=function(q){return typeof q=="object"&&q!==null&&q.$$typeof===e},mn.isForwardRef=function(q){return G(q)===w},mn.isFragment=function(q){return G(q)===r},mn.isLazy=function(q){return G(q)===A},mn.isMemo=function(q){return G(q)===E},mn.isPortal=function(q){return G(q)===n},mn.isProfiler=function(q){return G(q)===o},mn.isStrictMode=function(q){return G(q)===i},mn.isSuspense=function(q){return G(q)===m},mn.isValidElementType=function(q){return typeof q=="string"||typeof q=="function"||q===r||q===p||q===o||q===i||q===m||q===T||typeof q=="object"&&q!==null&&(q.$$typeof===A||q.$$typeof===E||q.$$typeof===a||q.$$typeof===c||q.$$typeof===w||q.$$typeof===j||q.$$typeof===_||q.$$typeof===U||q.$$typeof===I)},mn.typeOf=G,mn}var vn={};/** @license React v16.13.1
19
+ */var u1;function w4(){if(u1)return mn;u1=1;var t=typeof Symbol=="function"&&Symbol.for,e=t?Symbol.for("react.element"):60103,n=t?Symbol.for("react.portal"):60106,r=t?Symbol.for("react.fragment"):60107,i=t?Symbol.for("react.strict_mode"):60108,o=t?Symbol.for("react.profiler"):60114,a=t?Symbol.for("react.provider"):60109,c=t?Symbol.for("react.context"):60110,d=t?Symbol.for("react.async_mode"):60111,p=t?Symbol.for("react.concurrent_mode"):60111,w=t?Symbol.for("react.forward_ref"):60112,m=t?Symbol.for("react.suspense"):60113,T=t?Symbol.for("react.suspense_list"):60120,E=t?Symbol.for("react.memo"):60115,A=t?Symbol.for("react.lazy"):60116,I=t?Symbol.for("react.block"):60121,j=t?Symbol.for("react.fundamental"):60117,_=t?Symbol.for("react.responder"):60118,U=t?Symbol.for("react.scope"):60119;function G(q){if(typeof q=="object"&&q!==null){var se=q.$$typeof;switch(se){case e:switch(q=q.type,q){case d:case p:case r:case o:case i:case m:return q;default:switch(q=q&&q.$$typeof,q){case c:case w:case A:case E:case a:return q;default:return se}}case n:return se}}}function re(q){return G(q)===p}return mn.AsyncMode=d,mn.ConcurrentMode=p,mn.ContextConsumer=c,mn.ContextProvider=a,mn.Element=e,mn.ForwardRef=w,mn.Fragment=r,mn.Lazy=A,mn.Memo=E,mn.Portal=n,mn.Profiler=o,mn.StrictMode=i,mn.Suspense=m,mn.isAsyncMode=function(q){return re(q)||G(q)===d},mn.isConcurrentMode=re,mn.isContextConsumer=function(q){return G(q)===c},mn.isContextProvider=function(q){return G(q)===a},mn.isElement=function(q){return typeof q=="object"&&q!==null&&q.$$typeof===e},mn.isForwardRef=function(q){return G(q)===w},mn.isFragment=function(q){return G(q)===r},mn.isLazy=function(q){return G(q)===A},mn.isMemo=function(q){return G(q)===E},mn.isPortal=function(q){return G(q)===n},mn.isProfiler=function(q){return G(q)===o},mn.isStrictMode=function(q){return G(q)===i},mn.isSuspense=function(q){return G(q)===m},mn.isValidElementType=function(q){return typeof q=="string"||typeof q=="function"||q===r||q===p||q===o||q===i||q===m||q===T||typeof q=="object"&&q!==null&&(q.$$typeof===A||q.$$typeof===E||q.$$typeof===a||q.$$typeof===c||q.$$typeof===w||q.$$typeof===j||q.$$typeof===_||q.$$typeof===U||q.$$typeof===I)},mn.typeOf=G,mn}var vn={};/** @license React v16.13.1
20
20
  * react-is.development.js
21
21
  *
22
22
  * Copyright (c) Facebook, Inc. and its affiliates.
23
23
  *
24
24
  * This source code is licensed under the MIT license found in the
25
25
  * LICENSE file in the root directory of this source tree.
26
- */var l1;function g4(){return l1||(l1=1,process.env.NODE_ENV!=="production"&&function(){var t=typeof Symbol=="function"&&Symbol.for,e=t?Symbol.for("react.element"):60103,n=t?Symbol.for("react.portal"):60106,r=t?Symbol.for("react.fragment"):60107,i=t?Symbol.for("react.strict_mode"):60108,o=t?Symbol.for("react.profiler"):60114,a=t?Symbol.for("react.provider"):60109,c=t?Symbol.for("react.context"):60110,d=t?Symbol.for("react.async_mode"):60111,p=t?Symbol.for("react.concurrent_mode"):60111,w=t?Symbol.for("react.forward_ref"):60112,m=t?Symbol.for("react.suspense"):60113,T=t?Symbol.for("react.suspense_list"):60120,E=t?Symbol.for("react.memo"):60115,A=t?Symbol.for("react.lazy"):60116,I=t?Symbol.for("react.block"):60121,j=t?Symbol.for("react.fundamental"):60117,_=t?Symbol.for("react.responder"):60118,U=t?Symbol.for("react.scope"):60119;function G(Je){return typeof Je=="string"||typeof Je=="function"||Je===r||Je===p||Je===o||Je===i||Je===m||Je===T||typeof Je=="object"&&Je!==null&&(Je.$$typeof===A||Je.$$typeof===E||Je.$$typeof===a||Je.$$typeof===c||Je.$$typeof===w||Je.$$typeof===j||Je.$$typeof===_||Je.$$typeof===U||Je.$$typeof===I)}function re(Je){if(typeof Je=="object"&&Je!==null){var At=Je.$$typeof;switch(At){case e:var Mt=Je.type;switch(Mt){case d:case p:case r:case o:case i:case m:return Mt;default:var Vn=Mt&&Mt.$$typeof;switch(Vn){case c:case w:case A:case E:case a:return Vn;default:return At}}case n:return At}}}var q=d,se=p,S=c,ue=a,ae=e,Ue=w,nt=r,et=A,De=E,Me=n,fe=o,me=i,Pe=m,Be=!1;function Ze(Je){return Be||(Be=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),ve(Je)||re(Je)===d}function ve(Je){return re(Je)===p}function Se(Je){return re(Je)===c}function je(Je){return re(Je)===a}function Qe(Je){return typeof Je=="object"&&Je!==null&&Je.$$typeof===e}function Ye(Je){return re(Je)===w}function Ke(Je){return re(Je)===r}function qe(Je){return re(Je)===A}function ot(Je){return re(Je)===E}function ct(Je){return re(Je)===n}function pt(Je){return re(Je)===o}function ft(Je){return re(Je)===i}function yt(Je){return re(Je)===m}vn.AsyncMode=q,vn.ConcurrentMode=se,vn.ContextConsumer=S,vn.ContextProvider=ue,vn.Element=ae,vn.ForwardRef=Ue,vn.Fragment=nt,vn.Lazy=et,vn.Memo=De,vn.Portal=Me,vn.Profiler=fe,vn.StrictMode=me,vn.Suspense=Pe,vn.isAsyncMode=Ze,vn.isConcurrentMode=ve,vn.isContextConsumer=Se,vn.isContextProvider=je,vn.isElement=Qe,vn.isForwardRef=Ye,vn.isFragment=Ke,vn.isLazy=qe,vn.isMemo=ot,vn.isPortal=ct,vn.isProfiler=pt,vn.isStrictMode=ft,vn.isSuspense=yt,vn.isValidElementType=G,vn.typeOf=re}()),vn}var u1;function MD(){return u1||(u1=1,process.env.NODE_ENV==="production"?Rh.exports=p4():Rh.exports=g4()),Rh.exports}/*
26
+ */var c1;function x4(){return c1||(c1=1,process.env.NODE_ENV!=="production"&&function(){var t=typeof Symbol=="function"&&Symbol.for,e=t?Symbol.for("react.element"):60103,n=t?Symbol.for("react.portal"):60106,r=t?Symbol.for("react.fragment"):60107,i=t?Symbol.for("react.strict_mode"):60108,o=t?Symbol.for("react.profiler"):60114,a=t?Symbol.for("react.provider"):60109,c=t?Symbol.for("react.context"):60110,d=t?Symbol.for("react.async_mode"):60111,p=t?Symbol.for("react.concurrent_mode"):60111,w=t?Symbol.for("react.forward_ref"):60112,m=t?Symbol.for("react.suspense"):60113,T=t?Symbol.for("react.suspense_list"):60120,E=t?Symbol.for("react.memo"):60115,A=t?Symbol.for("react.lazy"):60116,I=t?Symbol.for("react.block"):60121,j=t?Symbol.for("react.fundamental"):60117,_=t?Symbol.for("react.responder"):60118,U=t?Symbol.for("react.scope"):60119;function G(Je){return typeof Je=="string"||typeof Je=="function"||Je===r||Je===p||Je===o||Je===i||Je===m||Je===T||typeof Je=="object"&&Je!==null&&(Je.$$typeof===A||Je.$$typeof===E||Je.$$typeof===a||Je.$$typeof===c||Je.$$typeof===w||Je.$$typeof===j||Je.$$typeof===_||Je.$$typeof===U||Je.$$typeof===I)}function re(Je){if(typeof Je=="object"&&Je!==null){var At=Je.$$typeof;switch(At){case e:var Mt=Je.type;switch(Mt){case d:case p:case r:case o:case i:case m:return Mt;default:var Vn=Mt&&Mt.$$typeof;switch(Vn){case c:case w:case A:case E:case a:return Vn;default:return At}}case n:return At}}}var q=d,se=p,S=c,ue=a,ae=e,Ue=w,nt=r,et=A,De=E,Me=n,fe=o,me=i,Pe=m,Be=!1;function Ze(Je){return Be||(Be=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),ve(Je)||re(Je)===d}function ve(Je){return re(Je)===p}function Se(Je){return re(Je)===c}function je(Je){return re(Je)===a}function Qe(Je){return typeof Je=="object"&&Je!==null&&Je.$$typeof===e}function Ye(Je){return re(Je)===w}function Ke(Je){return re(Je)===r}function qe(Je){return re(Je)===A}function ot(Je){return re(Je)===E}function ct(Je){return re(Je)===n}function pt(Je){return re(Je)===o}function ft(Je){return re(Je)===i}function yt(Je){return re(Je)===m}vn.AsyncMode=q,vn.ConcurrentMode=se,vn.ContextConsumer=S,vn.ContextProvider=ue,vn.Element=ae,vn.ForwardRef=Ue,vn.Fragment=nt,vn.Lazy=et,vn.Memo=De,vn.Portal=Me,vn.Profiler=fe,vn.StrictMode=me,vn.Suspense=Pe,vn.isAsyncMode=Ze,vn.isConcurrentMode=ve,vn.isContextConsumer=Se,vn.isContextProvider=je,vn.isElement=Qe,vn.isForwardRef=Ye,vn.isFragment=Ke,vn.isLazy=qe,vn.isMemo=ot,vn.isPortal=ct,vn.isProfiler=pt,vn.isStrictMode=ft,vn.isSuspense=yt,vn.isValidElementType=G,vn.typeOf=re}()),vn}var f1;function MD(){return f1||(f1=1,process.env.NODE_ENV==="production"?Rh.exports=w4():Rh.exports=x4()),Rh.exports}/*
27
27
  object-assign
28
28
  (c) Sindre Sorhus
29
29
  @license MIT
30
- */var cm,c1;function m4(){if(c1)return cm;c1=1;var t=Object.getOwnPropertySymbols,e=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;function r(o){if(o==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(o)}function i(){try{if(!Object.assign)return!1;var o=new String("abc");if(o[5]="de",Object.getOwnPropertyNames(o)[0]==="5")return!1;for(var a={},c=0;c<10;c++)a["_"+String.fromCharCode(c)]=c;var d=Object.getOwnPropertyNames(a).map(function(w){return a[w]});if(d.join("")!=="0123456789")return!1;var p={};return"abcdefghijklmnopqrst".split("").forEach(function(w){p[w]=w}),Object.keys(Object.assign({},p)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return cm=i()?Object.assign:function(o,a){for(var c,d=r(o),p,w=1;w<arguments.length;w++){c=Object(arguments[w]);for(var m in c)e.call(c,m)&&(d[m]=c[m]);if(t){p=t(c);for(var T=0;T<p.length;T++)n.call(c,p[T])&&(d[p[T]]=c[p[T]])}}return d},cm}var fm,f1;function eb(){if(f1)return fm;f1=1;var t="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return fm=t,fm}var dm,d1;function LD(){return d1||(d1=1,dm=Function.call.bind(Object.prototype.hasOwnProperty)),dm}var hm,h1;function v4(){if(h1)return hm;h1=1;var t=function(){};if(process.env.NODE_ENV!=="production"){var e=eb(),n={},r=LD();t=function(o){var a="Warning: "+o;typeof console<"u"&&console.error(a);try{throw new Error(a)}catch{}}}function i(o,a,c,d,p){if(process.env.NODE_ENV!=="production"){for(var w in o)if(r(o,w)){var m;try{if(typeof o[w]!="function"){var T=Error((d||"React class")+": "+c+" type `"+w+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof o[w]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw T.name="Invariant Violation",T}m=o[w](a,w,d,c,null,e)}catch(A){m=A}if(m&&!(m instanceof Error)&&t((d||"React class")+": type specification of "+c+" `"+w+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof m+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),m instanceof Error&&!(m.message in n)){n[m.message]=!0;var E=p?p():"";t("Failed "+c+" type: "+m.message+(E??""))}}}}return i.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(n={})},hm=i,hm}var pm,p1;function y4(){if(p1)return pm;p1=1;var t=MD(),e=m4(),n=eb(),r=LD(),i=v4(),o=function(){};process.env.NODE_ENV!=="production"&&(o=function(c){var d="Warning: "+c;typeof console<"u"&&console.error(d);try{throw new Error(d)}catch{}});function a(){return null}return pm=function(c,d){var p=typeof Symbol=="function"&&Symbol.iterator,w="@@iterator";function m(ve){var Se=ve&&(p&&ve[p]||ve[w]);if(typeof Se=="function")return Se}var T="<<anonymous>>",E={array:_("array"),bigint:_("bigint"),bool:_("boolean"),func:_("function"),number:_("number"),object:_("object"),string:_("string"),symbol:_("symbol"),any:U(),arrayOf:G,element:re(),elementType:q(),instanceOf:se,node:Ue(),objectOf:ue,oneOf:S,oneOfType:ae,shape:et,exact:De};function A(ve,Se){return ve===Se?ve!==0||1/ve===1/Se:ve!==ve&&Se!==Se}function I(ve,Se){this.message=ve,this.data=Se&&typeof Se=="object"?Se:{},this.stack=""}I.prototype=Error.prototype;function j(ve){if(process.env.NODE_ENV!=="production")var Se={},je=0;function Qe(Ke,qe,ot,ct,pt,ft,yt){if(ct=ct||T,ft=ft||ot,yt!==n){if(d){var Je=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw Je.name="Invariant Violation",Je}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var At=ct+":"+ot;!Se[At]&&je<3&&(o("You are manually calling a React.PropTypes validation function for the `"+ft+"` prop on `"+ct+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),Se[At]=!0,je++)}}return qe[ot]==null?Ke?qe[ot]===null?new I("The "+pt+" `"+ft+"` is marked as required "+("in `"+ct+"`, but its value is `null`.")):new I("The "+pt+" `"+ft+"` is marked as required in "+("`"+ct+"`, but its value is `undefined`.")):null:ve(qe,ot,ct,pt,ft)}var Ye=Qe.bind(null,!1);return Ye.isRequired=Qe.bind(null,!0),Ye}function _(ve){function Se(je,Qe,Ye,Ke,qe,ot){var ct=je[Qe],pt=me(ct);if(pt!==ve){var ft=Pe(ct);return new I("Invalid "+Ke+" `"+qe+"` of type "+("`"+ft+"` supplied to `"+Ye+"`, expected ")+("`"+ve+"`."),{expectedType:ve})}return null}return j(Se)}function U(){return j(a)}function G(ve){function Se(je,Qe,Ye,Ke,qe){if(typeof ve!="function")return new I("Property `"+qe+"` of component `"+Ye+"` has invalid PropType notation inside arrayOf.");var ot=je[Qe];if(!Array.isArray(ot)){var ct=me(ot);return new I("Invalid "+Ke+" `"+qe+"` of type "+("`"+ct+"` supplied to `"+Ye+"`, expected an array."))}for(var pt=0;pt<ot.length;pt++){var ft=ve(ot,pt,Ye,Ke,qe+"["+pt+"]",n);if(ft instanceof Error)return ft}return null}return j(Se)}function re(){function ve(Se,je,Qe,Ye,Ke){var qe=Se[je];if(!c(qe)){var ot=me(qe);return new I("Invalid "+Ye+" `"+Ke+"` of type "+("`"+ot+"` supplied to `"+Qe+"`, expected a single ReactElement."))}return null}return j(ve)}function q(){function ve(Se,je,Qe,Ye,Ke){var qe=Se[je];if(!t.isValidElementType(qe)){var ot=me(qe);return new I("Invalid "+Ye+" `"+Ke+"` of type "+("`"+ot+"` supplied to `"+Qe+"`, expected a single ReactElement type."))}return null}return j(ve)}function se(ve){function Se(je,Qe,Ye,Ke,qe){if(!(je[Qe]instanceof ve)){var ot=ve.name||T,ct=Ze(je[Qe]);return new I("Invalid "+Ke+" `"+qe+"` of type "+("`"+ct+"` supplied to `"+Ye+"`, expected ")+("instance of `"+ot+"`."))}return null}return j(Se)}function S(ve){if(!Array.isArray(ve))return process.env.NODE_ENV!=="production"&&(arguments.length>1?o("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):o("Invalid argument supplied to oneOf, expected an array.")),a;function Se(je,Qe,Ye,Ke,qe){for(var ot=je[Qe],ct=0;ct<ve.length;ct++)if(A(ot,ve[ct]))return null;var pt=JSON.stringify(ve,function(yt,Je){var At=Pe(Je);return At==="symbol"?String(Je):Je});return new I("Invalid "+Ke+" `"+qe+"` of value `"+String(ot)+"` "+("supplied to `"+Ye+"`, expected one of "+pt+"."))}return j(Se)}function ue(ve){function Se(je,Qe,Ye,Ke,qe){if(typeof ve!="function")return new I("Property `"+qe+"` of component `"+Ye+"` has invalid PropType notation inside objectOf.");var ot=je[Qe],ct=me(ot);if(ct!=="object")return new I("Invalid "+Ke+" `"+qe+"` of type "+("`"+ct+"` supplied to `"+Ye+"`, expected an object."));for(var pt in ot)if(r(ot,pt)){var ft=ve(ot,pt,Ye,Ke,qe+"."+pt,n);if(ft instanceof Error)return ft}return null}return j(Se)}function ae(ve){if(!Array.isArray(ve))return process.env.NODE_ENV!=="production"&&o("Invalid argument supplied to oneOfType, expected an instance of array."),a;for(var Se=0;Se<ve.length;Se++){var je=ve[Se];if(typeof je!="function")return o("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+Be(je)+" at index "+Se+"."),a}function Qe(Ye,Ke,qe,ot,ct){for(var pt=[],ft=0;ft<ve.length;ft++){var yt=ve[ft],Je=yt(Ye,Ke,qe,ot,ct,n);if(Je==null)return null;Je.data&&r(Je.data,"expectedType")&&pt.push(Je.data.expectedType)}var At=pt.length>0?", expected one of type ["+pt.join(", ")+"]":"";return new I("Invalid "+ot+" `"+ct+"` supplied to "+("`"+qe+"`"+At+"."))}return j(Qe)}function Ue(){function ve(Se,je,Qe,Ye,Ke){return Me(Se[je])?null:new I("Invalid "+Ye+" `"+Ke+"` supplied to "+("`"+Qe+"`, expected a ReactNode."))}return j(ve)}function nt(ve,Se,je,Qe,Ye){return new I((ve||"React class")+": "+Se+" type `"+je+"."+Qe+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+Ye+"`.")}function et(ve){function Se(je,Qe,Ye,Ke,qe){var ot=je[Qe],ct=me(ot);if(ct!=="object")return new I("Invalid "+Ke+" `"+qe+"` of type `"+ct+"` "+("supplied to `"+Ye+"`, expected `object`."));for(var pt in ve){var ft=ve[pt];if(typeof ft!="function")return nt(Ye,Ke,qe,pt,Pe(ft));var yt=ft(ot,pt,Ye,Ke,qe+"."+pt,n);if(yt)return yt}return null}return j(Se)}function De(ve){function Se(je,Qe,Ye,Ke,qe){var ot=je[Qe],ct=me(ot);if(ct!=="object")return new I("Invalid "+Ke+" `"+qe+"` of type `"+ct+"` "+("supplied to `"+Ye+"`, expected `object`."));var pt=e({},je[Qe],ve);for(var ft in pt){var yt=ve[ft];if(r(ve,ft)&&typeof yt!="function")return nt(Ye,Ke,qe,ft,Pe(yt));if(!yt)return new I("Invalid "+Ke+" `"+qe+"` key `"+ft+"` supplied to `"+Ye+"`.\nBad object: "+JSON.stringify(je[Qe],null," ")+`
31
- Valid keys: `+JSON.stringify(Object.keys(ve),null," "));var Je=yt(ot,ft,Ye,Ke,qe+"."+ft,n);if(Je)return Je}return null}return j(Se)}function Me(ve){switch(typeof ve){case"number":case"string":case"undefined":return!0;case"boolean":return!ve;case"object":if(Array.isArray(ve))return ve.every(Me);if(ve===null||c(ve))return!0;var Se=m(ve);if(Se){var je=Se.call(ve),Qe;if(Se!==ve.entries){for(;!(Qe=je.next()).done;)if(!Me(Qe.value))return!1}else for(;!(Qe=je.next()).done;){var Ye=Qe.value;if(Ye&&!Me(Ye[1]))return!1}}else return!1;return!0;default:return!1}}function fe(ve,Se){return ve==="symbol"?!0:Se?Se["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&Se instanceof Symbol:!1}function me(ve){var Se=typeof ve;return Array.isArray(ve)?"array":ve instanceof RegExp?"object":fe(Se,ve)?"symbol":Se}function Pe(ve){if(typeof ve>"u"||ve===null)return""+ve;var Se=me(ve);if(Se==="object"){if(ve instanceof Date)return"date";if(ve instanceof RegExp)return"regexp"}return Se}function Be(ve){var Se=Pe(ve);switch(Se){case"array":case"object":return"an "+Se;case"boolean":case"date":case"regexp":return"a "+Se;default:return Se}}function Ze(ve){return!ve.constructor||!ve.constructor.name?T:ve.constructor.name}return E.checkPropTypes=i,E.resetWarningCache=i.resetWarningCache,E.PropTypes=E,E},pm}var gm,g1;function b4(){if(g1)return gm;g1=1;var t=eb();function e(){}function n(){}return n.resetWarningCache=e,gm=function(){function r(a,c,d,p,w,m){if(m!==t){var T=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw T.name="Invariant Violation",T}}r.isRequired=r;function i(){return r}var o={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:i,element:r,elementType:r,instanceOf:i,node:r,objectOf:i,oneOf:i,oneOfType:i,shape:i,exact:i,checkPropTypes:n,resetWarningCache:e};return o.PropTypes=o,o},gm}if(process.env.NODE_ENV!=="production"){var w4=MD(),x4=!0;Tv.exports=y4()(w4.isElement,x4)}else Tv.exports=b4()();var Cr=Tv.exports;const _s=Oc(Cr);var S4=function(e){var n=(e==null?void 0:e.ownerDocument)||document;return n.defaultView||window},T4=function(e,n){for(var r in e)if(!(r in n))return!0;for(var i in n)if(e[i]!==n[i])return!0;return!1},C4=["afterInjection","beforeInjection","desc","evalScripts","fallback","httpRequestWithCredentials","loading","renumerateIRIElements","src","title","useRequestCache","wrapper"],Ah="http://www.w3.org/2000/svg",m1="http://www.w3.org/1999/xlink",Gp=function(t){function e(){for(var r,i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return r=t.call.apply(t,[this].concat(o))||this,r.initialState={hasError:!1,isLoading:!0},r.state=r.initialState,r._isMounted=!1,r.reactWrapper=void 0,r.nonReactWrapper=void 0,r.refCallback=function(c){r.reactWrapper=c},r}RD(e,t);var n=e.prototype;return n.renderSVG=function(){var i=this;if(this.reactWrapper instanceof S4(this.reactWrapper).Node){var o=this.props,a=o.desc,c=o.evalScripts,d=o.httpRequestWithCredentials,p=o.renumerateIRIElements,w=o.src,m=o.title,T=o.useRequestCache,E=this.props.onError,A=this.props.beforeInjection,I=this.props.afterInjection,j=this.props.wrapper,_,U;j==="svg"?(_=document.createElementNS(Ah,j),_.setAttribute("xmlns",Ah),_.setAttribute("xmlns:xlink",m1),U=document.createElementNS(Ah,j)):(_=document.createElement(j),U=document.createElement(j)),_.appendChild(U),U.dataset.src=w,this.nonReactWrapper=this.reactWrapper.appendChild(_);var G=function(S){if(i.removeSVG(),!i._isMounted){E(S);return}i.setState(function(){return{hasError:!0,isLoading:!1}},function(){E(S)})},re=function(S,ue){if(S){G(S);return}i._isMounted&&i.setState(function(){return{isLoading:!1}},function(){try{I(ue)}catch(ae){G(ae)}})},q=function(S){if(S.setAttribute("role","img"),a){var ue=S.querySelector(":scope > desc");ue&&S.removeChild(ue);var ae=document.createElement("desc");ae.innerHTML=a,S.prepend(ae)}if(m){var Ue=S.querySelector(":scope > title");Ue&&S.removeChild(Ue);var nt=document.createElement("title");nt.innerHTML=m,S.prepend(nt)}try{A(S)}catch(et){G(et)}};h4(U,{afterEach:re,beforeEach:q,cacheRequests:T,evalScripts:c,httpRequestWithCredentials:d,renumerateIRIElements:p})}},n.removeSVG=function(){var i;(i=this.nonReactWrapper)!=null&&i.parentNode&&(this.nonReactWrapper.parentNode.removeChild(this.nonReactWrapper),this.nonReactWrapper=null)},n.componentDidMount=function(){this._isMounted=!0,this.renderSVG()},n.componentDidUpdate=function(i){var o=this;T4(Rf({},i),this.props)&&this.setState(function(){return o.initialState},function(){o.removeSVG(),o.renderSVG()})},n.componentWillUnmount=function(){this._isMounted=!1,this.removeSVG()},n.render=function(){var i=this.props;i.afterInjection,i.beforeInjection,i.desc,i.evalScripts;var o=i.fallback;i.httpRequestWithCredentials;var a=i.loading;i.renumerateIRIElements,i.src,i.title,i.useRequestCache;var c=i.wrapper,d=jv(i,C4),p=c;return kn.createElement(p,Rf({},d,{ref:this.refCallback},c==="svg"?{xmlns:Ah,xmlnsXlink:m1}:{}),this.state.isLoading&&a&&kn.createElement(a,null),this.state.hasError&&o&&kn.createElement(o,null))},e}(kn.Component);Gp.defaultProps={afterInjection:function(){},beforeInjection:function(){},desc:"",evalScripts:"never",fallback:null,httpRequestWithCredentials:!1,loading:null,onError:function(){},renumerateIRIElements:!0,title:"",useRequestCache:!0,wrapper:"div"};Gp.propTypes={afterInjection:Cr.func,beforeInjection:Cr.func,desc:Cr.string,evalScripts:Cr.oneOf(["always","once","never"]),fallback:Cr.oneOfType([Cr.func,Cr.object,Cr.string]),httpRequestWithCredentials:Cr.bool,loading:Cr.oneOfType([Cr.func,Cr.object,Cr.string]),onError:Cr.func,renumerateIRIElements:Cr.bool,src:Cr.string.isRequired,title:Cr.string,useRequestCache:Cr.bool,wrapper:Cr.oneOf(["div","span","svg"])};const Af=new Map;Af.set("text",t=>{var e,n;return Re.jsx("div",{style:{width:24,height:24,backgroundColor:"#dadada",borderRadius:"5px",display:"flex",justifyContent:"center",alignItems:"center",lineHeight:"24px"},children:(n=(e=t==null?void 0:t.name)==null?void 0:e.trim().at(0))==null?void 0:n.toUpperCase()})});Af.set("svgHtml",t=>{function e(n){function r(o){const c=new DOMParser().parseFromString(o,"image/svg+xml").querySelector("svg");return c?(c.querySelectorAll("path").forEach(p=>{p.hasAttribute("fill")&&p.setAttribute("fill","currentColor"),p.hasAttribute("stroke")&&p.setAttribute("stroke","currentColor")}),c.outerHTML):""}const i=r(n.svgString);return Re.jsx("div",{dangerouslySetInnerHTML:{__html:i},style:{width:24,height:24,margin:"0 auto"}})}return Re.jsx(e,{svgString:t.icon})});Af.set("svgHttp",t=>Re.jsx(Gp,{src:t.icon,beforeInjection:e=>{e.setAttribute("style","margin: 0 auto;"),e.querySelectorAll("path").forEach(r=>{r.hasAttribute("fill")&&r.setAttribute("fill","currentColor"),r.hasAttribute("stroke")&&r.setAttribute("stroke","currentColor")})}}));Af.set("img",t=>Re.jsx("img",{src:t.icon||"/",alt:t.name,style:{height:24,maxHeight:24,maxWidth:24}}));function E4(t){return t.icon=(t.icon||"").trim(),t.icon?t.icon.startsWith("<svg")?"svgHtml":t.icon.endsWith(".svg")?"svgHttp":"img":"text"}function FD({item:t}){return(Af.get(E4(t))||Af.get("text"))(t)}function k4(t){return Re.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",fill:"currentColor",viewBox:"0 0 16 16",...t,children:Re.jsx("path",{fill:"currenColor",d:"M4.427 7.427l3.396 3.396a.25.25 0 00.354 0l3.396-3.396A.25.25 0 0011.396 7H4.604a.25.25 0 00-.177.427z"})})}function D4(t){const{renderChildren:e,parentRef:n,onlyChild:r,dropdownLevel:i}=t,[o,a]=X.useState({top:0,left:0}),c=X.useRef(null),[d,p]=X.useState("auto");return X.useLayoutEffect(()=>{if(n.current&&c.current){const w=n.current.getBoundingClientRect(),m=c.current.getBoundingClientRect();let T,E;if(i===1)T=w.bottom,E=w.left,m.height+T>window.innerHeight?(p(window.innerHeight-T-50),T=w.bottom-m.height):T=w.bottom;else if(i>1){T=w.top,E=w.left+w.width;const A=m.height+(window.innerHeight-w.top)>window.innerHeight;A&&(console.log("DropDown-fav overtop"),p(window.innerHeight-w.top-50)),w.top+m.height>window.innerHeight&&!A&&(T=w.top-m.height+w.height)}a({top:T-64,left:E})}},[n,c,i]),r?e({maxHeight:d}):Lv.createPortal(Re.jsx("div",{ref:c,style:{position:"fixed",top:o.top,left:`calc(${o.left}px - var(--global-menu-width))`,zIndex:1200},children:e({maxHeight:d})}),n.current)}const If=new Map;If.set("text",t=>{var e,n;return Re.jsx("div",{style:{width:24,height:24,backgroundColor:"#dadada",borderRadius:"5px",display:"flex",justifyContent:"center",alignItems:"center",lineHeight:"24px"},children:(n=(e=t==null?void 0:t.name)==null?void 0:e.trim().at(0))==null?void 0:n.toUpperCase()})});If.set("svgHtml",t=>{function e(n){function r(o){const c=new DOMParser().parseFromString(o,"image/svg+xml").querySelector("svg");return c?(c.querySelectorAll("path").forEach(p=>{p.hasAttribute("fill")&&p.setAttribute("fill","currentColor"),p.hasAttribute("stroke")&&p.setAttribute("stroke","currentColor")}),c.outerHTML):""}const i=r(n.svgString);return Re.jsx("div",{dangerouslySetInnerHTML:{__html:i},style:{width:24,height:24,margin:"0 auto"}})}return Re.jsx(e,{svgString:t.icon})});If.set("svgHttp",t=>Re.jsx(Gp,{src:t.icon,beforeInjection:e=>{e.setAttribute("style","margin: 0 auto;"),e.querySelectorAll("path").forEach(r=>{r.hasAttribute("fill")&&r.setAttribute("fill","currentColor"),r.hasAttribute("stroke")&&r.setAttribute("stroke","currentColor")})}}));If.set("img",t=>Re.jsx("img",{src:t.icon||"/",alt:t.name,style:{height:24,maxHeight:24,maxWidth:24}}));function P4(t){return t.icon=(t.icon||"").trim(),t.icon?t.icon.startsWith("<svg")?"svgHtml":t.icon.endsWith(".svg")?"svgHttp":"img":"text"}function O4({item:t}){return(If.get(P4(t))||If.get("text"))(t)}function ND({...t}){var Ue,nt,et;const e=t.item,n=t.level||0,r=!!((Ue=t.item.children)!=null&&Ue.length),i=`level-${n}`,o=(De,Me=i)=>`${De} ${Me} `,[a,c]=X.useState(!1),[d,p]=X.useState(e.isFavorite||!1),w=X.useRef(),m=X.useRef();m!=null&&m.current&&((nt=m==null?void 0:m.current)==null?void 0:nt.scrollWidth)>((et=m==null?void 0:m.current)==null?void 0:et.clientWidth);const T=window.location.origin,E=e.path&&e.path.includes("http")?new URL(e.path):{origin:"",pathname:""},A=window.location.pathname.split("/")[1],I=E.pathname.split("/")[1],j=t.item.redirectUrl||t.ssr||!T.includes("local")&&T!==E.origin||I!==A,_=r||n===0?"div":j?"a":Sp.Link,U=e.redirectUrl||e.path||"#",G=n+1,re=r&&a&&n>0,q=()=>{t.isDrop||c(!0)},se=()=>{c(!1)},S="/global-menu-config/api/v1/menu-items/user/set-favorite",ue=T!==E.origin||t.item.redirectUrl?"_blank":"_self",ae=Object.entries(t.brandColors||{}).reduce((De,[Me,fe])=>(fe&&(De[`--${Me}`]=fe),De),{});return Re.jsxs("div",{ref:w,className:o("menu-item__wrapper tree-node"),style:{borderRadius:"8px",transition:"all 0.3s",...ae},onMouseOver:q,onMouseOut:se,onDragStart:De=>{n>1&&De.preventDefault(),c(!1)},onDragEnd:()=>{console.log("drag end 1223"),c(!1)},children:[Re.jsxs(_,{target:ue,to:U,href:U,draggable:"true",className:o("menu-item__link"),style:{width:"100%",transition:"all 0.3s"},onDragStart:De=>{console.log("onDragStart component",De.target)},onDragEnd:()=>{console.log("onDragEnd menu item"),c(!1)},children:[Re.jsx(_4,{cls:o,item:e}),Re.jsx("span",{className:o("menu-item__label"),ref:m,children:e.name}),Re.jsx(R4,{menuLevel:n,hasChildren:r,isHovered:a,isFavorite:d,onClick:De=>{const Me={menuConfigId:e.id,isFavorite:De},fe=t.baseUrl+S;As.post(fe,Me).then(me=>{var Pe;p(De),zv("Set favorite menu item successfully"),(Pe=t.onSetFavoriteSuccess)==null||Pe.call(t,t.item.id,De)}).catch(me=>{var Pe,Be;console.log(" MenuItem.tsx ~ error:",me),Wd(((Be=(Pe=me.response)==null?void 0:Pe.data)==null?void 0:Be.errorMessage)||me.message||"Have error when set favorite menu item")})}}),r&&Re.jsx("div",{className:o("menu-item__icon-arrow__wrapper"),children:Re.jsx(k4,{className:o("menu-item__icon-arrow__icon")})})]}),re&&Re.jsx(D4,{parentRef:w,onlyChild:G<2,dropdownLevel:n,renderChildren:({maxHeight:De})=>{var Me;return Re.jsx(PD.div,{className:o("menu-item__dropdown dropdown-favorite ? 'menu-item__dropdown--open' : 'menu-item__dropdown--close'}",`level-${G}`),style:Qy({maxHeight:De,overflowY:"auto",paddingRight:3},De!=="auto"&&!!G),children:(Me=e.children)==null?void 0:Me.map(fe=>X.createElement(ND,{...t,key:fe.id,item:fe,level:G}))})}})]})}function _4({item:t,cls:e}){return Re.jsx("div",{className:e("menu-item__icon"),children:Re.jsx(O4,{item:t})})}function R4(t){const e={marginRight:t.hasChildren?10:0,fontSize:22,fill:ki.warning,minWidth:16};if(t.menuLevel!==0)return Re.jsxs(Re.Fragment,{children:[t.isHovered&&!t.isFavorite&&Re.jsx(sa.Tooltip,{title:"Add to favorites",children:Re.jsx(OD,{style:e,onClick:n=>{var r;n.preventDefault(),n.stopPropagation(),(r=t.onClick)==null||r.call(t,!0)}})}),t.isFavorite&&Re.jsx(sa.Tooltip,{title:"Remove from favorites",children:Re.jsx(_D,{style:e,onClick:n=>{var r;n.preventDefault(),n.stopPropagation(),(r=t.onClick)==null||r.call(t,!1)}})})]})}const A4='.flex-col-center{display:flex;flex-direction:column;justify-content:center}.wrap-section{transition:all .3s;padding:0 4px}.favorite-menu{display:flex;height:56px;border-right:1px solid #ddd;background-color:#fafafa;transition:all .2s ease-in-out;width:100%}.scrollbar-hidden::-webkit-scrollbar{width:2px;background:transparent}.favorite-menu__wrap-btn-logout,.favorite-menu__btn-logout{margin:40px 0}.favorite-menu__logout-btn__text{margin-left:12px;font-size:.875rem;opacity:0;transition:ease-in-out .2s;transition-delay:.15s}.favorite-menu__wrapper-toggle-btn{display:flex;flex-direction:row;justify-content:flex-end;transition:all .3s;margin-right:-8px;margin-top:40px;justify-content:center;width:100%}.favorite-menu__toggle-btn{margin-top:-6px;color:#85858a}.favorite-menu__logout-btn{width:100%;text-align:left;display:flex;flex-direction:row;align-items:center;padding:8px 16px 8px 18.6665px;min-height:48px;border-radius:.375rem;overflow:hidden;transition:all .3s ease-in-out;background-color:initial}.favorite-menu__logout-btn:hover{background-color:#919eab14}.favorite-menu__icon-logout{flex-shrink:0}.menu-item__wrapper{display:flex;position:relative;width:100%}.menu-item__link{display:flex;flex-direction:row;border-radius:.375rem;align-items:center;padding:.5rem;position:relative;height:48px;cursor:pointer;color:#85858a}.menu-item__link:hover{background-color:#919eab14}.menu-item__link.active{background-color:#009d4f1a;color:inherit}.menu-item__link.active.level-2,.menu-item__link.active.level-3,.menu-item__link.active.level-4,.menu-item__link.active.level-5,.menu-item__link.active.level-6,.menu-item__link.active.level-7,.menu-item__link.active.level-8,.menu-item__link.active.level-9,.menu-item__link.active.level-10{background-color:inherit;color:inherit}.menu-item__link.active.level-2:hover,.menu-item__link.active.level-3:hover,.menu-item__link.active.level-4:hover,.menu-item__link.active.level-5:hover,.menu-item__link.active.level-6:hover,.menu-item__link.active.level-7:hover,.menu-item__link.active.level-8:hover,.menu-item__link.active.level-9:hover,.menu-item__link.active.level-10:hover{background-color:#919eab14}.menu-item__link.menu-item__link.level-0{padding:0;background-color:#919eab14;transition:all .15s}.menu-item__icon{width:1.5rem;height:1.5rem;flex-shrink:0;display:grid;place-items:center}.menu-item__icon.level-1>*{margin:0 auto}.menu-item__label{font-size:.875rem;text-overflow:ellipsis;overflow:hidden;white-space:nowrap;width:100%;flex-shrink:1;margin-left:12px;padding-right:12px;color:#292929;opacity:1}.menu-item__label.level-1{text-overflow:unset}.menu-item__label.active{color:inherit}.menu-item__label{margin-left:8px;font-size:.75rem;line-height:1rem}.menu-item__label.level-0,.menu-item__label.level-1{font-size:.875rem;transition-delay:.15s}.menu-item__label.level-0{color:#85858a;margin-left:8px}.menu-item__icon-arrow__wrapper{display:grid;place-items:center;position:absolute;top:50%;transform:translateY(-50%);right:0}.menu-item__icon-arrow__wrapper.level-0{display:none}.menu-item__icon-arrow__icon{transition:all .3s!important;transform:rotate(-90deg)!important}.menu-item__icon-arrow__icon.active{color:inherit}.menu-item__icon-arrow__icon.open{transform:rotate(0)!important}.menu-item__dropdown{background-color:#fafafa;border:1px solid #ddd;box-shadow:#0000001a 0 10px 15px -3px,#0000000d 0 4px 6px -2px;border-radius:4px;width:210px;max-width:210px;padding:4px;z-index:1200}.menu-item__dropdown.dropdown-favorite{width:auto;min-width:180px;max-width:350px}.menu-item__dropdown::-webkit-scrollbar{width:4px}.menu-item__dropdown::-webkit-scrollbar-thumb{background-color:#9b9b9b99;border-radius:2px}.menu-item__dropdown,.menu-item__dropdown>*{margin-top:4px}.menu-item__dropdown:first-of-type{margin-top:0}.menu-item__dropdown>*:first-child{margin-top:0}.menu-item__dropdown .menu-item__link{height:40px}.menu-item__dropdown .menu-item__link.level-1{height:48px}.menu-item__dropdown.level-1{width:auto;max-width:unset;box-shadow:none;border:none;padding:0;background-color:unset}.icon-btn{display:inline-flex;align-items:center;justify-content:center;padding:8px;border-radius:50%;background-color:transparent;transition:background-color .3s ease;border:none}.icon-btn:hover{background-color:var(--btn-bg-hover)}.simplebar-scrollbar:before{background-color:#0000002d}.favorite-menu__menu .simplebar-track.simplebar-vertical{display:none}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}.treeFavorited{display:flex;align-items:center;margin:0 -5px}.treeFavorited li{margin:0 5px}.item.hover-on:before{content:"";position:absolute;top:0;left:0;height:100%;width:2px;background-color:var(--primary300)}';var ac={};/**
30
+ */var cm,d1;function S4(){if(d1)return cm;d1=1;var t=Object.getOwnPropertySymbols,e=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;function r(o){if(o==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(o)}function i(){try{if(!Object.assign)return!1;var o=new String("abc");if(o[5]="de",Object.getOwnPropertyNames(o)[0]==="5")return!1;for(var a={},c=0;c<10;c++)a["_"+String.fromCharCode(c)]=c;var d=Object.getOwnPropertyNames(a).map(function(w){return a[w]});if(d.join("")!=="0123456789")return!1;var p={};return"abcdefghijklmnopqrst".split("").forEach(function(w){p[w]=w}),Object.keys(Object.assign({},p)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return cm=i()?Object.assign:function(o,a){for(var c,d=r(o),p,w=1;w<arguments.length;w++){c=Object(arguments[w]);for(var m in c)e.call(c,m)&&(d[m]=c[m]);if(t){p=t(c);for(var T=0;T<p.length;T++)n.call(c,p[T])&&(d[p[T]]=c[p[T]])}}return d},cm}var fm,h1;function eb(){if(h1)return fm;h1=1;var t="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return fm=t,fm}var dm,p1;function LD(){return p1||(p1=1,dm=Function.call.bind(Object.prototype.hasOwnProperty)),dm}var hm,g1;function T4(){if(g1)return hm;g1=1;var t=function(){};if(process.env.NODE_ENV!=="production"){var e=eb(),n={},r=LD();t=function(o){var a="Warning: "+o;typeof console<"u"&&console.error(a);try{throw new Error(a)}catch{}}}function i(o,a,c,d,p){if(process.env.NODE_ENV!=="production"){for(var w in o)if(r(o,w)){var m;try{if(typeof o[w]!="function"){var T=Error((d||"React class")+": "+c+" type `"+w+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof o[w]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw T.name="Invariant Violation",T}m=o[w](a,w,d,c,null,e)}catch(A){m=A}if(m&&!(m instanceof Error)&&t((d||"React class")+": type specification of "+c+" `"+w+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof m+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),m instanceof Error&&!(m.message in n)){n[m.message]=!0;var E=p?p():"";t("Failed "+c+" type: "+m.message+(E??""))}}}}return i.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(n={})},hm=i,hm}var pm,m1;function C4(){if(m1)return pm;m1=1;var t=MD(),e=S4(),n=eb(),r=LD(),i=T4(),o=function(){};process.env.NODE_ENV!=="production"&&(o=function(c){var d="Warning: "+c;typeof console<"u"&&console.error(d);try{throw new Error(d)}catch{}});function a(){return null}return pm=function(c,d){var p=typeof Symbol=="function"&&Symbol.iterator,w="@@iterator";function m(ve){var Se=ve&&(p&&ve[p]||ve[w]);if(typeof Se=="function")return Se}var T="<<anonymous>>",E={array:_("array"),bigint:_("bigint"),bool:_("boolean"),func:_("function"),number:_("number"),object:_("object"),string:_("string"),symbol:_("symbol"),any:U(),arrayOf:G,element:re(),elementType:q(),instanceOf:se,node:Ue(),objectOf:ue,oneOf:S,oneOfType:ae,shape:et,exact:De};function A(ve,Se){return ve===Se?ve!==0||1/ve===1/Se:ve!==ve&&Se!==Se}function I(ve,Se){this.message=ve,this.data=Se&&typeof Se=="object"?Se:{},this.stack=""}I.prototype=Error.prototype;function j(ve){if(process.env.NODE_ENV!=="production")var Se={},je=0;function Qe(Ke,qe,ot,ct,pt,ft,yt){if(ct=ct||T,ft=ft||ot,yt!==n){if(d){var Je=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw Je.name="Invariant Violation",Je}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var At=ct+":"+ot;!Se[At]&&je<3&&(o("You are manually calling a React.PropTypes validation function for the `"+ft+"` prop on `"+ct+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),Se[At]=!0,je++)}}return qe[ot]==null?Ke?qe[ot]===null?new I("The "+pt+" `"+ft+"` is marked as required "+("in `"+ct+"`, but its value is `null`.")):new I("The "+pt+" `"+ft+"` is marked as required in "+("`"+ct+"`, but its value is `undefined`.")):null:ve(qe,ot,ct,pt,ft)}var Ye=Qe.bind(null,!1);return Ye.isRequired=Qe.bind(null,!0),Ye}function _(ve){function Se(je,Qe,Ye,Ke,qe,ot){var ct=je[Qe],pt=me(ct);if(pt!==ve){var ft=Pe(ct);return new I("Invalid "+Ke+" `"+qe+"` of type "+("`"+ft+"` supplied to `"+Ye+"`, expected ")+("`"+ve+"`."),{expectedType:ve})}return null}return j(Se)}function U(){return j(a)}function G(ve){function Se(je,Qe,Ye,Ke,qe){if(typeof ve!="function")return new I("Property `"+qe+"` of component `"+Ye+"` has invalid PropType notation inside arrayOf.");var ot=je[Qe];if(!Array.isArray(ot)){var ct=me(ot);return new I("Invalid "+Ke+" `"+qe+"` of type "+("`"+ct+"` supplied to `"+Ye+"`, expected an array."))}for(var pt=0;pt<ot.length;pt++){var ft=ve(ot,pt,Ye,Ke,qe+"["+pt+"]",n);if(ft instanceof Error)return ft}return null}return j(Se)}function re(){function ve(Se,je,Qe,Ye,Ke){var qe=Se[je];if(!c(qe)){var ot=me(qe);return new I("Invalid "+Ye+" `"+Ke+"` of type "+("`"+ot+"` supplied to `"+Qe+"`, expected a single ReactElement."))}return null}return j(ve)}function q(){function ve(Se,je,Qe,Ye,Ke){var qe=Se[je];if(!t.isValidElementType(qe)){var ot=me(qe);return new I("Invalid "+Ye+" `"+Ke+"` of type "+("`"+ot+"` supplied to `"+Qe+"`, expected a single ReactElement type."))}return null}return j(ve)}function se(ve){function Se(je,Qe,Ye,Ke,qe){if(!(je[Qe]instanceof ve)){var ot=ve.name||T,ct=Ze(je[Qe]);return new I("Invalid "+Ke+" `"+qe+"` of type "+("`"+ct+"` supplied to `"+Ye+"`, expected ")+("instance of `"+ot+"`."))}return null}return j(Se)}function S(ve){if(!Array.isArray(ve))return process.env.NODE_ENV!=="production"&&(arguments.length>1?o("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):o("Invalid argument supplied to oneOf, expected an array.")),a;function Se(je,Qe,Ye,Ke,qe){for(var ot=je[Qe],ct=0;ct<ve.length;ct++)if(A(ot,ve[ct]))return null;var pt=JSON.stringify(ve,function(yt,Je){var At=Pe(Je);return At==="symbol"?String(Je):Je});return new I("Invalid "+Ke+" `"+qe+"` of value `"+String(ot)+"` "+("supplied to `"+Ye+"`, expected one of "+pt+"."))}return j(Se)}function ue(ve){function Se(je,Qe,Ye,Ke,qe){if(typeof ve!="function")return new I("Property `"+qe+"` of component `"+Ye+"` has invalid PropType notation inside objectOf.");var ot=je[Qe],ct=me(ot);if(ct!=="object")return new I("Invalid "+Ke+" `"+qe+"` of type "+("`"+ct+"` supplied to `"+Ye+"`, expected an object."));for(var pt in ot)if(r(ot,pt)){var ft=ve(ot,pt,Ye,Ke,qe+"."+pt,n);if(ft instanceof Error)return ft}return null}return j(Se)}function ae(ve){if(!Array.isArray(ve))return process.env.NODE_ENV!=="production"&&o("Invalid argument supplied to oneOfType, expected an instance of array."),a;for(var Se=0;Se<ve.length;Se++){var je=ve[Se];if(typeof je!="function")return o("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+Be(je)+" at index "+Se+"."),a}function Qe(Ye,Ke,qe,ot,ct){for(var pt=[],ft=0;ft<ve.length;ft++){var yt=ve[ft],Je=yt(Ye,Ke,qe,ot,ct,n);if(Je==null)return null;Je.data&&r(Je.data,"expectedType")&&pt.push(Je.data.expectedType)}var At=pt.length>0?", expected one of type ["+pt.join(", ")+"]":"";return new I("Invalid "+ot+" `"+ct+"` supplied to "+("`"+qe+"`"+At+"."))}return j(Qe)}function Ue(){function ve(Se,je,Qe,Ye,Ke){return Me(Se[je])?null:new I("Invalid "+Ye+" `"+Ke+"` supplied to "+("`"+Qe+"`, expected a ReactNode."))}return j(ve)}function nt(ve,Se,je,Qe,Ye){return new I((ve||"React class")+": "+Se+" type `"+je+"."+Qe+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+Ye+"`.")}function et(ve){function Se(je,Qe,Ye,Ke,qe){var ot=je[Qe],ct=me(ot);if(ct!=="object")return new I("Invalid "+Ke+" `"+qe+"` of type `"+ct+"` "+("supplied to `"+Ye+"`, expected `object`."));for(var pt in ve){var ft=ve[pt];if(typeof ft!="function")return nt(Ye,Ke,qe,pt,Pe(ft));var yt=ft(ot,pt,Ye,Ke,qe+"."+pt,n);if(yt)return yt}return null}return j(Se)}function De(ve){function Se(je,Qe,Ye,Ke,qe){var ot=je[Qe],ct=me(ot);if(ct!=="object")return new I("Invalid "+Ke+" `"+qe+"` of type `"+ct+"` "+("supplied to `"+Ye+"`, expected `object`."));var pt=e({},je[Qe],ve);for(var ft in pt){var yt=ve[ft];if(r(ve,ft)&&typeof yt!="function")return nt(Ye,Ke,qe,ft,Pe(yt));if(!yt)return new I("Invalid "+Ke+" `"+qe+"` key `"+ft+"` supplied to `"+Ye+"`.\nBad object: "+JSON.stringify(je[Qe],null," ")+`
31
+ Valid keys: `+JSON.stringify(Object.keys(ve),null," "));var Je=yt(ot,ft,Ye,Ke,qe+"."+ft,n);if(Je)return Je}return null}return j(Se)}function Me(ve){switch(typeof ve){case"number":case"string":case"undefined":return!0;case"boolean":return!ve;case"object":if(Array.isArray(ve))return ve.every(Me);if(ve===null||c(ve))return!0;var Se=m(ve);if(Se){var je=Se.call(ve),Qe;if(Se!==ve.entries){for(;!(Qe=je.next()).done;)if(!Me(Qe.value))return!1}else for(;!(Qe=je.next()).done;){var Ye=Qe.value;if(Ye&&!Me(Ye[1]))return!1}}else return!1;return!0;default:return!1}}function fe(ve,Se){return ve==="symbol"?!0:Se?Se["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&Se instanceof Symbol:!1}function me(ve){var Se=typeof ve;return Array.isArray(ve)?"array":ve instanceof RegExp?"object":fe(Se,ve)?"symbol":Se}function Pe(ve){if(typeof ve>"u"||ve===null)return""+ve;var Se=me(ve);if(Se==="object"){if(ve instanceof Date)return"date";if(ve instanceof RegExp)return"regexp"}return Se}function Be(ve){var Se=Pe(ve);switch(Se){case"array":case"object":return"an "+Se;case"boolean":case"date":case"regexp":return"a "+Se;default:return Se}}function Ze(ve){return!ve.constructor||!ve.constructor.name?T:ve.constructor.name}return E.checkPropTypes=i,E.resetWarningCache=i.resetWarningCache,E.PropTypes=E,E},pm}var gm,v1;function E4(){if(v1)return gm;v1=1;var t=eb();function e(){}function n(){}return n.resetWarningCache=e,gm=function(){function r(a,c,d,p,w,m){if(m!==t){var T=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw T.name="Invariant Violation",T}}r.isRequired=r;function i(){return r}var o={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:i,element:r,elementType:r,instanceOf:i,node:r,objectOf:i,oneOf:i,oneOfType:i,shape:i,exact:i,checkPropTypes:n,resetWarningCache:e};return o.PropTypes=o,o},gm}if(process.env.NODE_ENV!=="production"){var k4=MD(),D4=!0;Tv.exports=C4()(k4.isElement,D4)}else Tv.exports=E4()();var Cr=Tv.exports;const _s=Oc(Cr);var P4=function(e){var n=(e==null?void 0:e.ownerDocument)||document;return n.defaultView||window},O4=function(e,n){for(var r in e)if(!(r in n))return!0;for(var i in n)if(e[i]!==n[i])return!0;return!1},_4=["afterInjection","beforeInjection","desc","evalScripts","fallback","httpRequestWithCredentials","loading","renumerateIRIElements","src","title","useRequestCache","wrapper"],Ah="http://www.w3.org/2000/svg",y1="http://www.w3.org/1999/xlink",Gp=function(t){function e(){for(var r,i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return r=t.call.apply(t,[this].concat(o))||this,r.initialState={hasError:!1,isLoading:!0},r.state=r.initialState,r._isMounted=!1,r.reactWrapper=void 0,r.nonReactWrapper=void 0,r.refCallback=function(c){r.reactWrapper=c},r}_T(e,t);var n=e.prototype;return n.renderSVG=function(){var i=this;if(this.reactWrapper instanceof P4(this.reactWrapper).Node){var o=this.props,a=o.desc,c=o.evalScripts,d=o.httpRequestWithCredentials,p=o.renumerateIRIElements,w=o.src,m=o.title,T=o.useRequestCache,E=this.props.onError,A=this.props.beforeInjection,I=this.props.afterInjection,j=this.props.wrapper,_,U;j==="svg"?(_=document.createElementNS(Ah,j),_.setAttribute("xmlns",Ah),_.setAttribute("xmlns:xlink",y1),U=document.createElementNS(Ah,j)):(_=document.createElement(j),U=document.createElement(j)),_.appendChild(U),U.dataset.src=w,this.nonReactWrapper=this.reactWrapper.appendChild(_);var G=function(S){if(i.removeSVG(),!i._isMounted){E(S);return}i.setState(function(){return{hasError:!0,isLoading:!1}},function(){E(S)})},re=function(S,ue){if(S){G(S);return}i._isMounted&&i.setState(function(){return{isLoading:!1}},function(){try{I(ue)}catch(ae){G(ae)}})},q=function(S){if(S.setAttribute("role","img"),a){var ue=S.querySelector(":scope > desc");ue&&S.removeChild(ue);var ae=document.createElement("desc");ae.innerHTML=a,S.prepend(ae)}if(m){var Ue=S.querySelector(":scope > title");Ue&&S.removeChild(Ue);var nt=document.createElement("title");nt.innerHTML=m,S.prepend(nt)}try{A(S)}catch(et){G(et)}};b4(U,{afterEach:re,beforeEach:q,cacheRequests:T,evalScripts:c,httpRequestWithCredentials:d,renumerateIRIElements:p})}},n.removeSVG=function(){var i;(i=this.nonReactWrapper)!=null&&i.parentNode&&(this.nonReactWrapper.parentNode.removeChild(this.nonReactWrapper),this.nonReactWrapper=null)},n.componentDidMount=function(){this._isMounted=!0,this.renderSVG()},n.componentDidUpdate=function(i){var o=this;O4(kf({},i),this.props)&&this.setState(function(){return o.initialState},function(){o.removeSVG(),o.renderSVG()})},n.componentWillUnmount=function(){this._isMounted=!1,this.removeSVG()},n.render=function(){var i=this.props;i.afterInjection,i.beforeInjection,i.desc,i.evalScripts;var o=i.fallback;i.httpRequestWithCredentials;var a=i.loading;i.renumerateIRIElements,i.src,i.title,i.useRequestCache;var c=i.wrapper,d=jv(i,_4),p=c;return kn.createElement(p,kf({},d,{ref:this.refCallback},c==="svg"?{xmlns:Ah,xmlnsXlink:y1}:{}),this.state.isLoading&&a&&kn.createElement(a,null),this.state.hasError&&o&&kn.createElement(o,null))},e}(kn.Component);Gp.defaultProps={afterInjection:function(){},beforeInjection:function(){},desc:"",evalScripts:"never",fallback:null,httpRequestWithCredentials:!1,loading:null,onError:function(){},renumerateIRIElements:!0,title:"",useRequestCache:!0,wrapper:"div"};Gp.propTypes={afterInjection:Cr.func,beforeInjection:Cr.func,desc:Cr.string,evalScripts:Cr.oneOf(["always","once","never"]),fallback:Cr.oneOfType([Cr.func,Cr.object,Cr.string]),httpRequestWithCredentials:Cr.bool,loading:Cr.oneOfType([Cr.func,Cr.object,Cr.string]),onError:Cr.func,renumerateIRIElements:Cr.bool,src:Cr.string.isRequired,title:Cr.string,useRequestCache:Cr.bool,wrapper:Cr.oneOf(["div","span","svg"])};const Af=new Map;Af.set("text",t=>{var e,n;return Re.jsx("div",{style:{width:24,height:24,backgroundColor:"#dadada",borderRadius:"5px",display:"flex",justifyContent:"center",alignItems:"center",lineHeight:"24px"},children:(n=(e=t==null?void 0:t.name)==null?void 0:e.trim().at(0))==null?void 0:n.toUpperCase()})});Af.set("svgHtml",t=>{function e(n){function r(o){const c=new DOMParser().parseFromString(o,"image/svg+xml").querySelector("svg");return c?(c.querySelectorAll("path").forEach(p=>{p.hasAttribute("fill")&&p.setAttribute("fill","currentColor"),p.hasAttribute("stroke")&&p.setAttribute("stroke","currentColor")}),c.outerHTML):""}const i=r(n.svgString);return Re.jsx("div",{dangerouslySetInnerHTML:{__html:i},style:{width:24,height:24,margin:"0 auto"}})}return Re.jsx(e,{svgString:t.icon})});Af.set("svgHttp",t=>Re.jsx(Gp,{src:t.icon,beforeInjection:e=>{e.setAttribute("style","margin: 0 auto;"),e.querySelectorAll("path").forEach(r=>{r.hasAttribute("fill")&&r.setAttribute("fill","currentColor"),r.hasAttribute("stroke")&&r.setAttribute("stroke","currentColor")})}}));Af.set("img",t=>Re.jsx("img",{src:t.icon||"/",alt:t.name,style:{height:24,maxHeight:24,maxWidth:24}}));function R4(t){return t.icon=(t.icon||"").trim(),t.icon?t.icon.startsWith("<svg")?"svgHtml":t.icon.endsWith(".svg")?"svgHttp":"img":"text"}function FD({item:t}){return(Af.get(R4(t))||Af.get("text"))(t)}function A4(t){return Re.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",fill:"currentColor",viewBox:"0 0 16 16",...t,children:Re.jsx("path",{fill:"currenColor",d:"M4.427 7.427l3.396 3.396a.25.25 0 00.354 0l3.396-3.396A.25.25 0 0011.396 7H4.604a.25.25 0 00-.177.427z"})})}function I4(t){const{renderChildren:e,parentRef:n,onlyChild:r,dropdownLevel:i}=t,[o,a]=X.useState({top:0,left:0}),c=X.useRef(null),[d,p]=X.useState("auto");return X.useLayoutEffect(()=>{if(n.current&&c.current){const w=n.current.getBoundingClientRect(),m=c.current.getBoundingClientRect();let T,E;if(i===1)T=w.bottom,E=w.left,m.height+T>window.innerHeight?(p(window.innerHeight-T-50),T=w.bottom-m.height):T=w.bottom;else if(i>1){T=w.top,E=w.left+w.width;const A=m.height+(window.innerHeight-w.top)>window.innerHeight;A&&(console.log("DropDown-fav overtop"),p(window.innerHeight-w.top-50)),w.top+m.height>window.innerHeight&&!A&&(T=w.top-m.height+w.height)}a({top:T-64,left:E})}},[n,c,i]),r?e({maxHeight:d}):Lv.createPortal(Re.jsx("div",{ref:c,style:{position:"fixed",top:o.top,left:`calc(${o.left}px - var(--global-menu-width))`,zIndex:1200},children:e({maxHeight:d})}),n.current)}const If=new Map;If.set("text",t=>{var e,n;return Re.jsx("div",{style:{width:24,height:24,backgroundColor:"#dadada",borderRadius:"5px",display:"flex",justifyContent:"center",alignItems:"center",lineHeight:"24px"},children:(n=(e=t==null?void 0:t.name)==null?void 0:e.trim().at(0))==null?void 0:n.toUpperCase()})});If.set("svgHtml",t=>{function e(n){function r(o){const c=new DOMParser().parseFromString(o,"image/svg+xml").querySelector("svg");return c?(c.querySelectorAll("path").forEach(p=>{p.hasAttribute("fill")&&p.setAttribute("fill","currentColor"),p.hasAttribute("stroke")&&p.setAttribute("stroke","currentColor")}),c.outerHTML):""}const i=r(n.svgString);return Re.jsx("div",{dangerouslySetInnerHTML:{__html:i},style:{width:24,height:24,margin:"0 auto"}})}return Re.jsx(e,{svgString:t.icon})});If.set("svgHttp",t=>Re.jsx(Gp,{src:t.icon,beforeInjection:e=>{e.setAttribute("style","margin: 0 auto;"),e.querySelectorAll("path").forEach(r=>{r.hasAttribute("fill")&&r.setAttribute("fill","currentColor"),r.hasAttribute("stroke")&&r.setAttribute("stroke","currentColor")})}}));If.set("img",t=>Re.jsx("img",{src:t.icon||"/",alt:t.name,style:{height:24,maxHeight:24,maxWidth:24}}));function M4(t){return t.icon=(t.icon||"").trim(),t.icon?t.icon.startsWith("<svg")?"svgHtml":t.icon.endsWith(".svg")?"svgHttp":"img":"text"}function L4({item:t}){return(If.get(M4(t))||If.get("text"))(t)}function ND({...t}){var Ue,nt,et;const e=t.item,n=t.level||0,r=!!((Ue=t.item.children)!=null&&Ue.length),i=`level-${n}`,o=(De,Me=i)=>`${De} ${Me} `,[a,c]=X.useState(!1),[d,p]=X.useState(e.isFavorite||!1),w=X.useRef(),m=X.useRef();m!=null&&m.current&&((nt=m==null?void 0:m.current)==null?void 0:nt.scrollWidth)>((et=m==null?void 0:m.current)==null?void 0:et.clientWidth);const T=window.location.origin,E=e.path&&e.path.includes("http")?new URL(e.path):{origin:"",pathname:""},A=window.location.pathname.split("/")[1],I=E.pathname.split("/")[1],j=t.item.redirectUrl||t.ssr||!T.includes("local")&&T!==E.origin||I!==A,_=r||n===0?"div":j?"a":Sp.Link,U=e.redirectUrl||e.path||"#",G=n+1,re=r&&a&&n>0,q=()=>{t.isDrop||c(!0)},se=()=>{c(!1)},S="/global-menu-config/api/v1/menu-items/user/set-favorite",ue=T!==E.origin||t.item.redirectUrl?"_blank":"_self",ae=Object.entries(t.brandColors||{}).reduce((De,[Me,fe])=>(fe&&(De[`--${Me}`]=fe),De),{});return Re.jsxs("div",{ref:w,className:o("menu-item__wrapper tree-node"),style:{borderRadius:"8px",transition:"all 0.3s",...ae},onMouseOver:q,onMouseOut:se,onDragStart:De=>{n>1&&De.preventDefault(),c(!1)},onDragEnd:()=>{console.log("drag end 1223"),c(!1)},children:[Re.jsxs(_,{target:ue,to:U,href:U,draggable:"true",className:o("menu-item__link"),style:{width:"100%",transition:"all 0.3s"},onDragStart:De=>{console.log("onDragStart component",De.target)},onDragEnd:()=>{console.log("onDragEnd menu item"),c(!1)},children:[Re.jsx(F4,{cls:o,item:e}),Re.jsx("span",{className:o("menu-item__label"),ref:m,children:e.name}),Re.jsx(N4,{menuLevel:n,hasChildren:r,isHovered:a,isFavorite:d,onClick:De=>{const Me={menuConfigId:e.id,isFavorite:De},fe=t.baseUrl+S;As.post(fe,Me).then(me=>{var Pe;p(De),zv("Set favorite menu item successfully"),(Pe=t.onSetFavoriteSuccess)==null||Pe.call(t,t.item.id,De)}).catch(me=>{var Pe,Be;console.log(" MenuItem.tsx ~ error:",me),Wd(((Be=(Pe=me.response)==null?void 0:Pe.data)==null?void 0:Be.errorMessage)||me.message||"Have error when set favorite menu item")})}}),r&&Re.jsx("div",{className:o("menu-item__icon-arrow__wrapper"),children:Re.jsx(A4,{className:o("menu-item__icon-arrow__icon")})})]}),re&&Re.jsx(I4,{parentRef:w,onlyChild:G<2,dropdownLevel:n,renderChildren:({maxHeight:De})=>{var Me;return Re.jsx(OD.div,{className:o("menu-item__dropdown dropdown-favorite ? 'menu-item__dropdown--open' : 'menu-item__dropdown--close'}",`level-${G}`),style:Qy({maxHeight:De,overflowY:"auto",paddingRight:3},De!=="auto"&&!!G),children:(Me=e.children)==null?void 0:Me.map(fe=>X.createElement(ND,{...t,key:fe.id,item:fe,level:G}))})}})]})}function F4({item:t,cls:e}){return Re.jsx("div",{className:e("menu-item__icon"),children:Re.jsx(L4,{item:t})})}function N4(t){const e={marginRight:t.hasChildren?10:0,fontSize:22,fill:ki.warning,minWidth:16};if(t.menuLevel!==0)return Re.jsxs(Re.Fragment,{children:[t.isHovered&&!t.isFavorite&&Re.jsx(sa.Tooltip,{title:"Add to favorites",children:Re.jsx(_D,{style:e,onClick:n=>{var r;n.preventDefault(),n.stopPropagation(),(r=t.onClick)==null||r.call(t,!0)}})}),t.isFavorite&&Re.jsx(sa.Tooltip,{title:"Remove from favorites",children:Re.jsx(RD,{style:e,onClick:n=>{var r;n.preventDefault(),n.stopPropagation(),(r=t.onClick)==null||r.call(t,!1)}})})]})}const j4='.flex-col-center{display:flex;flex-direction:column;justify-content:center}.wrap-section{transition:all .3s;padding:0 4px}.favorite-menu{display:flex;height:56px;border-right:1px solid #ddd;background-color:#fafafa;transition:all .2s ease-in-out;width:100%}.scrollbar-hidden::-webkit-scrollbar{width:2px;background:transparent}.favorite-menu__wrap-btn-logout,.favorite-menu__btn-logout{margin:40px 0}.favorite-menu__logout-btn__text{margin-left:12px;font-size:.875rem;opacity:0;transition:ease-in-out .2s;transition-delay:.15s}.favorite-menu__wrapper-toggle-btn{display:flex;flex-direction:row;justify-content:flex-end;transition:all .3s;margin-right:-8px;margin-top:40px;justify-content:center;width:100%}.favorite-menu__toggle-btn{margin-top:-6px;color:#85858a}.favorite-menu__logout-btn{width:100%;text-align:left;display:flex;flex-direction:row;align-items:center;padding:8px 16px 8px 18.6665px;min-height:48px;border-radius:.375rem;overflow:hidden;transition:all .3s ease-in-out;background-color:initial}.favorite-menu__logout-btn:hover{background-color:#919eab14}.favorite-menu__icon-logout{flex-shrink:0}.menu-item__wrapper{display:flex;position:relative;width:100%}.menu-item__link{display:flex;flex-direction:row;border-radius:.375rem;align-items:center;padding:.5rem;position:relative;height:48px;cursor:pointer;color:#85858a}.menu-item__link:hover{background-color:#919eab14}.menu-item__link.active{background-color:#009d4f1a;color:inherit}.menu-item__link.active.level-2,.menu-item__link.active.level-3,.menu-item__link.active.level-4,.menu-item__link.active.level-5,.menu-item__link.active.level-6,.menu-item__link.active.level-7,.menu-item__link.active.level-8,.menu-item__link.active.level-9,.menu-item__link.active.level-10{background-color:inherit;color:inherit}.menu-item__link.active.level-2:hover,.menu-item__link.active.level-3:hover,.menu-item__link.active.level-4:hover,.menu-item__link.active.level-5:hover,.menu-item__link.active.level-6:hover,.menu-item__link.active.level-7:hover,.menu-item__link.active.level-8:hover,.menu-item__link.active.level-9:hover,.menu-item__link.active.level-10:hover{background-color:#919eab14}.menu-item__link.menu-item__link.level-0{padding:0;background-color:#919eab14;transition:all .15s}.menu-item__icon{width:1.5rem;height:1.5rem;flex-shrink:0;display:grid;place-items:center}.menu-item__icon.level-1>*{margin:0 auto}.menu-item__label{font-size:.875rem;text-overflow:ellipsis;overflow:hidden;white-space:nowrap;width:100%;flex-shrink:1;margin-left:12px;padding-right:12px;color:#292929;opacity:1}.menu-item__label.level-1{text-overflow:unset}.menu-item__label.active{color:inherit}.menu-item__label{margin-left:8px;font-size:.75rem;line-height:1rem}.menu-item__label.level-0,.menu-item__label.level-1{font-size:.875rem;transition-delay:.15s}.menu-item__label.level-0{color:#85858a;margin-left:8px}.menu-item__icon-arrow__wrapper{display:grid;place-items:center;position:absolute;top:50%;transform:translateY(-50%);right:0}.menu-item__icon-arrow__wrapper.level-0{display:none}.menu-item__icon-arrow__icon{transition:all .3s!important;transform:rotate(-90deg)!important}.menu-item__icon-arrow__icon.active{color:inherit}.menu-item__icon-arrow__icon.open{transform:rotate(0)!important}.menu-item__dropdown{background-color:#fafafa;border:1px solid #ddd;box-shadow:#0000001a 0 10px 15px -3px,#0000000d 0 4px 6px -2px;border-radius:4px;width:210px;max-width:210px;padding:4px;z-index:1200}.menu-item__dropdown.dropdown-favorite{width:auto;min-width:180px;max-width:350px}.menu-item__dropdown::-webkit-scrollbar{width:4px}.menu-item__dropdown::-webkit-scrollbar-thumb{background-color:#9b9b9b99;border-radius:2px}.menu-item__dropdown,.menu-item__dropdown>*{margin-top:4px}.menu-item__dropdown:first-of-type{margin-top:0}.menu-item__dropdown>*:first-child{margin-top:0}.menu-item__dropdown .menu-item__link{height:40px}.menu-item__dropdown .menu-item__link.level-1{height:48px}.menu-item__dropdown.level-1{width:auto;max-width:unset;box-shadow:none;border:none;padding:0;background-color:unset}.icon-btn{display:inline-flex;align-items:center;justify-content:center;padding:8px;border-radius:50%;background-color:transparent;transition:background-color .3s ease;border:none}.icon-btn:hover{background-color:var(--btn-bg-hover)}.simplebar-scrollbar:before{background-color:#0000002d}.favorite-menu__menu .simplebar-track.simplebar-vertical{display:none}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}.treeFavorited{display:flex;align-items:center;margin:0 -5px}.treeFavorited li{margin:0 5px}.item.hover-on:before{content:"";position:absolute;top:0;left:0;height:100%;width:2px;background-color:var(--primary300)}';var ac={};/**
32
32
  * @license React
33
33
  * react-dom-server-legacy.browser.production.min.js
34
34
  *
@@ -36,7 +36,7 @@ Valid keys: `+JSON.stringify(Object.keys(ve),null," "));var Je=yt(ot,ft,Ye,Ke,q
36
36
  *
37
37
  * This source code is licensed under the MIT license found in the
38
38
  * LICENSE file in the root directory of this source tree.
39
- */var v1;function I4(){if(v1)return ac;v1=1;var t=X;function e(k){for(var F="https://reactjs.org/docs/error-decoder.html?invariant="+k,Y=1;Y<arguments.length;Y++)F+="&args[]="+encodeURIComponent(arguments[Y]);return"Minified React error #"+k+"; visit "+F+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var n=Object.prototype.hasOwnProperty,r=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,i={},o={};function a(k){return n.call(o,k)?!0:n.call(i,k)?!1:r.test(k)?o[k]=!0:(i[k]=!0,!1)}function c(k,F,Y,ee,Ee,ge,_e){this.acceptsBooleans=F===2||F===3||F===4,this.attributeName=ee,this.attributeNamespace=Ee,this.mustUseProperty=Y,this.propertyName=k,this.type=F,this.sanitizeURL=ge,this.removeEmptyString=_e}var d={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(k){d[k]=new c(k,0,!1,k,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(k){var F=k[0];d[F]=new c(F,1,!1,k[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(k){d[k]=new c(k,2,!1,k.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(k){d[k]=new c(k,2,!1,k,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(k){d[k]=new c(k,3,!1,k.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(k){d[k]=new c(k,3,!0,k,null,!1,!1)}),["capture","download"].forEach(function(k){d[k]=new c(k,4,!1,k,null,!1,!1)}),["cols","rows","size","span"].forEach(function(k){d[k]=new c(k,6,!1,k,null,!1,!1)}),["rowSpan","start"].forEach(function(k){d[k]=new c(k,5,!1,k.toLowerCase(),null,!1,!1)});var p=/[\-:]([a-z])/g;function w(k){return k[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(k){var F=k.replace(p,w);d[F]=new c(F,1,!1,k,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(k){var F=k.replace(p,w);d[F]=new c(F,1,!1,k,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(k){var F=k.replace(p,w);d[F]=new c(F,1,!1,k,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(k){d[k]=new c(k,1,!1,k.toLowerCase(),null,!1,!1)}),d.xlinkHref=new c("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(k){d[k]=new c(k,1,!1,k.toLowerCase(),null,!0,!0)});var m={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},T=["Webkit","ms","Moz","O"];Object.keys(m).forEach(function(k){T.forEach(function(F){F=F+k.charAt(0).toUpperCase()+k.substring(1),m[F]=m[k]})});var E=/["'&<>]/;function A(k){if(typeof k=="boolean"||typeof k=="number")return""+k;k=""+k;var F=E.exec(k);if(F){var Y="",ee,Ee=0;for(ee=F.index;ee<k.length;ee++){switch(k.charCodeAt(ee)){case 34:F="&quot;";break;case 38:F="&amp;";break;case 39:F="&#x27;";break;case 60:F="&lt;";break;case 62:F="&gt;";break;default:continue}Ee!==ee&&(Y+=k.substring(Ee,ee)),Ee=ee+1,Y+=F}k=Ee!==ee?Y+k.substring(Ee,ee):Y}return k}var I=/([A-Z])/g,j=/^ms-/,_=Array.isArray;function U(k,F){return{insertionMode:k,selectedValue:F}}function G(k,F,Y){switch(F){case"select":return U(1,Y.value!=null?Y.value:Y.defaultValue);case"svg":return U(2,null);case"math":return U(3,null);case"foreignObject":return U(1,null);case"table":return U(4,null);case"thead":case"tbody":case"tfoot":return U(5,null);case"colgroup":return U(7,null);case"tr":return U(6,null)}return 4<=k.insertionMode||k.insertionMode===0?U(1,null):k}var re=new Map;function q(k,F,Y){if(typeof Y!="object")throw Error(e(62));F=!0;for(var ee in Y)if(n.call(Y,ee)){var Ee=Y[ee];if(Ee!=null&&typeof Ee!="boolean"&&Ee!==""){if(ee.indexOf("--")===0){var ge=A(ee);Ee=A((""+Ee).trim())}else{ge=ee;var _e=re.get(ge);_e!==void 0||(_e=A(ge.replace(I,"-$1").toLowerCase().replace(j,"-ms-")),re.set(ge,_e)),ge=_e,Ee=typeof Ee=="number"?Ee===0||n.call(m,ee)?""+Ee:Ee+"px":A((""+Ee).trim())}F?(F=!1,k.push(' style="',ge,":",Ee)):k.push(";",ge,":",Ee)}}F||k.push('"')}function se(k,F,Y,ee){switch(Y){case"style":q(k,F,ee);return;case"defaultValue":case"defaultChecked":case"innerHTML":case"suppressContentEditableWarning":case"suppressHydrationWarning":return}if(!(2<Y.length)||Y[0]!=="o"&&Y[0]!=="O"||Y[1]!=="n"&&Y[1]!=="N"){if(F=d.hasOwnProperty(Y)?d[Y]:null,F!==null){switch(typeof ee){case"function":case"symbol":return;case"boolean":if(!F.acceptsBooleans)return}switch(Y=F.attributeName,F.type){case 3:ee&&k.push(" ",Y,'=""');break;case 4:ee===!0?k.push(" ",Y,'=""'):ee!==!1&&k.push(" ",Y,'="',A(ee),'"');break;case 5:isNaN(ee)||k.push(" ",Y,'="',A(ee),'"');break;case 6:!isNaN(ee)&&1<=ee&&k.push(" ",Y,'="',A(ee),'"');break;default:F.sanitizeURL&&(ee=""+ee),k.push(" ",Y,'="',A(ee),'"')}}else if(a(Y)){switch(typeof ee){case"function":case"symbol":return;case"boolean":if(F=Y.toLowerCase().slice(0,5),F!=="data-"&&F!=="aria-")return}k.push(" ",Y,'="',A(ee),'"')}}}function S(k,F,Y){if(F!=null){if(Y!=null)throw Error(e(60));if(typeof F!="object"||!("__html"in F))throw Error(e(61));F=F.__html,F!=null&&k.push(""+F)}}function ue(k){var F="";return t.Children.forEach(k,function(Y){Y!=null&&(F+=Y)}),F}function ae(k,F,Y,ee){k.push(et(Y));var Ee=Y=null,ge;for(ge in F)if(n.call(F,ge)){var _e=F[ge];if(_e!=null)switch(ge){case"children":Y=_e;break;case"dangerouslySetInnerHTML":Ee=_e;break;default:se(k,ee,ge,_e)}}return k.push(">"),S(k,Ee,Y),typeof Y=="string"?(k.push(A(Y)),null):Y}var Ue=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,nt=new Map;function et(k){var F=nt.get(k);if(F===void 0){if(!Ue.test(k))throw Error(e(65,k));F="<"+k,nt.set(k,F)}return F}function De(k,F,Y,ee,Ee){switch(F){case"select":k.push(et("select"));var ge=null,_e=null;for(dt in Y)if(n.call(Y,dt)){var Ge=Y[dt];if(Ge!=null)switch(dt){case"children":ge=Ge;break;case"dangerouslySetInnerHTML":_e=Ge;break;case"defaultValue":case"value":break;default:se(k,ee,dt,Ge)}}return k.push(">"),S(k,_e,ge),ge;case"option":_e=Ee.selectedValue,k.push(et("option"));var gt=Ge=null,mt=null,dt=null;for(ge in Y)if(n.call(Y,ge)){var Ft=Y[ge];if(Ft!=null)switch(ge){case"children":Ge=Ft;break;case"selected":mt=Ft;break;case"dangerouslySetInnerHTML":dt=Ft;break;case"value":gt=Ft;default:se(k,ee,ge,Ft)}}if(_e!=null)if(Y=gt!==null?""+gt:ue(Ge),_(_e)){for(ee=0;ee<_e.length;ee++)if(""+_e[ee]===Y){k.push(' selected=""');break}}else""+_e===Y&&k.push(' selected=""');else mt&&k.push(' selected=""');return k.push(">"),S(k,dt,Ge),Ge;case"textarea":k.push(et("textarea")),dt=_e=ge=null;for(Ge in Y)if(n.call(Y,Ge)&&(gt=Y[Ge],gt!=null))switch(Ge){case"children":dt=gt;break;case"value":ge=gt;break;case"defaultValue":_e=gt;break;case"dangerouslySetInnerHTML":throw Error(e(91));default:se(k,ee,Ge,gt)}if(ge===null&&_e!==null&&(ge=_e),k.push(">"),dt!=null){if(ge!=null)throw Error(e(92));if(_(dt)&&1<dt.length)throw Error(e(93));ge=""+dt}return typeof ge=="string"&&ge[0]===`
39
+ */var b1;function B4(){if(b1)return ac;b1=1;var t=X;function e(k){for(var F="https://reactjs.org/docs/error-decoder.html?invariant="+k,Y=1;Y<arguments.length;Y++)F+="&args[]="+encodeURIComponent(arguments[Y]);return"Minified React error #"+k+"; visit "+F+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var n=Object.prototype.hasOwnProperty,r=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,i={},o={};function a(k){return n.call(o,k)?!0:n.call(i,k)?!1:r.test(k)?o[k]=!0:(i[k]=!0,!1)}function c(k,F,Y,ee,Ee,ge,_e){this.acceptsBooleans=F===2||F===3||F===4,this.attributeName=ee,this.attributeNamespace=Ee,this.mustUseProperty=Y,this.propertyName=k,this.type=F,this.sanitizeURL=ge,this.removeEmptyString=_e}var d={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(k){d[k]=new c(k,0,!1,k,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(k){var F=k[0];d[F]=new c(F,1,!1,k[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(k){d[k]=new c(k,2,!1,k.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(k){d[k]=new c(k,2,!1,k,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(k){d[k]=new c(k,3,!1,k.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(k){d[k]=new c(k,3,!0,k,null,!1,!1)}),["capture","download"].forEach(function(k){d[k]=new c(k,4,!1,k,null,!1,!1)}),["cols","rows","size","span"].forEach(function(k){d[k]=new c(k,6,!1,k,null,!1,!1)}),["rowSpan","start"].forEach(function(k){d[k]=new c(k,5,!1,k.toLowerCase(),null,!1,!1)});var p=/[\-:]([a-z])/g;function w(k){return k[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(k){var F=k.replace(p,w);d[F]=new c(F,1,!1,k,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(k){var F=k.replace(p,w);d[F]=new c(F,1,!1,k,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(k){var F=k.replace(p,w);d[F]=new c(F,1,!1,k,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(k){d[k]=new c(k,1,!1,k.toLowerCase(),null,!1,!1)}),d.xlinkHref=new c("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(k){d[k]=new c(k,1,!1,k.toLowerCase(),null,!0,!0)});var m={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},T=["Webkit","ms","Moz","O"];Object.keys(m).forEach(function(k){T.forEach(function(F){F=F+k.charAt(0).toUpperCase()+k.substring(1),m[F]=m[k]})});var E=/["'&<>]/;function A(k){if(typeof k=="boolean"||typeof k=="number")return""+k;k=""+k;var F=E.exec(k);if(F){var Y="",ee,Ee=0;for(ee=F.index;ee<k.length;ee++){switch(k.charCodeAt(ee)){case 34:F="&quot;";break;case 38:F="&amp;";break;case 39:F="&#x27;";break;case 60:F="&lt;";break;case 62:F="&gt;";break;default:continue}Ee!==ee&&(Y+=k.substring(Ee,ee)),Ee=ee+1,Y+=F}k=Ee!==ee?Y+k.substring(Ee,ee):Y}return k}var I=/([A-Z])/g,j=/^ms-/,_=Array.isArray;function U(k,F){return{insertionMode:k,selectedValue:F}}function G(k,F,Y){switch(F){case"select":return U(1,Y.value!=null?Y.value:Y.defaultValue);case"svg":return U(2,null);case"math":return U(3,null);case"foreignObject":return U(1,null);case"table":return U(4,null);case"thead":case"tbody":case"tfoot":return U(5,null);case"colgroup":return U(7,null);case"tr":return U(6,null)}return 4<=k.insertionMode||k.insertionMode===0?U(1,null):k}var re=new Map;function q(k,F,Y){if(typeof Y!="object")throw Error(e(62));F=!0;for(var ee in Y)if(n.call(Y,ee)){var Ee=Y[ee];if(Ee!=null&&typeof Ee!="boolean"&&Ee!==""){if(ee.indexOf("--")===0){var ge=A(ee);Ee=A((""+Ee).trim())}else{ge=ee;var _e=re.get(ge);_e!==void 0||(_e=A(ge.replace(I,"-$1").toLowerCase().replace(j,"-ms-")),re.set(ge,_e)),ge=_e,Ee=typeof Ee=="number"?Ee===0||n.call(m,ee)?""+Ee:Ee+"px":A((""+Ee).trim())}F?(F=!1,k.push(' style="',ge,":",Ee)):k.push(";",ge,":",Ee)}}F||k.push('"')}function se(k,F,Y,ee){switch(Y){case"style":q(k,F,ee);return;case"defaultValue":case"defaultChecked":case"innerHTML":case"suppressContentEditableWarning":case"suppressHydrationWarning":return}if(!(2<Y.length)||Y[0]!=="o"&&Y[0]!=="O"||Y[1]!=="n"&&Y[1]!=="N"){if(F=d.hasOwnProperty(Y)?d[Y]:null,F!==null){switch(typeof ee){case"function":case"symbol":return;case"boolean":if(!F.acceptsBooleans)return}switch(Y=F.attributeName,F.type){case 3:ee&&k.push(" ",Y,'=""');break;case 4:ee===!0?k.push(" ",Y,'=""'):ee!==!1&&k.push(" ",Y,'="',A(ee),'"');break;case 5:isNaN(ee)||k.push(" ",Y,'="',A(ee),'"');break;case 6:!isNaN(ee)&&1<=ee&&k.push(" ",Y,'="',A(ee),'"');break;default:F.sanitizeURL&&(ee=""+ee),k.push(" ",Y,'="',A(ee),'"')}}else if(a(Y)){switch(typeof ee){case"function":case"symbol":return;case"boolean":if(F=Y.toLowerCase().slice(0,5),F!=="data-"&&F!=="aria-")return}k.push(" ",Y,'="',A(ee),'"')}}}function S(k,F,Y){if(F!=null){if(Y!=null)throw Error(e(60));if(typeof F!="object"||!("__html"in F))throw Error(e(61));F=F.__html,F!=null&&k.push(""+F)}}function ue(k){var F="";return t.Children.forEach(k,function(Y){Y!=null&&(F+=Y)}),F}function ae(k,F,Y,ee){k.push(et(Y));var Ee=Y=null,ge;for(ge in F)if(n.call(F,ge)){var _e=F[ge];if(_e!=null)switch(ge){case"children":Y=_e;break;case"dangerouslySetInnerHTML":Ee=_e;break;default:se(k,ee,ge,_e)}}return k.push(">"),S(k,Ee,Y),typeof Y=="string"?(k.push(A(Y)),null):Y}var Ue=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,nt=new Map;function et(k){var F=nt.get(k);if(F===void 0){if(!Ue.test(k))throw Error(e(65,k));F="<"+k,nt.set(k,F)}return F}function De(k,F,Y,ee,Ee){switch(F){case"select":k.push(et("select"));var ge=null,_e=null;for(dt in Y)if(n.call(Y,dt)){var Ge=Y[dt];if(Ge!=null)switch(dt){case"children":ge=Ge;break;case"dangerouslySetInnerHTML":_e=Ge;break;case"defaultValue":case"value":break;default:se(k,ee,dt,Ge)}}return k.push(">"),S(k,_e,ge),ge;case"option":_e=Ee.selectedValue,k.push(et("option"));var gt=Ge=null,mt=null,dt=null;for(ge in Y)if(n.call(Y,ge)){var Ft=Y[ge];if(Ft!=null)switch(ge){case"children":Ge=Ft;break;case"selected":mt=Ft;break;case"dangerouslySetInnerHTML":dt=Ft;break;case"value":gt=Ft;default:se(k,ee,ge,Ft)}}if(_e!=null)if(Y=gt!==null?""+gt:ue(Ge),_(_e)){for(ee=0;ee<_e.length;ee++)if(""+_e[ee]===Y){k.push(' selected=""');break}}else""+_e===Y&&k.push(' selected=""');else mt&&k.push(' selected=""');return k.push(">"),S(k,dt,Ge),Ge;case"textarea":k.push(et("textarea")),dt=_e=ge=null;for(Ge in Y)if(n.call(Y,Ge)&&(gt=Y[Ge],gt!=null))switch(Ge){case"children":dt=gt;break;case"value":ge=gt;break;case"defaultValue":_e=gt;break;case"dangerouslySetInnerHTML":throw Error(e(91));default:se(k,ee,Ge,gt)}if(ge===null&&_e!==null&&(ge=_e),k.push(">"),dt!=null){if(ge!=null)throw Error(e(92));if(_(dt)&&1<dt.length)throw Error(e(93));ge=""+dt}return typeof ge=="string"&&ge[0]===`
40
40
  `&&k.push(`
41
41
  `),ge!==null&&k.push(A(""+ge)),null;case"input":k.push(et("input")),gt=dt=Ge=ge=null;for(_e in Y)if(n.call(Y,_e)&&(mt=Y[_e],mt!=null))switch(_e){case"children":case"dangerouslySetInnerHTML":throw Error(e(399,"input"));case"defaultChecked":gt=mt;break;case"defaultValue":Ge=mt;break;case"checked":dt=mt;break;case"value":ge=mt;break;default:se(k,ee,_e,mt)}return dt!==null?se(k,ee,"checked",dt):gt!==null&&se(k,ee,"checked",gt),ge!==null?se(k,ee,"value",ge):Ge!==null&&se(k,ee,"value",Ge),k.push("/>"),null;case"menuitem":k.push(et("menuitem"));for(var Bn in Y)if(n.call(Y,Bn)&&(ge=Y[Bn],ge!=null))switch(Bn){case"children":case"dangerouslySetInnerHTML":throw Error(e(400));default:se(k,ee,Bn,ge)}return k.push(">"),null;case"title":k.push(et("title")),ge=null;for(Ft in Y)if(n.call(Y,Ft)&&(_e=Y[Ft],_e!=null))switch(Ft){case"children":ge=_e;break;case"dangerouslySetInnerHTML":throw Error(e(434));default:se(k,ee,Ft,_e)}return k.push(">"),ge;case"listing":case"pre":k.push(et(F)),_e=ge=null;for(gt in Y)if(n.call(Y,gt)&&(Ge=Y[gt],Ge!=null))switch(gt){case"children":ge=Ge;break;case"dangerouslySetInnerHTML":_e=Ge;break;default:se(k,ee,gt,Ge)}if(k.push(">"),_e!=null){if(ge!=null)throw Error(e(60));if(typeof _e!="object"||!("__html"in _e))throw Error(e(61));Y=_e.__html,Y!=null&&(typeof Y=="string"&&0<Y.length&&Y[0]===`
42
42
  `?k.push(`
@@ -50,7 +50,7 @@ Valid keys: `+JSON.stringify(Object.keys(ve),null," "));var Je=yt(ot,ft,Ye,Ke,q
50
50
  *
51
51
  * This source code is licensed under the MIT license found in the
52
52
  * LICENSE file in the root directory of this source tree.
53
- */var y1;function M4(){if(y1)return Ih;y1=1;var t=X;function e(D){for(var M="https://reactjs.org/docs/error-decoder.html?invariant="+D,H=1;H<arguments.length;H++)M+="&args[]="+encodeURIComponent(arguments[H]);return"Minified React error #"+D+"; visit "+M+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var n=null,r=0;function i(D,M){if(M.length!==0)if(512<M.length)0<r&&(D.enqueue(new Uint8Array(n.buffer,0,r)),n=new Uint8Array(512),r=0),D.enqueue(M);else{var H=n.length-r;H<M.length&&(H===0?D.enqueue(n):(n.set(M.subarray(0,H),r),D.enqueue(n),M=M.subarray(H)),n=new Uint8Array(512),r=0),n.set(M,r),r+=M.length}}function o(D,M){return i(D,M),!0}function a(D){n&&0<r&&(D.enqueue(new Uint8Array(n.buffer,0,r)),n=null,r=0)}var c=new TextEncoder;function d(D){return c.encode(D)}function p(D){return c.encode(D)}function w(D,M){typeof D.error=="function"?D.error(M):D.close()}var m=Object.prototype.hasOwnProperty,T=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,E={},A={};function I(D){return m.call(A,D)?!0:m.call(E,D)?!1:T.test(D)?A[D]=!0:(E[D]=!0,!1)}function j(D,M,H,Q,be,we,Le){this.acceptsBooleans=M===2||M===3||M===4,this.attributeName=Q,this.attributeNamespace=be,this.mustUseProperty=H,this.propertyName=D,this.type=M,this.sanitizeURL=we,this.removeEmptyString=Le}var _={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(D){_[D]=new j(D,0,!1,D,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(D){var M=D[0];_[M]=new j(M,1,!1,D[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(D){_[D]=new j(D,2,!1,D.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(D){_[D]=new j(D,2,!1,D,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(D){_[D]=new j(D,3,!1,D.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(D){_[D]=new j(D,3,!0,D,null,!1,!1)}),["capture","download"].forEach(function(D){_[D]=new j(D,4,!1,D,null,!1,!1)}),["cols","rows","size","span"].forEach(function(D){_[D]=new j(D,6,!1,D,null,!1,!1)}),["rowSpan","start"].forEach(function(D){_[D]=new j(D,5,!1,D.toLowerCase(),null,!1,!1)});var U=/[\-:]([a-z])/g;function G(D){return D[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(D){var M=D.replace(U,G);_[M]=new j(M,1,!1,D,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(D){var M=D.replace(U,G);_[M]=new j(M,1,!1,D,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(D){var M=D.replace(U,G);_[M]=new j(M,1,!1,D,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(D){_[D]=new j(D,1,!1,D.toLowerCase(),null,!1,!1)}),_.xlinkHref=new j("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(D){_[D]=new j(D,1,!1,D.toLowerCase(),null,!0,!0)});var re={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},q=["Webkit","ms","Moz","O"];Object.keys(re).forEach(function(D){q.forEach(function(M){M=M+D.charAt(0).toUpperCase()+D.substring(1),re[M]=re[D]})});var se=/["'&<>]/;function S(D){if(typeof D=="boolean"||typeof D=="number")return""+D;D=""+D;var M=se.exec(D);if(M){var H="",Q,be=0;for(Q=M.index;Q<D.length;Q++){switch(D.charCodeAt(Q)){case 34:M="&quot;";break;case 38:M="&amp;";break;case 39:M="&#x27;";break;case 60:M="&lt;";break;case 62:M="&gt;";break;default:continue}be!==Q&&(H+=D.substring(be,Q)),be=Q+1,H+=M}D=be!==Q?H+D.substring(be,Q):H}return D}var ue=/([A-Z])/g,ae=/^ms-/,Ue=Array.isArray,nt=p("<script>"),et=p("<\/script>"),De=p('<script src="'),Me=p('<script type="module" src="'),fe=p('" async=""><\/script>'),me=/(<\/|<)(s)(cript)/gi;function Pe(D,M,H,Q){return""+M+(H==="s"?"\\u0073":"\\u0053")+Q}function Be(D,M,H,Q,be){D=D===void 0?"":D,M=M===void 0?nt:p('<script nonce="'+S(M)+'">');var we=[];if(H!==void 0&&we.push(M,d((""+H).replace(me,Pe)),et),Q!==void 0)for(H=0;H<Q.length;H++)we.push(De,d(S(Q[H])),fe);if(be!==void 0)for(Q=0;Q<be.length;Q++)we.push(Me,d(S(be[Q])),fe);return{bootstrapChunks:we,startInlineScript:M,placeholderPrefix:p(D+"P:"),segmentPrefix:p(D+"S:"),boundaryPrefix:D+"B:",idPrefix:D,nextSuspenseID:0,sentCompleteSegmentFunction:!1,sentCompleteBoundaryFunction:!1,sentClientRenderFunction:!1}}function Ze(D,M){return{insertionMode:D,selectedValue:M}}function ve(D){return Ze(D==="http://www.w3.org/2000/svg"?2:D==="http://www.w3.org/1998/Math/MathML"?3:0,null)}function Se(D,M,H){switch(M){case"select":return Ze(1,H.value!=null?H.value:H.defaultValue);case"svg":return Ze(2,null);case"math":return Ze(3,null);case"foreignObject":return Ze(1,null);case"table":return Ze(4,null);case"thead":case"tbody":case"tfoot":return Ze(5,null);case"colgroup":return Ze(7,null);case"tr":return Ze(6,null)}return 4<=D.insertionMode||D.insertionMode===0?Ze(1,null):D}var je=p("<!-- -->");function Qe(D,M,H,Q){return M===""?Q:(Q&&D.push(je),D.push(d(S(M))),!0)}var Ye=new Map,Ke=p(' style="'),qe=p(":"),ot=p(";");function ct(D,M,H){if(typeof H!="object")throw Error(e(62));M=!0;for(var Q in H)if(m.call(H,Q)){var be=H[Q];if(be!=null&&typeof be!="boolean"&&be!==""){if(Q.indexOf("--")===0){var we=d(S(Q));be=d(S((""+be).trim()))}else{we=Q;var Le=Ye.get(we);Le!==void 0||(Le=p(S(we.replace(ue,"-$1").toLowerCase().replace(ae,"-ms-"))),Ye.set(we,Le)),we=Le,be=typeof be=="number"?be===0||m.call(re,Q)?d(""+be):d(be+"px"):d(S((""+be).trim()))}M?(M=!1,D.push(Ke,we,qe,be)):D.push(ot,we,qe,be)}}M||D.push(yt)}var pt=p(" "),ft=p('="'),yt=p('"'),Je=p('=""');function At(D,M,H,Q){switch(H){case"style":ct(D,M,Q);return;case"defaultValue":case"defaultChecked":case"innerHTML":case"suppressContentEditableWarning":case"suppressHydrationWarning":return}if(!(2<H.length)||H[0]!=="o"&&H[0]!=="O"||H[1]!=="n"&&H[1]!=="N"){if(M=_.hasOwnProperty(H)?_[H]:null,M!==null){switch(typeof Q){case"function":case"symbol":return;case"boolean":if(!M.acceptsBooleans)return}switch(H=d(M.attributeName),M.type){case 3:Q&&D.push(pt,H,Je);break;case 4:Q===!0?D.push(pt,H,Je):Q!==!1&&D.push(pt,H,ft,d(S(Q)),yt);break;case 5:isNaN(Q)||D.push(pt,H,ft,d(S(Q)),yt);break;case 6:!isNaN(Q)&&1<=Q&&D.push(pt,H,ft,d(S(Q)),yt);break;default:M.sanitizeURL&&(Q=""+Q),D.push(pt,H,ft,d(S(Q)),yt)}}else if(I(H)){switch(typeof Q){case"function":case"symbol":return;case"boolean":if(M=H.toLowerCase().slice(0,5),M!=="data-"&&M!=="aria-")return}D.push(pt,d(H),ft,d(S(Q)),yt)}}}var Mt=p(">"),Vn=p("/>");function mr(D,M,H){if(M!=null){if(H!=null)throw Error(e(60));if(typeof M!="object"||!("__html"in M))throw Error(e(61));M=M.__html,M!=null&&D.push(d(""+M))}}function Hn(D){var M="";return t.Children.forEach(D,function(H){H!=null&&(M+=H)}),M}var Sn=p(' selected=""');function $i(D,M,H,Q){D.push(fn(H));var be=H=null,we;for(we in M)if(m.call(M,we)){var Le=M[we];if(Le!=null)switch(we){case"children":H=Le;break;case"dangerouslySetInnerHTML":be=Le;break;default:At(D,Q,we,Le)}}return D.push(Mt),mr(D,be,H),typeof H=="string"?(D.push(d(S(H))),null):H}var kr=p(`
53
+ */var w1;function $4(){if(w1)return Ih;w1=1;var t=X;function e(D){for(var M="https://reactjs.org/docs/error-decoder.html?invariant="+D,H=1;H<arguments.length;H++)M+="&args[]="+encodeURIComponent(arguments[H]);return"Minified React error #"+D+"; visit "+M+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var n=null,r=0;function i(D,M){if(M.length!==0)if(512<M.length)0<r&&(D.enqueue(new Uint8Array(n.buffer,0,r)),n=new Uint8Array(512),r=0),D.enqueue(M);else{var H=n.length-r;H<M.length&&(H===0?D.enqueue(n):(n.set(M.subarray(0,H),r),D.enqueue(n),M=M.subarray(H)),n=new Uint8Array(512),r=0),n.set(M,r),r+=M.length}}function o(D,M){return i(D,M),!0}function a(D){n&&0<r&&(D.enqueue(new Uint8Array(n.buffer,0,r)),n=null,r=0)}var c=new TextEncoder;function d(D){return c.encode(D)}function p(D){return c.encode(D)}function w(D,M){typeof D.error=="function"?D.error(M):D.close()}var m=Object.prototype.hasOwnProperty,T=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,E={},A={};function I(D){return m.call(A,D)?!0:m.call(E,D)?!1:T.test(D)?A[D]=!0:(E[D]=!0,!1)}function j(D,M,H,Q,be,we,Le){this.acceptsBooleans=M===2||M===3||M===4,this.attributeName=Q,this.attributeNamespace=be,this.mustUseProperty=H,this.propertyName=D,this.type=M,this.sanitizeURL=we,this.removeEmptyString=Le}var _={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(D){_[D]=new j(D,0,!1,D,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(D){var M=D[0];_[M]=new j(M,1,!1,D[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(D){_[D]=new j(D,2,!1,D.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(D){_[D]=new j(D,2,!1,D,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(D){_[D]=new j(D,3,!1,D.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(D){_[D]=new j(D,3,!0,D,null,!1,!1)}),["capture","download"].forEach(function(D){_[D]=new j(D,4,!1,D,null,!1,!1)}),["cols","rows","size","span"].forEach(function(D){_[D]=new j(D,6,!1,D,null,!1,!1)}),["rowSpan","start"].forEach(function(D){_[D]=new j(D,5,!1,D.toLowerCase(),null,!1,!1)});var U=/[\-:]([a-z])/g;function G(D){return D[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(D){var M=D.replace(U,G);_[M]=new j(M,1,!1,D,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(D){var M=D.replace(U,G);_[M]=new j(M,1,!1,D,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(D){var M=D.replace(U,G);_[M]=new j(M,1,!1,D,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(D){_[D]=new j(D,1,!1,D.toLowerCase(),null,!1,!1)}),_.xlinkHref=new j("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(D){_[D]=new j(D,1,!1,D.toLowerCase(),null,!0,!0)});var re={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},q=["Webkit","ms","Moz","O"];Object.keys(re).forEach(function(D){q.forEach(function(M){M=M+D.charAt(0).toUpperCase()+D.substring(1),re[M]=re[D]})});var se=/["'&<>]/;function S(D){if(typeof D=="boolean"||typeof D=="number")return""+D;D=""+D;var M=se.exec(D);if(M){var H="",Q,be=0;for(Q=M.index;Q<D.length;Q++){switch(D.charCodeAt(Q)){case 34:M="&quot;";break;case 38:M="&amp;";break;case 39:M="&#x27;";break;case 60:M="&lt;";break;case 62:M="&gt;";break;default:continue}be!==Q&&(H+=D.substring(be,Q)),be=Q+1,H+=M}D=be!==Q?H+D.substring(be,Q):H}return D}var ue=/([A-Z])/g,ae=/^ms-/,Ue=Array.isArray,nt=p("<script>"),et=p("<\/script>"),De=p('<script src="'),Me=p('<script type="module" src="'),fe=p('" async=""><\/script>'),me=/(<\/|<)(s)(cript)/gi;function Pe(D,M,H,Q){return""+M+(H==="s"?"\\u0073":"\\u0053")+Q}function Be(D,M,H,Q,be){D=D===void 0?"":D,M=M===void 0?nt:p('<script nonce="'+S(M)+'">');var we=[];if(H!==void 0&&we.push(M,d((""+H).replace(me,Pe)),et),Q!==void 0)for(H=0;H<Q.length;H++)we.push(De,d(S(Q[H])),fe);if(be!==void 0)for(Q=0;Q<be.length;Q++)we.push(Me,d(S(be[Q])),fe);return{bootstrapChunks:we,startInlineScript:M,placeholderPrefix:p(D+"P:"),segmentPrefix:p(D+"S:"),boundaryPrefix:D+"B:",idPrefix:D,nextSuspenseID:0,sentCompleteSegmentFunction:!1,sentCompleteBoundaryFunction:!1,sentClientRenderFunction:!1}}function Ze(D,M){return{insertionMode:D,selectedValue:M}}function ve(D){return Ze(D==="http://www.w3.org/2000/svg"?2:D==="http://www.w3.org/1998/Math/MathML"?3:0,null)}function Se(D,M,H){switch(M){case"select":return Ze(1,H.value!=null?H.value:H.defaultValue);case"svg":return Ze(2,null);case"math":return Ze(3,null);case"foreignObject":return Ze(1,null);case"table":return Ze(4,null);case"thead":case"tbody":case"tfoot":return Ze(5,null);case"colgroup":return Ze(7,null);case"tr":return Ze(6,null)}return 4<=D.insertionMode||D.insertionMode===0?Ze(1,null):D}var je=p("<!-- -->");function Qe(D,M,H,Q){return M===""?Q:(Q&&D.push(je),D.push(d(S(M))),!0)}var Ye=new Map,Ke=p(' style="'),qe=p(":"),ot=p(";");function ct(D,M,H){if(typeof H!="object")throw Error(e(62));M=!0;for(var Q in H)if(m.call(H,Q)){var be=H[Q];if(be!=null&&typeof be!="boolean"&&be!==""){if(Q.indexOf("--")===0){var we=d(S(Q));be=d(S((""+be).trim()))}else{we=Q;var Le=Ye.get(we);Le!==void 0||(Le=p(S(we.replace(ue,"-$1").toLowerCase().replace(ae,"-ms-"))),Ye.set(we,Le)),we=Le,be=typeof be=="number"?be===0||m.call(re,Q)?d(""+be):d(be+"px"):d(S((""+be).trim()))}M?(M=!1,D.push(Ke,we,qe,be)):D.push(ot,we,qe,be)}}M||D.push(yt)}var pt=p(" "),ft=p('="'),yt=p('"'),Je=p('=""');function At(D,M,H,Q){switch(H){case"style":ct(D,M,Q);return;case"defaultValue":case"defaultChecked":case"innerHTML":case"suppressContentEditableWarning":case"suppressHydrationWarning":return}if(!(2<H.length)||H[0]!=="o"&&H[0]!=="O"||H[1]!=="n"&&H[1]!=="N"){if(M=_.hasOwnProperty(H)?_[H]:null,M!==null){switch(typeof Q){case"function":case"symbol":return;case"boolean":if(!M.acceptsBooleans)return}switch(H=d(M.attributeName),M.type){case 3:Q&&D.push(pt,H,Je);break;case 4:Q===!0?D.push(pt,H,Je):Q!==!1&&D.push(pt,H,ft,d(S(Q)),yt);break;case 5:isNaN(Q)||D.push(pt,H,ft,d(S(Q)),yt);break;case 6:!isNaN(Q)&&1<=Q&&D.push(pt,H,ft,d(S(Q)),yt);break;default:M.sanitizeURL&&(Q=""+Q),D.push(pt,H,ft,d(S(Q)),yt)}}else if(I(H)){switch(typeof Q){case"function":case"symbol":return;case"boolean":if(M=H.toLowerCase().slice(0,5),M!=="data-"&&M!=="aria-")return}D.push(pt,d(H),ft,d(S(Q)),yt)}}}var Mt=p(">"),Vn=p("/>");function mr(D,M,H){if(M!=null){if(H!=null)throw Error(e(60));if(typeof M!="object"||!("__html"in M))throw Error(e(61));M=M.__html,M!=null&&D.push(d(""+M))}}function Hn(D){var M="";return t.Children.forEach(D,function(H){H!=null&&(M+=H)}),M}var Sn=p(' selected=""');function $i(D,M,H,Q){D.push(fn(H));var be=H=null,we;for(we in M)if(m.call(M,we)){var Le=M[we];if(Le!=null)switch(we){case"children":H=Le;break;case"dangerouslySetInnerHTML":be=Le;break;default:At(D,Q,we,Le)}}return D.push(Mt),mr(D,be,H),typeof H=="string"?(D.push(d(S(H))),null):H}var kr=p(`
54
54
  `),Jn=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,sn=new Map;function fn(D){var M=sn.get(D);if(M===void 0){if(!Jn.test(D))throw Error(e(65,D));M=p("<"+D),sn.set(D,M)}return M}var dn=p("<!DOCTYPE html>");function ut(D,M,H,Q,be){switch(M){case"select":D.push(fn("select"));var we=null,Le=null;for(St in H)if(m.call(H,St)){var We=H[St];if(We!=null)switch(St){case"children":we=We;break;case"dangerouslySetInnerHTML":Le=We;break;case"defaultValue":case"value":break;default:At(D,Q,St,We)}}return D.push(Mt),mr(D,Le,we),we;case"option":Le=be.selectedValue,D.push(fn("option"));var ht=We=null,_t=null,St=null;for(we in H)if(m.call(H,we)){var vt=H[we];if(vt!=null)switch(we){case"children":We=vt;break;case"selected":_t=vt;break;case"dangerouslySetInnerHTML":St=vt;break;case"value":ht=vt;default:At(D,Q,we,vt)}}if(Le!=null)if(H=ht!==null?""+ht:Hn(We),Ue(Le)){for(Q=0;Q<Le.length;Q++)if(""+Le[Q]===H){D.push(Sn);break}}else""+Le===H&&D.push(Sn);else _t&&D.push(Sn);return D.push(Mt),mr(D,St,We),We;case"textarea":D.push(fn("textarea")),St=Le=we=null;for(We in H)if(m.call(H,We)&&(ht=H[We],ht!=null))switch(We){case"children":St=ht;break;case"value":we=ht;break;case"defaultValue":Le=ht;break;case"dangerouslySetInnerHTML":throw Error(e(91));default:At(D,Q,We,ht)}if(we===null&&Le!==null&&(we=Le),D.push(Mt),St!=null){if(we!=null)throw Error(e(92));if(Ue(St)&&1<St.length)throw Error(e(93));we=""+St}return typeof we=="string"&&we[0]===`
55
55
  `&&D.push(kr),we!==null&&D.push(d(S(""+we))),null;case"input":D.push(fn("input")),ht=St=We=we=null;for(Le in H)if(m.call(H,Le)&&(_t=H[Le],_t!=null))switch(Le){case"children":case"dangerouslySetInnerHTML":throw Error(e(399,"input"));case"defaultChecked":ht=_t;break;case"defaultValue":We=_t;break;case"checked":St=_t;break;case"value":we=_t;break;default:At(D,Q,Le,_t)}return St!==null?At(D,Q,"checked",St):ht!==null&&At(D,Q,"checked",ht),we!==null?At(D,Q,"value",we):We!==null&&At(D,Q,"value",We),D.push(Vn),null;case"menuitem":D.push(fn("menuitem"));for(var An in H)if(m.call(H,An)&&(we=H[An],we!=null))switch(An){case"children":case"dangerouslySetInnerHTML":throw Error(e(400));default:At(D,Q,An,we)}return D.push(Mt),null;case"title":D.push(fn("title")),we=null;for(vt in H)if(m.call(H,vt)&&(Le=H[vt],Le!=null))switch(vt){case"children":we=Le;break;case"dangerouslySetInnerHTML":throw Error(e(434));default:At(D,Q,vt,Le)}return D.push(Mt),we;case"listing":case"pre":D.push(fn(M)),Le=we=null;for(ht in H)if(m.call(H,ht)&&(We=H[ht],We!=null))switch(ht){case"children":we=We;break;case"dangerouslySetInnerHTML":Le=We;break;default:At(D,Q,ht,We)}if(D.push(Mt),Le!=null){if(we!=null)throw Error(e(60));if(typeof Le!="object"||!("__html"in Le))throw Error(e(61));H=Le.__html,H!=null&&(typeof H=="string"&&0<H.length&&H[0]===`
56
56
  `?D.push(kr,d(H)):D.push(d(""+H)))}return typeof we=="string"&&we[0]===`
@@ -62,7 +62,7 @@ Valid keys: `+JSON.stringify(Object.keys(ve),null," "));var Je=yt(ot,ft,Ye,Ke,q
62
62
  *
63
63
  * This source code is licensed under the MIT license found in the
64
64
  * LICENSE file in the root directory of this source tree.
65
- */var b1;function L4(){return b1||(b1=1,process.env.NODE_ENV!=="production"&&function(){var t=X,e="18.3.1",n=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function r(l){{for(var f=arguments.length,g=new Array(f>1?f-1:0),x=1;x<f;x++)g[x-1]=arguments[x];o("warn",l,g)}}function i(l){{for(var f=arguments.length,g=new Array(f>1?f-1:0),x=1;x<f;x++)g[x-1]=arguments[x];o("error",l,g)}}function o(l,f,g){{var x=n.ReactDebugCurrentFrame,R=x.getStackAddendum();R!==""&&(f+="%s",g=g.concat([R]));var B=g.map(function(z){return String(z)});B.unshift("Warning: "+f),Function.prototype.apply.call(console[l],console,B)}}function a(l){l()}function c(l){}function d(l,f){p(l,f)}function p(l,f){return l.push(f)}function w(l){}function m(l){l.push(null)}function T(l){return l}function E(l){return l}function A(l,f){l.destroy(f)}function I(l){{var f=typeof Symbol=="function"&&Symbol.toStringTag,g=f&&l[Symbol.toStringTag]||l.constructor.name||"Object";return g}}function j(l){try{return _(l),!1}catch{return!0}}function _(l){return""+l}function U(l,f){if(j(l))return i("The provided `%s` attribute is an unsupported type %s. This value must be coerced to a string before before using it here.",f,I(l)),_(l)}function G(l,f){if(j(l))return i("The provided `%s` CSS property is an unsupported type %s. This value must be coerced to a string before before using it here.",f,I(l)),_(l)}function re(l){if(j(l))return i("The provided HTML markup uses a value of unsupported type %s. This value must be coerced to a string before before using it here.",I(l)),_(l)}var q=Object.prototype.hasOwnProperty,se=0,S=1,ue=2,ae=3,Ue=4,nt=5,et=6,De=":A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD",Me=De+"\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",fe=new RegExp("^["+De+"]["+Me+"]*$"),me={},Pe={};function Be(l){return q.call(Pe,l)?!0:q.call(me,l)?!1:fe.test(l)?(Pe[l]=!0,!0):(me[l]=!0,i("Invalid attribute name: `%s`",l),!1)}function Ze(l,f,g,x){if(g!==null&&g.type===se)return!1;switch(typeof f){case"function":case"symbol":return!0;case"boolean":{if(g!==null)return!g.acceptsBooleans;var R=l.toLowerCase().slice(0,5);return R!=="data-"&&R!=="aria-"}default:return!1}}function ve(l){return je.hasOwnProperty(l)?je[l]:null}function Se(l,f,g,x,R,B,z){this.acceptsBooleans=f===ue||f===ae||f===Ue,this.attributeName=x,this.attributeNamespace=R,this.mustUseProperty=g,this.propertyName=l,this.type=f,this.sanitizeURL=B,this.removeEmptyString=z}var je={},Qe=["children","dangerouslySetInnerHTML","defaultValue","defaultChecked","innerHTML","suppressContentEditableWarning","suppressHydrationWarning","style"];Qe.forEach(function(l){je[l]=new Se(l,se,!1,l,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(l){var f=l[0],g=l[1];je[f]=new Se(f,S,!1,g,null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(l){je[l]=new Se(l,ue,!1,l.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(l){je[l]=new Se(l,ue,!1,l,null,!1,!1)}),["allowFullScreen","async","autoFocus","autoPlay","controls","default","defer","disabled","disablePictureInPicture","disableRemotePlayback","formNoValidate","hidden","loop","noModule","noValidate","open","playsInline","readOnly","required","reversed","scoped","seamless","itemScope"].forEach(function(l){je[l]=new Se(l,ae,!1,l.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(l){je[l]=new Se(l,ae,!0,l,null,!1,!1)}),["capture","download"].forEach(function(l){je[l]=new Se(l,Ue,!1,l,null,!1,!1)}),["cols","rows","size","span"].forEach(function(l){je[l]=new Se(l,et,!1,l,null,!1,!1)}),["rowSpan","start"].forEach(function(l){je[l]=new Se(l,nt,!1,l.toLowerCase(),null,!1,!1)});var Ye=/[\-\:]([a-z])/g,Ke=function(l){return l[1].toUpperCase()};["accent-height","alignment-baseline","arabic-form","baseline-shift","cap-height","clip-path","clip-rule","color-interpolation","color-interpolation-filters","color-profile","color-rendering","dominant-baseline","enable-background","fill-opacity","fill-rule","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","glyph-name","glyph-orientation-horizontal","glyph-orientation-vertical","horiz-adv-x","horiz-origin-x","image-rendering","letter-spacing","lighting-color","marker-end","marker-mid","marker-start","overline-position","overline-thickness","paint-order","panose-1","pointer-events","rendering-intent","shape-rendering","stop-color","stop-opacity","strikethrough-position","strikethrough-thickness","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","text-anchor","text-decoration","text-rendering","underline-position","underline-thickness","unicode-bidi","unicode-range","units-per-em","v-alphabetic","v-hanging","v-ideographic","v-mathematical","vector-effect","vert-adv-y","vert-origin-x","vert-origin-y","word-spacing","writing-mode","xmlns:xlink","x-height"].forEach(function(l){var f=l.replace(Ye,Ke);je[f]=new Se(f,S,!1,l,null,!1,!1)}),["xlink:actuate","xlink:arcrole","xlink:role","xlink:show","xlink:title","xlink:type"].forEach(function(l){var f=l.replace(Ye,Ke);je[f]=new Se(f,S,!1,l,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(l){var f=l.replace(Ye,Ke);je[f]=new Se(f,S,!1,l,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(l){je[l]=new Se(l,S,!1,l.toLowerCase(),null,!1,!1)});var qe="xlinkHref";je[qe]=new Se("xlinkHref",S,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(l){je[l]=new Se(l,S,!1,l.toLowerCase(),null,!0,!0)});var ot={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0};function ct(l,f){return l+f.charAt(0).toUpperCase()+f.substring(1)}var pt=["Webkit","ms","Moz","O"];Object.keys(ot).forEach(function(l){pt.forEach(function(f){ot[ct(f,l)]=ot[l]})});var ft={button:!0,checkbox:!0,image:!0,hidden:!0,radio:!0,reset:!0,submit:!0};function yt(l,f){ft[f.type]||f.onChange||f.onInput||f.readOnly||f.disabled||f.value==null||i("You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set either `onChange` or `readOnly`."),f.onChange||f.readOnly||f.disabled||f.checked==null||i("You provided a `checked` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultChecked`. Otherwise, set either `onChange` or `readOnly`.")}function Je(l,f){if(l.indexOf("-")===-1)return typeof f.is=="string";switch(l){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var At={"aria-current":0,"aria-description":0,"aria-details":0,"aria-disabled":0,"aria-hidden":0,"aria-invalid":0,"aria-keyshortcuts":0,"aria-label":0,"aria-roledescription":0,"aria-autocomplete":0,"aria-checked":0,"aria-expanded":0,"aria-haspopup":0,"aria-level":0,"aria-modal":0,"aria-multiline":0,"aria-multiselectable":0,"aria-orientation":0,"aria-placeholder":0,"aria-pressed":0,"aria-readonly":0,"aria-required":0,"aria-selected":0,"aria-sort":0,"aria-valuemax":0,"aria-valuemin":0,"aria-valuenow":0,"aria-valuetext":0,"aria-atomic":0,"aria-busy":0,"aria-live":0,"aria-relevant":0,"aria-dropeffect":0,"aria-grabbed":0,"aria-activedescendant":0,"aria-colcount":0,"aria-colindex":0,"aria-colspan":0,"aria-controls":0,"aria-describedby":0,"aria-errormessage":0,"aria-flowto":0,"aria-labelledby":0,"aria-owns":0,"aria-posinset":0,"aria-rowcount":0,"aria-rowindex":0,"aria-rowspan":0,"aria-setsize":0},Mt={},Vn=new RegExp("^(aria)-["+Me+"]*$"),mr=new RegExp("^(aria)[A-Z]["+Me+"]*$");function Hn(l,f){{if(q.call(Mt,f)&&Mt[f])return!0;if(mr.test(f)){var g="aria-"+f.slice(4).toLowerCase(),x=At.hasOwnProperty(g)?g:null;if(x==null)return i("Invalid ARIA attribute `%s`. ARIA attributes follow the pattern aria-* and must be lowercase.",f),Mt[f]=!0,!0;if(f!==x)return i("Invalid ARIA attribute `%s`. Did you mean `%s`?",f,x),Mt[f]=!0,!0}if(Vn.test(f)){var R=f.toLowerCase(),B=At.hasOwnProperty(R)?R:null;if(B==null)return Mt[f]=!0,!1;if(f!==B)return i("Unknown ARIA attribute `%s`. Did you mean `%s`?",f,B),Mt[f]=!0,!0}}return!0}function Sn(l,f){{var g=[];for(var x in f){var R=Hn(l,x);R||g.push(x)}var B=g.map(function(z){return"`"+z+"`"}).join(", ");g.length===1?i("Invalid aria prop %s on <%s> tag. For details, see https://reactjs.org/link/invalid-aria-props",B,l):g.length>1&&i("Invalid aria props %s on <%s> tag. For details, see https://reactjs.org/link/invalid-aria-props",B,l)}}function $i(l,f){Je(l,f)||Sn(l,f)}var kr=!1;function Jn(l,f){{if(l!=="input"&&l!=="textarea"&&l!=="select")return;f!=null&&f.value===null&&!kr&&(kr=!0,l==="select"&&f.multiple?i("`value` prop on `%s` should not be null. Consider using an empty array when `multiple` is set to `true` to clear the component or `undefined` for uncontrolled components.",l):i("`value` prop on `%s` should not be null. Consider using an empty string to clear the component or `undefined` for uncontrolled components.",l))}}var sn={accept:"accept",acceptcharset:"acceptCharset","accept-charset":"acceptCharset",accesskey:"accessKey",action:"action",allowfullscreen:"allowFullScreen",alt:"alt",as:"as",async:"async",autocapitalize:"autoCapitalize",autocomplete:"autoComplete",autocorrect:"autoCorrect",autofocus:"autoFocus",autoplay:"autoPlay",autosave:"autoSave",capture:"capture",cellpadding:"cellPadding",cellspacing:"cellSpacing",challenge:"challenge",charset:"charSet",checked:"checked",children:"children",cite:"cite",class:"className",classid:"classID",classname:"className",cols:"cols",colspan:"colSpan",content:"content",contenteditable:"contentEditable",contextmenu:"contextMenu",controls:"controls",controlslist:"controlsList",coords:"coords",crossorigin:"crossOrigin",dangerouslysetinnerhtml:"dangerouslySetInnerHTML",data:"data",datetime:"dateTime",default:"default",defaultchecked:"defaultChecked",defaultvalue:"defaultValue",defer:"defer",dir:"dir",disabled:"disabled",disablepictureinpicture:"disablePictureInPicture",disableremoteplayback:"disableRemotePlayback",download:"download",draggable:"draggable",enctype:"encType",enterkeyhint:"enterKeyHint",for:"htmlFor",form:"form",formmethod:"formMethod",formaction:"formAction",formenctype:"formEncType",formnovalidate:"formNoValidate",formtarget:"formTarget",frameborder:"frameBorder",headers:"headers",height:"height",hidden:"hidden",high:"high",href:"href",hreflang:"hrefLang",htmlfor:"htmlFor",httpequiv:"httpEquiv","http-equiv":"httpEquiv",icon:"icon",id:"id",imagesizes:"imageSizes",imagesrcset:"imageSrcSet",innerhtml:"innerHTML",inputmode:"inputMode",integrity:"integrity",is:"is",itemid:"itemID",itemprop:"itemProp",itemref:"itemRef",itemscope:"itemScope",itemtype:"itemType",keyparams:"keyParams",keytype:"keyType",kind:"kind",label:"label",lang:"lang",list:"list",loop:"loop",low:"low",manifest:"manifest",marginwidth:"marginWidth",marginheight:"marginHeight",max:"max",maxlength:"maxLength",media:"media",mediagroup:"mediaGroup",method:"method",min:"min",minlength:"minLength",multiple:"multiple",muted:"muted",name:"name",nomodule:"noModule",nonce:"nonce",novalidate:"noValidate",open:"open",optimum:"optimum",pattern:"pattern",placeholder:"placeholder",playsinline:"playsInline",poster:"poster",preload:"preload",profile:"profile",radiogroup:"radioGroup",readonly:"readOnly",referrerpolicy:"referrerPolicy",rel:"rel",required:"required",reversed:"reversed",role:"role",rows:"rows",rowspan:"rowSpan",sandbox:"sandbox",scope:"scope",scoped:"scoped",scrolling:"scrolling",seamless:"seamless",selected:"selected",shape:"shape",size:"size",sizes:"sizes",span:"span",spellcheck:"spellCheck",src:"src",srcdoc:"srcDoc",srclang:"srcLang",srcset:"srcSet",start:"start",step:"step",style:"style",summary:"summary",tabindex:"tabIndex",target:"target",title:"title",type:"type",usemap:"useMap",value:"value",width:"width",wmode:"wmode",wrap:"wrap",about:"about",accentheight:"accentHeight","accent-height":"accentHeight",accumulate:"accumulate",additive:"additive",alignmentbaseline:"alignmentBaseline","alignment-baseline":"alignmentBaseline",allowreorder:"allowReorder",alphabetic:"alphabetic",amplitude:"amplitude",arabicform:"arabicForm","arabic-form":"arabicForm",ascent:"ascent",attributename:"attributeName",attributetype:"attributeType",autoreverse:"autoReverse",azimuth:"azimuth",basefrequency:"baseFrequency",baselineshift:"baselineShift","baseline-shift":"baselineShift",baseprofile:"baseProfile",bbox:"bbox",begin:"begin",bias:"bias",by:"by",calcmode:"calcMode",capheight:"capHeight","cap-height":"capHeight",clip:"clip",clippath:"clipPath","clip-path":"clipPath",clippathunits:"clipPathUnits",cliprule:"clipRule","clip-rule":"clipRule",color:"color",colorinterpolation:"colorInterpolation","color-interpolation":"colorInterpolation",colorinterpolationfilters:"colorInterpolationFilters","color-interpolation-filters":"colorInterpolationFilters",colorprofile:"colorProfile","color-profile":"colorProfile",colorrendering:"colorRendering","color-rendering":"colorRendering",contentscripttype:"contentScriptType",contentstyletype:"contentStyleType",cursor:"cursor",cx:"cx",cy:"cy",d:"d",datatype:"datatype",decelerate:"decelerate",descent:"descent",diffuseconstant:"diffuseConstant",direction:"direction",display:"display",divisor:"divisor",dominantbaseline:"dominantBaseline","dominant-baseline":"dominantBaseline",dur:"dur",dx:"dx",dy:"dy",edgemode:"edgeMode",elevation:"elevation",enablebackground:"enableBackground","enable-background":"enableBackground",end:"end",exponent:"exponent",externalresourcesrequired:"externalResourcesRequired",fill:"fill",fillopacity:"fillOpacity","fill-opacity":"fillOpacity",fillrule:"fillRule","fill-rule":"fillRule",filter:"filter",filterres:"filterRes",filterunits:"filterUnits",floodopacity:"floodOpacity","flood-opacity":"floodOpacity",floodcolor:"floodColor","flood-color":"floodColor",focusable:"focusable",fontfamily:"fontFamily","font-family":"fontFamily",fontsize:"fontSize","font-size":"fontSize",fontsizeadjust:"fontSizeAdjust","font-size-adjust":"fontSizeAdjust",fontstretch:"fontStretch","font-stretch":"fontStretch",fontstyle:"fontStyle","font-style":"fontStyle",fontvariant:"fontVariant","font-variant":"fontVariant",fontweight:"fontWeight","font-weight":"fontWeight",format:"format",from:"from",fx:"fx",fy:"fy",g1:"g1",g2:"g2",glyphname:"glyphName","glyph-name":"glyphName",glyphorientationhorizontal:"glyphOrientationHorizontal","glyph-orientation-horizontal":"glyphOrientationHorizontal",glyphorientationvertical:"glyphOrientationVertical","glyph-orientation-vertical":"glyphOrientationVertical",glyphref:"glyphRef",gradienttransform:"gradientTransform",gradientunits:"gradientUnits",hanging:"hanging",horizadvx:"horizAdvX","horiz-adv-x":"horizAdvX",horizoriginx:"horizOriginX","horiz-origin-x":"horizOriginX",ideographic:"ideographic",imagerendering:"imageRendering","image-rendering":"imageRendering",in2:"in2",in:"in",inlist:"inlist",intercept:"intercept",k1:"k1",k2:"k2",k3:"k3",k4:"k4",k:"k",kernelmatrix:"kernelMatrix",kernelunitlength:"kernelUnitLength",kerning:"kerning",keypoints:"keyPoints",keysplines:"keySplines",keytimes:"keyTimes",lengthadjust:"lengthAdjust",letterspacing:"letterSpacing","letter-spacing":"letterSpacing",lightingcolor:"lightingColor","lighting-color":"lightingColor",limitingconeangle:"limitingConeAngle",local:"local",markerend:"markerEnd","marker-end":"markerEnd",markerheight:"markerHeight",markermid:"markerMid","marker-mid":"markerMid",markerstart:"markerStart","marker-start":"markerStart",markerunits:"markerUnits",markerwidth:"markerWidth",mask:"mask",maskcontentunits:"maskContentUnits",maskunits:"maskUnits",mathematical:"mathematical",mode:"mode",numoctaves:"numOctaves",offset:"offset",opacity:"opacity",operator:"operator",order:"order",orient:"orient",orientation:"orientation",origin:"origin",overflow:"overflow",overlineposition:"overlinePosition","overline-position":"overlinePosition",overlinethickness:"overlineThickness","overline-thickness":"overlineThickness",paintorder:"paintOrder","paint-order":"paintOrder",panose1:"panose1","panose-1":"panose1",pathlength:"pathLength",patterncontentunits:"patternContentUnits",patterntransform:"patternTransform",patternunits:"patternUnits",pointerevents:"pointerEvents","pointer-events":"pointerEvents",points:"points",pointsatx:"pointsAtX",pointsaty:"pointsAtY",pointsatz:"pointsAtZ",prefix:"prefix",preservealpha:"preserveAlpha",preserveaspectratio:"preserveAspectRatio",primitiveunits:"primitiveUnits",property:"property",r:"r",radius:"radius",refx:"refX",refy:"refY",renderingintent:"renderingIntent","rendering-intent":"renderingIntent",repeatcount:"repeatCount",repeatdur:"repeatDur",requiredextensions:"requiredExtensions",requiredfeatures:"requiredFeatures",resource:"resource",restart:"restart",result:"result",results:"results",rotate:"rotate",rx:"rx",ry:"ry",scale:"scale",security:"security",seed:"seed",shaperendering:"shapeRendering","shape-rendering":"shapeRendering",slope:"slope",spacing:"spacing",specularconstant:"specularConstant",specularexponent:"specularExponent",speed:"speed",spreadmethod:"spreadMethod",startoffset:"startOffset",stddeviation:"stdDeviation",stemh:"stemh",stemv:"stemv",stitchtiles:"stitchTiles",stopcolor:"stopColor","stop-color":"stopColor",stopopacity:"stopOpacity","stop-opacity":"stopOpacity",strikethroughposition:"strikethroughPosition","strikethrough-position":"strikethroughPosition",strikethroughthickness:"strikethroughThickness","strikethrough-thickness":"strikethroughThickness",string:"string",stroke:"stroke",strokedasharray:"strokeDasharray","stroke-dasharray":"strokeDasharray",strokedashoffset:"strokeDashoffset","stroke-dashoffset":"strokeDashoffset",strokelinecap:"strokeLinecap","stroke-linecap":"strokeLinecap",strokelinejoin:"strokeLinejoin","stroke-linejoin":"strokeLinejoin",strokemiterlimit:"strokeMiterlimit","stroke-miterlimit":"strokeMiterlimit",strokewidth:"strokeWidth","stroke-width":"strokeWidth",strokeopacity:"strokeOpacity","stroke-opacity":"strokeOpacity",suppresscontenteditablewarning:"suppressContentEditableWarning",suppresshydrationwarning:"suppressHydrationWarning",surfacescale:"surfaceScale",systemlanguage:"systemLanguage",tablevalues:"tableValues",targetx:"targetX",targety:"targetY",textanchor:"textAnchor","text-anchor":"textAnchor",textdecoration:"textDecoration","text-decoration":"textDecoration",textlength:"textLength",textrendering:"textRendering","text-rendering":"textRendering",to:"to",transform:"transform",typeof:"typeof",u1:"u1",u2:"u2",underlineposition:"underlinePosition","underline-position":"underlinePosition",underlinethickness:"underlineThickness","underline-thickness":"underlineThickness",unicode:"unicode",unicodebidi:"unicodeBidi","unicode-bidi":"unicodeBidi",unicoderange:"unicodeRange","unicode-range":"unicodeRange",unitsperem:"unitsPerEm","units-per-em":"unitsPerEm",unselectable:"unselectable",valphabetic:"vAlphabetic","v-alphabetic":"vAlphabetic",values:"values",vectoreffect:"vectorEffect","vector-effect":"vectorEffect",version:"version",vertadvy:"vertAdvY","vert-adv-y":"vertAdvY",vertoriginx:"vertOriginX","vert-origin-x":"vertOriginX",vertoriginy:"vertOriginY","vert-origin-y":"vertOriginY",vhanging:"vHanging","v-hanging":"vHanging",videographic:"vIdeographic","v-ideographic":"vIdeographic",viewbox:"viewBox",viewtarget:"viewTarget",visibility:"visibility",vmathematical:"vMathematical","v-mathematical":"vMathematical",vocab:"vocab",widths:"widths",wordspacing:"wordSpacing","word-spacing":"wordSpacing",writingmode:"writingMode","writing-mode":"writingMode",x1:"x1",x2:"x2",x:"x",xchannelselector:"xChannelSelector",xheight:"xHeight","x-height":"xHeight",xlinkactuate:"xlinkActuate","xlink:actuate":"xlinkActuate",xlinkarcrole:"xlinkArcrole","xlink:arcrole":"xlinkArcrole",xlinkhref:"xlinkHref","xlink:href":"xlinkHref",xlinkrole:"xlinkRole","xlink:role":"xlinkRole",xlinkshow:"xlinkShow","xlink:show":"xlinkShow",xlinktitle:"xlinkTitle","xlink:title":"xlinkTitle",xlinktype:"xlinkType","xlink:type":"xlinkType",xmlbase:"xmlBase","xml:base":"xmlBase",xmllang:"xmlLang","xml:lang":"xmlLang",xmlns:"xmlns","xml:space":"xmlSpace",xmlnsxlink:"xmlnsXlink","xmlns:xlink":"xmlnsXlink",xmlspace:"xmlSpace",y1:"y1",y2:"y2",y:"y",ychannelselector:"yChannelSelector",z:"z",zoomandpan:"zoomAndPan"},fn=function(){};{var dn={},ut=/^on./,Dn=/^on[^A-Z]/,oi=new RegExp("^(aria)-["+Me+"]*$"),on=new RegExp("^(aria)[A-Z]["+Me+"]*$");fn=function(l,f,g,x){if(q.call(dn,f)&&dn[f])return!0;var R=f.toLowerCase();if(R==="onfocusin"||R==="onfocusout")return i("React uses onFocus and onBlur instead of onFocusIn and onFocusOut. All React events are normalized to bubble, so onFocusIn and onFocusOut are not needed/supported by React."),dn[f]=!0,!0;if(x!=null){var B=x.registrationNameDependencies,z=x.possibleRegistrationNames;if(B.hasOwnProperty(f))return!0;var ne=z.hasOwnProperty(R)?z[R]:null;if(ne!=null)return i("Invalid event handler property `%s`. Did you mean `%s`?",f,ne),dn[f]=!0,!0;if(ut.test(f))return i("Unknown event handler property `%s`. It will be ignored.",f),dn[f]=!0,!0}else if(ut.test(f))return Dn.test(f)&&i("Invalid event handler property `%s`. React events use the camelCase naming convention, for example `onClick`.",f),dn[f]=!0,!0;if(oi.test(f)||on.test(f))return!0;if(R==="innerhtml")return i("Directly setting property `innerHTML` is not permitted. For more information, lookup documentation on `dangerouslySetInnerHTML`."),dn[f]=!0,!0;if(R==="aria")return i("The `aria` attribute is reserved for future use in React. Pass individual `aria-` attributes instead."),dn[f]=!0,!0;if(R==="is"&&g!==null&&g!==void 0&&typeof g!="string")return i("Received a `%s` for a string attribute `is`. If this is expected, cast the value to a string.",typeof g),dn[f]=!0,!0;if(typeof g=="number"&&isNaN(g))return i("Received NaN for the `%s` attribute. If this is expected, cast the value to a string.",f),dn[f]=!0,!0;var xe=ve(f),Ne=xe!==null&&xe.type===se;if(sn.hasOwnProperty(R)){var ze=sn[R];if(ze!==f)return i("Invalid DOM property `%s`. Did you mean `%s`?",f,ze),dn[f]=!0,!0}else if(!Ne&&f!==R)return i("React does not recognize the `%s` prop on a DOM element. If you intentionally want it to appear in the DOM as a custom attribute, spell it as lowercase `%s` instead. If you accidentally passed it from a parent component, remove it from the DOM element.",f,R),dn[f]=!0,!0;return typeof g=="boolean"&&Ze(f,g,xe)?(g?i('Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.',g,f,f,g,f):i('Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.\n\nIf you used to conditionally omit it with %s={condition && value}, pass %s={condition ? value : undefined} instead.',g,f,f,g,f,f,f),dn[f]=!0,!0):Ne?!0:Ze(f,g,xe)?(dn[f]=!0,!1):((g==="false"||g==="true")&&xe!==null&&xe.type===ae&&(i("Received the string `%s` for the boolean attribute `%s`. %s Did you mean %s={%s}?",g,f,g==="false"?"The browser will interpret it as a truthy value.":'Although this works, it will not work as expected if you pass the string "false".',f,g),dn[f]=!0),!0)}}var Vi=function(l,f,g){{var x=[];for(var R in f){var B=fn(l,R,f[R],g);B||x.push(R)}var z=x.map(function(ne){return"`"+ne+"`"}).join(", ");x.length===1?i("Invalid value for prop %s on <%s> tag. Either remove it from the element, or pass a string or number value to keep it in the DOM. For details, see https://reactjs.org/link/attribute-behavior ",z,l):x.length>1&&i("Invalid values for props %s on <%s> tag. Either remove them from the element, or pass a string or number value to keep them in the DOM. For details, see https://reactjs.org/link/attribute-behavior ",z,l)}};function Hi(l,f,g){Je(l,f)||Vi(l,f,g)}var Ui=function(){};{var Dr=/^(?:webkit|moz|o)[A-Z]/,Nn=/^-ms-/,Pr=/-(.)/g,vr=/;\s*$/,zr={},Yr={},Ao=!1,Un=!1,Gr=function(l){return l.replace(Pr,function(f,g){return g.toUpperCase()})},Qn=function(l){zr.hasOwnProperty(l)&&zr[l]||(zr[l]=!0,i("Unsupported style property %s. Did you mean %s?",l,Gr(l.replace(Nn,"ms-"))))},Wt=function(l){zr.hasOwnProperty(l)&&zr[l]||(zr[l]=!0,i("Unsupported vendor-prefixed style property %s. Did you mean %s?",l,l.charAt(0).toUpperCase()+l.slice(1)))},si=function(l,f){Yr.hasOwnProperty(f)&&Yr[f]||(Yr[f]=!0,i(`Style property values shouldn't contain a semicolon. Try "%s: %s" instead.`,l,f.replace(vr,"")))},Wi=function(l,f){Ao||(Ao=!0,i("`NaN` is an invalid value for the `%s` css style property.",l))},Pn=function(l,f){Un||(Un=!0,i("`Infinity` is an invalid value for the `%s` css style property.",l))};Ui=function(l,f){l.indexOf("-")>-1?Qn(l):Dr.test(l)?Wt(l):vr.test(f)&&si(l,f),typeof f=="number"&&(isNaN(f)?Wi(l,f):isFinite(f)||Pn(l,f))}}var hn=Ui,ai=/["'&<>]/;function li(l){re(l);var f=""+l,g=ai.exec(f);if(!g)return f;var x,R="",B,z=0;for(B=g.index;B<f.length;B++){switch(f.charCodeAt(B)){case 34:x="&quot;";break;case 38:x="&amp;";break;case 39:x="&#x27;";break;case 60:x="&lt;";break;case 62:x="&gt;";break;default:continue}z!==B&&(R+=f.substring(z,B)),z=B+1,R+=x}return z!==B?R+f.substring(z,B):R}function Tn(l){return typeof l=="boolean"||typeof l=="number"?""+l:li(l)}var so=/([A-Z])/g,yr=/^ms-/;function ui(l){return l.replace(so,"-$1").toLowerCase().replace(yr,"-ms-")}var an=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*\:/i,Di=!1;function Ms(l){!Di&&an.test(l)&&(Di=!0,i("A future version of React will block javascript: URLs as a security precaution. Use event handlers instead if you can. If you need to generate unsafe HTML try using dangerouslySetInnerHTML instead. React was passed %s.",JSON.stringify(l)))}var Ls=Array.isArray;function qr(l){return Ls(l)}var ao="<script>";function lo(l,f,g,x,R){var B=l===void 0?"":l,z=ao,ne=[];return{bootstrapChunks:ne,startInlineScript:z,placeholderPrefix:B+"P:",segmentPrefix:B+"S:",boundaryPrefix:B+"B:",idPrefix:B,nextSuspenseID:0,sentCompleteSegmentFunction:!1,sentCompleteBoundaryFunction:!1,sentClientRenderFunction:!1}}var Pi=0,er=1,Or=2,_r=3,ci=4,Xr=5,br=6,Rr=7;function tr(l,f){return{insertionMode:l,selectedValue:f}}function zi(l,f,g){switch(f){case"select":return tr(er,g.value!=null?g.value:g.defaultValue);case"svg":return tr(Or,null);case"math":return tr(_r,null);case"foreignObject":return tr(er,null);case"table":return tr(ci,null);case"thead":case"tbody":case"tfoot":return tr(Xr,null);case"colgroup":return tr(Rr,null);case"tr":return tr(br,null)}return l.insertionMode>=ci||l.insertionMode===Pi?tr(er,null):l}var Oi=null;function ar(l){var f=l.nextSuspenseID++;return l.boundaryPrefix+f.toString(16)}function yn(l,f,g){var x=l.idPrefix,R=":"+x+"R"+f;return g>0&&(R+="H"+g.toString(32)),R+":"}function Ar(l){return Tn(l)}var Ir="<!-- -->";function fi(l,f,g,x){return f===""?x:(x&&l.push(Ir),l.push(Ar(f)),!0)}function di(l,f,g,x){g&&x&&l.push(Ir)}var wr=new Map;function Kr(l){var f=wr.get(l);if(f!==void 0)return f;var g=Tn(ui(l));return wr.set(l,g),g}var Wn=' style="',hi=":",pi=";";function _i(l,f,g){if(typeof g!="object")throw new Error("The `style` prop expects a mapping from style properties to values, not a string. For example, style={{marginRight: spacing + 'em'}} when using JSX.");var x=!0;for(var R in g)if(q.call(g,R)){var B=g[R];if(!(B==null||typeof B=="boolean"||B==="")){var z=void 0,ne=void 0,xe=R.indexOf("--")===0;xe?(z=Tn(R),G(B,R),ne=Tn((""+B).trim())):(hn(R,B),z=Kr(R),typeof B=="number"?B!==0&&!q.call(ot,R)?ne=B+"px":ne=""+B:(G(B,R),ne=Tn((""+B).trim()))),x?(x=!1,l.push(Wn,z,hi,ne)):l.push(pi,z,hi,ne)}}x||l.push(Cn)}var nn=" ",jn='="',Cn='"',uo='=""';function On(l,f,g,x){switch(g){case"style":{_i(l,f,x);return}case"defaultValue":case"defaultChecked":case"innerHTML":case"suppressContentEditableWarning":case"suppressHydrationWarning":return}if(!(g.length>2&&(g[0]==="o"||g[0]==="O")&&(g[1]==="n"||g[1]==="N"))){var R=ve(g);if(R!==null){switch(typeof x){case"function":case"symbol":return;case"boolean":if(!R.acceptsBooleans)return}var B=R.attributeName,z=B;switch(R.type){case ae:x&&l.push(nn,z,uo);return;case Ue:x===!0?l.push(nn,z,uo):x===!1||l.push(nn,z,jn,Tn(x),Cn);return;case nt:isNaN(x)||l.push(nn,z,jn,Tn(x),Cn);break;case et:!isNaN(x)&&x>=1&&l.push(nn,z,jn,Tn(x),Cn);break;default:R.sanitizeURL&&(U(x,B),x=""+x,Ms(x)),l.push(nn,z,jn,Tn(x),Cn)}}else if(Be(g)){switch(typeof x){case"function":case"symbol":return;case"boolean":{var ne=g.toLowerCase().slice(0,5);if(ne!=="data-"&&ne!=="aria-")return}}l.push(nn,g,jn,Tn(x),Cn)}}}var _n=">",k="/>";function F(l,f,g){if(f!=null){if(g!=null)throw new Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");if(typeof f!="object"||!("__html"in f))throw new Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://reactjs.org/link/dangerously-set-inner-html for more information.");var x=f.__html;x!=null&&(re(x),l.push(""+x))}}var Y=!1,ee=!1,Ee=!1,ge=!1,_e=!1,Ge=!1,gt=!1;function mt(l,f){{var g=l[f];if(g!=null){var x=qr(g);l.multiple&&!x?i("The `%s` prop supplied to <select> must be an array if `multiple` is true.",f):!l.multiple&&x&&i("The `%s` prop supplied to <select> must be a scalar value if `multiple` is false.",f)}}}function dt(l,f,g){yt("select",f),mt(f,"value"),mt(f,"defaultValue"),f.value!==void 0&&f.defaultValue!==void 0&&!Ee&&(i("Select elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled select element and remove one of these props. More info: https://reactjs.org/link/controlled-components"),Ee=!0),l.push(xr("select"));var x=null,R=null;for(var B in f)if(q.call(f,B)){var z=f[B];if(z==null)continue;switch(B){case"children":x=z;break;case"dangerouslySetInnerHTML":R=z;break;case"defaultValue":case"value":break;default:On(l,g,B,z);break}}return l.push(_n),F(l,R,x),x}function Ft(l){var f="";return t.Children.forEach(l,function(g){g!=null&&(f+=g,!_e&&typeof g!="string"&&typeof g!="number"&&(_e=!0,i("Cannot infer the option value of complex children. Pass a `value` prop or use a plain string as children to <option>.")))}),f}var Bn=' selected=""';function zn(l,f,g,x){var R=x.selectedValue;l.push(xr("option"));var B=null,z=null,ne=null,xe=null;for(var Ne in f)if(q.call(f,Ne)){var ze=f[Ne];if(ze==null)continue;switch(Ne){case"children":B=ze;break;case"selected":ne=ze,gt||(i("Use the `defaultValue` or `value` props on <select> instead of setting `selected` on <option>."),gt=!0);break;case"dangerouslySetInnerHTML":xe=ze;break;case"value":z=ze;default:On(l,g,Ne,ze);break}}if(R!=null){var tt;if(z!==null?(U(z,"value"),tt=""+z):(xe!==null&&(Ge||(Ge=!0,i("Pass a `value` prop if you set dangerouslyInnerHTML so React knows which value should be selected."))),tt=Ft(B)),qr(R))for(var xt=0;xt<R.length;xt++){U(R[xt],"value");var en=""+R[xt];if(en===tt){l.push(Bn);break}}else U(R,"select.value"),""+R===tt&&l.push(Bn)}else ne&&l.push(Bn);return l.push(_n),F(l,xe,B),B}function En(l,f,g){yt("input",f),f.checked!==void 0&&f.defaultChecked!==void 0&&!ee&&(i("%s contains an input of type %s with both checked and defaultChecked props. Input elements must be either controlled or uncontrolled (specify either the checked prop, or the defaultChecked prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://reactjs.org/link/controlled-components","A component",f.type),ee=!0),f.value!==void 0&&f.defaultValue!==void 0&&!Y&&(i("%s contains an input of type %s with both value and defaultValue props. Input elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://reactjs.org/link/controlled-components","A component",f.type),Y=!0),l.push(xr("input"));var x=null,R=null,B=null,z=null;for(var ne in f)if(q.call(f,ne)){var xe=f[ne];if(xe==null)continue;switch(ne){case"children":case"dangerouslySetInnerHTML":throw new Error("input is a self-closing tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");case"defaultChecked":z=xe;break;case"defaultValue":R=xe;break;case"checked":B=xe;break;case"value":x=xe;break;default:On(l,g,ne,xe);break}}return B!==null?On(l,g,"checked",B):z!==null&&On(l,g,"checked",z),x!==null?On(l,g,"value",x):R!==null&&On(l,g,"value",R),l.push(k),null}function Zr(l,f,g){yt("textarea",f),f.value!==void 0&&f.defaultValue!==void 0&&!ge&&(i("Textarea elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled textarea and remove one of these props. More info: https://reactjs.org/link/controlled-components"),ge=!0),l.push(xr("textarea"));var x=null,R=null,B=null;for(var z in f)if(q.call(f,z)){var ne=f[z];if(ne==null)continue;switch(z){case"children":B=ne;break;case"value":x=ne;break;case"defaultValue":R=ne;break;case"dangerouslySetInnerHTML":throw new Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");default:On(l,g,z,ne);break}}if(x===null&&R!==null&&(x=R),l.push(_n),B!=null){if(i("Use the `defaultValue` or `value` props instead of setting children on <textarea>."),x!=null)throw new Error("If you supply `defaultValue` on a <textarea>, do not pass children.");if(qr(B)){if(B.length>1)throw new Error("<textarea> can only have at most one child.");re(B[0]),x=""+B[0]}re(B),x=""+B}return typeof x=="string"&&x[0]===`
65
+ */var x1;function V4(){return x1||(x1=1,process.env.NODE_ENV!=="production"&&function(){var t=X,e="18.3.1",n=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function r(l){{for(var f=arguments.length,g=new Array(f>1?f-1:0),x=1;x<f;x++)g[x-1]=arguments[x];o("warn",l,g)}}function i(l){{for(var f=arguments.length,g=new Array(f>1?f-1:0),x=1;x<f;x++)g[x-1]=arguments[x];o("error",l,g)}}function o(l,f,g){{var x=n.ReactDebugCurrentFrame,R=x.getStackAddendum();R!==""&&(f+="%s",g=g.concat([R]));var B=g.map(function(z){return String(z)});B.unshift("Warning: "+f),Function.prototype.apply.call(console[l],console,B)}}function a(l){l()}function c(l){}function d(l,f){p(l,f)}function p(l,f){return l.push(f)}function w(l){}function m(l){l.push(null)}function T(l){return l}function E(l){return l}function A(l,f){l.destroy(f)}function I(l){{var f=typeof Symbol=="function"&&Symbol.toStringTag,g=f&&l[Symbol.toStringTag]||l.constructor.name||"Object";return g}}function j(l){try{return _(l),!1}catch{return!0}}function _(l){return""+l}function U(l,f){if(j(l))return i("The provided `%s` attribute is an unsupported type %s. This value must be coerced to a string before before using it here.",f,I(l)),_(l)}function G(l,f){if(j(l))return i("The provided `%s` CSS property is an unsupported type %s. This value must be coerced to a string before before using it here.",f,I(l)),_(l)}function re(l){if(j(l))return i("The provided HTML markup uses a value of unsupported type %s. This value must be coerced to a string before before using it here.",I(l)),_(l)}var q=Object.prototype.hasOwnProperty,se=0,S=1,ue=2,ae=3,Ue=4,nt=5,et=6,De=":A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD",Me=De+"\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",fe=new RegExp("^["+De+"]["+Me+"]*$"),me={},Pe={};function Be(l){return q.call(Pe,l)?!0:q.call(me,l)?!1:fe.test(l)?(Pe[l]=!0,!0):(me[l]=!0,i("Invalid attribute name: `%s`",l),!1)}function Ze(l,f,g,x){if(g!==null&&g.type===se)return!1;switch(typeof f){case"function":case"symbol":return!0;case"boolean":{if(g!==null)return!g.acceptsBooleans;var R=l.toLowerCase().slice(0,5);return R!=="data-"&&R!=="aria-"}default:return!1}}function ve(l){return je.hasOwnProperty(l)?je[l]:null}function Se(l,f,g,x,R,B,z){this.acceptsBooleans=f===ue||f===ae||f===Ue,this.attributeName=x,this.attributeNamespace=R,this.mustUseProperty=g,this.propertyName=l,this.type=f,this.sanitizeURL=B,this.removeEmptyString=z}var je={},Qe=["children","dangerouslySetInnerHTML","defaultValue","defaultChecked","innerHTML","suppressContentEditableWarning","suppressHydrationWarning","style"];Qe.forEach(function(l){je[l]=new Se(l,se,!1,l,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(l){var f=l[0],g=l[1];je[f]=new Se(f,S,!1,g,null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(l){je[l]=new Se(l,ue,!1,l.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(l){je[l]=new Se(l,ue,!1,l,null,!1,!1)}),["allowFullScreen","async","autoFocus","autoPlay","controls","default","defer","disabled","disablePictureInPicture","disableRemotePlayback","formNoValidate","hidden","loop","noModule","noValidate","open","playsInline","readOnly","required","reversed","scoped","seamless","itemScope"].forEach(function(l){je[l]=new Se(l,ae,!1,l.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(l){je[l]=new Se(l,ae,!0,l,null,!1,!1)}),["capture","download"].forEach(function(l){je[l]=new Se(l,Ue,!1,l,null,!1,!1)}),["cols","rows","size","span"].forEach(function(l){je[l]=new Se(l,et,!1,l,null,!1,!1)}),["rowSpan","start"].forEach(function(l){je[l]=new Se(l,nt,!1,l.toLowerCase(),null,!1,!1)});var Ye=/[\-\:]([a-z])/g,Ke=function(l){return l[1].toUpperCase()};["accent-height","alignment-baseline","arabic-form","baseline-shift","cap-height","clip-path","clip-rule","color-interpolation","color-interpolation-filters","color-profile","color-rendering","dominant-baseline","enable-background","fill-opacity","fill-rule","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","glyph-name","glyph-orientation-horizontal","glyph-orientation-vertical","horiz-adv-x","horiz-origin-x","image-rendering","letter-spacing","lighting-color","marker-end","marker-mid","marker-start","overline-position","overline-thickness","paint-order","panose-1","pointer-events","rendering-intent","shape-rendering","stop-color","stop-opacity","strikethrough-position","strikethrough-thickness","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","text-anchor","text-decoration","text-rendering","underline-position","underline-thickness","unicode-bidi","unicode-range","units-per-em","v-alphabetic","v-hanging","v-ideographic","v-mathematical","vector-effect","vert-adv-y","vert-origin-x","vert-origin-y","word-spacing","writing-mode","xmlns:xlink","x-height"].forEach(function(l){var f=l.replace(Ye,Ke);je[f]=new Se(f,S,!1,l,null,!1,!1)}),["xlink:actuate","xlink:arcrole","xlink:role","xlink:show","xlink:title","xlink:type"].forEach(function(l){var f=l.replace(Ye,Ke);je[f]=new Se(f,S,!1,l,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(l){var f=l.replace(Ye,Ke);je[f]=new Se(f,S,!1,l,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(l){je[l]=new Se(l,S,!1,l.toLowerCase(),null,!1,!1)});var qe="xlinkHref";je[qe]=new Se("xlinkHref",S,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(l){je[l]=new Se(l,S,!1,l.toLowerCase(),null,!0,!0)});var ot={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0};function ct(l,f){return l+f.charAt(0).toUpperCase()+f.substring(1)}var pt=["Webkit","ms","Moz","O"];Object.keys(ot).forEach(function(l){pt.forEach(function(f){ot[ct(f,l)]=ot[l]})});var ft={button:!0,checkbox:!0,image:!0,hidden:!0,radio:!0,reset:!0,submit:!0};function yt(l,f){ft[f.type]||f.onChange||f.onInput||f.readOnly||f.disabled||f.value==null||i("You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set either `onChange` or `readOnly`."),f.onChange||f.readOnly||f.disabled||f.checked==null||i("You provided a `checked` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultChecked`. Otherwise, set either `onChange` or `readOnly`.")}function Je(l,f){if(l.indexOf("-")===-1)return typeof f.is=="string";switch(l){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var At={"aria-current":0,"aria-description":0,"aria-details":0,"aria-disabled":0,"aria-hidden":0,"aria-invalid":0,"aria-keyshortcuts":0,"aria-label":0,"aria-roledescription":0,"aria-autocomplete":0,"aria-checked":0,"aria-expanded":0,"aria-haspopup":0,"aria-level":0,"aria-modal":0,"aria-multiline":0,"aria-multiselectable":0,"aria-orientation":0,"aria-placeholder":0,"aria-pressed":0,"aria-readonly":0,"aria-required":0,"aria-selected":0,"aria-sort":0,"aria-valuemax":0,"aria-valuemin":0,"aria-valuenow":0,"aria-valuetext":0,"aria-atomic":0,"aria-busy":0,"aria-live":0,"aria-relevant":0,"aria-dropeffect":0,"aria-grabbed":0,"aria-activedescendant":0,"aria-colcount":0,"aria-colindex":0,"aria-colspan":0,"aria-controls":0,"aria-describedby":0,"aria-errormessage":0,"aria-flowto":0,"aria-labelledby":0,"aria-owns":0,"aria-posinset":0,"aria-rowcount":0,"aria-rowindex":0,"aria-rowspan":0,"aria-setsize":0},Mt={},Vn=new RegExp("^(aria)-["+Me+"]*$"),mr=new RegExp("^(aria)[A-Z]["+Me+"]*$");function Hn(l,f){{if(q.call(Mt,f)&&Mt[f])return!0;if(mr.test(f)){var g="aria-"+f.slice(4).toLowerCase(),x=At.hasOwnProperty(g)?g:null;if(x==null)return i("Invalid ARIA attribute `%s`. ARIA attributes follow the pattern aria-* and must be lowercase.",f),Mt[f]=!0,!0;if(f!==x)return i("Invalid ARIA attribute `%s`. Did you mean `%s`?",f,x),Mt[f]=!0,!0}if(Vn.test(f)){var R=f.toLowerCase(),B=At.hasOwnProperty(R)?R:null;if(B==null)return Mt[f]=!0,!1;if(f!==B)return i("Unknown ARIA attribute `%s`. Did you mean `%s`?",f,B),Mt[f]=!0,!0}}return!0}function Sn(l,f){{var g=[];for(var x in f){var R=Hn(l,x);R||g.push(x)}var B=g.map(function(z){return"`"+z+"`"}).join(", ");g.length===1?i("Invalid aria prop %s on <%s> tag. For details, see https://reactjs.org/link/invalid-aria-props",B,l):g.length>1&&i("Invalid aria props %s on <%s> tag. For details, see https://reactjs.org/link/invalid-aria-props",B,l)}}function $i(l,f){Je(l,f)||Sn(l,f)}var kr=!1;function Jn(l,f){{if(l!=="input"&&l!=="textarea"&&l!=="select")return;f!=null&&f.value===null&&!kr&&(kr=!0,l==="select"&&f.multiple?i("`value` prop on `%s` should not be null. Consider using an empty array when `multiple` is set to `true` to clear the component or `undefined` for uncontrolled components.",l):i("`value` prop on `%s` should not be null. Consider using an empty string to clear the component or `undefined` for uncontrolled components.",l))}}var sn={accept:"accept",acceptcharset:"acceptCharset","accept-charset":"acceptCharset",accesskey:"accessKey",action:"action",allowfullscreen:"allowFullScreen",alt:"alt",as:"as",async:"async",autocapitalize:"autoCapitalize",autocomplete:"autoComplete",autocorrect:"autoCorrect",autofocus:"autoFocus",autoplay:"autoPlay",autosave:"autoSave",capture:"capture",cellpadding:"cellPadding",cellspacing:"cellSpacing",challenge:"challenge",charset:"charSet",checked:"checked",children:"children",cite:"cite",class:"className",classid:"classID",classname:"className",cols:"cols",colspan:"colSpan",content:"content",contenteditable:"contentEditable",contextmenu:"contextMenu",controls:"controls",controlslist:"controlsList",coords:"coords",crossorigin:"crossOrigin",dangerouslysetinnerhtml:"dangerouslySetInnerHTML",data:"data",datetime:"dateTime",default:"default",defaultchecked:"defaultChecked",defaultvalue:"defaultValue",defer:"defer",dir:"dir",disabled:"disabled",disablepictureinpicture:"disablePictureInPicture",disableremoteplayback:"disableRemotePlayback",download:"download",draggable:"draggable",enctype:"encType",enterkeyhint:"enterKeyHint",for:"htmlFor",form:"form",formmethod:"formMethod",formaction:"formAction",formenctype:"formEncType",formnovalidate:"formNoValidate",formtarget:"formTarget",frameborder:"frameBorder",headers:"headers",height:"height",hidden:"hidden",high:"high",href:"href",hreflang:"hrefLang",htmlfor:"htmlFor",httpequiv:"httpEquiv","http-equiv":"httpEquiv",icon:"icon",id:"id",imagesizes:"imageSizes",imagesrcset:"imageSrcSet",innerhtml:"innerHTML",inputmode:"inputMode",integrity:"integrity",is:"is",itemid:"itemID",itemprop:"itemProp",itemref:"itemRef",itemscope:"itemScope",itemtype:"itemType",keyparams:"keyParams",keytype:"keyType",kind:"kind",label:"label",lang:"lang",list:"list",loop:"loop",low:"low",manifest:"manifest",marginwidth:"marginWidth",marginheight:"marginHeight",max:"max",maxlength:"maxLength",media:"media",mediagroup:"mediaGroup",method:"method",min:"min",minlength:"minLength",multiple:"multiple",muted:"muted",name:"name",nomodule:"noModule",nonce:"nonce",novalidate:"noValidate",open:"open",optimum:"optimum",pattern:"pattern",placeholder:"placeholder",playsinline:"playsInline",poster:"poster",preload:"preload",profile:"profile",radiogroup:"radioGroup",readonly:"readOnly",referrerpolicy:"referrerPolicy",rel:"rel",required:"required",reversed:"reversed",role:"role",rows:"rows",rowspan:"rowSpan",sandbox:"sandbox",scope:"scope",scoped:"scoped",scrolling:"scrolling",seamless:"seamless",selected:"selected",shape:"shape",size:"size",sizes:"sizes",span:"span",spellcheck:"spellCheck",src:"src",srcdoc:"srcDoc",srclang:"srcLang",srcset:"srcSet",start:"start",step:"step",style:"style",summary:"summary",tabindex:"tabIndex",target:"target",title:"title",type:"type",usemap:"useMap",value:"value",width:"width",wmode:"wmode",wrap:"wrap",about:"about",accentheight:"accentHeight","accent-height":"accentHeight",accumulate:"accumulate",additive:"additive",alignmentbaseline:"alignmentBaseline","alignment-baseline":"alignmentBaseline",allowreorder:"allowReorder",alphabetic:"alphabetic",amplitude:"amplitude",arabicform:"arabicForm","arabic-form":"arabicForm",ascent:"ascent",attributename:"attributeName",attributetype:"attributeType",autoreverse:"autoReverse",azimuth:"azimuth",basefrequency:"baseFrequency",baselineshift:"baselineShift","baseline-shift":"baselineShift",baseprofile:"baseProfile",bbox:"bbox",begin:"begin",bias:"bias",by:"by",calcmode:"calcMode",capheight:"capHeight","cap-height":"capHeight",clip:"clip",clippath:"clipPath","clip-path":"clipPath",clippathunits:"clipPathUnits",cliprule:"clipRule","clip-rule":"clipRule",color:"color",colorinterpolation:"colorInterpolation","color-interpolation":"colorInterpolation",colorinterpolationfilters:"colorInterpolationFilters","color-interpolation-filters":"colorInterpolationFilters",colorprofile:"colorProfile","color-profile":"colorProfile",colorrendering:"colorRendering","color-rendering":"colorRendering",contentscripttype:"contentScriptType",contentstyletype:"contentStyleType",cursor:"cursor",cx:"cx",cy:"cy",d:"d",datatype:"datatype",decelerate:"decelerate",descent:"descent",diffuseconstant:"diffuseConstant",direction:"direction",display:"display",divisor:"divisor",dominantbaseline:"dominantBaseline","dominant-baseline":"dominantBaseline",dur:"dur",dx:"dx",dy:"dy",edgemode:"edgeMode",elevation:"elevation",enablebackground:"enableBackground","enable-background":"enableBackground",end:"end",exponent:"exponent",externalresourcesrequired:"externalResourcesRequired",fill:"fill",fillopacity:"fillOpacity","fill-opacity":"fillOpacity",fillrule:"fillRule","fill-rule":"fillRule",filter:"filter",filterres:"filterRes",filterunits:"filterUnits",floodopacity:"floodOpacity","flood-opacity":"floodOpacity",floodcolor:"floodColor","flood-color":"floodColor",focusable:"focusable",fontfamily:"fontFamily","font-family":"fontFamily",fontsize:"fontSize","font-size":"fontSize",fontsizeadjust:"fontSizeAdjust","font-size-adjust":"fontSizeAdjust",fontstretch:"fontStretch","font-stretch":"fontStretch",fontstyle:"fontStyle","font-style":"fontStyle",fontvariant:"fontVariant","font-variant":"fontVariant",fontweight:"fontWeight","font-weight":"fontWeight",format:"format",from:"from",fx:"fx",fy:"fy",g1:"g1",g2:"g2",glyphname:"glyphName","glyph-name":"glyphName",glyphorientationhorizontal:"glyphOrientationHorizontal","glyph-orientation-horizontal":"glyphOrientationHorizontal",glyphorientationvertical:"glyphOrientationVertical","glyph-orientation-vertical":"glyphOrientationVertical",glyphref:"glyphRef",gradienttransform:"gradientTransform",gradientunits:"gradientUnits",hanging:"hanging",horizadvx:"horizAdvX","horiz-adv-x":"horizAdvX",horizoriginx:"horizOriginX","horiz-origin-x":"horizOriginX",ideographic:"ideographic",imagerendering:"imageRendering","image-rendering":"imageRendering",in2:"in2",in:"in",inlist:"inlist",intercept:"intercept",k1:"k1",k2:"k2",k3:"k3",k4:"k4",k:"k",kernelmatrix:"kernelMatrix",kernelunitlength:"kernelUnitLength",kerning:"kerning",keypoints:"keyPoints",keysplines:"keySplines",keytimes:"keyTimes",lengthadjust:"lengthAdjust",letterspacing:"letterSpacing","letter-spacing":"letterSpacing",lightingcolor:"lightingColor","lighting-color":"lightingColor",limitingconeangle:"limitingConeAngle",local:"local",markerend:"markerEnd","marker-end":"markerEnd",markerheight:"markerHeight",markermid:"markerMid","marker-mid":"markerMid",markerstart:"markerStart","marker-start":"markerStart",markerunits:"markerUnits",markerwidth:"markerWidth",mask:"mask",maskcontentunits:"maskContentUnits",maskunits:"maskUnits",mathematical:"mathematical",mode:"mode",numoctaves:"numOctaves",offset:"offset",opacity:"opacity",operator:"operator",order:"order",orient:"orient",orientation:"orientation",origin:"origin",overflow:"overflow",overlineposition:"overlinePosition","overline-position":"overlinePosition",overlinethickness:"overlineThickness","overline-thickness":"overlineThickness",paintorder:"paintOrder","paint-order":"paintOrder",panose1:"panose1","panose-1":"panose1",pathlength:"pathLength",patterncontentunits:"patternContentUnits",patterntransform:"patternTransform",patternunits:"patternUnits",pointerevents:"pointerEvents","pointer-events":"pointerEvents",points:"points",pointsatx:"pointsAtX",pointsaty:"pointsAtY",pointsatz:"pointsAtZ",prefix:"prefix",preservealpha:"preserveAlpha",preserveaspectratio:"preserveAspectRatio",primitiveunits:"primitiveUnits",property:"property",r:"r",radius:"radius",refx:"refX",refy:"refY",renderingintent:"renderingIntent","rendering-intent":"renderingIntent",repeatcount:"repeatCount",repeatdur:"repeatDur",requiredextensions:"requiredExtensions",requiredfeatures:"requiredFeatures",resource:"resource",restart:"restart",result:"result",results:"results",rotate:"rotate",rx:"rx",ry:"ry",scale:"scale",security:"security",seed:"seed",shaperendering:"shapeRendering","shape-rendering":"shapeRendering",slope:"slope",spacing:"spacing",specularconstant:"specularConstant",specularexponent:"specularExponent",speed:"speed",spreadmethod:"spreadMethod",startoffset:"startOffset",stddeviation:"stdDeviation",stemh:"stemh",stemv:"stemv",stitchtiles:"stitchTiles",stopcolor:"stopColor","stop-color":"stopColor",stopopacity:"stopOpacity","stop-opacity":"stopOpacity",strikethroughposition:"strikethroughPosition","strikethrough-position":"strikethroughPosition",strikethroughthickness:"strikethroughThickness","strikethrough-thickness":"strikethroughThickness",string:"string",stroke:"stroke",strokedasharray:"strokeDasharray","stroke-dasharray":"strokeDasharray",strokedashoffset:"strokeDashoffset","stroke-dashoffset":"strokeDashoffset",strokelinecap:"strokeLinecap","stroke-linecap":"strokeLinecap",strokelinejoin:"strokeLinejoin","stroke-linejoin":"strokeLinejoin",strokemiterlimit:"strokeMiterlimit","stroke-miterlimit":"strokeMiterlimit",strokewidth:"strokeWidth","stroke-width":"strokeWidth",strokeopacity:"strokeOpacity","stroke-opacity":"strokeOpacity",suppresscontenteditablewarning:"suppressContentEditableWarning",suppresshydrationwarning:"suppressHydrationWarning",surfacescale:"surfaceScale",systemlanguage:"systemLanguage",tablevalues:"tableValues",targetx:"targetX",targety:"targetY",textanchor:"textAnchor","text-anchor":"textAnchor",textdecoration:"textDecoration","text-decoration":"textDecoration",textlength:"textLength",textrendering:"textRendering","text-rendering":"textRendering",to:"to",transform:"transform",typeof:"typeof",u1:"u1",u2:"u2",underlineposition:"underlinePosition","underline-position":"underlinePosition",underlinethickness:"underlineThickness","underline-thickness":"underlineThickness",unicode:"unicode",unicodebidi:"unicodeBidi","unicode-bidi":"unicodeBidi",unicoderange:"unicodeRange","unicode-range":"unicodeRange",unitsperem:"unitsPerEm","units-per-em":"unitsPerEm",unselectable:"unselectable",valphabetic:"vAlphabetic","v-alphabetic":"vAlphabetic",values:"values",vectoreffect:"vectorEffect","vector-effect":"vectorEffect",version:"version",vertadvy:"vertAdvY","vert-adv-y":"vertAdvY",vertoriginx:"vertOriginX","vert-origin-x":"vertOriginX",vertoriginy:"vertOriginY","vert-origin-y":"vertOriginY",vhanging:"vHanging","v-hanging":"vHanging",videographic:"vIdeographic","v-ideographic":"vIdeographic",viewbox:"viewBox",viewtarget:"viewTarget",visibility:"visibility",vmathematical:"vMathematical","v-mathematical":"vMathematical",vocab:"vocab",widths:"widths",wordspacing:"wordSpacing","word-spacing":"wordSpacing",writingmode:"writingMode","writing-mode":"writingMode",x1:"x1",x2:"x2",x:"x",xchannelselector:"xChannelSelector",xheight:"xHeight","x-height":"xHeight",xlinkactuate:"xlinkActuate","xlink:actuate":"xlinkActuate",xlinkarcrole:"xlinkArcrole","xlink:arcrole":"xlinkArcrole",xlinkhref:"xlinkHref","xlink:href":"xlinkHref",xlinkrole:"xlinkRole","xlink:role":"xlinkRole",xlinkshow:"xlinkShow","xlink:show":"xlinkShow",xlinktitle:"xlinkTitle","xlink:title":"xlinkTitle",xlinktype:"xlinkType","xlink:type":"xlinkType",xmlbase:"xmlBase","xml:base":"xmlBase",xmllang:"xmlLang","xml:lang":"xmlLang",xmlns:"xmlns","xml:space":"xmlSpace",xmlnsxlink:"xmlnsXlink","xmlns:xlink":"xmlnsXlink",xmlspace:"xmlSpace",y1:"y1",y2:"y2",y:"y",ychannelselector:"yChannelSelector",z:"z",zoomandpan:"zoomAndPan"},fn=function(){};{var dn={},ut=/^on./,Dn=/^on[^A-Z]/,oi=new RegExp("^(aria)-["+Me+"]*$"),on=new RegExp("^(aria)[A-Z]["+Me+"]*$");fn=function(l,f,g,x){if(q.call(dn,f)&&dn[f])return!0;var R=f.toLowerCase();if(R==="onfocusin"||R==="onfocusout")return i("React uses onFocus and onBlur instead of onFocusIn and onFocusOut. All React events are normalized to bubble, so onFocusIn and onFocusOut are not needed/supported by React."),dn[f]=!0,!0;if(x!=null){var B=x.registrationNameDependencies,z=x.possibleRegistrationNames;if(B.hasOwnProperty(f))return!0;var ne=z.hasOwnProperty(R)?z[R]:null;if(ne!=null)return i("Invalid event handler property `%s`. Did you mean `%s`?",f,ne),dn[f]=!0,!0;if(ut.test(f))return i("Unknown event handler property `%s`. It will be ignored.",f),dn[f]=!0,!0}else if(ut.test(f))return Dn.test(f)&&i("Invalid event handler property `%s`. React events use the camelCase naming convention, for example `onClick`.",f),dn[f]=!0,!0;if(oi.test(f)||on.test(f))return!0;if(R==="innerhtml")return i("Directly setting property `innerHTML` is not permitted. For more information, lookup documentation on `dangerouslySetInnerHTML`."),dn[f]=!0,!0;if(R==="aria")return i("The `aria` attribute is reserved for future use in React. Pass individual `aria-` attributes instead."),dn[f]=!0,!0;if(R==="is"&&g!==null&&g!==void 0&&typeof g!="string")return i("Received a `%s` for a string attribute `is`. If this is expected, cast the value to a string.",typeof g),dn[f]=!0,!0;if(typeof g=="number"&&isNaN(g))return i("Received NaN for the `%s` attribute. If this is expected, cast the value to a string.",f),dn[f]=!0,!0;var xe=ve(f),Ne=xe!==null&&xe.type===se;if(sn.hasOwnProperty(R)){var ze=sn[R];if(ze!==f)return i("Invalid DOM property `%s`. Did you mean `%s`?",f,ze),dn[f]=!0,!0}else if(!Ne&&f!==R)return i("React does not recognize the `%s` prop on a DOM element. If you intentionally want it to appear in the DOM as a custom attribute, spell it as lowercase `%s` instead. If you accidentally passed it from a parent component, remove it from the DOM element.",f,R),dn[f]=!0,!0;return typeof g=="boolean"&&Ze(f,g,xe)?(g?i('Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.',g,f,f,g,f):i('Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.\n\nIf you used to conditionally omit it with %s={condition && value}, pass %s={condition ? value : undefined} instead.',g,f,f,g,f,f,f),dn[f]=!0,!0):Ne?!0:Ze(f,g,xe)?(dn[f]=!0,!1):((g==="false"||g==="true")&&xe!==null&&xe.type===ae&&(i("Received the string `%s` for the boolean attribute `%s`. %s Did you mean %s={%s}?",g,f,g==="false"?"The browser will interpret it as a truthy value.":'Although this works, it will not work as expected if you pass the string "false".',f,g),dn[f]=!0),!0)}}var Vi=function(l,f,g){{var x=[];for(var R in f){var B=fn(l,R,f[R],g);B||x.push(R)}var z=x.map(function(ne){return"`"+ne+"`"}).join(", ");x.length===1?i("Invalid value for prop %s on <%s> tag. Either remove it from the element, or pass a string or number value to keep it in the DOM. For details, see https://reactjs.org/link/attribute-behavior ",z,l):x.length>1&&i("Invalid values for props %s on <%s> tag. Either remove them from the element, or pass a string or number value to keep them in the DOM. For details, see https://reactjs.org/link/attribute-behavior ",z,l)}};function Hi(l,f,g){Je(l,f)||Vi(l,f,g)}var Ui=function(){};{var Dr=/^(?:webkit|moz|o)[A-Z]/,Nn=/^-ms-/,Pr=/-(.)/g,vr=/;\s*$/,zr={},Yr={},Ao=!1,Un=!1,Gr=function(l){return l.replace(Pr,function(f,g){return g.toUpperCase()})},Qn=function(l){zr.hasOwnProperty(l)&&zr[l]||(zr[l]=!0,i("Unsupported style property %s. Did you mean %s?",l,Gr(l.replace(Nn,"ms-"))))},Wt=function(l){zr.hasOwnProperty(l)&&zr[l]||(zr[l]=!0,i("Unsupported vendor-prefixed style property %s. Did you mean %s?",l,l.charAt(0).toUpperCase()+l.slice(1)))},si=function(l,f){Yr.hasOwnProperty(f)&&Yr[f]||(Yr[f]=!0,i(`Style property values shouldn't contain a semicolon. Try "%s: %s" instead.`,l,f.replace(vr,"")))},Wi=function(l,f){Ao||(Ao=!0,i("`NaN` is an invalid value for the `%s` css style property.",l))},Pn=function(l,f){Un||(Un=!0,i("`Infinity` is an invalid value for the `%s` css style property.",l))};Ui=function(l,f){l.indexOf("-")>-1?Qn(l):Dr.test(l)?Wt(l):vr.test(f)&&si(l,f),typeof f=="number"&&(isNaN(f)?Wi(l,f):isFinite(f)||Pn(l,f))}}var hn=Ui,ai=/["'&<>]/;function li(l){re(l);var f=""+l,g=ai.exec(f);if(!g)return f;var x,R="",B,z=0;for(B=g.index;B<f.length;B++){switch(f.charCodeAt(B)){case 34:x="&quot;";break;case 38:x="&amp;";break;case 39:x="&#x27;";break;case 60:x="&lt;";break;case 62:x="&gt;";break;default:continue}z!==B&&(R+=f.substring(z,B)),z=B+1,R+=x}return z!==B?R+f.substring(z,B):R}function Tn(l){return typeof l=="boolean"||typeof l=="number"?""+l:li(l)}var so=/([A-Z])/g,yr=/^ms-/;function ui(l){return l.replace(so,"-$1").toLowerCase().replace(yr,"-ms-")}var an=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*\:/i,Di=!1;function Ms(l){!Di&&an.test(l)&&(Di=!0,i("A future version of React will block javascript: URLs as a security precaution. Use event handlers instead if you can. If you need to generate unsafe HTML try using dangerouslySetInnerHTML instead. React was passed %s.",JSON.stringify(l)))}var Ls=Array.isArray;function qr(l){return Ls(l)}var ao="<script>";function lo(l,f,g,x,R){var B=l===void 0?"":l,z=ao,ne=[];return{bootstrapChunks:ne,startInlineScript:z,placeholderPrefix:B+"P:",segmentPrefix:B+"S:",boundaryPrefix:B+"B:",idPrefix:B,nextSuspenseID:0,sentCompleteSegmentFunction:!1,sentCompleteBoundaryFunction:!1,sentClientRenderFunction:!1}}var Pi=0,er=1,Or=2,_r=3,ci=4,Xr=5,br=6,Rr=7;function tr(l,f){return{insertionMode:l,selectedValue:f}}function zi(l,f,g){switch(f){case"select":return tr(er,g.value!=null?g.value:g.defaultValue);case"svg":return tr(Or,null);case"math":return tr(_r,null);case"foreignObject":return tr(er,null);case"table":return tr(ci,null);case"thead":case"tbody":case"tfoot":return tr(Xr,null);case"colgroup":return tr(Rr,null);case"tr":return tr(br,null)}return l.insertionMode>=ci||l.insertionMode===Pi?tr(er,null):l}var Oi=null;function ar(l){var f=l.nextSuspenseID++;return l.boundaryPrefix+f.toString(16)}function yn(l,f,g){var x=l.idPrefix,R=":"+x+"R"+f;return g>0&&(R+="H"+g.toString(32)),R+":"}function Ar(l){return Tn(l)}var Ir="<!-- -->";function fi(l,f,g,x){return f===""?x:(x&&l.push(Ir),l.push(Ar(f)),!0)}function di(l,f,g,x){g&&x&&l.push(Ir)}var wr=new Map;function Kr(l){var f=wr.get(l);if(f!==void 0)return f;var g=Tn(ui(l));return wr.set(l,g),g}var Wn=' style="',hi=":",pi=";";function _i(l,f,g){if(typeof g!="object")throw new Error("The `style` prop expects a mapping from style properties to values, not a string. For example, style={{marginRight: spacing + 'em'}} when using JSX.");var x=!0;for(var R in g)if(q.call(g,R)){var B=g[R];if(!(B==null||typeof B=="boolean"||B==="")){var z=void 0,ne=void 0,xe=R.indexOf("--")===0;xe?(z=Tn(R),G(B,R),ne=Tn((""+B).trim())):(hn(R,B),z=Kr(R),typeof B=="number"?B!==0&&!q.call(ot,R)?ne=B+"px":ne=""+B:(G(B,R),ne=Tn((""+B).trim()))),x?(x=!1,l.push(Wn,z,hi,ne)):l.push(pi,z,hi,ne)}}x||l.push(Cn)}var nn=" ",jn='="',Cn='"',uo='=""';function On(l,f,g,x){switch(g){case"style":{_i(l,f,x);return}case"defaultValue":case"defaultChecked":case"innerHTML":case"suppressContentEditableWarning":case"suppressHydrationWarning":return}if(!(g.length>2&&(g[0]==="o"||g[0]==="O")&&(g[1]==="n"||g[1]==="N"))){var R=ve(g);if(R!==null){switch(typeof x){case"function":case"symbol":return;case"boolean":if(!R.acceptsBooleans)return}var B=R.attributeName,z=B;switch(R.type){case ae:x&&l.push(nn,z,uo);return;case Ue:x===!0?l.push(nn,z,uo):x===!1||l.push(nn,z,jn,Tn(x),Cn);return;case nt:isNaN(x)||l.push(nn,z,jn,Tn(x),Cn);break;case et:!isNaN(x)&&x>=1&&l.push(nn,z,jn,Tn(x),Cn);break;default:R.sanitizeURL&&(U(x,B),x=""+x,Ms(x)),l.push(nn,z,jn,Tn(x),Cn)}}else if(Be(g)){switch(typeof x){case"function":case"symbol":return;case"boolean":{var ne=g.toLowerCase().slice(0,5);if(ne!=="data-"&&ne!=="aria-")return}}l.push(nn,g,jn,Tn(x),Cn)}}}var _n=">",k="/>";function F(l,f,g){if(f!=null){if(g!=null)throw new Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");if(typeof f!="object"||!("__html"in f))throw new Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://reactjs.org/link/dangerously-set-inner-html for more information.");var x=f.__html;x!=null&&(re(x),l.push(""+x))}}var Y=!1,ee=!1,Ee=!1,ge=!1,_e=!1,Ge=!1,gt=!1;function mt(l,f){{var g=l[f];if(g!=null){var x=qr(g);l.multiple&&!x?i("The `%s` prop supplied to <select> must be an array if `multiple` is true.",f):!l.multiple&&x&&i("The `%s` prop supplied to <select> must be a scalar value if `multiple` is false.",f)}}}function dt(l,f,g){yt("select",f),mt(f,"value"),mt(f,"defaultValue"),f.value!==void 0&&f.defaultValue!==void 0&&!Ee&&(i("Select elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled select element and remove one of these props. More info: https://reactjs.org/link/controlled-components"),Ee=!0),l.push(xr("select"));var x=null,R=null;for(var B in f)if(q.call(f,B)){var z=f[B];if(z==null)continue;switch(B){case"children":x=z;break;case"dangerouslySetInnerHTML":R=z;break;case"defaultValue":case"value":break;default:On(l,g,B,z);break}}return l.push(_n),F(l,R,x),x}function Ft(l){var f="";return t.Children.forEach(l,function(g){g!=null&&(f+=g,!_e&&typeof g!="string"&&typeof g!="number"&&(_e=!0,i("Cannot infer the option value of complex children. Pass a `value` prop or use a plain string as children to <option>.")))}),f}var Bn=' selected=""';function zn(l,f,g,x){var R=x.selectedValue;l.push(xr("option"));var B=null,z=null,ne=null,xe=null;for(var Ne in f)if(q.call(f,Ne)){var ze=f[Ne];if(ze==null)continue;switch(Ne){case"children":B=ze;break;case"selected":ne=ze,gt||(i("Use the `defaultValue` or `value` props on <select> instead of setting `selected` on <option>."),gt=!0);break;case"dangerouslySetInnerHTML":xe=ze;break;case"value":z=ze;default:On(l,g,Ne,ze);break}}if(R!=null){var tt;if(z!==null?(U(z,"value"),tt=""+z):(xe!==null&&(Ge||(Ge=!0,i("Pass a `value` prop if you set dangerouslyInnerHTML so React knows which value should be selected."))),tt=Ft(B)),qr(R))for(var xt=0;xt<R.length;xt++){U(R[xt],"value");var en=""+R[xt];if(en===tt){l.push(Bn);break}}else U(R,"select.value"),""+R===tt&&l.push(Bn)}else ne&&l.push(Bn);return l.push(_n),F(l,xe,B),B}function En(l,f,g){yt("input",f),f.checked!==void 0&&f.defaultChecked!==void 0&&!ee&&(i("%s contains an input of type %s with both checked and defaultChecked props. Input elements must be either controlled or uncontrolled (specify either the checked prop, or the defaultChecked prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://reactjs.org/link/controlled-components","A component",f.type),ee=!0),f.value!==void 0&&f.defaultValue!==void 0&&!Y&&(i("%s contains an input of type %s with both value and defaultValue props. Input elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://reactjs.org/link/controlled-components","A component",f.type),Y=!0),l.push(xr("input"));var x=null,R=null,B=null,z=null;for(var ne in f)if(q.call(f,ne)){var xe=f[ne];if(xe==null)continue;switch(ne){case"children":case"dangerouslySetInnerHTML":throw new Error("input is a self-closing tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");case"defaultChecked":z=xe;break;case"defaultValue":R=xe;break;case"checked":B=xe;break;case"value":x=xe;break;default:On(l,g,ne,xe);break}}return B!==null?On(l,g,"checked",B):z!==null&&On(l,g,"checked",z),x!==null?On(l,g,"value",x):R!==null&&On(l,g,"value",R),l.push(k),null}function Zr(l,f,g){yt("textarea",f),f.value!==void 0&&f.defaultValue!==void 0&&!ge&&(i("Textarea elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled textarea and remove one of these props. More info: https://reactjs.org/link/controlled-components"),ge=!0),l.push(xr("textarea"));var x=null,R=null,B=null;for(var z in f)if(q.call(f,z)){var ne=f[z];if(ne==null)continue;switch(z){case"children":B=ne;break;case"value":x=ne;break;case"defaultValue":R=ne;break;case"dangerouslySetInnerHTML":throw new Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");default:On(l,g,z,ne);break}}if(x===null&&R!==null&&(x=R),l.push(_n),B!=null){if(i("Use the `defaultValue` or `value` props instead of setting children on <textarea>."),x!=null)throw new Error("If you supply `defaultValue` on a <textarea>, do not pass children.");if(qr(B)){if(B.length>1)throw new Error("<textarea> can only have at most one child.");re(B[0]),x=""+B[0]}re(B),x=""+B}return typeof x=="string"&&x[0]===`
66
66
  `&&l.push(qi),x!==null&&(U(x,"value"),l.push(Ar(""+x))),null}function lr(l,f,g,x){l.push(xr(g));for(var R in f)if(q.call(f,R)){var B=f[R];if(B==null)continue;switch(R){case"children":case"dangerouslySetInnerHTML":throw new Error(g+" is a self-closing tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");default:On(l,x,R,B);break}}return l.push(k),null}function Yi(l,f,g){l.push(xr("menuitem"));for(var x in f)if(q.call(f,x)){var R=f[x];if(R==null)continue;switch(x){case"children":case"dangerouslySetInnerHTML":throw new Error("menuitems cannot have `children` nor `dangerouslySetInnerHTML`.");default:On(l,g,x,R);break}}return l.push(_n),null}function gi(l,f,g){l.push(xr("title"));var x=null;for(var R in f)if(q.call(f,R)){var B=f[R];if(B==null)continue;switch(R){case"children":x=B;break;case"dangerouslySetInnerHTML":throw new Error("`dangerouslySetInnerHTML` does not make sense on <title>.");default:On(l,g,R,B);break}}l.push(_n);{var z=Array.isArray(x)&&x.length<2?x[0]||null:x;Array.isArray(x)&&x.length>1?i("A title element received an array with more than 1 element as children. In browsers title Elements can only have Text Nodes as children. If the children being rendered output more than a single text node in aggregate the browser will display markup and comments as text in the title and hydration will likely fail and fall back to client rendering"):z!=null&&z.$$typeof!=null?i("A title element received a React element for children. In the browser title Elements can only have Text Nodes as children. If the children being rendered output more than a single text node in aggregate the browser will display markup and comments as text in the title and hydration will likely fail and fall back to client rendering"):z!=null&&typeof z!="string"&&typeof z!="number"&&i("A title element received a value that was not a string or number for children. In the browser title Elements can only have Text Nodes as children. If the children being rendered output more than a single text node in aggregate the browser will display markup and comments as text in the title and hydration will likely fail and fall back to client rendering")}return x}function Gi(l,f,g,x){l.push(xr(g));var R=null,B=null;for(var z in f)if(q.call(f,z)){var ne=f[z];if(ne==null)continue;switch(z){case"children":R=ne;break;case"dangerouslySetInnerHTML":B=ne;break;default:On(l,x,z,ne);break}}return l.push(_n),F(l,B,R),typeof R=="string"?(l.push(Ar(R)),null):R}function Mr(l,f,g,x){l.push(xr(g));var R=null,B=null;for(var z in f)if(q.call(f,z)){var ne=f[z];if(ne==null)continue;switch(z){case"children":R=ne;break;case"dangerouslySetInnerHTML":B=ne;break;case"style":_i(l,x,ne);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":break;default:Be(z)&&typeof ne!="function"&&typeof ne!="symbol"&&l.push(nn,z,jn,Tn(ne),Cn);break}}return l.push(_n),F(l,B,R),R}var qi=`
67
67
  `;function Ua(l,f,g,x){l.push(xr(g));var R=null,B=null;for(var z in f)if(q.call(f,z)){var ne=f[z];if(ne==null)continue;switch(z){case"children":R=ne;break;case"dangerouslySetInnerHTML":B=ne;break;default:On(l,x,z,ne);break}}if(l.push(_n),B!=null){if(R!=null)throw new Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");if(typeof B!="object"||!("__html"in B))throw new Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://reactjs.org/link/dangerously-set-inner-html for more information.");var xe=B.__html;xe!=null&&(typeof xe=="string"&&xe.length>0&&xe[0]===`
68
68
  `?l.push(qi,xe):(re(xe),l.push(""+xe)))}return typeof R=="string"&&R[0]===`
@@ -101,7 +101,7 @@ Error generating stack: `+x.message+`
101
101
  *
102
102
  * This source code is licensed under the MIT license found in the
103
103
  * LICENSE file in the root directory of this source tree.
104
- */var w1;function F4(){return w1||(w1=1,process.env.NODE_ENV!=="production"&&function(){var t=X,e="18.3.1",n=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function r(v){{for(var l=arguments.length,f=new Array(l>1?l-1:0),g=1;g<l;g++)f[g-1]=arguments[g];o("warn",v,f)}}function i(v){{for(var l=arguments.length,f=new Array(l>1?l-1:0),g=1;g<l;g++)f[g-1]=arguments[g];o("error",v,f)}}function o(v,l,f){{var g=n.ReactDebugCurrentFrame,x=g.getStackAddendum();x!==""&&(l+="%s",f=f.concat([x]));var R=f.map(function(B){return String(B)});R.unshift("Warning: "+l),Function.prototype.apply.call(console[v],console,R)}}function a(v){v()}var c=512,d=null,p=0;function w(v){d=new Uint8Array(c),p=0}function m(v,l){if(l.length!==0){if(l.length>c){p>0&&(v.enqueue(new Uint8Array(d.buffer,0,p)),d=new Uint8Array(c),p=0),v.enqueue(l);return}var f=l,g=d.length-p;g<f.length&&(g===0?v.enqueue(d):(d.set(f.subarray(0,g),p),v.enqueue(d),f=f.subarray(g)),d=new Uint8Array(c),p=0),d.set(f,p),p+=f.length}}function T(v,l){return m(v,l),!0}function E(v){d&&p>0&&(v.enqueue(new Uint8Array(d.buffer,0,p)),d=null,p=0)}function A(v){v.close()}var I=new TextEncoder;function j(v){return I.encode(v)}function _(v){return I.encode(v)}function U(v,l){typeof v.error=="function"?v.error(l):v.close()}function G(v){{var l=typeof Symbol=="function"&&Symbol.toStringTag,f=l&&v[Symbol.toStringTag]||v.constructor.name||"Object";return f}}function re(v){try{return q(v),!1}catch{return!0}}function q(v){return""+v}function se(v,l){if(re(v))return i("The provided `%s` attribute is an unsupported type %s. This value must be coerced to a string before before using it here.",l,G(v)),q(v)}function S(v,l){if(re(v))return i("The provided `%s` CSS property is an unsupported type %s. This value must be coerced to a string before before using it here.",l,G(v)),q(v)}function ue(v){if(re(v))return i("The provided HTML markup uses a value of unsupported type %s. This value must be coerced to a string before before using it here.",G(v)),q(v)}var ae=Object.prototype.hasOwnProperty,Ue=0,nt=1,et=2,De=3,Me=4,fe=5,me=6,Pe=":A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD",Be=Pe+"\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",Ze=new RegExp("^["+Pe+"]["+Be+"]*$"),ve={},Se={};function je(v){return ae.call(Se,v)?!0:ae.call(ve,v)?!1:Ze.test(v)?(Se[v]=!0,!0):(ve[v]=!0,i("Invalid attribute name: `%s`",v),!1)}function Qe(v,l,f,g){if(f!==null&&f.type===Ue)return!1;switch(typeof l){case"function":case"symbol":return!0;case"boolean":{if(f!==null)return!f.acceptsBooleans;var x=v.toLowerCase().slice(0,5);return x!=="data-"&&x!=="aria-"}default:return!1}}function Ye(v){return qe.hasOwnProperty(v)?qe[v]:null}function Ke(v,l,f,g,x,R,B){this.acceptsBooleans=l===et||l===De||l===Me,this.attributeName=g,this.attributeNamespace=x,this.mustUseProperty=f,this.propertyName=v,this.type=l,this.sanitizeURL=R,this.removeEmptyString=B}var qe={},ot=["children","dangerouslySetInnerHTML","defaultValue","defaultChecked","innerHTML","suppressContentEditableWarning","suppressHydrationWarning","style"];ot.forEach(function(v){qe[v]=new Ke(v,Ue,!1,v,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(v){var l=v[0],f=v[1];qe[l]=new Ke(l,nt,!1,f,null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(v){qe[v]=new Ke(v,et,!1,v.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(v){qe[v]=new Ke(v,et,!1,v,null,!1,!1)}),["allowFullScreen","async","autoFocus","autoPlay","controls","default","defer","disabled","disablePictureInPicture","disableRemotePlayback","formNoValidate","hidden","loop","noModule","noValidate","open","playsInline","readOnly","required","reversed","scoped","seamless","itemScope"].forEach(function(v){qe[v]=new Ke(v,De,!1,v.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(v){qe[v]=new Ke(v,De,!0,v,null,!1,!1)}),["capture","download"].forEach(function(v){qe[v]=new Ke(v,Me,!1,v,null,!1,!1)}),["cols","rows","size","span"].forEach(function(v){qe[v]=new Ke(v,me,!1,v,null,!1,!1)}),["rowSpan","start"].forEach(function(v){qe[v]=new Ke(v,fe,!1,v.toLowerCase(),null,!1,!1)});var ct=/[\-\:]([a-z])/g,pt=function(v){return v[1].toUpperCase()};["accent-height","alignment-baseline","arabic-form","baseline-shift","cap-height","clip-path","clip-rule","color-interpolation","color-interpolation-filters","color-profile","color-rendering","dominant-baseline","enable-background","fill-opacity","fill-rule","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","glyph-name","glyph-orientation-horizontal","glyph-orientation-vertical","horiz-adv-x","horiz-origin-x","image-rendering","letter-spacing","lighting-color","marker-end","marker-mid","marker-start","overline-position","overline-thickness","paint-order","panose-1","pointer-events","rendering-intent","shape-rendering","stop-color","stop-opacity","strikethrough-position","strikethrough-thickness","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","text-anchor","text-decoration","text-rendering","underline-position","underline-thickness","unicode-bidi","unicode-range","units-per-em","v-alphabetic","v-hanging","v-ideographic","v-mathematical","vector-effect","vert-adv-y","vert-origin-x","vert-origin-y","word-spacing","writing-mode","xmlns:xlink","x-height"].forEach(function(v){var l=v.replace(ct,pt);qe[l]=new Ke(l,nt,!1,v,null,!1,!1)}),["xlink:actuate","xlink:arcrole","xlink:role","xlink:show","xlink:title","xlink:type"].forEach(function(v){var l=v.replace(ct,pt);qe[l]=new Ke(l,nt,!1,v,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(v){var l=v.replace(ct,pt);qe[l]=new Ke(l,nt,!1,v,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(v){qe[v]=new Ke(v,nt,!1,v.toLowerCase(),null,!1,!1)});var ft="xlinkHref";qe[ft]=new Ke("xlinkHref",nt,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(v){qe[v]=new Ke(v,nt,!1,v.toLowerCase(),null,!0,!0)});var yt={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0};function Je(v,l){return v+l.charAt(0).toUpperCase()+l.substring(1)}var At=["Webkit","ms","Moz","O"];Object.keys(yt).forEach(function(v){At.forEach(function(l){yt[Je(l,v)]=yt[v]})});var Mt={button:!0,checkbox:!0,image:!0,hidden:!0,radio:!0,reset:!0,submit:!0};function Vn(v,l){Mt[l.type]||l.onChange||l.onInput||l.readOnly||l.disabled||l.value==null||i("You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set either `onChange` or `readOnly`."),l.onChange||l.readOnly||l.disabled||l.checked==null||i("You provided a `checked` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultChecked`. Otherwise, set either `onChange` or `readOnly`.")}function mr(v,l){if(v.indexOf("-")===-1)return typeof l.is=="string";switch(v){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Hn={"aria-current":0,"aria-description":0,"aria-details":0,"aria-disabled":0,"aria-hidden":0,"aria-invalid":0,"aria-keyshortcuts":0,"aria-label":0,"aria-roledescription":0,"aria-autocomplete":0,"aria-checked":0,"aria-expanded":0,"aria-haspopup":0,"aria-level":0,"aria-modal":0,"aria-multiline":0,"aria-multiselectable":0,"aria-orientation":0,"aria-placeholder":0,"aria-pressed":0,"aria-readonly":0,"aria-required":0,"aria-selected":0,"aria-sort":0,"aria-valuemax":0,"aria-valuemin":0,"aria-valuenow":0,"aria-valuetext":0,"aria-atomic":0,"aria-busy":0,"aria-live":0,"aria-relevant":0,"aria-dropeffect":0,"aria-grabbed":0,"aria-activedescendant":0,"aria-colcount":0,"aria-colindex":0,"aria-colspan":0,"aria-controls":0,"aria-describedby":0,"aria-errormessage":0,"aria-flowto":0,"aria-labelledby":0,"aria-owns":0,"aria-posinset":0,"aria-rowcount":0,"aria-rowindex":0,"aria-rowspan":0,"aria-setsize":0},Sn={},$i=new RegExp("^(aria)-["+Be+"]*$"),kr=new RegExp("^(aria)[A-Z]["+Be+"]*$");function Jn(v,l){{if(ae.call(Sn,l)&&Sn[l])return!0;if(kr.test(l)){var f="aria-"+l.slice(4).toLowerCase(),g=Hn.hasOwnProperty(f)?f:null;if(g==null)return i("Invalid ARIA attribute `%s`. ARIA attributes follow the pattern aria-* and must be lowercase.",l),Sn[l]=!0,!0;if(l!==g)return i("Invalid ARIA attribute `%s`. Did you mean `%s`?",l,g),Sn[l]=!0,!0}if($i.test(l)){var x=l.toLowerCase(),R=Hn.hasOwnProperty(x)?x:null;if(R==null)return Sn[l]=!0,!1;if(l!==R)return i("Unknown ARIA attribute `%s`. Did you mean `%s`?",l,R),Sn[l]=!0,!0}}return!0}function sn(v,l){{var f=[];for(var g in l){var x=Jn(v,g);x||f.push(g)}var R=f.map(function(B){return"`"+B+"`"}).join(", ");f.length===1?i("Invalid aria prop %s on <%s> tag. For details, see https://reactjs.org/link/invalid-aria-props",R,v):f.length>1&&i("Invalid aria props %s on <%s> tag. For details, see https://reactjs.org/link/invalid-aria-props",R,v)}}function fn(v,l){mr(v,l)||sn(v,l)}var dn=!1;function ut(v,l){{if(v!=="input"&&v!=="textarea"&&v!=="select")return;l!=null&&l.value===null&&!dn&&(dn=!0,v==="select"&&l.multiple?i("`value` prop on `%s` should not be null. Consider using an empty array when `multiple` is set to `true` to clear the component or `undefined` for uncontrolled components.",v):i("`value` prop on `%s` should not be null. Consider using an empty string to clear the component or `undefined` for uncontrolled components.",v))}}var Dn={accept:"accept",acceptcharset:"acceptCharset","accept-charset":"acceptCharset",accesskey:"accessKey",action:"action",allowfullscreen:"allowFullScreen",alt:"alt",as:"as",async:"async",autocapitalize:"autoCapitalize",autocomplete:"autoComplete",autocorrect:"autoCorrect",autofocus:"autoFocus",autoplay:"autoPlay",autosave:"autoSave",capture:"capture",cellpadding:"cellPadding",cellspacing:"cellSpacing",challenge:"challenge",charset:"charSet",checked:"checked",children:"children",cite:"cite",class:"className",classid:"classID",classname:"className",cols:"cols",colspan:"colSpan",content:"content",contenteditable:"contentEditable",contextmenu:"contextMenu",controls:"controls",controlslist:"controlsList",coords:"coords",crossorigin:"crossOrigin",dangerouslysetinnerhtml:"dangerouslySetInnerHTML",data:"data",datetime:"dateTime",default:"default",defaultchecked:"defaultChecked",defaultvalue:"defaultValue",defer:"defer",dir:"dir",disabled:"disabled",disablepictureinpicture:"disablePictureInPicture",disableremoteplayback:"disableRemotePlayback",download:"download",draggable:"draggable",enctype:"encType",enterkeyhint:"enterKeyHint",for:"htmlFor",form:"form",formmethod:"formMethod",formaction:"formAction",formenctype:"formEncType",formnovalidate:"formNoValidate",formtarget:"formTarget",frameborder:"frameBorder",headers:"headers",height:"height",hidden:"hidden",high:"high",href:"href",hreflang:"hrefLang",htmlfor:"htmlFor",httpequiv:"httpEquiv","http-equiv":"httpEquiv",icon:"icon",id:"id",imagesizes:"imageSizes",imagesrcset:"imageSrcSet",innerhtml:"innerHTML",inputmode:"inputMode",integrity:"integrity",is:"is",itemid:"itemID",itemprop:"itemProp",itemref:"itemRef",itemscope:"itemScope",itemtype:"itemType",keyparams:"keyParams",keytype:"keyType",kind:"kind",label:"label",lang:"lang",list:"list",loop:"loop",low:"low",manifest:"manifest",marginwidth:"marginWidth",marginheight:"marginHeight",max:"max",maxlength:"maxLength",media:"media",mediagroup:"mediaGroup",method:"method",min:"min",minlength:"minLength",multiple:"multiple",muted:"muted",name:"name",nomodule:"noModule",nonce:"nonce",novalidate:"noValidate",open:"open",optimum:"optimum",pattern:"pattern",placeholder:"placeholder",playsinline:"playsInline",poster:"poster",preload:"preload",profile:"profile",radiogroup:"radioGroup",readonly:"readOnly",referrerpolicy:"referrerPolicy",rel:"rel",required:"required",reversed:"reversed",role:"role",rows:"rows",rowspan:"rowSpan",sandbox:"sandbox",scope:"scope",scoped:"scoped",scrolling:"scrolling",seamless:"seamless",selected:"selected",shape:"shape",size:"size",sizes:"sizes",span:"span",spellcheck:"spellCheck",src:"src",srcdoc:"srcDoc",srclang:"srcLang",srcset:"srcSet",start:"start",step:"step",style:"style",summary:"summary",tabindex:"tabIndex",target:"target",title:"title",type:"type",usemap:"useMap",value:"value",width:"width",wmode:"wmode",wrap:"wrap",about:"about",accentheight:"accentHeight","accent-height":"accentHeight",accumulate:"accumulate",additive:"additive",alignmentbaseline:"alignmentBaseline","alignment-baseline":"alignmentBaseline",allowreorder:"allowReorder",alphabetic:"alphabetic",amplitude:"amplitude",arabicform:"arabicForm","arabic-form":"arabicForm",ascent:"ascent",attributename:"attributeName",attributetype:"attributeType",autoreverse:"autoReverse",azimuth:"azimuth",basefrequency:"baseFrequency",baselineshift:"baselineShift","baseline-shift":"baselineShift",baseprofile:"baseProfile",bbox:"bbox",begin:"begin",bias:"bias",by:"by",calcmode:"calcMode",capheight:"capHeight","cap-height":"capHeight",clip:"clip",clippath:"clipPath","clip-path":"clipPath",clippathunits:"clipPathUnits",cliprule:"clipRule","clip-rule":"clipRule",color:"color",colorinterpolation:"colorInterpolation","color-interpolation":"colorInterpolation",colorinterpolationfilters:"colorInterpolationFilters","color-interpolation-filters":"colorInterpolationFilters",colorprofile:"colorProfile","color-profile":"colorProfile",colorrendering:"colorRendering","color-rendering":"colorRendering",contentscripttype:"contentScriptType",contentstyletype:"contentStyleType",cursor:"cursor",cx:"cx",cy:"cy",d:"d",datatype:"datatype",decelerate:"decelerate",descent:"descent",diffuseconstant:"diffuseConstant",direction:"direction",display:"display",divisor:"divisor",dominantbaseline:"dominantBaseline","dominant-baseline":"dominantBaseline",dur:"dur",dx:"dx",dy:"dy",edgemode:"edgeMode",elevation:"elevation",enablebackground:"enableBackground","enable-background":"enableBackground",end:"end",exponent:"exponent",externalresourcesrequired:"externalResourcesRequired",fill:"fill",fillopacity:"fillOpacity","fill-opacity":"fillOpacity",fillrule:"fillRule","fill-rule":"fillRule",filter:"filter",filterres:"filterRes",filterunits:"filterUnits",floodopacity:"floodOpacity","flood-opacity":"floodOpacity",floodcolor:"floodColor","flood-color":"floodColor",focusable:"focusable",fontfamily:"fontFamily","font-family":"fontFamily",fontsize:"fontSize","font-size":"fontSize",fontsizeadjust:"fontSizeAdjust","font-size-adjust":"fontSizeAdjust",fontstretch:"fontStretch","font-stretch":"fontStretch",fontstyle:"fontStyle","font-style":"fontStyle",fontvariant:"fontVariant","font-variant":"fontVariant",fontweight:"fontWeight","font-weight":"fontWeight",format:"format",from:"from",fx:"fx",fy:"fy",g1:"g1",g2:"g2",glyphname:"glyphName","glyph-name":"glyphName",glyphorientationhorizontal:"glyphOrientationHorizontal","glyph-orientation-horizontal":"glyphOrientationHorizontal",glyphorientationvertical:"glyphOrientationVertical","glyph-orientation-vertical":"glyphOrientationVertical",glyphref:"glyphRef",gradienttransform:"gradientTransform",gradientunits:"gradientUnits",hanging:"hanging",horizadvx:"horizAdvX","horiz-adv-x":"horizAdvX",horizoriginx:"horizOriginX","horiz-origin-x":"horizOriginX",ideographic:"ideographic",imagerendering:"imageRendering","image-rendering":"imageRendering",in2:"in2",in:"in",inlist:"inlist",intercept:"intercept",k1:"k1",k2:"k2",k3:"k3",k4:"k4",k:"k",kernelmatrix:"kernelMatrix",kernelunitlength:"kernelUnitLength",kerning:"kerning",keypoints:"keyPoints",keysplines:"keySplines",keytimes:"keyTimes",lengthadjust:"lengthAdjust",letterspacing:"letterSpacing","letter-spacing":"letterSpacing",lightingcolor:"lightingColor","lighting-color":"lightingColor",limitingconeangle:"limitingConeAngle",local:"local",markerend:"markerEnd","marker-end":"markerEnd",markerheight:"markerHeight",markermid:"markerMid","marker-mid":"markerMid",markerstart:"markerStart","marker-start":"markerStart",markerunits:"markerUnits",markerwidth:"markerWidth",mask:"mask",maskcontentunits:"maskContentUnits",maskunits:"maskUnits",mathematical:"mathematical",mode:"mode",numoctaves:"numOctaves",offset:"offset",opacity:"opacity",operator:"operator",order:"order",orient:"orient",orientation:"orientation",origin:"origin",overflow:"overflow",overlineposition:"overlinePosition","overline-position":"overlinePosition",overlinethickness:"overlineThickness","overline-thickness":"overlineThickness",paintorder:"paintOrder","paint-order":"paintOrder",panose1:"panose1","panose-1":"panose1",pathlength:"pathLength",patterncontentunits:"patternContentUnits",patterntransform:"patternTransform",patternunits:"patternUnits",pointerevents:"pointerEvents","pointer-events":"pointerEvents",points:"points",pointsatx:"pointsAtX",pointsaty:"pointsAtY",pointsatz:"pointsAtZ",prefix:"prefix",preservealpha:"preserveAlpha",preserveaspectratio:"preserveAspectRatio",primitiveunits:"primitiveUnits",property:"property",r:"r",radius:"radius",refx:"refX",refy:"refY",renderingintent:"renderingIntent","rendering-intent":"renderingIntent",repeatcount:"repeatCount",repeatdur:"repeatDur",requiredextensions:"requiredExtensions",requiredfeatures:"requiredFeatures",resource:"resource",restart:"restart",result:"result",results:"results",rotate:"rotate",rx:"rx",ry:"ry",scale:"scale",security:"security",seed:"seed",shaperendering:"shapeRendering","shape-rendering":"shapeRendering",slope:"slope",spacing:"spacing",specularconstant:"specularConstant",specularexponent:"specularExponent",speed:"speed",spreadmethod:"spreadMethod",startoffset:"startOffset",stddeviation:"stdDeviation",stemh:"stemh",stemv:"stemv",stitchtiles:"stitchTiles",stopcolor:"stopColor","stop-color":"stopColor",stopopacity:"stopOpacity","stop-opacity":"stopOpacity",strikethroughposition:"strikethroughPosition","strikethrough-position":"strikethroughPosition",strikethroughthickness:"strikethroughThickness","strikethrough-thickness":"strikethroughThickness",string:"string",stroke:"stroke",strokedasharray:"strokeDasharray","stroke-dasharray":"strokeDasharray",strokedashoffset:"strokeDashoffset","stroke-dashoffset":"strokeDashoffset",strokelinecap:"strokeLinecap","stroke-linecap":"strokeLinecap",strokelinejoin:"strokeLinejoin","stroke-linejoin":"strokeLinejoin",strokemiterlimit:"strokeMiterlimit","stroke-miterlimit":"strokeMiterlimit",strokewidth:"strokeWidth","stroke-width":"strokeWidth",strokeopacity:"strokeOpacity","stroke-opacity":"strokeOpacity",suppresscontenteditablewarning:"suppressContentEditableWarning",suppresshydrationwarning:"suppressHydrationWarning",surfacescale:"surfaceScale",systemlanguage:"systemLanguage",tablevalues:"tableValues",targetx:"targetX",targety:"targetY",textanchor:"textAnchor","text-anchor":"textAnchor",textdecoration:"textDecoration","text-decoration":"textDecoration",textlength:"textLength",textrendering:"textRendering","text-rendering":"textRendering",to:"to",transform:"transform",typeof:"typeof",u1:"u1",u2:"u2",underlineposition:"underlinePosition","underline-position":"underlinePosition",underlinethickness:"underlineThickness","underline-thickness":"underlineThickness",unicode:"unicode",unicodebidi:"unicodeBidi","unicode-bidi":"unicodeBidi",unicoderange:"unicodeRange","unicode-range":"unicodeRange",unitsperem:"unitsPerEm","units-per-em":"unitsPerEm",unselectable:"unselectable",valphabetic:"vAlphabetic","v-alphabetic":"vAlphabetic",values:"values",vectoreffect:"vectorEffect","vector-effect":"vectorEffect",version:"version",vertadvy:"vertAdvY","vert-adv-y":"vertAdvY",vertoriginx:"vertOriginX","vert-origin-x":"vertOriginX",vertoriginy:"vertOriginY","vert-origin-y":"vertOriginY",vhanging:"vHanging","v-hanging":"vHanging",videographic:"vIdeographic","v-ideographic":"vIdeographic",viewbox:"viewBox",viewtarget:"viewTarget",visibility:"visibility",vmathematical:"vMathematical","v-mathematical":"vMathematical",vocab:"vocab",widths:"widths",wordspacing:"wordSpacing","word-spacing":"wordSpacing",writingmode:"writingMode","writing-mode":"writingMode",x1:"x1",x2:"x2",x:"x",xchannelselector:"xChannelSelector",xheight:"xHeight","x-height":"xHeight",xlinkactuate:"xlinkActuate","xlink:actuate":"xlinkActuate",xlinkarcrole:"xlinkArcrole","xlink:arcrole":"xlinkArcrole",xlinkhref:"xlinkHref","xlink:href":"xlinkHref",xlinkrole:"xlinkRole","xlink:role":"xlinkRole",xlinkshow:"xlinkShow","xlink:show":"xlinkShow",xlinktitle:"xlinkTitle","xlink:title":"xlinkTitle",xlinktype:"xlinkType","xlink:type":"xlinkType",xmlbase:"xmlBase","xml:base":"xmlBase",xmllang:"xmlLang","xml:lang":"xmlLang",xmlns:"xmlns","xml:space":"xmlSpace",xmlnsxlink:"xmlnsXlink","xmlns:xlink":"xmlnsXlink",xmlspace:"xmlSpace",y1:"y1",y2:"y2",y:"y",ychannelselector:"yChannelSelector",z:"z",zoomandpan:"zoomAndPan"},oi=function(){};{var on={},Vi=/^on./,Hi=/^on[^A-Z]/,Ui=new RegExp("^(aria)-["+Be+"]*$"),Dr=new RegExp("^(aria)[A-Z]["+Be+"]*$");oi=function(v,l,f,g){if(ae.call(on,l)&&on[l])return!0;var x=l.toLowerCase();if(x==="onfocusin"||x==="onfocusout")return i("React uses onFocus and onBlur instead of onFocusIn and onFocusOut. All React events are normalized to bubble, so onFocusIn and onFocusOut are not needed/supported by React."),on[l]=!0,!0;if(g!=null){var R=g.registrationNameDependencies,B=g.possibleRegistrationNames;if(R.hasOwnProperty(l))return!0;var z=B.hasOwnProperty(x)?B[x]:null;if(z!=null)return i("Invalid event handler property `%s`. Did you mean `%s`?",l,z),on[l]=!0,!0;if(Vi.test(l))return i("Unknown event handler property `%s`. It will be ignored.",l),on[l]=!0,!0}else if(Vi.test(l))return Hi.test(l)&&i("Invalid event handler property `%s`. React events use the camelCase naming convention, for example `onClick`.",l),on[l]=!0,!0;if(Ui.test(l)||Dr.test(l))return!0;if(x==="innerhtml")return i("Directly setting property `innerHTML` is not permitted. For more information, lookup documentation on `dangerouslySetInnerHTML`."),on[l]=!0,!0;if(x==="aria")return i("The `aria` attribute is reserved for future use in React. Pass individual `aria-` attributes instead."),on[l]=!0,!0;if(x==="is"&&f!==null&&f!==void 0&&typeof f!="string")return i("Received a `%s` for a string attribute `is`. If this is expected, cast the value to a string.",typeof f),on[l]=!0,!0;if(typeof f=="number"&&isNaN(f))return i("Received NaN for the `%s` attribute. If this is expected, cast the value to a string.",l),on[l]=!0,!0;var ne=Ye(l),xe=ne!==null&&ne.type===Ue;if(Dn.hasOwnProperty(x)){var Ne=Dn[x];if(Ne!==l)return i("Invalid DOM property `%s`. Did you mean `%s`?",l,Ne),on[l]=!0,!0}else if(!xe&&l!==x)return i("React does not recognize the `%s` prop on a DOM element. If you intentionally want it to appear in the DOM as a custom attribute, spell it as lowercase `%s` instead. If you accidentally passed it from a parent component, remove it from the DOM element.",l,x),on[l]=!0,!0;return typeof f=="boolean"&&Qe(l,f,ne)?(f?i('Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.',f,l,l,f,l):i('Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.\n\nIf you used to conditionally omit it with %s={condition && value}, pass %s={condition ? value : undefined} instead.',f,l,l,f,l,l,l),on[l]=!0,!0):xe?!0:Qe(l,f,ne)?(on[l]=!0,!1):((f==="false"||f==="true")&&ne!==null&&ne.type===De&&(i("Received the string `%s` for the boolean attribute `%s`. %s Did you mean %s={%s}?",f,l,f==="false"?"The browser will interpret it as a truthy value.":'Although this works, it will not work as expected if you pass the string "false".',l,f),on[l]=!0),!0)}}var Nn=function(v,l,f){{var g=[];for(var x in l){var R=oi(v,x,l[x],f);R||g.push(x)}var B=g.map(function(z){return"`"+z+"`"}).join(", ");g.length===1?i("Invalid value for prop %s on <%s> tag. Either remove it from the element, or pass a string or number value to keep it in the DOM. For details, see https://reactjs.org/link/attribute-behavior ",B,v):g.length>1&&i("Invalid values for props %s on <%s> tag. Either remove them from the element, or pass a string or number value to keep them in the DOM. For details, see https://reactjs.org/link/attribute-behavior ",B,v)}};function Pr(v,l,f){mr(v,l)||Nn(v,l,f)}var vr=function(){};{var zr=/^(?:webkit|moz|o)[A-Z]/,Yr=/^-ms-/,Ao=/-(.)/g,Un=/;\s*$/,Gr={},Qn={},Wt=!1,si=!1,Wi=function(v){return v.replace(Ao,function(l,f){return f.toUpperCase()})},Pn=function(v){Gr.hasOwnProperty(v)&&Gr[v]||(Gr[v]=!0,i("Unsupported style property %s. Did you mean %s?",v,Wi(v.replace(Yr,"ms-"))))},hn=function(v){Gr.hasOwnProperty(v)&&Gr[v]||(Gr[v]=!0,i("Unsupported vendor-prefixed style property %s. Did you mean %s?",v,v.charAt(0).toUpperCase()+v.slice(1)))},ai=function(v,l){Qn.hasOwnProperty(l)&&Qn[l]||(Qn[l]=!0,i(`Style property values shouldn't contain a semicolon. Try "%s: %s" instead.`,v,l.replace(Un,"")))},li=function(v,l){Wt||(Wt=!0,i("`NaN` is an invalid value for the `%s` css style property.",v))},Tn=function(v,l){si||(si=!0,i("`Infinity` is an invalid value for the `%s` css style property.",v))};vr=function(v,l){v.indexOf("-")>-1?Pn(v):zr.test(v)?hn(v):Un.test(l)&&ai(v,l),typeof l=="number"&&(isNaN(l)?li(v,l):isFinite(l)||Tn(v,l))}}var so=vr,yr=/["'&<>]/;function ui(v){ue(v);var l=""+v,f=yr.exec(l);if(!f)return l;var g,x="",R,B=0;for(R=f.index;R<l.length;R++){switch(l.charCodeAt(R)){case 34:g="&quot;";break;case 38:g="&amp;";break;case 39:g="&#x27;";break;case 60:g="&lt;";break;case 62:g="&gt;";break;default:continue}B!==R&&(x+=l.substring(B,R)),B=R+1,x+=g}return B!==R?x+l.substring(B,R):x}function an(v){return typeof v=="boolean"||typeof v=="number"?""+v:ui(v)}var Di=/([A-Z])/g,Ms=/^ms-/;function Ls(v){return v.replace(Di,"-$1").toLowerCase().replace(Ms,"-ms-")}var qr=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*\:/i,ao=!1;function lo(v){!ao&&qr.test(v)&&(ao=!0,i("A future version of React will block javascript: URLs as a security precaution. Use event handlers instead if you can. If you need to generate unsafe HTML try using dangerouslySetInnerHTML instead. React was passed %s.",JSON.stringify(v)))}var Pi=Array.isArray;function er(v){return Pi(v)}var Or=_("<script>"),_r=_("<\/script>"),ci=_('<script src="'),Xr=_('<script type="module" src="'),br=_('" async=""><\/script>');function Rr(v){return ue(v),(""+v).replace(tr,zi)}var tr=/(<\/|<)(s)(cript)/gi,zi=function(v,l,f,g){return""+l+(f==="s"?"\\u0073":"\\u0053")+g};function Oi(v,l,f,g,x){var R=v===void 0?"":v,B=l===void 0?Or:_('<script nonce="'+an(l)+'">'),z=[];if(f!==void 0&&z.push(B,j(Rr(f)),_r),g!==void 0)for(var ne=0;ne<g.length;ne++)z.push(ci,j(an(g[ne])),br);if(x!==void 0)for(var xe=0;xe<x.length;xe++)z.push(Xr,j(an(x[xe])),br);return{bootstrapChunks:z,startInlineScript:B,placeholderPrefix:_(R+"P:"),segmentPrefix:_(R+"S:"),boundaryPrefix:R+"B:",idPrefix:R,nextSuspenseID:0,sentCompleteSegmentFunction:!1,sentCompleteBoundaryFunction:!1,sentClientRenderFunction:!1}}var ar=0,yn=1,Ar=2,Ir=3,fi=4,di=5,wr=6,Kr=7;function Wn(v,l){return{insertionMode:v,selectedValue:l}}function hi(v){var l=v==="http://www.w3.org/2000/svg"?Ar:v==="http://www.w3.org/1998/Math/MathML"?Ir:ar;return Wn(l,null)}function pi(v,l,f){switch(l){case"select":return Wn(yn,f.value!=null?f.value:f.defaultValue);case"svg":return Wn(Ar,null);case"math":return Wn(Ir,null);case"foreignObject":return Wn(yn,null);case"table":return Wn(fi,null);case"thead":case"tbody":case"tfoot":return Wn(di,null);case"colgroup":return Wn(Kr,null);case"tr":return Wn(wr,null)}return v.insertionMode>=fi||v.insertionMode===ar?Wn(yn,null):v}var _i=null;function nn(v){var l=v.nextSuspenseID++;return _(v.boundaryPrefix+l.toString(16))}function jn(v,l,f){var g=v.idPrefix,x=":"+g+"R"+l;return f>0&&(x+="H"+f.toString(32)),x+":"}function Cn(v){return an(v)}var uo=_("<!-- -->");function On(v,l,f,g){return l===""?g:(g&&v.push(uo),v.push(j(Cn(l))),!0)}function _n(v,l,f,g){f&&g&&v.push(uo)}var k=new Map;function F(v){var l=k.get(v);if(l!==void 0)return l;var f=_(an(Ls(v)));return k.set(v,f),f}var Y=_(' style="'),ee=_(":"),Ee=_(";");function ge(v,l,f){if(typeof f!="object")throw new Error("The `style` prop expects a mapping from style properties to values, not a string. For example, style={{marginRight: spacing + 'em'}} when using JSX.");var g=!0;for(var x in f)if(ae.call(f,x)){var R=f[x];if(!(R==null||typeof R=="boolean"||R==="")){var B=void 0,z=void 0,ne=x.indexOf("--")===0;ne?(B=j(an(x)),S(R,x),z=j(an((""+R).trim()))):(so(x,R),B=F(x),typeof R=="number"?R!==0&&!ae.call(yt,x)?z=j(R+"px"):z=j(""+R):(S(R,x),z=j(an((""+R).trim())))),g?(g=!1,v.push(Y,B,ee,z)):v.push(Ee,B,ee,z)}}g||v.push(gt)}var _e=_(" "),Ge=_('="'),gt=_('"'),mt=_('=""');function dt(v,l,f,g){switch(f){case"style":{ge(v,l,g);return}case"defaultValue":case"defaultChecked":case"innerHTML":case"suppressContentEditableWarning":case"suppressHydrationWarning":return}if(!(f.length>2&&(f[0]==="o"||f[0]==="O")&&(f[1]==="n"||f[1]==="N"))){var x=Ye(f);if(x!==null){switch(typeof g){case"function":case"symbol":return;case"boolean":if(!x.acceptsBooleans)return}var R=x.attributeName,B=j(R);switch(x.type){case De:g&&v.push(_e,B,mt);return;case Me:g===!0?v.push(_e,B,mt):g===!1||v.push(_e,B,Ge,j(an(g)),gt);return;case fe:isNaN(g)||v.push(_e,B,Ge,j(an(g)),gt);break;case me:!isNaN(g)&&g>=1&&v.push(_e,B,Ge,j(an(g)),gt);break;default:x.sanitizeURL&&(se(g,R),g=""+g,lo(g)),v.push(_e,B,Ge,j(an(g)),gt)}}else if(je(f)){switch(typeof g){case"function":case"symbol":return;case"boolean":{var z=f.toLowerCase().slice(0,5);if(z!=="data-"&&z!=="aria-")return}}v.push(_e,j(f),Ge,j(an(g)),gt)}}}var Ft=_(">"),Bn=_("/>");function zn(v,l,f){if(l!=null){if(f!=null)throw new Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");if(typeof l!="object"||!("__html"in l))throw new Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://reactjs.org/link/dangerously-set-inner-html for more information.");var g=l.__html;g!=null&&(ue(g),v.push(j(""+g)))}}var En=!1,Zr=!1,lr=!1,Yi=!1,gi=!1,Gi=!1,Mr=!1;function qi(v,l){{var f=v[l];if(f!=null){var g=er(f);v.multiple&&!g?i("The `%s` prop supplied to <select> must be an array if `multiple` is true.",l):!v.multiple&&g&&i("The `%s` prop supplied to <select> must be a scalar value if `multiple` is false.",l)}}}function Ua(v,l,f){Vn("select",l),qi(l,"value"),qi(l,"defaultValue"),l.value!==void 0&&l.defaultValue!==void 0&&!lr&&(i("Select elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled select element and remove one of these props. More info: https://reactjs.org/link/controlled-components"),lr=!0),v.push(ur("select"));var g=null,x=null;for(var R in l)if(ae.call(l,R)){var B=l[R];if(B==null)continue;switch(R){case"children":g=B;break;case"dangerouslySetInnerHTML":x=B;break;case"defaultValue":case"value":break;default:dt(v,f,R,B);break}}return v.push(Ft),zn(v,x,g),g}function Fs(v){var l="";return t.Children.forEach(v,function(f){f!=null&&(l+=f,!gi&&typeof f!="string"&&typeof f!="number"&&(gi=!0,i("Cannot infer the option value of complex children. Pass a `value` prop or use a plain string as children to <option>.")))}),l}var rs=_(' selected=""');function xr(v,l,f,g){var x=g.selectedValue;v.push(ur("option"));var R=null,B=null,z=null,ne=null;for(var xe in l)if(ae.call(l,xe)){var Ne=l[xe];if(Ne==null)continue;switch(xe){case"children":R=Ne;break;case"selected":z=Ne,Mr||(i("Use the `defaultValue` or `value` props on <select> instead of setting `selected` on <option>."),Mr=!0);break;case"dangerouslySetInnerHTML":ne=Ne;break;case"value":B=Ne;default:dt(v,f,xe,Ne);break}}if(x!=null){var ze;if(B!==null?(se(B,"value"),ze=""+B):(ne!==null&&(Gi||(Gi=!0,i("Pass a `value` prop if you set dangerouslyInnerHTML so React knows which value should be selected."))),ze=Fs(R)),er(x))for(var tt=0;tt<x.length;tt++){se(x[tt],"value");var xt=""+x[tt];if(xt===ze){v.push(rs);break}}else se(x,"select.value"),""+x===ze&&v.push(rs)}else z&&v.push(rs);return v.push(Ft),zn(v,ne,R),R}function Wa(v,l,f){Vn("input",l),l.checked!==void 0&&l.defaultChecked!==void 0&&!Zr&&(i("%s contains an input of type %s with both checked and defaultChecked props. Input elements must be either controlled or uncontrolled (specify either the checked prop, or the defaultChecked prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://reactjs.org/link/controlled-components","A component",l.type),Zr=!0),l.value!==void 0&&l.defaultValue!==void 0&&!En&&(i("%s contains an input of type %s with both value and defaultValue props. Input elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://reactjs.org/link/controlled-components","A component",l.type),En=!0),v.push(ur("input"));var g=null,x=null,R=null,B=null;for(var z in l)if(ae.call(l,z)){var ne=l[z];if(ne==null)continue;switch(z){case"children":case"dangerouslySetInnerHTML":throw new Error("input is a self-closing tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");case"defaultChecked":B=ne;break;case"defaultValue":x=ne;break;case"checked":R=ne;break;case"value":g=ne;break;default:dt(v,f,z,ne);break}}return R!==null?dt(v,f,"checked",R):B!==null&&dt(v,f,"checked",B),g!==null?dt(v,f,"value",g):x!==null&&dt(v,f,"value",x),v.push(Bn),null}function mi(v,l,f){Vn("textarea",l),l.value!==void 0&&l.defaultValue!==void 0&&!Yi&&(i("Textarea elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled textarea and remove one of these props. More info: https://reactjs.org/link/controlled-components"),Yi=!0),v.push(ur("textarea"));var g=null,x=null,R=null;for(var B in l)if(ae.call(l,B)){var z=l[B];if(z==null)continue;switch(B){case"children":R=z;break;case"value":g=z;break;case"defaultValue":x=z;break;case"dangerouslySetInnerHTML":throw new Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");default:dt(v,f,B,z);break}}if(g===null&&x!==null&&(g=x),v.push(Ft),R!=null){if(i("Use the `defaultValue` or `value` props instead of setting children on <textarea>."),g!=null)throw new Error("If you supply `defaultValue` on a <textarea>, do not pass children.");if(er(R)){if(R.length>1)throw new Error("<textarea> can only have at most one child.");ue(R[0]),g=""+R[0]}ue(R),g=""+R}return typeof g=="string"&&g[0]===`
104
+ */var S1;function H4(){return S1||(S1=1,process.env.NODE_ENV!=="production"&&function(){var t=X,e="18.3.1",n=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function r(v){{for(var l=arguments.length,f=new Array(l>1?l-1:0),g=1;g<l;g++)f[g-1]=arguments[g];o("warn",v,f)}}function i(v){{for(var l=arguments.length,f=new Array(l>1?l-1:0),g=1;g<l;g++)f[g-1]=arguments[g];o("error",v,f)}}function o(v,l,f){{var g=n.ReactDebugCurrentFrame,x=g.getStackAddendum();x!==""&&(l+="%s",f=f.concat([x]));var R=f.map(function(B){return String(B)});R.unshift("Warning: "+l),Function.prototype.apply.call(console[v],console,R)}}function a(v){v()}var c=512,d=null,p=0;function w(v){d=new Uint8Array(c),p=0}function m(v,l){if(l.length!==0){if(l.length>c){p>0&&(v.enqueue(new Uint8Array(d.buffer,0,p)),d=new Uint8Array(c),p=0),v.enqueue(l);return}var f=l,g=d.length-p;g<f.length&&(g===0?v.enqueue(d):(d.set(f.subarray(0,g),p),v.enqueue(d),f=f.subarray(g)),d=new Uint8Array(c),p=0),d.set(f,p),p+=f.length}}function T(v,l){return m(v,l),!0}function E(v){d&&p>0&&(v.enqueue(new Uint8Array(d.buffer,0,p)),d=null,p=0)}function A(v){v.close()}var I=new TextEncoder;function j(v){return I.encode(v)}function _(v){return I.encode(v)}function U(v,l){typeof v.error=="function"?v.error(l):v.close()}function G(v){{var l=typeof Symbol=="function"&&Symbol.toStringTag,f=l&&v[Symbol.toStringTag]||v.constructor.name||"Object";return f}}function re(v){try{return q(v),!1}catch{return!0}}function q(v){return""+v}function se(v,l){if(re(v))return i("The provided `%s` attribute is an unsupported type %s. This value must be coerced to a string before before using it here.",l,G(v)),q(v)}function S(v,l){if(re(v))return i("The provided `%s` CSS property is an unsupported type %s. This value must be coerced to a string before before using it here.",l,G(v)),q(v)}function ue(v){if(re(v))return i("The provided HTML markup uses a value of unsupported type %s. This value must be coerced to a string before before using it here.",G(v)),q(v)}var ae=Object.prototype.hasOwnProperty,Ue=0,nt=1,et=2,De=3,Me=4,fe=5,me=6,Pe=":A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD",Be=Pe+"\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",Ze=new RegExp("^["+Pe+"]["+Be+"]*$"),ve={},Se={};function je(v){return ae.call(Se,v)?!0:ae.call(ve,v)?!1:Ze.test(v)?(Se[v]=!0,!0):(ve[v]=!0,i("Invalid attribute name: `%s`",v),!1)}function Qe(v,l,f,g){if(f!==null&&f.type===Ue)return!1;switch(typeof l){case"function":case"symbol":return!0;case"boolean":{if(f!==null)return!f.acceptsBooleans;var x=v.toLowerCase().slice(0,5);return x!=="data-"&&x!=="aria-"}default:return!1}}function Ye(v){return qe.hasOwnProperty(v)?qe[v]:null}function Ke(v,l,f,g,x,R,B){this.acceptsBooleans=l===et||l===De||l===Me,this.attributeName=g,this.attributeNamespace=x,this.mustUseProperty=f,this.propertyName=v,this.type=l,this.sanitizeURL=R,this.removeEmptyString=B}var qe={},ot=["children","dangerouslySetInnerHTML","defaultValue","defaultChecked","innerHTML","suppressContentEditableWarning","suppressHydrationWarning","style"];ot.forEach(function(v){qe[v]=new Ke(v,Ue,!1,v,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(v){var l=v[0],f=v[1];qe[l]=new Ke(l,nt,!1,f,null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(v){qe[v]=new Ke(v,et,!1,v.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(v){qe[v]=new Ke(v,et,!1,v,null,!1,!1)}),["allowFullScreen","async","autoFocus","autoPlay","controls","default","defer","disabled","disablePictureInPicture","disableRemotePlayback","formNoValidate","hidden","loop","noModule","noValidate","open","playsInline","readOnly","required","reversed","scoped","seamless","itemScope"].forEach(function(v){qe[v]=new Ke(v,De,!1,v.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(v){qe[v]=new Ke(v,De,!0,v,null,!1,!1)}),["capture","download"].forEach(function(v){qe[v]=new Ke(v,Me,!1,v,null,!1,!1)}),["cols","rows","size","span"].forEach(function(v){qe[v]=new Ke(v,me,!1,v,null,!1,!1)}),["rowSpan","start"].forEach(function(v){qe[v]=new Ke(v,fe,!1,v.toLowerCase(),null,!1,!1)});var ct=/[\-\:]([a-z])/g,pt=function(v){return v[1].toUpperCase()};["accent-height","alignment-baseline","arabic-form","baseline-shift","cap-height","clip-path","clip-rule","color-interpolation","color-interpolation-filters","color-profile","color-rendering","dominant-baseline","enable-background","fill-opacity","fill-rule","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","glyph-name","glyph-orientation-horizontal","glyph-orientation-vertical","horiz-adv-x","horiz-origin-x","image-rendering","letter-spacing","lighting-color","marker-end","marker-mid","marker-start","overline-position","overline-thickness","paint-order","panose-1","pointer-events","rendering-intent","shape-rendering","stop-color","stop-opacity","strikethrough-position","strikethrough-thickness","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","text-anchor","text-decoration","text-rendering","underline-position","underline-thickness","unicode-bidi","unicode-range","units-per-em","v-alphabetic","v-hanging","v-ideographic","v-mathematical","vector-effect","vert-adv-y","vert-origin-x","vert-origin-y","word-spacing","writing-mode","xmlns:xlink","x-height"].forEach(function(v){var l=v.replace(ct,pt);qe[l]=new Ke(l,nt,!1,v,null,!1,!1)}),["xlink:actuate","xlink:arcrole","xlink:role","xlink:show","xlink:title","xlink:type"].forEach(function(v){var l=v.replace(ct,pt);qe[l]=new Ke(l,nt,!1,v,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(v){var l=v.replace(ct,pt);qe[l]=new Ke(l,nt,!1,v,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(v){qe[v]=new Ke(v,nt,!1,v.toLowerCase(),null,!1,!1)});var ft="xlinkHref";qe[ft]=new Ke("xlinkHref",nt,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(v){qe[v]=new Ke(v,nt,!1,v.toLowerCase(),null,!0,!0)});var yt={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0};function Je(v,l){return v+l.charAt(0).toUpperCase()+l.substring(1)}var At=["Webkit","ms","Moz","O"];Object.keys(yt).forEach(function(v){At.forEach(function(l){yt[Je(l,v)]=yt[v]})});var Mt={button:!0,checkbox:!0,image:!0,hidden:!0,radio:!0,reset:!0,submit:!0};function Vn(v,l){Mt[l.type]||l.onChange||l.onInput||l.readOnly||l.disabled||l.value==null||i("You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set either `onChange` or `readOnly`."),l.onChange||l.readOnly||l.disabled||l.checked==null||i("You provided a `checked` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultChecked`. Otherwise, set either `onChange` or `readOnly`.")}function mr(v,l){if(v.indexOf("-")===-1)return typeof l.is=="string";switch(v){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Hn={"aria-current":0,"aria-description":0,"aria-details":0,"aria-disabled":0,"aria-hidden":0,"aria-invalid":0,"aria-keyshortcuts":0,"aria-label":0,"aria-roledescription":0,"aria-autocomplete":0,"aria-checked":0,"aria-expanded":0,"aria-haspopup":0,"aria-level":0,"aria-modal":0,"aria-multiline":0,"aria-multiselectable":0,"aria-orientation":0,"aria-placeholder":0,"aria-pressed":0,"aria-readonly":0,"aria-required":0,"aria-selected":0,"aria-sort":0,"aria-valuemax":0,"aria-valuemin":0,"aria-valuenow":0,"aria-valuetext":0,"aria-atomic":0,"aria-busy":0,"aria-live":0,"aria-relevant":0,"aria-dropeffect":0,"aria-grabbed":0,"aria-activedescendant":0,"aria-colcount":0,"aria-colindex":0,"aria-colspan":0,"aria-controls":0,"aria-describedby":0,"aria-errormessage":0,"aria-flowto":0,"aria-labelledby":0,"aria-owns":0,"aria-posinset":0,"aria-rowcount":0,"aria-rowindex":0,"aria-rowspan":0,"aria-setsize":0},Sn={},$i=new RegExp("^(aria)-["+Be+"]*$"),kr=new RegExp("^(aria)[A-Z]["+Be+"]*$");function Jn(v,l){{if(ae.call(Sn,l)&&Sn[l])return!0;if(kr.test(l)){var f="aria-"+l.slice(4).toLowerCase(),g=Hn.hasOwnProperty(f)?f:null;if(g==null)return i("Invalid ARIA attribute `%s`. ARIA attributes follow the pattern aria-* and must be lowercase.",l),Sn[l]=!0,!0;if(l!==g)return i("Invalid ARIA attribute `%s`. Did you mean `%s`?",l,g),Sn[l]=!0,!0}if($i.test(l)){var x=l.toLowerCase(),R=Hn.hasOwnProperty(x)?x:null;if(R==null)return Sn[l]=!0,!1;if(l!==R)return i("Unknown ARIA attribute `%s`. Did you mean `%s`?",l,R),Sn[l]=!0,!0}}return!0}function sn(v,l){{var f=[];for(var g in l){var x=Jn(v,g);x||f.push(g)}var R=f.map(function(B){return"`"+B+"`"}).join(", ");f.length===1?i("Invalid aria prop %s on <%s> tag. For details, see https://reactjs.org/link/invalid-aria-props",R,v):f.length>1&&i("Invalid aria props %s on <%s> tag. For details, see https://reactjs.org/link/invalid-aria-props",R,v)}}function fn(v,l){mr(v,l)||sn(v,l)}var dn=!1;function ut(v,l){{if(v!=="input"&&v!=="textarea"&&v!=="select")return;l!=null&&l.value===null&&!dn&&(dn=!0,v==="select"&&l.multiple?i("`value` prop on `%s` should not be null. Consider using an empty array when `multiple` is set to `true` to clear the component or `undefined` for uncontrolled components.",v):i("`value` prop on `%s` should not be null. Consider using an empty string to clear the component or `undefined` for uncontrolled components.",v))}}var Dn={accept:"accept",acceptcharset:"acceptCharset","accept-charset":"acceptCharset",accesskey:"accessKey",action:"action",allowfullscreen:"allowFullScreen",alt:"alt",as:"as",async:"async",autocapitalize:"autoCapitalize",autocomplete:"autoComplete",autocorrect:"autoCorrect",autofocus:"autoFocus",autoplay:"autoPlay",autosave:"autoSave",capture:"capture",cellpadding:"cellPadding",cellspacing:"cellSpacing",challenge:"challenge",charset:"charSet",checked:"checked",children:"children",cite:"cite",class:"className",classid:"classID",classname:"className",cols:"cols",colspan:"colSpan",content:"content",contenteditable:"contentEditable",contextmenu:"contextMenu",controls:"controls",controlslist:"controlsList",coords:"coords",crossorigin:"crossOrigin",dangerouslysetinnerhtml:"dangerouslySetInnerHTML",data:"data",datetime:"dateTime",default:"default",defaultchecked:"defaultChecked",defaultvalue:"defaultValue",defer:"defer",dir:"dir",disabled:"disabled",disablepictureinpicture:"disablePictureInPicture",disableremoteplayback:"disableRemotePlayback",download:"download",draggable:"draggable",enctype:"encType",enterkeyhint:"enterKeyHint",for:"htmlFor",form:"form",formmethod:"formMethod",formaction:"formAction",formenctype:"formEncType",formnovalidate:"formNoValidate",formtarget:"formTarget",frameborder:"frameBorder",headers:"headers",height:"height",hidden:"hidden",high:"high",href:"href",hreflang:"hrefLang",htmlfor:"htmlFor",httpequiv:"httpEquiv","http-equiv":"httpEquiv",icon:"icon",id:"id",imagesizes:"imageSizes",imagesrcset:"imageSrcSet",innerhtml:"innerHTML",inputmode:"inputMode",integrity:"integrity",is:"is",itemid:"itemID",itemprop:"itemProp",itemref:"itemRef",itemscope:"itemScope",itemtype:"itemType",keyparams:"keyParams",keytype:"keyType",kind:"kind",label:"label",lang:"lang",list:"list",loop:"loop",low:"low",manifest:"manifest",marginwidth:"marginWidth",marginheight:"marginHeight",max:"max",maxlength:"maxLength",media:"media",mediagroup:"mediaGroup",method:"method",min:"min",minlength:"minLength",multiple:"multiple",muted:"muted",name:"name",nomodule:"noModule",nonce:"nonce",novalidate:"noValidate",open:"open",optimum:"optimum",pattern:"pattern",placeholder:"placeholder",playsinline:"playsInline",poster:"poster",preload:"preload",profile:"profile",radiogroup:"radioGroup",readonly:"readOnly",referrerpolicy:"referrerPolicy",rel:"rel",required:"required",reversed:"reversed",role:"role",rows:"rows",rowspan:"rowSpan",sandbox:"sandbox",scope:"scope",scoped:"scoped",scrolling:"scrolling",seamless:"seamless",selected:"selected",shape:"shape",size:"size",sizes:"sizes",span:"span",spellcheck:"spellCheck",src:"src",srcdoc:"srcDoc",srclang:"srcLang",srcset:"srcSet",start:"start",step:"step",style:"style",summary:"summary",tabindex:"tabIndex",target:"target",title:"title",type:"type",usemap:"useMap",value:"value",width:"width",wmode:"wmode",wrap:"wrap",about:"about",accentheight:"accentHeight","accent-height":"accentHeight",accumulate:"accumulate",additive:"additive",alignmentbaseline:"alignmentBaseline","alignment-baseline":"alignmentBaseline",allowreorder:"allowReorder",alphabetic:"alphabetic",amplitude:"amplitude",arabicform:"arabicForm","arabic-form":"arabicForm",ascent:"ascent",attributename:"attributeName",attributetype:"attributeType",autoreverse:"autoReverse",azimuth:"azimuth",basefrequency:"baseFrequency",baselineshift:"baselineShift","baseline-shift":"baselineShift",baseprofile:"baseProfile",bbox:"bbox",begin:"begin",bias:"bias",by:"by",calcmode:"calcMode",capheight:"capHeight","cap-height":"capHeight",clip:"clip",clippath:"clipPath","clip-path":"clipPath",clippathunits:"clipPathUnits",cliprule:"clipRule","clip-rule":"clipRule",color:"color",colorinterpolation:"colorInterpolation","color-interpolation":"colorInterpolation",colorinterpolationfilters:"colorInterpolationFilters","color-interpolation-filters":"colorInterpolationFilters",colorprofile:"colorProfile","color-profile":"colorProfile",colorrendering:"colorRendering","color-rendering":"colorRendering",contentscripttype:"contentScriptType",contentstyletype:"contentStyleType",cursor:"cursor",cx:"cx",cy:"cy",d:"d",datatype:"datatype",decelerate:"decelerate",descent:"descent",diffuseconstant:"diffuseConstant",direction:"direction",display:"display",divisor:"divisor",dominantbaseline:"dominantBaseline","dominant-baseline":"dominantBaseline",dur:"dur",dx:"dx",dy:"dy",edgemode:"edgeMode",elevation:"elevation",enablebackground:"enableBackground","enable-background":"enableBackground",end:"end",exponent:"exponent",externalresourcesrequired:"externalResourcesRequired",fill:"fill",fillopacity:"fillOpacity","fill-opacity":"fillOpacity",fillrule:"fillRule","fill-rule":"fillRule",filter:"filter",filterres:"filterRes",filterunits:"filterUnits",floodopacity:"floodOpacity","flood-opacity":"floodOpacity",floodcolor:"floodColor","flood-color":"floodColor",focusable:"focusable",fontfamily:"fontFamily","font-family":"fontFamily",fontsize:"fontSize","font-size":"fontSize",fontsizeadjust:"fontSizeAdjust","font-size-adjust":"fontSizeAdjust",fontstretch:"fontStretch","font-stretch":"fontStretch",fontstyle:"fontStyle","font-style":"fontStyle",fontvariant:"fontVariant","font-variant":"fontVariant",fontweight:"fontWeight","font-weight":"fontWeight",format:"format",from:"from",fx:"fx",fy:"fy",g1:"g1",g2:"g2",glyphname:"glyphName","glyph-name":"glyphName",glyphorientationhorizontal:"glyphOrientationHorizontal","glyph-orientation-horizontal":"glyphOrientationHorizontal",glyphorientationvertical:"glyphOrientationVertical","glyph-orientation-vertical":"glyphOrientationVertical",glyphref:"glyphRef",gradienttransform:"gradientTransform",gradientunits:"gradientUnits",hanging:"hanging",horizadvx:"horizAdvX","horiz-adv-x":"horizAdvX",horizoriginx:"horizOriginX","horiz-origin-x":"horizOriginX",ideographic:"ideographic",imagerendering:"imageRendering","image-rendering":"imageRendering",in2:"in2",in:"in",inlist:"inlist",intercept:"intercept",k1:"k1",k2:"k2",k3:"k3",k4:"k4",k:"k",kernelmatrix:"kernelMatrix",kernelunitlength:"kernelUnitLength",kerning:"kerning",keypoints:"keyPoints",keysplines:"keySplines",keytimes:"keyTimes",lengthadjust:"lengthAdjust",letterspacing:"letterSpacing","letter-spacing":"letterSpacing",lightingcolor:"lightingColor","lighting-color":"lightingColor",limitingconeangle:"limitingConeAngle",local:"local",markerend:"markerEnd","marker-end":"markerEnd",markerheight:"markerHeight",markermid:"markerMid","marker-mid":"markerMid",markerstart:"markerStart","marker-start":"markerStart",markerunits:"markerUnits",markerwidth:"markerWidth",mask:"mask",maskcontentunits:"maskContentUnits",maskunits:"maskUnits",mathematical:"mathematical",mode:"mode",numoctaves:"numOctaves",offset:"offset",opacity:"opacity",operator:"operator",order:"order",orient:"orient",orientation:"orientation",origin:"origin",overflow:"overflow",overlineposition:"overlinePosition","overline-position":"overlinePosition",overlinethickness:"overlineThickness","overline-thickness":"overlineThickness",paintorder:"paintOrder","paint-order":"paintOrder",panose1:"panose1","panose-1":"panose1",pathlength:"pathLength",patterncontentunits:"patternContentUnits",patterntransform:"patternTransform",patternunits:"patternUnits",pointerevents:"pointerEvents","pointer-events":"pointerEvents",points:"points",pointsatx:"pointsAtX",pointsaty:"pointsAtY",pointsatz:"pointsAtZ",prefix:"prefix",preservealpha:"preserveAlpha",preserveaspectratio:"preserveAspectRatio",primitiveunits:"primitiveUnits",property:"property",r:"r",radius:"radius",refx:"refX",refy:"refY",renderingintent:"renderingIntent","rendering-intent":"renderingIntent",repeatcount:"repeatCount",repeatdur:"repeatDur",requiredextensions:"requiredExtensions",requiredfeatures:"requiredFeatures",resource:"resource",restart:"restart",result:"result",results:"results",rotate:"rotate",rx:"rx",ry:"ry",scale:"scale",security:"security",seed:"seed",shaperendering:"shapeRendering","shape-rendering":"shapeRendering",slope:"slope",spacing:"spacing",specularconstant:"specularConstant",specularexponent:"specularExponent",speed:"speed",spreadmethod:"spreadMethod",startoffset:"startOffset",stddeviation:"stdDeviation",stemh:"stemh",stemv:"stemv",stitchtiles:"stitchTiles",stopcolor:"stopColor","stop-color":"stopColor",stopopacity:"stopOpacity","stop-opacity":"stopOpacity",strikethroughposition:"strikethroughPosition","strikethrough-position":"strikethroughPosition",strikethroughthickness:"strikethroughThickness","strikethrough-thickness":"strikethroughThickness",string:"string",stroke:"stroke",strokedasharray:"strokeDasharray","stroke-dasharray":"strokeDasharray",strokedashoffset:"strokeDashoffset","stroke-dashoffset":"strokeDashoffset",strokelinecap:"strokeLinecap","stroke-linecap":"strokeLinecap",strokelinejoin:"strokeLinejoin","stroke-linejoin":"strokeLinejoin",strokemiterlimit:"strokeMiterlimit","stroke-miterlimit":"strokeMiterlimit",strokewidth:"strokeWidth","stroke-width":"strokeWidth",strokeopacity:"strokeOpacity","stroke-opacity":"strokeOpacity",suppresscontenteditablewarning:"suppressContentEditableWarning",suppresshydrationwarning:"suppressHydrationWarning",surfacescale:"surfaceScale",systemlanguage:"systemLanguage",tablevalues:"tableValues",targetx:"targetX",targety:"targetY",textanchor:"textAnchor","text-anchor":"textAnchor",textdecoration:"textDecoration","text-decoration":"textDecoration",textlength:"textLength",textrendering:"textRendering","text-rendering":"textRendering",to:"to",transform:"transform",typeof:"typeof",u1:"u1",u2:"u2",underlineposition:"underlinePosition","underline-position":"underlinePosition",underlinethickness:"underlineThickness","underline-thickness":"underlineThickness",unicode:"unicode",unicodebidi:"unicodeBidi","unicode-bidi":"unicodeBidi",unicoderange:"unicodeRange","unicode-range":"unicodeRange",unitsperem:"unitsPerEm","units-per-em":"unitsPerEm",unselectable:"unselectable",valphabetic:"vAlphabetic","v-alphabetic":"vAlphabetic",values:"values",vectoreffect:"vectorEffect","vector-effect":"vectorEffect",version:"version",vertadvy:"vertAdvY","vert-adv-y":"vertAdvY",vertoriginx:"vertOriginX","vert-origin-x":"vertOriginX",vertoriginy:"vertOriginY","vert-origin-y":"vertOriginY",vhanging:"vHanging","v-hanging":"vHanging",videographic:"vIdeographic","v-ideographic":"vIdeographic",viewbox:"viewBox",viewtarget:"viewTarget",visibility:"visibility",vmathematical:"vMathematical","v-mathematical":"vMathematical",vocab:"vocab",widths:"widths",wordspacing:"wordSpacing","word-spacing":"wordSpacing",writingmode:"writingMode","writing-mode":"writingMode",x1:"x1",x2:"x2",x:"x",xchannelselector:"xChannelSelector",xheight:"xHeight","x-height":"xHeight",xlinkactuate:"xlinkActuate","xlink:actuate":"xlinkActuate",xlinkarcrole:"xlinkArcrole","xlink:arcrole":"xlinkArcrole",xlinkhref:"xlinkHref","xlink:href":"xlinkHref",xlinkrole:"xlinkRole","xlink:role":"xlinkRole",xlinkshow:"xlinkShow","xlink:show":"xlinkShow",xlinktitle:"xlinkTitle","xlink:title":"xlinkTitle",xlinktype:"xlinkType","xlink:type":"xlinkType",xmlbase:"xmlBase","xml:base":"xmlBase",xmllang:"xmlLang","xml:lang":"xmlLang",xmlns:"xmlns","xml:space":"xmlSpace",xmlnsxlink:"xmlnsXlink","xmlns:xlink":"xmlnsXlink",xmlspace:"xmlSpace",y1:"y1",y2:"y2",y:"y",ychannelselector:"yChannelSelector",z:"z",zoomandpan:"zoomAndPan"},oi=function(){};{var on={},Vi=/^on./,Hi=/^on[^A-Z]/,Ui=new RegExp("^(aria)-["+Be+"]*$"),Dr=new RegExp("^(aria)[A-Z]["+Be+"]*$");oi=function(v,l,f,g){if(ae.call(on,l)&&on[l])return!0;var x=l.toLowerCase();if(x==="onfocusin"||x==="onfocusout")return i("React uses onFocus and onBlur instead of onFocusIn and onFocusOut. All React events are normalized to bubble, so onFocusIn and onFocusOut are not needed/supported by React."),on[l]=!0,!0;if(g!=null){var R=g.registrationNameDependencies,B=g.possibleRegistrationNames;if(R.hasOwnProperty(l))return!0;var z=B.hasOwnProperty(x)?B[x]:null;if(z!=null)return i("Invalid event handler property `%s`. Did you mean `%s`?",l,z),on[l]=!0,!0;if(Vi.test(l))return i("Unknown event handler property `%s`. It will be ignored.",l),on[l]=!0,!0}else if(Vi.test(l))return Hi.test(l)&&i("Invalid event handler property `%s`. React events use the camelCase naming convention, for example `onClick`.",l),on[l]=!0,!0;if(Ui.test(l)||Dr.test(l))return!0;if(x==="innerhtml")return i("Directly setting property `innerHTML` is not permitted. For more information, lookup documentation on `dangerouslySetInnerHTML`."),on[l]=!0,!0;if(x==="aria")return i("The `aria` attribute is reserved for future use in React. Pass individual `aria-` attributes instead."),on[l]=!0,!0;if(x==="is"&&f!==null&&f!==void 0&&typeof f!="string")return i("Received a `%s` for a string attribute `is`. If this is expected, cast the value to a string.",typeof f),on[l]=!0,!0;if(typeof f=="number"&&isNaN(f))return i("Received NaN for the `%s` attribute. If this is expected, cast the value to a string.",l),on[l]=!0,!0;var ne=Ye(l),xe=ne!==null&&ne.type===Ue;if(Dn.hasOwnProperty(x)){var Ne=Dn[x];if(Ne!==l)return i("Invalid DOM property `%s`. Did you mean `%s`?",l,Ne),on[l]=!0,!0}else if(!xe&&l!==x)return i("React does not recognize the `%s` prop on a DOM element. If you intentionally want it to appear in the DOM as a custom attribute, spell it as lowercase `%s` instead. If you accidentally passed it from a parent component, remove it from the DOM element.",l,x),on[l]=!0,!0;return typeof f=="boolean"&&Qe(l,f,ne)?(f?i('Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.',f,l,l,f,l):i('Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.\n\nIf you used to conditionally omit it with %s={condition && value}, pass %s={condition ? value : undefined} instead.',f,l,l,f,l,l,l),on[l]=!0,!0):xe?!0:Qe(l,f,ne)?(on[l]=!0,!1):((f==="false"||f==="true")&&ne!==null&&ne.type===De&&(i("Received the string `%s` for the boolean attribute `%s`. %s Did you mean %s={%s}?",f,l,f==="false"?"The browser will interpret it as a truthy value.":'Although this works, it will not work as expected if you pass the string "false".',l,f),on[l]=!0),!0)}}var Nn=function(v,l,f){{var g=[];for(var x in l){var R=oi(v,x,l[x],f);R||g.push(x)}var B=g.map(function(z){return"`"+z+"`"}).join(", ");g.length===1?i("Invalid value for prop %s on <%s> tag. Either remove it from the element, or pass a string or number value to keep it in the DOM. For details, see https://reactjs.org/link/attribute-behavior ",B,v):g.length>1&&i("Invalid values for props %s on <%s> tag. Either remove them from the element, or pass a string or number value to keep them in the DOM. For details, see https://reactjs.org/link/attribute-behavior ",B,v)}};function Pr(v,l,f){mr(v,l)||Nn(v,l,f)}var vr=function(){};{var zr=/^(?:webkit|moz|o)[A-Z]/,Yr=/^-ms-/,Ao=/-(.)/g,Un=/;\s*$/,Gr={},Qn={},Wt=!1,si=!1,Wi=function(v){return v.replace(Ao,function(l,f){return f.toUpperCase()})},Pn=function(v){Gr.hasOwnProperty(v)&&Gr[v]||(Gr[v]=!0,i("Unsupported style property %s. Did you mean %s?",v,Wi(v.replace(Yr,"ms-"))))},hn=function(v){Gr.hasOwnProperty(v)&&Gr[v]||(Gr[v]=!0,i("Unsupported vendor-prefixed style property %s. Did you mean %s?",v,v.charAt(0).toUpperCase()+v.slice(1)))},ai=function(v,l){Qn.hasOwnProperty(l)&&Qn[l]||(Qn[l]=!0,i(`Style property values shouldn't contain a semicolon. Try "%s: %s" instead.`,v,l.replace(Un,"")))},li=function(v,l){Wt||(Wt=!0,i("`NaN` is an invalid value for the `%s` css style property.",v))},Tn=function(v,l){si||(si=!0,i("`Infinity` is an invalid value for the `%s` css style property.",v))};vr=function(v,l){v.indexOf("-")>-1?Pn(v):zr.test(v)?hn(v):Un.test(l)&&ai(v,l),typeof l=="number"&&(isNaN(l)?li(v,l):isFinite(l)||Tn(v,l))}}var so=vr,yr=/["'&<>]/;function ui(v){ue(v);var l=""+v,f=yr.exec(l);if(!f)return l;var g,x="",R,B=0;for(R=f.index;R<l.length;R++){switch(l.charCodeAt(R)){case 34:g="&quot;";break;case 38:g="&amp;";break;case 39:g="&#x27;";break;case 60:g="&lt;";break;case 62:g="&gt;";break;default:continue}B!==R&&(x+=l.substring(B,R)),B=R+1,x+=g}return B!==R?x+l.substring(B,R):x}function an(v){return typeof v=="boolean"||typeof v=="number"?""+v:ui(v)}var Di=/([A-Z])/g,Ms=/^ms-/;function Ls(v){return v.replace(Di,"-$1").toLowerCase().replace(Ms,"-ms-")}var qr=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*\:/i,ao=!1;function lo(v){!ao&&qr.test(v)&&(ao=!0,i("A future version of React will block javascript: URLs as a security precaution. Use event handlers instead if you can. If you need to generate unsafe HTML try using dangerouslySetInnerHTML instead. React was passed %s.",JSON.stringify(v)))}var Pi=Array.isArray;function er(v){return Pi(v)}var Or=_("<script>"),_r=_("<\/script>"),ci=_('<script src="'),Xr=_('<script type="module" src="'),br=_('" async=""><\/script>');function Rr(v){return ue(v),(""+v).replace(tr,zi)}var tr=/(<\/|<)(s)(cript)/gi,zi=function(v,l,f,g){return""+l+(f==="s"?"\\u0073":"\\u0053")+g};function Oi(v,l,f,g,x){var R=v===void 0?"":v,B=l===void 0?Or:_('<script nonce="'+an(l)+'">'),z=[];if(f!==void 0&&z.push(B,j(Rr(f)),_r),g!==void 0)for(var ne=0;ne<g.length;ne++)z.push(ci,j(an(g[ne])),br);if(x!==void 0)for(var xe=0;xe<x.length;xe++)z.push(Xr,j(an(x[xe])),br);return{bootstrapChunks:z,startInlineScript:B,placeholderPrefix:_(R+"P:"),segmentPrefix:_(R+"S:"),boundaryPrefix:R+"B:",idPrefix:R,nextSuspenseID:0,sentCompleteSegmentFunction:!1,sentCompleteBoundaryFunction:!1,sentClientRenderFunction:!1}}var ar=0,yn=1,Ar=2,Ir=3,fi=4,di=5,wr=6,Kr=7;function Wn(v,l){return{insertionMode:v,selectedValue:l}}function hi(v){var l=v==="http://www.w3.org/2000/svg"?Ar:v==="http://www.w3.org/1998/Math/MathML"?Ir:ar;return Wn(l,null)}function pi(v,l,f){switch(l){case"select":return Wn(yn,f.value!=null?f.value:f.defaultValue);case"svg":return Wn(Ar,null);case"math":return Wn(Ir,null);case"foreignObject":return Wn(yn,null);case"table":return Wn(fi,null);case"thead":case"tbody":case"tfoot":return Wn(di,null);case"colgroup":return Wn(Kr,null);case"tr":return Wn(wr,null)}return v.insertionMode>=fi||v.insertionMode===ar?Wn(yn,null):v}var _i=null;function nn(v){var l=v.nextSuspenseID++;return _(v.boundaryPrefix+l.toString(16))}function jn(v,l,f){var g=v.idPrefix,x=":"+g+"R"+l;return f>0&&(x+="H"+f.toString(32)),x+":"}function Cn(v){return an(v)}var uo=_("<!-- -->");function On(v,l,f,g){return l===""?g:(g&&v.push(uo),v.push(j(Cn(l))),!0)}function _n(v,l,f,g){f&&g&&v.push(uo)}var k=new Map;function F(v){var l=k.get(v);if(l!==void 0)return l;var f=_(an(Ls(v)));return k.set(v,f),f}var Y=_(' style="'),ee=_(":"),Ee=_(";");function ge(v,l,f){if(typeof f!="object")throw new Error("The `style` prop expects a mapping from style properties to values, not a string. For example, style={{marginRight: spacing + 'em'}} when using JSX.");var g=!0;for(var x in f)if(ae.call(f,x)){var R=f[x];if(!(R==null||typeof R=="boolean"||R==="")){var B=void 0,z=void 0,ne=x.indexOf("--")===0;ne?(B=j(an(x)),S(R,x),z=j(an((""+R).trim()))):(so(x,R),B=F(x),typeof R=="number"?R!==0&&!ae.call(yt,x)?z=j(R+"px"):z=j(""+R):(S(R,x),z=j(an((""+R).trim())))),g?(g=!1,v.push(Y,B,ee,z)):v.push(Ee,B,ee,z)}}g||v.push(gt)}var _e=_(" "),Ge=_('="'),gt=_('"'),mt=_('=""');function dt(v,l,f,g){switch(f){case"style":{ge(v,l,g);return}case"defaultValue":case"defaultChecked":case"innerHTML":case"suppressContentEditableWarning":case"suppressHydrationWarning":return}if(!(f.length>2&&(f[0]==="o"||f[0]==="O")&&(f[1]==="n"||f[1]==="N"))){var x=Ye(f);if(x!==null){switch(typeof g){case"function":case"symbol":return;case"boolean":if(!x.acceptsBooleans)return}var R=x.attributeName,B=j(R);switch(x.type){case De:g&&v.push(_e,B,mt);return;case Me:g===!0?v.push(_e,B,mt):g===!1||v.push(_e,B,Ge,j(an(g)),gt);return;case fe:isNaN(g)||v.push(_e,B,Ge,j(an(g)),gt);break;case me:!isNaN(g)&&g>=1&&v.push(_e,B,Ge,j(an(g)),gt);break;default:x.sanitizeURL&&(se(g,R),g=""+g,lo(g)),v.push(_e,B,Ge,j(an(g)),gt)}}else if(je(f)){switch(typeof g){case"function":case"symbol":return;case"boolean":{var z=f.toLowerCase().slice(0,5);if(z!=="data-"&&z!=="aria-")return}}v.push(_e,j(f),Ge,j(an(g)),gt)}}}var Ft=_(">"),Bn=_("/>");function zn(v,l,f){if(l!=null){if(f!=null)throw new Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");if(typeof l!="object"||!("__html"in l))throw new Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://reactjs.org/link/dangerously-set-inner-html for more information.");var g=l.__html;g!=null&&(ue(g),v.push(j(""+g)))}}var En=!1,Zr=!1,lr=!1,Yi=!1,gi=!1,Gi=!1,Mr=!1;function qi(v,l){{var f=v[l];if(f!=null){var g=er(f);v.multiple&&!g?i("The `%s` prop supplied to <select> must be an array if `multiple` is true.",l):!v.multiple&&g&&i("The `%s` prop supplied to <select> must be a scalar value if `multiple` is false.",l)}}}function Ua(v,l,f){Vn("select",l),qi(l,"value"),qi(l,"defaultValue"),l.value!==void 0&&l.defaultValue!==void 0&&!lr&&(i("Select elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled select element and remove one of these props. More info: https://reactjs.org/link/controlled-components"),lr=!0),v.push(ur("select"));var g=null,x=null;for(var R in l)if(ae.call(l,R)){var B=l[R];if(B==null)continue;switch(R){case"children":g=B;break;case"dangerouslySetInnerHTML":x=B;break;case"defaultValue":case"value":break;default:dt(v,f,R,B);break}}return v.push(Ft),zn(v,x,g),g}function Fs(v){var l="";return t.Children.forEach(v,function(f){f!=null&&(l+=f,!gi&&typeof f!="string"&&typeof f!="number"&&(gi=!0,i("Cannot infer the option value of complex children. Pass a `value` prop or use a plain string as children to <option>.")))}),l}var rs=_(' selected=""');function xr(v,l,f,g){var x=g.selectedValue;v.push(ur("option"));var R=null,B=null,z=null,ne=null;for(var xe in l)if(ae.call(l,xe)){var Ne=l[xe];if(Ne==null)continue;switch(xe){case"children":R=Ne;break;case"selected":z=Ne,Mr||(i("Use the `defaultValue` or `value` props on <select> instead of setting `selected` on <option>."),Mr=!0);break;case"dangerouslySetInnerHTML":ne=Ne;break;case"value":B=Ne;default:dt(v,f,xe,Ne);break}}if(x!=null){var ze;if(B!==null?(se(B,"value"),ze=""+B):(ne!==null&&(Gi||(Gi=!0,i("Pass a `value` prop if you set dangerouslyInnerHTML so React knows which value should be selected."))),ze=Fs(R)),er(x))for(var tt=0;tt<x.length;tt++){se(x[tt],"value");var xt=""+x[tt];if(xt===ze){v.push(rs);break}}else se(x,"select.value"),""+x===ze&&v.push(rs)}else z&&v.push(rs);return v.push(Ft),zn(v,ne,R),R}function Wa(v,l,f){Vn("input",l),l.checked!==void 0&&l.defaultChecked!==void 0&&!Zr&&(i("%s contains an input of type %s with both checked and defaultChecked props. Input elements must be either controlled or uncontrolled (specify either the checked prop, or the defaultChecked prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://reactjs.org/link/controlled-components","A component",l.type),Zr=!0),l.value!==void 0&&l.defaultValue!==void 0&&!En&&(i("%s contains an input of type %s with both value and defaultValue props. Input elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://reactjs.org/link/controlled-components","A component",l.type),En=!0),v.push(ur("input"));var g=null,x=null,R=null,B=null;for(var z in l)if(ae.call(l,z)){var ne=l[z];if(ne==null)continue;switch(z){case"children":case"dangerouslySetInnerHTML":throw new Error("input is a self-closing tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");case"defaultChecked":B=ne;break;case"defaultValue":x=ne;break;case"checked":R=ne;break;case"value":g=ne;break;default:dt(v,f,z,ne);break}}return R!==null?dt(v,f,"checked",R):B!==null&&dt(v,f,"checked",B),g!==null?dt(v,f,"value",g):x!==null&&dt(v,f,"value",x),v.push(Bn),null}function mi(v,l,f){Vn("textarea",l),l.value!==void 0&&l.defaultValue!==void 0&&!Yi&&(i("Textarea elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled textarea and remove one of these props. More info: https://reactjs.org/link/controlled-components"),Yi=!0),v.push(ur("textarea"));var g=null,x=null,R=null;for(var B in l)if(ae.call(l,B)){var z=l[B];if(z==null)continue;switch(B){case"children":R=z;break;case"value":g=z;break;case"defaultValue":x=z;break;case"dangerouslySetInnerHTML":throw new Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");default:dt(v,f,B,z);break}}if(g===null&&x!==null&&(g=x),v.push(Ft),R!=null){if(i("Use the `defaultValue` or `value` props instead of setting children on <textarea>."),g!=null)throw new Error("If you supply `defaultValue` on a <textarea>, do not pass children.");if(er(R)){if(R.length>1)throw new Error("<textarea> can only have at most one child.");ue(R[0]),g=""+R[0]}ue(R),g=""+R}return typeof g=="string"&&g[0]===`
105
105
  `&&v.push(Ri),g!==null&&(se(g,"value"),v.push(j(Cn(""+g)))),null}function Ns(v,l,f,g){v.push(ur(f));for(var x in l)if(ae.call(l,x)){var R=l[x];if(R==null)continue;switch(x){case"children":case"dangerouslySetInnerHTML":throw new Error(f+" is a self-closing tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");default:dt(v,g,x,R);break}}return v.push(Bn),null}function is(v,l,f){v.push(ur("menuitem"));for(var g in l)if(ae.call(l,g)){var x=l[g];if(x==null)continue;switch(g){case"children":case"dangerouslySetInnerHTML":throw new Error("menuitems cannot have `children` nor `dangerouslySetInnerHTML`.");default:dt(v,f,g,x);break}}return v.push(Ft),null}function rn(v,l,f){v.push(ur("title"));var g=null;for(var x in l)if(ae.call(l,x)){var R=l[x];if(R==null)continue;switch(x){case"children":g=R;break;case"dangerouslySetInnerHTML":throw new Error("`dangerouslySetInnerHTML` does not make sense on <title>.");default:dt(v,f,x,R);break}}v.push(Ft);{var B=Array.isArray(g)&&g.length<2?g[0]||null:g;Array.isArray(g)&&g.length>1?i("A title element received an array with more than 1 element as children. In browsers title Elements can only have Text Nodes as children. If the children being rendered output more than a single text node in aggregate the browser will display markup and comments as text in the title and hydration will likely fail and fall back to client rendering"):B!=null&&B.$$typeof!=null?i("A title element received a React element for children. In the browser title Elements can only have Text Nodes as children. If the children being rendered output more than a single text node in aggregate the browser will display markup and comments as text in the title and hydration will likely fail and fall back to client rendering"):B!=null&&typeof B!="string"&&typeof B!="number"&&i("A title element received a value that was not a string or number for children. In the browser title Elements can only have Text Nodes as children. If the children being rendered output more than a single text node in aggregate the browser will display markup and comments as text in the title and hydration will likely fail and fall back to client rendering")}return g}function Gt(v,l,f,g){v.push(ur(f));var x=null,R=null;for(var B in l)if(ae.call(l,B)){var z=l[B];if(z==null)continue;switch(B){case"children":x=z;break;case"dangerouslySetInnerHTML":R=z;break;default:dt(v,g,B,z);break}}return v.push(Ft),zn(v,R,x),typeof x=="string"?(v.push(j(Cn(x))),null):x}function Kt(v,l,f,g){v.push(ur(f));var x=null,R=null;for(var B in l)if(ae.call(l,B)){var z=l[B];if(z==null)continue;switch(B){case"children":x=z;break;case"dangerouslySetInnerHTML":R=z;break;case"style":ge(v,g,z);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":break;default:je(B)&&typeof z!="function"&&typeof z!="symbol"&&v.push(_e,j(B),Ge,j(an(z)),gt);break}}return v.push(Ft),zn(v,R,x),x}var Ri=_(`
106
106
  `);function Jr(v,l,f,g){v.push(ur(f));var x=null,R=null;for(var B in l)if(ae.call(l,B)){var z=l[B];if(z==null)continue;switch(B){case"children":x=z;break;case"dangerouslySetInnerHTML":R=z;break;default:dt(v,g,B,z);break}}if(v.push(Ft),R!=null){if(x!=null)throw new Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");if(typeof R!="object"||!("__html"in R))throw new Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://reactjs.org/link/dangerously-set-inner-html for more information.");var ne=R.__html;ne!=null&&(typeof ne=="string"&&ne.length>0&&ne[0]===`
107
107
  `?v.push(Ri,j(ne)):(ue(ne),v.push(j(""+ne))))}return typeof x=="string"&&x[0]===`
@@ -132,8 +132,8 @@ See https://reactjs.org/link/invalid-hook-call for tips about how to debug and f
132
132
  Previous: %s
133
133
  Incoming: %s`,Ki,"["+v.join(", ")+"]","["+l.join(", ")+"]");for(var f=0;f<l.length&&f<v.length;f++)if(!qt(v[f],l[f]))return!1;return!0}function Bu(){if(So>0)throw new Error("Rendered more hooks than during the previous render");return{memoizedState:null,queue:null,next:null}}function xi(){return Zt===null?Ws===null?(hs=!1,Ws=Zt=Bu()):(hs=!0,Zt=Ws):Zt.next===null?(hs=!1,Zt=Zt.next=Bu()):(hs=!0,Zt=Zt.next),Zt}function $u(v,l){bi=l,Sa=v,$r=!1,ti=0}function Ys(v,l,f,g){for(;tl;)tl=!1,ti=0,So+=1,Zt=null,f=v(l,g);return Vu(),f}function Vr(){var v=ti!==0;return v}function Vu(){$r=!1,bi=null,Sa=null,tl=!1,Ws=null,So=0,wi=null,Zt=null}function Hu(v){return $r&&i("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo()."),xa(v)}function Uu(v){return Ki="useContext",zs(),xa(v)}function Gs(v,l){return typeof l=="function"?l(v):l}function ps(v){return Ki="useState",Wu(Gs,v)}function Wu(v,l,f){if(v!==Gs&&(Ki="useReducer"),bi=zs(),Zt=xi(),hs){var g=Zt.queue,x=g.dispatch;if(wi!==null){var R=wi.get(g);if(R!==void 0){wi.delete(g);var B=Zt.memoizedState,z=R;do{var ne=z.action;$r=!0,B=v(B,ne),$r=!1,z=z.next}while(z!==null);return Zt.memoizedState=B,[B,x]}}return[Zt.memoizedState,x]}else{$r=!0;var xe;v===Gs?xe=typeof l=="function"?l():l:xe=f!==void 0?f(l):l,$r=!1,Zt.memoizedState=xe;var Ne=Zt.queue={last:null,dispatch:null},ze=Ne.dispatch=Vc.bind(null,bi,Ne);return[Zt.memoizedState,ze]}}function $c(v,l){bi=zs(),Zt=xi();var f=l===void 0?null:l;if(Zt!==null){var g=Zt.memoizedState;if(g!==null&&f!==null){var x=g[1];if(Bc(f,x))return g[0]}}$r=!0;var R=v();return $r=!1,Zt.memoizedState=[R,f],R}function Bl(v){bi=zs(),Zt=xi();var l=Zt.memoizedState;if(l===null){var f={current:v};return Object.seal(f),Zt.memoizedState=f,f}else return l}function Gf(v,l){Ki="useLayoutEffect",i("useLayoutEffect does nothing on the server, because its effect cannot be encoded into the server renderer's output format. This will lead to a mismatch between the initial, non-hydrated UI and the intended UI. To avoid this, useLayoutEffect should only be used in components that render exclusively on the client. See https://reactjs.org/link/uselayouteffect-ssr for common fixes.")}function Vc(v,l,f){if(So>=ju)throw new Error("Too many re-renders. React limits the number of renders to prevent an infinite loop.");if(v===bi){tl=!0;var g={action:f,next:null};wi===null&&(wi=new Map);var x=wi.get(l);if(x===void 0)wi.set(l,g);else{for(var R=x;R.next!==null;)R=R.next;R.next=g}}}function fr(v,l){return $c(function(){return v},l)}function zu(v,l,f){return zs(),l(v._source)}function Hc(v,l,f){if(f===void 0)throw new Error("Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.");return f()}function Si(v){return zs(),v}function $l(){throw new Error("startTransition cannot be called during server rendering.")}function Ta(){return zs(),[!1,$l]}function gs(){var v=Sa,l=Ho(v.treeContext),f=qs;if(f===null)throw new Error("Invalid hook call. Hooks can only be called inside of the body of a function component.");var g=ti++;return jn(f,l,g)}function nl(){}var rr={readContext:Hu,useContext:Uu,useMemo:$c,useReducer:Wu,useRef:Bl,useState:ps,useInsertionEffect:nl,useLayoutEffect:Gf,useCallback:fr,useImperativeHandle:nl,useEffect:nl,useDebugValue:nl,useDeferredValue:Si,useTransition:Ta,useId:gs,useMutableSource:zu,useSyncExternalStore:Hc},qs=null;function Vl(v){qs=v}function Ca(v){try{var l="",f=v;do{switch(f.tag){case 0:l+=Xi(f.type,null,null);break;case 1:l+=ma(f.type,null,null);break;case 2:l+=Ic(f.type,null,null);break}f=f.parent}while(f);return l}catch(g){return`
134
134
  Error generating stack: `+g.message+`
135
- `+g.stack}}var Hl=n.ReactCurrentDispatcher,Ea=n.ReactDebugCurrentFrame,Ul=0,To=1,Wl=2,Xs=3,Uc=4,rl=0,ka=1,Da=2,Yu=12800;function Wc(v){return console.error(v),null}function Ks(){}function zl(v,l,f,g,x,R,B,z,ne){var xe=[],Ne=new Set,ze={destination:null,responseState:l,progressiveChunkSize:g===void 0?Yu:g,status:rl,fatalError:null,nextSegmentId:0,allPendingTasks:0,pendingRootTasks:0,completedRootSegment:null,abortableTasks:Ne,pingedTasks:xe,clientRenderedBoundaries:[],completedBoundaries:[],partialBoundaries:[],onError:x===void 0?Wc:x,onAllReady:R===void 0?Ks:R,onShellReady:B===void 0?Ks:B,onShellError:z===void 0?Ks:z,onFatalError:ne===void 0?Ks:ne},tt=il(ze,0,null,f,!1,!1);tt.parentFlushed=!0;var xt=Wo(ze,v,null,tt,Ne,Gn,Ml,Uf);return xe.push(xt),ze}function Uo(v,l){var f=v.pingedTasks;f.push(l),f.length===1&&a(function(){return Qu(v)})}function Yl(v,l){return{id:_i,rootSegmentID:-1,parentFlushed:!1,pendingTasks:0,forceClientRender:!1,completedSegments:[],byteSize:0,fallbackAbortableTasks:l,errorDigest:null}}function Wo(v,l,f,g,x,R,B,z){v.allPendingTasks++,f===null?v.pendingRootTasks++:f.pendingTasks++;var ne={node:l,ping:function(){return Uo(v,ne)},blockedBoundary:f,blockedSegment:g,abortSet:x,legacyContext:R,context:B,treeContext:z};return ne.componentStack=null,x.add(ne),ne}function il(v,l,f,g,x,R){return{status:Ul,id:-1,index:l,parentFlushed:!1,chunks:[],children:[],formatContext:g,boundary:f,lastPushedText:x,textEmbedded:R}}var Zi=null;function Ji(){return Zi===null||Zi.componentStack===null?"":Ca(Zi.componentStack)}function Co(v,l){v.componentStack={tag:0,parent:v.componentStack,type:l}}function ol(v,l){v.componentStack={tag:1,parent:v.componentStack,type:l}}function ms(v,l){v.componentStack={tag:2,parent:v.componentStack,type:l}}function Qi(v){v.componentStack===null?i("Unexpectedly popped too many stack frames. This is a bug in React."):v.componentStack=v.componentStack.parent}var Pa=null;function Gl(v,l){{var f;typeof l=="string"?f=l:l&&typeof l.message=="string"?f=l.message:f=String(l);var g=Pa||Ji();Pa=null,v.errorMessage=f,v.errorComponentStack=g}}function sl(v,l){var f=v.onError(l);if(f!=null&&typeof f!="string")throw new Error('onError returned something with a type other than "string". onError should return a string and may return null or undefined but must not return anything else. It received something of type "'+typeof f+'" instead');return f}function Oa(v,l){var f=v.onShellError;f(l);var g=v.onFatalError;g(l),v.destination!==null?(v.status=Da,U(v.destination,l)):(v.status=ka,v.fatalError=l)}function zc(v,l,f){Co(l,"Suspense");var g=l.blockedBoundary,x=l.blockedSegment,R=f.fallback,B=f.children,z=new Set,ne=Yl(v,z),xe=x.chunks.length,Ne=il(v,xe,ne,x.formatContext,!1,!1);x.children.push(Ne),x.lastPushedText=!1;var ze=il(v,0,null,x.formatContext,!1,!1);ze.parentFlushed=!0,l.blockedBoundary=ne,l.blockedSegment=ze;try{if(Ti(v,l,B),_n(ze.chunks,v.responseState,ze.lastPushedText,ze.textEmbedded),ze.status=To,bs(ne,ze),ne.pendingTasks===0){Qi(l);return}}catch(xt){ze.status=Uc,ne.forceClientRender=!0,ne.errorDigest=sl(v,xt),Gl(ne,xt)}finally{l.blockedBoundary=g,l.blockedSegment=x}var tt=Wo(v,R,g,Ne,z,l.legacyContext,l.context,l.treeContext);tt.componentStack=l.componentStack,v.pingedTasks.push(tt),Qi(l)}function Gu(v,l,f,g){Co(l,f);var x=l.blockedSegment,R=co(x.chunks,f,g,v.responseState,x.formatContext);x.lastPushedText=!1;var B=x.formatContext;x.formatContext=pi(B,f,g),Ti(v,l,R),x.formatContext=B,Mo(x.chunks,f),x.lastPushedText=!1,Qi(l)}function qu(v){return v.prototype&&v.prototype.isReactComponent}function Zs(v,l,f,g,x){var R={};$u(l,R);var B=f(g,x);return Ys(f,g,B,x)}function Xu(v,l,f,g,x){var R=f.render();f.props!==x&&(Xl||i("It looks like %s is reassigning its own `this.props` while rendering. This is not supported and can lead to confusing bugs.",pn(g)||"a component"),Xl=!0);{var B=g.childContextTypes;if(B!=null){var z=l.legacyContext,ne=Au(f,g,z,B);l.legacyContext=ne,dr(v,l,R),l.legacyContext=z;return}}dr(v,l,R)}function ql(v,l,f,g){ms(l,f);var x=ls(f,l.legacyContext),R=xo(f,g,x);el(R,f,g,x),Xu(v,l,R,f,g),Qi(l)}var Bt={},al={},Ku={},Js={},Xl=!1,Yc={},Gc=!1,ni=!1,qc=!1;function Kl(v,l,f,g){var x;if(x=ls(f,l.legacyContext),ol(l,f),f.prototype&&typeof f.prototype.render=="function"){var R=pn(f)||"Unknown";Bt[R]||(i("The <%s /> component appears to have a render method, but doesn't extend React.Component. This is likely to cause errors. Change %s to extend React.Component instead.",R,R),Bt[R]=!0)}var B=Zs(v,l,f,g,x),z=Vr();if(typeof B=="object"&&B!==null&&typeof B.render=="function"&&B.$$typeof===void 0){var ne=pn(f)||"Unknown";al[ne]||(i("The <%s /> component appears to be a function component that returns a class instance. Change %s to a class that extends React.Component instead. If you can't use a class try assigning the prototype on the function as a workaround. `%s.prototype = React.Component.prototype`. Don't use an arrow function since it cannot be called with `new` by React.",ne,ne,ne),al[ne]=!0)}if(typeof B=="object"&&B!==null&&typeof B.render=="function"&&B.$$typeof===void 0){{var xe=pn(f)||"Unknown";al[xe]||(i("The <%s /> component appears to be a function component that returns a class instance. Change %s to a class that extends React.Component instead. If you can't use a class try assigning the prototype on the function as a workaround. `%s.prototype = React.Component.prototype`. Don't use an arrow function since it cannot be called with `new` by React.",xe,xe,xe),al[xe]=!0)}el(B,f,g,x),Xu(v,l,B,f,g)}else if(Zu(f),z){var Ne=l.treeContext,ze=1,tt=0;l.treeContext=Fu(Ne,ze,tt);try{dr(v,l,B)}finally{l.treeContext=Ne}}else dr(v,l,B);Qi(l)}function Zu(v){{if(v&&v.childContextTypes&&i("%s(...): childContextTypes cannot be defined on a function component.",v.displayName||v.name||"Component"),v.defaultProps!==void 0){var l=pn(v)||"Unknown";Yc[l]||(i("%s: Support for defaultProps will be removed from function components in a future major release. Use JavaScript default parameters instead.",l),Yc[l]=!0)}if(typeof v.getDerivedStateFromProps=="function"){var f=pn(v)||"Unknown";Js[f]||(i("%s: Function components do not support getDerivedStateFromProps.",f),Js[f]=!0)}if(typeof v.contextType=="object"&&v.contextType!==null){var g=pn(v)||"Unknown";Ku[g]||(i("%s: Function components do not support contextType.",g),Ku[g]=!0)}}}function Ju(v,l){if(v&&v.defaultProps){var f=J({},l),g=v.defaultProps;for(var x in g)f[x]===void 0&&(f[x]=g[x]);return f}return l}function Xc(v,l,f,g,x){ol(l,f.render);var R=Zs(v,l,f.render,g,x),B=Vr();if(B){var z=l.treeContext,ne=1,xe=0;l.treeContext=Fu(z,ne,xe);try{dr(v,l,R)}finally{l.treeContext=z}}else dr(v,l,R);Qi(l)}function Hr(v,l,f,g,x){var R=f.type,B=Ju(R,g);Qs(v,l,R,B,x)}function vs(v,l,f,g){f._context===void 0?f!==f.Consumer&&(qc||(qc=!0,i("Rendering <Context> directly is not supported and will be removed in a future major release. Did you mean to render <Context.Consumer> instead?"))):f=f._context;var x=g.children;typeof x!="function"&&i("A context consumer was rendered with multiple children, or a child that isn't a function. A context consumer expects a single child that is a function. If you did pass a function, make sure there is no trailing or leading whitespace around it.");var R=xa(f),B=x(R);dr(v,l,B)}function Ur(v,l,f,g){var x=f._context,R=g.value,B=g.children,z;z=l.context,l.context=Iu(x,R),dr(v,l,B),l.context=Bf(x),z!==l.context&&i("Popping the context provider did not return back to the original snapshot. This is a bug in React.")}function Kc(v,l,f,g,x){Co(l,"Lazy");var R=f._payload,B=f._init,z=B(R),ne=Ju(z,g);Qs(v,l,z,ne,x),Qi(l)}function Qs(v,l,f,g,x){if(typeof f=="function")if(qu(f)){ql(v,l,f,g);return}else{Kl(v,l,f,g);return}if(typeof f=="string"){Gu(v,l,f,g);return}switch(f){case Yn:case Vt:case Z:case ce:case ke:{dr(v,l,g.children);return}case lt:{Co(l,"SuspenseList"),dr(v,l,g.children),Qi(l);return}case wt:throw new Error("ReactDOMServer does not yet support scope components.");case st:{zc(v,l,g);return}}if(typeof f=="object"&&f!==null)switch(f.$$typeof){case Fe:{Xc(v,l,f,g,x);return}case rt:{Hr(v,l,f,g,x);return}case le:{Ur(v,l,f,g);return}case Ie:{vs(v,l,f,g);return}case It:{Kc(v,l,f,g);return}}var R="";throw(f===void 0||typeof f=="object"&&f!==null&&Object.keys(f).length===0)&&(R+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports."),new Error("Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) "+("but got: "+(f==null?f:typeof f)+"."+R))}function Zc(v,l){typeof Symbol=="function"&&v[Symbol.toStringTag]==="Generator"&&(Gc||i("Using Generators as children is unsupported and will likely yield unexpected results because enumerating a generator mutates it. You may convert it to an array with `Array.from()` or the `[...spread]` operator before rendering. Keep in mind you might need to polyfill these features for older browsers."),Gc=!0),v.entries===l&&(ni||i("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),ni=!0)}function dr(v,l,f){try{return Jc(v,l,f)}catch(g){throw typeof g=="object"&&g!==null&&typeof g.then=="function"||(Pa=Pa!==null?Pa:Ji()),g}}function Jc(v,l,f){if(l.node=f,typeof f=="object"&&f!==null){switch(f.$$typeof){case de:{var g=f,x=g.type,R=g.props,B=g.ref;Qs(v,l,x,R,B);return}case Ce:throw new Error("Portals are not currently supported by the server renderer. Render them conditionally so that they only appear on the client render.");case It:{var z=f,ne=z._payload,xe=z._init,Ne;try{Ne=xe(ne)}catch(eo){throw typeof eo=="object"&&eo!==null&&typeof eo.then=="function"&&Co(l,"Lazy"),eo}dr(v,l,Ne);return}}if(er(f)){Zl(v,l,f);return}var ze=jr(f);if(ze){Zc(f,ze);var tt=ze.call(f);if(tt){var xt=tt.next();if(!xt.done){var en=[];do en.push(xt.value),xt=tt.next();while(!xt.done);Zl(v,l,en);return}return}}var ir=Object.prototype.toString.call(f);throw new Error("Objects are not valid as a React child (found: "+(ir==="[object Object]"?"object with keys {"+Object.keys(f).join(", ")+"}":ir)+"). If you meant to render a collection of children, use an array instead.")}if(typeof f=="string"){var Eo=l.blockedSegment;Eo.lastPushedText=On(l.blockedSegment.chunks,f,v.responseState,Eo.lastPushedText);return}if(typeof f=="number"){var ws=l.blockedSegment;ws.lastPushedText=On(l.blockedSegment.chunks,""+f,v.responseState,ws.lastPushedText);return}typeof f=="function"&&i("Functions are not valid as a React child. This may happen if you return a Component instead of <Component /> from render. Or maybe you meant to call this function rather than return it.")}function Zl(v,l,f){for(var g=f.length,x=0;x<g;x++){var R=l.treeContext;l.treeContext=Fu(R,g,x);try{Ti(v,l,f[x])}finally{l.treeContext=R}}}function Jl(v,l,f){var g=l.blockedSegment,x=g.chunks.length,R=il(v,x,null,g.formatContext,g.lastPushedText,!0);g.children.push(R),g.lastPushedText=!1;var B=Wo(v,l.node,l.blockedBoundary,R,l.abortSet,l.legacyContext,l.context,l.treeContext);l.componentStack!==null&&(B.componentStack=l.componentStack.parent);var z=B.ping;f.then(z,z)}function Ti(v,l,f){var g=l.blockedSegment.formatContext,x=l.legacyContext,R=l.context,B=null;B=l.componentStack;try{return dr(v,l,f)}catch(z){if(Vu(),typeof z=="object"&&z!==null&&typeof z.then=="function"){Jl(v,l,z),l.blockedSegment.formatContext=g,l.legacyContext=x,l.context=R,fs(R),l.componentStack=B;return}else throw l.blockedSegment.formatContext=g,l.legacyContext=x,l.context=R,fs(R),l.componentStack=B,z}}function Qc(v,l,f,g){var x=sl(v,g);if(l===null?Oa(v,g):(l.pendingTasks--,l.forceClientRender||(l.forceClientRender=!0,l.errorDigest=x,Gl(l,g),l.parentFlushed&&v.clientRenderedBoundaries.push(l))),v.allPendingTasks--,v.allPendingTasks===0){var R=v.onAllReady;R()}}function ys(v){var l=this,f=v.blockedBoundary,g=v.blockedSegment;g.status=Xs,ea(l,f,g)}function Ql(v,l,f){var g=v.blockedBoundary,x=v.blockedSegment;if(x.status=Xs,g===null)l.allPendingTasks--,l.status!==Da&&(l.status=Da,l.destination!==null&&A(l.destination));else{if(g.pendingTasks--,!g.forceClientRender){g.forceClientRender=!0;var R=f===void 0?new Error("The render was aborted by the server without a reason."):f;g.errorDigest=l.onError(R);{var B="The server did not finish this Suspense boundary: ";R&&typeof R.message=="string"?R=B+R.message:R=B+String(R);var z=Zi;Zi=v;try{Gl(g,R)}finally{Zi=z}}g.parentFlushed&&l.clientRenderedBoundaries.push(g)}if(g.fallbackAbortableTasks.forEach(function(xe){return Ql(xe,l,f)}),g.fallbackAbortableTasks.clear(),l.allPendingTasks--,l.allPendingTasks===0){var ne=l.onAllReady;ne()}}}function bs(v,l){if(l.chunks.length===0&&l.children.length===1&&l.children[0].boundary===null){var f=l.children[0];f.id=l.id,f.parentFlushed=!0,f.status===To&&bs(v,f)}else{var g=v.completedSegments;g.push(l)}}function ea(v,l,f){if(l===null){if(f.parentFlushed){if(v.completedRootSegment!==null)throw new Error("There can only be one root segment. This is a bug in React.");v.completedRootSegment=f}if(v.pendingRootTasks--,v.pendingRootTasks===0){v.onShellError=Ks;var g=v.onShellReady;g()}}else if(l.pendingTasks--,!l.forceClientRender){if(l.pendingTasks===0)f.parentFlushed&&f.status===To&&bs(l,f),l.parentFlushed&&v.completedBoundaries.push(l),l.fallbackAbortableTasks.forEach(ys,v),l.fallbackAbortableTasks.clear();else if(f.parentFlushed&&f.status===To){bs(l,f);var x=l.completedSegments;x.length===1&&l.parentFlushed&&v.partialBoundaries.push(l)}}if(v.allPendingTasks--,v.allPendingTasks===0){var R=v.onAllReady;R()}}function qf(v,l){var f=l.blockedSegment;if(f.status===Ul){fs(l.context);var g=null;g=Zi,Zi=l;try{dr(v,l,l.node),_n(f.chunks,v.responseState,f.lastPushedText,f.textEmbedded),l.abortSet.delete(l),f.status=To,ea(v,l.blockedBoundary,f)}catch(R){if(Vu(),typeof R=="object"&&R!==null&&typeof R.then=="function"){var x=l.ping;R.then(x,x)}else l.abortSet.delete(l),f.status=Uc,Qc(v,l.blockedBoundary,f,R)}finally{Zi=g}}}function Qu(v){if(v.status!==Da){var l=Lc(),f=Hl.current;Hl.current=rr;var g;g=Ea.getCurrentStack,Ea.getCurrentStack=Ji;var x=qs;Vl(v.responseState);try{var R=v.pingedTasks,B;for(B=0;B<R.length;B++){var z=R[B];qf(v,z)}R.splice(0,B),v.destination!==null&&Ii(v,v.destination)}catch(ne){sl(v,ne),Oa(v,ne)}finally{Vl(x),Hl.current=f,Ea.getCurrentStack=g,f===rr&&fs(l)}}}function ll(v,l,f){switch(f.parentFlushed=!0,f.status){case Ul:{var g=f.id=v.nextSegmentId++;return f.lastPushedText=!1,f.textEmbedded=!1,cr(l,v.responseState,g)}case To:{f.status=Wl;for(var x=!0,R=f.chunks,B=0,z=f.children,ne=0;ne<z.length;ne++){for(var xe=z[ne];B<xe.index;B++)m(l,R[B]);x=ul(v,l,xe)}for(;B<R.length-1;B++)m(l,R[B]);return B<R.length&&(x=T(l,R[B])),x}default:throw new Error("Aborted, errored or already flushed boundaries should not be flushed again. This is a bug in React.")}}function ul(v,l,f){var g=f.boundary;if(g===null)return ll(v,l,f);if(g.parentFlushed=!0,g.forceClientRender)return $e(l,v.responseState,g.errorDigest,g.errorMessage,g.errorComponentStack),ll(v,l,f),Et(l,v.responseState);if(g.pendingTasks>0){g.rootSegmentID=v.nextSegmentId++,g.completedSegments.length>0&&v.partialBoundaries.push(g);var x=g.id=nn(v.responseState);return Te(l,v.responseState,x),ll(v,l,f),Tt(l,v.responseState)}else{if(g.byteSize>v.progressiveChunkSize)return g.rootSegmentID=v.nextSegmentId++,v.completedBoundaries.push(g),Te(l,v.responseState,g.id),ll(v,l,f),Tt(l,v.responseState);Ae(l,v.responseState);var R=g.completedSegments;if(R.length!==1)throw new Error("A previously unvisited boundary must have exactly one root segment. This is a bug in React.");var B=R[0];return ul(v,l,B),it(l,v.responseState)}}function ec(v,l,f){return _l(l,v.responseState,f.id,f.errorDigest,f.errorMessage,f.errorComponentStack)}function eu(v,l,f){return St(l,v.responseState,f.formatContext,f.id),ul(v,l,f),vt(l,f.formatContext)}function tc(v,l,f){for(var g=f.completedSegments,x=0;x<g.length;x++){var R=g[x];Wr(v,l,f,R)}return g.length=0,mo(l,v.responseState,f.id,f.rootSegmentID)}function ef(v,l,f){for(var g=f.completedSegments,x=0;x<g.length;x++){var R=g[x];if(!Wr(v,l,f,R))return x++,g.splice(0,x),!1}return g.splice(0,x),!0}function Wr(v,l,f,g){if(g.status===Wl)return!0;var x=g.id;if(x===-1){var R=g.id=f.rootSegmentID;if(R===-1)throw new Error("A root segment ID must have been assigned by now. This is a bug in React.");return eu(v,l,g)}else return eu(v,l,g),za(l,v.responseState,x)}function Ii(v,l){w();try{var f=v.completedRootSegment;f!==null&&v.pendingRootTasks===0&&(ul(v,l,f),v.completedRootSegment=null,yi(l,v.responseState));var g=v.clientRenderedBoundaries,x;for(x=0;x<g.length;x++){var R=g[x];ec(v,l,R)}g.splice(0,x);var B=v.completedBoundaries;for(x=0;x<B.length;x++){var z=B[x];tc(v,l,z)}B.splice(0,x),E(l),w(l);var ne=v.partialBoundaries;for(x=0;x<ne.length;x++){var xe=ne[x];if(!ef(v,l,xe)){v.destination=null,x++,ne.splice(0,x);return}}ne.splice(0,x);var Ne=v.completedBoundaries;for(x=0;x<Ne.length;x++){var ze=Ne[x];tc(v,l,ze)}Ne.splice(0,x)}finally{E(l),v.allPendingTasks===0&&v.pingedTasks.length===0&&v.clientRenderedBoundaries.length===0&&v.completedBoundaries.length===0&&(v.abortableTasks.size!==0&&i("There was still abortable task at the root when we closed. This is a bug in React."),A(l))}}function tf(v){a(function(){return Qu(v)})}function Xf(v,l){if(v.status===ka){v.status=Da,U(l,v.fatalError);return}if(v.status!==Da&&v.destination===null){v.destination=l;try{Ii(v,l)}catch(f){sl(v,f),Oa(v,f)}}}function cl(v,l){try{var f=v.abortableTasks;f.forEach(function(g){return Ql(g,v,l)}),f.clear(),v.destination!==null&&Ii(v,v.destination)}catch(g){sl(v,g),Oa(v,g)}}function _a(v,l){return new Promise(function(f,g){var x,R,B=new Promise(function(tt,xt){R=tt,x=xt});function z(){var tt=new ReadableStream({type:"bytes",pull:function(xt){Xf(xe,xt)},cancel:function(xt){cl(xe)}},{highWaterMark:0});tt.allReady=B,f(tt)}function ne(tt){B.catch(function(){}),g(tt)}var xe=zl(v,Oi(l?l.identifierPrefix:void 0,l?l.nonce:void 0,l?l.bootstrapScriptContent:void 0,l?l.bootstrapScripts:void 0,l?l.bootstrapModules:void 0),hi(l?l.namespaceURI:void 0),l?l.progressiveChunkSize:void 0,l?l.onError:void 0,R,z,ne,x);if(l&&l.signal){var Ne=l.signal,ze=function(){cl(xe,Ne.reason),Ne.removeEventListener("abort",ze)};Ne.addEventListener("abort",ze)}tf(xe)})}Mh.renderToReadableStream=_a,Mh.version=e}()),Mh}var Ec,Cv;process.env.NODE_ENV==="production"?(Ec=I4(),Cv=M4()):(Ec=L4(),Cv=F4());Ec.version;var N4=Ec.renderToString;Ec.renderToStaticMarkup;Ec.renderToNodeStream;Ec.renderToStaticNodeStream;Cv.renderToReadableStream;var j4=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function jD(t,e){return t(e={exports:{}},e.exports),e.exports}var B4=jD(function(t){(function(e){var n=function(j,_,U){if(!d(_)||w(_)||m(_)||T(_)||c(_))return _;var G,re=0,q=0;if(p(_))for(G=[],q=_.length;re<q;re++)G.push(n(j,_[re],U));else for(var se in G={},_)Object.prototype.hasOwnProperty.call(_,se)&&(G[j(se,U)]=n(j,_[se],U));return G},r=function(j){return E(j)?j:(j=j.replace(/[\-_\s]+(.)?/g,function(_,U){return U?U.toUpperCase():""})).substr(0,1).toLowerCase()+j.substr(1)},i=function(j){var _=r(j);return _.substr(0,1).toUpperCase()+_.substr(1)},o=function(j,_){return function(U,G){var re=(G=G||{}).separator||"_",q=G.split||/(?=[A-Z])/;return U.split(q).join(re)}(j,_).toLowerCase()},a=Object.prototype.toString,c=function(j){return typeof j=="function"},d=function(j){return j===Object(j)},p=function(j){return a.call(j)=="[object Array]"},w=function(j){return a.call(j)=="[object Date]"},m=function(j){return a.call(j)=="[object RegExp]"},T=function(j){return a.call(j)=="[object Boolean]"},E=function(j){return(j-=0)==j},A=function(j,_){var U=_&&"process"in _?_.process:_;return typeof U!="function"?j:function(G,re){return U(G,j,re)}},I={camelize:r,decamelize:o,pascalize:i,depascalize:o,camelizeKeys:function(j,_){return n(A(r,_),j)},decamelizeKeys:function(j,_){return n(A(o,_),j,_)},pascalizeKeys:function(j,_){return n(A(i,_),j)},depascalizeKeys:function(){return this.decamelizeKeys.apply(this,arguments)}};t.exports?t.exports=I:e.humps=I})(j4)}).decamelize,$4=function(t){if(Array.isArray(t))return t},V4=function(t,e){if(typeof Symbol<"u"&&Symbol.iterator in Object(t)){var n=[],r=!0,i=!1,o=void 0;try{for(var a,c=t[Symbol.iterator]();!(r=(a=c.next()).done)&&(n.push(a.value),!e||n.length!==e);r=!0);}catch(d){i=!0,o=d}finally{try{r||c.return==null||c.return()}finally{if(i)throw o}}return n}},x1=function(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r},H4=function(t,e){if(t){if(typeof t=="string")return x1(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set"?Array.from(t):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?x1(t,e):void 0}},U4=function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
136
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)},W4=function(t,e){return $4(t)||V4(t,e)||H4(t,e)||U4()},BD=jD(function(t){function e(){return t.exports=e=Object.assign||function(n){for(var r=1;r<arguments.length;r++){var i=arguments[r];for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(n[o]=i[o])}return n},e.apply(this,arguments)}t.exports=e}),z4=function(t,e){if(t==null)return{};var n,r,i={},o=Object.keys(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||(i[n]=t[n]);return i},$D=function(t,e){if(t==null)return{};var n,r,i=z4(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i},Y4=X.createContext(null);function VD(t){var e=t.children,n=e===void 0?"":e,r=$D(t,["children"]);return typeof n!="string"&&(n=N4(n)),X.createElement("template",BD({},r,{dangerouslySetInnerHTML:{__html:n}}))}function HD(t){var e=t.root,n=t.children;return Lv.createPortal(n===void 0?null:n,e)}function G4(t){var e=X.forwardRef(function(n,r){var i,o,a=n.mode,c=a===void 0?"open":a,d=n.delegatesFocus,p=d!==void 0&&d,w=n.styleSheets,m=w===void 0?[]:w,T=n.ssr,E=T!==void 0&&T,A=n.children,I=$D(n,["mode","delegatesFocus","styleSheets","ssr","children"]),j=(o=X.useRef((i=r)&&i.current),X.useEffect(function(){i&&(i.current=o.current)},[i]),o),_=X.useState(null),U=W4(_,2),G=U[0],re=U[1],q="node_".concat(c).concat(p);return X.useLayoutEffect(function(){if(j.current)try{if(typeof r=="function"&&r(j.current),E){var se=j.current.shadowRoot;return void re(se)}var S=j.current.attachShadow({mode:c,delegatesFocus:p});m.length>0&&(S.adoptedStyleSheets=m),re(S)}catch(ue){(function(ae){var Ue=ae.error,nt=ae.styleSheets,et=ae.root;switch(Ue.name){case"NotSupportedError":nt.length>0&&(et.adoptedStyleSheets=nt);break;default:throw Ue}})({error:ue,styleSheets:m,root:G})}},[r,j,m]),X.createElement(X.Fragment,null,X.createElement(t.tag,BD({key:q,ref:j},I),(G||E)&&X.createElement(Y4.Provider,{value:G},E?X.createElement(VD,{shadowroot:c,shadowrootmode:c},t.render({root:G,ssr:E,children:A})):X.createElement(HD,{root:G},t.render({root:G,ssr:E,children:A})))))});return e.propTypes={mode:_s.oneOf(["open","closed"]),delegatesFocus:_s.bool,styleSheets:_s.arrayOf(_s.instanceOf(globalThis.CSSStyleSheet)),ssr:_s.bool,children:_s.node},e}VD.propTypes={children:_s.oneOfType([_s.string,_s.node])},HD.propTypes={root:_s.object.isRequired,children:_s.node};var mm=new Map;function q4(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"core",n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:function(r){return r.children};return new Proxy(t,{get:function(r,i){var o=B4(i,{separator:"-"}),a="".concat(e,"-").concat(o);return mm.has(a)||mm.set(a,G4({tag:o,render:n})),mm.get(a)}})}var UD=q4();const X4=".app,.treeRoot{height:100%}.draggingSource{opacity:.3}.placeholderContainer{position:relative}.dropTarget{background-color:#8d878711}",K4=".favorite-bar{z-index:900;transition:transform .3s ease,opacity .3s ease;border-bottom:1px solid #ddd}.favorite-bar--hidden{transform:translateY(-100%);opacity:0}.favorite-bar--visible{transform:translateY(0);opacity:1}";var S1;(function(t){t.DragStart="dragStart",t.DragMove="dragMove",t.DragEnd="dragEnd",t.DragCancel="dragCancel",t.DragOver="dragOver",t.RegisterDroppable="registerDroppable",t.SetDroppableDisabled="setDroppableDisabled",t.UnregisterDroppable="unregisterDroppable"})(S1||(S1={}));const Z4=Object.freeze({x:0,y:0});var Tf;(function(t){t[t.Forward=1]="Forward",t[t.Backward=-1]="Backward"})(Tf||(Tf={}));var T1;(function(t){t.Click="click",t.DragStart="dragstart",t.Keydown="keydown",t.ContextMenu="contextmenu",t.Resize="resize",t.SelectionChange="selectionchange",t.VisibilityChange="visibilitychange"})(T1||(T1={}));var Rs;(function(t){t.Space="Space",t.Down="ArrowDown",t.Right="ArrowRight",t.Left="ArrowLeft",t.Up="ArrowUp",t.Esc="Escape",t.Enter="Enter",t.Tab="Tab"})(Rs||(Rs={}));Rs.Space,Rs.Enter,Rs.Esc,Rs.Space,Rs.Enter,Rs.Tab;var C1;(function(t){t[t.RightClick=2]="RightClick"})(C1||(C1={}));var E1;(function(t){t[t.Pointer=0]="Pointer",t[t.DraggableRect=1]="DraggableRect"})(E1||(E1={}));var k1;(function(t){t[t.TreeOrder=0]="TreeOrder",t[t.ReversedTreeOrder=1]="ReversedTreeOrder"})(k1||(k1={}));Tf.Backward+"",Tf.Forward+"",Tf.Backward+"",Tf.Forward+"";var Ev;(function(t){t[t.Always=0]="Always",t[t.BeforeDragging=1]="BeforeDragging",t[t.WhileDragging=2]="WhileDragging"})(Ev||(Ev={}));var kv;(function(t){t.Optimized="optimized"})(kv||(kv={}));Ev.WhileDragging,kv.Optimized;({...Z4});var D1;(function(t){t[t.Uninitialized=0]="Uninitialized",t[t.Initializing=1]="Initializing",t[t.Initialized=2]="Initialized"})(D1||(D1={}));function J4(t,e,n){const r=t.slice();return r.splice(n<0?r.length+n:n,0,r.splice(e,1)[0]),r}Rs.Down,Rs.Right,Rs.Up,Rs.Left;function Q4(t){const e=new CustomEvent("updateFavoriteMenu",{detail:{menuItem:t}});window.dispatchEvent(e)}const vm="MENU_ITEM";function e6(t){const e=Sp.useLocation(),[n,r]=X.useState([]),[i,o]=X.useState([]),[a,c]=X.useState(!1);console.log("isSubmit",a);const d=X.useRef(null),[p,w]=X.useState(window.location.href);X.useEffect(()=>{w(window.location.href)},[e]);const m=q=>`${q}`;function T(q,se){for(const S of q){if(S.id===se)return S;if(S.children){const ue=T(S.children,se);if(ue)return ue}}return null}function E(q,se){const S=T(n,q);S?(S.isFavorite=se,Q4(S),tb(q,se)):console.error(`Item with id ${q} not found`)}const A=q=>{console.log("Favorite menus changed",q);const se=q.detail.favoriteMenus||[];r(se)},[I,j]=X.useState(!1);X.useEffect(()=>{const q=se=>{j(se.detail.isLoading)};return window.addEventListener("favoriteLoadingChange",q),()=>{window.removeEventListener("favoriteLoadingChange",q)}},[]),X.useEffect(()=>(window.addEventListener("favoriteMenusChange",A),()=>{window.removeEventListener("favoriteMenusChange",A)}),[]);const _=(q,se)=>{n[q];const S=J4(n,q,se);r(S),c(!0);const ue={menuItemIds:S.map(ae=>ae.id)};As.post("global-menu-config/api/v1/menu-items/user/order-favorites",ue,{baseURL:t.baseUrl}).then(()=>{window.dispatchEvent(new CustomEvent("favoriteOrderUpdated",{detail:{favoriteMenuId:S.map(ae=>ae.id)}}))}).catch(ae=>{console.error(ae),r(n)}).finally(()=>{c(!1)})};console.log("favoriteItems",n);const U=Object.entries(t.brandColors||{}).reduce((q,[se,S])=>(S&&(q[`--${se}`]=S),q),{}),G=({item:q,index:se})=>{const S=X.useRef(null),[{isDragging:ue},ae]=qE({type:vm,item:()=>({id:q.id,index:se}),collect:Me=>({isDragging:Me.isDragging()})}),[{isOver:Ue,isOverCurrent:nt},et]=up(()=>({accept:vm,collect:Me=>({isOver:Me.isOver(),isOverCurrent:Me.isOver({shallow:!0})}),drop:Me=>{Me.index!==se&&(Me.index<se?(_(Me.index,se-1),Me.index=se-1):(_(Me.index,se),Me.index=se))}}),[]);let De="hover-off";return(nt||Ue)&&(De="hover-on"),ae(et(S)),Re.jsx("div",{ref:S,style:{opacity:ue?.7:1,boxShadow:ue?"0 4px 8px rgba(0, 0, 0, 0.2)":"none",cursor:"move",display:"inline-block",marginRight:"8px",position:"relative",transition:"transform 0.3s ease-in-out",...U},className:`item ${De}`,children:Re.jsx(ND,{replacePath:t.replacePath,ssr:t.ssr,brandColors:t.brandColors,baseUrl:t.baseUrl,item:q,level:1,onSetFavoriteSuccess:E,isDrop:a})})},re=()=>{const q=X.useRef(null),[{isOver:se,canDrop:S},ue]=up(()=>({accept:vm,drop:ae=>{_(ae.index,n.length-1),ae.index=n.length-1},collect:ae=>({isOver:ae.isOver(),canDrop:ae.canDrop()})}),[n]);return ue(q),Re.jsx("div",{ref:q,style:{height:48,width:150,display:"flex",alignItems:"center",justifyContent:"center",borderLeft:se&&S?"2px solid var(--primary300)":"transparent",...U}})};return console.log("isLoading fav",I),Re.jsx(Re.Fragment,{children:I?Re.jsx(Re.Fragment,{}):n.length?Re.jsx("div",{className:m("favorite-menu"),children:Re.jsx(Uv,{ref:d,className:m("wrap-section favorite-menu__menu"),style:{marginTop:4,flex:1,overflow:"auto",height:"100%",overflowY:"hidden"},children:Re.jsx(HE,{backend:QT,children:Re.jsxs("div",{style:{display:"inline-flex"},children:[n.map((q,se)=>Re.jsx(G,{item:q,index:se},q.id)),Re.jsx(re,{})]})})})}):""})}function t6(t=32){const[e,n]=X.useState(!0),[r,i]=X.useState(0),o=()=>{const a=window.scrollY;a>r&&a>t?n(!1):a<r&&n(!0),i(a)};return X.useEffect(()=>(window.addEventListener("scroll",o),()=>window.removeEventListener("scroll",o)),[r]),{isFavoriteBarVisible:e}}function n6(t){const{isFavoriteBarVisible:e}=t6();return Re.jsxs(Re.Fragment,{children:[Re.jsx("style",{children:K4}),Re.jsx("div",{className:`favorite-bar ${e?"favorite-bar--visible":"favorite-bar--hidden"}`,children:Re.jsx(UD.div,{children:Re.jsx($v,{styles:[$T,A4,X4],children:Re.jsx(e6,{...t})})})})]})}function tb(t,e){const n=JSON.parse(localStorage.getItem("favoriteItems")||"[]");if(e)n.includes(t)||n.push(t);else{const r=n.indexOf(t);r>-1&&n.splice(r,1)}localStorage.setItem("favoriteItems",JSON.stringify(n))}function WD({...t}){var Se,je,Qe;const e=t.item,n=t.level||0,r=!!((Se=t.item.children)!=null&&Se.length),{isActive:i,isCollapsed:o}=t,a=`level-${n}`,c=o?"collapsed":"expanded",d=i(e.id)?"active":"",p=r?"parent":"child",w=t.params.isOpen?"isOpen":"isClose",m=t.isInternalApp?"isInternalApp":"",T=(Ye,Ke=a)=>`${Ye} ${Ke} ${c} ${d} ${p} ${w} ${m}`,[E,A]=X.useState(!1),[I,j]=X.useState(e.isFavorite||!1);X.useEffect(()=>{j(!!t.item.isFavorite)},[t.item.isFavorite]);const _=X.useRef(),U=X.useRef();U!=null&&U.current&&((je=U==null?void 0:U.current)==null?void 0:je.scrollWidth)>((Qe=U==null?void 0:U.current)==null?void 0:Qe.clientWidth);const G=window.location.origin,re=e.path&&e.path.includes("http")?new URL(e.path):{origin:"",pathname:""},q=window.location.pathname.split("/")[1],se=re.pathname.split("/")[1],S=t.item.redirectUrl||t.ssr||!G.includes("local")&&G!==re.origin||se!==q,ue=r?"div":!t.isInternalApp&&S?"a":Sp.Link,ae=e.redirectUrl||e.path||"#",Ue=n+1,nt=r&&o&&E,et=o||n===0?void 0:`${n+.25}rem`,De=()=>{A(!0)},Me=()=>{A(!1)},fe="/global-menu-config/api/v1/menu-items/user/set-favorite",me=e.serviceKey==="mn_poms";t.params.depth*20,t.params.depth,OH(e.id,t.params.isOpen,t.params.onToggle);const Be=me||o&&n===0?e.name==="POMs"?"Parking Operations Management":e.description||e.name:null,Ze=Object.entries(t.brandColors||{}).reduce((Ye,[Ke,qe])=>(qe&&(Ye[`--${Ke}`]=qe),Ye),{}),ve=G!==re.origin||t.item.redirectUrl?"_blank":"_self";return Re.jsxs("div",{ref:_,className:T("menu-item__wrapper tree-node"),style:{borderRadius:"8px",transition:"all 0.3s",...Ze},onMouseOver:De,onMouseOut:Me,onDragStart:Ye=>{o&&n>1&&Ye.preventDefault()},children:[Re.jsx(sa.Tooltip,{placement:"top",title:Be,disableInteractive:!0,children:Re.jsxs(ue,{target:ve,to:ae,href:ae,draggable:"true",className:T("menu-item__link"),style:{paddingLeft:et},onClick:Ye=>{ue==="a"&&ve==="_blank"||(!r&&e.path&&localStorage.setItem("latestClickMenuPath",(e.path||"").replace(window.location.origin,"")),!o&&t.toggleExpand(Ye))},children:[Re.jsx(r6,{cls:T,item:e}),Re.jsx("span",{className:T("menu-item__label"),ref:U,children:e.name}),Re.jsx(i6,{tooltipPosition:Be?"right":"top",menuLevel:n,hasChildren:r,isHovered:E,isFavorite:I,onClick:Ye=>{const Ke={menuConfigId:e.id,isFavorite:Ye},qe=t.baseUrl+fe;As.post(qe,Ke).then(ot=>{var ct;j(Ye),zv("Set favorite menu item successfully"),(ct=t.onSetFavoriteSuccess)==null||ct.call(t,t.item.id,Ye),tb(t.item.id,Ye)}).catch(ot=>{var ct,pt;Wd(((pt=(ct=ot.response)==null?void 0:ct.data)==null?void 0:pt.errorMessage)||"Have error when set favorite menu item")})}}),r&&Re.jsx("div",{className:T("menu-item__icon-arrow__wrapper"),children:Re.jsx(J5,{className:T(`menu-item__icon-arrow__icon ${t.params.isOpen?"open":"close"}`)})})]})}),nt&&Re.jsx(Q5,{parentRef:_,onlyChild:!o,renderChildren:({maxHeight:Ye})=>{var Ke;return Re.jsx(PD.div,{className:T(`menu-item__dropdown ${t.params.isOpen?"menu-item__dropdown--open":"menu-item__dropdown--close"}`,`level-${Ue}`),style:Qy({maxHeight:Ye,overflowY:"auto",paddingRight:3},Ye!=="auto"&&!!Ue),children:(Ke=e.children)==null?void 0:Ke.map(qe=>X.createElement(WD,{...t,key:qe.id,item:qe,level:Ue}))})}})]})}function r6({item:t,cls:e}){return Re.jsx("div",{className:e("menu-item__icon"),children:Re.jsx(FD,{item:t})})}function i6(t){const e={marginRight:t.hasChildren?10:0,fontSize:18,fill:ki.warning};return Re.jsxs(Re.Fragment,{children:[t.isHovered&&!t.isFavorite&&Re.jsx(sa.Tooltip,{placement:t.tooltipPosition||"top",title:"Add to favorites",disableInteractive:!0,children:Re.jsx("div",{children:Re.jsx(OD,{style:e,onClick:n=>{var r;n.preventDefault(),n.stopPropagation(),(r=t.onClick)==null||r.call(t,!0)}})})}),t.isFavorite&&Re.jsx(sa.Tooltip,{placement:t.tooltipPosition||"top",title:"Remove from favorites",disableInteractive:!0,children:Re.jsx("div",{children:Re.jsx(_D,{style:e,onClick:n=>{var r;n.preventDefault(),n.stopPropagation(),(r=t.onClick)==null||r.call(t,!1)}})})})]})}function o6(){return Re.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"22",height:"22",fill:"currentColor",stroke:"currentColor",strokeWidth:"0",viewBox:"0 0 24 24",children:Re.jsx("path",{d:"M21 18v2H3v-2h18zM6.596 3.903L8.01 5.318 4.828 8.5 8.01 11.68l-1.414 1.415L2 8.5l4.596-4.597zM21 11v2h-9v-2h9zm0-7v2h-9V4h9z"})})}function s6(){return Re.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"22",height:"22",fill:"currentColor",stroke:"currentColor",strokeWidth:"0",viewBox:"0 0 24 24",children:Re.jsx("path",{d:"M3 4h18v2H3V4zm0 7h18v2H3v-2zm0 7h18v2H3v-2z"})})}function a6(t){return Re.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"20",fill:"none",viewBox:"0 0 18 20",...t,children:Re.jsx("path",{fill:"#E01B00",fillRule:"evenodd",d:"M.179 2.875A2.375 2.375 0 012.554.5h3.393a1.018 1.018 0 010 2.036H2.554a.34.34 0 00-.34.339v14.25c0 .187.152.34.34.34h3.393a1.018 1.018 0 110 2.035H2.554a2.375 2.375 0 01-2.375-2.375V2.875zm14.167 6.107h-7.72a1.018 1.018 0 000 2.036h7.72l-2.673 2.673a1.018 1.018 0 101.44 1.44l4.41-4.411a1.018 1.018 0 000-1.44l-4.41-4.41a1.018 1.018 0 10-1.44 1.439l2.673 2.673z",clipRule:"evenodd"})})}const l6=".flex-col-center{display:flex;flex-direction:column;justify-content:center}.wrap-section{padding:0 8px;transition:all .3s}.wrap-section.collapsed{padding:0 4px}.side-bar{position:fixed;top:64px;left:0;height:calc(100vh - 64px);max-width:18rem;display:flex;flex-direction:column;border-right:1px solid #ddd;background-color:#fafafa;transition:all .3s}.side-bar.expanded{width:17rem}.side-bar.collapsed{width:64px}.side-bar__wrap-btn-logout,.side-bar__btn-logout{margin:5px 0}.side-bar__logout-btn__text{margin-left:12px;font-size:.875rem;opacity:1}.side-bar__logout-btn__text.collapsed{opacity:0;transition:ease-in-out .2s;transition-delay:.15s}.side-bar__wrapper-toggle-btn{display:flex;flex-direction:row;justify-content:flex-end;transition:all .3s;margin-right:-8px;margin-top:40px}.side-bar__wrapper-toggle-btn.collapsed{justify-content:center;width:100%}.side-bar__toggle-btn{margin-top:-6px;color:#85858a}.side-bar__logout-btn{width:100%;text-align:left;display:flex;flex-direction:row;align-items:center;padding:8px 16px 8px 18.6665px;min-height:48px;border-radius:.375rem;overflow:hidden;transition:all .3s ease-in-out;background-color:initial}.side-bar__logout-btn:hover{background-color:#919eab14}.side-bar__icon-logout{flex-shrink:0}.menu-item__wrapper{display:flex;flex-direction:column;position:relative;width:100%;color:#292929}.menu-item__wrapper.collapsed.active,.menu-item__wrapper.expanded.active.parent.isClose,.menu-item__wrapper.expanded.active.child{color:var(--primary400);background-color:var(--primary200)}.menu-item__link{display:flex;flex-direction:row;border-radius:.375rem;align-items:center;padding:.5rem;position:relative;height:48px;cursor:pointer}.menu-item__link.expanded.level-0{padding:.5rem 10px}.isHome{position:sticky;top:0;background-color:#fafafa;z-index:10}.menu-item__link:hover{background-color:#919eab14}.menu-item__link.collapsed.level-0{padding-left:calc(.5rem + 7.665px)!important}.menu-item__link.active{background-color:#009d4f1a;color:inherit}.menu-item__link.active.level-0,.menu-item__link.active.level-1,.menu-item__link.active.level-2,.menu-item__link.active.level-3,.menu-item__link.active.level-4,.menu-item__link.active.level-5,.menu-item__link.active.level-6,.menu-item__link.active.level-7,.menu-item__link.active.level-8,.menu-item__link.active.level-9{background-color:inherit;color:inherit}.menu-item__link.active.level-1:hover,.menu-item__link.active.level-2:hover,.menu-item__link.active.level-3:hover,.menu-item__link.active.level-4:hover,.menu-item__link.active.level-5:hover,.menu-item__link.active.level-6:hover,.menu-item__link.active.level-7:hover,.menu-item__link.active.level-8:hover,.menu-item__link.active.level-9:hover,.menu-item__link.active.level-0:hover{background-color:#919eab14}.menu-item__link.level-0{transition:padding .2s}.menu-item__link.menu-item__link.collapsed.level-0{padding:0}.menu-item__icon{width:1.5rem;height:1.5rem;flex-shrink:0;display:grid;place-items:center;color:#85858a}.menu-item__icon.collapsed.active,.menu-item__icon.expanded.active.parent.isClose,.menu-item__icon.expanded.active.child{color:inherit}.menu-item__icon.collapsed.level-0>*{margin:0 auto}.menu-item__label{font-size:.875rem;text-overflow:ellipsis;overflow:hidden;white-space:nowrap;width:100%;flex-shrink:1;margin-left:12px;padding-right:12px;opacity:1}.menu-item__label.level-0.collapsed{text-overflow:unset}.menu-item__label.active{color:inherit}.menu-item__label.collapsed{margin-left:8px;font-size:.75rem;line-height:1rem}.menu-item__label.collapsed.level-0{font-size:.875rem;opacity:0;transition-delay:.15s}.menu-item__label.level-0{margin-left:8px;font-weight:500;font-size:.951rem}.menu-item__label.level-0.isInternalApp{font-weight:unset!important}.menu-item__icon-arrow__wrapper{display:grid;place-items:center;position:absolute;top:50%;transform:translateY(-50%);right:0}.menu-item__icon-arrow__wrapper.expanded{right:4px}.menu-item__icon-arrow__icon{transition:transform .3s!important;transform:rotate(-90deg)!important}.menu-item__icon-arrow__icon.active{color:inherit}.menu-item__icon-arrow__icon.expanded.open{transform:rotate(0)!important}.menu-item__dropdown.collapsed{background-color:#fafafa;border:1px solid #ddd;box-shadow:#0000001a 0 10px 15px -3px,#0000000d 0 4px 6px -2px;border-radius:4px;width:210px;max-width:210px;padding:4px;z-index:1200}.menu-item__dropdown::-webkit-scrollbar{width:4px}.menu-item__dropdown::-webkit-scrollbar-thumb{background-color:#9b9b9b99;border-radius:2px}.menu-item__dropdown,.menu-item__dropdown>*{margin-top:4px}.menu-item__dropdown.expanded.menu-item__dropdown--close{margin-top:0;transition:margin-top .3s}.menu-item__dropdown:first-of-type{margin-top:0}.menu-item__dropdown>*:first-child{margin-top:0}.menu-item__dropdown.collapsed .menu-item__link{height:40px}.menu-item__dropdown.collapsed .menu-item__link.level-0{height:48px}.menu-item__dropdown.collapsed.level-0{width:auto;max-width:unset;box-shadow:none;border:none;padding:0;background-color:unset}.menu-item__dropdown.expanded{overflow:hidden}.icon-btn{display:inline-flex;align-items:center;justify-content:center;padding:8px;border-radius:50%;background-color:transparent;transition:background-color .3s ease;border:none}.icon-btn:hover{background-color:var(--btn-bg-hover)}.simplebar-scrollbar:before{background-color:#0000002d}.side-bar__menu.collapsed .simplebar-track.simplebar-vertical{display:none}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}",u6=t=>{const e=t.isCollapsed?0:t.depth*16;return Re.jsx("div",{style:{backgroundColor:t.color||"#93D500",height:"2px",position:"absolute",right:"0",top:"0",left:e}})},c6=".app,.treeRoot{height:100%}.draggingSource{opacity:.3}.placeholderContainer{position:relative}.dropTarget{background-color:#8d878711}",f6=t=>{const[e,n]=X.useState(()=>{const r=localStorage.getItem("openingMenuIds");return r&&r!=="[]"?JSON.parse(r):(t==null?void 0:t.initOpenIds)||[]});return X.useEffect(()=>{localStorage.setItem("openingMenuIds",JSON.stringify(e))},[e]),[e,n]};function zD(t){document.documentElement.style.setProperty("--global-menu-width",!t||t==="true"?"64px":"17rem")}const Gh=localStorage.getItem("isCollapsed");zD(Gh);function d6(t){const e=new CustomEvent("favoriteMenusChange",{detail:{favoriteMenus:t}});window.dispatchEvent(e)}function h6(t){const e=Sp.useLocation(),[n,r]=X.useState([]),i=n.map(De=>De.data),[o,a]=X.useState(!1),[c,d]=X.useState([]),[p,w]=X.useState(Gh===null?!0:Gh==="true"),[m,T]=X.useState(window.location.href),E=X.useRef(null);X.useEffect(()=>{var De;(De=t.handleCallback)==null||De.call(t,i)},[i,t.handleCallback]),X.useEffect(()=>{T(window.location.href)},[e]);const A=g6(i,m),[I,j]=f6({initOpenIds:t.initOpenIds}),_=()=>{var De,Me;if(w(!p),localStorage.setItem("isCollapsed",JSON.stringify(!p)),zD(p),p)I&&((De=E.current)==null||De.open(I));else{const fe=n.filter(me=>me.parent===0).map(me=>me.id);console.log("closeIds:",fe),(Me=E.current)==null||Me.close(fe)}},[U,G]=X.useState(!1),re=p?"collapsed":"expanded",q=De=>`${De} ${re}`,se=X.useRef(null);X.useLayoutEffect(()=>{(async()=>{var Me,fe;try{const me=t.menuPath||"/global-menu-config/api/v1/menu-items/user",Pe=t.baseUrl+me,{data:Be}=await As.get(Pe);let Ze=Be.map(Se=>({...Se,parentKey:Se.parentKey||0}));Ze=GD(Ze),t.replacePath&&(Ze=YD(Ze,t.replacePath));const ve=Ze.map(Se=>({id:Se.id,parent:Se.parentKey,text:Se.name,data:Se}));r(ve)}catch(me){console.error("Global menu",me),Wd(((fe=(Me=me.response)==null?void 0:Me.data)==null?void 0:fe.errorMessage)||me.message||"Have error when get menu items")}})()},[t.baseUrl,t.menuPath,t.replacePath]);const[S,ue]=X.useState(!1),ae=async()=>{ue(!0),window.dispatchEvent(new CustomEvent("favoriteLoadingChange",{detail:{isLoading:!0}}));try{const De=await fetch(`${t.baseUrl}/global-menu-config/api/v1/menu-items/user/get-favorites`);if(!De.ok)throw new Error("Failed to fetch favorite items");const Me=await De.json();d(Me)}catch(De){console.error("Error fetching favorite items:",De)}finally{ue(!1),window.dispatchEvent(new CustomEvent("favoriteLoadingChange",{detail:{isLoading:!1}}))}};X.useEffect(()=>{ae()},[t.baseUrl,e]),X.useEffect(()=>{const De=Me=>{d(Me.detail.favoriteMenuId)};return window.addEventListener("favoriteOrderUpdated",De),()=>{window.removeEventListener("favoriteOrderUpdated",De)}},[]),console.log("favoriteMenuId",c),X.useEffect(()=>{let De=[];c.forEach(me=>{const Pe=i.find(Be=>Be.id===me&&Be.isFavorite===!0);Pe&&(De=[...De,Pe])}),console.log(De);function Me(me){return i.every(Pe=>Pe.parentKey!==me.id)?me:{...me,children:i.filter(Pe=>Pe.parentKey===me.id).map(Pe=>Me(Pe))}}const fe=De.map(me=>Me(me));d6(fe)},[i]);function Ue(De){const Me=De.detail.menuItem;r(fe=>fe.map(me=>me.id!==Me.id?me:{...me,data:Me})),ae()}X.useEffect(()=>(window.addEventListener("updateFavoriteMenu",Ue),()=>{window.removeEventListener("updateFavoriteMenu",Ue)}),[]),X.useLayoutEffect(()=>{var me;const De=localStorage.getItem("scrollPos");De&&se.current&&setTimeout(()=>{const Pe=se.current.getScrollElement();Pe.scrollTop=parseInt(De)},0);const Me=()=>{if(se.current){const Pe=se.current.getScrollElement();localStorage.setItem("scrollPos",Pe.scrollTop.toString())}},fe=(me=se.current)==null?void 0:me.getScrollElement();return fe==null||fe.addEventListener("scroll",Me),()=>{fe==null||fe.removeEventListener("scroll",Me)}},[i]);function nt(De){a(!0);const Me=[...n];r(De);const fe=De.map((me,Pe)=>({menuItemId:me.id,order:Pe}));As.post("/global-menu-config/api/v1/menu-items/user",fe,{baseURL:t.baseUrl}).then(()=>{}).catch(me=>{console.error(me),r(Me)}).finally(()=>{a(!1)})}const et=X.useMemo(()=>Gh==="false"?I:[],[]);return console.log("nodesglobal menu",n),Re.jsxs("div",{className:q("side-bar"),children:[Re.jsx("div",{className:q("wrap-section side-bar__wrapper-toggle-btn"),children:Re.jsx("button",{className:"icon-btn side-bar__toggle-btn",onClick:_,children:p?Re.jsx(s6,{}):Re.jsx(o6,{})})}),Re.jsx(Uv,{ref:se,className:q("wrap-section side-bar__menu"),style:{marginTop:24,flex:1,overflow:"auto",height:"100%",overflowX:"hidden"},children:Re.jsx(HE,{backend:Q3,options:CH(),children:Re.jsx(VH,{ref:E,classes:{root:"treeRoot",draggingSource:"draggingSource",placeholder:"placeholderContainer",listItem:De=>{var Me;return((Me=De.data)==null?void 0:Me.name)==="Home"?"isHome":""}},tree:n,rootId:0,sort:!1,insertDroppableFirst:!1,enableAnimateExpand:!0,dropTargetOffset:10,onDrop:nt,render:(De,Me)=>{function fe(Ze){return n.every(ve=>ve.parent!==Ze.id)?Ze:{...Ze,children:n.filter(ve=>ve.parent===Ze.id).map(ve=>fe(ve.data))}}const me=fe(De.data),Pe=Ze=>A.some(ve=>ve.id===Ze);function Be(Ze,ve){r(Se=>Se.map(je=>je.id===Ze?{...je,data:{...je.data,isFavorite:ve}}:je)),ae()}return Re.jsx(WD,{isInternalApp:t.isInternalApp,isActive:Pe,isCollapsed:p,replacePath:t.replacePath,ssr:t.ssr,brandColors:t.brandColors,baseUrl:t.baseUrl,node:De,params:Me,nodes:n,item:me,expanded:()=>!1,toggleExpand:Ze=>{var ve;if(Ze.stopPropagation(),Me.isOpen)console.log("open toggleExpand"),Me.onToggle();else{console.log("close toggleExpand");const Se=n.filter(je=>je.parent===De.parent&&je.id!==De.id).map(je=>je.id);console.log(" closeIds:",Se),(ve=E.current)==null||ve.open(De.id),setTimeout(()=>{var je;(je=E.current)==null||je.close(Se)},0)}},level:Me.depth,onSetFavoriteSuccess:Be})},placeholderRender:(De,{depth:Me})=>{var fe;return Re.jsx(u6,{node:De,depth:Me,color:(fe=t.brandColors)==null?void 0:fe.primary300,isCollapsed:p})},canDrag:De=>{var Me;return!o&&((Me=De==null?void 0:De.data)==null?void 0:Me.name)!=="Home"},canDrop:(De,{dragSource:Me,dropTargetId:fe})=>(Me==null?void 0:Me.parent)===fe,onDragStart:De=>{console.log("onDragStart",De)},onChangeOpen:De=>{localStorage.getItem("isCollapsed")==="false"&&(console.log("onChangeOpen:",De),j(De))},initialOpen:et})})}),Re.jsxs("div",{className:q("wrap-section side-bar__wrap-btn-logout"),children:[Re.jsxs("button",{className:q("side-bar__logout-btn"),onClick:()=>G(!0),children:[Re.jsx(a6,{className:q("side-bar__icon-logout")}),Re.jsx("span",{className:q("side-bar__logout-btn__text"),children:"Logout"})]}),Re.jsx(q1,{isOpen:U,onClose:()=>G(!1),onConfirm:()=>t.logout?t.logout():iT(t.baseUrl)})]})]})}const P1={"/stella/page/SiteManagement/Company/List?tenantId=1":["/stella/page/SiteManagement/Company","/stella/page/SiteManagement/Region","/stella/page/SiteManagement/Location","/stella/page/SiteManagement/Zone","/stella/page/SiteManagement/Service","/stella/page/SiteManagement/Sign"],"/stella/page/SiteManagement/Portfolio/List":["/stella/page/SiteManagement/Portfolio"],"/stella/page/SiteManagement/CountryRegion/List":["/stella/page/SiteManagement/CountryRegion"],"/stella/page/SiteManagement/VehicleListController/List":["/stella/page/SiteManagement/VehicleListController"],"/stella/page/ContraventionManagement/CorrespondenceTemplate/List":["/stella/page/ContraventionManagement/CorrespondenceTemplate"],"/stella/page/ContraventionManagement/VerificationsAudit/List":["/stella/page/ContraventionManagement/VerificationsAudit"],"/stella/page/ContraventionManagement/PendingWardenVerification/List":["/stella/page/ContraventionManagement/PendingWardenVerification"],"/stella/page/ContraventionManagement/Appeal/Search":["/stella/page/ContraventionManagement/Appeal"],"/stella/page/ContraventionManagement/Contravention/Search":["/stella/page/ContraventionManagement/Contravention"],"/stella/page/ContraventionManagement/Tag/Search":["/stella/page/ContraventionManagement/Tag"],"/stella/page/ContraventionManagement/WorkflowMapping/List":["/stella/page/ContraventionManagement/WorkflowMapping"],"/stella/page/ContraventionManagement/WorkflowLetterTemplateMapping/List":["/stella/page/ContraventionManagement/WorkflowLetterTemplateMapping"],"/stella/page/ContraventionManagement/ScannedAppeal/Summary":["/stella/page/ContraventionManagement/ScannedAppeal"],"/stella/page/ContraventionManagement/PendingAppealWorkQueue/List":["/stella/page/ContraventionManagement/PendingAppeal"],"/stella/page/ContraventionManagement/NoDecisionAIAppeal/List":["/stella/page/ContraventionManagement/NoDecisionAIAppeal"],"/stella/page/ContraventionManagement/VerifyAIAppeal/List":["/stella/page/ContraventionManagement/VerifyAIAppeal"],"/anpr/page/LocationDisableReasons/Index":["/anpr/page/LocationDisableReasons"],"/anpr/page/Tags/Index":["/anpr/page/Tags"],"/anpr/page/VendorLocations/Index":["/anpr/page/VendorLocations"],"/anpr/page/Cameras/Index":["/anpr/page/Cameras"],"/anpr/page/Locations/Index":["/anpr/page/Locations"],"/anpr/page/Devices/Index":["/anpr/page/Devices","/anpr/page/Locations"],"/anpr/page/Technical/Overview":["/anpr/page/Technical"],"/anpr/page/Technical/Index":["/anpr/page/Technical"],"/anpr/page/Technical/Index?priority=P1":["/anpr/page/Technical"],"/anpr/page/Technical/Index?priority=P2":["/anpr/page/Technical"],"/anpr/page/Technical/Index?priority=P3":["/anpr/page/Technical"],"/anpr/page/Technical/Index?priority=P4":["/anpr/page/Technical"],"/anpr/page/CustomVerifications/Overview":["/anpr/page/CustomVerifications/Overview"],"/anpr/page/CustomVerifications/WipByLocation":["/anpr/page/CustomVerifications"],"/anpr/page/Issues/Create":["/anpr/page/Issues/Create"],"/anpr/page/Issues/ExportAsCsv":["/anpr/page/Issues/ExportAsCsv"],"/anpr/page/Issues/Overview":["/anpr/page/Issues/Overview"],"/anpr/page/Issues/Index?status=Closed":["/anpr/page/Issues"],"/anpr/page/Issues/Index":["/anpr/page/Issues"]};function p6(t,e){const r=t.replace(window.origin,""),i=new URL(r,window.location.origin),o=new URL(e,window.origin),a=localStorage.getItem("latestClickMenuPath");return r&&P1[r]&&P1[r].some(c=>e.includes(c))?a===r?5:4:i.pathname===o.pathname&&i.search===o.search?3:i.pathname===o.pathname?2:o.pathname.startsWith(i.pathname)?1:0}function g6(t,e){const n=t.map(a=>({item:a,priority:a.path?p6(a.path,e):0})).filter(a=>a.priority>0);console.log(" index.tsx ~ matchedItems:",n);const r=n.length>0?n.reduce((a,c)=>c.priority>a.priority?c:a).item:null,i=[];let o=r;for(;o;)i.unshift(o),o=t.find(a=>a.id===(o==null?void 0:o.parentKey))||null;return i}function YD(t,e){return t.map(n=>{var r;return(r=n.children)!=null&&r.length?(n.path="",n.children=YD(n.children,e)):n.path=e(n.path),n})}function GD(t){return t.map(n=>n.path&&!n.path.includes("http")&&n.path.includes("/")?{...n,path:window.location.origin+n.path}:(n.children&&(n.children=GD(n.children)),n))}function m6(t){return Re.jsx(UD.div,{children:Re.jsx($v,{styles:[$T,l6,c6],style:{position:"sticky",zIndex:1300},children:Re.jsx(h6,{...t})})})}const v6={"page-container":"_page-container_1pwo1_1","page-main-content":"_page-main-content_1pwo1_8","page-title":"_page-title_1pwo1_19","text-base":"_text-base_1pwo1_26","mt-4":"_mt-4_1pwo1_33"};var bp={exports:{}};/**
135
+ `+g.stack}}var Hl=n.ReactCurrentDispatcher,Ea=n.ReactDebugCurrentFrame,Ul=0,To=1,Wl=2,Xs=3,Uc=4,rl=0,ka=1,Da=2,Yu=12800;function Wc(v){return console.error(v),null}function Ks(){}function zl(v,l,f,g,x,R,B,z,ne){var xe=[],Ne=new Set,ze={destination:null,responseState:l,progressiveChunkSize:g===void 0?Yu:g,status:rl,fatalError:null,nextSegmentId:0,allPendingTasks:0,pendingRootTasks:0,completedRootSegment:null,abortableTasks:Ne,pingedTasks:xe,clientRenderedBoundaries:[],completedBoundaries:[],partialBoundaries:[],onError:x===void 0?Wc:x,onAllReady:R===void 0?Ks:R,onShellReady:B===void 0?Ks:B,onShellError:z===void 0?Ks:z,onFatalError:ne===void 0?Ks:ne},tt=il(ze,0,null,f,!1,!1);tt.parentFlushed=!0;var xt=Wo(ze,v,null,tt,Ne,Gn,Ml,Uf);return xe.push(xt),ze}function Uo(v,l){var f=v.pingedTasks;f.push(l),f.length===1&&a(function(){return Qu(v)})}function Yl(v,l){return{id:_i,rootSegmentID:-1,parentFlushed:!1,pendingTasks:0,forceClientRender:!1,completedSegments:[],byteSize:0,fallbackAbortableTasks:l,errorDigest:null}}function Wo(v,l,f,g,x,R,B,z){v.allPendingTasks++,f===null?v.pendingRootTasks++:f.pendingTasks++;var ne={node:l,ping:function(){return Uo(v,ne)},blockedBoundary:f,blockedSegment:g,abortSet:x,legacyContext:R,context:B,treeContext:z};return ne.componentStack=null,x.add(ne),ne}function il(v,l,f,g,x,R){return{status:Ul,id:-1,index:l,parentFlushed:!1,chunks:[],children:[],formatContext:g,boundary:f,lastPushedText:x,textEmbedded:R}}var Zi=null;function Ji(){return Zi===null||Zi.componentStack===null?"":Ca(Zi.componentStack)}function Co(v,l){v.componentStack={tag:0,parent:v.componentStack,type:l}}function ol(v,l){v.componentStack={tag:1,parent:v.componentStack,type:l}}function ms(v,l){v.componentStack={tag:2,parent:v.componentStack,type:l}}function Qi(v){v.componentStack===null?i("Unexpectedly popped too many stack frames. This is a bug in React."):v.componentStack=v.componentStack.parent}var Pa=null;function Gl(v,l){{var f;typeof l=="string"?f=l:l&&typeof l.message=="string"?f=l.message:f=String(l);var g=Pa||Ji();Pa=null,v.errorMessage=f,v.errorComponentStack=g}}function sl(v,l){var f=v.onError(l);if(f!=null&&typeof f!="string")throw new Error('onError returned something with a type other than "string". onError should return a string and may return null or undefined but must not return anything else. It received something of type "'+typeof f+'" instead');return f}function Oa(v,l){var f=v.onShellError;f(l);var g=v.onFatalError;g(l),v.destination!==null?(v.status=Da,U(v.destination,l)):(v.status=ka,v.fatalError=l)}function zc(v,l,f){Co(l,"Suspense");var g=l.blockedBoundary,x=l.blockedSegment,R=f.fallback,B=f.children,z=new Set,ne=Yl(v,z),xe=x.chunks.length,Ne=il(v,xe,ne,x.formatContext,!1,!1);x.children.push(Ne),x.lastPushedText=!1;var ze=il(v,0,null,x.formatContext,!1,!1);ze.parentFlushed=!0,l.blockedBoundary=ne,l.blockedSegment=ze;try{if(Ti(v,l,B),_n(ze.chunks,v.responseState,ze.lastPushedText,ze.textEmbedded),ze.status=To,bs(ne,ze),ne.pendingTasks===0){Qi(l);return}}catch(xt){ze.status=Uc,ne.forceClientRender=!0,ne.errorDigest=sl(v,xt),Gl(ne,xt)}finally{l.blockedBoundary=g,l.blockedSegment=x}var tt=Wo(v,R,g,Ne,z,l.legacyContext,l.context,l.treeContext);tt.componentStack=l.componentStack,v.pingedTasks.push(tt),Qi(l)}function Gu(v,l,f,g){Co(l,f);var x=l.blockedSegment,R=co(x.chunks,f,g,v.responseState,x.formatContext);x.lastPushedText=!1;var B=x.formatContext;x.formatContext=pi(B,f,g),Ti(v,l,R),x.formatContext=B,Mo(x.chunks,f),x.lastPushedText=!1,Qi(l)}function qu(v){return v.prototype&&v.prototype.isReactComponent}function Zs(v,l,f,g,x){var R={};$u(l,R);var B=f(g,x);return Ys(f,g,B,x)}function Xu(v,l,f,g,x){var R=f.render();f.props!==x&&(Xl||i("It looks like %s is reassigning its own `this.props` while rendering. This is not supported and can lead to confusing bugs.",pn(g)||"a component"),Xl=!0);{var B=g.childContextTypes;if(B!=null){var z=l.legacyContext,ne=Au(f,g,z,B);l.legacyContext=ne,dr(v,l,R),l.legacyContext=z;return}}dr(v,l,R)}function ql(v,l,f,g){ms(l,f);var x=ls(f,l.legacyContext),R=xo(f,g,x);el(R,f,g,x),Xu(v,l,R,f,g),Qi(l)}var Bt={},al={},Ku={},Js={},Xl=!1,Yc={},Gc=!1,ni=!1,qc=!1;function Kl(v,l,f,g){var x;if(x=ls(f,l.legacyContext),ol(l,f),f.prototype&&typeof f.prototype.render=="function"){var R=pn(f)||"Unknown";Bt[R]||(i("The <%s /> component appears to have a render method, but doesn't extend React.Component. This is likely to cause errors. Change %s to extend React.Component instead.",R,R),Bt[R]=!0)}var B=Zs(v,l,f,g,x),z=Vr();if(typeof B=="object"&&B!==null&&typeof B.render=="function"&&B.$$typeof===void 0){var ne=pn(f)||"Unknown";al[ne]||(i("The <%s /> component appears to be a function component that returns a class instance. Change %s to a class that extends React.Component instead. If you can't use a class try assigning the prototype on the function as a workaround. `%s.prototype = React.Component.prototype`. Don't use an arrow function since it cannot be called with `new` by React.",ne,ne,ne),al[ne]=!0)}if(typeof B=="object"&&B!==null&&typeof B.render=="function"&&B.$$typeof===void 0){{var xe=pn(f)||"Unknown";al[xe]||(i("The <%s /> component appears to be a function component that returns a class instance. Change %s to a class that extends React.Component instead. If you can't use a class try assigning the prototype on the function as a workaround. `%s.prototype = React.Component.prototype`. Don't use an arrow function since it cannot be called with `new` by React.",xe,xe,xe),al[xe]=!0)}el(B,f,g,x),Xu(v,l,B,f,g)}else if(Zu(f),z){var Ne=l.treeContext,ze=1,tt=0;l.treeContext=Fu(Ne,ze,tt);try{dr(v,l,B)}finally{l.treeContext=Ne}}else dr(v,l,B);Qi(l)}function Zu(v){{if(v&&v.childContextTypes&&i("%s(...): childContextTypes cannot be defined on a function component.",v.displayName||v.name||"Component"),v.defaultProps!==void 0){var l=pn(v)||"Unknown";Yc[l]||(i("%s: Support for defaultProps will be removed from function components in a future major release. Use JavaScript default parameters instead.",l),Yc[l]=!0)}if(typeof v.getDerivedStateFromProps=="function"){var f=pn(v)||"Unknown";Js[f]||(i("%s: Function components do not support getDerivedStateFromProps.",f),Js[f]=!0)}if(typeof v.contextType=="object"&&v.contextType!==null){var g=pn(v)||"Unknown";Ku[g]||(i("%s: Function components do not support contextType.",g),Ku[g]=!0)}}}function Ju(v,l){if(v&&v.defaultProps){var f=J({},l),g=v.defaultProps;for(var x in g)f[x]===void 0&&(f[x]=g[x]);return f}return l}function Xc(v,l,f,g,x){ol(l,f.render);var R=Zs(v,l,f.render,g,x),B=Vr();if(B){var z=l.treeContext,ne=1,xe=0;l.treeContext=Fu(z,ne,xe);try{dr(v,l,R)}finally{l.treeContext=z}}else dr(v,l,R);Qi(l)}function Hr(v,l,f,g,x){var R=f.type,B=Ju(R,g);Qs(v,l,R,B,x)}function vs(v,l,f,g){f._context===void 0?f!==f.Consumer&&(qc||(qc=!0,i("Rendering <Context> directly is not supported and will be removed in a future major release. Did you mean to render <Context.Consumer> instead?"))):f=f._context;var x=g.children;typeof x!="function"&&i("A context consumer was rendered with multiple children, or a child that isn't a function. A context consumer expects a single child that is a function. If you did pass a function, make sure there is no trailing or leading whitespace around it.");var R=xa(f),B=x(R);dr(v,l,B)}function Ur(v,l,f,g){var x=f._context,R=g.value,B=g.children,z;z=l.context,l.context=Iu(x,R),dr(v,l,B),l.context=Bf(x),z!==l.context&&i("Popping the context provider did not return back to the original snapshot. This is a bug in React.")}function Kc(v,l,f,g,x){Co(l,"Lazy");var R=f._payload,B=f._init,z=B(R),ne=Ju(z,g);Qs(v,l,z,ne,x),Qi(l)}function Qs(v,l,f,g,x){if(typeof f=="function")if(qu(f)){ql(v,l,f,g);return}else{Kl(v,l,f,g);return}if(typeof f=="string"){Gu(v,l,f,g);return}switch(f){case Yn:case Vt:case Z:case ce:case ke:{dr(v,l,g.children);return}case lt:{Co(l,"SuspenseList"),dr(v,l,g.children),Qi(l);return}case wt:throw new Error("ReactDOMServer does not yet support scope components.");case st:{zc(v,l,g);return}}if(typeof f=="object"&&f!==null)switch(f.$$typeof){case Fe:{Xc(v,l,f,g,x);return}case rt:{Hr(v,l,f,g,x);return}case le:{Ur(v,l,f,g);return}case Ie:{vs(v,l,f,g);return}case It:{Kc(v,l,f,g);return}}var R="";throw(f===void 0||typeof f=="object"&&f!==null&&Object.keys(f).length===0)&&(R+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports."),new Error("Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) "+("but got: "+(f==null?f:typeof f)+"."+R))}function Zc(v,l){typeof Symbol=="function"&&v[Symbol.toStringTag]==="Generator"&&(Gc||i("Using Generators as children is unsupported and will likely yield unexpected results because enumerating a generator mutates it. You may convert it to an array with `Array.from()` or the `[...spread]` operator before rendering. Keep in mind you might need to polyfill these features for older browsers."),Gc=!0),v.entries===l&&(ni||i("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),ni=!0)}function dr(v,l,f){try{return Jc(v,l,f)}catch(g){throw typeof g=="object"&&g!==null&&typeof g.then=="function"||(Pa=Pa!==null?Pa:Ji()),g}}function Jc(v,l,f){if(l.node=f,typeof f=="object"&&f!==null){switch(f.$$typeof){case de:{var g=f,x=g.type,R=g.props,B=g.ref;Qs(v,l,x,R,B);return}case Ce:throw new Error("Portals are not currently supported by the server renderer. Render them conditionally so that they only appear on the client render.");case It:{var z=f,ne=z._payload,xe=z._init,Ne;try{Ne=xe(ne)}catch(eo){throw typeof eo=="object"&&eo!==null&&typeof eo.then=="function"&&Co(l,"Lazy"),eo}dr(v,l,Ne);return}}if(er(f)){Zl(v,l,f);return}var ze=jr(f);if(ze){Zc(f,ze);var tt=ze.call(f);if(tt){var xt=tt.next();if(!xt.done){var en=[];do en.push(xt.value),xt=tt.next();while(!xt.done);Zl(v,l,en);return}return}}var ir=Object.prototype.toString.call(f);throw new Error("Objects are not valid as a React child (found: "+(ir==="[object Object]"?"object with keys {"+Object.keys(f).join(", ")+"}":ir)+"). If you meant to render a collection of children, use an array instead.")}if(typeof f=="string"){var Eo=l.blockedSegment;Eo.lastPushedText=On(l.blockedSegment.chunks,f,v.responseState,Eo.lastPushedText);return}if(typeof f=="number"){var ws=l.blockedSegment;ws.lastPushedText=On(l.blockedSegment.chunks,""+f,v.responseState,ws.lastPushedText);return}typeof f=="function"&&i("Functions are not valid as a React child. This may happen if you return a Component instead of <Component /> from render. Or maybe you meant to call this function rather than return it.")}function Zl(v,l,f){for(var g=f.length,x=0;x<g;x++){var R=l.treeContext;l.treeContext=Fu(R,g,x);try{Ti(v,l,f[x])}finally{l.treeContext=R}}}function Jl(v,l,f){var g=l.blockedSegment,x=g.chunks.length,R=il(v,x,null,g.formatContext,g.lastPushedText,!0);g.children.push(R),g.lastPushedText=!1;var B=Wo(v,l.node,l.blockedBoundary,R,l.abortSet,l.legacyContext,l.context,l.treeContext);l.componentStack!==null&&(B.componentStack=l.componentStack.parent);var z=B.ping;f.then(z,z)}function Ti(v,l,f){var g=l.blockedSegment.formatContext,x=l.legacyContext,R=l.context,B=null;B=l.componentStack;try{return dr(v,l,f)}catch(z){if(Vu(),typeof z=="object"&&z!==null&&typeof z.then=="function"){Jl(v,l,z),l.blockedSegment.formatContext=g,l.legacyContext=x,l.context=R,fs(R),l.componentStack=B;return}else throw l.blockedSegment.formatContext=g,l.legacyContext=x,l.context=R,fs(R),l.componentStack=B,z}}function Qc(v,l,f,g){var x=sl(v,g);if(l===null?Oa(v,g):(l.pendingTasks--,l.forceClientRender||(l.forceClientRender=!0,l.errorDigest=x,Gl(l,g),l.parentFlushed&&v.clientRenderedBoundaries.push(l))),v.allPendingTasks--,v.allPendingTasks===0){var R=v.onAllReady;R()}}function ys(v){var l=this,f=v.blockedBoundary,g=v.blockedSegment;g.status=Xs,ea(l,f,g)}function Ql(v,l,f){var g=v.blockedBoundary,x=v.blockedSegment;if(x.status=Xs,g===null)l.allPendingTasks--,l.status!==Da&&(l.status=Da,l.destination!==null&&A(l.destination));else{if(g.pendingTasks--,!g.forceClientRender){g.forceClientRender=!0;var R=f===void 0?new Error("The render was aborted by the server without a reason."):f;g.errorDigest=l.onError(R);{var B="The server did not finish this Suspense boundary: ";R&&typeof R.message=="string"?R=B+R.message:R=B+String(R);var z=Zi;Zi=v;try{Gl(g,R)}finally{Zi=z}}g.parentFlushed&&l.clientRenderedBoundaries.push(g)}if(g.fallbackAbortableTasks.forEach(function(xe){return Ql(xe,l,f)}),g.fallbackAbortableTasks.clear(),l.allPendingTasks--,l.allPendingTasks===0){var ne=l.onAllReady;ne()}}}function bs(v,l){if(l.chunks.length===0&&l.children.length===1&&l.children[0].boundary===null){var f=l.children[0];f.id=l.id,f.parentFlushed=!0,f.status===To&&bs(v,f)}else{var g=v.completedSegments;g.push(l)}}function ea(v,l,f){if(l===null){if(f.parentFlushed){if(v.completedRootSegment!==null)throw new Error("There can only be one root segment. This is a bug in React.");v.completedRootSegment=f}if(v.pendingRootTasks--,v.pendingRootTasks===0){v.onShellError=Ks;var g=v.onShellReady;g()}}else if(l.pendingTasks--,!l.forceClientRender){if(l.pendingTasks===0)f.parentFlushed&&f.status===To&&bs(l,f),l.parentFlushed&&v.completedBoundaries.push(l),l.fallbackAbortableTasks.forEach(ys,v),l.fallbackAbortableTasks.clear();else if(f.parentFlushed&&f.status===To){bs(l,f);var x=l.completedSegments;x.length===1&&l.parentFlushed&&v.partialBoundaries.push(l)}}if(v.allPendingTasks--,v.allPendingTasks===0){var R=v.onAllReady;R()}}function qf(v,l){var f=l.blockedSegment;if(f.status===Ul){fs(l.context);var g=null;g=Zi,Zi=l;try{dr(v,l,l.node),_n(f.chunks,v.responseState,f.lastPushedText,f.textEmbedded),l.abortSet.delete(l),f.status=To,ea(v,l.blockedBoundary,f)}catch(R){if(Vu(),typeof R=="object"&&R!==null&&typeof R.then=="function"){var x=l.ping;R.then(x,x)}else l.abortSet.delete(l),f.status=Uc,Qc(v,l.blockedBoundary,f,R)}finally{Zi=g}}}function Qu(v){if(v.status!==Da){var l=Lc(),f=Hl.current;Hl.current=rr;var g;g=Ea.getCurrentStack,Ea.getCurrentStack=Ji;var x=qs;Vl(v.responseState);try{var R=v.pingedTasks,B;for(B=0;B<R.length;B++){var z=R[B];qf(v,z)}R.splice(0,B),v.destination!==null&&Ii(v,v.destination)}catch(ne){sl(v,ne),Oa(v,ne)}finally{Vl(x),Hl.current=f,Ea.getCurrentStack=g,f===rr&&fs(l)}}}function ll(v,l,f){switch(f.parentFlushed=!0,f.status){case Ul:{var g=f.id=v.nextSegmentId++;return f.lastPushedText=!1,f.textEmbedded=!1,cr(l,v.responseState,g)}case To:{f.status=Wl;for(var x=!0,R=f.chunks,B=0,z=f.children,ne=0;ne<z.length;ne++){for(var xe=z[ne];B<xe.index;B++)m(l,R[B]);x=ul(v,l,xe)}for(;B<R.length-1;B++)m(l,R[B]);return B<R.length&&(x=T(l,R[B])),x}default:throw new Error("Aborted, errored or already flushed boundaries should not be flushed again. This is a bug in React.")}}function ul(v,l,f){var g=f.boundary;if(g===null)return ll(v,l,f);if(g.parentFlushed=!0,g.forceClientRender)return $e(l,v.responseState,g.errorDigest,g.errorMessage,g.errorComponentStack),ll(v,l,f),Et(l,v.responseState);if(g.pendingTasks>0){g.rootSegmentID=v.nextSegmentId++,g.completedSegments.length>0&&v.partialBoundaries.push(g);var x=g.id=nn(v.responseState);return Te(l,v.responseState,x),ll(v,l,f),Tt(l,v.responseState)}else{if(g.byteSize>v.progressiveChunkSize)return g.rootSegmentID=v.nextSegmentId++,v.completedBoundaries.push(g),Te(l,v.responseState,g.id),ll(v,l,f),Tt(l,v.responseState);Ae(l,v.responseState);var R=g.completedSegments;if(R.length!==1)throw new Error("A previously unvisited boundary must have exactly one root segment. This is a bug in React.");var B=R[0];return ul(v,l,B),it(l,v.responseState)}}function ec(v,l,f){return _l(l,v.responseState,f.id,f.errorDigest,f.errorMessage,f.errorComponentStack)}function eu(v,l,f){return St(l,v.responseState,f.formatContext,f.id),ul(v,l,f),vt(l,f.formatContext)}function tc(v,l,f){for(var g=f.completedSegments,x=0;x<g.length;x++){var R=g[x];Wr(v,l,f,R)}return g.length=0,mo(l,v.responseState,f.id,f.rootSegmentID)}function ef(v,l,f){for(var g=f.completedSegments,x=0;x<g.length;x++){var R=g[x];if(!Wr(v,l,f,R))return x++,g.splice(0,x),!1}return g.splice(0,x),!0}function Wr(v,l,f,g){if(g.status===Wl)return!0;var x=g.id;if(x===-1){var R=g.id=f.rootSegmentID;if(R===-1)throw new Error("A root segment ID must have been assigned by now. This is a bug in React.");return eu(v,l,g)}else return eu(v,l,g),za(l,v.responseState,x)}function Ii(v,l){w();try{var f=v.completedRootSegment;f!==null&&v.pendingRootTasks===0&&(ul(v,l,f),v.completedRootSegment=null,yi(l,v.responseState));var g=v.clientRenderedBoundaries,x;for(x=0;x<g.length;x++){var R=g[x];ec(v,l,R)}g.splice(0,x);var B=v.completedBoundaries;for(x=0;x<B.length;x++){var z=B[x];tc(v,l,z)}B.splice(0,x),E(l),w(l);var ne=v.partialBoundaries;for(x=0;x<ne.length;x++){var xe=ne[x];if(!ef(v,l,xe)){v.destination=null,x++,ne.splice(0,x);return}}ne.splice(0,x);var Ne=v.completedBoundaries;for(x=0;x<Ne.length;x++){var ze=Ne[x];tc(v,l,ze)}Ne.splice(0,x)}finally{E(l),v.allPendingTasks===0&&v.pingedTasks.length===0&&v.clientRenderedBoundaries.length===0&&v.completedBoundaries.length===0&&(v.abortableTasks.size!==0&&i("There was still abortable task at the root when we closed. This is a bug in React."),A(l))}}function tf(v){a(function(){return Qu(v)})}function Xf(v,l){if(v.status===ka){v.status=Da,U(l,v.fatalError);return}if(v.status!==Da&&v.destination===null){v.destination=l;try{Ii(v,l)}catch(f){sl(v,f),Oa(v,f)}}}function cl(v,l){try{var f=v.abortableTasks;f.forEach(function(g){return Ql(g,v,l)}),f.clear(),v.destination!==null&&Ii(v,v.destination)}catch(g){sl(v,g),Oa(v,g)}}function _a(v,l){return new Promise(function(f,g){var x,R,B=new Promise(function(tt,xt){R=tt,x=xt});function z(){var tt=new ReadableStream({type:"bytes",pull:function(xt){Xf(xe,xt)},cancel:function(xt){cl(xe)}},{highWaterMark:0});tt.allReady=B,f(tt)}function ne(tt){B.catch(function(){}),g(tt)}var xe=zl(v,Oi(l?l.identifierPrefix:void 0,l?l.nonce:void 0,l?l.bootstrapScriptContent:void 0,l?l.bootstrapScripts:void 0,l?l.bootstrapModules:void 0),hi(l?l.namespaceURI:void 0),l?l.progressiveChunkSize:void 0,l?l.onError:void 0,R,z,ne,x);if(l&&l.signal){var Ne=l.signal,ze=function(){cl(xe,Ne.reason),Ne.removeEventListener("abort",ze)};Ne.addEventListener("abort",ze)}tf(xe)})}Mh.renderToReadableStream=_a,Mh.version=e}()),Mh}var Ec,Cv;process.env.NODE_ENV==="production"?(Ec=B4(),Cv=$4()):(Ec=V4(),Cv=H4());Ec.version;var U4=Ec.renderToString;Ec.renderToStaticMarkup;Ec.renderToNodeStream;Ec.renderToStaticNodeStream;Cv.renderToReadableStream;var W4=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function jD(t,e){return t(e={exports:{}},e.exports),e.exports}var z4=jD(function(t){(function(e){var n=function(j,_,U){if(!d(_)||w(_)||m(_)||T(_)||c(_))return _;var G,re=0,q=0;if(p(_))for(G=[],q=_.length;re<q;re++)G.push(n(j,_[re],U));else for(var se in G={},_)Object.prototype.hasOwnProperty.call(_,se)&&(G[j(se,U)]=n(j,_[se],U));return G},r=function(j){return E(j)?j:(j=j.replace(/[\-_\s]+(.)?/g,function(_,U){return U?U.toUpperCase():""})).substr(0,1).toLowerCase()+j.substr(1)},i=function(j){var _=r(j);return _.substr(0,1).toUpperCase()+_.substr(1)},o=function(j,_){return function(U,G){var re=(G=G||{}).separator||"_",q=G.split||/(?=[A-Z])/;return U.split(q).join(re)}(j,_).toLowerCase()},a=Object.prototype.toString,c=function(j){return typeof j=="function"},d=function(j){return j===Object(j)},p=function(j){return a.call(j)=="[object Array]"},w=function(j){return a.call(j)=="[object Date]"},m=function(j){return a.call(j)=="[object RegExp]"},T=function(j){return a.call(j)=="[object Boolean]"},E=function(j){return(j-=0)==j},A=function(j,_){var U=_&&"process"in _?_.process:_;return typeof U!="function"?j:function(G,re){return U(G,j,re)}},I={camelize:r,decamelize:o,pascalize:i,depascalize:o,camelizeKeys:function(j,_){return n(A(r,_),j)},decamelizeKeys:function(j,_){return n(A(o,_),j,_)},pascalizeKeys:function(j,_){return n(A(i,_),j)},depascalizeKeys:function(){return this.decamelizeKeys.apply(this,arguments)}};t.exports?t.exports=I:e.humps=I})(W4)}).decamelize,Y4=function(t){if(Array.isArray(t))return t},G4=function(t,e){if(typeof Symbol<"u"&&Symbol.iterator in Object(t)){var n=[],r=!0,i=!1,o=void 0;try{for(var a,c=t[Symbol.iterator]();!(r=(a=c.next()).done)&&(n.push(a.value),!e||n.length!==e);r=!0);}catch(d){i=!0,o=d}finally{try{r||c.return==null||c.return()}finally{if(i)throw o}}return n}},T1=function(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r},q4=function(t,e){if(t){if(typeof t=="string")return T1(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set"?Array.from(t):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?T1(t,e):void 0}},X4=function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
136
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)},K4=function(t,e){return Y4(t)||G4(t,e)||q4(t,e)||X4()},BD=jD(function(t){function e(){return t.exports=e=Object.assign||function(n){for(var r=1;r<arguments.length;r++){var i=arguments[r];for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(n[o]=i[o])}return n},e.apply(this,arguments)}t.exports=e}),Z4=function(t,e){if(t==null)return{};var n,r,i={},o=Object.keys(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||(i[n]=t[n]);return i},$D=function(t,e){if(t==null)return{};var n,r,i=Z4(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i},J4=X.createContext(null);function VD(t){var e=t.children,n=e===void 0?"":e,r=$D(t,["children"]);return typeof n!="string"&&(n=U4(n)),X.createElement("template",BD({},r,{dangerouslySetInnerHTML:{__html:n}}))}function HD(t){var e=t.root,n=t.children;return Lv.createPortal(n===void 0?null:n,e)}function Q4(t){var e=X.forwardRef(function(n,r){var i,o,a=n.mode,c=a===void 0?"open":a,d=n.delegatesFocus,p=d!==void 0&&d,w=n.styleSheets,m=w===void 0?[]:w,T=n.ssr,E=T!==void 0&&T,A=n.children,I=$D(n,["mode","delegatesFocus","styleSheets","ssr","children"]),j=(o=X.useRef((i=r)&&i.current),X.useEffect(function(){i&&(i.current=o.current)},[i]),o),_=X.useState(null),U=K4(_,2),G=U[0],re=U[1],q="node_".concat(c).concat(p);return X.useLayoutEffect(function(){if(j.current)try{if(typeof r=="function"&&r(j.current),E){var se=j.current.shadowRoot;return void re(se)}var S=j.current.attachShadow({mode:c,delegatesFocus:p});m.length>0&&(S.adoptedStyleSheets=m),re(S)}catch(ue){(function(ae){var Ue=ae.error,nt=ae.styleSheets,et=ae.root;switch(Ue.name){case"NotSupportedError":nt.length>0&&(et.adoptedStyleSheets=nt);break;default:throw Ue}})({error:ue,styleSheets:m,root:G})}},[r,j,m]),X.createElement(X.Fragment,null,X.createElement(t.tag,BD({key:q,ref:j},I),(G||E)&&X.createElement(J4.Provider,{value:G},E?X.createElement(VD,{shadowroot:c,shadowrootmode:c},t.render({root:G,ssr:E,children:A})):X.createElement(HD,{root:G},t.render({root:G,ssr:E,children:A})))))});return e.propTypes={mode:_s.oneOf(["open","closed"]),delegatesFocus:_s.bool,styleSheets:_s.arrayOf(_s.instanceOf(globalThis.CSSStyleSheet)),ssr:_s.bool,children:_s.node},e}VD.propTypes={children:_s.oneOfType([_s.string,_s.node])},HD.propTypes={root:_s.object.isRequired,children:_s.node};var mm=new Map;function e6(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"core",n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:function(r){return r.children};return new Proxy(t,{get:function(r,i){var o=z4(i,{separator:"-"}),a="".concat(e,"-").concat(o);return mm.has(a)||mm.set(a,Q4({tag:o,render:n})),mm.get(a)}})}var UD=e6();const t6=".app,.treeRoot{height:100%}.draggingSource{opacity:.3}.placeholderContainer{position:relative}.dropTarget{background-color:#8d878711}",n6=".favorite-bar{z-index:900;transition:transform .3s ease,opacity .3s ease;border-bottom:1px solid #ddd}.favorite-bar--hidden{transform:translateY(-100%);opacity:0}.favorite-bar--visible{transform:translateY(0);opacity:1}";var C1;(function(t){t.DragStart="dragStart",t.DragMove="dragMove",t.DragEnd="dragEnd",t.DragCancel="dragCancel",t.DragOver="dragOver",t.RegisterDroppable="registerDroppable",t.SetDroppableDisabled="setDroppableDisabled",t.UnregisterDroppable="unregisterDroppable"})(C1||(C1={}));const r6=Object.freeze({x:0,y:0});var Tf;(function(t){t[t.Forward=1]="Forward",t[t.Backward=-1]="Backward"})(Tf||(Tf={}));var E1;(function(t){t.Click="click",t.DragStart="dragstart",t.Keydown="keydown",t.ContextMenu="contextmenu",t.Resize="resize",t.SelectionChange="selectionchange",t.VisibilityChange="visibilitychange"})(E1||(E1={}));var Rs;(function(t){t.Space="Space",t.Down="ArrowDown",t.Right="ArrowRight",t.Left="ArrowLeft",t.Up="ArrowUp",t.Esc="Escape",t.Enter="Enter",t.Tab="Tab"})(Rs||(Rs={}));Rs.Space,Rs.Enter,Rs.Esc,Rs.Space,Rs.Enter,Rs.Tab;var k1;(function(t){t[t.RightClick=2]="RightClick"})(k1||(k1={}));var D1;(function(t){t[t.Pointer=0]="Pointer",t[t.DraggableRect=1]="DraggableRect"})(D1||(D1={}));var P1;(function(t){t[t.TreeOrder=0]="TreeOrder",t[t.ReversedTreeOrder=1]="ReversedTreeOrder"})(P1||(P1={}));Tf.Backward+"",Tf.Forward+"",Tf.Backward+"",Tf.Forward+"";var Ev;(function(t){t[t.Always=0]="Always",t[t.BeforeDragging=1]="BeforeDragging",t[t.WhileDragging=2]="WhileDragging"})(Ev||(Ev={}));var kv;(function(t){t.Optimized="optimized"})(kv||(kv={}));Ev.WhileDragging,kv.Optimized;({...r6});var O1;(function(t){t[t.Uninitialized=0]="Uninitialized",t[t.Initializing=1]="Initializing",t[t.Initialized=2]="Initialized"})(O1||(O1={}));function i6(t,e,n){const r=t.slice();return r.splice(n<0?r.length+n:n,0,r.splice(e,1)[0]),r}Rs.Down,Rs.Right,Rs.Up,Rs.Left;function o6(t){const e=new CustomEvent("updateFavoriteMenu",{detail:{menuItem:t}});window.dispatchEvent(e)}const vm="MENU_ITEM";function s6(t){const e=Sp.useLocation(),[n,r]=X.useState([]),[i,o]=X.useState([]),[a,c]=X.useState(!1);console.log("isSubmit",a);const d=X.useRef(null),[p,w]=X.useState(window.location.href);X.useEffect(()=>{w(window.location.href)},[e]);const m=q=>`${q}`;function T(q,se){for(const S of q){if(S.id===se)return S;if(S.children){const ue=T(S.children,se);if(ue)return ue}}return null}function E(q,se){const S=T(n,q);S?(S.isFavorite=se,o6(S),tb(q,se)):console.error(`Item with id ${q} not found`)}const A=q=>{console.log("Favorite menus changed",q);const se=q.detail.favoriteMenus||[];r(se)},[I,j]=X.useState(!1);X.useEffect(()=>{const q=se=>{j(se.detail.isLoading)};return window.addEventListener("favoriteLoadingChange",q),()=>{window.removeEventListener("favoriteLoadingChange",q)}},[]),X.useEffect(()=>(window.addEventListener("favoriteMenusChange",A),()=>{window.removeEventListener("favoriteMenusChange",A)}),[]);const _=(q,se)=>{n[q];const S=i6(n,q,se);r(S),c(!0);const ue={menuItemIds:S.map(ae=>ae.id)};As.post("global-menu-config/api/v1/menu-items/user/order-favorites",ue,{baseURL:t.baseUrl}).then(()=>{window.dispatchEvent(new CustomEvent("favoriteOrderUpdated",{detail:{favoriteMenuId:S.map(ae=>ae.id)}}))}).catch(ae=>{console.error(ae),r(n)}).finally(()=>{c(!1)})};console.log("favoriteItems",n);const U=Object.entries(t.brandColors||{}).reduce((q,[se,S])=>(S&&(q[`--${se}`]=S),q),{}),G=({item:q,index:se})=>{const S=X.useRef(null),[{isDragging:ue},ae]=XE({type:vm,item:()=>({id:q.id,index:se}),collect:Me=>({isDragging:Me.isDragging()})}),[{isOver:Ue,isOverCurrent:nt},et]=up(()=>({accept:vm,collect:Me=>({isOver:Me.isOver(),isOverCurrent:Me.isOver({shallow:!0})}),drop:Me=>{Me.index!==se&&(Me.index<se?(_(Me.index,se-1),Me.index=se-1):(_(Me.index,se),Me.index=se))}}),[]);let De="hover-off";return(nt||Ue)&&(De="hover-on"),ae(et(S)),Re.jsx("div",{ref:S,style:{opacity:ue?.7:1,boxShadow:ue?"0 4px 8px rgba(0, 0, 0, 0.2)":"none",cursor:"move",display:"inline-block",marginRight:"8px",position:"relative",transition:"transform 0.3s ease-in-out",...U},className:`item ${De}`,children:Re.jsx(ND,{replacePath:t.replacePath,ssr:t.ssr,brandColors:t.brandColors,baseUrl:t.baseUrl,item:q,level:1,onSetFavoriteSuccess:E,isDrop:a})})},re=()=>{const q=X.useRef(null),[{isOver:se,canDrop:S},ue]=up(()=>({accept:vm,drop:ae=>{_(ae.index,n.length-1),ae.index=n.length-1},collect:ae=>({isOver:ae.isOver(),canDrop:ae.canDrop()})}),[n]);return ue(q),Re.jsx("div",{ref:q,style:{height:48,width:150,display:"flex",alignItems:"center",justifyContent:"center",borderLeft:se&&S?"2px solid var(--primary300)":"transparent",...U}})};return console.log("isLoading fav",I),Re.jsx(Re.Fragment,{children:I?Re.jsx(Re.Fragment,{}):n.length?Re.jsx("div",{className:m("favorite-menu"),children:Re.jsx(Uv,{ref:d,className:m("wrap-section favorite-menu__menu"),style:{marginTop:4,flex:1,overflow:"auto",height:"100%",overflowY:"hidden"},children:Re.jsx(UE,{backend:eC,children:Re.jsxs("div",{style:{display:"inline-flex"},children:[n.map((q,se)=>Re.jsx(G,{item:q,index:se},q.id)),Re.jsx(re,{})]})})})}):""})}function a6(t=32){const[e,n]=X.useState(!0),[r,i]=X.useState(0),o=()=>{const a=window.scrollY;a>r&&a>t?n(!1):a<r&&n(!0),i(a)};return X.useEffect(()=>(window.addEventListener("scroll",o),()=>window.removeEventListener("scroll",o)),[r]),{isFavoriteBarVisible:e}}function l6(t){const{isFavoriteBarVisible:e}=a6();return Re.jsxs(Re.Fragment,{children:[Re.jsx("style",{children:n6}),Re.jsx("div",{className:`favorite-bar ${e?"favorite-bar--visible":"favorite-bar--hidden"}`,children:Re.jsx(UD.div,{children:Re.jsx($v,{styles:[VT,j4,t6],children:Re.jsx(s6,{...t})})})})]})}function tb(t,e){const n=JSON.parse(localStorage.getItem("favoriteItems")||"[]");if(e)n.includes(t)||n.push(t);else{const r=n.indexOf(t);r>-1&&n.splice(r,1)}localStorage.setItem("favoriteItems",JSON.stringify(n))}function WD({...t}){var Se,je,Qe;const e=t.item,n=t.level||0,r=!!((Se=t.item.children)!=null&&Se.length),{isActive:i,isCollapsed:o}=t,a=`level-${n}`,c=o?"collapsed":"expanded",d=i(e.id)?"active":"",p=r?"parent":"child",w=t.params.isOpen?"isOpen":"isClose",m=t.isInternalApp?"isInternalApp":"",T=(Ye,Ke=a)=>`${Ye} ${Ke} ${c} ${d} ${p} ${w} ${m}`,[E,A]=X.useState(!1),[I,j]=X.useState(e.isFavorite||!1);X.useEffect(()=>{j(!!t.item.isFavorite)},[t.item.isFavorite]);const _=X.useRef(),U=X.useRef();U!=null&&U.current&&((je=U==null?void 0:U.current)==null?void 0:je.scrollWidth)>((Qe=U==null?void 0:U.current)==null?void 0:Qe.clientWidth);const G=window.location.origin,re=e.path&&e.path.includes("http")?new URL(e.path):{origin:"",pathname:""},q=window.location.pathname.split("/")[1],se=re.pathname.split("/")[1],S=t.item.redirectUrl||t.ssr||!G.includes("local")&&G!==re.origin||se!==q,ue=r?"div":!t.isInternalApp&&S?"a":Sp.Link,ae=e.redirectUrl||e.path||"#",Ue=n+1,nt=r&&o&&E,et=o||n===0?void 0:`${n+.25}rem`,De=()=>{A(!0)},Me=()=>{A(!1)},fe="/global-menu-config/api/v1/menu-items/user/set-favorite",me=e.serviceKey==="mn_poms";t.params.depth*20,t.params.depth,FH(e.id,t.params.isOpen,t.params.onToggle);const Be=me||o&&n===0?e.name==="POMs"?"Parking Operations Management":e.description||e.name:null,Ze=Object.entries(t.brandColors||{}).reduce((Ye,[Ke,qe])=>(qe&&(Ye[`--${Ke}`]=qe),Ye),{}),ve=G!==re.origin||t.item.redirectUrl?"_blank":"_self";return Re.jsxs("div",{ref:_,className:T("menu-item__wrapper tree-node"),style:{borderRadius:"8px",transition:"all 0.3s",...Ze},onMouseOver:De,onMouseOut:Me,onDragStart:Ye=>{o&&n>1&&Ye.preventDefault()},children:[Re.jsx(sa.Tooltip,{placement:"top",title:Be,disableInteractive:!0,children:Re.jsxs(ue,{target:ve,to:ae,href:ae,draggable:"true",className:T("menu-item__link"),style:{paddingLeft:et},onClick:Ye=>{ue==="a"&&ve==="_blank"||(!r&&e.path&&localStorage.setItem("latestClickMenuPath",(e.path||"").replace(window.location.origin,"")),!o&&t.toggleExpand(Ye))},children:[Re.jsx(u6,{cls:T,item:e}),Re.jsx("span",{className:T("menu-item__label"),ref:U,children:e.name}),Re.jsx(c6,{tooltipPosition:Be?"right":"top",menuLevel:n,hasChildren:r,isHovered:E,isFavorite:I,onClick:Ye=>{const Ke={menuConfigId:e.id,isFavorite:Ye},qe=t.baseUrl+fe;As.post(qe,Ke).then(ot=>{var ct;j(Ye),zv("Set favorite menu item successfully"),(ct=t.onSetFavoriteSuccess)==null||ct.call(t,t.item.id,Ye),tb(t.item.id,Ye)}).catch(ot=>{var ct,pt;Wd(((pt=(ct=ot.response)==null?void 0:ct.data)==null?void 0:pt.errorMessage)||"Have error when set favorite menu item")})}}),r&&Re.jsx("div",{className:T("menu-item__icon-arrow__wrapper"),children:Re.jsx(o4,{className:T(`menu-item__icon-arrow__icon ${t.params.isOpen?"open":"close"}`)})})]})}),nt&&Re.jsx(s4,{parentRef:_,onlyChild:!o,renderChildren:({maxHeight:Ye})=>{var Ke;return Re.jsx(OD.div,{className:T(`menu-item__dropdown ${t.params.isOpen?"menu-item__dropdown--open":"menu-item__dropdown--close"}`,`level-${Ue}`),style:Qy({maxHeight:Ye,overflowY:"auto",paddingRight:3},Ye!=="auto"&&!!Ue),children:(Ke=e.children)==null?void 0:Ke.map(qe=>X.createElement(WD,{...t,key:qe.id,item:qe,level:Ue}))})}})]})}function u6({item:t,cls:e}){return Re.jsx("div",{className:e("menu-item__icon"),children:Re.jsx(FD,{item:t})})}function c6(t){const e={marginRight:t.hasChildren?10:0,fontSize:18,fill:ki.warning};return Re.jsxs(Re.Fragment,{children:[t.isHovered&&!t.isFavorite&&Re.jsx(sa.Tooltip,{placement:t.tooltipPosition||"top",title:"Add to favorites",disableInteractive:!0,children:Re.jsx("div",{children:Re.jsx(_D,{style:e,onClick:n=>{var r;n.preventDefault(),n.stopPropagation(),(r=t.onClick)==null||r.call(t,!0)}})})}),t.isFavorite&&Re.jsx(sa.Tooltip,{placement:t.tooltipPosition||"top",title:"Remove from favorites",disableInteractive:!0,children:Re.jsx("div",{children:Re.jsx(RD,{style:e,onClick:n=>{var r;n.preventDefault(),n.stopPropagation(),(r=t.onClick)==null||r.call(t,!1)}})})})]})}function f6(){return Re.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"22",height:"22",fill:"currentColor",stroke:"currentColor",strokeWidth:"0",viewBox:"0 0 24 24",children:Re.jsx("path",{d:"M21 18v2H3v-2h18zM6.596 3.903L8.01 5.318 4.828 8.5 8.01 11.68l-1.414 1.415L2 8.5l4.596-4.597zM21 11v2h-9v-2h9zm0-7v2h-9V4h9z"})})}function d6(){return Re.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"22",height:"22",fill:"currentColor",stroke:"currentColor",strokeWidth:"0",viewBox:"0 0 24 24",children:Re.jsx("path",{d:"M3 4h18v2H3V4zm0 7h18v2H3v-2zm0 7h18v2H3v-2z"})})}function h6(t){return Re.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"20",fill:"none",viewBox:"0 0 18 20",...t,children:Re.jsx("path",{fill:"#E01B00",fillRule:"evenodd",d:"M.179 2.875A2.375 2.375 0 012.554.5h3.393a1.018 1.018 0 010 2.036H2.554a.34.34 0 00-.34.339v14.25c0 .187.152.34.34.34h3.393a1.018 1.018 0 110 2.035H2.554a2.375 2.375 0 01-2.375-2.375V2.875zm14.167 6.107h-7.72a1.018 1.018 0 000 2.036h7.72l-2.673 2.673a1.018 1.018 0 101.44 1.44l4.41-4.411a1.018 1.018 0 000-1.44l-4.41-4.41a1.018 1.018 0 10-1.44 1.439l2.673 2.673z",clipRule:"evenodd"})})}const p6=".flex-col-center{display:flex;flex-direction:column;justify-content:center}.wrap-section{padding:0 8px;transition:all .3s}.wrap-section.collapsed{padding:0 4px}.side-bar{position:fixed;top:64px;left:0;height:calc(100vh - 64px);max-width:18rem;display:flex;flex-direction:column;border-right:1px solid #ddd;background-color:#fafafa;transition:all .3s}.side-bar.expanded{width:17rem}.side-bar.collapsed{width:64px}.side-bar__wrap-btn-logout,.side-bar__btn-logout{margin:5px 0}.side-bar__logout-btn__text{margin-left:12px;font-size:.875rem;opacity:1}.side-bar__logout-btn__text.collapsed{opacity:0;transition:ease-in-out .2s;transition-delay:.15s}.side-bar__wrapper-toggle-btn{display:flex;flex-direction:row;justify-content:flex-end;transition:all .3s;margin-right:-8px;margin-top:40px}.side-bar__wrapper-toggle-btn.collapsed{justify-content:center;width:100%}.side-bar__toggle-btn{margin-top:-6px;color:#85858a}.side-bar__logout-btn{width:100%;text-align:left;display:flex;flex-direction:row;align-items:center;padding:8px 16px 8px 18.6665px;min-height:48px;border-radius:.375rem;overflow:hidden;transition:all .3s ease-in-out;background-color:initial}.side-bar__logout-btn:hover{background-color:#919eab14}.side-bar__icon-logout{flex-shrink:0}.menu-item__wrapper{display:flex;flex-direction:column;position:relative;width:100%;color:#292929}.menu-item__wrapper.collapsed.active,.menu-item__wrapper.expanded.active.parent.isClose,.menu-item__wrapper.expanded.active.child{color:var(--primary400);background-color:var(--primary200)}.menu-item__link{display:flex;flex-direction:row;border-radius:.375rem;align-items:center;padding:.5rem;position:relative;height:48px;cursor:pointer}.menu-item__link.expanded.level-0{padding:.5rem 10px}.isHome{position:sticky;top:0;background-color:#fafafa;z-index:10}.menu-item__link:hover{background-color:#919eab14}.menu-item__link.collapsed.level-0{padding-left:calc(.5rem + 7.665px)!important}.menu-item__link.active{background-color:#009d4f1a;color:inherit}.menu-item__link.active.level-0,.menu-item__link.active.level-1,.menu-item__link.active.level-2,.menu-item__link.active.level-3,.menu-item__link.active.level-4,.menu-item__link.active.level-5,.menu-item__link.active.level-6,.menu-item__link.active.level-7,.menu-item__link.active.level-8,.menu-item__link.active.level-9{background-color:inherit;color:inherit}.menu-item__link.active.level-1:hover,.menu-item__link.active.level-2:hover,.menu-item__link.active.level-3:hover,.menu-item__link.active.level-4:hover,.menu-item__link.active.level-5:hover,.menu-item__link.active.level-6:hover,.menu-item__link.active.level-7:hover,.menu-item__link.active.level-8:hover,.menu-item__link.active.level-9:hover,.menu-item__link.active.level-0:hover{background-color:#919eab14}.menu-item__link.level-0{transition:padding .2s}.menu-item__link.menu-item__link.collapsed.level-0{padding:0}.menu-item__icon{width:1.5rem;height:1.5rem;flex-shrink:0;display:grid;place-items:center;color:#85858a}.menu-item__icon.collapsed.active,.menu-item__icon.expanded.active.parent.isClose,.menu-item__icon.expanded.active.child{color:inherit}.menu-item__icon.collapsed.level-0>*{margin:0 auto}.menu-item__label{font-size:.875rem;text-overflow:ellipsis;overflow:hidden;white-space:nowrap;width:100%;flex-shrink:1;margin-left:12px;padding-right:12px;opacity:1}.menu-item__label.level-0.collapsed{text-overflow:unset}.menu-item__label.active{color:inherit}.menu-item__label.collapsed{margin-left:8px;font-size:.75rem;line-height:1rem}.menu-item__label.collapsed.level-0{font-size:.875rem;opacity:0;transition-delay:.15s}.menu-item__label.level-0{margin-left:8px;font-weight:500;font-size:.951rem}.menu-item__label.level-0.isInternalApp{font-weight:unset!important}.menu-item__icon-arrow__wrapper{display:grid;place-items:center;position:absolute;top:50%;transform:translateY(-50%);right:0}.menu-item__icon-arrow__wrapper.expanded{right:4px}.menu-item__icon-arrow__icon{transition:transform .3s!important;transform:rotate(-90deg)!important}.menu-item__icon-arrow__icon.active{color:inherit}.menu-item__icon-arrow__icon.expanded.open{transform:rotate(0)!important}.menu-item__dropdown.collapsed{background-color:#fafafa;border:1px solid #ddd;box-shadow:#0000001a 0 10px 15px -3px,#0000000d 0 4px 6px -2px;border-radius:4px;width:210px;max-width:210px;padding:4px;z-index:1200}.menu-item__dropdown::-webkit-scrollbar{width:4px}.menu-item__dropdown::-webkit-scrollbar-thumb{background-color:#9b9b9b99;border-radius:2px}.menu-item__dropdown,.menu-item__dropdown>*{margin-top:4px}.menu-item__dropdown.expanded.menu-item__dropdown--close{margin-top:0;transition:margin-top .3s}.menu-item__dropdown:first-of-type{margin-top:0}.menu-item__dropdown>*:first-child{margin-top:0}.menu-item__dropdown.collapsed .menu-item__link{height:40px}.menu-item__dropdown.collapsed .menu-item__link.level-0{height:48px}.menu-item__dropdown.collapsed.level-0{width:auto;max-width:unset;box-shadow:none;border:none;padding:0;background-color:unset}.menu-item__dropdown.expanded{overflow:hidden}.icon-btn{display:inline-flex;align-items:center;justify-content:center;padding:8px;border-radius:50%;background-color:transparent;transition:background-color .3s ease;border:none}.icon-btn:hover{background-color:var(--btn-bg-hover)}.simplebar-scrollbar:before{background-color:#0000002d}.side-bar__menu.collapsed .simplebar-track.simplebar-vertical{display:none}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}",g6=t=>{const e=t.isCollapsed?0:t.depth*16;return Re.jsx("div",{style:{backgroundColor:t.color||"#93D500",height:"2px",position:"absolute",right:"0",top:"0",left:e}})},m6=".app,.treeRoot{height:100%}.draggingSource{opacity:.3}.placeholderContainer{position:relative}.dropTarget{background-color:#8d878711}",v6=t=>{const[e,n]=X.useState(()=>{const r=localStorage.getItem("openingMenuIds");return r&&r!=="[]"?JSON.parse(r):(t==null?void 0:t.initOpenIds)||[]});return X.useEffect(()=>{localStorage.setItem("openingMenuIds",JSON.stringify(e))},[e]),[e,n]};function zD(t){document.documentElement.style.setProperty("--global-menu-width",!t||t==="true"?"64px":"17rem")}const Gh=localStorage.getItem("isCollapsed");zD(Gh);function y6(t){const e=new CustomEvent("favoriteMenusChange",{detail:{favoriteMenus:t}});window.dispatchEvent(e)}function b6(t){const e=Sp.useLocation(),[n,r]=X.useState([]),i=n.map(De=>De.data),[o,a]=X.useState(!1),[c,d]=X.useState([]),[p,w]=X.useState(Gh===null?!0:Gh==="true"),[m,T]=X.useState(window.location.href),E=X.useRef(null);X.useEffect(()=>{var De;(De=t.handleCallback)==null||De.call(t,i)},[i,t.handleCallback]),X.useEffect(()=>{T(window.location.href)},[e]);const A=x6(i,m),[I,j]=v6({initOpenIds:t.initOpenIds}),_=()=>{var De,Me;if(w(!p),localStorage.setItem("isCollapsed",JSON.stringify(!p)),zD(p),p)I&&((De=E.current)==null||De.open(I));else{const fe=n.filter(me=>me.parent===0).map(me=>me.id);console.log("closeIds:",fe),(Me=E.current)==null||Me.close(fe)}},[U,G]=X.useState(!1),re=p?"collapsed":"expanded",q=De=>`${De} ${re}`,se=X.useRef(null);X.useLayoutEffect(()=>{(async()=>{var Me,fe;try{const me=t.menuPath||"/global-menu-config/api/v1/menu-items/user",Pe=t.baseUrl+me,{data:Be}=await As.get(Pe);let Ze=Be.map(Se=>({...Se,parentKey:Se.parentKey||0}));Ze=GD(Ze),t.replacePath&&(Ze=YD(Ze,t.replacePath));const ve=Ze.map(Se=>({id:Se.id,parent:Se.parentKey,text:Se.name,data:Se}));r(ve)}catch(me){console.error("Global menu",me),Wd(((fe=(Me=me.response)==null?void 0:Me.data)==null?void 0:fe.errorMessage)||me.message||"Have error when get menu items")}})()},[t.baseUrl,t.menuPath,t.replacePath]);const[S,ue]=X.useState(!1),ae=async()=>{ue(!0),window.dispatchEvent(new CustomEvent("favoriteLoadingChange",{detail:{isLoading:!0}}));try{const De=await fetch(`${t.baseUrl}/global-menu-config/api/v1/menu-items/user/get-favorites`);if(!De.ok)throw new Error("Failed to fetch favorite items");const Me=await De.json();d(Me)}catch(De){console.error("Error fetching favorite items:",De)}finally{ue(!1),window.dispatchEvent(new CustomEvent("favoriteLoadingChange",{detail:{isLoading:!1}}))}};X.useEffect(()=>{ae()},[t.baseUrl,e]),X.useEffect(()=>{const De=Me=>{d(Me.detail.favoriteMenuId)};return window.addEventListener("favoriteOrderUpdated",De),()=>{window.removeEventListener("favoriteOrderUpdated",De)}},[]),console.log("favoriteMenuId",c),X.useEffect(()=>{let De=[];c.forEach(me=>{const Pe=i.find(Be=>Be.id===me&&Be.isFavorite===!0);Pe&&(De=[...De,Pe])}),console.log(De);function Me(me){return i.every(Pe=>Pe.parentKey!==me.id)?me:{...me,children:i.filter(Pe=>Pe.parentKey===me.id).map(Pe=>Me(Pe))}}const fe=De.map(me=>Me(me));y6(fe)},[i]);function Ue(De){const Me=De.detail.menuItem;r(fe=>fe.map(me=>me.id!==Me.id?me:{...me,data:Me})),ae()}X.useEffect(()=>(window.addEventListener("updateFavoriteMenu",Ue),()=>{window.removeEventListener("updateFavoriteMenu",Ue)}),[]),X.useLayoutEffect(()=>{var me;const De=localStorage.getItem("scrollPos");De&&se.current&&setTimeout(()=>{const Pe=se.current.getScrollElement();Pe.scrollTop=parseInt(De)},0);const Me=()=>{if(se.current){const Pe=se.current.getScrollElement();localStorage.setItem("scrollPos",Pe.scrollTop.toString())}},fe=(me=se.current)==null?void 0:me.getScrollElement();return fe==null||fe.addEventListener("scroll",Me),()=>{fe==null||fe.removeEventListener("scroll",Me)}},[i]);function nt(De){a(!0);const Me=[...n];r(De);const fe=De.map((me,Pe)=>({menuItemId:me.id,order:Pe}));As.post("/global-menu-config/api/v1/menu-items/user",fe,{baseURL:t.baseUrl}).then(()=>{}).catch(me=>{console.error(me),r(Me)}).finally(()=>{a(!1)})}const et=X.useMemo(()=>Gh==="false"?I:[],[]);return console.log("nodesglobal menu",n),Re.jsxs("div",{className:q("side-bar"),children:[Re.jsx("div",{className:q("wrap-section side-bar__wrapper-toggle-btn"),children:Re.jsx("button",{className:"icon-btn side-bar__toggle-btn",onClick:_,children:p?Re.jsx(d6,{}):Re.jsx(f6,{})})}),Re.jsx(Uv,{ref:se,className:q("wrap-section side-bar__menu"),style:{marginTop:24,flex:1,overflow:"auto",height:"100%",overflowX:"hidden"},children:Re.jsx(UE,{backend:sH,options:RH(),children:Re.jsx(qH,{ref:E,classes:{root:"treeRoot",draggingSource:"draggingSource",placeholder:"placeholderContainer",listItem:De=>{var Me;return((Me=De.data)==null?void 0:Me.name)==="Home"?"isHome":""}},tree:n,rootId:0,sort:!1,insertDroppableFirst:!1,enableAnimateExpand:!0,dropTargetOffset:10,onDrop:nt,render:(De,Me)=>{function fe(Ze){return n.every(ve=>ve.parent!==Ze.id)?Ze:{...Ze,children:n.filter(ve=>ve.parent===Ze.id).map(ve=>fe(ve.data))}}const me=fe(De.data),Pe=Ze=>A.some(ve=>ve.id===Ze);function Be(Ze,ve){r(Se=>Se.map(je=>je.id===Ze?{...je,data:{...je.data,isFavorite:ve}}:je)),ae()}return Re.jsx(WD,{isInternalApp:t.isInternalApp,isActive:Pe,isCollapsed:p,replacePath:t.replacePath,ssr:t.ssr,brandColors:t.brandColors,baseUrl:t.baseUrl,node:De,params:Me,nodes:n,item:me,expanded:()=>!1,toggleExpand:Ze=>{var ve;if(Ze.stopPropagation(),Me.isOpen)console.log("open toggleExpand"),Me.onToggle();else{console.log("close toggleExpand");const Se=n.filter(je=>je.parent===De.parent&&je.id!==De.id).map(je=>je.id);console.log(" closeIds:",Se),(ve=E.current)==null||ve.open(De.id),setTimeout(()=>{var je;(je=E.current)==null||je.close(Se)},0)}},level:Me.depth,onSetFavoriteSuccess:Be})},placeholderRender:(De,{depth:Me})=>{var fe;return Re.jsx(g6,{node:De,depth:Me,color:(fe=t.brandColors)==null?void 0:fe.primary300,isCollapsed:p})},canDrag:De=>{var Me;return!o&&((Me=De==null?void 0:De.data)==null?void 0:Me.name)!=="Home"},canDrop:(De,{dragSource:Me,dropTargetId:fe})=>(Me==null?void 0:Me.parent)===fe,onDragStart:De=>{console.log("onDragStart",De)},onChangeOpen:De=>{localStorage.getItem("isCollapsed")==="false"&&(console.log("onChangeOpen:",De),j(De))},initialOpen:et})})}),Re.jsxs("div",{className:q("wrap-section side-bar__wrap-btn-logout"),children:[Re.jsxs("button",{className:q("side-bar__logout-btn"),onClick:()=>G(!0),children:[Re.jsx(h6,{className:q("side-bar__icon-logout")}),Re.jsx("span",{className:q("side-bar__logout-btn__text"),children:"Logout"})]}),Re.jsx(q1,{isOpen:U,onClose:()=>G(!1),onConfirm:()=>t.logout?t.logout():iT(t.baseUrl)})]})]})}const _1={"/stella/page/SiteManagement/Company/List?tenantId=1":["/stella/page/SiteManagement/Company","/stella/page/SiteManagement/Region","/stella/page/SiteManagement/Location","/stella/page/SiteManagement/Zone","/stella/page/SiteManagement/Service","/stella/page/SiteManagement/Sign"],"/stella/page/SiteManagement/Portfolio/List":["/stella/page/SiteManagement/Portfolio"],"/stella/page/SiteManagement/CountryRegion/List":["/stella/page/SiteManagement/CountryRegion"],"/stella/page/SiteManagement/VehicleListController/List":["/stella/page/SiteManagement/VehicleListController"],"/stella/page/ContraventionManagement/CorrespondenceTemplate/List":["/stella/page/ContraventionManagement/CorrespondenceTemplate"],"/stella/page/ContraventionManagement/VerificationsAudit/List":["/stella/page/ContraventionManagement/VerificationsAudit"],"/stella/page/ContraventionManagement/PendingWardenVerification/List":["/stella/page/ContraventionManagement/PendingWardenVerification"],"/stella/page/ContraventionManagement/Appeal/Search":["/stella/page/ContraventionManagement/Appeal"],"/stella/page/ContraventionManagement/Contravention/Search":["/stella/page/ContraventionManagement/Contravention"],"/stella/page/ContraventionManagement/Tag/Search":["/stella/page/ContraventionManagement/Tag"],"/stella/page/ContraventionManagement/WorkflowMapping/List":["/stella/page/ContraventionManagement/WorkflowMapping"],"/stella/page/ContraventionManagement/WorkflowLetterTemplateMapping/List":["/stella/page/ContraventionManagement/WorkflowLetterTemplateMapping"],"/stella/page/ContraventionManagement/ScannedAppeal/Summary":["/stella/page/ContraventionManagement/ScannedAppeal"],"/stella/page/ContraventionManagement/PendingAppealWorkQueue/List":["/stella/page/ContraventionManagement/PendingAppeal"],"/stella/page/ContraventionManagement/NoDecisionAIAppeal/List":["/stella/page/ContraventionManagement/NoDecisionAIAppeal"],"/stella/page/ContraventionManagement/VerifyAIAppeal/List":["/stella/page/ContraventionManagement/VerifyAIAppeal"],"/anpr/page/LocationDisableReasons/Index":["/anpr/page/LocationDisableReasons"],"/anpr/page/Tags/Index":["/anpr/page/Tags"],"/anpr/page/VendorLocations/Index":["/anpr/page/VendorLocations"],"/anpr/page/Cameras/Index":["/anpr/page/Cameras"],"/anpr/page/Locations/Index":["/anpr/page/Locations"],"/anpr/page/Devices/Index":["/anpr/page/Devices","/anpr/page/Locations"],"/anpr/page/Technical/Overview":["/anpr/page/Technical"],"/anpr/page/Technical/Index":["/anpr/page/Technical"],"/anpr/page/Technical/Index?priority=P1":["/anpr/page/Technical"],"/anpr/page/Technical/Index?priority=P2":["/anpr/page/Technical"],"/anpr/page/Technical/Index?priority=P3":["/anpr/page/Technical"],"/anpr/page/Technical/Index?priority=P4":["/anpr/page/Technical"],"/anpr/page/CustomVerifications/Overview":["/anpr/page/CustomVerifications/Overview"],"/anpr/page/CustomVerifications/WipByLocation":["/anpr/page/CustomVerifications"],"/anpr/page/Issues/Create":["/anpr/page/Issues/Create"],"/anpr/page/Issues/ExportAsCsv":["/anpr/page/Issues/ExportAsCsv"],"/anpr/page/Issues/Overview":["/anpr/page/Issues/Overview"],"/anpr/page/Issues/Index?status=Closed":["/anpr/page/Issues"],"/anpr/page/Issues/Index":["/anpr/page/Issues"]};function w6(t,e){const r=t.replace(window.origin,""),i=new URL(r,window.location.origin),o=new URL(e,window.origin),a=localStorage.getItem("latestClickMenuPath");return r&&_1[r]&&_1[r].some(c=>e.includes(c))?a===r?5:4:i.pathname===o.pathname&&i.search===o.search?3:i.pathname===o.pathname?2:o.pathname.startsWith(i.pathname)?1:0}function x6(t,e){const n=t.map(a=>({item:a,priority:a.path?w6(a.path,e):0})).filter(a=>a.priority>0);console.log(" index.tsx ~ matchedItems:",n);const r=n.length>0?n.reduce((a,c)=>c.priority>a.priority?c:a).item:null,i=[];let o=r;for(;o;)i.unshift(o),o=t.find(a=>a.id===(o==null?void 0:o.parentKey))||null;return i}function YD(t,e){return t.map(n=>{var r;return(r=n.children)!=null&&r.length?(n.path="",n.children=YD(n.children,e)):n.path=e(n.path),n})}function GD(t){return t.map(n=>n.path&&!n.path.includes("http")&&n.path.includes("/")?{...n,path:window.location.origin+n.path}:(n.children&&(n.children=GD(n.children)),n))}function S6(t){return Re.jsx(UD.div,{children:Re.jsx($v,{styles:[VT,p6,m6],style:{position:"sticky",zIndex:1300},children:Re.jsx(b6,{...t})})})}const T6={"page-container":"_page-container_1pwo1_1","page-main-content":"_page-main-content_1pwo1_8","page-title":"_page-title_1pwo1_19","text-base":"_text-base_1pwo1_26","mt-4":"_mt-4_1pwo1_33"};var bp={exports:{}};/**
137
137
  * @license
138
138
  * Lodash <https://lodash.com/>
139
139
  * Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
@@ -159,7 +159,7 @@ __p += '`),tn&&(Xe+=`' +
159
159
  function print() { __p += __j.call(arguments, '') }
160
160
  `:`;
161
161
  `)+Xe+`return __p
162
- }`;var Xt=i0(function(){return st(K,bt+"return "+Xe).apply(n,ie)});if(Xt.source=Xe,fg(Xt))throw Xt;return Xt}function mA(s){return gn(s).toLowerCase()}function vA(s){return gn(s).toUpperCase()}function yA(s,u,b){if(s=gn(s),s&&(b||u===n))return We(s);if(!s||!(u=Hr(u)))return s;var O=cn(s),$=cn(u),K=vt(O,$),ie=An(O,$)+1;return ys(O,K,ie).join("")}function bA(s,u,b){if(s=gn(s),s&&(b||u===n))return s.slice(0,_l(s)+1);if(!s||!(u=Hr(u)))return s;var O=cn(s),$=An(O,cn(u))+1;return ys(O,0,$).join("")}function wA(s,u,b){if(s=gn(s),s&&(b||u===n))return s.replace(an,"");if(!s||!(u=Hr(u)))return s;var O=cn(s),$=vt(O,cn(u));return ys(O,$).join("")}function xA(s,u){var b=Ue,O=nt;if(qn(u)){var $="separator"in u?u.separator:$;b="length"in u?Yt(u.length):b,O="omission"in u?Hr(u.omission):O}s=gn(s);var K=s.length;if(Qr(s)){var ie=cn(s);K=ie.length}if(b>=K)return s;var he=b-vo(O);if(he<1)return O;var ye=ie?ys(ie,0,he).join(""):s.slice(0,he);if($===n)return ye+O;if(ie&&(he+=ye.length-he),dg($)){if(s.slice(he).search($)){var Ve,He=ye;for($.global||($=It($.source,gn(Or.exec($))+"g")),$.lastIndex=0;Ve=$.exec(He);)var Xe=Ve.index;ye=ye.slice(0,Xe===n?he:Xe)}}else if(s.indexOf(Hr($),he)!=he){var at=ye.lastIndexOf($);at>-1&&(ye=ye.slice(0,at))}return ye+O}function SA(s){return s=gn(s),s&&si.test(s)?s.replace(Qn,ha):s}var TA=x(function(s,u,b){return s+(b?" ":"")+u.toUpperCase()}),gg=g("toUpperCase");function r0(s,u,b){return s=gn(s),u=b?n:u,u===n?za(s)?de(s):Lt(s):s.match(u)||[]}var i0=Bt(function(s,u){try{return V(s,n,u)}catch(b){return fg(b)?b:new Fe(b)}}),CA=fl(function(s,u){return te(u,function(b){b=Aa(b),xi(s,b,ug(s[b],s))}),s});function EA(s){var u=s==null?0:s.length,b=Ct();return s=u?it(s,function(O){if(typeof O[1]!="function")throw new Vt(a);return[b(O[0]),O[1]]}):[],Bt(function(O){for(var $=-1;++$<u;){var K=s[$];if(V(K[0],this,O))return V(K[1],this,O)}})}function kA(s){return Vu(Vr(s,m))}function mg(s){return function(){return s}}function DA(s,u){return s==null||s!==s?u:s}var PA=ne(),OA=ne(!0);function Po(s){return s}function vg(s){return Yl(typeof s=="function"?s:Vr(s,m))}function _A(s){return Co(Vr(s,m))}function RA(s,u){return ol(s,Vr(u,m))}var AA=Bt(function(s,u){return function(b){return To(b,s,u)}}),IA=Bt(function(s,u){return function(b){return To(s,b,u)}});function yg(s,u,b){var O=ri(u),$=Ta(u,O);b==null&&!(qn(u)&&($.length||!O.length))&&(b=u,u=s,s=this,$=Ta(u,ri(u)));var K=!(qn(b)&&"chain"in b)||!!b.chain,ie=hl(s);return te($,function(he){var ye=u[he];s[he]=ye,ie&&(s.prototype[he]=function(){var Ve=this.__chain__;if(K||Ve){var He=s(this.__wrapped__),Xe=He.__actions__=Wr(this.__actions__);return Xe.push({func:ye,args:arguments,thisArg:s}),He.__chain__=Ve,He}return ye.apply(s,Tt([this.value()],arguments))})}),s}function MA(){return ln._===this&&(ln._=_u),this}function bg(){}function LA(s){return s=Yt(s),Bt(function(u){return Pa(u,s)})}var FA=tt(it),NA=tt(Oe),jA=tt(un);function o0(s){return rg(s)?D(Aa(s)):zc(s)}function BA(s){return function(u){return s==null?n:gs(s,u)}}var $A=ir(),VA=ir(!0);function wg(){return[]}function xg(){return!1}function HA(){return{}}function UA(){return""}function WA(){return!0}function zA(s,u){if(s=Yt(s),s<1||s>Be)return[];var b=Se,O=Gn(s,Se);u=Ct(u),s-=Se;for(var $=we(O,u);++b<s;)u(b);return $}function YA(s){return Ht(s)?it(s,Aa):zo(s)?[s]:Wr(Eb(gn(s)))}function GA(s){var u=++Pu;return gn(s)+u}var qA=ze(function(s,u){return s+u},0),XA=eo("ceil"),KA=ze(function(s,u){return s/u},1),ZA=eo("floor");function JA(s){return s&&s.length?Bl(s,Po,qs):n}function QA(s,u){return s&&s.length?Bl(s,Ct(u,2),qs):n}function eI(s){return Sr(s,Po)}function tI(s,u){return Sr(s,Ct(u,2))}function nI(s){return s&&s.length?Bl(s,Po,Zi):n}function rI(s,u){return s&&s.length?Bl(s,Ct(u,2),Zi):n}var iI=ze(function(s,u){return s*u},1),oI=eo("round"),sI=ze(function(s,u){return s-u},0);function aI(s){return s&&s.length?be(s,Po):0}function lI(s,u){return s&&s.length?be(s,Ct(u,2)):0}return W.after=__,W.ary=Fb,W.assign=vR,W.assignIn=Kb,W.assignInWith=fh,W.assignWith=yR,W.at=bR,W.before=Nb,W.bind=ug,W.bindAll=CA,W.bindKey=jb,W.castArray=H_,W.chain=Ib,W.chunk=ZP,W.compact=JP,W.concat=QP,W.cond=EA,W.conforms=kA,W.constant=mg,W.countBy=a_,W.create=wR,W.curry=Bb,W.curryRight=$b,W.debounce=Vb,W.defaults=xR,W.defaultsDeep=SR,W.defer=R_,W.delay=A_,W.difference=eO,W.differenceBy=tO,W.differenceWith=nO,W.drop=rO,W.dropRight=iO,W.dropRightWhile=oO,W.dropWhile=sO,W.fill=aO,W.filter=u_,W.flatMap=d_,W.flatMapDeep=h_,W.flatMapDepth=p_,W.flatten=Ob,W.flattenDeep=lO,W.flattenDepth=uO,W.flip=I_,W.flow=PA,W.flowRight=OA,W.fromPairs=cO,W.functions=OR,W.functionsIn=_R,W.groupBy=g_,W.initial=dO,W.intersection=hO,W.intersectionBy=pO,W.intersectionWith=gO,W.invert=AR,W.invertBy=IR,W.invokeMap=v_,W.iteratee=vg,W.keyBy=y_,W.keys=ri,W.keysIn=Do,W.map=oh,W.mapKeys=LR,W.mapValues=FR,W.matches=_A,W.matchesProperty=RA,W.memoize=ah,W.merge=NR,W.mergeWith=Zb,W.method=AA,W.methodOf=IA,W.mixin=yg,W.negate=lh,W.nthArg=LA,W.omit=jR,W.omitBy=BR,W.once=M_,W.orderBy=b_,W.over=FA,W.overArgs=L_,W.overEvery=NA,W.overSome=jA,W.partial=cg,W.partialRight=Hb,W.partition=w_,W.pick=$R,W.pickBy=Jb,W.property=o0,W.propertyOf=BA,W.pull=bO,W.pullAll=Rb,W.pullAllBy=wO,W.pullAllWith=xO,W.pullAt=SO,W.range=$A,W.rangeRight=VA,W.rearg=F_,W.reject=T_,W.remove=TO,W.rest=N_,W.reverse=ag,W.sampleSize=E_,W.set=HR,W.setWith=UR,W.shuffle=k_,W.slice=CO,W.sortBy=O_,W.sortedUniq=RO,W.sortedUniqBy=AO,W.split=dA,W.spread=j_,W.tail=IO,W.take=MO,W.takeRight=LO,W.takeRightWhile=FO,W.takeWhile=NO,W.tap=JO,W.throttle=B_,W.thru=ih,W.toArray=Gb,W.toPairs=Qb,W.toPairsIn=e0,W.toPath=YA,W.toPlainObject=Xb,W.transform=WR,W.unary=$_,W.union=jO,W.unionBy=BO,W.unionWith=$O,W.uniq=VO,W.uniqBy=HO,W.uniqWith=UO,W.unset=zR,W.unzip=lg,W.unzipWith=Ab,W.update=YR,W.updateWith=GR,W.values=sf,W.valuesIn=qR,W.without=WO,W.words=r0,W.wrap=V_,W.xor=zO,W.xorBy=YO,W.xorWith=GO,W.zip=qO,W.zipObject=XO,W.zipObjectDeep=KO,W.zipWith=ZO,W.entries=Qb,W.entriesIn=e0,W.extend=Kb,W.extendWith=fh,yg(W,W),W.add=qA,W.attempt=i0,W.camelCase=JR,W.capitalize=t0,W.ceil=XA,W.clamp=XR,W.clone=U_,W.cloneDeep=z_,W.cloneDeepWith=Y_,W.cloneWith=W_,W.conformsTo=G_,W.deburr=n0,W.defaultTo=DA,W.divide=KA,W.endsWith=QR,W.eq=na,W.escape=eA,W.escapeRegExp=tA,W.every=l_,W.find=c_,W.findIndex=Db,W.findKey=TR,W.findLast=f_,W.findLastIndex=Pb,W.findLastKey=CR,W.floor=ZA,W.forEach=Mb,W.forEachRight=Lb,W.forIn=ER,W.forInRight=kR,W.forOwn=DR,W.forOwnRight=PR,W.get=hg,W.gt=q_,W.gte=X_,W.has=RR,W.hasIn=pg,W.head=_b,W.identity=Po,W.includes=m_,W.indexOf=fO,W.inRange=KR,W.invoke=MR,W.isArguments=ic,W.isArray=Ht,W.isArrayBuffer=K_,W.isArrayLike=ko,W.isArrayLikeObject=hr,W.isBoolean=Z_,W.isBuffer=tu,W.isDate=J_,W.isElement=Q_,W.isEmpty=eR,W.isEqual=tR,W.isEqualWith=nR,W.isError=fg,W.isFinite=rR,W.isFunction=hl,W.isInteger=Ub,W.isLength=uh,W.isMap=Wb,W.isMatch=iR,W.isMatchWith=oR,W.isNaN=sR,W.isNative=aR,W.isNil=uR,W.isNull=lR,W.isNumber=zb,W.isObject=qn,W.isObjectLike=or,W.isPlainObject=Jf,W.isRegExp=dg,W.isSafeInteger=cR,W.isSet=Yb,W.isString=ch,W.isSymbol=zo,W.isTypedArray=of,W.isUndefined=fR,W.isWeakMap=dR,W.isWeakSet=hR,W.join=mO,W.kebabCase=nA,W.last=xs,W.lastIndexOf=vO,W.lowerCase=rA,W.lowerFirst=iA,W.lt=pR,W.lte=gR,W.max=JA,W.maxBy=QA,W.mean=eI,W.meanBy=tI,W.min=nI,W.minBy=rI,W.stubArray=wg,W.stubFalse=xg,W.stubObject=HA,W.stubString=UA,W.stubTrue=WA,W.multiply=iI,W.nth=yO,W.noConflict=MA,W.noop=bg,W.now=sh,W.pad=oA,W.padEnd=sA,W.padStart=aA,W.parseInt=lA,W.random=ZR,W.reduce=x_,W.reduceRight=S_,W.repeat=uA,W.replace=cA,W.result=VR,W.round=oI,W.runInContext=Z,W.sample=C_,W.size=D_,W.snakeCase=fA,W.some=P_,W.sortedIndex=EO,W.sortedIndexBy=kO,W.sortedIndexOf=DO,W.sortedLastIndex=PO,W.sortedLastIndexBy=OO,W.sortedLastIndexOf=_O,W.startCase=hA,W.startsWith=pA,W.subtract=sI,W.sum=aI,W.sumBy=lI,W.template=gA,W.times=zA,W.toFinite=pl,W.toInteger=Yt,W.toLength=qb,W.toLower=mA,W.toNumber=Ss,W.toSafeInteger=mR,W.toString=gn,W.toUpper=vA,W.trim=yA,W.trimEnd=bA,W.trimStart=wA,W.truncate=xA,W.unescape=SA,W.uniqueId=GA,W.upperCase=TA,W.upperFirst=gg,W.each=Mb,W.eachRight=Lb,W.first=_b,yg(W,function(){var s={};return Si(W,function(u,b){kt.call(W.prototype,b)||(s[b]=u)}),s}(),{chain:!1}),W.VERSION=r,te(["bind","bindKey","curry","curryRight","partial","partialRight"],function(s){W[s].placeholder=W}),te(["drop","take"],function(s,u){$t.prototype[s]=function(b){b=b===n?1:wn(Yt(b),0);var O=this.__filtered__&&!u?new $t(this):this.clone();return O.__filtered__?O.__takeCount__=Gn(b,O.__takeCount__):O.__views__.push({size:Gn(b,Se),type:s+(O.__dir__<0?"Right":"")}),O},$t.prototype[s+"Right"]=function(b){return this.reverse()[s](b).reverse()}}),te(["filter","map","takeWhile"],function(s,u){var b=u+1,O=b==Me||b==me;$t.prototype[s]=function($){var K=this.clone();return K.__iteratees__.push({iteratee:Ct($,3),type:b}),K.__filtered__=K.__filtered__||O,K}}),te(["head","last"],function(s,u){var b="take"+(u?"Right":"");$t.prototype[s]=function(){return this[b](1).value()[0]}}),te(["initial","tail"],function(s,u){var b="drop"+(u?"":"Right");$t.prototype[s]=function(){return this.__filtered__?new $t(this):this[b](1)}}),$t.prototype.compact=function(){return this.filter(Po)},$t.prototype.find=function(s){return this.filter(s).head()},$t.prototype.findLast=function(s){return this.reverse().find(s)},$t.prototype.invokeMap=Bt(function(s,u){return typeof s=="function"?new $t(this):this.map(function(b){return To(b,s,u)})}),$t.prototype.reject=function(s){return this.filter(lh(Ct(s)))},$t.prototype.slice=function(s,u){s=Yt(s);var b=this;return b.__filtered__&&(s>0||u<0)?new $t(b):(s<0?b=b.takeRight(-s):s&&(b=b.drop(s)),u!==n&&(u=Yt(u),b=u<0?b.dropRight(-u):b.take(u-s)),b)},$t.prototype.takeRightWhile=function(s){return this.reverse().takeWhile(s).reverse()},$t.prototype.toArray=function(){return this.take(Se)},Si($t.prototype,function(s,u){var b=/^(?:filter|find|map|reject)|While$/.test(u),O=/^(?:head|last)$/.test(u),$=W[O?"take"+(u=="last"?"Right":""):u],K=O||/^find/.test(u);$&&(W.prototype[u]=function(){var ie=this.__wrapped__,he=O?[1]:arguments,ye=ie instanceof $t,Ve=he[0],He=ye||Ht(ie),Xe=function(Jt){var tn=$.apply(W,Tt([Jt],he));return O&&at?tn[0]:tn};He&&b&&typeof Ve=="function"&&Ve.length!=1&&(ye=He=!1);var at=this.__chain__,bt=!!this.__actions__.length,Dt=K&&!at,Xt=ye&&!bt;if(!K&&He){ie=Xt?ie:new $t(this);var Pt=s.apply(ie,he);return Pt.__actions__.push({func:ih,args:[Xe],thisArg:n}),new Tr(Pt,at)}return Dt&&Xt?s.apply(this,he):(Pt=this.thru(Xe),Dt?O?Pt.value()[0]:Pt.value():Pt)})}),te(["pop","push","shift","sort","splice","unshift"],function(s){var u=Yn[s],b=/^(?:push|sort|unshift)$/.test(s)?"tap":"thru",O=/^(?:pop|shift)$/.test(s);W.prototype[s]=function(){var $=arguments;if(O&&!this.__chain__){var K=this.value();return u.apply(Ht(K)?K:[],$)}return this[b](function(ie){return u.apply(Ht(ie)?ie:[],$)})}}),Si($t.prototype,function(s,u){var b=W[u];if(b){var O=b.name+"";kt.call(Hs,O)||(Hs[O]=[]),Hs[O].push({name:u,func:b})}}),Hs[xe(n,_).name]=[{name:"wrapper",func:n}],$t.prototype.clone=Ll,$t.prototype.reverse=Qa,$t.prototype.value=Fl,W.prototype.at=QO,W.prototype.chain=e_,W.prototype.commit=t_,W.prototype.next=n_,W.prototype.plant=i_,W.prototype.reverse=o_,W.prototype.toJSON=W.prototype.valueOf=W.prototype.value=s_,W.prototype.first=W.prototype.head,Xi&&(W.prototype[Xi]=r_),W},ke=Ce();yi?((yi.exports=ke)._=ke,Mo._=ke):ln._=ke}).call(Ei)})(bp,bp.exports);var qD=bp.exports;const y6=Oc(qD);function O1(t){return typeof t=="number"&&isFinite(t)&&Math.floor(t)===t}function b6(t){var e=t.lastRenderedStartIndex,n=t.lastRenderedStopIndex,r=t.startIndex,i=t.stopIndex;return!(r>n||i<e)}function w6(t){for(var e=t.isItemLoaded,n=t.itemCount,r=t.minimumBatchSize,i=t.startIndex,o=t.stopIndex,a=[],c=null,d=null,p=i;p<=o;p++){var w=e(p);w?d!==null&&(a.push(c,d),c=d=null):(d=p,c===null&&(c=p))}if(d!==null){for(var m=Math.min(Math.max(d,c+r-1),n-1),T=d+1;T<=m&&!e(T);T++)d=T;a.push(c,d)}if(a.length)for(;a[1]-a[0]+1<r&&a[0]>0;){var E=a[0]-1;if(!e(E))a[0]=E;else break}return a}var x6=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")},S6=function(){function t(e,n){for(var r=0;r<n.length;r++){var i=n[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),T6=function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)},_1=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t},C6=function(t){T6(e,t);function e(){var n,r,i,o;x6(this,e);for(var a=arguments.length,c=Array(a),d=0;d<a;d++)c[d]=arguments[d];return o=(r=(i=_1(this,(n=e.__proto__||Object.getPrototypeOf(e)).call.apply(n,[this].concat(c))),i),i._lastRenderedStartIndex=-1,i._lastRenderedStopIndex=-1,i._memoizedUnloadedRanges=[],i._onItemsRendered=function(p){var w=p.visibleStartIndex,m=p.visibleStopIndex;process.env.NODE_ENV!=="production"&&((!O1(w)||!O1(m))&&console.warn("Invalid onItemsRendered signature; please refer to InfiniteLoader documentation."),typeof i.props.loadMoreRows=="function"&&console.warn('InfiniteLoader "loadMoreRows" prop has been renamed to "loadMoreItems".')),i._lastRenderedStartIndex=w,i._lastRenderedStopIndex=m,i._ensureRowsLoaded(w,m)},i._setRef=function(p){i._listRef=p},r),_1(i,o)}return S6(e,[{key:"resetloadMoreItemsCache",value:function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;this._memoizedUnloadedRanges=[],r&&this._ensureRowsLoaded(this._lastRenderedStartIndex,this._lastRenderedStopIndex)}},{key:"componentDidMount",value:function(){process.env.NODE_ENV!=="production"&&this._listRef==null&&console.warn("Invalid list ref; please refer to InfiniteLoader documentation.")}},{key:"render",value:function(){var r=this.props.children;return r({onItemsRendered:this._onItemsRendered,ref:this._setRef})}},{key:"_ensureRowsLoaded",value:function(r,i){var o=this.props,a=o.isItemLoaded,c=o.itemCount,d=o.minimumBatchSize,p=d===void 0?10:d,w=o.threshold,m=w===void 0?15:w,T=w6({isItemLoaded:a,itemCount:c,minimumBatchSize:p,startIndex:Math.max(0,r-m),stopIndex:Math.min(c-1,i+m)});(this._memoizedUnloadedRanges.length!==T.length||this._memoizedUnloadedRanges.some(function(E,A){return T[A]!==E}))&&(this._memoizedUnloadedRanges=T,this._loadUnloadedRanges(T))}},{key:"_loadUnloadedRanges",value:function(r){for(var i=this,o=this.props.loadMoreItems||this.props.loadMoreRows,a=function(p){var w=r[p],m=r[p+1],T=o(w,m);T!=null&&T.then(function(){if(b6({lastRenderedStartIndex:i._lastRenderedStartIndex,lastRenderedStopIndex:i._lastRenderedStopIndex,startIndex:w,stopIndex:m})){if(i._listRef==null)return;typeof i._listRef.resetAfterIndex=="function"?i._listRef.resetAfterIndex(w,!0):(typeof i._listRef._getItemStyleCache=="function"&&i._listRef._getItemStyleCache(-1),i._listRef.forceUpdate())}})},c=0;c<r.length;c+=2)a(c)}}]),e}(X.PureComponent),XD={exports:{}};/*!
162
+ }`;var Xt=i0(function(){return st(K,bt+"return "+Xe).apply(n,ie)});if(Xt.source=Xe,fg(Xt))throw Xt;return Xt}function mA(s){return gn(s).toLowerCase()}function vA(s){return gn(s).toUpperCase()}function yA(s,u,b){if(s=gn(s),s&&(b||u===n))return We(s);if(!s||!(u=Hr(u)))return s;var O=cn(s),$=cn(u),K=vt(O,$),ie=An(O,$)+1;return ys(O,K,ie).join("")}function bA(s,u,b){if(s=gn(s),s&&(b||u===n))return s.slice(0,_l(s)+1);if(!s||!(u=Hr(u)))return s;var O=cn(s),$=An(O,cn(u))+1;return ys(O,0,$).join("")}function wA(s,u,b){if(s=gn(s),s&&(b||u===n))return s.replace(an,"");if(!s||!(u=Hr(u)))return s;var O=cn(s),$=vt(O,cn(u));return ys(O,$).join("")}function xA(s,u){var b=Ue,O=nt;if(qn(u)){var $="separator"in u?u.separator:$;b="length"in u?Yt(u.length):b,O="omission"in u?Hr(u.omission):O}s=gn(s);var K=s.length;if(Qr(s)){var ie=cn(s);K=ie.length}if(b>=K)return s;var he=b-vo(O);if(he<1)return O;var ye=ie?ys(ie,0,he).join(""):s.slice(0,he);if($===n)return ye+O;if(ie&&(he+=ye.length-he),dg($)){if(s.slice(he).search($)){var Ve,He=ye;for($.global||($=It($.source,gn(Or.exec($))+"g")),$.lastIndex=0;Ve=$.exec(He);)var Xe=Ve.index;ye=ye.slice(0,Xe===n?he:Xe)}}else if(s.indexOf(Hr($),he)!=he){var at=ye.lastIndexOf($);at>-1&&(ye=ye.slice(0,at))}return ye+O}function SA(s){return s=gn(s),s&&si.test(s)?s.replace(Qn,ha):s}var TA=x(function(s,u,b){return s+(b?" ":"")+u.toUpperCase()}),gg=g("toUpperCase");function r0(s,u,b){return s=gn(s),u=b?n:u,u===n?za(s)?de(s):Lt(s):s.match(u)||[]}var i0=Bt(function(s,u){try{return V(s,n,u)}catch(b){return fg(b)?b:new Fe(b)}}),CA=fl(function(s,u){return te(u,function(b){b=Aa(b),xi(s,b,ug(s[b],s))}),s});function EA(s){var u=s==null?0:s.length,b=Ct();return s=u?it(s,function(O){if(typeof O[1]!="function")throw new Vt(a);return[b(O[0]),O[1]]}):[],Bt(function(O){for(var $=-1;++$<u;){var K=s[$];if(V(K[0],this,O))return V(K[1],this,O)}})}function kA(s){return Vu(Vr(s,m))}function mg(s){return function(){return s}}function DA(s,u){return s==null||s!==s?u:s}var PA=ne(),OA=ne(!0);function Po(s){return s}function vg(s){return Yl(typeof s=="function"?s:Vr(s,m))}function _A(s){return Co(Vr(s,m))}function RA(s,u){return ol(s,Vr(u,m))}var AA=Bt(function(s,u){return function(b){return To(b,s,u)}}),IA=Bt(function(s,u){return function(b){return To(s,b,u)}});function yg(s,u,b){var O=ri(u),$=Ta(u,O);b==null&&!(qn(u)&&($.length||!O.length))&&(b=u,u=s,s=this,$=Ta(u,ri(u)));var K=!(qn(b)&&"chain"in b)||!!b.chain,ie=hl(s);return te($,function(he){var ye=u[he];s[he]=ye,ie&&(s.prototype[he]=function(){var Ve=this.__chain__;if(K||Ve){var He=s(this.__wrapped__),Xe=He.__actions__=Wr(this.__actions__);return Xe.push({func:ye,args:arguments,thisArg:s}),He.__chain__=Ve,He}return ye.apply(s,Tt([this.value()],arguments))})}),s}function MA(){return ln._===this&&(ln._=_u),this}function bg(){}function LA(s){return s=Yt(s),Bt(function(u){return Pa(u,s)})}var FA=tt(it),NA=tt(Oe),jA=tt(un);function o0(s){return rg(s)?D(Aa(s)):zc(s)}function BA(s){return function(u){return s==null?n:gs(s,u)}}var $A=ir(),VA=ir(!0);function wg(){return[]}function xg(){return!1}function HA(){return{}}function UA(){return""}function WA(){return!0}function zA(s,u){if(s=Yt(s),s<1||s>Be)return[];var b=Se,O=Gn(s,Se);u=Ct(u),s-=Se;for(var $=we(O,u);++b<s;)u(b);return $}function YA(s){return Ht(s)?it(s,Aa):zo(s)?[s]:Wr(Eb(gn(s)))}function GA(s){var u=++Pu;return gn(s)+u}var qA=ze(function(s,u){return s+u},0),XA=eo("ceil"),KA=ze(function(s,u){return s/u},1),ZA=eo("floor");function JA(s){return s&&s.length?Bl(s,Po,qs):n}function QA(s,u){return s&&s.length?Bl(s,Ct(u,2),qs):n}function eI(s){return Sr(s,Po)}function tI(s,u){return Sr(s,Ct(u,2))}function nI(s){return s&&s.length?Bl(s,Po,Zi):n}function rI(s,u){return s&&s.length?Bl(s,Ct(u,2),Zi):n}var iI=ze(function(s,u){return s*u},1),oI=eo("round"),sI=ze(function(s,u){return s-u},0);function aI(s){return s&&s.length?be(s,Po):0}function lI(s,u){return s&&s.length?be(s,Ct(u,2)):0}return W.after=__,W.ary=Fb,W.assign=vR,W.assignIn=Kb,W.assignInWith=fh,W.assignWith=yR,W.at=bR,W.before=Nb,W.bind=ug,W.bindAll=CA,W.bindKey=jb,W.castArray=H_,W.chain=Ib,W.chunk=ZP,W.compact=JP,W.concat=QP,W.cond=EA,W.conforms=kA,W.constant=mg,W.countBy=a_,W.create=wR,W.curry=Bb,W.curryRight=$b,W.debounce=Vb,W.defaults=xR,W.defaultsDeep=SR,W.defer=R_,W.delay=A_,W.difference=eO,W.differenceBy=tO,W.differenceWith=nO,W.drop=rO,W.dropRight=iO,W.dropRightWhile=oO,W.dropWhile=sO,W.fill=aO,W.filter=u_,W.flatMap=d_,W.flatMapDeep=h_,W.flatMapDepth=p_,W.flatten=Ob,W.flattenDeep=lO,W.flattenDepth=uO,W.flip=I_,W.flow=PA,W.flowRight=OA,W.fromPairs=cO,W.functions=OR,W.functionsIn=_R,W.groupBy=g_,W.initial=dO,W.intersection=hO,W.intersectionBy=pO,W.intersectionWith=gO,W.invert=AR,W.invertBy=IR,W.invokeMap=v_,W.iteratee=vg,W.keyBy=y_,W.keys=ri,W.keysIn=Do,W.map=oh,W.mapKeys=LR,W.mapValues=FR,W.matches=_A,W.matchesProperty=RA,W.memoize=ah,W.merge=NR,W.mergeWith=Zb,W.method=AA,W.methodOf=IA,W.mixin=yg,W.negate=lh,W.nthArg=LA,W.omit=jR,W.omitBy=BR,W.once=M_,W.orderBy=b_,W.over=FA,W.overArgs=L_,W.overEvery=NA,W.overSome=jA,W.partial=cg,W.partialRight=Hb,W.partition=w_,W.pick=$R,W.pickBy=Jb,W.property=o0,W.propertyOf=BA,W.pull=bO,W.pullAll=Rb,W.pullAllBy=wO,W.pullAllWith=xO,W.pullAt=SO,W.range=$A,W.rangeRight=VA,W.rearg=F_,W.reject=T_,W.remove=TO,W.rest=N_,W.reverse=ag,W.sampleSize=E_,W.set=HR,W.setWith=UR,W.shuffle=k_,W.slice=CO,W.sortBy=O_,W.sortedUniq=RO,W.sortedUniqBy=AO,W.split=dA,W.spread=j_,W.tail=IO,W.take=MO,W.takeRight=LO,W.takeRightWhile=FO,W.takeWhile=NO,W.tap=JO,W.throttle=B_,W.thru=ih,W.toArray=Gb,W.toPairs=Qb,W.toPairsIn=e0,W.toPath=YA,W.toPlainObject=Xb,W.transform=WR,W.unary=$_,W.union=jO,W.unionBy=BO,W.unionWith=$O,W.uniq=VO,W.uniqBy=HO,W.uniqWith=UO,W.unset=zR,W.unzip=lg,W.unzipWith=Ab,W.update=YR,W.updateWith=GR,W.values=sf,W.valuesIn=qR,W.without=WO,W.words=r0,W.wrap=V_,W.xor=zO,W.xorBy=YO,W.xorWith=GO,W.zip=qO,W.zipObject=XO,W.zipObjectDeep=KO,W.zipWith=ZO,W.entries=Qb,W.entriesIn=e0,W.extend=Kb,W.extendWith=fh,yg(W,W),W.add=qA,W.attempt=i0,W.camelCase=JR,W.capitalize=t0,W.ceil=XA,W.clamp=XR,W.clone=U_,W.cloneDeep=z_,W.cloneDeepWith=Y_,W.cloneWith=W_,W.conformsTo=G_,W.deburr=n0,W.defaultTo=DA,W.divide=KA,W.endsWith=QR,W.eq=na,W.escape=eA,W.escapeRegExp=tA,W.every=l_,W.find=c_,W.findIndex=Db,W.findKey=TR,W.findLast=f_,W.findLastIndex=Pb,W.findLastKey=CR,W.floor=ZA,W.forEach=Mb,W.forEachRight=Lb,W.forIn=ER,W.forInRight=kR,W.forOwn=DR,W.forOwnRight=PR,W.get=hg,W.gt=q_,W.gte=X_,W.has=RR,W.hasIn=pg,W.head=_b,W.identity=Po,W.includes=m_,W.indexOf=fO,W.inRange=KR,W.invoke=MR,W.isArguments=ic,W.isArray=Ht,W.isArrayBuffer=K_,W.isArrayLike=ko,W.isArrayLikeObject=hr,W.isBoolean=Z_,W.isBuffer=tu,W.isDate=J_,W.isElement=Q_,W.isEmpty=eR,W.isEqual=tR,W.isEqualWith=nR,W.isError=fg,W.isFinite=rR,W.isFunction=hl,W.isInteger=Ub,W.isLength=uh,W.isMap=Wb,W.isMatch=iR,W.isMatchWith=oR,W.isNaN=sR,W.isNative=aR,W.isNil=uR,W.isNull=lR,W.isNumber=zb,W.isObject=qn,W.isObjectLike=or,W.isPlainObject=Jf,W.isRegExp=dg,W.isSafeInteger=cR,W.isSet=Yb,W.isString=ch,W.isSymbol=zo,W.isTypedArray=of,W.isUndefined=fR,W.isWeakMap=dR,W.isWeakSet=hR,W.join=mO,W.kebabCase=nA,W.last=xs,W.lastIndexOf=vO,W.lowerCase=rA,W.lowerFirst=iA,W.lt=pR,W.lte=gR,W.max=JA,W.maxBy=QA,W.mean=eI,W.meanBy=tI,W.min=nI,W.minBy=rI,W.stubArray=wg,W.stubFalse=xg,W.stubObject=HA,W.stubString=UA,W.stubTrue=WA,W.multiply=iI,W.nth=yO,W.noConflict=MA,W.noop=bg,W.now=sh,W.pad=oA,W.padEnd=sA,W.padStart=aA,W.parseInt=lA,W.random=ZR,W.reduce=x_,W.reduceRight=S_,W.repeat=uA,W.replace=cA,W.result=VR,W.round=oI,W.runInContext=Z,W.sample=C_,W.size=D_,W.snakeCase=fA,W.some=P_,W.sortedIndex=EO,W.sortedIndexBy=kO,W.sortedIndexOf=DO,W.sortedLastIndex=PO,W.sortedLastIndexBy=OO,W.sortedLastIndexOf=_O,W.startCase=hA,W.startsWith=pA,W.subtract=sI,W.sum=aI,W.sumBy=lI,W.template=gA,W.times=zA,W.toFinite=pl,W.toInteger=Yt,W.toLength=qb,W.toLower=mA,W.toNumber=Ss,W.toSafeInteger=mR,W.toString=gn,W.toUpper=vA,W.trim=yA,W.trimEnd=bA,W.trimStart=wA,W.truncate=xA,W.unescape=SA,W.uniqueId=GA,W.upperCase=TA,W.upperFirst=gg,W.each=Mb,W.eachRight=Lb,W.first=_b,yg(W,function(){var s={};return Si(W,function(u,b){kt.call(W.prototype,b)||(s[b]=u)}),s}(),{chain:!1}),W.VERSION=r,te(["bind","bindKey","curry","curryRight","partial","partialRight"],function(s){W[s].placeholder=W}),te(["drop","take"],function(s,u){$t.prototype[s]=function(b){b=b===n?1:wn(Yt(b),0);var O=this.__filtered__&&!u?new $t(this):this.clone();return O.__filtered__?O.__takeCount__=Gn(b,O.__takeCount__):O.__views__.push({size:Gn(b,Se),type:s+(O.__dir__<0?"Right":"")}),O},$t.prototype[s+"Right"]=function(b){return this.reverse()[s](b).reverse()}}),te(["filter","map","takeWhile"],function(s,u){var b=u+1,O=b==Me||b==me;$t.prototype[s]=function($){var K=this.clone();return K.__iteratees__.push({iteratee:Ct($,3),type:b}),K.__filtered__=K.__filtered__||O,K}}),te(["head","last"],function(s,u){var b="take"+(u?"Right":"");$t.prototype[s]=function(){return this[b](1).value()[0]}}),te(["initial","tail"],function(s,u){var b="drop"+(u?"":"Right");$t.prototype[s]=function(){return this.__filtered__?new $t(this):this[b](1)}}),$t.prototype.compact=function(){return this.filter(Po)},$t.prototype.find=function(s){return this.filter(s).head()},$t.prototype.findLast=function(s){return this.reverse().find(s)},$t.prototype.invokeMap=Bt(function(s,u){return typeof s=="function"?new $t(this):this.map(function(b){return To(b,s,u)})}),$t.prototype.reject=function(s){return this.filter(lh(Ct(s)))},$t.prototype.slice=function(s,u){s=Yt(s);var b=this;return b.__filtered__&&(s>0||u<0)?new $t(b):(s<0?b=b.takeRight(-s):s&&(b=b.drop(s)),u!==n&&(u=Yt(u),b=u<0?b.dropRight(-u):b.take(u-s)),b)},$t.prototype.takeRightWhile=function(s){return this.reverse().takeWhile(s).reverse()},$t.prototype.toArray=function(){return this.take(Se)},Si($t.prototype,function(s,u){var b=/^(?:filter|find|map|reject)|While$/.test(u),O=/^(?:head|last)$/.test(u),$=W[O?"take"+(u=="last"?"Right":""):u],K=O||/^find/.test(u);$&&(W.prototype[u]=function(){var ie=this.__wrapped__,he=O?[1]:arguments,ye=ie instanceof $t,Ve=he[0],He=ye||Ht(ie),Xe=function(Jt){var tn=$.apply(W,Tt([Jt],he));return O&&at?tn[0]:tn};He&&b&&typeof Ve=="function"&&Ve.length!=1&&(ye=He=!1);var at=this.__chain__,bt=!!this.__actions__.length,Dt=K&&!at,Xt=ye&&!bt;if(!K&&He){ie=Xt?ie:new $t(this);var Pt=s.apply(ie,he);return Pt.__actions__.push({func:ih,args:[Xe],thisArg:n}),new Tr(Pt,at)}return Dt&&Xt?s.apply(this,he):(Pt=this.thru(Xe),Dt?O?Pt.value()[0]:Pt.value():Pt)})}),te(["pop","push","shift","sort","splice","unshift"],function(s){var u=Yn[s],b=/^(?:push|sort|unshift)$/.test(s)?"tap":"thru",O=/^(?:pop|shift)$/.test(s);W.prototype[s]=function(){var $=arguments;if(O&&!this.__chain__){var K=this.value();return u.apply(Ht(K)?K:[],$)}return this[b](function(ie){return u.apply(Ht(ie)?ie:[],$)})}}),Si($t.prototype,function(s,u){var b=W[u];if(b){var O=b.name+"";kt.call(Hs,O)||(Hs[O]=[]),Hs[O].push({name:u,func:b})}}),Hs[xe(n,_).name]=[{name:"wrapper",func:n}],$t.prototype.clone=Ll,$t.prototype.reverse=Qa,$t.prototype.value=Fl,W.prototype.at=QO,W.prototype.chain=e_,W.prototype.commit=t_,W.prototype.next=n_,W.prototype.plant=i_,W.prototype.reverse=o_,W.prototype.toJSON=W.prototype.valueOf=W.prototype.value=s_,W.prototype.first=W.prototype.head,Xi&&(W.prototype[Xi]=r_),W},ke=Ce();yi?((yi.exports=ke)._=ke,Mo._=ke):ln._=ke}).call(Ei)})(bp,bp.exports);var qD=bp.exports;const C6=Oc(qD);var XD={exports:{}};/*!
163
163
  * jQuery JavaScript Library v3.7.1
164
164
  * https://jquery.com/
165
165
  *
@@ -1075,4 +1075,4 @@ function print() { __p += __j.call(arguments, '') }
1075
1075
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1076
1076
  * See the License for the specific language governing permissions and
1077
1077
  * limitations under the License.
1078
- */function SY(t=$8()){return wY().then(e=>{if(!e)throw Bi.create("unsupported-browser")},e=>{throw Bi.create("indexed-db-unsupported")}),ib(nb(t),"messaging").getImmediate()}async function TY(t,e){return t=nb(t),RP(t,e)}function CY(t,e){return t=nb(t),xY(t,e)}bY();exports.AuthContext=Nv;exports.AuthProvider=lM;exports.CustomOpenList=sT;exports.CustomOpenListProvider=GI;exports.DateRangePicker=P6;exports.ERROR_MESSAGE=nT;exports.FavoriteMenu=n6;exports.GlobalMenu=m6;exports.IconComponent=FD;exports.InfiniteLoader=C6;exports.Language=Bv;exports.LogoutConfirmModal=q1;exports.PropTypes=_s;exports.Q=F2;exports.SaasThemeProvider=oM;exports.StyleWrapper=$v;exports.TranslationProvider=mL;exports._=y6;exports._assertThisInitialized=xl;exports._extends=Rf;exports._extends$1=e4;exports._inheritsLoose=RD;exports._objectWithoutPropertiesLoose=jv;exports.activeStyles=Qy;exports.axiosInstance=As;exports.clsx=bl;exports.color=ki;exports.commonjsGlobal=Ei;exports.createCustomTheme=cT;exports.getAugmentedNamespace=kM;exports.getMessagingInWindow=SY;exports.getToken=TY;exports.handleErrorAxios=oT;exports.initializeApp=oP;exports.lodashExports=qD;exports.login=rT;exports.logout=iT;exports.notify=H2;exports.objectWithoutPropertiesLoose=EM;exports.onMessage=CY;exports.pushError=Wd;exports.pushSuccess=zv;exports.pushWarning=V2;exports.responseInterceptor=YI;exports.search=cM;exports.setFavicon=fT;exports.setShellBackdrop=fM;exports.styles=v6;exports.translate=pL;exports.translationConfig=hL;exports.updateFavoriteItems=tb;exports.useAuth=uM;exports.useCustomTranslation=dL;exports.useTheme=iM;exports.useTranslation=wT;exports.useTranslation$1=gL;
1078
+ */function SY(t=$8()){return wY().then(e=>{if(!e)throw Bi.create("unsupported-browser")},e=>{throw Bi.create("indexed-db-unsupported")}),ib(nb(t),"messaging").getImmediate()}async function TY(t,e){return t=nb(t),RP(t,e)}function CY(t,e){return t=nb(t),xY(t,e)}bY();exports.AuthContext=Nv;exports.AuthProvider=lM;exports.CustomOpenList=sT;exports.CustomOpenListProvider=GI;exports.DateRangePicker=P6;exports.ERROR_MESSAGE=nT;exports.FavoriteMenu=l6;exports.GlobalMenu=S6;exports.IconComponent=FD;exports.InfiniteLoader=SL;exports.Language=Bv;exports.LogoutConfirmModal=q1;exports.PropTypes=_s;exports.Q=U2;exports.SaasThemeProvider=oM;exports.StyleWrapper=$v;exports.TranslationProvider=mL;exports._=C6;exports._assertThisInitialized=xl;exports._extends=kf;exports._extends$1=TL;exports._inheritsLoose=_T;exports._objectWithoutPropertiesLoose=jv;exports.activeStyles=Qy;exports.axiosInstance=As;exports.clsx=bl;exports.color=ki;exports.commonjsGlobal=Ei;exports.createCustomTheme=cT;exports.getAugmentedNamespace=kM;exports.getMessagingInWindow=SY;exports.getToken=TY;exports.handleErrorAxios=oT;exports.initializeApp=oP;exports.lodashExports=qD;exports.login=rT;exports.logout=iT;exports.notify=X2;exports.objectWithoutPropertiesLoose=EM;exports.onMessage=CY;exports.pushError=Wd;exports.pushSuccess=zv;exports.pushWarning=q2;exports.responseInterceptor=YI;exports.search=cM;exports.setFavicon=fT;exports.setShellBackdrop=fM;exports.styles=T6;exports.translate=pL;exports.translationConfig=hL;exports.updateFavoriteItems=tb;exports.useAuth=uM;exports.useCustomTranslation=dL;exports.useTheme=iM;exports.useTranslation=wT;exports.useTranslation$1=gL;