@ukpc-lib/react 0.12.1-dev.0 → 0.12.1-dev.2

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 (32) hide show
  1. package/dist/components/BaseBreadcrumb/index.d.ts +17 -0
  2. package/dist/components/FavoriteMenu/components/MenuItem.d.ts +4 -1
  3. package/dist/components/index.cjs +18 -22
  4. package/dist/components/index.js +2056 -1791
  5. package/dist/components/main.d.ts +1 -0
  6. package/dist/{index.esm2017-e23bb13e.js → index.esm2017-DDLWZ0Nk.js} +18083 -18035
  7. package/dist/index.esm2017-w6a00bjk.cjs +1078 -0
  8. package/dist/share/index.cjs +1 -1
  9. package/dist/share/index.js +1 -1
  10. package/package.json +2 -2
  11. package/web-components-bundle/access-denied/index.js +2 -3
  12. package/web-components-bundle/base-breadcrumbs/index.js +5 -0
  13. package/web-components-bundle/clsx-DB4S2d7J.js +22 -0
  14. package/web-components-bundle/favorite-menu/index.js +6 -8
  15. package/web-components-bundle/global-menu/index.js +5 -7
  16. package/web-components-bundle/global-topbar/index.js +8 -6
  17. package/web-components-bundle/has-permission/index.js +4 -7
  18. package/web-components-bundle/index-BSe1av43.js +48 -0
  19. package/web-components-bundle/index-BziS9Had.js +5410 -0
  20. package/web-components-bundle/index-DF84iLUH.js +39957 -0
  21. package/web-components-bundle/{index-a07af468.js → index-T58UE-6b.js} +361 -376
  22. package/web-components-bundle/page-not-found/index.js +6 -0
  23. package/web-components-bundle/react-to-web-component-CXwKHjZr.js +6388 -0
  24. package/web-components-bundle/react-toastify.esm-CrTD7cpE.js +320 -0
  25. package/web-components-bundle/setPrototypeOf-BVKdEITT.js +14 -0
  26. package/web-components-bundle/toast-config/index.js +2 -2
  27. package/web-components-bundle/toast-config-notification/index.js +3 -4
  28. package/dist/components/FavoriteMenu/data.json.d.ts +0 -2414
  29. package/dist/index.esm2017-5e128de3.cjs +0 -1101
  30. package/web-components-bundle/index-4908ae68.js +0 -44773
  31. package/web-components-bundle/react-to-web-component-d5889290.js +0 -6388
  32. package/web-components-bundle/react-toastify.esm-d8df41b8.js +0 -339
@@ -0,0 +1,1078 @@
1
+ var fY=require("./index.css");const Ie=require("react/jsx-runtime"),q=require("react"),JA=require("axios"),QA=require("moment"),oa=require("@mui/material"),Ed=require("react-query");require("@r2wc/react-to-web-component");const bp=require("react-router-dom"),Ov=require("react-dom");function eI(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 tI(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=eI(q),nI=".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 L1({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 Ie.jsxs(Ie.Fragment,{children:[Ie.jsx("style",{type:"text/css",children:nI}),Ie.jsx("div",{onClick:r,className:"modal-overlay",id:"modal-wrapper",children:Ie.jsxs("div",{className:"modal-container",children:[Ie.jsx("h3",{className:"modal-title",children:"Log out"}),Ie.jsx("p",{className:"text-sm",children:"Are you sure want to log out?"}),Ie.jsxs("div",{className:"modal-footer",children:[Ie.jsx("button",{className:"modal-button cancel-btn",onClick:e,children:"Cancel"}),Ie.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 rI(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 F1(t){var e=rI(t,"string");return Jo(e)=="symbol"?e:e+""}function t0(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,F1(r.key),r)}}function ns(t,e,n){return e&&t0(t.prototype,e),n&&t0(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function wl(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Yh(t,e){return Yh=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},Yh(t,e)}function wp(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&&Yh(t,e)}function Vd(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 wl(t)}function $a(t){return $a=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},$a(t)}function Va(t,e,n){return(e=F1(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function N1(t){if(Array.isArray(t))return t}function iI(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function n0(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 j1(t,e){if(t){if(typeof t=="string")return n0(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)?n0(t,e):void 0}}function B1(){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 oI(t){return N1(t)||iI(t)||j1(t)||B1()}function r0(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 i0(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?r0(Object(n),!0).forEach(function(r){Va(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):r0(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}var sI={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)}},aI=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||sI,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,i0(i0({},{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}(),La=new aI,pu=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(f){f.apply(void 0,i)})}if(this.observers["*"]){var c=[].concat(this.observers["*"]);c.forEach(function(f){f.apply(f,[n].concat(i))})}}}]),t}();function Zf(){var t,e,n=new Promise(function(r,i){t=r,e=i});return n.resolve=t,n.reject=e,n}function o0(t){return t==null?"":""+t}function lI(t,e,n){t.forEach(function(r){e[r]&&(n[r]=e[r])})}function _v(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 s0(t,e,n){var r=_v(t,e,Object),i=r.obj,o=r.k;i[o]=n}function uI(t,e,n,r){var i=_v(t,e,Object),o=i.obj,a=i.k;o[a]=o[a]||[],o[a].push(n)}function Gh(t,e){var n=_v(t,e),r=n.obj,i=n.k;if(r)return r[i]}function cI(t,e,n){var r=Gh(t,n);return r!==void 0?r:Gh(e,n)}function $1(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]):$1(t[r],e[r],n):t[r]=e[r]);return t}function sf(t){return t.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var fI={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"};function dI(t){return typeof t=="string"?t.replace(/[&<>"'\/]/g,function(e){return fI[e]}):t}var xp=typeof window<"u"&&window.navigator&&typeof window.navigator.userAgentData>"u"&&window.navigator.userAgent&&window.navigator.userAgent.indexOf("MSIE")>-1,hI=[" ",",","?","!",";"];function pI(t,e,n){e=e||"",n=n||"";var r=hI.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 qh(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),f=i[c];f===void 0&&r.length>o+a;)a++,c=r.slice(o,o+a).join(n),f=i[c];if(f===void 0)return;if(f===null)return null;if(e.endsWith(c)){if(typeof f=="string")return f;if(c&&typeof f[c]=="string")return f[c]}var p=r.slice(o+a).join(n);return p?qh(f,p,n):void 0}i=i[r[o]]}return i}}function a0(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 ch(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?a0(Object(n),!0).forEach(function(r){Va(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):a0(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function gI(t){var e=mI();return function(){var r=$a(t),i;if(e){var o=$a(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return Vd(this,i)}}function mI(){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 vI=function(t){wp(n,t);var e=gI(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),xp&&pu.call(wl(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]:{},f=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(f?a.split(f):a)),i.indexOf(".")>-1&&(w=i.split("."));var g=Gh(this.data,w);return g||!p||typeof a!="string"?g:qh(this.data&&this.data[i]&&this.data[i][o],a,f)}},{key:"addResource",value:function(i,o,a,c){var f=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{silent:!1},p=f.keySeparator!==void 0?f.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),s0(this.data,w,c),f.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 f in a)(typeof a[f]=="string"||Object.prototype.toString.apply(a[f])==="[object Array]")&&this.addResource(i,o,f,a[f],{silent:!0});c.silent||this.emit("added",i,o,a)}},{key:"addResourceBundle",value:function(i,o,a,c,f){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 g=Gh(this.data,w)||{};c?$1(g,a,f):g=ch(ch({},g),a),s0(this.data,w,g),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"?ch(ch({},{}),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}(pu),V1={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 l0(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?l0(Object(n),!0).forEach(function(r){Va(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):l0(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function yI(t){var e=bI();return function(){var r=$a(t),i;if(e){var o=$a(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return Vd(this,i)}}function bI(){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 u0={},c0=function(t){wp(n,t);var e=yI(n);function n(r){var i,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return ts(this,n),i=e.call(this),xp&&pu.call(wl(i)),lI(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],r,wl(i)),i.options=o,i.options.keySeparator===void 0&&(i.options.keySeparator="."),i.logger=La.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,f=o.ns||this.options.defaultNS||[],p=a&&i.indexOf(a)>-1,w=!this.options.userDefinedKeySeparator&&!o.keySeparator&&!this.options.userDefinedNsSeparator&&!o.nsSeparator&&!pI(i,a,c);if(p&&!w){var g=i.match(this.interpolator.nestingRegexp);if(g&&g.length>0)return{key:i,namespaces:f};var T=i.split(a);(a!==c||a===c&&this.options.ns.indexOf(T[0])>-1)&&(f=T.shift()),i=T.join(c)}return typeof f=="string"&&(f=[f]),{key:i,namespaces:f}}},{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 f=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),g=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 f?{res:"".concat(E).concat(j).concat(g),usedKey:g,exactUsedKey:g,usedLng:A,usedNS:E}:"".concat(E).concat(j).concat(g)}return f?{res:g,usedKey:g,exactUsedKey:g,usedLng:A,usedNS:E}:g}var _=this.resolve(i,o),H=_&&_.res,W=_&&_.usedKey||g,re=_&&_.exactUsedKey||g,Z=Object.prototype.toString.apply(H),de=["[object Number]","[object Function]","[object RegExp]"],S=o.joinArrays!==void 0?o.joinArrays:this.options.joinArrays,le=!this.i18nFormat||this.i18nFormat.handleAsObject,ue=typeof H!="string"&&typeof H!="boolean"&&typeof H!="number";if(le&&H&&ue&&de.indexOf(Z)<0&&!(typeof S=="string"&&Z==="[object Array]")){if(!o.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");var ze=this.options.returnedObjectHandler?this.options.returnedObjectHandler(W,H,Li(Li({},o),{},{ns:T})):"key '".concat(g," (").concat(this.language,")' returned an object instead of string.");return f?(_.res=ze,_):ze}if(p){var Me=Z==="[object Array]",Fe=Me?[]:{},Ve=Me?re:W;for(var Ue in H)if(Object.prototype.hasOwnProperty.call(H,Ue)){var he="".concat(Ve).concat(p).concat(Ue);Fe[Ue]=this.translate(he,Li(Li({},o),{joinArrays:!1,ns:T})),Fe[Ue]===he&&(Fe[Ue]=H[Ue])}H=Fe}}else if(le&&typeof S=="string"&&Z==="[object Array]")H=H.join(S),H&&(H=this.extendTranslation(H,i,o,a));else{var ke=!1,Oe=!1,Ne=o.count!==void 0&&typeof o.count!="string",tt=n.hasDefaultValue(o),me=Ne?this.pluralResolver.getSuffix(A,o.count,o):"",Ee=o["defaultValue".concat(me)]||o.defaultValue;!this.isValidLookup(H)&&tt&&(ke=!0,H=Ee),this.isValidLookup(H)||(Oe=!0,H=g);var Ye=o.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey,We=Ye&&Oe?void 0:H,Je=tt&&Ee!==H&&this.options.updateMissing;if(Oe||ke||Je){if(this.logger.log(Je?"updateKey":"missingKey",A,E,g,Je?Ee:H),p){var Ze=this.resolve(g,Li(Li({},o),{},{keySeparator:!1}));Ze&&Ze.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=[],it=this.languageUtils.getFallbackCodes(this.options.fallbackLng,o.lng||this.language);if(this.options.saveMissingTo==="fallback"&&it&&it[0])for(var ht=0;ht<it.length;ht++)Qe.push(it[ht]);else this.options.saveMissingTo==="all"?Qe=this.languageUtils.toResolveHierarchy(o.lng||this.language):Qe.push(o.lng||this.language);var gt=function(yt,et,At){var Mt=tt&&At!==H?At:We;c.options.missingKeyHandler?c.options.missingKeyHandler(yt,E,et,Mt,Je,o):c.backendConnector&&c.backendConnector.saveMissing&&c.backendConnector.saveMissing(yt,E,et,Mt,Je,o),c.emit("missingKey",yt,E,et,H)};this.options.saveMissing&&(this.options.saveMissingPlurals&&Ne?Qe.forEach(function(ct){c.pluralResolver.getSuffixes(ct,o).forEach(function(yt){gt([ct],g+yt,o["defaultValue".concat(yt)]||Ee)})}):gt(Qe,g,Ee))}H=this.extendTranslation(H,i,o,_,a),Oe&&H===g&&this.options.appendNamespaceToMissingKey&&(H="".concat(E,":").concat(g)),(Oe||ke)&&this.options.parseMissingKeyHandler&&(this.options.compatibilityAPI!=="v1"?H=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?"".concat(E,":").concat(g):g,ke?H:void 0):H=this.options.parseMissingKeyHandler(H))}return f?(_.res=H,_):H}},{key:"extendTranslation",value:function(i,o,a,c,f){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),g;if(w){var T=i.match(this.interpolator.nestingRegexp);g=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;g<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 H=arguments.length,W=new Array(H),re=0;re<H;re++)W[re]=arguments[re];return f&&f[0]===W[0]&&!a.context?(p.logger.warn("It seems you are nesting recursively key: ".concat(W[0]," in key: ").concat(o[0])),null):p.translate.apply(p,W.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=V1.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,f,p,w,g;return typeof i=="string"&&(i=[i]),i.forEach(function(T){if(!o.isValidLookup(c)){var E=o.extractFromKey(T,a),A=E.key;f=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(),H=a.context!==void 0&&(typeof a.context=="string"||typeof a.context=="number")&&a.context!=="",W=a.lngs?a.lngs:o.languageUtils.toResolveHierarchy(a.lng||o.language,a.fallbackLng);I.forEach(function(re){o.isValidLookup(c)||(g=re,!u0["".concat(W[0],"-").concat(re)]&&o.utils&&o.utils.hasLoadedNamespace&&!o.utils.hasLoadedNamespace(g)&&(u0["".concat(W[0],"-").concat(re)]=!0,o.logger.warn('key "'.concat(f,'" for languages "').concat(W.join(", "),`" won't get resolved as namespace "`).concat(g,'" 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!!!")),W.forEach(function(Z){if(!o.isValidLookup(c)){w=Z;var de=[A];if(o.i18nFormat&&o.i18nFormat.addLookupKeys)o.i18nFormat.addLookupKeys(de,A,Z,re,a);else{var S;j&&(S=o.pluralResolver.getSuffix(Z,a.count,a));var le="".concat(o.options.pluralSeparator,"zero");if(j&&(de.push(A+S),_&&de.push(A+le)),H){var ue="".concat(A).concat(o.options.contextSeparator).concat(a.context);de.push(ue),j&&(de.push(ue+S),_&&de.push(ue+le))}}for(var ze;ze=de.pop();)o.isValidLookup(c)||(p=ze,c=o.getResource(Z,re,ze,a))}}))})}}),{res:c,usedKey:f,exactUsedKey:p,usedLng:w,usedNS:g}}},{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}(pu);function bg(t){return t.charAt(0).toUpperCase()+t.slice(1)}var f0=function(){function t(e){ts(this,t),this.options=e,this.supportedLngs=this.options.supportedLngs||!1,this.logger=La.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]=bg(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]=bg(i[1].toLowerCase())),r.indexOf(i[2].toLowerCase())>-1&&(i[2]=bg(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(f){a.indexOf(f)<0&&c(i.formatLanguageCode(f))}),a}}]),t}(),wI=[{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}],xI={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}},SI=["v1","v2","v3"],d0={zero:0,one:1,two:2,few:3,many:4,other:5};function TI(){var t={};return wI.forEach(function(e){e.lngs.forEach(function(n){t[n]={numbers:e.nr,plurals:xI[e.fc]}})}),t}var CI=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=La.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=TI()}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 d0[a]-d0[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!SI.includes(this.options.compatibilityJSON)}}]),t}();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 ra(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){Va(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 p0(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=cI(t,e,n);return!o&&i&&typeof n=="string"&&(o=qh(t,n,r),o===void 0&&(o=qh(e,n,r))),o}var EI=function(){function t(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};ts(this,t),this.logger=La.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:dI,this.escapeValue=r.escapeValue!==void 0?r.escapeValue:!0,this.useRawValueToEscape=r.useRawValueToEscape!==void 0?r.useRawValueToEscape:!1,this.prefix=r.prefix?sf(r.prefix):r.prefixEscaped||"{{",this.suffix=r.suffix?sf(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?sf(r.nestingPrefix):r.nestingPrefixEscaped||sf("$t("),this.nestingSuffix=r.nestingSuffix?sf(r.nestingSuffix):r.nestingSuffixEscaped||sf(")"),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,f,p,w=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function g(j){return j.replace(/\$/g,"$$$$")}var T=function(_){if(_.indexOf(a.formatSeparator)<0){var H=p0(r,w,_,a.options.keySeparator,a.options.ignoreJSONStructure);return a.alwaysFormat?a.format(H,void 0,i,ra(ra(ra({},o),r),{},{interpolationkey:_})):H}var W=_.split(a.formatSeparator),re=W.shift().trim(),Z=W.join(a.formatSeparator).trim();return a.format(p0(r,w,re,a.options.keySeparator,a.options.ignoreJSONStructure),Z,i,ra(ra(ra({},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 g(_)}},{regex:this.regexp,safeValue:function(_){return a.escapeValue?g(a.escape(_)):g(_)}}];return I.forEach(function(j){for(p=0;c=j.regex.exec(n);){var _=c[1].trim();if(f=T(_),f===void 0)if(typeof E=="function"){var H=E(n,c,o);f=typeof H=="string"?H:""}else if(o&&Object.prototype.hasOwnProperty.call(o,_))f="";else if(A){f=c[0];continue}else a.logger.warn("missed to pass in variable ".concat(_," for interpolating ").concat(n)),f="";else typeof f!="string"&&!a.useRawValueToEscape&&(f=o0(f));var W=j.safeValue(f);if(n=n.replace(c[0],W),A?(j.regex.lastIndex+=f.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,f;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(_,f);var H=_.match(/'/g),W=_.match(/"/g);(H&&H.length%2===0&&!W||W.length%2!==0)&&(_=_.replace(/'/g,'"'));try{f=JSON.parse(_),A&&(f=ra(ra({},A),f))}catch(re){return this.logger.warn("failed parsing options string in nesting for key ".concat(E),re),"".concat(E).concat(I).concat(_)}return delete f.defaultValue,E}for(;a=this.nestingRegexp.exec(n);){var w=[];f=ra({},o),f=f.replace&&typeof f.replace!="string"?f.replace:f,f.applyPostProcessor=!1,delete f.defaultValue;var g=!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,g=!0}if(c=r(p.call(this,a[1].trim(),f),f),c&&a[0]===n&&typeof c!="string")return c;typeof c!="string"&&(c=o0(c)),c||(this.logger.warn("missed to resolve ".concat(a[1]," for nesting ").concat(n)),c=""),g&&(c=w.reduce(function(E,A){return i.format(E,A,o.lng,ra(ra({},o),{},{interpolationkey:a[1].trim()}))},c.trim())),n=n.replace(a[0],c),this.regexp.lastIndex=0}return n}}]),t}();function g0(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 gl(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?g0(Object(n),!0).forEach(function(r){Va(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):g0(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function kI(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(":"),f=oI(c),p=f[0],w=f.slice(1),g=w.join(":").trim().replace(/^'+|'+$/g,"");n[p.trim()]||(n[p.trim()]=g),g==="false"&&(n[p.trim()]=!1),g==="true"&&(n[p.trim()]=!0),isNaN(g)||(n[p.trim()]=parseInt(g,10))}})}}return{formatName:e,formatOptions:n}}function af(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 DI=function(){function t(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};ts(this,t),this.logger=La.create("formatter"),this.options=e,this.formats={number:af(function(n,r){var i=new Intl.NumberFormat(n,gl({},r));return function(o){return i.format(o)}}),currency:af(function(n,r){var i=new Intl.NumberFormat(n,gl(gl({},r),{},{style:"currency"}));return function(o){return i.format(o)}}),datetime:af(function(n,r){var i=new Intl.DateTimeFormat(n,gl({},r));return function(o){return i.format(o)}}),relativetime:af(function(n,r){var i=new Intl.RelativeTimeFormat(n,gl({},r));return function(o){return i.format(o,r.range||"day")}}),list:af(function(n,r){var i=new Intl.ListFormat(n,gl({},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()]=af(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),f=c.reduce(function(p,w){var g=kI(w),T=g.formatName,E=g.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,gl(gl(gl({},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 f}}]),t}();function m0(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 v0(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?m0(Object(n),!0).forEach(function(r){Va(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):m0(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function PI(t){var e=OI();return function(){var r=$a(t),i;if(e){var o=$a(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return Vd(this,i)}}function OI(){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 _I(t,e){t.pending[e]!==void 0&&(delete t.pending[e],t.pendingCount--)}var RI=function(t){wp(n,t);var e=PI(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),xp&&pu.call(wl(a)),a.backend=r,a.store=i,a.services=o,a.languageUtils=o.languageUtils,a.options=c,a.logger=La.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 f=this,p={},w={},g={},T={};return i.forEach(function(E){var A=!0;o.forEach(function(I){var j="".concat(E,"|").concat(I);!a.reload&&f.store.hasResourceBundle(E,I)?f.state[j]=2:f.state[j]<0||(f.state[j]===1?w[j]===void 0&&(w[j]=!0):(f.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||(g[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(g),toLoadNamespaces:Object.keys(T)}}},{key:"loaded",value:function(i,o,a){var c=i.split("|"),f=c[0],p=c[1];o&&this.emit("failedLoading",f,p,o),a&&this.store.addResourceBundle(f,p,a),this.state[i]=o?-1:2;var w={};this.queue.forEach(function(g){uI(g.loaded,[f],p),_I(g,i),o&&g.errors.push(o),g.pendingCount===0&&!g.done&&(Object.keys(g.loaded).forEach(function(T){w[T]||(w[T]={});var E=g.loaded[T];E.length&&E.forEach(function(A){w[T][A]===void 0&&(w[T][A]=!0)})}),g.done=!0,g.errors.length?g.callback(g.errors):g.callback())}),this.emit("loaded",w),this.queue=this.queue.filter(function(g){return!g.done})}},{key:"read",value:function(i,o,a){var c=this,f=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:f,wait:p,callback:w});return}this.readingCalls++;var g=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&&f<c.maxRetries){setTimeout(function(){c.read.call(c,i,o,a,f+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 g(null,A)}).catch(g):g(null,E)}catch(A){g(A)}return}return T(i,o,g)}},{key:"prepareLoading",value:function(i,o){var a=this,c=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},f=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."),f&&f();typeof i=="string"&&(i=this.languageUtils.toResolveHierarchy(i)),typeof o=="string"&&(o=[o]);var p=this.queueLoad(i,o,c,f);if(!p.toLoad.length)return p.pending.length||f(),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("|"),f=c[0],p=c[1];this.read(f,p,"read",void 0,void 0,function(w,g){w&&o.logger.warn("".concat(a,"loading namespace ").concat(p," for language ").concat(f," failed"),w),!w&&g&&o.logger.log("".concat(a,"loaded namespace ").concat(p," for language ").concat(f),g),o.loaded(i,w,g)})}},{key:"saveMissing",value:function(i,o,a,c,f){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 g=v0(v0({},p),{},{isUpdate:f}),T=this.backend.create.bind(this.backend);if(T.length<6)try{var E;T.length===5?E=T(i,o,a,c,g):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,g)}!i||!i[0]||this.store.addResource(i[0],o,a,c)}}}]),n}(pu);function y0(){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 b0(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 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 Aa(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){Va(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 AI(t){var e=II();return function(){var r=$a(t),i;if(e){var o=$a(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return Vd(this,i)}}function II(){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 fh(){}function MI(t){var e=Object.getOwnPropertyNames(Object.getPrototypeOf(t));e.forEach(function(n){typeof t[n]=="function"&&(t[n]=t[n].bind(t))})}var Xh=function(t){wp(n,t);var e=AI(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),xp&&pu.call(wl(r)),r.options=b0(i),r.services={},r.logger=La,r.modules={external:[]},MI(wl(r)),o&&!r.isInitialized&&!i.isClone){if(!r.options.initImmediate)return r.init(i,o),Vd(r,wl(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=y0();this.options=Aa(Aa(Aa({},c),this.options),b0(o)),this.options.compatibilityAPI!=="v1"&&(this.options.interpolation=Aa(Aa({},c.interpolation),this.options.interpolation)),o.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=o.keySeparator),o.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=o.nsSeparator);function f(_){return _?typeof _=="function"?new _:_:null}if(!this.options.isClone){this.modules.logger?La.init(f(this.modules.logger),this.options):La.init(null,this.options);var p;this.modules.formatter?p=this.modules.formatter:typeof Intl<"u"&&(p=DI);var w=new f0(this.options);this.store=new vI(this.options.resources,this.options);var g=this.services;g.logger=La,g.resourceStore=this.store,g.languageUtils=w,g.pluralResolver=new CI(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)&&(g.formatter=f(p),g.formatter.init(g,this.options),this.options.interpolation.format=g.formatter.format.bind(g.formatter)),g.interpolator=new EI(this.options),g.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},g.backendConnector=new RI(f(this.modules.backend),g.resourceStore,g,this.options),g.backendConnector.on("*",function(_){for(var H=arguments.length,W=new Array(H>1?H-1:0),re=1;re<H;re++)W[re-1]=arguments[re];i.emit.apply(i,[_].concat(W))}),this.modules.languageDetector&&(g.languageDetector=f(this.modules.languageDetector),g.languageDetector.init&&g.languageDetector.init(g,this.options.detection,this.options)),this.modules.i18nFormat&&(g.i18nFormat=f(this.modules.i18nFormat),g.i18nFormat.init&&g.i18nFormat.init(this)),this.translator=new c0(this.services,this.options),this.translator.on("*",function(_){for(var H=arguments.length,W=new Array(H>1?H-1:0),re=1;re<H;re++)W[re-1]=arguments[re];i.emit.apply(i,[_].concat(W))}),this.modules.external.forEach(function(_){_.init&&_.init(i)})}if(this.format=this.options.interpolation.format,a||(a=fh),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 H;return(H=i.store)[_].apply(H,arguments)}});var A=["addResource","addResources","addResourceBundle","removeResourceBundle"];A.forEach(function(_){i[_]=function(){var H;return(H=i.store)[_].apply(H,arguments),i}});var I=Zf(),j=function(){var H=function(re,Z){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(Z),a(re,Z)};if(i.languages&&i.options.compatibilityAPI!=="v1"&&!i.isInitialized)return H(null,i.t.bind(i));i.changeLanguage(i.options.lng,H)};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]:fh,c=a,f=typeof i=="string"?i:this.language;if(typeof i=="function"&&(c=i),!this.options.resources||this.options.partialBundledLanguages){if(f&&f.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(f)w(f);else{var g=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);g.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=Zf();return i||(i=this.languages),o||(o=this.options.ns),a||(a=fh),this.services.backendConnector.reload(i,o,function(f){c.resolve(),a(f)}),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"&&V1.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=Zf();this.emit("languageChanging",i);var f=function(T){a.language=T,a.languages=a.services.languageUtils.toResolveHierarchy(T),a.resolvedLanguage=void 0,a.setResolvedLanguage(T)},p=function(T,E){E?(f(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||f(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,f=function p(w,g){var T;if(Jo(g)!=="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,g].concat(A))}else T=Aa({},g);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(H){return"".concat(T.keyPrefix).concat(j).concat(H)}):_=T.keyPrefix?"".concat(T.keyPrefix).concat(j).concat(w):w,c.t(_,T)};return typeof i=="string"?f.lng=i:f.lngs=i,f.ns=o,f.keyPrefix=a,f}},{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],f=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 g=a.precheck(this,w);if(g!==void 0)return g}return!!(this.hasResourceBundle(c,i)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||w(c,i)&&(!f||w(p,i)))}},{key:"loadNamespaces",value:function(i,o){var a=this,c=Zf();return this.options.ns?(typeof i=="string"&&(i=[i]),i.forEach(function(f){a.options.ns.indexOf(f)<0&&a.options.ns.push(f)}),this.loadResources(function(f){c.resolve(),o&&o(f)}),c):(o&&o(),Promise.resolve())}},{key:"loadLanguages",value:function(i,o){var a=Zf();typeof i=="string"&&(i=[i]);var c=this.options.preload||[],f=i.filter(function(p){return c.indexOf(p)<0});return f.length?(this.options.preload=c.concat(f),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 f0(y0());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]:fh,c=Aa(Aa(Aa({},this.options),o),{isClone:!0}),f=new n(c);(o.debug!==void 0||o.prefix!==void 0)&&(f.logger=f.logger.clone(o));var p=["store","services","language"];return p.forEach(function(w){f[w]=i[w]}),f.services=Aa({},this.services),f.services.utils={hasLoadedNamespace:f.hasLoadedNamespace.bind(f)},f.translator=new c0(f.services,f.options),f.translator.on("*",function(w){for(var g=arguments.length,T=new Array(g>1?g-1:0),E=1;E<g;E++)T[E-1]=arguments[E];f.emit.apply(f,[w].concat(T))}),f.init(c,a),f.translator.options=f.options,f.translator.backendConnector.services.utils={hasLoadedNamespace:f.hasLoadedNamespace.bind(f)},f}},{key:"toJSON",value:function(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}]),n}(pu);Va(Xh,"createInstance",function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},e=arguments.length>1?arguments[1]:void 0;return new Xh(t,e)});var ii=Xh.createInstance();ii.createInstance=Xh.createInstance;ii.createInstance;ii.dir;ii.init;ii.loadResources;ii.reloadResources;ii.use;ii.changeLanguage;ii.getFixedT;var H1=ii.t;ii.exists;ii.setDefaultNamespace;ii.hasLoadedNamespace;ii.loadNamespaces;ii.loadLanguages;const U1={TOKEN_MALFORMED:"token_malformed",TOKEN_EXPIRED:"token_expired"},W1=t=>{window.location.href=`${t}/authentication/login`},z1=t=>{window.location.href=`${t}/authentication/logout`},Rs=JA.create({withCredentials:!0});let wg=!1,Cm=[];const x0=t=>{Cm.forEach(e=>{t?e.reject(t):e.resolve()}),Cm=[]};function Y1(t,e){var o,a,c,f,p,w,g,T,E;const n=t.config,r=((a=(o=t.response)==null?void 0:o.data)==null?void 0:a.errorMessage)||((f=(c=t.response)==null?void 0:c.data)==null?void 0:f.message),i=r===U1.TOKEN_EXPIRED;return((p=t.response)==null?void 0:p.status)===401&&i&&!n._retry?wg?new Promise((A,I)=>{Cm.push({resolve:A,reject:I})}).then(()=>Rs(n)).catch(A=>Promise.reject(A)):(n._retry=!0,wg=!0,Rs.post("/authentication/api/v1/auth/refresh-token",void 0,{baseURL:window.env.AUTHEN_DOMAIN}).then(()=>(x0(null),Rs(n))).catch(A=>(x0(A),Promise.reject(A))).finally(()=>{wg=!1})):((w=t.response)==null?void 0:w.status)===401&&!i?W1(window.env.AUTHEN_DOMAIN):(((g=t.response)==null?void 0:g.status)===403?(T=e==null?void 0:e.handle403)==null||T.call(e,t):(!(e!=null&&e.disabledPushNotify)&&Hd(H1(`${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 LI=Rs.interceptors.response.use(t=>t,async t=>Y1(t)),G1=q.createContext({}),FI=({children:t})=>{const[e,n]=q.useState(!1),[r,i]=q.useState({all:{rows:[],total:0},unread:{rows:[],total:0}}),o=()=>{n(!e)},a=()=>{n(!1)};return Ie.jsx(G1.Provider,{value:{isOpen:e,toggleOpen:o,setShowModalFalse:a,notidata:r,setNotiData:i},children:t})};var q1={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},S0=q.createContext&&q.createContext(q1),NI=["attr","size","title"];function jI(t,e){if(t==null)return{};var n=BI(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 BI(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 Kh(){return Kh=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},Kh.apply(this,arguments)}function T0(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 Zh(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?T0(Object(n),!0).forEach(function(r){$I(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):T0(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function $I(t,e,n){return e=VI(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function VI(t){var e=HI(t,"string");return typeof e=="symbol"?e:e+""}function HI(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 X1(t){return t&&t.map((e,n)=>q.createElement(e.tag,Zh({key:n},e.attr),X1(e.child)))}function Sp(t){return e=>q.createElement(UI,Kh({attr:Zh({},t.attr)},e),X1(t.child))}function UI(t){var e=n=>{var{attr:r,size:i,title:o}=t,a=jI(t,NI),c=i||n.size||"1em",f;return n.className&&(f=n.className),t.className&&(f=(f?f+" ":"")+t.className),q.createElement("svg",Kh({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},n.attr,r,a,{className:f,style:Zh(Zh({color:t.color||n.color},n.style),t.style),height:c,width:c,xmlns:"http://www.w3.org/2000/svg"}),o&&q.createElement("title",null,o),t.children)};return S0!==void 0?q.createElement(S0.Consumer,null,n=>e(n)):e(q1)}function WI(t){return Sp({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 zI(t){return Sp({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 K1={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 xg(t){return t+" !important"}const Z1=t=>{const e={...t.colors};return oa.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:K1,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:xg(e.primary200),"&:hover":{backgroundColor:xg(e.primary200)}}}}},MuiPaginationItem:{defaultProps:{components:{previous:WI,next:zI}},styleOverrides:{root:{"& svg":{width:"10px"},border:"none",fontSize:"14px",lineHeight:"1.5rem",borderRadius:"7px","&.Mui-selected":{backgroundColor:xg(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 C0(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 J1(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 YI(t){var c,f,p;const{data:e,isFetching:n}=Ed.useQuery(["customTheme"],()=>t!=null&&t.url?fetch(t.url).then(w=>w.json()).then(w=>(["image","favicon","icon"].forEach(g=>{var T;(T=w==null?void 0:w.theme)!=null&&T[g]&&(w.theme[g]+=`?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;J1((T=w==null?void 0:w.theme)==null?void 0:T.favicon);const g=C0(ki,(E=w==null?void 0:w.theme)==null?void 0:E.keyColor);Object.keys(g).forEach(A=>{document.documentElement.style.setProperty(`--${A}`,g[A])}),document.documentElement.style.setProperty("font-family",K1.fontFamily)}}),r=C0(ki,(c=e==null?void 0:e.theme)==null?void 0:c.keyColor),i=Z1({colors:r}),o=(f=e==null?void 0:e.theme)==null?void 0:f.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 Q1=q.createContext({}),GI=()=>q.useContext(Q1),qI=t=>{var o;const{children:e,brandTheme:n}=t,r=YI(n),i=((o=t.customTheme)==null?void 0:o.call(t,r.colors))||r.theme;return Ie.jsx(Q1.Provider,{value:r,children:Ie.jsx(oa.ThemeProvider,{theme:i,children:e})})},XI=t=>{const e=Ed.useQueryClient(),n=q.useMemo(()=>t.axiosInstance||Rs,[t.axiosInstance]);window.env||(window.env={}),window.env.AUTHEN_DOMAIN=new URL(t.baseUrl).origin;const r=Ed.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 q.useEffect(()=>{window.onpageshow=function(i){i.persisted&&e.invalidateQueries(["user"])}},[e]),r},KI=t=>{const e=Ed.useQueryClient(),n=q.useMemo(()=>t.axiosInstance||Rs,[t.axiosInstance]);window.env||(window.env={}),window.env.AUTHEN_DOMAIN=new URL(t.baseUrl).origin;const r=Ed.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 q.useEffect(()=>{window.onpageshow=function(i){i.persisted&&e.invalidateQueries(["user-permissions"])}},[e]),r},Rv=q.createContext({}),ZI=t=>{const{children:e,baseUrl:n,axiosInstance:r}=t,i=new URL(n).origin,o=XI({axiosInstance:r,baseUrl:n}),a=KI({axiosInstance:r,baseUrl:n});function c(){window.location.href=`${i}/authentication/login`}function f(){window.location.href=`${i}/authentication/logout`}return o!=null&&o.isFetching?Ie.jsx(oa.Grid,{container:!0,justifyContent:"center",alignItems:"center",sx:{minHeight:"100vh"},children:Ie.jsx(oa.CircularProgress,{})}):Ie.jsx(Rv.Provider,{value:{user:o==null?void 0:o.data,login:c,logout:f,isFetching:o.isFetching,permissions:a==null?void 0:a.data},children:e})},JI=()=>q.useContext(Rv);function QI(t,e,n){return n.some(r=>{const i=t[r];return String(i).toLowerCase().includes(e.toLowerCase())})}var eT=[],eM=eT.forEach,tM=eT.slice;function nM(t){return eM.call(tM.call(arguments,1),function(e){if(e)for(var n in e)t[n]===void 0&&(t[n]=e[n])}),t}var E0=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/,rM=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(!E0.test(i.domain))throw new TypeError("option domain is invalid");a+="; Domain=".concat(i.domain)}if(i.path){if(!E0.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 f=typeof i.sameSite=="string"?i.sameSite.toLowerCase():i.sameSite;switch(f){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},k0={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=rM(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)}},iM={name:"cookie",lookup:function(e){var n;if(e.lookupCookie&&typeof document<"u"){var r=k0.read(e.lookupCookie);r&&(n=r)}return n},cacheUserLanguage:function(e,n){n.lookupCookie&&typeof document<"u"&&k0.create(n.lookupCookie,e,n.cookieMinutes,n.cookieDomain,n.cookieOptions)}},oM={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 f=o[a].substring(0,c);f===e.lookupQuerystring&&(n=o[a].substring(c+1))}}}return n}},Jf=null,D0=function(){if(Jf!==null)return Jf;try{Jf=window!=="undefined"&&window.localStorage!==null;var e="i18next.translate.boo";window.localStorage.setItem(e,"foo"),window.localStorage.removeItem(e)}catch{Jf=!1}return Jf},sM={name:"localStorage",lookup:function(e){var n;if(e.lookupLocalStorage&&D0()){var r=window.localStorage.getItem(e.lookupLocalStorage);r&&(n=r)}return n},cacheUserLanguage:function(e,n){n.lookupLocalStorage&&D0()&&window.localStorage.setItem(n.lookupLocalStorage,e)}},Qf=null,P0=function(){if(Qf!==null)return Qf;try{Qf=window!=="undefined"&&window.sessionStorage!==null;var e="i18next.translate.boo";window.sessionStorage.setItem(e,"foo"),window.sessionStorage.removeItem(e)}catch{Qf=!1}return Qf},aM={name:"sessionStorage",lookup:function(e){var n;if(e.lookupSessionStorage&&P0()){var r=window.sessionStorage.getItem(e.lookupSessionStorage);r&&(n=r)}return n},cacheUserLanguage:function(e,n){n.lookupSessionStorage&&P0()&&window.sessionStorage.setItem(n.lookupSessionStorage,e)}},lM={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}},uM={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}},cM={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}},fM={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]}},tT=!1;try{document.cookie,tT=!0}catch{}var nT=["querystring","cookie","localStorage","sessionStorage","navigator","htmlTag"];tT||nT.splice(1,1);function dM(){return{order:nT,lookupQuerystring:"lng",lookupCookie:"i18next",lookupLocalStorage:"i18nextLng",lookupSessionStorage:"i18nextLng",caches:["localStorage"],excludeCacheFor:["cimode"],convertDetectedLanguage:function(e){return e}}}var rT=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=nM(r,this.options||{},dM()),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(iM),this.addDetector(oM),this.addDetector(sM),this.addDetector(aM),this.addDetector(lM),this.addDetector(uM),this.addDetector(cM),this.addDetector(fM)}},{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)}))}}])}();rT.type="languageDetector";function Av(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 hM=Object.freeze(Object.defineProperty({__proto__:null,default:Av},Symbol.toStringTag,{value:"Module"}));var Ei=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Pc(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function pM(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 gM(){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 O0={};function Em(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];typeof e[0]=="string"&&O0[e[0]]||(typeof e[0]=="string"&&(O0[e[0]]=new Date),gM.apply(void 0,e))}var iT=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 _0(t,e,n){t.loadNamespaces(e,iT(t,n))}function R0(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,iT(t,r))}function mM(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(f,p){var w=e.services.backendConnector.state["".concat(f,"|").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 vM(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(!e.languages||!e.languages.length)return Em("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}}):mM(t,e,n)}var yM=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,bM={"&amp;":"&","&#38;":"&","&lt;":"<","&#60;":"<","&gt;":">","&#62;":">","&apos;":"'","&#39;":"'","&quot;":'"',"&#34;":'"',"&nbsp;":" ","&#160;":" ","&copy;":"©","&#169;":"©","&reg;":"®","&#174;":"®","&hellip;":"…","&#8230;":"…","&#x2F;":"/","&#47;":"/"},wM=function(e){return bM[e]},xM=function(e){return e.replace(yM,wM)};function A0(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 I0(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?A0(Object(n),!0).forEach(function(r){Va(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):A0(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}var km={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:xM};function SM(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};km=I0(I0({},km),t)}function TM(){return km}var oT;function CM(t){oT=t}function EM(){return oT}var kM={type:"3rdParty",init:function(e){SM(e.options.react),CM(e)}},sT=q.createContext(),DM=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 PM(t,e){var n=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var r,i,o,a,c=[],f=!0,p=!1;try{if(o=(n=n.call(t)).next,e!==0)for(;!(f=(r=o.call(n)).done)&&(c.push(r.value),c.length!==e);f=!0);}catch(w){p=!0,i=w}finally{try{if(!f&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(p)throw i}}return c}}function OM(t,e){return N1(t)||PM(t,e)||j1(t,e)||B1()}function M0(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 Sg(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?M0(Object(n),!0).forEach(function(r){Va(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):M0(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}var _M=function(e,n){var r=q.useRef();return q.useEffect(function(){r.current=e},[e,n]),r.current};function aT(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=e.i18n,r=q.useContext(sT)||{},i=r.i18n,o=r.defaultNS,a=n||i||EM();if(a&&!a.reportNamespaces&&(a.reportNamespaces=new DM),!a){Em("You will need to pass in an i18next instance by using initReactI18next");var c=function(ue,ze){return typeof ze=="string"?ze:ze&&Jo(ze)==="object"&&typeof ze.defaultValue=="string"?ze.defaultValue:Array.isArray(ue)?ue[ue.length-1]:ue},f=[c,{},!1];return f.t=c,f.i18n={},f.ready=!1,f}a.options.react&&a.options.react.wait!==void 0&&Em("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");var p=Sg(Sg(Sg({},TM()),a.options.react),e),w=p.useSuspense,g=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(le){return vM(le,a,p)});function A(){return a.getFixedT(e.lng||null,p.nsMode==="fallback"?T:T[0],g)}var I=q.useState(A),j=OM(I,2),_=j[0],H=j[1],W=T.join();e.lng&&(W="".concat(e.lng).concat(W));var re=_M(W),Z=q.useRef(!0);q.useEffect(function(){var le=p.bindI18n,ue=p.bindI18nStore;Z.current=!0,!E&&!w&&(e.lng?R0(a,e.lng,T,function(){Z.current&&H(A)}):_0(a,T,function(){Z.current&&H(A)})),E&&re&&re!==W&&Z.current&&H(A);function ze(){Z.current&&H(A)}return le&&a&&a.on(le,ze),ue&&a&&a.store.on(ue,ze),function(){Z.current=!1,le&&a&&le.split(" ").forEach(function(Me){return a.off(Me,ze)}),ue&&a&&ue.split(" ").forEach(function(Me){return a.store.off(Me,ze)})}},[a,W]);var de=q.useRef(!0);q.useEffect(function(){Z.current&&!de.current&&H(A),de.current=!1},[a,g]);var S=[_,a,E];if(S.t=_,S.i18n=a,S.ready=E,E||!E&&!w)return S;throw new Promise(function(le){e.lng?R0(a,e.lng,T,function(){return le()}):_0(a,T,function(){return le()})})}function RM(t){var e=t.i18n,n=t.defaultNS,r=t.children,i=q.useMemo(function(){return{i18n:e,defaultNS:n}},[e,n]);return q.createElement(sT.Provider,{value:i},r)}var lT=[],AM=lT.forEach,IM=lT.slice;function MM(t){return AM.call(IM.call(arguments,1),function(e){if(e)for(var n in e)t[n]===void 0&&(t[n]=e[n])}),t}function LM(t){return t?typeof t=="function"?new t:t:null}function FM(){return{handleEmptyResourcesAsFailed:!0,cacheHitMode:"none"}}function L0(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 uT=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=MM(i,this.options||{},FM()),this.allOptions=o,this.options.backends&&this.options.backends.forEach(function(a,c){r.backends[c]=r.backends[c]||LM(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 g=w===a-1,T=o.options.handleEmptyResourcesAsFailed&&!g?0:-1,E=o.backends[w];E.read?L0(E,n,r,function(A,I,j){if(!A&&I&&Object.keys(I).length>T){if(i(null,I,w),f(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&&L0(_,n,r,function(H,W){H||W&&(Object.keys(W).length<=T||(f(w,W),o.options.cacheHitMode==="refreshAndUpdateStore"&&o.services&&o.services.resourceStore&&o.services.resourceStore.addResourceBundle(n,r,W)))})}}else p(w+1)}):p(w+1)},f=function p(w,g){if(!(w<0)){var T=o.backends[w];T.save&&T.save(n,r,g),p(w-1,g)}};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(f){if(f.create){var p=f.create.bind(f);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(g){return a(null,g)}).catch(a):a(null,w)}catch(g){a(g)}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 f=[],p=function(g){var T=o.toResolveHierarchy(g);T.forEach(function(E){f.indexOf(E)<0&&f.push(E)})};p(c),this.allOptions.preload&&this.allOptions.preload.forEach(function(w){return p(w)}),f.forEach(function(w){n.allOptions.ns.forEach(function(g){i.read(w,g,"read",null,null,function(T,E){T&&a.warn("loading namespace ".concat(g," for language ").concat(w," failed"),T),!T&&E&&a.log("loaded namespace ".concat(g," for language ").concat(w),E),i.loaded("".concat(w,"|").concat(g),T,E)})})})}}}]),t}();uT.type="backend";function Dm(t){"@babel/helpers - typeof";return Dm=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},Dm(t)}function cT(){return typeof XMLHttpRequest=="function"||(typeof XMLHttpRequest>"u"?"undefined":Dm(XMLHttpRequest))==="object"}function NM(t){return!!t&&typeof t.then=="function"}function jM(t){return NM(t)?t:Promise.resolve(t)}function BM(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 Pm={exports:{}},dh={exports:{}},F0;function $M(){return F0||(F0=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,f={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(he){return he&&DataView.prototype.isPrototypeOf(he)}if(f.arrayBuffer)var w=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],g=ArrayBuffer.isView||function(he){return he&&w.indexOf(Object.prototype.toString.call(he))>-1};function T(he){if(typeof he!="string"&&(he=String(he)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(he)||he==="")throw new TypeError('Invalid character in header field name: "'+he+'"');return he.toLowerCase()}function E(he){return typeof he!="string"&&(he=String(he)),he}function A(he){var ke={next:function(){var Oe=he.shift();return{done:Oe===void 0,value:Oe}}};return f.iterable&&(ke[Symbol.iterator]=function(){return ke}),ke}function I(he){this.map={},he instanceof I?he.forEach(function(ke,Oe){this.append(Oe,ke)},this):Array.isArray(he)?he.forEach(function(ke){this.append(ke[0],ke[1])},this):he&&Object.getOwnPropertyNames(he).forEach(function(ke){this.append(ke,he[ke])},this)}I.prototype.append=function(he,ke){he=T(he),ke=E(ke);var Oe=this.map[he];this.map[he]=Oe?Oe+", "+ke:ke},I.prototype.delete=function(he){delete this.map[T(he)]},I.prototype.get=function(he){return he=T(he),this.has(he)?this.map[he]:null},I.prototype.has=function(he){return this.map.hasOwnProperty(T(he))},I.prototype.set=function(he,ke){this.map[T(he)]=E(ke)},I.prototype.forEach=function(he,ke){for(var Oe in this.map)this.map.hasOwnProperty(Oe)&&he.call(ke,this.map[Oe],Oe,this)},I.prototype.keys=function(){var he=[];return this.forEach(function(ke,Oe){he.push(Oe)}),A(he)},I.prototype.values=function(){var he=[];return this.forEach(function(ke){he.push(ke)}),A(he)},I.prototype.entries=function(){var he=[];return this.forEach(function(ke,Oe){he.push([Oe,ke])}),A(he)},f.iterable&&(I.prototype[Symbol.iterator]=I.prototype.entries);function j(he){if(he.bodyUsed)return Promise.reject(new TypeError("Already read"));he.bodyUsed=!0}function _(he){return new Promise(function(ke,Oe){he.onload=function(){ke(he.result)},he.onerror=function(){Oe(he.error)}})}function H(he){var ke=new FileReader,Oe=_(ke);return ke.readAsArrayBuffer(he),Oe}function W(he){var ke=new FileReader,Oe=_(ke);return ke.readAsText(he),Oe}function re(he){for(var ke=new Uint8Array(he),Oe=new Array(ke.length),Ne=0;Ne<ke.length;Ne++)Oe[Ne]=String.fromCharCode(ke[Ne]);return Oe.join("")}function Z(he){if(he.slice)return he.slice(0);var ke=new Uint8Array(he.byteLength);return ke.set(new Uint8Array(he)),ke.buffer}function de(){return this.bodyUsed=!1,this._initBody=function(he){this.bodyUsed=this.bodyUsed,this._bodyInit=he,he?typeof he=="string"?this._bodyText=he:f.blob&&Blob.prototype.isPrototypeOf(he)?this._bodyBlob=he:f.formData&&FormData.prototype.isPrototypeOf(he)?this._bodyFormData=he:f.searchParams&&URLSearchParams.prototype.isPrototypeOf(he)?this._bodyText=he.toString():f.arrayBuffer&&f.blob&&p(he)?(this._bodyArrayBuffer=Z(he.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):f.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(he)||g(he))?this._bodyArrayBuffer=Z(he):this._bodyText=he=Object.prototype.toString.call(he):this._bodyText="",this.headers.get("content-type")||(typeof he=="string"?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):f.searchParams&&URLSearchParams.prototype.isPrototypeOf(he)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},f.blob&&(this.blob=function(){var he=j(this);if(he)return he;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 he=j(this);return he||(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(H)}),this.text=function(){var he=j(this);if(he)return he;if(this._bodyBlob)return W(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)},f.formData&&(this.formData=function(){return this.text().then(ze)}),this.json=function(){return this.text().then(JSON.parse)},this}var S=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function le(he){var ke=he.toUpperCase();return S.indexOf(ke)>-1?ke:he}function ue(he,ke){if(!(this instanceof ue))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');ke=ke||{};var Oe=ke.body;if(he instanceof ue){if(he.bodyUsed)throw new TypeError("Already read");this.url=he.url,this.credentials=he.credentials,ke.headers||(this.headers=new I(he.headers)),this.method=he.method,this.mode=he.mode,this.signal=he.signal,!Oe&&he._bodyInit!=null&&(Oe=he._bodyInit,he.bodyUsed=!0)}else this.url=String(he);if(this.credentials=ke.credentials||this.credentials||"same-origin",(ke.headers||!this.headers)&&(this.headers=new I(ke.headers)),this.method=le(ke.method||this.method||"GET"),this.mode=ke.mode||this.mode||null,this.signal=ke.signal||this.signal,this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&Oe)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(Oe),(this.method==="GET"||this.method==="HEAD")&&(ke.cache==="no-store"||ke.cache==="no-cache")){var Ne=/([?&])_=[^&]*/;if(Ne.test(this.url))this.url=this.url.replace(Ne,"$1_="+new Date().getTime());else{var tt=/\?/;this.url+=(tt.test(this.url)?"&":"?")+"_="+new Date().getTime()}}}ue.prototype.clone=function(){return new ue(this,{body:this._bodyInit})};function ze(he){var ke=new FormData;return he.trim().split("&").forEach(function(Oe){if(Oe){var Ne=Oe.split("="),tt=Ne.shift().replace(/\+/g," "),me=Ne.join("=").replace(/\+/g," ");ke.append(decodeURIComponent(tt),decodeURIComponent(me))}}),ke}function Me(he){var ke=new I,Oe=he.replace(/\r?\n[\t ]+/g," ");return Oe.split("\r").map(function(Ne){return Ne.indexOf(`
3
+ `)===0?Ne.substr(1,Ne.length):Ne}).forEach(function(Ne){var tt=Ne.split(":"),me=tt.shift().trim();if(me){var Ee=tt.join(":").trim();ke.append(me,Ee)}}),ke}de.call(ue.prototype);function Fe(he,ke){if(!(this instanceof Fe))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');ke||(ke={}),this.type="default",this.status=ke.status===void 0?200:ke.status,this.ok=this.status>=200&&this.status<300,this.statusText=ke.statusText===void 0?"":""+ke.statusText,this.headers=new I(ke.headers),this.url=ke.url||"",this._initBody(he)}de.call(Fe.prototype),Fe.prototype.clone=function(){return new Fe(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new I(this.headers),url:this.url})},Fe.error=function(){var he=new Fe(null,{status:0,statusText:""});return he.type="error",he};var Ve=[301,302,303,307,308];Fe.redirect=function(he,ke){if(Ve.indexOf(ke)===-1)throw new RangeError("Invalid status code");return new Fe(null,{status:ke,headers:{location:he}})},a.DOMException=c.DOMException;try{new a.DOMException}catch{a.DOMException=function(ke,Oe){this.message=ke,this.name=Oe;var Ne=Error(ke);this.stack=Ne.stack},a.DOMException.prototype=Object.create(Error.prototype),a.DOMException.prototype.constructor=a.DOMException}function Ue(he,ke){return new Promise(function(Oe,Ne){var tt=new ue(he,ke);if(tt.signal&&tt.signal.aborted)return Ne(new a.DOMException("Aborted","AbortError"));var me=new XMLHttpRequest;function Ee(){me.abort()}me.onload=function(){var We={status:me.status,statusText:me.statusText,headers:Me(me.getAllResponseHeaders()||"")};We.url="responseURL"in me?me.responseURL:We.headers.get("X-Request-URL");var Je="response"in me?me.response:me.responseText;setTimeout(function(){Oe(new Fe(Je,We))},0)},me.onerror=function(){setTimeout(function(){Ne(new TypeError("Network request failed"))},0)},me.ontimeout=function(){setTimeout(function(){Ne(new TypeError("Network request failed"))},0)},me.onabort=function(){setTimeout(function(){Ne(new a.DOMException("Aborted","AbortError"))},0)};function Ye(We){try{return We===""&&c.location.href?c.location.href:We}catch{return We}}me.open(tt.method,Ye(tt.url),!0),tt.credentials==="include"?me.withCredentials=!0:tt.credentials==="omit"&&(me.withCredentials=!1),"responseType"in me&&(f.blob?me.responseType="blob":f.arrayBuffer&&tt.headers.get("Content-Type")&&tt.headers.get("Content-Type").indexOf("application/octet-stream")!==-1&&(me.responseType="arraybuffer")),ke&&typeof ke.headers=="object"&&!(ke.headers instanceof I)?Object.getOwnPropertyNames(ke.headers).forEach(function(We){me.setRequestHeader(We,E(ke.headers[We]))}):tt.headers.forEach(function(We,Je){me.setRequestHeader(Je,We)}),tt.signal&&(tt.signal.addEventListener("abort",Ee),me.onreadystatechange=function(){me.readyState===4&&tt.signal.removeEventListener("abort",Ee)}),me.send(typeof tt._bodyInit>"u"?null:tt._bodyInit)})}return Ue.polyfill=!0,c.fetch||(c.fetch=Ue,c.Headers=I,c.Request=ue,c.Response=Fe),a.Headers=I,a.Request=ue,a.Response=Fe,a.fetch=Ue,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}(dh,dh.exports)),dh.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 BM<"u"&&typeof window>"u"){var r=n||$M();r.default&&(r=r.default),e.default=r,t.exports=e.default}})(Pm,Pm.exports);var fT=Pm.exports;const dT=Pc(fT),N0=tI({__proto__:null,default:dT},[fT]);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){VM(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}function VM(t,e,n){return(e=HM(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function HM(t){var e=UM(t,"string");return Sc(e)=="symbol"?e:e+""}function UM(t,e){if(Sc(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(Sc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function Sc(t){"@babel/helpers - typeof";return Sc=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},Sc(t)}var gu=typeof fetch=="function"?fetch:void 0;typeof global<"u"&&global.fetch?gu=global.fetch:typeof window<"u"&&window.fetch&&(gu=window.fetch);var kd;cT()&&(typeof global<"u"&&global.XMLHttpRequest?kd=global.XMLHttpRequest:typeof window<"u"&&window.XMLHttpRequest&&(kd=window.XMLHttpRequest));var Jh;typeof ActiveXObject=="function"&&(typeof global<"u"&&global.ActiveXObject?Jh=global.ActiveXObject:typeof window<"u"&&window.ActiveXObject&&(Jh=window.ActiveXObject));!gu&&N0&&!kd&&!Jh&&(gu=dT||N0);typeof gu!="function"&&(gu=void 0);var Om=function(e,n){if(n&&Sc(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},$0=function(e,n,r,i){var o=function(f){if(!f.ok)return r(f.statusText||"Error",{status:f.status});f.text().then(function(p){r(null,{status:f.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):gu(e,n).then(o).catch(r)},V0=!1,WM=function(e,n,r,i){e.queryStringParams&&(n=Om(n,e.queryStringParams));var o=B0({},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=B0({method:r?"POST":"GET",body:r?e.stringify(r):void 0,headers:o},V0?{}:a),f=typeof e.alternateFetch=="function"&&e.alternateFetch.length>=1?e.alternateFetch:void 0;try{$0(n,c,i,f)}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]}),$0(n,c,i,f),V0=!0}catch(w){i(w)}}},zM=function(e,n,r,i){r&&Sc(r)==="object"&&(r=Om("",r).slice(1)),e.queryStringParams&&(n=Om(n,e.queryStringParams));try{var o;kd?o=new kd:o=new Jh("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(f){console&&console.log(f)}},YM=function(e,n,r,i){if(typeof r=="function"&&(i=r,r=void 0),i=i||function(){},gu&&n.indexOf("file:")!==0)return WM(e,n,r,i);if(cT()||typeof ActiveXObject=="function")return zM(e,n,r,i);i(new Error("No fetch and no xhr implementation found!"))};function Tf(t){"@babel/helpers - typeof";return Tf=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},Tf(t)}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 Tg(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){hT(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 GM(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function qM(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,pT(r.key),r)}}function XM(t,e,n){return e&&qM(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function hT(t,e,n){return(e=pT(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function pT(t){var e=KM(t,"string");return Tf(e)=="symbol"?e:e+""}function KM(t,e){if(Tf(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(Tf(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}var ZM=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 hT({},r,i||"")},parseLoadPayload:function(n,r){},request:YM,reloadInterval:typeof window<"u"?!1:60*60*1e3,customHeaders:{},queryStringParams:{},crossDomain:!1,withCredentials:!1,overrideMimeType:!1,requestOptions:{mode:"cors",credentials:"same-origin",cache:"default"}}},gT=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]:{};GM(this,t),this.services=e,this.options=n,this.allOptions=r,this.type="backend",this.init(e,n,r)}return XM(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=Tg(Tg(Tg({},ZM()),this.options||{}),i),this.allOptions=o,this.services&&this.options.reloadInterval){var a=setInterval(function(){return r.reload()},this.options.reloadInterval);Tf(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,f=this.options.loadPath;typeof this.options.loadPath=="function"&&(f=this.options.loadPath(n,i)),f=jM(f),f.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,f=typeof o=="string"?[o]:o,p=this.options.parseLoadPayload(c,f);this.options.request(this.options,n,p,function(w,g){if(g&&(g.status>=500&&g.status<600||!g.status))return r("failed loading "+n+"; status code: "+g.status,!0);if(g&&g.status>=400&&g.status<500)return r("failed loading "+n+"; status code: "+g.status,!1);if(!g&&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 g.data=="string"?A=a.options.parse(g.data,i,o):A=g.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 f=this.options.parsePayload(r,i,o),p=0,w=[],g=[];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,f,function(I,j){p+=1,w.push(I),g.push(j),p===n.length&&typeof a=="function"&&a(w,g)})})}}},{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 f=[],p=function(g){var T=o.toResolveHierarchy(g);T.forEach(function(E){f.indexOf(E)<0&&f.push(E)})};p(c),this.allOptions.preload&&this.allOptions.preload.forEach(function(w){return p(w)}),f.forEach(function(w){n.allOptions.ns.forEach(function(g){i.read(w,g,"read",null,null,function(T,E){T&&a.warn("loading namespace ".concat(g," for language ").concat(w," failed"),T),!T&&E&&a.log("loaded namespace ".concat(g," for language ").concat(w),E),i.loaded("".concat(w,"|").concat(g),T,E)})})})}}}])}();gT.type="backend";var Iv=(t=>(t.en="en",t.de="de",t))(Iv||{});const JM={en:"English",de:"German"};ii.use(uT).use(kM).use(rT).init({initImmediate:!0,ns:["translation"],fallbackLng:Object.keys(JM),fallbackNS:"translation",partialBundledLanguages:!0,resources:{},interpolation:{escapeValue:!1},backend:{backends:[gT],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 QM(){const[t,e]=q.useState();return q.useEffect(()=>{const n=localStorage.getItem("language");e(n||Iv.en)},[]),{language:t,setLanguage:e}}const mT=q.createContext({}),eL=()=>q.useContext(mT),tL=ii,nL=H1,rL=()=>aT(),iL=({children:t})=>{const e=QM();return Ie.jsx(mT.Provider,{value:e,children:Ie.jsx(RM,{i18n:ii,children:t})})},oL="*,: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 Mv({children:t,styles:e=[],...n}){return Ie.jsxs("div",{...n,children:[[oL,...e].map((r,i)=>Ie.jsx("style",{type:"text/css",children:r},i)),t]})}function sL(t){var e=typeof t;return t!=null&&(e=="object"||e=="function")}var Lv=sL,aL=typeof Ei=="object"&&Ei&&Ei.Object===Object&&Ei,lL=aL,uL=lL,cL=typeof self=="object"&&self&&self.Object===Object&&self,fL=uL||cL||Function("return this")(),vT=fL,dL=vT,hL=function(){return dL.Date.now()},pL=hL,gL=/\s/;function mL(t){for(var e=t.length;e--&&gL.test(t.charAt(e)););return e}var vL=mL,yL=vL,bL=/^\s+/;function wL(t){return t&&t.slice(0,yL(t)+1).replace(bL,"")}var xL=wL,SL=vT,TL=SL.Symbol,yT=TL,U0=yT,bT=Object.prototype,CL=bT.hasOwnProperty,EL=bT.toString,ed=U0?U0.toStringTag:void 0;function kL(t){var e=CL.call(t,ed),n=t[ed];try{t[ed]=void 0;var r=!0}catch{}var i=EL.call(t);return r&&(e?t[ed]=n:delete t[ed]),i}var DL=kL,PL=Object.prototype,OL=PL.toString;function _L(t){return OL.call(t)}var RL=_L,W0=yT,AL=DL,IL=RL,ML="[object Null]",LL="[object Undefined]",z0=W0?W0.toStringTag:void 0;function FL(t){return t==null?t===void 0?LL:ML:z0&&z0 in Object(t)?AL(t):IL(t)}var NL=FL;function jL(t){return t!=null&&typeof t=="object"}var BL=jL,$L=NL,VL=BL,HL="[object Symbol]";function UL(t){return typeof t=="symbol"||VL(t)&&$L(t)==HL}var WL=UL,zL=xL,Y0=Lv,YL=WL,G0=NaN,GL=/^[-+]0x[0-9a-f]+$/i,qL=/^0b[01]+$/i,XL=/^0o[0-7]+$/i,KL=parseInt;function ZL(t){if(typeof t=="number")return t;if(YL(t))return G0;if(Y0(t)){var e=typeof t.valueOf=="function"?t.valueOf():t;t=Y0(e)?e+"":e}if(typeof t!="string")return t===0?t:+t;t=zL(t);var n=qL.test(t);return n||XL.test(t)?KL(t.slice(2),n?2:8):GL.test(t)?G0:+t}var JL=ZL,QL=Lv,Cg=pL,q0=JL,e2="Expected a function",t2=Math.max,n2=Math.min;function r2(t,e,n){var r,i,o,a,c,f,p=0,w=!1,g=!1,T=!0;if(typeof t!="function")throw new TypeError(e2);e=q0(e)||0,QL(n)&&(w=!!n.leading,g="maxWait"in n,o=g?t2(q0(n.maxWait)||0,e):o,T="trailing"in n?!!n.trailing:T);function E(de){var S=r,le=i;return r=i=void 0,p=de,a=t.apply(le,S),a}function A(de){return p=de,c=setTimeout(_,e),w?E(de):a}function I(de){var S=de-f,le=de-p,ue=e-S;return g?n2(ue,o-le):ue}function j(de){var S=de-f,le=de-p;return f===void 0||S>=e||S<0||g&&le>=o}function _(){var de=Cg();if(j(de))return H(de);c=setTimeout(_,I(de))}function H(de){return c=void 0,T&&r?E(de):(r=i=void 0,a)}function W(){c!==void 0&&clearTimeout(c),p=0,r=f=i=c=void 0}function re(){return c===void 0?a:H(Cg())}function Z(){var de=Cg(),S=j(de);if(r=arguments,i=this,f=de,S){if(c===void 0)return A(f);if(g)return clearTimeout(c),c=setTimeout(_,e),E(f)}return c===void 0&&(c=setTimeout(_,e)),a}return Z.cancel=W,Z.flush=re,Z}var wT=r2;const Eg=Pc(wT);var i2=wT,o2=Lv,s2="Expected a function";function a2(t,e,n){var r=!0,i=!0;if(typeof t!="function")throw new TypeError(s2);return o2(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),i2(t,e,{leading:r,maxWait:e,trailing:i})}var l2=a2;const u2=Pc(l2);var df=function(){return df=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},df.apply(this,arguments)};function xT(t){return!t||!t.ownerDocument||!t.ownerDocument.defaultView?window:t.ownerDocument.defaultView}function ST(t){return!t||!t.ownerDocument?document:t.ownerDocument}var TT=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,f){return f.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 CT(t,e){var n;t&&(n=t.classList).add.apply(n,e.split(" "))}function ET(t,e){t&&e.split(" ").forEach(function(n){t.classList.remove(n)})}function kT(t){return".".concat(t.split(" ").join("."))}var Fv=!!(typeof window<"u"&&window.document&&window.document.createElement),c2=Object.freeze({__proto__:null,addClasses:CT,canUseDOM:Fv,classNamesToQuery:kT,getElementDocument:ST,getElementWindow:xT,getOptions:TT,removeClasses:ET}),cf=null,X0=null;Fv&&window.addEventListener("resize",function(){X0!==window.devicePixelRatio&&(X0=window.devicePixelRatio,cf=null)});function K0(){if(cf===null){if(typeof document>"u")return cf=0,cf;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),cf=n}return cf}var tu=xT,kg=ST,f2=TT,nu=CT,ru=ET,Oo=kT,td=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=tu(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,nu(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(){ru(r.el,r.classNames.scrolling),r.options.autoHide&&(r.hideScrollbar("x"),r.hideScrollbar("y")),r.isScrolling=!1},this.onMouseEnter=function(){r.isMouseEntering||(nu(r.el,r.classNames.mouseEntered),r.showScrollbar("x"),r.showScrollbar("y"),r.isMouseEntering=!0),r.onMouseEntered()},this._onMouseEntered=function(){ru(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,f,p,w,g,T,E,A,I;if(!(!r.draggedAxis||!r.contentWrapperEl)){var j,_=r.axis[r.draggedAxis].track,H=(a=(o=_.rect)===null||o===void 0?void 0:o[r.axis[r.draggedAxis].sizeAttr])!==null&&a!==void 0?a:0,W=r.axis[r.draggedAxis].scrollbar,re=(f=(c=r.contentWrapperEl)===null||c===void 0?void 0:c[r.axis[r.draggedAxis].scrollSizeAttr])!==null&&f!==void 0?f:0,Z=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 de=j-((T=(g=_.rect)===null||g===void 0?void 0:g[r.axis[r.draggedAxis].offsetAttr])!==null&&T!==void 0?T:0)-r.axis[r.draggedAxis].dragOffset;de=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)-W.size-de:de;var S=de/(H-W.size),le=S*(re-Z);r.draggedAxis==="x"&&r.isRtl&&(le=!((I=t.getRtlHelpers())===null||I===void 0)&&I.isScrollingToNegative?-le:le),r.contentWrapperEl[r.axis[r.draggedAxis].scrollOffsetAttr]=le}},this.onEndDrag=function(i){r.isDragging=!1;var o=kg(r.el),a=tu(r.el);i.preventDefault(),i.stopPropagation(),ru(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=df(df({},t.defaultOptions),n),this.classNames=df(df({},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=u2(this._onMouseMove,64),this.onWindowResize=Eg(this._onWindowResize,64,{leading:!0}),this.onStopScrolling=Eg(this._onStopScrolling,this.stopScrollDelay),this.onMouseEntered=Eg(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:K0()}catch{return K0()}},t.getOffset=function(e){var n=e.getBoundingClientRect(),r=kg(e),i=tu(e);return{top:n.top+(i.pageYOffset||r.documentElement.scrollTop),left:n.left+(i.pageXOffset||r.documentElement.scrollLeft)}},t.prototype.init=function(){Fv&&(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||(nu(this.axis.x.scrollbar.el,this.classNames.visible),nu(this.axis.y.scrollbar.el,this.classNames.visible))},t.prototype.initListeners=function(){var e=this,n,r=tu(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=tu(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 f=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(f,"px");var w=this.contentWrapperEl.offsetHeight;this.axis.x.isOverflowing=n!==0&&p>n,this.axis.y.isOverflowing=f>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 g=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&&f>w-g,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,f=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-f),g=~~((c-o.size)*w);g=e==="x"&&this.isRtl?-g+(c-o.size):g,o.el.style.transform=e==="x"?"translate3d(".concat(g,"px, 0, 0)"):"translate3d(0, ".concat(g,"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&&(nu(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&&(ru(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),nu(n.track.el,this.classNames.hover),this.isWithinBounds(n.scrollbar.rect)?nu(n.scrollbar.el,this.classNames.hover):ru(n.scrollbar.el,this.classNames.hover)):(ru(n.track.el,this.classNames.hover),this.options.autoHide&&this.hideScrollbar(e)))},t.prototype.onMouseLeaveForAxis=function(e){e===void 0&&(e="y"),ru(this.axis[e].track.el,this.classNames.hover),ru(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=kg(this.el),o=tu(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,nu(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 f=this.axis[n];if(!(!this.options.clickOnTrack||!f.scrollbar.el||!this.contentWrapperEl)){e.preventDefault();var p=tu(this.el);this.axis[n].scrollbar.rect=f.scrollbar.el.getBoundingClientRect();var w=this.axis[n].scrollbar,g=(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-g:this.mouseX-g,I=A<0?-1:1,j=I===-1?E-T:E+T,_=40,H=function(){r.contentWrapperEl&&(I===-1?E>j&&(E-=_,r.contentWrapperEl[r.axis[n].scrollOffsetAttr]=E,p.requestAnimationFrame(H)):E<j&&(E+=_,r.contentWrapperEl[r.axis[n].scrollOffsetAttr]=E,p.requestAnimationFrame(H)))};H()}},t.prototype.getContentElement=function(){return this.contentEl},t.prototype.getScrollElement=function(){return this.contentWrapperEl},t.prototype.removeListeners=function(){var e=tu(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=f2,t.helpers=c2,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 d2(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 Nv=kn.forwardRef(function(t,e){var n=t.children,r=t.scrollableNodeProps,i=r===void 0?{}:r,o=d2(t,["children","scrollableNodeProps"]),a=kn.useRef(),c=kn.useRef(),f=kn.useRef(),p={},w={};Object.keys(o).forEach(function(E){Object.prototype.hasOwnProperty.call(td.defaultOptions,E)?p[E]=o[E]:w[E]=o[E]});var g=Ko(Ko({},td.defaultOptions.classNames),p.classNames),T=Ko(Ko({},i),{className:"".concat(g.contentWrapper).concat(i.className?" ".concat(i.className):""),tabIndex:p.tabIndex||td.defaultOptions.tabIndex,role:"region","aria-label":p.ariaLabel||td.defaultOptions.ariaLabel});return kn.useEffect(function(){var E;return c.current=T.ref?T.ref.current:c.current,a.current&&(E=new td(a.current,Ko(Ko(Ko({},p),c.current&&{scrollableNode:c.current}),f.current&&{contentNode:f.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:g.wrapper},kn.createElement("div",{className:g.heightAutoObserverWrapperEl},kn.createElement("div",{className:g.heightAutoObserverEl})),kn.createElement("div",{className:g.mask},kn.createElement("div",{className:g.offset},typeof n=="function"?n({scrollableNodeRef:c,scrollableNodeProps:Ko(Ko({},T),{ref:c}),contentNodeRef:f,contentNodeProps:{className:g.contentEl,ref:f}}):kn.createElement("div",Ko({},T),kn.createElement("div",{className:g.contentEl},n)))),kn.createElement("div",{className:g.placeholder})),kn.createElement("div",{className:"".concat(g.track," simplebar-horizontal")},kn.createElement("div",{className:g.scrollbar})),kn.createElement("div",{className:"".concat(g.track," simplebar-vertical")},kn.createElement("div",{className:g.scrollbar})))});Nv.displayName="SimpleBar";const DT='[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 PT(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=PT(t[e]))&&(r&&(r+=" "),r+=n)}else for(n in t)t[n]&&(r&&(r+=" "),r+=n);return r}function yl(){for(var t,e,n=0,r="",i=arguments.length;n<i;n++)(t=arguments[n])&&(e=PT(t))&&(r&&(r+=" "),r+=e);return r}const Dd=t=>typeof t=="number"&&!isNaN(t),yc=t=>typeof t=="string",Zo=t=>typeof t=="function",Ih=t=>yc(t)||Zo(t)?t:null,_m=t=>q.isValidElement(t)||yc(t)||Zo(t)||Dd(t);function h2(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 Tp(t){let{enter:e,exit:n,appendPosition:r=!1,collapse:i=!0,collapseDuration:o=300}=t;return function(a){let{children:c,position:f,preventExitTransition:p,done:w,nodeRef:g,isIn:T,playToast:E}=a;const A=r?`${e}--${f}`:e,I=r?`${n}--${f}`:n,j=q.useRef(0);return q.useLayoutEffect(()=>{const _=g.current,H=A.split(" "),W=re=>{re.target===g.current&&(E(),_.removeEventListener("animationend",W),_.removeEventListener("animationcancel",W),j.current===0&&re.type!=="animationcancel"&&_.classList.remove(...H))};_.classList.add(...H),_.addEventListener("animationend",W),_.addEventListener("animationcancel",W)},[]),q.useEffect(()=>{const _=g.current,H=()=>{_.removeEventListener("animationend",H),i?h2(_,w,o):w()};T||(p?H():(j.current=1,_.className+=` ${I}`,_.addEventListener("animationend",H)))},[T]),q.createElement(q.Fragment,null,c)}}function Z0(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 Pd=[];const Rm=new Set,p2=t=>Rm.forEach(e=>e(t)),OT=()=>oo.size>0;function _T(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 RT(t,e){_m(t)&&(OT()||Pd.push({content:t,options:e}),oo.forEach(n=>{n.buildToast(t,e)}))}function J0(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 g2(t){const{subscribe:e,getSnapshot:n,setProps:r}=q.useRef(function(o){const a=o.containerId||1;return{subscribe(c){const f=function(w,g,T){let E=1,A=0,I=[],j=[],_=[],H=g;const W=new Map,re=new Set,Z=()=>{_=Array.from(W.values()),re.forEach(le=>le())},de=le=>{j=le==null?[]:j.filter(ue=>ue!==le),Z()},S=le=>{const{toastId:ue,onOpen:ze,updateId:Me,children:Fe}=le.props,Ve=Me==null;le.staleId&&W.delete(le.staleId),W.set(ue,le),j=[...j,le.props.toastId].filter(Ue=>Ue!==le.staleId),Z(),T(Z0(le,Ve?"added":"updated")),Ve&&Zo(ze)&&ze(q.isValidElement(Fe)&&Fe.props)};return{id:w,props:H,observe:le=>(re.add(le),()=>re.delete(le)),toggle:(le,ue)=>{W.forEach(ze=>{ue!=null&&ue!==ze.props.toastId||Zo(ze.toggle)&&ze.toggle(le)})},removeToast:de,toasts:W,clearQueue:()=>{A-=I.length,I=[]},buildToast:(le,ue)=>{if((Ye=>{let{containerId:We,toastId:Je,updateId:Ze}=Ye;const Qe=We?We!==w:w!==1,it=W.has(Je)&&Ze==null;return Qe||it})(ue))return;const{toastId:ze,updateId:Me,data:Fe,staleId:Ve,delay:Ue}=ue,he=()=>{de(ze)},ke=Me==null;ke&&A++;const Oe={...H,style:H.toastStyle,key:E++,...Object.fromEntries(Object.entries(ue).filter(Ye=>{let[We,Je]=Ye;return Je!=null})),toastId:ze,updateId:Me,data:Fe,closeToast:he,isIn:!1,className:Ih(ue.className||H.toastClassName),bodyClassName:Ih(ue.bodyClassName||H.bodyClassName),progressClassName:Ih(ue.progressClassName||H.progressClassName),autoClose:!ue.isLoading&&(Ne=ue.autoClose,tt=H.autoClose,Ne===!1||Dd(Ne)&&Ne>0?Ne:tt),deleteToast(){const Ye=W.get(ze),{onClose:We,children:Je}=Ye.props;Zo(We)&&We(q.isValidElement(Je)&&Je.props),T(Z0(Ye,"removed")),W.delete(ze),A--,A<0&&(A=0),I.length>0?S(I.shift()):Z()}};var Ne,tt;Oe.closeButton=H.closeButton,ue.closeButton===!1||_m(ue.closeButton)?Oe.closeButton=ue.closeButton:ue.closeButton===!0&&(Oe.closeButton=!_m(H.closeButton)||H.closeButton);let me=le;q.isValidElement(le)&&!yc(le.type)?me=q.cloneElement(le,{closeToast:he,toastProps:Oe,data:Fe}):Zo(le)&&(me=le({closeToast:he,toastProps:Oe,data:Fe}));const Ee={content:me,props:Oe,staleId:Ve};H.limit&&H.limit>0&&A>H.limit&&ke?I.push(Ee):Dd(Ue)?setTimeout(()=>{S(Ee)},Ue):S(Ee)},setProps(le){H=le},setToggle:(le,ue)=>{W.get(le).toggle=ue},isToastActive:le=>j.some(ue=>ue===le),getSnapshot:()=>_}}(a,o,p2);oo.set(a,f);const p=f.observe(c);return Pd.forEach(w=>RT(w.content,w.options)),Pd=[],()=>{p(),oo.delete(a)}},setProps(c){var f;(f=oo.get(a))==null||f.setProps(c)},getSnapshot(){var c;return(c=oo.get(a))==null?void 0:c.getSnapshot()}}}(t)).current;r(t);const i=q.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:f}=c.props;a.has(f)||a.set(f,[]),a.get(f).push(c)}),Array.from(a,c=>o(c[0],c[1]))},isToastActive:_T,count:i==null?void 0:i.length}}function m2(t){const[e,n]=q.useState(!1),[r,i]=q.useState(!1),o=q.useRef(null),a=q.useRef({start:0,delta:0,removalDistance:0,canCloseOnClick:!0,canDrag:!1,didMove:!1}).current,{autoClose:c,pauseOnHover:f,closeToast:p,onClick:w,closeOnClick:g}=t;var T,E;function A(){n(!0)}function I(){n(!1)}function j(W){const re=o.current;a.canDrag&&re&&(a.didMove=!0,e&&I(),a.delta=t.draggableDirection==="x"?W.clientX-a.start:W.clientY-a.start,a.start!==W.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 W=o.current;if(a.canDrag&&a.didMove&&W){if(a.canDrag=!1,Math.abs(a.delta)>a.removalDistance)return i(!0),t.closeToast(),void t.collapseAll();W.style.transition="transform 0.2s, opacity 0.2s",W.style.removeProperty("transform"),W.style.removeProperty("opacity")}}(E=oo.get((T={id:t.toastId,containerId:t.containerId,fn:n}).containerId||1))==null||E.setToggle(T.id,T.fn),q.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 H={onPointerDown:function(W){if(t.draggable===!0||t.draggable===W.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=W.clientX,a.removalDistance=re.offsetWidth*(t.draggablePercent/100)):(a.start=W.clientY,a.removalDistance=re.offsetHeight*(t.draggablePercent===80?1.5*t.draggablePercent:t.draggablePercent)/100)}},onPointerUp:function(W){const{top:re,bottom:Z,left:de,right:S}=o.current.getBoundingClientRect();W.nativeEvent.type!=="touchend"&&t.pauseOnHover&&W.clientX>=de&&W.clientX<=S&&W.clientY>=re&&W.clientY<=Z?I():A()}};return c&&f&&(H.onMouseEnter=I,t.stacked||(H.onMouseLeave=A)),g&&(H.onClick=W=>{w&&w(W),a.canCloseOnClick&&p()}),{playToast:A,pauseToast:I,isRunning:e,preventExitTransition:r,toastRef:o,eventHandlers:H}}function v2(t){let{delay:e,isRunning:n,closeToast:r,type:i="default",hide:o,className:a,style:c,controlledProgress:f,progress:p,rtl:w,isIn:g,theme:T}=t;const E=o||f&&p===0,A={...c,animationDuration:`${e}ms`,animationPlayState:n?"running":"paused"};f&&(A.transform=`scaleX(${p})`);const I=yl("Toastify__progress-bar",f?"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}):yl(I,a),_={[f&&p>=1?"onTransitionEnd":"onAnimationEnd"]:f&&p<1?null:()=>{g&&r()}};return q.createElement("div",{className:"Toastify__progress-bar--wrp","data-hidden":E},q.createElement("div",{className:`Toastify__progress-bar--bg Toastify__progress-bar-theme--${T} Toastify__progress-bar--${i}`}),q.createElement("div",{role:"progressbar","aria-hidden":E?"true":"false","aria-label":"notification timer",className:j,style:A,..._}))}let y2=1;const AT=()=>""+y2++;function b2(t){return t&&(yc(t.toastId)||Dd(t.toastId))?t.toastId:AT()}function hd(t,e){return RT(t,e),e.toastId}function Qh(t,e){return{...e,type:e&&e.type||t,toastId:b2(e)}}function hh(t){return(e,n)=>hd(e,Qh(t,n))}function xn(t,e){return hd(t,Qh("default",e))}xn.loading=(t,e)=>hd(t,Qh("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=yc(i)?xn.loading(i,n):xn.loading(i.render,{...n,...i}));const c={isLoading:null,autoClose:null,closeOnClick:null,closeButton:null,draggable:null},f=(w,g,T)=>{if(g==null)return void xn.dismiss(r);const E={type:w,...c,...n,data:T},A=yc(g)?{render:g}:g;return r?xn.update(r,{...E,...A}):xn(A.render,{...E,...A}),T},p=Zo(t)?t():t;return p.then(w=>f("success",a,w)).catch(w=>f("error",o,w)),p},xn.success=hh("success"),xn.info=hh("info"),xn.error=hh("error"),xn.warning=hh("warning"),xn.warn=xn.warning,xn.dark=(t,e)=>hd(t,Qh("default",{theme:"dark",...e})),xn.dismiss=function(t){(function(e){var n;if(OT()){if(e==null||yc(n=e)||Dd(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 Pd=Pd.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=_T,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:AT()};o.toastId!==t&&(o.staleId=t);const a=o.render||i;delete o.render,hd(a,o)}},xn.done=t=>{xn.update(t,{progress:1})},xn.onChange=function(t){return Rm.add(t),()=>{Rm.delete(t)}},xn.play=t=>J0(!0,t),xn.pause=t=>J0(!1,t);const w2=typeof window<"u"?q.useLayoutEffect:q.useEffect,ph=t=>{let{theme:e,type:n,isLoading:r,...i}=t;return q.createElement("svg",{viewBox:"0 0 24 24",width:"100%",height:"100%",fill:e==="colored"?"currentColor":`var(--toastify-icon-color-${n})`,...i})},Dg={info:function(t){return q.createElement(ph,{...t},q.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 q.createElement(ph,{...t},q.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 q.createElement(ph,{...t},q.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 q.createElement(ph,{...t},q.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 q.createElement("div",{className:"Toastify__spinner"})}},x2=t=>{const{isRunning:e,preventExitTransition:n,toastRef:r,eventHandlers:i,playToast:o}=m2(t),{closeButton:a,children:c,autoClose:f,onClick:p,type:w,hideProgressBar:g,closeToast:T,transition:E,position:A,className:I,style:j,bodyClassName:_,bodyStyle:H,progressClassName:W,progressStyle:re,updateId:Z,role:de,progress:S,rtl:le,toastId:ue,deleteToast:ze,isIn:Me,isLoading:Fe,closeOnClick:Ve,theme:Ue}=t,he=yl("Toastify__toast",`Toastify__toast-theme--${Ue}`,`Toastify__toast--${w}`,{"Toastify__toast--rtl":le},{"Toastify__toast--close-on-click":Ve}),ke=Zo(I)?I({rtl:le,position:A,type:w,defaultClassName:he}):yl(he,I),Oe=function(Ee){let{theme:Ye,type:We,isLoading:Je,icon:Ze}=Ee,Qe=null;const it={theme:Ye,type:We};return Ze===!1||(Zo(Ze)?Qe=Ze({...it,isLoading:Je}):q.isValidElement(Ze)?Qe=q.cloneElement(Ze,it):Je?Qe=Dg.spinner():(ht=>ht in Dg)(We)&&(Qe=Dg[We](it))),Qe}(t),Ne=!!S||!f,tt={closeToast:T,type:w,theme:Ue};let me=null;return a===!1||(me=Zo(a)?a(tt):q.isValidElement(a)?q.cloneElement(a,tt):function(Ee){let{closeToast:Ye,theme:We,ariaLabel:Je="close"}=Ee;return q.createElement("button",{className:`Toastify__close-button Toastify__close-button--${We}`,type:"button",onClick:Ze=>{Ze.stopPropagation(),Ye(Ze)},"aria-label":Je},q.createElement("svg",{"aria-hidden":"true",viewBox:"0 0 14 16"},q.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"})))}(tt)),q.createElement(E,{isIn:Me,done:ze,position:A,preventExitTransition:n,nodeRef:r,playToast:o},q.createElement("div",{id:ue,onClick:p,"data-in":Me,className:ke,...i,style:j,ref:r},q.createElement("div",{...Me&&{role:de},className:Zo(_)?_({type:w}):yl("Toastify__toast-body",_),style:H},Oe!=null&&q.createElement("div",{className:yl("Toastify__toast-icon",{"Toastify--animate-icon Toastify__zoom-enter":!Fe})},Oe),q.createElement("div",null,c)),me,q.createElement(v2,{...Z&&!Ne?{key:`pb-${Z}`}:{},rtl:le,theme:Ue,delay:f,isRunning:e,isIn:Me,closeToast:T,hide:g,type:w,style:re,className:W,controlledProgress:Ne,progress:S||0})))},Cp=function(t,e){return e===void 0&&(e=!1),{enter:`Toastify--animate Toastify__${t}-enter`,exit:`Toastify--animate Toastify__${t}-exit`,appendPosition:e}},S2=Tp(Cp("bounce",!0));Tp(Cp("slide",!0));Tp(Cp("zoom"));Tp(Cp("flip"));const T2={position:"top-right",transition:S2,autoClose:5e3,closeButton:!0,pauseOnHover:!0,pauseOnFocusLoss:!0,draggable:"touch",draggablePercent:80,draggableDirection:"x",role:"alert",theme:"light"};function C2(t){let e={...T2,...t};const n=t.stacked,[r,i]=q.useState(!0),o=q.useRef(null),{getToastToRender:a,isToastActive:c,count:f}=g2(e),{className:p,style:w,rtl:g,containerId:T}=e;function E(I){const j=yl("Toastify__toast-container",`Toastify__toast-container--${I}`,{"Toastify__toast-container--rtl":g});return Zo(p)?p({position:I,rtl:g,defaultClassName:j}):yl(j,Ih(p))}function A(){n&&(i(!0),xn.play())}return w2(()=>{if(n){var I;const j=o.current.querySelectorAll('[data-in="true"]'),_=12,H=(I=e.position)==null?void 0:I.includes("top");let W=0,re=0;Array.from(j).reverse().forEach((Z,de)=>{const S=Z;S.classList.add("Toastify__toast--stacked"),de>0&&(S.dataset.collapsed=`${r}`),S.dataset.pos||(S.dataset.pos=H?"top":"bot");const le=W*(r?.2:1)+(r?0:_*de);S.style.setProperty("--y",`${H?le:-1*le}px`),S.style.setProperty("--g",`${_}`),S.style.setProperty("--s",""+(1-(r?re:0))),W+=S.offsetHeight,re+=.025})}},[r,f,n]),q.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 q.createElement("div",{className:E(I),style:_,key:`container-${I}`},j.map(H=>{let{content:W,props:re}=H;return q.createElement(x2,{...re,stacked:n,collapseAll:A,isIn:c(re.toastId,re.containerId),style:re.style,key:`toast-${re.key}`},W)}))}))}function E2(){return Ie.jsxs("svg",{width:"22",height:"22",viewBox:"0 0 22 22",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[Ie.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"}),Ie.jsx("path",{d:"M10.9942 6.89636V11.6737",stroke:"#E01B00",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),Ie.jsx("path",{d:"M10.9941 15.1038H11.0049",stroke:"#E01B00",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]})}function k2(){return Ie.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[Ie.jsx("rect",{width:"24",height:"24",rx:"12",fill:"#009D4F"}),Ie.jsx("path",{d:"M7.25244 12L10.4174 15.165L16.7474 8.83496",stroke:"white",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]})}function D2(){return Ie.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[Ie.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"}),Ie.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 jv={paddingLeft:"16px",borderLeft:"2px solid",boxShadow:"none",fontFamily:"inherit"},P2=({closeToast:t})=>Ie.jsx("i",{className:"material-icons",onClick:t,style:{cursor:"pointer"},children:Ie.jsx("svg",{width:"24",height:"25",viewBox:"0 0 24 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:Ie.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"})})}),Bv=(t,e)=>{xn.success(t,{icon:Ie.jsx(k2,{}),bodyStyle:{},position:"bottom-right",style:{...jv,background:ki.successLight,borderColor:ki.success,color:ki.success},...e})},Hd=(t,e)=>{xn.error(t,{icon:Ie.jsx(E2,{}),position:"bottom-right",style:{...jv,background:ki.dangerLight,borderColor:ki.danger,color:ki.danger},...e})},O2=(t,e)=>{xn.error(t,{icon:Ie.jsx(D2,{}),position:"bottom-right",style:{...jv,background:ki.warningLight,borderColor:ki.warning,color:ki.warning},...e})},_2=t=>{xn(t,{closeButton:P2,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 IT(t){let e=null;return()=>(e==null&&(e=t()),e)}function R2(t,e){return t.filter(n=>n!==e)}function A2(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 I2{enter(e){const n=this.entered.length,r=i=>this.isNodeInDocument(i)&&(!i.contains||i.contains(e));return this.entered=A2(this.entered.filter(r),[e]),n===0&&this.entered.length>0}leave(e){const n=this.entered.length;return this.entered=R2(this.entered.filter(this.isNodeInDocument),e),n>0&&this.entered.length===0}reset(){this.entered=[]}constructor(e){this.entered=[],this.isNodeInDocument=e}}class M2{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 MT="__NATIVE_FILE__",LT="__NATIVE_URL__",FT="__NATIVE_TEXT__",NT="__NATIVE_HTML__",Q0=Object.freeze(Object.defineProperty({__proto__:null,FILE:MT,HTML:NT,TEXT:FT,URL:LT},Symbol.toStringTag,{value:"Module"}));function Pg(t,e,n){const r=e.reduce((i,o)=>i||t.getData(o),"");return r??n}const Am={[MT]:{exposeProperties:{files:t=>Array.prototype.slice.call(t.files),items:t=>t.items,dataTransfer:t=>t},matchesTypes:["Files"]},[NT]:{exposeProperties:{html:(t,e)=>Pg(t,e,""),dataTransfer:t=>t},matchesTypes:["Html","text/html"]},[LT]:{exposeProperties:{urls:(t,e)=>Pg(t,e,"").split(`
4
+ `),dataTransfer:t=>t},matchesTypes:["Url","text/uri-list"]},[FT]:{exposeProperties:{text:(t,e)=>Pg(t,e,""),dataTransfer:t=>t},matchesTypes:["Text","text/plain"]}};function L2(t,e){const n=Am[t];if(!n)throw new Error(`native type ${t} has no configuration`);const r=new M2(n);return r.loadDataTransfer(e),r}function Og(t){if(!t)return null;const e=Array.prototype.slice.call(t.types||[]);return Object.keys(Am).filter(n=>{const r=Am[n];return r!=null&&r.matchesTypes?r.matchesTypes.some(i=>e.indexOf(i)>-1):!1})[0]||null}const F2=IT(()=>/firefox/i.test(navigator.userAgent)),jT=IT(()=>!!window.safari);class ew{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 f=0,p=a.length-1,w;for(;f<=p;){w=Math.floor(.5*(f+p));const E=n[w];if(E<e)f=w+1;else if(E>e)p=w-1;else return r[w]}c=Math.max(0,p);const g=e-n[c],T=g*g;return r[c]+i[c]*g+o[c]*T+a[c]*g*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,f;for(let E=0;E<r-1;E++)c=e[E+1]-e[E],f=n[E+1]-n[E],o.push(c),a.push(f/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=[],g=[];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),g.push(j*I*I)}this.xs=e,this.ys=n,this.c1s=p,this.c2s=w,this.c3s=g}}const N2=1;function BT(t){const e=t.nodeType===N2?t:t.parentElement;if(!e)return null;const{top:n,left:r}=e.getBoundingClientRect();return{x:r,y:n}}function gh(t){return{x:t.clientX,y:t.clientY}}function j2(t){var e;return t.nodeName==="IMG"&&(F2()||!(!((e=document.documentElement)===null||e===void 0)&&e.contains(t)))}function B2(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 $2(t,e,n,r,i){const o=j2(e),c=BT(o?t:e),f={x:n.x-c.x,y:n.y-c.y},{offsetWidth:p,offsetHeight:w}=t,{anchorX:g,anchorY:T}=r,{dragPreviewWidth:E,dragPreviewHeight:A}=B2(o,e,p,w),I=()=>{let de=new ew([0,.5,1],[f.y,f.y/w*A,f.y+A-w]).interpolate(T);return jT()&&o&&(de+=(window.devicePixelRatio-1)*A),de},j=()=>new ew([0,.5,1],[f.x,f.x/p*E,f.x+E-p]).interpolate(g),{offsetX:_,offsetY:H}=i,W=_===0||_,re=H===0||H;return{x:W?_:j(),y:re?H:I()}}let V2=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 H2(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function tw(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){H2(t,i,n[i])})}return t}class U2{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 tw({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 tw({anchorX:.5,anchorY:.5,captureDraggingState:!1},n||{})}isDraggingNativeItem(){const e=this.monitor.getItemType();return Object.keys(Q0).some(n=>Q0[n]===e)}beginDragNativeItem(e,n){this.clearCurrentDragSourceNode(),this.currentNativeSource=L2(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&&BT(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=gh(i);this.monitor.isDragging()&&(this.actions.endDrag(),this.cancelHover()),this.actions.beginDrag(o||[],{publishSource:!1,getSourceClientOffset:this.getSourceClientOffset,clientOffset:a});const{dataTransfer:c}=i,f=Og(c);if(this.monitor.isDragging()){if(c&&typeof c.setDragImage=="function"){const w=this.monitor.getSourceId(),g=this.sourceNodes.get(w),T=this.sourcePreviewNodes.get(w)||g;if(T){const{anchorX:E,anchorY:A,offsetX:I,offsetY:j}=this.getCurrentSourcePreviewNodeOptions(),W=$2(g,T,a,{anchorX:E,anchorY:A},{offsetX:I,offsetY:j});c.setDragImage(T,W.x,W.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(f)this.beginDragNativeItem(f);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,f=Og(c);f&&this.beginDragNativeItem(f,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:gh(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=gh(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 Og(i.dataTransfer)&&i.preventDefault();this.enterLeaveCounter.reset()},this.handleTopDrop=i=>{const{dropTargetIds:o}=this;this.dropTargetIds=[],this.actions.hover(o,{clientOffset:gh(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 V2(n,r),this.actions=e.getActions(),this.monitor=e.getMonitor(),this.registry=e.getRegistry(),this.enterLeaveCounter=new I2(this.isNodeInDocument)}}let mh;function W2(){return mh||(mh=new Image,mh.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=="),mh}const z2=function(e,n,r){return new U2(e,n,r)};var bc=[],Y2=function(){return bc.some(function(t){return t.activeTargets.length>0})},G2=function(){return bc.some(function(t){return t.skippedTargets.length>0})},nw="ResizeObserver loop completed with undelivered notifications.",q2=function(){var t;typeof ErrorEvent=="function"?t=new ErrorEvent("error",{message:nw}):(t=document.createEvent("Event"),t.initEvent("error",!1,!1),t.message=nw),window.dispatchEvent(t)},Od;(function(t){t.BORDER_BOX="border-box",t.CONTENT_BOX="content-box",t.DEVICE_PIXEL_CONTENT_BOX="device-pixel-content-box"})(Od||(Od={}));var wc=function(t){return Object.freeze(t)},X2=function(){function t(e,n){this.inlineSize=e,this.blockSize=n,wc(this)}return t}(),$T=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,wc(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,f=e.width,p=e.height;return{x:n,y:r,top:i,right:o,bottom:a,left:c,width:f,height:p}},t.fromRect=function(e){return new t(e.x,e.y,e.width,e.height)},t}(),$v=function(t){return t instanceof SVGElement&&"getBBox"in t},VT=function(t){if($v(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)},rw=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)},K2=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},pd=typeof window<"u"?window:{},vh=new WeakMap,iw=/auto|scroll/,Z2=/^tb|vertical/,J2=/msie|trident/i.test(pd.navigator&&pd.navigator.userAgent),Ia=function(t){return parseFloat(t||"0")},Sf=function(t,e,n){return t===void 0&&(t=0),e===void 0&&(e=0),n===void 0&&(n=!1),new X2((n?e:t)||0,(n?t:e)||0)},ow=wc({devicePixelContentBoxSize:Sf(),borderBoxSize:Sf(),contentBoxSize:Sf(),contentRect:new $T(0,0,0,0)}),HT=function(t,e){if(e===void 0&&(e=!1),vh.has(t)&&!e)return vh.get(t);if(VT(t))return vh.set(t,ow),ow;var n=getComputedStyle(t),r=$v(t)&&t.ownerSVGElement&&t.getBBox(),i=!J2&&n.boxSizing==="border-box",o=Z2.test(n.writingMode||""),a=!r&&iw.test(n.overflowY||""),c=!r&&iw.test(n.overflowX||""),f=r?0:Ia(n.paddingTop),p=r?0:Ia(n.paddingRight),w=r?0:Ia(n.paddingBottom),g=r?0:Ia(n.paddingLeft),T=r?0:Ia(n.borderTopWidth),E=r?0:Ia(n.borderRightWidth),A=r?0:Ia(n.borderBottomWidth),I=r?0:Ia(n.borderLeftWidth),j=g+p,_=f+w,H=I+E,W=T+A,re=c?t.offsetHeight-W-t.clientHeight:0,Z=a?t.offsetWidth-H-t.clientWidth:0,de=i?j+H:0,S=i?_+W:0,le=r?r.width:Ia(n.width)-de-Z,ue=r?r.height:Ia(n.height)-S-re,ze=le+j+Z+H,Me=ue+_+re+W,Fe=wc({devicePixelContentBoxSize:Sf(Math.round(le*devicePixelRatio),Math.round(ue*devicePixelRatio),o),borderBoxSize:Sf(ze,Me,o),contentBoxSize:Sf(le,ue,o),contentRect:new $T(g,f,le,ue)});return vh.set(t,Fe),Fe},UT=function(t,e,n){var r=HT(t,n),i=r.borderBoxSize,o=r.contentBoxSize,a=r.devicePixelContentBoxSize;switch(e){case Od.DEVICE_PIXEL_CONTENT_BOX:return a;case Od.BORDER_BOX:return i;default:return o}},Q2=function(){function t(e){var n=HT(e);this.target=e,this.contentRect=n.contentRect,this.borderBoxSize=wc([n.borderBoxSize]),this.contentBoxSize=wc([n.contentBoxSize]),this.devicePixelContentBoxSize=wc([n.devicePixelContentBoxSize])}return t}(),WT=function(t){if(VT(t))return 1/0;for(var e=0,n=t.parentNode;n;)e+=1,n=n.parentNode;return e},eF=function(){var t=1/0,e=[];bc.forEach(function(a){if(a.activeTargets.length!==0){var c=[];a.activeTargets.forEach(function(p){var w=new Q2(p.target),g=WT(p.target);c.push(w),p.lastReportedSize=UT(p.target,p.observedBox),g<t&&(t=g)}),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},sw=function(t){bc.forEach(function(n){n.activeTargets.splice(0,n.activeTargets.length),n.skippedTargets.splice(0,n.skippedTargets.length),n.observationTargets.forEach(function(i){i.isActive()&&(WT(i.target)>t?n.activeTargets.push(i):n.skippedTargets.push(i))})})},tF=function(){var t=0;for(sw(t);Y2();)t=eF(),sw(t);return G2()&&q2(),t>0},_g,zT=[],nF=function(){return zT.splice(0).forEach(function(t){return t()})},rF=function(t){if(!_g){var e=0,n=document.createTextNode(""),r={characterData:!0};new MutationObserver(function(){return nF()}).observe(n,r),_g=function(){n.textContent="".concat(e?e--:e++)}}zT.push(t),_g()},iF=function(t){rF(function(){requestAnimationFrame(t)})},Mh=0,oF=function(){return!!Mh},sF=250,aF={attributes:!0,characterData:!0,childList:!0,subtree:!0},aw=["resize","load","transitionend","animationend","animationstart","animationiteration","keyup","keydown","mouseup","mousedown","mouseover","mouseout","blur","focus"],lw=function(t){return t===void 0&&(t=0),Date.now()+t},Rg=!1,lF=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=sF),!Rg){Rg=!0;var r=lw(e);iF(function(){var i=!1;try{i=tF()}finally{if(Rg=!1,e=r-lw(),!oF())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,aF)};document.body?n():pd.addEventListener("DOMContentLoaded",n)},t.prototype.start=function(){var e=this;this.stopped&&(this.stopped=!1,this.observer=new MutationObserver(this.listener),this.observe(),aw.forEach(function(n){return pd.addEventListener(n,e.listener,!0)}))},t.prototype.stop=function(){var e=this;this.stopped||(this.observer&&this.observer.disconnect(),aw.forEach(function(n){return pd.removeEventListener(n,e.listener,!0)}),this.stopped=!0)},t}(),Im=new lF,uw=function(t){!Mh&&t>0&&Im.start(),Mh+=t,!Mh&&Im.stop()},uF=function(t){return!$v(t)&&!K2(t)&&getComputedStyle(t).display==="inline"},cF=function(){function t(e,n){this.target=e,this.observedBox=n||Od.CONTENT_BOX,this.lastReportedSize={inlineSize:0,blockSize:0}}return t.prototype.isActive=function(){var e=UT(this.target,this.observedBox,!0);return uF(this.target)&&(this.lastReportedSize=e),this.lastReportedSize.inlineSize!==e.inlineSize||this.lastReportedSize.blockSize!==e.blockSize},t}(),fF=function(){function t(e,n){this.activeTargets=[],this.skippedTargets=[],this.observationTargets=[],this.observer=e,this.callback=n}return t}(),yh=new WeakMap,cw=function(t,e){for(var n=0;n<t.length;n+=1)if(t[n].target===e)return n;return-1},bh=function(){function t(){}return t.connect=function(e,n){var r=new fF(e,n);yh.set(e,r)},t.observe=function(e,n,r){var i=yh.get(e),o=i.observationTargets.length===0;cw(i.observationTargets,n)<0&&(o&&bc.push(i),i.observationTargets.push(new cF(n,r&&r.box)),uw(1),Im.schedule())},t.unobserve=function(e,n){var r=yh.get(e),i=cw(r.observationTargets,n),o=r.observationTargets.length===1;i>=0&&(o&&bc.splice(bc.indexOf(r),1),r.observationTargets.splice(i,1),uw(-1))},t.disconnect=function(e){var n=this,r=yh.get(e);r.observationTargets.slice().forEach(function(i){return n.unobserve(e,i.target)}),r.activeTargets.splice(0,r.activeTargets.length)},t}(),dF=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.");bh.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(!rw(e))throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element");bh.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(!rw(e))throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element");bh.unobserve(this,e)},t.prototype.disconnect=function(){bh.disconnect(this)},t.toString=function(){return"function ResizeObserver () { [polyfill code] }"},t}();const YT=q.createContext({});function hF(t){const e=q.useRef(null);return e.current===null&&(e.current=t()),e.current}const Vv=q.createContext(null),GT=q.createContext({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"});function pF(t=!0){const e=q.useContext(Vv);if(e===null)return[!0,null];const{isPresent:n,onExitComplete:r,register:i}=e,o=q.useId();q.useEffect(()=>{t&&i(o)},[t]);const a=q.useCallback(()=>t&&r&&r(o),[o,r,t]);return!n&&r?[!1,a]:[!0]}const Hv=typeof window<"u",gF=Hv?q.useLayoutEffect:q.useEffect,_o=t=>t;let Af=_o,mu=_o;process.env.NODE_ENV!=="production"&&(Af=(t,e)=>{!t&&typeof console<"u"&&console.warn(e)},mu=(t,e)=>{if(!t)throw new Error(e)});function Uv(t){let e;return()=>(e===void 0&&(e=t()),e)}const Cf=(t,e,n)=>{const r=e-t;return r===0?1:(n-t)/r},Fa=t=>t*1e3,xl=t=>t/1e3,mF={useManualTiming:!1};function vF(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)&&(f.schedule(p),t()),p(a)}const f={schedule:(p,w=!1,g=!1)=>{const E=g&&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,f.process(p))}};return f}const wh=["read","resolveKeyframes","update","preRender","render","postRender"],yF=40;function qT(t,e){let n=!1,r=!0;const i={delta:0,timestamp:0,isProcessing:!1},o=()=>n=!0,a=wh.reduce((_,H)=>(_[H]=vF(o),_),{}),{read:c,resolveKeyframes:f,update:p,preRender:w,render:g,postRender:T}=a,E=()=>{const _=performance.now();n=!1,i.delta=r?1e3/60:Math.max(Math.min(_-i.timestamp,yF),1),i.timestamp=_,i.isProcessing=!0,c.process(i),f.process(i),p.process(i),w.process(i),g.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:wh.reduce((_,H)=>{const W=a[H];return _[H]=(re,Z=!1,de=!1)=>(n||A(),W.schedule(re,Z,de)),_},{}),cancel:_=>{for(let H=0;H<wh.length;H++)a[wh[H]].cancel(_)},state:i,steps:a}}const{schedule:Fn,cancel:vu,state:Ci,steps:Ag}=qT(typeof requestAnimationFrame<"u"?requestAnimationFrame:_o,!0),XT=q.createContext({strict:!1}),fw={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"]},Ef={};for(const t in fw)Ef[t]={isEnabled:e=>fw[t].some(n=>!!e[n])};function bF(t){for(const e in t)Ef[e]={...Ef[e],...t[e]}}const wF=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 ep(t){return t.startsWith("while")||t.startsWith("drag")&&t!=="draggable"||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||t.startsWith("onLayout")||wF.has(t)}let KT=t=>!ep(t);function xF(t){t&&(KT=e=>e.startsWith("on")?!ep(e):t(e))}try{xF(require("@emotion/is-prop-valid").default)}catch{}function SF(t,e,n){const r={};for(const i in t)i==="values"&&typeof t.values=="object"||(KT(i)||n===!0&&ep(i)||!e&&!ep(i)||t.draggable&&i.startsWith("onDrag"))&&(r[i]=t[i]);return r}const dw=new Set;function Ep(t,e,n){t||dw.has(e)||(console.warn(e),dw.add(e))}function TF(t){if(typeof Proxy>"u")return t;const e=new Map,n=(...r)=>(process.env.NODE_ENV!=="production"&&Ep(!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 kp=q.createContext({});function _d(t){return typeof t=="string"||Array.isArray(t)}function Dp(t){return t!==null&&typeof t=="object"&&typeof t.start=="function"}const Wv=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],zv=["initial",...Wv];function Pp(t){return Dp(t.animate)||zv.some(e=>_d(t[e]))}function ZT(t){return!!(Pp(t)||t.variants)}function CF(t,e){if(Pp(t)){const{initial:n,animate:r}=t;return{initial:n===!1||_d(n)?n:void 0,animate:_d(r)?r:void 0}}return t.inherit!==!1?e:{}}function EF(t){const{initial:e,animate:n}=CF(t,q.useContext(kp));return q.useMemo(()=>({initial:e,animate:n}),[hw(e),hw(n)])}function hw(t){return Array.isArray(t)?t.join(" "):t}const kF=Symbol.for("motionComponentSymbol");function hf(t){return t&&typeof t=="object"&&Object.prototype.hasOwnProperty.call(t,"current")}function DF(t,e,n){return q.useCallback(r=>{r&&t.onMount&&t.onMount(r),e&&(r?e.mount(r):e.unmount()),n&&(typeof n=="function"?n(r):hf(n)&&(n.current=r))},[e])}const Yv=t=>t.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),PF="framerAppearId",JT="data-"+Yv(PF),{schedule:Gv}=qT(queueMicrotask,!1),QT=q.createContext({});function OF(t,e,n,r,i){var o,a;const{visualElement:c}=q.useContext(kp),f=q.useContext(XT),p=q.useContext(Vv),w=q.useContext(GT).reducedMotion,g=q.useRef(null);r=r||f.renderer,!g.current&&r&&(g.current=r(t,{visualState:e,parent:c,props:n,presenceContext:p,blockInitialAnimation:p?p.initial===!1:!1,reducedMotionConfig:w}));const T=g.current,E=q.useContext(QT);T&&!T.projection&&i&&(T.type==="html"||T.type==="svg")&&_F(g.current,n,i,E);const A=q.useRef(!1);q.useInsertionEffect(()=>{T&&A.current&&T.update(n,p)});const I=n[JT],j=q.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 gF(()=>{T&&(A.current=!0,window.MotionIsMounted=!0,T.updateFeatures(),Gv.render(T.render),j.current&&T.animationState&&T.animationState.animateChanges())}),q.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 _F(t,e,n,r){const{layoutId:i,layout:o,drag:a,dragConstraints:c,layoutScroll:f,layoutRoot:p}=e;t.projection=new n(t.latestValues,e["data-framer-portal-id"]?void 0:eC(t.parent)),t.projection.setOptions({layoutId:i,layout:o,alwaysMeasureLayout:!!a||c&&hf(c),visualElement:t,animationType:typeof o=="string"?o:"both",initialPromotionConfig:r,layoutScroll:f,layoutRoot:p})}function eC(t){if(t)return t.options.allowProjection!==!1?t.projection:eC(t.parent)}function RF({preloadedFeatures:t,createVisualElement:e,useRender:n,useVisualState:r,Component:i}){var o,a;t&&bF(t);function c(p,w){let g;const T={...q.useContext(GT),...p,layoutId:AF(p)},{isStatic:E}=T,A=EF(p),I=r(p,E);if(!E&&Hv){IF(T,t);const j=MF(T);g=j.MeasureLayout,A.visualElement=OF(i,I,T,e,j.ProjectionNode)}return Ie.jsxs(kp.Provider,{value:A,children:[g&&A.visualElement?Ie.jsx(g,{visualElement:A.visualElement,...T}):null,n(i,p,DF(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 f=q.forwardRef(c);return f[kF]=i,f}function AF({layoutId:t}){const e=q.useContext(YT).id;return e&&t!==void 0?e+"-"+t:t}function IF(t,e){const n=q.useContext(XT).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?Af(!1,r):mu(!1,r)}}function MF(t){const{drag:e,layout:n}=Ef;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 LF=["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 qv(t){return typeof t!="string"||t.includes("-")?!1:!!(LF.indexOf(t)>-1||/[A-Z]/u.test(t))}function pw(t){const e=[{},{}];return t==null||t.values.forEach((n,r)=>{e[0][r]=n.get(),e[1][r]=n.getVelocity()}),e}function Xv(t,e,n,r){if(typeof e=="function"){const[i,o]=pw(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]=pw(r);e=e(n!==void 0?n:t.custom,i,o)}return e}const Mm=t=>Array.isArray(t),FF=t=>!!(t&&typeof t=="object"&&t.mix&&t.toValue),NF=t=>Mm(t)?t[t.length-1]||0:t,ji=t=>!!(t&&t.getVelocity);function Lh(t){const e=ji(t)?t.get():t;return FF(e)?e.toValue():e}function jF({scrapeMotionValuesFromProps:t,createRenderState:e,onUpdate:n},r,i,o){const a={latestValues:BF(r,i,o,t),renderState:e()};return n&&(a.onMount=c=>n({props:r,current:c,...a}),a.onUpdate=c=>n(c)),a}const tC=t=>(e,n)=>{const r=q.useContext(kp),i=q.useContext(Vv),o=()=>jF(t,e,r,i);return n?o():hF(o)};function BF(t,e,n,r){const i={},o=r(t,{});for(const T in o)i[T]=Lh(o[T]);let{initial:a,animate:c}=t;const f=Pp(t),p=ZT(t);e&&p&&!f&&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 g=w?c:a;if(g&&typeof g!="boolean"&&!Dp(g)){const T=Array.isArray(g)?g:[g];for(let E=0;E<T.length;E++){const A=Xv(t,T[E]);if(A){const{transitionEnd:I,transition:j,..._}=A;for(const H in _){let W=_[H];if(Array.isArray(W)){const re=w?W.length-1:0;W=W[re]}W!==null&&(i[H]=W)}for(const H in I)i[H]=I[H]}}}return i}const If=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Oc=new Set(If),nC=t=>e=>typeof e=="string"&&e.startsWith(t),rC=nC("--"),$F=nC("var(--"),Kv=t=>$F(t)?VF.test(t.split("/*")[0].trim()):!1,VF=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,iC=(t,e)=>e&&typeof t=="number"?e.transform(t):t,El=(t,e,n)=>n>e?e:n<t?t:n,Mf={test:t=>typeof t=="number",parse:parseFloat,transform:t=>t},Rd={...Mf,transform:t=>El(0,1,t)},xh={...Mf,default:1},Ud=t=>({test:e=>typeof e=="string"&&e.endsWith(t)&&e.split(" ").length===1,parse:parseFloat,transform:e=>`${e}${t}`}),iu=Ud("deg"),Na=Ud("%"),Ot=Ud("px"),HF=Ud("vh"),UF=Ud("vw"),gw={...Na,parse:t=>Na.parse(t)/100,transform:t=>Na.transform(t*100)},WF={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},zF={rotate:iu,rotateX:iu,rotateY:iu,rotateZ:iu,scale:xh,scaleX:xh,scaleY:xh,scaleZ:xh,skew:iu,skewX:iu,skewY:iu,distance:Ot,translateX:Ot,translateY:Ot,translateZ:Ot,x:Ot,y:Ot,z:Ot,perspective:Ot,transformPerspective:Ot,opacity:Rd,originX:gw,originY:gw,originZ:Ot},mw={...Mf,transform:Math.round},Zv={...WF,...zF,zIndex:mw,size:Ot,fillOpacity:Rd,strokeOpacity:Rd,numOctaves:mw},YF={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},GF=If.length;function qF(t,e,n){let r="",i=!0;for(let o=0;o<GF;o++){const a=If[o],c=t[a];if(c===void 0)continue;let f=!0;if(typeof c=="number"?f=c===(a.startsWith("scale")?1:0):f=parseFloat(c)===0,!f||n){const p=iC(c,Zv[a]);if(!f){i=!1;const w=YF[a]||a;r+=`${w}(${p}) `}n&&(e[a]=p)}}return r=r.trim(),n?r=n(e,i?"":r):i&&(r="none"),r}function Jv(t,e,n){const{style:r,vars:i,transformOrigin:o}=t;let a=!1,c=!1;for(const f in e){const p=e[f];if(Oc.has(f)){a=!0;continue}else if(rC(f)){i[f]=p;continue}else{const w=iC(p,Zv[f]);f.startsWith("origin")?(c=!0,o[f]=w):r[f]=w}}if(e.transform||(a||n?r.transform=qF(e,t.transform,n):r.transform&&(r.transform="none")),c){const{originX:f="50%",originY:p="50%",originZ:w=0}=o;r.transformOrigin=`${f} ${p} ${w}`}}const XF={offset:"stroke-dashoffset",array:"stroke-dasharray"},KF={offset:"strokeDashoffset",array:"strokeDasharray"};function ZF(t,e,n=1,r=0,i=!0){t.pathLength=1;const o=i?XF:KF;t[o.offset]=Ot.transform(-r);const a=Ot.transform(e),c=Ot.transform(n);t[o.array]=`${a} ${c}`}function vw(t,e,n){return typeof t=="string"?t:Ot.transform(e+n*t)}function JF(t,e,n){const r=vw(e,t.x,t.width),i=vw(n,t.y,t.height);return`${r} ${i}`}function Qv(t,{attrX:e,attrY:n,attrScale:r,originX:i,originY:o,pathLength:a,pathSpacing:c=1,pathOffset:f=0,...p},w,g){if(Jv(t,p,g),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=JF(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&&ZF(T,a,c,f,!1)}const ey=()=>({style:{},transform:{},transformOrigin:{},vars:{}}),oC=()=>({...ey(),attrs:{}}),ty=t=>typeof t=="string"&&t.toLowerCase()==="svg";function sC(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 aC=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 lC(t,e,n,r){sC(t,e,void 0,r);for(const i in e.attrs)t.setAttribute(aC.has(i)?i:Yv(i),e.attrs[i])}const tp={};function QF(t){Object.assign(tp,t)}function uC(t,{layout:e,layoutId:n}){return Oc.has(t)||t.startsWith("origin")||(e||n!==void 0)&&(!!tp[t]||t==="opacity")}function ny(t,e,n){var r;const{style:i}=t,o={};for(const a in i)(ji(i[a])||e.style&&ji(e.style[a])||uC(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=ny(t,e,n);for(const i in t)if(ji(t[i])||ji(e[i])){const o=If.indexOf(i)!==-1?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i;r[o]=t[i]}return r}function eN(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 yw=["x","y","width","height","cx","cy","r"],tN={useVisualState:tC({scrapeMotionValuesFromProps:cC,createRenderState:oC,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(Oc.has(c)){o=!0;break}}if(!o)return;let a=!e;if(e)for(let c=0;c<yw.length;c++){const f=yw[c];t[f]!==e[f]&&(a=!0)}a&&Fn.read(()=>{eN(n,r),Fn.render(()=>{Qv(r,i,ty(n.tagName),t.transformTemplate),lC(n,r)})})}})},nN={useVisualState:tC({scrapeMotionValuesFromProps:ny,createRenderState:ey})};function fC(t,e,n){for(const r in e)!ji(e[r])&&!uC(r,n)&&(t[r]=e[r])}function rN({transformTemplate:t},e){return q.useMemo(()=>{const n=ey();return Jv(n,e,t),Object.assign({},n.vars,n.style)},[e])}function iN(t,e){const n=t.style||{},r={};return fC(r,n,t),Object.assign(r,rN(t,e)),r}function oN(t,e){const n={},r=iN(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 sN(t,e,n,r){const i=q.useMemo(()=>{const o=oC();return Qv(o,e,ty(r),t.transformTemplate),{...o.attrs,style:{...o.style}}},[e]);if(t.style){const o={};fC(o,t.style,t),i.style={...o,...i.style}}return i}function aN(t=!1){return(n,r,i,{latestValues:o},a)=>{const f=(qv(n)?sN:oN)(r,o,a,n),p=SF(r,typeof n=="string",t),w=n!==q.Fragment?{...p,...f,ref:i}:{},{children:g}=r,T=q.useMemo(()=>ji(g)?g.get():g,[g]);return q.createElement(n,{...w,children:T})}}function lN(t,e){return function(r,{forwardMotionProps:i}={forwardMotionProps:!1}){const a={...qv(r)?tN:nN,preloadedFeatures:t,useRender:aN(i),createVisualElement:e,Component:r};return RF(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 Op(t,e,n){const r=t.getProps();return Xv(r,e,n!==void 0?n:r.custom,t)}const uN=Uv(()=>window.ScrollTimeline!==void 0);class cN{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(uN()&&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 fN extends cN{then(e,n){return Promise.all(this.animations).then(e).catch(n)}}function ry(t,e){return t?t[e]||t.default||t:void 0}const Lm=2e4;function hC(t){let e=0;const n=50;let r=t.next(e);for(;!r.done&&e<Lm;)e+=n,r=t.next(e);return e>=Lm?1/0:e}function iy(t){return typeof t=="function"}function bw(t,e){t.timeline=e,t.onfinish=null}const oy=t=>Array.isArray(t)&&typeof t[0]=="number",dN={linearEasing:void 0};function hN(t,e){const n=Uv(t);return()=>{var r;return(r=dN[e])!==null&&r!==void 0?r:n()}}const np=hN(()=>{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(Cf(0,i-1,o))+", ";return`linear(${r.substring(0,r.length-2)})`};function gC(t){return!!(typeof t=="function"&&np()||!t||typeof t=="string"&&(t in Fm||np())||oy(t)||Array.isArray(t)&&t.every(gC))}const ad=([t,e,n,r])=>`cubic-bezier(${t}, ${e}, ${n}, ${r})`,Fm={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:ad([0,.65,.55,1]),circOut:ad([.55,0,1,.45]),backIn:ad([.31,.01,.66,-.59]),backOut:ad([.33,1.53,.69,.99])};function mC(t,e){if(t)return typeof t=="function"&&np()?pC(t,e):oy(t)?ad(t):Array.isArray(t)?t.map(n=>mC(n,e)||Fm.easeOut):Fm[t]}const ia={x:!1,y:!1};function vC(){return ia.x||ia.y}function pN(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 yC(t,e){const n=pN(t),r=new AbortController,i={passive:!0,...e,signal:r.signal};return[n,i,()=>r.abort()]}function ww(t){return e=>{e.pointerType==="touch"||vC()||t(e)}}function gN(t,e,n={}){const[r,i,o]=yC(t,n),a=ww(c=>{const{target:f}=c,p=e(c);if(typeof p!="function"||!f)return;const w=ww(g=>{p(g),f.removeEventListener("pointerleave",w)});f.addEventListener("pointerleave",w,i)});return r.forEach(c=>{c.addEventListener("pointerenter",a,i)}),o}const bC=(t,e)=>e?t===e?!0:bC(t,e.parentElement):!1,sy=t=>t.pointerType==="mouse"?typeof t.button!="number"||t.button<=0:t.isPrimary!==!1,mN=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function vN(t){return mN.has(t.tagName)||t.tabIndex!==-1}const ld=new WeakSet;function xw(t){return e=>{e.key==="Enter"&&t(e)}}function Ig(t,e){t.dispatchEvent(new PointerEvent("pointer"+e,{isPrimary:!0,bubbles:!0}))}const yN=(t,e)=>{const n=t.currentTarget;if(!n)return;const r=xw(()=>{if(ld.has(n))return;Ig(n,"down");const i=xw(()=>{Ig(n,"up")}),o=()=>Ig(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 Sw(t){return sy(t)&&!vC()}function bN(t,e,n={}){const[r,i,o]=yC(t,n),a=c=>{const f=c.currentTarget;if(!Sw(c)||ld.has(f))return;ld.add(f);const p=e(c),w=(E,A)=>{window.removeEventListener("pointerup",g),window.removeEventListener("pointercancel",T),!(!Sw(E)||!ld.has(f))&&(ld.delete(f),typeof p=="function"&&p(E,{success:A}))},g=E=>{w(E,n.useGlobalTarget||bC(f,E.target))},T=E=>{w(E,!1)};window.addEventListener("pointerup",g,i),window.addEventListener("pointercancel",T,i)};return r.forEach(c=>{!vN(c)&&c.getAttribute("tabindex")===null&&(c.tabIndex=0),(n.useGlobalTarget?window:c).addEventListener("pointerdown",a,i),c.addEventListener("focus",p=>yN(p,i),i)}),o}function wN(t){return t==="x"||t==="y"?ia[t]?null:(ia[t]=!0,()=>{ia[t]=!1}):ia.x||ia.y?null:(ia.x=ia.y=!0,()=>{ia.x=ia.y=!1})}const wC=new Set(["width","height","top","left","right","bottom",...If]);let Fh;function xN(){Fh=void 0}const ja={now:()=>(Fh===void 0&&ja.set(Ci.isProcessing||mF.useManualTiming?Ci.timestamp:performance.now()),Fh),set:t=>{Fh=t,queueMicrotask(xN)}};function ay(t,e){t.indexOf(e)===-1&&t.push(e)}function ly(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}let uy=class{constructor(){this.subscriptions=[]}add(e){return ay(this.subscriptions,e),()=>ly(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 xC(t,e){return e?t*(1e3/e):0}const Tw=30,SN=t=>!isNaN(parseFloat(t));let TN=class{constructor(e,n={}){this.version="11.18.2",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(r,i=!0)=>{const o=ja.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=ja.now(),this.canTrackVelocity===null&&e!==void 0&&(this.canTrackVelocity=SN(this.current))}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return process.env.NODE_ENV!=="production"&&Ep(!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 uy);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=ja.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||e-this.updatedAt>Tw)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,Tw);return xC(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 Ad(t,e){return new TN(t,e)}function CN(t,e,n){t.hasValue(e)?t.getValue(e).set(n):t.addValue(e,Ad(n))}function EN(t,e){const n=Op(t,e);let{transitionEnd:r={},transition:i={},...o}=n||{};o={...o,...r};for(const a in o){const c=NF(o[a]);CN(t,a,c)}}function kN(t){return!!(ji(t)&&t.add)}function Nm(t,e){const n=t.getValue("willChange");if(kN(n))return n.add(e)}function SC(t){return t.props[JT]}const TC=(t,e,n)=>(((1-3*n+3*e)*t+(3*n-6*e))*t+3*e)*t,DN=1e-7,PN=12;function ON(t,e,n,r,i){let o,a,c=0;do a=e+(n-e)/2,o=TC(a,r,i)-t,o>0?n=a:e=a;while(Math.abs(o)>DN&&++c<PN);return a}function Wd(t,e,n,r){if(t===e&&n===r)return _o;const i=o=>ON(o,0,1,t,n);return o=>o===0||o===1?o:TC(i(o),e,r)}const CC=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,EC=t=>e=>1-t(1-e),kC=Wd(.33,1.53,.69,.99),cy=EC(kC),DC=CC(cy),PC=t=>(t*=2)<1?.5*cy(t):.5*(2-Math.pow(2,-10*(t-1))),fy=t=>1-Math.sin(Math.acos(t)),OC=EC(fy),_C=CC(fy),RC=t=>/^0[^.\s]+$/u.test(t);function _N(t){return typeof t=="number"?t===0:t!==null?t==="none"||t==="0"||RC(t):!0}const gd=t=>Math.round(t*1e5)/1e5,dy=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function RN(t){return t==null}const AN=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,hy=(t,e)=>n=>!!(typeof n=="string"&&AN.test(n)&&n.startsWith(t)||e&&!RN(n)&&Object.prototype.hasOwnProperty.call(n,e)),AC=(t,e,n)=>r=>{if(typeof r!="string")return r;const[i,o,a,c]=r.match(dy);return{[t]:parseFloat(i),[e]:parseFloat(o),[n]:parseFloat(a),alpha:c!==void 0?parseFloat(c):1}},IN=t=>El(0,255,t),Mg={...Mf,transform:t=>Math.round(IN(t))},gc={test:hy("rgb","red"),parse:AC("red","green","blue"),transform:({red:t,green:e,blue:n,alpha:r=1})=>"rgba("+Mg.transform(t)+", "+Mg.transform(e)+", "+Mg.transform(n)+", "+gd(Rd.transform(r))+")"};function MN(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 jm={test:hy("#"),parse:MN,transform:gc.transform},pf={test:hy("hsl","hue"),parse:AC("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:n,alpha:r=1})=>"hsla("+Math.round(t)+", "+Na.transform(gd(e))+", "+Na.transform(gd(n))+", "+gd(Rd.transform(r))+")"},Ni={test:t=>gc.test(t)||jm.test(t)||pf.test(t),parse:t=>gc.test(t)?gc.parse(t):pf.test(t)?pf.parse(t):jm.parse(t),transform:t=>typeof t=="string"?t:t.hasOwnProperty("red")?gc.transform(t):pf.transform(t)},LN=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function FN(t){var e,n;return isNaN(t)&&typeof t=="string"&&(((e=t.match(dy))===null||e===void 0?void 0:e.length)||0)+(((n=t.match(LN))===null||n===void 0?void 0:n.length)||0)>0}const IC="number",MC="color",NN="var",jN="var(",Cw="${}",BN=/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 Id(t){const e=t.toString(),n=[],r={color:[],number:[],var:[]},i=[];let o=0;const c=e.replace(BN,f=>(Ni.test(f)?(r.color.push(o),i.push(MC),n.push(Ni.parse(f))):f.startsWith(jN)?(r.var.push(o),i.push(NN),n.push(f)):(r.number.push(o),i.push(IC),n.push(parseFloat(f))),++o,Cw)).split(Cw);return{values:n,split:c,indexes:r,types:i}}function LC(t){return Id(t).values}function FC(t){const{split:e,types:n}=Id(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===IC?o+=gd(i[a]):c===MC?o+=Ni.transform(i[a]):o+=i[a]}return o}}const $N=t=>typeof t=="number"?0:t;function VN(t){const e=LC(t);return FC(t)(e.map($N))}const yu={test:FN,parse:LC,createTransformer:FC,getAnimatableNone:VN},HN=new Set(["brightness","contrast","saturate","opacity"]);function UN(t){const[e,n]=t.slice(0,-1).split("(");if(e==="drop-shadow")return t;const[r]=n.match(dy)||[];if(!r)return t;const i=n.replace(r,"");let o=HN.has(e)?1:0;return r!==n&&(o*=100),e+"("+o+i+")"}const WN=/\b([a-z-]*)\(.*?\)/gu,Bm={...yu,getAnimatableNone:t=>{const e=t.match(WN);return e?e.map(UN).join(" "):t}},zN={...Zv,color:Ni,backgroundColor:Ni,outlineColor:Ni,fill:Ni,stroke:Ni,borderColor:Ni,borderTopColor:Ni,borderRightColor:Ni,borderBottomColor:Ni,borderLeftColor:Ni,filter:Bm,WebkitFilter:Bm},py=t=>zN[t];function NC(t,e){let n=py(t);return n!==Bm&&(n=yu),n.getAnimatableNone?n.getAnimatableNone(e):void 0}const YN=new Set(["auto","none","0"]);function GN(t,e,n){let r=0,i;for(;r<t.length&&!i;){const o=t[r];typeof o=="string"&&!YN.has(o)&&Id(o).values.length&&(i=t[r]),r++}if(i&&n)for(const o of e)t[o]=NC(n,i)}const Ew=t=>t===Mf||t===Ot,kw=(t,e)=>parseFloat(t.split(", ")[e]),Dw=(t,e)=>(n,{transform:r})=>{if(r==="none"||!r)return 0;const i=r.match(/^matrix3d\((.+)\)$/u);if(i)return kw(i[1],e);{const o=r.match(/^matrix\((.+)\)$/u);return o?kw(o[1],t):0}},qN=new Set(["x","y","z"]),XN=If.filter(t=>!qN.has(t));function KN(t){const e=[];return XN.forEach(n=>{const r=t.getValue(n);r!==void 0&&(e.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),e}const kf={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:Dw(4,13),y:Dw(5,14)};kf.translateX=kf.x;kf.translateY=kf.y;const xc=new Set;let $m=!1,Vm=!1;function jC(){if(Vm){const t=Array.from(xc).filter(r=>r.needsMeasurement),e=new Set(t.map(r=>r.element)),n=new Map;e.forEach(r=>{const i=KN(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)})}Vm=!1,$m=!1,xc.forEach(t=>t.complete()),xc.clear()}function BC(){xc.forEach(t=>{t.readKeyframes(),t.needsMeasurement&&(Vm=!0)})}function ZN(){BC(),jC()}class gy{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?(xc.add(this),$m||($m=!0,Fn.read(BC),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 f=r.readValue(n,c);f!=null&&(e[0]=f)}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),xc.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,xc.delete(this))}resume(){this.isComplete||this.scheduleResolve()}}const $C=t=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t),JN=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function QN(t){const e=JN.exec(t);if(!e)return[,];const[,n,r,i]=e;return[`--${n??r}`,i]}const ej=4;function VC(t,e,n=1){mu(n<=ej,`Max CSS variable fallback depth detected in property "${t}". This may indicate a circular fallback dependency.`);const[r,i]=QN(t);if(!r)return;const o=window.getComputedStyle(e).getPropertyValue(r);if(o){const a=o.trim();return $C(a)?parseFloat(a):a}return Kv(i)?VC(i,e,n+1):i}const HC=t=>e=>e.test(t),tj={test:t=>t==="auto",parse:t=>t},UC=[Mf,Ot,Na,iu,UF,HF,tj],Pw=t=>UC.find(HC(t));class WC extends gy{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 f=0;f<e.length;f++){let p=e[f];if(typeof p=="string"&&(p=p.trim(),Kv(p))){const w=VC(p,n.current);w!==void 0&&(e[f]=w),f===e.length-1&&(this.finalKeyframe=p)}}if(this.resolveNoneKeyframes(),!wC.has(r)||e.length!==2)return;const[i,o]=e,a=Pw(i),c=Pw(o);if(a!==c)if(Ew(a)&&Ew(c))for(let f=0;f<e.length;f++){const p=e[f];typeof p=="string"&&(e[f]=parseFloat(p))}else this.needsMeasurement=!0}resolveNoneKeyframes(){const{unresolvedKeyframes:e,name:n}=this,r=[];for(let i=0;i<e.length;i++)_N(e[i])&&r.push(i);r.length&&GN(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=kf[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]=kf[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(([f,p])=>{n.getValue(f).set(p)}),this.resolveNoneKeyframes()}}const Ow=(t,e)=>e==="zIndex"?!1:!!(typeof t=="number"||Array.isArray(t)||typeof t=="string"&&(yu.test(t)||t==="0")&&!t.startsWith("url("));function nj(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 rj(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=Ow(i,e),c=Ow(o,e);return Af(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:nj(t)||(n==="spring"||iy(n))&&r}const ij=t=>t!==null;function _p(t,{repeat:e,repeatType:n="loop"},r){const i=t.filter(ij),o=e&&n!=="loop"&&e%2===1?0:i.length-1;return!o||r===void 0?i[o]:r}const oj=40;class zC{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=ja.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>oj?this.resolvedAt:this.createdAt:this.createdAt}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&ZN(),this._resolved}onKeyframesResolved(e,n){this.resolvedAt=ja.now(),this.hasAttemptedResolve=!0;const{name:r,type:i,velocity:o,delay:a,onComplete:c,onUpdate:f,isGenerator:p}=this.options;if(!p&&!rj(e,r,i,o))if(a)this.options.duration=0;else{f&&f(_p(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 Lg(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 sj({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,f=2*n-c;i=Lg(f,c,t+1/3),o=Lg(f,c,t),a=Lg(f,c,t-1/3)}return{red:Math.round(i*255),green:Math.round(o*255),blue:Math.round(a*255),alpha:r}}function rp(t,e){return n=>n>0?e:t}const Fg=(t,e,n)=>{const r=t*t,i=n*(e*e-r)+r;return i<0?0:Math.sqrt(i)},aj=[jm,gc,pf],lj=t=>aj.find(e=>e.test(t));function _w(t){const e=lj(t);if(Af(!!e,`'${t}' is not an animatable color. Use the equivalent color code instead.`),!e)return!1;let n=e.parse(t);return e===pf&&(n=sj(n)),n}const Rw=(t,e)=>{const n=_w(t),r=_w(e);if(!n||!r)return rp(t,e);const i={...n};return o=>(i.red=Fg(n.red,r.red,o),i.green=Fg(n.green,r.green,o),i.blue=Fg(n.blue,r.blue,o),i.alpha=Kn(n.alpha,r.alpha,o),gc.transform(i))},uj=(t,e)=>n=>e(t(n)),zd=(...t)=>t.reduce(uj),Hm=new Set(["none","hidden"]);function cj(t,e){return Hm.has(t)?n=>n<=0?t:e:n=>n>=1?e:t}function fj(t,e){return n=>Kn(t,e,n)}function my(t){return typeof t=="number"?fj:typeof t=="string"?Kv(t)?rp:Ni.test(t)?Rw:pj:Array.isArray(t)?YC:typeof t=="object"?Ni.test(t)?Rw:dj:rp}function YC(t,e){const n=[...t],r=n.length,i=t.map((o,a)=>my(o)(o,e[a]));return o=>{for(let a=0;a<r;a++)n[a]=i[a](o);return n}}function dj(t,e){const n={...t,...e},r={};for(const i in n)t[i]!==void 0&&e[i]!==void 0&&(r[i]=my(t[i])(t[i],e[i]));return i=>{for(const o in r)n[o]=r[o](i);return n}}function hj(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]],f=(n=t.values[c])!==null&&n!==void 0?n:0;r[o]=f,i[a]++}return r}const pj=(t,e)=>{const n=yu.createTransformer(e),r=Id(t),i=Id(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?Hm.has(t)&&!i.values.length||Hm.has(e)&&!r.values.length?cj(t,e):zd(YC(hj(r,i),i.values),n):(Af(!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.`),rp(t,e))};function GC(t,e,n){return typeof t=="number"&&typeof e=="number"&&typeof n=="number"?Kn(t,e,n):my(t)(t,e)}const gj=5;function qC(t,e,n){const r=Math.max(e-gj,0);return xC(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},Aw=.001;function mj({duration:t=Xn.duration,bounce:e=Xn.bounce,velocity:n=Xn.velocity,mass:r=Xn.mass}){let i,o;Af(t<=Fa(Xn.maxDuration),"Spring duration must be 10 seconds or less");let a=1-e;a=El(Xn.minDamping,Xn.maxDamping,a),t=El(Xn.minDuration,Xn.maxDuration,xl(t)),a<1?(i=p=>{const w=p*a,g=w*t,T=w-n,E=Um(p,a),A=Math.exp(-g);return Aw-T/E*A},o=p=>{const g=p*a*t,T=g*n+n,E=Math.pow(a,2)*Math.pow(p,2)*t,A=Math.exp(-g),I=Um(Math.pow(p,2),a);return(-i(p)+Aw>0?-1:1)*((T-E)*A)/I}):(i=p=>{const w=Math.exp(-p*t),g=(p-n)*t+1;return-.001+w*g},o=p=>{const w=Math.exp(-p*t),g=(n-p)*(t*t);return w*g});const c=5/t,f=yj(i,o,c);if(t=Fa(t),isNaN(f))return{stiffness:Xn.stiffness,damping:Xn.damping,duration:t};{const p=Math.pow(f,2)*r;return{stiffness:p,damping:a*2*Math.sqrt(r*p),duration:t}}}const vj=12;function yj(t,e,n){let r=n;for(let i=1;i<vj;i++)r=r-t(r)/e(r);return r}function Um(t,e){return t*Math.sqrt(1-e*e)}const bj=["duration","bounce"],wj=["stiffness","damping","mass"];function Iw(t,e){return e.some(n=>t[n]!==void 0)}function xj(t){let e={velocity:Xn.velocity,stiffness:Xn.stiffness,damping:Xn.damping,mass:Xn.mass,isResolvedFromDuration:!1,...t};if(!Iw(t,wj)&&Iw(t,bj))if(t.visualDuration){const n=t.visualDuration,r=2*Math.PI/(n*1.2),i=r*r,o=2*El(.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 XC(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:f,damping:p,mass:w,duration:g,velocity:T,isResolvedFromDuration:E}=xj({...n,velocity:-xl(n.velocity||0)}),A=T||0,I=p/(2*Math.sqrt(f*w)),j=a-o,_=xl(Math.sqrt(f/w)),H=Math.abs(j)<5;r||(r=H?Xn.restSpeed.granular:Xn.restSpeed.default),i||(i=H?Xn.restDelta.granular:Xn.restDelta.default);let W;if(I<1){const Z=Um(_,I);W=de=>{const S=Math.exp(-I*_*de);return a-S*((A+I*_*j)/Z*Math.sin(Z*de)+j*Math.cos(Z*de))}}else if(I===1)W=Z=>a-Math.exp(-_*Z)*(j+(A+_*j)*Z);else{const Z=_*Math.sqrt(I*I-1);W=de=>{const S=Math.exp(-I*_*de),le=Math.min(Z*de,300);return a-S*((A+I*_*j)*Math.sinh(le)+Z*j*Math.cosh(le))/Z}}const re={calculatedDuration:E&&g||null,next:Z=>{const de=W(Z);if(E)c.done=Z>=g;else{let S=0;I<1&&(S=Z===0?Fa(A):qC(W,Z,de));const le=Math.abs(S)<=r,ue=Math.abs(a-de)<=i;c.done=le&&ue}return c.value=c.done?a:de,c},toString:()=>{const Z=Math.min(hC(re),Lm),de=pC(S=>re.next(Z*S).value,Z,30);return Z+"ms "+de}};return re}function Mw({keyframes:t,velocity:e=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:o=500,modifyTarget:a,min:c,max:f,restDelta:p=.5,restSpeed:w}){const g=t[0],T={done:!1,value:g},E=le=>c!==void 0&&le<c||f!==void 0&&le>f,A=le=>c===void 0?f:f===void 0||Math.abs(c-le)<Math.abs(f-le)?c:f;let I=n*e;const j=g+I,_=a===void 0?j:a(j);_!==j&&(I=_-g);const H=le=>-I*Math.exp(-le/r),W=le=>_+H(le),re=le=>{const ue=H(le),ze=W(le);T.done=Math.abs(ue)<=p,T.value=T.done?_:ze};let Z,de;const S=le=>{E(T.value)&&(Z=le,de=XC({keyframes:[T.value,A(T.value)],velocity:qC(W,le,T.value),damping:i,stiffness:o,restDelta:p,restSpeed:w}))};return S(0),{calculatedDuration:null,next:le=>{let ue=!1;return!de&&Z===void 0&&(ue=!0,re(le),S(le)),Z!==void 0&&le>=Z?de.next(le-Z):(!ue&&re(le),T)}}}const Sj=Wd(.42,0,1,1),Tj=Wd(0,0,.58,1),KC=Wd(.42,0,.58,1),Cj=t=>Array.isArray(t)&&typeof t[0]!="number",Lw={linear:_o,easeIn:Sj,easeInOut:KC,easeOut:Tj,circIn:fy,circInOut:_C,circOut:OC,backIn:cy,backInOut:DC,backOut:kC,anticipate:PC},Fw=t=>{if(oy(t)){mu(t.length===4,"Cubic bezier arrays must contain four numerical values.");const[e,n,r,i]=t;return Wd(e,n,r,i)}else if(typeof t=="string")return mu(Lw[t]!==void 0,`Invalid easing type '${t}'`),Lw[t];return t};function Ej(t,e,n){const r=[],i=n||GC,o=t.length-1;for(let a=0;a<o;a++){let c=i(t[a],t[a+1]);if(e){const f=Array.isArray(e)?e[a]||_o:e;c=zd(f,c)}r.push(c)}return r}function kj(t,e,{clamp:n=!0,ease:r,mixer:i}={}){const o=t.length;if(mu(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=Ej(e,r,i),f=c.length,p=w=>{if(a&&w<t[0])return e[0];let g=0;if(f>1)for(;g<t.length-2&&!(w<t[g+1]);g++);const T=Cf(t[g],t[g+1],w);return c[g](T)};return n?w=>p(El(t[0],t[o-1],w)):p}function Dj(t,e){const n=t[t.length-1];for(let r=1;r<=e;r++){const i=Cf(0,e,r);t.push(Kn(n,1,i))}}function Pj(t){const e=[0];return Dj(e,t.length-1),e}function Oj(t,e){return t.map(n=>n*e)}function _j(t,e){return t.map(()=>e||KC).splice(0,t.length-1)}function ip({duration:t=300,keyframes:e,times:n,ease:r="easeInOut"}){const i=Cj(r)?r.map(Fw):Fw(r),o={done:!1,value:e[0]},a=Oj(n&&n.length===e.length?n:Pj(e),t),c=kj(a,e,{ease:Array.isArray(i)?i:_j(e,i)});return{calculatedDuration:t,next:f=>(o.value=c(f),o.done=f>=t,o)}}const Rj=t=>{const e=({timestamp:n})=>t(n);return{start:()=>Fn.update(e,!0),stop:()=>vu(e),now:()=>Ci.isProcessing?Ci.timestamp:ja.now()}},Aj={decay:Mw,inertia:Mw,tween:ip,keyframes:ip,spring:XC},Ij=t=>t/100;class vy extends zC{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:f}=this.options;f&&f()};const{name:n,motionValue:r,element:i,keyframes:o}=this.options,a=(i==null?void 0:i.KeyframeResolver)||gy,c=(f,p)=>this.onKeyframesResolved(f,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=iy(n)?n:Aj[n]||ip;let f,p;c!==ip&&typeof e[0]!="number"&&(process.env.NODE_ENV!=="production"&&mu(e.length===2,`Only two keyframes currently supported with spring and inertia animations. Trying to animate ${e}`),f=zd(Ij,GC(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=hC(w));const{calculatedDuration:g}=w,T=g+i,E=T*(r+1)-i;return{generator:w,mirroredGenerator:p,mapPercentToKeyframes:f,calculatedDuration:g,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:le}=this.options;return{done:!0,value:le[le.length-1]}}const{finalKeyframe:i,generator:o,mirroredGenerator:a,mapPercentToKeyframes:c,keyframes:f,calculatedDuration:p,totalDuration:w,resolvedDuration:g}=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),H=this.speed>=0?_<0:_>w;this.currentTime=Math.max(_,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=w);let W=this.currentTime,re=o;if(E){const le=Math.min(this.currentTime,w)/g;let ue=Math.floor(le),ze=le%1;!ze&&le>=1&&(ze=1),ze===1&&ue--,ue=Math.min(ue,E+1),!!(ue%2)&&(A==="reverse"?(ze=1-ze,I&&(ze-=I/g)):A==="mirror"&&(re=a)),W=El(0,1,ze)*g}const Z=H?{done:!1,value:f[0]}:re.next(W);c&&(Z.value=c(Z.value));let{done:de}=Z;!H&&p!==null&&(de=this.speed>=0?this.currentTime>=w:this.currentTime<=0);const S=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&de);return S&&i!==void 0&&(Z.value=_p(f,this.options,i)),j&&j(Z.value),S&&this.finish(),Z}get duration(){const{resolved:e}=this;return e?xl(e.calculatedDuration):0}get time(){return xl(this.currentTime)}set time(e){e=Fa(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=xl(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;const{driver:e=Rj,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 Mj=new Set(["opacity","clipPath","filter","transform"]);function Lj(t,e,n,{delay:r=0,duration:i=300,repeat:o=0,repeatType:a="loop",ease:c="easeInOut",times:f}={}){const p={[e]:n};f&&(p.offset=f);const w=mC(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 Fj=Uv(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),op=10,Nj=2e4;function jj(t){return iy(t.type)||t.type==="spring"||!gC(t.ease)}function Bj(t,e){const n=new vy({...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<Nj;)r=n.sample(o),i.push(r.value),o+=op;return{times:void 0,keyframes:i,duration:o-op,ease:"linear"}}const ZC={anticipate:PC,backInOut:DC,circInOut:_C};function $j(t){return t in ZC}class Nw extends zC{constructor(e){super(e);const{name:n,motionValue:r,element:i,keyframes:o}=this.options;this.resolver=new WC(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:f,startTime:p}=this.options;if(!c.owner||!c.owner.current)return!1;if(typeof o=="string"&&np()&&$j(o)&&(o=ZC[o]),jj(this.options)){const{onComplete:g,onUpdate:T,motionValue:E,element:A,...I}=this.options,j=Bj(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=Lj(c.owner.current,f,e,{...this.options,duration:r,times:i,ease:o});return w.startTime=p??this.calcStartTime(),this.pendingTimeline?(bw(w,this.pendingTimeline),this.pendingTimeline=void 0):w.onfinish=()=>{const{onComplete:g}=this.options;c.set(_p(e,this.options,n)),g&&g(),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 xl(n)}get time(){const{resolved:e}=this;if(!e)return 0;const{animation:n}=e;return xl(n.currentTime||0)}set time(e){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.currentTime=Fa(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;bw(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:g,element:T,...E}=this.options,A=new vy({...E,keyframes:r,duration:i,type:o,ease:a,times:c,isGenerator:!0}),I=Fa(this.time);p.setWithVelocity(A.sample(I-op).value,A.sample(I).value,op)}const{onStop:f}=this.options;f&&f(),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:f,transformTemplate:p}=n.owner.getProps();return Fj()&&r&&Mj.has(r)&&!f&&!p&&!i&&o!=="mirror"&&a!==0&&c!=="inertia"}}const Vj={type:"spring",stiffness:500,damping:25,restSpeed:10},Hj=t=>({type:"spring",stiffness:550,damping:t===0?2*Math.sqrt(550):30,restSpeed:10}),Uj={type:"keyframes",duration:.8},Wj={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},zj=(t,{keyframes:e})=>e.length>2?Uj:Oc.has(t)?t.startsWith("scale")?Hj(e[1]):Vj:Wj;function Yj({when:t,delay:e,delayChildren:n,staggerChildren:r,staggerDirection:i,repeat:o,repeatType:a,repeatDelay:c,from:f,elapsed:p,...w}){return!!Object.keys(w).length}const yy=(t,e,n,r={},i,o)=>a=>{const c=ry(r,t)||{},f=c.delay||r.delay||0;let{elapsed:p=0}=r;p=p-Fa(f);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};Yj(c)||(w={...w,...zj(t,w)}),w.duration&&(w.duration=Fa(w.duration)),w.repeatDelay&&(w.repeatDelay=Fa(w.repeatDelay)),w.from!==void 0&&(w.keyframes[0]=w.from);let g=!1;if((w.type===!1||w.duration===0&&!w.repeatDelay)&&(w.duration=0,w.delay===0&&(g=!0)),g&&!o&&e.get()!==void 0){const T=_p(w.keyframes,c);if(T!==void 0)return Fn.update(()=>{w.onUpdate(T),w.onComplete()}),new fN([])}return!o&&Nw.supports(w)?new Nw(w):new vy(w)};function Gj({protectedKeys:t,needsAnimating:e},n){const r=t.hasOwnProperty(n)&&e[n]!==!0;return e[n]=!1,r}function JC(t,e,{delay:n=0,transitionOverride:r,type:i}={}){var o;let{transition:a=t.getDefaultTransition(),transitionEnd:c,...f}=e;r&&(a=r);const p=[],w=i&&t.animationState&&t.animationState.getState()[i];for(const g in f){const T=t.getValue(g,(o=t.latestValues[g])!==null&&o!==void 0?o:null),E=f[g];if(E===void 0||w&&Gj(w,g))continue;const A={delay:n,...ry(a||{},g)};let I=!1;if(window.MotionHandoffAnimation){const _=SC(t);if(_){const H=window.MotionHandoffAnimation(_,g,Fn);H!==null&&(A.startTime=H,I=!0)}}Nm(t,g),T.start(yy(g,T,E,t.shouldReduceMotion&&wC.has(g)?{type:!1}:A,t,I));const j=T.animation;j&&p.push(j)}return c&&Promise.all(p).then(()=>{Fn.update(()=>{c&&EN(t,c)})}),p}function Wm(t,e,n={}){var r;const i=Op(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(JC(t,i,n)):()=>Promise.resolve(),c=t.variantChildren&&t.variantChildren.size?(p=0)=>{const{delayChildren:w=0,staggerChildren:g,staggerDirection:T}=o;return qj(t,e,w+p,g,T,n)}:()=>Promise.resolve(),{when:f}=o;if(f){const[p,w]=f==="beforeChildren"?[a,c]:[c,a];return p().then(()=>w())}else return Promise.all([a(),c(n.delay)])}function qj(t,e,n=0,r=0,i=1,o){const a=[],c=(t.variantChildren.size-1)*r,f=i===1?(p=0)=>p*r:(p=0)=>c-p*r;return Array.from(t.variantChildren).sort(Xj).forEach((p,w)=>{p.notify("AnimationStart",e),a.push(Wm(p,e,{...o,delay:n+f(w)}).then(()=>p.notify("AnimationComplete",e)))}),Promise.all(a)}function Xj(t,e){return t.sortNodePosition(e)}function Kj(t,e,n={}){t.notify("AnimationStart",e);let r;if(Array.isArray(e)){const i=e.map(o=>Wm(t,o,n));r=Promise.all(i)}else if(typeof e=="string")r=Wm(t,e,n);else{const i=typeof e=="function"?Op(t,e,n.custom):e;r=Promise.all(JC(t,i,n))}return r.then(()=>{t.notify("AnimationComplete",e)})}const Zj=zv.length;function QC(t){if(!t)return;if(!t.isControllingVariants){const n=t.parent?QC(t.parent)||{}:{};return t.props.initial!==void 0&&(n.initial=t.props.initial),n}const e={};for(let n=0;n<Zj;n++){const r=zv[n],i=t.props[r];(_d(i)||i===!1)&&(e[r]=i)}return e}const Jj=[...Wv].reverse(),Qj=Wv.length;function eB(t){return e=>Promise.all(e.map(({animation:n,options:r})=>Kj(t,n,r)))}function tB(t){let e=eB(t),n=jw(),r=!0;const i=f=>(p,w)=>{var g;const T=Op(t,w,f==="exit"?(g=t.presenceContext)===null||g===void 0?void 0:g.custom:void 0);if(T){const{transition:E,transitionEnd:A,...I}=T;p={...p,...I,...A}}return p};function o(f){e=f(t)}function a(f){const{props:p}=t,w=QC(t.parent)||{},g=[],T=new Set;let E={},A=1/0;for(let j=0;j<Qj;j++){const _=Jj[j],H=n[_],W=p[_]!==void 0?p[_]:w[_],re=_d(W),Z=_===f?H.isActive:null;Z===!1&&(A=j);let de=W===w[_]&&W!==p[_]&&re;if(de&&r&&t.manuallyAnimateOnMount&&(de=!1),H.protectedKeys={...E},!H.isActive&&Z===null||!W&&!H.prevProp||Dp(W)||typeof W=="boolean")continue;const S=nB(H.prevProp,W);let le=S||_===f&&H.isActive&&!de&&re||j>A&&re,ue=!1;const ze=Array.isArray(W)?W:[W];let Me=ze.reduce(i(_),{});Z===!1&&(Me={});const{prevResolvedValues:Fe={}}=H,Ve={...Fe,...Me},Ue=Oe=>{le=!0,T.has(Oe)&&(ue=!0,T.delete(Oe)),H.needsAnimating[Oe]=!0;const Ne=t.getValue(Oe);Ne&&(Ne.liveStyle=!1)};for(const Oe in Ve){const Ne=Me[Oe],tt=Fe[Oe];if(E.hasOwnProperty(Oe))continue;let me=!1;Mm(Ne)&&Mm(tt)?me=!dC(Ne,tt):me=Ne!==tt,me?Ne!=null?Ue(Oe):T.add(Oe):Ne!==void 0&&T.has(Oe)?Ue(Oe):H.protectedKeys[Oe]=!0}H.prevProp=W,H.prevResolvedValues=Me,H.isActive&&(E={...E,...Me}),r&&t.blockInitialAnimation&&(le=!1),le&&(!(de&&S)||ue)&&g.push(...ze.map(Oe=>({animation:Oe,options:{type:_}})))}if(T.size){const j={};T.forEach(_=>{const H=t.getBaseTarget(_),W=t.getValue(_);W&&(W.liveStyle=!0),j[_]=H??null}),g.push({animation:j})}let I=!!g.length;return r&&(p.initial===!1||p.initial===p.animate)&&!t.manuallyAnimateOnMount&&(I=!1),r=!1,I?e(g):Promise.resolve()}function c(f,p){var w;if(n[f].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(f,p)}),n[f].isActive=p;const g=a(f);for(const T in n)n[T].protectedKeys={};return g}return{animateChanges:a,setActive:c,setAnimateFunction:o,getState:()=>n,reset:()=>{n=jw(),r=!0}}}function nB(t,e){return typeof e=="string"?e!==t:Array.isArray(e)?!dC(e,t):!1}function ic(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function jw(){return{animate:ic(!0),whileInView:ic(),whileHover:ic(),whileTap:ic(),whileDrag:ic(),whileFocus:ic(),exit:ic()}}let Tu=class{constructor(e){this.isMounted=!1,this.node=e}update(){}},rB=class extends Tu{constructor(e){super(e),e.animationState||(e.animationState=tB(e))}updateAnimationControlsSubscription(){const{animate:e}=this.node.getProps();Dp(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)}},iB=0,oB=class extends Tu{constructor(){super(...arguments),this.id=iB++}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 sB={animation:{Feature:rB},exit:{Feature:oB}};function Md(t,e,n,r={passive:!0}){return t.addEventListener(e,n,r),()=>t.removeEventListener(e,n)}function Yd(t){return{point:{x:t.pageX,y:t.pageY}}}const aB=t=>e=>sy(e)&&t(e,Yd(e));function md(t,e,n,r){return Md(t,e,aB(n),r)}const Bw=(t,e)=>Math.abs(t-e);function lB(t,e){const n=Bw(t.x,e.x),r=Bw(t.y,e.y);return Math.sqrt(n**2+r**2)}let eE=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 g=jg(this.lastMoveEventInfo,this.history),T=this.startEvent!==null,E=lB(g.offset,{x:0,y:0})>=3;if(!T&&!E)return;const{point:A}=g,{timestamp:I}=Ci;this.history.push({...A,timestamp:I});const{onStart:j,onMove:_}=this.handlers;T||(j&&j(this.lastMoveEvent,g),this.startEvent=this.lastMoveEvent),_&&_(this.lastMoveEvent,g)},this.handlePointerMove=(g,T)=>{this.lastMoveEvent=g,this.lastMoveEventInfo=Ng(T,this.transformPagePoint),Fn.update(this.updatePoint,!0)},this.handlePointerUp=(g,T)=>{this.end();const{onEnd:E,onSessionEnd:A,resumeAnimation:I}=this.handlers;if(this.dragSnapToOrigin&&I&&I(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const j=jg(g.type==="pointercancel"?this.lastMoveEventInfo:Ng(T,this.transformPagePoint),this.history);this.startEvent&&E&&E(g,j),A&&A(g,j)},!sy(e))return;this.dragSnapToOrigin=o,this.handlers=n,this.transformPagePoint=r,this.contextWindow=i||window;const a=Yd(e),c=Ng(a,this.transformPagePoint),{point:f}=c,{timestamp:p}=Ci;this.history=[{...f,timestamp:p}];const{onSessionStart:w}=n;w&&w(e,jg(c,this.history)),this.removeListeners=zd(md(this.contextWindow,"pointermove",this.handlePointerMove),md(this.contextWindow,"pointerup",this.handlePointerUp),md(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),vu(this.updatePoint)}};function Ng(t,e){return e?{point:e(t.point)}:t}function $w(t,e){return{x:t.x-e.x,y:t.y-e.y}}function jg({point:t},e){return{point:t,delta:$w(t,tE(e)),offset:$w(t,uB(e)),velocity:cB(e,.1)}}function uB(t){return t[0]}function tE(t){return t[t.length-1]}function cB(t,e){if(t.length<2)return{x:0,y:0};let n=t.length-1,r=null;const i=tE(t);for(;n>=0&&(r=t[n],!(i.timestamp-r.timestamp>Fa(e)));)n--;if(!r)return{x:0,y:0};const o=xl(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 nE=1e-4,fB=1-nE,dB=1+nE,rE=.01,hB=0-rE,pB=0+rE;function Qo(t){return t.max-t.min}function gB(t,e,n){return Math.abs(t-e)<=n}function Vw(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>=fB&&t.scale<=dB||isNaN(t.scale))&&(t.scale=1),(t.translate>=hB&&t.translate<=pB||isNaN(t.translate))&&(t.translate=0)}function vd(t,e,n,r){Vw(t.x,e.x,n.x,r?r.originX:void 0),Vw(t.y,e.y,n.y,r?r.originY:void 0)}function Hw(t,e,n){t.min=n.min+e.min,t.max=t.min+Qo(e)}function mB(t,e,n){Hw(t.x,e.x,n.x),Hw(t.y,e.y,n.y)}function Uw(t,e,n){t.min=e.min-n.min,t.max=t.min+Qo(e)}function yd(t,e,n){Uw(t.x,e.x,n.x),Uw(t.y,e.y,n.y)}function vB(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 Ww(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 yB(t,{top:e,left:n,bottom:r,right:i}){return{x:Ww(t.x,n,i),y:Ww(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 bB(t,e){return{x:zw(t.x,e.x),y:zw(t.y,e.y)}}function wB(t,e){let n=.5;const r=Qo(t),i=Qo(e);return i>r?n=Cf(e.min,e.max-r,t.min):r>i&&(n=Cf(t.min,t.max-i,e.min)),El(0,1,n)}function xB(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 zm=.35;function SB(t=zm){return t===!1?t=0:t===!0&&(t=zm),{x:Yw(t,"left","right"),y:Yw(t,"top","bottom")}}function Yw(t,e,n){return{min:Gw(t,e),max:Gw(t,n)}}function Gw(t,e){return typeof t=="number"?t:t[e]||0}const qw=()=>({translate:0,scale:1,origin:0,originPoint:0}),gf=()=>({x:qw(),y:qw()}),Xw=()=>({min:0,max:0}),gr=()=>({x:Xw(),y:Xw()});function Ds(t){return[t("x"),t("y")]}function iE({top:t,left:e,right:n,bottom:r}){return{x:{min:e,max:n},y:{min:t,max:r}}}function TB({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}function CB(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 Bg(t){return t===void 0||t===1}function Ym({scale:t,scaleX:e,scaleY:n}){return!Bg(t)||!Bg(e)||!Bg(n)}function lc(t){return Ym(t)||oE(t)||t.z||t.rotate||t.rotateX||t.rotateY||t.skewX||t.skewY}function oE(t){return Kw(t.x)||Kw(t.y)}function Kw(t){return t&&t!=="0%"}function sp(t,e,n){const r=t-n,i=e*r;return n+i}function Zw(t,e,n,r,i){return i!==void 0&&(t=sp(t,i,r)),sp(t,n,r)+e}function Gm(t,e=0,n=1,r,i){t.min=Zw(t.min,e,n,r,i),t.max=Zw(t.max,e,n,r,i)}function sE(t,{x:e,y:n}){Gm(t.x,e.translate,e.scale,e.originPoint),Gm(t.y,n.translate,n.scale,n.originPoint)}const Jw=.999999999999,Qw=1.0000000000001;function EB(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:f}=o.options;f&&f.props.style&&f.props.style.display==="contents"||(r&&o.options.layoutScroll&&o.scroll&&o!==o.root&&vf(t,{x:-o.scroll.offset.x,y:-o.scroll.offset.y}),a&&(e.x*=a.x.scale,e.y*=a.y.scale,sE(t,a)),r&&lc(o.latestValues)&&vf(t,o.latestValues))}e.x<Qw&&e.x>Jw&&(e.x=1),e.y<Qw&&e.y>Jw&&(e.y=1)}function mf(t,e){t.min=t.min+e,t.max=t.max+e}function ex(t,e,n,r,i=.5){const o=Kn(t.min,t.max,i);Gm(t,e,n,o,r)}function vf(t,e){ex(t.x,e.x,e.scaleX,e.scale,e.originX),ex(t.y,e.y,e.scaleY,e.scale,e.originY)}function aE(t,e){return iE(CB(t.getBoundingClientRect(),e))}function kB(t,e,n){const r=aE(t,n),{scroll:i}=e;return i&&(mf(r.x,i.offset.x),mf(r.y,i.offset.y)),r}const lE=({current:t})=>t?t.ownerDocument.defaultView:null,DB=new WeakMap;let PB=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:g}=this.getProps();g?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(Yd(w).point)},o=(w,g)=>{const{drag:T,dragPropagation:E,onDragStart:A}=this.getProps();if(T&&!E&&(this.openDragLock&&this.openDragLock(),this.openDragLock=wN(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(Na.test(_)){const{projection:H}=this.visualElement;if(H&&H.layout){const W=H.layout.layoutBox[j];W&&(_=Qo(W)*(parseFloat(_)/100))}}this.originPoint[j]=_}),A&&Fn.postRender(()=>A(w,g)),Nm(this.visualElement,"transform");const{animationState:I}=this.visualElement;I&&I.setActive("whileDrag",!0)},a=(w,g)=>{const{dragPropagation:T,dragDirectionLock:E,onDirectionLock:A,onDrag:I}=this.getProps();if(!T&&!this.openDragLock)return;const{offset:j}=g;if(E&&this.currentDirection===null){this.currentDirection=OB(j),this.currentDirection!==null&&A&&A(this.currentDirection);return}this.updateAxis("x",g.point,j),this.updateAxis("y",g.point,j),this.visualElement.render(),I&&I(w,g)},c=(w,g)=>this.stop(w,g),f=()=>Ds(w=>{var g;return this.getAnimationState(w)==="paused"&&((g=this.getAxisMotionValue(w).animation)===null||g===void 0?void 0:g.play())}),{dragSnapToOrigin:p}=this.getProps();this.panSession=new eE(e,{onSessionStart:i,onStart:o,onMove:a,onSessionEnd:c,resumeAnimation:f},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:p,contextWindow:lE(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||!Sh(e,i,this.currentDirection))return;const o=this.getAxisMotionValue(e);let a=this.originPoint[e]+r[e];this.constraints&&this.constraints[e]&&(a=vB(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&&hf(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&i?this.constraints=yB(i.layoutBox,n):this.constraints=!1,this.elastic=SB(r),o!==this.constraints&&i&&this.constraints&&!this.hasMutatedConstraints&&Ds(a=>{this.constraints!==!1&&this.getAxisMotionValue(a)&&(this.constraints[a]=xB(i.layoutBox[a],this.constraints[a]))})}resolveRefConstraints(){const{dragConstraints:e,onMeasureDragConstraints:n}=this.getProps();if(!e||!hf(e))return!1;const r=e.current;mu(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=kB(r,i.root,this.visualElement.getTransformPagePoint());let a=bB(i.layout.layoutBox,o);if(n){const c=n(TB(a));this.hasMutatedConstraints=!!c,c&&(a=iE(c))}return a}startAnimation(e){const{drag:n,dragMomentum:r,dragElastic:i,dragTransition:o,dragSnapToOrigin:a,onDragTransitionEnd:c}=this.getProps(),f=this.constraints||{},p=Ds(w=>{if(!Sh(w,n,this.currentDirection))return;let g=f&&f[w]||{};a&&(g={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,...g};return this.startAxisValueAnimation(w,A)});return Promise.all(p).then(c)}startAxisValueAnimation(e,n){const r=this.getAxisMotionValue(e);return Nm(this.visualElement,e),r.start(yy(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(!Sh(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(!hf(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 f=c.get();i[a]=wB({min:f,max:f},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(!Sh(a,e,null))return;const c=this.getAxisMotionValue(a),{min:f,max:p}=this.constraints[a];c.set(Kn(f,p,i[a]))})}addListeners(){if(!this.visualElement.current)return;DB.set(this.visualElement,this);const e=this.visualElement.current,n=md(e,"pointerdown",f=>{const{drag:p,dragListener:w=!0}=this.getProps();p&&w&&this.start(f)}),r=()=>{const{dragConstraints:f}=this.getProps();hf(f)&&f.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=Md(window,"resize",()=>this.scalePositionWithinConstraints()),c=i.addEventListener("didUpdate",({delta:f,hasLayoutChanged:p})=>{this.isDragging&&p&&(Ds(w=>{const g=this.getAxisMotionValue(w);g&&(this.originPoint[w]+=f[w].translate,g.set(g.get()+f[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=zm,dragMomentum:c=!0}=e;return{...e,drag:n,dragDirectionLock:r,dragPropagation:i,dragConstraints:o,dragElastic:a,dragMomentum:c}}};function Sh(t,e,n){return(e===!0||e===t)&&(n===null||n===t)}function OB(t,e=10){let n=null;return Math.abs(t.y)>e?n="y":Math.abs(t.x)>e&&(n="x"),n}let _B=class extends Tu{constructor(e){super(e),this.removeGroupControls=_o,this.removeListeners=_o,this.controls=new PB(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 tx=t=>(e,n)=>{t&&Fn.postRender(()=>t(e,n))};let RB=class extends Tu{constructor(){super(...arguments),this.removePointerDownListener=_o}onPointerDown(e){this.session=new eE(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:lE(this.node)})}createPanHandlers(){const{onPanSessionStart:e,onPanStart:n,onPan:r,onPanEnd:i}=this.node.getProps();return{onSessionStart:tx(e),onStart:tx(n),onMove:r,onEnd:(o,a)=>{delete this.session,i&&Fn.postRender(()=>i(o,a))}}}mount(){this.removePointerDownListener=md(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 Nh={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function nx(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}const nd={correct:(t,e)=>{if(!e.target)return t;if(typeof t=="string")if(Ot.test(t))t=parseFloat(t);else return t;const n=nx(t,e.target.x),r=nx(t,e.target.y);return`${n}% ${r}%`}},AB={correct:(t,{treeScale:e,projectionDelta:n})=>{const r=t,i=yu.parse(t);if(i.length>5)return r;const o=yu.createTransformer(t),a=typeof i[0]!="number"?1:0,c=n.x.scale*e.x,f=n.y.scale*e.y;i[0+a]/=c,i[1+a]/=f;const p=Kn(c,f,.5);return typeof i[2+a]=="number"&&(i[2+a]/=p),typeof i[3+a]=="number"&&(i[3+a]/=p),o(i)}};let IB=class extends q.Component{componentDidMount(){const{visualElement:e,layoutGroup:n,switchLayoutGroup:r,layoutId:i}=this.props,{projection:o}=e;QF(MB),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()})),Nh.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(),Gv.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 uE(t){const[e,n]=pF(),r=q.useContext(YT);return Ie.jsx(IB,{...t,layoutGroup:r,switchLayoutGroup:q.useContext(QT),isPresent:e,safeToRemove:n})}const MB={borderRadius:{...nd,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:nd,borderTopRightRadius:nd,borderBottomLeftRadius:nd,borderBottomRightRadius:nd,boxShadow:AB};function LB(t,e,n){const r=ji(t)?t:Ad(t);return r.start(yy("",r,e,n)),r.animation}function FB(t){return t instanceof SVGElement&&t.tagName!=="svg"}const NB=(t,e)=>t.depth-e.depth;let jB=class{constructor(){this.children=[],this.isDirty=!1}add(e){ay(this.children,e),this.isDirty=!0}remove(e){ly(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(NB),this.isDirty=!1,this.children.forEach(e)}};function BB(t,e){const n=ja.now(),r=({timestamp:i})=>{const o=i-n;o>=e&&(vu(r),t(o-e))};return Fn.read(r,!0),()=>vu(r)}const cE=["TopLeft","TopRight","BottomLeft","BottomRight"],$B=cE.length,rx=t=>typeof t=="string"?parseFloat(t):t,ix=t=>typeof t=="number"||Ot.test(t);function VB(t,e,n,r,i,o){i?(t.opacity=Kn(0,n.opacity!==void 0?n.opacity:1,HB(r)),t.opacityExit=Kn(e.opacity!==void 0?e.opacity:1,0,UB(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<$B;a++){const c=`border${cE[a]}Radius`;let f=ox(e,c),p=ox(n,c);if(f===void 0&&p===void 0)continue;f||(f=0),p||(p=0),f===0||p===0||ix(f)===ix(p)?(t[c]=Math.max(Kn(rx(f),rx(p),r),0),(Na.test(p)||Na.test(f))&&(t[c]+="%")):t[c]=p}(e.rotate||n.rotate)&&(t.rotate=Kn(e.rotate||0,n.rotate||0,r))}function ox(t,e){return t[e]!==void 0?t[e]:t.borderRadius}const HB=fE(0,.5,OC),UB=fE(.5,.95,_o);function fE(t,e,n){return r=>r<t?0:r>e?1:n(Cf(t,e,r))}function sx(t,e){t.min=e.min,t.max=e.max}function Ts(t,e){sx(t.x,e.x),sx(t.y,e.y)}function ax(t,e){t.translate=e.translate,t.scale=e.scale,t.originPoint=e.originPoint,t.origin=e.origin}function lx(t,e,n,r,i){return t-=e,t=sp(t,1/n,r),i!==void 0&&(t=sp(t,1/i,r)),t}function WB(t,e=0,n=1,r=.5,i,o=t,a=t){if(Na.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=lx(t.min,e,n,c,i),t.max=lx(t.max,e,n,c,i)}function ux(t,e,[n,r,i],o,a){WB(t,e[n],e[r],e[i],e.scale,o,a)}const zB=["x","scaleX","originX"],YB=["y","scaleY","originY"];function cx(t,e,n,r){ux(t.x,e,zB,n?n.x:void 0,r?r.x:void 0),ux(t.y,e,YB,n?n.y:void 0,r?r.y:void 0)}function fx(t){return t.translate===0&&t.scale===1}function dE(t){return fx(t.x)&&fx(t.y)}function dx(t,e){return t.min===e.min&&t.max===e.max}function GB(t,e){return dx(t.x,e.x)&&dx(t.y,e.y)}function hx(t,e){return Math.round(t.min)===Math.round(e.min)&&Math.round(t.max)===Math.round(e.max)}function hE(t,e){return hx(t.x,e.x)&&hx(t.y,e.y)}function px(t){return Qo(t.x)/Qo(t.y)}function gx(t,e){return t.translate===e.translate&&t.scale===e.scale&&t.originPoint===e.originPoint}let qB=class{constructor(){this.members=[]}add(e){ay(this.members,e),e.scheduleRender()}remove(e){if(ly(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 XB(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:g,rotateY:T,skewX:E,skewY:A}=n;p&&(r=`perspective(${p}px) ${r}`),w&&(r+=`rotate(${w}deg) `),g&&(r+=`rotateX(${g}deg) `),T&&(r+=`rotateY(${T}deg) `),E&&(r+=`skewX(${E}deg) `),A&&(r+=`skewY(${A}deg) `)}const c=t.x.scale*e.x,f=t.y.scale*e.y;return(c!==1||f!==1)&&(r+=`scale(${c}, ${f})`),r||"none"}const uc={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0},ud=typeof window<"u"&&window.MotionDebug!==void 0,$g=["","X","Y","Z"],KB={visibility:"hidden"},mx=1e3;let ZB=0;function Vg(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=SC(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 gE({attachResizeListener:t,defaultParent:e,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(a={},c=e==null?void 0:e()){this.id=ZB++,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,ud&&(uc.totalNodes=uc.resolvedTargetDeltas=uc.recalculatedProjection=0),this.nodes.forEach(e$),this.nodes.forEach(o$),this.nodes.forEach(s$),this.nodes.forEach(t$),ud&&window.MotionDebug.record(uc)},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 f=0;f<this.path.length;f++)this.path[f].shouldResetTransform=!0;this.root===this&&(this.nodes=new jB)}addEventListener(a,c){return this.eventHandlers.has(a)||this.eventHandlers.set(a,new uy),this.eventHandlers.get(a).add(c)}notifyListeners(a,...c){const f=this.eventHandlers.get(a);f&&f.notify(...c)}hasListeners(a){return this.eventHandlers.has(a)}mount(a,c=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=FB(a),this.instance=a;const{layoutId:f,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||f)&&(this.isLayoutDirty=!0),t){let g;const T=()=>this.root.updateBlockedByResize=!1;t(a,()=>{this.root.updateBlockedByResize=!0,g&&g(),g=BB(T,250),Nh.hasAnimatedSinceResize&&(Nh.hasAnimatedSinceResize=!1,this.nodes.forEach(yx))})}f&&this.root.registerSharedNode(f,this),this.options.animate!==!1&&w&&(f||p)&&this.addEventListener("didUpdate",({delta:g,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()||f$,{onLayoutAnimationStart:j,onLayoutAnimationComplete:_}=w.getProps(),H=!this.targetLayout||!hE(this.targetLayout,A)||E,W=!T&&E;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||W||T&&(H||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(g,W);const re={...ry(I,"layout"),onPlay:j,onComplete:_};(w.shouldReduceMotion||this.options.layoutRoot)&&(re.delay=0,re.type=!1),this.startAnimation(re)}else T||yx(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,vu(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(a$),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 g=this.path[w];g.shouldResetTransform=!0,g.updateScroll("snapshot"),g.options.layoutRoot&&g.willUpdate(!1)}const{layoutId:c,layout:f}=this.options;if(c===void 0&&!f)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(vx);return}this.isUpdating||this.nodes.forEach(r$),this.isUpdating=!1,this.nodes.forEach(i$),this.nodes.forEach(JB),this.nodes.forEach(QB),this.clearAllSnapshots();const c=ja.now();Ci.delta=El(0,1e3/60,c-Ci.timestamp),Ci.timestamp=c,Ci.isProcessing=!0,Ag.update.process(Ci),Ag.preRender.process(Ci),Ag.render.process(Ci),Ci.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,Gv.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(n$),this.sharedNodes.forEach(l$)}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 f=0;f<this.path.length;f++)this.path[f].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 f=r(this.instance);this.scroll={animationId:this.root.animationId,phase:a,isRoot:f,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:f}}}resetTransform(){if(!i)return;const a=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,c=this.projectionDelta&&!dE(this.projectionDelta),f=this.getTransformTemplate(),p=f?f(this.latestValues,""):void 0,w=p!==this.prevTransformTemplateValue;a&&(c||lc(this.latestValues)||w)&&(i(this.instance,p),this.shouldResetTransform=!1,this.scheduleRender())}measure(a=!0){const c=this.measurePageBox();let f=this.removeElementScroll(c);return a&&(f=this.removeTransform(f)),d$(f),{animationId:this.root.animationId,measuredBox:c,layoutBox:f,latestValues:{},source:this.id}}measurePageBox(){var a;const{visualElement:c}=this.options;if(!c)return gr();const f=c.measureViewportBox();if(!(((a=this.scroll)===null||a===void 0?void 0:a.wasRoot)||this.path.some(h$))){const{scroll:w}=this.root;w&&(mf(f.x,w.offset.x),mf(f.y,w.offset.y))}return f}removeElementScroll(a){var c;const f=gr();if(Ts(f,a),!((c=this.scroll)===null||c===void 0)&&c.wasRoot)return f;for(let p=0;p<this.path.length;p++){const w=this.path[p],{scroll:g,options:T}=w;w!==this.root&&g&&T.layoutScroll&&(g.wasRoot&&Ts(f,a),mf(f.x,g.offset.x),mf(f.y,g.offset.y))}return f}applyTransform(a,c=!1){const f=gr();Ts(f,a);for(let p=0;p<this.path.length;p++){const w=this.path[p];!c&&w.options.layoutScroll&&w.scroll&&w!==w.root&&vf(f,{x:-w.scroll.offset.x,y:-w.scroll.offset.y}),lc(w.latestValues)&&vf(f,w.latestValues)}return lc(this.latestValues)&&vf(f,this.latestValues),f}removeTransform(a){const c=gr();Ts(c,a);for(let f=0;f<this.path.length;f++){const p=this.path[f];if(!p.instance||!lc(p.latestValues))continue;Ym(p.latestValues)&&p.updateSnapshot();const w=gr(),g=p.measurePageBox();Ts(w,g),cx(c,p.latestValues,p.snapshot?p.snapshot.layoutBox:void 0,w)}return lc(this.latestValues)&&cx(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 f=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=f.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=f.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=f.isSharedProjectionDirty);const p=!!this.resumingFrom||this!==f;if(!(a||p&&this.isSharedProjectionDirty||this.isProjectionDirty||!((c=this.parent)===null||c===void 0)&&c.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:g,layoutId:T}=this.options;if(!(!this.layout||!(g||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(),yd(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),sE(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(),yd(this.relativeTargetOrigin,this.target,E.target),Ts(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}ud&&uc.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(!(!this.parent||Ym(this.parent.latestValues)||oE(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(),f=!!this.resumingFrom||this!==c;let p=!0;if((this.isProjectionDirty||!((a=this.parent)===null||a===void 0)&&a.isProjectionDirty)&&(p=!1),f&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(p=!1),this.resolvedRelativeTargetAt===Ci.timestamp&&(p=!1),p)return;const{layout:w,layoutId:g}=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||g))return;Ts(this.layoutCorrected,this.layout.layoutBox);const T=this.treeScale.x,E=this.treeScale.y;EB(this.layoutCorrected,this.treeScale,this.path,f),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():(ax(this.prevProjectionDelta.x,this.projectionDelta.x),ax(this.prevProjectionDelta.y,this.projectionDelta.y)),vd(this.projectionDelta,this.layoutCorrected,A,this.latestValues),(this.treeScale.x!==T||this.treeScale.y!==E||!gx(this.projectionDelta.x,this.prevProjectionDelta.x)||!gx(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",A)),ud&&uc.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 f=this.getStack();f&&f.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=gf(),this.projectionDelta=gf(),this.projectionDeltaWithTransform=gf()}setAnimationOrigin(a,c=!1){const f=this.snapshot,p=f?f.latestValues:{},w={...this.latestValues},g=gf();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!c;const T=gr(),E=f?f.source:void 0,A=this.layout?this.layout.source:void 0,I=E!==A,j=this.getStack(),_=!j||j.members.length<=1,H=!!(I&&!_&&this.options.crossfade===!0&&!this.path.some(c$));this.animationProgress=0;let W;this.mixTargetDelta=re=>{const Z=re/1e3;bx(g.x,a.x,Z),bx(g.y,a.y,Z),this.setTargetDelta(g),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(yd(T,this.layout.layoutBox,this.relativeParent.layout.layoutBox),u$(this.relativeTarget,this.relativeTargetOrigin,T,Z),W&&GB(this.relativeTarget,W)&&(this.isProjectionDirty=!1),W||(W=gr()),Ts(W,this.relativeTarget)),I&&(this.animationValues=w,VB(w,p,this.latestValues,Z,H,_)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=Z},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&&(vu(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Fn.update(()=>{Nh.hasAnimatedSinceResize=!0,this.currentAnimation=LB(0,mx,{...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(mx),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const a=this.getLead();let{targetWithTransforms:c,target:f,layout:p,latestValues:w}=a;if(!(!c||!f||!p)){if(this!==a&&this.layout&&p&&mE(this.options.animationType,this.layout.layoutBox,p.layoutBox)){f=this.target||gr();const g=Qo(this.layout.layoutBox.x);f.x.min=a.target.x.min,f.x.max=f.x.min+g;const T=Qo(this.layout.layoutBox.y);f.y.min=a.target.y.min,f.y.max=f.y.min+T}Ts(c,f),vf(c,w),vd(this.projectionDeltaWithTransform,this.layoutCorrected,c,w)}}registerSharedNode(a,c){this.sharedNodes.has(a)||this.sharedNodes.set(a,new qB),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:f}={}){const p=this.getStack();p&&p.promote(this,f),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:f}=a;if((f.z||f.rotate||f.rotateX||f.rotateY||f.rotateZ||f.skewX||f.skewY)&&(c=!0),!c)return;const p={};f.z&&Vg("z",a,p,this.animationValues);for(let w=0;w<$g.length;w++)Vg(`rotate${$g[w]}`,a,p,this.animationValues),Vg(`skew${$g[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,f;if(!this.instance||this.isSVG)return;if(!this.isVisible)return KB;const p={visibility:""},w=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,p.opacity="",p.pointerEvents=Lh(a==null?void 0:a.pointerEvents)||"",p.transform=w?w(this.latestValues,""):"none",p;const g=this.getLead();if(!this.projectionDelta||!this.layout||!g.target){const I={};return this.options.layoutId&&(I.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,I.pointerEvents=Lh(a==null?void 0:a.pointerEvents)||""),this.hasProjected&&!lc(this.latestValues)&&(I.transform=w?w({},""):"none",this.hasProjected=!1),I}const T=g.animationValues||g.latestValues;this.applyTransformsToTarget(),p.transform=XB(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`,g.animationValues?p.opacity=g===this?(f=(c=T.opacity)!==null&&c!==void 0?c:this.latestValues.opacity)!==null&&f!==void 0?f:1:this.preserveOpacity?this.latestValues.opacity:T.opacityExit:p.opacity=g===this?T.opacity!==void 0?T.opacity:"":T.opacityExit!==void 0?T.opacityExit:0;for(const I in tp){if(T[I]===void 0)continue;const{correct:j,applyTo:_}=tp[I],H=p.transform==="none"?T[I]:j(T[I],g);if(_){const W=_.length;for(let re=0;re<W;re++)p[_[re]]=H}else p[I]=H}return this.options.layoutId&&(p.pointerEvents=g===this?Lh(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(vx),this.root.sharedNodes.clear()}}}function JB(t){t.updateLayout()}function QB(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(g=>{const T=a?n.measuredBox[g]:n.layoutBox[g],E=Qo(T);T.min=r[g].min,T.max=T.min+E}):mE(o,n.layoutBox,r)&&Ds(g=>{const T=a?n.measuredBox[g]:n.layoutBox[g],E=Qo(r[g]);T.max=T.min+E,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[g].max=t.relativeTarget[g].min+E)});const c=gf();vd(c,r,n.layoutBox);const f=gf();a?vd(f,t.applyTransform(i,!0),n.measuredBox):vd(f,r,n.layoutBox);const p=!dE(c);let w=!1;if(!t.resumeFrom){const g=t.getClosestProjectingParent();if(g&&!g.resumeFrom){const{snapshot:T,layout:E}=g;if(T&&E){const A=gr();yd(A,n.layoutBox,T.layoutBox);const I=gr();yd(I,r,E.layoutBox),hE(A,I)||(w=!0),g.options.layoutRoot&&(t.relativeTarget=I,t.relativeTargetOrigin=A,t.relativeParent=g)}}}t.notifyListeners("didUpdate",{layout:r,snapshot:n,delta:f,layoutDelta:c,hasLayoutChanged:p,hasRelativeTargetChanged:w})}else if(t.isLead()){const{onExitComplete:r}=t.options;r&&r()}t.options.transition=void 0}function e$(t){ud&&uc.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 t$(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function n$(t){t.clearSnapshot()}function vx(t){t.clearMeasurements()}function r$(t){t.isLayoutDirty=!1}function i$(t){const{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function yx(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function o$(t){t.resolveTargetDelta()}function s$(t){t.calcProjection()}function a$(t){t.resetSkewAndRotation()}function l$(t){t.removeLeadSnapshot()}function bx(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 wx(t,e,n,r){t.min=Kn(e.min,n.min,r),t.max=Kn(e.max,n.max,r)}function u$(t,e,n,r){wx(t.x,e.x,n.x,r),wx(t.y,e.y,n.y,r)}function c$(t){return t.animationValues&&t.animationValues.opacityExit!==void 0}const f$={duration:.45,ease:[.4,0,.1,1]},xx=t=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(t),Sx=xx("applewebkit/")&&!xx("chrome/")?Math.round:_o;function Tx(t){t.min=Sx(t.min),t.max=Sx(t.max)}function d$(t){Tx(t.x),Tx(t.y)}function mE(t,e,n){return t==="position"||t==="preserve-aspect"&&!gB(px(e),px(n),.2)}function h$(t){var e;return t!==t.root&&((e=t.scroll)===null||e===void 0?void 0:e.wasRoot)}const p$=gE({attachResizeListener:(t,e)=>Md(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),Hg={current:void 0},vE=gE({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!Hg.current){const t=new p$({});t.mount(window),t.setOptions({layoutScroll:!0}),Hg.current=t}return Hg.current},resetTransform:(t,e)=>{t.style.transform=e!==void 0?e:"none"},checkIsScrollRoot:t=>window.getComputedStyle(t).position==="fixed"}),g$={pan:{Feature:RB},drag:{Feature:_B,ProjectionNode:vE,MeasureLayout:uE}};function Cx(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,Yd(e)))}let m$=class extends Tu{mount(){const{current:e}=this.node;e&&(this.unmount=gN(e,n=>(Cx(this.node,n,"Start"),r=>Cx(this.node,r,"End"))))}unmount(){}},v$=class extends Tu{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=zd(Md(this.node.current,"focus",()=>this.onFocus()),Md(this.node.current,"blur",()=>this.onBlur()))}unmount(){}};function Ex(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,Yd(e)))}let y$=class extends Tu{mount(){const{current:e}=this.node;e&&(this.unmount=bN(e,n=>(Ex(this.node,n,"Start"),(r,{success:i})=>Ex(this.node,r,i?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}};const qm=new WeakMap,Ug=new WeakMap,b$=t=>{const e=qm.get(t.target);e&&e(t)},w$=t=>{t.forEach(b$)};function x$({root:t,...e}){const n=t||document;Ug.has(n)||Ug.set(n,{});const r=Ug.get(n),i=JSON.stringify(e);return r[i]||(r[i]=new IntersectionObserver(w$,{root:t,...e})),r[i]}function S$(t,e,n){const r=x$(e);return qm.set(t,n),r.observe(t),()=>{qm.delete(t),r.unobserve(t)}}const T$={some:0,all:1};let C$=class extends Tu{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:T$[i]},c=f=>{const{isIntersecting:p}=f;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:g}=this.node.getProps(),T=p?w:g;T&&T(f)};return S$(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(E$(e,n))&&this.startObserver()}unmount(){}};function E$({viewport:t={}},{viewport:e={}}={}){return n=>t[n]!==e[n]}const k$={inView:{Feature:C$},tap:{Feature:y$},focus:{Feature:v$},hover:{Feature:m$}},D$={layout:{ProjectionNode:vE,MeasureLayout:uE}},Xm={current:null},yE={current:!1};function P$(){if(yE.current=!0,!!Hv)if(window.matchMedia){const t=window.matchMedia("(prefers-reduced-motion)"),e=()=>Xm.current=t.matches;t.addListener(e),e()}else Xm.current=!1}const O$=[...UC,Ni,yu],_$=t=>O$.find(HC(t)),kx=new WeakMap;function R$(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"&&Ep(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,Ad(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,Ad(a!==void 0?a:i,{owner:t}))}}for(const r in n)e[r]===void 0&&t.removeValue(r);return e}const Dx=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];let A$=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=gy,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=ja.now();this.renderScheduledAt<E&&(this.renderScheduledAt=E,Fn.render(this.render,!1,!0))};const{latestValues:f,renderState:p,onUpdate:w}=a;this.onUpdate=w,this.latestValues=f,this.baseTarget={...f},this.initialValues=n.initial?{...f}:{},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=Pp(n),this.isVariantNode=ZT(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);const{willChange:g,...T}=this.scrapeMotionValuesFromProps(n,{},this);for(const E in T){const A=T[E];f[E]!==void 0&&ji(A)&&A.set(f[E],!1)}}mount(e){this.current=e,kx.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)),yE.current||P$(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:Xm.current,process.env.NODE_ENV!=="production"&&Ep(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(){kx.delete(this.current),this.projection&&this.projection.unmount(),vu(this.notifyUpdate),vu(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=Oc.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 Ef){const n=Ef[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<Dx.length;r++){const i=Dx[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=R$(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=Ad(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"&&($C(i)||RC(i))?i=parseFloat(i):!_$(i)&&yu.test(n)&&(i=NC(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=Xv(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 uy),this.events[e].add(n)}notify(e,...n){this.events[e]&&this.events[e].notify(...n)}},bE=class extends A${constructor(){super(...arguments),this.KeyframeResolver=WC}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 I$(t){return window.getComputedStyle(t)}let M$=class extends bE{constructor(){super(...arguments),this.type="html",this.renderInstance=sC}readValueFromInstance(e,n){if(Oc.has(n)){const r=py(n);return r&&r.default||0}else{const r=I$(e),i=(rC(n)?r.getPropertyValue(n):r[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(e,{transformPagePoint:n}){return aE(e,n)}build(e,n,r){Jv(e,n,r.transformTemplate)}scrapeMotionValuesFromProps(e,n,r){return ny(e,n,r)}},L$=class extends bE{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=gr}getBaseTargetFromProps(e,n){return e[n]}readValueFromInstance(e,n){if(Oc.has(n)){const r=py(n);return r&&r.default||0}return n=aC.has(n)?n:Yv(n),e.getAttribute(n)}scrapeMotionValuesFromProps(e,n,r){return cC(e,n,r)}build(e,n,r){Qv(e,n,this.isSVGTag,r.transformTemplate)}renderInstance(e,n,r,i){lC(e,n,r,i)}mount(e){this.isSVGTag=ty(e.tagName),super.mount(e)}};const F$=(t,e)=>qv(t)?new L$(e):new M$(e,{allowProjection:t!==q.Fragment}),N$=lN({...sB,...k$,...g$,...D$},F$),j$=TF(N$);function Px(t,e){let n;return(...r)=>{window.clearTimeout(n),n=window.setTimeout(()=>t(...r),e)}}function B$({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]=q.useState({left:0,top:0,width:0,height:0,bottom:0,right:0,x:0,y:0}),c=q.useRef({element:null,scrollContainers:null,resizeObserver:null,lastBounds:o,orientationHandler:null}),f=t?typeof t=="number"?t:t.scroll:null,p=t?typeof t=="number"?t:t.resize:null,w=q.useRef(!1);q.useEffect(()=>(w.current=!0,()=>void(w.current=!1)));const[g,T,E]=q.useMemo(()=>{const _=()=>{if(!c.current.element)return;const{left:H,top:W,width:re,height:Z,bottom:de,right:S,x:le,y:ue}=c.current.element.getBoundingClientRect(),ze={left:H,top:W,width:re,height:Z,bottom:de,right:S,x:le,y:ue};c.current.element instanceof HTMLElement&&r&&(ze.height=c.current.element.offsetHeight,ze.width=c.current.element.offsetWidth),Object.freeze(ze),w.current&&!U$(c.current.lastBounds,ze)&&a(c.current.lastBounds=ze)};return[_,p?Px(_,p):_,f?Px(_,f):_]},[a,r,f,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=wE(_),I())};return V$(E,!!e),$$(T),q.useEffect(()=>{A(),I()},[e,E,T]),q.useEffect(()=>A,[]),[j,o,g]}function $$(t){q.useEffect(()=>{const e=t;return window.addEventListener("resize",e),()=>void window.removeEventListener("resize",e)},[t])}function V$(t,e){q.useEffect(()=>{if(e){const n=t;return window.addEventListener("scroll",n,{capture:!0,passive:!0}),()=>void window.removeEventListener("scroll",n,!0)}},[t,e])}function wE(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,...wE(t.parentElement)]}const H$=["x","y","top","bottom","left","right","width","height"],U$=(t,e)=>H$.every(n=>t[n]===e[n]),xE=q.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 Ox=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),_x=function(){return Math.random().toString(36).substring(7).split("").join(".")},Rx={INIT:"@@redux/INIT"+_x(),REPLACE:"@@redux/REPLACE"+_x()};function W$(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 z$(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(q$(t))return"date";if(G$(t))return"error";var n=Y$(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 Y$(t){return typeof t.constructor=="function"?t.constructor.name:null}function G$(t){return t instanceof Error||typeof t.message=="string"&&t.constructor&&typeof t.constructor.stackTraceLimit=="number"}function q$(t){return t instanceof Date?!0:typeof t.toDateString=="function"&&typeof t.getDate=="function"&&typeof t.setDate=="function"}function lf(t){var e=typeof t;return process.env.NODE_ENV!=="production"&&(e=z$(t)),e}function SE(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: '"+lf(n)+"'");return n(SE)(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: '"+lf(t)+"'");var i=t,o=e,a=[],c=a,f=!1;function p(){c===a&&(c=a.slice())}function w(){if(f)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 g(I){if(typeof I!="function")throw new Error(process.env.NODE_ENV==="production"?Cs(4):"Expected the listener to be a function. Instead, received: '"+lf(I)+"'");if(f)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(f)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 H=c.indexOf(I);c.splice(H,1),a=null}}}function T(I){if(!W$(I))throw new Error(process.env.NODE_ENV==="production"?Cs(7):"Actions must be plain objects. Instead, the actual type was: '"+lf(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(f)throw new Error(process.env.NODE_ENV==="production"?Cs(9):"Reducers may not dispatch actions.");try{f=!0,o=i(o,I)}finally{f=!1}for(var j=a=c,_=0;_<j.length;_++){var H=j[_];H()}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: '"+lf(I));i=I,T({type:Rx.REPLACE})}function A(){var I,j=g;return I={subscribe:function(H){if(typeof H!="object"||H===null)throw new Error(process.env.NODE_ENV==="production"?Cs(11):"Expected the observer to be an object. Instead, received: '"+lf(H)+"'");function W(){H.next&&H.next(w())}W();var re=j(W);return{unsubscribe:re}}},I[Ox]=function(){return this},I}return T({type:Rx.INIT}),r={dispatch:T,subscribe:g,getState:w,replaceReducer:E},r[Ox]=A,r}function Ut(t,e,...n){if(X$()&&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 X$(){return typeof process<"u"&&process.env.NODE_ENV==="production"}function K$(t,e,n){return e.split(".").reduce((r,i)=>r&&r[i]?r[i]:n||null,t)}function Z$(t,e){return t.filter(n=>n!==e)}function TE(t){return typeof t=="object"}function J$(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 Q$(t,e){return t.filter(n=>e.indexOf(n)>-1)}const by="dnd-core/INIT_COORDS",Rp="dnd-core/BEGIN_DRAG",wy="dnd-core/PUBLISH_DRAG_SOURCE",Ap="dnd-core/HOVER",Ip="dnd-core/DROP",Mp="dnd-core/END_DRAG";function Ax(t,e){return{type:by,payload:{sourceClientOffset:e||null,clientOffset:t||null}}}const eV={type:by,payload:{clientOffset:null,sourceClientOffset:null}};function tV(t){return function(n=[],r={publishSource:!0}){const{publishSource:i=!0,clientOffset:o,getSourceClientOffset:a}=r,c=t.getMonitor(),f=t.getRegistry();t.dispatch(Ax(o)),nV(n,c,f);const p=oV(n,c);if(p==null){t.dispatch(eV);return}let w=null;if(o){if(!a)throw new Error("getSourceClientOffset must be defined");rV(a),w=a(p)}t.dispatch(Ax(o,w));const T=f.getSource(p).beginDrag(c,p);if(T==null)return;iV(T),f.pinSource(p);const E=f.getSourceType(p);return{type:Rp,payload:{itemType:E,item:T,sourceId:p,clientOffset:o||null,sourceClientOffset:w||null,isSourcePublic:!!i}}}}function nV(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 rV(t){Ut(typeof t=="function","When clientOffset is provided, getSourceClientOffset must be a function.")}function iV(t){Ut(TE(t),"Item must be an object.")}function oV(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 sV(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function aV(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){sV(t,i,n[i])})}return t}function lV(t){return function(n={}){const r=t.getMonitor(),i=t.getRegistry();uV(r),dV(r).forEach((a,c)=>{const f=cV(a,c,i,r),p={type:Ip,payload:{dropResult:aV({},n,f)}};t.dispatch(p)})}}function uV(t){Ut(t.isDragging(),"Cannot call drop while not dragging."),Ut(!t.didDrop(),"Cannot call drop twice during one drag operation.")}function cV(t,e,n,r){const i=n.getTarget(t);let o=i?i.drop(r,t):void 0;return fV(o),typeof o>"u"&&(o=e===0?{}:r.getDropResult()),o}function fV(t){Ut(typeof t>"u"||TE(t),"Drop result must either be an object or undefined.")}function dV(t){const e=t.getTargetIds().filter(t.canDropOnTarget,t);return e.reverse(),e}function hV(t){return function(){const n=t.getMonitor(),r=t.getRegistry();pV(n);const i=n.getSourceId();return i!=null&&(r.getSource(i,!0).endDrag(n,i),r.unpinSource()),{type:Mp}}}function pV(t){Ut(t.isDragging(),"Cannot call endDrag while not dragging.")}function Km(t,e){return e===null?t===null:Array.isArray(t)?t.some(n=>n===e):t===e}function gV(t){return function(n,{clientOffset:r}={}){mV(n);const i=n.slice(0),o=t.getMonitor(),a=t.getRegistry(),c=o.getItemType();return yV(i,a,c),vV(i,o,a),bV(i,o,a),{type:Ap,payload:{targetIds:i,clientOffset:r||null}}}}function mV(t){Ut(Array.isArray(t),"Expected targetIds to be an array.")}function vV(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 yV(t,e,n){for(let r=t.length-1;r>=0;r--){const i=t[r],o=e.getTargetType(i);Km(o,n)||t.splice(r,1)}}function bV(t,e,n){t.forEach(function(r){n.getTarget(r).hover(e,r)})}function wV(t){return function(){if(t.getMonitor().isDragging())return{type:wy}}}function xV(t){return{beginDrag:tV(t),publishDragSource:wV(t),hover:gV(t),drop:lV(t),endDrag:hV(t)}}class SV{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=xV(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 TV(t,e){return{x:t.x+e.x,y:t.y+e.y}}function CE(t,e){return{x:t.x-e.x,y:t.y-e.y}}function CV(t){const{clientOffset:e,initialClientOffset:n,initialSourceClientOffset:r}=t;return!e||!n||!r?null:CE(TV(e,r),n)}function EV(t){const{clientOffset:e,initialClientOffset:n}=t;return!e||!n?null:CE(e,n)}const bd=[],xy=[];bd.__IS_NONE__=!0;xy.__IS_ALL__=!0;function kV(t,e){return t===bd?!1:t===xy||typeof e>"u"?!0:Q$(e,t).length>0}class DV{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&&!kV(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 Km(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&&!Km(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 CV(this.store.getState().dragOffset)}getDifferenceFromInitialOffset(){return EV(this.store.getState().dragOffset)}constructor(e,n){this.store=e,this.registry=n}}const Ix=typeof global<"u"?global:self,EE=Ix.MutationObserver||Ix.WebKitMutationObserver;function kE(t){return function(){const n=setTimeout(i,0),r=setInterval(i,50);function i(){clearTimeout(n),clearInterval(r),t()}}}function PV(t){let e=1;const n=new EE(t),r=document.createTextNode("");return n.observe(r,{characterData:!0}),function(){e=-e,r.data=e}}const OV=typeof EE=="function"?PV:kE;class _V{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=OV(this.flush),this.requestErrorThrow=kE(()=>{if(this.pendingErrors.length)throw this.pendingErrors.shift()})}}class RV{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 AV{create(e){const n=this.freeTasks,r=n.length?n.pop():new RV(this.onError,i=>n[n.length]=i);return r.task=e,r}constructor(e){this.onError=e,this.freeTasks=[]}}const DE=new _V,IV=new AV(DE.registerPendingError);function MV(t){DE.enqueueTask(IV.create(t))}const Sy="dnd-core/ADD_SOURCE",Ty="dnd-core/ADD_TARGET",Cy="dnd-core/REMOVE_SOURCE",Lp="dnd-core/REMOVE_TARGET";function LV(t){return{type:Sy,payload:{sourceId:t}}}function FV(t){return{type:Ty,payload:{targetId:t}}}function NV(t){return{type:Cy,payload:{sourceId:t}}}function jV(t){return{type:Lp,payload:{targetId:t}}}function BV(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 $V(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 Zm(t,e){if(e&&Array.isArray(t)){t.forEach(n=>Zm(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 VV=0;function HV(){return VV++}function UV(t){const e=HV().toString();switch(t){case Os.SOURCE:return`S${e}`;case Os.TARGET:return`T${e}`;default:throw new Error(`Unknown Handler Role: ${t}`)}}function Mx(t){switch(t[0]){case"S":return Os.SOURCE;case"T":return Os.TARGET;default:throw new Error(`Cannot parse handler ID: ${t}`)}}function Lx(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 WV{addSource(e,n){Zm(e),BV(n);const r=this.addHandler(Os.SOURCE,e,n);return this.store.dispatch(LV(r)),r}addTarget(e,n){Zm(e,!0),$V(n);const r=this.addHandler(Os.TARGET,e,n);return this.store.dispatch(FV(r)),r}containsHandler(e){return Lx(this.dragSources,e)||Lx(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 Mx(e)===Os.SOURCE}isTargetId(e){return Mx(e)===Os.TARGET}removeSource(e){Ut(this.getSource(e),"Expected an existing source."),this.store.dispatch(NV(e)),MV(()=>{this.dragSources.delete(e),this.types.delete(e)})}removeTarget(e){Ut(this.getTarget(e),"Expected an existing target."),this.store.dispatch(jV(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=UV(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 zV=(t,e)=>t===e;function YV(t,e){return!t&&!e?!0:!t||!e?!1:t.x===e.x&&t.y===e.y}function GV(t,e,n=zV){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 qV(t=bd,e){switch(e.type){case Ap:break;case Sy:case Ty:case Lp:case Cy:return bd;case Rp:case wy:case Mp:case Ip:default:return xy}const{targetIds:n=[],prevTargetIds:r=[]}=e.payload,i=J$(n,r);if(!(i.length>0||!GV(n,r)))return bd;const a=r[r.length-1],c=n[n.length-1];return a!==c&&(a&&i.push(a),c&&i.push(c)),i}function XV(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function KV(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){XV(t,i,n[i])})}return t}const Fx={initialSourceClientOffset:null,initialClientOffset:null,clientOffset:null};function ZV(t=Fx,e){const{payload:n}=e;switch(e.type){case by:case Rp:return{initialSourceClientOffset:n.sourceClientOffset,initialClientOffset:n.clientOffset,clientOffset:n.clientOffset};case Ap:return YV(t.clientOffset,n.clientOffset)?t:KV({},t,{clientOffset:n.clientOffset});case Mp:case Ip:return Fx;default:return t}}function JV(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function uf(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){JV(t,i,n[i])})}return t}const QV={itemType:null,item:null,sourceId:null,targetIds:[],dropResult:null,didDrop:!1,isSourcePublic:null};function e3(t=QV,e){const{payload:n}=e;switch(e.type){case Rp:return uf({},t,{itemType:n.itemType,item:n.item,sourceId:n.sourceId,isSourcePublic:n.isSourcePublic,dropResult:null,didDrop:!1});case wy:return uf({},t,{isSourcePublic:!0});case Ap:return uf({},t,{targetIds:n.targetIds});case Lp:return t.targetIds.indexOf(n.targetId)===-1?t:uf({},t,{targetIds:Z$(t.targetIds,n.targetId)});case Ip:return uf({},t,{dropResult:n.dropResult,didDrop:!0,targetIds:[]});case Mp:return uf({},t,{itemType:null,item:null,sourceId:null,dropResult:null,didDrop:!1,isSourcePublic:null,targetIds:[]});default:return t}}function t3(t=0,e){switch(e.type){case Sy:case Ty:return t+1;case Cy:case Lp:return t-1;default:return t}}function n3(t=0){return t+1}function r3(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function i3(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){r3(t,i,n[i])})}return t}function o3(t={},e){return{dirtyHandlerIds:qV(t.dirtyHandlerIds,{type:e.type,payload:i3({},e.payload,{prevTargetIds:K$(t,"dragOperation.targetIds",[])})}),dragOffset:ZV(t.dragOffset,e),refCount:t3(t.refCount,e),dragOperation:e3(t.dragOperation,e),stateId:n3(t.stateId)}}function s3(t,e=void 0,n={},r=!1){const i=a3(r),o=new DV(i,new WV(i)),a=new SV(i,o),c=t(a,e,n);return a.receiveBackend(c),a}function a3(t){const e=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__;return SE(o3,t&&e&&e({name:"dnd-core",instanceId:"dnd-core"}))}function l3(t,e){if(t==null)return{};var n=u3(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 u3(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 Nx=0;const jh=Symbol.for("__REACT_DND_CONTEXT_INSTANCE__");var PE=q.memo(function(e){var{children:n}=e,r=l3(e,["children"]);const[i,o]=c3(r);return q.useEffect(()=>{if(o){const a=OE();return++Nx,()=>{--Nx===0&&(a[jh]=null)}}},[]),Ie.jsx(xE.Provider,{value:i,children:n})});function c3(t){if("manager"in t)return[{dragDropManager:t.manager},!1];const e=f3(t.backend,t.context,t.options,t.debugMode),n=!t.context;return[e,n]}function f3(t,e=OE(),n,r){const i=e;return i[jh]||(i[jh]={dragDropManager:s3(t,e,n,r)}),i[jh]}function OE(){return typeof global<"u"?global:window}var d3=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 h3=Pc(d3),Tc=typeof window<"u"?q.useLayoutEffect:q.useEffect;function _E(t,e,n){const[r,i]=q.useState(()=>e(t)),o=q.useCallback(()=>{const a=e(t);h3(r,a)||(i(a),n&&n())},[r,t,n]);return Tc(o),[r,o]}function p3(t,e,n){const[r,i]=_E(t,e,n);return Tc(function(){const a=t.getHandlerId();if(a!=null)return t.subscribeToStateChange(i,{handlerIds:[a]})},[t,i]),r}function RE(t,e,n){return p3(e,t||(()=>({})),()=>n.reconnect())}function AE(t,e){const n=[];return typeof t!="function"&&n.push(t),q.useMemo(()=>typeof t=="function"?t():t,n)}function g3(t){return q.useMemo(()=>t.hooks.dragSource(),[t])}function m3(t){return q.useMemo(()=>t.hooks.dragPreview(),[t])}let Wg=!1,zg=!1;class v3{receiveHandlerId(e){this.sourceId=e}getHandlerId(){return this.sourceId}canDrag(){Ut(!Wg,"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 Wg=!0,this.internalMonitor.canDragSource(this.sourceId)}finally{Wg=!1}}isDragging(){if(!this.sourceId)return!1;Ut(!zg,"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 zg=!0,this.internalMonitor.isDraggingSource(this.sourceId)}finally{zg=!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 Yg=!1;class y3{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(!Yg,"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 Yg=!0,this.internalMonitor.canDropOnTarget(this.targetId)}finally{Yg=!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 b3(t,e,n){const r=n.getRegistry(),i=r.addTarget(t,e);return[i,()=>r.removeTarget(i)]}function w3(t,e,n){const r=n.getRegistry(),i=r.addSource(t,e);return[i,()=>r.removeSource(i)]}function Jm(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 f=0;f<o.length;f++){const p=o[f];if(!c(p))return!1;const w=t[p],g=e[p];if(i=void 0,i===!1||i===void 0&&w!==g)return!1}return!0}function Qm(t){return t!==null&&typeof t=="object"&&Object.prototype.hasOwnProperty.call(t,"current")}function x3(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 S3(t){return(e=null,n=null)=>{if(!q.isValidElement(e)){const o=e;return t(o,n),o}const r=e;return x3(r),T3(r,n?o=>t(o,n):t)}}function IE(t){const e={};return Object.keys(t).forEach(n=>{const r=t[n];if(n.endsWith("Ref"))e[n]=t[n];else{const i=S3(r);e[n]=()=>i}}),e}function jx(t,e){typeof t=="function"?t(e):t.current=e}function T3(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?q.cloneElement(t,{ref:r=>{jx(n,r),jx(e,r)}}):q.cloneElement(t,{ref:e})}class C3{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!Jm(this.lastConnectedDragSourceOptions,this.dragSourceOptions)}didDragPreviewOptionsChange(){return!Jm(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=IE({dragSource:(n,r)=>{this.clearDragSource(),this.dragSourceOptions=r||null,Qm(n)?this.dragSourceRef=n:this.dragSourceNode=n,this.reconnectDragSource()},dragPreview:(n,r)=>{this.clearDragPreview(),this.dragPreviewOptions=r||null,Qm(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 E3{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!Jm(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=IE({dropTarget:(n,r)=>{this.clearDropTarget(),this.dropTargetOptions=r,Qm(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 Pl(){const{dragDropManager:t}=q.useContext(xE);return Ut(t!=null,"Expected drag drop context"),t}function k3(t,e){const n=Pl(),r=q.useMemo(()=>new C3(n.getBackend()),[n]);return Tc(()=>(r.dragSourceOptions=t||null,r.reconnect(),()=>r.disconnectDragSource()),[r,t]),Tc(()=>(r.dragPreviewOptions=e||null,r.reconnect(),()=>r.disconnectDragPreview()),[r,e]),r}function D3(){const t=Pl();return q.useMemo(()=>new v3(t),[t])}class P3{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 O3(t,e,n){const r=q.useMemo(()=>new P3(t,e,n),[e,n]);return q.useEffect(()=>{r.spec=t},[t]),r}function _3(t){return q.useMemo(()=>{const e=t.type;return Ut(e!=null,"spec.type must be defined"),e},[t])}function R3(t,e,n){const r=Pl(),i=O3(t,e,n),o=_3(t);Tc(function(){if(o!=null){const[c,f]=w3(o,i,r);return e.receiveHandlerId(c),n.receiveHandlerId(c),f}},[r,e,n,i,o])}function A3(t,e){const n=AE(t);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=D3(),i=k3(n.options,n.previewOptions);return R3(n,r,i),[RE(n.collect,r,i),g3(i),m3(i)]}function I3(t){const n=Pl().getMonitor(),[r,i]=_E(n,t);return q.useEffect(()=>n.subscribeToOffsetChange(i)),q.useEffect(()=>n.subscribeToStateChange(i)),r}function M3(t){return q.useMemo(()=>t.hooks.dropTarget(),[t])}function L3(t){const e=Pl(),n=q.useMemo(()=>new E3(e.getBackend()),[e]);return Tc(()=>(n.dropTargetOptions=t||null,n.reconnect(),()=>n.disconnectDropTarget()),[t]),n}function F3(){const t=Pl();return q.useMemo(()=>new y3(t),[t])}function N3(t){const{accept:e}=t;return q.useMemo(()=>(Ut(t.accept!=null,"accept must be defined"),Array.isArray(e)?e:[e]),[e])}class j3{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 B3(t,e){const n=q.useMemo(()=>new j3(t,e),[e]);return q.useEffect(()=>{n.spec=t},[t]),n}function $3(t,e,n){const r=Pl(),i=B3(t,e),o=N3(t);Tc(function(){const[c,f]=b3(o,i,r);return e.receiveHandlerId(c),n.receiveHandlerId(c),f},[r,e,i,n,o.map(a=>a.toString()).join("|")])}function ME(t,e){const n=AE(t),r=F3(),i=L3(n.options);return $3(n,r,i),[RE(n.collect,r,i),M3(i)]}var LE=t=>{throw TypeError(t)},FE=(t,e,n)=>e.has(t)||LE("Cannot "+n),Nt=(t,e,n)=>(FE(t,e,"read from private field"),n?n.call(t):e.get(t)),ks=(t,e,n)=>e.has(t)?LE("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,n),cc=(t,e,n,r)=>(FE(t,e,"write to private field"),e.set(t,n),n),ou,V3=class{constructor(){ks(this,ou),this.register=t=>{Nt(this,ou).push(t)},this.unregister=t=>{for(;Nt(this,ou).indexOf(t)!==-1;)Nt(this,ou).splice(Nt(this,ou).indexOf(t),1)},this.backendChanged=t=>{for(let e of Nt(this,ou))e.backendChanged(t)},cc(this,ou,[])}};ou=new WeakMap;var qo,cd,Xo,ml,fc,ev,tv,nv,Bh,$h,fd,NE=class Vh{constructor(e,n,r){if(ks(this,qo),ks(this,cd),ks(this,Xo),ks(this,ml),ks(this,fc),ks(this,ev,(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),f=a.id,p=!a.id&&c&&c.constructor;if(p&&(f=c.constructor.name),!f)throw new Error(`You must specify an 'id' property in your Backend entry: ${JSON.stringify(a)}
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
+ This might be unsupported in the future, please specify 'id' explicitely for every backend.`),Nt(this,Xo)[f])throw new Error(`You must specify a unique 'id' property in your Backend entry:
7
+ ${JSON.stringify(a)} (conflicts with: ${JSON.stringify(Nt(this,Xo)[f])})`);return{id:f,instance:c,preview:a.preview??!1,transition:a.transition,skipDispatchOnTransition:a.skipDispatchOnTransition??!1}}),this.setup=()=>{if(!(typeof window>"u")){if(Vh.isSetUp)throw new Error("Cannot have two MultiBackends at the same time.");Vh.isSetUp=!0,Nt(this,tv).call(this,window),Nt(this,Xo)[Nt(this,qo)].instance.setup()}},this.teardown=()=>{typeof window>"u"||(Vh.isSetUp=!1,Nt(this,nv).call(this,window),Nt(this,Xo)[Nt(this,qo)].instance.teardown())},this.connectDragSource=(i,o,a)=>Nt(this,fd).call(this,"connectDragSource",i,o,a),this.connectDragPreview=(i,o,a)=>Nt(this,fd).call(this,"connectDragPreview",i,o,a),this.connectDropTarget=(i,o,a)=>Nt(this,fd).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,cd),this.backendsList=()=>Nt(this,ml),ks(this,tv,i=>{for(let o of Nt(this,ml))o.transition&&i.addEventListener(o.transition.event,Nt(this,Bh))}),ks(this,nv,i=>{for(let o of Nt(this,ml))o.transition&&i.removeEventListener(o.transition.event,Nt(this,Bh))}),ks(this,Bh,i=>{var a;let o=Nt(this,qo);if(Nt(this,ml).some(c=>c.id!==Nt(this,qo)&&c.transition&&c.transition.check(i)?(cc(this,qo,c.id),!0):!1),Nt(this,qo)!==o){Nt(this,Xo)[o].instance.teardown();for(let[w,g]of Object.entries(Nt(this,fc)))g.unsubscribe(),g.unsubscribe=Nt(this,$h).call(this,g.func,...g.args);Nt(this,cd).backendChanged(this);let c=Nt(this,Xo)[Nt(this,qo)];if(c.instance.setup(),c.skipDispatchOnTransition)return;let f=i.constructor,p=new f(i.type,i);(a=i.target)==null||a.dispatchEvent(p)}}),ks(this,$h,(i,o,a,c)=>Nt(this,Xo)[Nt(this,qo)].instance[i](o,a,c)),ks(this,fd,(i,o,a,c)=>{let f=`${i}_${o}`,p=Nt(this,$h).call(this,i,o,a,c);return Nt(this,fc)[f]={func:i,args:[o,a,c],unsubscribe:p},()=>{Nt(this,fc)[f].unsubscribe(),delete Nt(this,fc)[f]}}),!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`);cc(this,cd,new V3),cc(this,Xo,{}),cc(this,ml,[]);for(let i of r.backends){let o=Nt(this,ev).call(this,e,n,i);Nt(this,Xo)[o.id]=o,Nt(this,ml).push(o)}cc(this,qo,Nt(this,ml)[0].id),cc(this,fc,{})}};qo=new WeakMap,cd=new WeakMap,Xo=new WeakMap,ml=new WeakMap,fc=new WeakMap,ev=new WeakMap,tv=new WeakMap,nv=new WeakMap,Bh=new WeakMap,$h=new WeakMap,fd=new WeakMap,NE.isSetUp=!1;var H3=NE,jE=(t,e,n)=>new H3(t,e,n),BE=(t,e)=>({event:t,check:e}),U3=BE("touchstart",t=>{let e=t;return e.touches!==null&&e.touches!==void 0}),W3=BE("pointerdown",t=>t.pointerType==="mouse"),uu;(function(t){t.mouse="mouse",t.touch="touch",t.keyboard="keyboard"})(uu||(uu={}));class z3{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 Y3(t,e,n,r){return Math.sqrt(Math.pow(Math.abs(n-t),2)+Math.pow(Math.abs(r-e),2))}function G3(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 q3={Left:1},X3={Left:0};function Gg(t){return t.button===void 0||t.button===X3.Left}function K3(t){return t.buttons===void 0||(t.buttons&q3.Left)===0}function $E(t){return!!t.targetTouches}const Z3=1;function J3(t){const e=t.nodeType===Z3?t:t.parentElement;if(!e)return;const{top:n,left:r}=e.getBoundingClientRect();return{x:r,y:n}}function Q3(t,e){if(t.targetTouches.length===1)return ap(t.targetTouches[0]);if(e&&t.touches.length===1&&t.touches[0].target===e.target)return ap(t.touches[0])}function ap(t,e){return $E(t)?Q3(t,e):{x:t.clientX,y:t.clientY}}const Bx=(()=>{let t=!1;try{addEventListener("test",()=>{},Object.defineProperty({},"passive",{get(){return t=!0,!0}}))}catch{}return t})(),rd={[uu.mouse]:{start:"mousedown",move:"mousemove",end:"mouseup",contextmenu:"contextmenu"},[uu.touch]:{start:"touchstart",move:"touchmove",end:"touchend"},[uu.keyboard]:{keydown:"keydown"}};class wd{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(!wd.isSetUp,"Cannot have two Touch backends at the same time."),wd.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&&(wd.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=Bx?{capture:i,passive:!1}:i;this.listenerTypes.forEach(function(a){const c=rd[a][n];c&&e.addEventListener(c,r,o)})}removeEventListener(e,n,r,i=!1){const o=Bx?{capture:i,passive:!1}:i;this.listenerTypes.forEach(function(a){const c=rd[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 rd.mouse.move:a={x:o.clientX,y:o.clientY};break;case rd.touch.move:var c,f;a={x:((c=o.touches[0])===null||c===void 0?void 0:c.clientX)||0,y:((f=o.touches[0])===null||f===void 0?void 0:f.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&&J3(o)},this.handleTopMoveStartCapture=i=>{Gg(i)&&(this.moveStartSourceIds=[])},this.handleMoveStart=i=>{Array.isArray(this.moveStartSourceIds)&&this.moveStartSourceIds.unshift(i)},this.handleTopMoveStart=i=>{if(!Gg(i))return;const o=ap(i);o&&($E(i)&&(this.lastTargetTouchFallback=i.targetTouches[0]),this._mouseClientOffset=o),this.waitingForDelay=!1},this.handleTopMoveStartDelay=i=>{if(!Gg(i))return;const o=i.type===rd.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,f=ap(i,this.lastTargetTouchFallback);if(!f)return;if(this._isScrolling||!this.monitor.isDragging()&&G3(this._mouseClientOffset.x||0,this._mouseClientOffset.y||0,f.x,f.y,this.options.scrollAngleRanges)){this._isScrolling=!0;return}if(!this.monitor.isDragging()&&this._mouseClientOffset.hasOwnProperty("x")&&o&&Y3(this._mouseClientOffset.x||0,this._mouseClientOffset.y||0,f.x,f.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),g=this.options.getDropTargetElementsAtPoint?this.options.getDropTargetElementsAtPoint(f.x,f.y,w):this.document.elementsFromPoint(f.x,f.y),T=[];for(const A in g){if(!g.hasOwnProperty(A))continue;let I=g[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:f})},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,!!K3(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 z3(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(uu.mouse),this.options.enableTouchEvents&&this.listenerTypes.push(uu.touch),this.options.enableKeyboardEvents&&this.listenerTypes.push(uu.keyboard)}}const eH=function(e,n={},r={}){return new wd(e,n,r)};var As=function(){return As=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},As.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 tH(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,f=B$({polyfill:dF}),p=f[0],w=f[1].height,g=q.useState(e),T=g[0],E=g[1],A=q.useState(e),I=A[0],j=A[1],_=q.useState(!1),H=_[0],W=_[1],re=function(){W(!1),e||E(!1)};q.useEffect(function(){W(!0),e?E(!0):j(!1)},[e]);var Z=w===0;return q.useEffect(function(){T&&j(!0)},[Z]),q.createElement(j$.div,{style:H?{overflow:"hidden"}:void 0,onAnimationComplete:re,initial:I?"open":"close",animate:I?"open":"close",inherit:!1,variants:a,transition:{ease:r,duration:nH(w,i)}},q.createElement("div",{ref:p},T&&c))}function nH(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 VE=q.createContext({}),rH={isLock:!1},iH=function(t){var e=q.useState(rH.isLock),n=e[0],r=e[1];return q.createElement(VE.Provider,{value:{isLock:n,lock:function(){return r(!0)},unlock:function(){return r(!1)}}},t.children)},Gd=q.createContext({}),Th={dropTargetId:void 0,index:void 0},oH=function(t){var e=q.useState(Th.dropTargetId),n=e[0],r=e[1],i=q.useState(Th.index),o=i[0],a=i[1],c=function(p,w){r(p),a(w)},f=function(){r(Th.dropTargetId),a(Th.index)};return q.createElement(Gd.Provider,{value:{dropTargetId:n,index:o,showPlaceholder:c,hidePlaceholder:f}},t.children)},sH=function(t,e){return t.text>e.text?1:t.text<e.text?-1:0},id=function(t,e){return t.find(function(n){return n.id===e})},HE=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:HE(t,e,r.parent)},Ey=function(t){return typeof t=="object"&&t!==null&&"id"in t&&"parent"in t&&"text"in t},bu=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=Ey(t)?t.id:null;if(o){var f=o(c,e);if(f!==void 0)return f}if(c===e)return!1;var p=r.find(function(g){return g.id===c}),a=r.find(function(g){return g.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:!HE(r,c,e)}},aH=function(t,e,n){return t.map(function(r){return r.id===e?As(As({},r),{parent:n}):r})},UE=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},lH=function(t,e){return t.findIndex(function(n){return n.id===e})},WE=function(t,e,n,r){var i=lH(t,e),o=UE(t,n,r);return o=o>i?o-1:o,[i,o]},uH=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)}},cH=function(t,e,n,r){var i=WE(t,e,n,r),o=i[0],a=i[1],c=io([],t,!0);return uH(c,o,a),c.map(function(f){return f.id===e?As(As({},f),{parent:n}):f})},fH=function(t,e){var n=t.getBoundingClientRect(),r=n.top+n.height/2;return e>r?"down":"up"},rv=function(t,e){var n="",r=0;return t.forEach(function(i,o){var a,c=fH(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},$x=function(t,e,n){var r=e.closest('[role="list"]'),i=r==null?void 0:r.querySelectorAll(':scope > [role="listitem"]');return i?rv(i,n):null},dH=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"},iv=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:rv(o,n)}}var a=n.getItem(),c=e.querySelector('[role="list"]'),f=dH(e,((i=n.getClientOffset())===null||i===void 0?void 0:i.y)||0,r);if(c){if(f==="upper")if(bu(a,t.parent,r)){var p=$x(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:rv(o,n)}}else{if(f==="middle")return{id:t.id,index:0};if(bu(a,t.parent,r)){var p=$x(t,e,n);return p===null?null:{id:t.parent,index:p}}return null}},zE=function(t){return t===void 0&&(t={}),{backends:[{id:"html5",backend:z2,options:t.html5,transition:W3},{id:"touch",backend:eH,options:t.touch||{enableMouseEvents:!0},preview:!0,transition:U3}]}},Hh=function(t,e){return t.some(function(n){return n.parent===e})},YE=q.createContext({}),hH=function(t){var e=wH(t.tree,t.initialOpen),n=e[0],r=e[1],i=r.handleToggle,o=r.handleCloseAll,a=r.handleOpenAll,c=r.handleOpen,f=r.handleClose;q.useImperativeHandle(t.treeRef,function(){return{open:function(E){return c(E,t.onChangeOpen)},close:function(E){return f(E,t.onChangeOpen)},openAll:function(){return a(t.onChangeOpen)},closeAll:function(){return o(t.onChangeOpen)}}});var p=Pl().getMonitor(),w=t.canDrop,g=t.canDrag,T=As(As({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:id(t.tree,A),monitor:p},_=t.tree;if(id(_,E.id)||(_=io(io([],_,!0),[E],!1)),t.sort===!1){var H=WE(_,E.id,A,I),W=H[1];j.destinationIndex=W,j.relativeIndex=I,t.onDrop(cH(_,E.id,A,I),j);return}t.onDrop(aH(_,E.id,A),j)}else{var j={dropTargetId:A,dropTarget:id(t.tree,A),monitor:p};t.sort===!1&&(j.destinationIndex=UE(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:id(t.tree,A),monitor:p})}:void 0,canDrag:g?function(E){return g(id(t.tree,E))}:void 0,onToggle:function(E){return i(E,t.onChangeOpen)}});return q.createElement(YE.Provider,{value:T},t.children)},pH=function(t){return q.createElement(hH,As({},t),q.createElement(iH,null,q.createElement(oH,null,t.children)))},gH=function(t){var e=q.useContext(VE);q.useEffect(function(){if(t.current){var n=t.current,r=function(w){var g=w.target;(g instanceof HTMLInputElement||g instanceof HTMLTextAreaElement)&&e.lock()},i=function(w){var g=w.target;(g instanceof HTMLInputElement||g instanceof HTMLTextAreaElement)&&e.unlock()},o=function(w){return r(w)},a=function(w){return i(w)},c=function(w){return r(w)},f=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",f),function(){p.disconnect(),n.removeEventListener("mouseover",o),n.removeEventListener("mouseout",a),n.removeEventListener("focusin",c),n.removeEventListener("focusout",f)}}},[t,e]),q.useEffect(function(){var n;(n=t.current)===null||n===void 0||n.setAttribute("draggable",e.isLock?"false":"true")},[t,e.isLock])},Fp={TREE_ITEM:Symbol()},GE=null,qE=function(t){var e=t.target;if(e instanceof HTMLElement){var n=e.closest('[role="listitem"]');t.currentTarget===n&&(GE=n)}},Vx=function(t){return qE(t)},Hx=function(t){return qE(t)},mH=function(t,e){var n=Cu();q.useEffect(function(){var c=e.current;return c==null||c.addEventListener("dragstart",Vx),c==null||c.addEventListener("touchstart",Hx,{passive:!0}),function(){c==null||c.removeEventListener("dragstart",Vx),c==null||c.removeEventListener("touchstart",Hx)}},[e]);var r=A3({type:Fp.TREE_ITEM,item:function(c){var f=As({ref:e},t);return n.onDragStart&&n.onDragStart(f,c),f},end:function(c,f){var p=c;n.onDragEnd&&n.onDragEnd(p,f)},canDrag:function(){var c=n.canDrag;return GE!==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]},vH=function(t,e,n){var r=q.useRef(0),i=q.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}},yH=function(t){var e=Cu(),n=q.useContext(Gd),r=ME({accept:io([Fp.TREE_ITEM],e.extraAcceptTypes,!0),drop:function(f,p){var w=e.rootId,g=e.onDrop,T=n.dropTargetId,E=n.index;p.isOver({shallow:!0})&&T!==void 0&&E!==void 0&&g(Ey(f)?f:null,w,E),n.hidePlaceholder()},canDrop:function(f,p){var w=e.rootId;return p.isOver({shallow:!0})?f===void 0?!1:bu(f,w,e):!1},hover:function(f,p){if(p.isOver({shallow:!0})){var w=e.rootId,g=n.dropTargetId,T=n.index,E=n.showPlaceholder,A=n.hidePlaceholder,I=iv(null,t.current,p,e);if(I===null||!bu(f,w,e)){A();return}(I.id!==g||I.index!==T)&&E(I.id,I.index)}},collect:function(f){var p=f.getItem();return{isOver:f.isOver({shallow:!0})&&f.canDrop(),dragSource:p}}}),i=r[0],o=i.isOver,a=i.dragSource,c=r[1];return[o,a,c]},bH=function(t,e){var n=Cu(),r=q.useContext(Gd),i=ME({accept:io([Fp.TREE_ITEM],n.extraAcceptTypes,!0),drop:function(p,w){var g=r.dropTargetId,T=r.index;w.isOver({shallow:!0})&&g!==void 0&&T!==void 0&&n.onDrop(Ey(p)?p:null,g,T),r.hidePlaceholder()},canDrop:function(p,w){if(w.isOver({shallow:!0})){var g=iv(t,e.current,w,n);return g===null?!1:bu(p,g.id,n)}return!1},hover:function(p,w){if(w.isOver({shallow:!0})){var g=r.dropTargetId,T=r.index,E=r.showPlaceholder,A=r.hidePlaceholder,I=iv(t,e.current,w,n);if(I===null||!bu(p,I.id,n)){A();return}(I.id!==g||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,f=i[1];return[a,c,f]},wH=function(t,e){var n=q.useMemo(function(){return e===!0?t.filter(function(g){return Hh(t,g.id)}).map(function(g){return g.id}):Array.isArray(e)?e:[]},[e]),r=q.useState(n),i=r[0],o=r[1];q.useEffect(function(){return o(n)},[n]);var a=function(g,T){var E=i.includes(g)?i.filter(function(A){return A!==g}):io(io([],i,!0),[g],!1);o(E),T&&T(E)},c=function(g){o([]),g&&g([])},f=function(g){var T=t.filter(function(E){return Hh(t,E.id)}).map(function(E){return E.id});o(T),g&&g(T)},p=function(g,T){var E=[];if(Array.isArray(g)){var A=t.filter(function(I){return g.includes(I.id)&&Hh(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(g)?i:io(io([],i,!0),[g],!1);o(E),T&&T(E)},w=function(g,T){var E=i.filter(function(A){return Array.isArray(g)?!g.includes(A):A!==g});o(E),T&&T(E)};return[i,{handleToggle:a,handleCloseAll:c,handleOpenAll:f,handleOpen:p,handleClose:w}]},xH=function(){return I3(function(t){var e=t.getItemType();return{item:t.getItem(),clientOffset:t.getClientOffset(),isDragging:t.isDragging()&&e===Fp.TREE_ITEM}})},Cu=function(){var t=q.useContext(YE);if(!t)throw new Error("useTreeContext must be used under TreeProvider");return t},SH=function(t,e){var n=Cu(),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},TH=function(t,e,n){e.current?n(e):n(t),q.useEffect(function(){e.current?n(e):n(t)},[e.current])},CH=function(t){var e=Cu(),n=q.useContext(Gd),r=q.useRef(null),i=q.useRef(null),o=e.tree.find(function(le){return le.id===t.id}),a=e.openIds,c=e.classes,f=e.enableAnimateExpand,p=a.includes(t.id),w=mH(o,r),g=w[0],T=w[1],E=w[2],A=bH(o,r),I=A[0],j=A[1],_=A[2];TH(r,i,T),bu(j,t.id,e)&&_(r),q.useEffect(function(){e.dragPreviewRender?E(W2(),{captureDraggingState:!0}):i.current&&E(r)},[E,e.dragPreviewRender]),gH(r);var H=function(){return e.onToggle(o.id)},W=e.listItemComponent,re=e.canDrag?e.canDrag(t.id):!0,Z=n.dropTargetId===t.id,de={depth:t.depth,isOpen:p,isDragging:g,isDropTarget:Z,draggable:re,hasChild:Hh(e.tree,t.id),containerRef:r,handleRef:i,onToggle:H},S="";return c!=null&&c.listItem&&(S=typeof c.listItem=="string"?c.listItem:c.listItem(o,de)),I&&(c!=null&&c.dropTarget)&&(S="".concat(S," ").concat(c.dropTarget)),g&&(c!=null&&c.draggingSource)&&(S="".concat(S," ").concat(c.draggingSource)),q.createElement(W,{ref:r,className:S,role:"listitem"},e.render(o,de),f&&de.hasChild&&q.createElement(tH,{isVisible:p},q.createElement(ov,{parentId:t.id,depth:t.depth+1})),!f&&de.hasChild&&p&&q.createElement(ov,{parentId:t.id,depth:t.depth+1}))},Ux=function(t){var e=Cu(),n=e.placeholderRender,r=e.placeholderComponent,i=e.classes,o=q.useContext(Gd),a=Pl(),c=a.getMonitor(),f=c.getItem();if(!n||!f)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:q.createElement(r,{className:(i==null?void 0:i.placeholder)||""},n(f,{depth:t.depth}))},ov=function(t){var e=Cu(),n=q.useRef(null),r=e.tree.filter(function(I){return I.parent===t.parentId}),i=r,o=typeof e.sort=="function"?e.sort:sH;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 f=yH(n),p=f[0],w=f[1],g=f[2];t.parentId===e.rootId&&bu(w,e.rootId,e)&&g(n);var T=SH(t.parentId,p),E=e.rootProps||{},A=e.listComponent;return q.createElement(A,As({ref:n,role:"list"},E,{className:T}),i.map(function(I,j){return q.createElement(q.Fragment,{key:I.id},q.createElement(Ux,{depth:t.depth,listCount:i.length,dropTargetId:t.parentId,index:j}),q.createElement(CH,{id:I.id,depth:t.depth}))}),q.createElement(Ux,{depth:t.depth,listCount:i.length,dropTargetId:t.parentId}))},EH={height:"100%",left:0,pointerEvents:"none",position:"fixed",top:0,width:"100%",zIndex:100},kH=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}},DH=function(){var t=Cu(),e=xH(),n=e.isDragging,r=e.clientOffset;return!n||!r?null:q.createElement("div",{style:EH},q.createElement("div",{style:kH(e)},t.dragPreviewRender&&t.dragPreviewRender(e)))};function PH(t,e){return q.createElement(pH,As({},t,{treeRef:e}),t.dragPreviewRender&&q.createElement(DH,null),q.createElement(ov,{parentId:t.rootId,depth:0}))}var XE=q.forwardRef(PH);const KE=q.createContext({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"}),Np=q.createContext({}),ky=q.createContext(null),jp=typeof document<"u",OH=jp?q.useLayoutEffect:q.useEffect,ZE=q.createContext({strict:!1}),Dy=t=>t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),_H="framerAppearId",JE="data-"+Dy(_H);function RH(t,e,n,r){const{visualElement:i}=q.useContext(Np),o=q.useContext(ZE),a=q.useContext(ky),c=q.useContext(KE).reducedMotion,f=q.useRef();r=r||o.renderer,!f.current&&r&&(f.current=r(t,{visualState:e,parent:i,props:n,presenceContext:a,blockInitialAnimation:a?a.initial===!1:!1,reducedMotionConfig:c}));const p=f.current;q.useInsertionEffect(()=>{p&&p.update(n,a)});const w=q.useRef(!!(n[JE]&&!window.HandoffComplete));return OH(()=>{p&&(p.render(),w.current&&p.animationState&&p.animationState.animateChanges())}),q.useEffect(()=>{p&&(p.updateFeatures(),!w.current&&p.animationState&&p.animationState.animateChanges(),w.current&&(w.current=!1,window.HandoffComplete=!0))}),p}function yf(t){return t&&typeof t=="object"&&Object.prototype.hasOwnProperty.call(t,"current")}function AH(t,e,n){return q.useCallback(r=>{r&&t.mount&&t.mount(r),e&&(r?e.mount(r):e.unmount()),n&&(typeof n=="function"?n(r):yf(n)&&(n.current=r))},[e])}function Ld(t){return typeof t=="string"||Array.isArray(t)}function Bp(t){return t!==null&&typeof t=="object"&&typeof t.start=="function"}const Py=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Oy=["initial",...Py];function $p(t){return Bp(t.animate)||Oy.some(e=>Ld(t[e]))}function QE(t){return!!($p(t)||t.variants)}function IH(t,e){if($p(t)){const{initial:n,animate:r}=t;return{initial:n===!1||Ld(n)?n:void 0,animate:Ld(r)?r:void 0}}return t.inherit!==!1?e:{}}function MH(t){const{initial:e,animate:n}=IH(t,q.useContext(Np));return q.useMemo(()=>({initial:e,animate:n}),[Wx(e),Wx(n)])}function Wx(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"]},Fd={};for(const t in zx)Fd[t]={isEnabled:e=>zx[t].some(n=>!!e[n])};function LH(t){for(const e in t)Fd[e]={...Fd[e],...t[e]}}const ek=q.createContext({}),tk=q.createContext({}),FH=Symbol.for("motionComponentSymbol");function NH({preloadedFeatures:t,createVisualElement:e,useRender:n,useVisualState:r,Component:i}){t&&LH(t);function o(c,f){let p;const w={...q.useContext(KE),...c,layoutId:jH(c)},{isStatic:g}=w,T=MH(c),E=r(c,g);if(!g&&jp){T.visualElement=RH(i,E,w,e);const A=q.useContext(tk),I=q.useContext(ZE).strict;T.visualElement&&(p=T.visualElement.loadFeatures(w,I,t,A))}return kn.createElement(Np.Provider,{value:T},p&&T.visualElement?kn.createElement(p,{visualElement:T.visualElement,...w}):null,n(i,c,AH(E,T.visualElement,f),E,g,T.visualElement))}const a=q.forwardRef(o);return a[FH]=i,a}function jH({layoutId:t}){const e=q.useContext(ek).id;return e&&t!==void 0?e+"-"+t:t}function BH(t){function e(r,i={}){return NH(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 $H=["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 _y(t){return typeof t!="string"||t.includes("-")?!1:!!($H.indexOf(t)>-1||/[A-Z]/.test(t))}const lp={};function VH(t){Object.assign(lp,t)}const qd=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],_c=new Set(qd);function nk(t,{layout:e,layoutId:n}){return _c.has(t)||t.startsWith("origin")||(e||n!==void 0)&&(!!lp[t]||t==="opacity")}const Ro=t=>!!(t&&t.getVelocity),HH={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},UH=qd.length;function WH(t,{enableHardwareAcceleration:e=!0,allowTransformNone:n=!0},r,i){let o="";for(let a=0;a<UH;a++){const c=qd[a];if(t[c]!==void 0){const f=HH[c]||c;o+=`${f}(${t[c]}) `}}return e&&!t.z&&(o+="translateZ(0)"),o=o.trim(),i?o=i(t,r?"":o):n&&r&&(o="none"),o}const rk=t=>e=>typeof e=="string"&&e.startsWith(t),ik=rk("--"),sv=rk("var(--"),zH=/var\s*\(\s*--[\w-]+(\s*,\s*(?:(?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)+)?\s*\)/g,YH=(t,e)=>e&&typeof t=="number"?e.transform(t):t,wu=(t,e,n)=>Math.min(Math.max(n,t),e),Rc={test:t=>typeof t=="number",parse:parseFloat,transform:t=>t},xd={...Rc,transform:t=>wu(0,1,t)},Ch={...Rc,default:1},Sd=t=>Math.round(t*1e5)/1e5,Vp=/(-)?([\d]*\.?[\d])+/g,ok=/(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi,GH=/^(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function Xd(t){return typeof t=="string"}const Kd=t=>({test:e=>Xd(e)&&e.endsWith(t)&&e.split(" ").length===1,parse:parseFloat,transform:e=>`${e}${t}`}),su=Kd("deg"),Ba=Kd("%"),Rt=Kd("px"),qH=Kd("vh"),XH=Kd("vw"),Yx={...Ba,parse:t=>Ba.parse(t)/100,transform:t=>Ba.transform(t*100)},Gx={...Rc,transform:Math.round},sk={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:su,rotateX:su,rotateY:su,rotateZ:su,scale:Ch,scaleX:Ch,scaleY:Ch,scaleZ:Ch,skew:su,skewX:su,skewY:su,distance:Rt,translateX:Rt,translateY:Rt,translateZ:Rt,x:Rt,y:Rt,z:Rt,perspective:Rt,transformPerspective:Rt,opacity:xd,originX:Yx,originY:Yx,originZ:Rt,zIndex:Gx,fillOpacity:xd,strokeOpacity:xd,numOctaves:Gx};function Ry(t,e,n,r){const{style:i,vars:o,transform:a,transformOrigin:c}=t;let f=!1,p=!1,w=!0;for(const g in e){const T=e[g];if(ik(g)){o[g]=T;continue}const E=sk[g],A=YH(T,E);if(_c.has(g)){if(f=!0,a[g]=A,!w)continue;T!==(E.default||0)&&(w=!1)}else g.startsWith("origin")?(p=!0,c[g]=A):i[g]=A}if(e.transform||(f||r?i.transform=WH(t.transform,n,w,r):i.transform&&(i.transform="none")),p){const{originX:g="50%",originY:T="50%",originZ:E=0}=c;i.transformOrigin=`${g} ${T} ${E}`}}const Ay=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function ak(t,e,n){for(const r in e)!Ro(e[r])&&!nk(r,n)&&(t[r]=e[r])}function KH({transformTemplate:t},e,n){return q.useMemo(()=>{const r=Ay();return Ry(r,e,{enableHardwareAcceleration:!n},t),Object.assign({},r.vars,r.style)},[e])}function ZH(t,e,n){const r=t.style||{},i={};return ak(i,r,t),Object.assign(i,KH(t,e,n)),t.transformValues?t.transformValues(i):i}function JH(t,e,n){const r={},i=ZH(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 QH=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 up(t){return t.startsWith("while")||t.startsWith("drag")&&t!=="draggable"||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||t.startsWith("onLayout")||QH.has(t)}let lk=t=>!up(t);function eU(t){t&&(lk=e=>e.startsWith("on")?!up(e):t(e))}try{eU(require("@emotion/is-prop-valid").default)}catch{}function tU(t,e,n){const r={};for(const i in t)i==="values"&&typeof t.values=="object"||(lk(i)||n===!0&&up(i)||!e&&!up(i)||t.draggable&&i.startsWith("onDrag"))&&(r[i]=t[i]);return r}function qx(t,e,n){return typeof t=="string"?t:Rt.transform(e+n*t)}function nU(t,e,n){const r=qx(e,t.x,t.width),i=qx(n,t.y,t.height);return`${r} ${i}`}const rU={offset:"stroke-dashoffset",array:"stroke-dasharray"},iU={offset:"strokeDashoffset",array:"strokeDasharray"};function oU(t,e,n=1,r=0,i=!0){t.pathLength=1;const o=i?rU:iU;t[o.offset]=Rt.transform(-r);const a=Rt.transform(e),c=Rt.transform(n);t[o.array]=`${a} ${c}`}function Iy(t,{attrX:e,attrY:n,attrScale:r,originX:i,originY:o,pathLength:a,pathSpacing:c=1,pathOffset:f=0,...p},w,g,T){if(Ry(t,p,w,T),g){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=nU(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&&oU(E,a,c,f,!1)}const uk=()=>({...Ay(),attrs:{}}),My=t=>typeof t=="string"&&t.toLowerCase()==="svg";function sU(t,e,n,r){const i=q.useMemo(()=>{const o=uk();return Iy(o,e,{enableHardwareAcceleration:!1},My(r),t.transformTemplate),{...o.attrs,style:{...o.style}}},[e]);if(t.style){const o={};ak(o,t.style,t),i.style={...o,...i.style}}return i}function aU(t=!1){return(n,r,i,{latestValues:o},a)=>{const f=(_y(n)?sU:JH)(r,o,a,n),w={...tU(r,typeof n=="string",t),...f,ref:i},{children:g}=r,T=q.useMemo(()=>Ro(g)?g.get():g,[g]);return q.createElement(n,{...w,children:T})}}function ck(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 fk=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 dk(t,e,n,r){ck(t,e,void 0,r);for(const i in e.attrs)t.setAttribute(fk.has(i)?i:Dy(i),e.attrs[i])}function Ly(t,e){const{style:n}=t,r={};for(const i in n)(Ro(n[i])||e.style&&Ro(e.style[i])||nk(i,t))&&(r[i]=n[i]);return r}function hk(t,e){const n=Ly(t,e);for(const r in t)if(Ro(t[r])||Ro(e[r])){const i=qd.indexOf(r)!==-1?"attr"+r.charAt(0).toUpperCase()+r.substring(1):r;n[i]=t[r]}return n}function Fy(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 lU(t){const e=q.useRef(null);return e.current===null&&(e.current=t()),e.current}const cp=t=>Array.isArray(t),uU=t=>!!(t&&typeof t=="object"&&t.mix&&t.toValue),cU=t=>cp(t)?t[t.length-1]||0:t;function Uh(t){const e=Ro(t)?t.get():t;return uU(e)?e.toValue():e}function fU({scrapeMotionValuesFromProps:t,createRenderState:e,onMount:n},r,i,o){const a={latestValues:dU(r,i,o,t),renderState:e()};return n&&(a.mount=c=>n(r,c,a)),a}const pk=t=>(e,n)=>{const r=q.useContext(Np),i=q.useContext(ky),o=()=>fU(t,e,r,i);return n?o():lU(o)};function dU(t,e,n,r){const i={},o=r(t,{});for(const T in o)i[T]=Uh(o[T]);let{initial:a,animate:c}=t;const f=$p(t),p=QE(t);e&&p&&!f&&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 g=w?c:a;return g&&typeof g!="boolean"&&!Bp(g)&&(Array.isArray(g)?g:[g]).forEach(E=>{const A=Fy(t,E);if(!A)return;const{transitionEnd:I,transition:j,..._}=A;for(const H in _){let W=_[H];if(Array.isArray(W)){const re=w?W.length-1:0;W=W[re]}W!==null&&(i[H]=W)}for(const H in I)i[H]=I[H]}),i}const sr=t=>t;class Xx{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 hU(t){let e=new Xx,n=new Xx,r=0,i=!1,o=!1;const a=new WeakSet,c={schedule:(f,p=!1,w=!1)=>{const g=w&&i,T=g?e:n;return p&&a.add(f),T.add(f)&&g&&i&&(r=e.order.length),f},cancel:f=>{n.remove(f),a.delete(f)},process:f=>{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(f),a.has(w)&&(c.schedule(w),t())}i=!1,o&&(o=!1,c.process(f))}};return c}const Eh=["prepare","read","update","preRender","render","postRender"],pU=40;function gU(t,e){let n=!1,r=!0;const i={delta:0,timestamp:0,isProcessing:!1},o=Eh.reduce((g,T)=>(g[T]=hU(()=>n=!0),g),{}),a=g=>o[g].process(i),c=()=>{const g=performance.now();n=!1,i.delta=r?1e3/60:Math.max(Math.min(g-i.timestamp,pU),1),i.timestamp=g,i.isProcessing=!0,Eh.forEach(a),i.isProcessing=!1,n&&e&&(r=!1,t(c))},f=()=>{n=!0,r=!0,i.isProcessing||t(c)};return{schedule:Eh.reduce((g,T)=>{const E=o[T];return g[T]=(A,I=!1,j=!1)=>(n||f(),E.schedule(A,I,j)),g},{}),cancel:g=>Eh.forEach(T=>o[T].cancel(g)),state:i,steps:o}}const{schedule:Ln,cancel:kl,state:Fi,steps:qg}=gU(typeof requestAnimationFrame<"u"?requestAnimationFrame:sr,!0),mU={useVisualState:pk({scrapeMotionValuesFromProps:hk,createRenderState:uk,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(()=>{Iy(n,r,{enableHardwareAcceleration:!1},My(e.tagName),t.transformTemplate),dk(e,n)})}})},vU={useVisualState:pk({scrapeMotionValuesFromProps:Ly,createRenderState:Ay})};function yU(t,{forwardMotionProps:e=!1},n,r){return{..._y(t)?mU:vU,preloadedFeatures:n,useRender:aU(e),createVisualElement:r,Component:t}}function bl(t,e,n,r={passive:!0}){return t.addEventListener(e,n,r),()=>t.removeEventListener(e,n)}const gk=t=>t.pointerType==="mouse"?typeof t.button!="number"||t.button<=0:t.isPrimary!==!1;function Hp(t,e="page"){return{point:{x:t[e+"X"],y:t[e+"Y"]}}}const bU=t=>e=>gk(e)&&t(e,Hp(e));function Sl(t,e,n,r){return bl(t,e,bU(n),r)}const wU=(t,e)=>n=>e(t(n)),cu=(...t)=>t.reduce(wU);function mk(t){let e=null;return()=>{const n=()=>{e=null};return e===null?(e=t,n):!1}}const Kx=mk("dragHorizontal"),Zx=mk("dragVertical");function vk(t){let e=!1;if(t==="y")e=Zx();else if(t==="x")e=Kx();else{const n=Kx(),r=Zx();n&&r?e=()=>{n(),r()}:(n&&n(),r&&r())}return e}function yk(){const t=vk(!0);return t?(t(),!1):!0}class Eu{constructor(e){this.isMounted=!1,this.node=e}update(){}}function Jx(t,e){const n="pointer"+(e?"enter":"leave"),r="onHover"+(e?"Start":"End"),i=(o,a)=>{if(o.pointerType==="touch"||yk())return;const c=t.getProps();t.animationState&&c.whileHover&&t.animationState.setActive("whileHover",e),c[r]&&Ln.update(()=>c[r](o,a))};return Sl(t.current,n,i,{passive:!t.getProps()[r]})}class xU extends Eu{mount(){this.unmount=cu(Jx(this.node,!0),Jx(this.node,!1))}unmount(){}}class SU extends Eu{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=cu(bl(this.node.current,"focus",()=>this.onFocus()),bl(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}const bk=(t,e)=>e?t===e?!0:bk(t,e.parentElement):!1;function Xg(t,e){if(!e)return;const n=new PointerEvent("pointer"+t);e(n,Hp(n))}class TU extends Eu{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=Sl(window,"pointerup",(c,f)=>{if(!this.checkPressEnd())return;const{onTap:p,onTapCancel:w,globalTapTarget:g}=this.node.getProps();Ln.update(()=>{!g&&!bk(this.node.current,c.target)?w&&w(c,f):p&&p(c,f)})},{passive:!(r.onTap||r.onPointerUp)}),a=Sl(window,"pointercancel",(c,f)=>this.cancelPress(c,f),{passive:!(r.onTapCancel||r.onPointerCancel)});this.removeEndListeners=cu(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()||Xg("up",(f,p)=>{const{onTap:w}=this.node.getProps();w&&Ln.update(()=>w(f,p))})};this.removeEndListeners(),this.removeEndListeners=bl(this.node.current,"keyup",a),Xg("down",(c,f)=>{this.startPress(c,f)})},n=bl(this.node.current,"keydown",e),r=()=>{this.isPressing&&Xg("cancel",(o,a)=>this.cancelPress(o,a))},i=bl(this.node.current,"blur",r);this.removeAccessibleListeners=cu(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),!yk()}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=Sl(e.globalTapTarget?window:this.node.current,"pointerdown",this.startPointerPress,{passive:!(e.onTapStart||e.onPointerStart)}),r=bl(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=cu(n,r)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}const av=new WeakMap,Kg=new WeakMap,CU=t=>{const e=av.get(t.target);e&&e(t)},EU=t=>{t.forEach(CU)};function kU({root:t,...e}){const n=t||document;Kg.has(n)||Kg.set(n,{});const r=Kg.get(n),i=JSON.stringify(e);return r[i]||(r[i]=new IntersectionObserver(EU,{root:t,...e})),r[i]}function DU(t,e,n){const r=kU(e);return av.set(t,n),r.observe(t),()=>{av.delete(t),r.unobserve(t)}}const PU={some:0,all:1};class OU extends Eu{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:PU[i]},c=f=>{const{isIntersecting:p}=f;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:g}=this.node.getProps(),T=p?w:g;T&&T(f)};return DU(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 RU={inView:{Feature:OU},tap:{Feature:TU},focus:{Feature:SU},hover:{Feature:xU}};function wk(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 AU(t){const e={};return t.values.forEach((n,r)=>e[r]=n.get()),e}function IU(t){const e={};return t.values.forEach((n,r)=>e[r]=n.getVelocity()),e}function Up(t,e,n){const r=t.getProps();return Fy(r,e,n!==void 0?n:r.custom,AU(t),IU(t))}let Zd=sr,sa=sr;process.env.NODE_ENV!=="production"&&(Zd=(t,e)=>{!t&&typeof console<"u"&&console.warn(e)},sa=(t,e)=>{if(!t)throw new Error(e)});const fu=t=>t*1e3,Tl=t=>t/1e3,MU={current:!1},xk=t=>Array.isArray(t)&&typeof t[0]=="number";function Sk(t){return!!(!t||typeof t=="string"&&Tk[t]||xk(t)||Array.isArray(t)&&t.every(Sk))}const dd=([t,e,n,r])=>`cubic-bezier(${t}, ${e}, ${n}, ${r})`,Tk={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:dd([0,.65,.55,1]),circOut:dd([.55,0,1,.45]),backIn:dd([.31,.01,.66,-.59]),backOut:dd([.33,1.53,.69,.99])};function Ck(t){if(t)return xk(t)?dd(t):Array.isArray(t)?t.map(Ck):Tk[t]}function LU(t,e,n,{delay:r=0,duration:i,repeat:o=0,repeatType:a="loop",ease:c,times:f}={}){const p={[e]:n};f&&(p.offset=f);const w=Ck(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 FU(t,{repeat:e,repeatType:n="loop"}){const r=e&&n!=="loop"&&e%2===1?0:t.length-1;return t[r]}const Ek=(t,e,n)=>(((1-3*n+3*e)*t+(3*n-6*e))*t+3*e)*t,NU=1e-7,jU=12;function BU(t,e,n,r,i){let o,a,c=0;do a=e+(n-e)/2,o=Ek(a,r,i)-t,o>0?n=a:e=a;while(Math.abs(o)>NU&&++c<jU);return a}function Jd(t,e,n,r){if(t===e&&n===r)return sr;const i=o=>BU(o,0,1,t,n);return o=>o===0||o===1?o:Ek(i(o),e,r)}const $U=Jd(.42,0,1,1),VU=Jd(0,0,.58,1),kk=Jd(.42,0,.58,1),HU=t=>Array.isArray(t)&&typeof t[0]!="number",Dk=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,Pk=t=>e=>1-t(1-e),Ny=t=>1-Math.sin(Math.acos(t)),Ok=Pk(Ny),UU=Dk(Ny),_k=Jd(.33,1.53,.69,.99),jy=Pk(_k),WU=Dk(jy),zU=t=>(t*=2)<1?.5*jy(t):.5*(2-Math.pow(2,-10*(t-1))),Qx={linear:sr,easeIn:$U,easeInOut:kk,easeOut:VU,circIn:Ny,circInOut:UU,circOut:Ok,backIn:jy,backInOut:WU,backOut:_k,anticipate:zU},eS=t=>{if(Array.isArray(t)){sa(t.length===4,"Cubic bezier arrays must contain four numerical values.");const[e,n,r,i]=t;return Jd(e,n,r,i)}else if(typeof t=="string")return sa(Qx[t]!==void 0,`Invalid easing type '${t}'`),Qx[t];return t},By=(t,e)=>n=>!!(Xd(n)&&GH.test(n)&&n.startsWith(t)||e&&Object.prototype.hasOwnProperty.call(n,e)),Rk=(t,e,n)=>r=>{if(!Xd(r))return r;const[i,o,a,c]=r.match(Vp);return{[t]:parseFloat(i),[e]:parseFloat(o),[n]:parseFloat(a),alpha:c!==void 0?parseFloat(c):1}},YU=t=>wu(0,255,t),Zg={...Rc,transform:t=>Math.round(YU(t))},mc={test:By("rgb","red"),parse:Rk("red","green","blue"),transform:({red:t,green:e,blue:n,alpha:r=1})=>"rgba("+Zg.transform(t)+", "+Zg.transform(e)+", "+Zg.transform(n)+", "+Sd(xd.transform(r))+")"};function GU(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 lv={test:By("#"),parse:GU,transform:mc.transform},bf={test:By("hsl","hue"),parse:Rk("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:n,alpha:r=1})=>"hsla("+Math.round(t)+", "+Ba.transform(Sd(e))+", "+Ba.transform(Sd(n))+", "+Sd(xd.transform(r))+")"},ro={test:t=>mc.test(t)||lv.test(t)||bf.test(t),parse:t=>mc.test(t)?mc.parse(t):bf.test(t)?bf.parse(t):lv.parse(t),transform:t=>Xd(t)?t:t.hasOwnProperty("red")?mc.transform(t):bf.transform(t)},Zn=(t,e,n)=>-n*t+n*e+t;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 qU({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,f=2*n-c;i=Jg(f,c,t+1/3),o=Jg(f,c,t),a=Jg(f,c,t-1/3)}return{red:Math.round(i*255),green:Math.round(o*255),blue:Math.round(a*255),alpha:r}}const Qg=(t,e,n)=>{const r=t*t;return Math.sqrt(Math.max(0,n*(e*e-r)+r))},XU=[lv,mc,bf],KU=t=>XU.find(e=>e.test(t));function tS(t){const e=KU(t);sa(!!e,`'${t}' is not an animatable color. Use the equivalent color code instead.`);let n=e.parse(t);return e===bf&&(n=qU(n)),n}const Ak=(t,e)=>{const n=tS(t),r=tS(e),i={...n};return o=>(i.red=Qg(n.red,r.red,o),i.green=Qg(n.green,r.green,o),i.blue=Qg(n.blue,r.blue,o),i.alpha=Zn(n.alpha,r.alpha,o),mc.transform(i))};function ZU(t){var e,n;return isNaN(t)&&Xd(t)&&(((e=t.match(Vp))===null||e===void 0?void 0:e.length)||0)+(((n=t.match(ok))===null||n===void 0?void 0:n.length)||0)>0}const Ik={regex:zH,countKey:"Vars",token:"${v}",parse:sr},Mk={regex:ok,countKey:"Colors",token:"${c}",parse:ro.parse},Lk={regex:Vp,countKey:"Numbers",token:"${n}",parse:Rc.parse};function em(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 fp(t){const e=t.toString(),n={value:e,tokenised:e,values:[],numVars:0,numColors:0,numNumbers:0};return n.value.includes("var(--")&&em(n,Ik),em(n,Mk),em(n,Lk),n}function Fk(t){return fp(t).values}function Nk(t){const{values:e,numColors:n,numVars:r,tokenised:i}=fp(t),o=e.length;return a=>{let c=i;for(let f=0;f<o;f++)f<r?c=c.replace(Ik.token,a[f]):f<r+n?c=c.replace(Mk.token,ro.transform(a[f])):c=c.replace(Lk.token,Sd(a[f]));return c}}const JU=t=>typeof t=="number"?0:t;function QU(t){const e=Fk(t);return Nk(t)(e.map(JU))}const xu={test:ZU,parse:Fk,createTransformer:Nk,getAnimatableNone:QU},jk=(t,e)=>n=>`${n>0?e:t}`;function Bk(t,e){return typeof t=="number"?n=>Zn(t,e,n):ro.test(t)?Ak(t,e):t.startsWith("var(")?jk(t,e):Vk(t,e)}const $k=(t,e)=>{const n=[...t],r=n.length,i=t.map((o,a)=>Bk(o,e[a]));return o=>{for(let a=0;a<r;a++)n[a]=i[a](o);return n}},eW=(t,e)=>{const n={...t,...e},r={};for(const i in n)t[i]!==void 0&&e[i]!==void 0&&(r[i]=Bk(t[i],e[i]));return i=>{for(const o in r)n[o]=r[o](i);return n}},Vk=(t,e)=>{const n=xu.createTransformer(e),r=fp(t),i=fp(e);return r.numVars===i.numVars&&r.numColors===i.numColors&&r.numNumbers>=i.numNumbers?cu($k(r.values,i.values),n):(Zd(!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.`),jk(t,e))},Nd=(t,e,n)=>{const r=e-t;return r===0?1:(n-t)/r},nS=(t,e)=>n=>Zn(t,e,n);function tW(t){return typeof t=="number"?nS:typeof t=="string"?ro.test(t)?Ak:Vk:Array.isArray(t)?$k:typeof t=="object"?eW:nS}function nW(t,e,n){const r=[],i=n||tW(t[0]),o=t.length-1;for(let a=0;a<o;a++){let c=i(t[a],t[a+1]);if(e){const f=Array.isArray(e)?e[a]||sr:e;c=cu(f,c)}r.push(c)}return r}function Hk(t,e,{clamp:n=!0,ease:r,mixer:i}={}){const o=t.length;if(sa(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=nW(e,r,i),c=a.length,f=p=>{let w=0;if(c>1)for(;w<t.length-2&&!(p<t[w+1]);w++);const g=Nd(t[w],t[w+1],p);return a[w](g)};return n?p=>f(wu(t[0],t[o-1],p)):f}function rW(t,e){const n=t[t.length-1];for(let r=1;r<=e;r++){const i=Nd(0,e,r);t.push(Zn(n,1,i))}}function iW(t){const e=[0];return rW(e,t.length-1),e}function oW(t,e){return t.map(n=>n*e)}function sW(t,e){return t.map(()=>e||kk).splice(0,t.length-1)}function dp({duration:t=300,keyframes:e,times:n,ease:r="easeInOut"}){const i=HU(r)?r.map(eS):eS(r),o={done:!1,value:e[0]},a=oW(n&&n.length===e.length?n:iW(e),t),c=Hk(a,e,{ease:Array.isArray(i)?i:sW(e,i)});return{calculatedDuration:t,next:f=>(o.value=c(f),o.done=f>=t,o)}}function Uk(t,e){return e?t*(1e3/e):0}const aW=5;function Wk(t,e,n){const r=Math.max(e-aW,0);return Uk(n-t(r),e-r)}const rS=.001,lW=.01,iS=10,uW=.05,cW=1;function fW({duration:t=800,bounce:e=.25,velocity:n=0,mass:r=1}){let i,o;Zd(t<=fu(iS),"Spring duration must be 10 seconds or less");let a=1-e;a=wu(uW,cW,a),t=wu(lW,iS,Tl(t)),a<1?(i=p=>{const w=p*a,g=w*t,T=w-n,E=uv(p,a),A=Math.exp(-g);return rS-T/E*A},o=p=>{const g=p*a*t,T=g*n+n,E=Math.pow(a,2)*Math.pow(p,2)*t,A=Math.exp(-g),I=uv(Math.pow(p,2),a);return(-i(p)+rS>0?-1:1)*((T-E)*A)/I}):(i=p=>{const w=Math.exp(-p*t),g=(p-n)*t+1;return-.001+w*g},o=p=>{const w=Math.exp(-p*t),g=(n-p)*(t*t);return w*g});const c=5/t,f=hW(i,o,c);if(t=fu(t),isNaN(f))return{stiffness:100,damping:10,duration:t};{const p=Math.pow(f,2)*r;return{stiffness:p,damping:a*2*Math.sqrt(r*p),duration:t}}}const dW=12;function hW(t,e,n){let r=n;for(let i=1;i<dW;i++)r=r-t(r)/e(r);return r}function uv(t,e){return t*Math.sqrt(1-e*e)}const pW=["duration","bounce"],gW=["stiffness","damping","mass"];function oS(t,e){return e.some(n=>t[n]!==void 0)}function mW(t){let e={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...t};if(!oS(t,gW)&&oS(t,pW)){const n=fW(t);e={...e,...n,mass:1},e.isResolvedFromDuration=!0}return e}function zk({keyframes:t,restDelta:e,restSpeed:n,...r}){const i=t[0],o=t[t.length-1],a={done:!1,value:i},{stiffness:c,damping:f,mass:p,duration:w,velocity:g,isResolvedFromDuration:T}=mW({...r,velocity:-Tl(r.velocity||0)}),E=g||0,A=f/(2*Math.sqrt(c*p)),I=o-i,j=Tl(Math.sqrt(c/p)),_=Math.abs(I)<5;n||(n=_?.01:2),e||(e=_?.005:.5);let H;if(A<1){const W=uv(j,A);H=re=>{const Z=Math.exp(-A*j*re);return o-Z*((E+A*j*I)/W*Math.sin(W*re)+I*Math.cos(W*re))}}else if(A===1)H=W=>o-Math.exp(-j*W)*(I+(E+j*I)*W);else{const W=j*Math.sqrt(A*A-1);H=re=>{const Z=Math.exp(-A*j*re),de=Math.min(W*re,300);return o-Z*((E+A*j*I)*Math.sinh(de)+W*I*Math.cosh(de))/W}}return{calculatedDuration:T&&w||null,next:W=>{const re=H(W);if(T)a.done=W>=w;else{let Z=E;W!==0&&(A<1?Z=Wk(H,W,re):Z=0);const de=Math.abs(Z)<=n,S=Math.abs(o-re)<=e;a.done=de&&S}return a.value=a.done?o:re,a}}}function sS({keyframes:t,velocity:e=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:o=500,modifyTarget:a,min:c,max:f,restDelta:p=.5,restSpeed:w}){const g=t[0],T={done:!1,value:g},E=le=>c!==void 0&&le<c||f!==void 0&&le>f,A=le=>c===void 0?f:f===void 0||Math.abs(c-le)<Math.abs(f-le)?c:f;let I=n*e;const j=g+I,_=a===void 0?j:a(j);_!==j&&(I=_-g);const H=le=>-I*Math.exp(-le/r),W=le=>_+H(le),re=le=>{const ue=H(le),ze=W(le);T.done=Math.abs(ue)<=p,T.value=T.done?_:ze};let Z,de;const S=le=>{E(T.value)&&(Z=le,de=zk({keyframes:[T.value,A(T.value)],velocity:Wk(W,le,T.value),damping:i,stiffness:o,restDelta:p,restSpeed:w}))};return S(0),{calculatedDuration:null,next:le=>{let ue=!1;return!de&&Z===void 0&&(ue=!0,re(le),S(le)),Z!==void 0&&le>Z?de.next(le-Z):(!ue&&re(le),T)}}}const vW=t=>{const e=({timestamp:n})=>t(n);return{start:()=>Ln.update(e,!0),stop:()=>kl(e),now:()=>Fi.isProcessing?Fi.timestamp:performance.now()}},aS=2e4;function lS(t){let e=0;const n=50;let r=t.next(e);for(;!r.done&&e<aS;)e+=n,r=t.next(e);return e>=aS?1/0:e}const yW={decay:sS,inertia:sS,tween:dp,keyframes:dp,spring:zk};function hp({autoplay:t=!0,delay:e=0,driver:n=vW,keyframes:r,type:i="keyframes",repeat:o=0,repeatDelay:a=0,repeatType:c="loop",onPlay:f,onStop:p,onComplete:w,onUpdate:g,...T}){let E=1,A=!1,I,j;const _=()=>{j=new Promise(Ee=>{I=Ee})};_();let H;const W=yW[i]||dp;let re;W!==dp&&typeof r[0]!="number"&&(process.env.NODE_ENV!=="production"&&sa(r.length===2,`Only two keyframes currently supported with spring and inertia animations. Trying to animate ${r}`),re=Hk([0,100],r,{clamp:!1}),r=[0,100]);const Z=W({...T,keyframes:r});let de;c==="mirror"&&(de=W({...T,keyframes:[...r].reverse(),velocity:-(T.velocity||0)}));let S="idle",le=null,ue=null,ze=null;Z.calculatedDuration===null&&o&&(Z.calculatedDuration=lS(Z));const{calculatedDuration:Me}=Z;let Fe=1/0,Ve=1/0;Me!==null&&(Fe=Me+a,Ve=Fe*(o+1)-a);let Ue=0;const he=Ee=>{if(ue===null)return;E>0&&(ue=Math.min(ue,Ee)),E<0&&(ue=Math.min(Ee-Ve/E,ue)),le!==null?Ue=le:Ue=Math.round(Ee-ue)*E;const Ye=Ue-e*(E>=0?1:-1),We=E>=0?Ye<0:Ye>Ve;Ue=Math.max(Ye,0),S==="finished"&&le===null&&(Ue=Ve);let Je=Ue,Ze=Z;if(o){const gt=Math.min(Ue,Ve)/Fe;let ct=Math.floor(gt),yt=gt%1;!yt&&gt>=1&&(yt=1),yt===1&&ct--,ct=Math.min(ct,o+1),!!(ct%2)&&(c==="reverse"?(yt=1-yt,a&&(yt-=a/Fe)):c==="mirror"&&(Ze=de)),Je=wu(0,1,yt)*Fe}const Qe=We?{done:!1,value:r[0]}:Ze.next(Je);re&&(Qe.value=re(Qe.value));let{done:it}=Qe;!We&&Me!==null&&(it=E>=0?Ue>=Ve:Ue<=0);const ht=le===null&&(S==="finished"||S==="running"&&it);return g&&g(Qe.value),ht&&Ne(),Qe},ke=()=>{H&&H.stop(),H=void 0},Oe=()=>{S="idle",ke(),I(),_(),ue=ze=null},Ne=()=>{S="finished",w&&w(),ke(),I()},tt=()=>{if(A)return;H||(H=n(he));const Ee=H.now();f&&f(),le!==null?ue=Ee-le:(!ue||S==="finished")&&(ue=Ee),S==="finished"&&_(),ze=ue,le=null,S="running",H.start()};t&&tt();const me={then(Ee,Ye){return j.then(Ee,Ye)},get time(){return Tl(Ue)},set time(Ee){Ee=fu(Ee),Ue=Ee,le!==null||!H||E===0?le=Ee:ue=H.now()-Ee/E},get duration(){const Ee=Z.calculatedDuration===null?lS(Z):Z.calculatedDuration;return Tl(Ee)},get speed(){return E},set speed(Ee){Ee===E||!H||(E=Ee,me.time=Tl(Ue))},get state(){return S},play:tt,pause:()=>{S="paused",le=Ue},stop:()=>{A=!0,S!=="idle"&&(S="idle",p&&p(),Oe())},cancel:()=>{ze!==null&&he(ze),Oe()},complete:()=>{S="finished"},sample:Ee=>(ue=0,he(Ee))};return me}function bW(t){let e;return()=>(e===void 0&&(e=t()),e)}const wW=bW(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),xW=new Set(["opacity","clipPath","filter","transform","backgroundColor"]),kh=10,SW=2e4,TW=(t,e)=>e.type==="spring"||t==="backgroundColor"||!Sk(e.ease);function CW(t,e,{onUpdate:n,onComplete:r,...i}){if(!(wW()&&xW.has(e)&&!i.repeatDelay&&i.repeatType!=="mirror"&&i.damping!==0&&i.type!=="inertia"))return!1;let a=!1,c,f,p=!1;const w=()=>{f=new Promise(W=>{c=W})};w();let{keyframes:g,duration:T=300,ease:E,times:A}=i;if(TW(e,i)){const W=hp({...i,repeat:0,delay:0});let re={done:!1,value:g[0]};const Z=[];let de=0;for(;!re.done&&de<SW;)re=W.sample(de),Z.push(re.value),de+=kh;A=void 0,g=Z,T=de-kh,E="linear"}const I=LU(t.owner.current,e,g,{...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(FU(g,i)),r&&r(),_())},{then(W,re){return f.then(W,re)},attachTimeline(W){return I.timeline=W,I.onfinish=null,sr},get time(){return Tl(I.currentTime||0)},set time(W){I.currentTime=fu(W)},get speed(){return I.playbackRate},set speed(W){I.playbackRate=W},get duration(){return Tl(T)},play:()=>{a||(I.play(),kl(j))},pause:()=>I.pause(),stop:()=>{if(a=!0,I.playState==="idle")return;const{currentTime:W}=I;if(W){const re=hp({...i,autoplay:!1});t.setWithVelocity(re.sample(W-kh).value,re.sample(W).value,kh)}_()},complete:()=>{p||I.finish()},cancel:_}}function EW({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?hp({keyframes:[0,1],duration:0,delay:e,onComplete:i}):i()}const kW={type:"spring",stiffness:500,damping:25,restSpeed:10},DW=t=>({type:"spring",stiffness:550,damping:t===0?2*Math.sqrt(550):30,restSpeed:10}),PW={type:"keyframes",duration:.8},OW={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},_W=(t,{keyframes:e})=>e.length>2?PW:_c.has(t)?t.startsWith("scale")?DW(e[1]):kW:OW,cv=(t,e)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(xu.test(e)||e==="0")&&!e.startsWith("url(")),RW=new Set(["brightness","contrast","saturate","opacity"]);function AW(t){const[e,n]=t.slice(0,-1).split("(");if(e==="drop-shadow")return t;const[r]=n.match(Vp)||[];if(!r)return t;const i=n.replace(r,"");let o=RW.has(e)?1:0;return r!==n&&(o*=100),e+"("+o+i+")"}const IW=/([a-z-]*)\(.*?\)/g,fv={...xu,getAnimatableNone:t=>{const e=t.match(IW);return e?e.map(AW).join(" "):t}},MW={...sk,color:ro,backgroundColor:ro,outlineColor:ro,fill:ro,stroke:ro,borderColor:ro,borderTopColor:ro,borderRightColor:ro,borderBottomColor:ro,borderLeftColor:ro,filter:fv,WebkitFilter:fv},$y=t=>MW[t];function Yk(t,e){let n=$y(t);return n!==fv&&(n=xu),n.getAnimatableNone?n.getAnimatableNone(e):void 0}const Gk=t=>/^0[^.\s]+$/.test(t);function LW(t){if(typeof t=="number")return t===0;if(t!==null)return t==="none"||t==="0"||Gk(t)}function FW(t,e,n,r){const i=cv(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 f=[];for(let p=0;p<o.length;p++)o[p]===null&&(o[p]=p===0?a:o[p-1]),LW(o[p])&&f.push(p),typeof o[p]=="string"&&o[p]!=="none"&&o[p]!=="0"&&(c=o[p]);if(i&&f.length&&c)for(let p=0;p<f.length;p++){const w=f[p];o[w]=Yk(e,c)}return o}function NW({when:t,delay:e,delayChildren:n,staggerChildren:r,staggerDirection:i,repeat:o,repeatType:a,repeatDelay:c,from:f,elapsed:p,...w}){return!!Object.keys(w).length}function Vy(t,e){return t[e]||t.default||t}const jW={skipAnimations:!1},Hy=(t,e,n,r={})=>i=>{const o=Vy(r,t)||{},a=o.delay||r.delay||0;let{elapsed:c=0}=r;c=c-fu(a);const f=FW(e,t,n,o),p=f[0],w=f[f.length-1],g=cv(t,p),T=cv(t,w);Zd(g===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:f,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(NW(o)||(E={...E,..._W(t,E)}),E.duration&&(E.duration=fu(E.duration)),E.repeatDelay&&(E.repeatDelay=fu(E.repeatDelay)),!g||!T||MU.current||o.type===!1||jW.skipAnimations)return EW(E);if(!r.isHandoff&&e.owner&&e.owner.current instanceof HTMLElement&&!e.owner.getProps().onUpdate){const A=CW(e,t,E);if(A)return A}return hp(E)};function pp(t){return!!(Ro(t)&&t.add)}const qk=t=>/^\-?\d*\.?\d+$/.test(t);function Uy(t,e){t.indexOf(e)===-1&&t.push(e)}function Wy(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}class zy{constructor(){this.subscriptions=[]}add(e){return Uy(this.subscriptions,e),()=>Wy(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 uS=new Set;function Yy(t,e,n){t||uS.has(e)||(console.warn(e),uS.add(e))}const BW=t=>!isNaN(parseFloat(t));class $W{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=BW(this.current),this.owner=n.owner}onChange(e){return process.env.NODE_ENV!=="production"&&Yy(!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?Uk(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 Df(t,e){return new $W(t,e)}const Xk=t=>e=>e.test(t),VW={test:t=>t==="auto",parse:t=>t},Kk=[Rc,Rt,Ba,su,XH,qH,VW],od=t=>Kk.find(Xk(t)),HW=[...Kk,ro,xu],UW=t=>HW.find(Xk(t));function WW(t,e,n){t.hasValue(e)?t.getValue(e).set(n):t.addValue(e,Df(n))}function zW(t,e){const n=Up(t,e);let{transitionEnd:r={},transition:i={},...o}=n?t.makeTargetAnimatable(n,!1):{};o={...o,...r};for(const a in o){const c=cU(o[a]);WW(t,a,c)}}function YW(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 f=o[c],p=e[f];let w=null;Array.isArray(p)&&(w=p[0]),w===null&&(w=(i=(r=n[f])!==null&&r!==void 0?r:t.readValue(f))!==null&&i!==void 0?i:e[f]),w!=null&&(typeof w=="string"&&(qk(w)||Gk(w))?w=parseFloat(w):!UW(w)&&xu.test(p)&&(w=Yk(f,p)),t.addValue(f,Df(w,{owner:t})),n[f]===void 0&&(n[f]=w),w!==null&&t.setBaseTarget(f,w))}}function GW(t,e){return e?(e[t]||e.default||e).from:void 0}function qW(t,e,n){const r={};for(const i in t){const o=GW(i,e);if(o!==void 0)r[i]=o;else{const a=n.getValue(i);a&&(r[i]=a.get())}}return r}function XW({protectedKeys:t,needsAnimating:e},n){const r=t.hasOwnProperty(n)&&e[n]!==!0;return e[n]=!1,r}function KW(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 Zk(t,e,{delay:n=0,transitionOverride:r,type:i}={}){let{transition:o=t.getDefaultTransition(),transitionEnd:a,...c}=t.makeTargetAnimatable(e);const f=t.getValue("willChange");r&&(o=r);const p=[],w=i&&t.animationState&&t.animationState.getState()[i];for(const g in c){const T=t.getValue(g),E=c[g];if(!T||E===void 0||w&&XW(w,g))continue;const A={delay:n,elapsed:0,...Vy(o||{},g)};if(window.HandoffAppearAnimations){const _=t.getProps()[JE];if(_){const H=window.HandoffAppearAnimations(_,g,T,Ln);H!==null&&(A.elapsed=H,A.isHandoff=!0)}}let I=!A.isHandoff&&!KW(T,E);if(A.type==="spring"&&(T.getVelocity()||A.velocity)&&(I=!1),T.animation&&(I=!1),I)continue;T.start(Hy(g,T,E,t.shouldReduceMotion&&_c.has(g)?{type:!1}:A));const j=T.animation;pp(f)&&(f.add(g),j.then(()=>f.remove(g))),p.push(j)}return a&&Promise.all(p).then(()=>{a&&zW(t,a)}),p}function dv(t,e,n={}){const r=Up(t,e,n.custom);let{transition:i=t.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(i=n.transitionOverride);const o=r?()=>Promise.all(Zk(t,r,n)):()=>Promise.resolve(),a=t.variantChildren&&t.variantChildren.size?(f=0)=>{const{delayChildren:p=0,staggerChildren:w,staggerDirection:g}=i;return ZW(t,e,p+f,w,g,n)}:()=>Promise.resolve(),{when:c}=i;if(c){const[f,p]=c==="beforeChildren"?[o,a]:[a,o];return f().then(()=>p())}else return Promise.all([o(),a(n.delay)])}function ZW(t,e,n=0,r=0,i=1,o){const a=[],c=(t.variantChildren.size-1)*r,f=i===1?(p=0)=>p*r:(p=0)=>c-p*r;return Array.from(t.variantChildren).sort(JW).forEach((p,w)=>{p.notify("AnimationStart",e),a.push(dv(p,e,{...o,delay:n+f(w)}).then(()=>p.notify("AnimationComplete",e)))}),Promise.all(a)}function JW(t,e){return t.sortNodePosition(e)}function QW(t,e,n={}){t.notify("AnimationStart",e);let r;if(Array.isArray(e)){const i=e.map(o=>dv(t,o,n));r=Promise.all(i)}else if(typeof e=="string")r=dv(t,e,n);else{const i=typeof e=="function"?Up(t,e,n.custom):e;r=Promise.all(Zk(t,i,n))}return r.then(()=>t.notify("AnimationComplete",e))}const ez=[...Py].reverse(),tz=Py.length;function nz(t){return e=>Promise.all(e.map(({animation:n,options:r})=>QW(t,n,r)))}function rz(t){let e=nz(t);const n=oz();let r=!0;const i=(f,p)=>{const w=Up(t,p);if(w){const{transition:g,transitionEnd:T,...E}=w;f={...f,...E,...T}}return f};function o(f){e=f(t)}function a(f,p){const w=t.getProps(),g=t.getVariantContext(!0)||{},T=[],E=new Set;let A={},I=1/0;for(let _=0;_<tz;_++){const H=ez[_],W=n[H],re=w[H]!==void 0?w[H]:g[H],Z=Ld(re),de=H===p?W.isActive:null;de===!1&&(I=_);let S=re===g[H]&&re!==w[H]&&Z;if(S&&r&&t.manuallyAnimateOnMount&&(S=!1),W.protectedKeys={...A},!W.isActive&&de===null||!re&&!W.prevProp||Bp(re)||typeof re=="boolean")continue;let ue=iz(W.prevProp,re)||H===p&&W.isActive&&!S&&Z||_>I&&Z,ze=!1;const Me=Array.isArray(re)?re:[re];let Fe=Me.reduce(i,{});de===!1&&(Fe={});const{prevResolvedValues:Ve={}}=W,Ue={...Ve,...Fe},he=ke=>{ue=!0,E.has(ke)&&(ze=!0,E.delete(ke)),W.needsAnimating[ke]=!0};for(const ke in Ue){const Oe=Fe[ke],Ne=Ve[ke];if(A.hasOwnProperty(ke))continue;let tt=!1;cp(Oe)&&cp(Ne)?tt=!wk(Oe,Ne):tt=Oe!==Ne,tt?Oe!==void 0?he(ke):E.add(ke):Oe!==void 0&&E.has(ke)?he(ke):W.protectedKeys[ke]=!0}W.prevProp=re,W.prevResolvedValues=Fe,W.isActive&&(A={...A,...Fe}),r&&t.blockInitialAnimation&&(ue=!1),ue&&(!S||ze)&&T.push(...Me.map(ke=>({animation:ke,options:{type:H,...f}})))}if(E.size){const _={};E.forEach(H=>{const W=t.getBaseTarget(H);W!==void 0&&(_[H]=W)}),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(f,p,w){var g;if(n[f].isActive===p)return Promise.resolve();(g=t.variantChildren)===null||g===void 0||g.forEach(E=>{var A;return(A=E.animationState)===null||A===void 0?void 0:A.setActive(f,p)}),n[f].isActive=p;const T=a(w,f);for(const E in n)n[E].protectedKeys={};return T}return{animateChanges:a,setActive:c,setAnimateFunction:o,getState:()=>n}}function iz(t,e){return typeof e=="string"?e!==t:Array.isArray(e)?!wk(e,t):!1}function oc(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function oz(){return{animate:oc(!0),whileInView:oc(),whileHover:oc(),whileTap:oc(),whileDrag:oc(),whileFocus:oc(),exit:oc()}}class sz extends Eu{constructor(e){super(e),e.animationState||(e.animationState=rz(e))}updateAnimationControlsSubscription(){const{animate:e}=this.node.getProps();this.unmount(),Bp(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 az=0;class lz extends Eu{constructor(){super(...arguments),this.id=az++}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 uz={animation:{Feature:sz},exit:{Feature:lz}},cS=(t,e)=>Math.abs(t-e);function cz(t,e){const n=cS(t.x,e.x),r=cS(t.y,e.y);return Math.sqrt(n**2+r**2)}class Jk{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 g=nm(this.lastMoveEventInfo,this.history),T=this.startEvent!==null,E=cz(g.offset,{x:0,y:0})>=3;if(!T&&!E)return;const{point:A}=g,{timestamp:I}=Fi;this.history.push({...A,timestamp:I});const{onStart:j,onMove:_}=this.handlers;T||(j&&j(this.lastMoveEvent,g),this.startEvent=this.lastMoveEvent),_&&_(this.lastMoveEvent,g)},this.handlePointerMove=(g,T)=>{this.lastMoveEvent=g,this.lastMoveEventInfo=tm(T,this.transformPagePoint),Ln.update(this.updatePoint,!0)},this.handlePointerUp=(g,T)=>{this.end();const{onEnd:E,onSessionEnd:A,resumeAnimation:I}=this.handlers;if(this.dragSnapToOrigin&&I&&I(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const j=nm(g.type==="pointercancel"?this.lastMoveEventInfo:tm(T,this.transformPagePoint),this.history);this.startEvent&&E&&E(g,j),A&&A(g,j)},!gk(e))return;this.dragSnapToOrigin=o,this.handlers=n,this.transformPagePoint=r,this.contextWindow=i||window;const a=Hp(e),c=tm(a,this.transformPagePoint),{point:f}=c,{timestamp:p}=Fi;this.history=[{...f,timestamp:p}];const{onSessionStart:w}=n;w&&w(e,nm(c,this.history)),this.removeListeners=cu(Sl(this.contextWindow,"pointermove",this.handlePointerMove),Sl(this.contextWindow,"pointerup",this.handlePointerUp),Sl(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),kl(this.updatePoint)}}function tm(t,e){return e?{point:e(t.point)}:t}function fS(t,e){return{x:t.x-e.x,y:t.y-e.y}}function nm({point:t},e){return{point:t,delta:fS(t,Qk(e)),offset:fS(t,fz(e)),velocity:dz(e,.1)}}function fz(t){return t[0]}function Qk(t){return t[t.length-1]}function dz(t,e){if(t.length<2)return{x:0,y:0};let n=t.length-1,r=null;const i=Qk(t);for(;n>=0&&(r=t[n],!(i.timestamp-r.timestamp>fu(e)));)n--;if(!r)return{x:0,y:0};const o=Tl(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 hv(t,e=0,n=.01){return Math.abs(t-e)<=n}function dS(t,e,n,r=.5){t.origin=r,t.originPoint=Zn(e.min,e.max,t.origin),t.scale=es(n)/es(e),(hv(t.scale,1,1e-4)||isNaN(t.scale))&&(t.scale=1),t.translate=Zn(n.min,n.max,t.origin)-t.originPoint,(hv(t.translate)||isNaN(t.translate))&&(t.translate=0)}function Td(t,e,n,r){dS(t.x,e.x,n.x,r?r.originX:void 0),dS(t.y,e.y,n.y,r?r.originY:void 0)}function hS(t,e,n){t.min=n.min+e.min,t.max=t.min+es(e)}function hz(t,e,n){hS(t.x,e.x,n.x),hS(t.y,e.y,n.y)}function pS(t,e,n){t.min=e.min-n.min,t.max=t.min+es(e)}function Cd(t,e,n){pS(t.x,e.x,n.x),pS(t.y,e.y,n.y)}function pz(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 gS(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 gz(t,{top:e,left:n,bottom:r,right:i}){return{x:gS(t.x,n,i),y:gS(t.y,e,r)}}function mS(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 mz(t,e){return{x:mS(t.x,e.x),y:mS(t.y,e.y)}}function vz(t,e){let n=.5;const r=es(t),i=es(e);return i>r?n=Nd(e.min,e.max-r,t.min):r>i&&(n=Nd(t.min,t.max-i,e.min)),wu(0,1,n)}function yz(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 pv=.35;function bz(t=pv){return t===!1?t=0:t===!0&&(t=pv),{x:vS(t,"left","right"),y:vS(t,"top","bottom")}}function vS(t,e,n){return{min:yS(t,e),max:yS(t,n)}}function yS(t,e){return typeof t=="number"?t:t[e]||0}const bS=()=>({translate:0,scale:1,origin:0,originPoint:0}),wf=()=>({x:bS(),y:bS()}),wS=()=>({min:0,max:0}),Er=()=>({x:wS(),y:wS()});function Ps(t){return[t("x"),t("y")]}function eD({top:t,left:e,right:n,bottom:r}){return{x:{min:e,max:n},y:{min:t,max:r}}}function wz({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}function xz(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 rm(t){return t===void 0||t===1}function gv({scale:t,scaleX:e,scaleY:n}){return!rm(t)||!rm(e)||!rm(n)}function dc(t){return gv(t)||tD(t)||t.z||t.rotate||t.rotateX||t.rotateY}function tD(t){return xS(t.x)||xS(t.y)}function xS(t){return t&&t!=="0%"}function gp(t,e,n){const r=t-n,i=e*r;return n+i}function SS(t,e,n,r,i){return i!==void 0&&(t=gp(t,i,r)),gp(t,n,r)+e}function mv(t,e=0,n=1,r,i){t.min=SS(t.min,e,n,r,i),t.max=SS(t.max,e,n,r,i)}function nD(t,{x:e,y:n}){mv(t.x,e.translate,e.scale,e.originPoint),mv(t.y,n.translate,n.scale,n.originPoint)}function Sz(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 f=o.instance;f&&f.style&&f.style.display==="contents"||(r&&o.options.layoutScroll&&o.scroll&&o!==o.root&&xf(t,{x:-o.scroll.offset.x,y:-o.scroll.offset.y}),a&&(e.x*=a.x.scale,e.y*=a.y.scale,nD(t,a)),r&&dc(o.latestValues)&&xf(t,o.latestValues))}e.x=TS(e.x),e.y=TS(e.y)}function TS(t){return Number.isInteger(t)||t>1.0000000000001||t<.999999999999?t:1}function au(t,e){t.min=t.min+e,t.max=t.max+e}function CS(t,e,[n,r,i]){const o=e[i]!==void 0?e[i]:.5,a=Zn(t.min,t.max,o);mv(t,e[n],e[r],a,e.scale)}const Tz=["x","scaleX","originX"],Cz=["y","scaleY","originY"];function xf(t,e){CS(t.x,e,Tz),CS(t.y,e,Cz)}function rD(t,e){return eD(xz(t.getBoundingClientRect(),e))}function Ez(t,e,n){const r=rD(t,n),{scroll:i}=e;return i&&(au(r.x,i.offset.x),au(r.y,i.offset.y)),r}const iD=({current:t})=>t?t.ownerDocument.defaultView:null,kz=new WeakMap;class Dz{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:g}=this.getProps();g?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(Hp(w,"page").point)},o=(w,g)=>{const{drag:T,dragPropagation:E,onDragStart:A}=this.getProps();if(T&&!E&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=vk(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(Ba.test(_)){const{projection:H}=this.visualElement;if(H&&H.layout){const W=H.layout.layoutBox[j];W&&(_=es(W)*(parseFloat(_)/100))}}this.originPoint[j]=_}),A&&Ln.update(()=>A(w,g),!1,!0);const{animationState:I}=this.visualElement;I&&I.setActive("whileDrag",!0)},a=(w,g)=>{const{dragPropagation:T,dragDirectionLock:E,onDirectionLock:A,onDrag:I}=this.getProps();if(!T&&!this.openGlobalLock)return;const{offset:j}=g;if(E&&this.currentDirection===null){this.currentDirection=Pz(j),this.currentDirection!==null&&A&&A(this.currentDirection);return}this.updateAxis("x",g.point,j),this.updateAxis("y",g.point,j),this.visualElement.render(),I&&I(w,g)},c=(w,g)=>this.stop(w,g),f=()=>Ps(w=>{var g;return this.getAnimationState(w)==="paused"&&((g=this.getAxisMotionValue(w).animation)===null||g===void 0?void 0:g.play())}),{dragSnapToOrigin:p}=this.getProps();this.panSession=new Jk(e,{onSessionStart:i,onStart:o,onMove:a,onSessionEnd:c,resumeAnimation:f},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:p,contextWindow:iD(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||!Dh(e,i,this.currentDirection))return;const o=this.getAxisMotionValue(e);let a=this.originPoint[e]+r[e];this.constraints&&this.constraints[e]&&(a=pz(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&&yf(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&i?this.constraints=gz(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]=yz(i.layoutBox[a],this.constraints[a]))})}resolveRefConstraints(){const{dragConstraints:e,onMeasureDragConstraints:n}=this.getProps();if(!e||!yf(e))return!1;const r=e.current;sa(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=Ez(r,i.root,this.visualElement.getTransformPagePoint());let a=mz(i.layout.layoutBox,o);if(n){const c=n(wz(a));this.hasMutatedConstraints=!!c,c&&(a=eD(c))}return a}startAnimation(e){const{drag:n,dragMomentum:r,dragElastic:i,dragTransition:o,dragSnapToOrigin:a,onDragTransitionEnd:c}=this.getProps(),f=this.constraints||{},p=Ps(w=>{if(!Dh(w,n,this.currentDirection))return;let g=f&&f[w]||{};a&&(g={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,...g};return this.startAxisValueAnimation(w,A)});return Promise.all(p).then(c)}startAxisValueAnimation(e,n){const r=this.getAxisMotionValue(e);return r.start(Hy(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(!Dh(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(!yf(n)||!r||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};Ps(a=>{const c=this.getAxisMotionValue(a);if(c){const f=c.get();i[a]=vz({min:f,max:f},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(!Dh(a,e,null))return;const c=this.getAxisMotionValue(a),{min:f,max:p}=this.constraints[a];c.set(Zn(f,p,i[a]))})}addListeners(){if(!this.visualElement.current)return;kz.set(this.visualElement,this);const e=this.visualElement.current,n=Sl(e,"pointerdown",f=>{const{drag:p,dragListener:w=!0}=this.getProps();p&&w&&this.start(f)}),r=()=>{const{dragConstraints:f}=this.getProps();yf(f)&&(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=bl(window,"resize",()=>this.scalePositionWithinConstraints()),c=i.addEventListener("didUpdate",({delta:f,hasLayoutChanged:p})=>{this.isDragging&&p&&(Ps(w=>{const g=this.getAxisMotionValue(w);g&&(this.originPoint[w]+=f[w].translate,g.set(g.get()+f[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=pv,dragMomentum:c=!0}=e;return{...e,drag:n,dragDirectionLock:r,dragPropagation:i,dragConstraints:o,dragElastic:a,dragMomentum:c}}}function Dh(t,e,n){return(e===!0||e===t)&&(n===null||n===t)}function Pz(t,e=10){let n=null;return Math.abs(t.y)>e?n="y":Math.abs(t.x)>e&&(n="x"),n}class Oz extends Eu{constructor(e){super(e),this.removeGroupControls=sr,this.removeListeners=sr,this.controls=new Dz(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 ES=t=>(e,n)=>{t&&Ln.update(()=>t(e,n))};class _z extends Eu{constructor(){super(...arguments),this.removePointerDownListener=sr}onPointerDown(e){this.session=new Jk(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:iD(this.node)})}createPanHandlers(){const{onPanSessionStart:e,onPanStart:n,onPan:r,onPanEnd:i}=this.node.getProps();return{onSessionStart:ES(e),onStart:ES(n),onMove:r,onEnd:(o,a)=>{delete this.session,i&&Ln.update(()=>i(o,a))}}}mount(){this.removePointerDownListener=Sl(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 Rz(){const t=q.useContext(ky);if(t===null)return[!0,null];const{isPresent:e,onExitComplete:n,register:r}=t,i=q.useId();return q.useEffect(()=>r(i),[]),!e&&n?[!1,()=>n&&n(i)]:[!0]}const Wh={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function kS(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}const sd={correct:(t,e)=>{if(!e.target)return t;if(typeof t=="string")if(Rt.test(t))t=parseFloat(t);else return t;const n=kS(t,e.target.x),r=kS(t,e.target.y);return`${n}% ${r}%`}},Az={correct:(t,{treeScale:e,projectionDelta:n})=>{const r=t,i=xu.parse(t);if(i.length>5)return r;const o=xu.createTransformer(t),a=typeof i[0]!="number"?1:0,c=n.x.scale*e.x,f=n.y.scale*e.y;i[0+a]/=c,i[1+a]/=f;const p=Zn(c,f,.5);return typeof i[2+a]=="number"&&(i[2+a]/=p),typeof i[3+a]=="number"&&(i[3+a]/=p),o(i)}};class Iz extends q.Component{componentDidMount(){const{visualElement:e,layoutGroup:n,switchLayoutGroup:r,layoutId:i}=this.props,{projection:o}=e;VH(Mz),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()})),Wh.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 oD(t){const[e,n]=Rz(),r=q.useContext(ek);return q.createElement(Iz,{...t,layoutGroup:r,switchLayoutGroup:q.useContext(tk),isPresent:e,safeToRemove:n})}const Mz={borderRadius:{...sd,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:sd,borderTopRightRadius:sd,borderBottomLeftRadius:sd,borderBottomRightRadius:sd,boxShadow:Az},sD=["TopLeft","TopRight","BottomLeft","BottomRight"],Lz=sD.length,DS=t=>typeof t=="string"?parseFloat(t):t,PS=t=>typeof t=="number"||Rt.test(t);function Fz(t,e,n,r,i,o){i?(t.opacity=Zn(0,n.opacity!==void 0?n.opacity:1,Nz(r)),t.opacityExit=Zn(e.opacity!==void 0?e.opacity:1,0,jz(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<Lz;a++){const c=`border${sD[a]}Radius`;let f=OS(e,c),p=OS(n,c);if(f===void 0&&p===void 0)continue;f||(f=0),p||(p=0),f===0||p===0||PS(f)===PS(p)?(t[c]=Math.max(Zn(DS(f),DS(p),r),0),(Ba.test(p)||Ba.test(f))&&(t[c]+="%")):t[c]=p}(e.rotate||n.rotate)&&(t.rotate=Zn(e.rotate||0,n.rotate||0,r))}function OS(t,e){return t[e]!==void 0?t[e]:t.borderRadius}const Nz=aD(0,.5,Ok),jz=aD(.5,.95,sr);function aD(t,e,n){return r=>r<t?0:r>e?1:n(Nd(t,e,r))}function _S(t,e){t.min=e.min,t.max=e.max}function Es(t,e){_S(t.x,e.x),_S(t.y,e.y)}function RS(t,e,n,r,i){return t-=e,t=gp(t,1/n,r),i!==void 0&&(t=gp(t,1/i,r)),t}function Bz(t,e=0,n=1,r=.5,i,o=t,a=t){if(Ba.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=RS(t.min,e,n,c,i),t.max=RS(t.max,e,n,c,i)}function AS(t,e,[n,r,i],o,a){Bz(t,e[n],e[r],e[i],e.scale,o,a)}const $z=["x","scaleX","originX"],Vz=["y","scaleY","originY"];function IS(t,e,n,r){AS(t.x,e,$z,n?n.x:void 0,r?r.x:void 0),AS(t.y,e,Vz,n?n.y:void 0,r?r.y:void 0)}function MS(t){return t.translate===0&&t.scale===1}function lD(t){return MS(t.x)&&MS(t.y)}function Hz(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 uD(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 LS(t){return es(t.x)/es(t.y)}class Uz{constructor(){this.members=[]}add(e){Uy(this.members,e),e.scheduleRender()}remove(e){if(Wy(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 FS(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:f,rotateX:p,rotateY:w}=n;f&&(r+=`rotate(${f}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 Wz=(t,e)=>t.depth-e.depth;class zz{constructor(){this.children=[],this.isDirty=!1}add(e){Uy(this.children,e),this.isDirty=!0}remove(e){Wy(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(Wz),this.isDirty=!1,this.children.forEach(e)}}function Yz(t,e){const n=performance.now(),r=({timestamp:i})=>{const o=i-n;o>=e&&(kl(r),t(o-e))};return Ln.read(r,!0),()=>kl(r)}function Gz(t){window.MotionDebug&&window.MotionDebug.record(t)}function qz(t){return t instanceof SVGElement&&t.tagName!=="svg"}function Xz(t,e,n){const r=Ro(t)?t:Df(t);return r.start(Hy("",r,e,n)),r.animation}const NS=["","X","Y","Z"],Kz={visibility:"hidden"},jS=1e3;let Zz=0;const hc={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0};function cD({attachResizeListener:t,defaultParent:e,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(a={},c=e==null?void 0:e()){this.id=Zz++,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,hc.totalNodes=hc.resolvedTargetDeltas=hc.recalculatedProjection=0,this.nodes.forEach(e5),this.nodes.forEach(o5),this.nodes.forEach(s5),this.nodes.forEach(t5),Gz(hc)},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 f=0;f<this.path.length;f++)this.path[f].shouldResetTransform=!0;this.root===this&&(this.nodes=new zz)}addEventListener(a,c){return this.eventHandlers.has(a)||this.eventHandlers.set(a,new zy),this.eventHandlers.get(a).add(c)}notifyListeners(a,...c){const f=this.eventHandlers.get(a);f&&f.notify(...c)}hasListeners(a){return this.eventHandlers.has(a)}mount(a,c=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=qz(a),this.instance=a;const{layoutId:f,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||f)&&(this.isLayoutDirty=!0),t){let g;const T=()=>this.root.updateBlockedByResize=!1;t(a,()=>{this.root.updateBlockedByResize=!0,g&&g(),g=Yz(T,250),Wh.hasAnimatedSinceResize&&(Wh.hasAnimatedSinceResize=!1,this.nodes.forEach($S))})}f&&this.root.registerSharedNode(f,this),this.options.animate!==!1&&w&&(f||p)&&this.addEventListener("didUpdate",({delta:g,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()||f5,{onLayoutAnimationStart:j,onLayoutAnimationComplete:_}=w.getProps(),H=!this.targetLayout||!uD(this.targetLayout,A)||E,W=!T&&E;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||W||T&&(H||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(g,W);const re={...Vy(I,"layout"),onPlay:j,onComplete:_};(w.shouldReduceMotion||this.options.layoutRoot)&&(re.delay=0,re.type=!1),this.startAnimation(re)}else T||$S(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,kl(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(a5),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 g=this.path[w];g.shouldResetTransform=!0,g.updateScroll("snapshot"),g.options.layoutRoot&&g.willUpdate(!1)}const{layoutId:c,layout:f}=this.options;if(c===void 0&&!f)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(BS);return}this.isUpdating||this.nodes.forEach(r5),this.isUpdating=!1,this.nodes.forEach(i5),this.nodes.forEach(Jz),this.nodes.forEach(Qz),this.clearAllSnapshots();const c=performance.now();Fi.delta=wu(0,1e3/60,c-Fi.timestamp),Fi.timestamp=c,Fi.isProcessing=!0,qg.update.process(Fi),qg.preRender.process(Fi),qg.render.process(Fi),Fi.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,queueMicrotask(()=>this.update()))}clearAllSnapshots(){this.nodes.forEach(n5),this.sharedNodes.forEach(l5)}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 f=0;f<this.path.length;f++)this.path[f].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&&!lD(this.projectionDelta),f=this.getTransformTemplate(),p=f?f(this.latestValues,""):void 0,w=p!==this.prevTransformTemplateValue;a&&(c||dc(this.latestValues)||w)&&(i(this.instance,p),this.shouldResetTransform=!1,this.scheduleRender())}measure(a=!0){const c=this.measurePageBox();let f=this.removeElementScroll(c);return a&&(f=this.removeTransform(f)),d5(f),{animationId:this.root.animationId,measuredBox:c,layoutBox:f,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:a}=this.options;if(!a)return Er();const c=a.measureViewportBox(),{scroll:f}=this.root;return f&&(au(c.x,f.offset.x),au(c.y,f.offset.y)),c}removeElementScroll(a){const c=Er();Es(c,a);for(let f=0;f<this.path.length;f++){const p=this.path[f],{scroll:w,options:g}=p;if(p!==this.root&&w&&g.layoutScroll){if(w.isRoot){Es(c,a);const{scroll:T}=this.root;T&&(au(c.x,-T.offset.x),au(c.y,-T.offset.y))}au(c.x,w.offset.x),au(c.y,w.offset.y)}}return c}applyTransform(a,c=!1){const f=Er();Es(f,a);for(let p=0;p<this.path.length;p++){const w=this.path[p];!c&&w.options.layoutScroll&&w.scroll&&w!==w.root&&xf(f,{x:-w.scroll.offset.x,y:-w.scroll.offset.y}),dc(w.latestValues)&&xf(f,w.latestValues)}return dc(this.latestValues)&&xf(f,this.latestValues),f}removeTransform(a){const c=Er();Es(c,a);for(let f=0;f<this.path.length;f++){const p=this.path[f];if(!p.instance||!dc(p.latestValues))continue;gv(p.latestValues)&&p.updateSnapshot();const w=Er(),g=p.measurePageBox();Es(w,g),IS(c,p.latestValues,p.snapshot?p.snapshot.layoutBox:void 0,w)}return dc(this.latestValues)&&IS(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 f=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=f.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=f.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=f.isSharedProjectionDirty);const p=!!this.resumingFrom||this!==f;if(!(a||p&&this.isSharedProjectionDirty||this.isProjectionDirty||!((c=this.parent)===null||c===void 0)&&c.isProjectionDirty||this.attemptToResolveRelativeTarget))return;const{layout:g,layoutId:T}=this.options;if(!(!this.layout||!(g||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(),Cd(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(),hz(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):Es(this.target,this.layout.layoutBox),nD(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(),Cd(this.relativeTargetOrigin,this.target,E.target),Es(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}hc.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(!(!this.parent||gv(this.parent.latestValues)||tD(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(),f=!!this.resumingFrom||this!==c;let p=!0;if((this.isProjectionDirty||!((a=this.parent)===null||a===void 0)&&a.isProjectionDirty)&&(p=!1),f&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(p=!1),this.resolvedRelativeTargetAt===Fi.timestamp&&(p=!1),p)return;const{layout:w,layoutId:g}=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||g))return;Es(this.layoutCorrected,this.layout.layoutBox);const T=this.treeScale.x,E=this.treeScale.y;Sz(this.layoutCorrected,this.treeScale,this.path,f),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=wf(),this.projectionTransform="none",this.scheduleRender());return}this.projectionDelta||(this.projectionDelta=wf(),this.projectionDeltaWithTransform=wf());const I=this.projectionTransform;Td(this.projectionDelta,this.layoutCorrected,A,this.latestValues),this.projectionTransform=FS(this.projectionDelta,this.treeScale),(this.projectionTransform!==I||this.treeScale.x!==T||this.treeScale.y!==E)&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",A)),hc.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 f=this.snapshot,p=f?f.latestValues:{},w={...this.latestValues},g=wf();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!c;const T=Er(),E=f?f.source:void 0,A=this.layout?this.layout.source:void 0,I=E!==A,j=this.getStack(),_=!j||j.members.length<=1,H=!!(I&&!_&&this.options.crossfade===!0&&!this.path.some(c5));this.animationProgress=0;let W;this.mixTargetDelta=re=>{const Z=re/1e3;VS(g.x,a.x,Z),VS(g.y,a.y,Z),this.setTargetDelta(g),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Cd(T,this.layout.layoutBox,this.relativeParent.layout.layoutBox),u5(this.relativeTarget,this.relativeTargetOrigin,T,Z),W&&Hz(this.relativeTarget,W)&&(this.isProjectionDirty=!1),W||(W=Er()),Es(W,this.relativeTarget)),I&&(this.animationValues=w,Fz(w,p,this.latestValues,Z,H,_)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=Z},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&&(kl(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Ln.update(()=>{Wh.hasAnimatedSinceResize=!0,this.currentAnimation=Xz(0,jS,{...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(jS),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const a=this.getLead();let{targetWithTransforms:c,target:f,layout:p,latestValues:w}=a;if(!(!c||!f||!p)){if(this!==a&&this.layout&&p&&fD(this.options.animationType,this.layout.layoutBox,p.layoutBox)){f=this.target||Er();const g=es(this.layout.layoutBox.x);f.x.min=a.target.x.min,f.x.max=f.x.min+g;const T=es(this.layout.layoutBox.y);f.y.min=a.target.y.min,f.y.max=f.y.min+T}Es(c,f),xf(c,w),Td(this.projectionDeltaWithTransform,this.layoutCorrected,c,w)}}registerSharedNode(a,c){this.sharedNodes.has(a)||this.sharedNodes.set(a,new Uz),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:f}={}){const p=this.getStack();p&&p.promote(this,f),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:f}=a;if((f.rotate||f.rotateX||f.rotateY||f.rotateZ)&&(c=!0),!c)return;const p={};for(let w=0;w<NS.length;w++){const g="rotate"+NS[w];f[g]&&(p[g]=f[g],a.setStaticValue(g,0))}a.render();for(const w in p)a.setStaticValue(w,p[w]);a.scheduleRender()}getProjectionStyles(a){var c,f;if(!this.instance||this.isSVG)return;if(!this.isVisible)return Kz;const p={visibility:""},w=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,p.opacity="",p.pointerEvents=Uh(a==null?void 0:a.pointerEvents)||"",p.transform=w?w(this.latestValues,""):"none",p;const g=this.getLead();if(!this.projectionDelta||!this.layout||!g.target){const I={};return this.options.layoutId&&(I.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,I.pointerEvents=Uh(a==null?void 0:a.pointerEvents)||""),this.hasProjected&&!dc(this.latestValues)&&(I.transform=w?w({},""):"none",this.hasProjected=!1),I}const T=g.animationValues||g.latestValues;this.applyTransformsToTarget(),p.transform=FS(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`,g.animationValues?p.opacity=g===this?(f=(c=T.opacity)!==null&&c!==void 0?c:this.latestValues.opacity)!==null&&f!==void 0?f:1:this.preserveOpacity?this.latestValues.opacity:T.opacityExit:p.opacity=g===this?T.opacity!==void 0?T.opacity:"":T.opacityExit!==void 0?T.opacityExit:0;for(const I in lp){if(T[I]===void 0)continue;const{correct:j,applyTo:_}=lp[I],H=p.transform==="none"?T[I]:j(T[I],g);if(_){const W=_.length;for(let re=0;re<W;re++)p[_[re]]=H}else p[I]=H}return this.options.layoutId&&(p.pointerEvents=g===this?Uh(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(BS),this.root.sharedNodes.clear()}}}function Jz(t){t.updateLayout()}function Qz(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(g=>{const T=a?n.measuredBox[g]:n.layoutBox[g],E=es(T);T.min=r[g].min,T.max=T.min+E}):fD(o,n.layoutBox,r)&&Ps(g=>{const T=a?n.measuredBox[g]:n.layoutBox[g],E=es(r[g]);T.max=T.min+E,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[g].max=t.relativeTarget[g].min+E)});const c=wf();Td(c,r,n.layoutBox);const f=wf();a?Td(f,t.applyTransform(i,!0),n.measuredBox):Td(f,r,n.layoutBox);const p=!lD(c);let w=!1;if(!t.resumeFrom){const g=t.getClosestProjectingParent();if(g&&!g.resumeFrom){const{snapshot:T,layout:E}=g;if(T&&E){const A=Er();Cd(A,n.layoutBox,T.layoutBox);const I=Er();Cd(I,r,E.layoutBox),uD(A,I)||(w=!0),g.options.layoutRoot&&(t.relativeTarget=I,t.relativeTargetOrigin=A,t.relativeParent=g)}}}t.notifyListeners("didUpdate",{layout:r,snapshot:n,delta:f,layoutDelta:c,hasLayoutChanged:p,hasRelativeTargetChanged:w})}else if(t.isLead()){const{onExitComplete:r}=t.options;r&&r()}t.options.transition=void 0}function e5(t){hc.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 t5(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function n5(t){t.clearSnapshot()}function BS(t){t.clearMeasurements()}function r5(t){t.isLayoutDirty=!1}function i5(t){const{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function $S(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function o5(t){t.resolveTargetDelta()}function s5(t){t.calcProjection()}function a5(t){t.resetRotation()}function l5(t){t.removeLeadSnapshot()}function VS(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 HS(t,e,n,r){t.min=Zn(e.min,n.min,r),t.max=Zn(e.max,n.max,r)}function u5(t,e,n,r){HS(t.x,e.x,n.x,r),HS(t.y,e.y,n.y,r)}function c5(t){return t.animationValues&&t.animationValues.opacityExit!==void 0}const f5={duration:.45,ease:[.4,0,.1,1]},US=t=>typeof navigator<"u"&&navigator.userAgent.toLowerCase().includes(t),WS=US("applewebkit/")&&!US("chrome/")?Math.round:sr;function zS(t){t.min=WS(t.min),t.max=WS(t.max)}function d5(t){zS(t.x),zS(t.y)}function fD(t,e,n){return t==="position"||t==="preserve-aspect"&&!hv(LS(e),LS(n),.2)}const h5=cD({attachResizeListener:(t,e)=>bl(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),im={current:void 0},dD=cD({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!im.current){const t=new h5({});t.mount(window),t.setOptions({layoutScroll:!0}),im.current=t}return im.current},resetTransform:(t,e)=>{t.style.transform=e!==void 0?e:"none"},checkIsScrollRoot:t=>window.getComputedStyle(t).position==="fixed"}),p5={pan:{Feature:_z},drag:{Feature:Oz,ProjectionNode:dD,MeasureLayout:oD}},g5=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function m5(t){const e=g5.exec(t);if(!e)return[,];const[,n,r]=e;return[n,r]}const v5=4;function vv(t,e,n=1){sa(n<=v5,`Max CSS variable fallback depth detected in property "${t}". This may indicate a circular fallback dependency.`);const[r,i]=m5(t);if(!r)return;const o=window.getComputedStyle(e).getPropertyValue(r);if(o){const a=o.trim();return qk(a)?parseFloat(a):a}else return sv(i)?vv(i,e,n+1):i}function y5(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(!sv(o))return;const a=vv(o,r);a&&i.set(a)});for(const i in e){const o=e[i];if(!sv(o))continue;const a=vv(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"]),hD=t=>b5.has(t),w5=t=>Object.keys(t).some(hD),Ph=t=>t===Rc||t===Rt,YS=(t,e)=>parseFloat(t.split(", ")[e]),GS=(t,e)=>(n,{transform:r})=>{if(r==="none"||!r)return 0;const i=r.match(/^matrix3d\((.+)\)$/);if(i)return YS(i[1],e);{const o=r.match(/^matrix\((.+)\)$/);return o?YS(o[1],t):0}},x5=new Set(["x","y","z"]),S5=qd.filter(t=>!x5.has(t));function T5(t){const e=[];return S5.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 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:GS(4,13),y:GS(5,14)};Pf.translateX=Pf.x;Pf.translateY=Pf.y;const C5=(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]=Pf[p](r,o)}),e.render();const f=e.measureViewportBox();return n.forEach(p=>{const w=e.getValue(p);w&&w.jump(c[p]),t[p]=Pf[p](f,o)}),t},E5=(t,e,n={},r={})=>{e={...e},r={...r};const i=Object.keys(e).filter(hD);let o=[],a=!1;const c=[];if(i.forEach(f=>{const p=t.getValue(f);if(!t.hasValue(f))return;let w=n[f],g=od(w);const T=e[f];let E;if(cp(T)){const A=T.length,I=T[0]===null?1:0;w=T[I],g=od(w);for(let j=I;j<A&&T[j]!==null;j++)E?sa(od(T[j])===E,"All keyframes must be of the same type"):(E=od(T[j]),sa(E===g||Ph(g)&&Ph(E),"Keyframes must be of the same dimension as the current value"))}else E=od(T);if(g!==E)if(Ph(g)&&Ph(E)){const A=p.get();typeof A=="string"&&p.set(parseFloat(A)),typeof T=="string"?e[f]=parseFloat(T):Array.isArray(T)&&E===Rt&&(e[f]=T.map(parseFloat))}else g!=null&&g.transform&&(E!=null&&E.transform)&&(w===0||T===0)?w===0?p.set(E.transform(w)):e[f]=g.transform(T):(a||(o=T5(t),a=!0),c.push(f),r[f]=r[f]!==void 0?r[f]:e[f],p.jump(T))}),c.length){const f=c.indexOf("height")>=0?window.pageYOffset:null,p=C5(e,t,c);return o.length&&o.forEach(([w,g])=>{t.getValue(w).set(g)}),t.render(),jp&&f!==null&&window.scrollTo({top:f}),{target:p,transitionEnd:r}}else return{target:e,transitionEnd:r}};function k5(t,e,n,r){return w5(e)?E5(t,e,n,r):{target:e,transitionEnd:r}}const D5=(t,e,n,r)=>{const i=y5(t,e,r);return e=i.target,r=i.transitionEnd,k5(t,e,n,r)},yv={current:null},pD={current:!1};function P5(){if(pD.current=!0,!!jp)if(window.matchMedia){const t=window.matchMedia("(prefers-reduced-motion)"),e=()=>yv.current=t.matches;t.addListener(e),e()}else yv.current=!1}function O5(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),pp(r)&&r.add(i),process.env.NODE_ENV==="development"&&Yy(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,Df(o,{owner:t})),pp(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,Df(c!==void 0?c:o,{owner:t}))}}for(const i in n)e[i]===void 0&&t.removeValue(i);return e}const qS=new WeakMap,gD=Object.keys(Fd),_5=gD.length,XS=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],R5=Oy.length;class A5{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:f}=o;this.latestValues=c,this.baseTarget={...c},this.initialValues=n.initial?{...c}:{},this.renderState=f,this.parent=e,this.props=n,this.presenceContext=r,this.depth=e?e.depth+1:0,this.reducedMotionConfig=i,this.options=a,this.isControllingVariants=$p(n),this.isVariantNode=QE(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);const{willChange:p,...w}=this.scrapeMotionValuesFromProps(n,{});for(const g in w){const T=w[g];c[g]!==void 0&&Ro(T)&&(T.set(c[g],!1),pp(p)&&p.add(g))}}scrapeMotionValuesFromProps(e,n){return{}}mount(e){this.current=e,qS.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)),pD.current||P5(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:yv.current,process.env.NODE_ENV!=="production"&&Yy(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(){qS.delete(this.current),this.projection&&this.projection.unmount(),kl(this.notifyUpdate),kl(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=_c.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 f="You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.";n.ignoreStrict?Zd(!1,f):sa(!1,f)}for(let f=0;f<_5;f++){const p=gD[f],{isEnabled:w,Feature:g,ProjectionNode:T,MeasureLayout:E}=Fd[p];T&&(a=T),w(n)&&(!this.features[p]&&g&&(this.features[p]=new g(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:f,layout:p,drag:w,dragConstraints:g,layoutScroll:T,layoutRoot:E}=n;this.projection.setOptions({layoutId:f,layout:p,alwaysMeasureLayout:!!w||g&&yf(g),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<XS.length;r++){const i=XS[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=O5(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<R5;r++){const i=Oy[r],o=this.props[i];(Ld(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=Df(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=Fy(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 mD extends A5{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=qW(r,e||{},this);if(i&&(n&&(n=i(n)),r&&(r=i(r)),a&&(a=i(a))),o){YW(this,r,a);const c=D5(this,r,a,n);n=c.transitionEnd,r=c.target}return{transition:e,transitionEnd:n,...r}}}function I5(t){return window.getComputedStyle(t)}class M5 extends mD{constructor(){super(...arguments),this.type="html"}readValueFromInstance(e,n){if(_c.has(n)){const r=$y(n);return r&&r.default||0}else{const r=I5(e),i=(ik(n)?r.getPropertyValue(n):r[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(e,{transformPagePoint:n}){return rD(e,n)}build(e,n,r,i){Ry(e,n,r,i.transformTemplate)}scrapeMotionValuesFromProps(e,n){return Ly(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){ck(e,n,r,i)}}class L5 extends mD{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1}getBaseTargetFromProps(e,n){return e[n]}readValueFromInstance(e,n){if(_c.has(n)){const r=$y(n);return r&&r.default||0}return n=fk.has(n)?n:Dy(n),e.getAttribute(n)}measureInstanceViewportBox(){return Er()}scrapeMotionValuesFromProps(e,n){return hk(e,n)}build(e,n,r,i){Iy(e,n,r,this.isSVGTag,i.transformTemplate)}renderInstance(e,n,r,i){dk(e,n,r,i)}mount(e){this.isSVGTag=My(e.tagName),super.mount(e)}}const F5=(t,e)=>_y(t)?new L5(e,{enableHardwareAcceleration:!1}):new M5(e,{enableHardwareAcceleration:!0}),N5={layout:{ProjectionNode:dD,MeasureLayout:oD}},j5={...uz,...RU,...p5,...N5},vD=BH((t,e)=>yU(t,e,j5,F5));function yD(t){return Sp({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 bD(t){return Sp({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 Gy(t,e){return e?t:void 0}function B5(t){return Ie.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",fill:"currentColor",viewBox:"0 0 16 16",...t,children:Ie.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 $5(t){const{renderChildren:e,parentRef:n,onlyChild:r}=t,[i,o]=q.useState({top:0,left:0}),a=q.useRef(null),[c,f]=q.useState("auto");return q.useLayoutEffect(()=>{if(n.current&&a.current){const p=n.current.getBoundingClientRect(),w=a.current.getBoundingClientRect();let g=p.top;const T=p.left+p.width,E=w.height+(window.innerHeight-p.top)>window.innerHeight;E&&(console.log("overtop"),f(window.innerHeight-p.top-50)),p.top+w.height>window.innerHeight&&!E&&(g=p.top-w.height+p.height),o({top:g,left:T})}},[n,a]),r?e({maxHeight:c}):Ov.createPortal(Ie.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 Of(){return Of=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},Of.apply(null,arguments)}const V5=Object.freeze(Object.defineProperty({__proto__:null,get default(){return Of}},Symbol.toStringTag,{value:"Module"}));function wD(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,Yh(t,e)}function om(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
+ * content-type
10
+ * Copyright(c) 2015 Douglas Christopher Wilson
11
+ * MIT Licensed
12
+ */var KS=/; *([!#$%&'*+.^_`|~0-9A-Za-z-]+) *= *("(?:[\u000b\u0020\u0021\u0023-\u005b\u005d-\u007e\u0080-\u00ff]|\\[\u000b\u0020-\u00ff])*"|[!#$%&'*+.^_`|~0-9A-Za-z-]+) */g,H5=/\\([\u000b\u0020-\u00ff])/g,U5=/^[!#$%&'*+.^_`|~0-9A-Za-z-]+\/[!#$%&'*+.^_`|~0-9A-Za-z-]+$/,W5=z5;function z5(t){if(!t)throw new TypeError("argument string is required");var e=typeof t=="object"?Y5(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(!U5.test(r))throw new TypeError("invalid media type");var i=new G5(r.toLowerCase());if(n!==-1){var o,a,c;for(KS.lastIndex=n;a=KS.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(H5,"$1"))),i.parameters[o]=c}if(n!==e.length)throw new TypeError("invalid parameter format")}return i}function Y5(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 G5(t){this.parameters=Object.create(null),this.type=t}var ff=new Map,xD=function(e){return e.cloneNode(!0)},ZS=function(){return window.location.protocol==="file:"},SD=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=W5(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(ZS()?"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||ZS()&&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()},lu={},JS=function(e,n){lu[e]=lu[e]||[],lu[e].push(n)},q5=function(e){for(var n=function(a,c){setTimeout(function(){if(Array.isArray(lu[e])){var f=ff.get(e),p=lu[e][a];f instanceof SVGSVGElement&&p(null,xD(f)),f instanceof Error&&p(f),a===lu[e].length-1&&delete lu[e]}},0)},r=0,i=lu[e].length;r<i;r++)n(r)},X5=function(e,n,r){if(ff.has(e)){var i=ff.get(e);if(i===void 0){JS(e,r);return}if(i instanceof SVGSVGElement){r(null,xD(i));return}}ff.set(e,void 0),JS(e,r),SD(e,n,function(o,a){var c;o?ff.set(e,o):((c=a.responseXML)===null||c===void 0?void 0:c.documentElement)instanceof SVGSVGElement&&ff.set(e,a.responseXML.documentElement),q5(e)})},K5=function(e,n,r){SD(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)})},Z5=0,J5=function(){return++Z5},Ma=[],QS={},Q5="http://www.w3.org/2000/svg",sm="http://www.w3.org/1999/xlink",e1=function(e,n,r,i,o,a,c){var f=e.getAttribute("data-src")||e.getAttribute("src");if(!f){c(new Error("Invalid data-src or src attribute"));return}if(Ma.indexOf(e)!==-1){Ma.splice(Ma.indexOf(e),1),e=null;return}Ma.push(e),e.setAttribute("src","");var p=i?X5:K5;p(f,o,function(w,g){if(!g){Ma.splice(Ma.indexOf(e),1),e=null,c(w);return}var T=e.getAttribute("id");T&&g.setAttribute("id",T);var E=e.getAttribute("title");E&&g.setAttribute("title",E);var A=e.getAttribute("width");A&&g.setAttribute("width",A);var I=e.getAttribute("height");I&&g.setAttribute("height",I);var j=Array.from(new Set(om(om(om([],(g.getAttribute("class")||"").split(" "),!0),["injected-svg"],!1),(e.getAttribute("class")||"").split(" "),!0))).join(" ").trim();g.setAttribute("class",j);var _=e.getAttribute("style");_&&g.setAttribute("style",_),g.setAttribute("data-src",f);var H=[].filter.call(e.attributes,function(Ne){return/^data-\w[\w-]*$/.test(Ne.name)});if(Array.prototype.forEach.call(H,function(Ne){Ne.name&&Ne.value&&g.setAttribute(Ne.name,Ne.value)}),r){var W={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,Z,de,S,le;Object.keys(W).forEach(function(Ne){re=Ne,de=W[Ne],Z=g.querySelectorAll(re+"[id]");for(var tt=function(We,Je){S=Z[We].id,le=S+"-"+J5();var Ze;Array.prototype.forEach.call(de,function(At){Ze=g.querySelectorAll("["+At+'*="'+S+'"]');for(var Mt=0,Vn=Ze.length;Mt<Vn;Mt++){var mr=Ze[Mt].getAttribute(At);mr&&!mr.match(new RegExp('url\\("?#'+S+'"?\\)'))||Ze[Mt].setAttribute(At,"url(#"+le+")")}});for(var Qe=g.querySelectorAll("[*|href]"),it=[],ht=0,gt=Qe.length;ht<gt;ht++){var ct=Qe[ht].getAttributeNS(sm,"href");ct&&ct.toString()==="#"+Z[We].id&&it.push(Qe[ht])}for(var yt=0,et=it.length;yt<et;yt++)it[yt].setAttributeNS(sm,"href","#"+le);Z[We].id=le},me=0,Ee=Z.length;me<Ee;me++)tt(me)})}g.removeAttribute("xmlns:a");for(var ue=g.querySelectorAll("script"),ze=[],Me,Fe,Ve=0,Ue=ue.length;Ve<Ue;Ve++)Fe=ue[Ve].getAttribute("type"),(!Fe||Fe==="application/ecmascript"||Fe==="application/javascript"||Fe==="text/javascript")&&(Me=ue[Ve].innerText||ue[Ve].textContent,Me&&ze.push(Me),g.removeChild(ue[Ve]));if(ze.length>0&&(n==="always"||n==="once"&&!QS[f])){for(var he=0,ke=ze.length;he<ke;he++)new Function(ze[he])(window);QS[f]=!0}var Oe=g.querySelectorAll("style");if(Array.prototype.forEach.call(Oe,function(Ne){Ne.textContent+=""}),g.setAttribute("xmlns",Q5),g.setAttribute("xmlns:xlink",sm),a(g),!e.parentNode){Ma.splice(Ma.indexOf(e),1),e=null,c(new Error("Parent node is null"));return}e.parentNode.replaceChild(g,e),Ma.splice(Ma.indexOf(e),1),e=null,c(null,g)})},e4=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,f=r.beforeEach,p=f===void 0?function(){}:f,w=r.cacheRequests,g=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 H=0,W=0,re=e.length;W<re;W++)e1(e[W],E,_,g,I,p,function(Z,de){c(Z,de),e&&"length"in e&&e.length===++H&&o(H)});else e?e1(e,E,_,g,I,p,function(Z,de){c(Z,de),o(1),e=null}):o(0)},bv={exports:{}},Oh={exports:{}},mn={};/** @license React v16.13.1
13
+ * react-is.production.min.js
14
+ *
15
+ * Copyright (c) Facebook, Inc. and its affiliates.
16
+ *
17
+ * This source code is licensed under the MIT license found in the
18
+ * LICENSE file in the root directory of this source tree.
19
+ */var t1;function t4(){if(t1)return mn;t1=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,f=t?Symbol.for("react.async_mode"):60111,p=t?Symbol.for("react.concurrent_mode"):60111,w=t?Symbol.for("react.forward_ref"):60112,g=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,H=t?Symbol.for("react.scope"):60119;function W(Z){if(typeof Z=="object"&&Z!==null){var de=Z.$$typeof;switch(de){case e:switch(Z=Z.type,Z){case f:case p:case r:case o:case i:case g:return Z;default:switch(Z=Z&&Z.$$typeof,Z){case c:case w:case A:case E:case a:return Z;default:return de}}case n:return de}}}function re(Z){return W(Z)===p}return mn.AsyncMode=f,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=g,mn.isAsyncMode=function(Z){return re(Z)||W(Z)===f},mn.isConcurrentMode=re,mn.isContextConsumer=function(Z){return W(Z)===c},mn.isContextProvider=function(Z){return W(Z)===a},mn.isElement=function(Z){return typeof Z=="object"&&Z!==null&&Z.$$typeof===e},mn.isForwardRef=function(Z){return W(Z)===w},mn.isFragment=function(Z){return W(Z)===r},mn.isLazy=function(Z){return W(Z)===A},mn.isMemo=function(Z){return W(Z)===E},mn.isPortal=function(Z){return W(Z)===n},mn.isProfiler=function(Z){return W(Z)===o},mn.isStrictMode=function(Z){return W(Z)===i},mn.isSuspense=function(Z){return W(Z)===g},mn.isValidElementType=function(Z){return typeof Z=="string"||typeof Z=="function"||Z===r||Z===p||Z===o||Z===i||Z===g||Z===T||typeof Z=="object"&&Z!==null&&(Z.$$typeof===A||Z.$$typeof===E||Z.$$typeof===a||Z.$$typeof===c||Z.$$typeof===w||Z.$$typeof===j||Z.$$typeof===_||Z.$$typeof===H||Z.$$typeof===I)},mn.typeOf=W,mn}var vn={};/** @license React v16.13.1
20
+ * react-is.development.js
21
+ *
22
+ * Copyright (c) Facebook, Inc. and its affiliates.
23
+ *
24
+ * This source code is licensed under the MIT license found in the
25
+ * LICENSE file in the root directory of this source tree.
26
+ */var n1;function n4(){return n1||(n1=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,f=t?Symbol.for("react.async_mode"):60111,p=t?Symbol.for("react.concurrent_mode"):60111,w=t?Symbol.for("react.forward_ref"):60112,g=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,H=t?Symbol.for("react.scope"):60119;function W(et){return typeof et=="string"||typeof et=="function"||et===r||et===p||et===o||et===i||et===g||et===T||typeof et=="object"&&et!==null&&(et.$$typeof===A||et.$$typeof===E||et.$$typeof===a||et.$$typeof===c||et.$$typeof===w||et.$$typeof===j||et.$$typeof===_||et.$$typeof===H||et.$$typeof===I)}function re(et){if(typeof et=="object"&&et!==null){var At=et.$$typeof;switch(At){case e:var Mt=et.type;switch(Mt){case f:case p:case r:case o:case i:case g: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 Z=f,de=p,S=c,le=a,ue=e,ze=w,Me=r,Fe=A,Ve=E,Ue=n,he=o,ke=i,Oe=g,Ne=!1;function tt(et){return Ne||(Ne=!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.")),me(et)||re(et)===f}function me(et){return re(et)===p}function Ee(et){return re(et)===c}function Ye(et){return re(et)===a}function We(et){return typeof et=="object"&&et!==null&&et.$$typeof===e}function Je(et){return re(et)===w}function Ze(et){return re(et)===r}function Qe(et){return re(et)===A}function it(et){return re(et)===E}function ht(et){return re(et)===n}function gt(et){return re(et)===o}function ct(et){return re(et)===i}function yt(et){return re(et)===g}vn.AsyncMode=Z,vn.ConcurrentMode=de,vn.ContextConsumer=S,vn.ContextProvider=le,vn.Element=ue,vn.ForwardRef=ze,vn.Fragment=Me,vn.Lazy=Fe,vn.Memo=Ve,vn.Portal=Ue,vn.Profiler=he,vn.StrictMode=ke,vn.Suspense=Oe,vn.isAsyncMode=tt,vn.isConcurrentMode=me,vn.isContextConsumer=Ee,vn.isContextProvider=Ye,vn.isElement=We,vn.isForwardRef=Je,vn.isFragment=Ze,vn.isLazy=Qe,vn.isMemo=it,vn.isPortal=ht,vn.isProfiler=gt,vn.isStrictMode=ct,vn.isSuspense=yt,vn.isValidElementType=W,vn.typeOf=re}()),vn}var r1;function TD(){return r1||(r1=1,process.env.NODE_ENV==="production"?Oh.exports=t4():Oh.exports=n4()),Oh.exports}/*
27
+ object-assign
28
+ (c) Sindre Sorhus
29
+ @license MIT
30
+ */var am,i1;function r4(){if(i1)return am;i1=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 f=Object.getOwnPropertyNames(a).map(function(w){return a[w]});if(f.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 am=i()?Object.assign:function(o,a){for(var c,f=r(o),p,w=1;w<arguments.length;w++){c=Object(arguments[w]);for(var g in c)e.call(c,g)&&(f[g]=c[g]);if(t){p=t(c);for(var T=0;T<p.length;T++)n.call(c,p[T])&&(f[p[T]]=c[p[T]])}}return f},am}var lm,o1;function qy(){if(o1)return lm;o1=1;var t="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return lm=t,lm}var um,s1;function CD(){return s1||(s1=1,um=Function.call.bind(Object.prototype.hasOwnProperty)),um}var cm,a1;function i4(){if(a1)return cm;a1=1;var t=function(){};if(process.env.NODE_ENV!=="production"){var e=qy(),n={},r=CD();t=function(o){var a="Warning: "+o;typeof console<"u"&&console.error(a);try{throw new Error(a)}catch{}}}function i(o,a,c,f,p){if(process.env.NODE_ENV!=="production"){for(var w in o)if(r(o,w)){var g;try{if(typeof o[w]!="function"){var T=Error((f||"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}g=o[w](a,w,f,c,null,e)}catch(A){g=A}if(g&&!(g instanceof Error)&&t((f||"React class")+": type specification of "+c+" `"+w+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof g+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),g instanceof Error&&!(g.message in n)){n[g.message]=!0;var E=p?p():"";t("Failed "+c+" type: "+g.message+(E??""))}}}}return i.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(n={})},cm=i,cm}var fm,l1;function o4(){if(l1)return fm;l1=1;var t=TD(),e=r4(),n=qy(),r=CD(),i=i4(),o=function(){};process.env.NODE_ENV!=="production"&&(o=function(c){var f="Warning: "+c;typeof console<"u"&&console.error(f);try{throw new Error(f)}catch{}});function a(){return null}return fm=function(c,f){var p=typeof Symbol=="function"&&Symbol.iterator,w="@@iterator";function g(me){var Ee=me&&(p&&me[p]||me[w]);if(typeof Ee=="function")return Ee}var T="<<anonymous>>",E={array:_("array"),bigint:_("bigint"),bool:_("boolean"),func:_("function"),number:_("number"),object:_("object"),string:_("string"),symbol:_("symbol"),any:H(),arrayOf:W,element:re(),elementType:Z(),instanceOf:de,node:ze(),objectOf:le,oneOf:S,oneOfType:ue,shape:Fe,exact:Ve};function A(me,Ee){return me===Ee?me!==0||1/me===1/Ee:me!==me&&Ee!==Ee}function I(me,Ee){this.message=me,this.data=Ee&&typeof Ee=="object"?Ee:{},this.stack=""}I.prototype=Error.prototype;function j(me){if(process.env.NODE_ENV!=="production")var Ee={},Ye=0;function We(Ze,Qe,it,ht,gt,ct,yt){if(ht=ht||T,ct=ct||it,yt!==n){if(f){var et=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 et.name="Invariant Violation",et}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var At=ht+":"+it;!Ee[At]&&Ye<3&&(o("You are manually calling a React.PropTypes validation function for the `"+ct+"` prop on `"+ht+"`. 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."),Ee[At]=!0,Ye++)}}return Qe[it]==null?Ze?Qe[it]===null?new I("The "+gt+" `"+ct+"` is marked as required "+("in `"+ht+"`, but its value is `null`.")):new I("The "+gt+" `"+ct+"` is marked as required in "+("`"+ht+"`, but its value is `undefined`.")):null:me(Qe,it,ht,gt,ct)}var Je=We.bind(null,!1);return Je.isRequired=We.bind(null,!0),Je}function _(me){function Ee(Ye,We,Je,Ze,Qe,it){var ht=Ye[We],gt=ke(ht);if(gt!==me){var ct=Oe(ht);return new I("Invalid "+Ze+" `"+Qe+"` of type "+("`"+ct+"` supplied to `"+Je+"`, expected ")+("`"+me+"`."),{expectedType:me})}return null}return j(Ee)}function H(){return j(a)}function W(me){function Ee(Ye,We,Je,Ze,Qe){if(typeof me!="function")return new I("Property `"+Qe+"` of component `"+Je+"` has invalid PropType notation inside arrayOf.");var it=Ye[We];if(!Array.isArray(it)){var ht=ke(it);return new I("Invalid "+Ze+" `"+Qe+"` of type "+("`"+ht+"` supplied to `"+Je+"`, expected an array."))}for(var gt=0;gt<it.length;gt++){var ct=me(it,gt,Je,Ze,Qe+"["+gt+"]",n);if(ct instanceof Error)return ct}return null}return j(Ee)}function re(){function me(Ee,Ye,We,Je,Ze){var Qe=Ee[Ye];if(!c(Qe)){var it=ke(Qe);return new I("Invalid "+Je+" `"+Ze+"` of type "+("`"+it+"` supplied to `"+We+"`, expected a single ReactElement."))}return null}return j(me)}function Z(){function me(Ee,Ye,We,Je,Ze){var Qe=Ee[Ye];if(!t.isValidElementType(Qe)){var it=ke(Qe);return new I("Invalid "+Je+" `"+Ze+"` of type "+("`"+it+"` supplied to `"+We+"`, expected a single ReactElement type."))}return null}return j(me)}function de(me){function Ee(Ye,We,Je,Ze,Qe){if(!(Ye[We]instanceof me)){var it=me.name||T,ht=tt(Ye[We]);return new I("Invalid "+Ze+" `"+Qe+"` of type "+("`"+ht+"` supplied to `"+Je+"`, expected ")+("instance of `"+it+"`."))}return null}return j(Ee)}function S(me){if(!Array.isArray(me))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 Ee(Ye,We,Je,Ze,Qe){for(var it=Ye[We],ht=0;ht<me.length;ht++)if(A(it,me[ht]))return null;var gt=JSON.stringify(me,function(yt,et){var At=Oe(et);return At==="symbol"?String(et):et});return new I("Invalid "+Ze+" `"+Qe+"` of value `"+String(it)+"` "+("supplied to `"+Je+"`, expected one of "+gt+"."))}return j(Ee)}function le(me){function Ee(Ye,We,Je,Ze,Qe){if(typeof me!="function")return new I("Property `"+Qe+"` of component `"+Je+"` has invalid PropType notation inside objectOf.");var it=Ye[We],ht=ke(it);if(ht!=="object")return new I("Invalid "+Ze+" `"+Qe+"` of type "+("`"+ht+"` supplied to `"+Je+"`, expected an object."));for(var gt in it)if(r(it,gt)){var ct=me(it,gt,Je,Ze,Qe+"."+gt,n);if(ct instanceof Error)return ct}return null}return j(Ee)}function ue(me){if(!Array.isArray(me))return process.env.NODE_ENV!=="production"&&o("Invalid argument supplied to oneOfType, expected an instance of array."),a;for(var Ee=0;Ee<me.length;Ee++){var Ye=me[Ee];if(typeof Ye!="function")return o("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+Ne(Ye)+" at index "+Ee+"."),a}function We(Je,Ze,Qe,it,ht){for(var gt=[],ct=0;ct<me.length;ct++){var yt=me[ct],et=yt(Je,Ze,Qe,it,ht,n);if(et==null)return null;et.data&&r(et.data,"expectedType")&&gt.push(et.data.expectedType)}var At=gt.length>0?", expected one of type ["+gt.join(", ")+"]":"";return new I("Invalid "+it+" `"+ht+"` supplied to "+("`"+Qe+"`"+At+"."))}return j(We)}function ze(){function me(Ee,Ye,We,Je,Ze){return Ue(Ee[Ye])?null:new I("Invalid "+Je+" `"+Ze+"` supplied to "+("`"+We+"`, expected a ReactNode."))}return j(me)}function Me(me,Ee,Ye,We,Je){return new I((me||"React class")+": "+Ee+" type `"+Ye+"."+We+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+Je+"`.")}function Fe(me){function Ee(Ye,We,Je,Ze,Qe){var it=Ye[We],ht=ke(it);if(ht!=="object")return new I("Invalid "+Ze+" `"+Qe+"` of type `"+ht+"` "+("supplied to `"+Je+"`, expected `object`."));for(var gt in me){var ct=me[gt];if(typeof ct!="function")return Me(Je,Ze,Qe,gt,Oe(ct));var yt=ct(it,gt,Je,Ze,Qe+"."+gt,n);if(yt)return yt}return null}return j(Ee)}function Ve(me){function Ee(Ye,We,Je,Ze,Qe){var it=Ye[We],ht=ke(it);if(ht!=="object")return new I("Invalid "+Ze+" `"+Qe+"` of type `"+ht+"` "+("supplied to `"+Je+"`, expected `object`."));var gt=e({},Ye[We],me);for(var ct in gt){var yt=me[ct];if(r(me,ct)&&typeof yt!="function")return Me(Je,Ze,Qe,ct,Oe(yt));if(!yt)return new I("Invalid "+Ze+" `"+Qe+"` key `"+ct+"` supplied to `"+Je+"`.\nBad object: "+JSON.stringify(Ye[We],null," ")+`
31
+ Valid keys: `+JSON.stringify(Object.keys(me),null," "));var et=yt(it,ct,Je,Ze,Qe+"."+ct,n);if(et)return et}return null}return j(Ee)}function Ue(me){switch(typeof me){case"number":case"string":case"undefined":return!0;case"boolean":return!me;case"object":if(Array.isArray(me))return me.every(Ue);if(me===null||c(me))return!0;var Ee=g(me);if(Ee){var Ye=Ee.call(me),We;if(Ee!==me.entries){for(;!(We=Ye.next()).done;)if(!Ue(We.value))return!1}else for(;!(We=Ye.next()).done;){var Je=We.value;if(Je&&!Ue(Je[1]))return!1}}else return!1;return!0;default:return!1}}function he(me,Ee){return me==="symbol"?!0:Ee?Ee["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&Ee instanceof Symbol:!1}function ke(me){var Ee=typeof me;return Array.isArray(me)?"array":me instanceof RegExp?"object":he(Ee,me)?"symbol":Ee}function Oe(me){if(typeof me>"u"||me===null)return""+me;var Ee=ke(me);if(Ee==="object"){if(me instanceof Date)return"date";if(me instanceof RegExp)return"regexp"}return Ee}function Ne(me){var Ee=Oe(me);switch(Ee){case"array":case"object":return"an "+Ee;case"boolean":case"date":case"regexp":return"a "+Ee;default:return Ee}}function tt(me){return!me.constructor||!me.constructor.name?T:me.constructor.name}return E.checkPropTypes=i,E.resetWarningCache=i.resetWarningCache,E.PropTypes=E,E},fm}var dm,u1;function s4(){if(u1)return dm;u1=1;var t=qy();function e(){}function n(){}return n.resetWarningCache=e,dm=function(){function r(a,c,f,p,w,g){if(g!==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},dm}if(process.env.NODE_ENV!=="production"){var a4=TD(),l4=!0;bv.exports=o4()(a4.isElement,l4)}else bv.exports=s4()();var Cr=bv.exports;const _s=Pc(Cr);var u4=function(e){var n=(e==null?void 0:e.ownerDocument)||document;return n.defaultView||window},c4=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},f4=["afterInjection","beforeInjection","desc","evalScripts","fallback","httpRequestWithCredentials","loading","renumerateIRIElements","src","title","useRequestCache","wrapper"],_h="http://www.w3.org/2000/svg",c1="http://www.w3.org/1999/xlink",Wp=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}wD(e,t);var n=e.prototype;return n.renderSVG=function(){var i=this;if(this.reactWrapper instanceof u4(this.reactWrapper).Node){var o=this.props,a=o.desc,c=o.evalScripts,f=o.httpRequestWithCredentials,p=o.renumerateIRIElements,w=o.src,g=o.title,T=o.useRequestCache,E=this.props.onError,A=this.props.beforeInjection,I=this.props.afterInjection,j=this.props.wrapper,_,H;j==="svg"?(_=document.createElementNS(_h,j),_.setAttribute("xmlns",_h),_.setAttribute("xmlns:xlink",c1),H=document.createElementNS(_h,j)):(_=document.createElement(j),H=document.createElement(j)),_.appendChild(H),H.dataset.src=w,this.nonReactWrapper=this.reactWrapper.appendChild(_);var W=function(S){if(i.removeSVG(),!i._isMounted){E(S);return}i.setState(function(){return{hasError:!0,isLoading:!1}},function(){E(S)})},re=function(S,le){if(S){W(S);return}i._isMounted&&i.setState(function(){return{isLoading:!1}},function(){try{I(le)}catch(ue){W(ue)}})},Z=function(S){if(S.setAttribute("role","img"),a){var le=S.querySelector(":scope > desc");le&&S.removeChild(le);var ue=document.createElement("desc");ue.innerHTML=a,S.prepend(ue)}if(g){var ze=S.querySelector(":scope > title");ze&&S.removeChild(ze);var Me=document.createElement("title");Me.innerHTML=g,S.prepend(Me)}try{A(S)}catch(Fe){W(Fe)}};e4(H,{afterEach:re,beforeEach:Z,cacheRequests:T,evalScripts:c,httpRequestWithCredentials:f,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;c4(Of({},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,f=Av(i,f4),p=c;return kn.createElement(p,Of({},f,{ref:this.refCallback},c==="svg"?{xmlns:_h,xmlnsXlink:c1}:{}),this.state.isLoading&&a&&kn.createElement(a,null),this.state.hasError&&o&&kn.createElement(o,null))},e}(kn.Component);Wp.defaultProps={afterInjection:function(){},beforeInjection:function(){},desc:"",evalScripts:"never",fallback:null,httpRequestWithCredentials:!1,loading:null,onError:function(){},renumerateIRIElements:!0,title:"",useRequestCache:!0,wrapper:"div"};Wp.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 _f=new Map;_f.set("text",t=>{var e,n;return Ie.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()})});_f.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 Ie.jsx("div",{dangerouslySetInnerHTML:{__html:i},style:{width:24,height:24,margin:"0 auto"}})}return Ie.jsx(e,{svgString:t.icon})});_f.set("svgHttp",t=>Ie.jsx(Wp,{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")})}}));_f.set("img",t=>Ie.jsx("img",{src:t.icon||"/",alt:t.name,style:{height:24,maxHeight:24,maxWidth:24}}));function d4(t){return t.icon=(t.icon||"").trim(),t.icon?t.icon.startsWith("<svg")?"svgHtml":t.icon.endsWith(".svg")?"svgHttp":"img":"text"}function ED({item:t}){return(_f.get(d4(t))||_f.get("text"))(t)}function h4(t){return Ie.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",fill:"currentColor",viewBox:"0 0 16 16",...t,children:Ie.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 p4(t){const{renderChildren:e,parentRef:n,onlyChild:r,dropdownLevel:i}=t,[o,a]=q.useState({top:0,left:0}),c=q.useRef(null),[f,p]=q.useState("auto");return q.useLayoutEffect(()=>{if(n.current&&c.current){const w=n.current.getBoundingClientRect(),g=c.current.getBoundingClientRect();let T,E;if(i===1)T=w.bottom,E=w.left,g.height+T>window.innerHeight?(p(window.innerHeight-T-50),T=w.bottom-g.height):T=w.bottom;else if(i>1){T=w.top,E=w.left+w.width;const A=g.height+(window.innerHeight-w.top)>window.innerHeight;A&&(console.log("DropDown-fav overtop"),p(window.innerHeight-w.top-50)),w.top+g.height>window.innerHeight&&!A&&(T=w.top-g.height+w.height)}a({top:T-64,left:E})}},[n,c,i]),r?e({maxHeight:f}):Ov.createPortal(Ie.jsx("div",{ref:c,style:{position:"fixed",top:o.top,left:`calc(${o.left}px - var(--global-menu-width))`,zIndex:1200},children:e({maxHeight:f})}),n.current)}const Rf=new Map;Rf.set("text",t=>{var e,n;return Ie.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()})});Rf.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 Ie.jsx("div",{dangerouslySetInnerHTML:{__html:i},style:{width:24,height:24,margin:"0 auto"}})}return Ie.jsx(e,{svgString:t.icon})});Rf.set("svgHttp",t=>Ie.jsx(Wp,{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")})}}));Rf.set("img",t=>Ie.jsx("img",{src:t.icon||"/",alt:t.name,style:{height:24,maxHeight:24,maxWidth:24}}));function g4(t){return t.icon=(t.icon||"").trim(),t.icon?t.icon.startsWith("<svg")?"svgHtml":t.icon.endsWith(".svg")?"svgHttp":"img":"text"}function m4({item:t}){return(Rf.get(g4(t))||Rf.get("text"))(t)}function kD({...t}){var le,ue,ze;const e=t.item,n=t.level||0,r=!!((le=t.item.children)!=null&&le.length),i=`level-${n}`,o=(Me,Fe=i)=>`${Me} ${Fe} `,[a,c]=q.useState(!1),[f,p]=q.useState(e.isFavorite||!1),w=q.useRef(),g=q.useRef();g!=null&&g.current&&((ue=g==null?void 0:g.current)==null?void 0:ue.scrollWidth)>((ze=g==null?void 0:g.current)==null?void 0:ze.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.ssr||!T.includes("local")&&T!==E.origin||I!==A,_=r||n===0?"div":j?"a":bp.Link,H=e.path||"#",W=n+1,re=r&&a&&n>0,Z=()=>{c(!0)},de=()=>{c(!1)},S="/global-menu-config/api/v1/menu-items/user/set-favorite";return Ie.jsxs("div",{ref:w,className:o("menu-item__wrapper tree-node"),style:{borderRadius:"8px",transition:"all 0.3s"},onMouseOver:Z,onMouseOut:de,onDragStart:Me=>{n>1&&Me.preventDefault()},children:[Ie.jsxs(_,{to:H,href:H,draggable:"true",className:o("menu-item__link"),style:{width:"100%",transition:"all 0.3s"},onDragStart:Me=>{console.log("onDragStart component",Me.target)},children:[Ie.jsx(v4,{cls:o,item:e}),Ie.jsx("span",{className:o("menu-item__label"),ref:g,children:e.name}),Ie.jsx(y4,{menuLevel:n,hasChildren:r,isHovered:a,isFavorite:f,onClick:Me=>{const Fe={menuConfigId:e.id,isFavorite:Me},Ve=t.baseUrl+S;Rs.post(Ve,Fe).then(Ue=>{var he;p(Me),Bv("Set favorite menu item successfully"),(he=t.onSetFavoriteSuccess)==null||he.call(t,t.item.id,Me)}).catch(Ue=>{var he,ke;Hd(((ke=(he=Ue.response)==null?void 0:he.data)==null?void 0:ke.errorMessage)||"Have error when set favorite menu item")})}}),r&&Ie.jsx("div",{className:o("menu-item__icon-arrow__wrapper"),children:Ie.jsx(h4,{className:o("menu-item__icon-arrow__icon")})})]}),re&&Ie.jsx(p4,{parentRef:w,onlyChild:W<2,dropdownLevel:n,renderChildren:({maxHeight:Me})=>{var Fe;return Ie.jsx(vD.div,{className:o("menu-item__dropdown dropdown-favorite ? 'menu-item__dropdown--open' : 'menu-item__dropdown--close'}",`level-${W}`),style:Gy({maxHeight:Me,overflowY:"auto",paddingRight:3},Me!=="auto"&&!!W),children:(Fe=e.children)==null?void 0:Fe.map(Ve=>q.createElement(kD,{...t,key:Ve.id,item:Ve,level:W}))})}})]})}function v4({item:t,cls:e}){return Ie.jsx("div",{className:e("menu-item__icon"),children:Ie.jsx(m4,{item:t})})}function y4(t){const e={marginRight:t.hasChildren?10:0,fontSize:22,fill:ki.warning,minWidth:16};if(t.menuLevel!==0)return Ie.jsxs(Ie.Fragment,{children:[t.isHovered&&!t.isFavorite&&Ie.jsx(oa.Tooltip,{title:"Add to favorites",children:Ie.jsx(yD,{style:e,onClick:n=>{var r;n.preventDefault(),n.stopPropagation(),(r=t.onClick)==null||r.call(t,!0)}})}),t.isFavorite&&Ie.jsx(oa.Tooltip,{title:"Remove from favorites",children:Ie.jsx(bD,{style:e,onClick:n=>{var r;n.preventDefault(),n.stopPropagation(),(r=t.onClick)==null||r.call(t,!1)}})})]})}const b4=".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 .3s;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}";var sc={};/**
32
+ * @license React
33
+ * react-dom-server-legacy.browser.production.min.js
34
+ *
35
+ * Copyright (c) Facebook, Inc. and its affiliates.
36
+ *
37
+ * This source code is licensed under the MIT license found in the
38
+ * LICENSE file in the root directory of this source tree.
39
+ */var f1;function w4(){if(f1)return sc;f1=1;var t=q;function e(k){for(var F="https://reactjs.org/docs/error-decoder.html?invariant="+k,G=1;G<arguments.length;G++)F+="&args[]="+encodeURIComponent(arguments[G]);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,G,ee,Te,ge,Pe){this.acceptsBooleans=F===2||F===3||F===4,this.attributeName=ee,this.attributeNamespace=Te,this.mustUseProperty=G,this.propertyName=k,this.type=F,this.sanitizeURL=ge,this.removeEmptyString=Pe}var f={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(k){f[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];f[F]=new c(F,1,!1,k[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(k){f[k]=new c(k,2,!1,k.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(k){f[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){f[k]=new c(k,3,!1,k.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(k){f[k]=new c(k,3,!0,k,null,!1,!1)}),["capture","download"].forEach(function(k){f[k]=new c(k,4,!1,k,null,!1,!1)}),["cols","rows","size","span"].forEach(function(k){f[k]=new c(k,6,!1,k,null,!1,!1)}),["rowSpan","start"].forEach(function(k){f[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);f[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);f[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);f[F]=new c(F,1,!1,k,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(k){f[k]=new c(k,1,!1,k.toLowerCase(),null,!1,!1)}),f.xlinkHref=new c("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(k){f[k]=new c(k,1,!1,k.toLowerCase(),null,!0,!0)});var g={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(g).forEach(function(k){T.forEach(function(F){F=F+k.charAt(0).toUpperCase()+k.substring(1),g[F]=g[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 G="",ee,Te=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}Te!==ee&&(G+=k.substring(Te,ee)),Te=ee+1,G+=F}k=Te!==ee?G+k.substring(Te,ee):G}return k}var I=/([A-Z])/g,j=/^ms-/,_=Array.isArray;function H(k,F){return{insertionMode:k,selectedValue:F}}function W(k,F,G){switch(F){case"select":return H(1,G.value!=null?G.value:G.defaultValue);case"svg":return H(2,null);case"math":return H(3,null);case"foreignObject":return H(1,null);case"table":return H(4,null);case"thead":case"tbody":case"tfoot":return H(5,null);case"colgroup":return H(7,null);case"tr":return H(6,null)}return 4<=k.insertionMode||k.insertionMode===0?H(1,null):k}var re=new Map;function Z(k,F,G){if(typeof G!="object")throw Error(e(62));F=!0;for(var ee in G)if(n.call(G,ee)){var Te=G[ee];if(Te!=null&&typeof Te!="boolean"&&Te!==""){if(ee.indexOf("--")===0){var ge=A(ee);Te=A((""+Te).trim())}else{ge=ee;var Pe=re.get(ge);Pe!==void 0||(Pe=A(ge.replace(I,"-$1").toLowerCase().replace(j,"-ms-")),re.set(ge,Pe)),ge=Pe,Te=typeof Te=="number"?Te===0||n.call(g,ee)?""+Te:Te+"px":A((""+Te).trim())}F?(F=!1,k.push(' style="',ge,":",Te)):k.push(";",ge,":",Te)}}F||k.push('"')}function de(k,F,G,ee){switch(G){case"style":Z(k,F,ee);return;case"defaultValue":case"defaultChecked":case"innerHTML":case"suppressContentEditableWarning":case"suppressHydrationWarning":return}if(!(2<G.length)||G[0]!=="o"&&G[0]!=="O"||G[1]!=="n"&&G[1]!=="N"){if(F=f.hasOwnProperty(G)?f[G]:null,F!==null){switch(typeof ee){case"function":case"symbol":return;case"boolean":if(!F.acceptsBooleans)return}switch(G=F.attributeName,F.type){case 3:ee&&k.push(" ",G,'=""');break;case 4:ee===!0?k.push(" ",G,'=""'):ee!==!1&&k.push(" ",G,'="',A(ee),'"');break;case 5:isNaN(ee)||k.push(" ",G,'="',A(ee),'"');break;case 6:!isNaN(ee)&&1<=ee&&k.push(" ",G,'="',A(ee),'"');break;default:F.sanitizeURL&&(ee=""+ee),k.push(" ",G,'="',A(ee),'"')}}else if(a(G)){switch(typeof ee){case"function":case"symbol":return;case"boolean":if(F=G.toLowerCase().slice(0,5),F!=="data-"&&F!=="aria-")return}k.push(" ",G,'="',A(ee),'"')}}}function S(k,F,G){if(F!=null){if(G!=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 le(k){var F="";return t.Children.forEach(k,function(G){G!=null&&(F+=G)}),F}function ue(k,F,G,ee){k.push(Fe(G));var Te=G=null,ge;for(ge in F)if(n.call(F,ge)){var Pe=F[ge];if(Pe!=null)switch(ge){case"children":G=Pe;break;case"dangerouslySetInnerHTML":Te=Pe;break;default:de(k,ee,ge,Pe)}}return k.push(">"),S(k,Te,G),typeof G=="string"?(k.push(A(G)),null):G}var ze=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,Me=new Map;function Fe(k){var F=Me.get(k);if(F===void 0){if(!ze.test(k))throw Error(e(65,k));F="<"+k,Me.set(k,F)}return F}function Ve(k,F,G,ee,Te){switch(F){case"select":k.push(Fe("select"));var ge=null,Pe=null;for(ft in G)if(n.call(G,ft)){var Xe=G[ft];if(Xe!=null)switch(ft){case"children":ge=Xe;break;case"dangerouslySetInnerHTML":Pe=Xe;break;case"defaultValue":case"value":break;default:de(k,ee,ft,Xe)}}return k.push(">"),S(k,Pe,ge),ge;case"option":Pe=Te.selectedValue,k.push(Fe("option"));var pt=Xe=null,mt=null,ft=null;for(ge in G)if(n.call(G,ge)){var Ft=G[ge];if(Ft!=null)switch(ge){case"children":Xe=Ft;break;case"selected":mt=Ft;break;case"dangerouslySetInnerHTML":ft=Ft;break;case"value":pt=Ft;default:de(k,ee,ge,Ft)}}if(Pe!=null)if(G=pt!==null?""+pt:le(Xe),_(Pe)){for(ee=0;ee<Pe.length;ee++)if(""+Pe[ee]===G){k.push(' selected=""');break}}else""+Pe===G&&k.push(' selected=""');else mt&&k.push(' selected=""');return k.push(">"),S(k,ft,Xe),Xe;case"textarea":k.push(Fe("textarea")),ft=Pe=ge=null;for(Xe in G)if(n.call(G,Xe)&&(pt=G[Xe],pt!=null))switch(Xe){case"children":ft=pt;break;case"value":ge=pt;break;case"defaultValue":Pe=pt;break;case"dangerouslySetInnerHTML":throw Error(e(91));default:de(k,ee,Xe,pt)}if(ge===null&&Pe!==null&&(ge=Pe),k.push(">"),ft!=null){if(ge!=null)throw Error(e(92));if(_(ft)&&1<ft.length)throw Error(e(93));ge=""+ft}return typeof ge=="string"&&ge[0]===`
40
+ `&&k.push(`
41
+ `),ge!==null&&k.push(A(""+ge)),null;case"input":k.push(Fe("input")),pt=ft=Xe=ge=null;for(Pe in G)if(n.call(G,Pe)&&(mt=G[Pe],mt!=null))switch(Pe){case"children":case"dangerouslySetInnerHTML":throw Error(e(399,"input"));case"defaultChecked":pt=mt;break;case"defaultValue":Xe=mt;break;case"checked":ft=mt;break;case"value":ge=mt;break;default:de(k,ee,Pe,mt)}return ft!==null?de(k,ee,"checked",ft):pt!==null&&de(k,ee,"checked",pt),ge!==null?de(k,ee,"value",ge):Xe!==null&&de(k,ee,"value",Xe),k.push("/>"),null;case"menuitem":k.push(Fe("menuitem"));for(var Bn in G)if(n.call(G,Bn)&&(ge=G[Bn],ge!=null))switch(Bn){case"children":case"dangerouslySetInnerHTML":throw Error(e(400));default:de(k,ee,Bn,ge)}return k.push(">"),null;case"title":k.push(Fe("title")),ge=null;for(Ft in G)if(n.call(G,Ft)&&(Pe=G[Ft],Pe!=null))switch(Ft){case"children":ge=Pe;break;case"dangerouslySetInnerHTML":throw Error(e(434));default:de(k,ee,Ft,Pe)}return k.push(">"),ge;case"listing":case"pre":k.push(Fe(F)),Pe=ge=null;for(pt in G)if(n.call(G,pt)&&(Xe=G[pt],Xe!=null))switch(pt){case"children":ge=Xe;break;case"dangerouslySetInnerHTML":Pe=Xe;break;default:de(k,ee,pt,Xe)}if(k.push(">"),Pe!=null){if(ge!=null)throw Error(e(60));if(typeof Pe!="object"||!("__html"in Pe))throw Error(e(61));G=Pe.__html,G!=null&&(typeof G=="string"&&0<G.length&&G[0]===`
42
+ `?k.push(`
43
+ `,G):k.push(""+G))}return typeof ge=="string"&&ge[0]===`
44
+ `&&k.push(`
45
+ `),ge;case"area":case"base":case"br":case"col":case"embed":case"hr":case"img":case"keygen":case"link":case"meta":case"param":case"source":case"track":case"wbr":k.push(Fe(F));for(var zn in G)if(n.call(G,zn)&&(ge=G[zn],ge!=null))switch(zn){case"children":case"dangerouslySetInnerHTML":throw Error(e(399,F));default:de(k,ee,zn,ge)}return k.push("/>"),null;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 ue(k,G,F,ee);case"html":return Te.insertionMode===0&&k.push("<!DOCTYPE html>"),ue(k,G,F,ee);default:if(F.indexOf("-")===-1&&typeof G.is!="string")return ue(k,G,F,ee);k.push(Fe(F)),Pe=ge=null;for(mt in G)if(n.call(G,mt)&&(Xe=G[mt],Xe!=null))switch(mt){case"children":ge=Xe;break;case"dangerouslySetInnerHTML":Pe=Xe;break;case"style":Z(k,ee,Xe);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":break;default:a(mt)&&typeof Xe!="function"&&typeof Xe!="symbol"&&k.push(" ",mt,'="',A(Xe),'"')}return k.push(">"),S(k,Pe,ge),ge}}function Ue(k,F,G){if(k.push('<!--$?--><template id="'),G===null)throw Error(e(395));return k.push(G),k.push('"></template>')}function he(k,F,G,ee){switch(G.insertionMode){case 0:case 1:return k.push('<div hidden id="'),k.push(F.segmentPrefix),F=ee.toString(16),k.push(F),k.push('">');case 2:return k.push('<svg aria-hidden="true" style="display:none" id="'),k.push(F.segmentPrefix),F=ee.toString(16),k.push(F),k.push('">');case 3:return k.push('<math aria-hidden="true" style="display:none" id="'),k.push(F.segmentPrefix),F=ee.toString(16),k.push(F),k.push('">');case 4:return k.push('<table hidden id="'),k.push(F.segmentPrefix),F=ee.toString(16),k.push(F),k.push('">');case 5:return k.push('<table hidden><tbody id="'),k.push(F.segmentPrefix),F=ee.toString(16),k.push(F),k.push('">');case 6:return k.push('<table hidden><tr id="'),k.push(F.segmentPrefix),F=ee.toString(16),k.push(F),k.push('">');case 7:return k.push('<table hidden><colgroup id="'),k.push(F.segmentPrefix),F=ee.toString(16),k.push(F),k.push('">');default:throw Error(e(397))}}function ke(k,F){switch(F.insertionMode){case 0:case 1:return k.push("</div>");case 2:return k.push("</svg>");case 3:return k.push("</math>");case 4:return k.push("</table>");case 5:return k.push("</tbody></table>");case 6:return k.push("</tr></table>");case 7:return k.push("</colgroup></table>");default:throw Error(e(397))}}var Oe=/[<\u2028\u2029]/g;function Ne(k){return JSON.stringify(k).replace(Oe,function(F){switch(F){case"<":return"\\u003c";case"\u2028":return"\\u2028";case"\u2029":return"\\u2029";default:throw Error("escapeJSStringsForInstructionScripts encountered a match it does not know how to replace. this means the match regex and the replacement characters are no longer in sync. This is a bug in React")}})}function tt(k,F){return F=F===void 0?"":F,{bootstrapChunks:[],startInlineScript:"<script>",placeholderPrefix:F+"P:",segmentPrefix:F+"S:",boundaryPrefix:F+"B:",idPrefix:F,nextSuspenseID:0,sentCompleteSegmentFunction:!1,sentCompleteBoundaryFunction:!1,sentClientRenderFunction:!1,generateStaticMarkup:k}}function me(k,F,G,ee){return G.generateStaticMarkup?(k.push(A(F)),!1):(F===""?k=ee:(ee&&k.push("<!-- -->"),k.push(A(F)),k=!0),k)}var Ee=Object.assign,Ye=Symbol.for("react.element"),We=Symbol.for("react.portal"),Je=Symbol.for("react.fragment"),Ze=Symbol.for("react.strict_mode"),Qe=Symbol.for("react.profiler"),it=Symbol.for("react.provider"),ht=Symbol.for("react.context"),gt=Symbol.for("react.forward_ref"),ct=Symbol.for("react.suspense"),yt=Symbol.for("react.suspense_list"),et=Symbol.for("react.memo"),At=Symbol.for("react.lazy"),Mt=Symbol.for("react.scope"),Vn=Symbol.for("react.debug_trace_mode"),mr=Symbol.for("react.legacy_hidden"),Hn=Symbol.for("react.default_value"),Sn=Symbol.iterator;function $i(k){if(k==null)return null;if(typeof k=="function")return k.displayName||k.name||null;if(typeof k=="string")return k;switch(k){case Je:return"Fragment";case We:return"Portal";case Qe:return"Profiler";case Ze:return"StrictMode";case ct:return"Suspense";case yt:return"SuspenseList"}if(typeof k=="object")switch(k.$$typeof){case ht:return(k.displayName||"Context")+".Consumer";case it:return(k._context.displayName||"Context")+".Provider";case gt:var F=k.render;return k=k.displayName,k||(k=F.displayName||F.name||"",k=k!==""?"ForwardRef("+k+")":"ForwardRef"),k;case et:return F=k.displayName||null,F!==null?F:$i(k.type)||"Memo";case At:F=k._payload,k=k._init;try{return $i(k(F))}catch{}}return null}var kr={};function Jn(k,F){if(k=k.contextTypes,!k)return kr;var G={},ee;for(ee in k)G[ee]=F[ee];return G}var sn=null;function fn(k,F){if(k!==F){k.context._currentValue2=k.parentValue,k=k.parent;var G=F.parent;if(k===null){if(G!==null)throw Error(e(401))}else{if(G===null)throw Error(e(401));fn(k,G)}F.context._currentValue2=F.value}}function dn(k){k.context._currentValue2=k.parentValue,k=k.parent,k!==null&&dn(k)}function ut(k){var F=k.parent;F!==null&&ut(F),k.context._currentValue2=k.value}function Dn(k,F){if(k.context._currentValue2=k.parentValue,k=k.parent,k===null)throw Error(e(402));k.depth===F.depth?fn(k,F):Dn(k,F)}function oi(k,F){var G=F.parent;if(G===null)throw Error(e(402));k.depth===G.depth?fn(k,G):oi(k,G),F.context._currentValue2=F.value}function on(k){var F=sn;F!==k&&(F===null?ut(k):k===null?dn(F):F.depth===k.depth?fn(F,k):F.depth>k.depth?Dn(F,k):oi(F,k),sn=k)}var Vi={isMounted:function(){return!1},enqueueSetState:function(k,F){k=k._reactInternals,k.queue!==null&&k.queue.push(F)},enqueueReplaceState:function(k,F){k=k._reactInternals,k.replace=!0,k.queue=[F]},enqueueForceUpdate:function(){}};function Hi(k,F,G,ee){var Te=k.state!==void 0?k.state:null;k.updater=Vi,k.props=G,k.state=Te;var ge={queue:[],replace:!1};k._reactInternals=ge;var Pe=F.contextType;if(k.context=typeof Pe=="object"&&Pe!==null?Pe._currentValue2:ee,Pe=F.getDerivedStateFromProps,typeof Pe=="function"&&(Pe=Pe(G,Te),Te=Pe==null?Te:Ee({},Te,Pe),k.state=Te),typeof F.getDerivedStateFromProps!="function"&&typeof k.getSnapshotBeforeUpdate!="function"&&(typeof k.UNSAFE_componentWillMount=="function"||typeof k.componentWillMount=="function"))if(F=k.state,typeof k.componentWillMount=="function"&&k.componentWillMount(),typeof k.UNSAFE_componentWillMount=="function"&&k.UNSAFE_componentWillMount(),F!==k.state&&Vi.enqueueReplaceState(k,k.state,null),ge.queue!==null&&0<ge.queue.length)if(F=ge.queue,Pe=ge.replace,ge.queue=null,ge.replace=!1,Pe&&F.length===1)k.state=F[0];else{for(ge=Pe?F[0]:k.state,Te=!0,Pe=Pe?1:0;Pe<F.length;Pe++){var Xe=F[Pe];Xe=typeof Xe=="function"?Xe.call(k,ge,G,ee):Xe,Xe!=null&&(Te?(Te=!1,ge=Ee({},ge,Xe)):Ee(ge,Xe))}k.state=ge}else ge.queue=null}var Ui={id:1,overflow:""};function Dr(k,F,G){var ee=k.id;k=k.overflow;var Te=32-Nn(ee)-1;ee&=~(1<<Te),G+=1;var ge=32-Nn(F)+Te;if(30<ge){var Pe=Te-Te%5;return ge=(ee&(1<<Pe)-1).toString(32),ee>>=Pe,Te-=Pe,{id:1<<32-Nn(F)+Te|G<<Te|ee,overflow:ge+k}}return{id:1<<ge|G<<Te|ee,overflow:k}}var Nn=Math.clz32?Math.clz32:zr,Pr=Math.log,vr=Math.LN2;function zr(k){return k>>>=0,k===0?32:31-(Pr(k)/vr|0)|0}function Yr(k,F){return k===F&&(k!==0||1/k===1/F)||k!==k&&F!==F}var Ao=typeof Object.is=="function"?Object.is:Yr,Un=null,Gr=null,Qn=null,Wt=null,si=!1,Wi=!1,Pn=0,hn=null,ai=0;function li(){if(Un===null)throw Error(e(321));return Un}function Tn(){if(0<ai)throw Error(e(312));return{memoizedState:null,queue:null,next:null}}function so(){return Wt===null?Qn===null?(si=!1,Qn=Wt=Tn()):(si=!0,Wt=Qn):Wt.next===null?(si=!1,Wt=Wt.next=Tn()):(si=!0,Wt=Wt.next),Wt}function yr(){Gr=Un=null,Wi=!1,Qn=null,ai=0,Wt=hn=null}function ui(k,F){return typeof F=="function"?F(k):F}function an(k,F,G){if(Un=li(),Wt=so(),si){var ee=Wt.queue;if(F=ee.dispatch,hn!==null&&(G=hn.get(ee),G!==void 0)){hn.delete(ee),ee=Wt.memoizedState;do ee=k(ee,G.action),G=G.next;while(G!==null);return Wt.memoizedState=ee,[ee,F]}return[Wt.memoizedState,F]}return k=k===ui?typeof F=="function"?F():F:G!==void 0?G(F):F,Wt.memoizedState=k,k=Wt.queue={last:null,dispatch:null},k=k.dispatch=Is.bind(null,Un,k),[Wt.memoizedState,k]}function Di(k,F){if(Un=li(),Wt=so(),F=F===void 0?null:F,Wt!==null){var G=Wt.memoizedState;if(G!==null&&F!==null){var ee=G[1];e:if(ee===null)ee=!1;else{for(var Te=0;Te<ee.length&&Te<F.length;Te++)if(!Ao(F[Te],ee[Te])){ee=!1;break e}ee=!0}if(ee)return G[0]}}return k=k(),Wt.memoizedState=[k,F],k}function Is(k,F,G){if(25<=ai)throw Error(e(301));if(k===Un)if(Wi=!0,k={action:G,next:null},hn===null&&(hn=new Map),G=hn.get(F),G===void 0)hn.set(F,k);else{for(F=G;F.next!==null;)F=F.next;F.next=k}}function Ms(){throw Error(e(394))}function qr(){}var ao={readContext:function(k){return k._currentValue2},useContext:function(k){return li(),k._currentValue2},useMemo:Di,useReducer:an,useRef:function(k){Un=li(),Wt=so();var F=Wt.memoizedState;return F===null?(k={current:k},Wt.memoizedState=k):F},useState:function(k){return an(ui,k)},useInsertionEffect:qr,useLayoutEffect:function(){},useCallback:function(k,F){return Di(function(){return k},F)},useImperativeHandle:qr,useEffect:qr,useDebugValue:qr,useDeferredValue:function(k){return li(),k},useTransition:function(){return li(),[!1,Ms]},useId:function(){var k=Gr.treeContext,F=k.overflow;k=k.id,k=(k&~(1<<32-Nn(k)-1)).toString(32)+F;var G=lo;if(G===null)throw Error(e(404));return F=Pn++,k=":"+G.idPrefix+"R"+k,0<F&&(k+="H"+F.toString(32)),k+":"},useMutableSource:function(k,F){return li(),F(k._source)},useSyncExternalStore:function(k,F,G){if(G===void 0)throw Error(e(407));return G()}},lo=null,Pi=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentDispatcher;function er(k){return console.error(k),null}function Or(){}function _r(k,F,G,ee,Te,ge,Pe,Xe,pt){var mt=[],ft=new Set;return F={destination:null,responseState:F,progressiveChunkSize:ee===void 0?12800:ee,status:0,fatalError:null,nextSegmentId:0,allPendingTasks:0,pendingRootTasks:0,completedRootSegment:null,abortableTasks:ft,pingedTasks:mt,clientRenderedBoundaries:[],completedBoundaries:[],partialBoundaries:[],onError:Te===void 0?er:Te,onAllReady:Or,onShellReady:Pe===void 0?Or:Pe,onShellError:Or,onFatalError:Or},G=Xr(F,0,null,G,!1,!1),G.parentFlushed=!0,k=ci(F,k,null,G,ft,kr,null,Ui),mt.push(k),F}function ci(k,F,G,ee,Te,ge,Pe,Xe){k.allPendingTasks++,G===null?k.pendingRootTasks++:G.pendingTasks++;var pt={node:F,ping:function(){var mt=k.pingedTasks;mt.push(pt),mt.length===1&&Wn(k)},blockedBoundary:G,blockedSegment:ee,abortSet:Te,legacyContext:ge,context:Pe,treeContext:Xe};return Te.add(pt),pt}function Xr(k,F,G,ee,Te,ge){return{status:0,id:-1,index:F,parentFlushed:!1,chunks:[],children:[],formatContext:ee,boundary:G,lastPushedText:Te,textEmbedded:ge}}function br(k,F){if(k=k.onError(F),k!=null&&typeof k!="string")throw 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 k+'" instead');return k}function Rr(k,F){var G=k.onShellError;G(F),G=k.onFatalError,G(F),k.destination!==null?(k.status=2,k.destination.destroy(F)):(k.status=1,k.fatalError=F)}function tr(k,F,G,ee,Te){for(Un={},Gr=F,Pn=0,k=G(ee,Te);Wi;)Wi=!1,Pn=0,ai+=1,Wt=null,k=G(ee,Te);return yr(),k}function zi(k,F,G,ee){var Te=G.render(),ge=ee.childContextTypes;if(ge!=null){var Pe=F.legacyContext;if(typeof G.getChildContext!="function")ee=Pe;else{G=G.getChildContext();for(var Xe in G)if(!(Xe in ge))throw Error(e(108,$i(ee)||"Unknown",Xe));ee=Ee({},Pe,G)}F.legacyContext=ee,yn(k,F,Te),F.legacyContext=Pe}else yn(k,F,Te)}function Oi(k,F){if(k&&k.defaultProps){F=Ee({},F),k=k.defaultProps;for(var G in k)F[G]===void 0&&(F[G]=k[G]);return F}return F}function ar(k,F,G,ee,Te){if(typeof G=="function")if(G.prototype&&G.prototype.isReactComponent){Te=Jn(G,F.legacyContext);var ge=G.contextType;ge=new G(ee,typeof ge=="object"&&ge!==null?ge._currentValue2:Te),Hi(ge,G,ee,Te),zi(k,F,ge,G)}else{ge=Jn(G,F.legacyContext),Te=tr(k,F,G,ee,ge);var Pe=Pn!==0;if(typeof Te=="object"&&Te!==null&&typeof Te.render=="function"&&Te.$$typeof===void 0)Hi(Te,G,ee,ge),zi(k,F,Te,G);else if(Pe){ee=F.treeContext,F.treeContext=Dr(ee,1,0);try{yn(k,F,Te)}finally{F.treeContext=ee}}else yn(k,F,Te)}else if(typeof G=="string"){switch(Te=F.blockedSegment,ge=Ve(Te.chunks,G,ee,k.responseState,Te.formatContext),Te.lastPushedText=!1,Pe=Te.formatContext,Te.formatContext=W(Pe,G,ee),Ir(k,F,ge),Te.formatContext=Pe,G){case"area":case"base":case"br":case"col":case"embed":case"hr":case"img":case"input":case"keygen":case"link":case"meta":case"param":case"source":case"track":case"wbr":break;default:Te.chunks.push("</",G,">")}Te.lastPushedText=!1}else{switch(G){case mr:case Vn:case Ze:case Qe:case Je:yn(k,F,ee.children);return;case yt:yn(k,F,ee.children);return;case Mt:throw Error(e(343));case ct:e:{G=F.blockedBoundary,Te=F.blockedSegment,ge=ee.fallback,ee=ee.children,Pe=new Set;var Xe={id:null,rootSegmentID:-1,parentFlushed:!1,pendingTasks:0,forceClientRender:!1,completedSegments:[],byteSize:0,fallbackAbortableTasks:Pe,errorDigest:null},pt=Xr(k,Te.chunks.length,Xe,Te.formatContext,!1,!1);Te.children.push(pt),Te.lastPushedText=!1;var mt=Xr(k,0,null,Te.formatContext,!1,!1);mt.parentFlushed=!0,F.blockedBoundary=Xe,F.blockedSegment=mt;try{if(Ir(k,F,ee),k.responseState.generateStaticMarkup||mt.lastPushedText&&mt.textEmbedded&&mt.chunks.push("<!-- -->"),mt.status=1,wr(Xe,mt),Xe.pendingTasks===0)break e}catch(ft){mt.status=4,Xe.forceClientRender=!0,Xe.errorDigest=br(k,ft)}finally{F.blockedBoundary=G,F.blockedSegment=Te}F=ci(k,ge,G,pt,Pe,F.legacyContext,F.context,F.treeContext),k.pingedTasks.push(F)}return}if(typeof G=="object"&&G!==null)switch(G.$$typeof){case gt:if(ee=tr(k,F,G.render,ee,Te),Pn!==0){G=F.treeContext,F.treeContext=Dr(G,1,0);try{yn(k,F,ee)}finally{F.treeContext=G}}else yn(k,F,ee);return;case et:G=G.type,ee=Oi(G,ee),ar(k,F,G,ee,Te);return;case it:if(Te=ee.children,G=G._context,ee=ee.value,ge=G._currentValue2,G._currentValue2=ee,Pe=sn,sn=ee={parent:Pe,depth:Pe===null?0:Pe.depth+1,context:G,parentValue:ge,value:ee},F.context=ee,yn(k,F,Te),k=sn,k===null)throw Error(e(403));ee=k.parentValue,k.context._currentValue2=ee===Hn?k.context._defaultValue:ee,k=sn=k.parent,F.context=k;return;case ht:ee=ee.children,ee=ee(G._currentValue2),yn(k,F,ee);return;case At:Te=G._init,G=Te(G._payload),ee=Oi(G,ee),ar(k,F,G,ee,void 0);return}throw Error(e(130,G==null?G:typeof G,""))}}function yn(k,F,G){if(F.node=G,typeof G=="object"&&G!==null){switch(G.$$typeof){case Ye:ar(k,F,G.type,G.props,G.ref);return;case We:throw Error(e(257));case At:var ee=G._init;G=ee(G._payload),yn(k,F,G);return}if(_(G)){Ar(k,F,G);return}if(G===null||typeof G!="object"?ee=null:(ee=Sn&&G[Sn]||G["@@iterator"],ee=typeof ee=="function"?ee:null),ee&&(ee=ee.call(G))){if(G=ee.next(),!G.done){var Te=[];do Te.push(G.value),G=ee.next();while(!G.done);Ar(k,F,Te)}return}throw k=Object.prototype.toString.call(G),Error(e(31,k==="[object Object]"?"object with keys {"+Object.keys(G).join(", ")+"}":k))}typeof G=="string"?(ee=F.blockedSegment,ee.lastPushedText=me(F.blockedSegment.chunks,G,k.responseState,ee.lastPushedText)):typeof G=="number"&&(ee=F.blockedSegment,ee.lastPushedText=me(F.blockedSegment.chunks,""+G,k.responseState,ee.lastPushedText))}function Ar(k,F,G){for(var ee=G.length,Te=0;Te<ee;Te++){var ge=F.treeContext;F.treeContext=Dr(ge,ee,Te);try{Ir(k,F,G[Te])}finally{F.treeContext=ge}}}function Ir(k,F,G){var ee=F.blockedSegment.formatContext,Te=F.legacyContext,ge=F.context;try{return yn(k,F,G)}catch(pt){if(yr(),typeof pt=="object"&&pt!==null&&typeof pt.then=="function"){G=pt;var Pe=F.blockedSegment,Xe=Xr(k,Pe.chunks.length,null,Pe.formatContext,Pe.lastPushedText,!0);Pe.children.push(Xe),Pe.lastPushedText=!1,k=ci(k,F.node,F.blockedBoundary,Xe,F.abortSet,F.legacyContext,F.context,F.treeContext).ping,G.then(k,k),F.blockedSegment.formatContext=ee,F.legacyContext=Te,F.context=ge,on(ge)}else throw F.blockedSegment.formatContext=ee,F.legacyContext=Te,F.context=ge,on(ge),pt}}function fi(k){var F=k.blockedBoundary;k=k.blockedSegment,k.status=3,Kr(this,F,k)}function di(k,F,G){var ee=k.blockedBoundary;k.blockedSegment.status=3,ee===null?(F.allPendingTasks--,F.status!==2&&(F.status=2,F.destination!==null&&F.destination.push(null))):(ee.pendingTasks--,ee.forceClientRender||(ee.forceClientRender=!0,k=G===void 0?Error(e(432)):G,ee.errorDigest=F.onError(k),ee.parentFlushed&&F.clientRenderedBoundaries.push(ee)),ee.fallbackAbortableTasks.forEach(function(Te){return di(Te,F,G)}),ee.fallbackAbortableTasks.clear(),F.allPendingTasks--,F.allPendingTasks===0&&(ee=F.onAllReady,ee()))}function wr(k,F){if(F.chunks.length===0&&F.children.length===1&&F.children[0].boundary===null){var G=F.children[0];G.id=F.id,G.parentFlushed=!0,G.status===1&&wr(k,G)}else k.completedSegments.push(F)}function Kr(k,F,G){if(F===null){if(G.parentFlushed){if(k.completedRootSegment!==null)throw Error(e(389));k.completedRootSegment=G}k.pendingRootTasks--,k.pendingRootTasks===0&&(k.onShellError=Or,F=k.onShellReady,F())}else F.pendingTasks--,F.forceClientRender||(F.pendingTasks===0?(G.parentFlushed&&G.status===1&&wr(F,G),F.parentFlushed&&k.completedBoundaries.push(F),F.fallbackAbortableTasks.forEach(fi,k),F.fallbackAbortableTasks.clear()):G.parentFlushed&&G.status===1&&(wr(F,G),F.completedSegments.length===1&&F.parentFlushed&&k.partialBoundaries.push(F)));k.allPendingTasks--,k.allPendingTasks===0&&(k=k.onAllReady,k())}function Wn(k){if(k.status!==2){var F=sn,G=Pi.current;Pi.current=ao;var ee=lo;lo=k.responseState;try{var Te=k.pingedTasks,ge;for(ge=0;ge<Te.length;ge++){var Pe=Te[ge],Xe=k,pt=Pe.blockedSegment;if(pt.status===0){on(Pe.context);try{yn(Xe,Pe,Pe.node),Xe.responseState.generateStaticMarkup||pt.lastPushedText&&pt.textEmbedded&&pt.chunks.push("<!-- -->"),Pe.abortSet.delete(Pe),pt.status=1,Kr(Xe,Pe.blockedBoundary,pt)}catch(En){if(yr(),typeof En=="object"&&En!==null&&typeof En.then=="function"){var mt=Pe.ping;En.then(mt,mt)}else{Pe.abortSet.delete(Pe),pt.status=4;var ft=Pe.blockedBoundary,Ft=En,Bn=br(Xe,Ft);if(ft===null?Rr(Xe,Ft):(ft.pendingTasks--,ft.forceClientRender||(ft.forceClientRender=!0,ft.errorDigest=Bn,ft.parentFlushed&&Xe.clientRenderedBoundaries.push(ft))),Xe.allPendingTasks--,Xe.allPendingTasks===0){var zn=Xe.onAllReady;zn()}}}finally{}}}Te.splice(0,ge),k.destination!==null&&Cn(k,k.destination)}catch(En){br(k,En),Rr(k,En)}finally{lo=ee,Pi.current=G,G===ao&&on(F)}}}function hi(k,F,G){switch(G.parentFlushed=!0,G.status){case 0:var ee=G.id=k.nextSegmentId++;return G.lastPushedText=!1,G.textEmbedded=!1,k=k.responseState,F.push('<template id="'),F.push(k.placeholderPrefix),k=ee.toString(16),F.push(k),F.push('"></template>');case 1:G.status=2;var Te=!0;ee=G.chunks;var ge=0;G=G.children;for(var Pe=0;Pe<G.length;Pe++){for(Te=G[Pe];ge<Te.index;ge++)F.push(ee[ge]);Te=pi(k,F,Te)}for(;ge<ee.length-1;ge++)F.push(ee[ge]);return ge<ee.length&&(Te=F.push(ee[ge])),Te;default:throw Error(e(390))}}function pi(k,F,G){var ee=G.boundary;if(ee===null)return hi(k,F,G);if(ee.parentFlushed=!0,ee.forceClientRender)return k.responseState.generateStaticMarkup||(ee=ee.errorDigest,F.push("<!--$!-->"),F.push("<template"),ee&&(F.push(' data-dgst="'),ee=A(ee),F.push(ee),F.push('"')),F.push("></template>")),hi(k,F,G),k=k.responseState.generateStaticMarkup?!0:F.push("<!--/$-->"),k;if(0<ee.pendingTasks){ee.rootSegmentID=k.nextSegmentId++,0<ee.completedSegments.length&&k.partialBoundaries.push(ee);var Te=k.responseState,ge=Te.nextSuspenseID++;return Te=Te.boundaryPrefix+ge.toString(16),ee=ee.id=Te,Ue(F,k.responseState,ee),hi(k,F,G),F.push("<!--/$-->")}if(ee.byteSize>k.progressiveChunkSize)return ee.rootSegmentID=k.nextSegmentId++,k.completedBoundaries.push(ee),Ue(F,k.responseState,ee.id),hi(k,F,G),F.push("<!--/$-->");if(k.responseState.generateStaticMarkup||F.push("<!--$-->"),G=ee.completedSegments,G.length!==1)throw Error(e(391));return pi(k,F,G[0]),k=k.responseState.generateStaticMarkup?!0:F.push("<!--/$-->"),k}function _i(k,F,G){return he(F,k.responseState,G.formatContext,G.id),pi(k,F,G),ke(F,G.formatContext)}function nn(k,F,G){for(var ee=G.completedSegments,Te=0;Te<ee.length;Te++)jn(k,F,G,ee[Te]);if(ee.length=0,k=k.responseState,ee=G.id,G=G.rootSegmentID,F.push(k.startInlineScript),k.sentCompleteBoundaryFunction?F.push('$RC("'):(k.sentCompleteBoundaryFunction=!0,F.push('function $RC(a,b){a=document.getElementById(a);b=document.getElementById(b);b.parentNode.removeChild(b);if(a){a=a.previousSibling;var f=a.parentNode,c=a.nextSibling,e=0;do{if(c&&8===c.nodeType){var d=c.data;if("/$"===d)if(0===e)break;else e--;else"$"!==d&&"$?"!==d&&"$!"!==d||e++}d=c.nextSibling;f.removeChild(c);c=d}while(c);for(;b.firstChild;)f.insertBefore(b.firstChild,c);a.data="$";a._reactRetry&&a._reactRetry()}};$RC("')),ee===null)throw Error(e(395));return G=G.toString(16),F.push(ee),F.push('","'),F.push(k.segmentPrefix),F.push(G),F.push('")<\/script>')}function jn(k,F,G,ee){if(ee.status===2)return!0;var Te=ee.id;if(Te===-1){if((ee.id=G.rootSegmentID)===-1)throw Error(e(392));return _i(k,F,ee)}return _i(k,F,ee),k=k.responseState,F.push(k.startInlineScript),k.sentCompleteSegmentFunction?F.push('$RS("'):(k.sentCompleteSegmentFunction=!0,F.push('function $RS(a,b){a=document.getElementById(a);b=document.getElementById(b);for(a.parentNode.removeChild(a);a.firstChild;)b.parentNode.insertBefore(a.firstChild,b);b.parentNode.removeChild(b)};$RS("')),F.push(k.segmentPrefix),Te=Te.toString(16),F.push(Te),F.push('","'),F.push(k.placeholderPrefix),F.push(Te),F.push('")<\/script>')}function Cn(k,F){try{var G=k.completedRootSegment;if(G!==null&&k.pendingRootTasks===0){pi(k,F,G),k.completedRootSegment=null;var ee=k.responseState.bootstrapChunks;for(G=0;G<ee.length-1;G++)F.push(ee[G]);G<ee.length&&F.push(ee[G])}var Te=k.clientRenderedBoundaries,ge;for(ge=0;ge<Te.length;ge++){var Pe=Te[ge];ee=F;var Xe=k.responseState,pt=Pe.id,mt=Pe.errorDigest,ft=Pe.errorMessage,Ft=Pe.errorComponentStack;if(ee.push(Xe.startInlineScript),Xe.sentClientRenderFunction?ee.push('$RX("'):(Xe.sentClientRenderFunction=!0,ee.push('function $RX(b,c,d,e){var a=document.getElementById(b);a&&(b=a.previousSibling,b.data="$!",a=a.dataset,c&&(a.dgst=c),d&&(a.msg=d),e&&(a.stck=e),b._reactRetry&&b._reactRetry())};$RX("')),pt===null)throw Error(e(395));if(ee.push(pt),ee.push('"'),mt||ft||Ft){ee.push(",");var Bn=Ne(mt||"");ee.push(Bn)}if(ft||Ft){ee.push(",");var zn=Ne(ft||"");ee.push(zn)}if(Ft){ee.push(",");var En=Ne(Ft);ee.push(En)}if(!ee.push(")<\/script>")){k.destination=null,ge++,Te.splice(0,ge);return}}Te.splice(0,ge);var Zr=k.completedBoundaries;for(ge=0;ge<Zr.length;ge++)if(!nn(k,F,Zr[ge])){k.destination=null,ge++,Zr.splice(0,ge);return}Zr.splice(0,ge);var lr=k.partialBoundaries;for(ge=0;ge<lr.length;ge++){var Yi=lr[ge];e:{Te=k,Pe=F;var gi=Yi.completedSegments;for(Xe=0;Xe<gi.length;Xe++)if(!jn(Te,Pe,Yi,gi[Xe])){Xe++,gi.splice(0,Xe);var Gi=!1;break e}gi.splice(0,Xe),Gi=!0}if(!Gi){k.destination=null,ge++,lr.splice(0,ge);return}}lr.splice(0,ge);var Mr=k.completedBoundaries;for(ge=0;ge<Mr.length;ge++)if(!nn(k,F,Mr[ge])){k.destination=null,ge++,Mr.splice(0,ge);return}Mr.splice(0,ge)}finally{k.allPendingTasks===0&&k.pingedTasks.length===0&&k.clientRenderedBoundaries.length===0&&k.completedBoundaries.length===0&&F.push(null)}}function uo(k,F){try{var G=k.abortableTasks;G.forEach(function(ee){return di(ee,k,F)}),G.clear(),k.destination!==null&&Cn(k,k.destination)}catch(ee){br(k,ee),Rr(k,ee)}}function On(){}function _n(k,F,G,ee){var Te=!1,ge=null,Pe="",Xe={push:function(mt){return mt!==null&&(Pe+=mt),!0},destroy:function(mt){Te=!0,ge=mt}},pt=!1;if(k=_r(k,tt(G,F?F.identifierPrefix:void 0),{insertionMode:1,selectedValue:null},1/0,On,void 0,function(){pt=!0}),Wn(k),uo(k,ee),k.status===1)k.status=2,Xe.destroy(k.fatalError);else if(k.status!==2&&k.destination===null){k.destination=Xe;try{Cn(k,Xe)}catch(mt){br(k,mt),Rr(k,mt)}}if(Te)throw ge;if(!pt)throw Error(e(426));return Pe}return sc.renderToNodeStream=function(){throw Error(e(207))},sc.renderToStaticMarkup=function(k,F){return _n(k,F,!0,'The server used "renderToStaticMarkup" which does not support Suspense. If you intended to have the server wait for the suspended component please switch to "renderToReadableStream" which supports Suspense on the server')},sc.renderToStaticNodeStream=function(){throw Error(e(208))},sc.renderToString=function(k,F){return _n(k,F,!1,'The server used "renderToString" which does not support Suspense. If you intended for this Suspense boundary to render the fallback content on the server consider throwing an Error somewhere within the Suspense boundary. If you intended to have the server wait for the suspended component please switch to "renderToReadableStream" which supports Suspense on the server')},sc.version="18.3.1",sc}var Rh={};/**
46
+ * @license React
47
+ * react-dom-server.browser.production.min.js
48
+ *
49
+ * Copyright (c) Facebook, Inc. and its affiliates.
50
+ *
51
+ * This source code is licensed under the MIT license found in the
52
+ * LICENSE file in the root directory of this source tree.
53
+ */var d1;function x4(){if(d1)return Rh;d1=1;var t=q;function e(D){for(var M="https://reactjs.org/docs/error-decoder.html?invariant="+D,U=1;U<arguments.length;U++)M+="&args[]="+encodeURIComponent(arguments[U]);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 U=n.length-r;U<M.length&&(U===0?D.enqueue(n):(n.set(M.subarray(0,U),r),D.enqueue(n),M=M.subarray(U)),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 f(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 g=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 g.call(A,D)?!0:g.call(E,D)?!1:T.test(D)?A[D]=!0:(E[D]=!0,!1)}function j(D,M,U,Q,ye,be,Ae){this.acceptsBooleans=M===2||M===3||M===4,this.attributeName=Q,this.attributeNamespace=ye,this.mustUseProperty=U,this.propertyName=D,this.type=M,this.sanitizeURL=be,this.removeEmptyString=Ae}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 H=/[\-:]([a-z])/g;function W(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(H,W);_[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(H,W);_[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(H,W);_[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},Z=["Webkit","ms","Moz","O"];Object.keys(re).forEach(function(D){Z.forEach(function(M){M=M+D.charAt(0).toUpperCase()+D.substring(1),re[M]=re[D]})});var de=/["'&<>]/;function S(D){if(typeof D=="boolean"||typeof D=="number")return""+D;D=""+D;var M=de.exec(D);if(M){var U="",Q,ye=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}ye!==Q&&(U+=D.substring(ye,Q)),ye=Q+1,U+=M}D=ye!==Q?U+D.substring(ye,Q):U}return D}var le=/([A-Z])/g,ue=/^ms-/,ze=Array.isArray,Me=p("<script>"),Fe=p("<\/script>"),Ve=p('<script src="'),Ue=p('<script type="module" src="'),he=p('" async=""><\/script>'),ke=/(<\/|<)(s)(cript)/gi;function Oe(D,M,U,Q){return""+M+(U==="s"?"\\u0073":"\\u0053")+Q}function Ne(D,M,U,Q,ye){D=D===void 0?"":D,M=M===void 0?Me:p('<script nonce="'+S(M)+'">');var be=[];if(U!==void 0&&be.push(M,f((""+U).replace(ke,Oe)),Fe),Q!==void 0)for(U=0;U<Q.length;U++)be.push(Ve,f(S(Q[U])),he);if(ye!==void 0)for(Q=0;Q<ye.length;Q++)be.push(Ue,f(S(ye[Q])),he);return{bootstrapChunks:be,startInlineScript:M,placeholderPrefix:p(D+"P:"),segmentPrefix:p(D+"S:"),boundaryPrefix:D+"B:",idPrefix:D,nextSuspenseID:0,sentCompleteSegmentFunction:!1,sentCompleteBoundaryFunction:!1,sentClientRenderFunction:!1}}function tt(D,M){return{insertionMode:D,selectedValue:M}}function me(D){return tt(D==="http://www.w3.org/2000/svg"?2:D==="http://www.w3.org/1998/Math/MathML"?3:0,null)}function Ee(D,M,U){switch(M){case"select":return tt(1,U.value!=null?U.value:U.defaultValue);case"svg":return tt(2,null);case"math":return tt(3,null);case"foreignObject":return tt(1,null);case"table":return tt(4,null);case"thead":case"tbody":case"tfoot":return tt(5,null);case"colgroup":return tt(7,null);case"tr":return tt(6,null)}return 4<=D.insertionMode||D.insertionMode===0?tt(1,null):D}var Ye=p("<!-- -->");function We(D,M,U,Q){return M===""?Q:(Q&&D.push(Ye),D.push(f(S(M))),!0)}var Je=new Map,Ze=p(' style="'),Qe=p(":"),it=p(";");function ht(D,M,U){if(typeof U!="object")throw Error(e(62));M=!0;for(var Q in U)if(g.call(U,Q)){var ye=U[Q];if(ye!=null&&typeof ye!="boolean"&&ye!==""){if(Q.indexOf("--")===0){var be=f(S(Q));ye=f(S((""+ye).trim()))}else{be=Q;var Ae=Je.get(be);Ae!==void 0||(Ae=p(S(be.replace(le,"-$1").toLowerCase().replace(ue,"-ms-"))),Je.set(be,Ae)),be=Ae,ye=typeof ye=="number"?ye===0||g.call(re,Q)?f(""+ye):f(ye+"px"):f(S((""+ye).trim()))}M?(M=!1,D.push(Ze,be,Qe,ye)):D.push(it,be,Qe,ye)}}M||D.push(yt)}var gt=p(" "),ct=p('="'),yt=p('"'),et=p('=""');function At(D,M,U,Q){switch(U){case"style":ht(D,M,Q);return;case"defaultValue":case"defaultChecked":case"innerHTML":case"suppressContentEditableWarning":case"suppressHydrationWarning":return}if(!(2<U.length)||U[0]!=="o"&&U[0]!=="O"||U[1]!=="n"&&U[1]!=="N"){if(M=_.hasOwnProperty(U)?_[U]:null,M!==null){switch(typeof Q){case"function":case"symbol":return;case"boolean":if(!M.acceptsBooleans)return}switch(U=f(M.attributeName),M.type){case 3:Q&&D.push(gt,U,et);break;case 4:Q===!0?D.push(gt,U,et):Q!==!1&&D.push(gt,U,ct,f(S(Q)),yt);break;case 5:isNaN(Q)||D.push(gt,U,ct,f(S(Q)),yt);break;case 6:!isNaN(Q)&&1<=Q&&D.push(gt,U,ct,f(S(Q)),yt);break;default:M.sanitizeURL&&(Q=""+Q),D.push(gt,U,ct,f(S(Q)),yt)}}else if(I(U)){switch(typeof Q){case"function":case"symbol":return;case"boolean":if(M=U.toLowerCase().slice(0,5),M!=="data-"&&M!=="aria-")return}D.push(gt,f(U),ct,f(S(Q)),yt)}}}var Mt=p(">"),Vn=p("/>");function mr(D,M,U){if(M!=null){if(U!=null)throw Error(e(60));if(typeof M!="object"||!("__html"in M))throw Error(e(61));M=M.__html,M!=null&&D.push(f(""+M))}}function Hn(D){var M="";return t.Children.forEach(D,function(U){U!=null&&(M+=U)}),M}var Sn=p(' selected=""');function $i(D,M,U,Q){D.push(fn(U));var ye=U=null,be;for(be in M)if(g.call(M,be)){var Ae=M[be];if(Ae!=null)switch(be){case"children":U=Ae;break;case"dangerouslySetInnerHTML":ye=Ae;break;default:At(D,Q,be,Ae)}}return D.push(Mt),mr(D,ye,U),typeof U=="string"?(D.push(f(S(U))),null):U}var kr=p(`
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,U,Q,ye){switch(M){case"select":D.push(fn("select"));var be=null,Ae=null;for(St in U)if(g.call(U,St)){var Ge=U[St];if(Ge!=null)switch(St){case"children":be=Ge;break;case"dangerouslySetInnerHTML":Ae=Ge;break;case"defaultValue":case"value":break;default:At(D,Q,St,Ge)}}return D.push(Mt),mr(D,Ae,be),be;case"option":Ae=ye.selectedValue,D.push(fn("option"));var dt=Ge=null,_t=null,St=null;for(be in U)if(g.call(U,be)){var vt=U[be];if(vt!=null)switch(be){case"children":Ge=vt;break;case"selected":_t=vt;break;case"dangerouslySetInnerHTML":St=vt;break;case"value":dt=vt;default:At(D,Q,be,vt)}}if(Ae!=null)if(U=dt!==null?""+dt:Hn(Ge),ze(Ae)){for(Q=0;Q<Ae.length;Q++)if(""+Ae[Q]===U){D.push(Sn);break}}else""+Ae===U&&D.push(Sn);else _t&&D.push(Sn);return D.push(Mt),mr(D,St,Ge),Ge;case"textarea":D.push(fn("textarea")),St=Ae=be=null;for(Ge in U)if(g.call(U,Ge)&&(dt=U[Ge],dt!=null))switch(Ge){case"children":St=dt;break;case"value":be=dt;break;case"defaultValue":Ae=dt;break;case"dangerouslySetInnerHTML":throw Error(e(91));default:At(D,Q,Ge,dt)}if(be===null&&Ae!==null&&(be=Ae),D.push(Mt),St!=null){if(be!=null)throw Error(e(92));if(ze(St)&&1<St.length)throw Error(e(93));be=""+St}return typeof be=="string"&&be[0]===`
55
+ `&&D.push(kr),be!==null&&D.push(f(S(""+be))),null;case"input":D.push(fn("input")),dt=St=Ge=be=null;for(Ae in U)if(g.call(U,Ae)&&(_t=U[Ae],_t!=null))switch(Ae){case"children":case"dangerouslySetInnerHTML":throw Error(e(399,"input"));case"defaultChecked":dt=_t;break;case"defaultValue":Ge=_t;break;case"checked":St=_t;break;case"value":be=_t;break;default:At(D,Q,Ae,_t)}return St!==null?At(D,Q,"checked",St):dt!==null&&At(D,Q,"checked",dt),be!==null?At(D,Q,"value",be):Ge!==null&&At(D,Q,"value",Ge),D.push(Vn),null;case"menuitem":D.push(fn("menuitem"));for(var An in U)if(g.call(U,An)&&(be=U[An],be!=null))switch(An){case"children":case"dangerouslySetInnerHTML":throw Error(e(400));default:At(D,Q,An,be)}return D.push(Mt),null;case"title":D.push(fn("title")),be=null;for(vt in U)if(g.call(U,vt)&&(Ae=U[vt],Ae!=null))switch(vt){case"children":be=Ae;break;case"dangerouslySetInnerHTML":throw Error(e(434));default:At(D,Q,vt,Ae)}return D.push(Mt),be;case"listing":case"pre":D.push(fn(M)),Ae=be=null;for(dt in U)if(g.call(U,dt)&&(Ge=U[dt],Ge!=null))switch(dt){case"children":be=Ge;break;case"dangerouslySetInnerHTML":Ae=Ge;break;default:At(D,Q,dt,Ge)}if(D.push(Mt),Ae!=null){if(be!=null)throw Error(e(60));if(typeof Ae!="object"||!("__html"in Ae))throw Error(e(61));U=Ae.__html,U!=null&&(typeof U=="string"&&0<U.length&&U[0]===`
56
+ `?D.push(kr,f(U)):D.push(f(""+U)))}return typeof be=="string"&&be[0]===`
57
+ `&&D.push(kr),be;case"area":case"base":case"br":case"col":case"embed":case"hr":case"img":case"keygen":case"link":case"meta":case"param":case"source":case"track":case"wbr":D.push(fn(M));for(var bn in U)if(g.call(U,bn)&&(be=U[bn],be!=null))switch(bn){case"children":case"dangerouslySetInnerHTML":throw Error(e(399,M));default:At(D,Q,bn,be)}return D.push(Vn),null;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 $i(D,U,M,Q);case"html":return ye.insertionMode===0&&D.push(dn),$i(D,U,M,Q);default:if(M.indexOf("-")===-1&&typeof U.is!="string")return $i(D,U,M,Q);D.push(fn(M)),Ae=be=null;for(_t in U)if(g.call(U,_t)&&(Ge=U[_t],Ge!=null))switch(_t){case"children":be=Ge;break;case"dangerouslySetInnerHTML":Ae=Ge;break;case"style":ht(D,Q,Ge);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":break;default:I(_t)&&typeof Ge!="function"&&typeof Ge!="symbol"&&D.push(gt,f(_t),ct,f(S(Ge)),yt)}return D.push(Mt),mr(D,Ae,be),be}}var Dn=p("</"),oi=p(">"),on=p('<template id="'),Vi=p('"></template>'),Hi=p("<!--$-->"),Ui=p('<!--$?--><template id="'),Dr=p('"></template>'),Nn=p("<!--$!-->"),Pr=p("<!--/$-->"),vr=p("<template"),zr=p('"'),Yr=p(' data-dgst="');p(' data-msg="'),p(' data-stck="');var Ao=p("></template>");function Un(D,M,U){if(i(D,Ui),U===null)throw Error(e(395));return i(D,U),o(D,Dr)}var Gr=p('<div hidden id="'),Qn=p('">'),Wt=p("</div>"),si=p('<svg aria-hidden="true" style="display:none" id="'),Wi=p('">'),Pn=p("</svg>"),hn=p('<math aria-hidden="true" style="display:none" id="'),ai=p('">'),li=p("</math>"),Tn=p('<table hidden id="'),so=p('">'),yr=p("</table>"),ui=p('<table hidden><tbody id="'),an=p('">'),Di=p("</tbody></table>"),Is=p('<table hidden><tr id="'),Ms=p('">'),qr=p("</tr></table>"),ao=p('<table hidden><colgroup id="'),lo=p('">'),Pi=p("</colgroup></table>");function er(D,M,U,Q){switch(U.insertionMode){case 0:case 1:return i(D,Gr),i(D,M.segmentPrefix),i(D,f(Q.toString(16))),o(D,Qn);case 2:return i(D,si),i(D,M.segmentPrefix),i(D,f(Q.toString(16))),o(D,Wi);case 3:return i(D,hn),i(D,M.segmentPrefix),i(D,f(Q.toString(16))),o(D,ai);case 4:return i(D,Tn),i(D,M.segmentPrefix),i(D,f(Q.toString(16))),o(D,so);case 5:return i(D,ui),i(D,M.segmentPrefix),i(D,f(Q.toString(16))),o(D,an);case 6:return i(D,Is),i(D,M.segmentPrefix),i(D,f(Q.toString(16))),o(D,Ms);case 7:return i(D,ao),i(D,M.segmentPrefix),i(D,f(Q.toString(16))),o(D,lo);default:throw Error(e(397))}}function Or(D,M){switch(M.insertionMode){case 0:case 1:return o(D,Wt);case 2:return o(D,Pn);case 3:return o(D,li);case 4:return o(D,yr);case 5:return o(D,Di);case 6:return o(D,qr);case 7:return o(D,Pi);default:throw Error(e(397))}}var _r=p('function $RS(a,b){a=document.getElementById(a);b=document.getElementById(b);for(a.parentNode.removeChild(a);a.firstChild;)b.parentNode.insertBefore(a.firstChild,b);b.parentNode.removeChild(b)};$RS("'),ci=p('$RS("'),Xr=p('","'),br=p('")<\/script>'),Rr=p('function $RC(a,b){a=document.getElementById(a);b=document.getElementById(b);b.parentNode.removeChild(b);if(a){a=a.previousSibling;var f=a.parentNode,c=a.nextSibling,e=0;do{if(c&&8===c.nodeType){var d=c.data;if("/$"===d)if(0===e)break;else e--;else"$"!==d&&"$?"!==d&&"$!"!==d||e++}d=c.nextSibling;f.removeChild(c);c=d}while(c);for(;b.firstChild;)f.insertBefore(b.firstChild,c);a.data="$";a._reactRetry&&a._reactRetry()}};$RC("'),tr=p('$RC("'),zi=p('","'),Oi=p('")<\/script>'),ar=p('function $RX(b,c,d,e){var a=document.getElementById(b);a&&(b=a.previousSibling,b.data="$!",a=a.dataset,c&&(a.dgst=c),d&&(a.msg=d),e&&(a.stck=e),b._reactRetry&&b._reactRetry())};$RX("'),yn=p('$RX("'),Ar=p('"'),Ir=p(")<\/script>"),fi=p(","),di=/[<\u2028\u2029]/g;function wr(D){return JSON.stringify(D).replace(di,function(M){switch(M){case"<":return"\\u003c";case"\u2028":return"\\u2028";case"\u2029":return"\\u2029";default:throw Error("escapeJSStringsForInstructionScripts encountered a match it does not know how to replace. this means the match regex and the replacement characters are no longer in sync. This is a bug in React")}})}var Kr=Object.assign,Wn=Symbol.for("react.element"),hi=Symbol.for("react.portal"),pi=Symbol.for("react.fragment"),_i=Symbol.for("react.strict_mode"),nn=Symbol.for("react.profiler"),jn=Symbol.for("react.provider"),Cn=Symbol.for("react.context"),uo=Symbol.for("react.forward_ref"),On=Symbol.for("react.suspense"),_n=Symbol.for("react.suspense_list"),k=Symbol.for("react.memo"),F=Symbol.for("react.lazy"),G=Symbol.for("react.scope"),ee=Symbol.for("react.debug_trace_mode"),Te=Symbol.for("react.legacy_hidden"),ge=Symbol.for("react.default_value"),Pe=Symbol.iterator;function Xe(D){if(D==null)return null;if(typeof D=="function")return D.displayName||D.name||null;if(typeof D=="string")return D;switch(D){case pi:return"Fragment";case hi:return"Portal";case nn:return"Profiler";case _i:return"StrictMode";case On:return"Suspense";case _n:return"SuspenseList"}if(typeof D=="object")switch(D.$$typeof){case Cn:return(D.displayName||"Context")+".Consumer";case jn:return(D._context.displayName||"Context")+".Provider";case uo:var M=D.render;return D=D.displayName,D||(D=M.displayName||M.name||"",D=D!==""?"ForwardRef("+D+")":"ForwardRef"),D;case k:return M=D.displayName||null,M!==null?M:Xe(D.type)||"Memo";case F:M=D._payload,D=D._init;try{return Xe(D(M))}catch{}}return null}var pt={};function mt(D,M){if(D=D.contextTypes,!D)return pt;var U={},Q;for(Q in D)U[Q]=M[Q];return U}var ft=null;function Ft(D,M){if(D!==M){D.context._currentValue=D.parentValue,D=D.parent;var U=M.parent;if(D===null){if(U!==null)throw Error(e(401))}else{if(U===null)throw Error(e(401));Ft(D,U)}M.context._currentValue=M.value}}function Bn(D){D.context._currentValue=D.parentValue,D=D.parent,D!==null&&Bn(D)}function zn(D){var M=D.parent;M!==null&&zn(M),D.context._currentValue=D.value}function En(D,M){if(D.context._currentValue=D.parentValue,D=D.parent,D===null)throw Error(e(402));D.depth===M.depth?Ft(D,M):En(D,M)}function Zr(D,M){var U=M.parent;if(U===null)throw Error(e(402));D.depth===U.depth?Ft(D,U):Zr(D,U),M.context._currentValue=M.value}function lr(D){var M=ft;M!==D&&(M===null?zn(D):D===null?Bn(M):M.depth===D.depth?Ft(M,D):M.depth>D.depth?En(M,D):Zr(M,D),ft=D)}var Yi={isMounted:function(){return!1},enqueueSetState:function(D,M){D=D._reactInternals,D.queue!==null&&D.queue.push(M)},enqueueReplaceState:function(D,M){D=D._reactInternals,D.replace=!0,D.queue=[M]},enqueueForceUpdate:function(){}};function gi(D,M,U,Q){var ye=D.state!==void 0?D.state:null;D.updater=Yi,D.props=U,D.state=ye;var be={queue:[],replace:!1};D._reactInternals=be;var Ae=M.contextType;if(D.context=typeof Ae=="object"&&Ae!==null?Ae._currentValue:Q,Ae=M.getDerivedStateFromProps,typeof Ae=="function"&&(Ae=Ae(U,ye),ye=Ae==null?ye:Kr({},ye,Ae),D.state=ye),typeof M.getDerivedStateFromProps!="function"&&typeof D.getSnapshotBeforeUpdate!="function"&&(typeof D.UNSAFE_componentWillMount=="function"||typeof D.componentWillMount=="function"))if(M=D.state,typeof D.componentWillMount=="function"&&D.componentWillMount(),typeof D.UNSAFE_componentWillMount=="function"&&D.UNSAFE_componentWillMount(),M!==D.state&&Yi.enqueueReplaceState(D,D.state,null),be.queue!==null&&0<be.queue.length)if(M=be.queue,Ae=be.replace,be.queue=null,be.replace=!1,Ae&&M.length===1)D.state=M[0];else{for(be=Ae?M[0]:D.state,ye=!0,Ae=Ae?1:0;Ae<M.length;Ae++){var Ge=M[Ae];Ge=typeof Ge=="function"?Ge.call(D,be,U,Q):Ge,Ge!=null&&(ye?(ye=!1,be=Kr({},be,Ge)):Kr(be,Ge))}D.state=be}else be.queue=null}var Gi={id:1,overflow:""};function Mr(D,M,U){var Q=D.id;D=D.overflow;var ye=32-qi(Q)-1;Q&=~(1<<ye),U+=1;var be=32-qi(M)+ye;if(30<be){var Ae=ye-ye%5;return be=(Q&(1<<Ae)-1).toString(32),Q>>=Ae,ye-=Ae,{id:1<<32-qi(M)+ye|U<<ye|Q,overflow:be+D}}return{id:1<<be|U<<ye|Q,overflow:D}}var qi=Math.clz32?Math.clz32:rs,Ha=Math.log,Ls=Math.LN2;function rs(D){return D>>>=0,D===0?32:31-(Ha(D)/Ls|0)|0}function xr(D,M){return D===M&&(D!==0||1/D===1/M)||D!==D&&M!==M}var Ua=typeof Object.is=="function"?Object.is:xr,mi=null,Fs=null,is=null,rn=null,Gt=!1,Kt=!1,Ri=0,Jr=null,Io=0;function vi(){if(mi===null)throw Error(e(321));return mi}function ur(){if(0<Io)throw Error(e(312));return{memoizedState:null,queue:null,next:null}}function Ns(){return rn===null?is===null?(Gt=!1,is=rn=ur()):(Gt=!0,rn=is):rn.next===null?(Gt=!1,rn=rn.next=ur()):(Gt=!0,rn=rn.next),rn}function co(){Fs=mi=null,Kt=!1,is=null,Io=0,rn=Jr=null}function aa(D,M){return typeof M=="function"?M(D):M}function ln(D,M,U){if(mi=vi(),rn=Ns(),Gt){var Q=rn.queue;if(M=Q.dispatch,Jr!==null&&(U=Jr.get(Q),U!==void 0)){Jr.delete(Q),Q=rn.memoizedState;do Q=D(Q,U.action),U=U.next;while(U!==null);return rn.memoizedState=Q,[Q,M]}return[rn.memoizedState,M]}return D=D===aa?typeof M=="function"?M():M:U!==void 0?U(M):M,rn.memoizedState=D,D=rn.queue={last:null,dispatch:null},D=D.dispatch=yi.bind(null,mi,D),[rn.memoizedState,D]}function Mo(D,M){if(mi=vi(),rn=Ns(),M=M===void 0?null:M,rn!==null){var U=rn.memoizedState;if(U!==null&&M!==null){var Q=U[1];e:if(Q===null)Q=!1;else{for(var ye=0;ye<Q.length&&ye<M.length;ye++)if(!Ua(M[ye],Q[ye])){Q=!1;break e}Q=!0}if(Q)return U[0]}}return D=D(),rn.memoizedState=[D,M],D}function yi(D,M,U){if(25<=Io)throw Error(e(301));if(D===mi)if(Kt=!0,D={action:U,next:null},Jr===null&&(Jr=new Map),U=Jr.get(M),U===void 0)Jr.set(M,D);else{for(M=U;M.next!==null;)M=M.next;M.next=D}}function la(){throw Error(e(394))}function fo(){}var cr={readContext:function(D){return D._currentValue},useContext:function(D){return vi(),D._currentValue},useMemo:Mo,useReducer:ln,useRef:function(D){mi=vi(),rn=Ns();var M=rn.memoizedState;return M===null?(D={current:D},rn.memoizedState=D):M},useState:function(D){return ln(aa,D)},useInsertionEffect:fo,useLayoutEffect:function(){},useCallback:function(D,M){return Mo(function(){return D},M)},useImperativeHandle:fo,useEffect:fo,useDebugValue:fo,useDeferredValue:function(D){return vi(),D},useTransition:function(){return vi(),[!1,la]},useId:function(){var D=Fs.treeContext,M=D.overflow;D=D.id,D=(D&~(1<<32-qi(D)-1)).toString(32)+M;var U=h;if(U===null)throw Error(e(404));return M=Ri++,D=":"+U.idPrefix+"R"+D,0<M&&(D+="H"+M.toString(32)),D+":"},useMutableSource:function(D,M){return vi(),M(D._source)},useSyncExternalStore:function(D,M,U){if(U===void 0)throw Error(e(407));return U()}},h=null,y=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentDispatcher;function C(D){return console.error(D),null}function P(){}function L(D,M,U,Q,ye,be,Ae,Ge,dt){var _t=[],St=new Set;return M={destination:null,responseState:M,progressiveChunkSize:Q===void 0?12800:Q,status:0,fatalError:null,nextSegmentId:0,allPendingTasks:0,pendingRootTasks:0,completedRootSegment:null,abortableTasks:St,pingedTasks:_t,clientRenderedBoundaries:[],completedBoundaries:[],partialBoundaries:[],onError:ye===void 0?C:ye,onAllReady:be===void 0?P:be,onShellReady:Ae===void 0?P:Ae,onShellError:Ge===void 0?P:Ge,onFatalError:dt===void 0?P:dt},U=V(M,0,null,U,!1,!1),U.parentFlushed=!0,D=N(M,D,null,U,St,pt,null,Gi),_t.push(D),M}function N(D,M,U,Q,ye,be,Ae,Ge){D.allPendingTasks++,U===null?D.pendingRootTasks++:U.pendingTasks++;var dt={node:M,ping:function(){var _t=D.pingedTasks;_t.push(dt),_t.length===1&&Fr(D)},blockedBoundary:U,blockedSegment:Q,abortSet:ye,legacyContext:be,context:Ae,treeContext:Ge};return ye.add(dt),dt}function V(D,M,U,Q,ye,be){return{status:0,id:-1,index:M,parentFlushed:!1,chunks:[],children:[],formatContext:Q,boundary:U,lastPushedText:ye,textEmbedded:be}}function oe(D,M){if(D=D.onError(M),D!=null&&typeof D!="string")throw 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 D+'" instead');return D}function te(D,M){var U=D.onShellError;U(M),U=D.onFatalError,U(M),D.destination!==null?(D.status=2,w(D.destination,M)):(D.status=1,D.fatalError=M)}function pe(D,M,U,Q,ye){for(mi={},Fs=M,Ri=0,D=U(Q,ye);Kt;)Kt=!1,Ri=0,Io+=1,rn=null,D=U(Q,ye);return co(),D}function De(D,M,U,Q){var ye=U.render(),be=Q.childContextTypes;if(be!=null){var Ae=M.legacyContext;if(typeof U.getChildContext!="function")Q=Ae;else{U=U.getChildContext();for(var Ge in U)if(!(Ge in be))throw Error(e(108,Xe(Q)||"Unknown",Ge));Q=Kr({},Ae,U)}M.legacyContext=Q,Be(D,M,ye),M.legacyContext=Ae}else Be(D,M,ye)}function _e(D,M){if(D&&D.defaultProps){M=Kr({},M),D=D.defaultProps;for(var U in D)M[U]===void 0&&(M[U]=D[U]);return M}return M}function xe(D,M,U,Q,ye){if(typeof U=="function")if(U.prototype&&U.prototype.isReactComponent){ye=mt(U,M.legacyContext);var be=U.contextType;be=new U(Q,typeof be=="object"&&be!==null?be._currentValue:ye),gi(be,U,Q,ye),De(D,M,be,U)}else{be=mt(U,M.legacyContext),ye=pe(D,M,U,Q,be);var Ae=Ri!==0;if(typeof ye=="object"&&ye!==null&&typeof ye.render=="function"&&ye.$$typeof===void 0)gi(ye,U,Q,be),De(D,M,ye,U);else if(Ae){Q=M.treeContext,M.treeContext=Mr(Q,1,0);try{Be(D,M,ye)}finally{M.treeContext=Q}}else Be(D,M,ye)}else if(typeof U=="string"){switch(ye=M.blockedSegment,be=ut(ye.chunks,U,Q,D.responseState,ye.formatContext),ye.lastPushedText=!1,Ae=ye.formatContext,ye.formatContext=Ee(Ae,U,Q),Tt(D,M,be),ye.formatContext=Ae,U){case"area":case"base":case"br":case"col":case"embed":case"hr":case"img":case"input":case"keygen":case"link":case"meta":case"param":case"source":case"track":case"wbr":break;default:ye.chunks.push(Dn,f(U),oi)}ye.lastPushedText=!1}else{switch(U){case Te:case ee:case _i:case nn:case pi:Be(D,M,Q.children);return;case _n:Be(D,M,Q.children);return;case G:throw Error(e(343));case On:e:{U=M.blockedBoundary,ye=M.blockedSegment,be=Q.fallback,Q=Q.children,Ae=new Set;var Ge={id:null,rootSegmentID:-1,parentFlushed:!1,pendingTasks:0,forceClientRender:!1,completedSegments:[],byteSize:0,fallbackAbortableTasks:Ae,errorDigest:null},dt=V(D,ye.chunks.length,Ge,ye.formatContext,!1,!1);ye.children.push(dt),ye.lastPushedText=!1;var _t=V(D,0,null,ye.formatContext,!1,!1);_t.parentFlushed=!0,M.blockedBoundary=Ge,M.blockedSegment=_t;try{if(Tt(D,M,Q),_t.lastPushedText&&_t.textEmbedded&&_t.chunks.push(Ye),_t.status=1,un(Ge,_t),Ge.pendingTasks===0)break e}catch(St){_t.status=4,Ge.forceClientRender=!0,Ge.errorDigest=oe(D,St)}finally{M.blockedBoundary=U,M.blockedSegment=ye}M=N(D,be,U,dt,Ae,M.legacyContext,M.context,M.treeContext),D.pingedTasks.push(M)}return}if(typeof U=="object"&&U!==null)switch(U.$$typeof){case uo:if(Q=pe(D,M,U.render,Q,ye),Ri!==0){U=M.treeContext,M.treeContext=Mr(U,1,0);try{Be(D,M,Q)}finally{M.treeContext=U}}else Be(D,M,Q);return;case k:U=U.type,Q=_e(U,Q),xe(D,M,U,Q,ye);return;case jn:if(ye=Q.children,U=U._context,Q=Q.value,be=U._currentValue,U._currentValue=Q,Ae=ft,ft=Q={parent:Ae,depth:Ae===null?0:Ae.depth+1,context:U,parentValue:be,value:Q},M.context=Q,Be(D,M,ye),D=ft,D===null)throw Error(e(403));Q=D.parentValue,D.context._currentValue=Q===ge?D.context._defaultValue:Q,D=ft=D.parent,M.context=D;return;case Cn:Q=Q.children,Q=Q(U._currentValue),Be(D,M,Q);return;case F:ye=U._init,U=ye(U._payload),Q=_e(U,Q),xe(D,M,U,Q,void 0);return}throw Error(e(130,U==null?U:typeof U,""))}}function Be(D,M,U){if(M.node=U,typeof U=="object"&&U!==null){switch(U.$$typeof){case Wn:xe(D,M,U.type,U.props,U.ref);return;case hi:throw Error(e(257));case F:var Q=U._init;U=Q(U._payload),Be(D,M,U);return}if(ze(U)){ot(D,M,U);return}if(U===null||typeof U!="object"?Q=null:(Q=Pe&&U[Pe]||U["@@iterator"],Q=typeof Q=="function"?Q:null),Q&&(Q=Q.call(U))){if(U=Q.next(),!U.done){var ye=[];do ye.push(U.value),U=Q.next();while(!U.done);ot(D,M,ye)}return}throw D=Object.prototype.toString.call(U),Error(e(31,D==="[object Object]"?"object with keys {"+Object.keys(U).join(", ")+"}":D))}typeof U=="string"?(Q=M.blockedSegment,Q.lastPushedText=We(M.blockedSegment.chunks,U,D.responseState,Q.lastPushedText)):typeof U=="number"&&(Q=M.blockedSegment,Q.lastPushedText=We(M.blockedSegment.chunks,""+U,D.responseState,Q.lastPushedText))}function ot(D,M,U){for(var Q=U.length,ye=0;ye<Q;ye++){var be=M.treeContext;M.treeContext=Mr(be,Q,ye);try{Tt(D,M,U[ye])}finally{M.treeContext=be}}}function Tt(D,M,U){var Q=M.blockedSegment.formatContext,ye=M.legacyContext,be=M.context;try{return Be(D,M,U)}catch(dt){if(co(),typeof dt=="object"&&dt!==null&&typeof dt.then=="function"){U=dt;var Ae=M.blockedSegment,Ge=V(D,Ae.chunks.length,null,Ae.formatContext,Ae.lastPushedText,!0);Ae.children.push(Ge),Ae.lastPushedText=!1,D=N(D,M.node,M.blockedBoundary,Ge,M.abortSet,M.legacyContext,M.context,M.treeContext).ping,U.then(D,D),M.blockedSegment.formatContext=Q,M.legacyContext=ye,M.context=be,lr(be)}else throw M.blockedSegment.formatContext=Q,M.legacyContext=ye,M.context=be,lr(be),dt}}function Et(D){var M=D.blockedBoundary;D=D.blockedSegment,D.status=3,Lr(this,M,D)}function Rn(D,M,U){var Q=D.blockedBoundary;D.blockedSegment.status=3,Q===null?(M.allPendingTasks--,M.status!==2&&(M.status=2,M.destination!==null&&M.destination.close())):(Q.pendingTasks--,Q.forceClientRender||(Q.forceClientRender=!0,D=U===void 0?Error(e(432)):U,Q.errorDigest=M.onError(D),Q.parentFlushed&&M.clientRenderedBoundaries.push(Q)),Q.fallbackAbortableTasks.forEach(function(ye){return Rn(ye,M,U)}),Q.fallbackAbortableTasks.clear(),M.allPendingTasks--,M.allPendingTasks===0&&(Q=M.onAllReady,Q()))}function un(D,M){if(M.chunks.length===0&&M.children.length===1&&M.children[0].boundary===null){var U=M.children[0];U.id=M.id,U.parentFlushed=!0,U.status===1&&un(D,U)}else D.completedSegments.push(M)}function Lr(D,M,U){if(M===null){if(U.parentFlushed){if(D.completedRootSegment!==null)throw Error(e(389));D.completedRootSegment=U}D.pendingRootTasks--,D.pendingRootTasks===0&&(D.onShellError=P,M=D.onShellReady,M())}else M.pendingTasks--,M.forceClientRender||(M.pendingTasks===0?(U.parentFlushed&&U.status===1&&un(M,U),M.parentFlushed&&D.completedBoundaries.push(M),M.fallbackAbortableTasks.forEach(Et,D),M.fallbackAbortableTasks.clear()):U.parentFlushed&&U.status===1&&(un(M,U),M.completedSegments.length===1&&M.parentFlushed&&D.partialBoundaries.push(M)));D.allPendingTasks--,D.allPendingTasks===0&&(D=D.onAllReady,D())}function Fr(D){if(D.status!==2){var M=ft,U=y.current;y.current=cr;var Q=h;h=D.responseState;try{var ye=D.pingedTasks,be;for(be=0;be<ye.length;be++){var Ae=ye[be],Ge=D,dt=Ae.blockedSegment;if(dt.status===0){lr(Ae.context);try{Be(Ge,Ae,Ae.node),dt.lastPushedText&&dt.textEmbedded&&dt.chunks.push(Ye),Ae.abortSet.delete(Ae),dt.status=1,Lr(Ge,Ae.blockedBoundary,dt)}catch($n){if(co(),typeof $n=="object"&&$n!==null&&typeof $n.then=="function"){var _t=Ae.ping;$n.then(_t,_t)}else{Ae.abortSet.delete(Ae),dt.status=4;var St=Ae.blockedBoundary,vt=$n,An=oe(Ge,vt);if(St===null?te(Ge,vt):(St.pendingTasks--,St.forceClientRender||(St.forceClientRender=!0,St.errorDigest=An,St.parentFlushed&&Ge.clientRenderedBoundaries.push(St))),Ge.allPendingTasks--,Ge.allPendingTasks===0){var bn=Ge.onAllReady;bn()}}}finally{}}}ye.splice(0,be),D.destination!==null&&po(D,D.destination)}catch($n){oe(D,$n),te(D,$n)}finally{h=Q,y.current=U,U===cr&&lr(M)}}}function Lt(D,M,U){switch(U.parentFlushed=!0,U.status){case 0:var Q=U.id=D.nextSegmentId++;return U.lastPushedText=!1,U.textEmbedded=!1,D=D.responseState,i(M,on),i(M,D.placeholderPrefix),D=f(Q.toString(16)),i(M,D),o(M,Vi);case 1:U.status=2;var ye=!0;Q=U.chunks;var be=0;U=U.children;for(var Ae=0;Ae<U.length;Ae++){for(ye=U[Ae];be<ye.index;be++)i(M,Q[be]);ye=Nr(D,M,ye)}for(;be<Q.length-1;be++)i(M,Q[be]);return be<Q.length&&(ye=o(M,Q[be])),ye;default:throw Error(e(390))}}function Nr(D,M,U){var Q=U.boundary;if(Q===null)return Lt(D,M,U);if(Q.parentFlushed=!0,Q.forceClientRender)Q=Q.errorDigest,o(M,Nn),i(M,vr),Q&&(i(M,Yr),i(M,f(S(Q))),i(M,zr)),o(M,Ao),Lt(D,M,U);else if(0<Q.pendingTasks){Q.rootSegmentID=D.nextSegmentId++,0<Q.completedSegments.length&&D.partialBoundaries.push(Q);var ye=D.responseState,be=ye.nextSuspenseID++;ye=p(ye.boundaryPrefix+be.toString(16)),Q=Q.id=ye,Un(M,D.responseState,Q),Lt(D,M,U)}else if(Q.byteSize>D.progressiveChunkSize)Q.rootSegmentID=D.nextSegmentId++,D.completedBoundaries.push(Q),Un(M,D.responseState,Q.id),Lt(D,M,U);else{if(o(M,Hi),U=Q.completedSegments,U.length!==1)throw Error(e(391));Nr(D,M,U[0])}return o(M,Pr)}function jt(D,M,U){return er(M,D.responseState,U.formatContext,U.id),Nr(D,M,U),Or(M,U.formatContext)}function Qt(D,M,U){for(var Q=U.completedSegments,ye=0;ye<Q.length;ye++)ho(D,M,U,Q[ye]);if(Q.length=0,D=D.responseState,Q=U.id,U=U.rootSegmentID,i(M,D.startInlineScript),D.sentCompleteBoundaryFunction?i(M,tr):(D.sentCompleteBoundaryFunction=!0,i(M,Rr)),Q===null)throw Error(e(395));return U=f(U.toString(16)),i(M,Q),i(M,zi),i(M,D.segmentPrefix),i(M,U),o(M,Oi)}function ho(D,M,U,Q){if(Q.status===2)return!0;var ye=Q.id;if(ye===-1){if((Q.id=U.rootSegmentID)===-1)throw Error(e(392));return jt(D,M,Q)}return jt(D,M,Q),D=D.responseState,i(M,D.startInlineScript),D.sentCompleteSegmentFunction?i(M,ci):(D.sentCompleteSegmentFunction=!0,i(M,_r)),i(M,D.segmentPrefix),ye=f(ye.toString(16)),i(M,ye),i(M,Xr),i(M,D.placeholderPrefix),i(M,ye),o(M,br)}function po(D,M){n=new Uint8Array(512),r=0;try{var U=D.completedRootSegment;if(U!==null&&D.pendingRootTasks===0){Nr(D,M,U),D.completedRootSegment=null;var Q=D.responseState.bootstrapChunks;for(U=0;U<Q.length-1;U++)i(M,Q[U]);U<Q.length&&o(M,Q[U])}var ye=D.clientRenderedBoundaries,be;for(be=0;be<ye.length;be++){var Ae=ye[be];Q=M;var Ge=D.responseState,dt=Ae.id,_t=Ae.errorDigest,St=Ae.errorMessage,vt=Ae.errorComponentStack;if(i(Q,Ge.startInlineScript),Ge.sentClientRenderFunction?i(Q,yn):(Ge.sentClientRenderFunction=!0,i(Q,ar)),dt===null)throw Error(e(395));i(Q,dt),i(Q,Ar),(_t||St||vt)&&(i(Q,fi),i(Q,f(wr(_t||"")))),(St||vt)&&(i(Q,fi),i(Q,f(wr(St||"")))),vt&&(i(Q,fi),i(Q,f(wr(vt)))),o(Q,Ir)}ye.splice(0,be);var An=D.completedBoundaries;for(be=0;be<An.length;be++)Qt(D,M,An[be]);An.splice(0,be),a(M),n=new Uint8Array(512),r=0;var bn=D.partialBoundaries;for(be=0;be<bn.length;be++){var $n=bn[be];e:{ye=D,Ae=M;var os=$n.completedSegments;for(Ge=0;Ge<os.length;Ge++)if(!ho(ye,Ae,$n,os[Ge])){Ge++,os.splice(0,Ge);var ua=!1;break e}os.splice(0,Ge),ua=!0}if(!ua){D.destination=null,be++,bn.splice(0,be);return}}bn.splice(0,be);var go=D.completedBoundaries;for(be=0;be<go.length;be++)Qt(D,M,go[be]);go.splice(0,be)}finally{a(M),D.allPendingTasks===0&&D.pingedTasks.length===0&&D.clientRenderedBoundaries.length===0&&D.completedBoundaries.length===0&&M.close()}}function Sr(D,M){try{var U=D.abortableTasks;U.forEach(function(Q){return Rn(Q,D,M)}),U.clear(),D.destination!==null&&po(D,D.destination)}catch(Q){oe(D,Q),te(D,Q)}}return Rh.renderToReadableStream=function(D,M){return new Promise(function(U,Q){var ye,be,Ae=new Promise(function(St,vt){be=St,ye=vt}),Ge=L(D,Ne(M?M.identifierPrefix:void 0,M?M.nonce:void 0,M?M.bootstrapScriptContent:void 0,M?M.bootstrapScripts:void 0,M?M.bootstrapModules:void 0),me(M?M.namespaceURI:void 0),M?M.progressiveChunkSize:void 0,M?M.onError:void 0,be,function(){var St=new ReadableStream({type:"bytes",pull:function(vt){if(Ge.status===1)Ge.status=2,w(vt,Ge.fatalError);else if(Ge.status!==2&&Ge.destination===null){Ge.destination=vt;try{po(Ge,vt)}catch(An){oe(Ge,An),te(Ge,An)}}},cancel:function(){Sr(Ge)}},{highWaterMark:0});St.allReady=Ae,U(St)},function(St){Ae.catch(function(){}),Q(St)},ye);if(M&&M.signal){var dt=M.signal,_t=function(){Sr(Ge,dt.reason),dt.removeEventListener("abort",_t)};dt.addEventListener("abort",_t)}Fr(Ge)})},Rh.version="18.3.1",Rh}var ac={};/**
58
+ * @license React
59
+ * react-dom-server-legacy.browser.development.js
60
+ *
61
+ * Copyright (c) Facebook, Inc. and its affiliates.
62
+ *
63
+ * This source code is licensed under the MIT license found in the
64
+ * LICENSE file in the root directory of this source tree.
65
+ */var h1;function S4(){return h1||(h1=1,process.env.NODE_ENV!=="production"&&function(){var t=q,e="18.3.1",n=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function r(l){{for(var d=arguments.length,m=new Array(d>1?d-1:0),x=1;x<d;x++)m[x-1]=arguments[x];o("warn",l,m)}}function i(l){{for(var d=arguments.length,m=new Array(d>1?d-1:0),x=1;x<d;x++)m[x-1]=arguments[x];o("error",l,m)}}function o(l,d,m){{var x=n.ReactDebugCurrentFrame,R=x.getStackAddendum();R!==""&&(d+="%s",m=m.concat([R]));var B=m.map(function(Y){return String(Y)});B.unshift("Warning: "+d),Function.prototype.apply.call(console[l],console,B)}}function a(l){l()}function c(l){}function f(l,d){p(l,d)}function p(l,d){return l.push(d)}function w(l){}function g(l){l.push(null)}function T(l){return l}function E(l){return l}function A(l,d){l.destroy(d)}function I(l){{var d=typeof Symbol=="function"&&Symbol.toStringTag,m=d&&l[Symbol.toStringTag]||l.constructor.name||"Object";return m}}function j(l){try{return _(l),!1}catch{return!0}}function _(l){return""+l}function H(l,d){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.",d,I(l)),_(l)}function W(l,d){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.",d,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 Z=Object.prototype.hasOwnProperty,de=0,S=1,le=2,ue=3,ze=4,Me=5,Fe=6,Ve=":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",Ue=Ve+"\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",he=new RegExp("^["+Ve+"]["+Ue+"]*$"),ke={},Oe={};function Ne(l){return Z.call(Oe,l)?!0:Z.call(ke,l)?!1:he.test(l)?(Oe[l]=!0,!0):(ke[l]=!0,i("Invalid attribute name: `%s`",l),!1)}function tt(l,d,m,x){if(m!==null&&m.type===de)return!1;switch(typeof d){case"function":case"symbol":return!0;case"boolean":{if(m!==null)return!m.acceptsBooleans;var R=l.toLowerCase().slice(0,5);return R!=="data-"&&R!=="aria-"}default:return!1}}function me(l){return Ye.hasOwnProperty(l)?Ye[l]:null}function Ee(l,d,m,x,R,B,Y){this.acceptsBooleans=d===le||d===ue||d===ze,this.attributeName=x,this.attributeNamespace=R,this.mustUseProperty=m,this.propertyName=l,this.type=d,this.sanitizeURL=B,this.removeEmptyString=Y}var Ye={},We=["children","dangerouslySetInnerHTML","defaultValue","defaultChecked","innerHTML","suppressContentEditableWarning","suppressHydrationWarning","style"];We.forEach(function(l){Ye[l]=new Ee(l,de,!1,l,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(l){var d=l[0],m=l[1];Ye[d]=new Ee(d,S,!1,m,null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(l){Ye[l]=new Ee(l,le,!1,l.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(l){Ye[l]=new Ee(l,le,!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){Ye[l]=new Ee(l,ue,!1,l.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(l){Ye[l]=new Ee(l,ue,!0,l,null,!1,!1)}),["capture","download"].forEach(function(l){Ye[l]=new Ee(l,ze,!1,l,null,!1,!1)}),["cols","rows","size","span"].forEach(function(l){Ye[l]=new Ee(l,Fe,!1,l,null,!1,!1)}),["rowSpan","start"].forEach(function(l){Ye[l]=new Ee(l,Me,!1,l.toLowerCase(),null,!1,!1)});var Je=/[\-\:]([a-z])/g,Ze=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 d=l.replace(Je,Ze);Ye[d]=new Ee(d,S,!1,l,null,!1,!1)}),["xlink:actuate","xlink:arcrole","xlink:role","xlink:show","xlink:title","xlink:type"].forEach(function(l){var d=l.replace(Je,Ze);Ye[d]=new Ee(d,S,!1,l,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(l){var d=l.replace(Je,Ze);Ye[d]=new Ee(d,S,!1,l,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(l){Ye[l]=new Ee(l,S,!1,l.toLowerCase(),null,!1,!1)});var Qe="xlinkHref";Ye[Qe]=new Ee("xlinkHref",S,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(l){Ye[l]=new Ee(l,S,!1,l.toLowerCase(),null,!0,!0)});var it={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 ht(l,d){return l+d.charAt(0).toUpperCase()+d.substring(1)}var gt=["Webkit","ms","Moz","O"];Object.keys(it).forEach(function(l){gt.forEach(function(d){it[ht(d,l)]=it[l]})});var ct={button:!0,checkbox:!0,image:!0,hidden:!0,radio:!0,reset:!0,submit:!0};function yt(l,d){ct[d.type]||d.onChange||d.onInput||d.readOnly||d.disabled||d.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`."),d.onChange||d.readOnly||d.disabled||d.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 et(l,d){if(l.indexOf("-")===-1)return typeof d.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)-["+Ue+"]*$"),mr=new RegExp("^(aria)[A-Z]["+Ue+"]*$");function Hn(l,d){{if(Z.call(Mt,d)&&Mt[d])return!0;if(mr.test(d)){var m="aria-"+d.slice(4).toLowerCase(),x=At.hasOwnProperty(m)?m:null;if(x==null)return i("Invalid ARIA attribute `%s`. ARIA attributes follow the pattern aria-* and must be lowercase.",d),Mt[d]=!0,!0;if(d!==x)return i("Invalid ARIA attribute `%s`. Did you mean `%s`?",d,x),Mt[d]=!0,!0}if(Vn.test(d)){var R=d.toLowerCase(),B=At.hasOwnProperty(R)?R:null;if(B==null)return Mt[d]=!0,!1;if(d!==B)return i("Unknown ARIA attribute `%s`. Did you mean `%s`?",d,B),Mt[d]=!0,!0}}return!0}function Sn(l,d){{var m=[];for(var x in d){var R=Hn(l,x);R||m.push(x)}var B=m.map(function(Y){return"`"+Y+"`"}).join(", ");m.length===1?i("Invalid aria prop %s on <%s> tag. For details, see https://reactjs.org/link/invalid-aria-props",B,l):m.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,d){et(l,d)||Sn(l,d)}var kr=!1;function Jn(l,d){{if(l!=="input"&&l!=="textarea"&&l!=="select")return;d!=null&&d.value===null&&!kr&&(kr=!0,l==="select"&&d.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)-["+Ue+"]*$"),on=new RegExp("^(aria)[A-Z]["+Ue+"]*$");fn=function(l,d,m,x){if(Z.call(dn,d)&&dn[d])return!0;var R=d.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[d]=!0,!0;if(x!=null){var B=x.registrationNameDependencies,Y=x.possibleRegistrationNames;if(B.hasOwnProperty(d))return!0;var ne=Y.hasOwnProperty(R)?Y[R]:null;if(ne!=null)return i("Invalid event handler property `%s`. Did you mean `%s`?",d,ne),dn[d]=!0,!0;if(ut.test(d))return i("Unknown event handler property `%s`. It will be ignored.",d),dn[d]=!0,!0}else if(ut.test(d))return Dn.test(d)&&i("Invalid event handler property `%s`. React events use the camelCase naming convention, for example `onClick`.",d),dn[d]=!0,!0;if(oi.test(d)||on.test(d))return!0;if(R==="innerhtml")return i("Directly setting property `innerHTML` is not permitted. For more information, lookup documentation on `dangerouslySetInnerHTML`."),dn[d]=!0,!0;if(R==="aria")return i("The `aria` attribute is reserved for future use in React. Pass individual `aria-` attributes instead."),dn[d]=!0,!0;if(R==="is"&&m!==null&&m!==void 0&&typeof m!="string")return i("Received a `%s` for a string attribute `is`. If this is expected, cast the value to a string.",typeof m),dn[d]=!0,!0;if(typeof m=="number"&&isNaN(m))return i("Received NaN for the `%s` attribute. If this is expected, cast the value to a string.",d),dn[d]=!0,!0;var we=me(d),je=we!==null&&we.type===de;if(sn.hasOwnProperty(R)){var qe=sn[R];if(qe!==d)return i("Invalid DOM property `%s`. Did you mean `%s`?",d,qe),dn[d]=!0,!0}else if(!je&&d!==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.",d,R),dn[d]=!0,!0;return typeof m=="boolean"&&tt(d,m,we)?(m?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()}.',m,d,d,m,d):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.',m,d,d,m,d,d,d),dn[d]=!0,!0):je?!0:tt(d,m,we)?(dn[d]=!0,!1):((m==="false"||m==="true")&&we!==null&&we.type===ue&&(i("Received the string `%s` for the boolean attribute `%s`. %s Did you mean %s={%s}?",m,d,m==="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".',d,m),dn[d]=!0),!0)}}var Vi=function(l,d,m){{var x=[];for(var R in d){var B=fn(l,R,d[R],m);B||x.push(R)}var Y=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 ",Y,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 ",Y,l)}};function Hi(l,d,m){et(l,d)||Vi(l,d,m)}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(d,m){return m.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,d){Yr.hasOwnProperty(d)&&Yr[d]||(Yr[d]=!0,i(`Style property values shouldn't contain a semicolon. Try "%s: %s" instead.`,l,d.replace(vr,"")))},Wi=function(l,d){Ao||(Ao=!0,i("`NaN` is an invalid value for the `%s` css style property.",l))},Pn=function(l,d){Un||(Un=!0,i("`Infinity` is an invalid value for the `%s` css style property.",l))};Ui=function(l,d){l.indexOf("-")>-1?Qn(l):Dr.test(l)?Wt(l):vr.test(d)&&si(l,d),typeof d=="number"&&(isNaN(d)?Wi(l,d):isFinite(d)||Pn(l,d))}}var hn=Ui,ai=/["'&<>]/;function li(l){re(l);var d=""+l,m=ai.exec(d);if(!m)return d;var x,R="",B,Y=0;for(B=m.index;B<d.length;B++){switch(d.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}Y!==B&&(R+=d.substring(Y,B)),Y=B+1,R+=x}return Y!==B?R+d.substring(Y,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 Is(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 Ms=Array.isArray;function qr(l){return Ms(l)}var ao="<script>";function lo(l,d,m,x,R){var B=l===void 0?"":l,Y=ao,ne=[];return{bootstrapChunks:ne,startInlineScript:Y,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,d){return{insertionMode:l,selectedValue:d}}function zi(l,d,m){switch(d){case"select":return tr(er,m.value!=null?m.value:m.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 d=l.nextSuspenseID++;return l.boundaryPrefix+d.toString(16)}function yn(l,d,m){var x=l.idPrefix,R=":"+x+"R"+d;return m>0&&(R+="H"+m.toString(32)),R+":"}function Ar(l){return Tn(l)}var Ir="<!-- -->";function fi(l,d,m,x){return d===""?x:(x&&l.push(Ir),l.push(Ar(d)),!0)}function di(l,d,m,x){m&&x&&l.push(Ir)}var wr=new Map;function Kr(l){var d=wr.get(l);if(d!==void 0)return d;var m=Tn(ui(l));return wr.set(l,m),m}var Wn=' style="',hi=":",pi=";";function _i(l,d,m){if(typeof m!="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 m)if(Z.call(m,R)){var B=m[R];if(!(B==null||typeof B=="boolean"||B==="")){var Y=void 0,ne=void 0,we=R.indexOf("--")===0;we?(Y=Tn(R),W(B,R),ne=Tn((""+B).trim())):(hn(R,B),Y=Kr(R),typeof B=="number"?B!==0&&!Z.call(it,R)?ne=B+"px":ne=""+B:(W(B,R),ne=Tn((""+B).trim()))),x?(x=!1,l.push(Wn,Y,hi,ne)):l.push(pi,Y,hi,ne)}}x||l.push(Cn)}var nn=" ",jn='="',Cn='"',uo='=""';function On(l,d,m,x){switch(m){case"style":{_i(l,d,x);return}case"defaultValue":case"defaultChecked":case"innerHTML":case"suppressContentEditableWarning":case"suppressHydrationWarning":return}if(!(m.length>2&&(m[0]==="o"||m[0]==="O")&&(m[1]==="n"||m[1]==="N"))){var R=me(m);if(R!==null){switch(typeof x){case"function":case"symbol":return;case"boolean":if(!R.acceptsBooleans)return}var B=R.attributeName,Y=B;switch(R.type){case ue:x&&l.push(nn,Y,uo);return;case ze:x===!0?l.push(nn,Y,uo):x===!1||l.push(nn,Y,jn,Tn(x),Cn);return;case Me:isNaN(x)||l.push(nn,Y,jn,Tn(x),Cn);break;case Fe:!isNaN(x)&&x>=1&&l.push(nn,Y,jn,Tn(x),Cn);break;default:R.sanitizeURL&&(H(x,B),x=""+x,Is(x)),l.push(nn,Y,jn,Tn(x),Cn)}}else if(Ne(m)){switch(typeof x){case"function":case"symbol":return;case"boolean":{var ne=m.toLowerCase().slice(0,5);if(ne!=="data-"&&ne!=="aria-")return}}l.push(nn,m,jn,Tn(x),Cn)}}}var _n=">",k="/>";function F(l,d,m){if(d!=null){if(m!=null)throw new Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");if(typeof d!="object"||!("__html"in d))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=d.__html;x!=null&&(re(x),l.push(""+x))}}var G=!1,ee=!1,Te=!1,ge=!1,Pe=!1,Xe=!1,pt=!1;function mt(l,d){{var m=l[d];if(m!=null){var x=qr(m);l.multiple&&!x?i("The `%s` prop supplied to <select> must be an array if `multiple` is true.",d):!l.multiple&&x&&i("The `%s` prop supplied to <select> must be a scalar value if `multiple` is false.",d)}}}function ft(l,d,m){yt("select",d),mt(d,"value"),mt(d,"defaultValue"),d.value!==void 0&&d.defaultValue!==void 0&&!Te&&(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"),Te=!0),l.push(xr("select"));var x=null,R=null;for(var B in d)if(Z.call(d,B)){var Y=d[B];if(Y==null)continue;switch(B){case"children":x=Y;break;case"dangerouslySetInnerHTML":R=Y;break;case"defaultValue":case"value":break;default:On(l,m,B,Y);break}}return l.push(_n),F(l,R,x),x}function Ft(l){var d="";return t.Children.forEach(l,function(m){m!=null&&(d+=m,!Pe&&typeof m!="string"&&typeof m!="number"&&(Pe=!0,i("Cannot infer the option value of complex children. Pass a `value` prop or use a plain string as children to <option>.")))}),d}var Bn=' selected=""';function zn(l,d,m,x){var R=x.selectedValue;l.push(xr("option"));var B=null,Y=null,ne=null,we=null;for(var je in d)if(Z.call(d,je)){var qe=d[je];if(qe==null)continue;switch(je){case"children":B=qe;break;case"selected":ne=qe,pt||(i("Use the `defaultValue` or `value` props on <select> instead of setting `selected` on <option>."),pt=!0);break;case"dangerouslySetInnerHTML":we=qe;break;case"value":Y=qe;default:On(l,m,je,qe);break}}if(R!=null){var nt;if(Y!==null?(H(Y,"value"),nt=""+Y):(we!==null&&(Xe||(Xe=!0,i("Pass a `value` prop if you set dangerouslyInnerHTML so React knows which value should be selected."))),nt=Ft(B)),qr(R))for(var xt=0;xt<R.length;xt++){H(R[xt],"value");var en=""+R[xt];if(en===nt){l.push(Bn);break}}else H(R,"select.value"),""+R===nt&&l.push(Bn)}else ne&&l.push(Bn);return l.push(_n),F(l,we,B),B}function En(l,d,m){yt("input",d),d.checked!==void 0&&d.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",d.type),ee=!0),d.value!==void 0&&d.defaultValue!==void 0&&!G&&(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",d.type),G=!0),l.push(xr("input"));var x=null,R=null,B=null,Y=null;for(var ne in d)if(Z.call(d,ne)){var we=d[ne];if(we==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":Y=we;break;case"defaultValue":R=we;break;case"checked":B=we;break;case"value":x=we;break;default:On(l,m,ne,we);break}}return B!==null?On(l,m,"checked",B):Y!==null&&On(l,m,"checked",Y),x!==null?On(l,m,"value",x):R!==null&&On(l,m,"value",R),l.push(k),null}function Zr(l,d,m){yt("textarea",d),d.value!==void 0&&d.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 Y in d)if(Z.call(d,Y)){var ne=d[Y];if(ne==null)continue;switch(Y){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,m,Y,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
+ `&&l.push(qi),x!==null&&(H(x,"value"),l.push(Ar(""+x))),null}function lr(l,d,m,x){l.push(xr(m));for(var R in d)if(Z.call(d,R)){var B=d[R];if(B==null)continue;switch(R){case"children":case"dangerouslySetInnerHTML":throw new Error(m+" 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,d,m){l.push(xr("menuitem"));for(var x in d)if(Z.call(d,x)){var R=d[x];if(R==null)continue;switch(x){case"children":case"dangerouslySetInnerHTML":throw new Error("menuitems cannot have `children` nor `dangerouslySetInnerHTML`.");default:On(l,m,x,R);break}}return l.push(_n),null}function gi(l,d,m){l.push(xr("title"));var x=null;for(var R in d)if(Z.call(d,R)){var B=d[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,m,R,B);break}}l.push(_n);{var Y=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"):Y!=null&&Y.$$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"):Y!=null&&typeof Y!="string"&&typeof Y!="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,d,m,x){l.push(xr(m));var R=null,B=null;for(var Y in d)if(Z.call(d,Y)){var ne=d[Y];if(ne==null)continue;switch(Y){case"children":R=ne;break;case"dangerouslySetInnerHTML":B=ne;break;default:On(l,x,Y,ne);break}}return l.push(_n),F(l,B,R),typeof R=="string"?(l.push(Ar(R)),null):R}function Mr(l,d,m,x){l.push(xr(m));var R=null,B=null;for(var Y in d)if(Z.call(d,Y)){var ne=d[Y];if(ne==null)continue;switch(Y){case"children":R=ne;break;case"dangerouslySetInnerHTML":B=ne;break;case"style":_i(l,x,ne);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":break;default:Ne(Y)&&typeof ne!="function"&&typeof ne!="symbol"&&l.push(nn,Y,jn,Tn(ne),Cn);break}}return l.push(_n),F(l,B,R),R}var qi=`
67
+ `;function Ha(l,d,m,x){l.push(xr(m));var R=null,B=null;for(var Y in d)if(Z.call(d,Y)){var ne=d[Y];if(ne==null)continue;switch(Y){case"children":R=ne;break;case"dangerouslySetInnerHTML":B=ne;break;default:On(l,x,Y,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 we=B.__html;we!=null&&(typeof we=="string"&&we.length>0&&we[0]===`
68
+ `?l.push(qi,we):(re(we),l.push(""+we)))}return typeof R=="string"&&R[0]===`
69
+ `&&l.push(qi),R}var Ls=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,rs=new Map;function xr(l){var d=rs.get(l);if(d===void 0){if(!Ls.test(l))throw new Error("Invalid tag: "+l);d="<"+l,rs.set(l,d)}return d}var Ua="<!DOCTYPE html>";function mi(l,d,m,x,R){switch($i(d,m),Jn(d,m),Hi(d,m,null),!m.suppressContentEditableWarning&&m.contentEditable&&m.children!=null&&i("A component is `contentEditable` and contains `children` managed by React. It is now your responsibility to guarantee that none of those nodes are unexpectedly modified or duplicated. This is probably not intentional."),R.insertionMode!==Or&&R.insertionMode!==_r&&d.indexOf("-")===-1&&typeof m.is!="string"&&d.toLowerCase()!==d&&i("<%s /> is using incorrect casing. Use PascalCase for React components, or lowercase for HTML elements.",d),d){case"select":return ft(l,m,x);case"option":return zn(l,m,x,R);case"textarea":return Zr(l,m,x);case"input":return En(l,m,x);case"menuitem":return Yi(l,m,x);case"title":return gi(l,m,x);case"listing":case"pre":return Ha(l,m,d,x);case"area":case"base":case"br":case"col":case"embed":case"hr":case"img":case"keygen":case"link":case"meta":case"param":case"source":case"track":case"wbr":return lr(l,m,d,x);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 Gi(l,m,d,x);case"html":return R.insertionMode===Pi&&l.push(Ua),Gi(l,m,d,x);default:return d.indexOf("-")===-1&&typeof m.is!="string"?Gi(l,m,d,x):Mr(l,m,d,x)}}var Fs="</",is=">";function rn(l,d,m){switch(d){case"area":case"base":case"br":case"col":case"embed":case"hr":case"img":case"input":case"keygen":case"link":case"meta":case"param":case"source":case"track":case"wbr":break;default:l.push(Fs,d,is)}}function Gt(l,d){for(var m=d.bootstrapChunks,x=0;x<m.length-1;x++)f(l,m[x]);return x<m.length?p(l,m[x]):!0}var Kt='<template id="',Ri='"></template>';function Jr(l,d,m){f(l,Kt),f(l,d.placeholderPrefix);var x=m.toString(16);return f(l,x),p(l,Ri)}var Io="<!--$-->",vi='<!--$?--><template id="',ur='"></template>',Ns="<!--$!-->",co="<!--/$-->",aa="<template",ln='"',Mo=' data-dgst="',yi=' data-msg="',la=' data-stck="',fo="></template>";function cr(l,d){return p(l,Io)}function h(l,d,m){if(f(l,vi),m===null)throw new Error("An ID must have been assigned before we can complete the boundary.");return f(l,m),p(l,ur)}function y(l,d,m,x,R){var B;return B=p(l,Ns),f(l,aa),m&&(f(l,Mo),f(l,Tn(m)),f(l,ln)),x&&(f(l,yi),f(l,Tn(x)),f(l,ln)),R&&(f(l,la),f(l,Tn(R)),f(l,ln)),B=p(l,fo),B}function C(l,d){return p(l,co)}function P(l,d){return p(l,co)}function L(l,d){return p(l,co)}var N='<div hidden id="',V='">',oe="</div>",te='<svg aria-hidden="true" style="display:none" id="',pe='">',De="</svg>",_e='<math aria-hidden="true" style="display:none" id="',xe='">',Be="</math>",ot='<table hidden id="',Tt='">',Et="</table>",Rn='<table hidden><tbody id="',un='">',Lr="</tbody></table>",Fr='<table hidden><tr id="',Lt='">',Nr="</tr></table>",jt='<table hidden><colgroup id="',Qt='">',ho="</colgroup></table>";function po(l,d,m,x){switch(m.insertionMode){case Pi:case er:return f(l,N),f(l,d.segmentPrefix),f(l,x.toString(16)),p(l,V);case Or:return f(l,te),f(l,d.segmentPrefix),f(l,x.toString(16)),p(l,pe);case _r:return f(l,_e),f(l,d.segmentPrefix),f(l,x.toString(16)),p(l,xe);case ci:return f(l,ot),f(l,d.segmentPrefix),f(l,x.toString(16)),p(l,Tt);case Xr:return f(l,Rn),f(l,d.segmentPrefix),f(l,x.toString(16)),p(l,un);case br:return f(l,Fr),f(l,d.segmentPrefix),f(l,x.toString(16)),p(l,Lt);case Rr:return f(l,jt),f(l,d.segmentPrefix),f(l,x.toString(16)),p(l,Qt);default:throw new Error("Unknown insertion mode. This is a bug in React.")}}function Sr(l,d){switch(d.insertionMode){case Pi:case er:return p(l,oe);case Or:return p(l,De);case _r:return p(l,Be);case ci:return p(l,Et);case Xr:return p(l,Lr);case br:return p(l,Nr);case Rr:return p(l,ho);default:throw new Error("Unknown insertion mode. This is a bug in React.")}}var D="function $RS(a,b){a=document.getElementById(a);b=document.getElementById(b);for(a.parentNode.removeChild(a);a.firstChild;)b.parentNode.insertBefore(a.firstChild,b);b.parentNode.removeChild(b)}",M='function $RC(a,b){a=document.getElementById(a);b=document.getElementById(b);b.parentNode.removeChild(b);if(a){a=a.previousSibling;var f=a.parentNode,c=a.nextSibling,e=0;do{if(c&&8===c.nodeType){var d=c.data;if("/$"===d)if(0===e)break;else e--;else"$"!==d&&"$?"!==d&&"$!"!==d||e++}d=c.nextSibling;f.removeChild(c);c=d}while(c);for(;b.firstChild;)f.insertBefore(b.firstChild,c);a.data="$";a._reactRetry&&a._reactRetry()}}',U='function $RX(b,c,d,e){var a=document.getElementById(b);a&&(b=a.previousSibling,b.data="$!",a=a.dataset,c&&(a.dgst=c),d&&(a.msg=d),e&&(a.stck=e),b._reactRetry&&b._reactRetry())}',Q=D+';$RS("',ye='$RS("',be='","',Ae='")<\/script>';function Ge(l,d,m){f(l,d.startInlineScript),d.sentCompleteSegmentFunction?f(l,ye):(d.sentCompleteSegmentFunction=!0,f(l,Q)),f(l,d.segmentPrefix);var x=m.toString(16);return f(l,x),f(l,be),f(l,d.placeholderPrefix),f(l,x),p(l,Ae)}var dt=M+';$RC("',_t='$RC("',St='","',vt='")<\/script>';function An(l,d,m,x){if(f(l,d.startInlineScript),d.sentCompleteBoundaryFunction?f(l,_t):(d.sentCompleteBoundaryFunction=!0,f(l,dt)),m===null)throw new Error("An ID must have been assigned before we can complete the boundary.");var R=x.toString(16);return f(l,m),f(l,St),f(l,d.segmentPrefix),f(l,R),p(l,vt)}var bn=U+';$RX("',$n='$RX("',os='"',ua=")<\/script>",go=",";function Qr(l,d,m,x,R,B){if(f(l,d.startInlineScript),d.sentClientRenderFunction?f(l,$n):(d.sentClientRenderFunction=!0,f(l,bn)),m===null)throw new Error("An ID must have been assigned before we can complete the boundary.");return f(l,m),f(l,os),(x||R||B)&&(f(l,go),f(l,Ai(x||""))),(R||B)&&(f(l,go),f(l,Ai(R||""))),B&&(f(l,go),f(l,Ai(B))),p(l,ua)}var Wa=/[<\u2028\u2029]/g;function Ai(l){var d=JSON.stringify(l);return d.replace(Wa,function(m){switch(m){case"<":return"\\u003c";case"\u2028":return"\\u2028";case"\u2029":return"\\u2029";default:throw new Error("escapeJSStringsForInstructionScripts encountered a match it does not know how to replace. this means the match regex and the replacement characters are no longer in sync. This is a bug in React")}})}function ca(l,d){var m=lo(d);return{bootstrapChunks:m.bootstrapChunks,startInlineScript:m.startInlineScript,placeholderPrefix:m.placeholderPrefix,segmentPrefix:m.segmentPrefix,boundaryPrefix:m.boundaryPrefix,idPrefix:m.idPrefix,nextSuspenseID:m.nextSuspenseID,sentCompleteSegmentFunction:m.sentCompleteSegmentFunction,sentCompleteBoundaryFunction:m.sentCompleteBoundaryFunction,sentClientRenderFunction:m.sentClientRenderFunction,generateStaticMarkup:l}}function ss(){return{insertionMode:er,selectedValue:null}}function ei(l,d,m,x){return m.generateStaticMarkup?(l.push(Tn(d)),!1):fi(l,d,m,x)}function mo(l,d,m,x){if(!d.generateStaticMarkup)return di(l,d,m,x)}function za(l,d){return d.generateStaticMarkup?!0:cr(l)}function ku(l,d,m,x,R){return d.generateStaticMarkup?!0:y(l,d,m,x,R)}function fa(l,d){return d.generateStaticMarkup?!0:C(l)}function vo(l,d){return d.generateStaticMarkup?!0:L(l)}var cn=Object.assign,Ol=Symbol.for("react.element"),da=Symbol.for("react.portal"),js=Symbol.for("react.fragment"),J=Symbol.for("react.strict_mode"),ce=Symbol.for("react.profiler"),Se=Symbol.for("react.provider"),Ce=Symbol.for("react.context"),K=Symbol.for("react.forward_ref"),ae=Symbol.for("react.suspense"),se=Symbol.for("react.suspense_list"),Re=Symbol.for("react.memo"),Le=Symbol.for("react.lazy"),st=Symbol.for("react.scope"),lt=Symbol.for("react.debug_trace_mode"),rt=Symbol.for("react.legacy_hidden"),It=Symbol.for("react.default_value"),wt=Symbol.iterator,Vt="@@iterator";function Yn(l){if(l===null||typeof l!="object")return null;var d=wt&&l[wt]||l[Vt];return typeof d=="function"?d:null}function nr(l,d,m){var x=l.displayName;if(x)return x;var R=d.displayName||d.name||"";return R!==""?m+"("+R+")":m}function In(l){return l.displayName||"Context"}function zt(l){if(l==null)return null;if(typeof l.tag=="number"&&i("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof l=="function")return l.displayName||l.name||null;if(typeof l=="string")return l;switch(l){case js:return"Fragment";case da:return"Portal";case ce:return"Profiler";case J:return"StrictMode";case ae:return"Suspense";case se:return"SuspenseList"}if(typeof l=="object")switch(l.$$typeof){case Ce:var d=l;return In(d)+".Consumer";case Se:var m=l;return In(m._context)+".Provider";case K:return nr(l,l.render,"ForwardRef");case Re:var x=l.displayName||null;return x!==null?x:zt(l.type)||"Memo";case Le:{var R=l,B=R._payload,Y=R._init;try{return zt(Y(B))}catch{return null}}}return null}var jr=0,kt,Du,pn,Lo,Pu,Ou,_u;function ha(){}ha.__reactDisabledLog=!0;function Fo(){{if(jr===0){kt=console.log,Du=console.info,pn=console.warn,Lo=console.error,Pu=console.group,Ou=console.groupCollapsed,_u=console.groupEnd;var l={configurable:!0,enumerable:!0,value:ha,writable:!0};Object.defineProperties(console,{info:l,log:l,warn:l,error:l,group:l,groupCollapsed:l,groupEnd:l})}jr++}}function Ya(){{if(jr--,jr===0){var l={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:cn({},l,{value:kt}),info:cn({},l,{value:Du}),warn:cn({},l,{value:pn}),error:cn({},l,{value:Lo}),group:cn({},l,{value:Pu}),groupCollapsed:cn({},l,{value:Ou}),groupEnd:cn({},l,{value:_u})})}jr<0&&i("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var Ga=n.ReactCurrentDispatcher,Bs;function pa(l,d,m){{if(Bs===void 0)try{throw Error()}catch(R){var x=R.stack.trim().match(/\n( *(at )?)/);Bs=x&&x[1]||""}return`
70
+ `+Bs+l}}var _l=!1,No;{var Rl=typeof WeakMap=="function"?WeakMap:Map;No=new Rl}function Xi(l,d){if(!l||_l)return"";{var m=No.get(l);if(m!==void 0)return m}var x;_l=!0;var R=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var B;B=Ga.current,Ga.current=null,Fo();try{if(d){var Y=function(){throw Error()};if(Object.defineProperty(Y.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(Y,[])}catch(ir){x=ir}Reflect.construct(l,[],Y)}else{try{Y.call()}catch(ir){x=ir}l.call(Y.prototype)}}else{try{throw Error()}catch(ir){x=ir}l()}}catch(ir){if(ir&&x&&typeof ir.stack=="string"){for(var ne=ir.stack.split(`
71
+ `),we=x.stack.split(`
72
+ `),je=ne.length-1,qe=we.length-1;je>=1&&qe>=0&&ne[je]!==we[qe];)qe--;for(;je>=1&&qe>=0;je--,qe--)if(ne[je]!==we[qe]){if(je!==1||qe!==1)do if(je--,qe--,qe<0||ne[je]!==we[qe]){var nt=`
73
+ `+ne[je].replace(" at new "," at ");return l.displayName&&nt.includes("<anonymous>")&&(nt=nt.replace("<anonymous>",l.displayName)),typeof l=="function"&&No.set(l,nt),nt}while(je>=1&&qe>=0);break}}}finally{_l=!1,Ga.current=B,Ya(),Error.prepareStackTrace=R}var xt=l?l.displayName||l.name:"",en=xt?pa(xt):"";return typeof l=="function"&&No.set(l,en),en}function jo(l,d,m){return Xi(l,!0)}function as(l,d,m){return Xi(l,!1)}function Ff(l){var d=l.prototype;return!!(d&&d.isReactComponent)}function qa(l,d,m){if(l==null)return"";if(typeof l=="function")return Xi(l,Ff(l));if(typeof l=="string")return pa(l);switch(l){case ae:return pa("Suspense");case se:return pa("SuspenseList")}if(typeof l=="object")switch(l.$$typeof){case K:return as(l.render);case Re:return qa(l.type,d,m);case Le:{var x=l,R=x._payload,B=x._init;try{return qa(B(R),d,m)}catch{}}}return""}var Ac={},ga=n.ReactDebugCurrentFrame;function $s(l){if(l){var d=l._owner,m=qa(l.type,l._source,d?d.type:null);ga.setExtraStackFrame(m)}else ga.setExtraStackFrame(null)}function ma(l,d,m,x,R){{var B=Function.call.bind(Z);for(var Y in l)if(B(l,Y)){var ne=void 0;try{if(typeof l[Y]!="function"){var we=Error((x||"React class")+": "+m+" type `"+Y+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof l[Y]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw we.name="Invariant Violation",we}ne=l[Y](d,Y,x,m,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(je){ne=je}ne&&!(ne instanceof Error)&&($s(R),i("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",x||"React class",m,Y,typeof ne),$s(null)),ne instanceof Error&&!(ne.message in Ac)&&(Ac[ne.message]=!0,$s(R),i("Failed %s type: %s",m,ne.message),$s(null))}}}var Al;Al={};var va={};Object.freeze(va);function Xa(l,d){{var m=l.contextTypes;if(!m)return va;var x={};for(var R in m)x[R]=d[R];{var B=zt(l)||"Unknown";ma(m,x,"context",B)}return x}}function Ic(l,d,m,x){{if(typeof l.getChildContext!="function"){{var R=zt(d)||"Unknown";Al[R]||(Al[R]=!0,i("%s.childContextTypes is specified but there is no getChildContext() method on the instance. You can either define getChildContext() on %s or remove childContextTypes from it.",R,R))}return m}var B=l.getChildContext();for(var Y in B)if(!(Y in x))throw new Error((zt(d)||"Unknown")+'.getChildContext(): key "'+Y+'" is not defined in childContextTypes.');{var ne=zt(d)||"Unknown";ma(x,B,"child context",ne)}return cn({},m,B)}}var wn;wn={};var Gn=null,ls=null;function Ru(l){l.context._currentValue2=l.parentValue}function us(l){l.context._currentValue2=l.value}function Il(l,d){if(l!==d){Ru(l);var m=l.parent,x=d.parent;if(m===null){if(x!==null)throw new Error("The stacks must reach the root at the same time. This is a bug in React.")}else{if(x===null)throw new Error("The stacks must reach the root at the same time. This is a bug in React.");Il(m,x)}us(d)}}function yo(l){Ru(l);var d=l.parent;d!==null&&yo(d)}function cs(l){var d=l.parent;d!==null&&cs(d),us(l)}function ya(l,d){Ru(l);var m=l.parent;if(m===null)throw new Error("The depth must equal at least at zero before reaching the root. This is a bug in React.");m.depth===d.depth?Il(m,d):ya(m,d)}function bo(l,d){var m=d.parent;if(m===null)throw new Error("The depth must equal at least at zero before reaching the root. This is a bug in React.");l.depth===m.depth?Il(l,m):bo(l,m),us(d)}function Bo(l){var d=ls,m=l;d!==m&&(d===null?cs(m):m===null?yo(d):d.depth===m.depth?Il(d,m):d.depth>m.depth?ya(d,m):bo(d,m),ls=m)}function ba(l,d){var m;m=l._currentValue2,l._currentValue2=d,l._currentRenderer2!==void 0&&l._currentRenderer2!==null&&l._currentRenderer2!==wn&&i("Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported."),l._currentRenderer2=wn;var x=ls,R={parent:x,depth:x===null?0:x.depth+1,context:l,parentValue:m,value:d};return ls=R,R}function Ka(l){var d=ls;if(d===null)throw new Error("Tried to pop a Context at the root of the app. This is a bug in React.");d.context!==l&&i("The parent context is not the expected context. This is probably a bug in React.");{var m=d.parentValue;m===It?d.context._currentValue2=d.context._defaultValue:d.context._currentValue2=m,l._currentRenderer2!==void 0&&l._currentRenderer2!==null&&l._currentRenderer2!==wn&&i("Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported."),l._currentRenderer2=wn}return ls=d.parent}function Vs(){return ls}function fs(l){var d=l._currentValue2;return d}function Au(l){return l._reactInternals}function Nf(l,d){l._reactInternals=d}var Mc={},wa={},ds,Hs,Za,z,$o,Vo,Tr,$t,Ml;{ds=new Set,Hs=new Set,Za=new Set,Tr=new Set,z=new Set,$t=new Set,Ml=new Set;var Ja=new Set;Vo=function(l,d){if(!(l===null||typeof l=="function")){var m=d+"_"+l;Ja.has(m)||(Ja.add(m),i("%s(...): Expected the last optional `callback` argument to be a function. Instead received: %s.",d,l))}},$o=function(l,d){if(d===void 0){var m=zt(l)||"Component";z.has(m)||(z.add(m),i("%s.getDerivedStateFromProps(): A valid state object (or null) must be returned. You have returned undefined.",m))}}}function Ll(l,d){{var m=l.constructor,x=m&&zt(m)||"ReactClass",R=x+"."+d;if(Mc[R])return;i(`%s(...): Can only update a mounting component. This usually means you called %s() outside componentWillMount() on the server. This is a no-op.
74
+
75
+ Please check the code for the %s component.`,d,d,x),Mc[R]=!0}}var wo={isMounted:function(l){return!1},enqueueSetState:function(l,d,m){var x=Au(l);x.queue===null?Ll(l,"setState"):(x.queue.push(d),m!=null&&Vo(m,"setState"))},enqueueReplaceState:function(l,d,m){var x=Au(l);x.replace=!0,x.queue=[d],m!=null&&Vo(m,"setState")},enqueueForceUpdate:function(l,d){var m=Au(l);m.queue===null?Ll(l,"forceUpdate"):d!=null&&Vo(d,"setState")}};function Iu(l,d,m,x,R){var B=m(R,x);$o(d,B);var Y=B==null?x:cn({},x,B);return Y}function Lc(l,d,m){var x=va,R=l.contextType;if("contextType"in l){var B=R===null||R!==void 0&&R.$$typeof===Ce&&R._context===void 0;if(!B&&!Ml.has(l)){Ml.add(l);var Y="";R===void 0?Y=" However, it is set to undefined. This can be caused by a typo or by mixing up named and default imports. This can also happen due to a circular dependency, so try moving the createContext() call to a separate file.":typeof R!="object"?Y=" However, it is set to a "+typeof R+".":R.$$typeof===Se?Y=" Did you accidentally pass the Context.Provider instead?":R._context!==void 0?Y=" Did you accidentally pass the Context.Consumer instead?":Y=" However, it is set to an object with keys {"+Object.keys(R).join(", ")+"}.",i("%s defines an invalid contextType. contextType should point to the Context object returned by React.createContext().%s",zt(l)||"Component",Y)}}typeof R=="object"&&R!==null?x=fs(R):x=m;var ne=new l(d,x);{if(typeof l.getDerivedStateFromProps=="function"&&(ne.state===null||ne.state===void 0)){var we=zt(l)||"Component";ds.has(we)||(ds.add(we),i("`%s` uses `getDerivedStateFromProps` but its initial state is %s. This is not recommended. Instead, define the initial state by assigning an object to `this.state` in the constructor of `%s`. This ensures that `getDerivedStateFromProps` arguments have a consistent shape.",we,ne.state===null?"null":"undefined",we))}if(typeof l.getDerivedStateFromProps=="function"||typeof ne.getSnapshotBeforeUpdate=="function"){var je=null,qe=null,nt=null;if(typeof ne.componentWillMount=="function"&&ne.componentWillMount.__suppressDeprecationWarning!==!0?je="componentWillMount":typeof ne.UNSAFE_componentWillMount=="function"&&(je="UNSAFE_componentWillMount"),typeof ne.componentWillReceiveProps=="function"&&ne.componentWillReceiveProps.__suppressDeprecationWarning!==!0?qe="componentWillReceiveProps":typeof ne.UNSAFE_componentWillReceiveProps=="function"&&(qe="UNSAFE_componentWillReceiveProps"),typeof ne.componentWillUpdate=="function"&&ne.componentWillUpdate.__suppressDeprecationWarning!==!0?nt="componentWillUpdate":typeof ne.UNSAFE_componentWillUpdate=="function"&&(nt="UNSAFE_componentWillUpdate"),je!==null||qe!==null||nt!==null){var xt=zt(l)||"Component",en=typeof l.getDerivedStateFromProps=="function"?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";Za.has(xt)||(Za.add(xt),i(`Unsafe legacy lifecycles will not be called for components using new component APIs.
76
+
77
+ %s uses %s but also contains the following legacy lifecycles:%s%s%s
78
+
79
+ The above lifecycles should be removed. Learn more about this warning here:
80
+ https://reactjs.org/link/unsafe-component-lifecycles`,xt,en,je!==null?`
81
+ `+je:"",qe!==null?`
82
+ `+qe:"",nt!==null?`
83
+ `+nt:""))}}}return ne}function Fc(l,d,m){{var x=zt(d)||"Component",R=l.render;R||(d.prototype&&typeof d.prototype.render=="function"?i("%s(...): No `render` method found on the returned component instance: did you accidentally return an object from the constructor?",x):i("%s(...): No `render` method found on the returned component instance: you may have forgotten to define `render`.",x)),l.getInitialState&&!l.getInitialState.isReactClassApproved&&!l.state&&i("getInitialState was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Did you mean to define a state property instead?",x),l.getDefaultProps&&!l.getDefaultProps.isReactClassApproved&&i("getDefaultProps was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Use a static property to define defaultProps instead.",x),l.propTypes&&i("propTypes was defined as an instance property on %s. Use a static property to define propTypes instead.",x),l.contextType&&i("contextType was defined as an instance property on %s. Use a static property to define contextType instead.",x),l.contextTypes&&i("contextTypes was defined as an instance property on %s. Use a static property to define contextTypes instead.",x),d.contextType&&d.contextTypes&&!$t.has(d)&&($t.add(d),i("%s declares both contextTypes and contextType static properties. The legacy contextTypes property will be ignored.",x)),typeof l.componentShouldUpdate=="function"&&i("%s has a method called componentShouldUpdate(). Did you mean shouldComponentUpdate()? The name is phrased as a question because the function is expected to return a value.",x),d.prototype&&d.prototype.isPureReactComponent&&typeof l.shouldComponentUpdate<"u"&&i("%s has a method called shouldComponentUpdate(). shouldComponentUpdate should not be used when extending React.PureComponent. Please extend React.Component if shouldComponentUpdate is used.",zt(d)||"A pure component"),typeof l.componentDidUnmount=="function"&&i("%s has a method called componentDidUnmount(). But there is no such lifecycle method. Did you mean componentWillUnmount()?",x),typeof l.componentDidReceiveProps=="function"&&i("%s has a method called componentDidReceiveProps(). But there is no such lifecycle method. If you meant to update the state in response to changing props, use componentWillReceiveProps(). If you meant to fetch data or run side-effects or mutations after React has updated the UI, use componentDidUpdate().",x),typeof l.componentWillRecieveProps=="function"&&i("%s has a method called componentWillRecieveProps(). Did you mean componentWillReceiveProps()?",x),typeof l.UNSAFE_componentWillRecieveProps=="function"&&i("%s has a method called UNSAFE_componentWillRecieveProps(). Did you mean UNSAFE_componentWillReceiveProps()?",x);var B=l.props!==m;l.props!==void 0&&B&&i("%s(...): When calling super() in `%s`, make sure to pass up the same props that your component's constructor was passed.",x,x),l.defaultProps&&i("Setting defaultProps as an instance property on %s is not supported and will be ignored. Instead, define defaultProps as a static property on %s.",x,x),typeof l.getSnapshotBeforeUpdate=="function"&&typeof l.componentDidUpdate!="function"&&!Hs.has(d)&&(Hs.add(d),i("%s: getSnapshotBeforeUpdate() should be used with componentDidUpdate(). This component defines getSnapshotBeforeUpdate() only.",zt(d))),typeof l.getDerivedStateFromProps=="function"&&i("%s: getDerivedStateFromProps() is defined as an instance method and will be ignored. Instead, declare it as a static method.",x),typeof l.getDerivedStateFromError=="function"&&i("%s: getDerivedStateFromError() is defined as an instance method and will be ignored. Instead, declare it as a static method.",x),typeof d.getSnapshotBeforeUpdate=="function"&&i("%s: getSnapshotBeforeUpdate() is defined as a static method and will be ignored. Instead, declare it as an instance method.",x);var Y=l.state;Y&&(typeof Y!="object"||qr(Y))&&i("%s.state: must be set to an object or null",x),typeof l.getChildContext=="function"&&typeof d.childContextTypes!="object"&&i("%s.getChildContext(): childContextTypes must be defined in order to use getChildContext().",x)}}function Nc(l,d){var m=d.state;if(typeof d.componentWillMount=="function"){if(d.componentWillMount.__suppressDeprecationWarning!==!0){var x=zt(l)||"Unknown";wa[x]||(r(`componentWillMount has been renamed, and is not recommended for use. See https://reactjs.org/link/unsafe-component-lifecycles for details.
84
+
85
+ * Move code from componentWillMount to componentDidMount (preferred in most cases) or the constructor.
86
+
87
+ Please update the following components: %s`,x),wa[x]=!0)}d.componentWillMount()}typeof d.UNSAFE_componentWillMount=="function"&&d.UNSAFE_componentWillMount(),m!==d.state&&(i("%s.componentWillMount(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",zt(l)||"Component"),wo.enqueueReplaceState(d,d.state,null))}function jf(l,d,m,x){if(l.queue!==null&&l.queue.length>0){var R=l.queue,B=l.replace;if(l.queue=null,l.replace=!1,B&&R.length===1)d.state=R[0];else{for(var Y=B?R[0]:d.state,ne=!0,we=B?1:0;we<R.length;we++){var je=R[we],qe=typeof je=="function"?je.call(d,Y,m,x):je;qe!=null&&(ne?(ne=!1,Y=cn({},Y,qe)):cn(Y,qe))}d.state=Y}}else l.queue=null}function xo(l,d,m,x){Fc(l,d,m);var R=l.state!==void 0?l.state:null;l.updater=wo,l.props=m,l.state=R;var B={queue:[],replace:!1};Nf(l,B);var Y=d.contextType;if(typeof Y=="object"&&Y!==null?l.context=fs(Y):l.context=x,l.state===m){var ne=zt(d)||"Component";Tr.has(ne)||(Tr.add(ne),i("%s: It is not recommended to assign props directly to state because updates to props won't be reflected in state. In most cases, it is better to use props directly.",ne))}var we=d.getDerivedStateFromProps;typeof we=="function"&&(l.state=Iu(l,d,we,R,m)),typeof d.getDerivedStateFromProps!="function"&&typeof l.getSnapshotBeforeUpdate!="function"&&(typeof l.UNSAFE_componentWillMount=="function"||typeof l.componentWillMount=="function")&&(Nc(d,l),jf(B,l,m,x))}var Bf={id:1,overflow:""};function $f(l){var d=l.overflow,m=l.id,x=m&~Vf(m);return x.toString(32)+d}function Mu(l,d,m){var x=l.id,R=l.overflow,B=Qa(x)-1,Y=x&~(1<<B),ne=m+1,we=Qa(d)+B;if(we>30){var je=B-B%5,qe=(1<<je)-1,nt=(Y&qe).toString(32),xt=Y>>je,en=B-je,ir=Qa(d)+en,Eo=ne<<en,ws=Eo|xt,eo=nt+R;return{id:1<<ir|ws,overflow:eo}}else{var _a=ne<<B,tf=_a|Y,ea=R;return{id:1<<we|tf,overflow:ea}}}function Qa(l){return 32-Ho(l)}function Vf(l){return 1<<Qa(l)-1}var Ho=Math.clz32?Math.clz32:Hf,Lu=Math.log,Fl=Math.LN2;function Hf(l){var d=l>>>0;return d===0?32:31-(Lu(d)/Fl|0)|0}function Uf(l,d){return l===d&&(l!==0||1/l===1/d)||l!==l&&d!==d}var Wf=typeof Object.is=="function"?Object.is:Uf,Br=null,Fu=null,Nl=null,qt=null,bi=!1,xa=!1,Us=0,Zt=null,hs=0,el=25,ti=!1,wi;function So(){if(Br===null)throw new Error(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
88
+ 1. You might have mismatching versions of React and the renderer (such as React DOM)
89
+ 2. You might be breaking the Rules of Hooks
90
+ 3. You might have more than one copy of React in the same app
91
+ See https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem.`);return ti&&i("Do not call Hooks inside useEffect(...), useMemo(...), or other built-in Hooks. You can only call Hooks at the top level of your React function. For more information, see https://reactjs.org/link/rules-of-hooks"),Br}function Nu(l,d){if(d===null)return i("%s received a final argument during this render, but not during the previous render. Even though the final argument is optional, its type cannot change between renders.",wi),!1;l.length!==d.length&&i(`The final argument passed to %s changed size between renders. The order and size of this array must remain constant.
92
+
93
+ Previous: %s
94
+ Incoming: %s`,wi,"["+l.join(", ")+"]","["+d.join(", ")+"]");for(var m=0;m<d.length&&m<l.length;m++)if(!Wf(l[m],d[m]))return!1;return!0}function $r(){if(hs>0)throw new Error("Rendered more hooks than during the previous render");return{memoizedState:null,queue:null,next:null}}function Ki(){return qt===null?Nl===null?(bi=!1,Nl=qt=$r()):(bi=!0,qt=Nl):qt.next===null?(bi=!1,qt=qt.next=$r()):(bi=!0,qt=qt.next),qt}function Ws(l,d){Br=d,Fu=l,ti=!1,Us=0}function jc(l,d,m,x){for(;xa;)xa=!1,Us=0,hs+=1,qt=null,m=l(d,x);return xi(),m}function ju(){var l=Us!==0;return l}function xi(){ti=!1,Br=null,Fu=null,xa=!1,Nl=null,hs=0,Zt=null,qt=null}function Bu(l){return ti&&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()."),fs(l)}function zs(l){return wi="useContext",So(),fs(l)}function Vr(l,d){return typeof d=="function"?d(l):d}function $u(l){return wi="useState",Vu(Vr,l)}function Vu(l,d,m){if(l!==Vr&&(wi="useReducer"),Br=So(),qt=Ki(),bi){var x=qt.queue,R=x.dispatch;if(Zt!==null){var B=Zt.get(x);if(B!==void 0){Zt.delete(x);var Y=qt.memoizedState,ne=B;do{var we=ne.action;ti=!0,Y=l(Y,we),ti=!1,ne=ne.next}while(ne!==null);return qt.memoizedState=Y,[Y,R]}}return[qt.memoizedState,R]}else{ti=!0;var je;l===Vr?je=typeof d=="function"?d():d:je=m!==void 0?m(d):d,ti=!1,qt.memoizedState=je;var qe=qt.queue={last:null,dispatch:null},nt=qe.dispatch=Uu.bind(null,Br,qe);return[qt.memoizedState,nt]}}function Hu(l,d){Br=So(),qt=Ki();var m=d===void 0?null:d;if(qt!==null){var x=qt.memoizedState;if(x!==null&&m!==null){var R=x[1];if(Nu(m,R))return x[0]}}ti=!0;var B=l();return ti=!1,qt.memoizedState=[B,m],B}function Ys(l){Br=So(),qt=Ki();var d=qt.memoizedState;if(d===null){var m={current:l};return Object.seal(m),qt.memoizedState=m,m}else return d}function ps(l,d){wi="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 Uu(l,d,m){if(hs>=el)throw new Error("Too many re-renders. React limits the number of renders to prevent an infinite loop.");if(l===Br){xa=!0;var x={action:m,next:null};Zt===null&&(Zt=new Map);var R=Zt.get(d);if(R===void 0)Zt.set(d,x);else{for(var B=R;B.next!==null;)B=B.next;B.next=x}}}function Bc(l,d){return Hu(function(){return l},d)}function jl(l,d,m){return So(),d(l._source)}function zf(l,d,m){if(m===void 0)throw new Error("Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.");return m()}function $c(l){return So(),l}function fr(){throw new Error("startTransition cannot be called during server rendering.")}function Wu(){return So(),[!1,fr]}function Vc(){var l=Fu,d=$f(l.treeContext),m=Sa;if(m===null)throw new Error("Invalid hook call. Hooks can only be called inside of the body of a function component.");var x=Us++;return yn(m,d,x)}function Si(){}var Bl={readContext:Bu,useContext:zs,useMemo:Hu,useReducer:Vu,useRef:Ys,useState:$u,useInsertionEffect:Si,useLayoutEffect:ps,useCallback:Bc,useImperativeHandle:Si,useEffect:Si,useDebugValue:Si,useDeferredValue:$c,useTransition:Wu,useId:Vc,useMutableSource:jl,useSyncExternalStore:zf},Sa=null;function gs(l){Sa=l}function tl(l){try{var d="",m=l;do{switch(m.tag){case 0:d+=pa(m.type,null,null);break;case 1:d+=as(m.type,null,null);break;case 2:d+=jo(m.type,null,null);break}m=m.parent}while(m);return d}catch(x){return`
95
+ Error generating stack: `+x.message+`
96
+ `+x.stack}}var rr=n.ReactCurrentDispatcher,Gs=n.ReactDebugCurrentFrame,$l=0,Ta=1,Vl=2,Ca=3,Hl=4,To=0,Ul=1,qs=2,Hc=12800;function nl(l){return console.error(l),null}function Ea(){}function ka(l,d,m,x,R,B,Y,ne,we){var je=[],qe=new Set,nt={destination:null,responseState:d,progressiveChunkSize:x===void 0?Hc:x,status:To,fatalError:null,nextSegmentId:0,allPendingTasks:0,pendingRootTasks:0,completedRootSegment:null,abortableTasks:qe,pingedTasks:je,clientRenderedBoundaries:[],completedBoundaries:[],partialBoundaries:[],onError:R===void 0?nl:R,onAllReady:Ea,onShellReady:Y===void 0?Ea:Y,onShellError:Ea,onFatalError:Ea},xt=Wl(nt,0,null,m,!1,!1);xt.parentFlushed=!0;var en=Xs(nt,l,null,xt,qe,va,Gn,Bf);return je.push(en),nt}function zu(l,d){var m=l.pingedTasks;m.push(d),m.length===1&&a(function(){return Jl(l)})}function Uc(l,d){return{id:Oi,rootSegmentID:-1,parentFlushed:!1,pendingTasks:0,forceClientRender:!1,completedSegments:[],byteSize:0,fallbackAbortableTasks:d,errorDigest:null}}function Xs(l,d,m,x,R,B,Y,ne){l.allPendingTasks++,m===null?l.pendingRootTasks++:m.pendingTasks++;var we={node:d,ping:function(){return zu(l,we)},blockedBoundary:m,blockedSegment:x,abortSet:R,legacyContext:B,context:Y,treeContext:ne};return we.componentStack=null,R.add(we),we}function Wl(l,d,m,x,R,B){return{status:$l,id:-1,index:d,parentFlushed:!1,chunks:[],children:[],formatContext:x,boundary:m,lastPushedText:R,textEmbedded:B}}var Uo=null;function zl(){return Uo===null||Uo.componentStack===null?"":tl(Uo.componentStack)}function Wo(l,d){l.componentStack={tag:0,parent:l.componentStack,type:d}}function rl(l,d){l.componentStack={tag:1,parent:l.componentStack,type:d}}function Zi(l,d){l.componentStack={tag:2,parent:l.componentStack,type:d}}function Ji(l){l.componentStack===null?i("Unexpectedly popped too many stack frames. This is a bug in React."):l.componentStack=l.componentStack.parent}var Co=null;function il(l,d){{var m;typeof d=="string"?m=d:d&&typeof d.message=="string"?m=d.message:m=String(d);var x=Co||zl();Co=null,l.errorMessage=m,l.errorComponentStack=x}}function ms(l,d){var m=l.onError(d);if(m!=null&&typeof m!="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 m+'" instead');return m}function Qi(l,d){var m=l.onShellError;m(d);var x=l.onFatalError;x(d),l.destination!==null?(l.status=qs,A(l.destination,d)):(l.status=Ul,l.fatalError=d)}function Da(l,d,m){Wo(d,"Suspense");var x=d.blockedBoundary,R=d.blockedSegment,B=m.fallback,Y=m.children,ne=new Set,we=Uc(l,ne),je=R.chunks.length,qe=Wl(l,je,we,R.formatContext,!1,!1);R.children.push(qe),R.lastPushedText=!1;var nt=Wl(l,0,null,R.formatContext,!1,!1);nt.parentFlushed=!0,d.blockedBoundary=we,d.blockedSegment=nt;try{if(dr(l,d,Y),mo(nt.chunks,l.responseState,nt.lastPushedText,nt.textEmbedded),nt.status=Ta,Ti(we,nt),we.pendingTasks===0){Ji(d);return}}catch(en){nt.status=Hl,we.forceClientRender=!0,we.errorDigest=ms(l,en),il(we,en)}finally{d.blockedBoundary=x,d.blockedSegment=R}var xt=Xs(l,B,x,qe,ne,d.legacyContext,d.context,d.treeContext);xt.componentStack=d.componentStack,l.pingedTasks.push(xt),Ji(d)}function Yl(l,d,m,x){Wo(d,m);var R=d.blockedSegment,B=mi(R.chunks,m,x,l.responseState,R.formatContext);R.lastPushedText=!1;var Y=R.formatContext;R.formatContext=zi(Y,m,x),dr(l,d,B),R.formatContext=Y,rn(R.chunks,m),R.lastPushedText=!1,Ji(d)}function ol(l){return l.prototype&&l.prototype.isReactComponent}function Pa(l,d,m,x,R){var B={};Ws(d,B);var Y=m(x,R);return jc(m,x,Y,R)}function Wc(l,d,m,x,R){var B=m.render();m.props!==R&&(Bt||i("It looks like %s is reassigning its own `this.props` while rendering. This is not supported and can lead to confusing bugs.",zt(x)||"a component"),Bt=!0);{var Y=x.childContextTypes;if(Y!=null){var ne=d.legacyContext,we=Ic(m,x,ne,Y);d.legacyContext=we,Ur(l,d,B),d.legacyContext=ne;return}}Ur(l,d,B)}function Yu(l,d,m,x){Zi(d,m);var R=Xa(m,d.legacyContext),B=Lc(m,x,R);xo(B,m,x,R),Wc(l,d,B,m,x),Ji(d)}var Gu={},Ks={},qu={},Gl={},Bt=!1,sl={},Xu=!1,Zs=!1,ql=!1;function zc(l,d,m,x){var R;if(R=Xa(m,d.legacyContext),rl(d,m),m.prototype&&typeof m.prototype.render=="function"){var B=zt(m)||"Unknown";Gu[B]||(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.",B,B),Gu[B]=!0)}var Y=Pa(l,d,m,x,R),ne=ju();if(typeof Y=="object"&&Y!==null&&typeof Y.render=="function"&&Y.$$typeof===void 0){var we=zt(m)||"Unknown";Ks[we]||(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.",we,we,we),Ks[we]=!0)}if(typeof Y=="object"&&Y!==null&&typeof Y.render=="function"&&Y.$$typeof===void 0){{var je=zt(m)||"Unknown";Ks[je]||(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.",je,je,je),Ks[je]=!0)}xo(Y,m,x,R),Wc(l,d,Y,m,x)}else if(Yc(m),ne){var qe=d.treeContext,nt=1,xt=0;d.treeContext=Mu(qe,nt,xt);try{Ur(l,d,Y)}finally{d.treeContext=qe}}else Ur(l,d,Y);Ji(d)}function Yc(l){{if(l&&l.childContextTypes&&i("%s(...): childContextTypes cannot be defined on a function component.",l.displayName||l.name||"Component"),l.defaultProps!==void 0){var d=zt(l)||"Unknown";sl[d]||(i("%s: Support for defaultProps will be removed from function components in a future major release. Use JavaScript default parameters instead.",d),sl[d]=!0)}if(typeof l.getDerivedStateFromProps=="function"){var m=zt(l)||"Unknown";Gl[m]||(i("%s: Function components do not support getDerivedStateFromProps.",m),Gl[m]=!0)}if(typeof l.contextType=="object"&&l.contextType!==null){var x=zt(l)||"Unknown";qu[x]||(i("%s: Function components do not support contextType.",x),qu[x]=!0)}}}function ni(l,d){if(l&&l.defaultProps){var m=cn({},d),x=l.defaultProps;for(var R in x)m[R]===void 0&&(m[R]=x[R]);return m}return d}function Gc(l,d,m,x,R){rl(d,m.render);var B=Pa(l,d,m.render,x,R),Y=ju();if(Y){var ne=d.treeContext,we=1,je=0;d.treeContext=Mu(ne,we,je);try{Ur(l,d,B)}finally{d.treeContext=ne}}else Ur(l,d,B);Ji(d)}function Xl(l,d,m,x,R){var B=m.type,Y=ni(B,x);Hr(l,d,B,Y,R)}function Ku(l,d,m,x){m._context===void 0?m!==m.Consumer&&(ql||(ql=!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?"))):m=m._context;var R=x.children;typeof R!="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 B=fs(m),Y=R(B);Ur(l,d,Y)}function Zu(l,d,m,x){var R=m._context,B=x.value,Y=x.children,ne;ne=d.context,d.context=ba(R,B),Ur(l,d,Y),d.context=Ka(R),ne!==d.context&&i("Popping the context provider did not return back to the original snapshot. This is a bug in React.")}function qc(l,d,m,x,R){Wo(d,"Lazy");var B=m._payload,Y=m._init,ne=Y(B),we=ni(ne,x);Hr(l,d,ne,we,R),Ji(d)}function Hr(l,d,m,x,R){if(typeof m=="function")if(ol(m)){Yu(l,d,m,x);return}else{zc(l,d,m,x);return}if(typeof m=="string"){Yl(l,d,m,x);return}switch(m){case rt:case lt:case J:case ce:case js:{Ur(l,d,x.children);return}case se:{Wo(d,"SuspenseList"),Ur(l,d,x.children),Ji(d);return}case st:throw new Error("ReactDOMServer does not yet support scope components.");case ae:{Da(l,d,x);return}}if(typeof m=="object"&&m!==null)switch(m.$$typeof){case K:{Gc(l,d,m,x,R);return}case Re:{Xl(l,d,m,x,R);return}case Se:{Zu(l,d,m,x);return}case Ce:{Ku(l,d,m,x);return}case Le:{qc(l,d,m,x);return}}var B="";throw(m===void 0||typeof m=="object"&&m!==null&&Object.keys(m).length===0)&&(B+=" 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: "+(m==null?m:typeof m)+"."+B))}function vs(l,d){typeof Symbol=="function"&&l[Symbol.toStringTag]==="Generator"&&(Xu||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."),Xu=!0),l.entries===d&&(Zs||i("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),Zs=!0)}function Ur(l,d,m){try{return Xc(l,d,m)}catch(x){throw typeof x=="object"&&x!==null&&typeof x.then=="function"||(Co=Co!==null?Co:zl()),x}}function Xc(l,d,m){if(d.node=m,typeof m=="object"&&m!==null){switch(m.$$typeof){case Ol:{var x=m,R=x.type,B=x.props,Y=x.ref;Hr(l,d,R,B,Y);return}case da: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 Le:{var ne=m,we=ne._payload,je=ne._init,qe;try{qe=je(we)}catch(_a){throw typeof _a=="object"&&_a!==null&&typeof _a.then=="function"&&Wo(d,"Lazy"),_a}Ur(l,d,qe);return}}if(qr(m)){Js(l,d,m);return}var nt=Yn(m);if(nt){vs(m,nt);var xt=nt.call(m);if(xt){var en=xt.next();if(!en.done){var ir=[];do ir.push(en.value),en=xt.next();while(!en.done);Js(l,d,ir);return}return}}var Eo=Object.prototype.toString.call(m);throw new Error("Objects are not valid as a React child (found: "+(Eo==="[object Object]"?"object with keys {"+Object.keys(m).join(", ")+"}":Eo)+"). If you meant to render a collection of children, use an array instead.")}if(typeof m=="string"){var ws=d.blockedSegment;ws.lastPushedText=ei(d.blockedSegment.chunks,m,l.responseState,ws.lastPushedText);return}if(typeof m=="number"){var eo=d.blockedSegment;eo.lastPushedText=ei(d.blockedSegment.chunks,""+m,l.responseState,eo.lastPushedText);return}typeof m=="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 Js(l,d,m){for(var x=m.length,R=0;R<x;R++){var B=d.treeContext;d.treeContext=Mu(B,x,R);try{dr(l,d,m[R])}finally{d.treeContext=B}}}function Kc(l,d,m){var x=d.blockedSegment,R=x.chunks.length,B=Wl(l,R,null,x.formatContext,x.lastPushedText,!0);x.children.push(B),x.lastPushedText=!1;var Y=Xs(l,d.node,d.blockedBoundary,B,d.abortSet,d.legacyContext,d.context,d.treeContext);d.componentStack!==null&&(Y.componentStack=d.componentStack.parent);var ne=Y.ping;m.then(ne,ne)}function dr(l,d,m){var x=d.blockedSegment.formatContext,R=d.legacyContext,B=d.context,Y=null;Y=d.componentStack;try{return Ur(l,d,m)}catch(ne){if(xi(),typeof ne=="object"&&ne!==null&&typeof ne.then=="function"){Kc(l,d,ne),d.blockedSegment.formatContext=x,d.legacyContext=R,d.context=B,Bo(B),d.componentStack=Y;return}else throw d.blockedSegment.formatContext=x,d.legacyContext=R,d.context=B,Bo(B),d.componentStack=Y,ne}}function Zc(l,d,m,x){var R=ms(l,x);if(d===null?Qi(l,x):(d.pendingTasks--,d.forceClientRender||(d.forceClientRender=!0,d.errorDigest=R,il(d,x),d.parentFlushed&&l.clientRenderedBoundaries.push(d))),l.allPendingTasks--,l.allPendingTasks===0){var B=l.onAllReady;B()}}function Kl(l){var d=this,m=l.blockedBoundary,x=l.blockedSegment;x.status=Ca,Jc(d,m,x)}function Zl(l,d,m){var x=l.blockedBoundary,R=l.blockedSegment;if(R.status=Ca,x===null)d.allPendingTasks--,d.status!==qs&&(d.status=qs,d.destination!==null&&g(d.destination));else{if(x.pendingTasks--,!x.forceClientRender){x.forceClientRender=!0;var B=m===void 0?new Error("The render was aborted by the server without a reason."):m;x.errorDigest=d.onError(B);{var Y="The server did not finish this Suspense boundary: ";B&&typeof B.message=="string"?B=Y+B.message:B=Y+String(B);var ne=Uo;Uo=l;try{il(x,B)}finally{Uo=ne}}x.parentFlushed&&d.clientRenderedBoundaries.push(x)}if(x.fallbackAbortableTasks.forEach(function(je){return Zl(je,d,m)}),x.fallbackAbortableTasks.clear(),d.allPendingTasks--,d.allPendingTasks===0){var we=d.onAllReady;we()}}}function Ti(l,d){if(d.chunks.length===0&&d.children.length===1&&d.children[0].boundary===null){var m=d.children[0];m.id=d.id,m.parentFlushed=!0,m.status===Ta&&Ti(l,m)}else{var x=l.completedSegments;x.push(d)}}function Jc(l,d,m){if(d===null){if(m.parentFlushed){if(l.completedRootSegment!==null)throw new Error("There can only be one root segment. This is a bug in React.");l.completedRootSegment=m}if(l.pendingRootTasks--,l.pendingRootTasks===0){l.onShellError=Ea;var x=l.onShellReady;x()}}else if(d.pendingTasks--,!d.forceClientRender){if(d.pendingTasks===0)m.parentFlushed&&m.status===Ta&&Ti(d,m),d.parentFlushed&&l.completedBoundaries.push(d),d.fallbackAbortableTasks.forEach(Kl,l),d.fallbackAbortableTasks.clear();else if(m.parentFlushed&&m.status===Ta){Ti(d,m);var R=d.completedSegments;R.length===1&&d.parentFlushed&&l.partialBoundaries.push(d)}}if(l.allPendingTasks--,l.allPendingTasks===0){var B=l.onAllReady;B()}}function ys(l,d){var m=d.blockedSegment;if(m.status===$l){Bo(d.context);var x=null;x=Uo,Uo=d;try{Ur(l,d,d.node),mo(m.chunks,l.responseState,m.lastPushedText,m.textEmbedded),d.abortSet.delete(d),m.status=Ta,Jc(l,d.blockedBoundary,m)}catch(B){if(xi(),typeof B=="object"&&B!==null&&typeof B.then=="function"){var R=d.ping;B.then(R,R)}else d.abortSet.delete(d),m.status=Hl,Zc(l,d.blockedBoundary,m,B)}finally{Uo=x}}}function Jl(l){if(l.status!==qs){var d=Vs(),m=rr.current;rr.current=Bl;var x;x=Gs.getCurrentStack,Gs.getCurrentStack=zl;var R=Sa;gs(l.responseState);try{var B=l.pingedTasks,Y;for(Y=0;Y<B.length;Y++){var ne=B[Y];ys(l,ne)}B.splice(0,Y),l.destination!==null&&Ql(l,l.destination)}catch(we){ms(l,we),Qi(l,we)}finally{gs(R),rr.current=m,Gs.getCurrentStack=x,m===Bl&&Bo(d)}}}function bs(l,d,m){switch(m.parentFlushed=!0,m.status){case $l:{var x=m.id=l.nextSegmentId++;return m.lastPushedText=!1,m.textEmbedded=!1,Jr(d,l.responseState,x)}case Ta:{m.status=Vl;for(var R=!0,B=m.chunks,Y=0,ne=m.children,we=0;we<ne.length;we++){for(var je=ne[we];Y<je.index;Y++)f(d,B[Y]);R=Qs(l,d,je)}for(;Y<B.length-1;Y++)f(d,B[Y]);return Y<B.length&&(R=p(d,B[Y])),R}default:throw new Error("Aborted, errored or already flushed boundaries should not be flushed again. This is a bug in React.")}}function Qs(l,d,m){var x=m.boundary;if(x===null)return bs(l,d,m);if(x.parentFlushed=!0,x.forceClientRender)return ku(d,l.responseState,x.errorDigest,x.errorMessage,x.errorComponentStack),bs(l,d,m),vo(d,l.responseState);if(x.pendingTasks>0){x.rootSegmentID=l.nextSegmentId++,x.completedSegments.length>0&&l.partialBoundaries.push(x);var R=x.id=ar(l.responseState);return h(d,l.responseState,R),bs(l,d,m),P(d,l.responseState)}else{if(x.byteSize>l.progressiveChunkSize)return x.rootSegmentID=l.nextSegmentId++,l.completedBoundaries.push(x),h(d,l.responseState,x.id),bs(l,d,m),P(d,l.responseState);za(d,l.responseState);var B=x.completedSegments;if(B.length!==1)throw new Error("A previously unvisited boundary must have exactly one root segment. This is a bug in React.");var Y=B[0];return Qs(l,d,Y),fa(d,l.responseState)}}function Yf(l,d,m){return Qr(d,l.responseState,m.id,m.errorDigest,m.errorMessage,m.errorComponentStack)}function Ju(l,d,m){return po(d,l.responseState,m.formatContext,m.id),Qs(l,d,m),Sr(d,m.formatContext)}function al(l,d,m){for(var x=m.completedSegments,R=0;R<x.length;R++){var B=x[R];Qu(l,d,m,B)}return x.length=0,An(d,l.responseState,m.id,m.rootSegmentID)}function ll(l,d,m){for(var x=m.completedSegments,R=0;R<x.length;R++){var B=x[R];if(!Qu(l,d,m,B))return R++,x.splice(0,R),!1}return x.splice(0,R),!0}function Qu(l,d,m,x){if(x.status===Vl)return!0;var R=x.id;if(R===-1){var B=x.id=m.rootSegmentID;if(B===-1)throw new Error("A root segment ID must have been assigned by now. This is a bug in React.");return Ju(l,d,x)}else return Ju(l,d,x),Ge(d,l.responseState,R)}function Ql(l,d){try{var m=l.completedRootSegment;m!==null&&l.pendingRootTasks===0&&(Qs(l,d,m),l.completedRootSegment=null,Gt(d,l.responseState));var x=l.clientRenderedBoundaries,R;for(R=0;R<x.length;R++){var B=x[R];if(!Yf(l,d,B)){l.destination=null,R++,x.splice(0,R);return}}x.splice(0,R);var Y=l.completedBoundaries;for(R=0;R<Y.length;R++){var ne=Y[R];if(!al(l,d,ne)){l.destination=null,R++,Y.splice(0,R);return}}Y.splice(0,R);var we=l.partialBoundaries;for(R=0;R<we.length;R++){var je=we[R];if(!ll(l,d,je)){l.destination=null,R++,we.splice(0,R);return}}we.splice(0,R);var qe=l.completedBoundaries;for(R=0;R<qe.length;R++){var nt=qe[R];if(!al(l,d,nt)){l.destination=null,R++,qe.splice(0,R);return}}qe.splice(0,R)}finally{l.allPendingTasks===0&&l.pingedTasks.length===0&&l.clientRenderedBoundaries.length===0&&l.completedBoundaries.length===0&&(l.abortableTasks.size!==0&&i("There was still abortable task at the root when we closed. This is a bug in React."),g(d))}}function ec(l){a(function(){return Jl(l)})}function Qc(l,d){if(l.status===Ul){l.status=qs,A(d,l.fatalError);return}if(l.status!==qs&&l.destination===null){l.destination=d;try{Ql(l,d)}catch(m){ms(l,m),Qi(l,m)}}}function Wr(l,d){try{var m=l.abortableTasks;m.forEach(function(x){return Zl(x,l,d)}),m.clear(),l.destination!==null&&Ql(l,l.destination)}catch(x){ms(l,x),Qi(l,x)}}function Ii(){}function ef(l,d,m,x){var R=!1,B=null,Y="",ne={push:function(nt){return nt!==null&&(Y+=nt),!0},destroy:function(nt){R=!0,B=nt}},we=!1;function je(){we=!0}var qe=ka(l,ca(m,d?d.identifierPrefix:void 0),ss(),1/0,Ii,void 0,je);if(ec(qe),Wr(qe,x),Qc(qe,ne),R)throw B;if(!we)throw new Error("A component suspended while responding to synchronous input. This will cause the UI to be replaced with a loading indicator. To fix, updates that suspend should be wrapped with startTransition.");return Y}function Gf(l,d){return ef(l,d,!1,'The server used "renderToString" which does not support Suspense. If you intended for this Suspense boundary to render the fallback content on the server consider throwing an Error somewhere within the Suspense boundary. If you intended to have the server wait for the suspended component please switch to "renderToReadableStream" which supports Suspense on the server')}function ul(l,d){return ef(l,d,!0,'The server used "renderToStaticMarkup" which does not support Suspense. If you intended to have the server wait for the suspended component please switch to "renderToReadableStream" which supports Suspense on the server')}function Oa(){throw new Error("ReactDOMServer.renderToNodeStream(): The streaming API is not available in the browser. Use ReactDOMServer.renderToString() instead.")}function v(){throw new Error("ReactDOMServer.renderToStaticNodeStream(): The streaming API is not available in the browser. Use ReactDOMServer.renderToStaticMarkup() instead.")}ac.renderToNodeStream=Oa,ac.renderToStaticMarkup=ul,ac.renderToStaticNodeStream=v,ac.renderToString=Gf,ac.version=e}()),ac}var Ah={};/**
97
+ * @license React
98
+ * react-dom-server.browser.development.js
99
+ *
100
+ * Copyright (c) Facebook, Inc. and its affiliates.
101
+ *
102
+ * This source code is licensed under the MIT license found in the
103
+ * LICENSE file in the root directory of this source tree.
104
+ */var p1;function T4(){return p1||(p1=1,process.env.NODE_ENV!=="production"&&function(){var t=q,e="18.3.1",n=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function r(v){{for(var l=arguments.length,d=new Array(l>1?l-1:0),m=1;m<l;m++)d[m-1]=arguments[m];o("warn",v,d)}}function i(v){{for(var l=arguments.length,d=new Array(l>1?l-1:0),m=1;m<l;m++)d[m-1]=arguments[m];o("error",v,d)}}function o(v,l,d){{var m=n.ReactDebugCurrentFrame,x=m.getStackAddendum();x!==""&&(l+="%s",d=d.concat([x]));var R=d.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,f=null,p=0;function w(v){f=new Uint8Array(c),p=0}function g(v,l){if(l.length!==0){if(l.length>c){p>0&&(v.enqueue(new Uint8Array(f.buffer,0,p)),f=new Uint8Array(c),p=0),v.enqueue(l);return}var d=l,m=f.length-p;m<d.length&&(m===0?v.enqueue(f):(f.set(d.subarray(0,m),p),v.enqueue(f),d=d.subarray(m)),f=new Uint8Array(c),p=0),f.set(d,p),p+=d.length}}function T(v,l){return g(v,l),!0}function E(v){f&&p>0&&(v.enqueue(new Uint8Array(f.buffer,0,p)),f=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 H(v,l){typeof v.error=="function"?v.error(l):v.close()}function W(v){{var l=typeof Symbol=="function"&&Symbol.toStringTag,d=l&&v[Symbol.toStringTag]||v.constructor.name||"Object";return d}}function re(v){try{return Z(v),!1}catch{return!0}}function Z(v){return""+v}function de(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,W(v)),Z(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,W(v)),Z(v)}function le(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.",W(v)),Z(v)}var ue=Object.prototype.hasOwnProperty,ze=0,Me=1,Fe=2,Ve=3,Ue=4,he=5,ke=6,Oe=":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",Ne=Oe+"\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",tt=new RegExp("^["+Oe+"]["+Ne+"]*$"),me={},Ee={};function Ye(v){return ue.call(Ee,v)?!0:ue.call(me,v)?!1:tt.test(v)?(Ee[v]=!0,!0):(me[v]=!0,i("Invalid attribute name: `%s`",v),!1)}function We(v,l,d,m){if(d!==null&&d.type===ze)return!1;switch(typeof l){case"function":case"symbol":return!0;case"boolean":{if(d!==null)return!d.acceptsBooleans;var x=v.toLowerCase().slice(0,5);return x!=="data-"&&x!=="aria-"}default:return!1}}function Je(v){return Qe.hasOwnProperty(v)?Qe[v]:null}function Ze(v,l,d,m,x,R,B){this.acceptsBooleans=l===Fe||l===Ve||l===Ue,this.attributeName=m,this.attributeNamespace=x,this.mustUseProperty=d,this.propertyName=v,this.type=l,this.sanitizeURL=R,this.removeEmptyString=B}var Qe={},it=["children","dangerouslySetInnerHTML","defaultValue","defaultChecked","innerHTML","suppressContentEditableWarning","suppressHydrationWarning","style"];it.forEach(function(v){Qe[v]=new Ze(v,ze,!1,v,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(v){var l=v[0],d=v[1];Qe[l]=new Ze(l,Me,!1,d,null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(v){Qe[v]=new Ze(v,Fe,!1,v.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(v){Qe[v]=new Ze(v,Fe,!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 Ze(v,Ve,!1,v.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(v){Qe[v]=new Ze(v,Ve,!0,v,null,!1,!1)}),["capture","download"].forEach(function(v){Qe[v]=new Ze(v,Ue,!1,v,null,!1,!1)}),["cols","rows","size","span"].forEach(function(v){Qe[v]=new Ze(v,ke,!1,v,null,!1,!1)}),["rowSpan","start"].forEach(function(v){Qe[v]=new Ze(v,he,!1,v.toLowerCase(),null,!1,!1)});var ht=/[\-\:]([a-z])/g,gt=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(ht,gt);Qe[l]=new Ze(l,Me,!1,v,null,!1,!1)}),["xlink:actuate","xlink:arcrole","xlink:role","xlink:show","xlink:title","xlink:type"].forEach(function(v){var l=v.replace(ht,gt);Qe[l]=new Ze(l,Me,!1,v,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(v){var l=v.replace(ht,gt);Qe[l]=new Ze(l,Me,!1,v,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(v){Qe[v]=new Ze(v,Me,!1,v.toLowerCase(),null,!1,!1)});var ct="xlinkHref";Qe[ct]=new Ze("xlinkHref",Me,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(v){Qe[v]=new Ze(v,Me,!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 et(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[et(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)-["+Ne+"]*$"),kr=new RegExp("^(aria)[A-Z]["+Ne+"]*$");function Jn(v,l){{if(ue.call(Sn,l)&&Sn[l])return!0;if(kr.test(l)){var d="aria-"+l.slice(4).toLowerCase(),m=Hn.hasOwnProperty(d)?d:null;if(m==null)return i("Invalid ARIA attribute `%s`. ARIA attributes follow the pattern aria-* and must be lowercase.",l),Sn[l]=!0,!0;if(l!==m)return i("Invalid ARIA attribute `%s`. Did you mean `%s`?",l,m),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 d=[];for(var m in l){var x=Jn(v,m);x||d.push(m)}var R=d.map(function(B){return"`"+B+"`"}).join(", ");d.length===1?i("Invalid aria prop %s on <%s> tag. For details, see https://reactjs.org/link/invalid-aria-props",R,v):d.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)-["+Ne+"]*$"),Dr=new RegExp("^(aria)[A-Z]["+Ne+"]*$");oi=function(v,l,d,m){if(ue.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(m!=null){var R=m.registrationNameDependencies,B=m.possibleRegistrationNames;if(R.hasOwnProperty(l))return!0;var Y=B.hasOwnProperty(x)?B[x]:null;if(Y!=null)return i("Invalid event handler property `%s`. Did you mean `%s`?",l,Y),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"&&d!==null&&d!==void 0&&typeof d!="string")return i("Received a `%s` for a string attribute `is`. If this is expected, cast the value to a string.",typeof d),on[l]=!0,!0;if(typeof d=="number"&&isNaN(d))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=Je(l),we=ne!==null&&ne.type===ze;if(Dn.hasOwnProperty(x)){var je=Dn[x];if(je!==l)return i("Invalid DOM property `%s`. Did you mean `%s`?",l,je),on[l]=!0,!0}else if(!we&&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 d=="boolean"&&We(l,d,ne)?(d?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()}.',d,l,l,d,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.',d,l,l,d,l,l,l),on[l]=!0,!0):we?!0:We(l,d,ne)?(on[l]=!0,!1):((d==="false"||d==="true")&&ne!==null&&ne.type===Ve&&(i("Received the string `%s` for the boolean attribute `%s`. %s Did you mean %s={%s}?",d,l,d==="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,d),on[l]=!0),!0)}}var Nn=function(v,l,d){{var m=[];for(var x in l){var R=oi(v,x,l[x],d);R||m.push(x)}var B=m.map(function(Y){return"`"+Y+"`"}).join(", ");m.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):m.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,d){mr(v,l)||Nn(v,l,d)}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,d){return d.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){le(v);var l=""+v,d=yr.exec(l);if(!d)return l;var m,x="",R,B=0;for(R=d.index;R<l.length;R++){switch(l.charCodeAt(R)){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}B!==R&&(x+=l.substring(B,R)),B=R+1,x+=m}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,Is=/^ms-/;function Ms(v){return v.replace(Di,"-$1").toLowerCase().replace(Is,"-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 le(v),(""+v).replace(tr,zi)}var tr=/(<\/|<)(s)(cript)/gi,zi=function(v,l,d,m){return""+l+(d==="s"?"\\u0073":"\\u0053")+m};function Oi(v,l,d,m,x){var R=v===void 0?"":v,B=l===void 0?Or:_('<script nonce="'+an(l)+'">'),Y=[];if(d!==void 0&&Y.push(B,j(Rr(d)),_r),m!==void 0)for(var ne=0;ne<m.length;ne++)Y.push(ci,j(an(m[ne])),br);if(x!==void 0)for(var we=0;we<x.length;we++)Y.push(Xr,j(an(x[we])),br);return{bootstrapChunks:Y,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,d){switch(l){case"select":return Wn(yn,d.value!=null?d.value:d.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,d){var m=v.idPrefix,x=":"+m+"R"+l;return d>0&&(x+="H"+d.toString(32)),x+":"}function Cn(v){return an(v)}var uo=_("<!-- -->");function On(v,l,d,m){return l===""?m:(m&&v.push(uo),v.push(j(Cn(l))),!0)}function _n(v,l,d,m){d&&m&&v.push(uo)}var k=new Map;function F(v){var l=k.get(v);if(l!==void 0)return l;var d=_(an(Ms(v)));return k.set(v,d),d}var G=_(' style="'),ee=_(":"),Te=_(";");function ge(v,l,d){if(typeof d!="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 m=!0;for(var x in d)if(ue.call(d,x)){var R=d[x];if(!(R==null||typeof R=="boolean"||R==="")){var B=void 0,Y=void 0,ne=x.indexOf("--")===0;ne?(B=j(an(x)),S(R,x),Y=j(an((""+R).trim()))):(so(x,R),B=F(x),typeof R=="number"?R!==0&&!ue.call(yt,x)?Y=j(R+"px"):Y=j(""+R):(S(R,x),Y=j(an((""+R).trim())))),m?(m=!1,v.push(G,B,ee,Y)):v.push(Te,B,ee,Y)}}m||v.push(pt)}var Pe=_(" "),Xe=_('="'),pt=_('"'),mt=_('=""');function ft(v,l,d,m){switch(d){case"style":{ge(v,l,m);return}case"defaultValue":case"defaultChecked":case"innerHTML":case"suppressContentEditableWarning":case"suppressHydrationWarning":return}if(!(d.length>2&&(d[0]==="o"||d[0]==="O")&&(d[1]==="n"||d[1]==="N"))){var x=Je(d);if(x!==null){switch(typeof m){case"function":case"symbol":return;case"boolean":if(!x.acceptsBooleans)return}var R=x.attributeName,B=j(R);switch(x.type){case Ve:m&&v.push(Pe,B,mt);return;case Ue:m===!0?v.push(Pe,B,mt):m===!1||v.push(Pe,B,Xe,j(an(m)),pt);return;case he:isNaN(m)||v.push(Pe,B,Xe,j(an(m)),pt);break;case ke:!isNaN(m)&&m>=1&&v.push(Pe,B,Xe,j(an(m)),pt);break;default:x.sanitizeURL&&(de(m,R),m=""+m,lo(m)),v.push(Pe,B,Xe,j(an(m)),pt)}}else if(Ye(d)){switch(typeof m){case"function":case"symbol":return;case"boolean":{var Y=d.toLowerCase().slice(0,5);if(Y!=="data-"&&Y!=="aria-")return}}v.push(Pe,j(d),Xe,j(an(m)),pt)}}}var Ft=_(">"),Bn=_("/>");function zn(v,l,d){if(l!=null){if(d!=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 m=l.__html;m!=null&&(le(m),v.push(j(""+m)))}}var En=!1,Zr=!1,lr=!1,Yi=!1,gi=!1,Gi=!1,Mr=!1;function qi(v,l){{var d=v[l];if(d!=null){var m=er(d);v.multiple&&!m?i("The `%s` prop supplied to <select> must be an array if `multiple` is true.",l):!v.multiple&&m&&i("The `%s` prop supplied to <select> must be a scalar value if `multiple` is false.",l)}}}function Ha(v,l,d){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 m=null,x=null;for(var R in l)if(ue.call(l,R)){var B=l[R];if(B==null)continue;switch(R){case"children":m=B;break;case"dangerouslySetInnerHTML":x=B;break;case"defaultValue":case"value":break;default:ft(v,d,R,B);break}}return v.push(Ft),zn(v,x,m),m}function Ls(v){var l="";return t.Children.forEach(v,function(d){d!=null&&(l+=d,!gi&&typeof d!="string"&&typeof d!="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,d,m){var x=m.selectedValue;v.push(ur("option"));var R=null,B=null,Y=null,ne=null;for(var we in l)if(ue.call(l,we)){var je=l[we];if(je==null)continue;switch(we){case"children":R=je;break;case"selected":Y=je,Mr||(i("Use the `defaultValue` or `value` props on <select> instead of setting `selected` on <option>."),Mr=!0);break;case"dangerouslySetInnerHTML":ne=je;break;case"value":B=je;default:ft(v,d,we,je);break}}if(x!=null){var qe;if(B!==null?(de(B,"value"),qe=""+B):(ne!==null&&(Gi||(Gi=!0,i("Pass a `value` prop if you set dangerouslyInnerHTML so React knows which value should be selected."))),qe=Ls(R)),er(x))for(var nt=0;nt<x.length;nt++){de(x[nt],"value");var xt=""+x[nt];if(xt===qe){v.push(rs);break}}else de(x,"select.value"),""+x===qe&&v.push(rs)}else Y&&v.push(rs);return v.push(Ft),zn(v,ne,R),R}function Ua(v,l,d){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 m=null,x=null,R=null,B=null;for(var Y in l)if(ue.call(l,Y)){var ne=l[Y];if(ne==null)continue;switch(Y){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":m=ne;break;default:ft(v,d,Y,ne);break}}return R!==null?ft(v,d,"checked",R):B!==null&&ft(v,d,"checked",B),m!==null?ft(v,d,"value",m):x!==null&&ft(v,d,"value",x),v.push(Bn),null}function mi(v,l,d){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 m=null,x=null,R=null;for(var B in l)if(ue.call(l,B)){var Y=l[B];if(Y==null)continue;switch(B){case"children":R=Y;break;case"value":m=Y;break;case"defaultValue":x=Y;break;case"dangerouslySetInnerHTML":throw new Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");default:ft(v,d,B,Y);break}}if(m===null&&x!==null&&(m=x),v.push(Ft),R!=null){if(i("Use the `defaultValue` or `value` props instead of setting children on <textarea>."),m!=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.");le(R[0]),m=""+R[0]}le(R),m=""+R}return typeof m=="string"&&m[0]===`
105
+ `&&v.push(Ri),m!==null&&(de(m,"value"),v.push(j(Cn(""+m)))),null}function Fs(v,l,d,m){v.push(ur(d));for(var x in l)if(ue.call(l,x)){var R=l[x];if(R==null)continue;switch(x){case"children":case"dangerouslySetInnerHTML":throw new Error(d+" is a self-closing tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");default:ft(v,m,x,R);break}}return v.push(Bn),null}function is(v,l,d){v.push(ur("menuitem"));for(var m in l)if(ue.call(l,m)){var x=l[m];if(x==null)continue;switch(m){case"children":case"dangerouslySetInnerHTML":throw new Error("menuitems cannot have `children` nor `dangerouslySetInnerHTML`.");default:ft(v,d,m,x);break}}return v.push(Ft),null}function rn(v,l,d){v.push(ur("title"));var m=null;for(var x in l)if(ue.call(l,x)){var R=l[x];if(R==null)continue;switch(x){case"children":m=R;break;case"dangerouslySetInnerHTML":throw new Error("`dangerouslySetInnerHTML` does not make sense on <title>.");default:ft(v,d,x,R);break}}v.push(Ft);{var B=Array.isArray(m)&&m.length<2?m[0]||null:m;Array.isArray(m)&&m.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 m}function Gt(v,l,d,m){v.push(ur(d));var x=null,R=null;for(var B in l)if(ue.call(l,B)){var Y=l[B];if(Y==null)continue;switch(B){case"children":x=Y;break;case"dangerouslySetInnerHTML":R=Y;break;default:ft(v,m,B,Y);break}}return v.push(Ft),zn(v,R,x),typeof x=="string"?(v.push(j(Cn(x))),null):x}function Kt(v,l,d,m){v.push(ur(d));var x=null,R=null;for(var B in l)if(ue.call(l,B)){var Y=l[B];if(Y==null)continue;switch(B){case"children":x=Y;break;case"dangerouslySetInnerHTML":R=Y;break;case"style":ge(v,m,Y);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":break;default:Ye(B)&&typeof Y!="function"&&typeof Y!="symbol"&&v.push(Pe,j(B),Xe,j(an(Y)),pt);break}}return v.push(Ft),zn(v,R,x),x}var Ri=_(`
106
+ `);function Jr(v,l,d,m){v.push(ur(d));var x=null,R=null;for(var B in l)if(ue.call(l,B)){var Y=l[B];if(Y==null)continue;switch(B){case"children":x=Y;break;case"dangerouslySetInnerHTML":R=Y;break;default:ft(v,m,B,Y);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
+ `?v.push(Ri,j(ne)):(le(ne),v.push(j(""+ne))))}return typeof x=="string"&&x[0]===`
108
+ `&&v.push(Ri),x}var Io=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,vi=new Map;function ur(v){var l=vi.get(v);if(l===void 0){if(!Io.test(v))throw new Error("Invalid tag: "+v);l=_("<"+v),vi.set(v,l)}return l}var Ns=_("<!DOCTYPE html>");function co(v,l,d,m,x){switch(fn(l,d),ut(l,d),Pr(l,d,null),!d.suppressContentEditableWarning&&d.contentEditable&&d.children!=null&&i("A component is `contentEditable` and contains `children` managed by React. It is now your responsibility to guarantee that none of those nodes are unexpectedly modified or duplicated. This is probably not intentional."),x.insertionMode!==Ar&&x.insertionMode!==Ir&&l.indexOf("-")===-1&&typeof d.is!="string"&&l.toLowerCase()!==l&&i("<%s /> is using incorrect casing. Use PascalCase for React components, or lowercase for HTML elements.",l),l){case"select":return Ha(v,d,m);case"option":return xr(v,d,m,x);case"textarea":return mi(v,d,m);case"input":return Ua(v,d,m);case"menuitem":return is(v,d,m);case"title":return rn(v,d,m);case"listing":case"pre":return Jr(v,d,l,m);case"area":case"base":case"br":case"col":case"embed":case"hr":case"img":case"keygen":case"link":case"meta":case"param":case"source":case"track":case"wbr":return Fs(v,d,l,m);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 Gt(v,d,l,m);case"html":return x.insertionMode===ar&&v.push(Ns),Gt(v,d,l,m);default:return l.indexOf("-")===-1&&typeof d.is!="string"?Gt(v,d,l,m):Kt(v,d,l,m)}}var aa=_("</"),ln=_(">");function Mo(v,l,d){switch(l){case"area":case"base":case"br":case"col":case"embed":case"hr":case"img":case"input":case"keygen":case"link":case"meta":case"param":case"source":case"track":case"wbr":break;default:v.push(aa,j(l),ln)}}function yi(v,l){for(var d=l.bootstrapChunks,m=0;m<d.length-1;m++)g(v,d[m]);return m<d.length?T(v,d[m]):!0}var la=_('<template id="'),fo=_('"></template>');function cr(v,l,d){g(v,la),g(v,l.placeholderPrefix);var m=j(d.toString(16));return g(v,m),T(v,fo)}var h=_("<!--$-->"),y=_('<!--$?--><template id="'),C=_('"></template>'),P=_("<!--$!-->"),L=_("<!--/$-->"),N=_("<template"),V=_('"'),oe=_(' data-dgst="'),te=_(' data-msg="'),pe=_(' data-stck="'),De=_("></template>");function _e(v,l){return T(v,h)}function xe(v,l,d){if(g(v,y),d===null)throw new Error("An ID must have been assigned before we can complete the boundary.");return g(v,d),T(v,C)}function Be(v,l,d,m,x){var R;return R=T(v,P),g(v,N),d&&(g(v,oe),g(v,j(an(d))),g(v,V)),m&&(g(v,te),g(v,j(an(m))),g(v,V)),x&&(g(v,pe),g(v,j(an(x))),g(v,V)),R=T(v,De),R}function ot(v,l){return T(v,L)}function Tt(v,l){return T(v,L)}function Et(v,l){return T(v,L)}var Rn=_('<div hidden id="'),un=_('">'),Lr=_("</div>"),Fr=_('<svg aria-hidden="true" style="display:none" id="'),Lt=_('">'),Nr=_("</svg>"),jt=_('<math aria-hidden="true" style="display:none" id="'),Qt=_('">'),ho=_("</math>"),po=_('<table hidden id="'),Sr=_('">'),D=_("</table>"),M=_('<table hidden><tbody id="'),U=_('">'),Q=_("</tbody></table>"),ye=_('<table hidden><tr id="'),be=_('">'),Ae=_("</tr></table>"),Ge=_('<table hidden><colgroup id="'),dt=_('">'),_t=_("</colgroup></table>");function St(v,l,d,m){switch(d.insertionMode){case ar:case yn:return g(v,Rn),g(v,l.segmentPrefix),g(v,j(m.toString(16))),T(v,un);case Ar:return g(v,Fr),g(v,l.segmentPrefix),g(v,j(m.toString(16))),T(v,Lt);case Ir:return g(v,jt),g(v,l.segmentPrefix),g(v,j(m.toString(16))),T(v,Qt);case fi:return g(v,po),g(v,l.segmentPrefix),g(v,j(m.toString(16))),T(v,Sr);case di:return g(v,M),g(v,l.segmentPrefix),g(v,j(m.toString(16))),T(v,U);case wr:return g(v,ye),g(v,l.segmentPrefix),g(v,j(m.toString(16))),T(v,be);case Kr:return g(v,Ge),g(v,l.segmentPrefix),g(v,j(m.toString(16))),T(v,dt);default:throw new Error("Unknown insertion mode. This is a bug in React.")}}function vt(v,l){switch(l.insertionMode){case ar:case yn:return T(v,Lr);case Ar:return T(v,Nr);case Ir:return T(v,ho);case fi:return T(v,D);case di:return T(v,Q);case wr:return T(v,Ae);case Kr:return T(v,_t);default:throw new Error("Unknown insertion mode. This is a bug in React.")}}var An="function $RS(a,b){a=document.getElementById(a);b=document.getElementById(b);for(a.parentNode.removeChild(a);a.firstChild;)b.parentNode.insertBefore(a.firstChild,b);b.parentNode.removeChild(b)}",bn='function $RC(a,b){a=document.getElementById(a);b=document.getElementById(b);b.parentNode.removeChild(b);if(a){a=a.previousSibling;var f=a.parentNode,c=a.nextSibling,e=0;do{if(c&&8===c.nodeType){var d=c.data;if("/$"===d)if(0===e)break;else e--;else"$"!==d&&"$?"!==d&&"$!"!==d||e++}d=c.nextSibling;f.removeChild(c);c=d}while(c);for(;b.firstChild;)f.insertBefore(b.firstChild,c);a.data="$";a._reactRetry&&a._reactRetry()}}',$n='function $RX(b,c,d,e){var a=document.getElementById(b);a&&(b=a.previousSibling,b.data="$!",a=a.dataset,c&&(a.dgst=c),d&&(a.msg=d),e&&(a.stck=e),b._reactRetry&&b._reactRetry())}',os=_(An+';$RS("'),ua=_('$RS("'),go=_('","'),Qr=_('")<\/script>');function Wa(v,l,d){g(v,l.startInlineScript),l.sentCompleteSegmentFunction?g(v,ua):(l.sentCompleteSegmentFunction=!0,g(v,os)),g(v,l.segmentPrefix);var m=j(d.toString(16));return g(v,m),g(v,go),g(v,l.placeholderPrefix),g(v,m),T(v,Qr)}var Ai=_(bn+';$RC("'),ca=_('$RC("'),ss=_('","'),ei=_('")<\/script>');function mo(v,l,d,m){if(g(v,l.startInlineScript),l.sentCompleteBoundaryFunction?g(v,ca):(l.sentCompleteBoundaryFunction=!0,g(v,Ai)),d===null)throw new Error("An ID must have been assigned before we can complete the boundary.");var x=j(m.toString(16));return g(v,d),g(v,ss),g(v,l.segmentPrefix),g(v,x),T(v,ei)}var za=_($n+';$RX("'),ku=_('$RX("'),fa=_('"'),vo=_(")<\/script>"),cn=_(",");function Ol(v,l,d,m,x,R){if(g(v,l.startInlineScript),l.sentClientRenderFunction?g(v,ku):(l.sentClientRenderFunction=!0,g(v,za)),d===null)throw new Error("An ID must have been assigned before we can complete the boundary.");return g(v,d),g(v,fa),(m||x||R)&&(g(v,cn),g(v,j(js(m||"")))),(x||R)&&(g(v,cn),g(v,j(js(x||"")))),R&&(g(v,cn),g(v,j(js(R)))),T(v,vo)}var da=/[<\u2028\u2029]/g;function js(v){var l=JSON.stringify(v);return l.replace(da,function(d){switch(d){case"<":return"\\u003c";case"\u2028":return"\\u2028";case"\u2029":return"\\u2029";default:throw new Error("escapeJSStringsForInstructionScripts encountered a match it does not know how to replace. this means the match regex and the replacement characters are no longer in sync. This is a bug in React")}})}var J=Object.assign,ce=Symbol.for("react.element"),Se=Symbol.for("react.portal"),Ce=Symbol.for("react.fragment"),K=Symbol.for("react.strict_mode"),ae=Symbol.for("react.profiler"),se=Symbol.for("react.provider"),Re=Symbol.for("react.context"),Le=Symbol.for("react.forward_ref"),st=Symbol.for("react.suspense"),lt=Symbol.for("react.suspense_list"),rt=Symbol.for("react.memo"),It=Symbol.for("react.lazy"),wt=Symbol.for("react.scope"),Vt=Symbol.for("react.debug_trace_mode"),Yn=Symbol.for("react.legacy_hidden"),nr=Symbol.for("react.default_value"),In=Symbol.iterator,zt="@@iterator";function jr(v){if(v===null||typeof v!="object")return null;var l=In&&v[In]||v[zt];return typeof l=="function"?l:null}function kt(v,l,d){var m=v.displayName;if(m)return m;var x=l.displayName||l.name||"";return x!==""?d+"("+x+")":d}function Du(v){return v.displayName||"Context"}function pn(v){if(v==null)return null;if(typeof v.tag=="number"&&i("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof v=="function")return v.displayName||v.name||null;if(typeof v=="string")return v;switch(v){case Ce:return"Fragment";case Se:return"Portal";case ae:return"Profiler";case K:return"StrictMode";case st:return"Suspense";case lt:return"SuspenseList"}if(typeof v=="object")switch(v.$$typeof){case Re:var l=v;return Du(l)+".Consumer";case se:var d=v;return Du(d._context)+".Provider";case Le:return kt(v,v.render,"ForwardRef");case rt:var m=v.displayName||null;return m!==null?m:pn(v.type)||"Memo";case It:{var x=v,R=x._payload,B=x._init;try{return pn(B(R))}catch{return null}}}return null}var Lo=0,Pu,Ou,_u,ha,Fo,Ya,Ga;function Bs(){}Bs.__reactDisabledLog=!0;function pa(){{if(Lo===0){Pu=console.log,Ou=console.info,_u=console.warn,ha=console.error,Fo=console.group,Ya=console.groupCollapsed,Ga=console.groupEnd;var v={configurable:!0,enumerable:!0,value:Bs,writable:!0};Object.defineProperties(console,{info:v,log:v,warn:v,error:v,group:v,groupCollapsed:v,groupEnd:v})}Lo++}}function _l(){{if(Lo--,Lo===0){var v={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:J({},v,{value:Pu}),info:J({},v,{value:Ou}),warn:J({},v,{value:_u}),error:J({},v,{value:ha}),group:J({},v,{value:Fo}),groupCollapsed:J({},v,{value:Ya}),groupEnd:J({},v,{value:Ga})})}Lo<0&&i("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var No=n.ReactCurrentDispatcher,Rl;function Xi(v,l,d){{if(Rl===void 0)try{throw Error()}catch(x){var m=x.stack.trim().match(/\n( *(at )?)/);Rl=m&&m[1]||""}return`
109
+ `+Rl+v}}var jo=!1,as;{var Ff=typeof WeakMap=="function"?WeakMap:Map;as=new Ff}function qa(v,l){if(!v||jo)return"";{var d=as.get(v);if(d!==void 0)return d}var m;jo=!0;var x=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var R;R=No.current,No.current=null,pa();try{if(l){var B=function(){throw Error()};if(Object.defineProperty(B.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(B,[])}catch(en){m=en}Reflect.construct(v,[],B)}else{try{B.call()}catch(en){m=en}v.call(B.prototype)}}else{try{throw Error()}catch(en){m=en}v()}}catch(en){if(en&&m&&typeof en.stack=="string"){for(var Y=en.stack.split(`
110
+ `),ne=m.stack.split(`
111
+ `),we=Y.length-1,je=ne.length-1;we>=1&&je>=0&&Y[we]!==ne[je];)je--;for(;we>=1&&je>=0;we--,je--)if(Y[we]!==ne[je]){if(we!==1||je!==1)do if(we--,je--,je<0||Y[we]!==ne[je]){var qe=`
112
+ `+Y[we].replace(" at new "," at ");return v.displayName&&qe.includes("<anonymous>")&&(qe=qe.replace("<anonymous>",v.displayName)),typeof v=="function"&&as.set(v,qe),qe}while(we>=1&&je>=0);break}}}finally{jo=!1,No.current=R,_l(),Error.prepareStackTrace=x}var nt=v?v.displayName||v.name:"",xt=nt?Xi(nt):"";return typeof v=="function"&&as.set(v,xt),xt}function Ac(v,l,d){return qa(v,!0)}function ga(v,l,d){return qa(v,!1)}function $s(v){var l=v.prototype;return!!(l&&l.isReactComponent)}function ma(v,l,d){if(v==null)return"";if(typeof v=="function")return qa(v,$s(v));if(typeof v=="string")return Xi(v);switch(v){case st:return Xi("Suspense");case lt:return Xi("SuspenseList")}if(typeof v=="object")switch(v.$$typeof){case Le:return ga(v.render);case rt:return ma(v.type,l,d);case It:{var m=v,x=m._payload,R=m._init;try{return ma(R(x),l,d)}catch{}}}return""}var Al={},va=n.ReactDebugCurrentFrame;function Xa(v){if(v){var l=v._owner,d=ma(v.type,v._source,l?l.type:null);va.setExtraStackFrame(d)}else va.setExtraStackFrame(null)}function Ic(v,l,d,m,x){{var R=Function.call.bind(ue);for(var B in v)if(R(v,B)){var Y=void 0;try{if(typeof v[B]!="function"){var ne=Error((m||"React class")+": "+d+" type `"+B+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof v[B]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw ne.name="Invariant Violation",ne}Y=v[B](l,B,m,d,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(we){Y=we}Y&&!(Y instanceof Error)&&(Xa(x),i("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. 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||"React class",d,B,typeof Y),Xa(null)),Y instanceof Error&&!(Y.message in Al)&&(Al[Y.message]=!0,Xa(x),i("Failed %s type: %s",d,Y.message),Xa(null))}}}var wn;wn={};var Gn={};Object.freeze(Gn);function ls(v,l){{var d=v.contextTypes;if(!d)return Gn;var m={};for(var x in d)m[x]=l[x];{var R=pn(v)||"Unknown";Ic(d,m,"context",R)}return m}}function Ru(v,l,d,m){{if(typeof v.getChildContext!="function"){{var x=pn(l)||"Unknown";wn[x]||(wn[x]=!0,i("%s.childContextTypes is specified but there is no getChildContext() method on the instance. You can either define getChildContext() on %s or remove childContextTypes from it.",x,x))}return d}var R=v.getChildContext();for(var B in R)if(!(B in m))throw new Error((pn(l)||"Unknown")+'.getChildContext(): key "'+B+'" is not defined in childContextTypes.');{var Y=pn(l)||"Unknown";Ic(m,R,"child context",Y)}return J({},d,R)}}var us;us={};var Il=null,yo=null;function cs(v){v.context._currentValue=v.parentValue}function ya(v){v.context._currentValue=v.value}function bo(v,l){if(v!==l){cs(v);var d=v.parent,m=l.parent;if(d===null){if(m!==null)throw new Error("The stacks must reach the root at the same time. This is a bug in React.")}else{if(m===null)throw new Error("The stacks must reach the root at the same time. This is a bug in React.");bo(d,m)}ya(l)}}function Bo(v){cs(v);var l=v.parent;l!==null&&Bo(l)}function ba(v){var l=v.parent;l!==null&&ba(l),ya(v)}function Ka(v,l){cs(v);var d=v.parent;if(d===null)throw new Error("The depth must equal at least at zero before reaching the root. This is a bug in React.");d.depth===l.depth?bo(d,l):Ka(d,l)}function Vs(v,l){var d=l.parent;if(d===null)throw new Error("The depth must equal at least at zero before reaching the root. This is a bug in React.");v.depth===d.depth?bo(v,d):Vs(v,d),ya(l)}function fs(v){var l=yo,d=v;l!==d&&(l===null?ba(d):d===null?Bo(l):l.depth===d.depth?bo(l,d):l.depth>d.depth?Ka(l,d):Vs(l,d),yo=d)}function Au(v,l){var d;d=v._currentValue,v._currentValue=l,v._currentRenderer!==void 0&&v._currentRenderer!==null&&v._currentRenderer!==us&&i("Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported."),v._currentRenderer=us;var m=yo,x={parent:m,depth:m===null?0:m.depth+1,context:v,parentValue:d,value:l};return yo=x,x}function Nf(v){var l=yo;if(l===null)throw new Error("Tried to pop a Context at the root of the app. This is a bug in React.");l.context!==v&&i("The parent context is not the expected context. This is probably a bug in React.");{var d=l.parentValue;d===nr?l.context._currentValue=l.context._defaultValue:l.context._currentValue=d,v._currentRenderer!==void 0&&v._currentRenderer!==null&&v._currentRenderer!==us&&i("Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported."),v._currentRenderer=us}return yo=l.parent}function Mc(){return yo}function wa(v){var l=v._currentValue;return l}function ds(v){return v._reactInternals}function Hs(v,l){v._reactInternals=l}var Za={},z={},$o,Vo,Tr,$t,Ml,Ja,Ll,wo,Iu;{$o=new Set,Vo=new Set,Tr=new Set,Ll=new Set,$t=new Set,wo=new Set,Iu=new Set;var Lc=new Set;Ja=function(v,l){if(!(v===null||typeof v=="function")){var d=l+"_"+v;Lc.has(d)||(Lc.add(d),i("%s(...): Expected the last optional `callback` argument to be a function. Instead received: %s.",l,v))}},Ml=function(v,l){if(l===void 0){var d=pn(v)||"Component";$t.has(d)||($t.add(d),i("%s.getDerivedStateFromProps(): A valid state object (or null) must be returned. You have returned undefined.",d))}}}function Fc(v,l){{var d=v.constructor,m=d&&pn(d)||"ReactClass",x=m+"."+l;if(Za[x])return;i(`%s(...): Can only update a mounting component. This usually means you called %s() outside componentWillMount() on the server. This is a no-op.
113
+
114
+ Please check the code for the %s component.`,l,l,m),Za[x]=!0}}var Nc={isMounted:function(v){return!1},enqueueSetState:function(v,l,d){var m=ds(v);m.queue===null?Fc(v,"setState"):(m.queue.push(l),d!=null&&Ja(d,"setState"))},enqueueReplaceState:function(v,l,d){var m=ds(v);m.replace=!0,m.queue=[l],d!=null&&Ja(d,"setState")},enqueueForceUpdate:function(v,l){var d=ds(v);d.queue===null?Fc(v,"forceUpdate"):l!=null&&Ja(l,"setState")}};function jf(v,l,d,m,x){var R=d(x,m);Ml(l,R);var B=R==null?m:J({},m,R);return B}function xo(v,l,d){var m=Gn,x=v.contextType;if("contextType"in v){var R=x===null||x!==void 0&&x.$$typeof===Re&&x._context===void 0;if(!R&&!Iu.has(v)){Iu.add(v);var B="";x===void 0?B=" However, it is set to undefined. This can be caused by a typo or by mixing up named and default imports. This can also happen due to a circular dependency, so try moving the createContext() call to a separate file.":typeof x!="object"?B=" However, it is set to a "+typeof x+".":x.$$typeof===se?B=" Did you accidentally pass the Context.Provider instead?":x._context!==void 0?B=" Did you accidentally pass the Context.Consumer instead?":B=" However, it is set to an object with keys {"+Object.keys(x).join(", ")+"}.",i("%s defines an invalid contextType. contextType should point to the Context object returned by React.createContext().%s",pn(v)||"Component",B)}}typeof x=="object"&&x!==null?m=wa(x):m=d;var Y=new v(l,m);{if(typeof v.getDerivedStateFromProps=="function"&&(Y.state===null||Y.state===void 0)){var ne=pn(v)||"Component";$o.has(ne)||($o.add(ne),i("`%s` uses `getDerivedStateFromProps` but its initial state is %s. This is not recommended. Instead, define the initial state by assigning an object to `this.state` in the constructor of `%s`. This ensures that `getDerivedStateFromProps` arguments have a consistent shape.",ne,Y.state===null?"null":"undefined",ne))}if(typeof v.getDerivedStateFromProps=="function"||typeof Y.getSnapshotBeforeUpdate=="function"){var we=null,je=null,qe=null;if(typeof Y.componentWillMount=="function"&&Y.componentWillMount.__suppressDeprecationWarning!==!0?we="componentWillMount":typeof Y.UNSAFE_componentWillMount=="function"&&(we="UNSAFE_componentWillMount"),typeof Y.componentWillReceiveProps=="function"&&Y.componentWillReceiveProps.__suppressDeprecationWarning!==!0?je="componentWillReceiveProps":typeof Y.UNSAFE_componentWillReceiveProps=="function"&&(je="UNSAFE_componentWillReceiveProps"),typeof Y.componentWillUpdate=="function"&&Y.componentWillUpdate.__suppressDeprecationWarning!==!0?qe="componentWillUpdate":typeof Y.UNSAFE_componentWillUpdate=="function"&&(qe="UNSAFE_componentWillUpdate"),we!==null||je!==null||qe!==null){var nt=pn(v)||"Component",xt=typeof v.getDerivedStateFromProps=="function"?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";Tr.has(nt)||(Tr.add(nt),i(`Unsafe legacy lifecycles will not be called for components using new component APIs.
115
+
116
+ %s uses %s but also contains the following legacy lifecycles:%s%s%s
117
+
118
+ The above lifecycles should be removed. Learn more about this warning here:
119
+ https://reactjs.org/link/unsafe-component-lifecycles`,nt,xt,we!==null?`
120
+ `+we:"",je!==null?`
121
+ `+je:"",qe!==null?`
122
+ `+qe:""))}}}return Y}function Bf(v,l,d){{var m=pn(l)||"Component",x=v.render;x||(l.prototype&&typeof l.prototype.render=="function"?i("%s(...): No `render` method found on the returned component instance: did you accidentally return an object from the constructor?",m):i("%s(...): No `render` method found on the returned component instance: you may have forgotten to define `render`.",m)),v.getInitialState&&!v.getInitialState.isReactClassApproved&&!v.state&&i("getInitialState was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Did you mean to define a state property instead?",m),v.getDefaultProps&&!v.getDefaultProps.isReactClassApproved&&i("getDefaultProps was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Use a static property to define defaultProps instead.",m),v.propTypes&&i("propTypes was defined as an instance property on %s. Use a static property to define propTypes instead.",m),v.contextType&&i("contextType was defined as an instance property on %s. Use a static property to define contextType instead.",m),v.contextTypes&&i("contextTypes was defined as an instance property on %s. Use a static property to define contextTypes instead.",m),l.contextType&&l.contextTypes&&!wo.has(l)&&(wo.add(l),i("%s declares both contextTypes and contextType static properties. The legacy contextTypes property will be ignored.",m)),typeof v.componentShouldUpdate=="function"&&i("%s has a method called componentShouldUpdate(). Did you mean shouldComponentUpdate()? The name is phrased as a question because the function is expected to return a value.",m),l.prototype&&l.prototype.isPureReactComponent&&typeof v.shouldComponentUpdate<"u"&&i("%s has a method called shouldComponentUpdate(). shouldComponentUpdate should not be used when extending React.PureComponent. Please extend React.Component if shouldComponentUpdate is used.",pn(l)||"A pure component"),typeof v.componentDidUnmount=="function"&&i("%s has a method called componentDidUnmount(). But there is no such lifecycle method. Did you mean componentWillUnmount()?",m),typeof v.componentDidReceiveProps=="function"&&i("%s has a method called componentDidReceiveProps(). But there is no such lifecycle method. If you meant to update the state in response to changing props, use componentWillReceiveProps(). If you meant to fetch data or run side-effects or mutations after React has updated the UI, use componentDidUpdate().",m),typeof v.componentWillRecieveProps=="function"&&i("%s has a method called componentWillRecieveProps(). Did you mean componentWillReceiveProps()?",m),typeof v.UNSAFE_componentWillRecieveProps=="function"&&i("%s has a method called UNSAFE_componentWillRecieveProps(). Did you mean UNSAFE_componentWillReceiveProps()?",m);var R=v.props!==d;v.props!==void 0&&R&&i("%s(...): When calling super() in `%s`, make sure to pass up the same props that your component's constructor was passed.",m,m),v.defaultProps&&i("Setting defaultProps as an instance property on %s is not supported and will be ignored. Instead, define defaultProps as a static property on %s.",m,m),typeof v.getSnapshotBeforeUpdate=="function"&&typeof v.componentDidUpdate!="function"&&!Vo.has(l)&&(Vo.add(l),i("%s: getSnapshotBeforeUpdate() should be used with componentDidUpdate(). This component defines getSnapshotBeforeUpdate() only.",pn(l))),typeof v.getDerivedStateFromProps=="function"&&i("%s: getDerivedStateFromProps() is defined as an instance method and will be ignored. Instead, declare it as a static method.",m),typeof v.getDerivedStateFromError=="function"&&i("%s: getDerivedStateFromError() is defined as an instance method and will be ignored. Instead, declare it as a static method.",m),typeof l.getSnapshotBeforeUpdate=="function"&&i("%s: getSnapshotBeforeUpdate() is defined as a static method and will be ignored. Instead, declare it as an instance method.",m);var B=v.state;B&&(typeof B!="object"||er(B))&&i("%s.state: must be set to an object or null",m),typeof v.getChildContext=="function"&&typeof l.childContextTypes!="object"&&i("%s.getChildContext(): childContextTypes must be defined in order to use getChildContext().",m)}}function $f(v,l){var d=l.state;if(typeof l.componentWillMount=="function"){if(l.componentWillMount.__suppressDeprecationWarning!==!0){var m=pn(v)||"Unknown";z[m]||(r(`componentWillMount has been renamed, and is not recommended for use. See https://reactjs.org/link/unsafe-component-lifecycles for details.
123
+
124
+ * Move code from componentWillMount to componentDidMount (preferred in most cases) or the constructor.
125
+
126
+ Please update the following components: %s`,m),z[m]=!0)}l.componentWillMount()}typeof l.UNSAFE_componentWillMount=="function"&&l.UNSAFE_componentWillMount(),d!==l.state&&(i("%s.componentWillMount(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",pn(v)||"Component"),Nc.enqueueReplaceState(l,l.state,null))}function Mu(v,l,d,m){if(v.queue!==null&&v.queue.length>0){var x=v.queue,R=v.replace;if(v.queue=null,v.replace=!1,R&&x.length===1)l.state=x[0];else{for(var B=R?x[0]:l.state,Y=!0,ne=R?1:0;ne<x.length;ne++){var we=x[ne],je=typeof we=="function"?we.call(l,B,d,m):we;je!=null&&(Y?(Y=!1,B=J({},B,je)):J(B,je))}l.state=B}}else v.queue=null}function Qa(v,l,d,m){Bf(v,l,d);var x=v.state!==void 0?v.state:null;v.updater=Nc,v.props=d,v.state=x;var R={queue:[],replace:!1};Hs(v,R);var B=l.contextType;if(typeof B=="object"&&B!==null?v.context=wa(B):v.context=m,v.state===d){var Y=pn(l)||"Component";Ll.has(Y)||(Ll.add(Y),i("%s: It is not recommended to assign props directly to state because updates to props won't be reflected in state. In most cases, it is better to use props directly.",Y))}var ne=l.getDerivedStateFromProps;typeof ne=="function"&&(v.state=jf(v,l,ne,x,d)),typeof l.getDerivedStateFromProps!="function"&&typeof v.getSnapshotBeforeUpdate!="function"&&(typeof v.UNSAFE_componentWillMount=="function"||typeof v.componentWillMount=="function")&&($f(l,v),Mu(R,v,d,m))}var Vf={id:1,overflow:""};function Ho(v){var l=v.overflow,d=v.id,m=d&~Hf(d);return m.toString(32)+l}function Lu(v,l,d){var m=v.id,x=v.overflow,R=Fl(m)-1,B=m&~(1<<R),Y=d+1,ne=Fl(l)+R;if(ne>30){var we=R-R%5,je=(1<<we)-1,qe=(B&je).toString(32),nt=B>>we,xt=R-we,en=Fl(l)+xt,ir=Y<<xt,Eo=ir|nt,ws=qe+x;return{id:1<<en|Eo,overflow:ws}}else{var eo=Y<<R,_a=eo|B,tf=x;return{id:1<<ne|_a,overflow:tf}}}function Fl(v){return 32-Uf(v)}function Hf(v){return 1<<Fl(v)-1}var Uf=Math.clz32?Math.clz32:Fu,Wf=Math.log,Br=Math.LN2;function Fu(v){var l=v>>>0;return l===0?32:31-(Wf(l)/Br|0)|0}function Nl(v,l){return v===l&&(v!==0||1/v===1/l)||v!==v&&l!==l}var qt=typeof Object.is=="function"?Object.is:Nl,bi=null,xa=null,Us=null,Zt=null,hs=!1,el=!1,ti=0,wi=null,So=0,Nu=25,$r=!1,Ki;function Ws(){if(bi===null)throw new Error(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
127
+ 1. You might have mismatching versions of React and the renderer (such as React DOM)
128
+ 2. You might be breaking the Rules of Hooks
129
+ 3. You might have more than one copy of React in the same app
130
+ See https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem.`);return $r&&i("Do not call Hooks inside useEffect(...), useMemo(...), or other built-in Hooks. You can only call Hooks at the top level of your React function. For more information, see https://reactjs.org/link/rules-of-hooks"),bi}function jc(v,l){if(l===null)return i("%s received a final argument during this render, but not during the previous render. Even though the final argument is optional, its type cannot change between renders.",Ki),!1;v.length!==l.length&&i(`The final argument passed to %s changed size between renders. The order and size of this array must remain constant.
131
+
132
+ Previous: %s
133
+ Incoming: %s`,Ki,"["+v.join(", ")+"]","["+l.join(", ")+"]");for(var d=0;d<l.length&&d<v.length;d++)if(!qt(v[d],l[d]))return!1;return!0}function ju(){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?Us===null?(hs=!1,Us=Zt=ju()):(hs=!0,Zt=Us):Zt.next===null?(hs=!1,Zt=Zt.next=ju()):(hs=!0,Zt=Zt.next),Zt}function Bu(v,l){bi=l,xa=v,$r=!1,ti=0}function zs(v,l,d,m){for(;el;)el=!1,ti=0,So+=1,Zt=null,d=v(l,m);return $u(),d}function Vr(){var v=ti!==0;return v}function $u(){$r=!1,bi=null,xa=null,el=!1,Us=null,So=0,wi=null,Zt=null}function Vu(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()."),wa(v)}function Hu(v){return Ki="useContext",Ws(),wa(v)}function Ys(v,l){return typeof l=="function"?l(v):l}function ps(v){return Ki="useState",Uu(Ys,v)}function Uu(v,l,d){if(v!==Ys&&(Ki="useReducer"),bi=Ws(),Zt=xi(),hs){var m=Zt.queue,x=m.dispatch;if(wi!==null){var R=wi.get(m);if(R!==void 0){wi.delete(m);var B=Zt.memoizedState,Y=R;do{var ne=Y.action;$r=!0,B=v(B,ne),$r=!1,Y=Y.next}while(Y!==null);return Zt.memoizedState=B,[B,x]}}return[Zt.memoizedState,x]}else{$r=!0;var we;v===Ys?we=typeof l=="function"?l():l:we=d!==void 0?d(l):l,$r=!1,Zt.memoizedState=we;var je=Zt.queue={last:null,dispatch:null},qe=je.dispatch=$c.bind(null,bi,je);return[Zt.memoizedState,qe]}}function Bc(v,l){bi=Ws(),Zt=xi();var d=l===void 0?null:l;if(Zt!==null){var m=Zt.memoizedState;if(m!==null&&d!==null){var x=m[1];if(jc(d,x))return m[0]}}$r=!0;var R=v();return $r=!1,Zt.memoizedState=[R,d],R}function jl(v){bi=Ws(),Zt=xi();var l=Zt.memoizedState;if(l===null){var d={current:v};return Object.seal(d),Zt.memoizedState=d,d}else return l}function zf(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 $c(v,l,d){if(So>=Nu)throw new Error("Too many re-renders. React limits the number of renders to prevent an infinite loop.");if(v===bi){el=!0;var m={action:d,next:null};wi===null&&(wi=new Map);var x=wi.get(l);if(x===void 0)wi.set(l,m);else{for(var R=x;R.next!==null;)R=R.next;R.next=m}}}function fr(v,l){return Bc(function(){return v},l)}function Wu(v,l,d){return Ws(),l(v._source)}function Vc(v,l,d){if(d===void 0)throw new Error("Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.");return d()}function Si(v){return Ws(),v}function Bl(){throw new Error("startTransition cannot be called during server rendering.")}function Sa(){return Ws(),[!1,Bl]}function gs(){var v=xa,l=Ho(v.treeContext),d=Gs;if(d===null)throw new Error("Invalid hook call. Hooks can only be called inside of the body of a function component.");var m=ti++;return jn(d,l,m)}function tl(){}var rr={readContext:Vu,useContext:Hu,useMemo:Bc,useReducer:Uu,useRef:jl,useState:ps,useInsertionEffect:tl,useLayoutEffect:zf,useCallback:fr,useImperativeHandle:tl,useEffect:tl,useDebugValue:tl,useDeferredValue:Si,useTransition:Sa,useId:gs,useMutableSource:Wu,useSyncExternalStore:Vc},Gs=null;function $l(v){Gs=v}function Ta(v){try{var l="",d=v;do{switch(d.tag){case 0:l+=Xi(d.type,null,null);break;case 1:l+=ga(d.type,null,null);break;case 2:l+=Ac(d.type,null,null);break}d=d.parent}while(d);return l}catch(m){return`
134
+ Error generating stack: `+m.message+`
135
+ `+m.stack}}var Vl=n.ReactCurrentDispatcher,Ca=n.ReactDebugCurrentFrame,Hl=0,To=1,Ul=2,qs=3,Hc=4,nl=0,Ea=1,ka=2,zu=12800;function Uc(v){return console.error(v),null}function Xs(){}function Wl(v,l,d,m,x,R,B,Y,ne){var we=[],je=new Set,qe={destination:null,responseState:l,progressiveChunkSize:m===void 0?zu:m,status:nl,fatalError:null,nextSegmentId:0,allPendingTasks:0,pendingRootTasks:0,completedRootSegment:null,abortableTasks:je,pingedTasks:we,clientRenderedBoundaries:[],completedBoundaries:[],partialBoundaries:[],onError:x===void 0?Uc:x,onAllReady:R===void 0?Xs:R,onShellReady:B===void 0?Xs:B,onShellError:Y===void 0?Xs:Y,onFatalError:ne===void 0?Xs:ne},nt=rl(qe,0,null,d,!1,!1);nt.parentFlushed=!0;var xt=Wo(qe,v,null,nt,je,Gn,Il,Vf);return we.push(xt),qe}function Uo(v,l){var d=v.pingedTasks;d.push(l),d.length===1&&a(function(){return Ju(v)})}function zl(v,l){return{id:_i,rootSegmentID:-1,parentFlushed:!1,pendingTasks:0,forceClientRender:!1,completedSegments:[],byteSize:0,fallbackAbortableTasks:l,errorDigest:null}}function Wo(v,l,d,m,x,R,B,Y){v.allPendingTasks++,d===null?v.pendingRootTasks++:d.pendingTasks++;var ne={node:l,ping:function(){return Uo(v,ne)},blockedBoundary:d,blockedSegment:m,abortSet:x,legacyContext:R,context:B,treeContext:Y};return ne.componentStack=null,x.add(ne),ne}function rl(v,l,d,m,x,R){return{status:Hl,id:-1,index:l,parentFlushed:!1,chunks:[],children:[],formatContext:m,boundary:d,lastPushedText:x,textEmbedded:R}}var Zi=null;function Ji(){return Zi===null||Zi.componentStack===null?"":Ta(Zi.componentStack)}function Co(v,l){v.componentStack={tag:0,parent:v.componentStack,type:l}}function il(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 Da=null;function Yl(v,l){{var d;typeof l=="string"?d=l:l&&typeof l.message=="string"?d=l.message:d=String(l);var m=Da||Ji();Da=null,v.errorMessage=d,v.errorComponentStack=m}}function ol(v,l){var d=v.onError(l);if(d!=null&&typeof d!="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 d+'" instead');return d}function Pa(v,l){var d=v.onShellError;d(l);var m=v.onFatalError;m(l),v.destination!==null?(v.status=ka,H(v.destination,l)):(v.status=Ea,v.fatalError=l)}function Wc(v,l,d){Co(l,"Suspense");var m=l.blockedBoundary,x=l.blockedSegment,R=d.fallback,B=d.children,Y=new Set,ne=zl(v,Y),we=x.chunks.length,je=rl(v,we,ne,x.formatContext,!1,!1);x.children.push(je),x.lastPushedText=!1;var qe=rl(v,0,null,x.formatContext,!1,!1);qe.parentFlushed=!0,l.blockedBoundary=ne,l.blockedSegment=qe;try{if(Ti(v,l,B),_n(qe.chunks,v.responseState,qe.lastPushedText,qe.textEmbedded),qe.status=To,bs(ne,qe),ne.pendingTasks===0){Qi(l);return}}catch(xt){qe.status=Hc,ne.forceClientRender=!0,ne.errorDigest=ol(v,xt),Yl(ne,xt)}finally{l.blockedBoundary=m,l.blockedSegment=x}var nt=Wo(v,R,m,je,Y,l.legacyContext,l.context,l.treeContext);nt.componentStack=l.componentStack,v.pingedTasks.push(nt),Qi(l)}function Yu(v,l,d,m){Co(l,d);var x=l.blockedSegment,R=co(x.chunks,d,m,v.responseState,x.formatContext);x.lastPushedText=!1;var B=x.formatContext;x.formatContext=pi(B,d,m),Ti(v,l,R),x.formatContext=B,Mo(x.chunks,d),x.lastPushedText=!1,Qi(l)}function Gu(v){return v.prototype&&v.prototype.isReactComponent}function Ks(v,l,d,m,x){var R={};Bu(l,R);var B=d(m,x);return zs(d,m,B,x)}function qu(v,l,d,m,x){var R=d.render();d.props!==x&&(ql||i("It looks like %s is reassigning its own `this.props` while rendering. This is not supported and can lead to confusing bugs.",pn(m)||"a component"),ql=!0);{var B=m.childContextTypes;if(B!=null){var Y=l.legacyContext,ne=Ru(d,m,Y,B);l.legacyContext=ne,dr(v,l,R),l.legacyContext=Y;return}}dr(v,l,R)}function Gl(v,l,d,m){ms(l,d);var x=ls(d,l.legacyContext),R=xo(d,m,x);Qa(R,d,m,x),qu(v,l,R,d,m),Qi(l)}var Bt={},sl={},Xu={},Zs={},ql=!1,zc={},Yc=!1,ni=!1,Gc=!1;function Xl(v,l,d,m){var x;if(x=ls(d,l.legacyContext),il(l,d),d.prototype&&typeof d.prototype.render=="function"){var R=pn(d)||"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=Ks(v,l,d,m,x),Y=Vr();if(typeof B=="object"&&B!==null&&typeof B.render=="function"&&B.$$typeof===void 0){var ne=pn(d)||"Unknown";sl[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),sl[ne]=!0)}if(typeof B=="object"&&B!==null&&typeof B.render=="function"&&B.$$typeof===void 0){{var we=pn(d)||"Unknown";sl[we]||(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.",we,we,we),sl[we]=!0)}Qa(B,d,m,x),qu(v,l,B,d,m)}else if(Ku(d),Y){var je=l.treeContext,qe=1,nt=0;l.treeContext=Lu(je,qe,nt);try{dr(v,l,B)}finally{l.treeContext=je}}else dr(v,l,B);Qi(l)}function Ku(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";zc[l]||(i("%s: Support for defaultProps will be removed from function components in a future major release. Use JavaScript default parameters instead.",l),zc[l]=!0)}if(typeof v.getDerivedStateFromProps=="function"){var d=pn(v)||"Unknown";Zs[d]||(i("%s: Function components do not support getDerivedStateFromProps.",d),Zs[d]=!0)}if(typeof v.contextType=="object"&&v.contextType!==null){var m=pn(v)||"Unknown";Xu[m]||(i("%s: Function components do not support contextType.",m),Xu[m]=!0)}}}function Zu(v,l){if(v&&v.defaultProps){var d=J({},l),m=v.defaultProps;for(var x in m)d[x]===void 0&&(d[x]=m[x]);return d}return l}function qc(v,l,d,m,x){il(l,d.render);var R=Ks(v,l,d.render,m,x),B=Vr();if(B){var Y=l.treeContext,ne=1,we=0;l.treeContext=Lu(Y,ne,we);try{dr(v,l,R)}finally{l.treeContext=Y}}else dr(v,l,R);Qi(l)}function Hr(v,l,d,m,x){var R=d.type,B=Zu(R,m);Js(v,l,R,B,x)}function vs(v,l,d,m){d._context===void 0?d!==d.Consumer&&(Gc||(Gc=!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?"))):d=d._context;var x=m.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=wa(d),B=x(R);dr(v,l,B)}function Ur(v,l,d,m){var x=d._context,R=m.value,B=m.children,Y;Y=l.context,l.context=Au(x,R),dr(v,l,B),l.context=Nf(x),Y!==l.context&&i("Popping the context provider did not return back to the original snapshot. This is a bug in React.")}function Xc(v,l,d,m,x){Co(l,"Lazy");var R=d._payload,B=d._init,Y=B(R),ne=Zu(Y,m);Js(v,l,Y,ne,x),Qi(l)}function Js(v,l,d,m,x){if(typeof d=="function")if(Gu(d)){Gl(v,l,d,m);return}else{Xl(v,l,d,m);return}if(typeof d=="string"){Yu(v,l,d,m);return}switch(d){case Yn:case Vt:case K:case ae:case Ce:{dr(v,l,m.children);return}case lt:{Co(l,"SuspenseList"),dr(v,l,m.children),Qi(l);return}case wt:throw new Error("ReactDOMServer does not yet support scope components.");case st:{Wc(v,l,m);return}}if(typeof d=="object"&&d!==null)switch(d.$$typeof){case Le:{qc(v,l,d,m,x);return}case rt:{Hr(v,l,d,m,x);return}case se:{Ur(v,l,d,m);return}case Re:{vs(v,l,d,m);return}case It:{Xc(v,l,d,m);return}}var R="";throw(d===void 0||typeof d=="object"&&d!==null&&Object.keys(d).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: "+(d==null?d:typeof d)+"."+R))}function Kc(v,l){typeof Symbol=="function"&&v[Symbol.toStringTag]==="Generator"&&(Yc||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."),Yc=!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,d){try{return Zc(v,l,d)}catch(m){throw typeof m=="object"&&m!==null&&typeof m.then=="function"||(Da=Da!==null?Da:Ji()),m}}function Zc(v,l,d){if(l.node=d,typeof d=="object"&&d!==null){switch(d.$$typeof){case ce:{var m=d,x=m.type,R=m.props,B=m.ref;Js(v,l,x,R,B);return}case Se: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 Y=d,ne=Y._payload,we=Y._init,je;try{je=we(ne)}catch(eo){throw typeof eo=="object"&&eo!==null&&typeof eo.then=="function"&&Co(l,"Lazy"),eo}dr(v,l,je);return}}if(er(d)){Kl(v,l,d);return}var qe=jr(d);if(qe){Kc(d,qe);var nt=qe.call(d);if(nt){var xt=nt.next();if(!xt.done){var en=[];do en.push(xt.value),xt=nt.next();while(!xt.done);Kl(v,l,en);return}return}}var ir=Object.prototype.toString.call(d);throw new Error("Objects are not valid as a React child (found: "+(ir==="[object Object]"?"object with keys {"+Object.keys(d).join(", ")+"}":ir)+"). If you meant to render a collection of children, use an array instead.")}if(typeof d=="string"){var Eo=l.blockedSegment;Eo.lastPushedText=On(l.blockedSegment.chunks,d,v.responseState,Eo.lastPushedText);return}if(typeof d=="number"){var ws=l.blockedSegment;ws.lastPushedText=On(l.blockedSegment.chunks,""+d,v.responseState,ws.lastPushedText);return}typeof d=="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 Kl(v,l,d){for(var m=d.length,x=0;x<m;x++){var R=l.treeContext;l.treeContext=Lu(R,m,x);try{Ti(v,l,d[x])}finally{l.treeContext=R}}}function Zl(v,l,d){var m=l.blockedSegment,x=m.chunks.length,R=rl(v,x,null,m.formatContext,m.lastPushedText,!0);m.children.push(R),m.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 Y=B.ping;d.then(Y,Y)}function Ti(v,l,d){var m=l.blockedSegment.formatContext,x=l.legacyContext,R=l.context,B=null;B=l.componentStack;try{return dr(v,l,d)}catch(Y){if($u(),typeof Y=="object"&&Y!==null&&typeof Y.then=="function"){Zl(v,l,Y),l.blockedSegment.formatContext=m,l.legacyContext=x,l.context=R,fs(R),l.componentStack=B;return}else throw l.blockedSegment.formatContext=m,l.legacyContext=x,l.context=R,fs(R),l.componentStack=B,Y}}function Jc(v,l,d,m){var x=ol(v,m);if(l===null?Pa(v,m):(l.pendingTasks--,l.forceClientRender||(l.forceClientRender=!0,l.errorDigest=x,Yl(l,m),l.parentFlushed&&v.clientRenderedBoundaries.push(l))),v.allPendingTasks--,v.allPendingTasks===0){var R=v.onAllReady;R()}}function ys(v){var l=this,d=v.blockedBoundary,m=v.blockedSegment;m.status=qs,Qs(l,d,m)}function Jl(v,l,d){var m=v.blockedBoundary,x=v.blockedSegment;if(x.status=qs,m===null)l.allPendingTasks--,l.status!==ka&&(l.status=ka,l.destination!==null&&A(l.destination));else{if(m.pendingTasks--,!m.forceClientRender){m.forceClientRender=!0;var R=d===void 0?new Error("The render was aborted by the server without a reason."):d;m.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 Y=Zi;Zi=v;try{Yl(m,R)}finally{Zi=Y}}m.parentFlushed&&l.clientRenderedBoundaries.push(m)}if(m.fallbackAbortableTasks.forEach(function(we){return Jl(we,l,d)}),m.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 d=l.children[0];d.id=l.id,d.parentFlushed=!0,d.status===To&&bs(v,d)}else{var m=v.completedSegments;m.push(l)}}function Qs(v,l,d){if(l===null){if(d.parentFlushed){if(v.completedRootSegment!==null)throw new Error("There can only be one root segment. This is a bug in React.");v.completedRootSegment=d}if(v.pendingRootTasks--,v.pendingRootTasks===0){v.onShellError=Xs;var m=v.onShellReady;m()}}else if(l.pendingTasks--,!l.forceClientRender){if(l.pendingTasks===0)d.parentFlushed&&d.status===To&&bs(l,d),l.parentFlushed&&v.completedBoundaries.push(l),l.fallbackAbortableTasks.forEach(ys,v),l.fallbackAbortableTasks.clear();else if(d.parentFlushed&&d.status===To){bs(l,d);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 Yf(v,l){var d=l.blockedSegment;if(d.status===Hl){fs(l.context);var m=null;m=Zi,Zi=l;try{dr(v,l,l.node),_n(d.chunks,v.responseState,d.lastPushedText,d.textEmbedded),l.abortSet.delete(l),d.status=To,Qs(v,l.blockedBoundary,d)}catch(R){if($u(),typeof R=="object"&&R!==null&&typeof R.then=="function"){var x=l.ping;R.then(x,x)}else l.abortSet.delete(l),d.status=Hc,Jc(v,l.blockedBoundary,d,R)}finally{Zi=m}}}function Ju(v){if(v.status!==ka){var l=Mc(),d=Vl.current;Vl.current=rr;var m;m=Ca.getCurrentStack,Ca.getCurrentStack=Ji;var x=Gs;$l(v.responseState);try{var R=v.pingedTasks,B;for(B=0;B<R.length;B++){var Y=R[B];Yf(v,Y)}R.splice(0,B),v.destination!==null&&Ii(v,v.destination)}catch(ne){ol(v,ne),Pa(v,ne)}finally{$l(x),Vl.current=d,Ca.getCurrentStack=m,d===rr&&fs(l)}}}function al(v,l,d){switch(d.parentFlushed=!0,d.status){case Hl:{var m=d.id=v.nextSegmentId++;return d.lastPushedText=!1,d.textEmbedded=!1,cr(l,v.responseState,m)}case To:{d.status=Ul;for(var x=!0,R=d.chunks,B=0,Y=d.children,ne=0;ne<Y.length;ne++){for(var we=Y[ne];B<we.index;B++)g(l,R[B]);x=ll(v,l,we)}for(;B<R.length-1;B++)g(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 ll(v,l,d){var m=d.boundary;if(m===null)return al(v,l,d);if(m.parentFlushed=!0,m.forceClientRender)return Be(l,v.responseState,m.errorDigest,m.errorMessage,m.errorComponentStack),al(v,l,d),Et(l,v.responseState);if(m.pendingTasks>0){m.rootSegmentID=v.nextSegmentId++,m.completedSegments.length>0&&v.partialBoundaries.push(m);var x=m.id=nn(v.responseState);return xe(l,v.responseState,x),al(v,l,d),Tt(l,v.responseState)}else{if(m.byteSize>v.progressiveChunkSize)return m.rootSegmentID=v.nextSegmentId++,v.completedBoundaries.push(m),xe(l,v.responseState,m.id),al(v,l,d),Tt(l,v.responseState);_e(l,v.responseState);var R=m.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 ll(v,l,B),ot(l,v.responseState)}}function Qu(v,l,d){return Ol(l,v.responseState,d.id,d.errorDigest,d.errorMessage,d.errorComponentStack)}function Ql(v,l,d){return St(l,v.responseState,d.formatContext,d.id),ll(v,l,d),vt(l,d.formatContext)}function ec(v,l,d){for(var m=d.completedSegments,x=0;x<m.length;x++){var R=m[x];Wr(v,l,d,R)}return m.length=0,mo(l,v.responseState,d.id,d.rootSegmentID)}function Qc(v,l,d){for(var m=d.completedSegments,x=0;x<m.length;x++){var R=m[x];if(!Wr(v,l,d,R))return x++,m.splice(0,x),!1}return m.splice(0,x),!0}function Wr(v,l,d,m){if(m.status===Ul)return!0;var x=m.id;if(x===-1){var R=m.id=d.rootSegmentID;if(R===-1)throw new Error("A root segment ID must have been assigned by now. This is a bug in React.");return Ql(v,l,m)}else return Ql(v,l,m),Wa(l,v.responseState,x)}function Ii(v,l){w();try{var d=v.completedRootSegment;d!==null&&v.pendingRootTasks===0&&(ll(v,l,d),v.completedRootSegment=null,yi(l,v.responseState));var m=v.clientRenderedBoundaries,x;for(x=0;x<m.length;x++){var R=m[x];Qu(v,l,R)}m.splice(0,x);var B=v.completedBoundaries;for(x=0;x<B.length;x++){var Y=B[x];ec(v,l,Y)}B.splice(0,x),E(l),w(l);var ne=v.partialBoundaries;for(x=0;x<ne.length;x++){var we=ne[x];if(!Qc(v,l,we)){v.destination=null,x++,ne.splice(0,x);return}}ne.splice(0,x);var je=v.completedBoundaries;for(x=0;x<je.length;x++){var qe=je[x];ec(v,l,qe)}je.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 ef(v){a(function(){return Ju(v)})}function Gf(v,l){if(v.status===Ea){v.status=ka,H(l,v.fatalError);return}if(v.status!==ka&&v.destination===null){v.destination=l;try{Ii(v,l)}catch(d){ol(v,d),Pa(v,d)}}}function ul(v,l){try{var d=v.abortableTasks;d.forEach(function(m){return Jl(m,v,l)}),d.clear(),v.destination!==null&&Ii(v,v.destination)}catch(m){ol(v,m),Pa(v,m)}}function Oa(v,l){return new Promise(function(d,m){var x,R,B=new Promise(function(nt,xt){R=nt,x=xt});function Y(){var nt=new ReadableStream({type:"bytes",pull:function(xt){Gf(we,xt)},cancel:function(xt){ul(we)}},{highWaterMark:0});nt.allReady=B,d(nt)}function ne(nt){B.catch(function(){}),m(nt)}var we=Wl(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,Y,ne,x);if(l&&l.signal){var je=l.signal,qe=function(){ul(we,je.reason),je.removeEventListener("abort",qe)};je.addEventListener("abort",qe)}ef(we)})}Ah.renderToReadableStream=Oa,Ah.version=e}()),Ah}var Cc,wv;process.env.NODE_ENV==="production"?(Cc=w4(),wv=x4()):(Cc=S4(),wv=T4());Cc.version;var C4=Cc.renderToString;Cc.renderToStaticMarkup;Cc.renderToNodeStream;Cc.renderToStaticNodeStream;wv.renderToReadableStream;var E4=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function DD(t,e){return t(e={exports:{}},e.exports),e.exports}var k4=DD(function(t){(function(e){var n=function(j,_,H){if(!f(_)||w(_)||g(_)||T(_)||c(_))return _;var W,re=0,Z=0;if(p(_))for(W=[],Z=_.length;re<Z;re++)W.push(n(j,_[re],H));else for(var de in W={},_)Object.prototype.hasOwnProperty.call(_,de)&&(W[j(de,H)]=n(j,_[de],H));return W},r=function(j){return E(j)?j:(j=j.replace(/[\-_\s]+(.)?/g,function(_,H){return H?H.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(H,W){var re=(W=W||{}).separator||"_",Z=W.split||/(?=[A-Z])/;return H.split(Z).join(re)}(j,_).toLowerCase()},a=Object.prototype.toString,c=function(j){return typeof j=="function"},f=function(j){return j===Object(j)},p=function(j){return a.call(j)=="[object Array]"},w=function(j){return a.call(j)=="[object Date]"},g=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 H=_&&"process"in _?_.process:_;return typeof H!="function"?j:function(W,re){return H(W,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})(E4)}).decamelize,D4=function(t){if(Array.isArray(t))return t},P4=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(f){i=!0,o=f}finally{try{r||c.return==null||c.return()}finally{if(i)throw o}}return n}},g1=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},O4=function(t,e){if(t){if(typeof t=="string")return g1(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)?g1(t,e):void 0}},_4=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.`)},R4=function(t,e){return D4(t)||P4(t,e)||O4(t,e)||_4()},PD=DD(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}),A4=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},OD=function(t,e){if(t==null)return{};var n,r,i=A4(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},I4=q.createContext(null);function _D(t){var e=t.children,n=e===void 0?"":e,r=OD(t,["children"]);return typeof n!="string"&&(n=C4(n)),q.createElement("template",PD({},r,{dangerouslySetInnerHTML:{__html:n}}))}function RD(t){var e=t.root,n=t.children;return Ov.createPortal(n===void 0?null:n,e)}function M4(t){var e=q.forwardRef(function(n,r){var i,o,a=n.mode,c=a===void 0?"open":a,f=n.delegatesFocus,p=f!==void 0&&f,w=n.styleSheets,g=w===void 0?[]:w,T=n.ssr,E=T!==void 0&&T,A=n.children,I=OD(n,["mode","delegatesFocus","styleSheets","ssr","children"]),j=(o=q.useRef((i=r)&&i.current),q.useEffect(function(){i&&(i.current=o.current)},[i]),o),_=q.useState(null),H=R4(_,2),W=H[0],re=H[1],Z="node_".concat(c).concat(p);return q.useLayoutEffect(function(){if(j.current)try{if(typeof r=="function"&&r(j.current),E){var de=j.current.shadowRoot;return void re(de)}var S=j.current.attachShadow({mode:c,delegatesFocus:p});g.length>0&&(S.adoptedStyleSheets=g),re(S)}catch(le){(function(ue){var ze=ue.error,Me=ue.styleSheets,Fe=ue.root;switch(ze.name){case"NotSupportedError":Me.length>0&&(Fe.adoptedStyleSheets=Me);break;default:throw ze}})({error:le,styleSheets:g,root:W})}},[r,j,g]),q.createElement(q.Fragment,null,q.createElement(t.tag,PD({key:Z,ref:j},I),(W||E)&&q.createElement(I4.Provider,{value:W},E?q.createElement(_D,{shadowroot:c,shadowrootmode:c},t.render({root:W,ssr:E,children:A})):q.createElement(RD,{root:W},t.render({root:W,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}_D.propTypes={children:_s.oneOfType([_s.string,_s.node])},RD.propTypes={root:_s.object.isRequired,children:_s.node};var hm=new Map;function L4(){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=k4(i,{separator:"-"}),a="".concat(e,"-").concat(o);return hm.has(a)||hm.set(a,M4({tag:o,render:n})),hm.get(a)}})}var AD=L4();const F4=".app,.treeRoot{height:100%}.draggingSource{opacity:.3}.placeholderContainer{position:relative}.dropTarget{background-color:#8d878711}",N4=".favorite-bar{position:sticky;top:64px;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}",j4=t=>{const e=t.depth*16;return Ie.jsx("div",{style:{backgroundColor:t.color||"#93D500",height:"2px",position:"absolute",right:"0",top:"0",left:e}})};function B4(t){const e=new CustomEvent("updateFavoriteMenu",{detail:{menuItem:t}});window.dispatchEvent(e)}function $4(t){const e=bp.useLocation(),n=q.useRef(null),[r,i]=q.useState([]),[o,a]=q.useState(!1);console.log("isSubmit",o);const[c,f]=q.useState([]),p=q.useRef(null),[w,g]=q.useState(window.location.href);q.useEffect(()=>{g(window.location.href)},[e]);const T=_=>`${_}`;function E(_,H){for(const W of _){if(W.id===H)return W;if(W.children){const re=E(W.children,H);if(re)return re}}return null}function A(_,H){const W=E(r,_);W?(W.isFavorite=H,B4(W),Xy(_,H)):console.error(`Item with id ${_} not found`)}const I=_=>{console.log("Favorite menus changed",_);const H=_.detail.favoriteMenus||[];i(H)};q.useEffect(()=>(window.addEventListener("favoriteMenusChange",I),()=>{window.removeEventListener("favoriteMenusChange",I)}),[]);function j(_){a(!0);const H=[...c];f(_),console.log("tree",_),console.log("prev",H);const W={menuItemIds:_.map(re=>re.id)};console.log(W),Rs.post("global-menu-config/api/v1/menu-items/user/order-favorites",W,{baseURL:t.baseUrl}).then(()=>{}).catch(re=>{console.error(re),f(H)}).finally(()=>{a(!1)})}return q.useEffect(()=>{const _=r.map(H=>({id:H.id,parent:0,text:H.name,data:H}));f(_),console.log("nodes",_)},[r]),Ie.jsx(Ie.Fragment,{children:r.length?Ie.jsx("div",{className:T("favorite-menu"),children:Ie.jsx(Nv,{ref:p,className:T("wrap-section favorite-menu__menu"),style:{marginTop:4,flex:1,overflow:"auto",height:"100%",overflowY:"hidden"},children:Ie.jsx(PE,{backend:jE,options:zE(),children:Ie.jsx(XE,{ref:n,classes:{root:"treeFavorited"},tree:c,rootId:0,sort:!1,insertDroppableFirst:!1,enableAnimateExpand:!0,dropTargetOffset:10,onDrop:j,render:(_,H)=>{console.log("1111111111111");const W=_.data;return console.log("item favorite",W),console.log("params",H),Ie.jsx(kD,{replacePath:t.replacePath,ssr:t.ssr,brandColors:t.brandColors,baseUrl:t.baseUrl,node:_,params:H,nodes:c,item:W,level:H.depth+1,onSetFavoriteSuccess:A})},placeholderRender:(_,{depth:H})=>{var W;return console.log("aaaa"),Ie.jsx(j4,{node:_,depth:H,color:(W=t.brandColors)==null?void 0:W.primary300})},canDrag:()=>!o,canDrop:(_,{dragSource:H,dropTargetId:W})=>(H==null?void 0:H.parent)===W,onDragStart:_=>{console.log("onDragStart",_)}})})})}):""})}function V4(t=32){const[e,n]=q.useState(!0),[r,i]=q.useState(0),o=()=>{const a=window.scrollY;a>r&&a>t?n(!1):a<r&&n(!0),i(a)};return q.useEffect(()=>(window.addEventListener("scroll",o),()=>window.removeEventListener("scroll",o)),[r]),{isFavoriteBarVisible:e}}function H4(t){const{isFavoriteBarVisible:e}=V4();return Ie.jsxs(Ie.Fragment,{children:[Ie.jsx("style",{children:N4}),Ie.jsx("div",{className:`favorite-bar ${e?"favorite-bar--visible":"favorite-bar--hidden"}`,children:Ie.jsx(AD.div,{children:Ie.jsx(Mv,{styles:[DT,b4,F4],children:Ie.jsx($4,{...t})})})})]})}function Xy(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 ID({...t}){var me,Ee,Ye;const e=t.item,n=t.level||0,r=!!((me=t.item.children)!=null&&me.length),{isActive:i,isCollapsed:o}=t,a=`level-${n}`,c=o?"collapsed":"expanded",f=i(e.id)?"active":"",p=r?"parent":"child",w=t.params.isOpen?"isOpen":"isClose",g=(We,Je=a)=>`${We} ${Je} ${c} ${f} ${p} ${w}`,[T,E]=q.useState(!1),[A,I]=q.useState(e.isFavorite||!1);q.useEffect(()=>{I(!!t.item.isFavorite)},[t.item.isFavorite]);const j=q.useRef(),_=q.useRef();_!=null&&_.current&&((Ee=_==null?void 0:_.current)==null?void 0:Ee.scrollWidth)>((Ye=_==null?void 0:_.current)==null?void 0:Ye.clientWidth);const H=window.location.origin,W=e.path&&e.path.includes("http")?new URL(e.path):{origin:"",pathname:""},re=window.location.pathname.split("/")[1],Z=W.pathname.split("/")[1],de=t.ssr||!H.includes("local")&&H!==W.origin||Z!==re,S=r?"div":de?"a":bp.Link,le=e.path||"#",ue=n+1,ze=r&&o&&T,Me=o||n===0?void 0:`${n+.25}rem`,Fe=()=>{E(!0)},Ve=()=>{E(!1)},Ue="/global-menu-config/api/v1/menu-items/user/set-favorite",he=e.serviceKey==="mn_poms";t.params.depth*20,t.params.depth,vH(e.id,t.params.isOpen,t.params.onToggle);const Oe=he||o&&n===0?e.name==="POMs"?"Parking Operations Management":e.description||e.name:null,Ne=Object.entries(t.brandColors||{}).reduce((We,[Je,Ze])=>(Ze&&(We[`--${Je}`]=Ze),We),{}),tt=H!==W.origin?"_blank":"_self";return Ie.jsxs("div",{ref:j,className:g("menu-item__wrapper tree-node"),style:{borderRadius:"8px",transition:"all 0.3s",...Ne},onMouseOver:Fe,onMouseOut:Ve,onDragStart:We=>{o&&n>1&&We.preventDefault()},children:[Ie.jsx(oa.Tooltip,{placement:"top",title:Oe,disableInteractive:!0,children:Ie.jsxs(S,{target:tt,to:le,href:le,draggable:"true",className:g("menu-item__link"),style:{paddingLeft:Me},onClick:We=>{S==="a"&&tt==="_blank"||o||t.toggleExpand(We)},children:[Ie.jsx(U4,{cls:g,item:e}),Ie.jsx("span",{className:g("menu-item__label"),ref:_,children:e.name}),Ie.jsx(W4,{tooltipPosition:Oe?"right":"top",menuLevel:n,hasChildren:r,isHovered:T,isFavorite:A,onClick:We=>{const Je={menuConfigId:e.id,isFavorite:We},Ze=t.baseUrl+Ue;Rs.post(Ze,Je).then(Qe=>{var it;I(We),Bv("Set favorite menu item successfully"),(it=t.onSetFavoriteSuccess)==null||it.call(t,t.item.id,We),Xy(t.item.id,We)}).catch(Qe=>{var it,ht;Hd(((ht=(it=Qe.response)==null?void 0:it.data)==null?void 0:ht.errorMessage)||"Have error when set favorite menu item")})}}),r&&Ie.jsx("div",{className:g("menu-item__icon-arrow__wrapper"),children:Ie.jsx(B5,{className:g(`menu-item__icon-arrow__icon ${t.params.isOpen?"open":"close"}`)})})]})}),ze&&Ie.jsx($5,{parentRef:j,onlyChild:!o,renderChildren:({maxHeight:We})=>{var Je;return Ie.jsx(vD.div,{className:g(`menu-item__dropdown ${t.params.isOpen?"menu-item__dropdown--open":"menu-item__dropdown--close"}`,`level-${ue}`),style:Gy({maxHeight:We,overflowY:"auto",paddingRight:3},We!=="auto"&&!!ue),children:(Je=e.children)==null?void 0:Je.map(Ze=>q.createElement(ID,{...t,key:Ze.id,item:Ze,level:ue}))})}})]})}function U4({item:t,cls:e}){return Ie.jsx("div",{className:e("menu-item__icon"),children:Ie.jsx(ED,{item:t})})}function W4(t){const e={marginRight:t.hasChildren?10:0,fontSize:18,fill:ki.warning};return Ie.jsxs(Ie.Fragment,{children:[t.isHovered&&!t.isFavorite&&Ie.jsx(oa.Tooltip,{placement:t.tooltipPosition||"top",title:"Add to favorites",disableInteractive:!0,children:Ie.jsx("div",{children:Ie.jsx(yD,{style:e,onClick:n=>{var r;n.preventDefault(),n.stopPropagation(),(r=t.onClick)==null||r.call(t,!0)}})})}),t.isFavorite&&Ie.jsx(oa.Tooltip,{placement:t.tooltipPosition||"top",title:"Remove from favorites",disableInteractive:!0,children:Ie.jsx("div",{children:Ie.jsx(bD,{style:e,onClick:n=>{var r;n.preventDefault(),n.stopPropagation(),(r=t.onClick)==null||r.call(t,!1)}})})})]})}function z4(){return Ie.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:Ie.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 Y4(){return Ie.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:Ie.jsx("path",{d:"M3 4h18v2H3V4zm0 7h18v2H3v-2zm0 7h18v2H3v-2z"})})}function G4(t){return Ie.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"20",fill:"none",viewBox:"0 0 18 20",...t,children:Ie.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 q4=".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}.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__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}}",X4=t=>{const e=t.isCollapsed?0:t.depth*16;return Ie.jsx("div",{style:{backgroundColor:t.color||"#93D500",height:"2px",position:"absolute",right:"0",top:"0",left:e}})},K4=".app,.treeRoot{height:100%}.draggingSource{opacity:.3}.placeholderContainer{position:relative}.dropTarget{background-color:#8d878711}",Z4=t=>{const[e,n]=q.useState(()=>{const r=localStorage.getItem("openingMenuIds");return r&&r!=="[]"?JSON.parse(r):(t==null?void 0:t.initOpenIds)||[]});return q.useEffect(()=>{localStorage.setItem("openingMenuIds",JSON.stringify(e))},[e]),[e,n]};function MD(t){document.documentElement.style.setProperty("--global-menu-width",!t||t==="true"?"64px":"17rem")}const zh=localStorage.getItem("isCollapsed");MD(zh);function J4(t){const e=new CustomEvent("favoriteMenusChange",{detail:{favoriteMenus:t}});window.dispatchEvent(e)}function Q4(t){const e=bp.useLocation(),[n,r]=q.useState([]),i=n.map(Me=>Me.data),[o,a]=q.useState(!1),[c,f]=q.useState([]),[p,w]=q.useState(zh===null?!0:zh==="true"),[g,T]=q.useState(window.location.href),E=q.useRef(null);q.useEffect(()=>{var Me;(Me=t.handleCallback)==null||Me.call(t,i)},[i,t.handleCallback]),q.useEffect(()=>{T(window.location.href)},[e]);const A=t6(i,g),[I,j]=Z4({initOpenIds:t.initOpenIds}),_=()=>{var Me,Fe;if(w(!p),localStorage.setItem("isCollapsed",JSON.stringify(!p)),MD(p),p)I&&((Me=E.current)==null||Me.open(I));else{const Ve=n.filter(Ue=>Ue.parent===0).map(Ue=>Ue.id);console.log("closeIds:",Ve),(Fe=E.current)==null||Fe.close(Ve)}},[H,W]=q.useState(!1),re=p?"collapsed":"expanded",Z=Me=>`${Me} ${re}`,de=q.useRef(null);q.useLayoutEffect(()=>{(async()=>{var Fe,Ve;try{const Ue=t.menuPath||"/global-menu-config/api/v1/menu-items/user",he=t.baseUrl+Ue,{data:ke}=await Rs.get(he);let Oe=ke.map(tt=>({...tt,parentKey:tt.parentKey||0}));Oe=FD(Oe),t.replacePath&&(Oe=LD(Oe,t.replacePath));const Ne=Oe.map(tt=>({id:tt.id,parent:tt.parentKey,text:tt.name,data:tt}));r(Ne)}catch(Ue){console.error("Global menu",Ue),Hd(((Ve=(Fe=Ue.response)==null?void 0:Fe.data)==null?void 0:Ve.errorMessage)||"Have error when get menu items")}})()},[t.baseUrl,t.menuPath,t.replacePath]);const S=async()=>{try{const Me=await fetch(`${t.baseUrl}/global-menu-config/api/v1/menu-items/user/get-favorites`);if(!Me.ok)throw new Error("Failed to fetch favorite items");const Fe=await Me.json();f(Fe)}catch(Me){console.error("Error fetching favorite items:",Me)}};q.useEffect(()=>{S()},[t.baseUrl]),q.useEffect(()=>{let Me=[];c.forEach(Ue=>{const he=i.find(ke=>ke.id===Ue&&ke.isFavorite===!0);he&&(Me=[...Me,he])}),console.log(Me);function Fe(Ue){return i.every(he=>he.parentKey!==Ue.id)?Ue:{...Ue,children:i.filter(he=>he.parentKey===Ue.id).map(he=>Fe(he))}}const Ve=Me.map(Ue=>Fe(Ue));J4(Ve)},[i]);function le(Me){const Fe=Me.detail.menuItem;r(Ve=>Ve.map(Ue=>Ue.id!==Fe.id?Ue:{...Ue,data:Fe}))}q.useEffect(()=>(window.addEventListener("updateFavoriteMenu",le),()=>{window.removeEventListener("updateFavoriteMenu",le)}),[]),q.useLayoutEffect(()=>{var Ue;const Me=localStorage.getItem("scrollPos");Me&&de.current&&setTimeout(()=>{const he=de.current.getScrollElement();he.scrollTop=parseInt(Me)},0);const Fe=()=>{if(de.current){const he=de.current.getScrollElement();localStorage.setItem("scrollPos",he.scrollTop.toString())}},Ve=(Ue=de.current)==null?void 0:Ue.getScrollElement();return Ve==null||Ve.addEventListener("scroll",Fe),()=>{Ve==null||Ve.removeEventListener("scroll",Fe)}},[i]);function ue(Me){a(!0);const Fe=[...n];r(Me);const Ve=Me.map((Ue,he)=>({menuItemId:Ue.id,order:he}));Rs.post("/global-menu-config/api/v1/menu-items/user",Ve,{baseURL:t.baseUrl}).then(()=>{}).catch(Ue=>{console.error(Ue),r(Fe)}).finally(()=>{a(!1)})}const ze=q.useMemo(()=>zh==="false"?I:[],[]);return console.log("nodesglobal menu",n),Ie.jsxs("div",{className:Z("side-bar"),children:[Ie.jsx("div",{className:Z("wrap-section side-bar__wrapper-toggle-btn"),children:Ie.jsx("button",{className:"icon-btn side-bar__toggle-btn",onClick:_,children:p?Ie.jsx(Y4,{}):Ie.jsx(z4,{})})}),Ie.jsx(Nv,{ref:de,className:Z("wrap-section side-bar__menu"),style:{marginTop:24,flex:1,overflow:"auto",height:"100%",overflowX:"hidden"},children:Ie.jsx(PE,{backend:jE,options:zE(),children:Ie.jsx(XE,{ref:E,classes:{root:"treeRoot",draggingSource:"draggingSource",placeholder:"placeholderContainer"},tree:n,rootId:0,sort:!1,insertDroppableFirst:!1,enableAnimateExpand:!0,dropTargetOffset:10,onDrop:ue,render:(Me,Fe)=>{function Ve(Oe){return n.every(Ne=>Ne.parent!==Oe.id)?Oe:{...Oe,children:n.filter(Ne=>Ne.parent===Oe.id).map(Ne=>Ve(Ne.data))}}const Ue=Ve(Me.data),he=Oe=>A.some(Ne=>Ne.id===Oe);function ke(Oe,Ne){r(tt=>tt.map(me=>me.id===Oe?{...me,data:{...me.data,isFavorite:Ne}}:me)),S()}return Ie.jsx(ID,{isActive:he,isCollapsed:p,replacePath:t.replacePath,ssr:t.ssr,brandColors:t.brandColors,baseUrl:t.baseUrl,node:Me,params:Fe,nodes:n,item:Ue,expanded:()=>!1,toggleExpand:Oe=>{var Ne;if(Oe.stopPropagation(),Fe.isOpen)console.log("open toggleExpand"),Fe.onToggle();else{console.log("close toggleExpand");const tt=n.filter(me=>me.parent===Me.parent&&me.id!==Me.id).map(me=>me.id);console.log(" closeIds:",tt),(Ne=E.current)==null||Ne.open(Me.id),setTimeout(()=>{var me;(me=E.current)==null||me.close(tt)},0)}},level:Fe.depth,onSetFavoriteSuccess:ke})},placeholderRender:(Me,{depth:Fe})=>{var Ve;return Ie.jsx(X4,{node:Me,depth:Fe,color:(Ve=t.brandColors)==null?void 0:Ve.primary300,isCollapsed:p})},canDrag:()=>!o,canDrop:(Me,{dragSource:Fe,dropTargetId:Ve})=>(Fe==null?void 0:Fe.parent)===Ve,onDragStart:Me=>{console.log("onDragStart",Me)},onChangeOpen:Me=>{localStorage.getItem("isCollapsed")==="false"&&(console.log("onChangeOpen:",Me),j(Me))},initialOpen:ze})})}),Ie.jsxs("div",{className:Z("wrap-section side-bar__wrap-btn-logout"),children:[Ie.jsxs("button",{className:Z("side-bar__logout-btn"),onClick:()=>W(!0),children:[Ie.jsx(G4,{className:Z("side-bar__icon-logout")}),Ie.jsx("span",{className:Z("side-bar__logout-btn__text"),children:"Logout"})]}),Ie.jsx(L1,{isOpen:H,onClose:()=>W(!1),onConfirm:()=>t.logout?t.logout():z1(t.baseUrl)})]})]})}function e6(t,e){const n=new URL(t).searchParams,r=new URL(e).searchParams;return Array.from(r).filter(([i,o])=>o===n.get(i)).length}function t6(t,e){var f;console.log("menuItems:",t);const n=new URL(e);let r=t.filter(p=>p.path&&p.path.includes("http")).map(p=>({item:p,itemUrl:new URL(p.path),matchingParamsCount:e6(e,p.path)})).sort((p,w)=>{const g=new URL(p.itemUrl).searchParams,T=new URL(w.itemUrl).searchParams;return Array.from(g).length-Array.from(T).length}).filter(({itemUrl:p})=>n.origin===p.origin);const i=r.filter(({itemUrl:p})=>n.pathname===p.pathname),o=r.filter(({itemUrl:p})=>n.pathname.includes(p.pathname));r=i.length>0?i:o,r=r.sort((p,w)=>w.matchingParamsCount-p.matchingParamsCount);let a=r.length>0?(f=r.find(p=>p.item.parentKey))==null?void 0:f.item:null;console.log("matchingItems:",r);let c=[];for(;a;)c=[a,...c],a=t.find(p=>p.id===(a==null?void 0:a.parentKey))||null;return console.log("parents:",c),c}function LD(t,e){return t.map(n=>{var r;return(r=n.children)!=null&&r.length?(n.path="",n.children=LD(n.children,e)):n.path=e(n.path),n})}function FD(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=FD(n.children)),n))}function n6(t){return Ie.jsx(AD.div,{children:Ie.jsx(Mv,{styles:[DT,q4,K4],style:{position:"sticky",zIndex:1300},children:Ie.jsx(Q4,{...t})})})}const r6={"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 mp={exports:{}};/**
137
+ * @license
138
+ * Lodash <https://lodash.com/>
139
+ * Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
140
+ * Released under MIT license <https://lodash.com/license>
141
+ * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
142
+ * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
143
+ */mp.exports;(function(t,e){(function(){var n,r="4.17.21",i=200,o="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",a="Expected a function",c="Invalid `variable` option passed into `_.template`",f="__lodash_hash_undefined__",p=500,w="__lodash_placeholder__",g=1,T=2,E=4,A=1,I=2,j=1,_=2,H=4,W=8,re=16,Z=32,de=64,S=128,le=256,ue=512,ze=30,Me="...",Fe=800,Ve=16,Ue=1,he=2,ke=3,Oe=1/0,Ne=9007199254740991,tt=17976931348623157e292,me=NaN,Ee=4294967295,Ye=Ee-1,We=Ee>>>1,Je=[["ary",S],["bind",j],["bindKey",_],["curry",W],["curryRight",re],["flip",ue],["partial",Z],["partialRight",de],["rearg",le]],Ze="[object Arguments]",Qe="[object Array]",it="[object AsyncFunction]",ht="[object Boolean]",gt="[object Date]",ct="[object DOMException]",yt="[object Error]",et="[object Function]",At="[object GeneratorFunction]",Mt="[object Map]",Vn="[object Number]",mr="[object Null]",Hn="[object Object]",Sn="[object Promise]",$i="[object Proxy]",kr="[object RegExp]",Jn="[object Set]",sn="[object String]",fn="[object Symbol]",dn="[object Undefined]",ut="[object WeakMap]",Dn="[object WeakSet]",oi="[object ArrayBuffer]",on="[object DataView]",Vi="[object Float32Array]",Hi="[object Float64Array]",Ui="[object Int8Array]",Dr="[object Int16Array]",Nn="[object Int32Array]",Pr="[object Uint8Array]",vr="[object Uint8ClampedArray]",zr="[object Uint16Array]",Yr="[object Uint32Array]",Ao=/\b__p \+= '';/g,Un=/\b(__p \+=) '' \+/g,Gr=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Qn=/&(?:amp|lt|gt|quot|#39);/g,Wt=/[&<>"']/g,si=RegExp(Qn.source),Wi=RegExp(Wt.source),Pn=/<%-([\s\S]+?)%>/g,hn=/<%([\s\S]+?)%>/g,ai=/<%=([\s\S]+?)%>/g,li=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Tn=/^\w*$/,so=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,yr=/[\\^$.*+?()[\]{}|]/g,ui=RegExp(yr.source),an=/^\s+/,Di=/\s/,Is=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Ms=/\{\n\/\* \[wrapped with (.+)\] \*/,qr=/,? & /,ao=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,lo=/[()=,{}\[\]\/\s]/,Pi=/\\(\\)?/g,er=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Or=/\w*$/,_r=/^[-+]0x[0-9a-f]+$/i,ci=/^0b[01]+$/i,Xr=/^\[object .+?Constructor\]$/,br=/^0o[0-7]+$/i,Rr=/^(?:0|[1-9]\d*)$/,tr=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,zi=/($^)/,Oi=/['\n\r\u2028\u2029\\]/g,ar="\\ud800-\\udfff",yn="\\u0300-\\u036f",Ar="\\ufe20-\\ufe2f",Ir="\\u20d0-\\u20ff",fi=yn+Ar+Ir,di="\\u2700-\\u27bf",wr="a-z\\xdf-\\xf6\\xf8-\\xff",Kr="\\xac\\xb1\\xd7\\xf7",Wn="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",hi="\\u2000-\\u206f",pi=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",_i="A-Z\\xc0-\\xd6\\xd8-\\xde",nn="\\ufe0e\\ufe0f",jn=Kr+Wn+hi+pi,Cn="['’]",uo="["+ar+"]",On="["+jn+"]",_n="["+fi+"]",k="\\d+",F="["+di+"]",G="["+wr+"]",ee="[^"+ar+jn+k+di+wr+_i+"]",Te="\\ud83c[\\udffb-\\udfff]",ge="(?:"+_n+"|"+Te+")",Pe="[^"+ar+"]",Xe="(?:\\ud83c[\\udde6-\\uddff]){2}",pt="[\\ud800-\\udbff][\\udc00-\\udfff]",mt="["+_i+"]",ft="\\u200d",Ft="(?:"+G+"|"+ee+")",Bn="(?:"+mt+"|"+ee+")",zn="(?:"+Cn+"(?:d|ll|m|re|s|t|ve))?",En="(?:"+Cn+"(?:D|LL|M|RE|S|T|VE))?",Zr=ge+"?",lr="["+nn+"]?",Yi="(?:"+ft+"(?:"+[Pe,Xe,pt].join("|")+")"+lr+Zr+")*",gi="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Gi="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Mr=lr+Zr+Yi,qi="(?:"+[F,Xe,pt].join("|")+")"+Mr,Ha="(?:"+[Pe+_n+"?",_n,Xe,pt,uo].join("|")+")",Ls=RegExp(Cn,"g"),rs=RegExp(_n,"g"),xr=RegExp(Te+"(?="+Te+")|"+Ha+Mr,"g"),Ua=RegExp([mt+"?"+G+"+"+zn+"(?="+[On,mt,"$"].join("|")+")",Bn+"+"+En+"(?="+[On,mt+Ft,"$"].join("|")+")",mt+"?"+Ft+"+"+zn,mt+"+"+En,Gi,gi,k,qi].join("|"),"g"),mi=RegExp("["+ft+ar+fi+nn+"]"),Fs=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,is=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],rn=-1,Gt={};Gt[Vi]=Gt[Hi]=Gt[Ui]=Gt[Dr]=Gt[Nn]=Gt[Pr]=Gt[vr]=Gt[zr]=Gt[Yr]=!0,Gt[Ze]=Gt[Qe]=Gt[oi]=Gt[ht]=Gt[on]=Gt[gt]=Gt[yt]=Gt[et]=Gt[Mt]=Gt[Vn]=Gt[Hn]=Gt[kr]=Gt[Jn]=Gt[sn]=Gt[ut]=!1;var Kt={};Kt[Ze]=Kt[Qe]=Kt[oi]=Kt[on]=Kt[ht]=Kt[gt]=Kt[Vi]=Kt[Hi]=Kt[Ui]=Kt[Dr]=Kt[Nn]=Kt[Mt]=Kt[Vn]=Kt[Hn]=Kt[kr]=Kt[Jn]=Kt[sn]=Kt[fn]=Kt[Pr]=Kt[vr]=Kt[zr]=Kt[Yr]=!0,Kt[yt]=Kt[et]=Kt[ut]=!1;var Ri={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},Jr={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},Io={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},vi={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},ur=parseFloat,Ns=parseInt,co=typeof Ei=="object"&&Ei&&Ei.Object===Object&&Ei,aa=typeof self=="object"&&self&&self.Object===Object&&self,ln=co||aa||Function("return this")(),Mo=e&&!e.nodeType&&e,yi=Mo&&!0&&t&&!t.nodeType&&t,la=yi&&yi.exports===Mo,fo=la&&co.process,cr=function(){try{var K=yi&&yi.require&&yi.require("util").types;return K||fo&&fo.binding&&fo.binding("util")}catch{}}(),h=cr&&cr.isArrayBuffer,y=cr&&cr.isDate,C=cr&&cr.isMap,P=cr&&cr.isRegExp,L=cr&&cr.isSet,N=cr&&cr.isTypedArray;function V(K,ae,se){switch(se.length){case 0:return K.call(ae);case 1:return K.call(ae,se[0]);case 2:return K.call(ae,se[0],se[1]);case 3:return K.call(ae,se[0],se[1],se[2])}return K.apply(ae,se)}function oe(K,ae,se,Re){for(var Le=-1,st=K==null?0:K.length;++Le<st;){var lt=K[Le];ae(Re,lt,se(lt),K)}return Re}function te(K,ae){for(var se=-1,Re=K==null?0:K.length;++se<Re&&ae(K[se],se,K)!==!1;);return K}function pe(K,ae){for(var se=K==null?0:K.length;se--&&ae(K[se],se,K)!==!1;);return K}function De(K,ae){for(var se=-1,Re=K==null?0:K.length;++se<Re;)if(!ae(K[se],se,K))return!1;return!0}function _e(K,ae){for(var se=-1,Re=K==null?0:K.length,Le=0,st=[];++se<Re;){var lt=K[se];ae(lt,se,K)&&(st[Le++]=lt)}return st}function xe(K,ae){var se=K==null?0:K.length;return!!se&&Qt(K,ae,0)>-1}function Be(K,ae,se){for(var Re=-1,Le=K==null?0:K.length;++Re<Le;)if(se(ae,K[Re]))return!0;return!1}function ot(K,ae){for(var se=-1,Re=K==null?0:K.length,Le=Array(Re);++se<Re;)Le[se]=ae(K[se],se,K);return Le}function Tt(K,ae){for(var se=-1,Re=ae.length,Le=K.length;++se<Re;)K[Le+se]=ae[se];return K}function Et(K,ae,se,Re){var Le=-1,st=K==null?0:K.length;for(Re&&st&&(se=K[++Le]);++Le<st;)se=ae(se,K[Le],Le,K);return se}function Rn(K,ae,se,Re){var Le=K==null?0:K.length;for(Re&&Le&&(se=K[--Le]);Le--;)se=ae(se,K[Le],Le,K);return se}function un(K,ae){for(var se=-1,Re=K==null?0:K.length;++se<Re;)if(ae(K[se],se,K))return!0;return!1}var Lr=D("length");function Fr(K){return K.split("")}function Lt(K){return K.match(ao)||[]}function Nr(K,ae,se){var Re;return se(K,function(Le,st,lt){if(ae(Le,st,lt))return Re=st,!1}),Re}function jt(K,ae,se,Re){for(var Le=K.length,st=se+(Re?1:-1);Re?st--:++st<Le;)if(ae(K[st],st,K))return st;return-1}function Qt(K,ae,se){return ae===ae?ku(K,ae,se):jt(K,po,se)}function ho(K,ae,se,Re){for(var Le=se-1,st=K.length;++Le<st;)if(Re(K[Le],ae))return Le;return-1}function po(K){return K!==K}function Sr(K,ae){var se=K==null?0:K.length;return se?ye(K,ae)/se:me}function D(K){return function(ae){return ae==null?n:ae[K]}}function M(K){return function(ae){return K==null?n:K[ae]}}function U(K,ae,se,Re,Le){return Le(K,function(st,lt,rt){se=Re?(Re=!1,st):ae(se,st,lt,rt)}),se}function Q(K,ae){var se=K.length;for(K.sort(ae);se--;)K[se]=K[se].value;return K}function ye(K,ae){for(var se,Re=-1,Le=K.length;++Re<Le;){var st=ae(K[Re]);st!==n&&(se=se===n?st:se+st)}return se}function be(K,ae){for(var se=-1,Re=Array(K);++se<K;)Re[se]=ae(se);return Re}function Ae(K,ae){return ot(ae,function(se){return[se,K[se]]})}function Ge(K){return K&&K.slice(0,Ol(K)+1).replace(an,"")}function dt(K){return function(ae){return K(ae)}}function _t(K,ae){return ot(ae,function(se){return K[se]})}function St(K,ae){return K.has(ae)}function vt(K,ae){for(var se=-1,Re=K.length;++se<Re&&Qt(ae,K[se],0)>-1;);return se}function An(K,ae){for(var se=K.length;se--&&Qt(ae,K[se],0)>-1;);return se}function bn(K,ae){for(var se=K.length,Re=0;se--;)K[se]===ae&&++Re;return Re}var $n=M(Ri),os=M(Jr);function ua(K){return"\\"+vi[K]}function go(K,ae){return K==null?n:K[ae]}function Qr(K){return mi.test(K)}function Wa(K){return Fs.test(K)}function Ai(K){for(var ae,se=[];!(ae=K.next()).done;)se.push(ae.value);return se}function ca(K){var ae=-1,se=Array(K.size);return K.forEach(function(Re,Le){se[++ae]=[Le,Re]}),se}function ss(K,ae){return function(se){return K(ae(se))}}function ei(K,ae){for(var se=-1,Re=K.length,Le=0,st=[];++se<Re;){var lt=K[se];(lt===ae||lt===w)&&(K[se]=w,st[Le++]=se)}return st}function mo(K){var ae=-1,se=Array(K.size);return K.forEach(function(Re){se[++ae]=Re}),se}function za(K){var ae=-1,se=Array(K.size);return K.forEach(function(Re){se[++ae]=[Re,Re]}),se}function ku(K,ae,se){for(var Re=se-1,Le=K.length;++Re<Le;)if(K[Re]===ae)return Re;return-1}function fa(K,ae,se){for(var Re=se+1;Re--;)if(K[Re]===ae)return Re;return Re}function vo(K){return Qr(K)?js(K):Lr(K)}function cn(K){return Qr(K)?J(K):Fr(K)}function Ol(K){for(var ae=K.length;ae--&&Di.test(K.charAt(ae)););return ae}var da=M(Io);function js(K){for(var ae=xr.lastIndex=0;xr.test(K);)++ae;return ae}function J(K){return K.match(xr)||[]}function ce(K){return K.match(Ua)||[]}var Se=function K(ae){ae=ae==null?ln:Ce.defaults(ln.Object(),ae,Ce.pick(ln,is));var se=ae.Array,Re=ae.Date,Le=ae.Error,st=ae.Function,lt=ae.Math,rt=ae.Object,It=ae.RegExp,wt=ae.String,Vt=ae.TypeError,Yn=se.prototype,nr=st.prototype,In=rt.prototype,zt=ae["__core-js_shared__"],jr=nr.toString,kt=In.hasOwnProperty,Du=0,pn=function(){var s=/[^.]+$/.exec(zt&&zt.keys&&zt.keys.IE_PROTO||"");return s?"Symbol(src)_1."+s:""}(),Lo=In.toString,Pu=jr.call(rt),Ou=ln._,_u=It("^"+jr.call(kt).replace(yr,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),ha=la?ae.Buffer:n,Fo=ae.Symbol,Ya=ae.Uint8Array,Ga=ha?ha.allocUnsafe:n,Bs=ss(rt.getPrototypeOf,rt),pa=rt.create,_l=In.propertyIsEnumerable,No=Yn.splice,Rl=Fo?Fo.isConcatSpreadable:n,Xi=Fo?Fo.iterator:n,jo=Fo?Fo.toStringTag:n,as=function(){try{var s=tc(rt,"defineProperty");return s({},"",{}),s}catch{}}(),Ff=ae.clearTimeout!==ln.clearTimeout&&ae.clearTimeout,qa=Re&&Re.now!==ln.Date.now&&Re.now,Ac=ae.setTimeout!==ln.setTimeout&&ae.setTimeout,ga=lt.ceil,$s=lt.floor,ma=rt.getOwnPropertySymbols,Al=ha?ha.isBuffer:n,va=ae.isFinite,Xa=Yn.join,Ic=ss(rt.keys,rt),wn=lt.max,Gn=lt.min,ls=Re.now,Ru=ae.parseInt,us=lt.random,Il=Yn.reverse,yo=tc(ae,"DataView"),cs=tc(ae,"Map"),ya=tc(ae,"Promise"),bo=tc(ae,"Set"),Bo=tc(ae,"WeakMap"),ba=tc(rt,"create"),Ka=Bo&&new Bo,Vs={},fs=nc(yo),Au=nc(cs),Nf=nc(ya),Mc=nc(bo),wa=nc(Bo),ds=Fo?Fo.prototype:n,Hs=ds?ds.valueOf:n,Za=ds?ds.toString:n;function z(s){if(or(s)&&!Ht(s)&&!(s instanceof $t)){if(s instanceof Tr)return s;if(kt.call(s,"__wrapped__"))return wb(s)}return new Tr(s)}var $o=function(){function s(){}return function(u){if(!qn(u))return{};if(pa)return pa(u);s.prototype=u;var b=new s;return s.prototype=n,b}}();function Vo(){}function Tr(s,u){this.__wrapped__=s,this.__actions__=[],this.__chain__=!!u,this.__index__=0,this.__values__=n}z.templateSettings={escape:Pn,evaluate:hn,interpolate:ai,variable:"",imports:{_:z}},z.prototype=Vo.prototype,z.prototype.constructor=z,Tr.prototype=$o(Vo.prototype),Tr.prototype.constructor=Tr;function $t(s){this.__wrapped__=s,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=Ee,this.__views__=[]}function Ml(){var s=new $t(this.__wrapped__);return s.__actions__=Wr(this.__actions__),s.__dir__=this.__dir__,s.__filtered__=this.__filtered__,s.__iteratees__=Wr(this.__iteratees__),s.__takeCount__=this.__takeCount__,s.__views__=Wr(this.__views__),s}function Ja(){if(this.__filtered__){var s=new $t(this);s.__dir__=-1,s.__filtered__=!0}else s=this.clone(),s.__dir__*=-1;return s}function Ll(){var s=this.__wrapped__.value(),u=this.__dir__,b=Ht(s),O=u<0,$=b?s.length:0,X=EP(0,$,this.__views__),ie=X.start,fe=X.end,ve=fe-ie,$e=O?fe:ie-1,He=this.__iteratees__,Ke=He.length,at=0,bt=Gn(ve,this.__takeCount__);if(!b||!O&&$==ve&&bt==ve)return Kc(s,this.__actions__);var Dt=[];e:for(;ve--&&at<bt;){$e+=u;for(var Xt=-1,Pt=s[$e];++Xt<Ke;){var Jt=He[Xt],tn=Jt.iteratee,Yo=Jt.type,no=tn(Pt);if(Yo==he)Pt=no;else if(!no){if(Yo==Ue)continue e;break e}}Dt[at++]=Pt}return Dt}$t.prototype=$o(Vo.prototype),$t.prototype.constructor=$t;function wo(s){var u=-1,b=s==null?0:s.length;for(this.clear();++u<b;){var O=s[u];this.set(O[0],O[1])}}function Iu(){this.__data__=ba?ba(null):{},this.size=0}function Lc(s){var u=this.has(s)&&delete this.__data__[s];return this.size-=u?1:0,u}function Fc(s){var u=this.__data__;if(ba){var b=u[s];return b===f?n:b}return kt.call(u,s)?u[s]:n}function Nc(s){var u=this.__data__;return ba?u[s]!==n:kt.call(u,s)}function jf(s,u){var b=this.__data__;return this.size+=this.has(s)?0:1,b[s]=ba&&u===n?f:u,this}wo.prototype.clear=Iu,wo.prototype.delete=Lc,wo.prototype.get=Fc,wo.prototype.has=Nc,wo.prototype.set=jf;function xo(s){var u=-1,b=s==null?0:s.length;for(this.clear();++u<b;){var O=s[u];this.set(O[0],O[1])}}function Bf(){this.__data__=[],this.size=0}function $f(s){var u=this.__data__,b=Ki(u,s);if(b<0)return!1;var O=u.length-1;return b==O?u.pop():No.call(u,b,1),--this.size,!0}function Mu(s){var u=this.__data__,b=Ki(u,s);return b<0?n:u[b][1]}function Qa(s){return Ki(this.__data__,s)>-1}function Vf(s,u){var b=this.__data__,O=Ki(b,s);return O<0?(++this.size,b.push([s,u])):b[O][1]=u,this}xo.prototype.clear=Bf,xo.prototype.delete=$f,xo.prototype.get=Mu,xo.prototype.has=Qa,xo.prototype.set=Vf;function Ho(s){var u=-1,b=s==null?0:s.length;for(this.clear();++u<b;){var O=s[u];this.set(O[0],O[1])}}function Lu(){this.size=0,this.__data__={hash:new wo,map:new(cs||xo),string:new wo}}function Fl(s){var u=eh(this,s).delete(s);return this.size-=u?1:0,u}function Hf(s){return eh(this,s).get(s)}function Uf(s){return eh(this,s).has(s)}function Wf(s,u){var b=eh(this,s),O=b.size;return b.set(s,u),this.size+=b.size==O?0:1,this}Ho.prototype.clear=Lu,Ho.prototype.delete=Fl,Ho.prototype.get=Hf,Ho.prototype.has=Uf,Ho.prototype.set=Wf;function Br(s){var u=-1,b=s==null?0:s.length;for(this.__data__=new Ho;++u<b;)this.add(s[u])}function Fu(s){return this.__data__.set(s,f),this}function Nl(s){return this.__data__.has(s)}Br.prototype.add=Br.prototype.push=Fu,Br.prototype.has=Nl;function qt(s){var u=this.__data__=new xo(s);this.size=u.size}function bi(){this.__data__=new xo,this.size=0}function xa(s){var u=this.__data__,b=u.delete(s);return this.size=u.size,b}function Us(s){return this.__data__.get(s)}function Zt(s){return this.__data__.has(s)}function hs(s,u){var b=this.__data__;if(b instanceof xo){var O=b.__data__;if(!cs||O.length<i-1)return O.push([s,u]),this.size=++b.size,this;b=this.__data__=new Ho(O)}return b.set(s,u),this.size=b.size,this}qt.prototype.clear=bi,qt.prototype.delete=xa,qt.prototype.get=Us,qt.prototype.has=Zt,qt.prototype.set=hs;function el(s,u){var b=Ht(s),O=!b&&rc(s),$=!b&&!O&&eu(s),X=!b&&!O&&!$&&rf(s),ie=b||O||$||X,fe=ie?be(s.length,wt):[],ve=fe.length;for(var $e in s)(u||kt.call(s,$e))&&!(ie&&($e=="length"||$&&($e=="offset"||$e=="parent")||X&&($e=="buffer"||$e=="byteLength"||$e=="byteOffset")||fl($e,ve)))&&fe.push($e);return fe}function ti(s){var u=s.length;return u?s[Ks(0,u-1)]:n}function wi(s,u){return th(Wr(s),zs(u,0,s.length))}function So(s){return th(Wr(s))}function Nu(s,u,b){(b!==n&&!ta(s[u],b)||b===n&&!(u in s))&&xi(s,u,b)}function $r(s,u,b){var O=s[u];(!(kt.call(s,u)&&ta(O,b))||b===n&&!(u in s))&&xi(s,u,b)}function Ki(s,u){for(var b=s.length;b--;)if(ta(s[b][0],u))return b;return-1}function Ws(s,u,b,O){return ps(s,function($,X,ie){u(O,$,b($),ie)}),O}function jc(s,u){return s&&Ii(u,ri(u),s)}function ju(s,u){return s&&Ii(u,Do(u),s)}function xi(s,u,b){u=="__proto__"&&as?as(s,u,{configurable:!0,enumerable:!0,value:b,writable:!0}):s[u]=b}function Bu(s,u){for(var b=-1,O=u.length,$=se(O),X=s==null;++b<O;)$[b]=X?n:cg(s,u[b]);return $}function zs(s,u,b){return s===s&&(b!==n&&(s=s<=b?s:b),u!==n&&(s=s>=u?s:u)),s}function Vr(s,u,b,O,$,X){var ie,fe=u&g,ve=u&T,$e=u&E;if(b&&(ie=$?b(s,O,$,X):b(s)),ie!==n)return ie;if(!qn(s))return s;var He=Ht(s);if(He){if(ie=DP(s),!fe)return Wr(s,ie)}else{var Ke=Mi(s),at=Ke==et||Ke==At;if(eu(s))return bs(s,fe);if(Ke==Hn||Ke==Ze||at&&!$){if(ie=ve||at?{}:fb(s),!fe)return ve?Gf(s,ju(ie,s)):ef(s,jc(ie,s))}else{if(!Kt[Ke])return $?s:{};ie=PP(s,Ke,fe)}}X||(X=new qt);var bt=X.get(s);if(bt)return bt;X.set(s,ie),$b(s)?s.forEach(function(Pt){ie.add(Vr(Pt,u,b,Pt,s,X))}):jb(s)&&s.forEach(function(Pt,Jt){ie.set(Jt,Vr(Pt,u,b,Jt,s,X))});var Dt=$e?ve?Kp:Xp:ve?Do:ri,Xt=He?n:Dt(s);return te(Xt||s,function(Pt,Jt){Xt&&(Jt=Pt,Pt=s[Jt]),$r(ie,Jt,Vr(Pt,u,b,Jt,s,X))}),ie}function $u(s){var u=ri(s);return function(b){return Vu(b,s,u)}}function Vu(s,u,b){var O=b.length;if(s==null)return!O;for(s=rt(s);O--;){var $=b[O],X=u[$],ie=s[$];if(ie===n&&!($ in s)||!X(ie))return!1}return!0}function Hu(s,u,b){if(typeof s!="function")throw new Vt(a);return Xf(function(){s.apply(n,b)},u)}function Ys(s,u,b,O){var $=-1,X=xe,ie=!0,fe=s.length,ve=[],$e=u.length;if(!fe)return ve;b&&(u=ot(u,dt(b))),O?(X=Be,ie=!1):u.length>=i&&(X=St,ie=!1,u=new Br(u));e:for(;++$<fe;){var He=s[$],Ke=b==null?He:b(He);if(He=O||He!==0?He:0,ie&&Ke===Ke){for(var at=$e;at--;)if(u[at]===Ke)continue e;ve.push(He)}else X(u,Ke,O)||ve.push(He)}return ve}var ps=v(Si),Uu=v(Bl,!0);function Bc(s,u){var b=!0;return ps(s,function(O,$,X){return b=!!u(O,$,X),b}),b}function jl(s,u,b){for(var O=-1,$=s.length;++O<$;){var X=s[O],ie=u(X);if(ie!=null&&(fe===n?ie===ie&&!zo(ie):b(ie,fe)))var fe=ie,ve=X}return ve}function zf(s,u,b,O){var $=s.length;for(b=Yt(b),b<0&&(b=-b>$?0:$+b),O=O===n||O>$?$:Yt(O),O<0&&(O+=$),O=b>O?0:Hb(O);b<O;)s[b++]=u;return s}function $c(s,u){var b=[];return ps(s,function(O,$,X){u(O,$,X)&&b.push(O)}),b}function fr(s,u,b,O,$){var X=-1,ie=s.length;for(b||(b=_P),$||($=[]);++X<ie;){var fe=s[X];u>0&&b(fe)?u>1?fr(fe,u-1,b,O,$):Tt($,fe):O||($[$.length]=fe)}return $}var Wu=l(),Vc=l(!0);function Si(s,u){return s&&Wu(s,u,ri)}function Bl(s,u){return s&&Vc(s,u,ri)}function Sa(s,u){return _e(u,function(b){return dl(s[b])})}function gs(s,u){u=Ti(u,s);for(var b=0,O=u.length;s!=null&&b<O;)s=s[Ra(u[b++])];return b&&b==O?s:n}function tl(s,u,b){var O=u(s);return Ht(s)?O:Tt(O,b(s))}function rr(s){return s==null?s===n?dn:mr:jo&&jo in rt(s)?CP(s):NP(s)}function Gs(s,u){return s>u}function $l(s,u){return s!=null&&kt.call(s,u)}function Ta(s,u){return s!=null&&u in rt(s)}function Vl(s,u,b){return s>=Gn(u,b)&&s<wn(u,b)}function Ca(s,u,b){for(var O=b?Be:xe,$=s[0].length,X=s.length,ie=X,fe=se(X),ve=1/0,$e=[];ie--;){var He=s[ie];ie&&u&&(He=ot(He,dt(u))),ve=Gn(He.length,ve),fe[ie]=!b&&(u||$>=120&&He.length>=120)?new Br(ie&&He):n}He=s[0];var Ke=-1,at=fe[0];e:for(;++Ke<$&&$e.length<ve;){var bt=He[Ke],Dt=u?u(bt):bt;if(bt=b||bt!==0?bt:0,!(at?St(at,Dt):O($e,Dt,b))){for(ie=X;--ie;){var Xt=fe[ie];if(!(Xt?St(Xt,Dt):O(s[ie],Dt,b)))continue e}at&&at.push(Dt),$e.push(bt)}}return $e}function Hl(s,u,b,O){return Si(s,function($,X,ie){u(O,b($),X,ie)}),O}function To(s,u,b){u=Ti(u,s),s=gb(s,u);var O=s==null?s:s[Ra(xs(u))];return O==null?n:V(O,s,b)}function Ul(s){return or(s)&&rr(s)==Ze}function qs(s){return or(s)&&rr(s)==oi}function Hc(s){return or(s)&&rr(s)==gt}function nl(s,u,b,O,$){return s===u?!0:s==null||u==null||!or(s)&&!or(u)?s!==s&&u!==u:Ea(s,u,b,O,nl,$)}function Ea(s,u,b,O,$,X){var ie=Ht(s),fe=Ht(u),ve=ie?Qe:Mi(s),$e=fe?Qe:Mi(u);ve=ve==Ze?Hn:ve,$e=$e==Ze?Hn:$e;var He=ve==Hn,Ke=$e==Hn,at=ve==$e;if(at&&eu(s)){if(!eu(u))return!1;ie=!0,He=!1}if(at&&!He)return X||(X=new qt),ie||rf(s)?lb(s,u,b,O,$,X):SP(s,u,ve,b,O,$,X);if(!(b&A)){var bt=He&&kt.call(s,"__wrapped__"),Dt=Ke&&kt.call(u,"__wrapped__");if(bt||Dt){var Xt=bt?s.value():s,Pt=Dt?u.value():u;return X||(X=new qt),$(Xt,Pt,b,O,X)}}return at?(X||(X=new qt),TP(s,u,b,O,$,X)):!1}function ka(s){return or(s)&&Mi(s)==Mt}function zu(s,u,b,O){var $=b.length,X=$,ie=!O;if(s==null)return!X;for(s=rt(s);$--;){var fe=b[$];if(ie&&fe[2]?fe[1]!==s[fe[0]]:!(fe[0]in s))return!1}for(;++$<X;){fe=b[$];var ve=fe[0],$e=s[ve],He=fe[1];if(ie&&fe[2]){if($e===n&&!(ve in s))return!1}else{var Ke=new qt;if(O)var at=O($e,He,ve,s,u,Ke);if(!(at===n?nl(He,$e,A|I,O,Ke):at))return!1}}return!0}function Uc(s){if(!qn(s)||AP(s))return!1;var u=dl(s)?_u:Xr;return u.test(nc(s))}function Xs(s){return or(s)&&rr(s)==kr}function Wl(s){return or(s)&&Mi(s)==Jn}function Uo(s){return or(s)&&ah(s.length)&&!!Gt[rr(s)]}function zl(s){return typeof s=="function"?s:s==null?Po:typeof s=="object"?Ht(s)?il(s[0],s[1]):Co(s):Qb(s)}function Wo(s){if(!qf(s))return Ic(s);var u=[];for(var b in rt(s))kt.call(s,b)&&b!="constructor"&&u.push(b);return u}function rl(s){if(!qn(s))return FP(s);var u=qf(s),b=[];for(var O in s)O=="constructor"&&(u||!kt.call(s,O))||b.push(O);return b}function Zi(s,u){return s<u}function Ji(s,u){var b=-1,O=ko(s)?se(s.length):[];return ps(s,function($,X,ie){O[++b]=u($,X,ie)}),O}function Co(s){var u=Jp(s);return u.length==1&&u[0][2]?hb(u[0][0],u[0][1]):function(b){return b===s||zu(b,s,u)}}function il(s,u){return eg(s)&&db(u)?hb(Ra(s),u):function(b){var O=cg(b,s);return O===n&&O===u?fg(b,s):nl(u,O,A|I)}}function ms(s,u,b,O,$){s!==u&&Wu(u,function(X,ie){if($||($=new qt),qn(X))Qi(s,u,ie,b,ms,O,$);else{var fe=O?O(ng(s,ie),X,ie+"",s,u,$):n;fe===n&&(fe=X),Nu(s,ie,fe)}},Do)}function Qi(s,u,b,O,$,X,ie){var fe=ng(s,b),ve=ng(u,b),$e=ie.get(ve);if($e){Nu(s,b,$e);return}var He=X?X(fe,ve,b+"",s,u,ie):n,Ke=He===n;if(Ke){var at=Ht(ve),bt=!at&&eu(ve),Dt=!at&&!bt&&rf(ve);He=ve,at||bt||Dt?Ht(fe)?He=fe:hr(fe)?He=Wr(fe):bt?(Ke=!1,He=bs(ve,!0)):Dt?(Ke=!1,He=ll(ve,!0)):He=[]:Kf(ve)||rc(ve)?(He=fe,rc(fe)?He=Ub(fe):(!qn(fe)||dl(fe))&&(He=fb(ve))):Ke=!1}Ke&&(ie.set(ve,He),$(He,ve,O,X,ie),ie.delete(ve)),Nu(s,b,He)}function Da(s,u){var b=s.length;if(b)return u+=u<0?b:0,fl(u,b)?s[u]:n}function Yl(s,u,b){u.length?u=ot(u,function(X){return Ht(X)?function(ie){return gs(ie,X.length===1?X[0]:X)}:X}):u=[Po];var O=-1;u=ot(u,dt(Ct()));var $=Ji(s,function(X,ie,fe){var ve=ot(u,function($e){return $e(X)});return{criteria:ve,index:++O,value:X}});return Q($,function(X,ie){return Ql(X,ie,b)})}function ol(s,u){return Pa(s,u,function(b,O){return fg(s,O)})}function Pa(s,u,b){for(var O=-1,$=u.length,X={};++O<$;){var ie=u[O],fe=gs(s,ie);b(fe,ie)&&Zs(X,Ti(ie,s),fe)}return X}function Wc(s){return function(u){return gs(u,s)}}function Yu(s,u,b,O){var $=O?ho:Qt,X=-1,ie=u.length,fe=s;for(s===u&&(u=Wr(u)),b&&(fe=ot(s,dt(b)));++X<ie;)for(var ve=0,$e=u[X],He=b?b($e):$e;(ve=$(fe,He,ve,O))>-1;)fe!==s&&No.call(fe,ve,1),No.call(s,ve,1);return s}function Gu(s,u){for(var b=s?u.length:0,O=b-1;b--;){var $=u[b];if(b==O||$!==X){var X=$;fl($)?No.call(s,$,1):Ur(s,$)}}return s}function Ks(s,u){return s+$s(us()*(u-s+1))}function qu(s,u,b,O){for(var $=-1,X=wn(ga((u-s)/(b||1)),0),ie=se(X);X--;)ie[O?X:++$]=s,s+=b;return ie}function Gl(s,u){var b="";if(!s||u<1||u>Ne)return b;do u%2&&(b+=s),u=$s(u/2),u&&(s+=s);while(u);return b}function Bt(s,u){return rg(pb(s,u,Po),s+"")}function sl(s){return ti(of(s))}function Xu(s,u){var b=of(s);return th(b,zs(u,0,b.length))}function Zs(s,u,b,O){if(!qn(s))return s;u=Ti(u,s);for(var $=-1,X=u.length,ie=X-1,fe=s;fe!=null&&++$<X;){var ve=Ra(u[$]),$e=b;if(ve==="__proto__"||ve==="constructor"||ve==="prototype")return s;if($!=ie){var He=fe[ve];$e=O?O(He,ve,fe):n,$e===n&&($e=qn(He)?He:fl(u[$+1])?[]:{})}$r(fe,ve,$e),fe=fe[ve]}return s}var ql=Ka?function(s,u){return Ka.set(s,u),s}:Po,zc=as?function(s,u){return as(s,"toString",{configurable:!0,enumerable:!1,value:hg(u),writable:!0})}:Po;function Yc(s){return th(of(s))}function ni(s,u,b){var O=-1,$=s.length;u<0&&(u=-u>$?0:$+u),b=b>$?$:b,b<0&&(b+=$),$=u>b?0:b-u>>>0,u>>>=0;for(var X=se($);++O<$;)X[O]=s[O+u];return X}function Gc(s,u){var b;return ps(s,function(O,$,X){return b=u(O,$,X),!b}),!!b}function Xl(s,u,b){var O=0,$=s==null?O:s.length;if(typeof u=="number"&&u===u&&$<=We){for(;O<$;){var X=O+$>>>1,ie=s[X];ie!==null&&!zo(ie)&&(b?ie<=u:ie<u)?O=X+1:$=X}return $}return Ku(s,u,Po,b)}function Ku(s,u,b,O){var $=0,X=s==null?0:s.length;if(X===0)return 0;u=b(u);for(var ie=u!==u,fe=u===null,ve=zo(u),$e=u===n;$<X;){var He=$s(($+X)/2),Ke=b(s[He]),at=Ke!==n,bt=Ke===null,Dt=Ke===Ke,Xt=zo(Ke);if(ie)var Pt=O||Dt;else $e?Pt=Dt&&(O||at):fe?Pt=Dt&&at&&(O||!bt):ve?Pt=Dt&&at&&!bt&&(O||!Xt):bt||Xt?Pt=!1:Pt=O?Ke<=u:Ke<u;Pt?$=He+1:X=He}return Gn(X,Ye)}function Zu(s,u){for(var b=-1,O=s.length,$=0,X=[];++b<O;){var ie=s[b],fe=u?u(ie):ie;if(!b||!ta(fe,ve)){var ve=fe;X[$++]=ie===0?0:ie}}return X}function qc(s){return typeof s=="number"?s:zo(s)?me:+s}function Hr(s){if(typeof s=="string")return s;if(Ht(s))return ot(s,Hr)+"";if(zo(s))return Za?Za.call(s):"";var u=s+"";return u=="0"&&1/s==-1/0?"-0":u}function vs(s,u,b){var O=-1,$=xe,X=s.length,ie=!0,fe=[],ve=fe;if(b)ie=!1,$=Be;else if(X>=i){var $e=u?null:_a(s);if($e)return mo($e);ie=!1,$=St,ve=new Br}else ve=u?[]:fe;e:for(;++O<X;){var He=s[O],Ke=u?u(He):He;if(He=b||He!==0?He:0,ie&&Ke===Ke){for(var at=ve.length;at--;)if(ve[at]===Ke)continue e;u&&ve.push(Ke),fe.push(He)}else $(ve,Ke,b)||(ve!==fe&&ve.push(Ke),fe.push(He))}return fe}function Ur(s,u){return u=Ti(u,s),s=gb(s,u),s==null||delete s[Ra(xs(u))]}function Xc(s,u,b,O){return Zs(s,u,b(gs(s,u)),O)}function Js(s,u,b,O){for(var $=s.length,X=O?$:-1;(O?X--:++X<$)&&u(s[X],X,s););return b?ni(s,O?0:X,O?X+1:$):ni(s,O?X+1:0,O?$:X)}function Kc(s,u){var b=s;return b instanceof $t&&(b=b.value()),Et(u,function(O,$){return $.func.apply($.thisArg,Tt([O],$.args))},b)}function dr(s,u,b){var O=s.length;if(O<2)return O?vs(s[0]):[];for(var $=-1,X=se(O);++$<O;)for(var ie=s[$],fe=-1;++fe<O;)fe!=$&&(X[$]=Ys(X[$]||ie,s[fe],u,b));return vs(fr(X,1),u,b)}function Zc(s,u,b){for(var O=-1,$=s.length,X=u.length,ie={};++O<$;){var fe=O<X?u[O]:n;b(ie,s[O],fe)}return ie}function Kl(s){return hr(s)?s:[]}function Zl(s){return typeof s=="function"?s:Po}function Ti(s,u){return Ht(s)?s:eg(s,u)?[s]:bb(gn(s))}var Jc=Bt;function ys(s,u,b){var O=s.length;return b=b===n?O:b,!u&&b>=O?s:ni(s,u,b)}var Jl=Ff||function(s){return ln.clearTimeout(s)};function bs(s,u){if(u)return s.slice();var b=s.length,O=Ga?Ga(b):new s.constructor(b);return s.copy(O),O}function Qs(s){var u=new s.constructor(s.byteLength);return new Ya(u).set(new Ya(s)),u}function Yf(s,u){var b=u?Qs(s.buffer):s.buffer;return new s.constructor(b,s.byteOffset,s.byteLength)}function Ju(s){var u=new s.constructor(s.source,Or.exec(s));return u.lastIndex=s.lastIndex,u}function al(s){return Hs?rt(Hs.call(s)):{}}function ll(s,u){var b=u?Qs(s.buffer):s.buffer;return new s.constructor(b,s.byteOffset,s.length)}function Qu(s,u){if(s!==u){var b=s!==n,O=s===null,$=s===s,X=zo(s),ie=u!==n,fe=u===null,ve=u===u,$e=zo(u);if(!fe&&!$e&&!X&&s>u||X&&ie&&ve&&!fe&&!$e||O&&ie&&ve||!b&&ve||!$)return 1;if(!O&&!X&&!$e&&s<u||$e&&b&&$&&!O&&!X||fe&&b&&$||!ie&&$||!ve)return-1}return 0}function Ql(s,u,b){for(var O=-1,$=s.criteria,X=u.criteria,ie=$.length,fe=b.length;++O<ie;){var ve=Qu($[O],X[O]);if(ve){if(O>=fe)return ve;var $e=b[O];return ve*($e=="desc"?-1:1)}}return s.index-u.index}function ec(s,u,b,O){for(var $=-1,X=s.length,ie=b.length,fe=-1,ve=u.length,$e=wn(X-ie,0),He=se(ve+$e),Ke=!O;++fe<ve;)He[fe]=u[fe];for(;++$<ie;)(Ke||$<X)&&(He[b[$]]=s[$]);for(;$e--;)He[fe++]=s[$++];return He}function Qc(s,u,b,O){for(var $=-1,X=s.length,ie=-1,fe=b.length,ve=-1,$e=u.length,He=wn(X-fe,0),Ke=se(He+$e),at=!O;++$<He;)Ke[$]=s[$];for(var bt=$;++ve<$e;)Ke[bt+ve]=u[ve];for(;++ie<fe;)(at||$<X)&&(Ke[bt+b[ie]]=s[$++]);return Ke}function Wr(s,u){var b=-1,O=s.length;for(u||(u=se(O));++b<O;)u[b]=s[b];return u}function Ii(s,u,b,O){var $=!b;b||(b={});for(var X=-1,ie=u.length;++X<ie;){var fe=u[X],ve=O?O(b[fe],s[fe],fe,b,s):n;ve===n&&(ve=s[fe]),$?xi(b,fe,ve):$r(b,fe,ve)}return b}function ef(s,u){return Ii(s,Qp(s),u)}function Gf(s,u){return Ii(s,ub(s),u)}function ul(s,u){return function(b,O){var $=Ht(b)?oe:Ws,X=u?u():{};return $(b,s,Ct(O,2),X)}}function Oa(s){return Bt(function(u,b){var O=-1,$=b.length,X=$>1?b[$-1]:n,ie=$>2?b[2]:n;for(X=s.length>3&&typeof X=="function"?($--,X):n,ie&&to(b[0],b[1],ie)&&(X=$<3?n:X,$=1),u=rt(u);++O<$;){var fe=b[O];fe&&s(u,fe,O,X)}return u})}function v(s,u){return function(b,O){if(b==null)return b;if(!ko(b))return s(b,O);for(var $=b.length,X=u?$:-1,ie=rt(b);(u?X--:++X<$)&&O(ie[X],X,ie)!==!1;);return b}}function l(s){return function(u,b,O){for(var $=-1,X=rt(u),ie=O(u),fe=ie.length;fe--;){var ve=ie[s?fe:++$];if(b(X[ve],ve,X)===!1)break}return u}}function d(s,u,b){var O=u&j,$=R(s);function X(){var ie=this&&this!==ln&&this instanceof X?$:s;return ie.apply(O?b:this,arguments)}return X}function m(s){return function(u){u=gn(u);var b=Qr(u)?cn(u):n,O=b?b[0]:u.charAt(0),$=b?ys(b,1).join(""):u.slice(1);return O[s]()+$}}function x(s){return function(u){return Et(Zb(Kb(u).replace(Ls,"")),s,"")}}function R(s){return function(){var u=arguments;switch(u.length){case 0:return new s;case 1:return new s(u[0]);case 2:return new s(u[0],u[1]);case 3:return new s(u[0],u[1],u[2]);case 4:return new s(u[0],u[1],u[2],u[3]);case 5:return new s(u[0],u[1],u[2],u[3],u[4]);case 6:return new s(u[0],u[1],u[2],u[3],u[4],u[5]);case 7:return new s(u[0],u[1],u[2],u[3],u[4],u[5],u[6])}var b=$o(s.prototype),O=s.apply(b,u);return qn(O)?O:b}}function B(s,u,b){var O=R(s);function $(){for(var X=arguments.length,ie=se(X),fe=X,ve=nf($);fe--;)ie[fe]=arguments[fe];var $e=X<3&&ie[0]!==ve&&ie[X-1]!==ve?[]:ei(ie,ve);if(X-=$e.length,X<b)return ws(s,u,we,$.placeholder,n,ie,$e,n,n,b-X);var He=this&&this!==ln&&this instanceof $?O:s;return V(He,this,ie)}return $}function Y(s){return function(u,b,O){var $=rt(u);if(!ko(u)){var X=Ct(b,3);u=ri(u),b=function(fe){return X($[fe],fe,$)}}var ie=s(u,b,O);return ie>-1?$[X?u[ie]:ie]:n}}function ne(s){return cl(function(u){var b=u.length,O=b,$=Tr.prototype.thru;for(s&&u.reverse();O--;){var X=u[O];if(typeof X!="function")throw new Vt(a);if($&&!ie&&Qd(X)=="wrapper")var ie=new Tr([],!0)}for(O=ie?O:b;++O<b;){X=u[O];var fe=Qd(X),ve=fe=="wrapper"?Zp(X):n;ve&&tg(ve[0])&&ve[1]==(S|W|Z|le)&&!ve[4].length&&ve[9]==1?ie=ie[Qd(ve[0])].apply(ie,ve[3]):ie=X.length==1&&tg(X)?ie[fe]():ie.thru(X)}return function(){var $e=arguments,He=$e[0];if(ie&&$e.length==1&&Ht(He))return ie.plant(He).value();for(var Ke=0,at=b?u[Ke].apply(this,$e):He;++Ke<b;)at=u[Ke].call(this,at);return at}})}function we(s,u,b,O,$,X,ie,fe,ve,$e){var He=u&S,Ke=u&j,at=u&_,bt=u&(W|re),Dt=u&ue,Xt=at?n:R(s);function Pt(){for(var Jt=arguments.length,tn=se(Jt),Yo=Jt;Yo--;)tn[Yo]=arguments[Yo];if(bt)var no=nf(Pt),Go=bn(tn,no);if(O&&(tn=ec(tn,O,$,bt)),X&&(tn=Qc(tn,X,ie,bt)),Jt-=Go,bt&&Jt<$e){var pr=ei(tn,no);return ws(s,u,we,Pt.placeholder,b,tn,pr,fe,ve,$e-Jt)}var na=Ke?b:this,pl=at?na[s]:s;return Jt=tn.length,fe?tn=jP(tn,fe):Dt&&Jt>1&&tn.reverse(),He&&ve<Jt&&(tn.length=ve),this&&this!==ln&&this instanceof Pt&&(pl=Xt||R(pl)),pl.apply(na,tn)}return Pt}function je(s,u){return function(b,O){return Hl(b,s,u(O),{})}}function qe(s,u){return function(b,O){var $;if(b===n&&O===n)return u;if(b!==n&&($=b),O!==n){if($===n)return O;typeof b=="string"||typeof O=="string"?(b=Hr(b),O=Hr(O)):(b=qc(b),O=qc(O)),$=s(b,O)}return $}}function nt(s){return cl(function(u){return u=ot(u,dt(Ct())),Bt(function(b){var O=this;return s(u,function($){return V($,O,b)})})})}function xt(s,u){u=u===n?" ":Hr(u);var b=u.length;if(b<2)return b?Gl(u,s):u;var O=Gl(u,ga(s/vo(u)));return Qr(u)?ys(cn(O),0,s).join(""):O.slice(0,s)}function en(s,u,b,O){var $=u&j,X=R(s);function ie(){for(var fe=-1,ve=arguments.length,$e=-1,He=O.length,Ke=se(He+ve),at=this&&this!==ln&&this instanceof ie?X:s;++$e<He;)Ke[$e]=O[$e];for(;ve--;)Ke[$e++]=arguments[++fe];return V(at,$?b:this,Ke)}return ie}function ir(s){return function(u,b,O){return O&&typeof O!="number"&&to(u,b,O)&&(b=O=n),u=hl(u),b===n?(b=u,u=0):b=hl(b),O=O===n?u<b?1:-1:hl(O),qu(u,b,O,s)}}function Eo(s){return function(u,b){return typeof u=="string"&&typeof b=="string"||(u=Ss(u),b=Ss(b)),s(u,b)}}function ws(s,u,b,O,$,X,ie,fe,ve,$e){var He=u&W,Ke=He?ie:n,at=He?n:ie,bt=He?X:n,Dt=He?n:X;u|=He?Z:de,u&=~(He?de:Z),u&H||(u&=-4);var Xt=[s,u,$,bt,Ke,Dt,at,fe,ve,$e],Pt=b.apply(n,Xt);return tg(s)&&mb(Pt,Xt),Pt.placeholder=O,vb(Pt,s,u)}function eo(s){var u=lt[s];return function(b,O){if(b=Ss(b),O=O==null?0:Gn(Yt(O),292),O&&va(b)){var $=(gn(b)+"e").split("e"),X=u($[0]+"e"+(+$[1]+O));return $=(gn(X)+"e").split("e"),+($[0]+"e"+(+$[1]-O))}return u(b)}}var _a=bo&&1/mo(new bo([,-0]))[1]==Oe?function(s){return new bo(s)}:mg;function tf(s){return function(u){var b=Mi(u);return b==Mt?ca(u):b==Jn?za(u):Ae(u,s(u))}}function ea(s,u,b,O,$,X,ie,fe){var ve=u&_;if(!ve&&typeof s!="function")throw new Vt(a);var $e=O?O.length:0;if($e||(u&=-97,O=$=n),ie=ie===n?ie:wn(Yt(ie),0),fe=fe===n?fe:Yt(fe),$e-=$?$.length:0,u&de){var He=O,Ke=$;O=$=n}var at=ve?n:Zp(s),bt=[s,u,b,O,$,He,Ke,X,ie,fe];if(at&&LP(bt,at),s=bt[0],u=bt[1],b=bt[2],O=bt[3],$=bt[4],fe=bt[9]=bt[9]===n?ve?0:s.length:wn(bt[9]-$e,0),!fe&&u&(W|re)&&(u&=-25),!u||u==j)var Dt=d(s,u,b);else u==W||u==re?Dt=B(s,u,fe):(u==Z||u==(j|Z))&&!$.length?Dt=en(s,u,b,O):Dt=we.apply(n,bt);var Xt=at?ql:mb;return vb(Xt(Dt,bt),s,u)}function sb(s,u,b,O){return s===n||ta(s,In[b])&&!kt.call(O,b)?u:s}function ab(s,u,b,O,$,X){return qn(s)&&qn(u)&&(X.set(u,s),ms(s,u,n,ab,X),X.delete(u)),s}function xP(s){return Kf(s)?n:s}function lb(s,u,b,O,$,X){var ie=b&A,fe=s.length,ve=u.length;if(fe!=ve&&!(ie&&ve>fe))return!1;var $e=X.get(s),He=X.get(u);if($e&&He)return $e==u&&He==s;var Ke=-1,at=!0,bt=b&I?new Br:n;for(X.set(s,u),X.set(u,s);++Ke<fe;){var Dt=s[Ke],Xt=u[Ke];if(O)var Pt=ie?O(Xt,Dt,Ke,u,s,X):O(Dt,Xt,Ke,s,u,X);if(Pt!==n){if(Pt)continue;at=!1;break}if(bt){if(!un(u,function(Jt,tn){if(!St(bt,tn)&&(Dt===Jt||$(Dt,Jt,b,O,X)))return bt.push(tn)})){at=!1;break}}else if(!(Dt===Xt||$(Dt,Xt,b,O,X))){at=!1;break}}return X.delete(s),X.delete(u),at}function SP(s,u,b,O,$,X,ie){switch(b){case on:if(s.byteLength!=u.byteLength||s.byteOffset!=u.byteOffset)return!1;s=s.buffer,u=u.buffer;case oi:return!(s.byteLength!=u.byteLength||!X(new Ya(s),new Ya(u)));case ht:case gt:case Vn:return ta(+s,+u);case yt:return s.name==u.name&&s.message==u.message;case kr:case sn:return s==u+"";case Mt:var fe=ca;case Jn:var ve=O&A;if(fe||(fe=mo),s.size!=u.size&&!ve)return!1;var $e=ie.get(s);if($e)return $e==u;O|=I,ie.set(s,u);var He=lb(fe(s),fe(u),O,$,X,ie);return ie.delete(s),He;case fn:if(Hs)return Hs.call(s)==Hs.call(u)}return!1}function TP(s,u,b,O,$,X){var ie=b&A,fe=Xp(s),ve=fe.length,$e=Xp(u),He=$e.length;if(ve!=He&&!ie)return!1;for(var Ke=ve;Ke--;){var at=fe[Ke];if(!(ie?at in u:kt.call(u,at)))return!1}var bt=X.get(s),Dt=X.get(u);if(bt&&Dt)return bt==u&&Dt==s;var Xt=!0;X.set(s,u),X.set(u,s);for(var Pt=ie;++Ke<ve;){at=fe[Ke];var Jt=s[at],tn=u[at];if(O)var Yo=ie?O(tn,Jt,at,u,s,X):O(Jt,tn,at,s,u,X);if(!(Yo===n?Jt===tn||$(Jt,tn,b,O,X):Yo)){Xt=!1;break}Pt||(Pt=at=="constructor")}if(Xt&&!Pt){var no=s.constructor,Go=u.constructor;no!=Go&&"constructor"in s&&"constructor"in u&&!(typeof no=="function"&&no instanceof no&&typeof Go=="function"&&Go instanceof Go)&&(Xt=!1)}return X.delete(s),X.delete(u),Xt}function cl(s){return rg(pb(s,n,Tb),s+"")}function Xp(s){return tl(s,ri,Qp)}function Kp(s){return tl(s,Do,ub)}var Zp=Ka?function(s){return Ka.get(s)}:mg;function Qd(s){for(var u=s.name+"",b=Vs[u],O=kt.call(Vs,u)?b.length:0;O--;){var $=b[O],X=$.func;if(X==null||X==s)return $.name}return u}function nf(s){var u=kt.call(z,"placeholder")?z:s;return u.placeholder}function Ct(){var s=z.iteratee||pg;return s=s===pg?zl:s,arguments.length?s(arguments[0],arguments[1]):s}function eh(s,u){var b=s.__data__;return RP(u)?b[typeof u=="string"?"string":"hash"]:b.map}function Jp(s){for(var u=ri(s),b=u.length;b--;){var O=u[b],$=s[O];u[b]=[O,$,db($)]}return u}function tc(s,u){var b=go(s,u);return Uc(b)?b:n}function CP(s){var u=kt.call(s,jo),b=s[jo];try{s[jo]=n;var O=!0}catch{}var $=Lo.call(s);return O&&(u?s[jo]=b:delete s[jo]),$}var Qp=ma?function(s){return s==null?[]:(s=rt(s),_e(ma(s),function(u){return _l.call(s,u)}))}:vg,ub=ma?function(s){for(var u=[];s;)Tt(u,Qp(s)),s=Bs(s);return u}:vg,Mi=rr;(yo&&Mi(new yo(new ArrayBuffer(1)))!=on||cs&&Mi(new cs)!=Mt||ya&&Mi(ya.resolve())!=Sn||bo&&Mi(new bo)!=Jn||Bo&&Mi(new Bo)!=ut)&&(Mi=function(s){var u=rr(s),b=u==Hn?s.constructor:n,O=b?nc(b):"";if(O)switch(O){case fs:return on;case Au:return Mt;case Nf:return Sn;case Mc:return Jn;case wa:return ut}return u});function EP(s,u,b){for(var O=-1,$=b.length;++O<$;){var X=b[O],ie=X.size;switch(X.type){case"drop":s+=ie;break;case"dropRight":u-=ie;break;case"take":u=Gn(u,s+ie);break;case"takeRight":s=wn(s,u-ie);break}}return{start:s,end:u}}function kP(s){var u=s.match(Ms);return u?u[1].split(qr):[]}function cb(s,u,b){u=Ti(u,s);for(var O=-1,$=u.length,X=!1;++O<$;){var ie=Ra(u[O]);if(!(X=s!=null&&b(s,ie)))break;s=s[ie]}return X||++O!=$?X:($=s==null?0:s.length,!!$&&ah($)&&fl(ie,$)&&(Ht(s)||rc(s)))}function DP(s){var u=s.length,b=new s.constructor(u);return u&&typeof s[0]=="string"&&kt.call(s,"index")&&(b.index=s.index,b.input=s.input),b}function fb(s){return typeof s.constructor=="function"&&!qf(s)?$o(Bs(s)):{}}function PP(s,u,b){var O=s.constructor;switch(u){case oi:return Qs(s);case ht:case gt:return new O(+s);case on:return Yf(s,b);case Vi:case Hi:case Ui:case Dr:case Nn:case Pr:case vr:case zr:case Yr:return ll(s,b);case Mt:return new O;case Vn:case sn:return new O(s);case kr:return Ju(s);case Jn:return new O;case fn:return al(s)}}function OP(s,u){var b=u.length;if(!b)return s;var O=b-1;return u[O]=(b>1?"& ":"")+u[O],u=u.join(b>2?", ":" "),s.replace(Is,`{
144
+ /* [wrapped with `+u+`] */
145
+ `)}function _P(s){return Ht(s)||rc(s)||!!(Rl&&s&&s[Rl])}function fl(s,u){var b=typeof s;return u=u??Ne,!!u&&(b=="number"||b!="symbol"&&Rr.test(s))&&s>-1&&s%1==0&&s<u}function to(s,u,b){if(!qn(b))return!1;var O=typeof u;return(O=="number"?ko(b)&&fl(u,b.length):O=="string"&&u in b)?ta(b[u],s):!1}function eg(s,u){if(Ht(s))return!1;var b=typeof s;return b=="number"||b=="symbol"||b=="boolean"||s==null||zo(s)?!0:Tn.test(s)||!li.test(s)||u!=null&&s in rt(u)}function RP(s){var u=typeof s;return u=="string"||u=="number"||u=="symbol"||u=="boolean"?s!=="__proto__":s===null}function tg(s){var u=Qd(s),b=z[u];if(typeof b!="function"||!(u in $t.prototype))return!1;if(s===b)return!0;var O=Zp(b);return!!O&&s===O[0]}function AP(s){return!!pn&&pn in s}var IP=zt?dl:yg;function qf(s){var u=s&&s.constructor,b=typeof u=="function"&&u.prototype||In;return s===b}function db(s){return s===s&&!qn(s)}function hb(s,u){return function(b){return b==null?!1:b[s]===u&&(u!==n||s in rt(b))}}function MP(s){var u=oh(s,function(O){return b.size===p&&b.clear(),O}),b=u.cache;return u}function LP(s,u){var b=s[1],O=u[1],$=b|O,X=$<(j|_|S),ie=O==S&&b==W||O==S&&b==le&&s[7].length<=u[8]||O==(S|le)&&u[7].length<=u[8]&&b==W;if(!(X||ie))return s;O&j&&(s[2]=u[2],$|=b&j?0:H);var fe=u[3];if(fe){var ve=s[3];s[3]=ve?ec(ve,fe,u[4]):fe,s[4]=ve?ei(s[3],w):u[4]}return fe=u[5],fe&&(ve=s[5],s[5]=ve?Qc(ve,fe,u[6]):fe,s[6]=ve?ei(s[5],w):u[6]),fe=u[7],fe&&(s[7]=fe),O&S&&(s[8]=s[8]==null?u[8]:Gn(s[8],u[8])),s[9]==null&&(s[9]=u[9]),s[0]=u[0],s[1]=$,s}function FP(s){var u=[];if(s!=null)for(var b in rt(s))u.push(b);return u}function NP(s){return Lo.call(s)}function pb(s,u,b){return u=wn(u===n?s.length-1:u,0),function(){for(var O=arguments,$=-1,X=wn(O.length-u,0),ie=se(X);++$<X;)ie[$]=O[u+$];$=-1;for(var fe=se(u+1);++$<u;)fe[$]=O[$];return fe[u]=b(ie),V(s,this,fe)}}function gb(s,u){return u.length<2?s:gs(s,ni(u,0,-1))}function jP(s,u){for(var b=s.length,O=Gn(u.length,b),$=Wr(s);O--;){var X=u[O];s[O]=fl(X,b)?$[X]:n}return s}function ng(s,u){if(!(u==="constructor"&&typeof s[u]=="function")&&u!="__proto__")return s[u]}var mb=yb(ql),Xf=Ac||function(s,u){return ln.setTimeout(s,u)},rg=yb(zc);function vb(s,u,b){var O=u+"";return rg(s,OP(O,BP(kP(O),b)))}function yb(s){var u=0,b=0;return function(){var O=ls(),$=Ve-(O-b);if(b=O,$>0){if(++u>=Fe)return arguments[0]}else u=0;return s.apply(n,arguments)}}function th(s,u){var b=-1,O=s.length,$=O-1;for(u=u===n?O:u;++b<u;){var X=Ks(b,$),ie=s[X];s[X]=s[b],s[b]=ie}return s.length=u,s}var bb=MP(function(s){var u=[];return s.charCodeAt(0)===46&&u.push(""),s.replace(so,function(b,O,$,X){u.push($?X.replace(Pi,"$1"):O||b)}),u});function Ra(s){if(typeof s=="string"||zo(s))return s;var u=s+"";return u=="0"&&1/s==-1/0?"-0":u}function nc(s){if(s!=null){try{return jr.call(s)}catch{}try{return s+""}catch{}}return""}function BP(s,u){return te(Je,function(b){var O="_."+b[0];u&b[1]&&!xe(s,O)&&s.push(O)}),s.sort()}function wb(s){if(s instanceof $t)return s.clone();var u=new Tr(s.__wrapped__,s.__chain__);return u.__actions__=Wr(s.__actions__),u.__index__=s.__index__,u.__values__=s.__values__,u}function $P(s,u,b){(b?to(s,u,b):u===n)?u=1:u=wn(Yt(u),0);var O=s==null?0:s.length;if(!O||u<1)return[];for(var $=0,X=0,ie=se(ga(O/u));$<O;)ie[X++]=ni(s,$,$+=u);return ie}function VP(s){for(var u=-1,b=s==null?0:s.length,O=0,$=[];++u<b;){var X=s[u];X&&($[O++]=X)}return $}function HP(){var s=arguments.length;if(!s)return[];for(var u=se(s-1),b=arguments[0],O=s;O--;)u[O-1]=arguments[O];return Tt(Ht(b)?Wr(b):[b],fr(u,1))}var UP=Bt(function(s,u){return hr(s)?Ys(s,fr(u,1,hr,!0)):[]}),WP=Bt(function(s,u){var b=xs(u);return hr(b)&&(b=n),hr(s)?Ys(s,fr(u,1,hr,!0),Ct(b,2)):[]}),zP=Bt(function(s,u){var b=xs(u);return hr(b)&&(b=n),hr(s)?Ys(s,fr(u,1,hr,!0),n,b):[]});function YP(s,u,b){var O=s==null?0:s.length;return O?(u=b||u===n?1:Yt(u),ni(s,u<0?0:u,O)):[]}function GP(s,u,b){var O=s==null?0:s.length;return O?(u=b||u===n?1:Yt(u),u=O-u,ni(s,0,u<0?0:u)):[]}function qP(s,u){return s&&s.length?Js(s,Ct(u,3),!0,!0):[]}function XP(s,u){return s&&s.length?Js(s,Ct(u,3),!0):[]}function KP(s,u,b,O){var $=s==null?0:s.length;return $?(b&&typeof b!="number"&&to(s,u,b)&&(b=0,O=$),zf(s,u,b,O)):[]}function xb(s,u,b){var O=s==null?0:s.length;if(!O)return-1;var $=b==null?0:Yt(b);return $<0&&($=wn(O+$,0)),jt(s,Ct(u,3),$)}function Sb(s,u,b){var O=s==null?0:s.length;if(!O)return-1;var $=O-1;return b!==n&&($=Yt(b),$=b<0?wn(O+$,0):Gn($,O-1)),jt(s,Ct(u,3),$,!0)}function Tb(s){var u=s==null?0:s.length;return u?fr(s,1):[]}function ZP(s){var u=s==null?0:s.length;return u?fr(s,Oe):[]}function JP(s,u){var b=s==null?0:s.length;return b?(u=u===n?1:Yt(u),fr(s,u)):[]}function QP(s){for(var u=-1,b=s==null?0:s.length,O={};++u<b;){var $=s[u];O[$[0]]=$[1]}return O}function Cb(s){return s&&s.length?s[0]:n}function eO(s,u,b){var O=s==null?0:s.length;if(!O)return-1;var $=b==null?0:Yt(b);return $<0&&($=wn(O+$,0)),Qt(s,u,$)}function tO(s){var u=s==null?0:s.length;return u?ni(s,0,-1):[]}var nO=Bt(function(s){var u=ot(s,Kl);return u.length&&u[0]===s[0]?Ca(u):[]}),rO=Bt(function(s){var u=xs(s),b=ot(s,Kl);return u===xs(b)?u=n:b.pop(),b.length&&b[0]===s[0]?Ca(b,Ct(u,2)):[]}),iO=Bt(function(s){var u=xs(s),b=ot(s,Kl);return u=typeof u=="function"?u:n,u&&b.pop(),b.length&&b[0]===s[0]?Ca(b,n,u):[]});function oO(s,u){return s==null?"":Xa.call(s,u)}function xs(s){var u=s==null?0:s.length;return u?s[u-1]:n}function sO(s,u,b){var O=s==null?0:s.length;if(!O)return-1;var $=O;return b!==n&&($=Yt(b),$=$<0?wn(O+$,0):Gn($,O-1)),u===u?fa(s,u,$):jt(s,po,$,!0)}function aO(s,u){return s&&s.length?Da(s,Yt(u)):n}var lO=Bt(Eb);function Eb(s,u){return s&&s.length&&u&&u.length?Yu(s,u):s}function uO(s,u,b){return s&&s.length&&u&&u.length?Yu(s,u,Ct(b,2)):s}function cO(s,u,b){return s&&s.length&&u&&u.length?Yu(s,u,n,b):s}var fO=cl(function(s,u){var b=s==null?0:s.length,O=Bu(s,u);return Gu(s,ot(u,function($){return fl($,b)?+$:$}).sort(Qu)),O});function dO(s,u){var b=[];if(!(s&&s.length))return b;var O=-1,$=[],X=s.length;for(u=Ct(u,3);++O<X;){var ie=s[O];u(ie,O,s)&&(b.push(ie),$.push(O))}return Gu(s,$),b}function ig(s){return s==null?s:Il.call(s)}function hO(s,u,b){var O=s==null?0:s.length;return O?(b&&typeof b!="number"&&to(s,u,b)?(u=0,b=O):(u=u==null?0:Yt(u),b=b===n?O:Yt(b)),ni(s,u,b)):[]}function pO(s,u){return Xl(s,u)}function gO(s,u,b){return Ku(s,u,Ct(b,2))}function mO(s,u){var b=s==null?0:s.length;if(b){var O=Xl(s,u);if(O<b&&ta(s[O],u))return O}return-1}function vO(s,u){return Xl(s,u,!0)}function yO(s,u,b){return Ku(s,u,Ct(b,2),!0)}function bO(s,u){var b=s==null?0:s.length;if(b){var O=Xl(s,u,!0)-1;if(ta(s[O],u))return O}return-1}function wO(s){return s&&s.length?Zu(s):[]}function xO(s,u){return s&&s.length?Zu(s,Ct(u,2)):[]}function SO(s){var u=s==null?0:s.length;return u?ni(s,1,u):[]}function TO(s,u,b){return s&&s.length?(u=b||u===n?1:Yt(u),ni(s,0,u<0?0:u)):[]}function CO(s,u,b){var O=s==null?0:s.length;return O?(u=b||u===n?1:Yt(u),u=O-u,ni(s,u<0?0:u,O)):[]}function EO(s,u){return s&&s.length?Js(s,Ct(u,3),!1,!0):[]}function kO(s,u){return s&&s.length?Js(s,Ct(u,3)):[]}var DO=Bt(function(s){return vs(fr(s,1,hr,!0))}),PO=Bt(function(s){var u=xs(s);return hr(u)&&(u=n),vs(fr(s,1,hr,!0),Ct(u,2))}),OO=Bt(function(s){var u=xs(s);return u=typeof u=="function"?u:n,vs(fr(s,1,hr,!0),n,u)});function _O(s){return s&&s.length?vs(s):[]}function RO(s,u){return s&&s.length?vs(s,Ct(u,2)):[]}function AO(s,u){return u=typeof u=="function"?u:n,s&&s.length?vs(s,n,u):[]}function og(s){if(!(s&&s.length))return[];var u=0;return s=_e(s,function(b){if(hr(b))return u=wn(b.length,u),!0}),be(u,function(b){return ot(s,D(b))})}function kb(s,u){if(!(s&&s.length))return[];var b=og(s);return u==null?b:ot(b,function(O){return V(u,n,O)})}var IO=Bt(function(s,u){return hr(s)?Ys(s,u):[]}),MO=Bt(function(s){return dr(_e(s,hr))}),LO=Bt(function(s){var u=xs(s);return hr(u)&&(u=n),dr(_e(s,hr),Ct(u,2))}),FO=Bt(function(s){var u=xs(s);return u=typeof u=="function"?u:n,dr(_e(s,hr),n,u)}),NO=Bt(og);function jO(s,u){return Zc(s||[],u||[],$r)}function BO(s,u){return Zc(s||[],u||[],Zs)}var $O=Bt(function(s){var u=s.length,b=u>1?s[u-1]:n;return b=typeof b=="function"?(s.pop(),b):n,kb(s,b)});function Db(s){var u=z(s);return u.__chain__=!0,u}function VO(s,u){return u(s),s}function nh(s,u){return u(s)}var HO=cl(function(s){var u=s.length,b=u?s[0]:0,O=this.__wrapped__,$=function(X){return Bu(X,s)};return u>1||this.__actions__.length||!(O instanceof $t)||!fl(b)?this.thru($):(O=O.slice(b,+b+(u?1:0)),O.__actions__.push({func:nh,args:[$],thisArg:n}),new Tr(O,this.__chain__).thru(function(X){return u&&!X.length&&X.push(n),X}))});function UO(){return Db(this)}function WO(){return new Tr(this.value(),this.__chain__)}function zO(){this.__values__===n&&(this.__values__=Vb(this.value()));var s=this.__index__>=this.__values__.length,u=s?n:this.__values__[this.__index__++];return{done:s,value:u}}function YO(){return this}function GO(s){for(var u,b=this;b instanceof Vo;){var O=wb(b);O.__index__=0,O.__values__=n,u?$.__wrapped__=O:u=O;var $=O;b=b.__wrapped__}return $.__wrapped__=s,u}function qO(){var s=this.__wrapped__;if(s instanceof $t){var u=s;return this.__actions__.length&&(u=new $t(this)),u=u.reverse(),u.__actions__.push({func:nh,args:[ig],thisArg:n}),new Tr(u,this.__chain__)}return this.thru(ig)}function XO(){return Kc(this.__wrapped__,this.__actions__)}var KO=ul(function(s,u,b){kt.call(s,b)?++s[b]:xi(s,b,1)});function ZO(s,u,b){var O=Ht(s)?De:Bc;return b&&to(s,u,b)&&(u=n),O(s,Ct(u,3))}function JO(s,u){var b=Ht(s)?_e:$c;return b(s,Ct(u,3))}var QO=Y(xb),e_=Y(Sb);function t_(s,u){return fr(rh(s,u),1)}function n_(s,u){return fr(rh(s,u),Oe)}function r_(s,u,b){return b=b===n?1:Yt(b),fr(rh(s,u),b)}function Pb(s,u){var b=Ht(s)?te:ps;return b(s,Ct(u,3))}function Ob(s,u){var b=Ht(s)?pe:Uu;return b(s,Ct(u,3))}var i_=ul(function(s,u,b){kt.call(s,b)?s[b].push(u):xi(s,b,[u])});function o_(s,u,b,O){s=ko(s)?s:of(s),b=b&&!O?Yt(b):0;var $=s.length;return b<0&&(b=wn($+b,0)),lh(s)?b<=$&&s.indexOf(u,b)>-1:!!$&&Qt(s,u,b)>-1}var s_=Bt(function(s,u,b){var O=-1,$=typeof u=="function",X=ko(s)?se(s.length):[];return ps(s,function(ie){X[++O]=$?V(u,ie,b):To(ie,u,b)}),X}),a_=ul(function(s,u,b){xi(s,b,u)});function rh(s,u){var b=Ht(s)?ot:Ji;return b(s,Ct(u,3))}function l_(s,u,b,O){return s==null?[]:(Ht(u)||(u=u==null?[]:[u]),b=O?n:b,Ht(b)||(b=b==null?[]:[b]),Yl(s,u,b))}var u_=ul(function(s,u,b){s[b?0:1].push(u)},function(){return[[],[]]});function c_(s,u,b){var O=Ht(s)?Et:U,$=arguments.length<3;return O(s,Ct(u,4),b,$,ps)}function f_(s,u,b){var O=Ht(s)?Rn:U,$=arguments.length<3;return O(s,Ct(u,4),b,$,Uu)}function d_(s,u){var b=Ht(s)?_e:$c;return b(s,sh(Ct(u,3)))}function h_(s){var u=Ht(s)?ti:sl;return u(s)}function p_(s,u,b){(b?to(s,u,b):u===n)?u=1:u=Yt(u);var O=Ht(s)?wi:Xu;return O(s,u)}function g_(s){var u=Ht(s)?So:Yc;return u(s)}function m_(s){if(s==null)return 0;if(ko(s))return lh(s)?vo(s):s.length;var u=Mi(s);return u==Mt||u==Jn?s.size:Wo(s).length}function v_(s,u,b){var O=Ht(s)?un:Gc;return b&&to(s,u,b)&&(u=n),O(s,Ct(u,3))}var y_=Bt(function(s,u){if(s==null)return[];var b=u.length;return b>1&&to(s,u[0],u[1])?u=[]:b>2&&to(u[0],u[1],u[2])&&(u=[u[0]]),Yl(s,fr(u,1),[])}),ih=qa||function(){return ln.Date.now()};function b_(s,u){if(typeof u!="function")throw new Vt(a);return s=Yt(s),function(){if(--s<1)return u.apply(this,arguments)}}function _b(s,u,b){return u=b?n:u,u=s&&u==null?s.length:u,ea(s,S,n,n,n,n,u)}function Rb(s,u){var b;if(typeof u!="function")throw new Vt(a);return s=Yt(s),function(){return--s>0&&(b=u.apply(this,arguments)),s<=1&&(u=n),b}}var sg=Bt(function(s,u,b){var O=j;if(b.length){var $=ei(b,nf(sg));O|=Z}return ea(s,O,u,b,$)}),Ab=Bt(function(s,u,b){var O=j|_;if(b.length){var $=ei(b,nf(Ab));O|=Z}return ea(u,O,s,b,$)});function Ib(s,u,b){u=b?n:u;var O=ea(s,W,n,n,n,n,n,u);return O.placeholder=Ib.placeholder,O}function Mb(s,u,b){u=b?n:u;var O=ea(s,re,n,n,n,n,n,u);return O.placeholder=Mb.placeholder,O}function Lb(s,u,b){var O,$,X,ie,fe,ve,$e=0,He=!1,Ke=!1,at=!0;if(typeof s!="function")throw new Vt(a);u=Ss(u)||0,qn(b)&&(He=!!b.leading,Ke="maxWait"in b,X=Ke?wn(Ss(b.maxWait)||0,u):X,at="trailing"in b?!!b.trailing:at);function bt(pr){var na=O,pl=$;return O=$=n,$e=pr,ie=s.apply(pl,na),ie}function Dt(pr){return $e=pr,fe=Xf(Jt,u),He?bt(pr):ie}function Xt(pr){var na=pr-ve,pl=pr-$e,e0=u-na;return Ke?Gn(e0,X-pl):e0}function Pt(pr){var na=pr-ve,pl=pr-$e;return ve===n||na>=u||na<0||Ke&&pl>=X}function Jt(){var pr=ih();if(Pt(pr))return tn(pr);fe=Xf(Jt,Xt(pr))}function tn(pr){return fe=n,at&&O?bt(pr):(O=$=n,ie)}function Yo(){fe!==n&&Jl(fe),$e=0,O=ve=$=fe=n}function no(){return fe===n?ie:tn(ih())}function Go(){var pr=ih(),na=Pt(pr);if(O=arguments,$=this,ve=pr,na){if(fe===n)return Dt(ve);if(Ke)return Jl(fe),fe=Xf(Jt,u),bt(ve)}return fe===n&&(fe=Xf(Jt,u)),ie}return Go.cancel=Yo,Go.flush=no,Go}var w_=Bt(function(s,u){return Hu(s,1,u)}),x_=Bt(function(s,u,b){return Hu(s,Ss(u)||0,b)});function S_(s){return ea(s,ue)}function oh(s,u){if(typeof s!="function"||u!=null&&typeof u!="function")throw new Vt(a);var b=function(){var O=arguments,$=u?u.apply(this,O):O[0],X=b.cache;if(X.has($))return X.get($);var ie=s.apply(this,O);return b.cache=X.set($,ie)||X,ie};return b.cache=new(oh.Cache||Ho),b}oh.Cache=Ho;function sh(s){if(typeof s!="function")throw new Vt(a);return function(){var u=arguments;switch(u.length){case 0:return!s.call(this);case 1:return!s.call(this,u[0]);case 2:return!s.call(this,u[0],u[1]);case 3:return!s.call(this,u[0],u[1],u[2])}return!s.apply(this,u)}}function T_(s){return Rb(2,s)}var C_=Jc(function(s,u){u=u.length==1&&Ht(u[0])?ot(u[0],dt(Ct())):ot(fr(u,1),dt(Ct()));var b=u.length;return Bt(function(O){for(var $=-1,X=Gn(O.length,b);++$<X;)O[$]=u[$].call(this,O[$]);return V(s,this,O)})}),ag=Bt(function(s,u){var b=ei(u,nf(ag));return ea(s,Z,n,u,b)}),Fb=Bt(function(s,u){var b=ei(u,nf(Fb));return ea(s,de,n,u,b)}),E_=cl(function(s,u){return ea(s,le,n,n,n,u)});function k_(s,u){if(typeof s!="function")throw new Vt(a);return u=u===n?u:Yt(u),Bt(s,u)}function D_(s,u){if(typeof s!="function")throw new Vt(a);return u=u==null?0:wn(Yt(u),0),Bt(function(b){var O=b[u],$=ys(b,0,u);return O&&Tt($,O),V(s,this,$)})}function P_(s,u,b){var O=!0,$=!0;if(typeof s!="function")throw new Vt(a);return qn(b)&&(O="leading"in b?!!b.leading:O,$="trailing"in b?!!b.trailing:$),Lb(s,u,{leading:O,maxWait:u,trailing:$})}function O_(s){return _b(s,1)}function __(s,u){return ag(Zl(u),s)}function R_(){if(!arguments.length)return[];var s=arguments[0];return Ht(s)?s:[s]}function A_(s){return Vr(s,E)}function I_(s,u){return u=typeof u=="function"?u:n,Vr(s,E,u)}function M_(s){return Vr(s,g|E)}function L_(s,u){return u=typeof u=="function"?u:n,Vr(s,g|E,u)}function F_(s,u){return u==null||Vu(s,u,ri(u))}function ta(s,u){return s===u||s!==s&&u!==u}var N_=Eo(Gs),j_=Eo(function(s,u){return s>=u}),rc=Ul(function(){return arguments}())?Ul:function(s){return or(s)&&kt.call(s,"callee")&&!_l.call(s,"callee")},Ht=se.isArray,B_=h?dt(h):qs;function ko(s){return s!=null&&ah(s.length)&&!dl(s)}function hr(s){return or(s)&&ko(s)}function $_(s){return s===!0||s===!1||or(s)&&rr(s)==ht}var eu=Al||yg,V_=y?dt(y):Hc;function H_(s){return or(s)&&s.nodeType===1&&!Kf(s)}function U_(s){if(s==null)return!0;if(ko(s)&&(Ht(s)||typeof s=="string"||typeof s.splice=="function"||eu(s)||rf(s)||rc(s)))return!s.length;var u=Mi(s);if(u==Mt||u==Jn)return!s.size;if(qf(s))return!Wo(s).length;for(var b in s)if(kt.call(s,b))return!1;return!0}function W_(s,u){return nl(s,u)}function z_(s,u,b){b=typeof b=="function"?b:n;var O=b?b(s,u):n;return O===n?nl(s,u,n,b):!!O}function lg(s){if(!or(s))return!1;var u=rr(s);return u==yt||u==ct||typeof s.message=="string"&&typeof s.name=="string"&&!Kf(s)}function Y_(s){return typeof s=="number"&&va(s)}function dl(s){if(!qn(s))return!1;var u=rr(s);return u==et||u==At||u==it||u==$i}function Nb(s){return typeof s=="number"&&s==Yt(s)}function ah(s){return typeof s=="number"&&s>-1&&s%1==0&&s<=Ne}function qn(s){var u=typeof s;return s!=null&&(u=="object"||u=="function")}function or(s){return s!=null&&typeof s=="object"}var jb=C?dt(C):ka;function G_(s,u){return s===u||zu(s,u,Jp(u))}function q_(s,u,b){return b=typeof b=="function"?b:n,zu(s,u,Jp(u),b)}function X_(s){return Bb(s)&&s!=+s}function K_(s){if(IP(s))throw new Le(o);return Uc(s)}function Z_(s){return s===null}function J_(s){return s==null}function Bb(s){return typeof s=="number"||or(s)&&rr(s)==Vn}function Kf(s){if(!or(s)||rr(s)!=Hn)return!1;var u=Bs(s);if(u===null)return!0;var b=kt.call(u,"constructor")&&u.constructor;return typeof b=="function"&&b instanceof b&&jr.call(b)==Pu}var ug=P?dt(P):Xs;function Q_(s){return Nb(s)&&s>=-9007199254740991&&s<=Ne}var $b=L?dt(L):Wl;function lh(s){return typeof s=="string"||!Ht(s)&&or(s)&&rr(s)==sn}function zo(s){return typeof s=="symbol"||or(s)&&rr(s)==fn}var rf=N?dt(N):Uo;function eR(s){return s===n}function tR(s){return or(s)&&Mi(s)==ut}function nR(s){return or(s)&&rr(s)==Dn}var rR=Eo(Zi),iR=Eo(function(s,u){return s<=u});function Vb(s){if(!s)return[];if(ko(s))return lh(s)?cn(s):Wr(s);if(Xi&&s[Xi])return Ai(s[Xi]());var u=Mi(s),b=u==Mt?ca:u==Jn?mo:of;return b(s)}function hl(s){if(!s)return s===0?s:0;if(s=Ss(s),s===Oe||s===-1/0){var u=s<0?-1:1;return u*tt}return s===s?s:0}function Yt(s){var u=hl(s),b=u%1;return u===u?b?u-b:u:0}function Hb(s){return s?zs(Yt(s),0,Ee):0}function Ss(s){if(typeof s=="number")return s;if(zo(s))return me;if(qn(s)){var u=typeof s.valueOf=="function"?s.valueOf():s;s=qn(u)?u+"":u}if(typeof s!="string")return s===0?s:+s;s=Ge(s);var b=ci.test(s);return b||br.test(s)?Ns(s.slice(2),b?2:8):_r.test(s)?me:+s}function Ub(s){return Ii(s,Do(s))}function oR(s){return s?zs(Yt(s),-9007199254740991,Ne):s===0?s:0}function gn(s){return s==null?"":Hr(s)}var sR=Oa(function(s,u){if(qf(u)||ko(u)){Ii(u,ri(u),s);return}for(var b in u)kt.call(u,b)&&$r(s,b,u[b])}),Wb=Oa(function(s,u){Ii(u,Do(u),s)}),uh=Oa(function(s,u,b,O){Ii(u,Do(u),s,O)}),aR=Oa(function(s,u,b,O){Ii(u,ri(u),s,O)}),lR=cl(Bu);function uR(s,u){var b=$o(s);return u==null?b:jc(b,u)}var cR=Bt(function(s,u){s=rt(s);var b=-1,O=u.length,$=O>2?u[2]:n;for($&&to(u[0],u[1],$)&&(O=1);++b<O;)for(var X=u[b],ie=Do(X),fe=-1,ve=ie.length;++fe<ve;){var $e=ie[fe],He=s[$e];(He===n||ta(He,In[$e])&&!kt.call(s,$e))&&(s[$e]=X[$e])}return s}),fR=Bt(function(s){return s.push(n,ab),V(zb,n,s)});function dR(s,u){return Nr(s,Ct(u,3),Si)}function hR(s,u){return Nr(s,Ct(u,3),Bl)}function pR(s,u){return s==null?s:Wu(s,Ct(u,3),Do)}function gR(s,u){return s==null?s:Vc(s,Ct(u,3),Do)}function mR(s,u){return s&&Si(s,Ct(u,3))}function vR(s,u){return s&&Bl(s,Ct(u,3))}function yR(s){return s==null?[]:Sa(s,ri(s))}function bR(s){return s==null?[]:Sa(s,Do(s))}function cg(s,u,b){var O=s==null?n:gs(s,u);return O===n?b:O}function wR(s,u){return s!=null&&cb(s,u,$l)}function fg(s,u){return s!=null&&cb(s,u,Ta)}var xR=je(function(s,u,b){u!=null&&typeof u.toString!="function"&&(u=Lo.call(u)),s[u]=b},hg(Po)),SR=je(function(s,u,b){u!=null&&typeof u.toString!="function"&&(u=Lo.call(u)),kt.call(s,u)?s[u].push(b):s[u]=[b]},Ct),TR=Bt(To);function ri(s){return ko(s)?el(s):Wo(s)}function Do(s){return ko(s)?el(s,!0):rl(s)}function CR(s,u){var b={};return u=Ct(u,3),Si(s,function(O,$,X){xi(b,u(O,$,X),O)}),b}function ER(s,u){var b={};return u=Ct(u,3),Si(s,function(O,$,X){xi(b,$,u(O,$,X))}),b}var kR=Oa(function(s,u,b){ms(s,u,b)}),zb=Oa(function(s,u,b,O){ms(s,u,b,O)}),DR=cl(function(s,u){var b={};if(s==null)return b;var O=!1;u=ot(u,function(X){return X=Ti(X,s),O||(O=X.length>1),X}),Ii(s,Kp(s),b),O&&(b=Vr(b,g|T|E,xP));for(var $=u.length;$--;)Ur(b,u[$]);return b});function PR(s,u){return Yb(s,sh(Ct(u)))}var OR=cl(function(s,u){return s==null?{}:ol(s,u)});function Yb(s,u){if(s==null)return{};var b=ot(Kp(s),function(O){return[O]});return u=Ct(u),Pa(s,b,function(O,$){return u(O,$[0])})}function _R(s,u,b){u=Ti(u,s);var O=-1,$=u.length;for($||($=1,s=n);++O<$;){var X=s==null?n:s[Ra(u[O])];X===n&&(O=$,X=b),s=dl(X)?X.call(s):X}return s}function RR(s,u,b){return s==null?s:Zs(s,u,b)}function AR(s,u,b,O){return O=typeof O=="function"?O:n,s==null?s:Zs(s,u,b,O)}var Gb=tf(ri),qb=tf(Do);function IR(s,u,b){var O=Ht(s),$=O||eu(s)||rf(s);if(u=Ct(u,4),b==null){var X=s&&s.constructor;$?b=O?new X:[]:qn(s)?b=dl(X)?$o(Bs(s)):{}:b={}}return($?te:Si)(s,function(ie,fe,ve){return u(b,ie,fe,ve)}),b}function MR(s,u){return s==null?!0:Ur(s,u)}function LR(s,u,b){return s==null?s:Xc(s,u,Zl(b))}function FR(s,u,b,O){return O=typeof O=="function"?O:n,s==null?s:Xc(s,u,Zl(b),O)}function of(s){return s==null?[]:_t(s,ri(s))}function NR(s){return s==null?[]:_t(s,Do(s))}function jR(s,u,b){return b===n&&(b=u,u=n),b!==n&&(b=Ss(b),b=b===b?b:0),u!==n&&(u=Ss(u),u=u===u?u:0),zs(Ss(s),u,b)}function BR(s,u,b){return u=hl(u),b===n?(b=u,u=0):b=hl(b),s=Ss(s),Vl(s,u,b)}function $R(s,u,b){if(b&&typeof b!="boolean"&&to(s,u,b)&&(u=b=n),b===n&&(typeof u=="boolean"?(b=u,u=n):typeof s=="boolean"&&(b=s,s=n)),s===n&&u===n?(s=0,u=1):(s=hl(s),u===n?(u=s,s=0):u=hl(u)),s>u){var O=s;s=u,u=O}if(b||s%1||u%1){var $=us();return Gn(s+$*(u-s+ur("1e-"+(($+"").length-1))),u)}return Ks(s,u)}var VR=x(function(s,u,b){return u=u.toLowerCase(),s+(b?Xb(u):u)});function Xb(s){return dg(gn(s).toLowerCase())}function Kb(s){return s=gn(s),s&&s.replace(tr,$n).replace(rs,"")}function HR(s,u,b){s=gn(s),u=Hr(u);var O=s.length;b=b===n?O:zs(Yt(b),0,O);var $=b;return b-=u.length,b>=0&&s.slice(b,$)==u}function UR(s){return s=gn(s),s&&Wi.test(s)?s.replace(Wt,os):s}function WR(s){return s=gn(s),s&&ui.test(s)?s.replace(yr,"\\$&"):s}var zR=x(function(s,u,b){return s+(b?"-":"")+u.toLowerCase()}),YR=x(function(s,u,b){return s+(b?" ":"")+u.toLowerCase()}),GR=m("toLowerCase");function qR(s,u,b){s=gn(s),u=Yt(u);var O=u?vo(s):0;if(!u||O>=u)return s;var $=(u-O)/2;return xt($s($),b)+s+xt(ga($),b)}function XR(s,u,b){s=gn(s),u=Yt(u);var O=u?vo(s):0;return u&&O<u?s+xt(u-O,b):s}function KR(s,u,b){s=gn(s),u=Yt(u);var O=u?vo(s):0;return u&&O<u?xt(u-O,b)+s:s}function ZR(s,u,b){return b||u==null?u=0:u&&(u=+u),Ru(gn(s).replace(an,""),u||0)}function JR(s,u,b){return(b?to(s,u,b):u===n)?u=1:u=Yt(u),Gl(gn(s),u)}function QR(){var s=arguments,u=gn(s[0]);return s.length<3?u:u.replace(s[1],s[2])}var eA=x(function(s,u,b){return s+(b?"_":"")+u.toLowerCase()});function tA(s,u,b){return b&&typeof b!="number"&&to(s,u,b)&&(u=b=n),b=b===n?Ee:b>>>0,b?(s=gn(s),s&&(typeof u=="string"||u!=null&&!ug(u))&&(u=Hr(u),!u&&Qr(s))?ys(cn(s),0,b):s.split(u,b)):[]}var nA=x(function(s,u,b){return s+(b?" ":"")+dg(u)});function rA(s,u,b){return s=gn(s),b=b==null?0:zs(Yt(b),0,s.length),u=Hr(u),s.slice(b,b+u.length)==u}function iA(s,u,b){var O=z.templateSettings;b&&to(s,u,b)&&(u=n),s=gn(s),u=uh({},u,O,sb);var $=uh({},u.imports,O.imports,sb),X=ri($),ie=_t($,X),fe,ve,$e=0,He=u.interpolate||zi,Ke="__p += '",at=It((u.escape||zi).source+"|"+He.source+"|"+(He===ai?er:zi).source+"|"+(u.evaluate||zi).source+"|$","g"),bt="//# sourceURL="+(kt.call(u,"sourceURL")?(u.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++rn+"]")+`
146
+ `;s.replace(at,function(Pt,Jt,tn,Yo,no,Go){return tn||(tn=Yo),Ke+=s.slice($e,Go).replace(Oi,ua),Jt&&(fe=!0,Ke+=`' +
147
+ __e(`+Jt+`) +
148
+ '`),no&&(ve=!0,Ke+=`';
149
+ `+no+`;
150
+ __p += '`),tn&&(Ke+=`' +
151
+ ((__t = (`+tn+`)) == null ? '' : __t) +
152
+ '`),$e=Go+Pt.length,Pt}),Ke+=`';
153
+ `;var Dt=kt.call(u,"variable")&&u.variable;if(!Dt)Ke=`with (obj) {
154
+ `+Ke+`
155
+ }
156
+ `;else if(lo.test(Dt))throw new Le(c);Ke=(ve?Ke.replace(Ao,""):Ke).replace(Un,"$1").replace(Gr,"$1;"),Ke="function("+(Dt||"obj")+`) {
157
+ `+(Dt?"":`obj || (obj = {});
158
+ `)+"var __t, __p = ''"+(fe?", __e = _.escape":"")+(ve?`, __j = Array.prototype.join;
159
+ function print() { __p += __j.call(arguments, '') }
160
+ `:`;
161
+ `)+Ke+`return __p
162
+ }`;var Xt=Jb(function(){return st(X,bt+"return "+Ke).apply(n,ie)});if(Xt.source=Ke,lg(Xt))throw Xt;return Xt}function oA(s){return gn(s).toLowerCase()}function sA(s){return gn(s).toUpperCase()}function aA(s,u,b){if(s=gn(s),s&&(b||u===n))return Ge(s);if(!s||!(u=Hr(u)))return s;var O=cn(s),$=cn(u),X=vt(O,$),ie=An(O,$)+1;return ys(O,X,ie).join("")}function lA(s,u,b){if(s=gn(s),s&&(b||u===n))return s.slice(0,Ol(s)+1);if(!s||!(u=Hr(u)))return s;var O=cn(s),$=An(O,cn(u))+1;return ys(O,0,$).join("")}function uA(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 cA(s,u){var b=ze,O=Me;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 X=s.length;if(Qr(s)){var ie=cn(s);X=ie.length}if(b>=X)return s;var fe=b-vo(O);if(fe<1)return O;var ve=ie?ys(ie,0,fe).join(""):s.slice(0,fe);if($===n)return ve+O;if(ie&&(fe+=ve.length-fe),ug($)){if(s.slice(fe).search($)){var $e,He=ve;for($.global||($=It($.source,gn(Or.exec($))+"g")),$.lastIndex=0;$e=$.exec(He);)var Ke=$e.index;ve=ve.slice(0,Ke===n?fe:Ke)}}else if(s.indexOf(Hr($),fe)!=fe){var at=ve.lastIndexOf($);at>-1&&(ve=ve.slice(0,at))}return ve+O}function fA(s){return s=gn(s),s&&si.test(s)?s.replace(Qn,da):s}var dA=x(function(s,u,b){return s+(b?" ":"")+u.toUpperCase()}),dg=m("toUpperCase");function Zb(s,u,b){return s=gn(s),u=b?n:u,u===n?Wa(s)?ce(s):Lt(s):s.match(u)||[]}var Jb=Bt(function(s,u){try{return V(s,n,u)}catch(b){return lg(b)?b:new Le(b)}}),hA=cl(function(s,u){return te(u,function(b){b=Ra(b),xi(s,b,sg(s[b],s))}),s});function pA(s){var u=s==null?0:s.length,b=Ct();return s=u?ot(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 X=s[$];if(V(X[0],this,O))return V(X[1],this,O)}})}function gA(s){return $u(Vr(s,g))}function hg(s){return function(){return s}}function mA(s,u){return s==null||s!==s?u:s}var vA=ne(),yA=ne(!0);function Po(s){return s}function pg(s){return zl(typeof s=="function"?s:Vr(s,g))}function bA(s){return Co(Vr(s,g))}function wA(s,u){return il(s,Vr(u,g))}var xA=Bt(function(s,u){return function(b){return To(b,s,u)}}),SA=Bt(function(s,u){return function(b){return To(s,b,u)}});function gg(s,u,b){var O=ri(u),$=Sa(u,O);b==null&&!(qn(u)&&($.length||!O.length))&&(b=u,u=s,s=this,$=Sa(u,ri(u)));var X=!(qn(b)&&"chain"in b)||!!b.chain,ie=dl(s);return te($,function(fe){var ve=u[fe];s[fe]=ve,ie&&(s.prototype[fe]=function(){var $e=this.__chain__;if(X||$e){var He=s(this.__wrapped__),Ke=He.__actions__=Wr(this.__actions__);return Ke.push({func:ve,args:arguments,thisArg:s}),He.__chain__=$e,He}return ve.apply(s,Tt([this.value()],arguments))})}),s}function TA(){return ln._===this&&(ln._=Ou),this}function mg(){}function CA(s){return s=Yt(s),Bt(function(u){return Da(u,s)})}var EA=nt(ot),kA=nt(De),DA=nt(un);function Qb(s){return eg(s)?D(Ra(s)):Wc(s)}function PA(s){return function(u){return s==null?n:gs(s,u)}}var OA=ir(),_A=ir(!0);function vg(){return[]}function yg(){return!1}function RA(){return{}}function AA(){return""}function IA(){return!0}function MA(s,u){if(s=Yt(s),s<1||s>Ne)return[];var b=Ee,O=Gn(s,Ee);u=Ct(u),s-=Ee;for(var $=be(O,u);++b<s;)u(b);return $}function LA(s){return Ht(s)?ot(s,Ra):zo(s)?[s]:Wr(bb(gn(s)))}function FA(s){var u=++Du;return gn(s)+u}var NA=qe(function(s,u){return s+u},0),jA=eo("ceil"),BA=qe(function(s,u){return s/u},1),$A=eo("floor");function VA(s){return s&&s.length?jl(s,Po,Gs):n}function HA(s,u){return s&&s.length?jl(s,Ct(u,2),Gs):n}function UA(s){return Sr(s,Po)}function WA(s,u){return Sr(s,Ct(u,2))}function zA(s){return s&&s.length?jl(s,Po,Zi):n}function YA(s,u){return s&&s.length?jl(s,Ct(u,2),Zi):n}var GA=qe(function(s,u){return s*u},1),qA=eo("round"),XA=qe(function(s,u){return s-u},0);function KA(s){return s&&s.length?ye(s,Po):0}function ZA(s,u){return s&&s.length?ye(s,Ct(u,2)):0}return z.after=b_,z.ary=_b,z.assign=sR,z.assignIn=Wb,z.assignInWith=uh,z.assignWith=aR,z.at=lR,z.before=Rb,z.bind=sg,z.bindAll=hA,z.bindKey=Ab,z.castArray=R_,z.chain=Db,z.chunk=$P,z.compact=VP,z.concat=HP,z.cond=pA,z.conforms=gA,z.constant=hg,z.countBy=KO,z.create=uR,z.curry=Ib,z.curryRight=Mb,z.debounce=Lb,z.defaults=cR,z.defaultsDeep=fR,z.defer=w_,z.delay=x_,z.difference=UP,z.differenceBy=WP,z.differenceWith=zP,z.drop=YP,z.dropRight=GP,z.dropRightWhile=qP,z.dropWhile=XP,z.fill=KP,z.filter=JO,z.flatMap=t_,z.flatMapDeep=n_,z.flatMapDepth=r_,z.flatten=Tb,z.flattenDeep=ZP,z.flattenDepth=JP,z.flip=S_,z.flow=vA,z.flowRight=yA,z.fromPairs=QP,z.functions=yR,z.functionsIn=bR,z.groupBy=i_,z.initial=tO,z.intersection=nO,z.intersectionBy=rO,z.intersectionWith=iO,z.invert=xR,z.invertBy=SR,z.invokeMap=s_,z.iteratee=pg,z.keyBy=a_,z.keys=ri,z.keysIn=Do,z.map=rh,z.mapKeys=CR,z.mapValues=ER,z.matches=bA,z.matchesProperty=wA,z.memoize=oh,z.merge=kR,z.mergeWith=zb,z.method=xA,z.methodOf=SA,z.mixin=gg,z.negate=sh,z.nthArg=CA,z.omit=DR,z.omitBy=PR,z.once=T_,z.orderBy=l_,z.over=EA,z.overArgs=C_,z.overEvery=kA,z.overSome=DA,z.partial=ag,z.partialRight=Fb,z.partition=u_,z.pick=OR,z.pickBy=Yb,z.property=Qb,z.propertyOf=PA,z.pull=lO,z.pullAll=Eb,z.pullAllBy=uO,z.pullAllWith=cO,z.pullAt=fO,z.range=OA,z.rangeRight=_A,z.rearg=E_,z.reject=d_,z.remove=dO,z.rest=k_,z.reverse=ig,z.sampleSize=p_,z.set=RR,z.setWith=AR,z.shuffle=g_,z.slice=hO,z.sortBy=y_,z.sortedUniq=wO,z.sortedUniqBy=xO,z.split=tA,z.spread=D_,z.tail=SO,z.take=TO,z.takeRight=CO,z.takeRightWhile=EO,z.takeWhile=kO,z.tap=VO,z.throttle=P_,z.thru=nh,z.toArray=Vb,z.toPairs=Gb,z.toPairsIn=qb,z.toPath=LA,z.toPlainObject=Ub,z.transform=IR,z.unary=O_,z.union=DO,z.unionBy=PO,z.unionWith=OO,z.uniq=_O,z.uniqBy=RO,z.uniqWith=AO,z.unset=MR,z.unzip=og,z.unzipWith=kb,z.update=LR,z.updateWith=FR,z.values=of,z.valuesIn=NR,z.without=IO,z.words=Zb,z.wrap=__,z.xor=MO,z.xorBy=LO,z.xorWith=FO,z.zip=NO,z.zipObject=jO,z.zipObjectDeep=BO,z.zipWith=$O,z.entries=Gb,z.entriesIn=qb,z.extend=Wb,z.extendWith=uh,gg(z,z),z.add=NA,z.attempt=Jb,z.camelCase=VR,z.capitalize=Xb,z.ceil=jA,z.clamp=jR,z.clone=A_,z.cloneDeep=M_,z.cloneDeepWith=L_,z.cloneWith=I_,z.conformsTo=F_,z.deburr=Kb,z.defaultTo=mA,z.divide=BA,z.endsWith=HR,z.eq=ta,z.escape=UR,z.escapeRegExp=WR,z.every=ZO,z.find=QO,z.findIndex=xb,z.findKey=dR,z.findLast=e_,z.findLastIndex=Sb,z.findLastKey=hR,z.floor=$A,z.forEach=Pb,z.forEachRight=Ob,z.forIn=pR,z.forInRight=gR,z.forOwn=mR,z.forOwnRight=vR,z.get=cg,z.gt=N_,z.gte=j_,z.has=wR,z.hasIn=fg,z.head=Cb,z.identity=Po,z.includes=o_,z.indexOf=eO,z.inRange=BR,z.invoke=TR,z.isArguments=rc,z.isArray=Ht,z.isArrayBuffer=B_,z.isArrayLike=ko,z.isArrayLikeObject=hr,z.isBoolean=$_,z.isBuffer=eu,z.isDate=V_,z.isElement=H_,z.isEmpty=U_,z.isEqual=W_,z.isEqualWith=z_,z.isError=lg,z.isFinite=Y_,z.isFunction=dl,z.isInteger=Nb,z.isLength=ah,z.isMap=jb,z.isMatch=G_,z.isMatchWith=q_,z.isNaN=X_,z.isNative=K_,z.isNil=J_,z.isNull=Z_,z.isNumber=Bb,z.isObject=qn,z.isObjectLike=or,z.isPlainObject=Kf,z.isRegExp=ug,z.isSafeInteger=Q_,z.isSet=$b,z.isString=lh,z.isSymbol=zo,z.isTypedArray=rf,z.isUndefined=eR,z.isWeakMap=tR,z.isWeakSet=nR,z.join=oO,z.kebabCase=zR,z.last=xs,z.lastIndexOf=sO,z.lowerCase=YR,z.lowerFirst=GR,z.lt=rR,z.lte=iR,z.max=VA,z.maxBy=HA,z.mean=UA,z.meanBy=WA,z.min=zA,z.minBy=YA,z.stubArray=vg,z.stubFalse=yg,z.stubObject=RA,z.stubString=AA,z.stubTrue=IA,z.multiply=GA,z.nth=aO,z.noConflict=TA,z.noop=mg,z.now=ih,z.pad=qR,z.padEnd=XR,z.padStart=KR,z.parseInt=ZR,z.random=$R,z.reduce=c_,z.reduceRight=f_,z.repeat=JR,z.replace=QR,z.result=_R,z.round=qA,z.runInContext=K,z.sample=h_,z.size=m_,z.snakeCase=eA,z.some=v_,z.sortedIndex=pO,z.sortedIndexBy=gO,z.sortedIndexOf=mO,z.sortedLastIndex=vO,z.sortedLastIndexBy=yO,z.sortedLastIndexOf=bO,z.startCase=nA,z.startsWith=rA,z.subtract=XA,z.sum=KA,z.sumBy=ZA,z.template=iA,z.times=MA,z.toFinite=hl,z.toInteger=Yt,z.toLength=Hb,z.toLower=oA,z.toNumber=Ss,z.toSafeInteger=oR,z.toString=gn,z.toUpper=sA,z.trim=aA,z.trimEnd=lA,z.trimStart=uA,z.truncate=cA,z.unescape=fA,z.uniqueId=FA,z.upperCase=dA,z.upperFirst=dg,z.each=Pb,z.eachRight=Ob,z.first=Cb,gg(z,function(){var s={};return Si(z,function(u,b){kt.call(z.prototype,b)||(s[b]=u)}),s}(),{chain:!1}),z.VERSION=r,te(["bind","bindKey","curry","curryRight","partial","partialRight"],function(s){z[s].placeholder=z}),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,Ee),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==Ue||b==ke;$t.prototype[s]=function($){var X=this.clone();return X.__iteratees__.push({iteratee:Ct($,3),type:b}),X.__filtered__=X.__filtered__||O,X}}),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(sh(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(Ee)},Si($t.prototype,function(s,u){var b=/^(?:filter|find|map|reject)|While$/.test(u),O=/^(?:head|last)$/.test(u),$=z[O?"take"+(u=="last"?"Right":""):u],X=O||/^find/.test(u);$&&(z.prototype[u]=function(){var ie=this.__wrapped__,fe=O?[1]:arguments,ve=ie instanceof $t,$e=fe[0],He=ve||Ht(ie),Ke=function(Jt){var tn=$.apply(z,Tt([Jt],fe));return O&&at?tn[0]:tn};He&&b&&typeof $e=="function"&&$e.length!=1&&(ve=He=!1);var at=this.__chain__,bt=!!this.__actions__.length,Dt=X&&!at,Xt=ve&&!bt;if(!X&&He){ie=Xt?ie:new $t(this);var Pt=s.apply(ie,fe);return Pt.__actions__.push({func:nh,args:[Ke],thisArg:n}),new Tr(Pt,at)}return Dt&&Xt?s.apply(this,fe):(Pt=this.thru(Ke),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);z.prototype[s]=function(){var $=arguments;if(O&&!this.__chain__){var X=this.value();return u.apply(Ht(X)?X:[],$)}return this[b](function(ie){return u.apply(Ht(ie)?ie:[],$)})}}),Si($t.prototype,function(s,u){var b=z[u];if(b){var O=b.name+"";kt.call(Vs,O)||(Vs[O]=[]),Vs[O].push({name:u,func:b})}}),Vs[we(n,_).name]=[{name:"wrapper",func:n}],$t.prototype.clone=Ml,$t.prototype.reverse=Ja,$t.prototype.value=Ll,z.prototype.at=HO,z.prototype.chain=UO,z.prototype.commit=WO,z.prototype.next=zO,z.prototype.plant=GO,z.prototype.reverse=qO,z.prototype.toJSON=z.prototype.valueOf=z.prototype.value=XO,z.prototype.first=z.prototype.head,Xi&&(z.prototype[Xi]=YO),z},Ce=Se();yi?((yi.exports=Ce)._=Ce,Mo._=Ce):ln._=Ce}).call(Ei)})(mp,mp.exports);var ND=mp.exports;const i6=Pc(ND);function m1(t){return typeof t=="number"&&isFinite(t)&&Math.floor(t)===t}function o6(t){var e=t.lastRenderedStartIndex,n=t.lastRenderedStopIndex,r=t.startIndex,i=t.stopIndex;return!(r>n||i<e)}function s6(t){for(var e=t.isItemLoaded,n=t.itemCount,r=t.minimumBatchSize,i=t.startIndex,o=t.stopIndex,a=[],c=null,f=null,p=i;p<=o;p++){var w=e(p);w?f!==null&&(a.push(c,f),c=f=null):(f=p,c===null&&(c=p))}if(f!==null){for(var g=Math.min(Math.max(f,c+r-1),n-1),T=f+1;T<=g&&!e(T);T++)f=T;a.push(c,f)}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 a6=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")},l6=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}}(),u6=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)},v1=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){u6(e,t);function e(){var n,r,i,o;a6(this,e);for(var a=arguments.length,c=Array(a),f=0;f<a;f++)c[f]=arguments[f];return o=(r=(i=v1(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,g=p.visibleStopIndex;process.env.NODE_ENV!=="production"&&((!m1(w)||!m1(g))&&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=g,i._ensureRowsLoaded(w,g)},i._setRef=function(p){i._listRef=p},r),v1(i,o)}return l6(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,f=o.minimumBatchSize,p=f===void 0?10:f,w=o.threshold,g=w===void 0?15:w,T=s6({isItemLoaded:a,itemCount:c,minimumBatchSize:p,startIndex:Math.max(0,r-g),stopIndex:Math.min(c-1,i+g)});(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],g=r[p+1],T=o(w,g);T!=null&&T.then(function(){if(o6({lastRenderedStartIndex:i._lastRenderedStartIndex,lastRenderedStopIndex:i._lastRenderedStopIndex,startIndex:w,stopIndex:g})){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}(q.PureComponent),jD={exports:{}};/*!
163
+ * jQuery JavaScript Library v3.7.1
164
+ * https://jquery.com/
165
+ *
166
+ * Copyright OpenJS Foundation and other contributors
167
+ * Released under the MIT license
168
+ * https://jquery.org/license
169
+ *
170
+ * Date: 2023-08-28T13:37Z
171
+ */(function(t){(function(e,n){t.exports=e.document?n(e,!0):function(r){if(!r.document)throw new Error("jQuery requires a window with a document");return n(r)}})(typeof window<"u"?window:Ei,function(e,n){var r=[],i=Object.getPrototypeOf,o=r.slice,a=r.flat?function(h){return r.flat.call(h)}:function(h){return r.concat.apply([],h)},c=r.push,f=r.indexOf,p={},w=p.toString,g=p.hasOwnProperty,T=g.toString,E=T.call(Object),A={},I=function(y){return typeof y=="function"&&typeof y.nodeType!="number"&&typeof y.item!="function"},j=function(y){return y!=null&&y===y.window},_=e.document,H={type:!0,src:!0,nonce:!0,noModule:!0};function W(h,y,C){C=C||_;var P,L,N=C.createElement("script");if(N.text=h,y)for(P in H)L=y[P]||y.getAttribute&&y.getAttribute(P),L&&N.setAttribute(P,L);C.head.appendChild(N).parentNode.removeChild(N)}function re(h){return h==null?h+"":typeof h=="object"||typeof h=="function"?p[w.call(h)]||"object":typeof h}var Z="3.7.1",de=/HTML$/i,S=function(h,y){return new S.fn.init(h,y)};S.fn=S.prototype={jquery:Z,constructor:S,length:0,toArray:function(){return o.call(this)},get:function(h){return h==null?o.call(this):h<0?this[h+this.length]:this[h]},pushStack:function(h){var y=S.merge(this.constructor(),h);return y.prevObject=this,y},each:function(h){return S.each(this,h)},map:function(h){return this.pushStack(S.map(this,function(y,C){return h.call(y,C,y)}))},slice:function(){return this.pushStack(o.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(S.grep(this,function(h,y){return(y+1)%2}))},odd:function(){return this.pushStack(S.grep(this,function(h,y){return y%2}))},eq:function(h){var y=this.length,C=+h+(h<0?y:0);return this.pushStack(C>=0&&C<y?[this[C]]:[])},end:function(){return this.prevObject||this.constructor()},push:c,sort:r.sort,splice:r.splice},S.extend=S.fn.extend=function(){var h,y,C,P,L,N,V=arguments[0]||{},oe=1,te=arguments.length,pe=!1;for(typeof V=="boolean"&&(pe=V,V=arguments[oe]||{},oe++),typeof V!="object"&&!I(V)&&(V={}),oe===te&&(V=this,oe--);oe<te;oe++)if((h=arguments[oe])!=null)for(y in h)P=h[y],!(y==="__proto__"||V===P)&&(pe&&P&&(S.isPlainObject(P)||(L=Array.isArray(P)))?(C=V[y],L&&!Array.isArray(C)?N=[]:!L&&!S.isPlainObject(C)?N={}:N=C,L=!1,V[y]=S.extend(pe,N,P)):P!==void 0&&(V[y]=P));return V},S.extend({expando:"jQuery"+(Z+Math.random()).replace(/\D/g,""),isReady:!0,error:function(h){throw new Error(h)},noop:function(){},isPlainObject:function(h){var y,C;return!h||w.call(h)!=="[object Object]"?!1:(y=i(h),y?(C=g.call(y,"constructor")&&y.constructor,typeof C=="function"&&T.call(C)===E):!0)},isEmptyObject:function(h){var y;for(y in h)return!1;return!0},globalEval:function(h,y,C){W(h,{nonce:y&&y.nonce},C)},each:function(h,y){var C,P=0;if(le(h))for(C=h.length;P<C&&y.call(h[P],P,h[P])!==!1;P++);else for(P in h)if(y.call(h[P],P,h[P])===!1)break;return h},text:function(h){var y,C="",P=0,L=h.nodeType;if(!L)for(;y=h[P++];)C+=S.text(y);return L===1||L===11?h.textContent:L===9?h.documentElement.textContent:L===3||L===4?h.nodeValue:C},makeArray:function(h,y){var C=y||[];return h!=null&&(le(Object(h))?S.merge(C,typeof h=="string"?[h]:h):c.call(C,h)),C},inArray:function(h,y,C){return y==null?-1:f.call(y,h,C)},isXMLDoc:function(h){var y=h&&h.namespaceURI,C=h&&(h.ownerDocument||h).documentElement;return!de.test(y||C&&C.nodeName||"HTML")},merge:function(h,y){for(var C=+y.length,P=0,L=h.length;P<C;P++)h[L++]=y[P];return h.length=L,h},grep:function(h,y,C){for(var P,L=[],N=0,V=h.length,oe=!C;N<V;N++)P=!y(h[N],N),P!==oe&&L.push(h[N]);return L},map:function(h,y,C){var P,L,N=0,V=[];if(le(h))for(P=h.length;N<P;N++)L=y(h[N],N,C),L!=null&&V.push(L);else for(N in h)L=y(h[N],N,C),L!=null&&V.push(L);return a(V)},guid:1,support:A}),typeof Symbol=="function"&&(S.fn[Symbol.iterator]=r[Symbol.iterator]),S.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(h,y){p["[object "+y+"]"]=y.toLowerCase()});function le(h){var y=!!h&&"length"in h&&h.length,C=re(h);return I(h)||j(h)?!1:C==="array"||y===0||typeof y=="number"&&y>0&&y-1 in h}function ue(h,y){return h.nodeName&&h.nodeName.toLowerCase()===y.toLowerCase()}var ze=r.pop,Me=r.sort,Fe=r.splice,Ve="[\\x20\\t\\r\\n\\f]",Ue=new RegExp("^"+Ve+"+|((?:^|[^\\\\])(?:\\\\.)*)"+Ve+"+$","g");S.contains=function(h,y){var C=y&&y.parentNode;return h===C||!!(C&&C.nodeType===1&&(h.contains?h.contains(C):h.compareDocumentPosition&&h.compareDocumentPosition(C)&16))};var he=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\x80-\uFFFF\w-]/g;function ke(h,y){return y?h==="\0"?"�":h.slice(0,-1)+"\\"+h.charCodeAt(h.length-1).toString(16)+" ":"\\"+h}S.escapeSelector=function(h){return(h+"").replace(he,ke)};var Oe=_,Ne=c;(function(){var h,y,C,P,L,N=Ne,V,oe,te,pe,De,_e=S.expando,xe=0,Be=0,ot=An(),Tt=An(),Et=An(),Rn=An(),un=function(J,ce){return J===ce&&(L=!0),0},Lr="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",Fr="(?:\\\\[\\da-fA-F]{1,6}"+Ve+"?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",Lt="\\["+Ve+"*("+Fr+")(?:"+Ve+"*([*^$|!~]?=)"+Ve+`*(?:'((?:\\\\.|[^\\\\'])*)'|"((?:\\\\.|[^\\\\"])*)"|(`+Fr+"))|)"+Ve+"*\\]",Nr=":("+Fr+`)(?:\\((('((?:\\\\.|[^\\\\'])*)'|"((?:\\\\.|[^\\\\"])*)")|((?:\\\\.|[^\\\\()[\\]]|`+Lt+")*)|.*)\\)|)",jt=new RegExp(Ve+"+","g"),Qt=new RegExp("^"+Ve+"*,"+Ve+"*"),ho=new RegExp("^"+Ve+"*([>+~]|"+Ve+")"+Ve+"*"),po=new RegExp(Ve+"|>"),Sr=new RegExp(Nr),D=new RegExp("^"+Fr+"$"),M={ID:new RegExp("^#("+Fr+")"),CLASS:new RegExp("^\\.("+Fr+")"),TAG:new RegExp("^("+Fr+"|[*])"),ATTR:new RegExp("^"+Lt),PSEUDO:new RegExp("^"+Nr),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+Ve+"*(even|odd|(([+-]|)(\\d*)n|)"+Ve+"*(?:([+-]|)"+Ve+"*(\\d+)|))"+Ve+"*\\)|)","i"),bool:new RegExp("^(?:"+Lr+")$","i"),needsContext:new RegExp("^"+Ve+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+Ve+"*((?:-\\d)?\\d*)"+Ve+"*\\)|)(?=[^-]|$)","i")},U=/^(?:input|select|textarea|button)$/i,Q=/^h\d$/i,ye=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,be=/[+~]/,Ae=new RegExp("\\\\[\\da-fA-F]{1,6}"+Ve+"?|\\\\([^\\r\\n\\f])","g"),Ge=function(J,ce){var Se="0x"+J.slice(1)-65536;return ce||(Se<0?String.fromCharCode(Se+65536):String.fromCharCode(Se>>10|55296,Se&1023|56320))},dt=function(){Ai()},_t=mo(function(J){return J.disabled===!0&&ue(J,"fieldset")},{dir:"parentNode",next:"legend"});function St(){try{return V.activeElement}catch{}}try{N.apply(r=o.call(Oe.childNodes),Oe.childNodes),r[Oe.childNodes.length].nodeType}catch{N={apply:function(ce,Se){Ne.apply(ce,o.call(Se))},call:function(ce){Ne.apply(ce,o.call(arguments,1))}}}function vt(J,ce,Se,Ce){var K,ae,se,Re,Le,st,lt,rt=ce&&ce.ownerDocument,It=ce?ce.nodeType:9;if(Se=Se||[],typeof J!="string"||!J||It!==1&&It!==9&&It!==11)return Se;if(!Ce&&(Ai(ce),ce=ce||V,te)){if(It!==11&&(Le=ye.exec(J)))if(K=Le[1]){if(It===9)if(se=ce.getElementById(K)){if(se.id===K)return N.call(Se,se),Se}else return Se;else if(rt&&(se=rt.getElementById(K))&&vt.contains(ce,se)&&se.id===K)return N.call(Se,se),Se}else{if(Le[2])return N.apply(Se,ce.getElementsByTagName(J)),Se;if((K=Le[3])&&ce.getElementsByClassName)return N.apply(Se,ce.getElementsByClassName(K)),Se}if(!Rn[J+" "]&&(!pe||!pe.test(J))){if(lt=J,rt=ce,It===1&&(po.test(J)||ho.test(J))){for(rt=be.test(J)&&Wa(ce.parentNode)||ce,(rt!=ce||!A.scope)&&((Re=ce.getAttribute("id"))?Re=S.escapeSelector(Re):ce.setAttribute("id",Re=_e)),st=ss(J),ae=st.length;ae--;)st[ae]=(Re?"#"+Re:":scope")+" "+ei(st[ae]);lt=st.join(",")}try{return N.apply(Se,rt.querySelectorAll(lt)),Se}catch{Rn(J,!0)}finally{Re===_e&&ce.removeAttribute("id")}}}return js(J.replace(Ue,"$1"),ce,Se,Ce)}function An(){var J=[];function ce(Se,Ce){return J.push(Se+" ")>y.cacheLength&&delete ce[J.shift()],ce[Se+" "]=Ce}return ce}function bn(J){return J[_e]=!0,J}function $n(J){var ce=V.createElement("fieldset");try{return!!J(ce)}catch{return!1}finally{ce.parentNode&&ce.parentNode.removeChild(ce),ce=null}}function os(J){return function(ce){return ue(ce,"input")&&ce.type===J}}function ua(J){return function(ce){return(ue(ce,"input")||ue(ce,"button"))&&ce.type===J}}function go(J){return function(ce){return"form"in ce?ce.parentNode&&ce.disabled===!1?"label"in ce?"label"in ce.parentNode?ce.parentNode.disabled===J:ce.disabled===J:ce.isDisabled===J||ce.isDisabled!==!J&&_t(ce)===J:ce.disabled===J:"label"in ce?ce.disabled===J:!1}}function Qr(J){return bn(function(ce){return ce=+ce,bn(function(Se,Ce){for(var K,ae=J([],Se.length,ce),se=ae.length;se--;)Se[K=ae[se]]&&(Se[K]=!(Ce[K]=Se[K]))})})}function Wa(J){return J&&typeof J.getElementsByTagName<"u"&&J}function Ai(J){var ce,Se=J?J.ownerDocument||J:Oe;return Se==V||Se.nodeType!==9||!Se.documentElement||(V=Se,oe=V.documentElement,te=!S.isXMLDoc(V),De=oe.matches||oe.webkitMatchesSelector||oe.msMatchesSelector,oe.msMatchesSelector&&Oe!=V&&(ce=V.defaultView)&&ce.top!==ce&&ce.addEventListener("unload",dt),A.getById=$n(function(Ce){return oe.appendChild(Ce).id=S.expando,!V.getElementsByName||!V.getElementsByName(S.expando).length}),A.disconnectedMatch=$n(function(Ce){return De.call(Ce,"*")}),A.scope=$n(function(){return V.querySelectorAll(":scope")}),A.cssHas=$n(function(){try{return V.querySelector(":has(*,:jqfake)"),!1}catch{return!0}}),A.getById?(y.filter.ID=function(Ce){var K=Ce.replace(Ae,Ge);return function(ae){return ae.getAttribute("id")===K}},y.find.ID=function(Ce,K){if(typeof K.getElementById<"u"&&te){var ae=K.getElementById(Ce);return ae?[ae]:[]}}):(y.filter.ID=function(Ce){var K=Ce.replace(Ae,Ge);return function(ae){var se=typeof ae.getAttributeNode<"u"&&ae.getAttributeNode("id");return se&&se.value===K}},y.find.ID=function(Ce,K){if(typeof K.getElementById<"u"&&te){var ae,se,Re,Le=K.getElementById(Ce);if(Le){if(ae=Le.getAttributeNode("id"),ae&&ae.value===Ce)return[Le];for(Re=K.getElementsByName(Ce),se=0;Le=Re[se++];)if(ae=Le.getAttributeNode("id"),ae&&ae.value===Ce)return[Le]}return[]}}),y.find.TAG=function(Ce,K){return typeof K.getElementsByTagName<"u"?K.getElementsByTagName(Ce):K.querySelectorAll(Ce)},y.find.CLASS=function(Ce,K){if(typeof K.getElementsByClassName<"u"&&te)return K.getElementsByClassName(Ce)},pe=[],$n(function(Ce){var K;oe.appendChild(Ce).innerHTML="<a id='"+_e+"' href='' disabled='disabled'></a><select id='"+_e+"-\r\\' disabled='disabled'><option selected=''></option></select>",Ce.querySelectorAll("[selected]").length||pe.push("\\["+Ve+"*(?:value|"+Lr+")"),Ce.querySelectorAll("[id~="+_e+"-]").length||pe.push("~="),Ce.querySelectorAll("a#"+_e+"+*").length||pe.push(".#.+[+~]"),Ce.querySelectorAll(":checked").length||pe.push(":checked"),K=V.createElement("input"),K.setAttribute("type","hidden"),Ce.appendChild(K).setAttribute("name","D"),oe.appendChild(Ce).disabled=!0,Ce.querySelectorAll(":disabled").length!==2&&pe.push(":enabled",":disabled"),K=V.createElement("input"),K.setAttribute("name",""),Ce.appendChild(K),Ce.querySelectorAll("[name='']").length||pe.push("\\["+Ve+"*name"+Ve+"*="+Ve+`*(?:''|"")`)}),A.cssHas||pe.push(":has"),pe=pe.length&&new RegExp(pe.join("|")),un=function(Ce,K){if(Ce===K)return L=!0,0;var ae=!Ce.compareDocumentPosition-!K.compareDocumentPosition;return ae||(ae=(Ce.ownerDocument||Ce)==(K.ownerDocument||K)?Ce.compareDocumentPosition(K):1,ae&1||!A.sortDetached&&K.compareDocumentPosition(Ce)===ae?Ce===V||Ce.ownerDocument==Oe&&vt.contains(Oe,Ce)?-1:K===V||K.ownerDocument==Oe&&vt.contains(Oe,K)?1:P?f.call(P,Ce)-f.call(P,K):0:ae&4?-1:1)}),V}vt.matches=function(J,ce){return vt(J,null,null,ce)},vt.matchesSelector=function(J,ce){if(Ai(J),te&&!Rn[ce+" "]&&(!pe||!pe.test(ce)))try{var Se=De.call(J,ce);if(Se||A.disconnectedMatch||J.document&&J.document.nodeType!==11)return Se}catch{Rn(ce,!0)}return vt(ce,V,null,[J]).length>0},vt.contains=function(J,ce){return(J.ownerDocument||J)!=V&&Ai(J),S.contains(J,ce)},vt.attr=function(J,ce){(J.ownerDocument||J)!=V&&Ai(J);var Se=y.attrHandle[ce.toLowerCase()],Ce=Se&&g.call(y.attrHandle,ce.toLowerCase())?Se(J,ce,!te):void 0;return Ce!==void 0?Ce:J.getAttribute(ce)},vt.error=function(J){throw new Error("Syntax error, unrecognized expression: "+J)},S.uniqueSort=function(J){var ce,Se=[],Ce=0,K=0;if(L=!A.sortStable,P=!A.sortStable&&o.call(J,0),Me.call(J,un),L){for(;ce=J[K++];)ce===J[K]&&(Ce=Se.push(K));for(;Ce--;)Fe.call(J,Se[Ce],1)}return P=null,J},S.fn.uniqueSort=function(){return this.pushStack(S.uniqueSort(o.apply(this)))},y=S.expr={cacheLength:50,createPseudo:bn,match:M,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(J){return J[1]=J[1].replace(Ae,Ge),J[3]=(J[3]||J[4]||J[5]||"").replace(Ae,Ge),J[2]==="~="&&(J[3]=" "+J[3]+" "),J.slice(0,4)},CHILD:function(J){return J[1]=J[1].toLowerCase(),J[1].slice(0,3)==="nth"?(J[3]||vt.error(J[0]),J[4]=+(J[4]?J[5]+(J[6]||1):2*(J[3]==="even"||J[3]==="odd")),J[5]=+(J[7]+J[8]||J[3]==="odd")):J[3]&&vt.error(J[0]),J},PSEUDO:function(J){var ce,Se=!J[6]&&J[2];return M.CHILD.test(J[0])?null:(J[3]?J[2]=J[4]||J[5]||"":Se&&Sr.test(Se)&&(ce=ss(Se,!0))&&(ce=Se.indexOf(")",Se.length-ce)-Se.length)&&(J[0]=J[0].slice(0,ce),J[2]=Se.slice(0,ce)),J.slice(0,3))}},filter:{TAG:function(J){var ce=J.replace(Ae,Ge).toLowerCase();return J==="*"?function(){return!0}:function(Se){return ue(Se,ce)}},CLASS:function(J){var ce=ot[J+" "];return ce||(ce=new RegExp("(^|"+Ve+")"+J+"("+Ve+"|$)"))&&ot(J,function(Se){return ce.test(typeof Se.className=="string"&&Se.className||typeof Se.getAttribute<"u"&&Se.getAttribute("class")||"")})},ATTR:function(J,ce,Se){return function(Ce){var K=vt.attr(Ce,J);return K==null?ce==="!=":ce?(K+="",ce==="="?K===Se:ce==="!="?K!==Se:ce==="^="?Se&&K.indexOf(Se)===0:ce==="*="?Se&&K.indexOf(Se)>-1:ce==="$="?Se&&K.slice(-Se.length)===Se:ce==="~="?(" "+K.replace(jt," ")+" ").indexOf(Se)>-1:ce==="|="?K===Se||K.slice(0,Se.length+1)===Se+"-":!1):!0}},CHILD:function(J,ce,Se,Ce,K){var ae=J.slice(0,3)!=="nth",se=J.slice(-4)!=="last",Re=ce==="of-type";return Ce===1&&K===0?function(Le){return!!Le.parentNode}:function(Le,st,lt){var rt,It,wt,Vt,Yn,nr=ae!==se?"nextSibling":"previousSibling",In=Le.parentNode,zt=Re&&Le.nodeName.toLowerCase(),jr=!lt&&!Re,kt=!1;if(In){if(ae){for(;nr;){for(wt=Le;wt=wt[nr];)if(Re?ue(wt,zt):wt.nodeType===1)return!1;Yn=nr=J==="only"&&!Yn&&"nextSibling"}return!0}if(Yn=[se?In.firstChild:In.lastChild],se&&jr){for(It=In[_e]||(In[_e]={}),rt=It[J]||[],Vt=rt[0]===xe&&rt[1],kt=Vt&&rt[2],wt=Vt&&In.childNodes[Vt];wt=++Vt&&wt&&wt[nr]||(kt=Vt=0)||Yn.pop();)if(wt.nodeType===1&&++kt&&wt===Le){It[J]=[xe,Vt,kt];break}}else if(jr&&(It=Le[_e]||(Le[_e]={}),rt=It[J]||[],Vt=rt[0]===xe&&rt[1],kt=Vt),kt===!1)for(;(wt=++Vt&&wt&&wt[nr]||(kt=Vt=0)||Yn.pop())&&!((Re?ue(wt,zt):wt.nodeType===1)&&++kt&&(jr&&(It=wt[_e]||(wt[_e]={}),It[J]=[xe,kt]),wt===Le)););return kt-=K,kt===Ce||kt%Ce===0&&kt/Ce>=0}}},PSEUDO:function(J,ce){var Se,Ce=y.pseudos[J]||y.setFilters[J.toLowerCase()]||vt.error("unsupported pseudo: "+J);return Ce[_e]?Ce(ce):Ce.length>1?(Se=[J,J,"",ce],y.setFilters.hasOwnProperty(J.toLowerCase())?bn(function(K,ae){for(var se,Re=Ce(K,ce),Le=Re.length;Le--;)se=f.call(K,Re[Le]),K[se]=!(ae[se]=Re[Le])}):function(K){return Ce(K,0,Se)}):Ce}},pseudos:{not:bn(function(J){var ce=[],Se=[],Ce=da(J.replace(Ue,"$1"));return Ce[_e]?bn(function(K,ae,se,Re){for(var Le,st=Ce(K,null,Re,[]),lt=K.length;lt--;)(Le=st[lt])&&(K[lt]=!(ae[lt]=Le))}):function(K,ae,se){return ce[0]=K,Ce(ce,null,se,Se),ce[0]=null,!Se.pop()}}),has:bn(function(J){return function(ce){return vt(J,ce).length>0}}),contains:bn(function(J){return J=J.replace(Ae,Ge),function(ce){return(ce.textContent||S.text(ce)).indexOf(J)>-1}}),lang:bn(function(J){return D.test(J||"")||vt.error("unsupported lang: "+J),J=J.replace(Ae,Ge).toLowerCase(),function(ce){var Se;do if(Se=te?ce.lang:ce.getAttribute("xml:lang")||ce.getAttribute("lang"))return Se=Se.toLowerCase(),Se===J||Se.indexOf(J+"-")===0;while((ce=ce.parentNode)&&ce.nodeType===1);return!1}}),target:function(J){var ce=e.location&&e.location.hash;return ce&&ce.slice(1)===J.id},root:function(J){return J===oe},focus:function(J){return J===St()&&V.hasFocus()&&!!(J.type||J.href||~J.tabIndex)},enabled:go(!1),disabled:go(!0),checked:function(J){return ue(J,"input")&&!!J.checked||ue(J,"option")&&!!J.selected},selected:function(J){return J.parentNode&&J.parentNode.selectedIndex,J.selected===!0},empty:function(J){for(J=J.firstChild;J;J=J.nextSibling)if(J.nodeType<6)return!1;return!0},parent:function(J){return!y.pseudos.empty(J)},header:function(J){return Q.test(J.nodeName)},input:function(J){return U.test(J.nodeName)},button:function(J){return ue(J,"input")&&J.type==="button"||ue(J,"button")},text:function(J){var ce;return ue(J,"input")&&J.type==="text"&&((ce=J.getAttribute("type"))==null||ce.toLowerCase()==="text")},first:Qr(function(){return[0]}),last:Qr(function(J,ce){return[ce-1]}),eq:Qr(function(J,ce,Se){return[Se<0?Se+ce:Se]}),even:Qr(function(J,ce){for(var Se=0;Se<ce;Se+=2)J.push(Se);return J}),odd:Qr(function(J,ce){for(var Se=1;Se<ce;Se+=2)J.push(Se);return J}),lt:Qr(function(J,ce,Se){var Ce;for(Se<0?Ce=Se+ce:Se>ce?Ce=ce:Ce=Se;--Ce>=0;)J.push(Ce);return J}),gt:Qr(function(J,ce,Se){for(var Ce=Se<0?Se+ce:Se;++Ce<ce;)J.push(Ce);return J})}},y.pseudos.nth=y.pseudos.eq;for(h in{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})y.pseudos[h]=os(h);for(h in{submit:!0,reset:!0})y.pseudos[h]=ua(h);function ca(){}ca.prototype=y.filters=y.pseudos,y.setFilters=new ca;function ss(J,ce){var Se,Ce,K,ae,se,Re,Le,st=Tt[J+" "];if(st)return ce?0:st.slice(0);for(se=J,Re=[],Le=y.preFilter;se;){(!Se||(Ce=Qt.exec(se)))&&(Ce&&(se=se.slice(Ce[0].length)||se),Re.push(K=[])),Se=!1,(Ce=ho.exec(se))&&(Se=Ce.shift(),K.push({value:Se,type:Ce[0].replace(Ue," ")}),se=se.slice(Se.length));for(ae in y.filter)(Ce=M[ae].exec(se))&&(!Le[ae]||(Ce=Le[ae](Ce)))&&(Se=Ce.shift(),K.push({value:Se,type:ae,matches:Ce}),se=se.slice(Se.length));if(!Se)break}return ce?se.length:se?vt.error(J):Tt(J,Re).slice(0)}function ei(J){for(var ce=0,Se=J.length,Ce="";ce<Se;ce++)Ce+=J[ce].value;return Ce}function mo(J,ce,Se){var Ce=ce.dir,K=ce.next,ae=K||Ce,se=Se&&ae==="parentNode",Re=Be++;return ce.first?function(Le,st,lt){for(;Le=Le[Ce];)if(Le.nodeType===1||se)return J(Le,st,lt);return!1}:function(Le,st,lt){var rt,It,wt=[xe,Re];if(lt){for(;Le=Le[Ce];)if((Le.nodeType===1||se)&&J(Le,st,lt))return!0}else for(;Le=Le[Ce];)if(Le.nodeType===1||se)if(It=Le[_e]||(Le[_e]={}),K&&ue(Le,K))Le=Le[Ce]||Le;else{if((rt=It[ae])&&rt[0]===xe&&rt[1]===Re)return wt[2]=rt[2];if(It[ae]=wt,wt[2]=J(Le,st,lt))return!0}return!1}}function za(J){return J.length>1?function(ce,Se,Ce){for(var K=J.length;K--;)if(!J[K](ce,Se,Ce))return!1;return!0}:J[0]}function ku(J,ce,Se){for(var Ce=0,K=ce.length;Ce<K;Ce++)vt(J,ce[Ce],Se);return Se}function fa(J,ce,Se,Ce,K){for(var ae,se=[],Re=0,Le=J.length,st=ce!=null;Re<Le;Re++)(ae=J[Re])&&(!Se||Se(ae,Ce,K))&&(se.push(ae),st&&ce.push(Re));return se}function vo(J,ce,Se,Ce,K,ae){return Ce&&!Ce[_e]&&(Ce=vo(Ce)),K&&!K[_e]&&(K=vo(K,ae)),bn(function(se,Re,Le,st){var lt,rt,It,wt,Vt=[],Yn=[],nr=Re.length,In=se||ku(ce||"*",Le.nodeType?[Le]:Le,[]),zt=J&&(se||!ce)?fa(In,Vt,J,Le,st):In;if(Se?(wt=K||(se?J:nr||Ce)?[]:Re,Se(zt,wt,Le,st)):wt=zt,Ce)for(lt=fa(wt,Yn),Ce(lt,[],Le,st),rt=lt.length;rt--;)(It=lt[rt])&&(wt[Yn[rt]]=!(zt[Yn[rt]]=It));if(se){if(K||J){if(K){for(lt=[],rt=wt.length;rt--;)(It=wt[rt])&&lt.push(zt[rt]=It);K(null,wt=[],lt,st)}for(rt=wt.length;rt--;)(It=wt[rt])&&(lt=K?f.call(se,It):Vt[rt])>-1&&(se[lt]=!(Re[lt]=It))}}else wt=fa(wt===Re?wt.splice(nr,wt.length):wt),K?K(null,Re,wt,st):N.apply(Re,wt)})}function cn(J){for(var ce,Se,Ce,K=J.length,ae=y.relative[J[0].type],se=ae||y.relative[" "],Re=ae?1:0,Le=mo(function(rt){return rt===ce},se,!0),st=mo(function(rt){return f.call(ce,rt)>-1},se,!0),lt=[function(rt,It,wt){var Vt=!ae&&(wt||It!=C)||((ce=It).nodeType?Le(rt,It,wt):st(rt,It,wt));return ce=null,Vt}];Re<K;Re++)if(Se=y.relative[J[Re].type])lt=[mo(za(lt),Se)];else{if(Se=y.filter[J[Re].type].apply(null,J[Re].matches),Se[_e]){for(Ce=++Re;Ce<K&&!y.relative[J[Ce].type];Ce++);return vo(Re>1&&za(lt),Re>1&&ei(J.slice(0,Re-1).concat({value:J[Re-2].type===" "?"*":""})).replace(Ue,"$1"),Se,Re<Ce&&cn(J.slice(Re,Ce)),Ce<K&&cn(J=J.slice(Ce)),Ce<K&&ei(J))}lt.push(Se)}return za(lt)}function Ol(J,ce){var Se=ce.length>0,Ce=J.length>0,K=function(ae,se,Re,Le,st){var lt,rt,It,wt=0,Vt="0",Yn=ae&&[],nr=[],In=C,zt=ae||Ce&&y.find.TAG("*",st),jr=xe+=In==null?1:Math.random()||.1,kt=zt.length;for(st&&(C=se==V||se||st);Vt!==kt&&(lt=zt[Vt])!=null;Vt++){if(Ce&&lt){for(rt=0,!se&&lt.ownerDocument!=V&&(Ai(lt),Re=!te);It=J[rt++];)if(It(lt,se||V,Re)){N.call(Le,lt);break}st&&(xe=jr)}Se&&((lt=!It&&lt)&&wt--,ae&&Yn.push(lt))}if(wt+=Vt,Se&&Vt!==wt){for(rt=0;It=ce[rt++];)It(Yn,nr,se,Re);if(ae){if(wt>0)for(;Vt--;)Yn[Vt]||nr[Vt]||(nr[Vt]=ze.call(Le));nr=fa(nr)}N.apply(Le,nr),st&&!ae&&nr.length>0&&wt+ce.length>1&&S.uniqueSort(Le)}return st&&(xe=jr,C=In),Yn};return Se?bn(K):K}function da(J,ce){var Se,Ce=[],K=[],ae=Et[J+" "];if(!ae){for(ce||(ce=ss(J)),Se=ce.length;Se--;)ae=cn(ce[Se]),ae[_e]?Ce.push(ae):K.push(ae);ae=Et(J,Ol(K,Ce)),ae.selector=J}return ae}function js(J,ce,Se,Ce){var K,ae,se,Re,Le,st=typeof J=="function"&&J,lt=!Ce&&ss(J=st.selector||J);if(Se=Se||[],lt.length===1){if(ae=lt[0]=lt[0].slice(0),ae.length>2&&(se=ae[0]).type==="ID"&&ce.nodeType===9&&te&&y.relative[ae[1].type]){if(ce=(y.find.ID(se.matches[0].replace(Ae,Ge),ce)||[])[0],ce)st&&(ce=ce.parentNode);else return Se;J=J.slice(ae.shift().value.length)}for(K=M.needsContext.test(J)?0:ae.length;K--&&(se=ae[K],!y.relative[Re=se.type]);)if((Le=y.find[Re])&&(Ce=Le(se.matches[0].replace(Ae,Ge),be.test(ae[0].type)&&Wa(ce.parentNode)||ce))){if(ae.splice(K,1),J=Ce.length&&ei(ae),!J)return N.apply(Se,Ce),Se;break}}return(st||da(J,lt))(Ce,ce,!te,Se,!ce||be.test(J)&&Wa(ce.parentNode)||ce),Se}A.sortStable=_e.split("").sort(un).join("")===_e,Ai(),A.sortDetached=$n(function(J){return J.compareDocumentPosition(V.createElement("fieldset"))&1}),S.find=vt,S.expr[":"]=S.expr.pseudos,S.unique=S.uniqueSort,vt.compile=da,vt.select=js,vt.setDocument=Ai,vt.tokenize=ss,vt.escape=S.escapeSelector,vt.getText=S.text,vt.isXML=S.isXMLDoc,vt.selectors=S.expr,vt.support=S.support,vt.uniqueSort=S.uniqueSort})();var tt=function(h,y,C){for(var P=[],L=C!==void 0;(h=h[y])&&h.nodeType!==9;)if(h.nodeType===1){if(L&&S(h).is(C))break;P.push(h)}return P},me=function(h,y){for(var C=[];h;h=h.nextSibling)h.nodeType===1&&h!==y&&C.push(h);return C},Ee=S.expr.match.needsContext,Ye=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function We(h,y,C){return I(y)?S.grep(h,function(P,L){return!!y.call(P,L,P)!==C}):y.nodeType?S.grep(h,function(P){return P===y!==C}):typeof y!="string"?S.grep(h,function(P){return f.call(y,P)>-1!==C}):S.filter(y,h,C)}S.filter=function(h,y,C){var P=y[0];return C&&(h=":not("+h+")"),y.length===1&&P.nodeType===1?S.find.matchesSelector(P,h)?[P]:[]:S.find.matches(h,S.grep(y,function(L){return L.nodeType===1}))},S.fn.extend({find:function(h){var y,C,P=this.length,L=this;if(typeof h!="string")return this.pushStack(S(h).filter(function(){for(y=0;y<P;y++)if(S.contains(L[y],this))return!0}));for(C=this.pushStack([]),y=0;y<P;y++)S.find(h,L[y],C);return P>1?S.uniqueSort(C):C},filter:function(h){return this.pushStack(We(this,h||[],!1))},not:function(h){return this.pushStack(We(this,h||[],!0))},is:function(h){return!!We(this,typeof h=="string"&&Ee.test(h)?S(h):h||[],!1).length}});var Je,Ze=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/,Qe=S.fn.init=function(h,y,C){var P,L;if(!h)return this;if(C=C||Je,typeof h=="string")if(h[0]==="<"&&h[h.length-1]===">"&&h.length>=3?P=[null,h,null]:P=Ze.exec(h),P&&(P[1]||!y))if(P[1]){if(y=y instanceof S?y[0]:y,S.merge(this,S.parseHTML(P[1],y&&y.nodeType?y.ownerDocument||y:_,!0)),Ye.test(P[1])&&S.isPlainObject(y))for(P in y)I(this[P])?this[P](y[P]):this.attr(P,y[P]);return this}else return L=_.getElementById(P[2]),L&&(this[0]=L,this.length=1),this;else return!y||y.jquery?(y||C).find(h):this.constructor(y).find(h);else{if(h.nodeType)return this[0]=h,this.length=1,this;if(I(h))return C.ready!==void 0?C.ready(h):h(S)}return S.makeArray(h,this)};Qe.prototype=S.fn,Je=S(_);var it=/^(?:parents|prev(?:Until|All))/,ht={children:!0,contents:!0,next:!0,prev:!0};S.fn.extend({has:function(h){var y=S(h,this),C=y.length;return this.filter(function(){for(var P=0;P<C;P++)if(S.contains(this,y[P]))return!0})},closest:function(h,y){var C,P=0,L=this.length,N=[],V=typeof h!="string"&&S(h);if(!Ee.test(h)){for(;P<L;P++)for(C=this[P];C&&C!==y;C=C.parentNode)if(C.nodeType<11&&(V?V.index(C)>-1:C.nodeType===1&&S.find.matchesSelector(C,h))){N.push(C);break}}return this.pushStack(N.length>1?S.uniqueSort(N):N)},index:function(h){return h?typeof h=="string"?f.call(S(h),this[0]):f.call(this,h.jquery?h[0]:h):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(h,y){return this.pushStack(S.uniqueSort(S.merge(this.get(),S(h,y))))},addBack:function(h){return this.add(h==null?this.prevObject:this.prevObject.filter(h))}});function gt(h,y){for(;(h=h[y])&&h.nodeType!==1;);return h}S.each({parent:function(h){var y=h.parentNode;return y&&y.nodeType!==11?y:null},parents:function(h){return tt(h,"parentNode")},parentsUntil:function(h,y,C){return tt(h,"parentNode",C)},next:function(h){return gt(h,"nextSibling")},prev:function(h){return gt(h,"previousSibling")},nextAll:function(h){return tt(h,"nextSibling")},prevAll:function(h){return tt(h,"previousSibling")},nextUntil:function(h,y,C){return tt(h,"nextSibling",C)},prevUntil:function(h,y,C){return tt(h,"previousSibling",C)},siblings:function(h){return me((h.parentNode||{}).firstChild,h)},children:function(h){return me(h.firstChild)},contents:function(h){return h.contentDocument!=null&&i(h.contentDocument)?h.contentDocument:(ue(h,"template")&&(h=h.content||h),S.merge([],h.childNodes))}},function(h,y){S.fn[h]=function(C,P){var L=S.map(this,y,C);return h.slice(-5)!=="Until"&&(P=C),P&&typeof P=="string"&&(L=S.filter(P,L)),this.length>1&&(ht[h]||S.uniqueSort(L),it.test(h)&&L.reverse()),this.pushStack(L)}});var ct=/[^\x20\t\r\n\f]+/g;function yt(h){var y={};return S.each(h.match(ct)||[],function(C,P){y[P]=!0}),y}S.Callbacks=function(h){h=typeof h=="string"?yt(h):S.extend({},h);var y,C,P,L,N=[],V=[],oe=-1,te=function(){for(L=L||h.once,P=y=!0;V.length;oe=-1)for(C=V.shift();++oe<N.length;)N[oe].apply(C[0],C[1])===!1&&h.stopOnFalse&&(oe=N.length,C=!1);h.memory||(C=!1),y=!1,L&&(C?N=[]:N="")},pe={add:function(){return N&&(C&&!y&&(oe=N.length-1,V.push(C)),function De(_e){S.each(_e,function(xe,Be){I(Be)?(!h.unique||!pe.has(Be))&&N.push(Be):Be&&Be.length&&re(Be)!=="string"&&De(Be)})}(arguments),C&&!y&&te()),this},remove:function(){return S.each(arguments,function(De,_e){for(var xe;(xe=S.inArray(_e,N,xe))>-1;)N.splice(xe,1),xe<=oe&&oe--}),this},has:function(De){return De?S.inArray(De,N)>-1:N.length>0},empty:function(){return N&&(N=[]),this},disable:function(){return L=V=[],N=C="",this},disabled:function(){return!N},lock:function(){return L=V=[],!C&&!y&&(N=C=""),this},locked:function(){return!!L},fireWith:function(De,_e){return L||(_e=_e||[],_e=[De,_e.slice?_e.slice():_e],V.push(_e),y||te()),this},fire:function(){return pe.fireWith(this,arguments),this},fired:function(){return!!P}};return pe};function et(h){return h}function At(h){throw h}function Mt(h,y,C,P){var L;try{h&&I(L=h.promise)?L.call(h).done(y).fail(C):h&&I(L=h.then)?L.call(h,y,C):y.apply(void 0,[h].slice(P))}catch(N){C.apply(void 0,[N])}}S.extend({Deferred:function(h){var y=[["notify","progress",S.Callbacks("memory"),S.Callbacks("memory"),2],["resolve","done",S.Callbacks("once memory"),S.Callbacks("once memory"),0,"resolved"],["reject","fail",S.Callbacks("once memory"),S.Callbacks("once memory"),1,"rejected"]],C="pending",P={state:function(){return C},always:function(){return L.done(arguments).fail(arguments),this},catch:function(N){return P.then(null,N)},pipe:function(){var N=arguments;return S.Deferred(function(V){S.each(y,function(oe,te){var pe=I(N[te[4]])&&N[te[4]];L[te[1]](function(){var De=pe&&pe.apply(this,arguments);De&&I(De.promise)?De.promise().progress(V.notify).done(V.resolve).fail(V.reject):V[te[0]+"With"](this,pe?[De]:arguments)})}),N=null}).promise()},then:function(N,V,oe){var te=0;function pe(De,_e,xe,Be){return function(){var ot=this,Tt=arguments,Et=function(){var un,Lr;if(!(De<te)){if(un=xe.apply(ot,Tt),un===_e.promise())throw new TypeError("Thenable self-resolution");Lr=un&&(typeof un=="object"||typeof un=="function")&&un.then,I(Lr)?Be?Lr.call(un,pe(te,_e,et,Be),pe(te,_e,At,Be)):(te++,Lr.call(un,pe(te,_e,et,Be),pe(te,_e,At,Be),pe(te,_e,et,_e.notifyWith))):(xe!==et&&(ot=void 0,Tt=[un]),(Be||_e.resolveWith)(ot,Tt))}},Rn=Be?Et:function(){try{Et()}catch(un){S.Deferred.exceptionHook&&S.Deferred.exceptionHook(un,Rn.error),De+1>=te&&(xe!==At&&(ot=void 0,Tt=[un]),_e.rejectWith(ot,Tt))}};De?Rn():(S.Deferred.getErrorHook?Rn.error=S.Deferred.getErrorHook():S.Deferred.getStackHook&&(Rn.error=S.Deferred.getStackHook()),e.setTimeout(Rn))}}return S.Deferred(function(De){y[0][3].add(pe(0,De,I(oe)?oe:et,De.notifyWith)),y[1][3].add(pe(0,De,I(N)?N:et)),y[2][3].add(pe(0,De,I(V)?V:At))}).promise()},promise:function(N){return N!=null?S.extend(N,P):P}},L={};return S.each(y,function(N,V){var oe=V[2],te=V[5];P[V[1]]=oe.add,te&&oe.add(function(){C=te},y[3-N][2].disable,y[3-N][3].disable,y[0][2].lock,y[0][3].lock),oe.add(V[3].fire),L[V[0]]=function(){return L[V[0]+"With"](this===L?void 0:this,arguments),this},L[V[0]+"With"]=oe.fireWith}),P.promise(L),h&&h.call(L,L),L},when:function(h){var y=arguments.length,C=y,P=Array(C),L=o.call(arguments),N=S.Deferred(),V=function(oe){return function(te){P[oe]=this,L[oe]=arguments.length>1?o.call(arguments):te,--y||N.resolveWith(P,L)}};if(y<=1&&(Mt(h,N.done(V(C)).resolve,N.reject,!y),N.state()==="pending"||I(L[C]&&L[C].then)))return N.then();for(;C--;)Mt(L[C],V(C),N.reject);return N.promise()}});var Vn=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;S.Deferred.exceptionHook=function(h,y){e.console&&e.console.warn&&h&&Vn.test(h.name)&&e.console.warn("jQuery.Deferred exception: "+h.message,h.stack,y)},S.readyException=function(h){e.setTimeout(function(){throw h})};var mr=S.Deferred();S.fn.ready=function(h){return mr.then(h).catch(function(y){S.readyException(y)}),this},S.extend({isReady:!1,readyWait:1,ready:function(h){(h===!0?--S.readyWait:S.isReady)||(S.isReady=!0,!(h!==!0&&--S.readyWait>0)&&mr.resolveWith(_,[S]))}}),S.ready.then=mr.then;function Hn(){_.removeEventListener("DOMContentLoaded",Hn),e.removeEventListener("load",Hn),S.ready()}_.readyState==="complete"||_.readyState!=="loading"&&!_.documentElement.doScroll?e.setTimeout(S.ready):(_.addEventListener("DOMContentLoaded",Hn),e.addEventListener("load",Hn));var Sn=function(h,y,C,P,L,N,V){var oe=0,te=h.length,pe=C==null;if(re(C)==="object"){L=!0;for(oe in C)Sn(h,y,oe,C[oe],!0,N,V)}else if(P!==void 0&&(L=!0,I(P)||(V=!0),pe&&(V?(y.call(h,P),y=null):(pe=y,y=function(De,_e,xe){return pe.call(S(De),xe)})),y))for(;oe<te;oe++)y(h[oe],C,V?P:P.call(h[oe],oe,y(h[oe],C)));return L?h:pe?y.call(h):te?y(h[0],C):N},$i=/^-ms-/,kr=/-([a-z])/g;function Jn(h,y){return y.toUpperCase()}function sn(h){return h.replace($i,"ms-").replace(kr,Jn)}var fn=function(h){return h.nodeType===1||h.nodeType===9||!+h.nodeType};function dn(){this.expando=S.expando+dn.uid++}dn.uid=1,dn.prototype={cache:function(h){var y=h[this.expando];return y||(y={},fn(h)&&(h.nodeType?h[this.expando]=y:Object.defineProperty(h,this.expando,{value:y,configurable:!0}))),y},set:function(h,y,C){var P,L=this.cache(h);if(typeof y=="string")L[sn(y)]=C;else for(P in y)L[sn(P)]=y[P];return L},get:function(h,y){return y===void 0?this.cache(h):h[this.expando]&&h[this.expando][sn(y)]},access:function(h,y,C){return y===void 0||y&&typeof y=="string"&&C===void 0?this.get(h,y):(this.set(h,y,C),C!==void 0?C:y)},remove:function(h,y){var C,P=h[this.expando];if(P!==void 0){if(y!==void 0)for(Array.isArray(y)?y=y.map(sn):(y=sn(y),y=y in P?[y]:y.match(ct)||[]),C=y.length;C--;)delete P[y[C]];(y===void 0||S.isEmptyObject(P))&&(h.nodeType?h[this.expando]=void 0:delete h[this.expando])}},hasData:function(h){var y=h[this.expando];return y!==void 0&&!S.isEmptyObject(y)}};var ut=new dn,Dn=new dn,oi=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,on=/[A-Z]/g;function Vi(h){return h==="true"?!0:h==="false"?!1:h==="null"?null:h===+h+""?+h:oi.test(h)?JSON.parse(h):h}function Hi(h,y,C){var P;if(C===void 0&&h.nodeType===1)if(P="data-"+y.replace(on,"-$&").toLowerCase(),C=h.getAttribute(P),typeof C=="string"){try{C=Vi(C)}catch{}Dn.set(h,y,C)}else C=void 0;return C}S.extend({hasData:function(h){return Dn.hasData(h)||ut.hasData(h)},data:function(h,y,C){return Dn.access(h,y,C)},removeData:function(h,y){Dn.remove(h,y)},_data:function(h,y,C){return ut.access(h,y,C)},_removeData:function(h,y){ut.remove(h,y)}}),S.fn.extend({data:function(h,y){var C,P,L,N=this[0],V=N&&N.attributes;if(h===void 0){if(this.length&&(L=Dn.get(N),N.nodeType===1&&!ut.get(N,"hasDataAttrs"))){for(C=V.length;C--;)V[C]&&(P=V[C].name,P.indexOf("data-")===0&&(P=sn(P.slice(5)),Hi(N,P,L[P])));ut.set(N,"hasDataAttrs",!0)}return L}return typeof h=="object"?this.each(function(){Dn.set(this,h)}):Sn(this,function(oe){var te;if(N&&oe===void 0)return te=Dn.get(N,h),te!==void 0||(te=Hi(N,h),te!==void 0)?te:void 0;this.each(function(){Dn.set(this,h,oe)})},null,y,arguments.length>1,null,!0)},removeData:function(h){return this.each(function(){Dn.remove(this,h)})}}),S.extend({queue:function(h,y,C){var P;if(h)return y=(y||"fx")+"queue",P=ut.get(h,y),C&&(!P||Array.isArray(C)?P=ut.access(h,y,S.makeArray(C)):P.push(C)),P||[]},dequeue:function(h,y){y=y||"fx";var C=S.queue(h,y),P=C.length,L=C.shift(),N=S._queueHooks(h,y),V=function(){S.dequeue(h,y)};L==="inprogress"&&(L=C.shift(),P--),L&&(y==="fx"&&C.unshift("inprogress"),delete N.stop,L.call(h,V,N)),!P&&N&&N.empty.fire()},_queueHooks:function(h,y){var C=y+"queueHooks";return ut.get(h,C)||ut.access(h,C,{empty:S.Callbacks("once memory").add(function(){ut.remove(h,[y+"queue",C])})})}}),S.fn.extend({queue:function(h,y){var C=2;return typeof h!="string"&&(y=h,h="fx",C--),arguments.length<C?S.queue(this[0],h):y===void 0?this:this.each(function(){var P=S.queue(this,h,y);S._queueHooks(this,h),h==="fx"&&P[0]!=="inprogress"&&S.dequeue(this,h)})},dequeue:function(h){return this.each(function(){S.dequeue(this,h)})},clearQueue:function(h){return this.queue(h||"fx",[])},promise:function(h,y){var C,P=1,L=S.Deferred(),N=this,V=this.length,oe=function(){--P||L.resolveWith(N,[N])};for(typeof h!="string"&&(y=h,h=void 0),h=h||"fx";V--;)C=ut.get(N[V],h+"queueHooks"),C&&C.empty&&(P++,C.empty.add(oe));return oe(),L.promise(y)}});var Ui=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,Dr=new RegExp("^(?:([+-])=|)("+Ui+")([a-z%]*)$","i"),Nn=["Top","Right","Bottom","Left"],Pr=_.documentElement,vr=function(h){return S.contains(h.ownerDocument,h)},zr={composed:!0};Pr.getRootNode&&(vr=function(h){return S.contains(h.ownerDocument,h)||h.getRootNode(zr)===h.ownerDocument});var Yr=function(h,y){return h=y||h,h.style.display==="none"||h.style.display===""&&vr(h)&&S.css(h,"display")==="none"};function Ao(h,y,C,P){var L,N,V=20,oe=P?function(){return P.cur()}:function(){return S.css(h,y,"")},te=oe(),pe=C&&C[3]||(S.cssNumber[y]?"":"px"),De=h.nodeType&&(S.cssNumber[y]||pe!=="px"&&+te)&&Dr.exec(S.css(h,y));if(De&&De[3]!==pe){for(te=te/2,pe=pe||De[3],De=+te||1;V--;)S.style(h,y,De+pe),(1-N)*(1-(N=oe()/te||.5))<=0&&(V=0),De=De/N;De=De*2,S.style(h,y,De+pe),C=C||[]}return C&&(De=+De||+te||0,L=C[1]?De+(C[1]+1)*C[2]:+C[2],P&&(P.unit=pe,P.start=De,P.end=L)),L}var Un={};function Gr(h){var y,C=h.ownerDocument,P=h.nodeName,L=Un[P];return L||(y=C.body.appendChild(C.createElement(P)),L=S.css(y,"display"),y.parentNode.removeChild(y),L==="none"&&(L="block"),Un[P]=L,L)}function Qn(h,y){for(var C,P,L=[],N=0,V=h.length;N<V;N++)P=h[N],P.style&&(C=P.style.display,y?(C==="none"&&(L[N]=ut.get(P,"display")||null,L[N]||(P.style.display="")),P.style.display===""&&Yr(P)&&(L[N]=Gr(P))):C!=="none"&&(L[N]="none",ut.set(P,"display",C)));for(N=0;N<V;N++)L[N]!=null&&(h[N].style.display=L[N]);return h}S.fn.extend({show:function(){return Qn(this,!0)},hide:function(){return Qn(this)},toggle:function(h){return typeof h=="boolean"?h?this.show():this.hide():this.each(function(){Yr(this)?S(this).show():S(this).hide()})}});var Wt=/^(?:checkbox|radio)$/i,si=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,Wi=/^$|^module$|\/(?:java|ecma)script/i;(function(){var h=_.createDocumentFragment(),y=h.appendChild(_.createElement("div")),C=_.createElement("input");C.setAttribute("type","radio"),C.setAttribute("checked","checked"),C.setAttribute("name","t"),y.appendChild(C),A.checkClone=y.cloneNode(!0).cloneNode(!0).lastChild.checked,y.innerHTML="<textarea>x</textarea>",A.noCloneChecked=!!y.cloneNode(!0).lastChild.defaultValue,y.innerHTML="<option></option>",A.option=!!y.lastChild})();var Pn={thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};Pn.tbody=Pn.tfoot=Pn.colgroup=Pn.caption=Pn.thead,Pn.th=Pn.td,A.option||(Pn.optgroup=Pn.option=[1,"<select multiple='multiple'>","</select>"]);function hn(h,y){var C;return typeof h.getElementsByTagName<"u"?C=h.getElementsByTagName(y||"*"):typeof h.querySelectorAll<"u"?C=h.querySelectorAll(y||"*"):C=[],y===void 0||y&&ue(h,y)?S.merge([h],C):C}function ai(h,y){for(var C=0,P=h.length;C<P;C++)ut.set(h[C],"globalEval",!y||ut.get(y[C],"globalEval"))}var li=/<|&#?\w+;/;function Tn(h,y,C,P,L){for(var N,V,oe,te,pe,De,_e=y.createDocumentFragment(),xe=[],Be=0,ot=h.length;Be<ot;Be++)if(N=h[Be],N||N===0)if(re(N)==="object")S.merge(xe,N.nodeType?[N]:N);else if(!li.test(N))xe.push(y.createTextNode(N));else{for(V=V||_e.appendChild(y.createElement("div")),oe=(si.exec(N)||["",""])[1].toLowerCase(),te=Pn[oe]||Pn._default,V.innerHTML=te[1]+S.htmlPrefilter(N)+te[2],De=te[0];De--;)V=V.lastChild;S.merge(xe,V.childNodes),V=_e.firstChild,V.textContent=""}for(_e.textContent="",Be=0;N=xe[Be++];){if(P&&S.inArray(N,P)>-1){L&&L.push(N);continue}if(pe=vr(N),V=hn(_e.appendChild(N),"script"),pe&&ai(V),C)for(De=0;N=V[De++];)Wi.test(N.type||"")&&C.push(N)}return _e}var so=/^([^.]*)(?:\.(.+)|)/;function yr(){return!0}function ui(){return!1}function an(h,y,C,P,L,N){var V,oe;if(typeof y=="object"){typeof C!="string"&&(P=P||C,C=void 0);for(oe in y)an(h,oe,C,P,y[oe],N);return h}if(P==null&&L==null?(L=C,P=C=void 0):L==null&&(typeof C=="string"?(L=P,P=void 0):(L=P,P=C,C=void 0)),L===!1)L=ui;else if(!L)return h;return N===1&&(V=L,L=function(te){return S().off(te),V.apply(this,arguments)},L.guid=V.guid||(V.guid=S.guid++)),h.each(function(){S.event.add(this,y,L,P,C)})}S.event={global:{},add:function(h,y,C,P,L){var N,V,oe,te,pe,De,_e,xe,Be,ot,Tt,Et=ut.get(h);if(fn(h))for(C.handler&&(N=C,C=N.handler,L=N.selector),L&&S.find.matchesSelector(Pr,L),C.guid||(C.guid=S.guid++),(te=Et.events)||(te=Et.events=Object.create(null)),(V=Et.handle)||(V=Et.handle=function(Rn){return typeof S<"u"&&S.event.triggered!==Rn.type?S.event.dispatch.apply(h,arguments):void 0}),y=(y||"").match(ct)||[""],pe=y.length;pe--;)oe=so.exec(y[pe])||[],Be=Tt=oe[1],ot=(oe[2]||"").split(".").sort(),Be&&(_e=S.event.special[Be]||{},Be=(L?_e.delegateType:_e.bindType)||Be,_e=S.event.special[Be]||{},De=S.extend({type:Be,origType:Tt,data:P,handler:C,guid:C.guid,selector:L,needsContext:L&&S.expr.match.needsContext.test(L),namespace:ot.join(".")},N),(xe=te[Be])||(xe=te[Be]=[],xe.delegateCount=0,(!_e.setup||_e.setup.call(h,P,ot,V)===!1)&&h.addEventListener&&h.addEventListener(Be,V)),_e.add&&(_e.add.call(h,De),De.handler.guid||(De.handler.guid=C.guid)),L?xe.splice(xe.delegateCount++,0,De):xe.push(De),S.event.global[Be]=!0)},remove:function(h,y,C,P,L){var N,V,oe,te,pe,De,_e,xe,Be,ot,Tt,Et=ut.hasData(h)&&ut.get(h);if(!(!Et||!(te=Et.events))){for(y=(y||"").match(ct)||[""],pe=y.length;pe--;){if(oe=so.exec(y[pe])||[],Be=Tt=oe[1],ot=(oe[2]||"").split(".").sort(),!Be){for(Be in te)S.event.remove(h,Be+y[pe],C,P,!0);continue}for(_e=S.event.special[Be]||{},Be=(P?_e.delegateType:_e.bindType)||Be,xe=te[Be]||[],oe=oe[2]&&new RegExp("(^|\\.)"+ot.join("\\.(?:.*\\.|)")+"(\\.|$)"),V=N=xe.length;N--;)De=xe[N],(L||Tt===De.origType)&&(!C||C.guid===De.guid)&&(!oe||oe.test(De.namespace))&&(!P||P===De.selector||P==="**"&&De.selector)&&(xe.splice(N,1),De.selector&&xe.delegateCount--,_e.remove&&_e.remove.call(h,De));V&&!xe.length&&((!_e.teardown||_e.teardown.call(h,ot,Et.handle)===!1)&&S.removeEvent(h,Be,Et.handle),delete te[Be])}S.isEmptyObject(te)&&ut.remove(h,"handle events")}},dispatch:function(h){var y,C,P,L,N,V,oe=new Array(arguments.length),te=S.event.fix(h),pe=(ut.get(this,"events")||Object.create(null))[te.type]||[],De=S.event.special[te.type]||{};for(oe[0]=te,y=1;y<arguments.length;y++)oe[y]=arguments[y];if(te.delegateTarget=this,!(De.preDispatch&&De.preDispatch.call(this,te)===!1)){for(V=S.event.handlers.call(this,te,pe),y=0;(L=V[y++])&&!te.isPropagationStopped();)for(te.currentTarget=L.elem,C=0;(N=L.handlers[C++])&&!te.isImmediatePropagationStopped();)(!te.rnamespace||N.namespace===!1||te.rnamespace.test(N.namespace))&&(te.handleObj=N,te.data=N.data,P=((S.event.special[N.origType]||{}).handle||N.handler).apply(L.elem,oe),P!==void 0&&(te.result=P)===!1&&(te.preventDefault(),te.stopPropagation()));return De.postDispatch&&De.postDispatch.call(this,te),te.result}},handlers:function(h,y){var C,P,L,N,V,oe=[],te=y.delegateCount,pe=h.target;if(te&&pe.nodeType&&!(h.type==="click"&&h.button>=1)){for(;pe!==this;pe=pe.parentNode||this)if(pe.nodeType===1&&!(h.type==="click"&&pe.disabled===!0)){for(N=[],V={},C=0;C<te;C++)P=y[C],L=P.selector+" ",V[L]===void 0&&(V[L]=P.needsContext?S(L,this).index(pe)>-1:S.find(L,this,null,[pe]).length),V[L]&&N.push(P);N.length&&oe.push({elem:pe,handlers:N})}}return pe=this,te<y.length&&oe.push({elem:pe,handlers:y.slice(te)}),oe},addProp:function(h,y){Object.defineProperty(S.Event.prototype,h,{enumerable:!0,configurable:!0,get:I(y)?function(){if(this.originalEvent)return y(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[h]},set:function(C){Object.defineProperty(this,h,{enumerable:!0,configurable:!0,writable:!0,value:C})}})},fix:function(h){return h[S.expando]?h:new S.Event(h)},special:{load:{noBubble:!0},click:{setup:function(h){var y=this||h;return Wt.test(y.type)&&y.click&&ue(y,"input")&&Di(y,"click",!0),!1},trigger:function(h){var y=this||h;return Wt.test(y.type)&&y.click&&ue(y,"input")&&Di(y,"click"),!0},_default:function(h){var y=h.target;return Wt.test(y.type)&&y.click&&ue(y,"input")&&ut.get(y,"click")||ue(y,"a")}},beforeunload:{postDispatch:function(h){h.result!==void 0&&h.originalEvent&&(h.originalEvent.returnValue=h.result)}}}};function Di(h,y,C){if(!C){ut.get(h,y)===void 0&&S.event.add(h,y,yr);return}ut.set(h,y,!1),S.event.add(h,y,{namespace:!1,handler:function(P){var L,N=ut.get(this,y);if(P.isTrigger&1&&this[y]){if(N)(S.event.special[y]||{}).delegateType&&P.stopPropagation();else if(N=o.call(arguments),ut.set(this,y,N),this[y](),L=ut.get(this,y),ut.set(this,y,!1),N!==L)return P.stopImmediatePropagation(),P.preventDefault(),L}else N&&(ut.set(this,y,S.event.trigger(N[0],N.slice(1),this)),P.stopPropagation(),P.isImmediatePropagationStopped=yr)}})}S.removeEvent=function(h,y,C){h.removeEventListener&&h.removeEventListener(y,C)},S.Event=function(h,y){if(!(this instanceof S.Event))return new S.Event(h,y);h&&h.type?(this.originalEvent=h,this.type=h.type,this.isDefaultPrevented=h.defaultPrevented||h.defaultPrevented===void 0&&h.returnValue===!1?yr:ui,this.target=h.target&&h.target.nodeType===3?h.target.parentNode:h.target,this.currentTarget=h.currentTarget,this.relatedTarget=h.relatedTarget):this.type=h,y&&S.extend(this,y),this.timeStamp=h&&h.timeStamp||Date.now(),this[S.expando]=!0},S.Event.prototype={constructor:S.Event,isDefaultPrevented:ui,isPropagationStopped:ui,isImmediatePropagationStopped:ui,isSimulated:!1,preventDefault:function(){var h=this.originalEvent;this.isDefaultPrevented=yr,h&&!this.isSimulated&&h.preventDefault()},stopPropagation:function(){var h=this.originalEvent;this.isPropagationStopped=yr,h&&!this.isSimulated&&h.stopPropagation()},stopImmediatePropagation:function(){var h=this.originalEvent;this.isImmediatePropagationStopped=yr,h&&!this.isSimulated&&h.stopImmediatePropagation(),this.stopPropagation()}},S.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,char:!0,code:!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:!0},S.event.addProp),S.each({focus:"focusin",blur:"focusout"},function(h,y){function C(P){if(_.documentMode){var L=ut.get(this,"handle"),N=S.event.fix(P);N.type=P.type==="focusin"?"focus":"blur",N.isSimulated=!0,L(P),N.target===N.currentTarget&&L(N)}else S.event.simulate(y,P.target,S.event.fix(P))}S.event.special[h]={setup:function(){var P;if(Di(this,h,!0),_.documentMode)P=ut.get(this,y),P||this.addEventListener(y,C),ut.set(this,y,(P||0)+1);else return!1},trigger:function(){return Di(this,h),!0},teardown:function(){var P;if(_.documentMode)P=ut.get(this,y)-1,P?ut.set(this,y,P):(this.removeEventListener(y,C),ut.remove(this,y));else return!1},_default:function(P){return ut.get(P.target,h)},delegateType:y},S.event.special[y]={setup:function(){var P=this.ownerDocument||this.document||this,L=_.documentMode?this:P,N=ut.get(L,y);N||(_.documentMode?this.addEventListener(y,C):P.addEventListener(h,C,!0)),ut.set(L,y,(N||0)+1)},teardown:function(){var P=this.ownerDocument||this.document||this,L=_.documentMode?this:P,N=ut.get(L,y)-1;N?ut.set(L,y,N):(_.documentMode?this.removeEventListener(y,C):P.removeEventListener(h,C,!0),ut.remove(L,y))}}}),S.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(h,y){S.event.special[h]={delegateType:y,bindType:y,handle:function(C){var P,L=this,N=C.relatedTarget,V=C.handleObj;return(!N||N!==L&&!S.contains(L,N))&&(C.type=V.origType,P=V.handler.apply(this,arguments),C.type=y),P}}}),S.fn.extend({on:function(h,y,C,P){return an(this,h,y,C,P)},one:function(h,y,C,P){return an(this,h,y,C,P,1)},off:function(h,y,C){var P,L;if(h&&h.preventDefault&&h.handleObj)return P=h.handleObj,S(h.delegateTarget).off(P.namespace?P.origType+"."+P.namespace:P.origType,P.selector,P.handler),this;if(typeof h=="object"){for(L in h)this.off(L,y,h[L]);return this}return(y===!1||typeof y=="function")&&(C=y,y=void 0),C===!1&&(C=ui),this.each(function(){S.event.remove(this,h,C,y)})}});var Is=/<script|<style|<link/i,Ms=/checked\s*(?:[^=]|=\s*.checked.)/i,qr=/^\s*<!\[CDATA\[|\]\]>\s*$/g;function ao(h,y){return ue(h,"table")&&ue(y.nodeType!==11?y:y.firstChild,"tr")&&S(h).children("tbody")[0]||h}function lo(h){return h.type=(h.getAttribute("type")!==null)+"/"+h.type,h}function Pi(h){return(h.type||"").slice(0,5)==="true/"?h.type=h.type.slice(5):h.removeAttribute("type"),h}function er(h,y){var C,P,L,N,V,oe,te;if(y.nodeType===1){if(ut.hasData(h)&&(N=ut.get(h),te=N.events,te)){ut.remove(y,"handle events");for(L in te)for(C=0,P=te[L].length;C<P;C++)S.event.add(y,L,te[L][C])}Dn.hasData(h)&&(V=Dn.access(h),oe=S.extend({},V),Dn.set(y,oe))}}function Or(h,y){var C=y.nodeName.toLowerCase();C==="input"&&Wt.test(h.type)?y.checked=h.checked:(C==="input"||C==="textarea")&&(y.defaultValue=h.defaultValue)}function _r(h,y,C,P){y=a(y);var L,N,V,oe,te,pe,De=0,_e=h.length,xe=_e-1,Be=y[0],ot=I(Be);if(ot||_e>1&&typeof Be=="string"&&!A.checkClone&&Ms.test(Be))return h.each(function(Tt){var Et=h.eq(Tt);ot&&(y[0]=Be.call(this,Tt,Et.html())),_r(Et,y,C,P)});if(_e&&(L=Tn(y,h[0].ownerDocument,!1,h,P),N=L.firstChild,L.childNodes.length===1&&(L=N),N||P)){for(V=S.map(hn(L,"script"),lo),oe=V.length;De<_e;De++)te=L,De!==xe&&(te=S.clone(te,!0,!0),oe&&S.merge(V,hn(te,"script"))),C.call(h[De],te,De);if(oe)for(pe=V[V.length-1].ownerDocument,S.map(V,Pi),De=0;De<oe;De++)te=V[De],Wi.test(te.type||"")&&!ut.access(te,"globalEval")&&S.contains(pe,te)&&(te.src&&(te.type||"").toLowerCase()!=="module"?S._evalUrl&&!te.noModule&&S._evalUrl(te.src,{nonce:te.nonce||te.getAttribute("nonce")},pe):W(te.textContent.replace(qr,""),te,pe))}return h}function ci(h,y,C){for(var P,L=y?S.filter(y,h):h,N=0;(P=L[N])!=null;N++)!C&&P.nodeType===1&&S.cleanData(hn(P)),P.parentNode&&(C&&vr(P)&&ai(hn(P,"script")),P.parentNode.removeChild(P));return h}S.extend({htmlPrefilter:function(h){return h},clone:function(h,y,C){var P,L,N,V,oe=h.cloneNode(!0),te=vr(h);if(!A.noCloneChecked&&(h.nodeType===1||h.nodeType===11)&&!S.isXMLDoc(h))for(V=hn(oe),N=hn(h),P=0,L=N.length;P<L;P++)Or(N[P],V[P]);if(y)if(C)for(N=N||hn(h),V=V||hn(oe),P=0,L=N.length;P<L;P++)er(N[P],V[P]);else er(h,oe);return V=hn(oe,"script"),V.length>0&&ai(V,!te&&hn(h,"script")),oe},cleanData:function(h){for(var y,C,P,L=S.event.special,N=0;(C=h[N])!==void 0;N++)if(fn(C)){if(y=C[ut.expando]){if(y.events)for(P in y.events)L[P]?S.event.remove(C,P):S.removeEvent(C,P,y.handle);C[ut.expando]=void 0}C[Dn.expando]&&(C[Dn.expando]=void 0)}}}),S.fn.extend({detach:function(h){return ci(this,h,!0)},remove:function(h){return ci(this,h)},text:function(h){return Sn(this,function(y){return y===void 0?S.text(this):this.empty().each(function(){(this.nodeType===1||this.nodeType===11||this.nodeType===9)&&(this.textContent=y)})},null,h,arguments.length)},append:function(){return _r(this,arguments,function(h){if(this.nodeType===1||this.nodeType===11||this.nodeType===9){var y=ao(this,h);y.appendChild(h)}})},prepend:function(){return _r(this,arguments,function(h){if(this.nodeType===1||this.nodeType===11||this.nodeType===9){var y=ao(this,h);y.insertBefore(h,y.firstChild)}})},before:function(){return _r(this,arguments,function(h){this.parentNode&&this.parentNode.insertBefore(h,this)})},after:function(){return _r(this,arguments,function(h){this.parentNode&&this.parentNode.insertBefore(h,this.nextSibling)})},empty:function(){for(var h,y=0;(h=this[y])!=null;y++)h.nodeType===1&&(S.cleanData(hn(h,!1)),h.textContent="");return this},clone:function(h,y){return h=h??!1,y=y??h,this.map(function(){return S.clone(this,h,y)})},html:function(h){return Sn(this,function(y){var C=this[0]||{},P=0,L=this.length;if(y===void 0&&C.nodeType===1)return C.innerHTML;if(typeof y=="string"&&!Is.test(y)&&!Pn[(si.exec(y)||["",""])[1].toLowerCase()]){y=S.htmlPrefilter(y);try{for(;P<L;P++)C=this[P]||{},C.nodeType===1&&(S.cleanData(hn(C,!1)),C.innerHTML=y);C=0}catch{}}C&&this.empty().append(y)},null,h,arguments.length)},replaceWith:function(){var h=[];return _r(this,arguments,function(y){var C=this.parentNode;S.inArray(this,h)<0&&(S.cleanData(hn(this)),C&&C.replaceChild(y,this))},h)}}),S.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(h,y){S.fn[h]=function(C){for(var P,L=[],N=S(C),V=N.length-1,oe=0;oe<=V;oe++)P=oe===V?this:this.clone(!0),S(N[oe])[y](P),c.apply(L,P.get());return this.pushStack(L)}});var Xr=new RegExp("^("+Ui+")(?!px)[a-z%]+$","i"),br=/^--/,Rr=function(h){var y=h.ownerDocument.defaultView;return(!y||!y.opener)&&(y=e),y.getComputedStyle(h)},tr=function(h,y,C){var P,L,N={};for(L in y)N[L]=h.style[L],h.style[L]=y[L];P=C.call(h);for(L in y)h.style[L]=N[L];return P},zi=new RegExp(Nn.join("|"),"i");(function(){function h(){if(pe){te.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0",pe.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",Pr.appendChild(te).appendChild(pe);var De=e.getComputedStyle(pe);C=De.top!=="1%",oe=y(De.marginLeft)===12,pe.style.right="60%",N=y(De.right)===36,P=y(De.width)===36,pe.style.position="absolute",L=y(pe.offsetWidth/3)===12,Pr.removeChild(te),pe=null}}function y(De){return Math.round(parseFloat(De))}var C,P,L,N,V,oe,te=_.createElement("div"),pe=_.createElement("div");pe.style&&(pe.style.backgroundClip="content-box",pe.cloneNode(!0).style.backgroundClip="",A.clearCloneStyle=pe.style.backgroundClip==="content-box",S.extend(A,{boxSizingReliable:function(){return h(),P},pixelBoxStyles:function(){return h(),N},pixelPosition:function(){return h(),C},reliableMarginLeft:function(){return h(),oe},scrollboxSize:function(){return h(),L},reliableTrDimensions:function(){var De,_e,xe,Be;return V==null&&(De=_.createElement("table"),_e=_.createElement("tr"),xe=_.createElement("div"),De.style.cssText="position:absolute;left:-11111px;border-collapse:separate",_e.style.cssText="box-sizing:content-box;border:1px solid",_e.style.height="1px",xe.style.height="9px",xe.style.display="block",Pr.appendChild(De).appendChild(_e).appendChild(xe),Be=e.getComputedStyle(_e),V=parseInt(Be.height,10)+parseInt(Be.borderTopWidth,10)+parseInt(Be.borderBottomWidth,10)===_e.offsetHeight,Pr.removeChild(De)),V}}))})();function Oi(h,y,C){var P,L,N,V,oe=br.test(y),te=h.style;return C=C||Rr(h),C&&(V=C.getPropertyValue(y)||C[y],oe&&V&&(V=V.replace(Ue,"$1")||void 0),V===""&&!vr(h)&&(V=S.style(h,y)),!A.pixelBoxStyles()&&Xr.test(V)&&zi.test(y)&&(P=te.width,L=te.minWidth,N=te.maxWidth,te.minWidth=te.maxWidth=te.width=V,V=C.width,te.width=P,te.minWidth=L,te.maxWidth=N)),V!==void 0?V+"":V}function ar(h,y){return{get:function(){if(h()){delete this.get;return}return(this.get=y).apply(this,arguments)}}}var yn=["Webkit","Moz","ms"],Ar=_.createElement("div").style,Ir={};function fi(h){for(var y=h[0].toUpperCase()+h.slice(1),C=yn.length;C--;)if(h=yn[C]+y,h in Ar)return h}function di(h){var y=S.cssProps[h]||Ir[h];return y||(h in Ar?h:Ir[h]=fi(h)||h)}var wr=/^(none|table(?!-c[ea]).+)/,Kr={position:"absolute",visibility:"hidden",display:"block"},Wn={letterSpacing:"0",fontWeight:"400"};function hi(h,y,C){var P=Dr.exec(y);return P?Math.max(0,P[2]-(C||0))+(P[3]||"px"):y}function pi(h,y,C,P,L,N){var V=y==="width"?1:0,oe=0,te=0,pe=0;if(C===(P?"border":"content"))return 0;for(;V<4;V+=2)C==="margin"&&(pe+=S.css(h,C+Nn[V],!0,L)),P?(C==="content"&&(te-=S.css(h,"padding"+Nn[V],!0,L)),C!=="margin"&&(te-=S.css(h,"border"+Nn[V]+"Width",!0,L))):(te+=S.css(h,"padding"+Nn[V],!0,L),C!=="padding"?te+=S.css(h,"border"+Nn[V]+"Width",!0,L):oe+=S.css(h,"border"+Nn[V]+"Width",!0,L));return!P&&N>=0&&(te+=Math.max(0,Math.ceil(h["offset"+y[0].toUpperCase()+y.slice(1)]-N-te-oe-.5))||0),te+pe}function _i(h,y,C){var P=Rr(h),L=!A.boxSizingReliable()||C,N=L&&S.css(h,"boxSizing",!1,P)==="border-box",V=N,oe=Oi(h,y,P),te="offset"+y[0].toUpperCase()+y.slice(1);if(Xr.test(oe)){if(!C)return oe;oe="auto"}return(!A.boxSizingReliable()&&N||!A.reliableTrDimensions()&&ue(h,"tr")||oe==="auto"||!parseFloat(oe)&&S.css(h,"display",!1,P)==="inline")&&h.getClientRects().length&&(N=S.css(h,"boxSizing",!1,P)==="border-box",V=te in h,V&&(oe=h[te])),oe=parseFloat(oe)||0,oe+pi(h,y,C||(N?"border":"content"),V,P,oe)+"px"}S.extend({cssHooks:{opacity:{get:function(h,y){if(y){var C=Oi(h,"opacity");return C===""?"1":C}}}},cssNumber:{animationIterationCount:!0,aspectRatio:!0,borderImageSlice:!0,columnCount:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,scale:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeMiterlimit:!0,strokeOpacity:!0},cssProps:{},style:function(h,y,C,P){if(!(!h||h.nodeType===3||h.nodeType===8||!h.style)){var L,N,V,oe=sn(y),te=br.test(y),pe=h.style;if(te||(y=di(oe)),V=S.cssHooks[y]||S.cssHooks[oe],C!==void 0){if(N=typeof C,N==="string"&&(L=Dr.exec(C))&&L[1]&&(C=Ao(h,y,L),N="number"),C==null||C!==C)return;N==="number"&&!te&&(C+=L&&L[3]||(S.cssNumber[oe]?"":"px")),!A.clearCloneStyle&&C===""&&y.indexOf("background")===0&&(pe[y]="inherit"),(!V||!("set"in V)||(C=V.set(h,C,P))!==void 0)&&(te?pe.setProperty(y,C):pe[y]=C)}else return V&&"get"in V&&(L=V.get(h,!1,P))!==void 0?L:pe[y]}},css:function(h,y,C,P){var L,N,V,oe=sn(y),te=br.test(y);return te||(y=di(oe)),V=S.cssHooks[y]||S.cssHooks[oe],V&&"get"in V&&(L=V.get(h,!0,C)),L===void 0&&(L=Oi(h,y,P)),L==="normal"&&y in Wn&&(L=Wn[y]),C===""||C?(N=parseFloat(L),C===!0||isFinite(N)?N||0:L):L}}),S.each(["height","width"],function(h,y){S.cssHooks[y]={get:function(C,P,L){if(P)return wr.test(S.css(C,"display"))&&(!C.getClientRects().length||!C.getBoundingClientRect().width)?tr(C,Kr,function(){return _i(C,y,L)}):_i(C,y,L)},set:function(C,P,L){var N,V=Rr(C),oe=!A.scrollboxSize()&&V.position==="absolute",te=oe||L,pe=te&&S.css(C,"boxSizing",!1,V)==="border-box",De=L?pi(C,y,L,pe,V):0;return pe&&oe&&(De-=Math.ceil(C["offset"+y[0].toUpperCase()+y.slice(1)]-parseFloat(V[y])-pi(C,y,"border",!1,V)-.5)),De&&(N=Dr.exec(P))&&(N[3]||"px")!=="px"&&(C.style[y]=P,P=S.css(C,y)),hi(C,P,De)}}}),S.cssHooks.marginLeft=ar(A.reliableMarginLeft,function(h,y){if(y)return(parseFloat(Oi(h,"marginLeft"))||h.getBoundingClientRect().left-tr(h,{marginLeft:0},function(){return h.getBoundingClientRect().left}))+"px"}),S.each({margin:"",padding:"",border:"Width"},function(h,y){S.cssHooks[h+y]={expand:function(C){for(var P=0,L={},N=typeof C=="string"?C.split(" "):[C];P<4;P++)L[h+Nn[P]+y]=N[P]||N[P-2]||N[0];return L}},h!=="margin"&&(S.cssHooks[h+y].set=hi)}),S.fn.extend({css:function(h,y){return Sn(this,function(C,P,L){var N,V,oe={},te=0;if(Array.isArray(P)){for(N=Rr(C),V=P.length;te<V;te++)oe[P[te]]=S.css(C,P[te],!1,N);return oe}return L!==void 0?S.style(C,P,L):S.css(C,P)},h,y,arguments.length>1)}});function nn(h,y,C,P,L){return new nn.prototype.init(h,y,C,P,L)}S.Tween=nn,nn.prototype={constructor:nn,init:function(h,y,C,P,L,N){this.elem=h,this.prop=C,this.easing=L||S.easing._default,this.options=y,this.start=this.now=this.cur(),this.end=P,this.unit=N||(S.cssNumber[C]?"":"px")},cur:function(){var h=nn.propHooks[this.prop];return h&&h.get?h.get(this):nn.propHooks._default.get(this)},run:function(h){var y,C=nn.propHooks[this.prop];return this.options.duration?this.pos=y=S.easing[this.easing](h,this.options.duration*h,0,1,this.options.duration):this.pos=y=h,this.now=(this.end-this.start)*y+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),C&&C.set?C.set(this):nn.propHooks._default.set(this),this}},nn.prototype.init.prototype=nn.prototype,nn.propHooks={_default:{get:function(h){var y;return h.elem.nodeType!==1||h.elem[h.prop]!=null&&h.elem.style[h.prop]==null?h.elem[h.prop]:(y=S.css(h.elem,h.prop,""),!y||y==="auto"?0:y)},set:function(h){S.fx.step[h.prop]?S.fx.step[h.prop](h):h.elem.nodeType===1&&(S.cssHooks[h.prop]||h.elem.style[di(h.prop)]!=null)?S.style(h.elem,h.prop,h.now+h.unit):h.elem[h.prop]=h.now}}},nn.propHooks.scrollTop=nn.propHooks.scrollLeft={set:function(h){h.elem.nodeType&&h.elem.parentNode&&(h.elem[h.prop]=h.now)}},S.easing={linear:function(h){return h},swing:function(h){return .5-Math.cos(h*Math.PI)/2},_default:"swing"},S.fx=nn.prototype.init,S.fx.step={};var jn,Cn,uo=/^(?:toggle|show|hide)$/,On=/queueHooks$/;function _n(){Cn&&(_.hidden===!1&&e.requestAnimationFrame?e.requestAnimationFrame(_n):e.setTimeout(_n,S.fx.interval),S.fx.tick())}function k(){return e.setTimeout(function(){jn=void 0}),jn=Date.now()}function F(h,y){var C,P=0,L={height:h};for(y=y?1:0;P<4;P+=2-y)C=Nn[P],L["margin"+C]=L["padding"+C]=h;return y&&(L.opacity=L.width=h),L}function G(h,y,C){for(var P,L=(ge.tweeners[y]||[]).concat(ge.tweeners["*"]),N=0,V=L.length;N<V;N++)if(P=L[N].call(C,y,h))return P}function ee(h,y,C){var P,L,N,V,oe,te,pe,De,_e="width"in y||"height"in y,xe=this,Be={},ot=h.style,Tt=h.nodeType&&Yr(h),Et=ut.get(h,"fxshow");C.queue||(V=S._queueHooks(h,"fx"),V.unqueued==null&&(V.unqueued=0,oe=V.empty.fire,V.empty.fire=function(){V.unqueued||oe()}),V.unqueued++,xe.always(function(){xe.always(function(){V.unqueued--,S.queue(h,"fx").length||V.empty.fire()})}));for(P in y)if(L=y[P],uo.test(L)){if(delete y[P],N=N||L==="toggle",L===(Tt?"hide":"show"))if(L==="show"&&Et&&Et[P]!==void 0)Tt=!0;else continue;Be[P]=Et&&Et[P]||S.style(h,P)}if(te=!S.isEmptyObject(y),!(!te&&S.isEmptyObject(Be))){_e&&h.nodeType===1&&(C.overflow=[ot.overflow,ot.overflowX,ot.overflowY],pe=Et&&Et.display,pe==null&&(pe=ut.get(h,"display")),De=S.css(h,"display"),De==="none"&&(pe?De=pe:(Qn([h],!0),pe=h.style.display||pe,De=S.css(h,"display"),Qn([h]))),(De==="inline"||De==="inline-block"&&pe!=null)&&S.css(h,"float")==="none"&&(te||(xe.done(function(){ot.display=pe}),pe==null&&(De=ot.display,pe=De==="none"?"":De)),ot.display="inline-block")),C.overflow&&(ot.overflow="hidden",xe.always(function(){ot.overflow=C.overflow[0],ot.overflowX=C.overflow[1],ot.overflowY=C.overflow[2]})),te=!1;for(P in Be)te||(Et?"hidden"in Et&&(Tt=Et.hidden):Et=ut.access(h,"fxshow",{display:pe}),N&&(Et.hidden=!Tt),Tt&&Qn([h],!0),xe.done(function(){Tt||Qn([h]),ut.remove(h,"fxshow");for(P in Be)S.style(h,P,Be[P])})),te=G(Tt?Et[P]:0,P,xe),P in Et||(Et[P]=te.start,Tt&&(te.end=te.start,te.start=0))}}function Te(h,y){var C,P,L,N,V;for(C in h)if(P=sn(C),L=y[P],N=h[C],Array.isArray(N)&&(L=N[1],N=h[C]=N[0]),C!==P&&(h[P]=N,delete h[C]),V=S.cssHooks[P],V&&"expand"in V){N=V.expand(N),delete h[P];for(C in N)C in h||(h[C]=N[C],y[C]=L)}else y[P]=L}function ge(h,y,C){var P,L,N=0,V=ge.prefilters.length,oe=S.Deferred().always(function(){delete te.elem}),te=function(){if(L)return!1;for(var _e=jn||k(),xe=Math.max(0,pe.startTime+pe.duration-_e),Be=xe/pe.duration||0,ot=1-Be,Tt=0,Et=pe.tweens.length;Tt<Et;Tt++)pe.tweens[Tt].run(ot);return oe.notifyWith(h,[pe,ot,xe]),ot<1&&Et?xe:(Et||oe.notifyWith(h,[pe,1,0]),oe.resolveWith(h,[pe]),!1)},pe=oe.promise({elem:h,props:S.extend({},y),opts:S.extend(!0,{specialEasing:{},easing:S.easing._default},C),originalProperties:y,originalOptions:C,startTime:jn||k(),duration:C.duration,tweens:[],createTween:function(_e,xe){var Be=S.Tween(h,pe.opts,_e,xe,pe.opts.specialEasing[_e]||pe.opts.easing);return pe.tweens.push(Be),Be},stop:function(_e){var xe=0,Be=_e?pe.tweens.length:0;if(L)return this;for(L=!0;xe<Be;xe++)pe.tweens[xe].run(1);return _e?(oe.notifyWith(h,[pe,1,0]),oe.resolveWith(h,[pe,_e])):oe.rejectWith(h,[pe,_e]),this}}),De=pe.props;for(Te(De,pe.opts.specialEasing);N<V;N++)if(P=ge.prefilters[N].call(pe,h,De,pe.opts),P)return I(P.stop)&&(S._queueHooks(pe.elem,pe.opts.queue).stop=P.stop.bind(P)),P;return S.map(De,G,pe),I(pe.opts.start)&&pe.opts.start.call(h,pe),pe.progress(pe.opts.progress).done(pe.opts.done,pe.opts.complete).fail(pe.opts.fail).always(pe.opts.always),S.fx.timer(S.extend(te,{elem:h,anim:pe,queue:pe.opts.queue})),pe}S.Animation=S.extend(ge,{tweeners:{"*":[function(h,y){var C=this.createTween(h,y);return Ao(C.elem,h,Dr.exec(y),C),C}]},tweener:function(h,y){I(h)?(y=h,h=["*"]):h=h.match(ct);for(var C,P=0,L=h.length;P<L;P++)C=h[P],ge.tweeners[C]=ge.tweeners[C]||[],ge.tweeners[C].unshift(y)},prefilters:[ee],prefilter:function(h,y){y?ge.prefilters.unshift(h):ge.prefilters.push(h)}}),S.speed=function(h,y,C){var P=h&&typeof h=="object"?S.extend({},h):{complete:C||!C&&y||I(h)&&h,duration:h,easing:C&&y||y&&!I(y)&&y};return S.fx.off?P.duration=0:typeof P.duration!="number"&&(P.duration in S.fx.speeds?P.duration=S.fx.speeds[P.duration]:P.duration=S.fx.speeds._default),(P.queue==null||P.queue===!0)&&(P.queue="fx"),P.old=P.complete,P.complete=function(){I(P.old)&&P.old.call(this),P.queue&&S.dequeue(this,P.queue)},P},S.fn.extend({fadeTo:function(h,y,C,P){return this.filter(Yr).css("opacity",0).show().end().animate({opacity:y},h,C,P)},animate:function(h,y,C,P){var L=S.isEmptyObject(h),N=S.speed(y,C,P),V=function(){var oe=ge(this,S.extend({},h),N);(L||ut.get(this,"finish"))&&oe.stop(!0)};return V.finish=V,L||N.queue===!1?this.each(V):this.queue(N.queue,V)},stop:function(h,y,C){var P=function(L){var N=L.stop;delete L.stop,N(C)};return typeof h!="string"&&(C=y,y=h,h=void 0),y&&this.queue(h||"fx",[]),this.each(function(){var L=!0,N=h!=null&&h+"queueHooks",V=S.timers,oe=ut.get(this);if(N)oe[N]&&oe[N].stop&&P(oe[N]);else for(N in oe)oe[N]&&oe[N].stop&&On.test(N)&&P(oe[N]);for(N=V.length;N--;)V[N].elem===this&&(h==null||V[N].queue===h)&&(V[N].anim.stop(C),L=!1,V.splice(N,1));(L||!C)&&S.dequeue(this,h)})},finish:function(h){return h!==!1&&(h=h||"fx"),this.each(function(){var y,C=ut.get(this),P=C[h+"queue"],L=C[h+"queueHooks"],N=S.timers,V=P?P.length:0;for(C.finish=!0,S.queue(this,h,[]),L&&L.stop&&L.stop.call(this,!0),y=N.length;y--;)N[y].elem===this&&N[y].queue===h&&(N[y].anim.stop(!0),N.splice(y,1));for(y=0;y<V;y++)P[y]&&P[y].finish&&P[y].finish.call(this);delete C.finish})}}),S.each(["toggle","show","hide"],function(h,y){var C=S.fn[y];S.fn[y]=function(P,L,N){return P==null||typeof P=="boolean"?C.apply(this,arguments):this.animate(F(y,!0),P,L,N)}}),S.each({slideDown:F("show"),slideUp:F("hide"),slideToggle:F("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(h,y){S.fn[h]=function(C,P,L){return this.animate(y,C,P,L)}}),S.timers=[],S.fx.tick=function(){var h,y=0,C=S.timers;for(jn=Date.now();y<C.length;y++)h=C[y],!h()&&C[y]===h&&C.splice(y--,1);C.length||S.fx.stop(),jn=void 0},S.fx.timer=function(h){S.timers.push(h),S.fx.start()},S.fx.interval=13,S.fx.start=function(){Cn||(Cn=!0,_n())},S.fx.stop=function(){Cn=null},S.fx.speeds={slow:600,fast:200,_default:400},S.fn.delay=function(h,y){return h=S.fx&&S.fx.speeds[h]||h,y=y||"fx",this.queue(y,function(C,P){var L=e.setTimeout(C,h);P.stop=function(){e.clearTimeout(L)}})},function(){var h=_.createElement("input"),y=_.createElement("select"),C=y.appendChild(_.createElement("option"));h.type="checkbox",A.checkOn=h.value!=="",A.optSelected=C.selected,h=_.createElement("input"),h.value="t",h.type="radio",A.radioValue=h.value==="t"}();var Pe,Xe=S.expr.attrHandle;S.fn.extend({attr:function(h,y){return Sn(this,S.attr,h,y,arguments.length>1)},removeAttr:function(h){return this.each(function(){S.removeAttr(this,h)})}}),S.extend({attr:function(h,y,C){var P,L,N=h.nodeType;if(!(N===3||N===8||N===2)){if(typeof h.getAttribute>"u")return S.prop(h,y,C);if((N!==1||!S.isXMLDoc(h))&&(L=S.attrHooks[y.toLowerCase()]||(S.expr.match.bool.test(y)?Pe:void 0)),C!==void 0){if(C===null){S.removeAttr(h,y);return}return L&&"set"in L&&(P=L.set(h,C,y))!==void 0?P:(h.setAttribute(y,C+""),C)}return L&&"get"in L&&(P=L.get(h,y))!==null?P:(P=S.find.attr(h,y),P??void 0)}},attrHooks:{type:{set:function(h,y){if(!A.radioValue&&y==="radio"&&ue(h,"input")){var C=h.value;return h.setAttribute("type",y),C&&(h.value=C),y}}}},removeAttr:function(h,y){var C,P=0,L=y&&y.match(ct);if(L&&h.nodeType===1)for(;C=L[P++];)h.removeAttribute(C)}}),Pe={set:function(h,y,C){return y===!1?S.removeAttr(h,C):h.setAttribute(C,C),C}},S.each(S.expr.match.bool.source.match(/\w+/g),function(h,y){var C=Xe[y]||S.find.attr;Xe[y]=function(P,L,N){var V,oe,te=L.toLowerCase();return N||(oe=Xe[te],Xe[te]=V,V=C(P,L,N)!=null?te:null,Xe[te]=oe),V}});var pt=/^(?:input|select|textarea|button)$/i,mt=/^(?:a|area)$/i;S.fn.extend({prop:function(h,y){return Sn(this,S.prop,h,y,arguments.length>1)},removeProp:function(h){return this.each(function(){delete this[S.propFix[h]||h]})}}),S.extend({prop:function(h,y,C){var P,L,N=h.nodeType;if(!(N===3||N===8||N===2))return(N!==1||!S.isXMLDoc(h))&&(y=S.propFix[y]||y,L=S.propHooks[y]),C!==void 0?L&&"set"in L&&(P=L.set(h,C,y))!==void 0?P:h[y]=C:L&&"get"in L&&(P=L.get(h,y))!==null?P:h[y]},propHooks:{tabIndex:{get:function(h){var y=S.find.attr(h,"tabindex");return y?parseInt(y,10):pt.test(h.nodeName)||mt.test(h.nodeName)&&h.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),A.optSelected||(S.propHooks.selected={get:function(h){var y=h.parentNode;return y&&y.parentNode&&y.parentNode.selectedIndex,null},set:function(h){var y=h.parentNode;y&&(y.selectedIndex,y.parentNode&&y.parentNode.selectedIndex)}}),S.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){S.propFix[this.toLowerCase()]=this});function ft(h){var y=h.match(ct)||[];return y.join(" ")}function Ft(h){return h.getAttribute&&h.getAttribute("class")||""}function Bn(h){return Array.isArray(h)?h:typeof h=="string"?h.match(ct)||[]:[]}S.fn.extend({addClass:function(h){var y,C,P,L,N,V;return I(h)?this.each(function(oe){S(this).addClass(h.call(this,oe,Ft(this)))}):(y=Bn(h),y.length?this.each(function(){if(P=Ft(this),C=this.nodeType===1&&" "+ft(P)+" ",C){for(N=0;N<y.length;N++)L=y[N],C.indexOf(" "+L+" ")<0&&(C+=L+" ");V=ft(C),P!==V&&this.setAttribute("class",V)}}):this)},removeClass:function(h){var y,C,P,L,N,V;return I(h)?this.each(function(oe){S(this).removeClass(h.call(this,oe,Ft(this)))}):arguments.length?(y=Bn(h),y.length?this.each(function(){if(P=Ft(this),C=this.nodeType===1&&" "+ft(P)+" ",C){for(N=0;N<y.length;N++)for(L=y[N];C.indexOf(" "+L+" ")>-1;)C=C.replace(" "+L+" "," ");V=ft(C),P!==V&&this.setAttribute("class",V)}}):this):this.attr("class","")},toggleClass:function(h,y){var C,P,L,N,V=typeof h,oe=V==="string"||Array.isArray(h);return I(h)?this.each(function(te){S(this).toggleClass(h.call(this,te,Ft(this),y),y)}):typeof y=="boolean"&&oe?y?this.addClass(h):this.removeClass(h):(C=Bn(h),this.each(function(){if(oe)for(N=S(this),L=0;L<C.length;L++)P=C[L],N.hasClass(P)?N.removeClass(P):N.addClass(P);else(h===void 0||V==="boolean")&&(P=Ft(this),P&&ut.set(this,"__className__",P),this.setAttribute&&this.setAttribute("class",P||h===!1?"":ut.get(this,"__className__")||""))}))},hasClass:function(h){var y,C,P=0;for(y=" "+h+" ";C=this[P++];)if(C.nodeType===1&&(" "+ft(Ft(C))+" ").indexOf(y)>-1)return!0;return!1}});var zn=/\r/g;S.fn.extend({val:function(h){var y,C,P,L=this[0];return arguments.length?(P=I(h),this.each(function(N){var V;this.nodeType===1&&(P?V=h.call(this,N,S(this).val()):V=h,V==null?V="":typeof V=="number"?V+="":Array.isArray(V)&&(V=S.map(V,function(oe){return oe==null?"":oe+""})),y=S.valHooks[this.type]||S.valHooks[this.nodeName.toLowerCase()],(!y||!("set"in y)||y.set(this,V,"value")===void 0)&&(this.value=V))})):L?(y=S.valHooks[L.type]||S.valHooks[L.nodeName.toLowerCase()],y&&"get"in y&&(C=y.get(L,"value"))!==void 0?C:(C=L.value,typeof C=="string"?C.replace(zn,""):C??"")):void 0}}),S.extend({valHooks:{option:{get:function(h){var y=S.find.attr(h,"value");return y??ft(S.text(h))}},select:{get:function(h){var y,C,P,L=h.options,N=h.selectedIndex,V=h.type==="select-one",oe=V?null:[],te=V?N+1:L.length;for(N<0?P=te:P=V?N:0;P<te;P++)if(C=L[P],(C.selected||P===N)&&!C.disabled&&(!C.parentNode.disabled||!ue(C.parentNode,"optgroup"))){if(y=S(C).val(),V)return y;oe.push(y)}return oe},set:function(h,y){for(var C,P,L=h.options,N=S.makeArray(y),V=L.length;V--;)P=L[V],(P.selected=S.inArray(S.valHooks.option.get(P),N)>-1)&&(C=!0);return C||(h.selectedIndex=-1),N}}}}),S.each(["radio","checkbox"],function(){S.valHooks[this]={set:function(h,y){if(Array.isArray(y))return h.checked=S.inArray(S(h).val(),y)>-1}},A.checkOn||(S.valHooks[this].get=function(h){return h.getAttribute("value")===null?"on":h.value})});var En=e.location,Zr={guid:Date.now()},lr=/\?/;S.parseXML=function(h){var y,C;if(!h||typeof h!="string")return null;try{y=new e.DOMParser().parseFromString(h,"text/xml")}catch{}return C=y&&y.getElementsByTagName("parsererror")[0],(!y||C)&&S.error("Invalid XML: "+(C?S.map(C.childNodes,function(P){return P.textContent}).join(`
172
+ `):h)),y};var Yi=/^(?:focusinfocus|focusoutblur)$/,gi=function(h){h.stopPropagation()};S.extend(S.event,{trigger:function(h,y,C,P){var L,N,V,oe,te,pe,De,_e,xe=[C||_],Be=g.call(h,"type")?h.type:h,ot=g.call(h,"namespace")?h.namespace.split("."):[];if(N=_e=V=C=C||_,!(C.nodeType===3||C.nodeType===8)&&!Yi.test(Be+S.event.triggered)&&(Be.indexOf(".")>-1&&(ot=Be.split("."),Be=ot.shift(),ot.sort()),te=Be.indexOf(":")<0&&"on"+Be,h=h[S.expando]?h:new S.Event(Be,typeof h=="object"&&h),h.isTrigger=P?2:3,h.namespace=ot.join("."),h.rnamespace=h.namespace?new RegExp("(^|\\.)"+ot.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,h.result=void 0,h.target||(h.target=C),y=y==null?[h]:S.makeArray(y,[h]),De=S.event.special[Be]||{},!(!P&&De.trigger&&De.trigger.apply(C,y)===!1))){if(!P&&!De.noBubble&&!j(C)){for(oe=De.delegateType||Be,Yi.test(oe+Be)||(N=N.parentNode);N;N=N.parentNode)xe.push(N),V=N;V===(C.ownerDocument||_)&&xe.push(V.defaultView||V.parentWindow||e)}for(L=0;(N=xe[L++])&&!h.isPropagationStopped();)_e=N,h.type=L>1?oe:De.bindType||Be,pe=(ut.get(N,"events")||Object.create(null))[h.type]&&ut.get(N,"handle"),pe&&pe.apply(N,y),pe=te&&N[te],pe&&pe.apply&&fn(N)&&(h.result=pe.apply(N,y),h.result===!1&&h.preventDefault());return h.type=Be,!P&&!h.isDefaultPrevented()&&(!De._default||De._default.apply(xe.pop(),y)===!1)&&fn(C)&&te&&I(C[Be])&&!j(C)&&(V=C[te],V&&(C[te]=null),S.event.triggered=Be,h.isPropagationStopped()&&_e.addEventListener(Be,gi),C[Be](),h.isPropagationStopped()&&_e.removeEventListener(Be,gi),S.event.triggered=void 0,V&&(C[te]=V)),h.result}},simulate:function(h,y,C){var P=S.extend(new S.Event,C,{type:h,isSimulated:!0});S.event.trigger(P,null,y)}}),S.fn.extend({trigger:function(h,y){return this.each(function(){S.event.trigger(h,y,this)})},triggerHandler:function(h,y){var C=this[0];if(C)return S.event.trigger(h,y,C,!0)}});var Gi=/\[\]$/,Mr=/\r?\n/g,qi=/^(?:submit|button|image|reset|file)$/i,Ha=/^(?:input|select|textarea|keygen)/i;function Ls(h,y,C,P){var L;if(Array.isArray(y))S.each(y,function(N,V){C||Gi.test(h)?P(h,V):Ls(h+"["+(typeof V=="object"&&V!=null?N:"")+"]",V,C,P)});else if(!C&&re(y)==="object")for(L in y)Ls(h+"["+L+"]",y[L],C,P);else P(h,y)}S.param=function(h,y){var C,P=[],L=function(N,V){var oe=I(V)?V():V;P[P.length]=encodeURIComponent(N)+"="+encodeURIComponent(oe??"")};if(h==null)return"";if(Array.isArray(h)||h.jquery&&!S.isPlainObject(h))S.each(h,function(){L(this.name,this.value)});else for(C in h)Ls(C,h[C],y,L);return P.join("&")},S.fn.extend({serialize:function(){return S.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var h=S.prop(this,"elements");return h?S.makeArray(h):this}).filter(function(){var h=this.type;return this.name&&!S(this).is(":disabled")&&Ha.test(this.nodeName)&&!qi.test(h)&&(this.checked||!Wt.test(h))}).map(function(h,y){var C=S(this).val();return C==null?null:Array.isArray(C)?S.map(C,function(P){return{name:y.name,value:P.replace(Mr,`\r
173
+ `)}}):{name:y.name,value:C.replace(Mr,`\r
174
+ `)}}).get()}});var rs=/%20/g,xr=/#.*$/,Ua=/([?&])_=[^&]*/,mi=/^(.*?):[ \t]*([^\r\n]*)$/mg,Fs=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,is=/^(?:GET|HEAD)$/,rn=/^\/\//,Gt={},Kt={},Ri="*/".concat("*"),Jr=_.createElement("a");Jr.href=En.href;function Io(h){return function(y,C){typeof y!="string"&&(C=y,y="*");var P,L=0,N=y.toLowerCase().match(ct)||[];if(I(C))for(;P=N[L++];)P[0]==="+"?(P=P.slice(1)||"*",(h[P]=h[P]||[]).unshift(C)):(h[P]=h[P]||[]).push(C)}}function vi(h,y,C,P){var L={},N=h===Kt;function V(oe){var te;return L[oe]=!0,S.each(h[oe]||[],function(pe,De){var _e=De(y,C,P);if(typeof _e=="string"&&!N&&!L[_e])return y.dataTypes.unshift(_e),V(_e),!1;if(N)return!(te=_e)}),te}return V(y.dataTypes[0])||!L["*"]&&V("*")}function ur(h,y){var C,P,L=S.ajaxSettings.flatOptions||{};for(C in y)y[C]!==void 0&&((L[C]?h:P||(P={}))[C]=y[C]);return P&&S.extend(!0,h,P),h}function Ns(h,y,C){for(var P,L,N,V,oe=h.contents,te=h.dataTypes;te[0]==="*";)te.shift(),P===void 0&&(P=h.mimeType||y.getResponseHeader("Content-Type"));if(P){for(L in oe)if(oe[L]&&oe[L].test(P)){te.unshift(L);break}}if(te[0]in C)N=te[0];else{for(L in C){if(!te[0]||h.converters[L+" "+te[0]]){N=L;break}V||(V=L)}N=N||V}if(N)return N!==te[0]&&te.unshift(N),C[N]}function co(h,y,C,P){var L,N,V,oe,te,pe={},De=h.dataTypes.slice();if(De[1])for(V in h.converters)pe[V.toLowerCase()]=h.converters[V];for(N=De.shift();N;)if(h.responseFields[N]&&(C[h.responseFields[N]]=y),!te&&P&&h.dataFilter&&(y=h.dataFilter(y,h.dataType)),te=N,N=De.shift(),N){if(N==="*")N=te;else if(te!=="*"&&te!==N){if(V=pe[te+" "+N]||pe["* "+N],!V){for(L in pe)if(oe=L.split(" "),oe[1]===N&&(V=pe[te+" "+oe[0]]||pe["* "+oe[0]],V)){V===!0?V=pe[L]:pe[L]!==!0&&(N=oe[0],De.unshift(oe[1]));break}}if(V!==!0)if(V&&h.throws)y=V(y);else try{y=V(y)}catch(_e){return{state:"parsererror",error:V?_e:"No conversion from "+te+" to "+N}}}}return{state:"success",data:y}}S.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:En.href,type:"GET",isLocal:Fs.test(En.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Ri,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":S.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(h,y){return y?ur(ur(h,S.ajaxSettings),y):ur(S.ajaxSettings,h)},ajaxPrefilter:Io(Gt),ajaxTransport:Io(Kt),ajax:function(h,y){typeof h=="object"&&(y=h,h=void 0),y=y||{};var C,P,L,N,V,oe,te,pe,De,_e,xe=S.ajaxSetup({},y),Be=xe.context||xe,ot=xe.context&&(Be.nodeType||Be.jquery)?S(Be):S.event,Tt=S.Deferred(),Et=S.Callbacks("once memory"),Rn=xe.statusCode||{},un={},Lr={},Fr="canceled",Lt={readyState:0,getResponseHeader:function(jt){var Qt;if(te){if(!N)for(N={};Qt=mi.exec(L);)N[Qt[1].toLowerCase()+" "]=(N[Qt[1].toLowerCase()+" "]||[]).concat(Qt[2]);Qt=N[jt.toLowerCase()+" "]}return Qt==null?null:Qt.join(", ")},getAllResponseHeaders:function(){return te?L:null},setRequestHeader:function(jt,Qt){return te==null&&(jt=Lr[jt.toLowerCase()]=Lr[jt.toLowerCase()]||jt,un[jt]=Qt),this},overrideMimeType:function(jt){return te==null&&(xe.mimeType=jt),this},statusCode:function(jt){var Qt;if(jt)if(te)Lt.always(jt[Lt.status]);else for(Qt in jt)Rn[Qt]=[Rn[Qt],jt[Qt]];return this},abort:function(jt){var Qt=jt||Fr;return C&&C.abort(Qt),Nr(0,Qt),this}};if(Tt.promise(Lt),xe.url=((h||xe.url||En.href)+"").replace(rn,En.protocol+"//"),xe.type=y.method||y.type||xe.method||xe.type,xe.dataTypes=(xe.dataType||"*").toLowerCase().match(ct)||[""],xe.crossDomain==null){oe=_.createElement("a");try{oe.href=xe.url,oe.href=oe.href,xe.crossDomain=Jr.protocol+"//"+Jr.host!=oe.protocol+"//"+oe.host}catch{xe.crossDomain=!0}}if(xe.data&&xe.processData&&typeof xe.data!="string"&&(xe.data=S.param(xe.data,xe.traditional)),vi(Gt,xe,y,Lt),te)return Lt;pe=S.event&&xe.global,pe&&S.active++===0&&S.event.trigger("ajaxStart"),xe.type=xe.type.toUpperCase(),xe.hasContent=!is.test(xe.type),P=xe.url.replace(xr,""),xe.hasContent?xe.data&&xe.processData&&(xe.contentType||"").indexOf("application/x-www-form-urlencoded")===0&&(xe.data=xe.data.replace(rs,"+")):(_e=xe.url.slice(P.length),xe.data&&(xe.processData||typeof xe.data=="string")&&(P+=(lr.test(P)?"&":"?")+xe.data,delete xe.data),xe.cache===!1&&(P=P.replace(Ua,"$1"),_e=(lr.test(P)?"&":"?")+"_="+Zr.guid+++_e),xe.url=P+_e),xe.ifModified&&(S.lastModified[P]&&Lt.setRequestHeader("If-Modified-Since",S.lastModified[P]),S.etag[P]&&Lt.setRequestHeader("If-None-Match",S.etag[P])),(xe.data&&xe.hasContent&&xe.contentType!==!1||y.contentType)&&Lt.setRequestHeader("Content-Type",xe.contentType),Lt.setRequestHeader("Accept",xe.dataTypes[0]&&xe.accepts[xe.dataTypes[0]]?xe.accepts[xe.dataTypes[0]]+(xe.dataTypes[0]!=="*"?", "+Ri+"; q=0.01":""):xe.accepts["*"]);for(De in xe.headers)Lt.setRequestHeader(De,xe.headers[De]);if(xe.beforeSend&&(xe.beforeSend.call(Be,Lt,xe)===!1||te))return Lt.abort();if(Fr="abort",Et.add(xe.complete),Lt.done(xe.success),Lt.fail(xe.error),C=vi(Kt,xe,y,Lt),!C)Nr(-1,"No Transport");else{if(Lt.readyState=1,pe&&ot.trigger("ajaxSend",[Lt,xe]),te)return Lt;xe.async&&xe.timeout>0&&(V=e.setTimeout(function(){Lt.abort("timeout")},xe.timeout));try{te=!1,C.send(un,Nr)}catch(jt){if(te)throw jt;Nr(-1,jt)}}function Nr(jt,Qt,ho,po){var Sr,D,M,U,Q,ye=Qt;te||(te=!0,V&&e.clearTimeout(V),C=void 0,L=po||"",Lt.readyState=jt>0?4:0,Sr=jt>=200&&jt<300||jt===304,ho&&(U=Ns(xe,Lt,ho)),!Sr&&S.inArray("script",xe.dataTypes)>-1&&S.inArray("json",xe.dataTypes)<0&&(xe.converters["text script"]=function(){}),U=co(xe,U,Lt,Sr),Sr?(xe.ifModified&&(Q=Lt.getResponseHeader("Last-Modified"),Q&&(S.lastModified[P]=Q),Q=Lt.getResponseHeader("etag"),Q&&(S.etag[P]=Q)),jt===204||xe.type==="HEAD"?ye="nocontent":jt===304?ye="notmodified":(ye=U.state,D=U.data,M=U.error,Sr=!M)):(M=ye,(jt||!ye)&&(ye="error",jt<0&&(jt=0))),Lt.status=jt,Lt.statusText=(Qt||ye)+"",Sr?Tt.resolveWith(Be,[D,ye,Lt]):Tt.rejectWith(Be,[Lt,ye,M]),Lt.statusCode(Rn),Rn=void 0,pe&&ot.trigger(Sr?"ajaxSuccess":"ajaxError",[Lt,xe,Sr?D:M]),Et.fireWith(Be,[Lt,ye]),pe&&(ot.trigger("ajaxComplete",[Lt,xe]),--S.active||S.event.trigger("ajaxStop")))}return Lt},getJSON:function(h,y,C){return S.get(h,y,C,"json")},getScript:function(h,y){return S.get(h,void 0,y,"script")}}),S.each(["get","post"],function(h,y){S[y]=function(C,P,L,N){return I(P)&&(N=N||L,L=P,P=void 0),S.ajax(S.extend({url:C,type:y,dataType:N,data:P,success:L},S.isPlainObject(C)&&C))}}),S.ajaxPrefilter(function(h){var y;for(y in h.headers)y.toLowerCase()==="content-type"&&(h.contentType=h.headers[y]||"")}),S._evalUrl=function(h,y,C){return S.ajax({url:h,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(P){S.globalEval(P,y,C)}})},S.fn.extend({wrapAll:function(h){var y;return this[0]&&(I(h)&&(h=h.call(this[0])),y=S(h,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&y.insertBefore(this[0]),y.map(function(){for(var C=this;C.firstElementChild;)C=C.firstElementChild;return C}).append(this)),this},wrapInner:function(h){return I(h)?this.each(function(y){S(this).wrapInner(h.call(this,y))}):this.each(function(){var y=S(this),C=y.contents();C.length?C.wrapAll(h):y.append(h)})},wrap:function(h){var y=I(h);return this.each(function(C){S(this).wrapAll(y?h.call(this,C):h)})},unwrap:function(h){return this.parent(h).not("body").each(function(){S(this).replaceWith(this.childNodes)}),this}}),S.expr.pseudos.hidden=function(h){return!S.expr.pseudos.visible(h)},S.expr.pseudos.visible=function(h){return!!(h.offsetWidth||h.offsetHeight||h.getClientRects().length)},S.ajaxSettings.xhr=function(){try{return new e.XMLHttpRequest}catch{}};var aa={0:200,1223:204},ln=S.ajaxSettings.xhr();A.cors=!!ln&&"withCredentials"in ln,A.ajax=ln=!!ln,S.ajaxTransport(function(h){var y,C;if(A.cors||ln&&!h.crossDomain)return{send:function(P,L){var N,V=h.xhr();if(V.open(h.type,h.url,h.async,h.username,h.password),h.xhrFields)for(N in h.xhrFields)V[N]=h.xhrFields[N];h.mimeType&&V.overrideMimeType&&V.overrideMimeType(h.mimeType),!h.crossDomain&&!P["X-Requested-With"]&&(P["X-Requested-With"]="XMLHttpRequest");for(N in P)V.setRequestHeader(N,P[N]);y=function(oe){return function(){y&&(y=C=V.onload=V.onerror=V.onabort=V.ontimeout=V.onreadystatechange=null,oe==="abort"?V.abort():oe==="error"?typeof V.status!="number"?L(0,"error"):L(V.status,V.statusText):L(aa[V.status]||V.status,V.statusText,(V.responseType||"text")!=="text"||typeof V.responseText!="string"?{binary:V.response}:{text:V.responseText},V.getAllResponseHeaders()))}},V.onload=y(),C=V.onerror=V.ontimeout=y("error"),V.onabort!==void 0?V.onabort=C:V.onreadystatechange=function(){V.readyState===4&&e.setTimeout(function(){y&&C()})},y=y("abort");try{V.send(h.hasContent&&h.data||null)}catch(oe){if(y)throw oe}},abort:function(){y&&y()}}}),S.ajaxPrefilter(function(h){h.crossDomain&&(h.contents.script=!1)}),S.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(h){return S.globalEval(h),h}}}),S.ajaxPrefilter("script",function(h){h.cache===void 0&&(h.cache=!1),h.crossDomain&&(h.type="GET")}),S.ajaxTransport("script",function(h){if(h.crossDomain||h.scriptAttrs){var y,C;return{send:function(P,L){y=S("<script>").attr(h.scriptAttrs||{}).prop({charset:h.scriptCharset,src:h.url}).on("load error",C=function(N){y.remove(),C=null,N&&L(N.type==="error"?404:200,N.type)}),_.head.appendChild(y[0])},abort:function(){C&&C()}}}});var Mo=[],yi=/(=)\?(?=&|$)|\?\?/;S.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var h=Mo.pop()||S.expando+"_"+Zr.guid++;return this[h]=!0,h}}),S.ajaxPrefilter("json jsonp",function(h,y,C){var P,L,N,V=h.jsonp!==!1&&(yi.test(h.url)?"url":typeof h.data=="string"&&(h.contentType||"").indexOf("application/x-www-form-urlencoded")===0&&yi.test(h.data)&&"data");if(V||h.dataTypes[0]==="jsonp")return P=h.jsonpCallback=I(h.jsonpCallback)?h.jsonpCallback():h.jsonpCallback,V?h[V]=h[V].replace(yi,"$1"+P):h.jsonp!==!1&&(h.url+=(lr.test(h.url)?"&":"?")+h.jsonp+"="+P),h.converters["script json"]=function(){return N||S.error(P+" was not called"),N[0]},h.dataTypes[0]="json",L=e[P],e[P]=function(){N=arguments},C.always(function(){L===void 0?S(e).removeProp(P):e[P]=L,h[P]&&(h.jsonpCallback=y.jsonpCallback,Mo.push(P)),N&&I(L)&&L(N[0]),N=L=void 0}),"script"}),A.createHTMLDocument=function(){var h=_.implementation.createHTMLDocument("").body;return h.innerHTML="<form></form><form></form>",h.childNodes.length===2}(),S.parseHTML=function(h,y,C){if(typeof h!="string")return[];typeof y=="boolean"&&(C=y,y=!1);var P,L,N;return y||(A.createHTMLDocument?(y=_.implementation.createHTMLDocument(""),P=y.createElement("base"),P.href=_.location.href,y.head.appendChild(P)):y=_),L=Ye.exec(h),N=!C&&[],L?[y.createElement(L[1])]:(L=Tn([h],y,N),N&&N.length&&S(N).remove(),S.merge([],L.childNodes))},S.fn.load=function(h,y,C){var P,L,N,V=this,oe=h.indexOf(" ");return oe>-1&&(P=ft(h.slice(oe)),h=h.slice(0,oe)),I(y)?(C=y,y=void 0):y&&typeof y=="object"&&(L="POST"),V.length>0&&S.ajax({url:h,type:L||"GET",dataType:"html",data:y}).done(function(te){N=arguments,V.html(P?S("<div>").append(S.parseHTML(te)).find(P):te)}).always(C&&function(te,pe){V.each(function(){C.apply(this,N||[te.responseText,pe,te])})}),this},S.expr.pseudos.animated=function(h){return S.grep(S.timers,function(y){return h===y.elem}).length},S.offset={setOffset:function(h,y,C){var P,L,N,V,oe,te,pe,De=S.css(h,"position"),_e=S(h),xe={};De==="static"&&(h.style.position="relative"),oe=_e.offset(),N=S.css(h,"top"),te=S.css(h,"left"),pe=(De==="absolute"||De==="fixed")&&(N+te).indexOf("auto")>-1,pe?(P=_e.position(),V=P.top,L=P.left):(V=parseFloat(N)||0,L=parseFloat(te)||0),I(y)&&(y=y.call(h,C,S.extend({},oe))),y.top!=null&&(xe.top=y.top-oe.top+V),y.left!=null&&(xe.left=y.left-oe.left+L),"using"in y?y.using.call(h,xe):_e.css(xe)}},S.fn.extend({offset:function(h){if(arguments.length)return h===void 0?this:this.each(function(L){S.offset.setOffset(this,h,L)});var y,C,P=this[0];if(P)return P.getClientRects().length?(y=P.getBoundingClientRect(),C=P.ownerDocument.defaultView,{top:y.top+C.pageYOffset,left:y.left+C.pageXOffset}):{top:0,left:0}},position:function(){if(this[0]){var h,y,C,P=this[0],L={top:0,left:0};if(S.css(P,"position")==="fixed")y=P.getBoundingClientRect();else{for(y=this.offset(),C=P.ownerDocument,h=P.offsetParent||C.documentElement;h&&(h===C.body||h===C.documentElement)&&S.css(h,"position")==="static";)h=h.parentNode;h&&h!==P&&h.nodeType===1&&(L=S(h).offset(),L.top+=S.css(h,"borderTopWidth",!0),L.left+=S.css(h,"borderLeftWidth",!0))}return{top:y.top-L.top-S.css(P,"marginTop",!0),left:y.left-L.left-S.css(P,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var h=this.offsetParent;h&&S.css(h,"position")==="static";)h=h.offsetParent;return h||Pr})}}),S.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(h,y){var C=y==="pageYOffset";S.fn[h]=function(P){return Sn(this,function(L,N,V){var oe;if(j(L)?oe=L:L.nodeType===9&&(oe=L.defaultView),V===void 0)return oe?oe[y]:L[N];oe?oe.scrollTo(C?oe.pageXOffset:V,C?V:oe.pageYOffset):L[N]=V},h,P,arguments.length)}}),S.each(["top","left"],function(h,y){S.cssHooks[y]=ar(A.pixelPosition,function(C,P){if(P)return P=Oi(C,y),Xr.test(P)?S(C).position()[y]+"px":P})}),S.each({Height:"height",Width:"width"},function(h,y){S.each({padding:"inner"+h,content:y,"":"outer"+h},function(C,P){S.fn[P]=function(L,N){var V=arguments.length&&(C||typeof L!="boolean"),oe=C||(L===!0||N===!0?"margin":"border");return Sn(this,function(te,pe,De){var _e;return j(te)?P.indexOf("outer")===0?te["inner"+h]:te.document.documentElement["client"+h]:te.nodeType===9?(_e=te.documentElement,Math.max(te.body["scroll"+h],_e["scroll"+h],te.body["offset"+h],_e["offset"+h],_e["client"+h])):De===void 0?S.css(te,pe,oe):S.style(te,pe,De,oe)},y,V?L:void 0,V)}})}),S.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(h,y){S.fn[y]=function(C){return this.on(y,C)}}),S.fn.extend({bind:function(h,y,C){return this.on(h,null,y,C)},unbind:function(h,y){return this.off(h,null,y)},delegate:function(h,y,C,P){return this.on(y,h,C,P)},undelegate:function(h,y,C){return arguments.length===1?this.off(h,"**"):this.off(y,h||"**",C)},hover:function(h,y){return this.on("mouseenter",h).on("mouseleave",y||h)}}),S.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(h,y){S.fn[y]=function(C,P){return arguments.length>0?this.on(y,null,C,P):this.trigger(y)}});var la=/^[\s\uFEFF\xA0]+|([^\s\uFEFF\xA0])[\s\uFEFF\xA0]+$/g;S.proxy=function(h,y){var C,P,L;if(typeof y=="string"&&(C=h[y],y=h,h=C),!!I(h))return P=o.call(arguments,2),L=function(){return h.apply(y||this,P.concat(o.call(arguments)))},L.guid=h.guid=h.guid||S.guid++,L},S.holdReady=function(h){h?S.readyWait++:S.ready(!0)},S.isArray=Array.isArray,S.parseJSON=JSON.parse,S.nodeName=ue,S.isFunction=I,S.isWindow=j,S.camelCase=sn,S.type=re,S.now=Date.now,S.isNumeric=function(h){var y=S.type(h);return(y==="number"||y==="string")&&!isNaN(h-parseFloat(h))},S.trim=function(h){return h==null?"":(h+"").replace(la,"$1")};var fo=e.jQuery,cr=e.$;return S.noConflict=function(h){return e.$===S&&(e.$=cr),h&&e.jQuery===S&&(e.jQuery=fo),S},typeof n>"u"&&(e.jQuery=e.$=S),S})})(jD);var BD=jD.exports;const f6=Pc(BD);var d6={exports:{}};/**
175
+ * @version: 3.1
176
+ * @author: Dan Grossman http://www.dangrossman.info/
177
+ * @copyright: Copyright (c) 2012-2019 Dan Grossman. All rights reserved.
178
+ * @license: Licensed under the MIT license. See http://www.opensource.org/licenses/mit-license.php
179
+ * @website: http://www.daterangepicker.com/
180
+ */(function(t){(function(e,n){if(t.exports){var r=typeof window<"u"?window.jQuery:void 0;r||(r=BD,r.fn||(r.fn={}));var i=typeof window<"u"&&typeof window.moment<"u"?window.moment:QA;t.exports=n(i,r)}else e.daterangepicker=n(e.moment,e.jQuery)})(Ei,function(e,n){var r=function(i,o,a){if(this.parentEl="body",this.element=n(i),this.startDate=e().startOf("day"),this.endDate=e().endOf("day"),this.minDate=!1,this.maxDate=!1,this.maxSpan=!1,this.autoApply=!1,this.singleDatePicker=!1,this.showDropdowns=!1,this.minYear=e().subtract(100,"year").format("YYYY"),this.maxYear=e().add(100,"year").format("YYYY"),this.showWeekNumbers=!1,this.showISOWeekNumbers=!1,this.showCustomRangeLabel=!0,this.timePicker=!1,this.timePicker24Hour=!1,this.timePickerIncrement=1,this.timePickerSeconds=!1,this.linkedCalendars=!0,this.autoUpdateInput=!0,this.alwaysShowCalendars=!1,this.ranges={},this.opens="right",this.element.hasClass("pull-right")&&(this.opens="left"),this.drops="down",this.element.hasClass("dropup")&&(this.drops="up"),this.buttonClasses="btn btn-sm",this.applyButtonClasses="btn-primary",this.cancelButtonClasses="btn-default",this.locale={direction:"ltr",format:e.localeData().longDateFormat("L"),separator:" - ",applyLabel:"Apply",cancelLabel:"Cancel",weekLabel:"W",customRangeLabel:"Custom Range",daysOfWeek:e.weekdaysMin(),monthNames:e.monthsShort(),firstDay:e.localeData().firstDayOfWeek()},this.callback=function(){},this.isShowing=!1,this.leftCalendar={},this.rightCalendar={},(typeof o!="object"||o===null)&&(o={}),o=n.extend(this.element.data(),o),typeof o.template!="string"&&!(o.template instanceof n)&&(o.template='<div class="daterangepicker"><div class="ranges"></div><div class="drp-calendar left"><div class="calendar-table"></div><div class="calendar-time"></div></div><div class="drp-calendar right"><div class="calendar-table"></div><div class="calendar-time"></div></div><div class="drp-buttons"><span class="drp-selected"></span><button class="cancelBtn" type="button"></button><button class="applyBtn" disabled="disabled" type="button"></button> </div></div>'),this.parentEl=o.parentEl&&n(o.parentEl).length?n(o.parentEl):n(this.parentEl),this.container=n(o.template).appendTo(this.parentEl),typeof o.locale=="object"&&(typeof o.locale.direction=="string"&&(this.locale.direction=o.locale.direction),typeof o.locale.format=="string"&&(this.locale.format=o.locale.format),typeof o.locale.separator=="string"&&(this.locale.separator=o.locale.separator),typeof o.locale.daysOfWeek=="object"&&(this.locale.daysOfWeek=o.locale.daysOfWeek.slice()),typeof o.locale.monthNames=="object"&&(this.locale.monthNames=o.locale.monthNames.slice()),typeof o.locale.firstDay=="number"&&(this.locale.firstDay=o.locale.firstDay),typeof o.locale.applyLabel=="string"&&(this.locale.applyLabel=o.locale.applyLabel),typeof o.locale.cancelLabel=="string"&&(this.locale.cancelLabel=o.locale.cancelLabel),typeof o.locale.weekLabel=="string"&&(this.locale.weekLabel=o.locale.weekLabel),typeof o.locale.customRangeLabel=="string")){var c=document.createElement("textarea");c.innerHTML=o.locale.customRangeLabel;var f=c.value;this.locale.customRangeLabel=f}if(this.container.addClass(this.locale.direction),typeof o.startDate=="string"&&(this.startDate=e(o.startDate,this.locale.format)),typeof o.endDate=="string"&&(this.endDate=e(o.endDate,this.locale.format)),typeof o.minDate=="string"&&(this.minDate=e(o.minDate,this.locale.format)),typeof o.maxDate=="string"&&(this.maxDate=e(o.maxDate,this.locale.format)),typeof o.startDate=="object"&&(this.startDate=e(o.startDate)),typeof o.endDate=="object"&&(this.endDate=e(o.endDate)),typeof o.minDate=="object"&&(this.minDate=e(o.minDate)),typeof o.maxDate=="object"&&(this.maxDate=e(o.maxDate)),this.minDate&&this.startDate.isBefore(this.minDate)&&(this.startDate=this.minDate.clone()),this.maxDate&&this.endDate.isAfter(this.maxDate)&&(this.endDate=this.maxDate.clone()),typeof o.applyButtonClasses=="string"&&(this.applyButtonClasses=o.applyButtonClasses),typeof o.applyClass=="string"&&(this.applyButtonClasses=o.applyClass),typeof o.cancelButtonClasses=="string"&&(this.cancelButtonClasses=o.cancelButtonClasses),typeof o.cancelClass=="string"&&(this.cancelButtonClasses=o.cancelClass),typeof o.maxSpan=="object"&&(this.maxSpan=o.maxSpan),typeof o.dateLimit=="object"&&(this.maxSpan=o.dateLimit),typeof o.opens=="string"&&(this.opens=o.opens),typeof o.drops=="string"&&(this.drops=o.drops),typeof o.showWeekNumbers=="boolean"&&(this.showWeekNumbers=o.showWeekNumbers),typeof o.showISOWeekNumbers=="boolean"&&(this.showISOWeekNumbers=o.showISOWeekNumbers),typeof o.buttonClasses=="string"&&(this.buttonClasses=o.buttonClasses),typeof o.buttonClasses=="object"&&(this.buttonClasses=o.buttonClasses.join(" ")),typeof o.showDropdowns=="boolean"&&(this.showDropdowns=o.showDropdowns),typeof o.minYear=="number"&&(this.minYear=o.minYear),typeof o.maxYear=="number"&&(this.maxYear=o.maxYear),typeof o.showCustomRangeLabel=="boolean"&&(this.showCustomRangeLabel=o.showCustomRangeLabel),typeof o.singleDatePicker=="boolean"&&(this.singleDatePicker=o.singleDatePicker,this.singleDatePicker&&(this.endDate=this.startDate.clone())),typeof o.timePicker=="boolean"&&(this.timePicker=o.timePicker),typeof o.timePickerSeconds=="boolean"&&(this.timePickerSeconds=o.timePickerSeconds),typeof o.timePickerIncrement=="number"&&(this.timePickerIncrement=o.timePickerIncrement),typeof o.timePicker24Hour=="boolean"&&(this.timePicker24Hour=o.timePicker24Hour),typeof o.autoApply=="boolean"&&(this.autoApply=o.autoApply),typeof o.autoUpdateInput=="boolean"&&(this.autoUpdateInput=o.autoUpdateInput),typeof o.linkedCalendars=="boolean"&&(this.linkedCalendars=o.linkedCalendars),typeof o.isInvalidDate=="function"&&(this.isInvalidDate=o.isInvalidDate),typeof o.isCustomDate=="function"&&(this.isCustomDate=o.isCustomDate),typeof o.alwaysShowCalendars=="boolean"&&(this.alwaysShowCalendars=o.alwaysShowCalendars),this.locale.firstDay!=0)for(var p=this.locale.firstDay;p>0;)this.locale.daysOfWeek.push(this.locale.daysOfWeek.shift()),p--;var w,g,T;if(typeof o.startDate>"u"&&typeof o.endDate>"u"&&n(this.element).is(":text")){var E=n(this.element).val(),A=E.split(this.locale.separator);w=g=null,A.length==2?(w=e(A[0],this.locale.format),g=e(A[1],this.locale.format)):this.singleDatePicker&&E!==""&&(w=e(E,this.locale.format),g=e(E,this.locale.format)),w!==null&&g!==null&&(this.setStartDate(w),this.setEndDate(g))}if(typeof o.ranges=="object"){for(T in o.ranges){typeof o.ranges[T][0]=="string"?w=e(o.ranges[T][0],this.locale.format):w=e(o.ranges[T][0]),typeof o.ranges[T][1]=="string"?g=e(o.ranges[T][1],this.locale.format):g=e(o.ranges[T][1]),this.minDate&&w.isBefore(this.minDate)&&(w=this.minDate.clone());var I=this.maxDate;if(this.maxSpan&&I&&w.clone().add(this.maxSpan).isAfter(I)&&(I=w.clone().add(this.maxSpan)),I&&g.isAfter(I)&&(g=I.clone()),!(this.minDate&&g.isBefore(this.minDate,this.timepicker?"minute":"day")||I&&w.isAfter(I,this.timepicker?"minute":"day"))){var c=document.createElement("textarea");c.innerHTML=T;var f=c.value;this.ranges[f]=[w,g]}}var j="<ul>";for(T in this.ranges)j+='<li data-range-key="'+T+'">'+T+"</li>";this.showCustomRangeLabel&&(j+='<li data-range-key="'+this.locale.customRangeLabel+'">'+this.locale.customRangeLabel+"</li>"),j+="</ul>",this.container.find(".ranges").prepend(j)}typeof a=="function"&&(this.callback=a),this.timePicker||(this.startDate=this.startDate.startOf("day"),this.endDate=this.endDate.endOf("day"),this.container.find(".calendar-time").hide()),this.timePicker&&this.autoApply&&(this.autoApply=!1),this.autoApply&&this.container.addClass("auto-apply"),typeof o.ranges=="object"&&this.container.addClass("show-ranges"),this.singleDatePicker&&(this.container.addClass("single"),this.container.find(".drp-calendar.left").addClass("single"),this.container.find(".drp-calendar.left").show(),this.container.find(".drp-calendar.right").hide(),!this.timePicker&&this.autoApply&&this.container.addClass("auto-apply")),(typeof o.ranges>"u"&&!this.singleDatePicker||this.alwaysShowCalendars)&&this.container.addClass("show-calendar"),this.container.addClass("opens"+this.opens),this.container.find(".applyBtn, .cancelBtn").addClass(this.buttonClasses),this.applyButtonClasses.length&&this.container.find(".applyBtn").addClass(this.applyButtonClasses),this.cancelButtonClasses.length&&this.container.find(".cancelBtn").addClass(this.cancelButtonClasses),this.container.find(".applyBtn").html(this.locale.applyLabel),this.container.find(".cancelBtn").html(this.locale.cancelLabel),this.container.find(".drp-calendar").on("click.daterangepicker",".prev",n.proxy(this.clickPrev,this)).on("click.daterangepicker",".next",n.proxy(this.clickNext,this)).on("mousedown.daterangepicker","td.available",n.proxy(this.clickDate,this)).on("mouseenter.daterangepicker","td.available",n.proxy(this.hoverDate,this)).on("change.daterangepicker","select.yearselect",n.proxy(this.monthOrYearChanged,this)).on("change.daterangepicker","select.monthselect",n.proxy(this.monthOrYearChanged,this)).on("change.daterangepicker","select.hourselect,select.minuteselect,select.secondselect,select.ampmselect",n.proxy(this.timeChanged,this)),this.container.find(".ranges").on("click.daterangepicker","li",n.proxy(this.clickRange,this)),this.container.find(".drp-buttons").on("click.daterangepicker","button.applyBtn",n.proxy(this.clickApply,this)).on("click.daterangepicker","button.cancelBtn",n.proxy(this.clickCancel,this)),this.element.is("input")||this.element.is("button")?this.element.on({"click.daterangepicker":n.proxy(this.show,this),"focus.daterangepicker":n.proxy(this.show,this),"keyup.daterangepicker":n.proxy(this.elementChanged,this),"keydown.daterangepicker":n.proxy(this.keydown,this)}):(this.element.on("click.daterangepicker",n.proxy(this.toggle,this)),this.element.on("keydown.daterangepicker",n.proxy(this.toggle,this))),this.updateElement()};return r.prototype={constructor:r,setStartDate:function(i){typeof i=="string"&&(this.startDate=e(i,this.locale.format)),typeof i=="object"&&(this.startDate=e(i)),this.timePicker||(this.startDate=this.startDate.startOf("day")),this.timePicker&&this.timePickerIncrement&&this.startDate.minute(Math.round(this.startDate.minute()/this.timePickerIncrement)*this.timePickerIncrement),this.minDate&&this.startDate.isBefore(this.minDate)&&(this.startDate=this.minDate.clone(),this.timePicker&&this.timePickerIncrement&&this.startDate.minute(Math.round(this.startDate.minute()/this.timePickerIncrement)*this.timePickerIncrement)),this.maxDate&&this.startDate.isAfter(this.maxDate)&&(this.startDate=this.maxDate.clone(),this.timePicker&&this.timePickerIncrement&&this.startDate.minute(Math.floor(this.startDate.minute()/this.timePickerIncrement)*this.timePickerIncrement)),this.isShowing||this.updateElement(),this.updateMonthsInView()},setEndDate:function(i){typeof i=="string"&&(this.endDate=e(i,this.locale.format)),typeof i=="object"&&(this.endDate=e(i)),this.timePicker||(this.endDate=this.endDate.endOf("day")),this.timePicker&&this.timePickerIncrement&&this.endDate.minute(Math.round(this.endDate.minute()/this.timePickerIncrement)*this.timePickerIncrement),this.endDate.isBefore(this.startDate)&&(this.endDate=this.startDate.clone()),this.maxDate&&this.endDate.isAfter(this.maxDate)&&(this.endDate=this.maxDate.clone()),this.maxSpan&&this.startDate.clone().add(this.maxSpan).isBefore(this.endDate)&&(this.endDate=this.startDate.clone().add(this.maxSpan)),this.previousRightTime=this.endDate.clone(),this.container.find(".drp-selected").html(this.startDate.format(this.locale.format)+this.locale.separator+this.endDate.format(this.locale.format)),this.isShowing||this.updateElement(),this.updateMonthsInView()},isInvalidDate:function(){return!1},isCustomDate:function(){return!1},updateView:function(){this.timePicker&&(this.renderTimePicker("left"),this.renderTimePicker("right"),this.endDate?this.container.find(".right .calendar-time select").prop("disabled",!1).removeClass("disabled"):this.container.find(".right .calendar-time select").prop("disabled",!0).addClass("disabled")),this.endDate&&this.container.find(".drp-selected").html(this.startDate.format(this.locale.format)+this.locale.separator+this.endDate.format(this.locale.format)),this.updateMonthsInView(),this.updateCalendars(),this.updateFormInputs()},updateMonthsInView:function(){if(this.endDate){if(!this.singleDatePicker&&this.leftCalendar.month&&this.rightCalendar.month&&(this.startDate.format("YYYY-MM")==this.leftCalendar.month.format("YYYY-MM")||this.startDate.format("YYYY-MM")==this.rightCalendar.month.format("YYYY-MM"))&&(this.endDate.format("YYYY-MM")==this.leftCalendar.month.format("YYYY-MM")||this.endDate.format("YYYY-MM")==this.rightCalendar.month.format("YYYY-MM")))return;this.leftCalendar.month=this.startDate.clone().date(2),!this.linkedCalendars&&(this.endDate.month()!=this.startDate.month()||this.endDate.year()!=this.startDate.year())?this.rightCalendar.month=this.endDate.clone().date(2):this.rightCalendar.month=this.startDate.clone().date(2).add(1,"month")}else this.leftCalendar.month.format("YYYY-MM")!=this.startDate.format("YYYY-MM")&&this.rightCalendar.month.format("YYYY-MM")!=this.startDate.format("YYYY-MM")&&(this.leftCalendar.month=this.startDate.clone().date(2),this.rightCalendar.month=this.startDate.clone().date(2).add(1,"month"));this.maxDate&&this.linkedCalendars&&!this.singleDatePicker&&this.rightCalendar.month>this.maxDate&&(this.rightCalendar.month=this.maxDate.clone().date(2),this.leftCalendar.month=this.maxDate.clone().date(2).subtract(1,"month"))},updateCalendars:function(){if(this.timePicker){var i,o,a;if(this.endDate){if(i=parseInt(this.container.find(".left .hourselect").val(),10),o=parseInt(this.container.find(".left .minuteselect").val(),10),isNaN(o)&&(o=parseInt(this.container.find(".left .minuteselect option:last").val(),10)),a=this.timePickerSeconds?parseInt(this.container.find(".left .secondselect").val(),10):0,!this.timePicker24Hour){var c=this.container.find(".left .ampmselect").val();c==="PM"&&i<12&&(i+=12),c==="AM"&&i===12&&(i=0)}}else if(i=parseInt(this.container.find(".right .hourselect").val(),10),o=parseInt(this.container.find(".right .minuteselect").val(),10),isNaN(o)&&(o=parseInt(this.container.find(".right .minuteselect option:last").val(),10)),a=this.timePickerSeconds?parseInt(this.container.find(".right .secondselect").val(),10):0,!this.timePicker24Hour){var c=this.container.find(".right .ampmselect").val();c==="PM"&&i<12&&(i+=12),c==="AM"&&i===12&&(i=0)}this.leftCalendar.month.hour(i).minute(o).second(a),this.rightCalendar.month.hour(i).minute(o).second(a)}this.renderCalendar("left"),this.renderCalendar("right"),this.container.find(".ranges li").removeClass("active"),this.endDate!=null&&this.calculateChosenLabel()},renderCalendar:function(i){var _=i=="left"?this.leftCalendar:this.rightCalendar,o=_.month.month(),a=_.month.year(),c=_.month.hour(),f=_.month.minute(),p=_.month.second(),w=e([a,o]).daysInMonth(),g=e([a,o,1]),T=e([a,o,w]),E=e(g).subtract(1,"month").month(),A=e(g).subtract(1,"month").year(),I=e([A,E]).daysInMonth(),j=g.day(),_=[];_.firstDay=g,_.lastDay=T;for(var H=0;H<6;H++)_[H]=[];var W=I-j+this.locale.firstDay+1;W>I&&(W-=7),j==this.locale.firstDay&&(W=I-6);for(var re=e([A,E,W,12,f,p]),Z,de,H=0,Z=0,de=0;H<42;H++,Z++,re=e(re).add(24,"hour"))H>0&&Z%7===0&&(Z=0,de++),_[de][Z]=re.clone().hour(c).minute(f).second(p),re.hour(12),this.minDate&&_[de][Z].format("YYYY-MM-DD")==this.minDate.format("YYYY-MM-DD")&&_[de][Z].isBefore(this.minDate)&&i=="left"&&(_[de][Z]=this.minDate.clone()),this.maxDate&&_[de][Z].format("YYYY-MM-DD")==this.maxDate.format("YYYY-MM-DD")&&_[de][Z].isAfter(this.maxDate)&&i=="right"&&(_[de][Z]=this.maxDate.clone());i=="left"?this.leftCalendar.calendar=_:this.rightCalendar.calendar=_;var S=i=="left"?this.minDate:this.startDate,le=this.maxDate;i=="left"?this.startDate:this.endDate,this.locale.direction=="ltr";var ue='<table class="table-condensed">';ue+="<thead>",ue+="<tr>",(this.showWeekNumbers||this.showISOWeekNumbers)&&(ue+="<th></th>"),(!S||S.isBefore(_.firstDay))&&(!this.linkedCalendars||i=="left")?ue+='<th class="prev available"><span></span></th>':ue+="<th></th>";var ze=this.locale.monthNames[_[1][1].month()]+_[1][1].format(" YYYY");if(this.showDropdowns){for(var Me=_[1][1].month(),Fe=_[1][1].year(),Ve=le&&le.year()||this.maxYear,Ue=S&&S.year()||this.minYear,he=Fe==Ue,ke=Fe==Ve,Oe='<select class="monthselect">',Ne=0;Ne<12;Ne++)(!he||S&&Ne>=S.month())&&(!ke||le&&Ne<=le.month())?Oe+="<option value='"+Ne+"'"+(Ne===Me?" selected='selected'":"")+">"+this.locale.monthNames[Ne]+"</option>":Oe+="<option value='"+Ne+"'"+(Ne===Me?" selected='selected'":"")+" disabled='disabled'>"+this.locale.monthNames[Ne]+"</option>";Oe+="</select>";for(var tt='<select class="yearselect">',me=Ue;me<=Ve;me++)tt+='<option value="'+me+'"'+(me===Fe?' selected="selected"':"")+">"+me+"</option>";tt+="</select>",ze=Oe+tt}if(ue+='<th colspan="5" class="month">'+ze+"</th>",(!le||le.isAfter(_.lastDay))&&(!this.linkedCalendars||i=="right"||this.singleDatePicker)?ue+='<th class="next available"><span></span></th>':ue+="<th></th>",ue+="</tr>",ue+="<tr>",(this.showWeekNumbers||this.showISOWeekNumbers)&&(ue+='<th class="week">'+this.locale.weekLabel+"</th>"),n.each(this.locale.daysOfWeek,function(Qe,it){ue+="<th>"+it+"</th>"}),ue+="</tr>",ue+="</thead>",ue+="<tbody>",this.endDate==null&&this.maxSpan){var Ee=this.startDate.clone().add(this.maxSpan).endOf("day");(!le||Ee.isBefore(le))&&(le=Ee)}for(var de=0;de<6;de++){ue+="<tr>",this.showWeekNumbers?ue+='<td class="week">'+_[de][0].week()+"</td>":this.showISOWeekNumbers&&(ue+='<td class="week">'+_[de][0].isoWeek()+"</td>");for(var Z=0;Z<7;Z++){var Ye=[];_[de][Z].isSame(new Date,"day")&&Ye.push("today"),_[de][Z].isoWeekday()>5&&Ye.push("weekend"),_[de][Z].month()!=_[1][1].month()&&Ye.push("off","ends"),this.minDate&&_[de][Z].isBefore(this.minDate,"day")&&Ye.push("off","disabled"),le&&_[de][Z].isAfter(le,"day")&&Ye.push("off","disabled"),this.isInvalidDate(_[de][Z])&&Ye.push("off","disabled"),_[de][Z].format("YYYY-MM-DD")==this.startDate.format("YYYY-MM-DD")&&Ye.push("active","start-date"),this.endDate!=null&&_[de][Z].format("YYYY-MM-DD")==this.endDate.format("YYYY-MM-DD")&&Ye.push("active","end-date"),this.endDate!=null&&_[de][Z]>this.startDate&&_[de][Z]<this.endDate&&Ye.push("in-range");var We=this.isCustomDate(_[de][Z]);We!==!1&&(typeof We=="string"?Ye.push(We):Array.prototype.push.apply(Ye,We));for(var Je="",Ze=!1,H=0;H<Ye.length;H++)Je+=Ye[H]+" ",Ye[H]=="disabled"&&(Ze=!0);Ze||(Je+="available"),ue+='<td class="'+Je.replace(/^\s+|\s+$/g,"")+'" data-title="r'+de+"c"+Z+'">'+_[de][Z].date()+"</td>"}ue+="</tr>"}ue+="</tbody>",ue+="</table>",this.container.find(".drp-calendar."+i+" .calendar-table").html(ue)},renderTimePicker:function(i){if(!(i=="right"&&!this.endDate)){var o,a,c,f=this.maxDate;if(this.maxSpan&&(!this.maxDate||this.startDate.clone().add(this.maxSpan).isBefore(this.maxDate))&&(f=this.startDate.clone().add(this.maxSpan)),i=="left")a=this.startDate.clone(),c=this.minDate;else if(i=="right"){a=this.endDate.clone(),c=this.startDate;var p=this.container.find(".drp-calendar.right .calendar-time");if(p.html()!=""&&(a.hour(isNaN(a.hour())?p.find(".hourselect option:selected").val():a.hour()),a.minute(isNaN(a.minute())?p.find(".minuteselect option:selected").val():a.minute()),a.second(isNaN(a.second())?p.find(".secondselect option:selected").val():a.second()),!this.timePicker24Hour)){var w=p.find(".ampmselect option:selected").val();w==="PM"&&a.hour()<12&&a.hour(a.hour()+12),w==="AM"&&a.hour()===12&&a.hour(0)}a.isBefore(this.startDate)&&(a=this.startDate.clone()),f&&a.isAfter(f)&&(a=f.clone())}o='<select class="hourselect">';for(var g=this.timePicker24Hour?0:1,T=this.timePicker24Hour?23:12,E=g;E<=T;E++){var A=E;this.timePicker24Hour||(A=a.hour()>=12?E==12?12:E+12:E==12?0:E);var I=a.clone().hour(A),j=!1;c&&I.minute(59).isBefore(c)&&(j=!0),f&&I.minute(0).isAfter(f)&&(j=!0),A==a.hour()&&!j?o+='<option value="'+E+'" selected="selected">'+E+"</option>":j?o+='<option value="'+E+'" disabled="disabled" class="disabled">'+E+"</option>":o+='<option value="'+E+'">'+E+"</option>"}o+="</select> ",o+=': <select class="minuteselect">';for(var E=0;E<60;E+=this.timePickerIncrement){var _=E<10?"0"+E:E,I=a.clone().minute(E),j=!1;c&&I.second(59).isBefore(c)&&(j=!0),f&&I.second(0).isAfter(f)&&(j=!0),a.minute()==E&&!j?o+='<option value="'+E+'" selected="selected">'+_+"</option>":j?o+='<option value="'+E+'" disabled="disabled" class="disabled">'+_+"</option>":o+='<option value="'+E+'">'+_+"</option>"}if(o+="</select> ",this.timePickerSeconds){o+=': <select class="secondselect">';for(var E=0;E<60;E++){var _=E<10?"0"+E:E,I=a.clone().second(E),j=!1;c&&I.isBefore(c)&&(j=!0),f&&I.isAfter(f)&&(j=!0),a.second()==E&&!j?o+='<option value="'+E+'" selected="selected">'+_+"</option>":j?o+='<option value="'+E+'" disabled="disabled" class="disabled">'+_+"</option>":o+='<option value="'+E+'">'+_+"</option>"}o+="</select> "}if(!this.timePicker24Hour){o+='<select class="ampmselect">';var H="",W="";c&&a.clone().hour(12).minute(0).second(0).isBefore(c)&&(H=' disabled="disabled" class="disabled"'),f&&a.clone().hour(0).minute(0).second(0).isAfter(f)&&(W=' disabled="disabled" class="disabled"'),a.hour()>=12?o+='<option value="AM"'+H+'>AM</option><option value="PM" selected="selected"'+W+">PM</option>":o+='<option value="AM" selected="selected"'+H+'>AM</option><option value="PM"'+W+">PM</option>",o+="</select>"}this.container.find(".drp-calendar."+i+" .calendar-time").html(o)}},updateFormInputs:function(){this.singleDatePicker||this.endDate&&(this.startDate.isBefore(this.endDate)||this.startDate.isSame(this.endDate))?this.container.find("button.applyBtn").prop("disabled",!1):this.container.find("button.applyBtn").prop("disabled",!0)},move:function(){var i={top:0,left:0},o,a=this.drops,c=n(window).width();switch(this.parentEl.is("body")||(i={top:this.parentEl.offset().top-this.parentEl.scrollTop(),left:this.parentEl.offset().left-this.parentEl.scrollLeft()},c=this.parentEl[0].clientWidth+this.parentEl.offset().left),a){case"auto":o=this.element.offset().top+this.element.outerHeight()-i.top,o+this.container.outerHeight()>=this.parentEl[0].scrollHeight&&(o=this.element.offset().top-this.container.outerHeight()-i.top,a="up");break;case"up":o=this.element.offset().top-this.container.outerHeight()-i.top;break;default:o=this.element.offset().top+this.element.outerHeight()-i.top;break}this.container.css({top:0,left:0,right:"auto"});var f=this.container.outerWidth();if(this.container.toggleClass("drop-up",a=="up"),this.opens=="left"){var p=c-this.element.offset().left-this.element.outerWidth();f+p>n(window).width()?this.container.css({top:o,right:"auto",left:9}):this.container.css({top:o,right:p,left:"auto"})}else if(this.opens=="center"){var w=this.element.offset().left-i.left+this.element.outerWidth()/2-f/2;w<0?this.container.css({top:o,right:"auto",left:9}):w+f>n(window).width()?this.container.css({top:o,left:"auto",right:0}):this.container.css({top:o,left:w,right:"auto"})}else{var w=this.element.offset().left-i.left;w+f>n(window).width()?this.container.css({top:o,left:"auto",right:0}):this.container.css({top:o,left:w,right:"auto"})}},show:function(i){this.isShowing||(this._outsideClickProxy=n.proxy(function(o){this.outsideClick(o)},this),n(document).on("mousedown.daterangepicker",this._outsideClickProxy).on("touchend.daterangepicker",this._outsideClickProxy).on("click.daterangepicker","[data-toggle=dropdown]",this._outsideClickProxy).on("focusin.daterangepicker",this._outsideClickProxy),n(window).on("resize.daterangepicker",n.proxy(function(o){this.move(o)},this)),this.oldStartDate=this.startDate.clone(),this.oldEndDate=this.endDate.clone(),this.previousRightTime=this.endDate.clone(),this.updateView(),this.container.show(),this.move(),this.element.trigger("show.daterangepicker",this),this.isShowing=!0)},hide:function(i){this.isShowing&&(this.endDate||(this.startDate=this.oldStartDate.clone(),this.endDate=this.oldEndDate.clone()),(!this.startDate.isSame(this.oldStartDate)||!this.endDate.isSame(this.oldEndDate))&&this.callback(this.startDate.clone(),this.endDate.clone(),this.chosenLabel),this.updateElement(),n(document).off(".daterangepicker"),n(window).off(".daterangepicker"),this.container.hide(),this.element.trigger("hide.daterangepicker",this),this.isShowing=!1)},toggle:function(i){this.isShowing?this.hide():this.show()},outsideClick:function(i){var o=n(i.target);i.type=="focusin"||o.closest(this.element).length||o.closest(this.container).length||o.closest(".calendar-table").length||(this.hide(),this.element.trigger("outsideClick.daterangepicker",this))},showCalendars:function(){this.container.addClass("show-calendar"),this.move(),this.element.trigger("showCalendar.daterangepicker",this)},hideCalendars:function(){this.container.removeClass("show-calendar"),this.element.trigger("hideCalendar.daterangepicker",this)},clickRange:function(i){var o=i.target.getAttribute("data-range-key");if(this.chosenLabel=o,o==this.locale.customRangeLabel)this.showCalendars();else{var a=this.ranges[o];this.startDate=a[0],this.endDate=a[1],this.timePicker||(this.startDate.startOf("day"),this.endDate.endOf("day")),this.alwaysShowCalendars||this.hideCalendars(),this.clickApply()}},clickPrev:function(i){var o=n(i.target).parents(".drp-calendar");o.hasClass("left")?(this.leftCalendar.month.subtract(1,"month"),this.linkedCalendars&&this.rightCalendar.month.subtract(1,"month")):this.rightCalendar.month.subtract(1,"month"),this.updateCalendars()},clickNext:function(i){var o=n(i.target).parents(".drp-calendar");o.hasClass("left")?this.leftCalendar.month.add(1,"month"):(this.rightCalendar.month.add(1,"month"),this.linkedCalendars&&this.leftCalendar.month.add(1,"month")),this.updateCalendars()},hoverDate:function(i){if(n(i.target).hasClass("available")){var o=n(i.target).attr("data-title"),a=o.substr(1,1),c=o.substr(3,1),f=n(i.target).parents(".drp-calendar"),p=f.hasClass("left")?this.leftCalendar.calendar[a][c]:this.rightCalendar.calendar[a][c],w=this.leftCalendar,g=this.rightCalendar,T=this.startDate;this.endDate||this.container.find(".drp-calendar tbody td").each(function(E,A){if(!n(A).hasClass("week")){var I=n(A).attr("data-title"),j=I.substr(1,1),_=I.substr(3,1),H=n(A).parents(".drp-calendar"),W=H.hasClass("left")?w.calendar[j][_]:g.calendar[j][_];W.isAfter(T)&&W.isBefore(p)||W.isSame(p,"day")?n(A).addClass("in-range"):n(A).removeClass("in-range")}})}},clickDate:function(i){if(n(i.target).hasClass("available")){var o=n(i.target).attr("data-title"),a=o.substr(1,1),c=o.substr(3,1),f=n(i.target).parents(".drp-calendar"),p=f.hasClass("left")?this.leftCalendar.calendar[a][c]:this.rightCalendar.calendar[a][c];if(this.endDate||p.isBefore(this.startDate,"day")){if(this.timePicker){var w=parseInt(this.container.find(".left .hourselect").val(),10);if(!this.timePicker24Hour){var g=this.container.find(".left .ampmselect").val();g==="PM"&&w<12&&(w+=12),g==="AM"&&w===12&&(w=0)}var T=parseInt(this.container.find(".left .minuteselect").val(),10);isNaN(T)&&(T=parseInt(this.container.find(".left .minuteselect option:last").val(),10));var E=this.timePickerSeconds?parseInt(this.container.find(".left .secondselect").val(),10):0;p=p.clone().hour(w).minute(T).second(E)}this.endDate=null,this.setStartDate(p.clone())}else if(!this.endDate&&p.isBefore(this.startDate))this.setEndDate(this.startDate.clone());else{if(this.timePicker){var w=parseInt(this.container.find(".right .hourselect").val(),10);if(!this.timePicker24Hour){var g=this.container.find(".right .ampmselect").val();g==="PM"&&w<12&&(w+=12),g==="AM"&&w===12&&(w=0)}var T=parseInt(this.container.find(".right .minuteselect").val(),10);isNaN(T)&&(T=parseInt(this.container.find(".right .minuteselect option:last").val(),10));var E=this.timePickerSeconds?parseInt(this.container.find(".right .secondselect").val(),10):0;p=p.clone().hour(w).minute(T).second(E)}this.setEndDate(p.clone()),this.autoApply&&(this.calculateChosenLabel(),this.clickApply())}this.singleDatePicker&&(this.setEndDate(this.startDate),!this.timePicker&&this.autoApply&&this.clickApply()),this.updateView(),i.stopPropagation()}},calculateChosenLabel:function(){var i=!0,o=0;for(var a in this.ranges){if(this.timePicker){var c=this.timePickerSeconds?"YYYY-MM-DD HH:mm:ss":"YYYY-MM-DD HH:mm";if(this.startDate.format(c)==this.ranges[a][0].format(c)&&this.endDate.format(c)==this.ranges[a][1].format(c)){i=!1,this.chosenLabel=this.container.find(".ranges li:eq("+o+")").addClass("active").attr("data-range-key");break}}else if(this.startDate.format("YYYY-MM-DD")==this.ranges[a][0].format("YYYY-MM-DD")&&this.endDate.format("YYYY-MM-DD")==this.ranges[a][1].format("YYYY-MM-DD")){i=!1,this.chosenLabel=this.container.find(".ranges li:eq("+o+")").addClass("active").attr("data-range-key");break}o++}i&&(this.showCustomRangeLabel?this.chosenLabel=this.container.find(".ranges li:last").addClass("active").attr("data-range-key"):this.chosenLabel=null,this.showCalendars())},clickApply:function(i){this.hide(),this.element.trigger("apply.daterangepicker",this)},clickCancel:function(i){this.startDate=this.oldStartDate,this.endDate=this.oldEndDate,this.hide(),this.element.trigger("cancel.daterangepicker",this)},monthOrYearChanged:function(i){var o=n(i.target).closest(".drp-calendar").hasClass("left"),a=o?"left":"right",c=this.container.find(".drp-calendar."+a),f=parseInt(c.find(".monthselect").val(),10),p=c.find(".yearselect").val();o||(p<this.startDate.year()||p==this.startDate.year()&&f<this.startDate.month())&&(f=this.startDate.month(),p=this.startDate.year()),this.minDate&&(p<this.minDate.year()||p==this.minDate.year()&&f<this.minDate.month())&&(f=this.minDate.month(),p=this.minDate.year()),this.maxDate&&(p>this.maxDate.year()||p==this.maxDate.year()&&f>this.maxDate.month())&&(f=this.maxDate.month(),p=this.maxDate.year()),o?(this.leftCalendar.month.month(f).year(p),this.linkedCalendars&&(this.rightCalendar.month=this.leftCalendar.month.clone().add(1,"month"))):(this.rightCalendar.month.month(f).year(p),this.linkedCalendars&&(this.leftCalendar.month=this.rightCalendar.month.clone().subtract(1,"month"))),this.updateCalendars()},timeChanged:function(i){var o=n(i.target).closest(".drp-calendar"),a=o.hasClass("left"),c=parseInt(o.find(".hourselect").val(),10),f=parseInt(o.find(".minuteselect").val(),10);isNaN(f)&&(f=parseInt(o.find(".minuteselect option:last").val(),10));var p=this.timePickerSeconds?parseInt(o.find(".secondselect").val(),10):0;if(!this.timePicker24Hour){var w=o.find(".ampmselect").val();w==="PM"&&c<12&&(c+=12),w==="AM"&&c===12&&(c=0)}if(a){var g=this.startDate.clone();g.hour(c),g.minute(f),g.second(p),this.setStartDate(g),this.singleDatePicker?this.endDate=this.startDate.clone():this.endDate&&this.endDate.format("YYYY-MM-DD")==g.format("YYYY-MM-DD")&&this.endDate.isBefore(g)&&this.setEndDate(g.clone())}else if(this.endDate){var T=this.endDate.clone();T.hour(c),T.minute(f),T.second(p),this.setEndDate(T)}this.updateCalendars(),this.updateFormInputs(),this.renderTimePicker("left"),this.renderTimePicker("right")},elementChanged:function(){if(this.element.is("input")&&this.element.val().length){var i=this.element.val().split(this.locale.separator),o=null,a=null;i.length===2&&(o=e(i[0],this.locale.format),a=e(i[1],this.locale.format)),(this.singleDatePicker||o===null||a===null)&&(o=e(this.element.val(),this.locale.format),a=o),!(!o.isValid()||!a.isValid())&&(this.setStartDate(o),this.setEndDate(a),this.updateView())}},keydown:function(i){(i.keyCode===9||i.keyCode===13)&&this.hide(),i.keyCode===27&&(i.preventDefault(),i.stopPropagation(),this.hide())},updateElement:function(){if(this.element.is("input")&&this.autoUpdateInput){var i=this.startDate.format(this.locale.format);this.singleDatePicker||(i+=this.locale.separator+this.endDate.format(this.locale.format)),i!==this.element.val()&&this.element.val(i).trigger("change")}},remove:function(){this.container.remove(),this.element.off(".daterangepicker"),this.element.removeData()}},n.fn.daterangepicker=function(i,o){var a=n.extend(!0,{},n.fn.daterangepicker.defaultOptions,i);return this.each(function(){var c=n(this);c.data("daterangepicker")&&c.data("daterangepicker").remove(),c.data("daterangepicker",new r(c,a,o))}),this},r})})(d6);var xv=function(t,e){return xv=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(n[i]=r[i])},xv(t,e)};function h6(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");xv(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}var p6=function(t){h6(e,t);function e(n){var r=t.call(this,n)||this;return r.ref=null,r.$picker=null,r}return e.prototype.componentDidMount=function(){var n=this;this.$picker=f6(this.ref),this.$picker.daterangepicker(this.props.initialSettings,this.handleCallback.bind(this)),["Show","Hide","ShowCalendar","HideCalendar","Apply","Cancel"].forEach(function(r){var i,o=r.charAt(0).toLowerCase()+r.slice(1);(i=n.$picker)===null||i===void 0||i.on(o+".daterangepicker",n.makeEventHandler("on"+r))})},e.prototype.componentWillUnmount=function(){var n,r;(r=(n=this.$picker)===null||n===void 0?void 0:n.data("daterangepicker"))===null||r===void 0||r.remove()},e.prototype.handleCallback=function(){for(var n,r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];typeof this.props.onCallback=="function"&&(n=this.props).onCallback.apply(n,r)},e.prototype.makeEventHandler=function(n){var r=this,i=this.props.onEvent;return function(o,a){typeof i=="function"&&i(o,a),typeof r.props[n]=="function"&&r.props[n](o,a)}},e.prototype.setStartDate=function(n){var r,i;(i=(r=this.$picker)===null||r===void 0?void 0:r.data("daterangepicker"))===null||i===void 0||i.setStartDate(n)},e.prototype.setEndDate=function(n){var r,i;(i=(r=this.$picker)===null||r===void 0?void 0:r.data("daterangepicker"))===null||i===void 0||i.setEndDate(n)},e.prototype.render=function(){var n=this,r=kn.Children.only(this.props.children);return kn.cloneElement(r,{ref:function(i){return n.ref=i}})},e}(kn.Component);oa.styled(t=>Ie.jsx(oa.Switch,{focusVisibleClassName:".Mui-focusVisible",disableRipple:!0,...t}))(({theme:t})=>({width:42,height:26,padding:0,"&.MuiSwitch-root":{margin:0,marginRight:8},"& .MuiSwitch-switchBase":{padding:0,margin:2,transitionDuration:"300ms","&.Mui-checked":{transform:"translateX(16px)",color:"#fff","& + .MuiSwitch-track":{backgroundColor:ki.primary300,opacity:1,border:0},"&.Mui-disabled + .MuiSwitch-track":{opacity:.5}},"&.Mui-focusVisible .MuiSwitch-thumb":{color:"#33cf4d",border:"6px solid #fff"},"&.Mui-disabled .MuiSwitch-thumb":{color:t.palette.grey[100]},"&.Mui-disabled + .MuiSwitch-track":{opacity:.7}},"& .MuiSwitch-thumb":{boxSizing:"border-box",width:22,height:22},"& .MuiSwitch-track":{borderRadius:26/2,backgroundColor:"#E9E9EA",opacity:1}}));/**
181
+ * @license
182
+ * Copyright 2017 Google LLC
183
+ *
184
+ * Licensed under the Apache License, Version 2.0 (the "License");
185
+ * you may not use this file except in compliance with the License.
186
+ * You may obtain a copy of the License at
187
+ *
188
+ * http://www.apache.org/licenses/LICENSE-2.0
189
+ *
190
+ * Unless required by applicable law or agreed to in writing, software
191
+ * distributed under the License is distributed on an "AS IS" BASIS,
192
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
193
+ * See the License for the specific language governing permissions and
194
+ * limitations under the License.
195
+ *//**
196
+ * @license
197
+ * Copyright 2017 Google LLC
198
+ *
199
+ * Licensed under the Apache License, Version 2.0 (the "License");
200
+ * you may not use this file except in compliance with the License.
201
+ * You may obtain a copy of the License at
202
+ *
203
+ * http://www.apache.org/licenses/LICENSE-2.0
204
+ *
205
+ * Unless required by applicable law or agreed to in writing, software
206
+ * distributed under the License is distributed on an "AS IS" BASIS,
207
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
208
+ * See the License for the specific language governing permissions and
209
+ * limitations under the License.
210
+ */const $D=function(t){const e=[];let n=0;for(let r=0;r<t.length;r++){let i=t.charCodeAt(r);i<128?e[n++]=i:i<2048?(e[n++]=i>>6|192,e[n++]=i&63|128):(i&64512)===55296&&r+1<t.length&&(t.charCodeAt(r+1)&64512)===56320?(i=65536+((i&1023)<<10)+(t.charCodeAt(++r)&1023),e[n++]=i>>18|240,e[n++]=i>>12&63|128,e[n++]=i>>6&63|128,e[n++]=i&63|128):(e[n++]=i>>12|224,e[n++]=i>>6&63|128,e[n++]=i&63|128)}return e},g6=function(t){const e=[];let n=0,r=0;for(;n<t.length;){const i=t[n++];if(i<128)e[r++]=String.fromCharCode(i);else if(i>191&&i<224){const o=t[n++];e[r++]=String.fromCharCode((i&31)<<6|o&63)}else if(i>239&&i<365){const o=t[n++],a=t[n++],c=t[n++],f=((i&7)<<18|(o&63)<<12|(a&63)<<6|c&63)-65536;e[r++]=String.fromCharCode(55296+(f>>10)),e[r++]=String.fromCharCode(56320+(f&1023))}else{const o=t[n++],a=t[n++];e[r++]=String.fromCharCode((i&15)<<12|(o&63)<<6|a&63)}}return e.join("")},VD={byteToCharMap_:null,charToByteMap_:null,byteToCharMapWebSafe_:null,charToByteMapWebSafe_:null,ENCODED_VALS_BASE:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",get ENCODED_VALS(){return this.ENCODED_VALS_BASE+"+/="},get ENCODED_VALS_WEBSAFE(){return this.ENCODED_VALS_BASE+"-_."},HAS_NATIVE_SUPPORT:typeof atob=="function",encodeByteArray(t,e){if(!Array.isArray(t))throw Error("encodeByteArray takes an array as a parameter");this.init_();const n=e?this.byteToCharMapWebSafe_:this.byteToCharMap_,r=[];for(let i=0;i<t.length;i+=3){const o=t[i],a=i+1<t.length,c=a?t[i+1]:0,f=i+2<t.length,p=f?t[i+2]:0,w=o>>2,g=(o&3)<<4|c>>4;let T=(c&15)<<2|p>>6,E=p&63;f||(E=64,a||(T=64)),r.push(n[w],n[g],n[T],n[E])}return r.join("")},encodeString(t,e){return this.HAS_NATIVE_SUPPORT&&!e?btoa(t):this.encodeByteArray($D(t),e)},decodeString(t,e){return this.HAS_NATIVE_SUPPORT&&!e?atob(t):g6(this.decodeStringToByteArray(t,e))},decodeStringToByteArray(t,e){this.init_();const n=e?this.charToByteMapWebSafe_:this.charToByteMap_,r=[];for(let i=0;i<t.length;){const o=n[t.charAt(i++)],c=i<t.length?n[t.charAt(i)]:0;++i;const p=i<t.length?n[t.charAt(i)]:64;++i;const g=i<t.length?n[t.charAt(i)]:64;if(++i,o==null||c==null||p==null||g==null)throw new m6;const T=o<<2|c>>4;if(r.push(T),p!==64){const E=c<<4&240|p>>2;if(r.push(E),g!==64){const A=p<<6&192|g;r.push(A)}}}return r},init_(){if(!this.byteToCharMap_){this.byteToCharMap_={},this.charToByteMap_={},this.byteToCharMapWebSafe_={},this.charToByteMapWebSafe_={};for(let t=0;t<this.ENCODED_VALS.length;t++)this.byteToCharMap_[t]=this.ENCODED_VALS.charAt(t),this.charToByteMap_[this.byteToCharMap_[t]]=t,this.byteToCharMapWebSafe_[t]=this.ENCODED_VALS_WEBSAFE.charAt(t),this.charToByteMapWebSafe_[this.byteToCharMapWebSafe_[t]]=t,t>=this.ENCODED_VALS_BASE.length&&(this.charToByteMap_[this.ENCODED_VALS_WEBSAFE.charAt(t)]=t,this.charToByteMapWebSafe_[this.ENCODED_VALS.charAt(t)]=t)}}};class m6 extends Error{constructor(){super(...arguments),this.name="DecodeBase64StringError"}}const v6=function(t){const e=$D(t);return VD.encodeByteArray(e,!0)},HD=function(t){return v6(t).replace(/\./g,"")},y6=function(t){try{return VD.decodeString(t,!0)}catch(e){console.error("base64Decode failed: ",e)}return null};/**
211
+ * @license
212
+ * Copyright 2022 Google LLC
213
+ *
214
+ * Licensed under the Apache License, Version 2.0 (the "License");
215
+ * you may not use this file except in compliance with the License.
216
+ * You may obtain a copy of the License at
217
+ *
218
+ * http://www.apache.org/licenses/LICENSE-2.0
219
+ *
220
+ * Unless required by applicable law or agreed to in writing, software
221
+ * distributed under the License is distributed on an "AS IS" BASIS,
222
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
223
+ * See the License for the specific language governing permissions and
224
+ * limitations under the License.
225
+ */function b6(){if(typeof self<"u")return self;if(typeof window<"u")return window;if(typeof global<"u")return global;throw new Error("Unable to locate global object.")}/**
226
+ * @license
227
+ * Copyright 2022 Google LLC
228
+ *
229
+ * Licensed under the Apache License, Version 2.0 (the "License");
230
+ * you may not use this file except in compliance with the License.
231
+ * You may obtain a copy of the License at
232
+ *
233
+ * http://www.apache.org/licenses/LICENSE-2.0
234
+ *
235
+ * Unless required by applicable law or agreed to in writing, software
236
+ * distributed under the License is distributed on an "AS IS" BASIS,
237
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
238
+ * See the License for the specific language governing permissions and
239
+ * limitations under the License.
240
+ */const w6=()=>b6().__FIREBASE_DEFAULTS__,x6=()=>{if(typeof process>"u"||typeof process.env>"u")return;const t=process.env.__FIREBASE_DEFAULTS__;if(t)return JSON.parse(t)},S6=()=>{if(typeof document>"u")return;let t;try{t=document.cookie.match(/__FIREBASE_DEFAULTS__=([^;]+)/)}catch{return}const e=t&&y6(t[1]);return e&&JSON.parse(e)},T6=()=>{try{return w6()||x6()||S6()}catch(t){console.info(`Unable to get __FIREBASE_DEFAULTS__ due to: ${t}`);return}},UD=()=>{var t;return(t=T6())===null||t===void 0?void 0:t.config};/**
241
+ * @license
242
+ * Copyright 2017 Google LLC
243
+ *
244
+ * Licensed under the Apache License, Version 2.0 (the "License");
245
+ * you may not use this file except in compliance with the License.
246
+ * You may obtain a copy of the License at
247
+ *
248
+ * http://www.apache.org/licenses/LICENSE-2.0
249
+ *
250
+ * Unless required by applicable law or agreed to in writing, software
251
+ * distributed under the License is distributed on an "AS IS" BASIS,
252
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
253
+ * See the License for the specific language governing permissions and
254
+ * limitations under the License.
255
+ */class C6{constructor(){this.reject=()=>{},this.resolve=()=>{},this.promise=new Promise((e,n)=>{this.resolve=e,this.reject=n})}wrapCallback(e){return(n,r)=>{n?this.reject(n):this.resolve(r),typeof e=="function"&&(this.promise.catch(()=>{}),e.length===1?e(n):e(n,r))}}}function WD(){try{return typeof indexedDB=="object"}catch{return!1}}function zD(){return new Promise((t,e)=>{try{let n=!0;const r="validate-browser-context-for-indexeddb-analytics-module",i=self.indexedDB.open(r);i.onsuccess=()=>{i.result.close(),n||self.indexedDB.deleteDatabase(r),t(!0)},i.onupgradeneeded=()=>{n=!1},i.onerror=()=>{var o;e(((o=i.error)===null||o===void 0?void 0:o.message)||"")}}catch(n){e(n)}})}function E6(){return!(typeof navigator>"u"||!navigator.cookieEnabled)}/**
256
+ * @license
257
+ * Copyright 2017 Google LLC
258
+ *
259
+ * Licensed under the Apache License, Version 2.0 (the "License");
260
+ * you may not use this file except in compliance with the License.
261
+ * You may obtain a copy of the License at
262
+ *
263
+ * http://www.apache.org/licenses/LICENSE-2.0
264
+ *
265
+ * Unless required by applicable law or agreed to in writing, software
266
+ * distributed under the License is distributed on an "AS IS" BASIS,
267
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
268
+ * See the License for the specific language governing permissions and
269
+ * limitations under the License.
270
+ */const k6="FirebaseError";class Lf extends Error{constructor(e,n,r){super(n),this.code=e,this.customData=r,this.name=k6,Object.setPrototypeOf(this,Lf.prototype),Error.captureStackTrace&&Error.captureStackTrace(this,zp.prototype.create)}}class zp{constructor(e,n,r){this.service=e,this.serviceName=n,this.errors=r}create(e,...n){const r=n[0]||{},i=`${this.service}/${e}`,o=this.errors[e],a=o?D6(o,r):"Error",c=`${this.serviceName}: ${a} (${i}).`;return new Lf(i,c,r)}}function D6(t,e){return t.replace(P6,(n,r)=>{const i=e[r];return i!=null?String(i):`<${r}?>`})}const P6=/\{\$([^}]+)}/g;function Sv(t,e){if(t===e)return!0;const n=Object.keys(t),r=Object.keys(e);for(const i of n){if(!r.includes(i))return!1;const o=t[i],a=e[i];if(y1(o)&&y1(a)){if(!Sv(o,a))return!1}else if(o!==a)return!1}for(const i of r)if(!n.includes(i))return!1;return!0}function y1(t){return t!==null&&typeof t=="object"}/**
271
+ * @license
272
+ * Copyright 2021 Google LLC
273
+ *
274
+ * Licensed under the Apache License, Version 2.0 (the "License");
275
+ * you may not use this file except in compliance with the License.
276
+ * You may obtain a copy of the License at
277
+ *
278
+ * http://www.apache.org/licenses/LICENSE-2.0
279
+ *
280
+ * Unless required by applicable law or agreed to in writing, software
281
+ * distributed under the License is distributed on an "AS IS" BASIS,
282
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
283
+ * See the License for the specific language governing permissions and
284
+ * limitations under the License.
285
+ */function Ky(t){return t&&t._delegate?t._delegate:t}class Su{constructor(e,n,r){this.name=e,this.instanceFactory=n,this.type=r,this.multipleInstances=!1,this.serviceProps={},this.instantiationMode="LAZY",this.onInstanceCreated=null}setInstantiationMode(e){return this.instantiationMode=e,this}setMultipleInstances(e){return this.multipleInstances=e,this}setServiceProps(e){return this.serviceProps=e,this}setInstanceCreatedCallback(e){return this.onInstanceCreated=e,this}}/**
286
+ * @license
287
+ * Copyright 2019 Google LLC
288
+ *
289
+ * Licensed under the Apache License, Version 2.0 (the "License");
290
+ * you may not use this file except in compliance with the License.
291
+ * You may obtain a copy of the License at
292
+ *
293
+ * http://www.apache.org/licenses/LICENSE-2.0
294
+ *
295
+ * Unless required by applicable law or agreed to in writing, software
296
+ * distributed under the License is distributed on an "AS IS" BASIS,
297
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
298
+ * See the License for the specific language governing permissions and
299
+ * limitations under the License.
300
+ */const pc="[DEFAULT]";/**
301
+ * @license
302
+ * Copyright 2019 Google LLC
303
+ *
304
+ * Licensed under the Apache License, Version 2.0 (the "License");
305
+ * you may not use this file except in compliance with the License.
306
+ * You may obtain a copy of the License at
307
+ *
308
+ * http://www.apache.org/licenses/LICENSE-2.0
309
+ *
310
+ * Unless required by applicable law or agreed to in writing, software
311
+ * distributed under the License is distributed on an "AS IS" BASIS,
312
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
313
+ * See the License for the specific language governing permissions and
314
+ * limitations under the License.
315
+ */class O6{constructor(e,n){this.name=e,this.container=n,this.component=null,this.instances=new Map,this.instancesDeferred=new Map,this.instancesOptions=new Map,this.onInitCallbacks=new Map}get(e){const n=this.normalizeInstanceIdentifier(e);if(!this.instancesDeferred.has(n)){const r=new C6;if(this.instancesDeferred.set(n,r),this.isInitialized(n)||this.shouldAutoInitialize())try{const i=this.getOrInitializeService({instanceIdentifier:n});i&&r.resolve(i)}catch{}}return this.instancesDeferred.get(n).promise}getImmediate(e){var n;const r=this.normalizeInstanceIdentifier(e==null?void 0:e.identifier),i=(n=e==null?void 0:e.optional)!==null&&n!==void 0?n:!1;if(this.isInitialized(r)||this.shouldAutoInitialize())try{return this.getOrInitializeService({instanceIdentifier:r})}catch(o){if(i)return null;throw o}else{if(i)return null;throw Error(`Service ${this.name} is not available`)}}getComponent(){return this.component}setComponent(e){if(e.name!==this.name)throw Error(`Mismatching Component ${e.name} for Provider ${this.name}.`);if(this.component)throw Error(`Component for ${this.name} has already been provided`);if(this.component=e,!!this.shouldAutoInitialize()){if(R6(e))try{this.getOrInitializeService({instanceIdentifier:pc})}catch{}for(const[n,r]of this.instancesDeferred.entries()){const i=this.normalizeInstanceIdentifier(n);try{const o=this.getOrInitializeService({instanceIdentifier:i});r.resolve(o)}catch{}}}}clearInstance(e=pc){this.instancesDeferred.delete(e),this.instancesOptions.delete(e),this.instances.delete(e)}async delete(){const e=Array.from(this.instances.values());await Promise.all([...e.filter(n=>"INTERNAL"in n).map(n=>n.INTERNAL.delete()),...e.filter(n=>"_delete"in n).map(n=>n._delete())])}isComponentSet(){return this.component!=null}isInitialized(e=pc){return this.instances.has(e)}getOptions(e=pc){return this.instancesOptions.get(e)||{}}initialize(e={}){const{options:n={}}=e,r=this.normalizeInstanceIdentifier(e.instanceIdentifier);if(this.isInitialized(r))throw Error(`${this.name}(${r}) has already been initialized`);if(!this.isComponentSet())throw Error(`Component ${this.name} has not been registered yet`);const i=this.getOrInitializeService({instanceIdentifier:r,options:n});for(const[o,a]of this.instancesDeferred.entries()){const c=this.normalizeInstanceIdentifier(o);r===c&&a.resolve(i)}return i}onInit(e,n){var r;const i=this.normalizeInstanceIdentifier(n),o=(r=this.onInitCallbacks.get(i))!==null&&r!==void 0?r:new Set;o.add(e),this.onInitCallbacks.set(i,o);const a=this.instances.get(i);return a&&e(a,i),()=>{o.delete(e)}}invokeOnInitCallbacks(e,n){const r=this.onInitCallbacks.get(n);if(r)for(const i of r)try{i(e,n)}catch{}}getOrInitializeService({instanceIdentifier:e,options:n={}}){let r=this.instances.get(e);if(!r&&this.component&&(r=this.component.instanceFactory(this.container,{instanceIdentifier:_6(e),options:n}),this.instances.set(e,r),this.instancesOptions.set(e,n),this.invokeOnInitCallbacks(r,e),this.component.onInstanceCreated))try{this.component.onInstanceCreated(this.container,e,r)}catch{}return r||null}normalizeInstanceIdentifier(e=pc){return this.component?this.component.multipleInstances?e:pc:e}shouldAutoInitialize(){return!!this.component&&this.component.instantiationMode!=="EXPLICIT"}}function _6(t){return t===pc?void 0:t}function R6(t){return t.instantiationMode==="EAGER"}/**
316
+ * @license
317
+ * Copyright 2019 Google LLC
318
+ *
319
+ * Licensed under the Apache License, Version 2.0 (the "License");
320
+ * you may not use this file except in compliance with the License.
321
+ * You may obtain a copy of the License at
322
+ *
323
+ * http://www.apache.org/licenses/LICENSE-2.0
324
+ *
325
+ * Unless required by applicable law or agreed to in writing, software
326
+ * distributed under the License is distributed on an "AS IS" BASIS,
327
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
328
+ * See the License for the specific language governing permissions and
329
+ * limitations under the License.
330
+ */class A6{constructor(e){this.name=e,this.providers=new Map}addComponent(e){const n=this.getProvider(e.name);if(n.isComponentSet())throw new Error(`Component ${e.name} has already been registered with ${this.name}`);n.setComponent(e)}addOrOverwriteComponent(e){this.getProvider(e.name).isComponentSet()&&this.providers.delete(e.name),this.addComponent(e)}getProvider(e){if(this.providers.has(e))return this.providers.get(e);const n=new O6(e,this);return this.providers.set(e,n),n}getProviders(){return Array.from(this.providers.values())}}/**
331
+ * @license
332
+ * Copyright 2017 Google LLC
333
+ *
334
+ * Licensed under the Apache License, Version 2.0 (the "License");
335
+ * you may not use this file except in compliance with the License.
336
+ * You may obtain a copy of the License at
337
+ *
338
+ * http://www.apache.org/licenses/LICENSE-2.0
339
+ *
340
+ * Unless required by applicable law or agreed to in writing, software
341
+ * distributed under the License is distributed on an "AS IS" BASIS,
342
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
343
+ * See the License for the specific language governing permissions and
344
+ * limitations under the License.
345
+ */var Mn;(function(t){t[t.DEBUG=0]="DEBUG",t[t.VERBOSE=1]="VERBOSE",t[t.INFO=2]="INFO",t[t.WARN=3]="WARN",t[t.ERROR=4]="ERROR",t[t.SILENT=5]="SILENT"})(Mn||(Mn={}));const I6={debug:Mn.DEBUG,verbose:Mn.VERBOSE,info:Mn.INFO,warn:Mn.WARN,error:Mn.ERROR,silent:Mn.SILENT},M6=Mn.INFO,L6={[Mn.DEBUG]:"log",[Mn.VERBOSE]:"log",[Mn.INFO]:"info",[Mn.WARN]:"warn",[Mn.ERROR]:"error"},F6=(t,e,...n)=>{if(e<t.logLevel)return;const r=new Date().toISOString(),i=L6[e];if(i)console[i](`[${r}] ${t.name}:`,...n);else throw new Error(`Attempted to log a message with an invalid logType (value: ${e})`)};class N6{constructor(e){this.name=e,this._logLevel=M6,this._logHandler=F6,this._userLogHandler=null}get logLevel(){return this._logLevel}set logLevel(e){if(!(e in Mn))throw new TypeError(`Invalid value "${e}" assigned to \`logLevel\``);this._logLevel=e}setLogLevel(e){this._logLevel=typeof e=="string"?I6[e]:e}get logHandler(){return this._logHandler}set logHandler(e){if(typeof e!="function")throw new TypeError("Value assigned to `logHandler` must be a function");this._logHandler=e}get userLogHandler(){return this._userLogHandler}set userLogHandler(e){this._userLogHandler=e}debug(...e){this._userLogHandler&&this._userLogHandler(this,Mn.DEBUG,...e),this._logHandler(this,Mn.DEBUG,...e)}log(...e){this._userLogHandler&&this._userLogHandler(this,Mn.VERBOSE,...e),this._logHandler(this,Mn.VERBOSE,...e)}info(...e){this._userLogHandler&&this._userLogHandler(this,Mn.INFO,...e),this._logHandler(this,Mn.INFO,...e)}warn(...e){this._userLogHandler&&this._userLogHandler(this,Mn.WARN,...e),this._logHandler(this,Mn.WARN,...e)}error(...e){this._userLogHandler&&this._userLogHandler(this,Mn.ERROR,...e),this._logHandler(this,Mn.ERROR,...e)}}const j6=(t,e)=>e.some(n=>t instanceof n);let b1,w1;function B6(){return b1||(b1=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])}function $6(){return w1||(w1=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])}const YD=new WeakMap,Tv=new WeakMap,GD=new WeakMap,pm=new WeakMap,Zy=new WeakMap;function V6(t){const e=new Promise((n,r)=>{const i=()=>{t.removeEventListener("success",o),t.removeEventListener("error",a)},o=()=>{n(Cl(t.result)),i()},a=()=>{r(t.error),i()};t.addEventListener("success",o),t.addEventListener("error",a)});return e.then(n=>{n instanceof IDBCursor&&YD.set(n,t)}).catch(()=>{}),Zy.set(e,t),e}function H6(t){if(Tv.has(t))return;const e=new Promise((n,r)=>{const i=()=>{t.removeEventListener("complete",o),t.removeEventListener("error",a),t.removeEventListener("abort",a)},o=()=>{n(),i()},a=()=>{r(t.error||new DOMException("AbortError","AbortError")),i()};t.addEventListener("complete",o),t.addEventListener("error",a),t.addEventListener("abort",a)});Tv.set(t,e)}let Cv={get(t,e,n){if(t instanceof IDBTransaction){if(e==="done")return Tv.get(t);if(e==="objectStoreNames")return t.objectStoreNames||GD.get(t);if(e==="store")return n.objectStoreNames[1]?void 0:n.objectStore(n.objectStoreNames[0])}return Cl(t[e])},set(t,e,n){return t[e]=n,!0},has(t,e){return t instanceof IDBTransaction&&(e==="done"||e==="store")?!0:e in t}};function U6(t){Cv=t(Cv)}function W6(t){return t===IDBDatabase.prototype.transaction&&!("objectStoreNames"in IDBTransaction.prototype)?function(e,...n){const r=t.call(gm(this),e,...n);return GD.set(r,e.sort?e.sort():[e]),Cl(r)}:$6().includes(t)?function(...e){return t.apply(gm(this),e),Cl(YD.get(this))}:function(...e){return Cl(t.apply(gm(this),e))}}function z6(t){return typeof t=="function"?W6(t):(t instanceof IDBTransaction&&H6(t),j6(t,B6())?new Proxy(t,Cv):t)}function Cl(t){if(t instanceof IDBRequest)return V6(t);if(pm.has(t))return pm.get(t);const e=z6(t);return e!==t&&(pm.set(t,e),Zy.set(e,t)),e}const gm=t=>Zy.get(t);function Yp(t,e,{blocked:n,upgrade:r,blocking:i,terminated:o}={}){const a=indexedDB.open(t,e),c=Cl(a);return r&&a.addEventListener("upgradeneeded",f=>{r(Cl(a.result),f.oldVersion,f.newVersion,Cl(a.transaction),f)}),n&&a.addEventListener("blocked",f=>n(f.oldVersion,f.newVersion,f)),c.then(f=>{o&&f.addEventListener("close",()=>o()),i&&f.addEventListener("versionchange",p=>i(p.oldVersion,p.newVersion,p))}).catch(()=>{}),c}function mm(t,{blocked:e}={}){const n=indexedDB.deleteDatabase(t);return e&&n.addEventListener("blocked",r=>e(r.oldVersion,r)),Cl(n).then(()=>{})}const Y6=["get","getKey","getAll","getAllKeys","count"],G6=["put","add","delete","clear"],vm=new Map;function x1(t,e){if(!(t instanceof IDBDatabase&&!(e in t)&&typeof e=="string"))return;if(vm.get(e))return vm.get(e);const n=e.replace(/FromIndex$/,""),r=e!==n,i=G6.includes(n);if(!(n in(r?IDBIndex:IDBObjectStore).prototype)||!(i||Y6.includes(n)))return;const o=async function(a,...c){const f=this.transaction(a,i?"readwrite":"readonly");let p=f.store;return r&&(p=p.index(c.shift())),(await Promise.all([p[n](...c),i&&f.done]))[0]};return vm.set(e,o),o}U6(t=>({...t,get:(e,n,r)=>x1(e,n)||t.get(e,n,r),has:(e,n)=>!!x1(e,n)||t.has(e,n)}));/**
346
+ * @license
347
+ * Copyright 2019 Google LLC
348
+ *
349
+ * Licensed under the Apache License, Version 2.0 (the "License");
350
+ * you may not use this file except in compliance with the License.
351
+ * You may obtain a copy of the License at
352
+ *
353
+ * http://www.apache.org/licenses/LICENSE-2.0
354
+ *
355
+ * Unless required by applicable law or agreed to in writing, software
356
+ * distributed under the License is distributed on an "AS IS" BASIS,
357
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
358
+ * See the License for the specific language governing permissions and
359
+ * limitations under the License.
360
+ */class q6{constructor(e){this.container=e}getPlatformInfoString(){return this.container.getProviders().map(n=>{if(X6(n)){const r=n.getImmediate();return`${r.library}/${r.version}`}else return null}).filter(n=>n).join(" ")}}function X6(t){const e=t.getComponent();return(e==null?void 0:e.type)==="VERSION"}const Ev="@firebase/app",S1="0.10.13";/**
361
+ * @license
362
+ * Copyright 2019 Google LLC
363
+ *
364
+ * Licensed under the Apache License, Version 2.0 (the "License");
365
+ * you may not use this file except in compliance with the License.
366
+ * You may obtain a copy of the License at
367
+ *
368
+ * http://www.apache.org/licenses/LICENSE-2.0
369
+ *
370
+ * Unless required by applicable law or agreed to in writing, software
371
+ * distributed under the License is distributed on an "AS IS" BASIS,
372
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
373
+ * See the License for the specific language governing permissions and
374
+ * limitations under the License.
375
+ */const Dl=new N6("@firebase/app"),K6="@firebase/app-compat",Z6="@firebase/analytics-compat",J6="@firebase/analytics",Q6="@firebase/app-check-compat",e8="@firebase/app-check",t8="@firebase/auth",n8="@firebase/auth-compat",r8="@firebase/database",i8="@firebase/data-connect",o8="@firebase/database-compat",s8="@firebase/functions",a8="@firebase/functions-compat",l8="@firebase/installations",u8="@firebase/installations-compat",c8="@firebase/messaging",f8="@firebase/messaging-compat",d8="@firebase/performance",h8="@firebase/performance-compat",p8="@firebase/remote-config",g8="@firebase/remote-config-compat",m8="@firebase/storage",v8="@firebase/storage-compat",y8="@firebase/firestore",b8="@firebase/vertexai-preview",w8="@firebase/firestore-compat",x8="firebase";/**
376
+ * @license
377
+ * Copyright 2019 Google LLC
378
+ *
379
+ * Licensed under the Apache License, Version 2.0 (the "License");
380
+ * you may not use this file except in compliance with the License.
381
+ * You may obtain a copy of the License at
382
+ *
383
+ * http://www.apache.org/licenses/LICENSE-2.0
384
+ *
385
+ * Unless required by applicable law or agreed to in writing, software
386
+ * distributed under the License is distributed on an "AS IS" BASIS,
387
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
388
+ * See the License for the specific language governing permissions and
389
+ * limitations under the License.
390
+ */const kv="[DEFAULT]",S8={[Ev]:"fire-core",[K6]:"fire-core-compat",[J6]:"fire-analytics",[Z6]:"fire-analytics-compat",[e8]:"fire-app-check",[Q6]:"fire-app-check-compat",[t8]:"fire-auth",[n8]:"fire-auth-compat",[r8]:"fire-rtdb",[i8]:"fire-data-connect",[o8]:"fire-rtdb-compat",[s8]:"fire-fn",[a8]:"fire-fn-compat",[l8]:"fire-iid",[u8]:"fire-iid-compat",[c8]:"fire-fcm",[f8]:"fire-fcm-compat",[d8]:"fire-perf",[h8]:"fire-perf-compat",[p8]:"fire-rc",[g8]:"fire-rc-compat",[m8]:"fire-gcs",[v8]:"fire-gcs-compat",[y8]:"fire-fst",[w8]:"fire-fst-compat",[b8]:"fire-vertex","fire-js":"fire-js",[x8]:"fire-js-all"};/**
391
+ * @license
392
+ * Copyright 2019 Google LLC
393
+ *
394
+ * Licensed under the Apache License, Version 2.0 (the "License");
395
+ * you may not use this file except in compliance with the License.
396
+ * You may obtain a copy of the License at
397
+ *
398
+ * http://www.apache.org/licenses/LICENSE-2.0
399
+ *
400
+ * Unless required by applicable law or agreed to in writing, software
401
+ * distributed under the License is distributed on an "AS IS" BASIS,
402
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
403
+ * See the License for the specific language governing permissions and
404
+ * limitations under the License.
405
+ */const vp=new Map,T8=new Map,Dv=new Map;function T1(t,e){try{t.container.addComponent(e)}catch(n){Dl.debug(`Component ${e.name} failed to register with FirebaseApp ${t.name}`,n)}}function Ec(t){const e=t.name;if(Dv.has(e))return Dl.debug(`There were multiple attempts to register component ${e}.`),!1;Dv.set(e,t);for(const n of vp.values())T1(n,t);for(const n of T8.values())T1(n,t);return!0}function Jy(t,e){const n=t.container.getProvider("heartbeat").getImmediate({optional:!0});return n&&n.triggerHeartbeat(),t.container.getProvider(e)}/**
406
+ * @license
407
+ * Copyright 2019 Google LLC
408
+ *
409
+ * Licensed under the Apache License, Version 2.0 (the "License");
410
+ * you may not use this file except in compliance with the License.
411
+ * You may obtain a copy of the License at
412
+ *
413
+ * http://www.apache.org/licenses/LICENSE-2.0
414
+ *
415
+ * Unless required by applicable law or agreed to in writing, software
416
+ * distributed under the License is distributed on an "AS IS" BASIS,
417
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
418
+ * See the License for the specific language governing permissions and
419
+ * limitations under the License.
420
+ */const C8={"no-app":"No Firebase App '{$appName}' has been created - call initializeApp() first","bad-app-name":"Illegal App name: '{$appName}'","duplicate-app":"Firebase App named '{$appName}' already exists with different options or config","app-deleted":"Firebase App named '{$appName}' already deleted","server-app-deleted":"Firebase Server App has been deleted","no-options":"Need to provide options, when not being deployed to hosting via source.","invalid-app-argument":"firebase.{$appName}() takes either no argument or a Firebase App instance.","invalid-log-argument":"First argument to `onLog` must be null or a function.","idb-open":"Error thrown when opening IndexedDB. Original error: {$originalErrorMessage}.","idb-get":"Error thrown when reading from IndexedDB. Original error: {$originalErrorMessage}.","idb-set":"Error thrown when writing to IndexedDB. Original error: {$originalErrorMessage}.","idb-delete":"Error thrown when deleting from IndexedDB. Original error: {$originalErrorMessage}.","finalization-registry-not-supported":"FirebaseServerApp deleteOnDeref field defined but the JS runtime does not support FinalizationRegistry.","invalid-server-app-environment":"FirebaseServerApp is not for use in browser environments."},du=new zp("app","Firebase",C8);/**
421
+ * @license
422
+ * Copyright 2019 Google LLC
423
+ *
424
+ * Licensed under the Apache License, Version 2.0 (the "License");
425
+ * you may not use this file except in compliance with the License.
426
+ * You may obtain a copy of the License at
427
+ *
428
+ * http://www.apache.org/licenses/LICENSE-2.0
429
+ *
430
+ * Unless required by applicable law or agreed to in writing, software
431
+ * distributed under the License is distributed on an "AS IS" BASIS,
432
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
433
+ * See the License for the specific language governing permissions and
434
+ * limitations under the License.
435
+ */class E8{constructor(e,n,r){this._isDeleted=!1,this._options=Object.assign({},e),this._config=Object.assign({},n),this._name=n.name,this._automaticDataCollectionEnabled=n.automaticDataCollectionEnabled,this._container=r,this.container.addComponent(new Su("app",()=>this,"PUBLIC"))}get automaticDataCollectionEnabled(){return this.checkDestroyed(),this._automaticDataCollectionEnabled}set automaticDataCollectionEnabled(e){this.checkDestroyed(),this._automaticDataCollectionEnabled=e}get name(){return this.checkDestroyed(),this._name}get options(){return this.checkDestroyed(),this._options}get config(){return this.checkDestroyed(),this._config}get container(){return this._container}get isDeleted(){return this._isDeleted}set isDeleted(e){this._isDeleted=e}checkDestroyed(){if(this.isDeleted)throw du.create("app-deleted",{appName:this._name})}}function qD(t,e={}){let n=t;typeof e!="object"&&(e={name:e});const r=Object.assign({name:kv,automaticDataCollectionEnabled:!1},e),i=r.name;if(typeof i!="string"||!i)throw du.create("bad-app-name",{appName:String(i)});if(n||(n=UD()),!n)throw du.create("no-options");const o=vp.get(i);if(o){if(Sv(n,o.options)&&Sv(r,o.config))return o;throw du.create("duplicate-app",{appName:i})}const a=new A6(i);for(const f of Dv.values())a.addComponent(f);const c=new E8(n,r,a);return vp.set(i,c),c}function k8(t=kv){const e=vp.get(t);if(!e&&t===kv&&UD())return qD();if(!e)throw du.create("no-app",{appName:t});return e}function hu(t,e,n){var r;let i=(r=S8[t])!==null&&r!==void 0?r:t;n&&(i+=`-${n}`);const o=i.match(/\s|\//),a=e.match(/\s|\//);if(o||a){const c=[`Unable to register library "${i}" with version "${e}":`];o&&c.push(`library name "${i}" contains illegal characters (whitespace or "/")`),o&&a&&c.push("and"),a&&c.push(`version name "${e}" contains illegal characters (whitespace or "/")`),Dl.warn(c.join(" "));return}Ec(new Su(`${i}-version`,()=>({library:i,version:e}),"VERSION"))}/**
436
+ * @license
437
+ * Copyright 2021 Google LLC
438
+ *
439
+ * Licensed under the Apache License, Version 2.0 (the "License");
440
+ * you may not use this file except in compliance with the License.
441
+ * You may obtain a copy of the License at
442
+ *
443
+ * http://www.apache.org/licenses/LICENSE-2.0
444
+ *
445
+ * Unless required by applicable law or agreed to in writing, software
446
+ * distributed under the License is distributed on an "AS IS" BASIS,
447
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
448
+ * See the License for the specific language governing permissions and
449
+ * limitations under the License.
450
+ */const D8="firebase-heartbeat-database",P8=1,jd="firebase-heartbeat-store";let ym=null;function XD(){return ym||(ym=Yp(D8,P8,{upgrade:(t,e)=>{switch(e){case 0:try{t.createObjectStore(jd)}catch(n){console.warn(n)}}}}).catch(t=>{throw du.create("idb-open",{originalErrorMessage:t.message})})),ym}async function O8(t){try{const n=(await XD()).transaction(jd),r=await n.objectStore(jd).get(KD(t));return await n.done,r}catch(e){if(e instanceof Lf)Dl.warn(e.message);else{const n=du.create("idb-get",{originalErrorMessage:e==null?void 0:e.message});Dl.warn(n.message)}}}async function C1(t,e){try{const r=(await XD()).transaction(jd,"readwrite");await r.objectStore(jd).put(e,KD(t)),await r.done}catch(n){if(n instanceof Lf)Dl.warn(n.message);else{const r=du.create("idb-set",{originalErrorMessage:n==null?void 0:n.message});Dl.warn(r.message)}}}function KD(t){return`${t.name}!${t.options.appId}`}/**
451
+ * @license
452
+ * Copyright 2021 Google LLC
453
+ *
454
+ * Licensed under the Apache License, Version 2.0 (the "License");
455
+ * you may not use this file except in compliance with the License.
456
+ * You may obtain a copy of the License at
457
+ *
458
+ * http://www.apache.org/licenses/LICENSE-2.0
459
+ *
460
+ * Unless required by applicable law or agreed to in writing, software
461
+ * distributed under the License is distributed on an "AS IS" BASIS,
462
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
463
+ * See the License for the specific language governing permissions and
464
+ * limitations under the License.
465
+ */const _8=1024,R8=30*24*60*60*1e3;class A8{constructor(e){this.container=e,this._heartbeatsCache=null;const n=this.container.getProvider("app").getImmediate();this._storage=new M8(n),this._heartbeatsCachePromise=this._storage.read().then(r=>(this._heartbeatsCache=r,r))}async triggerHeartbeat(){var e,n;try{const i=this.container.getProvider("platform-logger").getImmediate().getPlatformInfoString(),o=E1();return((e=this._heartbeatsCache)===null||e===void 0?void 0:e.heartbeats)==null&&(this._heartbeatsCache=await this._heartbeatsCachePromise,((n=this._heartbeatsCache)===null||n===void 0?void 0:n.heartbeats)==null)||this._heartbeatsCache.lastSentHeartbeatDate===o||this._heartbeatsCache.heartbeats.some(a=>a.date===o)?void 0:(this._heartbeatsCache.heartbeats.push({date:o,agent:i}),this._heartbeatsCache.heartbeats=this._heartbeatsCache.heartbeats.filter(a=>{const c=new Date(a.date).valueOf();return Date.now()-c<=R8}),this._storage.overwrite(this._heartbeatsCache))}catch(r){Dl.warn(r)}}async getHeartbeatsHeader(){var e;try{if(this._heartbeatsCache===null&&await this._heartbeatsCachePromise,((e=this._heartbeatsCache)===null||e===void 0?void 0:e.heartbeats)==null||this._heartbeatsCache.heartbeats.length===0)return"";const n=E1(),{heartbeatsToSend:r,unsentEntries:i}=I8(this._heartbeatsCache.heartbeats),o=HD(JSON.stringify({version:2,heartbeats:r}));return this._heartbeatsCache.lastSentHeartbeatDate=n,i.length>0?(this._heartbeatsCache.heartbeats=i,await this._storage.overwrite(this._heartbeatsCache)):(this._heartbeatsCache.heartbeats=[],this._storage.overwrite(this._heartbeatsCache)),o}catch(n){return Dl.warn(n),""}}}function E1(){return new Date().toISOString().substring(0,10)}function I8(t,e=_8){const n=[];let r=t.slice();for(const i of t){const o=n.find(a=>a.agent===i.agent);if(o){if(o.dates.push(i.date),k1(n)>e){o.dates.pop();break}}else if(n.push({agent:i.agent,dates:[i.date]}),k1(n)>e){n.pop();break}r=r.slice(1)}return{heartbeatsToSend:n,unsentEntries:r}}class M8{constructor(e){this.app=e,this._canUseIndexedDBPromise=this.runIndexedDBEnvironmentCheck()}async runIndexedDBEnvironmentCheck(){return WD()?zD().then(()=>!0).catch(()=>!1):!1}async read(){if(await this._canUseIndexedDBPromise){const n=await O8(this.app);return n!=null&&n.heartbeats?n:{heartbeats:[]}}else return{heartbeats:[]}}async overwrite(e){var n;if(await this._canUseIndexedDBPromise){const i=await this.read();return C1(this.app,{lastSentHeartbeatDate:(n=e.lastSentHeartbeatDate)!==null&&n!==void 0?n:i.lastSentHeartbeatDate,heartbeats:e.heartbeats})}else return}async add(e){var n;if(await this._canUseIndexedDBPromise){const i=await this.read();return C1(this.app,{lastSentHeartbeatDate:(n=e.lastSentHeartbeatDate)!==null&&n!==void 0?n:i.lastSentHeartbeatDate,heartbeats:[...i.heartbeats,...e.heartbeats]})}else return}}function k1(t){return HD(JSON.stringify({version:2,heartbeats:t})).length}/**
466
+ * @license
467
+ * Copyright 2019 Google LLC
468
+ *
469
+ * Licensed under the Apache License, Version 2.0 (the "License");
470
+ * you may not use this file except in compliance with the License.
471
+ * You may obtain a copy of the License at
472
+ *
473
+ * http://www.apache.org/licenses/LICENSE-2.0
474
+ *
475
+ * Unless required by applicable law or agreed to in writing, software
476
+ * distributed under the License is distributed on an "AS IS" BASIS,
477
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
478
+ * See the License for the specific language governing permissions and
479
+ * limitations under the License.
480
+ */function L8(t){Ec(new Su("platform-logger",e=>new q6(e),"PRIVATE")),Ec(new Su("heartbeat",e=>new A8(e),"PRIVATE")),hu(Ev,S1,t),hu(Ev,S1,"esm2017"),hu("fire-js","")}L8("");var F8="firebase",N8="10.14.1";/**
481
+ * @license
482
+ * Copyright 2020 Google LLC
483
+ *
484
+ * Licensed under the Apache License, Version 2.0 (the "License");
485
+ * you may not use this file except in compliance with the License.
486
+ * You may obtain a copy of the License at
487
+ *
488
+ * http://www.apache.org/licenses/LICENSE-2.0
489
+ *
490
+ * Unless required by applicable law or agreed to in writing, software
491
+ * distributed under the License is distributed on an "AS IS" BASIS,
492
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
493
+ * See the License for the specific language governing permissions and
494
+ * limitations under the License.
495
+ */hu(F8,N8,"app");const ZD="@firebase/installations",Qy="0.6.9";/**
496
+ * @license
497
+ * Copyright 2019 Google LLC
498
+ *
499
+ * Licensed under the Apache License, Version 2.0 (the "License");
500
+ * you may not use this file except in compliance with the License.
501
+ * You may obtain a copy of the License at
502
+ *
503
+ * http://www.apache.org/licenses/LICENSE-2.0
504
+ *
505
+ * Unless required by applicable law or agreed to in writing, software
506
+ * distributed under the License is distributed on an "AS IS" BASIS,
507
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
508
+ * See the License for the specific language governing permissions and
509
+ * limitations under the License.
510
+ */const JD=1e4,QD=`w:${Qy}`,eP="FIS_v2",j8="https://firebaseinstallations.googleapis.com/v1",B8=60*60*1e3,$8="installations",V8="Installations";/**
511
+ * @license
512
+ * Copyright 2019 Google LLC
513
+ *
514
+ * Licensed under the Apache License, Version 2.0 (the "License");
515
+ * you may not use this file except in compliance with the License.
516
+ * You may obtain a copy of the License at
517
+ *
518
+ * http://www.apache.org/licenses/LICENSE-2.0
519
+ *
520
+ * Unless required by applicable law or agreed to in writing, software
521
+ * distributed under the License is distributed on an "AS IS" BASIS,
522
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
523
+ * See the License for the specific language governing permissions and
524
+ * limitations under the License.
525
+ */const H8={"missing-app-config-values":'Missing App configuration value: "{$valueName}"',"not-registered":"Firebase Installation is not registered.","installation-not-found":"Firebase Installation not found.","request-failed":'{$requestName} request failed with error "{$serverCode} {$serverStatus}: {$serverMessage}"',"app-offline":"Could not process request. Application offline.","delete-pending-registration":"Can't delete installation while there is a pending registration request."},kc=new zp($8,V8,H8);function tP(t){return t instanceof Lf&&t.code.includes("request-failed")}/**
526
+ * @license
527
+ * Copyright 2019 Google LLC
528
+ *
529
+ * Licensed under the Apache License, Version 2.0 (the "License");
530
+ * you may not use this file except in compliance with the License.
531
+ * You may obtain a copy of the License at
532
+ *
533
+ * http://www.apache.org/licenses/LICENSE-2.0
534
+ *
535
+ * Unless required by applicable law or agreed to in writing, software
536
+ * distributed under the License is distributed on an "AS IS" BASIS,
537
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
538
+ * See the License for the specific language governing permissions and
539
+ * limitations under the License.
540
+ */function nP({projectId:t}){return`${j8}/projects/${t}/installations`}function rP(t){return{token:t.token,requestStatus:2,expiresIn:W8(t.expiresIn),creationTime:Date.now()}}async function iP(t,e){const r=(await e.json()).error;return kc.create("request-failed",{requestName:t,serverCode:r.code,serverMessage:r.message,serverStatus:r.status})}function oP({apiKey:t}){return new Headers({"Content-Type":"application/json",Accept:"application/json","x-goog-api-key":t})}function U8(t,{refreshToken:e}){const n=oP(t);return n.append("Authorization",z8(e)),n}async function sP(t){const e=await t();return e.status>=500&&e.status<600?t():e}function W8(t){return Number(t.replace("s","000"))}function z8(t){return`${eP} ${t}`}/**
541
+ * @license
542
+ * Copyright 2019 Google LLC
543
+ *
544
+ * Licensed under the Apache License, Version 2.0 (the "License");
545
+ * you may not use this file except in compliance with the License.
546
+ * You may obtain a copy of the License at
547
+ *
548
+ * http://www.apache.org/licenses/LICENSE-2.0
549
+ *
550
+ * Unless required by applicable law or agreed to in writing, software
551
+ * distributed under the License is distributed on an "AS IS" BASIS,
552
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
553
+ * See the License for the specific language governing permissions and
554
+ * limitations under the License.
555
+ */async function Y8({appConfig:t,heartbeatServiceProvider:e},{fid:n}){const r=nP(t),i=oP(t),o=e.getImmediate({optional:!0});if(o){const p=await o.getHeartbeatsHeader();p&&i.append("x-firebase-client",p)}const a={fid:n,authVersion:eP,appId:t.appId,sdkVersion:QD},c={method:"POST",headers:i,body:JSON.stringify(a)},f=await sP(()=>fetch(r,c));if(f.ok){const p=await f.json();return{fid:p.fid||n,registrationStatus:2,refreshToken:p.refreshToken,authToken:rP(p.authToken)}}else throw await iP("Create Installation",f)}/**
556
+ * @license
557
+ * Copyright 2019 Google LLC
558
+ *
559
+ * Licensed under the Apache License, Version 2.0 (the "License");
560
+ * you may not use this file except in compliance with the License.
561
+ * You may obtain a copy of the License at
562
+ *
563
+ * http://www.apache.org/licenses/LICENSE-2.0
564
+ *
565
+ * Unless required by applicable law or agreed to in writing, software
566
+ * distributed under the License is distributed on an "AS IS" BASIS,
567
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
568
+ * See the License for the specific language governing permissions and
569
+ * limitations under the License.
570
+ */function aP(t){return new Promise(e=>{setTimeout(e,t)})}/**
571
+ * @license
572
+ * Copyright 2019 Google LLC
573
+ *
574
+ * Licensed under the Apache License, Version 2.0 (the "License");
575
+ * you may not use this file except in compliance with the License.
576
+ * You may obtain a copy of the License at
577
+ *
578
+ * http://www.apache.org/licenses/LICENSE-2.0
579
+ *
580
+ * Unless required by applicable law or agreed to in writing, software
581
+ * distributed under the License is distributed on an "AS IS" BASIS,
582
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
583
+ * See the License for the specific language governing permissions and
584
+ * limitations under the License.
585
+ */function G8(t){return btoa(String.fromCharCode(...t)).replace(/\+/g,"-").replace(/\//g,"_")}/**
586
+ * @license
587
+ * Copyright 2019 Google LLC
588
+ *
589
+ * Licensed under the Apache License, Version 2.0 (the "License");
590
+ * you may not use this file except in compliance with the License.
591
+ * You may obtain a copy of the License at
592
+ *
593
+ * http://www.apache.org/licenses/LICENSE-2.0
594
+ *
595
+ * Unless required by applicable law or agreed to in writing, software
596
+ * distributed under the License is distributed on an "AS IS" BASIS,
597
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
598
+ * See the License for the specific language governing permissions and
599
+ * limitations under the License.
600
+ */const q8=/^[cdef][\w-]{21}$/,Pv="";function X8(){try{const t=new Uint8Array(17);(self.crypto||self.msCrypto).getRandomValues(t),t[0]=112+t[0]%16;const n=K8(t);return q8.test(n)?n:Pv}catch{return Pv}}function K8(t){return G8(t).substr(0,22)}/**
601
+ * @license
602
+ * Copyright 2019 Google LLC
603
+ *
604
+ * Licensed under the Apache License, Version 2.0 (the "License");
605
+ * you may not use this file except in compliance with the License.
606
+ * You may obtain a copy of the License at
607
+ *
608
+ * http://www.apache.org/licenses/LICENSE-2.0
609
+ *
610
+ * Unless required by applicable law or agreed to in writing, software
611
+ * distributed under the License is distributed on an "AS IS" BASIS,
612
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
613
+ * See the License for the specific language governing permissions and
614
+ * limitations under the License.
615
+ */function Gp(t){return`${t.appName}!${t.appId}`}/**
616
+ * @license
617
+ * Copyright 2019 Google LLC
618
+ *
619
+ * Licensed under the Apache License, Version 2.0 (the "License");
620
+ * you may not use this file except in compliance with the License.
621
+ * You may obtain a copy of the License at
622
+ *
623
+ * http://www.apache.org/licenses/LICENSE-2.0
624
+ *
625
+ * Unless required by applicable law or agreed to in writing, software
626
+ * distributed under the License is distributed on an "AS IS" BASIS,
627
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
628
+ * See the License for the specific language governing permissions and
629
+ * limitations under the License.
630
+ */const lP=new Map;function uP(t,e){const n=Gp(t);cP(n,e),Z8(n,e)}function cP(t,e){const n=lP.get(t);if(n)for(const r of n)r(e)}function Z8(t,e){const n=J8();n&&n.postMessage({key:t,fid:e}),Q8()}let vc=null;function J8(){return!vc&&"BroadcastChannel"in self&&(vc=new BroadcastChannel("[Firebase] FID Change"),vc.onmessage=t=>{cP(t.data.key,t.data.fid)}),vc}function Q8(){lP.size===0&&vc&&(vc.close(),vc=null)}/**
631
+ * @license
632
+ * Copyright 2019 Google LLC
633
+ *
634
+ * Licensed under the Apache License, Version 2.0 (the "License");
635
+ * you may not use this file except in compliance with the License.
636
+ * You may obtain a copy of the License at
637
+ *
638
+ * http://www.apache.org/licenses/LICENSE-2.0
639
+ *
640
+ * Unless required by applicable law or agreed to in writing, software
641
+ * distributed under the License is distributed on an "AS IS" BASIS,
642
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
643
+ * See the License for the specific language governing permissions and
644
+ * limitations under the License.
645
+ */const e9="firebase-installations-database",t9=1,Dc="firebase-installations-store";let bm=null;function eb(){return bm||(bm=Yp(e9,t9,{upgrade:(t,e)=>{switch(e){case 0:t.createObjectStore(Dc)}}})),bm}async function yp(t,e){const n=Gp(t),i=(await eb()).transaction(Dc,"readwrite"),o=i.objectStore(Dc),a=await o.get(n);return await o.put(e,n),await i.done,(!a||a.fid!==e.fid)&&uP(t,e.fid),e}async function fP(t){const e=Gp(t),r=(await eb()).transaction(Dc,"readwrite");await r.objectStore(Dc).delete(e),await r.done}async function qp(t,e){const n=Gp(t),i=(await eb()).transaction(Dc,"readwrite"),o=i.objectStore(Dc),a=await o.get(n),c=e(a);return c===void 0?await o.delete(n):await o.put(c,n),await i.done,c&&(!a||a.fid!==c.fid)&&uP(t,c.fid),c}/**
646
+ * @license
647
+ * Copyright 2019 Google LLC
648
+ *
649
+ * Licensed under the Apache License, Version 2.0 (the "License");
650
+ * you may not use this file except in compliance with the License.
651
+ * You may obtain a copy of the License at
652
+ *
653
+ * http://www.apache.org/licenses/LICENSE-2.0
654
+ *
655
+ * Unless required by applicable law or agreed to in writing, software
656
+ * distributed under the License is distributed on an "AS IS" BASIS,
657
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
658
+ * See the License for the specific language governing permissions and
659
+ * limitations under the License.
660
+ */async function tb(t){let e;const n=await qp(t.appConfig,r=>{const i=n9(r),o=r9(t,i);return e=o.registrationPromise,o.installationEntry});return n.fid===Pv?{installationEntry:await e}:{installationEntry:n,registrationPromise:e}}function n9(t){const e=t||{fid:X8(),registrationStatus:0};return dP(e)}function r9(t,e){if(e.registrationStatus===0){if(!navigator.onLine){const i=Promise.reject(kc.create("app-offline"));return{installationEntry:e,registrationPromise:i}}const n={fid:e.fid,registrationStatus:1,registrationTime:Date.now()},r=i9(t,n);return{installationEntry:n,registrationPromise:r}}else return e.registrationStatus===1?{installationEntry:e,registrationPromise:o9(t)}:{installationEntry:e}}async function i9(t,e){try{const n=await Y8(t,e);return yp(t.appConfig,n)}catch(n){throw tP(n)&&n.customData.serverCode===409?await fP(t.appConfig):await yp(t.appConfig,{fid:e.fid,registrationStatus:0}),n}}async function o9(t){let e=await D1(t.appConfig);for(;e.registrationStatus===1;)await aP(100),e=await D1(t.appConfig);if(e.registrationStatus===0){const{installationEntry:n,registrationPromise:r}=await tb(t);return r||n}return e}function D1(t){return qp(t,e=>{if(!e)throw kc.create("installation-not-found");return dP(e)})}function dP(t){return s9(t)?{fid:t.fid,registrationStatus:0}:t}function s9(t){return t.registrationStatus===1&&t.registrationTime+JD<Date.now()}/**
661
+ * @license
662
+ * Copyright 2019 Google LLC
663
+ *
664
+ * Licensed under the Apache License, Version 2.0 (the "License");
665
+ * you may not use this file except in compliance with the License.
666
+ * You may obtain a copy of the License at
667
+ *
668
+ * http://www.apache.org/licenses/LICENSE-2.0
669
+ *
670
+ * Unless required by applicable law or agreed to in writing, software
671
+ * distributed under the License is distributed on an "AS IS" BASIS,
672
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
673
+ * See the License for the specific language governing permissions and
674
+ * limitations under the License.
675
+ */async function a9({appConfig:t,heartbeatServiceProvider:e},n){const r=l9(t,n),i=U8(t,n),o=e.getImmediate({optional:!0});if(o){const p=await o.getHeartbeatsHeader();p&&i.append("x-firebase-client",p)}const a={installation:{sdkVersion:QD,appId:t.appId}},c={method:"POST",headers:i,body:JSON.stringify(a)},f=await sP(()=>fetch(r,c));if(f.ok){const p=await f.json();return rP(p)}else throw await iP("Generate Auth Token",f)}function l9(t,{fid:e}){return`${nP(t)}/${e}/authTokens:generate`}/**
676
+ * @license
677
+ * Copyright 2019 Google LLC
678
+ *
679
+ * Licensed under the Apache License, Version 2.0 (the "License");
680
+ * you may not use this file except in compliance with the License.
681
+ * You may obtain a copy of the License at
682
+ *
683
+ * http://www.apache.org/licenses/LICENSE-2.0
684
+ *
685
+ * Unless required by applicable law or agreed to in writing, software
686
+ * distributed under the License is distributed on an "AS IS" BASIS,
687
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
688
+ * See the License for the specific language governing permissions and
689
+ * limitations under the License.
690
+ */async function nb(t,e=!1){let n;const r=await qp(t.appConfig,o=>{if(!hP(o))throw kc.create("not-registered");const a=o.authToken;if(!e&&f9(a))return o;if(a.requestStatus===1)return n=u9(t,e),o;{if(!navigator.onLine)throw kc.create("app-offline");const c=h9(o);return n=c9(t,c),c}});return n?await n:r.authToken}async function u9(t,e){let n=await P1(t.appConfig);for(;n.authToken.requestStatus===1;)await aP(100),n=await P1(t.appConfig);const r=n.authToken;return r.requestStatus===0?nb(t,e):r}function P1(t){return qp(t,e=>{if(!hP(e))throw kc.create("not-registered");const n=e.authToken;return p9(n)?Object.assign(Object.assign({},e),{authToken:{requestStatus:0}}):e})}async function c9(t,e){try{const n=await a9(t,e),r=Object.assign(Object.assign({},e),{authToken:n});return await yp(t.appConfig,r),n}catch(n){if(tP(n)&&(n.customData.serverCode===401||n.customData.serverCode===404))await fP(t.appConfig);else{const r=Object.assign(Object.assign({},e),{authToken:{requestStatus:0}});await yp(t.appConfig,r)}throw n}}function hP(t){return t!==void 0&&t.registrationStatus===2}function f9(t){return t.requestStatus===2&&!d9(t)}function d9(t){const e=Date.now();return e<t.creationTime||t.creationTime+t.expiresIn<e+B8}function h9(t){const e={requestStatus:1,requestTime:Date.now()};return Object.assign(Object.assign({},t),{authToken:e})}function p9(t){return t.requestStatus===1&&t.requestTime+JD<Date.now()}/**
691
+ * @license
692
+ * Copyright 2019 Google LLC
693
+ *
694
+ * Licensed under the Apache License, Version 2.0 (the "License");
695
+ * you may not use this file except in compliance with the License.
696
+ * You may obtain a copy of the License at
697
+ *
698
+ * http://www.apache.org/licenses/LICENSE-2.0
699
+ *
700
+ * Unless required by applicable law or agreed to in writing, software
701
+ * distributed under the License is distributed on an "AS IS" BASIS,
702
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
703
+ * See the License for the specific language governing permissions and
704
+ * limitations under the License.
705
+ */async function g9(t){const e=t,{installationEntry:n,registrationPromise:r}=await tb(e);return r?r.catch(console.error):nb(e).catch(console.error),n.fid}/**
706
+ * @license
707
+ * Copyright 2019 Google LLC
708
+ *
709
+ * Licensed under the Apache License, Version 2.0 (the "License");
710
+ * you may not use this file except in compliance with the License.
711
+ * You may obtain a copy of the License at
712
+ *
713
+ * http://www.apache.org/licenses/LICENSE-2.0
714
+ *
715
+ * Unless required by applicable law or agreed to in writing, software
716
+ * distributed under the License is distributed on an "AS IS" BASIS,
717
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
718
+ * See the License for the specific language governing permissions and
719
+ * limitations under the License.
720
+ */async function m9(t,e=!1){const n=t;return await v9(n),(await nb(n,e)).token}async function v9(t){const{registrationPromise:e}=await tb(t);e&&await e}/**
721
+ * @license
722
+ * Copyright 2019 Google LLC
723
+ *
724
+ * Licensed under the Apache License, Version 2.0 (the "License");
725
+ * you may not use this file except in compliance with the License.
726
+ * You may obtain a copy of the License at
727
+ *
728
+ * http://www.apache.org/licenses/LICENSE-2.0
729
+ *
730
+ * Unless required by applicable law or agreed to in writing, software
731
+ * distributed under the License is distributed on an "AS IS" BASIS,
732
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
733
+ * See the License for the specific language governing permissions and
734
+ * limitations under the License.
735
+ */function y9(t){if(!t||!t.options)throw wm("App Configuration");if(!t.name)throw wm("App Name");const e=["projectId","apiKey","appId"];for(const n of e)if(!t.options[n])throw wm(n);return{appName:t.name,projectId:t.options.projectId,apiKey:t.options.apiKey,appId:t.options.appId}}function wm(t){return kc.create("missing-app-config-values",{valueName:t})}/**
736
+ * @license
737
+ * Copyright 2020 Google LLC
738
+ *
739
+ * Licensed under the Apache License, Version 2.0 (the "License");
740
+ * you may not use this file except in compliance with the License.
741
+ * You may obtain a copy of the License at
742
+ *
743
+ * http://www.apache.org/licenses/LICENSE-2.0
744
+ *
745
+ * Unless required by applicable law or agreed to in writing, software
746
+ * distributed under the License is distributed on an "AS IS" BASIS,
747
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
748
+ * See the License for the specific language governing permissions and
749
+ * limitations under the License.
750
+ */const pP="installations",b9="installations-internal",w9=t=>{const e=t.getProvider("app").getImmediate(),n=y9(e),r=Jy(e,"heartbeat");return{app:e,appConfig:n,heartbeatServiceProvider:r,_delete:()=>Promise.resolve()}},x9=t=>{const e=t.getProvider("app").getImmediate(),n=Jy(e,pP).getImmediate();return{getId:()=>g9(n),getToken:i=>m9(n,i)}};function S9(){Ec(new Su(pP,w9,"PUBLIC")),Ec(new Su(b9,x9,"PRIVATE"))}S9();hu(ZD,Qy);hu(ZD,Qy,"esm2017");/**
751
+ * @license
752
+ * Copyright 2019 Google LLC
753
+ *
754
+ * Licensed under the Apache License, Version 2.0 (the "License");
755
+ * you may not use this file except in compliance with the License.
756
+ * You may obtain a copy of the License at
757
+ *
758
+ * http://www.apache.org/licenses/LICENSE-2.0
759
+ *
760
+ * Unless required by applicable law or agreed to in writing, software
761
+ * distributed under the License is distributed on an "AS IS" BASIS,
762
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
763
+ * See the License for the specific language governing permissions and
764
+ * limitations under the License.
765
+ */const T9="/firebase-messaging-sw.js",C9="/firebase-cloud-messaging-push-scope",gP="BDOU99-h67HcA6JeFXHbSNMu7e2yNNu3RzoMj8TM4W88jITfq7ZmPvIM1Iv-4_l2LxQcYwhqby2xGpWwzjfAnG4",E9="https://fcmregistrations.googleapis.com/v1",mP="google.c.a.c_id",k9="google.c.a.c_l",D9="google.c.a.ts",P9="google.c.a.e";var O1;(function(t){t[t.DATA_MESSAGE=1]="DATA_MESSAGE",t[t.DISPLAY_NOTIFICATION=3]="DISPLAY_NOTIFICATION"})(O1||(O1={}));/**
766
+ * @license
767
+ * Copyright 2018 Google LLC
768
+ *
769
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
770
+ * in compliance with the License. You may obtain a copy of the License at
771
+ *
772
+ * http://www.apache.org/licenses/LICENSE-2.0
773
+ *
774
+ * Unless required by applicable law or agreed to in writing, software distributed under the License
775
+ * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
776
+ * or implied. See the License for the specific language governing permissions and limitations under
777
+ * the License.
778
+ */var Bd;(function(t){t.PUSH_RECEIVED="push-received",t.NOTIFICATION_CLICKED="notification-clicked"})(Bd||(Bd={}));/**
779
+ * @license
780
+ * Copyright 2017 Google LLC
781
+ *
782
+ * Licensed under the Apache License, Version 2.0 (the "License");
783
+ * you may not use this file except in compliance with the License.
784
+ * You may obtain a copy of the License at
785
+ *
786
+ * http://www.apache.org/licenses/LICENSE-2.0
787
+ *
788
+ * Unless required by applicable law or agreed to in writing, software
789
+ * distributed under the License is distributed on an "AS IS" BASIS,
790
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
791
+ * See the License for the specific language governing permissions and
792
+ * limitations under the License.
793
+ */function vl(t){const e=new Uint8Array(t);return btoa(String.fromCharCode(...e)).replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_")}function O9(t){const e="=".repeat((4-t.length%4)%4),n=(t+e).replace(/\-/g,"+").replace(/_/g,"/"),r=atob(n),i=new Uint8Array(r.length);for(let o=0;o<r.length;++o)i[o]=r.charCodeAt(o);return i}/**
794
+ * @license
795
+ * Copyright 2019 Google LLC
796
+ *
797
+ * Licensed under the Apache License, Version 2.0 (the "License");
798
+ * you may not use this file except in compliance with the License.
799
+ * You may obtain a copy of the License at
800
+ *
801
+ * http://www.apache.org/licenses/LICENSE-2.0
802
+ *
803
+ * Unless required by applicable law or agreed to in writing, software
804
+ * distributed under the License is distributed on an "AS IS" BASIS,
805
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
806
+ * See the License for the specific language governing permissions and
807
+ * limitations under the License.
808
+ */const xm="fcm_token_details_db",_9=5,_1="fcm_token_object_Store";async function R9(t){if("databases"in indexedDB&&!(await indexedDB.databases()).map(o=>o.name).includes(xm))return null;let e=null;return(await Yp(xm,_9,{upgrade:async(r,i,o,a)=>{var c;if(i<2||!r.objectStoreNames.contains(_1))return;const f=a.objectStore(_1),p=await f.index("fcmSenderId").get(t);if(await f.clear(),!!p){if(i===2){const w=p;if(!w.auth||!w.p256dh||!w.endpoint)return;e={token:w.fcmToken,createTime:(c=w.createTime)!==null&&c!==void 0?c:Date.now(),subscriptionOptions:{auth:w.auth,p256dh:w.p256dh,endpoint:w.endpoint,swScope:w.swScope,vapidKey:typeof w.vapidKey=="string"?w.vapidKey:vl(w.vapidKey)}}}else if(i===3){const w=p;e={token:w.fcmToken,createTime:w.createTime,subscriptionOptions:{auth:vl(w.auth),p256dh:vl(w.p256dh),endpoint:w.endpoint,swScope:w.swScope,vapidKey:vl(w.vapidKey)}}}else if(i===4){const w=p;e={token:w.fcmToken,createTime:w.createTime,subscriptionOptions:{auth:vl(w.auth),p256dh:vl(w.p256dh),endpoint:w.endpoint,swScope:w.swScope,vapidKey:vl(w.vapidKey)}}}}}})).close(),await mm(xm),await mm("fcm_vapid_details_db"),await mm("undefined"),A9(e)?e:null}function A9(t){if(!t||!t.subscriptionOptions)return!1;const{subscriptionOptions:e}=t;return typeof t.createTime=="number"&&t.createTime>0&&typeof t.token=="string"&&t.token.length>0&&typeof e.auth=="string"&&e.auth.length>0&&typeof e.p256dh=="string"&&e.p256dh.length>0&&typeof e.endpoint=="string"&&e.endpoint.length>0&&typeof e.swScope=="string"&&e.swScope.length>0&&typeof e.vapidKey=="string"&&e.vapidKey.length>0}/**
809
+ * @license
810
+ * Copyright 2019 Google LLC
811
+ *
812
+ * Licensed under the Apache License, Version 2.0 (the "License");
813
+ * you may not use this file except in compliance with the License.
814
+ * You may obtain a copy of the License at
815
+ *
816
+ * http://www.apache.org/licenses/LICENSE-2.0
817
+ *
818
+ * Unless required by applicable law or agreed to in writing, software
819
+ * distributed under the License is distributed on an "AS IS" BASIS,
820
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
821
+ * See the License for the specific language governing permissions and
822
+ * limitations under the License.
823
+ */const I9="firebase-messaging-database",M9=1,$d="firebase-messaging-store";let Sm=null;function vP(){return Sm||(Sm=Yp(I9,M9,{upgrade:(t,e)=>{switch(e){case 0:t.createObjectStore($d)}}})),Sm}async function L9(t){const e=yP(t),r=await(await vP()).transaction($d).objectStore($d).get(e);if(r)return r;{const i=await R9(t.appConfig.senderId);if(i)return await rb(t,i),i}}async function rb(t,e){const n=yP(t),i=(await vP()).transaction($d,"readwrite");return await i.objectStore($d).put(e,n),await i.done,e}function yP({appConfig:t}){return t.appId}/**
824
+ * @license
825
+ * Copyright 2017 Google LLC
826
+ *
827
+ * Licensed under the Apache License, Version 2.0 (the "License");
828
+ * you may not use this file except in compliance with the License.
829
+ * You may obtain a copy of the License at
830
+ *
831
+ * http://www.apache.org/licenses/LICENSE-2.0
832
+ *
833
+ * Unless required by applicable law or agreed to in writing, software
834
+ * distributed under the License is distributed on an "AS IS" BASIS,
835
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
836
+ * See the License for the specific language governing permissions and
837
+ * limitations under the License.
838
+ */const F9={"missing-app-config-values":'Missing App configuration value: "{$valueName}"',"only-available-in-window":"This method is available in a Window context.","only-available-in-sw":"This method is available in a service worker context.","permission-default":"The notification permission was not granted and dismissed instead.","permission-blocked":"The notification permission was not granted and blocked instead.","unsupported-browser":"This browser doesn't support the API's required to use the Firebase SDK.","indexed-db-unsupported":"This browser doesn't support indexedDb.open() (ex. Safari iFrame, Firefox Private Browsing, etc)","failed-service-worker-registration":"We are unable to register the default service worker. {$browserErrorMessage}","token-subscribe-failed":"A problem occurred while subscribing the user to FCM: {$errorInfo}","token-subscribe-no-token":"FCM returned no token when subscribing the user to push.","token-unsubscribe-failed":"A problem occurred while unsubscribing the user from FCM: {$errorInfo}","token-update-failed":"A problem occurred while updating the user from FCM: {$errorInfo}","token-update-no-token":"FCM returned no token when updating the user to push.","use-sw-after-get-token":"The useServiceWorker() method may only be called once and must be called before calling getToken() to ensure your service worker is used.","invalid-sw-registration":"The input to useServiceWorker() must be a ServiceWorkerRegistration.","invalid-bg-handler":"The input to setBackgroundMessageHandler() must be a function.","invalid-vapid-key":"The public VAPID key must be a string.","use-vapid-key-after-get-token":"The usePublicVapidKey() method may only be called once and must be called before calling getToken() to ensure your VAPID key is used."},Bi=new zp("messaging","Messaging",F9);/**
839
+ * @license
840
+ * Copyright 2019 Google LLC
841
+ *
842
+ * Licensed under the Apache License, Version 2.0 (the "License");
843
+ * you may not use this file except in compliance with the License.
844
+ * You may obtain a copy of the License at
845
+ *
846
+ * http://www.apache.org/licenses/LICENSE-2.0
847
+ *
848
+ * Unless required by applicable law or agreed to in writing, software
849
+ * distributed under the License is distributed on an "AS IS" BASIS,
850
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
851
+ * See the License for the specific language governing permissions and
852
+ * limitations under the License.
853
+ */async function N9(t,e){const n=await ob(t),r=bP(e),i={method:"POST",headers:n,body:JSON.stringify(r)};let o;try{o=await(await fetch(ib(t.appConfig),i)).json()}catch(a){throw Bi.create("token-subscribe-failed",{errorInfo:a==null?void 0:a.toString()})}if(o.error){const a=o.error.message;throw Bi.create("token-subscribe-failed",{errorInfo:a})}if(!o.token)throw Bi.create("token-subscribe-no-token");return o.token}async function j9(t,e){const n=await ob(t),r=bP(e.subscriptionOptions),i={method:"PATCH",headers:n,body:JSON.stringify(r)};let o;try{o=await(await fetch(`${ib(t.appConfig)}/${e.token}`,i)).json()}catch(a){throw Bi.create("token-update-failed",{errorInfo:a==null?void 0:a.toString()})}if(o.error){const a=o.error.message;throw Bi.create("token-update-failed",{errorInfo:a})}if(!o.token)throw Bi.create("token-update-no-token");return o.token}async function B9(t,e){const r={method:"DELETE",headers:await ob(t)};try{const o=await(await fetch(`${ib(t.appConfig)}/${e}`,r)).json();if(o.error){const a=o.error.message;throw Bi.create("token-unsubscribe-failed",{errorInfo:a})}}catch(i){throw Bi.create("token-unsubscribe-failed",{errorInfo:i==null?void 0:i.toString()})}}function ib({projectId:t}){return`${E9}/projects/${t}/registrations`}async function ob({appConfig:t,installations:e}){const n=await e.getToken();return new Headers({"Content-Type":"application/json",Accept:"application/json","x-goog-api-key":t.apiKey,"x-goog-firebase-installations-auth":`FIS ${n}`})}function bP({p256dh:t,auth:e,endpoint:n,vapidKey:r}){const i={web:{endpoint:n,auth:e,p256dh:t}};return r!==gP&&(i.web.applicationPubKey=r),i}/**
854
+ * @license
855
+ * Copyright 2019 Google LLC
856
+ *
857
+ * Licensed under the Apache License, Version 2.0 (the "License");
858
+ * you may not use this file except in compliance with the License.
859
+ * You may obtain a copy of the License at
860
+ *
861
+ * http://www.apache.org/licenses/LICENSE-2.0
862
+ *
863
+ * Unless required by applicable law or agreed to in writing, software
864
+ * distributed under the License is distributed on an "AS IS" BASIS,
865
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
866
+ * See the License for the specific language governing permissions and
867
+ * limitations under the License.
868
+ */const $9=7*24*60*60*1e3;async function V9(t){const e=await U9(t.swRegistration,t.vapidKey),n={vapidKey:t.vapidKey,swScope:t.swRegistration.scope,endpoint:e.endpoint,auth:vl(e.getKey("auth")),p256dh:vl(e.getKey("p256dh"))},r=await L9(t.firebaseDependencies);if(r){if(W9(r.subscriptionOptions,n))return Date.now()>=r.createTime+$9?H9(t,{token:r.token,createTime:Date.now(),subscriptionOptions:n}):r.token;try{await B9(t.firebaseDependencies,r.token)}catch(i){console.warn(i)}return R1(t.firebaseDependencies,n)}else return R1(t.firebaseDependencies,n)}async function H9(t,e){try{const n=await j9(t.firebaseDependencies,e),r=Object.assign(Object.assign({},e),{token:n,createTime:Date.now()});return await rb(t.firebaseDependencies,r),n}catch(n){throw n}}async function R1(t,e){const r={token:await N9(t,e),createTime:Date.now(),subscriptionOptions:e};return await rb(t,r),r.token}async function U9(t,e){const n=await t.pushManager.getSubscription();return n||t.pushManager.subscribe({userVisibleOnly:!0,applicationServerKey:O9(e)})}function W9(t,e){const n=e.vapidKey===t.vapidKey,r=e.endpoint===t.endpoint,i=e.auth===t.auth,o=e.p256dh===t.p256dh;return n&&r&&i&&o}/**
869
+ * @license
870
+ * Copyright 2020 Google LLC
871
+ *
872
+ * Licensed under the Apache License, Version 2.0 (the "License");
873
+ * you may not use this file except in compliance with the License.
874
+ * You may obtain a copy of the License at
875
+ *
876
+ * http://www.apache.org/licenses/LICENSE-2.0
877
+ *
878
+ * Unless required by applicable law or agreed to in writing, software
879
+ * distributed under the License is distributed on an "AS IS" BASIS,
880
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
881
+ * See the License for the specific language governing permissions and
882
+ * limitations under the License.
883
+ */function A1(t){const e={from:t.from,collapseKey:t.collapse_key,messageId:t.fcmMessageId};return z9(e,t),Y9(e,t),G9(e,t),e}function z9(t,e){if(!e.notification)return;t.notification={};const n=e.notification.title;n&&(t.notification.title=n);const r=e.notification.body;r&&(t.notification.body=r);const i=e.notification.image;i&&(t.notification.image=i);const o=e.notification.icon;o&&(t.notification.icon=o)}function Y9(t,e){e.data&&(t.data=e.data)}function G9(t,e){var n,r,i,o,a;if(!e.fcmOptions&&!(!((n=e.notification)===null||n===void 0)&&n.click_action))return;t.fcmOptions={};const c=(i=(r=e.fcmOptions)===null||r===void 0?void 0:r.link)!==null&&i!==void 0?i:(o=e.notification)===null||o===void 0?void 0:o.click_action;c&&(t.fcmOptions.link=c);const f=(a=e.fcmOptions)===null||a===void 0?void 0:a.analytics_label;f&&(t.fcmOptions.analyticsLabel=f)}/**
884
+ * @license
885
+ * Copyright 2019 Google LLC
886
+ *
887
+ * Licensed under the Apache License, Version 2.0 (the "License");
888
+ * you may not use this file except in compliance with the License.
889
+ * You may obtain a copy of the License at
890
+ *
891
+ * http://www.apache.org/licenses/LICENSE-2.0
892
+ *
893
+ * Unless required by applicable law or agreed to in writing, software
894
+ * distributed under the License is distributed on an "AS IS" BASIS,
895
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
896
+ * See the License for the specific language governing permissions and
897
+ * limitations under the License.
898
+ */function q9(t){return typeof t=="object"&&!!t&&mP in t}/**
899
+ * @license
900
+ * Copyright 2019 Google LLC
901
+ *
902
+ * Licensed under the Apache License, Version 2.0 (the "License");
903
+ * you may not use this file except in compliance with the License.
904
+ * You may obtain a copy of the License at
905
+ *
906
+ * http://www.apache.org/licenses/LICENSE-2.0
907
+ *
908
+ * Unless required by applicable law or agreed to in writing, software
909
+ * distributed under the License is distributed on an "AS IS" BASIS,
910
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
911
+ * See the License for the specific language governing permissions and
912
+ * limitations under the License.
913
+ */function X9(t){if(!t||!t.options)throw Tm("App Configuration Object");if(!t.name)throw Tm("App Name");const e=["projectId","apiKey","appId","messagingSenderId"],{options:n}=t;for(const r of e)if(!n[r])throw Tm(r);return{appName:t.name,projectId:n.projectId,apiKey:n.apiKey,appId:n.appId,senderId:n.messagingSenderId}}function Tm(t){return Bi.create("missing-app-config-values",{valueName:t})}/**
914
+ * @license
915
+ * Copyright 2020 Google LLC
916
+ *
917
+ * Licensed under the Apache License, Version 2.0 (the "License");
918
+ * you may not use this file except in compliance with the License.
919
+ * You may obtain a copy of the License at
920
+ *
921
+ * http://www.apache.org/licenses/LICENSE-2.0
922
+ *
923
+ * Unless required by applicable law or agreed to in writing, software
924
+ * distributed under the License is distributed on an "AS IS" BASIS,
925
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
926
+ * See the License for the specific language governing permissions and
927
+ * limitations under the License.
928
+ */class K9{constructor(e,n,r){this.deliveryMetricsExportedToBigQueryEnabled=!1,this.onBackgroundMessageHandler=null,this.onMessageHandler=null,this.logEvents=[],this.isLogServiceStarted=!1;const i=X9(e);this.firebaseDependencies={app:e,appConfig:i,installations:n,analyticsProvider:r}}_delete(){return Promise.resolve()}}/**
929
+ * @license
930
+ * Copyright 2020 Google LLC
931
+ *
932
+ * Licensed under the Apache License, Version 2.0 (the "License");
933
+ * you may not use this file except in compliance with the License.
934
+ * You may obtain a copy of the License at
935
+ *
936
+ * http://www.apache.org/licenses/LICENSE-2.0
937
+ *
938
+ * Unless required by applicable law or agreed to in writing, software
939
+ * distributed under the License is distributed on an "AS IS" BASIS,
940
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
941
+ * See the License for the specific language governing permissions and
942
+ * limitations under the License.
943
+ */async function Z9(t){try{t.swRegistration=await navigator.serviceWorker.register(T9,{scope:C9}),t.swRegistration.update().catch(()=>{})}catch(e){throw Bi.create("failed-service-worker-registration",{browserErrorMessage:e==null?void 0:e.message})}}/**
944
+ * @license
945
+ * Copyright 2020 Google LLC
946
+ *
947
+ * Licensed under the Apache License, Version 2.0 (the "License");
948
+ * you may not use this file except in compliance with the License.
949
+ * You may obtain a copy of the License at
950
+ *
951
+ * http://www.apache.org/licenses/LICENSE-2.0
952
+ *
953
+ * Unless required by applicable law or agreed to in writing, software
954
+ * distributed under the License is distributed on an "AS IS" BASIS,
955
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
956
+ * See the License for the specific language governing permissions and
957
+ * limitations under the License.
958
+ */async function J9(t,e){if(!e&&!t.swRegistration&&await Z9(t),!(!e&&t.swRegistration)){if(!(e instanceof ServiceWorkerRegistration))throw Bi.create("invalid-sw-registration");t.swRegistration=e}}/**
959
+ * @license
960
+ * Copyright 2020 Google LLC
961
+ *
962
+ * Licensed under the Apache License, Version 2.0 (the "License");
963
+ * you may not use this file except in compliance with the License.
964
+ * You may obtain a copy of the License at
965
+ *
966
+ * http://www.apache.org/licenses/LICENSE-2.0
967
+ *
968
+ * Unless required by applicable law or agreed to in writing, software
969
+ * distributed under the License is distributed on an "AS IS" BASIS,
970
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
971
+ * See the License for the specific language governing permissions and
972
+ * limitations under the License.
973
+ */async function Q9(t,e){e?t.vapidKey=e:t.vapidKey||(t.vapidKey=gP)}/**
974
+ * @license
975
+ * Copyright 2020 Google LLC
976
+ *
977
+ * Licensed under the Apache License, Version 2.0 (the "License");
978
+ * you may not use this file except in compliance with the License.
979
+ * You may obtain a copy of the License at
980
+ *
981
+ * http://www.apache.org/licenses/LICENSE-2.0
982
+ *
983
+ * Unless required by applicable law or agreed to in writing, software
984
+ * distributed under the License is distributed on an "AS IS" BASIS,
985
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
986
+ * See the License for the specific language governing permissions and
987
+ * limitations under the License.
988
+ */async function wP(t,e){if(!navigator)throw Bi.create("only-available-in-window");if(Notification.permission==="default"&&await Notification.requestPermission(),Notification.permission!=="granted")throw Bi.create("permission-blocked");return await Q9(t,e==null?void 0:e.vapidKey),await J9(t,e==null?void 0:e.serviceWorkerRegistration),V9(t)}/**
989
+ * @license
990
+ * Copyright 2019 Google LLC
991
+ *
992
+ * Licensed under the Apache License, Version 2.0 (the "License");
993
+ * you may not use this file except in compliance with the License.
994
+ * You may obtain a copy of the License at
995
+ *
996
+ * http://www.apache.org/licenses/LICENSE-2.0
997
+ *
998
+ * Unless required by applicable law or agreed to in writing, software
999
+ * distributed under the License is distributed on an "AS IS" BASIS,
1000
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1001
+ * See the License for the specific language governing permissions and
1002
+ * limitations under the License.
1003
+ */async function eY(t,e,n){const r=tY(e);(await t.firebaseDependencies.analyticsProvider.get()).logEvent(r,{message_id:n[mP],message_name:n[k9],message_time:n[D9],message_device_time:Math.floor(Date.now()/1e3)})}function tY(t){switch(t){case Bd.NOTIFICATION_CLICKED:return"notification_open";case Bd.PUSH_RECEIVED:return"notification_foreground";default:throw new Error}}/**
1004
+ * @license
1005
+ * Copyright 2017 Google LLC
1006
+ *
1007
+ * Licensed under the Apache License, Version 2.0 (the "License");
1008
+ * you may not use this file except in compliance with the License.
1009
+ * You may obtain a copy of the License at
1010
+ *
1011
+ * http://www.apache.org/licenses/LICENSE-2.0
1012
+ *
1013
+ * Unless required by applicable law or agreed to in writing, software
1014
+ * distributed under the License is distributed on an "AS IS" BASIS,
1015
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1016
+ * See the License for the specific language governing permissions and
1017
+ * limitations under the License.
1018
+ */async function nY(t,e){const n=e.data;if(!n.isFirebaseMessaging)return;t.onMessageHandler&&n.messageType===Bd.PUSH_RECEIVED&&(typeof t.onMessageHandler=="function"?t.onMessageHandler(A1(n)):t.onMessageHandler.next(A1(n)));const r=n.data;q9(r)&&r[P9]==="1"&&await eY(t,n.messageType,r)}const I1="@firebase/messaging",M1="0.12.12";/**
1019
+ * @license
1020
+ * Copyright 2020 Google LLC
1021
+ *
1022
+ * Licensed under the Apache License, Version 2.0 (the "License");
1023
+ * you may not use this file except in compliance with the License.
1024
+ * You may obtain a copy of the License at
1025
+ *
1026
+ * http://www.apache.org/licenses/LICENSE-2.0
1027
+ *
1028
+ * Unless required by applicable law or agreed to in writing, software
1029
+ * distributed under the License is distributed on an "AS IS" BASIS,
1030
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1031
+ * See the License for the specific language governing permissions and
1032
+ * limitations under the License.
1033
+ */const rY=t=>{const e=new K9(t.getProvider("app").getImmediate(),t.getProvider("installations-internal").getImmediate(),t.getProvider("analytics-internal"));return navigator.serviceWorker.addEventListener("message",n=>nY(e,n)),e},iY=t=>{const e=t.getProvider("messaging").getImmediate();return{getToken:r=>wP(e,r)}};function oY(){Ec(new Su("messaging",rY,"PUBLIC")),Ec(new Su("messaging-internal",iY,"PRIVATE")),hu(I1,M1),hu(I1,M1,"esm2017")}/**
1034
+ * @license
1035
+ * Copyright 2020 Google LLC
1036
+ *
1037
+ * Licensed under the Apache License, Version 2.0 (the "License");
1038
+ * you may not use this file except in compliance with the License.
1039
+ * You may obtain a copy of the License at
1040
+ *
1041
+ * http://www.apache.org/licenses/LICENSE-2.0
1042
+ *
1043
+ * Unless required by applicable law or agreed to in writing, software
1044
+ * distributed under the License is distributed on an "AS IS" BASIS,
1045
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1046
+ * See the License for the specific language governing permissions and
1047
+ * limitations under the License.
1048
+ */async function sY(){try{await zD()}catch{return!1}return typeof window<"u"&&WD()&&E6()&&"serviceWorker"in navigator&&"PushManager"in window&&"Notification"in window&&"fetch"in window&&ServiceWorkerRegistration.prototype.hasOwnProperty("showNotification")&&PushSubscription.prototype.hasOwnProperty("getKey")}/**
1049
+ * @license
1050
+ * Copyright 2020 Google LLC
1051
+ *
1052
+ * Licensed under the Apache License, Version 2.0 (the "License");
1053
+ * you may not use this file except in compliance with the License.
1054
+ * You may obtain a copy of the License at
1055
+ *
1056
+ * http://www.apache.org/licenses/LICENSE-2.0
1057
+ *
1058
+ * Unless required by applicable law or agreed to in writing, software
1059
+ * distributed under the License is distributed on an "AS IS" BASIS,
1060
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1061
+ * See the License for the specific language governing permissions and
1062
+ * limitations under the License.
1063
+ */function aY(t,e){if(!navigator)throw Bi.create("only-available-in-window");return t.onMessageHandler=e,()=>{t.onMessageHandler=null}}/**
1064
+ * @license
1065
+ * Copyright 2017 Google LLC
1066
+ *
1067
+ * Licensed under the Apache License, Version 2.0 (the "License");
1068
+ * you may not use this file except in compliance with the License.
1069
+ * You may obtain a copy of the License at
1070
+ *
1071
+ * http://www.apache.org/licenses/LICENSE-2.0
1072
+ *
1073
+ * Unless required by applicable law or agreed to in writing, software
1074
+ * distributed under the License is distributed on an "AS IS" BASIS,
1075
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1076
+ * See the License for the specific language governing permissions and
1077
+ * limitations under the License.
1078
+ */function lY(t=k8()){return sY().then(e=>{if(!e)throw Bi.create("unsupported-browser")},e=>{throw Bi.create("indexed-db-unsupported")}),Jy(Ky(t),"messaging").getImmediate()}async function uY(t,e){return t=Ky(t),wP(t,e)}function cY(t,e){return t=Ky(t),aY(t,e)}oY();exports.AuthContext=Rv;exports.AuthProvider=ZI;exports.CustomOpenList=G1;exports.CustomOpenListProvider=FI;exports.DateRangePicker=p6;exports.ERROR_MESSAGE=U1;exports.FavoriteMenu=H4;exports.GlobalMenu=n6;exports.IconComponent=ED;exports.InfiniteLoader=c6;exports.Language=Iv;exports.LogoutConfirmModal=L1;exports.PropTypes=_s;exports.Q=C2;exports.SaasThemeProvider=qI;exports.StyleWrapper=Mv;exports.TranslationProvider=iL;exports._=i6;exports._assertThisInitialized=wl;exports._extends=Of;exports._extends$1=V5;exports._inheritsLoose=wD;exports._objectWithoutPropertiesLoose=Av;exports.activeStyles=Gy;exports.axiosInstance=Rs;exports.clsx=yl;exports.color=ki;exports.commonjsGlobal=Ei;exports.createCustomTheme=Z1;exports.getAugmentedNamespace=pM;exports.getMessagingInWindow=lY;exports.getToken=uY;exports.handleErrorAxios=Y1;exports.initializeApp=qD;exports.lodashExports=ND;exports.login=W1;exports.logout=z1;exports.notify=_2;exports.objectWithoutPropertiesLoose=hM;exports.onMessage=cY;exports.pushError=Hd;exports.pushSuccess=Bv;exports.pushWarning=O2;exports.responseInterceptor=LI;exports.search=QI;exports.setFavicon=J1;exports.styles=r6;exports.translate=nL;exports.translationConfig=tL;exports.updateFavoriteItems=Xy;exports.useAuth=JI;exports.useCustomTranslation=eL;exports.useTheme=GI;exports.useTranslation=aT;exports.useTranslation$1=rL;